@sync-in/server 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -1
- package/package.json +1 -1
- package/server/app.constants.js +3 -3
- package/server/app.constants.js.map +1 -1
- package/server/app.functions.js +42 -0
- package/server/app.functions.js.map +1 -0
- package/static/{chunk-CCGGCHGN.js → chunk-2TB2INBF.js} +1 -1
- package/static/{chunk-KNZ3AQPR.js → chunk-3WLBVJ2S.js} +1 -1
- package/static/{chunk-24Q7OUU2.js → chunk-3YDYZLF7.js} +1 -1
- package/static/{chunk-XOTKK2NJ.js → chunk-4PZPHJ7L.js} +1 -1
- package/static/{chunk-7CFSJ4BO.js → chunk-5E3TYOL3.js} +1 -1
- package/static/{chunk-T74SMT7I.js → chunk-5S6KPQRA.js} +1 -1
- package/static/{chunk-PG54TWBO.js → chunk-6B3GGAV3.js} +1 -1
- package/static/{chunk-KHRF67SG.js → chunk-6NEBGCAZ.js} +1 -1
- package/static/{chunk-N3P6P6GW.js → chunk-BODMMLVB.js} +1 -1
- package/static/{chunk-Y2I36A4K.js → chunk-BU4ZICZR.js} +1 -1
- package/static/{chunk-RX3YQ67K.js → chunk-DQ3GEMPM.js} +1 -1
- package/static/{chunk-BYWSTP3P.js → chunk-FNOTGWRW.js} +1 -1
- package/static/{chunk-F7TXTNZC.js → chunk-GNZPP2VO.js} +1 -1
- package/static/{chunk-LJSVNPPQ.js → chunk-GRLHFXGB.js} +1 -1
- package/static/{chunk-EKEGRXCV.js → chunk-HCSWO7BO.js} +1 -1
- package/static/{chunk-FTSIPHMG.js → chunk-HMOB6XC5.js} +1 -1
- package/static/{chunk-5HNQLBSW.js → chunk-I2S3XPC5.js} +1 -1
- package/static/{chunk-S6EVLDHA.js → chunk-JWPXQOS3.js} +1 -1
- package/static/{chunk-MRF3CNLZ.js → chunk-JY2I3HGL.js} +1 -1
- package/static/{chunk-2FOWUJQF.js → chunk-K657XPXA.js} +1 -1
- package/static/{chunk-MRMSMTWD.js → chunk-MIA5YBOI.js} +1 -1
- package/static/{chunk-BQZWSZNN.js → chunk-NKGKBQBX.js} +1 -1
- package/static/{chunk-OJCAIKUK.js → chunk-PXRT4L57.js} +1 -1
- package/static/{chunk-3IISSX63.js → chunk-RDNTK4YH.js} +1 -1
- package/static/{chunk-MNNCSSHN.js → chunk-RK2ONYTL.js} +1 -1
- package/static/{chunk-QNFNXDSX.js → chunk-S2VBGI6Q.js} +1 -1
- package/static/{chunk-Y44XDRM5.js → chunk-TGLJFALR.js} +1 -1
- package/static/{chunk-LXQGVNU2.js → chunk-U4RW6XG5.js} +1 -1
- package/static/{chunk-4FJUCMEG.js → chunk-V6FA5QY4.js} +1 -1
- package/static/{chunk-XX7JXKA6.js → chunk-VK7XMFVE.js} +1 -1
- package/static/{chunk-RT3K6DZR.js → chunk-VQJYCYWI.js} +1 -1
- package/static/{chunk-MVZJSG5R.js → chunk-XQGPSNQB.js} +1 -1
- package/static/{chunk-2XPHUNYN.js → chunk-ZXXHFBGL.js} +1 -1
- package/static/index.html +1 -1
- package/static/{main-3PLRDZTO.js → main-56PZQ6TJ.js} +3 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{$ as Yi,Aa as B,Ac as Fi,B as ni,Ba as Or,Bb as T,Be as pl,Bf as Dl,C as Ya,Ca as $a,Cb as Ir,Cc as bs,D as Pa,Da as Ni,Db as Ja,E as re,Ea as ms,Eb as b,Ec as tl,Ed as rl,Ee as fl,F as Er,Fa as Wa,Fd as ol,Fe as gl,G as Ha,Ga as Ua,Gb as c,Gc as Sn,Gd as al,Gf as Cl,Ha as Rr,Hb as ai,Ib as Yt,Ic as Mt,If as kl,J as Na,Jb as qa,Jc as Fe,Kb as li,Kc as Mn,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,Nf as Tl,Oa as d,Pb as Ar,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,Yf as El,Za as Ga,Zd as dl,Ze as vl,a as Ie,aa as Ba,ab as U,ba as xr,bb as he,bc as Qa,bd as nl,bf as yl,bg as xl,c as ti,cb as Se,cd as sl,da as At,dd as kn,ea as w,eb as ri,ec as ue,ee as hl,f as I,fa as de,fb as S,ff as bl,fg as Nr,g as F,gc as Yr,gd as Hr,h as La,ha as gt,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,lg as Ll,m as Ia,ma as Pi,mb as vs,n as Aa,ng as Vl,o as hs,oa as f,ob as Ka,of as wl,p as ii,pa as g,pb as Xa,pf as Sl,qa as oe,qb as Za,ra as ie,rb as u,rc as ys,re as ul,rg as Fl,sa as _s,sb as _,sc as Pr,se as _l,sf as Ml,tb as m,tc as ci,ua as Lr,ub as z,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,ze as ml}from"./chunk-IOIBQGHN.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"}},Du={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function Fr(e,t=Du){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,Uy=_e.location,zy=_e.gc?()=>_e.gc():()=>null,Gy=_e.performance?_e.performance:null,Ky=_e.Event,Xy=_e.MouseEvent,Zy=_e.KeyboardEvent,Jy=_e.EventTarget,qy=_e.History,Qy=_e.Location,e0=_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 Cu(){return Dt||(Dt=zl()),Dt==="bs4"}function ku(){return Dt||(Dt=zl()),Dt==="bs5"}function Nt(){return{isBs4:Cu(),isBs5:ku()}}function Tu(){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=Tu();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={},Eu=typeof console>"u"||!("warn"in console);function Ae(e){!el()||Eu||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 xu(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 xu(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 Lu(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 Ou(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=Ou(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 Ru({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:Ru(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 Iu(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 Au(e){let t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,n=>t[n])}function Yu(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[Au(l)]??0,r}function dc(e,t){return!!e.modifiers[t]?.enabled}var Pu={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?Pu[t].includes(e):!1}function Hu(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 Nu(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+" "+Hu(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&&Lu(t[i])&&(s="px"),n){n.setStyle(e,i,`${String(t[i])}${s}`);return}e.style[i]=String(t[i])+s})}function Vu(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 Fu(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=Yu(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 Bu(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 ju(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 $u(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=[Fu,$u,ju,Vu],a=ic[i],l=Bu(n,t,a,r);if(l)return o.reduce((h,p)=>p(h),l)}},Wu=new $r;function Uu(e,t,n,i,s,r){let o=Wu.positionElements(e,t,n,i,s);if(!o)return;let a=Iu(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),Nu(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=>{Uu(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 zu=["*"],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})(),Gu=(()=>{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:zu,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})(),Ku=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=Ku++,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(Gu).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 B0=/^(?! )(?!.* $)[a-zA-Z0-9@\-\\._ ]{2,255}$/;var Zu=(function(e){return e[e.ADMINISTRATOR=0]="ADMINISTRATOR",e[e.USER=1]="USER",e[e.GUEST=2]="GUEST",e[e.LINK=3]="LINK",e})(Zu||{}),Ju=(function(e){return e[e.MEMBER=0]="MEMBER",e[e.MANAGER=1]="MANAGER",e})(Ju||{}),j0=",",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 qu=(function(e){return e[e.AVAILABLE=0]="AVAILABLE",e[e.BUSY=1]="BUSY",e[e.ABSENT=2]="ABSENT",e[e.OFFLINE=3]="OFFLINE",e})(qu||{});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"},z0={APPLICATION:"application",APPLICATION_EMAIL:"application and email"},G0=["available","busy","absent","offline"],Wi={ACCOUNT:Sl,CLIENTS:fl,GROUPS:ml,GUESTS:yl,APPS:kl},K0="Change me !",On="auto",X0={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:e_});function e_(){return M(ie)}var t_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function i_(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?t_.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(i_(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 s_=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=s_){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 r_=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=r_){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?.(),this._isAttached=!1)}_keydownListener=n=>{let i=this._attachedOverlays;for(let s=i.length-1;s>-1;s--)if(i[s]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[s]._keydownEvents.next(n));break}};static \u0275fac=(()=>{let n;return function(s){return(n||(n=Hi(e)))(s||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lc=(()=>{class e extends Ec{_platform=M(mi);_ngZone=M(ae);_renderer=M(Le).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(n){if(super.add(n),!this._isAttached){let i=this._document.body,s={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(i,"pointerdown",this._pointerDownListener,s),r.listen(i,"click",this._clickListener,s),r.listen(i,"auxclick",this._clickListener,s),r.listen(i,"contextmenu",this._clickListener,s)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(n=>n()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=n=>{this._pointerDownEventTarget=eo(n)};_clickListener=n=>{let i=eo(n),s=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let o=r.length-1;o>-1;o--){let a=r[o];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(wc(a.overlayElement,i)||wc(a.overlayElement,s))break;let l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(n)):l.next(n)}};static \u0275fac=(()=>{let n;return function(s){return(n||(n=Hi(e)))(s||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wc(e,t){let n=typeof ShadowRoot<"u"&&ShadowRoot,i=t;for(;i;){if(i===e)return!0;i=n&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var Oc=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=U({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,s){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return e})(),Ui=(()=>{class e{_platform=M(mi);_containerElement;_document=M(ie);_styleLoader=M(io);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||to()){let s=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let r=0;r<s.length;r++)s[r].remove()}let i=this._document.createElement("div");i.classList.add(n),to()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(Oc)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ho=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(t,n,i,s){this._renderer=n,this._ngZone=i,this.element=t.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=n.listen(this.element,"click",s)}detach(){this._ngZone.runOutsideAngular(()=>{let t=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(t,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),t.style.pointerEvents="none",t.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Ps=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new I;_attachments=new I;_detachments=new I;_positionStrategy;_scrollStrategy;_locationChanges=Ie.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new I;_outsidePointerEvents=new I;_afterNextRenderRef;constructor(t,n,i,s,r,o,a,l,h,p=!1,v,C){this._portalOutlet=t,this._host=n,this._pane=i,this._config=s,this._ngZone=r,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=h,this._animationsDisabled=p,this._injector=v,this._renderer=C,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ps(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,t&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=A(A({},this._config),t),this._updateElementSize()}setDirection(t){this._config=be(A({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=ce(this._config.width),t.height=ce(this._config.height),t.minWidth=ce(this._config.minWidth),t.minHeight=ce(this._config.minHeight),t.maxWidth=ce(this._config.maxWidth),t.maxHeight=ce(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ho(this._document,this._renderer,this._ngZone,n=>{this._backdropClick.next(n)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(t))}):this._backdropRef.element.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(t,n,i){let s=no(n||[]).filter(r=>!!r);s.length&&(i?t.classList.add(...s):t.classList.remove(...s))}_detachContentWhenEmpty(){let t=!1;try{this._detachContentAfterRenderRef=ps(()=>{t=!0,this._detachContent()},{injector:this._injector})}catch(n){if(t)throw n;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let t=this._scrollStrategy;t?.disable(),t?.detach?.()}},Sc="cdk-overlay-connected-position-bounding-box",o_=/([A-Za-z%]+)$/;function Rc(e,t){return new Hs(t,e.get(In),e.get(ie),e.get(mi),e.get(Ui))}var Hs=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new I;_resizeSubscription=Ie.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(t,n,i,s,r){this._viewportRuler=n,this._document=i,this._platform=s,this._overlayContainer=r,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Sc),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,n=this._overlayRect,i=this._viewportRect,s=this._containerRect,r=[],o;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,s,a),h=this._getOverlayPoint(l,n,a),p=this._getOverlayFit(h,n,i,a);if(p.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(p,h,i)){r.push({position:a,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!o||o.overlayFit.visibleArea<p.visibleArea)&&(o={overlayFit:p,overlayPoint:h,originPoint:l,position:a,overlayRect:n})}if(r.length){let a=null,l=-1;for(let h of r){let p=h.boundingBoxRect.width*h.boundingBoxRect.height*(h.position.weight||1);p>l&&(l=p,a=h)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&fi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Sc),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,n)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,n,i){let s;if(i.originX=="center")s=t.left+t.width/2;else{let o=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;s=i.originX=="start"?o:a}n.left<0&&(s-=n.left);let r;return i.originY=="center"?r=t.top+t.height/2:r=i.originY=="top"?t.top:t.bottom,n.top<0&&(r-=n.top),{x:s,y:r}}_getOverlayPoint(t,n,i){let s;i.overlayX=="center"?s=-n.width/2:i.overlayX==="start"?s=this._isRtl()?-n.width:0:s=this._isRtl()?0:-n.width;let r;return i.overlayY=="center"?r=-n.height/2:r=i.overlayY=="top"?0:-n.height,{x:t.x+s,y:t.y+r}}_getOverlayFit(t,n,i,s){let r=Dc(n),{x:o,y:a}=t,l=this._getOffset(s,"x"),h=this._getOffset(s,"y");l&&(o+=l),h&&(a+=h);let p=0-o,v=o+r.width-i.width,C=0-a,x=a+r.height-i.height,R=this._subtractOverflows(r.width,p,v),j=this._subtractOverflows(r.height,C,x),H=R*j;return{visibleArea:H,isCompletelyWithinViewport:r.width*r.height===H,fitsInViewportVertically:j===r.height,fitsInViewportHorizontally:R==r.width}}_canFitWithFlexibleDimensions(t,n,i){if(this._hasFlexibleDimensions){let s=i.bottom-n.y,r=i.right-n.x,o=Mc(this._overlayRef.getConfig().minHeight),a=Mc(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||o!=null&&o<=s,h=t.fitsInViewportHorizontally||a!=null&&a<=r;return l&&h}return!1}_pushOverlayOnScreen(t,n,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let s=Dc(n),r=this._viewportRect,o=Math.max(t.x+s.width-r.width,0),a=Math.max(t.y+s.height-r.height,0),l=Math.max(r.top-i.top-t.y,0),h=Math.max(r.left-i.left-t.x,0),p=0,v=0;return s.width<=r.width?p=h||-o:p=t.x<this._viewportMargin?r.left-i.left-t.x:0,s.height<=r.height?v=l||-a:v=t.y<this._viewportMargin?r.top-i.top-t.y:0,this._previousPushAmount={x:p,y:v},{x:t.x+p,y:t.y+v}}_applyPosition(t,n){if(this._setTransformOrigin(t),this._setOverlayElementStyles(n,t),this._setBoundingBoxStyles(n,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!a_(this._lastScrollVisibility,i)){let s=new Ys(t,i);this._positionChanges.next(s)}this._lastScrollVisibility=i}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,s=t.overlayY;t.overlayX==="center"?i="center":this._isRtl()?i=t.overlayX==="start"?"right":"left":i=t.overlayX==="start"?"left":"right";for(let r=0;r<n.length;r++)n[r].style.transformOrigin=`${i} ${s}`}_calculateBoundingBoxRect(t,n){let i=this._viewportRect,s=this._isRtl(),r,o,a;if(n.overlayY==="top")o=t.y,r=i.height-o+this._viewportMargin;else if(n.overlayY==="bottom")a=i.height-t.y+this._viewportMargin*2,r=i.height-a+this._viewportMargin;else{let x=Math.min(i.bottom-t.y+i.top,t.y),R=this._lastBoundingBoxSize.height;r=x*2,o=t.y-x,r>R&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-R/2)}let l=n.overlayX==="start"&&!s||n.overlayX==="end"&&s,h=n.overlayX==="end"&&!s||n.overlayX==="start"&&s,p,v,C;if(h)C=i.width-t.x+this._viewportMargin*2,p=t.x-this._viewportMargin;else if(l)v=t.x,p=i.right-t.x;else{let x=Math.min(i.right-t.x+i.left,t.x),R=this._lastBoundingBoxSize.width;p=x*2,v=t.x-x,p>R&&!this._isInitialRender&&!this._growAfterOpen&&(v=t.x-R/2)}return{top:o,left:v,bottom:a,right:C,width:p,height:r}}_setBoundingBoxStyles(t,n){let i=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;s.height=ce(i.height),s.top=ce(i.top),s.bottom=ce(i.bottom),s.width=ce(i.width),s.left=ce(i.left),s.right=ce(i.right),n.overlayX==="center"?s.alignItems="center":s.alignItems=n.overlayX==="end"?"flex-end":"flex-start",n.overlayY==="center"?s.justifyContent="center":s.justifyContent=n.overlayY==="bottom"?"flex-end":"flex-start",r&&(s.maxHeight=ce(r)),o&&(s.maxWidth=ce(o))}this._lastBoundingBoxSize=i,fi(this._boundingBox.style,s)}_resetBoundingBoxStyles(){fi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){fi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,n){let i={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(s){let p=this._viewportRuler.getViewportScrollPosition();fi(i,this._getExactOverlayY(n,t,p)),fi(i,this._getExactOverlayX(n,t,p))}else i.position="static";let a="",l=this._getOffset(n,"x"),h=this._getOffset(n,"y");l&&(a+=`translateX(${l}px) `),h&&(a+=`translateY(${h}px)`),i.transform=a.trim(),o.maxHeight&&(s?i.maxHeight=ce(o.maxHeight):r&&(i.maxHeight="")),o.maxWidth&&(s?i.maxWidth=ce(o.maxWidth):r&&(i.maxWidth="")),fi(this._pane.style,i)}_getExactOverlayY(t,n,i){let s={top:"",bottom:""},r=this._getOverlayPoint(n,this._overlayRect,t);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),t.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;s.bottom=`${o-(r.y+this._overlayRect.height)}px`}else s.top=ce(r.y);return s}_getExactOverlayX(t,n,i){let s={left:"",right:""},r=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i));let o;if(this._isRtl()?o=t.overlayX==="end"?"left":"right":o=t.overlayX==="end"?"right":"left",o==="right"){let a=this._document.documentElement.clientWidth;s.right=`${a-(r.x+this._overlayRect.width)}px`}else s.left=ce(r.x);return s}_getScrollVisibility(){let t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:bc(t,i),isOriginOutsideView:co(t,i),isOverlayClipped:bc(n,i),isOverlayOutsideView:co(n,i)}}_subtractOverflows(t,...n){return n.reduce((i,s)=>i-Math.max(s,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+n-this._viewportMargin,width:t-2*this._viewportMargin,height:n-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,n){return n==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&no(t).forEach(n=>{n!==""&&this._appliedPanelClasses.indexOf(n)===-1&&(this._appliedPanelClasses.push(n),this._pane.classList.add(n))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof B)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let n=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+n,height:i,width:n}}};function fi(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Mc(e){if(typeof e!="number"&&e!=null){let[t,n]=e.split(o_);return!n||n==="px"?parseFloat(t):null}return e||null}function Dc(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}function a_(e,t){return e===t?!0:e.isOriginClipped===t.isOriginClipped&&e.isOriginOutsideView===t.isOriginOutsideView&&e.isOverlayClipped===t.isOverlayClipped&&e.isOverlayOutsideView===t.isOverlayOutsideView}var Cc="cdk-global-overlay-wrapper";function Ic(e){return new Ns}var Ns=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(t){let n=t.getConfig();this._overlayRef=t,this._width&&!n.width&&t.updateSize({width:this._width}),this._height&&!n.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Cc),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:o,maxHeight:a}=i,l=(s==="100%"||s==="100vw")&&(!o||o==="100%"||o==="100vw"),h=(r==="100%"||r==="100vh")&&(!a||a==="100%"||a==="100vh"),p=this._xPosition,v=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",x="",R="",j="";l?j="flex-start":p==="center"?(j="center",C?R=v:x=v):C?p==="left"||p==="end"?(j="flex-end",x=v):(p==="right"||p==="start")&&(j="flex-start",R=v):p==="left"||p==="start"?(j="flex-start",x=v):(p==="right"||p==="end")&&(j="flex-end",R=v),t.position=this._cssPosition,t.marginLeft=l?"0":x,t.marginTop=h?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":R,n.justifyContent=j,n.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,i=n.style;n.classList.remove(Cc),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},Ac=(()=>{class e{_injector=M(oe);constructor(){}global(){return Ic()}flexibleConnectedTo(n){return Rc(this._injector,n)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yc(e,t){e.get(io).load(Oc);let n=e.get(Ui),i=e.get(ie),s=e.get(gc),r=e.get(it),o=e.get(_c),a=i.createElement("div"),l=i.createElement("div");l.id=s.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),a.appendChild(l),n.getContainerElement().appendChild(a);let h=new Ls(l,r,e),p=new As(t),v=e.get(we,null,{optional:!0})||e.get(Le).createRenderer(null,null);return p.direction=p.direction||o.value,new Ps(h,a,l,p,e.get(ae),e.get(xc),i,e.get(tl),e.get(Lc),t?.disableAnimations??e.get(ms,null,{optional:!0})==="NoopAnimations",e.get(Pi),v)}var Bs=(()=>{class e{scrollStrategies=M(Fs);_positionBuilder=M(Ac);_injector=M(oe);constructor(){}create(n){return Yc(this._injector,n)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var l_=new gt("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let e=M(oe);return()=>Vs(e)}});function c_(e){let t=M(oe);return()=>Vs(t)}var d_={provide:l_,useFactory:c_},uo=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=he({type:e});static \u0275inj=de({providers:[Bs,d_],imports:[Rn,fc,ro,ro]})}return e})();var Pc=(()=>{class e extends Ui{_renderer=M(Le).createRenderer(null,null);_fullScreenEventName;_cleanupFullScreenListener;constructor(){super()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupFullScreenListener?.()}_createContainer(){let n=this._getEventName();super._createContainer(),this._adjustParentForFullscreenChange(),n&&(this._cleanupFullScreenListener?.(),this._cleanupFullScreenListener=this._renderer.listen("document",n,()=>{this._adjustParentForFullscreenChange()}))}_adjustParentForFullscreenChange(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_getEventName(){if(!this._fullScreenEventName){let n=this._document;n.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":n.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":n.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":n.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){let n=this._document;return n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||null}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var u_=200,js=class{_letterKeyStream=new I;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new I;selectedItem=this._selectedItem;constructor(t,n){let i=typeof n?.debounceInterval=="number"?n.debounceInterval:u_;n?.skipPredicate&&(this._skipPredicateFn=n.skipPredicate),this.setItems(t),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t}setItems(t){this._items=t}handleKey(t){let n=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(t){this._letterKeyStream.pipe(Ba(n=>this._pressedLetters.push(n)),Na(t),re(()=>this._pressedLetters.length>0),Ve(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(n=>{for(let i=1;i<this._items.length+1;i++){let s=(this._selectedItemIndex+i)%this._items.length,r=this._items[s];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(n)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var $s=class{_items;_activeItemIndex=W(-1);_activeItem=W(null);_wrap=!1;_typeaheadSubscription=Ie.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=t=>t.disabled;constructor(t,n){this._items=t,t instanceof Or?this._itemChangesSubscription=t.changes.subscribe(i=>this._itemsChanged(i.toArray())):Lr(t)&&(this._effectRef=ci(()=>this._itemsChanged(t()),{injector:n}))}tabOut=new I;change=new I;skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let n=this._getItemsArray();return this._typeahead=new js(n,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}withPageUpDown(t=!0,n=10){return this._pageUpAndDown={enabled:t,delta:n},this}setActiveItem(t){let n=this._activeItem();this.updateActiveItem(t),this._activeItem()!==n&&this.change.next(this._activeItemIndex())}onKeydown(t){let n=t.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!t[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(n){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex()+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(s||vc(t,"shiftKey"))&&this._typeahead?.handleKey(t);return}this._typeahead?.reset(),t.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){let n=this._getItemsArray(),i=typeof t=="number"?t:n.indexOf(t),s=n[i];this._activeItem.set(s??null),this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){let n=this._getItemsArray();for(let i=1;i<=n.length;i++){let s=(this._activeItemIndex()+t*i+n.length)%n.length,r=n[s];if(!this._skipPredicateFn(r)){this.setActiveItem(s);return}}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex()+t,t)}_setActiveItemByIndex(t,n){let i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(t+=n,!i[t])return;this.setActiveItem(t)}}_getItemsArray(){return Lr(this._items)?this._items():this._items instanceof Or?this._items.toArray():this._items}_itemsChanged(t){this._typeahead?.setItems(t);let n=this._activeItem();if(n){let i=t.indexOf(n);i>-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var Hn=class extends $s{_origin="program";setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}};var Hc=e=>({$implicit:e});function __(e,t){if(e&1){let n=T();_(0,"hr",4),b("mouseenter",function(){f(n);let s=c(2);return g(s.hideSubMenus())}),m()}if(e&2){let n=c().$implicit;u("contextMenuContentItem",n)}}function m_(e,t){}function p_(e,t){if(e&1){let n=T();_(0,"button",5,0),b("click",function(s){f(n);let r=Ar(1),o=c(2);return g(o.onMenuItemSelect(r,s))})("mouseenter",function(s){f(n);let r=Ar(1),o=c(2);return o.hideSubMenus(),g(o.openSubMenu(r.contextMenuContentItem==null?null:r.contextMenuContentItem.subMenu,s))}),S(2,m_,0,0,"ng-template",6),m()}if(e&2){let n=c().$implicit,i=c();L("ngx-contextmenu--parent-menu",!!n.subMenu),u("contextMenuContentItem",n),K("aria-haspopup",n.subMenu?"menu":null)("disabled",i.isMenuItemDisabled(n)?"disabled":null),d(2),u("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Yr(7,Hc,i.value))}}function f_(e,t){}function g_(e,t){if(e&1){let n=T();_(0,"span",7),b("click",function(s){f(n);let r=c(2);return g(r.stopEvent(s))})("contextmenu",function(s){f(n);let r=c(2);return g(r.stopEvent(s))})("mouseenter",function(){f(n);let s=c().$implicit,r=c();return g(r.isMenuItemDisabled(s)?null:r.hideSubMenus())}),S(1,f_,0,0,"ng-template",6),m()}if(e&2){let n=c().$implicit,i=c();L("disabled",i.isMenuItemDisabled(n)),u("contextMenuContentItem",n),K("aria-disabled",i.isMenuItemDisabled(n)),d(),u("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Yr(6,Hc,i.value))}}function v_(e,t){if(e&1&&(gs(0,__,1,1,"hr",1),gs(1,p_,3,9,"button",2),gs(2,g_,2,8,"span",3)),e&2){let n=t.$implicit;vs(n.divider?0:-1),d(),vs(!n.divider&&!n.passive?1:-1),d(),vs(!n.divider&&n.passive?2:-1)}}var zi=(e,t)=>e instanceof Function?e(t):!!e,y_=(()=>{var t;let n=class n{constructor(s){kr(this,t);this.template=s,this.divider=!1,this.passive=!1,this.visible=!0,this.execute=new E,ei(this,t,!1)}set disabled(s){ei(this,t,s)}get disabled(){return this.passive||this.divider||zi(ds(this,t),this.value)}triggerExecute(s,r){zi(ds(this,t),r)||this.execute.emit({event:s,value:r})}};t=new WeakMap,n.\u0275fac=function(r){return new(r||n)(y(si,8))},n.\u0275dir=Se({type:n,selectors:[["","contextMenuItem",""]],inputs:{subMenu:"subMenu",divider:"divider",disabled:"disabled",passive:"passive",visible:"visible"},outputs:{execute:"execute"},standalone:!1});let e=n;return e})(),_o=(()=>{let t=class t{get nativeElement(){return this.elementRef.nativeElement}constructor(i){this.elementRef=i}focus(i){this.elementRef.nativeElement.focus()}get disabled(){return zi(this.contextMenuContentItem?.disabled,this.contextMenuContentItem?.value)}};t.\u0275fac=function(s){return new(s||t)(y(B))},t.\u0275dir=Se({type:t,selectors:[["","contextMenuContentItem",""]],hostAttrs:[1,"ngx-context-menu-item"],inputs:{contextMenuContentItem:"contextMenuContentItem"},exportAs:["contextMenuContentItem"],standalone:!1});let e=t;return e})(),mo=(()=>{let t=class t{constructor(){this.allClosed=new E,this.stack=[]}push(i){this.stack.push(i)}closeAll(){this.stack.forEach(i=>this.dispose(i)),this.stack=[],this.allClosed.emit()}isEmpty(){return this.stack.length===0}dispose(i){i.detach(),i.dispose()}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),b_={FocusKeyManager:Hn},w_=(()=>{let t=class t{constructor(i,s,r){this.elementRef=i,this.document=s,this.contextMenuOverlaysService=r,this.menuDirectives=[],this.menuClass="",this.execute=new E,this.close=new E,this.role="menu",this.ariaOrientation="vertical",this.subscription=new Ie}ngAfterViewInit(){this.setupDirectives(),this.activeElement=this.document.activeElement,this.elementRef.nativeElement.focus()}ngOnDestroy(){this.activeElement?.focus(),this.subscription.unsubscribe(),this.focusKeyManager?.destroy()}onKeyArrowDownOrUp(i){this.focusKeyManager?.onKeydown(i)}onKeyArrowRight(i){this.openCloseActiveItemSubMenu(this.dir!=="rtl",i)}onKeyArrowLeft(i){this.openCloseActiveItemSubMenu(this.dir==="rtl",i)}onKeyEnterOrSpace(i){this.focusKeyManager?.activeItem&&this.onMenuItemSelect(this.focusKeyManager.activeItem,i)}onClickOrRightClick(i){i.type==="click"&&i.button===2||this.elementRef.nativeElement.contains(i.target)||this.contextMenuOverlaysService.closeAll()}hideSubMenus(){this.menuDirectives.forEach(i=>{i.subMenu?.hide()})}stopEvent(i){i.stopPropagation()}isMenuItemDisabled(i){return zi(i.disabled,this.value)}isMenuItemVisible(i){return zi(i.contextMenuContentItem?.visible,this.value)}openSubMenu(i,s){if(!i||this.focusKeyManager?.activeItemIndex===null)return;let r=this.contextMenuContentItems?.toArray()[this.focusKeyManager?.activeItemIndex??0],o=r&&r.nativeElement;if(o&&s instanceof KeyboardEvent){i.show({anchoredTo:"element",anchorElement:o,value:this.value,parentContextMenu:this});return}if(!i.isOpen){if(s.currentTarget){i.show({anchoredTo:"element",anchorElement:s.currentTarget,value:this.value,parentContextMenu:this});return}i.show({anchoredTo:"position",x:s.clientX,y:s.clientY,value:this.value})}}onMenuItemSelect(i,s){this.cancelEvent(s),this.openSubMenu(i.contextMenuContentItem?.subMenu,s),i.contextMenuContentItem?.subMenu||this.triggerExecute(i,s)}triggerExecute(i,s){i.contextMenuContentItem?.triggerExecute(s,this.value)}setupDirectives(){this.menuDirectives.forEach(i=>{i.value=this.value,this.subscription.add(i.execute.subscribe(s=>{this.execute.emit(be(A({},s),{menuDirective:i}))}))}),this.focusKeyManager=new b_.FocusKeyManager(this.contextMenuContentItems).withWrap()}openCloseActiveItemSubMenu(i,s){if(i){this.openActiveItemSubMenu(s);return}this.closeActiveItemSubMenu(s)}openActiveItemSubMenu(i){this.focusKeyManager?.activeItemIndex!==null&&(this.cancelEvent(i),this.focusKeyManager?.activeItem&&this.openSubMenu(this.focusKeyManager.activeItem?.contextMenuContentItem?.subMenu,i))}closeActiveItemSubMenu(i){this.hideSubMenus(),this.focusKeyManager?.activeItemIndex&&(this.close.emit(),this.cancelEvent(i))}cancelEvent(i){if(!i||!i.target)return;let s=i.target;["INPUT","TEXTAREA","SELECT"].includes(s.tagName)||s.isContentEditable||(i.preventDefault(),i.stopPropagation())}};t.\u0275fac=function(s){return new(s||t)(y(B),y(ie),y(mo))},t.\u0275cmp=U({type:t,selectors:[["context-menu-content"]],viewQuery:function(s,r){if(s&1&&li(_o,5,_o),s&2){let o;Pt(o=Ht())&&(r.contextMenuContentItems=o)}},hostAttrs:["tabindex","0","role","dialog",1,"ngx-contextmenu"],hostVars:5,hostBindings:function(s,r){s&1&&b("keydown.ArrowDown",function(a){return r.onKeyArrowDownOrUp(a)})("keydown.ArrowUp",function(a){return r.onKeyArrowDownOrUp(a)})("keydown.ArrowRight",function(a){return r.onKeyArrowRight(a)})("keydown.ArrowLeft",function(a){return r.onKeyArrowLeft(a)})("keydown.Enter",function(a){return r.onKeyEnterOrSpace(a)},Vi)("keydown.Space",function(a){return r.onKeyEnterOrSpace(a)},Vi)("click",function(a){return r.onClickOrRightClick(a)},za),s&2&&(K("dir",r.dir)("role",r.role)("aria-orientation",r.ariaOrientation),Oe(r.menuClass))},inputs:{menuDirectives:"menuDirectives",value:"value",dir:"dir",parentContextMenu:"parentContextMenu",menuClass:"menuClass"},outputs:{execute:"execute",close:"close"},standalone:!1,decls:2,vars:0,consts:[["buttonContextMenuContentItem","contextMenuContentItem"],["role","separator",3,"contextMenuContentItem"],["type","button","role","menuitem",3,"contextMenuContentItem","ngx-contextmenu--parent-menu"],["role","menuitem",1,"ngx-contextmenu-item--passive",3,"contextMenuContentItem","disabled"],["role","separator",3,"mouseenter","contextMenuContentItem"],["type","button","role","menuitem",3,"click","mouseenter","contextMenuContentItem"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","menuitem",1,"ngx-contextmenu-item--passive",3,"click","contextmenu","mouseenter","contextMenuContentItem"]],template:function(s,r){s&1&&Xa(0,v_,3,3,null,null,Ka),s&2&&Za(r.menuDirectives)},dependencies:[il,_o],encapsulation:2,changeDetection:0});let e=t;return e})(),S_=(e="ltr")=>e==="ltr"?[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"start",originY:"center",overlayX:"end",overlayY:"center"}]:[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"}],M_=(e="ltr")=>e==="ltr"?[{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}]:[{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"}],xS=(()=>{var t;let n=class n{constructor(s,r,o){kr(this,t);this.overlay=s,this.scrollStrategy=r,this.contextMenuOverlaysService=o,this.menuClass="",this.disabled=!1,this.open=new E,this.close=new E,this.visibleMenuItems=[],this.subscriptions=new Ie,ei(this,t,!1)}get isOpen(){return ds(this,t)}ngOnInit(){let s=this.contextMenuOverlaysService.allClosed.subscribe(()=>{ei(this,t,!1)});this.subscriptions.add(s)}ngOnDestroy(){this.subscriptions.unsubscribe()}show(s){this.disabled||(this.value=s.value,this.setVisibleMenuItems(),this.openContextMenu(be(A({},s),{menuItemDirectives:this.visibleMenuItems,menuClass:this.menuClass,dir:this.dir})),this.open.next(s))}hide(){this.contextMenuContentComponent?.menuDirectives.forEach(s=>{s.subMenu?.hide()}),this.overlayRef?.detach(),this.overlayRef?.dispose(),ei(this,t,!1)}openContextMenu(s){let r;if(s.anchoredTo==="position")r=this.overlay.position().flexibleConnectedTo({x:s.x,y:s.y}).withPositions(S_(s.dir));else{let{anchorElement:o,parentContextMenu:a}=s;r=this.overlay.position().flexibleConnectedTo(new B(o)).withPositions(M_(a.dir))}this.overlayRef=this.overlay.create({positionStrategy:r,panelClass:"ngx-contextmenu-overlay",scrollStrategy:this.scrollStrategy.close()}),this.contextMenuOverlaysService.push(this.overlayRef),this.attachContextMenu(s),ei(this,t,!0)}attachContextMenu(s){let{value:r,menuItemDirectives:o}=s,a=this.overlayRef?.attach(new Yn(w_)),l=a?.instance;if(!l)return;this.contextMenuContentComponent=l,l.value=r,l.menuDirectives=o,l.menuClass=this.getMenuClass(s),l.dir=this.getDir(s);let h=l.close.subscribe(()=>{this.overlayRef?.detach(),this.overlayRef?.dispose()}),p=l.execute.subscribe(()=>{this.contextMenuOverlaysService.closeAll()});a.onDestroy(()=>{this.close.emit(),h.unsubscribe(),p.unsubscribe()}),a.changeDetectorRef.detectChanges()}getMenuClass(s){return s.menuClass||s.anchoredTo==="element"&&s?.parentContextMenu?.menuClass||""}getDir(s){return s.dir||s.anchoredTo==="element"&&s?.parentContextMenu?.dir||void 0}isMenuItemVisible(s){return zi(s.visible,this.value)}setVisibleMenuItems(){this.visibleMenuItems=this.menuItems?.filter(s=>this.isMenuItemVisible(s))??[]}};t=new WeakMap,n.\u0275fac=function(r){return new(r||n)(y(Bs),y(Fs),y(mo))},n.\u0275cmp=U({type:n,selectors:[["context-menu"]],contentQueries:function(r,o,a){if(r&1&&qa(a,y_,4),r&2){let l;Pt(l=Ht())&&(o.menuItems=l)}},inputs:{menuClass:"menuClass",disabled:"disabled",dir:"dir"},outputs:{open:"open",close:"close"},standalone:!1,decls:0,vars:0,template:function(r,o){},encapsulation:2});let e=n;return e})();var LS=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=he({type:t}),t.\u0275inj=de({providers:[{provide:Ui,useClass:Pc}],imports:[di,uo]});let e=t;return e})(),Nc=(()=>{let t=class t{constructor(i){this.contextMenuOverlaysService=i}show(i,s={x:0,y:0}){i.show({anchoredTo:"position",value:s.value,x:s.x,y:s.y})}closeAll(){this.contextMenuOverlaysService.closeAll()}hasOpenMenu(){return!this.contextMenuOverlaysService.isEmpty()}};t.\u0275fac=function(s){return new(s||t)(N(mo))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var nt=(function(e){return e.ADD="a",e.MODIFY="m",e.DELETE="d",e.SHARE_INSIDE="si",e.SHARE_OUTSIDE="so",e})(nt||{}),pe=(function(e){return e.FILES="files",e.TRASH="trash",e.SHARES="shares",e})(pe||{}),gi=(function(e){return e.PERSONAL="personal",e.SPACES="spaces",e.SHARES="shares",e.TRASH="trash",e})(gi||{}),D_=(function(e){return e[e.IS_MEMBER=0]="IS_MEMBER",e[e.IS_MANAGER=1]="IS_MANAGER",e})(D_||{}),IS=Object.values(nt).sort().join(":"),AS={GET:null,POST:nt.ADD,PUT:nt.ADD,MKCOL:nt.ADD,PATCH:nt.MODIFY,PROPPATCH:nt.MODIFY,DELETE:nt.DELETE,MOVE:nt.DELETE,COPY:null,LOCK:nt.MODIFY,UNLOCK:nt.MODIFY},YS={id:0,alias:gi.PERSONAL,name:gi.PERSONAL,permissions:""},PS={id:0,alias:pe.SHARES,name:pe.SHARES,permissions:""};var VS="Sync-in",FS={WEBSITE:"https://sync-in.com",RELEASES:"https://github.com/Sync-in/server/releases",SERVER_VERSION_MANIFEST:"https://releases.sync-in.org/sync-in-server/latest.json"},k_=/^(?:CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$|[<>:"/\\|?*\x00-\x1f\x80-\x9f]/;var T_=/-\d+$/,BS='\\ / : * ? " < > |';function jS(e){if(k_.test(e))throw new Error("Forbidden characters")}function $S(e,t=!1){return Math.floor((e||new Date).getTime()/(t?1:1e3))}function WS(e){return new Date((e||new Date().toISOString()).split("T")[0])}function US(e,t=!1){let n=e.toLowerCase().trim().replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"");return t?n.replace(T_,""):n}function zS(e){return e.toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function GS(e=12){let t="0123456789abcdefghijklmnopqrstuvwxyz!@#$%^&*()ABCDEFGHIJKLMNOPQRSTUVWXYZ",n="";for(let i=0;i<=e;i++){let s=Math.floor(Math.random()*t.length);n+=t.substring(s,s+1)}return n}function KS(e,t){let n=t[e];return delete t[e],n}function Vc(e){return e.split("/").map(t=>encodeURIComponent(t)).join("/")}function XS(e,t){let n=t.split("."),i=e;for(let s=0,r=n.length;s<r;s++){let o=n[s];if(o in i)i=i[o];else return null}return i}function ZS(e){return e.charAt(0).toUpperCase()+e.slice(1)}function JS(e,t,n=":"){let i=e.split(n),s=t.split(n);return i.filter(r=>r!==""&&r!=="null"&&s.indexOf(r)>-1).sort().join(n)}var Nn="theme-dark",vi="theme-light",E_=(function(e){return e.FILES="files",e})(E_||{}),po=(function(e){return e.PROFILE="profile",e.ONLINES="onlines",e.TASKS="tasks",e.WINDOWS="windows",e.SELECTION="selection",e.TREE="tree",e.CLIPBOARD="clipboard",e.COMMENTS="comments",e.NOTIFICATIONS="notifications",e})(po||{});var fo=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],Fc=new Map([["#","%23"],["?","%3F"],["%","%25"],[" ","%20"]]);function x_(e){let t;try{t=decodeURIComponent(e)}catch(i){console.warn(i),t=e}let n=[];for(let i of t)n.push(Fc.get(i)||i);return n.join("")}function iM(e){for(let t of Fc.keys())if(e.indexOf(t)>-1)return x_(e);return!1}function nM(e,t=0,n=void 0){return e&&e.split("/").slice(t,n).join("/")}function sM(e,t){return e?.length?e.indexOf(t)>-1:!1}function rM(){return Math.random().toString(36).substring(7)}function oM(e,t,n=0){let i=fo.indexOf(t.toUpperCase());return parseInt((e*Math.pow(1024,Math.floor(i))).toFixed(n),10)}function aM(e,t=0,n=!1){if(e===0)return n?"0 KB":"";let i=Math.min(Math.floor(Math.log(e)/Math.log(1024)),fo.length-1);return`${(e/Math.pow(1024,Math.floor(i))).toFixed(t)} ${fo[i]}`}function lM(e,t=!1){if(!e)return 0;let n=Math.round(+new Date),i=typeof e=="number"?e:typeof e=="string"?new Date(e).getTime():e.getTime(),s=(n-i)/1e3;return s<86400?1:s<259200?2:s<604800?3:t?4:0}function cM(e){e.type==="password"?e.type="text":e.type="password"}function dM(e,t,n=!1){let i="";if(n)i+=t[t.length-1]?`/${t[t.length-1].path}`:"";else for(let s of t)i+=`/${s.path}`;return Vc(`${e}${i}`)}function hM(e){let t="";for(let n of e)t+=`/${n.path}`;return t||(t="/"),t}function uM(e){let t=e.getBoundingClientRect();return t.top>=100&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}function _M(e){let t=e+"=",i=decodeURIComponent(document.cookie).split(";");for(let s of i){for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""}function mM(e){return e&&e.toLowerCase().replace(/\b\w/g,t=>t.toUpperCase())}var pM=()=>0;function fM(e,t,n){let i=new RegExp(e,"i");return n?t.filter(s=>i.test(s[n].normalize())):t.filter(s=>i.test(JSON.stringify(Object.values(s))))}function gM(e,t=""){let n=document.createElement("a");n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Bc(){return window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?Nn:vi:vi}function vM(e,t){return e+t||1}function yM(e,t){return e-t||1}function bM(){return/Chrome|Firefox|Edge|Safari/.test(window.navigator.userAgent)}function wM(e,t,n){let i=e.indexOf(".")>-1?e.slice(e.lastIndexOf(".")):"",s=e.replace(new RegExp(`${i}$`),""),r=`${s}${i}`,o=0;for(let a of n)r===a[t]&&(o++,r=`${s}-${o}${i}`);return r}var Gi=(function(e){return e.DISABLED="disabled",e.ASYNC="async",e.SEQ="seq",e})(Gi||{}),Vn=(function(e){return e.NOTIFICATIONS="notifications",e.TASKS="tasks",e.SYNCS="syncs",e})(Vn||{});var Us="/api/app",L_={PROPFIND:"PROPFIND",PROPPATCH:"PROPPATCH",MKCOL:"MKCOL",COPY:"COPY",MOVE:"MOVE",LOCK:"LOCK",UNLOCK:"UNLOCK"},O_={SEARCH:"SEARCH"},R_={HEAD:"HEAD",OPTIONS:"OPTIONS",GET:"GET",POST:"POST",PATCH:"PATCH",PUT:"PUT",DELETE:"DELETE"},Ws=A(A(A({},R_),L_),O_),DM=new Set([Ws.GET,Ws.HEAD,Ws.OPTIONS,Ws.SEARCH]);var go="sync",Ki={BASE:`${Us}/${go}`,HANDSHAKE:"handshake",REGISTER:"register",UNREGISTER:"unregister",APP_STORE:"app-store",AUTH:"auth",CLIENTS:"clients",PATHS:"paths",OPERATION:"operation",DIFF:"diff",MAKE:"make"},EM=`${Ki.BASE}/${Ki.AUTH}/cookie`,xM=`${Ki.BASE}/${Ki.CLIENTS}`;var zs={SYNC:"Sync",SYNCS:"Synchronizations",TRANSFERS:"Transfers",WIZARD:"Wizard",WIZARD_CLIENT:"Client",WIZARD_SERVER:"Server",WIZARD_SETTINGS:"Settings"},Gs={SYNC:ll,TRANSFERS:Ml,WIZARD:Dl,SERVER:wl,CLIENT:xl},He={BASE:go,PATHS:Ki.PATHS,TRANSFERS:"transfers",WIZARD:"wizard",WIZARD_CLIENT:"client",WIZARD_SERVER:"server",WIZARD_SETTINGS:"settings"},ze={id:Pe.DESKTOP_APP_SYNC,title:zs.SYNC,link:He.BASE,icon:Gs.SYNC,iconAnimated:!1,checks:[{prop:"user",value:"clientId"}],count:{value:new F(0),level:"warning"},matchLink:new RegExp(`^${He.BASE}`),level:3,submenus:[{title:zs.SYNCS,icon:Gs.SYNC,link:`${He.BASE}/${He.PATHS}`,matchLink:new RegExp(`^${He.BASE}/${He.PATHS}`)},{title:zs.TRANSFERS,icon:Gs.TRANSFERS,link:`${He.BASE}/${He.TRANSFERS}`,matchLink:new RegExp(`^${He.BASE}/${He.TRANSFERS}`)},{title:zs.WIZARD,icon:Gs.WIZARD,link:`${He.BASE}/${He.WIZARD}`,matchLink:new RegExp(`^${He.BASE}/${He.WIZARD}`)}]};var jc={BASE:"/api/admin"};var Ne={BASE:"/api/users",ME:"me",LANGUAGE:"language",PASSWORD:"password",APP_PASSWORDS:"app_passwords",NOTIFICATION:"notification",STORAGE_INDEXING:"storage_indexing",AVATAR:"avatar",GROUPS:"groups",USERS:"users",GUESTS:"guests",BROWSE:"browse",GROUPS_LEAVE:"leave"},Vt=`${Ne.BASE}/${Ne.ME}`,NM=`${Vt}/${Ne.LANGUAGE}`,VM=`${Vt}/${Ne.PASSWORD}`,FM=`${Vt}/${Ne.APP_PASSWORDS}`,BM=`${Vt}/${Ne.NOTIFICATION}`,jM=`${Vt}/${Ne.STORAGE_INDEXING}`,$M=`${Vt}/${Ne.AVATAR}`,$c=`${Vt}/${Ne.GROUPS}`,WM=`${$c}/${Ne.BROWSE}`,UM=`${$c}/${Ne.GROUPS_LEAVE}`,zM=`${Vt}/${Ne.GUESTS}`,Wc=`${Ne.BASE}/${Ne.AVATAR}`,De={BASE:jc.BASE,LIST:"list",USERS:"users",GUESTS:"guests",GROUPS:"groups",PGROUPS:"personal_groups",MEMBERS:"members",IMPERSONATE:"impersonate",LOGOUT:"logout",BROWSE:"browse"},I_=`${De.BASE}/${De.USERS}`,GM=`${I_}/${De.LIST}`,A_=`${De.BASE}/${De.GUESTS}`,KM=`${A_}/${De.LIST}`,Y_=`${De.BASE}/${De.GROUPS}`,P_=`${De.BASE}/${De.PGROUPS}`,XM=`${Y_}/${De.BROWSE}`,ZM=`${P_}/${De.BROWSE}`,JM=`${De.BASE}/${De.MEMBERS}`,H_=`${De.BASE}/${De.IMPERSONATE}`,qM=`${H_}/${De.LOGOUT}`;function N_(e){return`${Wc}/${e}`}function Uc(){return`${N_("me")}?random=${Math.floor(Math.random()*1e3)}`}var zc=(()=>{let t=class t{constructor(){this.server=W({twoFaEnabled:!1,mailServerEnabled:!1}),this.user=new F(null),this.userAvatarUrl=new F(Uc()),this.userImpersonate=W(!1),this.isElectronApp=W(!1),this.breadcrumb=new F(""),this.repository=W(null),this.filesClipboard=new F([]),this.filesActiveTasks=new F([]),this.filesEndedTasks=new F([]),this.filesRecents=W([]),this.filesOnlyOffice=W({enabled:null}),this.currentSearch=W({content:"",fullText:!1}),this.filesSearch=W([]),this.commentsRecents=W([]),this.onlineUsers=W([]),this.notifications=W([]),this.unreadNotifications=Pr(()=>this.notifications().filter(i=>!i.wasRead)),this.filesSelection=W([]),this.shareSelection=W(null),this.linkSelection=W(null),this.spaceSelection=W(null),this.trashSelection=W(null),this.filesOnEvent=new I,this.clientScheduler=W(Gi.DISABLED),this.clientSyncPaths=W([]),this.clientSyncs=new F([]),this.clientSyncsWithErrors=new F([]),this.clientSyncIsReporting=new F(!1),this.clientSyncTask=new F({syncPathId:0,nbTasks:0}),this.clientSyncTasksCount=new F(0),this.appStoreManifest=W(null)}clean(){this.user.next(null),this.userImpersonate.set(!1),this.breadcrumb.next(""),this.repository.set(null),this.filesClipboard.next([]),this.filesActiveTasks.next([]),this.filesEndedTasks.next([]),this.filesRecents.set([]),this.filesSearch.set([]),this.commentsRecents.set([]),this.onlineUsers.set([]),this.notifications.set([]),this.filesSelection.set([]),this.shareSelection.set(null),this.linkSelection.set(null),this.spaceSelection.set(null),this.trashSelection.set(null),this.clientScheduler.set(Gi.DISABLED),this.clientSyncPaths.set([]),this.clientSyncs.next([]),this.clientSyncsWithErrors.next([]),this.clientSyncIsReporting.next(!1),this.clientSyncTask.next({syncPathId:0,nbTasks:0}),this.clientSyncTasksCount.next(0)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Gc="sync-in";var Fn=(function(e){return e.PERSONAL="personal",e.SPACES="spaces",e.SHARES="shares",e})(Fn||{}),cD={[Fn.PERSONAL]:[pe.FILES,Fn.PERSONAL],[Fn.SPACES]:[pe.FILES],[Fn.SHARES]:[pe.SHARES]};var V_=(function(e){return e.DOWNLOAD="download",e.UPLOAD="upload",e.BOTH="both",e})(V_||{}),F_=(function(e){return e.FAST="fast",e.SECURE="secure",e})(F_||{}),B_=(function(e){return e.RECENT="recent",e.LOCAL="local",e.REMOTE="remote",e})(B_||{}),j_=(function(e){return e.DISABLED="disabled",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e})(j_||{});function Kc(e){return e!=null&&`${e}`!="false"}var vo;try{vo=typeof Intl<"u"&&Intl.v8BreakIterator}catch{vo=!1}var Zc=(()=>{let t=class t{constructor(i){this._platformId=i,this.isBrowser=this._platformId?Bi(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||vo)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(s){return new(s||t)(N(Ni))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Jc=(()=>{let t=class t{constructor(i){this._platform=i}isDisabled(i){return i.hasAttribute("disabled")}isVisible(i){return W_(i)&&getComputedStyle(i).visibility==="visible"}isTabbable(i){if(!this._platform.isBrowser)return!1;let s=$_(q_(i));if(s&&(Xc(s)===-1||!this.isVisible(s)))return!1;let r=i.nodeName.toLowerCase(),o=Xc(i);return i.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Z_(i)?!1:r==="audio"?i.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||i.hasAttribute("controls"):i.tabIndex>=0}isFocusable(i,s){return J_(i)&&!this.isDisabled(i)&&(s?.ignoreVisibility||this.isVisible(i))}};t.\u0275fac=function(s){return new(s||t)(N(Zc))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function $_(e){try{return e.frameElement}catch{return null}}function W_(e){return!!(e.offsetWidth||e.offsetHeight||typeof e.getClientRects=="function"&&e.getClientRects().length)}function U_(e){let t=e.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function z_(e){return K_(e)&&e.type=="hidden"}function G_(e){return X_(e)&&e.hasAttribute("href")}function K_(e){return e.nodeName.toLowerCase()=="input"}function X_(e){return e.nodeName.toLowerCase()=="a"}function qc(e){if(!e.hasAttribute("tabindex")||e.tabIndex===void 0)return!1;let t=e.getAttribute("tabindex");return t=="-32768"?!1:!!(t&&!isNaN(parseInt(t,10)))}function Xc(e){if(!qc(e))return null;let t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function Z_(e){let t=e.nodeName.toLowerCase(),n=t==="input"&&e.type;return n==="text"||n==="password"||t==="select"||t==="textarea"}function J_(e){return z_(e)?!1:U_(e)||G_(e)||e.hasAttribute("contenteditable")||qc(e)}function q_(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}var Q_=(()=>{let t=class t{constructor(){this._focusTrapStack=[]}register(i){this._focusTrapStack=this._focusTrapStack.filter(r=>r!==i);let s=this._focusTrapStack;s.length&&s[s.length-1]._disable(),s.push(i),i._enable()}deregister(i){i._disable();let s=this._focusTrapStack,r=s.indexOf(i);r!==-1&&(s.splice(r,1),s.length&&s[s.length-1]._enable())}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var yo=class{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,n,i,s,r=!1){this._element=t,this._checker=n,this._ngZone=i,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),n&&(n.removeEventListener("focus",this.endAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let n=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i<n.length;i++)n[i].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,n[i]):n[i].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,n[i]);return t=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(),!!n}return t.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){let t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){let t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let n=t.children||t.childNodes;for(let i=0;i<n.length;i++){let s=n[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[i]):null;if(s)return s}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let n=t.children||t.childNodes;for(let i=n.length-1;i>=0;i--){let s=n[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[i]):null;if(s)return s}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(wn(1)).subscribe(t)}},em=(()=>{let t=class t{constructor(i,s,r){this._checker=i,this._ngZone=s,this._document=r}create(i,s=!1){return new yo(i,this._checker,this._ngZone,this._document,s)}};t.\u0275fac=function(s){return new(s||t)(N(Jc),N(ae),N(ie))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Qc=(()=>{let t=class t{get enabled(){return this.focusTrap.enabled}set enabled(i){this.focusTrap.enabled=Kc(i)}get autoCapture(){return this._autoCapture}set autoCapture(i){this._autoCapture=Kc(i)}constructor(i,s,r){this._elementRef=i,this._focusTrapFactory=s,this._previouslyFocusedElement=null,this._autoCapture=!1,this._document=r,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(i){let s=i.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}};t.\u0275fac=function(s){return new(s||t)(y(B),y(em),y(ie))},t.\u0275dir=Se({type:t,selectors:[["","focusTrap",""]],inputs:{enabled:[0,"cdkTrapFocus","enabled"],autoCapture:[0,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["focusTrap"],features:[ue([Q_,Zc,Jc]),vt]});let e=t;return e})();var tm=["*"],ed=(()=>{let t=class t{constructor(){this.hide=()=>{},this.setClass=()=>{}}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var td=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),Ks={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{},closeInterceptor:void 0},im=new gt("override-default-config"),ut={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",IN:"in",SHOW:"show"};var Xs={MODAL:300,BACKDROP:150},bo={BACKRDOP:"backdrop-click",ESC:"esc",BACK:"browser-back-navigation-clicked"},nm=(()=>{let t=class t{get isAnimated(){return this._isAnimated}set isAnimated(i){this._isAnimated=i}get isShown(){return this._isShown}set isShown(i){this._isShown=i,i?this.renderer.addClass(this.element.nativeElement,`${ut.SHOW}`):this.renderer.removeClass(this.element.nativeElement,`${ut.SHOW}`)}constructor(i,s){this._isAnimated=!1,this._isShown=!1,this.element=i,this.renderer=s}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,`${ut.FADE}`),Ms.reflow(this.element.nativeElement)),this.isShown=!0}};t.\u0275fac=function(s){return new(s||t)(y(B),y(we))},t.\u0275cmp=U({type:t,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(s,r){},encapsulation:2});let e=t;return e})(),sm=1,wo=(()=>{let t=class t{constructor(i,s,r){this.clf=s,this.modalDefaultOption=r,this.onShow=new E,this.onShown=new E,this.onHide=new E,this.onHidden=new E,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastHiddenId=null,this.loaders=[],this._focusEl=null,this._backdropLoader=this.clf.createLoader(),this._renderer=i.createRenderer(null,null),this.config=r?Object.assign({},Ks,r):Ks}show(i,s){this._focusEl=me.activeElement,this.modalsCount++,this.lastHiddenId=null,this._createLoaders();let r=s?.id||sm++;return this.config=this.modalDefaultOption?Object.assign({},Ks,this.modalDefaultOption,s):Object.assign({},Ks,s),this.config.id=r,this._showBackdrop(),this.lastDismissReason=void 0,this._showModal(i)}hide(i){this.lastHiddenId!==i&&(this.lastHiddenId=i,(this.modalsCount===1||i==null)&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&i!=null?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(i),this.removeLoaders(i)},this.config.animated?Xs.BACKDROP:0),this._focusEl&&this._focusEl.focus())}_showBackdrop(){let i=this.config.backdrop===!0||this.config.backdrop==="static",s=!this.backdropRef||!this.backdropRef.instance.isShown;this.modalsCount===1&&(this.removeBackdrop(),i&&s&&(this._backdropLoader.attach(nm).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){if(!this.backdropRef)return;this.backdropRef.instance.isShown=!1;let i=this.config.animated?Xs.BACKDROP:0;setTimeout(()=>this.removeBackdrop(),i)}_showModal(i){let s=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(let a of this.config.providers)s.provide(a);let r=new ed,o=s.provide({provide:td,useValue:this.config}).provide({provide:ed,useValue:r}).attach(rm).to("body");return r.hide=()=>o.instance?.hide(),r.setClass=a=>{o.instance&&(o.instance.config.class=a)},r.onHidden=new E,r.onHide=new E,this.copyEvent(s.onBeforeHide,r.onHide),this.copyEvent(s.onHidden,r.onHidden),o.show({content:i,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),o.instance&&(o.instance.level=this.getModalsCount(),r.content=s.getInnerComponent(),r.id=o.instance.config?.id),r}_hideModal(i){if(i!=null){let s=this.loaders.findIndex(o=>o.instance?.config.id===i),r=this.loaders[s];r&&r.hide(i)}else this.loaders.forEach(s=>{s.instance&&s.hide(s.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(i){this.lastDismissReason=i}removeBackdrop(){this._renderer.removeClass(me.body,ut.OPEN),this._renderer.setStyle(me.body,"overflow-y",""),this._backdropLoader.hide(),this.backdropRef=void 0}checkScrollbar(){this.isBodyOverflowing=me.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){me&&(this.originalBodyPadding=parseInt(window.getComputedStyle(me.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(me.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){me.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){let i=this._renderer.createElement("div");this._renderer.addClass(i,ut.SCROLLBAR_MEASURER),this._renderer.appendChild(me.body,i);let s=i.offsetWidth-i.clientWidth;return this._renderer.removeChild(me.body,i),s}_createLoaders(){let i=this.clf.createLoader();this.copyEvent(i.onBeforeShow,this.onShow),this.copyEvent(i.onShown,this.onShown),this.copyEvent(i.onBeforeHide,this.onHide),this.copyEvent(i.onHidden,this.onHidden),this.loaders.push(i)}removeLoaders(i){if(i!=null){let s=this.loaders.findIndex(r=>r.instance?.config.id===i);s>=0&&(this.loaders.splice(s,1),this.loaders.forEach((r,o)=>{r.instance&&(r.instance.level=o+1)}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(i,s){i.subscribe(r=>{s.emit(this.lastDismissReason||r)})}};t.\u0275fac=function(s){return new(s||t)(N(Le),N(Ue),N(im,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),rm=(()=>{let t=class t{constructor(i,s,r){this._element=s,this._renderer=r,this.isShown=!1,this.isAnimated=!1,this._focusEl=null,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},i)}ngOnInit(){this._focusEl=me.activeElement,this.isAnimated&&this._renderer.addClass(this._element.nativeElement,ut.FADE),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,ut.SHOW)},this.isAnimated?Xs.BACKDROP:0),me&&me.body&&(this.bsModalService&&this.bsModalService.getModalsCount()===1&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(me.body,ut.OPEN),this._renderer.setStyle(me.body,"overflow-y","hidden")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(i){this.clickStartedInContent=i.target!==this._element.nativeElement}onClickStop(i){let s=i.target===this._element.nativeElement&&!this.clickStartedInContent;if(this.config.ignoreBackdropClick||this.config.backdrop==="static"||!s){this.clickStartedInContent=!1;return}this.bsModalService?.setDismissReason(bo.BACKRDOP),this.hide()}onPopState(){this.bsModalService?.setDismissReason(bo.BACK),this.hide()}onEsc(i){this.isShown&&((i.keyCode===27||i.key==="Escape")&&i.preventDefault(),this.config.keyboard&&this.level===this.bsModalService?.getModalsCount()&&(this.bsModalService?.setDismissReason(bo.ESC),this.hide()))}ngOnDestroy(){this.isShown&&this._hide()}hide(){if(!this.isModalHiding){if(this.config.closeInterceptor){this.config.closeInterceptor().then(()=>this._hide(),()=>{});return}this._hide()}}_hide(){this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,ut.SHOW),setTimeout(()=>{this.isShown=!1,this.bsModalService?.hide(this.config.id),me&&me.body&&this.bsModalService?.getModalsCount()===0&&(this._renderer.removeClass(me.body,ut.OPEN),this._renderer.setStyle(me.body,"overflow-y","")),this.bsModalService?.hide(this.config.id),this.isModalHiding=!1,this._focusEl&&this._focusEl.focus()},this.isAnimated?Xs.MODAL:0)}};t.\u0275fac=function(s){return new(s||t)(y(td),y(B),y(we))},t.\u0275cmp=U({type:t,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(s,r){s&1&&b("mousedown",function(a){return r.onClickStarted(a)})("click",function(a){return r.onClickStop(a)})("popstate",function(){return r.onPopState()},Vi)("keydown.esc",function(a){return r.onEsc(a)},Vi),s&2&&K("aria-modal",!0)("aria-labelledby",r.config.ariaLabelledBy)("aria-describedby",r.config.ariaDescribedby)},features:[ue([wo])],ngContentSelectors:tm,decls:3,vars:2,consts:[["role","document","focusTrap",""],[1,"modal-content"]],template:function(s,r){s&1&&(ai(),_(0,"div",0)(1,"div",1),Yt(2),m()()),s&2&&Oe("modal-dialog"+(r.config.class?" "+r.config.class:""))},dependencies:[Qc],encapsulation:2});let e=t;return e})();var Ft=(function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e})(Ft||{}),om="*";function Bn(e,t){return{type:Ft.Trigger,name:e,definitions:t,options:{}}}function Bt(e,t=null){return{type:Ft.Animate,styles:t,timings:e}}function id(e,t=null){return{type:Ft.Sequence,steps:e,options:t}}function _t(e){return{type:Ft.Style,styles:e,offset:null}}function jt(e,t,n){return{type:Ft.State,name:e,styles:t,options:n}}function $t(e,t,n=null){return{type:Ft.Transition,expr:e,animation:t,options:n}}var So=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,n=0){this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},Mo=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let n=0,i=0,s=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++n==r&&this._onFinish()}),o.onDestroy(()=>{++i==r&&this._onDestroy()}),o.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(i=>{let s=i.totalTime?Math.min(1,n/i.totalTime):1;i.setPosition(s)})}getPosition(){let t=this.players.reduce((n,i)=>n===null||i.totalTime>n.totalTime?i:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(i=>i()),n.length=0}},am="!";var lm=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:()=>M(cm),providedIn:"root"})}return e})(),Do=class{},cm=(()=>{class e extends lm{animationModuleType=M(ms,{optional:!0});_nextAnimationId=0;_renderer;constructor(n,i){super();let s={id:"0",encapsulation:Wa.None,styles:[],data:{animation:[]}};if(this._renderer=n.createRenderer(i.body,s),this.animationModuleType===null&&!hm(this._renderer))throw new xr(3600,!1)}build(n){let i=this._nextAnimationId;this._nextAnimationId++;let s=Array.isArray(n)?id(n):n;return nd(this._renderer,null,i,"register",[s]),new Co(i,this._renderer)}static \u0275fac=function(i){return new(i||e)(N(Le),N(ie))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Co=class extends Do{_id;_renderer;constructor(t,n){super(),this._id=t,this._renderer=n}create(t,n){return new ko(this._id,t,n||{},this._renderer)}},ko=class{id;element;_renderer;parentPlayer=null;_started=!1;constructor(t,n,i,s){this.id=t,this.element=n,this._renderer=s,this._command("create",i)}_listen(t,n){return this._renderer.listen(this.element,`@@${this.id}:${t}`,n)}_command(t,...n){nd(this._renderer,this.element,this.id,t,n)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return dm(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0};function nd(e,t,n,i,s){e.setProperty(t,`@@${n}:${i}`,s)}function dm(e){let t=e.\u0275type;return t===0?e:t===1?e.animationRenderer:null}function hm(e){let t=e.\u0275type;return t===0||t===1}var sd=["toast-component",""];function um(e,t){if(e&1){let n=T();_(0,"button",5),b("click",function(){f(n);let s=c();return g(s.remove())}),_(1,"span",6),D(2,"\xD7"),m()()}}function _m(e,t){if(e&1&&(bt(0),D(1),wt()),e&2){let n=c(2);d(),ke("[",n.duplicatesCount+1,"]")}}function mm(e,t){if(e&1&&(_(0,"div"),D(1),S(2,_m,2,1,"ng-container",4),m()),e&2){let n=c();Oe(n.options.titleClass),K("aria-label",n.title),d(),ke(" ",n.title," "),d(),u("ngIf",n.duplicatesCount)}}function pm(e,t){if(e&1&&z(0,"div",7),e&2){let n=c();Oe(n.options.messageClass),u("innerHTML",n.message,Rr)}}function fm(e,t){if(e&1&&(_(0,"div",8),D(1),m()),e&2){let n=c();Oe(n.options.messageClass),K("aria-label",n.message),d(),ke(" ",n.message," ")}}function gm(e,t){if(e&1&&(_(0,"div"),z(1,"div",9),m()),e&2){let n=c();d(),St("width",n.width()+"%")}}function vm(e,t){if(e&1){let n=T();_(0,"button",5),b("click",function(){f(n);let s=c();return g(s.remove())}),_(1,"span",6),D(2,"\xD7"),m()()}}function ym(e,t){if(e&1&&(bt(0),D(1),wt()),e&2){let n=c(2);d(),ke("[",n.duplicatesCount+1,"]")}}function bm(e,t){if(e&1&&(_(0,"div"),D(1),S(2,ym,2,1,"ng-container",4),m()),e&2){let n=c();Oe(n.options.titleClass),K("aria-label",n.title),d(),ke(" ",n.title," "),d(),u("ngIf",n.duplicatesCount)}}function wm(e,t){if(e&1&&z(0,"div",7),e&2){let n=c();Oe(n.options.messageClass),u("innerHTML",n.message,Rr)}}function Sm(e,t){if(e&1&&(_(0,"div",8),D(1),m()),e&2){let n=c();Oe(n.options.messageClass),K("aria-label",n.message),d(),ke(" ",n.message," ")}}function Mm(e,t){if(e&1&&(_(0,"div"),z(1,"div",9),m()),e&2){let n=c();d(),St("width",n.width()+"%")}}var To=class{_attachedHost;component;viewContainerRef;injector;constructor(t,n){this.component=t,this.injector=n}attach(t,n){return this._attachedHost=t,t.attach(this,n)}detach(){let t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Eo=class{_attachedPortal;_disposeFn;attach(t,n){return this._attachedPortal=t,this.attachComponentPortal(t,n)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}},xo=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new I;_activate=new I;_manualClose=new I;_resetTimeout=new I;_countDuplicate=new I;constructor(t){this._overlayRef=t}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,n){t&&this._resetTimeout.next(),n&&this._countDuplicate.next(++this.duplicatesCount)}},Xi=class{toastId;config;message;title;toastType;toastRef;_onTap=new I;_onAction=new I;constructor(t,n,i,s,r,o){this.toastId=t,this.config=n,this.message=i,this.title=s,this.toastType=r,this.toastRef=o,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}},rd={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},od=new gt("ToastConfig"),Lo=class extends Eo{_hostDomElement;_componentFactoryResolver;_appRef;constructor(t,n,i){super(),this._hostDomElement=t,this._componentFactoryResolver=n,this._appRef=i}attachComponentPortal(t,n){let i=this._componentFactoryResolver.resolveComponentFactory(t.component),s;return s=i.create(t.injector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()}),n?this._hostDomElement.insertBefore(this._getComponentRootNode(s),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(s)),s}_getComponentRootNode(t){return t.hostView.rootNodes[0]}},Dm=(()=>{class e{_document=M(ie);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n=this._document.createElement("div");n.classList.add("overlay-container"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),this._containerElement=n}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oo=class{_portalHost;constructor(t){this._portalHost=t}attach(t,n=!0){return this._portalHost.attach(t,n)}detach(){return this._portalHost.detach()}},Cm=(()=>{class e{_overlayContainer=M(Dm);_componentFactoryResolver=M(fs);_appRef=M(it);_document=M(ie);_paneElements=new Map;create(n,i){return this._createOverlayRef(this.getPaneElement(n,i))}getPaneElement(n="",i){return this._paneElements.get(i)||this._paneElements.set(i,{}),this._paneElements.get(i)[n]||(this._paneElements.get(i)[n]=this._createPaneElement(n,i)),this._paneElements.get(i)[n]}_createPaneElement(n,i){let s=this._document.createElement("div");return s.id="toast-container",s.classList.add(n),s.classList.add("toast-container"),i?i.getContainerElement().appendChild(s):this._overlayContainer.getContainerElement().appendChild(s),s}_createPortalHost(n){return new Lo(n,this._componentFactoryResolver,this._appRef)}_createOverlayRef(n){return new Oo(this._createPortalHost(n))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Zs=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(n,i,s,r,o){this.overlay=i,this._injector=s,this.sanitizer=r,this.ngZone=o,this.toastrConfig=A(A({},n.default),n.config),n.config.iconClasses&&(this.toastrConfig.iconClasses=A(A({},n.default.iconClasses),n.config.iconClasses))}show(n,i,s={},r=""){return this._preBuildNotification(r,n,i,this.applyConfig(s))}success(n,i,s={}){let r=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(r,n,i,this.applyConfig(s))}error(n,i,s={}){let r=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(r,n,i,this.applyConfig(s))}info(n,i,s={}){let r=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(r,n,i,this.applyConfig(s))}warning(n,i,s={}){let r=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(r,n,i,this.applyConfig(s))}clear(n){for(let i of this.toasts)if(n!==void 0){if(i.toastId===n){i.toastRef.manualClose();return}}else i.toastRef.manualClose()}remove(n){let i=this._findToast(n);if(!i||(i.activeToast.toastRef.close(),this.toasts.splice(i.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let s=this.toasts[this.currentlyActive].toastRef;s.isInactive()||(this.currentlyActive=this.currentlyActive+1,s.activate())}return!0}findDuplicate(n="",i="",s,r){let{includeTitleDuplicates:o}=this.toastrConfig;for(let a of this.toasts){let l=o&&a.title===n;if((!o||l)&&a.message===i)return a.toastRef.onDuplicate(s,r),a}return null}applyConfig(n={}){return A(A({},this.toastrConfig),n)}_findToast(n){for(let i=0;i<this.toasts.length;i++)if(this.toasts[i].toastId===n)return{index:i,activeToast:this.toasts[i]};return null}_preBuildNotification(n,i,s,r){return r.onActivateTick?this.ngZone.run(()=>this._buildNotification(n,i,s,r)):this._buildNotification(n,i,s,r)}_buildNotification(n,i,s,r){if(!r.toastComponent)throw new Error("toastComponent required");let o=this.findDuplicate(s,i,this.toastrConfig.resetTimeoutOnDuplicate&&r.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&s||i)&&this.toastrConfig.preventDuplicates&&o!==null)return o;this.previousToastMessage=i;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let l=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let h=i;i&&r.enableHtml&&(h=this.sanitizer.sanitize(Ua.HTML,i));let p=new xo(l),v=new Xi(this.index,r,h,s,n,p),C=[{provide:Xi,useValue:v}],x=oe.create({providers:C,parent:this._injector}),R=new To(r.toastComponent,x),j=l.attach(R,r.newestOnTop);p.componentInstance=j.instance;let H={toastId:this.index,title:s||"",message:i||"",toastRef:p,onShown:p.afterActivate(),onHidden:p.afterClosed(),onTap:v.onTap(),onAction:v.onAction(),portal:j};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{H.toastRef.activate()})),this.toasts.push(H),H}static \u0275fac=function(i){return new(i||e)(N(od),N(Cm),N(oe),N(sl),N(ae))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),km=(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=W(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(n,i,s){this.toastrService=n,this.toastPackage=i,this.ngZone=s,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r}),this.state=W({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(n=>be(A({},n),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let n=new Date().getTime(),i=this.hideTime-n;this.width.set(i/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(s=>100-s),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(n=>be(A({},n),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(n=>be(A({},n),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(n,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(n),i)):this.timeout=setTimeout(()=>n(),i)}outsideInterval(n,i){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(n),i)):this.intervalId=setInterval(()=>n(),i)}runInsideAngular(n){this.ngZone?this.ngZone.run(()=>n()):n()}static \u0275fac=function(i){return new(i||e)(y(Zs),y(Xi),y(ae))};static \u0275cmp=U({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(i,s){i&1&&b("click",function(){return s.tapToast()})("mouseenter",function(){return s.stickAround()})("mouseleave",function(){return s.delayedHideToast()}),i&2&&(Ja("@flyInOut",s._state),Oe(s.toastClasses),St("display",s.displayStyle))},attrs:sd,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,s){i&1&&S(0,um,3,0,"button",0)(1,mm,3,5,"div",1)(2,pm,1,3,"div",2)(3,fm,2,4,"div",3)(4,gm,2,2,"div",4),i&2&&(u("ngIf",s.options.closeButton),d(),u("ngIf",s.title),d(),u("ngIf",s.message&&s.options.enableHtml),d(),u("ngIf",s.message&&!s.options.enableHtml),d(),u("ngIf",s.options.progressBar))},dependencies:[Fe],encapsulation:2,data:{animation:[Bn("flyInOut",[jt("inactive",_t({opacity:0})),jt("active",_t({opacity:1})),jt("removed",_t({opacity:0})),$t("inactive => active",Bt("{{ easeTime }}ms {{ easing }}")),$t("active => removed",Bt("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})(),Tm=be(A({},rd),{toastComponent:km}),aC=(e={})=>ja([{provide:od,useValue:{default:Tm,config:e}}]);var Em=(()=>{class e{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=W(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=W("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(n,i,s){this.toastrService=n,this.toastPackage=i,this.appRef=s,this.message=i.message,this.title=i.title,this.options=i.config,this.originalTimeout=i.config.timeOut,this.toastClasses=`${i.toastType} ${i.config.toastClass}`,this.sub=i.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=i.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=i.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=i.toastRef.countDuplicate().subscribe(r=>{this.duplicatesCount=r})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let n=new Date().getTime(),i=this.hideTime-n;this.width.set(i/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(s=>100-s),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(i){return new(i||e)(y(Zs),y(Xi),y(it))};static \u0275cmp=U({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(i,s){i&1&&b("click",function(){return s.tapToast()})("mouseenter",function(){return s.stickAround()})("mouseleave",function(){return s.delayedHideToast()}),i&2&&(Oe(s.toastClasses),St("display",s.displayStyle))},attrs:sd,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(i,s){i&1&&S(0,vm,3,0,"button",0)(1,bm,3,5,"div",1)(2,wm,1,3,"div",2)(3,Sm,2,4,"div",3)(4,Mm,2,2,"div",4),i&2&&(u("ngIf",s.options.closeButton),d(),u("ngIf",s.title),d(),u("ngIf",s.message&&s.options.enableHtml),d(),u("ngIf",s.message&&!s.options.enableHtml),d(),u("ngIf",s.options.progressBar))},dependencies:[Fe],encapsulation:2,changeDetection:0})}return e})(),lC=be(A({},rd),{toastComponent:Em});var jn=new Set(["de","en","es","fr","hi","it","ja","ko","pl","pt","pt-BR","ru","tr","zh"]);function ad(e){if(!e)return null;if(jn.has(e))return e;let t=e.split("-")[0];return jn.has(t)?t:null}function xm(e,t){return(e%t+t)%t}function Di(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function je(e){return typeof e=="string"}function es(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function xt(e){return e&&e.getTime&&!isNaN(e.getTime())}function ki(e){return e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function hn(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function J(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Te(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ei(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Lm(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;let t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function Fd(e){return e===void 0}function Y(e){let t=+e,n=0;return t!==0&&isFinite(t)&&(n=Di(t)),n}var Gn={},ld={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function Ee(e,t){let n=e.toLowerCase(),i=e;n in ld&&(i=ld[n]),Gn[n]=Gn[`${n}s`]=Gn[t]=i}function Bd(e){return je(e)?Gn[e]||Gn[e.toLowerCase()]:void 0}function Om(e){let t={},n,i;for(i in e)Te(e,i)&&(n=Bd(i),n&&(t[n]=e[i]));return t}var rt=0,Tt=1,mt=2,ge=3,ot=4,Et=5,Ti=6,Rm=7,Im=8;function kt(e,t,n){let i=`${Math.abs(e)}`,s=t-i.length,o=e>=0?n?"+":"":"-",a=Math.pow(10,Math.max(0,s)).toString().substr(1);return o+a+i}var Ro={},ln={},jd=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function O(e,t,n,i){e&&(ln[e]=i),t&&(ln[t[0]]=function(){return kt(i.apply(null,arguments),t[1],t[2])}),n&&(ln[n]=function(s,r){return r.locale.ordinal(i.apply(null,arguments),e)})}function Am(e){let t=e.match(jd),n=t.length,i=new Array(n);for(let s=0;s<n;s++)i[s]=ln[t[s]]?ln[t[s]]:Ym(t[s]);return function(s,r,o,a=0){let l="";for(let h=0;h<n;h++)l+=ki(i[h])?i[h].call(null,s,{format:e,locale:r,isUTC:o,offset:a}):i[h];return l}}function Ym(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function na(e,t,n){let i=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(i.getUTCFullYear())&&i.setUTCFullYear(e),i}function cr(e,t=0,n=1,i=0,s=0,r=0,o=0){let a=new Date(e,t,n,i,s,r,o);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function P(e,t=!1){return t?e.getUTCHours():e.getHours()}function rn(e,t=!1){return t?e.getUTCMinutes():e.getMinutes()}function Ko(e,t=!1){return t?e.getUTCSeconds():e.getSeconds()}function Ct(e,t=!1){return t?e.getUTCMilliseconds():e.getMilliseconds()}function Pm(e){return e.getTime()}function at(e,t=!1){return t?e.getUTCDay():e.getDay()}function Jn(e,t=!1){return t?e.getUTCDate():e.getDate()}function V(e,t=!1){return t?e.getUTCMonth():e.getMonth()}function fe(e,t=!1){return t?e.getUTCFullYear():e.getFullYear()}function Hm(e){return Math.floor(e.valueOf()/1e3)}function $d(e){return cr(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes(),e.getSeconds())}function Wd(e,t){return e.getDay()===Number(t)}function Li(e,t){return!e||!t?!1:Oi(e,t)&&V(e)===V(t)}function Oi(e,t){return!e||!t?!1:fe(e)===fe(t)}function Lt(e,t){return!e||!t?!1:Oi(e,t)&&Li(e,t)&&Jn(e)===Jn(t)}var Ud=/\d/,Be=/\d\d/,zd=/\d{3}/,Xo=/\d{4}/,nr=/[+-]?\d{6}/,Q=/\d\d?/,cd=/\d\d\d\d?/,dd=/\d\d\d\d\d\d?/,Qs=/\d{1,3}/,Zo=/\d{1,4}/,sr=/[+-]?\d{1,6}/,Nm=/\d+/,rr=/[+-]?\d+/;var Io=/Z|[+-]\d\d(?::?\d\d)?/gi,Vm=/[+-]?\d+(\.\d{1,3})?/,Kn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,or={};function k(e,t,n){if(ki(t)){or[e]=t;return}or[e]=function(i,s){return i&&n?n:t}}function Fm(e,t){return Te(or,e)?or[e](!1,t):new RegExp(Bm(e))}function Bm(e){return Ci(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(t,n,i,s,r)=>n||i||s||r))}function Ci(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Jo={};function q(e,t){let n=je(e)?[e]:e,i=t;if(hn(t)&&(i=function(s,r,o){return r[t]=Y(s),o}),J(n)&&ki(i)){let s;for(s=0;s<n.length;s++)Jo[n[s]]=i}}function qn(e,t){q(e,function(n,i,s,r){return s._w=s._w||{},t(n,s._w,s,r)})}function jm(e,t,n){return t!=null&&Te(Jo,e)&&Jo[e](t,n._a,n,e),n}var $m={};function xe(e,t){$m[e]=t}function Wm(){O("D",["DD",2,!1],"Do",function(e,t){return Jn(e,t.isUTC).toString(10)}),Ee("date","D"),xe("date",9),k("D",Q),k("DD",Q,Be),k("Do",function(e,t){return t._dayOfMonthOrdinalParse||t._ordinalParse}),q(["D","DD"],mt),q("Do",function(e,t,n){return t[mt]=Y(e.match(Q)[0]),n})}function Um(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function $(e){return e._pf==null&&(e._pf=Um()),e._pf}function Ao(e,t){return t.locale.getFullYear?t.locale.getFullYear(e,t.isUTC).toString():fe(e,t.isUTC).toString()}function zm(){O("Y",null,null,function(e,t){let n=fe(e,t.isUTC);return n<=9999?n.toString(10):`+${n}`}),O(null,["YY",2,!1],null,function(e,t){return(fe(e,t.isUTC)%100).toString(10)}),O(null,["YYYY",4,!1],null,Ao),O(null,["YYYYY",5,!1],null,Ao),O(null,["YYYYYY",6,!0],null,Ao),Ee("year","y"),xe("year",1),k("Y",rr),k("YY",Q,Be),k("YYYY",Zo,Xo),k("YYYYY",sr,nr),k("YYYYYY",sr,nr),q(["YYYYY","YYYYYY"],rt),q("YYYY",function(e,t,n){return t[rt]=e.length===2?qo(e):Y(e),n}),q("YY",function(e,t,n){return t[rt]=qo(e),n}),q("Y",function(e,t,n){return t[rt]=parseInt(e,10),n})}function qo(e){return Y(e)+(Y(e)>68?1900:2e3)}function Xn(e){return Gd(e)?366:365}function Gd(e){return e%4===0&&e%100!==0||e%400===0}function sa(e,t){if(isNaN(e)||isNaN(t))return NaN;let n=xm(t,12),i=e+(t-n)/12;return n===1?Gd(i)?29:28:31-n%7%2}function Gm(){O("M",["MM",2,!1],"Mo",function(e,t){return(V(e,t.isUTC)+1).toString(10)}),O("MMM",null,null,function(e,t){return t.locale.monthsShort(e,t.format,t.isUTC)}),O("MMMM",null,null,function(e,t){return t.locale.months(e,t.format,t.isUTC)}),Ee("month","M"),xe("month",8),k("M",Q),k("MM",Q,Be),k("MMM",function(e,t){return t.monthsShortRegex(e)}),k("MMMM",function(e,t){return t.monthsRegex(e)}),q(["M","MM"],function(e,t,n){return t[Tt]=Y(e)-1,n}),q(["MMM","MMMM"],function(e,t,n,i){let s=n._locale.monthsParse(e,i,n._strict);return s!=null?t[Tt]=s:$(n).invalidMonth=!!e,n})}var Km={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function ye(e,t){let n=Object.assign({},Km,t),i=e.getFullYear()+(n.year||0),s=e.getMonth()+(n.month||0),r=e.getDate()+(n.day||0);return n.month&&!n.day&&(r=Math.min(r,sa(i,s))),cr(i,s,r,e.getHours()+(n.hour||0),e.getMinutes()+(n.minute||0),e.getSeconds()+(n.seconds||0))}function Kd(e,t){return cr(Zi(e.getFullYear(),t.year),Zi(e.getMonth(),t.month),1,Zi(e.getHours(),t.hour),Zi(e.getMinutes(),t.minute),Zi(e.getSeconds(),t.seconds),Zi(e.getMilliseconds(),t.milliseconds))}function Zi(e,t){return hn(t)?t:e}function Qo(e,t,n){let i=Math.min(Jn(e),sa(fe(e),t));return n?e.setUTCMonth(t,i):e.setMonth(t,i),e}function Xm(e,t,n){return n?e.setUTCHours(t):e.setHours(t),e}function Zm(e,t,n){return n?e.setUTCMinutes(t):e.setMinutes(t),e}function Jm(e,t,n){return n?e.setUTCSeconds(t):e.setSeconds(t),e}function qm(e,t,n){return n?e.setUTCMilliseconds(t):e.setMilliseconds(t),e}function Xd(e,t,n){return n?e.setUTCDate(t):e.setDate(t),e}function Qm(e,t){return e.setTime(t),e}function xi(e){return new Date(e.getTime())}function pt(e,t,n){let i=xi(e);switch(t){case"year":Qo(i,0,n);case"quarter":case"month":Xd(i,1,n);case"week":case"isoWeek":case"day":case"date":Xm(i,0,n);case"hours":Zm(i,0,n);case"minutes":Jm(i,0,n);case"seconds":qm(i,0,n)}return t==="week"&&Mf(i,0,{isUTC:n}),t==="isoWeek"&&Cf(i,1),t==="quarter"&&Qo(i,Math.floor(V(i,n)/3)*3,n),i}function ts(e,t,n){let i=t;i==="date"&&(i="day");let s=pt(e,i,n),r=Qn(s,1,i==="isoWeek"?"week":i,n);return yf(r,1,"milliseconds",n)}function ep(){O("DDD",["DDDD",3,!1],"DDDo",function(e){return Zd(e).toString(10)}),Ee("dayOfYear","DDD"),xe("dayOfYear",4),k("DDD",Qs),k("DDDD",zd),q(["DDD","DDDD"],function(e,t,n){return n._dayOfYear=Y(e),n})}function Zd(e,t){let n=+pt(e,"day",t),i=+pt(e,"year",t),s=n-i,r=1e3*60*60*24;return Math.round(s/r)+1}function ar(e,t,n){let i=t-n+7;return-((na(e,0,i).getUTCDay()-t+7)%7)+i-1}function tp(e,t,n,i,s){let r=(7+n-i)%7,o=ar(e,i,s),a=1+7*(t-1)+r+o,l,h;return a<=0?(l=e-1,h=Xn(l)+a):a>Xn(e)?(l=e+1,h=a-Xn(e)):(l=e,h=a),{year:l,dayOfYear:h}}function cn(e,t,n,i){let s=ar(fe(e,i),t,n),r=Math.floor((Zd(e,i)-s-1)/7)+1,o,a;return r<1?(a=fe(e,i)-1,o=r+er(a,t,n)):r>er(fe(e,i),t,n)?(o=r-er(fe(e,i),t,n),a=fe(e,i)+1):(a=fe(e,i),o=r),{week:o,year:a}}function er(e,t,n){let i=ar(e,t,n),s=ar(e+1,t,n);return(Xn(e)-i+s)/7}var hd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ip="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),np="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qd={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"},rp="%d",op=/\d{1,2}/,ap=Kn,lp=Kn,ea=class{constructor(t){t&&this.set(t)}set(t){let n;for(n in t){if(!t.hasOwnProperty(n))continue;let i=t[n],s=ki(i)?n:`_${n}`;this[s]=i}this._config=t}calendar(t,n,i){let s=this._calendar[t]||this._calendar.sameElse;return ki(s)?s.call(null,n,i):s}longDateFormat(t){let n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(s){return s.slice(1)}),this._longDateFormat[t])}get invalidDate(){return this._invalidDate}set invalidDate(t){this._invalidDate=t}ordinal(t,n){return this._ordinal.replace("%d",t.toString(10))}preparse(t,n){return t}getFullYear(t,n=!1){return fe(t,n)}postformat(t){return t}relativeTime(t,n,i,s){let r=this._relativeTime[i];return ki(r)?r(t,n,i,s):r.replace(/%d/i,t.toString(10))}pastFuture(t,n){let i=this._relativeTime[t>0?"future":"past"];return ki(i)?i(n):i.replace(/%s/i,n)}months(t,n,i=!1){if(!t)return J(this._months)?this._months:this._months.standalone;if(J(this._months))return this._months[V(t,i)];let s=(this._months.isFormat||hd).test(n)?"format":"standalone";return this._months[s][V(t,i)]}monthsShort(t,n,i=!1){if(!t)return J(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(J(this._monthsShort))return this._monthsShort[V(t,i)];let s=hd.test(n)?"format":"standalone";return this._monthsShort[s][V(t,i)]}monthsParse(t,n,i){let s,r;if(this._monthsParseExact)return this.handleMonthStrictParse(t,n,i);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);let o;for(o=0;o<12;o++){if(s=new Date(Date.UTC(2e3,o)),i&&!this._longMonthsParse[o]){let a=this.months(s,"",!0).replace(".",""),l=this.monthsShort(s,"",!0).replace(".","");this._longMonthsParse[o]=new RegExp(`^${a}$`,"i"),this._shortMonthsParse[o]=new RegExp(`^${l}$`,"i")}if(!i&&!this._monthsParse[o]&&(r=`^${this.months(s,"",!0)}|^${this.monthsShort(s,"",!0)}`,this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),i&&n==="MMMM"&&this._longMonthsParse[o].test(t)||i&&n==="MMM"&&this._shortMonthsParse[o].test(t)||!i&&this._monthsParse[o].test(t))return o}}monthsRegex(t){return this._monthsParseExact?(Te(this,"_monthsRegex")||this.computeMonthsParse(),t?this._monthsStrictRegex:this._monthsRegex):(Te(this,"_monthsRegex")||(this._monthsRegex=lp),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(t){return this._monthsParseExact?(Te(this,"_monthsRegex")||this.computeMonthsParse(),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Te(this,"_monthsShortRegex")||(this._monthsShortRegex=ap),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}week(t,n){return cn(t,this._week.dow,this._week.doy,n).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(t,n,i){if(!t)return J(this._weekdays)?this._weekdays:this._weekdays.standalone;if(J(this._weekdays))return this._weekdays[at(t,i)];let s=this._weekdays.isFormat.test(n)?"format":"standalone";return this._weekdays[s][at(t,i)]}weekdaysMin(t,n,i){return t?this._weekdaysMin[at(t,i)]:this._weekdaysMin}weekdaysShort(t,n,i){return t?this._weekdaysShort[at(t,i)]:this._weekdaysShort}weekdaysParse(t,n,i){let s,r;if(this._weekdaysParseExact)return this.handleWeekStrictParse(t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){let o=tr(new Date(Date.UTC(2e3,1)),s,null,!0);if(i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp(`^${this.weekdays(o,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[s]=new RegExp(`^${this.weekdaysShort(o,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[s]=new RegExp(`^${this.weekdaysMin(o,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[s]||(r=`^${this.weekdays(o,"",!0)}|^${this.weekdaysShort(o,"",!0)}|^${this.weekdaysMin(o,"",!0)}`,this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),!J(this._fullWeekdaysParse)||!J(this._shortWeekdaysParse)||!J(this._minWeekdaysParse)||!J(this._weekdaysParse))return;if(i&&n==="dddd"&&this._fullWeekdaysParse[s].test(t))return s;if(i&&n==="ddd"&&this._shortWeekdaysParse[s].test(t))return s;if(i&&n==="dd"&&this._minWeekdaysParse[s].test(t))return s;if(!i&&this._weekdaysParse[s].test(t))return s}}weekdaysRegex(t){return this._weekdaysParseExact?(Te(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Te(this,"_weekdaysRegex")||(this._weekdaysRegex=Kn),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(t){return this._weekdaysParseExact?(Te(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Te(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kn),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(t){return this._weekdaysParseExact?(Te(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Te(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kn),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(t){return t.toLowerCase().charAt(0)==="p"}meridiem(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"}formatLongDate(t){this._longDateFormat=this._longDateFormat?this._longDateFormat:Qd;let n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,s=>s.slice(1)),this._longDateFormat[t])}handleMonthStrictParse(t,n,i){let s=t.toLocaleLowerCase(),r,o,a;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=new Date(2e3,r),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return i?n==="MMM"?(o=this._shortMonthsParse.indexOf(s),o!==-1?o:null):(o=this._longMonthsParse.indexOf(s),o!==-1?o:null):n==="MMM"?(o=this._shortMonthsParse.indexOf(s),o!==-1?o:(o=this._longMonthsParse.indexOf(s),o!==-1?o:null)):(o=this._longMonthsParse.indexOf(s),o!==-1?o:(o=this._shortMonthsParse.indexOf(s),o!==-1?o:null))}handleWeekStrictParse(t,n,i){let s,r=t.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];let o;for(o=0;o<7;++o){let a=tr(new Date(Date.UTC(2e3,1)),o,null,!0);this._minWeekdaysParse[o]=this.weekdaysMin(a).toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(a).toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(a,"").toLocaleLowerCase()}}if(!(!J(this._weekdaysParse)||!J(this._shortWeekdaysParse)||!J(this._minWeekdaysParse)))return i?n==="dddd"?(s=this._weekdaysParse.indexOf(r),s!==-1?s:null):n==="ddd"?(s=this._shortWeekdaysParse.indexOf(r),s!==-1?s:null):(s=this._minWeekdaysParse.indexOf(r),s!==-1?s:null):n==="dddd"?(s=this._weekdaysParse.indexOf(r),s!==-1||(s=this._shortWeekdaysParse.indexOf(r),s!==-1)?s:(s=this._minWeekdaysParse.indexOf(r),s!==-1?s:null)):n==="ddd"?(s=this._shortWeekdaysParse.indexOf(r),s!==-1||(s=this._weekdaysParse.indexOf(r),s!==-1)?s:(s=this._minWeekdaysParse.indexOf(r),s!==-1?s:null)):(s=this._minWeekdaysParse.indexOf(r),s!==-1||(s=this._weekdaysParse.indexOf(r),s!==-1)?s:(s=this._shortWeekdaysParse.indexOf(r),s!==-1?s:null))}computeMonthsParse(){let t=[],n=[],i=[],s,r;for(r=0;r<12;r++)s=new Date(2e3,r),t.push(this.monthsShort(s,"")),n.push(this.months(s,"")),i.push(this.months(s,"")),i.push(this.monthsShort(s,""));for(t.sort(yi),n.sort(yi),i.sort(yi),r=0;r<12;r++)t[r]=Ci(t[r]),n[r]=Ci(n[r]);for(r=0;r<24;r++)i[r]=Ci(i[r]);this._monthsRegex=new RegExp(`^(${i.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${n.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${t.join("|")})`,"i")}computeWeekdaysParse(){let t=[],n=[],i=[],s=[],r;for(r=0;r<7;r++){let o=tr(new Date(Date.UTC(2e3,1)),r,null,!0),a=this.weekdaysMin(o),l=this.weekdaysShort(o),h=this.weekdays(o);t.push(a),n.push(l),i.push(h),s.push(a),s.push(l),s.push(h)}for(t.sort(yi),n.sort(yi),i.sort(yi),s.sort(yi),r=0;r<7;r++)n[r]=Ci(n[r]),i[r]=Ci(i[r]),s[r]=Ci(s[r]);this._weekdaysRegex=new RegExp(`^(${s.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${i.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${n.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${t.join("|")})`,"i")}};function yi(e,t){return t.length-e.length}var cp={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},dp="Invalid date",hp={dow:0,doy:6},up=/[ap]\.?m?\.?/i,_p={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},mp={calendar:cp,longDateFormat:Qd,invalidDate:dp,ordinal:rp,dayOfMonthOrdinalParse:op,relativeTime:_p,months:ip,monthsShort:Jd,week:hp,weekdays:np,weekdaysMin:sp,weekdaysShort:qd,meridiemParse:up};function pp(e,t,n){let i=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),r=0,o;for(o=0;o<i;o++)(n&&e[o]!==t[o]||!n&&Y(e[o])!==Y(t[o]))&&r++;return r+s}function fp(){O("w",["ww",2,!1],"wo",function(e,t){return Un(e,t.locale).toString(10)}),O("W",["WW",2,!1],"Wo",function(e){return gp(e).toString(10)}),Ee("week","w"),Ee("isoWeek","W"),xe("week",5),xe("isoWeek",5),k("w",Q),k("ww",Q,Be),k("W",Q),k("WW",Q,Be),qn(["w","ww","W","WW"],function(e,t,n,i){return t[i.substr(0,1)]=Y(e),n})}function Un(e,t=Ce(),n){return t.week(e,n)}function gp(e,t){return cn(e,1,4,t).week}function vp(){O(null,["gg",2,!1],null,function(e,t){return(eh(e,t.locale)%100).toString()}),O(null,["GG",2,!1],null,function(e){return(th(e)%100).toString()}),Js("gggg",ud),Js("ggggg",ud),Js("GGGG",_d),Js("GGGGG",_d),Ee("weekYear","gg"),Ee("isoWeekYear","GG"),xe("weekYear",1),xe("isoWeekYear",1),k("G",rr),k("g",rr),k("GG",Q,Be),k("gg",Q,Be),k("GGGG",Zo,Xo),k("gggg",Zo,Xo),k("GGGGG",sr,nr),k("ggggg",sr,nr),qn(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){return t[i.substr(0,2)]=Y(e),n}),qn(["gg","GG"],function(e,t,n,i){return t[i]=qo(e),n})}function Js(e,t){O(null,[e,e.length,!1],null,t)}function ud(e,t){return eh(e,t.locale).toString()}function _d(e){return th(e).toString()}function eh(e,t=Ce(),n){return cn(e,t.firstDayOfWeek(),t.firstDayOfYear(),n).year}function th(e,t){return cn(e,1,4,t).year}function yp(){O("z",null,null,function(e,t){return t.isUTC?"UTC":""}),O("zz",null,null,function(e,t){return t.isUTC?"Coordinated Universal Time":""})}function bp(){O("X",null,null,function(e){return Hm(e).toString(10)}),O("x",null,null,function(e){return e.valueOf().toString(10)}),k("x",rr),k("X",Vm),q("X",function(e,t,n){return n._d=new Date(parseFloat(e)*1e3),n}),q("x",function(e,t,n){return n._d=new Date(Y(e)),n})}function wp(){O("s",["ss",2,!1],null,function(e,t){return Ko(e,t.isUTC).toString(10)}),Ee("second","s"),xe("second",15),k("s",Q),k("ss",Q,Be),q(["s","ss"],Et)}function Sp(){O("Q",null,"Qo",function(e,t){return Mp(e,t.isUTC).toString(10)}),Ee("quarter","Q"),xe("quarter",7),k("Q",Ud),q("Q",function(e,t,n){return t[Tt]=(Y(e)-1)*3,n})}function Mp(e,t=!1){return Math.ceil((V(e,t)+1)/3)}function md(e,t){O(e,null,null,function(n,i){let s=xp(n,{_isUTC:i.isUTC,_offset:i.offset}),r="+";return s<0&&(s=-s,r="-"),r+kt(~~(s/60),2)+t+kt(~~s%60,2)})}function Dp(){md("Z",":"),md("ZZ",""),k("Z",Io),k("ZZ",Io),q(["Z","ZZ"],function(e,t,n){return n._useUTC=!0,n._tzm=kp(Io,e),n})}var Cp=/([\+\-]|\d\d)/gi;function kp(e,t){let n=(t||"").match(e);if(n===null)return null;let s=n[n.length-1].match(Cp)||["-","0","0"],r=parseInt(s[1],10)*60+Y(s[2]),o=s[0]==="+"?r:-r;return r===0?0:o}function Tp(e,t,n={}){if(!n._isUTC)return e;let i=xi(t),s=(n._offset||0)*6e4,r=e.valueOf()-i.valueOf()+s;return i.setTime(i.valueOf()+r),i}function Ep(e){return-Math.round(e.getTimezoneOffset()/15)*15}function xp(e,t={}){let n=t._offset||0;return t._isUTC?n:Ep(e)}function Lp(){O("m",["mm",2,!1],null,function(e,t){return rn(e,t.isUTC).toString(10)}),Ee("minute","m"),xe("minute",14),k("m",Q),k("mm",Q,Be),q(["m","mm"],ot)}function Op(){O("S",null,null,function(n,i){return(~~(Ct(n,i.isUTC)/100)).toString(10)}),O(null,["SS",2,!1],null,function(n,i){return(~~(Ct(n,i.isUTC)/10)).toString(10)}),O(null,["SSS",3,!1],null,function(n,i){return Ct(n,i.isUTC).toString(10)}),O(null,["SSSS",4,!1],null,function(n,i){return(Ct(n,i.isUTC)*10).toString(10)}),O(null,["SSSSS",5,!1],null,function(n,i){return(Ct(n,i.isUTC)*100).toString(10)}),O(null,["SSSSSS",6,!1],null,function(n,i){return(Ct(n,i.isUTC)*1e3).toString(10)}),O(null,["SSSSSSS",7,!1],null,function(n,i){return(Ct(n,i.isUTC)*1e4).toString(10)}),O(null,["SSSSSSSS",8,!1],null,function(n,i){return(Ct(n,i.isUTC)*1e5).toString(10)}),O(null,["SSSSSSSSS",9,!1],null,function(n,i){return(Ct(n,i.isUTC)*1e6).toString(10)}),Ee("millisecond","ms"),xe("millisecond",16),k("S",Qs,Ud),k("SS",Qs,Be),k("SSS",Qs,zd);let e;for(e="SSSS";e.length<=9;e+="S")k(e,Nm);function t(n,i,s){return i[Ti]=Y(parseFloat(`0.${n}`)*1e3),s}for(e="S";e.length<=9;e+="S")q(e,t)}function Rp(){function e(s,r){return P(s,r)%12||12}function t(s,r){return P(s,r)||24}O("H",["HH",2,!1],null,function(s,r){return P(s,r.isUTC).toString(10)}),O("h",["hh",2,!1],null,function(s,r){return e(s,r.isUTC).toString(10)}),O("k",["kk",2,!1],null,function(s,r){return t(s,r.isUTC).toString(10)}),O("hmm",null,null,function(s,r){let o=e(s,r.isUTC),a=kt(rn(s,r.isUTC),2);return`${o}${a}`}),O("hmmss",null,null,function(s,r){let o=e(s,r.isUTC),a=kt(rn(s,r.isUTC),2),l=kt(Ko(s,r.isUTC),2);return`${o}${a}${l}`}),O("Hmm",null,null,function(s,r){let o=P(s,r.isUTC),a=kt(rn(s,r.isUTC),2);return`${o}${a}`}),O("Hmmss",null,null,function(s,r){let o=P(s,r.isUTC),a=kt(rn(s,r.isUTC),2),l=kt(Ko(s,r.isUTC),2);return`${o}${a}${l}`});function n(s,r){O(s,null,null,function(o,a){return a.locale.meridiem(P(o,a.isUTC),rn(o,a.isUTC),r)})}n("a",!0),n("A",!1),Ee("hour","h"),xe("hour",13);function i(s,r){return r._meridiemParse}k("a",i),k("A",i),k("H",Q),k("h",Q),k("k",Q),k("HH",Q,Be),k("hh",Q,Be),k("kk",Q,Be),k("hmm",cd),k("hmmss",dd),k("Hmm",cd),k("Hmmss",dd),q(["H","HH"],ge),q(["k","kk"],function(s,r,o){let a=Y(s);return r[ge]=a===24?0:a,o}),q(["a","A"],function(s,r,o){return o._isPm=o._locale.isPM(s),o._meridiem=s,o}),q(["h","hh"],function(s,r,o){return r[ge]=Y(s),$(o).bigHour=!0,o}),q("hmm",function(s,r,o){let a=s.length-2;return r[ge]=Y(s.substr(0,a)),r[ot]=Y(s.substr(a)),$(o).bigHour=!0,o}),q("hmmss",function(s,r,o){let a=s.length-4,l=s.length-2;return r[ge]=Y(s.substr(0,a)),r[ot]=Y(s.substr(a,2)),r[Et]=Y(s.substr(l)),$(o).bigHour=!0,o}),q("Hmm",function(s,r,o){let a=s.length-2;return r[ge]=Y(s.substr(0,a)),r[ot]=Y(s.substr(a)),o}),q("Hmmss",function(s,r,o){let a=s.length-4,l=s.length-2;return r[ge]=Y(s.substr(0,a)),r[ot]=Y(s.substr(a,2)),r[Et]=Y(s.substr(l)),o})}var Ut={},$n={},Zn;function pd(e){return e&&e.toLowerCase().replace("_","-")}function Ip(e){let t,n,i=0;for(;i<e.length;){let s=pd(e[i]).split("-"),r=s.length;for(t=pd(e[i+1]),t=t?t.split("-"):null;r>0;){if(n=Yp(s.slice(0,r).join("-")),n)return n;if(t&&t.length>=r&&pp(s,t,!0)>=r-1)break;r--}i++}return null}function Ap(e,t){let n=Object.assign({},e);for(let i in t)Te(t,i)&&(Ei(e[i])&&Ei(t[i])?(n[i]={},Object.assign(n[i],e[i]),Object.assign(n[i],t[i])):t[i]!=null?n[i]=t[i]:delete n[i]);for(let i in e)Te(e,i)&&!Te(t,i)&&Ei(e[i])&&(n[i]=Object.assign({},n[i]));return n}function Yp(e){return Ut[e]||console.error(`Khronos locale error: please load locale "${e}" before using it`),Ut[e]}function ih(e,t){let n;return e&&(Fd(t)?n=Ce(e):je(e)&&(n=dr(e,t)),n&&(Zn=n)),Zn&&Zn._abbr}function dr(e,t){if(t===null)return delete Ut[e],Zn=Ce("en"),null;if(!t)return;let n=mp;if(t.abbr=e,t.parentLocale!=null)if(Ut[t.parentLocale]!=null)n=Ut[t.parentLocale]._config;else return $n[t.parentLocale]||($n[t.parentLocale]=[]),$n[t.parentLocale].push({name:e,config:t}),null;return Ut[e]=new ea(Ap(n,t)),$n[e]&&$n[e].forEach(function(i){dr(i.name,i.config)}),ih(e),Ut[e]}function Ce(e){if(Pp(),!e)return Zn;let t=J(e)?e:[e];return Ip(t)}function Pp(){Ut.en||(ih("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(e){let t=e%10,n=Y(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),fp(),vp(),zm(),yp(),bp(),wp(),Sp(),Dp(),Gm(),Lp(),Op(),Rp(),ep(),bf(),Wm())}var zn=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],Hp=zn.reduce((e,t)=>(e[t]=!0,e),{});function Np(e){if(Object.keys(e).some(i=>i in Hp&&e[i]===null||isNaN(e[i])))return!1;let n=!1;for(let i=0;i<zn.length;++i)if(e[zn[i]]){if(n)return!1;e[zn[i]]!==Y(e[zn[i]])&&(n=!0)}return!0}function fd(e){return e<0?Math.floor(e):Math.ceil(e)}function Vp(e){let t=e._milliseconds,n=e._days,i=e._months,s=e._data;t>=0&&n>=0&&i>=0||t<=0&&n<=0&&i<=0||(t+=fd(ta(i)+n)*864e5,n=0,i=0),s.milliseconds=t%1e3;let r=Di(t/1e3);s.seconds=r%60;let o=Di(r/60);s.minutes=o%60;let a=Di(o/60);s.hours=a%24,n+=Di(a/24);let l=Di(nh(n));i+=l,n-=fd(ta(l));let h=Di(i/12);return i%=12,s.day=n,s.month=i,s.year=h,e}function nh(e){return e*4800/146097}function ta(e){return e*146097/4800}var Ji=Math.round,qi={ss:44,s:45,m:45,h:22,d:26,M:11};function Fp(e,t,n,i,s){return s.relativeTime(t||1,!!n,e,i)}function Bp(e,t,n){let i=ca(e).abs(),s=Ji(i.as("s")),r=Ji(i.as("m")),o=Ji(i.as("h")),a=Ji(i.as("d")),l=Ji(i.as("M")),h=Ji(i.as("y")),p=s<=qi.ss&&["s",s]||s<qi.s&&["ss",s]||r<=1&&["m"]||r<qi.m&&["mm",r]||o<=1&&["h"]||o<qi.h&&["hh",o]||a<=1&&["d"]||a<qi.d&&["dd",a]||l<=1&&["M"]||l<qi.M&&["MM",l]||h<=1&&["y"]||["yy",h],v=[p[0],p[1],t,+e>0,n];return Fp.apply(null,v)}var lr=class{constructor(t,n={}){this._data={},this._locale=Ce(),this._locale=n&&n._locale||Ce();let i=t,s=i.year||0,r=i.quarter||0,o=i.month||0,a=i.week||0,l=i.day||0,h=i.hours||0,p=i.minutes||0,v=i.seconds||0,C=i.milliseconds||0;return this._isValid=Np(i),this._milliseconds=+C+v*1e3+p*60*1e3+h*1e3*60*60,this._days=+l+a*7,this._months=+o+r*3+s*12,Vp(this)}isValid(){return this._isValid}humanize(t){if(!this.isValid())return this.localeData().invalidDate;let n=this.localeData(),i=Bp(this,!t,n);return t&&(i=n.pastFuture(+this,i)),n.postformat(i)}localeData(){return this._locale}locale(t){return t?(this._locale=Ce(t)||this._locale,this):this._locale._abbr}abs(){let t=Math.abs,n=this._data;return this._milliseconds=t(this._milliseconds),this._days=t(this._days),this._months=t(this._months),n.milliseconds=t(n.milliseconds),n.seconds=t(n.seconds),n.minutes=t(n.minutes),n.hours=t(n.hours),n.month=t(n.month),n.year=t(n.year),this}as(t){if(!this.isValid())return NaN;let n,i,s=this._milliseconds,r=Bd(t);if(r==="month"||r==="year")return n=this._days+s/864e5,i=this._months+nh(n),r==="month"?i:i/12;switch(n=this._days+Math.round(ta(this._months)),r){case"week":return n/7+s/6048e5;case"day":return n+s/864e5;case"hours":return n*24+s/36e5;case"minutes":return n*1440+s/6e4;case"seconds":return n*86400+s/1e3;case"milliseconds":return Math.floor(n*864e5)+s;default:throw new Error(`Unknown unit ${r}`)}}valueOf(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Y(this._months/12)*31536e6:NaN}};function jp(e){return e instanceof lr}function ra(e){if(e._isValid==null){let t=$(e),n=Array.prototype.some.call(t.parsedDateParts,function(s){return s!=null}),i=!isNaN(e._d&&e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i}return e._isValid}function hr(e,t){return e._d=new Date(NaN),Object.assign($(e),t||{userInvalidated:!0}),e}function $p(e){return e._isValid=!1,e}var Wp=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Up=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zp=/Z|[+-]\d\d(?::?\d\d)?/,qs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Yo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Gp=/^\/?Date\((\-?\d+)/i,Kp={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},Xp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function sh(e){if(!je(e._i))return e;let t=e._i,n=Wp.exec(t)||Up.exec(t),i,s,r,o;if(!n)return e._isValid=!1,e;let a,l;for(a=0,l=qs.length;a<l;a++)if(qs[a][1].exec(n[1])){s=qs[a][0],i=qs[a][2]!==!1;break}if(s==null)return e._isValid=!1,e;if(n[3]){for(a=0,l=Yo.length;a<l;a++)if(Yo[a][1].exec(n[3])){r=(n[2]||" ")+Yo[a][0];break}if(r==null)return e._isValid=!1,e}if(!i&&r!=null)return e._isValid=!1,e;if(n[4])if(zp.exec(n[4]))o="Z";else return e._isValid=!1,e;return e._f=s+(r||"")+(o||""),aa(e)}function Zp(e,t,n,i,s,r){let o=[Jp(e),Jd.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(s,10)];return r&&o.push(parseInt(r,10)),o}function Jp(e){let t=parseInt(e,10);return t<=49?t+2e3:t}function qp(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function Qp(e,t,n){if(e){let i=qd.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(i!==s)return $(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ef(e,t,n){if(e)return Kp[e];if(t)return 0;{let i=parseInt(n,10),s=i%100;return(i-s)/100*60+s}}function rh(e){if(!je(e._i))return e;let t=Xp.exec(qp(e._i));if(!t)return $p(e);let n=Zp(t[4],t[3],t[2],t[5],t[6],t[7]);return Qp(t[1],n,e)&&(e._a=n,e._tzm=ef(t[8],t[9],t[10]),e._d=na.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),$(e).rfc2822=!0),e}function tf(e){if(!je(e._i))return e;let t=Gp.exec(e._i);if(t!==null)return e._d=new Date(+t[1]),e;if(sh(e),e._isValid===!1)delete e._isValid;else return e;if(rh(e),e._isValid===!1)delete e._isValid;else return e;return hr(e)}function $e(e,t,n,i,s=0){let r=Ce(n||"en");if(!r)throw new Error(`Locale "${n}" is not defined, please add it with "defineLocale(...)"`);let a=nf(e,t||(i?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),r,i,s);return a&&r.postformat(a)}function nf(e,t,n,i,s=0){if(!xt(e))return n.invalidDate;let r=oh(t,n);return Ro[r]=Ro[r]||Am(r),Ro[r](e,n,i,s)}function oh(e,t){let n=e,i=5,s=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,r=o=>t.formatLongDate(o)||o;for(s.lastIndex=0;i>=0&&s.test(n);)n=n.replace(s,r),s.lastIndex=0,i-=1;return n}function on(e,t,n){return e??t??n}function sf(e){let t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function oa(e){let t=[],n,i,s;if(e._d)return e;let r=sf(e);for(e._w&&e._a[mt]==null&&e._a[Tt]==null&&rf(e),e._dayOfYear!=null&&(s=on(e._a[rt],r[rt]),(e._dayOfYear>Xn(s)||e._dayOfYear===0)&&($(e)._overflowDayOfYear=!0),i=new Date(Date.UTC(s,0,e._dayOfYear)),e._a[Tt]=i.getUTCMonth(),e._a[mt]=i.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=t[n]=r[n];for(;n<7;n++)e._a[n]=t[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[ge]===24&&e._a[ot]===0&&e._a[Et]===0&&e._a[Ti]===0&&(e._nextDay=!0,e._a[ge]=0),e._d=(e._useUTC?na:cr).apply(null,t);let o=e._useUTC?e._d.getUTCDay():e._d.getDay();return e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ge]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&($(e).weekdayMismatch=!0),e}function rf(e){let t,n,i,s,r,o,a,l=e._w;if(l.GG!=null||l.W!=null||l.E!=null)s=1,r=4,t=on(l.GG,e._a[rt],cn(new Date,1,4).year),n=on(l.W,1),i=on(l.E,1),(i<1||i>7)&&(a=!0);else{s=e._locale._week.dow,r=e._locale._week.doy;let h=cn(new Date,s,r);t=on(l.gg,e._a[rt],h.year),n=on(l.w,h.week),l.d!=null?(i=l.d,(i<0||i>6)&&(a=!0)):l.e!=null?(i=l.e+s,(l.e<0||l.e>6)&&(a=!0)):i=s}return n<1||n>er(t,s,r)?$(e)._overflowWeeks=!0:a!=null?$(e)._overflowWeekday=!0:(o=tp(t,n,i,s,r),e._a[rt]=o.year,e._dayOfYear=o.dayOfYear),e}function ah(e){let t,n=e._a;return n&&$(e).overflow===-2&&(t=n[Tt]<0||n[Tt]>11?Tt:n[mt]<1||n[mt]>sa(n[rt],n[Tt])?mt:n[ge]<0||n[ge]>24||n[ge]===24&&(n[ot]!==0||n[Et]!==0||n[Ti]!==0)?ge:n[ot]<0||n[ot]>59?ot:n[Et]<0||n[Et]>59?Et:n[Ti]<0||n[Ti]>999?Ti:-1,$(e)._overflowDayOfYear&&(t<rt||t>mt)&&(t=mt),$(e)._overflowWeeks&&t===-1&&(t=Rm),$(e)._overflowWeekday&&t===-1&&(t=Im),$(e).overflow=t),e}var of="ISO_8601",af="RFC_2822";function aa(e){if(e._f===of)return sh(e);if(e._f===af)return rh(e);if(e._a=[],$(e).empty=!0,J(e._f)||!e._i&&e._i!==0)return e;let t=e._i.toString(),n=0,i=t.length,s=oh(e._f,e._locale).match(jd)||[],r,o,a,l;for(r=0;r<s.length;r++)o=s[r],a=(t.match(Fm(o,e._locale))||[])[0],a&&(l=t.substr(0,t.indexOf(a)),l.length>0&&$(e).unusedInput.push(l),t=t.slice(t.indexOf(a)+a.length),n+=a.length),ln[o]?(a?$(e).empty=!1:$(e).unusedTokens.push(o),jm(o,a,e)):e._strict&&!a&&$(e).unusedTokens.push(o);return $(e).charsLeftOver=i-n,t.length>0&&$(e).unusedInput.push(t),e._a[ge]<=12&&$(e).bigHour===!0&&e._a[ge]>0&&($(e).bigHour=void 0),$(e).parsedDateParts=e._a.slice(0),$(e).meridiem=e._meridiem,e._a[ge]=lf(e._locale,e._a[ge],e._meridiem),oa(e),ah(e)}function lf(e,t,n){let i=t;if(n==null)return i;if(e.meridiemHour!=null)return e.meridiemHour(i,n);if(e.isPM==null)return i;let s=e.isPM(n);return s&&i<12&&(i+=12),!s&&i===12&&(i=0),i}function cf(e){let t,n,i,s;if(!e._f||e._f.length===0)return $(e).invalidFormat=!0,hr(e);let r;for(r=0;r<e._f.length;r++)s=0,t=Object.assign({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],aa(t),ra(t)&&(s+=$(t).charsLeftOver,s+=$(t).unusedTokens.length*10,$(t).score=s,(i==null||s<i)&&(i=s,n=t));return Object.assign(e,n||t)}function df(e){if(e._d)return e;let t=e._i;if(Ei(t)){let n=Om(t);e._a=[n.year,n.month,n.day,n.hours,n.minutes,n.seconds,n.milliseconds].map(i=>je(i)?parseInt(i,10):i)}return oa(e)}function hf(e){let t=ah(uf(e));return t._d=new Date(t._d!=null?t._d.getTime():NaN),ra(Object.assign({},t,{_isValid:null}))||(t._d=new Date(NaN)),t}function uf(e){let t=e._i,n=e._f;return e._locale=e._locale||Ce(e._l),t===null||n===void 0&&t===""?hr(e,{nullInput:!0}):(je(t)&&(e._i=t=e._locale.preparse(t,n)),es(t)?(e._d=xi(t),e):(J(n)?cf(e):n?aa(e):_f(e),ra(e)||(e._d=null),e))}function _f(e){let t=e._i;if(Fd(t))e._d=new Date;else if(es(t))e._d=xi(t);else if(je(t))tf(e);else if(J(t)&&t.length){let n=t.slice(0);e._a=n.map(i=>je(i)?parseInt(i,10):i),oa(e)}else if(Ei(t))df(e);else if(hn(t))e._d=new Date(t);else return hr(e);return e}function mf(e,t,n,i,s){let r={},o=e;return(Ei(o)&&Lm(o)||J(o)&&o.length===0)&&(o=void 0),r._useUTC=r._isUTC=s,r._l=n,r._i=o,r._f=t,r._strict=i,hf(r)}function dn(e,t,n,i,s){return es(e)?e:mf(e,t,n,i,s)._d}function la(e){return e instanceof Date?new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()):null}function ia(e){return e<0?Math.round(e*-1)*-1:Math.round(e)}function Ot(e,t,n="milliseconds"){return!e||!t?!1:n==="milliseconds"?e.valueOf()>t.valueOf():t.valueOf()<pt(e,n).valueOf()}function Gt(e,t,n="milliseconds"){return!e||!t?!1:n==="milliseconds"?e.valueOf()<t.valueOf():ts(e,n).valueOf()<t.valueOf()}function lh(e,t){return typeof t>"u"||!t||!t.length?!1:t.some(n=>n===e.getDay())}function is(e,t,n="milliseconds"){if(!e||!t)return!1;if(n==="milliseconds")return e.valueOf()===t.valueOf();let i=t.valueOf();return pt(e,n).valueOf()<=i&&i<=ts(e,n).valueOf()}var pf=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ff=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ca(e,t,n={}){let i=gf(e,t);return new lr(i,n)}function gf(e,t){if(e==null)return{};if(jp(e))return{milliseconds:e._milliseconds,day:e._days,month:e._months};if(hn(e))return t?{[t]:e}:{milliseconds:e};if(je(e)){let n=pf.exec(e);if(n){let i=n[1]==="-"?-1:1;return{year:0,day:Y(n[mt])*i,hours:Y(n[ge])*i,minutes:Y(n[ot])*i,seconds:Y(n[Et])*i,milliseconds:Y(ia(Y(n[Ti])*1e3))*i}}if(n=ff.exec(e),n){let i=n[1]==="-"?-1:(n[1]==="+",1);return{year:bi(n[2],i),month:bi(n[3],i),week:bi(n[4],i),day:bi(n[5],i),hours:bi(n[6],i),minutes:bi(n[7],i),seconds:bi(n[8],i)}}}if(Ei(e)&&("from"in e||"to"in e)){let n=vf(dn(e.from),dn(e.to));return{milliseconds:n.milliseconds,month:n.months}}return e}function bi(e,t){let n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function gd(e,t){let n={milliseconds:0,months:0};n.months=V(t)-V(e)+(fe(t)-fe(e))*12;let i=Qn(xi(e),n.months,"month");return Ot(i,t)&&--n.months,n.milliseconds=+t-+Qn(xi(e),n.months,"month"),n}function vf(e,t){if(!(xt(e)&&xt(t)))return{milliseconds:0,months:0};let n,i=Tp(t,e,{_offset:e.getTimezoneOffset()});return Gt(e,i)?n=gd(e,i):(n=gd(i,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function Qn(e,t,n,i){let s=ca(t,n);return ch(e,s,1,i)}function yf(e,t,n,i){let s=ca(t,n);return ch(e,s,-1,i)}function ch(e,t,n,i){let s=t._milliseconds,r=ia(t._days),o=ia(t._months);return o&&Qo(e,V(e,i)+o*n,i),r&&Xd(e,Jn(e,i)+r*n,i),s&&Qm(e,Pm(e)+s*n),xi(e)}function bf(){O("d",null,"do",function(e,t){return at(e,t.isUTC).toString(10)}),O("dd",null,null,function(e,t){return t.locale.weekdaysMin(e,t.format,t.isUTC)}),O("ddd",null,null,function(e,t){return t.locale.weekdaysShort(e,t.format,t.isUTC)}),O("dddd",null,null,function(e,t){return t.locale.weekdays(e,t.format,t.isUTC)}),O("e",null,null,function(e,t){return dh(e,t.locale,t.isUTC).toString(10)}),O("E",null,null,function(e,t){return Df(e,t.isUTC).toString(10)}),Ee("day","d"),Ee("weekday","e"),Ee("isoWeekday","E"),xe("day",11),xe("weekday",11),xe("isoWeekday",11),k("d",Q),k("e",Q),k("E",Q),k("dd",function(e,t){return t.weekdaysMinRegex(e)}),k("ddd",function(e,t){return t.weekdaysShortRegex(e)}),k("dddd",function(e,t){return t.weekdaysRegex(e)}),qn(["dd","ddd","dddd"],function(e,t,n,i){let s=n._locale.weekdaysParse(e,i,n._strict);return s!=null?t.d=s:$(n).invalidWeekday=!!e,n}),qn(["d","e","E"],function(e,t,n,i){return t[i]=Y(e),n})}function wf(e,t){if(!je(e))return e;let n=parseInt(e,10);if(!isNaN(n))return n;let i=t.weekdaysParse(e);return hn(i)?i:null}function Sf(e,t=Ce()){return je(e)?t.weekdaysParse(e)%7||7:hn(e)&&isNaN(e)?null:e}function tr(e,t,n=Ce(),i){let s=at(e,i),r=wf(t,n);return Qn(e,r-s,"day")}function ve(e,t){return at(e,t)}function dh(e,t=Ce(),n){return(at(e,n)+7-t.firstDayOfWeek())%7}function Mf(e,t,n={}){let i=dh(e,n.locale,n.isUTC);return Qn(e,t-i,"day")}function Df(e,t){return at(e,t)||7}function Cf(e,t,n={}){let i=Sf(t,n.locale);return tr(e,ve(e)%7?i:i-7)}var kf={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},Tf={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},vd=function(e){return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},Ef={s:["\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",["\u062B\u0627\u0646\u064A\u062A\u0627\u0646","\u062B\u0627\u0646\u064A\u062A\u064A\u0646"],"%d \u062B\u0648\u0627\u0646","%d \u062B\u0627\u0646\u064A\u0629","%d \u062B\u0627\u0646\u064A\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629",["\u062F\u0642\u064A\u0642\u062A\u0627\u0646","\u062F\u0642\u064A\u0642\u062A\u064A\u0646"],"%d \u062F\u0642\u0627\u0626\u0642","%d \u062F\u0642\u064A\u0642\u0629","%d \u062F\u0642\u064A\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",["\u0633\u0627\u0639\u062A\u0627\u0646","\u0633\u0627\u0639\u062A\u064A\u0646"],"%d \u0633\u0627\u0639\u0627\u062A","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064A\u0648\u0645","\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",["\u064A\u0648\u0645\u0627\u0646","\u064A\u0648\u0645\u064A\u0646"],"%d \u0623\u064A\u0627\u0645","%d \u064A\u0648\u0645\u064B\u0627","%d \u064A\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062D\u062F",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064A\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062D\u062F",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064A\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064B\u0627","%d \u0639\u0627\u0645"]},Ge=function(e){return function(t,n){let i=vd(t),s=Ef[e][vd(t)];return i===2&&(s=s[n?0:1]),s.replace(/%d/i,t.toString())}},yd=["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"],uC={abbr:"ar",months:yd,monthsShort:yd,weekdays:"\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062B\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"),weekdaysShort:"\u0623\u062D\u062F_\u0625\u062B\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"),weekdaysMin:"\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200FM/\u200FYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM(e){return e==="\u0645"},meridiem(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063A\u062F\u064B\u0627 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062F %s",past:"\u0645\u0646\u0630 %s",s:Ge("s"),ss:Ge("s"),m:Ge("m"),mm:Ge("m"),h:Ge("h"),hh:Ge("h"),d:Ge("d"),dd:Ge("d"),M:Ge("M"),MM:Ge("M"),y:Ge("y"),yy:Ge("y")},preparse(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return Tf[t]}).replace(/،/g,",")},postformat(e){return e.replace(/\d/g,function(t){return kf[t]}).replace(/,/g,"\u060C")},week:{dow:6,doy:12}};var _C={abbr:"bg",months:"\u044F\u043D\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438_\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438_\u043D\u043E\u0435\u043C\u0432\u0440\u0438_\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438".split("_"),monthsShort:"\u044F\u043D\u0440_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433_\u0441\u0435\u043F_\u043E\u043A\u0442_\u043D\u043E\u0435_\u0434\u0435\u043A".split("_"),weekdays:"\u043D\u0435\u0434\u0435\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u044F\u0434\u0430_\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A_\u043F\u0435\u0442\u044A\u043A_\u0441\u044A\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u044F_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u044A\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043D\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(e){switch(e){case 0:case 3:case 6:return"[\u0412 \u0438\u0437\u043C\u0438\u043D\u0430\u043B\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043C\u0438\u043D\u0430\u043B\u0438\u044F] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043B\u0435\u0434 %s",past:"\u043F\u0440\u0435\u0434\u0438 %s",s:"\u043D\u044F\u043A\u043E\u043B\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434\u0438",ss:"%d \u0441\u0435\u043A\u0443\u043D\u0434\u0438",m:"\u043C\u0438\u043D\u0443\u0442\u0430",mm:"%d \u043C\u0438\u043D\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043D",dd:"%d \u0434\u043D\u0438",M:"\u043C\u0435\u0441\u0435\u0446",MM:"%d \u043C\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043E\u0434\u0438\u043D\u0430",yy:"%d \u0433\u043E\u0434\u0438\u043D\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){let t=Number(e),n=t%10,i=t%100;return t===0?t+"-\u0435\u0432":i===0?t+"-\u0435\u043D":i>10&&i<20?t+"-\u0442\u0438":n===1?t+"-\u0432\u0438":n===2?t+"-\u0440\u0438":n===7||n===8?t+"-\u043C\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}};var bd="gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),xf="ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),Po=[/^gen/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^oct/i,/^nov/i,/^des/i],wd=/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre|gen\.?|feb\.?|mar\.?|abr\.?|mai\.?|jun\.?|jul\.?|ago\.?|set\.?|oct\.?|nov\.?|des\.?)/i,mC={abbr:"ca",months:"gener_febrer_mar\xE7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?xf[V(e,n)]:bd[V(e,n)]:bd},monthsRegex:wd,monthsShortRegex:wd,monthsStrictRegex:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i,monthsShortStrictRegex:/^(gen\.?|feb\.?|mar\.?|abr\.?|mai\.?|jun\.?|jul\.?|ago\.?|set\.?|oct\.?|nov\.?|des\.?)/i,monthsParse:Po,longMonthsParse:Po,shortMonthsParse:Po,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"diu._dil._dim._dix._dij._div._dis.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay(e){return"[avui a "+("la"+(P(e)!==1)?"les":"")+"] LT"},nextDay(e){return"[dema a "+("la"+(P(e)!==1)?"les":"")+"] LT"},nextWeek(e){return"dddd [a "+("la"+(P(e)!==1)?"les":"")+"] LT"},lastDay(e){return"[ahir a "+("la"+(P(e)!==1)?"les":"")+"] LT"},lastWeek(e){return"[el] dddd ["+("passada la "+(P(e)!==1)?"passades les":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(er|on|er|rt|é)/,ordinal(e){let t=Number(e),n=t>4?"\xE9":t===1||t===3?"r":t===2?"n":t===4?"t":"\xE9";return t+n},week:{dow:1,doy:4}};var Ho="leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),No="led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_");function Qi(e){return e>1&&e<5&&~~(e/10)!==1}function Ke(e,t,n,i){let s=e+" ";switch(n){case"s":return t||i?"p\xE1r sekund":"p\xE1r sekundami";case"ss":return t||i?s+(Qi(e)?"sekundy":"sekund"):s+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?s+(Qi(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?s+(Qi(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?s+(Qi(e)?"dny":"dn\xED"):s+"dny";case"M":return t||i?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return t||i?s+(Qi(e)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):s+"m\u011Bs\xEDci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?s+(Qi(e)?"roky":"let"):s+"lety"}}var pC={abbr:"cs",months:Ho,monthsShort:No,monthsParse:(function(e,t){let n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i})(Ho,No),shortMonthsParse:(function(e){let t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n})(No),longMonthsParse:(function(e){let t,n=[];for(t=0;t<12;t++)n[t]=new RegExp("^"+e[t]+"$","i");return n})(Ho),weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xEDtra v] LT",nextWeek(e){switch(ve(e)){case 0:return"[v ned\u011Bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010Dtvrtek v] LT";case 5:return"[v p\xE1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010Dera v] LT",lastWeek(e){switch(ve(e)){case 0:return"[minulou ned\u011Bli v] LT";case 1:case 2:return"[minul\xE9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xFD] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:Ke,ss:Ke,m:Ke,mm:Ke,h:Ke,hh:Ke,d:Ke,dd:Ke,M:Ke,MM:Ke,y:Ke,yy:Ke},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var fC={abbr:"da",months:"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),weekdays:"S\xF8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xF8rdag".split("_"),weekdaysShort:"S\xF8n_Man_Tir_Ons_Tor_Fre_L\xF8r".split("_"),weekdaysMin:"S\xF8_Ma_Ti_On_To_Fr_L\xF8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xE5 dddd [kl.] LT",lastDay:"[i g\xE5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};function Wt(e,t,n,i){let s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[n][0]:s[n][1]}var hh={abbr:"de",months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Wt,mm:"%d Minuten",h:Wt,hh:"%d Stunden",d:Wt,dd:Wt,M:Wt,MM:Wt,y:Wt,yy:Wt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var uh={abbr:"en-gb",months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal(e){let t=Number(e),n=t%10,i=~~(t%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return t+i},week:{dow:1,doy:4}};var Sd="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Lf="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Vo=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Md=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,gC={abbr:"es-do",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?Lf[V(e,n)]:Sd[V(e,n)]:Sd},monthsRegex:Md,monthsShortRegex:Md,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Vo,longMonthsParse:Vo,shortMonthsParse:Vo,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay(e){return"[hoy a la"+(P(e)!==1?"s":"")+"] LT"},nextDay(e){return"[ma\xF1ana a la"+(P(e)!==1?"s":"")+"] LT"},nextWeek(e){return"dddd [a la"+(P(e)!==1?"s":"")+"] LT"},lastDay(e){return"[ayer a la"+(P(e)!==1?"s":"")+"] LT"},lastWeek(e){return"[el] dddd [pasado a la"+(P(e)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var Dd="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Of="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Fo=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Cd=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,_h={abbr:"es",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?Of[V(e,n)]:Dd[V(e,n)]:Dd},monthsRegex:Cd,monthsShortRegex:Cd,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Fo,longMonthsParse:Fo,shortMonthsParse:Fo,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay(e){return"[hoy a la"+(P(e)!==1?"s":"")+"] LT"},nextDay(e){return"[ma\xF1ana a la"+(P(e)!==1?"s":"")+"] LT"},nextWeek(e){return"dddd [a la"+(P(e)!==1?"s":"")+"] LT"},lastDay(e){return"[ayer a la"+(P(e)!==1?"s":"")+"] LT"},lastWeek(e){return"[el] dddd [pasado a la"+(P(e)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var kd="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Rf="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),vC={abbr:"es-pr",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?Rf[V(e,n)]:kd[V(e,n)]:kd},monthsParseExact:!0,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay(e){return"[hoy a la"+(P(e)!==1?"s":"")+"] LT"},nextDay(e){return"[ma\xF1ana a la"+(P(e)!==1?"s":"")+"] LT"},nextWeek(e){return"dddd [a la"+(P(e)!==1?"s":"")+"] LT"},lastDay(e){return"[ayer a la"+(P(e)!==1?"s":"")+"] LT"},lastWeek(e){return"[el] dddd [pasado a la"+(P(e)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:0,doy:6}};var Td="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),If="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),yC={abbr:"es-us",months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?If[V(e,n)]:Td[V(e,n)]:Td},monthsParseExact:!0,weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay(e){return"[hoy a la"+(P(e)!==1?"s":"")+"] LT"},nextDay(e){return"[ma\xF1ana a la"+(P(e)!==1?"s":"")+"] LT"},nextWeek(e){return"dddd [a la"+(P(e)!==1?"s":"")+"] LT"},lastDay(e){return"[ayer a la"+(P(e)!==1?"s":"")+"] LT"},lastWeek(e){return"[el] dddd [pasado a la"+(P(e)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:0,doy:6}};var st=function(e,t,n,i){let s={s:["m\xF5ne sekundi","m\xF5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xFChe minuti","\xFCks minut"],mm:[e+" minuti",e+" minutit"],h:["\xFChe tunni","tund aega","\xFCks tund"],hh:[e+" tunni",e+" tundi"],d:["\xFChe p\xE4eva","\xFCks p\xE4ev"],M:["kuu aja","kuu aega","\xFCks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xFChe aasta","aasta","\xFCks aasta"],yy:[e+" aasta",e+" aastat"]};return t?s[n][2]?s[n][2]:s[n][1]:i?s[n][0]:s[n][1]},bC={abbr:"et",months:"jaanuar_veebruar_m\xE4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xE4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xFChap\xE4ev_esmasp\xE4ev_teisip\xE4ev_kolmap\xE4ev_neljap\xE4ev_reede_laup\xE4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xE4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xE4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xE4rast",past:"%s tagasi",s:st,ss:st,m:st,mm:st,h:st,hh:st,d:st,dd:"%d p\xE4eva",M:st,MM:st,y:st,yy:st},dayOfMonthOrdinalParse:/\d{1,2}./,ordinal:"%d.",week:{dow:1,doy:4}};var ir="nolla yksi kaksi kolme nelj\xE4 viisi kuusi seitsem\xE4n kahdeksan yhdeks\xE4n".split(" "),Af=["nolla","yhden","kahden","kolmen","nelj\xE4n","viiden","kuuden",ir[7],ir[8],ir[9]];function Xe(e,t,n,i){var s="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":return i?"sekunnin":"sekuntia";case"m":return i?"minuutin":"minuutti";case"mm":s=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":s=i?"tunnin":"tuntia";break;case"d":return i?"p\xE4iv\xE4n":"p\xE4iv\xE4";case"dd":s=i?"p\xE4iv\xE4n":"p\xE4iv\xE4\xE4";break;case"M":return i?"kuukauden":"kuukausi";case"MM":s=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":s=i?"vuoden":"vuotta";break}return s=Yf(e,i)+" "+s,s}function Yf(e,t){return e<10?t?Af[e]:ir[e]:e}var wC={abbr:"fi",months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xE4kuu_hein\xE4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xE4_hein\xE4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xE4n\xE4\xE4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xE4\xE4st\xE4",past:"%s sitten",s:Xe,ss:Xe,m:Xe,mm:Xe,h:Xe,hh:Xe,d:Xe,dd:Xe,M:Xe,MM:Xe,y:Xe,yy:Xe},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var mh={abbr:"fr",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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[Aujourd\u2019hui \xE0] LT",nextDay:"[Demain \xE0] LT",nextWeek:"dddd [\xE0] LT",lastDay:"[Hier \xE0] LT",lastWeek:"dddd [dernier \xE0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal(e,t){let n=Number(e);switch(t){case"D":return n+(n===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(n===1?"er":"e");case"w":case"W":return n+(n===1?"re":"e")}},week:{dow:1,doy:4}};var SC={abbr:"fr-ca",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("_"),monthsParseExact:!0,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("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xE0] LT",nextDay:"[Demain \xE0] LT",nextWeek:"dddd [\xE0] LT",lastDay:"[Hier \xE0] LT",lastWeek:"dddd [dernier \xE0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d 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"},dayOfMonthOrdinalParse:/\d{1,2}(er|e|)/,ordinal(e,t){let n=Number(e);switch(t){case"D":return n+(n===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(n===1?"er":"e");case"w":case"W":return n+(n===1?"re":"e")}},week:{dow:1,doy:4}};var Ed="xan._feb._mar._abr._mai._xu\xF1._xul._ago._set._out._nov._dec.".split("_"),Pf="xan_feb_mar_abr_mai_xu\xF1_xul_ago_set_out_nov_dec".split("_"),Bo=[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xuñ/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i],xd=/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro|xan\.?|feb\.?|mar\.?|abr\.?|mai\.?|xuñ\.?|xul\.?|ago\.?|set\.?|out\.?|nov\.?|dec\.?)/i,MC={abbr:"gl",months:"xaneiro_febreiro_marzo_abril_maio_xu\xF1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?Pf[V(e,n)]:Ed[V(e,n)]:Ed},monthsRegex:xd,monthsShortRegex:xd,monthsStrictRegex:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i,monthsShortStrictRegex:/^(xan\.?|feb\.?|mar\.?|abr\.?|mai\.?|xuñ\.?|xul\.?|ago\.?|set\.?|out\.?|nov\.?|dec\.?)/i,monthsParse:Bo,longMonthsParse:Bo,shortMonthsParse:Bo,weekdays:"domingo_luns_martes_m\xE9rcores_xoves_venres_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xE9r._xov._ven._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_m\xE9_xo_ve_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay(e){return"[hoxe \xE1"+(P(e)!==1?"s":"")+"] LT"},nextDay(e){return"[ma\xF1an \xE1"+(P(e)!==1?"s":"")+"] LT"},nextWeek(e){return"dddd [\xE1"+(P(e)!==1?"s":"")+"] LT"},lastDay(e){return"[onte \xE1"+(P(e)!==1?"s":"")+"] LT"},lastWeek(e){return"[o] dddd [pasado \xE1"+(P(e)!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var DC={abbr:"he",months:"\u05D9\u05E0\u05D5\u05D0\u05E8_\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8_\u05DE\u05E8\u05E5_\u05D0\u05E4\u05E8\u05D9\u05DC_\u05DE\u05D0\u05D9_\u05D9\u05D5\u05E0\u05D9_\u05D9\u05D5\u05DC\u05D9_\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8_\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8_\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8_\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8_\u05D3\u05E6\u05DE\u05D1\u05E8".split("_"),monthsShort:"\u05D9\u05E0\u05D5\u05F3_\u05E4\u05D1\u05E8\u05F3_\u05DE\u05E8\u05E5_\u05D0\u05E4\u05E8\u05F3_\u05DE\u05D0\u05D9_\u05D9\u05D5\u05E0\u05D9_\u05D9\u05D5\u05DC\u05D9_\u05D0\u05D5\u05D2\u05F3_\u05E1\u05E4\u05D8\u05F3_\u05D0\u05D5\u05E7\u05F3_\u05E0\u05D5\u05D1\u05F3_\u05D3\u05E6\u05DE\u05F3".split("_"),weekdays:"\u05E8\u05D0\u05E9\u05D5\u05DF_\u05E9\u05E0\u05D9_\u05E9\u05DC\u05D9\u05E9\u05D9_\u05E8\u05D1\u05D9\u05E2\u05D9_\u05D7\u05DE\u05D9\u05E9\u05D9_\u05E9\u05D9\u05E9\u05D9_\u05E9\u05D1\u05EA".split("_"),weekdaysShort:"\u05D0\u05F3_\u05D1\u05F3_\u05D2\u05F3_\u05D3\u05F3_\u05D4\u05F3_\u05D5\u05F3_\u05E9\u05F3".split("_"),weekdaysMin:"\u05D0_\u05D1_\u05D2_\u05D3_\u05D4_\u05D5_\u05E9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05D1]MMMM YYYY",LLL:"D [\u05D1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05D1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05D4\u05D9\u05D5\u05DD \u05D1\u05BE]LT",nextDay:"[\u05DE\u05D7\u05E8 \u05D1\u05BE]LT",nextWeek:"dddd [\u05D1\u05E9\u05E2\u05D4] LT",lastDay:"[\u05D0\u05EA\u05DE\u05D5\u05DC \u05D1\u05BE]LT",lastWeek:"[\u05D1\u05D9\u05D5\u05DD] dddd [\u05D4\u05D0\u05D7\u05E8\u05D5\u05DF \u05D1\u05E9\u05E2\u05D4] LT",sameElse:"L"},relativeTime:{future:"\u05D1\u05E2\u05D5\u05D3 %s",past:"\u05DC\u05E4\u05E0\u05D9 %s",s:"\u05DE\u05E1\u05E4\u05E8 \u05E9\u05E0\u05D9\u05D5\u05EA",ss:"%d \u05E9\u05E0\u05D9\u05D5\u05EA",m:"\u05D3\u05E7\u05D4",mm:"%d \u05D3\u05E7\u05D5\u05EA",h:"\u05E9\u05E2\u05D4",hh(e){return e===2?"\u05E9\u05E2\u05EA\u05D9\u05D9\u05DD":e+" \u05E9\u05E2\u05D5\u05EA"},d:"\u05D9\u05D5\u05DD",dd(e){return e===2?"\u05D9\u05D5\u05DE\u05D9\u05D9\u05DD":e+" \u05D9\u05DE\u05D9\u05DD"},M:"\u05D7\u05D5\u05D3\u05E9",MM(e){return e===2?"\u05D7\u05D5\u05D3\u05E9\u05D9\u05D9\u05DD":e+" \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD"},y:"\u05E9\u05E0\u05D4",yy(e){return e===2?"\u05E9\u05E0\u05EA\u05D9\u05D9\u05DD":e%10===0&&e!==10?e+" \u05E9\u05E0\u05D4":e+" \u05E9\u05E0\u05D9\u05DD"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem(e,t,n){return e<5?"\u05DC\u05E4\u05E0\u05D5\u05EA \u05D1\u05D5\u05E7\u05E8":e<10?"\u05D1\u05D1\u05D5\u05E7\u05E8":e<12?n?'\u05DC\u05E4\u05E0\u05D4"\u05E6':"\u05DC\u05E4\u05E0\u05D9 \u05D4\u05E6\u05D4\u05E8\u05D9\u05D9\u05DD":e<18?n?'\u05D0\u05D7\u05D4"\u05E6':"\u05D0\u05D7\u05E8\u05D9 \u05D4\u05E6\u05D4\u05E8\u05D9\u05D9\u05DD":"\u05D1\u05E2\u05E8\u05D1"}};var Hf={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096A",5:"\u096B",6:"\u096C",7:"\u096D",8:"\u096E",9:"\u096F",0:"\u0966"},Nf={"\u0967":"1","\u0968":"2","\u0969":"3","\u096A":"4","\u096B":"5","\u096C":"6","\u096D":"7","\u096E":"8","\u096F":"9","\u0966":"0"},ph={abbr:"hi",months:"\u091C\u0928\u0935\u0930\u0940_\u092B\u093C\u0930\u0935\u0930\u0940_\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u0948\u0932_\u092E\u0908_\u091C\u0942\u0928_\u091C\u0941\u0932\u093E\u0908_\u0905\u0917\u0938\u094D\u0924_\u0938\u093F\u0924\u092E\u094D\u092C\u0930_\u0905\u0915\u094D\u091F\u0942\u092C\u0930_\u0928\u0935\u092E\u094D\u092C\u0930_\u0926\u093F\u0938\u092E\u094D\u092C\u0930".split("_"),monthsShort:"\u091C\u0928._\u092B\u093C\u0930._\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u0948._\u092E\u0908_\u091C\u0942\u0928_\u091C\u0941\u0932._\u0905\u0917._\u0938\u093F\u0924._\u0905\u0915\u094D\u091F\u0942._\u0928\u0935._\u0926\u093F\u0938.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093F\u0935\u093E\u0930_\u0938\u094B\u092E\u0935\u093E\u0930_\u092E\u0902\u0917\u0932\u0935\u093E\u0930_\u092C\u0941\u0927\u0935\u093E\u0930_\u0917\u0941\u0930\u0942\u0935\u093E\u0930_\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930_\u0936\u0928\u093F\u0935\u093E\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093F_\u0938\u094B\u092E_\u092E\u0902\u0917\u0932_\u092C\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094D\u0930_\u0936\u0928\u093F".split("_"),weekdaysMin:"\u0930_\u0938\u094B_\u092E\u0902_\u092C\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092C\u091C\u0947",LTS:"A h:mm:ss \u092C\u091C\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092C\u091C\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092C\u091C\u0947"},calendar:{sameDay:"[\u0906\u091C] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092A\u093F\u091B\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092E\u0947\u0902",past:"%s \u092A\u0939\u0932\u0947",s:"\u0915\u0941\u091B \u0939\u0940 \u0915\u094D\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090F\u0915 \u092E\u093F\u0928\u091F",mm:"%d \u092E\u093F\u0928\u091F",h:"\u090F\u0915 \u0918\u0902\u091F\u093E",hh:"%d \u0918\u0902\u091F\u0947",d:"\u090F\u0915 \u0926\u093F\u0928",dd:"%d \u0926\u093F\u0928",M:"\u090F\u0915 \u092E\u0939\u0940\u0928\u0947",MM:"%d \u092E\u0939\u0940\u0928\u0947",y:"\u090F\u0915 \u0935\u0930\u094D\u0937",yy:"%d \u0935\u0930\u094D\u0937"},preparse(e){return e.replace(/[१२३४५६७८९०]/g,function(t){return Nf[t]})},postformat(e){return e.replace(/\d/g,function(t){return Hf[t]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour(e,t){if(e===12&&(e=0),t==="\u0930\u093E\u0924")return e<4?e:e+12;if(t==="\u0938\u0941\u092C\u0939")return e;if(t==="\u0926\u094B\u092A\u0939\u0930")return e>=10?e:e+12;if(t==="\u0936\u093E\u092E")return e+12},meridiem(e,t,n){return e<4?"\u0930\u093E\u0924":e<10?"\u0938\u0941\u092C\u0939":e<17?"\u0926\u094B\u092A\u0939\u0930":e<20?"\u0936\u093E\u092E":"\u0930\u093E\u0924"},week:{dow:0,doy:6}};var Vf="vas\xE1rnap h\xE9tf\u0151n kedden szerd\xE1n cs\xFCt\xF6rt\xF6k\xF6n p\xE9nteken szombaton".split(" ");function Ze(e,t,n,i){switch(n){case"s":return i||t?"n\xE9h\xE1ny m\xE1sodperc":"n\xE9h\xE1ny m\xE1sodperce";case"ss":return e+(i||t?" m\xE1sodperc":" m\xE1sodperce");case"m":return"egy"+(i||t?" perc":" perce");case"mm":return e+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xF3ra":" \xF3r\xE1ja");case"hh":return e+(i||t?" \xF3ra":" \xF3r\xE1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return e+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xF3nap":" h\xF3napja");case"MM":return e+(i||t?" h\xF3nap":" h\xF3napja");case"y":return"egy"+(i||t?" \xE9v":" \xE9ve");case"yy":return e+(i||t?" \xE9v":" \xE9ve")}return""}function Ld(e,t){return(t?"":"[m\xFAlt] ")+"["+Vf[ve(e)]+"] LT[-kor]"}var CC={abbr:"hu",months:"janu\xE1r_febru\xE1r_m\xE1rcius_\xE1prilis_m\xE1jus_j\xFAnius_j\xFAlius_augusztus_szeptember_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_m\xE1rc_\xE1pr_m\xE1j_j\xFAn_j\xFAl_aug_szept_okt_nov_dec".split("_"),weekdays:"vas\xE1rnap_h\xE9tf\u0151_kedd_szerda_cs\xFCt\xF6rt\xF6k_p\xE9ntek_szombat".split("_"),weekdaysShort:"vas_h\xE9t_kedd_sze_cs\xFCt_p\xE9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM(e){return e.charAt(1).toLowerCase()==="u"},meridiem(e,t,n){return e<12?n===!0?"de":"DE":n===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek(e){return Ld(e,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek(e){return Ld(e,!1)},sameElse:"L"},relativeTime:{future:"%s m\xFAlva",past:"%s",s:Ze,ss:Ze,m:Ze,mm:Ze,h:Ze,hh:Ze,d:Ze,dd:Ze,M:Ze,MM:Ze,y:Ze,yy:Ze},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var kC={abbr:"hr",months:"Sije\u010Danj_Velja\u010Da_O\u017Eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),monthsShort:"Sij_Velj_O\u017Eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),weekdays:"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010Cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned_Pon_Uto_Sri_\u010Cet_Pet_Sub".split("_"),weekdaysMin:"Ne_Po_Ut_Sr_\u010Ce_Pe_Su".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Danas u] LT",nextDay:"[Sutra u] LT",nextWeek:"dddd [u] LT",lastDay:"[Ju\u010Der u] LT",lastWeek:"[Zadnji] dddd [u] LT",sameElse:"L"},invalidDate:"Neispravan datum",relativeTime:{future:"za %s",past:"%s prije",s:"nekoliko sekundi",ss:"%d sekundi",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godina"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal(e){let t=Number(e),n=t%10,i=(~~(t%100/10)===1,".");return t+i},week:{dow:1,doy:4}};var TC={abbr:"id",months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour(e,t){if(e===12&&(e=0),t==="pagi")return e;if(t==="siang")return e>=11?e:e+12;if(t==="sore"||t==="malam")return e+12},meridiem(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}};var fh={abbr:"it",months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek(e){switch(ve(e)){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future(e){return(/^[0-9].+$/.test(e.toString(10))?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",week:{dow:1,doy:4}};var gh={abbr:"ja",months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM(e){return e==="\u5348\u5F8C"},meridiem(e,t,n){return e<12?"\u5348\u524D":"\u5348\u5F8C"},calendar:{sameDay:"[\u4ECA\u65E5] LT",nextDay:"[\u660E\u65E5] LT",nextWeek:"[\u6765\u9031]dddd LT",lastDay:"[\u6628\u65E5] LT",lastWeek:"[\u524D\u9031]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65E5";default:return e.toString(10)}},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",ss:"%d\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};var EC={abbr:"ka",months:{format:"\u10D8\u10D0\u10DC\u10D5\u10D0\u10E0\u10E1_\u10D7\u10D4\u10D1\u10D4\u10E0\u10D5\u10D0\u10DA\u10E1_\u10DB\u10D0\u10E0\u10E2\u10E1_\u10D0\u10DE\u10E0\u10D8\u10DA\u10D8\u10E1_\u10DB\u10D0\u10D8\u10E1\u10E1_\u10D8\u10D5\u10DC\u10D8\u10E1\u10E1_\u10D8\u10D5\u10DA\u10D8\u10E1\u10E1_\u10D0\u10D2\u10D5\u10D8\u10E1\u10E2\u10E1_\u10E1\u10D4\u10E5\u10E2\u10D4\u10DB\u10D1\u10D4\u10E0\u10E1_\u10DD\u10E5\u10E2\u10DD\u10DB\u10D1\u10D4\u10E0\u10E1_\u10DC\u10DD\u10D4\u10DB\u10D1\u10D4\u10E0\u10E1_\u10D3\u10D4\u10D9\u10D4\u10DB\u10D1\u10D4\u10E0\u10E1".split("_"),standalone:"\u10D8\u10D0\u10DC\u10D5\u10D0\u10E0\u10D8_\u10D7\u10D4\u10D1\u10D4\u10E0\u10D5\u10D0\u10DA\u10D8_\u10DB\u10D0\u10E0\u10E2\u10D8_\u10D0\u10DE\u10E0\u10D8\u10DA\u10D8_\u10DB\u10D0\u10D8\u10E1\u10D8_\u10D8\u10D5\u10DC\u10D8\u10E1\u10D8_\u10D8\u10D5\u10DA\u10D8\u10E1\u10D8_\u10D0\u10D2\u10D5\u10D8\u10E1\u10E2\u10DD_\u10E1\u10D4\u10E5\u10E2\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8_\u10DD\u10E5\u10E2\u10DD\u10DB\u10D1\u10D4\u10E0\u10D8_\u10DC\u10DD\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8_\u10D3\u10D4\u10D9\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8".split("_")},monthsShort:"\u10D8\u10D0\u10DC_\u10D7\u10D4\u10D1_\u10DB\u10D0\u10E0_\u10D0\u10DE\u10E0_\u10DB\u10D0\u10D8_\u10D8\u10D5\u10DC_\u10D8\u10D5\u10DA_\u10D0\u10D2\u10D5_\u10E1\u10D4\u10E5_\u10DD\u10E5\u10E2_\u10DC\u10DD\u10D4_\u10D3\u10D4\u10D9".split("_"),weekdays:{standalone:"\u10D9\u10D5\u10D8\u10E0\u10D0_\u10DD\u10E0\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10E1\u10D0\u10DB\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10DD\u10D7\u10EE\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10EE\u10E3\u10D7\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10DE\u10D0\u10E0\u10D0\u10E1\u10D9\u10D4\u10D5\u10D8_\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8".split("_"),format:"\u10D9\u10D5\u10D8\u10E0\u10D0\u10E1_\u10DD\u10E0\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10E1\u10D0\u10DB\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10DD\u10D7\u10EE\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10EE\u10E3\u10D7\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10DE\u10D0\u10E0\u10D0\u10E1\u10D9\u10D4\u10D5\u10E1_\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"\u10D9\u10D5\u10D8_\u10DD\u10E0\u10E8_\u10E1\u10D0\u10DB_\u10DD\u10D7\u10EE_\u10EE\u10E3\u10D7_\u10DE\u10D0\u10E0_\u10E8\u10D0\u10D1".split("_"),weekdaysMin:"\u10D9\u10D5_\u10DD\u10E0_\u10E1\u10D0_\u10DD\u10D7_\u10EE\u10E3_\u10DE\u10D0_\u10E8\u10D0".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[\u10D3\u10E6\u10D4\u10E1] LT[-\u10D6\u10D4]",nextDay:"[\u10EE\u10D5\u10D0\u10DA] LT[-\u10D6\u10D4]",lastDay:"[\u10D2\u10E3\u10E8\u10D8\u10DC] LT[-\u10D6\u10D4]",nextWeek:"[\u10E8\u10D4\u10DB\u10D3\u10D4\u10D2] dddd LT[-\u10D6\u10D4]",lastWeek:"[\u10EC\u10D8\u10DC\u10D0] dddd LT-\u10D6\u10D4",sameElse:"L"},relativeTime:{future(e){var t=e.toString();return/(წამი|წუთი|საათი|წელი)/.test(t)?t.replace(/ი$/,"\u10E8\u10D8"):t+"\u10E8\u10D8"},past(e){var t=e.toString();if(/(წამი|წუთი|საათი|დღე|თვე)/.test(t))return t.replace(/(ი|ე)$/,"\u10D8\u10E1 \u10EC\u10D8\u10DC");if(/წელი/.test(t))return t.replace(/წელი$/,"\u10EC\u10DA\u10D8\u10E1 \u10EC\u10D8\u10DC")},s:"\u10E0\u10D0\u10DB\u10D3\u10D4\u10DC\u10D8\u10DB\u10D4 \u10EC\u10D0\u10DB\u10D8",ss:"%d \u10EC\u10D0\u10DB\u10D8",m:"\u10EC\u10E3\u10D7\u10D8",mm:"%d \u10EC\u10E3\u10D7\u10D8",h:"\u10E1\u10D0\u10D0\u10D7\u10D8",hh:"%d \u10E1\u10D0\u10D0\u10D7\u10D8",d:"\u10D3\u10E6\u10D4",dd:"%d \u10D3\u10E6\u10D4",M:"\u10D7\u10D5\u10D4",MM:"%d \u10D7\u10D5\u10D4",y:"\u10EC\u10D4\u10DA\u10D8",yy:"%d \u10EC\u10D4\u10DA\u10D8"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal(e,t){let n=Number(e);return n===0?n.toString():n===1?n+"-\u10DA\u10D8":n<20||n<=100&&n%20===0||n%100===0?"\u10DB\u10D4-"+n:n+"-\u10D4"},week:{dow:1,doy:4}},jo={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044B",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044B",10:"-\u0448\u044B",20:"-\u0448\u044B",30:"-\u0448\u044B",40:"-\u0448\u044B",50:"-\u0448\u0456",60:"-\u0448\u044B",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044B",100:"-\u0448\u0456"},xC={abbr:"kk",months:"\u049B\u0430\u04A3\u0442\u0430\u0440_\u0430\u049B\u043F\u0430\u043D_\u043D\u0430\u0443\u0440\u044B\u0437_\u0441\u04D9\u0443\u0456\u0440_\u043C\u0430\u043C\u044B\u0440_\u043C\u0430\u0443\u0441\u044B\u043C_\u0448\u0456\u043B\u0434\u0435_\u0442\u0430\u043C\u044B\u0437_\u049B\u044B\u0440\u043A\u04AF\u0439\u0435\u043A_\u049B\u0430\u0437\u0430\u043D_\u049B\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D".split("_"),monthsShort:"\u049B\u0430\u04A3_\u0430\u049B\u043F_\u043D\u0430\u0443_\u0441\u04D9\u0443_\u043C\u0430\u043C_\u043C\u0430\u0443_\u0448\u0456\u043B_\u0442\u0430\u043C_\u049B\u044B\u0440_\u049B\u0430\u0437_\u049B\u0430\u0440_\u0436\u0435\u043B".split("_"),weekdays:"\u0436\u0435\u043A\u0441\u0435\u043D\u0431\u0456_\u0434\u04AF\u0439\u0441\u0435\u043D\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043D\u0431\u0456_\u0441\u04D9\u0440\u0441\u0435\u043D\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043D\u0431\u0456_\u0436\u04B1\u043C\u0430_\u0441\u0435\u043D\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043A_\u0434\u04AF\u0439_\u0441\u0435\u0439_\u0441\u04D9\u0440_\u0431\u0435\u0439_\u0436\u04B1\u043C_\u0441\u0435\u043D".split("_"),weekdaysMin:"\u0436\u043A_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043C_\u0441\u043D".split("_"),longDateFormat:{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"},calendar:{sameDay:"[\u0411\u04AF\u0433\u0456\u043D \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04A3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041A\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04E8\u0442\u043A\u0435\u043D \u0430\u043F\u0442\u0430\u043D\u044B\u04A3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043D\u0434\u0435",past:"%s \u0431\u04B1\u0440\u044B\u043D",s:"\u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434",ss:"%d \u0441\u0435\u043A\u0443\u043D\u0434",m:"\u0431\u0456\u0440 \u043C\u0438\u043D\u0443\u0442",mm:"%d \u043C\u0438\u043D\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043A\u04AF\u043D",dd:"%d \u043A\u04AF\u043D",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044B\u043B",yy:"%d \u0436\u044B\u043B"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal(e){let t=e%10,n=e>=100?100:null;return e+(jo[e]||jo[t]||jo[n])},week:{dow:1,doy:7}};var vh={abbr:"ko",months:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),monthsShort:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),weekdays:"\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"),weekdaysShort:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),weekdaysMin:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD",LL:"YYYY\uB144 MMMM D\uC77C",LLL:"YYYY\uB144 MMMM D\uC77C A h:mm",LLLL:"YYYY\uB144 MMMM D\uC77C dddd A h:mm",l:"YYYY.MM.DD",ll:"YYYY\uB144 MMMM D\uC77C",lll:"YYYY\uB144 MMMM D\uC77C A h:mm",llll:"YYYY\uB144 MMMM D\uC77C dddd A h:mm"},calendar:{sameDay:"\uC624\uB298 LT",nextDay:"\uB0B4\uC77C LT",nextWeek:"dddd LT",lastDay:"\uC5B4\uC81C LT",lastWeek:"\uC9C0\uB09C\uC8FC dddd LT",sameElse:"L"},relativeTime:{future:"%s \uD6C4",past:"%s \uC804",s:"\uBA87 \uCD08",ss:"%d\uCD08",m:"1\uBD84",mm:"%d\uBD84",h:"\uD55C \uC2DC\uAC04",hh:"%d\uC2DC\uAC04",d:"\uD558\uB8E8",dd:"%d\uC77C",M:"\uD55C \uB2EC",MM:"%d\uB2EC",y:"\uC77C \uB144",yy:"%d\uB144"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uC77C";case"M":return e+"\uC6D4";case"w":case"W":return e+"\uC8FC";default:return e.toString(10)}},meridiemParse:/오전|오후/,isPM:function(e){return e==="\uC624\uD6C4"},meridiem:function(e,t,n){return e<12?"\uC624\uC804":"\uC624\uD6C4"}};var Ff={ss:"sekund\u0117_sekund\u017Ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010Di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012F",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function Bf(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017Ei\u0173":"kelias sekundes"}function an(e,t,n,i){return t?zt(n)[0]:i?zt(n)[1]:zt(n)[2]}function Od(e){return e%10===0||e>10&&e<20}function zt(e){return Ff[e].split("_")}function en(e,t,n,i){let s=e+" ";return e===1?s+an(e,t,n[0],i):t?s+(Od(e)?zt(n)[1]:zt(n)[0]):i?s+zt(n)[1]:s+(Od(e)?zt(n)[1]:zt(n)[2])}var LC={abbr:"lt",months:{format:"sausio_vasario_kovo_baland\u017Eio_gegu\u017E\u0117s_bir\u017Eelio_liepos_rugpj\u016B\u010Dio_rugs\u0117jo_spalio_lapkri\u010Dio_gruod\u017Eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017E\u0117_bir\u017Eelis_liepa_rugpj\u016Btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012F_pirmadien\u012F_antradien\u012F_tre\u010Diadien\u012F_ketvirtadien\u012F_penktadien\u012F_\u0161e\u0161tadien\u012F".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010Diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012F] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:Bf,ss:en,m:an,mm:en,h:an,hh:en,d:an,dd:en,M:an,MM:en,y:an,yy:en},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal(e){return e+"-oji"},week:{dow:1,doy:4}};var OC={abbr:"lv",months:"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012Blis_Maijs_J\u016Bnijs_J\u016Blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mai_J\u016Bn_J\u016Bl_Aug_Sep_Okt_Nov_Dec".split("_"),weekdays:"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),weekdaysShort:"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),weekdaysMin:"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:"da\u017E\u0101m sekund\u0113m",ss:"%d sekund\u0113m",m:"min\u016Btes",mm:"%d min\u016Bt\u0113m",h:"stundas",hh:"%d stund\u0101m",d:"dienas",dd:"%d dien\u0101m",M:"m\u0113ne\u0161a",MM:"%d m\u0113ne\u0161iem",y:"gada",yy:"%d gadiem"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal(e){return e+"."},week:{dow:1,doy:4}};function Je(e,t,n,i){switch(n){case"s":return t?"\u0445\u044D\u0434\u0445\u044D\u043D \u0441\u0435\u043A\u0443\u043D\u0434":"\u0445\u044D\u0434\u0445\u044D\u043D \u0441\u0435\u043A\u0443\u043D\u0434\u044B\u043D";case"ss":return e+(t?" \u0441\u0435\u043A\u0443\u043D\u0434":" \u0441\u0435\u043A\u0443\u043D\u0434\u044B\u043D");case"m":case"mm":return e+(t?" \u043C\u0438\u043D\u0443\u0442":" \u043C\u0438\u043D\u0443\u0442\u044B\u043D");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043D");case"d":case"dd":return e+(t?" \u04E9\u0434\u04E9\u0440":" \u04E9\u0434\u0440\u0438\u0439\u043D");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044B\u043D");case"y":case"yy":return e+(t?" \u0436\u0438\u043B":" \u0436\u0438\u043B\u0438\u0439\u043D");default:return e.toString(10)}}var RC={abbr:"mn",months:"\u041D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0425\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04E9\u0440\u04E9\u0432\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043E\u043B\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041D\u0430\u0439\u043C\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043D \u043D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043D \u0445\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041D\u044F\u043C_\u0414\u0430\u0432\u0430\u0430_\u041C\u044F\u0433\u043C\u0430\u0440_\u041B\u0445\u0430\u0433\u0432\u0430_\u041F\u04AF\u0440\u044D\u0432_\u0411\u0430\u0430\u0441\u0430\u043D_\u0411\u044F\u043C\u0431\u0430".split("_"),weekdaysShort:"\u041D\u044F\u043C_\u0414\u0430\u0432_\u041C\u044F\u0433_\u041B\u0445\u0430_\u041F\u04AF\u0440_\u0411\u0430\u0430_\u0411\u044F\u043C".split("_"),weekdaysMin:"\u041D\u044F_\u0414\u0430_\u041C\u044F_\u041B\u0445_\u041F\u04AF_\u0411\u0430_\u0411\u044F".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043E\u043D\u044B MMMM\u044B\u043D D",LLL:"YYYY \u043E\u043D\u044B MMMM\u044B\u043D D HH:mm",LLLL:"dddd, YYYY \u043E\u043D\u044B MMMM\u044B\u043D D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return e==="\u04AE\u0425"},meridiem:function(e,t,n){return e<12?"\u04AE\u04E8":"\u04AE\u0425"},calendar:{sameDay:"[\u04E8\u043D\u04E9\u04E9\u0434\u04E9\u0440] LT",nextDay:"[\u041C\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044D\u0445] dddd LT",lastDay:"[\u04E8\u0447\u0438\u0433\u0434\u04E9\u0440] LT",lastWeek:"[\u04E8\u043D\u0433\u04E9\u0440\u0441\u04E9\u043D] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04E9\u043C\u043D\u04E9",s:Je,ss:Je,m:Je,mm:Je,h:Je,hh:Je,d:Je,dd:Je,M:Je,MM:Je,y:Je,yy:Je},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04E9\u0434\u04E9\u0440";default:return e.toString(10)}}};var IC={abbr:"nb",months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),weekdaysMin:"s\xF8_ma_ti_on_to_fr_l\xF8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xE5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"ett \xE5r",yy:"%d \xE5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var Rd="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),jf="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),$o=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Id=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,AC={abbr:"nl-be",months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?jf[V(e,n)]:Rd[V(e,n)]:Rd},monthsRegex:Id,monthsShortRegex:Id,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:$o,longMonthsParse:$o,shortMonthsParse:$o,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal(e){let t=Number(e);return t+(t===1||t===8||t>=20?"ste":"de")},week:{dow:1,doy:4}};var Ad="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),$f="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Wo=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Yd=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,YC={abbr:"nl",months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort(e,t,n){return e?/-MMM-/.test(t)?$f[V(e,n)]:Ad[V(e,n)]:Ad},monthsRegex:Yd,monthsShortRegex:Yd,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Wo,longMonthsParse:Wo,shortMonthsParse:Wo,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{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"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal(e){let t=Number(e);return t+(t===1||t===8||t>=20?"ste":"de")},week:{dow:1,doy:4}};var Uo="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),Pd="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_");function Wn(e){return e%10<5&&e%10>1&&~~(e/10)%10!==1}function wi(e,t,n){let i=e+" ";switch(n){case"ss":return i+(Wn(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return i+(Wn(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return i+(Wn(e)?"godziny":"godzin");case"MM":return i+(Wn(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(Wn(e)?"lata":"lat")}}var yh={abbr:"pl",months(e,t,n){return e?t===""?"("+Pd[V(e,n)]+"|"+Uo[V(e,n)]+")":/D MMMM/.test(t)?Pd[V(e,n)]:Uo[V(e,n)]:Uo},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Dzi\u015B o] LT",nextDay:"[Jutro o] LT",nextWeek(e){switch(ve(e)){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015Brod\u0119 o] LT";case 5:return"[W pi\u0105tek o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek(e){switch(ve(e)){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015Brod\u0119 o] LT";case 4:return"[W zesz\u0142\u0105 czwartek o] LT";case 5:return"[W zesz\u0142\u0105 pi\u0105tek o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:wi,m:wi,mm:wi,h:wi,hh:wi,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:wi,y:"rok",yy:wi},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var da={abbr:"pt-br",months:"Janeiro_Fevereiro_Mar\xE7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xE7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xE1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xE1b".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},calendar:{sameDay:"[Hoje \xE0s] LT",nextDay:"[Amanh\xE3 \xE0s] LT",nextWeek:"dddd [\xE0s] LT",lastDay:"[Ontem \xE0s] LT",lastWeek(e){return ve(e)===0||ve(e)===6?"[\xDAltimo] dddd [\xE0s] LT":"[\xDAltima] dddd [\xE0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atr\xE1s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA"};function tn(e,t,n){let i={ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"},s=" ";return(e%100>=20||e>=100&&e%100===0)&&(s=" de "),e+s+i[n]}var PC={abbr:"ro",months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021Bi_miercuri_joi_vineri_s\xE2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xE2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xE2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xE2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xEEn urm\u0103",s:"c\xE2teva secunde",ss:tn,m:"un minut",mm:tn,h:"o or\u0103",hh:tn,d:"o zi",dd:tn,M:"o lun\u0103",MM:tn,y:"un an",yy:tn},week:{dow:1,doy:7}};function Wf(e,t){let n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function Si(e,t,n){let i={ss:t?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434",mm:t?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return n==="m"?t?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":e+" "+Wf(i[n],+e)}var zo=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],bh={abbr:"ru",months:{format:"\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),standalone:"\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_")},monthsShort:{format:"\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),standalone:"\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_")},weekdays:{standalone:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),format:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043E\u0442\u0443".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),monthsParse:zo,longMonthsParse:zo,shortMonthsParse:zo,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043E\u0434\u043D\u044F \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430 \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",nextWeek(e,t){if(Un(t)!==Un(e))switch(ve(e)){case 0:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435] dddd [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439] dddd [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E] dddd [\u0432] LT"}else return ve(e)===2?"[\u0412\u043E] dddd [\u0432] LT":"[\u0412] dddd [\u0432] LT"},lastWeek(e,t){if(Un(t)!==Un(e))switch(ve(e)){case 0:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u0435] dddd [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u044B\u0439] dddd [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043F\u0440\u043E\u0448\u043B\u0443\u044E] dddd [\u0432] LT"}else return ve(e)===2?"[\u0412\u043E] dddd [\u0432] LT":"[\u0412] dddd [\u0432] LT"},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",ss:Si,m:Si,mm:Si,h:"\u0447\u0430\u0441",hh:Si,d:"\u0434\u0435\u043D\u044C",dd:Si,M:"\u043C\u0435\u0441\u044F\u0446",MM:Si,y:"\u0433\u043E\u0434",yy:Si},meridiemParse:/ночи|утра|дня|вечера/i,isPM(e){return/^(дня|вечера)$/.test(e)},meridiem(e,t,n){return e<4?"\u043D\u043E\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal(e,t){let n=Number(e);switch(t){case"M":case"d":case"DDD":return n+"-\u0439";case"D":return n+"-\u0433\u043E";case"w":case"W":return n+"-\u044F";default:return n.toString(10)}},week:{dow:1,doy:4}};var Uf="janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),zf="jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_");function nn(e){return e>1&&e<5&&~~(e/10)!==1}function qe(e,t,n,i){let s=e+" ";switch(n){case"s":return t||i?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"ss":return t||i?s+(nn(e)?"sekundy":"sek\xFAnd"):s+"sekundami";case"m":return t?"min\xFAta":i?"min\xFAtu":"min\xFAtou";case"mm":return t||i?s+(nn(e)?"min\xFAty":"min\xFAt"):s+"min\xFAtami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?s+(nn(e)?"hodiny":"hod\xEDn"):s+"hodinami";case"d":return t||i?"de\u0148":"d\u0148om";case"dd":return t||i?s+(nn(e)?"dni":"dn\xED"):s+"d\u0148ami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?s+(nn(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?s+(nn(e)?"roky":"rokov"):s+"rokmi"}}var HC={abbr:"sk",months:Uf,monthsShort:zf,weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek(e){switch(ve(e)){case 0:return"[v nede\u013Eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010Dera o] LT",lastWeek(e){switch(ve(e)){case 0:return"[minul\xFA nede\u013Eu o] LT";case 1:case 2:return"[minul\xFD] dddd [o] LT";case 3:return"[minul\xFA stredu o] LT";case 4:case 5:return"[minul\xFD] dddd [o] LT";case 6:return"[minul\xFA sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"o %s",past:"pred %s",s:qe,ss:qe,m:qe,mm:qe,h:qe,hh:qe,d:qe,dd:qe,M:qe,MM:qe,y:qe,yy:qe},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};function Qe(e,t,n,i){var s=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return e===1?s+=t?"sekundo":"sekundi":e===2?s+=t||i?"sekundi":"sekundah":e<5?s+=t||i?"sekunde":"sekundah":s+="sekund",s;case"m":return t?"ena minuta":"eno minuto";case"mm":return e===1?s+=t?"minuta":"minuto":e===2?s+=t||i?"minuti":"minutama":e<5?s+=t||i?"minute":"minutami":s+=t||i?"minut":"minutami",s;case"h":return t?"ena ura":"eno uro";case"hh":return e===1?s+=t?"ura":"uro":e===2?s+=t||i?"uri":"urama":e<5?s+=t||i?"ure":"urami":s+=t||i?"ur":"urami",s;case"d":return t||i?"en dan":"enim dnem";case"dd":return e===1?s+=t||i?"dan":"dnem":e===2?s+=t||i?"dni":"dnevoma":s+=t||i?"dni":"dnevi",s;case"M":return t||i?"en mesec":"enim mesecem";case"MM":return e===1?s+=t||i?"mesec":"mesecem":e===2?s+=t||i?"meseca":"mesecema":e<5?s+=t||i?"mesece":"meseci":s+=t||i?"mesecev":"meseci",s;case"y":return t||i?"eno leto":"enim letom";case"yy":return e===1?s+=t||i?"leto":"letom":e===2?s+=t||i?"leti":"letoma":e<5?s+=t||i?"leta":"leti":s+=t||i?"let":"leti",s}}var NC={abbr:"sl",months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010Detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010Det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010De_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek(e){switch(ve(e)){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010Deraj ob] LT",lastWeek(e){switch(ve(e)){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010Dez %s",past:"pred %s",s:Qe,ss:Qe,m:Qe,mm:Qe,h:Qe,hh:Qe,d:Qe,dd:Qe,M:Qe,MM:Qe,y:Qe,yy:Qe},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}};var VC={abbr:"sq",months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xEBntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xEBn_Dhj".split("_"),weekdays:"E Diel\xEB_E H\xEBn\xEB_E Mart\xEB_E M\xEBrkur\xEB_E Enjte_E Premte_E Shtun\xEB".split("_"),weekdaysShort:"Die_H\xEBn_Mar_M\xEBr_Enj_Pre_Sht".split("_"),weekdaysMin:"Di_He_Ma_Me_En_Pr_Sh".split("_"),longDateFormat:{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"},calendar:{sameDay:"[Sot n\xEB] LT",nextDay:"[Nes\xEBr n\xEB] LT",nextWeek:"dddd [n\xEB] LT",lastDay:"[Dje n\xEB] LT",lastWeek:"dddd [e kaluar n\xEB] LT",sameElse:"L"},relativeTime:{future:"n\xEB %s",past:"para %sve",s:"disa sekonda",ss:"%d sekonda",m:"nj\xEB minut",mm:"%d minuta",h:"nj\xEB or\xEB",hh:"%d or\xEB",d:"nj\xEB dit\xEB",dd:"%d dit\xEB",M:"nj\xEB muaj",MM:"%d muaj",y:"nj\xEB vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}};var FC={abbr:"sv",months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xE5r] LT",nextWeek:"[P\xE5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal(e){let t=Number(e),n=t%10,i=~~(t%100/10)===1?"e":n===1||n===2?"a":"e";return t+i},week:{dow:1,doy:4}},BC={abbr:"th",months:"\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21_\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C_\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21_\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19_\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21_\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19_\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21_\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21_\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19_\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21_\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19_\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21".split("_"),monthsShort:"\u0E21.\u0E04._\u0E01.\u0E1E._\u0E21\u0E35.\u0E04._\u0E40\u0E21.\u0E22._\u0E1E.\u0E04._\u0E21\u0E34.\u0E22._\u0E01.\u0E04._\u0E2A.\u0E04._\u0E01.\u0E22._\u0E15.\u0E04._\u0E1E.\u0E22._\u0E18.\u0E04.".split("_"),monthsParseExact:!0,weekdays:"\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"),weekdaysShort:"\u0E2D\u0E32._\u0E08._\u0E2D._\u0E1E._\u0E1E\u0E24._\u0E28._\u0E2A.".split("_"),weekdaysMin:"\u0E2D\u0E32._\u0E08._\u0E2D._\u0E1E._\u0E1E\u0E24._\u0E28._\u0E2A.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm",LLLL:"\u0E27\u0E31\u0E19dddd\u0E17\u0E35\u0E48 D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM(e){return e==="\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},meridiem(e,t,n){return e<12?"\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07":"\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},calendar:{sameDay:"[\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",nextDay:"[\u0E1E\u0E23\u0E38\u0E48\u0E07\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",nextWeek:"dddd[\u0E2B\u0E19\u0E49\u0E32 \u0E40\u0E27\u0E25\u0E32] LT",lastDay:"[\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E32\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",lastWeek:"[\u0E27\u0E31\u0E19]dddd[\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E27\u0E25\u0E32] LT",sameElse:"L"},relativeTime:{future:"\u0E2D\u0E35\u0E01 %s",past:"%s\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",s:"\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",ss:"%d \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",m:"1 \u0E19\u0E32\u0E17\u0E35",mm:"%d \u0E19\u0E32\u0E17\u0E35",h:"1 \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07",hh:"%d \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07",d:"1 \u0E27\u0E31\u0E19",dd:"%d \u0E27\u0E31\u0E19",M:"1 \u0E40\u0E14\u0E37\u0E2D\u0E19",MM:"%d \u0E40\u0E14\u0E37\u0E2D\u0E19",y:"1 \u0E1B\u0E35",yy:"%d \u0E1B\u0E35"}},Hd={abbr:"th-be",months:"\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21_\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C_\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21_\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19_\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21_\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19_\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21_\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21_\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19_\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21_\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19_\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21".split("_"),monthsShort:"\u0E21.\u0E04._\u0E01.\u0E1E._\u0E21\u0E35.\u0E04._\u0E40\u0E21.\u0E22._\u0E1E.\u0E04._\u0E21\u0E34.\u0E22._\u0E01.\u0E04._\u0E2A.\u0E04._\u0E01.\u0E22._\u0E15.\u0E04._\u0E1E.\u0E22._\u0E18.\u0E04.".split("_"),monthsParseExact:!0,weekdays:"\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"),weekdaysShort:"\u0E2D\u0E32._\u0E08._\u0E2D._\u0E1E._\u0E1E\u0E24._\u0E28._\u0E2A.".split("_"),weekdaysMin:"\u0E2D\u0E32._\u0E08._\u0E2D._\u0E1E._\u0E1E\u0E24._\u0E28._\u0E2A.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm",LLLL:"\u0E27\u0E31\u0E19dddd\u0E17\u0E35\u0E48 D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM(e){return e==="\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},meridiem(e,t,n){return e<12?"\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07":"\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},calendar:{sameDay:"[\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",nextDay:"[\u0E1E\u0E23\u0E38\u0E48\u0E07\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",nextWeek:"dddd[\u0E2B\u0E19\u0E49\u0E32 \u0E40\u0E27\u0E25\u0E32] LT",lastDay:"[\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E32\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",lastWeek:"[\u0E27\u0E31\u0E19]dddd[\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E27\u0E25\u0E32] LT",sameElse:"L"},relativeTime:{future:"\u0E2D\u0E35\u0E01 %s",past:"%s\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",s:"\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",ss:"%d \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",m:"1 \u0E19\u0E32\u0E17\u0E35",mm:"%d \u0E19\u0E32\u0E17\u0E35",h:"1 \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07",hh:"%d \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07",d:"1 \u0E27\u0E31\u0E19",dd:"%d \u0E27\u0E31\u0E19",M:"1 \u0E40\u0E14\u0E37\u0E2D\u0E19",MM:"%d \u0E40\u0E14\u0E37\u0E2D\u0E19",y:"1 \u0E1B\u0E35",yy:"%d \u0E1B\u0E35"},preparse(e,t){let n=Hd.longDateFormat[t]?Hd.longDateFormat[t]:t;if(n.indexOf("YYYY",n.length-4)!==-1){let i=e.substr(0,e.length-4),s=parseInt(e.substr(e.length-4),10)-543;return i+s}return e},getFullYear(e,t=!1){return 543+(t?e.getUTCFullYear():e.getFullYear())}};var Go={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xFCnc\xFC",4:"'\xFCnc\xFC",100:"'\xFCnc\xFC",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"},wh={abbr:"tr",months:"Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xC7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xC7a_Pe_Cu_Ct".split("_"),longDateFormat:{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"},calendar:{sameDay:"[bug\xFCn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xFCn] LT",lastWeek:"[ge\xE7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xF6nce",s:"birka\xE7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xFCn",dd:"%d g\xFCn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},dayOfMonthOrdinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal(e){let t=Number(e);if(t===0)return t+"'\u0131nc\u0131";let n=t%10,i=t%100-n,s=t>=100?100:null;return t+(Go[n]||Go[i]||Go[s])},week:{dow:1,doy:7}};function Gf(e,t){let n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function Mi(e,t,n){let i={ss:t?"\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434":"\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434",mm:t?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D",hh:t?"\u0433\u043E\u0434\u0438\u043D\u0430_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D":"\u0433\u043E\u0434\u0438\u043D\u0443_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u0456_\u0434\u043D\u0456\u0432",MM:"\u043C\u0456\u0441\u044F\u0446\u044C_\u043C\u0456\u0441\u044F\u0446\u0456_\u043C\u0456\u0441\u044F\u0446\u0456\u0432",yy:"\u0440\u0456\u043A_\u0440\u043E\u043A\u0438_\u0440\u043E\u043A\u0456\u0432"};return n==="m"?t?"\u0445\u0432\u0438\u043B\u0438\u043D\u0430":"\u0445\u0432\u0438\u043B\u0438\u043D\u0443":n==="h"?t?"\u0433\u043E\u0434\u0438\u043D\u0430":"\u0433\u043E\u0434\u0438\u043D\u0443":e+" "+Gf(i[n],+e)}function Kf(e,t,n){let i={nominative:"\u043D\u0435\u0434\u0456\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044F_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"),accusative:"\u043D\u0435\u0434\u0456\u043B\u044E_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044E_\u0441\u0443\u0431\u043E\u0442\u0443".split("_"),genitive:"\u043D\u0435\u0434\u0456\u043B\u0456_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043A\u0430_\u0432\u0456\u0432\u0442\u043E\u0440\u043A\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u0456_\u0441\u0443\u0431\u043E\u0442\u0438".split("_")};if(!e)return i.nominative;let s=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[s][ve(e,n)]}function sn(e){return function(t){return e+"\u043E"+(P(t)===11?"\u0431":"")+"] LT"}}var jC={abbr:"uk",months:{format:"\u0441\u0456\u0447\u043D\u044F_\u043B\u044E\u0442\u043E\u0433\u043E_\u0431\u0435\u0440\u0435\u0437\u043D\u044F_\u043A\u0432\u0456\u0442\u043D\u044F_\u0442\u0440\u0430\u0432\u043D\u044F_\u0447\u0435\u0440\u0432\u043D\u044F_\u043B\u0438\u043F\u043D\u044F_\u0441\u0435\u0440\u043F\u043D\u044F_\u0432\u0435\u0440\u0435\u0441\u043D\u044F_\u0436\u043E\u0432\u0442\u043D\u044F_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043D\u044F".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043D\u044C_\u043B\u044E\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C_\u043A\u0432\u0456\u0442\u0435\u043D\u044C_\u0442\u0440\u0430\u0432\u0435\u043D\u044C_\u0447\u0435\u0440\u0432\u0435\u043D\u044C_\u043B\u0438\u043F\u0435\u043D\u044C_\u0441\u0435\u0440\u043F\u0435\u043D\u044C_\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C_\u0436\u043E\u0432\u0442\u0435\u043D\u044C_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043D\u044C".split("_")},monthsShort:"\u0441\u0456\u0447_\u043B\u044E\u0442_\u0431\u0435\u0440_\u043A\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043B\u0438\u043F_\u0441\u0435\u0440\u043F_\u0432\u0435\u0440_\u0436\u043E\u0432\u0442_\u043B\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:Kf,weekdaysShort:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:sn("[\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456 "),nextDay:sn("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:sn("[\u0412\u0447\u043E\u0440\u0430 "),nextWeek:sn("[\u0423] dddd ["),lastWeek(e){switch(ve(e)){case 0:case 3:case 5:case 6:return sn("[\u041C\u0438\u043D\u0443\u043B\u043E\u0457] dddd [")(e);case 1:case 2:case 4:return sn("[\u041C\u0438\u043D\u0443\u043B\u043E\u0433\u043E] dddd [")(e)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043E\u043C\u0443",s:"\u0434\u0435\u043A\u0456\u043B\u044C\u043A\u0430 \u0441\u0435\u043A\u0443\u043D\u0434",ss:Mi,m:Mi,mm:Mi,h:"\u0433\u043E\u0434\u0438\u043D\u0443",hh:Mi,d:"\u0434\u0435\u043D\u044C",dd:Mi,M:"\u043C\u0456\u0441\u044F\u0446\u044C",MM:Mi,y:"\u0440\u0456\u043A",yy:Mi},meridiemParse:/ночі|ранку|дня|вечора/,isPM(e){return/^(дня|вечора)$/.test(e)},meridiem(e,t,n){return e<4?"\u043D\u043E\u0447\u0456":e<12?"\u0440\u0430\u043D\u043A\u0443":e<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u043E\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal(e,t){let n=Number(e);switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-\u0439";case"D":return n+"-\u0433\u043E";default:return n.toString()}},week:{dow:1,doy:7}};var $C={abbr:"vi",months:"th\xE1ng 1_th\xE1ng 2_th\xE1ng 3_th\xE1ng 4_th\xE1ng 5_th\xE1ng 6_th\xE1ng 7_th\xE1ng 8_th\xE1ng 9_th\xE1ng 10_th\xE1ng 11_th\xE1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"ch\u1EE7 nh\u1EADt_th\u1EE9 hai_th\u1EE9 ba_th\u1EE9 t\u01B0_th\u1EE9 n\u0103m_th\u1EE9 s\xE1u_th\u1EE9 b\u1EA3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM(e){return/^ch$/i.test(e)},meridiem(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xF4m nay l\xFAc] LT",nextDay:"[Ng\xE0y mai l\xFAc] LT",nextWeek:"dddd [tu\u1EA7n t\u1EDBi l\xFAc] LT",lastDay:"[H\xF4m qua l\xFAc] LT",lastWeek:"dddd [tu\u1EA7n tr\u01B0\u1EDBc l\xFAc] LT",sameElse:"L"},relativeTime:{future:"%s t\u1EDBi",past:"%s tr\u01B0\u1EDBc",s:"v\xE0i gi\xE2y",ss:"%d gi\xE2y",m:"m\u1ED9t ph\xFAt",mm:"%d ph\xFAt",h:"m\u1ED9t gi\u1EDD",hh:"%d gi\u1EDD",d:"m\u1ED9t ng\xE0y",dd:"%d ng\xE0y",M:"m\u1ED9t th\xE1ng",MM:"%d th\xE1ng",y:"m\u1ED9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal(e){return""+e},week:{dow:1,doy:4}};var Sh={abbr:"zh-cn",months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour(e,t){return e===12&&(e=0),t==="\u51CC\u6668"||t==="\u65E9\u4E0A"||t==="\u4E0A\u5348"?e:t==="\u4E0B\u5348"||t==="\u665A\u4E0A"?e+12:e>=11?e:e+12},meridiem(e,t,n){let i=e*100+t;return i<600?"\u51CC\u6668":i<900?"\u65E9\u4E0A":i<1130?"\u4E0A\u5348":i<1230?"\u4E2D\u5348":i<1800?"\u4E0B\u5348":"\u665A\u4E0A"},calendar:{sameDay:"[\u4ECA\u5929]LT",nextDay:"[\u660E\u5929]LT",nextWeek:"[\u4E0B]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4E0A]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal(e,t){let n=Number(e);switch(t){case"d":case"D":case"DDD":return n+"\u65E5";case"M":return n+"\u6708";case"w":case"W":return n+"\u5468";default:return n.toString()}},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",ss:"%d \u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},week:{dow:1,doy:4}};var Xf={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},Zf={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},Nd=function(e){return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},Jf={s:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062B\u0627\u0646\u06CC\u0647","\u06CC\u06A9 \u062B\u0627\u0646\u06CC\u0647",["\u062F\u0648 \u062B\u0627\u0646\u06CC\u0647","\u062F\u0648 \u062B\u0627\u0646\u06CC\u0647"],"%d \u062B\u0627\u0646\u06CC\u0647","%d \u062B\u0627\u0646\u06CC\u0647","%d \u062B\u0627\u0646\u06CC\u0647"],m:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647","\u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647",["\u062F\u0648 \u062F\u0642\u06CC\u0642\u0647","\u062F\u0648 \u062F\u0642\u06CC\u0642\u0647"],"%d \u062F\u0642\u06CC\u0642\u0647","%d \u062F\u0642\u06CC\u0642\u0647","%d \u062F\u0642\u06CC\u0642\u0647"],h:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0633\u0627\u0639\u062A","\u06CC\u06A9 \u0633\u0627\u0639\u062A",["\u062F\u0648 \u0633\u0627\u0639\u062A","\u062F\u0648 \u0633\u0627\u0639\u062A"],"%d \u0633\u0627\u0639\u062A","%d \u0633\u0627\u0639\u062A","%d \u0633\u0627\u0639\u062A"],d:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0631\u0648\u0632","\u06CC\u06A9 \u0631\u0648\u0632",["\u062F\u0648 \u0631\u0648\u0632","\u062F\u0648 \u0631\u0648\u0632"],"%d \u0631\u0648\u0632","%d \u0631\u0648\u0632","%d \u0631\u0648\u0632"],M:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0645\u0627\u0647","\u06CC\u06A9 \u0645\u0627\u0647",["\u062F\u0648 \u0645\u0627\u0647","\u062F\u0648 \u0645\u0627\u0647"],"%d \u0645\u0627\u0647","%d \u0645\u0627\u0647","%d \u0645\u0627\u0647"],y:["\u06A9\u0645\u062A\u0631 \u0627\u0632 \u06CC\u06A9 \u0633\u0627\u0644","\u06CC\u06A9 \u0633\u0627\u0644",["\u062F\u0648 \u0633\u0627\u0644","\u062F\u0648 \u0633\u0627\u0644"],"%d \u0633\u0627\u0644","%d \u0633\u0627\u0644","%d \u0633\u0627\u0644"]},et=function(e){return function(t,n){let i=Nd(t),s=Jf[e][Nd(t)];return i===2&&(s=s[n?0:1]),s.replace(/%d/i,t.toString())}},Vd=["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u06CC","\u0698\u0648\u0626\u0646","\u062C\u0648\u0644\u0627\u06CC","\u0622\u06AF\u0648\u0633\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],WC={abbr:"fa",months:Vd,monthsShort:Vd,weekdays:"\u06CC\u06A9\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647 \u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C \u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06CC\u06A9\u0634\u0646\u0628\u0647_\u062F\u0648\u200C\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u200C\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06CC_\u062F_\u0633_\u0686_\u067E_\u062C_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200FM/\u200FYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM(e){return e==="\u0645"},meridiem(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u062F\u0631 \u0633\u0627\u0639\u062A] LT",nextDay:"[\u0641\u0631\u062F\u0627 \u062F\u0631 \u0633\u0627\u0639\u062A] LT",nextWeek:"dddd [\u062F\u0631 \u0633\u0627\u0639\u062A] LT",lastDay:"[\u062F\u06CC\u0631\u0648\u0632 \u062F\u0631 \u0633\u0627\u0639\u062A] LT",lastWeek:"dddd [\u062F\u0631 \u0633\u0627\u0639\u062A] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062F %s",past:"\u067E\u06CC\u0634 %s",s:et("s"),ss:et("s"),m:et("m"),mm:et("m"),h:et("h"),hh:et("h"),d:et("d"),dd:et("d"),M:et("M"),MM:et("M"),y:et("y"),yy:et("y")},preparse(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(t){return Zf[t]}).replace(/،/g,",")},postformat(e){return e.replace(/\d/g,function(t){return Xf[t]}).replace(/,/g,"\u060C")},week:{dow:6,doy:80}};var un=class extends F{constructor(t,n,i){super(t),n.pipe(Aa(Oa)).pipe(Fa((o,a)=>a?i(o,a):o,t)).subscribe(o=>this.next(o))}},_n=class e extends ti{constructor(t,n,i){super(),this._dispatcher=t,this._reducer=n,this.source=i}select(t){return(this.source?.pipe(Ve(t))||new ti().pipe(Ve(t))).pipe(Ai())}lift(t){let n=new e(this._dispatcher,this._reducer,this);return n.operator=t,n}dispatch(t){this._dispatcher.next(t)}next(t){this._dispatcher.next(t)}error(t){this._dispatcher.error(t)}complete(){}};function qf(e,t){e&1&&(_(0,"td"),D(1,"\xA0\xA0\xA0"),m())}function Qf(e,t){if(e&1){let n=T();_(0,"td")(1,"a",1),b("click",function(){f(n);let s=c();return g(s.changeMinutes(s.minuteStep))}),z(2,"span",2),m()()}if(e&2){let n=c();d(),L("disabled",!n.canIncrementMinutes||!n.isEditable)}}function eg(e,t){e&1&&(_(0,"td"),D(1,"\xA0"),m())}function tg(e,t){if(e&1){let n=T();_(0,"td")(1,"a",1),b("click",function(){f(n);let s=c();return g(s.changeSeconds(s.secondsStep))}),z(2,"span",2),m()()}if(e&2){let n=c();d(),L("disabled",!n.canIncrementSeconds||!n.isEditable)}}function ig(e,t){e&1&&(_(0,"td"),D(1,"\xA0\xA0\xA0"),m())}function ng(e,t){e&1&&z(0,"td")}function sg(e,t){e&1&&(_(0,"td"),D(1,"\xA0:\xA0"),m())}function rg(e,t){if(e&1){let n=T();_(0,"td",4)(1,"input",5),b("wheel",function(s){f(n);let r=c();return r.prevDef(s),g(r.changeMinutes(r.minuteStep*r.wheelSign(s),"wheel"))})("keydown.ArrowUp",function(){f(n);let s=c();return g(s.changeMinutes(s.minuteStep,"key"))})("keydown.ArrowDown",function(){f(n);let s=c();return g(s.changeMinutes(-s.minuteStep,"key"))})("change",function(s){f(n);let r=c();return g(r.updateMinutes(s.target))}),m()()}if(e&2){let n=c();L("has-error",n.invalidMinutes),d(),L("is-invalid",n.invalidMinutes),u("placeholder",n.minutesPlaceholder)("readonly",n.readonlyInput)("disabled",n.disabled)("value",n.minutes),K("aria-label",n.labelMinutes)}}function og(e,t){e&1&&(_(0,"td"),D(1,"\xA0:\xA0"),m())}function ag(e,t){if(e&1){let n=T();_(0,"td",4)(1,"input",5),b("wheel",function(s){f(n);let r=c();return r.prevDef(s),g(r.changeSeconds(r.secondsStep*r.wheelSign(s),"wheel"))})("keydown.ArrowUp",function(){f(n);let s=c();return g(s.changeSeconds(s.secondsStep,"key"))})("keydown.ArrowDown",function(){f(n);let s=c();return g(s.changeSeconds(-s.secondsStep,"key"))})("change",function(s){f(n);let r=c();return g(r.updateSeconds(s.target))}),m()()}if(e&2){let n=c();L("has-error",n.invalidSeconds),d(),L("is-invalid",n.invalidSeconds),u("placeholder",n.secondsPlaceholder)("readonly",n.readonlyInput)("disabled",n.disabled)("value",n.seconds),K("aria-label",n.labelSeconds)}}function lg(e,t){e&1&&(_(0,"td"),D(1,"\xA0\xA0\xA0"),m())}function cg(e,t){if(e&1){let n=T();_(0,"td")(1,"button",8),b("click",function(){f(n);let s=c();return g(s.toggleMeridian())}),D(2),m()()}if(e&2){let n=c();d(),L("disabled",!n.isEditable||!n.canToggleMeridian),u("disabled",!n.isEditable||!n.canToggleMeridian),d(),ke("",n.meridian," ")}}function dg(e,t){e&1&&(_(0,"td"),D(1,"\xA0\xA0\xA0"),m())}function hg(e,t){if(e&1){let n=T();_(0,"td")(1,"a",1),b("click",function(){f(n);let s=c();return g(s.changeMinutes(-s.minuteStep))}),z(2,"span",7),m()()}if(e&2){let n=c();d(),L("disabled",!n.canDecrementMinutes||!n.isEditable)}}function ug(e,t){e&1&&(_(0,"td"),D(1,"\xA0"),m())}function _g(e,t){if(e&1){let n=T();_(0,"td")(1,"a",1),b("click",function(){f(n);let s=c();return g(s.changeSeconds(-s.secondsStep))}),z(2,"span",7),m()()}if(e&2){let n=c();d(),L("disabled",!n.canDecrementSeconds||!n.isEditable)}}function mg(e,t){e&1&&(_(0,"td"),D(1,"\xA0\xA0\xA0"),m())}function pg(e,t){e&1&&z(0,"td")}var Kt=(()=>{let t=class t{writeValue(i){return{type:t.WRITE_VALUE,payload:i}}changeHours(i){return{type:t.CHANGE_HOURS,payload:i}}changeMinutes(i){return{type:t.CHANGE_MINUTES,payload:i}}changeSeconds(i){return{type:t.CHANGE_SECONDS,payload:i}}setTime(i){return{type:t.SET_TIME_UNIT,payload:i}}updateControls(i){return{type:t.UPDATE_CONTROLS,payload:i}}};t.WRITE_VALUE="[timepicker] write value from ng model",t.CHANGE_HOURS="[timepicker] change hours",t.CHANGE_MINUTES="[timepicker] change minutes",t.CHANGE_SECONDS="[timepicker] change seconds",t.SET_TIME_UNIT="[timepicker] set time unit",t.UPDATE_CONTROLS="[timepicker] update controls",t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),fg=10,gg=24,Eh=12,vg=60,yg=60;function _a(e){return!e||e instanceof Date&&isNaN(e.getHours())?!1:typeof e=="string"?_a(new Date(e)):!0}function ha(e,t){return!(e.min&&t<e.min||e.max&&t>e.max)}function mn(e){return typeof e>"u"?NaN:typeof e=="number"?e:parseInt(e,fg)}function xh(e,t=!1){let n=mn(e);return isNaN(n)||n<0||n>(t?Eh:gg)?NaN:n}function Lh(e){let t=mn(e);return isNaN(t)||t<0||t>vg?NaN:t}function Oh(e){let t=mn(e);return isNaN(t)||t<0||t>yg?NaN:t}function Mh(e){return typeof e=="string"?new Date(e):e}function tt(e,t){if(!e)return tt(_r(new Date,0,0,0),t);if(!t)return e;let n=e.getHours(),i=e.getMinutes(),s=e.getSeconds();return t.hour&&(n=n+mn(t.hour)),t.minute&&(i=i+mn(t.minute)),t.seconds&&(s=s+mn(t.seconds)),_r(e,n,i,s)}function Rh(e,t){let n=xh(t.hour),i=Lh(t.minute),s=Oh(t.seconds)||0;return t.isPM&&n!==12&&(n+=Eh),e?isNaN(n)||isNaN(i)?e:_r(e,n,i,s):!isNaN(n)&&!isNaN(i)?_r(new Date,n,i,s):e}function _r(e,t,n,i){let s=new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,i,e.getMilliseconds());return s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(e.getDate()),s}function ua(e){let t=e.toString();return t.length>1?t:`0${t}`}function Ih(e,t){return!isNaN(xh(e,t))}function Ah(e){return!isNaN(Lh(e))}function Yh(e){return!isNaN(Oh(e))}function bg(e,t,n){let i=Rh(new Date,e);return!(!i||t&&i>t||n&&i<n)}function wg(e,t,n){return e.length===0||t.length===0||n.length===0}function Dh(e,t="0",n="0",i){return Ih(e,i)&&Ah(t)&&Yh(n)}function ur(e,t){return!(e.readonlyInput||e.disabled||t&&(t.source==="wheel"&&!e.mousewheel||t.source==="key"&&!e.arrowkeys))}function Sg(e,t){return!(!e.step||e.step>0&&!t.canIncrementHours||e.step<0&&!t.canDecrementHours)}function Mg(e,t){return!(!e.step||e.step>0&&!t.canIncrementMinutes||e.step<0&&!t.canDecrementMinutes)}function Dg(e,t){return!(!e.step||e.step>0&&!t.canIncrementSeconds||e.step<0&&!t.canDecrementSeconds)}function Ch(e){let{hourStep:t,minuteStep:n,secondsStep:i,readonlyInput:s,disabled:r,mousewheel:o,arrowkeys:a,showSpinners:l,showMeridian:h,showSeconds:p,meridians:v,min:C,max:x}=e;return{hourStep:t,minuteStep:n,secondsStep:i,readonlyInput:s,disabled:r,mousewheel:o,arrowkeys:a,showSpinners:l,showMeridian:h,showSeconds:p,meridians:v,min:C,max:x}}function Cg(e,t){let{min:s,max:r,hourStep:o,minuteStep:a,secondsStep:l,showSeconds:h}=t,p={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!e)return p;if(r){let v=tt(e,{hour:o});if(p.canIncrementHours=r>v&&e.getHours()+o<24,!p.canIncrementHours){let C=tt(e,{minute:a});p.canIncrementMinutes=h?r>C:r>=C}if(!p.canIncrementMinutes){let C=tt(e,{seconds:l});p.canIncrementSeconds=r>=C}e.getHours()<12&&(p.canToggleMeridian=tt(e,{hour:12})<r)}if(s){let v=tt(e,{hour:-o});if(p.canDecrementHours=s<v,!p.canDecrementHours){let C=tt(e,{minute:-a});p.canDecrementMinutes=h?s<C:s<=C}if(!p.canDecrementMinutes){let C=tt(e,{seconds:-l});p.canDecrementSeconds=s<=C}e.getHours()>=12&&(p.canToggleMeridian=tt(e,{hour:-12})>s)}return p}var Ph=(()=>{let t=class t{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Hh={value:void 0,config:new Ph,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function kh(e=Hh,t){switch(t.type){case Kt.WRITE_VALUE:return Object.assign({},e,{value:t.payload});case Kt.CHANGE_HOURS:{if(!ur(e.config,t.payload)||!Sg(t.payload,e.controls))return e;let n=tt(e.value,{hour:t.payload.step});return(e.config.max||e.config.min)&&!ha(e.config,n)?e:Object.assign({},e,{value:n})}case Kt.CHANGE_MINUTES:{if(!ur(e.config,t.payload)||!Mg(t.payload,e.controls))return e;let n=tt(e.value,{minute:t.payload.step});return(e.config.max||e.config.min)&&!ha(e.config,n)?e:Object.assign({},e,{value:n})}case Kt.CHANGE_SECONDS:{if(!ur(e.config,t.payload)||!Dg(t.payload,e.controls))return e;let n=tt(e.value,{seconds:t.payload.step});return(e.config.max||e.config.min)&&!ha(e.config,n)?e:Object.assign({},e,{value:n})}case Kt.SET_TIME_UNIT:{if(!ur(e.config))return e;let n=Rh(e.value,t.payload);return Object.assign({},e,{value:n})}case Kt.UPDATE_CONTROLS:{let n=Cg(e.value,t.payload),i={value:e.value,config:t.payload,controls:n};return e.config.showMeridian!==i.config.showMeridian&&e.value&&(i.value=new Date(e.value)),Object.assign({},e,i)}default:return e}}var Th=(()=>{let t=class t extends _n{constructor(){let i=new F({type:"[mini-ngrx] dispatcher init"}),s=new un(Hh,i,kh);super(i,kh,s)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),kg={provide:kn,useExisting:At(()=>pn),multi:!0},pn=(()=>{let t=class t{constructor(i,s,r,o){this._cd=s,this._store=r,this._timepickerActions=o,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new E,this.meridianChange=new E,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=i,Object.assign(this,this.config),this.timepickerSub=r.select(a=>a.value).subscribe(a=>{this._renderTime(a),this.onChange(a),this._store.dispatch(this._timepickerActions.updateControls(Ch(this)))}),r.select(a=>a.controls).subscribe(a=>{let l=Dh(this.hours,this.minutes,this.seconds,this.isPM()),h=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||l;this.isValid.emit(h),Object.assign(this,a),s.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(i){i.preventDefault()}wheelSign(i){return Math.sign(i.deltaY||0)*-1}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Ch(this)))}changeHours(i,s=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:i,source:s}))}changeMinutes(i,s=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:i,source:s}))}changeSeconds(i,s=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:i,source:s}))}updateHours(i){this.resetValidation(),this.hours=i.value;let s=Ih(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||s)){this.invalidHours=!0,this.isValid.emit(!1),this.onChange(null);return}this._updateTime()}updateMinutes(i){this.resetValidation(),this.minutes=i.value;let s=Ah(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||s)){this.invalidMinutes=!0,this.isValid.emit(!1),this.onChange(null);return}this._updateTime()}updateSeconds(i){this.resetValidation(),this.seconds=i.value;let s=Yh(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||s)){this.invalidSeconds=!0,this.isValid.emit(!1),this.onChange(null);return}this._updateTime()}isValidLimit(){return bg({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max,this.min)}isOneOfDatesIsEmpty(){return wg(this.hours,this.minutes,this.seconds)}_updateTime(){let i=this.showSeconds?this.seconds:void 0,s=this.showMinutes?this.minutes:void 0,r=Dh(this.hours,s,i,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||r)){this.isValid.emit(!1),this.onChange(null);return}this._store.dispatch(this._timepickerActions.setTime({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()}))}toggleMeridian(){if(!this.showMeridian||!this.isEditable)return;this._store.dispatch(this._timepickerActions.changeHours({step:12,source:""}))}writeValue(i){_a(i)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(Mh(i)))):i==null&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(i){this.onChange=i}registerOnTouched(i){this.onTouched=i}setDisabledState(i){this.disabled=i,this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(i){if(!i||!_a(i)){this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians[0],this.meridianChange.emit(this.meridian);return}let s=Mh(i);if(!s)return;let r=12,o=s.getHours();this.showMeridian&&(this.meridian=this.meridians[o>=r?1:0],this.meridianChange.emit(this.meridian),o=o%r,o===0&&(o=r)),this.hours=ua(o),this.minutes=ua(s.getMinutes()),this.seconds=ua(s.getUTCSeconds())}};t.\u0275fac=function(s){return new(s||t)(y(Ph),y(Fi),y(Th),y(Kt))},t.\u0275cmp=U({type:t,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[ue([kg,Th,Kt]),vt],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"wheel","keydown.ArrowUp","keydown.ArrowDown","change","placeholder","readonly","disabled","value"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"click","disabled"]],template:function(s,r){s&1&&(_(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),b("click",function(){return r.changeHours(r.hourStep)}),z(5,"span",2),m()(),S(6,qf,2,0,"td",3)(7,Qf,3,2,"td",3)(8,eg,2,0,"td",3)(9,tg,3,2,"td",3)(10,ig,2,0,"td",3)(11,ng,1,0,"td",3),m(),_(12,"tr")(13,"td",4)(14,"input",5),b("wheel",function(a){return r.prevDef(a),r.changeHours(r.hourStep*r.wheelSign(a),"wheel")})("keydown.ArrowUp",function(){return r.changeHours(r.hourStep,"key")})("keydown.ArrowDown",function(){return r.changeHours(-r.hourStep,"key")})("change",function(a){return r.updateHours(a.target)}),m()(),S(15,sg,2,0,"td",3)(16,rg,2,9,"td",6)(17,og,2,0,"td",3)(18,ag,2,9,"td",6)(19,lg,2,0,"td",3)(20,cg,3,4,"td",3),m(),_(21,"tr",0)(22,"td")(23,"a",1),b("click",function(){return r.changeHours(-r.hourStep)}),z(24,"span",7),m()(),S(25,dg,2,0,"td",3)(26,hg,3,2,"td",3)(27,ug,2,0,"td",3)(28,_g,3,2,"td",3)(29,mg,2,0,"td",3)(30,pg,1,0,"td",3),m()()()),s&2&&(d(2),u("hidden",!r.showSpinners),d(2),L("disabled",!r.canIncrementHours||!r.isEditable),d(2),u("ngIf",r.showMinutes),d(),u("ngIf",r.showMinutes),d(),u("ngIf",r.showSeconds),d(),u("ngIf",r.showSeconds),d(),u("ngIf",r.showMeridian),d(),u("ngIf",r.showMeridian),d(2),L("has-error",r.invalidHours),d(),L("is-invalid",r.invalidHours),u("placeholder",r.hoursPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.hours),K("aria-label",r.labelHours),d(),u("ngIf",r.showMinutes),d(),u("ngIf",r.showMinutes),d(),u("ngIf",r.showSeconds),d(),u("ngIf",r.showSeconds),d(),u("ngIf",r.showMeridian),d(),u("ngIf",r.showMeridian),d(),u("hidden",!r.showSpinners),d(2),L("disabled",!r.canDecrementHours||!r.isEditable),d(2),u("ngIf",r.showMinutes),d(),u("ngIf",r.showMinutes),d(),u("ngIf",r.showSeconds),d(),u("ngIf",r.showSeconds),d(),u("ngIf",r.showMeridian),d(),u("ngIf",r.showMeridian))},dependencies:[Fe],styles:[`.bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{-webkit-transform:rotate(45deg);transform:rotate(45deg);top:2px}.bs-chevron-down{-webkit-transform:rotate(-135deg);transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}
|
|
3
|
-
`],encapsulation:2,changeDetection:0});let e=t;return e})(),fn=(()=>{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({});let e=t;return e})();function Eg(e,t){if(e&1){let n=T();_(0,"button",2),b("click",function(){let s=f(n).$implicit,r=c();return g(r.selectFromRanges(s))}),D(1),m()}if(e&2){let n=t.$implicit,i=c();L("selected",i.compareRanges(n)),d(),ke(" ",n.label," ")}}function xg(e,t){if(e&1){let n=T();bt(0),D(1," \u200B "),_(2,"button",2),b("click",function(){f(n);let s=c();return g(s.view("month"))}),_(3,"span"),D(4),m()(),wt()}if(e&2){let n=c();d(2),u("disabled",n.isDisabled),d(2),Me(n.calendar.monthTitle)}}var Lg=[[["bs-datepicker-navigation-view"]],"*"],Og=["bs-datepicker-navigation-view","*"];function Rg(e,t){e&1&&z(0,"bs-current-date",4)}function Ig(e,t){e&1&&z(0,"bs-timepicker")}function Ag(e,t){if(e&1){let n=T();_(0,"td",4),b("click",function(){let s=f(n).$implicit,r=c(2);return g(r.viewYear(s))})("mouseenter",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverYear(s,!0))})("mouseleave",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverYear(s,!1))}),_(1,"span"),D(2),m()()}if(e&2){let n=t.$implicit;L("disabled",n.isDisabled)("is-highlighted",n.isHovered),d(),L("selected",n.isSelected),d(),Me(n.label)}}function Yg(e,t){if(e&1&&(_(0,"tr"),S(1,Ag,3,7,"td",3),m()),e&2){let n=t.$implicit;d(),u("ngForOf",n)}}function Pg(e,t){if(e&1){let n=T();_(0,"td",4),b("click",function(){let s=f(n).$implicit,r=c(2);return g(r.viewMonth(s))})("mouseenter",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverMonth(s,!0))})("mouseleave",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverMonth(s,!1))}),_(1,"span"),D(2),m()()}if(e&2){let n=t.$implicit;L("disabled",n.isDisabled)("is-highlighted",n.isHovered),d(),L("selected",n.isSelected),d(),Me(n.label)}}function Hg(e,t){if(e&1&&(_(0,"tr"),S(1,Pg,3,7,"td",3),m()),e&2){let n=t.$implicit;d(),u("ngForOf",n)}}var Ng=["bsDatepickerDayDecorator",""];function Vg(e,t){e&1&&z(0,"th")}function Fg(e,t){if(e&1&&(_(0,"th",5),D(1),m()),e&2){let n=t.index,i=c();d(),ke("",i.calendar.weekdays[n]," ")}}function Bg(e,t){if(e&1){let n=T();_(0,"span",11),b("click",function(){f(n);let s=c(2).$implicit,r=c();return g(r.selectWeek(s))}),D(1),m()}if(e&2){let n=c(2).index,i=c();d(),Me(i.calendar.weekNumbers[n])}}function jg(e,t){if(e&1){let n=T();_(0,"span",12),b("click",function(){f(n);let s=c(2).$implicit,r=c();return g(r.selectWeek(s))})("mouseenter",function(){f(n);let s=c(2).$implicit,r=c();return g(r.weekHoverHandler(s,!0))})("mouseleave",function(){f(n);let s=c(2).$implicit,r=c();return g(r.weekHoverHandler(s,!1))}),D(1),m()}if(e&2){let n=c(2).index,i=c();d(),Me(i.calendar.weekNumbers[n])}}function $g(e,t){if(e&1&&(_(0,"td",8),S(1,Bg,2,1,"span",9)(2,jg,2,1,"span",10),m()),e&2){let n=c(2);L("active-week",n.isWeekHovered),d(),u("ngIf",n.isiOS),d(),u("ngIf",!n.isiOS)}}function Wg(e,t){if(e&1){let n=T();_(0,"span",17),b("click",function(){f(n);let s=c().$implicit,r=c(2);return g(r.selectDay(s))})("mouseenter",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!0))})("mouseleave",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!1))}),D(1),m()}if(e&2){let n=c().$implicit;u("tooltip",Qa(n.tooltipText))("day",n),d(),ke("",n.label," 3")}}function Ug(e,t){if(e&1){let n=T();_(0,"span",18),b("click",function(){f(n);let s=c().$implicit,r=c(2);return g(r.selectDay(s))})("mouseenter",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!0))})("mouseleave",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!1))}),D(1),m()}if(e&2){let n=c().$implicit;u("day",n),d(),ke("",n.label," 2")}}function zg(e,t){if(e&1){let n=T();_(0,"span",19),b("click",function(){f(n);let s=c().$implicit,r=c(2);return g(r.selectDay(s))}),D(1),m()}if(e&2){let n=c().$implicit;u("day",n),d(),ke("",n.label," 1")}}function Gg(e,t){if(e&1&&(_(0,"td",13),S(1,Wg,2,4,"span",14)(2,Ug,2,2,"span",15)(3,zg,2,2,"span",16),m()),e&2){let n=c(2);d(),u("ngIf",!n.isiOS&&n.isShowTooltip),d(),u("ngIf",!n.isiOS&&!n.isShowTooltip),d(),u("ngIf",n.isiOS)}}function Kg(e,t){if(e&1&&(_(0,"tr"),S(1,$g,3,4,"td",6)(2,Gg,4,3,"td",7),m()),e&2){let n=t.$implicit,i=c();d(),u("ngIf",i.options&&i.options.showWeekNumbers),d(),u("ngForOf",n.days)}}var $h=["startTP"];function Xg(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function Zg(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function Jg(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,Zg,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function qg(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,Xg,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,Jg,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function Qg(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function ev(e,t){if(e&1&&(_(0,"div",10),S(1,Qg,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function tv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function iv(e,t){if(e&1&&(_(0,"div",10),S(1,tv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function nv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function sv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function rv(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function ov(e,t){if(e&1&&(_(0,"div",19),S(1,sv,3,7,"div",22)(2,rv,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function av(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function lv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,qg,5,4,"ng-container",6)(5,ev,3,3,"div",7)(6,iv,3,3,"div",7),m(),S(7,nv,5,0,"div",8)(8,ov,3,2,"div",8),m(),S(9,av,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}function cv(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function dv(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function hv(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,dv,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function uv(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,cv,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,hv,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function _v(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function mv(e,t){if(e&1&&(_(0,"div",10),S(1,_v,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function pv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function fv(e,t){if(e&1&&(_(0,"div",10),S(1,pv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function gv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function vv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function yv(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function bv(e,t){if(e&1&&(_(0,"div",19),S(1,vv,3,7,"div",22)(2,yv,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function wv(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function Sv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,uv,5,4,"ng-container",6)(5,mv,3,3,"div",7)(6,fv,3,3,"div",7),m(),S(7,gv,5,0,"div",8)(8,bv,3,2,"div",8),m(),S(9,wv,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}var Mv=["endTP"];function Dv(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function Cv(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function kv(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,Cv,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function Tv(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,Dv,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,kv,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function Ev(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function xv(e,t){if(e&1&&(_(0,"div",10),S(1,Ev,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function Lv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function Ov(e,t){if(e&1&&(_(0,"div",10),S(1,Lv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function Rv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function Iv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function Av(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function Yv(e,t){if(e&1&&(_(0,"div",19),S(1,Iv,3,7,"div",22)(2,Av,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function Pv(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function Hv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,Tv,5,4,"ng-container",6)(5,xv,3,3,"div",7)(6,Ov,3,3,"div",7),m(),S(7,Rv,5,0,"div",8)(8,Yv,3,2,"div",8),m(),S(9,Pv,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}function Nv(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function Vv(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function Fv(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,Vv,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function Bv(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,Nv,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,Fv,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function jv(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function $v(e,t){if(e&1&&(_(0,"div",10),S(1,jv,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function Wv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function Uv(e,t){if(e&1&&(_(0,"div",10),S(1,Wv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function zv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function Gv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function Kv(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function Xv(e,t){if(e&1&&(_(0,"div",19),S(1,Gv,3,7,"div",22)(2,Kv,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function Zv(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function Jv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,Bv,5,4,"ng-container",6)(5,$v,3,3,"div",7)(6,Uv,3,3,"div",7),m(),S(7,zv,5,0,"div",8)(8,Xv,3,2,"div",8),m(),S(9,Zv,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}var lt=(()=>{let t=class t{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Nh="220ms cubic-bezier(0, 0, 0.2, 1)",pr=Bn("datepickerAnimation",[jt("animated-down",_t({height:"*",overflow:"hidden"})),$t("* => animated-down",[_t({height:0,overflow:"hidden"}),Bt(Nh)]),jt("animated-up",_t({height:"*",overflow:"hidden"})),$t("* => animated-up",[_t({height:"*",overflow:"hidden"}),Bt(Nh)]),$t("* => unanimated",Bt("0s"))]),mr=class{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Ie,this.selectedTimeSub=new Ie}set minDate(t){this._effects?.setMinDate(t)}set maxDate(t){this._effects?.setMaxDate(t)}set daysDisabled(t){this._effects?.setDaysDisabled(t)}set datesDisabled(t){this._effects?.setDatesDisabled(t)}set datesEnabled(t){this._effects?.setDatesEnabled(t)}set isDisabled(t){this._effects?.setDisabled(t)}set dateCustomClasses(t){this._effects?.setDateCustomClasses(t)}set dateTooltipTexts(t){this._effects?.setDateTooltipTexts(t)}set daysCalendar$(t){this._daysCalendar$=t,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(n=>{this.multipleCalendars=!!n&&n.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(t){}navigateTo(t){}dayHoverHandler(t){}weekHoverHandler(t){}monthHoverHandler(t){}yearHoverHandler(t){}timeSelectHandler(t,n){}daySelectHandler(t){}monthSelectHandler(t){}yearSelectHandler(t){}setRangeOnCalendar(t){}setToday(){}clearDate(){}_stopPropagation(t){t.stopPropagation()}},te=(()=>{let t=class t{calculate(){return{type:t.CALCULATE}}format(){return{type:t.FORMAT}}flag(){return{type:t.FLAG}}select(i){return{type:t.SELECT,payload:i}}selectTime(i,s){return{type:t.SELECT_TIME,payload:{date:i,index:s}}}changeViewMode(i){return{type:t.CHANGE_VIEWMODE,payload:i}}navigateTo(i){return{type:t.NAVIGATE_TO,payload:i}}navigateStep(i){return{type:t.NAVIGATE_OFFSET,payload:i}}setOptions(i){return{type:t.SET_OPTIONS,payload:i}}selectRange(i){return{type:t.SELECT_RANGE,payload:i}}hoverDay(i){return{type:t.HOVER,payload:i.isHovered?i.cell.date:null}}minDate(i){return{type:t.SET_MIN_DATE,payload:i}}maxDate(i){return{type:t.SET_MAX_DATE,payload:i}}daysDisabled(i){return{type:t.SET_DAYSDISABLED,payload:i}}datesDisabled(i){return{type:t.SET_DATESDISABLED,payload:i}}datesEnabled(i){return{type:t.SET_DATESENABLED,payload:i}}isDisabled(i){return{type:t.SET_IS_DISABLED,payload:i}}setDateCustomClasses(i){return{type:t.SET_DATE_CUSTOM_CLASSES,payload:i}}setDateTooltipTexts(i){return{type:t.SET_DATE_TOOLTIP_TEXTS,payload:i}}setLocale(i){return{type:t.SET_LOCALE,payload:i}}};t.CALCULATE="[datepicker] calculate dates matrix",t.FORMAT="[datepicker] format datepicker values",t.FLAG="[datepicker] set flags",t.SELECT="[datepicker] select date",t.NAVIGATE_OFFSET="[datepicker] shift view date",t.NAVIGATE_TO="[datepicker] change view date",t.SET_OPTIONS="[datepicker] update render options",t.HOVER="[datepicker] hover date",t.CHANGE_VIEWMODE="[datepicker] switch view mode",t.SET_MIN_DATE="[datepicker] set min date",t.SET_MAX_DATE="[datepicker] set max date",t.SET_DAYSDISABLED="[datepicker] set days disabled",t.SET_DATESDISABLED="[datepicker] set dates disabled",t.SET_DATESENABLED="[datepicker] set dates enabled",t.SET_IS_DISABLED="[datepicker] set is disabled",t.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes",t.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts",t.SET_LOCALE="[datepicker] set datepicker locale",t.SELECT_TIME="[datepicker] select time",t.SELECT_RANGE="[daterangepicker] select dates range",t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),rs=(()=>{let t=class t{constructor(){this._defaultLocale="en",this._locale=new F(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(i){i!==this.currentLocale&&this._locale.next(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),Zt=(()=>{let t=class t{constructor(i,s){this._actions=i,this._localeService=s,this._subs=[]}init(i){return this._store=i,this}setValue(i){this._store?.dispatch(this._actions.select(i))}setRangeValue(i){this._store?.dispatch(this._actions.selectRange(i))}setMinDate(i){return this._store?.dispatch(this._actions.minDate(i)),this}setMaxDate(i){return this._store?.dispatch(this._actions.maxDate(i)),this}setDaysDisabled(i){return this._store?.dispatch(this._actions.daysDisabled(i)),this}setDatesDisabled(i){return this._store?.dispatch(this._actions.datesDisabled(i)),this}setDatesEnabled(i){return this._store?.dispatch(this._actions.datesEnabled(i)),this}setDisabled(i){return this._store?.dispatch(this._actions.isDisabled(i)),this}setDateCustomClasses(i){return this._store?.dispatch(this._actions.setDateCustomClasses(i)),this}setDateTooltipTexts(i){return this._store?.dispatch(this._actions.setDateTooltipTexts(i)),this}setOptions(i){let s=Object.assign({locale:this._localeService.currentLocale},i);return this._store?.dispatch(this._actions.setOptions(s)),this}setBindings(i){return this._store?(i.selectedTime=this._store.select(s=>s.selectedTime).pipe(re(s=>!!s)),i.daysCalendar$=this._store.select(s=>s.flaggedMonths).pipe(re(s=>!!s)),i.monthsCalendar=this._store.select(s=>s.flaggedMonthsCalendar).pipe(re(s=>!!s)),i.yearsCalendar=this._store.select(s=>s.yearsCalendarFlagged).pipe(re(s=>!!s)),i.viewMode=this._store.select(s=>s.view?.mode),i.options$=us([this._store.select(s=>s.showWeekNumbers),this._store.select(s=>s.displayMonths)]).pipe(Ve(s=>({showWeekNumbers:s[0],displayMonths:s[1]}))),this):this}setEventHandlers(i){return i.setViewMode=s=>{this._store?.dispatch(this._actions.changeViewMode(s))},i.navigateTo=s=>{this._store?.dispatch(this._actions.navigateStep(s.step))},i.dayHoverHandler=s=>{let r=s.cell;r.isOtherMonth||r.isDisabled||(this._store?.dispatch(this._actions.hoverDay(s)),r.isHovered=s.isHovered)},i.monthHoverHandler=s=>{s.cell.isHovered=s.isHovered},i.yearHoverHandler=s=>{s.cell.isHovered=s.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(i=>i.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(i=>i.monthsModel).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(i=>i.formattedMonths).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.selectedDate).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.selectedRange).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.yearsCalendarModel).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.hoveredDate).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.dateCustomClasses).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.dateTooltipTexts).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(i=>this._store?.dispatch(this._actions.setLocale(i)))),this):this}destroy(){for(let i of this._subs)i.unsubscribe()}};t.\u0275fac=function(s){return new(s||t)(N(te),N(rs))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),qv={width:7,height:6},Qv=1440*60*1e3;var ey={date:new Date,mode:"day"},Wh=Object.assign(new lt,{locale:"en",view:ey,selectedRange:[],selectedTime:[],monthViewOptions:qv});function ty(e,t){if(Wd(e,t.firstDayOfWeek))return e;let n=at(e),i=iy(n,t.firstDayOfWeek);return ye(e,{day:-i})}function iy(e,t){let n=Number(t);if(isNaN(n))return 0;if(n===0)return e;let i=e-n%7;return i<0?i+7:i}function fa(e,t,n){let i=t&&Gt(ts(e,"month"),t,"day"),s=n&&Ot(pt(e,"month"),n,"day");return i||s||!1}function ns(e,t,n){let i=t&&Gt(ts(e,"year"),t,"day"),s=n&&Ot(pt(e,"year"),n,"day");return i||s||!1}function va(e,t,n){return!t||!J(t)||!t.length?!1:n&&n==="year"&&!t[0].getDate()?t.some(i=>is(e,i,"year")):t.some(i=>is(e,i,"date"))}function ya(e,t,n){return!t||!J(t)||!t.length?!1:!t.some(i=>is(e,i,n||"date"))}function Uh(e,t=0){let n=e&&e.yearsCalendarModel&&e.yearsCalendarModel[t];return n?.years[0]&&n.years[0][0]&&n.years[0][0].date}function ny(e,t){return!e||!t||!e.length&&!e[0].value||e.forEach(n=>(!n||!n.value||n.value instanceof Date||!(n.value instanceof Array&&n.value.length)||(n.value=Gh(n.value,t)),e)),e}function zh(e,t){return!e||!t||e instanceof Array&&!e.length||e instanceof Date?e:Gh(e,t)}function Gh(e,t){return e instanceof Array?e.map(i=>i&&(Ot(i,t,"date")&&(i=t),i)):e}function Vh(e){return e&&Kh(e)}function Fh(e){return e?.length&&e.map(t=>t&&Kh(t)),e}function Kh(e){let t=new Date;return e.setMilliseconds(t.getMilliseconds()),e.setSeconds(t.getSeconds()),e.setMinutes(t.getMinutes()),e.setHours(t.getHours()),e}function ba(e,t){let n=e.initialDate,i=new Array(e.height);for(let s=0;s<e.height;s++){i[s]=new Array(e.width);for(let r=0;r<e.width;r++)i[s][r]=t(n),n=ye(n,e.shift)}return i}function ma(e,t){let n=$d(e),i=ty(n,t),s={width:t.width||0,height:t.height||0,initialDate:i,shift:{day:1}};return{daysMatrix:ba(s,o=>o),month:n}}function sy(e,t,n){return{month:e.month,monthTitle:$e(e.month,t.monthTitle,t.locale),yearTitle:$e(e.month,t.yearTitle,t.locale),weekNumbers:ry(e.daysMatrix,t.weekNumbers,t.locale),weekdays:oy(t.locale),weeks:e.daysMatrix.map((i,s)=>({days:i.map((r,o)=>({date:r,label:$e(r,t.dayLabel,t.locale),monthIndex:n,weekIndex:s,dayIndex:o}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function ry(e,t,n){return e.map(i=>i[0]?$e(i[0],t,n):"")}function oy(e){let t=Ce(e),n=t.weekdaysShort(),i=t.firstDayOfWeek();return[...n.slice(i),...n.slice(0,i)]}function ay(e,t){return e.weeks.forEach(n=>{n.days.forEach((i,s)=>{let r=!Li(i.date,e.month),o=!r&&Lt(i.date,t.hoveredDate),a=!r&&t.selectedRange&&Lt(i.date,t.selectedRange[0]),l=!r&&t.selectedRange&&Lt(i.date,t.selectedRange[1]),h=!r&&Lt(i.date,t.selectedDate)||a||l,p=!r&&t.selectedRange&&ly(i.date,t.selectedRange,t.hoveredDate),v=t.isDisabled||Gt(i.date,t.minDate,"day")||Ot(i.date,t.maxDate,"day")||lh(i.date,t.daysDisabled)||va(i.date,t.datesDisabled)||ya(i.date,t.datesEnabled),C=new Date,x=!r&&Lt(i.date,C),R=t.dateCustomClasses&&t.dateCustomClasses.map(G=>Lt(i.date,G.date)?G.classes:[]).reduce((G,We)=>G.concat(We),[]).join(" ")||"",j=t.dateTooltipTexts&&t.dateTooltipTexts.map(G=>Lt(i.date,G.date)?G.tooltipText:"").reduce((G,We)=>(G.push(We),G),[]).join(" ")||"",H=Object.assign({},i,{isOtherMonth:r,isHovered:o,isSelected:h,isSelectionStart:a,isSelectionEnd:l,isInRange:p,isDisabled:v,isToday:x,customClasses:R,tooltipText:j});(i.isOtherMonth!==H.isOtherMonth||i.isHovered!==H.isHovered||i.isSelected!==H.isSelected||i.isSelectionStart!==H.isSelectionStart||i.isSelectionEnd!==H.isSelectionEnd||i.isDisabled!==H.isDisabled||i.isInRange!==H.isInRange||i.customClasses!==H.customClasses||i.tooltipText!==H.tooltipText)&&(n.days[s]=H)})}),e.hideLeftArrow=t.isDisabled||!!t.monthIndex&&t.monthIndex>0&&t.monthIndex!==t.displayMonths,e.hideRightArrow=t.isDisabled||(!!t.monthIndex||t.monthIndex===0)&&!!t.displayMonths&&t.monthIndex<t.displayMonths&&t.monthIndex+1!==t.displayMonths,e.disableLeftArrow=fa(ye(e.month,{month:-1}),t.minDate,t.maxDate),e.disableRightArrow=fa(ye(e.month,{month:1}),t.minDate,t.maxDate),e}function ly(e,t,n){return!e||!t||!t[0]?!1:t[1]?e>t[0]&&e<=t[1]:n?e>t[0]&&e<=n:!1}function Bh(e,t){return t?e>=t:!0}var cy=4,dy=3,hy={month:1};function Xh(e,t){let n=pt(e,"year");return{months:ba({width:dy,height:cy,initialDate:n,shift:hy},r=>({date:r,label:$e(r,t.monthLabel,t.locale)})),monthTitle:"",yearTitle:$e(e,t.yearTitle,t.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}function uy(e,t){return e.months.forEach((n,i)=>{n.forEach((s,r)=>{let o,a=Li(s.date,t.hoveredMonth),l=t.isDisabled||va(s.date,t.datesDisabled)||ya(s.date,t.datesEnabled,"month")||fa(s.date,t.minDate,t.maxDate);!t.selectedDate&&t.selectedRange?(o=Li(s.date,t.selectedRange[0]),o||(o=Li(s.date,t.selectedRange[1]))):o=Li(s.date,t.selectedDate);let h=Object.assign(s,{isHovered:a,isDisabled:l,isSelected:o});(s.isHovered!==h.isHovered||s.isDisabled!==h.isDisabled||s.isSelected!==h.isSelected)&&(e.months[i][r]=h)})}),e.hideLeftArrow=!!t.monthIndex&&t.monthIndex>0&&t.monthIndex!==t.displayMonths,e.hideRightArrow=(!!t.monthIndex||t.monthIndex===0)&&(!!t.displayMonths||t.displayMonths===0)&&t.monthIndex<t.displayMonths&&t.monthIndex+1!==t.displayMonths,e.disableLeftArrow=ns(ye(e.months[0][0].date,{year:-1}),t.minDate,t.maxDate),e.disableRightArrow=ns(ye(e.months[0][0].date,{year:1}),t.minDate,t.maxDate),e}var wa=4,Sa=4,fr=wa*Sa,Zh=(Math.floor(fr/2)-1)*-1,_y={year:1};function Jh(e,t,n){let i=my(e,n),r=ba({width:Sa,height:wa,initialDate:i,shift:_y},a=>({date:a,label:$e(a,t.yearLabel,t.locale)})),o=py(r,t);return{years:r,monthTitle:"",yearTitle:o,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function my(e,t){return t&&e.getFullYear()>=t.getFullYear()&&e.getFullYear()<t.getFullYear()+fr?t:ye(e,{year:Zh})}function py(e,t){let n=$e(e[0][0].date,t.yearTitle,t.locale),i=$e(e[wa-1][Sa-1].date,t.yearTitle,t.locale);return`${n} - ${i}`}function fy(e,t){e.years.forEach((s,r)=>{s.forEach((o,a)=>{let l,h=Oi(o.date,t.hoveredYear),p=t.isDisabled||va(o.date,t.datesDisabled,"year")||ya(o.date,t.datesEnabled,"year")||ns(o.date,t.minDate,t.maxDate);!t.selectedDate&&t.selectedRange?(l=Oi(o.date,t.selectedRange[0]),l||(l=Oi(o.date,t.selectedRange[1]))):l=Oi(o.date,t.selectedDate);let v=Object.assign(o,{isHovered:h,isDisabled:p,isSelected:l});(o.isHovered!==v.isHovered||o.isDisabled!==v.isDisabled||o.isSelected!==v.isSelected)&&(e.years[r][a]=v)})}),e.hideLeftArrow=!!t.yearIndex&&t.yearIndex>0&&t.yearIndex!==t.displayMonths,e.hideRightArrow=!!t.yearIndex&&!!t.displayMonths&&t.yearIndex<t.displayMonths&&t.yearIndex+1!==t.displayMonths,e.disableLeftArrow=ns(ye(e.years[0][0].date,{year:-1}),t.minDate,t.maxDate);let n=e.years.length-1,i=e.years[n].length-1;return e.disableRightArrow=ns(ye(e.years[n][i].date,{year:1}),t.minDate,t.maxDate),e}function ga(e,t){!e||!isNaN(e.getTime())||(e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),e.setMilliseconds(t.getMilliseconds()))}function jh(e=Wh,t){switch(t.type){case te.CALCULATE:return gy(e);case te.FORMAT:return vy(e);case te.FLAG:return yy(e);case te.NAVIGATE_OFFSET:return by(e,t);case te.NAVIGATE_TO:{let n=t.payload;if(!e.view||!n.unit)return e;let i=Kd(e.view.date,n.unit),s,r;return Bh(n.viewMode,e.minMode)?(r=n.viewMode,s={view:{date:i,mode:r}}):(r=e.view.mode,s={selectedDate:i,view:{date:i,mode:r}}),Object.assign({},e,s)}case te.CHANGE_VIEWMODE:{if(!Bh(t.payload,e.minMode)||!e.view)return e;let n=e.view.date,i=t.payload;return Object.assign({},e,{view:{date:n,mode:i}})}case te.HOVER:return Object.assign({},e,{hoveredDate:t.payload});case te.SELECT:{if(!e.view)return e;let n={selectedDate:t.payload,view:e.view};if(Array.isArray(e.selectedTime)){let o=e.selectedTime[0];n.selectedDate&&o&&ga(n.selectedDate,o)}let i=e.view.mode,s=t.payload||e.view.date,r=pa(s,e.minDate,e.maxDate);return n.view={mode:i,date:r},Object.assign({},e,n)}case te.SELECT_TIME:{let{date:n,index:i}=t.payload,s=e.selectedTime?[...e.selectedTime]:[];return s[i]=n,Object.assign({},e,{selectedTime:s})}case te.SET_OPTIONS:{if(!e.view)return e;let n=t.payload,i=n.minMode?n.minMode:e.view.mode,s=xt(n.value)&&n.value||J(n.value)&&xt(n.value[0])&&n.value[0]||e.view.date,r=pa(s,n.minDate,n.maxDate);return n.view={mode:i,date:r},n.value&&(J(n.value)&&(n.selectedRange=n.value,n.selectedTime=n.value.map(o=>o)),n.value instanceof Date&&(n.selectedDate=n.value,n.selectedTime=[n.value])),Object.assign({},e,n)}case te.SELECT_RANGE:{if(!e.view)return e;let n={selectedRange:t.payload,view:e.view};n.selectedRange?.forEach((o,a)=>{if(Array.isArray(e.selectedTime)){let l=e.selectedTime[a];l&&ga(o,l)}});let i=e.view.mode,s=t.payload&&t.payload[0]||e.view.date,r=pa(s,e.minDate,e.maxDate);return n.view={mode:i,date:r},Object.assign({},e,n)}case te.SET_MIN_DATE:return Object.assign({},e,{minDate:t.payload});case te.SET_MAX_DATE:return Object.assign({},e,{maxDate:t.payload});case te.SET_IS_DISABLED:return Object.assign({},e,{isDisabled:t.payload});case te.SET_DATE_CUSTOM_CLASSES:return Object.assign({},e,{dateCustomClasses:t.payload});case te.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},e,{dateTooltipTexts:t.payload});default:return e}}function gy(e){if(!e.view)return e;let t;e.displayOneMonthRange&&qh(e.view.date,e.minDate,e.maxDate)?t=1:t=e.displayMonths||1;let n=e.view.date;if(e.view.mode==="day"&&e.monthViewOptions){e.showPreviousMonth&&e.selectedRange&&e.selectedRange.length===0&&(n=ye(n,{month:-1})),e.monthViewOptions.firstDayOfWeek=Ce(e.locale).firstDayOfWeek();let i=new Array(t);for(let s=0;s<t;s++)i[s]=ma(n,e.monthViewOptions),n=ye(n,{month:1});if(e.preventChangeToNextMonth&&e.flaggedMonths&&e.hoveredDate){let s=ma(e.view.date,e.monthViewOptions);e.flaggedMonths.length&&e.flaggedMonths[1].month.getMonth()===s.month.getMonth()&&(i=e.flaggedMonths.map(r=>e.monthViewOptions?ma(r.month,e.monthViewOptions):null).filter(r=>r!==null))}return Object.assign({},e,{monthsModel:i})}if(e.view.mode==="month"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Xh(n,ss(e)),n=ye(n,{year:1});return Object.assign({},e,{monthsCalendar:i})}if(e.view.mode==="year"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Jh(n,ss(e),e.minMode==="year"?Uh(e,s):void 0),n=ye(n,{year:fr});return Object.assign({},e,{yearsCalendarModel:i})}return e}function vy(e){if(!e.view)return e;if(e.view.mode==="day"&&e.monthsModel){let i=e.monthsModel.map((s,r)=>sy(s,ss(e),r));return Object.assign({},e,{formattedMonths:i})}let t=e.displayMonths||1,n=e.view.date;if(e.view.mode==="month"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Xh(n,ss(e)),n=ye(n,{year:1});return Object.assign({},e,{monthsCalendar:i})}if(e.view.mode==="year"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Jh(n,ss(e)),n=ye(n,{year:16});return Object.assign({},e,{yearsCalendarModel:i})}return e}function yy(e){if(!e.view)return e;let t=qh(e.view.date,e.minDate,e.maxDate)?1:e.displayMonths;if(e.formattedMonths&&e.view.mode==="day"){let n=e.formattedMonths.map((i,s)=>ay(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,daysDisabled:e.daysDisabled,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,hoveredDate:e.hoveredDate,selectedDate:e.selectedDate,selectedRange:e.selectedRange,displayMonths:t,dateCustomClasses:e.dateCustomClasses,dateTooltipTexts:e.dateTooltipTexts,monthIndex:s}));return Object.assign({},e,{flaggedMonths:n})}if(e.view.mode==="month"&&e.monthsCalendar){let n=e.monthsCalendar.map((i,s)=>uy(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredMonth:e.hoveredMonth,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:t,monthIndex:s}));return Object.assign({},e,{flaggedMonthsCalendar:n})}if(e.view.mode==="year"&&e.yearsCalendarModel){let n=e.yearsCalendarModel.map((i,s)=>fy(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredYear:e.hoveredYear,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:t,yearIndex:s}));return Object.assign({},e,{yearsCalendarFlagged:n})}return e}function by(e,t){if(!e.view)return e;let n=wy(e,t);if(!n)return e;let i={view:{mode:e.view.mode,date:n}};return Object.assign({},e,i)}function wy(e,t){if(e.view){if(e.view.mode==="year"&&e.minMode==="year"){let n=Uh(e,0);if(n){let i=ye(n,{year:-Zh});return ye(i,t.payload)}}return ye(pt(e.view.date,"month"),t.payload)}}function ss(e){return{locale:e.locale,monthTitle:e.monthTitle,yearTitle:e.yearTitle,dayLabel:e.dayLabel,monthLabel:e.monthLabel,yearLabel:e.yearLabel,weekNumbers:e.weekNumbers}}function pa(e,t,n){let i=Array.isArray(e)?e[0]:e;return t&&Ot(t,i,"day")?t:n&&Gt(n,i,"day")?n:i}function qh(e,t,n){return n&&is(n,e,"day")?!0:t&&n&&t.getMonth()===n.getMonth()}var Jt=(()=>{let t=class t extends _n{constructor(){let i=new F({type:"[datepicker] dispatcher init"}),s=new un(Wh,i,jh);super(i,jh,s)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),gr=(()=>{let t=class t{constructor(){this.onSelect=new E}selectFromRanges(i){this.onSelect.emit(i)}compareRanges(i){return JSON.stringify(i?.value)===JSON.stringify(this.selectedRange)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(s,r){s&1&&(_(0,"div",0),S(1,Eg,2,3,"button",1),m()),s&2&&(d(),u("ngForOf",r.ranges))},dependencies:[Mt],encapsulation:2,changeDetection:0});let e=t;return e})(),vn=(function(e){return e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e})(vn||{}),Ma=(()=>{let t=class t{constructor(){this.isDisabled=!1,this.onNavigate=new E,this.onViewMode=new E}navTo(i){this.onNavigate.emit(i?vn.DOWN:vn.UP)}view(i){this.isDisabled||this.onViewMode.emit(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"click","disabled"],[4,"ngIf"],["type","button",1,"current",3,"click","disabled"],["type","button",1,"next",3,"click","disabled"]],template:function(s,r){s&1&&(_(0,"button",0),b("click",function(){return r.navTo(!0)}),_(1,"span"),D(2,"\u2039"),m()(),S(3,xg,5,2,"ng-container",1),D(4," \u200B "),_(5,"button",2),b("click",function(){return r.view("year")}),_(6,"span"),D(7),m()(),D(8," \u200B "),_(9,"button",3),b("click",function(){return r.navTo(!1)}),_(10,"span"),D(11,"\u203A"),m()()),s&2&&(St("visibility",r.calendar.hideLeftArrow?"hidden":"visible"),u("disabled",r.calendar.disableLeftArrow),d(3),u("ngIf",r.calendar&&r.calendar.monthTitle),d(2),u("disabled",r.isDisabled),d(2),Me(r.calendar.yearTitle),d(2),St("visibility",r.calendar.hideRightArrow?"hidden":"visible"),u("disabled",r.calendar.disableRightArrow))},dependencies:[Fe],encapsulation:2,changeDetection:0});let e=t;return e})(),Sy=(()=>{let t=class t{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(s,r){s&1&&(dt(0,"div",0)(1,"div",1)(2,"button",2),D(3,"-"),ht(),oi(4,"input",3),dt(5,"button",4),D(6,"+"),ht()(),dt(7,"div",1)(8,"button",2),D(9,"-"),ht(),oi(10,"input",3),dt(11,"button",4),D(12,"+"),ht()(),dt(13,"button",5),D(14),oi(15,"img",6),ht()()),s&2&&(d(4),Ir("value",r.hours),d(6),Ir("value",r.minutes),d(4),ke("",r.ampm," "))},encapsulation:2});let e=t;return e})(),My=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(s,r){s&1&&(dt(0,"div",0)(1,"span"),D(2),ht()()),s&2&&(d(2),Me(r.title))},encapsulation:2});let e=t;return e})(),Da=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-calendar-layout"]],ngContentSelectors:Og,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(s,r){s&1&&(ai(Lg),S(0,Rg,1,0,"bs-current-date",0),_(1,"div",1),Yt(2),m(),_(3,"div",2),Yt(4,1),m(),S(5,Ig,1,0,"bs-timepicker",3)),s&2&&(u("ngIf",!1),d(5),u("ngIf",!1))},dependencies:[Fe,My,Sy],encapsulation:2});let e=t;return e})(),vr=(()=>{let t=class t{constructor(){this.onNavigate=new E,this.onViewMode=new E,this.onSelect=new E,this.onHover=new E}navigateTo(i){let s=vn.DOWN===i?-1:1;this.onNavigate.emit({step:{year:s*fr}})}viewYear(i){this.onSelect.emit(i)}hoverYear(i,s){this.onHover.emit({cell:i,isHovered:s})}changeViewMode(i){this.onViewMode.emit(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(s,r){s&1&&(_(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),b("onNavigate",function(a){return r.navigateTo(a)})("onViewMode",function(a){return r.changeViewMode(a)}),m(),_(2,"table",1)(3,"tbody"),S(4,Yg,2,1,"tr",2),m()()()),s&2&&(d(),u("calendar",r.calendar),d(3),u("ngForOf",r.calendar==null?null:r.calendar.years))},dependencies:[Da,Ma,Mt],encapsulation:2});let e=t;return e})(),yr=(()=>{let t=class t{constructor(){this.onNavigate=new E,this.onViewMode=new E,this.onSelect=new E,this.onHover=new E}navigateTo(i){let s=vn.DOWN===i?-1:1;this.onNavigate.emit({step:{year:s}})}viewMonth(i){this.onSelect.emit(i)}hoverMonth(i,s){this.onHover.emit({cell:i,isHovered:s})}changeViewMode(i){this.onViewMode.emit(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(s,r){s&1&&(_(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),b("onNavigate",function(a){return r.navigateTo(a)})("onViewMode",function(a){return r.changeViewMode(a)}),m(),_(2,"table",1)(3,"tbody"),S(4,Hg,2,1,"tr",2),m()()()),s&2&&(d(),u("calendar",r.calendar),d(3),u("ngForOf",r.calendar==null?null:r.calendar.months))},dependencies:[Da,Ma,Mt],encapsulation:2});let e=t;return e})(),Dy=(()=>{let t=class t{constructor(i,s,r){this._config=i,this._elRef=s,this._renderer=r,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),typeof this.day?.customClasses=="string"&&this.day?.customClasses.split(" ").filter(i=>i).forEach(i=>{this._renderer.addClass(this._elRef.nativeElement,i)})}};t.\u0275fac=function(s){return new(s||t)(y(lt),y(B),y(we))},t.\u0275cmp=U({type:t,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(s,r){s&2&&L("disabled",r.day.isDisabled)("is-highlighted",r.day.isHovered)("is-other-month",r.day.isOtherMonth)("is-active-other-month",r.day.isOtherMonthHovered)("in-range",r.day.isInRange)("select-start",r.day.isSelectionStart)("select-end",r.day.isSelectionEnd)("selected",r.day.isSelected)},inputs:{day:"day"},attrs:Ng,decls:1,vars:1,template:function(s,r){s&1&&D(0),s&2&&Me(r.day&&r.day.label||"")},encapsulation:2,changeDetection:0});let e=t;return e})(),os=(()=>{let t=class t{constructor(i){this._config=i,this.onNavigate=new E,this.onViewMode=new E,this.onSelect=new E,this.onHover=new E,this.onHoverWeek=new E,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(i){let s=vn.DOWN===i?-1:1;this.onNavigate.emit({step:{month:s}})}changeViewMode(i){this.onViewMode.emit(i)}selectDay(i){this.onSelect.emit(i)}selectWeek(i){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||i.days.length===0)return;if(this._config.selectWeek&&i.days[0]&&!i.days[0].isDisabled&&this._config.selectFromOtherMonth){this.onSelect.emit(i.days[0]);return}let s=i.days.find(r=>(this._config.selectFromOtherMonth||!r.isOtherMonth)&&!r.isDisabled);if(this.onSelect.emit(s),this._config.selectWeekDateRange){let o=i.days.slice(0).reverse().find(a=>(this._config.selectFromOtherMonth||!a.isOtherMonth)&&!a.isDisabled);this.onSelect.emit(o)}}weekHoverHandler(i,s){if(!this._config.selectWeek&&!this._config.selectWeekDateRange)return;i.days.find(o=>(this._config.selectFromOtherMonth||!o.isOtherMonth)&&!o.isDisabled)&&(i.isHovered=s,this.isWeekHovered=s,this.onHoverWeek.emit(i))}hoverDay(i,s){this._config.selectFromOtherMonth&&i.isOtherMonth&&(i.isOtherMonthHovered=s),this._config.dateTooltipTexts&&(i.tooltipText="",this._config.dateTooltipTexts.forEach(r=>{if(Lt(r.date,i.date)){i.tooltipText=r.tooltipText;return}})),this.onHover.emit({cell:i,isHovered:s})}};t.\u0275fac=function(s){return new(s||t)(y(lt))},t.\u0275cmp=U({type:t,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"onNavigate","onViewMode","calendar","isDisabled"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day","tooltip"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day"],["bsDatepickerDayDecorator","",3,"click","day"]],template:function(s,r){s&1&&(_(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),b("onNavigate",function(a){return r.navigateTo(a)})("onViewMode",function(a){return r.changeViewMode(a)}),m(),_(2,"table",1)(3,"thead")(4,"tr"),S(5,Vg,1,0,"th",2)(6,Fg,2,1,"th",3),m()(),_(7,"tbody"),S(8,Kg,3,2,"tr",4),m()()()),s&2&&(d(),u("calendar",r.calendar)("isDisabled",!!r.isDisabled),d(4),u("ngIf",r.options&&r.options.showWeekNumbers),d(),u("ngForOf",r.calendar.weekdays),d(2),u("ngForOf",r.calendar.weeks))},dependencies:[Da,Ma,Fe,Mt,Dy,qr,hc],encapsulation:2});let e=t;return e})(),Ca=(()=>{let t=class t extends mr{set value(i){this._effects?.setValue(i)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(),this._config=s,this._store=r,this._element=o,this._actions=a,this._positionService=h,this.valueChange=new E,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=l,i.setStyle(o.nativeElement,"display","block"),i.setStyle(o.nativeElement,"position","absolute")}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(wn(1)).subscribe(()=>{if(this._positionService.disable(),this._config.isAnimated){this.animationState=this.isTopPosition?"animated-up":"animated-down";return}this.animationState="unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects();let i;this._subs.push(this._store.select(s=>s.selectedDate).subscribe(s=>{i=s,this.valueChange.emit(s)})),this._subs.push(this._store.select(s=>s.selectedTime).subscribe(s=>{!s||!s[0]||!(s[0]instanceof Date)||s[0]===i||this.valueChange.emit(s[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(i=>{Array.isArray(i)&&i.length>=1&&this.startTimepicker?.writeValue(i[0])})),this.startTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(i,s){this._store.dispatch(this._actions.selectTime(i,s))}daySelectHandler(i){!i||(this.isOtherMonthsActive?i.isDisabled:i.isOtherMonth||i.isDisabled)||this._store.dispatch(this._actions.select(i.date))}monthSelectHandler(i){!i||i.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:V(i.date),year:fe(i.date)},viewMode:"day"}))}yearSelectHandler(i){!i||i.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:fe(i.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(let i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-datepicker-container"]],viewQuery:function(s,r){if(s&1&&li($h,5),s&2){let o;Pt(o=Ht())&&(r.startTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[ue([Jt,Zt,te]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,lv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})(),gn,Cy=(()=>{let t=class t{get readonlyValue(){return this.isDisabled?"":null}constructor(i,s,r,o,a){this._config=i,this._elementRef=s,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new I,this.isDisabled=!1,this.bsValueChange=new E,this._subs=[],this._dateInputFormat$=new I,Object.assign(this,this._config),this._datepicker=a.createLoader(s,o,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new F(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(i){this.isOpen$.next(i)}set bsValue(i){this._bsValue&&i&&this._bsValue.getTime()===i.getTime()||(!this._bsValue&&i&&!this._config.withTimepicker&&ga(i,new Date),i&&this.bsConfig?.initCurrentTime&&(i=Vh(i)),this.initPreviousValue(),this._bsValue=i,this.bsValueChange.emit(i))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){gn=this._bsValue}ngOnChanges(i){i.bsConfig&&(i.bsConfig.currentValue?.initCurrentTime&&i.bsConfig.currentValue?.initCurrentTime!==i.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Vh(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),!(!this._datepickerRef||!this._datepickerRef.instance)&&(i.minDate&&(this._datepickerRef.instance.minDate=this.minDate),i.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),i.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),i.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),i.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),i.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),i.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),i.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(i=>{this._datepickerRef&&(this._datepickerRef.instance.value=i)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(i=>{this.initPreviousValue(),this.bsValue=i,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!gn||!this.bsConfig?.keepDatepickerOpened||!this._config.withTimepicker?!1:this.isDateSame()}isDateSame(){return gn instanceof Date&&this._bsValue?.getDate()===gn?.getDate()&&this._bsValue?.getMonth()===gn?.getMonth()&&this._bsValue?.getFullYear()===gn?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe(re(i=>i!==this.isOpen),Yi(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:lt,useValue:this._config}).attach(Ca).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(let i of this._subs)i.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:zh(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(i=>i.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}};t.\u0275fac=function(s){return new(s||t)(y(lt),y(B),y(we),y(yt),y(Ue))},t.\u0275dir=Se({type:t,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(s,r){s&2&&K("readonly",r.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",ignoreMinMaxErrors:"ignoreMinMaxErrors",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[ue([Ue,Ye]),vt]});let e=t;return e})();var ky=(()=>{let t=class t extends Ca{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(i,s,r,o,a,l,h),i.setStyle(o.nativeElement,"display","inline-block"),i.setStyle(o.nativeElement,"position","static")}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-datepicker-inline-container"]],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.disabledValue)("readonly",r.readonlyValue)},features:[ue([Jt,Zt]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,Sv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})();var ka=(()=>{let t=class t extends mr{set value(i){this._effects?.setRangeValue(i)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(),this._config=s,this._store=r,this._element=o,this._actions=a,this._positionService=h,this.valueChange=new E,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=l,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,i.setStyle(o.nativeElement,"display","block"),i.setStyle(o.nativeElement,"position","absolute")}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(wn(1)).subscribe(()=>{if(this._positionService.disable(),this._config.isAnimated){this.animationState=this.isTopPosition?"animated-up":"animated-down";return}this.animationState="unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects();let i;this._subs.push(this._store.select(s=>s.selectedRange).subscribe(s=>{i=s,this.valueChange.emit(s),this.chosenRange=s||[]})),this._subs.push(this._store.select(s=>s.selectedTime).subscribe(s=>{!s||!s[0]||!s[1]||!(s[0]instanceof Date)||!(s[1]instanceof Date)||i&&s[0]===i[0]&&s[1]===i[1]||(this.valueChange.emit(s),this.chosenRange=s||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(i=>{Array.isArray(i)&&i.length>=2&&(this.startTimepicker?.writeValue(i[0]),this.endTimepicker?.writeValue(i[1]))})),this.startTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,0)}),this.endTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(i,s){this._store.dispatch(this._actions.selectTime(i,s))}daySelectHandler(i){!i||(this.isOtherMonthsActive?i.isDisabled:i.isOtherMonth||i.isDisabled)||this.rangesProcessing(i)}monthSelectHandler(i){if(!(!i||i.isDisabled)){if(i.isSelected=!0,this._config.minMode!=="month"){if(i.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{month:V(i.date),year:fe(i.date)},viewMode:"day"}));return}this.rangesProcessing(i)}}yearSelectHandler(i){if(!(!i||i.isDisabled)){if(i.isSelected=!0,this._config.minMode!=="year"){if(i.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{year:fe(i.date)},viewMode:"month"}));return}this.rangesProcessing(i)}}rangesProcessing(i){this._rangeStack.length===1&&(this._rangeStack=i.date>=this._rangeStack[0]?[this._rangeStack[0],i.date]:[i.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(i.date),this._rangeStack.length===0&&(this._rangeStack=[i.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(i.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),this._rangeStack.length===2&&(this._rangeStack=[])}ngOnDestroy(){for(let i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(i){i&&(this._rangeStack=i.value instanceof Date?[i.value]:i.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(i){let s=new Date(i);if(this._config.maxDate){let r=this._config.maxDate.getTime(),o=i.getTime()+(this._config.maxDateRange||0)*Qv;s=o>r?new Date(this._config.maxDate):new Date(o)}else s.setDate(i.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(s)}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-daterangepicker-container"]],viewQuery:function(s,r){if(s&1&&(li($h,5),li(Mv,5)),s&2){let o;Pt(o=Ht())&&(r.startTimepicker=o.first),Pt(o=Ht())&&(r.endTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[ue([Jt,Zt,te]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,Hv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})(),Ty=(()=>{let t=class t extends ka{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(i,s,r,o,a,l,h),i.setStyle(o.nativeElement,"display","inline-block"),i.setStyle(o.nativeElement,"position","static")}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-daterangepicker-inline-container"]],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.disabledValue)("readonly",r.readonlyValue)},features:[ue([Jt,Zt,te]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,Jv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})();var Ey={provide:kn,useExisting:At(()=>Qh),multi:!0},xy={provide:Hr,useExisting:At(()=>Qh),multi:!0},Qh=(()=>{let t=class t{constructor(i,s,r,o,a){this._picker=i,this._localeService=s,this._renderer=r,this._elRef=o,this.changeDetection=a,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ie}onChange(i){this.writeValue(i.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}ngOnInit(){let i=s=>{this._setInputValue(s),this._value!==s&&(this._value=s,this._onChange(s),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&i(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(i)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe(Ai()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}_setInputValue(i){let s=i?$e(i,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",s)}validate(i){let s=i.value;if(s==null||s==="")return null;if(es(s)){if(!xt(s))return{bsDate:{invalid:s}};if(this._picker&&this._picker.minDate&&Gt(s,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Ot(s,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(i){this._validatorChange=i}writeValue(i){if(!i)this._value=void 0;else{let s=this._localeService.currentLocale;if(!Ce(s))throw new Error(`Locale "${s}" is not defined, please add it with "defineLocale(...)"`);if(this._value=dn(i,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc){let o=la(this._value);this._value=o===null?void 0:o}}this._picker.bsValue=this._value}setDisabledState(i){if(this._picker.isDisabled=i,i){this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled");return}this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}};t.\u0275fac=function(s){return new(s||t)(y(Cy,1),y(rs),y(we),y(B),y(Fi))},t.\u0275dir=Se({type:t,selectors:[["input","bsDatepicker",""]],hostBindings:function(s,r){s&1&&b("change",function(a){return r.onChange(a)})("blur",function(){return r.onBlur()})("keyup.esc",function(){return r.hide()})("keydown.enter",function(){return r.hide()})},features:[ue([Ey,xy])]});let e=t;return e})(),Ly=(()=>{let t=class t extends lt{constructor(){super(...arguments),this.displayMonths=2}};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=Hi(t)))(r||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Xt,Oy=(()=>{let t=class t{get isOpen(){return this._datepicker.isShown}set isOpen(i){this.isOpen$.next(i)}set bsValue(i){this._bsValue!==i&&(i&&this.bsConfig?.initCurrentTime&&(i=Fh(i)),this.initPreviousValue(),this._bsValue=i,this.bsValueChange.emit(i))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(i,s,r,o,a){this._config=i,this._elementRef=s,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new I,this.isDisabled=!1,this.bsValueChange=new E,this._subs=[],this._rangeInputFormat$=new I,this._datepicker=a.createLoader(s,o,r),Object.assign(this,i),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new F(this.isOpen)}ngOnInit(){this.isDestroy$=new I,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(i){i.bsConfig&&(i.bsConfig.currentValue?.initCurrentTime&&i.bsConfig.currentValue?.initCurrentTime!==i.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Fh(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(i.bsConfig.currentValue&&i.bsConfig.currentValue.rangeInputFormat)),!(!this._datepickerRef||!this._datepickerRef.instance)&&(i.minDate&&(this._datepickerRef.instance.minDate=this.minDate),i.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),i.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),i.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),i.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),i.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),i.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe(re(i=>i!==this.isOpen),Yi(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:lt,useValue:this._config}).attach(ka).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(i=>{this._datepickerRef&&(this._datepickerRef.instance.value=i)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe(re(i=>i&&i[0]&&!!i[1])).subscribe(i=>{this.initPreviousValue(),this.bsValue=i,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){Xt=this._bsValue}keepDatepickerModalOpened(){return!Xt||!this.bsConfig?.keepDatepickerOpened||!this._config.withTimepicker?!1:this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===Xt?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===Xt?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===Xt?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===Xt?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===Xt?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===Xt?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:zh(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:ny(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(let i of this._subs)i.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(i=>i.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}};t.\u0275fac=function(s){return new(s||t)(y(Ly),y(B),y(we),y(yt),y(Ue))},t.\u0275dir=Se({type:t,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(s,r){s&2&&K("readonly",r.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[ue([Ue,Ye]),vt]});let e=t;return e})(),Ry={provide:kn,useExisting:At(()=>eu),multi:!0},Iy={provide:Hr,useExisting:At(()=>eu),multi:!0},eu=(()=>{let t=class t{constructor(i,s,r,o,a){this._picker=i,this._localeService=s,this._renderer=r,this._elRef=o,this.changeDetection=a,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ie}ngOnInit(){let i=s=>{this._setInputValue(s),this._value!==s&&(this._value=s,this._onChange(s),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&i(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(s=>{this._setInputValue(s),this._value!==s&&(this._value=s,this._onChange(s),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe(Ai()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(i){(i.keyCode===13||i.code==="Enter")&&this.hide()}_setInputValue(i){let s="";if(i){let r=i[0]?$e(i[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",o=i[1]?$e(i[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";s=r&&o?r+this._picker._config.rangeSeparator+o:""}this._renderer.setProperty(this._elRef.nativeElement,"value",s)}onChange(i){this.writeValue(i.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(i){let s=i.value,r=[];if(s==null||!J(s))return null;s=s.slice().sort((l,h)=>l.getTime()-h.getTime());let o=xt(s[0]),a=xt(s[1]);return o?a?(this._picker&&this._picker.minDate&&Gt(s[0],this._picker.minDate,"date")&&(s[0]=this._picker.minDate,r.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&Ot(s[1],this._picker.maxDate,"date")&&(s[1]=this._picker.maxDate,r.push({bsDate:{maxDate:this._picker.maxDate}})),r.length>0?(this.writeValue(s),r):null):{bsDate:{invalid:s[1]}}:{bsDate:{invalid:s[0]}}}registerOnValidatorChange(i){this._validatorChange=i}writeValue(i){if(!i)this._value=void 0;else{let s=this._localeService.currentLocale;if(!Ce(s))throw new Error(`Locale "${s}" is not defined, please add it with "defineLocale(...)"`);let o=[];if(typeof i=="string"){let a=this._picker._config.rangeSeparator.trim();i.replace(/[^-]/g,"").length>1?o=i.split(this._picker._config.rangeSeparator):o=i.split(a.length>0?a:this._picker._config.rangeSeparator).map(l=>l.trim())}Array.isArray(i)&&(o=i),this._value=o.map(a=>this._picker._config.useUtc?la(dn(a,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):dn(a,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(a=>isNaN(a.valueOf())?void 0:a)}this._picker.bsValue=this._value}setDisabledState(i){if(this._picker.isDisabled=i,i){this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled");return}this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}};t.\u0275fac=function(s){return new(s||t)(y(Oy,1),y(rs),y(we),y(B),y(Fi))},t.\u0275dir=Se({type:t,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(s,r){s&1&&b("change",function(a){return r.onChange(a)})("keyup.esc",function(){return r.hide()})("keydown",function(a){return r.onKeydownEvent(a)})("blur",function(){return r.onBlur()})},features:[ue([Ry,Iy])]});let e=t;return e})(),Lk=(()=>{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,qr,fn,os,Ca,ky,ka,Ty]});let e=t;return e})();var Ay={de:hh,en:uh,es:_h,fr:mh,hi:ph,it:fh,ja:gh,ko:vh,pl:yh,pt:da,"pt-BR":da,ru:bh,tr:wh,zh:Sh};function tu(e){let t=Ay[e];t&&dr(e.toLowerCase(),t)}var wr=Tn*365,Ta=wr/12,Yy=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,as={years:wr,months:Ta,days:Tn,hours:Ss,minutes:ji,seconds:ws,milliseconds:1,weeks:Ol},br=function(t){return t instanceof ru},nu,ft,cs=function(t,n,i){return new ru(t,i,n.$l)},ls=function(t){return ft.p(t)+"s"},su=function(t){return t<0},Ri=function(t){return su(t)?Math.ceil(t):Math.floor(t)},Py=function(t){return Math.abs(t)},yn=function(t,n){return t?su(t)?{negative:!0,format:""+Py(t)+n}:{negative:!1,format:""+t+n}:{negative:!1,format:""}},ru=(function(){function e(n,i,s){var r=this;if(this.$d={},this.$l=s,n===void 0&&(this.$ms=0,this.parseFromMilliseconds()),i)return cs(n*as[ls(i)],this);if(typeof n=="number")return this.$ms=n,this.parseFromMilliseconds(),this;if(typeof n=="object")return Object.keys(n).forEach(function(h){r.$d[ls(h)]=n[h]}),this.calMilliseconds(),this;if(typeof n=="string"){var o=n.match(Yy);if(o){var a=o.slice(2),l=a.map(function(h){return h!=null?Number(h):0});return this.$d.years=l[0],this.$d.months=l[1],this.$d.weeks=l[2],this.$d.days=l[3],this.$d.hours=l[4],this.$d.minutes=l[5],this.$d.seconds=l[6],this.calMilliseconds(),this}}return this}var t=e.prototype;return t.calMilliseconds=function(){var i=this;this.$ms=Object.keys(this.$d).reduce(function(s,r){return s+(i.$d[r]||0)*as[r]},0)},t.parseFromMilliseconds=function(){var i=this.$ms;this.$d.years=Ri(i/wr),i%=wr,this.$d.months=Ri(i/Ta),i%=Ta,this.$d.days=Ri(i/Tn),i%=Tn,this.$d.hours=Ri(i/Ss),i%=Ss,this.$d.minutes=Ri(i/ji),i%=ji,this.$d.seconds=Ri(i/ws),i%=ws,this.$d.milliseconds=i},t.toISOString=function(){var i=yn(this.$d.years,"Y"),s=yn(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=this.$d.weeks*7);var o=yn(r,"D"),a=yn(this.$d.hours,"H"),l=yn(this.$d.minutes,"M"),h=this.$d.seconds||0;this.$d.milliseconds&&(h+=this.$d.milliseconds/1e3,h=Math.round(h*1e3)/1e3);var p=yn(h,"S"),v=i.negative||s.negative||o.negative||a.negative||l.negative||p.negative,C=a.format||l.format||p.format?"T":"",x=v?"-":"",R=x+"P"+i.format+s.format+o.format+C+a.format+l.format+p.format;return R==="P"||R==="-P"?"P0D":R},t.toJSON=function(){return this.toISOString()},t.format=function(i){var s=i||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:ft.s(this.$d.years,2,"0"),YYYY:ft.s(this.$d.years,4,"0"),M:this.$d.months,MM:ft.s(this.$d.months,2,"0"),D:this.$d.days,DD:ft.s(this.$d.days,2,"0"),H:this.$d.hours,HH:ft.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:ft.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:ft.s(this.$d.seconds,2,"0"),SSS:ft.s(this.$d.milliseconds,3,"0")};return s.replace(Nl,function(o,a){return a||String(r[o])})},t.as=function(i){return this.$ms/as[ls(i)]},t.get=function(i){var s=this.$ms,r=ls(i);return r==="milliseconds"?s%=1e3:r==="weeks"?s=Ri(s/as[r]):s=this.$d[r],s||0},t.add=function(i,s,r){var o;return s?o=i*as[ls(s)]:br(i)?o=i.$ms:o=cs(i,this).$ms,cs(this.$ms+o*(r?-1:1),this)},t.subtract=function(i,s){return this.add(i,s,!0)},t.locale=function(i){var s=this.clone();return s.$l=i,s},t.clone=function(){return cs(this.$ms,this)},t.humanize=function(i){return nu().add(this.$ms,"ms").locale(this.$l).fromNow(!i)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},e})(),iu=function(t,n,i){return t.add(n.years()*i,"y").add(n.months()*i,"M").add(n.days()*i,"d").add(n.hours()*i,"h").add(n.minutes()*i,"m").add(n.seconds()*i,"s").add(n.milliseconds()*i,"ms")},ou=(function(e,t,n){nu=n,ft=n().$utils(),n.duration=function(r,o){var a=n.locale();return cs(r,{$l:a},o)},n.isDuration=br;var i=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(r,o){return br(r)?iu(this,r,1):i.bind(this)(r,o)},t.prototype.subtract=function(r,o){return br(r)?iu(this,r,-1):s.bind(this)(r,o)}});var Hy=function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n,i,s){return i||s.slice(1)})},Ea={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"},au=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,s,r){var o=r&&r.toUpperCase();return s||n[r]||Ea[r]||Hy(n[o])})};var lu=(function(e,t,n){var i=t.prototype,s=i.format;n.en.formats=Ea,i.format=function(r){r===void 0&&(r=Hl);var o=this.$locale(),a=o.formats,l=a===void 0?{}:a,h=au(r,l);return s.call(this,h)}});var cu=(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"};n.en.relativeTime=s,i.fromToBase=function(a,l,h,p,v){for(var C=h.$locale().relativeTime||s,x=e.thresholds||[{l:"s",r:44,d:Rl},{l:"m",r:89},{l:"mm",r:44,d:En},{l:"h",r:89},{l:"hh",r:21,d:Il},{l:"d",r:35},{l:"dd",r:25,d:Al},{l:"M",r:45},{l:"MM",r:10,d:Yl},{l:"y",r:17},{l:"yy",d:Pl}],R=x.length,j,H,G,We=0;We<R;We+=1){var It=x[We];It.d&&(j=p?n(a).diff(h,It.d,!0):h.diff(a,It.d,!0));var Ii=(e.rounding||Math.round)(Math.abs(j));if(G=j>0,Ii<=It.r||!It.r){Ii<=1&&We>0&&(It=x[We-1]);var Dr=C[It.l];v&&(Ii=v(""+Ii)),typeof Dr=="string"?H=Dr.replace("%d",Ii):H=Dr(Ii,l,It.l,G);break}}if(l)return H;var Cr=G?C.future:C.past;return typeof Cr=="function"?Cr(H):Cr.replace("%s",H)};function r(a,l,h,p){return i.fromToBase(a,l,h,p)}i.to=function(a,l){return r(a,l,this,!0)},i.from=function(a,l){return r(a,l,this)};var o=function(l){return l.$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 Ny=/[+-]\d\d(?::?\d\d)?/g,Vy=/([+-]|\d\d)/g;function Fy(e){e===void 0&&(e="");var t=e.match(Ny);if(!t)return null;var n=(""+t[0]).match(Vy)||["-",0,0],i=n[0],s=n[1],r=n[2],o=+s*60+ +r;return o===0?0:i==="+"?o:-o}var du=(function(e,t,n){var i=t.prototype;n.utc=function(v){var C={date:v,utc:!0,args:arguments};return new t(C)},i.utc=function(v){var C=n(this.toDate(),{locale:this.$L,utc:!0});return v?C.add(this.utcOffset(),En):C},i.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),s.call(this,v)};var r=i.init;i.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 r.call(this)};var o=i.utcOffset;i.utcOffset=function(v,C){var x=this.$utils(),R=x.u;if(R(v))return this.$u?0:R(this.$offset)?o.call(this):this.$offset;if(typeof v=="string"&&(v=Fy(v),v===null))return this;var j=Math.abs(v)<=16?v*60:v;if(j===0)return this.utc(C);var H=this.clone();if(C)return H.$offset=j,H.$u=!1,H;var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return H=this.local().add(j+G,En),H.$offset=j,H.$x.$localOffset=G,H};var a=i.format,l="YYYY-MM-DDTHH:mm:ss[Z]";i.format=function(v){var C=v||(this.$u?l:"");return a.call(this,C)},i.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-v*ji},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var h=i.toDate;i.toDate=function(v){return v==="s"&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var p=i.diff;i.diff=function(v,C,x){if(v&&this.$u===v.$u)return p.call(this,v,C,x);var R=this.local(),j=n(v).local();return p.call(R,j,C,x)}});hi.extend(cu);hi.extend(lu);hi.extend(du);hi.extend(ou);var By={de:()=>import("./chunk-LRDKG274.js"),en:()=>import("./chunk-R7JRAR3P.js"),es:()=>import("./chunk-XCPDPB5G.js"),fr:()=>import("./chunk-Q7IXRPOO.js"),hi:()=>import("./chunk-Y4MAPE2C.js"),it:()=>import("./chunk-ZQLBPLXI.js"),ja:()=>import("./chunk-GOJYWL2M.js"),ko:()=>import("./chunk-PSUAQBYM.js"),pl:()=>import("./chunk-Y5XTRCFK.js"),pt:()=>import("./chunk-H6ZXFINQ.js"),"pt-BR":()=>import("./chunk-V43RGNXA.js"),ru:()=>import("./chunk-MGWG7OD7.js"),tr:()=>import("./chunk-DIC2MVRI.js"),zh:()=>import("./chunk-STA7NTYL.js")};function hu(e){return bn(this,null,function*(){let t=By[e];t&&(yield t(),hi.locale(e))})}var jy=xa({"./de.json":()=>import("./chunk-XKEBQNQJ.js"),"./en.json":()=>import("./chunk-LUSVISM6.js"),"./es.json":()=>import("./chunk-NAH4V2R6.js"),"./fr.json":()=>import("./chunk-DRHPEERW.js"),"./hi.json":()=>import("./chunk-VZPCXSRG.js"),"./it.json":()=>import("./chunk-BSB4VROD.js"),"./ja.json":()=>import("./chunk-SRBOO7AO.js"),"./ko.json":()=>import("./chunk-5WCQBTXW.js"),"./pl.json":()=>import("./chunk-42L6C5MT.js"),"./pt-BR.json":()=>import("./chunk-DHFQIFOF.js"),"./pt.json":()=>import("./chunk-PCFH5HCI.js"),"./ru.json":()=>import("./chunk-FCGTI42I.js"),"./tr.json":()=>import("./chunk-LZKI5P5T.js"),"./zh.json":()=>import("./chunk-ITVA26X2.js")});var uu="language-region",Sr="locale",_u="en",mu={[On]:"Auto",de:"Deutsch",en:"English",es:"Espa\xF1ol",fr:"Fran\xE7ais",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",it:"Italiano",ja:"\u65E5\u672C\u8A9E",ko:"\uD55C\uAD6D\uC5B4",pl:"Polski",pt:"Portugu\xEAs","pt-BR":"Portugu\xEAs (Brasil)",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",tr:"T\xFCrk\xE7e",zh:"\u4E2D\u6587\uFF08\u7B80\u4F53) "},hT={format:uu,providers:[{name:"app",asset:"app"}],fallback:!1,cache:!0,keySeparator:"|",defaultLocale:{language:_u},schema:[{locale:{language:"de"},dir:"ltr"},{locale:{language:"en"},dir:"ltr"},{locale:{language:"es"},dir:"ltr"},{locale:{language:"fr"},dir:"ltr"},{locale:{language:"hi"},dir:"ltr"},{locale:{language:"it"},dir:"ltr"},{locale:{language:"ja"},dir:"ltr"},{locale:{language:"ko"},dir:"ltr"},{locale:{language:"pl"},dir:"ltr"},{locale:{language:"pt"},dir:"ltr"},{locale:{language:"pt-BR"},dir:"ltr"},{locale:{language:"ru"},dir:"ltr"},{locale:{language:"tr"},dir:"ltr"},{locale:{language:"zh"},dir:"ltr"}]};function Mr(){return{language:ad(ol(uu))}}var uT=(()=>{let t=class t{constructor(){this.hasStorage=typeof Storage<"u"}read(){return bn(this,null,function*(){if(!this.hasStorage)return Mr();let i=null,s=sessionStorage.getItem(Sr);if(s)try{i=JSON.parse(s)}catch(a){console.warn("Invalid locale in sessionStorage, resetting.",a),sessionStorage.removeItem(Sr)}let r=i?.language;return!!r&&jn.has(r)?i:(sessionStorage.removeItem(Sr),Mr())})}write(i){return bn(this,null,function*(){if(this.hasStorage)try{let s=JSON.stringify(i);sessionStorage.setItem(Sr,s)}catch(s){console.warn("Failed to write locale to sessionStorage:",s)}})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_T=(()=>{let t=class t{constructor(){this.bsLocale=M(rs)}get(i){if(i&&jn.has(i))hu(i).catch(console.error),tu(i),this.bsLocale.use(i.toLowerCase());else return ii({});return hs(jy(`./${i}.json`)).pipe(Ve(s=>s?.default??s??{}),Ha(()=>ii({})))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let e=t;return e})(),mT=(()=>{let t=class t{constructor(){this.locale=M(rl)}handle(i,s,r){return this.locale.language.startsWith(_u)?i:(console.error("translation missing: ",i,s,r,this.locale),i??"no translation")}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let e=t;return e})();var fu="Sync-in";var gu="1.9.0";var vu=fu,wT=gu,ST={BASE:""},MT={title:"NAVIGATION",icon:ul,link:"",level:0,submenus:[]};var Re={SERVER:{AUTHENTICATION:"server-authentication",AUTHENTICATION_FAILED:"server-authentication-failed",AUTHENTICATION_TOKEN_UPDATE:"server-authentication-token-update",AUTHENTICATION_TOKEN_EXPIRED:"server-authentication-token-expired"},SYNC:{PATH_OPERATION:"sync-path-operation",TASKS_COUNT:"sync-tasks-count",STATUS:"core-sync-status",ERRORS:"sync-errors",TRANSFER:"sync-transfer",REPORT_TRANSFER:"sync-report-transfer",TRANSFER_LOGS:"sync-transfer-logs",SCHEDULER_STATE:"sync-scheduler-state"},APPLICATIONS:{MSG:"applications-msg",COUNTER:"applications-counter"},MISC:{DIALOG_OPEN:"dialog-open",URL_OPEN:"url-open",FILE_OPEN:"file-open",SWITCH_THEME:"switch-theme",NETWORK_IS_ONLINE:"network-is-online"}};var $y=new RegExp(`${Gc}`,"i");function yu(){return!!$y.test(window.navigator.userAgent)}var bu=(()=>{let t=class t{constructor(){this.enabled=yu(),this.ipcRenderer=this.enabled?window.ipcRenderer:null,this.ngZone=M(ae),this.store=M(zc),this.syncTasksCount={},this.store.isElectronApp.set(this.enabled),this.enabled&&(ci(()=>{let i=this.store.notifications().filter(s=>!s.wasRead).length;this.send(Re.APPLICATIONS.COUNTER,Vn.NOTIFICATIONS,i)}),this.store.filesActiveTasks.subscribe(i=>this.send(Re.APPLICATIONS.COUNTER,Vn.TASKS,i.length)),this.ipcRenderer.on(Re.SYNC.SCHEDULER_STATE,(i,s)=>this.store.clientScheduler.set(s)),this.ipcRenderer.on(Re.SYNC.STATUS,(i,s)=>this.ngZone.run(()=>this.setSync(s))),this.ipcRenderer.on(Re.SYNC.TASKS_COUNT,(i,s)=>this.ngZone.run(()=>this.setSyncTasksCount(s))),this.updateSyncMenuIcon(),this.getSyncsWithErrors(),this.getClientSchedulerSettings())}send(i,...s){this.enabled&&this.ipcRenderer.send(i,...s)}sendMessage(i,s){this.send(Re.APPLICATIONS.MSG,{title:i,body:s})}invoke(i,...s){if(this.enabled)return this.ipcRenderer.invoke(i,...s)}authenticate(){return hs(this.invoke(Re.SERVER.AUTHENTICATION))}openPath(i){this.send(Re.MISC.FILE_OPEN,i)}openUrl(i){this.send(Re.MISC.URL_OPEN,i)}setSync(i){if(i.reportOnly){this.store.clientSyncIsReporting.next(i.state);return}i.state?this.store.clientSyncs.next([...this.store.clientSyncs.getValue(),i]):(this.store.clientSyncs.next(this.store.clientSyncs.getValue().filter(s=>s.syncPathId!==i.syncPathId)),this.store.clientSyncTask.next({syncPathId:i.syncPathId,nbTasks:0}),i.lastErrors.length||i.mainError?this.store.clientSyncsWithErrors.next([...this.store.clientSyncsWithErrors.getValue().filter(s=>s.syncPathId!==i.syncPathId),i]):this.store.clientSyncsWithErrors.next(this.store.clientSyncsWithErrors.getValue().filter(s=>s.syncPathId!==i.syncPathId))),this.send(Re.APPLICATIONS.COUNTER,Vn.SYNCS,this.store.clientSyncs.getValue().length)}setSyncTasksCount(i){this.store.clientSyncs.getValue().find(s=>s.syncPathId===i.syncPathId)||(i.nbTasks=0),this.store.clientSyncTask.next(i),i.nbTasks===0?delete this.syncTasksCount[i.syncPathId]:this.syncTasksCount[i.syncPathId]=i.nbTasks,this.store.clientSyncTasksCount.next(Object.values(this.syncTasksCount).reduce((s,r)=>s+r,0))}getClientSchedulerSettings(){this.send(Re.SYNC.SCHEDULER_STATE)}getSyncsWithErrors(){this.invoke(Re.SYNC.ERRORS).then(i=>this.store.clientSyncsWithErrors.next(i)).catch(console.error)}updateSyncMenuIcon(){us([this.store.clientSyncs,this.store.clientSyncsWithErrors,Zl(this.store.clientScheduler)]).subscribe(([i,s,r])=>{i.length?(ze.iconAnimated=!0,ze.count.level="purple",ze.count.value.next(i.length)):s.find(o=>o.lastErrors.length||!!o.mainError)?(ze.count.level="danger",ze.count.value.next("!"),ze.iconAnimated=!1):r===Gi.DISABLED?(ze.count.level="secondary-alt",ze.count.value.next("off"),ze.iconAnimated=!1):(ze.count.value.next(0),ze.iconAnimated=!1)})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var iE=(()=>{let t=class t{constructor(){this.currentRightSideBarTab=null,this.resizeEvent=new F(null),this.switchTheme=new F(sessionStorage.getItem("themeMode")||Bc()),this.toggleLeftSideBar=new F(this.isSmallerMediumScreen()?2:1),this.saveLeftSideBarIsOpen=new F(!0),this.leftSideBarIsOpen=new F(!0),this.toggleRightSideBar=new I,this.rightSideBarIsOpen=new F(!1),this.rightSideBarOpenAndShowTab=new I,this.rightSideBarSetTabs=new I,this.rightSideBarSelectTab=new I,this.breadcrumbNav=new F({url:""}),this.breadcrumbIcon=new F(null),this.windows=new F([]),this.modalRefs=new Map,this.title=M(nl),this.ngZone=M(ae),this.translation=M(al),this.faConfig=M(Vl),this.bsModal=M(wo),this.toastr=M(Zs),this.contextMenu=M(Nc),this.electron=M(bu),this.screenMediumSize=767,this.screenSmallSize=576,this._networkIsOnline=new F(navigator.onLine),this.networkIsOnline=this._networkIsOnline.asObservable().pipe(Va(ni(window,"online").pipe(Ve(()=>!0)),ni(window,"offline").pipe(Ve(()=>!1)))),this.preferTheme=ni(window.matchMedia("(prefers-color-scheme: dark)"),"change").pipe(Ve(i=>i.matches?Nn:vi)),this.modalOptions={animated:!0,keyboard:!0,backdrop:!0,ignoreBackdropClick:!0,closeInterceptor:()=>this.closeModalInterceptor()},Gl("bs5"),this.faConfig.fixedWidth=!0,this.title.setTitle(vu),this.preferTheme.subscribe(i=>this.setTheme(i))}showRSideBarTab(i=null,s=!1,r=0){s&&this.rightSideBarIsOpen.getValue()?this.rightSideBarSelectTab.next(i):this.rightSideBarOpenAndShowTab.next(i),r>0&&setTimeout(()=>this.hideRSideBarTab(i),r)}hideRSideBarTab(i){this.currentRightSideBarTab===i&&this.toggleRSideBar(!1)}toggleRSideBar(i){this.rightSideBarIsOpen.next(i),this.toggleRightSideBar.next(i)}setTabsRSideBar(i,s){this.rightSideBarSetTabs.next({name:i,tabs:s})}toggleLSideBar(){this.toggleLeftSideBar.next(3)}isSmallerMediumScreen(){return window.innerWidth!==0&&window.innerWidth<this.screenMediumSize}isSmallerScreen(){return window.innerWidth!==0&&window.innerWidth<this.screenSmallSize}toggleTheme(){this.setTheme(this.switchTheme.getValue()===vi?Nn:vi)}openDialog(i,s,r={},o={}){let a=`modal-${s||"sm"} modal-primary`;if(r.id&&this.windows.getValue().find(p=>p.id===r.id))return this.restoreDialog(r.id),this.modalRefs.get(r.id);let l=Object.assign(r,A(A({},this.modalOptions),o),{class:a}),h=this.bsModal.show(i,l);return this.modalRefs.set(h.id,h),h}minimizeDialog(i,s){let r=this.getModalComponent(i);return r&&(this.closeModalWithEffect(r),this.windows.getValue().find(o=>o.id===i)||this.windows.next([...this.windows.getValue(),{id:i,element:s}]),this.windows.getValue().length===1&&this.showRSideBarTab(po.WINDOWS,!1,3e3)),r}restoreDialog(i){let s=this.getModalComponent(i);return s&&(this.openModalWithEffect(s),this.windows.next(this.windows.getValue().filter(r=>r.id!==i))),s}closeDialog(i=null,s=null,r=!1){if(r){this.bsModal.hide(),this.modalRefs.clear(),this.windows.next([]);return}if(!s){let a,l=this.windows.getValue().map(h=>h.id);for(let h of this.modalRefs.keys())l.indexOf(h)>-1||(a=h);if(a!==void 0)s=a;else{console.warn("Last modal id not found");return}}let o=this.getModalComponent(s);this.modalRefs.delete(s),o&&(i?setTimeout(()=>this.closeModalWithEffect(o,!0),i):this.closeModalWithEffect(o,!0),this.windows.next(this.windows.getValue().filter(a=>a.id!==s)))}openContextMenu(i,s){this.contextMenu.hasOpenMenu()&&this.contextMenu.closeAll(),setTimeout(()=>this.contextMenu.show(s,i.type==="contextmenu"?i:i.srcEvent),5)}sendNotification(i,s,r,o,a={}){if(i==="error"&&o){console.error(o);let l=o.error?Array.isArray(o.error.message)?o.error.message.map(h=>this.translateString(h)).join(" & "):this.translateString(o.error.message):o.message||"Unknown error !";if(this.electron.enabled)this.electron.sendMessage(this.translateString(s),`${this.translateString(r)} - ${l}`);else return this.toastr[i](`${this.translateString(r)}<br>${l}`,this.translateString(s),be(A({},a),{enableHtml:!0}))}if(this.electron.enabled)this.electron.sendMessage(this.translateString(s),this.translateString(r));else return this.toastr[i](this.translateString(r),this.translateString(s),a)}setLanguage(i){return(!i||i===On)&&(i=Mr().language),i&&i!==this.getCurrentLanguage()?this.translation.setLocale({language:i}):Promise.resolve()}getCurrentLanguage(){return this.translation.getLocale().language}getLanguages(i=!1){let s=Object.keys(mu);return i?s:s.filter(r=>r!==On)}setBreadcrumbIcon(i){this.breadcrumbIcon.next(i)}setBreadcrumbNav(i){this.breadcrumbNav.next(i)}openUrl(i){this.electron.enabled?this.electron.openUrl(i):window.open(i,"_blank")}translateString(i,s){return i&&this.translation.translate(i,s)}clean(){this.toggleRSideBar(!1),this.closeDialog(null,null,!0)}openModalWithEffect(i){this.bsModal._renderer.setAttribute(i.instance._element.nativeElement,"aria-hidden","false"),this.bsModal._renderer.setStyle(i.instance._element.nativeElement,"display","block"),setTimeout(()=>{this.bsModal._renderer.addClass(i.instance._element.nativeElement,"show")},100)}closeModalWithEffect(i,s=!1){this.bsModal._renderer.setAttribute(i.instance._element.nativeElement,"aria-hidden","true"),this.bsModal._renderer.removeClass(i.instance._element.nativeElement,"show"),setTimeout(()=>this.bsModal._renderer.setStyle(i.instance._element.nativeElement,"display","none"),500),s&&this.bsModal.hide(i.id)}closeModalInterceptor(){let i=this.bsModal.lastDismissReason;return i=="browser-back-navigation-clicked"?(this.atLeastOneModalOpen()&&history.forward(),Promise.reject("blocked-by-interceptor")):i==="esc"?(this.closeDialog(),Promise.reject("blocked-by-interceptor")):Promise.resolve()}getModalComponent(i){let s=this.bsModal.loaders.find(r=>r.instance?.config.id===i);return s?(s.id=i,s):(console.warn(`Modal ${i} not found`),null)}atLeastOneModalOpen(){return this.modalRefs.size-this.windows.getValue().length>0}setTheme(i){this.electron.send(Re.MISC.SWITCH_THEME,i),this.ngZone.run(()=>this.switchTheme.next(i)),sessionStorage.setItem("themeMode",i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var qt="spaces",ct={BASE:`${Us}/${qt}`,BROWSE:"browse",TREE:"tree",LIST:"list",ROOTS:"roots",ROOT_CHECK:"root/check",LINKS:"links",TRASH:pe.TRASH,SHARES:pe.SHARES},aE=`${ct.BASE}/${ct.BROWSE}`,lE=`${ct.BASE}/${ct.TREE}`,cE=`${ct.BASE}/${ct.LIST}`,dE=`${ct.BASE}/${ct.TRASH}/${ct.LIST}`,hE=`${ct.BASE}/${ct.ROOT_CHECK}`;var wu={BASE:"recents"},Su="Recents",Mu=_l;var Qt={RECENTS:"Recents",FILES:"Files",PERSONAL_FILES:"Personal files",SHORT_PERSONAL_FILES:"Personal",TRASH:"Trash",SPACES:"Spaces",SHARES:"Shares",SHARED:"Shared",SHARED_WITH_ME:"Shared with me",SHARED_WITH_OTHER:"Shared with others",SHARED_WITH_ME_SHORT:"With me",SHARED_WITH_OTHER_SHORT:"With others",SHARED_BY_LINKS:"Shared via links",SHARED_BY_LINKS_SHORT:"Via links"},Rt={PERSONAL:Nr,SPACES:Ll,SHARES:dl,SHARED_WITH_ME:hl,SHARED_WITH_OTHERS:pl,ANCHORED:Cl,LINKS:vl,TRASH:bl,EXTERNAL:gl},se={SPACES:qt,FILES:pe.FILES,SHARES:pe.SHARES,SHARED:"shared",LINKS:Fl.LINKS,TRASHES:"trashes",TRASH:pe.TRASH,PERSONAL:gi.PERSONAL,SPACES_FILES:`${qt}/${pe.FILES}`,SPACES_TRASH:`${qt}/${pe.TRASH}`,SPACES_SHARES:`${qt}/${pe.SHARES}`,PERSONAL_FILES:`${qt}/${pe.FILES}/${gi.PERSONAL}`,PERSONAL_TRASH:`${qt}/${pe.FILES}/${gi.PERSONAL}/${pe.TRASH}`},wE={a:{text:"Add",icon:cl},m:{text:"Edit",icon:Tl},d:{text:"Delete",icon:El},si:{text:"Share inside",icon:Rt.ANCHORED},so:{text:"Share outside",icon:Rt.SHARES}},SE={a:!1,d:!1,m:!1,si:!1,so:!1},ME={title:Qt.FILES,icon:Nr,link:se.PERSONAL_FILES,matchLink:new RegExp(`^${se.SPACES}|^${se.TRASH}|^${se.SHARES}|^${se.SHARED}|^${se.LINKS}`),level:1,submenus:[{title:Su,icon:Mu,link:wu.BASE},{id:Pe.PERSONAL_SPACE,title:Qt.SHORT_PERSONAL_FILES,icon:Rt.PERSONAL,link:se.PERSONAL_FILES,matchLink:new RegExp(`^${se.PERSONAL_FILES}[/|?]`)},{id:Pe.SPACES,title:Qt.SPACES,icon:Rt.SPACES,link:se.SPACES,matchLink:new RegExp(`^${se.SPACES}(\\?|$)|^${se.SPACES}/${se.FILES}/(?!${se.PERSONAL}(/|\\?|$))`)},{id:Pe.SHARES,title:Qt.SHARED,icon:Rt.SHARES,link:se.SPACES_SHARES,matchLink:new RegExp(`^${se.SPACES_SHARES}|^${se.SHARED}|^${se.LINKS}`),submenus:[{id:Pe.SHARES_ADMIN,title:Qt.SHARED_WITH_ME_SHORT,icon:Rt.SHARED_WITH_ME,link:se.SPACES_SHARES},{id:Pe.SHARES_ADMIN,title:Qt.SHARED_WITH_OTHER_SHORT,icon:Rt.SHARED_WITH_OTHERS,link:se.SHARED},{id:Pe.SHARES_ADMIN,title:Qt.SHARED_BY_LINKS_SHORT,icon:Rt.LINKS,link:se.LINKS}]},{id:Pe.PERSONAL_SPACE,title:Qt.TRASH,icon:Rt.TRASH,link:se.TRASH,matchLink:new RegExp(`^${se.SPACES}/${se.TRASH}/`)}]};export{Ft as a,om as b,Bn as c,Bt as d,id as e,_t as f,jt as g,$t as h,So as i,Mo as j,am as k,Ms as l,Xl as m,Zl as n,Ye as o,Ue as p,wo as q,Jr as r,hc as s,qr as t,lm as u,aC as v,Cy as w,Qh as x,Lk as y,B0 as z,Zu as A,Ju as B,j0 as C,Pe as D,qu as E,ne as F,$i as G,z0 as H,G0 as I,Wi as J,K0 as K,On as L,X0 as M,mu as N,hT as O,uT as P,_T as Q,mT as R,vu as S,wT as T,ST as U,MT as V,Us as W,Ki as X,EM as Y,xM as Z,Ne as _,Vt as $,NM as aa,VM as ba,FM as ca,BM as da,jM as ea,$M as fa,$c as ga,WM as ha,UM as ia,zM as ja,De as ka,I_ as la,GM as ma,A_ as na,KM as oa,Y_ as pa,XM as qa,ZM as ra,JM as sa,H_ as ta,qM as ua,y_ as va,xS as wa,LS as xa,nt as ya,pe as za,gi as Aa,D_ as Ba,IS as Ca,VS as Da,FS as Ea,T_ as Fa,BS as Ga,jS as Ha,$S as Ia,WS as Ja,US as Ka,zS as La,GS as Ma,KS as Na,XS as Oa,ZS as Pa,JS as Qa,Nn as Ra,vi as Sa,E_ as Ta,po as Ua,iM as Va,nM as Wa,sM as Xa,rM as Ya,oM as Za,aM as _a,lM as $a,cM as ab,dM as bb,hM as cb,uM as db,_M as eb,mM as fb,pM as gb,fM as hb,gM as ib,vM as jb,yM as kb,bM as lb,wM as mb,Re as nb,Gi as ob,zs as pb,Gs as qb,He as rb,ze as sb,N_ as tb,Uc as ub,zc as vb,cD as wb,V_ as xb,F_ as yb,B_ as zb,j_ as Ab,bu as Bb,iE as Cb,ct as Db,aE as Eb,lE as Fb,cE as Gb,dE as Hb,hE as Ib,wu as Jb,Su as Kb,Mu as Lb,Qt as Mb,Rt as Nb,se as Ob,wE as Pb,SE as Qb,ME as Rb};
|
|
3
|
+
`],encapsulation:2,changeDetection:0});let e=t;return e})(),fn=(()=>{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({});let e=t;return e})();function Eg(e,t){if(e&1){let n=T();_(0,"button",2),b("click",function(){let s=f(n).$implicit,r=c();return g(r.selectFromRanges(s))}),D(1),m()}if(e&2){let n=t.$implicit,i=c();L("selected",i.compareRanges(n)),d(),ke(" ",n.label," ")}}function xg(e,t){if(e&1){let n=T();bt(0),D(1," \u200B "),_(2,"button",2),b("click",function(){f(n);let s=c();return g(s.view("month"))}),_(3,"span"),D(4),m()(),wt()}if(e&2){let n=c();d(2),u("disabled",n.isDisabled),d(2),Me(n.calendar.monthTitle)}}var Lg=[[["bs-datepicker-navigation-view"]],"*"],Og=["bs-datepicker-navigation-view","*"];function Rg(e,t){e&1&&z(0,"bs-current-date",4)}function Ig(e,t){e&1&&z(0,"bs-timepicker")}function Ag(e,t){if(e&1){let n=T();_(0,"td",4),b("click",function(){let s=f(n).$implicit,r=c(2);return g(r.viewYear(s))})("mouseenter",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverYear(s,!0))})("mouseleave",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverYear(s,!1))}),_(1,"span"),D(2),m()()}if(e&2){let n=t.$implicit;L("disabled",n.isDisabled)("is-highlighted",n.isHovered),d(),L("selected",n.isSelected),d(),Me(n.label)}}function Yg(e,t){if(e&1&&(_(0,"tr"),S(1,Ag,3,7,"td",3),m()),e&2){let n=t.$implicit;d(),u("ngForOf",n)}}function Pg(e,t){if(e&1){let n=T();_(0,"td",4),b("click",function(){let s=f(n).$implicit,r=c(2);return g(r.viewMonth(s))})("mouseenter",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverMonth(s,!0))})("mouseleave",function(){let s=f(n).$implicit,r=c(2);return g(r.hoverMonth(s,!1))}),_(1,"span"),D(2),m()()}if(e&2){let n=t.$implicit;L("disabled",n.isDisabled)("is-highlighted",n.isHovered),d(),L("selected",n.isSelected),d(),Me(n.label)}}function Hg(e,t){if(e&1&&(_(0,"tr"),S(1,Pg,3,7,"td",3),m()),e&2){let n=t.$implicit;d(),u("ngForOf",n)}}var Ng=["bsDatepickerDayDecorator",""];function Vg(e,t){e&1&&z(0,"th")}function Fg(e,t){if(e&1&&(_(0,"th",5),D(1),m()),e&2){let n=t.index,i=c();d(),ke("",i.calendar.weekdays[n]," ")}}function Bg(e,t){if(e&1){let n=T();_(0,"span",11),b("click",function(){f(n);let s=c(2).$implicit,r=c();return g(r.selectWeek(s))}),D(1),m()}if(e&2){let n=c(2).index,i=c();d(),Me(i.calendar.weekNumbers[n])}}function jg(e,t){if(e&1){let n=T();_(0,"span",12),b("click",function(){f(n);let s=c(2).$implicit,r=c();return g(r.selectWeek(s))})("mouseenter",function(){f(n);let s=c(2).$implicit,r=c();return g(r.weekHoverHandler(s,!0))})("mouseleave",function(){f(n);let s=c(2).$implicit,r=c();return g(r.weekHoverHandler(s,!1))}),D(1),m()}if(e&2){let n=c(2).index,i=c();d(),Me(i.calendar.weekNumbers[n])}}function $g(e,t){if(e&1&&(_(0,"td",8),S(1,Bg,2,1,"span",9)(2,jg,2,1,"span",10),m()),e&2){let n=c(2);L("active-week",n.isWeekHovered),d(),u("ngIf",n.isiOS),d(),u("ngIf",!n.isiOS)}}function Wg(e,t){if(e&1){let n=T();_(0,"span",17),b("click",function(){f(n);let s=c().$implicit,r=c(2);return g(r.selectDay(s))})("mouseenter",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!0))})("mouseleave",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!1))}),D(1),m()}if(e&2){let n=c().$implicit;u("tooltip",Qa(n.tooltipText))("day",n),d(),ke("",n.label," 3")}}function Ug(e,t){if(e&1){let n=T();_(0,"span",18),b("click",function(){f(n);let s=c().$implicit,r=c(2);return g(r.selectDay(s))})("mouseenter",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!0))})("mouseleave",function(){f(n);let s=c().$implicit,r=c(2);return g(r.hoverDay(s,!1))}),D(1),m()}if(e&2){let n=c().$implicit;u("day",n),d(),ke("",n.label," 2")}}function zg(e,t){if(e&1){let n=T();_(0,"span",19),b("click",function(){f(n);let s=c().$implicit,r=c(2);return g(r.selectDay(s))}),D(1),m()}if(e&2){let n=c().$implicit;u("day",n),d(),ke("",n.label," 1")}}function Gg(e,t){if(e&1&&(_(0,"td",13),S(1,Wg,2,4,"span",14)(2,Ug,2,2,"span",15)(3,zg,2,2,"span",16),m()),e&2){let n=c(2);d(),u("ngIf",!n.isiOS&&n.isShowTooltip),d(),u("ngIf",!n.isiOS&&!n.isShowTooltip),d(),u("ngIf",n.isiOS)}}function Kg(e,t){if(e&1&&(_(0,"tr"),S(1,$g,3,4,"td",6)(2,Gg,4,3,"td",7),m()),e&2){let n=t.$implicit,i=c();d(),u("ngIf",i.options&&i.options.showWeekNumbers),d(),u("ngForOf",n.days)}}var $h=["startTP"];function Xg(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function Zg(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function Jg(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,Zg,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function qg(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,Xg,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,Jg,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function Qg(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function ev(e,t){if(e&1&&(_(0,"div",10),S(1,Qg,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function tv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function iv(e,t){if(e&1&&(_(0,"div",10),S(1,tv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function nv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function sv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function rv(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function ov(e,t){if(e&1&&(_(0,"div",19),S(1,sv,3,7,"div",22)(2,rv,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function av(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function lv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,qg,5,4,"ng-container",6)(5,ev,3,3,"div",7)(6,iv,3,3,"div",7),m(),S(7,nv,5,0,"div",8)(8,ov,3,2,"div",8),m(),S(9,av,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}function cv(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function dv(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function hv(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,dv,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function uv(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,cv,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,hv,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function _v(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function mv(e,t){if(e&1&&(_(0,"div",10),S(1,_v,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function pv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function fv(e,t){if(e&1&&(_(0,"div",10),S(1,pv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function gv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function vv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function yv(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function bv(e,t){if(e&1&&(_(0,"div",19),S(1,vv,3,7,"div",22)(2,yv,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function wv(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function Sv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,uv,5,4,"ng-container",6)(5,mv,3,3,"div",7)(6,fv,3,3,"div",7),m(),S(7,gv,5,0,"div",8)(8,bv,3,2,"div",8),m(),S(9,wv,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}var Mv=["endTP"];function Dv(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function Cv(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function kv(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,Cv,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function Tv(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,Dv,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,kv,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function Ev(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function xv(e,t){if(e&1&&(_(0,"div",10),S(1,Ev,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function Lv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function Ov(e,t){if(e&1&&(_(0,"div",10),S(1,Lv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function Rv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function Iv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function Av(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function Yv(e,t){if(e&1&&(_(0,"div",19),S(1,Iv,3,7,"div",22)(2,Av,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function Pv(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function Hv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,Tv,5,4,"ng-container",6)(5,xv,3,3,"div",7)(6,Ov,3,3,"div",7),m(),S(7,Rv,5,0,"div",8)(8,Yv,3,2,"div",8),m(),S(9,Pv,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}function Nv(e,t){if(e&1){let n=T();_(0,"bs-days-calendar-view",13),X(1,"async"),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.dayHoverHandler(s))})("onHoverWeek",function(s){f(n);let r=c(3);return g(r.weekHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.daySelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)("isDisabled",i.isDatePickerDisabled)("options",Z(1,5,i.options$))}}function Vv(e,t){if(e&1&&z(0,"timepicker",15,1),e&2){let n=c(4);u("disabled",n.isDatePickerDisabled)}}function Fv(e,t){if(e&1&&(_(0,"div",14),z(1,"timepicker",15,0),S(3,Vv,2,1,"timepicker",16),m()),e&2){let n=c(3);d(),u("disabled",n.isDatePickerDisabled),d(2),u("ngIf",n.isRangePicker)}}function Bv(e,t){if(e&1&&(bt(0),_(1,"div",10),S(2,Nv,2,7,"bs-days-calendar-view",11),X(3,"async"),m(),S(4,Fv,4,2,"div",12),wt()),e&2){let n=c(2);d(2),u("ngForOf",Z(3,2,n.daysCalendar$)),d(2),u("ngIf",n.withTimepicker)}}function jv(e,t){if(e&1){let n=T();_(0,"bs-month-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.monthHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.monthSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function $v(e,t){if(e&1&&(_(0,"div",10),S(1,jv,1,3,"bs-month-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.monthsCalendar))}}function Wv(e,t){if(e&1){let n=T();_(0,"bs-years-calendar-view",18),b("onNavigate",function(s){f(n);let r=c(3);return g(r.navigateTo(s))})("onViewMode",function(s){f(n);let r=c(3);return g(r.setViewMode(s))})("onHover",function(s){f(n);let r=c(3);return g(r.yearHoverHandler(s))})("onSelect",function(s){f(n);let r=c(3);return g(r.yearSelectHandler(s))}),m()}if(e&2){let n=t.$implicit,i=c(3);L("bs-datepicker-multiple",i.multipleCalendars),u("calendar",n)}}function Uv(e,t){if(e&1&&(_(0,"div",10),S(1,Wv,1,3,"bs-years-calendar-view",17),X(2,"async"),m()),e&2){let n=c(2);d(),u("ngForOf",Z(2,1,n.yearsCalendar))}}function zv(e,t){e&1&&(_(0,"div",19)(1,"button",20),D(2,"Apply"),m(),_(3,"button",21),D(4,"Cancel"),m()())}function Gv(e,t){if(e&1){let n=T();_(0,"div",24)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.setToday())}),D(2),m()()}if(e&2){let n=c(3);L("today-left",n.todayPos==="left")("today-right",n.todayPos==="right")("today-center",n.todayPos==="center"),d(2),Me(n.todayBtnLbl)}}function Kv(e,t){if(e&1){let n=T();_(0,"div",26)(1,"button",25),b("click",function(){f(n);let s=c(3);return g(s.clearDate())}),D(2),m()()}if(e&2){let n=c(3);L("clear-left",n.clearPos==="left")("clear-right",n.clearPos==="right")("clear-center",n.clearPos==="center"),d(2),Me(n.clearBtnLbl)}}function Xv(e,t){if(e&1&&(_(0,"div",19),S(1,Gv,3,7,"div",22)(2,Kv,3,7,"div",23),m()),e&2){let n=c(2);d(),u("ngIf",n.showTodayBtn),d(),u("ngIf",n.showClearBtn)}}function Zv(e,t){if(e&1){let n=T();_(0,"div",27)(1,"bs-custom-date-view",28),b("onSelect",function(s){f(n);let r=c(2);return g(r.setRangeOnCalendar(s))}),m()()}if(e&2){let n=c(2);d(),u("selectedRange",n.chosenRange)("ranges",n.customRanges)("customRangeLabel",n.customRangeBtnLbl)}}function Jv(e,t){if(e&1){let n=T();_(0,"div",3)(1,"div",4),b("@datepickerAnimation.done",function(){f(n);let s=c();return g(s.positionServiceEnable())}),_(2,"div",5),X(3,"async"),S(4,Bv,5,4,"ng-container",6)(5,$v,3,3,"div",7)(6,Uv,3,3,"div",7),m(),S(7,zv,5,0,"div",8)(8,Xv,3,2,"div",8),m(),S(9,Zv,2,3,"div",9),m()}if(e&2){let n=c();u("ngClass",n.containerClass),d(),u("@datepickerAnimation",n.animationState),d(),u("ngSwitch",Z(3,9,n.viewMode)),d(2),u("ngSwitchCase","day"),d(),u("ngSwitchCase","month"),d(),u("ngSwitchCase","year"),d(),u("ngIf",!1),d(),u("ngIf",n.showTodayBtn||n.showClearBtn),d(),u("ngIf",n.customRanges&&n.customRanges.length>0)}}var lt=(()=>{let t=class t{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Nh="220ms cubic-bezier(0, 0, 0.2, 1)",pr=Bn("datepickerAnimation",[jt("animated-down",_t({height:"*",overflow:"hidden"})),$t("* => animated-down",[_t({height:0,overflow:"hidden"}),Bt(Nh)]),jt("animated-up",_t({height:"*",overflow:"hidden"})),$t("* => animated-up",[_t({height:"*",overflow:"hidden"}),Bt(Nh)]),$t("* => unanimated",Bt("0s"))]),mr=class{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Ie,this.selectedTimeSub=new Ie}set minDate(t){this._effects?.setMinDate(t)}set maxDate(t){this._effects?.setMaxDate(t)}set daysDisabled(t){this._effects?.setDaysDisabled(t)}set datesDisabled(t){this._effects?.setDatesDisabled(t)}set datesEnabled(t){this._effects?.setDatesEnabled(t)}set isDisabled(t){this._effects?.setDisabled(t)}set dateCustomClasses(t){this._effects?.setDateCustomClasses(t)}set dateTooltipTexts(t){this._effects?.setDateTooltipTexts(t)}set daysCalendar$(t){this._daysCalendar$=t,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(n=>{this.multipleCalendars=!!n&&n.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(t){}navigateTo(t){}dayHoverHandler(t){}weekHoverHandler(t){}monthHoverHandler(t){}yearHoverHandler(t){}timeSelectHandler(t,n){}daySelectHandler(t){}monthSelectHandler(t){}yearSelectHandler(t){}setRangeOnCalendar(t){}setToday(){}clearDate(){}_stopPropagation(t){t.stopPropagation()}},te=(()=>{let t=class t{calculate(){return{type:t.CALCULATE}}format(){return{type:t.FORMAT}}flag(){return{type:t.FLAG}}select(i){return{type:t.SELECT,payload:i}}selectTime(i,s){return{type:t.SELECT_TIME,payload:{date:i,index:s}}}changeViewMode(i){return{type:t.CHANGE_VIEWMODE,payload:i}}navigateTo(i){return{type:t.NAVIGATE_TO,payload:i}}navigateStep(i){return{type:t.NAVIGATE_OFFSET,payload:i}}setOptions(i){return{type:t.SET_OPTIONS,payload:i}}selectRange(i){return{type:t.SELECT_RANGE,payload:i}}hoverDay(i){return{type:t.HOVER,payload:i.isHovered?i.cell.date:null}}minDate(i){return{type:t.SET_MIN_DATE,payload:i}}maxDate(i){return{type:t.SET_MAX_DATE,payload:i}}daysDisabled(i){return{type:t.SET_DAYSDISABLED,payload:i}}datesDisabled(i){return{type:t.SET_DATESDISABLED,payload:i}}datesEnabled(i){return{type:t.SET_DATESENABLED,payload:i}}isDisabled(i){return{type:t.SET_IS_DISABLED,payload:i}}setDateCustomClasses(i){return{type:t.SET_DATE_CUSTOM_CLASSES,payload:i}}setDateTooltipTexts(i){return{type:t.SET_DATE_TOOLTIP_TEXTS,payload:i}}setLocale(i){return{type:t.SET_LOCALE,payload:i}}};t.CALCULATE="[datepicker] calculate dates matrix",t.FORMAT="[datepicker] format datepicker values",t.FLAG="[datepicker] set flags",t.SELECT="[datepicker] select date",t.NAVIGATE_OFFSET="[datepicker] shift view date",t.NAVIGATE_TO="[datepicker] change view date",t.SET_OPTIONS="[datepicker] update render options",t.HOVER="[datepicker] hover date",t.CHANGE_VIEWMODE="[datepicker] switch view mode",t.SET_MIN_DATE="[datepicker] set min date",t.SET_MAX_DATE="[datepicker] set max date",t.SET_DAYSDISABLED="[datepicker] set days disabled",t.SET_DATESDISABLED="[datepicker] set dates disabled",t.SET_DATESENABLED="[datepicker] set dates enabled",t.SET_IS_DISABLED="[datepicker] set is disabled",t.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes",t.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts",t.SET_LOCALE="[datepicker] set datepicker locale",t.SELECT_TIME="[datepicker] select time",t.SELECT_RANGE="[daterangepicker] select dates range",t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),rs=(()=>{let t=class t{constructor(){this._defaultLocale="en",this._locale=new F(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(i){i!==this.currentLocale&&this._locale.next(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),Zt=(()=>{let t=class t{constructor(i,s){this._actions=i,this._localeService=s,this._subs=[]}init(i){return this._store=i,this}setValue(i){this._store?.dispatch(this._actions.select(i))}setRangeValue(i){this._store?.dispatch(this._actions.selectRange(i))}setMinDate(i){return this._store?.dispatch(this._actions.minDate(i)),this}setMaxDate(i){return this._store?.dispatch(this._actions.maxDate(i)),this}setDaysDisabled(i){return this._store?.dispatch(this._actions.daysDisabled(i)),this}setDatesDisabled(i){return this._store?.dispatch(this._actions.datesDisabled(i)),this}setDatesEnabled(i){return this._store?.dispatch(this._actions.datesEnabled(i)),this}setDisabled(i){return this._store?.dispatch(this._actions.isDisabled(i)),this}setDateCustomClasses(i){return this._store?.dispatch(this._actions.setDateCustomClasses(i)),this}setDateTooltipTexts(i){return this._store?.dispatch(this._actions.setDateTooltipTexts(i)),this}setOptions(i){let s=Object.assign({locale:this._localeService.currentLocale},i);return this._store?.dispatch(this._actions.setOptions(s)),this}setBindings(i){return this._store?(i.selectedTime=this._store.select(s=>s.selectedTime).pipe(re(s=>!!s)),i.daysCalendar$=this._store.select(s=>s.flaggedMonths).pipe(re(s=>!!s)),i.monthsCalendar=this._store.select(s=>s.flaggedMonthsCalendar).pipe(re(s=>!!s)),i.yearsCalendar=this._store.select(s=>s.yearsCalendarFlagged).pipe(re(s=>!!s)),i.viewMode=this._store.select(s=>s.view?.mode),i.options$=us([this._store.select(s=>s.showWeekNumbers),this._store.select(s=>s.displayMonths)]).pipe(Ve(s=>({showWeekNumbers:s[0],displayMonths:s[1]}))),this):this}setEventHandlers(i){return i.setViewMode=s=>{this._store?.dispatch(this._actions.changeViewMode(s))},i.navigateTo=s=>{this._store?.dispatch(this._actions.navigateStep(s.step))},i.dayHoverHandler=s=>{let r=s.cell;r.isOtherMonth||r.isDisabled||(this._store?.dispatch(this._actions.hoverDay(s)),r.isHovered=s.isHovered)},i.monthHoverHandler=s=>{s.cell.isHovered=s.isHovered},i.yearHoverHandler=s=>{s.cell.isHovered=s.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(i=>i.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(i=>i.monthsModel).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(i=>i.formattedMonths).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.selectedDate).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.selectedRange).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.yearsCalendarModel).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.hoveredDate).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.dateCustomClasses).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(i=>i.dateTooltipTexts).pipe(re(i=>!!i)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(i=>this._store?.dispatch(this._actions.setLocale(i)))),this):this}destroy(){for(let i of this._subs)i.unsubscribe()}};t.\u0275fac=function(s){return new(s||t)(N(te),N(rs))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),qv={width:7,height:6},Qv=1440*60*1e3;var ey={date:new Date,mode:"day"},Wh=Object.assign(new lt,{locale:"en",view:ey,selectedRange:[],selectedTime:[],monthViewOptions:qv});function ty(e,t){if(Wd(e,t.firstDayOfWeek))return e;let n=at(e),i=iy(n,t.firstDayOfWeek);return ye(e,{day:-i})}function iy(e,t){let n=Number(t);if(isNaN(n))return 0;if(n===0)return e;let i=e-n%7;return i<0?i+7:i}function fa(e,t,n){let i=t&&Gt(ts(e,"month"),t,"day"),s=n&&Ot(pt(e,"month"),n,"day");return i||s||!1}function ns(e,t,n){let i=t&&Gt(ts(e,"year"),t,"day"),s=n&&Ot(pt(e,"year"),n,"day");return i||s||!1}function va(e,t,n){return!t||!J(t)||!t.length?!1:n&&n==="year"&&!t[0].getDate()?t.some(i=>is(e,i,"year")):t.some(i=>is(e,i,"date"))}function ya(e,t,n){return!t||!J(t)||!t.length?!1:!t.some(i=>is(e,i,n||"date"))}function Uh(e,t=0){let n=e&&e.yearsCalendarModel&&e.yearsCalendarModel[t];return n?.years[0]&&n.years[0][0]&&n.years[0][0].date}function ny(e,t){return!e||!t||!e.length&&!e[0].value||e.forEach(n=>(!n||!n.value||n.value instanceof Date||!(n.value instanceof Array&&n.value.length)||(n.value=Gh(n.value,t)),e)),e}function zh(e,t){return!e||!t||e instanceof Array&&!e.length||e instanceof Date?e:Gh(e,t)}function Gh(e,t){return e instanceof Array?e.map(i=>i&&(Ot(i,t,"date")&&(i=t),i)):e}function Vh(e){return e&&Kh(e)}function Fh(e){return e?.length&&e.map(t=>t&&Kh(t)),e}function Kh(e){let t=new Date;return e.setMilliseconds(t.getMilliseconds()),e.setSeconds(t.getSeconds()),e.setMinutes(t.getMinutes()),e.setHours(t.getHours()),e}function ba(e,t){let n=e.initialDate,i=new Array(e.height);for(let s=0;s<e.height;s++){i[s]=new Array(e.width);for(let r=0;r<e.width;r++)i[s][r]=t(n),n=ye(n,e.shift)}return i}function ma(e,t){let n=$d(e),i=ty(n,t),s={width:t.width||0,height:t.height||0,initialDate:i,shift:{day:1}};return{daysMatrix:ba(s,o=>o),month:n}}function sy(e,t,n){return{month:e.month,monthTitle:$e(e.month,t.monthTitle,t.locale),yearTitle:$e(e.month,t.yearTitle,t.locale),weekNumbers:ry(e.daysMatrix,t.weekNumbers,t.locale),weekdays:oy(t.locale),weeks:e.daysMatrix.map((i,s)=>({days:i.map((r,o)=>({date:r,label:$e(r,t.dayLabel,t.locale),monthIndex:n,weekIndex:s,dayIndex:o}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function ry(e,t,n){return e.map(i=>i[0]?$e(i[0],t,n):"")}function oy(e){let t=Ce(e),n=t.weekdaysShort(),i=t.firstDayOfWeek();return[...n.slice(i),...n.slice(0,i)]}function ay(e,t){return e.weeks.forEach(n=>{n.days.forEach((i,s)=>{let r=!Li(i.date,e.month),o=!r&&Lt(i.date,t.hoveredDate),a=!r&&t.selectedRange&&Lt(i.date,t.selectedRange[0]),l=!r&&t.selectedRange&&Lt(i.date,t.selectedRange[1]),h=!r&&Lt(i.date,t.selectedDate)||a||l,p=!r&&t.selectedRange&&ly(i.date,t.selectedRange,t.hoveredDate),v=t.isDisabled||Gt(i.date,t.minDate,"day")||Ot(i.date,t.maxDate,"day")||lh(i.date,t.daysDisabled)||va(i.date,t.datesDisabled)||ya(i.date,t.datesEnabled),C=new Date,x=!r&&Lt(i.date,C),R=t.dateCustomClasses&&t.dateCustomClasses.map(G=>Lt(i.date,G.date)?G.classes:[]).reduce((G,We)=>G.concat(We),[]).join(" ")||"",j=t.dateTooltipTexts&&t.dateTooltipTexts.map(G=>Lt(i.date,G.date)?G.tooltipText:"").reduce((G,We)=>(G.push(We),G),[]).join(" ")||"",H=Object.assign({},i,{isOtherMonth:r,isHovered:o,isSelected:h,isSelectionStart:a,isSelectionEnd:l,isInRange:p,isDisabled:v,isToday:x,customClasses:R,tooltipText:j});(i.isOtherMonth!==H.isOtherMonth||i.isHovered!==H.isHovered||i.isSelected!==H.isSelected||i.isSelectionStart!==H.isSelectionStart||i.isSelectionEnd!==H.isSelectionEnd||i.isDisabled!==H.isDisabled||i.isInRange!==H.isInRange||i.customClasses!==H.customClasses||i.tooltipText!==H.tooltipText)&&(n.days[s]=H)})}),e.hideLeftArrow=t.isDisabled||!!t.monthIndex&&t.monthIndex>0&&t.monthIndex!==t.displayMonths,e.hideRightArrow=t.isDisabled||(!!t.monthIndex||t.monthIndex===0)&&!!t.displayMonths&&t.monthIndex<t.displayMonths&&t.monthIndex+1!==t.displayMonths,e.disableLeftArrow=fa(ye(e.month,{month:-1}),t.minDate,t.maxDate),e.disableRightArrow=fa(ye(e.month,{month:1}),t.minDate,t.maxDate),e}function ly(e,t,n){return!e||!t||!t[0]?!1:t[1]?e>t[0]&&e<=t[1]:n?e>t[0]&&e<=n:!1}function Bh(e,t){return t?e>=t:!0}var cy=4,dy=3,hy={month:1};function Xh(e,t){let n=pt(e,"year");return{months:ba({width:dy,height:cy,initialDate:n,shift:hy},r=>({date:r,label:$e(r,t.monthLabel,t.locale)})),monthTitle:"",yearTitle:$e(e,t.yearTitle,t.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}function uy(e,t){return e.months.forEach((n,i)=>{n.forEach((s,r)=>{let o,a=Li(s.date,t.hoveredMonth),l=t.isDisabled||va(s.date,t.datesDisabled)||ya(s.date,t.datesEnabled,"month")||fa(s.date,t.minDate,t.maxDate);!t.selectedDate&&t.selectedRange?(o=Li(s.date,t.selectedRange[0]),o||(o=Li(s.date,t.selectedRange[1]))):o=Li(s.date,t.selectedDate);let h=Object.assign(s,{isHovered:a,isDisabled:l,isSelected:o});(s.isHovered!==h.isHovered||s.isDisabled!==h.isDisabled||s.isSelected!==h.isSelected)&&(e.months[i][r]=h)})}),e.hideLeftArrow=!!t.monthIndex&&t.monthIndex>0&&t.monthIndex!==t.displayMonths,e.hideRightArrow=(!!t.monthIndex||t.monthIndex===0)&&(!!t.displayMonths||t.displayMonths===0)&&t.monthIndex<t.displayMonths&&t.monthIndex+1!==t.displayMonths,e.disableLeftArrow=ns(ye(e.months[0][0].date,{year:-1}),t.minDate,t.maxDate),e.disableRightArrow=ns(ye(e.months[0][0].date,{year:1}),t.minDate,t.maxDate),e}var wa=4,Sa=4,fr=wa*Sa,Zh=(Math.floor(fr/2)-1)*-1,_y={year:1};function Jh(e,t,n){let i=my(e,n),r=ba({width:Sa,height:wa,initialDate:i,shift:_y},a=>({date:a,label:$e(a,t.yearLabel,t.locale)})),o=py(r,t);return{years:r,monthTitle:"",yearTitle:o,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function my(e,t){return t&&e.getFullYear()>=t.getFullYear()&&e.getFullYear()<t.getFullYear()+fr?t:ye(e,{year:Zh})}function py(e,t){let n=$e(e[0][0].date,t.yearTitle,t.locale),i=$e(e[wa-1][Sa-1].date,t.yearTitle,t.locale);return`${n} - ${i}`}function fy(e,t){e.years.forEach((s,r)=>{s.forEach((o,a)=>{let l,h=Oi(o.date,t.hoveredYear),p=t.isDisabled||va(o.date,t.datesDisabled,"year")||ya(o.date,t.datesEnabled,"year")||ns(o.date,t.minDate,t.maxDate);!t.selectedDate&&t.selectedRange?(l=Oi(o.date,t.selectedRange[0]),l||(l=Oi(o.date,t.selectedRange[1]))):l=Oi(o.date,t.selectedDate);let v=Object.assign(o,{isHovered:h,isDisabled:p,isSelected:l});(o.isHovered!==v.isHovered||o.isDisabled!==v.isDisabled||o.isSelected!==v.isSelected)&&(e.years[r][a]=v)})}),e.hideLeftArrow=!!t.yearIndex&&t.yearIndex>0&&t.yearIndex!==t.displayMonths,e.hideRightArrow=!!t.yearIndex&&!!t.displayMonths&&t.yearIndex<t.displayMonths&&t.yearIndex+1!==t.displayMonths,e.disableLeftArrow=ns(ye(e.years[0][0].date,{year:-1}),t.minDate,t.maxDate);let n=e.years.length-1,i=e.years[n].length-1;return e.disableRightArrow=ns(ye(e.years[n][i].date,{year:1}),t.minDate,t.maxDate),e}function ga(e,t){!e||!isNaN(e.getTime())||(e.setHours(t.getHours()),e.setMinutes(t.getMinutes()),e.setSeconds(t.getSeconds()),e.setMilliseconds(t.getMilliseconds()))}function jh(e=Wh,t){switch(t.type){case te.CALCULATE:return gy(e);case te.FORMAT:return vy(e);case te.FLAG:return yy(e);case te.NAVIGATE_OFFSET:return by(e,t);case te.NAVIGATE_TO:{let n=t.payload;if(!e.view||!n.unit)return e;let i=Kd(e.view.date,n.unit),s,r;return Bh(n.viewMode,e.minMode)?(r=n.viewMode,s={view:{date:i,mode:r}}):(r=e.view.mode,s={selectedDate:i,view:{date:i,mode:r}}),Object.assign({},e,s)}case te.CHANGE_VIEWMODE:{if(!Bh(t.payload,e.minMode)||!e.view)return e;let n=e.view.date,i=t.payload;return Object.assign({},e,{view:{date:n,mode:i}})}case te.HOVER:return Object.assign({},e,{hoveredDate:t.payload});case te.SELECT:{if(!e.view)return e;let n={selectedDate:t.payload,view:e.view};if(Array.isArray(e.selectedTime)){let o=e.selectedTime[0];n.selectedDate&&o&&ga(n.selectedDate,o)}let i=e.view.mode,s=t.payload||e.view.date,r=pa(s,e.minDate,e.maxDate);return n.view={mode:i,date:r},Object.assign({},e,n)}case te.SELECT_TIME:{let{date:n,index:i}=t.payload,s=e.selectedTime?[...e.selectedTime]:[];return s[i]=n,Object.assign({},e,{selectedTime:s})}case te.SET_OPTIONS:{if(!e.view)return e;let n=t.payload,i=n.minMode?n.minMode:e.view.mode,s=xt(n.value)&&n.value||J(n.value)&&xt(n.value[0])&&n.value[0]||e.view.date,r=pa(s,n.minDate,n.maxDate);return n.view={mode:i,date:r},n.value&&(J(n.value)&&(n.selectedRange=n.value,n.selectedTime=n.value.map(o=>o)),n.value instanceof Date&&(n.selectedDate=n.value,n.selectedTime=[n.value])),Object.assign({},e,n)}case te.SELECT_RANGE:{if(!e.view)return e;let n={selectedRange:t.payload,view:e.view};n.selectedRange?.forEach((o,a)=>{if(Array.isArray(e.selectedTime)){let l=e.selectedTime[a];l&&ga(o,l)}});let i=e.view.mode,s=t.payload&&t.payload[0]||e.view.date,r=pa(s,e.minDate,e.maxDate);return n.view={mode:i,date:r},Object.assign({},e,n)}case te.SET_MIN_DATE:return Object.assign({},e,{minDate:t.payload});case te.SET_MAX_DATE:return Object.assign({},e,{maxDate:t.payload});case te.SET_IS_DISABLED:return Object.assign({},e,{isDisabled:t.payload});case te.SET_DATE_CUSTOM_CLASSES:return Object.assign({},e,{dateCustomClasses:t.payload});case te.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},e,{dateTooltipTexts:t.payload});default:return e}}function gy(e){if(!e.view)return e;let t;e.displayOneMonthRange&&qh(e.view.date,e.minDate,e.maxDate)?t=1:t=e.displayMonths||1;let n=e.view.date;if(e.view.mode==="day"&&e.monthViewOptions){e.showPreviousMonth&&e.selectedRange&&e.selectedRange.length===0&&(n=ye(n,{month:-1})),e.monthViewOptions.firstDayOfWeek=Ce(e.locale).firstDayOfWeek();let i=new Array(t);for(let s=0;s<t;s++)i[s]=ma(n,e.monthViewOptions),n=ye(n,{month:1});if(e.preventChangeToNextMonth&&e.flaggedMonths&&e.hoveredDate){let s=ma(e.view.date,e.monthViewOptions);e.flaggedMonths.length&&e.flaggedMonths[1].month.getMonth()===s.month.getMonth()&&(i=e.flaggedMonths.map(r=>e.monthViewOptions?ma(r.month,e.monthViewOptions):null).filter(r=>r!==null))}return Object.assign({},e,{monthsModel:i})}if(e.view.mode==="month"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Xh(n,ss(e)),n=ye(n,{year:1});return Object.assign({},e,{monthsCalendar:i})}if(e.view.mode==="year"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Jh(n,ss(e),e.minMode==="year"?Uh(e,s):void 0),n=ye(n,{year:fr});return Object.assign({},e,{yearsCalendarModel:i})}return e}function vy(e){if(!e.view)return e;if(e.view.mode==="day"&&e.monthsModel){let i=e.monthsModel.map((s,r)=>sy(s,ss(e),r));return Object.assign({},e,{formattedMonths:i})}let t=e.displayMonths||1,n=e.view.date;if(e.view.mode==="month"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Xh(n,ss(e)),n=ye(n,{year:1});return Object.assign({},e,{monthsCalendar:i})}if(e.view.mode==="year"){let i=new Array(t);for(let s=0;s<t;s++)i[s]=Jh(n,ss(e)),n=ye(n,{year:16});return Object.assign({},e,{yearsCalendarModel:i})}return e}function yy(e){if(!e.view)return e;let t=qh(e.view.date,e.minDate,e.maxDate)?1:e.displayMonths;if(e.formattedMonths&&e.view.mode==="day"){let n=e.formattedMonths.map((i,s)=>ay(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,daysDisabled:e.daysDisabled,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,hoveredDate:e.hoveredDate,selectedDate:e.selectedDate,selectedRange:e.selectedRange,displayMonths:t,dateCustomClasses:e.dateCustomClasses,dateTooltipTexts:e.dateTooltipTexts,monthIndex:s}));return Object.assign({},e,{flaggedMonths:n})}if(e.view.mode==="month"&&e.monthsCalendar){let n=e.monthsCalendar.map((i,s)=>uy(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredMonth:e.hoveredMonth,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:t,monthIndex:s}));return Object.assign({},e,{flaggedMonthsCalendar:n})}if(e.view.mode==="year"&&e.yearsCalendarModel){let n=e.yearsCalendarModel.map((i,s)=>fy(i,{isDisabled:e.isDisabled,minDate:e.minDate,maxDate:e.maxDate,hoveredYear:e.hoveredYear,selectedDate:e.selectedDate,datesDisabled:e.datesDisabled,datesEnabled:e.datesEnabled,selectedRange:e.selectedRange,displayMonths:t,yearIndex:s}));return Object.assign({},e,{yearsCalendarFlagged:n})}return e}function by(e,t){if(!e.view)return e;let n=wy(e,t);if(!n)return e;let i={view:{mode:e.view.mode,date:n}};return Object.assign({},e,i)}function wy(e,t){if(e.view){if(e.view.mode==="year"&&e.minMode==="year"){let n=Uh(e,0);if(n){let i=ye(n,{year:-Zh});return ye(i,t.payload)}}return ye(pt(e.view.date,"month"),t.payload)}}function ss(e){return{locale:e.locale,monthTitle:e.monthTitle,yearTitle:e.yearTitle,dayLabel:e.dayLabel,monthLabel:e.monthLabel,yearLabel:e.yearLabel,weekNumbers:e.weekNumbers}}function pa(e,t,n){let i=Array.isArray(e)?e[0]:e;return t&&Ot(t,i,"day")?t:n&&Gt(n,i,"day")?n:i}function qh(e,t,n){return n&&is(n,e,"day")?!0:t&&n&&t.getMonth()===n.getMonth()}var Jt=(()=>{let t=class t extends _n{constructor(){let i=new F({type:"[datepicker] dispatcher init"}),s=new un(Wh,i,jh);super(i,jh,s)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),gr=(()=>{let t=class t{constructor(){this.onSelect=new E}selectFromRanges(i){this.onSelect.emit(i)}compareRanges(i){return JSON.stringify(i?.value)===JSON.stringify(this.selectedRange)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(s,r){s&1&&(_(0,"div",0),S(1,Eg,2,3,"button",1),m()),s&2&&(d(),u("ngForOf",r.ranges))},dependencies:[Mt],encapsulation:2,changeDetection:0});let e=t;return e})(),vn=(function(e){return e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e})(vn||{}),Ma=(()=>{let t=class t{constructor(){this.isDisabled=!1,this.onNavigate=new E,this.onViewMode=new E}navTo(i){this.onNavigate.emit(i?vn.DOWN:vn.UP)}view(i){this.isDisabled||this.onViewMode.emit(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"click","disabled"],[4,"ngIf"],["type","button",1,"current",3,"click","disabled"],["type","button",1,"next",3,"click","disabled"]],template:function(s,r){s&1&&(_(0,"button",0),b("click",function(){return r.navTo(!0)}),_(1,"span"),D(2,"\u2039"),m()(),S(3,xg,5,2,"ng-container",1),D(4," \u200B "),_(5,"button",2),b("click",function(){return r.view("year")}),_(6,"span"),D(7),m()(),D(8," \u200B "),_(9,"button",3),b("click",function(){return r.navTo(!1)}),_(10,"span"),D(11,"\u203A"),m()()),s&2&&(St("visibility",r.calendar.hideLeftArrow?"hidden":"visible"),u("disabled",r.calendar.disableLeftArrow),d(3),u("ngIf",r.calendar&&r.calendar.monthTitle),d(2),u("disabled",r.isDisabled),d(2),Me(r.calendar.yearTitle),d(2),St("visibility",r.calendar.hideRightArrow?"hidden":"visible"),u("disabled",r.calendar.disableRightArrow))},dependencies:[Fe],encapsulation:2,changeDetection:0});let e=t;return e})(),Sy=(()=>{let t=class t{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(s,r){s&1&&(dt(0,"div",0)(1,"div",1)(2,"button",2),D(3,"-"),ht(),oi(4,"input",3),dt(5,"button",4),D(6,"+"),ht()(),dt(7,"div",1)(8,"button",2),D(9,"-"),ht(),oi(10,"input",3),dt(11,"button",4),D(12,"+"),ht()(),dt(13,"button",5),D(14),oi(15,"img",6),ht()()),s&2&&(d(4),Ir("value",r.hours),d(6),Ir("value",r.minutes),d(4),ke("",r.ampm," "))},encapsulation:2});let e=t;return e})(),My=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(s,r){s&1&&(dt(0,"div",0)(1,"span"),D(2),ht()()),s&2&&(d(2),Me(r.title))},encapsulation:2});let e=t;return e})(),Da=(()=>{let t=class t{};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-calendar-layout"]],ngContentSelectors:Og,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(s,r){s&1&&(ai(Lg),S(0,Rg,1,0,"bs-current-date",0),_(1,"div",1),Yt(2),m(),_(3,"div",2),Yt(4,1),m(),S(5,Ig,1,0,"bs-timepicker",3)),s&2&&(u("ngIf",!1),d(5),u("ngIf",!1))},dependencies:[Fe,My,Sy],encapsulation:2});let e=t;return e})(),vr=(()=>{let t=class t{constructor(){this.onNavigate=new E,this.onViewMode=new E,this.onSelect=new E,this.onHover=new E}navigateTo(i){let s=vn.DOWN===i?-1:1;this.onNavigate.emit({step:{year:s*fr}})}viewYear(i){this.onSelect.emit(i)}hoverYear(i,s){this.onHover.emit({cell:i,isHovered:s})}changeViewMode(i){this.onViewMode.emit(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(s,r){s&1&&(_(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),b("onNavigate",function(a){return r.navigateTo(a)})("onViewMode",function(a){return r.changeViewMode(a)}),m(),_(2,"table",1)(3,"tbody"),S(4,Yg,2,1,"tr",2),m()()()),s&2&&(d(),u("calendar",r.calendar),d(3),u("ngForOf",r.calendar==null?null:r.calendar.years))},dependencies:[Da,Ma,Mt],encapsulation:2});let e=t;return e})(),yr=(()=>{let t=class t{constructor(){this.onNavigate=new E,this.onViewMode=new E,this.onSelect=new E,this.onHover=new E}navigateTo(i){let s=vn.DOWN===i?-1:1;this.onNavigate.emit({step:{year:s}})}viewMonth(i){this.onSelect.emit(i)}hoverMonth(i,s){this.onHover.emit({cell:i,isHovered:s})}changeViewMode(i){this.onViewMode.emit(i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=U({type:t,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"onNavigate","onViewMode","calendar"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(s,r){s&1&&(_(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),b("onNavigate",function(a){return r.navigateTo(a)})("onViewMode",function(a){return r.changeViewMode(a)}),m(),_(2,"table",1)(3,"tbody"),S(4,Hg,2,1,"tr",2),m()()()),s&2&&(d(),u("calendar",r.calendar),d(3),u("ngForOf",r.calendar==null?null:r.calendar.months))},dependencies:[Da,Ma,Mt],encapsulation:2});let e=t;return e})(),Dy=(()=>{let t=class t{constructor(i,s,r){this._config=i,this._elRef=s,this._renderer=r,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),typeof this.day?.customClasses=="string"&&this.day?.customClasses.split(" ").filter(i=>i).forEach(i=>{this._renderer.addClass(this._elRef.nativeElement,i)})}};t.\u0275fac=function(s){return new(s||t)(y(lt),y(B),y(we))},t.\u0275cmp=U({type:t,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(s,r){s&2&&L("disabled",r.day.isDisabled)("is-highlighted",r.day.isHovered)("is-other-month",r.day.isOtherMonth)("is-active-other-month",r.day.isOtherMonthHovered)("in-range",r.day.isInRange)("select-start",r.day.isSelectionStart)("select-end",r.day.isSelectionEnd)("selected",r.day.isSelected)},inputs:{day:"day"},attrs:Ng,decls:1,vars:1,template:function(s,r){s&1&&D(0),s&2&&Me(r.day&&r.day.label||"")},encapsulation:2,changeDetection:0});let e=t;return e})(),os=(()=>{let t=class t{constructor(i){this._config=i,this.onNavigate=new E,this.onViewMode=new E,this.onSelect=new E,this.onHover=new E,this.onHoverWeek=new E,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(i){let s=vn.DOWN===i?-1:1;this.onNavigate.emit({step:{month:s}})}changeViewMode(i){this.onViewMode.emit(i)}selectDay(i){this.onSelect.emit(i)}selectWeek(i){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||i.days.length===0)return;if(this._config.selectWeek&&i.days[0]&&!i.days[0].isDisabled&&this._config.selectFromOtherMonth){this.onSelect.emit(i.days[0]);return}let s=i.days.find(r=>(this._config.selectFromOtherMonth||!r.isOtherMonth)&&!r.isDisabled);if(this.onSelect.emit(s),this._config.selectWeekDateRange){let o=i.days.slice(0).reverse().find(a=>(this._config.selectFromOtherMonth||!a.isOtherMonth)&&!a.isDisabled);this.onSelect.emit(o)}}weekHoverHandler(i,s){if(!this._config.selectWeek&&!this._config.selectWeekDateRange)return;i.days.find(o=>(this._config.selectFromOtherMonth||!o.isOtherMonth)&&!o.isDisabled)&&(i.isHovered=s,this.isWeekHovered=s,this.onHoverWeek.emit(i))}hoverDay(i,s){this._config.selectFromOtherMonth&&i.isOtherMonth&&(i.isOtherMonthHovered=s),this._config.dateTooltipTexts&&(i.tooltipText="",this._config.dateTooltipTexts.forEach(r=>{if(Lt(r.date,i.date)){i.tooltipText=r.tooltipText;return}})),this.onHover.emit({cell:i,isHovered:s})}};t.\u0275fac=function(s){return new(s||t)(y(lt))},t.\u0275cmp=U({type:t,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"onNavigate","onViewMode","calendar","isDisabled"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day","tooltip"],["bsDatepickerDayDecorator","",3,"click","mouseenter","mouseleave","day"],["bsDatepickerDayDecorator","",3,"click","day"]],template:function(s,r){s&1&&(_(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),b("onNavigate",function(a){return r.navigateTo(a)})("onViewMode",function(a){return r.changeViewMode(a)}),m(),_(2,"table",1)(3,"thead")(4,"tr"),S(5,Vg,1,0,"th",2)(6,Fg,2,1,"th",3),m()(),_(7,"tbody"),S(8,Kg,3,2,"tr",4),m()()()),s&2&&(d(),u("calendar",r.calendar)("isDisabled",!!r.isDisabled),d(4),u("ngIf",r.options&&r.options.showWeekNumbers),d(),u("ngForOf",r.calendar.weekdays),d(2),u("ngForOf",r.calendar.weeks))},dependencies:[Da,Ma,Fe,Mt,Dy,qr,hc],encapsulation:2});let e=t;return e})(),Ca=(()=>{let t=class t extends mr{set value(i){this._effects?.setValue(i)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(),this._config=s,this._store=r,this._element=o,this._actions=a,this._positionService=h,this.valueChange=new E,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=l,i.setStyle(o.nativeElement,"display","block"),i.setStyle(o.nativeElement,"position","absolute")}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(wn(1)).subscribe(()=>{if(this._positionService.disable(),this._config.isAnimated){this.animationState=this.isTopPosition?"animated-up":"animated-down";return}this.animationState="unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects();let i;this._subs.push(this._store.select(s=>s.selectedDate).subscribe(s=>{i=s,this.valueChange.emit(s)})),this._subs.push(this._store.select(s=>s.selectedTime).subscribe(s=>{!s||!s[0]||!(s[0]instanceof Date)||s[0]===i||this.valueChange.emit(s[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(i=>{Array.isArray(i)&&i.length>=1&&this.startTimepicker?.writeValue(i[0])})),this.startTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(i,s){this._store.dispatch(this._actions.selectTime(i,s))}daySelectHandler(i){!i||(this.isOtherMonthsActive?i.isDisabled:i.isOtherMonth||i.isDisabled)||this._store.dispatch(this._actions.select(i.date))}monthSelectHandler(i){!i||i.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:V(i.date),year:fe(i.date)},viewMode:"day"}))}yearSelectHandler(i){!i||i.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:fe(i.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(let i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-datepicker-container"]],viewQuery:function(s,r){if(s&1&&li($h,5),s&2){let o;Pt(o=Ht())&&(r.startTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[ue([Jt,Zt,te]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,lv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})(),gn,Cy=(()=>{let t=class t{get readonlyValue(){return this.isDisabled?"":null}constructor(i,s,r,o,a){this._config=i,this._elementRef=s,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new I,this.isDisabled=!1,this.bsValueChange=new E,this._subs=[],this._dateInputFormat$=new I,Object.assign(this,this._config),this._datepicker=a.createLoader(s,o,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new F(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(i){this.isOpen$.next(i)}set bsValue(i){this._bsValue&&i&&this._bsValue.getTime()===i.getTime()||(!this._bsValue&&i&&!this._config.withTimepicker&&ga(i,new Date),i&&this.bsConfig?.initCurrentTime&&(i=Vh(i)),this.initPreviousValue(),this._bsValue=i,this.bsValueChange.emit(i))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){gn=this._bsValue}ngOnChanges(i){i.bsConfig&&(i.bsConfig.currentValue?.initCurrentTime&&i.bsConfig.currentValue?.initCurrentTime!==i.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Vh(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),!(!this._datepickerRef||!this._datepickerRef.instance)&&(i.minDate&&(this._datepickerRef.instance.minDate=this.minDate),i.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),i.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),i.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),i.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),i.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),i.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),i.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(i=>{this._datepickerRef&&(this._datepickerRef.instance.value=i)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(i=>{this.initPreviousValue(),this.bsValue=i,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!gn||!this.bsConfig?.keepDatepickerOpened||!this._config.withTimepicker?!1:this.isDateSame()}isDateSame(){return gn instanceof Date&&this._bsValue?.getDate()===gn?.getDate()&&this._bsValue?.getMonth()===gn?.getMonth()&&this._bsValue?.getFullYear()===gn?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe(re(i=>i!==this.isOpen),Yi(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:lt,useValue:this._config}).attach(Ca).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(let i of this._subs)i.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:zh(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(i=>i.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}};t.\u0275fac=function(s){return new(s||t)(y(lt),y(B),y(we),y(yt),y(Ue))},t.\u0275dir=Se({type:t,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(s,r){s&2&&K("readonly",r.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",ignoreMinMaxErrors:"ignoreMinMaxErrors",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[ue([Ue,Ye]),vt]});let e=t;return e})();var ky=(()=>{let t=class t extends Ca{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(i,s,r,o,a,l,h),i.setStyle(o.nativeElement,"display","inline-block"),i.setStyle(o.nativeElement,"position","static")}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-datepicker-inline-container"]],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.disabledValue)("readonly",r.readonlyValue)},features:[ue([Jt,Zt]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,Sv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})();var ka=(()=>{let t=class t extends mr{set value(i){this._effects?.setRangeValue(i)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(),this._config=s,this._store=r,this._element=o,this._actions=a,this._positionService=h,this.valueChange=new E,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=l,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,i.setStyle(o.nativeElement,"display","block"),i.setStyle(o.nativeElement,"position","absolute")}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe(wn(1)).subscribe(()=>{if(this._positionService.disable(),this._config.isAnimated){this.animationState=this.isTopPosition?"animated-up":"animated-down";return}this.animationState="unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects();let i;this._subs.push(this._store.select(s=>s.selectedRange).subscribe(s=>{i=s,this.valueChange.emit(s),this.chosenRange=s||[]})),this._subs.push(this._store.select(s=>s.selectedTime).subscribe(s=>{!s||!s[0]||!s[1]||!(s[0]instanceof Date)||!(s[1]instanceof Date)||i&&s[0]===i[0]&&s[1]===i[1]||(this.valueChange.emit(s),this.chosenRange=s||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(i=>{Array.isArray(i)&&i.length>=2&&(this.startTimepicker?.writeValue(i[0]),this.endTimepicker?.writeValue(i[1]))})),this.startTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,0)}),this.endTimepicker?.registerOnChange(i=>{this.timeSelectHandler(i,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(i,s){this._store.dispatch(this._actions.selectTime(i,s))}daySelectHandler(i){!i||(this.isOtherMonthsActive?i.isDisabled:i.isOtherMonth||i.isDisabled)||this.rangesProcessing(i)}monthSelectHandler(i){if(!(!i||i.isDisabled)){if(i.isSelected=!0,this._config.minMode!=="month"){if(i.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{month:V(i.date),year:fe(i.date)},viewMode:"day"}));return}this.rangesProcessing(i)}}yearSelectHandler(i){if(!(!i||i.isDisabled)){if(i.isSelected=!0,this._config.minMode!=="year"){if(i.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{year:fe(i.date)},viewMode:"month"}));return}this.rangesProcessing(i)}}rangesProcessing(i){this._rangeStack.length===1&&(this._rangeStack=i.date>=this._rangeStack[0]?[this._rangeStack[0],i.date]:[i.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(i.date),this._rangeStack.length===0&&(this._rangeStack=[i.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(i.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),this._rangeStack.length===2&&(this._rangeStack=[])}ngOnDestroy(){for(let i of this._subs)i.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(i){i&&(this._rangeStack=i.value instanceof Date?[i.value]:i.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(i){let s=new Date(i);if(this._config.maxDate){let r=this._config.maxDate.getTime(),o=i.getTime()+(this._config.maxDateRange||0)*Qv;s=o>r?new Date(this._config.maxDate):new Date(o)}else s.setDate(i.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(s)}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-daterangepicker-container"]],viewQuery:function(s,r){if(s&1&&(li($h,5),li(Mv,5)),s&2){let o;Pt(o=Ht())&&(r.startTimepicker=o.first),Pt(o=Ht())&&(r.endTimepicker=o.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.isDatepickerDisabled)("readonly",r.isDatepickerReadonly)},features:[ue([Jt,Zt,te]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,Hv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})(),Ty=(()=>{let t=class t extends ka{get disabledValue(){return this.isDatePickerDisabled?"":null}get readonlyValue(){return this.isDatePickerDisabled?"":null}constructor(i,s,r,o,a,l,h){super(i,s,r,o,a,l,h),i.setStyle(o.nativeElement,"display","inline-block"),i.setStyle(o.nativeElement,"position","static")}};t.\u0275fac=function(s){return new(s||t)(y(we),y(lt),y(Jt),y(B),y(te),y(Zt),y(Ye))},t.\u0275cmp=U({type:t,selectors:[["bs-daterangepicker-inline-container"]],hostVars:2,hostBindings:function(s,r){s&1&&b("click",function(a){return r._stopPropagation(a)}),s&2&&K("disabled",r.disabledValue)("readonly",r.readonlyValue)},features:[ue([Jt,Zt,te]),ri],decls:2,vars:3,consts:[["startTP",""],["endTP",""],["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"onNavigate","onViewMode","onHover","onHoverWeek","onSelect","calendar","isDisabled","options"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],[3,"disabled",4,"ngIf"],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"onNavigate","onViewMode","onHover","onSelect","calendar"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"onSelect","selectedRange","ranges","customRangeLabel"]],template:function(s,r){s&1&&(S(0,Jv,10,11,"div",2),X(1,"async")),s&2&&u("ngIf",Z(1,1,r.viewMode))},dependencies:[Fe,Sn,Mn,Dn,Mt,os,fn,pn,yr,vr,gr,Cn],encapsulation:2,data:{animation:[pr]}});let e=t;return e})();var Ey={provide:kn,useExisting:At(()=>Qh),multi:!0},xy={provide:Hr,useExisting:At(()=>Qh),multi:!0},Qh=(()=>{let t=class t{constructor(i,s,r,o,a){this._picker=i,this._localeService=s,this._renderer=r,this._elRef=o,this.changeDetection=a,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ie}onChange(i){this.writeValue(i.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}ngOnInit(){let i=s=>{this._setInputValue(s),this._value!==s&&(this._value=s,this._onChange(s),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&i(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(i)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe(Ai()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}_setInputValue(i){let s=i?$e(i,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",s)}validate(i){let s=i.value;if(s==null||s==="")return null;if(es(s)){if(!xt(s))return{bsDate:{invalid:s}};if(this._picker&&this._picker.minDate&&Gt(s,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Ot(s,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),this._picker.ignoreMinMaxErrors?null:{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(i){this._validatorChange=i}writeValue(i){if(!i)this._value=void 0;else{let s=this._localeService.currentLocale;if(!Ce(s))throw new Error(`Locale "${s}" is not defined, please add it with "defineLocale(...)"`);if(this._value=dn(i,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc){let o=la(this._value);this._value=o===null?void 0:o}}this._picker.bsValue=this._value}setDisabledState(i){if(this._picker.isDisabled=i,i){this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled");return}this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}};t.\u0275fac=function(s){return new(s||t)(y(Cy,1),y(rs),y(we),y(B),y(Fi))},t.\u0275dir=Se({type:t,selectors:[["input","bsDatepicker",""]],hostBindings:function(s,r){s&1&&b("change",function(a){return r.onChange(a)})("blur",function(){return r.onBlur()})("keyup.esc",function(){return r.hide()})("keydown.enter",function(){return r.hide()})},features:[ue([Ey,xy])]});let e=t;return e})(),Ly=(()=>{let t=class t extends lt{constructor(){super(...arguments),this.displayMonths=2}};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=Hi(t)))(r||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Xt,Oy=(()=>{let t=class t{get isOpen(){return this._datepicker.isShown}set isOpen(i){this.isOpen$.next(i)}set bsValue(i){this._bsValue!==i&&(i&&this.bsConfig?.initCurrentTime&&(i=Fh(i)),this.initPreviousValue(),this._bsValue=i,this.bsValueChange.emit(i))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(i,s,r,o,a){this._config=i,this._elementRef=s,this._renderer=r,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new I,this.isDisabled=!1,this.bsValueChange=new E,this._subs=[],this._rangeInputFormat$=new I,this._datepicker=a.createLoader(s,o,r),Object.assign(this,i),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new F(this.isOpen)}ngOnInit(){this.isDestroy$=new I,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(i){i.bsConfig&&(i.bsConfig.currentValue?.initCurrentTime&&i.bsConfig.currentValue?.initCurrentTime!==i.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Fh(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(i.bsConfig.currentValue&&i.bsConfig.currentValue.rangeInputFormat)),!(!this._datepickerRef||!this._datepickerRef.instance)&&(i.minDate&&(this._datepickerRef.instance.minDate=this.minDate),i.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),i.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),i.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),i.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),i.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),i.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe(re(i=>i!==this.isOpen),Yi(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:lt,useValue:this._config}).attach(ka).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(i=>{this._datepickerRef&&(this._datepickerRef.instance.value=i)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe(re(i=>i&&i[0]&&!!i[1])).subscribe(i=>{this.initPreviousValue(),this.bsValue=i,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){Xt=this._bsValue}keepDatepickerModalOpened(){return!Xt||!this.bsConfig?.keepDatepickerOpened||!this._config.withTimepicker?!1:this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===Xt?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===Xt?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===Xt?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===Xt?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===Xt?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===Xt?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:zh(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:ny(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(let i of this._subs)i.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(i=>i.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}};t.\u0275fac=function(s){return new(s||t)(y(Ly),y(B),y(we),y(yt),y(Ue))},t.\u0275dir=Se({type:t,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(s,r){s&2&&K("readonly",r.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[ue([Ue,Ye]),vt]});let e=t;return e})(),Ry={provide:kn,useExisting:At(()=>eu),multi:!0},Iy={provide:Hr,useExisting:At(()=>eu),multi:!0},eu=(()=>{let t=class t{constructor(i,s,r,o,a){this._picker=i,this._localeService=s,this._renderer=r,this._elRef=o,this.changeDetection=a,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ie}ngOnInit(){let i=s=>{this._setInputValue(s),this._value!==s&&(this._value=s,this._onChange(s),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&i(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(s=>{this._setInputValue(s),this._value!==s&&(this._value=s,this._onChange(s),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe(Ai()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(i){(i.keyCode===13||i.code==="Enter")&&this.hide()}_setInputValue(i){let s="";if(i){let r=i[0]?$e(i[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",o=i[1]?$e(i[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";s=r&&o?r+this._picker._config.rangeSeparator+o:""}this._renderer.setProperty(this._elRef.nativeElement,"value",s)}onChange(i){this.writeValue(i.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(i){let s=i.value,r=[];if(s==null||!J(s))return null;s=s.slice().sort((l,h)=>l.getTime()-h.getTime());let o=xt(s[0]),a=xt(s[1]);return o?a?(this._picker&&this._picker.minDate&&Gt(s[0],this._picker.minDate,"date")&&(s[0]=this._picker.minDate,r.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&Ot(s[1],this._picker.maxDate,"date")&&(s[1]=this._picker.maxDate,r.push({bsDate:{maxDate:this._picker.maxDate}})),r.length>0?(this.writeValue(s),r):null):{bsDate:{invalid:s[1]}}:{bsDate:{invalid:s[0]}}}registerOnValidatorChange(i){this._validatorChange=i}writeValue(i){if(!i)this._value=void 0;else{let s=this._localeService.currentLocale;if(!Ce(s))throw new Error(`Locale "${s}" is not defined, please add it with "defineLocale(...)"`);let o=[];if(typeof i=="string"){let a=this._picker._config.rangeSeparator.trim();i.replace(/[^-]/g,"").length>1?o=i.split(this._picker._config.rangeSeparator):o=i.split(a.length>0?a:this._picker._config.rangeSeparator).map(l=>l.trim())}Array.isArray(i)&&(o=i),this._value=o.map(a=>this._picker._config.useUtc?la(dn(a,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):dn(a,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(a=>isNaN(a.valueOf())?void 0:a)}this._picker.bsValue=this._value}setDisabledState(i){if(this._picker.isDisabled=i,i){this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled");return}this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}};t.\u0275fac=function(s){return new(s||t)(y(Oy,1),y(rs),y(we),y(B),y(Fi))},t.\u0275dir=Se({type:t,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(s,r){s&1&&b("change",function(a){return r.onChange(a)})("keyup.esc",function(){return r.hide()})("keydown",function(a){return r.onKeydownEvent(a)})("blur",function(){return r.onBlur()})},features:[ue([Ry,Iy])]});let e=t;return e})(),Lk=(()=>{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,qr,fn,os,Ca,ky,ka,Ty]});let e=t;return e})();var Ay={de:hh,en:uh,es:_h,fr:mh,hi:ph,it:fh,ja:gh,ko:vh,pl:yh,pt:da,"pt-BR":da,ru:bh,tr:wh,zh:Sh};function tu(e){let t=Ay[e];t&&dr(e.toLowerCase(),t)}var wr=Tn*365,Ta=wr/12,Yy=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,as={years:wr,months:Ta,days:Tn,hours:Ss,minutes:ji,seconds:ws,milliseconds:1,weeks:Ol},br=function(t){return t instanceof ru},nu,ft,cs=function(t,n,i){return new ru(t,i,n.$l)},ls=function(t){return ft.p(t)+"s"},su=function(t){return t<0},Ri=function(t){return su(t)?Math.ceil(t):Math.floor(t)},Py=function(t){return Math.abs(t)},yn=function(t,n){return t?su(t)?{negative:!0,format:""+Py(t)+n}:{negative:!1,format:""+t+n}:{negative:!1,format:""}},ru=(function(){function e(n,i,s){var r=this;if(this.$d={},this.$l=s,n===void 0&&(this.$ms=0,this.parseFromMilliseconds()),i)return cs(n*as[ls(i)],this);if(typeof n=="number")return this.$ms=n,this.parseFromMilliseconds(),this;if(typeof n=="object")return Object.keys(n).forEach(function(h){r.$d[ls(h)]=n[h]}),this.calMilliseconds(),this;if(typeof n=="string"){var o=n.match(Yy);if(o){var a=o.slice(2),l=a.map(function(h){return h!=null?Number(h):0});return this.$d.years=l[0],this.$d.months=l[1],this.$d.weeks=l[2],this.$d.days=l[3],this.$d.hours=l[4],this.$d.minutes=l[5],this.$d.seconds=l[6],this.calMilliseconds(),this}}return this}var t=e.prototype;return t.calMilliseconds=function(){var i=this;this.$ms=Object.keys(this.$d).reduce(function(s,r){return s+(i.$d[r]||0)*as[r]},0)},t.parseFromMilliseconds=function(){var i=this.$ms;this.$d.years=Ri(i/wr),i%=wr,this.$d.months=Ri(i/Ta),i%=Ta,this.$d.days=Ri(i/Tn),i%=Tn,this.$d.hours=Ri(i/Ss),i%=Ss,this.$d.minutes=Ri(i/ji),i%=ji,this.$d.seconds=Ri(i/ws),i%=ws,this.$d.milliseconds=i},t.toISOString=function(){var i=yn(this.$d.years,"Y"),s=yn(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=this.$d.weeks*7);var o=yn(r,"D"),a=yn(this.$d.hours,"H"),l=yn(this.$d.minutes,"M"),h=this.$d.seconds||0;this.$d.milliseconds&&(h+=this.$d.milliseconds/1e3,h=Math.round(h*1e3)/1e3);var p=yn(h,"S"),v=i.negative||s.negative||o.negative||a.negative||l.negative||p.negative,C=a.format||l.format||p.format?"T":"",x=v?"-":"",R=x+"P"+i.format+s.format+o.format+C+a.format+l.format+p.format;return R==="P"||R==="-P"?"P0D":R},t.toJSON=function(){return this.toISOString()},t.format=function(i){var s=i||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:ft.s(this.$d.years,2,"0"),YYYY:ft.s(this.$d.years,4,"0"),M:this.$d.months,MM:ft.s(this.$d.months,2,"0"),D:this.$d.days,DD:ft.s(this.$d.days,2,"0"),H:this.$d.hours,HH:ft.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:ft.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:ft.s(this.$d.seconds,2,"0"),SSS:ft.s(this.$d.milliseconds,3,"0")};return s.replace(Nl,function(o,a){return a||String(r[o])})},t.as=function(i){return this.$ms/as[ls(i)]},t.get=function(i){var s=this.$ms,r=ls(i);return r==="milliseconds"?s%=1e3:r==="weeks"?s=Ri(s/as[r]):s=this.$d[r],s||0},t.add=function(i,s,r){var o;return s?o=i*as[ls(s)]:br(i)?o=i.$ms:o=cs(i,this).$ms,cs(this.$ms+o*(r?-1:1),this)},t.subtract=function(i,s){return this.add(i,s,!0)},t.locale=function(i){var s=this.clone();return s.$l=i,s},t.clone=function(){return cs(this.$ms,this)},t.humanize=function(i){return nu().add(this.$ms,"ms").locale(this.$l).fromNow(!i)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},e})(),iu=function(t,n,i){return t.add(n.years()*i,"y").add(n.months()*i,"M").add(n.days()*i,"d").add(n.hours()*i,"h").add(n.minutes()*i,"m").add(n.seconds()*i,"s").add(n.milliseconds()*i,"ms")},ou=(function(e,t,n){nu=n,ft=n().$utils(),n.duration=function(r,o){var a=n.locale();return cs(r,{$l:a},o)},n.isDuration=br;var i=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(r,o){return br(r)?iu(this,r,1):i.bind(this)(r,o)},t.prototype.subtract=function(r,o){return br(r)?iu(this,r,-1):s.bind(this)(r,o)}});var Hy=function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n,i,s){return i||s.slice(1)})},Ea={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"},au=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,s,r){var o=r&&r.toUpperCase();return s||n[r]||Ea[r]||Hy(n[o])})};var lu=(function(e,t,n){var i=t.prototype,s=i.format;n.en.formats=Ea,i.format=function(r){r===void 0&&(r=Hl);var o=this.$locale(),a=o.formats,l=a===void 0?{}:a,h=au(r,l);return s.call(this,h)}});var cu=(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"};n.en.relativeTime=s,i.fromToBase=function(a,l,h,p,v){for(var C=h.$locale().relativeTime||s,x=e.thresholds||[{l:"s",r:44,d:Rl},{l:"m",r:89},{l:"mm",r:44,d:En},{l:"h",r:89},{l:"hh",r:21,d:Il},{l:"d",r:35},{l:"dd",r:25,d:Al},{l:"M",r:45},{l:"MM",r:10,d:Yl},{l:"y",r:17},{l:"yy",d:Pl}],R=x.length,j,H,G,We=0;We<R;We+=1){var It=x[We];It.d&&(j=p?n(a).diff(h,It.d,!0):h.diff(a,It.d,!0));var Ii=(e.rounding||Math.round)(Math.abs(j));if(G=j>0,Ii<=It.r||!It.r){Ii<=1&&We>0&&(It=x[We-1]);var Dr=C[It.l];v&&(Ii=v(""+Ii)),typeof Dr=="string"?H=Dr.replace("%d",Ii):H=Dr(Ii,l,It.l,G);break}}if(l)return H;var Cr=G?C.future:C.past;return typeof Cr=="function"?Cr(H):Cr.replace("%s",H)};function r(a,l,h,p){return i.fromToBase(a,l,h,p)}i.to=function(a,l){return r(a,l,this,!0)},i.from=function(a,l){return r(a,l,this)};var o=function(l){return l.$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 Ny=/[+-]\d\d(?::?\d\d)?/g,Vy=/([+-]|\d\d)/g;function Fy(e){e===void 0&&(e="");var t=e.match(Ny);if(!t)return null;var n=(""+t[0]).match(Vy)||["-",0,0],i=n[0],s=n[1],r=n[2],o=+s*60+ +r;return o===0?0:i==="+"?o:-o}var du=(function(e,t,n){var i=t.prototype;n.utc=function(v){var C={date:v,utc:!0,args:arguments};return new t(C)},i.utc=function(v){var C=n(this.toDate(),{locale:this.$L,utc:!0});return v?C.add(this.utcOffset(),En):C},i.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),s.call(this,v)};var r=i.init;i.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 r.call(this)};var o=i.utcOffset;i.utcOffset=function(v,C){var x=this.$utils(),R=x.u;if(R(v))return this.$u?0:R(this.$offset)?o.call(this):this.$offset;if(typeof v=="string"&&(v=Fy(v),v===null))return this;var j=Math.abs(v)<=16?v*60:v;if(j===0)return this.utc(C);var H=this.clone();if(C)return H.$offset=j,H.$u=!1,H;var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return H=this.local().add(j+G,En),H.$offset=j,H.$x.$localOffset=G,H};var a=i.format,l="YYYY-MM-DDTHH:mm:ss[Z]";i.format=function(v){var C=v||(this.$u?l:"");return a.call(this,C)},i.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-v*ji},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var h=i.toDate;i.toDate=function(v){return v==="s"&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var p=i.diff;i.diff=function(v,C,x){if(v&&this.$u===v.$u)return p.call(this,v,C,x);var R=this.local(),j=n(v).local();return p.call(R,j,C,x)}});hi.extend(cu);hi.extend(lu);hi.extend(du);hi.extend(ou);var By={de:()=>import("./chunk-LRDKG274.js"),en:()=>import("./chunk-R7JRAR3P.js"),es:()=>import("./chunk-XCPDPB5G.js"),fr:()=>import("./chunk-Q7IXRPOO.js"),hi:()=>import("./chunk-Y4MAPE2C.js"),it:()=>import("./chunk-ZQLBPLXI.js"),ja:()=>import("./chunk-GOJYWL2M.js"),ko:()=>import("./chunk-PSUAQBYM.js"),pl:()=>import("./chunk-Y5XTRCFK.js"),pt:()=>import("./chunk-H6ZXFINQ.js"),"pt-BR":()=>import("./chunk-V43RGNXA.js"),ru:()=>import("./chunk-MGWG7OD7.js"),tr:()=>import("./chunk-DIC2MVRI.js"),zh:()=>import("./chunk-STA7NTYL.js")};function hu(e){return bn(this,null,function*(){let t=By[e];t&&(yield t(),hi.locale(e))})}var jy=xa({"./de.json":()=>import("./chunk-XKEBQNQJ.js"),"./en.json":()=>import("./chunk-LUSVISM6.js"),"./es.json":()=>import("./chunk-NAH4V2R6.js"),"./fr.json":()=>import("./chunk-DRHPEERW.js"),"./hi.json":()=>import("./chunk-VZPCXSRG.js"),"./it.json":()=>import("./chunk-BSB4VROD.js"),"./ja.json":()=>import("./chunk-SRBOO7AO.js"),"./ko.json":()=>import("./chunk-5WCQBTXW.js"),"./pl.json":()=>import("./chunk-42L6C5MT.js"),"./pt-BR.json":()=>import("./chunk-DHFQIFOF.js"),"./pt.json":()=>import("./chunk-PCFH5HCI.js"),"./ru.json":()=>import("./chunk-FCGTI42I.js"),"./tr.json":()=>import("./chunk-LZKI5P5T.js"),"./zh.json":()=>import("./chunk-ITVA26X2.js")});var uu="language-region",Sr="locale",_u="en",mu={[On]:"Auto",de:"Deutsch",en:"English",es:"Espa\xF1ol",fr:"Fran\xE7ais",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",it:"Italiano",ja:"\u65E5\u672C\u8A9E",ko:"\uD55C\uAD6D\uC5B4",pl:"Polski",pt:"Portugu\xEAs","pt-BR":"Portugu\xEAs (Brasil)",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",tr:"T\xFCrk\xE7e",zh:"\u4E2D\u6587\uFF08\u7B80\u4F53) "},hT={format:uu,providers:[{name:"app",asset:"app"}],fallback:!1,cache:!0,keySeparator:"|",defaultLocale:{language:_u},schema:[{locale:{language:"de"},dir:"ltr"},{locale:{language:"en"},dir:"ltr"},{locale:{language:"es"},dir:"ltr"},{locale:{language:"fr"},dir:"ltr"},{locale:{language:"hi"},dir:"ltr"},{locale:{language:"it"},dir:"ltr"},{locale:{language:"ja"},dir:"ltr"},{locale:{language:"ko"},dir:"ltr"},{locale:{language:"pl"},dir:"ltr"},{locale:{language:"pt"},dir:"ltr"},{locale:{language:"pt-BR"},dir:"ltr"},{locale:{language:"ru"},dir:"ltr"},{locale:{language:"tr"},dir:"ltr"},{locale:{language:"zh"},dir:"ltr"}]};function Mr(){return{language:ad(ol(uu))}}var uT=(()=>{let t=class t{constructor(){this.hasStorage=typeof Storage<"u"}read(){return bn(this,null,function*(){if(!this.hasStorage)return Mr();let i=null,s=sessionStorage.getItem(Sr);if(s)try{i=JSON.parse(s)}catch(a){console.warn("Invalid locale in sessionStorage, resetting.",a),sessionStorage.removeItem(Sr)}let r=i?.language;return!!r&&jn.has(r)?i:(sessionStorage.removeItem(Sr),Mr())})}write(i){return bn(this,null,function*(){if(this.hasStorage)try{let s=JSON.stringify(i);sessionStorage.setItem(Sr,s)}catch(s){console.warn("Failed to write locale to sessionStorage:",s)}})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_T=(()=>{let t=class t{constructor(){this.bsLocale=M(rs)}get(i){if(i&&jn.has(i))hu(i).catch(console.error),tu(i),this.bsLocale.use(i.toLowerCase());else return ii({});return hs(jy(`./${i}.json`)).pipe(Ve(s=>s?.default??s??{}),Ha(()=>ii({})))}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let e=t;return e})(),mT=(()=>{let t=class t{constructor(){this.locale=M(rl)}handle(i,s,r){return this.locale.language.startsWith(_u)?i:(console.error("translation missing: ",i,s,r,this.locale),i??"no translation")}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let e=t;return e})();var fu="Sync-in";var gu="1.9.1";var vu=fu,wT=gu,ST={BASE:""},MT={title:"NAVIGATION",icon:ul,link:"",level:0,submenus:[]};var Re={SERVER:{AUTHENTICATION:"server-authentication",AUTHENTICATION_FAILED:"server-authentication-failed",AUTHENTICATION_TOKEN_UPDATE:"server-authentication-token-update",AUTHENTICATION_TOKEN_EXPIRED:"server-authentication-token-expired"},SYNC:{PATH_OPERATION:"sync-path-operation",TASKS_COUNT:"sync-tasks-count",STATUS:"core-sync-status",ERRORS:"sync-errors",TRANSFER:"sync-transfer",REPORT_TRANSFER:"sync-report-transfer",TRANSFER_LOGS:"sync-transfer-logs",SCHEDULER_STATE:"sync-scheduler-state"},APPLICATIONS:{MSG:"applications-msg",COUNTER:"applications-counter"},MISC:{DIALOG_OPEN:"dialog-open",URL_OPEN:"url-open",FILE_OPEN:"file-open",SWITCH_THEME:"switch-theme",NETWORK_IS_ONLINE:"network-is-online"}};var $y=new RegExp(`${Gc}`,"i");function yu(){return!!$y.test(window.navigator.userAgent)}var bu=(()=>{let t=class t{constructor(){this.enabled=yu(),this.ipcRenderer=this.enabled?window.ipcRenderer:null,this.ngZone=M(ae),this.store=M(zc),this.syncTasksCount={},this.store.isElectronApp.set(this.enabled),this.enabled&&(ci(()=>{let i=this.store.notifications().filter(s=>!s.wasRead).length;this.send(Re.APPLICATIONS.COUNTER,Vn.NOTIFICATIONS,i)}),this.store.filesActiveTasks.subscribe(i=>this.send(Re.APPLICATIONS.COUNTER,Vn.TASKS,i.length)),this.ipcRenderer.on(Re.SYNC.SCHEDULER_STATE,(i,s)=>this.store.clientScheduler.set(s)),this.ipcRenderer.on(Re.SYNC.STATUS,(i,s)=>this.ngZone.run(()=>this.setSync(s))),this.ipcRenderer.on(Re.SYNC.TASKS_COUNT,(i,s)=>this.ngZone.run(()=>this.setSyncTasksCount(s))),this.updateSyncMenuIcon(),this.getSyncsWithErrors(),this.getClientSchedulerSettings())}send(i,...s){this.enabled&&this.ipcRenderer.send(i,...s)}sendMessage(i,s){this.send(Re.APPLICATIONS.MSG,{title:i,body:s})}invoke(i,...s){if(this.enabled)return this.ipcRenderer.invoke(i,...s)}authenticate(){return hs(this.invoke(Re.SERVER.AUTHENTICATION))}openPath(i){this.send(Re.MISC.FILE_OPEN,i)}openUrl(i){this.send(Re.MISC.URL_OPEN,i)}setSync(i){if(i.reportOnly){this.store.clientSyncIsReporting.next(i.state);return}i.state?this.store.clientSyncs.next([...this.store.clientSyncs.getValue(),i]):(this.store.clientSyncs.next(this.store.clientSyncs.getValue().filter(s=>s.syncPathId!==i.syncPathId)),this.store.clientSyncTask.next({syncPathId:i.syncPathId,nbTasks:0}),i.lastErrors.length||i.mainError?this.store.clientSyncsWithErrors.next([...this.store.clientSyncsWithErrors.getValue().filter(s=>s.syncPathId!==i.syncPathId),i]):this.store.clientSyncsWithErrors.next(this.store.clientSyncsWithErrors.getValue().filter(s=>s.syncPathId!==i.syncPathId))),this.send(Re.APPLICATIONS.COUNTER,Vn.SYNCS,this.store.clientSyncs.getValue().length)}setSyncTasksCount(i){this.store.clientSyncs.getValue().find(s=>s.syncPathId===i.syncPathId)||(i.nbTasks=0),this.store.clientSyncTask.next(i),i.nbTasks===0?delete this.syncTasksCount[i.syncPathId]:this.syncTasksCount[i.syncPathId]=i.nbTasks,this.store.clientSyncTasksCount.next(Object.values(this.syncTasksCount).reduce((s,r)=>s+r,0))}getClientSchedulerSettings(){this.send(Re.SYNC.SCHEDULER_STATE)}getSyncsWithErrors(){this.invoke(Re.SYNC.ERRORS).then(i=>this.store.clientSyncsWithErrors.next(i)).catch(console.error)}updateSyncMenuIcon(){us([this.store.clientSyncs,this.store.clientSyncsWithErrors,Zl(this.store.clientScheduler)]).subscribe(([i,s,r])=>{i.length?(ze.iconAnimated=!0,ze.count.level="purple",ze.count.value.next(i.length)):s.find(o=>o.lastErrors.length||!!o.mainError)?(ze.count.level="danger",ze.count.value.next("!"),ze.iconAnimated=!1):r===Gi.DISABLED?(ze.count.level="secondary-alt",ze.count.value.next("off"),ze.iconAnimated=!1):(ze.count.value.next(0),ze.iconAnimated=!1)})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var iE=(()=>{let t=class t{constructor(){this.currentRightSideBarTab=null,this.resizeEvent=new F(null),this.switchTheme=new F(sessionStorage.getItem("themeMode")||Bc()),this.toggleLeftSideBar=new F(this.isSmallerMediumScreen()?2:1),this.saveLeftSideBarIsOpen=new F(!0),this.leftSideBarIsOpen=new F(!0),this.toggleRightSideBar=new I,this.rightSideBarIsOpen=new F(!1),this.rightSideBarOpenAndShowTab=new I,this.rightSideBarSetTabs=new I,this.rightSideBarSelectTab=new I,this.breadcrumbNav=new F({url:""}),this.breadcrumbIcon=new F(null),this.windows=new F([]),this.modalRefs=new Map,this.title=M(nl),this.ngZone=M(ae),this.translation=M(al),this.faConfig=M(Vl),this.bsModal=M(wo),this.toastr=M(Zs),this.contextMenu=M(Nc),this.electron=M(bu),this.screenMediumSize=767,this.screenSmallSize=576,this._networkIsOnline=new F(navigator.onLine),this.networkIsOnline=this._networkIsOnline.asObservable().pipe(Va(ni(window,"online").pipe(Ve(()=>!0)),ni(window,"offline").pipe(Ve(()=>!1)))),this.preferTheme=ni(window.matchMedia("(prefers-color-scheme: dark)"),"change").pipe(Ve(i=>i.matches?Nn:vi)),this.modalOptions={animated:!0,keyboard:!0,backdrop:!0,ignoreBackdropClick:!0,closeInterceptor:()=>this.closeModalInterceptor()},Gl("bs5"),this.faConfig.fixedWidth=!0,this.title.setTitle(vu),this.preferTheme.subscribe(i=>this.setTheme(i))}showRSideBarTab(i=null,s=!1,r=0){s&&this.rightSideBarIsOpen.getValue()?this.rightSideBarSelectTab.next(i):this.rightSideBarOpenAndShowTab.next(i),r>0&&setTimeout(()=>this.hideRSideBarTab(i),r)}hideRSideBarTab(i){this.currentRightSideBarTab===i&&this.toggleRSideBar(!1)}toggleRSideBar(i){this.rightSideBarIsOpen.next(i),this.toggleRightSideBar.next(i)}setTabsRSideBar(i,s){this.rightSideBarSetTabs.next({name:i,tabs:s})}toggleLSideBar(){this.toggleLeftSideBar.next(3)}isSmallerMediumScreen(){return window.innerWidth!==0&&window.innerWidth<this.screenMediumSize}isSmallerScreen(){return window.innerWidth!==0&&window.innerWidth<this.screenSmallSize}toggleTheme(){this.setTheme(this.switchTheme.getValue()===vi?Nn:vi)}openDialog(i,s,r={},o={}){let a=`modal-${s||"sm"} modal-primary`;if(r.id&&this.windows.getValue().find(p=>p.id===r.id))return this.restoreDialog(r.id),this.modalRefs.get(r.id);let l=Object.assign(r,A(A({},this.modalOptions),o),{class:a}),h=this.bsModal.show(i,l);return this.modalRefs.set(h.id,h),h}minimizeDialog(i,s){let r=this.getModalComponent(i);return r&&(this.closeModalWithEffect(r),this.windows.getValue().find(o=>o.id===i)||this.windows.next([...this.windows.getValue(),{id:i,element:s}]),this.windows.getValue().length===1&&this.showRSideBarTab(po.WINDOWS,!1,3e3)),r}restoreDialog(i){let s=this.getModalComponent(i);return s&&(this.openModalWithEffect(s),this.windows.next(this.windows.getValue().filter(r=>r.id!==i))),s}closeDialog(i=null,s=null,r=!1){if(r){this.bsModal.hide(),this.modalRefs.clear(),this.windows.next([]);return}if(!s){let a,l=this.windows.getValue().map(h=>h.id);for(let h of this.modalRefs.keys())l.indexOf(h)>-1||(a=h);if(a!==void 0)s=a;else{console.warn("Last modal id not found");return}}let o=this.getModalComponent(s);this.modalRefs.delete(s),o&&(i?setTimeout(()=>this.closeModalWithEffect(o,!0),i):this.closeModalWithEffect(o,!0),this.windows.next(this.windows.getValue().filter(a=>a.id!==s)))}openContextMenu(i,s){this.contextMenu.hasOpenMenu()&&this.contextMenu.closeAll(),setTimeout(()=>this.contextMenu.show(s,i.type==="contextmenu"?i:i.srcEvent),5)}sendNotification(i,s,r,o,a={}){if(i==="error"&&o){console.error(o);let l=o.error?Array.isArray(o.error.message)?o.error.message.map(h=>this.translateString(h)).join(" & "):this.translateString(o.error.message):o.message||"Unknown error !";if(this.electron.enabled)this.electron.sendMessage(this.translateString(s),`${this.translateString(r)} - ${l}`);else return this.toastr[i](`${this.translateString(r)}<br>${l}`,this.translateString(s),be(A({},a),{enableHtml:!0}))}if(this.electron.enabled)this.electron.sendMessage(this.translateString(s),this.translateString(r));else return this.toastr[i](this.translateString(r),this.translateString(s),a)}setLanguage(i){return(!i||i===On)&&(i=Mr().language),i&&i!==this.getCurrentLanguage()?this.translation.setLocale({language:i}):Promise.resolve()}getCurrentLanguage(){return this.translation.getLocale().language}getLanguages(i=!1){let s=Object.keys(mu);return i?s:s.filter(r=>r!==On)}setBreadcrumbIcon(i){this.breadcrumbIcon.next(i)}setBreadcrumbNav(i){this.breadcrumbNav.next(i)}openUrl(i){this.electron.enabled?this.electron.openUrl(i):window.open(i,"_blank")}translateString(i,s){return i&&this.translation.translate(i,s)}clean(){this.toggleRSideBar(!1),this.closeDialog(null,null,!0)}openModalWithEffect(i){this.bsModal._renderer.setAttribute(i.instance._element.nativeElement,"aria-hidden","false"),this.bsModal._renderer.setStyle(i.instance._element.nativeElement,"display","block"),setTimeout(()=>{this.bsModal._renderer.addClass(i.instance._element.nativeElement,"show")},100)}closeModalWithEffect(i,s=!1){this.bsModal._renderer.setAttribute(i.instance._element.nativeElement,"aria-hidden","true"),this.bsModal._renderer.removeClass(i.instance._element.nativeElement,"show"),setTimeout(()=>this.bsModal._renderer.setStyle(i.instance._element.nativeElement,"display","none"),500),s&&this.bsModal.hide(i.id)}closeModalInterceptor(){let i=this.bsModal.lastDismissReason;return i=="browser-back-navigation-clicked"?(this.atLeastOneModalOpen()&&history.forward(),Promise.reject("blocked-by-interceptor")):i==="esc"?(this.closeDialog(),Promise.reject("blocked-by-interceptor")):Promise.resolve()}getModalComponent(i){let s=this.bsModal.loaders.find(r=>r.instance?.config.id===i);return s?(s.id=i,s):(console.warn(`Modal ${i} not found`),null)}atLeastOneModalOpen(){return this.modalRefs.size-this.windows.getValue().length>0}setTheme(i){this.electron.send(Re.MISC.SWITCH_THEME,i),this.ngZone.run(()=>this.switchTheme.next(i)),sessionStorage.setItem("themeMode",i)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var qt="spaces",ct={BASE:`${Us}/${qt}`,BROWSE:"browse",TREE:"tree",LIST:"list",ROOTS:"roots",ROOT_CHECK:"root/check",LINKS:"links",TRASH:pe.TRASH,SHARES:pe.SHARES},aE=`${ct.BASE}/${ct.BROWSE}`,lE=`${ct.BASE}/${ct.TREE}`,cE=`${ct.BASE}/${ct.LIST}`,dE=`${ct.BASE}/${ct.TRASH}/${ct.LIST}`,hE=`${ct.BASE}/${ct.ROOT_CHECK}`;var wu={BASE:"recents"},Su="Recents",Mu=_l;var Qt={RECENTS:"Recents",FILES:"Files",PERSONAL_FILES:"Personal files",SHORT_PERSONAL_FILES:"Personal",TRASH:"Trash",SPACES:"Spaces",SHARES:"Shares",SHARED:"Shared",SHARED_WITH_ME:"Shared with me",SHARED_WITH_OTHER:"Shared with others",SHARED_WITH_ME_SHORT:"With me",SHARED_WITH_OTHER_SHORT:"With others",SHARED_BY_LINKS:"Shared via links",SHARED_BY_LINKS_SHORT:"Via links"},Rt={PERSONAL:Nr,SPACES:Ll,SHARES:dl,SHARED_WITH_ME:hl,SHARED_WITH_OTHERS:pl,ANCHORED:Cl,LINKS:vl,TRASH:bl,EXTERNAL:gl},se={SPACES:qt,FILES:pe.FILES,SHARES:pe.SHARES,SHARED:"shared",LINKS:Fl.LINKS,TRASHES:"trashes",TRASH:pe.TRASH,PERSONAL:gi.PERSONAL,SPACES_FILES:`${qt}/${pe.FILES}`,SPACES_TRASH:`${qt}/${pe.TRASH}`,SPACES_SHARES:`${qt}/${pe.SHARES}`,PERSONAL_FILES:`${qt}/${pe.FILES}/${gi.PERSONAL}`,PERSONAL_TRASH:`${qt}/${pe.FILES}/${gi.PERSONAL}/${pe.TRASH}`},wE={a:{text:"Add",icon:cl},m:{text:"Edit",icon:Tl},d:{text:"Delete",icon:El},si:{text:"Share inside",icon:Rt.ANCHORED},so:{text:"Share outside",icon:Rt.SHARES}},SE={a:!1,d:!1,m:!1,si:!1,so:!1},ME={title:Qt.FILES,icon:Nr,link:se.PERSONAL_FILES,matchLink:new RegExp(`^${se.SPACES}|^${se.TRASH}|^${se.SHARES}|^${se.SHARED}|^${se.LINKS}`),level:1,submenus:[{title:Su,icon:Mu,link:wu.BASE},{id:Pe.PERSONAL_SPACE,title:Qt.SHORT_PERSONAL_FILES,icon:Rt.PERSONAL,link:se.PERSONAL_FILES,matchLink:new RegExp(`^${se.PERSONAL_FILES}[/|?]`)},{id:Pe.SPACES,title:Qt.SPACES,icon:Rt.SPACES,link:se.SPACES,matchLink:new RegExp(`^${se.SPACES}(\\?|$)|^${se.SPACES}/${se.FILES}/(?!${se.PERSONAL}(/|\\?|$))`)},{id:Pe.SHARES,title:Qt.SHARED,icon:Rt.SHARES,link:se.SPACES_SHARES,matchLink:new RegExp(`^${se.SPACES_SHARES}|^${se.SHARED}|^${se.LINKS}`),submenus:[{id:Pe.SHARES_ADMIN,title:Qt.SHARED_WITH_ME_SHORT,icon:Rt.SHARED_WITH_ME,link:se.SPACES_SHARES},{id:Pe.SHARES_ADMIN,title:Qt.SHARED_WITH_OTHER_SHORT,icon:Rt.SHARED_WITH_OTHERS,link:se.SHARED},{id:Pe.SHARES_ADMIN,title:Qt.SHARED_BY_LINKS_SHORT,icon:Rt.LINKS,link:se.LINKS}]},{id:Pe.PERSONAL_SPACE,title:Qt.TRASH,icon:Rt.TRASH,link:se.TRASH,matchLink:new RegExp(`^${se.SPACES}/${se.TRASH}/`)}]};export{Ft as a,om as b,Bn as c,Bt as d,id as e,_t as f,jt as g,$t as h,So as i,Mo as j,am as k,Ms as l,Xl as m,Zl as n,Ye as o,Ue as p,wo as q,Jr as r,hc as s,qr as t,lm as u,aC as v,Cy as w,Qh as x,Lk as y,B0 as z,Zu as A,Ju as B,j0 as C,Pe as D,qu as E,ne as F,$i as G,z0 as H,G0 as I,Wi as J,K0 as K,On as L,X0 as M,mu as N,hT as O,uT as P,_T as Q,mT as R,vu as S,wT as T,ST as U,MT as V,Us as W,Ki as X,EM as Y,xM as Z,Ne as _,Vt as $,NM as aa,VM as ba,FM as ca,BM as da,jM as ea,$M as fa,$c as ga,WM as ha,UM as ia,zM as ja,De as ka,I_ as la,GM as ma,A_ as na,KM as oa,Y_ as pa,XM as qa,ZM as ra,JM as sa,H_ as ta,qM as ua,y_ as va,xS as wa,LS as xa,nt as ya,pe as za,gi as Aa,D_ as Ba,IS as Ca,VS as Da,FS as Ea,T_ as Fa,BS as Ga,jS as Ha,$S as Ia,WS as Ja,US as Ka,zS as La,GS as Ma,KS as Na,XS as Oa,ZS as Pa,JS as Qa,Nn as Ra,vi as Sa,E_ as Ta,po as Ua,iM as Va,nM as Wa,sM as Xa,rM as Ya,oM as Za,aM as _a,lM as $a,cM as ab,dM as bb,hM as cb,uM as db,_M as eb,mM as fb,pM as gb,fM as hb,gM as ib,vM as jb,yM as kb,bM as lb,wM as mb,Re as nb,Gi as ob,zs as pb,Gs as qb,He as rb,ze as sb,N_ as tb,Uc as ub,zc as vb,cD as wb,V_ as xb,F_ as yb,B_ as zb,j_ as Ab,bu as Bb,iE as Cb,ct as Db,aE as Eb,lE as Fb,cE as Gb,dE as Hb,hE as Ib,wu as Jb,Su as Kb,Mu as Lb,Qt as Mb,Rt as Nb,se as Ob,wE as Pb,SE as Qb,ME as Rb};
|