diff --git a/src/front/dist/assets/AboutInspectionPage-67b45473.js b/src/front/dist/assets/AboutInspectionPage-f5b263a4.js similarity index 83% rename from src/front/dist/assets/AboutInspectionPage-67b45473.js rename to src/front/dist/assets/AboutInspectionPage-f5b263a4.js index bcd60ddae..aa4bfc266 100644 --- a/src/front/dist/assets/AboutInspectionPage-67b45473.js +++ b/src/front/dist/assets/AboutInspectionPage-f5b263a4.js @@ -1 +1 @@ -import{_ as t,aB as a,C as s,D as o,E as e,K as c,F as n,G as r,L as l}from"./index-09dc9553.js";const p={setup(){a()}};function _(f,i,u,x,d,g){return s(),o(c,null,{default:e(()=>[n(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[r(" Об инспекции ")]),_:1})]),_:1})}const V=t(p,[["render",_]]);export{V as default}; +import{_ as t,aB as a,C as s,D as o,E as e,K as c,F as n,G as r,L as l}from"./index-cf33b3b8.js";const p={setup(){a()}};function _(f,i,u,x,d,g){return s(),o(c,null,{default:e(()=>[n(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[r(" Об инспекции ")]),_:1})]),_:1})}const V=t(p,[["render",_]]);export{V as default}; diff --git a/src/front/dist/assets/AboutPortalPage-2a09883d.js b/src/front/dist/assets/AboutPortalPage-bf8e0e01.js similarity index 96% rename from src/front/dist/assets/AboutPortalPage-2a09883d.js rename to src/front/dist/assets/AboutPortalPage-bf8e0e01.js index cd7c417ce..889569222 100644 --- a/src/front/dist/assets/AboutPortalPage-2a09883d.js +++ b/src/front/dist/assets/AboutPortalPage-bf8e0e01.js @@ -1 +1 @@ -import{p as g,a1 as v,a2 as p,a4 as x,a5 as y,a6 as k,a8 as T,bb as V,ac as B,F as l,b as C,_ as P,aB as F,r as w,aF as D,C as n,D as $,E as c,K as N,S as e,Y as u,$ as m,Z as _,L as S,ad as o}from"./index-09dc9553.js";const E=g({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...v(),...p(),...x(),...y()},"VTable"),b=k()({name:"VTable",props:E(),setup(t,i){let{slots:a}=i;const{themeClasses:r}=T(t),{densityClasses:h}=V(t);return B(()=>l(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!a.top,"v-table--has-bottom":!!a.bottom,"v-table--hover":t.hover},r.value,h.value,t.class],style:t.style},{default:()=>{var d,s,f;return[(d=a.top)==null?void 0:d.call(a),a.default?l("div",{class:"v-table__wrapper",style:{height:C(t.height)}},[l("table",null,[a.default()])]):(s=a.wrapper)==null?void 0:s.call(a),(f=a.bottom)==null?void 0:f.call(a)]}})),{}}}),H={setup(){F();const t=w({});return D("api/watcher/counter/",t),{visiting:t}}},L=e("thead",null,[e("tr",null,[e("th",{class:"text-left"}," Страница "),e("th",{class:"text-left"}," Количество посещений ")])],-1),R=e("thead",null,[e("tr",null,[e("th",{class:"text-left"}," Пользователь "),e("th",{class:"text-left"}," Страница "),e("th",{class:"text-left"}," Количество посещений ")])],-1);function A(t,i,a,r,h,d){return n(),$(N,null,{default:c(()=>[l(S,{class:"ma-3"},{default:c(()=>[l(b,{density:"compact",class:"mt-3"},{default:c(()=>[L,e("tbody",null,[(n(!0),u(_,null,m(r.visiting.pages,s=>(n(),u("tr",{key:s.name},[e("td",null,o(s.page),1),e("td",null,o(s.count__sum),1)]))),128))])]),_:1}),l(b,{density:"compact",class:"mt-3"},{default:c(()=>[R,e("tbody",null,[(n(!0),u(_,null,m(r.visiting.users,s=>(n(),u("tr",{key:s.name},[e("td",null,o(s.user__username),1),e("td",null,o(s.page),1),e("td",null,o(s.count__sum),1)]))),128))])]),_:1})]),_:1})]),_:1})}const U=P(H,[["render",A]]);export{U as default}; +import{p as g,a1 as v,a2 as p,a4 as x,a5 as y,a6 as k,a8 as T,bb as V,ac as B,F as l,b as C,_ as P,aB as F,r as w,aF as D,C as n,D as $,E as c,K as N,S as e,Y as u,$ as m,Z as _,L as S,ad as o}from"./index-cf33b3b8.js";const E=g({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...v(),...p(),...x(),...y()},"VTable"),b=k()({name:"VTable",props:E(),setup(t,i){let{slots:a}=i;const{themeClasses:r}=T(t),{densityClasses:h}=V(t);return B(()=>l(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!a.top,"v-table--has-bottom":!!a.bottom,"v-table--hover":t.hover},r.value,h.value,t.class],style:t.style},{default:()=>{var d,s,f;return[(d=a.top)==null?void 0:d.call(a),a.default?l("div",{class:"v-table__wrapper",style:{height:C(t.height)}},[l("table",null,[a.default()])]):(s=a.wrapper)==null?void 0:s.call(a),(f=a.bottom)==null?void 0:f.call(a)]}})),{}}}),H={setup(){F();const t=w({});return D("api/watcher/counter/",t),{visiting:t}}},L=e("thead",null,[e("tr",null,[e("th",{class:"text-left"}," Страница "),e("th",{class:"text-left"}," Количество посещений ")])],-1),R=e("thead",null,[e("tr",null,[e("th",{class:"text-left"}," Пользователь "),e("th",{class:"text-left"}," Страница "),e("th",{class:"text-left"}," Количество посещений ")])],-1);function A(t,i,a,r,h,d){return n(),$(N,null,{default:c(()=>[l(S,{class:"ma-3"},{default:c(()=>[l(b,{density:"compact",class:"mt-3"},{default:c(()=>[L,e("tbody",null,[(n(!0),u(_,null,m(r.visiting.pages,s=>(n(),u("tr",{key:s.name},[e("td",null,o(s.page),1),e("td",null,o(s.count__sum),1)]))),128))])]),_:1}),l(b,{density:"compact",class:"mt-3"},{default:c(()=>[R,e("tbody",null,[(n(!0),u(_,null,m(r.visiting.users,s=>(n(),u("tr",{key:s.name},[e("td",null,o(s.user__username),1),e("td",null,o(s.page),1),e("td",null,o(s.count__sum),1)]))),128))])]),_:1})]),_:1})]),_:1})}const U=P(H,[["render",A]]);export{U as default}; diff --git a/src/front/dist/assets/DefaultPortal-d8713fb4.js b/src/front/dist/assets/DefaultPortal-4005db62.js similarity index 84% rename from src/front/dist/assets/DefaultPortal-d8713fb4.js rename to src/front/dist/assets/DefaultPortal-4005db62.js index a176d9523..538a7563a 100644 --- a/src/front/dist/assets/DefaultPortal-d8713fb4.js +++ b/src/front/dist/assets/DefaultPortal-4005db62.js @@ -1 +1 @@ -import{p as J,i as $e,c as p,r as T,a as te,b as ne,d as ht,s as B,o as pe,e as Re,f as Wt,h as yt,j as Yt,k as Xt,l as Ve,m as Zt,n as Kt,q as Jt,t as pt,w as N,u as Ue,v as C,x as Qt,y as ea,z as He,_ as Le,A as We,B as bt,C as R,D as L,E as h,F as r,V as ee,G as z,H as G,I as wt,J as $t,K as re,L as Z,M as _t,N as ta,O as aa,P as na,Q as la,R as Oe,S as M,T as oa,U as ra,W as ia,X as ye,Y as ae,Z as K,$ as we,a0 as Qe,a1 as be,a2 as sa,a3 as ua,a4 as Se,a5 as Ae,a6 as de,a7 as ca,a8 as De,a9 as Ye,aa as xt,ab as da,ac as ve,ad as H,ae as le,af as et,ag as Xe,ah as Vt,ai as St,aj as kt,ak as Fe,al as _e,am as Ct,an as Rt,ao as Ot,ap as Et,aq as Tt,ar as Be,as as va,at as ma,au as fa,av as ga,aw as ha,ax as ya,ay as pa,az as ba,aA as wa,aB as $a,aC as _a,aD as xa,aE as Va}from"./index-09dc9553.js";import{u as Sa,V as q}from"./VBtn-61a8fe0f.js";import{V as Pt}from"./VContainer-194cdd0e.js";import{V as tt,a as Ee,b as ue,c as ce,d as ze,e as ka}from"./VList-0b9b232e.js";import{V as It}from"./VSpacer-d6de9106.js";import{C as Lt,V as W}from"./VTooltip-44875405.js";import{V as Ca,u as Ze}from"./VTextarea-20d645b1.js";import{V as Ra}from"./group-c7387df2.js";import"./VInput-2f5042f3.js";import"./VWindowItem-6073ee5e.js";const Te=Symbol.for("vuetify:layout"),At=Symbol.for("vuetify:layout-item"),at=1e3,Oa=J({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),Dt=J({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Ea(){const e=$e(Te);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function jt(e){const n=$e(Te);if(!n)throw new Error("[Vuetify] Could not find injected layout");const a=e.id??`layout-item-${yt()}`,t=ht("useLayoutItem");Re(At,{id:a});const l=B(!1);Yt(()=>l.value=!0),Xt(()=>l.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:u}=n.register(t,{...e,active:p(()=>l.value?!1:e.active.value),id:a});return Ve(()=>n.unregister(a)),{layoutItemStyles:o,layoutRect:n.layoutRect,layoutItemScrimStyles:u}}const Ta=(e,n,a,t)=>{let l={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...l}}];for(const u of e){const c=n.get(u),v=a.get(u),d=t.get(u);if(!c||!v||!d)continue;const m={...l,[c.value]:parseInt(l[c.value],10)+(d.value?parseInt(v.value,10):0)};o.push({id:u,layer:m}),l=m}return o};function Pa(e){const n=$e(Te,null),a=p(()=>n?n.rootZIndex.value-100:at),t=T([]),l=te(new Map),o=te(new Map),u=te(new Map),c=te(new Map),v=te(new Map),{resizeRef:d,contentRect:m}=Sa(),i=p(()=>{const $=new Map,x=e.overlaps??[];for(const V of x.filter(O=>O.includes(":"))){const[O,E]=V.split(":");if(!t.value.includes(O)||!t.value.includes(E))continue;const D=l.get(O),U=l.get(E),Y=o.get(O),Q=o.get(E);!D||!U||!Y||!Q||($.set(E,{position:D.value,amount:parseInt(Y.value,10)}),$.set(O,{position:U.value,amount:-parseInt(Q.value,10)}))}return $}),b=p(()=>{const $=[...new Set([...u.values()].map(V=>V.value))].sort((V,O)=>V-O),x=[];for(const V of $){const O=t.value.filter(E=>{var D;return((D=u.get(E))==null?void 0:D.value)===V});x.push(...O)}return Ta(x,l,o,c)}),f=p(()=>!Array.from(v.values()).some($=>$.value)),s=p(()=>b.value[b.value.length-1].layer),g=p(()=>({"--v-layout-left":ne(s.value.left),"--v-layout-right":ne(s.value.right),"--v-layout-top":ne(s.value.top),"--v-layout-bottom":ne(s.value.bottom),...f.value?void 0:{transition:"none"}})),y=p(()=>b.value.slice(1).map(($,x)=>{let{id:V}=$;const{layer:O}=b.value[x],E=o.get(V),D=l.get(V);return{id:V,...O,size:Number(E.value),position:D.value}})),w=$=>y.value.find(x=>x.id===$),S=ht("createLayout"),I=B(!1);pe(()=>{I.value=!0}),Re(Te,{register:($,x)=>{let{id:V,order:O,position:E,layoutSize:D,elementSize:U,active:Y,disableTransitions:Q,absolute:se}=x;u.set(V,O),l.set(V,E),o.set(V,D),c.set(V,Y),Q&&v.set(V,Q);const me=Wt(At,S==null?void 0:S.vnode).indexOf($);me>-1?t.value.splice(me,0,V):t.value.push(V);const fe=p(()=>y.value.findIndex(j=>j.id===V)),A=p(()=>a.value+b.value.length*2-fe.value*2),P=p(()=>{const j=E.value==="left"||E.value==="right",ge=E.value==="right",qt=E.value==="bottom",Je={[E.value]:0,zIndex:A.value,transform:`translate${j?"X":"Y"}(${(Y.value?0:-110)*(ge||qt?-1:1)}%)`,position:se.value||a.value!==at?"absolute":"fixed",...f.value?void 0:{transition:"none"}};if(!I.value)return Je;const X=y.value[fe.value];if(!X)throw new Error(`[Vuetify] Could not find layout item "${V}"`);const Me=i.value.get(V);return Me&&(X[Me.position]+=Me.amount),{...Je,height:j?`calc(100% - ${X.top}px - ${X.bottom}px)`:U.value?`${U.value}px`:void 0,left:ge?void 0:`${X.left}px`,right:ge?`${X.right}px`:void 0,top:E.value!=="bottom"?`${X.top}px`:void 0,bottom:E.value!=="top"?`${X.bottom}px`:void 0,width:j?U.value?`${U.value}px`:void 0:`calc(100% - ${X.left}px - ${X.right}px)`}}),F=p(()=>({zIndex:A.value-1}));return{layoutItemStyles:P,layoutItemScrimStyles:F,zIndex:A}},unregister:$=>{u.delete($),l.delete($),o.delete($),c.delete($),v.delete($),t.value=t.value.filter(x=>x!==$)},mainRect:s,mainStyles:g,getLayoutItem:w,items:y,layoutRect:m,rootZIndex:a});const k=p(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),_=p(()=>({zIndex:a.value,position:n?"relative":void 0,overflow:n?"hidden":void 0}));return{layoutClasses:k,layoutStyles:_,getLayoutItem:w,items:y,layoutRect:m,layoutRef:d}}const Ia=Zt("MainmenuStore",()=>{const e=T([]);return{portallinks:e,loadlinks:async()=>{const a=await Kt.get("api/navigation/links/");e.value=a.data}}});function nt(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function oe(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((a,t)=>(n.includes(t)||(a[t]=C(e[t])),a),{})}function Pe(e){return typeof e=="function"}function Aa(e){return Qt(e)||ea(e)}function Mt(e,n,a){let t=e;const l=n.split(".");for(let o=0;oe.some(t=>Mt(n,t,{[a]:!1})[a]))}function ot(e,n,a){return p(()=>e.reduce((t,l)=>{const o=Mt(n,l,{[a]:!1})[a]||[];return t.concat(o)},[]))}function Bt(e,n,a,t){return e.call(t,C(n),C(a),t)}function zt(e){return e.$valid!==void 0?!e.$valid:!e}function Da(e,n,a,t,l,o,u){let{$lazy:c,$rewardEarly:v}=l,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],m=arguments.length>8?arguments[8]:void 0,i=arguments.length>9?arguments[9]:void 0,b=arguments.length>10?arguments[10]:void 0;const f=T(!!t.value),s=T(0);a.value=!1;const g=N([n,t].concat(d,b),()=>{if(c&&!t.value||v&&!i.value&&!a.value)return;let y;try{y=Bt(e,n,m,u)}catch(w){y=Promise.reject(w)}s.value++,a.value=!!s.value,f.value=!1,Promise.resolve(y).then(w=>{s.value--,a.value=!!s.value,o.value=w,f.value=zt(w)}).catch(w=>{s.value--,a.value=!!s.value,o.value=w,f.value=!0})},{immediate:!0,deep:typeof n=="object"});return{$invalid:f,$unwatch:g}}function ja(e,n,a,t,l,o,u,c){let{$lazy:v,$rewardEarly:d}=t;const m=()=>({}),i=p(()=>{if(v&&!a.value||d&&!c.value)return!1;let b=!0;try{const f=Bt(e,n,u,o);l.value=f,b=zt(f)}catch(f){l.value=f}return b});return{$unwatch:m,$invalid:i}}function Ma(e,n,a,t,l,o,u,c,v,d,m){const i=T(!1),b=e.$params||{},f=T(null);let s,g;e.$async?{$invalid:s,$unwatch:g}=Da(e.$validator,n,i,a,t,f,l,e.$watchTargets,v,d,m):{$invalid:s,$unwatch:g}=ja(e.$validator,n,a,t,f,l,v,d);const y=e.$message;return{$message:Pe(y)?p(()=>y(lt({$pending:i,$invalid:s,$params:lt(b),$model:n,$response:f,$validator:o,$propertyPath:c,$property:u}))):y||"",$params:b,$pending:i,$invalid:s,$response:f,$unwatch:g}}function Ba(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=C(e),a=Object.keys(n),t={},l={},o={};let u=null;return a.forEach(c=>{const v=n[c];switch(!0){case Pe(v.$validator):t[c]=v;break;case Pe(v):t[c]={$validator:v};break;case c==="$validationGroups":u=v;break;case c.startsWith("$"):o[c]=v;break;default:l[c]=v}}),{rules:t,nestedValidators:l,config:o,validationGroups:u}}const za="__root";function Na(e,n,a,t,l,o,u,c,v){const d=Object.keys(e),m=t.get(l,e),i=T(!1),b=T(!1),f=T(0);if(m){if(!m.$partial)return m;m.$unwatch(),i.value=m.$dirty.value}const s={$dirty:i,$path:l,$touch:()=>{i.value||(i.value=!0)},$reset:()=>{i.value&&(i.value=!1)},$commit:()=>{}};return d.length?(d.forEach(g=>{s[g]=Ma(e[g],n,s.$dirty,o,u,g,a,l,v,b,f)}),s.$externalResults=p(()=>c.value?[].concat(c.value).map((g,y)=>({$propertyPath:l,$property:a,$validator:"$externalResults",$uid:`${l}-externalResult-${y}`,$message:g,$params:{},$response:null,$pending:!1})):[]),s.$invalid=p(()=>{const g=d.some(y=>C(s[y].$invalid));return b.value=g,!!s.$externalResults.value.length||g}),s.$pending=p(()=>d.some(g=>C(s[g].$pending))),s.$error=p(()=>s.$dirty.value?s.$pending.value||s.$invalid.value:!1),s.$silentErrors=p(()=>d.filter(g=>C(s[g].$invalid)).map(g=>{const y=s[g];return te({$propertyPath:l,$property:a,$validator:g,$uid:`${l}-${g}`,$message:y.$message,$params:y.$params,$response:y.$response,$pending:y.$pending})}).concat(s.$externalResults.value)),s.$errors=p(()=>s.$dirty.value?s.$silentErrors.value:[]),s.$unwatch=()=>d.forEach(g=>{s[g].$unwatch()}),s.$commit=()=>{b.value=!0,f.value=Date.now()},t.set(l,e,s),s):(m&&t.set(l,e,s),s)}function Ua(e,n,a,t,l,o,u){const c=Object.keys(e);return c.length?c.reduce((v,d)=>(v[d]=Ge({validations:e[d],state:n,key:d,parentKey:a,resultsCache:t,globalConfig:l,instance:o,externalResults:u}),v),{}):{}}function Ha(e,n,a){const t=p(()=>[n,a].filter(s=>s).reduce((s,g)=>s.concat(Object.values(C(g))),[])),l=p({get(){return e.$dirty.value||(t.value.length?t.value.every(s=>s.$dirty):!1)},set(s){e.$dirty.value=s}}),o=p(()=>{const s=C(e.$silentErrors)||[],g=t.value.filter(y=>(C(y).$silentErrors||[]).length).reduce((y,w)=>y.concat(...w.$silentErrors),[]);return s.concat(g)}),u=p(()=>{const s=C(e.$errors)||[],g=t.value.filter(y=>(C(y).$errors||[]).length).reduce((y,w)=>y.concat(...w.$errors),[]);return s.concat(g)}),c=p(()=>t.value.some(s=>s.$invalid)||C(e.$invalid)||!1),v=p(()=>t.value.some(s=>C(s.$pending))||C(e.$pending)||!1),d=p(()=>t.value.some(s=>s.$dirty)||t.value.some(s=>s.$anyDirty)||l.value),m=p(()=>l.value?v.value||c.value:!1),i=()=>{e.$touch(),t.value.forEach(s=>{s.$touch()})},b=()=>{e.$commit(),t.value.forEach(s=>{s.$commit()})},f=()=>{e.$reset(),t.value.forEach(s=>{s.$reset()})};return t.value.length&&t.value.every(s=>s.$dirty)&&i(),{$dirty:l,$errors:u,$invalid:c,$anyDirty:d,$error:m,$pending:v,$touch:i,$reset:f,$silentErrors:o,$commit:b}}function Ge(e){let{validations:n,state:a,key:t,parentKey:l,childResults:o,resultsCache:u,globalConfig:c={},instance:v,externalResults:d}=e;const m=l?`${l}.${t}`:t,{rules:i,nestedValidators:b,config:f,validationGroups:s}=Ba(n),g=oe(oe({},c),f),y=t?p(()=>{const P=C(a);return P?C(P[t]):void 0}):a,w=oe({},C(d)||{}),S=p(()=>{const P=C(d);return t?P?C(P[t]):void 0:P}),I=Na(i,y,t,u,m,g,v,S,a),k=Ua(b,y,m,u,g,v,S),_={};s&&Object.entries(s).forEach(P=>{let[F,j]=P;_[F]={$invalid:Ne(j,k,"$invalid"),$error:Ne(j,k,"$error"),$pending:Ne(j,k,"$pending"),$errors:ot(j,k,"$errors"),$silentErrors:ot(j,k,"$silentErrors")}});const{$dirty:$,$errors:x,$invalid:V,$anyDirty:O,$error:E,$pending:D,$touch:U,$reset:Y,$silentErrors:Q,$commit:se}=Ha(I,k,o),ke=t?p({get:()=>C(y),set:P=>{$.value=!0;const F=C(a),j=C(d);j&&(j[t]=w[t]),Ue(F[t])?F[t].value=P:F[t]=P}}):null;t&&g.$autoDirty&&N(y,()=>{$.value||U();const P=C(d);P&&(P[t]=w[t])},{flush:"sync"});async function me(){return U(),g.$rewardEarly&&(se(),await He()),await He(),new Promise(P=>{if(!D.value)return P(!V.value);const F=N(D,()=>{P(!V.value),F()})})}function fe(P){return(o.value||{})[P]}function A(){Ue(d)?d.value=w:Object.keys(w).length===0?Object.keys(d).forEach(P=>{delete d[P]}):Object.assign(d,w)}return te(oe(oe(oe({},I),{},{$model:ke,$dirty:$,$error:E,$errors:x,$invalid:V,$anyDirty:O,$pending:D,$touch:U,$reset:Y,$path:m||za,$silentErrors:Q,$validate:me,$commit:se},o&&{$getResultsForChild:fe,$clearExternalResults:A,$validationGroups:_}),k))}class Fa{constructor(){this.storage=new Map}set(n,a,t){this.storage.set(n,{rules:a,result:t})}checkRulesValidity(n,a,t){const l=Object.keys(t),o=Object.keys(a);return o.length!==l.length||!o.every(c=>l.includes(c))?!1:o.every(c=>a[c].$params?Object.keys(a[c].$params).every(v=>C(t[c].$params[v])===C(a[c].$params[v])):!0)}get(n,a){const t=this.storage.get(n);if(!t)return;const{rules:l,result:o}=t,u=this.checkRulesValidity(n,a,l),c=o.$unwatch?o.$unwatch:()=>({});return u?o:{$dirty:o.$dirty,$partial:!0,$unwatch:c}}}const Ce={COLLECT_ALL:!0,COLLECT_NONE:!1},rt=Symbol("vuelidate#injectChildResults"),it=Symbol("vuelidate#removeChildResults");function Ga(e){let{$scope:n,instance:a}=e;const t={},l=T([]),o=p(()=>l.value.reduce((m,i)=>(m[i]=C(t[i]),m),{}));function u(m,i){let{$registerAs:b,$scope:f,$stopPropagation:s}=i;s||n===Ce.COLLECT_NONE||f===Ce.COLLECT_NONE||n!==Ce.COLLECT_ALL&&n!==f||(t[b]=m,l.value.push(b))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],u);function c(m){l.value=l.value.filter(i=>i!==m),delete t[m]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],c);const v=$e(rt,[]);Re(rt,a.__vuelidateInjectInstances);const d=$e(it,[]);return Re(it,a.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:v,removeValidationResultsFromParent:d}}function Nt(e){return new Proxy(e,{get(n,a){return typeof n[a]=="object"?Nt(n[a]):p(()=>n[a])}})}let st=0;function qa(e,n){var a;let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(t=e,e=void 0,n=void 0);let{$registerAs:l,$scope:o=Ce.COLLECT_ALL,$stopPropagation:u,$externalResults:c,currentVueInstance:v}=t;const d=v||((a=Jt())===null||a===void 0?void 0:a.proxy),m=d?d.$options:{};l||(st+=1,l=`_vuelidate_${st}`);const i=T({}),b=new Fa,{childResults:f,sendValidationResultsToParent:s,removeValidationResultsFromParent:g}=d?Ga({$scope:o,instance:d}):{childResults:T({})};if(!e&&m.validations){const y=m.validations;n=T({}),pt(()=>{n.value=d,N(()=>Pe(y)?y.call(n.value,new Nt(n.value)):y,w=>{i.value=Ge({validations:w,state:n,childResults:f,resultsCache:b,globalConfig:t,instance:d,externalResults:c||d.vuelidateExternalResults})},{immediate:!0})}),t=m.validationsConfig||t}else{const y=Ue(e)||Aa(e)?e:te(e||{});N(y,w=>{i.value=Ge({validations:w,state:n,childResults:f,resultsCache:b,globalConfig:t,instance:d??{},externalResults:c})},{immediate:!0})}return d&&(s.forEach(y=>y(i,{$registerAs:l,$scope:o,$stopPropagation:u})),Ve(()=>g.forEach(y=>y(l)))),p(()=>oe(oe({},C(i.value)),f.value))}function ut(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function xe(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:[];const a=je(e);return xe(xe({},a),{},{$async:!0,$watchTargets:n})}function Ka(e){return{$validator(n){for(var a=arguments.length,t=new Array(a>1?a-1:0),l=1;l{const v=Object.entries(u).reduce((d,m)=>{let[i,b]=m;const f=e[i]||{},s=Object.entries(f).reduce((g,y)=>{let[w,S]=y;const k=Ht(S).call(this,b,u,c,...t),_=Ut(k);if(g.$data[w]=k,g.$data.$invalid=!_||!!g.$data.$invalid,g.$data.$error=g.$data.$invalid,!_){let $=S.$message||"";const x=S.$params||{};typeof $=="function"&&($=$({$pending:!1,$invalid:!_,$params:x,$model:b,$response:k})),g.$errors.push({$property:i,$message:$,$params:x,$response:k,$model:b,$pending:!1,$validator:w})}return{$valid:g.$valid&&_,$data:g.$data,$errors:g.$errors}},{$valid:!0,$data:{},$errors:[]});return d.$data[i]=s.$data,d.$errors[i]=s.$errors,{$valid:d.$valid&&s.$valid,$data:d.$data,$errors:d.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:o.$valid&&v.$valid,$data:o.$data.concat(v.$data),$errors:o.$errors.concat(v.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:n=>{let{$response:a}=n;return a?a.$errors.map(t=>Object.values(t).map(l=>l.map(o=>o.$message)).reduce((l,o)=>l.concat(o),[])):[]}}}const Ke=e=>{if(e=C(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let n in e)return!0;return!1}return!!String(e).length},Ja=e=>(e=C(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function ie(){for(var e=arguments.length,n=new Array(e),a=0;a(t=C(t),!Ke(t)||n.every(l=>(l.lastIndex=0,l.test(t))))}var Ft=Object.freeze({__proto__:null,forEach:Ka,len:Ja,normalizeValidatorObject:je,regex:ie,req:Ke,unwrap:C,unwrapNormalizedValidator:Ht,unwrapValidatorResponse:Ut,withAsync:Za,withMessage:Xa,withParams:Ya});ie(/^[a-zA-Z]*$/);ie(/^[a-zA-Z0-9]*$/);ie(/^\d*(\.\d+)?$/);const Qa=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;ie(Qa);function en(e){return typeof e=="string"&&(e=e.trim()),Ke(e)}var tn={$validator:en,$message:"Value is required",$params:{type:"required"}};const an=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;ie(an);ie(/(^[0-9]*$)|(^-[0-9]+$)/);ie(/^[-]?\d*(\.\d+)?$/);const ct=Ft.withMessage("Обязательное поле",tn),nn={setup(){const e=We(),n=bt(),a=T(!1),t=te({username:"9966-00-",password:""}),l=p(()=>({username:{req:ct,latin:Ft.withMessage(()=>'Логин имееет вид "0000-00-000"',v=>/(\d{4,4}[-]\d{2,2}[-]\d{3,3})+$/.test(v.toString()))},password:{req:ct}})),o=qa(l,t),u=v=>o.value[v].$error?o.value[v].$errors[0].$message:"",c=async()=>{o.value.$error?console.log(!0):await e.logging(t)};return pe(()=>{o.value.$validate()}),{accountStore:e,AppStore:n,menuAuthDialog:a,anon:t,v$:o,logging:c,errorer:u}}},ln=M("span",{class:"text-h5"},"Вход в портал",-1);function on(e,n,a,t,l,o){return R(),L(Ee,{modelValue:t.menuAuthDialog,"onUpdate:modelValue":n[3]||(n[3]=u=>t.menuAuthDialog=u),persistent:"",width:"400"},{activator:h(({props:u})=>[r(q,G(u,{"append-icon":"mdi-login",color:"black_and_white"}),{prepend:h(()=>[r(ee,{color:"black_and_white"})]),append:h(()=>[r(ee,{color:"black_and_white"})]),default:h(()=>[z(" Войти ")]),_:2},1040)]),default:h(()=>[r(Oe,{onKeyup:la(t.logging,["enter"])},{default:h(()=>[r(wt,null,{default:h(()=>[ln]),_:1}),r($t,null,{default:h(()=>[r(Pt,null,{default:h(()=>[r(re,null,{default:h(()=>[r(Z,{cols:"12",class:"py-0"},{default:h(()=>[r(tt,{modelValue:t.anon.username,"onUpdate:modelValue":n[0]||(n[0]=u=>t.anon.username=u),label:"Логин",variant:"underlined","error-messages":t.errorer("username")},null,8,["modelValue","error-messages"])]),_:1}),r(Z,{cols:"12",class:"py-0"},{default:h(()=>[r(tt,{modelValue:t.anon.password,"onUpdate:modelValue":n[1]||(n[1]=u=>t.anon.password=u),label:"Пароль",variant:"underlined",type:"password","error-messages":t.errorer("password")},null,8,["modelValue","error-messages"])]),_:1})]),_:1})]),_:1})]),_:1}),r(_t,null,{default:h(()=>[r(It),r(q,{color:"modal_btn",variant:"text",onClick:n[2]||(n[2]=u=>t.menuAuthDialog=!1)},{default:h(()=>[z(" Отмена ")]),_:1}),r(q,{color:"modal_btn",variant:"text",onClick:t.logging},{default:h(()=>[z(" Войти ")]),_:1},8,["onClick"])]),_:1}),ta(r(na,{indeterminate:""},null,512),[[aa,t.AppStore.loading]])]),_:1},8,["onKeyup"])]),_:1},8,["modelValue"])}const rn=Le(nn,[["render",on]]),sn={components:{CardUsers:Lt},setup(){const e=T(""),n=T(!1),a={onliner:function(c){let v=new Set(c);console.log(Array.from(v));let d=Array.from(v);d.splice(d.findIndex(m=>m==t.user.login),1),console.log(t.user.login,"accountStore"),l.value=d}},t=We();let l=T([]);const o=new WebSocket(oa+"ws/watcher/?token="+localStorage.access),u=c=>{e.value=c,n.value=!0};return o.onmessage=c=>{let v=JSON.parse(c.data);a[v.message.action](v.message.data)},N(()=>t.cod2user,function(){t.cod2user.value||o.close()}),{loging:e,menuGetUserDialog:n,onlineuser:l,checkremote:ra,spravURL:ia,whatuser:u,accountStore:t}}};function un(e,n,a,t,l,o){const u=ye("Card-users");return R(),ae("div",null,[(R(!0),ae(K,null,we(t.onlineuser,c=>(R(),L(ue,{key:c,"prepend-avatar":t.checkremote(`${t.spravURL}${c}.jpg`),title:"x",nav:"",onClick:v=>t.whatuser(c)},null,8,["prepend-avatar","onClick"]))),128)),r(Ee,{modelValue:t.menuGetUserDialog,"onUpdate:modelValue":n[1]||(n[1]=c=>t.menuGetUserDialog=c),persistent:"",width:"600"},{default:h(()=>[r(u,{menuGetUserDialog:t.menuGetUserDialog,loging:t.loging,onMenusClose:n[0]||(n[0]=c=>t.menuGetUserDialog=!1)},null,8,["menuGetUserDialog","loging"])]),_:1},8,["modelValue"])])}const cn=Le(sn,[["render",un]]);const dn=J({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Qe,default:"$ratingEmpty"},fullIcon:{type:Qe,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...be(),...sa(),...ua(),...Se(),...Ae()},"VRating"),vn=de()({name:"VRating",props:dn(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const{t}=ca(),{themeClasses:l}=De(e),o=Ye(e,"modelValue"),u=p(()=>xt(parseFloat(o.value),0,+e.length)),c=p(()=>da(Number(e.length),1)),v=p(()=>c.value.flatMap(g=>e.halfIncrements?[g-.5,g]:[g])),d=B(-1),m=p(()=>v.value.map(g=>{const y=e.hover&&d.value>-1,w=u.value>=g,S=d.value>=g,k=(y?S:w)?e.fullIcon:e.emptyIcon,_=e.activeColor??e.color,$=w||S?_:e.color;return{isFilled:w,isHovered:S,icon:k,color:$}})),i=p(()=>[0,...v.value].map(g=>{function y(){d.value=g}function w(){d.value=-1}function S(){e.disabled||e.readonly||(o.value=u.value===g&&e.clearable?0:g)}return{onMouseenter:e.hover?y:void 0,onMouseleave:e.hover?w:void 0,onClick:S}})),b=p(()=>e.name??`v-rating-${yt()}`);function f(g){var V,O;let{value:y,index:w,showStar:S=!0}=g;const{onMouseenter:I,onMouseleave:k,onClick:_}=i.value[w+1],$=`${b.value}-${String(y).replace(".","-")}`,x={color:(V=m.value[w])==null?void 0:V.color,density:e.density,disabled:e.disabled,icon:(O=m.value[w])==null?void 0:O.icon,ripple:e.ripple,size:e.size,variant:"plain"};return r(K,null,[r("label",{for:$,class:{"v-rating__item--half":e.halfIncrements&&y%1>0,"v-rating__item--full":e.halfIncrements&&y%1===0},onMouseenter:I,onMouseleave:k,onClick:_},[r("span",{class:"v-rating__hidden"},[t(e.itemAriaLabel,y,e.length)]),S?a.item?a.item({...m.value[w],props:x,value:y,index:w,rating:u.value}):r(q,x,null):void 0]),r("input",{class:"v-rating__hidden",name:b.value,id:$,type:"radio",value:y,checked:u.value===y,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function s(g){return a["item-label"]?a["item-label"](g):g.label?r("span",null,[g.label]):r("span",null,[z(" ")])}return ve(()=>{var y;const g=!!((y=e.itemLabels)!=null&&y.length)||a["item-label"];return r(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},l.value,e.class],style:e.style},{default:()=>[r(f,{value:0,index:-1,showStar:!1},null),c.value.map((w,S)=>{var I,k;return r("div",{class:"v-rating__wrapper"},[g&&e.itemLabelPosition==="top"?s({value:w,index:S,label:(I=e.itemLabels)==null?void 0:I[S]}):void 0,r("div",{class:"v-rating__item"},[e.halfIncrements?r(K,null,[r(f,{value:w-.5,index:S*2},null),r(f,{value:w,index:S*2+1},null)]):r(f,{value:w,index:S},null)]),g&&e.itemLabelPosition==="bottom"?s({value:w,index:S,label:(k=e.itemLabels)==null?void 0:k[S]}):void 0])})]})}),{}}}),mn={props:{LikeDialog:{type:Boolean,default:!1}},setup(e,n){const a=T({nowcomment:{comment:""},nowrating:[]});function t(){et.get("api/feedback/feedbackdata/").then(v=>{if(a.value=v.data,a.value.nowrating.length==0)for(let d of a.value.basecrit)a.value.nowrating.push({rating:d.rating,crit:d.id,id:null});a.value.nowcomment===null&&(a.value.nowcomment={comment:"",id:null})})}pe(()=>{t()});const l=p(()=>{const d=a.value.nowrating.reduce((i,b)=>i+b.rating,0)/a.value.nowrating.length;return Number.isInteger(d)?d:d.toFixed(1)});function o(){let v="";return l.value>0&&l.value<=3?v="УПС-С! Мы обязательно все исправим":l.value>2&&l.value<=4?v="Спасибо за обратную связь, мы обратим на это внимание":l.value>4&&l.value<5?v="Класс, будем стараться до 5":v="Спасибо за отзыв и высокую оценку ^__^",v}function u(){n.emit("menusClose")}function c(){et.post("api/feedback/feedbackdata/",{nowrating:a.value.nowrating,nowcomment:a.value.nowcomment}).then(v=>{}),u()}return{feedbackdata:a,average:l,menusCloses:u,myLabel:o,feedSend:c}}},fn=M("span",{class:"text-h5"},"Обратная связь",-1),gn={key:0,class:"pl-5"},hn={class:"font-weight-black"};function yn(e,n,a,t,l,o){return R(),L(Oe,{class:"pt-2"},{default:h(()=>[r(wt,null,{default:h(()=>[fn]),_:1}),r($t,{class:"px-2 py-0"},{default:h(()=>[r(Pt,null,{default:h(()=>[r(re,null,{default:h(()=>[r(Z,{class:"flex-grow-0 py-0 text-no-wrap align-self-center text-button"},{default:h(()=>[z(" Оцените сайт ")]),_:1}),r(ce)]),_:1}),(R(!0),ae(K,null,we(t.feedbackdata.basecrit,(u,c)=>(R(),L(re,{key:c},{default:h(()=>[r(Z,{class:"flex-grow-0 pb-0"},{default:h(()=>[r(ee,{size:"large",color:u.color,icon:u.ico},null,8,["color","icon"])]),_:2},1024),r(Z,{class:"pb-0",lg:"3"},{default:h(()=>[z(H(u.name),1)]),_:2},1024),r(Z,{class:"py-0"},{default:h(()=>[r(vn,{modelValue:t.feedbackdata.nowrating[c].rating,"onUpdate:modelValue":v=>t.feedbackdata.nowrating[c].rating=v,hover:"","half-increments":"",color:"yellow"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),r(ce)]),_:2},1024))),128)),r(re,{class:"mt-6"},{default:h(()=>[r(Z,{class:"pa-0 px-3"},{default:h(()=>[r(Ca,{label:"Ваши комментарии сделают портал лучше","hide-details":"",variant:"outlined",rows:"5","row-height":"15",modelValue:t.feedbackdata.nowcomment.comment,"onUpdate:modelValue":n[0]||(n[0]=u=>t.feedbackdata.nowcomment.comment=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),r(_t,{class:"pt-0"},{default:h(()=>[t.average<5||t.feedbackdata.nowcomment.id!=null?(R(),ae("small",gn,[z(" Вы оценили сайт на "),M("span",hn,H(t.average),1),z(" "+H(t.myLabel()),1)])):le("",!0),r(It),r(q,{color:"modal_btn",variant:"text",text:"Закрыть",onClick:t.menusCloses},null,8,["onClick"]),r(q,{color:"modal_btn",variant:"text",text:t.feedbackdata.nowcomment.id==null?"Отправить":"Обновить",onClick:t.feedSend},null,8,["text","onClick"])]),_:1})]),_:1})}const pn=Le(mn,[["render",yn]]);const bn=J({...be(),...Oa({fullHeight:!0}),...Ae()},"VApp"),wn=de()({name:"VApp",props:bn(),setup(e,n){let{slots:a}=n;const t=De(e),{layoutClasses:l,layoutStyles:o,getLayoutItem:u,items:c,layoutRef:v}=Pa(e),{rtlClasses:d}=Xe();return ve(()=>{var m;return r("div",{ref:v,class:["v-application",t.themeClasses.value,l.value,d.value,e.class],style:[o.value,e.style]},[r("div",{class:"v-application__wrap"},[(m=a.default)==null?void 0:m.call(a)])])}),{getLayoutItem:u,items:c,theme:t}}});const $n=J({text:String,...be(),...Se()},"VToolbarTitle"),_n=de()({name:"VToolbarTitle",props:$n(),setup(e,n){let{slots:a}=n;return ve(()=>{const t=!!(a.default||a.text||e.text);return r(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var l;return[t&&r("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(l=a.default)==null?void 0:l.call(a)])]}})}),{}}}),xn=[null,"prominent","default","comfortable","compact"],Gt=J({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>xn.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Vt(),...be(),...St(),...kt(),...Se({tag:"header"}),...Ae()},"VToolbar"),dt=de()({name:"VToolbar",props:Gt(),setup(e,n){var f;let{slots:a}=n;const{backgroundColorClasses:t,backgroundColorStyles:l}=Fe(_e(e,"color")),{borderClasses:o}=Ct(e),{elevationClasses:u}=Rt(e),{roundedClasses:c}=Ot(e),{themeClasses:v}=De(e),{rtlClasses:d}=Xe(),m=B(!!(e.extended||(f=a.extension)!=null&&f.call(a))),i=p(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),b=p(()=>m.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Et({VBtn:{variant:"text"}}),ve(()=>{var w;const s=!!(e.title||a.title),g=!!(a.image||e.image),y=(w=a.extension)==null?void 0:w.call(a);return m.value=!!(e.extended||y),r(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},t.value,o.value,u.value,c.value,v.value,d.value,e.class],style:[l.value,e.style]},{default:()=>[g&&r("div",{key:"image",class:"v-toolbar__image"},[a.image?r(Be,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):r(Tt,{key:"image-img",cover:!0,src:e.image},null)]),r(Be,{defaults:{VTabs:{height:ne(i.value)}}},{default:()=>{var S,I,k;return[r("div",{class:"v-toolbar__content",style:{height:ne(i.value)}},[a.prepend&&r("div",{class:"v-toolbar__prepend"},[(S=a.prepend)==null?void 0:S.call(a)]),s&&r(_n,{key:"title",text:e.title},{text:a.title}),(I=a.default)==null?void 0:I.call(a),a.append&&r("div",{class:"v-toolbar__append"},[(k=a.append)==null?void 0:k.call(a)])])]}}),r(Be,{defaults:{VTabs:{height:ne(b.value)}}},{default:()=>[r(Ra,null,{default:()=>[m.value&&r("div",{class:"v-toolbar__extension",style:{height:ne(b.value)}},[y])]})]})]})}),{contentHeight:i,extensionHeight:b}}}),Vn=J({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Sn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:a}=n;let t=0;const l=T(null),o=B(0),u=B(0),c=B(0),v=B(!1),d=B(!1),m=p(()=>Number(e.scrollThreshold)),i=p(()=>xt((m.value-o.value)/m.value||0)),b=()=>{const f=l.value;!f||a&&!a.value||(t=o.value,o.value="window"in f?f.pageYOffset:f.scrollTop,d.value=o.value{u.value=u.value||o.value}),N(v,()=>{u.value=0}),pe(()=>{N(()=>e.scrollTarget,f=>{var g;const s=f?document.querySelector(f):window;s&&s!==l.value&&((g=l.value)==null||g.removeEventListener("scroll",b),l.value=s,l.value.addEventListener("scroll",b,{passive:!0}))},{immediate:!0})}),Ve(()=>{var f;(f=l.value)==null||f.removeEventListener("scroll",b)}),a&&N(a,b,{immediate:!0}),{scrollThreshold:m,currentScroll:o,currentThreshold:c,isScrollActive:v,scrollRatio:i,isScrollingUp:d,savedScroll:u}}const kn=J({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...Gt(),...Dt(),...Vn(),height:{type:[Number,String],default:64}},"VAppBar"),Cn=de()({name:"VAppBar",props:kn(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const t=T(),l=Ye(e,"modelValue"),o=p(()=>{var S;const w=new Set(((S=e.scrollBehavior)==null?void 0:S.split(" "))??[]);return{hide:w.has("hide"),inverted:w.has("inverted"),collapse:w.has("collapse"),elevate:w.has("elevate"),fadeImage:w.has("fade-image")}}),u=p(()=>{const w=o.value;return w.hide||w.inverted||w.collapse||w.elevate||w.fadeImage||!l.value}),{currentScroll:c,scrollThreshold:v,isScrollingUp:d,scrollRatio:m}=Sn(e,{canScroll:u}),i=p(()=>e.collapse||o.value.collapse&&(o.value.inverted?m.value>0:m.value===0)),b=p(()=>e.flat||o.value.elevate&&(o.value.inverted?c.value>0:c.value===0)),f=p(()=>o.value.fadeImage?o.value.inverted?1-m.value:m.value:void 0),s=p(()=>{var I,k;if(o.value.hide&&o.value.inverted)return 0;const w=((I=t.value)==null?void 0:I.contentHeight)??0,S=((k=t.value)==null?void 0:k.extensionHeight)??0;return w+S});va(p(()=>!!e.scrollBehavior),()=>{ma(()=>{o.value.hide?o.value.inverted?l.value=c.value>v.value:l.value=d.value||c.valueparseInt(e.order,10)),position:_e(e,"location"),layoutSize:s,elementSize:B(void 0),active:l,absolute:_e(e,"absolute")});return ve(()=>{const[w]=dt.filterProps(e);return r(dt,G({ref:t,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...y.value,"--v-toolbar-image-opacity":f.value,height:void 0,...g.value},e.style]},w,{collapse:i.value,flat:b.value}),a)}),{}}});const Rn=J({scrollable:Boolean,...be(),...Se({tag:"main"})},"VMain"),vt=de()({name:"VMain",props:Rn(),setup(e,n){let{slots:a}=n;const{mainStyles:t}=Ea(),{ssrBootStyles:l}=Ze();return ve(()=>r(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[t.value,l.value,e.style]},{default:()=>{var o,u;return[e.scrollable?r("div",{class:"v-main__scroller"},[(o=a.default)==null?void 0:o.call(a)]):(u=a.default)==null?void 0:u.call(a)]}})),{}}});function On(e){let{rootEl:n,isSticky:a,layoutItemStyles:t}=e;const l=B(!1),o=B(0),u=p(()=>{const d=typeof l.value=="boolean"?"top":l.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,l.value?{[d]:ne(o.value)}:{top:t.value.top}]});pe(()=>{N(a,d=>{d?window.addEventListener("scroll",v,{passive:!0}):window.removeEventListener("scroll",v)},{immediate:!0})}),Ve(()=>{window.removeEventListener("scroll",v)});let c=0;function v(){const d=c>window.scrollY?"up":"down",m=n.value.getBoundingClientRect(),i=parseFloat(t.value.top??0),b=window.scrollY-Math.max(0,o.value-i),f=m.height+Math.max(o.value,i)-window.scrollY-window.innerHeight,s=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;m.height0;a--){if(e[a].t===e[a-1].t)continue;const t=mt(n),l=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(l-t)*Math.abs(l),a===e.length-1&&(n*=.5)}return mt(n)*1e3}function Pn(){const e={};function n(l){Array.from(l.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new fa(Tn))).push([l.timeStamp,o])})}function a(l){Array.from(l.changedTouches).forEach(o=>{delete e[o.identifier]})}function t(l){var d;const o=(d=e[l])==null?void 0:d.values().reverse();if(!o)throw new Error(`No samples for touch id ${l}`);const u=o[0],c=[],v=[];for(const m of o){if(u[0]-m[0]>En)break;c.push({t:m[0],d:m[1].clientX}),v.push({t:m[0],d:m[1].clientY})}return{x:ft(c),y:ft(v),get direction(){const{x:m,y:i}=this,[b,f]=[Math.abs(m),Math.abs(i)];return b>f&&m>=0?"right":b>f&&m<=0?"left":f>b&&i>=0?"down":f>b&&i<=0?"up":In()}}}return{addMovement:n,endTouch:a,getVelocity:t}}function In(){throw new Error}function Ln(e){let{isActive:n,isTemporary:a,width:t,touchless:l,position:o}=e;pe(()=>{window.addEventListener("touchstart",w,{passive:!0}),window.addEventListener("touchmove",S,{passive:!1}),window.addEventListener("touchend",I,{passive:!0})}),Ve(()=>{window.removeEventListener("touchstart",w),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",I)});const u=p(()=>["left","right"].includes(o.value)),{addMovement:c,endTouch:v,getVelocity:d}=Pn();let m=!1;const i=B(!1),b=B(0),f=B(0);let s;function g(_,$){return(o.value==="left"?_:o.value==="right"?document.documentElement.clientWidth-_:o.value==="top"?_:o.value==="bottom"?document.documentElement.clientHeight-_:he())-($?t.value:0)}function y(_){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const x=o.value==="left"?(_-f.value)/t.value:o.value==="right"?(document.documentElement.clientWidth-_-f.value)/t.value:o.value==="top"?(_-f.value)/t.value:o.value==="bottom"?(document.documentElement.clientHeight-_-f.value)/t.value:he();return $?Math.max(0,Math.min(1,x)):x}function w(_){if(l.value)return;const $=_.changedTouches[0].clientX,x=_.changedTouches[0].clientY,V=25,O=o.value==="left"?$document.documentElement.clientWidth-V:o.value==="top"?xdocument.documentElement.clientHeight-V:he(),E=n.value&&(o.value==="left"?$document.documentElement.clientWidth-t.value:o.value==="top"?xdocument.documentElement.clientHeight-t.value:he());(O||E||n.value&&a.value)&&(m=!0,s=[$,x],f.value=g(u.value?$:x,n.value),b.value=y(u.value?$:x),v(_),c(_))}function S(_){const $=_.changedTouches[0].clientX,x=_.changedTouches[0].clientY;if(m){if(!_.cancelable){m=!1;return}const O=Math.abs($-s[0]),E=Math.abs(x-s[1]);(u.value?O>E&&O>3:E>O&&E>3)?(i.value=!0,m=!1):(u.value?E:O)>3&&(m=!1)}if(!i.value)return;_.preventDefault(),c(_);const V=y(u.value?$:x,!1);b.value=Math.max(0,Math.min(1,V)),V>1?f.value=g(u.value?$:x,!0):V<0&&(f.value=g(u.value?$:x,!1))}function I(_){if(m=!1,!i.value)return;c(_),i.value=!1;const $=d(_.changedTouches[0].identifier),x=Math.abs($.x),V=Math.abs($.y);(u.value?x>V&&x>400:V>x&&V>3)?n.value=$.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||he()):n.value=b.value>.5}const k=p(()=>i.value?{transform:o.value==="left"?`translateX(calc(-100% + ${b.value*t.value}px))`:o.value==="right"?`translateX(calc(100% - ${b.value*t.value}px))`:o.value==="top"?`translateY(calc(-100% + ${b.value*t.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${b.value*t.value}px))`:he(),transition:"none"}:void 0);return{isDragging:i,dragProgress:b,dragStyles:k}}function he(){throw new Error}const An=["start","end","left","right","top","bottom"],Dn=J({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>An.includes(e)},sticky:Boolean,...Vt(),...be(),...St(),...Dt(),...kt(),...Se({tag:"nav"}),...Ae()},"VNavigationDrawer"),gt=de()({name:"VNavigationDrawer",props:Dn(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:t,slots:l}=n;const{isRtl:o}=Xe(),{themeClasses:u}=De(e),{borderClasses:c}=Ct(e),{backgroundColorClasses:v,backgroundColorStyles:d}=Fe(_e(e,"color")),{elevationClasses:m}=Rt(e),{mobile:i}=ga(),{roundedClasses:b}=Ot(e),f=ha(),s=Ye(e,"modelValue",null,A=>!!A),{ssrBootStyles:g}=Ze(),{scopeId:y}=ya(),w=T(),S=B(!1),I=p(()=>e.rail&&e.expandOnHover&&S.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),k=p(()=>pa(e.location,o.value)),_=p(()=>!e.permanent&&(i.value||e.temporary)),$=p(()=>e.sticky&&!_.value&&k.value!=="bottom");e.expandOnHover&&e.rail!=null&&N(S,A=>t("update:rail",!A)),e.disableResizeWatcher||N(_,A=>!e.permanent&&He(()=>s.value=!A)),!e.disableRouteWatcher&&f&&N(f.currentRoute,()=>_.value&&(s.value=!1)),N(()=>e.permanent,A=>{A&&(s.value=!0)}),pt(()=>{e.modelValue!=null||_.value||(s.value=e.permanent||!i.value)});const{isDragging:x,dragProgress:V,dragStyles:O}=Ln({isActive:s,isTemporary:_,width:I,touchless:_e(e,"touchless"),position:k}),E=p(()=>{const A=_.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):I.value;return x.value?A*V.value:A}),{layoutItemStyles:D,layoutItemScrimStyles:U}=jt({id:e.name,order:p(()=>parseInt(e.order,10)),position:k,layoutSize:E,elementSize:I,active:p(()=>s.value||x.value),disableTransitions:p(()=>x.value),absolute:p(()=>e.absolute||$.value&&typeof Y.value!="string")}),{isStuck:Y,stickyStyles:Q}=On({rootEl:w,isSticky:$,layoutItemStyles:D}),se=Fe(p(()=>typeof e.scrim=="string"?e.scrim:null)),ke=p(()=>({...x.value?{opacity:V.value*.2,transition:"none"}:void 0,...U.value}));Et({VList:{bgColor:"transparent"}});function me(){S.value=!0}function fe(){S.value=!1}return ve(()=>{const A=l.image||e.image;return r(K,null,[r(e.tag,G({ref:w,onMouseenter:me,onMouseleave:fe,class:["v-navigation-drawer",`v-navigation-drawer--${k.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":S.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":_.value,"v-navigation-drawer--active":s.value,"v-navigation-drawer--sticky":$.value},u.value,v.value,c.value,m.value,b.value,e.class],style:[d.value,D.value,O.value,g.value,Q.value,e.style]},y,a),{default:()=>{var P,F,j,ge;return[A&&r("div",{key:"image",class:"v-navigation-drawer__img"},[l.image?(P=l.image)==null?void 0:P.call(l,{image:e.image}):r("img",{src:e.image,alt:""},null)]),l.prepend&&r("div",{class:"v-navigation-drawer__prepend"},[(F=l.prepend)==null?void 0:F.call(l)]),r("div",{class:"v-navigation-drawer__content"},[(j=l.default)==null?void 0:j.call(l)]),l.append&&r("div",{class:"v-navigation-drawer__append"},[(ge=l.append)==null?void 0:ge.call(l)])]}}),r(ba,{name:"fade-transition"},{default:()=>[_.value&&(x.value||s.value)&&!!e.scrim&&r("div",G({class:["v-navigation-drawer__scrim",se.backgroundColorClasses.value],style:[ke.value,se.backgroundColorStyles.value],onClick:()=>s.value=!1},y),null)]})])}),{isStuck:Y}}}),jn={components:{AuthForm:rn,OnlineUsers:cn,CardUsers:Lt,CardLike:pn},mixins:[wa],setup(){$a();const e=_a(),n=bt(),a=xa(),t=Ia(),l=We(),o=T(!0),u=T(!0),c=T(!1),v=T(!1),d=T(!1),m=T(!1),i=y=>y.slice(0,2).toUpperCase(),b=()=>{a.global.name.value=a.global.current.value.dark?"light":"dark"};t.loadlinks();const f=[{name:"Структура",ico:"mdi-source-branch",submenu:[{name:"ОКиБ",path:"/okib"}]},{name:"Сотрудники",ico:"mdi-account-multiple-outline",submenu:[{name:"Справочник",link:"http://10.252.44.33/accounting6/members.php"},{name:"О пользователе",ico:"mdi-account",path:"/userinfo"}]},{name:"Деятельность",ico:"mdi-bulletin-board",submenu:[{name:"Обеспечивающая",path:"/providing"}]},{name:"Новости",ico:"mdi-newspaper",path:"/news"},{name:"Безопасность",ico:"mdi-routes",path:"/securyty"},{name:"О портале",ico:"mdi-information-variant",path:"/portal"},{name:"Об инспекции",ico:"mdi-city",path:"/inspection"},{name:"К празднику",ico:"mdi-cake-variant",path:"/fnshol"}],s=p(()=>new URL("/assets/FNS-logo-xs-e0e2f5b0.png",self.location).href);return{theme:a,mainmenuStore:t,accountStore:l,drawer:o,drawer_right:u,toggleTheme:b,navigations:f,imageSrc:s,getcard:async()=>{c.value=!0},menuGetUserDialog:c,LikeDialog:v,appStore:n,rail:d,showTooltip:m,menuTruncated:i,router:e}}},Mn=M("span",null,"F.A.Q.",-1),Bn=M("span",null," Сменить тему",-1),zn=M("span",null," Поиск ",-1),Nn=M("span",null," Скрыть пользователей ",-1),Un=M("span",null," Выход ",-1),Hn=M("div",null,[M("p",{class:"text-center"},"Добро пожаловать на портал МИ ФНС России по ЦОД № 2"),M("p",{class:"mt-3 text-subtitle-1 text-center"},"Авторизуйтесь для получения доступа к контенту портала")],-1);function Fn(e,n,a,t,l,o){const u=ye("Card-users"),c=ye("Card-like"),v=ye("Auth-form"),d=ye("router-view"),m=ye("Online-users");return R(),L(wn,null,{default:h(()=>[r(Cn,{elevation:2,density:"compact",color:"app_bar",class:"pl-4"},{image:h(()=>[r(Tt,{class:"bggrad"})]),append:h(()=>[t.accountStore.cod2user?(R(),ae(K,{key:0},[r(Oe,{class:"bg-transparent",color:"black_and_white",density:"compact","prepend-avatar":t.accountStore.user.photo,title:t.accountStore.user.fio,subtitle:t.accountStore.user.post,variant:"text",onClick:t.getcard},null,8,["prepend-avatar","title","subtitle","onClick"]),r(Ee,{modelValue:t.menuGetUserDialog,"onUpdate:modelValue":n[2]||(n[2]=i=>t.menuGetUserDialog=i),persistent:"",width:"600"},{default:h(()=>[r(u,{menuGetUserDialog:t.menuGetUserDialog,loging:t.accountStore.user.login,onMenusClose:n[1]||(n[1]=i=>t.menuGetUserDialog=!1)},null,8,["menuGetUserDialog","loging"])]),_:1},8,["modelValue"]),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white"},i,{dark:"",to:"/faq",icon:"mdi-comment-question-outline"}),null,16)]),default:h(()=>[Mn]),_:1}),r(Ee,{modelValue:t.LikeDialog,"onUpdate:modelValue":n[4]||(n[4]=i=>t.LikeDialog=i),persistent:"",width:"800"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white"},i,{dark:"",icon:"mdi-thumb-up-outline"}),{default:h(()=>[r(ee),r(W,{activator:"parent",location:"bottom"},{default:h(()=>[z("Обратная связь")]),_:1})]),_:2},1040)]),default:h(()=>[r(c,{LikeDialog:t.LikeDialog,onMenusClose:n[3]||(n[3]=i=>t.LikeDialog=!1)},null,8,["LikeDialog"])]),_:1},8,["modelValue"]),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,{icon:"",onClick:t.toggleTheme},{default:h(()=>[r(ee,G(i,{class:"mr-1",color:"lampa"}),{default:h(()=>[z(" mdi-lightbulb-outline ")]),_:2},1040)]),_:2},1032,["onClick"])]),default:h(()=>[Bn]),_:1}),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white",icon:"mdi-magnify"},i),null,16)]),default:h(()=>[zn]),_:1}),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white",icon:"mdi-account-multiple-outline",onClick:n[5]||(n[5]=b=>t.drawer_right=!t.drawer_right)},i),null,16)]),default:h(()=>[Nn]),_:1}),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white",icon:"mdi-logout",onClick:t.accountStore.logout},i),null,16,["onClick"])]),default:h(()=>[Un]),_:1})],64)):(R(),L(re,{key:1,justify:"center"},{default:h(()=>[r(v)]),_:1}))]),default:h(()=>[t.accountStore.cod2user?(R(),L(ee,{key:0,class:"px-3",size:"20",color:"black_and_white",icon:t.rail?"mdi-chevron-right":"mdi-chevron-left",onClick:n[0]||(n[0]=i=>t.rail=!t.rail)},null,8,["icon"])):le("",!0),r(Oe,{class:"bg-transparent py",color:"black_and_white",density:"compact","prepend-avatar":t.imageSrc,title:"Портал МИ ФНС России по ЦОД № 2",variant:"text",to:"/"},null,8,["prepend-avatar"])]),_:1}),t.accountStore.cod2user?(R(),L(gt,{key:0,width:245,rail:t.rail,permanent:"",modelValue:t.drawer,"onUpdate:modelValue":n[7]||(n[7]=i=>t.drawer=i)},{default:h(()=>[r(re,{class:"my-0 h-100"},{default:h(()=>[r(Z,{class:"flex-column d-flex"},{default:h(()=>[r(re,null,{default:h(()=>[r(Z,null,{default:h(()=>[r(ze,{nav:"",density:"compact"},{default:h(()=>[(R(!0),ae(K,null,we(t.navigations,(i,b)=>(R(),ae(K,null,["submenu"in i?(R(),L(ka,{class:Va(t.rail?"railmenu":""),key:b,value:i.name},{activator:h(({props:f})=>[r(ue,G(f,{title:i.name,"prepend-icon":i.ico}),{default:h(()=>[t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(i.name),1)]),_:2},1024)):le("",!0)]),_:2},1040,["title","prepend-icon"])]),default:h(()=>[(R(!0),ae(K,null,we(i.submenu,(f,s)=>(R(),L(ue,{href:f.link,key:s,value:f.name,title:t.rail?t.menuTruncated(f.name):f.name,to:f.path,target:f.link?"_blank":""},{default:h(()=>[t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(f.name),1)]),_:2},1024)):le("",!0)]),_:2},1032,["href","value","title","to","target"]))),128))]),_:2},1032,["class","value"])):(R(),L(ue,{key:i.key,title:i.name,value:i.name,href:i.link,to:i.path,color:"navigation"},{prepend:h(()=>[r(ee,{icon:i.ico},null,8,["icon"]),t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(i.name),1)]),_:2},1024)):le("",!0)]),_:2},1032,["title","value","href","to"]))],64))),256))]),_:1}),r(ze,{nav:"",density:"compact"},{default:h(()=>[(R(!0),ae(K,null,we(t.mainmenuStore.portallinks,i=>(R(),L(ue,{key:i.name,title:i.name,value:i.name,href:i.link,color:"app_bar",target:i.link?"_blank":""},{prepend:h(()=>[r(ee,{icon:i.imagecode},null,8,["icon"]),t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(i.name),1)]),_:2},1024)):le("",!0)]),_:2},1032,["title","value","href","target"]))),128))]),_:1})]),_:1})]),_:1}),r(re,{class:"flex-grow-0"},{default:h(()=>[r(Z,{class:"py-0 pl-1 d-flex flex-column"},{default:h(()=>[r(ze,{class:"d-flex flex-column"},{default:h(()=>[t.rail?(R(),L(ue,{key:1,class:"align-center ml-2"},{default:h(()=>[r(W,{modelValue:t.showTooltip,"onUpdate:modelValue":n[6]||(n[6]=i=>t.showTooltip=i),location:"top"},{activator:h(({props:i})=>[r(ee,G(i,{color:"grey"}),{default:h(()=>[z(" mdi-account-eye ")]),_:2},1040)]),default:h(()=>[M("p",null,"Посещений всего: "+H(t.appStore.countvisitor.totalvisit),1),r(ce),M("p",null,"Посещений сегодня: "+H(t.appStore.countvisitor.visittoday),1),r(ce),M("p",null,"Уникальных посещений: "+H(t.appStore.countvisitor.uniqtoday),1)]),_:1},8,["modelValue"])]),_:1})):(R(),L(ue,{key:0,class:"text-caption font-weight-bold text-truncate"},{default:h(()=>[M("p",null,"Посещений всего:"+H(t.appStore.countvisitor.totalvisit),1),r(ce),M("p",null,"Посещений сегодня: "+H(t.appStore.countvisitor.visittoday),1),r(ce),M("p",null,"Уникальных посещений: "+H(t.appStore.countvisitor.uniqtoday),1),r(ce)]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["rail","modelValue"])):le("",!0),t.accountStore.cod2user?(R(),L(vt,{key:1,class:"d-flex bg-main_theme"},{default:h(()=>[r(d)]),_:1})):(R(),L(vt,{key:2,class:"d-flex justify-center align-center text-h3 bg-teal-lighten-2"},{default:h(()=>[Hn]),_:1})),t.accountStore.cod2user?(R(),L(gt,{key:3,modelValue:t.drawer_right,"onUpdate:modelValue":n[8]||(n[8]=i=>t.drawer_right=i),rail:"",permanent:"",location:"right",onClick:n[9]||(n[9]=i=>t.rail=!1)},{default:h(()=>[r(m)]),_:1},8,["modelValue"])):le("",!0)]),_:1})}const tl=Le(jn,[["render",Fn]]);export{tl as default}; +import{p as J,i as $e,c as p,r as T,a as te,b as ne,d as ht,s as B,o as pe,e as Re,f as Wt,h as yt,j as Yt,k as Xt,l as Ve,m as Zt,n as Kt,q as Jt,t as pt,w as N,u as Ue,v as C,x as Qt,y as ea,z as He,_ as Le,A as We,B as bt,C as R,D as L,E as h,F as r,V as ee,G as z,H as G,I as wt,J as $t,K as re,L as Z,M as _t,N as ta,O as aa,P as na,Q as la,R as Oe,S as M,T as oa,U as ra,W as ia,X as ye,Y as ae,Z as K,$ as we,a0 as Qe,a1 as be,a2 as sa,a3 as ua,a4 as Se,a5 as Ae,a6 as de,a7 as ca,a8 as De,a9 as Ye,aa as xt,ab as da,ac as ve,ad as H,ae as le,af as et,ag as Xe,ah as Vt,ai as St,aj as kt,ak as Fe,al as _e,am as Ct,an as Rt,ao as Ot,ap as Et,aq as Tt,ar as Be,as as va,at as ma,au as fa,av as ga,aw as ha,ax as ya,ay as pa,az as ba,aA as wa,aB as $a,aC as _a,aD as xa,aE as Va}from"./index-cf33b3b8.js";import{u as Sa,V as q}from"./VBtn-11d9d7ef.js";import{V as Pt}from"./VContainer-a91b572b.js";import{V as tt,a as Ee,b as ue,c as ce,d as ze,e as ka}from"./VList-30a0199c.js";import{V as It}from"./VSpacer-0a06d07c.js";import{C as Lt,V as W}from"./VTooltip-04fe483e.js";import{V as Ca,u as Ze}from"./VTextarea-eca486a5.js";import{V as Ra}from"./group-2cdf27ee.js";import"./VInput-6b41ac51.js";import"./VWindowItem-46132c15.js";const Te=Symbol.for("vuetify:layout"),At=Symbol.for("vuetify:layout-item"),at=1e3,Oa=J({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),Dt=J({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Ea(){const e=$e(Te);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function jt(e){const n=$e(Te);if(!n)throw new Error("[Vuetify] Could not find injected layout");const a=e.id??`layout-item-${yt()}`,t=ht("useLayoutItem");Re(At,{id:a});const l=B(!1);Yt(()=>l.value=!0),Xt(()=>l.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:u}=n.register(t,{...e,active:p(()=>l.value?!1:e.active.value),id:a});return Ve(()=>n.unregister(a)),{layoutItemStyles:o,layoutRect:n.layoutRect,layoutItemScrimStyles:u}}const Ta=(e,n,a,t)=>{let l={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...l}}];for(const u of e){const c=n.get(u),v=a.get(u),d=t.get(u);if(!c||!v||!d)continue;const m={...l,[c.value]:parseInt(l[c.value],10)+(d.value?parseInt(v.value,10):0)};o.push({id:u,layer:m}),l=m}return o};function Pa(e){const n=$e(Te,null),a=p(()=>n?n.rootZIndex.value-100:at),t=T([]),l=te(new Map),o=te(new Map),u=te(new Map),c=te(new Map),v=te(new Map),{resizeRef:d,contentRect:m}=Sa(),i=p(()=>{const $=new Map,x=e.overlaps??[];for(const V of x.filter(O=>O.includes(":"))){const[O,E]=V.split(":");if(!t.value.includes(O)||!t.value.includes(E))continue;const D=l.get(O),U=l.get(E),Y=o.get(O),Q=o.get(E);!D||!U||!Y||!Q||($.set(E,{position:D.value,amount:parseInt(Y.value,10)}),$.set(O,{position:U.value,amount:-parseInt(Q.value,10)}))}return $}),b=p(()=>{const $=[...new Set([...u.values()].map(V=>V.value))].sort((V,O)=>V-O),x=[];for(const V of $){const O=t.value.filter(E=>{var D;return((D=u.get(E))==null?void 0:D.value)===V});x.push(...O)}return Ta(x,l,o,c)}),f=p(()=>!Array.from(v.values()).some($=>$.value)),s=p(()=>b.value[b.value.length-1].layer),g=p(()=>({"--v-layout-left":ne(s.value.left),"--v-layout-right":ne(s.value.right),"--v-layout-top":ne(s.value.top),"--v-layout-bottom":ne(s.value.bottom),...f.value?void 0:{transition:"none"}})),y=p(()=>b.value.slice(1).map(($,x)=>{let{id:V}=$;const{layer:O}=b.value[x],E=o.get(V),D=l.get(V);return{id:V,...O,size:Number(E.value),position:D.value}})),w=$=>y.value.find(x=>x.id===$),S=ht("createLayout"),I=B(!1);pe(()=>{I.value=!0}),Re(Te,{register:($,x)=>{let{id:V,order:O,position:E,layoutSize:D,elementSize:U,active:Y,disableTransitions:Q,absolute:se}=x;u.set(V,O),l.set(V,E),o.set(V,D),c.set(V,Y),Q&&v.set(V,Q);const me=Wt(At,S==null?void 0:S.vnode).indexOf($);me>-1?t.value.splice(me,0,V):t.value.push(V);const fe=p(()=>y.value.findIndex(j=>j.id===V)),A=p(()=>a.value+b.value.length*2-fe.value*2),P=p(()=>{const j=E.value==="left"||E.value==="right",ge=E.value==="right",qt=E.value==="bottom",Je={[E.value]:0,zIndex:A.value,transform:`translate${j?"X":"Y"}(${(Y.value?0:-110)*(ge||qt?-1:1)}%)`,position:se.value||a.value!==at?"absolute":"fixed",...f.value?void 0:{transition:"none"}};if(!I.value)return Je;const X=y.value[fe.value];if(!X)throw new Error(`[Vuetify] Could not find layout item "${V}"`);const Me=i.value.get(V);return Me&&(X[Me.position]+=Me.amount),{...Je,height:j?`calc(100% - ${X.top}px - ${X.bottom}px)`:U.value?`${U.value}px`:void 0,left:ge?void 0:`${X.left}px`,right:ge?`${X.right}px`:void 0,top:E.value!=="bottom"?`${X.top}px`:void 0,bottom:E.value!=="top"?`${X.bottom}px`:void 0,width:j?U.value?`${U.value}px`:void 0:`calc(100% - ${X.left}px - ${X.right}px)`}}),F=p(()=>({zIndex:A.value-1}));return{layoutItemStyles:P,layoutItemScrimStyles:F,zIndex:A}},unregister:$=>{u.delete($),l.delete($),o.delete($),c.delete($),v.delete($),t.value=t.value.filter(x=>x!==$)},mainRect:s,mainStyles:g,getLayoutItem:w,items:y,layoutRect:m,rootZIndex:a});const k=p(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),_=p(()=>({zIndex:a.value,position:n?"relative":void 0,overflow:n?"hidden":void 0}));return{layoutClasses:k,layoutStyles:_,getLayoutItem:w,items:y,layoutRect:m,layoutRef:d}}const Ia=Zt("MainmenuStore",()=>{const e=T([]);return{portallinks:e,loadlinks:async()=>{const a=await Kt.get("api/navigation/links/");e.value=a.data}}});function nt(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function oe(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((a,t)=>(n.includes(t)||(a[t]=C(e[t])),a),{})}function Pe(e){return typeof e=="function"}function Aa(e){return Qt(e)||ea(e)}function Mt(e,n,a){let t=e;const l=n.split(".");for(let o=0;oe.some(t=>Mt(n,t,{[a]:!1})[a]))}function ot(e,n,a){return p(()=>e.reduce((t,l)=>{const o=Mt(n,l,{[a]:!1})[a]||[];return t.concat(o)},[]))}function Bt(e,n,a,t){return e.call(t,C(n),C(a),t)}function zt(e){return e.$valid!==void 0?!e.$valid:!e}function Da(e,n,a,t,l,o,u){let{$lazy:c,$rewardEarly:v}=l,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],m=arguments.length>8?arguments[8]:void 0,i=arguments.length>9?arguments[9]:void 0,b=arguments.length>10?arguments[10]:void 0;const f=T(!!t.value),s=T(0);a.value=!1;const g=N([n,t].concat(d,b),()=>{if(c&&!t.value||v&&!i.value&&!a.value)return;let y;try{y=Bt(e,n,m,u)}catch(w){y=Promise.reject(w)}s.value++,a.value=!!s.value,f.value=!1,Promise.resolve(y).then(w=>{s.value--,a.value=!!s.value,o.value=w,f.value=zt(w)}).catch(w=>{s.value--,a.value=!!s.value,o.value=w,f.value=!0})},{immediate:!0,deep:typeof n=="object"});return{$invalid:f,$unwatch:g}}function ja(e,n,a,t,l,o,u,c){let{$lazy:v,$rewardEarly:d}=t;const m=()=>({}),i=p(()=>{if(v&&!a.value||d&&!c.value)return!1;let b=!0;try{const f=Bt(e,n,u,o);l.value=f,b=zt(f)}catch(f){l.value=f}return b});return{$unwatch:m,$invalid:i}}function Ma(e,n,a,t,l,o,u,c,v,d,m){const i=T(!1),b=e.$params||{},f=T(null);let s,g;e.$async?{$invalid:s,$unwatch:g}=Da(e.$validator,n,i,a,t,f,l,e.$watchTargets,v,d,m):{$invalid:s,$unwatch:g}=ja(e.$validator,n,a,t,f,l,v,d);const y=e.$message;return{$message:Pe(y)?p(()=>y(lt({$pending:i,$invalid:s,$params:lt(b),$model:n,$response:f,$validator:o,$propertyPath:c,$property:u}))):y||"",$params:b,$pending:i,$invalid:s,$response:f,$unwatch:g}}function Ba(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=C(e),a=Object.keys(n),t={},l={},o={};let u=null;return a.forEach(c=>{const v=n[c];switch(!0){case Pe(v.$validator):t[c]=v;break;case Pe(v):t[c]={$validator:v};break;case c==="$validationGroups":u=v;break;case c.startsWith("$"):o[c]=v;break;default:l[c]=v}}),{rules:t,nestedValidators:l,config:o,validationGroups:u}}const za="__root";function Na(e,n,a,t,l,o,u,c,v){const d=Object.keys(e),m=t.get(l,e),i=T(!1),b=T(!1),f=T(0);if(m){if(!m.$partial)return m;m.$unwatch(),i.value=m.$dirty.value}const s={$dirty:i,$path:l,$touch:()=>{i.value||(i.value=!0)},$reset:()=>{i.value&&(i.value=!1)},$commit:()=>{}};return d.length?(d.forEach(g=>{s[g]=Ma(e[g],n,s.$dirty,o,u,g,a,l,v,b,f)}),s.$externalResults=p(()=>c.value?[].concat(c.value).map((g,y)=>({$propertyPath:l,$property:a,$validator:"$externalResults",$uid:`${l}-externalResult-${y}`,$message:g,$params:{},$response:null,$pending:!1})):[]),s.$invalid=p(()=>{const g=d.some(y=>C(s[y].$invalid));return b.value=g,!!s.$externalResults.value.length||g}),s.$pending=p(()=>d.some(g=>C(s[g].$pending))),s.$error=p(()=>s.$dirty.value?s.$pending.value||s.$invalid.value:!1),s.$silentErrors=p(()=>d.filter(g=>C(s[g].$invalid)).map(g=>{const y=s[g];return te({$propertyPath:l,$property:a,$validator:g,$uid:`${l}-${g}`,$message:y.$message,$params:y.$params,$response:y.$response,$pending:y.$pending})}).concat(s.$externalResults.value)),s.$errors=p(()=>s.$dirty.value?s.$silentErrors.value:[]),s.$unwatch=()=>d.forEach(g=>{s[g].$unwatch()}),s.$commit=()=>{b.value=!0,f.value=Date.now()},t.set(l,e,s),s):(m&&t.set(l,e,s),s)}function Ua(e,n,a,t,l,o,u){const c=Object.keys(e);return c.length?c.reduce((v,d)=>(v[d]=Ge({validations:e[d],state:n,key:d,parentKey:a,resultsCache:t,globalConfig:l,instance:o,externalResults:u}),v),{}):{}}function Ha(e,n,a){const t=p(()=>[n,a].filter(s=>s).reduce((s,g)=>s.concat(Object.values(C(g))),[])),l=p({get(){return e.$dirty.value||(t.value.length?t.value.every(s=>s.$dirty):!1)},set(s){e.$dirty.value=s}}),o=p(()=>{const s=C(e.$silentErrors)||[],g=t.value.filter(y=>(C(y).$silentErrors||[]).length).reduce((y,w)=>y.concat(...w.$silentErrors),[]);return s.concat(g)}),u=p(()=>{const s=C(e.$errors)||[],g=t.value.filter(y=>(C(y).$errors||[]).length).reduce((y,w)=>y.concat(...w.$errors),[]);return s.concat(g)}),c=p(()=>t.value.some(s=>s.$invalid)||C(e.$invalid)||!1),v=p(()=>t.value.some(s=>C(s.$pending))||C(e.$pending)||!1),d=p(()=>t.value.some(s=>s.$dirty)||t.value.some(s=>s.$anyDirty)||l.value),m=p(()=>l.value?v.value||c.value:!1),i=()=>{e.$touch(),t.value.forEach(s=>{s.$touch()})},b=()=>{e.$commit(),t.value.forEach(s=>{s.$commit()})},f=()=>{e.$reset(),t.value.forEach(s=>{s.$reset()})};return t.value.length&&t.value.every(s=>s.$dirty)&&i(),{$dirty:l,$errors:u,$invalid:c,$anyDirty:d,$error:m,$pending:v,$touch:i,$reset:f,$silentErrors:o,$commit:b}}function Ge(e){let{validations:n,state:a,key:t,parentKey:l,childResults:o,resultsCache:u,globalConfig:c={},instance:v,externalResults:d}=e;const m=l?`${l}.${t}`:t,{rules:i,nestedValidators:b,config:f,validationGroups:s}=Ba(n),g=oe(oe({},c),f),y=t?p(()=>{const P=C(a);return P?C(P[t]):void 0}):a,w=oe({},C(d)||{}),S=p(()=>{const P=C(d);return t?P?C(P[t]):void 0:P}),I=Na(i,y,t,u,m,g,v,S,a),k=Ua(b,y,m,u,g,v,S),_={};s&&Object.entries(s).forEach(P=>{let[F,j]=P;_[F]={$invalid:Ne(j,k,"$invalid"),$error:Ne(j,k,"$error"),$pending:Ne(j,k,"$pending"),$errors:ot(j,k,"$errors"),$silentErrors:ot(j,k,"$silentErrors")}});const{$dirty:$,$errors:x,$invalid:V,$anyDirty:O,$error:E,$pending:D,$touch:U,$reset:Y,$silentErrors:Q,$commit:se}=Ha(I,k,o),ke=t?p({get:()=>C(y),set:P=>{$.value=!0;const F=C(a),j=C(d);j&&(j[t]=w[t]),Ue(F[t])?F[t].value=P:F[t]=P}}):null;t&&g.$autoDirty&&N(y,()=>{$.value||U();const P=C(d);P&&(P[t]=w[t])},{flush:"sync"});async function me(){return U(),g.$rewardEarly&&(se(),await He()),await He(),new Promise(P=>{if(!D.value)return P(!V.value);const F=N(D,()=>{P(!V.value),F()})})}function fe(P){return(o.value||{})[P]}function A(){Ue(d)?d.value=w:Object.keys(w).length===0?Object.keys(d).forEach(P=>{delete d[P]}):Object.assign(d,w)}return te(oe(oe(oe({},I),{},{$model:ke,$dirty:$,$error:E,$errors:x,$invalid:V,$anyDirty:O,$pending:D,$touch:U,$reset:Y,$path:m||za,$silentErrors:Q,$validate:me,$commit:se},o&&{$getResultsForChild:fe,$clearExternalResults:A,$validationGroups:_}),k))}class Fa{constructor(){this.storage=new Map}set(n,a,t){this.storage.set(n,{rules:a,result:t})}checkRulesValidity(n,a,t){const l=Object.keys(t),o=Object.keys(a);return o.length!==l.length||!o.every(c=>l.includes(c))?!1:o.every(c=>a[c].$params?Object.keys(a[c].$params).every(v=>C(t[c].$params[v])===C(a[c].$params[v])):!0)}get(n,a){const t=this.storage.get(n);if(!t)return;const{rules:l,result:o}=t,u=this.checkRulesValidity(n,a,l),c=o.$unwatch?o.$unwatch:()=>({});return u?o:{$dirty:o.$dirty,$partial:!0,$unwatch:c}}}const Ce={COLLECT_ALL:!0,COLLECT_NONE:!1},rt=Symbol("vuelidate#injectChildResults"),it=Symbol("vuelidate#removeChildResults");function Ga(e){let{$scope:n,instance:a}=e;const t={},l=T([]),o=p(()=>l.value.reduce((m,i)=>(m[i]=C(t[i]),m),{}));function u(m,i){let{$registerAs:b,$scope:f,$stopPropagation:s}=i;s||n===Ce.COLLECT_NONE||f===Ce.COLLECT_NONE||n!==Ce.COLLECT_ALL&&n!==f||(t[b]=m,l.value.push(b))}a.__vuelidateInjectInstances=[].concat(a.__vuelidateInjectInstances||[],u);function c(m){l.value=l.value.filter(i=>i!==m),delete t[m]}a.__vuelidateRemoveInstances=[].concat(a.__vuelidateRemoveInstances||[],c);const v=$e(rt,[]);Re(rt,a.__vuelidateInjectInstances);const d=$e(it,[]);return Re(it,a.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:v,removeValidationResultsFromParent:d}}function Nt(e){return new Proxy(e,{get(n,a){return typeof n[a]=="object"?Nt(n[a]):p(()=>n[a])}})}let st=0;function qa(e,n){var a;let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(t=e,e=void 0,n=void 0);let{$registerAs:l,$scope:o=Ce.COLLECT_ALL,$stopPropagation:u,$externalResults:c,currentVueInstance:v}=t;const d=v||((a=Jt())===null||a===void 0?void 0:a.proxy),m=d?d.$options:{};l||(st+=1,l=`_vuelidate_${st}`);const i=T({}),b=new Fa,{childResults:f,sendValidationResultsToParent:s,removeValidationResultsFromParent:g}=d?Ga({$scope:o,instance:d}):{childResults:T({})};if(!e&&m.validations){const y=m.validations;n=T({}),pt(()=>{n.value=d,N(()=>Pe(y)?y.call(n.value,new Nt(n.value)):y,w=>{i.value=Ge({validations:w,state:n,childResults:f,resultsCache:b,globalConfig:t,instance:d,externalResults:c||d.vuelidateExternalResults})},{immediate:!0})}),t=m.validationsConfig||t}else{const y=Ue(e)||Aa(e)?e:te(e||{});N(y,w=>{i.value=Ge({validations:w,state:n,childResults:f,resultsCache:b,globalConfig:t,instance:d??{},externalResults:c})},{immediate:!0})}return d&&(s.forEach(y=>y(i,{$registerAs:l,$scope:o,$stopPropagation:u})),Ve(()=>g.forEach(y=>y(l)))),p(()=>oe(oe({},C(i.value)),f.value))}function ut(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),a.push.apply(a,t)}return a}function xe(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:[];const a=je(e);return xe(xe({},a),{},{$async:!0,$watchTargets:n})}function Ka(e){return{$validator(n){for(var a=arguments.length,t=new Array(a>1?a-1:0),l=1;l{const v=Object.entries(u).reduce((d,m)=>{let[i,b]=m;const f=e[i]||{},s=Object.entries(f).reduce((g,y)=>{let[w,S]=y;const k=Ht(S).call(this,b,u,c,...t),_=Ut(k);if(g.$data[w]=k,g.$data.$invalid=!_||!!g.$data.$invalid,g.$data.$error=g.$data.$invalid,!_){let $=S.$message||"";const x=S.$params||{};typeof $=="function"&&($=$({$pending:!1,$invalid:!_,$params:x,$model:b,$response:k})),g.$errors.push({$property:i,$message:$,$params:x,$response:k,$model:b,$pending:!1,$validator:w})}return{$valid:g.$valid&&_,$data:g.$data,$errors:g.$errors}},{$valid:!0,$data:{},$errors:[]});return d.$data[i]=s.$data,d.$errors[i]=s.$errors,{$valid:d.$valid&&s.$valid,$data:d.$data,$errors:d.$errors}},{$valid:!0,$data:{},$errors:{}});return{$valid:o.$valid&&v.$valid,$data:o.$data.concat(v.$data),$errors:o.$errors.concat(v.$errors)}},{$valid:!0,$data:[],$errors:[]})},$message:n=>{let{$response:a}=n;return a?a.$errors.map(t=>Object.values(t).map(l=>l.map(o=>o.$message)).reduce((l,o)=>l.concat(o),[])):[]}}}const Ke=e=>{if(e=C(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let n in e)return!0;return!1}return!!String(e).length},Ja=e=>(e=C(e),Array.isArray(e)?e.length:typeof e=="object"?Object.keys(e).length:String(e).length);function ie(){for(var e=arguments.length,n=new Array(e),a=0;a(t=C(t),!Ke(t)||n.every(l=>(l.lastIndex=0,l.test(t))))}var Ft=Object.freeze({__proto__:null,forEach:Ka,len:Ja,normalizeValidatorObject:je,regex:ie,req:Ke,unwrap:C,unwrapNormalizedValidator:Ht,unwrapValidatorResponse:Ut,withAsync:Za,withMessage:Xa,withParams:Ya});ie(/^[a-zA-Z]*$/);ie(/^[a-zA-Z0-9]*$/);ie(/^\d*(\.\d+)?$/);const Qa=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;ie(Qa);function en(e){return typeof e=="string"&&(e=e.trim()),Ke(e)}var tn={$validator:en,$message:"Value is required",$params:{type:"required"}};const an=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;ie(an);ie(/(^[0-9]*$)|(^-[0-9]+$)/);ie(/^[-]?\d*(\.\d+)?$/);const ct=Ft.withMessage("Обязательное поле",tn),nn={setup(){const e=We(),n=bt(),a=T(!1),t=te({username:"9966-00-",password:""}),l=p(()=>({username:{req:ct,latin:Ft.withMessage(()=>'Логин имееет вид "0000-00-000"',v=>/(\d{4,4}[-]\d{2,2}[-]\d{3,3})+$/.test(v.toString()))},password:{req:ct}})),o=qa(l,t),u=v=>o.value[v].$error?o.value[v].$errors[0].$message:"",c=async()=>{o.value.$error?console.log(!0):await e.logging(t)};return pe(()=>{o.value.$validate()}),{accountStore:e,AppStore:n,menuAuthDialog:a,anon:t,v$:o,logging:c,errorer:u}}},ln=M("span",{class:"text-h5"},"Вход в портал",-1);function on(e,n,a,t,l,o){return R(),L(Ee,{modelValue:t.menuAuthDialog,"onUpdate:modelValue":n[3]||(n[3]=u=>t.menuAuthDialog=u),persistent:"",width:"400"},{activator:h(({props:u})=>[r(q,G(u,{"append-icon":"mdi-login",color:"black_and_white"}),{prepend:h(()=>[r(ee,{color:"black_and_white"})]),append:h(()=>[r(ee,{color:"black_and_white"})]),default:h(()=>[z(" Войти ")]),_:2},1040)]),default:h(()=>[r(Oe,{onKeyup:la(t.logging,["enter"])},{default:h(()=>[r(wt,null,{default:h(()=>[ln]),_:1}),r($t,null,{default:h(()=>[r(Pt,null,{default:h(()=>[r(re,null,{default:h(()=>[r(Z,{cols:"12",class:"py-0"},{default:h(()=>[r(tt,{modelValue:t.anon.username,"onUpdate:modelValue":n[0]||(n[0]=u=>t.anon.username=u),label:"Логин",variant:"underlined","error-messages":t.errorer("username")},null,8,["modelValue","error-messages"])]),_:1}),r(Z,{cols:"12",class:"py-0"},{default:h(()=>[r(tt,{modelValue:t.anon.password,"onUpdate:modelValue":n[1]||(n[1]=u=>t.anon.password=u),label:"Пароль",variant:"underlined",type:"password","error-messages":t.errorer("password")},null,8,["modelValue","error-messages"])]),_:1})]),_:1})]),_:1})]),_:1}),r(_t,null,{default:h(()=>[r(It),r(q,{color:"modal_btn",variant:"text",onClick:n[2]||(n[2]=u=>t.menuAuthDialog=!1)},{default:h(()=>[z(" Отмена ")]),_:1}),r(q,{color:"modal_btn",variant:"text",onClick:t.logging},{default:h(()=>[z(" Войти ")]),_:1},8,["onClick"])]),_:1}),ta(r(na,{indeterminate:""},null,512),[[aa,t.AppStore.loading]])]),_:1},8,["onKeyup"])]),_:1},8,["modelValue"])}const rn=Le(nn,[["render",on]]),sn={components:{CardUsers:Lt},setup(){const e=T(""),n=T(!1),a={onliner:function(c){let v=new Set(c);console.log(Array.from(v));let d=Array.from(v);d.splice(d.findIndex(m=>m==t.user.login),1),console.log(t.user.login,"accountStore"),l.value=d}},t=We();let l=T([]);const o=new WebSocket(oa+"ws/watcher/?token="+localStorage.access),u=c=>{e.value=c,n.value=!0};return o.onmessage=c=>{let v=JSON.parse(c.data);a[v.message.action](v.message.data)},N(()=>t.cod2user,function(){t.cod2user.value||o.close()}),{loging:e,menuGetUserDialog:n,onlineuser:l,checkremote:ra,spravURL:ia,whatuser:u,accountStore:t}}};function un(e,n,a,t,l,o){const u=ye("Card-users");return R(),ae("div",null,[(R(!0),ae(K,null,we(t.onlineuser,c=>(R(),L(ue,{key:c,"prepend-avatar":t.checkremote(`${t.spravURL}${c}.jpg`),title:"x",nav:"",onClick:v=>t.whatuser(c)},null,8,["prepend-avatar","onClick"]))),128)),r(Ee,{modelValue:t.menuGetUserDialog,"onUpdate:modelValue":n[1]||(n[1]=c=>t.menuGetUserDialog=c),persistent:"",width:"600"},{default:h(()=>[r(u,{menuGetUserDialog:t.menuGetUserDialog,loging:t.loging,onMenusClose:n[0]||(n[0]=c=>t.menuGetUserDialog=!1)},null,8,["menuGetUserDialog","loging"])]),_:1},8,["modelValue"])])}const cn=Le(sn,[["render",un]]);const dn=J({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Qe,default:"$ratingEmpty"},fullIcon:{type:Qe,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...be(),...sa(),...ua(),...Se(),...Ae()},"VRating"),vn=de()({name:"VRating",props:dn(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const{t}=ca(),{themeClasses:l}=De(e),o=Ye(e,"modelValue"),u=p(()=>xt(parseFloat(o.value),0,+e.length)),c=p(()=>da(Number(e.length),1)),v=p(()=>c.value.flatMap(g=>e.halfIncrements?[g-.5,g]:[g])),d=B(-1),m=p(()=>v.value.map(g=>{const y=e.hover&&d.value>-1,w=u.value>=g,S=d.value>=g,k=(y?S:w)?e.fullIcon:e.emptyIcon,_=e.activeColor??e.color,$=w||S?_:e.color;return{isFilled:w,isHovered:S,icon:k,color:$}})),i=p(()=>[0,...v.value].map(g=>{function y(){d.value=g}function w(){d.value=-1}function S(){e.disabled||e.readonly||(o.value=u.value===g&&e.clearable?0:g)}return{onMouseenter:e.hover?y:void 0,onMouseleave:e.hover?w:void 0,onClick:S}})),b=p(()=>e.name??`v-rating-${yt()}`);function f(g){var V,O;let{value:y,index:w,showStar:S=!0}=g;const{onMouseenter:I,onMouseleave:k,onClick:_}=i.value[w+1],$=`${b.value}-${String(y).replace(".","-")}`,x={color:(V=m.value[w])==null?void 0:V.color,density:e.density,disabled:e.disabled,icon:(O=m.value[w])==null?void 0:O.icon,ripple:e.ripple,size:e.size,variant:"plain"};return r(K,null,[r("label",{for:$,class:{"v-rating__item--half":e.halfIncrements&&y%1>0,"v-rating__item--full":e.halfIncrements&&y%1===0},onMouseenter:I,onMouseleave:k,onClick:_},[r("span",{class:"v-rating__hidden"},[t(e.itemAriaLabel,y,e.length)]),S?a.item?a.item({...m.value[w],props:x,value:y,index:w,rating:u.value}):r(q,x,null):void 0]),r("input",{class:"v-rating__hidden",name:b.value,id:$,type:"radio",value:y,checked:u.value===y,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function s(g){return a["item-label"]?a["item-label"](g):g.label?r("span",null,[g.label]):r("span",null,[z(" ")])}return ve(()=>{var y;const g=!!((y=e.itemLabels)!=null&&y.length)||a["item-label"];return r(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},l.value,e.class],style:e.style},{default:()=>[r(f,{value:0,index:-1,showStar:!1},null),c.value.map((w,S)=>{var I,k;return r("div",{class:"v-rating__wrapper"},[g&&e.itemLabelPosition==="top"?s({value:w,index:S,label:(I=e.itemLabels)==null?void 0:I[S]}):void 0,r("div",{class:"v-rating__item"},[e.halfIncrements?r(K,null,[r(f,{value:w-.5,index:S*2},null),r(f,{value:w,index:S*2+1},null)]):r(f,{value:w,index:S},null)]),g&&e.itemLabelPosition==="bottom"?s({value:w,index:S,label:(k=e.itemLabels)==null?void 0:k[S]}):void 0])})]})}),{}}}),mn={props:{LikeDialog:{type:Boolean,default:!1}},setup(e,n){const a=T({nowcomment:{comment:""},nowrating:[]});function t(){et.get("api/feedback/feedbackdata/").then(v=>{if(a.value=v.data,a.value.nowrating.length==0)for(let d of a.value.basecrit)a.value.nowrating.push({rating:d.rating,crit:d.id,id:null});a.value.nowcomment===null&&(a.value.nowcomment={comment:"",id:null})})}pe(()=>{t()});const l=p(()=>{const d=a.value.nowrating.reduce((i,b)=>i+b.rating,0)/a.value.nowrating.length;return Number.isInteger(d)?d:d.toFixed(1)});function o(){let v="";return l.value>0&&l.value<=3?v="УПС-С! Мы обязательно все исправим":l.value>2&&l.value<=4?v="Спасибо за обратную связь, мы обратим на это внимание":l.value>4&&l.value<5?v="Класс, будем стараться до 5":v="Спасибо за отзыв и высокую оценку ^__^",v}function u(){n.emit("menusClose")}function c(){et.post("api/feedback/feedbackdata/",{nowrating:a.value.nowrating,nowcomment:a.value.nowcomment}).then(v=>{}),u()}return{feedbackdata:a,average:l,menusCloses:u,myLabel:o,feedSend:c}}},fn=M("span",{class:"text-h5"},"Обратная связь",-1),gn={key:0,class:"pl-5"},hn={class:"font-weight-black"};function yn(e,n,a,t,l,o){return R(),L(Oe,{class:"pt-2"},{default:h(()=>[r(wt,null,{default:h(()=>[fn]),_:1}),r($t,{class:"px-2 py-0"},{default:h(()=>[r(Pt,null,{default:h(()=>[r(re,null,{default:h(()=>[r(Z,{class:"flex-grow-0 py-0 text-no-wrap align-self-center text-button"},{default:h(()=>[z(" Оцените сайт ")]),_:1}),r(ce)]),_:1}),(R(!0),ae(K,null,we(t.feedbackdata.basecrit,(u,c)=>(R(),L(re,{key:c},{default:h(()=>[r(Z,{class:"flex-grow-0 pb-0"},{default:h(()=>[r(ee,{size:"large",color:u.color,icon:u.ico},null,8,["color","icon"])]),_:2},1024),r(Z,{class:"pb-0",lg:"3"},{default:h(()=>[z(H(u.name),1)]),_:2},1024),r(Z,{class:"py-0"},{default:h(()=>[r(vn,{modelValue:t.feedbackdata.nowrating[c].rating,"onUpdate:modelValue":v=>t.feedbackdata.nowrating[c].rating=v,hover:"","half-increments":"",color:"yellow"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),r(ce)]),_:2},1024))),128)),r(re,{class:"mt-6"},{default:h(()=>[r(Z,{class:"pa-0 px-3"},{default:h(()=>[r(Ca,{label:"Ваши комментарии сделают портал лучше","hide-details":"",variant:"outlined",rows:"5","row-height":"15",modelValue:t.feedbackdata.nowcomment.comment,"onUpdate:modelValue":n[0]||(n[0]=u=>t.feedbackdata.nowcomment.comment=u)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),r(_t,{class:"pt-0"},{default:h(()=>[t.average<5||t.feedbackdata.nowcomment.id!=null?(R(),ae("small",gn,[z(" Вы оценили сайт на "),M("span",hn,H(t.average),1),z(" "+H(t.myLabel()),1)])):le("",!0),r(It),r(q,{color:"modal_btn",variant:"text",text:"Закрыть",onClick:t.menusCloses},null,8,["onClick"]),r(q,{color:"modal_btn",variant:"text",text:t.feedbackdata.nowcomment.id==null?"Отправить":"Обновить",onClick:t.feedSend},null,8,["text","onClick"])]),_:1})]),_:1})}const pn=Le(mn,[["render",yn]]);const bn=J({...be(),...Oa({fullHeight:!0}),...Ae()},"VApp"),wn=de()({name:"VApp",props:bn(),setup(e,n){let{slots:a}=n;const t=De(e),{layoutClasses:l,layoutStyles:o,getLayoutItem:u,items:c,layoutRef:v}=Pa(e),{rtlClasses:d}=Xe();return ve(()=>{var m;return r("div",{ref:v,class:["v-application",t.themeClasses.value,l.value,d.value,e.class],style:[o.value,e.style]},[r("div",{class:"v-application__wrap"},[(m=a.default)==null?void 0:m.call(a)])])}),{getLayoutItem:u,items:c,theme:t}}});const $n=J({text:String,...be(),...Se()},"VToolbarTitle"),_n=de()({name:"VToolbarTitle",props:$n(),setup(e,n){let{slots:a}=n;return ve(()=>{const t=!!(a.default||a.text||e.text);return r(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var l;return[t&&r("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(l=a.default)==null?void 0:l.call(a)])]}})}),{}}}),xn=[null,"prominent","default","comfortable","compact"],Gt=J({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>xn.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Vt(),...be(),...St(),...kt(),...Se({tag:"header"}),...Ae()},"VToolbar"),dt=de()({name:"VToolbar",props:Gt(),setup(e,n){var f;let{slots:a}=n;const{backgroundColorClasses:t,backgroundColorStyles:l}=Fe(_e(e,"color")),{borderClasses:o}=Ct(e),{elevationClasses:u}=Rt(e),{roundedClasses:c}=Ot(e),{themeClasses:v}=De(e),{rtlClasses:d}=Xe(),m=B(!!(e.extended||(f=a.extension)!=null&&f.call(a))),i=p(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),b=p(()=>m.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Et({VBtn:{variant:"text"}}),ve(()=>{var w;const s=!!(e.title||a.title),g=!!(a.image||e.image),y=(w=a.extension)==null?void 0:w.call(a);return m.value=!!(e.extended||y),r(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},t.value,o.value,u.value,c.value,v.value,d.value,e.class],style:[l.value,e.style]},{default:()=>[g&&r("div",{key:"image",class:"v-toolbar__image"},[a.image?r(Be,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):r(Tt,{key:"image-img",cover:!0,src:e.image},null)]),r(Be,{defaults:{VTabs:{height:ne(i.value)}}},{default:()=>{var S,I,k;return[r("div",{class:"v-toolbar__content",style:{height:ne(i.value)}},[a.prepend&&r("div",{class:"v-toolbar__prepend"},[(S=a.prepend)==null?void 0:S.call(a)]),s&&r(_n,{key:"title",text:e.title},{text:a.title}),(I=a.default)==null?void 0:I.call(a),a.append&&r("div",{class:"v-toolbar__append"},[(k=a.append)==null?void 0:k.call(a)])])]}}),r(Be,{defaults:{VTabs:{height:ne(b.value)}}},{default:()=>[r(Ra,null,{default:()=>[m.value&&r("div",{class:"v-toolbar__extension",style:{height:ne(b.value)}},[y])]})]})]})}),{contentHeight:i,extensionHeight:b}}}),Vn=J({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Sn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:a}=n;let t=0;const l=T(null),o=B(0),u=B(0),c=B(0),v=B(!1),d=B(!1),m=p(()=>Number(e.scrollThreshold)),i=p(()=>xt((m.value-o.value)/m.value||0)),b=()=>{const f=l.value;!f||a&&!a.value||(t=o.value,o.value="window"in f?f.pageYOffset:f.scrollTop,d.value=o.value{u.value=u.value||o.value}),N(v,()=>{u.value=0}),pe(()=>{N(()=>e.scrollTarget,f=>{var g;const s=f?document.querySelector(f):window;s&&s!==l.value&&((g=l.value)==null||g.removeEventListener("scroll",b),l.value=s,l.value.addEventListener("scroll",b,{passive:!0}))},{immediate:!0})}),Ve(()=>{var f;(f=l.value)==null||f.removeEventListener("scroll",b)}),a&&N(a,b,{immediate:!0}),{scrollThreshold:m,currentScroll:o,currentThreshold:c,isScrollActive:v,scrollRatio:i,isScrollingUp:d,savedScroll:u}}const kn=J({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...Gt(),...Dt(),...Vn(),height:{type:[Number,String],default:64}},"VAppBar"),Cn=de()({name:"VAppBar",props:kn(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const t=T(),l=Ye(e,"modelValue"),o=p(()=>{var S;const w=new Set(((S=e.scrollBehavior)==null?void 0:S.split(" "))??[]);return{hide:w.has("hide"),inverted:w.has("inverted"),collapse:w.has("collapse"),elevate:w.has("elevate"),fadeImage:w.has("fade-image")}}),u=p(()=>{const w=o.value;return w.hide||w.inverted||w.collapse||w.elevate||w.fadeImage||!l.value}),{currentScroll:c,scrollThreshold:v,isScrollingUp:d,scrollRatio:m}=Sn(e,{canScroll:u}),i=p(()=>e.collapse||o.value.collapse&&(o.value.inverted?m.value>0:m.value===0)),b=p(()=>e.flat||o.value.elevate&&(o.value.inverted?c.value>0:c.value===0)),f=p(()=>o.value.fadeImage?o.value.inverted?1-m.value:m.value:void 0),s=p(()=>{var I,k;if(o.value.hide&&o.value.inverted)return 0;const w=((I=t.value)==null?void 0:I.contentHeight)??0,S=((k=t.value)==null?void 0:k.extensionHeight)??0;return w+S});va(p(()=>!!e.scrollBehavior),()=>{ma(()=>{o.value.hide?o.value.inverted?l.value=c.value>v.value:l.value=d.value||c.valueparseInt(e.order,10)),position:_e(e,"location"),layoutSize:s,elementSize:B(void 0),active:l,absolute:_e(e,"absolute")});return ve(()=>{const[w]=dt.filterProps(e);return r(dt,G({ref:t,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...y.value,"--v-toolbar-image-opacity":f.value,height:void 0,...g.value},e.style]},w,{collapse:i.value,flat:b.value}),a)}),{}}});const Rn=J({scrollable:Boolean,...be(),...Se({tag:"main"})},"VMain"),vt=de()({name:"VMain",props:Rn(),setup(e,n){let{slots:a}=n;const{mainStyles:t}=Ea(),{ssrBootStyles:l}=Ze();return ve(()=>r(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[t.value,l.value,e.style]},{default:()=>{var o,u;return[e.scrollable?r("div",{class:"v-main__scroller"},[(o=a.default)==null?void 0:o.call(a)]):(u=a.default)==null?void 0:u.call(a)]}})),{}}});function On(e){let{rootEl:n,isSticky:a,layoutItemStyles:t}=e;const l=B(!1),o=B(0),u=p(()=>{const d=typeof l.value=="boolean"?"top":l.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,l.value?{[d]:ne(o.value)}:{top:t.value.top}]});pe(()=>{N(a,d=>{d?window.addEventListener("scroll",v,{passive:!0}):window.removeEventListener("scroll",v)},{immediate:!0})}),Ve(()=>{window.removeEventListener("scroll",v)});let c=0;function v(){const d=c>window.scrollY?"up":"down",m=n.value.getBoundingClientRect(),i=parseFloat(t.value.top??0),b=window.scrollY-Math.max(0,o.value-i),f=m.height+Math.max(o.value,i)-window.scrollY-window.innerHeight,s=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;m.height0;a--){if(e[a].t===e[a-1].t)continue;const t=mt(n),l=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(l-t)*Math.abs(l),a===e.length-1&&(n*=.5)}return mt(n)*1e3}function Pn(){const e={};function n(l){Array.from(l.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new fa(Tn))).push([l.timeStamp,o])})}function a(l){Array.from(l.changedTouches).forEach(o=>{delete e[o.identifier]})}function t(l){var d;const o=(d=e[l])==null?void 0:d.values().reverse();if(!o)throw new Error(`No samples for touch id ${l}`);const u=o[0],c=[],v=[];for(const m of o){if(u[0]-m[0]>En)break;c.push({t:m[0],d:m[1].clientX}),v.push({t:m[0],d:m[1].clientY})}return{x:ft(c),y:ft(v),get direction(){const{x:m,y:i}=this,[b,f]=[Math.abs(m),Math.abs(i)];return b>f&&m>=0?"right":b>f&&m<=0?"left":f>b&&i>=0?"down":f>b&&i<=0?"up":In()}}}return{addMovement:n,endTouch:a,getVelocity:t}}function In(){throw new Error}function Ln(e){let{isActive:n,isTemporary:a,width:t,touchless:l,position:o}=e;pe(()=>{window.addEventListener("touchstart",w,{passive:!0}),window.addEventListener("touchmove",S,{passive:!1}),window.addEventListener("touchend",I,{passive:!0})}),Ve(()=>{window.removeEventListener("touchstart",w),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",I)});const u=p(()=>["left","right"].includes(o.value)),{addMovement:c,endTouch:v,getVelocity:d}=Pn();let m=!1;const i=B(!1),b=B(0),f=B(0);let s;function g(_,$){return(o.value==="left"?_:o.value==="right"?document.documentElement.clientWidth-_:o.value==="top"?_:o.value==="bottom"?document.documentElement.clientHeight-_:he())-($?t.value:0)}function y(_){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const x=o.value==="left"?(_-f.value)/t.value:o.value==="right"?(document.documentElement.clientWidth-_-f.value)/t.value:o.value==="top"?(_-f.value)/t.value:o.value==="bottom"?(document.documentElement.clientHeight-_-f.value)/t.value:he();return $?Math.max(0,Math.min(1,x)):x}function w(_){if(l.value)return;const $=_.changedTouches[0].clientX,x=_.changedTouches[0].clientY,V=25,O=o.value==="left"?$document.documentElement.clientWidth-V:o.value==="top"?xdocument.documentElement.clientHeight-V:he(),E=n.value&&(o.value==="left"?$document.documentElement.clientWidth-t.value:o.value==="top"?xdocument.documentElement.clientHeight-t.value:he());(O||E||n.value&&a.value)&&(m=!0,s=[$,x],f.value=g(u.value?$:x,n.value),b.value=y(u.value?$:x),v(_),c(_))}function S(_){const $=_.changedTouches[0].clientX,x=_.changedTouches[0].clientY;if(m){if(!_.cancelable){m=!1;return}const O=Math.abs($-s[0]),E=Math.abs(x-s[1]);(u.value?O>E&&O>3:E>O&&E>3)?(i.value=!0,m=!1):(u.value?E:O)>3&&(m=!1)}if(!i.value)return;_.preventDefault(),c(_);const V=y(u.value?$:x,!1);b.value=Math.max(0,Math.min(1,V)),V>1?f.value=g(u.value?$:x,!0):V<0&&(f.value=g(u.value?$:x,!1))}function I(_){if(m=!1,!i.value)return;c(_),i.value=!1;const $=d(_.changedTouches[0].identifier),x=Math.abs($.x),V=Math.abs($.y);(u.value?x>V&&x>400:V>x&&V>3)?n.value=$.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||he()):n.value=b.value>.5}const k=p(()=>i.value?{transform:o.value==="left"?`translateX(calc(-100% + ${b.value*t.value}px))`:o.value==="right"?`translateX(calc(100% - ${b.value*t.value}px))`:o.value==="top"?`translateY(calc(-100% + ${b.value*t.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${b.value*t.value}px))`:he(),transition:"none"}:void 0);return{isDragging:i,dragProgress:b,dragStyles:k}}function he(){throw new Error}const An=["start","end","left","right","top","bottom"],Dn=J({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>An.includes(e)},sticky:Boolean,...Vt(),...be(),...St(),...Dt(),...kt(),...Se({tag:"nav"}),...Ae()},"VNavigationDrawer"),gt=de()({name:"VNavigationDrawer",props:Dn(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:t,slots:l}=n;const{isRtl:o}=Xe(),{themeClasses:u}=De(e),{borderClasses:c}=Ct(e),{backgroundColorClasses:v,backgroundColorStyles:d}=Fe(_e(e,"color")),{elevationClasses:m}=Rt(e),{mobile:i}=ga(),{roundedClasses:b}=Ot(e),f=ha(),s=Ye(e,"modelValue",null,A=>!!A),{ssrBootStyles:g}=Ze(),{scopeId:y}=ya(),w=T(),S=B(!1),I=p(()=>e.rail&&e.expandOnHover&&S.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),k=p(()=>pa(e.location,o.value)),_=p(()=>!e.permanent&&(i.value||e.temporary)),$=p(()=>e.sticky&&!_.value&&k.value!=="bottom");e.expandOnHover&&e.rail!=null&&N(S,A=>t("update:rail",!A)),e.disableResizeWatcher||N(_,A=>!e.permanent&&He(()=>s.value=!A)),!e.disableRouteWatcher&&f&&N(f.currentRoute,()=>_.value&&(s.value=!1)),N(()=>e.permanent,A=>{A&&(s.value=!0)}),pt(()=>{e.modelValue!=null||_.value||(s.value=e.permanent||!i.value)});const{isDragging:x,dragProgress:V,dragStyles:O}=Ln({isActive:s,isTemporary:_,width:I,touchless:_e(e,"touchless"),position:k}),E=p(()=>{const A=_.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):I.value;return x.value?A*V.value:A}),{layoutItemStyles:D,layoutItemScrimStyles:U}=jt({id:e.name,order:p(()=>parseInt(e.order,10)),position:k,layoutSize:E,elementSize:I,active:p(()=>s.value||x.value),disableTransitions:p(()=>x.value),absolute:p(()=>e.absolute||$.value&&typeof Y.value!="string")}),{isStuck:Y,stickyStyles:Q}=On({rootEl:w,isSticky:$,layoutItemStyles:D}),se=Fe(p(()=>typeof e.scrim=="string"?e.scrim:null)),ke=p(()=>({...x.value?{opacity:V.value*.2,transition:"none"}:void 0,...U.value}));Et({VList:{bgColor:"transparent"}});function me(){S.value=!0}function fe(){S.value=!1}return ve(()=>{const A=l.image||e.image;return r(K,null,[r(e.tag,G({ref:w,onMouseenter:me,onMouseleave:fe,class:["v-navigation-drawer",`v-navigation-drawer--${k.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":S.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":_.value,"v-navigation-drawer--active":s.value,"v-navigation-drawer--sticky":$.value},u.value,v.value,c.value,m.value,b.value,e.class],style:[d.value,D.value,O.value,g.value,Q.value,e.style]},y,a),{default:()=>{var P,F,j,ge;return[A&&r("div",{key:"image",class:"v-navigation-drawer__img"},[l.image?(P=l.image)==null?void 0:P.call(l,{image:e.image}):r("img",{src:e.image,alt:""},null)]),l.prepend&&r("div",{class:"v-navigation-drawer__prepend"},[(F=l.prepend)==null?void 0:F.call(l)]),r("div",{class:"v-navigation-drawer__content"},[(j=l.default)==null?void 0:j.call(l)]),l.append&&r("div",{class:"v-navigation-drawer__append"},[(ge=l.append)==null?void 0:ge.call(l)])]}}),r(ba,{name:"fade-transition"},{default:()=>[_.value&&(x.value||s.value)&&!!e.scrim&&r("div",G({class:["v-navigation-drawer__scrim",se.backgroundColorClasses.value],style:[ke.value,se.backgroundColorStyles.value],onClick:()=>s.value=!1},y),null)]})])}),{isStuck:Y}}}),jn={components:{AuthForm:rn,OnlineUsers:cn,CardUsers:Lt,CardLike:pn},mixins:[wa],setup(){$a();const e=_a(),n=bt(),a=xa(),t=Ia(),l=We(),o=T(!0),u=T(!0),c=T(!1),v=T(!1),d=T(!1),m=T(!1),i=y=>y.slice(0,2).toUpperCase(),b=()=>{a.global.name.value=a.global.current.value.dark?"light":"dark"};t.loadlinks();const f=[{name:"Структура",ico:"mdi-source-branch",submenu:[{name:"ОКиБ",path:"/okib"}]},{name:"Сотрудники",ico:"mdi-account-multiple-outline",submenu:[{name:"Справочник",link:"http://10.252.44.33/accounting6/members.php"}]},{name:"Деятельность",ico:"mdi-bulletin-board",submenu:[{name:"Обеспечивающая",path:"/providing"}]},{name:"Новости",ico:"mdi-newspaper",path:"/news"},{name:"Безопасность",ico:"mdi-routes",path:"/securyty"},{name:"О портале",ico:"mdi-information-variant",path:"/portal"},{name:"Об инспекции",ico:"mdi-city",path:"/inspection"},{name:"К празднику",ico:"mdi-cake-variant",path:"/fnshol"}],s=p(()=>new URL("/assets/FNS-logo-xs-e0e2f5b0.png",self.location).href);return{theme:a,mainmenuStore:t,accountStore:l,drawer:o,drawer_right:u,toggleTheme:b,navigations:f,imageSrc:s,getcard:async()=>{c.value=!0},menuGetUserDialog:c,LikeDialog:v,appStore:n,rail:d,showTooltip:m,menuTruncated:i,router:e}}},Mn=M("span",null,"F.A.Q.",-1),Bn=M("span",null," Сменить тему",-1),zn=M("span",null," Поиск ",-1),Nn=M("span",null," Скрыть пользователей ",-1),Un=M("span",null," Выход ",-1),Hn=M("div",null,[M("p",{class:"text-center"},"Добро пожаловать на портал МИ ФНС России по ЦОД № 2"),M("p",{class:"mt-3 text-subtitle-1 text-center"},"Авторизуйтесь для получения доступа к контенту портала")],-1);function Fn(e,n,a,t,l,o){const u=ye("Card-users"),c=ye("Card-like"),v=ye("Auth-form"),d=ye("router-view"),m=ye("Online-users");return R(),L(wn,null,{default:h(()=>[r(Cn,{elevation:2,density:"compact",color:"app_bar",class:"pl-4"},{image:h(()=>[r(Tt,{class:"bggrad"})]),append:h(()=>[t.accountStore.cod2user?(R(),ae(K,{key:0},[r(Oe,{class:"bg-transparent",color:"black_and_white",density:"compact","prepend-avatar":t.accountStore.user.photo,title:t.accountStore.user.fio,subtitle:t.accountStore.user.post,variant:"text",onClick:t.getcard},null,8,["prepend-avatar","title","subtitle","onClick"]),r(Ee,{modelValue:t.menuGetUserDialog,"onUpdate:modelValue":n[2]||(n[2]=i=>t.menuGetUserDialog=i),persistent:"",width:"600"},{default:h(()=>[r(u,{menuGetUserDialog:t.menuGetUserDialog,loging:t.accountStore.user.login,onMenusClose:n[1]||(n[1]=i=>t.menuGetUserDialog=!1)},null,8,["menuGetUserDialog","loging"])]),_:1},8,["modelValue"]),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white"},i,{dark:"",to:"/faq",icon:"mdi-comment-question-outline"}),null,16)]),default:h(()=>[Mn]),_:1}),r(Ee,{modelValue:t.LikeDialog,"onUpdate:modelValue":n[4]||(n[4]=i=>t.LikeDialog=i),persistent:"",width:"800"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white"},i,{dark:"",icon:"mdi-thumb-up-outline"}),{default:h(()=>[r(ee),r(W,{activator:"parent",location:"bottom"},{default:h(()=>[z("Обратная связь")]),_:1})]),_:2},1040)]),default:h(()=>[r(c,{LikeDialog:t.LikeDialog,onMenusClose:n[3]||(n[3]=i=>t.LikeDialog=!1)},null,8,["LikeDialog"])]),_:1},8,["modelValue"]),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,{icon:"",onClick:t.toggleTheme},{default:h(()=>[r(ee,G(i,{class:"mr-1",color:"lampa"}),{default:h(()=>[z(" mdi-lightbulb-outline ")]),_:2},1040)]),_:2},1032,["onClick"])]),default:h(()=>[Bn]),_:1}),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white",icon:"mdi-magnify"},i),null,16)]),default:h(()=>[zn]),_:1}),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white",icon:"mdi-account-multiple-outline",onClick:n[5]||(n[5]=b=>t.drawer_right=!t.drawer_right)},i),null,16)]),default:h(()=>[Nn]),_:1}),r(W,{location:"bottom"},{activator:h(({props:i})=>[r(q,G({color:"black_and_white",icon:"mdi-logout",onClick:t.accountStore.logout},i),null,16,["onClick"])]),default:h(()=>[Un]),_:1})],64)):(R(),L(re,{key:1,justify:"center"},{default:h(()=>[r(v)]),_:1}))]),default:h(()=>[t.accountStore.cod2user?(R(),L(ee,{key:0,class:"px-3",size:"20",color:"black_and_white",icon:t.rail?"mdi-chevron-right":"mdi-chevron-left",onClick:n[0]||(n[0]=i=>t.rail=!t.rail)},null,8,["icon"])):le("",!0),r(Oe,{class:"bg-transparent py",color:"black_and_white",density:"compact","prepend-avatar":t.imageSrc,title:"Портал МИ ФНС России по ЦОД № 2",variant:"text",to:"/"},null,8,["prepend-avatar"])]),_:1}),t.accountStore.cod2user?(R(),L(gt,{key:0,width:245,rail:t.rail,permanent:"",modelValue:t.drawer,"onUpdate:modelValue":n[7]||(n[7]=i=>t.drawer=i)},{default:h(()=>[r(re,{class:"my-0 h-100"},{default:h(()=>[r(Z,{class:"flex-column d-flex"},{default:h(()=>[r(re,null,{default:h(()=>[r(Z,null,{default:h(()=>[r(ze,{nav:"",density:"compact"},{default:h(()=>[(R(!0),ae(K,null,we(t.navigations,(i,b)=>(R(),ae(K,null,["submenu"in i?(R(),L(ka,{class:Va(t.rail?"railmenu":""),key:b,value:i.name},{activator:h(({props:f})=>[r(ue,G(f,{title:i.name,"prepend-icon":i.ico}),{default:h(()=>[t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(i.name),1)]),_:2},1024)):le("",!0)]),_:2},1040,["title","prepend-icon"])]),default:h(()=>[(R(!0),ae(K,null,we(i.submenu,(f,s)=>(R(),L(ue,{href:f.link,key:s,value:f.name,title:t.rail?t.menuTruncated(f.name):f.name,to:f.path,target:f.link?"_blank":""},{default:h(()=>[t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(f.name),1)]),_:2},1024)):le("",!0)]),_:2},1032,["href","value","title","to","target"]))),128))]),_:2},1032,["class","value"])):(R(),L(ue,{key:i.key,title:i.name,value:i.name,href:i.link,disabled:i.path=="/securyty",to:i.path,color:"navigation"},{prepend:h(()=>[r(ee,{icon:i.ico},null,8,["icon"]),t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(i.name),1)]),_:2},1024)):le("",!0)]),_:2},1032,["title","value","href","disabled","to"]))],64))),256))]),_:1}),r(ze,{nav:"",density:"compact"},{default:h(()=>[(R(!0),ae(K,null,we(t.mainmenuStore.portallinks,i=>(R(),L(ue,{key:i.name,title:i.name,value:i.name,href:i.link,color:"app_bar",target:i.link?"_blank":""},{prepend:h(()=>[r(ee,{icon:i.imagecode},null,8,["icon"]),t.rail?(R(),L(W,{key:0,activator:"parent",location:"top"},{default:h(()=>[z(H(i.name),1)]),_:2},1024)):le("",!0)]),_:2},1032,["title","value","href","target"]))),128))]),_:1})]),_:1})]),_:1}),r(re,{class:"flex-grow-0"},{default:h(()=>[r(Z,{class:"py-0 pl-1 d-flex flex-column"},{default:h(()=>[r(ze,{class:"d-flex flex-column"},{default:h(()=>[t.rail?(R(),L(ue,{key:1,class:"align-center ml-2"},{default:h(()=>[r(W,{modelValue:t.showTooltip,"onUpdate:modelValue":n[6]||(n[6]=i=>t.showTooltip=i),location:"top"},{activator:h(({props:i})=>[r(ee,G(i,{color:"grey"}),{default:h(()=>[z(" mdi-account-eye ")]),_:2},1040)]),default:h(()=>[M("p",null,"Посещений всего: "+H(t.appStore.countvisitor.totalvisit),1),r(ce),M("p",null,"Посещений сегодня: "+H(t.appStore.countvisitor.visittoday),1),r(ce),M("p",null,"Уникальных посещений: "+H(t.appStore.countvisitor.uniqtoday),1)]),_:1},8,["modelValue"])]),_:1})):(R(),L(ue,{key:0,class:"text-caption font-weight-bold text-truncate"},{default:h(()=>[M("p",null,"Посещений всего:"+H(t.appStore.countvisitor.totalvisit),1),r(ce),M("p",null,"Посещений сегодня: "+H(t.appStore.countvisitor.visittoday),1),r(ce),M("p",null,"Уникальных посещений: "+H(t.appStore.countvisitor.uniqtoday),1),r(ce)]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["rail","modelValue"])):le("",!0),t.accountStore.cod2user?(R(),L(vt,{key:1,class:"d-flex bg-main_theme"},{default:h(()=>[r(d)]),_:1})):(R(),L(vt,{key:2,class:"d-flex justify-center align-center text-h3 bg-teal-lighten-2"},{default:h(()=>[Hn]),_:1})),t.accountStore.cod2user?(R(),L(gt,{key:3,modelValue:t.drawer_right,"onUpdate:modelValue":n[8]||(n[8]=i=>t.drawer_right=i),rail:"",permanent:"",location:"right",onClick:n[9]||(n[9]=i=>t.rail=!1)},{default:h(()=>[r(m)]),_:1},8,["modelValue"])):le("",!0)]),_:1})}const tl=Le(jn,[["render",Fn]]);export{tl as default}; diff --git a/src/front/dist/assets/FAQPage-eaddfe91.js b/src/front/dist/assets/FAQPage-9a9de56e.js similarity index 82% rename from src/front/dist/assets/FAQPage-eaddfe91.js rename to src/front/dist/assets/FAQPage-9a9de56e.js index 9288dc944..cf3adc0aa 100644 --- a/src/front/dist/assets/FAQPage-eaddfe91.js +++ b/src/front/dist/assets/FAQPage-9a9de56e.js @@ -1 +1 @@ -import{_ as t,aB as a,C as s,D as o,E as e,K as c,F as r,G as n,L as l}from"./index-09dc9553.js";const _={setup(){a()}};function f(p,i,u,x,d,g){return s(),o(c,null,{default:e(()=>[r(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" F.A.Q. ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; +import{_ as t,aB as a,C as s,D as o,E as e,K as c,F as r,G as n,L as l}from"./index-cf33b3b8.js";const _={setup(){a()}};function f(p,i,u,x,d,g){return s(),o(c,null,{default:e(()=>[r(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" F.A.Q. ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; diff --git a/src/front/dist/assets/FeedbackPage-949a2e4d.js b/src/front/dist/assets/FeedbackPage-9f8c4343.js similarity index 83% rename from src/front/dist/assets/FeedbackPage-949a2e4d.js rename to src/front/dist/assets/FeedbackPage-9f8c4343.js index ed797b9bb..08d2ab9d4 100644 --- a/src/front/dist/assets/FeedbackPage-949a2e4d.js +++ b/src/front/dist/assets/FeedbackPage-9f8c4343.js @@ -1 +1 @@ -import{_ as t,aB as a,C as s,D as c,E as e,K as o,F as r,G as n,L as l}from"./index-09dc9553.js";const _={setup(){a()}};function f(p,d,i,u,x,g){return s(),c(o,null,{default:e(()=>[r(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" Обратная связь ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; +import{_ as t,aB as a,C as s,D as c,E as e,K as o,F as r,G as n,L as l}from"./index-cf33b3b8.js";const _={setup(){a()}};function f(p,d,i,u,x,g){return s(),c(o,null,{default:e(()=>[r(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" Обратная связь ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; diff --git a/src/front/dist/assets/FnsHol-2a5bbfdd.js b/src/front/dist/assets/FnsHol-2a5bbfdd.js new file mode 100644 index 000000000..2b9e655d6 --- /dev/null +++ b/src/front/dist/assets/FnsHol-2a5bbfdd.js @@ -0,0 +1 @@ +import{_ as m,r as p,af as _,c as h,C as r,D as n,E as e,aG as x,Y as g,$ as w,Z as V,F as t,R as b,I as k,K as u,L as s,G as v,ad as C,aq as d,J as y,ae as T}from"./index-cf33b3b8.js";import{V as $,a as H}from"./VCarouselItem-407ac450.js";import{V as F}from"./VContainer-a91b572b.js";import{V as I}from"./VTextarea-eca486a5.js";import"./VWindowItem-46132c15.js";import"./group-2cdf27ee.js";import"./VBtn-11d9d7ef.js";import"./VInput-6b41ac51.js";const B={setup(){const c=x.slice(0,-1),o=p([{link:""}]);_.get("api/fns/links/").then(a=>{o.value=a.data});const i=h(()=>(console.log(window.innerHeight,window.innerHeight-50),window.innerHeight-50));return{burl:c,carous:o,carushi:i}}};function L(c,o,i,a,N,R){return r(),n($,{cover:"",height:a.carushi,"hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:e(()=>[(r(!0),g(V,null,w(a.carous,(l,f)=>(r(),n(H,{key:f,src:`${a.burl}${l.link}`,cover:"",eager:""},{default:e(()=>[t(F,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:e(()=>[t(b,{class:"bgCard h-100 d-flex flex-column"},{default:e(()=>[t(k,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:e(()=>[t(u,null,{default:e(()=>[t(s,{class:"pa-0 pl-1 align-self-center"},{default:e(()=>[v(C(l.title),1)]),_:2},1024),t(s,{class:"flex-grow-0 pa-0 pr-1"},{default:e(()=>[t(d,{width:"50","aspect-ratio":1,src:`${a.burl}${l.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),"text"in l&&l.text.length>0?(r(),n(y,{key:0,class:"ml-2 mb-0 mb-2 flex-grow-0 pb-3 text-h6 overflow-auto"},{default:e(()=>[t(u,null,{default:e(()=>[t(s,{cols:"6",class:"bgText"},{default:e(()=>[t(I,{class:"text-text_carous mt-n3 text-black textareas pt-2 font-weight-medium","model-value":l.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024),t(s,{cols:"6",class:"bgText"},{default:e(()=>[t(d,{"aspect-ratio":1,src:`${a.burl}${l.link2}`},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):T("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1},8,["height"])}const U=m(B,[["render",L]]);export{U as default}; diff --git a/src/front/dist/assets/FnsHol-4ba3248c.js b/src/front/dist/assets/FnsHol-4ba3248c.js deleted file mode 100644 index 12a0a5899..000000000 --- a/src/front/dist/assets/FnsHol-4ba3248c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d,r as m,aF as f,c as p,C as l,D as n,E as e,aG as _,Y as h,$ as x,Z as g,F as a,R as w,I as V,K as b,L as c,G as v,ad as C,aq as k,J as y}from"./index-09dc9553.js";import{V as F,a as H}from"./VCarouselItem-31737456.js";import{V as T}from"./VContainer-194cdd0e.js";import{V as $}from"./VTextarea-20d645b1.js";import"./VWindowItem-6073ee5e.js";import"./group-c7387df2.js";import"./VBtn-61a8fe0f.js";import"./VInput-2f5042f3.js";const B={setup(){const o=_.slice(0,-1),s=m([{link:""}]);f("api/navigation/carousels/",s);const i=p(()=>(console.log(window.innerHeight,window.innerHeight-50),window.innerHeight-50));return{burl:o,carous:s,carushi:i}}};function I(o,s,i,t,L,R){return l(),n(F,{cover:"",height:t.carushi,"hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:e(()=>[(l(!0),h(g,null,x(t.carous,(r,u)=>(l(),n(H,{key:u,src:`${t.burl}${r.link}`,cover:"",eager:""},{default:e(()=>[a(T,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:e(()=>[a(w,{class:"bgCard h-100 d-flex flex-column"},{default:e(()=>[a(V,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:e(()=>[a(b,null,{default:e(()=>[a(c,{class:"pa-0 pl-1 align-self-center"},{default:e(()=>[v(C(r.title),1)]),_:2},1024),a(c,{class:"flex-grow-0 pa-0 pr-1"},{default:e(()=>[a(k,{width:"50","aspect-ratio":1,src:`${t.burl}${r.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),a(y,{class:"ml-2 mb-0 mb-2 w-50 flex-grow-0 pb-3 text-h6 bgText overflow-auto"},{default:e(()=>[a($,{class:"text-text_carous mt-n3 text-black textareas pt-2 font-weight-medium","model-value":r.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1},8,["height"])}const U=d(B,[["render",I]]);export{U as default}; diff --git a/src/front/dist/assets/FnsHol-59f12ea9.css b/src/front/dist/assets/FnsHol-59f12ea9.css new file mode 100644 index 000000000..81db314b9 --- /dev/null +++ b/src/front/dist/assets/FnsHol-59f12ea9.css @@ -0,0 +1 @@ +.bgCard{background:#ffffff38}.bgText{background:#ffffffb0;line-height:3.1rem!important}.titles{font-family:cursive!important;background:#ffffff8c}.textareas .v-field__input{font-size:3.3em!important} diff --git a/src/front/dist/assets/FnsHol-679af398.css b/src/front/dist/assets/FnsHol-679af398.css deleted file mode 100644 index 101a84065..000000000 --- a/src/front/dist/assets/FnsHol-679af398.css +++ /dev/null @@ -1 +0,0 @@ -.bgCard{background:#ffffff38}.bgText{background:#ffffffb0;line-height:2.1rem!important}.titles{font-family:cursive!important;background:#ffffff8c}.textareas .v-field__input{font-size:1.3em!important} diff --git a/src/front/dist/assets/HomePage-9a26ccd1.js b/src/front/dist/assets/HomePage-a303f47a.js similarity index 73% rename from src/front/dist/assets/HomePage-9a26ccd1.js rename to src/front/dist/assets/HomePage-a303f47a.js index 5b1d1665f..7628ee011 100644 --- a/src/front/dist/assets/HomePage-9a26ccd1.js +++ b/src/front/dist/assets/HomePage-a303f47a.js @@ -1,6 +1,6 @@ -import{_ as Re,r as H,aF as st,C as E,D as j,E as _,Y as A,$ as Z,Z as Q,aG as ut,F as D,R as K,I as vt,K as ie,L as te,G as Y,ad as I,aq as Ns,J as Ge,p as Hs,ah as Il,a1 as Ol,aH as Nl,ai as Hl,aI as Pl,aJ as Vl,aj as Ll,a4 as Bl,a5 as Wl,a6 as Gn,a8 as jl,ak as Fl,al as Ul,am as zl,aK as $l,an as Yl,aL as Gl,aM as ql,ao as Ql,ac as Ps,X as ee,aN as Vs,aO as It,aP as Zl,a as Xl,o as yt,af as ce,A as Ls,aQ as Jl,aR as Kl,aS as ea,w as Di,S as P,V as fe,aE as J,aT as ta,aU as na,c as Mn,U as Bs,W as Ws,M as ia,a9 as _i,aV as sa,h as ra,aW as la,H as He,aX as aa,aY as oa,N as ca,O as da,aZ as Ue,ae as k,a_ as N,a$ as ae,Q as Ei,b0 as ua,az as Vt,b1 as xn,b2 as ha,b3 as wi,b4 as R,B as fa,aB as ga}from"./index-09dc9553.js";import{V as pa,a as ma}from"./VCarouselItem-31737456.js";import{V as js}from"./VContainer-194cdd0e.js";import{V as va}from"./VTextarea-20d645b1.js";import{a as ya,b as ba,C as Fs,V as In}from"./VTooltip-44875405.js";import{m as Da,u as _a}from"./group-c7387df2.js";import{f as Ea,m as wa,V as Ai}from"./VSelectionControl-ddf592aa.js";import{b as Aa,c as qn,V as Sa,d as Ca,f as Ta,a as Us}from"./VList-0b9b232e.js";import{V as Jt,a as Ra,b as ka}from"./VBtn-61a8fe0f.js";import{V as Ma,L as xa}from"./load-round-52ac2a07.js";import{m as Ia,u as Oa,V as Si}from"./VInput-2f5042f3.js";import"./VWindowItem-6073ee5e.js";import"./VChip-ac1d8dc8.js";const Na={setup(){const t=ut.slice(0,-1),e=H([{link:""}]);return st("api/navigation/carousels/",e),{burl:t,carous:e}}};function Ha(t,e,n,i,r,s){return E(),j(pa,{interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white",cycle:""},{default:_(()=>[(E(!0),A(Q,null,Z(i.carous,(l,a)=>(E(),j(ma,{key:a,src:`${i.burl}${l.link}`,cover:"",eager:""},{default:_(()=>[D(js,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:_(()=>[D(K,{class:"bgCard h-100 d-flex flex-column"},{default:_(()=>[D(vt,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:_(()=>[D(ie,null,{default:_(()=>[D(te,{class:"pa-0 pl-1 align-self-center"},{default:_(()=>[Y(I(l.title),1)]),_:2},1024),D(te,{class:"flex-grow-0 pa-0 pr-1"},{default:_(()=>[D(Ns,{width:"50","aspect-ratio":1,src:`${i.burl}${l.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),D(Ge,{class:"ml-2 mb-0 mb-2 w-50 flex-grow-0 pb-3 text-h6 bgText overflow-auto"},{default:_(()=>[D(va,{class:"text-text_carous mt-n3 text-black textareas pt-2 font-weight-medium","model-value":l.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1})}const Pa=Re(Na,[["render",Ha]]);const Va=Hs({color:String,...Il(),...Ol(),...Nl(),...Hl(),...Pl(),...Vl(),...Ll(),...Bl(),...Wl()},"VSheet"),La=Gn()({name:"VSheet",props:Va(),setup(t,e){let{slots:n}=e;const{themeClasses:i}=jl(t),{backgroundColorClasses:r,backgroundColorStyles:s}=Fl(Ul(t,"color")),{borderClasses:l}=zl(t),{dimensionStyles:a}=$l(t),{elevationClasses:o}=Yl(t),{locationStyles:c}=Gl(t),{positionClasses:d}=ql(t),{roundedClasses:u}=Ql(t);return Ps(()=>D(t.tag,{class:["v-sheet",i.value,r.value,l.value,o.value,d.value,u.value,t.class],style:[s.value,a.value,c.value,t.style]},n)),{}}}),Ba=Gn()({name:"VSlideGroupItem",props:Da(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const i=_a(t,ya);return()=>{var r;return(r=n.default)==null?void 0:r.call(n,{isSelected:i.isSelected.value,select:i.select,toggle:i.toggle,selectedClass:i.selectedClass.value})}}}),Wa={props:{digitalData:{type:Object,default:{}}},setup(){const t=ut.slice(0,-1);return{model:H(!1),burl:t}}};function ja(t,e,n,i,r,s){const l=ee("vue3-autocounter");return E(),j(K,{class:"d-flex ml-3"},{default:_(()=>[D(La,{class:"mx-auto",elevation:"0","max-width":"813"},{default:_(()=>[D(ba,{modelValue:i.model,"onUpdate:modelValue":e[0]||(e[0]=a=>i.model=a),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:_(()=>[(E(!0),A(Q,null,Z(n.digitalData,a=>(E(),j(Ba,{key:a},{default:_(()=>[D(K,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:_(()=>[D(K,{class:"h-100 text-center g text-black_grey"},{default:_(()=>[D(vt,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:_(()=>[Y(I(a.status),1)]),_:2},1024),D(Ge,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:_(()=>[D(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(a.num),duration:1},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}const Fa=Re(Wa,[["render",ja]]);var Kt,T,zs,$s,Xe,Ie,Ci,Ys,Gs,Lt={},qs=[],Ua=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _e(t,e){for(var n in e)t[n]=e[n];return t}function Qs(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n){var i,r,s,l={};for(s in e)s=="key"?i=e[s]:s=="ref"?r=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?Kt.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return Ot(t,l,i,r,null)}function Ot(t,e,n,i,r){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++zs};return r==null&&T.vnode!=null&&T.vnode(s),s}function ue(){return{current:null}}function G(t){return t.children}function za(t,e,n,i,r){var s;for(s in n)s==="children"||s==="key"||s in e||Bt(t,s,null,n[s],i);for(s in e)r&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||Bt(t,s,e[s],n[s],i)}function Ti(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Ua.test(e)?n:n+"px"}function Bt(t,e,n,i,r){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||Ti(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||Ti(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?i||t.addEventListener(e,s?ki:Ri,s):t.removeEventListener(e,s?ki:Ri,s);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Ri(t){Xe=!0;try{return this.l[t.type+!1](T.event?T.event(t):t)}finally{Xe=!1}}function ki(t){Xe=!0;try{return this.l[t.type+!0](T.event?T.event(t):t)}finally{Xe=!1}}function re(t,e){this.props=t,this.context=e}function ht(t,e){if(e==null)return t.__?ht(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&Ie.sort(function(o,c){return o.__v.__b-c.__v.__b}));Wt.__r=0}function Xs(t,e,n,i,r,s,l,a,o,c){var d,u,h,f,p,y,v,b=i&&i.__k||qs,w=b.length;for(n.__k=[],d=0;d0?Ot(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=b[d])===null||h&&f.key==h.key&&f.type===h.type)b[d]=void 0;else for(u=0;u=0;e--)if((n=t.__k[e])&&(i=er(n)))return i}return null}function Qn(t,e,n,i,r,s,l,a,o){var c,d,u,h,f,p,y,v,b,w,S,C,V,U,L,M=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(c=T.__b)&&c(e);try{e:if(typeof M=="function"){if(v=e.props,b=(c=M.contextType)&&i[c.__c],w=c?b?b.props.value:c.__:i,n.__c?y=(d=e.__c=n.__c).__=d.__E:("prototype"in M&&M.prototype.render?e.__c=d=new M(v,w):(e.__c=d=new re(v,w),d.constructor=M,d.render=Ga),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=w,d.__n=i,u=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),M.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=_e({},d.__s)),_e(d.__s,M.getDerivedStateFromProps(v,d.__s))),h=d.props,f=d.state,d.__v=e,u)M.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(M.getDerivedStateFromProps==null&&v!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,w),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,w)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(De){De&&(De.__=e)}),S=0;S3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(i)}}),ft(g(Ka,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function to(t,e){var n=g(eo,{__v:t,i:e});return n.containerInfo=e,n}(At.prototype=new re).__a=function(t){var e=this,n=ar(e.__v),i=e.o.get(t);return i[0]++,function(r){var s=function(){e.props.revealOrder?(i.push(r),ji(e,t,i)):r()};n?n(s):s()}},At.prototype.render=function(t){this.u=null,this.o=new Map;var e=jt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},At.prototype.componentDidUpdate=At.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){ji(t,n,e)})};var no=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,io=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,so=typeof document<"u",ro=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(re.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Fi=T.event;function lo(){}function ao(){return this.cancelBubble}function oo(){return this.defaultPrevented}T.event=function(t){return Fi&&(t=Fi(t)),t.persist=lo,t.isPropagationStopped=ao,t.isDefaultPrevented=oo,t.nativeEvent=t};var Ui={configurable:!0,get:function(){return this.class}},zi=T.vnode;T.vnode=function(t){var e=t.type,n=t.props,i=n;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var s in i={},n){var l=n[s];so&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!ro(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():r&&io.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),i[s]&&(s="oninputCapture")),i[s]=l)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=jt(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=jt(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),t.props=i,n.class!=n.className&&(Ui.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",Ui))}t.$$typeof=no,zi&&zi(t)};var $i=T.__r;T.__r=function(t){$i&&$i(t),t.__c};const or=[],Hn=new Map;function en(t){or.push(t),Hn.forEach(e=>{dr(e,t)})}function co(t){t.isConnected&&cr(t.getRootNode())}function cr(t){let e=Hn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=ho();n&&(e.nonce=n);const i=t===document?document.head:t,r=t===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(e,r)}Hn.set(t,e),uo(e)}}function uo(t){for(const e of or)dr(t,e)}function dr(t,e){const{sheet:n}=t,i=n.cssRules.length;e.split("}").forEach((r,s)=>{r=r.trim(),r&&n.insertRule(r+"}",i+s)})}let mn;function ho(){return mn===void 0&&(mn=fo()),mn}function fo(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&cr(document);var go=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';en(go);class Zn{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:i}=this;e in i&&(n?delete i[e]:(i[e]-=1,i[e]<=0&&delete i[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Xn(t){t.parentNode&&t.parentNode.removeChild(t)}function ne(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(po(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function po(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function mo(t,e){let n=t instanceof HTMLElement?[t]:t,i=[];for(let r=0;r{let i=ne(n.target,t);i&&e.call(i,n,i)}}function fr(t,e,n,i){let r=yo(n,i);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}}function bo(t,e,n,i){let r;return fr(t,"mouseover",e,(s,l)=>{if(l!==r){r=l,n(s,l);let a=o=>{r=null,i(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const Gi=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Do(t,e){let n=i=>{e(i),Gi.forEach(r=>{t.removeEventListener(r,n)})};Gi.forEach(i=>{t.addEventListener(i,n)})}function gr(t){return Object.assign({onClick:t},pr(t))}function pr(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let qi=0;function Le(){return qi+=1,String(qi)}function Jn(){document.body.classList.add("fc-not-allowed")}function Kn(){document.body.classList.remove("fc-not-allowed")}function _o(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",tn)}function Eo(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",tn)}function wo(t){t.addEventListener("contextmenu",tn)}function Ao(t){t.removeEventListener("contextmenu",tn)}function So(t){let e=[],n=[],i,r;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),i=0;ii.replace("$"+s,r||""),t):n}function ko(t,e){return t-e}function yn(t){return t%1===0}function Mo(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const xo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function O(t,e){return typeof t=="string"?Io(t):typeof t=="object"&&t?Qi(t):typeof t=="number"?Qi({[e||"milliseconds"]:t}):null}function Io(t){let e=xo.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Qi(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Oo(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function No(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Ho(t){return qe(t)/365}function Po(t){return qe(t)/30}function qe(t){return gt(t)/864e5}function gt(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Pn(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Se(t,e,n){if(t===e)return!0;let i=t.length,r;if(i!==e.length)return!1;for(r=0;r=1?Math.min(r,s):r}function bn(t,e,n,i){let r=se([e,0,1+qo(e,n,i)]),s=B(t),l=Math.round(Be(r,s));return Math.floor(l/7)+1}function qo(t,e,n){let i=7+e-n;return-((7+se([t,0,i]).getUTCDay()-e)%7)+i-1}function Xi(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ji(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Ee(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function se(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function mr(t){return!isNaN(t.valueOf())}function we(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Qo(t,e,n=!1){let i=t.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(e==null?i=i.replace("Z",""):e!==0&&(i=i.replace("Z",ei(e,!0)))),i}function bt(t){return t.toISOString().replace(/T.*$/,"")}function Vn(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function ei(t,e=!1){let n=t<0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),s=Math.round(i%60);return e?`${n+vn(r,2)}:${vn(s,2)}`:`GMT${n}${r}${s?`:${vn(s,2)}`:""}`}function x(t,e,n){let i,r;return function(...s){if(!i)r=t.apply(this,s);else if(!Se(i,s)){n&&n(r);let l=t.apply(this,s);(!e||!e(l,r))&&(r=l)}return i=s,r}}function Ht(t,e,n){let i,r;return s=>{if(!i)r=t.call(this,s);else if(!he(i,s)){n&&n(r);let l=t.call(this,s);(!e||!e(l,r))&&(r=l)}return i=s,r}}const Ki={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ut={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},St=/\s*([ap])\.?m\.?/i,Zo=/,/g,Xo=/\s+/g,Jo=/\u200e/g,Ko=/UTC|GMT/;class ec{constructor(e){let n={},i={},r=0;for(let s in e)s in Ki?(i[s]=e[s],r=Math.max(Ki[s],r)):(n[s]=e[s],s in Ut&&(r=Math.max(Ut[s],r)));this.standardDateProps=n,this.extendedSettings=i,this.severity=r,this.buildFormattingFunc=x(es)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,i,r){let{standardDateProps:s,extendedSettings:l}=this,a=lc(e.marker,n.marker,i.calendarSystem);if(!a)return this.format(e,i);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let c=this.format(e,i),d=this.format(n,i);if(c===d)return c;let u=ac(s,o),h=es(u,l,i),f=h(e),p=h(n),y=oc(c,f,d,p),v=l.separator||r||i.defaultSeparator||"";return y?y.before+f+v+p+y.after:c+v+d}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function es(t,e,n){let i=Object.keys(t).length;return i===1&&t.timeZoneName==="short"?r=>ei(r.timeZoneOffset):i===0&&e.week?r=>rc(n.computeWeekNumber(r.marker),n.weekText,n.weekTextLong,n.locale,e.week):tc(t,e,n)}function tc(t,e,n){t=Object.assign({},t),e=Object.assign({},e),nc(t,e),t.timeZone="UTC";let i=new Intl.DateTimeFormat(n.locale.codes,t),r;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,r=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;r&&!l.getUTCMinutes()?a=r:a=i;let o=a.format(l);return ic(o,s,t,e,n)}}function nc(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function ic(t,e,n,i,r){return t=t.replace(Jo,""),n.timeZoneName==="short"&&(t=sc(t,r.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":ei(e.timeZoneOffset))),i.omitCommas&&(t=t.replace(Zo,"").trim()),i.omitZeroMinute&&(t=t.replace(":00","")),i.meridiem===!1?t=t.replace(St,"").trim():i.meridiem==="narrow"?t=t.replace(St,(s,l)=>l.toLocaleLowerCase()):i.meridiem==="short"?t=t.replace(St,(s,l)=>`${l.toLocaleLowerCase()}m`):i.meridiem==="lowercase"&&(t=t.replace(St,s=>s.toLocaleLowerCase())),t=t.replace(Xo," "),t=t.trim(),t}function sc(t,e){let n=!1;return t=t.replace(Ko,()=>(n=!0,e)),n||(t+=` ${e}`),t}function rc(t,e,n,i,r){let s=[];return r==="long"?s.push(n):(r==="short"||r==="narrow")&&s.push(e),(r==="long"||r==="short")&&s.push(" "),s.push(i.simpleNumberFormat.format(t)),i.options.direction==="rtl"&&s.reverse(),s.join("")}function lc(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:we(t)!==we(e)?1:0}function ac(t,e){let n={};for(let i in t)(!(i in Ut)||Ut[i]<=e)&&(n[i]=t[i]);return n}function oc(t,e,n,i){let r=0;for(;r=0;s-=1){let l=t[s][i];if(typeof l=="object"&&l)r.unshift(l);else if(l!==void 0){n[i]=l;break}}r.length&&(n[i]=ni(r))}}for(let i=t.length-1;i>=0;i-=1){let r=t[i];for(let s in r)s in n||(n[s]=r[s])}return n}function Pe(t,e){let n={};for(let i in t)e(t[i],i)&&(n[i]=t[i]);return n}function We(t,e){let n={};for(let i in t)n[i]=e(t[i],i);return n}function vr(t){let e={};for(let n of t)e[n]=!0;return e}function ii(t){let e=[];for(let n in t)e.push(t[n]);return e}function he(t,e){if(t===e)return!0;for(let n in t)if($t.call(t,n)&&!(n in e))return!1;for(let n in e)if($t.call(e,n)&&t[n]!==e[n])return!1;return!0}const hc=/^on[A-Z]/;function fc(t,e){const n=Ln(t,e);for(let i of n)if(!hc.test(i))return!1;return!0}function Ln(t,e){let n=[];for(let i in t)$t.call(t,i)&&(i in e||n.push(i));for(let i in e)$t.call(e,i)&&t[i]!==e[i]&&n.push(i);return n}function _n(t,e,n={}){if(t===e)return!0;for(let i in e)if(!(i in t&&gc(t[i],e[i],n[i])))return!1;for(let i in t)if(!(i in e))return!1;return!0}function gc(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function pc(t,e=0,n,i=1){let r=[];n==null&&(n=Object.keys(t).length);for(let s=e;s{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return r},e}class wc{constructor(e,n,i,r){this.execFunc=e,this.emitter=n,this.scrollTime=i,this.scrollTimeReset=r,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const je=br({});function Ac(t,e,n,i,r,s,l,a,o,c,d,u,h){return{dateEnv:r,options:n,pluginHooks:l,emitter:c,dispatch:a,getCurrentData:o,calendarApi:d,viewSpec:t,viewApi:e,dateProfileGenerator:i,theme:s,isRtl:n.direction==="rtl",addResizeHandler(f){c.on("_resize",f)},removeResizeHandler(f){c.off("_resize",f)},createScrollResponder(f){return new wc(f,c,O(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class Fe extends re{shouldComponentUpdate(e,n){return this.debug&&console.log(Ln(e,this.props),Ln(n,this.state)),!_n(this.props,e,this.propEquality)||!_n(this.state,n,this.stateEquality)}safeSetState(e){_n(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Fe.addPropsEquality=Sc;Fe.addStateEquality=Cc;Fe.contextType=je;Fe.prototype.propEquality={};Fe.prototype.stateEquality={};class W extends Fe{}W.contextType=je;function Sc(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Cc(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function be(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class si extends W{constructor(){super(...arguments),this.id=Le(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{Bn(this.props.generatorName,this.context.options)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&be(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:i}=n,{customGenerator:r,defaultGenerator:s,renderProps:l}=e,a=Dr(e,[],this.handleEl);let o=!1,c,d=[],u;if(r!=null){const h=typeof r=="function"?r(l,g):r;if(h===!0)o=!0;else{const f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?d=Array.prototype.slice.call(h.domNodes):(f?$s(h):typeof h!="function")?c=h:u=h}}else o=!Bn(e.generatorName,i);return o&&s&&(c=s(l)),this.queuedDomNodes=d,this.currentGeneratorMeta=u,g(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:i,context:r}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=r.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[i.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},i),{elClasses:(i.elClasses||[]).filter(Tc)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,i=this.base;if(!Se(e,n)){n.forEach(Xn);for(let r of e)i.appendChild(r);this.currentDomNodes=e}}}si.addPropsEquality({elClasses:Se,elStyle:he,elAttrs:fc,renderProps:he});function Bn(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Dr(t,e,n){const i=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(i.className=(t.elClasses||[]).concat(e||[]).concat(i.className||[]).filter(Boolean).join(" ")),t.elStyle&&(i.style=t.elStyle),i}function Tc(t){return!!t}const _r=br(0);class oe extends re{constructor(){super(...arguments),this.InnerContent=Rc.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&be(this.props.elRef,e)}}render(){const{props:e}=this,n=kc(e.classNameGenerator,e.renderProps);if(e.children){const i=Dr(e,n,this.handleEl),r=e.children(this.InnerContent,e.renderProps,i);return e.elTag?g(e.elTag,i,r):r}else return g(si,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}oe.contextType=_r;function Rc(t,e){const n=t.props;return g(si,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function kc(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Yt extends W{render(){let{props:e,context:n}=this,{options:i}=n,r={view:n.viewApi};return g(oe,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Er(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:i.viewClassNames,generatorName:void 0,didMount:i.viewDidMount,willUnmount:i.viewWillUnmount}),()=>e.children)}}function Er(t){return[`fc-${t.type}-view`,"fc-view"]}function Mc(t,e){let n=null,i=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(i=e.createMarker(t.end)),!n&&!i||n&&i&&ii&&n.push({start:i,end:s.start}),s.end>i&&(i=s.end);return ie.start)&&(t.start===null||e.end===null||t.start=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Ae(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e=e.end?new Date(e.end.valueOf()-1):t}function wr(t){let e=Math.floor(Be(t.start,t.end))||1,n=B(t.start),i=X(n,e);return{start:n,end:i}}function li(t,e=O(0)){let n=null,i=null;if(t.end){i=B(t.end);let r=t.end.valueOf()-i.valueOf();r&&r>=gt(e)&&(i=X(i,1))}return t.start&&(n=B(t.start),i&&i<=n&&(i=X(n,1))),{start:n,end:i}}function Nc(t){let e=li(t);return Be(e.start,e.end)>1}function Ye(t,e,n,i){return i==="year"?O(n.diffWholeYears(t,e),"year"):i==="month"?O(n.diffWholeMonths(t,e),"month"):Fo(t,e)}function Hc(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Pc(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):_t(t.now,e)}function _t(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Ar{constructor(e){this.props=e,this.nowDate=_t(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,i){let{dateEnv:r}=this.props,s=r.subtract(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,i)}buildNext(e,n,i){let{dateEnv:r}=this.props,s=r.add(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,i)}build(e,n,i=!0){let{props:r}=this,s,l,a,o,c,d;return s=this.buildValidRange(),s=this.trimHiddenDays(s),i&&(e=Oc(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),c=o,r.showNonCurrentDates||(c=Te(c,l.range)),c=this.adjustActiveRange(c),c=Te(c,s),d=ri(l.range,s),Ae(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:c,renderRange:o,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:i}=this,r=null,s=null,l=null,a;return i.duration?(r=i.duration,s=i.durationUnit,l=this.buildRangeFromDuration(e,n,r,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=i.dateEnv.greatestWholeUnit(l.start,l.end).unit:(r=this.getFallbackDuration(),s=Pn(r).unit,l=this.buildRangeFromDuration(e,n,r,s)),{duration:r,unit:s,range:l}}getFallbackDuration(){return O({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:i,slotMinTime:r,slotMaxTime:s}=this.props,{start:l,end:a}=e;return i&&(qe(r)<0&&(l=B(l),l=n.add(l,r)),qe(s)>1&&(a=B(a),a=X(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,i,r){let{dateEnv:s,dateAlignment:l}=this.props,a,o,c;if(!l){let{dateIncrement:u}=this.props;u&>(u)!l[o.defId].recurringDef);for(let o in l){let c=l[o];if(c.recurringDef){let{duration:d}=c.recurringDef;d||(d=c.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let u=Lc(c,d,e,i,r.recurringTypes);for(let h of u){let f=ai(o,{start:h,end:i.add(h,d)});a[f.instanceId]=f}}}return{defs:l,instances:a}}function Lc(t,e,n,i,r){let l=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:i.subtract(n.start,e),end:n.end},i);return t.allDay&&(l=l.map(B)),l}const Pt={id:String,groupId:String,title:String,url:String,interactive:Boolean},Sr={start:m,end:m,date:m,allDay:Boolean},Bc=Object.assign(Object.assign(Object.assign({},Pt),Sr),{extendedProps:m});function Cr(t,e,n,i,r=oi(n),s,l){let{refined:a,extra:o}=Tr(t,n,r),c=jc(e,n),d=Vc(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let h=Wn(a,o,e?e.sourceId:"",d.allDay,!!d.duration,n,s);return h.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:h,instance:null}}let u=Wc(a,c,n,i);if(u){let h=Wn(a,o,e?e.sourceId:"",u.allDay,u.hasEnd,n,s),f=ai(h.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function Tr(t,e,n=oi(e)){return ti(t,n)}function oi(t){return Object.assign(Object.assign(Object.assign({},Gt),Bc),t.pluginHooks.eventRefiners)}function Wn(t,e,n,i,r,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||Le(),sourceId:n,allDay:i,hasEnd:r,interactive:t.interactive,ui:qt(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Wc(t,e,n,i){let{allDay:r}=t,s,l=null,a=!1,o,c=null,d=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(d),s)l=s.marker;else if(!i)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),r==null&&(e!=null?r=e:r=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),r&&l&&(l=B(l)),o&&(c=o.marker,r&&(c=B(c)),l&&c<=l&&(c=null)),c?a=!0:i||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(l,r?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:r,hasEnd:a,range:{start:l,end:c},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function jc(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function pt(t,e,n,i,r,s){let l=de(),a=oi(n);for(let o of t){let c=Cr(o,e,n,i,a,r,s);c&&jn(c,l)}return l}function jn(t,e=de()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function ci(t,e){let n=t.instances[e];if(n){let i=t.defs[n.defId],r=sn(t,s=>Fc(i,s));return r.defs[i.defId]=i,r.instances[n.instanceId]=n,r}return de()}function Fc(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function de(){return{defs:{},instances:{}}}function di(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function sn(t,e){let n=Pe(t.defs,e),i=Pe(t.instances,r=>n[r.defId]);return{defs:n,instances:i}}function Uc(t,e){let{defs:n,instances:i}=t,r={},s={};for(let l in n)e.defs[l]||(r[l]=n[l]);for(let l in i)!e.instances[l]&&r[i[l].defId]&&(s[l]=i[l]);return{defs:r,instances:s}}function zc(t,e){return Array.isArray(t)?pt(t,null,e,!0):typeof t=="object"&&t?pt([t],null,e,!0):t!=null?String(t):null}function as(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Gt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:m,overlap:m,allow:m,className:as,classNames:as,color:String,backgroundColor:String,borderColor:String,textColor:String},$c={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function qt(t,e){let n=zc(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Yc(t){return t.reduce(Gc,$c)}function Gc(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const qc={id:String,defaultAllDay:Boolean,url:String,format:String,events:m,eventDataTransform:m,success:m,failure:m};function Rr(t,e,n=kr(e)){let i;if(typeof t=="string"?i={url:t}:typeof t=="function"||Array.isArray(t)?i={events:t}:typeof t=="object"&&t&&(i=t),i){let{refined:r,extra:s}=ti(i,n),l=Qc(r,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:Le(),sourceDefId:l.sourceDefId,meta:l.meta,ui:qt(r,e),extendedProps:s}}return null}function kr(t){return Object.assign(Object.assign(Object.assign({},Gt),qc),t.pluginHooks.eventSourceRefiners)}function Qc(t,e){let n=e.pluginHooks.eventSourceDefs;for(let i=n.length-1;i>=0;i-=1){let s=n[i].parseMeta(t);if(s)return{sourceDefId:i,meta:s}}return null}function Zc(t,e,n,i,r){switch(e.type){case"RECEIVE_EVENTS":return Xc(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return Jc(t,n[e.sourceId],e.rawEvents,i.activeRange,r);case"ADD_EVENTS":return Kc(t,e.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return di(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?Ve(t,i.activeRange,r):t;case"REMOVE_EVENTS":return Uc(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return xr(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return sn(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return de();default:return t}}function Xc(t,e,n,i,r,s){if(e&&n===e.latestFetchId){let l=pt(Mr(r,e,s),e,s);return i&&(l=Ve(l,i,s)),di(xr(t,e.sourceId),l)}return t}function Jc(t,e,n,i,r){const{defIdMap:s,instanceIdMap:l}=td(t);let a=pt(Mr(n,e,r),e,r,!1,s,l);return Ve(a,i,r)}function Mr(t,e,n){let i=n.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=os(t,r)),i&&(t=os(t,i)),t}function os(t,e){let n;if(!e)n=t;else{n=[];for(let i of t){let r=e(i);r?n.push(r):r==null&&n.push(i)}}return n}function Kc(t,e,n,i){return n&&(e=Ve(e,n,i)),di(t,e)}function cs(t,e,n){let{defs:i}=t,r=We(t.instances,s=>i[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:i,instances:r}}function xr(t,e){return sn(t,n=>n.sourceId!==e)}function ed(t,e){return{defs:t.defs,instances:Pe(t.instances,n=>!e[n.instanceId])}}function td(t){const{defs:e,instances:n}=t,i={},r={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(i[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(r[o]=s)}return{defIdMap:i,instanceIdMap:r}}class rn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){nd(this.handlers,e,n)}off(e,n){id(this.handlers,e,n)}trigger(e,...n){let i=this.handlers[e]||[],r=this.options&&this.options[e],s=[].concat(r||[],i);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function nd(t,e,n){(t[e]||(t[e]=[])).push(n)}function id(t,e,n){n?t[e]&&(t[e]=t[e].filter(i=>i!==n)):delete t[e]}const sd={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function rd(t,e){return pt(ld(t),null,e)}function ld(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},sd),n)),e}function Ir(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},ui(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function ad(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function ui(t,e){let n={};for(let i of e.pluginHooks.dateSpanTransforms)Object.assign(n,i(t,e));return Object.assign(n,_d(t,e.dateEnv)),n}function ds(t,e,n){let{dateEnv:i,options:r}=n,s=e;return t?(s=B(s),s=i.add(s,r.defaultAllDayEventDuration)):s=i.add(s,r.defaultTimedEventDuration),s}function hi(t,e,n,i){let r=Qt(t.defs,e),s=de();for(let l in t.defs){let a=t.defs[l];s.defs[l]=od(a,r[l],n,i)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=cd(a,o,r[a.defId],n,i)}return s}function od(t,e,n,i){let r=n.standardProps||{};r.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(r.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),r),{ui:Object.assign(Object.assign({},t.ui),r.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of i.pluginHooks.eventDefMutationAppliers)l(s,n,i);return!s.hasEnd&&i.options.forceEventDuration&&(s.hasEnd=!0),s}function cd(t,e,n,i,r){let{dateEnv:s}=r,l=i.standardProps&&i.standardProps.allDay===!0,a=i.standardProps&&i.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=wr(o.range)),i.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,i.datesDelta),end:s.add(o.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,i.startDelta),end:o.range.end}),i.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,i.endDelta)}),a&&(o.range={start:o.range.start,end:ds(e.allDay,o.range.start,r)}),e.allDay&&(o.range={start:B(o.range.start),end:B(o.range.end)}),o.range.endNr(n,e))}function Nr(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Yc(n)}function Hr(t,e){let n=t.map(dd);return n.sort((i,r)=>Co(i,r,e)),n.map(i=>i._seg)}function dd(t){let{eventRange:e}=t,n=e.def,i=e.instance?e.instance.range:e.range,r=i.start?i.start.valueOf():0,s=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:s,duration:s-r,allDay:Number(n.allDay),_seg:t})}function ud(t,e){let{pluginHooks:n}=e,i=n.isDraggableTransformers,{def:r,ui:s}=t.eventRange,l=s.startEditable;for(let a of i)l=a(l,r,s,e);return l}function hd(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function fd(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function ct(t,e,n,i,r,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:c,displayEventEnd:d}=o,u=t.eventRange.def,h=t.eventRange.instance;c==null&&(c=i!==!1),d==null&&(d=r!==!1);let f=h.range.start,p=h.range.end,y=s||t.start||t.eventRange.range.start,v=l||t.end||t.eventRange.range.end,b=B(f).valueOf()===B(y).valueOf(),w=B(Ce(p,-1)).valueOf()===B(Ce(v,-1)).valueOf();return c&&!u.allDay&&(b||w)?(y=b?f:y,v=w?p:v,d&&u.hasEnd?a.formatRange(y,v,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(y,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function Qe(t,e,n){let i=t.eventRange.range;return{isPast:i.end<(n||e.start),isFuture:i.start>=(n||e.end),isToday:e&&Ae(e,i.start)}}function gd(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function pd(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function fi(t,e){let{def:n,instance:i}=t.eventRange,{url:r}=n;if(r)return{href:r};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?pr(o=>{s.trigger("eventClick",{el:o.target,event:new F(e,n,i),jsEvent:o,view:e.viewApi})}):{}}const md={start:m,end:m,allDay:Boolean};function vd(t,e,n){let i=yd(t,e),{range:r}=i;if(!r.start)return null;if(!r.end){if(n==null)return null;r.end=e.add(r.start,n)}return i}function yd(t,e){let{refined:n,extra:i}=ti(t,md),r=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=r&&r.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:s?s.marker:null},allDay:l},i)}function bd(t,e){return Ic(t.range,e.range)&&t.allDay===e.allDay&&Dd(t,e)}function Dd(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function _d(t,e){return Object.assign(Object.assign({},Vr(t.range,e,t.allDay)),{allDay:t.allDay})}function Pr(t,e,n){return Object.assign(Object.assign({},Vr(t,e,n)),{timeZone:e.timeZone})}function Vr(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function Ed(t,e,n){let i=Tr({editable:!1},n),r=Wn(i.refined,i.extra,"",t.allDay,!0,n);return{def:r,ui:Nr(r,e),instance:ai(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function wd(t,e,n){let i=!1,r=function(a){i||(i=!0,e(a))},s=function(a){i||(i=!0,n(a))},l=t(r,s);l&&typeof l.then=="function"&&l.then(r,s)}class hs extends Error{constructor(e,n){super(e),this.response=n}}function Ad(t,e,n){t=t.toUpperCase();const i={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(i.body=new URLSearchParams(n),i.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,i).then(r=>{if(r.ok)return r.json().then(s=>[s,r],()=>{throw new hs("Failure parsing JSON",r)});throw new hs("Request failed",r)})}let En;function Lr(){return En==null&&(En=Sd()),En}function Sd(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="
",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class Cd extends W{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:i}=this.state,r=i||n.height==="auto"||n.contentHeight==="auto",s=!r&&n.height!=null?n.height:"",l=["fc",i?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Lr()||l.push("fc-liquid-hack"),e.children(l,s,r,i)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class et{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Td(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function gi(t){return{[t.component.uid]:t}}const Un={};class Rd{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:i}=this;i.currentCalendarOptionsRefiners[e]?i.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:i}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:i.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let i=this.getCurrentData(),r;n=n||"day",r=i.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),r?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:i}=this.getCurrentData(),r=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]),s,l;for(let a in n)r.push(a);for(s=0;s{this.dispatch({type:"REMOVE_EVENTS",eventStore:Or(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:i,instances:r}=n.eventStore;e=String(e);for(let s in i){let l=i[s];if(l.publicId===e){if(l.recurringDef)return new F(n,l,null);for(let a in r){let o=r[a];if(o.defId===l.defId)return new F(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Ne(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,i=[];for(let r in n)i.push(new $e(e,n[r]));return i}getEventSourceById(e){let n=this.getCurrentData(),i=n.eventSources;e=String(e);for(let r in i)if(i[r].publicId===e)return new $e(n,i[r]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof $e)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let i=Rr(e,n);return i?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[i]}),new $e(n,i)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=O(e);n&&this.trigger("_scrollRequest",{time:n})}}function kd(t,e){return t.left>=e.left&&t.left=e.top&&t.topn:e&&t>=e.end)}}function ln(t,e){let n=["fc-day",`fc-day-${Vo[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const Od=q({year:"numeric",month:"long",day:"numeric"}),Nd=q({week:"long"});function mt(t,e,n="day",i=!0){const{dateEnv:r,options:s,calendarApi:l}=t;let a=r.format(e,n==="week"?Nd:Od);if(s.navLinks){let o=r.toDate(e);const c=d=>{let u=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof u=="function"?u.call(l,r.toDate(e),d):(typeof u=="string"&&(n=u),l.zoomTo(e,n))};return Object.assign({title:at(s.navLinkHint,[a,o],a),"data-navlink":""},i?gr(c):{onClick:c})}return{"aria-label":a}}let wn=null;function Hd(){return wn===null&&(wn=Pd()),wn}function Pd(){let t=document.createElement("div");lt(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="
",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Xn(t),n}let An;function Vd(){return An||(An=Ld()),An}function Ld(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Wr(t);return document.body.removeChild(t),e}function Wr(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Bd(t,e=!1){let n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=Wr(t),o=a.y-i-r,c=a.x-s-l,d={borderLeft:i,borderRight:r,borderTop:s,borderBottom:l,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return Hd()&&n.direction==="rtl"?d.scrollbarLeft=o:d.scrollbarRight=o,e&&(d.paddingLeft=parseInt(n.paddingLeft,10)||0,d.paddingRight=parseInt(n.paddingRight,10)||0,d.paddingTop=parseInt(n.paddingTop,10)||0,d.paddingBottom=parseInt(n.paddingBottom,10)||0),d}function Wd(t,e=!1,n){let i=n?t.getBoundingClientRect():mi(t),r=Bd(t,e),s={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(s.left+=r.paddingLeft,s.right-=r.paddingRight,s.top+=r.paddingTop,s.bottom-=r.paddingBottom),s}function mi(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function jd(t){let e=jr(t),n=t.getBoundingClientRect();for(let i of e){let r=Br(n,i.getBoundingClientRect());if(r)n=r;else return null}return n}function jr(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Zt{constructor(e,n,i,r){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();i&&this.buildElHorizontals(s.left),r&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();n.push(s.left-e),i.push(s.right-e)}this.lefts=n,this.rights=i}buildElVerticals(e){let n=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();n.push(s.top-e),i.push(s.bottom-e)}this.tops=n,this.bottoms=i}leftToIndex(e){let{lefts:n,rights:i}=this,r=n.length,s;for(s=0;s=n[s]&&e=n[s]&&e0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()0}canScrollRight(){return this.getScrollLeft()n.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let i of e)this.insertEntry(i,n);return n}insertEntry(e,n){let i=this.findInsertion(e);return this.isInsertionValid(i,e)?(this.insertEntryAt(e,i),1):this.handleInvalidInsertion(i,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnta.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:l.end}},s)),r?(i.push({index:e.index,thickness:e.thickness,span:Fr(a,l)},...s),r):(i.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:i,levelCoords:r}=this;n.lateral===-1?(Sn(r,n.level,n.levelCoord),Sn(i,n.level,[e])):Sn(i[n.level],n.lateral,e),this.stackCnts[dt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:i,strictOrder:r,stackCnts:s}=this,l=n.length,a=0,o=-1,c=-1,d=null,u=0;for(let p=0;p=a+this.getEntryThickness(e))break;let v=i[p],b,w=gs(v,e.span.start,fs),S=w[0]+w[1];for(;(b=v[S])&&b.span.starta&&(a=C,d=b,o=p,c=S),C===a&&(u=Math.max(u,s[dt(b)]+1)),S+=1}}let h=0;if(d)for(h=o+1;hn(t[r-1]))return[r,0];for(;il)i=s+1;else return[s,1]}return[i,0]}class $d{constructor(e,n){this.emitter=new rn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const yi={};function Yd(t,e){return!t||e>10?q({weekday:"short"}):e>1?q({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):q({weekday:"long"})}const Ur="fc-col-header-cell";function zr(t){return t.text}class Gd extends W{render(){let{dateEnv:e,options:n,theme:i,viewApi:r}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=pi(l,s.todayRange,null,a),c=[Ur].concat(ln(o,i)),d=e.format(l,s.dayHeaderFormat),u=!o.isDisabled&&s.colCnt>1?mt(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:r},s.extraRenderProps),{text:d}),o);return g(oe,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:bt(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:zr,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},f=>g("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&g(f,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const qd=q({weekday:"long"});class Qd extends W{render(){let{props:e}=this,{dateEnv:n,theme:i,viewApi:r,options:s}=this.context,l=X(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:r}),e.extraRenderProps),{text:o});return g(oe,{elTag:"th",elClasses:[Ur,...ln(a,i),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:zr,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},d=>g("div",{className:"fc-scrollgrid-sync-inner"},g(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,qd)}})))}}class an extends re{constructor(e,n){super(e,n),this.initialNowDate=_t(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,i=Ce(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(i,e.unit),s=n.dateEnv.add(r,O(1,e.unit)),l=s.valueOf()-i.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:r,todayRange:ps(r)},nextState:{nowDate:s,todayRange:ps(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}an.contextType=je;function ps(t){let e=B(t),n=X(e,1);return{start:e,end:n}}class $r extends W{constructor(){super(...arguments),this.createDayHeaderFormatter=x(Zd)}render(){let{context:e}=this,{dates:n,dateProfile:i,datesRepDistinctDays:r,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,n.length);return g(an,{unit:"day"},(a,o)=>g("tr",{role:"row"},s&&s("day"),n.map(c=>r?g(Gd,{key:c.toISOString(),date:c,dateProfile:i,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):g(Qd,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:l}))))}}function Zd(t,e,n){return t||Yd(e,n)}class Xd{constructor(e,n){let i=e.start,{end:r}=e,s=[],l=[],a=-1;for(;i=n.length?n[n.length-1]+1:n[i]}}class Jd{constructor(e,n){let{dates:i}=e,r,s,l;if(n){for(s=i[0].getUTCDay(),r=1;rs.groupId===t)):typeof t=="object"&&t?Cn(Ve(t,e,r)):[]}function Cn(t){let{instances:e}=t,n=[];for(let i in e)n.push(e[i].range);return n}function ru(t,e){for(let n of t)if(nn(n,e))return!0;return!1}const kt=/^(visible|hidden)$/;class Qr extends W{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,be(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:i}=e,r=n&&i,s=["fc-scroller"];return n&&(i?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),g("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(kt.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:i}=e;for(let r=0;rn)return!0;return!1}needsYScrolling(){if(kt.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:i}=e;for(let r=0;rn)return!0;return!1}getXScrollbarWidth(){return kt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return kt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Oe{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,i)=>{let{depths:r,currentMap:s}=this,l=!1,a=!1;n!==null?(l=i in s,s[i]=n,r[i]=(r[i]||0)+1,a=!0):(r[i]-=1,r[i]||(delete s[i],delete this.callbackMap[i],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(i)),a&&this.masterCallback(n,String(i)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=i=>{this.handleValue(i,String(e))}),n}collect(e,n,i){return pc(this.currentMap,e,n,i)}getAll(){return ii(this.currentMap)}}function lu(t){let e=mo(t,".fc-scrollgrid-shrink"),n=0;for(let i of e)n=Math.max(n,Mo(i));return Math.ceil(n)}function Zr(t,e){return t.liquid&&e.liquid}function au(t,e){return e.maxHeight!=null||Zr(t,e)}function ou(t,e,n,i){let{expandRows:r}=n;return typeof e.content=="function"?e.content(n):g("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,g(i?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function cu(t,e){return Se(t,e,he)}function du(t,e){let n=[];for(let i of t){let r=i.span||1;for(let s=0;se,cu),this.renderMicroColGroup=x(du),this.scrollerRefs=new Oe,this.scrollerElRefs=new Oe(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:i}=this,r=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=fu(e.liquid,i);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=r.length,c=0,d,u=[],h=[],f=[];for(;c{}},r);return g(r?"th":"td",{ref:i.elRef,role:"presentation"},g("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},g(Qr,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:u,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:d,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let i=vu(this.props.sections,n);i&&be(i.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return hu(this.props.cols)?lu(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Vd(),{scrollerRefs:n,scrollerElRefs:i}=this,r=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){r=!0;break}}for(let a of this.props.sections){let o=a.key,c=i.currentMap[o];if(c){let d=c.parentNode;s[o]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),l[o]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:s,scrollerClientHeights:l}}}Xr.addStateEquality({scrollerClientWidths:he,scrollerClientHeights:he});function vu(t,e){for(let n of t)if(n.key===e)return n;return null}class on extends W{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&us(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:i}=n,{seg:r}=e,{eventRange:s}=r,{ui:l}=s,a={event:new F(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&ud(r,n),isStartResizable:!e.disableResizing&&hd(r,n),isEndResizable:!e.disableResizing&&fd(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return g(oe,Object.assign({},e,{elRef:this.handleEl,elClasses:[...gd(a),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:i.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.eventClassNames,didMount:i.eventDidMount,willUnmount:i.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&us(this.el,this.props.seg)}}class yu extends W{render(){let{props:e,context:n}=this,{options:i}=n,{seg:r}=e,{ui:s}=r.eventRange,l=i.eventTimeFormat||e.defaultTimeFormat,a=ct(r,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return g(on,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:fi(r,n),defaultGenerator:bu,timeText:a}),(o,c)=>g(G,null,g(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function bu(t){return g("div",{className:"fc-event-main-frame"},t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title-container"},g("div",{className:"fc-event-title fc-sticky"},t.event.title||g(G,null," "))))}const Du=q({day:"numeric"});class Jr extends W{constructor(){super(...arguments),this.refineRenderProps=Ht(_u)}render(){let{props:e,context:n}=this,{options:i}=n,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:i.monthStartFormat});return g(oe,Object.assign({},e,{elClasses:[...ln(r,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":bt(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:i.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:i.dayCellClassNames,didMount:i.dayCellDidMount,willUnmount:i.dayCellWillUnmount}))}}function Kr(t){return!!(t.dayCellContent||Bn("dayCellContent",t))}function _u(t){let{date:e,dateEnv:n,dateProfile:i,isMonthStart:r}=t,s=pi(e,t.todayRange,null,i),l=t.showDayNumber?n.format(e,r?t.monthStartFormat:Du):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:r,dayNumberText:l}),t.extraRenderProps)}class Eu extends W{render(){let{props:e}=this,{seg:n}=e;return g(on,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:wu,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function wu(t){let{title:e}=t.event;return e&&g("div",{className:"fc-event-title"},t.event.title)}function Au(t){return g("div",{className:`fc-${t}`})}const Su=t=>g(je.Consumer,null,e=>{let{dateEnv:n,options:i}=e,{date:r}=t,s=i.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(r),a=n.format(r,s);return g(oe,Object.assign({},t,{renderProps:{num:l,text:a,date:r},generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:Cu,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))});function Cu(t){return t.text}const Tn=10;class Tu extends W{constructor(){super(...arguments),this.state={titleId:ye()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&be(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=hr(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:i,state:r}=this,s=["fc-popover",e.getClass("popover")].concat(i.extraClassNames||[]);return to(g("div",Object.assign({},i.extraAttrs,{id:i.id,className:s.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),g("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},g("span",{className:"fc-popover-title",id:r.titleId},i.title),g("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),g("div",{className:"fc-popover-body "+e.getClass("popoverContent")},i.children)),i.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:i}=this.props,{rootEl:r}=this,s=jd(n);if(s){let l=r.getBoundingClientRect(),a=i?ne(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,Tn),o=Math.min(o,document.documentElement.clientWidth-Tn-l.width),o=Math.max(o,Tn);let c=r.offsetParent.getBoundingClientRect();lt(r,{top:a-c.top,left:o-c.left})}}}class Ru extends pe{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:i}=this,{startDate:r,todayRange:s,dateProfile:l}=i,a=n.format(r,e.dayPopoverFormat);return g(Jr,{elRef:this.handleRootEl,date:r,dateProfile:l,todayRange:s},(o,c,d)=>g(Tu,{elRef:d.ref,id:i.id,title:a,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:i.parentEl,alignmentEl:i.alignmentEl,alignGridTop:i.alignGridTop,onClose:i.onClose},Kr(e)&&g(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),i.children))}queryHit(e,n,i,r){let{rootEl:s,props:l}=this;return e>=0&&e=0&&n{this.linkEl=e,this.props.elRef&&be(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:i}=this,{moreLinkClick:r}=i.options,s=vs(n).start;function l(a){let{def:o,instance:c,range:d}=a.eventRange;return{event:new F(i,o,c),start:i.dateEnv.toDate(d.start),end:i.dateEnv.toDate(d.end),isStart:a.isStart,isEnd:a.isEnd}}typeof r=="function"&&(r=r({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:i.viewApi})),!r||r==="popover"?this.setState({isPopoverOpen:!0}):typeof r=="string"&&i.calendarApi.zoomTo(s,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return g(je.Consumer,null,i=>{let{viewApi:r,options:s,calendarApi:l}=i,{moreLinkText:a}=s,{moreCnt:o}=e,c=vs(e),d=typeof a=="function"?a.call(l,o):`+${o} ${a}`,u=at(s.moreLinkHint,[o],d),h={num:o,shortText:`+${o}`,text:d,view:r};return g(G,null,!!e.moreCnt&&g(oe,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),gr(this.handleClick)),{title:u,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Mu,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&g(Ru,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=ne(this.linkEl,".fc-view-harness"))}}function Mu(t){return t.text}function vs(t){if(t.allDayDate)return{start:t.allDayDate,end:X(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:xu(e),end:Ou(e)}}function xu(t){return t.reduce(Iu).eventRange.range.start}function Iu(t,e){return t.eventRange.range.starte.eventRange.range.end?t:e}class Hu{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Pu extends Hu{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let i=!1;e.isActive?(n.set(e.id,e),i=!0):n.has(e.id)&&(n.delete(e.id),i=!0),i&&this.set(n)}}const Vu=[],el={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},tl=Object.assign(Object.assign({},el),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Lu(t){let e=t.length>0?t[0].code:"en",n=Vu.concat(t),i={en:tl};for(let r of n)i[r.code]=r;return{map:i,defaultCode:e}}function nl(t,e){return typeof t=="object"&&!Array.isArray(t)?il(t.code,[t.code],t):Bu(t,e)}function Bu(t,e){let n=[].concat(t||[]),i=Wu(n,e)||tl;return il(t,n,i)}function Wu(t,e){for(let n=0;n0;r-=1){let s=i.slice(0,r).join("-");if(e[s])return e[s]}}return null}function il(t,e,n){let i=ni([el,n],["buttonText"]);delete i.code;let{week:r}=i;return delete i.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function me(t){return{id:Le(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function ju(t,e){let n={},i={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function r(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,r(l.deps),i=Uu(i,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&r(t),r(e),i}function Fu(){let t=[],e=[],n;return(i,r)=>((!n||!Se(i,t)||!Se(r,e))&&(n=ju(i,r)),t=i,e=r,n)}function Uu(t,e){return{premiumReleaseDate:zu(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function zu(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class ke extends Dt{}ke.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ke.prototype.baseIconClass="fc-icon";ke.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};ke.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ke.prototype.iconOverrideOption="buttonIcons";ke.prototype.iconOverrideCustomButtonOption="icon";ke.prototype.iconOverridePrefix="fc-icon-";function $u(t,e){let n={},i;for(i in t)zn(i,n,t,e);for(i in e)zn(i,n,t,e);return n}function zn(t,e,n,i){if(e[t])return e[t];let r=Yu(t,e,n,i);return r&&(e[t]=r),r}function Yu(t,e,n,i){let r=n[t],s=i[t],l=d=>r&&r[d]!==null?r[d]:s&&s[d]!==null?s[d]:null,a=l("component"),o=l("superType"),c=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");c=zn(o,e,n,i)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),s?s.rawOptions:{})}:null}function ys(t){return We(t,Gu)}function Gu(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=bs(e):n&&!(n.prototype instanceof W)&&(n=bs(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function bs(t){return e=>g(je.Consumer,null,n=>g(oe,{elTag:"div",elClasses:Er(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function qu(t,e,n,i){let r=ys(t),s=ys(e.views),l=$u(r,s);return We(l,a=>Qu(a,s,e,n,i))}function Qu(t,e,n,i,r){let s=t.overrides.duration||t.defaults.duration||i.duration||n.duration,l=null,a="",o="",c={};if(s&&(l=Zu(s),l)){let h=Pn(l);a=h.unit,h.value===1&&(o=a,c=e[a]?e[a].rawOptions:{})}let d=h=>{let f=h.buttonText||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},u=h=>{let f=h.buttonHints||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:d(i)||d(n)||t.overrides.buttonText,buttonTextDefault:d(r)||t.defaults.buttonText||d(ot)||t.type,buttonTitleOverride:u(i)||u(n)||t.overrides.buttonHint,buttonTitleDefault:u(r)||t.defaults.buttonHint||u(ot)}}let Ds={};function Zu(t){let e=JSON.stringify(t),n=Ds[e];return n===void 0&&(n=O(t),Ds[e]=n),n}function Xu(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Ju(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Ku(t,e,n,i){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||n);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if(r=i.buildPrev(t,n),r.isValid)return r;break;case"NEXT":if(r=i.buildNext(t,n),r.isValid)return r;break}return t}function eh(t,e,n){let i=e?e.activeRange:null;return rl({},ah(t,n),i,n)}function th(t,e,n,i){let r=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return rl(t,e.sources,r,i);case"REMOVE_EVENT_SOURCE":return ih(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ll(t,r,i):t;case"FETCH_EVENT_SOURCES":return bi(t,e.sourceIds?vr(e.sourceIds):al(t,i),r,e.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return lh(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function nh(t,e,n){let i=e?e.activeRange:null;return bi(t,al(t,n),i,!0,n)}function sl(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function rl(t,e,n,i){let r={};for(let s of e)r[s.sourceId]=s;return n&&(r=ll(r,n,i)),Object.assign(Object.assign({},t),r)}function ih(t,e){return Pe(t,n=>n.sourceId!==e)}function ll(t,e,n){return bi(t,Pe(t,i=>sh(i,e,n)),e,!1,n)}function sh(t,e,n){return ol(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.startt.fetchRange.end:!t.latestFetchId}function bi(t,e,n,i,r){let s={};for(let l in t){let a=t[l];e[l]?s[l]=rh(a,n,i,r):s[l]=a}return s}function rh(t,e,n,i){let{options:r,calendarApi:s}=i,l=i.pluginHooks.eventSourceDefs[t.sourceDefId],a=Le();return l.fetch({eventSource:t,range:e,isRefetch:n,context:i},o=>{let{rawEvents:c}=o;r.eventSourceSuccess&&(c=r.eventSourceSuccess.call(s,c,o.response)||c),t.success&&(c=t.success.call(s,c,o.response)||c),i.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},o=>{let c=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(s,o),c=!0),t.failure&&(t.failure(o),c=!0),c||console.warn(o.message,o),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function lh(t,e,n,i){let r=t[e];return r&&n===r.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:i})}):t}function al(t,e){return Pe(t,n=>ol(n,e))}function ah(t,e){let n=kr(e),i=[].concat(t.eventSources||[]),r=[];t.initialEvents&&i.unshift(t.initialEvents),t.events&&i.unshift(t.events);for(let s of i){let l=Rr(s,e,n);l&&r.push(l)}return r}function ol(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function oh(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function ch(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function dh(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function uh(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function hh(t,e,n,i,r){let s=t.headerToolbar?_s(t.headerToolbar,t,e,n,i,r):null,l=t.footerToolbar?_s(t.footerToolbar,t,e,n,i,r):null;return{header:s,footer:l}}function _s(t,e,n,i,r,s){let l={},a=[],o=!1;for(let c in t){let d=t[c],u=fh(d,e,n,i,r,s);l[c]=u.widgets,a.push(...u.viewsWithButtons),o=o||u.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function fh(t,e,n,i,r,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},c=e.buttonText||{},d=n.buttonHints||{},u=e.buttonHints||{},h=t?t.split(" "):[],f=[],p=!1;return{widgets:h.map(v=>v.split(",").map(b=>{if(b==="title")return p=!0,{buttonName:b};let w,S,C,V,U,L;if(w=a[b])C=M=>{w.click&&w.click.call(M.target,M,M.target)},(V=i.getCustomButtonIconClass(w))||(V=i.getIconClass(b,l))||(U=w.text),L=w.hint||w.text;else if(S=r[b]){f.push(b),C=()=>{s.changeView(b)},(U=S.buttonTextOverride)||(V=i.getIconClass(b,l))||(U=S.buttonTextDefault);let M=S.buttonTextOverride||S.buttonTextDefault;L=at(S.buttonTitleOverride||S.buttonTitleDefault||e.viewHint,[M,b],M)}else if(s[b])if(C=()=>{s[b]()},(U=o[b])||(V=i.getIconClass(b,l))||(U=c[b]),b==="prevYear"||b==="nextYear"){let M=b==="prevYear"?"prev":"next";L=at(d[M]||u[M],[c.year||"year","year"],c[b])}else L=M=>at(d[b]||u[b],[c[M]||M,M],c[b]);return{buttonName:b,buttonClick:C,buttonIcon:V,buttonText:U,buttonHint:L}})),viewsWithButtons:f,hasTitle:p}}class gh{constructor(e,n,i){this.type=e,this.getCurrentData=n,this.dateEnv=i}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let ph={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const mh=me({name:"array-event-source",eventSourceDefs:[ph]});let vh={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:i}=t.context,r=t.eventSource.meta;wd(r.bind(null,Pr(t.range,i)),s=>e({rawEvents:s}),n)}};const yh=me({name:"func-event-source",eventSourceDefs:[vh]}),bh={method:String,extraParams:m,startParam:String,endParam:String,timeZoneParam:String};let Dh={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:i}=t.eventSource,r=Eh(i,t.range,t.context);Ad(i.method,i.url,r).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const _h=me({name:"json-event-source",eventSourceRefiners:bh,eventSourceDefs:[Dh]});function Eh(t,e,n){let{dateEnv:i,options:r}=n,s,l,a,o,c={};return s=t.startParam,s==null&&(s=r.startParam),l=t.endParam,l==null&&(l=r.endParam),a=t.timeZoneParam,a==null&&(a=r.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(c,o),c[s]=i.formatIso(e.start),c[l]=i.formatIso(e.end),i.timeZone!=="local"&&(c[a]=i.timeZone),c}const wh={daysOfWeek:m,startTime:O,endTime:O,duration:O,startRecur:m,endRecur:m};let Ah={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},i;return t.duration&&(i=t.duration),!i&&t.startTime&&t.endTime&&(i=No(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:i,typeData:n}}return null},expand(t,e,n){let i=Te(e,{start:t.startRecur,end:t.endRecur});return i?Ch(t.daysOfWeek,t.startTime,i,n):[]}};const Sh=me({name:"simple-recurring-event",recurringTypes:[Ah],eventRefiners:wh});function Ch(t,e,n,i){let r=t?vr(t):null,s=B(n.start),l=n.end,a=[];for(;ssl(t.eventSources)],propSetHandlers:{dateProfile:Rh,eventStore:kh}})];class xh{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Zn(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],i;for(;i=e.shift();)this.runTask(i),n.push(i);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Ih(t,e,n){let i;return/^(year|month)$/.test(t.currentRangeUnit)?i=t.currentRange:i=t.activeRange,n.formatRange(i.start,i.end,q(e.titleFormat||Oh(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Oh(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Ft(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Nh{constructor(e){this.computeCurrentViewData=x(this._computeCurrentViewData),this.organizeRawLocales=x(Lu),this.buildLocale=x(nl),this.buildPluginHooks=Fu(),this.buildDateEnv=x(Hh),this.buildTheme=x(Ph),this.parseToolbars=x(hh),this.buildViewSpecs=x(qu),this.buildDateProfileGenerator=Ht(Vh),this.buildViewApi=x(Lh),this.buildViewUiProps=Ht(jh),this.buildEventUiBySource=x(Bh,he),this.buildEventUiBases=x(Wh),this.parseContextBusinessHours=Ht(Fh),this.buildTitle=x(Ih),this.emitter=new rn,this.actionRunner=new xh(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},i=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),r=i.calendarOptions.initialView||i.pluginHooks.initialView,s=this.computeCurrentViewData(r,i,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Pc(i.calendarOptions,i.dateEnv),a=s.dateProfileGenerator.build(l);Ae(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of i.pluginHooks.contextInit)h(o);let c=eh(i.calendarOptions,a,o),d={dynamicOptionOverrides:n,currentViewType:r,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:c,eventUiBases:{},eventStore:de(),renderableEventStore:de(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},u=Object.assign(Object.assign({},o),d);for(let h of i.pluginHooks.reducers)Object.assign(d,h(null,null,u));Rn(d,o)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:i}=this;n===void 0?i.optionOverrides=e:(i.optionOverrides=Object.assign(Object.assign({},i.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:i,emitter:r}=this,s=Ju(i.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=Xu(i.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,r.setThisContext(n.calendarApi),r.setOptions(o.options);let c={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:u}=i;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(u=o.dateProfileGenerator.build(d)),d=Hc(d,e),u=Ku(u,e,d,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Ae(u.currentRange,d))&&(d=u.currentRange.start);let h=th(i.eventSources,e,u,c),f=Zc(i.eventStore,e,h,u,c),y=sl(h)&&!o.options.progressiveEventRendering&&i.renderableEventStore||f,{eventUiSingleBase:v,selectionConfig:b}=this.buildViewUiProps(c),w=this.buildEventUiBySource(h),S=this.buildEventUiBases(y.defs,v,w),C={dynamicOptionOverrides:s,currentViewType:a,currentDate:d,dateProfile:u,eventSources:h,eventStore:f,renderableEventStore:y,selectionConfig:b,eventUiBases:S,businessHours:this.parseContextBusinessHours(c),dateSelection:oh(i.dateSelection,e),eventSelection:ch(i.eventSelection,e),eventDrag:dh(i.eventDrag,e),eventResize:uh(i.eventResize,e)},V=Object.assign(Object.assign({},c),C);for(let M of l.pluginHooks.reducers)Object.assign(C,M(i,e,V));let U=Rn(i,c),L=Rn(C,c);!U&&L?r.trigger("loading",!0):U&&!L&&r.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,i=this.data,r=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,r,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),s),n),a=r.pluginHooks.optionChangeHandlers,o=i&&i.calendarOptions,c=r.calendarOptions;if(o&&o!==c){o.timeZone!==c.timeZone&&(n.eventSources=l.eventSources=nh(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=cs(l.eventStore,i.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=cs(l.renderableEventStore,i.dateEnv,l.dateEnv));for(let d in a)(this.optionsForHandling.indexOf(d)!==-1||o[d]!==c[d])&&a[d](c[d],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,i){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);ws(o);let c=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,s,a,r.defaultRangeSeparator),d=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),u=this.buildTheme(r,s),h=this.parseToolbars(r,this.stableOptionOverrides,u,d,i);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:s,dateEnv:c,viewSpecs:d,theme:u,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:i,locale:r}=Dn([ot,e,n]),s=this.organizeRawLocales(i),l=s.map,a=this.buildLocale(r||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],Mh),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ns),is),ss),o.listenerRefiners),o.optionRefiners),d={},u=Dn([ot,a,e,n]),h={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,y=!1;for(let v in u)this.optionsForRefining.indexOf(v)===-1&&(u[v]===f[v]||Me[v]&&v in f&&Me[v](f[v],u[v]))?h[v]=p[v]:c[v]?(h[v]=c[v](u[v]),y=!0):d[v]=f[v];return y&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:d}}_computeCurrentViewData(e,n,i,r){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,i,r);ws(a);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:c}}processRawViewOptions(e,n,i,r,s){let l=Dn([ot,e.optionDefaults,i,r,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ns),is),ss),uc),n.listenerRefiners),n.optionRefiners),o={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,u=!1,h={};for(let f in l)l[f]===c[f]||Me[f]&&Me[f](l[f],c[f])?o[f]=d[f]:(l[f]===this.currentCalendarOptionsInput[f]||Me[f]&&Me[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):a[f]?o[f]=a[f](l[f]):h[f]=l[f],u=!0);return u&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function Hh(t,e,n,i,r,s,l,a){let o=nl(e||l.defaultCode,l.map);return new _c({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Ph(t,e){let n=e.themeClasses[t.themeSystem]||ke;return new n(t)}function Vh(t){let e=t.dateProfileGeneratorClass||Ar;return new e(t)}function Lh(t,e,n){return new gh(t,e,n)}function Bh(t){return We(t,e=>e.ui)}function Wh(t,e,n){let i={"":e};for(let r in t){let s=t[r];s.sourceId&&n[s.sourceId]&&(i[r]=n[s.sourceId])}return i}function jh(t){let{options:e}=t;return{eventUiSingleBase:qt({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:qt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Rn(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Fh(t){return rd(t.options.businessHours,t)}function ws(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Uh extends W{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return g("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:i}=this.context,r=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:c,buttonIcon:d,buttonHint:u}=l;if(a==="title")s=!1,r.push(g("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",p=[`fc-${a}-button`,i.getClass("button")];h&&p.push(i.getClass("buttonActive")),r.push(g("button",{type:"button",title:typeof u=="function"?u(n.navUnit):u,disabled:f,"aria-pressed":h,className:p.join(" "),onClick:o},c||(d?g("span",{className:d}):"")))}}if(r.length>1){let l=s&&i.getClass("buttonGroup")||"";return g("div",{className:l},...r)}return r[0]}}class As extends W{render(){let{model:e,extraClassName:n}=this.props,i=!1,r,s,l=e.sectionWidgets,a=l.center;return l.left?(i=!0,r=l.left):r=l.start,l.right?(i=!0,s=l.right):s=l.end,g("div",{className:[n||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",r||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:i}=this;return g(Uh,{key:e,widgetGroups:n,title:i.title,navUnit:i.navUnit,activeButton:i.activeButton,isTodayEnabled:i.isTodayEnabled,isPrevEnabled:i.isPrevEnabled,isNextEnabled:i.isNextEnabled,titleId:i.titleId})}}class zh extends W{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,be(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:i}=e,r=["fc-view-harness",i||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return i?n.availableWidth!==null?s=n.availableWidth/i:l=`${1/i*100}%`:s=e.height||"",g("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class $h extends et{constructor(e){super(e),this.handleSegClick=(n,i)=>{let{component:r}=this,{context:s}=r,l=Je(i);if(l&&r.isValidSegDownEl(n.target)){let a=ne(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:i,event:new F(r.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=fr(e.el,"click",".fc-event",this.handleSegClick)}}class Yh extends et{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,i)=>{Je(i)&&(this.currentSegEl=i,this.triggerEvent("eventMouseEnter",n,i))},this.handleSegLeave=(n,i)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,i))},this.removeHoverListeners=bo(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,i){let{component:r}=this,{context:s}=r,l=Je(i);(!n||r.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:i,event:new F(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Gh extends Fe{constructor(){super(...arguments),this.buildViewContext=x(Ac),this.buildViewPropTransformers=x(Qh),this.buildToolbarProps=x(qh),this.headerRef=ue(),this.footerRef=ue(),this.interactionsStore={},this.state={viewLabelId:ye()},this.registerInteractiveComponent=(e,n)=>{let i=Td(e,n),l=[$h,Yh].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(i));this.interactionsStore[e.uid]=l,Un[e.uid]=i},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let i of n)i.destroy();delete this.interactionsStore[e.uid]}delete Un[e.uid]},this.resizeRunner=new Zn(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:i}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,_t(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":i.height!=null?s=!0:i.contentHeight!=null?l=i.contentHeight:a=Math.max(i.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return g(je.Provider,{value:o},n.header&&g(As,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},r)),g(zh,{liquid:s,height:l,aspectRatio:a,labeledById:c},this.renderView(e),this.buildAppendContent()),n.footer&&g(As,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(i=>new i(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let i in n)n[i](e[i],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:i}=n.pluginHooks;for(let r in i)n[r]!==e[r]&&i[r](n[r],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(i=>i(e));return g(G,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:i}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(r,a.transform(r,e));let l=i.component;return g(l,Object.assign({},r))}}function qh(t,e,n,i,r,s){let l=n.build(r,void 0,!1),a=n.buildPrev(e,i,!1),o=n.buildNext(e,i,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!Ae(e.currentRange,r),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function Qh(t){return t.map(e=>new e)}class Zh extends Rd{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=i=>{switch(i.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=i=>{this.currentData=i,this.renderRunner.request(i.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:i}=this;rs(()=>{ft(g(Cd,{options:i.calendarOptions,theme:i.theme,emitter:i.emitter},(r,s,l,a)=>(this.setClassNames(r),this.setHeight(s),g(_r.Provider,{value:this.customContentRenderId},g(Gh,Object.assign({isHeightAuto:l,forPrint:a},i))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ft(null,this.el),this.setClassNames([]),this.setHeight(""))},co(e),this.el=e,this.renderRunner=new Zn(this.handleRenderRequest),new Nh({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){rs(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!Se(e,this.currentClassNames)){let{classList:n}=this.el;for(let i of this.currentClassNames)n.remove(i);for(let i of e)n.add(i);this.currentClassNames=e}}setHeight(e){ur(this.el,"height",e)}}const Xh={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Jh=Vs({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:nf(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(It(ef,{key:e.id,customRendering:e}));return It("div",{attrs:{"data-fc-render-id":this.renderId}},It(Q,t))},mounted(){const t=new Pu;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new Zh(this.$el,e);this.calendar=n,n.render(),t.subscribe(i=>{this.customRenderingMap=i,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:tf()}),Kh=Jh,ef=Vs({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return It(Zl,{to:t.containerEl},e)}});function tf(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let i=this.buildOptions(e);n.resetOptions(i),this.renderId++}}};for(let e in Xh)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let i=this.getApi();i.pauseRendering(),i.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function nf(t){const e={};for(const n in t)e[sf(n)]=t[n];return e}function sf(t){return t.split("-").map((e,n)=>n?rf(e):e).join("")}function rf(t){return t.charAt(0).toUpperCase()+t.slice(1)}var lf=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';en(lf);function Mt(t,e){let n=[];for(let i=0;i{let r=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return g(G,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return g("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:r[l]?"hidden":""}},dl(s)?g(hl,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Qe(s,e.todayRange))):g(ul,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},Qe(s,e.todayRange))))}))}})}}function cf(t){let e=[],n=[];for(let i of t)e.push(i.seg),i.isVisible||n.push(i.seg);return{allSegs:e,invisibleSegs:n}}const df=q({week:"narrow"});class uf extends pe{constructor(){super(...arguments),this.rootElRef=ue(),this.state={dayNumberId:ye()},this.handleRootEl=e=>{be(this.rootElRef,e),be(this.props.elRef,e)}}render(){let{context:e,props:n,state:i,rootElRef:r}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const c=n.showDayNumber&&ff(a,o.currentRange,l);return g(Jr,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":i.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hf,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(d,u)=>g("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&g(Su,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:mt(e,a,"week"),date:a,defaultFormat:df}),!u.isDisabled&&(n.showDayNumber||Kr(s)||n.forceDayTop)?g("div",{className:"fc-daygrid-day-top"},g(d,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},mt(e,a)),{id:i.dayNumberId})})):n.showDayNumber?g("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},g("a",{className:"fc-daygrid-day-number"}," ")):void 0,g("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,g("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},g(of,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:r,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),g("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function hf(t){return t.dayNumberText||g(G,null," ")}function ff(t,e,n){const{start:i,end:r}=e,s=Ce(r,-1),l=n.getYear(i),a=n.getMonth(i),o=n.getYear(s),c=n.getMonth(s);return!(l===o&&a===c)&&(t.valueOf()===i.valueOf()||n.getDay(t)===1&&t.valueOf(){let w=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return r[w]});a.allowReslicing=!0,a.strictOrder=i,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],c=[];for(let b=0;b1,v=f.span.start===a;u+=f.levelCoord-d,d=f.levelCoord+f.thickness,y?(u+=f.thickness,v&&h.push({seg:Ze(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):v&&(h.push({seg:Ze(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:u}),u=0)}r.push(c),s.push(h),l.push(u)}return{singleColPlacements:r,multiColPlacements:s,leftoverMargins:l}}function mf(t,e){let n=[];for(let i=0;i!this.forceHidden[dt(s)];for(let s=0;s{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:i}=this,{options:r}=i,s=e.cells.length,l=xt(e.businessHourSegs,s),a=xt(e.bgEventSegs,s),o=xt(this.getHighlightSegs(),s),c=xt(this.getMirrorSegs(),s),{singleColPlacements:d,multiColPlacements:u,moreCnts:h,moreMarginTops:f}=gf(Hr(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return g("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((y,v)=>{let b=this.renderFgSegs(v,e.forPrint?d[v]:u[v],e.todayRange,p),w=this.renderFgSegs(v,yf(c[v],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return g(uf,{key:y.key,elRef:this.cellElRefs.createRef(y.key),innerElRef:this.frameElRefs.createRef(y.key),dateProfile:e.dateProfile,date:y.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&v===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:y.extraRenderProps,extraDataAttrs:y.extraDataAttrs,extraClassNames:y.extraClassNames,extraDateSpan:y.extraDateSpan,moreCnt:h[v],moreMarginTop:f[v],singlePlacements:d[v],fgContentElRef:this.fgElRefs.createRef(y.key),fgContent:g(G,null,g(G,null,b),g(G,null,w)),bgContent:g(G,null,this.renderFillSegs(o[v],"highlight"),this.renderFillSegs(l[v],"non-business"),this.renderFillSegs(a[v],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let i=this.props;this.updateSizing(!he(e,i))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,i,r,s,l,a){let{context:o}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,u=this.props.cells.length===1,h=s||l||a,f=[];if(d)for(let p of n){let{seg:y}=p,{instanceId:v}=y.eventRange.instance,b=p.isVisible&&!r[v],w=p.isAbsolute,S="",C="";w&&(o.isRtl?(C=0,S=d.lefts[y.lastCol]-d.lefts[y.firstCol]):(S=0,C=d.rights[y.firstCol]-d.rights[y.lastCol])),f.push(g("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:fl(y),ref:h?null:this.segHarnessRefs.createRef(gl(y)),style:{visibility:b?"":"hidden",marginTop:w?"":p.marginTop,top:w?p.absoluteTop:"",left:S,right:C}},dl(y)?g(hl,Object.assign({seg:y,isDragging:s,isSelected:v===c,defaultDisplayEventEnd:u},Qe(y,i))):g(ul,Object.assign({seg:y,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:v===c,defaultDisplayEventEnd:u},Qe(y,i)))))}return f}renderFillSegs(e,n){let{isRtl:i}=this.context,{todayRange:r}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=i?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(g("div",{key:pd(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?g(Eu,Object.assign({seg:a},Qe(a,r))):Au(n)))}return g(G,{},...l)}updateSizing(e){let{props:n,state:i,frameElRefs:r}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(c=>r.currentMap[c.key]);if(o.length){let c=this.rootElRef.current,d=new Zt(c,o,!0,!1);(!i.framePositions||!i.framePositions.similarTo(d))&&this.setState({framePositions:new Zt(c,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let i in e){let r=Math.round(e[i].getBoundingClientRect().height);n[i]=Math.max(n[i]||0,r)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],i=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-i.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}pl.addStateEquality({segHeights:he});function yf(t,e){if(!t.length)return[];let n=bf(e);return t.map(i=>({seg:i,isVisible:!0,isAbsolute:!0,absoluteTop:n[i.eventRange.instance.instanceId],marginTop:0}))}function bf(t){let e={};for(let n of t)for(let i of n)e[i.seg.eventRange.instance.instanceId]=i.absoluteTop;return e}class ml extends pe{constructor(){super(...arguments),this.splitBusinessHourSegs=x(Mt),this.splitBgEventSegs=x(Mt),this.splitFgEventSegs=x(Mt),this.splitDateSelectionSegs=x(Mt),this.splitEventDrag=x(Ss),this.splitEventResize=x(Ss),this.rowRefs=new Oe}render(){let{props:e,context:n}=this,i=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,i),s=this.splitBgEventSegs(e.bgEventSegs,i),l=this.splitFgEventSegs(e.fgEventSegs,i),a=this.splitDateSelectionSegs(e.dateSelectionSegs,i),o=this.splitEventDrag(e.eventDrag,i),c=this.splitEventResize(e.eventResize,i),d=i>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return g(an,{unit:"day"},(u,h)=>g(G,null,e.cells.map((f,p)=>g(pl,{ref:this.rowRefs.createRef(p),key:f.length?f[0].date.toISOString():p,showDayNumbers:i>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:r[p],eventSelection:e.eventSelection,bgEventSegs:s[p].filter(Df),fgEventSegs:l[p],dateSelectionSegs:a[p],eventDrag:o[p],eventResize:c[p],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:d,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Zt(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Zt(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:i,rowPositions:r}=this,s=i.leftToIndex(e),l=r.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:i.lefts[s],right:i.rights[s],top:r.tops[l],bottom:r.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let i=this.props.cells[e][n].date,r=X(i,1);return{start:i,end:r}}}function Df(t){return t.eventRange.def.allDay}class _f extends pe{constructor(){super(...arguments),this.elRef=ue(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:i,expandRows:r}=e,s=i===!0||n===!0;s&&!r&&(s=!1,n=null,i=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return g("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},g("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,g("tbody",{role:"presentation"},g(ml,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:i,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Ef(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),i=n.closest(".fc-scroller"),r=e.getBoundingClientRect().top-n.getBoundingClientRect().top;i.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}function Ef(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Vn(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${bt(e.currentDate)}"]`)),n}class vl extends Kd{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class wf extends pe{constructor(){super(...arguments),this.slicer=new vl,this.tableRef=ue()}render(){let{props:e,context:n}=this;return g(_f,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class yl extends Ar{buildRenderRange(e,n,i){let r=super.buildRenderRange(e,n,i),{props:s}=this;return bl({currentRange:r,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function bl(t){let{dateEnv:e,currentRange:n}=t,{start:i,end:r}=n,s;if(t.snapToWeek&&(i=e.startOfWeek(i),s=e.startOfWeek(r),s.valueOf()!==r.valueOf()&&(r=Zi(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(X(n.end,-1))),a=Math.ceil(Lo(l,r));r=Zi(r,6-a)}return{start:i,end:r}}class Af extends pe{constructor(){super(...arguments),this.headerElRef=ue()}renderSimpleLayout(e,n){let{props:i,context:r}=this,s=[],l=ms(r.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),g(Yt,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},g(Xr,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,i,r){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&ms(a.options),c=!l.forPrint&&mu(a.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:pu}]}),g(Yt,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},g(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:i,minWidth:r}]}],sections:d}))}}class Sf extends Af{constructor(){super(...arguments),this.buildDayTableModel=x(Dl),this.headerRef=ue(),this.tableRef=ue()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:i}=this,r=this.buildDayTableModel(i.dateProfile,n),s=e.dayHeaders&&g($r,{ref:this.headerRef,dateProfile:i.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),l=a=>g(wf,{ref:this.tableRef,dateProfile:i.dateProfile,dayTableModel:r,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:i.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function Dl(t,e){let n=new Xd(t.renderRange,e);return new Jd(n,/year|month|week/.test(t.currentRangeUnit))}var Cf=me({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Sf,dateProfileGeneratorClass:yl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});yi.touchMouseIgnoreWait=500;let $n=0,Xt=0,Yn=!1;class _l{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&Tf(n)&&this.tryStart(n)){let i=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let i=this.createEventFromMouse(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let i=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i);let r=n.target;this.shouldIgnoreMove||r.addEventListener("touchmove",this.handleTouchMove),r.addEventListener("touchend",this.handleTouchEnd),r.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let i=this.createEventFromTouch(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleTouchEnd=n=>{if(this.isDragging){let i=n.target;i.removeEventListener("touchmove",this.handleTouchMove),i.removeEventListener("touchend",this.handleTouchEnd),i.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Rf()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let i=window.pageXOffset-this.prevScrollX+this.prevPageX,r=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:i,pageY:r,deltaX:i-this.origPageX,deltaY:r-this.origPageY})}},this.containerEl=e,this.emitter=new rn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),kf()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Mf()}tryStart(e){let n=this.querySubjectEl(e),i=e.target;return n&&(!this.handleSelector||ne(i,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Yn=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?ne(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return $n||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Yn=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let i=0,r=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(i=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:i,deltaY:r}}createEventFromTouch(e,n){let i=e.touches,r,s,l=0,a=0;return i&&i.length?(r=i[0].pageX,s=i[0].pageY):(r=e.pageX,s=e.pageY),n?(this.origPageX=r,this.origPageY=s):(l=r-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:s,deltaX:l,deltaY:a}}}function Tf(t){return t.button===0&&!t.ctrlKey}function Rf(){$n+=1,setTimeout(()=>{$n-=1},yi.touchMouseIgnoreWait)}function kf(){Xt+=1,Xt===1&&window.addEventListener("touchmove",El,{passive:!1})}function Mf(){Xt-=1,Xt||window.removeEventListener("touchmove",El,{passive:!1})}function El(t){Yn&&t.preventDefault()}class xf{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,i){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=i-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let i=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)}doRevertAnimation(e,n){let i=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();i.style.transition="top "+n+"ms,left "+n+"ms",lt(i,{left:r.left,top:r.top}),Do(i,()=>{i.style.transition="",e()})}cleanup(){this.mirrorEl&&(Xn(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&<(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.classList.add("fc-event-dragging"),lt(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class wl extends vi{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Al extends wl{constructor(e,n){super(new Fd(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Wd(this.scrollController.el)}}class If extends wl{constructor(e){super(new Ud,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Cs=typeof performance=="function"?performance.now:Date.now;class Of{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=Cs();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,i){this.isEnabled&&(this.scrollCaches=this.buildCaches(i),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let i=e-window.pageXOffset,r=n-window.pageYOffset,s=this.pointerScreenY===null?0:r-this.pointerScreenY,l=this.pointerScreenX===null?0:i-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=i,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Cs()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:i}=e,{edgeThreshold:r}=this,s=r-e.distance,l=s*s/(r*r)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":i.setScrollLeft(i.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":i.setScrollTop(i.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:i}=this,r=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,c=a.right-e,d=n-a.top,u=a.bottom-n;o>=0&&c>=0&&d>=0&&u>=0&&(d<=i&&this.everMovedUp&&l.canScrollUp()&&(!r||r.distance>d)&&(r={scrollCache:l,name:"top",distance:d}),u<=i&&this.everMovedDown&&l.canScrollDown()&&(!r||r.distance>u)&&(r={scrollCache:l,name:"bottom",distance:u}),o<=i&&this.everMovedLeft&&l.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:l,name:"left",distance:o}),c<=i&&this.everMovedRight&&l.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:l,name:"right",distance:c}))}return r}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new If(!1):new Al(n,!1))}queryScrollEls(e){let n=[];for(let i of this.scrollQuery)typeof i=="object"?n.push(i):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(i)));return n}}class Et extends $d{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=r=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,_o(document.body),wo(document.body),r.isTouch||r.origEvent.preventDefault(),this.emitter.trigger("pointerdown",r),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(r.subjectEl,r.pageX,r.pageY),this.startDelay(r),this.minDistance||this.handleDistanceSurpassed(r)))},this.onPointerMove=r=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",r),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=r;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(r)}this.isDragging&&(r.origEvent.type!=="scroll"&&(this.mirror.handleMove(r.pageX,r.pageY),this.autoScroller.handleMove(r.pageX,r.pageY)),this.emitter.trigger("dragmove",r))}},this.onPointerUp=r=>{this.isInteracting&&(this.isInteracting=!1,Eo(document.body),Ao(document.body),this.emitter.trigger("pointerup",r),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(r)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let i=this.pointer=new _l(e);i.emitter.on("pointerdown",this.onPointerDown),i.emitter.on("pointermove",this.onPointerMove),i.emitter.on("pointerup",this.onPointerUp),n&&(i.selector=n),this.mirror=new xf,this.autoScroller=new Of}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Nf{constructor(e){this.origRect=mi(e),this.scrollCaches=jr(e).map(n=>new Al(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let i={left:e,top:n};for(let r of this.scrollCaches)if(!Hf(r.getEventTarget())&&!kd(i,r.clientRect))return!1;return!0}}function Hf(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class cn{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=i=>{let{dragging:r}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(i),this.initialHit||!this.requireInitial?(r.setIgnoreMove(!1),this.emitter.trigger("pointerdown",i)):r.setIgnoreMove(!0)},this.handleDragStart=i=>{this.emitter.trigger("dragstart",i),this.handleMove(i,!0)},this.handleDragMove=i=>{this.emitter.trigger("dragmove",i),this.handleMove(i)},this.handlePointerUp=i=>{this.releaseHits(),this.emitter.trigger("pointerup",i)},this.handleDragEnd=i=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,i),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",i)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new rn}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},i=n,r=e.subjectEl,s;r instanceof HTMLElement&&(s=mi(r),i=Md(i,s));let l=this.initialHit=this.queryHitForOffset(i.left,i.top);if(l){if(this.useSubjectCenter&&s){let a=Br(s,l.rect);a&&(i=xd(a))}this.coordAdjust=Id(i,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let i=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!dn(this.movingHit,i))&&(this.movingHit=i,this.emitter.trigger("hitupdate",i,!1,e))}prepareHits(){this.offsetTrackers=We(this.droppableStore,e=>(e.component.prepareHits(),new Nf(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:i,offsetTrackers:r}=this,s=null;for(let l in i){let a=i[l].component,o=r[l];if(o&&o.isWithinClipping(e,n)){let c=o.computeLeft(),d=o.computeTop(),u=e-c,h=n-d,{origRect:f}=o,p=f.right-f.left,y=f.bottom-f.top;if(u>=0&&u=0&&hs.layer)&&(v.componentId=l,v.context=a.context,v.rect.left+=c,v.rect.right+=c,v.rect.top+=d,v.rect.bottom+=d,s=v)}}}return s}}function dn(t,e){return!t&&!e?!0:!!t!=!!e?!1:bd(t.dateSpan,e.dateSpan)}function Sl(t,e){let n={};for(let i of e.pluginHooks.datePointTransforms)Object.assign(n,i(t,e));return Object.assign(n,Pf(t,e.dateEnv)),n}function Pf(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class Vf extends et{constructor(e){super(e),this.handlePointerDown=i=>{let{dragging:r}=this,s=i.origEvent.target;r.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=i=>{let{component:r}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&dn(l,a)){let{context:o}=r,c=Object.assign(Object.assign({},Sl(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:i.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",c)}}},this.dragging=new Et(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new cn(this.dragging,gi(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Lf extends et{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:c}=a.context,d=c.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!d),o.delay=l.isTouch?Bf(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,c=null,d=!1;if(l){let u=this.hitDragging.initialHit;l.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,l)||(c=Wf(u,l,o.pluginHooks.dateSelectionTransformers)),(!c||!eu(c,l.dateProfile,o))&&(d=!0,c=null)}c?o.dispatch({type:"SELECT_DATES",selection:c}):a||o.dispatch({type:"UNSELECT_DATES"}),d?Jn():Kn(),a||(this.dragSelection=c)},this.handlePointerUp=l=>{this.dragSelection&&(Ir(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:i}=n.context,r=this.dragging=new Et(e.el);r.touchScrollAllowed=!1,r.minDistance=i.selectMinDistance||0,r.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new cn(this.dragging,gi(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Bf(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Wf(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=[i.range.start,i.range.end,r.range.start,r.range.end];s.sort(ko);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=i.allDay,l}class wt extends et{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:c}=this,{mirror:d}=c,{options:u}=o.context,h=o.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=Je(l.subjectEl),y=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=ci(h.getCurrentData().eventStore,y),c.minDistance=l.isTouch?0:u.eventDragMinDistance,c.delay=l.isTouch&&y!==o.props.eventSelection?Ff(o):null,u.fixedMirrorParent?d.parentNode=u.fixedMirrorParent:d.parentNode=ne(a,".fc"),d.revertDuration=u.dragRevertDuration;let v=o.isValidSegDownEl(a)&&!ne(a,".fc-event-resizer");c.setIgnoreMove(!v),this.isDragging=v&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,c=o.instance.instanceId;l.isTouch?c!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:c}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new F(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,c=this.hitDragging.initialHit,d=this.component.context,u=null,h=null,f=null,p=!1,y={affectedEvents:o,mutatedEvents:de(),isEvent:!0};if(l){u=l.context;let v=u.options;d===u||v.editable&&v.droppable?(h=jf(c,l,u.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=hi(o,u.getCurrentData().eventUiBases,h,u),y.mutatedEvents=f,Yr(y,l.dateProfile,u)||(p=!0,h=null,f=null,y.mutatedEvents=de()))):u=null}this.displayDrag(u,y),p?Jn():Kn(),a||(d===u&&dn(c,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=u,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:c,validMutation:d}=this,u=this.eventRange.def,h=this.eventRange.instance,f=new F(a,u,h),p=this.relevantEvents,y=this.mutatedRelevantEvents,{finalHit:v}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:o}),d){if(c===a){let b=new F(a,y.defs[u.defId],h?y.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:y});let w={oldEvent:f,event:b,relatedEvents:Ne(y,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}},S={};for(let C of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(S,C(d,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},w),S),{el:l.subjectEl,delta:d.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",w)}else if(c){let b={event:f,relatedEvents:Ne(p,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:p}),a.emitter.trigger("eventRemove",b);let w=y.defs[u.defId],S=y.instances[h.instanceId],C=new F(c,w,S);c.dispatch({type:"MERGE_EVENTS",eventStore:y});let V={event:C,relatedEvents:Ne(y,c,S),revert(){c.dispatch({type:"REMOVE_EVENTS",eventStore:y})}};c.emitter.trigger("eventAdd",V),l.isTouch&&c.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),c.emitter.trigger("drop",Object.assign(Object.assign({},Sl(v.dateSpan,c)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:v.context.viewApi})),c.emitter.trigger("eventReceive",Object.assign(Object.assign({},V),{draggedEl:l.subjectEl,view:v.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:i}=n.context,r=this.dragging=new Et(e.el);r.pointer.selector=wt.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new cn(this.dragging,Un);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let i=this.component.context,r=this.receivingContext;r&&r!==e&&(r===i?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:de(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}wt.SELECTOR=".fc-event-draggable, .fc-event-resizable";function jf(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=i.range.start,l=r.range.start,a={};i.allDay!==r.allDay&&(a.allDay=r.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,r.allDay&&(s=B(s)));let o=Ye(s,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);o.milliseconds&&(a.allDay=!1);let c={datesDelta:o,standardProps:a};for(let d of n)d(c,t,e);return c}function Ff(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Uf extends et{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=Je(a),c=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=ci(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=Je(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new F(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,c=this.relevantEvents,d=this.hitDragging.initialHit,u=this.eventRange.instance,h=null,f=null,p=!1,y={affectedEvents:c,mutatedEvents:de(),isEvent:!0};s&&(s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)||(h=zf(d,s,a.subjectEl.classList.contains("fc-event-resizer-start"),u.range))),h&&(f=hi(c,o.getCurrentData().eventUiBases,h,o),y.mutatedEvents=f,Yr(y,s.dateProfile,o)||(p=!0,h=null,f=null,y.mutatedEvents=null)),f?o.dispatch({type:"SET_EVENT_RESIZE",state:y}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),p?Jn():Kn(),l||(h&&dn(d,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,c=new F(l,a,o),d=this.relevantEvents,u=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new F(l,u.defs[a.defId],o?u.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:u});let f={oldEvent:c,event:h,relatedEvents:Ne(u,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:d})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||O(0),endDelta:this.validMutation.endDelta||O(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,i=this.dragging=new Et(e.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=n.context.options.dragScroll;let r=this.hitDragging=new cn(this.dragging,gi(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return ne(e.subjectEl,".fc-event")}}function zf(t,e,n,i){let r=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=Ye(s,l,r,t.largeUnit);if(n){if(r.add(i.start,a)i.start)return{endDelta:a};return null}class $f{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=i=>{i.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=i=>{let r=this.context.options.unselectCancel,s=hr(i.origEvent);this.matchesCancel=!!ne(s,r),this.matchesEvent=!!ne(s,wt.SELECTOR)},this.onDocumentPointerUp=i=>{let{context:r}=this,{documentPointer:s}=this,l=r.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=r.options.unselectAuto;a&&(!a||!this.matchesCancel)&&r.calendarApi.unselect(i)}l.eventSelection&&!this.matchesEvent&&r.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new _l(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Yf={fixedMirrorParent:m},Gf={dateClick:m,eventDragStart:m,eventDragStop:m,eventDrop:m,eventResizeStart:m,eventResizeStop:m,eventResize:m,drop:m,eventReceive:m,eventLeave:m};yi.dataAttrPrefix="";var Ts=me({name:"@fullcalendar/interaction",componentInteractions:[Vf,Lf,wt,Uf],calendarInteractions:[$f],elementDraggingImpl:Et,optionRefiners:Yf,listenerRefiners:Gf}),qf=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';en(qf);class Qf extends W{constructor(){super(...arguments),this.state={textId:ye()}}render(){let{theme:e,dateEnv:n,options:i,viewApi:r}=this.context,{cellId:s,dayDate:l,todayRange:a}=this.props,{textId:o}=this.state,c=pi(l,a),d=i.listDayFormat?n.format(l,i.listDayFormat):"",u=i.listDaySideFormat?n.format(l,i.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:r,textId:o,text:d,sideText:u,navLinkAttrs:mt(this.context,l),sideNavLinkAttrs:mt(this.context,l,"day",!1)},c);return g(oe,{elTag:"tr",elClasses:["fc-list-day",...ln(c,e)],elAttrs:{"data-date":bt(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Zf,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},f=>g("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},g(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function Zf(t){return g(G,null,t.text&&g("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&g("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const Xf=q({hour:"numeric",minute:"2-digit",meridiem:"short"});class Jf extends W{render(){let{props:e,context:n}=this,{options:i}=n,{seg:r,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=i.eventTimeFormat||Xf;return g(on,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>Kf(r,n),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(c,d)=>g(G,null,eg(r,o,n,s,a),g("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},g("span",{className:"fc-list-event-dot",style:{borderColor:d.borderColor||d.backgroundColor}})),g(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${a}`}})))}}function Kf(t,e){let n=fi(t,e);return g("a",Object.assign({},n),t.eventRange.def.title)}function eg(t,e,n,i,r){let{options:s}=n;if(s.displayEventTime!==!1){let l=t.eventRange.def,a=t.eventRange.instance,o=!1,c;if(l.allDay?o=!0:Nc(t.eventRange.range)?t.isStart?c=ct(t,e,n,null,null,a.range.start,t.end):t.isEnd?c=ct(t,e,n,null,null,t.start,a.range.end):o=!0:c=ct(t,e,n),o){let d={text:n.options.allDayText,view:n.viewApi};return g(oe,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:d,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:tg,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return g("td",{className:"fc-list-event-time"},c)}return null}function tg(t){return t.text}class ng extends pe{constructor(){super(...arguments),this.computeDateVars=x(sg),this.eventStoreToSegs=x(this._eventStoreToSegs),this.state={timeHeaderId:ye(),eventHeaderId:ye(),dateHeaderIdRoot:ye()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:i,dayRanges:r}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return g(Yt,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},g(Qr,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,i):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,i={text:e.noEventsText,view:n};return g(oe,{elTag:"div",elClasses:["fc-list-empty"],renderProps:i,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:ig,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},r=>g(r,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:i,options:r}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:a}=this.state,o=rg(e);return g(an,{unit:"day"},(c,d)=>{let u=[];for(let h=0;h{e&&this.updateSize()}}render(){const{context:e,props:n,state:i}=this,{options:r}=e,{clientWidth:s,clientHeight:l}=i,a=i.monthHPadding||0,o=Math.min(s!=null?Math.floor(s/(r.multiMonthMinWidth+a)):1,r.multiMonthMaxColumns)||1,c=100/o+"%",d=s==null?null:s/o-a,u=s!=null&&o===1,h=this.splitDateProfileByMonth(e.dateProfileGenerator,n.dateProfile,e.dateEnv,u?!1:r.fixedWeekCount,r.showNonCurrentDates),f=this.buildMonthFormat(r.multiMonthTitleFormat,h),p=["fc-multimonth",u?"fc-multimonth-singlecol":"fc-multimonth-multicol",d!=null&&d<400?"fc-multimonth-compact":""];return g(Yt,{elRef:this.scrollElRef,elClasses:p,viewSpec:e.viewSpec},h.map((y,v)=>{const b=Vn(y.currentRange.start);return g(og,Object.assign({},n,{key:b,isoDateStr:b,elRef:v===0?this.firstMonthElRef:void 0,titleFormat:f,dateProfile:y,width:c,tableWidth:d,clientWidth:s,clientHeight:l}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){he(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const e=this.scrollElRef.current,n=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),n&&e&&this.state.monthHPadding==null&&this.setState({monthHPadding:e.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:e}=this.props.dateProfile,n=this.scrollElRef.current,i=n.querySelector(`[data-date="${Vn(e)}"]`);n.scrollTop=i.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const dg=O(1,"month");function ug(t,e,n,i,r){const{start:s,end:l}=e.currentRange;let a=s;const o=[];for(;a.valueOf(){console.log(i.date)}});function n(){ce.get("api/general_vacation/generalvacation/").then(i=>{for(let r in i.data)r=="План-график"&&i.data[r].map(s=>{e.events.push({description:"description for All Day Event",title:s.name,start:s.start_work_period,end:s.end_work_period})})})}return yt(()=>{n()}),{calendarOptions:e}}};function bg(t,e,n,i,r,s){const l=ee("full-calendar");return E(),j(l,{options:i.calendarOptions},null,8,["options"])}const Dg=Re(yg,[["render",bg]]);const ks=Ls(),_g={components:{myHelper:Jl},setup(){const t=H([]);Kl(()=>{t.value=[]});const e=H([]),n=H(!1),i=ut.slice(0,-1),r=H(""),s=H(0),l=H(1),a=H(2),o=ea();let c=`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}`;o.path=="/news"&&"id"in o.query&&(c=`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}&id=${o.query.id}`),st(c,e);const d=(w,S)=>{ce.post("api/navigation/news/",{news:w,scores:S}).then(C=>{e.value.result[e.value.result.findIndex(V=>V.id==w)].scores=C.data})},u=()=>{ce.post("api/navigation/news/",{news:s.value,text:r.value}).then(w=>{n.value=!n.value,e.value.result[e.value.result.findIndex(S=>S.id==w.data.news)].comment=w.data.comment}),r.value=""},h=(w,S)=>{ce.post("api/navigation/news/",{delid:w,news:S}).then(C=>{e.value.result[e.value.result.findIndex(V=>V.id==C.data.news)].comment=C.data.comment})},f=()=>{st(`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}`,e)};return Di(()=>ks.cod2user,(w,S)=>{w&&st(`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${a.value}`,e)},{deep:!0}),Di(()=>a,(w,S)=>{w&&st(`api/navigation/news/?name=${o.path}&page=${l.value-1}&selected=${w.value}`,e)},{deep:!0}),{newss:e,burl:i,limitText:w=>{const S=w.split(" ").slice(0,25);return`${w.split(" ").slice(0,25).join(" ")} ${S.length<25?"":"..."}`},toggleIncrementLike:d,dialogCommentShow:n,accountStore:ks,dateformat:w=>Ea(new Date(w),"dd.MM.yyyy HH:mm"),splitname:w=>w.familyname+" "+w.name[0]+"."+w.parentname[0]+".",textcomment:r,openComent:w=>{n.value=!n.value,s.value=w},addComment:u,idnews:s,deletComment:h,pagelistNews:f,divs:t,page:l,selecnews:a,route:o}}},Cl=t=>(ta("data-v-1f3339bc"),t=t(),na(),t),Eg={class:"flex-column h-100"},wg={class:"justify-self-start mt-1"},Ag={class:"text-caption me-2"},Sg={class:"justify-self-end"},Cg={class:"subheading me-2"},Tg=Cl(()=>P("span",{class:"me-1"},"·",-1)),Rg={class:"subheading me-2"},kg=Cl(()=>P("span",{class:"me-1"},"·",-1)),Mg={class:"pointer subheading"},xg={class:"pt-1 pl-1 pb-2"};function Ig(t,e,n,i,r,s){return E(),A("div",Eg,[(E(!0),A(Q,null,Z(i.newss.result,(l,a)=>(E(),j(K,{ref_for:!0,ref:a,class:J(["mx-auto px-3 pt-3",a>0?"mt-1":""]),key:a},{default:_(()=>[D(vt,{class:"py-1"},{default:_(()=>[Y(I(l.title),1)]),_:2},1024),D(Ns,{src:`${i.burl}${l.link}`,height:"175px",cover:"",width:"92%",class:"mx-auto"},null,8,["src"]),D(Aa,{class:"w-100"},{append:_(()=>[P("div",Sg,[D(fe,{size:"x-small",class:"me-1",icon:l.scores.filter(o=>o.user==i.accountStore.user.login&&o.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",onClick:o=>i.toggleIncrementLike(l.id,!0)},null,8,["icon","onClick"]),P("span",Cg,I(l.scores.filter(o=>o.score==!0).length),1),Tg,D(fe,{size:"x-small",class:"me-1",icon:l.scores.filter(o=>o.user==i.accountStore.user.login&&o.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",onClick:o=>i.toggleIncrementLike(l.id,!1)},null,8,["icon","onClick"]),P("span",Rg,I(l.scores.filter(o=>o.score==!1).length),1),kg,D(fe,{size:"x-small",class:"me-1",icon:"mdi-message-text-outline",onClick:o=>i.openComent(l.id)},null,8,["onClick"]),P("span",Mg,I(l.comment.length),1)])]),default:_(()=>[P("div",wg,[D(fe,{size:"x-small",class:"me-1",icon:"mdi-account"}),P("span",Ag,I(i.splitname(l.author)),1)])]),_:2},1024),D(qn),D(Ge,{class:"pb-0"},{default:_(()=>[Y(I(i.limitText(l.text)),1)]),_:2},1024),P("div",xg,[D(Jt,{color:"more_details_btn",variant:"text",to:`/news?id=${l.id}`,size:"small","append-icon":"mdi-step-forward-2"},{default:_(()=>[Y(" Подробнее ")]),_:2},1032,["to"])])]),_:2},1032,["class"]))),128))])}const Og=Re(_g,[["render",Ig],["__scopeId","data-v-1f3339bc"]]),Ng={components:{CardUsers:Fs},props:{idpos:{type:Number,default:""},namepos:{type:Text,default:""}},setup(t,{emit:e}){const n=H(!1),i=H({}),r=H(""),s=H(""),l=()=>{e("searchClose")};yt(()=>{ce.get(`api/general_vacation/dailyload/?id=${t.idpos}`).then(c=>{console.log(c.data),i.value=c.data.daily})});const a=async c=>{n.value=!0,r.value=c},o=Mn({get(){let c={};return Object.keys(i.value).map(d=>{let u=i.value[d].filter(h=>h.fio.toLowerCase().includes(s.value));u.length>0&&(c[d]=u)}),c}});return{onSubmit:l,checkremote:Bs,searchname:s,spravURL:Ws,t_dailyRound:i,result:o,menuGetUserDialog:n,getcard:a,iduser:r}}};function Hg(t,e,n,i,r,s){const l=ee("Card-users");return E(),A("div",null,[D(K,{class:"bg-white pa-3 px-0",width:"550",height:"600"},{default:_(()=>[D(K,{class:"mx-auto overflow-auto mx-0 px-3",width:"550",height:"600",flat:""},{default:_(()=>[D(vt,{class:"fixed-bar bg-white"},{default:_(()=>[D(ie,{class:"bggrad"},{default:_(()=>[D(te,{class:"text-center text-black_and_white"},{default:_(()=>[Y(I(n.namepos),1)]),_:1})]),_:1}),D(ie,null,{default:_(()=>[D(te,{class:"pa-0 mb-3"},{default:_(()=>[D(Sa,{modelValue:i.searchname,"onUpdate:modelValue":e[0]||(e[0]=a=>i.searchname=a),clearable:"","prepend-inner-icon":"mdi-magnify","hide-details":"",class:"mx-0",label:"Поиск",rows:"1","no-resize":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),(E(!0),A(Q,null,Z(i.result,(a,o)=>(E(),A("div",{key:o,class:"px-3"},[D(Ca,{class:"py-0"},{default:_(()=>[D(Ta,null,{default:_(()=>[Y(I(o),1)]),_:2},1024)]),_:2},1024),(E(!0),A(Q,null,Z(a,c=>(E(),j(K,{key:c,class:"bg-transparent",density:"compact","prepend-avatar":i.checkremote(`${i.spravURL}${c.login}.jpg`),title:c.fio,subtitle:c.post,variant:"text",onClick:d=>i.getcard(c.login)},null,8,["prepend-avatar","title","subtitle","onClick"]))),128))]))),128))]),_:1}),D(qn),D(ia,{class:"align-self-end pb-0"},{default:_(()=>[D(Jt,{color:"more_details_btn",variant:"text",onClick:i.onSubmit},{default:_(()=>[Y(" Закрыть ")]),_:1},8,["onClick"])]),_:1})]),_:1}),D(Us,{modelValue:i.menuGetUserDialog,"onUpdate:modelValue":e[2]||(e[2]=a=>i.menuGetUserDialog=a),persistent:"",width:"800"},{default:_(()=>[D(l,{menuGetUserDialog:i.menuGetUserDialog,loging:i.iduser,onMenusClose:e[1]||(e[1]=a=>i.menuGetUserDialog=!1)},null,8,["menuGetUserDialog","loging"])]),_:1},8,["modelValue"])])}const Pg=Re(Ng,[["render",Hg]]);const Vg=Hs({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Ia(),...wa()},"VSwitch"),Lg=Gn()({name:"VSwitch",inheritAttrs:!1,props:Vg(),emits:{"update:focused":t=>!0,"update:modelValue":()=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:n,slots:i}=e;const r=_i(t,"indeterminate"),s=_i(t,"modelValue"),{loaderClasses:l}=sa(t),{isFocused:a,focus:o,blur:c}=Oa(t),d=Mn(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),u=ra(),h=Mn(()=>t.id||`switch-${u}`);function f(){r.value&&(r.value=!1)}return Ps(()=>{const[p,y]=la(n),[v,b]=Si.filterProps(t),[w,S]=Ai.filterProps(t),C=H();function V(U){var L,M;U.stopPropagation(),U.preventDefault(),(M=(L=C.value)==null?void 0:L.input)==null||M.click()}return D(Si,He({class:["v-switch",{"v-switch--inset":t.inset},{"v-switch--indeterminate":r.value},l.value,t.class],style:t.style},p,v,{id:h.value,focused:a.value}),{...i,default:U=>{let{id:L,messagesId:M,isDisabled:De,isReadonly:tt,isValid:kl}=U;return D(Ai,He({ref:C},w,{modelValue:s.value,"onUpdate:modelValue":[un=>s.value=un,f],id:L.value,"aria-describedby":M.value,type:"checkbox","aria-checked":r.value?"mixed":void 0,disabled:De.value,readonly:tt.value,onFocus:o,onBlur:c},y),{...i,default:()=>D("div",{class:"v-switch__track",onClick:V},null),input:un=>{let{textColorClasses:Ml,textColorStyles:xl}=un;return D("div",{class:["v-switch__thumb",Ml.value],style:xl.value},[t.loading&&D(aa,{name:"v-switch",active:!0,color:kl.value===!1?void 0:d.value},{default:hn=>i.loader?i.loader(hn):D(Ra,{active:hn.isActive,color:hn.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})}),{}}}),Bg={components:{CardUsers:Fs,DialogSearch:Pg},setup(){const t=H([]),e=H(""),n=H(""),i=H(""),r=H(!1),s=H({}),l=H([]),a=H({}),o=H(""),c=H(!1),d=H(""),u=H({}),h=H(!1),f=async S=>{c.value=!0,d.value=S},p=(S,C)=>{n.value=S,i.value=C,r.value=!r.value,ce.get(`api/general_vacation/dailyload/?id=${S}`).then(V=>{s.value=V.data,u.value=JSON.parse(JSON.stringify(V.data.daily))})},y=ut.slice(0,-1);function v(){ce.get("api/feedback/feedbackdata/").then(S=>{t.value=S.data.results})}const b=()=>{const S=new FormData;S.append("dailyfiles",l.value[0]),ce.post("api/general_vacation/dailyroundup/",S).then(C=>{a.value=C.data,w()}),l.value=""};function w(){ce.get("api/general_vacation/dailyload/").then(S=>{e.value=S.data.daily})}return oa(),yt(()=>{w(),v()}),{t_daily:e,detailRound:p,dialogDetailRound:r,t_dailyRound:s,dailyfiles:l,onPickFile:b,info:a,checkremote:Bs,searchname:o,spravURL:Ws,menuGetUserDialog:c,iduser:d,getcard:f,result:u,idpos:n,namepos:i,changeData:h,baseURL:ut,burl:y}}},Wg={class:"d-flex h-100"},jg={class:"text-center"};function Fg(t,e,n,i,r,s){const l=ee("vue3-autocounter"),a=ee("dialog-search");return E(),A("div",Wg,[i.t_daily.length>0?(E(),j(K,{key:0,class:"h-100 w-100 d-flex flex-column"},{default:_(()=>[(E(!0),A(Q,null,Z(i.t_daily,o=>ca((E(),j(ie,{key:o},{default:_(()=>[D(qn),D(te,null,{default:_(()=>[D(K,{class:"ma-2 d-flex flex-column",height:"100",elevation:"0"},{default:_(()=>[D(K,{class:"h-100 text-center text-black_grey bg-black_and_white"},{default:_(()=>[D(vt,{class:"statstyle py-0 text-overline font-weight-bold bg-black_and_white"},{default:_(()=>[Y(I(o.position__name),1)]),_:2},1024),D(Ge,{onClick:c=>i.detailRound(o.position,o.position__name),class:"numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white"},{default:_(()=>[D(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(o.user__count),duration:2},null,8,["endAmount"])]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)),[[da,o.position!=6]])),128))]),_:1})):(E(),j(K,{key:1,class:"h-100 w-100 d-flex justify-center flex-column",image:`${i.burl}/media/newsimage/2023/09/28/sea.jpg`},{default:_(()=>[D(ie,{class:"flex-grow-0"},{default:_(()=>[D(te,{class:"py-0"},{default:_(()=>[D(Lg,{modelValue:i.changeData,"onUpdate:modelValue":e[0]||(e[0]=o=>i.changeData=o),class:"pl-3 d-flex justify-end",color:"teal",onClick:e[1]||(e[1]=o=>i.changeData=!i.changeData)},null,8,["modelValue"])]),_:1})]),_:1}),D(ie,null,{default:_(()=>[i.changeData?(E(),j(Ge,{key:0,class:"d-flex flex-column align-self-center"},{default:_(()=>[D(Ma,{accept:".xlsx",modelValue:i.dailyfiles,"onUpdate:modelValue":e[2]||(e[2]=o=>i.dailyfiles=o),variant:"underlined",density:"compact",label:"Выберите ф-л","hide-details":"",class:"pt-2 ml-0 text-white"},null,8,["modelValue"]),D(Jt,{class:"align-self-center",icon:"mdi-google-play text-white",size:"x-large",variant:"text",color:"teal-darken-4",disabled:i.dailyfiles==0,onClick:i.onPickFile},null,8,["disabled","onClick"])]),_:1})):(E(),j(Ge,{key:1},{default:_(()=>[D(ie,{class:"text-h5 text-white text-center h-100","align-content":"center"},{default:_(()=>[Y("Данные не загружены ")]),_:1})]),_:1}))]),_:1})]),_:1},8,["image"])),P("div",jg,[D(Us,{modelValue:i.dialogDetailRound,"onUpdate:modelValue":e[4]||(e[4]=o=>i.dialogDetailRound=o),width:"500"},{default:_(()=>[D(a,{idpos:i.idpos,namepos:i.namepos,onSearchClose:e[3]||(e[3]=o=>i.dialogDetailRound=!i.dialogDetailRound)},null,8,["idpos","namepos"])]),_:1},8,["modelValue"])])])}const Ug=Re(Bg,[["render",Fg]]);var zg=Object.defineProperty,$g=(t,e,n)=>e in t?zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ve=(t,e,n)=>($g(t,typeof e!="symbol"?e+"":e,n),n);/** +import{_ as Re,r as P,aF as st,C as E,D as j,E as D,Y as A,$ as Z,Z as Q,aG as ut,F as _,R as K,I as vt,K as ie,L as te,G as Y,ad as I,aq as Os,J as Ye,p as Ns,ah as Il,a1 as Ol,aH as Nl,ai as Hl,aI as Pl,aJ as Vl,aj as Ll,a4 as Bl,a5 as Wl,a6 as Yn,a8 as jl,ak as Fl,al as Ul,am as zl,aK as $l,an as Yl,aL as Gl,aM as ql,ao as Ql,ac as Hs,X as ee,aN as Ps,aO as It,aP as Zl,a as Xl,o as yt,af as de,A as Vs,aQ as Jl,aR as Kl,aS as ea,w as bi,S as H,V as me,aE as J,aT as ta,aU as na,c as Mn,U as Ls,W as Bs,M as ia,a9 as Di,aV as sa,h as ra,aW as la,H as Ze,aX as aa,aY as oa,N as da,O as ca,aZ as Fe,ae as k,a_ as N,a$ as ae,Q as _i,b0 as ua,az as Vt,b1 as xn,b2 as ha,b3 as Ei,b4 as R,B as fa,aB as ga}from"./index-cf33b3b8.js";import{V as pa,a as ma}from"./VCarouselItem-407ac450.js";import{V as Ws}from"./VContainer-a91b572b.js";import{V as va}from"./VTextarea-eca486a5.js";import{a as ya,b as ba,C as js,V as Fs}from"./VTooltip-04fe483e.js";import{m as Da,u as _a}from"./group-2cdf27ee.js";import{f as Ea,m as wa,V as wi}from"./VSelectionControl-e5942853.js";import{b as Aa,c as Gn,V as Sa,d as Ca,f as Ta,a as Us}from"./VList-30a0199c.js";import{V as Jt,a as Ra,b as ka}from"./VBtn-11d9d7ef.js";import{V as Ma,L as xa}from"./load-round-bc7e7ecc.js";import{m as Ia,u as Oa,V as Ai}from"./VInput-6b41ac51.js";import"./VWindowItem-46132c15.js";import"./VChip-1d3621e6.js";const Na={setup(){const t=ut.slice(0,-1),e=P([{link:""}]);return st("api/navigation/carousels/",e),{burl:t,carous:e}}};function Ha(t,e,n,i,r,s){return E(),j(pa,{interval:"10000",cover:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white",cycle:""},{default:D(()=>[(E(!0),A(Q,null,Z(i.carous,(l,a)=>(E(),j(ma,{key:a,src:`${i.burl}${l.link}`,cover:"",eager:""},{default:D(()=>[_(Ws,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:D(()=>[_(K,{class:"bgCard h-100 d-flex flex-column"},{default:D(()=>[_(vt,{class:"ma-2 text-h3 text-uppercase titles text-text_carous py-5 flex-column"},{default:D(()=>[_(ie,null,{default:D(()=>[_(te,{class:"pa-0 pl-1 align-self-center"},{default:D(()=>[Y(I(l.title),1)]),_:2},1024),_(te,{class:"flex-grow-0 pa-0 pr-1"},{default:D(()=>[_(Os,{width:"50","aspect-ratio":1,src:`${i.burl}${l.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),_(Ye,{class:"ml-2 mb-0 mb-2 w-50 flex-grow-0 pb-3 text-h6 bgText overflow-auto"},{default:D(()=>[_(va,{class:"text-text_carous mt-n3 text-black textareas pt-2 font-weight-medium","model-value":l.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1})}const Pa=Re(Na,[["render",Ha]]);const Va=Ns({color:String,...Il(),...Ol(),...Nl(),...Hl(),...Pl(),...Vl(),...Ll(),...Bl(),...Wl()},"VSheet"),La=Yn()({name:"VSheet",props:Va(),setup(t,e){let{slots:n}=e;const{themeClasses:i}=jl(t),{backgroundColorClasses:r,backgroundColorStyles:s}=Fl(Ul(t,"color")),{borderClasses:l}=zl(t),{dimensionStyles:a}=$l(t),{elevationClasses:o}=Yl(t),{locationStyles:d}=Gl(t),{positionClasses:c}=ql(t),{roundedClasses:u}=Ql(t);return Hs(()=>_(t.tag,{class:["v-sheet",i.value,r.value,l.value,o.value,c.value,u.value,t.class],style:[s.value,a.value,d.value,t.style]},n)),{}}}),Ba=Yn()({name:"VSlideGroupItem",props:Da(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const i=_a(t,ya);return()=>{var r;return(r=n.default)==null?void 0:r.call(n,{isSelected:i.isSelected.value,select:i.select,toggle:i.toggle,selectedClass:i.selectedClass.value})}}}),Wa={props:{digitalData:{type:Object,default:{}}},setup(){const t=ut.slice(0,-1);return{model:P(!1),burl:t}}};function ja(t,e,n,i,r,s){const l=ee("vue3-autocounter");return E(),j(K,{class:"d-flex ml-3"},{default:D(()=>[_(La,{class:"mx-auto",elevation:"0","max-width":"813"},{default:D(()=>[_(ba,{modelValue:i.model,"onUpdate:modelValue":e[0]||(e[0]=a=>i.model=a),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:D(()=>[(E(!0),A(Q,null,Z(n.digitalData,a=>(E(),j(Ba,{key:a},{default:D(()=>[_(K,{class:"ma-2 mt-4 d-flex flex-column",height:"100",width:"169",elevation:"0"},{default:D(()=>[_(K,{class:"h-100 text-center g text-black_grey"},{default:D(()=>[_(vt,{class:"statstyle my-2 py-0 text-overline font-weight-bold"},{default:D(()=>[Y(I(a.status),1)]),_:2},1024),_(Ye,{class:"numstyle mt-4 py-0 font-weight-bold"},{default:D(()=>[_(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(a.num),duration:1},null,8,["endAmount"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})}const Fa=Re(Wa,[["render",ja]]);var Kt,T,zs,$s,Xe,Ie,Si,Ys,Gs,Lt={},qs=[],Ua=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _e(t,e){for(var n in e)t[n]=e[n];return t}function Qs(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n){var i,r,s,l={};for(s in e)s=="key"?i=e[s]:s=="ref"?r=e[s]:l[s]=e[s];if(arguments.length>2&&(l.children=arguments.length>3?Kt.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)l[s]===void 0&&(l[s]=t.defaultProps[s]);return Ot(t,l,i,r,null)}function Ot(t,e,n,i,r){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++zs};return r==null&&T.vnode!=null&&T.vnode(s),s}function ue(){return{current:null}}function G(t){return t.children}function za(t,e,n,i,r){var s;for(s in n)s==="children"||s==="key"||s in e||Bt(t,s,null,n[s],i);for(s in e)r&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||Bt(t,s,e[s],n[s],i)}function Ci(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Ua.test(e)?n:n+"px"}function Bt(t,e,n,i,r){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||Ci(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||Ci(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?i||t.addEventListener(e,s?Ri:Ti,s):t.removeEventListener(e,s?Ri:Ti,s);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Ti(t){Xe=!0;try{return this.l[t.type+!1](T.event?T.event(t):t)}finally{Xe=!1}}function Ri(t){Xe=!0;try{return this.l[t.type+!0](T.event?T.event(t):t)}finally{Xe=!1}}function re(t,e){this.props=t,this.context=e}function ht(t,e){if(e==null)return t.__?ht(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&Ie.sort(function(o,d){return o.__v.__b-d.__v.__b}));Wt.__r=0}function Xs(t,e,n,i,r,s,l,a,o,d){var c,u,h,f,p,b,y,v=i&&i.__k||qs,w=v.length;for(n.__k=[],c=0;c0?Ot(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=v[c])===null||h&&f.key==h.key&&f.type===h.type)v[c]=void 0;else for(u=0;u=0;e--)if((n=t.__k[e])&&(i=er(n)))return i}return null}function qn(t,e,n,i,r,s,l,a,o){var d,c,u,h,f,p,b,y,v,w,S,C,V,U,L,M=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(o=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(d=T.__b)&&d(e);try{e:if(typeof M=="function"){if(y=e.props,v=(d=M.contextType)&&i[d.__c],w=d?v?v.props.value:d.__:i,n.__c?b=(c=e.__c=n.__c).__=c.__E:("prototype"in M&&M.prototype.render?e.__c=c=new M(y,w):(e.__c=c=new re(y,w),c.constructor=M,c.render=Ga),v&&v.sub(c),c.props=y,c.state||(c.state={}),c.context=w,c.__n=i,u=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),M.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=_e({},c.__s)),_e(c.__s,M.getDerivedStateFromProps(y,c.__s))),h=c.props,f=c.state,c.__v=e,u)M.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(M.getDerivedStateFromProps==null&&y!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,w),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,w)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(De){De&&(De.__=e)}),S=0;S3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(i)}}),ft(g(Ka,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function to(t,e){var n=g(eo,{__v:t,i:e});return n.containerInfo=e,n}(At.prototype=new re).__a=function(t){var e=this,n=ar(e.__v),i=e.o.get(t);return i[0]++,function(r){var s=function(){e.props.revealOrder?(i.push(r),Wi(e,t,i)):r()};n?n(s):s()}},At.prototype.render=function(t){this.u=null,this.o=new Map;var e=jt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},At.prototype.componentDidUpdate=At.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Wi(t,n,e)})};var no=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,io=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,so=typeof document<"u",ro=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(re.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var ji=T.event;function lo(){}function ao(){return this.cancelBubble}function oo(){return this.defaultPrevented}T.event=function(t){return ji&&(t=ji(t)),t.persist=lo,t.isPropagationStopped=ao,t.isDefaultPrevented=oo,t.nativeEvent=t};var Fi={configurable:!0,get:function(){return this.class}},Ui=T.vnode;T.vnode=function(t){var e=t.type,n=t.props,i=n;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var s in i={},n){var l=n[s];so&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&l==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&l===!0?l="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!ro(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():r&&io.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():l===null&&(l=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),i[s]&&(s="oninputCapture")),i[s]=l)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=jt(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=jt(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),t.props=i,n.class!=n.className&&(Fi.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",Fi))}t.$$typeof=no,Ui&&Ui(t)};var zi=T.__r;T.__r=function(t){zi&&zi(t),t.__c};const or=[],Nn=new Map;function en(t){or.push(t),Nn.forEach(e=>{cr(e,t)})}function co(t){t.isConnected&&dr(t.getRootNode())}function dr(t){let e=Nn.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=ho();n&&(e.nonce=n);const i=t===document?document.head:t,r=t===document?i.querySelector("script,link[rel=stylesheet],link[as=style],style"):i.firstChild;i.insertBefore(e,r)}Nn.set(t,e),uo(e)}}function uo(t){for(const e of or)cr(t,e)}function cr(t,e){const{sheet:n}=t,i=n.cssRules.length;e.split("}").forEach((r,s)=>{r=r.trim(),r&&n.insertRule(r+"}",i+s)})}let mn;function ho(){return mn===void 0&&(mn=fo()),mn}function fo(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&dr(document);var go=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';en(go);class Qn{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:i}=this;e in i&&(n?delete i[e]:(i[e]-=1,i[e]<=0&&delete i[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Zn(t){t.parentNode&&t.parentNode.removeChild(t)}function ne(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(po(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function po(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function mo(t,e){let n=t instanceof HTMLElement?[t]:t,i=[];for(let r=0;r{let i=ne(n.target,t);i&&e.call(i,n,i)}}function fr(t,e,n,i){let r=yo(n,i);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}}function bo(t,e,n,i){let r;return fr(t,"mouseover",e,(s,l)=>{if(l!==r){r=l,n(s,l);let a=o=>{r=null,i(o,l),l.removeEventListener("mouseleave",a)};l.addEventListener("mouseleave",a)}})}const Yi=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Do(t,e){let n=i=>{e(i),Yi.forEach(r=>{t.removeEventListener(r,n)})};Yi.forEach(i=>{t.addEventListener(i,n)})}function gr(t){return Object.assign({onClick:t},pr(t))}function pr(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Gi=0;function Ve(){return Gi+=1,String(Gi)}function Xn(){document.body.classList.add("fc-not-allowed")}function Jn(){document.body.classList.remove("fc-not-allowed")}function _o(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",tn)}function Eo(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",tn)}function wo(t){t.addEventListener("contextmenu",tn)}function Ao(t){t.removeEventListener("contextmenu",tn)}function So(t){let e=[],n=[],i,r;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),i=0;ii.replace("$"+s,r||""),t):n}function ko(t,e){return t-e}function yn(t){return t%1===0}function Mo(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const xo=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function O(t,e){return typeof t=="string"?Io(t):typeof t=="object"&&t?qi(t):typeof t=="number"?qi({[e||"milliseconds"]:t}):null}function Io(t){let e=xo.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function qi(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Oo(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function No(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Ho(t){return Ge(t)/365}function Po(t){return Ge(t)/30}function Ge(t){return gt(t)/864e5}function gt(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Hn(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Se(t,e,n){if(t===e)return!0;let i=t.length,r;if(i!==e.length)return!1;for(r=0;r=1?Math.min(r,s):r}function bn(t,e,n,i){let r=se([e,0,1+qo(e,n,i)]),s=B(t),l=Math.round(Le(r,s));return Math.floor(l/7)+1}function qo(t,e,n){let i=7+e-n;return-((7+se([t,0,i]).getUTCDay()-e)%7)+i-1}function Zi(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Xi(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Ee(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function se(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function mr(t){return!isNaN(t.valueOf())}function we(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Qo(t,e,n=!1){let i=t.toISOString();return i=i.replace(".000",""),n&&(i=i.replace("T00:00:00Z","")),i.length>10&&(e==null?i=i.replace("Z",""):e!==0&&(i=i.replace("Z",Kn(e,!0)))),i}function bt(t){return t.toISOString().replace(/T.*$/,"")}function Pn(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Kn(t,e=!1){let n=t<0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),s=Math.round(i%60);return e?`${n+vn(r,2)}:${vn(s,2)}`:`GMT${n}${r}${s?`:${vn(s,2)}`:""}`}function x(t,e,n){let i,r;return function(...s){if(!i)r=t.apply(this,s);else if(!Se(i,s)){n&&n(r);let l=t.apply(this,s);(!e||!e(l,r))&&(r=l)}return i=s,r}}function Ht(t,e,n){let i,r;return s=>{if(!i)r=t.call(this,s);else if(!he(i,s)){n&&n(r);let l=t.call(this,s);(!e||!e(l,r))&&(r=l)}return i=s,r}}const Ji={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ut={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},St=/\s*([ap])\.?m\.?/i,Zo=/,/g,Xo=/\s+/g,Jo=/\u200e/g,Ko=/UTC|GMT/;class ed{constructor(e){let n={},i={},r=0;for(let s in e)s in Ji?(i[s]=e[s],r=Math.max(Ji[s],r)):(n[s]=e[s],s in Ut&&(r=Math.max(Ut[s],r)));this.standardDateProps=n,this.extendedSettings=i,this.severity=r,this.buildFormattingFunc=x(Ki)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,i,r){let{standardDateProps:s,extendedSettings:l}=this,a=ld(e.marker,n.marker,i.calendarSystem);if(!a)return this.format(e,i);let o=a;o>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(o=1);let d=this.format(e,i),c=this.format(n,i);if(d===c)return d;let u=ad(s,o),h=Ki(u,l,i),f=h(e),p=h(n),b=od(d,f,c,p),y=l.separator||r||i.defaultSeparator||"";return b?b.before+f+y+p+b.after:d+y+c}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function Ki(t,e,n){let i=Object.keys(t).length;return i===1&&t.timeZoneName==="short"?r=>Kn(r.timeZoneOffset):i===0&&e.week?r=>rd(n.computeWeekNumber(r.marker),n.weekText,n.weekTextLong,n.locale,e.week):td(t,e,n)}function td(t,e,n){t=Object.assign({},t),e=Object.assign({},e),nd(t,e),t.timeZone="UTC";let i=new Intl.DateTimeFormat(n.locale.codes,t),r;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,r=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:l}=s,a;r&&!l.getUTCMinutes()?a=r:a=i;let o=a.format(l);return id(o,s,t,e,n)}}function nd(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function id(t,e,n,i,r){return t=t.replace(Jo,""),n.timeZoneName==="short"&&(t=sd(t,r.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Kn(e.timeZoneOffset))),i.omitCommas&&(t=t.replace(Zo,"").trim()),i.omitZeroMinute&&(t=t.replace(":00","")),i.meridiem===!1?t=t.replace(St,"").trim():i.meridiem==="narrow"?t=t.replace(St,(s,l)=>l.toLocaleLowerCase()):i.meridiem==="short"?t=t.replace(St,(s,l)=>`${l.toLocaleLowerCase()}m`):i.meridiem==="lowercase"&&(t=t.replace(St,s=>s.toLocaleLowerCase())),t=t.replace(Xo," "),t=t.trim(),t}function sd(t,e){let n=!1;return t=t.replace(Ko,()=>(n=!0,e)),n||(t+=` ${e}`),t}function rd(t,e,n,i,r){let s=[];return r==="long"?s.push(n):(r==="short"||r==="narrow")&&s.push(e),(r==="long"||r==="short")&&s.push(" "),s.push(i.simpleNumberFormat.format(t)),i.options.direction==="rtl"&&s.reverse(),s.join("")}function ld(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:we(t)!==we(e)?1:0}function ad(t,e){let n={};for(let i in t)(!(i in Ut)||Ut[i]<=e)&&(n[i]=t[i]);return n}function od(t,e,n,i){let r=0;for(;r=0;s-=1){let l=t[s][i];if(typeof l=="object"&&l)r.unshift(l);else if(l!==void 0){n[i]=l;break}}r.length&&(n[i]=ti(r))}}for(let i=t.length-1;i>=0;i-=1){let r=t[i];for(let s in r)s in n||(n[s]=r[s])}return n}function He(t,e){let n={};for(let i in t)e(t[i],i)&&(n[i]=t[i]);return n}function Be(t,e){let n={};for(let i in t)n[i]=e(t[i],i);return n}function vr(t){let e={};for(let n of t)e[n]=!0;return e}function ni(t){let e=[];for(let n in t)e.push(t[n]);return e}function he(t,e){if(t===e)return!0;for(let n in t)if($t.call(t,n)&&!(n in e))return!1;for(let n in e)if($t.call(e,n)&&t[n]!==e[n])return!1;return!0}const hd=/^on[A-Z]/;function fd(t,e){const n=Vn(t,e);for(let i of n)if(!hd.test(i))return!1;return!0}function Vn(t,e){let n=[];for(let i in t)$t.call(t,i)&&(i in e||n.push(i));for(let i in e)$t.call(e,i)&&t[i]!==e[i]&&n.push(i);return n}function _n(t,e,n={}){if(t===e)return!0;for(let i in e)if(!(i in t&&gd(t[i],e[i],n[i])))return!1;for(let i in t)if(!(i in e))return!1;return!0}function gd(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function pd(t,e=0,n,i=1){let r=[];n==null&&(n=Object.keys(t).length);for(let s=e;s{this.props.value!==l.value&&s.forEach(a=>{a.context=l.value,a.forceUpdate()})},this.sub=l=>{s.push(l);let a=l.componentWillUnmount;l.componentWillUnmount=()=>{s.splice(s.indexOf(l),1),a&&a.call(l)}}}return r},e}class wd{constructor(e,n,i,r){this.execFunc=e,this.emitter=n,this.scrollTime=i,this.scrollTimeReset=r,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const We=br({});function Ad(t,e,n,i,r,s,l,a,o,d,c,u,h){return{dateEnv:r,options:n,pluginHooks:l,emitter:d,dispatch:a,getCurrentData:o,calendarApi:c,viewSpec:t,viewApi:e,dateProfileGenerator:i,theme:s,isRtl:n.direction==="rtl",addResizeHandler(f){d.on("_resize",f)},removeResizeHandler(f){d.off("_resize",f)},createScrollResponder(f){return new wd(f,d,O(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:u,unregisterInteractiveComponent:h}}class je extends re{shouldComponentUpdate(e,n){return this.debug&&console.log(Vn(e,this.props),Vn(n,this.state)),!_n(this.props,e,this.propEquality)||!_n(this.state,n,this.stateEquality)}safeSetState(e){_n(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}je.addPropsEquality=Sd;je.addStateEquality=Cd;je.contextType=We;je.prototype.propEquality={};je.prototype.stateEquality={};class W extends je{}W.contextType=We;function Sd(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Cd(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function be(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class ii extends W{constructor(){super(...arguments),this.id=Ve(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{Ln(this.props.generatorName,this.context.options)||this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&be(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:i}=n,{customGenerator:r,defaultGenerator:s,renderProps:l}=e,a=Dr(e,[],this.handleEl);let o=!1,d,c=[],u;if(r!=null){const h=typeof r=="function"?r(l,g):r;if(h===!0)o=!0;else{const f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?c=Array.prototype.slice.call(h.domNodes):(f?$s(h):typeof h!="function")?d=h:u=h}}else o=!Ln(e.generatorName,i);return o&&s&&(d=s(l)),this.queuedDomNodes=c,this.currentGeneratorMeta=u,g(e.elTag,a,d)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:i,context:r}=this,{handleCustomRendering:s,customRenderingMetaMap:l}=r.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:l==null?void 0:l[i.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},i),{elClasses:(i.elClasses||[]).filter(Td)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,i=this.base;if(!Se(e,n)){n.forEach(Zn);for(let r of e)i.appendChild(r);this.currentDomNodes=e}}}ii.addPropsEquality({elClasses:Se,elStyle:he,elAttrs:fd,renderProps:he});function Ln(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Dr(t,e,n){const i=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(i.className=(t.elClasses||[]).concat(e||[]).concat(i.className||[]).filter(Boolean).join(" ")),t.elStyle&&(i.style=t.elStyle),i}function Td(t){return!!t}const _r=br(0);class oe extends re{constructor(){super(...arguments),this.InnerContent=Rd.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&be(this.props.elRef,e)}}render(){const{props:e}=this,n=kd(e.classNameGenerator,e.renderProps);if(e.children){const i=Dr(e,n,this.handleEl),r=e.children(this.InnerContent,e.renderProps,i);return e.elTag?g(e.elTag,i,r):r}else return g(ii,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}oe.contextType=_r;function Rd(t,e){const n=t.props;return g(ii,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function kd(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Yt extends W{render(){let{props:e,context:n}=this,{options:i}=n,r={view:n.viewApi};return g(oe,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Er(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:i.viewClassNames,generatorName:void 0,didMount:i.viewDidMount,willUnmount:i.viewWillUnmount}),()=>e.children)}}function Er(t){return[`fc-${t.type}-view`,"fc-view"]}function Md(t,e){let n=null,i=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(i=e.createMarker(t.end)),!n&&!i||n&&i&&ii&&n.push({start:i,end:s.start}),s.end>i&&(i=s.end);return ie.start)&&(t.start===null||e.end===null||t.start=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Ae(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e=e.end?new Date(e.end.valueOf()-1):t}function wr(t){let e=Math.floor(Le(t.start,t.end))||1,n=B(t.start),i=X(n,e);return{start:n,end:i}}function ri(t,e=O(0)){let n=null,i=null;if(t.end){i=B(t.end);let r=t.end.valueOf()-i.valueOf();r&&r>=gt(e)&&(i=X(i,1))}return t.start&&(n=B(t.start),i&&i<=n&&(i=X(n,1))),{start:n,end:i}}function Nd(t){let e=ri(t);return Le(e.start,e.end)>1}function $e(t,e,n,i){return i==="year"?O(n.diffWholeYears(t,e),"year"):i==="month"?O(n.diffWholeMonths(t,e),"month"):Fo(t,e)}function Hd(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Pd(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):_t(t.now,e)}function _t(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Ar{constructor(e){this.props=e,this.nowDate=_t(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,i){let{dateEnv:r}=this.props,s=r.subtract(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,i)}buildNext(e,n,i){let{dateEnv:r}=this.props,s=r.add(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,i)}build(e,n,i=!0){let{props:r}=this,s,l,a,o,d,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),i&&(e=Od(e,s)),l=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(l.unit),o=this.buildRenderRange(this.trimHiddenDays(l.range),l.unit,a),o=this.trimHiddenDays(o),d=o,r.showNonCurrentDates||(d=Te(d,l.range)),d=this.adjustActiveRange(d),d=Te(d,s),c=si(l.range,s),Ae(o,e)||(e=o.start),{currentDate:e,validRange:s,currentRange:l.range,currentRangeUnit:l.unit,isRangeAllDay:a,activeRange:d,renderRange:o,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(l.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:i}=this,r=null,s=null,l=null,a;return i.duration?(r=i.duration,s=i.durationUnit,l=this.buildRangeFromDuration(e,n,r,s)):(a=this.props.dayCount)?(s="day",l=this.buildRangeFromDayCount(e,n,a)):(l=this.buildCustomVisibleRange(e))?s=i.dateEnv.greatestWholeUnit(l.start,l.end).unit:(r=this.getFallbackDuration(),s=Hn(r).unit,l=this.buildRangeFromDuration(e,n,r,s)),{duration:r,unit:s,range:l}}getFallbackDuration(){return O({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:i,slotMinTime:r,slotMaxTime:s}=this.props,{start:l,end:a}=e;return i&&(Ge(r)<0&&(l=B(l),l=n.add(l,r)),Ge(s)>1&&(a=B(a),a=X(a,-1),a=n.add(a,s))),{start:l,end:a}}buildRangeFromDuration(e,n,i,r){let{dateEnv:s,dateAlignment:l}=this.props,a,o,d;if(!l){let{dateIncrement:u}=this.props;u&>(u)!l[o.defId].recurringDef);for(let o in l){let d=l[o];if(d.recurringDef){let{duration:c}=d.recurringDef;c||(c=d.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let u=Ld(d,c,e,i,r.recurringTypes);for(let h of u){let f=li(o,{start:h,end:i.add(h,c)});a[f.instanceId]=f}}}return{defs:l,instances:a}}function Ld(t,e,n,i,r){let l=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:i.subtract(n.start,e),end:n.end},i);return t.allDay&&(l=l.map(B)),l}const Pt={id:String,groupId:String,title:String,url:String,interactive:Boolean},Sr={start:m,end:m,date:m,allDay:Boolean},Bd=Object.assign(Object.assign(Object.assign({},Pt),Sr),{extendedProps:m});function Cr(t,e,n,i,r=ai(n),s,l){let{refined:a,extra:o}=Tr(t,n,r),d=jd(e,n),c=Vd(a,d,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let h=Bn(a,o,e?e.sourceId:"",c.allDay,!!c.duration,n,s);return h.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:h,instance:null}}let u=Wd(a,d,n,i);if(u){let h=Bn(a,o,e?e.sourceId:"",u.allDay,u.hasEnd,n,s),f=li(h.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return l&&h.publicId&&l[h.publicId]&&(f.instanceId=l[h.publicId]),{def:h,instance:f}}return null}function Tr(t,e,n=ai(e)){return ei(t,n)}function ai(t){return Object.assign(Object.assign(Object.assign({},Gt),Bd),t.pluginHooks.eventRefiners)}function Bn(t,e,n,i,r,s,l){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(l&&t.id?l[t.id]:"")||Ve(),sourceId:n,allDay:i,hasEnd:r,interactive:t.interactive,ui:qt(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let o of s.pluginHooks.eventDefMemberAdders)Object.assign(a,o(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Wd(t,e,n,i){let{allDay:r}=t,s,l=null,a=!1,o,d=null,c=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(c),s)l=s.marker;else if(!i)return null;return t.end!=null&&(o=n.dateEnv.createMarkerMeta(t.end)),r==null&&(e!=null?r=e:r=(!s||s.isTimeUnspecified)&&(!o||o.isTimeUnspecified)),r&&l&&(l=B(l)),o&&(d=o.marker,r&&(d=B(d)),l&&d<=l&&(d=null)),d?a=!0:i||(a=n.options.forceEventDuration||!1,d=n.dateEnv.add(l,r?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:r,hasEnd:a,range:{start:l,end:d},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:o?o.forcedTzo:null}}function jd(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function pt(t,e,n,i,r,s){let l=ce(),a=ai(n);for(let o of t){let d=Cr(o,e,n,i,a,r,s);d&&Wn(d,l)}return l}function Wn(t,e=ce()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function oi(t,e){let n=t.instances[e];if(n){let i=t.defs[n.defId],r=sn(t,s=>Fd(i,s));return r.defs[i.defId]=i,r.instances[n.instanceId]=n,r}return ce()}function Fd(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function ce(){return{defs:{},instances:{}}}function di(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function sn(t,e){let n=He(t.defs,e),i=He(t.instances,r=>n[r.defId]);return{defs:n,instances:i}}function Ud(t,e){let{defs:n,instances:i}=t,r={},s={};for(let l in n)e.defs[l]||(r[l]=n[l]);for(let l in i)!e.instances[l]&&r[i[l].defId]&&(s[l]=i[l]);return{defs:r,instances:s}}function zd(t,e){return Array.isArray(t)?pt(t,null,e,!0):typeof t=="object"&&t?pt([t],null,e,!0):t!=null?String(t):null}function ls(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Gt={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:m,overlap:m,allow:m,className:ls,classNames:ls,color:String,backgroundColor:String,borderColor:String,textColor:String},$d={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function qt(t,e){let n=zd(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Yd(t){return t.reduce(Gd,$d)}function Gd(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const qd={id:String,defaultAllDay:Boolean,url:String,format:String,events:m,eventDataTransform:m,success:m,failure:m};function Rr(t,e,n=kr(e)){let i;if(typeof t=="string"?i={url:t}:typeof t=="function"||Array.isArray(t)?i={events:t}:typeof t=="object"&&t&&(i=t),i){let{refined:r,extra:s}=ei(i,n),l=Qd(r,e);if(l)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:Ve(),sourceDefId:l.sourceDefId,meta:l.meta,ui:qt(r,e),extendedProps:s}}return null}function kr(t){return Object.assign(Object.assign(Object.assign({},Gt),qd),t.pluginHooks.eventSourceRefiners)}function Qd(t,e){let n=e.pluginHooks.eventSourceDefs;for(let i=n.length-1;i>=0;i-=1){let s=n[i].parseMeta(t);if(s)return{sourceDefId:i,meta:s}}return null}function Zd(t,e,n,i,r){switch(e.type){case"RECEIVE_EVENTS":return Xd(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return Jd(t,n[e.sourceId],e.rawEvents,i.activeRange,r);case"ADD_EVENTS":return Kd(t,e.eventStore,i?i.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return di(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return i?Pe(t,i.activeRange,r):t;case"REMOVE_EVENTS":return Ud(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return xr(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return sn(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return ce();default:return t}}function Xd(t,e,n,i,r,s){if(e&&n===e.latestFetchId){let l=pt(Mr(r,e,s),e,s);return i&&(l=Pe(l,i,s)),di(xr(t,e.sourceId),l)}return t}function Jd(t,e,n,i,r){const{defIdMap:s,instanceIdMap:l}=tc(t);let a=pt(Mr(n,e,r),e,r,!1,s,l);return Pe(a,i,r)}function Mr(t,e,n){let i=n.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=as(t,r)),i&&(t=as(t,i)),t}function as(t,e){let n;if(!e)n=t;else{n=[];for(let i of t){let r=e(i);r?n.push(r):r==null&&n.push(i)}}return n}function Kd(t,e,n,i){return n&&(e=Pe(e,n,i)),di(t,e)}function os(t,e,n){let{defs:i}=t,r=Be(t.instances,s=>i[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:i,instances:r}}function xr(t,e){return sn(t,n=>n.sourceId!==e)}function ec(t,e){return{defs:t.defs,instances:He(t.instances,n=>!e[n.instanceId])}}function tc(t){const{defs:e,instances:n}=t,i={},r={};for(let s in e){const l=e[s],{publicId:a}=l;a&&(i[a]=s)}for(let s in n){const l=n[s],a=e[l.defId],{publicId:o}=a;o&&(r[o]=s)}return{defIdMap:i,instanceIdMap:r}}class rn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){nc(this.handlers,e,n)}off(e,n){ic(this.handlers,e,n)}trigger(e,...n){let i=this.handlers[e]||[],r=this.options&&this.options[e],s=[].concat(r||[],i);for(let l of s)l.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function nc(t,e,n){(t[e]||(t[e]=[])).push(n)}function ic(t,e,n){n?t[e]&&(t[e]=t[e].filter(i=>i!==n)):delete t[e]}const sc={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function rc(t,e){return pt(lc(t),null,e)}function lc(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},sc),n)),e}function Ir(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},ci(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function ac(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function ci(t,e){let n={};for(let i of e.pluginHooks.dateSpanTransforms)Object.assign(n,i(t,e));return Object.assign(n,_c(t,e.dateEnv)),n}function ds(t,e,n){let{dateEnv:i,options:r}=n,s=e;return t?(s=B(s),s=i.add(s,r.defaultAllDayEventDuration)):s=i.add(s,r.defaultTimedEventDuration),s}function ui(t,e,n,i){let r=Qt(t.defs,e),s=ce();for(let l in t.defs){let a=t.defs[l];s.defs[l]=oc(a,r[l],n,i)}for(let l in t.instances){let a=t.instances[l],o=s.defs[a.defId];s.instances[l]=dc(a,o,r[a.defId],n,i)}return s}function oc(t,e,n,i){let r=n.standardProps||{};r.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(r.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),r),{ui:Object.assign(Object.assign({},t.ui),r.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let l of i.pluginHooks.eventDefMutationAppliers)l(s,n,i);return!s.hasEnd&&i.options.forceEventDuration&&(s.hasEnd=!0),s}function dc(t,e,n,i,r){let{dateEnv:s}=r,l=i.standardProps&&i.standardProps.allDay===!0,a=i.standardProps&&i.standardProps.hasEnd===!1,o=Object.assign({},t);return l&&(o.range=wr(o.range)),i.datesDelta&&n.startEditable&&(o.range={start:s.add(o.range.start,i.datesDelta),end:s.add(o.range.end,i.datesDelta)}),i.startDelta&&n.durationEditable&&(o.range={start:s.add(o.range.start,i.startDelta),end:o.range.end}),i.endDelta&&n.durationEditable&&(o.range={start:o.range.start,end:s.add(o.range.end,i.endDelta)}),a&&(o.range={start:o.range.start,end:ds(e.allDay,o.range.start,r)}),e.allDay&&(o.range={start:B(o.range.start),end:B(o.range.end)}),o.range.endNr(n,e))}function Nr(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Yd(n)}function Hr(t,e){let n=t.map(cc);return n.sort((i,r)=>Co(i,r,e)),n.map(i=>i._seg)}function cc(t){let{eventRange:e}=t,n=e.def,i=e.instance?e.instance.range:e.range,r=i.start?i.start.valueOf():0,s=i.end?i.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:s,duration:s-r,allDay:Number(n.allDay),_seg:t})}function uc(t,e){let{pluginHooks:n}=e,i=n.isDraggableTransformers,{def:r,ui:s}=t.eventRange,l=s.startEditable;for(let a of i)l=a(l,r,s,e);return l}function hc(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function fc(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function dt(t,e,n,i,r,s,l){let{dateEnv:a,options:o}=n,{displayEventTime:d,displayEventEnd:c}=o,u=t.eventRange.def,h=t.eventRange.instance;d==null&&(d=i!==!1),c==null&&(c=r!==!1);let f=h.range.start,p=h.range.end,b=s||t.start||t.eventRange.range.start,y=l||t.end||t.eventRange.range.end,v=B(f).valueOf()===B(b).valueOf(),w=B(Ce(p,-1)).valueOf()===B(Ce(y,-1)).valueOf();return d&&!u.allDay&&(v||w)?(b=v?f:b,y=w?p:y,c&&u.hasEnd?a.formatRange(b,y,e,{forcedStartTzo:s?null:h.forcedStartTzo,forcedEndTzo:l?null:h.forcedEndTzo}):a.format(b,e,{forcedTzo:s?null:h.forcedStartTzo})):""}function qe(t,e,n){let i=t.eventRange.range;return{isPast:i.end<(n||e.start),isFuture:i.start>=(n||e.end),isToday:e&&Ae(e,i.start)}}function gc(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function pc(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function hi(t,e){let{def:n,instance:i}=t.eventRange,{url:r}=n;if(r)return{href:r};let{emitter:s,options:l}=e,{eventInteractive:a}=l;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?pr(o=>{s.trigger("eventClick",{el:o.target,event:new F(e,n,i),jsEvent:o,view:e.viewApi})}):{}}const mc={start:m,end:m,allDay:Boolean};function vc(t,e,n){let i=yc(t,e),{range:r}=i;if(!r.start)return null;if(!r.end){if(n==null)return null;r.end=e.add(r.start,n)}return i}function yc(t,e){let{refined:n,extra:i}=ei(t,mc),r=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:l}=n;return l==null&&(l=r&&r.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:s?s.marker:null},allDay:l},i)}function bc(t,e){return Id(t.range,e.range)&&t.allDay===e.allDay&&Dc(t,e)}function Dc(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function _c(t,e){return Object.assign(Object.assign({},Vr(t.range,e,t.allDay)),{allDay:t.allDay})}function Pr(t,e,n){return Object.assign(Object.assign({},Vr(t,e,n)),{timeZone:e.timeZone})}function Vr(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function Ec(t,e,n){let i=Tr({editable:!1},n),r=Bn(i.refined,i.extra,"",t.allDay,!0,n);return{def:r,ui:Nr(r,e),instance:li(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function wc(t,e,n){let i=!1,r=function(a){i||(i=!0,e(a))},s=function(a){i||(i=!0,n(a))},l=t(r,s);l&&typeof l.then=="function"&&l.then(r,s)}class us extends Error{constructor(e,n){super(e),this.response=n}}function Ac(t,e,n){t=t.toUpperCase();const i={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(i.body=new URLSearchParams(n),i.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,i).then(r=>{if(r.ok)return r.json().then(s=>[s,r],()=>{throw new us("Failure parsing JSON",r)});throw new us("Request failed",r)})}let En;function Lr(){return En==null&&(En=Sc()),En}function Sc(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="
",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class Cc extends W{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:i}=this.state,r=i||n.height==="auto"||n.contentHeight==="auto",s=!r&&n.height!=null?n.height:"",l=["fc",i?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Lr()||l.push("fc-liquid-hack"),e.children(l,s,r,i)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class et{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Tc(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function fi(t){return{[t.component.uid]:t}}const Fn={};class Rc{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:i}=this;i.currentCalendarOptionsRefiners[e]?i.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:i}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:i.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let i=this.getCurrentData(),r;n=n||"day",r=i.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),r?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:i}=this.getCurrentData(),r=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]),s,l;for(let a in n)r.push(a);for(s=0;s{this.dispatch({type:"REMOVE_EVENTS",eventStore:Or(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:i,instances:r}=n.eventStore;e=String(e);for(let s in i){let l=i[s];if(l.publicId===e){if(l.recurringDef)return new F(n,l,null);for(let a in r){let o=r[a];if(o.defId===l.defId)return new F(n,l,o)}}}return null}getEvents(){let e=this.getCurrentData();return Ne(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,i=[];for(let r in n)i.push(new ze(e,n[r]));return i}getEventSourceById(e){let n=this.getCurrentData(),i=n.eventSources;e=String(e);for(let r in i)if(i[r].publicId===e)return new ze(n,i[r]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof ze)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let i=Rr(e,n);return i?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[i]}),new ze(n,i)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=O(e);n&&this.trigger("_scrollRequest",{time:n})}}function kc(t,e){return t.left>=e.left&&t.left=e.top&&t.topn:e&&t>=e.end)}}function ln(t,e){let n=["fc-day",`fc-day-${Vo[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const Oc=q({year:"numeric",month:"long",day:"numeric"}),Nc=q({week:"long"});function mt(t,e,n="day",i=!0){const{dateEnv:r,options:s,calendarApi:l}=t;let a=r.format(e,n==="week"?Nc:Oc);if(s.navLinks){let o=r.toDate(e);const d=c=>{let u=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof u=="function"?u.call(l,r.toDate(e),c):(typeof u=="string"&&(n=u),l.zoomTo(e,n))};return Object.assign({title:at(s.navLinkHint,[a,o],a),"data-navlink":""},i?gr(d):{onClick:d})}return{"aria-label":a}}let wn=null;function Hc(){return wn===null&&(wn=Pc()),wn}function Pc(){let t=document.createElement("div");lt(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="
",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Zn(t),n}let An;function Vc(){return An||(An=Lc()),An}function Lc(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Wr(t);return document.body.removeChild(t),e}function Wr(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Bc(t,e=!1){let n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,l=parseInt(n.borderBottomWidth,10)||0,a=Wr(t),o=a.y-i-r,d=a.x-s-l,c={borderLeft:i,borderRight:r,borderTop:s,borderBottom:l,scrollbarBottom:d,scrollbarLeft:0,scrollbarRight:0};return Hc()&&n.direction==="rtl"?c.scrollbarLeft=o:c.scrollbarRight=o,e&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function Wc(t,e=!1,n){let i=n?t.getBoundingClientRect():pi(t),r=Bc(t,e),s={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(s.left+=r.paddingLeft,s.right-=r.paddingRight,s.top+=r.paddingTop,s.bottom-=r.paddingBottom),s}function pi(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function jc(t){let e=jr(t),n=t.getBoundingClientRect();for(let i of e){let r=Br(n,i.getBoundingClientRect());if(r)n=r;else return null}return n}function jr(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class Zt{constructor(e,n,i,r){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();i&&this.buildElHorizontals(s.left),r&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();n.push(s.left-e),i.push(s.right-e)}this.lefts=n,this.rights=i}buildElVerticals(e){let n=[],i=[];for(let r of this.els){let s=r.getBoundingClientRect();n.push(s.top-e),i.push(s.bottom-e)}this.tops=n,this.bottoms=i}leftToIndex(e){let{lefts:n,rights:i}=this,r=n.length,s;for(s=0;s=n[s]&&e=n[s]&&e0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()0}canScrollRight(){return this.getScrollLeft()n.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let i of e)this.insertEntry(i,n);return n}insertEntry(e,n){let i=this.findInsertion(e);return this.isInsertionValid(i,e)?(this.insertEntryAt(e,i),1):this.handleInvalidInsertion(i,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnta.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:l.end}},s)),r?(i.push({index:e.index,thickness:e.thickness,span:Fr(a,l)},...s),r):(i.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:i,levelCoords:r}=this;n.lateral===-1?(Sn(r,n.level,n.levelCoord),Sn(i,n.level,[e])):Sn(i[n.level],n.lateral,e),this.stackCnts[ct(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:i,strictOrder:r,stackCnts:s}=this,l=n.length,a=0,o=-1,d=-1,c=null,u=0;for(let p=0;p=a+this.getEntryThickness(e))break;let y=i[p],v,w=fs(y,e.span.start,hs),S=w[0]+w[1];for(;(v=y[S])&&v.span.starta&&(a=C,c=v,o=p,d=S),C===a&&(u=Math.max(u,s[ct(v)]+1)),S+=1}}let h=0;if(c)for(h=o+1;hn(t[r-1]))return[r,0];for(;il)i=s+1;else return[s,1]}return[i,0]}class $c{constructor(e,n){this.emitter=new rn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const vi={};function Yc(t,e){return!t||e>10?q({weekday:"short"}):e>1?q({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):q({weekday:"long"})}const Ur="fc-col-header-cell";function zr(t){return t.text}class Gc extends W{render(){let{dateEnv:e,options:n,theme:i,viewApi:r}=this.context,{props:s}=this,{date:l,dateProfile:a}=s,o=gi(l,s.todayRange,null,a),d=[Ur].concat(ln(o,i)),c=e.format(l,s.dayHeaderFormat),u=!o.isDisabled&&s.colCnt>1?mt(this.context,l):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(l),view:r},s.extraRenderProps),{text:c}),o);return g(oe,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":o.isDisabled?void 0:bt(l)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:zr,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},f=>g("div",{className:"fc-scrollgrid-sync-inner"},!o.isDisabled&&g(f,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const qc=q({weekday:"long"});class Qc extends W{render(){let{props:e}=this,{dateEnv:n,theme:i,viewApi:r,options:s}=this.context,l=X(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},o=n.format(l,e.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:l},a),{view:r}),e.extraRenderProps),{text:o});return g(oe,{elTag:"th",elClasses:[Ur,...ln(a,i),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:zr,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>g("div",{className:"fc-scrollgrid-sync-inner"},g(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(l,qc)}})))}}class an extends re{constructor(e,n){super(e,n),this.initialNowDate=_t(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,i=Ce(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(i,e.unit),s=n.dateEnv.add(r,O(1,e.unit)),l=s.valueOf()-i.valueOf();return l=Math.min(1e3*60*60*24,l),{currentState:{nowDate:r,todayRange:gs(r)},nextState:{nowDate:s,todayRange:gs(s)},waitMs:l}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}an.contextType=We;function gs(t){let e=B(t),n=X(e,1);return{start:e,end:n}}class $r extends W{constructor(){super(...arguments),this.createDayHeaderFormatter=x(Zc)}render(){let{context:e}=this,{dates:n,dateProfile:i,datesRepDistinctDays:r,renderIntro:s}=this.props,l=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,n.length);return g(an,{unit:"day"},(a,o)=>g("tr",{role:"row"},s&&s("day"),n.map(d=>r?g(Gc,{key:d.toISOString(),date:d,dateProfile:i,todayRange:o,colCnt:n.length,dayHeaderFormat:l}):g(Qc,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:l}))))}}function Zc(t,e,n){return t||Yc(e,n)}class Xc{constructor(e,n){let i=e.start,{end:r}=e,s=[],l=[],a=-1;for(;i=n.length?n[n.length-1]+1:n[i]}}class Jc{constructor(e,n){let{dates:i}=e,r,s,l;if(n){for(s=i[0].getUTCDay(),r=1;rs.groupId===t)):typeof t=="object"&&t?Cn(Pe(t,e,r)):[]}function Cn(t){let{instances:e}=t,n=[];for(let i in e)n.push(e[i].range);return n}function ru(t,e){for(let n of t)if(nn(n,e))return!0;return!1}const kt=/^(visible|hidden)$/;class Qr extends W{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,be(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:i}=e,r=n&&i,s=["fc-scroller"];return n&&(i?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),g("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(kt.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:i}=e;for(let r=0;rn)return!0;return!1}needsYScrolling(){if(kt.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:i}=e;for(let r=0;rn)return!0;return!1}getXScrollbarWidth(){return kt.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return kt.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Oe{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,i)=>{let{depths:r,currentMap:s}=this,l=!1,a=!1;n!==null?(l=i in s,s[i]=n,r[i]=(r[i]||0)+1,a=!0):(r[i]-=1,r[i]||(delete s[i],delete this.callbackMap[i],l=!0)),this.masterCallback&&(l&&this.masterCallback(null,String(i)),a&&this.masterCallback(n,String(i)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=i=>{this.handleValue(i,String(e))}),n}collect(e,n,i){return pd(this.currentMap,e,n,i)}getAll(){return ni(this.currentMap)}}function lu(t){let e=mo(t,".fc-scrollgrid-shrink"),n=0;for(let i of e)n=Math.max(n,Mo(i));return Math.ceil(n)}function Zr(t,e){return t.liquid&&e.liquid}function au(t,e){return e.maxHeight!=null||Zr(t,e)}function ou(t,e,n,i){let{expandRows:r}=n;return typeof e.content=="function"?e.content(n):g("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,g(i?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function du(t,e){return Se(t,e,he)}function cu(t,e){let n=[];for(let i of t){let r=i.span||1;for(let s=0;se,du),this.renderMicroColGroup=x(cu),this.scrollerRefs=new Oe,this.scrollerElRefs=new Oe(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:i}=this,r=e.sections||[],s=this.processCols(e.cols),l=this.renderMicroColGroup(s,n.shrinkWidth),a=fu(e.liquid,i);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let o=r.length,d=0,c,u=[],h=[],f=[];for(;d{}},r);return g(r?"th":"td",{ref:i.elRef,role:"presentation"},g("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},g(Qr,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:u,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let i=vu(this.props.sections,n);i&&be(i.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return hu(this.props.cols)?lu(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Vc(),{scrollerRefs:n,scrollerElRefs:i}=this,r=!1,s={},l={};for(let a in n.currentMap){let o=n.currentMap[a];if(o&&o.needsYScrolling()){r=!0;break}}for(let a of this.props.sections){let o=a.key,d=i.currentMap[o];if(d){let c=d.parentNode;s[o]=Math.floor(c.getBoundingClientRect().width-(r?e.y:0)),l[o]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:s,scrollerClientHeights:l}}}Xr.addStateEquality({scrollerClientWidths:he,scrollerClientHeights:he});function vu(t,e){for(let n of t)if(n.key===e)return n;return null}class on extends W{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&cs(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:i}=n,{seg:r}=e,{eventRange:s}=r,{ui:l}=s,a={event:new F(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:l.textColor,backgroundColor:l.backgroundColor,borderColor:l.borderColor,isDraggable:!e.disableDragging&&uc(r,n),isStartResizable:!e.disableResizing&&hc(r,n),isEndResizable:!e.disableResizing&&fc(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return g(oe,Object.assign({},e,{elRef:this.handleEl,elClasses:[...gc(a),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:i.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.eventClassNames,didMount:i.eventDidMount,willUnmount:i.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&cs(this.el,this.props.seg)}}class yu extends W{render(){let{props:e,context:n}=this,{options:i}=n,{seg:r}=e,{ui:s}=r.eventRange,l=i.eventTimeFormat||e.defaultTimeFormat,a=dt(r,l,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return g(on,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:hi(r,n),defaultGenerator:bu,timeText:a}),(o,d)=>g(G,null,g(o,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function bu(t){return g("div",{className:"fc-event-main-frame"},t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title-container"},g("div",{className:"fc-event-title fc-sticky"},t.event.title||g(G,null," "))))}const Du=q({day:"numeric"});class Jr extends W{constructor(){super(...arguments),this.refineRenderProps=Ht(_u)}render(){let{props:e,context:n}=this,{options:i}=n,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:i.monthStartFormat});return g(oe,Object.assign({},e,{elClasses:[...ln(r,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":bt(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:i.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:i.dayCellClassNames,didMount:i.dayCellDidMount,willUnmount:i.dayCellWillUnmount}))}}function Kr(t){return!!(t.dayCellContent||Ln("dayCellContent",t))}function _u(t){let{date:e,dateEnv:n,dateProfile:i,isMonthStart:r}=t,s=gi(e,t.todayRange,null,i),l=t.showDayNumber?n.format(e,r?t.monthStartFormat:Du):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:r,dayNumberText:l}),t.extraRenderProps)}class Eu extends W{render(){let{props:e}=this,{seg:n}=e;return g(on,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:wu,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function wu(t){let{title:e}=t.event;return e&&g("div",{className:"fc-event-title"},t.event.title)}function Au(t){return g("div",{className:`fc-${t}`})}const Su=t=>g(We.Consumer,null,e=>{let{dateEnv:n,options:i}=e,{date:r}=t,s=i.weekNumberFormat||t.defaultFormat,l=n.computeWeekNumber(r),a=n.format(r,s);return g(oe,Object.assign({},t,{renderProps:{num:l,text:a,date:r},generatorName:"weekNumberContent",customGenerator:i.weekNumberContent,defaultGenerator:Cu,classNameGenerator:i.weekNumberClassNames,didMount:i.weekNumberDidMount,willUnmount:i.weekNumberWillUnmount}))});function Cu(t){return t.text}const Tn=10;class Tu extends W{constructor(){super(...arguments),this.state={titleId:ye()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&be(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=hr(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:i,state:r}=this,s=["fc-popover",e.getClass("popover")].concat(i.extraClassNames||[]);return to(g("div",Object.assign({},i.extraAttrs,{id:i.id,className:s.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),g("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},g("span",{className:"fc-popover-title",id:r.titleId},i.title),g("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),g("div",{className:"fc-popover-body "+e.getClass("popoverContent")},i.children)),i.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:i}=this.props,{rootEl:r}=this,s=jc(n);if(s){let l=r.getBoundingClientRect(),a=i?ne(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,o=e?s.right-l.width:s.left;a=Math.max(a,Tn),o=Math.min(o,document.documentElement.clientWidth-Tn-l.width),o=Math.max(o,Tn);let d=r.offsetParent.getBoundingClientRect();lt(r,{top:a-d.top,left:o-d.left})}}}class Ru extends ge{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:i}=this,{startDate:r,todayRange:s,dateProfile:l}=i,a=n.format(r,e.dayPopoverFormat);return g(Jr,{elRef:this.handleRootEl,date:r,dateProfile:l,todayRange:s},(o,d,c)=>g(Tu,{elRef:c.ref,id:i.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:i.parentEl,alignmentEl:i.alignmentEl,alignGridTop:i.alignGridTop,onClose:i.onClose},Kr(e)&&g(o,{elTag:"div",elClasses:["fc-more-popover-misc"]}),i.children))}queryHit(e,n,i,r){let{rootEl:s,props:l}=this;return e>=0&&e=0&&n{this.linkEl=e,this.props.elRef&&be(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:i}=this,{moreLinkClick:r}=i.options,s=ms(n).start;function l(a){let{def:o,instance:d,range:c}=a.eventRange;return{event:new F(i,o,d),start:i.dateEnv.toDate(c.start),end:i.dateEnv.toDate(c.end),isStart:a.isStart,isEnd:a.isEnd}}typeof r=="function"&&(r=r({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(l),hiddenSegs:n.hiddenSegs.map(l),jsEvent:e,view:i.viewApi})),!r||r==="popover"?this.setState({isPopoverOpen:!0}):typeof r=="string"&&i.calendarApi.zoomTo(s,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return g(We.Consumer,null,i=>{let{viewApi:r,options:s,calendarApi:l}=i,{moreLinkText:a}=s,{moreCnt:o}=e,d=ms(e),c=typeof a=="function"?a.call(l,o):`+${o} ${a}`,u=at(s.moreLinkHint,[o],c),h={num:o,shortText:`+${o}`,text:c,view:r};return g(G,null,!!e.moreCnt&&g(oe,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),gr(this.handleClick)),{title:u,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Mu,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&g(Ru,{id:n.popoverId,startDate:d.start,endDate:d.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=ne(this.linkEl,".fc-view-harness"))}}function Mu(t){return t.text}function ms(t){if(t.allDayDate)return{start:t.allDayDate,end:X(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:xu(e),end:Ou(e)}}function xu(t){return t.reduce(Iu).eventRange.range.start}function Iu(t,e){return t.eventRange.range.starte.eventRange.range.end?t:e}class Hu{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Pu extends Hu{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let i=!1;e.isActive?(n.set(e.id,e),i=!0):n.has(e.id)&&(n.delete(e.id),i=!0),i&&this.set(n)}}const Vu=[],el={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},tl=Object.assign(Object.assign({},el),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Lu(t){let e=t.length>0?t[0].code:"en",n=Vu.concat(t),i={en:tl};for(let r of n)i[r.code]=r;return{map:i,defaultCode:e}}function nl(t,e){return typeof t=="object"&&!Array.isArray(t)?il(t.code,[t.code],t):Bu(t,e)}function Bu(t,e){let n=[].concat(t||[]),i=Wu(n,e)||tl;return il(t,n,i)}function Wu(t,e){for(let n=0;n0;r-=1){let s=i.slice(0,r).join("-");if(e[s])return e[s]}}return null}function il(t,e,n){let i=ti([el,n],["buttonText"]);delete i.code;let{week:r}=i;return delete i.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function pe(t){return{id:Ve(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function ju(t,e){let n={},i={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function r(s){for(let l of s){const a=l.name,o=n[a];o===void 0?(n[a]=l.id,r(l.deps),i=Uu(i,l)):o!==l.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&r(t),r(e),i}function Fu(){let t=[],e=[],n;return(i,r)=>((!n||!Se(i,t)||!Se(r,e))&&(n=ju(i,r)),t=i,e=r,n)}function Uu(t,e){return{premiumReleaseDate:zu(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function zu(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class ke extends Dt{}ke.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};ke.prototype.baseIconClass="fc-icon";ke.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};ke.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};ke.prototype.iconOverrideOption="buttonIcons";ke.prototype.iconOverrideCustomButtonOption="icon";ke.prototype.iconOverridePrefix="fc-icon-";function $u(t,e){let n={},i;for(i in t)Un(i,n,t,e);for(i in e)Un(i,n,t,e);return n}function Un(t,e,n,i){if(e[t])return e[t];let r=Yu(t,e,n,i);return r&&(e[t]=r),r}function Yu(t,e,n,i){let r=n[t],s=i[t],l=c=>r&&r[c]!==null?r[c]:s&&s[c]!==null?s[c]:null,a=l("component"),o=l("superType"),d=null;if(o){if(o===t)throw new Error("Can't have a custom view type that references itself");d=Un(o,e,n,i)}return!a&&d&&(a=d.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},d?d.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),s?s.rawOptions:{})}:null}function vs(t){return Be(t,Gu)}function Gu(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=ys(e):n&&!(n.prototype instanceof W)&&(n=ys(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function ys(t){return e=>g(We.Consumer,null,n=>g(oe,{elTag:"div",elClasses:Er(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function qu(t,e,n,i){let r=vs(t),s=vs(e.views),l=$u(r,s);return Be(l,a=>Qu(a,s,e,n,i))}function Qu(t,e,n,i,r){let s=t.overrides.duration||t.defaults.duration||i.duration||n.duration,l=null,a="",o="",d={};if(s&&(l=Zu(s),l)){let h=Hn(l);a=h.unit,h.value===1&&(o=a,d=e[a]?e[a].rawOptions:{})}let c=h=>{let f=h.buttonText||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null},u=h=>{let f=h.buttonHints||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[o]!=null?f[o]:null};return{type:t.type,component:t.component,duration:l,durationUnit:a,singleUnit:o,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},d),t.overrides),buttonTextOverride:c(i)||c(n)||t.overrides.buttonText,buttonTextDefault:c(r)||t.defaults.buttonText||c(ot)||t.type,buttonTitleOverride:u(i)||u(n)||t.overrides.buttonHint,buttonTitleDefault:u(r)||t.defaults.buttonHint||u(ot)}}let bs={};function Zu(t){let e=JSON.stringify(t),n=bs[e];return n===void 0&&(n=O(t),bs[e]=n),n}function Xu(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Ju(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Ku(t,e,n,i){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return i.build(e.dateMarker||n);case"CHANGE_DATE":return i.build(e.dateMarker);case"PREV":if(r=i.buildPrev(t,n),r.isValid)return r;break;case"NEXT":if(r=i.buildNext(t,n),r.isValid)return r;break}return t}function eh(t,e,n){let i=e?e.activeRange:null;return rl({},ah(t,n),i,n)}function th(t,e,n,i){let r=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return rl(t,e.sources,r,i);case"REMOVE_EVENT_SOURCE":return ih(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ll(t,r,i):t;case"FETCH_EVENT_SOURCES":return yi(t,e.sourceIds?vr(e.sourceIds):al(t,i),r,e.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return lh(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function nh(t,e,n){let i=e?e.activeRange:null;return yi(t,al(t,n),i,!0,n)}function sl(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function rl(t,e,n,i){let r={};for(let s of e)r[s.sourceId]=s;return n&&(r=ll(r,n,i)),Object.assign(Object.assign({},t),r)}function ih(t,e){return He(t,n=>n.sourceId!==e)}function ll(t,e,n){return yi(t,He(t,i=>sh(i,e,n)),e,!1,n)}function sh(t,e,n){return ol(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.startt.fetchRange.end:!t.latestFetchId}function yi(t,e,n,i,r){let s={};for(let l in t){let a=t[l];e[l]?s[l]=rh(a,n,i,r):s[l]=a}return s}function rh(t,e,n,i){let{options:r,calendarApi:s}=i,l=i.pluginHooks.eventSourceDefs[t.sourceDefId],a=Ve();return l.fetch({eventSource:t,range:e,isRefetch:n,context:i},o=>{let{rawEvents:d}=o;r.eventSourceSuccess&&(d=r.eventSourceSuccess.call(s,d,o.response)||d),t.success&&(d=t.success.call(s,d,o.response)||d),i.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:d})},o=>{let d=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(s,o),d=!0),t.failure&&(t.failure(o),d=!0),d||console.warn(o.message,o),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:o})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function lh(t,e,n,i){let r=t[e];return r&&n===r.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:i})}):t}function al(t,e){return He(t,n=>ol(n,e))}function ah(t,e){let n=kr(e),i=[].concat(t.eventSources||[]),r=[];t.initialEvents&&i.unshift(t.initialEvents),t.events&&i.unshift(t.events);for(let s of i){let l=Rr(s,e,n);l&&r.push(l)}return r}function ol(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function oh(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function dh(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function ch(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function uh(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function hh(t,e,n,i,r){let s=t.headerToolbar?Ds(t.headerToolbar,t,e,n,i,r):null,l=t.footerToolbar?Ds(t.footerToolbar,t,e,n,i,r):null;return{header:s,footer:l}}function Ds(t,e,n,i,r,s){let l={},a=[],o=!1;for(let d in t){let c=t[d],u=fh(c,e,n,i,r,s);l[d]=u.widgets,a.push(...u.viewsWithButtons),o=o||u.hasTitle}return{sectionWidgets:l,viewsWithButtons:a,hasTitle:o}}function fh(t,e,n,i,r,s){let l=e.direction==="rtl",a=e.customButtons||{},o=n.buttonText||{},d=e.buttonText||{},c=n.buttonHints||{},u=e.buttonHints||{},h=t?t.split(" "):[],f=[],p=!1;return{widgets:h.map(y=>y.split(",").map(v=>{if(v==="title")return p=!0,{buttonName:v};let w,S,C,V,U,L;if(w=a[v])C=M=>{w.click&&w.click.call(M.target,M,M.target)},(V=i.getCustomButtonIconClass(w))||(V=i.getIconClass(v,l))||(U=w.text),L=w.hint||w.text;else if(S=r[v]){f.push(v),C=()=>{s.changeView(v)},(U=S.buttonTextOverride)||(V=i.getIconClass(v,l))||(U=S.buttonTextDefault);let M=S.buttonTextOverride||S.buttonTextDefault;L=at(S.buttonTitleOverride||S.buttonTitleDefault||e.viewHint,[M,v],M)}else if(s[v])if(C=()=>{s[v]()},(U=o[v])||(V=i.getIconClass(v,l))||(U=d[v]),v==="prevYear"||v==="nextYear"){let M=v==="prevYear"?"prev":"next";L=at(c[M]||u[M],[d.year||"year","year"],d[v])}else L=M=>at(c[v]||u[v],[d[M]||M,M],d[v]);return{buttonName:v,buttonClick:C,buttonIcon:V,buttonText:U,buttonHint:L}})),viewsWithButtons:f,hasTitle:p}}class gh{constructor(e,n,i){this.type=e,this.getCurrentData=n,this.dateEnv=i}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let ph={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const mh=pe({name:"array-event-source",eventSourceDefs:[ph]});let vh={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:i}=t.context,r=t.eventSource.meta;wc(r.bind(null,Pr(t.range,i)),s=>e({rawEvents:s}),n)}};const yh=pe({name:"func-event-source",eventSourceDefs:[vh]}),bh={method:String,extraParams:m,startParam:String,endParam:String,timeZoneParam:String};let Dh={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:i}=t.eventSource,r=Eh(i,t.range,t.context);Ac(i.method,i.url,r).then(([s,l])=>{e({rawEvents:s,response:l})},n)}};const _h=pe({name:"json-event-source",eventSourceRefiners:bh,eventSourceDefs:[Dh]});function Eh(t,e,n){let{dateEnv:i,options:r}=n,s,l,a,o,d={};return s=t.startParam,s==null&&(s=r.startParam),l=t.endParam,l==null&&(l=r.endParam),a=t.timeZoneParam,a==null&&(a=r.timeZoneParam),typeof t.extraParams=="function"?o=t.extraParams():o=t.extraParams||{},Object.assign(d,o),d[s]=i.formatIso(e.start),d[l]=i.formatIso(e.end),i.timeZone!=="local"&&(d[a]=i.timeZone),d}const wh={daysOfWeek:m,startTime:O,endTime:O,duration:O,startRecur:m,endRecur:m};let Ah={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},i;return t.duration&&(i=t.duration),!i&&t.startTime&&t.endTime&&(i=No(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:i,typeData:n}}return null},expand(t,e,n){let i=Te(e,{start:t.startRecur,end:t.endRecur});return i?Ch(t.daysOfWeek,t.startTime,i,n):[]}};const Sh=pe({name:"simple-recurring-event",recurringTypes:[Ah],eventRefiners:wh});function Ch(t,e,n,i){let r=t?vr(t):null,s=B(n.start),l=n.end,a=[];for(;ssl(t.eventSources)],propSetHandlers:{dateProfile:Rh,eventStore:kh}})];class xh{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Qn(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],i;for(;i=e.shift();)this.runTask(i),n.push(i);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Ih(t,e,n){let i;return/^(year|month)$/.test(t.currentRangeUnit)?i=t.currentRange:i=t.activeRange,n.formatRange(i.start,i.end,q(e.titleFormat||Oh(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Oh(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Ft(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Nh{constructor(e){this.computeCurrentViewData=x(this._computeCurrentViewData),this.organizeRawLocales=x(Lu),this.buildLocale=x(nl),this.buildPluginHooks=Fu(),this.buildDateEnv=x(Hh),this.buildTheme=x(Ph),this.parseToolbars=x(hh),this.buildViewSpecs=x(qu),this.buildDateProfileGenerator=Ht(Vh),this.buildViewApi=x(Lh),this.buildViewUiProps=Ht(jh),this.buildEventUiBySource=x(Bh,he),this.buildEventUiBases=x(Wh),this.parseContextBusinessHours=Ht(Fh),this.buildTitle=x(Ih),this.emitter=new rn,this.actionRunner=new xh(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},i=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),r=i.calendarOptions.initialView||i.pluginHooks.initialView,s=this.computeCurrentViewData(r,i,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let l=Pd(i.calendarOptions,i.dateEnv),a=s.dateProfileGenerator.build(l);Ae(a.activeRange,l)||(l=a.currentRange.start);let o={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of i.pluginHooks.contextInit)h(o);let d=eh(i.calendarOptions,a,o),c={dynamicOptionOverrides:n,currentViewType:r,currentDate:l,dateProfile:a,businessHours:this.parseContextBusinessHours(o),eventSources:d,eventUiBases:{},eventStore:ce(),renderableEventStore:ce(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},u=Object.assign(Object.assign({},o),c);for(let h of i.pluginHooks.reducers)Object.assign(c,h(null,null,u));Rn(c,o)&&this.emitter.trigger("loading",!0),this.state=c,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:i}=this;n===void 0?i.optionOverrides=e:(i.optionOverrides=Object.assign(Object.assign({},i.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:i,emitter:r}=this,s=Ju(i.dynamicOptionOverrides,e),l=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=Xu(i.currentViewType,e),o=this.computeCurrentViewData(a,l,n.optionOverrides,s);n.calendarApi.currentDataManager=this,r.setThisContext(n.calendarApi),r.setOptions(o.options);let d={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=i;this.data&&this.data.dateProfileGenerator!==o.dateProfileGenerator&&(u=o.dateProfileGenerator.build(c)),c=Hd(c,e),u=Ku(u,e,c,o.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Ae(u.currentRange,c))&&(c=u.currentRange.start);let h=th(i.eventSources,e,u,d),f=Zd(i.eventStore,e,h,u,d),b=sl(h)&&!o.options.progressiveEventRendering&&i.renderableEventStore||f,{eventUiSingleBase:y,selectionConfig:v}=this.buildViewUiProps(d),w=this.buildEventUiBySource(h),S=this.buildEventUiBases(b.defs,y,w),C={dynamicOptionOverrides:s,currentViewType:a,currentDate:c,dateProfile:u,eventSources:h,eventStore:f,renderableEventStore:b,selectionConfig:v,eventUiBases:S,businessHours:this.parseContextBusinessHours(d),dateSelection:oh(i.dateSelection,e),eventSelection:dh(i.eventSelection,e),eventDrag:ch(i.eventDrag,e),eventResize:uh(i.eventResize,e)},V=Object.assign(Object.assign({},d),C);for(let M of l.pluginHooks.reducers)Object.assign(C,M(i,e,V));let U=Rn(i,d),L=Rn(C,d);!U&&L?r.trigger("loading",!0):U&&!L&&r.trigger("loading",!1),this.state=C,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,i=this.data,r=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,r,e.optionOverrides,n.dynamicOptionOverrides),l=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),s),n),a=r.pluginHooks.optionChangeHandlers,o=i&&i.calendarOptions,d=r.calendarOptions;if(o&&o!==d){o.timeZone!==d.timeZone&&(n.eventSources=l.eventSources=nh(l.eventSources,n.dateProfile,l),n.eventStore=l.eventStore=os(l.eventStore,i.dateEnv,l.dateEnv),n.renderableEventStore=l.renderableEventStore=os(l.renderableEventStore,i.dateEnv,l.dateEnv));for(let c in a)(this.optionsForHandling.indexOf(c)!==-1||o[c]!==d[c])&&a[c](d[c],l)}this.optionsForHandling=[],e.onData&&e.onData(l)}computeOptionsData(e,n,i){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:s,localeDefaults:l,availableLocaleData:a,extra:o}=this.processRawCalendarOptions(e,n);Es(o);let d=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,s,a,r.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,l),u=this.buildTheme(r,s),h=this.parseToolbars(r,this.stableOptionOverrides,u,c,i);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:s,dateEnv:d,viewSpecs:c,theme:u,toolbarConfig:h,localeDefaults:l,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:i,locale:r}=Dn([ot,e,n]),s=this.organizeRawLocales(i),l=s.map,a=this.buildLocale(r||s.defaultCode,l).options,o=this.buildPluginHooks(e.plugins||[],Mh),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ts),ns),is),o.listenerRefiners),o.optionRefiners),c={},u=Dn([ot,a,e,n]),h={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,b=!1;for(let y in u)this.optionsForRefining.indexOf(y)===-1&&(u[y]===f[y]||Me[y]&&y in f&&Me[y](f[y],u[y]))?h[y]=p[y]:d[y]?(h[y]=d[y](u[y]),b=!0):c[y]=f[y];return b&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:o,availableLocaleData:s,localeDefaults:a,extra:c}}_computeCurrentViewData(e,n,i,r){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:l,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,i,r);Es(a);let o=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:l.slotMinTime,slotMaxTime:l.slotMaxTime,showNonCurrentDates:l.showNonCurrentDates,dayCount:l.dayCount,dateAlignment:l.dateAlignment,dateIncrement:l.dateIncrement,hiddenDays:l.hiddenDays,weekends:l.weekends,nowInput:l.now,validRangeInput:l.validRange,visibleRangeInput:l.visibleRange,fixedWeekCount:l.fixedWeekCount}),d=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:l,dateProfileGenerator:o,viewApi:d}}processRawViewOptions(e,n,i,r,s){let l=Dn([ot,e.optionDefaults,i,r,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ts),ns),is),ud),n.listenerRefiners),n.optionRefiners),o={},d=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,h={};for(let f in l)l[f]===d[f]||Me[f]&&Me[f](l[f],d[f])?o[f]=c[f]:(l[f]===this.currentCalendarOptionsInput[f]||Me[f]&&Me[f](l[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(o[f]=this.currentCalendarOptionsRefined[f]):a[f]?o[f]=a[f](l[f]):h[f]=l[f],u=!0);return u&&(this.currentViewOptionsInput=l,this.currentViewOptionsRefined=o),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function Hh(t,e,n,i,r,s,l,a){let o=nl(e||l.defaultCode,l.map);return new _d({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:o,weekNumberCalculation:n,firstDay:i,weekText:r,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Ph(t,e){let n=e.themeClasses[t.themeSystem]||ke;return new n(t)}function Vh(t){let e=t.dateProfileGeneratorClass||Ar;return new e(t)}function Lh(t,e,n){return new gh(t,e,n)}function Bh(t){return Be(t,e=>e.ui)}function Wh(t,e,n){let i={"":e};for(let r in t){let s=t[r];s.sourceId&&n[s.sourceId]&&(i[r]=n[s.sourceId])}return i}function jh(t){let{options:e}=t;return{eventUiSingleBase:qt({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:qt({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Rn(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Fh(t){return rc(t.options.businessHours,t)}function Es(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Uh extends W{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return g("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:i}=this.context,r=[],s=!0;for(let l of e){let{buttonName:a,buttonClick:o,buttonText:d,buttonIcon:c,buttonHint:u}=l;if(a==="title")s=!1,r.push(g("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",p=[`fc-${a}-button`,i.getClass("button")];h&&p.push(i.getClass("buttonActive")),r.push(g("button",{type:"button",title:typeof u=="function"?u(n.navUnit):u,disabled:f,"aria-pressed":h,className:p.join(" "),onClick:o},d||(c?g("span",{className:c}):"")))}}if(r.length>1){let l=s&&i.getClass("buttonGroup")||"";return g("div",{className:l},...r)}return r[0]}}class ws extends W{render(){let{model:e,extraClassName:n}=this.props,i=!1,r,s,l=e.sectionWidgets,a=l.center;return l.left?(i=!0,r=l.left):r=l.start,l.right?(i=!0,s=l.right):s=l.end,g("div",{className:[n||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",r||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:i}=this;return g(Uh,{key:e,widgetGroups:n,title:i.title,navUnit:i.navUnit,activeButton:i.activeButton,isTodayEnabled:i.isTodayEnabled,isPrevEnabled:i.isPrevEnabled,isNextEnabled:i.isNextEnabled,titleId:i.titleId})}}class zh extends W{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,be(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:i}=e,r=["fc-view-harness",i||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",l="";return i?n.availableWidth!==null?s=n.availableWidth/i:l=`${1/i*100}%`:s=e.height||"",g("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:s,paddingBottom:l}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class $h extends et{constructor(e){super(e),this.handleSegClick=(n,i)=>{let{component:r}=this,{context:s}=r,l=Je(i);if(l&&r.isValidSegDownEl(n.target)){let a=ne(n.target,".fc-event-forced-url"),o=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:i,event:new F(r.context,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi}),o&&!n.defaultPrevented&&(window.location.href=o)}},this.destroy=fr(e.el,"click",".fc-event",this.handleSegClick)}}class Yh extends et{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,i)=>{Je(i)&&(this.currentSegEl=i,this.triggerEvent("eventMouseEnter",n,i))},this.handleSegLeave=(n,i)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,i))},this.removeHoverListeners=bo(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,i){let{component:r}=this,{context:s}=r,l=Je(i);(!n||r.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:i,event:new F(s,l.eventRange.def,l.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Gh extends je{constructor(){super(...arguments),this.buildViewContext=x(Ad),this.buildViewPropTransformers=x(Qh),this.buildToolbarProps=x(qh),this.headerRef=ue(),this.footerRef=ue(),this.interactionsStore={},this.state={viewLabelId:ye()},this.registerInteractiveComponent=(e,n)=>{let i=Tc(e,n),l=[$h,Yh].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(i));this.interactionsStore[e.uid]=l,Fn[e.uid]=i},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let i of n)i.destroy();delete this.interactionsStore[e.uid]}delete Fn[e.uid]},this.resizeRunner=new Qn(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:i}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,_t(e.options.now,e.dateEnv),e.viewTitle),s=!1,l="",a;e.isHeightAuto||e.forPrint?l="":i.height!=null?s=!0:i.contentHeight!=null?l=i.contentHeight:a=Math.max(i.aspectRatio,.5);let o=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),d=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return g(We.Provider,{value:o},n.header&&g(ws,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:d},r)),g(zh,{liquid:s,height:l,aspectRatio:a,labeledById:d},this.renderView(e),this.buildAppendContent()),n.footer&&g(ws,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(i=>new i(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let i in n)n[i](e[i],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:i}=n.pluginHooks;for(let r in i)n[r]!==e[r]&&i[r](n[r],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(i=>i(e));return g(G,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:i}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(r,a.transform(r,e));let l=i.component;return g(l,Object.assign({},r))}}function qh(t,e,n,i,r,s){let l=n.build(r,void 0,!1),a=n.buildPrev(e,i,!1),o=n.buildNext(e,i,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:l.isValid&&!Ae(e.currentRange,r),isPrevEnabled:a.isValid,isNextEnabled:o.isValid}}function Qh(t){return t.map(e=>new e)}class Zh extends Rc{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=i=>{switch(i.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=i=>{this.currentData=i,this.renderRunner.request(i.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:i}=this;ss(()=>{ft(g(Cc,{options:i.calendarOptions,theme:i.theme,emitter:i.emitter},(r,s,l,a)=>(this.setClassNames(r),this.setHeight(s),g(_r.Provider,{value:this.customContentRenderId},g(Gh,Object.assign({isHeightAuto:l,forPrint:a},i))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ft(null,this.el),this.setClassNames([]),this.setHeight(""))},co(e),this.el=e,this.renderRunner=new Qn(this.handleRenderRequest),new Nh({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){ss(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!Se(e,this.currentClassNames)){let{classList:n}=this.el;for(let i of this.currentClassNames)n.remove(i);for(let i of e)n.add(i);this.currentClassNames=e}}setHeight(e){ur(this.el,"height",e)}}const Xh={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Jh=Ps({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:nf(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(It(ef,{key:e.id,customRendering:e}));return It("div",{attrs:{"data-fc-render-id":this.renderId}},It(Q,t))},mounted(){const t=new Pu;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new Zh(this.$el,e);this.calendar=n,n.render(),t.subscribe(i=>{this.customRenderingMap=i,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:tf()}),Kh=Jh,ef=Ps({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return It(Zl,{to:t.containerEl},e)}});function tf(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let i=this.buildOptions(e);n.resetOptions(i),this.renderId++}}};for(let e in Xh)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let i=this.getApi();i.pauseRendering(),i.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function nf(t){const e={};for(const n in t)e[sf(n)]=t[n];return e}function sf(t){return t.split("-").map((e,n)=>n?rf(e):e).join("")}function rf(t){return t.charAt(0).toUpperCase()+t.slice(1)}var lf=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';en(lf);function Mt(t,e){let n=[];for(let i=0;i{let r=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return g(G,null,n.map(s=>{let l=s.eventRange.instance.instanceId;return g("div",{className:"fc-daygrid-event-harness",key:l,style:{visibility:r[l]?"hidden":""}},cl(s)?g(hl,Object.assign({seg:s,isDragging:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},qe(s,e.todayRange))):g(ul,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===e.eventSelection,defaultDisplayEventEnd:!1},qe(s,e.todayRange))))}))}})}}function df(t){let e=[],n=[];for(let i of t)e.push(i.seg),i.isVisible||n.push(i.seg);return{allSegs:e,invisibleSegs:n}}const cf=q({week:"narrow"});class uf extends ge{constructor(){super(...arguments),this.rootElRef=ue(),this.state={dayNumberId:ye()},this.handleRootEl=e=>{be(this.rootElRef,e),be(this.props.elRef,e)}}render(){let{context:e,props:n,state:i,rootElRef:r}=this,{options:s,dateEnv:l}=e,{date:a,dateProfile:o}=n;const d=n.showDayNumber&&ff(a,o.currentRange,l);return g(Jr,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":i.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hf,date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:d,extraRenderProps:n.extraRenderProps},(c,u)=>g("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&g(Su,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:mt(e,a,"week"),date:a,defaultFormat:cf}),!u.isDisabled&&(n.showDayNumber||Kr(s)||n.forceDayTop)?g("div",{className:"fc-daygrid-day-top"},g(c,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},mt(e,a)),{id:i.dayNumberId})})):n.showDayNumber?g("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},g("a",{className:"fc-daygrid-day-number"}," ")):void 0,g("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,g("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},g(of,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:r,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),g("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function hf(t){return t.dayNumberText||g(G,null," ")}function ff(t,e,n){const{start:i,end:r}=e,s=Ce(r,-1),l=n.getYear(i),a=n.getMonth(i),o=n.getYear(s),d=n.getMonth(s);return!(l===o&&a===d)&&(t.valueOf()===i.valueOf()||n.getDay(t)===1&&t.valueOf(){let w=t[v.index].eventRange.instance.instanceId+":"+v.span.start+":"+(v.span.end-1);return r[w]});a.allowReslicing=!0,a.strictOrder=i,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let o=[],d=[];for(let v=0;v1,y=f.span.start===a;u+=f.levelCoord-c,c=f.levelCoord+f.thickness,b?(u+=f.thickness,y&&h.push({seg:Qe(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):y&&(h.push({seg:Qe(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:u}),u=0)}r.push(d),s.push(h),l.push(u)}return{singleColPlacements:r,multiColPlacements:s,leftoverMargins:l}}function mf(t,e){let n=[];for(let i=0;i!this.forceHidden[ct(s)];for(let s=0;s{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:i}=this,{options:r}=i,s=e.cells.length,l=xt(e.businessHourSegs,s),a=xt(e.bgEventSegs,s),o=xt(this.getHighlightSegs(),s),d=xt(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:u,moreCnts:h,moreMarginTops:f}=gf(Hr(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return g("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((b,y)=>{let v=this.renderFgSegs(y,e.forPrint?c[y]:u[y],e.todayRange,p),w=this.renderFgSegs(y,yf(d[y],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return g(uf,{key:b.key,elRef:this.cellElRefs.createRef(b.key),innerElRef:this.frameElRefs.createRef(b.key),dateProfile:e.dateProfile,date:b.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&y===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:b.extraRenderProps,extraDataAttrs:b.extraDataAttrs,extraClassNames:b.extraClassNames,extraDateSpan:b.extraDateSpan,moreCnt:h[y],moreMarginTop:f[y],singlePlacements:c[y],fgContentElRef:this.fgElRefs.createRef(b.key),fgContent:g(G,null,g(G,null,v),g(G,null,w)),bgContent:g(G,null,this.renderFillSegs(o[y],"highlight"),this.renderFillSegs(l[y],"non-business"),this.renderFillSegs(a[y],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let i=this.props;this.updateSizing(!he(e,i))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,i,r,s,l,a){let{context:o}=this,{eventSelection:d}=this.props,{framePositions:c}=this.state,u=this.props.cells.length===1,h=s||l||a,f=[];if(c)for(let p of n){let{seg:b}=p,{instanceId:y}=b.eventRange.instance,v=p.isVisible&&!r[y],w=p.isAbsolute,S="",C="";w&&(o.isRtl?(C=0,S=c.lefts[b.lastCol]-c.lefts[b.firstCol]):(S=0,C=c.rights[b.firstCol]-c.rights[b.lastCol])),f.push(g("div",{className:"fc-daygrid-event-harness"+(w?" fc-daygrid-event-harness-abs":""),key:fl(b),ref:h?null:this.segHarnessRefs.createRef(gl(b)),style:{visibility:v?"":"hidden",marginTop:w?"":p.marginTop,top:w?p.absoluteTop:"",left:S,right:C}},cl(b)?g(hl,Object.assign({seg:b,isDragging:s,isSelected:y===d,defaultDisplayEventEnd:u},qe(b,i))):g(ul,Object.assign({seg:b,isDragging:s,isResizing:l,isDateSelecting:a,isSelected:y===d,defaultDisplayEventEnd:u},qe(b,i)))))}return f}renderFillSegs(e,n){let{isRtl:i}=this.context,{todayRange:r}=this.props,{framePositions:s}=this.state,l=[];if(s)for(let a of e){let o=i?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};l.push(g("div",{key:pc(a.eventRange),className:"fc-daygrid-bg-harness",style:o},n==="bg-event"?g(Eu,Object.assign({seg:a},qe(a,r))):Au(n)))}return g(G,{},...l)}updateSizing(e){let{props:n,state:i,frameElRefs:r}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let o=n.cells.map(d=>r.currentMap[d.key]);if(o.length){let d=this.rootElRef.current,c=new Zt(d,o,!0,!1);(!i.framePositions||!i.framePositions.similarTo(c))&&this.setState({framePositions:new Zt(d,o,!0,!1)})}}const s=this.state.segHeights,l=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),l),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let i in e){let r=Math.round(e[i].getBoundingClientRect().height);n[i]=Math.max(n[i]||0,r)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],i=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-i.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}pl.addStateEquality({segHeights:he});function yf(t,e){if(!t.length)return[];let n=bf(e);return t.map(i=>({seg:i,isVisible:!0,isAbsolute:!0,absoluteTop:n[i.eventRange.instance.instanceId],marginTop:0}))}function bf(t){let e={};for(let n of t)for(let i of n)e[i.seg.eventRange.instance.instanceId]=i.absoluteTop;return e}class ml extends ge{constructor(){super(...arguments),this.splitBusinessHourSegs=x(Mt),this.splitBgEventSegs=x(Mt),this.splitFgEventSegs=x(Mt),this.splitDateSelectionSegs=x(Mt),this.splitEventDrag=x(As),this.splitEventResize=x(As),this.rowRefs=new Oe}render(){let{props:e,context:n}=this,i=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,i),s=this.splitBgEventSegs(e.bgEventSegs,i),l=this.splitFgEventSegs(e.fgEventSegs,i),a=this.splitDateSelectionSegs(e.dateSelectionSegs,i),o=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i),c=i>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return g(an,{unit:"day"},(u,h)=>g(G,null,e.cells.map((f,p)=>g(pl,{ref:this.rowRefs.createRef(p),key:f.length?f[0].date.toISOString():p,showDayNumbers:i>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:r[p],eventSelection:e.eventSelection,bgEventSegs:s[p].filter(Df),fgEventSegs:l[p],dateSelectionSegs:a[p],eventDrag:o[p],eventResize:d[p],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Zt(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Zt(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:i,rowPositions:r}=this,s=i.leftToIndex(e),l=r.topToIndex(n);if(l!=null&&s!=null){let a=this.props.cells[l][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(l,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(l,s),rect:{left:i.lefts[s],right:i.rights[s],top:r.tops[l],bottom:r.bottoms[l]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let i=this.props.cells[e][n].date,r=X(i,1);return{start:i,end:r}}}function Df(t){return t.eventRange.def.allDay}class _f extends ge{constructor(){super(...arguments),this.elRef=ue(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:i,expandRows:r}=e,s=i===!0||n===!0;s&&!r&&(s=!1,n=null,i=null);let l=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return g("div",{ref:this.elRef,className:l.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},g("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,g("tbody",{role:"presentation"},g(ml,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:i,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Ef(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),i=n.closest(".fc-scroller"),r=e.getBoundingClientRect().top-n.getBoundingClientRect().top;i.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}function Ef(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Pn(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${bt(e.currentDate)}"]`)),n}class vl extends Kc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class wf extends ge{constructor(){super(...arguments),this.slicer=new vl,this.tableRef=ue()}render(){let{props:e,context:n}=this;return g(_f,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class yl extends Ar{buildRenderRange(e,n,i){let r=super.buildRenderRange(e,n,i),{props:s}=this;return bl({currentRange:r,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function bl(t){let{dateEnv:e,currentRange:n}=t,{start:i,end:r}=n,s;if(t.snapToWeek&&(i=e.startOfWeek(i),s=e.startOfWeek(r),s.valueOf()!==r.valueOf()&&(r=Qi(s,1))),t.fixedWeekCount){let l=e.startOfWeek(e.startOfMonth(X(n.end,-1))),a=Math.ceil(Lo(l,r));r=Qi(r,6-a)}return{start:i,end:r}}class Af extends ge{constructor(){super(...arguments),this.headerElRef=ue()}renderSimpleLayout(e,n){let{props:i,context:r}=this,s=[],l=ps(r.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),g(Yt,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},g(Xr,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,i,r){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:l,context:a}=this,o=!l.forPrint&&ps(a.options),d=!l.forPrint&&mu(a.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:o,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),d&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:pu}]}),g(Yt,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},g(s,{liquid:!l.isHeightAuto&&!l.forPrint,forPrint:l.forPrint,collapsibleWidth:l.forPrint,colGroups:[{cols:[{span:i,minWidth:r}]}],sections:c}))}}class Sf extends Af{constructor(){super(...arguments),this.buildDayTableModel=x(Dl),this.headerRef=ue(),this.tableRef=ue()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:i}=this,r=this.buildDayTableModel(i.dateProfile,n),s=e.dayHeaders&&g($r,{ref:this.headerRef,dateProfile:i.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),l=a=>g(wf,{ref:this.tableRef,dateProfile:i.dateProfile,dayTableModel:r,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:i.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,l,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,l)}}function Dl(t,e){let n=new Xc(t.renderRange,e);return new Jc(n,/year|month|week/.test(t.currentRangeUnit))}var Cf=pe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Sf,dateProfileGeneratorClass:yl},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});vi.touchMouseIgnoreWait=500;let zn=0,Xt=0,$n=!1;class _l{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&Tf(n)&&this.tryStart(n)){let i=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let i=this.createEventFromMouse(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let i=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",i),this.initScrollWatch(i);let r=n.target;this.shouldIgnoreMove||r.addEventListener("touchmove",this.handleTouchMove),r.addEventListener("touchend",this.handleTouchEnd),r.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let i=this.createEventFromTouch(n);this.recordCoords(i),this.emitter.trigger("pointermove",i)},this.handleTouchEnd=n=>{if(this.isDragging){let i=n.target;i.removeEventListener("touchmove",this.handleTouchMove),i.removeEventListener("touchend",this.handleTouchEnd),i.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,Rf()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let i=window.pageXOffset-this.prevScrollX+this.prevPageX,r=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:i,pageY:r,deltaX:i-this.origPageX,deltaY:r-this.origPageY})}},this.containerEl=e,this.emitter=new rn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),kf()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Mf()}tryStart(e){let n=this.querySubjectEl(e),i=e.target;return n&&(!this.handleSelector||ne(i,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){$n=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?ne(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return zn||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&($n=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let i=0,r=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(i=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:i,deltaY:r}}createEventFromTouch(e,n){let i=e.touches,r,s,l=0,a=0;return i&&i.length?(r=i[0].pageX,s=i[0].pageY):(r=e.pageX,s=e.pageY),n?(this.origPageX=r,this.origPageY=s):(l=r-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:s,deltaX:l,deltaY:a}}}function Tf(t){return t.button===0&&!t.ctrlKey}function Rf(){zn+=1,setTimeout(()=>{zn-=1},vi.touchMouseIgnoreWait)}function kf(){Xt+=1,Xt===1&&window.addEventListener("touchmove",El,{passive:!1})}function Mf(){Xt-=1,Xt||window.removeEventListener("touchmove",El,{passive:!1})}function El(t){$n&&t.preventDefault()}class xf{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,i){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=i-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let i=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(i,this.revertDuration):setTimeout(i,0)}doRevertAnimation(e,n){let i=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();i.style.transition="top "+n+"ms,left "+n+"ms",lt(i,{left:r.left,top:r.top}),Do(i,()=>{i.style.transition="",e()})}cleanup(){this.mirrorEl&&(Zn(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&<(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.classList.add("fc-event-dragging"),lt(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class wl extends mi{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Al extends wl{constructor(e,n){super(new Fc(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Wc(this.scrollController.el)}}class If extends wl{constructor(e){super(new Uc,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Ss=typeof performance=="function"?performance.now:Date.now;class Of{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=Ss();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,i){this.isEnabled&&(this.scrollCaches=this.buildCaches(i),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let i=e-window.pageXOffset,r=n-window.pageYOffset,s=this.pointerScreenY===null?0:r-this.pointerScreenY,l=this.pointerScreenX===null?0:i-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),l<0?this.everMovedLeft=!0:l>0&&(this.everMovedRight=!0),this.pointerScreenX=i,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ss()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:i}=e,{edgeThreshold:r}=this,s=r-e.distance,l=s*s/(r*r)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":i.setScrollLeft(i.getScrollLeft()+l*a);break;case"top":a=-1;case"bottom":i.setScrollTop(i.getScrollTop()+l*a);break}}computeBestEdge(e,n){let{edgeThreshold:i}=this,r=null,s=this.scrollCaches||[];for(let l of s){let a=l.clientRect,o=e-a.left,d=a.right-e,c=n-a.top,u=a.bottom-n;o>=0&&d>=0&&c>=0&&u>=0&&(c<=i&&this.everMovedUp&&l.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:l,name:"top",distance:c}),u<=i&&this.everMovedDown&&l.canScrollDown()&&(!r||r.distance>u)&&(r={scrollCache:l,name:"bottom",distance:u}),o<=i&&this.everMovedLeft&&l.canScrollLeft()&&(!r||r.distance>o)&&(r={scrollCache:l,name:"left",distance:o}),d<=i&&this.everMovedRight&&l.canScrollRight()&&(!r||r.distance>d)&&(r={scrollCache:l,name:"right",distance:d}))}return r}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new If(!1):new Al(n,!1))}queryScrollEls(e){let n=[];for(let i of this.scrollQuery)typeof i=="object"?n.push(i):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(i)));return n}}class Et extends $c{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=r=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,_o(document.body),wo(document.body),r.isTouch||r.origEvent.preventDefault(),this.emitter.trigger("pointerdown",r),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(r.subjectEl,r.pageX,r.pageY),this.startDelay(r),this.minDistance||this.handleDistanceSurpassed(r)))},this.onPointerMove=r=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",r),!this.isDistanceSurpassed){let s=this.minDistance,l,{deltaX:a,deltaY:o}=r;l=a*a+o*o,l>=s*s&&this.handleDistanceSurpassed(r)}this.isDragging&&(r.origEvent.type!=="scroll"&&(this.mirror.handleMove(r.pageX,r.pageY),this.autoScroller.handleMove(r.pageX,r.pageY)),this.emitter.trigger("dragmove",r))}},this.onPointerUp=r=>{this.isInteracting&&(this.isInteracting=!1,Eo(document.body),Ao(document.body),this.emitter.trigger("pointerup",r),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(r)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let i=this.pointer=new _l(e);i.emitter.on("pointerdown",this.onPointerDown),i.emitter.on("pointermove",this.onPointerMove),i.emitter.on("pointerup",this.onPointerUp),n&&(i.selector=n),this.mirror=new xf,this.autoScroller=new Of}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Nf{constructor(e){this.origRect=pi(e),this.scrollCaches=jr(e).map(n=>new Al(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let i={left:e,top:n};for(let r of this.scrollCaches)if(!Hf(r.getEventTarget())&&!kc(i,r.clientRect))return!1;return!0}}function Hf(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class dn{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=i=>{let{dragging:r}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(i),this.initialHit||!this.requireInitial?(r.setIgnoreMove(!1),this.emitter.trigger("pointerdown",i)):r.setIgnoreMove(!0)},this.handleDragStart=i=>{this.emitter.trigger("dragstart",i),this.handleMove(i,!0)},this.handleDragMove=i=>{this.emitter.trigger("dragmove",i),this.handleMove(i)},this.handlePointerUp=i=>{this.releaseHits(),this.emitter.trigger("pointerup",i)},this.handleDragEnd=i=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,i),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",i)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new rn}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},i=n,r=e.subjectEl,s;r instanceof HTMLElement&&(s=pi(r),i=Mc(i,s));let l=this.initialHit=this.queryHitForOffset(i.left,i.top);if(l){if(this.useSubjectCenter&&s){let a=Br(s,l.rect);a&&(i=xc(a))}this.coordAdjust=Ic(i,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let i=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!cn(this.movingHit,i))&&(this.movingHit=i,this.emitter.trigger("hitupdate",i,!1,e))}prepareHits(){this.offsetTrackers=Be(this.droppableStore,e=>(e.component.prepareHits(),new Nf(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:i,offsetTrackers:r}=this,s=null;for(let l in i){let a=i[l].component,o=r[l];if(o&&o.isWithinClipping(e,n)){let d=o.computeLeft(),c=o.computeTop(),u=e-d,h=n-c,{origRect:f}=o,p=f.right-f.left,b=f.bottom-f.top;if(u>=0&&u=0&&hs.layer)&&(y.componentId=l,y.context=a.context,y.rect.left+=d,y.rect.right+=d,y.rect.top+=c,y.rect.bottom+=c,s=y)}}}return s}}function cn(t,e){return!t&&!e?!0:!!t!=!!e?!1:bc(t.dateSpan,e.dateSpan)}function Sl(t,e){let n={};for(let i of e.pluginHooks.datePointTransforms)Object.assign(n,i(t,e));return Object.assign(n,Pf(t,e.dateEnv)),n}function Pf(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class Vf extends et{constructor(e){super(e),this.handlePointerDown=i=>{let{dragging:r}=this,s=i.origEvent.target;r.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=i=>{let{component:r}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:l,finalHit:a}=this.hitDragging;if(l&&a&&cn(l,a)){let{context:o}=r,d=Object.assign(Object.assign({},Sl(l.dateSpan,o)),{dayEl:l.dayEl,jsEvent:i.origEvent,view:o.viewApi||o.calendarApi.view});o.emitter.trigger("dateClick",d)}}},this.dragging=new Et(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new dn(this.dragging,fi(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class Lf extends et{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=l=>{let{component:a,dragging:o}=this,{options:d}=a.context,c=d.selectable&&a.isValidDateDownEl(l.origEvent.target);o.setIgnoreMove(!c),o.delay=l.isTouch?Bf(a):null},this.handleDragStart=l=>{this.component.context.calendarApi.unselect(l)},this.handleHitUpdate=(l,a)=>{let{context:o}=this.component,d=null,c=!1;if(l){let u=this.hitDragging.initialHit;l.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,l)||(d=Wf(u,l,o.pluginHooks.dateSelectionTransformers)),(!d||!eu(d,l.dateProfile,o))&&(c=!0,d=null)}d?o.dispatch({type:"SELECT_DATES",selection:d}):a||o.dispatch({type:"UNSELECT_DATES"}),c?Xn():Jn(),a||(this.dragSelection=d)},this.handlePointerUp=l=>{this.dragSelection&&(Ir(this.dragSelection,l,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:i}=n.context,r=this.dragging=new Et(e.el);r.touchScrollAllowed=!1,r.minDistance=i.selectMinDistance||0,r.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new dn(this.dragging,fi(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Bf(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function Wf(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=[i.range.start,i.range.end,r.range.start,r.range.end];s.sort(ko);let l={};for(let a of n){let o=a(t,e);if(o===!1)return null;o&&Object.assign(l,o)}return l.range={start:s[0],end:s[3]},l.allDay=i.allDay,l}class wt extends et{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let a=l.origEvent.target,{component:o,dragging:d}=this,{mirror:c}=d,{options:u}=o.context,h=o.context;this.subjectEl=l.subjectEl;let f=this.subjectSeg=Je(l.subjectEl),b=(this.eventRange=f.eventRange).instance.instanceId;this.relevantEvents=oi(h.getCurrentData().eventStore,b),d.minDistance=l.isTouch?0:u.eventDragMinDistance,d.delay=l.isTouch&&b!==o.props.eventSelection?Ff(o):null,u.fixedMirrorParent?c.parentNode=u.fixedMirrorParent:c.parentNode=ne(a,".fc"),c.revertDuration=u.dragRevertDuration;let y=o.isValidSegDownEl(a)&&!ne(a,".fc-event-resizer");d.setIgnoreMove(!y),this.isDragging=y&&l.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=l=>{let a=this.component.context,o=this.eventRange,d=o.instance.instanceId;l.isTouch?d!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:d}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(l),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new F(a,o.def,o.instance),jsEvent:l.origEvent,view:a.viewApi}))},this.handleHitUpdate=(l,a)=>{if(!this.isDragging)return;let o=this.relevantEvents,d=this.hitDragging.initialHit,c=this.component.context,u=null,h=null,f=null,p=!1,b={affectedEvents:o,mutatedEvents:ce(),isEvent:!0};if(l){u=l.context;let y=u.options;c===u||y.editable&&y.droppable?(h=jf(d,l,u.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(f=ui(o,u.getCurrentData().eventUiBases,h,u),b.mutatedEvents=f,Yr(b,l.dateProfile,u)||(p=!0,h=null,f=null,b.mutatedEvents=ce()))):u=null}this.displayDrag(u,b),p?Xn():Jn(),a||(c===u&&cn(d,l)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!l||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=u,this.validMutation=h,this.mutatedRelevantEvents=f)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=l=>{if(this.isDragging){let a=this.component.context,o=a.viewApi,{receivingContext:d,validMutation:c}=this,u=this.eventRange.def,h=this.eventRange.instance,f=new F(a,u,h),p=this.relevantEvents,b=this.mutatedRelevantEvents,{finalHit:y}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:f,jsEvent:l.origEvent,view:o}),c){if(d===a){let v=new F(a,b.defs[u.defId],h?b.instances[h.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:b});let w={oldEvent:f,event:v,relatedEvents:Ne(b,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}},S={};for(let C of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(S,C(c,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},w),S),{el:l.subjectEl,delta:c.datesDelta,jsEvent:l.origEvent,view:o})),a.emitter.trigger("eventChange",w)}else if(d){let v={event:f,relatedEvents:Ne(p,a,h),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:p})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},v),{draggedEl:l.subjectEl,view:o})),a.dispatch({type:"REMOVE_EVENTS",eventStore:p}),a.emitter.trigger("eventRemove",v);let w=b.defs[u.defId],S=b.instances[h.instanceId],C=new F(d,w,S);d.dispatch({type:"MERGE_EVENTS",eventStore:b});let V={event:C,relatedEvents:Ne(b,d,S),revert(){d.dispatch({type:"REMOVE_EVENTS",eventStore:b})}};d.emitter.trigger("eventAdd",V),l.isTouch&&d.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),d.emitter.trigger("drop",Object.assign(Object.assign({},Sl(y.dateSpan,d)),{draggedEl:l.subjectEl,jsEvent:l.origEvent,view:y.context.viewApi})),d.emitter.trigger("eventReceive",Object.assign(Object.assign({},V),{draggedEl:l.subjectEl,view:y.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:i}=n.context,r=this.dragging=new Et(e.el);r.pointer.selector=wt.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new dn(this.dragging,Fn);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let i=this.component.context,r=this.receivingContext;r&&r!==e&&(r===i?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:ce(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}wt.SELECTOR=".fc-event-draggable, .fc-event-resizable";function jf(t,e,n){let i=t.dateSpan,r=e.dateSpan,s=i.range.start,l=r.range.start,a={};i.allDay!==r.allDay&&(a.allDay=r.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,r.allDay&&(s=B(s)));let o=$e(s,l,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);o.milliseconds&&(a.allDay=!1);let d={datesDelta:o,standardProps:a};for(let c of n)c(d,t,e);return d}function Ff(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Uf extends et{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:l}=this,a=this.querySegEl(s),o=Je(a),d=this.eventRange=o.eventRange;this.dragging.minDistance=l.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==d.instance.instanceId)},this.handleDragStart=s=>{let{context:l}=this.component,a=this.eventRange;this.relevantEvents=oi(l.getCurrentData().eventStore,this.eventRange.instance.instanceId);let o=this.querySegEl(s);this.draggingSegEl=o,this.draggingSeg=Je(o),l.calendarApi.unselect(),l.emitter.trigger("eventResizeStart",{el:o,event:new F(l,a.def,a.instance),jsEvent:s.origEvent,view:l.viewApi})},this.handleHitUpdate=(s,l,a)=>{let{context:o}=this.component,d=this.relevantEvents,c=this.hitDragging.initialHit,u=this.eventRange.instance,h=null,f=null,p=!1,b={affectedEvents:d,mutatedEvents:ce(),isEvent:!0};s&&(s.componentId===c.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(c,s)||(h=zf(c,s,a.subjectEl.classList.contains("fc-event-resizer-start"),u.range))),h&&(f=ui(d,o.getCurrentData().eventUiBases,h,o),b.mutatedEvents=f,Yr(b,s.dateProfile,o)||(p=!0,h=null,f=null,b.mutatedEvents=null)),f?o.dispatch({type:"SET_EVENT_RESIZE",state:b}):o.dispatch({type:"UNSET_EVENT_RESIZE"}),p?Xn():Jn(),l||(h&&cn(c,s)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=s=>{let{context:l}=this.component,a=this.eventRange.def,o=this.eventRange.instance,d=new F(l,a,o),c=this.relevantEvents,u=this.mutatedRelevantEvents;if(l.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:d,jsEvent:s.origEvent,view:l.viewApi}),this.validMutation){let h=new F(l,u.defs[a.defId],o?u.instances[o.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:u});let f={oldEvent:d,event:h,relatedEvents:Ne(u,l,o),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:c})}};l.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||O(0),endDelta:this.validMutation.endDelta||O(0),jsEvent:s.origEvent,view:l.viewApi})),l.emitter.trigger("eventChange",f)}else l.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,i=this.dragging=new Et(e.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=n.context.options.dragScroll;let r=this.hitDragging=new dn(this.dragging,fi(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return ne(e.subjectEl,".fc-event")}}function zf(t,e,n,i){let r=t.context.dateEnv,s=t.dateSpan.range.start,l=e.dateSpan.range.start,a=$e(s,l,r,t.largeUnit);if(n){if(r.add(i.start,a)i.start)return{endDelta:a};return null}class $f{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=i=>{i.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=i=>{let r=this.context.options.unselectCancel,s=hr(i.origEvent);this.matchesCancel=!!ne(s,r),this.matchesEvent=!!ne(s,wt.SELECTOR)},this.onDocumentPointerUp=i=>{let{context:r}=this,{documentPointer:s}=this,l=r.getCurrentData();if(!s.wasTouchScroll){if(l.dateSelection&&!this.isRecentPointerDateSelect){let a=r.options.unselectAuto;a&&(!a||!this.matchesCancel)&&r.calendarApi.unselect(i)}l.eventSelection&&!this.matchesEvent&&r.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new _l(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Yf={fixedMirrorParent:m},Gf={dateClick:m,eventDragStart:m,eventDragStop:m,eventDrop:m,eventResizeStart:m,eventResizeStop:m,eventResize:m,drop:m,eventReceive:m,eventLeave:m};vi.dataAttrPrefix="";var Cs=pe({name:"@fullcalendar/interaction",componentInteractions:[Vf,Lf,wt,Uf],calendarInteractions:[$f],elementDraggingImpl:Et,optionRefiners:Yf,listenerRefiners:Gf}),qf=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';en(qf);class Qf extends W{constructor(){super(...arguments),this.state={textId:ye()}}render(){let{theme:e,dateEnv:n,options:i,viewApi:r}=this.context,{cellId:s,dayDate:l,todayRange:a}=this.props,{textId:o}=this.state,d=gi(l,a),c=i.listDayFormat?n.format(l,i.listDayFormat):"",u=i.listDaySideFormat?n.format(l,i.listDaySideFormat):"",h=Object.assign({date:n.toDate(l),view:r,textId:o,text:c,sideText:u,navLinkAttrs:mt(this.context,l),sideNavLinkAttrs:mt(this.context,l,"day",!1)},d);return g(oe,{elTag:"tr",elClasses:["fc-list-day",...ln(d,e)],elAttrs:{"data-date":bt(l)},renderProps:h,generatorName:"dayHeaderContent",customGenerator:i.dayHeaderContent,defaultGenerator:Zf,classNameGenerator:i.dayHeaderClassNames,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},f=>g("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":o},g(f,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function Zf(t){return g(G,null,t.text&&g("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&g("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const Xf=q({hour:"numeric",minute:"2-digit",meridiem:"short"});class Jf extends W{render(){let{props:e,context:n}=this,{options:i}=n,{seg:r,timeHeaderId:s,eventHeaderId:l,dateHeaderId:a}=e,o=i.eventTimeFormat||Xf;return g(on,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>Kf(r,n),seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(d,c)=>g(G,null,eg(r,o,n,s,a),g("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},g("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),g(d,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${l} ${a}`}})))}}function Kf(t,e){let n=hi(t,e);return g("a",Object.assign({},n),t.eventRange.def.title)}function eg(t,e,n,i,r){let{options:s}=n;if(s.displayEventTime!==!1){let l=t.eventRange.def,a=t.eventRange.instance,o=!1,d;if(l.allDay?o=!0:Nd(t.eventRange.range)?t.isStart?d=dt(t,e,n,null,null,a.range.start,t.end):t.isEnd?d=dt(t,e,n,null,null,t.start,a.range.end):o=!0:d=dt(t,e,n),o){let c={text:n.options.allDayText,view:n.viewApi};return g(oe,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${i} ${r}`},renderProps:c,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:tg,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return g("td",{className:"fc-list-event-time"},d)}return null}function tg(t){return t.text}class ng extends ge{constructor(){super(...arguments),this.computeDateVars=x(sg),this.eventStoreToSegs=x(this._eventStoreToSegs),this.state={timeHeaderId:ye(),eventHeaderId:ye(),dateHeaderIdRoot:ye()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:i,dayRanges:r}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return g(Yt,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},g(Qr,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,i):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,i={text:e.noEventsText,view:n};return g(oe,{elTag:"div",elClasses:["fc-list-empty"],renderProps:i,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:ig,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},r=>g(r,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:i,options:r}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:a}=this.state,o=rg(e);return g(an,{unit:"day"},(d,c)=>{let u=[];for(let h=0;h{e&&this.updateSize()}}render(){const{context:e,props:n,state:i}=this,{options:r}=e,{clientWidth:s,clientHeight:l}=i,a=i.monthHPadding||0,o=Math.min(s!=null?Math.floor(s/(r.multiMonthMinWidth+a)):1,r.multiMonthMaxColumns)||1,d=100/o+"%",c=s==null?null:s/o-a,u=s!=null&&o===1,h=this.splitDateProfileByMonth(e.dateProfileGenerator,n.dateProfile,e.dateEnv,u?!1:r.fixedWeekCount,r.showNonCurrentDates),f=this.buildMonthFormat(r.multiMonthTitleFormat,h),p=["fc-multimonth",u?"fc-multimonth-singlecol":"fc-multimonth-multicol",c!=null&&c<400?"fc-multimonth-compact":""];return g(Yt,{elRef:this.scrollElRef,elClasses:p,viewSpec:e.viewSpec},h.map((b,y)=>{const v=Pn(b.currentRange.start);return g(og,Object.assign({},n,{key:v,isoDateStr:v,elRef:y===0?this.firstMonthElRef:void 0,titleFormat:f,dateProfile:b,width:d,tableWidth:c,clientWidth:s,clientHeight:l}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(e){he(e,this.props)||this.handleSizing(!1),e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const e=this.scrollElRef.current,n=this.firstMonthElRef.current;e&&this.setState({clientWidth:e.clientWidth,clientHeight:e.clientHeight}),n&&e&&this.state.monthHPadding==null&&this.setState({monthHPadding:e.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:e}=this.props.dateProfile,n=this.scrollElRef.current,i=n.querySelector(`[data-date="${Pn(e)}"]`);n.scrollTop=i.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const cg=O(1,"month");function ug(t,e,n,i,r){const{start:s,end:l}=e.currentRange;let a=s;const o=[];for(;a.valueOf(){console.log(i.date)}});function n(){de.get("api/general_vacation/generalvacation/").then(i=>{for(let r in i.data)r=="План-график"&&i.data[r].map(s=>{e.events.push({description:"description for All Day Event",title:s.name,start:s.start_work_period,end:s.end_work_period})})})}return yt(()=>{n()}),{calendarOptions:e}}};function bg(t,e,n,i,r,s){const l=ee("full-calendar");return E(),j(l,{options:i.calendarOptions},null,8,["options"])}const Dg=Re(yg,[["render",bg]]);const Rs=Vs(),_g={components:{myHelper:Jl},setup(){const t=P([]);Kl(()=>{t.value=[]});const e=P([]),n=ut.slice(0,-1),i=P(""),r=P(0),s=P(1),l=P(2),a=ea();let o=`api/navigation/news/?name=${a.path}&page=${s.value-1}&selected=${l.value}`;a.path=="/news"&&"id"in a.query&&(o=`api/navigation/news/?name=${a.path}&page=${s.value-1}&selected=${l.value}&id=${a.query.id}`),st(o,e);const d=(v,w)=>{de.post("api/navigation/news/",{news:v,scores:w}).then(S=>{e.value.result[e.value.result.findIndex(C=>C.id==v)].scores=S.data})},c=()=>{de.post("api/navigation/news/",{news:r.value,text:i.value}).then(v=>{e.value.result[e.value.result.findIndex(w=>w.id==v.data.news)].comment=v.data.comment}),i.value=""},u=(v,w)=>{de.post("api/navigation/news/",{delid:v,news:w}).then(S=>{e.value.result[e.value.result.findIndex(C=>C.id==S.data.news)].comment=S.data.comment})},h=()=>{st(`api/navigation/news/?name=${a.path}&page=${s.value-1}&selected=${l.value}`,e)};return bi(()=>Rs.cod2user,(v,w)=>{v&&st(`api/navigation/news/?name=${a.path}&page=${s.value-1}&selected=${l.value}`,e)},{deep:!0}),bi(()=>l,(v,w)=>{v&&st(`api/navigation/news/?name=${a.path}&page=${s.value-1}&selected=${v.value}`,e)},{deep:!0}),{newss:e,burl:n,limitText:v=>{const w=v.split(" ").slice(0,25);return`${v.split(" ").slice(0,25).join(" ")} ${w.length<25?"":"..."}`},toggleIncrementLike:d,accountStore:Rs,dateformat:v=>Ea(new Date(v),"dd.MM.yyyy HH:mm"),splitname:v=>v.familyname+" "+v.name[0]+"."+v.parentname[0]+".",textcomment:i,openComent:v=>{r.value=v},addComment:c,idnews:r,deletComment:u,pagelistNews:h,divs:t,page:s,selecnews:l,route:a}}},Cl=t=>(ta("data-v-0f8c630e"),t=t(),na(),t),Eg={class:"flex-column h-100"},wg={class:"justify-self-start mt-1"},Ag={class:"text-caption me-2"},Sg={class:"justify-self-end"},Cg={class:"subheading me-2"},Tg=Cl(()=>H("span",{class:"me-1"},"·",-1)),Rg={class:"subheading me-2"},kg=Cl(()=>H("span",{class:"me-1"},"·",-1)),Mg={class:"subheading"},xg={class:"pt-1 pl-1 pb-2"};function Ig(t,e,n,i,r,s){return E(),A("div",Eg,[(E(!0),A(Q,null,Z(i.newss.result,(l,a)=>(E(),j(K,{ref_for:!0,ref:a,class:J(["mx-auto px-3 pt-3",a>0?"mt-1":""]),key:a},{default:D(()=>[_(vt,{class:"py-1"},{default:D(()=>[Y(I(l.title),1)]),_:2},1024),_(Os,{src:`${i.burl}${l.link}`,height:"175px",cover:"",width:"92%",class:"mx-auto"},null,8,["src"]),_(Aa,{class:"w-100"},{append:D(()=>[H("div",Sg,[_(me,{size:"x-small",class:"me-1",icon:l.scores.filter(o=>o.user==i.accountStore.user.login&&o.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",onClick:o=>i.toggleIncrementLike(l.id,!0)},null,8,["icon","onClick"]),H("span",Cg,I(l.scores.filter(o=>o.score==!0).length),1),Tg,_(me,{size:"x-small",class:"me-1",icon:l.scores.filter(o=>o.user==i.accountStore.user.login&&o.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",onClick:o=>i.toggleIncrementLike(l.id,!1)},null,8,["icon","onClick"]),H("span",Rg,I(l.scores.filter(o=>o.score==!1).length),1),kg,_(me,{size:"x-small",class:"me-1",icon:"mdi-message-text-outline"}),H("span",Mg,I(l.comment.length),1)])]),default:D(()=>[H("div",wg,[_(me,{size:"x-small",class:"me-1",icon:"mdi-account"}),H("span",Ag,I(i.splitname(l.author)),1)])]),_:2},1024),_(Gn),_(Ye,{class:"pb-0"},{default:D(()=>[Y(I(i.limitText(l.text)),1)]),_:2},1024),H("div",xg,[_(Jt,{color:"more_details_btn",variant:"text",to:`/news?id=${l.id}`,size:"small","append-icon":"mdi-step-forward-2"},{default:D(()=>[Y(" Подробнее ")]),_:2},1032,["to"])])]),_:2},1032,["class"]))),128))])}const Og=Re(_g,[["render",Ig],["__scopeId","data-v-0f8c630e"]]),Ng={components:{CardUsers:js},props:{idpos:{type:Number,default:""},namepos:{type:Text,default:""}},setup(t,{emit:e}){const n=P(!1),i=P({}),r=P(""),s=P(""),l=()=>{e("searchClose")};yt(()=>{de.get(`api/general_vacation/dailyload/?id=${t.idpos}`).then(d=>{console.log(d.data),i.value=d.data.daily})});const a=async d=>{n.value=!0,r.value=d},o=Mn({get(){let d={};return Object.keys(i.value).map(c=>{let u=i.value[c].filter(h=>h.fio.toLowerCase().includes(s.value));u.length>0&&(d[c]=u)}),d}});return{onSubmit:l,checkremote:Ls,searchname:s,spravURL:Bs,t_dailyRound:i,result:o,menuGetUserDialog:n,getcard:a,iduser:r}}};function Hg(t,e,n,i,r,s){const l=ee("Card-users");return E(),A("div",null,[_(K,{class:"bg-white pa-3 px-0",width:"550",height:"600"},{default:D(()=>[_(K,{class:"mx-auto overflow-auto mx-0 px-3",width:"550",height:"600",flat:""},{default:D(()=>[_(vt,{class:"fixed-bar bg-white"},{default:D(()=>[_(ie,{class:"bggrad"},{default:D(()=>[_(te,{class:"text-center text-black_and_white"},{default:D(()=>[Y(I(n.namepos),1)]),_:1})]),_:1}),_(ie,null,{default:D(()=>[_(te,{class:"pa-0 mb-3"},{default:D(()=>[_(Sa,{modelValue:i.searchname,"onUpdate:modelValue":e[0]||(e[0]=a=>i.searchname=a),clearable:"","prepend-inner-icon":"mdi-magnify","hide-details":"",class:"mx-0",label:"Поиск",rows:"1","no-resize":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),(E(!0),A(Q,null,Z(i.result,(a,o)=>(E(),A("div",{key:o,class:"px-3"},[_(Ca,{class:"py-0"},{default:D(()=>[_(Ta,null,{default:D(()=>[Y(I(o),1)]),_:2},1024)]),_:2},1024),(E(!0),A(Q,null,Z(a,d=>(E(),j(K,{key:d,class:"bg-transparent",density:"compact","prepend-avatar":i.checkremote(`${i.spravURL}${d.login}.jpg`),title:d.fio,subtitle:d.post,variant:"text",onClick:c=>i.getcard(d.login)},null,8,["prepend-avatar","title","subtitle","onClick"]))),128))]))),128))]),_:1}),_(Gn),_(ia,{class:"align-self-end pb-0"},{default:D(()=>[_(Jt,{color:"more_details_btn",variant:"text",onClick:i.onSubmit},{default:D(()=>[Y(" Закрыть ")]),_:1},8,["onClick"])]),_:1})]),_:1}),_(Us,{modelValue:i.menuGetUserDialog,"onUpdate:modelValue":e[2]||(e[2]=a=>i.menuGetUserDialog=a),persistent:"",width:"800"},{default:D(()=>[_(l,{menuGetUserDialog:i.menuGetUserDialog,loging:i.iduser,onMenusClose:e[1]||(e[1]=a=>i.menuGetUserDialog=!1)},null,8,["menuGetUserDialog","loging"])]),_:1},8,["modelValue"])])}const Pg=Re(Ng,[["render",Hg]]);const Vg=Ns({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Ia(),...wa()},"VSwitch"),Lg=Yn()({name:"VSwitch",inheritAttrs:!1,props:Vg(),emits:{"update:focused":t=>!0,"update:modelValue":()=>!0,"update:indeterminate":t=>!0},setup(t,e){let{attrs:n,slots:i}=e;const r=Di(t,"indeterminate"),s=Di(t,"modelValue"),{loaderClasses:l}=sa(t),{isFocused:a,focus:o,blur:d}=Oa(t),c=Mn(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),u=ra(),h=Mn(()=>t.id||`switch-${u}`);function f(){r.value&&(r.value=!1)}return Hs(()=>{const[p,b]=la(n),[y,v]=Ai.filterProps(t),[w,S]=wi.filterProps(t),C=P();function V(U){var L,M;U.stopPropagation(),U.preventDefault(),(M=(L=C.value)==null?void 0:L.input)==null||M.click()}return _(Ai,Ze({class:["v-switch",{"v-switch--inset":t.inset},{"v-switch--indeterminate":r.value},l.value,t.class],style:t.style},p,y,{id:h.value,focused:a.value}),{...i,default:U=>{let{id:L,messagesId:M,isDisabled:De,isReadonly:tt,isValid:kl}=U;return _(wi,Ze({ref:C},w,{modelValue:s.value,"onUpdate:modelValue":[un=>s.value=un,f],id:L.value,"aria-describedby":M.value,type:"checkbox","aria-checked":r.value?"mixed":void 0,disabled:De.value,readonly:tt.value,onFocus:o,onBlur:d},b),{...i,default:()=>_("div",{class:"v-switch__track",onClick:V},null),input:un=>{let{textColorClasses:Ml,textColorStyles:xl}=un;return _("div",{class:["v-switch__thumb",Ml.value],style:xl.value},[t.loading&&_(aa,{name:"v-switch",active:!0,color:kl.value===!1?void 0:c.value},{default:hn=>i.loader?i.loader(hn):_(Ra,{active:hn.isActive,color:hn.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})}),{}}}),Bg={components:{CardUsers:js,DialogSearch:Pg},setup(){const t=P([]),e=P(""),n=P(""),i=P(""),r=P(!1),s=P({}),l=P([]),a=P({}),o=P(""),d=P(!1),c=P(""),u=P({}),h=P(!1),f=async S=>{d.value=!0,c.value=S},p=(S,C)=>{n.value=S,i.value=C,r.value=!r.value,de.get(`api/general_vacation/dailyload/?id=${S}`).then(V=>{s.value=V.data,u.value=JSON.parse(JSON.stringify(V.data.daily))})},b=ut.slice(0,-1);function y(){de.get("api/feedback/feedbackdata/").then(S=>{t.value=S.data.results})}const v=S=>{const C=new FormData;C.append("dailyfiles",l.value[0]),de.post(`api/general_vacation/dailyroundup/?excel=${S}`,C).then(V=>{a.value=V.data,w()}),l.value=""};function w(){de.get("api/general_vacation/dailyload/").then(S=>{e.value=S.data.daily})}return oa(),yt(()=>{w(),y()}),{t_daily:e,detailRound:p,dialogDetailRound:r,t_dailyRound:s,dailyfiles:l,onPickFile:v,info:a,checkremote:Ls,searchname:o,spravURL:Bs,menuGetUserDialog:d,iduser:c,getcard:f,result:u,idpos:n,namepos:i,changeData:h,baseURL:ut,burl:b}}},Wg={class:"d-flex h-100"},jg={class:"text-center"};function Fg(t,e,n,i,r,s){const l=ee("vue3-autocounter"),a=ee("dialog-search");return E(),A("div",Wg,[i.t_daily.length>0?(E(),j(K,{key:0,class:"h-100 w-100 d-flex flex-column"},{default:D(()=>[(E(!0),A(Q,null,Z(i.t_daily,o=>da((E(),j(ie,{key:o},{default:D(()=>[_(Gn),_(te,null,{default:D(()=>[_(K,{class:"ma-2 d-flex flex-column",height:"100",elevation:"0"},{default:D(()=>[_(K,{class:"h-100 text-center text-black_grey bg-black_and_white"},{default:D(()=>[_(vt,{class:"statstyle py-0 text-overline font-weight-bold bg-black_and_white"},{default:D(()=>[Y(I(o.position__name),1)]),_:2},1024),_(Ye,{onClick:d=>i.detailRound(o.position,o.position__name),class:"numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white"},{default:D(()=>[_(l,{ref_for:!0,ref:"counter",startAmount:0,endAmount:Number(o.user__count),duration:2},null,8,["endAmount"])]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)),[[ca,o.position!=6]])),128))]),_:1})):(E(),j(K,{key:1,class:"h-100 w-100 d-flex justify-center flex-column",image:`${i.burl}/media/newsimage/2023/09/28/sea.jpg`},{default:D(()=>[_(ie,{class:"flex-grow-0"},{default:D(()=>[_(te,{class:"py-0"},{default:D(()=>[_(Lg,{modelValue:i.changeData,"onUpdate:modelValue":e[0]||(e[0]=o=>i.changeData=o),class:"pl-3 d-flex justify-end",color:"teal",onClick:e[1]||(e[1]=o=>i.changeData=!i.changeData)},null,8,["modelValue"])]),_:1})]),_:1}),_(ie,null,{default:D(()=>[i.changeData?(E(),j(Ye,{key:0,class:"d-flex flex-column align-self-center"},{default:D(()=>[_(Ma,{accept:".xlsx",modelValue:i.dailyfiles,"onUpdate:modelValue":e[2]||(e[2]=o=>i.dailyfiles=o),variant:"underlined",density:"compact","hide-details":"",class:"pt-2 ml-0 text-white"},null,8,["modelValue"]),_(Jt,{class:"align-self-center",icon:"mdi-google-play text-white",size:"x-large",variant:"text",color:"teal-darken-4",disabled:i.dailyfiles==0,onClick:e[3]||(e[3]=o=>i.onPickFile("roundfilse"))},null,8,["disabled"])]),_:1})):(E(),j(Ye,{key:1},{default:D(()=>[_(ie,{class:"text-h5 text-white text-center h-100","align-content":"center"},{default:D(()=>[Y("Данные не загружены ")]),_:1})]),_:1}))]),_:1})]),_:1},8,["image"])),H("div",jg,[_(Us,{modelValue:i.dialogDetailRound,"onUpdate:modelValue":e[5]||(e[5]=o=>i.dialogDetailRound=o),width:"500"},{default:D(()=>[_(a,{idpos:i.idpos,namepos:i.namepos,onSearchClose:e[4]||(e[4]=o=>i.dialogDetailRound=!i.dialogDetailRound)},null,8,["idpos","namepos"])]),_:1},8,["modelValue"])])])}const Ug=Re(Bg,[["render",Fg]]);var zg=Object.defineProperty,$g=(t,e,n)=>e in t?zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ve=(t,e,n)=>($g(t,typeof e!="symbol"?e+"":e,n),n);/** * vue-cal v4.8.1 * (c) 2022 Antoni Andre * @license MIT - */let nt,Ms,xs,le,it={},ze={};class Yg{constructor(e){ve(this,"_vuecal",null),ve(this,"selectCell",(n=!1,i,r)=>{this._vuecal.$emit("cell-click",r?{date:i,split:r}:i),this._vuecal.clickToNavigate||n?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",r?{date:i,split:r}:i)))}),ve(this,"keyPressEnterCell",(n,i)=>{this._vuecal.$emit("cell-keypress-enter",i?{date:n,split:i}:n),this._vuecal.switchToNarrowerView()}),ve(this,"getPosition",n=>{const{left:i,top:r}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:s,clientY:l}="ontouchstart"in window&&n.touches?n.touches[0]:n;return{x:s-i,y:l-r}}),ve(this,"minutesAtCursor",n=>{let i=0,r={x:0,y:0};const{timeStep:s,timeCellHeight:l,timeFrom:a}=this._vuecal.$props;return typeof n=="number"?i=n:typeof n=="object"&&(r=this.getPosition(n),i=Math.round(r.y*s/parseInt(l)+a)),{minutes:Math.max(Math.min(i,1440),0),cursorCoords:r}}),this._vuecal=e}}let z,$,kn;class Gg{constructor(e,n){ve(this,"_vuecal",null),ve(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=e,z=n}createAnEvent(e,n,i){if(typeof e=="string"&&(e=z.stringToDate(e)),!(e instanceof Date))return!1;const r=z.dateToMinutes(e),s=r+(n=1*n||120),l=z.addMinutes(new Date(e),n);i.end&&(typeof i.end=="string"&&(i.end=z.stringToDate(i.end)),i.endTimeMinutes=z.dateToMinutes(i.end));const a={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:e,startTimeMinutes:r,end:l,endTimeMinutes:s,segments:null,...i};return typeof this._vuecal.onEventCreate!="function"||this._vuecal.onEventCreate(a,()=>this.deleteAnEvent(a))?(a.startDateF!==a.endDateF&&(a.daysCount=z.countDays(a.start,a.end)),this._vuecal.mutableEvents.push(a),this._vuecal.addEventsToView([a]),this._vuecal.emitWithEvent("event-create",a),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(a),originalEvent:null}),a):void 0}addEventSegment(e){e.segments||(e.segments={},e.segments[z.formatDateLite(e.start)]={start:e.start,startTimeMinutes:e.startTimeMinutes,endTimeMinutes:1440,isFirstDay:!0,isLastDay:!1});const n=e.segments[z.formatDateLite(e.end)];n&&(n.isLastDay=!1,n.endTimeMinutes=1440);const i=z.addDays(e.end,1),r=z.formatDateLite(i);return i.setHours(0,0,0,0),e.segments[r]={start:i,startTimeMinutes:0,endTimeMinutes:e.endTimeMinutes,isFirstDay:!1,isLastDay:!0},e.end=z.addMinutes(i,e.endTimeMinutes),e.daysCount=Object.keys(e.segments).length,r}removeEventSegment(e){let n=Object.keys(e.segments).length;if(n<=1)return z.formatDateLite(e.end);delete e.segments[z.formatDateLite(e.end)],n--;const i=z.subtractDays(e.end,1),r=z.formatDateLite(i),s=e.segments[r];return n?s&&(s.isLastDay=!0,s.endTimeMinutes=e.endTimeMinutes):e.segments=null,e.daysCount=n||1,e.end=i,r}createEventSegments(e,n,i){const r=n.getTime(),s=i.getTime();let l,a,o,c=e.start.getTime(),d=e.end.getTime(),u=!1;for(e.end.getHours()||e.end.getMinutes()||(d-=1e3),e.segments={},e.repeat?(l=r,a=Math.min(s,e.repeat.until?z.stringToDate(e.repeat.until).getTime():s)):(l=Math.max(r,c),a=Math.min(s,d));l<=a;){let h=!1;const f=z.addDays(new Date(l),1).setHours(0,0,0,0);let p,y,v,b;if(e.repeat){const w=new Date(l),S=z.formatDateLite(w);(u||e.occurrences&&e.occurrences[S])&&(u||(c=e.occurrences[S].start,o=new Date(c).setHours(0,0,0,0),d=e.occurrences[S].end),u=!0,h=!0),p=l===o,y=S===z.formatDateLite(new Date(d)),v=new Date(p?c:l),b=z.formatDateLite(v),y&&(u=!1)}else h=!0,p=l===c,y=a===d&&f>a,v=p?e.start:new Date(l),b=z.formatDateLite(p?e.start:v);h&&(e.segments[b]={start:v,startTimeMinutes:p?e.startTimeMinutes:0,endTimeMinutes:y?e.endTimeMinutes:1440,isFirstDay:p,isLastDay:y}),l=f}return e}deleteAnEvent(e){this._vuecal.emitWithEvent("event-delete",e),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(n=>n._eid!==e._eid),this._vuecal.view.events=this._vuecal.view.events.filter(n=>n._eid!==e._eid)}checkCellOverlappingEvents(e,n){kn=e.slice(0),$={},e.forEach(r=>{kn.shift(),$[r._eid]||($[r._eid]={overlaps:[],start:r.start,position:0}),$[r._eid].position=0,kn.forEach(s=>{$[s._eid]||($[s._eid]={overlaps:[],start:s.start,position:0});const l=this.eventInRange(s,r.start,r.end),a=n.overlapsPerTimeStep?z.datesInSameTimeStep(r.start,s.start,n.timeStep):1;if(r.background||r.allDay||s.background||s.allDay||!l||!a){let o,c;(o=($[r._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&$[r._eid].overlaps.splice(o,1),(c=($[s._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&$[s._eid].overlaps.splice(c,1),$[s._eid].position--}else $[r._eid].overlaps.push(s._eid),$[r._eid].overlaps=[...new Set($[r._eid].overlaps)],$[s._eid].overlaps.push(r._eid),$[s._eid].overlaps=[...new Set($[s._eid].overlaps)],$[s._eid].position++})});let i=0;for(const r in $){const s=$[r],l=s.overlaps.map(a=>({id:a,start:$[a].start}));l.push({id:r,start:s.start}),l.sort((a,o)=>a.starto.start?1:a.id>o.id?-1:1),s.position=l.findIndex(a=>a.id===r),i=Math.max(this.getOverlapsStreak(s,$),i)}return[$,i]}getOverlapsStreak(e,n={}){let i=e.overlaps.length+1,r=[];return e.overlaps.forEach(s=>{r.includes(s)||e.overlaps.filter(l=>l!==s).forEach(l=>{n[l].overlaps.includes(s)||r.push(l)})}),r=[...new Set(r)],i-=r.length,i}eventInRange(e,n,i){if(e.allDay||!this._vuecal.time){const l=new Date(e.start).setHours(0,0,0,0);return new Date(e.end).setHours(23,59,0,0)>=new Date(n).setHours(0,0,0,0)&&l<=new Date(i).setHours(0,0,0,0)}const r=e.start.getTime(),s=e.end.getTime();return rn.getTime()}}const qg={class:"vuecal__flex vuecal__weekdays-headings"},Qg=["onClick"],Zg={class:"vuecal__flex weekday-label",grow:""},Xg={class:"full"},Jg={class:"small"},Kg={class:"xsmall"},ep={key:0},tp={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""},Ke=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},Tl=Ke({inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(t,e){t.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=t),this.utils.cell.selectCell(!1,t,e)},cleanupHeading:t=>({label:t.full,date:t.date,...t.today?{today:t.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let t=!1;return this.weekDays.map((e,n)=>{const i=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday?n-1:n);return{hide:e.hide,full:e.label,small:e.short||e.label.substr(0,3),xsmall:e.short||e.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:i.getDate(),date:i,today:!t&&this.utils.date.isToday(i)&&!t++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((t,e)=>t+e.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},[["render",function(t,e,n,i,r,s){return E(),A("div",qg,[(E(!0),A(Q,null,Z(s.headings,(l,a)=>(E(),A(Q,{key:a},[l.hide?k("",!0):(E(),A("div",{key:0,class:J(["vuecal__flex vuecal__heading",{today:l.today,clickable:s.cellHeadingsClickable}]),style:ae(s.weekdayCellStyles),onClick:o=>s.view.id==="week"&&s.selectCell(l.date,o),onDblclick:e[0]||(e[0]=o=>s.view.id==="week"&&s.vuecal.dblclickToNavigate&&n.switchToNarrowerView())},[D(Vt,{name:`slide-fade--${n.transitionDirection}`,appear:s.vuecal.transitions},{default:_(()=>[(E(),A("div",{class:"vuecal__flex",column:"",key:!!s.vuecal.transitions&&`${a}-${l.dayOfMonth}`},[P("div",Zg,[N(t.$slots,"weekday-heading",{heading:s.cleanupHeading(l),view:s.view},()=>[P("span",Xg,I(l.full),1),P("span",Jg,I(l.small),1),P("span",Kg,I(l.xsmall),1),l.dayOfMonth?(E(),A("span",ep," "+I(l.dayOfMonth),1)):k("",!0)])]),s.vuecal.hasSplits&&s.vuecal.stickySplitLabels?(E(),A("div",tp,[(E(!0),A(Q,null,Z(s.vuecal.daySplits,(o,c)=>(E(),A("div",{class:J(["day-split-header",o.class||!1]),key:c},[N(t.$slots,"split-label",{split:o,view:s.view},()=>[Y(I(o.label),1)])],2))),128))])):k("",!0)]))]),_:2},1032,["name","appear"])],46,Qg))],64))),128))])}]]),np={class:"vuecal__header"},ip={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},sp=["onDragenter","onDragleave","onClick","aria-label"],rp={key:1,class:"vuecal__title-bar"},lp=["aria-label"],ap={class:"vuecal__flex vuecal__title",grow:""},op=["aria-label"],cp={key:0,class:"vuecal__flex vuecal__split-days-headers"},dp=Ke({inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:Tl},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(t){this.vuecal.transitionDirection=t}},broaderView(){const{enabledViews:t}=this.vuecal;return t[t.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},[["render",function(t,e,n,i,r,s){const l=ee("weekdays-headings");return E(),A("div",np,[n.options.hideViewSelector?k("",!0):(E(),A("div",ip,[(E(!0),A(Q,null,Z(n.viewProps.views,(a,o)=>(E(),A(Q,{key:o},[a.enabled?(E(),A("button",{key:0,class:J(["vuecal__view-btn",{"vuecal__view-btn--active":s.view.id===o,"vuecal__view-btn--highlighted":t.highlightedControl===o}]),type:"button",onDragenter:c=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(c,o,t.$data),onDragleave:c=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(c,o,t.$data),onClick:c=>s.switchView(o,null,!0),"aria-label":`${a.label} view`},I(a.label),43,sp)):k("",!0)],64))),128))])),n.options.hideTitleBar?k("",!0):(E(),A("div",rp,[P("button",{class:J(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":t.highlightedControl==="previous"}]),type:"button",onClick:e[0]||(e[0]=(...a)=>s.previous&&s.previous(...a)),onDragenter:e[1]||(e[1]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"previous",t.$data)),onDragleave:e[2]||(e[2]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"previous",t.$data)),"aria-label":`Previous ${s.view.id}`},[N(t.$slots,"arrow-prev")],42,lp),P("div",ap,[D(Vt,{name:n.options.transitions?`slide-fade--${s.transitionDirection}`:""},{default:_(()=>[(E(),j(ua(s.broaderView?"button":"span"),{type:!!s.broaderView&&"button",key:`${s.view.id}${s.view.startDate.toString()}`,onClick:e[3]||(e[3]=a=>!!s.broaderView&&s.switchToBroaderView()),"aria-label":!!s.broaderView&&`Go to ${s.broaderView} view`},{default:_(()=>[N(t.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),n.options.todayButton?(E(),A("button",{key:0,class:J(["vuecal__today-btn",{"vuecal__today-btn--highlighted":t.highlightedControl==="today"}]),type:"button",onClick:e[4]||(e[4]=(...a)=>s.goToToday&&s.goToToday(...a)),onDragenter:e[5]||(e[5]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"today",t.$data)),onDragleave:e[6]||(e[6]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"today",t.$data)),"aria-label":"Today"},[N(t.$slots,"today-button")],34)):k("",!0),P("button",{class:J(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":t.highlightedControl==="next"}]),type:"button",onClick:e[7]||(e[7]=(...a)=>s.next&&s.next(...a)),onDragenter:e[8]||(e[8]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"next",t.$data)),onDragleave:e[9]||(e[9]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"next",t.$data)),"aria-label":`Next ${s.view.id}`},[N(t.$slots,"arrow-next")],42,op)])),n.viewProps.weekDaysInHeader?(E(),j(l,{key:2,"week-days":n.weekDays,"transition-direction":s.transitionDirection,"switch-to-narrower-view":n.switchToNarrowerView},xn({_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:_(({heading:a,view:o})=>[N(t.$slots,"weekday-heading",{heading:a,view:o})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:_(({split:a})=>[N(t.$slots,"split-label",{split:a,view:s.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):k("",!0),D(Vt,{name:`slide-fade--${s.transitionDirection}`},{default:_(()=>[s.showDaySplits?(E(),A("div",cp,[(E(!0),A(Q,null,Z(n.daySplits,(a,o)=>(E(),A("div",{class:J(["day-split-header",a.class||!1]),key:o},[N(t.$slots,"split-label",{split:a,view:s.view.id},()=>[Y(I(a.label),1)])],2))),128))])):k("",!0)]),_:3},8,["name"])])}]]),up=["draggable"],hp={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(t,e=!1){if("ontouchstart"in window&&!e)return!1;const{clickHoldAnEvent:n,focusAnEvent:i,resizeAnEvent:r,dragAnEvent:s}=this.domEvents;if(i._eid===this.event._eid&&n._eid===this.event._eid)return!0;this.focusEvent(),n._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(n.timeoutId=setTimeout(()=>{r._eid||s._eid||(n._eid=this.event._eid,this.event.deleting=!0)},n.timeout))},onMouseUp(t){this.domEvents.focusAnEvent._eid!==this.event._eid||this.touch.dragged||(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(t){t.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(t){t.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(t){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:e,clientY:n}=t.touches[0],{startX:i,startY:r,dragThreshold:s}=this.touch;(Math.abs(e-i)>s||Math.abs(n-r)>s)&&(this.touch.dragged=!0)},onTouchStart(t){this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY,this.onMouseDown(t,!0)},onEnterKeypress(t){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,t)},onDblClick(t){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,t)},onDragStart(t){this.dnd&&this.dnd.eventDragStart(t,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(t=!1){if("ontouchstart"in window&&!t)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(t){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:t}=this.domEvents,e=t._eid;if(e!==this.event._eid){if(e){const n=this.view.events.find(i=>i._eid===e);n&&(n.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),t._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:t,endTimeMinutes:e}=this.segment||this.event;let n=t-this.vuecal.timeFrom;const i=Math.max(Math.round(n*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);n=Math.min(e,this.vuecal.timeTo)-this.vuecal.timeFrom;const r=Math.round(n*this.vuecal.timeCellHeight/this.vuecal.timeStep);return{top:i,height:Math.max(r-i,5)}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let t=100/Math.min(this.overlaps.length+1,this.overlapsStreak),e=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&ts.focusEvent&&s.focusEvent(...l)),onKeypress:e[5]||(e[5]=Ei(Ue((...l)=>s.onEnterKeypress&&s.onEnterKeypress(...l),["stop"]),["enter"])),onMouseenter:e[6]||(e[6]=(...l)=>s.onMouseEnter&&s.onMouseEnter(...l)),onMouseleave:e[7]||(e[7]=(...l)=>s.onMouseLeave&&s.onMouseLeave(...l)),onTouchstart:e[8]||(e[8]=Ue((...l)=>s.onTouchStart&&s.onTouchStart(...l),["stop"])),onMousedown:e[9]||(e[9]=l=>s.onMouseDown(l)),onMouseup:e[10]||(e[10]=(...l)=>s.onMouseUp&&s.onMouseUp(...l)),onTouchend:e[11]||(e[11]=(...l)=>s.onMouseUp&&s.onMouseUp(...l)),onTouchmove:e[12]||(e[12]=(...l)=>s.onTouchMove&&s.onTouchMove(...l)),onDblclick:e[13]||(e[13]=(...l)=>s.onDblClick&&s.onDblClick(...l)),draggable:s.draggable,onDragstart:e[14]||(e[14]=l=>s.draggable&&s.onDragStart(l)),onDragend:e[15]||(e[15]=l=>s.draggable&&s.onDragEnd())},[s.vuecal.editEvents.delete&&n.event.deletable?(E(),A("div",{key:0,class:"vuecal__event-delete",onClick:e[0]||(e[0]=Ue((...l)=>s.deleteEvent&&s.deleteEvent(...l),["stop"])),onTouchstart:e[1]||(e[1]=Ue((...l)=>s.touchDeleteEvent&&s.touchDeleteEvent(...l),["stop"]))},I(s.vuecal.texts.deleteEvent),33)):k("",!0),N(t.$slots,"event",{event:n.event,view:s.view.id}),s.resizable?(E(),A("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:e[2]||(e[2]=Ue((...l)=>s.onResizeHandleMouseDown&&s.onResizeHandleMouseDown(...l),["stop","prevent"])),onTouchstart:e[3]||(e[3]=Ue((...l)=>s.onResizeHandleMouseDown&&s.onResizeHandleMouseDown(...l),["stop","prevent"]))},null,32)):k("",!0)],46,up)}]])},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:t}){let e=t.classList.contains("vuecal__cell-split")?t:this.vuecal.findAncestor(t,"vuecal__cell-split");return e&&(e=e.attributes["data-split"].value,parseInt(e).toString()===e.toString()&&(e=parseInt(e))),e||null},splitClasses(t){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===t.id,[t.class]:!!t.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(t){return this.vuecal.isDOMElementAnEvent(t)},selectCell(t,e=!1){const n=this.splitsCount?this.getSplitAtCursor(t):null;this.utils.cell.selectCell(e,this.timeAtCursor,n),this.timeAtCursor=null},onCellkeyPressEnter(t){this.isSelected||this.onCellFocus(t);const e=this.splitsCount?this.getSplitAtCursor(t):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,e),this.timeAtCursor=null},onCellFocus(t){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const e=this.splitsCount?this.getSplitAtCursor(t):null,n=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",e?{date:n,split:e}:n)}},onCellMouseDown(t,e=null,n=!1){if("ontouchstart"in window&&!n)return!1;this.isSelected||this.onCellFocus(t);const{clickHoldACell:i,focusAnEvent:r}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,i.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:s,cursorCoords:{y:l}}=this.vuecal.minutesAtCursor(t);this.timeAtCursor.setMinutes(s);const a=this.isDOMElementAnEvent(t.target);!a&&r._eid&&((this.view.events.find(o=>o._eid===r._eid)||{}).focused=!1),this.editEvents.create&&!a&&this.setUpEventCreation(t,l)},setUpEventCreation(t,e){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:n}=this.domEvents;if(n.startCursorY=e,n.split=this.splitsCount?this.getSplitAtCursor(t):null,n.start=this.timeAtCursor,this.options.snapToTime){let i=60*this.timeAtCursor.getHours()+this.timeAtCursor.getMinutes();const r=i+this.options.snapToTime/2;i=r-r%this.options.snapToTime,n.start.setHours(0,i,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(t)},setUpCellHoldTimer(t){const{clickHoldACell:e}=this.domEvents;e.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,e.split=this.splitsCount?this.getSplitAtCursor(t):null,e.timeoutId=setTimeout(()=>{if(e.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:n}=this.utils.event.createAnEvent(this.timeAtCursor,null,e.split?{split:e.split}:{});e.eventCreated=n}},e.timeout)},onCellTouchStart(t,e=null){this.onCellMouseDown(t,e,!0)},onCellClick(t){this.isDOMElementAnEvent(t.target)||this.selectCell(t)},onCellDblClick(t){const e=new Date(this.data.startDate);e.setMinutes(this.vuecal.minutesAtCursor(t).minutes);const n=this.splitsCount?this.getSplitAtCursor(t):null;this.vuecal.$emit("cell-dblclick",n?{date:e,split:n}:e),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(t){t.stopPropagation(),t.preventDefault();const e=new Date(this.data.startDate),{cursorCoords:n,minutes:i}=this.vuecal.minutesAtCursor(t);e.setMinutes(i);const r=this.splitsCount?this.getSplitAtCursor(t):null;this.vuecal.$emit("cell-contextmenu",{date:e,...n,...r||{},e:t})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp{let{from:e,to:n}=t;return e=Math.max(e,this.options.timeFrom),n=Math.min(n,this.options.timeTo),{...t,height:(n-e)*this.timeScale,top:(e-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:t,endDate:e}=this.data;let n=[];if(!["years","year"].includes(this.view.id)||this.options.eventsCountOnYearView){if(n=this.view.events.slice(0),this.view.id==="month"&&n.push(...this.view.outOfScopeEvents),n=n.filter(i=>this.utils.event.eventInRange(i,t,e)),this.options.showAllDayEvents&&this.view.id!=="month"&&(n=n.filter(i=>!!i.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:i,timeTo:r}=this.options;n=n.filter(s=>{const l=s.daysCount>1&&s.segments[this.data.formattedDate]||{},a=s.daysCount===1&&s.startTimeMinutesi,o=s.daysCount>1&&l.startTimeMinutesi;return s.allDay||a||o||!1})}!this.options.time||!this.isWeekOrDayView||this.options.showAllDayEvents&&this.allDay||n.sort((i,r)=>i.start{const n=this.events.filter(s=>s.split===t.id),[i,r]=this.utils.event.checkCellOverlappingEvents(n.filter(s=>!s.background&&!s.allDay),this.options);return{...t,overlaps:i,overlapsStreak:r,events:n}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:t,timeTo:e}=this.options;return this.data.today&&this.isWeekOrDayView&&t&&!this.allDay&&this.nowInMinutes<=e},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const t=this.nowInMinutes-this.options.timeFrom;return Math.round(t*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},[["render",function(t,e,n,i,r,s){const l=ee("event");return E(),j(ha,{class:J(["vuecal__cell",s.cellClasses]),name:`slide-fade--${s.transitionDirection}`,tag:"div",appear:n.options.transitions,style:ae(s.cellStyles)},{default:_(()=>[(E(!0),A(Q,null,Z(s.splitsCount?s.splits:1,(a,o)=>(E(),A("div",{class:J(["vuecal__flex vuecal__cell-content",s.splitsCount&&s.splitClasses(a)]),key:n.options.transitions?`${s.view.id}-${n.data.content}-${o}`:o,"data-split":!!s.splitsCount&&a.id,column:"",tabindex:"0","aria-label":n.data.content,onFocus:e[0]||(e[0]=c=>s.onCellFocus(c)),onKeypress:e[1]||(e[1]=Ei(c=>s.onCellkeyPressEnter(c),["enter"])),onTouchstart:c=>!s.isDisabled&&s.onCellTouchStart(c,s.splitsCount?a.id:null),onMousedown:c=>!s.isDisabled&&s.onCellMouseDown(c,s.splitsCount?a.id:null),onClick:e[2]||(e[2]=c=>!s.isDisabled&&s.onCellClick(c)),onDblclick:e[3]||(e[3]=c=>!s.isDisabled&&s.onCellDblClick(c)),onContextmenu:e[4]||(e[4]=c=>!s.isDisabled&&n.options.cellContextmenu&&s.onCellContextMenu(c)),onDragenter:e[5]||(e[5]=c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragEnter(c,t.$data,n.data.startDate)),onDragover:c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragOver(c,t.$data,n.data.startDate,s.splitsCount?a.id:null),onDragleave:e[6]||(e[6]=c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragLeave(c,t.$data,n.data.startDate)),onDrop:c=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragDrop(c,t.$data,n.data.startDate,s.splitsCount?a.id:null)},[n.options.showTimeInCells&&n.options.time&&s.isWeekOrDayView&&!n.allDay?(E(),A("div",gp,[(E(!0),A(Q,null,Z(s.vuecal.timeCells,(c,d)=>(E(),A("span",{class:"cell-time-label",key:d},I(c.label),1))),128))])):k("",!0),s.isWeekOrDayView&&!n.allDay&&s.specialHours.length?(E(!0),A(Q,{key:1},Z(s.specialHours,(c,d)=>(E(),A("div",{class:J(["vuecal__special-hours",`vuecal__special-hours--day${c.day} ${c.class}`]),style:ae(`height: ${c.height}px;top: ${c.top}px`)},[c.label?(E(),A("div",{key:0,class:"special-hours-label",innerHTML:c.label},null,8,pp)):k("",!0)],6))),256)):k("",!0),N(t.$slots,"cell-content",{events:s.events,selectCell:c=>s.selectCell(c,!0),split:!!s.splitsCount&&a}),s.eventsCount&&(s.isWeekOrDayView||s.view.id==="month"&&n.options.eventsOnMonthView)?(E(),A("div",mp,[(E(!0),A(Q,null,Z(s.splitsCount?a.events:s.events,(c,d)=>(E(),j(l,{key:d,"cell-formatted-date":n.data.formattedDate,event:c,"all-day":n.allDay,"cell-events":s.splitsCount?a.events:s.events,overlaps:((s.splitsCount?a.overlaps[c._eid]:t.cellOverlaps[c._eid])||[]).overlaps,"event-position":((s.splitsCount?a.overlaps[c._eid]:t.cellOverlaps[c._eid])||[]).position,"overlaps-streak":s.splitsCount?a.overlapsStreak:t.cellOverlapsStreak},{event:_(({event:u,view:h})=>[N(t.$slots,"event",{view:h,event:u})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):k("",!0)],42,fp))),128)),s.timelineVisible?(E(),A("div",{class:"vuecal__now-line",style:ae(`top: ${s.todaysTimePosition}px`),key:n.options.transitions?`${s.view.id}-now-line`:"now-line",title:s.utils.date.formatTime(s.vuecal.now)},null,12,vp)):k("",!0)]),_:3},8,["class","name","appear","style"])}]]),yp={key:0,class:"vuecal__all-day-text",style:{width:"3em"}},bp=Ke({inject:["vuecal","view","editEvents"],components:{"vuecal-cell":Rl},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},[["render",function(t,e,n,i,r,s){const l=ee("vuecal-cell");return E(),A("div",{class:"vuecal__flex vuecal__all-day",style:ae(n.cellOrSplitMinWidth&&{height:n.height})},[n.cellOrSplitMinWidth?k("",!0):(E(),A("div",yp,[P("span",null,I(n.label),1)])),P("div",{class:J(["vuecal__flex vuecal__cells",`${s.view.id}-view`]),grow:"",style:ae(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:"")},[(E(!0),A(Q,null,Z(n.cells,(a,o)=>(E(),j(l,{key:o,options:n.options,"edit-events":s.editEvents,data:a,"all-day":!0,"cell-width":n.options.hideWeekdays.length&&(s.vuecal.isWeekView||s.vuecal.isMonthView)&&s.vuecal.cellWidth,"min-timestamp":n.options.minTimestamp,"max-timestamp":n.options.maxTimestamp,"cell-splits":n.daySplits},{event:_(({event:c,view:d})=>[N(t.$slots,"event",{view:d,event:c})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}]]),Dp=["lang"],_p=P("i",{class:"angle"},null,-1),Ep=P("i",{class:"angle"},null,-1),wp={class:"default"},Ap={key:0,class:"vuecal__flex vuecal__body",grow:""},Sp=["onBlur","innerHTML"],Cp=["innerHTML"],Tp=["innerHTML"],Rp={class:"vuecal__flex",row:"",grow:""},kp={key:0,class:"vuecal__time-column"},Mp=P("span",{class:"vuecal__time-cell-line"},null,-1),xp={class:"vuecal__time-cell-label"},Ip={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},Op=["wrap","column"],Np=["onBlur","innerHTML"],Hp=["innerHTML"],Pp=["innerHTML"],Vp=["wrap"],Lp=["innerHTML"],Bp=["innerHTML"],Wp={key:2,class:"vuecal__cell-events-count"},jp={key:3,class:"vuecal__no-event"},Fp=["onBlur","innerHTML"],Up=["innerHTML"],zp={key:2,class:"vuecal__event-time"},$p={key:0},Yp={key:1,class:"days-to-end"},Gp=["innerHTML"],qp={key:0,class:"vuecal__scrollbar-check"},Qp=[P("div",null,null,-1)],rt={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},Is=["years","year","month","week","day"],Os=new class{constructor(t,e=!1){ve(this,"texts",{}),ve(this,"dateToMinutes",n=>60*n.getHours()+n.getMinutes()),le=this,this._texts=t,e||!Date||Date.prototype.addDays||this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return le.addDays(this,t)},Date.prototype.subtractDays=function(t){return le.subtractDays(this,t)},Date.prototype.addHours=function(t){return le.addHours(this,t)},Date.prototype.subtractHours=function(t){return le.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return le.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return le.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return le.getWeek(this)},Date.prototype.isToday=function(){return le.isToday(this)},Date.prototype.isLeapYear=function(){return le.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return le.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return le.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return Ms!==new Date().getDate()&&(nt=new Date,Ms=nt.getDate(),xs=`${nt.getFullYear()}-${nt.getMonth()}-${nt.getDate()}`),xs}addDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()+e),n}subtractDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()-e),n}addHours(t,e){const n=new Date(t.valueOf());return n.setHours(n.getHours()+e),n}subtractHours(t,e){const n=new Date(t.valueOf());return n.setHours(n.getHours()-e),n}addMinutes(t,e){const n=new Date(t.valueOf());return n.setMinutes(n.getMinutes()+e),n}subtractMinutes(t,e){const n=new Date(t.valueOf());return n.setMinutes(n.getMinutes()-e),n}getWeek(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-n);const i=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-i)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const e=t.getFullYear();return!(e%400)||e%100&&!(e%4)}getPreviousFirstDayOfWeek(t=null,e){const n=t&&new Date(t.valueOf())||new Date,i=e?7:6;return n.setDate(n.getDate()-(n.getDay()+i)%7),n}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,e){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof e=="string"&&(e=e.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),e=new Date(e).setHours(0,0,1,0);const n=60*(new Date(e).getTimezoneOffset()-new Date(t).getTimezoneOffset())*1e3;return Math.ceil((e-t-n)/864e5)}datesInSameTimeStep(t,e,n){return Math.abs(t.getTime()-e.getTime())<=60*n*1e3}formatDate(t,e="YYYY-MM-DD",n=null){if(n||(n=this._texts),e||(e="YYYY-MM-DD"),e==="YYYY-MM-DD")return this.formatDateLite(t);it={},ze={};const i={YYYY:()=>this._hydrateDateObject(t,n).YYYY,YY:()=>this._hydrateDateObject(t,n).YY(),M:()=>this._hydrateDateObject(t,n).M,MM:()=>this._hydrateDateObject(t,n).MM(),MMM:()=>this._hydrateDateObject(t,n).MMM(),MMMM:()=>this._hydrateDateObject(t,n).MMMM(),MMMMG:()=>this._hydrateDateObject(t,n).MMMMG(),D:()=>this._hydrateDateObject(t,n).D,DD:()=>this._hydrateDateObject(t,n).DD(),S:()=>this._hydrateDateObject(t,n).S(),d:()=>this._hydrateDateObject(t,n).d,dd:()=>this._hydrateDateObject(t,n).dd(),ddd:()=>this._hydrateDateObject(t,n).ddd(),dddd:()=>this._hydrateDateObject(t,n).dddd(),HH:()=>this._hydrateTimeObject(t,n).HH,H:()=>this._hydrateTimeObject(t,n).H,hh:()=>this._hydrateTimeObject(t,n).hh,h:()=>this._hydrateTimeObject(t,n).h,am:()=>this._hydrateTimeObject(t,n).am,AM:()=>this._hydrateTimeObject(t,n).AM,mm:()=>this._hydrateTimeObject(t,n).mm,m:()=>this._hydrateTimeObject(t,n).m};return e.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,s)=>{const l=i[s.replace(/\{|\}/g,"")];return l!==void 0?l():s})}formatDateLite(t){const e=t.getMonth()+1,n=t.getDate();return`${t.getFullYear()}-${e<10?"0":""}${e}-${n<10?"0":""}${n}`}formatTime(t,e="HH:mm",n=null,i=!1){let r=!1;if(i){const[a,o,c]=[t.getHours(),t.getMinutes(),t.getSeconds()];a+o+c===141&&(r=!0)}if(t instanceof Date&&e==="HH:mm")return r?"24:00":this.formatTimeLite(t);ze={},n||(n=this._texts);const s=this._hydrateTimeObject(t,n),l=e.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(a,o)=>{const c=s[o.replace(/\{|\}/g,"")];return c!==void 0?c:o});return r?l.replace("23:59","24:00"):l}formatTimeLite(t){const e=t.getHours(),n=t.getMinutes();return`${(e<10?"0":"")+e}:${(n<10?"0":"")+n}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,e){if(it.D)return it;const n=t.getFullYear(),i=t.getMonth()+1,r=t.getDate(),s=(t.getDay()-1+7)%7;return it={YYYY:n,YY:()=>n.toString().substring(2),M:i,MM:()=>(i<10?"0":"")+i,MMM:()=>e.months[i-1].substring(0,3),MMMM:()=>e.months[i-1],MMMMG:()=>(e.monthsGenitive||e.months)[i-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:s+1,dd:()=>e.weekDays[s][0],ddd:()=>e.weekDays[s].substr(0,3),dddd:()=>e.weekDays[s]},it}_hydrateTimeObject(t,e){if(ze.am)return ze;let n,i;t instanceof Date?(n=t.getHours(),i=t.getMinutes()):(n=Math.floor(t/60),i=Math.floor(t%60));const r=n%12?n%12:12,s=(e||{am:"am",pm:"pm"})[n===24||n<12?"am":"pm"];return ze={H:n,h:r,HH:(n<10?"0":"")+n,hh:(r<10?"0":"")+r,am:s,AM:s.toUpperCase(),m:i,mm:(i<10?"0":"")+i},ze}}(rt),Zp={name:"vue-cal",components:{"vuecal-cell":Rl,"vuecal-header":dp,WeekdaysHeadings:Tl,AllDayBar:bp},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:1440},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...rt},utils:{date:!!this.disableDatePrototypes&&Os.removePrototypes()||Os,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(t){if(typeof this.locale=="object")return this.texts=Object.assign({},rt,t),void this.utils.date.updateTexts(this.texts);if(this.locale==="en"){const e=await R(()=>import("./en.es-713916b0.js"),[]);this.texts=Object.assign({},rt,e)}else((e,n)=>{const i=e[n];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((r,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+n)))})})(Object.assign({"./i18n/ar.json":()=>R(()=>import("./ar.es-4173cb29.js"),[]),"./i18n/bg.json":()=>R(()=>import("./bg.es-3542f853.js"),[]),"./i18n/bn.json":()=>R(()=>import("./bn.es-55ab5212.js"),[]),"./i18n/bs.json":()=>R(()=>import("./bs.es-ba9dd541.js"),[]),"./i18n/ca.json":()=>R(()=>import("./ca.es-3f4af411.js"),[]),"./i18n/cs.json":()=>R(()=>import("./cs.es-4bf8e61a.js"),[]),"./i18n/da.json":()=>R(()=>import("./da.es-084484fb.js"),[]),"./i18n/de.json":()=>R(()=>import("./de.es-0185602c.js"),[]),"./i18n/el.json":()=>R(()=>import("./el.es-b3db55e7.js"),[]),"./i18n/en.json":()=>R(()=>import("./en.es-713916b0.js"),[]),"./i18n/es.json":()=>R(()=>import("./es.es-2f81ef8f.js"),[]),"./i18n/et.json":()=>R(()=>import("./et.es-feab242e.js"),[]),"./i18n/fa.json":()=>R(()=>import("./fa.es-e30ec481.js"),[]),"./i18n/fr.json":()=>R(()=>import("./fr.es-fd781cdb.js"),[]),"./i18n/he.json":()=>R(()=>import("./he.es-ab017da7.js"),[]),"./i18n/hr.json":()=>R(()=>import("./hr.es-8ff4208c.js"),[]),"./i18n/hu.json":()=>R(()=>import("./hu.es-a826dbea.js"),[]),"./i18n/id.json":()=>R(()=>import("./id.es-09894c24.js"),[]),"./i18n/is.json":()=>R(()=>import("./is.es-9608cdad.js"),[]),"./i18n/it.json":()=>R(()=>import("./it.es-8f484e02.js"),[]),"./i18n/ja.json":()=>R(()=>import("./ja.es-b7fc0eb9.js"),[]),"./i18n/ka.json":()=>R(()=>import("./ka.es-446e6e19.js"),[]),"./i18n/ko.json":()=>R(()=>import("./ko.es-45e7d699.js"),[]),"./i18n/lt.json":()=>R(()=>import("./lt.es-bc184482.js"),[]),"./i18n/mn.json":()=>R(()=>import("./mn.es-5fa17a96.js"),[]),"./i18n/nl.json":()=>R(()=>import("./nl.es-f5998f61.js"),[]),"./i18n/no.json":()=>R(()=>import("./no.es-7a7b8685.js"),[]),"./i18n/pl.json":()=>R(()=>import("./pl.es-2dc4cbea.js"),[]),"./i18n/pt-br.json":()=>R(()=>import("./pt-br.es-82c2bfad.js"),[]),"./i18n/ro.json":()=>R(()=>import("./ro.es-0b230c59.js"),[]),"./i18n/ru.json":()=>R(()=>import("./ru.es-3bc3c295.js"),[]),"./i18n/sk.json":()=>R(()=>import("./sk.es-477d958c.js"),[]),"./i18n/sl.json":()=>R(()=>import("./sl.es-7f9e39ca.js"),[]),"./i18n/sq.json":()=>R(()=>import("./sq.es-484abfbf.js"),[]),"./i18n/sr.json":()=>R(()=>import("./sr.es-79173882.js"),[]),"./i18n/sv.json":()=>R(()=>import("./sv.es-cc28424b.js"),[]),"./i18n/tr.json":()=>R(()=>import("./tr.es-73d31d0a.js"),[]),"./i18n/uk.json":()=>R(()=>import("./uk.es-72aa5132.js"),[]),"./i18n/vi.json":()=>R(()=>import("./vi.es-e48f04c7.js"),[]),"./i18n/zh-cn.json":()=>R(()=>import("./zh-cn.es-d3b0ce92.js"),[]),"./i18n/zh-hk.json":()=>R(()=>import("./zh-hk.es-f0804a56.js"),[])}),`./i18n/${t}.json`).then(e=>{this.texts=Object.assign({},rt,e.default),this.utils.date.updateTexts(this.texts)})},loadDragAndDrop(){R(()=>import("./drag-and-drop.es-801b9187.js"),[]).then(t=>{const{DragAndDrop:e}=t;this.modules.dnd=new e(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(t){return Is.includes(t)||(console.error(`Vue Cal: invalid active-view parameter provided: "${t}". -A valid view must be one of: ${Is.join(", ")}.`),t="week"),this.enabledViews.includes(t)||(console.warn(`Vue Cal: the provided active-view "${t}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),t=this.enabledViews[0]),t},switchToNarrowerView(t=null){this.transitionDirection="right";const e=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];e&&this.switchView(e,t)},switchView(t,e=null,n=!1){t=this.validateView(t);const i=this.utils.date,r=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&n){if(this.view.id===t)return;const a=this.enabledViews;this.transitionDirection=a.indexOf(this.view.id)>a.indexOf(t)?"left":"right"}const s=this.view.id;switch(this.view.events=[],this.view.id=t,this.view.firstCellDate=null,this.view.lastCellDate=null,e||(e=this.view.selectedDate||this.view.startDate),t){case"years":this.view.startDate=new Date(25*Math.floor(e.getFullYear()/25)||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break;case"year":this.view.startDate=new Date(e.getFullYear(),0,1),this.view.endDate=new Date(e.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(e.getFullYear(),e.getMonth(),1),this.view.endDate=new Date(e.getFullYear(),e.getMonth()+1,1),this.view.endDate.setSeconds(-1);let a=new Date(this.view.startDate);if(a.getDay()!==(this.startWeekOnSunday?0:1)&&(a=i.getPreviousFirstDayOfWeek(a,this.startWeekOnSunday)),this.view.firstCellDate=a,this.view.lastCellDate=i.addDays(a,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const o=this.view.firstCellDate.getDay()!==6||this.startWeekOnSunday?1:2;this.view.firstCellDate=i.addDays(this.view.firstCellDate,o)}if([0,6].includes(this.view.startDate.getDay())){const o=this.view.startDate.getDay()===6?2:1;this.view.startDate=i.addDays(this.view.startDate,o)}if([0,6].includes(this.view.lastCellDate.getDay())){const o=this.view.lastCellDate.getDay()!==0||this.startWeekOnSunday?1:2;this.view.lastCellDate=i.subtractDays(this.view.lastCellDate,o)}if([0,6].includes(this.view.endDate.getDay())){const o=this.view.endDate.getDay()===0?2:1;this.view.endDate=i.subtractDays(this.view.endDate,o)}}break}case"week":{e=i.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday);const a=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?i.addDays(e,1):e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=i.addDays(e,a),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(e),this.view.endDate.setHours(23,59,59,0)}this.addEventsToView();const l=this.view.startDate&&this.view.startDate.getTime();if((s!==t||l!==r)&&(this.$emit("update:activeView",t),this.ready)){const a=this.view.startDate,o={view:t,startDate:a,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:i.getWeek(this.startWeekOnSunday?i.addDays(a,1):a)}:{}};this.$emit("view-change",o)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(t=!0){const e=this.utils.date;this.transitionDirection=t?"right":"left";const n=t?1:-1;let i=null;const{startDate:r,id:s}=this.view;switch(s){case"years":i=new Date(r.getFullYear()+25*n,0,1);break;case"year":i=new Date(r.getFullYear()+1*n,1,1);break;case"month":i=new Date(r.getFullYear(),r.getMonth()+1*n,1);break;case"week":i=e[t?"addDays":"subtractDays"](e.getPreviousFirstDayOfWeek(r,this.startWeekOnSunday),7);break;case"day":i=e[t?"addDays":"subtractDays"](r,1);const l=i.getDay(),a=this.startWeekOnSunday?l:(l||7)-1;if(this.weekDays[a].hide){const o=this.weekDays.map((d,u)=>({...d,i:u}));let c=0;t?([...o.slice(a),...o].find(d=>(c++,!d.hide)).i,c--):[...o,...o.slice(0,a)].reverse().find(d=>(c++,!d.hide)).i,i=e[t?"addDays":"subtractDays"](i,c)}}i&&this.switchView(s,i)},addEventsToView(t=[]){const e=this.utils.event,{startDate:n,endDate:i,firstCellDate:r,lastCellDate:s}=this.view;if(t.length||(this.view.events=[]),!(t=t.length?t:[...this.mutableEvents])||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let l=t.filter(a=>e.eventInRange(a,n,i));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(l=l.map(a=>a.daysCount>1?e.createEventSegments(a,r||n,s||i):a)),this.view.events.push(...l),this.isMonthView&&(this.view.outOfScopeEvents=[],t.forEach(a=>{(e.eventInRange(a,r,n)||e.eventInRange(a,i,s))&&(this.view.events.some(o=>o._eid===a._eid)||this.view.outOfScopeEvents.push(a))}))},findAncestor(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t},isDOMElementAnEvent(t){return t.classList.contains("vuecal__event")||this.findAncestor(t,"vuecal__event")},onMouseMove(t){const{resizeAnEvent:e,dragAnEvent:n,dragCreateAnEvent:i}=this.domEvents;(e._eid!==null||n._eid!==null||i.start)&&(t.preventDefault(),e._eid?this.eventResizing(t):this.dragToCreateEvent&&i.start&&this.eventDragCreation(t))},onMouseUp(t){const{focusAnEvent:e,resizeAnEvent:n,clickHoldAnEvent:i,clickHoldACell:r,dragCreateAnEvent:s}=this.domEvents,{_eid:l}=i,{_eid:a}=n;let o=!1;const{event:c,start:d}=s,u=this.isDOMElementAnEvent(t.target),h=e.mousedUp;if(e.mousedUp=!1,u&&(this.domEvents.cancelClickEventCreation=!0),r.eventCreated)return;if(a){const{originalEnd:p,originalEndTimeMinutes:y,endTimeMinutes:v}=n,b=this.view.events.find(w=>w._eid===n._eid);if(o=v&&v!==y,b&&b.end.getTime()!==p.getTime()){const w=this.mutableEvents.find(V=>V._eid===n._eid);w.endTimeMinutes=b.endTimeMinutes,w.end=b.end;const S=this.cleanupEvent(b),C={...this.cleanupEvent(b),end:p,endTimeMinutes:b.originalEndTimeMinutes};this.$emit("event-duration-change",{event:S,oldDate:n.originalEnd,originalEvent:C}),this.$emit("event-change",{event:S,originalEvent:C})}b&&(b.resizing=!1),n._eid=null,n.start=null,n.split=null,n.segment=null,n.originalEndTimeMinutes=null,n.originalEnd=null,n.endTimeMinutes=null,n.startCell=null,n.endCell=null}else d&&(c&&(this.emitWithEvent("event-drag-create",c),s.event.resizing=!1),s.start=null,s.split=null,s.event=null);u||a||this.unfocusEvent(),i.timeoutId&&!l&&(clearTimeout(i.timeoutId),i.timeoutId=null),r.timeoutId&&(clearTimeout(r.timeoutId),r.timeoutId=null);const f=typeof this.onEventClick=="function";if(h&&!o&&!l&&!c&&f){let p=this.view.events.find(y=>y._eid===e._eid);return!p&&this.isMonthView&&(p=this.view.outOfScopeEvents.find(y=>y._eid===e._eid)),p&&this.onEventClick(p,t)}},onKeyUp(t){t.keyCode===27&&this.cancelDelete()},eventResizing(t){const{resizeAnEvent:e}=this.domEvents,n=this.view.events.find(c=>c._eid===e._eid)||{segments:{}},{minutes:i,cursorCoords:r}=this.minutesAtCursor(t),s=n.segments&&n.segments[e.segment],{date:l,event:a}=this.utils,o=Math.max(i,this.timeFrom+1,(s||n).startTimeMinutes+1);if(n.endTimeMinutes=e.endTimeMinutes=o,this.snapToTime){const c=n.endTimeMinutes+this.snapToTime/2;n.endTimeMinutes=c-c%this.snapToTime}if(s&&(s.endTimeMinutes=n.endTimeMinutes),n.end.setHours(0,n.endTimeMinutes,n.endTimeMinutes===1440?-1:0,0),this.resizeX&&this.isWeekView){n.daysCount=l.countDays(n.start,n.end);const c=this.cellsEl,d=c.offsetWidth/c.childElementCount,u=Math.floor(r.x/d);if(e.startCell===null&&(e.startCell=u-(n.daysCount-1)),e.endCell!==u){e.endCell=u;const h=l.addDays(n.start,u-e.startCell),f=Math.max(l.countDays(n.start,h),1);if(f!==n.daysCount){let p=null;p=f>n.daysCount?a.addEventSegment(n):a.removeEventSegment(n),e.segment=p,n.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:n._eid,end:n.end,endTimeMinutes:n.endTimeMinutes})},eventDragCreation(t){const{dragCreateAnEvent:e}=this.domEvents,{start:n,startCursorY:i,split:r}=e,s=new Date(n),{minutes:l,cursorCoords:{y:a}}=this.minutesAtCursor(t);if(e.event||!(Math.abs(i-a)i._eid===(t._eid||e._eid));t._eid=null,e._eid=null,n&&(n.focused=!1,n.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:t}=this.domEvents;if(t._eid){const e=this.view.events.find(n=>n._eid===t._eid);e&&(e.deleting=!1),t._eid=null,t.timeoutId=null}},onEventTitleBlur(t,e){if(e.title===t.target.innerHTML)return;const n=e.title;e.title=t.target.innerHTML;const i=this.cleanupEvent(e);this.$emit("event-title-change",{event:i,oldTitle:n}),this.$emit("event-change",{event:i,originalEvent:{...i,title:n}})},updateMutableEvents(){const t=this.utils.date;this.mutableEvents=[],this.events.forEach(e=>{const n=typeof e.start=="string"?t.stringToDate(e.start):e.start,i=t.formatDateLite(n),r=t.dateToMinutes(n);let s=null;typeof e.end=="string"&&e.end.includes("24:00")?(s=new Date(e.end.replace(" 24:00","")),s.setHours(23,59,59,0)):s=typeof e.end=="string"?t.stringToDate(e.end):e.end;let l=t.formatDateLite(s),a=t.dateToMinutes(s);a&&a!==1440||(!this.time||typeof e.end=="string"&&e.end.length===10?s.setHours(23,59,59,0):s.setSeconds(s.getSeconds()-1),l=t.formatDateLite(s),a=1440);const o=i!==l;e=Object.assign({...this.utils.event.eventDefaults},e,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:o?{}:null,start:n,startTimeMinutes:r,end:s,endTimeMinutes:a,daysCount:o?t.countDays(n,s):1,class:e.class}),this.mutableEvents.push(e)})},minutesAtCursor(t){return this.utils.cell.minutesAtCursor(t)},createEvent(t,e,n={}){return this.utils.event.createAnEvent(t,e,n)},cleanupEvent(t){return t={...t},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(e=>{e in t&&delete t[e]}),t.repeat||delete t.repeat,t},emitWithEvent(t,e){this.$emit(t,this.cleanupEvent(e))},updateSelectedDate(t){if((t=t&&typeof t=="string"?this.utils.date.stringToDate(t):new Date(t))&&t instanceof Date){const{selectedDate:e}=this.view;e&&(this.transitionDirection=e.getTime()>t.getTime()?"left":"right"),t.setHours(0,0,0,0),e&&e.getTime()===t.getTime()||(this.view.selectedDate=t),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(t){const e=this.utils.date,n=this.firstCellDateWeekNumber+t,i=this.startWeekOnSunday?1:0;return n>52?e.getWeek(e.addDays(this.view.firstCellDate,7*t+i)):n},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,6e4)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const t=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],e=t.offsetWidth-t.children[0].offsetWidth;if(e){const n=document.createElement("style");n.id="vuecal-align-with-scrollbar",n.type="text/css",n.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${e}px}`,document.head.appendChild(n)}},cellOrSplitHasEvents:(t,e=null)=>t.length&&(!e&&t.length||e&&t.some(n=>n.split===e.id))},created(){this.utils.cell=new Yg(this),this.utils.event=new Gg(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,1e3*(60-this.now.getSeconds())))},mounted(){const t=this.utils.date,e="ontouchstart"in window,{resize:n,drag:i,create:r,delete:s,title:l}=this.editEvents,a=this.onEventClick&&typeof this.onEventClick=="function";(n||i||r||s||l||a)&&window.addEventListener(e?"touchend":"mouseup",this.onMouseUp),(n||i||r&&this.dragToCreateEvent)&&window.addEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),l&&window.addEventListener("keyup",this.onKeyUp),e&&(this.$refs.vuecal.oncontextmenu=function(d){d.preventDefault(),d.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const o=this.view.startDate,c={view:this.view.id,startDate:o,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:t.getWeek(this.startWeekOnSunday?t.addDays(o,1):o)}:{}};this.$emit("ready",c),this.ready=!0},beforeUnmount(){const t="ontouchstart"in window;window.removeEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(t?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(t=>this.views[t].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const t=this.utils.date,e=this.view.firstCellDate;return t.getWeek(this.startWeekOnSunday?t.addDays(e,1):e)},timeCells(){const t=[];for(let e=this.timeFrom,n=this.timeTo;e!t.hide)||[]).map((t,e)=>({...t,id:t.id||e+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let t=null;return this.hasSplits&&this.minSplitWidth?t=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(t=this.visibleDaysCount*this.minCellWidth),t},allDayBar(){let t=this.allDayBarHeight||null;return t&&!isNaN(t)&&(t+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:t}},minTimestamp(){let t=null;return this.minDate&&typeof this.minDate=="string"?t=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(t=this.minDate),t?t.getTime():null},maxTimestamp(){let t=null;return this.maxDate&&typeof this.maxDate=="string"?t=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.minDate instanceof Date&&(t=this.maxDate),t?t.getTime():null},weekDays(){let{weekDays:t,weekDaysShort:e=[]}=this.texts;return t=t.slice(0).map((n,i)=>({label:n,...e.length?{short:e[i]}:{},hide:this.hideWeekends&&i>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(i+1)})),this.startWeekOnSunday&&t.unshift(t.pop()),t},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(t=>({label:t}))},specialDayHours(){return this.specialHours&&Object.keys(this.specialHours).length?Array(7).fill("").map((t,e)=>{let n=this.specialHours[e+1]||[];return Array.isArray(n)||(n=[n]),t=[],n.forEach(({from:i,to:r,class:s,label:l},a)=>{t[a]={day:e+1,from:[null,void 0].includes(i)?null:1*i,to:[null,void 0].includes(r)?null:1*r,class:s||"",label:l||""}}),t}):{}},viewTitle(){const t=this.utils.date;let e="";const n=this.view.startDate,i=n.getFullYear(),r=n.getMonth();switch(this.view.id){case"years":e=this.texts.years;break;case"year":e=i;break;case"month":e=`${this.months[r].label} ${i}`;break;case"week":{const s=this.view.endDate,l=n.getFullYear();let a=this.texts.months[n.getMonth()];this.xsmall&&(a=a.substring(0,3));let o=`${a} ${l}`;if(s.getMonth()!==n.getMonth()){const c=s.getFullYear();let d=this.texts.months[s.getMonth()];this.xsmall&&(d=d.substring(0,3)),o=l===c?`${a} - ${d} ${l}`:this.small?`${a.substring(0,3)} ${l} - ${d.substring(0,3)} ${c}`:`${a} ${l} - ${d} ${c}`}e=`${this.texts.week} ${t.getWeek(this.startWeekOnSunday?t.addDays(n,1):n)} (${o})`;break}case"day":e=this.utils.date.formatDate(n,this.texts.dateFormat,this.texts)}return e},viewCells(){const t=this.utils.date;let e=[],n=null,i=!1;this.watchRealTime||(this.now=new Date);const r=this.now;switch(this.view.id){case"years":n=this.view.startDate.getFullYear(),e=Array.apply(null,Array(25)).map((s,l)=>{const a=new Date(n+l,0,1),o=new Date(n+l+1,0,1);return o.setSeconds(-1),{startDate:a,formattedDate:t.formatDateLite(a),endDate:o,content:n+l,current:n+l===r.getFullYear()}});break;case"year":n=this.view.startDate.getFullYear(),e=Array.apply(null,Array(12)).map((s,l)=>{const a=new Date(n,l,1),o=new Date(n,l+1,1);return o.setSeconds(-1),{startDate:a,formattedDate:t.formatDateLite(a),endDate:o,content:this.xsmall?this.months[l].label.substr(0,3):this.months[l].label,current:l===r.getMonth()&&n===r.getFullYear()}});break;case"month":{const s=this.view.startDate.getMonth(),l=new Date(this.view.firstCellDate);i=!1,e=Array.apply(null,Array(42)).map((a,o)=>{const c=t.addDays(l,o),d=new Date(c);d.setHours(23,59,59,0);const u=!i&&t.isToday(c)&&!i++;return{startDate:c,formattedDate:t.formatDateLite(c),endDate:d,content:c.getDate(),today:u,outOfScope:c.getMonth()!==s,class:`vuecal__cell--day${c.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(e=e.filter(a=>{const o=a.startDate.getDay()||7;return!(this.hideWeekends&&o>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(o))}));break}case"week":{i=!1;const s=this.view.startDate,l=this.weekDays;e=l.map((a,o)=>{const c=t.addDays(s,this.startWeekOnSunday?o-1:o),d=new Date(c);d.setHours(23,59,59,0);const u=(c.getDay()||7)-1;return{startDate:c,formattedDate:t.formatDateLite(c),endDate:d,today:!i&&t.isToday(c)&&!i++,specialHours:this.specialDayHours[u]||[]}}).filter((a,o)=>!l[o].hide);break}case"day":{const s=this.view.startDate,l=new Date(this.view.startDate);l.setHours(23,59,59,0);const a=(s.getDay()||7)-1;e=[{startDate:s,formattedDate:t.formatDateLite(s),endDate:l,today:t.isToday(s),specialHours:this.specialDayHours[a]||[]}];break}}return e},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((t,e)=>t+e.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:t,dragAnEvent:e,dragCreateAnEvent:n}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":t._eid,"vuecal--drag-creating-event":n.event,"vuecal--dragging-event":e._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(t,e){this.updateMutableEvents(t),this.addEventsToView()},deep:!0},locale(t){this.loadLocale(t)},selectedDate(t){this.updateSelectedDate(t)},activeView(t){this.switchView(t)}}},Xp=Ke(Zp,[["render",function(t,e,n,i,r,s){const l=ee("vuecal-header"),a=ee("all-day-bar"),o=ee("weekdays-headings"),c=ee("vuecal-cell");return E(),A("div",{class:J(["vuecal__flex vuecal",s.cssClasses]),column:"",ref:"vuecal",lang:n.locale},[D(l,{options:t.$props,"edit-events":s.editEvents,"view-props":{views:s.views,weekDaysInHeader:s.weekDaysInHeader},"week-days":s.weekDays,"has-splits":s.hasSplits,"day-splits":s.daySplits,"switch-to-narrower-view":s.switchToNarrowerView},xn({"arrow-prev":_(()=>[N(t.$slots,"arrow-prev",{},()=>[Y(" "),_p,Y(" ")])]),"arrow-next":_(()=>[N(t.$slots,"arrow-next",{},()=>[Y(" "),Ep,Y(" ")])]),"today-button":_(()=>[N(t.$slots,"today-button",{},()=>[P("span",wp,I(r.texts.today),1)])]),title:_(()=>[N(t.$slots,"title",{title:s.viewTitle,view:r.view},()=>[Y(I(s.viewTitle),1)])]),_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:_(({heading:d,view:u})=>[N(t.$slots,"weekday-heading",{heading:d,view:u})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:_(({split:d})=>[N(t.$slots,"split-label",{split:d,view:r.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),n.hideBody?k("",!0):(E(),A("div",Ap,[D(Vt,{name:`slide-fade--${r.transitionDirection}`,appear:n.transitions},{default:_(()=>[(E(),A("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:!!n.transitions&&r.view.id,column:""},[n.showAllDayEvents&&s.hasTimeColumn&&(!s.cellOrSplitMinWidth||s.isDayView&&!n.minSplitWidth)?(E(),j(a,wi(He({key:0},s.allDayBar)),{event:_(({event:d,view:u})=>[N(t.$slots,"event",{view:u,event:d},()=>[s.editEvents.title&&d.titleEditable?(E(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>s.onEventTitleBlur(h,d),innerHTML:d.title},null,40,Sp)):d.title?(E(),A("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Cp)):k("",!0),!d.content||s.hasShortEvents||s.isShortMonthView?k("",!0):(E(),A("div",{key:2,class:"vuecal__event-content",innerHTML:d.content},null,8,Tp))])]),_:3},16)):k("",!0),P("div",{class:J(["vuecal__bg",{vuecal__flex:!s.hasTimeColumn}]),column:""},[P("div",Rp,[s.hasTimeColumn?(E(),A("div",kp,[n.showAllDayEvents&&s.cellOrSplitMinWidth&&(!s.isDayView||n.minSplitWidth)?(E(),A("div",{key:0,class:"vuecal__all-day-text",style:ae({height:s.allDayBar.height})},[P("span",null,I(r.texts.allDay),1)],4)):k("",!0),(E(!0),A(Q,null,Z(s.timeCells,(d,u)=>(E(),A("div",{class:"vuecal__time-cell",key:u,style:ae(`height: ${n.timeCellHeight}px`)},[N(t.$slots,"time-cell",{hours:d.hours,minutes:d.minutes},()=>[Mp,P("span",xp,I(d.label),1)])],4))),128))])):k("",!0),n.showWeekNumbers&&s.isMonthView?(E(),A("div",Ip,[(E(),A(Q,null,Z(6,d=>P("div",{class:"vuecal__flex vuecal__week-number-cell",key:d,grow:""},[N(t.$slots,"week-number-cell",{week:s.getWeekNumber(d-1)},()=>[Y(I(s.getWeekNumber(d-1)),1)])])),64))])):k("",!0),P("div",{class:J(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",wrap:!s.cellOrSplitMinWidth||!s.isWeekView,column:!!s.cellOrSplitMinWidth},[s.cellOrSplitMinWidth&&s.isWeekView?(E(),j(o,{key:0,"transition-direction":r.transitionDirection,"week-days":s.weekDays,"switch-to-narrower-view":s.switchToNarrowerView,style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},xn({_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:_(({heading:d,view:u})=>[N(t.$slots,"weekday-heading",{heading:d,view:u})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:_(({split:d})=>[N(t.$slots,"split-label",{split:d,view:r.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):s.hasSplits&&n.stickySplitLabels&&n.minSplitWidth?(E(),A("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[(E(!0),A(Q,null,Z(s.daySplits,(d,u)=>(E(),A("div",{class:J(["day-split-header",d.class||!1]),key:u},[N(t.$slots,"split-label",{split:d,view:r.view.id},()=>[Y(I(d.label),1)])],2))),128))],4)):k("",!0),n.showAllDayEvents&&s.hasTimeColumn&&(s.isWeekView&&s.cellOrSplitMinWidth||s.isDayView&&s.hasSplits&&n.minSplitWidth)?(E(),j(a,wi(He({key:2},s.allDayBar)),{event:_(({event:d,view:u})=>[N(t.$slots,"event",{view:u,event:d},()=>[s.editEvents.title&&d.titleEditable?(E(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>s.onEventTitleBlur(h,d),innerHTML:d.title},null,40,Np)):d.title?(E(),A("div",{key:1,class:"vuecal__event-title",innerHTML:d.title},null,8,Hp)):k("",!0),!d.content||s.hasShortEvents||s.isShortMonthView?k("",!0):(E(),A("div",{key:2,class:"vuecal__event-content",innerHTML:d.content},null,8,Pp))])]),_:3},16)):k("",!0),P("div",{class:"vuecal__flex",ref:d=>r.cellsEl=d,grow:"",wrap:!s.cellOrSplitMinWidth||!s.isWeekView,style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[(E(!0),A(Q,null,Z(s.viewCells,(d,u)=>(E(),j(c,{key:u,options:t.$props,"edit-events":s.editEvents,data:d,"cell-width":n.hideWeekdays.length&&(s.isWeekView||s.isMonthView)&&s.cellWidth,"min-timestamp":s.minTimestamp,"max-timestamp":s.maxTimestamp,"cell-splits":s.hasSplits&&s.daySplits||[]},{"cell-content":_(({events:h,split:f,selectCell:p})=>[N(t.$slots,"cell-content",{cell:d,view:r.view,goNarrower:p,events:h},()=>[f&&!n.stickySplitLabels?(E(),A("div",{key:0,class:"split-label",innerHTML:f.label},null,8,Lp)):k("",!0),d.content?(E(),A("div",{key:1,class:"vuecal__cell-date",innerHTML:d.content},null,8,Bp)):k("",!0),(s.isMonthView&&!n.eventsOnMonthView||s.isYearsOrYearView&&n.eventsCountOnYearView)&&h.length?(E(),A("div",Wp,[N(t.$slots,"events-count",{view:r.view,events:h},()=>[Y(I(h.length),1)])])):k("",!0),!s.cellOrSplitHasEvents(h,f)&&s.isWeekOrDayView?(E(),A("div",jp,[N(t.$slots,"no-event",{},()=>[Y(I(r.texts.noEvent),1)])])):k("",!0)])]),event:_(({event:h,view:f})=>[N(t.$slots,"event",{view:f,event:h},()=>[s.editEvents.title&&h.titleEditable?(E(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:p=>s.onEventTitleBlur(p,h),innerHTML:h.title},null,40,Fp)):h.title?(E(),A("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,Up)):k("",!0),!n.time||h.allDay||s.isMonthView&&(h.allDay||n.showAllDayEvents==="short")||s.isShortMonthView?k("",!0):(E(),A("div",zp,[Y(I(r.utils.date.formatTime(h.start,s.TimeFormat)),1),h.endTimeMinutes?(E(),A("span",$p," - "+I(r.utils.date.formatTime(h.end,s.TimeFormat,null,!0)),1)):k("",!0),h.daysCount>1&&(h.segments[d.formattedDate]||{}).isFirstDay?(E(),A("small",Yp," +"+I(h.daysCount-1)+I((r.texts.day[0]||"").toLowerCase()),1)):k("",!0)])),!h.content||s.isMonthView&&h.allDay&&n.showAllDayEvents==="short"||s.isShortMonthView?k("",!0):(E(),A("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,Gp))])]),"no-event":_(()=>[N(t.$slots,"no-event",{},()=>[Y(I(r.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,Vp)],10,Op)])],2)]))]),_:3},8,["name","appear"]),r.ready?k("",!0):(E(),A("div",qp,Qp))]))],10,Dp)}]]);const Jp={components:{VueCal:Xp},setup(){const t=H([]);function e(){ce.get("api/general_vacation/generalvacation/").then(i=>{console.log(i.data,"----------------------");for(let r in i.data)r=="План-график"&&i.data[r].map(s=>{t.value.push({name:s.name,start:s.start_work_period,end:s.end_work_period,content:s.name})})})}yt(()=>{e()});const n=H(null);return{events:t,selectedDate:n,f_generalvacation:e}}};function Kp(t,e,n,i,r,s){const l=ee("vue-cal");return E(),j(ie,null,{default:_(()=>[D(te,{class:"flex-column"},{default:_(()=>[D(K,{class:"h-100"},{default:_(()=>[D(l,{locale:"ru",xsmall:"",time:!1,"hide-view-selector":"","disable-views":["years","year","week","day"],"events-count-on-year-view":"","active-view":"month",events:i.events,todayButton:"",onCellFocus:e[1]||(e[1]=a=>i.selectedDate=a)},{"arrow-prev":_(()=>[D(fe,{icon:"mdi-menu-left"})]),"arrow-next":_(()=>[D(fe,{icon:"mdi-menu-right"})]),"today-button":_(()=>[D(In,{text:"Сегодня",location:"bottom"},{activator:_(({props:a})=>[D(fe,He({onClick:e[0]||(e[0]=o=>i.selectedDate=new Date)},a,{icon:"mdi-crosshairs-gps",size:"x-small",class:"pt-1 pr-3",color:"more_details_btn"}),null,16)]),_:1})]),_:1},8,["events"])]),_:1})]),_:1}),D(te,null,{default:_(()=>[D(K,{class:"h-100"},{default:_(()=>[D(l,{locale:"ru",xsmall:"",time:!1,"hide-view-selector":"",todayButton:"",split:"",hideTitleBar:"",events:i.events,"active-view":"day","disable-views":["years","year","month","week"],"selected-date":i.selectedDate},{"arrow-prev":_(()=>[D(fe,{icon:"mdi-menu-left"})]),"arrow-next":_(()=>[D(fe,{icon:"mdi-menu-right"})]),"today-button":_(()=>[D(In,{text:"Сегодня",location:"bottom"},{activator:_(({props:a})=>[D(fe,He(a,{icon:"mdi-crosshairs-gps",size:"x-small",class:"pt-1 pr-3",color:"more_details_btn"}),null,16)]),_:1})]),_:1},8,["events","selected-date"])]),_:1})]),_:1})]),_:1})}const em=Re(Jp,[["render",Kp]]);const tm={components:{CarouselList:Pa,CarouselNumbers:Fa,CalendarFull:Dg,NewsListHome:Og,LoadRound:xa,DigitalLetna:Ug,EventCalendar:em},setup(){const t=fa(),e=H([]),n=H(null);ga();const i=Ls();yt(()=>{r()});const r=()=>{ce.get("api/watcher/selectedlinks/").then(s=>{e.value=s.data})};return{accountStore:i,appStore:t,favoritLinks:r,favorit:e,toggle:n}}};function nm(t,e,n,i,r,s){const l=ee("Carousel-list"),a=ee("event-calendar"),o=ee("digital-letna"),c=ee("News-list-home");return E(),j(js,{fluid:"",class:"d-flex mx-0"},{default:_(()=>[D(ie,null,{default:_(()=>[D(te,{class:"d-flex flex-column",lg:"7"},{default:_(()=>[D(ie,{class:"flex-grow-0"},{default:_(()=>[D(te,{class:"pr-0 pb-0"},{default:_(()=>[D(l)]),_:1})]),_:1}),D(ie,null,{default:_(()=>[D(te,{class:"pr-0 pt-0 flex-column"},{default:_(()=>[D(K,{class:"h-100 bg-transparent pa-2 d-flex flex-column"},{default:_(()=>[D(ie,{class:"d-flex"},{default:_(()=>[D(te,{class:"flex-column d-flex"},{default:_(()=>[D(a)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),D(te,{class:"flex-column d-flex ma-3"},{default:_(()=>[D(ie,null,{default:_(()=>[D(te,{cols:"3",class:"flex-grow-0 pa-0 pb-3"},{default:_(()=>[D(o)]),_:1}),D(te,{class:"flex-column d-flex pr-0 pt-0 pb-0"},{default:_(()=>[D(K,{class:"flex-column pik overflow-auto"},{default:_(()=>[D(c)]),_:1})]),_:1})]),_:1}),D(ie,{class:"flex-grow-0"},{default:_(()=>[D(te,{class:"pa-0"},{default:_(()=>[D(K,{class:"flex-colmn"},{default:_(()=>[D(ka,{modelValue:i.toggle,"onUpdate:modelValue":e[0]||(e[0]=d=>i.toggle=d),divided:"",variant:"outlined"},{default:_(()=>[(E(!0),A(Q,null,Z(i.favorit,d=>(E(),j(In,{key:d,text:d.page,location:"top"},{activator:_(({props:u})=>[D(Jt,He(u,{icon:d.ico,to:d.fullPath}),null,16,["icon","to"])]),_:2},1032,["text"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const mm=Re(tm,[["render",nm]]);export{mm as default}; + */let nt,ks,Ms,le,it={},Ue={};class Yg{constructor(e){ve(this,"_vuecal",null),ve(this,"selectCell",(n=!1,i,r)=>{this._vuecal.$emit("cell-click",r?{date:i,split:r}:i),this._vuecal.clickToNavigate||n?this._vuecal.switchToNarrowerView():this._vuecal.dblclickToNavigate&&"ontouchstart"in window&&(this._vuecal.domEvents.dblTapACell.taps++,setTimeout(()=>this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.domEvents.dblTapACell.timeout),this._vuecal.domEvents.dblTapACell.taps>=2&&(this._vuecal.domEvents.dblTapACell.taps=0,this._vuecal.switchToNarrowerView(),this._vuecal.$emit("cell-dblclick",r?{date:i,split:r}:i)))}),ve(this,"keyPressEnterCell",(n,i)=>{this._vuecal.$emit("cell-keypress-enter",i?{date:n,split:i}:n),this._vuecal.switchToNarrowerView()}),ve(this,"getPosition",n=>{const{left:i,top:r}=this._vuecal.cellsEl.getBoundingClientRect(),{clientX:s,clientY:l}="ontouchstart"in window&&n.touches?n.touches[0]:n;return{x:s-i,y:l-r}}),ve(this,"minutesAtCursor",n=>{let i=0,r={x:0,y:0};const{timeStep:s,timeCellHeight:l,timeFrom:a}=this._vuecal.$props;return typeof n=="number"?i=n:typeof n=="object"&&(r=this.getPosition(n),i=Math.round(r.y*s/parseInt(l)+a)),{minutes:Math.max(Math.min(i,1440),0),cursorCoords:r}}),this._vuecal=e}}let z,$,kn;class Gg{constructor(e,n){ve(this,"_vuecal",null),ve(this,"eventDefaults",{_eid:null,start:"",startTimeMinutes:0,end:"",endTimeMinutes:0,title:"",content:"",background:!1,allDay:!1,segments:null,repeat:null,daysCount:1,deletable:!0,deleting:!1,titleEditable:!0,resizable:!0,resizing:!1,draggable:!0,dragging:!1,draggingStatic:!1,focused:!1,class:""}),this._vuecal=e,z=n}createAnEvent(e,n,i){if(typeof e=="string"&&(e=z.stringToDate(e)),!(e instanceof Date))return!1;const r=z.dateToMinutes(e),s=r+(n=1*n||120),l=z.addMinutes(new Date(e),n);i.end&&(typeof i.end=="string"&&(i.end=z.stringToDate(i.end)),i.endTimeMinutes=z.dateToMinutes(i.end));const a={...this.eventDefaults,_eid:`${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,start:e,startTimeMinutes:r,end:l,endTimeMinutes:s,segments:null,...i};return typeof this._vuecal.onEventCreate!="function"||this._vuecal.onEventCreate(a,()=>this.deleteAnEvent(a))?(a.startDateF!==a.endDateF&&(a.daysCount=z.countDays(a.start,a.end)),this._vuecal.mutableEvents.push(a),this._vuecal.addEventsToView([a]),this._vuecal.emitWithEvent("event-create",a),this._vuecal.$emit("event-change",{event:this._vuecal.cleanupEvent(a),originalEvent:null}),a):void 0}addEventSegment(e){e.segments||(e.segments={},e.segments[z.formatDateLite(e.start)]={start:e.start,startTimeMinutes:e.startTimeMinutes,endTimeMinutes:1440,isFirstDay:!0,isLastDay:!1});const n=e.segments[z.formatDateLite(e.end)];n&&(n.isLastDay=!1,n.endTimeMinutes=1440);const i=z.addDays(e.end,1),r=z.formatDateLite(i);return i.setHours(0,0,0,0),e.segments[r]={start:i,startTimeMinutes:0,endTimeMinutes:e.endTimeMinutes,isFirstDay:!1,isLastDay:!0},e.end=z.addMinutes(i,e.endTimeMinutes),e.daysCount=Object.keys(e.segments).length,r}removeEventSegment(e){let n=Object.keys(e.segments).length;if(n<=1)return z.formatDateLite(e.end);delete e.segments[z.formatDateLite(e.end)],n--;const i=z.subtractDays(e.end,1),r=z.formatDateLite(i),s=e.segments[r];return n?s&&(s.isLastDay=!0,s.endTimeMinutes=e.endTimeMinutes):e.segments=null,e.daysCount=n||1,e.end=i,r}createEventSegments(e,n,i){const r=n.getTime(),s=i.getTime();let l,a,o,d=e.start.getTime(),c=e.end.getTime(),u=!1;for(e.end.getHours()||e.end.getMinutes()||(c-=1e3),e.segments={},e.repeat?(l=r,a=Math.min(s,e.repeat.until?z.stringToDate(e.repeat.until).getTime():s)):(l=Math.max(r,d),a=Math.min(s,c));l<=a;){let h=!1;const f=z.addDays(new Date(l),1).setHours(0,0,0,0);let p,b,y,v;if(e.repeat){const w=new Date(l),S=z.formatDateLite(w);(u||e.occurrences&&e.occurrences[S])&&(u||(d=e.occurrences[S].start,o=new Date(d).setHours(0,0,0,0),c=e.occurrences[S].end),u=!0,h=!0),p=l===o,b=S===z.formatDateLite(new Date(c)),y=new Date(p?d:l),v=z.formatDateLite(y),b&&(u=!1)}else h=!0,p=l===d,b=a===c&&f>a,y=p?e.start:new Date(l),v=z.formatDateLite(p?e.start:y);h&&(e.segments[v]={start:y,startTimeMinutes:p?e.startTimeMinutes:0,endTimeMinutes:b?e.endTimeMinutes:1440,isFirstDay:p,isLastDay:b}),l=f}return e}deleteAnEvent(e){this._vuecal.emitWithEvent("event-delete",e),this._vuecal.mutableEvents=this._vuecal.mutableEvents.filter(n=>n._eid!==e._eid),this._vuecal.view.events=this._vuecal.view.events.filter(n=>n._eid!==e._eid)}checkCellOverlappingEvents(e,n){kn=e.slice(0),$={},e.forEach(r=>{kn.shift(),$[r._eid]||($[r._eid]={overlaps:[],start:r.start,position:0}),$[r._eid].position=0,kn.forEach(s=>{$[s._eid]||($[s._eid]={overlaps:[],start:s.start,position:0});const l=this.eventInRange(s,r.start,r.end),a=n.overlapsPerTimeStep?z.datesInSameTimeStep(r.start,s.start,n.timeStep):1;if(r.background||r.allDay||s.background||s.allDay||!l||!a){let o,d;(o=($[r._eid]||{overlaps:[]}).overlaps.indexOf(s._eid))>-1&&$[r._eid].overlaps.splice(o,1),(d=($[s._eid]||{overlaps:[]}).overlaps.indexOf(r._eid))>-1&&$[s._eid].overlaps.splice(d,1),$[s._eid].position--}else $[r._eid].overlaps.push(s._eid),$[r._eid].overlaps=[...new Set($[r._eid].overlaps)],$[s._eid].overlaps.push(r._eid),$[s._eid].overlaps=[...new Set($[s._eid].overlaps)],$[s._eid].position++})});let i=0;for(const r in $){const s=$[r],l=s.overlaps.map(a=>({id:a,start:$[a].start}));l.push({id:r,start:s.start}),l.sort((a,o)=>a.starto.start?1:a.id>o.id?-1:1),s.position=l.findIndex(a=>a.id===r),i=Math.max(this.getOverlapsStreak(s,$),i)}return[$,i]}getOverlapsStreak(e,n={}){let i=e.overlaps.length+1,r=[];return e.overlaps.forEach(s=>{r.includes(s)||e.overlaps.filter(l=>l!==s).forEach(l=>{n[l].overlaps.includes(s)||r.push(l)})}),r=[...new Set(r)],i-=r.length,i}eventInRange(e,n,i){if(e.allDay||!this._vuecal.time){const l=new Date(e.start).setHours(0,0,0,0);return new Date(e.end).setHours(23,59,0,0)>=new Date(n).setHours(0,0,0,0)&&l<=new Date(i).setHours(0,0,0,0)}const r=e.start.getTime(),s=e.end.getTime();return rn.getTime()}}const qg={class:"vuecal__flex vuecal__weekdays-headings"},Qg=["onClick"],Zg={class:"vuecal__flex weekday-label",grow:""},Xg={class:"full"},Jg={class:"small"},Kg={class:"xsmall"},ep={key:0},tp={key:0,class:"vuecal__flex vuecal__split-days-headers",grow:""},Ke=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},Tl=Ke({inject:["vuecal","utils","view"],props:{transitionDirection:{type:String,default:"right"},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},methods:{selectCell(t,e){t.getTime()!==this.view.selectedDate.getTime()&&(this.view.selectedDate=t),this.utils.cell.selectCell(!1,t,e)},cleanupHeading:t=>({label:t.full,date:t.date,...t.today?{today:t.today}:{}})},computed:{headings(){if(!["month","week"].includes(this.view.id))return[];let t=!1;return this.weekDays.map((e,n)=>{const i=this.utils.date.addDays(this.view.startDate,this.vuecal.startWeekOnSunday?n-1:n);return{hide:e.hide,full:e.label,small:e.short||e.label.substr(0,3),xsmall:e.short||e.label.substr(0,1),...this.view.id==="week"?{dayOfMonth:i.getDate(),date:i,today:!t&&this.utils.date.isToday(i)&&!t++}:{}}})},cellWidth(){return 100/(7-this.weekDays.reduce((t,e)=>t+e.hide,0))},weekdayCellStyles(){return{...this.vuecal.hideWeekdays.length?{width:`${this.cellWidth}%`}:{}}},cellHeadingsClickable(){return this.view.id==="week"&&(this.vuecal.clickToNavigate||this.vuecal.dblclickToNavigate)}}},[["render",function(t,e,n,i,r,s){return E(),A("div",qg,[(E(!0),A(Q,null,Z(s.headings,(l,a)=>(E(),A(Q,{key:a},[l.hide?k("",!0):(E(),A("div",{key:0,class:J(["vuecal__flex vuecal__heading",{today:l.today,clickable:s.cellHeadingsClickable}]),style:ae(s.weekdayCellStyles),onClick:o=>s.view.id==="week"&&s.selectCell(l.date,o),onDblclick:e[0]||(e[0]=o=>s.view.id==="week"&&s.vuecal.dblclickToNavigate&&n.switchToNarrowerView())},[_(Vt,{name:`slide-fade--${n.transitionDirection}`,appear:s.vuecal.transitions},{default:D(()=>[(E(),A("div",{class:"vuecal__flex",column:"",key:!!s.vuecal.transitions&&`${a}-${l.dayOfMonth}`},[H("div",Zg,[N(t.$slots,"weekday-heading",{heading:s.cleanupHeading(l),view:s.view},()=>[H("span",Xg,I(l.full),1),H("span",Jg,I(l.small),1),H("span",Kg,I(l.xsmall),1),l.dayOfMonth?(E(),A("span",ep," "+I(l.dayOfMonth),1)):k("",!0)])]),s.vuecal.hasSplits&&s.vuecal.stickySplitLabels?(E(),A("div",tp,[(E(!0),A(Q,null,Z(s.vuecal.daySplits,(o,d)=>(E(),A("div",{class:J(["day-split-header",o.class||!1]),key:d},[N(t.$slots,"split-label",{split:o,view:s.view},()=>[Y(I(o.label),1)])],2))),128))])):k("",!0)]))]),_:2},1032,["name","appear"])],46,Qg))],64))),128))])}]]),np={class:"vuecal__header"},ip={key:0,class:"vuecal__flex vuecal__menu",role:"tablist","aria-label":"Calendar views navigation"},sp=["onDragenter","onDragleave","onClick","aria-label"],rp={key:1,class:"vuecal__title-bar"},lp=["aria-label"],ap={class:"vuecal__flex vuecal__title",grow:""},op=["aria-label"],dp={key:0,class:"vuecal__flex vuecal__split-days-headers"},cp=Ke({inject:["vuecal","previous","next","switchView","updateSelectedDate","modules","view"],components:{WeekdaysHeadings:Tl},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},hasSplits:{type:[Boolean,Number],default:!1},daySplits:{type:Array,default:()=>[]},viewProps:{type:Object,default:()=>({})},weekDays:{type:Array,default:()=>[]},switchToNarrowerView:{type:Function,default:()=>{}}},data:()=>({highlightedControl:null}),methods:{goToToday(){this.updateSelectedDate(new Date(new Date().setHours(0,0,0,0)))},switchToBroaderView(){this.transitionDirection="left",this.broaderView&&this.switchView(this.broaderView)}},computed:{transitionDirection:{get(){return this.vuecal.transitionDirection},set(t){this.vuecal.transitionDirection=t}},broaderView(){const{enabledViews:t}=this.vuecal;return t[t.indexOf(this.view.id)-1]},showDaySplits(){return this.view.id==="day"&&this.hasSplits&&this.options.stickySplitLabels&&!this.options.minSplitWidth},dnd(){return this.modules.dnd}}},[["render",function(t,e,n,i,r,s){const l=ee("weekdays-headings");return E(),A("div",np,[n.options.hideViewSelector?k("",!0):(E(),A("div",ip,[(E(!0),A(Q,null,Z(n.viewProps.views,(a,o)=>(E(),A(Q,{key:o},[a.enabled?(E(),A("button",{key:0,class:J(["vuecal__view-btn",{"vuecal__view-btn--active":s.view.id===o,"vuecal__view-btn--highlighted":t.highlightedControl===o}]),type:"button",onDragenter:d=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(d,o,t.$data),onDragleave:d=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(d,o,t.$data),onClick:d=>s.switchView(o,null,!0),"aria-label":`${a.label} view`},I(a.label),43,sp)):k("",!0)],64))),128))])),n.options.hideTitleBar?k("",!0):(E(),A("div",rp,[H("button",{class:J(["vuecal__arrow vuecal__arrow--prev",{"vuecal__arrow--highlighted":t.highlightedControl==="previous"}]),type:"button",onClick:e[0]||(e[0]=(...a)=>s.previous&&s.previous(...a)),onDragenter:e[1]||(e[1]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"previous",t.$data)),onDragleave:e[2]||(e[2]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"previous",t.$data)),"aria-label":`Previous ${s.view.id}`},[N(t.$slots,"arrow-prev")],42,lp),H("div",ap,[_(Vt,{name:n.options.transitions?`slide-fade--${s.transitionDirection}`:""},{default:D(()=>[(E(),j(ua(s.broaderView?"button":"span"),{type:!!s.broaderView&&"button",key:`${s.view.id}${s.view.startDate.toString()}`,onClick:e[3]||(e[3]=a=>!!s.broaderView&&s.switchToBroaderView()),"aria-label":!!s.broaderView&&`Go to ${s.broaderView} view`},{default:D(()=>[N(t.$slots,"title")]),_:3},8,["type","aria-label"]))]),_:3},8,["name"])]),n.options.todayButton?(E(),A("button",{key:0,class:J(["vuecal__today-btn",{"vuecal__today-btn--highlighted":t.highlightedControl==="today"}]),type:"button",onClick:e[4]||(e[4]=(...a)=>s.goToToday&&s.goToToday(...a)),onDragenter:e[5]||(e[5]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"today",t.$data)),onDragleave:e[6]||(e[6]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"today",t.$data)),"aria-label":"Today"},[N(t.$slots,"today-button")],34)):k("",!0),H("button",{class:J(["vuecal__arrow vuecal__arrow--next",{"vuecal__arrow--highlighted":t.highlightedControl==="next"}]),type:"button",onClick:e[7]||(e[7]=(...a)=>s.next&&s.next(...a)),onDragenter:e[8]||(e[8]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragEnter(a,"next",t.$data)),onDragleave:e[9]||(e[9]=a=>n.editEvents.drag&&s.dnd&&s.dnd.viewSelectorDragLeave(a,"next",t.$data)),"aria-label":`Next ${s.view.id}`},[N(t.$slots,"arrow-next")],42,op)])),n.viewProps.weekDaysInHeader?(E(),j(l,{key:2,"week-days":n.weekDays,"transition-direction":s.transitionDirection,"switch-to-narrower-view":n.switchToNarrowerView},xn({_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:D(({heading:a,view:o})=>[N(t.$slots,"weekday-heading",{heading:a,view:o})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:D(({split:a})=>[N(t.$slots,"split-label",{split:a,view:s.view})]),key:"1"}:void 0]),1032,["week-days","transition-direction","switch-to-narrower-view"])):k("",!0),_(Vt,{name:`slide-fade--${s.transitionDirection}`},{default:D(()=>[s.showDaySplits?(E(),A("div",dp,[(E(!0),A(Q,null,Z(n.daySplits,(a,o)=>(E(),A("div",{class:J(["day-split-header",a.class||!1]),key:o},[N(t.$slots,"split-label",{split:a,view:s.view.id},()=>[Y(I(a.label),1)])],2))),128))])):k("",!0)]),_:3},8,["name"])])}]]),up=["draggable"],hp={inject:["vuecal","utils","modules","view","domEvents","editEvents"],props:{cellFormattedDate:{type:String,default:""},event:{type:Object,default:()=>({})},cellEvents:{type:Array,default:()=>[]},overlaps:{type:Array,default:()=>[]},eventPosition:{type:Number,default:0},overlapsStreak:{type:Number,default:0},allDay:{type:Boolean,default:!1}},data:()=>({touch:{dragThreshold:30,startX:0,startY:0,dragged:!1}}),methods:{onMouseDown(t,e=!1){if("ontouchstart"in window&&!e)return!1;const{clickHoldAnEvent:n,focusAnEvent:i,resizeAnEvent:r,dragAnEvent:s}=this.domEvents;if(i._eid===this.event._eid&&n._eid===this.event._eid)return!0;this.focusEvent(),n._eid=null,this.vuecal.editEvents.delete&&this.event.deletable&&(n.timeoutId=setTimeout(()=>{r._eid||s._eid||(n._eid=this.event._eid,this.event.deleting=!0)},n.timeout))},onMouseUp(t){this.domEvents.focusAnEvent._eid!==this.event._eid||this.touch.dragged||(this.domEvents.focusAnEvent.mousedUp=!0),this.touch.dragged=!1},onMouseEnter(t){t.preventDefault(),this.vuecal.emitWithEvent("event-mouse-enter",this.event)},onMouseLeave(t){t.preventDefault(),this.vuecal.emitWithEvent("event-mouse-leave",this.event)},onTouchMove(t){if(typeof this.vuecal.onEventClick!="function")return;const{clientX:e,clientY:n}=t.touches[0],{startX:i,startY:r,dragThreshold:s}=this.touch;(Math.abs(e-i)>s||Math.abs(n-r)>s)&&(this.touch.dragged=!0)},onTouchStart(t){this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY,this.onMouseDown(t,!0)},onEnterKeypress(t){if(typeof this.vuecal.onEventClick=="function")return this.vuecal.onEventClick(this.event,t)},onDblClick(t){if(typeof this.vuecal.onEventDblclick=="function")return this.vuecal.onEventDblclick(this.event,t)},onDragStart(t){this.dnd&&this.dnd.eventDragStart(t,this.event)},onDragEnd(){this.dnd&&this.dnd.eventDragEnd(this.event)},onResizeHandleMouseDown(){this.focusEvent(),this.domEvents.dragAnEvent._eid=null,this.domEvents.resizeAnEvent=Object.assign(this.domEvents.resizeAnEvent,{_eid:this.event._eid,start:(this.segment||this.event).start,split:this.event.split||null,segment:!!this.segment&&this.utils.date.formatDateLite(this.segment.start),originalEnd:new Date((this.segment||this.event).end),originalEndTimeMinutes:this.event.endTimeMinutes}),this.event.resizing=!0},deleteEvent(t=!1){if("ontouchstart"in window&&!t)return!1;this.utils.event.deleteAnEvent(this.event)},touchDeleteEvent(t){this.deleteEvent(!0)},cancelDeleteEvent(){this.event.deleting=!1},focusEvent(){const{focusAnEvent:t}=this.domEvents,e=t._eid;if(e!==this.event._eid){if(e){const n=this.view.events.find(i=>i._eid===e);n&&(n.focused=!1)}this.vuecal.cancelDelete(),this.vuecal.emitWithEvent("event-focus",this.event),t._eid=this.event._eid,this.event.focused=!0}}},computed:{eventDimensions(){const{startTimeMinutes:t,endTimeMinutes:e}=this.segment||this.event;let n=t-this.vuecal.timeFrom;const i=Math.max(Math.round(n*this.vuecal.timeCellHeight/this.vuecal.timeStep),0);n=Math.min(e,this.vuecal.timeTo)-this.vuecal.timeFrom;const r=Math.round(n*this.vuecal.timeCellHeight/this.vuecal.timeStep);return{top:i,height:Math.max(r-i,5)}},eventStyles(){if(this.event.allDay||!this.vuecal.time||!this.event.endTimeMinutes||this.view.id==="month"||this.allDay)return{};let t=100/Math.min(this.overlaps.length+1,this.overlapsStreak),e=100/(this.overlaps.length+1)*this.eventPosition;this.vuecal.minEventWidth&&ts.focusEvent&&s.focusEvent(...l)),onKeypress:e[5]||(e[5]=_i(Fe((...l)=>s.onEnterKeypress&&s.onEnterKeypress(...l),["stop"]),["enter"])),onMouseenter:e[6]||(e[6]=(...l)=>s.onMouseEnter&&s.onMouseEnter(...l)),onMouseleave:e[7]||(e[7]=(...l)=>s.onMouseLeave&&s.onMouseLeave(...l)),onTouchstart:e[8]||(e[8]=Fe((...l)=>s.onTouchStart&&s.onTouchStart(...l),["stop"])),onMousedown:e[9]||(e[9]=l=>s.onMouseDown(l)),onMouseup:e[10]||(e[10]=(...l)=>s.onMouseUp&&s.onMouseUp(...l)),onTouchend:e[11]||(e[11]=(...l)=>s.onMouseUp&&s.onMouseUp(...l)),onTouchmove:e[12]||(e[12]=(...l)=>s.onTouchMove&&s.onTouchMove(...l)),onDblclick:e[13]||(e[13]=(...l)=>s.onDblClick&&s.onDblClick(...l)),draggable:s.draggable,onDragstart:e[14]||(e[14]=l=>s.draggable&&s.onDragStart(l)),onDragend:e[15]||(e[15]=l=>s.draggable&&s.onDragEnd())},[s.vuecal.editEvents.delete&&n.event.deletable?(E(),A("div",{key:0,class:"vuecal__event-delete",onClick:e[0]||(e[0]=Fe((...l)=>s.deleteEvent&&s.deleteEvent(...l),["stop"])),onTouchstart:e[1]||(e[1]=Fe((...l)=>s.touchDeleteEvent&&s.touchDeleteEvent(...l),["stop"]))},I(s.vuecal.texts.deleteEvent),33)):k("",!0),N(t.$slots,"event",{event:n.event,view:s.view.id}),s.resizable?(E(),A("div",{key:1,class:"vuecal__event-resize-handle",contenteditable:"false",onMousedown:e[2]||(e[2]=Fe((...l)=>s.onResizeHandleMouseDown&&s.onResizeHandleMouseDown(...l),["stop","prevent"])),onTouchstart:e[3]||(e[3]=Fe((...l)=>s.onResizeHandleMouseDown&&s.onResizeHandleMouseDown(...l),["stop","prevent"]))},null,32)):k("",!0)],46,up)}]])},props:{options:{type:Object,default:()=>({})},editEvents:{type:Object,required:!0},data:{type:Object,required:!0},cellSplits:{type:Array,default:()=>[]},minTimestamp:{type:[Number,null],default:null},maxTimestamp:{type:[Number,null],default:null},cellWidth:{type:[Number,Boolean],default:!1},allDay:{type:Boolean,default:!1}},data:()=>({cellOverlaps:{},cellOverlapsStreak:1,timeAtCursor:null,highlighted:!1,highlightedSplit:null}),methods:{getSplitAtCursor({target:t}){let e=t.classList.contains("vuecal__cell-split")?t:this.vuecal.findAncestor(t,"vuecal__cell-split");return e&&(e=e.attributes["data-split"].value,parseInt(e).toString()===e.toString()&&(e=parseInt(e))),e||null},splitClasses(t){return{"vuecal__cell-split":!0,"vuecal__cell-split--highlighted":this.highlightedSplit===t.id,[t.class]:!!t.class}},checkCellOverlappingEvents(){this.options.time&&this.eventsCount&&!this.splitsCount&&(this.eventsCount===1?(this.cellOverlaps=[],this.cellOverlapsStreak=1):[this.cellOverlaps,this.cellOverlapsStreak]=this.utils.event.checkCellOverlappingEvents(this.events,this.options))},isDOMElementAnEvent(t){return this.vuecal.isDOMElementAnEvent(t)},selectCell(t,e=!1){const n=this.splitsCount?this.getSplitAtCursor(t):null;this.utils.cell.selectCell(e,this.timeAtCursor,n),this.timeAtCursor=null},onCellkeyPressEnter(t){this.isSelected||this.onCellFocus(t);const e=this.splitsCount?this.getSplitAtCursor(t):null;this.utils.cell.keyPressEnterCell(this.timeAtCursor,e),this.timeAtCursor=null},onCellFocus(t){if(!this.isSelected&&!this.isDisabled){this.isSelected=this.data.startDate;const e=this.splitsCount?this.getSplitAtCursor(t):null,n=this.timeAtCursor||this.data.startDate;this.vuecal.$emit("cell-focus",e?{date:n,split:e}:n)}},onCellMouseDown(t,e=null,n=!1){if("ontouchstart"in window&&!n)return!1;this.isSelected||this.onCellFocus(t);const{clickHoldACell:i,focusAnEvent:r}=this.domEvents;this.domEvents.cancelClickEventCreation=!1,i.eventCreated=!1,this.timeAtCursor=new Date(this.data.startDate);const{minutes:s,cursorCoords:{y:l}}=this.vuecal.minutesAtCursor(t);this.timeAtCursor.setMinutes(s);const a=this.isDOMElementAnEvent(t.target);!a&&r._eid&&((this.view.events.find(o=>o._eid===r._eid)||{}).focused=!1),this.editEvents.create&&!a&&this.setUpEventCreation(t,l)},setUpEventCreation(t,e){if(this.options.dragToCreateEvent&&["week","day"].includes(this.view.id)){const{dragCreateAnEvent:n}=this.domEvents;if(n.startCursorY=e,n.split=this.splitsCount?this.getSplitAtCursor(t):null,n.start=this.timeAtCursor,this.options.snapToTime){let i=60*this.timeAtCursor.getHours()+this.timeAtCursor.getMinutes();const r=i+this.options.snapToTime/2;i=r-r%this.options.snapToTime,n.start.setHours(0,i,0,0)}}else this.options.cellClickHold&&["month","week","day"].includes(this.view.id)&&this.setUpCellHoldTimer(t)},setUpCellHoldTimer(t){const{clickHoldACell:e}=this.domEvents;e.cellId=`${this.vuecal._.uid}_${this.data.formattedDate}`,e.split=this.splitsCount?this.getSplitAtCursor(t):null,e.timeoutId=setTimeout(()=>{if(e.cellId&&!this.domEvents.cancelClickEventCreation){const{_eid:n}=this.utils.event.createAnEvent(this.timeAtCursor,null,e.split?{split:e.split}:{});e.eventCreated=n}},e.timeout)},onCellTouchStart(t,e=null){this.onCellMouseDown(t,e,!0)},onCellClick(t){this.isDOMElementAnEvent(t.target)||this.selectCell(t)},onCellDblClick(t){const e=new Date(this.data.startDate);e.setMinutes(this.vuecal.minutesAtCursor(t).minutes);const n=this.splitsCount?this.getSplitAtCursor(t):null;this.vuecal.$emit("cell-dblclick",n?{date:e,split:n}:e),this.options.dblclickToNavigate&&this.vuecal.switchToNarrowerView()},onCellContextMenu(t){t.stopPropagation(),t.preventDefault();const e=new Date(this.data.startDate),{cursorCoords:n,minutes:i}=this.vuecal.minutesAtCursor(t);e.setMinutes(i);const r=this.splitsCount?this.getSplitAtCursor(t):null;this.vuecal.$emit("cell-contextmenu",{date:e,...n,...r||{},e:t})}},computed:{dnd(){return this.modules.dnd},nowInMinutes(){return this.utils.date.dateToMinutes(this.vuecal.now)},isBeforeMinDate(){return this.minTimestamp!==null&&this.minTimestamp>this.data.endDate.getTime()},isAfterMaxDate(){return this.maxTimestamp&&this.maxTimestamp{let{from:e,to:n}=t;return e=Math.max(e,this.options.timeFrom),n=Math.min(n,this.options.timeTo),{...t,height:(n-e)*this.timeScale,top:(e-this.options.timeFrom)*this.timeScale}})},events(){const{startDate:t,endDate:e}=this.data;let n=[];if(!["years","year"].includes(this.view.id)||this.options.eventsCountOnYearView){if(n=this.view.events.slice(0),this.view.id==="month"&&n.push(...this.view.outOfScopeEvents),n=n.filter(i=>this.utils.event.eventInRange(i,t,e)),this.options.showAllDayEvents&&this.view.id!=="month"&&(n=n.filter(i=>!!i.allDay===this.allDay)),this.options.time&&this.isWeekOrDayView&&!this.allDay){const{timeFrom:i,timeTo:r}=this.options;n=n.filter(s=>{const l=s.daysCount>1&&s.segments[this.data.formattedDate]||{},a=s.daysCount===1&&s.startTimeMinutesi,o=s.daysCount>1&&l.startTimeMinutesi;return s.allDay||a||o||!1})}!this.options.time||!this.isWeekOrDayView||this.options.showAllDayEvents&&this.allDay||n.sort((i,r)=>i.start{const n=this.events.filter(s=>s.split===t.id),[i,r]=this.utils.event.checkCellOverlappingEvents(n.filter(s=>!s.background&&!s.allDay),this.options);return{...t,overlaps:i,overlapsStreak:r,events:n}})},splitsCount(){return this.splits.length},cellClasses(){return{[this.data.class]:!!this.data.class,"vuecal__cell--current":this.data.current,"vuecal__cell--today":this.data.today,"vuecal__cell--out-of-scope":this.data.outOfScope,"vuecal__cell--before-min":this.isDisabled&&this.isBeforeMinDate,"vuecal__cell--after-max":this.isDisabled&&this.isAfterMaxDate,"vuecal__cell--disabled":this.isDisabled,"vuecal__cell--selected":this.isSelected,"vuecal__cell--highlighted":this.highlighted,"vuecal__cell--has-splits":this.splitsCount,"vuecal__cell--has-events":this.eventsCount}},cellStyles(){return{...this.cellWidth?{width:`${this.cellWidth}%`}:{}}},timelineVisible(){const{time:t,timeTo:e}=this.options;return this.data.today&&this.isWeekOrDayView&&t&&!this.allDay&&this.nowInMinutes<=e},todaysTimePosition(){if(!this.data.today||!this.options.time)return;const t=this.nowInMinutes-this.options.timeFrom;return Math.round(t*this.timeScale)},timeScale(){return this.options.timeCellHeight/this.options.timeStep}}},[["render",function(t,e,n,i,r,s){const l=ee("event");return E(),j(ha,{class:J(["vuecal__cell",s.cellClasses]),name:`slide-fade--${s.transitionDirection}`,tag:"div",appear:n.options.transitions,style:ae(s.cellStyles)},{default:D(()=>[(E(!0),A(Q,null,Z(s.splitsCount?s.splits:1,(a,o)=>(E(),A("div",{class:J(["vuecal__flex vuecal__cell-content",s.splitsCount&&s.splitClasses(a)]),key:n.options.transitions?`${s.view.id}-${n.data.content}-${o}`:o,"data-split":!!s.splitsCount&&a.id,column:"",tabindex:"0","aria-label":n.data.content,onFocus:e[0]||(e[0]=d=>s.onCellFocus(d)),onKeypress:e[1]||(e[1]=_i(d=>s.onCellkeyPressEnter(d),["enter"])),onTouchstart:d=>!s.isDisabled&&s.onCellTouchStart(d,s.splitsCount?a.id:null),onMousedown:d=>!s.isDisabled&&s.onCellMouseDown(d,s.splitsCount?a.id:null),onClick:e[2]||(e[2]=d=>!s.isDisabled&&s.onCellClick(d)),onDblclick:e[3]||(e[3]=d=>!s.isDisabled&&s.onCellDblClick(d)),onContextmenu:e[4]||(e[4]=d=>!s.isDisabled&&n.options.cellContextmenu&&s.onCellContextMenu(d)),onDragenter:e[5]||(e[5]=d=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragEnter(d,t.$data,n.data.startDate)),onDragover:d=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragOver(d,t.$data,n.data.startDate,s.splitsCount?a.id:null),onDragleave:e[6]||(e[6]=d=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragLeave(d,t.$data,n.data.startDate)),onDrop:d=>!s.isDisabled&&n.editEvents.drag&&s.dnd&&s.dnd.cellDragDrop(d,t.$data,n.data.startDate,s.splitsCount?a.id:null)},[n.options.showTimeInCells&&n.options.time&&s.isWeekOrDayView&&!n.allDay?(E(),A("div",gp,[(E(!0),A(Q,null,Z(s.vuecal.timeCells,(d,c)=>(E(),A("span",{class:"cell-time-label",key:c},I(d.label),1))),128))])):k("",!0),s.isWeekOrDayView&&!n.allDay&&s.specialHours.length?(E(!0),A(Q,{key:1},Z(s.specialHours,(d,c)=>(E(),A("div",{class:J(["vuecal__special-hours",`vuecal__special-hours--day${d.day} ${d.class}`]),style:ae(`height: ${d.height}px;top: ${d.top}px`)},[d.label?(E(),A("div",{key:0,class:"special-hours-label",innerHTML:d.label},null,8,pp)):k("",!0)],6))),256)):k("",!0),N(t.$slots,"cell-content",{events:s.events,selectCell:d=>s.selectCell(d,!0),split:!!s.splitsCount&&a}),s.eventsCount&&(s.isWeekOrDayView||s.view.id==="month"&&n.options.eventsOnMonthView)?(E(),A("div",mp,[(E(!0),A(Q,null,Z(s.splitsCount?a.events:s.events,(d,c)=>(E(),j(l,{key:c,"cell-formatted-date":n.data.formattedDate,event:d,"all-day":n.allDay,"cell-events":s.splitsCount?a.events:s.events,overlaps:((s.splitsCount?a.overlaps[d._eid]:t.cellOverlaps[d._eid])||[]).overlaps,"event-position":((s.splitsCount?a.overlaps[d._eid]:t.cellOverlaps[d._eid])||[]).position,"overlaps-streak":s.splitsCount?a.overlapsStreak:t.cellOverlapsStreak},{event:D(({event:u,view:h})=>[N(t.$slots,"event",{view:h,event:u})]),_:2},1032,["cell-formatted-date","event","all-day","cell-events","overlaps","event-position","overlaps-streak"]))),128))])):k("",!0)],42,fp))),128)),s.timelineVisible?(E(),A("div",{class:"vuecal__now-line",style:ae(`top: ${s.todaysTimePosition}px`),key:n.options.transitions?`${s.view.id}-now-line`:"now-line",title:s.utils.date.formatTime(s.vuecal.now)},null,12,vp)):k("",!0)]),_:3},8,["class","name","appear","style"])}]]),yp={key:0,class:"vuecal__all-day-text",style:{width:"3em"}},bp=Ke({inject:["vuecal","view","editEvents"],components:{"vuecal-cell":Rl},props:{options:{type:Object,required:!0},cells:{type:Array,required:!0},label:{type:String,required:!0},daySplits:{type:Array,default:()=>[]},shortEvents:{type:Boolean,default:!0},height:{type:String,default:""},cellOrSplitMinWidth:{type:Number,default:null}},computed:{hasCellOrSplitWidth(){return!!(this.options.minCellWidth||this.daySplits.length&&this.options.minSplitWidth)}}},[["render",function(t,e,n,i,r,s){const l=ee("vuecal-cell");return E(),A("div",{class:"vuecal__flex vuecal__all-day",style:ae(n.cellOrSplitMinWidth&&{height:n.height})},[n.cellOrSplitMinWidth?k("",!0):(E(),A("div",yp,[H("span",null,I(n.label),1)])),H("div",{class:J(["vuecal__flex vuecal__cells",`${s.view.id}-view`]),grow:"",style:ae(n.cellOrSplitMinWidth?`min-width: ${n.cellOrSplitMinWidth}px`:"")},[(E(!0),A(Q,null,Z(n.cells,(a,o)=>(E(),j(l,{key:o,options:n.options,"edit-events":s.editEvents,data:a,"all-day":!0,"cell-width":n.options.hideWeekdays.length&&(s.vuecal.isWeekView||s.vuecal.isMonthView)&&s.vuecal.cellWidth,"min-timestamp":n.options.minTimestamp,"max-timestamp":n.options.maxTimestamp,"cell-splits":n.daySplits},{event:D(({event:d,view:c})=>[N(t.$slots,"event",{view:c,event:d})]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],6)],4)}]]),Dp=["lang"],_p=H("i",{class:"angle"},null,-1),Ep=H("i",{class:"angle"},null,-1),wp={class:"default"},Ap={key:0,class:"vuecal__flex vuecal__body",grow:""},Sp=["onBlur","innerHTML"],Cp=["innerHTML"],Tp=["innerHTML"],Rp={class:"vuecal__flex",row:"",grow:""},kp={key:0,class:"vuecal__time-column"},Mp=H("span",{class:"vuecal__time-cell-line"},null,-1),xp={class:"vuecal__time-cell-label"},Ip={key:1,class:"vuecal__flex vuecal__week-numbers",column:""},Op=["wrap","column"],Np=["onBlur","innerHTML"],Hp=["innerHTML"],Pp=["innerHTML"],Vp=["wrap"],Lp=["innerHTML"],Bp=["innerHTML"],Wp={key:2,class:"vuecal__cell-events-count"},jp={key:3,class:"vuecal__no-event"},Fp=["onBlur","innerHTML"],Up=["innerHTML"],zp={key:2,class:"vuecal__event-time"},$p={key:0},Yp={key:1,class:"days-to-end"},Gp=["innerHTML"],qp={key:0,class:"vuecal__scrollbar-check"},Qp=[H("div",null,null,-1)],rt={weekDays:Array(7).fill(""),weekDaysShort:[],months:Array(12).fill(""),years:"",year:"",month:"",week:"",day:"",today:"",noEvent:"",allDay:"",deleteEvent:"",createEvent:"",dateFormat:"dddd MMMM D, YYYY",am:"am",pm:"pm"},xs=["years","year","month","week","day"],Is=new class{constructor(t,e=!1){ve(this,"texts",{}),ve(this,"dateToMinutes",n=>60*n.getHours()+n.getMinutes()),le=this,this._texts=t,e||!Date||Date.prototype.addDays||this._initDatePrototypes()}_initDatePrototypes(){Date.prototype.addDays=function(t){return le.addDays(this,t)},Date.prototype.subtractDays=function(t){return le.subtractDays(this,t)},Date.prototype.addHours=function(t){return le.addHours(this,t)},Date.prototype.subtractHours=function(t){return le.subtractHours(this,t)},Date.prototype.addMinutes=function(t){return le.addMinutes(this,t)},Date.prototype.subtractMinutes=function(t){return le.subtractMinutes(this,t)},Date.prototype.getWeek=function(){return le.getWeek(this)},Date.prototype.isToday=function(){return le.isToday(this)},Date.prototype.isLeapYear=function(){return le.isLeapYear(this)},Date.prototype.format=function(t="YYYY-MM-DD"){return le.formatDate(this,t)},Date.prototype.formatTime=function(t="HH:mm"){return le.formatTime(this,t)}}removePrototypes(){delete Date.prototype.addDays,delete Date.prototype.subtractDays,delete Date.prototype.addHours,delete Date.prototype.subtractHours,delete Date.prototype.addMinutes,delete Date.prototype.subtractMinutes,delete Date.prototype.getWeek,delete Date.prototype.isToday,delete Date.prototype.isLeapYear,delete Date.prototype.format,delete Date.prototype.formatTime}updateTexts(t){this._texts=t}_todayFormatted(){return ks!==new Date().getDate()&&(nt=new Date,ks=nt.getDate(),Ms=`${nt.getFullYear()}-${nt.getMonth()}-${nt.getDate()}`),Ms}addDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()+e),n}subtractDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()-e),n}addHours(t,e){const n=new Date(t.valueOf());return n.setHours(n.getHours()+e),n}subtractHours(t,e){const n=new Date(t.valueOf());return n.setHours(n.getHours()-e),n}addMinutes(t,e){const n=new Date(t.valueOf());return n.setMinutes(n.getMinutes()+e),n}subtractMinutes(t,e){const n=new Date(t.valueOf());return n.setMinutes(n.getMinutes()-e),n}getWeek(t){const e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-n);const i=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-i)/864e5+1)/7)}isToday(t){return`${t.getFullYear()}-${t.getMonth()}-${t.getDate()}`===this._todayFormatted()}isLeapYear(t){const e=t.getFullYear();return!(e%400)||e%100&&!(e%4)}getPreviousFirstDayOfWeek(t=null,e){const n=t&&new Date(t.valueOf())||new Date,i=e?7:6;return n.setDate(n.getDate()-(n.getDay()+i)%7),n}stringToDate(t){return t instanceof Date?t:(t.length===10&&(t+=" 00:00"),new Date(t.replace(/-/g,"/")))}countDays(t,e){typeof t=="string"&&(t=t.replace(/-/g,"/")),typeof e=="string"&&(e=e.replace(/-/g,"/")),t=new Date(t).setHours(0,0,0,0),e=new Date(e).setHours(0,0,1,0);const n=60*(new Date(e).getTimezoneOffset()-new Date(t).getTimezoneOffset())*1e3;return Math.ceil((e-t-n)/864e5)}datesInSameTimeStep(t,e,n){return Math.abs(t.getTime()-e.getTime())<=60*n*1e3}formatDate(t,e="YYYY-MM-DD",n=null){if(n||(n=this._texts),e||(e="YYYY-MM-DD"),e==="YYYY-MM-DD")return this.formatDateLite(t);it={},Ue={};const i={YYYY:()=>this._hydrateDateObject(t,n).YYYY,YY:()=>this._hydrateDateObject(t,n).YY(),M:()=>this._hydrateDateObject(t,n).M,MM:()=>this._hydrateDateObject(t,n).MM(),MMM:()=>this._hydrateDateObject(t,n).MMM(),MMMM:()=>this._hydrateDateObject(t,n).MMMM(),MMMMG:()=>this._hydrateDateObject(t,n).MMMMG(),D:()=>this._hydrateDateObject(t,n).D,DD:()=>this._hydrateDateObject(t,n).DD(),S:()=>this._hydrateDateObject(t,n).S(),d:()=>this._hydrateDateObject(t,n).d,dd:()=>this._hydrateDateObject(t,n).dd(),ddd:()=>this._hydrateDateObject(t,n).ddd(),dddd:()=>this._hydrateDateObject(t,n).dddd(),HH:()=>this._hydrateTimeObject(t,n).HH,H:()=>this._hydrateTimeObject(t,n).H,hh:()=>this._hydrateTimeObject(t,n).hh,h:()=>this._hydrateTimeObject(t,n).h,am:()=>this._hydrateTimeObject(t,n).am,AM:()=>this._hydrateTimeObject(t,n).AM,mm:()=>this._hydrateTimeObject(t,n).mm,m:()=>this._hydrateTimeObject(t,n).m};return e.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(r,s)=>{const l=i[s.replace(/\{|\}/g,"")];return l!==void 0?l():s})}formatDateLite(t){const e=t.getMonth()+1,n=t.getDate();return`${t.getFullYear()}-${e<10?"0":""}${e}-${n<10?"0":""}${n}`}formatTime(t,e="HH:mm",n=null,i=!1){let r=!1;if(i){const[a,o,d]=[t.getHours(),t.getMinutes(),t.getSeconds()];a+o+d===141&&(r=!0)}if(t instanceof Date&&e==="HH:mm")return r?"24:00":this.formatTimeLite(t);Ue={},n||(n=this._texts);const s=this._hydrateTimeObject(t,n),l=e.replace(/(\{[a-zA-Z]+\}|[a-zA-Z]+)/g,(a,o)=>{const d=s[o.replace(/\{|\}/g,"")];return d!==void 0?d:o});return r?l.replace("23:59","24:00"):l}formatTimeLite(t){const e=t.getHours(),n=t.getMinutes();return`${(e<10?"0":"")+e}:${(n<10?"0":"")+n}`}_nth(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}_hydrateDateObject(t,e){if(it.D)return it;const n=t.getFullYear(),i=t.getMonth()+1,r=t.getDate(),s=(t.getDay()-1+7)%7;return it={YYYY:n,YY:()=>n.toString().substring(2),M:i,MM:()=>(i<10?"0":"")+i,MMM:()=>e.months[i-1].substring(0,3),MMMM:()=>e.months[i-1],MMMMG:()=>(e.monthsGenitive||e.months)[i-1],D:r,DD:()=>(r<10?"0":"")+r,S:()=>this._nth(r),d:s+1,dd:()=>e.weekDays[s][0],ddd:()=>e.weekDays[s].substr(0,3),dddd:()=>e.weekDays[s]},it}_hydrateTimeObject(t,e){if(Ue.am)return Ue;let n,i;t instanceof Date?(n=t.getHours(),i=t.getMinutes()):(n=Math.floor(t/60),i=Math.floor(t%60));const r=n%12?n%12:12,s=(e||{am:"am",pm:"pm"})[n===24||n<12?"am":"pm"];return Ue={H:n,h:r,HH:(n<10?"0":"")+n,hh:(r<10?"0":"")+r,am:s,AM:s.toUpperCase(),m:i,mm:(i<10?"0":"")+i},Ue}}(rt),Zp={name:"vue-cal",components:{"vuecal-cell":Rl,"vuecal-header":cp,WeekdaysHeadings:Tl,AllDayBar:bp},provide(){return{vuecal:this,utils:this.utils,modules:this.modules,previous:this.previous,next:this.next,switchView:this.switchView,updateSelectedDate:this.updateSelectedDate,editEvents:this.editEvents,view:this.view,domEvents:this.domEvents}},props:{activeView:{type:String,default:"week"},allDayBarHeight:{type:[String,Number],default:"25px"},cellClickHold:{type:Boolean,default:!0},cellContextmenu:{type:Boolean,default:!1},clickToNavigate:{type:Boolean,default:!1},dblclickToNavigate:{type:Boolean,default:!0},disableDatePrototypes:{type:Boolean,default:!1},disableDays:{type:Array,default:()=>[]},disableViews:{type:Array,default:()=>[]},dragToCreateEvent:{type:Boolean,default:!0},dragToCreateThreshold:{type:Number,default:15},editableEvents:{type:[Boolean,Object],default:!1},events:{type:Array,default:()=>[]},eventsCountOnYearView:{type:Boolean,default:!1},eventsOnMonthView:{type:[Boolean,String],default:!1},hideBody:{type:Boolean,default:!1},hideTitleBar:{type:Boolean,default:!1},hideViewSelector:{type:Boolean,default:!1},hideWeekdays:{type:Array,default:()=>[]},hideWeekends:{type:Boolean,default:!1},locale:{type:[String,Object],default:"en"},maxDate:{type:[String,Date],default:""},minCellWidth:{type:Number,default:0},minDate:{type:[String,Date],default:""},minEventWidth:{type:Number,default:0},minSplitWidth:{type:Number,default:0},onEventClick:{type:[Function,null],default:null},onEventCreate:{type:[Function,null],default:null},onEventDblclick:{type:[Function,null],default:null},overlapsPerTimeStep:{type:Boolean,default:!1},resizeX:{type:Boolean,default:!1},selectedDate:{type:[String,Date],default:""},showAllDayEvents:{type:[Boolean,String],default:!1},showTimeInCells:{type:Boolean,default:!1},showWeekNumbers:{type:[Boolean,String],default:!1},snapToTime:{type:Number,default:0},small:{type:Boolean,default:!1},specialHours:{type:Object,default:()=>({})},splitDays:{type:Array,default:()=>[]},startWeekOnSunday:{type:Boolean,default:!1},stickySplitLabels:{type:Boolean,default:!1},time:{type:Boolean,default:!0},timeCellHeight:{type:Number,default:40},timeFormat:{type:String,default:""},timeFrom:{type:Number,default:0},timeStep:{type:Number,default:60},timeTo:{type:Number,default:1440},todayButton:{type:Boolean,default:!1},transitions:{type:Boolean,default:!0},twelveHour:{type:Boolean,default:!1},watchRealTime:{type:Boolean,default:!1},xsmall:{type:Boolean,default:!1}},data(){return{ready:!1,texts:{...rt},utils:{date:!!this.disableDatePrototypes&&Is.removePrototypes()||Is,cell:null,event:null},modules:{dnd:null},cellsEl:null,view:{id:"",title:"",startDate:null,endDate:null,firstCellDate:null,lastCellDate:null,selectedDate:null,events:[]},eventIdIncrement:1,now:new Date,timeTickerIds:[null,null],domEvents:{resizeAnEvent:{_eid:null,start:null,split:null,segment:null,originalEndTimeMinutes:0,originalEnd:null,end:null,startCell:null,endCell:null},dragAnEvent:{_eid:null},dragCreateAnEvent:{startCursorY:null,start:null,split:null,event:null},focusAnEvent:{_eid:null,mousedUp:!1},clickHoldAnEvent:{_eid:null,timeout:1200,timeoutId:null},dblTapACell:{taps:0,timeout:500},clickHoldACell:{cellId:null,split:null,timeout:1200,timeoutId:null,eventCreated:!1},cancelClickEventCreation:!1},mutableEvents:[],transitionDirection:"right"}},methods:{async loadLocale(t){if(typeof this.locale=="object")return this.texts=Object.assign({},rt,t),void this.utils.date.updateTexts(this.texts);if(this.locale==="en"){const e=await R(()=>import("./en.es-713916b0.js"),[]);this.texts=Object.assign({},rt,e)}else((e,n)=>{const i=e[n];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((r,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+n)))})})(Object.assign({"./i18n/ar.json":()=>R(()=>import("./ar.es-4173cb29.js"),[]),"./i18n/bg.json":()=>R(()=>import("./bg.es-3542f853.js"),[]),"./i18n/bn.json":()=>R(()=>import("./bn.es-55ab5212.js"),[]),"./i18n/bs.json":()=>R(()=>import("./bs.es-ba9dd541.js"),[]),"./i18n/ca.json":()=>R(()=>import("./ca.es-3f4af411.js"),[]),"./i18n/cs.json":()=>R(()=>import("./cs.es-4bf8e61a.js"),[]),"./i18n/da.json":()=>R(()=>import("./da.es-084484fb.js"),[]),"./i18n/de.json":()=>R(()=>import("./de.es-0185602c.js"),[]),"./i18n/el.json":()=>R(()=>import("./el.es-b3db55e7.js"),[]),"./i18n/en.json":()=>R(()=>import("./en.es-713916b0.js"),[]),"./i18n/es.json":()=>R(()=>import("./es.es-2f81ef8f.js"),[]),"./i18n/et.json":()=>R(()=>import("./et.es-feab242e.js"),[]),"./i18n/fa.json":()=>R(()=>import("./fa.es-e30ec481.js"),[]),"./i18n/fr.json":()=>R(()=>import("./fr.es-fd781cdb.js"),[]),"./i18n/he.json":()=>R(()=>import("./he.es-ab017da7.js"),[]),"./i18n/hr.json":()=>R(()=>import("./hr.es-8ff4208c.js"),[]),"./i18n/hu.json":()=>R(()=>import("./hu.es-a826dbea.js"),[]),"./i18n/id.json":()=>R(()=>import("./id.es-09894c24.js"),[]),"./i18n/is.json":()=>R(()=>import("./is.es-9608cdad.js"),[]),"./i18n/it.json":()=>R(()=>import("./it.es-8f484e02.js"),[]),"./i18n/ja.json":()=>R(()=>import("./ja.es-b7fc0eb9.js"),[]),"./i18n/ka.json":()=>R(()=>import("./ka.es-446e6e19.js"),[]),"./i18n/ko.json":()=>R(()=>import("./ko.es-45e7d699.js"),[]),"./i18n/lt.json":()=>R(()=>import("./lt.es-bc184482.js"),[]),"./i18n/mn.json":()=>R(()=>import("./mn.es-5fa17a96.js"),[]),"./i18n/nl.json":()=>R(()=>import("./nl.es-f5998f61.js"),[]),"./i18n/no.json":()=>R(()=>import("./no.es-7a7b8685.js"),[]),"./i18n/pl.json":()=>R(()=>import("./pl.es-2dc4cbea.js"),[]),"./i18n/pt-br.json":()=>R(()=>import("./pt-br.es-82c2bfad.js"),[]),"./i18n/ro.json":()=>R(()=>import("./ro.es-0b230c59.js"),[]),"./i18n/ru.json":()=>R(()=>import("./ru.es-3bc3c295.js"),[]),"./i18n/sk.json":()=>R(()=>import("./sk.es-477d958c.js"),[]),"./i18n/sl.json":()=>R(()=>import("./sl.es-7f9e39ca.js"),[]),"./i18n/sq.json":()=>R(()=>import("./sq.es-484abfbf.js"),[]),"./i18n/sr.json":()=>R(()=>import("./sr.es-79173882.js"),[]),"./i18n/sv.json":()=>R(()=>import("./sv.es-cc28424b.js"),[]),"./i18n/tr.json":()=>R(()=>import("./tr.es-73d31d0a.js"),[]),"./i18n/uk.json":()=>R(()=>import("./uk.es-72aa5132.js"),[]),"./i18n/vi.json":()=>R(()=>import("./vi.es-e48f04c7.js"),[]),"./i18n/zh-cn.json":()=>R(()=>import("./zh-cn.es-d3b0ce92.js"),[]),"./i18n/zh-hk.json":()=>R(()=>import("./zh-hk.es-f0804a56.js"),[])}),`./i18n/${t}.json`).then(e=>{this.texts=Object.assign({},rt,e.default),this.utils.date.updateTexts(this.texts)})},loadDragAndDrop(){R(()=>import("./drag-and-drop.es-801b9187.js"),[]).then(t=>{const{DragAndDrop:e}=t;this.modules.dnd=new e(this)}).catch(()=>console.warn("Vue Cal: Missing drag & drop module."))},validateView(t){return xs.includes(t)||(console.error(`Vue Cal: invalid active-view parameter provided: "${t}". +A valid view must be one of: ${xs.join(", ")}.`),t="week"),this.enabledViews.includes(t)||(console.warn(`Vue Cal: the provided active-view "${t}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),t=this.enabledViews[0]),t},switchToNarrowerView(t=null){this.transitionDirection="right";const e=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];e&&this.switchView(e,t)},switchView(t,e=null,n=!1){t=this.validateView(t);const i=this.utils.date,r=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&n){if(this.view.id===t)return;const a=this.enabledViews;this.transitionDirection=a.indexOf(this.view.id)>a.indexOf(t)?"left":"right"}const s=this.view.id;switch(this.view.events=[],this.view.id=t,this.view.firstCellDate=null,this.view.lastCellDate=null,e||(e=this.view.selectedDate||this.view.startDate),t){case"years":this.view.startDate=new Date(25*Math.floor(e.getFullYear()/25)||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break;case"year":this.view.startDate=new Date(e.getFullYear(),0,1),this.view.endDate=new Date(e.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break;case"month":{this.view.startDate=new Date(e.getFullYear(),e.getMonth(),1),this.view.endDate=new Date(e.getFullYear(),e.getMonth()+1,1),this.view.endDate.setSeconds(-1);let a=new Date(this.view.startDate);if(a.getDay()!==(this.startWeekOnSunday?0:1)&&(a=i.getPreviousFirstDayOfWeek(a,this.startWeekOnSunday)),this.view.firstCellDate=a,this.view.lastCellDate=i.addDays(a,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const o=this.view.firstCellDate.getDay()!==6||this.startWeekOnSunday?1:2;this.view.firstCellDate=i.addDays(this.view.firstCellDate,o)}if([0,6].includes(this.view.startDate.getDay())){const o=this.view.startDate.getDay()===6?2:1;this.view.startDate=i.addDays(this.view.startDate,o)}if([0,6].includes(this.view.lastCellDate.getDay())){const o=this.view.lastCellDate.getDay()!==0||this.startWeekOnSunday?1:2;this.view.lastCellDate=i.subtractDays(this.view.lastCellDate,o)}if([0,6].includes(this.view.endDate.getDay())){const o=this.view.endDate.getDay()===0?2:1;this.view.endDate=i.subtractDays(this.view.endDate,o)}}break}case"week":{e=i.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday);const a=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?i.addDays(e,1):e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=i.addDays(e,a),this.view.endDate.setSeconds(-1);break}case"day":this.view.startDate=e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(e),this.view.endDate.setHours(23,59,59,0)}this.addEventsToView();const l=this.view.startDate&&this.view.startDate.getTime();if((s!==t||l!==r)&&(this.$emit("update:activeView",t),this.ready)){const a=this.view.startDate,o={view:t,startDate:a,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:i.getWeek(this.startWeekOnSunday?i.addDays(a,1):a)}:{}};this.$emit("view-change",o)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(t=!0){const e=this.utils.date;this.transitionDirection=t?"right":"left";const n=t?1:-1;let i=null;const{startDate:r,id:s}=this.view;switch(s){case"years":i=new Date(r.getFullYear()+25*n,0,1);break;case"year":i=new Date(r.getFullYear()+1*n,1,1);break;case"month":i=new Date(r.getFullYear(),r.getMonth()+1*n,1);break;case"week":i=e[t?"addDays":"subtractDays"](e.getPreviousFirstDayOfWeek(r,this.startWeekOnSunday),7);break;case"day":i=e[t?"addDays":"subtractDays"](r,1);const l=i.getDay(),a=this.startWeekOnSunday?l:(l||7)-1;if(this.weekDays[a].hide){const o=this.weekDays.map((c,u)=>({...c,i:u}));let d=0;t?([...o.slice(a),...o].find(c=>(d++,!c.hide)).i,d--):[...o,...o.slice(0,a)].reverse().find(c=>(d++,!c.hide)).i,i=e[t?"addDays":"subtractDays"](i,d)}}i&&this.switchView(s,i)},addEventsToView(t=[]){const e=this.utils.event,{startDate:n,endDate:i,firstCellDate:r,lastCellDate:s}=this.view;if(t.length||(this.view.events=[]),!(t=t.length?t:[...this.mutableEvents])||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let l=t.filter(a=>e.eventInRange(a,n,i));this.isYearsOrYearView||this.isMonthView&&!this.eventsOnMonthView||(l=l.map(a=>a.daysCount>1?e.createEventSegments(a,r||n,s||i):a)),this.view.events.push(...l),this.isMonthView&&(this.view.outOfScopeEvents=[],t.forEach(a=>{(e.eventInRange(a,r,n)||e.eventInRange(a,i,s))&&(this.view.events.some(o=>o._eid===a._eid)||this.view.outOfScopeEvents.push(a))}))},findAncestor(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t},isDOMElementAnEvent(t){return t.classList.contains("vuecal__event")||this.findAncestor(t,"vuecal__event")},onMouseMove(t){const{resizeAnEvent:e,dragAnEvent:n,dragCreateAnEvent:i}=this.domEvents;(e._eid!==null||n._eid!==null||i.start)&&(t.preventDefault(),e._eid?this.eventResizing(t):this.dragToCreateEvent&&i.start&&this.eventDragCreation(t))},onMouseUp(t){const{focusAnEvent:e,resizeAnEvent:n,clickHoldAnEvent:i,clickHoldACell:r,dragCreateAnEvent:s}=this.domEvents,{_eid:l}=i,{_eid:a}=n;let o=!1;const{event:d,start:c}=s,u=this.isDOMElementAnEvent(t.target),h=e.mousedUp;if(e.mousedUp=!1,u&&(this.domEvents.cancelClickEventCreation=!0),r.eventCreated)return;if(a){const{originalEnd:p,originalEndTimeMinutes:b,endTimeMinutes:y}=n,v=this.view.events.find(w=>w._eid===n._eid);if(o=y&&y!==b,v&&v.end.getTime()!==p.getTime()){const w=this.mutableEvents.find(V=>V._eid===n._eid);w.endTimeMinutes=v.endTimeMinutes,w.end=v.end;const S=this.cleanupEvent(v),C={...this.cleanupEvent(v),end:p,endTimeMinutes:v.originalEndTimeMinutes};this.$emit("event-duration-change",{event:S,oldDate:n.originalEnd,originalEvent:C}),this.$emit("event-change",{event:S,originalEvent:C})}v&&(v.resizing=!1),n._eid=null,n.start=null,n.split=null,n.segment=null,n.originalEndTimeMinutes=null,n.originalEnd=null,n.endTimeMinutes=null,n.startCell=null,n.endCell=null}else c&&(d&&(this.emitWithEvent("event-drag-create",d),s.event.resizing=!1),s.start=null,s.split=null,s.event=null);u||a||this.unfocusEvent(),i.timeoutId&&!l&&(clearTimeout(i.timeoutId),i.timeoutId=null),r.timeoutId&&(clearTimeout(r.timeoutId),r.timeoutId=null);const f=typeof this.onEventClick=="function";if(h&&!o&&!l&&!d&&f){let p=this.view.events.find(b=>b._eid===e._eid);return!p&&this.isMonthView&&(p=this.view.outOfScopeEvents.find(b=>b._eid===e._eid)),p&&this.onEventClick(p,t)}},onKeyUp(t){t.keyCode===27&&this.cancelDelete()},eventResizing(t){const{resizeAnEvent:e}=this.domEvents,n=this.view.events.find(d=>d._eid===e._eid)||{segments:{}},{minutes:i,cursorCoords:r}=this.minutesAtCursor(t),s=n.segments&&n.segments[e.segment],{date:l,event:a}=this.utils,o=Math.max(i,this.timeFrom+1,(s||n).startTimeMinutes+1);if(n.endTimeMinutes=e.endTimeMinutes=o,this.snapToTime){const d=n.endTimeMinutes+this.snapToTime/2;n.endTimeMinutes=d-d%this.snapToTime}if(s&&(s.endTimeMinutes=n.endTimeMinutes),n.end.setHours(0,n.endTimeMinutes,n.endTimeMinutes===1440?-1:0,0),this.resizeX&&this.isWeekView){n.daysCount=l.countDays(n.start,n.end);const d=this.cellsEl,c=d.offsetWidth/d.childElementCount,u=Math.floor(r.x/c);if(e.startCell===null&&(e.startCell=u-(n.daysCount-1)),e.endCell!==u){e.endCell=u;const h=l.addDays(n.start,u-e.startCell),f=Math.max(l.countDays(n.start,h),1);if(f!==n.daysCount){let p=null;p=f>n.daysCount?a.addEventSegment(n):a.removeEventSegment(n),e.segment=p,n.endTimeMinutes+=.001}}}this.$emit("event-resizing",{_eid:n._eid,end:n.end,endTimeMinutes:n.endTimeMinutes})},eventDragCreation(t){const{dragCreateAnEvent:e}=this.domEvents,{start:n,startCursorY:i,split:r}=e,s=new Date(n),{minutes:l,cursorCoords:{y:a}}=this.minutesAtCursor(t);if(e.event||!(Math.abs(i-a)i._eid===(t._eid||e._eid));t._eid=null,e._eid=null,n&&(n.focused=!1,n.deleting=!1)},cancelDelete(){const{clickHoldAnEvent:t}=this.domEvents;if(t._eid){const e=this.view.events.find(n=>n._eid===t._eid);e&&(e.deleting=!1),t._eid=null,t.timeoutId=null}},onEventTitleBlur(t,e){if(e.title===t.target.innerHTML)return;const n=e.title;e.title=t.target.innerHTML;const i=this.cleanupEvent(e);this.$emit("event-title-change",{event:i,oldTitle:n}),this.$emit("event-change",{event:i,originalEvent:{...i,title:n}})},updateMutableEvents(){const t=this.utils.date;this.mutableEvents=[],this.events.forEach(e=>{const n=typeof e.start=="string"?t.stringToDate(e.start):e.start,i=t.formatDateLite(n),r=t.dateToMinutes(n);let s=null;typeof e.end=="string"&&e.end.includes("24:00")?(s=new Date(e.end.replace(" 24:00","")),s.setHours(23,59,59,0)):s=typeof e.end=="string"?t.stringToDate(e.end):e.end;let l=t.formatDateLite(s),a=t.dateToMinutes(s);a&&a!==1440||(!this.time||typeof e.end=="string"&&e.end.length===10?s.setHours(23,59,59,0):s.setSeconds(s.getSeconds()-1),l=t.formatDateLite(s),a=1440);const o=i!==l;e=Object.assign({...this.utils.event.eventDefaults},e,{_eid:`${this._.uid}_${this.eventIdIncrement++}`,segments:o?{}:null,start:n,startTimeMinutes:r,end:s,endTimeMinutes:a,daysCount:o?t.countDays(n,s):1,class:e.class}),this.mutableEvents.push(e)})},minutesAtCursor(t){return this.utils.cell.minutesAtCursor(t)},createEvent(t,e,n={}){return this.utils.event.createAnEvent(t,e,n)},cleanupEvent(t){return t={...t},["segments","deletable","deleting","titleEditable","resizable","resizing","draggable","dragging","draggingStatic","focused"].forEach(e=>{e in t&&delete t[e]}),t.repeat||delete t.repeat,t},emitWithEvent(t,e){this.$emit(t,this.cleanupEvent(e))},updateSelectedDate(t){if((t=t&&typeof t=="string"?this.utils.date.stringToDate(t):new Date(t))&&t instanceof Date){const{selectedDate:e}=this.view;e&&(this.transitionDirection=e.getTime()>t.getTime()?"left":"right"),t.setHours(0,0,0,0),e&&e.getTime()===t.getTime()||(this.view.selectedDate=t),this.switchView(this.view.id)}this.$emit("update:selected-date",this.view.selectedDate)},getWeekNumber(t){const e=this.utils.date,n=this.firstCellDateWeekNumber+t,i=this.startWeekOnSunday?1:0;return n>52?e.getWeek(e.addDays(this.view.firstCellDate,7*t+i)):n},timeTick(){this.now=new Date,this.timeTickerIds[1]=setTimeout(this.timeTick,6e4)},updateDateTexts(){this.utils.date.updateTexts(this.texts)},alignWithScrollbar(){if(document.getElementById("vuecal-align-with-scrollbar"))return;const t=this.$refs.vuecal.getElementsByClassName("vuecal__scrollbar-check")[0],e=t.offsetWidth-t.children[0].offsetWidth;if(e){const n=document.createElement("style");n.id="vuecal-align-with-scrollbar",n.type="text/css",n.innerHTML=`.vuecal--view-with-time .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__all-day {padding-right: ${e}px}`,document.head.appendChild(n)}},cellOrSplitHasEvents:(t,e=null)=>t.length&&(!e&&t.length||e&&t.some(n=>n.split===e.id))},created(){this.utils.cell=new Yg(this),this.utils.event=new Gg(this,this.utils.date),this.loadLocale(this.locale),this.editEvents.drag&&this.loadDragAndDrop(),this.updateMutableEvents(this.events),this.view.id=this.currentView,this.selectedDate?this.updateSelectedDate(this.selectedDate):(this.view.selectedDate=new Date,this.switchView(this.currentView)),this.time&&this.watchRealTime&&(this.timeTickerIds[0]=setTimeout(this.timeTick,1e3*(60-this.now.getSeconds())))},mounted(){const t=this.utils.date,e="ontouchstart"in window,{resize:n,drag:i,create:r,delete:s,title:l}=this.editEvents,a=this.onEventClick&&typeof this.onEventClick=="function";(n||i||r||s||l||a)&&window.addEventListener(e?"touchend":"mouseup",this.onMouseUp),(n||i||r&&this.dragToCreateEvent)&&window.addEventListener(e?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),l&&window.addEventListener("keyup",this.onKeyUp),e&&(this.$refs.vuecal.oncontextmenu=function(c){c.preventDefault(),c.stopPropagation()}),this.hideBody||this.alignWithScrollbar();const o=this.view.startDate,d={view:this.view.id,startDate:o,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:t.getWeek(this.startWeekOnSunday?t.addDays(o,1):o)}:{}};this.$emit("ready",d),this.ready=!0},beforeUnmount(){const t="ontouchstart"in window;window.removeEventListener(t?"touchmove":"mousemove",this.onMouseMove,{passive:!1}),window.removeEventListener(t?"touchend":"mouseup",this.onMouseUp),window.removeEventListener("keyup",this.onKeyUp),this.timeTickerIds[0]&&clearTimeout(this.timeTickerIds[0]),this.timeTickerIds[1]&&clearTimeout(this.timeTickerIds[1]),this.timeTickerIds=[null,null]},computed:{editEvents(){return this.editableEvents&&typeof this.editableEvents=="object"?{title:!!this.editableEvents.title,drag:!!this.editableEvents.drag,resize:!!this.editableEvents.resize,create:!!this.editableEvents.create,delete:!!this.editableEvents.delete}:{title:!!this.editableEvents,drag:!!this.editableEvents,resize:!!this.editableEvents,create:!!this.editableEvents,delete:!!this.editableEvents}},views(){return{years:{label:this.texts.years,enabled:!this.disableViews.includes("years")},year:{label:this.texts.year,enabled:!this.disableViews.includes("year")},month:{label:this.texts.month,enabled:!this.disableViews.includes("month")},week:{label:this.texts.week,enabled:!this.disableViews.includes("week")},day:{label:this.texts.day,enabled:!this.disableViews.includes("day")}}},currentView(){return this.validateView(this.activeView)},enabledViews(){return Object.keys(this.views).filter(t=>this.views[t].enabled)},hasTimeColumn(){return this.time&&this.isWeekOrDayView},isShortMonthView(){return this.isMonthView&&this.eventsOnMonthView==="short"},firstCellDateWeekNumber(){const t=this.utils.date,e=this.view.firstCellDate;return t.getWeek(this.startWeekOnSunday?t.addDays(e,1):e)},timeCells(){const t=[];for(let e=this.timeFrom,n=this.timeTo;e!t.hide)||[]).map((t,e)=>({...t,id:t.id||e+1}))},hasSplits(){return this.daySplits.length&&this.isWeekOrDayView},hasShortEvents(){return this.showAllDayEvents==="short"},cellOrSplitMinWidth(){let t=null;return this.hasSplits&&this.minSplitWidth?t=this.visibleDaysCount*this.minSplitWidth*this.daySplits.length:this.minCellWidth&&this.isWeekView&&(t=this.visibleDaysCount*this.minCellWidth),t},allDayBar(){let t=this.allDayBarHeight||null;return t&&!isNaN(t)&&(t+="px"),{cells:this.viewCells,options:this.$props,label:this.texts.allDay,shortEvents:this.hasShortEvents,daySplits:this.hasSplits&&this.daySplits||[],cellOrSplitMinWidth:this.cellOrSplitMinWidth,height:t}},minTimestamp(){let t=null;return this.minDate&&typeof this.minDate=="string"?t=this.utils.date.stringToDate(this.minDate):this.minDate&&this.minDate instanceof Date&&(t=this.minDate),t?t.getTime():null},maxTimestamp(){let t=null;return this.maxDate&&typeof this.maxDate=="string"?t=this.utils.date.stringToDate(this.maxDate):this.maxDate&&this.minDate instanceof Date&&(t=this.maxDate),t?t.getTime():null},weekDays(){let{weekDays:t,weekDaysShort:e=[]}=this.texts;return t=t.slice(0).map((n,i)=>({label:n,...e.length?{short:e[i]}:{},hide:this.hideWeekends&&i>=5||this.hideWeekdays.length&&this.hideWeekdays.includes(i+1)})),this.startWeekOnSunday&&t.unshift(t.pop()),t},weekDaysInHeader(){return this.isMonthView||this.isWeekView&&!this.minCellWidth&&!(this.hasSplits&&this.minSplitWidth)},months(){return this.texts.months.map(t=>({label:t}))},specialDayHours(){return this.specialHours&&Object.keys(this.specialHours).length?Array(7).fill("").map((t,e)=>{let n=this.specialHours[e+1]||[];return Array.isArray(n)||(n=[n]),t=[],n.forEach(({from:i,to:r,class:s,label:l},a)=>{t[a]={day:e+1,from:[null,void 0].includes(i)?null:1*i,to:[null,void 0].includes(r)?null:1*r,class:s||"",label:l||""}}),t}):{}},viewTitle(){const t=this.utils.date;let e="";const n=this.view.startDate,i=n.getFullYear(),r=n.getMonth();switch(this.view.id){case"years":e=this.texts.years;break;case"year":e=i;break;case"month":e=`${this.months[r].label} ${i}`;break;case"week":{const s=this.view.endDate,l=n.getFullYear();let a=this.texts.months[n.getMonth()];this.xsmall&&(a=a.substring(0,3));let o=`${a} ${l}`;if(s.getMonth()!==n.getMonth()){const d=s.getFullYear();let c=this.texts.months[s.getMonth()];this.xsmall&&(c=c.substring(0,3)),o=l===d?`${a} - ${c} ${l}`:this.small?`${a.substring(0,3)} ${l} - ${c.substring(0,3)} ${d}`:`${a} ${l} - ${c} ${d}`}e=`${this.texts.week} ${t.getWeek(this.startWeekOnSunday?t.addDays(n,1):n)} (${o})`;break}case"day":e=this.utils.date.formatDate(n,this.texts.dateFormat,this.texts)}return e},viewCells(){const t=this.utils.date;let e=[],n=null,i=!1;this.watchRealTime||(this.now=new Date);const r=this.now;switch(this.view.id){case"years":n=this.view.startDate.getFullYear(),e=Array.apply(null,Array(25)).map((s,l)=>{const a=new Date(n+l,0,1),o=new Date(n+l+1,0,1);return o.setSeconds(-1),{startDate:a,formattedDate:t.formatDateLite(a),endDate:o,content:n+l,current:n+l===r.getFullYear()}});break;case"year":n=this.view.startDate.getFullYear(),e=Array.apply(null,Array(12)).map((s,l)=>{const a=new Date(n,l,1),o=new Date(n,l+1,1);return o.setSeconds(-1),{startDate:a,formattedDate:t.formatDateLite(a),endDate:o,content:this.xsmall?this.months[l].label.substr(0,3):this.months[l].label,current:l===r.getMonth()&&n===r.getFullYear()}});break;case"month":{const s=this.view.startDate.getMonth(),l=new Date(this.view.firstCellDate);i=!1,e=Array.apply(null,Array(42)).map((a,o)=>{const d=t.addDays(l,o),c=new Date(d);c.setHours(23,59,59,0);const u=!i&&t.isToday(d)&&!i++;return{startDate:d,formattedDate:t.formatDateLite(d),endDate:c,content:d.getDate(),today:u,outOfScope:d.getMonth()!==s,class:`vuecal__cell--day${d.getDay()||7}`}}),(this.hideWeekends||this.hideWeekdays.length)&&(e=e.filter(a=>{const o=a.startDate.getDay()||7;return!(this.hideWeekends&&o>=6||this.hideWeekdays.length&&this.hideWeekdays.includes(o))}));break}case"week":{i=!1;const s=this.view.startDate,l=this.weekDays;e=l.map((a,o)=>{const d=t.addDays(s,this.startWeekOnSunday?o-1:o),c=new Date(d);c.setHours(23,59,59,0);const u=(d.getDay()||7)-1;return{startDate:d,formattedDate:t.formatDateLite(d),endDate:c,today:!i&&t.isToday(d)&&!i++,specialHours:this.specialDayHours[u]||[]}}).filter((a,o)=>!l[o].hide);break}case"day":{const s=this.view.startDate,l=new Date(this.view.startDate);l.setHours(23,59,59,0);const a=(s.getDay()||7)-1;e=[{startDate:s,formattedDate:t.formatDateLite(s),endDate:l,today:t.isToday(s),specialHours:this.specialDayHours[a]||[]}];break}}return e},visibleDaysCount(){return this.isDayView?1:7-this.weekDays.reduce((t,e)=>t+e.hide,0)},cellWidth(){return 100/this.visibleDaysCount},cssClasses(){const{resizeAnEvent:t,dragAnEvent:e,dragCreateAnEvent:n}=this.domEvents;return{[`vuecal--${this.view.id}-view`]:!0,[`vuecal--${this.locale}`]:this.locale,"vuecal--no-time":!this.time,"vuecal--view-with-time":this.hasTimeColumn,"vuecal--week-numbers":this.showWeekNumbers&&this.isMonthView,"vuecal--twelve-hour":this.twelveHour,"vuecal--click-to-navigate":this.clickToNavigate,"vuecal--hide-weekends":this.hideWeekends,"vuecal--split-days":this.hasSplits,"vuecal--sticky-split-labels":this.hasSplits&&this.stickySplitLabels,"vuecal--overflow-x":this.minCellWidth&&this.isWeekView||this.hasSplits&&this.minSplitWidth,"vuecal--small":this.small,"vuecal--xsmall":this.xsmall,"vuecal--resizing-event":t._eid,"vuecal--drag-creating-event":n.event,"vuecal--dragging-event":e._eid,"vuecal--events-on-month-view":this.eventsOnMonthView,"vuecal--short-events":this.isMonthView&&this.eventsOnMonthView==="short","vuecal--has-touch":typeof window<"u"&&"ontouchstart"in window}},isYearsOrYearView(){return["years","year"].includes(this.view.id)},isYearsView(){return this.view.id==="years"},isYearView(){return this.view.id==="year"},isMonthView(){return this.view.id==="month"},isWeekOrDayView(){return["week","day"].includes(this.view.id)},isWeekView(){return this.view.id==="week"},isDayView(){return this.view.id==="day"}},watch:{events:{handler(t,e){this.updateMutableEvents(t),this.addEventsToView()},deep:!0},locale(t){this.loadLocale(t)},selectedDate(t){this.updateSelectedDate(t)},activeView(t){this.switchView(t)}}},Xp=Ke(Zp,[["render",function(t,e,n,i,r,s){const l=ee("vuecal-header"),a=ee("all-day-bar"),o=ee("weekdays-headings"),d=ee("vuecal-cell");return E(),A("div",{class:J(["vuecal__flex vuecal",s.cssClasses]),column:"",ref:"vuecal",lang:n.locale},[_(l,{options:t.$props,"edit-events":s.editEvents,"view-props":{views:s.views,weekDaysInHeader:s.weekDaysInHeader},"week-days":s.weekDays,"has-splits":s.hasSplits,"day-splits":s.daySplits,"switch-to-narrower-view":s.switchToNarrowerView},xn({"arrow-prev":D(()=>[N(t.$slots,"arrow-prev",{},()=>[Y(" "),_p,Y(" ")])]),"arrow-next":D(()=>[N(t.$slots,"arrow-next",{},()=>[Y(" "),Ep,Y(" ")])]),"today-button":D(()=>[N(t.$slots,"today-button",{},()=>[H("span",wp,I(r.texts.today),1)])]),title:D(()=>[N(t.$slots,"title",{title:s.viewTitle,view:r.view},()=>[Y(I(s.viewTitle),1)])]),_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:D(({heading:c,view:u})=>[N(t.$slots,"weekday-heading",{heading:c,view:u})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:D(({split:c})=>[N(t.$slots,"split-label",{split:c,view:r.view.id})]),key:"1"}:void 0]),1032,["options","edit-events","view-props","week-days","has-splits","day-splits","switch-to-narrower-view"]),n.hideBody?k("",!0):(E(),A("div",Ap,[_(Vt,{name:`slide-fade--${r.transitionDirection}`,appear:n.transitions},{default:D(()=>[(E(),A("div",{class:"vuecal__flex",style:{"min-width":"100%"},key:!!n.transitions&&r.view.id,column:""},[n.showAllDayEvents&&s.hasTimeColumn&&(!s.cellOrSplitMinWidth||s.isDayView&&!n.minSplitWidth)?(E(),j(a,Ei(Ze({key:0},s.allDayBar)),{event:D(({event:c,view:u})=>[N(t.$slots,"event",{view:u,event:c},()=>[s.editEvents.title&&c.titleEditable?(E(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>s.onEventTitleBlur(h,c),innerHTML:c.title},null,40,Sp)):c.title?(E(),A("div",{key:1,class:"vuecal__event-title",innerHTML:c.title},null,8,Cp)):k("",!0),!c.content||s.hasShortEvents||s.isShortMonthView?k("",!0):(E(),A("div",{key:2,class:"vuecal__event-content",innerHTML:c.content},null,8,Tp))])]),_:3},16)):k("",!0),H("div",{class:J(["vuecal__bg",{vuecal__flex:!s.hasTimeColumn}]),column:""},[H("div",Rp,[s.hasTimeColumn?(E(),A("div",kp,[n.showAllDayEvents&&s.cellOrSplitMinWidth&&(!s.isDayView||n.minSplitWidth)?(E(),A("div",{key:0,class:"vuecal__all-day-text",style:ae({height:s.allDayBar.height})},[H("span",null,I(r.texts.allDay),1)],4)):k("",!0),(E(!0),A(Q,null,Z(s.timeCells,(c,u)=>(E(),A("div",{class:"vuecal__time-cell",key:u,style:ae(`height: ${n.timeCellHeight}px`)},[N(t.$slots,"time-cell",{hours:c.hours,minutes:c.minutes},()=>[Mp,H("span",xp,I(c.label),1)])],4))),128))])):k("",!0),n.showWeekNumbers&&s.isMonthView?(E(),A("div",Ip,[(E(),A(Q,null,Z(6,c=>H("div",{class:"vuecal__flex vuecal__week-number-cell",key:c,grow:""},[N(t.$slots,"week-number-cell",{week:s.getWeekNumber(c-1)},()=>[Y(I(s.getWeekNumber(c-1)),1)])])),64))])):k("",!0),H("div",{class:J(["vuecal__flex vuecal__cells",`${r.view.id}-view`]),grow:"",wrap:!s.cellOrSplitMinWidth||!s.isWeekView,column:!!s.cellOrSplitMinWidth},[s.cellOrSplitMinWidth&&s.isWeekView?(E(),j(o,{key:0,"transition-direction":r.transitionDirection,"week-days":s.weekDays,"switch-to-narrower-view":s.switchToNarrowerView,style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},xn({_:2},[t.$slots["weekday-heading"]?{name:"weekday-heading",fn:D(({heading:c,view:u})=>[N(t.$slots,"weekday-heading",{heading:c,view:u})]),key:"0"}:void 0,t.$slots["split-label"]?{name:"split-label",fn:D(({split:c})=>[N(t.$slots,"split-label",{split:c,view:r.view.id})]),key:"1"}:void 0]),1032,["transition-direction","week-days","switch-to-narrower-view","style"])):s.hasSplits&&n.stickySplitLabels&&n.minSplitWidth?(E(),A("div",{key:1,class:"vuecal__flex vuecal__split-days-headers",style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[(E(!0),A(Q,null,Z(s.daySplits,(c,u)=>(E(),A("div",{class:J(["day-split-header",c.class||!1]),key:u},[N(t.$slots,"split-label",{split:c,view:r.view.id},()=>[Y(I(c.label),1)])],2))),128))],4)):k("",!0),n.showAllDayEvents&&s.hasTimeColumn&&(s.isWeekView&&s.cellOrSplitMinWidth||s.isDayView&&s.hasSplits&&n.minSplitWidth)?(E(),j(a,Ei(Ze({key:2},s.allDayBar)),{event:D(({event:c,view:u})=>[N(t.$slots,"event",{view:u,event:c},()=>[s.editEvents.title&&c.titleEditable?(E(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:h=>s.onEventTitleBlur(h,c),innerHTML:c.title},null,40,Np)):c.title?(E(),A("div",{key:1,class:"vuecal__event-title",innerHTML:c.title},null,8,Hp)):k("",!0),!c.content||s.hasShortEvents||s.isShortMonthView?k("",!0):(E(),A("div",{key:2,class:"vuecal__event-content",innerHTML:c.content},null,8,Pp))])]),_:3},16)):k("",!0),H("div",{class:"vuecal__flex",ref:c=>r.cellsEl=c,grow:"",wrap:!s.cellOrSplitMinWidth||!s.isWeekView,style:ae(s.cellOrSplitMinWidth?`min-width: ${s.cellOrSplitMinWidth}px`:"")},[(E(!0),A(Q,null,Z(s.viewCells,(c,u)=>(E(),j(d,{key:u,options:t.$props,"edit-events":s.editEvents,data:c,"cell-width":n.hideWeekdays.length&&(s.isWeekView||s.isMonthView)&&s.cellWidth,"min-timestamp":s.minTimestamp,"max-timestamp":s.maxTimestamp,"cell-splits":s.hasSplits&&s.daySplits||[]},{"cell-content":D(({events:h,split:f,selectCell:p})=>[N(t.$slots,"cell-content",{cell:c,view:r.view,goNarrower:p,events:h},()=>[f&&!n.stickySplitLabels?(E(),A("div",{key:0,class:"split-label",innerHTML:f.label},null,8,Lp)):k("",!0),c.content?(E(),A("div",{key:1,class:"vuecal__cell-date",innerHTML:c.content},null,8,Bp)):k("",!0),(s.isMonthView&&!n.eventsOnMonthView||s.isYearsOrYearView&&n.eventsCountOnYearView)&&h.length?(E(),A("div",Wp,[N(t.$slots,"events-count",{view:r.view,events:h},()=>[Y(I(h.length),1)])])):k("",!0),!s.cellOrSplitHasEvents(h,f)&&s.isWeekOrDayView?(E(),A("div",jp,[N(t.$slots,"no-event",{},()=>[Y(I(r.texts.noEvent),1)])])):k("",!0)])]),event:D(({event:h,view:f})=>[N(t.$slots,"event",{view:f,event:h},()=>[s.editEvents.title&&h.titleEditable?(E(),A("div",{key:0,class:"vuecal__event-title vuecal__event-title--edit",contenteditable:"",onBlur:p=>s.onEventTitleBlur(p,h),innerHTML:h.title},null,40,Fp)):h.title?(E(),A("div",{key:1,class:"vuecal__event-title",innerHTML:h.title},null,8,Up)):k("",!0),!n.time||h.allDay||s.isMonthView&&(h.allDay||n.showAllDayEvents==="short")||s.isShortMonthView?k("",!0):(E(),A("div",zp,[Y(I(r.utils.date.formatTime(h.start,s.TimeFormat)),1),h.endTimeMinutes?(E(),A("span",$p," - "+I(r.utils.date.formatTime(h.end,s.TimeFormat,null,!0)),1)):k("",!0),h.daysCount>1&&(h.segments[c.formattedDate]||{}).isFirstDay?(E(),A("small",Yp," +"+I(h.daysCount-1)+I((r.texts.day[0]||"").toLowerCase()),1)):k("",!0)])),!h.content||s.isMonthView&&h.allDay&&n.showAllDayEvents==="short"||s.isShortMonthView?k("",!0):(E(),A("div",{key:3,class:"vuecal__event-content",innerHTML:h.content},null,8,Gp))])]),"no-event":D(()=>[N(t.$slots,"no-event",{},()=>[Y(I(r.texts.noEvent),1)])]),_:2},1032,["options","edit-events","data","cell-width","min-timestamp","max-timestamp","cell-splits"]))),128))],12,Vp)],10,Op)])],2)]))]),_:3},8,["name","appear"]),r.ready?k("",!0):(E(),A("div",qp,Qp))]))],10,Dp)}]]);const Jp={components:{VueCal:Xp},setup(){const t=P([]);function e(){de.get("api/general_vacation/generalvacation/").then(i=>{console.log(i.data,"----------------------");for(let r in i.data)r=="План-график"&&i.data[r].map(s=>{t.value.push({name:s.name,start:s.start_work_period,end:s.end_work_period,content:s.name})})})}yt(()=>{e()});const n=P(null);return{events:t,selectedDate:n,f_generalvacation:e}}};function Kp(t,e,n,i,r,s){const l=ee("vue-cal");return E(),j(ie,null,{default:D(()=>[_(te,{class:"flex-column"},{default:D(()=>[_(K,{class:"h-100"},{default:D(()=>[_(l,{locale:"ru",xsmall:"",time:!1,"hide-view-selector":"","disable-views":["years","year","week","day"],"events-count-on-year-view":"","active-view":"month",events:i.events,todayButton:"",onCellFocus:e[1]||(e[1]=a=>i.selectedDate=a)},{"arrow-prev":D(()=>[_(me,{icon:"mdi-menu-left"})]),"arrow-next":D(()=>[_(me,{icon:"mdi-menu-right"})]),"today-button":D(()=>[_(Fs,{text:"Сегодня",location:"bottom"},{activator:D(({props:a})=>[_(me,Ze({onClick:e[0]||(e[0]=o=>i.selectedDate=new Date)},a,{icon:"mdi-crosshairs-gps",size:"x-small",class:"pt-1 pr-3",color:"more_details_btn"}),null,16)]),_:1})]),_:1},8,["events"])]),_:1})]),_:1}),_(te,null,{default:D(()=>[_(K,{class:"h-100"},{default:D(()=>[_(l,{locale:"ru",xsmall:"",time:!1,"hide-view-selector":"",split:"","header-format":"DD",events:i.events,"active-view":"day","disable-views":["years","year","month","week"],"selected-date":i.selectedDate},{"arrow-prev":D(()=>[_(me,{icon:"mdi-menu-left"})]),"arrow-next":D(()=>[_(me,{icon:"mdi-menu-right"})]),"today-button":D(()=>[]),_:1},8,["events","selected-date"])]),_:1})]),_:1})]),_:1})}const em=Re(Jp,[["render",Kp]]);const tm={components:{CarouselList:Pa,CarouselNumbers:Fa,CalendarFull:Dg,NewsListHome:Og,LoadRound:xa,DigitalLetna:Ug,EventCalendar:em},setup(){const t=fa(),e=P([]),n=P(null);ga();const i=Vs();yt(()=>{r()});const r=()=>{de.get("api/watcher/selectedlinks/").then(s=>{e.value=s.data})};return{accountStore:i,appStore:t,favoritLinks:r,favorit:e,toggle:n}}};function nm(t,e,n,i,r,s){const l=ee("Carousel-list"),a=ee("event-calendar"),o=ee("digital-letna"),d=ee("News-list-home");return E(),j(Ws,{fluid:"",class:"d-flex mx-0 h-100"},{default:D(()=>[_(ie,null,{default:D(()=>[_(te,{class:"d-flex flex-column",lg:"7"},{default:D(()=>[_(ie,{class:"flex-grow-0"},{default:D(()=>[_(te,{class:"pr-0 pb-0"},{default:D(()=>[_(l)]),_:1})]),_:1}),_(ie,null,{default:D(()=>[_(te,{class:"pr-0 pt-0 flex-column"},{default:D(()=>[_(K,{class:"h-100 bg-transparent pa-2 d-flex flex-column"},{default:D(()=>[_(ie,{class:"d-flex"},{default:D(()=>[_(te,{class:"flex-column d-flex"},{default:D(()=>[_(a)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),_(te,{class:"flex-column d-flex ma-3"},{default:D(()=>[_(ie,null,{default:D(()=>[_(te,{cols:"3",class:"flex-grow-0 pa-0 pb-3"},{default:D(()=>[_(o)]),_:1}),_(te,{class:"flex-column d-flex pr-0 pt-0 pb-0"},{default:D(()=>[_(K,{class:"flex-column pik overflow-auto"},{default:D(()=>[_(d)]),_:1})]),_:1})]),_:1}),_(ie,{class:"flex-grow-0"},{default:D(()=>[_(te,{class:"pa-0"},{default:D(()=>[_(K,{class:"flex-colmn"},{default:D(()=>[_(ka,{modelValue:i.toggle,"onUpdate:modelValue":e[0]||(e[0]=c=>i.toggle=c),divided:"",variant:"outlined"},{default:D(()=>[(E(!0),A(Q,null,Z(i.favorit,c=>(E(),j(Fs,{key:c,text:c.page,location:"top"},{activator:D(({props:u})=>[_(Jt,Ze(u,{icon:c.ico,to:c.fullPath}),null,16,["icon","to"])]),_:2},1032,["text"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const mm=Re(tm,[["render",nm]]);export{mm as default}; diff --git a/src/front/dist/assets/HomePage-3c6ff1ac.css b/src/front/dist/assets/HomePage-f12f6dd6.css similarity index 98% rename from src/front/dist/assets/HomePage-3c6ff1ac.css rename to src/front/dist/assets/HomePage-f12f6dd6.css index ecd0b293b..bc60a57c4 100644 --- a/src/front/dist/assets/HomePage-3c6ff1ac.css +++ b/src/front/dist/assets/HomePage-f12f6dd6.css @@ -1 +1 @@ -.bgCard{background:#ffffff38}.bgText{background:#ffffffb0;line-height:2.1rem!important}.titles{font-family:cursive!important;background:#ffffff8c}.textareas .v-field__input{font-size:1.3em!important}.numstyle{font-size:2.875rem!important;line-height:2.5rem!important;font-family:cursive!important;background:#ffffffb0}.statstyle{background:#ffffffb0;font-size:1rem!important}.g{background-color:#fff}.v-sheet{display:block;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-sheet--border{border-width:thin;box-shadow:none}.v-sheet--absolute{position:absolute}.v-sheet--fixed{position:fixed}.v-sheet--relative{position:relative}.v-sheet--sticky{position:sticky}.v-sheet--rounded{border-radius:4px}#fc-dom-1:first-letter{text-transform:capitalize}.fc-toolbar{background-color:#f8f8f8}.fc-day-header{font-weight:700;text-align:center}.fc-day{border:none}.fc-time-grid-event{background-color:#e6e6e6;border:none;color:#000}.fc-event-title{font-weight:700}.fc .fc-toolbar.fc-header-toolbar{padding-bottom:.2em;margin-bottom:0}.fc .fc-popover{top:0!important;left:450px!important;overflow:auto;min-width:500px;height:380px}.fc-h-event .fc-event-title{display:initial!important}.fc{background-color:var("bg-main_theme")}.fc-button{padding:1px!important;border-radius:1em!important;line-height:0!important;background-color:transparent!important;border-color:transparent!important}.fc-icon{color:#000;display:flex}.fc-button:focus,.fc-icon{outline:none!important}.fc-button,.fc-buttonactive,.fc-button:focus{border:none!important}.fc-header-toolbar{background:white!important}.pagination[data-v-1f3339bc]{display:flex}.newsVH[data-v-1f3339bc]{height:90vh}.bgchat[data-v-1f3339bc]{background-color:#efe9f98a}.bgchatnot[data-v-1f3339bc]{background-color:#eef9efad}.fiction .v-input__control{display:none}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__track,.v-switch__thumb{background-color:currentColor;transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error))}.v-selection-control--dirty .v-switch__thumb{color:currentColor}.v-switch__track{border-radius:8px;height:14px;opacity:.6;width:36px;cursor:pointer}.v-switch--inset .v-switch__track{border-radius:14px;height:28px;width:48px}.v-switch__thumb{align-items:center;border-radius:50%;color:rgb(var(--v-theme-surface));display:flex;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s transform cubic-bezier(.4,0,.2,1);box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-switch:not(.v-switch--loading) .v-icon~.v-switch__thumb{display:none}.v-switch--loading .v-selection-control__input>.v-icon{display:none}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.15s transform cubic-bezier(.4,0,.2,1);transform:translate(-10px);position:absolute}.v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.vuecal__weekdays-headings{border-bottom:1px solid #ddd;margin-bottom:-1px}.vuecal--week-numbers .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:3em}.vuecal--view-with-time.vuecal--twelve-hour .vuecal__weekdays-headings{font-size:.9em;padding-left:4em}.vuecal--overflow-x.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:0}.vuecal__heading{width:100%;height:2.8em;font-weight:400;justify-content:center;text-align:center;align-items:center;position:relative;overflow:hidden}.vuecal__heading>.vuecal__flex{width:100%;height:100%;align-items:initial!important}.vuecal--sticky-split-labels .vuecal__heading{height:3.4em}.vuecal--month-view .vuecal__heading,.vuecal--week-view .vuecal__heading,.vuecal--day-view .vuecal__heading{width:14.2857%}.vuecal--hide-weekends.vuecal--month-view .vuecal__heading,.vuecal--hide-weekends.vuecal--week-view .vuecal__heading,.vuecal--hide-weekends.vuecal--day-view .vuecal__heading,.vuecal--years-view .vuecal__heading{width:20%}.vuecal--year-view .vuecal__heading{width:33.33%}.vuecal__heading .weekday-label{flex-shrink:0;display:flex;justify-content:center;align-items:center}.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .small,.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal .vuecal__split-days-headers{align-items:center}@media screen and (max-width: 550px){.vuecal__heading{line-height:1.2}.vuecal__heading .small,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .full,.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--overflow-x .vuecal__heading .small,.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}@media screen and (max-width: 450px){.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .full,.vuecal__heading .small,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}.vuecal__header button{outline:none;font-family:inherit}.vuecal__menu{padding:0;margin:0;list-style-type:none;justify-content:center;background-color:#00000005}.vuecal__view-btn{background:none;border:none;padding:.3em 1em;height:2.2em;font-size:1.3em;border-bottom:0 solid currentColor;cursor:pointer;color:inherit;box-sizing:border-box;transition:.2s}.vuecal__view-btn--active{border-bottom-width:2px;background:rgba(255,255,255,.15)}.vuecal__title-bar{background-color:#0000001a;display:flex;align-items:center;text-align:center;justify-content:space-between;font-size:1.4em;line-height:1.3;min-height:2em}.vuecal--xsmall .vuecal__title-bar{font-size:1.3em}.vuecal__title{position:relative;justify-content:center}.vuecal__title button{cursor:pointer;background:none;border:none}.vuecal__title button.slide-fade--left-leave-active,.vuecal__title button.slide-fade--right-leave-active{width:100%}.vuecal__today-btn{position:relative;align-items:center;display:flex;font-size:.8em;background:none;border:none}.vuecal__today-btn span.default{font-size:.8em;padding:3px 6px;text-transform:uppercase;cursor:pointer}.vuecal__arrow{cursor:pointer;position:relative;z-index:1;background:none;border:none;white-space:nowrap}.vuecal__arrow--prev{margin-left:.6em}.vuecal__arrow--next{margin-right:.6em}.vuecal__arrow i.angle{display:inline-block;border:solid currentColor;border-width:0 2px 2px 0;padding:.25em;transform:rotate(-45deg)}.vuecal__arrow--prev i.angle{border-width:2px 0 0 2px}.vuecal__arrow--highlighted,.vuecal__today-btn--highlighted,.vuecal__view-btn--highlighted{position:relative;background-color:#0000000a}.vuecal__arrow--highlighted *,.vuecal__today-btn--highlighted *,.vuecal__view-btn--highlighted *{pointer-events:none}.vuecal__arrow--highlighted:before,.vuecal__arrow--highlighted:after,.vuecal__today-btn--highlighted:before,.vuecal__today-btn--highlighted:after,.vuecal__view-btn--highlighted:before,.vuecal__view-btn--highlighted:after{content:"";background-color:inherit;animation:sonar .8s infinite ease-out;position:absolute;top:50%;left:50%;pointer-events:none}.vuecal__arrow--highlighted:before,.vuecal__today-btn--highlighted:before,.vuecal__view-btn--highlighted:before{width:3em;height:3em;border-radius:3em;margin-top:-1.5em;margin-left:-1.5em}.vuecal__arrow--highlighted:after,.vuecal__today-btn--highlighted:after,.vuecal__view-btn--highlighted:after{animation-duration:1.5s;animation-delay:.1s;width:2.6em;height:2.6em;border-radius:2.6em;margin-top:-1.3em;margin-left:-1.3em}@keyframes sonar{0%,20%{opacity:1}to{transform:scale(2.5);opacity:0}}@media screen and (max-width: 450px){.vuecal__title{font-size:.9em}.vuecal__view-btn{padding-left:.6em;padding-right:.6em}}@media screen and (max-width: 350px){.vuecal__view-btn{font-size:1.1em}}.vuecal__event{color:#666;background-color:#f8f8f8cc;position:relative;box-sizing:border-box;left:0;width:100%;z-index:1;transition:box-shadow .3s,left .3s,width .3s;overflow:hidden}.vuecal--no-time .vuecal__event{min-height:8px}.vuecal:not(.vuecal--dragging-event) .vuecal__event:hover{z-index:2}.vuecal__cell .vuecal__event *{-webkit-user-select:text;-moz-user-select:text;user-select:text}.vuecal--view-with-time .vuecal__event:not(.vuecal__event--all-day){position:absolute}.vuecal--view-with-time .vuecal__bg .vuecal__event--all-day{position:absolute;top:0;bottom:0;z-index:0;opacity:.6;width:auto;right:0}.vuecal--view-with-time .vuecal__all-day .vuecal__event--all-day{position:relative;left:0}.vuecal__event--background{z-index:0}.vuecal__event--focus,.vuecal__event:focus{box-shadow:1px 1px 6px #0003;z-index:3;outline:none}.vuecal__event.vuecal__event--dragging{opacity:.7}.vuecal__event.vuecal__event--static{opacity:0;transition:opacity .1s}@-moz-document url-prefix(){.vuecal__event.vuecal__event--dragging{opacity:1}}.vuecal__event-resize-handle{position:absolute;bottom:0;left:0;right:0;height:1em;background-color:#ffffff4d;opacity:0;transform:translateY(110%);transition:.3s;cursor:ns-resize}.vuecal__event:hover .vuecal__event-resize-handle,.vuecal__event:focus .vuecal__event-resize-handle,.vuecal__event--focus .vuecal__event-resize-handle,.vuecal__event--resizing .vuecal__event-resize-handle{opacity:1;transform:translateY(0)}.vuecal__event--dragging .vuecal__event-resize-handle{display:none}.vuecal__event-delete{position:absolute;top:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;height:1.4em;line-height:1.4em;background-color:#dd3333d9;color:#fff;z-index:0;cursor:pointer;transform:translateY(-110%);transition:.3s}.vuecal__event .vuecal__event-delete{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--full-height-delete .vuecal__event-delete{height:auto;bottom:0}.vuecal--full-height-delete .vuecal__event-delete:before{content:"";width:1.7em;height:1.8em;display:block;background-image:url('data:image/svg+xml;utf8,')}.vuecal__event--deletable .vuecal__event-delete{transform:translateY(0);z-index:1}.vuecal__event--deletable.vuecal__event--dragging .vuecal__event-delete{opacity:0;transition:none}.vuecal--month-view .vuecal__event-title{font-size:.85em}.vuecal--short-events .vuecal__event-title{text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 3px}.vuecal__event-title,.vuecal__event-content{-webkit-hyphens:auto;hyphens:auto}.vuecal__event-title--edit{border-bottom:1px solid transparent;text-align:center;transition:.3s;color:inherit;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:120% .15em;background-size:.4em;outline:none;width:100%}.vuecal__event-title--edit:hover,.vuecal__event-title--edit:focus{border-color:#0006;background-position:99% .15em;background-size:1.2em}.vuecal__cell{position:relative;width:100%;display:flex;justify-content:center;align-items:center;text-align:center;transition:.15s ease-in-out background-color}.vuecal__cells.month-view .vuecal__cell,.vuecal__cells.week-view .vuecal__cell{width:14.2857%}.vuecal--hide-weekends .vuecal__cells.month-view .vuecal__cell,.vuecal--hide-weekends .vuecal__cells.week-view .vuecal__cell,.vuecal__cells.years-view .vuecal__cell{width:20%}.vuecal__cells.year-view .vuecal__cell{width:33.33%}.vuecal__cells.day-view .vuecal__cell{flex:1}.vuecal--overflow-x.vuecal--day-view .vuecal__cell{width:auto}.vuecal--click-to-navigate .vuecal__cell:not(.vuecal__cell--disabled){cursor:pointer}.vuecal--view-with-time .vuecal__cell,.vuecal--week-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits),.vuecal--day-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits){display:block}.vuecal__cell.vuecal__cell--has-splits{flex-direction:row;display:flex}.vuecal__cell:before{content:"";position:absolute;z-index:0;top:0;left:0;right:-1px;bottom:-1px;border:1px solid rgba(196,196,196,.25)}.vuecal--overflow-x.vuecal--day-view .vuecal__cell:before{bottom:0}.vuecal__cell--today,.vuecal__cell--current{background-color:#f0f0ff66;z-index:1}.vuecal__cell--selected{background-color:#ebfff566;z-index:2}.vuecal--day-view .vuecal__cell--selected{background:none}.vuecal__cell--out-of-scope{color:#00000040}.vuecal__cell--disabled{color:#00000040;cursor:not-allowed}.vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal__cell-split.vuecal__cell-split--highlighted{background-color:#0000000a;transition-duration:5ms}.vuecal__cell-content{position:relative;width:100%;height:100%;outline:none}.vuecal--years-view .vuecal__cell-content,.vuecal--year-view .vuecal__cell-content,.vuecal--month-view .vuecal__cell-content{justify-content:center}.vuecal__cell .cell-time-labels{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.vuecal__cell .cell-time-label{flex-grow:1;font-size:.8em;opacity:.3;line-height:1.7}.vuecal__cell-split{display:flex;flex-grow:1;flex-direction:column;height:100%;position:relative;transition:.15s ease-in-out background-color}.vuecal__cell-events{width:100%}.vuecal__cell-events-count{position:absolute;left:50%;top:65%;transform:translate(-50%);min-width:12px;height:12px;line-height:12px;padding:0 3px;background:#999;color:#fff;border-radius:12px;font-size:10px;box-sizing:border-box}.vuecal__cell .vuecal__special-hours{position:absolute;left:0;right:0;box-sizing:border-box}.vuecal--overflow-x.vuecal--week-view .vuecal__cell,.vuecal__cell-split{overflow:hidden}.vuecal__no-event{padding-top:1em;color:#aaa;justify-self:flex-start;margin-bottom:auto}.vuecal__all-day .vuecal__no-event{display:none}.vuecal__now-line{position:absolute;left:0;width:100%;height:0;color:red;border-top:1px solid currentColor;opacity:.6;z-index:1}.vuecal__now-line:before{content:"";position:absolute;top:-6px;left:0;border:5px solid transparent;border-left-color:currentColor}.vuecal{height:100%;box-shadow:0 0 0 1px inset #00000014}.vuecal *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--has-touch *:not(.vuecal__event-title--edit){-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal .clickable{cursor:pointer}.vuecal--resizing-event,.vuecal--drag-creating-event{cursor:ns-resize}.vuecal--dragging-event{cursor:move;cursor:grabbing}.vuecal .dragging-helper{position:absolute;width:60px;height:40px;background:rgba(138,190,230,.8);border:1px solid #61a9e0;z-index:10}.vuecal--xsmall{font-size:.9em}.vuecal__flex{display:flex;flex-direction:row}.vuecal__flex[column]{flex-direction:column;flex:1 1 auto}.vuecal__flex[grow]{flex:1 1 auto;width:100%}.vuecal__flex[wrap]{flex-wrap:wrap}.vuecal__split-days-headers.slide-fade--right-leave-active{display:none}.vuecal--week-numbers.vuecal--month-view .vuecal__split-days-headers{margin-left:3em}.vuecal--day-view:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:3em;height:2.2em}.vuecal--day-view.vuecal--twelve-hour:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:4em}.vuecal__split-days-headers .day-split-header{display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;height:100%}.vuecal__split-days-headers .vuecal--day-view.vuecal--overflow-x.vuecal--sticky-split-labels .day-split-header{height:1.5em}.vuecal__body{position:relative;overflow:hidden}.vuecal__all-day{min-height:1.7em;margin-bottom:-1px;flex-shrink:0}.vuecal__all-day-text{width:3em;box-sizing:border-box;color:#999;padding-right:2px;display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;border-bottom:1px solid #ddd;-webkit-hyphens:auto;hyphens:auto}.vuecal__all-day-text span{font-size:.85em;text-align:right;line-height:1.1}.vuecal--twelve-hour .vuecal__all-day>span{width:4em}.vuecal__bg{overflow:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;min-height:60px;position:relative;width:100%}.vuecal--no-time .vuecal__bg{display:flex;flex:1 1 auto;overflow:auto}.vuecal__week-numbers{width:3em;flex-shrink:0!important}.vuecal__week-numbers .vuecal__week-number-cell{opacity:.4;font-size:.9em;align-items:center;justify-items:center;justify-content:center}.vuecal__scrollbar-check{position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;visibility:hidden;z-index:-1}.vuecal__scrollbar-check div{height:120%}.vuecal__time-column{width:3em;height:100%;flex-shrink:0}.vuecal--twelve-hour .vuecal__time-column{width:4em;font-size:.9em}.vuecal--overflow-x.vuecal--week-view .vuecal__time-column{margin-top:2.8em;box-shadow:0 1px 1px #0000004d}.vuecal--overflow-x.vuecal--week-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:3.4em}.vuecal--overflow-x.vuecal--day-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:1.5em}.vuecal__time-column .vuecal__time-cell{color:#999;text-align:right;padding-right:2px;font-size:.9em}.vuecal__time-column .vuecal__time-cell-line:before{content:"";position:absolute;left:0;right:0;border-top:1px solid rgba(196,196,196,.3)}.vuecal__cells{margin:0 1px 1px 0}.vuecal--overflow-x.vuecal--day-view .vuecal__cells{margin:0}.vuecal--events-on-month-view.vuecal--short-events .vuecal__cells{width:99.9%}.vuecal--overflow-x.vuecal--day-view .vuecal__cells,.vuecal--overflow-x.vuecal--week-view .vuecal__cells{flex-wrap:nowrap;overflow:auto}.slide-fade--left-enter-active,.slide-fade--left-leave-active,.slide-fade--right-enter-active,.slide-fade--right-leave-active{transition:.25s ease-out}.slide-fade--left-enter-from,.slide-fade--right-leave-to{transform:translate(-15px);opacity:0}.slide-fade--left-leave-to,.slide-fade--right-enter-from{transform:translate(15px);opacity:0}.slide-fade--left-leave-active,.slide-fade--right-leave-active{position:absolute!important;height:100%}.vuecal__title-bar .slide-fade--left-leave-active,.vuecal__title-bar .slide-fade--right-leave-active{left:0;right:0;height:auto}.vuecal__heading .slide-fade--left-leave-active,.vuecal__heading .slide-fade--right-leave-active{display:flex;align-items:center}.vuecal--green-theme .vuecal__menu,.vuecal--green-theme .vuecal__cell-events-count{background-color:#42b983;color:#fff}.vuecal--green-theme .vuecal__title-bar{background-color:#e4f5ef}.vuecal--green-theme .vuecal__cell--today,.vuecal--green-theme .vuecal__cell--current{background-color:#f0f0ff66}.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:#ebfff566}.vuecal--green-theme .vuecal__cell--selected:before{border-color:#42b98380}.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:#c3ffe180}.vuecal--green-theme .vuecal__arrow--highlighted,.vuecal--green-theme .vuecal__today-btn--highlighted,.vuecal--green-theme .vuecal__view-btn--highlighted{background-color:#88ecbf40}.vuecal--blue-theme .vuecal__menu,.vuecal--blue-theme .vuecal__cell-events-count{background-color:#42a3b9cc;color:#fff}.vuecal--blue-theme .vuecal__title-bar{background-color:#00a5bc4d}.vuecal--blue-theme .vuecal__cell--today,.vuecal--blue-theme .vuecal__cell--current{background-color:#f0f0ff66}.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:#ebfdff66}.vuecal--blue-theme .vuecal__cell--selected:before{border-color:#73bfcc80}.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:#00a5bc0f}.vuecal--blue-theme .vuecal__arrow--highlighted,.vuecal--blue-theme .vuecal__today-btn--highlighted,.vuecal--blue-theme .vuecal__view-btn--highlighted{background-color:#42a3b933}.vuecal--rounded-theme .vuecal__weekdays-headings{border:none}.vuecal--rounded-theme .vuecal__cell,.vuecal--rounded-theme .vuecal__cell:before{background:none;border:none}.vuecal--rounded-theme .vuecal__cell--out-of-scope{opacity:.4}.vuecal--rounded-theme .vuecal__cell-content{width:30px;height:30px;flex-grow:0;border:1px solid transparent;border-radius:30px;color:#333}.vuecal--rounded-theme.vuecal--day-view .vuecal__cell-content{width:auto;background:none}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell{width:33.33%}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell-content{width:85px}.vuecal--rounded-theme.vuecal--years-view .vuecal__cell-content{width:52px}.vuecal--rounded-theme .vuecal__cell{background-color:transparent!important}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:#f1faf7}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#42b983;color:#fff}.vuecal--rounded-theme.vuecal--green-theme .vuecal--day-view .vuecal__cell--today:before{background-color:#42b9830d}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#42b983}.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:#c3ffe180}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:#64b6ff33}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#8fb7e4;color:#fff}.vuecal--rounded-theme.vuecal--blue-theme .vuecal--day-view .vuecal__cell--today:before{background-color:#8fb7e41a}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#61a9e0}.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:#00a5bc0f}.vuecal--date-picker .vuecal__title-bar{font-size:1.2em}.vuecal--date-picker .vuecal__heading{height:2.2em;font-weight:500;opacity:.4}.vuecal--date-picker .vuecal__weekdays-headings{border:none}.vuecal--date-picker .vuecal__body{margin-left:1px}.vuecal--date-picker .vuecal__cell,.vuecal--date-picker .vuecal__cell:before{background:none;border:none}.vuecal--date-picker .vuecal__cell-content{height:26px;flex-grow:0;border:1px solid transparent;border-radius:25px;transition:background-color .2s cubic-bezier(.39,.58,.57,1)}.vuecal--date-picker.vuecal--years-view .vuecal__cell-content{flex:0;padding:0 4px;height:24px}.vuecal--date-picker.vuecal--year-view .vuecal__cell-content{flex:0;padding:0 15px}.vuecal--date-picker.vuecal--month-view .vuecal__cell-content{width:26px}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell-content:hover{background-color:#0000001a}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{background-color:#42b982;color:#fff}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--current .vuecal__cell-content,.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{border-color:#42b982}.vuecal__cell-events-count{width:20px;min-width:0;height:11px;padding:0;color:transparent}.vuecal{border-radius:6px}.vuecal__title-bar{border-top-left-radius:3px;border-top-right-radius:3px}.vuecal__title-bar{background:var(--cards)}.vuecal__flex .vuecal__title{font-family:sans-serif}.vuecal__cell-events-count{position:absolute;left:50%;top:65%;transform:translate(-50%);min-width:15px;height:15px;line-height:15px;padding:0;background:linear-gradient(to top right,rgba(19,84,122,.8),rgba(128,208,199,.8));color:#f8fff9!important;border-radius:12px;font-size:10px;box-sizing:border-box}.vuecal__event{color:#666;background-color:transparent;padding:10px;position:relative;box-sizing:border-box;left:0;width:100%;z-index:1;transition:box-shadow .3s,left .3s,width .3s;overflow:hidden;text-align:justify}.vuecal--rounded-theme .vuecal__cell-content{width:30px;height:30px;flex-grow:0;border:1px solid #00a5bc00;background:#c2e9d78c;border-radius:30px;color:#333}.vuecal__cell-content{cursor:pointer}.vuecal__body{position:relative;overflow:auto;height:0}.vuecal--no-time .vuecal__event{min-height:20px}.vuecal__cell--selected:before{border-color:#1e413180}.vuecal__cell--today,.vuecal__cell--current{background-color:#eeb5d68c}.vuecal__cell--selected:before{border-color:#1e413100}.v-picker-title,.v-picker__header,.v-picker__actions{display:none}.pik{height:85.3vh}.hicard{height:40%!important;overflow:auto}.fg{height:240px;overflow:auto}.fixed-bar{position:sticky;position:-webkit-sticky;top:0;z-index:2} +.bgCard{background:#ffffff38}.bgText{background:#ffffffb0;line-height:2.1rem!important}.titles{font-family:cursive!important;background:#ffffff8c}.textareas .v-field__input{font-size:1.3em!important}.numstyle{font-size:2.875rem!important;line-height:2.5rem!important;font-family:cursive!important;background:#ffffffb0}.statstyle{background:#ffffffb0;font-size:1rem!important}.g{background-color:#fff}.v-sheet{display:block;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-sheet--border{border-width:thin;box-shadow:none}.v-sheet--absolute{position:absolute}.v-sheet--fixed{position:fixed}.v-sheet--relative{position:relative}.v-sheet--sticky{position:sticky}.v-sheet--rounded{border-radius:4px}#fc-dom-1:first-letter{text-transform:capitalize}.fc-toolbar{background-color:#f8f8f8}.fc-day-header{font-weight:700;text-align:center}.fc-day{border:none}.fc-time-grid-event{background-color:#e6e6e6;border:none;color:#000}.fc-event-title{font-weight:700}.fc .fc-toolbar.fc-header-toolbar{padding-bottom:.2em;margin-bottom:0}.fc .fc-popover{top:0!important;left:450px!important;overflow:auto;min-width:500px;height:380px}.fc-h-event .fc-event-title{display:initial!important}.fc{background-color:var("bg-main_theme")}.fc-button{padding:1px!important;border-radius:1em!important;line-height:0!important;background-color:transparent!important;border-color:transparent!important}.fc-icon{color:#000;display:flex}.fc-button:focus,.fc-icon{outline:none!important}.fc-button,.fc-buttonactive,.fc-button:focus{border:none!important}.fc-header-toolbar{background:white!important}.pagination[data-v-0f8c630e]{display:flex}.newsVH[data-v-0f8c630e]{height:90vh}.bgchat[data-v-0f8c630e]{background-color:#efe9f98a}.bgchatnot[data-v-0f8c630e]{background-color:#eef9efad}.fiction .v-input__control{display:none}.v-switch .v-label{padding-inline-start:10px}.v-switch__loader{display:flex}.v-switch__track,.v-switch__thumb{background-color:currentColor;transition:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__track,.v-selection-control--error:not(.v-selection-control--disabled) .v-switch__thumb{background-color:rgb(var(--v-theme-error))}.v-selection-control--dirty .v-switch__thumb{color:currentColor}.v-switch__track{border-radius:8px;height:14px;opacity:.6;width:36px;cursor:pointer}.v-switch--inset .v-switch__track{border-radius:14px;height:28px;width:48px}.v-switch__thumb{align-items:center;border-radius:50%;color:rgb(var(--v-theme-surface));display:flex;height:20px;justify-content:center;width:20px;pointer-events:none;transition:.15s transform cubic-bezier(.4,0,.2,1);box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-switch--inset .v-switch__thumb{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-switch:not(.v-switch--loading) .v-icon~.v-switch__thumb{display:none}.v-switch--loading .v-selection-control__input>.v-icon{display:none}.v-switch .v-selection-control{min-height:var(--v-input-control-height)}.v-switch .v-selection-control__input{border-radius:50%;transition:.15s transform cubic-bezier(.4,0,.2,1);transform:translate(-10px);position:absolute}.v-switch .v-selection-control--dirty .v-selection-control__input{transform:translate(10px)}.v-switch.v-switch--indeterminate .v-selection-control__input{transform:scale(.8)}.v-switch.v-switch--indeterminate .v-switch__thumb{transform:scale(.75);box-shadow:none}.v-switch.v-switch--inset .v-selection-control__wrapper{width:auto}.vuecal__weekdays-headings{border-bottom:1px solid #ddd;margin-bottom:-1px}.vuecal--week-numbers .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:3em}.vuecal--view-with-time.vuecal--twelve-hour .vuecal__weekdays-headings{font-size:.9em;padding-left:4em}.vuecal--overflow-x.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:0}.vuecal__heading{width:100%;height:2.8em;font-weight:400;justify-content:center;text-align:center;align-items:center;position:relative;overflow:hidden}.vuecal__heading>.vuecal__flex{width:100%;height:100%;align-items:initial!important}.vuecal--sticky-split-labels .vuecal__heading{height:3.4em}.vuecal--month-view .vuecal__heading,.vuecal--week-view .vuecal__heading,.vuecal--day-view .vuecal__heading{width:14.2857%}.vuecal--hide-weekends.vuecal--month-view .vuecal__heading,.vuecal--hide-weekends.vuecal--week-view .vuecal__heading,.vuecal--hide-weekends.vuecal--day-view .vuecal__heading,.vuecal--years-view .vuecal__heading{width:20%}.vuecal--year-view .vuecal__heading{width:33.33%}.vuecal__heading .weekday-label{flex-shrink:0;display:flex;justify-content:center;align-items:center}.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .small,.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal .vuecal__split-days-headers{align-items:center}@media screen and (max-width: 550px){.vuecal__heading{line-height:1.2}.vuecal__heading .small,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .full,.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--overflow-x .vuecal__heading .small,.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}@media screen and (max-width: 450px){.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .full,.vuecal__heading .small,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}.vuecal__header button{outline:none;font-family:inherit}.vuecal__menu{padding:0;margin:0;list-style-type:none;justify-content:center;background-color:#00000005}.vuecal__view-btn{background:none;border:none;padding:.3em 1em;height:2.2em;font-size:1.3em;border-bottom:0 solid currentColor;cursor:pointer;color:inherit;box-sizing:border-box;transition:.2s}.vuecal__view-btn--active{border-bottom-width:2px;background:rgba(255,255,255,.15)}.vuecal__title-bar{background-color:#0000001a;display:flex;align-items:center;text-align:center;justify-content:space-between;font-size:1.4em;line-height:1.3;min-height:2em}.vuecal--xsmall .vuecal__title-bar{font-size:1.3em}.vuecal__title{position:relative;justify-content:center}.vuecal__title button{cursor:pointer;background:none;border:none}.vuecal__title button.slide-fade--left-leave-active,.vuecal__title button.slide-fade--right-leave-active{width:100%}.vuecal__today-btn{position:relative;align-items:center;display:flex;font-size:.8em;background:none;border:none}.vuecal__today-btn span.default{font-size:.8em;padding:3px 6px;text-transform:uppercase;cursor:pointer}.vuecal__arrow{cursor:pointer;position:relative;z-index:1;background:none;border:none;white-space:nowrap}.vuecal__arrow--prev{margin-left:.6em}.vuecal__arrow--next{margin-right:.6em}.vuecal__arrow i.angle{display:inline-block;border:solid currentColor;border-width:0 2px 2px 0;padding:.25em;transform:rotate(-45deg)}.vuecal__arrow--prev i.angle{border-width:2px 0 0 2px}.vuecal__arrow--highlighted,.vuecal__today-btn--highlighted,.vuecal__view-btn--highlighted{position:relative;background-color:#0000000a}.vuecal__arrow--highlighted *,.vuecal__today-btn--highlighted *,.vuecal__view-btn--highlighted *{pointer-events:none}.vuecal__arrow--highlighted:before,.vuecal__arrow--highlighted:after,.vuecal__today-btn--highlighted:before,.vuecal__today-btn--highlighted:after,.vuecal__view-btn--highlighted:before,.vuecal__view-btn--highlighted:after{content:"";background-color:inherit;animation:sonar .8s infinite ease-out;position:absolute;top:50%;left:50%;pointer-events:none}.vuecal__arrow--highlighted:before,.vuecal__today-btn--highlighted:before,.vuecal__view-btn--highlighted:before{width:3em;height:3em;border-radius:3em;margin-top:-1.5em;margin-left:-1.5em}.vuecal__arrow--highlighted:after,.vuecal__today-btn--highlighted:after,.vuecal__view-btn--highlighted:after{animation-duration:1.5s;animation-delay:.1s;width:2.6em;height:2.6em;border-radius:2.6em;margin-top:-1.3em;margin-left:-1.3em}@keyframes sonar{0%,20%{opacity:1}to{transform:scale(2.5);opacity:0}}@media screen and (max-width: 450px){.vuecal__title{font-size:.9em}.vuecal__view-btn{padding-left:.6em;padding-right:.6em}}@media screen and (max-width: 350px){.vuecal__view-btn{font-size:1.1em}}.vuecal__event{color:#666;background-color:#f8f8f8cc;position:relative;box-sizing:border-box;left:0;width:100%;z-index:1;transition:box-shadow .3s,left .3s,width .3s;overflow:hidden}.vuecal--no-time .vuecal__event{min-height:8px}.vuecal:not(.vuecal--dragging-event) .vuecal__event:hover{z-index:2}.vuecal__cell .vuecal__event *{-webkit-user-select:text;-moz-user-select:text;user-select:text}.vuecal--view-with-time .vuecal__event:not(.vuecal__event--all-day){position:absolute}.vuecal--view-with-time .vuecal__bg .vuecal__event--all-day{position:absolute;top:0;bottom:0;z-index:0;opacity:.6;width:auto;right:0}.vuecal--view-with-time .vuecal__all-day .vuecal__event--all-day{position:relative;left:0}.vuecal__event--background{z-index:0}.vuecal__event--focus,.vuecal__event:focus{box-shadow:1px 1px 6px #0003;z-index:3;outline:none}.vuecal__event.vuecal__event--dragging{opacity:.7}.vuecal__event.vuecal__event--static{opacity:0;transition:opacity .1s}@-moz-document url-prefix(){.vuecal__event.vuecal__event--dragging{opacity:1}}.vuecal__event-resize-handle{position:absolute;bottom:0;left:0;right:0;height:1em;background-color:#ffffff4d;opacity:0;transform:translateY(110%);transition:.3s;cursor:ns-resize}.vuecal__event:hover .vuecal__event-resize-handle,.vuecal__event:focus .vuecal__event-resize-handle,.vuecal__event--focus .vuecal__event-resize-handle,.vuecal__event--resizing .vuecal__event-resize-handle{opacity:1;transform:translateY(0)}.vuecal__event--dragging .vuecal__event-resize-handle{display:none}.vuecal__event-delete{position:absolute;top:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;height:1.4em;line-height:1.4em;background-color:#dd3333d9;color:#fff;z-index:0;cursor:pointer;transform:translateY(-110%);transition:.3s}.vuecal__event .vuecal__event-delete{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--full-height-delete .vuecal__event-delete{height:auto;bottom:0}.vuecal--full-height-delete .vuecal__event-delete:before{content:"";width:1.7em;height:1.8em;display:block;background-image:url('data:image/svg+xml;utf8,')}.vuecal__event--deletable .vuecal__event-delete{transform:translateY(0);z-index:1}.vuecal__event--deletable.vuecal__event--dragging .vuecal__event-delete{opacity:0;transition:none}.vuecal--month-view .vuecal__event-title{font-size:.85em}.vuecal--short-events .vuecal__event-title{text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 3px}.vuecal__event-title,.vuecal__event-content{-webkit-hyphens:auto;hyphens:auto}.vuecal__event-title--edit{border-bottom:1px solid transparent;text-align:center;transition:.3s;color:inherit;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:120% .15em;background-size:.4em;outline:none;width:100%}.vuecal__event-title--edit:hover,.vuecal__event-title--edit:focus{border-color:#0006;background-position:99% .15em;background-size:1.2em}.vuecal__cell{position:relative;width:100%;display:flex;justify-content:center;align-items:center;text-align:center;transition:.15s ease-in-out background-color}.vuecal__cells.month-view .vuecal__cell,.vuecal__cells.week-view .vuecal__cell{width:14.2857%}.vuecal--hide-weekends .vuecal__cells.month-view .vuecal__cell,.vuecal--hide-weekends .vuecal__cells.week-view .vuecal__cell,.vuecal__cells.years-view .vuecal__cell{width:20%}.vuecal__cells.year-view .vuecal__cell{width:33.33%}.vuecal__cells.day-view .vuecal__cell{flex:1}.vuecal--overflow-x.vuecal--day-view .vuecal__cell{width:auto}.vuecal--click-to-navigate .vuecal__cell:not(.vuecal__cell--disabled){cursor:pointer}.vuecal--view-with-time .vuecal__cell,.vuecal--week-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits),.vuecal--day-view.vuecal--no-time .vuecal__cell:not(.vuecal__cell--has-splits){display:block}.vuecal__cell.vuecal__cell--has-splits{flex-direction:row;display:flex}.vuecal__cell:before{content:"";position:absolute;z-index:0;top:0;left:0;right:-1px;bottom:-1px;border:1px solid rgba(196,196,196,.25)}.vuecal--overflow-x.vuecal--day-view .vuecal__cell:before{bottom:0}.vuecal__cell--today,.vuecal__cell--current{background-color:#f0f0ff66;z-index:1}.vuecal__cell--selected{background-color:#ebfff566;z-index:2}.vuecal--day-view .vuecal__cell--selected{background:none}.vuecal__cell--out-of-scope{color:#00000040}.vuecal__cell--disabled{color:#00000040;cursor:not-allowed}.vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal__cell-split.vuecal__cell-split--highlighted{background-color:#0000000a;transition-duration:5ms}.vuecal__cell-content{position:relative;width:100%;height:100%;outline:none}.vuecal--years-view .vuecal__cell-content,.vuecal--year-view .vuecal__cell-content,.vuecal--month-view .vuecal__cell-content{justify-content:center}.vuecal__cell .cell-time-labels{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.vuecal__cell .cell-time-label{flex-grow:1;font-size:.8em;opacity:.3;line-height:1.7}.vuecal__cell-split{display:flex;flex-grow:1;flex-direction:column;height:100%;position:relative;transition:.15s ease-in-out background-color}.vuecal__cell-events{width:100%}.vuecal__cell-events-count{position:absolute;left:50%;top:65%;transform:translate(-50%);min-width:12px;height:12px;line-height:12px;padding:0 3px;background:#999;color:#fff;border-radius:12px;font-size:10px;box-sizing:border-box}.vuecal__cell .vuecal__special-hours{position:absolute;left:0;right:0;box-sizing:border-box}.vuecal--overflow-x.vuecal--week-view .vuecal__cell,.vuecal__cell-split{overflow:hidden}.vuecal__no-event{padding-top:1em;color:#aaa;justify-self:flex-start;margin-bottom:auto}.vuecal__all-day .vuecal__no-event{display:none}.vuecal__now-line{position:absolute;left:0;width:100%;height:0;color:red;border-top:1px solid currentColor;opacity:.6;z-index:1}.vuecal__now-line:before{content:"";position:absolute;top:-6px;left:0;border:5px solid transparent;border-left-color:currentColor}.vuecal{height:100%;box-shadow:0 0 0 1px inset #00000014}.vuecal *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal--has-touch *:not(.vuecal__event-title--edit){-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vuecal .clickable{cursor:pointer}.vuecal--resizing-event,.vuecal--drag-creating-event{cursor:ns-resize}.vuecal--dragging-event{cursor:move;cursor:grabbing}.vuecal .dragging-helper{position:absolute;width:60px;height:40px;background:rgba(138,190,230,.8);border:1px solid #61a9e0;z-index:10}.vuecal--xsmall{font-size:.9em}.vuecal__flex{display:flex;flex-direction:row}.vuecal__flex[column]{flex-direction:column;flex:1 1 auto}.vuecal__flex[grow]{flex:1 1 auto;width:100%}.vuecal__flex[wrap]{flex-wrap:wrap}.vuecal__split-days-headers.slide-fade--right-leave-active{display:none}.vuecal--week-numbers.vuecal--month-view .vuecal__split-days-headers{margin-left:3em}.vuecal--day-view:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:3em;height:2.2em}.vuecal--day-view.vuecal--twelve-hour:not(.vuecal--overflow-x) .vuecal__split-days-headers{margin-left:4em}.vuecal__split-days-headers .day-split-header{display:flex;flex-grow:1;flex-basis:0;justify-content:center;align-items:center;height:100%}.vuecal__split-days-headers .vuecal--day-view.vuecal--overflow-x.vuecal--sticky-split-labels .day-split-header{height:1.5em}.vuecal__body{position:relative;overflow:hidden}.vuecal__all-day{min-height:1.7em;margin-bottom:-1px;flex-shrink:0}.vuecal__all-day-text{width:3em;box-sizing:border-box;color:#999;padding-right:2px;display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;border-bottom:1px solid #ddd;-webkit-hyphens:auto;hyphens:auto}.vuecal__all-day-text span{font-size:.85em;text-align:right;line-height:1.1}.vuecal--twelve-hour .vuecal__all-day>span{width:4em}.vuecal__bg{overflow:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;min-height:60px;position:relative;width:100%}.vuecal--no-time .vuecal__bg{display:flex;flex:1 1 auto;overflow:auto}.vuecal__week-numbers{width:3em;flex-shrink:0!important}.vuecal__week-numbers .vuecal__week-number-cell{opacity:.4;font-size:.9em;align-items:center;justify-items:center;justify-content:center}.vuecal__scrollbar-check{position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;visibility:hidden;z-index:-1}.vuecal__scrollbar-check div{height:120%}.vuecal__time-column{width:3em;height:100%;flex-shrink:0}.vuecal--twelve-hour .vuecal__time-column{width:4em;font-size:.9em}.vuecal--overflow-x.vuecal--week-view .vuecal__time-column{margin-top:2.8em;box-shadow:0 1px 1px #0000004d}.vuecal--overflow-x.vuecal--week-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:3.4em}.vuecal--overflow-x.vuecal--day-view.vuecal--sticky-split-labels .vuecal__time-column{margin-top:1.5em}.vuecal__time-column .vuecal__time-cell{color:#999;text-align:right;padding-right:2px;font-size:.9em}.vuecal__time-column .vuecal__time-cell-line:before{content:"";position:absolute;left:0;right:0;border-top:1px solid rgba(196,196,196,.3)}.vuecal__cells{margin:0 1px 1px 0}.vuecal--overflow-x.vuecal--day-view .vuecal__cells{margin:0}.vuecal--events-on-month-view.vuecal--short-events .vuecal__cells{width:99.9%}.vuecal--overflow-x.vuecal--day-view .vuecal__cells,.vuecal--overflow-x.vuecal--week-view .vuecal__cells{flex-wrap:nowrap;overflow:auto}.slide-fade--left-enter-active,.slide-fade--left-leave-active,.slide-fade--right-enter-active,.slide-fade--right-leave-active{transition:.25s ease-out}.slide-fade--left-enter-from,.slide-fade--right-leave-to{transform:translate(-15px);opacity:0}.slide-fade--left-leave-to,.slide-fade--right-enter-from{transform:translate(15px);opacity:0}.slide-fade--left-leave-active,.slide-fade--right-leave-active{position:absolute!important;height:100%}.vuecal__title-bar .slide-fade--left-leave-active,.vuecal__title-bar .slide-fade--right-leave-active{left:0;right:0;height:auto}.vuecal__heading .slide-fade--left-leave-active,.vuecal__heading .slide-fade--right-leave-active{display:flex;align-items:center}.vuecal--green-theme .vuecal__menu,.vuecal--green-theme .vuecal__cell-events-count{background-color:#42b983;color:#fff}.vuecal--green-theme .vuecal__title-bar{background-color:#e4f5ef}.vuecal--green-theme .vuecal__cell--today,.vuecal--green-theme .vuecal__cell--current{background-color:#f0f0ff66}.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:#ebfff566}.vuecal--green-theme .vuecal__cell--selected:before{border-color:#42b98380}.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:#c3ffe180}.vuecal--green-theme .vuecal__arrow--highlighted,.vuecal--green-theme .vuecal__today-btn--highlighted,.vuecal--green-theme .vuecal__view-btn--highlighted{background-color:#88ecbf40}.vuecal--blue-theme .vuecal__menu,.vuecal--blue-theme .vuecal__cell-events-count{background-color:#42a3b9cc;color:#fff}.vuecal--blue-theme .vuecal__title-bar{background-color:#00a5bc4d}.vuecal--blue-theme .vuecal__cell--today,.vuecal--blue-theme .vuecal__cell--current{background-color:#f0f0ff66}.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected{background-color:#ebfdff66}.vuecal--blue-theme .vuecal__cell--selected:before{border-color:#73bfcc80}.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:#00a5bc0f}.vuecal--blue-theme .vuecal__arrow--highlighted,.vuecal--blue-theme .vuecal__today-btn--highlighted,.vuecal--blue-theme .vuecal__view-btn--highlighted{background-color:#42a3b933}.vuecal--rounded-theme .vuecal__weekdays-headings{border:none}.vuecal--rounded-theme .vuecal__cell,.vuecal--rounded-theme .vuecal__cell:before{background:none;border:none}.vuecal--rounded-theme .vuecal__cell--out-of-scope{opacity:.4}.vuecal--rounded-theme .vuecal__cell-content{width:30px;height:30px;flex-grow:0;border:1px solid transparent;border-radius:30px;color:#333}.vuecal--rounded-theme.vuecal--day-view .vuecal__cell-content{width:auto;background:none}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell{width:33.33%}.vuecal--rounded-theme.vuecal--year-view .vuecal__cell-content{width:85px}.vuecal--rounded-theme.vuecal--years-view .vuecal__cell-content{width:52px}.vuecal--rounded-theme .vuecal__cell{background-color:transparent!important}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:#f1faf7}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#42b983;color:#fff}.vuecal--rounded-theme.vuecal--green-theme .vuecal--day-view .vuecal__cell--today:before{background-color:#42b9830d}.vuecal--rounded-theme.vuecal--green-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#42b983}.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--green-theme .vuecal__cell-split--highlighted{background-color:#c3ffe180}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell-content{background-color:#64b6ff33}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{background-color:#8fb7e4;color:#fff}.vuecal--rounded-theme.vuecal--blue-theme .vuecal--day-view .vuecal__cell--today:before{background-color:#8fb7e41a}.vuecal--rounded-theme.vuecal--blue-theme:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{border-color:#61a9e0}.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell--highlighted:not(.vuecal__cell--has-splits),.vuecal--rounded-theme.vuecal--blue-theme .vuecal__cell-split--highlighted{background-color:#00a5bc0f}.vuecal--date-picker .vuecal__title-bar{font-size:1.2em}.vuecal--date-picker .vuecal__heading{height:2.2em;font-weight:500;opacity:.4}.vuecal--date-picker .vuecal__weekdays-headings{border:none}.vuecal--date-picker .vuecal__body{margin-left:1px}.vuecal--date-picker .vuecal__cell,.vuecal--date-picker .vuecal__cell:before{background:none;border:none}.vuecal--date-picker .vuecal__cell-content{height:26px;flex-grow:0;border:1px solid transparent;border-radius:25px;transition:background-color .2s cubic-bezier(.39,.58,.57,1)}.vuecal--date-picker.vuecal--years-view .vuecal__cell-content{flex:0;padding:0 4px;height:24px}.vuecal--date-picker.vuecal--year-view .vuecal__cell-content{flex:0;padding:0 15px}.vuecal--date-picker.vuecal--month-view .vuecal__cell-content{width:26px}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell-content:hover{background-color:#0000001a}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--selected .vuecal__cell-content{background-color:#42b982;color:#fff}.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--current .vuecal__cell-content,.vuecal--date-picker:not(.vuecal--day-view) .vuecal__cell--today .vuecal__cell-content{border-color:#42b982}.vuecal__cell-events-count{width:20px;min-width:0;height:11px;padding:0;color:transparent}.vuecal{border-radius:6px}.vuecal__title-bar{border-top-left-radius:3px;border-top-right-radius:3px}.vuecal__title-bar{background:var(--cards)}.vuecal__flex .vuecal__title{font-family:sans-serif}.vuecal__cell-events-count{position:absolute;left:50%;top:65%;transform:translate(-50%);min-width:15px;height:15px;line-height:15px;padding:0;background:linear-gradient(to top right,rgba(19,84,122,.8),rgba(128,208,199,.8));color:#f8fff9!important;border-radius:12px;font-size:10px;box-sizing:border-box}.vuecal__event{color:#666;background-color:transparent;padding:10px;position:relative;box-sizing:border-box;left:0;width:100%;z-index:1;transition:box-shadow .3s,left .3s,width .3s;overflow:hidden;text-align:justify}.vuecal--rounded-theme .vuecal__cell-content{width:30px;height:30px;flex-grow:0;border:1px solid #00a5bc00;background:#c2e9d78c;border-radius:30px;color:#333}.vuecal__cell-content{cursor:pointer}.vuecal__body{position:relative;overflow:auto;height:0}.vuecal--no-time .vuecal__event{min-height:20px}.vuecal__cell--selected:before{border-color:#1e413180}.vuecal__cell--today,.vuecal__cell--current{background-color:#eeb5d68c}.vuecal__cell--selected:before{border-color:#1e413100}.v-picker-title,.v-picker__header,.v-picker__actions{display:none}.pik{height:98.6%}.hicard{height:40%!important;overflow:auto}.fg{height:240px;overflow:auto}.fixed-bar{position:sticky;position:-webkit-sticky;top:0;z-index:2} diff --git a/src/front/dist/assets/LaborProtection-0e8d7d93.js b/src/front/dist/assets/LaborProtection-0da679b7.js similarity index 83% rename from src/front/dist/assets/LaborProtection-0e8d7d93.js rename to src/front/dist/assets/LaborProtection-0da679b7.js index 0bb1d9015..608c6bf21 100644 --- a/src/front/dist/assets/LaborProtection-0e8d7d93.js +++ b/src/front/dist/assets/LaborProtection-0da679b7.js @@ -1 +1 @@ -import{_ as t,aB as a,C as o,D as s,E as e,K as r,F as c,G as n,L as l}from"./index-09dc9553.js";const _={setup(){a()}};function f(i,p,u,x,d,g){return o(),s(r,null,{default:e(()=>[c(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" Охрана труда ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; +import{_ as t,aB as a,C as o,D as s,E as e,K as r,F as c,G as n,L as l}from"./index-cf33b3b8.js";const _={setup(){a()}};function f(i,p,u,x,d,g){return o(),s(r,null,{default:e(()=>[c(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" Охрана труда ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; diff --git a/src/front/dist/assets/NewsPage-7b31b384.css b/src/front/dist/assets/NewsPage-01990191.css similarity index 94% rename from src/front/dist/assets/NewsPage-7b31b384.css rename to src/front/dist/assets/NewsPage-01990191.css index 5b3c0e77e..1b604581c 100644 --- a/src/front/dist/assets/NewsPage-7b31b384.css +++ b/src/front/dist/assets/NewsPage-01990191.css @@ -1 +1 @@ -.posFooter[data-v-7f27a251]{position:sticky;margin-top:12px;background-color:transparent;bottom:5px}.newsVH[data-v-7f27a251]{height:92vh}.bgchat[data-v-7f27a251]{background-color:#efe9f98a}.bgchatnot[data-v-7f27a251]{background-color:#eef9efad}.mwidth[data-v-7f27a251]{min-width:50px}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor;border-radius:4px}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-on-surface-variant));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%;border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block} +.posFooter[data-v-89521477]{position:sticky;margin-top:12px;background-color:transparent;bottom:5px}.newsVH[data-v-89521477]{height:92vh}.bgchat[data-v-89521477]{background-color:#efe9f98a}.bgchatnot[data-v-89521477]{background-color:#eef9efad}.mwidth[data-v-89521477]{min-width:50px}.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor;border-radius:4px}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-on-surface-variant));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%;border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}.v-pagination__list{display:inline-flex;list-style-type:none;justify-content:center;width:100%}.v-pagination__item,.v-pagination__first,.v-pagination__prev,.v-pagination__next,.v-pagination__last{margin:.3rem}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block} diff --git a/src/front/dist/assets/NewsPage-3f552c1b.js b/src/front/dist/assets/NewsPage-3f552c1b.js new file mode 100644 index 000000000..71f3f4862 --- /dev/null +++ b/src/front/dist/assets/NewsPage-3f552c1b.js @@ -0,0 +1 @@ +import{bj as at,p as Y,a0 as Z,a1 as fe,a2 as Ue,aH as ze,ai as Oe,aI as lt,aJ as nt,aj as He,a4 as qe,a5 as Ke,bk as je,a6 as oe,a9 as ne,c as w,a8 as We,bl as ot,bb as st,aK as Ge,an as it,aL as ut,aM as rt,ao as ct,b6 as dt,al as j,a7 as be,F as t,bm as vt,V as ae,ar as he,H as M,r as F,aR as Je,ah as mt,a3 as ft,ag as gt,av as Xe,s as ce,ap as we,ab as ue,ac as de,bn as xe,z as Ce,w as le,Z as ee,at as ht,aa as Se,d as pt,as as bt,b as ve,o as yt,bo as Vt,bp as _t,bq as kt,b5 as wt,br as xt,bs as Ct,bt as St,G as z,be as It,bf as Pt,A as Lt,_ as Ye,aQ as Bt,aS as At,aF as se,U as Rt,W as Tt,C as J,Y as ie,E as p,L as K,$ as Ie,K as re,N as Pe,O as Le,R as Be,I as Ae,J as Re,M as Dt,aG as $t,af as ge,D as pe,bu as Ft,ad as H,aq as Mt,S as X,aE as Te,ae as De,aT as Nt,aU as Et,aB as Ut,X as zt}from"./index-cf33b3b8.js";import{V as Ot}from"./group-2cdf27ee.js";import{V as W,u as ye}from"./VBtn-11d9d7ef.js";import{m as Ht,g as qt,u as Kt,V as $e,d as jt,b as me,a as Wt,h as Gt,c as Fe}from"./VList-30a0199c.js";import{d as Jt}from"./VInput-6b41ac51.js";import{m as Xt,V as Yt,f as Qt}from"./VSelectionControl-e5942853.js";import{V as Zt}from"./VChip-1d3621e6.js";import{V as ea}from"./VTextarea-eca486a5.js";import{V as ta}from"./VSpacer-0a06d07c.js";const aa=at("v-alert-title"),la=["success","info","warning","error"],na=Y({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Z,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>la.includes(e)},...fe(),...Ue(),...ze(),...Oe(),...lt(),...nt(),...He(),...qe(),...Ke(),...je({variant:"flat"})},"VAlert"),oa=oe()({name:"VAlert",props:na(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,r){let{emit:n,slots:a}=r;const u=ne(e,"modelValue"),c=w(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=w(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:s}=We(e),{colorClasses:l,colorStyles:x,variantClasses:C}=ot(o),{densityClasses:b}=st(e),{dimensionStyles:d}=Ge(e),{elevationClasses:h}=it(e),{locationStyles:_}=ut(e),{positionClasses:P}=rt(e),{roundedClasses:N}=ct(e),{textColorClasses:T,textColorStyles:g}=dt(j(e,"borderColor")),{t:S}=be(),L=w(()=>({"aria-label":S(e.closeLabel),onClick(I){u.value=!1,n("click:close",I)}}));return()=>{const I=!!(a.prepend||c.value),G=!!(a.title||e.title),y=!!(a.close||e.closable);return u.value&&t(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,b.value,h.value,P.value,N.value,C.value,e.class],style:[x.value,d.value,_.value,e.style],role:"alert"},{default:()=>{var i,v;return[vt(!1,"v-alert"),e.border&&t("div",{key:"border",class:["v-alert__border",T.value],style:g.value},null),I&&t("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?t(he,{key:"prepend-defaults",disabled:!c.value,defaults:{VIcon:{density:e.density,icon:c.value,size:e.prominent?44:28}}},a.prepend):t(ae,{key:"prepend-icon",density:e.density,icon:c.value,size:e.prominent?44:28},null)]),t("div",{class:"v-alert__content"},[G&&t(aa,{key:"title"},{default:()=>{var f;return[((f=a.title)==null?void 0:f.call(a))??e.title]}}),((i=a.text)==null?void 0:i.call(a))??e.text,(v=a.default)==null?void 0:v.call(a)]),a.append&&t("div",{key:"append",class:"v-alert__append"},[a.append()]),y&&t("div",{key:"close",class:"v-alert__close"},[a.close?t(he,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var f;return[(f=a.close)==null?void 0:f.call(a,{props:L.value})]}}):t(W,M({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},L.value),null)])]}})}}});function sa(){const e=F([]);Je(()=>e.value=[]);function r(n,a){e.value[a]=n}return{refs:e,updateRef:r}}const ia=Y({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:Z,default:"$first"},prevIcon:{type:Z,default:"$prev"},nextIcon:{type:Z,default:"$next"},lastIcon:{type:Z,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...mt(),...fe(),...Ue(),...Oe(),...He(),...ft(),...qe({tag:"nav"}),...Ke(),...je({variant:"text"})},"VPagination"),ua=oe()({name:"VPagination",props:ia(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,r){let{slots:n,emit:a}=r;const u=ne(e,"modelValue"),{t:c,n:o}=be(),{isRtl:s}=gt(),{themeClasses:l}=We(e),{width:x}=Xe(),C=ce(-1);we(void 0,{scoped:!0});const{resizeRef:b}=ye(i=>{if(!i.length)return;const{target:v,contentRect:f}=i[0],B=v.querySelector(".v-pagination__list > *");if(!B)return;const R=f.width,O=B.offsetWidth+parseFloat(getComputedStyle(B).marginRight)*2;C.value=P(R,O)}),d=w(()=>parseInt(e.length,10)),h=w(()=>parseInt(e.start,10)),_=w(()=>e.totalVisible?parseInt(e.totalVisible,10):C.value>=0?C.value:P(x.value,58));function P(i,v){const f=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((i-v*f)/v).toFixed(2)))}const N=w(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(_.value<=1)return[u.value];if(d.value<=_.value)return ue(d.value,h.value);const i=_.value%2===0,v=i?_.value/2:Math.floor(_.value/2),f=i?v:v+1,B=d.value-v;if(f-u.value>=0)return[...ue(Math.max(1,_.value-1),h.value),e.ellipsis,d.value];if(u.value-B>=(i?1:0)){const R=_.value-1,O=d.value-R+h.value;return[h.value,e.ellipsis,...ue(R,O)]}else{const R=Math.max(1,_.value-3),O=R===1?u.value:u.value-Math.ceil(R/2)+h.value;return[h.value,e.ellipsis,...ue(R,O),e.ellipsis,d.value]}});function T(i,v,f){i.preventDefault(),u.value=v,f&&a(f,v)}const{refs:g,updateRef:S}=sa();we({VPaginationBtn:{color:j(e,"color"),border:j(e,"border"),density:j(e,"density"),size:j(e,"size"),variant:j(e,"variant"),rounded:j(e,"rounded"),elevation:j(e,"elevation")}});const L=w(()=>N.value.map((i,v)=>{const f=B=>S(B,v);if(typeof i=="string")return{isActive:!1,key:`ellipsis-${v}`,page:i,props:{ref:f,ellipsis:!0,icon:!0,disabled:!0}};{const B=i===u.value;return{isActive:B,key:i,page:o(i),props:{ref:f,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:B?e.activeColor:e.color,ariaCurrent:B,ariaLabel:c(B?e.currentPageAriaLabel:e.pageAriaLabel,i),onClick:R=>T(R,i)}}}})),I=w(()=>{const i=!!e.disabled||u.value<=h.value,v=!!e.disabled||u.value>=h.value+d.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:f=>T(f,h.value,"first"),disabled:i,ariaLabel:c(e.firstAriaLabel),ariaDisabled:i}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:f=>T(f,u.value-1,"prev"),disabled:i,ariaLabel:c(e.previousAriaLabel),ariaDisabled:i},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:f=>T(f,u.value+1,"next"),disabled:v,ariaLabel:c(e.nextAriaLabel),ariaDisabled:v},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:f=>T(f,h.value+d.value-1,"last"),disabled:v,ariaLabel:c(e.lastAriaLabel),ariaDisabled:v}:void 0}});function G(){var v;const i=u.value-h.value;(v=g.value[i])==null||v.$el.focus()}function y(i){i.key===xe.left&&!e.disabled&&u.value>+e.start?(u.value=u.value-1,Ce(G)):i.key===xe.right&&!e.disabled&&u.valuet(e.tag,{ref:b,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":c(e.ariaLabel),onKeydown:y,"data-test":"v-pagination-root"},{default:()=>[t("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&t("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(I.value.first):t(W,M({_as:"VPaginationBtn"},I.value.first),null)]),t("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(I.value.prev):t(W,M({_as:"VPaginationBtn"},I.value.prev),null)]),L.value.map((i,v)=>t("li",{key:i.key,class:["v-pagination__item",{"v-pagination__item--is-active":i.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(i):t(W,M({_as:"VPaginationBtn"},i.props),{default:()=>[i.page]})])),t("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(I.value.next):t(W,M({_as:"VPaginationBtn"},I.value.next),null)]),e.showFirstLastPage&&t("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(I.value.last):t(W,M({_as:"VPaginationBtn"},I.value.last),null)])])]})),{}}});const ra=Y({indeterminate:Boolean,indeterminateIcon:{type:Z,default:"$checkboxIndeterminate"},...Xt({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),ca=oe()({name:"VCheckboxBtn",props:ra(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,r){let{slots:n}=r;const a=ne(e,"indeterminate"),u=ne(e,"modelValue");function c(l){a.value&&(a.value=!1)}const o=w(()=>a.value?e.indeterminateIcon:e.falseIcon),s=w(()=>a.value?e.indeterminateIcon:e.trueIcon);return de(()=>t(Yt,M(e,{modelValue:u.value,"onUpdate:modelValue":[l=>u.value=l,c],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":a.value?"mixed":void 0}),n)),{}}});const da=Y({renderless:Boolean,...fe()},"VVirtualScrollItem"),va=oe()({name:"VVirtualScrollItem",inheritAttrs:!1,props:da(),emits:{"update:height":e=>!0},setup(e,r){let{attrs:n,emit:a,slots:u}=r;const{resizeRef:c,contentRect:o}=ye(void 0,"border");le(()=>{var s;return(s=o.value)==null?void 0:s.height},s=>{s!=null&&a("update:height",s)}),de(()=>{var s,l;return e.renderless?t(ee,null,[(s=u.default)==null?void 0:s.call(u,{itemRef:c})]):t("div",M({ref:c,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=u.default)==null?void 0:l.call(u)])})}}),Me=-1,Ne=1,ma=Y({itemHeight:{type:[Number,String],default:48}},"virtual");function fa(e,r,n){const a=ce(0),u=ce(e.itemHeight),c=w({get:()=>parseInt(u.value??0,10),set(y){u.value=y}}),o=F(),{resizeRef:s,contentRect:l}=ye();ht(()=>{s.value=o.value});const x=Xe(),C=new Map;let b=Array.from({length:r.value.length});const d=w(()=>{const y=(!l.value||o.value===document.documentElement?x.height.value:l.value.height)-((n==null?void 0:n.value)??0);return Math.ceil(y/c.value*1.7+1)});function h(y,i){c.value=Math.max(c.value,i),b[y]=i,C.set(r.value[y],i)}function _(y){return b.slice(0,y).reduce((i,v)=>i+(v||c.value),0)}function P(y){const i=r.value.length;let v=0,f=0;for(;f=O&&(a.value=Se(R,0,r.value.length-d.value)),N=i}function g(y){if(!o.value)return;const i=_(y);o.value.scrollTop=i}const S=w(()=>Math.min(r.value.length,a.value+d.value)),L=w(()=>r.value.slice(a.value,S.value).map((y,i)=>({raw:y,index:i+a.value}))),I=w(()=>_(a.value)),G=w(()=>_(r.value.length)-_(S.value));return le(()=>r.value.length,()=>{b=ue(r.value.length).map(()=>c.value),C.forEach((y,i)=>{const v=r.value.indexOf(i);v===-1?C.delete(i):b[v]=y})}),{containerRef:o,computedItems:L,itemHeight:c,paddingTop:I,paddingBottom:G,scrollToIndex:g,handleScroll:T,handleItemResize:h}}const ga=Y({items:{type:Array,default:()=>[]},renderless:Boolean,...ma(),...fe(),...ze()},"VVirtualScroll"),ha=oe()({name:"VVirtualScroll",props:ga(),setup(e,r){let{slots:n}=r;const a=pt("VVirtualScroll"),{dimensionStyles:u}=Ge(e),{containerRef:c,handleScroll:o,handleItemResize:s,scrollToIndex:l,paddingTop:x,paddingBottom:C,computedItems:b}=fa(e,j(e,"items"));return bt(()=>e.renderless,()=>{yt(()=>{var d;c.value=Vt(a.vnode.el,!0),(d=c.value)==null||d.addEventListener("scroll",o)}),_t(()=>{var d;(d=c.value)==null||d.removeEventListener("scroll",o)})}),de(()=>{const d=b.value.map(h=>t(va,{key:h.index,renderless:e.renderless,"onUpdate:height":_=>s(h.index,_)},{default:_=>{var P;return(P=n.default)==null?void 0:P.call(n,{item:h.raw,index:h.index,..._})}}));return e.renderless?t(ee,null,[t("div",{class:"v-virtual-scroll__spacer",style:{paddingTop:ve(x.value)}},null),d,t("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ve(C.value)}},null)]):t("div",{ref:c,class:["v-virtual-scroll",e.class],onScroll:o,style:[u.value,e.style]},[t("div",{class:"v-virtual-scroll__container",style:{paddingTop:ve(x.value),paddingBottom:ve(C.value)}},[d])])}),{scrollToIndex:l}}});function pa(e,r){const n=ce(!1);let a;function u(s){cancelAnimationFrame(a),n.value=!0,a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{n.value=!1})})}async function c(){await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>{if(n.value){const l=le(n,()=>{l(),s()})}else s()})}async function o(s){var C,b;if(s.key==="Tab"&&((C=r.value)==null||C.focus()),!["PageDown","PageUp","Home","End"].includes(s.key))return;const l=(b=e.value)==null?void 0:b.$el;if(!l)return;(s.key==="Home"||s.key==="End")&&l.scrollTo({top:s.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await c();const x=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(s.key==="PageDown"||s.key==="Home"){const d=l.getBoundingClientRect().top;for(const h of x)if(h.getBoundingClientRect().top>=d){h.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const h of[...x].reverse())if(h.getBoundingClientRect().bottom<=d){h.focus();break}}}return{onListScroll:u,onListKeydown:o}}const ba=Y({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:Z,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,valueComparator:{type:Function,default:kt},...Ht({itemChildren:!1})},"Select"),ya=Y({...ba(),...wt(qt({modelValue:null}),["validationValue","dirty","appendInnerIcon"]),...xt({transition:{component:Ct}})},"VSelect"),Va=oe()({name:"VSelect",props:ya(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,r){let{slots:n}=r;const{t:a}=be(),u=F(),c=F(),o=ne(e,"menu"),s=w({get:()=>o.value,set:m=>{var k;o.value&&!m&&((k=c.value)!=null&&k.ΨopenChildren)||(o.value=m)}}),{items:l,transformIn:x,transformOut:C}=Kt(e),b=ne(e,"modelValue",[],m=>x(m===null?[null]:Pt(m)),m=>{const k=C(m);return e.multiple?k:k[0]??null}),d=Jt(),h=w(()=>b.value.map(m=>l.value.find(k=>e.valueComparator(k.value,m.value))||m)),_=w(()=>h.value.map(m=>m.props.value)),P=ce(!1);let N="",T;const g=w(()=>e.hideSelected?l.value.filter(m=>!h.value.some(k=>k===m)):l.value),S=w(()=>e.hideNoData&&!l.value.length||e.readonly||(d==null?void 0:d.isReadonly.value)),L=F(),{onListScroll:I,onListKeydown:G}=pa(L,u);function y(m){e.openOnClear&&(s.value=!0)}function i(){S.value||(s.value=!s.value)}function v(m){var V,$;if(!m.key||e.readonly||d!=null&&d.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(m.key)&&m.preventDefault(),["Enter","ArrowDown"," "].includes(m.key)&&(s.value=!0),["Escape","Tab"].includes(m.key)&&(s.value=!1),m.key==="Home"?(V=L.value)==null||V.focus("first"):m.key==="End"&&(($=L.value)==null||$.focus("last"));const k=1e3;function D(A){const q=A.key.length===1,E=!A.ctrlKey&&!A.metaKey&&!A.altKey;return q&&E}if(e.multiple||!D(m))return;const Q=performance.now();Q-T>k&&(N=""),N+=m.key.toLowerCase(),T=Q;const te=l.value.find(A=>A.title.toLowerCase().startsWith(N));te!==void 0&&(b.value=[te])}function f(m){if(e.multiple){const k=_.value.findIndex(D=>e.valueComparator(D,m.value));if(k===-1)b.value=[...b.value,m];else{const D=[...b.value];D.splice(k,1),b.value=D}}else b.value=[m],s.value=!1}function B(m){var k;(k=L.value)!=null&&k.$el.contains(m.relatedTarget)||(s.value=!1)}function R(){var m;P.value&&((m=u.value)==null||m.focus())}function O(m){P.value=!0}function Qe(m){var k,D;if(m==null)b.value=[];else if((k=u.value)!=null&&k.matches(":autofill")||(D=u.value)!=null&&D.matches(":-webkit-autofill")){const Q=l.value.find(te=>te.title===m);Q&&f(Q)}else u.value&&(u.value.value="")}return de(()=>{const m=!!(e.chips||n.chip),k=!!(!e.hideNoData||g.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),D=b.value.length>0,[Q]=$e.filterProps(e),te=D||!P.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return t($e,M({ref:u},Q,{modelValue:b.value.map(V=>V.props.value).join(", "),"onUpdate:modelValue":Qe,focused:P.value,"onUpdate:focused":V=>P.value=V,validationValue:b.externalValue,dirty:D,class:["v-select",{"v-select--active-menu":s.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":b.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:te,"onClick:clear":y,"onMousedown:control":i,onBlur:B,onKeydown:v}),{...n,default:()=>t(ee,null,[t(St,M({ref:c,modelValue:s.value,"onUpdate:modelValue":V=>s.value=V,activator:"parent",contentClass:"v-select__content",disabled:S.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:R},e.menuProps),{default:()=>[k&&t(jt,{ref:L,selected:_.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:V=>V.preventDefault(),onKeydown:G,onFocusin:O,onScrollPassive:I,tabindex:"-1"},{default:()=>{var V,$,A;return[(V=n["prepend-item"])==null?void 0:V.call(n),!g.value.length&&!e.hideNoData&&((($=n["no-data"])==null?void 0:$.call(n))??t(me,{title:a(e.noDataText)},null)),t(ha,{renderless:!0,items:g.value},{default:q=>{var ke;let{item:E,index:U,itemRef:Ze}=q;const _e=M(E.props,{ref:Ze,key:U,onClick:()=>f(E)});return((ke=n.item)==null?void 0:ke.call(n,{item:E,index:U,props:_e}))??t(me,_e,{prepend:et=>{let{isSelected:tt}=et;return t(ee,null,[e.multiple&&!e.hideSelected?t(ca,{key:E.value,modelValue:tt,ripple:!1,tabindex:"-1"},null):void 0,E.props.prependIcon&&t(ae,{icon:E.props.prependIcon},null)])}})}}),(A=n["append-item"])==null?void 0:A.call(n)]}})]}),h.value.map((V,$)=>{var E;function A(U){U.stopPropagation(),U.preventDefault(),f(V)}const q={"onClick:close":A,onMousedown(U){U.preventDefault(),U.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return t("div",{key:V.value,class:"v-select__selection"},[m?n.chip?t(he,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:V.title}}},{default:()=>{var U;return[(U=n.chip)==null?void 0:U.call(n,{item:V,index:$,props:q})]}}):t(Zt,M({key:"chip",closable:e.closableChips,size:"small",text:V.title},q),null):((E=n.selection)==null?void 0:E.call(n,{item:V,index:$}))??t("span",{class:"v-select__selection-text"},[V.title,e.multiple&&${e.value=[]});const r=F([]),n=F(!1),a=$t.slice(0,-1),u=F(""),c=F(0),o=F(1),s=F(2),l=At();let x=`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`;l.path=="/news"&&"id"in l.query&&(x=`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}&id=${l.query.id}`),se(x,r);const C=(g,S)=>{ge.post("api/navigation/news/",{news:g,scores:S}).then(L=>{r.value.result[r.value.result.findIndex(I=>I.id==g)].scores=L.data})},b=()=>{ge.post("api/navigation/news/",{news:c.value,text:u.value}).then(g=>{n.value=!n.value,r.value.result[r.value.result.findIndex(S=>S.id==g.data.news)].comment=g.data.comment}),u.value=""},d=(g,S)=>{ge.post("api/navigation/news/",{delid:g,news:S}).then(L=>{r.value.result[r.value.result.findIndex(I=>I.id==L.data.news)].comment=L.data.comment})},h=()=>{se(`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`,r)};return le(()=>l.query,(g,S)=>{g&&(x=`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`,se(x,r))},{deep:!0}),le(()=>s,(g,S)=>{g&&se(`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${g.value}`,r)},{deep:!0}),le(()=>Ee.cod2user,(g,S)=>{g&&se(`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`,r)},{deep:!0}),{newss:r,burl:a,limitText:g=>{const S=g.split(" ").slice(0,25);return`${g.split(" ").slice(0,25).join(" ")} ${S.length<25?"":"..."}`},toggleIncrementLike:C,dialogCommentShow:n,accountStore:Ee,dateformat:g=>Qt(new Date(g),"dd.MM.yyyy HH:mm"),splitname:g=>g.familyname+" "+g.name[0]+"."+g.parentname[0]+".",textcomment:u,openComent:g=>{n.value=!n.value,c.value=g},addComment:b,idnews:c,deletComment:d,pagelistNews:h,divs:e,page:o,selecnews:s,checkremote:Rt,route:l,spravURL:Tt}}},Ve=e=>(Nt("data-v-89521477"),e=e(),Et(),e),ka={class:"d-flex flex-column py-3 h-100"},wa={class:"justify-self-end"},xa={class:"subheading me-2"},Ca=Ve(()=>X("span",{class:"me-1"},"·",-1)),Sa={class:"subheading me-2"},Ia=Ve(()=>X("span",{class:"me-1"},"·",-1)),Pa=["onClick"],La={key:0},Ba=Ve(()=>X("div",{class:"text-subtitle-2"},null,-1));function Aa(e,r,n,a,u,c){return J(),ie("div",ka,[t(re,{class:"flex-grow-1 d-flex h-0 overflow-auto"},{default:p(()=>[t(K,{class:"pa-0"},{default:p(()=>[(J(!0),ie(ee,null,Ie(a.newss.result,(o,s)=>(J(),pe(Be,{class:"rounded-0",key:s},{default:p(()=>[t(me,{class:"w-100 pl-4 py-2 pt-3"},{prepend:p(()=>[t(Ft,{color:"loading_avatar",image:a.checkremote(`${a.spravURL}${o.author.login}.jpg`)},null,8,["image"])]),default:p(()=>[t(Gt,null,{default:p(()=>[z(H(o.author.fio),1)]),_:2},1024)]),_:2},1024),t(Ae,{class:"pt-0 pb-1"},{default:p(()=>[z(H(o.title),1)]),_:2},1024),t(Mt,{src:`${a.burl}${o.link}`,height:"350px",width:"96%",class:"mx-auto",cover:""},null,8,["src"]),t(me,{class:"w-100"},{append:p(()=>[X("div",wa,[t(ae,{class:"me-1",icon:o.scores.filter(l=>l.user==a.accountStore.user.login&&l.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",onClick:l=>a.toggleIncrementLike(o.id,!0)},null,8,["icon","onClick"]),X("span",xa,H(o.scores.filter(l=>l.score==!0).length),1),Ca,t(ae,{class:"me-1",icon:o.scores.filter(l=>l.user==a.accountStore.user.login&&l.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",onClick:l=>a.toggleIncrementLike(o.id,!1)},null,8,["icon","onClick"]),X("span",Sa,H(o.scores.filter(l=>l.score==!1).length),1),Ia,t(ae,{class:"me-1",icon:"mdi-message-text-outline",onClick:l=>a.openComent(o.id)},null,8,["onClick"]),X("span",{onClick:l=>o.showComment=!o.showComment,class:"pointer subheading"},H(o.comment.length),9,Pa)])]),_:2},1024),X("div",null,[t(Fe),t(Re,null,{default:p(()=>[z(H(o.text),1)]),_:2},1024),t(Fe),t(Ot,null,{default:p(()=>[o.comment.length>0?Pe((J(),ie("div",La,[(J(!0),ie(ee,null,Ie(o.comment,(l,x)=>(J(),ie("div",{key:x,class:"d-flex flex-column pa-3"},[t(re,{class:Te(["justify-space-between ma-0 align-center bgchat mr-7",a.accountStore.user.login==l.author.login?"bgchatnot":"bgchat"])},{default:p(()=>[t(K,{class:"flex-grow-1 text-subtitle-2 pl-2 pa-0"},{default:p(()=>[z(H(a.accountStore.user.login==l.author.login?"":a.splitname(l.author)),1)]),_:2},1024),t(K,{class:"pa-0 text-center text-subtitle-2"},{default:p(()=>[z(H(a.dateformat(l.cdate)),1)]),_:2},1024),t(K,{class:"pa-0 pr-2 text-end text-subtitle-2"},{default:p(()=>[z(H(a.accountStore.user.login!=l.author.login?"":a.splitname(l.author)),1)]),_:2},1024)]),_:2},1032,["class"]),Ba,t(re,null,{default:p(()=>[t(K,{class:"pr-0"},{default:p(()=>[t(oa,{color:"bg_white",rounded:"0",border:a.accountStore.user.login==l.author.login?"end":"start","border-color":a.accountStore.user.login==l.author.login?"success":"deep-purple accent-4",elevation:"0"},{default:p(()=>[z(H(l.text),1)]),_:2},1032,["border","border-color"])]),_:2},1024),t(K,{class:Te(["flex-grow-0 d-flex pa-0 align-center",a.accountStore.user.login==l.author.login?"pa-0":"pa-5"])},{default:p(()=>[a.accountStore.user.login==l.author.login?(J(),pe(W,{key:0,variant:"text",size:"small",icon:"mdi-delete",color:"delete_btn",onClick:C=>a.deletComment(l.id,o.id)},null,8,["onClick"])):De("",!0)]),_:2},1032,["class"])]),_:2},1024)]))),128))],512)),[[Le,o.showComment]]):De("",!0)]),_:2},1024)])]),_:2},1024))),128))]),_:1})]),_:1}),Pe(t(re,{class:"flex-grow-0"},{default:p(()=>[t(K,{class:"ma-0 pa-0 pt-2"},{default:p(()=>[t(ua,{modelValue:a.page,"onUpdate:modelValue":r[0]||(r[0]=o=>a.page=o),length:a.newss.allnews,"prev-icon":"mdi-menu-left","next-icon":"mdi-menu-right",onClick:a.pagelistNews},null,8,["modelValue","length","onClick"])]),_:1}),t(K,{class:"ma-0 flex-grow-0 mwidth mt-1 pa-0"},{default:p(()=>[t(Va,{"hide-details":"",density:"compact",modelValue:a.selecnews,"onUpdate:modelValue":r[1]||(r[1]=o=>a.selecnews=o),variant:"underlined",items:["1","2","3","4","5","6"]},null,8,["modelValue"])]),_:1})]),_:1},512),[[Le,!(a.route.path=="/news"&&"id"in a.route.query)]]),t(Wt,{modelValue:a.dialogCommentShow,"onUpdate:modelValue":r[4]||(r[4]=o=>a.dialogCommentShow=o),persistent:"",width:"550"},{default:p(()=>[t(Be,null,{default:p(()=>[t(Ae,{class:"text-h5"},{default:p(()=>[z(" Прокоментировать новость ")]),_:1}),t(Re,null,{default:p(()=>[t(ea,{variant:"solo","hide-details":"",rows:"5",modelValue:a.textcomment,"onUpdate:modelValue":r[2]||(r[2]=o=>a.textcomment=o)},null,8,["modelValue"])]),_:1}),t(Dt,null,{default:p(()=>[t(ta),t(W,{color:"modal_btn",variant:"text",onClick:r[3]||(r[3]=o=>a.dialogCommentShow=!1)},{default:p(()=>[z(" Отмена ")]),_:1}),t(W,{color:"modal_btn",variant:"text",onClick:a.addComment},{default:p(()=>[z(" Отправить ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Ra=Ye(_a,[["render",Aa],["__scopeId","data-v-89521477"]]);const Ta={components:{NewsListNews:Ra},setup(){Ut()}};function Da(e,r,n,a,u,c){const o=zt("news-list-news");return J(),pe(re,{class:"justify-center ma-0"},{default:p(()=>[t(K,{class:"flex-column d-flex",lg:"6"},{default:p(()=>[t(o)]),_:1})]),_:1})}const qa=Ye(Ta,[["render",Da]]);export{qa as default}; diff --git a/src/front/dist/assets/NewsPage-5eccfa34.js b/src/front/dist/assets/NewsPage-5eccfa34.js deleted file mode 100644 index 14f3d6082..000000000 --- a/src/front/dist/assets/NewsPage-5eccfa34.js +++ /dev/null @@ -1 +0,0 @@ -import{bi as at,p as Y,a0 as Z,a1 as fe,a2 as Ue,aH as ze,ai as Oe,aI as lt,aJ as nt,aj as He,a4 as qe,a5 as Ke,bj as je,a6 as oe,a9 as ne,c as w,a8 as We,bk as ot,bb as st,aK as Ge,an as it,aL as ut,aM as rt,ao as ct,b6 as dt,al as j,a7 as be,F as t,bl as vt,V as ae,ar as he,H as N,r as M,aR as Je,ah as mt,a3 as ft,ag as gt,av as Xe,s as ce,ap as we,ab as ue,ac as de,bm as xe,z as Ce,w as le,Z as ee,at as ht,aa as Se,d as pt,as as bt,b as ve,o as yt,bn as Vt,bo as _t,bp as kt,b5 as wt,bq as xt,br as Ct,bs as St,G as F,be as It,bf as Pt,A as Lt,_ as Ye,aQ as Bt,aS as At,aF as se,U as Rt,W as Tt,C as J,Y as ie,E as p,L as K,$ as Ie,K as re,N as Pe,O as Le,R as Be,I as Ae,J as Re,M as Dt,aG as $t,af as ge,D as pe,bt as Ft,ad as H,aq as Mt,S as X,aE as Te,ae as De,aT as Nt,aU as Et,aB as Ut,X as zt}from"./index-09dc9553.js";import{V as Ot}from"./group-c7387df2.js";import{V as W,u as ye}from"./VBtn-61a8fe0f.js";import{m as Ht,g as qt,u as Kt,V as $e,d as jt,b as me,a as Wt,h as Gt,i as Jt,c as Fe}from"./VList-0b9b232e.js";import{d as Xt}from"./VInput-2f5042f3.js";import{m as Yt,V as Qt,f as Zt}from"./VSelectionControl-ddf592aa.js";import{V as ea}from"./VChip-ac1d8dc8.js";import{V as ta}from"./VTextarea-20d645b1.js";import{V as aa}from"./VSpacer-d6de9106.js";const la=at("v-alert-title"),na=["success","info","warning","error"],oa=Y({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:Z,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>na.includes(e)},...fe(),...Ue(),...ze(),...Oe(),...lt(),...nt(),...He(),...qe(),...Ke(),...je({variant:"flat"})},"VAlert"),sa=oe()({name:"VAlert",props:oa(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,r){let{emit:n,slots:a}=r;const u=ne(e,"modelValue"),c=w(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),o=w(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:s}=We(e),{colorClasses:l,colorStyles:x,variantClasses:C}=ot(o),{densityClasses:b}=st(e),{dimensionStyles:d}=Ge(e),{elevationClasses:h}=it(e),{locationStyles:_}=ut(e),{positionClasses:P}=rt(e),{roundedClasses:E}=ct(e),{textColorClasses:T,textColorStyles:g}=dt(j(e,"borderColor")),{t:S}=be(),L=w(()=>({"aria-label":S(e.closeLabel),onClick(I){u.value=!1,n("click:close",I)}}));return()=>{const I=!!(a.prepend||c.value),G=!!(a.title||e.title),y=!!(a.close||e.closable);return u.value&&t(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},s.value,l.value,b.value,h.value,P.value,E.value,C.value,e.class],style:[x.value,d.value,_.value,e.style],role:"alert"},{default:()=>{var i,v;return[vt(!1,"v-alert"),e.border&&t("div",{key:"border",class:["v-alert__border",T.value],style:g.value},null),I&&t("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?t(he,{key:"prepend-defaults",disabled:!c.value,defaults:{VIcon:{density:e.density,icon:c.value,size:e.prominent?44:28}}},a.prepend):t(ae,{key:"prepend-icon",density:e.density,icon:c.value,size:e.prominent?44:28},null)]),t("div",{class:"v-alert__content"},[G&&t(la,{key:"title"},{default:()=>{var f;return[((f=a.title)==null?void 0:f.call(a))??e.title]}}),((i=a.text)==null?void 0:i.call(a))??e.text,(v=a.default)==null?void 0:v.call(a)]),a.append&&t("div",{key:"append",class:"v-alert__append"},[a.append()]),y&&t("div",{key:"close",class:"v-alert__close"},[a.close?t(he,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var f;return[(f=a.close)==null?void 0:f.call(a,{props:L.value})]}}):t(W,N({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},L.value),null)])]}})}}});function ia(){const e=M([]);Je(()=>e.value=[]);function r(n,a){e.value[a]=n}return{refs:e,updateRef:r}}const ua=Y({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:Z,default:"$first"},prevIcon:{type:Z,default:"$prev"},nextIcon:{type:Z,default:"$next"},lastIcon:{type:Z,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...mt(),...fe(),...Ue(),...Oe(),...He(),...ft(),...qe({tag:"nav"}),...Ke(),...je({variant:"text"})},"VPagination"),ra=oe()({name:"VPagination",props:ua(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,r){let{slots:n,emit:a}=r;const u=ne(e,"modelValue"),{t:c,n:o}=be(),{isRtl:s}=gt(),{themeClasses:l}=We(e),{width:x}=Xe(),C=ce(-1);we(void 0,{scoped:!0});const{resizeRef:b}=ye(i=>{if(!i.length)return;const{target:v,contentRect:f}=i[0],B=v.querySelector(".v-pagination__list > *");if(!B)return;const R=f.width,O=B.offsetWidth+parseFloat(getComputedStyle(B).marginRight)*2;C.value=P(R,O)}),d=w(()=>parseInt(e.length,10)),h=w(()=>parseInt(e.start,10)),_=w(()=>e.totalVisible?parseInt(e.totalVisible,10):C.value>=0?C.value:P(x.value,58));function P(i,v){const f=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((i-v*f)/v).toFixed(2)))}const E=w(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(_.value<=1)return[u.value];if(d.value<=_.value)return ue(d.value,h.value);const i=_.value%2===0,v=i?_.value/2:Math.floor(_.value/2),f=i?v:v+1,B=d.value-v;if(f-u.value>=0)return[...ue(Math.max(1,_.value-1),h.value),e.ellipsis,d.value];if(u.value-B>=(i?1:0)){const R=_.value-1,O=d.value-R+h.value;return[h.value,e.ellipsis,...ue(R,O)]}else{const R=Math.max(1,_.value-3),O=R===1?u.value:u.value-Math.ceil(R/2)+h.value;return[h.value,e.ellipsis,...ue(R,O),e.ellipsis,d.value]}});function T(i,v,f){i.preventDefault(),u.value=v,f&&a(f,v)}const{refs:g,updateRef:S}=ia();we({VPaginationBtn:{color:j(e,"color"),border:j(e,"border"),density:j(e,"density"),size:j(e,"size"),variant:j(e,"variant"),rounded:j(e,"rounded"),elevation:j(e,"elevation")}});const L=w(()=>E.value.map((i,v)=>{const f=B=>S(B,v);if(typeof i=="string")return{isActive:!1,key:`ellipsis-${v}`,page:i,props:{ref:f,ellipsis:!0,icon:!0,disabled:!0}};{const B=i===u.value;return{isActive:B,key:i,page:o(i),props:{ref:f,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:B?e.activeColor:e.color,ariaCurrent:B,ariaLabel:c(B?e.currentPageAriaLabel:e.pageAriaLabel,i),onClick:R=>T(R,i)}}}})),I=w(()=>{const i=!!e.disabled||u.value<=h.value,v=!!e.disabled||u.value>=h.value+d.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:f=>T(f,h.value,"first"),disabled:i,ariaLabel:c(e.firstAriaLabel),ariaDisabled:i}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:f=>T(f,u.value-1,"prev"),disabled:i,ariaLabel:c(e.previousAriaLabel),ariaDisabled:i},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:f=>T(f,u.value+1,"next"),disabled:v,ariaLabel:c(e.nextAriaLabel),ariaDisabled:v},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:f=>T(f,h.value+d.value-1,"last"),disabled:v,ariaLabel:c(e.lastAriaLabel),ariaDisabled:v}:void 0}});function G(){var v;const i=u.value-h.value;(v=g.value[i])==null||v.$el.focus()}function y(i){i.key===xe.left&&!e.disabled&&u.value>+e.start?(u.value=u.value-1,Ce(G)):i.key===xe.right&&!e.disabled&&u.valuet(e.tag,{ref:b,class:["v-pagination",l.value,e.class],style:e.style,role:"navigation","aria-label":c(e.ariaLabel),onKeydown:y,"data-test":"v-pagination-root"},{default:()=>[t("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&t("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(I.value.first):t(W,N({_as:"VPaginationBtn"},I.value.first),null)]),t("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(I.value.prev):t(W,N({_as:"VPaginationBtn"},I.value.prev),null)]),L.value.map((i,v)=>t("li",{key:i.key,class:["v-pagination__item",{"v-pagination__item--is-active":i.isActive}],"data-test":"v-pagination-item"},[n.item?n.item(i):t(W,N({_as:"VPaginationBtn"},i.props),{default:()=>[i.page]})])),t("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(I.value.next):t(W,N({_as:"VPaginationBtn"},I.value.next),null)]),e.showFirstLastPage&&t("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(I.value.last):t(W,N({_as:"VPaginationBtn"},I.value.last),null)])])]})),{}}});const ca=Y({indeterminate:Boolean,indeterminateIcon:{type:Z,default:"$checkboxIndeterminate"},...Yt({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),da=oe()({name:"VCheckboxBtn",props:ca(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,r){let{slots:n}=r;const a=ne(e,"indeterminate"),u=ne(e,"modelValue");function c(l){a.value&&(a.value=!1)}const o=w(()=>a.value?e.indeterminateIcon:e.falseIcon),s=w(()=>a.value?e.indeterminateIcon:e.trueIcon);return de(()=>t(Qt,N(e,{modelValue:u.value,"onUpdate:modelValue":[l=>u.value=l,c],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:o.value,trueIcon:s.value,"aria-checked":a.value?"mixed":void 0}),n)),{}}});const va=Y({renderless:Boolean,...fe()},"VVirtualScrollItem"),ma=oe()({name:"VVirtualScrollItem",inheritAttrs:!1,props:va(),emits:{"update:height":e=>!0},setup(e,r){let{attrs:n,emit:a,slots:u}=r;const{resizeRef:c,contentRect:o}=ye(void 0,"border");le(()=>{var s;return(s=o.value)==null?void 0:s.height},s=>{s!=null&&a("update:height",s)}),de(()=>{var s,l;return e.renderless?t(ee,null,[(s=u.default)==null?void 0:s.call(u,{itemRef:c})]):t("div",N({ref:c,class:["v-virtual-scroll__item",e.class],style:e.style},n),[(l=u.default)==null?void 0:l.call(u)])})}}),Me=-1,Ne=1,fa=Y({itemHeight:{type:[Number,String],default:48}},"virtual");function ga(e,r,n){const a=ce(0),u=ce(e.itemHeight),c=w({get:()=>parseInt(u.value??0,10),set(y){u.value=y}}),o=M(),{resizeRef:s,contentRect:l}=ye();ht(()=>{s.value=o.value});const x=Xe(),C=new Map;let b=Array.from({length:r.value.length});const d=w(()=>{const y=(!l.value||o.value===document.documentElement?x.height.value:l.value.height)-((n==null?void 0:n.value)??0);return Math.ceil(y/c.value*1.7+1)});function h(y,i){c.value=Math.max(c.value,i),b[y]=i,C.set(r.value[y],i)}function _(y){return b.slice(0,y).reduce((i,v)=>i+(v||c.value),0)}function P(y){const i=r.value.length;let v=0,f=0;for(;f=O&&(a.value=Se(R,0,r.value.length-d.value)),E=i}function g(y){if(!o.value)return;const i=_(y);o.value.scrollTop=i}const S=w(()=>Math.min(r.value.length,a.value+d.value)),L=w(()=>r.value.slice(a.value,S.value).map((y,i)=>({raw:y,index:i+a.value}))),I=w(()=>_(a.value)),G=w(()=>_(r.value.length)-_(S.value));return le(()=>r.value.length,()=>{b=ue(r.value.length).map(()=>c.value),C.forEach((y,i)=>{const v=r.value.indexOf(i);v===-1?C.delete(i):b[v]=y})}),{containerRef:o,computedItems:L,itemHeight:c,paddingTop:I,paddingBottom:G,scrollToIndex:g,handleScroll:T,handleItemResize:h}}const ha=Y({items:{type:Array,default:()=>[]},renderless:Boolean,...fa(),...fe(),...ze()},"VVirtualScroll"),pa=oe()({name:"VVirtualScroll",props:ha(),setup(e,r){let{slots:n}=r;const a=pt("VVirtualScroll"),{dimensionStyles:u}=Ge(e),{containerRef:c,handleScroll:o,handleItemResize:s,scrollToIndex:l,paddingTop:x,paddingBottom:C,computedItems:b}=ga(e,j(e,"items"));return bt(()=>e.renderless,()=>{yt(()=>{var d;c.value=Vt(a.vnode.el,!0),(d=c.value)==null||d.addEventListener("scroll",o)}),_t(()=>{var d;(d=c.value)==null||d.removeEventListener("scroll",o)})}),de(()=>{const d=b.value.map(h=>t(ma,{key:h.index,renderless:e.renderless,"onUpdate:height":_=>s(h.index,_)},{default:_=>{var P;return(P=n.default)==null?void 0:P.call(n,{item:h.raw,index:h.index,..._})}}));return e.renderless?t(ee,null,[t("div",{class:"v-virtual-scroll__spacer",style:{paddingTop:ve(x.value)}},null),d,t("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ve(C.value)}},null)]):t("div",{ref:c,class:["v-virtual-scroll",e.class],onScroll:o,style:[u.value,e.style]},[t("div",{class:"v-virtual-scroll__container",style:{paddingTop:ve(x.value),paddingBottom:ve(C.value)}},[d])])}),{scrollToIndex:l}}});function ba(e,r){const n=ce(!1);let a;function u(s){cancelAnimationFrame(a),n.value=!0,a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{n.value=!1})})}async function c(){await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>requestAnimationFrame(s)),await new Promise(s=>{if(n.value){const l=le(n,()=>{l(),s()})}else s()})}async function o(s){var C,b;if(s.key==="Tab"&&((C=r.value)==null||C.focus()),!["PageDown","PageUp","Home","End"].includes(s.key))return;const l=(b=e.value)==null?void 0:b.$el;if(!l)return;(s.key==="Home"||s.key==="End")&&l.scrollTo({top:s.key==="Home"?0:l.scrollHeight,behavior:"smooth"}),await c();const x=l.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(s.key==="PageDown"||s.key==="Home"){const d=l.getBoundingClientRect().top;for(const h of x)if(h.getBoundingClientRect().top>=d){h.focus();break}}else{const d=l.getBoundingClientRect().bottom;for(const h of[...x].reverse())if(h.getBoundingClientRect().bottom<=d){h.focus();break}}}return{onListScroll:u,onListKeydown:o}}const ya=Y({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:Z,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,valueComparator:{type:Function,default:kt},...Ht({itemChildren:!1})},"Select"),Va=Y({...ya(),...wt(qt({modelValue:null}),["validationValue","dirty","appendInnerIcon"]),...xt({transition:{component:Ct}})},"VSelect"),_a=oe()({name:"VSelect",props:Va(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,r){let{slots:n}=r;const{t:a}=be(),u=M(),c=M(),o=ne(e,"menu"),s=w({get:()=>o.value,set:m=>{var k;o.value&&!m&&((k=c.value)!=null&&k.ΨopenChildren)||(o.value=m)}}),{items:l,transformIn:x,transformOut:C}=Kt(e),b=ne(e,"modelValue",[],m=>x(m===null?[null]:Pt(m)),m=>{const k=C(m);return e.multiple?k:k[0]??null}),d=Xt(),h=w(()=>b.value.map(m=>l.value.find(k=>e.valueComparator(k.value,m.value))||m)),_=w(()=>h.value.map(m=>m.props.value)),P=ce(!1);let E="",T;const g=w(()=>e.hideSelected?l.value.filter(m=>!h.value.some(k=>k===m)):l.value),S=w(()=>e.hideNoData&&!l.value.length||e.readonly||(d==null?void 0:d.isReadonly.value)),L=M(),{onListScroll:I,onListKeydown:G}=ba(L,u);function y(m){e.openOnClear&&(s.value=!0)}function i(){S.value||(s.value=!s.value)}function v(m){var V,$;if(!m.key||e.readonly||d!=null&&d.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(m.key)&&m.preventDefault(),["Enter","ArrowDown"," "].includes(m.key)&&(s.value=!0),["Escape","Tab"].includes(m.key)&&(s.value=!1),m.key==="Home"?(V=L.value)==null||V.focus("first"):m.key==="End"&&(($=L.value)==null||$.focus("last"));const k=1e3;function D(A){const q=A.key.length===1,U=!A.ctrlKey&&!A.metaKey&&!A.altKey;return q&&U}if(e.multiple||!D(m))return;const Q=performance.now();Q-T>k&&(E=""),E+=m.key.toLowerCase(),T=Q;const te=l.value.find(A=>A.title.toLowerCase().startsWith(E));te!==void 0&&(b.value=[te])}function f(m){if(e.multiple){const k=_.value.findIndex(D=>e.valueComparator(D,m.value));if(k===-1)b.value=[...b.value,m];else{const D=[...b.value];D.splice(k,1),b.value=D}}else b.value=[m],s.value=!1}function B(m){var k;(k=L.value)!=null&&k.$el.contains(m.relatedTarget)||(s.value=!1)}function R(){var m;P.value&&((m=u.value)==null||m.focus())}function O(m){P.value=!0}function Qe(m){var k,D;if(m==null)b.value=[];else if((k=u.value)!=null&&k.matches(":autofill")||(D=u.value)!=null&&D.matches(":-webkit-autofill")){const Q=l.value.find(te=>te.title===m);Q&&f(Q)}else u.value&&(u.value.value="")}return de(()=>{const m=!!(e.chips||n.chip),k=!!(!e.hideNoData||g.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),D=b.value.length>0,[Q]=$e.filterProps(e),te=D||!P.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return t($e,N({ref:u},Q,{modelValue:b.value.map(V=>V.props.value).join(", "),"onUpdate:modelValue":Qe,focused:P.value,"onUpdate:focused":V=>P.value=V,validationValue:b.externalValue,dirty:D,class:["v-select",{"v-select--active-menu":s.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":b.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:te,"onClick:clear":y,"onMousedown:control":i,onBlur:B,onKeydown:v}),{...n,default:()=>t(ee,null,[t(St,N({ref:c,modelValue:s.value,"onUpdate:modelValue":V=>s.value=V,activator:"parent",contentClass:"v-select__content",disabled:S.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:R},e.menuProps),{default:()=>[k&&t(jt,{ref:L,selected:_.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:V=>V.preventDefault(),onKeydown:G,onFocusin:O,onScrollPassive:I,tabindex:"-1"},{default:()=>{var V,$,A;return[(V=n["prepend-item"])==null?void 0:V.call(n),!g.value.length&&!e.hideNoData&&((($=n["no-data"])==null?void 0:$.call(n))??t(me,{title:a(e.noDataText)},null)),t(pa,{renderless:!0,items:g.value},{default:q=>{var ke;let{item:U,index:z,itemRef:Ze}=q;const _e=N(U.props,{ref:Ze,key:z,onClick:()=>f(U)});return((ke=n.item)==null?void 0:ke.call(n,{item:U,index:z,props:_e}))??t(me,_e,{prepend:et=>{let{isSelected:tt}=et;return t(ee,null,[e.multiple&&!e.hideSelected?t(da,{key:U.value,modelValue:tt,ripple:!1,tabindex:"-1"},null):void 0,U.props.prependIcon&&t(ae,{icon:U.props.prependIcon},null)])}})}}),(A=n["append-item"])==null?void 0:A.call(n)]}})]}),h.value.map((V,$)=>{var U;function A(z){z.stopPropagation(),z.preventDefault(),f(V)}const q={"onClick:close":A,onMousedown(z){z.preventDefault(),z.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return t("div",{key:V.value,class:"v-select__selection"},[m?n.chip?t(he,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:V.title}}},{default:()=>{var z;return[(z=n.chip)==null?void 0:z.call(n,{item:V,index:$,props:q})]}}):t(ea,N({key:"chip",closable:e.closableChips,size:"small",text:V.title},q),null):((U=n.selection)==null?void 0:U.call(n,{item:V,index:$}))??t("span",{class:"v-select__selection-text"},[V.title,e.multiple&&${e.value=[]});const r=M([]),n=M(!1),a=$t.slice(0,-1),u=M(""),c=M(0),o=M(1),s=M(2),l=At();let x=`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`;l.path=="/news"&&"id"in l.query&&(x=`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}&id=${l.query.id}`),se(x,r);const C=(g,S)=>{ge.post("api/navigation/news/",{news:g,scores:S}).then(L=>{r.value.result[r.value.result.findIndex(I=>I.id==g)].scores=L.data})},b=()=>{ge.post("api/navigation/news/",{news:c.value,text:u.value}).then(g=>{n.value=!n.value,r.value.result[r.value.result.findIndex(S=>S.id==g.data.news)].comment=g.data.comment}),u.value=""},d=(g,S)=>{ge.post("api/navigation/news/",{delid:g,news:S}).then(L=>{r.value.result[r.value.result.findIndex(I=>I.id==L.data.news)].comment=L.data.comment})},h=()=>{se(`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`,r)};return le(()=>l.query,(g,S)=>{g&&(x=`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`,se(x,r))},{deep:!0}),le(()=>s,(g,S)=>{g&&se(`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${g.value}`,r)},{deep:!0}),le(()=>Ee.cod2user,(g,S)=>{g&&se(`api/navigation/news/?name=${l.path}&page=${o.value-1}&selected=${s.value}`,r)},{deep:!0}),{newss:r,burl:a,limitText:g=>{const S=g.split(" ").slice(0,25);return`${g.split(" ").slice(0,25).join(" ")} ${S.length<25?"":"..."}`},toggleIncrementLike:C,dialogCommentShow:n,accountStore:Ee,dateformat:g=>Zt(new Date(g),"dd.MM.yyyy HH:mm"),splitname:g=>g.familyname+" "+g.name[0]+"."+g.parentname[0]+".",textcomment:u,openComent:g=>{n.value=!n.value,c.value=g},addComment:b,idnews:c,deletComment:d,pagelistNews:h,divs:e,page:o,selecnews:s,checkremote:Rt,route:l,spravURL:Tt}}},Ve=e=>(Nt("data-v-7f27a251"),e=e(),Et(),e),wa={class:"d-flex flex-column py-3 h-100"},xa={class:"justify-self-end"},Ca={class:"subheading me-2"},Sa=Ve(()=>X("span",{class:"me-1"},"·",-1)),Ia={class:"subheading me-2"},Pa=Ve(()=>X("span",{class:"me-1"},"·",-1)),La=["onClick"],Ba={key:0},Aa=Ve(()=>X("div",{class:"text-subtitle-2"},null,-1));function Ra(e,r,n,a,u,c){return J(),ie("div",wa,[t(re,{class:"flex-grow-1 d-flex h-0 overflow-auto"},{default:p(()=>[t(K,{class:"pa-0"},{default:p(()=>[(J(!0),ie(ee,null,Ie(a.newss.result,(o,s)=>(J(),pe(Be,{class:"rounded-0",key:s},{default:p(()=>[t(me,{class:"w-100 pl-4 py-2 pt-3"},{prepend:p(()=>[t(Ft,{color:"loading_avatar",image:a.checkremote(`${a.spravURL}${o.author.login}.jpg`)},null,8,["image"])]),default:p(()=>[t(Gt,null,{default:p(()=>[F(H(o.author.fio),1)]),_:2},1024),t(Jt,null,{default:p(()=>[F("Участник")]),_:1})]),_:2},1024),t(Ae,{class:"pt-0 pb-1"},{default:p(()=>[F(H(o.title),1)]),_:2},1024),t(Mt,{src:`${a.burl}${o.link}`,height:"350px",width:"96%",class:"mx-auto",cover:""},null,8,["src"]),t(me,{class:"w-100"},{append:p(()=>[X("div",xa,[t(ae,{class:"me-1",icon:o.scores.filter(l=>l.user==a.accountStore.user.login&&l.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",onClick:l=>a.toggleIncrementLike(o.id,!0)},null,8,["icon","onClick"]),X("span",Ca,H(o.scores.filter(l=>l.score==!0).length),1),Sa,t(ae,{class:"me-1",icon:o.scores.filter(l=>l.user==a.accountStore.user.login&&l.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",onClick:l=>a.toggleIncrementLike(o.id,!1)},null,8,["icon","onClick"]),X("span",Ia,H(o.scores.filter(l=>l.score==!1).length),1),Pa,t(ae,{class:"me-1",icon:"mdi-message-text-outline",onClick:l=>a.openComent(o.id)},null,8,["onClick"]),X("span",{onClick:l=>o.showComment=!o.showComment,class:"pointer subheading"},H(o.comment.length),9,La)])]),_:2},1024),X("div",null,[t(Fe),t(Re,null,{default:p(()=>[F(H(o.text),1)]),_:2},1024),t(Fe),t(Ot,null,{default:p(()=>[o.comment.length>0?Pe((J(),ie("div",Ba,[(J(!0),ie(ee,null,Ie(o.comment,(l,x)=>(J(),ie("div",{key:x,class:"d-flex flex-column pa-3"},[t(re,{class:Te(["justify-space-between ma-0 align-center bgchat mr-7",a.accountStore.user.login==l.author.login?"bgchatnot":"bgchat"])},{default:p(()=>[t(K,{class:"flex-grow-1 text-subtitle-2 pl-2 pa-0"},{default:p(()=>[F(H(a.accountStore.user.login==l.author.login?"":a.splitname(l.author)),1)]),_:2},1024),t(K,{class:"pa-0 text-center text-subtitle-2"},{default:p(()=>[F(H(a.dateformat(l.cdate)),1)]),_:2},1024),t(K,{class:"pa-0 pr-2 text-end text-subtitle-2"},{default:p(()=>[F(H(a.accountStore.user.login!=l.author.login?"":a.splitname(l.author)),1)]),_:2},1024)]),_:2},1032,["class"]),Aa,t(re,null,{default:p(()=>[t(K,{class:"pr-0"},{default:p(()=>[t(sa,{color:"bg_white",rounded:"0",border:a.accountStore.user.login==l.author.login?"end":"start","border-color":a.accountStore.user.login==l.author.login?"success":"deep-purple accent-4",elevation:"0"},{default:p(()=>[F(H(l.text),1)]),_:2},1032,["border","border-color"])]),_:2},1024),t(K,{class:Te(["flex-grow-0 d-flex pa-0 align-center",a.accountStore.user.login==l.author.login?"pa-0":"pa-5"])},{default:p(()=>[a.accountStore.user.login==l.author.login?(J(),pe(W,{key:0,variant:"text",size:"small",icon:"mdi-delete",color:"delete_btn",onClick:C=>a.deletComment(l.id,o.id)},null,8,["onClick"])):De("",!0)]),_:2},1032,["class"])]),_:2},1024)]))),128))],512)),[[Le,o.showComment]]):De("",!0)]),_:2},1024)])]),_:2},1024))),128))]),_:1})]),_:1}),Pe(t(re,{class:"flex-grow-0"},{default:p(()=>[t(K,{class:"ma-0 pa-0 pt-2"},{default:p(()=>[t(ra,{modelValue:a.page,"onUpdate:modelValue":r[0]||(r[0]=o=>a.page=o),length:a.newss.allnews,"prev-icon":"mdi-menu-left","next-icon":"mdi-menu-right",onClick:a.pagelistNews},null,8,["modelValue","length","onClick"])]),_:1}),t(K,{class:"ma-0 flex-grow-0 mwidth mt-1 pa-0"},{default:p(()=>[t(_a,{"hide-details":"",density:"compact",modelValue:a.selecnews,"onUpdate:modelValue":r[1]||(r[1]=o=>a.selecnews=o),variant:"underlined",items:["1","2","3","4","5","6"]},null,8,["modelValue"])]),_:1})]),_:1},512),[[Le,!(a.route.path=="/news"&&"id"in a.route.query)]]),t(Wt,{modelValue:a.dialogCommentShow,"onUpdate:modelValue":r[4]||(r[4]=o=>a.dialogCommentShow=o),persistent:"",width:"550"},{default:p(()=>[t(Be,null,{default:p(()=>[t(Ae,{class:"text-h5"},{default:p(()=>[F(" Прокоментировать новость ")]),_:1}),t(Re,null,{default:p(()=>[t(ta,{variant:"solo","hide-details":"",rows:"5",modelValue:a.textcomment,"onUpdate:modelValue":r[2]||(r[2]=o=>a.textcomment=o)},null,8,["modelValue"])]),_:1}),t(Dt,null,{default:p(()=>[t(aa),t(W,{color:"modal_btn",variant:"text",onClick:r[3]||(r[3]=o=>a.dialogCommentShow=!1)},{default:p(()=>[F(" Отмена ")]),_:1}),t(W,{color:"modal_btn",variant:"text",onClick:a.addComment},{default:p(()=>[F(" Отправить ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Ta=Ye(ka,[["render",Ra],["__scopeId","data-v-7f27a251"]]);const Da={components:{NewsListNews:Ta},setup(){Ut()}};function $a(e,r,n,a,u,c){const o=zt("news-list-news");return J(),pe(re,{class:"justify-center ma-0"},{default:p(()=>[t(K,{class:"flex-column d-flex",lg:"6"},{default:p(()=>[t(o)]),_:1})]),_:1})}const Ka=Ye(Da,[["render",$a]]);export{Ka as default}; diff --git a/src/front/dist/assets/ProvidingActivitiesPage-022b20c7.js b/src/front/dist/assets/ProvidingActivitiesPage-022b20c7.js deleted file mode 100644 index e1595460b..000000000 --- a/src/front/dist/assets/ProvidingActivitiesPage-022b20c7.js +++ /dev/null @@ -1 +0,0 @@ -import{p as V,a1 as h,a4 as k,a5 as I,a6 as v,a8 as y,F as s,_ as x,aB as C,C as p,D as d,E as t,K as f,Y as G,$ as S,Z as P,L as g,S as b,ad as B}from"./index-09dc9553.js";import{a as T,b as $,m as w,u as D,d as N}from"./group-c7387df2.js";import{V as Y}from"./VContainer-194cdd0e.js";import{V as F}from"./VBtn-61a8fe0f.js";const _=Symbol.for("vuetify:v-item-group"),K=V({...h(),...T({selectedClass:"v-item--selected"}),...k(),...I()},"VItemGroup"),R=v()({name:"VItemGroup",props:K(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const{themeClasses:o}=y(e),{isSelected:u,select:m,next:l,prev:r,selected:i}=$(e,_);return()=>s(e.tag,{class:["v-item-group",o.value,e.class],style:e.style},{default:()=>{var c;return[(c=a.default)==null?void 0:c.call(a,{isSelected:u,select:m,next:l,prev:r,selected:i.value})]}})}}),E=v()({name:"VItem",props:w(),emits:{"group:selected":e=>!0},setup(e,n){let{slots:a}=n;const{isSelected:o,select:u,toggle:m,selectedClass:l,value:r,disabled:i}=D(e,_);return()=>{var c;return(c=a.default)==null?void 0:c.call(a,{isSelected:o.value,selectedClass:l.value,select:u,toggle:m,value:r.value,disabled:i.value})}}}),L={setup(){return C(),{activates:[{name:"Комиссии",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_committees"},{name:"Ответственность",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_departments"}]}}},O={class:"text-h5 text-grey flex-grow-1 text-center"};function j(e,n,a,o,u,m){return p(),d(f,{class:"align-center"},{default:t(()=>[s(g,{class:"mt-4 text--lighten-1 font-weight-light"},{default:t(()=>[s(R,{mandatory:""},{default:t(()=>[s(Y,null,{default:t(()=>[s(f,{class:"justify-center"},{default:t(()=>[(p(!0),G(P,null,S(o.activates,l=>(p(),d(g,{key:l,cols:"4",md:"2"},{default:t(()=>[s(E,null,{default:t(({isSelected:r,toggle:i})=>[s(F,{color:r?"primary":"",class:"d-flex align-center pa-6",dark:"",href:l.link},{default:t(()=>[s(N,null,{default:t(()=>[b("div",O,B(l.name),1)]),_:2},1024)]),_:2},1032,["color","href"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const H=x(L,[["render",j]]);export{H as default}; diff --git a/src/front/dist/assets/ProvidingActivitiesPage-79cb5b40.js b/src/front/dist/assets/ProvidingActivitiesPage-79cb5b40.js new file mode 100644 index 000000000..d20d01ce1 --- /dev/null +++ b/src/front/dist/assets/ProvidingActivitiesPage-79cb5b40.js @@ -0,0 +1 @@ +import{p as V,a1 as h,a4 as k,a5 as I,a6 as _,a8 as y,F as l,_ as x,aB as C,C as p,D as d,E as t,K as f,Y as G,$ as S,Z as b,L as g,S as P,ad as B}from"./index-cf33b3b8.js";import{a as T,b as $,m as w,u as D,d as N}from"./group-2cdf27ee.js";import{V as Y}from"./VContainer-a91b572b.js";import{V as F}from"./VBtn-11d9d7ef.js";const v=Symbol.for("vuetify:v-item-group"),K=V({...h(),...T({selectedClass:"v-item--selected"}),...k(),...I()},"VItemGroup"),R=_()({name:"VItemGroup",props:K(),emits:{"update:modelValue":e=>!0},setup(e,c){let{slots:a}=c;const{themeClasses:r}=y(e),{isSelected:u,select:m,next:s,prev:o,selected:i}=$(e,v);return()=>l(e.tag,{class:["v-item-group",r.value,e.class],style:e.style},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a,{isSelected:u,select:m,next:s,prev:o,selected:i.value})]}})}}),E=_()({name:"VItem",props:w(),emits:{"group:selected":e=>!0},setup(e,c){let{slots:a}=c;const{isSelected:r,select:u,toggle:m,selectedClass:s,value:o,disabled:i}=D(e,v);return()=>{var n;return(n=a.default)==null?void 0:n.call(a,{isSelected:r.value,selectedClass:s.value,select:u,toggle:m,value:o.value,disabled:i.value})}}}),L={setup(){return C(),{activates:[{name:"Комиссии",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_committees"},{name:"Ответственность",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_departments"}]}}},O={class:"text-h5 text-grey flex-grow-1 text-center"};function j(e,c,a,r,u,m){return p(),d(f,{class:"align-center"},{default:t(()=>[l(g,{class:"mt-4 text--lighten-1 font-weight-light"},{default:t(()=>[l(R,{mandatory:""},{default:t(()=>[l(Y,null,{default:t(()=>[l(f,{class:"justify-center"},{default:t(()=>[(p(!0),G(b,null,S(r.activates,s=>(p(),d(g,{key:s,cols:"4",md:"2"},{default:t(()=>[l(E,null,{default:t(({isSelected:o,toggle:i})=>[l(F,{color:o?"primary":"",class:"d-flex align-center pa-6",dark:"",href:s.link,target:s.link?"_blank":""},{default:t(()=>[l(N,null,{default:t(()=>[P("div",O,B(s.name),1)]),_:2},1024)]),_:2},1032,["color","href","target"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const H=x(L,[["render",j]]);export{H as default}; diff --git a/src/front/dist/assets/SecurityPage-78bbb332.js b/src/front/dist/assets/SecurityPage-32b985db.js similarity index 83% rename from src/front/dist/assets/SecurityPage-78bbb332.js rename to src/front/dist/assets/SecurityPage-32b985db.js index 4af3f3de6..28a2f6ad9 100644 --- a/src/front/dist/assets/SecurityPage-78bbb332.js +++ b/src/front/dist/assets/SecurityPage-32b985db.js @@ -1 +1 @@ -import{_ as t,aB as a,C as s,D as c,E as e,K as o,F as r,G as n,L as l}from"./index-09dc9553.js";const _={setup(){a()}};function f(i,p,u,x,d,g){return s(),c(o,null,{default:e(()=>[r(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" Безопасность ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; +import{_ as t,aB as a,C as s,D as c,E as e,K as o,F as r,G as n,L as l}from"./index-cf33b3b8.js";const _={setup(){a()}};function f(i,p,u,x,d,g){return s(),c(o,null,{default:e(()=>[r(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>[n(" Безопасность ")]),_:1})]),_:1})}const V=t(_,[["render",f]]);export{V as default}; diff --git a/src/front/dist/assets/UsersInfoPage-5ea61761.js b/src/front/dist/assets/UsersInfoPage-04b47356.js similarity index 87% rename from src/front/dist/assets/UsersInfoPage-5ea61761.js rename to src/front/dist/assets/UsersInfoPage-04b47356.js index 7fab6d160..9375d4489 100644 --- a/src/front/dist/assets/UsersInfoPage-5ea61761.js +++ b/src/front/dist/assets/UsersInfoPage-04b47356.js @@ -1 +1 @@ -import{_ as l,A as i,r as o,aB as u,C as g,Y as p,ad as f,n as d}from"./index-09dc9553.js";const _={props:{loging:{type:String,default:""}},setup(n,r){const t=i(),e=o([]),s=o(""),a=async()=>{n.loging==""?s.value=t.user.login:s.value=n.loging;const c=await d.get("api/accounts/getuser/?userlogin="+s.value);e.value=c.data};return u(),a(),{userlinks:e}}};function k(n,r,t,e,s,a){return g(),p("div",null," Сотрудники "+f(e.userlinks),1)}const x=l(_,[["render",k]]);export{x as default}; +import{_ as l,A as i,r as o,aB as u,C as g,Y as p,ad as f,n as d}from"./index-cf33b3b8.js";const _={props:{loging:{type:String,default:""}},setup(n,r){const t=i(),e=o([]),s=o(""),a=async()=>{n.loging==""?s.value=t.user.login:s.value=n.loging;const c=await d.get("api/accounts/getuser/?userlogin="+s.value);e.value=c.data};return u(),a(),{userlinks:e}}};function k(n,r,t,e,s,a){return g(),p("div",null," Сотрудники "+f(e.userlinks),1)}const x=l(_,[["render",k]]);export{x as default}; diff --git a/src/front/dist/assets/VBtn-61a8fe0f.js b/src/front/dist/assets/VBtn-11d9d7ef.js similarity index 59% rename from src/front/dist/assets/VBtn-61a8fe0f.js rename to src/front/dist/assets/VBtn-11d9d7ef.js index 92844b519..9d7b0afb7 100644 --- a/src/front/dist/assets/VBtn-61a8fe0f.js +++ b/src/front/dist/assets/VBtn-11d9d7ef.js @@ -1 +1 @@ -import{r as D,b9 as de,l as ve,w as q,bU as K,bO as fe,p as V,ah as Q,a1 as L,a2 as X,ai as Y,aj as Z,a4 as O,a5 as G,bj as p,a6 as P,a8 as A,bb as ee,am as ae,an as te,ao as ne,ap as me,al as k,ac as B,F as s,H as be,a3 as se,bJ as le,b6 as J,bV as ge,c as d,b as ye,at as ke,z as Ce,a0 as H,aH as he,bR as Ve,aI as Pe,aJ as Be,bD as Se,bu as Ie,bk as Re,aK as xe,aV as _e,aL as we,aM as ze,bE as Te,N as Ne,bv as De,bl as Le,V as T,ar as N}from"./index-09dc9553.js";import{a as Oe,b as Ge,m as Ae,u as Ee}from"./group-c7387df2.js";function Me(e){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=D(),a=D();if(de){const o=new ResizeObserver(l=>{e==null||e(l,o),l.length&&(u==="content"?a.value=l[0].contentRect:a.value=l[0].target.getBoundingClientRect())});ve(()=>{o.disconnect()}),q(n,(l,r)=>{r&&(o.unobserve(K(r)),a.value=void 0),l&&o.observe(K(l))},{flush:"post"})}return{resizeRef:n,contentRect:fe(a)}}const oe=V({divided:Boolean,...Q(),...L(),...X(),...Y(),...Z(),...O(),...G(),...p()},"VBtnGroup"),W=P()({name:"VBtnGroup",props:oe(),setup(e,u){let{slots:n}=u;const{themeClasses:a}=A(e),{densityClasses:o}=ee(e),{borderClasses:l}=ae(e),{elevationClasses:r}=te(e),{roundedClasses:v}=ne(e);me({VBtn:{height:"auto",color:k(e,"color"),density:k(e,"density"),flat:!0,variant:k(e,"variant")}}),B(()=>s(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},a.value,l.value,o.value,r.value,v.value,e.class],style:e.style},n))}}),ie=Symbol.for("vuetify:v-btn-toggle"),$e=V({...oe(),...Oe()},"VBtnToggle"),We=P()({name:"VBtnToggle",props:$e(),emits:{"update:modelValue":e=>!0},setup(e,u){let{slots:n}=u;const{isSelected:a,next:o,prev:l,select:r,selected:v}=Ge(e,ie);return B(()=>{const[m]=W.filterProps(e);return s(W,be({class:["v-btn-toggle",e.class]},m,{style:e.style}),{default:()=>{var b;return[(b=n.default)==null?void 0:b.call(n,{isSelected:a,next:o,prev:l,select:r,selected:v})]}})}),{next:o,prev:l,select:r}}});const je=V({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...L(),...se(),...O({tag:"div"}),...G()},"VProgressCircular"),Fe=P()({name:"VProgressCircular",props:je(),setup(e,u){let{slots:n}=u;const a=20,o=2*Math.PI*a,l=D(),{themeClasses:r}=A(e),{sizeClasses:v,sizeStyles:m}=le(e),{textColorClasses:b,textColorStyles:S}=J(k(e,"color")),{textColorClasses:I,textColorStyles:R}=J(k(e,"bgColor")),{intersectionRef:x,isIntersecting:_}=ge(),{resizeRef:w,contentRect:C}=Me(),g=d(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),t=d(()=>Number(e.width)),i=d(()=>m.value?Number(e.size):C.value?C.value.width:Math.max(t.value,32)),y=d(()=>a/(1-t.value/i.value)*2),f=d(()=>t.value/i.value*y.value),z=d(()=>ye((100-g.value)/100*o));return ke(()=>{x.value=l.value,w.value=l.value}),B(()=>s(e.tag,{ref:l,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":_.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},r.value,v.value,b.value,e.class],style:[m.value,S.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:g.value},{default:()=>[s("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${y.value} ${y.value}`},[s("circle",{class:["v-progress-circular__underlay",I.value],style:R.value,fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":f.value,"stroke-dasharray":o,"stroke-dashoffset":0},null),s("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":f.value,"stroke-dasharray":o,"stroke-dashoffset":z.value},null)]),n.default&&s("div",{class:"v-progress-circular__content"},[n.default({value:g.value})])]})),{}}});function Ue(e,u){q(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&u&&Ce(()=>{u(!0)})},{immediate:!0})}const Ke=V({active:{type:Boolean,default:void 0},symbol:{type:null,default:ie},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:H,appendIcon:H,block:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Q(),...L(),...X(),...he(),...Y(),...Ae(),...Ve(),...Pe(),...Be(),...Z(),...Se(),...se(),...O({tag:"button"}),...G(),...p({variant:"elevated"})},"VBtn"),qe=P()({name:"VBtn",directives:{Ripple:Ie},props:Ke(),emits:{"group:selected":e=>!0},setup(e,u){let{attrs:n,slots:a}=u;const{themeClasses:o}=A(e),{borderClasses:l}=ae(e),{colorClasses:r,colorStyles:v,variantClasses:m}=Re(e),{densityClasses:b}=ee(e),{dimensionStyles:S}=xe(e),{elevationClasses:I}=te(e),{loaderClasses:R}=_e(e),{locationStyles:x}=we(e),{positionClasses:_}=ze(e),{roundedClasses:w}=ne(e),{sizeClasses:C,sizeStyles:g}=le(e),t=Ee(e,e.symbol,!1),i=Te(e,n),y=d(()=>{var c;return e.active!==void 0?e.active:i.isLink.value?(c=i.isActive)==null?void 0:c.value:t==null?void 0:t.isSelected.value}),f=d(()=>(t==null?void 0:t.disabled.value)||e.disabled),z=d(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),ue=d(()=>{if(e.value!==void 0)return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function re(c){var h;f.value||i.isLink.value&&(c.metaKey||c.ctrlKey||c.shiftKey||c.button!==0||n.target==="_blank")||((h=i.navigate)==null||h.call(i,c),t==null||t.toggle())}return Ue(i,t==null?void 0:t.select),B(()=>{var $,j;const c=i.isLink.value?"a":e.tag,h=!!(e.prependIcon||a.prepend),ce=!!(e.appendIcon||a.append),E=!!(e.icon&&e.icon!==!0),M=(t==null?void 0:t.isSelected.value)&&(!i.isLink.value||(($=i.isActive)==null?void 0:$.value))||!t||((j=i.isActive)==null?void 0:j.value);return Ne(s(c,{type:c==="a"?void 0:"button",class:["v-btn",t==null?void 0:t.selectedClass.value,{"v-btn--active":y.value,"v-btn--block":e.block,"v-btn--disabled":f.value,"v-btn--elevated":z.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--stacked":e.stacked},o.value,l.value,M?r.value:void 0,b.value,I.value,R.value,_.value,w.value,C.value,m.value,e.class],style:[M?v.value:void 0,S.value,x.value,g.value,e.style],disabled:f.value||void 0,href:i.href.value,onClick:re,value:ue.value},{default:()=>{var F;return[Le(!0,"v-btn"),!e.icon&&h&&s("span",{key:"prepend",class:"v-btn__prepend"},[a.prepend?s(N,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},a.prepend):s(T,{key:"prepend-icon",icon:e.prependIcon},null)]),s("span",{class:"v-btn__content","data-no-activator":""},[!a.default&&E?s(T,{key:"content-icon",icon:e.icon},null):s(N,{key:"content-defaults",disabled:!E,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var U;return[((U=a.default)==null?void 0:U.call(a))??e.text]}})]),!e.icon&&ce&&s("span",{key:"append",class:"v-btn__append"},[a.append?s(N,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},a.append):s(T,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&s("span",{key:"loader",class:"v-btn__loader"},[((F=a.loader)==null?void 0:F.call(a))??s(Fe,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[De("ripple"),!f.value&&e.ripple,null]])}),{}}});export{qe as V,Fe as a,We as b,Ke as m,Me as u}; +import{r as L,b9 as de,l as ve,w as q,bV as U,bP as fe,p as V,ah as Q,a1 as D,a2 as X,ai as Y,aj as Z,a4 as G,a5 as O,bk as p,a6 as P,a8 as A,bb as ee,am as ae,an as te,ao as ne,ap as me,al as k,ac as B,F as s,H as be,a3 as se,bK as le,b6 as W,bW as ge,c as d,b as ye,at as ke,z as Ce,a0 as H,aH as he,bS as Ve,aI as Pe,aJ as Be,bE as Se,bv as Ie,bl as Re,aK as we,aV as xe,aL as _e,aM as ze,bF as Te,N as Ne,bw as Le,bm as De,V as T,ar as N}from"./index-cf33b3b8.js";import{a as Ge,b as Oe,m as Ae,u as Ee}from"./group-2cdf27ee.js";function Me(e){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=L(),a=L();if(de){const o=new ResizeObserver(l=>{e==null||e(l,o),l.length&&(u==="content"?a.value=l[0].contentRect:a.value=l[0].target.getBoundingClientRect())});ve(()=>{o.disconnect()}),q(n,(l,r)=>{r&&(o.unobserve(U(r)),a.value=void 0),l&&o.observe(U(l))},{flush:"post"})}return{resizeRef:n,contentRect:fe(a)}}const oe=V({divided:Boolean,...Q(),...D(),...X(),...Y(),...Z(),...G(),...O(),...p()},"VBtnGroup"),J=P()({name:"VBtnGroup",props:oe(),setup(e,u){let{slots:n}=u;const{themeClasses:a}=A(e),{densityClasses:o}=ee(e),{borderClasses:l}=ae(e),{elevationClasses:r}=te(e),{roundedClasses:v}=ne(e);me({VBtn:{height:"auto",color:k(e,"color"),density:k(e,"density"),flat:!0,variant:k(e,"variant")}}),B(()=>s(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},a.value,l.value,o.value,r.value,v.value,e.class],style:e.style},n))}}),ie=Symbol.for("vuetify:v-btn-toggle"),$e=V({...oe(),...Ge()},"VBtnToggle"),Je=P()({name:"VBtnToggle",props:$e(),emits:{"update:modelValue":e=>!0},setup(e,u){let{slots:n}=u;const{isSelected:a,next:o,prev:l,select:r,selected:v}=Oe(e,ie);return B(()=>{const[m]=J.filterProps(e);return s(J,be({class:["v-btn-toggle",e.class]},m,{style:e.style}),{default:()=>{var b;return[(b=n.default)==null?void 0:b.call(n,{isSelected:a,next:o,prev:l,select:r,selected:v})]}})}),{next:o,prev:l,select:r}}});const Fe=V({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...D(),...se(),...G({tag:"div"}),...O()},"VProgressCircular"),Ke=P()({name:"VProgressCircular",props:Fe(),setup(e,u){let{slots:n}=u;const a=20,o=2*Math.PI*a,l=L(),{themeClasses:r}=A(e),{sizeClasses:v,sizeStyles:m}=le(e),{textColorClasses:b,textColorStyles:S}=W(k(e,"color")),{textColorClasses:I,textColorStyles:R}=W(k(e,"bgColor")),{intersectionRef:w,isIntersecting:x}=ge(),{resizeRef:_,contentRect:C}=Me(),g=d(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),t=d(()=>Number(e.width)),i=d(()=>m.value?Number(e.size):C.value?C.value.width:Math.max(t.value,32)),y=d(()=>a/(1-t.value/i.value)*2),f=d(()=>t.value/i.value*y.value),z=d(()=>ye((100-g.value)/100*o));return ke(()=>{w.value=l.value,_.value=l.value}),B(()=>s(e.tag,{ref:l,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":x.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},r.value,v.value,b.value,e.class],style:[m.value,S.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:g.value},{default:()=>[s("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${y.value} ${y.value}`},[s("circle",{class:["v-progress-circular__underlay",I.value],style:R.value,fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":f.value,"stroke-dasharray":o,"stroke-dashoffset":0},null),s("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":f.value,"stroke-dasharray":o,"stroke-dashoffset":z.value},null)]),n.default&&s("div",{class:"v-progress-circular__content"},[n.default({value:g.value})])]})),{}}});function je(e,u){q(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&u&&Ce(()=>{u(!0)})},{immediate:!0})}const Ue=V({active:{type:Boolean,default:void 0},symbol:{type:null,default:ie},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:H,appendIcon:H,block:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Q(),...D(),...X(),...he(),...Y(),...Ae(),...Ve(),...Pe(),...Be(),...Z(),...Se(),...se(),...G({tag:"button"}),...O(),...p({variant:"elevated"})},"VBtn"),qe=P()({name:"VBtn",directives:{Ripple:Ie},props:Ue(),emits:{"group:selected":e=>!0},setup(e,u){let{attrs:n,slots:a}=u;const{themeClasses:o}=A(e),{borderClasses:l}=ae(e),{colorClasses:r,colorStyles:v,variantClasses:m}=Re(e),{densityClasses:b}=ee(e),{dimensionStyles:S}=we(e),{elevationClasses:I}=te(e),{loaderClasses:R}=xe(e),{locationStyles:w}=_e(e),{positionClasses:x}=ze(e),{roundedClasses:_}=ne(e),{sizeClasses:C,sizeStyles:g}=le(e),t=Ee(e,e.symbol,!1),i=Te(e,n),y=d(()=>{var c;return e.active!==void 0?e.active:i.isLink.value?(c=i.isActive)==null?void 0:c.value:t==null?void 0:t.isSelected.value}),f=d(()=>(t==null?void 0:t.disabled.value)||e.disabled),z=d(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),ue=d(()=>{if(e.value!==void 0)return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function re(c){var h;f.value||i.isLink.value&&(c.metaKey||c.ctrlKey||c.shiftKey||c.button!==0||n.target==="_blank")||((h=i.navigate)==null||h.call(i,c),t==null||t.toggle())}return je(i,t==null?void 0:t.select),B(()=>{var $,F;const c=i.isLink.value?"a":e.tag,h=!!(e.prependIcon||a.prepend),ce=!!(e.appendIcon||a.append),E=!!(e.icon&&e.icon!==!0),M=(t==null?void 0:t.isSelected.value)&&(!i.isLink.value||(($=i.isActive)==null?void 0:$.value))||!t||((F=i.isActive)==null?void 0:F.value);return Ne(s(c,{type:c==="a"?void 0:"button",class:["v-btn",t==null?void 0:t.selectedClass.value,{"v-btn--active":y.value,"v-btn--block":e.block,"v-btn--disabled":f.value,"v-btn--elevated":z.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--stacked":e.stacked},o.value,l.value,M?r.value:void 0,b.value,I.value,R.value,x.value,_.value,C.value,m.value,e.class],style:[M?v.value:void 0,S.value,w.value,g.value,e.style],disabled:f.value||void 0,href:i.href.value,onClick:re,value:ue.value},{default:()=>{var K;return[De(!0,"v-btn"),!e.icon&&h&&s("span",{key:"prepend",class:"v-btn__prepend"},[a.prepend?s(N,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},a.prepend):s(T,{key:"prepend-icon",icon:e.prependIcon},null)]),s("span",{class:"v-btn__content","data-no-activator":""},[!a.default&&E?s(T,{key:"content-icon",icon:e.icon},null):s(N,{key:"content-defaults",disabled:!E,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var j;return[((j=a.default)==null?void 0:j.call(a))??e.text]}})]),!e.icon&&ce&&s("span",{key:"append",class:"v-btn__append"},[a.append?s(N,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},a.append):s(T,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&s("span",{key:"loader",class:"v-btn__loader"},[((K=a.loader)==null?void 0:K.call(a))??s(Ke,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[Le("ripple"),!f.value&&e.ripple,null]])}),{}}});export{qe as V,Ke as a,Je as b,Ue as m,Me as u}; diff --git a/src/front/dist/assets/VCarouselItem-31737456.js b/src/front/dist/assets/VCarouselItem-407ac450.js similarity index 74% rename from src/front/dist/assets/VCarouselItem-31737456.js rename to src/front/dist/assets/VCarouselItem-407ac450.js index a60892b32..82f4f1493 100644 --- a/src/front/dist/assets/VCarouselItem-31737456.js +++ b/src/front/dist/assets/VCarouselItem-407ac450.js @@ -1 +1 @@ -import{m as D,a as w,b as k,V as h}from"./VWindowItem-6073ee5e.js";import{p as I,a0 as B,a6 as y,a9 as x,a7 as T,r as S,w as g,o as F,ac as C,F as t,Z as N,ar as W,H as s,P as _,b as $,bK as p,aq as P}from"./index-09dc9553.js";import{V as A}from"./VBtn-61a8fe0f.js";const L=I({color:String,cycle:Boolean,delimiterIcon:{type:B,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...D({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),z=y()({name:"VCarousel",props:L(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const r=x(e,"modelValue"),{t:u}=T(),o=S();let c=-1;g(r,m),g(()=>e.interval,m),g(()=>e.cycle,d=>{d?m():window.clearTimeout(c)}),F(f);function f(){!e.cycle||!o.value||(c=window.setTimeout(o.value.group.next,+e.interval>0?+e.interval:6e3))}function m(){window.clearTimeout(c),window.requestAnimationFrame(f)}return C(()=>{const[d]=w.filterProps(e);return t(w,s({ref:o},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:$(e.height)},e.style]}),{default:a.default,additional:v=>{let{group:l}=v;return t(N,null,[!e.hideDelimiters&&t("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[l.items.value.length>0&&t(W,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[l.items.value.map((i,b)=>{const V={id:`carousel-item-${i.id}`,"aria-label":u("$vuetify.carousel.ariaLabel.delimiter",b+1,l.items.value.length),class:[l.isSelected(i.id)&&"v-btn--active"],onClick:()=>l.select(i.id,!0)};return a.item?a.item({props:V,item:i}):t(A,s(i,V),null)})]})]),e.progress&&t(_,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(l.getItemIndex(r.value)+1)/l.items.value.length*100},null)])},prev:a.prev,next:a.next})}),{}}}),q=I({...p(),...k()},"VCarouselItem"),H=y()({name:"VCarouselItem",inheritAttrs:!1,props:q(),setup(e,n){let{slots:a,attrs:r}=n;C(()=>{const[u]=P.filterProps(e),[o]=h.filterProps(e);return t(h,s({class:"v-carousel-item"},o),{default:()=>[t(P,s(r,u),a)]})})}});export{z as V,H as a}; +import{m as D,a as w,b as k,V as h}from"./VWindowItem-46132c15.js";import{p as I,a0 as B,a6 as y,a9 as x,a7 as T,r as S,w as g,o as F,ac as C,F as t,Z as L,ar as N,H as s,P as W,b as _,bL as $,aq as P}from"./index-cf33b3b8.js";import{V as p}from"./VBtn-11d9d7ef.js";const A=I({color:String,cycle:Boolean,delimiterIcon:{type:B,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...D({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),z=y()({name:"VCarousel",props:A(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const r=x(e,"modelValue"),{t:u}=T(),o=S();let c=-1;g(r,m),g(()=>e.interval,m),g(()=>e.cycle,d=>{d?m():window.clearTimeout(c)}),F(f);function f(){!e.cycle||!o.value||(c=window.setTimeout(o.value.group.next,+e.interval>0?+e.interval:6e3))}function m(){window.clearTimeout(c),window.requestAnimationFrame(f)}return C(()=>{const[d]=w.filterProps(e);return t(w,s({ref:o},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:_(e.height)},e.style]}),{default:a.default,additional:v=>{let{group:l}=v;return t(L,null,[!e.hideDelimiters&&t("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[l.items.value.length>0&&t(N,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[l.items.value.map((i,b)=>{const V={id:`carousel-item-${i.id}`,"aria-label":u("$vuetify.carousel.ariaLabel.delimiter",b+1,l.items.value.length),class:[l.isSelected(i.id)&&"v-btn--active"],onClick:()=>l.select(i.id,!0)};return a.item?a.item({props:V,item:i}):t(p,s(i,V),null)})]})]),e.progress&&t(W,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(l.getItemIndex(r.value)+1)/l.items.value.length*100},null)])},prev:a.prev,next:a.next})}),{}}}),q=I({...$(),...k()},"VCarouselItem"),H=y()({name:"VCarouselItem",inheritAttrs:!1,props:q(),setup(e,n){let{slots:a,attrs:r}=n;C(()=>{const[u]=P.filterProps(e),[o]=h.filterProps(e);return t(h,s({class:"v-carousel-item"},o),{default:()=>[t(P,s(r,u),a)]})})}});export{z as V,H as a}; diff --git a/src/front/dist/assets/VChip-ac1d8dc8.js b/src/front/dist/assets/VChip-1d3621e6.js similarity index 64% rename from src/front/dist/assets/VChip-ac1d8dc8.js rename to src/front/dist/assets/VChip-1d3621e6.js index f9a83d8fe..536f9fa3f 100644 --- a/src/front/dist/assets/VChip-ac1d8dc8.js +++ b/src/front/dist/assets/VChip-1d3621e6.js @@ -1 +1 @@ -import{p as E,bp as U,a1 as L,a4 as R,a5 as z,bj as F,a6 as T,a8 as w,ap as W,al as r,ac as Y,F as l,a0 as y,bC as _,ah as ee,a2 as ae,ai as le,aj as te,bD as ne,a3 as se,bu as ie,a7 as ce,am as de,bk as oe,bb as ue,an as re,ao as ve,bJ as fe,a9 as pe,bE as me,c as C,N as V,bv as x,bl as ke,V as v,ar as f,O as be,Z as D,bt as G,H as he}from"./index-09dc9553.js";import{a as ye,b as Ce,m as Ve,u as Ie,e as ge}from"./group-c7387df2.js";const O=Symbol.for("vuetify:v-chip-group"),Pe=E({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:U},...L(),...ye({selectedClass:"v-chip--selected"}),...R(),...z(),...F({variant:"tonal"})},"VChipGroup");T()({name:"VChipGroup",props:Pe(),emits:{"update:modelValue":e=>!0},setup(e,p){let{slots:c}=p;const{themeClasses:o}=w(e),{isSelected:t,select:m,next:k,prev:b,selected:h}=Ce(e,O);return W({VChip:{color:r(e,"color"),disabled:r(e,"disabled"),filter:r(e,"filter"),variant:r(e,"variant")}}),Y(()=>l(e.tag,{class:["v-chip-group",{"v-chip-group--column":e.column},o.value,e.class],style:e.style},{default:()=>{var u;return[(u=c.default)==null?void 0:u.call(c,{isSelected:t,select:m,next:k,prev:b,selected:h.value})]}})),{}}});const Se=E({activeClass:String,appendAvatar:String,appendIcon:y,closable:Boolean,closeIcon:{type:y,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:y,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:_(),onClickOnce:_(),...ee(),...L(),...ae(),...le(),...Ve(),...te(),...ne(),...se(),...R({tag:"span"}),...z(),...F({variant:"tonal"})},"VChip"),_e=T()({name:"VChip",directives:{Ripple:ie},props:Se(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,p){let{attrs:c,emit:o,slots:t}=p;const{t:m}=ce(),{borderClasses:k}=de(e),{colorClasses:b,colorStyles:h,variantClasses:u}=oe(e),{densityClasses:$}=ue(e),{elevationClasses:j}=re(e),{roundedClasses:M}=ve(e),{sizeClasses:K}=fe(e),{themeClasses:N}=w(e),I=pe(e,"modelValue"),a=Ie(e,O,!1),s=me(e,c),q=C(()=>e.link!==!1&&s.isLink.value),i=C(()=>!e.disabled&&e.link!==!1&&(!!a||e.link||s.isClickable.value)),H=C(()=>({"aria-label":m(e.closeLabel),onClick(n){I.value=!1,o("click:close",n)}}));function g(n){var d;o("click",n),i.value&&((d=s.navigate)==null||d.call(s,n),a==null||a.toggle())}function J(n){(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),g(n))}return()=>{const n=s.isLink.value?"a":e.tag,d=!!(e.appendIcon||e.appendAvatar),X=!!(d||t.append),Z=!!(t.close||e.closable),P=!!(t.filter||e.filter)&&a,S=!!(e.prependIcon||e.prependAvatar),Q=!!(S||t.prepend),A=!a||a.isSelected.value;return I.value&&V(l(n,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":i.value,"v-chip--filter":P,"v-chip--pill":e.pill},N.value,k.value,A?b.value:void 0,$.value,j.value,M.value,K.value,u.value,a==null?void 0:a.selectedClass.value,e.class],style:[A?h.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:s.href.value,tabindex:i.value?0:void 0,onClick:g,onKeydown:i.value&&!q.value&&J},{default:()=>{var B;return[ke(i.value,"v-chip"),P&&l(ge,{key:"filter"},{default:()=>[V(l("div",{class:"v-chip__filter"},[t.filter?V(l(f,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},null),[[x("slot"),t.filter,"default"]]):l(v,{key:"filter-icon",icon:e.filterIcon},null)]),[[be,a.isSelected.value]])]}),Q&&l("div",{key:"prepend",class:"v-chip__prepend"},[t.prepend?l(f,{key:"prepend-defaults",disabled:!S,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},t.prepend):l(D,null,[e.prependIcon&&l(v,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&l(G,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),l("div",{class:"v-chip__content"},[((B=t.default)==null?void 0:B.call(t,{isSelected:a==null?void 0:a.isSelected.value,selectedClass:a==null?void 0:a.selectedClass.value,select:a==null?void 0:a.select,toggle:a==null?void 0:a.toggle,value:a==null?void 0:a.value.value,disabled:e.disabled}))??e.text]),X&&l("div",{key:"append",class:"v-chip__append"},[t.append?l(f,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},t.append):l(D,null,[e.appendIcon&&l(v,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&l(G,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),Z&&l("div",he({key:"close",class:"v-chip__close"},H.value),[t.close?l(f,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},t.close):l(v,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[x("ripple"),i.value&&e.ripple,null]])}}});export{_e as V}; +import{p as E,bq as U,a1 as L,a4 as F,a5 as R,bk as w,a6 as z,a8 as T,ap as W,al as r,ac as Y,F as l,a0 as y,bD as _,ah as ee,a2 as ae,ai as le,aj as te,bE as ne,a3 as se,bv as ie,a7 as ce,am as de,bl as oe,bb as ue,an as re,ao as ve,bK as fe,a9 as me,bF as pe,c as C,N as V,bw as x,bm as ke,V as v,ar as f,O as be,Z as D,bu as G,H as he}from"./index-cf33b3b8.js";import{a as ye,b as Ce,m as Ve,u as Ie,e as ge}from"./group-2cdf27ee.js";const O=Symbol.for("vuetify:v-chip-group"),Pe=E({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:U},...L(),...ye({selectedClass:"v-chip--selected"}),...F(),...R(),...w({variant:"tonal"})},"VChipGroup");z()({name:"VChipGroup",props:Pe(),emits:{"update:modelValue":e=>!0},setup(e,m){let{slots:c}=m;const{themeClasses:o}=T(e),{isSelected:t,select:p,next:k,prev:b,selected:h}=Ce(e,O);return W({VChip:{color:r(e,"color"),disabled:r(e,"disabled"),filter:r(e,"filter"),variant:r(e,"variant")}}),Y(()=>l(e.tag,{class:["v-chip-group",{"v-chip-group--column":e.column},o.value,e.class],style:e.style},{default:()=>{var u;return[(u=c.default)==null?void 0:u.call(c,{isSelected:t,select:p,next:k,prev:b,selected:h.value})]}})),{}}});const Se=E({activeClass:String,appendAvatar:String,appendIcon:y,closable:Boolean,closeIcon:{type:y,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:y,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:_(),onClickOnce:_(),...ee(),...L(),...ae(),...le(),...Ve(),...te(),...ne(),...se(),...F({tag:"span"}),...R(),...w({variant:"tonal"})},"VChip"),_e=z()({name:"VChip",directives:{Ripple:ie},props:Se(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,m){let{attrs:c,emit:o,slots:t}=m;const{t:p}=ce(),{borderClasses:k}=de(e),{colorClasses:b,colorStyles:h,variantClasses:u}=oe(e),{densityClasses:$}=ue(e),{elevationClasses:K}=re(e),{roundedClasses:M}=ve(e),{sizeClasses:j}=fe(e),{themeClasses:q}=T(e),I=me(e,"modelValue"),a=Ie(e,O,!1),s=pe(e,c),N=C(()=>e.link!==!1&&s.isLink.value),i=C(()=>!e.disabled&&e.link!==!1&&(!!a||e.link||s.isClickable.value)),H=C(()=>({"aria-label":p(e.closeLabel),onClick(n){I.value=!1,o("click:close",n)}}));function g(n){var d;o("click",n),i.value&&((d=s.navigate)==null||d.call(s,n),a==null||a.toggle())}function X(n){(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),g(n))}return()=>{const n=s.isLink.value?"a":e.tag,d=!!(e.appendIcon||e.appendAvatar),Z=!!(d||t.append),J=!!(t.close||e.closable),P=!!(t.filter||e.filter)&&a,S=!!(e.prependIcon||e.prependAvatar),Q=!!(S||t.prepend),A=!a||a.isSelected.value;return I.value&&V(l(n,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":i.value,"v-chip--filter":P,"v-chip--pill":e.pill},q.value,k.value,A?b.value:void 0,$.value,K.value,M.value,j.value,u.value,a==null?void 0:a.selectedClass.value,e.class],style:[A?h.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:s.href.value,tabindex:i.value?0:void 0,onClick:g,onKeydown:i.value&&!N.value&&X},{default:()=>{var B;return[ke(i.value,"v-chip"),P&&l(ge,{key:"filter"},{default:()=>[V(l("div",{class:"v-chip__filter"},[t.filter?V(l(f,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},null),[[x("slot"),t.filter,"default"]]):l(v,{key:"filter-icon",icon:e.filterIcon},null)]),[[be,a.isSelected.value]])]}),Q&&l("div",{key:"prepend",class:"v-chip__prepend"},[t.prepend?l(f,{key:"prepend-defaults",disabled:!S,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},t.prepend):l(D,null,[e.prependIcon&&l(v,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&l(G,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),l("div",{class:"v-chip__content"},[((B=t.default)==null?void 0:B.call(t,{isSelected:a==null?void 0:a.isSelected.value,selectedClass:a==null?void 0:a.selectedClass.value,select:a==null?void 0:a.select,toggle:a==null?void 0:a.toggle,value:a==null?void 0:a.value.value,disabled:e.disabled}))??e.text]),Z&&l("div",{key:"append",class:"v-chip__append"},[t.append?l(f,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},t.append):l(D,null,[e.appendIcon&&l(v,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&l(G,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),J&&l("div",he({key:"close",class:"v-chip__close"},H.value),[t.close?l(f,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},t.close):l(v,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[x("ripple"),i.value&&e.ripple,null]])}}});export{_e as V}; diff --git a/src/front/dist/assets/VContainer-194cdd0e.js b/src/front/dist/assets/VContainer-a91b572b.js similarity index 82% rename from src/front/dist/assets/VContainer-194cdd0e.js rename to src/front/dist/assets/VContainer-a91b572b.js index 5a44f9a37..66042671b 100644 --- a/src/front/dist/assets/VContainer-194cdd0e.js +++ b/src/front/dist/assets/VContainer-a91b572b.js @@ -1 +1 @@ -import{p as n,a1 as o,a4 as r,a6 as l,ag as c,ac as i,F as u}from"./index-09dc9553.js";const m=n({fluid:{type:Boolean,default:!1},...o(),...r()},"VContainer"),C=l()({name:"VContainer",props:m(),setup(a,e){let{slots:s}=e;const{rtlClasses:t}=c();return i(()=>u(a.tag,{class:["v-container",{"v-container--fluid":a.fluid},t.value,a.class],style:a.style},s)),{}}});export{C as V}; +import{p as n,a1 as o,a4 as r,a6 as l,ag as c,ac as i,F as u}from"./index-cf33b3b8.js";const m=n({fluid:{type:Boolean,default:!1},...o(),...r()},"VContainer"),C=l()({name:"VContainer",props:m(),setup(a,e){let{slots:s}=e;const{rtlClasses:t}=c();return i(()=>u(a.tag,{class:["v-container",{"v-container--fluid":a.fluid},t.value,a.class],style:a.style},s)),{}}});export{C as V}; diff --git a/src/front/dist/assets/VInput-2f5042f3.js b/src/front/dist/assets/VInput-6b41ac51.js similarity index 58% rename from src/front/dist/assets/VInput-2f5042f3.js rename to src/front/dist/assets/VInput-6b41ac51.js index c9a3724cf..b20133b22 100644 --- a/src/front/dist/assets/VInput-2f5042f3.js +++ b/src/front/dist/assets/VInput-6b41ac51.js @@ -1 +1 @@ -import{p as B,a1 as w,bq as ee,a6 as R,c as i,ac as D,F as n,N as ae,O as ne,bB as le,a5 as te,a7 as ye,V as be,bQ as se,a9 as ie,bC as L,a0 as O,bR as he,aj as Ve,a8 as Ce,aV as ke,ao as Ie,ag as ue,h as Y,r as X,ak as pe,al as _e,b6 as re,w as E,bS as Se,b as xe,b7 as $e,aX as Pe,Z as Be,H as Fe,bT as Me,bH as Ae,b8 as Le,bf as Q,i as we,s as G,v as Re,t as De,l as Te,o as ze,as as J,z as Ee,a2 as Oe,bb as Ne}from"./index-09dc9553.js";import{f as oe,e as Ue}from"./group-c7387df2.js";const He=B({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...w(),...ee({transition:{component:oe}})},"VCounter"),ia=R()({name:"VCounter",functional:!0,props:He(),setup(e,u){let{slots:s}=u;const a=i(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return D(()=>n(le,{transition:e.transition},{default:()=>[ae(n("div",{class:["v-counter",e.class],style:e.style},[s.default?s.default({counter:a.value,max:e.max,value:e.value}):a.value]),[[ne,e.active]])]})),{}}});const je=B({text:String,clickable:Boolean,...w(),...te()},"VLabel"),qe=R()({name:"VLabel",props:je(),setup(e,u){let{slots:s}=u;return D(()=>{var a;return n("label",{class:["v-label",{"v-label--clickable":e.clickable},e.class],style:e.style},[e.text,(a=s.default)==null?void 0:a.call(s)])}),{}}}),Ke=B({floating:Boolean,...w()},"VFieldLabel"),W=R()({name:"VFieldLabel",props:Ke(),setup(e,u){let{slots:s}=u;return D(()=>n(qe,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},s)),{}}});function de(e){const{t:u}=ye();function s(a){let{name:l}=a;const t={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[l],o=e[`onClick:${l}`],c=o&&t?u(`$vuetify.input.${t}`,e.label??""):void 0;return n(be,{icon:e[`${l}Icon`],"aria-label":c,onClick:o},null)}return{InputIcon:s}}const ce=B({focused:Boolean,"onUpdate:focused":L()},"focus");function We(e){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se();const s=ie(e,"focused"),a=i(()=>({[`${u}--focused`]:s.value}));function l(){s.value=!0}function t(){s.value=!1}return{focusClasses:a,isFocused:s,focus:l,blur:t}}const Xe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Qe=B({appendInnerIcon:O,bgColor:String,clearable:Boolean,clearIcon:{type:O,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:O,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>Xe.includes(e)},"onClick:clear":L(),"onClick:appendInner":L(),"onClick:prependInner":L(),...w(),...he(),...Ve(),...te()},"VField"),Ye=R()({name:"VField",inheritAttrs:!1,props:{id:String,...ce(),...Qe()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,u){let{attrs:s,emit:a,slots:l}=u;const{themeClasses:t}=Ce(e),{loaderClasses:o}=ke(e),{focusClasses:c,isFocused:F,focus:k,blur:x}=We(e),{InputIcon:b}=de(e),{roundedClasses:I}=Ie(e),{rtlClasses:p}=ue(),h=i(()=>e.dirty||e.active),_=i(()=>!e.singleLine&&!!(e.label||l.label)),$=Y(),f=i(()=>e.id||`input-${$}`),P=i(()=>`${f.value}-messages`),v=X(),r=X(),d=X(),m=i(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:T,backgroundColorStyles:g}=pe(_e(e,"bgColor")),{textColorClasses:N,textColorStyles:U}=re(i(()=>e.error||e.disabled?void 0:h.value&&F.value?e.color:e.baseColor));E(h,S=>{if(_.value){const y=v.value.$el,V=r.value.$el;requestAnimationFrame(()=>{const M=Se(y),C=V.getBoundingClientRect(),j=C.x-M.x,q=C.y-M.y-(M.height/2-C.height/2),z=C.width/.75,K=Math.abs(z-M.width)>1?{maxWidth:xe(z)}:void 0,ve=getComputedStyle(y),Z=getComputedStyle(V),fe=parseFloat(ve.transitionDuration)*1e3||150,ge=parseFloat(Z.getPropertyValue("--v-field-label-scale")),me=Z.getPropertyValue("color");y.style.visibility="visible",V.style.visibility="hidden",$e(y,{transform:`translate(${j}px, ${q}px) scale(${ge})`,color:me,...K},{duration:fe,easing:Le,direction:S?"normal":"reverse"}).finished.then(()=>{y.style.removeProperty("visibility"),V.style.removeProperty("visibility")})})}},{flush:"post"});const A=i(()=>({isActive:h,isFocused:F,controlRef:d,blur:x,focus:k}));function H(S){S.target!==document.activeElement&&S.preventDefault()}return D(()=>{var j,q,z;const S=e.variant==="outlined",y=l["prepend-inner"]||e.prependInnerIcon,V=!!(e.clearable||l.clear),M=!!(l["append-inner"]||e.appendInnerIcon||V),C=l.label?l.label({...A.value,label:e.label,props:{for:f.value}}):e.label;return n("div",Fe({class:["v-field",{"v-field--active":h.value,"v-field--appended":M,"v-field--center-affix":e.centerAffix??!m.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":y,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!C,[`v-field--variant-${e.variant}`]:!0},t.value,T.value,c.value,o.value,I.value,p.value,e.class],style:[g.value,U.value,e.style],onClick:H},s),[n("div",{class:"v-field__overlay"},null),n(Pe,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:l.loader}),y&&n("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&n(b,{key:"prepend-icon",name:"prependInner"},null),(j=l["prepend-inner"])==null?void 0:j.call(l,A.value)]),n("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&_.value&&n(W,{key:"floating-label",ref:r,class:[N.value],floating:!0,for:f.value},{default:()=>[C]}),n(W,{ref:v,for:f.value},{default:()=>[C]}),(q=l.default)==null?void 0:q.call(l,{...A.value,props:{id:f.value,class:"v-field__input","aria-describedby":P.value},focus:k,blur:x})]),V&&n(Ue,{key:"clear"},{default:()=>[ae(n("div",{class:"v-field__clearable",onMousedown:K=>{K.preventDefault(),K.stopPropagation()}},[l.clear?l.clear():n(b,{name:"clear"},null)]),[[ne,e.dirty]])]}),M&&n("div",{key:"append",class:"v-field__append-inner"},[(z=l["append-inner"])==null?void 0:z.call(l,A.value),e.appendInnerIcon&&n(b,{key:"append-icon",name:"appendInner"},null)]),n("div",{class:["v-field__outline",N.value]},[S&&n(Be,null,[n("div",{class:"v-field__outline__start"},null),_.value&&n("div",{class:"v-field__outline__notch"},[n(W,{ref:r,floating:!0,for:f.value},{default:()=>[C]})]),n("div",{class:"v-field__outline__end"},null)]),m.value&&_.value&&n(W,{ref:r,floating:!0,for:f.value},{default:()=>[C]})])])}),{controlRef:d}}});function ua(e){const u=Object.keys(Ye.props).filter(s=>!Me(s)&&s!=="class"&&s!=="style");return Ae(e,u)}const Ze=B({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...w(),...ee({transition:{component:oe,leaveAbsolute:!0,group:!0}})},"VMessages"),Ge=R()({name:"VMessages",props:Ze(),setup(e,u){let{slots:s}=u;const a=i(()=>Q(e.messages)),{textColorClasses:l,textColorStyles:t}=re(i(()=>e.color));return D(()=>n(le,{transition:e.transition,tag:"div",class:["v-messages",l.value,e.class],style:[t.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&a.value.map((o,c)=>n("div",{class:"v-messages__message",key:`${c}-${a.value}`},[s.message?s.message({message:o}):o]))]})),{}}}),Je=Symbol.for("vuetify:form");function ea(){return we(Je,null)}const aa=B({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...ce()},"validation");function na(e){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se(),s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Y();const a=ie(e,"modelValue"),l=i(()=>e.validationValue===void 0?a.value:e.validationValue),t=ea(),o=X([]),c=G(!0),F=i(()=>!!(Q(a.value===""?null:a.value).length||Q(l.value===""?null:l.value).length)),k=i(()=>!!(e.disabled??(t==null?void 0:t.isDisabled.value))),x=i(()=>!!(e.readonly??(t==null?void 0:t.isReadonly.value))),b=i(()=>e.errorMessages.length?Q(e.errorMessages).slice(0,Math.max(0,+e.maxErrors)):o.value),I=i(()=>{let r=(e.validateOn??(t==null?void 0:t.validateOn.value))||"input";r==="lazy"&&(r="input lazy");const d=new Set((r==null?void 0:r.split(" "))??[]);return{blur:d.has("blur")||d.has("input"),input:d.has("input"),submit:d.has("submit"),lazy:d.has("lazy")}}),p=i(()=>e.error||e.errorMessages.length?!1:e.rules.length?c.value?o.value.length||I.value.lazy?null:!0:!o.value.length:!0),h=G(!1),_=i(()=>({[`${u}--error`]:p.value===!1,[`${u}--dirty`]:F.value,[`${u}--disabled`]:k.value,[`${u}--readonly`]:x.value})),$=i(()=>e.name??Re(s));De(()=>{t==null||t.register({id:$.value,validate:v,reset:f,resetValidation:P})}),Te(()=>{t==null||t.unregister($.value)}),ze(async()=>{I.value.lazy||await v(!0),t==null||t.update($.value,p.value,b.value)}),J(()=>I.value.input,()=>{E(l,()=>{if(l.value!=null)v();else if(e.focused){const r=E(()=>e.focused,d=>{d||v(),r()})}})}),J(()=>I.value.blur,()=>{E(()=>e.focused,r=>{r||v()})}),E(p,()=>{t==null||t.update($.value,p.value,b.value)});function f(){a.value=null,Ee(P)}function P(){c.value=!0,I.value.lazy?o.value=[]:v(!0)}async function v(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const d=[];h.value=!0;for(const m of e.rules){if(d.length>=+(e.maxErrors??1))break;const g=await(typeof m=="function"?m:()=>m)(l.value);if(g!==!0){if(g!==!1&&typeof g!="string"){console.warn(`${g} is not a valid value. Rule functions must return boolean true or a string.`);continue}d.push(g||"")}}return o.value=d,h.value=!1,c.value=r,o.value}return{errorMessages:b,isDirty:F,isDisabled:k,isReadonly:x,isPristine:c,isValid:p,isValidating:h,reset:f,resetValidation:P,validate:v,validationClasses:_}}const la=B({id:String,appendIcon:O,centerAffix:{type:Boolean,default:!0},prependIcon:O,hideDetails:[Boolean,String],hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":L(),"onClick:append":L(),...w(),...Oe(),...aa()},"VInput"),ra=R()({name:"VInput",props:{...la()},emits:{"update:modelValue":e=>!0},setup(e,u){let{attrs:s,slots:a,emit:l}=u;const{densityClasses:t}=Ne(e),{rtlClasses:o}=ue(),{InputIcon:c}=de(e),F=Y(),k=i(()=>e.id||`input-${F}`),x=i(()=>`${k.value}-messages`),{errorMessages:b,isDirty:I,isDisabled:p,isReadonly:h,isPristine:_,isValid:$,isValidating:f,reset:P,resetValidation:v,validate:r,validationClasses:d}=na(e,"v-input",k),m=i(()=>({id:k,messagesId:x,isDirty:I,isDisabled:p,isReadonly:h,isPristine:_,isValid:$,isValidating:f,reset:P,resetValidation:v,validate:r})),T=i(()=>{var g;return(g=e.errorMessages)!=null&&g.length||!_.value&&b.value.length?b.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return D(()=>{var H,S,y,V;const g=!!(a.prepend||e.prependIcon),N=!!(a.append||e.appendIcon),U=T.value.length>0,A=!e.hideDetails||e.hideDetails==="auto"&&(U||!!a.details);return n("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix},t.value,o.value,d.value,e.class],style:e.style},[g&&n("div",{key:"prepend",class:"v-input__prepend"},[(H=a.prepend)==null?void 0:H.call(a,m.value),e.prependIcon&&n(c,{key:"prepend-icon",name:"prepend"},null)]),a.default&&n("div",{class:"v-input__control"},[(S=a.default)==null?void 0:S.call(a,m.value)]),N&&n("div",{key:"append",class:"v-input__append"},[e.appendIcon&&n(c,{key:"append-icon",name:"append"},null),(y=a.append)==null?void 0:y.call(a,m.value)]),A&&n("div",{class:"v-input__details"},[n(Ge,{id:x.value,active:U,messages:T.value},{message:a.message}),(V=a.details)==null?void 0:V.call(a,m.value)])])}),{reset:P,resetValidation:v,validate:r}}});export{ra as V,Qe as a,Ye as b,ia as c,ea as d,qe as e,ua as f,la as m,We as u}; +import{p as B,a1 as w,br as ee,a6 as D,c as i,ac as R,F as n,N as ae,O as ne,bC as le,a5 as te,a7 as ye,V as be,bR as se,a9 as ie,bD as L,a0 as O,bS as he,aj as Ve,a8 as Ce,aV as Ie,ao as ke,ag as ue,h as Z,r as q,ak as pe,al as _e,b6 as re,w as E,bT as Se,b as xe,b7 as $e,aX as Pe,Z as Be,H as Fe,bU as Me,bI as Ae,b8 as Le,bf as Y,i as we,s as J,v as De,t as Re,l as Te,o as ze,as as Q,z as Ee,a2 as Oe,bb as Ne}from"./index-cf33b3b8.js";import{f as oe,e as Ue}from"./group-2cdf27ee.js";const je=B({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...w(),...ee({transition:{component:oe}})},"VCounter"),ia=D()({name:"VCounter",functional:!0,props:je(),setup(e,u){let{slots:s}=u;const a=i(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return R(()=>n(le,{transition:e.transition},{default:()=>[ae(n("div",{class:["v-counter",e.class],style:e.style},[s.default?s.default({counter:a.value,max:e.max,value:e.value}):a.value]),[[ne,e.active]])]})),{}}});const He=B({text:String,clickable:Boolean,...w(),...te()},"VLabel"),Ke=D()({name:"VLabel",props:He(),setup(e,u){let{slots:s}=u;return R(()=>{var a;return n("label",{class:["v-label",{"v-label--clickable":e.clickable},e.class],style:e.style},[e.text,(a=s.default)==null?void 0:a.call(s)])}),{}}}),We=B({floating:Boolean,...w()},"VFieldLabel"),X=D()({name:"VFieldLabel",props:We(),setup(e,u){let{slots:s}=u;return R(()=>n(Ke,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},s)),{}}});function de(e){const{t:u}=ye();function s(a){let{name:l}=a;const t={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[l],o=e[`onClick:${l}`],c=o&&t?u(`$vuetify.input.${t}`,e.label??""):void 0;return n(be,{icon:e[`${l}Icon`],"aria-label":c,onClick:o},null)}return{InputIcon:s}}const ce=B({focused:Boolean,"onUpdate:focused":L()},"focus");function Xe(e){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se();const s=ie(e,"focused"),a=i(()=>({[`${u}--focused`]:s.value}));function l(){s.value=!0}function t(){s.value=!1}return{focusClasses:a,isFocused:s,focus:l,blur:t}}const qe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Ye=B({appendInnerIcon:O,bgColor:String,clearable:Boolean,clearIcon:{type:O,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:O,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>qe.includes(e)},"onClick:clear":L(),"onClick:appendInner":L(),"onClick:prependInner":L(),...w(),...he(),...Ve(),...te()},"VField"),Ze=D()({name:"VField",inheritAttrs:!1,props:{id:String,...ce(),...Ye()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,u){let{attrs:s,emit:a,slots:l}=u;const{themeClasses:t}=Ce(e),{loaderClasses:o}=Ie(e),{focusClasses:c,isFocused:F,focus:I,blur:x}=Xe(e),{InputIcon:b}=de(e),{roundedClasses:k}=ke(e),{rtlClasses:p}=ue(),h=i(()=>e.dirty||e.active),_=i(()=>!e.singleLine&&!!(e.label||l.label)),$=Z(),f=i(()=>e.id||`input-${$}`),P=i(()=>`${f.value}-messages`),v=q(),r=q(),d=q(),m=i(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:T,backgroundColorStyles:g}=pe(_e(e,"bgColor")),{textColorClasses:N,textColorStyles:U}=re(i(()=>e.error||e.disabled?void 0:h.value&&F.value?e.color:e.baseColor));E(h,S=>{if(_.value){const y=v.value.$el,V=r.value.$el;requestAnimationFrame(()=>{const M=Se(y),C=V.getBoundingClientRect(),H=C.x-M.x,K=C.y-M.y-(M.height/2-C.height/2),z=C.width/.75,W=Math.abs(z-M.width)>1?{maxWidth:xe(z)}:void 0,ve=getComputedStyle(y),G=getComputedStyle(V),fe=parseFloat(ve.transitionDuration)*1e3||150,ge=parseFloat(G.getPropertyValue("--v-field-label-scale")),me=G.getPropertyValue("color");y.style.visibility="visible",V.style.visibility="hidden",$e(y,{transform:`translate(${H}px, ${K}px) scale(${ge})`,color:me,...W},{duration:fe,easing:Le,direction:S?"normal":"reverse"}).finished.then(()=>{y.style.removeProperty("visibility"),V.style.removeProperty("visibility")})})}},{flush:"post"});const A=i(()=>({isActive:h,isFocused:F,controlRef:d,blur:x,focus:I}));function j(S){S.target!==document.activeElement&&S.preventDefault()}return R(()=>{var H,K,z;const S=e.variant==="outlined",y=l["prepend-inner"]||e.prependInnerIcon,V=!!(e.clearable||l.clear),M=!!(l["append-inner"]||e.appendInnerIcon||V),C=l.label?l.label({...A.value,label:e.label,props:{for:f.value}}):e.label;return n("div",Fe({class:["v-field",{"v-field--active":h.value,"v-field--appended":M,"v-field--center-affix":e.centerAffix??!m.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":y,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!C,[`v-field--variant-${e.variant}`]:!0},t.value,T.value,c.value,o.value,k.value,p.value,e.class],style:[g.value,U.value,e.style],onClick:j},s),[n("div",{class:"v-field__overlay"},null),n(Pe,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:l.loader}),y&&n("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&n(b,{key:"prepend-icon",name:"prependInner"},null),(H=l["prepend-inner"])==null?void 0:H.call(l,A.value)]),n("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&_.value&&n(X,{key:"floating-label",ref:r,class:[N.value],floating:!0,for:f.value},{default:()=>[C]}),n(X,{ref:v,for:f.value},{default:()=>[C]}),(K=l.default)==null?void 0:K.call(l,{...A.value,props:{id:f.value,class:"v-field__input","aria-describedby":P.value},focus:I,blur:x})]),V&&n(Ue,{key:"clear"},{default:()=>[ae(n("div",{class:"v-field__clearable",onMousedown:W=>{W.preventDefault(),W.stopPropagation()}},[l.clear?l.clear():n(b,{name:"clear"},null)]),[[ne,e.dirty]])]}),M&&n("div",{key:"append",class:"v-field__append-inner"},[(z=l["append-inner"])==null?void 0:z.call(l,A.value),e.appendInnerIcon&&n(b,{key:"append-icon",name:"appendInner"},null)]),n("div",{class:["v-field__outline",N.value]},[S&&n(Be,null,[n("div",{class:"v-field__outline__start"},null),_.value&&n("div",{class:"v-field__outline__notch"},[n(X,{ref:r,floating:!0,for:f.value},{default:()=>[C]})]),n("div",{class:"v-field__outline__end"},null)]),m.value&&_.value&&n(X,{ref:r,floating:!0,for:f.value},{default:()=>[C]})])])}),{controlRef:d}}});function ua(e){const u=Object.keys(Ze.props).filter(s=>!Me(s)&&s!=="class"&&s!=="style");return Ae(e,u)}const Ge=B({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...w(),...ee({transition:{component:oe,leaveAbsolute:!0,group:!0}})},"VMessages"),Je=D()({name:"VMessages",props:Ge(),setup(e,u){let{slots:s}=u;const a=i(()=>Y(e.messages)),{textColorClasses:l,textColorStyles:t}=re(i(()=>e.color));return R(()=>n(le,{transition:e.transition,tag:"div",class:["v-messages",l.value,e.class],style:[t.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&a.value.map((o,c)=>n("div",{class:"v-messages__message",key:`${c}-${a.value}`},[s.message?s.message({message:o}):o]))]})),{}}}),Qe=Symbol.for("vuetify:form");function ea(){return we(Qe,null)}const aa=B({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...ce()},"validation");function na(e){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se(),s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Z();const a=ie(e,"modelValue"),l=i(()=>e.validationValue===void 0?a.value:e.validationValue),t=ea(),o=q([]),c=J(!0),F=i(()=>!!(Y(a.value===""?null:a.value).length||Y(l.value===""?null:l.value).length)),I=i(()=>!!(e.disabled??(t==null?void 0:t.isDisabled.value))),x=i(()=>!!(e.readonly??(t==null?void 0:t.isReadonly.value))),b=i(()=>e.errorMessages.length?Y(e.errorMessages).slice(0,Math.max(0,+e.maxErrors)):o.value),k=i(()=>{let r=(e.validateOn??(t==null?void 0:t.validateOn.value))||"input";r==="lazy"&&(r="input lazy");const d=new Set((r==null?void 0:r.split(" "))??[]);return{blur:d.has("blur")||d.has("input"),input:d.has("input"),submit:d.has("submit"),lazy:d.has("lazy")}}),p=i(()=>e.error||e.errorMessages.length?!1:e.rules.length?c.value?o.value.length||k.value.lazy?null:!0:!o.value.length:!0),h=J(!1),_=i(()=>({[`${u}--error`]:p.value===!1,[`${u}--dirty`]:F.value,[`${u}--disabled`]:I.value,[`${u}--readonly`]:x.value})),$=i(()=>e.name??De(s));Re(()=>{t==null||t.register({id:$.value,validate:v,reset:f,resetValidation:P})}),Te(()=>{t==null||t.unregister($.value)}),ze(async()=>{k.value.lazy||await v(!0),t==null||t.update($.value,p.value,b.value)}),Q(()=>k.value.input,()=>{E(l,()=>{if(l.value!=null)v();else if(e.focused){const r=E(()=>e.focused,d=>{d||v(),r()})}})}),Q(()=>k.value.blur,()=>{E(()=>e.focused,r=>{r||v()})}),E(p,()=>{t==null||t.update($.value,p.value,b.value)});function f(){a.value=null,Ee(P)}function P(){c.value=!0,k.value.lazy?o.value=[]:v(!0)}async function v(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const d=[];h.value=!0;for(const m of e.rules){if(d.length>=+(e.maxErrors??1))break;const g=await(typeof m=="function"?m:()=>m)(l.value);if(g!==!0){if(g!==!1&&typeof g!="string"){console.warn(`${g} is not a valid value. Rule functions must return boolean true or a string.`);continue}d.push(g||"")}}return o.value=d,h.value=!1,c.value=r,o.value}return{errorMessages:b,isDirty:F,isDisabled:I,isReadonly:x,isPristine:c,isValid:p,isValidating:h,reset:f,resetValidation:P,validate:v,validationClasses:_}}const la=B({id:String,appendIcon:O,centerAffix:{type:Boolean,default:!0},prependIcon:O,hideDetails:[Boolean,String],hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":L(),"onClick:append":L(),...w(),...Oe(),...aa()},"VInput"),ra=D()({name:"VInput",props:{...la()},emits:{"update:modelValue":e=>!0},setup(e,u){let{attrs:s,slots:a,emit:l}=u;const{densityClasses:t}=Ne(e),{rtlClasses:o}=ue(),{InputIcon:c}=de(e),F=Z(),I=i(()=>e.id||`input-${F}`),x=i(()=>`${I.value}-messages`),{errorMessages:b,isDirty:k,isDisabled:p,isReadonly:h,isPristine:_,isValid:$,isValidating:f,reset:P,resetValidation:v,validate:r,validationClasses:d}=na(e,"v-input",I),m=i(()=>({id:I,messagesId:x,isDirty:k,isDisabled:p,isReadonly:h,isPristine:_,isValid:$,isValidating:f,reset:P,resetValidation:v,validate:r})),T=i(()=>{var g;return(g=e.errorMessages)!=null&&g.length||!_.value&&b.value.length?b.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return R(()=>{var j,S,y,V;const g=!!(a.prepend||e.prependIcon),N=!!(a.append||e.appendIcon),U=T.value.length>0,A=!e.hideDetails||e.hideDetails==="auto"&&(U||!!a.details);return n("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix},t.value,o.value,d.value,e.class],style:e.style},[g&&n("div",{key:"prepend",class:"v-input__prepend"},[(j=a.prepend)==null?void 0:j.call(a,m.value),e.prependIcon&&n(c,{key:"prepend-icon",name:"prepend"},null)]),a.default&&n("div",{class:"v-input__control"},[(S=a.default)==null?void 0:S.call(a,m.value)]),N&&n("div",{key:"append",class:"v-input__append"},[e.appendIcon&&n(c,{key:"append-icon",name:"append"},null),(y=a.append)==null?void 0:y.call(a,m.value)]),A&&n("div",{class:"v-input__details"},[n(Je,{id:x.value,active:U,messages:T.value},{message:a.message}),(V=a.details)==null?void 0:V.call(a,m.value)])])}),{reset:P,resetValidation:v,validate:r}}});export{ra as V,Ye as a,Ze as b,ia as c,ea as d,Ke as e,ua as f,la as m,Xe as u}; diff --git a/src/front/dist/assets/VList-0b9b232e.js b/src/front/dist/assets/VList-30a0199c.js similarity index 92% rename from src/front/dist/assets/VList-0b9b232e.js rename to src/front/dist/assets/VList-30a0199c.js index 6c5cd38fa..69c037d6f 100644 --- a/src/front/dist/assets/VList-0b9b232e.js +++ b/src/front/dist/assets/VList-30a0199c.js @@ -1 +1 @@ -import{p as A,bc as Qe,br as Xe,a6 as D,a9 as Q,ax as Ye,r as x,b9 as et,w as re,c as g,H as O,ac as _,bd as ye,F as u,ar as X,be as Ie,z as oe,ba as tt,bx as nt,aW as at,N as ce,bv as Pe,Z as N,by as lt,bh as it,a1 as q,a5 as de,a8 as ve,b6 as xe,al as P,b as be,i as Y,s as W,e as ee,bz as $,l as we,d as st,h as rt,bA as ot,a0 as G,a4 as te,bB as ut,O as ct,bi as Ae,bC as he,ah as Le,a2 as Be,aH as Fe,ai as De,aj as Te,bD as dt,bj as Oe,bu as vt,bE as ft,am as _e,bk as mt,bb as Ee,aK as Me,an as Re,ao as Ne,bF as gt,bl as yt,bt as Se,V as pe,bp as bt,bG as B,bH as Ge,ak as ht,ap as St,bI as pt}from"./index-09dc9553.js";import{u as Vt}from"./VTextarea-20d645b1.js";import{m as Ct,a as kt,u as It,V as Ve,f as Pt,b as xt,c as wt}from"./VInput-2f5042f3.js";import{V as At}from"./group-c7387df2.js";const Lt=A({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Qe({origin:"center center",scrollStrategy:"block",transition:{component:Xe},zIndex:2400})},"VDialog"),rn=D()({name:"VDialog",props:Lt(),emits:{"update:modelValue":e=>!0},setup(e,i){let{slots:t}=i;const n=Q(e,"modelValue"),{scopeId:l}=Ye(),a=x();function s(y){var r,c;const f=y.relatedTarget,m=y.target;if(f!==m&&((r=a.value)!=null&&r.contentEl)&&((c=a.value)!=null&&c.globalTop)&&![document,a.value.contentEl].includes(m)&&!a.value.contentEl.contains(m)){const d=tt(a.value.contentEl);if(!d.length)return;const v=d[0],b=d[d.length-1];f===v?b.focus():v.focus()}}et&&re(()=>n.value&&e.retainFocus,y=>{y?document.addEventListener("focusin",s):document.removeEventListener("focusin",s)},{immediate:!0}),re(n,async y=>{var f,m;await oe(),y?(f=a.value.contentEl)==null||f.focus({preventScroll:!0}):(m=a.value.activatorEl)==null||m.focus({preventScroll:!0})});const o=g(()=>O({"aria-haspopup":"dialog","aria-expanded":String(n.value)},e.activatorProps));return _(()=>{const[y]=ye.filterProps(e);return u(ye,O({ref:a,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},y,{modelValue:n.value,"onUpdate:modelValue":f=>n.value=f,"aria-modal":"true",activatorProps:o.value,role:"dialog"},l),{activator:t.activator,default:function(){for(var f=arguments.length,m=new Array(f),r=0;r{var c;return[(c=t.default)==null?void 0:c.call(t,...m)]}})}})}),Ie({},a)}}),Bt=["color","file","time","date","datetime-local","week","month"],Ft=A({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,type:{type:String,default:"text"},modelModifiers:Object,...Ct(),...kt()},"VTextField"),on=D()({name:"VTextField",directives:{Intersect:nt},inheritAttrs:!1,props:Ft(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,i){let{attrs:t,emit:n,slots:l}=i;const a=Q(e,"modelValue"),{isFocused:s,focus:o,blur:y}=It(e),f=g(()=>typeof e.counterValue=="function"?e.counterValue(a.value):(a.value??"").toString().length),m=g(()=>{if(t.maxlength)return t.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),r=g(()=>["plain","underlined"].includes(e.variant));function c(S,I){var C,p;!e.autofocus||!S||(p=(C=I[0].target)==null?void 0:C.focus)==null||p.call(C)}const d=x(),v=x(),b=x(),h=g(()=>Bt.includes(e.type)||e.persistentPlaceholder||s.value||e.active);function k(){var S;b.value!==document.activeElement&&((S=b.value)==null||S.focus()),s.value||o()}function F(S){n("mousedown:control",S),S.target!==b.value&&(k(),S.preventDefault())}function L(S){k(),n("click:control",S)}function j(S){S.stopPropagation(),k(),oe(()=>{a.value=null,it(e["onClick:clear"],S)})}function H(S){var C;const I=S.target;if(a.value=I.value,(C=e.modelModifiers)!=null&&C.trim&&["text","search","password","tel","url"].includes(e.type)){const p=[I.selectionStart,I.selectionEnd];oe(()=>{I.selectionStart=p[0],I.selectionEnd=p[1]})}}return _(()=>{const S=!!(l.counter||e.counter||e.counterValue),I=!!(S||l.details),[C,p]=at(t),[{modelValue:U,...ne}]=Ve.filterProps(e),[ae]=Pt(e);return u(Ve,O({ref:d,modelValue:a.value,"onUpdate:modelValue":T=>a.value=T,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-text-field--plain-underlined":["plain","underlined"].includes(e.variant)},e.class],style:e.style},C,ne,{centerAffix:!r.value,focused:s.value}),{...l,default:T=>{let{id:E,isDisabled:M,isDirty:K,isReadonly:le,isValid:V}=T;return u(xt,O({ref:v,onMousedown:F,onClick:L,"onClick:clear":j,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:"textbox"},ae,{id:E.value,active:h.value||K.value,dirty:K.value||e.dirty,disabled:M.value,focused:s.value,error:V.value===!1}),{...l,default:R=>{let{props:{class:ie,...Z}}=R;const J=ce(u("input",O({ref:b,value:a.value,onInput:H,autofocus:e.autofocus,readonly:le.value,disabled:M.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:k,onBlur:y},Z,p),null),[[Pe("intersect"),{handler:c},null,{once:!0}]]);return u(N,null,[e.prefix&&u("span",{class:"v-text-field__prefix"},[u("span",{class:"v-text-field__prefix__text"},[e.prefix])]),u("div",{class:ie,"data-no-activator":""},[l.default?u(N,null,[l.default(),J]):lt(J)]),e.suffix&&u("span",{class:"v-text-field__suffix"},[u("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:I?T=>{var E;return u(N,null,[(E=l.details)==null?void 0:E.call(l,T),S&&u(N,null,[u("span",null,null),u(wt,{active:e.persistentCounter||s.value,value:f.value,max:m.value},l.counter)])])}:void 0})}),Ie({},d,v,b)}});const Dt=A({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...q(),...de()},"VDivider"),Tt=D()({name:"VDivider",props:Dt(),setup(e,i){let{attrs:t}=i;const{themeClasses:n}=ve(e),{textColorClasses:l,textColorStyles:a}=xe(P(e,"color")),s=g(()=>{const o={};return e.length&&(o[e.vertical?"maxHeight":"maxWidth"]=be(e.length)),e.thickness&&(o[e.vertical?"borderRightWidth":"borderTopWidth"]=be(e.thickness)),o});return _(()=>u("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},n.value,l.value,e.class],style:[s.value,a.value,e.style],"aria-orientation":!t.role||t.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${t.role||"separator"}`},null)),{}}});const ue=Symbol.for("vuetify:list");function $e(){const e=Y(ue,{hasPrepend:W(!1),updateHasPrepend:()=>null}),i={hasPrepend:W(!1),updateHasPrepend:t=>{t&&(i.hasPrepend.value=t)}};return ee(ue,i),e}function je(){return Y(ue,null)}const Ot={open:e=>{let{id:i,value:t,opened:n,parents:l}=e;if(t){const a=new Set;a.add(i);let s=l.get(i);for(;s!=null;)a.add(s),s=l.get(s);return a}else return n.delete(i),n},select:()=>null},He={open:e=>{let{id:i,value:t,opened:n,parents:l}=e;if(t){let a=l.get(i);for(n.add(i);a!=null&&a!==i;)n.add(a),a=l.get(a);return n}else n.delete(i);return n},select:()=>null},_t={open:He.open,select:e=>{let{id:i,value:t,opened:n,parents:l}=e;if(!t)return n;const a=[];let s=l.get(i);for(;s!=null;)a.push(s),s=l.get(s);return new Set(a)}},fe=e=>{const i={select:t=>{let{id:n,value:l,selected:a}=t;if(n=$(n),e&&!l){const s=Array.from(a.entries()).reduce((o,y)=>{let[f,m]=y;return m==="on"?[...o,f]:o},[]);if(s.length===1&&s[0]===n)return a}return a.set(n,l?"on":"off"),a},in:(t,n,l)=>{let a=new Map;for(const s of t||[])a=i.select({id:s,value:!0,selected:new Map(a),children:n,parents:l});return a},out:t=>{const n=[];for(const[l,a]of t.entries())a==="on"&&n.push(l);return n}};return i},Ue=e=>{const i=fe(e);return{select:n=>{let{selected:l,id:a,...s}=n;a=$(a);const o=l.has(a)?new Map([[a,l.get(a)]]):new Map;return i.select({...s,id:a,selected:o})},in:(n,l,a)=>{let s=new Map;return n!=null&&n.length&&(s=i.in(n.slice(0,1),l,a)),s},out:(n,l,a)=>i.out(n,l,a)}},Et=e=>{const i=fe(e);return{select:n=>{let{id:l,selected:a,children:s,...o}=n;return l=$(l),s.has(l)?a:i.select({id:l,selected:a,children:s,...o})},in:i.in,out:i.out}},Mt=e=>{const i=Ue(e);return{select:n=>{let{id:l,selected:a,children:s,...o}=n;return l=$(l),s.has(l)?a:i.select({id:l,selected:a,children:s,...o})},in:i.in,out:i.out}},Rt=e=>{const i={select:t=>{let{id:n,value:l,selected:a,children:s,parents:o}=t;n=$(n);const y=new Map(a),f=[n];for(;f.length;){const r=f.shift();a.set(r,l?"on":"off"),s.has(r)&&f.push(...s.get(r))}let m=o.get(n);for(;m;){const r=s.get(m),c=r.every(v=>a.get(v)==="on"),d=r.every(v=>!a.has(v)||a.get(v)==="off");a.set(m,c?"on":d?"off":"indeterminate"),m=o.get(m)}return e&&!l&&Array.from(a.entries()).reduce((c,d)=>{let[v,b]=d;return b==="on"?[...c,v]:c},[]).length===0?y:a},in:(t,n,l)=>{let a=new Map;for(const s of t||[])a=i.select({id:s,value:!0,selected:new Map(a),children:n,parents:l});return a},out:(t,n)=>{const l=[];for(const[a,s]of t.entries())s==="on"&&!n.has(a)&&l.push(a);return l}};return i},z=Symbol.for("vuetify:nested"),Ke={id:W(),root:{register:()=>null,unregister:()=>null,parents:x(new Map),children:x(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:x(new Set),selected:x(new Map),selectedValues:x([])}},Nt=A({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),Gt=e=>{let i=!1;const t=x(new Map),n=x(new Map),l=Q(e,"opened",e.opened,r=>new Set(r),r=>[...r.values()]),a=g(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return Mt(e.mandatory);case"leaf":return Et(e.mandatory);case"independent":return fe(e.mandatory);case"single-independent":return Ue(e.mandatory);case"classic":default:return Rt(e.mandatory)}}),s=g(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return _t;case"single":return Ot;case"multiple":default:return He}}),o=Q(e,"selected",e.selected,r=>a.value.in(r,t.value,n.value),r=>a.value.out(r,t.value,n.value));we(()=>{i=!0});function y(r){const c=[];let d=r;for(;d!=null;)c.unshift(d),d=n.value.get(d);return c}const f=st("nested"),m={id:W(),root:{opened:l,selected:o,selectedValues:g(()=>{const r=[];for(const[c,d]of o.value.entries())d==="on"&&r.push(c);return r}),register:(r,c,d)=>{c&&r!==c&&n.value.set(r,c),d&&t.value.set(r,[]),c!=null&&t.value.set(c,[...t.value.get(c)||[],r])},unregister:r=>{if(i)return;t.value.delete(r);const c=n.value.get(r);if(c){const d=t.value.get(c)??[];t.value.set(c,d.filter(v=>v!==r))}n.value.delete(r),l.value.delete(r)},open:(r,c,d)=>{f.emit("click:open",{id:r,value:c,path:y(r),event:d});const v=s.value.open({id:r,value:c,opened:new Set(l.value),children:t.value,parents:n.value,event:d});v&&(l.value=v)},openOnSelect:(r,c,d)=>{const v=s.value.select({id:r,value:c,selected:new Map(o.value),opened:new Set(l.value),children:t.value,parents:n.value,event:d});v&&(l.value=v)},select:(r,c,d)=>{f.emit("click:select",{id:r,value:c,path:y(r),event:d});const v=a.value.select({id:r,value:c,selected:new Map(o.value),children:t.value,parents:n.value,event:d});v&&(o.value=v),m.root.openOnSelect(r,c,d)},children:t,parents:n}};return ee(z,m),m.root},We=(e,i)=>{const t=Y(z,Ke),n=Symbol(rt()),l=g(()=>e.value!==void 0?e.value:n),a={...t,id:l,open:(s,o)=>t.root.open(l.value,s,o),openOnSelect:(s,o)=>t.root.openOnSelect(l.value,s,o),isOpen:g(()=>t.root.opened.value.has(l.value)),parent:g(()=>t.root.parents.value.get(l.value)),select:(s,o)=>t.root.select(l.value,s,o),isSelected:g(()=>t.root.selected.value.get($(l.value))==="on"),isIndeterminate:g(()=>t.root.selected.value.get(l.value)==="indeterminate"),isLeaf:g(()=>!t.root.children.value.get(l.value)),isGroupActivator:t.isGroupActivator};return!t.isGroupActivator&&t.root.register(l.value,t.id.value,i),we(()=>{!t.isGroupActivator&&t.root.unregister(l.value)}),i&&ee(z,a),a},$t=()=>{const e=Y(z,Ke);ee(z,{...e,isGroupActivator:!0})},jt=ot({name:"VListGroupActivator",setup(e,i){let{slots:t}=i;return $t(),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Ht=A({activeColor:String,baseColor:String,color:String,collapseIcon:{type:G,default:"$collapse"},expandIcon:{type:G,default:"$expand"},prependIcon:G,appendIcon:G,fluid:Boolean,subgroup:Boolean,title:String,value:null,...q(),...te()},"VListGroup"),Ce=D()({name:"VListGroup",props:Ht(),setup(e,i){let{slots:t}=i;const{isOpen:n,open:l,id:a}=We(P(e,"value"),!0),s=g(()=>`v-list-group--id-${String(a.value)}`),o=je(),{isBooted:y}=Vt();function f(d){l(!n.value,d)}const m=g(()=>({onClick:f,class:"v-list-group__header",id:s.value})),r=g(()=>n.value?e.collapseIcon:e.expandIcon),c=g(()=>({VListItem:{active:n.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&r.value,appendIcon:e.appendIcon||!e.subgroup&&r.value,title:e.title,value:e.value}}));return _(()=>u(e.tag,{class:["v-list-group",{"v-list-group--prepend":o==null?void 0:o.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":n.value},e.class],style:e.style},{default:()=>[t.activator&&u(X,{defaults:c.value},{default:()=>[u(jt,null,{default:()=>[t.activator({props:m.value,isOpen:n.value})]})]}),u(ut,{transition:{component:At},disabled:!y.value},{default:()=>{var d;return[ce(u("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[(d=t.default)==null?void 0:d.call(t)]),[[ct,n.value]])]}})]})),{}}});const Ut=Ae("v-list-item-subtitle"),Kt=Ae("v-list-item-title"),Wt=A({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:G,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:G,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number,Boolean],title:[String,Number,Boolean],value:null,onClick:he(),onClickOnce:he(),...Le(),...q(),...Be(),...Fe(),...De(),...Te(),...dt(),...te(),...de(),...Oe({variant:"text"})},"VListItem"),ke=D()({name:"VListItem",directives:{Ripple:vt},props:Wt(),emits:{click:e=>!0},setup(e,i){let{attrs:t,slots:n,emit:l}=i;const a=ft(e,t),s=g(()=>e.value===void 0?a.href.value:e.value),{select:o,isSelected:y,isIndeterminate:f,isGroupActivator:m,root:r,parent:c,openOnSelect:d}=We(s,!1),v=je(),b=g(()=>{var V;return e.active!==!1&&(e.active||((V=a.isActive)==null?void 0:V.value)||y.value)}),h=g(()=>e.link!==!1&&a.isLink.value),k=g(()=>!e.disabled&&e.link!==!1&&(e.link||a.isClickable.value||e.value!=null&&!!v)),F=g(()=>e.rounded||e.nav),L=g(()=>e.color??e.activeColor),j=g(()=>({color:b.value?L.value??e.baseColor:e.baseColor,variant:e.variant}));re(()=>{var V;return(V=a.isActive)==null?void 0:V.value},V=>{V&&c.value!=null&&r.open(c.value,!0),V&&d(V)},{immediate:!0});const{themeClasses:H}=ve(e),{borderClasses:S}=_e(e),{colorClasses:I,colorStyles:C,variantClasses:p}=mt(j),{densityClasses:U}=Ee(e),{dimensionStyles:ne}=Me(e),{elevationClasses:ae}=Re(e),{roundedClasses:T}=Ne(F),E=g(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),M=g(()=>({isActive:b.value,select:o,isSelected:y.value,isIndeterminate:f.value}));function K(V){var R;l("click",V),!(m||!k.value)&&((R=a.navigate)==null||R.call(a,V),e.value!=null&&o(!y.value,V))}function le(V){(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),K(V))}return _(()=>{const V=h.value?"a":e.tag,R=n.title||e.title,ie=n.subtitle||e.subtitle,Z=!!(e.appendAvatar||e.appendIcon),J=!!(Z||n.append),me=!!(e.prependAvatar||e.prependIcon),se=!!(me||n.prepend);return v==null||v.updateHasPrepend(se),e.activeColor&>("active-color",["color","base-color"]),ce(u(V,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":e.disabled,"v-list-item--link":k.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!se&&(v==null?void 0:v.hasPrepend.value),[`${e.activeClass}`]:e.activeClass&&b.value},H.value,S.value,I.value,U.value,ae.value,E.value,T.value,p.value,e.class],style:[C.value,ne.value,e.style],href:a.href.value,tabindex:k.value?v?-2:0:void 0,onClick:K,onKeydown:k.value&&!h.value&&le},{default:()=>{var ge;return[yt(k.value||b.value,"v-list-item"),se&&u("div",{key:"prepend",class:"v-list-item__prepend"},[n.prepend?u(X,{key:"prepend-defaults",disabled:!me,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var w;return[(w=n.prepend)==null?void 0:w.call(n,M.value)]}}):u(N,null,[e.prependAvatar&&u(Se,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&u(pe,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),u("div",{class:"v-list-item__content","data-no-activator":""},[R&&u(Kt,{key:"title"},{default:()=>{var w;return[((w=n.title)==null?void 0:w.call(n,{title:e.title}))??e.title]}}),ie&&u(Ut,{key:"subtitle"},{default:()=>{var w;return[((w=n.subtitle)==null?void 0:w.call(n,{subtitle:e.subtitle}))??e.subtitle]}}),(ge=n.default)==null?void 0:ge.call(n,M.value)]),J&&u("div",{key:"append",class:"v-list-item__append"},[n.append?u(X,{key:"append-defaults",disabled:!Z,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var w;return[(w=n.append)==null?void 0:w.call(n,M.value)]}}):u(N,null,[e.appendIcon&&u(pe,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&u(Se,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}}),[[Pe("ripple"),k.value&&e.ripple]])}),{}}}),zt=A({color:String,inset:Boolean,sticky:Boolean,title:String,...q(),...te()},"VListSubheader"),qt=D()({name:"VListSubheader",props:zt(),setup(e,i){let{slots:t}=i;const{textColorClasses:n,textColorStyles:l}=xe(P(e,"color"));return _(()=>{const a=!!(t.default||e.title);return u(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},n.value,e.class],style:[{textColorStyles:l},e.style]},{default:()=>{var s;return[a&&u("div",{class:"v-list-subheader__text"},[((s=t.default)==null?void 0:s.call(t))??e.title])]}})}),{}}}),Zt=A({items:Array},"VListChildren"),ze=D()({name:"VListChildren",props:Zt(),setup(e,i){let{slots:t}=i;return $e(),()=>{var n,l;return((n=t.default)==null?void 0:n.call(t))??((l=e.items)==null?void 0:l.map(a=>{var d,v;let{children:s,props:o,type:y,raw:f}=a;if(y==="divider")return((d=t.divider)==null?void 0:d.call(t,{props:o}))??u(Tt,o,null);if(y==="subheader")return((v=t.subheader)==null?void 0:v.call(t,{props:o}))??u(qt,o,null);const m={subtitle:t.subtitle?b=>{var h;return(h=t.subtitle)==null?void 0:h.call(t,{...b,item:f})}:void 0,prepend:t.prepend?b=>{var h;return(h=t.prepend)==null?void 0:h.call(t,{...b,item:f})}:void 0,append:t.append?b=>{var h;return(h=t.append)==null?void 0:h.call(t,{...b,item:f})}:void 0,title:t.title?b=>{var h;return(h=t.title)==null?void 0:h.call(t,{...b,item:f})}:void 0},[r,c]=Ce.filterProps(o);return s?u(Ce,O({value:o==null?void 0:o.value},r),{activator:b=>{let{props:h}=b;return t.header?t.header({props:{...o,...h}}):u(ke,O(o,h),m)},default:()=>u(ze,{items:s},t)}):t.item?t.item({props:o}):u(ke,o,m)}))}}}),Jt=A({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean},"list-items");function qe(e,i){const t=B(i,e.itemTitle,i),n=e.returnObject?i:B(i,e.itemValue,t),l=B(i,e.itemChildren),a=e.itemProps===!0?typeof i=="object"&&i!=null&&!Array.isArray(i)?"children"in i?Ge(i,["children"])[1]:i:void 0:B(i,e.itemProps),s={title:t,value:n,...a};return{title:String(s.title??""),value:s.value,props:s,children:Array.isArray(l)?Ze(e,l):void 0,raw:i}}function Ze(e,i){const t=[];for(const n of i)t.push(qe(e,n));return t}function un(e){const i=g(()=>Ze(e,e.items));return Qt(i,t=>qe(e,t))}function Qt(e,i){function t(l){return l.filter(a=>a!==null||e.value.some(s=>s.value===null)).map(a=>e.value.find(o=>bt(a,o.value))??i(a))}function n(l){return l.map(a=>{let{value:s}=a;return s})}return{items:e,transformIn:t,transformOut:n}}function Xt(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Yt(e,i){const t=B(i,e.itemType,"item"),n=Xt(i)?i:B(i,e.itemTitle),l=B(i,e.itemValue,void 0),a=B(i,e.itemChildren),s=e.itemProps===!0?Ge(i,["children"])[1]:B(i,e.itemProps),o={title:n,value:l,...s};return{type:t,title:o.title,value:o.value,props:o,children:t==="item"&&a?Je(e,a):void 0,raw:i}}function Je(e,i){const t=[];for(const n of i)t.push(Yt(e,n));return t}function en(e){return{items:g(()=>Je(e,e.items))}}const tn=A({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},nav:Boolean,...Nt({selectStrategy:"single-leaf",openStrategy:"list"}),...Le(),...q(),...Be(),...Fe(),...De(),itemType:{type:String,default:"type"},...Jt(),...Te(),...te(),...de(),...Oe({variant:"text"})},"VList"),cn=D()({name:"VList",props:tn(),emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,i){let{slots:t}=i;const{items:n}=en(e),{themeClasses:l}=ve(e),{backgroundColorClasses:a,backgroundColorStyles:s}=ht(P(e,"bgColor")),{borderClasses:o}=_e(e),{densityClasses:y}=Ee(e),{dimensionStyles:f}=Me(e),{elevationClasses:m}=Re(e),{roundedClasses:r}=Ne(e),{open:c,select:d}=Gt(e),v=g(()=>e.lines?`v-list--${e.lines}-line`:void 0),b=P(e,"activeColor"),h=P(e,"baseColor"),k=P(e,"color");$e(),St({VListGroup:{activeColor:b,baseColor:h,color:k},VListItem:{activeClass:P(e,"activeClass"),activeColor:b,baseColor:h,color:k,density:P(e,"density"),disabled:P(e,"disabled"),lines:P(e,"lines"),nav:P(e,"nav"),variant:P(e,"variant")}});const F=W(!1),L=x();function j(p){F.value=!0}function H(p){F.value=!1}function S(p){var U;!F.value&&!(p.relatedTarget&&((U=L.value)!=null&&U.contains(p.relatedTarget)))&&C()}function I(p){if(L.value){if(p.key==="ArrowDown")C("next");else if(p.key==="ArrowUp")C("prev");else if(p.key==="Home")C("first");else if(p.key==="End")C("last");else return;p.preventDefault()}}function C(p){if(L.value)return pt(L.value,p)}return _(()=>u(e.tag,{ref:L,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav},l.value,a.value,o.value,y.value,m.value,v.value,r.value,e.class],style:[s.value,f.value,e.style],tabindex:e.disabled||F.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:j,onFocusout:H,onFocus:S,onKeydown:I},{default:()=>[u(ze,{items:n.value},t)]})),{open:c,select:d,focus:C}}});export{on as V,rn as a,ke as b,Tt as c,cn as d,Ce as e,qt as f,Ft as g,Kt as h,Ut as i,Jt as m,un as u}; +import{p as A,bc as Qe,bs as Xe,a6 as D,a9 as Q,ax as Ye,r as x,b9 as et,w as re,c as g,H as O,ac as _,bd as ye,F as u,ar as X,be as Ie,z as oe,ba as tt,by as nt,aW as at,N as ce,bw as Pe,Z as N,bz as lt,bh as it,a1 as q,a5 as de,a8 as ve,b6 as xe,al as P,b as be,i as Y,s as W,e as ee,bA as $,l as we,d as st,h as rt,bB as ot,a0 as G,a4 as te,bC as ut,O as ct,bj as Ae,bD as he,ah as Le,a2 as Be,aH as Fe,ai as De,aj as Te,bE as dt,bk as Oe,bv as vt,bF as ft,am as _e,bl as mt,bb as Ee,aK as Me,an as Re,ao as Ne,bG as gt,bm as yt,bu as Se,V as pe,bq as bt,bH as B,bI as Ge,ak as ht,ap as St,bJ as pt}from"./index-cf33b3b8.js";import{u as Vt}from"./VTextarea-eca486a5.js";import{m as Ct,a as kt,u as It,V as Ve,f as Pt,b as xt,c as wt}from"./VInput-6b41ac51.js";import{V as At}from"./group-2cdf27ee.js";const Lt=A({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...Qe({origin:"center center",scrollStrategy:"block",transition:{component:Xe},zIndex:2400})},"VDialog"),rn=D()({name:"VDialog",props:Lt(),emits:{"update:modelValue":e=>!0},setup(e,i){let{slots:t}=i;const n=Q(e,"modelValue"),{scopeId:l}=Ye(),a=x();function s(y){var r,c;const f=y.relatedTarget,m=y.target;if(f!==m&&((r=a.value)!=null&&r.contentEl)&&((c=a.value)!=null&&c.globalTop)&&![document,a.value.contentEl].includes(m)&&!a.value.contentEl.contains(m)){const d=tt(a.value.contentEl);if(!d.length)return;const v=d[0],b=d[d.length-1];f===v?b.focus():v.focus()}}et&&re(()=>n.value&&e.retainFocus,y=>{y?document.addEventListener("focusin",s):document.removeEventListener("focusin",s)},{immediate:!0}),re(n,async y=>{var f,m;await oe(),y?(f=a.value.contentEl)==null||f.focus({preventScroll:!0}):(m=a.value.activatorEl)==null||m.focus({preventScroll:!0})});const o=g(()=>O({"aria-haspopup":"dialog","aria-expanded":String(n.value)},e.activatorProps));return _(()=>{const[y]=ye.filterProps(e);return u(ye,O({ref:a,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},y,{modelValue:n.value,"onUpdate:modelValue":f=>n.value=f,"aria-modal":"true",activatorProps:o.value,role:"dialog"},l),{activator:t.activator,default:function(){for(var f=arguments.length,m=new Array(f),r=0;r{var c;return[(c=t.default)==null?void 0:c.call(t,...m)]}})}})}),Ie({},a)}}),Bt=["color","file","time","date","datetime-local","week","month"],Ft=A({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,type:{type:String,default:"text"},modelModifiers:Object,...Ct(),...kt()},"VTextField"),on=D()({name:"VTextField",directives:{Intersect:nt},inheritAttrs:!1,props:Ft(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,i){let{attrs:t,emit:n,slots:l}=i;const a=Q(e,"modelValue"),{isFocused:s,focus:o,blur:y}=It(e),f=g(()=>typeof e.counterValue=="function"?e.counterValue(a.value):(a.value??"").toString().length),m=g(()=>{if(t.maxlength)return t.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),r=g(()=>["plain","underlined"].includes(e.variant));function c(S,I){var C,p;!e.autofocus||!S||(p=(C=I[0].target)==null?void 0:C.focus)==null||p.call(C)}const d=x(),v=x(),b=x(),h=g(()=>Bt.includes(e.type)||e.persistentPlaceholder||s.value||e.active);function k(){var S;b.value!==document.activeElement&&((S=b.value)==null||S.focus()),s.value||o()}function F(S){n("mousedown:control",S),S.target!==b.value&&(k(),S.preventDefault())}function L(S){k(),n("click:control",S)}function j(S){S.stopPropagation(),k(),oe(()=>{a.value=null,it(e["onClick:clear"],S)})}function H(S){var C;const I=S.target;if(a.value=I.value,(C=e.modelModifiers)!=null&&C.trim&&["text","search","password","tel","url"].includes(e.type)){const p=[I.selectionStart,I.selectionEnd];oe(()=>{I.selectionStart=p[0],I.selectionEnd=p[1]})}}return _(()=>{const S=!!(l.counter||e.counter||e.counterValue),I=!!(S||l.details),[C,p]=at(t),[{modelValue:U,...ne}]=Ve.filterProps(e),[ae]=Pt(e);return u(Ve,O({ref:d,modelValue:a.value,"onUpdate:modelValue":T=>a.value=T,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-text-field--plain-underlined":["plain","underlined"].includes(e.variant)},e.class],style:e.style},C,ne,{centerAffix:!r.value,focused:s.value}),{...l,default:T=>{let{id:E,isDisabled:M,isDirty:K,isReadonly:le,isValid:V}=T;return u(xt,O({ref:v,onMousedown:F,onClick:L,"onClick:clear":j,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:"textbox"},ae,{id:E.value,active:h.value||K.value,dirty:K.value||e.dirty,disabled:M.value,focused:s.value,error:V.value===!1}),{...l,default:R=>{let{props:{class:ie,...J}}=R;const Z=ce(u("input",O({ref:b,value:a.value,onInput:H,autofocus:e.autofocus,readonly:le.value,disabled:M.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:k,onBlur:y},J,p),null),[[Pe("intersect"),{handler:c},null,{once:!0}]]);return u(N,null,[e.prefix&&u("span",{class:"v-text-field__prefix"},[u("span",{class:"v-text-field__prefix__text"},[e.prefix])]),u("div",{class:ie,"data-no-activator":""},[l.default?u(N,null,[l.default(),Z]):lt(Z)]),e.suffix&&u("span",{class:"v-text-field__suffix"},[u("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:I?T=>{var E;return u(N,null,[(E=l.details)==null?void 0:E.call(l,T),S&&u(N,null,[u("span",null,null),u(wt,{active:e.persistentCounter||s.value,value:f.value,max:m.value},l.counter)])])}:void 0})}),Ie({},d,v,b)}});const Dt=A({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...q(),...de()},"VDivider"),Tt=D()({name:"VDivider",props:Dt(),setup(e,i){let{attrs:t}=i;const{themeClasses:n}=ve(e),{textColorClasses:l,textColorStyles:a}=xe(P(e,"color")),s=g(()=>{const o={};return e.length&&(o[e.vertical?"maxHeight":"maxWidth"]=be(e.length)),e.thickness&&(o[e.vertical?"borderRightWidth":"borderTopWidth"]=be(e.thickness)),o});return _(()=>u("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},n.value,l.value,e.class],style:[s.value,a.value,e.style],"aria-orientation":!t.role||t.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${t.role||"separator"}`},null)),{}}});const ue=Symbol.for("vuetify:list");function $e(){const e=Y(ue,{hasPrepend:W(!1),updateHasPrepend:()=>null}),i={hasPrepend:W(!1),updateHasPrepend:t=>{t&&(i.hasPrepend.value=t)}};return ee(ue,i),e}function je(){return Y(ue,null)}const Ot={open:e=>{let{id:i,value:t,opened:n,parents:l}=e;if(t){const a=new Set;a.add(i);let s=l.get(i);for(;s!=null;)a.add(s),s=l.get(s);return a}else return n.delete(i),n},select:()=>null},He={open:e=>{let{id:i,value:t,opened:n,parents:l}=e;if(t){let a=l.get(i);for(n.add(i);a!=null&&a!==i;)n.add(a),a=l.get(a);return n}else n.delete(i);return n},select:()=>null},_t={open:He.open,select:e=>{let{id:i,value:t,opened:n,parents:l}=e;if(!t)return n;const a=[];let s=l.get(i);for(;s!=null;)a.push(s),s=l.get(s);return new Set(a)}},fe=e=>{const i={select:t=>{let{id:n,value:l,selected:a}=t;if(n=$(n),e&&!l){const s=Array.from(a.entries()).reduce((o,y)=>{let[f,m]=y;return m==="on"?[...o,f]:o},[]);if(s.length===1&&s[0]===n)return a}return a.set(n,l?"on":"off"),a},in:(t,n,l)=>{let a=new Map;for(const s of t||[])a=i.select({id:s,value:!0,selected:new Map(a),children:n,parents:l});return a},out:t=>{const n=[];for(const[l,a]of t.entries())a==="on"&&n.push(l);return n}};return i},Ue=e=>{const i=fe(e);return{select:n=>{let{selected:l,id:a,...s}=n;a=$(a);const o=l.has(a)?new Map([[a,l.get(a)]]):new Map;return i.select({...s,id:a,selected:o})},in:(n,l,a)=>{let s=new Map;return n!=null&&n.length&&(s=i.in(n.slice(0,1),l,a)),s},out:(n,l,a)=>i.out(n,l,a)}},Et=e=>{const i=fe(e);return{select:n=>{let{id:l,selected:a,children:s,...o}=n;return l=$(l),s.has(l)?a:i.select({id:l,selected:a,children:s,...o})},in:i.in,out:i.out}},Mt=e=>{const i=Ue(e);return{select:n=>{let{id:l,selected:a,children:s,...o}=n;return l=$(l),s.has(l)?a:i.select({id:l,selected:a,children:s,...o})},in:i.in,out:i.out}},Rt=e=>{const i={select:t=>{let{id:n,value:l,selected:a,children:s,parents:o}=t;n=$(n);const y=new Map(a),f=[n];for(;f.length;){const r=f.shift();a.set(r,l?"on":"off"),s.has(r)&&f.push(...s.get(r))}let m=o.get(n);for(;m;){const r=s.get(m),c=r.every(v=>a.get(v)==="on"),d=r.every(v=>!a.has(v)||a.get(v)==="off");a.set(m,c?"on":d?"off":"indeterminate"),m=o.get(m)}return e&&!l&&Array.from(a.entries()).reduce((c,d)=>{let[v,b]=d;return b==="on"?[...c,v]:c},[]).length===0?y:a},in:(t,n,l)=>{let a=new Map;for(const s of t||[])a=i.select({id:s,value:!0,selected:new Map(a),children:n,parents:l});return a},out:(t,n)=>{const l=[];for(const[a,s]of t.entries())s==="on"&&!n.has(a)&&l.push(a);return l}};return i},z=Symbol.for("vuetify:nested"),Ke={id:W(),root:{register:()=>null,unregister:()=>null,parents:x(new Map),children:x(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:x(new Set),selected:x(new Map),selectedValues:x([])}},Nt=A({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),Gt=e=>{let i=!1;const t=x(new Map),n=x(new Map),l=Q(e,"opened",e.opened,r=>new Set(r),r=>[...r.values()]),a=g(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return Mt(e.mandatory);case"leaf":return Et(e.mandatory);case"independent":return fe(e.mandatory);case"single-independent":return Ue(e.mandatory);case"classic":default:return Rt(e.mandatory)}}),s=g(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return _t;case"single":return Ot;case"multiple":default:return He}}),o=Q(e,"selected",e.selected,r=>a.value.in(r,t.value,n.value),r=>a.value.out(r,t.value,n.value));we(()=>{i=!0});function y(r){const c=[];let d=r;for(;d!=null;)c.unshift(d),d=n.value.get(d);return c}const f=st("nested"),m={id:W(),root:{opened:l,selected:o,selectedValues:g(()=>{const r=[];for(const[c,d]of o.value.entries())d==="on"&&r.push(c);return r}),register:(r,c,d)=>{c&&r!==c&&n.value.set(r,c),d&&t.value.set(r,[]),c!=null&&t.value.set(c,[...t.value.get(c)||[],r])},unregister:r=>{if(i)return;t.value.delete(r);const c=n.value.get(r);if(c){const d=t.value.get(c)??[];t.value.set(c,d.filter(v=>v!==r))}n.value.delete(r),l.value.delete(r)},open:(r,c,d)=>{f.emit("click:open",{id:r,value:c,path:y(r),event:d});const v=s.value.open({id:r,value:c,opened:new Set(l.value),children:t.value,parents:n.value,event:d});v&&(l.value=v)},openOnSelect:(r,c,d)=>{const v=s.value.select({id:r,value:c,selected:new Map(o.value),opened:new Set(l.value),children:t.value,parents:n.value,event:d});v&&(l.value=v)},select:(r,c,d)=>{f.emit("click:select",{id:r,value:c,path:y(r),event:d});const v=a.value.select({id:r,value:c,selected:new Map(o.value),children:t.value,parents:n.value,event:d});v&&(o.value=v),m.root.openOnSelect(r,c,d)},children:t,parents:n}};return ee(z,m),m.root},We=(e,i)=>{const t=Y(z,Ke),n=Symbol(rt()),l=g(()=>e.value!==void 0?e.value:n),a={...t,id:l,open:(s,o)=>t.root.open(l.value,s,o),openOnSelect:(s,o)=>t.root.openOnSelect(l.value,s,o),isOpen:g(()=>t.root.opened.value.has(l.value)),parent:g(()=>t.root.parents.value.get(l.value)),select:(s,o)=>t.root.select(l.value,s,o),isSelected:g(()=>t.root.selected.value.get($(l.value))==="on"),isIndeterminate:g(()=>t.root.selected.value.get(l.value)==="indeterminate"),isLeaf:g(()=>!t.root.children.value.get(l.value)),isGroupActivator:t.isGroupActivator};return!t.isGroupActivator&&t.root.register(l.value,t.id.value,i),we(()=>{!t.isGroupActivator&&t.root.unregister(l.value)}),i&&ee(z,a),a},$t=()=>{const e=Y(z,Ke);ee(z,{...e,isGroupActivator:!0})},jt=ot({name:"VListGroupActivator",setup(e,i){let{slots:t}=i;return $t(),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Ht=A({activeColor:String,baseColor:String,color:String,collapseIcon:{type:G,default:"$collapse"},expandIcon:{type:G,default:"$expand"},prependIcon:G,appendIcon:G,fluid:Boolean,subgroup:Boolean,title:String,value:null,...q(),...te()},"VListGroup"),Ce=D()({name:"VListGroup",props:Ht(),setup(e,i){let{slots:t}=i;const{isOpen:n,open:l,id:a}=We(P(e,"value"),!0),s=g(()=>`v-list-group--id-${String(a.value)}`),o=je(),{isBooted:y}=Vt();function f(d){l(!n.value,d)}const m=g(()=>({onClick:f,class:"v-list-group__header",id:s.value})),r=g(()=>n.value?e.collapseIcon:e.expandIcon),c=g(()=>({VListItem:{active:n.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&r.value,appendIcon:e.appendIcon||!e.subgroup&&r.value,title:e.title,value:e.value}}));return _(()=>u(e.tag,{class:["v-list-group",{"v-list-group--prepend":o==null?void 0:o.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":n.value},e.class],style:e.style},{default:()=>[t.activator&&u(X,{defaults:c.value},{default:()=>[u(jt,null,{default:()=>[t.activator({props:m.value,isOpen:n.value})]})]}),u(ut,{transition:{component:At},disabled:!y.value},{default:()=>{var d;return[ce(u("div",{class:"v-list-group__items",role:"group","aria-labelledby":s.value},[(d=t.default)==null?void 0:d.call(t)]),[[ct,n.value]])]}})]})),{}}});const Ut=Ae("v-list-item-subtitle"),Kt=Ae("v-list-item-title"),Wt=A({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:G,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:G,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number,Boolean],title:[String,Number,Boolean],value:null,onClick:he(),onClickOnce:he(),...Le(),...q(),...Be(),...Fe(),...De(),...Te(),...dt(),...te(),...de(),...Oe({variant:"text"})},"VListItem"),ke=D()({name:"VListItem",directives:{Ripple:vt},props:Wt(),emits:{click:e=>!0},setup(e,i){let{attrs:t,slots:n,emit:l}=i;const a=ft(e,t),s=g(()=>e.value===void 0?a.href.value:e.value),{select:o,isSelected:y,isIndeterminate:f,isGroupActivator:m,root:r,parent:c,openOnSelect:d}=We(s,!1),v=je(),b=g(()=>{var V;return e.active!==!1&&(e.active||((V=a.isActive)==null?void 0:V.value)||y.value)}),h=g(()=>e.link!==!1&&a.isLink.value),k=g(()=>!e.disabled&&e.link!==!1&&(e.link||a.isClickable.value||e.value!=null&&!!v)),F=g(()=>e.rounded||e.nav),L=g(()=>e.color??e.activeColor),j=g(()=>({color:b.value?L.value??e.baseColor:e.baseColor,variant:e.variant}));re(()=>{var V;return(V=a.isActive)==null?void 0:V.value},V=>{V&&c.value!=null&&r.open(c.value,!0),V&&d(V)},{immediate:!0});const{themeClasses:H}=ve(e),{borderClasses:S}=_e(e),{colorClasses:I,colorStyles:C,variantClasses:p}=mt(j),{densityClasses:U}=Ee(e),{dimensionStyles:ne}=Me(e),{elevationClasses:ae}=Re(e),{roundedClasses:T}=Ne(F),E=g(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),M=g(()=>({isActive:b.value,select:o,isSelected:y.value,isIndeterminate:f.value}));function K(V){var R;l("click",V),!(m||!k.value)&&((R=a.navigate)==null||R.call(a,V),e.value!=null&&o(!y.value,V))}function le(V){(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),K(V))}return _(()=>{const V=h.value?"a":e.tag,R=n.title||e.title,ie=n.subtitle||e.subtitle,J=!!(e.appendAvatar||e.appendIcon),Z=!!(J||n.append),me=!!(e.prependAvatar||e.prependIcon),se=!!(me||n.prepend);return v==null||v.updateHasPrepend(se),e.activeColor&>("active-color",["color","base-color"]),ce(u(V,{class:["v-list-item",{"v-list-item--active":b.value,"v-list-item--disabled":e.disabled,"v-list-item--link":k.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!se&&(v==null?void 0:v.hasPrepend.value),[`${e.activeClass}`]:e.activeClass&&b.value},H.value,S.value,I.value,U.value,ae.value,E.value,T.value,p.value,e.class],style:[C.value,ne.value,e.style],href:a.href.value,tabindex:k.value?v?-2:0:void 0,onClick:K,onKeydown:k.value&&!h.value&&le},{default:()=>{var ge;return[yt(k.value||b.value,"v-list-item"),se&&u("div",{key:"prepend",class:"v-list-item__prepend"},[n.prepend?u(X,{key:"prepend-defaults",disabled:!me,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var w;return[(w=n.prepend)==null?void 0:w.call(n,M.value)]}}):u(N,null,[e.prependAvatar&&u(Se,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&u(pe,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),u("div",{class:"v-list-item__content","data-no-activator":""},[R&&u(Kt,{key:"title"},{default:()=>{var w;return[((w=n.title)==null?void 0:w.call(n,{title:e.title}))??e.title]}}),ie&&u(Ut,{key:"subtitle"},{default:()=>{var w;return[((w=n.subtitle)==null?void 0:w.call(n,{subtitle:e.subtitle}))??e.subtitle]}}),(ge=n.default)==null?void 0:ge.call(n,M.value)]),Z&&u("div",{key:"append",class:"v-list-item__append"},[n.append?u(X,{key:"append-defaults",disabled:!J,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var w;return[(w=n.append)==null?void 0:w.call(n,M.value)]}}):u(N,null,[e.appendIcon&&u(pe,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&u(Se,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}}),[[Pe("ripple"),k.value&&e.ripple]])}),{}}}),zt=A({color:String,inset:Boolean,sticky:Boolean,title:String,...q(),...te()},"VListSubheader"),qt=D()({name:"VListSubheader",props:zt(),setup(e,i){let{slots:t}=i;const{textColorClasses:n,textColorStyles:l}=xe(P(e,"color"));return _(()=>{const a=!!(t.default||e.title);return u(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},n.value,e.class],style:[{textColorStyles:l},e.style]},{default:()=>{var s;return[a&&u("div",{class:"v-list-subheader__text"},[((s=t.default)==null?void 0:s.call(t))??e.title])]}})}),{}}}),Jt=A({items:Array},"VListChildren"),ze=D()({name:"VListChildren",props:Jt(),setup(e,i){let{slots:t}=i;return $e(),()=>{var n,l;return((n=t.default)==null?void 0:n.call(t))??((l=e.items)==null?void 0:l.map(a=>{var d,v;let{children:s,props:o,type:y,raw:f}=a;if(y==="divider")return((d=t.divider)==null?void 0:d.call(t,{props:o}))??u(Tt,o,null);if(y==="subheader")return((v=t.subheader)==null?void 0:v.call(t,{props:o}))??u(qt,o,null);const m={subtitle:t.subtitle?b=>{var h;return(h=t.subtitle)==null?void 0:h.call(t,{...b,item:f})}:void 0,prepend:t.prepend?b=>{var h;return(h=t.prepend)==null?void 0:h.call(t,{...b,item:f})}:void 0,append:t.append?b=>{var h;return(h=t.append)==null?void 0:h.call(t,{...b,item:f})}:void 0,title:t.title?b=>{var h;return(h=t.title)==null?void 0:h.call(t,{...b,item:f})}:void 0},[r,c]=Ce.filterProps(o);return s?u(Ce,O({value:o==null?void 0:o.value},r),{activator:b=>{let{props:h}=b;return t.header?t.header({props:{...o,...h}}):u(ke,O(o,h),m)},default:()=>u(ze,{items:s},t)}):t.item?t.item({props:o}):u(ke,o,m)}))}}}),Zt=A({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean},"list-items");function qe(e,i){const t=B(i,e.itemTitle,i),n=e.returnObject?i:B(i,e.itemValue,t),l=B(i,e.itemChildren),a=e.itemProps===!0?typeof i=="object"&&i!=null&&!Array.isArray(i)?"children"in i?Ge(i,["children"])[1]:i:void 0:B(i,e.itemProps),s={title:t,value:n,...a};return{title:String(s.title??""),value:s.value,props:s,children:Array.isArray(l)?Je(e,l):void 0,raw:i}}function Je(e,i){const t=[];for(const n of i)t.push(qe(e,n));return t}function un(e){const i=g(()=>Je(e,e.items));return Qt(i,t=>qe(e,t))}function Qt(e,i){function t(l){return l.filter(a=>a!==null||e.value.some(s=>s.value===null)).map(a=>e.value.find(o=>bt(a,o.value))??i(a))}function n(l){return l.map(a=>{let{value:s}=a;return s})}return{items:e,transformIn:t,transformOut:n}}function Xt(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Yt(e,i){const t=B(i,e.itemType,"item"),n=Xt(i)?i:B(i,e.itemTitle),l=B(i,e.itemValue,void 0),a=B(i,e.itemChildren),s=e.itemProps===!0?Ge(i,["children"])[1]:B(i,e.itemProps),o={title:n,value:l,...s};return{type:t,title:o.title,value:o.value,props:o,children:t==="item"&&a?Ze(e,a):void 0,raw:i}}function Ze(e,i){const t=[];for(const n of i)t.push(Yt(e,n));return t}function en(e){return{items:g(()=>Ze(e,e.items))}}const tn=A({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},nav:Boolean,...Nt({selectStrategy:"single-leaf",openStrategy:"list"}),...Le(),...q(),...Be(),...Fe(),...De(),itemType:{type:String,default:"type"},...Zt(),...Te(),...te(),...de(),...Oe({variant:"text"})},"VList"),cn=D()({name:"VList",props:tn(),emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,i){let{slots:t}=i;const{items:n}=en(e),{themeClasses:l}=ve(e),{backgroundColorClasses:a,backgroundColorStyles:s}=ht(P(e,"bgColor")),{borderClasses:o}=_e(e),{densityClasses:y}=Ee(e),{dimensionStyles:f}=Me(e),{elevationClasses:m}=Re(e),{roundedClasses:r}=Ne(e),{open:c,select:d}=Gt(e),v=g(()=>e.lines?`v-list--${e.lines}-line`:void 0),b=P(e,"activeColor"),h=P(e,"baseColor"),k=P(e,"color");$e(),St({VListGroup:{activeColor:b,baseColor:h,color:k},VListItem:{activeClass:P(e,"activeClass"),activeColor:b,baseColor:h,color:k,density:P(e,"density"),disabled:P(e,"disabled"),lines:P(e,"lines"),nav:P(e,"nav"),variant:P(e,"variant")}});const F=W(!1),L=x();function j(p){F.value=!0}function H(p){F.value=!1}function S(p){var U;!F.value&&!(p.relatedTarget&&((U=L.value)!=null&&U.contains(p.relatedTarget)))&&C()}function I(p){if(L.value){if(p.key==="ArrowDown")C("next");else if(p.key==="ArrowUp")C("prev");else if(p.key==="Home")C("first");else if(p.key==="End")C("last");else return;p.preventDefault()}}function C(p){if(L.value)return pt(L.value,p)}return _(()=>u(e.tag,{ref:L,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav},l.value,a.value,o.value,y.value,m.value,v.value,r.value,e.class],style:[s.value,f.value,e.style],tabindex:e.disabled||F.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:j,onFocusout:H,onFocus:S,onKeydown:I},{default:()=>[u(ze,{items:n.value},t)]})),{open:c,select:d,focus:C}}});export{on as V,rn as a,ke as b,Tt as c,cn as d,Ce as e,qt as f,Ft as g,Kt as h,Zt as m,un as u}; diff --git a/src/front/dist/assets/VSelectionControl-ddf592aa.js b/src/front/dist/assets/VSelectionControl-e5942853.js similarity index 98% rename from src/front/dist/assets/VSelectionControl-ddf592aa.js rename to src/front/dist/assets/VSelectionControl-e5942853.js index 78d71cf8b..26169c47b 100644 --- a/src/front/dist/assets/VSelectionControl-ddf592aa.js +++ b/src/front/dist/assets/VSelectionControl-e5942853.js @@ -1 +1 @@ -import{p as Q,a0 as X,bp as we,a1 as re,a2 as ye,a5 as be,a6 as ne,a9 as ie,h as oe,c as S,e as Ce,bo as Te,ap as Se,al as y,ac as ue,F as x,bu as pe,s as j,r as De,aW as Oe,N as Me,bv as Pe,V as ke,H as J,i as xe,bb as We,bf as z,b6 as Ue,bw as K,z as _e}from"./index-09dc9553.js";import{e as Ye}from"./VInput-2f5042f3.js";function q(e){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},q(e)}function U(e){if(e===null||e===!0||e===!1)return NaN;var a=Number(e);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function g(e,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}function p(e){g(1,arguments);var a=Object.prototype.toString.call(e);return e instanceof Date||q(e)==="object"&&a==="[object Date]"?new Date(e.getTime()):typeof e=="number"||a==="[object Number]"?new Date(e):((typeof e=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ee(e,a){g(2,arguments);var t=p(e).getTime(),r=U(a);return new Date(t+r)}var Ve={};function R(){return Ve}function Fe(e){var a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return a.setUTCFullYear(e.getFullYear()),e.getTime()-a.getTime()}function Ne(e){return g(1,arguments),e instanceof Date||q(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function $e(e){if(g(1,arguments),!Ne(e)&&typeof e!="number")return!1;var a=p(e);return!isNaN(Number(a))}function qe(e,a){g(2,arguments);var t=U(a);return Ee(e,-t)}var Ie=864e5;function Le(e){g(1,arguments);var a=p(e),t=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var r=a.getTime(),n=t-r;return Math.floor(n/Ie)+1}function I(e){g(1,arguments);var a=1,t=p(e),r=t.getUTCDay(),n=(r=n.getTime()?t+1:a.getTime()>=o.getTime()?t:t-1}function Re(e){g(1,arguments);var a=le(e),t=new Date(0);t.setUTCFullYear(a,0,4),t.setUTCHours(0,0,0,0);var r=I(t);return r}var He=6048e5;function Ae(e){g(1,arguments);var a=p(e),t=I(a).getTime()-Re(a).getTime();return Math.round(t/He)+1}function L(e,a){var t,r,n,i,o,u,l,d;g(1,arguments);var v=R(),c=U((t=(r=(n=(i=a==null?void 0:a.weekStartsOn)!==null&&i!==void 0?i:a==null||(o=a.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:v.weekStartsOn)!==null&&r!==void 0?r:(l=v.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=p(e),m=f.getUTCDay(),h=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(c+1,0,m),h.setUTCHours(0,0,0,0);var b=L(h,a),C=new Date(0);C.setUTCFullYear(c,0,m),C.setUTCHours(0,0,0,0);var D=L(C,a);return v.getTime()>=b.getTime()?c+1:v.getTime()>=D.getTime()?c:c-1}function Be(e,a){var t,r,n,i,o,u,l,d;g(1,arguments);var v=R(),c=U((t=(r=(n=(i=a==null?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:a==null||(o=a.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:v.firstWeekContainsDate)!==null&&r!==void 0?r:(l=v.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=se(e,a),m=new Date(0);m.setUTCFullYear(f,0,c),m.setUTCHours(0,0,0,0);var h=L(m,a);return h}var Ge=6048e5;function Qe(e,a){g(1,arguments);var t=p(e),r=L(t,a).getTime()-Be(t,a).getTime();return Math.round(r/Ge)+1}function s(e,a){for(var t=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return s(t==="yy"?n%100:n,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):s(r+1,2)},d:function(a,t){return s(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return s(a.getUTCHours()%12||12,t.length)},H:function(a,t){return s(a.getUTCHours(),t.length)},m:function(a,t){return s(a.getUTCMinutes(),t.length)},s:function(a,t){return s(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,n=a.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return s(i,t.length)}};const k=Xe;var _={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},je={G:function(a,t,r){var n=a.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(a,t,r){if(t==="yo"){var n=a.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return k.y(a,t)},Y:function(a,t,r,n){var i=se(a,n),o=i>0?i:1-i;if(t==="YY"){var u=o%100;return s(u,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(a,t){var r=le(a);return s(r,t.length)},u:function(a,t){var r=a.getUTCFullYear();return s(r,t.length)},Q:function(a,t,r){var n=Math.ceil((a.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(a,t,r){var n=Math.ceil((a.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(a,t,r){var n=a.getUTCMonth();switch(t){case"M":case"MM":return k.M(a,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(a,t,r){var n=a.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(a,t,r,n){var i=Qe(a,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):s(i,t.length)},I:function(a,t,r){var n=Ae(a);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(a,t,r){return t==="do"?r.ordinalNumber(a.getUTCDate(),{unit:"date"}):k.d(a,t)},D:function(a,t,r){var n=Le(a);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(a,t,r){var n=a.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(a,t,r,n){var i=a.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(a,t,r,n){var i=a.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(a,t,r){var n=a.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(a,t,r){var n=a.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(a,t,r){var n=a.getUTCHours(),i;switch(n===12?i=_.noon:n===0?i=_.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(a,t,r){var n=a.getUTCHours(),i;switch(n>=17?i=_.evening:n>=12?i=_.afternoon:n>=4?i=_.morning:i=_.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(a,t,r){if(t==="ho"){var n=a.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return k.h(a,t)},H:function(a,t,r){return t==="Ho"?r.ordinalNumber(a.getUTCHours(),{unit:"hour"}):k.H(a,t)},K:function(a,t,r){var n=a.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(a,t,r){var n=a.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(a,t,r){return t==="mo"?r.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):k.m(a,t)},s:function(a,t,r){return t==="so"?r.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):k.s(a,t)},S:function(a,t){return k.S(a,t)},X:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return ee(o);case"XXXX":case"XX":return W(o);case"XXXXX":case"XXX":default:return W(o,":")}},x:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();switch(t){case"x":return ee(o);case"xxxx":case"xx":return W(o);case"xxxxx":case"xxx":default:return W(o,":")}},O:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Z(o,":");case"OOOO":default:return"GMT"+W(o,":")}},z:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Z(o,":");case"zzzz":default:return"GMT"+W(o,":")}},t:function(a,t,r,n){var i=n._originalDate||a,o=Math.floor(i.getTime()/1e3);return s(o,t.length)},T:function(a,t,r,n){var i=n._originalDate||a,o=i.getTime();return s(o,t.length)}};function Z(e,a){var t=e>0?"-":"+",r=Math.abs(e),n=Math.floor(r/60),i=r%60;if(i===0)return t+String(n);var o=a||"";return t+String(n)+o+s(i,2)}function ee(e,a){if(e%60===0){var t=e>0?"-":"+";return t+s(Math.abs(e)/60,2)}return W(e,a)}function W(e,a){var t=a||"",r=e>0?"-":"+",n=Math.abs(e),i=s(Math.floor(n/60),2),o=s(n%60,2);return r+i+t+o}const Je=je;var te=function(a,t){switch(a){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},de=function(a,t){switch(a){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ze=function(a,t){var r=a.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return te(a,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",te(n,t)).replace("{{time}}",de(i,t))},Ke={p:de,P:ze};const Ze=Ke;var et=["D","DD"],tt=["YY","YYYY"];function at(e){return et.indexOf(e)!==-1}function rt(e){return tt.indexOf(e)!==-1}function ae(e,a,t){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},it=function(a,t,r){var n,i=nt[a];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const ot=it;function G(e){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=a.width?String(a.width):e.defaultWidth,r=e.formats[t]||e.formats[e.defaultWidth];return r}}var ut={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},st={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dt={date:G({formats:ut,defaultWidth:"full"}),time:G({formats:lt,defaultWidth:"full"}),dateTime:G({formats:st,defaultWidth:"full"})};const ct=dt;var ft={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mt=function(a,t,r,n){return ft[a]};const vt=mt;function V(e){return function(a,t){var r=t!=null&&t.context?String(t.context):"standalone",n;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var u=e.defaultWidth,l=t!=null&&t.width?String(t.width):e.defaultWidth;n=e.values[l]||e.values[u]}var d=e.argumentCallback?e.argumentCallback(a):a;return n[d]}}var ht={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ct={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Tt=function(a,t){var r=Number(a),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},St={ordinalNumber:Tt,era:V({values:ht,defaultWidth:"wide"}),quarter:V({values:gt,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:V({values:wt,defaultWidth:"wide"}),day:V({values:yt,defaultWidth:"wide"}),dayPeriod:V({values:bt,defaultWidth:"wide",formattingValues:Ct,defaultFormattingWidth:"wide"})};const pt=St;function F(e){return function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=a.match(n);if(!i)return null;var o=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?Ot(u,function(c){return c.test(o)}):Dt(u,function(c){return c.test(o)}),d;d=e.valueCallback?e.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var v=a.slice(o.length);return{value:d,rest:v}}}function Dt(e,a){for(var t in e)if(e.hasOwnProperty(t)&&a(e[t]))return t}function Ot(e,a){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=a.match(e.matchPattern);if(!r)return null;var n=r[0],i=a.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=a.slice(n.length);return{value:o,rest:u}}}var Pt=/^(\d+)(th|st|nd|rd)?/i,kt=/\d+/i,xt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wt={any:[/^b/i,/^(a|c)/i]},Ut={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_t={any:[/1/i,/2/i,/3/i,/4/i]},Yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Et={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ft={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Nt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$t={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qt={ordinalNumber:Mt({matchPattern:Pt,parsePattern:kt,valueCallback:function(a){return parseInt(a,10)}}),era:F({matchPatterns:xt,defaultMatchWidth:"wide",parsePatterns:Wt,defaultParseWidth:"any"}),quarter:F({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:_t,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:F({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Et,defaultParseWidth:"any"}),day:F({matchPatterns:Vt,defaultMatchWidth:"wide",parsePatterns:Ft,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Nt,defaultMatchWidth:"any",parsePatterns:$t,defaultParseWidth:"any"})};const It=qt;var Lt={code:"en-US",formatDistance:ot,formatLong:ct,formatRelative:vt,localize:pt,match:It,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Rt=Lt;var Ht=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,At=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bt=/^'([^]*?)'?$/,Gt=/''/g,Qt=/[a-zA-Z]/;function ea(e,a,t){var r,n,i,o,u,l,d,v,c,f,m,h,b,C,D,Y,T,E;g(2,arguments);var H=String(a),O=R(),M=(r=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:O.locale)!==null&&r!==void 0?r:Rt,A=U((i=(o=(u=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(d=t.locale)===null||d===void 0||(v=d.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&u!==void 0?u:O.firstWeekContainsDate)!==null&&o!==void 0?o:(c=O.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=U((m=(h=(b=(C=t==null?void 0:t.weekStartsOn)!==null&&C!==void 0?C:t==null||(D=t.locale)===null||D===void 0||(Y=D.options)===null||Y===void 0?void 0:Y.weekStartsOn)!==null&&b!==void 0?b:O.weekStartsOn)!==null&&h!==void 0?h:(T=O.locale)===null||T===void 0||(E=T.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var N=p(e);if(!$e(N))throw new RangeError("Invalid time value");var me=Fe(N),ve=qe(N,me),he={firstWeekContainsDate:A,weekStartsOn:B,locale:M,_originalDate:N},ge=H.match(At).map(function(w){var P=w[0];if(P==="p"||P==="P"){var $=Ze[P];return $(w,M.formatLong)}return w}).join("").match(Ht).map(function(w){if(w==="''")return"'";var P=w[0];if(P==="'")return Xt(w);var $=Je[P];if($)return!(t!=null&&t.useAdditionalWeekYearTokens)&&rt(w)&&ae(w,a,String(e)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&at(w)&&ae(w,a,String(e)),$(ve,w,M.localize,he);if(P.match(Qt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return w}).join("");return ge}function Xt(e){var a=e.match(Bt);return a?a[1].replace(Gt,"'"):e}const ce=Symbol.for("vuetify:selection-control-group"),fe=Q({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:X,trueIcon:X,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:we},...re(),...ye(),...be()},"SelectionControlGroup"),jt=Q({...fe({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");ne()({name:"VSelectionControlGroup",props:jt(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:t}=a;const r=ie(e,"modelValue"),n=oe(),i=S(()=>e.id||`v-selection-control-group-${n}`),o=S(()=>e.name||i.value),u=new Set;return Ce(ce,{modelValue:r,forceUpdate:()=>{u.forEach(l=>l())},onForceUpdate:l=>{u.add(l),Te(()=>{u.delete(l)})}}),Se({[e.defaultsTarget]:{color:y(e,"color"),disabled:y(e,"disabled"),density:y(e,"density"),error:y(e,"error"),inline:y(e,"inline"),modelValue:r,multiple:S(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:o,falseIcon:y(e,"falseIcon"),trueIcon:y(e,"trueIcon"),readonly:y(e,"readonly"),ripple:y(e,"ripple"),type:y(e,"type"),valueComparator:y(e,"valueComparator")}}),ue(()=>{var l;return x("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=t.default)==null?void 0:l.call(t)])}),{}}});const Jt=Q({label:String,trueValue:null,falseValue:null,value:null,...re(),...fe()},"VSelectionControl");function zt(e){const a=xe(ce,void 0),{densityClasses:t}=We(e),r=ie(e,"modelValue"),n=S(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),i=S(()=>e.falseValue!==void 0?e.falseValue:!1),o=S(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),u=S({get(){const c=a?a.modelValue.value:r.value;return o.value?c.some(f=>e.valueComparator(f,n.value)):e.valueComparator(c,n.value)},set(c){if(e.readonly)return;const f=c?n.value:i.value;let m=f;o.value&&(m=c?[...z(r.value),f]:z(r.value).filter(h=>!e.valueComparator(h,n.value))),a?a.modelValue.value=m:r.value=m}}),{textColorClasses:l,textColorStyles:d}=Ue(S(()=>u.value&&!e.error&&!e.disabled?e.color:void 0)),v=S(()=>u.value?e.trueIcon:e.falseIcon);return{group:a,densityClasses:t,trueValue:n,falseValue:i,model:u,textColorClasses:l,textColorStyles:d,icon:v}}const ta=ne()({name:"VSelectionControl",directives:{Ripple:pe},inheritAttrs:!1,props:Jt(),emits:{"update:modelValue":e=>!0},setup(e,a){let{attrs:t,slots:r}=a;const{group:n,densityClasses:i,icon:o,model:u,textColorClasses:l,textColorStyles:d,trueValue:v}=zt(e),c=oe(),f=S(()=>e.id||`input-${c}`),m=j(!1),h=j(!1),b=De();n==null||n.onForceUpdate(()=>{b.value&&(b.value.checked=u.value)});function C(T){m.value=!0,(!K||K&&T.target.matches(":focus-visible"))&&(h.value=!0)}function D(){m.value=!1,h.value=!1}function Y(T){e.readonly&&n&&_e(()=>n.forceUpdate()),u.value=T.target.checked}return ue(()=>{var O,M;const T=r.label?r.label({label:e.label,props:{for:f.value}}):e.label,[E,H]=Oe(t);return x("div",J({class:["v-selection-control",{"v-selection-control--dirty":u.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":h.value,"v-selection-control--inline":e.inline},i.value,e.class]},E,{style:e.style}),[x("div",{class:["v-selection-control__wrapper",l.value],style:d.value},[(O=r.default)==null?void 0:O.call(r),Me(x("div",{class:["v-selection-control__input"]},[o.value&&x(ke,{key:"icon",icon:o.value},null),x("input",J({ref:b,checked:u.value,disabled:!!(e.readonly||e.disabled),id:f.value,onBlur:D,onFocus:C,onInput:Y,"aria-disabled":!!(e.readonly||e.disabled),type:e.type,value:v.value,name:e.name,"aria-checked":e.type==="checkbox"?u.value:void 0},H),null),(M=r.input)==null?void 0:M.call(r,{model:u,textColorClasses:l,textColorStyles:d,props:{onFocus:C,onBlur:D,id:f.value}})]),[[Pe("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),T&&x(Ye,{for:f.value,clickable:!0},{default:()=>[T]})])}),{isFocused:m,input:b}}});export{ta as V,ea as f,Jt as m}; +import{p as Q,a0 as X,bq as we,a1 as re,a2 as ye,a5 as be,a6 as ne,a9 as ie,h as oe,c as S,e as Ce,bp as Te,ap as Se,al as y,ac as ue,F as x,bv as pe,s as j,r as De,aW as Oe,N as Me,bw as Pe,V as ke,H as J,i as xe,bb as We,bf as z,b6 as Ue,bx as K,z as _e}from"./index-cf33b3b8.js";import{e as Ye}from"./VInput-6b41ac51.js";function q(e){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},q(e)}function U(e){if(e===null||e===!0||e===!1)return NaN;var a=Number(e);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function g(e,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}function p(e){g(1,arguments);var a=Object.prototype.toString.call(e);return e instanceof Date||q(e)==="object"&&a==="[object Date]"?new Date(e.getTime()):typeof e=="number"||a==="[object Number]"?new Date(e):((typeof e=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ee(e,a){g(2,arguments);var t=p(e).getTime(),r=U(a);return new Date(t+r)}var Ve={};function R(){return Ve}function Fe(e){var a=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return a.setUTCFullYear(e.getFullYear()),e.getTime()-a.getTime()}function Ne(e){return g(1,arguments),e instanceof Date||q(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function $e(e){if(g(1,arguments),!Ne(e)&&typeof e!="number")return!1;var a=p(e);return!isNaN(Number(a))}function qe(e,a){g(2,arguments);var t=U(a);return Ee(e,-t)}var Ie=864e5;function Le(e){g(1,arguments);var a=p(e),t=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var r=a.getTime(),n=t-r;return Math.floor(n/Ie)+1}function I(e){g(1,arguments);var a=1,t=p(e),r=t.getUTCDay(),n=(r=n.getTime()?t+1:a.getTime()>=o.getTime()?t:t-1}function Re(e){g(1,arguments);var a=le(e),t=new Date(0);t.setUTCFullYear(a,0,4),t.setUTCHours(0,0,0,0);var r=I(t);return r}var He=6048e5;function Ae(e){g(1,arguments);var a=p(e),t=I(a).getTime()-Re(a).getTime();return Math.round(t/He)+1}function L(e,a){var t,r,n,i,o,u,l,d;g(1,arguments);var v=R(),c=U((t=(r=(n=(i=a==null?void 0:a.weekStartsOn)!==null&&i!==void 0?i:a==null||(o=a.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:v.weekStartsOn)!==null&&r!==void 0?r:(l=v.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=p(e),m=f.getUTCDay(),h=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(c+1,0,m),h.setUTCHours(0,0,0,0);var b=L(h,a),C=new Date(0);C.setUTCFullYear(c,0,m),C.setUTCHours(0,0,0,0);var D=L(C,a);return v.getTime()>=b.getTime()?c+1:v.getTime()>=D.getTime()?c:c-1}function Be(e,a){var t,r,n,i,o,u,l,d;g(1,arguments);var v=R(),c=U((t=(r=(n=(i=a==null?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:a==null||(o=a.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:v.firstWeekContainsDate)!==null&&r!==void 0?r:(l=v.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=se(e,a),m=new Date(0);m.setUTCFullYear(f,0,c),m.setUTCHours(0,0,0,0);var h=L(m,a);return h}var Ge=6048e5;function Qe(e,a){g(1,arguments);var t=p(e),r=L(t,a).getTime()-Be(t,a).getTime();return Math.round(r/Ge)+1}function s(e,a){for(var t=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return s(t==="yy"?n%100:n,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):s(r+1,2)},d:function(a,t){return s(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return s(a.getUTCHours()%12||12,t.length)},H:function(a,t){return s(a.getUTCHours(),t.length)},m:function(a,t){return s(a.getUTCMinutes(),t.length)},s:function(a,t){return s(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,n=a.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return s(i,t.length)}};const k=Xe;var _={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},je={G:function(a,t,r){var n=a.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(a,t,r){if(t==="yo"){var n=a.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return k.y(a,t)},Y:function(a,t,r,n){var i=se(a,n),o=i>0?i:1-i;if(t==="YY"){var u=o%100;return s(u,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(a,t){var r=le(a);return s(r,t.length)},u:function(a,t){var r=a.getUTCFullYear();return s(r,t.length)},Q:function(a,t,r){var n=Math.ceil((a.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(a,t,r){var n=Math.ceil((a.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(a,t,r){var n=a.getUTCMonth();switch(t){case"M":case"MM":return k.M(a,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(a,t,r){var n=a.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(a,t,r,n){var i=Qe(a,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):s(i,t.length)},I:function(a,t,r){var n=Ae(a);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(a,t,r){return t==="do"?r.ordinalNumber(a.getUTCDate(),{unit:"date"}):k.d(a,t)},D:function(a,t,r){var n=Le(a);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(a,t,r){var n=a.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(a,t,r,n){var i=a.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(a,t,r,n){var i=a.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(a,t,r){var n=a.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(a,t,r){var n=a.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(a,t,r){var n=a.getUTCHours(),i;switch(n===12?i=_.noon:n===0?i=_.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(a,t,r){var n=a.getUTCHours(),i;switch(n>=17?i=_.evening:n>=12?i=_.afternoon:n>=4?i=_.morning:i=_.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(a,t,r){if(t==="ho"){var n=a.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return k.h(a,t)},H:function(a,t,r){return t==="Ho"?r.ordinalNumber(a.getUTCHours(),{unit:"hour"}):k.H(a,t)},K:function(a,t,r){var n=a.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(a,t,r){var n=a.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(a,t,r){return t==="mo"?r.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):k.m(a,t)},s:function(a,t,r){return t==="so"?r.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):k.s(a,t)},S:function(a,t){return k.S(a,t)},X:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return ee(o);case"XXXX":case"XX":return W(o);case"XXXXX":case"XXX":default:return W(o,":")}},x:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();switch(t){case"x":return ee(o);case"xxxx":case"xx":return W(o);case"xxxxx":case"xxx":default:return W(o,":")}},O:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Z(o,":");case"OOOO":default:return"GMT"+W(o,":")}},z:function(a,t,r,n){var i=n._originalDate||a,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Z(o,":");case"zzzz":default:return"GMT"+W(o,":")}},t:function(a,t,r,n){var i=n._originalDate||a,o=Math.floor(i.getTime()/1e3);return s(o,t.length)},T:function(a,t,r,n){var i=n._originalDate||a,o=i.getTime();return s(o,t.length)}};function Z(e,a){var t=e>0?"-":"+",r=Math.abs(e),n=Math.floor(r/60),i=r%60;if(i===0)return t+String(n);var o=a||"";return t+String(n)+o+s(i,2)}function ee(e,a){if(e%60===0){var t=e>0?"-":"+";return t+s(Math.abs(e)/60,2)}return W(e,a)}function W(e,a){var t=a||"",r=e>0?"-":"+",n=Math.abs(e),i=s(Math.floor(n/60),2),o=s(n%60,2);return r+i+t+o}const Je=je;var te=function(a,t){switch(a){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},de=function(a,t){switch(a){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ze=function(a,t){var r=a.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return te(a,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",te(n,t)).replace("{{time}}",de(i,t))},Ke={p:de,P:ze};const Ze=Ke;var et=["D","DD"],tt=["YY","YYYY"];function at(e){return et.indexOf(e)!==-1}function rt(e){return tt.indexOf(e)!==-1}function ae(e,a,t){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},it=function(a,t,r){var n,i=nt[a];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const ot=it;function G(e){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=a.width?String(a.width):e.defaultWidth,r=e.formats[t]||e.formats[e.defaultWidth];return r}}var ut={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},st={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dt={date:G({formats:ut,defaultWidth:"full"}),time:G({formats:lt,defaultWidth:"full"}),dateTime:G({formats:st,defaultWidth:"full"})};const ct=dt;var ft={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},mt=function(a,t,r,n){return ft[a]};const vt=mt;function V(e){return function(a,t){var r=t!=null&&t.context?String(t.context):"standalone",n;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var u=e.defaultWidth,l=t!=null&&t.width?String(t.width):e.defaultWidth;n=e.values[l]||e.values[u]}var d=e.argumentCallback?e.argumentCallback(a):a;return n[d]}}var ht={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ct={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Tt=function(a,t){var r=Number(a),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},St={ordinalNumber:Tt,era:V({values:ht,defaultWidth:"wide"}),quarter:V({values:gt,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:V({values:wt,defaultWidth:"wide"}),day:V({values:yt,defaultWidth:"wide"}),dayPeriod:V({values:bt,defaultWidth:"wide",formattingValues:Ct,defaultFormattingWidth:"wide"})};const pt=St;function F(e){return function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=a.match(n);if(!i)return null;var o=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?Ot(u,function(c){return c.test(o)}):Dt(u,function(c){return c.test(o)}),d;d=e.valueCallback?e.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var v=a.slice(o.length);return{value:d,rest:v}}}function Dt(e,a){for(var t in e)if(e.hasOwnProperty(t)&&a(e[t]))return t}function Ot(e,a){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=a.match(e.matchPattern);if(!r)return null;var n=r[0],i=a.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=a.slice(n.length);return{value:o,rest:u}}}var Pt=/^(\d+)(th|st|nd|rd)?/i,kt=/\d+/i,xt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wt={any:[/^b/i,/^(a|c)/i]},Ut={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_t={any:[/1/i,/2/i,/3/i,/4/i]},Yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Et={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ft={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Nt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$t={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qt={ordinalNumber:Mt({matchPattern:Pt,parsePattern:kt,valueCallback:function(a){return parseInt(a,10)}}),era:F({matchPatterns:xt,defaultMatchWidth:"wide",parsePatterns:Wt,defaultParseWidth:"any"}),quarter:F({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:_t,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:F({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Et,defaultParseWidth:"any"}),day:F({matchPatterns:Vt,defaultMatchWidth:"wide",parsePatterns:Ft,defaultParseWidth:"any"}),dayPeriod:F({matchPatterns:Nt,defaultMatchWidth:"any",parsePatterns:$t,defaultParseWidth:"any"})};const It=qt;var Lt={code:"en-US",formatDistance:ot,formatLong:ct,formatRelative:vt,localize:pt,match:It,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Rt=Lt;var Ht=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,At=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bt=/^'([^]*?)'?$/,Gt=/''/g,Qt=/[a-zA-Z]/;function ea(e,a,t){var r,n,i,o,u,l,d,v,c,f,m,h,b,C,D,Y,T,E;g(2,arguments);var H=String(a),O=R(),M=(r=(n=t==null?void 0:t.locale)!==null&&n!==void 0?n:O.locale)!==null&&r!==void 0?r:Rt,A=U((i=(o=(u=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(d=t.locale)===null||d===void 0||(v=d.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&u!==void 0?u:O.firstWeekContainsDate)!==null&&o!==void 0?o:(c=O.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=U((m=(h=(b=(C=t==null?void 0:t.weekStartsOn)!==null&&C!==void 0?C:t==null||(D=t.locale)===null||D===void 0||(Y=D.options)===null||Y===void 0?void 0:Y.weekStartsOn)!==null&&b!==void 0?b:O.weekStartsOn)!==null&&h!==void 0?h:(T=O.locale)===null||T===void 0||(E=T.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&m!==void 0?m:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!M.localize)throw new RangeError("locale must contain localize property");if(!M.formatLong)throw new RangeError("locale must contain formatLong property");var N=p(e);if(!$e(N))throw new RangeError("Invalid time value");var me=Fe(N),ve=qe(N,me),he={firstWeekContainsDate:A,weekStartsOn:B,locale:M,_originalDate:N},ge=H.match(At).map(function(w){var P=w[0];if(P==="p"||P==="P"){var $=Ze[P];return $(w,M.formatLong)}return w}).join("").match(Ht).map(function(w){if(w==="''")return"'";var P=w[0];if(P==="'")return Xt(w);var $=Je[P];if($)return!(t!=null&&t.useAdditionalWeekYearTokens)&&rt(w)&&ae(w,a,String(e)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&at(w)&&ae(w,a,String(e)),$(ve,w,M.localize,he);if(P.match(Qt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");return w}).join("");return ge}function Xt(e){var a=e.match(Bt);return a?a[1].replace(Gt,"'"):e}const ce=Symbol.for("vuetify:selection-control-group"),fe=Q({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:X,trueIcon:X,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:we},...re(),...ye(),...be()},"SelectionControlGroup"),jt=Q({...fe({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");ne()({name:"VSelectionControlGroup",props:jt(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:t}=a;const r=ie(e,"modelValue"),n=oe(),i=S(()=>e.id||`v-selection-control-group-${n}`),o=S(()=>e.name||i.value),u=new Set;return Ce(ce,{modelValue:r,forceUpdate:()=>{u.forEach(l=>l())},onForceUpdate:l=>{u.add(l),Te(()=>{u.delete(l)})}}),Se({[e.defaultsTarget]:{color:y(e,"color"),disabled:y(e,"disabled"),density:y(e,"density"),error:y(e,"error"),inline:y(e,"inline"),modelValue:r,multiple:S(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:o,falseIcon:y(e,"falseIcon"),trueIcon:y(e,"trueIcon"),readonly:y(e,"readonly"),ripple:y(e,"ripple"),type:y(e,"type"),valueComparator:y(e,"valueComparator")}}),ue(()=>{var l;return x("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(l=t.default)==null?void 0:l.call(t)])}),{}}});const Jt=Q({label:String,trueValue:null,falseValue:null,value:null,...re(),...fe()},"VSelectionControl");function zt(e){const a=xe(ce,void 0),{densityClasses:t}=We(e),r=ie(e,"modelValue"),n=S(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),i=S(()=>e.falseValue!==void 0?e.falseValue:!1),o=S(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),u=S({get(){const c=a?a.modelValue.value:r.value;return o.value?c.some(f=>e.valueComparator(f,n.value)):e.valueComparator(c,n.value)},set(c){if(e.readonly)return;const f=c?n.value:i.value;let m=f;o.value&&(m=c?[...z(r.value),f]:z(r.value).filter(h=>!e.valueComparator(h,n.value))),a?a.modelValue.value=m:r.value=m}}),{textColorClasses:l,textColorStyles:d}=Ue(S(()=>u.value&&!e.error&&!e.disabled?e.color:void 0)),v=S(()=>u.value?e.trueIcon:e.falseIcon);return{group:a,densityClasses:t,trueValue:n,falseValue:i,model:u,textColorClasses:l,textColorStyles:d,icon:v}}const ta=ne()({name:"VSelectionControl",directives:{Ripple:pe},inheritAttrs:!1,props:Jt(),emits:{"update:modelValue":e=>!0},setup(e,a){let{attrs:t,slots:r}=a;const{group:n,densityClasses:i,icon:o,model:u,textColorClasses:l,textColorStyles:d,trueValue:v}=zt(e),c=oe(),f=S(()=>e.id||`input-${c}`),m=j(!1),h=j(!1),b=De();n==null||n.onForceUpdate(()=>{b.value&&(b.value.checked=u.value)});function C(T){m.value=!0,(!K||K&&T.target.matches(":focus-visible"))&&(h.value=!0)}function D(){m.value=!1,h.value=!1}function Y(T){e.readonly&&n&&_e(()=>n.forceUpdate()),u.value=T.target.checked}return ue(()=>{var O,M;const T=r.label?r.label({label:e.label,props:{for:f.value}}):e.label,[E,H]=Oe(t);return x("div",J({class:["v-selection-control",{"v-selection-control--dirty":u.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":h.value,"v-selection-control--inline":e.inline},i.value,e.class]},E,{style:e.style}),[x("div",{class:["v-selection-control__wrapper",l.value],style:d.value},[(O=r.default)==null?void 0:O.call(r),Me(x("div",{class:["v-selection-control__input"]},[o.value&&x(ke,{key:"icon",icon:o.value},null),x("input",J({ref:b,checked:u.value,disabled:!!(e.readonly||e.disabled),id:f.value,onBlur:D,onFocus:C,onInput:Y,"aria-disabled":!!(e.readonly||e.disabled),type:e.type,value:v.value,name:e.name,"aria-checked":e.type==="checkbox"?u.value:void 0},H),null),(M=r.input)==null?void 0:M.call(r,{model:u,textColorClasses:l,textColorStyles:d,props:{onFocus:C,onBlur:D,id:f.value}})]),[[Pe("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),T&&x(Ye,{for:f.value,clickable:!0},{default:()=>[T]})])}),{isFocused:m,input:b}}});export{ta as V,ea as f,Jt as m}; diff --git a/src/front/dist/assets/VSpacer-0a06d07c.js b/src/front/dist/assets/VSpacer-0a06d07c.js new file mode 100644 index 000000000..9c9f008d3 --- /dev/null +++ b/src/front/dist/assets/VSpacer-0a06d07c.js @@ -0,0 +1 @@ +import{bj as e}from"./index-cf33b3b8.js";const a=e("flex-grow-1","div","VSpacer");export{a as V}; diff --git a/src/front/dist/assets/VSpacer-d6de9106.js b/src/front/dist/assets/VSpacer-d6de9106.js deleted file mode 100644 index 770b6dafa..000000000 --- a/src/front/dist/assets/VSpacer-d6de9106.js +++ /dev/null @@ -1 +0,0 @@ -import{bi as e}from"./index-09dc9553.js";const a=e("flex-grow-1","div","VSpacer");export{a as V}; diff --git a/src/front/dist/assets/VTextarea-20d645b1.js b/src/front/dist/assets/VTextarea-eca486a5.js similarity index 82% rename from src/front/dist/assets/VTextarea-20d645b1.js rename to src/front/dist/assets/VTextarea-eca486a5.js index 79a46934e..60fd79f9f 100644 --- a/src/front/dist/assets/VTextarea-20d645b1.js +++ b/src/front/dist/assets/VTextarea-eca486a5.js @@ -1 +1 @@ -import{s as G,o as D,c as g,bO as ee,p as te,a6 as ae,bx as ne,a9 as le,r as x,at as oe,w as m,l as ue,ac as ie,aW as re,F as l,H as k,Z as I,N as z,bv as se,bP as ce,be as de,z as R,bh as fe,b as ve,aa as xe}from"./index-09dc9553.js";import{m as me,a as ge,u as he,V as _,f as we,b as Ve,c as ye}from"./VInput-2f5042f3.js";function be(){const e=G(!1);return D(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:g(()=>e.value?void 0:{transition:"none !important"}),isBooted:ee(e)}}const Fe=te({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...me(),...ge()},"VTextarea"),Se=ae()({name:"VTextarea",directives:{Intersect:ne},inheritAttrs:!1,props:Fe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,B){let{attrs:F,emit:H,slots:i}=B;const o=le(e,"modelValue"),{isFocused:f,focus:E,blur:U}=he(e),O=g(()=>typeof e.counterValue=="function"?e.counterValue(o.value):(o.value||"").toString().length),$=g(()=>{if(F.maxlength)return F.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function j(t,n){var a,u;!e.autofocus||!t||(u=(a=n[0].target)==null?void 0:a.focus)==null||u.call(a)}const M=x(),h=x(),N=G(""),w=x(),q=g(()=>e.persistentPlaceholder||f.value||e.active);function P(){var t;w.value!==document.activeElement&&((t=w.value)==null||t.focus()),f.value||E()}function W(t){P(),H("click:control",t)}function Z(t){H("mousedown:control",t)}function J(t){t.stopPropagation(),P(),R(()=>{o.value="",fe(e["onClick:clear"],t)})}function K(t){var a;const n=t.target;if(o.value=n.value,(a=e.modelModifiers)!=null&&a.trim){const u=[n.selectionStart,n.selectionEnd];R(()=>{n.selectionStart=u[0],n.selectionEnd=u[1]})}}const c=x(),V=x(+e.rows),C=g(()=>["plain","underlined"].includes(e.variant));oe(()=>{e.autoGrow||(V.value=+e.rows)});function d(){e.autoGrow&&R(()=>{if(!c.value||!h.value)return;const t=getComputedStyle(c.value),n=getComputedStyle(h.value.$el),a=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),u=c.value.scrollHeight,y=parseFloat(t.lineHeight),b=Math.max(parseFloat(e.rows)*y+a,parseFloat(n.getPropertyValue("--v-input-control-height"))),S=parseFloat(e.maxRows)*y+a||1/0,s=xe(u??0,b,S);V.value=Math.floor((s-a)/y),N.value=ve(s)})}D(d),m(o,d),m(()=>e.rows,d),m(()=>e.maxRows,d),m(()=>e.density,d);let r;return m(c,t=>{t?(r=new ResizeObserver(d),r.observe(c.value)):r==null||r.disconnect()}),ue(()=>{r==null||r.disconnect()}),ie(()=>{const t=!!(i.counter||e.counter||e.counterValue),n=!!(t||i.details),[a,u]=re(F),[{modelValue:y,...b}]=_.filterProps(e),[S]=we(e);return l(_,k({ref:M,modelValue:o.value,"onUpdate:modelValue":s=>o.value=s,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-text-field--plain-underlined":C.value},e.class],style:e.style},a,b,{centerAffix:V.value===1&&!C.value,focused:f.value}),{...i,default:s=>{let{isDisabled:v,isDirty:T,isReadonly:L,isValid:Q}=s;return l(Ve,k({ref:h,style:{"--v-textarea-control-height":N.value},onClick:W,onMousedown:Z,"onClick:clear":J,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:"textbox"},S,{active:q.value||T.value,centerAffix:V.value===1&&!C.value,dirty:T.value||e.dirty,disabled:v.value,focused:f.value,error:Q.value===!1}),{...i,default:X=>{let{props:{class:A,...Y}}=X;return l(I,null,[e.prefix&&l("span",{class:"v-text-field__prefix"},[e.prefix]),z(l("textarea",k({ref:w,class:A,value:o.value,onInput:K,autofocus:e.autofocus,readonly:L.value,disabled:v.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:P,onBlur:U},Y,u),null),[[se("intersect"),{handler:j},null,{once:!0}]]),e.autoGrow&&z(l("textarea",{class:[A,"v-textarea__sizer"],"onUpdate:modelValue":p=>o.value=p,ref:c,readonly:!0,"aria-hidden":"true"},null),[[ce,o.value]]),e.suffix&&l("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:n?s=>{var v;return l(I,null,[(v=i.details)==null?void 0:v.call(i,s),t&&l(I,null,[l("span",null,null),l(ye,{active:e.persistentCounter||f.value,value:O.value,max:$.value},i.counter)])])}:void 0})}),de({},M,h,w)}});export{Se as V,be as u}; +import{s as G,o as D,c as g,bP as ee,p as te,a6 as ae,by as ne,a9 as le,r as x,at as oe,w as m,l as ue,ac as ie,aW as re,F as l,H as k,Z as I,N as z,bw as se,bQ as ce,be as de,z as R,bh as fe,b as ve,aa as xe}from"./index-cf33b3b8.js";import{m as me,a as ge,u as he,V as _,f as we,b as Ve,c as ye}from"./VInput-6b41ac51.js";function be(){const e=G(!1);return D(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:g(()=>e.value?void 0:{transition:"none !important"}),isBooted:ee(e)}}const Fe=te({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...me(),...ge()},"VTextarea"),Se=ae()({name:"VTextarea",directives:{Intersect:ne},inheritAttrs:!1,props:Fe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,B){let{attrs:F,emit:H,slots:i}=B;const o=le(e,"modelValue"),{isFocused:f,focus:E,blur:U}=he(e),O=g(()=>typeof e.counterValue=="function"?e.counterValue(o.value):(o.value||"").toString().length),$=g(()=>{if(F.maxlength)return F.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function j(t,n){var a,u;!e.autofocus||!t||(u=(a=n[0].target)==null?void 0:a.focus)==null||u.call(a)}const M=x(),h=x(),N=G(""),w=x(),q=g(()=>e.persistentPlaceholder||f.value||e.active);function P(){var t;w.value!==document.activeElement&&((t=w.value)==null||t.focus()),f.value||E()}function Q(t){P(),H("click:control",t)}function W(t){H("mousedown:control",t)}function Z(t){t.stopPropagation(),P(),R(()=>{o.value="",fe(e["onClick:clear"],t)})}function J(t){var a;const n=t.target;if(o.value=n.value,(a=e.modelModifiers)!=null&&a.trim){const u=[n.selectionStart,n.selectionEnd];R(()=>{n.selectionStart=u[0],n.selectionEnd=u[1]})}}const c=x(),V=x(+e.rows),C=g(()=>["plain","underlined"].includes(e.variant));oe(()=>{e.autoGrow||(V.value=+e.rows)});function d(){e.autoGrow&&R(()=>{if(!c.value||!h.value)return;const t=getComputedStyle(c.value),n=getComputedStyle(h.value.$el),a=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),u=c.value.scrollHeight,y=parseFloat(t.lineHeight),b=Math.max(parseFloat(e.rows)*y+a,parseFloat(n.getPropertyValue("--v-input-control-height"))),S=parseFloat(e.maxRows)*y+a||1/0,s=xe(u??0,b,S);V.value=Math.floor((s-a)/y),N.value=ve(s)})}D(d),m(o,d),m(()=>e.rows,d),m(()=>e.maxRows,d),m(()=>e.density,d);let r;return m(c,t=>{t?(r=new ResizeObserver(d),r.observe(c.value)):r==null||r.disconnect()}),ue(()=>{r==null||r.disconnect()}),ie(()=>{const t=!!(i.counter||e.counter||e.counterValue),n=!!(t||i.details),[a,u]=re(F),[{modelValue:y,...b}]=_.filterProps(e),[S]=we(e);return l(_,k({ref:M,modelValue:o.value,"onUpdate:modelValue":s=>o.value=s,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-text-field--plain-underlined":C.value},e.class],style:e.style},a,b,{centerAffix:V.value===1&&!C.value,focused:f.value}),{...i,default:s=>{let{isDisabled:v,isDirty:T,isReadonly:K,isValid:L}=s;return l(Ve,k({ref:h,style:{"--v-textarea-control-height":N.value},onClick:Q,onMousedown:W,"onClick:clear":Z,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:"textbox"},S,{active:q.value||T.value,centerAffix:V.value===1&&!C.value,dirty:T.value||e.dirty,disabled:v.value,focused:f.value,error:L.value===!1}),{...i,default:X=>{let{props:{class:A,...Y}}=X;return l(I,null,[e.prefix&&l("span",{class:"v-text-field__prefix"},[e.prefix]),z(l("textarea",k({ref:w,class:A,value:o.value,onInput:J,autofocus:e.autofocus,readonly:K.value,disabled:v.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:P,onBlur:U},Y,u),null),[[se("intersect"),{handler:j},null,{once:!0}]]),e.autoGrow&&z(l("textarea",{class:[A,"v-textarea__sizer"],"onUpdate:modelValue":p=>o.value=p,ref:c,readonly:!0,"aria-hidden":"true"},null),[[ce,o.value]]),e.suffix&&l("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:n?s=>{var v;return l(I,null,[(v=i.details)==null?void 0:v.call(i,s),t&&l(I,null,[l("span",null,null),l(ye,{active:e.persistentCounter||f.value,value:O.value,max:$.value},i.counter)])])}:void 0})}),de({},M,h,w)}});export{Se as V,be as u}; diff --git a/src/front/dist/assets/VTooltip-04fe483e.js b/src/front/dist/assets/VTooltip-04fe483e.js new file mode 100644 index 000000000..3b11fb18a --- /dev/null +++ b/src/front/dist/assets/VTooltip-04fe483e.js @@ -0,0 +1 @@ +import{p as D,b5 as Se,a6 as W,b6 as we,c as b,s as P,r as $,ac as N,F as i,H as U,b7 as ze,b8 as Pe,a0 as le,a1 as Re,a4 as xe,ag as Ie,av as Be,b9 as Ae,w as Oe,V as se,ba as Ee,aa as Me,a2 as $e,a9 as pe,bb as Ue,ak as Fe,al as z,ap as Ge,b as He,_ as Le,A as De,U as We,W as Ne,C as M,D as j,E as m,G as oe,J as Ye,K as ne,L as ie,aq as qe,Y as re,$ as ue,Z as ce,M as Xe,R as Ke,n as je,S as H,ad as L,bc as Je,ax as Ze,h as Qe,bd as de,be as et}from"./index-cf33b3b8.js";import{m as tt,V as Z,u as ve}from"./VBtn-11d9d7ef.js";import{a as at,b as lt,c as fe}from"./group-2cdf27ee.js";import{V as st,a as ot}from"./VWindowItem-46132c15.js";import{c as J,d as me,b as ge}from"./VList-30a0199c.js";const Ve=Symbol.for("vuetify:v-tabs"),nt=D({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Se(tt({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),_e=W()({name:"VTab",props:nt(),setup(e,r){let{slots:o,attrs:t}=r;const{textColorClasses:g,textColorStyles:n}=we(e,"sliderColor"),a=b(()=>e.direction==="horizontal"),l=P(!1),d=$(),u=$();function v(y){var f,V;let{value:h}=y;if(l.value=h,h){const x=(V=(f=d.value)==null?void 0:f.$el.parentElement)==null?void 0:V.querySelector(".v-tab--selected .v-tab__slider"),C=u.value;if(!x||!C)return;const R=getComputedStyle(x).color,_=x.getBoundingClientRect(),k=C.getBoundingClientRect(),I=a.value?"x":"y",B=a.value?"X":"Y",F=a.value?"right":"bottom",T=a.value?"width":"height",A=_[I],Y=k[I],w=A>Y?_[F]-k[F]:_[I]-k[I],q=Math.sign(w)>0?a.value?"right":"bottom":Math.sign(w)<0?a.value?"left":"top":"center",S=(Math.abs(w)+(Math.sign(w)<0?_[T]:k[T]))/Math.max(_[T],k[T]),E=_[T]/k[T],G=1.5;ze(C,{backgroundColor:[R,"currentcolor"],transform:[`translate${B}(${w}px) scale${B}(${E})`,`translate${B}(${w/G}px) scale${B}(${(S-1)/G+1})`,"none"],transformOrigin:Array(3).fill(q)},{duration:225,easing:Pe})}}return N(()=>{const[y]=Z.filterProps(e);return i(Z,U({symbol:Ve,ref:d,class:["v-tab",e.class],style:e.style,tabindex:l.value?0:-1,role:"tab","aria-selected":String(l.value),active:!1,block:e.fixed,maxWidth:e.fixed?300:void 0,rounded:0},y,t,{"onGroup:selected":v}),{default:()=>{var h;return[((h=o.default)==null?void 0:h.call(o))??e.text,!e.hideSlider&&i("div",{ref:u,class:["v-tab__slider",g.value],style:n.value},null)]}})}),{}}});function be(e){const o=Math.abs(e);return Math.sign(e)*(o/((1/.501-2)*(1-o)+1))}function he(e){let{selectedElement:r,containerSize:o,contentSize:t,isRtl:g,currentScrollOffset:n,isHorizontal:a}=e;const l=a?r.clientWidth:r.clientHeight,d=a?r.offsetLeft:r.offsetTop,u=g&&a?t-d-l:d,v=o+n,y=l+u,h=l*.4;return u<=n?n=Math.max(u-h,0):v<=y&&(n=Math.min(n-(v-y-h),t-o)),n}function it(e){let{selectedElement:r,containerSize:o,contentSize:t,isRtl:g,isHorizontal:n}=e;const a=n?r.clientWidth:r.clientHeight,l=n?r.offsetLeft:r.offsetTop,d=g&&n?t-l-a/2-o/2:l+a/2-o/2;return Math.min(t-o,Math.max(0,d))}const rt=Symbol.for("vuetify:v-slide-group"),ke=D({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:rt},nextIcon:{type:le,default:"$next"},prevIcon:{type:le,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Re(),...xe(),...at({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),ye=W()({name:"VSlideGroup",props:ke(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:o}=r;const{isRtl:t}=Ie(),{mobile:g}=Be(),n=lt(e,e.symbol),a=P(!1),l=P(0),d=P(0),u=P(0),v=b(()=>e.direction==="horizontal"),{resizeRef:y,contentRect:h}=ve(),{resizeRef:f,contentRect:V}=ve(),x=b(()=>n.selected.value.length?n.items.value.findIndex(s=>s.id===n.selected.value[0]):-1),C=b(()=>n.selected.value.length?n.items.value.findIndex(s=>s.id===n.selected.value[n.selected.value.length-1]):-1);if(Ae){let s=-1;Oe(()=>[n.selected.value,h.value,V.value,v.value],()=>{cancelAnimationFrame(s),s=requestAnimationFrame(()=>{if(h.value&&V.value){const c=v.value?"width":"height";d.value=h.value[c],u.value=V.value[c],a.value=d.value+1=0&&f.value){const c=f.value.children[C.value];x.value===0||!a.value?l.value=0:e.centerActive?l.value=it({selectedElement:c,containerSize:d.value,contentSize:u.value,isRtl:t.value,isHorizontal:v.value}):a.value&&(l.value=he({selectedElement:c,containerSize:d.value,contentSize:u.value,isRtl:t.value,currentScrollOffset:l.value,isHorizontal:v.value}))}})})}const R=P(!1);let _=0,k=0;function I(s){const c=v.value?"clientX":"clientY";k=(t.value&&v.value?-1:1)*l.value,_=s.touches[0][c],R.value=!0}function B(s){if(!a.value)return;const c=v.value?"clientX":"clientY",p=t.value&&v.value?-1:1;l.value=p*(k+_-s.touches[0][c])}function F(s){const c=u.value-d.value;l.value<0||!a.value?l.value=0:l.value>=c&&(l.value=c),R.value=!1}function T(){y.value&&(y.value[v.value?"scrollLeft":"scrollTop"]=0)}const A=P(!1);function Y(s){if(A.value=!0,!(!a.value||!f.value)){for(const c of s.composedPath())for(const p of f.value.children)if(p===c){l.value=he({selectedElement:p,containerSize:d.value,contentSize:u.value,isRtl:t.value,currentScrollOffset:l.value,isHorizontal:v.value});return}}}function w(s){A.value=!1}function q(s){var c;!A.value&&!(s.relatedTarget&&((c=f.value)!=null&&c.contains(s.relatedTarget)))&&S()}function Q(s){f.value&&(v.value?s.key==="ArrowRight"?S(t.value?"prev":"next"):s.key==="ArrowLeft"&&S(t.value?"next":"prev"):s.key==="ArrowDown"?S("next"):s.key==="ArrowUp"&&S("prev"),s.key==="Home"?S("first"):s.key==="End"&&S("last"))}function S(s){var c,p,ee,te,ae;if(f.value)if(!s)(c=Ee(f.value)[0])==null||c.focus();else if(s==="next"){const O=(p=f.value.querySelector(":focus"))==null?void 0:p.nextElementSibling;O?O.focus():S("first")}else if(s==="prev"){const O=(ee=f.value.querySelector(":focus"))==null?void 0:ee.previousElementSibling;O?O.focus():S("last")}else s==="first"?(te=f.value.firstElementChild)==null||te.focus():s==="last"&&((ae=f.value.lastElementChild)==null||ae.focus())}function E(s){const c=l.value+(s==="prev"?-1:1)*d.value;l.value=Me(c,0,u.value-d.value)}const G=b(()=>{let s=l.value>u.value-d.value?-(u.value-d.value)+be(u.value-d.value-l.value):-l.value;l.value<=0&&(s=be(-l.value));const c=t.value&&v.value?-1:1;return{transform:`translate${v.value?"X":"Y"}(${c*s}px)`,transition:R.value?"none":"",willChange:R.value?"transform":""}}),X=b(()=>({next:n.next,prev:n.prev,select:n.select,isSelected:n.isSelected})),K=b(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!g.value;case!0:return a.value||Math.abs(l.value)>0;case"mobile":return g.value||a.value||Math.abs(l.value)>0;default:return!g.value&&(a.value||Math.abs(l.value)>0)}}),Ce=b(()=>Math.abs(l.value)>0),Te=b(()=>u.value>Math.abs(l.value)+d.value);return N(()=>i(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!v.value,"v-slide-group--has-affixes":K.value,"v-slide-group--is-overflowing":a.value},e.class],style:e.style,tabindex:A.value||n.selected.value.length?-1:0,onFocus:q},{default:()=>{var s,c,p;return[K.value&&i("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!Ce.value}],onClick:()=>E("prev")},[((s=o.prev)==null?void 0:s.call(o,X.value))??i(fe,null,{default:()=>[i(se,{icon:t.value?e.nextIcon:e.prevIcon},null)]})]),i("div",{key:"container",ref:y,class:"v-slide-group__container",onScroll:T},[i("div",{ref:f,class:"v-slide-group__content",style:G.value,onTouchstartPassive:I,onTouchmovePassive:B,onTouchendPassive:F,onFocusin:Y,onFocusout:w,onKeydown:Q},[(c=o.default)==null?void 0:c.call(o,X.value)])]),K.value&&i("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!Te.value}],onClick:()=>E("next")},[((p=o.next)==null?void 0:p.call(o,X.value))??i(fe,null,{default:()=>[i(se,{icon:t.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:n.selected,scrollTo:E,scrollOffset:l,focus:S}}});function ut(e){return e?e.map(r=>typeof r=="string"?{title:r,value:r}:r):[]}const ct=D({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...ke({mandatory:"force"}),...$e(),...xe()},"VTabs"),dt=W()({name:"VTabs",props:ct(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:o}=r;const t=pe(e,"modelValue"),g=b(()=>ut(e.items)),{densityClasses:n}=Ue(e),{backgroundColorClasses:a,backgroundColorStyles:l}=Fe(z(e,"bgColor"));return Ge({VTab:{color:z(e,"color"),direction:z(e,"direction"),stacked:z(e,"stacked"),fixed:z(e,"fixedTabs"),sliderColor:z(e,"sliderColor"),hideSlider:z(e,"hideSlider")}}),N(()=>{const[d]=ye.filterProps(e);return i(ye,U(d,{modelValue:t.value,"onUpdate:modelValue":u=>t.value=u,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},n.value,a.value,e.class],style:[{"--v-tabs-height":He(e.height)},l.value,e.style],role:"tablist",symbol:Ve}),{default:()=>[o.default?o.default():g.value.map(u=>i(_e,U(u,{key:u.title}),null))]})}),{}}}),vt={props:{menuGetUserDialog:{type:Boolean,default:!1},loging:{type:String,default:""}},setup(e,r){const o=De(),t=$([]),g=$(!1),n=async()=>{const u=await je.get("api/accounts/getuser/?userlogin="+e.loging);t.value=u.data},a=()=>[{title:"Отдел:",info:t.value.department},{title:"ФИО:",info:t.value.fio},{title:"Должность:",info:t.value.post}],l=()=>[{title:"E-mail: ",info:t.value.email},{title:"Телефон: ",info:t.value.tel},{title:"Комната: ",info:t.value.room},{title:"Логин: ",info:t.value.login}];function d(){r.emit("menusClose")}return n(),{menusCloses:d,userlinks:t,accountStore:o,basicInformation:a,subInformation:l,checkremote:We,spravURL:Ne,tab:g}}},ft={class:"font-weight-medium"},mt={class:"text-subtitle-1"},gt={class:"font-weight-medium"},bt={class:"text-subtitle-1"};function ht(e,r,o,t,g,n){return M(),j(Ke,null,{default:m(()=>[i(dt,{modelValue:t.tab,"onUpdate:modelValue":r[0]||(r[0]=a=>t.tab=a),"bg-color":"teal-darken-3",class:"bggrad ma-1","slider-color":"teal-darken-2",grow:""},{default:m(()=>[i(_e,{"selected-class":"isActiveTab",rounde:"none",value:"one"},{default:m(()=>[oe("Информация")]),_:1})]),_:1},8,["modelValue"]),i(ot,{modelValue:t.tab,"onUpdate:modelValue":r[1]||(r[1]=a=>t.tab=a)},{default:m(()=>[i(st,{class:"highttext",value:"one"},{default:m(()=>[i(Ye,{class:"flex-column d-flex pb-0"},{default:m(()=>[i(ne,{class:"flex-grow-0"},{default:m(()=>[i(J),i(ie,{class:"pa-0",lg:"4"},{default:m(()=>[i(qe,{class:"h-100",cover:"",src:t.checkremote(`${t.spravURL}${t.userlinks.login}.jpg`)},null,8,["src"])]),_:1}),i(ie,{class:"pa-0"},{default:m(()=>[i(me,{class:"pt-0 custom_subtitle"},{default:m(()=>[(M(!0),re(ce,null,ue(t.basicInformation(),a=>(M(),j(ge,{key:a},{title:m(()=>[H("span",ft,L(a.title),1)]),subtitle:m(()=>[H("span",mt,L(a.info),1)]),_:2},1024))),128))]),_:1})]),_:1}),i(J)]),_:1}),i(ne,{class:"flex-grow-0"},{default:m(()=>[i(me,{class:"pa-0 pt-3 custom_subtitle",density:""},{default:m(()=>[(M(!0),re(ce,null,ue(t.subInformation(),a=>(M(),j(ge,{key:a,class:"py-0"},{title:m(()=>[H("span",gt,L(a.title),1),H("span",bt,L(a.info),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),i(J),i(Xe,{class:"align-self-end pt-0"},{default:m(()=>[i(Z,{color:"modal_btn",variant:"text",onClick:t.menusCloses},{default:m(()=>[oe(" Закрыть ")]),_:1},8,["onClick"])]),_:1})]),_:1})}const kt=Le(vt,[["render",ht]]);const yt=D({id:String,text:String,...Se(Je({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Ct=W()({name:"VTooltip",props:yt(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:o}=r;const t=pe(e,"modelValue"),{scopeId:g}=Ze(),n=Qe(),a=b(()=>e.id||`v-tooltip-${n}`),l=$(),d=b(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=b(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),v=b(()=>e.transition?e.transition:t.value?"scale-transition":"fade-transition"),y=b(()=>U({"aria-describedby":a.value},e.activatorProps));return N(()=>{const[h]=de.filterProps(e);return i(de,U({ref:l,class:["v-tooltip",e.class],style:e.style,id:a.value},h,{modelValue:t.value,"onUpdate:modelValue":f=>t.value=f,transition:v.value,absolute:!0,location:d.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:y.value,_disableGlobalStack:!0},g),{activator:o.activator,default:function(){var C;for(var f=arguments.length,V=new Array(f),x=0;xe.direction==="horizontal"),l=R(!1),d=H(),u=H();function f(y){var m,V;let{value:h}=y;if(l.value=h,h){const x=(V=(m=d.value)==null?void 0:m.$el.parentElement)==null?void 0:V.querySelector(".v-tab--selected .v-tab__slider"),T=u.value;if(!x||!T)return;const A=getComputedStyle(x).color,_=x.getBoundingClientRect(),k=T.getBoundingClientRect(),I=a.value?"x":"y",B=a.value?"X":"Y",D=a.value?"right":"bottom",w=a.value?"width":"height",O=_[I],ee=k[I],z=O>ee?_[D]-k[D]:_[I]-k[I],te=Math.sign(z)>0?a.value?"right":"bottom":Math.sign(z)<0?a.value?"left":"top":"center",S=(Math.abs(z)+(Math.sign(z)<0?_[w]:k[w]))/Math.max(_[w],k[w]),$=_[w]/k[w],W=1.5;Pe(T,{backgroundColor:[A,"currentcolor"],transform:[`translate${B}(${z}px) scale${B}(${$})`,`translate${B}(${z/W}px) scale${B}(${(S-1)/W+1})`,"none"],transformOrigin:Array(3).fill(te)},{duration:225,easing:Re})}}return Q(()=>{const[y]=oe.filterProps(e);return o(oe,L({symbol:ke,ref:d,class:["v-tab",e.class],style:e.style,tabindex:l.value?0:-1,role:"tab","aria-selected":String(l.value),active:!1,block:e.fixed,maxWidth:e.fixed?300:void 0,rounded:0},y,t,{"onGroup:selected":f}),{default:()=>{var h;return[((h=n.default)==null?void 0:h.call(n))??e.text,!e.hideSlider&&o("div",{ref:u,class:["v-tab__slider",g.value],style:i.value},null)]}})}),{}}});function ye(e){const n=Math.abs(e);return Math.sign(e)*(n/((1/.501-2)*(1-n)+1))}function Se(e){let{selectedElement:r,containerSize:n,contentSize:t,isRtl:g,currentScrollOffset:i,isHorizontal:a}=e;const l=a?r.clientWidth:r.clientHeight,d=a?r.offsetLeft:r.offsetTop,u=g&&a?t-d-l:d,f=n+i,y=l+u,h=l*.4;return u<=i?i=Math.max(u-h,0):f<=y&&(i=Math.min(i-(f-y-h),t-n)),i}function it(e){let{selectedElement:r,containerSize:n,contentSize:t,isRtl:g,isHorizontal:i}=e;const a=i?r.clientWidth:r.clientHeight,l=i?r.offsetLeft:r.offsetTop,d=g&&i?t-l-a/2-n/2:l+a/2-n/2;return Math.min(t-n,Math.max(0,d))}const rt=Symbol.for("vuetify:v-slide-group"),Ce=J({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:rt},nextIcon:{type:ce,default:"$next"},prevIcon:{type:ce,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Ae(),...Ve(),...lt({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),xe=Z()({name:"VSlideGroup",props:Ce(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:n}=r;const{isRtl:t}=Ie(),{mobile:g}=Be(),i=st(e,e.symbol),a=R(!1),l=R(0),d=R(0),u=R(0),f=b(()=>e.direction==="horizontal"),{resizeRef:y,contentRect:h}=ge(),{resizeRef:m,contentRect:V}=ge(),x=b(()=>i.selected.value.length?i.items.value.findIndex(s=>s.id===i.selected.value[0]):-1),T=b(()=>i.selected.value.length?i.items.value.findIndex(s=>s.id===i.selected.value[i.selected.value.length-1]):-1);if(Oe){let s=-1;Ee(()=>[i.selected.value,h.value,V.value,f.value],()=>{cancelAnimationFrame(s),s=requestAnimationFrame(()=>{if(h.value&&V.value){const c=f.value?"width":"height";d.value=h.value[c],u.value=V.value[c],a.value=d.value+1=0&&m.value){const c=m.value.children[T.value];x.value===0||!a.value?l.value=0:e.centerActive?l.value=it({selectedElement:c,containerSize:d.value,contentSize:u.value,isRtl:t.value,isHorizontal:f.value}):a.value&&(l.value=Se({selectedElement:c,containerSize:d.value,contentSize:u.value,isRtl:t.value,currentScrollOffset:l.value,isHorizontal:f.value}))}})})}const A=R(!1);let _=0,k=0;function I(s){const c=f.value?"clientX":"clientY";k=(t.value&&f.value?-1:1)*l.value,_=s.touches[0][c],A.value=!0}function B(s){if(!a.value)return;const c=f.value?"clientX":"clientY",p=t.value&&f.value?-1:1;l.value=p*(k+_-s.touches[0][c])}function D(s){const c=u.value-d.value;l.value<0||!a.value?l.value=0:l.value>=c&&(l.value=c),A.value=!1}function w(){y.value&&(y.value[f.value?"scrollLeft":"scrollTop"]=0)}const O=R(!1);function ee(s){if(O.value=!0,!(!a.value||!m.value)){for(const c of s.composedPath())for(const p of m.value.children)if(p===c){l.value=Se({selectedElement:p,containerSize:d.value,contentSize:u.value,isRtl:t.value,currentScrollOffset:l.value,isHorizontal:f.value});return}}}function z(s){O.value=!1}function te(s){var c;!O.value&&!(s.relatedTarget&&((c=m.value)!=null&&c.contains(s.relatedTarget)))&&S()}function ne(s){m.value&&(f.value?s.key==="ArrowRight"?S(t.value?"prev":"next"):s.key==="ArrowLeft"&&S(t.value?"next":"prev"):s.key==="ArrowDown"?S("next"):s.key==="ArrowUp"&&S("prev"),s.key==="Home"?S("first"):s.key==="End"&&S("last"))}function S(s){var c,p,ie,re,ue;if(m.value)if(!s)(c=Me(m.value)[0])==null||c.focus();else if(s==="next"){const E=(p=m.value.querySelector(":focus"))==null?void 0:p.nextElementSibling;E?E.focus():S("first")}else if(s==="prev"){const E=(ie=m.value.querySelector(":focus"))==null?void 0:ie.previousElementSibling;E?E.focus():S("last")}else s==="first"?(re=m.value.firstElementChild)==null||re.focus():s==="last"&&((ue=m.value.lastElementChild)==null||ue.focus())}function $(s){const c=l.value+(s==="prev"?-1:1)*d.value;l.value=Ue(c,0,u.value-d.value)}const W=b(()=>{let s=l.value>u.value-d.value?-(u.value-d.value)+ye(u.value-d.value-l.value):-l.value;l.value<=0&&(s=ye(-l.value));const c=t.value&&f.value?-1:1;return{transform:`translate${f.value?"X":"Y"}(${c*s}px)`,transition:A.value?"none":"",willChange:A.value?"transform":""}}),ae=b(()=>({next:i.next,prev:i.prev,select:i.select,isSelected:i.isSelected})),le=b(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!g.value;case!0:return a.value||Math.abs(l.value)>0;case"mobile":return g.value||a.value||Math.abs(l.value)>0;default:return!g.value&&(a.value||Math.abs(l.value)>0)}}),Te=b(()=>Math.abs(l.value)>0),we=b(()=>u.value>Math.abs(l.value)+d.value);return Q(()=>o(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":le.value,"v-slide-group--is-overflowing":a.value},e.class],style:e.style,tabindex:O.value||i.selected.value.length?-1:0,onFocus:te},{default:()=>{var s,c,p;return[le.value&&o("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!Te.value}],onClick:()=>$("prev")},[((s=n.prev)==null?void 0:s.call(n,ae.value))??o(be,null,{default:()=>[o(de,{icon:t.value?e.nextIcon:e.prevIcon},null)]})]),o("div",{key:"container",ref:y,class:"v-slide-group__container",onScroll:w},[o("div",{ref:m,class:"v-slide-group__content",style:W.value,onTouchstartPassive:I,onTouchmovePassive:B,onTouchendPassive:D,onFocusin:ee,onFocusout:z,onKeydown:ne},[(c=n.default)==null?void 0:c.call(n,ae.value)])]),le.value&&o("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!we.value}],onClick:()=>$("next")},[((p=n.next)==null?void 0:p.call(n,ae.value))??o(be,null,{default:()=>[o(de,{icon:t.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:i.selected,scrollTo:$,scrollOffset:l,focus:S}}});function ut(e){return e?e.map(r=>typeof r=="string"?{title:r,value:r}:r):[]}const ct=J({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Ce({mandatory:"force"}),...$e(),...Ve()},"VTabs"),dt=Z()({name:"VTabs",props:ct(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:n}=r;const t=_e(e,"modelValue"),g=b(()=>ut(e.items)),{densityClasses:i}=Fe(e),{backgroundColorClasses:a,backgroundColorStyles:l}=Ge(P(e,"bgColor"));return He({VTab:{color:P(e,"color"),direction:P(e,"direction"),stacked:P(e,"stacked"),fixed:P(e,"fixedTabs"),sliderColor:P(e,"sliderColor"),hideSlider:P(e,"hideSlider")}}),Q(()=>{const[d]=xe.filterProps(e);return o(xe,L(d,{modelValue:t.value,"onUpdate:modelValue":u=>t.value=u,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},i.value,a.value,e.class],style:[{"--v-tabs-height":Le(e.height)},l.value,e.style],role:"tablist",symbol:ke}),{default:()=>[n.default?n.default():g.value.map(u=>o(j,L(u,{key:u.title}),null))]})}),{}}}),vt={props:{menuGetUserDialog:{type:Boolean,default:!1},loging:{type:String,default:""}},setup(e,r){const n=We(),t=H([]),g=H(!1),i=async()=>{const u=await Je.get("api/accounts/getuser/?userlogin="+e.loging);t.value=u.data},a=()=>[{title:"Отдел:",info:t.value.department},{title:"ФИО:",info:t.value.fio},{title:"Должность:",info:t.value.post}],l=()=>[{title:"E-mail: ",info:t.value.email},{title:"Телефон: ",info:t.value.tel},{title:"Комната: ",info:t.value.room},{title:"Логин: ",info:t.value.login}];function d(){r.emit("menusClose")}return i(),{menusCloses:d,userlinks:t,accountStore:n,basicInformation:a,subInformation:l,checkremote:Ne,spravURL:Ye,tab:g}}},ft={class:"font-weight-medium"},mt={class:"text-subtitle-1"},gt={class:"font-weight-medium"},bt={class:"text-subtitle-1"};function ht(e,r,n,t,g,i){return C(),F(je,null,{default:v(()=>[o(dt,{modelValue:t.tab,"onUpdate:modelValue":r[0]||(r[0]=a=>t.tab=a),"bg-color":"teal-darken-3",class:"bggrad ma-1","slider-color":"teal-darken-2",grow:""},{default:v(()=>[o(j,{"selected-class":"isActiveTab",rounde:"none",value:"one"},{default:v(()=>[M("Информация")]),_:1}),o(j,{"selected-class":"isActiveTab",value:"two"},{default:v(()=>[M("Ответсвенности")]),_:1}),o(j,{"selected-class":"isActiveTab",value:"three"},{default:v(()=>[M("Комиссии")]),_:1})]),_:1},8,["modelValue"]),o(ot,{modelValue:t.tab,"onUpdate:modelValue":r[1]||(r[1]=a=>t.tab=a)},{default:v(()=>[o(se,{class:"highttext",value:"one"},{default:v(()=>[o(qe,{class:"flex-column d-flex pb-0"},{default:v(()=>[o(ve,{class:"flex-grow-0"},{default:v(()=>[o(G),o(fe,{class:"pa-0",lg:"4"},{default:v(()=>[o(Xe,{class:"h-100",cover:"",src:t.checkremote(`${t.spravURL}${t.userlinks.login}.jpg`)},null,8,["src"])]),_:1}),o(fe,{class:"pa-0"},{default:v(()=>[o(he,{class:"pt-0 custom_subtitle"},{default:v(()=>[(C(!0),N(q,null,Y(t.basicInformation(),a=>(C(),F(K,{key:a},{title:v(()=>[X("span",ft,U(a.title),1)]),subtitle:v(()=>[X("span",mt,U(a.info),1)]),_:2},1024))),128))]),_:1})]),_:1}),o(G)]),_:1}),o(ve,{class:"flex-grow-0"},{default:v(()=>[o(he,{class:"pa-0 pt-3 custom_subtitle",density:""},{default:v(()=>[(C(!0),N(q,null,Y(t.subInformation(),a=>(C(),F(K,{key:a,class:"py-0"},{title:v(()=>[X("span",gt,U(a.title),1),X("span",bt,U(a.info),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1}),o(se,{class:"overflow-y-auto highttext",value:"two"},{default:v(()=>[(C(!0),N(q,null,Y(t.userlinks.responsibility,(a,l)=>(C(),F(K,{class:"pa-3",key:l},{default:v(()=>[M(U(a.sphere_of_responsibility)+" ",1),o(G,{class:"border-opacity-50",color:"teal-darken-1"})]),_:2},1024))),128))]),_:1}),o(se,{class:"overflow-y-auto highttext",value:"three"},{default:v(()=>[(C(!0),N(q,null,Y(t.userlinks.committee,(a,l)=>(C(),F(K,{class:"pa-3",key:l},{default:v(()=>[M(U(a.name)+" ",1),o(G,{class:"border-opacity-50",color:"teal-darken-2"})]),_:2},1024))),128))]),_:1})]),_:1},8,["modelValue"]),o(G),o(Ke,{class:"align-self-end pt-0"},{default:v(()=>[o(oe,{color:"modal_btn",variant:"text",onClick:t.menusCloses},{default:v(()=>[M(" Закрыть ")]),_:1},8,["onClick"])]),_:1})]),_:1})}const kt=De(vt,[["render",ht]]);const yt=J({id:String,text:String,...pe(Ze({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Ct=Z()({name:"VTooltip",props:yt(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:n}=r;const t=_e(e,"modelValue"),{scopeId:g}=Qe(),i=et(),a=b(()=>e.id||`v-tooltip-${i}`),l=H(),d=b(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=b(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),f=b(()=>e.transition?e.transition:t.value?"scale-transition":"fade-transition"),y=b(()=>L({"aria-describedby":a.value},e.activatorProps));return Q(()=>{const[h]=me.filterProps(e);return o(me,L({ref:l,class:["v-tooltip",e.class],style:e.style,id:a.value},h,{modelValue:t.value,"onUpdate:modelValue":m=>t.value=m,transition:f.value,absolute:!0,location:d.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:y.value,_disableGlobalStack:!0},g),{activator:n.activator,default:function(){var T;for(var m=arguments.length,V=new Array(m),x=0;x*:last-child,.v-tabs--align-tabs-center .v-slide-group__content>*:last-child{margin-inline-end:auto}.v-tabs--fixed-tabs .v-slide-group__content>*:first-child,.v-tabs--align-tabs-center .v-slide-group__content>*:first-child{margin-inline-start:auto}.v-tabs--grow{flex-grow:1}.v-tabs--grow .v-tab{flex:1 0 auto;max-width:none}.v-tabs--align-tabs-end .v-tab:first-child{margin-inline-start:auto}.v-tabs--align-tabs-end .v-tab:last-child{margin-inline-end:0}@media (max-width: 1279.98px){.v-tabs.v-slide-group--is-overflowing.v-slide-group--horizontal:not(.v-slide-group--has-affixes) .v-tab:first-child{margin-inline-start:52px}.v-tabs.v-slide-group--is-overflowing.v-slide-group--horizontal:not(.v-slide-group--has-affixes) .v-tab:last-child{margin-inline-end:52px}}.v-tab.v-tab{--v-btn-height: var(--v-tabs-height);min-width:90px}.v-slide-group--horizontal .v-tab{max-width:360px}.v-slide-group--vertical .v-tab{justify-content:start}.v-tab__slider{position:absolute;bottom:0;left:0;height:2px;width:100%;background:currentColor;pointer-events:none;opacity:0}.v-tab--selected .v-tab__slider{opacity:1}.v-slide-group--vertical .v-tab__slider{top:0;height:100%;width:2px}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow:hidden}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-tooltip>.v-overlay__content{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms} +.custom_subtitle .v-list-item-subtitle{opacity:1!important}.highttext{height:360px}.isActiveTab{background-color:#68c3ff70}.v-tabs{display:flex;height:var(--v-tabs-height)}.v-tabs--density-default{--v-tabs-height: 48px}.v-tabs--density-default.v-tabs--stacked{--v-tabs-height: 72px}.v-tabs--density-comfortable{--v-tabs-height: 44px}.v-tabs--density-comfortable.v-tabs--stacked{--v-tabs-height: 68px}.v-tabs--density-compact{--v-tabs-height: 36px}.v-tabs--density-compact.v-tabs--stacked{--v-tabs-height: 60px}.v-tabs.v-slide-group--vertical{height:auto;flex:none;--v-tabs-height: 48px}.v-tabs--align-tabs-title:not(.v-slide-group--has-affixes) .v-tab:first-child{margin-inline-start:42px}.v-tabs--fixed-tabs .v-slide-group__content>*:last-child,.v-tabs--align-tabs-center .v-slide-group__content>*:last-child{margin-inline-end:auto}.v-tabs--fixed-tabs .v-slide-group__content>*:first-child,.v-tabs--align-tabs-center .v-slide-group__content>*:first-child{margin-inline-start:auto}.v-tabs--grow{flex-grow:1}.v-tabs--grow .v-tab{flex:1 0 auto;max-width:none}.v-tabs--align-tabs-end .v-tab:first-child{margin-inline-start:auto}.v-tabs--align-tabs-end .v-tab:last-child{margin-inline-end:0}@media (max-width: 1279.98px){.v-tabs.v-slide-group--is-overflowing.v-slide-group--horizontal:not(.v-slide-group--has-affixes) .v-tab:first-child{margin-inline-start:52px}.v-tabs.v-slide-group--is-overflowing.v-slide-group--horizontal:not(.v-slide-group--has-affixes) .v-tab:last-child{margin-inline-end:52px}}.v-tab.v-tab{--v-btn-height: var(--v-tabs-height);min-width:90px}.v-slide-group--horizontal .v-tab{max-width:360px}.v-slide-group--vertical .v-tab{justify-content:start}.v-tab__slider{position:absolute;bottom:0;left:0;height:2px;width:100%;background:currentColor;pointer-events:none;opacity:0}.v-tab--selected .v-tab__slider{opacity:1}.v-slide-group--vertical .v-tab__slider{top:0;height:100%;width:2px}.v-slide-group{display:flex;overflow:hidden}.v-slide-group__next,.v-slide-group__prev{align-items:center;display:flex;flex:0 1 52px;justify-content:center;min-width:52px;cursor:pointer}.v-slide-group__next--disabled,.v-slide-group__prev--disabled{pointer-events:none;opacity:var(--v-disabled-opacity)}.v-slide-group__content{display:flex;flex:1 0 auto;position:relative;transition:.2s all cubic-bezier(.4,0,.2,1);white-space:nowrap}.v-slide-group__content>*{white-space:initial}.v-slide-group__container{contain:content;display:flex;flex:1 1 auto;overflow:hidden}.v-slide-group--vertical,.v-slide-group--vertical .v-slide-group__container,.v-slide-group--vertical .v-slide-group__content{flex-direction:column}.v-tooltip>.v-overlay__content{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant));border-radius:4px;font-size:.875rem;line-height:1.6;display:inline-block;padding:5px 16px;text-transform:initial;width:auto;opacity:1;pointer-events:none;transition-property:opacity,transform}.v-tooltip>.v-overlay__content[class*=enter-active]{transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s}.v-tooltip>.v-overlay__content[class*=leave-active]{transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:75ms} diff --git a/src/front/dist/assets/VWindowItem-6073ee5e.js b/src/front/dist/assets/VWindowItem-46132c15.js similarity index 75% rename from src/front/dist/assets/VWindowItem-6073ee5e.js rename to src/front/dist/assets/VWindowItem-46132c15.js index f8a72b290..8c8b0efd4 100644 --- a/src/front/dist/assets/VWindowItem-6073ee5e.js +++ b/src/front/dist/assets/VWindowItem-46132c15.js @@ -1 +1 @@ -import{bL as Y,p as V,a1 as _,a4 as A,a5 as O,a6 as H,a8 as j,ag as F,a7 as G,r as E,c as h,s as x,w as z,e as D,F as m,ac as W,N as k,bv as N,bM as U,i as q,bN as J,O as K,bB as Q,b as S,z as Z}from"./index-09dc9553.js";import{b as p,m as ee,u as te}from"./group-c7387df2.js";import{u as ne}from"./VTextarea-20d645b1.js";import{V as X}from"./VBtn-61a8fe0f.js";const oe=e=>{const{touchstartX:o,touchendX:t,touchstartY:n,touchendY:i}=e,u=.5,s=16;e.offsetX=t-o,e.offsetY=i-n,Math.abs(e.offsetY)o+s&&e.right(e)),Math.abs(e.offsetX)n+s&&e.down(e))};function se(e,o){var n;const t=e.changedTouches[0];o.touchstartX=t.clientX,o.touchstartY=t.clientY,(n=o.start)==null||n.call(o,{originalEvent:e,...o})}function ie(e,o){var n;const t=e.changedTouches[0];o.touchendX=t.clientX,o.touchendY=t.clientY,(n=o.end)==null||n.call(o,{originalEvent:e,...o}),oe(o)}function ae(e,o){var n;const t=e.changedTouches[0];o.touchmoveX=t.clientX,o.touchmoveY=t.clientY,(n=o.move)==null||n.call(o,{originalEvent:e,...o})}function ue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:t=>se(t,o),touchend:t=>ie(t,o),touchmove:t=>ae(t,o)}}function ce(e,o){var v;const t=o.value,n=t!=null&&t.parent?e.parentElement:e,i=(t==null?void 0:t.options)??{passive:!0},u=(v=o.instance)==null?void 0:v.$.uid;if(!n||!u)return;const s=ue(o.value);n._touchHandlers=n._touchHandlers??Object.create(null),n._touchHandlers[u]=s,Y(s).forEach(r=>{n.addEventListener(r,s[r],i)})}function le(e,o){var u,s;const t=(u=o.value)!=null&&u.parent?e.parentElement:e,n=(s=o.instance)==null?void 0:s.$.uid;if(!(t!=null&&t._touchHandlers)||!n)return;const i=t._touchHandlers[n];Y(i).forEach(v=>{t.removeEventListener(v,i[v])}),delete t._touchHandlers[n]}const L={mounted:ce,unmounted:le},re=L,R=Symbol.for("vuetify:v-window"),$=Symbol.for("vuetify:v-window-group"),ve=V({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},..._(),...A(),...O()},"VWindow"),ye=H()({name:"VWindow",directives:{Touch:L},props:ve(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const{themeClasses:n}=j(e),{isRtl:i}=F(),{t:u}=G(),s=p(e,$),v=E(),r=h(()=>i.value?!e.reverse:e.reverse),d=x(!1),y=h(()=>{const a=e.direction==="vertical"?"y":"x",f=(r.value?!d.value:d.value)?"-reverse":"";return`v-window-${a}${f}-transition`}),T=x(0),b=E(void 0),g=h(()=>s.items.value.findIndex(a=>s.selected.value.includes(a.id)));z(g,(a,l)=>{const f=s.items.value.length,I=f-1;f<=2?d.value=ae.continuous||g.value!==0),w=h(()=>e.continuous||g.value!==s.items.value.length-1);function B(){c.value&&s.prev()}function C(){w.value&&s.next()}const P=h(()=>{const a=[],l={icon:i.value?e.nextIcon:e.prevIcon,class:`v-window__${r.value?"right":"left"}`,onClick:s.prev,ariaLabel:u("$vuetify.carousel.prev")};a.push(c.value?t.prev?t.prev({props:l}):m(X,l,null):m("div",null,null));const f={icon:i.value?e.prevIcon:e.nextIcon,class:`v-window__${r.value?"left":"right"}`,onClick:s.next,ariaLabel:u("$vuetify.carousel.next")};return a.push(w.value?t.next?t.next({props:f}):m(X,f,null):m("div",null,null)),a}),M=h(()=>e.touch===!1?e.touch:{...{left:()=>{r.value?B():C()},right:()=>{r.value?C():B()},start:l=>{let{originalEvent:f}=l;f.stopPropagation()}},...e.touch===!0?{}:e.touch});return W(()=>k(m(e.tag,{ref:v,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},n.value,e.class],style:e.style},{default:()=>{var a,l;return[m("div",{class:"v-window__container",style:{height:b.value}},[(a=t.default)==null?void 0:a.call(t,{group:s}),e.showArrows!==!1&&m("div",{class:"v-window__controls"},[P.value])]),(l=t.additional)==null?void 0:l.call(t,{group:s})]}}),[[N("touch"),M.value]])),{group:s}}}),de=V({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},..._(),...ee(),...U()},"VWindowItem"),be=H()({name:"VWindowItem",directives:{Touch:re},props:de(),emits:{"group:selected":e=>!0},setup(e,o){let{slots:t}=o;const n=q(R),i=te(e,$),{isBooted:u}=ne();if(!n||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=x(!1),v=h(()=>u.value&&(n.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function r(){!s.value||!n||(s.value=!1,n.transitionCount.value>0&&(n.transitionCount.value-=1,n.transitionCount.value===0&&(n.transitionHeight.value=void 0)))}function d(){var c;s.value||!n||(s.value=!0,n.transitionCount.value===0&&(n.transitionHeight.value=S((c=n.rootRef.value)==null?void 0:c.clientHeight)),n.transitionCount.value+=1)}function y(){r()}function T(c){s.value&&Z(()=>{!v.value||!s.value||!n||(n.transitionHeight.value=S(c.clientHeight))})}const b=h(()=>{const c=n.isReversed.value?e.reverseTransition:e.transition;return v.value?{name:typeof c!="string"?n.transition.value:c,onBeforeEnter:d,onAfterEnter:r,onEnterCancelled:y,onBeforeLeave:d,onAfterLeave:r,onLeaveCancelled:y,onEnter:T}:!1}),{hasContent:g}=J(e,i.isSelected);return W(()=>m(Q,{transition:b.value,disabled:!u.value},{default:()=>{var c;return[k(m("div",{class:["v-window-item",i.selectedClass.value,e.class],style:e.style},[g.value&&((c=t.default)==null?void 0:c.call(t))]),[[K,i.isSelected.value]])]}})),{}}});export{be as V,ye as a,de as b,ve as m}; +import{bM as Y,p as V,a1 as _,a4 as O,a5 as A,a6 as H,a8 as j,ag as F,a7 as G,r as E,c as h,s as w,w as z,e as D,F as m,ac as W,N as k,bw as N,bN as U,i as q,bO as J,O as K,bC as Q,b as S,z as Z}from"./index-cf33b3b8.js";import{b as p,m as ee,u as te}from"./group-2cdf27ee.js";import{u as ne}from"./VTextarea-eca486a5.js";import{V as X}from"./VBtn-11d9d7ef.js";const oe=e=>{const{touchstartX:o,touchendX:t,touchstartY:n,touchendY:i}=e,u=.5,s=16;e.offsetX=t-o,e.offsetY=i-n,Math.abs(e.offsetY)o+s&&e.right(e)),Math.abs(e.offsetX)n+s&&e.down(e))};function se(e,o){var n;const t=e.changedTouches[0];o.touchstartX=t.clientX,o.touchstartY=t.clientY,(n=o.start)==null||n.call(o,{originalEvent:e,...o})}function ie(e,o){var n;const t=e.changedTouches[0];o.touchendX=t.clientX,o.touchendY=t.clientY,(n=o.end)==null||n.call(o,{originalEvent:e,...o}),oe(o)}function ae(e,o){var n;const t=e.changedTouches[0];o.touchmoveX=t.clientX,o.touchmoveY=t.clientY,(n=o.move)==null||n.call(o,{originalEvent:e,...o})}function ue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:t=>se(t,o),touchend:t=>ie(t,o),touchmove:t=>ae(t,o)}}function ce(e,o){var v;const t=o.value,n=t!=null&&t.parent?e.parentElement:e,i=(t==null?void 0:t.options)??{passive:!0},u=(v=o.instance)==null?void 0:v.$.uid;if(!n||!u)return;const s=ue(o.value);n._touchHandlers=n._touchHandlers??Object.create(null),n._touchHandlers[u]=s,Y(s).forEach(r=>{n.addEventListener(r,s[r],i)})}function le(e,o){var u,s;const t=(u=o.value)!=null&&u.parent?e.parentElement:e,n=(s=o.instance)==null?void 0:s.$.uid;if(!(t!=null&&t._touchHandlers)||!n)return;const i=t._touchHandlers[n];Y(i).forEach(v=>{t.removeEventListener(v,i[v])}),delete t._touchHandlers[n]}const R={mounted:ce,unmounted:le},re=R,$=Symbol.for("vuetify:v-window"),L=Symbol.for("vuetify:v-window-group"),ve=V({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},..._(),...O(),...A()},"VWindow"),ye=H()({name:"VWindow",directives:{Touch:R},props:ve(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const{themeClasses:n}=j(e),{isRtl:i}=F(),{t:u}=G(),s=p(e,L),v=E(),r=h(()=>i.value?!e.reverse:e.reverse),d=w(!1),y=h(()=>{const a=e.direction==="vertical"?"y":"x",f=(r.value?!d.value:d.value)?"-reverse":"";return`v-window-${a}${f}-transition`}),T=w(0),b=E(void 0),g=h(()=>s.items.value.findIndex(a=>s.selected.value.includes(a.id)));z(g,(a,l)=>{const f=s.items.value.length,B=f-1;f<=2?d.value=ae.continuous||g.value!==0),x=h(()=>e.continuous||g.value!==s.items.value.length-1);function C(){c.value&&s.prev()}function I(){x.value&&s.next()}const P=h(()=>{const a=[],l={icon:i.value?e.nextIcon:e.prevIcon,class:`v-window__${r.value?"right":"left"}`,onClick:s.prev,ariaLabel:u("$vuetify.carousel.prev")};a.push(c.value?t.prev?t.prev({props:l}):m(X,l,null):m("div",null,null));const f={icon:i.value?e.prevIcon:e.nextIcon,class:`v-window__${r.value?"left":"right"}`,onClick:s.next,ariaLabel:u("$vuetify.carousel.next")};return a.push(x.value?t.next?t.next({props:f}):m(X,f,null):m("div",null,null)),a}),M=h(()=>e.touch===!1?e.touch:{...{left:()=>{r.value?C():I()},right:()=>{r.value?I():C()},start:l=>{let{originalEvent:f}=l;f.stopPropagation()}},...e.touch===!0?{}:e.touch});return W(()=>k(m(e.tag,{ref:v,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},n.value,e.class],style:e.style},{default:()=>{var a,l;return[m("div",{class:"v-window__container",style:{height:b.value}},[(a=t.default)==null?void 0:a.call(t,{group:s}),e.showArrows!==!1&&m("div",{class:"v-window__controls"},[P.value])]),(l=t.additional)==null?void 0:l.call(t,{group:s})]}}),[[N("touch"),M.value]])),{group:s}}}),de=V({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},..._(),...ee(),...U()},"VWindowItem"),be=H()({name:"VWindowItem",directives:{Touch:re},props:de(),emits:{"group:selected":e=>!0},setup(e,o){let{slots:t}=o;const n=q($),i=te(e,L),{isBooted:u}=ne();if(!n||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const s=w(!1),v=h(()=>u.value&&(n.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function r(){!s.value||!n||(s.value=!1,n.transitionCount.value>0&&(n.transitionCount.value-=1,n.transitionCount.value===0&&(n.transitionHeight.value=void 0)))}function d(){var c;s.value||!n||(s.value=!0,n.transitionCount.value===0&&(n.transitionHeight.value=S((c=n.rootRef.value)==null?void 0:c.clientHeight)),n.transitionCount.value+=1)}function y(){r()}function T(c){s.value&&Z(()=>{!v.value||!s.value||!n||(n.transitionHeight.value=S(c.clientHeight))})}const b=h(()=>{const c=n.isReversed.value?e.reverseTransition:e.transition;return v.value?{name:typeof c!="string"?n.transition.value:c,onBeforeEnter:d,onAfterEnter:r,onEnterCancelled:y,onBeforeLeave:d,onAfterLeave:r,onLeaveCancelled:y,onEnter:T}:!1}),{hasContent:g}=J(e,i.isSelected);return W(()=>m(Q,{transition:b.value,disabled:!u.value},{default:()=>{var c;return[k(m("div",{class:["v-window-item",i.selectedClass.value,e.class],style:e.style},[g.value&&((c=t.default)==null?void 0:c.call(t))]),[[K,i.isSelected.value]])]}})),{}}});export{be as V,ye as a,de as b,ve as m}; diff --git a/src/front/dist/assets/group-c7387df2.js b/src/front/dist/assets/group-2cdf27ee.js similarity index 84% rename from src/front/dist/assets/group-c7387df2.js rename to src/front/dist/assets/group-2cdf27ee.js index 7ef29e87f..38b394275 100644 --- a/src/front/dist/assets/group-c7387df2.js +++ b/src/front/dist/assets/group-2cdf27ee.js @@ -1 +1 @@ -import{a6 as S,b2 as P,az as w,aO as I,p as b,bW as $,d as C,h as A,e as _,i as O,al as B,c as x,l as E,w as k,a as q,a9 as z,o as F,bp as H,bf as M,f as U}from"./index-09dc9553.js";const W=b({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function m(s,u,o){return S()({name:s,props:W({mode:o,origin:u}),setup(e,i){let{slots:a}=i;const t={onBeforeEnter(n){e.origin&&(n.style.transformOrigin=e.origin)},onLeave(n){if(e.leaveAbsolute){const{offsetTop:c,offsetLeft:p,offsetWidth:y,offsetHeight:v}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${c}px`,n.style.left=`${p}px`,n.style.width=`${y}px`,n.style.height=`${v}px`}e.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(e.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:c,top:p,left:y,width:v,height:r}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=c||"",n.style.top=p||"",n.style.left=y||"",n.style.width=v||"",n.style.height=r||""}}};return()=>{const n=e.group?P:w;return I(n,{name:e.disabled?"":s,css:!e.disabled,...e.group?void 0:{mode:e.mode},...e.disabled?{}:t},a.default)}}})}function T(s,u){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return S()({name:s,props:{mode:{type:String,default:o},disabled:Boolean},setup(e,i){let{slots:a}=i;return()=>I(w,{name:e.disabled?"":s,css:!e.disabled,...e.disabled?{}:u},a.default)}})}function V(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",e=$(`offset-${o}`);return{onBeforeEnter(t){t._parent=t.parentNode,t._initialStyle={transition:t.style.transition,overflow:t.style.overflow,[o]:t.style[o]}},onEnter(t){const n=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";const c=`${t[e]}px`;t.style[o]="0",t.offsetHeight,t.style.transition=n.transition,s&&t._parent&&t._parent.classList.add(s),requestAnimationFrame(()=>{t.style[o]=c})},onAfterEnter:a,onEnterCancelled:a,onLeave(t){t._initialStyle={transition:"",overflow:t.style.overflow,[o]:t.style[o]},t.style.overflow="hidden",t.style[o]=`${t[e]}px`,t.offsetHeight,requestAnimationFrame(()=>t.style[o]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(t){s&&t._parent&&t._parent.classList.remove(s),a(t)}function a(t){const n=t._initialStyle[o];t.style.overflow=t._initialStyle.overflow,n!=null&&(t.style[o]=n),delete t._initialStyle}}m("fab-transition","center center","out-in");m("dialog-bottom-transition");m("dialog-top-transition");const R=m("fade-transition");m("scale-transition");m("scroll-x-transition");m("scroll-x-reverse-transition");const X=m("scroll-y-transition");m("scroll-y-reverse-transition");m("slide-x-transition");m("slide-x-reverse-transition");const D=m("slide-y-transition");m("slide-y-reverse-transition");const Q=T("expand-transition",V()),Z=T("expand-x-transition",V("",!0)),j=b({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),K=b({value:null,disabled:Boolean,selectedClass:String},"group-item");function ee(s,u){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const e=C("useGroupItem");if(!e)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=A();_(Symbol.for(`${u.description}:id`),i);const a=O(u,null);if(!a){if(!o)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${u.description}`)}const t=B(s,"value"),n=x(()=>a.disabled.value||s.disabled);a.register({id:i,value:t,disabled:n},e),E(()=>{a.unregister(i)});const c=x(()=>a.isSelected(i)),p=x(()=>c.value&&[a.selectedClass.value,s.selectedClass]);return k(c,y=>{e.emit("group:selected",{value:y})}),{id:i,isSelected:c,toggle:()=>a.select(i,!c.value),select:y=>a.select(i,y),selectedClass:p,value:t,disabled:n,group:a}}function te(s,u){let o=!1;const e=q([]),i=z(s,"modelValue",[],r=>r==null?[]:G(e,M(r)),r=>{const l=Y(e,r);return s.multiple?l:l[0]}),a=C("useGroup");function t(r,l){const f=r,d=Symbol.for(`${u.description}:id`),h=U(d,a==null?void 0:a.vnode).indexOf(l);h>-1?e.splice(h,0,f):e.push(f)}function n(r){if(o)return;c();const l=e.findIndex(f=>f.id===r);e.splice(l,1)}function c(){const r=e.find(l=>!l.disabled);r&&s.mandatory==="force"&&!i.value.length&&(i.value=[r.id])}F(()=>{c()}),E(()=>{o=!0});function p(r,l){const f=e.find(d=>d.id===r);if(!(l&&(f!=null&&f.disabled)))if(s.multiple){const d=i.value.slice(),g=d.findIndex(L=>L===r),h=~g;if(l=l??!h,h&&s.mandatory&&d.length<=1||!h&&s.max!=null&&d.length+1>s.max)return;g<0&&l?d.push(r):g>=0&&!l&&d.splice(g,1),i.value=d}else{const d=i.value.includes(r);if(s.mandatory&&d)return;i.value=l??!d?[r]:[]}}function y(r){if(s.multiple,i.value.length){const l=i.value[0],f=e.findIndex(h=>h.id===l);let d=(f+r)%e.length,g=e[d];for(;g.disabled&&d!==f;)d=(d+r)%e.length,g=e[d];if(g.disabled)return;i.value=[e[d].id]}else{const l=e.find(f=>!f.disabled);l&&(i.value=[l.id])}}const v={register:t,unregister:n,selected:i,select:p,disabled:B(s,"disabled"),prev:()=>y(e.length-1),next:()=>y(1),isSelected:r=>i.value.includes(r),selectedClass:x(()=>s.selectedClass),items:x(()=>e),getItemIndex:r=>N(e,r)};return _(u,v),v}function N(s,u){const o=G(s,[u]);return o.length?s.findIndex(e=>e.id===o[0]):-1}function G(s,u){const o=[];return u.forEach(e=>{const i=s.find(t=>H(e,t.value)),a=s[e];(i==null?void 0:i.value)!=null?o.push(i.id):a!=null&&o.push(a.id)}),o}function Y(s,u){const o=[];return u.forEach(e=>{const i=s.findIndex(a=>a.id===e);if(~i){const a=s[i];o.push(a.value!=null?a.value:i)}}),o}export{Q as V,j as a,te as b,R as c,X as d,Z as e,D as f,K as m,ee as u}; +import{a6 as S,b2 as P,az as w,aO as I,p as b,bX as $,d as C,h as A,e as _,i as q,al as B,c as x,l as E,w as O,a as k,a9 as z,o as F,bq as H,bf as M,f as U}from"./index-cf33b3b8.js";const N=b({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function m(s,u,o){return S()({name:s,props:N({mode:o,origin:u}),setup(e,i){let{slots:a}=i;const t={onBeforeEnter(n){e.origin&&(n.style.transformOrigin=e.origin)},onLeave(n){if(e.leaveAbsolute){const{offsetTop:c,offsetLeft:p,offsetWidth:y,offsetHeight:v}=n;n._transitionInitialStyles={position:n.style.position,top:n.style.top,left:n.style.left,width:n.style.width,height:n.style.height},n.style.position="absolute",n.style.top=`${c}px`,n.style.left=`${p}px`,n.style.width=`${y}px`,n.style.height=`${v}px`}e.hideOnLeave&&n.style.setProperty("display","none","important")},onAfterLeave(n){if(e.leaveAbsolute&&(n!=null&&n._transitionInitialStyles)){const{position:c,top:p,left:y,width:v,height:r}=n._transitionInitialStyles;delete n._transitionInitialStyles,n.style.position=c||"",n.style.top=p||"",n.style.left=y||"",n.style.width=v||"",n.style.height=r||""}}};return()=>{const n=e.group?P:w;return I(n,{name:e.disabled?"":s,css:!e.disabled,...e.group?void 0:{mode:e.mode},...e.disabled?{}:t},a.default)}}})}function T(s,u){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return S()({name:s,props:{mode:{type:String,default:o},disabled:Boolean},setup(e,i){let{slots:a}=i;return()=>I(w,{name:e.disabled?"":s,css:!e.disabled,...e.disabled?{}:u},a.default)}})}function V(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",e=$(`offset-${o}`);return{onBeforeEnter(t){t._parent=t.parentNode,t._initialStyle={transition:t.style.transition,overflow:t.style.overflow,[o]:t.style[o]}},onEnter(t){const n=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";const c=`${t[e]}px`;t.style[o]="0",t.offsetHeight,t.style.transition=n.transition,s&&t._parent&&t._parent.classList.add(s),requestAnimationFrame(()=>{t.style[o]=c})},onAfterEnter:a,onEnterCancelled:a,onLeave(t){t._initialStyle={transition:"",overflow:t.style.overflow,[o]:t.style[o]},t.style.overflow="hidden",t.style[o]=`${t[e]}px`,t.offsetHeight,requestAnimationFrame(()=>t.style[o]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(t){s&&t._parent&&t._parent.classList.remove(s),a(t)}function a(t){const n=t._initialStyle[o];t.style.overflow=t._initialStyle.overflow,n!=null&&(t.style[o]=n),delete t._initialStyle}}m("fab-transition","center center","out-in");m("dialog-bottom-transition");m("dialog-top-transition");const J=m("fade-transition");m("scale-transition");m("scroll-x-transition");m("scroll-x-reverse-transition");const R=m("scroll-y-transition");m("scroll-y-reverse-transition");m("slide-x-transition");m("slide-x-reverse-transition");const D=m("slide-y-transition");m("slide-y-reverse-transition");const Q=T("expand-transition",V()),Z=T("expand-x-transition",V("",!0)),j=b({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),K=b({value:null,disabled:Boolean,selectedClass:String},"group-item");function ee(s,u){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const e=C("useGroupItem");if(!e)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=A();_(Symbol.for(`${u.description}:id`),i);const a=q(u,null);if(!a){if(!o)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${u.description}`)}const t=B(s,"value"),n=x(()=>a.disabled.value||s.disabled);a.register({id:i,value:t,disabled:n},e),E(()=>{a.unregister(i)});const c=x(()=>a.isSelected(i)),p=x(()=>c.value&&[a.selectedClass.value,s.selectedClass]);return O(c,y=>{e.emit("group:selected",{value:y})}),{id:i,isSelected:c,toggle:()=>a.select(i,!c.value),select:y=>a.select(i,y),selectedClass:p,value:t,disabled:n,group:a}}function te(s,u){let o=!1;const e=k([]),i=z(s,"modelValue",[],r=>r==null?[]:G(e,M(r)),r=>{const l=X(e,r);return s.multiple?l:l[0]}),a=C("useGroup");function t(r,l){const f=r,d=Symbol.for(`${u.description}:id`),h=U(d,a==null?void 0:a.vnode).indexOf(l);h>-1?e.splice(h,0,f):e.push(f)}function n(r){if(o)return;c();const l=e.findIndex(f=>f.id===r);e.splice(l,1)}function c(){const r=e.find(l=>!l.disabled);r&&s.mandatory==="force"&&!i.value.length&&(i.value=[r.id])}F(()=>{c()}),E(()=>{o=!0});function p(r,l){const f=e.find(d=>d.id===r);if(!(l&&(f!=null&&f.disabled)))if(s.multiple){const d=i.value.slice(),g=d.findIndex(L=>L===r),h=~g;if(l=l??!h,h&&s.mandatory&&d.length<=1||!h&&s.max!=null&&d.length+1>s.max)return;g<0&&l?d.push(r):g>=0&&!l&&d.splice(g,1),i.value=d}else{const d=i.value.includes(r);if(s.mandatory&&d)return;i.value=l??!d?[r]:[]}}function y(r){if(s.multiple,i.value.length){const l=i.value[0],f=e.findIndex(h=>h.id===l);let d=(f+r)%e.length,g=e[d];for(;g.disabled&&d!==f;)d=(d+r)%e.length,g=e[d];if(g.disabled)return;i.value=[e[d].id]}else{const l=e.find(f=>!f.disabled);l&&(i.value=[l.id])}}const v={register:t,unregister:n,selected:i,select:p,disabled:B(s,"disabled"),prev:()=>y(e.length-1),next:()=>y(1),isSelected:r=>i.value.includes(r),selectedClass:x(()=>s.selectedClass),items:x(()=>e),getItemIndex:r=>W(e,r)};return _(u,v),v}function W(s,u){const o=G(s,[u]);return o.length?s.findIndex(e=>e.id===o[0]):-1}function G(s,u){const o=[];return u.forEach(e=>{const i=s.find(t=>H(e,t.value)),a=s[e];(i==null?void 0:i.value)!=null?o.push(i.id):a!=null&&o.push(a.id)}),o}function X(s,u){const o=[];return u.forEach(e=>{const i=s.findIndex(a=>a.id===e);if(~i){const a=s[i];o.push(a.value!=null?a.value:i)}}),o}export{Q as V,j as a,te as b,J as c,R as d,Z as e,D as f,K as m,ee as u}; diff --git a/src/front/dist/assets/index-09dc9553.js b/src/front/dist/assets/index-cf33b3b8.js similarity index 98% rename from src/front/dist/assets/index-09dc9553.js rename to src/front/dist/assets/index-cf33b3b8.js index 6f2dd5e15..5a6a4c6e9 100644 --- a/src/front/dist/assets/index-09dc9553.js +++ b/src/front/dist/assets/index-cf33b3b8.js @@ -8,9 +8,9 @@ * vue-router v4.2.4 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const fn=typeof window<"u";function ig(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Hs(e,t){const n={};for(const r in t){const s=t[r];n[r]=st(s)?s.map(e):e(s)}return n}const Hn=()=>{},st=Array.isArray,ag=/\/$/,lg=e=>e.replace(ag,"");function Us(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=dg(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function cg(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ha(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ug(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&wn(t.matched[r],n.matched[s])&&ku(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ku(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fg(e[n],t[n]))return!1;return!0}function fg(e,t){return st(e)?Ua(e,t):st(t)?Ua(t,e):e===t}function Ua(e,t){return st(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function dg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var er;(function(e){e.pop="pop",e.push="push"})(er||(er={}));var Un;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Un||(Un={}));function hg(e){if(!e)if(fn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lg(e)}const mg=/^[^#]+#/;function pg(e,t){return e.replace(mg,"#")+t}function gg(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const xs=()=>({left:window.pageXOffset,top:window.pageYOffset});function vg(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=gg(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function za(e,t){return(history.state?history.state.position-t:-1)+e}const _o=new Map;function yg(e,t){_o.set(e,t)}function bg(e){const t=_o.get(e);return _o.delete(e),t}let wg=()=>location.protocol+"//"+location.host;function Fu(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),Ha(c,"")}return Ha(n,e)+r+s}function _g(e,t,n,r){let s=[],o=[],i=null;const a=({state:d})=>{const m=Fu(e,location),h=n.value,g=t.value;let S=0;if(d){if(n.value=m,t.value=d,i&&i===h){i=null;return}S=g?d.position-g.position:0}else r(m);s.forEach(w=>{w(n.value,h,{delta:S,type:er.pop,direction:S?S>0?Un.forward:Un.back:Un.unknown})})};function c(){i=n.value}function l(d){s.push(d);const m=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return o.push(m),m}function u(){const{history:d}=window;d.state&&d.replaceState(fe({},d.state,{scroll:xs()}),"")}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:l,destroy:f}}function Wa(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?xs():null}}function Eg(e){const{history:t,location:n}=window,r={value:Fu(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,l,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:wg()+e+c;try{t[u?"replaceState":"pushState"](l,"",d),s.value=l}catch(m){console.error(m),n[u?"replace":"assign"](d)}}function i(c,l){const u=fe({},t.state,Wa(s.value.back,c,s.value.forward,!0),l,{position:s.value.position});o(c,u,!0),r.value=c}function a(c,l){const u=fe({},s.value,t.state,{forward:c,scroll:xs()});o(u.current,u,!0);const f=fe({},Wa(r.value,c,null),{position:u.position+1},l);o(c,f,!1),r.value=c}return{location:r,state:s,push:a,replace:i}}function Sg(e){e=hg(e);const t=Eg(e),n=_g(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=fe({location:"",base:e,go:r,createHref:pg.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Cg(e){return typeof e=="string"||e&&typeof e=="object"}function Lu(e){return typeof e=="string"||typeof e=="symbol"}const Ct={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Iu=Symbol("");var Ka;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ka||(Ka={}));function _n(e,t){return fe(new Error,{type:e,[Iu]:!0},t)}function mt(e,t){return e instanceof Error&&Iu in e&&(t==null||!!(e.type&t))}const qa="[^/]+?",xg={sensitive:!1,strict:!1,start:!0,end:!0},Ag=/[.+*?^${}()[\]/\\]/g;function Pg(e,t){const n=fe({},xg,t),r=[];let s=n.start?"^":"";const o=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Rg(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Tg={type:0,value:""},kg=/[a-zA-Z0-9_]/;function Fg(e){if(!e)return[[]];if(e==="/")return[[Tg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${l}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,c,l="",u="";function f(){l&&(n===0?o.push({type:0,value:l}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=c}for(;a{i(E)}:Hn}function i(u){if(Lu(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function c(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!Nu(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Ga(u)&&r.set(u.record.name,u)}function l(u,f){let d,m={},h,g;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw _n(1,{location:u});g=d.record.name,m=fe(Ja(f.params,d.keys.filter(E=>!E.optional).map(E=>E.name)),u.params&&Ja(u.params,d.keys.map(E=>E.name))),h=d.stringify(m)}else if("path"in u)h=u.path,d=n.find(E=>E.re.test(h)),d&&(m=d.parse(h),g=d.record.name);else{if(d=f.name?r.get(f.name):n.find(E=>E.re.test(f.path)),!d)throw _n(1,{location:u,currentLocation:f});g=d.record.name,m=fe({},f.params,u.params),h=d.stringify(m)}const S=[];let w=d;for(;w;)S.unshift(w.record),w=w.parent;return{name:g,path:h,params:m,matched:S,meta:Mg(S)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:l,removeRoute:i,getRoutes:a,getRecordMatcher:s}}function Ja(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ng(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Dg(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ga(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mg(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function Xa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Nu(e,t){return t.children.some(n=>n===e||Nu(e,n))}const Du=/#/g,$g=/&/g,Bg=/\//g,jg=/=/g,Vg=/\?/g,Mu=/\+/g,Hg=/%5B/g,Ug=/%5D/g,$u=/%5E/g,zg=/%60/g,Bu=/%7B/g,Wg=/%7C/g,ju=/%7D/g,Kg=/%20/g;function Ei(e){return encodeURI(""+e).replace(Wg,"|").replace(Hg,"[").replace(Ug,"]")}function qg(e){return Ei(e).replace(Bu,"{").replace(ju,"}").replace($u,"^")}function Eo(e){return Ei(e).replace(Mu,"%2B").replace(Kg,"+").replace(Du,"%23").replace($g,"%26").replace(zg,"`").replace(Bu,"{").replace(ju,"}").replace($u,"^")}function Yg(e){return Eo(e).replace(jg,"%3D")}function Jg(e){return Ei(e).replace(Du,"%23").replace(Vg,"%3F")}function Gg(e){return e==null?"":Jg(e).replace(Bg,"%2F")}function Kr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Xg(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Eo(o)):[r&&Eo(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Zg(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=st(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Qg=Symbol(""),Qa=Symbol(""),As=Symbol(""),Si=Symbol(""),So=Symbol("");function Tn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ot(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,a)=>{const c=f=>{f===!1?a(_n(4,{from:n,to:t})):f instanceof Error?a(f):Cg(f)?a(_n(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),i())},l=e.call(r&&r.instances[s],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch(f=>a(f))})}function zs(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(ev(a)){const l=(a.__vccOpts||a)[t];l&&s.push(Ot(l,n,r,o,i))}else{let c=a();s.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=ig(l)?l.default:l;o.components[i]=u;const d=(u.__vccOpts||u)[t];return d&&Ot(d,n,r,o,i)()}))}}return s}function ev(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function el(e){const t=_e(As),n=_e(Si),r=D(()=>t.resolve(ze(e.to))),s=D(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(wn.bind(null,u));if(d>-1)return d;const m=tl(c[l-2]);return l>1&&tl(u)===m&&f[f.length-1].path!==m?f.findIndex(wn.bind(null,c[l-2])):d}),o=D(()=>s.value>-1&&sv(n.params,r.value.params)),i=D(()=>s.value>-1&&s.value===n.matched.length-1&&ku(n.params,r.value.params));function a(c={}){return rv(c)?t[ze(e.replace)?"replace":"push"](ze(e.to)).catch(Hn):Promise.resolve()}return{route:r,href:D(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}const tv=fs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:el,setup(e,{slots:t}){const n=ut(el(e)),{options:r}=_e(As),s=D(()=>({[nl(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[nl(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Nt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),nv=tv;function rv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function sv(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!st(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function tl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nl=(e,t,n)=>e??t??n,ov=fs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=_e(So),s=D(()=>e.route||r.value),o=_e(Qa,0),i=D(()=>{let l=ze(o);const{matched:u}=s.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),a=D(()=>s.value.matched[i.value]);Ft(Qa,D(()=>i.value+1)),Ft(Qg,a),Ft(So,s);const c=ve();return pe(()=>[c.value,a.value,e.name],([l,u,f],[d,m,h])=>{u&&(u.instances[f]=l,m&&m!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),l&&u&&(!m||!wn(u,m)||!d)&&(u.enterCallbacks[f]||[]).forEach(g=>g(l))},{flush:"post"}),()=>{const l=s.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return rl(n.default,{Component:d,route:l});const m=f.props[u],h=m?m===!0?l.params:typeof m=="function"?m(l):m:null,S=Nt(d,fe({},h,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return rl(n.default,{Component:S,route:l})||S}}});function rl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const iv=ov;function av(e){const t=Ig(e.routes,e),n=e.parseQuery||Xg,r=e.stringifyQuery||Za,s=e.history,o=Tn(),i=Tn(),a=Tn(),c=xe(Ct);let l=Ct;fn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Hs.bind(null,A=>""+A),f=Hs.bind(null,Gg),d=Hs.bind(null,Kr);function m(A,V){let M,W;return Lu(A)?(M=t.getRecordMatcher(A),W=V):W=A,t.addRoute(W,M)}function h(A){const V=t.getRecordMatcher(A);V&&t.removeRoute(V)}function g(){return t.getRoutes().map(A=>A.record)}function S(A){return!!t.getRecordMatcher(A)}function w(A,V){if(V=fe({},V||c.value),typeof A=="string"){const y=Us(n,A,V.path),_=t.resolve({path:y.path},V),P=s.createHref(y.fullPath);return fe(y,_,{params:d(_.params),hash:Kr(y.hash),redirectedFrom:void 0,href:P})}let M;if("path"in A)M=fe({},A,{path:Us(n,A.path,V.path).path});else{const y=fe({},A.params);for(const _ in y)y[_]==null&&delete y[_];M=fe({},A,{params:f(y)}),V.params=f(V.params)}const W=t.resolve(M,V),ue=A.hash||"";W.params=u(d(W.params));const p=cg(r,fe({},A,{hash:qg(ue),path:W.path})),v=s.createHref(p);return fe({fullPath:p,hash:ue,query:r===Za?Zg(A.query):A.query||{}},W,{redirectedFrom:void 0,href:v})}function E(A){return typeof A=="string"?Us(n,A,c.value.path):fe({},A)}function b(A,V){if(l!==A)return _n(8,{from:V,to:A})}function L(A){return J(A)}function H(A){return L(fe(E(A),{replace:!0}))}function Y(A){const V=A.matched[A.matched.length-1];if(V&&V.redirect){const{redirect:M}=V;let W=typeof M=="function"?M(A):M;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=E(W):{path:W},W.params={}),fe({query:A.query,hash:A.hash,params:"path"in W?{}:A.params},W)}}function J(A,V){const M=l=w(A),W=c.value,ue=A.state,p=A.force,v=A.replace===!0,y=Y(M);if(y)return J(fe(E(y),{state:typeof y=="object"?fe({},ue,y.state):ue,force:p,replace:v}),V||M);const _=M;_.redirectedFrom=V;let P;return!p&&ug(r,W,M)&&(P=_n(16,{to:_,from:W}),Oe(W,W,!0,!1)),(P?Promise.resolve(P):B(_,W)).catch(R=>mt(R)?mt(R,2)?R:Ee(R):X(R,_,W)).then(R=>{if(R){if(mt(R,2))return J(fe({replace:v},E(R.to),{state:typeof R.to=="object"?fe({},ue,R.to.state):ue,force:p}),V||_)}else R=O(_,W,!0,v,ue);return U(_,W,R),R})}function x(A,V){const M=b(A,V);return M?Promise.reject(M):Promise.resolve()}function k(A){const V=tn.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(A):A()}function B(A,V){let M;const[W,ue,p]=lv(A,V);M=zs(W.reverse(),"beforeRouteLeave",A,V);for(const y of W)y.leaveGuards.forEach(_=>{M.push(Ot(_,A,V))});const v=x.bind(null,A,V);return M.push(v),Fe(M).then(()=>{M=[];for(const y of o.list())M.push(Ot(y,A,V));return M.push(v),Fe(M)}).then(()=>{M=zs(ue,"beforeRouteUpdate",A,V);for(const y of ue)y.updateGuards.forEach(_=>{M.push(Ot(_,A,V))});return M.push(v),Fe(M)}).then(()=>{M=[];for(const y of p)if(y.beforeEnter)if(st(y.beforeEnter))for(const _ of y.beforeEnter)M.push(Ot(_,A,V));else M.push(Ot(y.beforeEnter,A,V));return M.push(v),Fe(M)}).then(()=>(A.matched.forEach(y=>y.enterCallbacks={}),M=zs(p,"beforeRouteEnter",A,V),M.push(v),Fe(M))).then(()=>{M=[];for(const y of i.list())M.push(Ot(y,A,V));return M.push(v),Fe(M)}).catch(y=>mt(y,8)?y:Promise.reject(y))}function U(A,V,M){a.list().forEach(W=>k(()=>W(A,V,M)))}function O(A,V,M,W,ue){const p=b(A,V);if(p)return p;const v=V===Ct,y=fn?history.state:{};M&&(W||v?s.replace(A.fullPath,fe({scroll:v&&y&&y.scroll},ue)):s.push(A.fullPath,ue)),c.value=A,Oe(A,V,M,v),Ee()}let j;function te(){j||(j=s.listen((A,V,M)=>{if(!pr.listening)return;const W=w(A),ue=Y(W);if(ue){J(fe(ue,{replace:!0}),W).catch(Hn);return}l=W;const p=c.value;fn&&yg(za(p.fullPath,M.delta),xs()),B(W,p).catch(v=>mt(v,12)?v:mt(v,2)?(J(v.to,W).then(y=>{mt(y,20)&&!M.delta&&M.type===er.pop&&s.go(-1,!1)}).catch(Hn),Promise.reject()):(M.delta&&s.go(-M.delta,!1),X(v,W,p))).then(v=>{v=v||O(W,p,!1),v&&(M.delta&&!mt(v,8)?s.go(-M.delta,!1):M.type===er.pop&&mt(v,20)&&s.go(-1,!1)),U(W,p,v)}).catch(Hn)}))}let he=Tn(),Z=Tn(),ie;function X(A,V,M){Ee(A);const W=Z.list();return W.length?W.forEach(ue=>ue(A,V,M)):console.error(A),Promise.reject(A)}function se(){return ie&&c.value!==Ct?Promise.resolve():new Promise((A,V)=>{he.add([A,V])})}function Ee(A){return ie||(ie=!A,te(),he.list().forEach(([V,M])=>A?M(A):V()),he.reset()),A}function Oe(A,V,M,W){const{scrollBehavior:ue}=e;if(!fn||!ue)return Promise.resolve();const p=!M&&bg(za(A.fullPath,0))||(W||!M)&&history.state&&history.state.scroll||null;return ft().then(()=>ue(A,V,p)).then(v=>v&&vg(v)).catch(v=>X(v,A,V))}const Me=A=>s.go(A);let en;const tn=new Set,pr={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,hasRoute:S,getRoutes:g,resolve:w,options:e,push:L,replace:H,go:Me,back:()=>Me(-1),forward:()=>Me(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:Z.add,isReady:se,install(A){const V=this;A.component("RouterLink",nv),A.component("RouterView",iv),A.config.globalProperties.$router=V,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>ze(c)}),fn&&!en&&c.value===Ct&&(en=!0,L(s.location).catch(ue=>{}));const M={};for(const ue in Ct)Object.defineProperty(M,ue,{get:()=>c.value[ue],enumerable:!0});A.provide(As,V),A.provide(Si,pc(M)),A.provide(So,c);const W=A.unmount;tn.add(A),A.unmount=function(){tn.delete(A),tn.size<1&&(l=Ct,j&&j(),j=null,c.value=Ct,en=!1,ie=!1),W()}}};function Fe(A){return A.reduce((V,M)=>V.then(()=>k(M)),Promise.resolve())}return pr}function lv(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iwn(l,a))?r.push(a):n.push(a));const c=e.matched[i];c&&(t.matched.find(l=>wn(l,c))||s.push(c))}return[n,r,s]}function cv(){return _e(As)}function U0(){return _e(Si)}const z0="hello";function W0(e,t){try{pn.get(e).then(n=>{t.value=n.data})}catch(n){console.log(n)}}function K0(e){const t=new URL("@assets/bg-for-number-carousel.png",self.location).href;return console.log(t,"ffffffffffffffffffffffffffffff"),t}function q0(e){return e}function Y0(){const e=cv(),t=Ci(),n=Tu();console.log(e.currentRoute.value.meta,"-------------ttt------------------");let r={user__id:"user"in t&&"id"in t.user?t.user.id:null,page:e.currentRoute.value.meta.title,fullPath:e.currentRoute.value.fullPath,ico:e.currentRoute.value.meta.ico};Ru.post(`${Cs}api/watcher/counter/`,r).then(s=>{n.countvisitor=s.data})}const Ci=cu("AccountStore",()=>{const e=Tu(),t=ve({}),n=ve(!1),r=i=>{i.photo=`${Va}${i.login}.jpg`,t.value=i,console.log(i.photo,"value.photo-------------------")},s=async i=>{console.log(i),e.loading=!0;const a=await Ru.post("api/accounts/token/",i);localStorage.setItem("access",a.data.access),localStorage.setItem("refresh",a.data.refresh);let c=su.decode(a.data.refresh);c.user.photo=`${Va}${c.user.login}.jpg`,t.value=c.user,e.loading=!1},o=()=>{t.value={},localStorage.removeItem("access"),localStorage.removeItem("refresh")};return pe(t,(i,a)=>{n.value=!!("login"in i&&i.login.startsWith("9966-"))},{deep:!0}),{user:t,setUser:r,cod2user:n,logging:s,logout:o}});const uv={__name:"App",setup(e){const t=Ci();return(()=>{const r=localStorage.getItem("refresh");if(r){const s=su.decode(r);t.setUser(s.user)}})(),(r,s)=>{const o=mh("router-view");return lr(),ms(o)}}},fv="modulepreload",dv=function(e){return"/"+e},sl={},$e=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=dv(o),o in sl)return;sl[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===o&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":fv,i||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),i)return new Promise((u,f)=>{l.addEventListener("load",u),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};async function hv(){(await $e(()=>import("./webfontloader-bbaf57f6.js").then(t=>t.w),[])).load({google:{families:["Roboto:100,300,400,500,700,900&display=swap"]}})}function fr(e,t){let n;function r(){n=ir(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}pe(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),We(()=>{n==null||n.stop()})}function ol(e,t,n){mv(e,t),t.set(e,n)}function mv(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function pv(e,t,n){var r=Vu(e,t,"set");return gv(e,r,n),n}function gv(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Bt(e,t){var n=Vu(e,t,"get");return vv(e,n)}function Vu(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function vv(e,t){return t.get?t.get.call(e):t.value}function Hu(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;syv(e[r],t[r]))}function Co(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),Hu(e,t.split("."),n))}function J0(e,t,n){if(t==null)return e===void 0?n:e;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return Co(e,t,n);if(Array.isArray(t))return Hu(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Uu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function xo(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bv(e){return e&&"$el"in e?e.$el:e}const il=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),G0=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function X0(e){return Object.keys(e)}function Ws(e,t){return t.every(n=>e.hasOwnProperty(n))}function zu(e,t,n){const r=Object.create(null),s=Object.create(null);for(const o in e)t.some(i=>i instanceof RegExp?i.test(o):i===o)&&!(n!=null&&n.some(i=>i===o))?r[o]=e[o]:s[o]=e[o];return[r,s]}function wv(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function Z0(e){return zu(e,["class","style","id",/^data-/])}function Q0(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ao(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function al(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function _v(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const o=e[s],i=t[s];if(xo(o)&&xo(i)){r[s]=qe(o,i,n);continue}if(Array.isArray(o)&&Array.isArray(i)&&n){r[s]=n(o,i);continue}r[s]=i}return r}function Wu(e){return e.map(t=>t.type===ke?Wu(t.children):t).flat()}function Yt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Yt.cache.has(e))return Yt.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Yt.cache.set(e,t),t}Yt.cache=new Map;function Ks(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Ks(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>Ks(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Ks(e,t.component.subTree).flat(1)}return[]}var Sr=new WeakMap,on=new WeakMap;class tw{constructor(t){ol(this,Sr,{writable:!0,value:[]}),ol(this,on,{writable:!0,value:0}),this.size=t}push(t){Bt(this,Sr)[Bt(this,on)]=t,pv(this,on,(Bt(this,on)+1)%this.size)}values(){return Bt(this,Sr).slice(Bt(this,on)).concat(Bt(this,Sr).slice(0,Bt(this,on)))}}function xi(e){const t=ut({}),n=D(e);return Zt(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),as(t)}function qr(e,t){return e.includes(t)}const Ev=/^on[^a-z]/,Ku=e=>Ev.test(e);function qu(e){return e[2].toLowerCase()+e.slice(3)}const nw=()=>[Function,Array];function ll(e,t){return t="on"+bt(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function rw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r`${n}:not([tabindex="-1"]):not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function Po(e,t){var s,o,i;const n=Sv(e),r=n.indexOf(document.activeElement);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((s=n[0])==null||s.focus());else if(t==="first")(o=n[0])==null||o.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else{let a,c=r;const l=t==="next"?1:-1;do c+=l,a=n[c];while((!a||a.offsetParent==null)&&c=0);a?a.focus():Po(e,t==="next"?"first":"last")}}const Yu=["top","bottom"],Cv=["start","end","left","right"];function Oo(e,t){let[n,r]=e.split(" ");return r||(r=qr(Yu,n)?"start":qr(Cv,n)?"top":"center"),{side:cl(n,t),align:cl(r,t)}}function cl(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function qs(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Ys(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function ul(e){return{side:e.align,align:e.side}}function fl(e){return qr(Yu,e.side)?"y":"x"}class gn{constructor(t){let{x:n,y:r,width:s,height:o}=t;this.x=n,this.y=r,this.width=s,this.height=o}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 dl(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 Ju(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let s,o,i,a,c;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),o=+s[0],i=+s[5],a=+s[12],c=+s[13];else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),o=+s[0],i=+s[3],a=+s[4],c=+s[5];else return new gn(t);const l=n.transformOrigin,u=t.x-a-(1-o)*parseFloat(l),f=t.y-c-(1-i)*parseFloat(l.slice(l.indexOf(" ")+1)),d=o?t.width/o:e.offsetWidth+1,m=i?t.height/i:e.offsetHeight+1;return new gn({x:u,y:f,width:d,height:m})}else return new gn(t)}function Nn(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const Nr=new WeakMap;function xv(e,t){Object.keys(t).forEach(n=>{if(Ku(n)){const r=qu(n),s=Nr.get(e);if(t[n]==null)s==null||s.forEach(o=>{const[i,a]=o;i===r&&(e.removeEventListener(r,a),s.delete(o))});else if(!s||![...s].some(o=>o[0]===r&&o[1]===t[n])){e.addEventListener(r,t[n]);const o=s||new Set;o.add([r,t[n]]),Nr.has(e)||Nr.set(e,o)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function Av(e,t){Object.keys(t).forEach(n=>{if(Ku(n)){const r=qu(n),s=Nr.get(e);s==null||s.forEach(o=>{const[i,a]=o;i===r&&(e.removeEventListener(r,a),s.delete(o))})}else e.removeAttribute(n)})}function sw(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Yr=.20689655172413793,Pv=e=>e>Yr**3?Math.cbrt(e):e/(3*Yr**2)+4/29,Ov=e=>e>Yr?e**3:3*Yr**2*(e-4/29);function Gu(e){const t=Pv,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Xu(e){const t=Ov,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const Rv=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Tv=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,kv=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Fv=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Zu(e){const t=Array(3),n=Tv,r=Rv;for(let s=0;s<3;++s)t[s]=Math.round(Ao(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Ai(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],o=Fv,i=kv;t=o(t/255),n=o(n/255),r=o(r/255);for(let a=0;a<3;++a)s[a]=i[a][0]*t+i[a][1]*n+i[a][2]*r;return s}function hl(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}const ml=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Lv={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>pl({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>pl({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>tr({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>tr({h:e,s:t,v:n,a:r})};function Wt(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&ml.test(e)){const{groups:t}=e.match(ml),{fn:n,values:r}=t,s=r.split(/,\s*/).map(o=>o.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(o)/100:parseFloat(o));return Lv[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),Nv(t)}else if(typeof e=="object"){if(Ws(e,["r","g","b"]))return e;if(Ws(e,["h","s","l"]))return tr(Qu(e));if(Ws(e,["h","s","v"]))return tr(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} + */const fn=typeof window<"u";function ig(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const fe=Object.assign;function Hs(e,t){const n={};for(const r in t){const s=t[r];n[r]=st(s)?s.map(e):e(s)}return n}const Hn=()=>{},st=Array.isArray,ag=/\/$/,lg=e=>e.replace(ag,"");function Us(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,a>-1?a:t.length),s=e(o)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=dg(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function cg(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ha(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ug(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&wn(t.matched[r],n.matched[s])&&ku(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ku(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fg(e[n],t[n]))return!1;return!0}function fg(e,t){return st(e)?Ua(e,t):st(t)?Ua(t,e):e===t}function Ua(e,t){return st(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function dg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var er;(function(e){e.pop="pop",e.push="push"})(er||(er={}));var Un;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Un||(Un={}));function hg(e){if(!e)if(fn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lg(e)}const mg=/^[^#]+#/;function pg(e,t){return e.replace(mg,"#")+t}function gg(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const xs=()=>({left:window.pageXOffset,top:window.pageYOffset});function vg(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=gg(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function za(e,t){return(history.state?history.state.position-t:-1)+e}const _o=new Map;function yg(e,t){_o.set(e,t)}function bg(e){const t=_o.get(e);return _o.delete(e),t}let wg=()=>location.protocol+"//"+location.host;function Fu(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(a);return c[0]!=="/"&&(c="/"+c),Ha(c,"")}return Ha(n,e)+r+s}function _g(e,t,n,r){let s=[],o=[],i=null;const a=({state:d})=>{const m=Fu(e,location),h=n.value,g=t.value;let S=0;if(d){if(n.value=m,t.value=d,i&&i===h){i=null;return}S=g?d.position-g.position:0}else r(m);s.forEach(w=>{w(n.value,h,{delta:S,type:er.pop,direction:S?S>0?Un.forward:Un.back:Un.unknown})})};function c(){i=n.value}function l(d){s.push(d);const m=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return o.push(m),m}function u(){const{history:d}=window;d.state&&d.replaceState(fe({},d.state,{scroll:xs()}),"")}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:l,destroy:f}}function Wa(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?xs():null}}function Eg(e){const{history:t,location:n}=window,r={value:Fu(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,l,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:wg()+e+c;try{t[u?"replaceState":"pushState"](l,"",d),s.value=l}catch(m){console.error(m),n[u?"replace":"assign"](d)}}function i(c,l){const u=fe({},t.state,Wa(s.value.back,c,s.value.forward,!0),l,{position:s.value.position});o(c,u,!0),r.value=c}function a(c,l){const u=fe({},s.value,t.state,{forward:c,scroll:xs()});o(u.current,u,!0);const f=fe({},Wa(r.value,c,null),{position:u.position+1},l);o(c,f,!1),r.value=c}return{location:r,state:s,push:a,replace:i}}function Sg(e){e=hg(e);const t=Eg(e),n=_g(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=fe({location:"",base:e,go:r,createHref:pg.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Cg(e){return typeof e=="string"||e&&typeof e=="object"}function Lu(e){return typeof e=="string"||typeof e=="symbol"}const Ct={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Iu=Symbol("");var Ka;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ka||(Ka={}));function _n(e,t){return fe(new Error,{type:e,[Iu]:!0},t)}function mt(e,t){return e instanceof Error&&Iu in e&&(t==null||!!(e.type&t))}const qa="[^/]+?",xg={sensitive:!1,strict:!1,start:!0,end:!0},Ag=/[.+*?^${}()[\]/\\]/g;function Pg(e,t){const n=fe({},xg,t),r=[];let s=n.start?"^":"";const o=[];for(const l of e){const u=l.length?[]:[90];n.strict&&!l.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Rg(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Tg={type:0,value:""},kg=/[a-zA-Z0-9_]/;function Fg(e){if(!e)return[[]];if(e==="/")return[[Tg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${l}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,c,l="",u="";function f(){l&&(n===0?o.push({type:0,value:l}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:l,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function d(){l+=c}for(;a{i(E)}:Hn}function i(u){if(Lu(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function c(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!Nu(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Ga(u)&&r.set(u.record.name,u)}function l(u,f){let d,m={},h,g;if("name"in u&&u.name){if(d=r.get(u.name),!d)throw _n(1,{location:u});g=d.record.name,m=fe(Ja(f.params,d.keys.filter(E=>!E.optional).map(E=>E.name)),u.params&&Ja(u.params,d.keys.map(E=>E.name))),h=d.stringify(m)}else if("path"in u)h=u.path,d=n.find(E=>E.re.test(h)),d&&(m=d.parse(h),g=d.record.name);else{if(d=f.name?r.get(f.name):n.find(E=>E.re.test(f.path)),!d)throw _n(1,{location:u,currentLocation:f});g=d.record.name,m=fe({},f.params,u.params),h=d.stringify(m)}const S=[];let w=d;for(;w;)S.unshift(w.record),w=w.parent;return{name:g,path:h,params:m,matched:S,meta:Mg(S)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:l,removeRoute:i,getRoutes:a,getRecordMatcher:s}}function Ja(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ng(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Dg(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ga(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Mg(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function Xa(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Nu(e,t){return t.children.some(n=>n===e||Nu(e,n))}const Du=/#/g,$g=/&/g,Bg=/\//g,jg=/=/g,Vg=/\?/g,Mu=/\+/g,Hg=/%5B/g,Ug=/%5D/g,$u=/%5E/g,zg=/%60/g,Bu=/%7B/g,Wg=/%7C/g,ju=/%7D/g,Kg=/%20/g;function Ei(e){return encodeURI(""+e).replace(Wg,"|").replace(Hg,"[").replace(Ug,"]")}function qg(e){return Ei(e).replace(Bu,"{").replace(ju,"}").replace($u,"^")}function Eo(e){return Ei(e).replace(Mu,"%2B").replace(Kg,"+").replace(Du,"%23").replace($g,"%26").replace(zg,"`").replace(Bu,"{").replace(ju,"}").replace($u,"^")}function Yg(e){return Eo(e).replace(jg,"%3D")}function Jg(e){return Ei(e).replace(Du,"%23").replace(Vg,"%3F")}function Gg(e){return e==null?"":Jg(e).replace(Bg,"%2F")}function Kr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Xg(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Eo(o)):[r&&Eo(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Zg(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=st(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Qg=Symbol(""),Qa=Symbol(""),As=Symbol(""),Si=Symbol(""),So=Symbol("");function Tn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ot(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,a)=>{const c=f=>{f===!1?a(_n(4,{from:n,to:t})):f instanceof Error?a(f):Cg(f)?a(_n(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),i())},l=e.call(r&&r.instances[s],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch(f=>a(f))})}function zs(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(ev(a)){const l=(a.__vccOpts||a)[t];l&&s.push(Ot(l,n,r,o,i))}else{let c=a();s.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=ig(l)?l.default:l;o.components[i]=u;const d=(u.__vccOpts||u)[t];return d&&Ot(d,n,r,o,i)()}))}}return s}function ev(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function el(e){const t=_e(As),n=_e(Si),r=D(()=>t.resolve(ze(e.to))),s=D(()=>{const{matched:c}=r.value,{length:l}=c,u=c[l-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(wn.bind(null,u));if(d>-1)return d;const m=tl(c[l-2]);return l>1&&tl(u)===m&&f[f.length-1].path!==m?f.findIndex(wn.bind(null,c[l-2])):d}),o=D(()=>s.value>-1&&sv(n.params,r.value.params)),i=D(()=>s.value>-1&&s.value===n.matched.length-1&&ku(n.params,r.value.params));function a(c={}){return rv(c)?t[ze(e.replace)?"replace":"push"](ze(e.to)).catch(Hn):Promise.resolve()}return{route:r,href:D(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}const tv=fs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:el,setup(e,{slots:t}){const n=ut(el(e)),{options:r}=_e(As),s=D(()=>({[nl(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[nl(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Nt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),nv=tv;function rv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function sv(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!st(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function tl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nl=(e,t,n)=>e??t??n,ov=fs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=_e(So),s=D(()=>e.route||r.value),o=_e(Qa,0),i=D(()=>{let l=ze(o);const{matched:u}=s.value;let f;for(;(f=u[l])&&!f.components;)l++;return l}),a=D(()=>s.value.matched[i.value]);Ft(Qa,D(()=>i.value+1)),Ft(Qg,a),Ft(So,s);const c=ve();return pe(()=>[c.value,a.value,e.name],([l,u,f],[d,m,h])=>{u&&(u.instances[f]=l,m&&m!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),l&&u&&(!m||!wn(u,m)||!d)&&(u.enterCallbacks[f]||[]).forEach(g=>g(l))},{flush:"post"}),()=>{const l=s.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return rl(n.default,{Component:d,route:l});const m=f.props[u],h=m?m===!0?l.params:typeof m=="function"?m(l):m:null,S=Nt(d,fe({},h,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return rl(n.default,{Component:S,route:l})||S}}});function rl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const iv=ov;function av(e){const t=Ig(e.routes,e),n=e.parseQuery||Xg,r=e.stringifyQuery||Za,s=e.history,o=Tn(),i=Tn(),a=Tn(),c=xe(Ct);let l=Ct;fn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Hs.bind(null,A=>""+A),f=Hs.bind(null,Gg),d=Hs.bind(null,Kr);function m(A,V){let M,W;return Lu(A)?(M=t.getRecordMatcher(A),W=V):W=A,t.addRoute(W,M)}function h(A){const V=t.getRecordMatcher(A);V&&t.removeRoute(V)}function g(){return t.getRoutes().map(A=>A.record)}function S(A){return!!t.getRecordMatcher(A)}function w(A,V){if(V=fe({},V||c.value),typeof A=="string"){const y=Us(n,A,V.path),_=t.resolve({path:y.path},V),P=s.createHref(y.fullPath);return fe(y,_,{params:d(_.params),hash:Kr(y.hash),redirectedFrom:void 0,href:P})}let M;if("path"in A)M=fe({},A,{path:Us(n,A.path,V.path).path});else{const y=fe({},A.params);for(const _ in y)y[_]==null&&delete y[_];M=fe({},A,{params:f(y)}),V.params=f(V.params)}const W=t.resolve(M,V),ue=A.hash||"";W.params=u(d(W.params));const p=cg(r,fe({},A,{hash:qg(ue),path:W.path})),v=s.createHref(p);return fe({fullPath:p,hash:ue,query:r===Za?Zg(A.query):A.query||{}},W,{redirectedFrom:void 0,href:v})}function E(A){return typeof A=="string"?Us(n,A,c.value.path):fe({},A)}function b(A,V){if(l!==A)return _n(8,{from:V,to:A})}function L(A){return J(A)}function H(A){return L(fe(E(A),{replace:!0}))}function Y(A){const V=A.matched[A.matched.length-1];if(V&&V.redirect){const{redirect:M}=V;let W=typeof M=="function"?M(A):M;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=E(W):{path:W},W.params={}),fe({query:A.query,hash:A.hash,params:"path"in W?{}:A.params},W)}}function J(A,V){const M=l=w(A),W=c.value,ue=A.state,p=A.force,v=A.replace===!0,y=Y(M);if(y)return J(fe(E(y),{state:typeof y=="object"?fe({},ue,y.state):ue,force:p,replace:v}),V||M);const _=M;_.redirectedFrom=V;let P;return!p&&ug(r,W,M)&&(P=_n(16,{to:_,from:W}),Oe(W,W,!0,!1)),(P?Promise.resolve(P):B(_,W)).catch(R=>mt(R)?mt(R,2)?R:Ee(R):X(R,_,W)).then(R=>{if(R){if(mt(R,2))return J(fe({replace:v},E(R.to),{state:typeof R.to=="object"?fe({},ue,R.to.state):ue,force:p}),V||_)}else R=O(_,W,!0,v,ue);return U(_,W,R),R})}function x(A,V){const M=b(A,V);return M?Promise.reject(M):Promise.resolve()}function k(A){const V=tn.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(A):A()}function B(A,V){let M;const[W,ue,p]=lv(A,V);M=zs(W.reverse(),"beforeRouteLeave",A,V);for(const y of W)y.leaveGuards.forEach(_=>{M.push(Ot(_,A,V))});const v=x.bind(null,A,V);return M.push(v),Fe(M).then(()=>{M=[];for(const y of o.list())M.push(Ot(y,A,V));return M.push(v),Fe(M)}).then(()=>{M=zs(ue,"beforeRouteUpdate",A,V);for(const y of ue)y.updateGuards.forEach(_=>{M.push(Ot(_,A,V))});return M.push(v),Fe(M)}).then(()=>{M=[];for(const y of p)if(y.beforeEnter)if(st(y.beforeEnter))for(const _ of y.beforeEnter)M.push(Ot(_,A,V));else M.push(Ot(y.beforeEnter,A,V));return M.push(v),Fe(M)}).then(()=>(A.matched.forEach(y=>y.enterCallbacks={}),M=zs(p,"beforeRouteEnter",A,V),M.push(v),Fe(M))).then(()=>{M=[];for(const y of i.list())M.push(Ot(y,A,V));return M.push(v),Fe(M)}).catch(y=>mt(y,8)?y:Promise.reject(y))}function U(A,V,M){a.list().forEach(W=>k(()=>W(A,V,M)))}function O(A,V,M,W,ue){const p=b(A,V);if(p)return p;const v=V===Ct,y=fn?history.state:{};M&&(W||v?s.replace(A.fullPath,fe({scroll:v&&y&&y.scroll},ue)):s.push(A.fullPath,ue)),c.value=A,Oe(A,V,M,v),Ee()}let j;function te(){j||(j=s.listen((A,V,M)=>{if(!pr.listening)return;const W=w(A),ue=Y(W);if(ue){J(fe(ue,{replace:!0}),W).catch(Hn);return}l=W;const p=c.value;fn&&yg(za(p.fullPath,M.delta),xs()),B(W,p).catch(v=>mt(v,12)?v:mt(v,2)?(J(v.to,W).then(y=>{mt(y,20)&&!M.delta&&M.type===er.pop&&s.go(-1,!1)}).catch(Hn),Promise.reject()):(M.delta&&s.go(-M.delta,!1),X(v,W,p))).then(v=>{v=v||O(W,p,!1),v&&(M.delta&&!mt(v,8)?s.go(-M.delta,!1):M.type===er.pop&&mt(v,20)&&s.go(-1,!1)),U(W,p,v)}).catch(Hn)}))}let he=Tn(),Z=Tn(),ie;function X(A,V,M){Ee(A);const W=Z.list();return W.length?W.forEach(ue=>ue(A,V,M)):console.error(A),Promise.reject(A)}function se(){return ie&&c.value!==Ct?Promise.resolve():new Promise((A,V)=>{he.add([A,V])})}function Ee(A){return ie||(ie=!A,te(),he.list().forEach(([V,M])=>A?M(A):V()),he.reset()),A}function Oe(A,V,M,W){const{scrollBehavior:ue}=e;if(!fn||!ue)return Promise.resolve();const p=!M&&bg(za(A.fullPath,0))||(W||!M)&&history.state&&history.state.scroll||null;return ft().then(()=>ue(A,V,p)).then(v=>v&&vg(v)).catch(v=>X(v,A,V))}const Me=A=>s.go(A);let en;const tn=new Set,pr={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,hasRoute:S,getRoutes:g,resolve:w,options:e,push:L,replace:H,go:Me,back:()=>Me(-1),forward:()=>Me(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:Z.add,isReady:se,install(A){const V=this;A.component("RouterLink",nv),A.component("RouterView",iv),A.config.globalProperties.$router=V,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>ze(c)}),fn&&!en&&c.value===Ct&&(en=!0,L(s.location).catch(ue=>{}));const M={};for(const ue in Ct)Object.defineProperty(M,ue,{get:()=>c.value[ue],enumerable:!0});A.provide(As,V),A.provide(Si,pc(M)),A.provide(So,c);const W=A.unmount;tn.add(A),A.unmount=function(){tn.delete(A),tn.size<1&&(l=Ct,j&&j(),j=null,c.value=Ct,en=!1,ie=!1),W()}}};function Fe(A){return A.reduce((V,M)=>V.then(()=>k(M)),Promise.resolve())}return pr}function lv(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iwn(l,a))?r.push(a):n.push(a));const c=e.matched[i];c&&(t.matched.find(l=>wn(l,c))||s.push(c))}return[n,r,s]}function cv(){return _e(As)}function U0(){return _e(Si)}const z0="hello";function W0(e,t){try{pn.get(e).then(n=>{t.value=n.data})}catch(n){console.log(n)}}function K0(e){const t=new URL("@assets/bg-for-number-carousel.png",self.location).href;return console.log(t,"ffffffffffffffffffffffffffffff"),t}function q0(e){return e}function Y0(){const e=cv(),t=Ci(),n=Tu();console.log(e.currentRoute.value.meta,"-------------ttt------------------");let r={user__id:"user"in t&&"id"in t.user?t.user.id:null,page:e.currentRoute.value.meta.title,fullPath:e.currentRoute.value.fullPath,ico:e.currentRoute.value.meta.ico};Ru.post(`${Cs}api/watcher/counter/`,r).then(s=>{n.countvisitor=s.data})}const Ci=cu("AccountStore",()=>{const e=Tu(),t=ve({}),n=ve(!1),r=i=>{i.photo=`${Va}${i.login}.jpg`,t.value=i,console.log(i.photo,"value.photo-------------------")},s=async i=>{console.log(i),e.loading=!0;const a=await Ru.post("api/accounts/token/",i);localStorage.setItem("access",a.data.access),localStorage.setItem("refresh",a.data.refresh);let c=su.decode(a.data.refresh);c.user.photo=`${Va}${c.user.login}.jpg`,t.value=c.user,e.loading=!1},o=()=>{t.value={},localStorage.removeItem("access"),localStorage.removeItem("refresh")};return pe(t,(i,a)=>{n.value=!!("login"in i&&i.login.startsWith("9966-"))},{deep:!0}),{user:t,setUser:r,cod2user:n,logging:s,logout:o}});const uv={__name:"App",setup(e){const t=Ci();return(()=>{const r=localStorage.getItem("refresh");if(r){const s=su.decode(r);t.setUser(s.user)}})(),(r,s)=>{const o=mh("router-view");return lr(),ms(o)}}},fv="modulepreload",dv=function(e){return"/"+e},sl={},$e=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=dv(o),o in sl)return;sl[o]=!0;const i=o.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const f=s[u];if(f.href===o&&(!i||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":fv,i||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),i)return new Promise((u,f)=>{l.addEventListener("load",u),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};async function hv(){(await $e(()=>import("./webfontloader-23beb774.js").then(t=>t.w),[])).load({google:{families:["Roboto:100,300,400,500,700,900&display=swap"]}})}function fr(e,t){let n;function r(){n=ir(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}pe(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),We(()=>{n==null||n.stop()})}function ol(e,t,n){mv(e,t),t.set(e,n)}function mv(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function pv(e,t,n){var r=Vu(e,t,"set");return gv(e,r,n),n}function gv(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Bt(e,t){var n=Vu(e,t,"get");return vv(e,n)}function Vu(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function vv(e,t){return t.get?t.get.call(e):t.value}function Hu(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;syv(e[r],t[r]))}function Co(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),Hu(e,t.split("."),n))}function J0(e,t,n){if(t==null)return e===void 0?n:e;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return Co(e,t,n);if(Array.isArray(t))return Hu(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Uu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function xo(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bv(e){return e&&"$el"in e?e.$el:e}const il=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),G0=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function X0(e){return Object.keys(e)}function Ws(e,t){return t.every(n=>e.hasOwnProperty(n))}function zu(e,t,n){const r=Object.create(null),s=Object.create(null);for(const o in e)t.some(i=>i instanceof RegExp?i.test(o):i===o)&&!(n!=null&&n.some(i=>i===o))?r[o]=e[o]:s[o]=e[o];return[r,s]}function wv(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function Z0(e){return zu(e,["class","style","id",/^data-/])}function Q0(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ao(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function al(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function _v(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const o=e[s],i=t[s];if(xo(o)&&xo(i)){r[s]=qe(o,i,n);continue}if(Array.isArray(o)&&Array.isArray(i)&&n){r[s]=n(o,i);continue}r[s]=i}return r}function Wu(e){return e.map(t=>t.type===ke?Wu(t.children):t).flat()}function Yt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Yt.cache.has(e))return Yt.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Yt.cache.set(e,t),t}Yt.cache=new Map;function Ks(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Ks(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>Ks(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return Ks(e,t.component.subTree).flat(1)}return[]}var Sr=new WeakMap,on=new WeakMap;class tw{constructor(t){ol(this,Sr,{writable:!0,value:[]}),ol(this,on,{writable:!0,value:0}),this.size=t}push(t){Bt(this,Sr)[Bt(this,on)]=t,pv(this,on,(Bt(this,on)+1)%this.size)}values(){return Bt(this,Sr).slice(Bt(this,on)).concat(Bt(this,Sr).slice(0,Bt(this,on)))}}function xi(e){const t=ut({}),n=D(e);return Zt(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),as(t)}function qr(e,t){return e.includes(t)}const Ev=/^on[^a-z]/,Ku=e=>Ev.test(e);function qu(e){return e[2].toLowerCase()+e.slice(3)}const nw=()=>[Function,Array];function ll(e,t){return t="on"+bt(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function rw(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r`${n}:not([tabindex="-1"]):not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function Po(e,t){var s,o,i;const n=Sv(e),r=n.indexOf(document.activeElement);if(!t)(e===document.activeElement||!e.contains(document.activeElement))&&((s=n[0])==null||s.focus());else if(t==="first")(o=n[0])==null||o.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else{let a,c=r;const l=t==="next"?1:-1;do c+=l,a=n[c];while((!a||a.offsetParent==null)&&c=0);a?a.focus():Po(e,t==="next"?"first":"last")}}const Yu=["top","bottom"],Cv=["start","end","left","right"];function Oo(e,t){let[n,r]=e.split(" ");return r||(r=qr(Yu,n)?"start":qr(Cv,n)?"top":"center"),{side:cl(n,t),align:cl(r,t)}}function cl(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function qs(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Ys(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function ul(e){return{side:e.align,align:e.side}}function fl(e){return qr(Yu,e.side)?"y":"x"}class gn{constructor(t){let{x:n,y:r,width:s,height:o}=t;this.x=n,this.y=r,this.width=s,this.height=o}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 dl(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 Ju(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let s,o,i,a,c;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),o=+s[0],i=+s[5],a=+s[12],c=+s[13];else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),o=+s[0],i=+s[3],a=+s[4],c=+s[5];else return new gn(t);const l=n.transformOrigin,u=t.x-a-(1-o)*parseFloat(l),f=t.y-c-(1-i)*parseFloat(l.slice(l.indexOf(" ")+1)),d=o?t.width/o:e.offsetWidth+1,m=i?t.height/i:e.offsetHeight+1;return new gn({x:u,y:f,width:d,height:m})}else return new gn(t)}function Nn(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const Nr=new WeakMap;function xv(e,t){Object.keys(t).forEach(n=>{if(Ku(n)){const r=qu(n),s=Nr.get(e);if(t[n]==null)s==null||s.forEach(o=>{const[i,a]=o;i===r&&(e.removeEventListener(r,a),s.delete(o))});else if(!s||![...s].some(o=>o[0]===r&&o[1]===t[n])){e.addEventListener(r,t[n]);const o=s||new Set;o.add([r,t[n]]),Nr.has(e)||Nr.set(e,o)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function Av(e,t){Object.keys(t).forEach(n=>{if(Ku(n)){const r=qu(n),s=Nr.get(e);s==null||s.forEach(o=>{const[i,a]=o;i===r&&(e.removeEventListener(r,a),s.delete(o))})}else e.removeAttribute(n)})}function sw(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const Yr=.20689655172413793,Pv=e=>e>Yr**3?Math.cbrt(e):e/(3*Yr**2)+4/29,Ov=e=>e>Yr?e**3:3*Yr**2*(e-4/29);function Gu(e){const t=Pv,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Xu(e){const t=Ov,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const Rv=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Tv=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,kv=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Fv=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Zu(e){const t=Array(3),n=Tv,r=Rv;for(let s=0;s<3;++s)t[s]=Math.round(Ao(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Ai(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],o=Fv,i=kv;t=o(t/255),n=o(n/255),r=o(r/255);for(let a=0;a<3;++a)s[a]=i[a][0]*t+i[a][1]*n+i[a][2]*r;return s}function hl(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}const ml=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Lv={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>pl({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>pl({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>tr({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>tr({h:e,s:t,v:n,a:r})};function Wt(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&ml.test(e)){const{groups:t}=e.match(ml),{fn:n,values:r}=t,s=r.split(/,\s*/).map(o=>o.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(o)/100:parseFloat(o));return Lv[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),Nv(t)}else if(typeof e=="object"){if(Ws(e,["r","g","b"]))return e;if(Ws(e,["h","s","l"]))return tr(Qu(e));if(Ws(e,["h","s","v"]))return tr(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name} Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function tr(e){const{h:t,s:n,v:r,a:s}=e,o=a=>{const c=(a+t/60)%6;return r-r*n*Math.max(Math.min(c,4-c,1),0)},i=[o(5),o(3),o(1)].map(a=>Math.round(a*255));return{r:i[0],g:i[1],b:i[2],a:s}}function pl(e){return tr(Qu(e))}function Qu(e){const{h:t,s:n,l:r,a:s}=e,o=r+n*Math.min(r,1-r),i=o===0?0:2-2*r/o;return{h:t,s:i,v:o,a:s}}function Cr(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function Iv(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Cr(t),Cr(n),Cr(r),s!==void 0?Cr(Math.round(s*255)):""].join("")}`}function Nv(e){e=Dv(e);let[t,n,r,s]=_v(e,2).map(o=>parseInt(o,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function Dv(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=al(al(e,6),8,"F")),e}function Mv(e,t){const n=Gu(Ai(e));return n[0]=n[0]+t*10,Zu(Xu(n))}function $v(e,t){const n=Gu(Ai(e));return n[0]=n[0]-t*10,Zu(Xu(n))}function Bv(e){const t=Wt(e);return Ai(t)[1]}function oe(e,t){return n=>Object.keys(e).reduce((r,s)=>{const i=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...i,default:n[s]}:r[s]=i,t&&!r[s].source&&(r[s].source=t),r},{})}const Xe=oe({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component");function dr(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=oe(e.props??{},e.name)();const t=Object.keys(e.props);e.filterProps=function(r){return zu(r,t,["class","style"])},e.props._as=String,e.setup=function(r,s){const o=ki();if(!o.value)return e._setup(r,s);const{props:i,provideSubDefaults:a}=Gv(r,r._as??e.name,o),c=e._setup(i,s);return a(),c}}return e}function Ie(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?dr:fs)(t)}function Pi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return Ie()({name:n??bt(rt(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...Xe()},setup(r,s){let{slots:o}=s;return()=>{var i;return Nt(r.tag,{class:[e,r.class],style:r.style},(i=o.default)==null?void 0:i.call(o))}}})}function ef(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 Ro="cubic-bezier(0.4, 0, 0.2, 1)",jv="cubic-bezier(0.0, 0, 0.2, 1)",Vv="cubic-bezier(0.4, 0, 1, 1)";function Ze(e,t){const n=mi();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function Qt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Ze(e).type;return Yt((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let tf=0,Dr=new WeakMap;function Oi(){const e=Ze("getUid");if(Dr.has(e))return Dr.get(e);{const t=tf++;return Dr.set(e,t),t}}Oi.reset=()=>{tf=0,Dr=new WeakMap};function Hv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?Uv(e):Ri(e))return e;e=e.parentElement}return document.scrollingElement}function Jr(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(Ri(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function Ri(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 Uv(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}const Te=typeof window<"u",Ti=Te&&"IntersectionObserver"in window,zv=Te&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),Wv=Te&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports("selector(:focus-visible)");function Kv(e){const{provides:t}=Ze("injectSelf");if(t&&e in t)return t[e]}function qv(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ht(e){const t=Ze("useRender");t.render=e}const nr=Symbol.for("vuetify:defaults");function Yv(e){return ve(e)}function ki(){const e=_e(nr);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Fi(e,t){const n=ki(),r=ve(e),s=D(()=>{if(ze(t==null?void 0:t.disabled))return n.value;const i=ze(t==null?void 0:t.scoped),a=ze(t==null?void 0:t.reset),c=ze(t==null?void 0:t.root);let l=qe(r.value,{prev:n.value});if(i)return l;if(a||c){const u=Number(a||1/0);for(let f=0;f<=u&&!(!l||!("prev"in l));f++)l=l.prev;return l&&typeof c=="string"&&c in l&&(l=qe(qe(l,{prev:l}),l[c])),l}return l.prev?qe(l.prev,l):l});return Ft(nr,s),s}function Jv(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[Yt(t)])<"u"}function Gv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ki();const r=Ze("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=D(()=>{var c;return(c=n.value)==null?void 0:c[e._as??t]}),o=new Proxy(e,{get(c,l){var f,d,m,h;const u=Reflect.get(c,l);return l==="class"||l==="style"?[(f=s.value)==null?void 0:f[l],u].filter(g=>g!=null):typeof l=="string"&&!Jv(r.vnode,l)?((d=s.value)==null?void 0:d[l])??((h=(m=n.value)==null?void 0:m.global)==null?void 0:h[l])??u:u}}),i=xe();Zt(()=>{if(s.value){const c=Object.entries(s.value).filter(l=>{let[u]=l;return u.startsWith(u[0].toUpperCase())});c.length&&(i.value=Object.fromEntries(c))}});function a(){fr(i,()=>{var c;Fi(qe(((c=Kv(nr))==null?void 0:c.value)??{},i.value))})}return{props:o,provideSubDefaults:a}}const Ps=["sm","md","lg","xl","xxl"],To=Symbol.for("vuetify:display"),gl={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},Xv=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gl;return qe(gl,e)};function vl(e){return Te&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function yl(e){return Te&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function bl(e){const t=Te&&!e?window.navigator.userAgent:"ssr";function n(h){return!!t.match(h)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),o=n(/cordova/i),i=n(/electron/i),a=n(/chrome/i),c=n(/edge/i),l=n(/firefox/i),u=n(/opera/i),f=n(/win/i),d=n(/mac/i),m=n(/linux/i);return{android:r,ios:s,cordova:o,electron:i,chrome:a,edge:c,firefox:l,opera:u,win:f,mac:d,linux:m,touch:zv,ssr:t==="ssr"}}function Zv(e,t){const{thresholds:n,mobileBreakpoint:r}=Xv(e),s=xe(yl(t)),o=xe(bl(t)),i=ut({}),a=xe(vl(t));function c(){s.value=yl(),a.value=vl()}function l(){c(),o.value=bl()}return Zt(()=>{const u=a.value=n.xxl,S=u?"xs":f?"sm":d?"md":m?"lg":h?"xl":"xxl",w=typeof r=="number"?r:n[r],E=a.valueNt(rf,{...e,class:"mdi"})},Gt=[String,Function,Object,Array],ko=Symbol.for("vuetify:icons"),Os=oe({icon:{type:Gt},tag:{type:String,required:!0}},"icon"),wl=Ie()({name:"VComponentIcon",props:Os(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return T(e.tag,null,{default:()=>{var s;return[e.icon?T(r,null,null):(s=n.default)==null?void 0:s.call(n)]}})}}}),nf=dr({name:"VSvgIcon",inheritAttrs:!1,props:Os(),setup(e,t){let{attrs:n}=t;return()=>T(e.tag,De(n,{style:null}),{default:()=>[T("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?T("path",{d:r[0],"fill-opacity":r[1]},null):T("path",{d:r},null)):T("path",{d:e.icon},null)])]})}});dr({name:"VLigatureIcon",props:Os(),setup(e){return()=>T(e.tag,null,{default:()=>[e.icon]})}});const rf=dr({name:"VClassIcon",props:Os(),setup(e){return()=>T(e.tag,{class:e.icon},null)}}),ny={svg:{component:nf},class:{component:rf}};function ry(e){return qe({defaultSet:"mdi",sets:{...ny,mdi:ty},aliases:{...ey,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},e)}const sy=e=>{const t=_e(ko);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:D(()=>{var c;const r=ze(e);if(!r)return{component:wl};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(c=t.aliases)==null?void 0:c[s.slice(1)])),!s)throw new Error(`Could not find aliased icon "${r}"`);if(Array.isArray(s))return{component:nf,icon:s};if(typeof s!="string")return{component:wl,icon:s};const o=Object.keys(t.sets).find(l=>typeof s=="string"&&s.startsWith(`${l}:`)),i=o?s.slice(o.length+1):s;return{component:t.sets[o??t.defaultSet].component,icon:i}})}},oy={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{ok:"OK",cancel:"Cancel",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},iy={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1};function Rs(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const o=Ze("useProxiedModel"),i=ve(e[t]!==void 0?e[t]:n),a=Yt(t),l=D(a!==t?()=>{var f,d,m,h;return e[t],!!(((f=o.vnode.props)!=null&&f.hasOwnProperty(t)||(d=o.vnode.props)!=null&&d.hasOwnProperty(a))&&((m=o.vnode.props)!=null&&m.hasOwnProperty(`onUpdate:${t}`)||(h=o.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var f,d;return e[t],!!((f=o.vnode.props)!=null&&f.hasOwnProperty(t)&&((d=o.vnode.props)!=null&&d.hasOwnProperty(`onUpdate:${t}`)))});fr(()=>!l.value,()=>{pe(()=>e[t],f=>{i.value=f})});const u=D({get(){const f=e[t];return r(l.value?f:i.value)},set(f){const d=s(f),m=ne(l.value?e[t]:i.value);m===d||r(m)===f||(i.value=d,o==null||o.emit(`update:${t}`,d))}});return Object.defineProperty(u,"externalValue",{get:()=>l.value?e[t]:i.value}),u}const _l="$vuetify.",El=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),sf=(e,t,n)=>function(r){for(var s=arguments.length,o=new Array(s>1?s-1:0),i=1;inew Intl.NumberFormat([e.value,t.value],r).format(n)}function Js(e,t,n){const r=Rs(e,t,e[t]??n.value);return r.value=e[t]??n.value,pe(n,s=>{e[t]==null&&(r.value=n.value)}),r}function af(e){return t=>{const n=Js(t,"locale",e.current),r=Js(t,"fallback",e.fallback),s=Js(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,t:sf(n,r,s),n:of(n,r),provide:af({current:n,fallback:r,messages:s})}}}function ay(e){const t=xe((e==null?void 0:e.locale)??"en"),n=xe((e==null?void 0:e.fallback)??"en"),r=ve({en:oy,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:sf(t,n,r),n:of(t,n),provide:af({current:t,fallback:n,messages:r})}}const Gr=Symbol.for("vuetify:locale");function ly(e){return e.name!=null}function cy(e){const t=e!=null&&e.adapter&&ly(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:ay(e),n=uy(t,e);return{...t,...n}}function ow(){const e=_e(Gr);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function uy(e,t){const n=ve((t==null?void 0:t.rtl)??iy),r=D(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:D(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Li(){const e=_e(Gr);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const an=2.4,Sl=.2126729,Cl=.7151522,xl=.072175,fy=.55,dy=.58,hy=.57,my=.62,xr=.03,Al=1.45,py=5e-4,gy=1.25,vy=1.25,Pl=.078,Ol=12.82051282051282,Ar=.06,Rl=.001;function Tl(e,t){const n=(e.r/255)**an,r=(e.g/255)**an,s=(e.b/255)**an,o=(t.r/255)**an,i=(t.g/255)**an,a=(t.b/255)**an;let c=n*Sl+r*Cl+s*xl,l=o*Sl+i*Cl+a*xl;if(c<=xr&&(c+=(xr-c)**Al),l<=xr&&(l+=(xr-l)**Al),Math.abs(l-c)c){const f=(l**fy-c**dy)*gy;u=f-Rl?0:f>-Pl?f-f*Ol*Ar:f+Ar}return u*100}const rr=Symbol.for("vuetify:theme"),hr=oe({theme:String},"theme"),kn={defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#6200EE","primary-darken-1":"#3700B3",secondary:"#03DAC6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-variant":"#BDBDBD","on-surface-variant":"#424242",primary:"#BB86FC","primary-darken-1":"#3700B3",secondary:"#03DAC5","secondary-darken-1":"#03DAC5",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}};function yy(){var n,r;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kn;if(!e)return{...kn,isDisabled:!0};const t={};for(const[s,o]of Object.entries(e.themes??{})){const i=o.dark||s==="dark"?(n=kn.themes)==null?void 0:n.dark:(r=kn.themes)==null?void 0:r.light;t[s]=qe(i,o)}return qe(kn,{...e,themes:t})}function by(e){const t=yy(e),n=ve(t.defaultTheme),r=ve(t.themes),s=D(()=>{const u={};for(const[f,d]of Object.entries(r.value)){const m=u[f]={...d,colors:{...d.colors}};if(t.variations)for(const h of t.variations.colors){const g=m.colors[h];if(g)for(const S of["lighten","darken"]){const w=S==="lighten"?Mv:$v;for(const E of Uu(t.variations[S],1))m.colors[`${h}-${S}-${E}`]=Iv(w(Wt(g),E))}}for(const h of Object.keys(m.colors)){if(/^on-[a-z]/.test(h)||m.colors[`on-${h}`])continue;const g=`on-${h}`,S=Wt(m.colors[h]),w=Math.abs(Tl(Wt(0),S)),E=Math.abs(Tl(Wt(16777215),S));m.colors[g]=E>Math.min(w,50)?"#fff":"#000"}}return u}),o=D(()=>s.value[n.value]),i=D(()=>{const u=[];o.value.dark&&jt(u,":root",["color-scheme: dark"]),jt(u,":root",kl(o.value));for(const[h,g]of Object.entries(s.value))jt(u,`.v-theme--${h}`,[`color-scheme: ${g.dark?"dark":"normal"}`,...kl(g)]);const f=[],d=[],m=new Set(Object.values(s.value).flatMap(h=>Object.keys(h.colors)));for(const h of m)/^on-[a-z]/.test(h)?jt(d,`.${h}`,[`color: rgb(var(--v-theme-${h})) !important`]):(jt(f,`.bg-${h}`,[`--v-theme-overlay-multiplier: var(--v-theme-${h}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${h})) !important`,`color: rgb(var(--v-theme-on-${h})) !important`]),jt(d,`.text-${h}`,[`color: rgb(var(--v-theme-${h})) !important`]),jt(d,`.border-${h}`,[`--v-border-color: var(--v-theme-${h})`]));return u.push(...f,...d),u.map((h,g)=>g===0?h:` ${h}`).join("")});function a(){return{style:[{children:i.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function c(u){if(t.isDisabled)return;const f=u._context.provides.usehead;if(f)if(f.push){const d=f.push(a);pe(i,()=>{d.patch(a)})}else Te?(f.addHeadObjs(D(a)),Zt(()=>f.updateDOM())):f.addHeadObjs(a());else{let m=function(){if(typeof document<"u"&&!d){const h=document.createElement("style");h.type="text/css",h.id="vuetify-theme-stylesheet",t.cspNonce&&h.setAttribute("nonce",t.cspNonce),d=h,document.head.appendChild(d)}d&&(d.innerHTML=i.value)},d=Te?document.getElementById("vuetify-theme-stylesheet"):null;pe(i,m,{immediate:!0})}}const l=D(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:c,isDisabled:t.isDisabled,name:n,themes:r,current:o,computedThemes:s,themeClasses:l,styles:i,global:{name:n,current:o}}}function mr(e){Ze("provideTheme");const t=_e(rr,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=D(()=>e.theme??(t==null?void 0:t.name.value)),r=D(()=>t.isDisabled?void 0:`v-theme--${n.value}`),s={...t,name:n,themeClasses:r};return Ft(rr,s),s}function iw(){Ze("useTheme");const e=_e(rr,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function jt(e,t,n){e.push(`${t} { `,...n.map(r=>` ${r}; `),`} -`)}function kl(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,o]of Object.entries(e.colors)){const i=Wt(o);r.push(`--v-theme-${s}: ${i.r},${i.g},${i.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${Bv(o)>.18?t:n}`)}for(const[s,o]of Object.entries(e.variables)){const i=typeof o=="string"&&o.startsWith("#")?Wt(o):void 0,a=i?`${i.r}, ${i.g}, ${i.b}`:void 0;r.push(`--v-${s}: ${a??o}`)}return r}const Fo={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function wy(e,t){const n=[];let r=[];const s=lf(e),o=cf(e),i=s.getDay()-Fo[t.slice(-2).toUpperCase()],a=o.getDay()-Fo[t.slice(-2).toUpperCase()];for(let c=0;co.padStart(2,"0")).join("-"),n=new Date().getTimezoneOffset()/-60,r=n<0?"-":"+",s=Math.abs(n).toString().padStart(2,"0");return`${t}T00:00:00.000${r}${s}:00`}const Ey=/([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))/;function Sy(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Ey.test(e)?t=Date.parse(_y(e)):t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const Fl=new Date(2e3,0,2);function Cy(e){const t=Fo[e.slice(-2).toUpperCase()];return Uu(7).map(n=>{const r=new Date(Fl);return r.setDate(Fl.getDate()+t+n),new Intl.DateTimeFormat(e,{weekday:"short"}).format(r)})}function xy(e,t,n){const r=new Date(e);let s={};switch(t){case"fullDateWithWeekday":s={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":s={};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"dayOfMonth":s={day:"numeric"};break;default:s={timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,s).format(r)}function Ay(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Py(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function Oy(e){return e.getFullYear()}function Ry(e){return e.getMonth()}function Ty(e){return new Date(e.getFullYear(),0,1)}function ky(e){return new Date(e.getFullYear(),11,31)}function Fy(e,t){return Lo(e,t[0])&&Iy(e,t[1])}function Ly(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Lo(e,t){return e.getTime()>t.getTime()}function Iy(e,t){return e.getTime()0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=qe(t,n),{aliases:s={},components:o={},directives:i={}}=r,a=Yv(r.defaults),c=Zv(r.display,r.ssr),l=by(r.theme),u=ry(r.icons),f=cy(r.locale),d=jy(r.date);return{install:h=>{for(const g in i)h.directive(g,i[g]);for(const g in o)h.component(g,o[g]);for(const g in s)h.component(g,dr({...s[g],name:g,aliasName:s[g].name}));if(l.install(h),h.provide(nr,a),h.provide(To,c),h.provide(rr,l),h.provide(ko,u),h.provide(Gr,f),h.provide(Il,d),Te&&r.ssr)if(h.$nuxt)h.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:g}=h;h.mount=function(){const S=g(...arguments);return ft(()=>c.update()),h.mount=g,S}}Oi.reset(),h.mixin({computed:{$vuetify(){return ut({defaults:ln.call(this,nr),display:ln.call(this,To),theme:ln.call(this,rr),icons:ln.call(this,ko),locale:ln.call(this,Gr),date:ln.call(this,Il)})}}})},defaults:a,display:c,theme:l,icons:u,locale:f,date:d}}const Vy="3.3.10";uf.version=Vy;function ln(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const Hy=uf({theme:{defaultTheme:"light"},theme:{themes:{light:{colors:{lampa:"#FFFFFF",primary:"#1867C0",secondary:"#5CBBF6",main_theme:"#f7f7f7",scrollbar:"#367F8A",cards:"#F5F5F5",text_carous:"#242424",navigation:"#004D40",black_grey:"#3C3C3C",modal_btn:"#1E88E5",grey:"#7A7A7A",yellow:"#F9A825",more_details_btn:"#01579B",loading_avatar:"#37474F",bg_white:"#FFFFFF",delete_btn:"#546E7A",app_bar:"#004D40",black_and_white:"#FFFFFF"}},dark:{colors:{lampa:"#000000",primary:"#1867C0",secondary:"#5CBBF6",main_theme:"#101311",scrollbar:"#367F8A",cards:"#F5F5F5",text_carous:"#242424",navigation:"#FDF5E6",black_grey:"#3C3C3C",modal_btn:"#1E88E5",grey:"#7A7A7A",yellow:"#F9A825",more_details_btn:"#01579B",loading_avatar:"#37474F",bg_white:"#FFFFFF",delete_btn:"#546E7A",app_bar:"#212121",black_and_white:"#101311"}},options:{customProperties:!0}}}}),Uy=Mm(),zy=[{path:"/",component:()=>$e(()=>import("./DefaultPortal-d8713fb4.js"),["assets/DefaultPortal-d8713fb4.js","assets/VBtn-61a8fe0f.js","assets/group-c7387df2.js","assets/VBtn-2323aa03.css","assets/VContainer-194cdd0e.js","assets/VList-0b9b232e.js","assets/VTextarea-20d645b1.js","assets/VInput-2f5042f3.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VList-a4e0cf69.css","assets/VSpacer-d6de9106.js","assets/VTooltip-44875405.js","assets/VWindowItem-6073ee5e.js","assets/VWindowItem-72fb4d35.css","assets/VTooltip-9852ac88.css","assets/DefaultPortal-3f808f5f.css"]),children:[{path:"/",name:"HomePage",component:()=>$e(()=>import("./HomePage-9a26ccd1.js"),["assets/HomePage-9a26ccd1.js","assets/VCarouselItem-31737456.js","assets/VWindowItem-6073ee5e.js","assets/group-c7387df2.js","assets/VTextarea-20d645b1.js","assets/VInput-2f5042f3.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VBtn-61a8fe0f.js","assets/VBtn-2323aa03.css","assets/VWindowItem-72fb4d35.css","assets/VCarouselItem-149fe76f.css","assets/VContainer-194cdd0e.js","assets/VTooltip-44875405.js","assets/VList-0b9b232e.js","assets/VList-a4e0cf69.css","assets/VTooltip-9852ac88.css","assets/VSelectionControl-ddf592aa.js","assets/VSelectionControl-59bfdd15.css","assets/load-round-52ac2a07.js","assets/VChip-ac1d8dc8.js","assets/VChip-323b10eb.css","assets/load-round-9bffb3b7.css","assets/HomePage-3c6ff1ac.css"]),meta:{title:"Портал МИ ФНС России по ЦОД №2",ico:"mdi-arrow-top-right"}},{path:"/okib",name:"OKiBPage",component:()=>$e(()=>import("./o_OKiB-ed00481d.js"),["assets/o_OKiB-ed00481d.js","assets/load-round-52ac2a07.js","assets/VInput-2f5042f3.js","assets/group-c7387df2.js","assets/VInput-a9379007.css","assets/VChip-ac1d8dc8.js","assets/VChip-323b10eb.css","assets/load-round-9bffb3b7.css"]),meta:{title:"Отдел кадров и безопасности",ico:"mdi-comment-account-outline"}},{path:"/providing",name:"ProvidingActivitiesPage",component:()=>$e(()=>import("./ProvidingActivitiesPage-022b20c7.js"),["assets/ProvidingActivitiesPage-022b20c7.js","assets/group-c7387df2.js","assets/VContainer-194cdd0e.js","assets/VBtn-61a8fe0f.js","assets/VBtn-2323aa03.css","assets/ProvidingActivitiesPage-d12aecf2.css"]),meta:{title:"Обеспечивающая деятельность",ico:"mdi-bulletin-board"}},{path:"/faq",name:"FAQPage",component:()=>$e(()=>import("./FAQPage-eaddfe91.js"),[]),meta:{title:"Часто задаваемые вопросы",ico:"mdi-comment-question-outline"}},{path:"/feedback",name:"FeedbackPage",component:()=>$e(()=>import("./FeedbackPage-949a2e4d.js"),[]),meta:{title:"Обратная связь",ico:"mdi-thumb-up-outline"}},{path:"/labor",name:"LaborProtection",component:()=>$e(()=>import("./LaborProtection-0e8d7d93.js"),[]),meta:{title:"Безопасность",ico:"mdi-pharmacy"}},{path:"/securyty",name:"SecurityPage",component:()=>$e(()=>import("./SecurityPage-78bbb332.js"),[]),meta:{title:"Охрана труда",ico:"mdi-ticket"}},{path:"/inspection",name:"AboutInspectionPage",component:()=>$e(()=>import("./AboutInspectionPage-67b45473.js"),[]),meta:{title:"Об инспекции",ico:"mdi-city"}},{path:"/portal",name:"AboutPortalPage",component:()=>$e(()=>import("./AboutPortalPage-2a09883d.js"),["assets/AboutPortalPage-2a09883d.js","assets/AboutPortalPage-12dddae5.css"]),meta:{title:"О портале",ico:"mdi-information-variant"}},{path:"/news",name:"AboutNewsPage",component:()=>$e(()=>import("./NewsPage-5eccfa34.js"),["assets/NewsPage-5eccfa34.js","assets/group-c7387df2.js","assets/VBtn-61a8fe0f.js","assets/VBtn-2323aa03.css","assets/VList-0b9b232e.js","assets/VTextarea-20d645b1.js","assets/VInput-2f5042f3.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VList-a4e0cf69.css","assets/VSelectionControl-ddf592aa.js","assets/VSelectionControl-59bfdd15.css","assets/VChip-ac1d8dc8.js","assets/VChip-323b10eb.css","assets/VSpacer-d6de9106.js","assets/NewsPage-7b31b384.css"]),meta:{title:"Лента новостей",ico:"mdi-newspaper"}},{path:"/userinfo",name:"UsersInfoPage",component:()=>$e(()=>import("./UsersInfoPage-5ea61761.js"),[]),meta:{title:"Информация о пользователе",ico:"mdi-account"}},{path:"/fnshol",name:"FnsHol.vue",component:()=>$e(()=>import("./FnsHol-4ba3248c.js"),["assets/FnsHol-4ba3248c.js","assets/VCarouselItem-31737456.js","assets/VWindowItem-6073ee5e.js","assets/group-c7387df2.js","assets/VTextarea-20d645b1.js","assets/VInput-2f5042f3.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VBtn-61a8fe0f.js","assets/VBtn-2323aa03.css","assets/VWindowItem-72fb4d35.css","assets/VCarouselItem-149fe76f.css","assets/VContainer-194cdd0e.js","assets/FnsHol-679af398.css"]),meta:{title:"К празднику",ico:"mdi-city"}}]}],ff=av({history:Sg({}.BASE_URL),routes:zy});ff.beforeEach((e,t,n)=>{document.title=e.meta.title,n()});function Wy(e){hv(),e.use(Hy).use(Uy).use(ff)}const Ky=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const qy=Ie()({name:"VCardActions",props:Xe(),setup(e,t){let{slots:n}=t;return Fi({VBtn:{variant:"text"}}),ht(()=>{var r;return T("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Yy=Pi("v-card-subtitle"),Jy=Pi("v-card-title");function Ii(e){return xi(()=>{const t=[],n={};return e.value.background&&(hl(e.value.background)?n.backgroundColor=e.value.background:t.push(`bg-${e.value.background}`)),e.value.text&&(hl(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function df(e,t){const n=D(()=>({text:me(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Ii(n);return{textColorClasses:r,textColorStyles:s}}function Io(e,t){const n=D(()=>({background:me(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Ii(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const Gy=["x-small","small","default","large","x-large"],hf=oe({size:{type:[String,Number],default:"default"}},"size");function mf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return xi(()=>{let n,r;return qr(Gy,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:ce(e.size),height:ce(e.size)}),{sizeClasses:n,sizeStyles:r}})}const xn=oe({tag:{type:String,default:"div"}},"tag"),Xy=oe({color:String,start:Boolean,end:Boolean,icon:Gt,...Xe(),...hf(),...xn({tag:"i"}),...hr()},"VIcon"),pf=Ie()({name:"VIcon",props:Xy(),setup(e,t){let{attrs:n,slots:r}=t;const s=ve(),{themeClasses:o}=mr(e),{iconData:i}=sy(D(()=>s.value||e.icon)),{sizeClasses:a}=mf(e),{textColorClasses:c,textColorStyles:l}=df(Qo(e,"color"));return ht(()=>{var f,d;const u=(f=r.default)==null?void 0:f.call(r);return u&&(s.value=(d=Wu(u).filter(m=>m.type===ar&&m.children&&typeof m.children=="string")[0])==null?void 0:d.children),T(i.value.component,{tag:e.tag,icon:i.value.icon,class:["v-icon","notranslate",o.value,a.value,c.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[a.value?void 0:{fontSize:ce(e.size),height:ce(e.size),width:ce(e.size)},l.value,e.style],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>[u]})}),{}}});const Ni=oe({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Di(e){return{dimensionStyles:D(()=>({height:ce(e.height),maxHeight:ce(e.maxHeight),maxWidth:ce(e.maxWidth),minHeight:ce(e.minHeight),minWidth:ce(e.minWidth),width:ce(e.width)}))}}function Zy(e){return{aspectStyles:D(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const gf=oe({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...Xe(),...Ni()},"VResponsive"),Nl=Ie()({name:"VResponsive",props:gf(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=Zy(e),{dimensionStyles:s}=Di(e);return ht(()=>{var o;return T("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[s.value,e.style]},[T("div",{class:"v-responsive__sizer",style:r.value},null),(o=n.additional)==null?void 0:o.call(n),n.default&&T("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),vf=oe({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Dn=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,...o}=e,{component:i=Jt,...a}=typeof r=="object"?r:{};return Nt(i,De(typeof r=="string"?{name:s?"":r}:a,o,{disabled:s}),n)};function Qy(e,t){if(!Ti)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 l=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!l)return;const u=a.some(d=>d.isIntersecting);s&&(!n.quiet||l.init)&&(!n.once||u||l.init)&&s(u,a,c),u&&n.once?yf(e,t):l.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:i},i.observe(e)}function yf(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 eb={mounted:Qy,unmounted:yf},tb=eb,nb=oe({alt:String,cover:Boolean,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:""},srcset:String,...gf(),...Xe(),...vf()},"VImg"),bf=Ie()({name:"VImg",directives:{intersect:tb},props:nb(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=xe(""),o=ve(),i=xe(e.eager?"loading":"idle"),a=xe(),c=xe(),l=D(()=>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)}),u=D(()=>l.value.aspect||a.value/c.value||0);pe(()=>e.src,()=>{f(i.value!=="idle")}),pe(u,(x,k)=>{!x&&k&&o.value&&S(o.value)}),Fc(()=>f());function f(x){if(!(e.eager&&x)&&!(Ti&&!x&&!e.eager)){if(i.value="loading",l.value.lazySrc){const k=new Image;k.src=l.value.lazySrc,S(k,null)}l.value.src&&ft(()=>{var k,B;if(n("loadstart",((k=o.value)==null?void 0:k.currentSrc)||l.value.src),(B=o.value)!=null&&B.complete){if(o.value.naturalWidth||m(),i.value==="error")return;u.value||S(o.value,null),d()}else u.value||S(o.value),h()})}}function d(){var x;h(),i.value="loaded",n("load",((x=o.value)==null?void 0:x.currentSrc)||l.value.src)}function m(){var x;i.value="error",n("error",((x=o.value)==null?void 0:x.currentSrc)||l.value.src)}function h(){const x=o.value;x&&(s.value=x.currentSrc||x.src)}let g=-1;function S(x){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const B=()=>{clearTimeout(g);const{naturalHeight:U,naturalWidth:O}=x;U||O?(a.value=O,c.value=U):!x.complete&&i.value==="loading"&&k!=null?g=window.setTimeout(B,k):(x.currentSrc.endsWith(".svg")||x.currentSrc.startsWith("data:image/svg+xml"))&&(a.value=1,c.value=1)};B()}const w=D(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),E=()=>{var B;if(!l.value.src||i.value==="idle")return null;const x=T("img",{class:["v-img__img",w.value],src:l.value.src,srcset:l.value.srcset,alt:e.alt,sizes:e.sizes,ref:o,onLoad:d,onError:m},null),k=(B=r.sources)==null?void 0:B.call(r);return T(Dn,{transition:e.transition,appear:!0},{default:()=>[Hr(k?T("picture",{class:"v-img__picture"},[k,x]):x,[[nu,i.value==="loaded"]])]})},b=()=>T(Dn,{transition:e.transition},{default:()=>[l.value.lazySrc&&i.value!=="loaded"&&T("img",{class:["v-img__img","v-img__img--preload",w.value],src:l.value.lazySrc,alt:e.alt},null)]}),L=()=>r.placeholder?T(Dn,{transition:e.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!r.error)&&T("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,H=()=>r.error?T(Dn,{transition:e.transition,appear:!0},{default:()=>[i.value==="error"&&T("div",{class:"v-img__error"},[r.error()])]}):null,Y=()=>e.gradient?T("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,J=xe(!1);{const x=pe(u,k=>{k&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{J.value=!0})}),x())})}return ht(()=>{const[x]=Nl.filterProps(e);return Hr(T(Nl,De({class:["v-img",{"v-img--booting":!J.value},e.class],style:[{width:ce(e.width==="auto"?a.value:e.width)},e.style]},x,{aspectRatio:u.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>T(ke,null,[T(E,null,null),T(b,null,null),T(Y,null,null),T(L,null,null),T(H,null,null)]),default:r.default}),[[ai("intersect"),{handler:f,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:o,state:i,naturalWidth:a,naturalHeight:c}}}),rb=[null,"default","comfortable","compact"],Mi=oe({density:{type:String,default:"default",validator:e=>rb.includes(e)}},"density");function wf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{densityClasses:D(()=>`${t}--density-${e.density}`)}}const $i=oe({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function Bi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{roundedClasses:D(()=>{const r=me(e)?e.value:e.rounded,s=[];if(r===!0||r==="")s.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`rounded-${o}`);return s})}}const sb=["elevated","flat","tonal","outlined","text","plain"];function _f(e,t){return T(ke,null,[e&&T("span",{key:"overlay",class:`${t}__overlay`},null),T("span",{key:"underlay",class:`${t}__underlay`},null)])}const Ef=oe({color:String,variant:{type:String,default:"elevated",validator:e=>sb.includes(e)}},"variant");function Sf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();const n=D(()=>{const{variant:o}=ze(e);return`${t}--variant-${o}`}),{colorClasses:r,colorStyles:s}=Ii(D(()=>{const{variant:o,color:i}=ze(e);return{[["elevated","flat"].includes(o)?"background":"text"]:i}}));return{colorClasses:r,colorStyles:s,variantClasses:n}}const ob=oe({start:Boolean,end:Boolean,icon:Gt,image:String,...Xe(),...Mi(),...$i(),...hf(),...xn(),...hr(),...Ef({variant:"flat"})},"VAvatar"),Dl=Ie()({name:"VAvatar",props:ob(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mr(e),{colorClasses:s,colorStyles:o,variantClasses:i}=Sf(e),{densityClasses:a}=wf(e),{roundedClasses:c}=Bi(e),{sizeClasses:l,sizeStyles:u}=mf(e);return ht(()=>T(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,a.value,c.value,l.value,i.value,e.class],style:[o.value,u.value,e.style]},{default:()=>{var f;return[e.image?T(bf,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?T(pf,{key:"icon",icon:e.icon},null):(f=n.default)==null?void 0:f.call(n),_f(!1,"v-avatar")]}})),{}}}),ib=oe({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Xr=Ie(!1)({name:"VDefaultsProvider",props:ib(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:o,root:i,scoped:a}=as(e);return Fi(r,{reset:o,root:i,scoped:a,disabled:s}),()=>{var c;return(c=n.default)==null?void 0:c.call(n)}}}),ab=oe({appendAvatar:String,appendIcon:Gt,prependAvatar:String,prependIcon:Gt,subtitle:String,title:String,...Xe(),...Mi()},"VCardItem"),lb=Ie()({name:"VCardItem",props:ab(),setup(e,t){let{slots:n}=t;return ht(()=>{var l;const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),o=!!(e.appendAvatar||e.appendIcon),i=!!(o||n.append),a=!!(e.title||n.title),c=!!(e.subtitle||n.subtitle);return T("div",{class:["v-card-item",e.class],style:e.style},[s&&T("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?T(Xr,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},n.prepend):r&&T(Dl,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),T("div",{class:"v-card-item__content"},[a&&T(Jy,{key:"title"},{default:()=>{var u;return[((u=n.title)==null?void 0:u.call(n))??e.title]}}),c&&T(Yy,{key:"subtitle"},{default:()=>{var u;return[((u=n.subtitle)==null?void 0:u.call(n))??e.subtitle]}}),(l=n.default)==null?void 0:l.call(n)]),i&&T("div",{key:"append",class:"v-card-item__append"},[n.append?T(Xr,{key:"append-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},n.append):o&&T(Dl,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),cb=Pi("v-card-text"),ub=oe({border:[Boolean,Number,String]},"border");function fb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{borderClasses:D(()=>{const r=me(e)?e.value:e.border,s=[];if(r===!0||r==="")s.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`border-${o}`);return s})}}const db=oe({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function hb(e){return{elevationClasses:D(()=>{const n=me(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}function mb(e,t){const n=ve(),r=xe(!1);if(Ti){const s=new IntersectionObserver(o=>{e==null||e(o,s),r.value=!!o.find(i=>i.isIntersecting)},t);oi(()=>{s.disconnect()}),pe(n,(o,i)=>{i&&(s.unobserve(i),r.value=!1),o&&s.observe(o)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const Ml={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Cf=oe({location:String},"location");function xf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Li();return{locationStyles:D(()=>{if(!e.location)return{};const{side:o,align:i}=Oo(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(l){return n?n(l):0}const c={};return o!=="center"&&(t?c[Ml[o]]=`calc(100% - ${a(o)}px)`:c[o]=0),i!=="center"?t?c[Ml[i]]=`calc(100% - ${a(i)}px)`:c[i]=0:(o==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),c})}}const pb=oe({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Xe(),...Cf({location:"top"}),...$i(),...xn(),...hr()},"VProgressLinear"),gb=Ie()({name:"VProgressLinear",props:pb(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Rs(e,"modelValue"),{isRtl:s,rtlClasses:o}=Li(),{themeClasses:i}=mr(e),{locationStyles:a}=xf(e),{textColorClasses:c,textColorStyles:l}=df(e,"color"),{backgroundColorClasses:u,backgroundColorStyles:f}=Io(D(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:m}=Io(e,"color"),{roundedClasses:h}=Bi(e),{intersectionRef:g,isIntersecting:S}=mb(),w=D(()=>parseInt(e.max,10)),E=D(()=>parseInt(e.height,10)),b=D(()=>parseFloat(e.bufferValue)/w.value*100),L=D(()=>parseFloat(r.value)/w.value*100),H=D(()=>s.value!==e.reverse),Y=D(()=>e.indeterminate?"fade-transition":"slide-x-transition"),J=D(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function x(k){if(!g.value)return;const{left:B,right:U,width:O}=g.value.getBoundingClientRect(),j=H.value?O-k.clientX+(U-O):k.clientX-B;r.value=Math.round(j/O*w.value)}return ht(()=>T(e.tag,{ref:g,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&S.value,"v-progress-linear--reverse":H.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},h.value,i.value,o.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ce(E.value):0,"--v-progress-linear-height":ce(E.value),...a.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:L.value,onClick:e.clickable&&x},{default:()=>[e.stream&&T("div",{key:"stream",class:["v-progress-linear__stream",c.value],style:{...l.value,[H.value?"left":"right"]:ce(-E.value),borderTop:`${ce(E.value/2)} dotted`,opacity:J.value,top:`calc(50% - ${ce(E.value/4)})`,width:ce(100-b.value,"%"),"--v-progress-linear-stream-to":ce(E.value*(H.value?1:-1))}},null),T("div",{class:["v-progress-linear__background",u.value],style:[f.value,{opacity:J.value,width:ce(e.stream?b.value:100,"%")}]},null),T(Jt,{name:Y.value},{default:()=>[e.indeterminate?T("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(k=>T("div",{key:k,class:["v-progress-linear__indeterminate",k,d.value],style:m.value},null))]):T("div",{class:["v-progress-linear__determinate",d.value],style:[m.value,{width:ce(L.value,"%")}]},null)]}),n.default&&T("div",{class:"v-progress-linear__content"},[n.default({value:L.value,buffer:b.value})])]})),{}}}),vb=oe({loading:[Boolean,String]},"loader");function yb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{loaderClasses:D(()=>({[`${t}--loading`]:e.loading}))}}function bb(e,t){var r;let{slots:n}=t;return T("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||T(gb,{active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const wb=["static","relative","fixed","absolute","sticky"],_b=oe({position:{type:String,validator:e=>wb.includes(e)}},"position");function Eb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{positionClasses:D(()=>e.position?`${t}--${e.position}`:void 0)}}function Sb(){var e,t;return(t=(e=Ze("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Cb(e,t){const n=ph("RouterLink"),r=D(()=>!!(e.href||e.to)),s=D(()=>(r==null?void 0:r.value)||ll(t,"click")||ll(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:s,href:Qo(e,"href")};const o=e.to?n.useLink(e):void 0;return{isLink:r,isClickable:s,route:o==null?void 0:o.route,navigate:o==null?void 0:o.navigate,isActive:o&&D(()=>{var i,a;return e.exact?(i=o.isExactActive)==null?void 0:i.value:(a=o.isActive)==null?void 0:a.value}),href:D(()=>e.to?o==null?void 0:o.route.value.href:e.href)}}const xb=oe({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Gs=!1;function Ab(e,t){let n=!1,r,s;Te&&(ft(()=>{window.addEventListener("popstate",o),r=e==null?void 0:e.beforeEach((i,a,c)=>{Gs?n?t(c):c():setTimeout(()=>n?t(c):c()),Gs=!0}),s=e==null?void 0:e.afterEach(()=>{Gs=!1})}),We(()=>{window.removeEventListener("popstate",o),r==null||r(),s==null||s()}));function o(i){var a;(a=i.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}const No=Symbol("rippleStop"),Pb=80;function $l(e,t){e.style.transform=t,e.style.webkitTransform=t}function Do(e){return e.constructor.name==="TouchEvent"}function Af(e){return e.constructor.name==="KeyboardEvent"}const Ob=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!Af(e)){const d=t.getBoundingClientRect(),m=Do(e)?e.touches[e.touches.length-1]:e;r=m.clientX-d.left,s=m.clientY-d.top}let o=0,i=.3;(f=t._ripple)!=null&&f.circle?(i=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(s-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-o*2)/2}px`,c=`${(t.clientHeight-o*2)/2}px`,l=n.center?a:`${r-o}px`,u=n.center?c:`${s-o}px`;return{radius:o,scale:i,x:l,y:u,centerX:a,centerY:c}},Zr={show(e,t){var m;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((m=t==null?void 0:t._ripple)!=null&&m.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:o,scale:i,x:a,y:c,centerX:l,centerY:u}=Ob(e,t,n),f=`${o*2}px`;s.className="v-ripple__animation",s.style.width=f,s.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),$l(s,`translate(${a}, ${c}) scale3d(${i},${i},${i})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),$l(s,`translate(${l}, ${u}) scale3d(1,1,1)`)},0)},hide(e){var o;if(!((o=e==null?void 0:e._ripple)!=null&&o.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function Pf(e){return typeof e>"u"||!!e}function sr(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[No])){if(e[No]=!0,Do(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||Af(e),n._ripple.class&&(t.class=n._ripple.class),Do(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Zr.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Pb)}else Zr.show(e,n,t)}}function Bl(e){e[No]=!0}function Ue(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Ue(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Zr.hide(t)}}function Of(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let or=!1;function Rf(e){!or&&(e.keyCode===il.enter||e.keyCode===il.space)&&(or=!0,sr(e))}function Tf(e){or=!1,Ue(e)}function kf(e){or&&(or=!1,Ue(e))}function Ff(e,t,n){const{value:r,modifiers:s}=t,o=Pf(r);if(o||Zr.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=s.center,e._ripple.circle=s.circle,xo(r)&&r.class&&(e._ripple.class=r.class),o&&!n){if(s.stop){e.addEventListener("touchstart",Bl,{passive:!0}),e.addEventListener("mousedown",Bl);return}e.addEventListener("touchstart",sr,{passive:!0}),e.addEventListener("touchend",Ue,{passive:!0}),e.addEventListener("touchmove",Of,{passive:!0}),e.addEventListener("touchcancel",Ue),e.addEventListener("mousedown",sr),e.addEventListener("mouseup",Ue),e.addEventListener("mouseleave",Ue),e.addEventListener("keydown",Rf),e.addEventListener("keyup",Tf),e.addEventListener("blur",kf),e.addEventListener("dragstart",Ue,{passive:!0})}else!o&&n&&Lf(e)}function Lf(e){e.removeEventListener("mousedown",sr),e.removeEventListener("touchstart",sr),e.removeEventListener("touchend",Ue),e.removeEventListener("touchmove",Of),e.removeEventListener("touchcancel",Ue),e.removeEventListener("mouseup",Ue),e.removeEventListener("mouseleave",Ue),e.removeEventListener("keydown",Rf),e.removeEventListener("keyup",Tf),e.removeEventListener("dragstart",Ue),e.removeEventListener("blur",kf)}function Rb(e,t){Ff(e,t,!1)}function Tb(e){delete e._ripple,Lf(e)}function kb(e,t){if(t.value===t.oldValue)return;const n=Pf(t.oldValue);Ff(e,t,n)}const Fb={mounted:Rb,unmounted:Tb,updated:kb},Lb=oe({appendAvatar:String,appendIcon:Gt,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Gt,ripple:{type:[Boolean,Object],default:!0},subtitle:String,text:String,title:String,...ub(),...Xe(),...Mi(),...Ni(),...db(),...vb(),...Cf(),..._b(),...$i(),...xb(),...xn(),...hr(),...Ef({variant:"elevated"})},"VCard"),Ib=Ie()({name:"VCard",directives:{Ripple:Fb},props:Lb(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mr(e),{borderClasses:o}=fb(e),{colorClasses:i,colorStyles:a,variantClasses:c}=Sf(e),{densityClasses:l}=wf(e),{dimensionStyles:u}=Di(e),{elevationClasses:f}=hb(e),{loaderClasses:d}=yb(e),{locationStyles:m}=xf(e),{positionClasses:h}=Eb(e),{roundedClasses:g}=Bi(e),S=Cb(e,n),w=D(()=>e.link!==!1&&S.isLink.value),E=D(()=>!e.disabled&&e.link!==!1&&(e.link||S.isClickable.value));return ht(()=>{const b=w.value?"a":e.tag,L=!!(r.title||e.title),H=!!(r.subtitle||e.subtitle),Y=L||H,J=!!(r.append||e.appendAvatar||e.appendIcon),x=!!(r.prepend||e.prependAvatar||e.prependIcon),k=!!(r.image||e.image),B=Y||x||J,U=!!(r.text||e.text);return Hr(T(b,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":E.value},s.value,o.value,i.value,l.value,f.value,d.value,h.value,g.value,c.value,e.class],style:[a.value,u.value,m.value,e.style],href:S.href.value,onClick:E.value&&S.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var O;return[k&&T("div",{key:"image",class:"v-card__image"},[r.image?T(Xr,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):T(bf,{key:"image-img",cover:!0,src:e.image},null)]),T(bb,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),B&&T(lb,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),U&&T(cb,{key:"text"},{default:()=>{var j;return[((j=r.text)==null?void 0:j.call(r))??e.text]}}),(O=r.default)==null?void 0:O.call(r),r.actions&&T(qy,null,{default:r.actions}),_f(E.value,"v-card")]}}),[[ai("ripple"),E.value&&e.ripple]])}),{}}});const If=(()=>Ps.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),Nf=(()=>Ps.reduce((e,t)=>{const n="offset"+bt(t);return e[n]={type:[String,Number],default:null},e},{}))(),Df=(()=>Ps.reduce((e,t)=>{const n="order"+bt(t);return e[n]={type:[String,Number],default:null},e},{}))(),jl={col:Object.keys(If),offset:Object.keys(Nf),order:Object.keys(Df)};function Nb(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const s=t.replace(e,"");r+=`-${s}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const Db=["auto","start","end","center","baseline","stretch"],Mb=oe({cols:{type:[Boolean,String,Number],default:!1},...If,offset:{type:[String,Number],default:null},...Nf,order:{type:[String,Number],default:null},...Df,alignSelf:{type:String,default:null,validator:e=>Db.includes(e)},...Xe(),...xn()},"VCol"),$b=Ie()({name:"VCol",props:Mb(),setup(e,t){let{slots:n}=t;const r=D(()=>{const s=[];let o;for(o in jl)jl[o].forEach(a=>{const c=e[a],l=Nb(o,a,c);l&&s.push(l)});const i=s.some(a=>a.startsWith("v-col-"));return s.push({"v-col":!i||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),s});return()=>{var s;return Nt(e.tag,{class:[r.value,e.class],style:e.style},(s=n.default)==null?void 0:s.call(n))}}}),ji=["start","end","center"],Mf=["space-between","space-around","space-evenly"];function Vi(e,t){return Ps.reduce((n,r)=>{const s=e+bt(r);return n[s]=t(),n},{})}const Bb=[...ji,"baseline","stretch"],$f=e=>Bb.includes(e),Bf=Vi("align",()=>({type:String,default:null,validator:$f})),jb=[...ji,...Mf],jf=e=>jb.includes(e),Vf=Vi("justify",()=>({type:String,default:null,validator:jf})),Vb=[...ji,...Mf,"stretch"],Hf=e=>Vb.includes(e),Uf=Vi("alignContent",()=>({type:String,default:null,validator:Hf})),Vl={align:Object.keys(Bf),justify:Object.keys(Vf),alignContent:Object.keys(Uf)},Hb={align:"align",justify:"justify",alignContent:"align-content"};function Ub(e,t,n){let r=Hb[e];if(n!=null){if(t){const s=t.replace(e,"");r+=`-${s}`}return r+=`-${n}`,r.toLowerCase()}}const zb=oe({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:$f},...Bf,justify:{type:String,default:null,validator:jf},...Vf,alignContent:{type:String,default:null,validator:Hf},...Uf,...Xe(),...xn()},"VRow"),Wb=Ie()({name:"VRow",props:zb(),setup(e,t){let{slots:n}=t;const r=D(()=>{const s=[];let o;for(o in Vl)Vl[o].forEach(i=>{const a=e[i],c=Ub(o,i,a);c&&s.push(c)});return s.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),s});return()=>{var s;return Nt(e.tag,{class:["v-row",r.value,e.class],style:e.style},(s=n.default)==null?void 0:s.call(n))}}});const Kb=oe({target:Object},"v-dialog-transition"),qb=Ie()({name:"VDialogTransition",props:Kb(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,o){var d;await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>requestAnimationFrame(m)),s.style.visibility="";const{x:i,y:a,sx:c,sy:l,speed:u}=Ul(e.target,s),f=Nn(s,[{transform:`translate(${i}px, ${a}px) scale(${c}, ${l})`,opacity:0},{}],{duration:225*u,easing:jv});(d=Hl(s))==null||d.forEach(m=>{Nn(m,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:Ro})}),f.finished.then(()=>o())},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,o){var d;await new Promise(m=>requestAnimationFrame(m));const{x:i,y:a,sx:c,sy:l,speed:u}=Ul(e.target,s);Nn(s,[{},{transform:`translate(${i}px, ${a}px) scale(${c}, ${l})`,opacity:0}],{duration:125*u,easing:Vv}).finished.then(()=>o()),(d=Hl(s))==null||d.forEach(m=>{Nn(m,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:Ro})})},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?T(Jt,De({name:"dialog-transition"},r,{css:!1}),n):T(Jt,{name:"dialog-transition"},n)}});function Hl(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function Ul(e,t){const n=e.getBoundingClientRect(),r=Ju(t),[s,o]=getComputedStyle(t).transformOrigin.split(" ").map(w=>parseFloat(w)),[i,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=n.left+n.width/2;i==="left"||a==="left"?c-=n.width/2:(i==="right"||a==="right")&&(c+=n.width/2);let l=n.top+n.height/2;i==="top"||a==="top"?l-=n.height/2:(i==="bottom"||a==="bottom")&&(l+=n.height/2);const u=n.width/r.width,f=n.height/r.height,d=Math.max(1,u,f),m=u/d||0,h=f/d||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),S=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:c-(s+r.left),y:l-(o+r.top),sx:m,sy:h,speed:S}}function Xs(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Yb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zl(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,o=n==="top"?0:n==="bottom"?t.height:n;return Xs({x:s,y:o},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,o=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return Xs({x:s,y:o},t)}return Xs({x:t.width/2,y:t.height/2},t)}const zf={static:Xb,connected:Qb},Jb=oe({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in zf},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Gb(e,t){const n=ve({}),r=ve();Te&&(fr(()=>!!(t.isActive.value&&e.locationStrategy),o=>{var i,a;pe(()=>e.locationStrategy,o),We(()=>{r.value=void 0}),typeof e.locationStrategy=="function"?r.value=(i=e.locationStrategy(t,e,n))==null?void 0:i.updateLocation:r.value=(a=zf[e.locationStrategy](t,e,n))==null?void 0:a.updateLocation}),window.addEventListener("resize",s,{passive:!0}),We(()=>{window.removeEventListener("resize",s),r.value=void 0}));function s(o){var i;(i=r.value)==null||i.call(r,o)}return{contentStyles:n,updateLocation:r}}function Xb(){}function Zb(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=Ju(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 Qb(e,t,n){qv(e.activatorEl.value)&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:o}=xi(()=>{const h=Oo(t.location,e.isRtl.value),g=t.origin==="overlap"?h:t.origin==="auto"?qs(h):Oo(t.origin,e.isRtl.value);return h.side===g.side&&h.align===Ys(g).align?{preferredAnchor:ul(h),preferredOrigin:ul(g)}:{preferredAnchor:h,preferredOrigin:g}}),[i,a,c,l]=["minWidth","minHeight","maxWidth","maxHeight"].map(h=>D(()=>{const g=parseFloat(t[h]);return isNaN(g)?1/0:g})),u=D(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const h=t.offset.split(" ").map(parseFloat);return h.length<2&&h.push(0),h}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1;const d=new ResizeObserver(()=>{f&&m()});pe([e.activatorEl,e.contentEl],(h,g)=>{let[S,w]=h,[E,b]=g;E&&d.unobserve(E),S&&d.observe(S),b&&d.unobserve(b),w&&d.observe(w)},{immediate:!0}),We(()=>{d.disconnect()});function m(){if(f=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>f=!0)}),!e.activatorEl.value||!e.contentEl.value)return;const h=e.activatorEl.value.getBoundingClientRect(),g=Zb(e.contentEl.value,e.isRtl.value),S=Jr(e.contentEl.value),w=12;S.length||(S.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const E=S.reduce((U,O)=>{const j=O.getBoundingClientRect(),te=new gn({x:O===document.documentElement?0:j.x,y:O===document.documentElement?0:j.y,width:O.clientWidth,height:O.clientHeight});return U?new gn({x:Math.max(U.left,te.left),y:Math.max(U.top,te.top),width:Math.min(U.right,te.right)-Math.max(U.left,te.left),height:Math.min(U.bottom,te.bottom)-Math.max(U.top,te.top)}):te},void 0);E.x+=w,E.y+=w,E.width-=w*2,E.height-=w*2;let b={anchor:s.value,origin:o.value};function L(U){const O=new gn(g),j=zl(U.anchor,h),te=zl(U.origin,O);let{x:he,y:Z}=Yb(j,te);switch(U.anchor.side){case"top":Z-=u.value[0];break;case"bottom":Z+=u.value[0];break;case"left":he-=u.value[0];break;case"right":he+=u.value[0];break}switch(U.anchor.align){case"top":Z-=u.value[1];break;case"bottom":Z+=u.value[1];break;case"left":he-=u.value[1];break;case"right":he+=u.value[1];break}return O.x+=he,O.y+=Z,O.width=Math.min(O.width,c.value),O.height=Math.min(O.height,l.value),{overflows:dl(O,E),x:he,y:Z}}let H=0,Y=0;const J={x:0,y:0},x={x:!1,y:!1};let k=-1;for(;!(k++>10);){const{x:U,y:O,overflows:j}=L(b);H+=U,Y+=O,g.x+=U,g.y+=O;{const te=fl(b.anchor),he=j.x.before||j.x.after,Z=j.y.before||j.y.after;let ie=!1;if(["x","y"].forEach(X=>{if(X==="x"&&he&&!x.x||X==="y"&&Z&&!x.y){const se={anchor:{...b.anchor},origin:{...b.origin}},Ee=X==="x"?te==="y"?Ys:qs:te==="y"?qs:Ys;se.anchor=Ee(se.anchor),se.origin=Ee(se.origin);const{overflows:Oe}=L(se);(Oe[X].before<=j[X].before&&Oe[X].after<=j[X].after||Oe[X].before+Oe[X].after<(j[X].before+j[X].after)/2)&&(b=se,ie=x[X]=!0)}}),ie)continue}j.x.before&&(H+=j.x.before,g.x+=j.x.before),j.x.after&&(H-=j.x.after,g.x-=j.x.after),j.y.before&&(Y+=j.y.before,g.y+=j.y.before),j.y.after&&(Y-=j.y.after,g.y-=j.y.after);{const te=dl(g,E);J.x=E.width-te.x.before-te.x.after,J.y=E.height-te.y.before-te.y.after,H+=te.x.before,g.x+=te.x.before,Y+=te.y.before,g.y+=te.y.before}break}const B=fl(b.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${b.anchor.side} ${b.anchor.align}`,transformOrigin:`${b.origin.side} ${b.origin.align}`,top:ce(Zs(Y)),left:e.isRtl.value?void 0:ce(Zs(H)),right:e.isRtl.value?ce(Zs(-H)):void 0,minWidth:ce(B==="y"?Math.min(i.value,h.width):i.value),maxWidth:ce(Wl(Ao(J.x,i.value===1/0?0:i.value,c.value))),maxHeight:ce(Wl(Ao(J.y,a.value===1/0?0:a.value,l.value)))}),{available:J,contentBox:g}}return pe(()=>[s.value,o.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>m()),ft(()=>{const h=m();if(!h)return;const{available:g,contentBox:S}=h;S.height>g.y&&requestAnimationFrame(()=>{m(),requestAnimationFrame(()=>{m()})})}),{updateLocation:m}}function Zs(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Wl(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Mo=!0;const Qr=[];function e0(e){!Mo||Qr.length?(Qr.push(e),$o()):(Mo=!1,e(),$o())}let Kl=-1;function $o(){cancelAnimationFrame(Kl),Kl=requestAnimationFrame(()=>{const e=Qr.shift();e&&e(),Qr.length?$o():Mo=!0})}const Mr={none:null,close:r0,block:s0,reposition:o0},t0=oe({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Mr}},"VOverlay-scroll-strategies");function n0(e,t){if(!Te)return;let n;Zt(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=ir(),await ft(),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Mr[e.scrollStrategy])==null||r.call(Mr,t,e,n)}))}),We(()=>{n==null||n.stop()})}function r0(e){function t(n){e.isActive.value=!1}Wf(e.activatorEl.value??e.contentEl.value,t)}function s0(e,t){var i;const n=(i=e.root.value)==null?void 0:i.offsetParent,r=[...new Set([...Jr(e.activatorEl.value,t.contained?n:void 0),...Jr(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),s=window.innerWidth-document.documentElement.offsetWidth,o=(a=>Ri(a)&&a)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((a,c)=>{a.style.setProperty("--v-body-scroll-x",ce(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",ce(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",ce(s)),a.classList.add("v-overlay-scroll-blocked")}),We(()=>{r.forEach((a,c)=>{const l=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(a.style.getPropertyValue("--v-body-scroll-y"));a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-l,a.scrollTop=-u}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function o0(e,t,n){let r=!1,s=-1,o=-1;function i(a){e0(()=>{var u,f;const c=performance.now();(f=(u=e.updateLocation).value)==null||f.call(u,a),r=(performance.now()-c)/(1e3/60)>2})}o=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{Wf(e.activatorEl.value??e.contentEl.value,a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{i(a)})})):i(a)})})}),We(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(o),cancelAnimationFrame(s)})}function Wf(e,t){const n=[document,...Jr(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),We(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Bo=Symbol.for("vuetify:v-menu"),i0=oe({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function a0(e,t){const n={},r=s=>()=>{if(!Te)return Promise.resolve(!0);const o=s==="openDelay";return n.closeDelay&&window.clearTimeout(n.closeDelay),delete n.closeDelay,n.openDelay&&window.clearTimeout(n.openDelay),delete n.openDelay,new Promise(i=>{const a=parseInt(e[s]??0,10);n[s]=window.setTimeout(()=>{t==null||t(o),i(o)},a)})};return{runCloseDelay:r("closeDelay"),runOpenDelay:r("openDelay")}}const l0=oe({activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...i0()},"VOverlay-activator");function c0(e,t){let{isActive:n,isTop:r}=t;const s=ve();let o=!1,i=!1,a=!0;const c=D(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),l=D(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:u,runCloseDelay:f}=a0(e,b=>{b===(e.openOnHover&&o||c.value&&i)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==b&&(a=!0),n.value=b)}),d={onClick:b=>{b.stopPropagation(),s.value=b.currentTarget||b.target,n.value=!n.value},onMouseenter:b=>{var L;(L=b.sourceCapabilities)!=null&&L.firesTouchEvents||(o=!0,s.value=b.currentTarget||b.target,u())},onMouseleave:b=>{o=!1,f()},onFocus:b=>{Wv&&!b.target.matches(":focus-visible")||(i=!0,b.stopPropagation(),s.value=b.currentTarget||b.target,u())},onBlur:b=>{i=!1,b.stopPropagation(),f()}},m=D(()=>{const b={};return l.value&&(b.onClick=d.onClick),e.openOnHover&&(b.onMouseenter=d.onMouseenter,b.onMouseleave=d.onMouseleave),c.value&&(b.onFocus=d.onFocus,b.onBlur=d.onBlur),b}),h=D(()=>{const b={};if(e.openOnHover&&(b.onMouseenter=()=>{o=!0,u()},b.onMouseleave=()=>{o=!1,f()}),c.value&&(b.onFocusin=()=>{i=!0,u()},b.onFocusout=()=>{i=!1,f()}),e.closeOnContentClick){const L=_e(Bo,null);b.onClick=()=>{n.value=!1,L==null||L.closeParents()}}return b}),g=D(()=>{const b={};return e.openOnHover&&(b.onMouseenter=()=>{a&&(o=!0,a=!1,u())},b.onMouseleave=()=>{o=!1,f()}),b});pe(r,b=>{b&&(e.openOnHover&&!o&&(!c.value||!i)||c.value&&!i&&(!e.openOnHover||!o))&&(n.value=!1)});const S=ve();Zt(()=>{S.value&&ft(()=>{s.value=bv(S.value)})});const w=Ze("useActivator");let E;return pe(()=>!!e.activator,b=>{b&&Te?(E=ir(),E.run(()=>{u0(e,w,{activatorEl:s,activatorEvents:m})})):E&&E.stop()},{flush:"post",immediate:!0}),We(()=>{E==null||E.stop()}),{activatorEl:s,activatorRef:S,activatorEvents:m,contentEvents:h,scrimEvents:g}}function u0(e,t,n){let{activatorEl:r,activatorEvents:s}=n;pe(()=>e.activator,(c,l)=>{if(l&&c!==l){const u=a(l);u&&i(u)}c&&ft(()=>o())},{immediate:!0}),pe(()=>e.activatorProps,()=>{o()}),We(()=>{i()});function o(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&xv(c,De(s.value,l))}function i(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&Av(c,De(s.value,l))}function a(){var u,f;let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator,l;if(c)if(c==="parent"){let d=(f=(u=t==null?void 0:t.proxy)==null?void 0:u.$el)==null?void 0:f.parentNode;for(;d.hasAttribute("data-no-activator");)d=d.parentNode;l=d}else typeof c=="string"?l=document.querySelector(c):"$el"in c?l=c.$el:l=c;return r.value=(l==null?void 0:l.nodeType)===Node.ELEMENT_NODE?l:null,r.value}}function f0(){if(!Te)return xe(!1);const{ssr:e}=Qv();if(e){const t=xe(!1);return si(()=>{t.value=!0}),t}else return xe(!0)}const d0=oe({eager:Boolean},"lazy");function h0(e,t){const n=xe(!1),r=D(()=>n.value||e.eager||t.value);pe(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function Kf(){const t=Ze("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const ql=Symbol.for("vuetify:stack"),Fn=ut([]);function m0(e,t,n){const r=Ze("useStack"),s=!n,o=_e(ql,void 0),i=ut({activeChildren:new Set});Ft(ql,i);const a=xe(+t.value);fr(e,()=>{var f;const u=(f=Fn.at(-1))==null?void 0:f[1];a.value=u?u+10:+t.value,s&&Fn.push([r.uid,a.value]),o==null||o.activeChildren.add(r.uid),We(()=>{if(s){const d=ne(Fn).findIndex(m=>m[0]===r.uid);Fn.splice(d,1)}o==null||o.activeChildren.delete(r.uid)})});const c=xe(!0);s&&Zt(()=>{var f;const u=((f=Fn.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>c.value=u)});const l=D(()=>!i.activeChildren.size);return{globalTop:Go(c),localTop:l,stackStyles:D(()=>({zIndex:a.value}))}}function p0(e){return{teleportTarget:D(()=>{const n=e.value;if(n===!0||!Te)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=r.querySelector(":scope > .v-overlay-container");return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}function g0(){return!0}function qf(e,t,n){if(!e||Yf(e,n)===!1)return!1;const r=ef(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(o=>o==null?void 0:o.contains(e.target))}function Yf(e,t){return(typeof t.value=="object"&&t.value.closeConditional||g0)(e)}function v0(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&qf(e,t,n)&&setTimeout(()=>{Yf(e,n)&&r&&r(e)},0)}function Yl(e,t){const n=ef(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const y0={mounted(e,t){const n=s=>v0(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=qf(s,e,t)};Yl(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(Yl(e,n=>{var o;if(!n||!((o=e._clickOutside)!=null&&o[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function b0(e){const{modelValue:t,color:n,...r}=e;return T(Jt,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&T("div",De({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const Jf=oe({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...l0(),...Xe(),...Ni(),...d0(),...Jb(),...t0(),...hr(),...vf()},"VOverlay"),Jl=Ie()({name:"VOverlay",directives:{ClickOutside:y0},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Jf()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const o=Rs(e,"modelValue"),i=D({get:()=>o.value,set:se=>{se&&e.disabled||(o.value=se)}}),{teleportTarget:a}=p0(D(()=>e.attach||e.contained)),{themeClasses:c}=mr(e),{rtlClasses:l,isRtl:u}=Li(),{hasContent:f,onAfterLeave:d}=h0(e,i),m=Io(D(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:h,localTop:g,stackStyles:S}=m0(i,Qo(e,"zIndex"),e._disableGlobalStack),{activatorEl:w,activatorRef:E,activatorEvents:b,contentEvents:L,scrimEvents:H}=c0(e,{isActive:i,isTop:g}),{dimensionStyles:Y}=Di(e),J=f0(),{scopeId:x}=Kf();pe(()=>e.disabled,se=>{se&&(i.value=!1)});const k=ve(),B=ve(),{contentStyles:U,updateLocation:O}=Gb(e,{isRtl:u,contentEl:B,activatorEl:w,isActive:i});n0(e,{root:k,contentEl:B,activatorEl:w,isActive:i,updateLocation:O});function j(se){s("click:outside",se),e.persistent?X():i.value=!1}function te(){return i.value&&h.value}Te&&pe(i,se=>{se?window.addEventListener("keydown",he):window.removeEventListener("keydown",he)},{immediate:!0});function he(se){var Ee,Oe;se.key==="Escape"&&h.value&&(e.persistent?X():(i.value=!1,(Ee=B.value)!=null&&Ee.contains(document.activeElement)&&((Oe=w.value)==null||Oe.focus())))}const Z=Sb();fr(()=>e.closeOnBack,()=>{Ab(Z,se=>{h.value&&i.value?(se(!1),e.persistent?X():i.value=!1):se()})});const ie=ve();pe(()=>i.value&&(e.absolute||e.contained)&&a.value==null,se=>{if(se){const Ee=Hv(k.value);Ee&&Ee!==document.scrollingElement&&(ie.value=Ee.scrollTop)}});function X(){e.noClickAnimation||B.value&&Nn(B.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Ro})}return ht(()=>{var se;return T(ke,null,[(se=n.activator)==null?void 0:se.call(n,{isActive:i.value,props:De({ref:E},b.value,e.activatorProps)}),J.value&&f.value&&T(Mh,{disabled:!a.value,to:a.value},{default:()=>[T("div",De({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":i.value,"v-overlay--contained":e.contained},c.value,l.value,e.class],style:[S.value,{top:ce(ie.value)},e.style],ref:k},x,r),[T(b0,De({color:m,modelValue:i.value&&!!e.scrim},H.value),null),T(Dn,{appear:!0,persisted:!0,transition:e.transition,target:w.value,onAfterLeave:()=>{d(),s("afterLeave")}},{default:()=>{var Ee;return[Hr(T("div",De({ref:B,class:["v-overlay__content",e.contentClass],style:[Y.value,U.value]},L.value,e.contentProps),[(Ee=n.default)==null?void 0:Ee.call(n,{isActive:i})]),[[nu,i.value],[ai("click-outside"),{handler:j,closeConditional:te,include:()=>[w.value]}]])]}})])]})])}),{activatorEl:w,animateClick:X,contentEl:B,globalTop:h,localTop:g,updateLocation:O}}}),Qs=Symbol("Forwarded refs");function eo(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function w0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0},setup(e,t){let{slots:n}=t;const r=Rs(e,"modelValue"),{scopeId:s}=Kf(),o=Oi(),i=D(()=>e.id||`v-menu-${o}`),a=ve(),c=_e(Bo,null),l=xe(0);Ft(Bo,{register(){++l.value},unregister(){--l.value},closeParents(){setTimeout(()=>{l.value||(r.value=!1,c==null||c.closeParents())},40)}}),pe(r,h=>{h?c==null||c.register():c==null||c.unregister()});function u(){c==null||c.closeParents()}function f(h){var g,S;e.disabled||h.key==="Tab"&&(r.value=!1,(S=(g=a.value)==null?void 0:g.activatorEl)==null||S.focus())}function d(h){var S;if(e.disabled)return;const g=(S=a.value)==null?void 0:S.contentEl;g&&r.value?h.key==="ArrowDown"?(h.preventDefault(),Po(g,"next")):h.key==="ArrowUp"&&(h.preventDefault(),Po(g,"prev")):["ArrowDown","ArrowUp"].includes(h.key)&&(r.value=!0,h.preventDefault(),setTimeout(()=>setTimeout(()=>d(h))))}const m=D(()=>De({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":i.value,onKeydown:d},e.activatorProps));return ht(()=>{const[h]=Jl.filterProps(e);return T(Jl,De({ref:a,class:["v-menu",e.class],style:e.style},h,{modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,absolute:!0,activatorProps:m.value,"onClick:outside":u,onKeydown:f},s),{activator:n.activator,default:function(){for(var g=arguments.length,S=new Array(g),w=0;w{var E;return[(E=n.default)==null?void 0:E.call(n,...S)]}})}})}),w0({id:i,ΨopenChildren:l},a)}}),S0={name:"myHelper",props:{pretext:{type:Object,default:()=>{}}},data:()=>({fav:!0,menu:!1,message:!1,hints:!0})},C0={class:"pa-0 align-self-center"};function x0(e,t,n,r,s,o){return lr(),Bh("div",C0,[T(E0,{modelValue:e.menu,"onUpdate:modelValue":t[1]||(t[1]=i=>e.menu=i),"close-on-content-click":!1,"nudge-width":500,"offset-x":""},{activator:cn(({on:i,attrs:a})=>[T(pf,De(a,gh(i),{size:"large",color:"indigo",icon:"mdi-owl",onClick:t[0]||(t[0]=c=>e.menu=!e.menu)}),null,16)]),default:cn(()=>[T(Ib,{class:"whmy overflow-auto overflow-x-hidden"},{default:cn(()=>[T(Wb,{class:"ma-3"},{default:cn(()=>[T($b,null,{default:cn(()=>[di("pre",null,""+tc(n.pretext)+` -`,1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const A0=Ky(S0,[["render",x0]]),P0=[A0];var Gf=fs({name:"Vue3Autocounter",interval:null,props:{startAmount:{type:Number,default:0},endAmount:{type:Number,default:0,required:!0},duration:{type:Number,default:3,validator(e){return e>=1}},autoinit:{type:Boolean,default:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},separator:{type:String,default:","},decimalSeparator:{type:String,default:"."},decimals:{type:Number,default:0,validator(e){return e>=0}}},data(){return{timestamp:0,startTimestamp:0,currentAmount:0,currentStartAmount:0,currentDuration:0,paused:!1,remaining:0,animationFrame:0}},mounted(){this.currentAmount=this.startAmount,this.currentStartAmount=this.startAmount,this.currentDuration=this.duration*1e3,this.remaining=this.duration*1e3,this.autoinit?this.start():this.paused=!0,this.$emit("mounted")},unmounted(){this.cancelAnimation()},watch:{startAmount(){this.reset()},endAmount(){this.reset()},duration(){this.reset()}},computed:{isCountingUp(){return this.endAmount>this.startAmount},displayedAmount(){return`${this.prefix}${this.formatedAmount}${this.suffix}`},formatedAmount(){const e=/(\d+)(\d{3})/;let t=this.currentAmount.toFixed(this.decimals);t+="";let n=t.split("."),r=n[0],s=n.length>1?this.decimalSeparator+n[1]:"",o=!isNaN(parseFloat(this.separator));if(this.separator&&!o)for(;e.test(r);)r=r.replace(e,"$1"+this.separator+"$2");return r+s}},methods:{start(){this.cancelAnimation(),this.currentStartAmount=this.startAmount,this.startTimestamp=null,this.currentDuration=this.duration*1e3,this.paused=!1,this.animationFrame=window.requestAnimationFrame(this.counting)},pause(){this.paused||(this.cancelAnimation(),this.paused=!0)},resume(){this.paused&&(this.startTimestamp=null,this.currentDuration=+this.remaining,this.currentStartAmount=+this.currentAmount,this.animationFrame=window.requestAnimationFrame(this.counting),this.paused=!1)},reset(){this.paused=!1,this.startTimestamp=null,this.cancelAnimation(),this.currentAmount=this.startAmount,this.autoinit?this.start():this.paused=!0},counting(e){this.timestamp=e,this.startTimestamp||(this.startTimestamp=e);let t=e-this.startTimestamp;this.remaining=this.currentDuration-t,this.isCountingUp?(this.currentAmount=this.currentStartAmount+(this.endAmount-this.currentStartAmount)*(t/this.currentDuration),this.currentAmount=this.currentAmount>this.endAmount?this.endAmount:this.currentAmount):(this.currentAmount=this.currentStartAmount-(this.currentStartAmount-this.endAmount)*(t/this.currentDuration),this.currentAmount=this.currentAmount{this.$emit("finished")},1e3)},cancelAnimation(){this.animationFrame&&window.cancelAnimationFrame(this.animationFrame)}}});function O0(e,t,n,r,s,o){return lr(),ms("span",null,tc(e.displayedAmount),1)}Gf.render=O0;var R0=(()=>{const e=Gf;return e.install=t=>{t.component("Vue3Autocounter",e)},e})();const T0=R0,Ts=km(uv);P0.forEach(e=>{Ts.component(e.name,e)});Ts.component("vue3-autocounter",T0);Wy(Ts);Ts.mount("#app");export{I0 as $,Ci as A,Tu as B,lr as C,ms as D,cn as E,T as F,Hh as G,De as H,Jy as I,cb as J,Wb as K,$b as L,qy as M,Hr as N,nu as O,gb as P,V0 as Q,Ib as R,di as S,H0 as T,q0 as U,pf as V,Va as W,mh as X,Bh as Y,ke as Z,Ky as _,ut as a,rs as a$,Gt as a0,Xe as a1,Mi as a2,hf as a3,xn as a4,hr as a5,Ie as a6,ow as a7,mr as a8,Rs as a9,z0 as aA,Y0 as aB,cv as aC,iw as aD,ss as aE,W0 as aF,Cs as aG,Ni as aH,Cf as aI,_b as aJ,Di as aK,xf as aL,Eb as aM,fs as aN,Nt as aO,Mh as aP,A0 as aQ,lh as aR,U0 as aS,F0 as aT,L0 as aU,yb as aV,Z0 as aW,bb as aX,K0 as aY,j0 as aZ,D0 as a_,Ao as aa,Uu as ab,ht as ac,tc as ad,M0 as ae,pn as af,Li as ag,ub as ah,db as ai,$i as aj,Io as ak,Qo as al,fb as am,hb as an,Bi as ao,Fi as ap,bf as aq,Xr as ar,fr as as,Zt as at,tw as au,Qv as av,Sb as aw,Kf as ax,cl as ay,Jt as az,ce as b,ph as b0,N0 as b1,$0 as b2,k0 as b3,$e as b4,wv as b5,df as b6,Nn as b7,Ro as b8,Te as b9,dr as bA,Dn as bB,nw as bC,xb as bD,Cb as bE,sw as bF,J0 as bG,zu as bH,Po as bI,mf as bJ,nb as bK,X0 as bL,d0 as bM,h0 as bN,Go as bO,B0 as bP,Qt as bQ,vb as bR,Ju as bS,Ku as bT,bv as bU,mb as bV,rt as bW,Sv as ba,wf as bb,Jf as bc,Jl as bd,w0 as be,Q0 as bf,ew as bg,rw as bh,Pi as bi,Ef as bj,Sf as bk,_f as bl,G0 as bm,Hv as bn,We as bo,yv as bp,vf as bq,qb as br,E0 as bs,Dl as bt,Fb as bu,ai as bv,Wv as bw,tb as bx,It as by,ne as bz,D as c,Ze as d,Ft as e,Ks as f,Im as g,Oi as h,_e as i,ih as j,oh as k,oi as l,cu as m,Ru as n,si as o,oe as p,mi as q,ve as r,xe as s,Fc as t,me as u,ze as v,pe as w,Tt as x,vn as y,ft as z}; +`)}function kl(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,o]of Object.entries(e.colors)){const i=Wt(o);r.push(`--v-theme-${s}: ${i.r},${i.g},${i.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${Bv(o)>.18?t:n}`)}for(const[s,o]of Object.entries(e.variables)){const i=typeof o=="string"&&o.startsWith("#")?Wt(o):void 0,a=i?`${i.r}, ${i.g}, ${i.b}`:void 0;r.push(`--v-${s}: ${a??o}`)}return r}const Fo={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function wy(e,t){const n=[];let r=[];const s=lf(e),o=cf(e),i=s.getDay()-Fo[t.slice(-2).toUpperCase()],a=o.getDay()-Fo[t.slice(-2).toUpperCase()];for(let c=0;co.padStart(2,"0")).join("-"),n=new Date().getTimezoneOffset()/-60,r=n<0?"-":"+",s=Math.abs(n).toString().padStart(2,"0");return`${t}T00:00:00.000${r}${s}:00`}const Ey=/([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))/;function Sy(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(Ey.test(e)?t=Date.parse(_y(e)):t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const Fl=new Date(2e3,0,2);function Cy(e){const t=Fo[e.slice(-2).toUpperCase()];return Uu(7).map(n=>{const r=new Date(Fl);return r.setDate(Fl.getDate()+t+n),new Intl.DateTimeFormat(e,{weekday:"short"}).format(r)})}function xy(e,t,n){const r=new Date(e);let s={};switch(t){case"fullDateWithWeekday":s={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":s={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":s={};break;case"monthAndDate":s={month:"long",day:"numeric"};break;case"monthAndYear":s={month:"long",year:"numeric"};break;case"dayOfMonth":s={day:"numeric"};break;default:s={timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,s).format(r)}function Ay(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Py(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function Oy(e){return e.getFullYear()}function Ry(e){return e.getMonth()}function Ty(e){return new Date(e.getFullYear(),0,1)}function ky(e){return new Date(e.getFullYear(),11,31)}function Fy(e,t){return Lo(e,t[0])&&Iy(e,t[1])}function Ly(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Lo(e,t){return e.getTime()>t.getTime()}function Iy(e,t){return e.getTime()0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=qe(t,n),{aliases:s={},components:o={},directives:i={}}=r,a=Yv(r.defaults),c=Zv(r.display,r.ssr),l=by(r.theme),u=ry(r.icons),f=cy(r.locale),d=jy(r.date);return{install:h=>{for(const g in i)h.directive(g,i[g]);for(const g in o)h.component(g,o[g]);for(const g in s)h.component(g,dr({...s[g],name:g,aliasName:s[g].name}));if(l.install(h),h.provide(nr,a),h.provide(To,c),h.provide(rr,l),h.provide(ko,u),h.provide(Gr,f),h.provide(Il,d),Te&&r.ssr)if(h.$nuxt)h.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:g}=h;h.mount=function(){const S=g(...arguments);return ft(()=>c.update()),h.mount=g,S}}Oi.reset(),h.mixin({computed:{$vuetify(){return ut({defaults:ln.call(this,nr),display:ln.call(this,To),theme:ln.call(this,rr),icons:ln.call(this,ko),locale:ln.call(this,Gr),date:ln.call(this,Il)})}}})},defaults:a,display:c,theme:l,icons:u,locale:f,date:d}}const Vy="3.3.10";uf.version=Vy;function ln(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const Hy=uf({theme:{defaultTheme:"light"},theme:{themes:{light:{colors:{lampa:"#FFFFFF",primary:"#1867C0",secondary:"#5CBBF6",main_theme:"#f7f7f7",scrollbar:"#367F8A",cards:"#F5F5F5",text_carous:"#242424",navigation:"#004D40",black_grey:"#3C3C3C",modal_btn:"#1E88E5",grey:"#7A7A7A",yellow:"#F9A825",more_details_btn:"#01579B",loading_avatar:"#37474F",bg_white:"#FFFFFF",delete_btn:"#546E7A",app_bar:"#004D40",black_and_white:"#FFFFFF"}},dark:{colors:{lampa:"#000000",primary:"#1867C0",secondary:"#5CBBF6",main_theme:"#101311",scrollbar:"#367F8A",cards:"#F5F5F5",text_carous:"#242424",navigation:"#FDF5E6",black_grey:"#3C3C3C",modal_btn:"#1E88E5",grey:"#7A7A7A",yellow:"#F9A825",more_details_btn:"#01579B",loading_avatar:"#37474F",bg_white:"#FFFFFF",delete_btn:"#546E7A",app_bar:"#212121",black_and_white:"#101311"}},options:{customProperties:!0}}}}),Uy=Mm(),zy=[{path:"/",component:()=>$e(()=>import("./DefaultPortal-4005db62.js"),["assets/DefaultPortal-4005db62.js","assets/VBtn-11d9d7ef.js","assets/group-2cdf27ee.js","assets/VBtn-2323aa03.css","assets/VContainer-a91b572b.js","assets/VList-30a0199c.js","assets/VTextarea-eca486a5.js","assets/VInput-6b41ac51.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VList-a4e0cf69.css","assets/VSpacer-0a06d07c.js","assets/VTooltip-04fe483e.js","assets/VWindowItem-46132c15.js","assets/VWindowItem-72fb4d35.css","assets/VTooltip-e0c18f50.css","assets/DefaultPortal-3f808f5f.css"]),children:[{path:"/",name:"HomePage",component:()=>$e(()=>import("./HomePage-a303f47a.js"),["assets/HomePage-a303f47a.js","assets/VCarouselItem-407ac450.js","assets/VWindowItem-46132c15.js","assets/group-2cdf27ee.js","assets/VTextarea-eca486a5.js","assets/VInput-6b41ac51.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VBtn-11d9d7ef.js","assets/VBtn-2323aa03.css","assets/VWindowItem-72fb4d35.css","assets/VCarouselItem-149fe76f.css","assets/VContainer-a91b572b.js","assets/VTooltip-04fe483e.js","assets/VList-30a0199c.js","assets/VList-a4e0cf69.css","assets/VTooltip-e0c18f50.css","assets/VSelectionControl-e5942853.js","assets/VSelectionControl-59bfdd15.css","assets/load-round-bc7e7ecc.js","assets/VChip-1d3621e6.js","assets/VChip-323b10eb.css","assets/load-round-9bffb3b7.css","assets/HomePage-f12f6dd6.css"]),meta:{title:"Портал МИ ФНС России по ЦОД №2",ico:"mdi-arrow-top-right"}},{path:"/okib",name:"OKiBPage",component:()=>$e(()=>import("./o_OKiB-c6876d95.js"),["assets/o_OKiB-c6876d95.js","assets/load-round-bc7e7ecc.js","assets/VInput-6b41ac51.js","assets/group-2cdf27ee.js","assets/VInput-a9379007.css","assets/VChip-1d3621e6.js","assets/VChip-323b10eb.css","assets/load-round-9bffb3b7.css"]),meta:{title:"Отдел кадров и безопасности",ico:"mdi-comment-account-outline"}},{path:"/providing",name:"ProvidingActivitiesPage",component:()=>$e(()=>import("./ProvidingActivitiesPage-79cb5b40.js"),["assets/ProvidingActivitiesPage-79cb5b40.js","assets/group-2cdf27ee.js","assets/VContainer-a91b572b.js","assets/VBtn-11d9d7ef.js","assets/VBtn-2323aa03.css","assets/ProvidingActivitiesPage-d12aecf2.css"]),meta:{title:"Обеспечивающая деятельность",ico:"mdi-bulletin-board"}},{path:"/faq",name:"FAQPage",component:()=>$e(()=>import("./FAQPage-9a9de56e.js"),[]),meta:{title:"Часто задаваемые вопросы",ico:"mdi-comment-question-outline"}},{path:"/feedback",name:"FeedbackPage",component:()=>$e(()=>import("./FeedbackPage-9f8c4343.js"),[]),meta:{title:"Обратная связь",ico:"mdi-thumb-up-outline"}},{path:"/labor",name:"LaborProtection",component:()=>$e(()=>import("./LaborProtection-0da679b7.js"),[]),meta:{title:"Безопасность",ico:"mdi-pharmacy"}},{path:"/securyty",name:"SecurityPage",component:()=>$e(()=>import("./SecurityPage-32b985db.js"),[]),meta:{title:"Охрана труда",ico:"mdi-ticket"}},{path:"/inspection",name:"AboutInspectionPage",component:()=>$e(()=>import("./AboutInspectionPage-f5b263a4.js"),[]),meta:{title:"Об инспекции",ico:"mdi-city"}},{path:"/portal",name:"AboutPortalPage",component:()=>$e(()=>import("./AboutPortalPage-bf8e0e01.js"),["assets/AboutPortalPage-bf8e0e01.js","assets/AboutPortalPage-12dddae5.css"]),meta:{title:"О портале",ico:"mdi-information-variant"}},{path:"/news",name:"AboutNewsPage",component:()=>$e(()=>import("./NewsPage-3f552c1b.js"),["assets/NewsPage-3f552c1b.js","assets/group-2cdf27ee.js","assets/VBtn-11d9d7ef.js","assets/VBtn-2323aa03.css","assets/VList-30a0199c.js","assets/VTextarea-eca486a5.js","assets/VInput-6b41ac51.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VList-a4e0cf69.css","assets/VSelectionControl-e5942853.js","assets/VSelectionControl-59bfdd15.css","assets/VChip-1d3621e6.js","assets/VChip-323b10eb.css","assets/VSpacer-0a06d07c.js","assets/NewsPage-01990191.css"]),meta:{title:"Лента новостей",ico:"mdi-newspaper"}},{path:"/userinfo",name:"UsersInfoPage",component:()=>$e(()=>import("./UsersInfoPage-04b47356.js"),[]),meta:{title:"Информация о пользователе",ico:"mdi-account"}},{path:"/fnshol",name:"FnsHol.vue",component:()=>$e(()=>import("./FnsHol-2a5bbfdd.js"),["assets/FnsHol-2a5bbfdd.js","assets/VCarouselItem-407ac450.js","assets/VWindowItem-46132c15.js","assets/group-2cdf27ee.js","assets/VTextarea-eca486a5.js","assets/VInput-6b41ac51.js","assets/VInput-a9379007.css","assets/VTextarea-41155dd7.css","assets/VBtn-11d9d7ef.js","assets/VBtn-2323aa03.css","assets/VWindowItem-72fb4d35.css","assets/VCarouselItem-149fe76f.css","assets/VContainer-a91b572b.js","assets/FnsHol-59f12ea9.css"]),meta:{title:"К празднику",ico:"mdi-city"}}]}],ff=av({history:Sg({}.BASE_URL),routes:zy});ff.beforeEach((e,t,n)=>{document.title=e.meta.title,n()});function Wy(e){hv(),e.use(Hy).use(Uy).use(ff)}const Ky=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const qy=Ie()({name:"VCardActions",props:Xe(),setup(e,t){let{slots:n}=t;return Fi({VBtn:{variant:"text"}}),ht(()=>{var r;return T("div",{class:["v-card-actions",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),Yy=Pi("v-card-subtitle"),Jy=Pi("v-card-title");function Ii(e){return xi(()=>{const t=[],n={};return e.value.background&&(hl(e.value.background)?n.backgroundColor=e.value.background:t.push(`bg-${e.value.background}`)),e.value.text&&(hl(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function df(e,t){const n=D(()=>({text:me(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Ii(n);return{textColorClasses:r,textColorStyles:s}}function Io(e,t){const n=D(()=>({background:me(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=Ii(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const Gy=["x-small","small","default","large","x-large"],hf=oe({size:{type:[String,Number],default:"default"}},"size");function mf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return xi(()=>{let n,r;return qr(Gy,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:ce(e.size),height:ce(e.size)}),{sizeClasses:n,sizeStyles:r}})}const xn=oe({tag:{type:String,default:"div"}},"tag"),Xy=oe({color:String,start:Boolean,end:Boolean,icon:Gt,...Xe(),...hf(),...xn({tag:"i"}),...hr()},"VIcon"),pf=Ie()({name:"VIcon",props:Xy(),setup(e,t){let{attrs:n,slots:r}=t;const s=ve(),{themeClasses:o}=mr(e),{iconData:i}=sy(D(()=>s.value||e.icon)),{sizeClasses:a}=mf(e),{textColorClasses:c,textColorStyles:l}=df(Qo(e,"color"));return ht(()=>{var f,d;const u=(f=r.default)==null?void 0:f.call(r);return u&&(s.value=(d=Wu(u).filter(m=>m.type===ar&&m.children&&typeof m.children=="string")[0])==null?void 0:d.children),T(i.value.component,{tag:e.tag,icon:i.value.icon,class:["v-icon","notranslate",o.value,a.value,c.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[a.value?void 0:{fontSize:ce(e.size),height:ce(e.size),width:ce(e.size)},l.value,e.style],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>[u]})}),{}}});const Ni=oe({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Di(e){return{dimensionStyles:D(()=>({height:ce(e.height),maxHeight:ce(e.maxHeight),maxWidth:ce(e.maxWidth),minHeight:ce(e.minHeight),minWidth:ce(e.minWidth),width:ce(e.width)}))}}function Zy(e){return{aspectStyles:D(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const gf=oe({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...Xe(),...Ni()},"VResponsive"),Nl=Ie()({name:"VResponsive",props:gf(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=Zy(e),{dimensionStyles:s}=Di(e);return ht(()=>{var o;return T("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[s.value,e.style]},[T("div",{class:"v-responsive__sizer",style:r.value},null),(o=n.additional)==null?void 0:o.call(n),n.default&&T("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),vf=oe({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Dn=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,...o}=e,{component:i=Jt,...a}=typeof r=="object"?r:{};return Nt(i,De(typeof r=="string"?{name:s?"":r}:a,o,{disabled:s}),n)};function Qy(e,t){if(!Ti)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 l=(f=e._observe)==null?void 0:f[t.instance.$.uid];if(!l)return;const u=a.some(d=>d.isIntersecting);s&&(!n.quiet||l.init)&&(!n.once||u||l.init)&&s(u,a,c),u&&n.once?yf(e,t):l.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:i},i.observe(e)}function yf(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 eb={mounted:Qy,unmounted:yf},tb=eb,nb=oe({alt:String,cover:Boolean,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:""},srcset:String,...gf(),...Xe(),...vf()},"VImg"),bf=Ie()({name:"VImg",directives:{intersect:tb},props:nb(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=xe(""),o=ve(),i=xe(e.eager?"loading":"idle"),a=xe(),c=xe(),l=D(()=>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)}),u=D(()=>l.value.aspect||a.value/c.value||0);pe(()=>e.src,()=>{f(i.value!=="idle")}),pe(u,(x,k)=>{!x&&k&&o.value&&S(o.value)}),Fc(()=>f());function f(x){if(!(e.eager&&x)&&!(Ti&&!x&&!e.eager)){if(i.value="loading",l.value.lazySrc){const k=new Image;k.src=l.value.lazySrc,S(k,null)}l.value.src&&ft(()=>{var k,B;if(n("loadstart",((k=o.value)==null?void 0:k.currentSrc)||l.value.src),(B=o.value)!=null&&B.complete){if(o.value.naturalWidth||m(),i.value==="error")return;u.value||S(o.value,null),d()}else u.value||S(o.value),h()})}}function d(){var x;h(),i.value="loaded",n("load",((x=o.value)==null?void 0:x.currentSrc)||l.value.src)}function m(){var x;i.value="error",n("error",((x=o.value)==null?void 0:x.currentSrc)||l.value.src)}function h(){const x=o.value;x&&(s.value=x.currentSrc||x.src)}let g=-1;function S(x){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const B=()=>{clearTimeout(g);const{naturalHeight:U,naturalWidth:O}=x;U||O?(a.value=O,c.value=U):!x.complete&&i.value==="loading"&&k!=null?g=window.setTimeout(B,k):(x.currentSrc.endsWith(".svg")||x.currentSrc.startsWith("data:image/svg+xml"))&&(a.value=1,c.value=1)};B()}const w=D(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),E=()=>{var B;if(!l.value.src||i.value==="idle")return null;const x=T("img",{class:["v-img__img",w.value],src:l.value.src,srcset:l.value.srcset,alt:e.alt,sizes:e.sizes,ref:o,onLoad:d,onError:m},null),k=(B=r.sources)==null?void 0:B.call(r);return T(Dn,{transition:e.transition,appear:!0},{default:()=>[Hr(k?T("picture",{class:"v-img__picture"},[k,x]):x,[[nu,i.value==="loaded"]])]})},b=()=>T(Dn,{transition:e.transition},{default:()=>[l.value.lazySrc&&i.value!=="loaded"&&T("img",{class:["v-img__img","v-img__img--preload",w.value],src:l.value.lazySrc,alt:e.alt},null)]}),L=()=>r.placeholder?T(Dn,{transition:e.transition,appear:!0},{default:()=>[(i.value==="loading"||i.value==="error"&&!r.error)&&T("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,H=()=>r.error?T(Dn,{transition:e.transition,appear:!0},{default:()=>[i.value==="error"&&T("div",{class:"v-img__error"},[r.error()])]}):null,Y=()=>e.gradient?T("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,J=xe(!1);{const x=pe(u,k=>{k&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{J.value=!0})}),x())})}return ht(()=>{const[x]=Nl.filterProps(e);return Hr(T(Nl,De({class:["v-img",{"v-img--booting":!J.value},e.class],style:[{width:ce(e.width==="auto"?a.value:e.width)},e.style]},x,{aspectRatio:u.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>T(ke,null,[T(E,null,null),T(b,null,null),T(Y,null,null),T(L,null,null),T(H,null,null)]),default:r.default}),[[ai("intersect"),{handler:f,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:o,state:i,naturalWidth:a,naturalHeight:c}}}),rb=[null,"default","comfortable","compact"],Mi=oe({density:{type:String,default:"default",validator:e=>rb.includes(e)}},"density");function wf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{densityClasses:D(()=>`${t}--density-${e.density}`)}}const $i=oe({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function Bi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{roundedClasses:D(()=>{const r=me(e)?e.value:e.rounded,s=[];if(r===!0||r==="")s.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`rounded-${o}`);return s})}}const sb=["elevated","flat","tonal","outlined","text","plain"];function _f(e,t){return T(ke,null,[e&&T("span",{key:"overlay",class:`${t}__overlay`},null),T("span",{key:"underlay",class:`${t}__underlay`},null)])}const Ef=oe({color:String,variant:{type:String,default:"elevated",validator:e=>sb.includes(e)}},"variant");function Sf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();const n=D(()=>{const{variant:o}=ze(e);return`${t}--variant-${o}`}),{colorClasses:r,colorStyles:s}=Ii(D(()=>{const{variant:o,color:i}=ze(e);return{[["elevated","flat"].includes(o)?"background":"text"]:i}}));return{colorClasses:r,colorStyles:s,variantClasses:n}}const ob=oe({start:Boolean,end:Boolean,icon:Gt,image:String,...Xe(),...Mi(),...$i(),...hf(),...xn(),...hr(),...Ef({variant:"flat"})},"VAvatar"),Dl=Ie()({name:"VAvatar",props:ob(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mr(e),{colorClasses:s,colorStyles:o,variantClasses:i}=Sf(e),{densityClasses:a}=wf(e),{roundedClasses:c}=Bi(e),{sizeClasses:l,sizeStyles:u}=mf(e);return ht(()=>T(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,a.value,c.value,l.value,i.value,e.class],style:[o.value,u.value,e.style]},{default:()=>{var f;return[e.image?T(bf,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?T(pf,{key:"icon",icon:e.icon},null):(f=n.default)==null?void 0:f.call(n),_f(!1,"v-avatar")]}})),{}}}),ib=oe({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Xr=Ie(!1)({name:"VDefaultsProvider",props:ib(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:o,root:i,scoped:a}=as(e);return Fi(r,{reset:o,root:i,scoped:a,disabled:s}),()=>{var c;return(c=n.default)==null?void 0:c.call(n)}}}),ab=oe({appendAvatar:String,appendIcon:Gt,prependAvatar:String,prependIcon:Gt,subtitle:String,title:String,...Xe(),...Mi()},"VCardItem"),lb=Ie()({name:"VCardItem",props:ab(),setup(e,t){let{slots:n}=t;return ht(()=>{var l;const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),o=!!(e.appendAvatar||e.appendIcon),i=!!(o||n.append),a=!!(e.title||n.title),c=!!(e.subtitle||n.subtitle);return T("div",{class:["v-card-item",e.class],style:e.style},[s&&T("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?T(Xr,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},n.prepend):r&&T(Dl,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),T("div",{class:"v-card-item__content"},[a&&T(Jy,{key:"title"},{default:()=>{var u;return[((u=n.title)==null?void 0:u.call(n))??e.title]}}),c&&T(Yy,{key:"subtitle"},{default:()=>{var u;return[((u=n.subtitle)==null?void 0:u.call(n))??e.subtitle]}}),(l=n.default)==null?void 0:l.call(n)]),i&&T("div",{key:"append",class:"v-card-item__append"},[n.append?T(Xr,{key:"append-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},n.append):o&&T(Dl,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),cb=Pi("v-card-text"),ub=oe({border:[Boolean,Number,String]},"border");function fb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{borderClasses:D(()=>{const r=me(e)?e.value:e.border,s=[];if(r===!0||r==="")s.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`border-${o}`);return s})}}const db=oe({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function hb(e){return{elevationClasses:D(()=>{const n=me(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}function mb(e,t){const n=ve(),r=xe(!1);if(Ti){const s=new IntersectionObserver(o=>{e==null||e(o,s),r.value=!!o.find(i=>i.isIntersecting)},t);oi(()=>{s.disconnect()}),pe(n,(o,i)=>{i&&(s.unobserve(i),r.value=!1),o&&s.observe(o)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const Ml={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Cf=oe({location:String},"location");function xf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Li();return{locationStyles:D(()=>{if(!e.location)return{};const{side:o,align:i}=Oo(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(l){return n?n(l):0}const c={};return o!=="center"&&(t?c[Ml[o]]=`calc(100% - ${a(o)}px)`:c[o]=0),i!=="center"?t?c[Ml[i]]=`calc(100% - ${a(i)}px)`:c[i]=0:(o==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),c})}}const pb=oe({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Xe(),...Cf({location:"top"}),...$i(),...xn(),...hr()},"VProgressLinear"),gb=Ie()({name:"VProgressLinear",props:pb(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Rs(e,"modelValue"),{isRtl:s,rtlClasses:o}=Li(),{themeClasses:i}=mr(e),{locationStyles:a}=xf(e),{textColorClasses:c,textColorStyles:l}=df(e,"color"),{backgroundColorClasses:u,backgroundColorStyles:f}=Io(D(()=>e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:m}=Io(e,"color"),{roundedClasses:h}=Bi(e),{intersectionRef:g,isIntersecting:S}=mb(),w=D(()=>parseInt(e.max,10)),E=D(()=>parseInt(e.height,10)),b=D(()=>parseFloat(e.bufferValue)/w.value*100),L=D(()=>parseFloat(r.value)/w.value*100),H=D(()=>s.value!==e.reverse),Y=D(()=>e.indeterminate?"fade-transition":"slide-x-transition"),J=D(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function x(k){if(!g.value)return;const{left:B,right:U,width:O}=g.value.getBoundingClientRect(),j=H.value?O-k.clientX+(U-O):k.clientX-B;r.value=Math.round(j/O*w.value)}return ht(()=>T(e.tag,{ref:g,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&S.value,"v-progress-linear--reverse":H.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},h.value,i.value,o.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ce(E.value):0,"--v-progress-linear-height":ce(E.value),...a.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:L.value,onClick:e.clickable&&x},{default:()=>[e.stream&&T("div",{key:"stream",class:["v-progress-linear__stream",c.value],style:{...l.value,[H.value?"left":"right"]:ce(-E.value),borderTop:`${ce(E.value/2)} dotted`,opacity:J.value,top:`calc(50% - ${ce(E.value/4)})`,width:ce(100-b.value,"%"),"--v-progress-linear-stream-to":ce(E.value*(H.value?1:-1))}},null),T("div",{class:["v-progress-linear__background",u.value],style:[f.value,{opacity:J.value,width:ce(e.stream?b.value:100,"%")}]},null),T(Jt,{name:Y.value},{default:()=>[e.indeterminate?T("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(k=>T("div",{key:k,class:["v-progress-linear__indeterminate",k,d.value],style:m.value},null))]):T("div",{class:["v-progress-linear__determinate",d.value],style:[m.value,{width:ce(L.value,"%")}]},null)]}),n.default&&T("div",{class:"v-progress-linear__content"},[n.default({value:L.value,buffer:b.value})])]})),{}}}),vb=oe({loading:[Boolean,String]},"loader");function yb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{loaderClasses:D(()=>({[`${t}--loading`]:e.loading}))}}function bb(e,t){var r;let{slots:n}=t;return T("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||T(gb,{active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const wb=["static","relative","fixed","absolute","sticky"],_b=oe({position:{type:String,validator:e=>wb.includes(e)}},"position");function Eb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qt();return{positionClasses:D(()=>e.position?`${t}--${e.position}`:void 0)}}function Sb(){var e,t;return(t=(e=Ze("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Cb(e,t){const n=ph("RouterLink"),r=D(()=>!!(e.href||e.to)),s=D(()=>(r==null?void 0:r.value)||ll(t,"click")||ll(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:s,href:Qo(e,"href")};const o=e.to?n.useLink(e):void 0;return{isLink:r,isClickable:s,route:o==null?void 0:o.route,navigate:o==null?void 0:o.navigate,isActive:o&&D(()=>{var i,a;return e.exact?(i=o.isExactActive)==null?void 0:i.value:(a=o.isActive)==null?void 0:a.value}),href:D(()=>e.to?o==null?void 0:o.route.value.href:e.href)}}const xb=oe({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Gs=!1;function Ab(e,t){let n=!1,r,s;Te&&(ft(()=>{window.addEventListener("popstate",o),r=e==null?void 0:e.beforeEach((i,a,c)=>{Gs?n?t(c):c():setTimeout(()=>n?t(c):c()),Gs=!0}),s=e==null?void 0:e.afterEach(()=>{Gs=!1})}),We(()=>{window.removeEventListener("popstate",o),r==null||r(),s==null||s()}));function o(i){var a;(a=i.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}const No=Symbol("rippleStop"),Pb=80;function $l(e,t){e.style.transform=t,e.style.webkitTransform=t}function Do(e){return e.constructor.name==="TouchEvent"}function Af(e){return e.constructor.name==="KeyboardEvent"}const Ob=function(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!Af(e)){const d=t.getBoundingClientRect(),m=Do(e)?e.touches[e.touches.length-1]:e;r=m.clientX-d.left,s=m.clientY-d.top}let o=0,i=.3;(f=t._ripple)!=null&&f.circle?(i=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(s-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-o*2)/2}px`,c=`${(t.clientHeight-o*2)/2}px`,l=n.center?a:`${r-o}px`,u=n.center?c:`${s-o}px`;return{radius:o,scale:i,x:l,y:u,centerX:a,centerY:c}},Zr={show(e,t){var m;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((m=t==null?void 0:t._ripple)!=null&&m.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:o,scale:i,x:a,y:c,centerX:l,centerY:u}=Ob(e,t,n),f=`${o*2}px`;s.className="v-ripple__animation",s.style.width=f,s.style.height=f,t.appendChild(r);const d=window.getComputedStyle(t);d&&d.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),$l(s,`translate(${a}, ${c}) scale3d(${i},${i},${i})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),$l(s,`translate(${l}, ${u}) scale3d(1,1,1)`)},0)},hide(e){var o;if(!((o=e==null?void 0:e._ripple)!=null&&o.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function Pf(e){return typeof e>"u"||!!e}function sr(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[No])){if(e[No]=!0,Do(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||Af(e),n._ripple.class&&(t.class=n._ripple.class),Do(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Zr.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Pb)}else Zr.show(e,n,t)}}function Bl(e){e[No]=!0}function Ue(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Ue(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Zr.hide(t)}}function Of(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let or=!1;function Rf(e){!or&&(e.keyCode===il.enter||e.keyCode===il.space)&&(or=!0,sr(e))}function Tf(e){or=!1,Ue(e)}function kf(e){or&&(or=!1,Ue(e))}function Ff(e,t,n){const{value:r,modifiers:s}=t,o=Pf(r);if(o||Zr.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=s.center,e._ripple.circle=s.circle,xo(r)&&r.class&&(e._ripple.class=r.class),o&&!n){if(s.stop){e.addEventListener("touchstart",Bl,{passive:!0}),e.addEventListener("mousedown",Bl);return}e.addEventListener("touchstart",sr,{passive:!0}),e.addEventListener("touchend",Ue,{passive:!0}),e.addEventListener("touchmove",Of,{passive:!0}),e.addEventListener("touchcancel",Ue),e.addEventListener("mousedown",sr),e.addEventListener("mouseup",Ue),e.addEventListener("mouseleave",Ue),e.addEventListener("keydown",Rf),e.addEventListener("keyup",Tf),e.addEventListener("blur",kf),e.addEventListener("dragstart",Ue,{passive:!0})}else!o&&n&&Lf(e)}function Lf(e){e.removeEventListener("mousedown",sr),e.removeEventListener("touchstart",sr),e.removeEventListener("touchend",Ue),e.removeEventListener("touchmove",Of),e.removeEventListener("touchcancel",Ue),e.removeEventListener("mouseup",Ue),e.removeEventListener("mouseleave",Ue),e.removeEventListener("keydown",Rf),e.removeEventListener("keyup",Tf),e.removeEventListener("dragstart",Ue),e.removeEventListener("blur",kf)}function Rb(e,t){Ff(e,t,!1)}function Tb(e){delete e._ripple,Lf(e)}function kb(e,t){if(t.value===t.oldValue)return;const n=Pf(t.oldValue);Ff(e,t,n)}const Fb={mounted:Rb,unmounted:Tb,updated:kb},Lb=oe({appendAvatar:String,appendIcon:Gt,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Gt,ripple:{type:[Boolean,Object],default:!0},subtitle:String,text:String,title:String,...ub(),...Xe(),...Mi(),...Ni(),...db(),...vb(),...Cf(),..._b(),...$i(),...xb(),...xn(),...hr(),...Ef({variant:"elevated"})},"VCard"),Ib=Ie()({name:"VCard",directives:{Ripple:Fb},props:Lb(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mr(e),{borderClasses:o}=fb(e),{colorClasses:i,colorStyles:a,variantClasses:c}=Sf(e),{densityClasses:l}=wf(e),{dimensionStyles:u}=Di(e),{elevationClasses:f}=hb(e),{loaderClasses:d}=yb(e),{locationStyles:m}=xf(e),{positionClasses:h}=Eb(e),{roundedClasses:g}=Bi(e),S=Cb(e,n),w=D(()=>e.link!==!1&&S.isLink.value),E=D(()=>!e.disabled&&e.link!==!1&&(e.link||S.isClickable.value));return ht(()=>{const b=w.value?"a":e.tag,L=!!(r.title||e.title),H=!!(r.subtitle||e.subtitle),Y=L||H,J=!!(r.append||e.appendAvatar||e.appendIcon),x=!!(r.prepend||e.prependAvatar||e.prependIcon),k=!!(r.image||e.image),B=Y||x||J,U=!!(r.text||e.text);return Hr(T(b,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":E.value},s.value,o.value,i.value,l.value,f.value,d.value,h.value,g.value,c.value,e.class],style:[a.value,u.value,m.value,e.style],href:S.href.value,onClick:E.value&&S.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var O;return[k&&T("div",{key:"image",class:"v-card__image"},[r.image?T(Xr,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):T(bf,{key:"image-img",cover:!0,src:e.image},null)]),T(bb,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:r.loader}),B&&T(lb,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),U&&T(cb,{key:"text"},{default:()=>{var j;return[((j=r.text)==null?void 0:j.call(r))??e.text]}}),(O=r.default)==null?void 0:O.call(r),r.actions&&T(qy,null,{default:r.actions}),_f(E.value,"v-card")]}}),[[ai("ripple"),E.value&&e.ripple]])}),{}}});const If=(()=>Ps.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),Nf=(()=>Ps.reduce((e,t)=>{const n="offset"+bt(t);return e[n]={type:[String,Number],default:null},e},{}))(),Df=(()=>Ps.reduce((e,t)=>{const n="order"+bt(t);return e[n]={type:[String,Number],default:null},e},{}))(),jl={col:Object.keys(If),offset:Object.keys(Nf),order:Object.keys(Df)};function Nb(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const s=t.replace(e,"");r+=`-${s}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const Db=["auto","start","end","center","baseline","stretch"],Mb=oe({cols:{type:[Boolean,String,Number],default:!1},...If,offset:{type:[String,Number],default:null},...Nf,order:{type:[String,Number],default:null},...Df,alignSelf:{type:String,default:null,validator:e=>Db.includes(e)},...Xe(),...xn()},"VCol"),$b=Ie()({name:"VCol",props:Mb(),setup(e,t){let{slots:n}=t;const r=D(()=>{const s=[];let o;for(o in jl)jl[o].forEach(a=>{const c=e[a],l=Nb(o,a,c);l&&s.push(l)});const i=s.some(a=>a.startsWith("v-col-"));return s.push({"v-col":!i||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),s});return()=>{var s;return Nt(e.tag,{class:[r.value,e.class],style:e.style},(s=n.default)==null?void 0:s.call(n))}}}),ji=["start","end","center"],Mf=["space-between","space-around","space-evenly"];function Vi(e,t){return Ps.reduce((n,r)=>{const s=e+bt(r);return n[s]=t(),n},{})}const Bb=[...ji,"baseline","stretch"],$f=e=>Bb.includes(e),Bf=Vi("align",()=>({type:String,default:null,validator:$f})),jb=[...ji,...Mf],jf=e=>jb.includes(e),Vf=Vi("justify",()=>({type:String,default:null,validator:jf})),Vb=[...ji,...Mf,"stretch"],Hf=e=>Vb.includes(e),Uf=Vi("alignContent",()=>({type:String,default:null,validator:Hf})),Vl={align:Object.keys(Bf),justify:Object.keys(Vf),alignContent:Object.keys(Uf)},Hb={align:"align",justify:"justify",alignContent:"align-content"};function Ub(e,t,n){let r=Hb[e];if(n!=null){if(t){const s=t.replace(e,"");r+=`-${s}`}return r+=`-${n}`,r.toLowerCase()}}const zb=oe({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:$f},...Bf,justify:{type:String,default:null,validator:jf},...Vf,alignContent:{type:String,default:null,validator:Hf},...Uf,...Xe(),...xn()},"VRow"),Wb=Ie()({name:"VRow",props:zb(),setup(e,t){let{slots:n}=t;const r=D(()=>{const s=[];let o;for(o in Vl)Vl[o].forEach(i=>{const a=e[i],c=Ub(o,i,a);c&&s.push(c)});return s.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),s});return()=>{var s;return Nt(e.tag,{class:["v-row",r.value,e.class],style:e.style},(s=n.default)==null?void 0:s.call(n))}}});const Kb=oe({target:Object},"v-dialog-transition"),qb=Ie()({name:"VDialogTransition",props:Kb(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,o){var d;await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>requestAnimationFrame(m)),s.style.visibility="";const{x:i,y:a,sx:c,sy:l,speed:u}=Ul(e.target,s),f=Nn(s,[{transform:`translate(${i}px, ${a}px) scale(${c}, ${l})`,opacity:0},{}],{duration:225*u,easing:jv});(d=Hl(s))==null||d.forEach(m=>{Nn(m,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:Ro})}),f.finished.then(()=>o())},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,o){var d;await new Promise(m=>requestAnimationFrame(m));const{x:i,y:a,sx:c,sy:l,speed:u}=Ul(e.target,s);Nn(s,[{},{transform:`translate(${i}px, ${a}px) scale(${c}, ${l})`,opacity:0}],{duration:125*u,easing:Vv}).finished.then(()=>o()),(d=Hl(s))==null||d.forEach(m=>{Nn(m,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:Ro})})},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?T(Jt,De({name:"dialog-transition"},r,{css:!1}),n):T(Jt,{name:"dialog-transition"},n)}});function Hl(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function Ul(e,t){const n=e.getBoundingClientRect(),r=Ju(t),[s,o]=getComputedStyle(t).transformOrigin.split(" ").map(w=>parseFloat(w)),[i,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=n.left+n.width/2;i==="left"||a==="left"?c-=n.width/2:(i==="right"||a==="right")&&(c+=n.width/2);let l=n.top+n.height/2;i==="top"||a==="top"?l-=n.height/2:(i==="bottom"||a==="bottom")&&(l+=n.height/2);const u=n.width/r.width,f=n.height/r.height,d=Math.max(1,u,f),m=u/d||0,h=f/d||0,g=r.width*r.height/(window.innerWidth*window.innerHeight),S=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:c-(s+r.left),y:l-(o+r.top),sx:m,sy:h,speed:S}}function Xs(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Yb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zl(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,o=n==="top"?0:n==="bottom"?t.height:n;return Xs({x:s,y:o},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,o=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return Xs({x:s,y:o},t)}return Xs({x:t.width/2,y:t.height/2},t)}const zf={static:Xb,connected:Qb},Jb=oe({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in zf},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function Gb(e,t){const n=ve({}),r=ve();Te&&(fr(()=>!!(t.isActive.value&&e.locationStrategy),o=>{var i,a;pe(()=>e.locationStrategy,o),We(()=>{r.value=void 0}),typeof e.locationStrategy=="function"?r.value=(i=e.locationStrategy(t,e,n))==null?void 0:i.updateLocation:r.value=(a=zf[e.locationStrategy](t,e,n))==null?void 0:a.updateLocation}),window.addEventListener("resize",s,{passive:!0}),We(()=>{window.removeEventListener("resize",s),r.value=void 0}));function s(o){var i;(i=r.value)==null||i.call(r,o)}return{contentStyles:n,updateLocation:r}}function Xb(){}function Zb(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const n=Ju(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 Qb(e,t,n){qv(e.activatorEl.value)&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:o}=xi(()=>{const h=Oo(t.location,e.isRtl.value),g=t.origin==="overlap"?h:t.origin==="auto"?qs(h):Oo(t.origin,e.isRtl.value);return h.side===g.side&&h.align===Ys(g).align?{preferredAnchor:ul(h),preferredOrigin:ul(g)}:{preferredAnchor:h,preferredOrigin:g}}),[i,a,c,l]=["minWidth","minHeight","maxWidth","maxHeight"].map(h=>D(()=>{const g=parseFloat(t[h]);return isNaN(g)?1/0:g})),u=D(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const h=t.offset.split(" ").map(parseFloat);return h.length<2&&h.push(0),h}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let f=!1;const d=new ResizeObserver(()=>{f&&m()});pe([e.activatorEl,e.contentEl],(h,g)=>{let[S,w]=h,[E,b]=g;E&&d.unobserve(E),S&&d.observe(S),b&&d.unobserve(b),w&&d.observe(w)},{immediate:!0}),We(()=>{d.disconnect()});function m(){if(f=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>f=!0)}),!e.activatorEl.value||!e.contentEl.value)return;const h=e.activatorEl.value.getBoundingClientRect(),g=Zb(e.contentEl.value,e.isRtl.value),S=Jr(e.contentEl.value),w=12;S.length||(S.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const E=S.reduce((U,O)=>{const j=O.getBoundingClientRect(),te=new gn({x:O===document.documentElement?0:j.x,y:O===document.documentElement?0:j.y,width:O.clientWidth,height:O.clientHeight});return U?new gn({x:Math.max(U.left,te.left),y:Math.max(U.top,te.top),width:Math.min(U.right,te.right)-Math.max(U.left,te.left),height:Math.min(U.bottom,te.bottom)-Math.max(U.top,te.top)}):te},void 0);E.x+=w,E.y+=w,E.width-=w*2,E.height-=w*2;let b={anchor:s.value,origin:o.value};function L(U){const O=new gn(g),j=zl(U.anchor,h),te=zl(U.origin,O);let{x:he,y:Z}=Yb(j,te);switch(U.anchor.side){case"top":Z-=u.value[0];break;case"bottom":Z+=u.value[0];break;case"left":he-=u.value[0];break;case"right":he+=u.value[0];break}switch(U.anchor.align){case"top":Z-=u.value[1];break;case"bottom":Z+=u.value[1];break;case"left":he-=u.value[1];break;case"right":he+=u.value[1];break}return O.x+=he,O.y+=Z,O.width=Math.min(O.width,c.value),O.height=Math.min(O.height,l.value),{overflows:dl(O,E),x:he,y:Z}}let H=0,Y=0;const J={x:0,y:0},x={x:!1,y:!1};let k=-1;for(;!(k++>10);){const{x:U,y:O,overflows:j}=L(b);H+=U,Y+=O,g.x+=U,g.y+=O;{const te=fl(b.anchor),he=j.x.before||j.x.after,Z=j.y.before||j.y.after;let ie=!1;if(["x","y"].forEach(X=>{if(X==="x"&&he&&!x.x||X==="y"&&Z&&!x.y){const se={anchor:{...b.anchor},origin:{...b.origin}},Ee=X==="x"?te==="y"?Ys:qs:te==="y"?qs:Ys;se.anchor=Ee(se.anchor),se.origin=Ee(se.origin);const{overflows:Oe}=L(se);(Oe[X].before<=j[X].before&&Oe[X].after<=j[X].after||Oe[X].before+Oe[X].after<(j[X].before+j[X].after)/2)&&(b=se,ie=x[X]=!0)}}),ie)continue}j.x.before&&(H+=j.x.before,g.x+=j.x.before),j.x.after&&(H-=j.x.after,g.x-=j.x.after),j.y.before&&(Y+=j.y.before,g.y+=j.y.before),j.y.after&&(Y-=j.y.after,g.y-=j.y.after);{const te=dl(g,E);J.x=E.width-te.x.before-te.x.after,J.y=E.height-te.y.before-te.y.after,H+=te.x.before,g.x+=te.x.before,Y+=te.y.before,g.y+=te.y.before}break}const B=fl(b.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${b.anchor.side} ${b.anchor.align}`,transformOrigin:`${b.origin.side} ${b.origin.align}`,top:ce(Zs(Y)),left:e.isRtl.value?void 0:ce(Zs(H)),right:e.isRtl.value?ce(Zs(-H)):void 0,minWidth:ce(B==="y"?Math.min(i.value,h.width):i.value),maxWidth:ce(Wl(Ao(J.x,i.value===1/0?0:i.value,c.value))),maxHeight:ce(Wl(Ao(J.y,a.value===1/0?0:a.value,l.value)))}),{available:J,contentBox:g}}return pe(()=>[s.value,o.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>m()),ft(()=>{const h=m();if(!h)return;const{available:g,contentBox:S}=h;S.height>g.y&&requestAnimationFrame(()=>{m(),requestAnimationFrame(()=>{m()})})}),{updateLocation:m}}function Zs(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Wl(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let Mo=!0;const Qr=[];function e0(e){!Mo||Qr.length?(Qr.push(e),$o()):(Mo=!1,e(),$o())}let Kl=-1;function $o(){cancelAnimationFrame(Kl),Kl=requestAnimationFrame(()=>{const e=Qr.shift();e&&e(),Qr.length?$o():Mo=!0})}const Mr={none:null,close:r0,block:s0,reposition:o0},t0=oe({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Mr}},"VOverlay-scroll-strategies");function n0(e,t){if(!Te)return;let n;Zt(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=ir(),await ft(),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Mr[e.scrollStrategy])==null||r.call(Mr,t,e,n)}))}),We(()=>{n==null||n.stop()})}function r0(e){function t(n){e.isActive.value=!1}Wf(e.activatorEl.value??e.contentEl.value,t)}function s0(e,t){var i;const n=(i=e.root.value)==null?void 0:i.offsetParent,r=[...new Set([...Jr(e.activatorEl.value,t.contained?n:void 0),...Jr(e.contentEl.value,t.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),s=window.innerWidth-document.documentElement.offsetWidth,o=(a=>Ri(a)&&a)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((a,c)=>{a.style.setProperty("--v-body-scroll-x",ce(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",ce(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",ce(s)),a.classList.add("v-overlay-scroll-blocked")}),We(()=>{r.forEach((a,c)=>{const l=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(a.style.getPropertyValue("--v-body-scroll-y"));a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-l,a.scrollTop=-u}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function o0(e,t,n){let r=!1,s=-1,o=-1;function i(a){e0(()=>{var u,f;const c=performance.now();(f=(u=e.updateLocation).value)==null||f.call(u,a),r=(performance.now()-c)/(1e3/60)>2})}o=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{Wf(e.activatorEl.value??e.contentEl.value,a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{i(a)})})):i(a)})})}),We(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(o),cancelAnimationFrame(s)})}function Wf(e,t){const n=[document,...Jr(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),We(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Bo=Symbol.for("vuetify:v-menu"),i0=oe({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function a0(e,t){const n={},r=s=>()=>{if(!Te)return Promise.resolve(!0);const o=s==="openDelay";return n.closeDelay&&window.clearTimeout(n.closeDelay),delete n.closeDelay,n.openDelay&&window.clearTimeout(n.openDelay),delete n.openDelay,new Promise(i=>{const a=parseInt(e[s]??0,10);n[s]=window.setTimeout(()=>{t==null||t(o),i(o)},a)})};return{runCloseDelay:r("closeDelay"),runOpenDelay:r("openDelay")}}const l0=oe({activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...i0()},"VOverlay-activator");function c0(e,t){let{isActive:n,isTop:r}=t;const s=ve();let o=!1,i=!1,a=!0;const c=D(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),l=D(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:u,runCloseDelay:f}=a0(e,b=>{b===(e.openOnHover&&o||c.value&&i)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==b&&(a=!0),n.value=b)}),d={onClick:b=>{b.stopPropagation(),s.value=b.currentTarget||b.target,n.value=!n.value},onMouseenter:b=>{var L;(L=b.sourceCapabilities)!=null&&L.firesTouchEvents||(o=!0,s.value=b.currentTarget||b.target,u())},onMouseleave:b=>{o=!1,f()},onFocus:b=>{Wv&&!b.target.matches(":focus-visible")||(i=!0,b.stopPropagation(),s.value=b.currentTarget||b.target,u())},onBlur:b=>{i=!1,b.stopPropagation(),f()}},m=D(()=>{const b={};return l.value&&(b.onClick=d.onClick),e.openOnHover&&(b.onMouseenter=d.onMouseenter,b.onMouseleave=d.onMouseleave),c.value&&(b.onFocus=d.onFocus,b.onBlur=d.onBlur),b}),h=D(()=>{const b={};if(e.openOnHover&&(b.onMouseenter=()=>{o=!0,u()},b.onMouseleave=()=>{o=!1,f()}),c.value&&(b.onFocusin=()=>{i=!0,u()},b.onFocusout=()=>{i=!1,f()}),e.closeOnContentClick){const L=_e(Bo,null);b.onClick=()=>{n.value=!1,L==null||L.closeParents()}}return b}),g=D(()=>{const b={};return e.openOnHover&&(b.onMouseenter=()=>{a&&(o=!0,a=!1,u())},b.onMouseleave=()=>{o=!1,f()}),b});pe(r,b=>{b&&(e.openOnHover&&!o&&(!c.value||!i)||c.value&&!i&&(!e.openOnHover||!o))&&(n.value=!1)});const S=ve();Zt(()=>{S.value&&ft(()=>{s.value=bv(S.value)})});const w=Ze("useActivator");let E;return pe(()=>!!e.activator,b=>{b&&Te?(E=ir(),E.run(()=>{u0(e,w,{activatorEl:s,activatorEvents:m})})):E&&E.stop()},{flush:"post",immediate:!0}),We(()=>{E==null||E.stop()}),{activatorEl:s,activatorRef:S,activatorEvents:m,contentEvents:h,scrimEvents:g}}function u0(e,t,n){let{activatorEl:r,activatorEvents:s}=n;pe(()=>e.activator,(c,l)=>{if(l&&c!==l){const u=a(l);u&&i(u)}c&&ft(()=>o())},{immediate:!0}),pe(()=>e.activatorProps,()=>{o()}),We(()=>{i()});function o(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&xv(c,De(s.value,l))}function i(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&Av(c,De(s.value,l))}function a(){var u,f;let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator,l;if(c)if(c==="parent"){let d=(f=(u=t==null?void 0:t.proxy)==null?void 0:u.$el)==null?void 0:f.parentNode;for(;d.hasAttribute("data-no-activator");)d=d.parentNode;l=d}else typeof c=="string"?l=document.querySelector(c):"$el"in c?l=c.$el:l=c;return r.value=(l==null?void 0:l.nodeType)===Node.ELEMENT_NODE?l:null,r.value}}function f0(){if(!Te)return xe(!1);const{ssr:e}=Qv();if(e){const t=xe(!1);return si(()=>{t.value=!0}),t}else return xe(!0)}const d0=oe({eager:Boolean},"lazy");function h0(e,t){const n=xe(!1),r=D(()=>n.value||e.eager||t.value);pe(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function Kf(){const t=Ze("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const ql=Symbol.for("vuetify:stack"),Fn=ut([]);function m0(e,t,n){const r=Ze("useStack"),s=!n,o=_e(ql,void 0),i=ut({activeChildren:new Set});Ft(ql,i);const a=xe(+t.value);fr(e,()=>{var f;const u=(f=Fn.at(-1))==null?void 0:f[1];a.value=u?u+10:+t.value,s&&Fn.push([r.uid,a.value]),o==null||o.activeChildren.add(r.uid),We(()=>{if(s){const d=ne(Fn).findIndex(m=>m[0]===r.uid);Fn.splice(d,1)}o==null||o.activeChildren.delete(r.uid)})});const c=xe(!0);s&&Zt(()=>{var f;const u=((f=Fn.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>c.value=u)});const l=D(()=>!i.activeChildren.size);return{globalTop:Go(c),localTop:l,stackStyles:D(()=>({zIndex:a.value}))}}function p0(e){return{teleportTarget:D(()=>{const n=e.value;if(n===!0||!Te)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=r.querySelector(":scope > .v-overlay-container");return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}function g0(){return!0}function qf(e,t,n){if(!e||Yf(e,n)===!1)return!1;const r=ef(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(o=>o==null?void 0:o.contains(e.target))}function Yf(e,t){return(typeof t.value=="object"&&t.value.closeConditional||g0)(e)}function v0(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&qf(e,t,n)&&setTimeout(()=>{Yf(e,n)&&r&&r(e)},0)}function Yl(e,t){const n=ef(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const y0={mounted(e,t){const n=s=>v0(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=qf(s,e,t)};Yl(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(Yl(e,n=>{var o;if(!n||!((o=e._clickOutside)!=null&&o[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function b0(e){const{modelValue:t,color:n,...r}=e;return T(Jt,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&T("div",De({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const Jf=oe({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...l0(),...Xe(),...Ni(),...d0(),...Jb(),...t0(),...hr(),...vf()},"VOverlay"),Jl=Ie()({name:"VOverlay",directives:{ClickOutside:y0},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Jf()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const o=Rs(e,"modelValue"),i=D({get:()=>o.value,set:se=>{se&&e.disabled||(o.value=se)}}),{teleportTarget:a}=p0(D(()=>e.attach||e.contained)),{themeClasses:c}=mr(e),{rtlClasses:l,isRtl:u}=Li(),{hasContent:f,onAfterLeave:d}=h0(e,i),m=Io(D(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:h,localTop:g,stackStyles:S}=m0(i,Qo(e,"zIndex"),e._disableGlobalStack),{activatorEl:w,activatorRef:E,activatorEvents:b,contentEvents:L,scrimEvents:H}=c0(e,{isActive:i,isTop:g}),{dimensionStyles:Y}=Di(e),J=f0(),{scopeId:x}=Kf();pe(()=>e.disabled,se=>{se&&(i.value=!1)});const k=ve(),B=ve(),{contentStyles:U,updateLocation:O}=Gb(e,{isRtl:u,contentEl:B,activatorEl:w,isActive:i});n0(e,{root:k,contentEl:B,activatorEl:w,isActive:i,updateLocation:O});function j(se){s("click:outside",se),e.persistent?X():i.value=!1}function te(){return i.value&&h.value}Te&&pe(i,se=>{se?window.addEventListener("keydown",he):window.removeEventListener("keydown",he)},{immediate:!0});function he(se){var Ee,Oe;se.key==="Escape"&&h.value&&(e.persistent?X():(i.value=!1,(Ee=B.value)!=null&&Ee.contains(document.activeElement)&&((Oe=w.value)==null||Oe.focus())))}const Z=Sb();fr(()=>e.closeOnBack,()=>{Ab(Z,se=>{h.value&&i.value?(se(!1),e.persistent?X():i.value=!1):se()})});const ie=ve();pe(()=>i.value&&(e.absolute||e.contained)&&a.value==null,se=>{if(se){const Ee=Hv(k.value);Ee&&Ee!==document.scrollingElement&&(ie.value=Ee.scrollTop)}});function X(){e.noClickAnimation||B.value&&Nn(B.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Ro})}return ht(()=>{var se;return T(ke,null,[(se=n.activator)==null?void 0:se.call(n,{isActive:i.value,props:De({ref:E},b.value,e.activatorProps)}),J.value&&f.value&&T(Mh,{disabled:!a.value,to:a.value},{default:()=>[T("div",De({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":i.value,"v-overlay--contained":e.contained},c.value,l.value,e.class],style:[S.value,{top:ce(ie.value)},e.style],ref:k},x,r),[T(b0,De({color:m,modelValue:i.value&&!!e.scrim},H.value),null),T(Dn,{appear:!0,persisted:!0,transition:e.transition,target:w.value,onAfterLeave:()=>{d(),s("afterLeave")}},{default:()=>{var Ee;return[Hr(T("div",De({ref:B,class:["v-overlay__content",e.contentClass],style:[Y.value,U.value]},L.value,e.contentProps),[(Ee=n.default)==null?void 0:Ee.call(n,{isActive:i})]),[[nu,i.value],[ai("click-outside"),{handler:j,closeConditional:te,include:()=>[w.value]}]])]}})])]})])}),{activatorEl:w,animateClick:X,contentEl:B,globalTop:h,localTop:g,updateLocation:O}}}),Qs=Symbol("Forwarded refs");function eo(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function w0(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0},setup(e,t){let{slots:n}=t;const r=Rs(e,"modelValue"),{scopeId:s}=Kf(),o=Oi(),i=D(()=>e.id||`v-menu-${o}`),a=ve(),c=_e(Bo,null),l=xe(0);Ft(Bo,{register(){++l.value},unregister(){--l.value},closeParents(){setTimeout(()=>{l.value||(r.value=!1,c==null||c.closeParents())},40)}}),pe(r,h=>{h?c==null||c.register():c==null||c.unregister()});function u(){c==null||c.closeParents()}function f(h){var g,S;e.disabled||h.key==="Tab"&&(r.value=!1,(S=(g=a.value)==null?void 0:g.activatorEl)==null||S.focus())}function d(h){var S;if(e.disabled)return;const g=(S=a.value)==null?void 0:S.contentEl;g&&r.value?h.key==="ArrowDown"?(h.preventDefault(),Po(g,"next")):h.key==="ArrowUp"&&(h.preventDefault(),Po(g,"prev")):["ArrowDown","ArrowUp"].includes(h.key)&&(r.value=!0,h.preventDefault(),setTimeout(()=>setTimeout(()=>d(h))))}const m=D(()=>De({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":i.value,onKeydown:d},e.activatorProps));return ht(()=>{const[h]=Jl.filterProps(e);return T(Jl,De({ref:a,class:["v-menu",e.class],style:e.style},h,{modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,absolute:!0,activatorProps:m.value,"onClick:outside":u,onKeydown:f},s),{activator:n.activator,default:function(){for(var g=arguments.length,S=new Array(g),w=0;w{var E;return[(E=n.default)==null?void 0:E.call(n,...S)]}})}})}),w0({id:i,ΨopenChildren:l},a)}}),S0={name:"myHelper",props:{pretext:{type:Object,default:()=>{}}},data:()=>({fav:!0,menu:!1,message:!1,hints:!0})},C0={class:"pa-0 align-self-center"};function x0(e,t,n,r,s,o){return lr(),Bh("div",C0,[T(E0,{modelValue:e.menu,"onUpdate:modelValue":t[1]||(t[1]=i=>e.menu=i),"close-on-content-click":!1,"nudge-width":500,"offset-x":""},{activator:cn(({on:i,attrs:a})=>[T(pf,De(a,gh(i),{size:"large",color:"indigo",icon:"mdi-owl",onClick:t[0]||(t[0]=c=>e.menu=!e.menu)}),null,16)]),default:cn(()=>[T(Ib,{class:"whmy overflow-auto overflow-x-hidden"},{default:cn(()=>[T(Wb,{class:"ma-3"},{default:cn(()=>[T($b,null,{default:cn(()=>[di("pre",null,""+tc(n.pretext)+` +`,1)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const A0=Ky(S0,[["render",x0]]),P0=[A0];var Gf=fs({name:"Vue3Autocounter",interval:null,props:{startAmount:{type:Number,default:0},endAmount:{type:Number,default:0,required:!0},duration:{type:Number,default:3,validator(e){return e>=1}},autoinit:{type:Boolean,default:!0},prefix:{type:String,default:""},suffix:{type:String,default:""},separator:{type:String,default:","},decimalSeparator:{type:String,default:"."},decimals:{type:Number,default:0,validator(e){return e>=0}}},data(){return{timestamp:0,startTimestamp:0,currentAmount:0,currentStartAmount:0,currentDuration:0,paused:!1,remaining:0,animationFrame:0}},mounted(){this.currentAmount=this.startAmount,this.currentStartAmount=this.startAmount,this.currentDuration=this.duration*1e3,this.remaining=this.duration*1e3,this.autoinit?this.start():this.paused=!0,this.$emit("mounted")},unmounted(){this.cancelAnimation()},watch:{startAmount(){this.reset()},endAmount(){this.reset()},duration(){this.reset()}},computed:{isCountingUp(){return this.endAmount>this.startAmount},displayedAmount(){return`${this.prefix}${this.formatedAmount}${this.suffix}`},formatedAmount(){const e=/(\d+)(\d{3})/;let t=this.currentAmount.toFixed(this.decimals);t+="";let n=t.split("."),r=n[0],s=n.length>1?this.decimalSeparator+n[1]:"",o=!isNaN(parseFloat(this.separator));if(this.separator&&!o)for(;e.test(r);)r=r.replace(e,"$1"+this.separator+"$2");return r+s}},methods:{start(){this.cancelAnimation(),this.currentStartAmount=this.startAmount,this.startTimestamp=null,this.currentDuration=this.duration*1e3,this.paused=!1,this.animationFrame=window.requestAnimationFrame(this.counting)},pause(){this.paused||(this.cancelAnimation(),this.paused=!0)},resume(){this.paused&&(this.startTimestamp=null,this.currentDuration=+this.remaining,this.currentStartAmount=+this.currentAmount,this.animationFrame=window.requestAnimationFrame(this.counting),this.paused=!1)},reset(){this.paused=!1,this.startTimestamp=null,this.cancelAnimation(),this.currentAmount=this.startAmount,this.autoinit?this.start():this.paused=!0},counting(e){this.timestamp=e,this.startTimestamp||(this.startTimestamp=e);let t=e-this.startTimestamp;this.remaining=this.currentDuration-t,this.isCountingUp?(this.currentAmount=this.currentStartAmount+(this.endAmount-this.currentStartAmount)*(t/this.currentDuration),this.currentAmount=this.currentAmount>this.endAmount?this.endAmount:this.currentAmount):(this.currentAmount=this.currentStartAmount-(this.currentStartAmount-this.endAmount)*(t/this.currentDuration),this.currentAmount=this.currentAmount{this.$emit("finished")},1e3)},cancelAnimation(){this.animationFrame&&window.cancelAnimationFrame(this.animationFrame)}}});function O0(e,t,n,r,s,o){return lr(),ms("span",null,tc(e.displayedAmount),1)}Gf.render=O0;var R0=(()=>{const e=Gf;return e.install=t=>{t.component("Vue3Autocounter",e)},e})();const T0=R0,Ts=km(uv);P0.forEach(e=>{Ts.component(e.name,e)});Ts.component("vue3-autocounter",T0);Wy(Ts);Ts.mount("#app");export{I0 as $,Ci as A,Tu as B,lr as C,ms as D,cn as E,T as F,Hh as G,De as H,Jy as I,cb as J,Wb as K,$b as L,qy as M,Hr as N,nu as O,gb as P,V0 as Q,Ib as R,di as S,H0 as T,q0 as U,pf as V,Va as W,mh as X,Bh as Y,ke as Z,Ky as _,ut as a,rs as a$,Gt as a0,Xe as a1,Mi as a2,hf as a3,xn as a4,hr as a5,Ie as a6,ow as a7,mr as a8,Rs as a9,z0 as aA,Y0 as aB,cv as aC,iw as aD,ss as aE,W0 as aF,Cs as aG,Ni as aH,Cf as aI,_b as aJ,Di as aK,xf as aL,Eb as aM,fs as aN,Nt as aO,Mh as aP,A0 as aQ,lh as aR,U0 as aS,F0 as aT,L0 as aU,yb as aV,Z0 as aW,bb as aX,K0 as aY,j0 as aZ,D0 as a_,Ao as aa,Uu as ab,ht as ac,tc as ad,M0 as ae,pn as af,Li as ag,ub as ah,db as ai,$i as aj,Io as ak,Qo as al,fb as am,hb as an,Bi as ao,Fi as ap,bf as aq,Xr as ar,fr as as,Zt as at,tw as au,Qv as av,Sb as aw,Kf as ax,cl as ay,Jt as az,ce as b,ph as b0,N0 as b1,$0 as b2,k0 as b3,$e as b4,wv as b5,df as b6,Nn as b7,Ro as b8,Te as b9,ne as bA,dr as bB,Dn as bC,nw as bD,xb as bE,Cb as bF,sw as bG,J0 as bH,zu as bI,Po as bJ,mf as bK,nb as bL,X0 as bM,d0 as bN,h0 as bO,Go as bP,B0 as bQ,Qt as bR,vb as bS,Ju as bT,Ku as bU,bv as bV,mb as bW,rt as bX,Sv as ba,wf as bb,Jf as bc,Jl as bd,w0 as be,Q0 as bf,ew as bg,rw as bh,Yy as bi,Pi as bj,Ef as bk,Sf as bl,_f as bm,G0 as bn,Hv as bo,We as bp,yv as bq,vf as br,qb as bs,E0 as bt,Dl as bu,Fb as bv,ai as bw,Wv as bx,tb as by,It as bz,D as c,Ze as d,Ft as e,Ks as f,Im as g,Oi as h,_e as i,ih as j,oh as k,oi as l,cu as m,Ru as n,si as o,oe as p,mi as q,ve as r,xe as s,Fc as t,me as u,ze as v,pe as w,Tt as x,vn as y,ft as z}; diff --git a/src/front/dist/assets/load-round-52ac2a07.js b/src/front/dist/assets/load-round-52ac2a07.js deleted file mode 100644 index 0df23c53c..000000000 --- a/src/front/dist/assets/load-round-52ac2a07.js +++ /dev/null @@ -1 +0,0 @@ -import{p as ne,bf as te,a6 as oe,a7 as ie,a9 as se,c as g,bg as N,r as f,w as ue,ac as re,aW as ce,F as l,H as R,Z as S,be as de,z as fe,bh as ve,_ as me,aG as O,C as pe,D as ge,E as o,K as k,L as r,V as F,af as z}from"./index-09dc9553.js";import{m as ye,a as ke,u as xe,V as j,f as Ve,b as Ce,c as be}from"./VInput-2f5042f3.js";import{V as _e}from"./VChip-ac1d8dc8.js";const we=ne({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},multiple:Boolean,showSize:{type:[Boolean,Number],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(e)},...ye({prependIcon:"$file"}),modelValue:{type:Array,default:()=>[],validator:e=>te(e).every(t=>t!=null&&typeof t=="object")},...ke({clearable:!0})},"VFileInput"),G=oe()({name:"VFileInput",inheritAttrs:!1,props:we(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:x,emit:i,slots:s}=t;const{t:V}=ie(),n=se(e,"modelValue"),{isFocused:y,focus:w,blur:c}=xe(e),m=g(()=>typeof e.showSize!="boolean"?e.showSize:void 0),d=g(()=>(n.value??[]).reduce((a,u)=>{let{size:C=0}=u;return a+C},0)),A=g(()=>N(d.value,m.value)),I=g(()=>(n.value??[]).map(a=>{const{name:u="",size:C=0}=a;return e.showSize?`${u} (${N(C,m.value)})`:u})),H=g(()=>{var u;const a=((u=n.value)==null?void 0:u.length)??0;return e.showSize?V(e.counterSizeString,a,A.value):V(e.counterString,a)}),B=f(),$=f(),p=f(),K=g(()=>y.value||e.active),D=g(()=>["plain","underlined"].includes(e.variant));function P(){var a;p.value!==document.activeElement&&((a=p.value)==null||a.focus()),y.value||w()}function T(a){E(a)}function W(a){i("mousedown:control",a)}function E(a){var u;(u=p.value)==null||u.click(),i("click:control",a)}function Z(a){a.stopPropagation(),P(),fe(()=>{n.value=[],ve(e["onClick:clear"],a)})}return ue(n,a=>{(!Array.isArray(a)||!a.length)&&p.value&&(p.value.value="")}),re(()=>{const a=!!(s.counter||e.counter),u=!!(a||s.details),[C,q]=ce(x),[{modelValue:Ie,...J}]=j.filterProps(e),[Q]=Ve(e);return l(j,R({ref:B,modelValue:n.value,"onUpdate:modelValue":b=>n.value=b,class:["v-file-input",{"v-text-field--plain-underlined":D.value},e.class],style:e.style,"onClick:prepend":T},C,J,{centerAffix:!D.value,focused:y.value}),{...s,default:b=>{let{id:h,isDisabled:_,isDirty:L,isReadonly:M,isValid:X}=b;return l(Ce,R({ref:$,"prepend-icon":e.prependIcon,onMousedown:W,onClick:E,"onClick:clear":Z,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},Q,{id:h.value,active:K.value||L.value,dirty:L.value,disabled:_.value,focused:y.value,error:X.value===!1}),{...s,default:Y=>{var U;let{props:{class:ee,...le}}=Y;return l(S,null,[l("input",R({ref:p,type:"file",readonly:M.value,disabled:_.value,multiple:e.multiple,name:e.name,onClick:v=>{v.stopPropagation(),M.value&&v.preventDefault(),P()},onChange:v=>{if(!v.target)return;const ae=v.target;n.value=[...ae.files??[]]},onFocus:P,onBlur:c},le,q),null),l("div",{class:ee},[!!((U=n.value)!=null&&U.length)&&(s.selection?s.selection({fileNames:I.value,totalBytes:d.value,totalBytesReadable:A.value}):e.chips?I.value.map(v=>l(_e,{key:v,size:"small",color:e.color},{default:()=>[v]})):I.value.join(", "))])])}})},details:u?b=>{var h,_;return l(S,null,[(h=s.details)==null?void 0:h.call(s,b),a&&l(S,null,[l("span",null,null),l(be,{active:!!((_=n.value)!=null&&_.length),value:H.value},s.counter)])])}:void 0})}),de({},B,$,p)}}),he={setup(){const e=f(""),t=f({}),x=f({}),i=f(""),s=f(!1),V=c=>{z.get(`api/general_vacation/dailyroundup/?excel=${c}`).then(m=>{let d=document.createElement("a");d.href=O+m.data.path,d.click(),d.remove()})},n=c=>{console.log(c,"sdata");const m=new FormData;m.append("dailyfiles",e.value[0]),z.post(`api/general_vacation/dailyroundup/?excel=${c}`,m).then(d=>{x.value=d.data,console.log(d.data,"----------------")}),w.value=!0,e.value="",s.value=!0},y=()=>{z.get("api/general_vacation/dailyload/?id=6").then(c=>{console.log(c.data),i.value=c.data})},w=f(!1);return{visiting:t,excelOp:V,baseURL:O,dailyfiles:e,onPickFile:n,info:x,detailRound:y,t_dailyRound:i,showInfo:w,alert:s}}};function Fe(e,t,x,i,s,V){return pe(),ge(k,null,{default:o(()=>[l(r,{class:"flex-column d-flex"},{default:o(()=>[l(k,{class:"flex-grow-0 mhight"},{default:o(()=>[l(r,{class:"flex-column d-flex"},{default:o(()=>[l(k,{class:"flex-grow-0 align-self-end"},{default:o(()=>[l(r,null,{default:o(()=>[l(F,{class:"pt-2",icon:"mdi-file-excel",color:"green-darken-3",onClick:t[0]||(t[0]=n=>i.excelOp("roundfilse"))})]),_:1})]),_:1}),l(k,null,{default:o(()=>[l(r,null,{default:o(()=>[l(G,{accept:".xlsx",modelValue:i.dailyfiles,"onUpdate:modelValue":t[1]||(t[1]=n=>i.dailyfiles=n),variant:"underlined",density:"compact",label:"Выберите файл","hide-details":"",class:"mr-2"},null,8,["modelValue"])]),_:1}),l(r,{class:"flex-grow-0 align-self-center mb-2"},{default:o(()=>[l(F,{icon:"mdi-download",color:"blue-grey-darken-2",onClick:t[2]||(t[2]=n=>i.onPickFile("roundfilse"))})]),_:1})]),_:1})]),_:1}),l(r,{class:"flex-column d-flex"},{default:o(()=>[l(k,{class:"flex-grow-0 align-self-end"},{default:o(()=>[l(r,null,{default:o(()=>[l(F,{class:"pt-2",icon:"mdi-file-excel",color:"green-darken-3",onClick:t[3]||(t[3]=n=>i.excelOp("vacationsExcel"))})]),_:1})]),_:1}),l(k,null,{default:o(()=>[l(r,null,{default:o(()=>[l(G,{accept:".xlsx",modelValue:i.dailyfiles,"onUpdate:modelValue":t[4]||(t[4]=n=>i.dailyfiles=n),variant:"underlined",density:"compact",label:"Выберите файл","hide-details":"",class:"mr-2"},null,8,["modelValue"])]),_:1}),l(r,{class:"flex-grow-0 align-self-center mb-2"},{default:o(()=>[l(F,{icon:"mdi-download",color:"blue-grey-darken-2",onClick:t[5]||(t[5]=n=>i.onPickFile("vacationsExcel"))})]),_:1})]),_:1})]),_:1}),l(r),l(r),l(r),l(r)]),_:1})]),_:1})]),_:1})}const ze=me(he,[["render",Fe]]);export{ze as L,G as V}; diff --git a/src/front/dist/assets/load-round-bc7e7ecc.js b/src/front/dist/assets/load-round-bc7e7ecc.js new file mode 100644 index 000000000..f90045851 --- /dev/null +++ b/src/front/dist/assets/load-round-bc7e7ecc.js @@ -0,0 +1 @@ +import{p as te,bf as ne,a6 as oe,a7 as se,a9 as ue,c as g,bg as E,r as f,w as ie,ac as ce,aW as re,F as l,H as R,Z as P,be as de,z as fe,bh as ve,_ as pe,aG as U,C as me,D as ge,E as u,K as w,L as c,R as ye,I as Ve,G as O,bi as ke,V as T,af as S}from"./index-cf33b3b8.js";import{m as Ce,a as xe,u as he,V as j,f as _e,b as be,c as we}from"./VInput-6b41ac51.js";import{V as Ie}from"./VChip-1d3621e6.js";const Fe=te({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},multiple:Boolean,showSize:{type:[Boolean,Number],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(e)},...Ce({prependIcon:"$file"}),modelValue:{type:Array,default:()=>[],validator:e=>ne(e).every(o=>o!=null&&typeof o=="object")},...xe({clearable:!0})},"VFileInput"),Re=oe()({name:"VFileInput",inheritAttrs:!1,props:Fe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:V,emit:i,slots:n}=o;const{t:k}=se(),t=ue(e,"modelValue"),{isFocused:y,focus:_,blur:r}=he(e),p=g(()=>typeof e.showSize!="boolean"?e.showSize:void 0),d=g(()=>(t.value??[]).reduce((a,s)=>{let{size:C=0}=s;return a+C},0)),z=g(()=>E(d.value,p.value)),I=g(()=>(t.value??[]).map(a=>{const{name:s="",size:C=0}=a;return e.showSize?`${s} (${E(C,p.value)})`:s})),G=g(()=>{var s;const a=((s=t.value)==null?void 0:s.length)??0;return e.showSize?k(e.counterSizeString,a,z.value):k(e.counterString,a)}),A=f(),B=f(),m=f(),H=g(()=>y.value||e.active),$=g(()=>["plain","underlined"].includes(e.variant));function F(){var a;m.value!==document.activeElement&&((a=m.value)==null||a.focus()),y.value||_()}function K(a){D(a)}function W(a){i("mousedown:control",a)}function D(a){var s;(s=m.value)==null||s.click(),i("click:control",a)}function Z(a){a.stopPropagation(),F(),fe(()=>{t.value=[],ve(e["onClick:clear"],a)})}return ie(t,a=>{(!Array.isArray(a)||!a.length)&&m.value&&(m.value.value="")}),ce(()=>{const a=!!(n.counter||e.counter),s=!!(a||n.details),[C,q]=re(V),[{modelValue:ze,...J}]=j.filterProps(e),[Q]=_e(e);return l(j,R({ref:A,modelValue:t.value,"onUpdate:modelValue":x=>t.value=x,class:["v-file-input",{"v-text-field--plain-underlined":$.value},e.class],style:e.style,"onClick:prepend":K},C,J,{centerAffix:!$.value,focused:y.value}),{...n,default:x=>{let{id:b,isDisabled:h,isDirty:L,isReadonly:M,isValid:X}=x;return l(be,R({ref:B,"prepend-icon":e.prependIcon,onMousedown:W,onClick:D,"onClick:clear":Z,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},Q,{id:b.value,active:H.value||L.value,dirty:L.value,disabled:h.value,focused:y.value,error:X.value===!1}),{...n,default:Y=>{var N;let{props:{class:ee,...le}}=Y;return l(P,null,[l("input",R({ref:m,type:"file",readonly:M.value,disabled:h.value,multiple:e.multiple,name:e.name,onClick:v=>{v.stopPropagation(),M.value&&v.preventDefault(),F()},onChange:v=>{if(!v.target)return;const ae=v.target;t.value=[...ae.files??[]]},onFocus:F,onBlur:r},le,q),null),l("div",{class:ee},[!!((N=t.value)!=null&&N.length)&&(n.selection?n.selection({fileNames:I.value,totalBytes:d.value,totalBytesReadable:z.value}):e.chips?I.value.map(v=>l(Ie,{key:v,size:"small",color:e.color},{default:()=>[v]})):I.value.join(", "))])])}})},details:s?x=>{var b,h;return l(P,null,[(b=n.details)==null?void 0:b.call(n,x),a&&l(P,null,[l("span",null,null),l(we,{active:!!((h=t.value)!=null&&h.length),value:G.value},n.counter)])])}:void 0})}),de({},A,B,m)}}),Pe={setup(){const e=f(""),o=f({}),V=f({}),i=f(""),n=f(!1),k=r=>{S.get(`api/general_vacation/dailyroundup/?excel=${r}`).then(p=>{let d=document.createElement("a");d.href=U+p.data.path,d.click(),d.remove()})},t=r=>{console.log(r,"sdata");const p=new FormData;p.append("dailyfiles",e.value[0]),S.post(`api/general_vacation/dailyroundup/?excel=${r}`,p).then(d=>{V.value=d.data,console.log(d.data,"----------------")}),_.value=!0,e.value="",n.value=!0},y=()=>{S.get("api/general_vacation/dailyload/?id=6").then(r=>{console.log(r.data),i.value=r.data})},_=f(!1);return{visiting:o,excelOp:k,baseURL:U,dailyfiles:e,onPickFile:t,info:V,detailRound:y,t_dailyRound:i,showInfo:_,alert:n}}};function Se(e,o,V,i,n,k){return me(),ge(w,null,{default:u(()=>[l(c,{class:"flex-column d-flex"},{default:u(()=>[l(w,{class:"flex-grow-0 mhight"},{default:u(()=>[l(c,{class:"flex-column d-flex"},{default:u(()=>[l(ye,{class:"ml-2 mt-2",width:"400"},{default:u(()=>[l(Ve,{class:"text-wrap pb-3"},{default:u(()=>[O(" Ежедневная статистика по сотрудникам ")]),_:1}),l(w,{class:"flex-grow-0 align-self-end"},{default:u(()=>[l(c,{class:"d-flex"},{default:u(()=>[l(ke,{class:"mt-2 align-self-end"},{default:u(()=>[O("Файл ежедневной статистики")]),_:1}),l(T,{class:"pt-2 pl-2",icon:"mdi-file-excel",color:"green-darken-3",onClick:o[0]||(o[0]=t=>i.excelOp("excround"))})]),_:1})]),_:1}),l(w,null,{default:u(()=>[l(c,null,{default:u(()=>[l(Re,{accept:".xlsx",modelValue:i.dailyfiles,"onUpdate:modelValue":o[1]||(o[1]=t=>i.dailyfiles=t),variant:"underlined",density:"compact",label:"Выберите файл","hide-details":"",class:"mr-2 pb-2"},null,8,["modelValue"])]),_:1}),l(c,{class:"flex-grow-0 align-self-center mb-2"},{default:u(()=>[l(T,{icon:"mdi-download",color:"blue-grey-darken-2",onClick:o[2]||(o[2]=t=>i.onPickFile("roundfilse"))})]),_:1})]),_:1})]),_:1})]),_:1}),l(c,{class:"flex-column d-flex"}),l(c),l(c),l(c),l(c)]),_:1})]),_:1})]),_:1})}const De=pe(Pe,[["render",Se]]);export{De as L,Re as V}; diff --git a/src/front/dist/assets/o_OKiB-c6876d95.js b/src/front/dist/assets/o_OKiB-c6876d95.js new file mode 100644 index 000000000..bb8cbb8ab --- /dev/null +++ b/src/front/dist/assets/o_OKiB-c6876d95.js @@ -0,0 +1 @@ +import{L as t}from"./load-round-bc7e7ecc.js";import{_ as e,aB as n,X as r,C as s,D as a}from"./index-cf33b3b8.js";import"./VInput-6b41ac51.js";import"./group-2cdf27ee.js";import"./VChip-1d3621e6.js";const p={components:{LoadRound:t},setup(){n()}};function c(_,m,d,i,u,f){const o=r("load-round");return s(),a(o)}const C=e(p,[["render",c]]);export{C as default}; diff --git a/src/front/dist/assets/o_OKiB-ed00481d.js b/src/front/dist/assets/o_OKiB-ed00481d.js deleted file mode 100644 index 844cedc21..000000000 --- a/src/front/dist/assets/o_OKiB-ed00481d.js +++ /dev/null @@ -1 +0,0 @@ -import{L as t}from"./load-round-52ac2a07.js";import{_ as e,aB as n,X as r,C as s,D as a}from"./index-09dc9553.js";import"./VInput-2f5042f3.js";import"./group-c7387df2.js";import"./VChip-ac1d8dc8.js";const p={components:{LoadRound:t},setup(){n()}};function c(_,m,d,i,u,f){const o=r("load-round");return s(),a(o)}const C=e(p,[["render",c]]);export{C as default}; diff --git a/src/front/dist/assets/webfontloader-bbaf57f6.js b/src/front/dist/assets/webfontloader-23beb774.js similarity index 99% rename from src/front/dist/assets/webfontloader-bbaf57f6.js rename to src/front/dist/assets/webfontloader-23beb774.js index 404ade6ba..222ad941e 100644 --- a/src/front/dist/assets/webfontloader-bbaf57f6.js +++ b/src/front/dist/assets/webfontloader-23beb774.js @@ -1 +1 @@ -import{g as Ft}from"./index-09dc9553.js";function Pt(w,S){for(var _=0;_h[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;fh[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f