UNPKG

@sync-in/server

Version:

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

1 lines 467 kB
import{a as Gc}from"./chunk-KPOQLDWF.js";import{a as kn,b as no,c as ai,d as $c,e as oo,f as si,g as zc,h as ot,i as Fn,j as li}from"./chunk-T42BV6TR.js";import{A as He,a as Le,e as wc,g as Tc,i as Ec,j as Ac,k as Cr,l as Fc,m as Pc,n as Ic,o as Rc,p as Nc,q as wa,r as Vc,s as Mn,t as Lc,u as Oc,v as Bc,w as vr,x as Uc,y as Hc,z as yr}from"./chunk-E32J777S.js";import{a as Wc,b as Pn,c as ce}from"./chunk-3WZ6F3LC.js";import{b as jc,c as Kc,d as Qc,h as ro}from"./chunk-XTVNHFKX.js";import{c as ri,d as Dc,h as io,i as kc,j as xr,k as Mc,m as Sr}from"./chunk-RTNEBRKJ.js";import{a as xc,b as mr,c as En,d as gr}from"./chunk-NIR4YE2E.js";import{a as Ze}from"./chunk-S3TTWPQA.js";import{b as yc}from"./chunk-JXZCNFW7.js";import{a as vc}from"./chunk-HGODIZTV.js";import{a as qi,c as oi,d as ba,e as bc}from"./chunk-R7PLNX75.js";import{a as Fi,b as Pi,c as Ii,d as Ri}from"./chunk-ULSPQ3HP.js";import{a as Yi,d as Ql,e as Dn}from"./chunk-7VRYTDX4.js";import{a as nt,c as An}from"./chunk-XEWLBWFF.js";import{a as Fe}from"./chunk-3JYMJQYT.js";import{a as ya,b as jt}from"./chunk-6WMXMIE4.js";import{a as Qs,b as qs,c as Ys,e as Ca,f as pn,g as Xs,h as Zs,i as il,j as cc,k as _c,l as dr,m as Ye,o as fc,r as hc,t as gc,w as oe}from"./chunk-B6HQYQYG.js";import{a as gt}from"./chunk-DGCVA6BM.js";import{a as ur,b as _r,c as fr,d as hr,e as Je}from"./chunk-ZHOE5VEY.js";import{a as Tn,b as Cc}from"./chunk-GWRAGN3M.js";import{a as Xe}from"./chunk-3RPUQ22U.js";import{a as Ve,b as Ut}from"./chunk-GQHXYX6Z.js";import{a as Sc}from"./chunk-27Z3SYRL.js";import{$a as ar,A as Zn,Aa as ht,B as Ki,Ba as vn,Ca as Yl,Cb as I,D as ft,Da as Xl,E as or,Ea as eo,F as Ae,Fa as Zl,G as Qi,H as Ol,I as ki,J as Wt,Ja as Jl,Jb as mi,Ka as ec,Kb as pc,L as xa,La as tc,Lb as dc,M as Bl,Mb as Bt,N as Ul,Nb as ie,O as Hl,Ob as z,P as $l,Pb as mc,Q as zl,Qa as ic,R as Gl,Rb as uc,S as Wl,Sa as yn,T as jl,Ta as nc,U as rr,Ua as fe,V as Kl,Va as oc,W as ql,Wa as bn,_a as rc,a as _e,b as Gt,cb as sr,db as Sa,e as Ks,f as ga,gb as De,i as ji,ib as lr,j as Po,jb as ac,k as Yn,kb as sc,mb as to,n as di,q as tl,qb as cr,r as Ro,rb as we,s as Me,sb as lc,t as Ke,tb as wn,v as nl,va as Vt,vb as te,w as ol,wa as Lt,x as rl,xa as Ot,ya as qe,za as Jn}from"./chunk-O3YLAEVE.js";import{a as Gs,b as Jt,c as ln,d as Ce,e as cn,f as Ws,g as js}from"./chunk-QHJT5H4M.js";import{$b as Es,$c as $s,$d as Lo,Aa as Ci,Ab as Ie,Ae as Go,Bb as y,Bd as fn,Bf as mt,Cb as Do,Cd as be,Cf as Jo,Dc as Fs,Dd as wi,De as Wo,E as Dt,Ea as da,Eb as f,Ec as Mo,Ed as $,Ee as Cl,Ef as kl,Fb as jn,Fc as Ps,G as bo,Gb as c,Gf as ii,Ha as Wn,Hb as bs,Hc as Fo,Hd as Js,I as _s,Ia as ee,Ib as ws,Id as el,Ie as xl,If as ni,Jb as Kn,Jc as Is,Jd as Z,Je as jo,Jf as Ml,Kb as Y,Kd as P,Kf as Cn,L as pe,La as Ao,Lb as W,Ld as Ti,M as fs,Ma as xi,Mb as j,Mc as zt,Na as ma,Nc as sn,Nf as Fl,O as wo,Oa as s,Od as No,Pa as xs,Pb as Be,Pc as Ee,Pd as al,Qa as ae,Qb as B,Qc as Rs,Qd as hn,Qe as Ko,Qf as xn,Ra as zi,Rb as O,Re as Sl,Rf as er,Sb as L,Sc as Ns,Se as vl,Ta as Ss,Tb as d,Tc as Vs,Td as sl,Tf as Qe,U as hs,Ub as w,Uc as Ls,Ud as ll,Uf as Sn,Va as vs,Vb as D,Ve as yl,Vf as ut,Wa as pt,Wb as Re,Wc as Os,X as gs,Xb as de,Xd as cl,Xe as bl,Xf as Pl,Ya as ys,Yb as me,Yc as Bs,Zb as ue,Zc as Us,Zf as Il,_ as zn,_b as Ts,_c as Hs,_d as Vo,_e as Qo,ab as A,ac as As,ad as zs,ae as Oo,ag as tr,ba as ge,bb as ua,bc as fa,be as Bo,bf as Ei,cb as Si,cc as X,cg as Rl,db as an,dc as wt,de as pl,df as qo,ea as kt,ec as ha,ed as Pt,ef as dt,f as vo,fa as pa,fb as R,fc as Tt,fd as je,fg as _t,g as ms,gc as Ne,ge as dl,gf as Ai,gg as ir,hc as Qn,hd as Et,he as It,hf as Di,hg as nr,ia as To,ic as Ds,ie as ml,if as Xn,ig as Nl,ja as S,jc as ko,jd as xe,jg as Vl,kb as Zt,kc as b,kd as dn,kf as ti,kg as Ll,la as Cs,lb as C,lc as G,le as Uo,lf as Yo,lg as Nt,mb as x,mc as E,mf as wl,nb as We,nc as Mt,nf as Ue,oa as h,oc as Ft,od as ye,oe as Ho,of as Tl,p as gi,pa as g,pb as k,pd as mn,q as yo,qa as Gn,qb as M,qc as ks,qe as ul,qg as F,ra as Eo,rb as m,re as _l,rf as Xo,sb as a,sc as ve,sd as un,se as fl,sf as El,sg as pr,tb as l,tc as $t,td as _n,te as $o,tg as va,ub as _,ud as vi,ue as gn,v as bt,va as it,vb as Gi,vc as qn,vd as yi,w as us,wb as Wi,wc as se,wd as bi,we as hl,wf as Al,xa as rn,xb as _a,xe as gl,xf as Rt,yd as ei,ye as zo,yf as Dl,zc as Ms,zd as Io,zf as Zo}from"./chunk-D55YR5X7.js";import"./chunk-SDJNZULP.js";import"./chunk-2YQ4SX3A.js";import{n as Mi}from"./chunk-DM4NXKEP.js";import"./chunk-ZIJQRARU.js";import{a as re,b as Se,d as ds,i as Xt}from"./chunk-KAVP6UXH.js";var qc=(()=>{let n=class n{};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=A({type:n,selectors:[["app-root"]],decls:1,vars:0,template:function(o,r){o&1&&_(0,"router-outlet")},dependencies:[ln],encapsulation:2});let i=n;return i})();function Yc(i){return new ge(3e3,!1)}function Um(){return new ge(3100,!1)}function Hm(){return new ge(3101,!1)}function $m(i){return new ge(3001,!1)}function zm(i){return new ge(3003,!1)}function Gm(i){return new ge(3004,!1)}function Zc(i,n){return new ge(3005,!1)}function Jc(){return new ge(3006,!1)}function ep(){return new ge(3007,!1)}function tp(i,n){return new ge(3008,!1)}function ip(i){return new ge(3002,!1)}function np(i,n,e,t,o){return new ge(3010,!1)}function op(){return new ge(3011,!1)}function rp(){return new ge(3012,!1)}function ap(){return new ge(3200,!1)}function sp(){return new ge(3202,!1)}function lp(){return new ge(3013,!1)}function cp(i){return new ge(3014,!1)}function pp(i){return new ge(3015,!1)}function dp(i){return new ge(3016,!1)}function mp(i,n){return new ge(3404,!1)}function Wm(i){return new ge(3502,!1)}function up(i){return new ge(3503,!1)}function _p(){return new ge(3300,!1)}function fp(i){return new ge(3504,!1)}function hp(i){return new ge(3301,!1)}function gp(i,n){return new ge(3302,!1)}function Cp(i){return new ge(3303,!1)}function xp(i,n){return new ge(3400,!1)}function Sp(i){return new ge(3401,!1)}function vp(i){return new ge(3402,!1)}function yp(i,n){return new ge(3505,!1)}function ui(i){switch(i.length){case 0:return new ji;case 1:return i[0];default:return new Po(i)}}function Da(i,n,e=new Map,t=new Map){let o=[],r=[],p=-1,u=null;if(n.forEach(v=>{let T=v.get("offset"),N=T==p,V=N&&u||new Map;v.forEach((le,q)=>{let K=q,ne=le;if(q!=="offset")switch(K=i.normalizePropertyName(K,o),ne){case Yn:ne=e.get(q);break;case Gt:ne=t.get(q);break;default:ne=i.normalizeStyleValue(q,K,ne,o);break}V.set(K,ne)}),N||r.push(V),u=V,p=T}),o.length)throw Wm(o);return r}function br(i,n,e,t){switch(n){case"start":i.onStart(()=>t(e&&Ta(e,"start",i)));break;case"done":i.onDone(()=>t(e&&Ta(e,"done",i)));break;case"destroy":i.onDestroy(()=>t(e&&Ta(e,"destroy",i)));break}}function Ta(i,n,e){let t=e.totalTime,o=!!e.disabled,r=wr(i.element,i.triggerName,i.fromState,i.toState,n||i.phaseName,t??i.totalTime,o),p=i._data;return p!=null&&(r._data=p),r}function wr(i,n,e,t,o="",r=0,p){return{element:i,triggerName:n,fromState:e,toState:t,phaseName:o,totalTime:r,disabled:!!p}}function Ct(i,n,e){let t=i.get(n);return t||i.set(n,t=e),t}function ka(i){let n=i.indexOf(":"),e=i.substring(1,n),t=i.slice(n+1);return[e,t]}var jm=typeof document>"u"?null:document.documentElement;function Tr(i){let n=i.parentNode||i.host||null;return n===jm?null:n}function Km(i){return i.substring(1,6)=="ebkit"}var Xi=null,Xc=!1;function bp(i){Xi||(Xi=Qm()||{},Xc=Xi.style?"WebkitAppearance"in Xi.style:!1);let n=!0;return Xi.style&&!Km(i)&&(n=i in Xi.style,!n&&Xc&&(n="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Xi.style)),n}function Qm(){return typeof document<"u"?document.body:null}function Ma(i,n){for(;n;){if(n===i)return!0;n=Tr(n)}return!1}function Fa(i,n,e){if(e)return Array.from(i.querySelectorAll(n));let t=i.querySelector(n);return t?[t]:[]}var qm=1e3,Pa="{{",Ym="}}",Ia="ng-enter",Er="ng-leave",ao="ng-trigger",so=".ng-trigger",Ra="ng-animating",Ar=".ng-animating";function ci(i){if(typeof i=="number")return i;let n=i.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Ea(parseFloat(n[1]),n[2])}function Ea(i,n){switch(n){case"s":return i*qm;default:return i}}function lo(i,n,e){return i.hasOwnProperty("duration")?i:Zm(i,n,e)}var Xm=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Zm(i,n,e){let t,o=0,r="";if(typeof i=="string"){let p=i.match(Xm);if(p===null)return n.push(Yc(i)),{duration:0,delay:0,easing:""};t=Ea(parseFloat(p[1]),p[2]);let u=p[3];u!=null&&(o=Ea(parseFloat(u),p[4]));let v=p[5];v&&(r=v)}else t=i;if(!e){let p=!1,u=n.length;t<0&&(n.push(Um()),p=!0),o<0&&(n.push(Hm()),p=!0),p&&n.splice(u,0,Yc(i))}return{duration:t,delay:o,easing:r}}function wp(i){return i.length?i[0]instanceof Map?i:i.map(n=>new Map(Object.entries(n))):[]}function Kt(i,n,e){n.forEach((t,o)=>{let r=Dr(o);e&&!e.has(o)&&e.set(o,i.style[r]),i.style[r]=t})}function Ni(i,n){n.forEach((e,t)=>{let o=Dr(t);i.style[o]=""})}function In(i){return Array.isArray(i)?i.length==1?i[0]:Ks(i):i}function Tp(i,n,e){let t=n.params||{},o=Na(i);o.length&&o.forEach(r=>{t.hasOwnProperty(r)||e.push($m(r))})}var Aa=new RegExp(`${Pa}\\s*(.+?)\\s*${Ym}`,"g");function Na(i){let n=[];if(typeof i=="string"){let e;for(;e=Aa.exec(i);)n.push(e[1]);Aa.lastIndex=0}return n}function Rn(i,n,e){let t=`${i}`,o=t.replace(Aa,(r,p)=>{let u=n[p];return u==null&&(e.push(zm(p)),u=""),u.toString()});return o==t?i:o}var Jm=/-+([a-z0-9])/g;function Dr(i){return i.replace(Jm,(...n)=>n[1].toUpperCase())}function Ep(i,n){return i===0||n===0}function Ap(i,n,e){if(e.size&&n.length){let t=n[0],o=[];if(e.forEach((r,p)=>{t.has(p)||o.push(p),t.set(p,r)}),o.length)for(let r=1;r<n.length;r++){let p=n[r];o.forEach(u=>p.set(u,kr(i,u)))}}return n}function xt(i,n,e){switch(n.type){case _e.Trigger:return i.visitTrigger(n,e);case _e.State:return i.visitState(n,e);case _e.Transition:return i.visitTransition(n,e);case _e.Sequence:return i.visitSequence(n,e);case _e.Group:return i.visitGroup(n,e);case _e.Animate:return i.visitAnimate(n,e);case _e.Keyframes:return i.visitKeyframes(n,e);case _e.Style:return i.visitStyle(n,e);case _e.Reference:return i.visitReference(n,e);case _e.AnimateChild:return i.visitAnimateChild(n,e);case _e.AnimateRef:return i.visitAnimateRef(n,e);case _e.Query:return i.visitQuery(n,e);case _e.Stagger:return i.visitStagger(n,e);default:throw Gm(n.type)}}function kr(i,n){return window.getComputedStyle(i)[n]}var Za=(()=>{class i{validateStyleProperty(e){return bp(e)}containsElement(e,t){return Ma(e,t)}getParentElement(e){return Tr(e)}query(e,t,o){return Fa(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,r,p,u=[],v){return new ji(o,r)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=kt({token:i,factory:i.\u0275fac})}return i})(),Ji=class{static NOOP=new Za},en=class{};var e0=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Rr=class extends en{normalizePropertyName(n,e){return Dr(n)}normalizeStyleValue(n,e,t,o){let r="",p=t.toString().trim();if(e0.has(e)&&t!==0&&t!=="0")if(typeof t=="number")r="px";else{let u=t.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&o.push(Zc(n,t))}return p+r}};var Nr="*";function t0(i,n){let e=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>i0(t,e,n)):e.push(i),e}function i0(i,n,e){if(i[0]==":"){let v=n0(i,e);if(typeof v=="function"){n.push(v);return}i=v}let t=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return e.push(pp(i)),n;let o=t[1],r=t[2],p=t[3];n.push(Dp(o,p));let u=o==Nr&&p==Nr;r[0]=="<"&&!u&&n.push(Dp(p,o))}function n0(i,n){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return n.push(dp(i)),"* => *"}}var Mr=new Set(["true","1"]),Fr=new Set(["false","0"]);function Dp(i,n){let e=Mr.has(i)||Fr.has(i),t=Mr.has(n)||Fr.has(n);return(o,r)=>{let p=i==Nr||i==o,u=n==Nr||n==r;return!p&&e&&typeof o=="boolean"&&(p=o?Mr.has(i):Fr.has(i)),!u&&t&&typeof r=="boolean"&&(u=r?Mr.has(n):Fr.has(n)),p&&u}}var Op=":self",o0=new RegExp(`s*${Op}s*,?`,"g");function Bp(i,n,e,t){return new Ha(i).build(n,e,t)}var kp="",Ha=class{_driver;constructor(n){this._driver=n}build(n,e,t){let o=new $a(e);return this._resetContextStyleTimingState(o),xt(this,In(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector=kp,n.collectedStyles=new Map,n.collectedStyles.set(kp,new Map),n.currentTime=0}visitTrigger(n,e){let t=e.queryCount=0,o=e.depCount=0,r=[],p=[];return n.name.charAt(0)=="@"&&e.errors.push(Jc()),n.definitions.forEach(u=>{if(this._resetContextStyleTimingState(e),u.type==_e.State){let v=u,T=v.name;T.toString().split(/\s*,\s*/).forEach(N=>{v.name=N,r.push(this.visitState(v,e))}),v.name=T}else if(u.type==_e.Transition){let v=this.visitTransition(u,e);t+=v.queryCount,o+=v.depCount,p.push(v)}else e.errors.push(ep())}),{type:_e.Trigger,name:n.name,states:r,transitions:p,queryCount:t,depCount:o,options:null}}visitState(n,e){let t=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(t.containsDynamicStyles){let r=new Set,p=o||{};t.styles.forEach(u=>{u instanceof Map&&u.forEach(v=>{Na(v).forEach(T=>{p.hasOwnProperty(T)||r.add(T)})})}),r.size&&e.errors.push(tp(n.name,[...r.values()]))}return{type:_e.State,name:n.name,style:t,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let t=xt(this,In(n.animation),e),o=t0(n.expr,e.errors);return{type:_e.Transition,matchers:o,animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Zi(n.options)}}visitSequence(n,e){return{type:_e.Sequence,steps:n.steps.map(t=>xt(this,t,e)),options:Zi(n.options)}}visitGroup(n,e){let t=e.currentTime,o=0,r=n.steps.map(p=>{e.currentTime=t;let u=xt(this,p,e);return o=Math.max(o,e.currentTime),u});return e.currentTime=o,{type:_e.Group,steps:r,options:Zi(n.options)}}visitAnimate(n,e){let t=l0(n.timings,e.errors);e.currentAnimateTimings=t;let o,r=n.styles?n.styles:ga({});if(r.type==_e.Keyframes)o=this.visitKeyframes(r,e);else{let p=n.styles,u=!1;if(!p){u=!0;let T={};t.easing&&(T.easing=t.easing),p=ga(T)}e.currentTime+=t.duration+t.delay;let v=this.visitStyle(p,e);v.isEmptyStep=u,o=v}return e.currentAnimateTimings=null,{type:_e.Animate,timings:t,style:o,options:null}}visitStyle(n,e){let t=this._makeStyleAst(n,e);return this._validateStyleAst(t,e),t}_makeStyleAst(n,e){let t=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let u of o)typeof u=="string"?u===Gt?t.push(u):e.errors.push(ip(u)):t.push(new Map(Object.entries(u)));let r=!1,p=null;return t.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(p=u.get("easing"),u.delete("easing")),!r)){for(let v of u.values())if(v.toString().indexOf(Pa)>=0){r=!0;break}}}),{type:_e.Style,styles:t,easing:p,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){let t=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;t&&r>0&&(r-=t.duration+t.delay),n.styles.forEach(p=>{typeof p!="string"&&p.forEach((u,v)=>{let T=e.collectedStyles.get(e.currentQuerySelector),N=T.get(v),V=!0;N&&(r!=o&&r>=N.startTime&&o<=N.endTime&&(e.errors.push(np(v,N.startTime,N.endTime,r,o)),V=!1),r=N.startTime),V&&T.set(v,{startTime:r,endTime:o}),e.options&&Tp(u,e.options,e.errors)})})}visitKeyframes(n,e){let t={type:_e.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(op()),t;let o=1,r=0,p=[],u=!1,v=!1,T=0,N=n.steps.map($e=>{let ze=this._makeStyleAst($e,e),at=ze.offset!=null?ze.offset:s0(ze.styles),et=0;return at!=null&&(r++,et=ze.offset=at),v=v||et<0||et>1,u=u||et<T,T=et,p.push(et),ze});v&&e.errors.push(rp()),u&&e.errors.push(ap());let V=n.steps.length,le=0;r>0&&r<V?e.errors.push(sp()):r==0&&(le=o/(V-1));let q=V-1,K=e.currentTime,ne=e.currentAnimateTimings,Te=ne.duration;return N.forEach(($e,ze)=>{let at=le>0?ze==q?1:le*ze:p[ze],et=at*Te;e.currentTime=K+ne.delay+et,ne.duration=et,this._validateStyleAst($e,e),$e.offset=at,t.styles.push($e)}),t}visitReference(n,e){return{type:_e.Reference,animation:xt(this,In(n.animation),e),options:Zi(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:_e.AnimateChild,options:Zi(n.options)}}visitAnimateRef(n,e){return{type:_e.AnimateRef,animation:this.visitReference(n.animation,e),options:Zi(n.options)}}visitQuery(n,e){let t=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;let[r,p]=r0(n.selector);e.currentQuerySelector=t.length?t+" "+r:r,Ct(e.collectedStyles,e.currentQuerySelector,new Map);let u=xt(this,In(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:_e.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:p,animation:u,originalSelector:n.selector,options:Zi(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(lp());let t=n.timings==="full"?{duration:0,delay:0,easing:"full"}:lo(n.timings,e.errors,!0);return{type:_e.Stagger,animation:xt(this,In(n.animation),e),timings:t,options:null}}};function r0(i){let n=!!i.split(/\s*,\s*/).find(e=>e==Op);return n&&(i=i.replace(o0,"")),i=i.replace(/@\*/g,so).replace(/@\w+/g,e=>so+"-"+e.slice(1)).replace(/:animating/g,Ar),[i,n]}function a0(i){return i?re({},i):null}var $a=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function s0(i){if(typeof i=="string")return null;let n=null;if(Array.isArray(i))i.forEach(e=>{if(e instanceof Map&&e.has("offset")){let t=e;n=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let e=i;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function l0(i,n){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=lo(i,n).duration;return Va(r,0,"")}let e=i;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Va(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=lo(e,n);return Va(o.duration,o.delay,o.easing)}function Zi(i){return i?(i=re({},i),i.params&&(i.params=a0(i.params))):i={},i}function Va(i,n,e){return{duration:i,delay:n,easing:e}}function Ja(i,n,e,t,o,r,p=null,u=!1){return{type:1,element:i,keyframes:n,preStyleProps:e,postStyleProps:t,duration:o,delay:r,totalTime:o+r,easing:p,subTimeline:u}}var po=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let t=this._map.get(n);t||this._map.set(n,t=[]),t.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},c0=1,p0=":enter",d0=new RegExp(p0,"g"),m0=":leave",u0=new RegExp(m0,"g");function Up(i,n,e,t,o,r=new Map,p=new Map,u,v,T=[]){return new za().buildKeyframes(i,n,e,t,o,r,p,u,v,T)}var za=class{buildKeyframes(n,e,t,o,r,p,u,v,T,N=[]){T=T||new po;let V=new Ga(n,e,T,o,r,N,[]);V.options=v;let le=v.delay?ci(v.delay):0;V.currentTimeline.delayNextStep(le),V.currentTimeline.setStyles([p],null,V.errors,v),xt(this,t,V);let q=V.timelines.filter(K=>K.containsAnimation());if(q.length&&u.size){let K;for(let ne=q.length-1;ne>=0;ne--){let Te=q[ne];if(Te.element===e){K=Te;break}}K&&!K.allowOnlyTimelineStyles()&&K.setStyles([u],null,V.errors,v)}return q.length?q.map(K=>K.buildKeyframes()):[Ja(e,[],[],[],0,le,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let t=e.subInstructions.get(e.element);if(t){let o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,p=this._visitSubInstructions(t,o,o.options);r!=p&&e.transformIntoNewTimeline(p)}e.previousNode=n}visitAnimateRef(n,e){let t=e.createSubContext(n.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,t),this.visitReference(n.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,t){for(let o of n){let r=o?.delay;if(r){let p=typeof r=="number"?r:ci(Rn(r,o?.params??{},e.errors));t.delayNextStep(p)}}}_visitSubInstructions(n,e,t){let r=e.currentTimeline.currentTime,p=t.duration!=null?ci(t.duration):null,u=t.delay!=null?ci(t.delay):null;return p!==0&&n.forEach(v=>{let T=e.appendInstructionToTimeline(v,p,u);r=Math.max(r,T.duration+T.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),xt(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let t=e.subContextCount,o=e,r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==_e.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vr);let p=ci(r.delay);o.delayNextStep(p)}n.steps.length&&(n.steps.forEach(p=>xt(this,p,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let t=[],o=e.currentTimeline.currentTime,r=n.options&&n.options.delay?ci(n.options.delay):0;n.steps.forEach(p=>{let u=e.createSubContext(n.options);r&&u.delayNextStep(r),xt(this,p,u),o=Math.max(o,u.currentTimeline.currentTime),t.push(u.currentTimeline)}),t.forEach(p=>e.currentTimeline.mergeTimelineCollectedStyles(p)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let t=n.strValue,o=e.params?Rn(t,e.params,e.errors):t;return lo(o,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let t=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());let r=n.style;r.type==_e.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(t.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();let r=o&&o.easing||n.easing;n.isEmptyStep?t.applyEmptyStep(r):t.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let t=e.currentAnimateTimings,o=e.currentTimeline.duration,r=t.duration,u=e.createSubContext().currentTimeline;u.easing=t.easing,n.styles.forEach(v=>{let T=v.offset||0;u.forwardTime(T*r),u.setStyles(v.styles,v.easing,e.errors,e.options),u.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(u),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){let t=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?ci(o.delay):0;r&&(e.previousNode.type===_e.Style||t==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vr);let p=t,u=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=u.length;let v=null;u.forEach((T,N)=>{e.currentQueryIndex=N;let V=e.createSubContext(n.options,T);r&&V.delayNextStep(r),T===e.element&&(v=V.currentTimeline),xt(this,n.animation,V),V.currentTimeline.applyStylesToKeyframe();let le=V.currentTimeline.currentTime;p=Math.max(p,le)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(p),v&&(e.currentTimeline.mergeTimelineCollectedStyles(v),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let t=e.parentContext,o=e.currentTimeline,r=n.timings,p=Math.abs(r.duration),u=p*(e.currentQueryTotal-1),v=p*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":v=u-v;break;case"full":v=t.currentStaggerTime;break}let N=e.currentTimeline;v&&N.delayNextStep(v);let V=N.currentTime;xt(this,n.animation,e),e.previousNode=n,t.currentStaggerTime=o.currentTime-V+(o.startTime-t.currentTimeline.startTime)}},Vr={},Ga=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Vr;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,t,o,r,p,u,v){this._driver=n,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=r,this.errors=p,this.timelines=u,this.currentTimeline=v||new Lr(this._driver,e,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let t=n,o=this.options;t.duration!=null&&(o.duration=ci(t.duration)),t.delay!=null&&(o.delay=ci(t.delay));let r=t.params;if(r){let p=o.params;p||(p=this.options.params={}),Object.keys(r).forEach(u=>{(!e||!p.hasOwnProperty(u))&&(p[u]=Rn(r[u],p,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let t=n.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return n}createSubContext(n=null,e,t){let o=e||this.element,r=new i(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Vr,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,t){let o={duration:e??n.duration,delay:this.currentTimeline.currentTime+(t??0)+n.delay,easing:""},r=new Wa(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,t,o,r,p){let u=[];if(o&&u.push(this.element),n.length>0){n=n.replace(d0,"."+this._enterClassName),n=n.replace(u0,"."+this._leaveClassName);let v=t!=1,T=this._driver.query(this.element,n,v);t!==0&&(T=t<0?T.slice(T.length+t,T.length):T.slice(0,t)),u.push(...T)}return!r&&u.length==0&&p.push(cp(e)),u}},Lr=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,t,o){this._driver=n,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new i(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=c0,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Gt),this._currentKeyframe.set(e,Gt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,t,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},p=_0(n,this._globalTimelineStyles);for(let[u,v]of p){let T=Rn(v,r,t);this._pendingStyles.set(u,T),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Gt),this._updateStyle(u,T)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,t)=>{let o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,t=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((u,v)=>{let T=new Map([...this._backFill,...u]);T.forEach((N,V)=>{N===Yn?n.add(V):N===Gt&&e.add(V)}),t||T.set("offset",v/this.duration),o.push(T)});let r=[...n.values()],p=[...e.values()];if(t){let u=o[0],v=new Map(u);u.set("offset",0),v.set("offset",1),o=[u,v]}return Ja(this.element,o,r,p,this.duration,this.startTime,this.easing,!1)}},Wa=class extends Lr{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,t,o,r,p,u=!1){super(n,e,p.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=u,this.timings={duration:p.duration,delay:p.delay,easing:p.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],p=t+e,u=e/p,v=new Map(n[0]);v.set("offset",0),r.push(v);let T=new Map(n[0]);T.set("offset",Mp(u)),r.push(T);let N=n.length-1;for(let V=1;V<=N;V++){let le=new Map(n[V]),q=le.get("offset"),K=e+q*t;le.set("offset",Mp(K/p)),r.push(le)}t=p,e=0,o="",n=r}return Ja(this.element,n,this.preStyleProps,this.postStyleProps,t,e,o,!0)}};function Mp(i,n=3){let e=Math.pow(10,n-1);return Math.round(i*e)/e}function _0(i,n){let e=new Map,t;return i.forEach(o=>{if(o==="*"){t??=n.keys();for(let r of t)e.set(r,Gt)}else for(let[r,p]of o)e.set(r,p)}),e}function Fp(i,n,e,t,o,r,p,u,v,T,N,V,le){return{type:0,element:i,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:t,toStyles:p,timelines:u,queriedElements:v,preStyleProps:T,postStyleProps:N,totalTime:V,errors:le}}var La={},Or=class{_triggerName;ast;_stateStyles;constructor(n,e,t){this._triggerName=n,this.ast=e,this._stateStyles=t}match(n,e,t,o){return f0(this.ast.matchers,n,e,t,o)}buildStyles(n,e,t){let o=this._stateStyles.get("*");return n!==void 0&&(o=this._stateStyles.get(n?.toString())||o),o?o.buildStyles(e,t):new Map}build(n,e,t,o,r,p,u,v,T,N){let V=[],le=this.ast.options&&this.ast.options.params||La,q=u&&u.params||La,K=this.buildStyles(t,q,V),ne=v&&v.params||La,Te=this.buildStyles(o,ne,V),$e=new Set,ze=new Map,at=new Map,et=o==="void",nn={params:Hp(ne,le),delay:this.ast.options?.delay},qt=N?[]:Up(n,e,this.ast.animation,r,p,K,Te,nn,T,V),st=0;return qt.forEach(ct=>{st=Math.max(ct.duration+ct.delay,st)}),V.length?Fp(e,this._triggerName,t,o,et,K,Te,[],[],ze,at,st,V):(qt.forEach(ct=>{let Ui=ct.element,on=Ct(ze,Ui,new Set);ct.preStyleProps.forEach(Hi=>on.add(Hi));let ss=Ct(at,Ui,new Set);ct.postStyleProps.forEach(Hi=>ss.add(Hi)),Ui!==e&&$e.add(Ui)}),Fp(e,this._triggerName,t,o,et,K,Te,qt,[...$e.values()],ze,at,st))}};function f0(i,n,e,t,o){return i.some(r=>r(n,e,t,o))}function Hp(i,n){let e=re({},n);return Object.entries(i).forEach(([t,o])=>{o!=null&&(e[t]=o)}),e}var ja=class{styles;defaultParams;normalizer;constructor(n,e,t){this.styles=n,this.defaultParams=e,this.normalizer=t}buildStyles(n,e){let t=new Map,o=Hp(n,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((p,u)=>{p&&(p=Rn(p,o,e));let v=this.normalizer.normalizePropertyName(u,e);p=this.normalizer.normalizeStyleValue(u,v,p,e),t.set(u,p)})}),t}};function h0(i,n,e){return new Ka(i,n,e)}var Ka=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,t){this.name=n,this.ast=e,this._normalizer=t,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new ja(o.style,r,t))}),Pp(this.states,"true","1"),Pp(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Or(n,o,this.states))}),this.fallbackTransition=g0(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,t,o){return this.transitionFactories.find(p=>p.match(n,e,t,o))||null}matchStyles(n,e,t){return this.fallbackTransition.buildStyles(n,e,t)}};function g0(i,n,e){let t=[(p,u)=>!0],o={type:_e.Sequence,steps:[],options:null},r={type:_e.Transition,animation:o,matchers:t,options:null,queryCount:0,depCount:0};return new Or(i,r,n)}function Pp(i,n,e){i.has(n)?i.has(e)||i.set(e,i.get(n)):i.has(e)&&i.set(n,i.get(e))}var C0=new po,Qa=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,t){this.bodyNode=n,this._driver=e,this._normalizer=t}register(n,e){let t=[],o=[],r=Bp(this._driver,e,t,o);if(t.length)throw up(t);this._animations.set(n,r)}_buildPlayer(n,e,t){let o=n.element,r=Da(this._normalizer,n.keyframes,e,t);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,t={}){let o=[],r=this._animations.get(n),p,u=new Map;if(r?(p=Up(this._driver,e,r,Ia,Er,new Map,new Map,t,C0,o),p.forEach(N=>{let V=Ct(u,N.element,new Map);N.postStyleProps.forEach(le=>V.set(le,null))})):(o.push(_p()),p=[]),o.length)throw fp(o);u.forEach((N,V)=>{N.forEach((le,q)=>{N.set(q,this._driver.computeStyle(V,q,Gt))})});let v=p.map(N=>{let V=u.get(N.element);return this._buildPlayer(N,new Map,V)}),T=ui(v);return this._playersById.set(n,T),T.onDestroy(()=>this.destroy(n)),this.players.push(T),T}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw hp(n);return e}listen(n,e,t,o){let r=wr(e,"","","");return br(this._getPlayer(n),t,r,o),()=>{}}command(n,e,t,o){if(t=="register"){this.register(n,o[0]);return}if(t=="create"){let p=o[0]||{};this.create(n,e,p);return}let r=this._getPlayer(n);switch(t){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n);break}}},Ip="ng-animate-queued",x0=".ng-animate-queued",Oa="ng-animate-disabled",S0=".ng-animate-disabled",v0="ng-star-inserted",y0=".ng-star-inserted",b0=[],$p={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},w0={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qt="__ng_removed",mo=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let t=n&&n.hasOwnProperty("value"),o=t?n.value:n;if(this.value=E0(o),t){let r=n,{value:p}=r,u=ds(r,["value"]);this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let t=this.options.params;Object.keys(e).forEach(o=>{t[o]==null&&(t[o]=e[o])})}}},co="void",Ba=new mo(co),qa=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,t){this.id=n,this.hostElement=e,this._engine=t,this._hostClassName="ng-tns-"+n,Ht(e,this._hostClassName)}listen(n,e,t,o){if(!this._triggers.has(e))throw gp(t,e);if(t==null||t.length==0)throw Cp(e);if(!A0(t))throw xp(t,e);let r=Ct(this._elementListeners,n,[]),p={name:e,phase:t,callback:o};r.push(p);let u=Ct(this._engine.statesByElement,n,new Map);return u.has(e)||(Ht(n,ao),Ht(n,ao+"-"+e),u.set(e,Ba)),()=>{this._engine.afterFlush(()=>{let v=r.indexOf(p);v>=0&&r.splice(v,1),this._triggers.has(e)||u.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw Sp(n);return e}trigger(n,e,t,o=!0){let r=this._getTrigger(e),p=new uo(this.id,e,n),u=this._engine.statesByElement.get(n);u||(Ht(n,ao),Ht(n,ao+"-"+e),this._engine.statesByElement.set(n,u=new Map));let v=u.get(e),T=new mo(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&v&&T.absorbOptions(v.options),u.set(e,T),v||(v=Ba),!(T.value===co)&&v.value===T.value){if(!M0(v.params,T.params)){let ne=[],Te=r.matchStyles(v.value,v.params,ne),$e=r.matchStyles(T.value,T.params,ne);ne.length?this._engine.reportError(ne):this._engine.afterFlush(()=>{Ni(n,Te),Kt(n,$e)})}return}let le=Ct(this._engine.playersByElement,n,[]);le.forEach(ne=>{ne.namespaceId==this.id&&ne.triggerName==e&&ne.queued&&ne.destroy()});let q=r.matchTransition(v.value,T.value,n,T.params),K=!1;if(!q){if(!o)return;q=r.fallbackTransition,K=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:q,fromState:v,toState:T,player:p,isFallbackTransition:K}),K||(Ht(n,Ip),p.onStart(()=>{Nn(n,Ip)})),p.onDone(()=>{let ne=this.players.indexOf(p);ne>=0&&this.players.splice(ne,1);let Te=this._engine.playersByElement.get(n);if(Te){let $e=Te.indexOf(p);$e>=0&&Te.splice($e,1)}}),this.players.push(p),le.push(p),p}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let t=this._engine.driver.query(n,so,!0);t.forEach(o=>{if(o[Qt])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(p=>p.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,t,o){let r=this._engine.statesByElement.get(n),p=new Map;if(r){let u=[];if(r.forEach((v,T)=>{if(p.set(T,v.value),this._triggers.has(T)){let N=this.trigger(n,T,co,o);N&&u.push(N)}}),u.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,p),t&&ui(u).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),t=this._engine.statesByElement.get(n);if(e&&t){let o=new Set;e.forEach(r=>{let p=r.name;if(o.has(p))return;o.add(p);let v=this._triggers.get(p).fallbackTransition,T=t.get(p)||Ba,N=new mo(co),V=new uo(this.id,p,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:p,transition:v,fromState:T,toState:N,player:V,isFallbackTransition:!0})})}}removeNode(n,e){let t=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(t.totalAnimations){let r=t.players.length?t.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let p=n;for(;p=p.parentNode;)if(t.statesByElement.get(p)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)t.markElementAsRemoved(this.id,n,!1,e);else{let r=n[Qt];(!r||r===$p)&&(t.afterFlush(()=>this.clearElementCache(n)),t.destroyInnerAnimations(n),t._onRemovalComplete(n,e))}}insertNode(n,e){Ht(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(t=>{let o=t.player;if(o.destroyed)return;let r=t.element,p=this._elementListeners.get(r);p&&p.forEach(u=>{if(u.name==t.triggerName){let v=wr(r,t.triggerName,t.fromState.value,t.toState.value);v._data=n,br(t.player,u.phase,v,u.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{let r=t.transition.ast.depCount,p=o.transition.ast.depCount;return r==0||p==0?r-p:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},Ya=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,t){this.bodyNode=n,this.driver=e,this._normalizer=t}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&n.push(t)})}),n}createNamespace(n,e){let t=new qa(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[n]=t}_balanceNamespaceList(n,e){let t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let p=!1,u=this.driver.getParentElement(e);for(;u;){let v=o.get(u);if(v){let T=t.indexOf(v);t.splice(T+1,0,n),p=!0;break}u=this.driver.getParentElement(u)}p||t.unshift(n)}else t.push(n);return o.set(e,n),n}register(n,e){let t=this._namespaceLookup[n];return t||(t=this.createNamespace(n,e)),t}registerTrigger(n,e,t){let o=this._namespaceLookup[n];o&&o.register(e,t)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(n);this.namespacesByHostElement.delete(t.hostElement);let o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1),t.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,t=this.statesByElement.get(n);if(t){for(let o of t.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(n,e,t,o){if(Pr(e)){let r=this._fetchNamespace(n);if(r)return r.trigger(e,t,o),!0}return!1}insertNode(n,e,t,o){if(!Pr(e))return;let r=e[Qt];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let p=this.collectedLeaveElements.indexOf(e);p>=0&&this.collectedLeaveElements.splice(p,1)}if(n){let p=this._fetchNamespace(n);p&&p.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Ht(n,Oa)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Nn(n,Oa))}removeNode(n,e,t){if(Pr(e)){let o=n?this._fetchNamespace(n):null;o?o.removeNode(e,t):this.markElementAsRemoved(n,e,!1,t);let r=this.namespacesByHostElement.get(e);r&&r.id!==n&&r.removeNode(e,t)}else this._onRemovalComplete(e,t)}markElementAsRemoved(n,e,t,o,r){this.collectedLeaveElements.push(e),e[Qt]={namespaceId:n,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,t,o,r){return Pr(e)?this._fetchNamespace(n).listen(e,t,o,r):()=>{}}_buildInstruction(n,e,t,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,t,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,so,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,Ar,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return ui(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Qt];if(e&&e.setForRemoval){if(n[Qt]=$p,e.namespaceId){this.destroyInnerAnimations(n);let t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Oa)&&this.markElementAsDisabled(n,!1),this.driver.query(n,S0,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let o=this.collectedEnterElements[t];Ht(o,v0)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{e=this._flushAnimations(t,n)}finally{for(let o=0;o<t.length;o++)t[o]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let o=this.collectedLeaveElements[t];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],e.length?ui(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(n){throw vp(n)}_flushAnimations(n,e){let t=new po,o=[],r=new Map,p=[],u=new Map,v=new Map,T=new Map,N=new Set;this.disabledNodes.forEach(H=>{N.add(H);let Q=this.driver.query(H,x0,!0);for(let J=0;J<Q.length;J++)N.add(Q[J])});let V=this.bodyNode,le=Array.from(this.statesByElement.keys()),q=Vp(le,this.collectedEnterElements),K=new Map,ne=0;q.forEach((H,Q)=>{let J=Ia+ne++;K.set(Q,J),H.forEach(he=>Ht(he,J))});let Te=[],$e=new Set,ze=new Set;for(let H=0;H<this.collectedLeaveElements.length;H++){let Q=this.collectedLeaveElements[H],J=Q[Qt];J&&J.setForRemoval&&(Te.push(Q),$e.add(Q),J.hasAnimation?this.driver.query(Q,y0,!0).forEach(he=>$e.add(he)):ze.add(Q))}let at=new Map,et=Vp(le,Array.from($e));et.forEach((H,Q)=>{let J=Er+ne++;at.set(Q,J),H.forEach(he=>Ht(he,J))}),n.push(()=>{q.forEach((H,Q)=>{let J=K.get(Q);H.forEach(he=>Nn(he,J))}),et.forEach((H,Q)=>{let J=at.get(Q);H.forEach(he=>Nn(he,J))}),Te.forEach(H=>{this.processLeaveNode(H)})});let nn=[],qt=[];for(let H=this._namespaceList.length-1;H>=0;H--)this._namespaceList[H].drainQueuedTransitions(e).forEach(J=>{let he=J.player,Ge=J.element;if(nn.push(he),this.collectedEnterElements.length){let tt=Ge[Qt];if(tt&&tt.setForMove){if(tt.previousTriggersValues&&tt.previousTriggersValues.has(J.triggerName)){let $i=tt.previousTriggersValues.get(J.triggerName),At=this.statesByElement.get(J.element);if(At&&At.has(J.triggerName)){let So=At.get(J.triggerName);So.value=$i,At.set(J.triggerName,So)}}he.destroy();return}}let Yt=!V||!this.driver.containsElement(V,Ge),yt=at.get(Ge),hi=K.get(Ge),ke=this._buildInstruction(J,t,hi,yt,Yt);if(ke.errors&&ke.errors.length){qt.push(ke);return}if(Yt){he.onStart(()=>Ni(Ge,ke.fromStyles)),he.onDestroy(()=>Kt(Ge,ke.toStyles)),o.push(he);return}if(J.isFallbackTransition){he.onStart(()=>Ni(Ge,ke.fromStyles)),he.onDestroy(()=>Kt(Ge,ke.toStyles)),o.push(he);return}let ps=[];ke.timelines.forEach(tt=>{tt.stretchStartingKeyframe=!0,this.disabledNodes.has(tt.element)||ps.push(tt)}),ke.timelines=ps,t.append(Ge,ke.timelines);let Bm={instruction:ke,player:he,element:Ge};p.push(Bm),ke.queriedElements.forEach(tt=>Ct(u,tt,[]).push(he)),ke.preStyleProps.forEach((tt,$i)=>{if(tt.size){let At=v.get($i);At||v.set($i,At=new Set),tt.forEach((So,ca)=>At.add(ca))}}),ke.postStyleProps.forEach((tt,$i)=>{let At=T.get($i);At||T.set($i,At=new Set),tt.forEach((So,ca)=>At.add(ca))})});if(qt.length){let H=[];qt.forEach(Q=>{H.push(yp(Q.triggerName,Q.errors))}),nn.forEach(Q=>Q.destroy()),this.reportError(H)}let st=new Map,ct=new Map;p.forEach(H=>{let Q=H.element;t.has(Q)&&(ct.set(Q,Q),this._beforeAnimationBuild(H.player.namespaceId,H.instruction,st))}),o.forEach(H=>{let Q=H.element;this._getPreviousPlayers(Q,!1,H.namespaceId,H.triggerName,null).forEach(he=>{Ct(st,Q,[]).push(he),he.destroy()})});let Ui=Te.filter(H=>Lp(H,v,T)),on=new Map;Np(on,this.driver,ze,T,Gt).forEach(H=>{Lp(H,v,T)&&Ui.push(H)});let Hi=new Map;q.forEach((H,Q)=>{Np(Hi,this.driver,new Set(H),v,Yn)}),Ui.forEach(H=>{let Q=on.get(H),J=Hi.get(H);on.set(H,new Map([...Q?.entries()??[],...J?.entries()??[]]))});let la=[],ls=[],cs={};p.forEach(H=>{let{element:Q,player:J,instruction:he}=H;if(t.has(Q)){if(N.has(Q)){J.onDestroy(()=>Kt(Q,he.toStyles)),J.disabled=!0,J.overrideTotalTime(he.totalTime),o.push(J);return}let Ge=cs;if(ct.size>1){let yt=Q,hi=[];for(;yt=yt.parentNode;){let ke=ct.get(yt);if(ke){Ge=ke;break}hi.push(yt)}hi.forEach(ke=>ct.set(ke,Ge))}let Yt=this._buildAnimation(J.namespaceId,he,st,r,Hi,on);if(J.setRealPlayer(Yt),Ge===cs)la.push(J);else{let yt=this.playersByElement.get(Ge);yt&&yt.length&&(J.parentPlayer=ui(yt)),o.push(J)}}else Ni(Q,he.fromStyles),J.onDestroy(()=>Kt(Q,he.toStyles)),ls.push(J),N.has(Q)&&o.push(J)}),ls.forEach(H=>{let Q=r.get(H.element);if(Q&&Q.length){let J=ui(Q);H.setRealPlayer(J)}}),o.forEach(H=>{H.parentPlayer?H.syncPlayerEvents(H.parentPlayer):H.destroy()});for(let H=0;H<Te.length;H++){let Q=Te[H],J=Q[Qt];if(Nn(Q,Er),J&&J.hasAnimation)continue;let he=[];if(u.size){let Yt=u.get(Q);Yt&&Yt.length&&he.push(...Yt);let yt=this.driver.query(Q,Ar,!0);for(let hi=0;hi<yt.length;hi++){let ke=u.get(yt[hi]);ke&&ke.length&&he.push(...ke)}}let Ge=he.filter(Yt=>!Yt.destroyed);Ge.length?D0(this,Q,Ge):this.processLeaveNode(Q)}return Te.length=0,la.forEach(H=>{this.players.push(H),H.onDone(()=>{H.destroy();let Q=this.players.indexOf(H);this.players.splice(Q,1)}),H.play()}),la}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,t,o,r){let p=[];if(e){let u