UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

1 lines 464 kB
import{$ as hl,$a as xi,$b as Gr,$d as Yl,$f as ec,Aa as ml,Ab as Ur,Ac as ot,Ad as Rl,B as ki,Ba as cn,Bb as Sl,Bc as Gn,C as al,Ca as Os,Cb as S,Cc as Kn,Cf as ql,D as ll,Da as pl,Dc as Tl,E as ye,Ea as fl,Eb as c,Ec as Xn,F as Fr,Fa as Wr,Fb as Li,Gb as ni,Gd as Ol,Hb as Dl,Hc as Ii,Ib as Ri,Ic as hn,Id as Il,J as cl,Ja as dn,Jb as si,Ka as gl,Kb as ri,L as Un,Lb as zr,Ma as d,Mb as $t,N as rn,Na as Ti,Nb as V,Nf as Jl,Oa as Is,Ob as Je,Oe as Bl,Pa as qe,Pb as L,Qa as Fe,Qb as Be,Ra as y,Rb as Ge,S as dl,Sa as Ft,Se as $l,Sf as Ql,Tc as xl,Ua as vl,Ud as Al,V as ul,Wb as Ml,We as Wl,Wf as Zr,Xa as re,Xc as El,Ya as xe,Za as je,Zb as Ee,_ as on,_c as Zn,a as tt,aa as jr,ab as k,ba as ii,bb as H,bd as Xr,c as Ci,ca as T,cb as we,da as Te,db as As,dc as ce,df as Ul,dg as tc,ec as de,ef as zl,f as z,fa as Nt,g as ee,ga as J,h as tl,ha as E,hb as Mt,he as Pl,hf as Gl,i as il,ia as _l,ib as le,ie as Hl,j as Vr,jb as Ys,ka as an,kb as Ps,kc as Hs,l as nl,lc as Kr,m as sl,ma as f,mb as yl,mc as Oi,n as rl,na as g,nb as bl,o as ol,oa as be,ob as wl,p as Es,pa as fe,pb as u,pc as Cl,pe as Nl,qa as Rs,qb as _,qc as un,qf as Kl,rb as m,re as Vl,sa as Br,sb as ae,ta as se,tb as Ot,tc as Ns,ub as It,ue as Fl,v as Dt,va as Vt,vb as Ei,vc as kl,ve as jl,vf as Xl,w as Ls,wa as ln,wb as jt,xb as Bt,xc as zn,xf as Zl,ya as te,za as $r,zb as P,zc as Wt,zd as Ll}from"./chunk-RSNLYAN6.js";import{a as K,b as Ve,d as nn,f as sn,g as xs,h as Hr,i as Mi,j as Nr}from"./chunk-RTRJ3KFH.js";var ja=nn((Va,Fa)=>{"use strict";(function(e,t){typeof Va=="object"&&typeof Fa<"u"?Fa.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Va,function(){"use strict";var e=1e3,t=6e4,n=36e5,i="millisecond",s="second",r="minute",o="hour",a="day",l="week",h="month",p="quarter",b="year",x="date",v="Invalid Date",Y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,j=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var C=["th","st","nd","rd"],w=I%100;return"["+I+(C[(w-20)%10]||C[w]||C[0])+"]"}},B=function(I,C,w){var A=String(I);return!A||A.length>=C?I:""+Array(C+1-A.length).join(w)+I},ke={s:B,z:function(I){var C=-I.utcOffset(),w=Math.abs(C),A=Math.floor(w/60),M=w%60;return(C<=0?"+":"-")+B(A,2,"0")+":"+B(M,2,"0")},m:function I(C,w){if(C.date()<w.date())return-I(w,C);var A=12*(w.year()-C.year())+(w.month()-C.month()),M=C.clone().add(A,h),W=w-M<0,U=C.clone().add(A+(W?-1:1),h);return+(-(A+(w-M)/(W?M-U:U-M))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:h,y:b,w:l,d:a,D:x,h:o,m:r,s,ms:i,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},De="en",$={};$[De]=G;var R="$isDayjsObject",D=function(I){return I instanceof Ae||!(!I||!I[R])},ie=function I(C,w,A){var M;if(!C)return De;if(typeof C=="string"){var W=C.toLowerCase();$[W]&&(M=W),w&&($[W]=w,M=W);var U=C.split("-");if(!M&&U.length>1)return I(U[0])}else{var oe=C.name;$[oe]=C,M=oe}return!A&&M&&(De=M),M||!A&&De},X=function(I,C){if(D(I))return I.clone();var w=typeof C=="object"?C:{};return w.date=I,w.args=arguments,new Ae(w)},N=ke;N.l=ie,N.i=D,N.w=function(I,C){return X(I,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var Ae=(function(){function I(w){this.$L=ie(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[R]=!0}var C=I.prototype;return C.parse=function(w){this.$d=(function(A){var M=A.date,W=A.utc;if(M===null)return new Date(NaN);if(N.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var U=M.match(Y);if(U){var oe=U[2]-1||0,Me=(U[7]||"0").substring(0,3);return W?new Date(Date.UTC(U[1],oe,U[3]||1,U[4]||0,U[5]||0,U[6]||0,Me)):new Date(U[1],oe,U[3]||1,U[4]||0,U[5]||0,U[6]||0,Me)}}return new Date(M)})(w),this.init()},C.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},C.$utils=function(){return N},C.isValid=function(){return this.$d.toString()!==v},C.isSame=function(w,A){var M=X(w);return this.startOf(A)<=M&&M<=this.endOf(A)},C.isAfter=function(w,A){return X(w)<this.startOf(A)},C.isBefore=function(w,A){return this.endOf(A)<X(w)},C.$g=function(w,A,M){return N.u(w)?this[A]:this.set(M,w)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(w,A){var M=this,W=!!N.u(A)||A,U=N.p(w),oe=function(Di,et){var ti=N.w(M.$u?Date.UTC(M.$y,et,Di):new Date(M.$y,et,Di),M);return W?ti:ti.endOf(a)},Me=function(Di,et){return N.w(M.toDate()[Di].apply(M.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(et)),M)},Ne=this.$W,ze=this.$M,dt=this.$D,tn="set"+(this.$u?"UTC":"");switch(U){case b:return W?oe(1,0):oe(31,11);case h:return W?oe(1,ze):oe(0,ze+1);case l:var Si=this.$locale().weekStart||0,$n=(Ne<Si?Ne+7:Ne)-Si;return oe(W?dt-$n:dt+(6-$n),ze);case a:case x:return Me(tn+"Hours",0);case o:return Me(tn+"Minutes",1);case r:return Me(tn+"Seconds",2);case s:return Me(tn+"Milliseconds",3);default:return this.clone()}},C.endOf=function(w){return this.startOf(w,!1)},C.$set=function(w,A){var M,W=N.p(w),U="set"+(this.$u?"UTC":""),oe=(M={},M[a]=U+"Date",M[x]=U+"Date",M[h]=U+"Month",M[b]=U+"FullYear",M[o]=U+"Hours",M[r]=U+"Minutes",M[s]=U+"Seconds",M[i]=U+"Milliseconds",M)[W],Me=W===a?this.$D+(A-this.$W):A;if(W===h||W===b){var Ne=this.clone().set(x,1);Ne.$d[oe](Me),Ne.init(),this.$d=Ne.set(x,Math.min(this.$D,Ne.daysInMonth())).$d}else oe&&this.$d[oe](Me);return this.init(),this},C.set=function(w,A){return this.clone().$set(w,A)},C.get=function(w){return this[N.p(w)]()},C.add=function(w,A){var M,W=this;w=Number(w);var U=N.p(A),oe=function(ze){var dt=X(W);return N.w(dt.date(dt.date()+Math.round(ze*w)),W)};if(U===h)return this.set(h,this.$M+w);if(U===b)return this.set(b,this.$y+w);if(U===a)return oe(1);if(U===l)return oe(7);var Me=(M={},M[r]=t,M[o]=n,M[s]=e,M)[U]||1,Ne=this.$d.getTime()+w*Me;return N.w(Ne,this)},C.subtract=function(w,A){return this.add(-1*w,A)},C.format=function(w){var A=this,M=this.$locale();if(!this.isValid())return M.invalidDate||v;var W=w||"YYYY-MM-DDTHH:mm:ssZ",U=N.z(this),oe=this.$H,Me=this.$m,Ne=this.$M,ze=M.weekdays,dt=M.months,tn=M.meridiem,Si=function(et,ti,Wn,Ts){return et&&(et[ti]||et(A,W))||Wn[ti].slice(0,Ts)},$n=function(et){return N.s(oe%12||12,et,"0")},Di=tn||function(et,ti,Wn){var Ts=et<12?"AM":"PM";return Wn?Ts.toLowerCase():Ts};return W.replace(j,function(et,ti){return ti||(function(Wn){switch(Wn){case"YY":return String(A.$y).slice(-2);case"YYYY":return N.s(A.$y,4,"0");case"M":return Ne+1;case"MM":return N.s(Ne+1,2,"0");case"MMM":return Si(M.monthsShort,Ne,dt,3);case"MMMM":return Si(dt,Ne);case"D":return A.$D;case"DD":return N.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return Si(M.weekdaysMin,A.$W,ze,2);case"ddd":return Si(M.weekdaysShort,A.$W,ze,3);case"dddd":return ze[A.$W];case"H":return String(oe);case"HH":return N.s(oe,2,"0");case"h":return $n(1);case"hh":return $n(2);case"a":return Di(oe,Me,!0);case"A":return Di(oe,Me,!1);case"m":return String(Me);case"mm":return N.s(Me,2,"0");case"s":return String(A.$s);case"ss":return N.s(A.$s,2,"0");case"SSS":return N.s(A.$ms,3,"0");case"Z":return U}return null})(et)||U.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(w,A,M){var W,U=this,oe=N.p(A),Me=X(w),Ne=(Me.utcOffset()-this.utcOffset())*t,ze=this-Me,dt=function(){return N.m(U,Me)};switch(oe){case b:W=dt()/12;break;case h:W=dt();break;case p:W=dt()/3;break;case l:W=(ze-Ne)/6048e5;break;case a:W=(ze-Ne)/864e5;break;case o:W=ze/n;break;case r:W=ze/t;break;case s:W=ze/e;break;default:W=ze}return M?W:N.a(W)},C.daysInMonth=function(){return this.endOf(h).$D},C.$locale=function(){return $[this.$L]},C.locale=function(w,A){if(!w)return this.$L;var M=this.clone(),W=ie(w,A,!0);return W&&(M.$L=W),M},C.clone=function(){return N.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},I})(),Ue=Ae.prototype;return X.prototype=Ue,[["$ms",i],["$s",s],["$m",r],["$H",o],["$W",a],["$M",h],["$y",b],["$D",x]].forEach(function(I){Ue[I[1]]=function(C){return this.$g(C,I[0],I[1])}}),X.extend=function(I,C){return I.$i||(I(C,Ae,X),I.$i=!0),X},X.locale=ie,X.isDayjs=D,X.unix=function(I){return X(1e3*I)},X.en=$[De],X.Ls=$,X.p={},X})});var sh=nn((Ba,$a)=>{"use strict";(function(e,t){typeof Ba=="object"&&typeof $a<"u"?$a.exports=t(ja()):typeof define=="function"&&define.amd?define(["dayjs"],t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_locale_fr=t(e.dayjs)})(Ba,function(e){"use strict";function t(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var n=t(e),i={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return n.default.locale(i,null,!0),i})});var uh=nn((Ua,za)=>{"use strict";(function(e,t){typeof Ua=="object"&&typeof za<"u"?za.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=t()})(Ua,function(){"use strict";var e,t,n=1e3,i=6e4,s=36e5,r=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,l=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,p={years:a,months:l,days:r,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},b=function($){return $ instanceof ke},x=function($,R,D){return new ke($,D,R.$l)},v=function($){return t.p($)+"s"},Y=function($){return $<0},j=function($){return Y($)?Math.ceil($):Math.floor($)},G=function($){return Math.abs($)},B=function($,R){return $?Y($)?{negative:!0,format:""+G($)+R}:{negative:!1,format:""+$+R}:{negative:!1,format:""}},ke=(function(){function $(D,ie,X){var N=this;if(this.$d={},this.$l=X,D===void 0&&(this.$ms=0,this.parseFromMilliseconds()),ie)return x(D*p[v(ie)],this);if(typeof D=="number")return this.$ms=D,this.parseFromMilliseconds(),this;if(typeof D=="object")return Object.keys(D).forEach(function(I){N.$d[v(I)]=D[I]}),this.calMilliseconds(),this;if(typeof D=="string"){var Ae=D.match(h);if(Ae){var Ue=Ae.slice(2).map(function(I){return I!=null?Number(I):0});return this.$d.years=Ue[0],this.$d.months=Ue[1],this.$d.weeks=Ue[2],this.$d.days=Ue[3],this.$d.hours=Ue[4],this.$d.minutes=Ue[5],this.$d.seconds=Ue[6],this.calMilliseconds(),this}}return this}var R=$.prototype;return R.calMilliseconds=function(){var D=this;this.$ms=Object.keys(this.$d).reduce(function(ie,X){return ie+(D.$d[X]||0)*p[X]},0)},R.parseFromMilliseconds=function(){var D=this.$ms;this.$d.years=j(D/a),D%=a,this.$d.months=j(D/l),D%=l,this.$d.days=j(D/r),D%=r,this.$d.hours=j(D/s),D%=s,this.$d.minutes=j(D/i),D%=i,this.$d.seconds=j(D/n),D%=n,this.$d.milliseconds=D},R.toISOString=function(){var D=B(this.$d.years,"Y"),ie=B(this.$d.months,"M"),X=+this.$d.days||0;this.$d.weeks&&(X+=7*this.$d.weeks);var N=B(X,"D"),Ae=B(this.$d.hours,"H"),Ue=B(this.$d.minutes,"M"),I=this.$d.seconds||0;this.$d.milliseconds&&(I+=this.$d.milliseconds/1e3,I=Math.round(1e3*I)/1e3);var C=B(I,"S"),w=D.negative||ie.negative||N.negative||Ae.negative||Ue.negative||C.negative,A=Ae.format||Ue.format||C.format?"T":"",M=(w?"-":"")+"P"+D.format+ie.format+N.format+A+Ae.format+Ue.format+C.format;return M==="P"||M==="-P"?"P0D":M},R.toJSON=function(){return this.toISOString()},R.format=function(D){var ie=D||"YYYY-MM-DDTHH:mm:ss",X={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return ie.replace(o,function(N,Ae){return Ae||String(X[N])})},R.as=function(D){return this.$ms/p[v(D)]},R.get=function(D){var ie=this.$ms,X=v(D);return X==="milliseconds"?ie%=1e3:ie=X==="weeks"?j(ie/p[X]):this.$d[X],ie||0},R.add=function(D,ie,X){var N;return N=ie?D*p[v(ie)]:b(D)?D.$ms:x(D,this).$ms,x(this.$ms+N*(X?-1:1),this)},R.subtract=function(D,ie){return this.add(D,ie,!0)},R.locale=function(D){var ie=this.clone();return ie.$l=D,ie},R.clone=function(){return x(this.$ms,this)},R.humanize=function(D){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!D)},R.valueOf=function(){return this.asMilliseconds()},R.milliseconds=function(){return this.get("milliseconds")},R.asMilliseconds=function(){return this.as("milliseconds")},R.seconds=function(){return this.get("seconds")},R.asSeconds=function(){return this.as("seconds")},R.minutes=function(){return this.get("minutes")},R.asMinutes=function(){return this.as("minutes")},R.hours=function(){return this.get("hours")},R.asHours=function(){return this.as("hours")},R.days=function(){return this.get("days")},R.asDays=function(){return this.as("days")},R.weeks=function(){return this.get("weeks")},R.asWeeks=function(){return this.as("weeks")},R.months=function(){return this.get("months")},R.asMonths=function(){return this.as("months")},R.years=function(){return this.get("years")},R.asYears=function(){return this.as("years")},$})(),De=function($,R,D){return $.add(R.years()*D,"y").add(R.months()*D,"M").add(R.days()*D,"d").add(R.hours()*D,"h").add(R.minutes()*D,"m").add(R.seconds()*D,"s").add(R.milliseconds()*D,"ms")};return function($,R,D){e=D,t=D().$utils(),D.duration=function(N,Ae){var Ue=D.locale();return x(N,{$l:Ue},Ae)},D.isDuration=b;var ie=R.prototype.add,X=R.prototype.subtract;R.prototype.add=function(N,Ae){return b(N)?De(this,N,1):ie.bind(this)(N,Ae)},R.prototype.subtract=function(N,Ae){return b(N)?De(this,N,-1):X.bind(this)(N,Ae)}}})});var hh=nn((Ga,Ka)=>{"use strict";(function(e,t){typeof Ga=="object"&&typeof Ka<"u"?Ka.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_localizedFormat=t()})(Ga,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,i){var s=n.prototype,r=s.format;i.en.formats=e,s.format=function(o){o===void 0&&(o="YYYY-MM-DDTHH:mm:ssZ");var a=this.$locale().formats,l=(function(h,p){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,v){var Y=v&&v.toUpperCase();return x||p[v]||e[v]||p[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,G,B){return G||B.slice(1)})})})(o,a===void 0?{}:a);return r.call(this,l)}}})});var _h=nn((Xa,Za)=>{"use strict";(function(e,t){typeof Xa=="object"&&typeof Za<"u"?Za.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_relativeTime=t()})(Xa,function(){"use strict";return function(e,t,n){e=e||{};var i=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function r(a,l,h,p){return i.fromToBase(a,l,h,p)}n.en.relativeTime=s,i.fromToBase=function(a,l,h,p,b){for(var x,v,Y,j=h.$locale().relativeTime||s,G=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],B=G.length,ke=0;ke<B;ke+=1){var De=G[ke];De.d&&(x=p?n(a).diff(h,De.d,!0):h.diff(a,De.d,!0));var $=(e.rounding||Math.round)(Math.abs(x));if(Y=x>0,$<=De.r||!De.r){$<=1&&ke>0&&(De=G[ke-1]);var R=j[De.l];b&&($=b(""+$)),v=typeof R=="string"?R.replace("%d",$):R($,l,De.l,Y);break}}if(l)return v;var D=Y?j.future:j.past;return typeof D=="function"?D(v):D.replace("%s",v)},i.to=function(a,l){return r(a,l,this,!0)},i.from=function(a,l){return r(a,l,this)};var o=function(a){return a.$u?n.utc():n()};i.toNow=function(a){return this.to(o(this),a)},i.fromNow=function(a){return this.from(o(this),a)}}})});var mh=nn((qa,Ja)=>{"use strict";(function(e,t){typeof qa=="object"&&typeof Ja<"u"?Ja.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_utc=t()})(qa,function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,s,r){var o=s.prototype;r.utc=function(v){var Y={date:v,utc:!0,args:arguments};return new s(Y)},o.utc=function(v){var Y=r(this.toDate(),{locale:this.$L,utc:!0});return v?Y.add(this.utcOffset(),e):Y},o.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),a.call(this,v)};var l=o.init;o.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else l.call(this)};var h=o.utcOffset;o.utcOffset=function(v,Y){var j=this.$utils().u;if(j(v))return this.$u?0:j(this.$offset)?h.call(this):this.$offset;if(typeof v=="string"&&(v=(function(De){De===void 0&&(De="");var $=De.match(t);if(!$)return null;var R=(""+$[0]).match(n)||["-",0,0],D=R[0],ie=60*+R[1]+ +R[2];return ie===0?0:D==="+"?ie:-ie})(v),v===null))return this;var G=Math.abs(v)<=16?60*v:v,B=this;if(Y)return B.$offset=G,B.$u=v===0,B;if(v!==0){var ke=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(B=this.local().add(G+ke,e)).$offset=G,B.$x.$localOffset=ke}else B=this.utc();return B};var p=o.format;o.format=function(v){var Y=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,Y)},o.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var b=o.toDate;o.toDate=function(v){return v==="s"&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var x=o.diff;o.diff=function(v,Y,j){if(v&&this.$u===v.$u)return x.call(this,v,Y,j);var G=this.local(),B=r(v).local();return x.call(G,B,Y,j)}}})});var qr=class{constructor(t,n){this.open=t,this.close=n||t}isManual(){return this.open==="manual"||this.close==="manual"}},xh={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function Jr(e,t=xh){let n=(e||"").trim();if(n.length===0)return[];let i=n.split(/\s+/).map(r=>r.split(":")).map(r=>{let o=t[r[0]]||r;return new qr(o[0],o[1])}),s=i.filter(r=>r.isManual());if(s.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(s.length===1&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}function nc(e,t){let n=Jr(t.triggers),i=t.target;if(n.length===1&&n[0].isManual())return Function.prototype;let s=[],r=[],o=()=>{r.forEach(a=>s.push(a())),r.length=0};return n.forEach(a=>{let l=a.open===a.close,h=l?t.toggle:t.show;if(!l&&a.close&&t.hide){let p=a.close,b=t.hide,x=()=>e.listen(i,p,b);r.push(x)}h&&s.push(e.listen(i,a.open,()=>h(o)))}),()=>{s.forEach(a=>a())}}function sc(e,t){return t.outsideClick?e.listen("document","click",n=>{t.target&&t.target.contains(n.target)||t.targets&&t.targets.some(i=>i.contains(n.target))||t.hide&&t.hide()}):Function.prototype}function rc(e,t){return t.outsideEsc?e.listen("document","keyup.esc",n=>{t.target&&t.target.contains(n.target)||t.targets&&t.targets.some(i=>i.contains(n.target))||t.hide&&t.hide()}):Function.prototype}var Le=typeof window<"u"&&window||{},Re=Le.document,$y=Le.location,Wy=Le.gc?()=>Le.gc():()=>null,Uy=Le.performance?Le.performance:null,zy=Le.Event,Gy=Le.MouseEvent,Ky=Le.KeyboardEvent,Xy=Le.EventTarget,Zy=Le.History,qy=Le.Location,Jy=Le.EventListener,oc=(function(e){return e.isBs4="bs4",e.isBs5="bs5",e})(oc||{}),Ut;function ac(){let e=Le.document.createElement("span");e.innerText="testing bs version",e.classList.add("d-none"),e.classList.add("pl-1"),Le.document.head.appendChild(e);let t=Le.getComputedStyle(e).paddingLeft;return t&&parseFloat(t)?(Le.document.head.removeChild(e),"bs4"):(Le.document.head.removeChild(e),"bs5")}function Qy(e){Ut=e}function Eh(){return Ut||(Ut=ac()),Ut==="bs4"}function Lh(){return Ut||(Ut=ac()),Ut==="bs5"}function oi(){return{isBs4:Eh(),isBs5:Lh()}}function Rh(){let e=oi(),t=Object.keys(e).find(n=>e[n]);return oc[t]}function lc(){let e="Change";return function(n,i){let s=` __${i}Value`;Object.defineProperty(n,i,{get(){return this[s]},set(r){let o=this[s];this[s]=r,o!==r&&this[i+e]&&this[i+e].emit(r)}})}}var Vs=class{static reflow(t){t.offsetHeight}static getStyles(t){let n=t.ownerDocument.defaultView;return(!n||!n.opener)&&(n=Le),n.getComputedStyle(t)}static stackOverflowConfig(){let t=Rh();return{crossorigin:"anonymous",integrity:t==="bs5"?"sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65":"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2",cdnLink:t==="bs5"?"https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css":"https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"}}},ic={},Oh=typeof console>"u"||!("warn"in console);function it(e){!Cl()||Oh||e in ic||(ic[e]=!0,console.warn(e))}function cc(e){e||(e=E(Rs));let t=new Ci(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(on(t))}function dc(e,t){let n=t?.injector??E(be),i=new tl(1),s=Oi(()=>{let r;try{r=e()}catch(o){Hs(()=>i.error(o));return}Hs(()=>i.next(r))},{injector:n,manualCleanup:!0});return n.get(Rs).onDestroy(()=>{s.destroy(),i.complete()}),i.asObservable()}var fc=(function(e){return e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.auto="auto",e.end="right",e.start="left",e["top left"]="top left",e["top right"]="top right",e["right top"]="right top",e["right bottom"]="right bottom",e["bottom right"]="bottom right",e["bottom left"]="bottom left",e["left bottom"]="left bottom",e["left top"]="left top",e["top start"]="top left",e["top end"]="top right",e["end top"]="right top",e["end bottom"]="right bottom",e["bottom end"]="bottom right",e["bottom start"]="bottom left",e["start bottom"]="start bottom",e["start top"]="left top",e})(fc||{}),qn=(function(e){return e.top="top",e.bottom="bottom",e.left="start",e.right="end",e.auto="auto",e.end="end",e.start="start",e["top left"]="top start",e["top right"]="top end",e["right top"]="end top",e["right bottom"]="end bottom",e["bottom right"]="bottom end",e["bottom left"]="bottom start",e["left bottom"]="start bottom",e["left top"]="start top",e["top start"]="top start",e["top end"]="top end",e["end top"]="end top",e["end bottom"]="end bottom",e["bottom end"]="bottom end",e["bottom start"]="bottom start",e["start bottom"]="start bottom",e["start top"]="start top",e})(qn||{});function Ai(e,t){if(e.nodeType!==1)return[];let i=e.ownerDocument.defaultView?.getComputedStyle(e,null);return t?i&&i[t]:i}function io(e){if(!e)return document.documentElement;let t=null,n=e?.offsetParent,i;for(;n===t&&e.nextElementSibling&&i!==e.nextElementSibling;)i=e.nextElementSibling,n=i.offsetParent;let s=n&&n.nodeName;return!s||s==="BODY"||s==="HTML"?i?i.ownerDocument.documentElement:document.documentElement:n&&["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Ai(n,"position")==="static"?io(n):n}function Ih(e){let{nodeName:t}=e;return t==="BODY"?!1:t==="HTML"||io(e.firstElementChild)===e}function Qr(e){return e.parentNode!==null?Qr(e.parentNode):e}function $s(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;let n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,s=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(s,0);let o=r.commonAncestorContainer;if(e!==o&&t!==o||i.contains(s))return Ih(o)?o:io(o);let a=Qr(e);return a.host?$s(a.host,t):$s(e,Qr(t).host)}function gc(e){if(!e||!e.parentElement)return document.documentElement;let t=e.parentElement;for(;t?.parentElement&&Ai(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function uc(e,t){let n=t==="x"?"Left":"Top",i=n==="Left"?"Right":"Bottom";return parseFloat(e[`border${n}Width`])+parseFloat(e[`border${i}Width`])}function hc(e,t,n){let i=t,s=n;return Math.max(i[`offset${e}`],i[`scroll${e}`],s[`client${e}`],s[`offset${e}`],s[`scroll${e}`],0)}function vc(e){let t=e.body,n=e.documentElement;return{height:hc("Height",t,n),width:hc("Width",t,n)}}function Jn(e){return Ve(K({},e),{right:(e.left||0)+e.width,bottom:(e.top||0)+e.height})}function Ah(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(Number(e))}function me(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function _c(e){let t=e.getBoundingClientRect();if(!(t&&me(t.top)&&me(t.left)&&me(t.bottom)&&me(t.right)))return t;let n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i=e.nodeName==="HTML"?vc(e.ownerDocument):void 0,s=i?.width||e.clientWidth||me(t.right)&&me(n.left)&&t.right-n.left||0,r=i?.height||e.clientHeight||me(t.bottom)&&me(n.top)&&t.bottom-n.top||0,o=e.offsetWidth-s,a=e.offsetHeight-r;if(o||a){let l=Ai(e);o-=uc(l,"x"),a-=uc(l,"y"),n.width-=o,n.height-=a}return Jn(n)}function no(e,t,n=!1){let i=t.nodeName==="HTML",s=_c(e),r=_c(t),o=Ai(t),a=parseFloat(o.borderTopWidth),l=parseFloat(o.borderLeftWidth);n&&i&&(r.top=Math.max(r.top??0,0),r.left=Math.max(r.left??0,0));let h=Jn({top:(s.top??0)-(r.top??0)-a,left:(s.left??0)-(r.left??0)-l,width:s.width,height:s.height});if(h.marginTop=0,h.marginLeft=0,i){let p=parseFloat(o.marginTop),b=parseFloat(o.marginLeft);me(h.top)&&(h.top-=a-p),me(h.bottom)&&(h.bottom-=a-p),me(h.left)&&(h.left-=l-b),me(h.right)&&(h.right-=l-b),h.marginTop=p,h.marginLeft=b}return h}function so(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function yc(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body;default:}let{overflow:t,overflowX:n,overflowY:i}=Ai(e);return/(auto|scroll|overlay)/.test(String(t)+String(i)+String(n))?e:yc(so(e))}function mc(e,t="top"){let n=t==="top"?"scrollTop":"scrollLeft",i=e.nodeName;if(i==="BODY"||i==="HTML"){let s=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||s)[n]}return e[n]}function Yh(e,t=!1){let n=e.ownerDocument.documentElement,i=no(e,n),s=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:mc(n),a=t?0:mc(n,"left"),l={top:o-Number(i?.top)+Number(i?.marginTop),left:a-Number(i?.left)+Number(i?.marginLeft),width:s,height:r};return Jn(l)}function bc(e){let t=e.nodeName;return t==="BODY"||t==="HTML"?!1:Ai(e,"position")==="fixed"?!0:bc(so(e))}function ro(e,t,n=0,i,s=!1){let r={top:0,left:0},o=s?gc(e):$s(e,t);if(i==="viewport")r=Yh(o,s);else{let a;i==="scrollParent"?(a=yc(so(t)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):i==="window"?a=e.ownerDocument.documentElement:a=i;let l=no(a,o,s);if(l&&a.nodeName==="HTML"&&!bc(o)){let{height:h,width:p}=vc(e.ownerDocument);me(r.top)&&me(l.top)&&me(l.marginTop)&&(r.top+=l.top-l.marginTop),me(r.top)&&(r.bottom=Number(h)+Number(l.top)),me(r.left)&&me(l.left)&&me(l.marginLeft)&&(r.left+=l.left-l.marginLeft),me(r.top)&&(r.right=Number(p)+Number(l.left))}else l&&(r=l)}return me(r.left)&&(r.left+=n),me(r.top)&&(r.top+=n),me(r.right)&&(r.right-=n),me(r.bottom)&&(r.bottom-=n),r}function Ph({width:e,height:t}){return e*t}function wc(e,t,n,i,s=["top","bottom","right","left"],r="viewport",o=0){if(e.indexOf("auto")===-1)return e;let a=ro(n,i,o,r),l={top:{width:a?.width??0,height:(t?.top??0)-(a?.top??0)},right:{width:(a?.right??0)-(t?.right??0),height:a?.height??0},bottom:{width:a?.width??0,height:(a?.bottom??0)-(t?.bottom??0)},left:{width:(t.left??0)-(a?.left??0),height:a?.height??0}},h=Object.keys(l).map(v=>Ve(K({position:v},l[v]),{area:Ph(l[v])})).sort((v,Y)=>Y.area-v.area),p=h.filter(({width:v,height:Y})=>v>=n.clientWidth&&Y>=n.clientHeight);p=p.filter(({position:v})=>s.some(Y=>Y===v));let b=p.length>0?p[0].position:h[0].position,x=e.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${oi().isBs5?qn[b]:b}`),b+(x?`-${x}`:"")}function Hh(e){return{width:e.offsets.target.width,height:e.offsets.target.height,left:Math.floor(e.offsets.target.left??0),top:Math.round(e.offsets.target.top??0),bottom:Math.round(e.offsets.target.bottom??0),right:Math.floor(e.offsets.target.right??0)}}function Nh(e){let t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,n=>t[n])}function Vh(e){return e==="right"?"left":e==="left"?"right":e}var Fs=(e,t=0)=>e?parseFloat(e):t;function Sc(e){let n=e.ownerDocument.defaultView?.getComputedStyle(e),i=Fs(n?.marginTop)+Fs(n?.marginBottom),s=Fs(n?.marginLeft)+Fs(n?.marginRight);return{width:Number(e.offsetWidth)+s,height:Number(e.offsetHeight)+i}}function Dc(e,t,n){let i=n?gc(e):$s(e,t);return no(t,i,n)}function eo(e,t,n){let i=n.split(" ")[0],s=Sc(e),r={width:s.width,height:s.height},o=["right","left"].indexOf(i)!==-1,a=o?"top":"left",l=o?"left":"top",h=o?"height":"width",p=o?"width":"height";return r[a]=(t[a]??0)+t[h]/2-s[h]/2,r[l]=i===l?(t[l]??0)-s[p]:t[Nh(l)]??0,r}function Mc(e,t){return!!e.modifiers[t]?.enabled}var Fh={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function js(e,t){return oi().isBs5?Fh[t].includes(e):!1}function jh(e){return oi().isBs5?js(e,"end")?"ms-2":js(e,"start")?"me-2":js(e,"top")?"mb-2":js(e,"bottom")?"mt-2":"":""}function Bh(e,t){let n=e.instance.target,i=n.className,s=oi().isBs5?qn[e.placement]:e.placement;if(e.placementAuto&&(i=i.replace(/bs-popover-auto/g,`bs-popover-${s}`),i=i.replace(/ms-2|me-2|mb-2|mt-2/g,""),i=i.replace(/bs-tooltip-auto/g,`bs-tooltip-${s}`),i=i.replace(/\sauto/g,` ${s}`),i.indexOf("popover")!==-1&&(i=i+" "+jh(s)),i.indexOf("popover")!==-1&&i.indexOf("popover-auto")===-1&&(i+=" popover-auto"),i.indexOf("tooltip")!==-1&&i.indexOf("tooltip-auto")===-1&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom|end|start/g,`${s.split(" ")[0]}`),t){t.setAttribute(n,"class",i);return}n.className=i}function pc(e,t,n){!e||!t||Object.keys(t).forEach(i=>{let s="";if(["width","height","top","right","bottom","left"].indexOf(i)!==-1&&Ah(t[i])&&(s="px"),n){n.setStyle(e,i,`${String(t[i])}${s}`);return}e.style[i]=String(t[i])+s})}function $h(e){let t=e.offsets.target,n=e.instance.target.querySelector(".arrow");if(!n)return e;let i=["left","right"].indexOf(e.placement.split(" ")[0])!==-1,s=i?"height":"width",r=i?"Top":"Left",o=r.toLowerCase(),a=i?"left":"top",l=i?"bottom":"right",h=Sc(n)[s],p=e.placement.split(" ")[1];(e.offsets.host[l]??0)-h<(t[o]??0)&&(t[o]-=(t[o]??0)-((e.offsets.host[l]??0)-h)),Number(e.offsets.host[o])+Number(h)>(t[l]??0)&&(t[o]+=Number(e.offsets.host[o])+Number(h)-Number(t[l])),t=Jn(t);let b=Ai(e.instance.target),x=parseFloat(b[`margin${r}`])||0,v=parseFloat(b[`border${r}Width`])||0,Y;if(!p)Y=Number(e.offsets.host[o])+Number(e.offsets.host[s]/2-h/2);else{let G=parseFloat(b.borderRadius)||0,B=Number(x+v+G);Y=o===p?Number(e.offsets.host[o])+B:Number(e.offsets.host[o])+Number(e.offsets.host[s]-B)}let j=Y-(t[o]??0)-x-v;return j=Math.max(Math.min(t[s]-(h+5),j),0),e.offsets.arrow={[o]:Math.round(j),[a]:""},e.instance.arrow=n,e}function Wh(e){if(e.offsets.target=Jn(e.offsets.target),!Mc(e.options,"flip"))return e.offsets.target=K(K({},e.offsets.target),eo(e.instance.target,e.offsets.host,e.placement)),e;let t=ro(e.instance.target,e.instance.host,0,"viewport",!1),n=e.placement.split(" ")[0],i=e.placement.split(" ")[1]||"",s=e.offsets.host,r=e.instance.target,o=e.instance.host,a=wc("auto",s,r,o,e.options.allowedPositions),l=[n,a];return l.forEach((h,p)=>{if(n!==h||l.length===p+1)return;n=e.placement.split(" ")[0];let b=n==="left"&&Math.floor(e.offsets.target.right??0)>Math.floor(e.offsets.host.left??0)||n==="right"&&Math.floor(e.offsets.target.left??0)<Math.floor(e.offsets.host.right??0)||n==="top"&&Math.floor(e.offsets.target.bottom??0)>Math.floor(e.offsets.host.top??0)||n==="bottom"&&Math.floor(e.offsets.target.top??0)<Math.floor(e.offsets.host.bottom??0),x=Math.floor(e.offsets.target.left??0)<Math.floor(t.left??0),v=Math.floor(e.offsets.target.right??0)>Math.floor(t.right??0),Y=Math.floor(e.offsets.target.top??0)<Math.floor(t.top??0),j=Math.floor(e.offsets.target.bottom??0)>Math.floor(t.bottom??0),G=n==="left"&&x||n==="right"&&v||n==="top"&&Y||n==="bottom"&&j,B=["top","bottom"].indexOf(n)!==-1,ke=B&&i==="left"&&x||B&&i==="right"&&v||!B&&i==="left"&&Y||!B&&i==="right"&&j;(b||G||ke)&&((b||G)&&(n=l[p+1]),ke&&(i=Vh(i)),e.placement=n+(i?` ${i}`:""),e.offsets.target=K(K({},e.offsets.target),eo(e.instance.target,e.offsets.host,e.placement)))}),e}function Uh(e,t,n,i){if(!e||!t)return;let s=Dc(e,t);!n.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!n.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(n="auto");let r=!!n.match(/auto/g),o=n.match(/auto\s(left|right|top|bottom|start|end)/)?n.split(" ")[1]||"auto":n,a=o.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);a&&(o=a[1]+(a[2]?` ${a[2]}`:"")),["left right","right left","top bottom","bottom top"].indexOf(o)!==-1&&(o="auto"),o=wc(o,s,e,t,i?i.allowedPositions:void 0);let l=eo(e,s,o);return{options:i||{modifiers:{}},instance:{target:e,host:t,arrow:void 0},offsets:{target:l,host:s,arrow:void 0},positionFixed:!1,placement:o,placementAuto:r}}function zh(e){if(!Mc(e.options,"preventOverflow"))return e;let t="transform",n=e.instance.target.style,{top:i,left:s,[t]:r}=n;n.top="",n.left="",n[t]="";let o=ro(e.instance.target,e.instance.host,0,e.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);n.top=i,n.left=s,n[t]=r;let a=["left","right","top","bottom"],l={primary(h){let p=e.offsets.target[h];return(e.offsets.target[h]??0)<(o[h]??0)&&(p=Math.max(e.offsets.target[h]??0,o[h]??0)),{[h]:p}},secondary(h){let p=h==="right",b=p?"left":"top",x=p?"width":"height",v=e.offsets.target[b];return(e.offsets.target[h]??0)>(o[h]??0)&&(v=Math.min(e.offsets.target[b]??0,(o[h]??0)-e.offsets.target[x])),{[b]:v}}};return a.forEach(h=>{let p=["left","top","start"].indexOf(h)!==-1?l.primary:l.secondary;e.offsets.target=K(K({},e.offsets.target),p(h))}),e}function Gh(e){let t=e.placement,n=t.split(" ")[0],i=t.split(" ")[1];if(i){let{host:s,target:r}=e.offsets,o=["bottom","top"].indexOf(n)!==-1,a=o?"left":"top",l=o?"width":"height",h={start:{[a]:s[a]},end:{[a]:(s[a]??0)+s[l]-r[l]}};e.offsets.target=Ve(K({},r),{[a]:a===i?h.start[a]:h.end[a]})}return e}var to=class{position(t,n){return this.offset(t,n)}offset(t,n){return Dc(n,t)}positionElements(t,n,i,s,r){let o=[Wh,Gh,zh,$h],a=fc[i],l=Uh(n,t,a,r);if(l)return o.reduce((h,p)=>p(h),l)}},Kh=new to;function Xh(e,t,n,i,s,r){let o=Kh.positionElements(e,t,n,i,s);if(!o)return;let a=Hh(o);pc(t,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},r),o.instance.arrow&&pc(o.instance.arrow,o.offsets.arrow,r),Bh(o,r)}var Qe=(()=>{let t=class t{constructor(i,s,r){this.update$$=new z,this.positionElements=new Map,this.isDisabled=!1,hn(r)&&i.runOutsideAngular(()=>{this.triggerEvent$=ll(ki(window,"scroll",{passive:!0}),ki(window,"resize",{passive:!0}),Es(0,Vr),this.update$$),this.triggerEvent$.pipe(cc()).subscribe(()=>{this.isDisabled||this.positionElements.forEach(o=>{Xh(Bs(o.target),Bs(o.element),o.attachment,o.appendToBody,this.options,s.createRenderer(null,null))})})})}position(i){this.addPositionElement(i)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(i){this.positionElements.set(Bs(i.element),i)}calcPosition(){this.update$$.next(null)}deletePositionElement(i){this.positionElements.delete(Bs(i))}setOptions(i){this.options=i}};t.\u0275fac=function(s){return new(s||t)(J(we),J(qe),J(cn))},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Bs(e){return typeof e=="string"?document.querySelector(e):e instanceof te?e.nativeElement:e??null}var Yi=class{constructor(t,n,i){this.nodes=t,this.viewRef=n,this.componentRef=i}},ao=class{constructor(t,n,i,s,r,o,a,l,h){this._viewContainerRef=t,this._renderer=n,this._elementRef=i,this._injector=s,this._componentFactoryResolver=r,this._ngZone=o,this._applicationRef=a,this._posService=l,this._document=h,this.onBeforeShow=new H,this.onShown=new H,this.onBeforeHide=new H,this.onHidden=new H,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return this._isHiding?!1:!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return t?(this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this):this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);let n=be.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(n,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof te&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),typeof this.container=="string"&&typeof this._document<"u"){let i=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!i)return;i.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(t.id?{id:t.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(t){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);let n=this._componentRef.location.nativeElement;return n.parentNode?.removeChild(n),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._componentRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(t?{id:t}:null),this}toggle(){if(this.isShown){this.hide();return}this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef?.nativeElement;let n=this._listenOpts.hide=()=>t.hide?t.hide():void this.hide(),i=this._listenOpts.show=r=>{t.show?t.show(r):this.show(r),r()},s=r=>{this.isShown?n():i(r)};return this._renderer&&(this._unregisterListenersFn=nc(this._renderer,{target:t.target,triggers:t.triggers,show:i,hide:n,toggle:s})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(t,n){return t&&n&&(this._inlineViewRef=t.createEmbeddedView(n)),this}_registerOutsideClick(){if(!this._componentRef||!this._componentRef.location)return;let t=Function.prototype,n=Function.prototype;if(this._listenOpts.outsideClick){let i=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(t=sc(this._renderer,{targets:[i,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}if(this._listenOpts.outsideEsc&&this._renderer&&this._elementRef){let i=this._componentRef.location.nativeElement;n=rc(this._renderer,{targets:[i,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()})}this._globalListener=()=>{t(),n()}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:this.container==="body"})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(t,n,i){if(!t)return new Yi([]);if(t instanceof Ti){if(this._viewContainerRef){let o=this._viewContainerRef.createEmbeddedView(t,n);return o.markForCheck(),new Yi([o.rootNodes],o)}let r=t.createEmbeddedView({});return this._applicationRef.attachView(r),new Yi([r.rootNodes],r)}if(typeof t=="function"){let r=this._componentFactoryResolver.resolveComponentFactory(t),o=be.create({providers:this._providers,parent:this._injector}),a=r.create(o);return Object.assign(a.instance,i),this._applicationRef.attachView(a.hostView),new Yi([[a.location.nativeElement]],a.hostView,a)}let s=this._renderer?[this._renderer.createText(`${t}`)]:[];return new Yi([s])}},ut=(()=>{let t=class t{constructor(i,s,r,o,a,l){this._componentFactoryResolver=i,this._ngZone=s,this._injector=r,this._posService=o,this._applicationRef=a,this._document=l}createLoader(i,s,r){return new ao(s,r,i,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}};t.\u0275fac=function(s){return new(s||t)(J(Is),J(we),J(be),J(Qe),J(Mt),J(fe))},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Zh=["*"],co=(()=>{let t=class t{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qh=(()=>{let t=class t{get _bsVersions(){return oi()}constructor(i){Object.assign(this,i)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=qn[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}};t.\u0275fac=function(s){return new(s||t)(y(co))},t.\u0275cmp=re({type:t,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(s,r){s&2&&(le("id",r.id),Je("show tooltip in tooltip-"+r.placement+" bs-tooltip-"+r.placement+" "+r.placement+" "+r.containerClass))},ngContentSelectors:Zh,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(s,r){s&1&&(Li(),Ei(0,"div",0),Ot(1,"div",1),ni(2),It())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0});let e=t;return e})(),Jh=0,Cc=(()=>{let t=class t{get isOpen(){return this._tooltip.isShown}set isOpen(i){i?this.show():this.hide()}set htmlContent(i){it("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=i}set _placement(i){it("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=i}set _isOpen(i){it("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=i}get _isOpen(){return it("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(i){it("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!i}get _enable(){return it("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(i){it('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=i?"body":this.container}get _appendToBody(){return it('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container==="body"}set _popupClass(i){it("tooltipClass deprecated")}set _tooltipContext(i){it("tooltipContext deprecated")}set _tooltipPopupDelay(i){it("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=i}get _tooltipTrigger(){return it("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(i){it("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(i||"").toString()}constructor(i,s,r,o,a,l){this._elementRef=o,this._renderer=a,this._positionService=l,this.tooltipId=Jh++,this.adaptivePosition=!0,this.tooltipChange=new H,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new H,this._tooltip=s.createLoader(this._elementRef,i,this._renderer).provide({provide:co,useValue:r}),Object.assign(this,r),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(i=>{i||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;let i=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(qh).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},s=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=al(this.delay).subscribe(()=>{i(),s()}),this.triggers&&Jr(this.triggers).forEach(r=>{r.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,r.close,()=>{this._delaySubscription?.unsubscribe(),s()}))})):i()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}};t.\u0275fac=function(s){return new(s||t)(y(Ft),y(ut),y(co),y(te),y(Fe),y(Qe))},t.\u0275dir=je({type:t,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:[0,"tooltipHtml","htmlContent"],_placement:[0,"tooltipPlacement","_placement"],_isOpen:[0,"tooltipIsOpen","_isOpen"],_enable:[0,"tooltipEnable","_enable"],_appendToBody:[0,"tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:[0,"tooltipClass","_popupClass"],_tooltipContext:[0,"tooltipContext","_tooltipContext"],_tooltipPopupDelay:[0,"tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:[0,"tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipCha