@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
1 lines • 425 kB
JavaScript
import{$ as Yi,Aa as B,Ac as Fi,Ae as ml,B as ni,Ba as Or,Bb as T,C as Ya,Ca as $a,Cb as Ir,Cc as bs,Ce as pl,D as Pa,Da as Ni,Db as Ja,Df as Dl,E as re,Ea as ms,Eb as b,Ec as tl,Ed as rl,F as Er,Fa as Wa,Fd as ol,Fe as fl,G as Ha,Ga as Ua,Gb as c,Gc as Sn,Gd as al,Ge as gl,Ha as Rr,Hb as ai,Ib as Yt,Ic as Mt,If as Cl,J as Na,Jb as qa,Jc as Fe,Kb as li,Kc as Mn,Kf as kl,L as wn,La as Vi,Lb as Pt,Lc as Dn,Ld as ll,Ma as za,Mb as Ht,Mc as il,N as Ai,Nc as Cn,Nd as cl,Oa as d,Pb as Ar,Pf as Tl,Qa as E,Qb as St,Qc as di,Ra as ae,Rb as L,Rc as Bi,S as Va,Sa as ps,Sb as Oe,Ta as si,Tb as D,Ua as fs,Ub as Me,V as Fa,Va as Le,Vb as ke,Wa as we,Xa as y,Ya as yt,Za as Ga,Zd as dl,_e as vl,_f as El,a as Ie,aa as Ba,ab as U,ba as xr,bb as he,bc as Qa,bd as nl,c as ti,cb as Se,cd as sl,cf as yl,da as At,dd as kn,dg as xl,ea as w,eb as ri,ec as ue,ee as hl,f as I,fa as de,fb as S,g as F,gc as Yr,gd as Hr,gf as bl,h as La,ha as gt,hg as Nr,i as Oa,ia as N,j as Tr,ja as M,jb as it,ka as ja,kb as K,kc as X,l as Ra,lb as gs,lc as Z,m as Ia,ma as Pi,mb as vs,n as Aa,ng as Ll,o as hs,oa as f,ob as Ka,p as ii,pa as g,pb as Xa,pf as wl,pg as Vl,qa as oe,qb as Za,qf as Sl,ra as ie,rb as u,rc as ys,re as ul,sa as _s,sb as _,sc as Pr,se as _l,tb as m,tc as ci,tg as Fl,ua as Lr,ub as z,uf as Ml,v as Ve,va as W,vb as dt,w as us,wb as ht,xa as vt,xb as oi,ya as Hi,yb as bt,zb as wt,zc as el}from"./chunk-D55YR5X7.js";import{a as ws,b as ji,c as Ss,d as Tn,e as Ol,f as Rl,g as En,h as Il,i as Al,j as Yl,k as Pl,l as Hl,m as Nl,n as hi}from"./chunk-DM4NXKEP.js";import{a as A,b as be,c as xa,f as ds,g as kr,h as ei,i as bn}from"./chunk-KAVP6UXH.js";var Vr=class{constructor(t,n){this.open=t,this.close=n||t}isManual(){return this.open==="manual"||this.close==="manual"}},Mu={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function Fr(e,t=Mu){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 Vr(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 jl(e,t){let n=Fr(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,v=t.hide,C=()=>e.listen(i,p,v);r.push(C)}h&&s.push(e.listen(i,a.open,()=>h(o)))}),()=>{s.forEach(a=>a())}}function $l(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 Wl(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 _e=typeof window<"u"&&window||{},me=_e.document,Wy=_e.location,Uy=_e.gc?()=>_e.gc():()=>null,zy=_e.performance?_e.performance:null,Gy=_e.Event,Ky=_e.MouseEvent,Xy=_e.KeyboardEvent,Zy=_e.EventTarget,Jy=_e.History,qy=_e.Location,Qy=_e.EventListener,Ul=(function(e){return e.isBs4="bs4",e.isBs5="bs5",e})(Ul||{}),Dt;function zl(){let e=_e.document.createElement("span");e.innerText="testing bs version",e.classList.add("d-none"),e.classList.add("pl-1"),_e.document.head.appendChild(e);let t=_e.getComputedStyle(e).paddingLeft;return t&&parseFloat(t)?(_e.document.head.removeChild(e),"bs4"):(_e.document.head.removeChild(e),"bs5")}function Gl(e){Dt=e}function Du(){return Dt||(Dt=zl()),Dt==="bs4"}function Cu(){return Dt||(Dt=zl()),Dt==="bs5"}function Nt(){return{isBs4:Du(),isBs5:Cu()}}function ku(){let e=Nt(),t=Object.keys(e).find(n=>e[n]);return Ul[t]}function Kl(){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 Ms=class{static reflow(t){t.offsetHeight}static getStyles(t){let n=t.ownerDocument.defaultView;return(!n||!n.opener)&&(n=_e),n.getComputedStyle(t)}static stackOverflowConfig(){let t=ku();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"}}},Bl={},Tu=typeof console>"u"||!("warn"in console);function Ae(e){!el()||Tu||e in Bl||(Bl[e]=!0,console.warn(e))}function Xl(e){e||(e=M(_s));let t=new ti(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(Yi(t))}function Zl(e,t){let n=t?.injector??M(oe),i=new La(1),s=ci(()=>{let r;try{r=e()}catch(o){ys(()=>i.error(o));return}ys(()=>i.next(r))},{injector:n,manualCleanup:!0});return n.get(_s).onDestroy(()=>{s.destroy(),i.complete()}),i.asObservable()}var ic=(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})(ic||{}),xn=(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})(xn||{});function ui(e,t){if(e.nodeType!==1)return[];let i=e.ownerDocument.defaultView?.getComputedStyle(e,null);return t?i&&i[t]:i}function Wr(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&&ui(n,"position")==="static"?Wr(n):n}function Eu(e){let{nodeName:t}=e;return t==="BODY"?!1:t==="HTML"||Wr(e.firstElementChild)===e}function Br(e){return e.parentNode!==null?Br(e.parentNode):e}function Ts(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 Eu(o)?o:Wr(o);let a=Br(e);return a.host?Ts(a.host,t):Ts(e,Br(t).host)}function nc(e){if(!e||!e.parentElement)return document.documentElement;let t=e.parentElement;for(;t?.parentElement&&ui(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Jl(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 ql(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 sc(e){let t=e.body,n=e.documentElement;return{height:ql("Height",t,n),width:ql("Width",t,n)}}function Ln(e){return be(A({},e),{right:(e.left||0)+e.width,bottom:(e.top||0)+e.height})}function xu(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(Number(e))}function ee(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ql(e){let t=e.getBoundingClientRect();if(!(t&&ee(t.top)&&ee(t.left)&&ee(t.bottom)&&ee(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"?sc(e.ownerDocument):void 0,s=i?.width||e.clientWidth||ee(t.right)&&ee(n.left)&&t.right-n.left||0,r=i?.height||e.clientHeight||ee(t.bottom)&&ee(n.top)&&t.bottom-n.top||0,o=e.offsetWidth-s,a=e.offsetHeight-r;if(o||a){let l=ui(e);o-=Jl(l,"x"),a-=Jl(l,"y"),n.width-=o,n.height-=a}return Ln(n)}function Ur(e,t,n=!1){let i=t.nodeName==="HTML",s=Ql(e),r=Ql(t),o=ui(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=Ln({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),v=parseFloat(o.marginLeft);ee(h.top)&&(h.top-=a-p),ee(h.bottom)&&(h.bottom-=a-p),ee(h.left)&&(h.left-=l-v),ee(h.right)&&(h.right-=l-v),h.marginTop=p,h.marginLeft=v}return h}function zr(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function rc(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}=ui(e);return/(auto|scroll|overlay)/.test(String(t)+String(i)+String(n))?e:rc(zr(e))}function ec(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 Lu(e,t=!1){let n=e.ownerDocument.documentElement,i=Ur(e,n),s=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:ec(n),a=t?0:ec(n,"left"),l={top:o-Number(i?.top)+Number(i?.marginTop),left:a-Number(i?.left)+Number(i?.marginLeft),width:s,height:r};return Ln(l)}function oc(e){let t=e.nodeName;return t==="BODY"||t==="HTML"?!1:ui(e,"position")==="fixed"?!0:oc(zr(e))}function Gr(e,t,n=0,i,s=!1){let r={top:0,left:0},o=s?nc(e):Ts(e,t);if(i==="viewport")r=Lu(o,s);else{let a;i==="scrollParent"?(a=rc(zr(t)),a.nodeName==="BODY"&&(a=e.ownerDocument.documentElement)):i==="window"?a=e.ownerDocument.documentElement:a=i;let l=Ur(a,o,s);if(l&&a.nodeName==="HTML"&&!oc(o)){let{height:h,width:p}=sc(e.ownerDocument);ee(r.top)&&ee(l.top)&&ee(l.marginTop)&&(r.top+=l.top-l.marginTop),ee(r.top)&&(r.bottom=Number(h)+Number(l.top)),ee(r.left)&&ee(l.left)&&ee(l.marginLeft)&&(r.left+=l.left-l.marginLeft),ee(r.top)&&(r.right=Number(p)+Number(l.left))}else l&&(r=l)}return ee(r.left)&&(r.left+=n),ee(r.top)&&(r.top+=n),ee(r.right)&&(r.right-=n),ee(r.bottom)&&(r.bottom-=n),r}function Ou({width:e,height:t}){return e*t}function ac(e,t,n,i,s=["top","bottom","right","left"],r="viewport",o=0){if(e.indexOf("auto")===-1)return e;let a=Gr(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(x=>be(A({position:x},l[x]),{area:Ou(l[x])})).sort((x,R)=>R.area-x.area),p=h.filter(({width:x,height:R})=>x>=n.clientWidth&&R>=n.clientHeight);p=p.filter(({position:x})=>s.some(R=>R===x));let v=p.length>0?p[0].position:h[0].position,C=e.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${Nt().isBs5?xn[v]:v}`),v+(C?`-${C}`:"")}function Ru(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 Iu(e){let t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,n=>t[n])}function Au(e){return e==="right"?"left":e==="left"?"right":e}var Ds=(e,t=0)=>e?parseFloat(e):t;function lc(e){let n=e.ownerDocument.defaultView?.getComputedStyle(e),i=Ds(n?.marginTop)+Ds(n?.marginBottom),s=Ds(n?.marginLeft)+Ds(n?.marginRight);return{width:Number(e.offsetWidth)+s,height:Number(e.offsetHeight)+i}}function cc(e,t,n){let i=n?nc(e):Ts(e,t);return Ur(t,i,n)}function jr(e,t,n){let i=n.split(" ")[0],s=lc(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[Iu(l)]??0,r}function dc(e,t){return!!e.modifiers[t]?.enabled}var Yu={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 Cs(e,t){return Nt().isBs5?Yu[t].includes(e):!1}function Pu(e){return Nt().isBs5?Cs(e,"end")?"ms-2":Cs(e,"start")?"me-2":Cs(e,"top")?"mb-2":Cs(e,"bottom")?"mt-2":"":""}function Hu(e,t){let n=e.instance.target,i=n.className,s=Nt().isBs5?xn[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+" "+Pu(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 tc(e,t,n){!e||!t||Object.keys(t).forEach(i=>{let s="";if(["width","height","top","right","bottom","left"].indexOf(i)!==-1&&xu(t[i])&&(s="px"),n){n.setStyle(e,i,`${String(t[i])}${s}`);return}e.style[i]=String(t[i])+s})}function Nu(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=lc(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=Ln(t);let v=ui(e.instance.target),C=parseFloat(v[`margin${r}`])||0,x=parseFloat(v[`border${r}Width`])||0,R;if(!p)R=Number(e.offsets.host[o])+Number(e.offsets.host[s]/2-h/2);else{let H=parseFloat(v.borderRadius)||0,G=Number(C+x+H);R=o===p?Number(e.offsets.host[o])+G:Number(e.offsets.host[o])+Number(e.offsets.host[s]-G)}let j=R-(t[o]??0)-C-x;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 Vu(e){if(e.offsets.target=Ln(e.offsets.target),!dc(e.options,"flip"))return e.offsets.target=A(A({},e.offsets.target),jr(e.instance.target,e.offsets.host,e.placement)),e;let t=Gr(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=ac("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 v=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),C=Math.floor(e.offsets.target.left??0)<Math.floor(t.left??0),x=Math.floor(e.offsets.target.right??0)>Math.floor(t.right??0),R=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),H=n==="left"&&C||n==="right"&&x||n==="top"&&R||n==="bottom"&&j,G=["top","bottom"].indexOf(n)!==-1,We=G&&i==="left"&&C||G&&i==="right"&&x||!G&&i==="left"&&R||!G&&i==="right"&&j;(v||H||We)&&((v||H)&&(n=l[p+1]),We&&(i=Au(i)),e.placement=n+(i?` ${i}`:""),e.offsets.target=A(A({},e.offsets.target),jr(e.instance.target,e.offsets.host,e.placement)))}),e}function Fu(e,t,n,i){if(!e||!t)return;let s=cc(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=ac(o,s,e,t,i?i.allowedPositions:void 0);let l=jr(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 Bu(e){if(!dc(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=Gr(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",v=p?"left":"top",C=p?"width":"height",x=e.offsets.target[v];return(e.offsets.target[h]??0)>(o[h]??0)&&(x=Math.min(e.offsets.target[v]??0,(o[h]??0)-e.offsets.target[C])),{[v]:x}}};return a.forEach(h=>{let p=["left","top","start"].indexOf(h)!==-1?l.primary:l.secondary;e.offsets.target=A(A({},e.offsets.target),p(h))}),e}function ju(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=be(A({},r),{[a]:a===i?h.start[a]:h.end[a]})}return e}var $r=class{position(t,n){return this.offset(t,n)}offset(t,n){return cc(n,t)}positionElements(t,n,i,s,r){let o=[Vu,ju,Bu,Nu],a=ic[i],l=Fu(n,t,a,r);if(l)return o.reduce((h,p)=>p(h),l)}},$u=new $r;function Wu(e,t,n,i,s,r){let o=$u.positionElements(e,t,n,i,s);if(!o)return;let a=Ru(o);tc(t,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${a.left}px, ${a.top}px, 0px)`},r),o.instance.arrow&&tc(o.instance.arrow,o.offsets.arrow,r),Hu(o,r)}var Ye=(()=>{let t=class t{constructor(i,s,r){this.update$$=new I,this.positionElements=new Map,this.isDisabled=!1,Bi(r)&&i.runOutsideAngular(()=>{this.triggerEvent$=Pa(ni(window,"scroll",{passive:!0}),ni(window,"resize",{passive:!0}),ii(0,Tr),this.update$$),this.triggerEvent$.pipe(Xl()).subscribe(()=>{this.isDisabled||this.positionElements.forEach(o=>{Wu(ks(o.target),ks(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(ks(i.element),i)}calcPosition(){this.update$$.next(null)}deletePositionElement(i){this.positionElements.delete(ks(i))}setOptions(i){this.options=i}};t.\u0275fac=function(s){return new(s||t)(N(ae),N(Le),N(Ni))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ks(e){return typeof e=="string"?document.querySelector(e):e instanceof B?e.nativeElement:e??null}var _i=class{constructor(t,n,i){this.nodes=t,this.viewRef=n,this.componentRef=i}},Xr=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 E,this.onShown=new E,this.onBeforeHide=new E,this.onHidden=new E,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=oe.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 B&&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=jl(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=$l(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=Wl(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 _i([]);if(t instanceof si){if(this._viewContainerRef){let o=this._viewContainerRef.createEmbeddedView(t,n);return o.markForCheck(),new _i([o.rootNodes],o)}let r=t.createEmbeddedView({});return this._applicationRef.attachView(r),new _i([r.rootNodes],r)}if(typeof t=="function"){let r=this._componentFactoryResolver.resolveComponentFactory(t),o=oe.create({providers:this._providers,parent:this._injector}),a=r.create(o);return Object.assign(a.instance,i),this._applicationRef.attachView(a.hostView),new _i([[a.location.nativeElement]],a.hostView,a)}let s=this._renderer?[this._renderer.createText(`${t}`)]:[];return new _i([s])}},Ue=(()=>{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 Xr(s,r,i,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}};t.\u0275fac=function(s){return new(s||t)(N(fs),N(ae),N(oe),N(Ye),N(it),N(ie))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Uu=["*"],Jr=(()=>{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=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),zu=(()=>{let t=class t{get _bsVersions(){return Nt()}constructor(i){Object.assign(this,i)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=xn[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(Jr))},t.\u0275cmp=U({type:t,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(s,r){s&2&&(K("id",r.id),Oe("show tooltip in tooltip-"+r.placement+" bs-tooltip-"+r.placement+" "+r.placement+" "+r.containerClass))},ngContentSelectors:Uu,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(s,r){s&1&&(ai(),oi(0,"div",0),dt(1,"div",1),Yt(2),ht())},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})(),Gu=0,hc=(()=>{let t=class t{get isOpen(){return this._tooltip.isShown}set isOpen(i){i?this.show():this.hide()}set htmlContent(i){Ae("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=i}set _placement(i){Ae("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=i}set _isOpen(i){Ae("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=i}get _isOpen(){return Ae("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(i){Ae("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!i}get _enable(){return Ae("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(i){Ae('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=i?"body":this.container}get _appendToBody(){return Ae('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container==="body"}set _popupClass(i){Ae("tooltipClass deprecated")}set _tooltipContext(i){Ae("tooltipContext deprecated")}set _tooltipPopupDelay(i){Ae("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=i}get _tooltipTrigger(){return Ae("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(i){Ae("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=Gu++,this.adaptivePosition=!0,this.tooltipChange=new E,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new E,this._tooltip=s.createLoader(this._elementRef,i,this._renderer).provide({provide:Jr,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(zu).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=Ya(this.delay).subscribe(()=>{i(),s()}),this.triggers&&Fr(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(yt),y(Ue),y(Jr),y(B),y(we),y(Ye))},t.\u0275dir=Se({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:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"],features:[ue([Ue,Ye])]});let e=t;return Ra([Kl(),Ia("design:type",Object)],e.prototype,"tooltip",void 0),e})(),qr=(()=>{let t=class t{static forRoot(){return{ngModule:t,providers:[]}}};t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=he({type:t}),t.\u0275inj=de({imports:[di]});let e=t;return e})();var F0=/^(?! )(?!.* $)[a-zA-Z0-9@\-\\._ ]{2,255}$/;var Xu=(function(e){return e[e.ADMINISTRATOR=0]="ADMINISTRATOR",e[e.USER=1]="USER",e[e.GUEST=2]="GUEST",e[e.LINK=3]="LINK",e})(Xu||{}),Zu=(function(e){return e[e.MEMBER=0]="MEMBER",e[e.MANAGER=1]="MANAGER",e})(Zu||{}),B0=",",Pe=(function(e){return e.PERSONAL_SPACE="personal_space",e.SPACES="spaces_access",e.SPACES_ADMIN="spaces_admin",e.SHARES="shares_access",e.SHARES_ADMIN="shares_admin",e.GUESTS_ADMIN="guests_admin",e.PERSONAL_GROUPS_ADMIN="personal_groups_admin",e.DESKTOP_APP="desktop_app_access",e.DESKTOP_APP_SYNC="desktop_app_sync",e.WEBDAV="webdav_access",e})(Pe||{});var Ju=(function(e){return e[e.AVAILABLE=0]="AVAILABLE",e[e.BUSY=1]="BUSY",e[e.ABSENT=2]="ABSENT",e[e.OFFLINE=3]="OFFLINE",e})(Ju||{});var ne={BASE:"user",ACCOUNT:"account",CLIENTS:"clients",GROUPS:"groups",GUESTS:"guests",APPS:"apps"},$i={ACCOUNT:"Account",CLIENTS:"Clients",GROUPS:"Groups",GUESTS:"Guests",APPS:"Applications"},U0={APPLICATION:"application",APPLICATION_EMAIL:"application and email"},z0=["available","busy","absent","offline"],Wi={ACCOUNT:Sl,CLIENTS:fl,GROUPS:ml,GUESTS:yl,APPS:kl},G0="Change me !",On="auto",K0={title:$i.ACCOUNT,link:`${ne.BASE}/${ne.ACCOUNT}`,icon:Wi.ACCOUNT,matchLink:new RegExp(`^${ne.BASE}`),level:11,checks:[{negate:!0,prop:"user",value:"isLink"}],submenus:[{title:$i.ACCOUNT,icon:Wi.ACCOUNT,link:`${ne.BASE}/${ne.ACCOUNT}`,matchLink:RegExp(`^${ne.BASE}/${ne.ACCOUNT}$`)},{id:Pe.DESKTOP_APP,title:$i.CLIENTS,icon:Wi.CLIENTS,link:`${ne.BASE}/${ne.CLIENTS}`,matchLink:RegExp(`^${ne.BASE}/${ne.CLIENTS}$`)},{title:$i.GROUPS,icon:Wi.GROUPS,link:`${ne.BASE}/${ne.GROUPS}`,matchLink:RegExp(`^${ne.BASE}/${ne.GROUPS}`),checks:[{prop:"user",value:"isUser"}]},{title:$i.GUESTS,icon:Wi.GUESTS,link:`${ne.BASE}/${ne.GUESTS}`,matchLink:RegExp(`^${ne.BASE}/${ne.GUESTS}$`),checks:[{prop:"user",value:"isUser"}]},{id:Pe.DESKTOP_APP,title:$i.APPS,icon:Wi.APPS,link:`${ne.BASE}/${ne.APPS}`,matchLink:RegExp(`^${ne.BASE}/${ne.APPS}$`)}]};var Qr;try{Qr=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Qr=!1}var mi=(()=>{class e{_platformId=M(Ni);isBrowser=this._platformId?Bi(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Qr)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function eo(e){return e.composedPath?e.composedPath()[0]:e.target}function to(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Es=new WeakMap,io=(()=>{class e{_appRef;_injector=M(oe);_environmentInjector=M(Pi);load(n){let i=this._appRef=this._appRef||this._injector.get(it),s=Es.get(i);s||(s={loaders:new Set,refs:[]},Es.set(i,s),i.onDestroy(()=>{Es.get(i)?.refs.forEach(r=>r.destroy()),Es.delete(i)})),s.loaders.has(n)||(s.loaders.add(n),s.refs.push(bs(n,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ce(e){return e==null?"":typeof e=="string"?e:`${e}px`}function no(e){return Array.isArray(e)?e:[e]}function uc(e){return e instanceof B?e.nativeElement:e}var qu=new gt("cdk-dir-doc",{providedIn:"root",factory:Qu});function Qu(){return M(ie)}var e_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function t_(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?e_.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var _c=(()=>{class e{get value(){return this.valueSignal()}valueSignal=W("ltr");change=new E;constructor(){let n=M(qu,{optional:!0});if(n){let i=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(t_(i||s||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var pi;function mc(){if(pi==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return pi=!1,pi;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)pi=!0;else{let e=Element.prototype.scrollTo;e?pi=!/\{\s*\[native code\]\s*\}/.test(e.toString()):pi=!1}}return pi}var Rn=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=he({type:e});static \u0275inj=de({})}return e})();var n_=20,so=(()=>{class e{_ngZone=M(ae);_platform=M(mi);_renderer=M(Le).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new I;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let i=this.scrollContainers.get(n);i&&(i.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=n_){return this._platform.isBrowser?new ti(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let s=n>0?this._scrolled.pipe(Er(n)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):ii()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(n,i){let s=this.getAncestorScrollContainers(n);return this.scrolled(i).pipe(re(r=>!r||s.indexOf(r)>-1))}getAncestorScrollContainers(n){let i=[];return this.scrollContainers.forEach((s,r)=>{this._scrollableContainsElement(r,n)&&i.push(r)}),i}_scrollableContainsElement(n,i){let s=uc(i),r=n.getElementRef().nativeElement;do if(s==r)return!0;while(s=s.parentElement);return!1}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var s_=20,In=(()=>{class e{_platform=M(mi);_listeners;_viewportSize;_change=new I;_document=M(ie);constructor(){let n=M(ae),i=M(Le).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let s=r=>this._change.next(r);this._listeners=[i.listen("window","resize",s),i.listen("window","orientationchange",s)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+s,right:n.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,i=this._getWindow(),s=n.documentElement,r=s.getBoundingClientRect(),o=-r.top||n.body.scrollTop||i.scrollY||s.scrollTop||0,a=-r.left||n.body.scrollLeft||i.scrollX||s.scrollLeft||0;return{top:o,left:a}}change(n=s_){return n>0?this._change.pipe(Er(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var pc=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=he({type:e});static \u0275inj=de({})}return e})(),ro=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=he({type:e});static \u0275inj=de({imports:[Rn,pc,Rn,pc]})}return e})();var An=class{_attachedHost;attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Yn=class extends An{component;viewContainerRef;injector;projectableNodes;constructor(t,n,i,s){super(),this.component=t,this.viewContainerRef=n,this.injector=i,this.projectableNodes=s}},xs=class extends An{templateRef;viewContainerRef;context;injector;constructor(t,n,i,s){super(),this.templateRef=t,this.viewContainerRef=n,this.context=i,this.injector=s}get origin(){return this.templateRef.elementRef}attach(t,n=this.context){return this.context=n,super.attach(t)}detach(){return this.context=void 0,super.detach()}},oo=class extends An{element;constructor(t){super(),this.element=t instanceof B?t.nativeElement:t}},ao=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof Yn)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof xs)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof oo)return this._attachedPortal=t,this.attachDomPortal(t)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Ls=class extends ao{outletElement;_appRef;_defaultInjector;constructor(t,n,i){super(),this.outletElement=t,this._appRef=n,this._defaultInjector=i}attachComponentPortal(t){let n;if(t.viewContainerRef){let i=t.injector||t.viewContainerRef.injector,s=i.get(Ga,null,{optional:!0})||void 0;n=t.viewContainerRef.createComponent(t.component,{index:t.viewContainerRef.length,injector:i,ngModuleRef:s,projectableNodes:t.projectableNodes||void 0}),this.setDisposeFn(()=>n.destroy())}else{let i=this._appRef,s=t.injector||this._defaultInjector||oe.NULL,r=s.get(Pi,i.injector);n=bs(t.component,{elementInjector:s,environmentInjector:r,projectableNodes:t.projectableNodes||void 0}),i.attachView(n.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(n.hostView),n.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=n.indexOf(i);s!==-1&&n.remove(s)}),this._attachedPortal=t,i}attachDomPortal=t=>{let n=t.element;n.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var fc=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=he({type:e});static \u0275inj=de({})}return e})();var lo={},gc=(()=>{class e{_appId=M($a);getId(n){return this._appId!=="ng"&&(n+=this._appId),lo.hasOwnProperty(n)||(lo[n]=0),`${n}${lo[n]++}`}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vc(e,...t){return t.length?t.some(n=>e[n]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}var yc=mc();function kc(e){return new Os(e.get(In),e.get(ie))}var Os=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(t,n){this._viewportRuler=t,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ce(-this._previousScrollPosition.left),t.style.top=ce(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,n=this._document.body,i=t.style,s=n.style,r=i.scrollBehavior||"",o=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),yc&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),yc&&(i.scrollBehavior=r,s.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.documentElement,i=this._viewportRuler.getViewportSize();return n.scrollHeight>i.height||n.scrollWidth>i.width}};function Tc(e,t){return new Rs(e.get(so),e.get(ae),e.get(In),t)}var Rs=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,n,i,s){this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=s}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(re(n=>!n||!this._overlayRef.overlayElement.contains(n.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let n=this._viewportRuler.getViewportScrollPosition().top;Math.abs(n-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Pn=class{enable(){}disable(){}attach(){}};function co(e,t){return t.some(n=>{let i=e.bottom<n.top,s=e.top>n.bottom,r=e.right<n.left,o=e.left>n.right;return i||s||r||o})}function bc(e,t){return t.some(n=>{let i=e.top<n.top,s=e.bottom>n.bottom,r=e.left<n.left,o=e.right>n.right;return i||s||r||o})}function Vs(e,t){return new Is(e.get(so),e.get(In),e.get(ae),t)}var Is=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,n,i,s){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=s}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let n=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();co(n,[{width:i,height:s,bottom:s,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Fs=(()=>{class e{_injector=M(oe);constructor(){}noop=()=>new Pn;close=n=>Tc(this._injector,n);block=()=>kc(this._injector);reposition=n=>Vs(this._injector,n);static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),As=class{positionStrategy;scrollStrategy=new Pn;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(t){if(t){let n=Object.keys(t);for(let i of n)t[i]!==void 0&&(this[i]=t[i])}}};var Ys=class{connectionPair;scrollableViewProperties;constructor(t,n){this.connectionPair=t,this.scrollableViewProperties=n}};var Ec=(()=>{class e{_attachedOverlays=[];_document=M(ie);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let i=this._attachedOverlays.indexOf(n);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xc=(()=>{class e extends Ec{_ngZone=M(ae);_renderer=M(Le).createRenderer(null,null);_cleanupKeydown;add(n){super.add(n),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.()