@tilde-nlp/ngx-common 5.0.20 → 5.0.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-common",
3
- "version": "5.0.20",
3
+ "version": "5.0.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": " ^17.0.0",
6
6
  "@angular/core": " ^17.0.0",
@@ -55,4 +55,4 @@ Teikumu strukt\u016Bra: nodro\u0161iniet, ka teikumi ir skaidri un kodol\u012Bgi
55
55
  Tonis: uzturiet profesion\u0101lu, cie\u0146pilnu un vienk\u0101r\u0161u toni.`,TOOLTIP_ACADEMIC:`Form\u0101lisms: izmantojiet augsta l\u012Bme\u0146a form\u0101lismu.
56
56
  Leksika: iek\u013Caujiet tehnisku un t\u0113mai rakstur\u012Bgu terminolo\u0123iju.
57
57
  Teikumu strukt\u016Bra: izmantojiet sare\u017E\u0123\u012Btu teikumu strukt\u016Bru, koncentr\u0113joties uz skaidr\u012Bbu un precizit\u0101ti.
58
- Tonis: uzturiet objekt\u012Bvu, anal\u012Btisku un da\u017Ek\u0101rt bezpersonisku toni.`,SPECIFIC_STYLE:"{{style}} rakst\u012Bbas stils",GENERAL:"Visp\u0101r\u012Bgs",PROFESSIONAL:"Profesion\u0101ls",ACADEMIC:"Akad\u0113misks"}},SUMMARY_MODAL:{TITLE:"Kopsavilkums",DESCRIPTION:"\u0100tri apkopojiet garus tekstus skaidros kopsavilkumos, izmantojot m\u016Bsu moderno LLM funkciju.",CANCEL:"Atcelt",CLOSE:"Aizv\u0113rt",ACTION:"Izveidot kopsavilkumu",REGENERATE:"\u0122ener\u0113t atk\u0101rtoti",LIMIT:"\u0160odien atliku\u0161\u0101s kopsavilkuma darb\u012Bbas: <span class='text-m-semi-bold'>{{limit}}</span>. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>"},ERRORS:{QUOTA_LIMIT:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",QUOTA_LIMIT_REACHED:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",DEFAULT:"\u0160\u0137iet, mums rad\u0101s probl\u0113ma. L\u016Bdzu, <bold>atk\u0101rtojiet</bold> darb\u012Bbu. Ja tas nepal\u012Bdz, sazinieties ar m\u016Bsu <a href='mailto:{{supportEmail}}' target='_blank'>atbalsta komandu</a>."}}},ERRORS:{MAX_CHAR_LENGTH:"Tikai {{maxCharLength}}/{{totalSymbols}} rakstz\u012Bmes tiks p\u0101rfraz\u0113tas/apkopotas."}}});var fh,Eb=g(()=>{"use strict";O();uc();Cv();SM();O();uc();fh=(()=>{var e,i,n,wb,r,TM,a,OM;let c=class c extends zu{constructor(){super(MM);Je(this,n);Je(this,r);Je(this,a);Je(this,e,void 0);Je(this,i,void 0);Zt(this,e,y(dc)),Zt(this,i,y(cc)),this.supportEmail="support@tilde.com",this.maxCharLength=1e5,this.quotaServiceUrl="https://services.tilde.com/service/quota/usage"}ngOnInit(){super.ngOnInit(),Nt(this,n,wb).call(this)}ngOnChanges(){super.ngOnChanges(),Nt(this,n,wb).call(this)}};e=new WeakMap,i=new WeakMap,n=new WeakSet,wb=function(){Nt(this,r,TM).call(this),Nt(this,a,OM).call(this)},r=new WeakSet,TM=function(){this.serviceUrl&&(Ge(this,e).serviceUrl=this.serviceUrl),this.subscriptionUrl&&(Ge(this,e).subscriptionUrl=this.subscriptionUrl),this.supportEmail&&(Ge(this,e).supportEmail=this.supportEmail),this.appId&&(Ge(this,e).appId=this.appId),this.maxCharLength&&(Ge(this,e).maxCharLength=this.maxCharLength)},a=new WeakSet,OM=function(){Ge(this,i).apiUrl=this.quotaServiceUrl},c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=le({type:c,selectors:[["app-llm"]],inputs:{serviceUrl:"serviceUrl",subscriptionUrl:"subscriptionUrl",supportEmail:"supportEmail",appId:"appId",maxCharLength:"maxCharLength",text:"text",language:"language",quotaServiceUrl:"quotaServiceUrl"},standalone:!0,features:[Ae,Ue,Ce],decls:1,vars:2,consts:[[3,"language","text"]],template:function(m,v){m&1&&oe(0,"lib-llm",0),m&2&&T("language",v.language)("text",v.text)},dependencies:[IM,DM]});let t=c;return t})()});var UU,zU,HU,WU,GU,RM,FM=g(()=>{"use strict";Ee();Ey();Eb();O();UU=()=>({voice:"sandra4",apiVersion:0,apiUrl:"https://runa.tilde.lv/client/say"}),zU=()=>({voice:"lv-LV-male",apiVersion:1,apiUrl:"https://services.tilde.com/service/tts"}),HU=()=>({voice:"lv-LV-female",apiVersion:1,apiUrl:"https://services.tilde.com/service/tts"}),WU=(t,e,i)=>[t,e,i],GU=()=>["https://runa.tilde.lv/client/say"],RM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=le({type:e,selectors:[["app-root"]],standalone:!0,features:[At([]),Ce],decls:2,vars:10,consts:[["language","lv","text","This is shor text to be summarized or rephrased. I just want to test if it is working or not. Just to make sure. Please change this text."],["xApiKey","f9e79feb-997c-4f85-bd9d-d0c9a626c8a0",3,"voices","skipAuthUrls"]],template:function(o,r){o&1&&oe(0,"app-llm",0)(1,"app-text-to-speech",1),o&2&&(w(),T("voices",QC(5,WU,za(2,UU),za(3,zU),za(4,HU)))("skipAuthUrls",za(9,GU)))},dependencies:[gt,Uf,fh],encapsulation:2});let t=e;return t})()});var kM,LM=g(()=>{"use strict";kM={production:!0}});function PM(t){return new M(3e3,!1)}function KU(){return new M(3100,!1)}function qU(){return new M(3101,!1)}function QU(t){return new M(3001,!1)}function YU(t){return new M(3003,!1)}function ZU(t){return new M(3004,!1)}function $U(t,e){return new M(3005,!1)}function XU(){return new M(3006,!1)}function JU(){return new M(3007,!1)}function e5(t,e){return new M(3008,!1)}function t5(t){return new M(3002,!1)}function n5(t,e,i,n,o){return new M(3010,!1)}function i5(){return new M(3011,!1)}function o5(){return new M(3012,!1)}function r5(){return new M(3200,!1)}function s5(){return new M(3202,!1)}function a5(){return new M(3013,!1)}function l5(t){return new M(3014,!1)}function c5(t){return new M(3015,!1)}function d5(t){return new M(3016,!1)}function u5(t,e){return new M(3404,!1)}function f5(t){return new M(3502,!1)}function h5(t){return new M(3503,!1)}function m5(){return new M(3300,!1)}function p5(t){return new M(3504,!1)}function g5(t){return new M(3301,!1)}function v5(t,e){return new M(3302,!1)}function y5(t){return new M(3303,!1)}function b5(t,e){return new M(3400,!1)}function A5(t){return new M(3401,!1)}function _5(t){return new M(3402,!1)}function x5(t,e){return new M(3505,!1)}function Io(t){switch(t.length){case 0:return new vo;case 1:return t[0];default:return new xl(t)}}function ZM(t,e,i=new Map,n=new Map){let o=[],r=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,m)=>{let v=m,_=h;if(m!=="offset")switch(v=t.normalizePropertyName(v,o),_){case Sf:_=i.get(m);break;case Xn:_=n.get(m);break;default:_=t.normalizeStyleValue(m,v,_,o);break}u.set(v,_)}),d||r.push(u),a=u,s=c}),o.length)throw f5(o);return r}function Qb(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Db(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Db(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Db(i,"destroy",t)));break}}function Db(t,e,i){let n=i.totalTime,o=!!i.disabled,r=Yb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,o),s=t._data;return s!=null&&(r._data=s),r}function Yb(t,e,i,n,o="",r=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:o,totalTime:r,disabled:!!s}}function an(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function NM(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}function Zb(t){let e=t.parentNode||t.host||null;return e===C5?null:e}function w5(t){return t.substring(1,6)=="ebkit"}function E5(t){Ir||(Ir=D5()||{},jM=Ir.style?"WebkitAppearance"in Ir.style:!1);let e=!0;return Ir.style&&!w5(t)&&(e=t in Ir.style,!e&&jM&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ir.style)),e}function D5(){return typeof document<"u"?document.body:null}function $M(t,e){for(;e;){if(e===t)return!0;e=Zb(e)}return!1}function XM(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}function Pi(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:kb(parseFloat(e[1]),e[2])}function kb(t,e){switch(e){case"s":return t*I5;default:return t}}function bh(t,e,i){return t.hasOwnProperty("duration")?t:S5(t,e,i)}function S5(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,r=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(PM(t)),{duration:0,delay:0,easing:""};o=kb(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=kb(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else o=t;if(!i){let a=!1,l=e.length;o<0&&(e.push(KU()),a=!0),r<0&&(e.push(qU()),a=!0),a&&e.splice(l,0,PM(t))}return{duration:o,delay:r,easing:s}}function T5(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function oi(t,e,i){e.forEach((n,o)=>{let r=Xb(o);i&&!i.has(o)&&i.set(o,t.style[r]),t.style[r]=n})}function Sr(t,e){e.forEach((i,n)=>{let o=Xb(n);t.style[o]=""})}function fc(t){return Array.isArray(t)?t.length==1?t[0]:pD(t):t}function O5(t,e,i){let n=e.params||{},o=tS(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||i.push(QU(r))})}function tS(t){let e=[];if(typeof t=="string"){let i;for(;i=Lb.exec(t);)e.push(i[1]);Lb.lastIndex=0}return e}function mc(t,e,i){let n=`${t}`,o=n.replace(Lb,(r,s)=>{let a=e[s];return a==null&&(i.push(YU(s)),a=""),a.toString()});return o==n?t:o}function Xb(t){return t.replace(R5,(...e)=>e[1].toUpperCase())}function F5(t,e){return t===0||e===0}function k5(t,e,i){if(i.size&&e.length){let n=e[0],o=[];if(i.forEach((r,s)=>{n.has(s)||o.push(s),n.set(s,r)}),o.length)for(let r=1;r<e.length;r++){let s=e[r];o.forEach(a=>s.set(a,Jb(t,a)))}}return e}function sn(t,e,i){switch(e.type){case ie.Trigger:return t.visitTrigger(e,i);case ie.State:return t.visitState(e,i);case ie.Transition:return t.visitTransition(e,i);case ie.Sequence:return t.visitSequence(e,i);case ie.Group:return t.visitGroup(e,i);case ie.Animate:return t.visitAnimate(e,i);case ie.Keyframes:return t.visitKeyframes(e,i);case ie.Style:return t.visitStyle(e,i);case ie.Reference:return t.visitReference(e,i);case ie.AnimateChild:return t.visitAnimateChild(e,i);case ie.AnimateRef:return t.visitAnimateRef(e,i);case ie.Query:return t.visitQuery(e,i);case ie.Stagger:return t.visitStagger(e,i);default:throw ZU(e.type)}}function Jb(t,e){return window.getComputedStyle(t)[e]}function P5(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>N5(n,i,e)):i.push(t),i}function N5(t,e,i){if(t[0]==":"){let l=j5(t,i);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(c5(t)),e;let o=n[1],r=n[2],s=n[3];e.push(BM(o,s));let a=o==_h&&s==_h;r[0]=="<"&&!a&&e.push(BM(s,o))}function j5(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n)<parseFloat(i);default:return e.push(d5(t)),"* => *"}}function BM(t,e){let i=mh.has(t)||ph.has(t),n=mh.has(e)||ph.has(e);return(o,r)=>{let s=t==_h||t==o,a=e==_h||e==r;return!s&&i&&typeof o=="boolean"&&(s=o?mh.has(t):ph.has(t)),!a&&n&&typeof r=="boolean"&&(a=r?mh.has(e):ph.has(e)),s&&a}}function iS(t,e,i,n){return new Pb(t).build(e,i,n)}function B5(t){let e=!!t.split(/\s*,\s*/).find(i=>i==nS);return e&&(t=t.replace(V5,"")),t=t.replace(/@\*/g,yh).replace(/@\w+/g,i=>yh+"-"+i.slice(1)).replace(/:animating/g,Fb),[t,e]}function U5(t){return t?A({},t):null}function z5(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function H5(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=bh(t,e).duration;return Ib(r,0,"")}let i=t;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Ib(0,0,"");return r.dynamic=!0,r.strValue=i,r}let o=bh(i,e);return Ib(o.duration,o.delay,o.easing)}function Mr(t){return t?(t=A({},t),t.params&&(t.params=U5(t.params))):t={},t}function Ib(t,e,i){return{duration:t,delay:e,easing:i}}function eA(t,e,i,n,o,r,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}function oS(t,e,i,n,o,r=new Map,s=new Map,a,l,c=[]){return new jb().buildKeyframes(t,e,i,n,o,r,s,a,l,c)}function zM(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function Y5(t,e){let i=new Map,n;return t.forEach(o=>{if(o==="*"){n??=e.keys();for(let r of n)i.set(r,Xn)}else for(let[r,s]of o)i.set(r,s)}),i}function HM(t,e,i,n,o,r,s,a,l,c,d,u,h){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:i,fromStyles:r,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}function Z5(t,e,i,n,o){return t.some(r=>r(e,i,n,o))}function rS(t,e){let i=A({},e);return Object.entries(t).forEach(([n,o])=>{o!=null&&(i[n]=o)}),i}function $5(t,e,i){return new zb(t,e,i)}function X5(t,e,i){let n=[(s,a)=>!0],o={type:ie.Sequence,steps:[],options:null},r={type:ie.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new wh(t,r,e)}function WM(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}function sz(t,e,i){let n=t.get(e);if(n){if(n.length){let o=n.indexOf(i);n.splice(o,1)}n.length==0&&t.delete(e)}return n}function az(t){return t??null}function gh(t){return t&&t.nodeType===1}function lz(t){return t=="start"||t=="done"}function KM(t,e){let i=t.style.display;return t.style.display=e??"none",i}function qM(t,e,i,n,o){let r=[];i.forEach(l=>r.push(KM(l)));let s=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let h=e.computeStyle(c,u,o);d.set(u,h),(!h||h.length==0)&&(c[Nn]=rz,s.push(c))}),t.set(c,d)});let a=0;return i.forEach(l=>KM(l,r[a++])),s}function QM(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,o=new Set(e),r=new Map;function s(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:o.has(c)?l=n:l=s(c),r.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&i.get(l).push(a)}),i}function _n(t,e){t.classList?.add(e)}function oa(t,e){t.classList?.remove(e)}function cz(t,e,i){Io(i).onDone(()=>t.processLeaveNode(e))}function dz(t){let e=[];return aS(t,e),e}function aS(t,e){for(let i=0;i<t.length;i++){let n=t[i];n instanceof xl?aS(n.players,e):e.push(n)}}function uz(t,e){let i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let o=0;o<i.length;o++){let r=i[o];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}function YM(t,e,i){let n=i.get(t);if(!n)return!1;let o=e.get(t);return o?n.forEach(r=>o.add(r)):e.set(t,n),i.delete(t),!0}function fz(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Ob(e[0]),e.length>1&&(n=Ob(e[e.length-1]))):e instanceof Map&&(i=Ob(e)),i||n?new Kb(t,i,n):null}function Ob(t){let e=null;return t.forEach((i,n)=>{hz(n)&&(e=e||new Map,e.set(n,i))}),e}function hz(t){return t==="display"||t==="position"}function mz(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function pz(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var C5,Ir,jM,$b,tA,Tr,Or,I5,JM,M5,eS,Rb,hh,yh,VM,Fb,Lb,R5,L5,Ah,_h,mh,ph,nS,V5,UM,Pb,Nb,pc,W5,G5,K5,q5,Q5,jb,xh,Vb,Ch,Bb,Mb,wh,Ub,zb,J5,Hb,GM,ez,Sb,tz,nz,iz,oz,sS,rz,Nn,gc,hc,Tb,Wb,Gb,vc,sa,ra,Kb,Eh,Dh,vh,lS,Ih,qb,Mh,nA=g(()=>{"use strict";Cl();O();O();C5=typeof document>"u"?null:document.documentElement;Ir=null,jM=!1;$b=(()=>{let e=class e{validateStyleProperty(n){return E5(n)}matchesElement(n,o){return!1}containsElement(n,o){return $M(n,o)}getParentElement(n){return Zb(n)}query(n,o,r){return XM(n,o,r)}computeStyle(n,o,r){return r||""}animate(n,o,r,s,a,l=[],c){return new vo(r,s)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),tA=class tA{};tA.NOOP=new $b;Tr=tA,Or=class{},I5=1e3,JM="{{",M5="}}",eS="ng-enter",Rb="ng-leave",hh="ng-trigger",yh=".ng-trigger",VM="ng-animating",Fb=".ng-animating";Lb=new RegExp(`${JM}\\s*(.+?)\\s*${M5}`,"g");R5=/-+([a-z0-9])/g;L5=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"]),Ah=class extends Or{normalizePropertyName(e,i){return Xb(e)}normalizeStyleValue(e,i,n,o){let r="",s=n.toString().trim();if(L5.has(i)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push($U(e,n))}return s+r}},_h="*";mh=new Set(["true","1"]),ph=new Set(["false","0"]);nS=":self",V5=new RegExp(`s*${nS}s*,?`,"g");UM="",Pb=class{constructor(e){this._driver=e}build(e,i,n){let o=new Nb(i);return this._resetContextStyleTimingState(o),sn(this,fc(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=UM,e.collectedStyles=new Map,e.collectedStyles.set(UM,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,o=i.depCount=0,r=[],s=[];return e.name.charAt(0)=="@"&&i.errors.push(XU()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==ie.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==ie.Transition){let l=this.visitTransition(a,i);n+=l.queryCount,o+=l.depCount,s.push(l)}else i.errors.push(JU())}),{type:ie.Trigger,name:e.name,states:r,transitions:s,queryCount:n,depCount:o,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),o=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,s=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{tS(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&i.errors.push(e5(e.name,[...r.values()]))}return{type:ie.State,name:e.name,style:n,options:o?{params:o}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=sn(this,fc(e.animation),i),o=P5(e.expr,i.errors);return{type:ie.Transition,matchers:o,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:Mr(e.options)}}visitSequence(e,i){return{type:ie.Sequence,steps:e.steps.map(n=>sn(this,n,i)),options:Mr(e.options)}}visitGroup(e,i){let n=i.currentTime,o=0,r=e.steps.map(s=>{i.currentTime=n;let a=sn(this,s,i);return o=Math.max(o,i.currentTime),a});return i.currentTime=o,{type:ie.Group,steps:r,options:Mr(e.options)}}visitAnimate(e,i){let n=H5(e.timings,i.errors);i.currentAnimateTimings=n;let o,r=e.styles?e.styles:Pt({});if(r.type==ie.Keyframes)o=this.visitKeyframes(r,i);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Pt(c)}i.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,i);l.isEmptyStep=a,o=l}return i.currentAnimateTimings=null,{type:ie.Animate,timings:n,style:o,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)typeof a=="string"?a===Xn?n.push(a):i.errors.push(t5(a)):n.push(new Map(Object.entries(a)));let r=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(JM)>=0){r=!0;break}}}),{type:ie.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,o=i.currentTime,r=i.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=o&&r>=d.startTime&&o<=d.endTime&&(i.errors.push(n5(l,d.startTime,d.endTime,r,o)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:o}),i.options&&O5(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:ie.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(i5()),n;let o=1,r=0,s=[],a=!1,l=!1,c=0,d=e.steps.map(D=>{let L=this._makeStyleAst(D,i),de=L.offset!=null?L.offset:z5(L.styles),H=0;return de!=null&&(r++,H=L.offset=de),l=l||H<0||H>1,a=a||H<c,c=H,s.push(H),L});l&&i.errors.push(o5()),a&&i.errors.push(r5());let u=e.steps.length,h=0;r>0&&r<u?i.errors.push(s5()):r==0&&(h=o/(u-1));let m=u-1,v=i.currentTime,_=i.currentAnimateTimings,E=_.duration;return d.forEach((D,L)=>{let de=h>0?L==m?1:h*L:s[L],H=de*E;i.currentTime=v+_.delay+H,_.duration=H,this._validateStyleAst(D,i),D.offset=de,n.styles.push(D)}),n}visitReference(e,i){return{type:ie.Reference,animation:sn(this,fc(e.animation),i),options:Mr(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:ie.AnimateChild,options:Mr(e.options)}}visitAnimateRef(e,i){return{type:ie.AnimateRef,animation:this.visitReference(e.animation,i),options:Mr(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,o=e.options||{};i.queryCount++,i.currentQuery=e;let[r,s]=B5(e.selector);i.currentQuerySelector=n.length?n+" "+r:r,an(i.collectedStyles,i.currentQuerySelector,new Map);let a=sn(this,fc(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:ie.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Mr(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(a5());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:bh(e.timings,i.errors,!0);return{type:ie.Stagger,animation:sn(this,fc(e.animation),i),timings:n,options:null}}};Nb=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};pc=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},W5=1,G5=":enter",K5=new RegExp(G5,"g"),q5=":leave",Q5=new RegExp(q5,"g");jb=class{buildKeyframes(e,i,n,o,r,s,a,l,c,d=[]){c=c||new pc;let u=new Vb(e,i,c,o,r,d,[]);u.options=l;let h=l.delay?Pi(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),sn(this,n,u);let m=u.timelines.filter(v=>v.containsAnimation());if(m.length&&a.size){let v;for(let _=m.length-1;_>=0;_--){let E=m[_];if(E.element===i){v=E;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,u.errors,l)}return m.length?m.map(v=>v.buildKeyframes()):[eA(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let o=i.createSubContext(e.options),r=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,o,o.options);r!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let o of e){let r=o?.delay;if(r){let s=typeof r=="number"?r:Pi(mc(r,o?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let r=i.currentTimeline.currentTime,s=n.duration!=null?Pi(n.duration):null,a=n.delay!=null?Pi(n.delay):null;return s!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,i){i.updateOptions(e.options,!0),sn(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,o=i,r=e.options;if(r&&(r.params||r.delay)&&(o=i.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==ie.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=xh);let s=Pi(r.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>sn(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],o=i.currentTimeline.currentTime,r=e.options&&e.options.delay?Pi(e.options.delay):0;e.steps.forEach(s=>{let a=i.createSubContext(e.options);r&&a.delayNextStep(r),sn(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(o),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,o=i.params?mc(n,i.params,i.errors):n;return bh(o,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),o=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),o.snapshotCurrentStyles());let r=e.style;r.type==ie.Keyframes?this.visitKeyframes(r,i):(i.incrementTime(n.duration),this.visitStyle(r,i),o.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,o=i.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,o=i.currentTimeline.duration,r=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(o+r),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,o=e.options||{},r=o.delay?Pi(o.delay):0;r&&(i.previousNode.type===ie.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=xh);let s=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;let u=i.createSubContext(e.options,c);r&&u.delayNextStep(r),c===i.element&&(l=u.currentTimeline),sn(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;s=Math.max(s,h)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,o=i.currentTimeline,r=e.timings,s=Math.abs(r.duration),a=s*(i.currentQueryTotal-1),l=s*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=i.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;sn(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=o.currentTime-u+(o.startTime-n.currentTimeline.startTime)}},xh={},Vb=class t{constructor(e,i,n,o,r,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ch(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,o=this.options;n.duration!=null&&(o.duration=Pi(n.duration)),n.delay!=null&&(o.delay=Pi(n.delay));let r=n.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=mc(r[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(o=>{n[o]=i[o]})}}return e}createSubContext(e=null,i,n){let o=i||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=xh,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let o={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new Bb(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,o,r,s){let a=[];if(o&&a.push(this.element),e.length>0){e=e.replace(K5,"."+this._enterClassName),e=e.replace(Q5,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&s.push(l5(i)),a}},Ch=class t{constructor(e,i,n,o){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||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+=W5,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Xn),this._currentKeyframe.set(i,Xn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,o){i&&this._previousKeyframe.set("easing",i);let r=o&&o.params||{},s=Y5(e,this._globalTimelineStyles);for(let[a,l]of s){let c=mc(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Xn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let o=this._styleSummary.get(n);(!o||i.time>o.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Sf?e.add(u):d===Xn&&i.add(u)}),n||c.set("offset",l/this.duration),o.push(c)});let r=[...e.values()],s=[...i.values()];if(n){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return eA(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}},Bb=class extends Ch{constructor(e,i,n,o,r,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],s=n+i,a=i/s,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",zM(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let h=new Map(e[u]),m=h.get("offset"),v=i+m*n;h.set("offset",zM(v/s)),r.push(h)}n=s,i=0,o="",e=r}return eA(this.element,e,this.preStyleProps,this.postStyleProps,n,i,o,!0)}};Mb={},wh=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,o){return Z5(this.ast.matchers,e,i,n,o)}buildStyles(e,i,n){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(i,n):new Map}build(e,i,n,o,r,s,a,l,c,d){let u=[],h=this.ast.options&&this.ast.options.params||Mb,m=a&&a.params||Mb,v=this.buildStyles(n,m,u),_=l&&l.params||Mb,E=this.buildStyles(o,_,u),D=new Set,L=new Map,de=new Map,H=o==="void",Ze={params:rS(_,h),delay:this.ast.options?.delay},He=d?[]:oS(e,i,this.ast.animation,r,s,v,E,Ze,c,u),We=0;return He.forEach(ut=>{We=Math.max(ut.duration+ut.delay,We)}),u.length?HM(i,this._triggerName,n,o,H,v,E,[],[],L,de,We,u):(He.forEach(ut=>{let xn=ut.element,Cn=an(L,xn,new Set);ut.preStyleProps.forEach(Mo=>Cn.add(Mo));let yc=an(de,xn,new Set);ut.postStyleProps.forEach(Mo=>yc.add(Mo)),xn!==i&&D.add(xn)}),HM(i,this._triggerName,n,o,H,v,E,He,[...D.values()],L,de,We))}};Ub=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,o=rS(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,a)=>{s&&(s=mc(s,o,i));let l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}};zb=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new Ub(o.style,r,n))}),WM(this.states,"true","1"),WM(this.states,"false","0"),i.transitions.forEach(o=>{this.transitionFactories.push(new wh(e,o,this.states))}),this.fallbackTransition=X5(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,o){return this.transitionFactories.find(s=>s.match(e,i,n,o))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};J5=new pc,Hb=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],o=[],r=iS(this._driver,i,n,o);if(n.length)throw h5(n);o.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,i,n){let o=e.element,r=ZM(this._normalizer,e.keyframes,i,n);return this._driver.animate(o,r,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let o=[],r=this._animations.get(e),s,a=new Map;if(r?(s=oS(this._driver,i,r,eS,Rb,new Map,new Map,n,J5,o),s.forEach(d=>{let u=an(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(m5()),s=[]),o.length)throw p5(o);a.forEach((d,u)=>{d.forEach((h,m)=>{d.set(m,this._driver.computeStyle(u,m,Xn))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Io(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw g5(e);return i}listen(e,i,n,o){let r=Yb(i,"","","");return Qb(this._getPlayer(e),n,r,o),()=>{}}command(e,i,n,o){if(n=="register"){this.register(e,o[0]);return}if(n=="create"){let s=o[0]||{};this.create(e,i,s);return}let r=this._getPlayer(e);switch(n){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(e);break}}},GM="ng-animate-queued",ez=".ng-animate-queued",Sb="ng-animate-disabled",tz=".ng-animate-disabled",nz="ng-star-inserted",iz=".ng-star-inserted",oz=[],sS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nn="__ng_removed",gc=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),o=n?e.value:e;if(this.value=az(o),n){let r=e,{value:s}=r,a=Oh(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(o=>{n[o]==null&&(n[o]=i[o])})}}},hc="void",Tb=new gc(hc),Wb=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,_n(i,this._hostClassName)}listen(e,i,n,o){if(!this._triggers.has(i))throw v5(n,i);if(n==null||n.length==0)throw y5(i);if(!lz(n))throw b5(n,i);let r=an(this._elementListeners,e,[]),s={name:i,phase:n,callback:o};r.push(s);let a=an(this._engine.statesByElement,e,new Map);return a.has(i)||(_n(e,hh),_n(e,hh+"-"+i),a.set(i,Tb)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw A5(e);return i}trigger(e,i,n,o=!0){let r=this._getTrigger(i),s=new vc(this.id,i,e),a=this._engine.statesByElement.get(e);a||(_n(e,hh),_n(e,hh+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new gc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Tb),!(c.value===hc)&&l.value===c.value){if(!uz(l.params,c.params)){let _=[],E=r.matchStyles(l.value,l.params,_),D=r.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Sr(e,E),oi(e,D)})}return}let h=an(this._engine.playersByElement,e,[]);h.forEach(_=>{_.namespaceId==this.id&&_.triggerName==i&&_.queued&&_.destroy()});let m=r.matchTransition(l.value,c.value,e,c.params),v=!1;if(!m){if(!o)return;m=r.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:m,fromState:l,toState:c,player:s,isFallbackTransition:v}),v||(_n(e,GM),s.onStart(()=>{oa(e,GM)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let E=this._engine.playersByElement.get(e);if(E){let D=E.indexOf(s);D>=0&&E.splice(D,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,yh,!0);n.forEach(o=>{if(o[Nn])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,i,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,i,n,o){let r=this._engine.statesByElement.get(e),s=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,hc,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&Io(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let o=new Set;i.forEach(r=>{let s=r.name;if(o.has(s))return;o.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Tb,d=new gc(hc),u=new vc(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)n.markElementAsRemoved(this.id,e,!1,i);else{let r=e[Nn];(!r||r===sS)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){_n(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Yb(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Qb(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):i.push(n)}),this._queue=[],i.sort((n,o)=>{let r=n.transition.ast.depCount,s=o.transition.ast.depCount;return r==0||s==0?r-s:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Gb=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n,o){this.bodyNode=e,this.driver=i,this._normalizer=n,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Wb(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){let l=o.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return o.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let o=this._namespaceLookup[e];o&&o.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&i.add(r)}}return i}trigger(e,i,n,o){if(gh(i)){let r=this._fetchNamespace(e);if(r)return r.trigger(i,n,o),!0}return!1}insertNode(e,i,n,o){if(!gh(i))return;let r=i[Nn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(i,n)}o&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_n(e,Sb)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),oa(e,Sb))}removeNode(e,i,n){if(gh(i)){this.scheduler?.notify();let o=e?this._fetchNamespace(e):null;o?o.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let r=this.namespacesByHostElement.get(i);r&&r.id!==e&&r.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,o,r){this.collectedLeaveElements.push(i),i[Nn]={namespaceId:e,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,i,n,o,r){return gh(i)?this._fetchNamespace(e).listen(i,n,o,r):()=>{}}_buildInstruction(e,i,n,o,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,o,e.fromState.options,e.toState.options,i,r)}destroyInnerAnimations(e){let i=this.driver.query(e,yh,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Fb,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Io(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Nn];if(i&&i.setForRemoval){if(e[Nn]=sS,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Sb)&&this.markElementAsDisabled(e,!1),this.driver.query(e,tz,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let o=this.collectedEnterElements[n];_n(o,nz)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{i=this._flushAnimations(n,e)}finally{for(let o=0;o<n.length;o++)n[o]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let o=this.collectedLeaveElements[n];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?Io(i).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(e){throw _5(e)}_flushAnimations(e,i){let n=new pc,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(z=>{d.add(z);let K=this.driver.query(z,ez,!0);for(let Q=0;Q<K.length;Q++)d.add(K[Q])});let u=this.bodyNode,h=Array.from(this.statesByElement.keys()),m=QM(h,this.collectedEnterElements),v=new Map,_=0;m.forEach((z,K)=>{let Q=eS+_++;v.set(K,Q),z.forEach(Me=>_n(Me,Q))});let E=[],D=new Set,L=new Set;for(let z=0;z<this.collectedLeaveElements.length;z++){let K=this.collectedLeaveElements[z],Q=K[Nn];Q&&Q.setForRemoval&&(E.push(K),D.add(K),Q.hasAnimation?this.driver.query(K,iz,!0).forEach(Me=>D.add(Me)):L.add(K))}let de=new Map,H=QM(h,Array.from(D));H.forEach((z,K)=>{let Q=Rb+_++;de.set(K,Q),z.forEach(Me=>_n(Me,Q))}),e.push(()=>{m.forEach((z,K)=>{let Q=v.get(K);z.forEach(Me=>oa(Me,Q))}),H.forEach((z,K)=>{let Q=de.get(K);z.forEach(Me=>oa(Me,Q))}),E.forEach(z=>{this.processLeaveNode(z)})});let Ze=[],He=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(i).forEach(Q=>{let Me=Q.player,vt=Q.element;if(Ze.push(Me),this.collectedEnterElements.length){let Mt=vt[Nn];if(Mt&&Mt.setForMove){if(Mt.previousTriggersValues&&Mt.previousTriggersValues.has(Q.triggerName)){let So=Mt.previousTriggersValues.get(Q.triggerName),ln=this.statesByElement.get(Q.element);if(ln&&ln.has(Q.triggerName)){let bc=ln.get(Q.triggerName);bc.value=So,ln.set(Q.triggerName,bc)}}Me.destroy();return}}let jn=!u||!this.driver.containsElement(u,vt),Yt=de.get(vt),Ni=v.get(vt),Xe=this._buildInstruction(Q,n,Ni,Yt,jn);if(Xe.errors&&Xe.errors.length){He.push(Xe);return}if(jn){Me.onStart(()=>Sr(vt,Xe.fromStyles)),Me.onDestroy(()=>oi(vt,Xe.toStyles)),o.push(Me);return}if(Q.isFallbackTransition){Me.onStart(()=>Sr(vt,Xe.fromStyles)),Me.onDestroy(()=>oi(vt,Xe.toStyles)),o.push(Me);return}let sA=[];Xe.timelines.forEach(Mt=>{Mt.stretchStartingKeyframe=!0,this.disabledNodes.has(Mt.element)||sA.push(Mt)}),Xe.timelines=sA,n.append(vt,Xe.timelines);let xS={instruction:Xe,player:Me,element:vt};s.push(xS),Xe.queriedElements.forEach(Mt=>an(a,Mt,[]).push(Me)),Xe.preStyleProps.forEach((Mt,So)=>{if(Mt.size){let ln=l.get(So);ln||l.set(So,ln=new Set),Mt.forEach((bc,Th)=>ln.add(Th))}}),Xe.postStyleProps.forEach((Mt,So)=>{let ln=c.get(So);ln||c.set(So,ln=new Set),Mt.forEach((bc,Th)=>ln.add(Th))})});if(He.length){let z=[];He.forEach(K=>{z.push(x5(K.triggerName,K.errors))}),Ze.forEach(K=>K.destroy()),this.reportError(z)}let We=new Map,ut=new Map;s.forEach(z=>{let K=z.element;n.has(K)&&(ut.set(K,K),this._beforeAnimationBuild(z.player.namespaceId,z.instruction,We))}),o.forEach(z=>{let K=z.element;this._getPreviousPlayers(K,!1,z.namespaceId,z.triggerName,null).forEach(Me=>{an(We,K,[]).push(Me),Me.destroy()})});let xn=E.filter(z=>YM(z,l,c)),Cn=new Map;qM(Cn,this.driver,L,c,Xn).forEach(z=>{YM(z,l,c)&&xn.push(z)});let Mo=new Map;m.forEach((z,K)=>{qM(Mo,this.driver,new Set(z),l,Sf)}),xn.forEach(z=>{let K=Cn.get(z),Q=Mo.get(z);Cn.set(z,new Map([...K?.entries()??[],...Q?.entries()??[]]))});let Sh=[],oA=[],rA={};s.forEach(z=>{let{element:K,player:Q,instruction:Me}=z;if(n.has(K)){if(d.has(K)){Q.onDestroy(()=>oi(K,Me.toStyles)),Q.disabled=!0,Q.overrideTotalTime(Me.totalTime),o.push(Q);return}let vt=rA;if(ut.size>1){let Yt=K,Ni=[];for(;Yt=Yt.parentNode;){let Xe=ut.get(Yt);if(Xe){vt=Xe;break}Ni.push(Yt)}Ni.forEach(Xe=>ut.set(Xe,vt))}let jn=this._buildAnimation(Q.namespaceId,Me,We,r,Mo,Cn);if(Q.setRealPlayer(jn),vt===rA)Sh.push(Q);else{let Yt=this.playersByElement.get(vt);Yt&&Yt.length&&(Q.parentPlayer=Io(Yt)),o.push(Q)}}else Sr(K,Me.fromStyles),Q.onDestroy(()=>oi(K,Me.toStyles)),oA.push(Q),d.has(K)&&o.push(Q)}),oA.forEach(z=>{let K=r.get(z.element);if(K&&K.length){let Q=Io(K);z.setRealPlayer(Q)}}),o.forEach(z=>{z.parentPlayer?z.syncPlayerEvents(z.parentPlayer):z.destroy()});for(let z=0;z<E.length;z++){let K=E[z],Q=K[Nn];if(oa(K,Rb),Q&&Q.hasAnimation)continue;let Me=[];if(a.size){let jn=a.get(K);jn&&jn.length&&Me.push(...jn);let Yt=this.driver.query(K,Fb,!0);for(let Ni=0;Ni<Yt.length;Ni++){let Xe=a.get(Yt[Ni]);Xe&&Xe.length&&Me.push(...Xe)}}let vt=Me.filter(jn=>!jn.destroyed);vt.length?cz(this,K,vt):this.processLeaveNode(K)}return E.length=0,Sh.forEach(z=>{this.players.push(z),z.onDone(()=>{z.destroy();let K=this.players.indexOf(z);this.players.splice(K,1)}),z.play()}),Sh}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,o,r){let s=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==hc;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(n||o)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){let o=i.triggerName,r=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:o;for(let l of i.timelines){let c=l.element,d=c!==r,u=an(n,c,[]);this._getPreviousPlayers(c,d,s,a,i.toState).forEach(m=>{let v=m.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),m.destroy(),u.push(m)})}Sr(r,i.fromStyles)}_buildAnimation(e,i,n,o,r,s){let a=i.triggerName,l=i.element,c=[],d=new Set,u=new Set,h=i.timelines.map(v=>{let _=v.element;d.add(_);let E=_[Nn];if(E&&E.removedBeforeQueried)return new vo(v.duration,v.delay);let D=_!==l,L=dz((n.get(_)||oz).map(We=>We.getRealPlayer())).filter(We=>{let ut=We;return ut.element?ut.element===_:!1}),de=r.get(_),H=s.get(_),Ze=ZM(this._normalizer,v.keyframes,de,H),He=this._buildPlayer(v,Ze,L);if(v.subTimeline&&o&&u.add(_),D){let We=new vc(e,a,_);We.setRealPlayer(He),c.push(We)}return He});c.forEach(v=>{an(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>sz(this.playersByQueriedElement,v.element,v))}),d.forEach(v=>_n(v,VM));let m=Io(h);return m.onDestroy(()=>{d.forEach(v=>oa(v,VM)),oi(l,i.toStyles)}),u.forEach(v=>{an(o,v,[]).push(m)}),m}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new vo(e.duration,e.delay)}},vc=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new vo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(o=>Qb(e,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){an(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};sa=class{constructor(e,i,n,o){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Gb(e.body,i,n,o),this._timelineEngine=new Hb(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,i,n,o,r){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let l=[],c=[],d=iS(this._driver,r,l,c);if(l.length)throw u5(o,l);c.length&&void 0,a=$5(o,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,o,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,o){this._transitionEngine.insertNode(e,i,n,o)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,o){if(n.charAt(0)=="@"){let[r,s]=NM(n),a=o;this._timelineEngine.command(r,i,s,a)}else this._transitionEngine.trigger(e,i,n,o)}listen(e,i,n,o,r){if(n.charAt(0)=="@"){let[s,a]=NM(n);return this._timelineEngine.listen(s,i,a,r)}return this._transitionEngine.listen(e,i,n,o,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};ra=class ra{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let o=ra.initialStylesByElement.get(e);o||ra.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&oi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(oi(this._element,this._initialStyles),this._endStyles&&(oi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ra.initialStylesByElement.delete(this._element),this._startStyles&&(Sr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sr(this._element,this._endStyles),this._endStyles=null),oi(this._element,this._initialStyles),this._state=3)}};ra.initialStylesByElement=new WeakMap;Kb=ra;Eh=class{constructor(e,i,n,o){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&e.set(o,this._finished?n:Jb(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Dh=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return $M(e,i)}getParentElement(e){return Zb(e)}query(e,i,n){return XM(e,i,n)}computeStyle(e,i,n){return Jb(e,i)}animate(e,i,n,o,r,s=[]){let a=o==0?"both":"forwards",l={duration:n,delay:o,fill:a};r&&(l.easing=r);let c=new Map,d=s.filter(m=>m instanceof Eh);F5(n,o)&&d.forEach(m=>{m.currentSnapshot.forEach((v,_)=>c.set(_,v))});let u=T5(i).map(m=>new Map(m));u=k5(e,u,c);let h=fz(e,u);return new Eh(e,u,l,h)}},vh="@",lS="@.disabled",Ih=class{constructor(e,i,n,o){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,o=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,o)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,o){this.delegate.setAttribute(e,i,n,o)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,o){this.delegate.setStyle(e,i,n,o)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==vh&&i==lS?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},qb=class extends Ih{constructor(e,i,n,o,r){super(i,n,o,r),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==vh?i.charAt(1)=="."&&i==lS?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==vh){let o=mz(e),r=i.slice(1),s="";return r.charAt(0)!=vh&&([r,s]=pz(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,i,n)}};Mh=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(o,r)=>{let s=r?.parentNode(o);s&&r.removeChild(s,o)}}createRenderer(e,i){let n="",o=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,d=c.get(o);if(!d){let u=()=>c.delete(o);d=new Ih(n,o,this.engine,u),c.set(o,d)}return d}let r=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,s,e,c.name,c)};return i.data.animation.forEach(a),new qb(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}});function yz(){return new Ah}function bz(t,e,i){return new Mh(t,e,i)}function dS(){return to("NgEagerAnimations"),[...Az]}var vz,cS,Az,mte,uS=g(()=>{"use strict";O();O();bs();nA();nA();Ee();vz=(()=>{let e=class e extends sa{constructor(n,o,r){super(n,o,r,y(ss,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(o){return new(o||e)(p(U),p(Tr),p(Or))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();cS=[{provide:Or,useFactory:yz},{provide:sa,useClass:vz},{provide:er,useFactory:bz,deps:[Nu,sa,F]}],Az=[{provide:Tr,useFactory:()=>new Dh},{provide:lt,useValue:"BrowserAnimations"},...cS],mte=[{provide:Tr,useClass:$b},{provide:lt,useValue:"NoopAnimations"},...cS]});var fS,hS=g(()=>{"use strict";uc();fS=()=>({provide:dc,useFactory:()=>({xApiKey:"",appId:"",supportEmail:"",maxCharLength:1e4,serviceUrl:"",subscriptionUrl:""})})});var mS,pS=g(()=>{"use strict";uc();mS=()=>({provide:cc,useFactory:()=>({apiUrl:""})})});var gS,vS=g(()=>{"use strict";Uu();gS=()=>({provide:Cs,useValue:{}})});var yS,bS=g(()=>{"use strict";O();Uu();Ke();yS=(t,e)=>{let i=y(Cs),n=window;if(i.skipAuthUrls?.find(o=>t.url.includes(o)))return e(t);if(n.getTildeWebComponentAuthToken){let o=n.getTildeWebComponentAuthToken;return ke(o()).pipe(je(r=>{let s=t.clone({setHeaders:{Authorization:`Bearer ${r}`}});return e(s)}))}if(i.xApiKey){let o=t.clone({setHeaders:{"X-Api-Key":`${i.xApiKey}`}});return e(o)}return e(t)}});var iA,AS=g(()=>{"use strict";Qa();O();uS();dr();hS();pS();vS();bS();iA={providers:[ww(Ew([yS])),dS(),tg(lo.forRoot()),fS(),mS(),gS()]}});var _z=DS(_S=>{iw();bs();FM();Eb();LM();AS();Ey();Rr(_S,null,function*(){let t=yield kw(iA),e=Kg(Uf,{injector:t.injector}),i=Kg(fh,{injector:t.injector});customElements.define("tilde-text-to-speech",e),customElements.define("tilde-llm",i)});kM.production||Fw(RM,iA).catch(t=>console.error(t))});export default _z();
58
+ Tonis: uzturiet objekt\u012Bvu, anal\u012Btisku un da\u017Ek\u0101rt bezpersonisku toni.`,SPECIFIC_STYLE:"{{style}} rakst\u012Bbas stils",GENERAL:"Visp\u0101r\u012Bgs",PROFESSIONAL:"Profesion\u0101ls",ACADEMIC:"Akad\u0113misks"}},SUMMARY_MODAL:{TITLE:"Kopsavilkums",DESCRIPTION:"\u0100tri apkopojiet garus tekstus skaidros kopsavilkumos, izmantojot m\u016Bsu moderno LLM funkciju.",CANCEL:"Atcelt",CLOSE:"Aizv\u0113rt",ACTION:"Izveidot kopsavilkumu",REGENERATE:"\u0122ener\u0113t atk\u0101rtoti",LIMIT:"\u0160odien atliku\u0161\u0101s kopsavilkuma darb\u012Bbas: <span class='text-m-semi-bold'>{{limit}}</span>. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>"},ERRORS:{QUOTA_LIMIT:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",QUOTA_LIMIT_REACHED:"Esat sasniedzis j\u016Bsu kvotas ierobe\u017Eojumu. Vai nepiecie\u0161ams vair\u0101k? <a href='{{subscriptionUrl}}' target='_blank'>Ieg\u016Bstiet abonementu</a>",DEFAULT:"\u0160\u0137iet, mums rad\u0101s probl\u0113ma. L\u016Bdzu, <bold>atk\u0101rtojiet</bold> darb\u012Bbu. Ja tas nepal\u012Bdz, sazinieties ar m\u016Bsu <a href='mailto:{{supportEmail}}' target='_blank'>atbalsta komandu</a>."}},ERRORS:{MAX_CHAR_LENGTH:"Tikai {{maxCharLength}}/{{totalSymbols}} rakstz\u012Bmes tiks p\u0101rfraz\u0113tas/apkopotas."}}}});var fh,Eb=g(()=>{"use strict";O();uc();Cv();SM();O();uc();fh=(()=>{var e,i,n,wb,r,TM,a,OM;let c=class c extends zu{constructor(){super(MM);Je(this,n);Je(this,r);Je(this,a);Je(this,e,void 0);Je(this,i,void 0);Zt(this,e,y(dc)),Zt(this,i,y(cc)),this.supportEmail="support@tilde.com",this.maxCharLength=1e5,this.quotaServiceUrl="https://services.tilde.com/service/quota/usage"}ngOnInit(){super.ngOnInit(),Nt(this,n,wb).call(this)}ngOnChanges(){super.ngOnChanges(),Nt(this,n,wb).call(this)}};e=new WeakMap,i=new WeakMap,n=new WeakSet,wb=function(){Nt(this,r,TM).call(this),Nt(this,a,OM).call(this)},r=new WeakSet,TM=function(){this.serviceUrl&&(Ge(this,e).serviceUrl=this.serviceUrl),this.subscriptionUrl&&(Ge(this,e).subscriptionUrl=this.subscriptionUrl),this.supportEmail&&(Ge(this,e).supportEmail=this.supportEmail),this.appId&&(Ge(this,e).appId=this.appId),this.maxCharLength&&(Ge(this,e).maxCharLength=this.maxCharLength)},a=new WeakSet,OM=function(){Ge(this,i).apiUrl=this.quotaServiceUrl},c.\u0275fac=function(m){return new(m||c)},c.\u0275cmp=le({type:c,selectors:[["app-llm"]],inputs:{serviceUrl:"serviceUrl",subscriptionUrl:"subscriptionUrl",supportEmail:"supportEmail",appId:"appId",maxCharLength:"maxCharLength",text:"text",language:"language",quotaServiceUrl:"quotaServiceUrl"},standalone:!0,features:[Ae,Ue,Ce],decls:1,vars:2,consts:[[3,"language","text"]],template:function(m,v){m&1&&oe(0,"lib-llm",0),m&2&&T("language",v.language)("text",v.text)},dependencies:[IM,DM]});let t=c;return t})()});var UU,zU,HU,WU,GU,RM,FM=g(()=>{"use strict";Ee();Ey();Eb();O();UU=()=>({voice:"sandra4",apiVersion:0,apiUrl:"https://runa.tilde.lv/client/say"}),zU=()=>({voice:"lv-LV-male",apiVersion:1,apiUrl:"https://services.tilde.com/service/tts"}),HU=()=>({voice:"lv-LV-female",apiVersion:1,apiUrl:"https://services.tilde.com/service/tts"}),WU=(t,e,i)=>[t,e,i],GU=()=>["https://runa.tilde.lv/client/say"],RM=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=le({type:e,selectors:[["app-root"]],standalone:!0,features:[At([]),Ce],decls:2,vars:10,consts:[["language","lv","text","This is shor text to be summarized or rephrased. I just want to test if it is working or not. Just to make sure. Please change this text."],["xApiKey","f9e79feb-997c-4f85-bd9d-d0c9a626c8a0",3,"voices","skipAuthUrls"]],template:function(o,r){o&1&&oe(0,"app-llm",0)(1,"app-text-to-speech",1),o&2&&(w(),T("voices",QC(5,WU,za(2,UU),za(3,zU),za(4,HU)))("skipAuthUrls",za(9,GU)))},dependencies:[gt,Uf,fh],encapsulation:2});let t=e;return t})()});var kM,LM=g(()=>{"use strict";kM={production:!0}});function PM(t){return new M(3e3,!1)}function KU(){return new M(3100,!1)}function qU(){return new M(3101,!1)}function QU(t){return new M(3001,!1)}function YU(t){return new M(3003,!1)}function ZU(t){return new M(3004,!1)}function $U(t,e){return new M(3005,!1)}function XU(){return new M(3006,!1)}function JU(){return new M(3007,!1)}function e5(t,e){return new M(3008,!1)}function t5(t){return new M(3002,!1)}function n5(t,e,i,n,o){return new M(3010,!1)}function i5(){return new M(3011,!1)}function o5(){return new M(3012,!1)}function r5(){return new M(3200,!1)}function s5(){return new M(3202,!1)}function a5(){return new M(3013,!1)}function l5(t){return new M(3014,!1)}function c5(t){return new M(3015,!1)}function d5(t){return new M(3016,!1)}function u5(t,e){return new M(3404,!1)}function f5(t){return new M(3502,!1)}function h5(t){return new M(3503,!1)}function m5(){return new M(3300,!1)}function p5(t){return new M(3504,!1)}function g5(t){return new M(3301,!1)}function v5(t,e){return new M(3302,!1)}function y5(t){return new M(3303,!1)}function b5(t,e){return new M(3400,!1)}function A5(t){return new M(3401,!1)}function _5(t){return new M(3402,!1)}function x5(t,e){return new M(3505,!1)}function Io(t){switch(t.length){case 0:return new vo;case 1:return t[0];default:return new xl(t)}}function ZM(t,e,i=new Map,n=new Map){let o=[],r=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,m)=>{let v=m,_=h;if(m!=="offset")switch(v=t.normalizePropertyName(v,o),_){case Sf:_=i.get(m);break;case Xn:_=n.get(m);break;default:_=t.normalizeStyleValue(m,v,_,o);break}u.set(v,_)}),d||r.push(u),a=u,s=c}),o.length)throw f5(o);return r}function Qb(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Db(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Db(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Db(i,"destroy",t)));break}}function Db(t,e,i){let n=i.totalTime,o=!!i.disabled,r=Yb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,o),s=t._data;return s!=null&&(r._data=s),r}function Yb(t,e,i,n,o="",r=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:o,totalTime:r,disabled:!!s}}function an(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function NM(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}function Zb(t){let e=t.parentNode||t.host||null;return e===C5?null:e}function w5(t){return t.substring(1,6)=="ebkit"}function E5(t){Ir||(Ir=D5()||{},jM=Ir.style?"WebkitAppearance"in Ir.style:!1);let e=!0;return Ir.style&&!w5(t)&&(e=t in Ir.style,!e&&jM&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ir.style)),e}function D5(){return typeof document<"u"?document.body:null}function $M(t,e){for(;e;){if(e===t)return!0;e=Zb(e)}return!1}function XM(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}function Pi(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:kb(parseFloat(e[1]),e[2])}function kb(t,e){switch(e){case"s":return t*I5;default:return t}}function bh(t,e,i){return t.hasOwnProperty("duration")?t:S5(t,e,i)}function S5(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,r=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(PM(t)),{duration:0,delay:0,easing:""};o=kb(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=kb(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else o=t;if(!i){let a=!1,l=e.length;o<0&&(e.push(KU()),a=!0),r<0&&(e.push(qU()),a=!0),a&&e.splice(l,0,PM(t))}return{duration:o,delay:r,easing:s}}function T5(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function oi(t,e,i){e.forEach((n,o)=>{let r=Xb(o);i&&!i.has(o)&&i.set(o,t.style[r]),t.style[r]=n})}function Sr(t,e){e.forEach((i,n)=>{let o=Xb(n);t.style[o]=""})}function fc(t){return Array.isArray(t)?t.length==1?t[0]:pD(t):t}function O5(t,e,i){let n=e.params||{},o=tS(t);o.length&&o.forEach(r=>{n.hasOwnProperty(r)||i.push(QU(r))})}function tS(t){let e=[];if(typeof t=="string"){let i;for(;i=Lb.exec(t);)e.push(i[1]);Lb.lastIndex=0}return e}function mc(t,e,i){let n=`${t}`,o=n.replace(Lb,(r,s)=>{let a=e[s];return a==null&&(i.push(YU(s)),a=""),a.toString()});return o==n?t:o}function Xb(t){return t.replace(R5,(...e)=>e[1].toUpperCase())}function F5(t,e){return t===0||e===0}function k5(t,e,i){if(i.size&&e.length){let n=e[0],o=[];if(i.forEach((r,s)=>{n.has(s)||o.push(s),n.set(s,r)}),o.length)for(let r=1;r<e.length;r++){let s=e[r];o.forEach(a=>s.set(a,Jb(t,a)))}}return e}function sn(t,e,i){switch(e.type){case ie.Trigger:return t.visitTrigger(e,i);case ie.State:return t.visitState(e,i);case ie.Transition:return t.visitTransition(e,i);case ie.Sequence:return t.visitSequence(e,i);case ie.Group:return t.visitGroup(e,i);case ie.Animate:return t.visitAnimate(e,i);case ie.Keyframes:return t.visitKeyframes(e,i);case ie.Style:return t.visitStyle(e,i);case ie.Reference:return t.visitReference(e,i);case ie.AnimateChild:return t.visitAnimateChild(e,i);case ie.AnimateRef:return t.visitAnimateRef(e,i);case ie.Query:return t.visitQuery(e,i);case ie.Stagger:return t.visitStagger(e,i);default:throw ZU(e.type)}}function Jb(t,e){return window.getComputedStyle(t)[e]}function P5(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>N5(n,i,e)):i.push(t),i}function N5(t,e,i){if(t[0]==":"){let l=j5(t,i);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(c5(t)),e;let o=n[1],r=n[2],s=n[3];e.push(BM(o,s));let a=o==_h&&s==_h;r[0]=="<"&&!a&&e.push(BM(s,o))}function j5(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n)<parseFloat(i);default:return e.push(d5(t)),"* => *"}}function BM(t,e){let i=mh.has(t)||ph.has(t),n=mh.has(e)||ph.has(e);return(o,r)=>{let s=t==_h||t==o,a=e==_h||e==r;return!s&&i&&typeof o=="boolean"&&(s=o?mh.has(t):ph.has(t)),!a&&n&&typeof r=="boolean"&&(a=r?mh.has(e):ph.has(e)),s&&a}}function iS(t,e,i,n){return new Pb(t).build(e,i,n)}function B5(t){let e=!!t.split(/\s*,\s*/).find(i=>i==nS);return e&&(t=t.replace(V5,"")),t=t.replace(/@\*/g,yh).replace(/@\w+/g,i=>yh+"-"+i.slice(1)).replace(/:animating/g,Fb),[t,e]}function U5(t){return t?A({},t):null}function z5(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function H5(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let r=bh(t,e).duration;return Ib(r,0,"")}let i=t;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Ib(0,0,"");return r.dynamic=!0,r.strValue=i,r}let o=bh(i,e);return Ib(o.duration,o.delay,o.easing)}function Mr(t){return t?(t=A({},t),t.params&&(t.params=U5(t.params))):t={},t}function Ib(t,e,i){return{duration:t,delay:e,easing:i}}function eA(t,e,i,n,o,r,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}function oS(t,e,i,n,o,r=new Map,s=new Map,a,l,c=[]){return new jb().buildKeyframes(t,e,i,n,o,r,s,a,l,c)}function zM(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function Y5(t,e){let i=new Map,n;return t.forEach(o=>{if(o==="*"){n??=e.keys();for(let r of n)i.set(r,Xn)}else for(let[r,s]of o)i.set(r,s)}),i}function HM(t,e,i,n,o,r,s,a,l,c,d,u,h){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:i,fromStyles:r,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}function Z5(t,e,i,n,o){return t.some(r=>r(e,i,n,o))}function rS(t,e){let i=A({},e);return Object.entries(t).forEach(([n,o])=>{o!=null&&(i[n]=o)}),i}function $5(t,e,i){return new zb(t,e,i)}function X5(t,e,i){let n=[(s,a)=>!0],o={type:ie.Sequence,steps:[],options:null},r={type:ie.Transition,animation:o,matchers:n,options:null,queryCount:0,depCount:0};return new wh(t,r,e)}function WM(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}function sz(t,e,i){let n=t.get(e);if(n){if(n.length){let o=n.indexOf(i);n.splice(o,1)}n.length==0&&t.delete(e)}return n}function az(t){return t??null}function gh(t){return t&&t.nodeType===1}function lz(t){return t=="start"||t=="done"}function KM(t,e){let i=t.style.display;return t.style.display=e??"none",i}function qM(t,e,i,n,o){let r=[];i.forEach(l=>r.push(KM(l)));let s=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let h=e.computeStyle(c,u,o);d.set(u,h),(!h||h.length==0)&&(c[Nn]=rz,s.push(c))}),t.set(c,d)});let a=0;return i.forEach(l=>KM(l,r[a++])),s}function QM(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,o=new Set(e),r=new Map;function s(a){if(!a)return n;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:o.has(c)?l=n:l=s(c),r.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&i.get(l).push(a)}),i}function _n(t,e){t.classList?.add(e)}function oa(t,e){t.classList?.remove(e)}function cz(t,e,i){Io(i).onDone(()=>t.processLeaveNode(e))}function dz(t){let e=[];return aS(t,e),e}function aS(t,e){for(let i=0;i<t.length;i++){let n=t[i];n instanceof xl?aS(n.players,e):e.push(n)}}function uz(t,e){let i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let o=0;o<i.length;o++){let r=i[o];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}function YM(t,e,i){let n=i.get(t);if(!n)return!1;let o=e.get(t);return o?n.forEach(r=>o.add(r)):e.set(t,n),i.delete(t),!0}function fz(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Ob(e[0]),e.length>1&&(n=Ob(e[e.length-1]))):e instanceof Map&&(i=Ob(e)),i||n?new Kb(t,i,n):null}function Ob(t){let e=null;return t.forEach((i,n)=>{hz(n)&&(e=e||new Map,e.set(n,i))}),e}function hz(t){return t==="display"||t==="position"}function mz(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function pz(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var C5,Ir,jM,$b,tA,Tr,Or,I5,JM,M5,eS,Rb,hh,yh,VM,Fb,Lb,R5,L5,Ah,_h,mh,ph,nS,V5,UM,Pb,Nb,pc,W5,G5,K5,q5,Q5,jb,xh,Vb,Ch,Bb,Mb,wh,Ub,zb,J5,Hb,GM,ez,Sb,tz,nz,iz,oz,sS,rz,Nn,gc,hc,Tb,Wb,Gb,vc,sa,ra,Kb,Eh,Dh,vh,lS,Ih,qb,Mh,nA=g(()=>{"use strict";Cl();O();O();C5=typeof document>"u"?null:document.documentElement;Ir=null,jM=!1;$b=(()=>{let e=class e{validateStyleProperty(n){return E5(n)}matchesElement(n,o){return!1}containsElement(n,o){return $M(n,o)}getParentElement(n){return Zb(n)}query(n,o,r){return XM(n,o,r)}computeStyle(n,o,r){return r||""}animate(n,o,r,s,a,l=[],c){return new vo(r,s)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),tA=class tA{};tA.NOOP=new $b;Tr=tA,Or=class{},I5=1e3,JM="{{",M5="}}",eS="ng-enter",Rb="ng-leave",hh="ng-trigger",yh=".ng-trigger",VM="ng-animating",Fb=".ng-animating";Lb=new RegExp(`${JM}\\s*(.+?)\\s*${M5}`,"g");R5=/-+([a-z0-9])/g;L5=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"]),Ah=class extends Or{normalizePropertyName(e,i){return Xb(e)}normalizeStyleValue(e,i,n,o){let r="",s=n.toString().trim();if(L5.has(i)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push($U(e,n))}return s+r}},_h="*";mh=new Set(["true","1"]),ph=new Set(["false","0"]);nS=":self",V5=new RegExp(`s*${nS}s*,?`,"g");UM="",Pb=class{constructor(e){this._driver=e}build(e,i,n){let o=new Nb(i);return this._resetContextStyleTimingState(o),sn(this,fc(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector=UM,e.collectedStyles=new Map,e.collectedStyles.set(UM,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,o=i.depCount=0,r=[],s=[];return e.name.charAt(0)=="@"&&i.errors.push(XU()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==ie.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==ie.Transition){let l=this.visitTransition(a,i);n+=l.queryCount,o+=l.depCount,s.push(l)}else i.errors.push(JU())}),{type:ie.Trigger,name:e.name,states:r,transitions:s,queryCount:n,depCount:o,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),o=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,s=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{tS(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&i.errors.push(e5(e.name,[...r.values()]))}return{type:ie.State,name:e.name,style:n,options:o?{params:o}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=sn(this,fc(e.animation),i),o=P5(e.expr,i.errors);return{type:ie.Transition,matchers:o,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:Mr(e.options)}}visitSequence(e,i){return{type:ie.Sequence,steps:e.steps.map(n=>sn(this,n,i)),options:Mr(e.options)}}visitGroup(e,i){let n=i.currentTime,o=0,r=e.steps.map(s=>{i.currentTime=n;let a=sn(this,s,i);return o=Math.max(o,i.currentTime),a});return i.currentTime=o,{type:ie.Group,steps:r,options:Mr(e.options)}}visitAnimate(e,i){let n=H5(e.timings,i.errors);i.currentAnimateTimings=n;let o,r=e.styles?e.styles:Pt({});if(r.type==ie.Keyframes)o=this.visitKeyframes(r,i);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Pt(c)}i.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,i);l.isEmptyStep=a,o=l}return i.currentAnimateTimings=null,{type:ie.Animate,timings:n,style:o,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)typeof a=="string"?a===Xn?n.push(a):i.errors.push(t5(a)):n.push(new Map(Object.entries(a)));let r=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(JM)>=0){r=!0;break}}}),{type:ie.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,o=i.currentTime,r=i.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=o&&r>=d.startTime&&o<=d.endTime&&(i.errors.push(n5(l,d.startTime,d.endTime,r,o)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:o}),i.options&&O5(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:ie.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(i5()),n;let o=1,r=0,s=[],a=!1,l=!1,c=0,d=e.steps.map(D=>{let L=this._makeStyleAst(D,i),de=L.offset!=null?L.offset:z5(L.styles),H=0;return de!=null&&(r++,H=L.offset=de),l=l||H<0||H>1,a=a||H<c,c=H,s.push(H),L});l&&i.errors.push(o5()),a&&i.errors.push(r5());let u=e.steps.length,h=0;r>0&&r<u?i.errors.push(s5()):r==0&&(h=o/(u-1));let m=u-1,v=i.currentTime,_=i.currentAnimateTimings,E=_.duration;return d.forEach((D,L)=>{let de=h>0?L==m?1:h*L:s[L],H=de*E;i.currentTime=v+_.delay+H,_.duration=H,this._validateStyleAst(D,i),D.offset=de,n.styles.push(D)}),n}visitReference(e,i){return{type:ie.Reference,animation:sn(this,fc(e.animation),i),options:Mr(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:ie.AnimateChild,options:Mr(e.options)}}visitAnimateRef(e,i){return{type:ie.AnimateRef,animation:this.visitReference(e.animation,i),options:Mr(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,o=e.options||{};i.queryCount++,i.currentQuery=e;let[r,s]=B5(e.selector);i.currentQuerySelector=n.length?n+" "+r:r,an(i.collectedStyles,i.currentQuerySelector,new Map);let a=sn(this,fc(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:ie.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Mr(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(a5());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:bh(e.timings,i.errors,!0);return{type:ie.Stagger,animation:sn(this,fc(e.animation),i),timings:n,options:null}}};Nb=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};pc=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},W5=1,G5=":enter",K5=new RegExp(G5,"g"),q5=":leave",Q5=new RegExp(q5,"g");jb=class{buildKeyframes(e,i,n,o,r,s,a,l,c,d=[]){c=c||new pc;let u=new Vb(e,i,c,o,r,d,[]);u.options=l;let h=l.delay?Pi(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),sn(this,n,u);let m=u.timelines.filter(v=>v.containsAnimation());if(m.length&&a.size){let v;for(let _=m.length-1;_>=0;_--){let E=m[_];if(E.element===i){v=E;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,u.errors,l)}return m.length?m.map(v=>v.buildKeyframes()):[eA(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let o=i.createSubContext(e.options),r=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,o,o.options);r!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let o of e){let r=o?.delay;if(r){let s=typeof r=="number"?r:Pi(mc(r,o?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let r=i.currentTimeline.currentTime,s=n.duration!=null?Pi(n.duration):null,a=n.delay!=null?Pi(n.delay):null;return s!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,i){i.updateOptions(e.options,!0),sn(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,o=i,r=e.options;if(r&&(r.params||r.delay)&&(o=i.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==ie.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=xh);let s=Pi(r.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>sn(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],o=i.currentTimeline.currentTime,r=e.options&&e.options.delay?Pi(e.options.delay):0;e.steps.forEach(s=>{let a=i.createSubContext(e.options);r&&a.delayNextStep(r),sn(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(o),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,o=i.params?mc(n,i.params,i.errors):n;return bh(o,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),o=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),o.snapshotCurrentStyles());let r=e.style;r.type==ie.Keyframes?this.visitKeyframes(r,i):(i.incrementTime(n.duration),this.visitStyle(r,i),o.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,o=i.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=o&&o.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,o=i.currentTimeline.duration,r=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(o+r),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,o=e.options||{},r=o.delay?Pi(o.delay):0;r&&(i.previousNode.type===ie.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=xh);let s=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;let u=i.createSubContext(e.options,c);r&&u.delayNextStep(r),c===i.element&&(l=u.currentTimeline),sn(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;s=Math.max(s,h)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,o=i.currentTimeline,r=e.timings,s=Math.abs(r.duration),a=s*(i.currentQueryTotal-1),l=s*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=i.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;sn(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=o.currentTime-u+(o.startTime-n.currentTimeline.startTime)}},xh={},Vb=class t{constructor(e,i,n,o,r,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ch(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,o=this.options;n.duration!=null&&(o.duration=Pi(n.duration)),n.delay!=null&&(o.delay=Pi(n.delay));let r=n.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=mc(r[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(o=>{n[o]=i[o]})}}return e}createSubContext(e=null,i,n){let o=i||this.element,r=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=xh,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let o={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new Bb(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,o,r,s){let a=[];if(o&&a.push(this.element),e.length>0){e=e.replace(K5,"."+this._enterClassName),e=e.replace(Q5,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!r&&a.length==0&&s.push(l5(i)),a}},Ch=class t{constructor(e,i,n,o){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||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+=W5,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||Xn),this._currentKeyframe.set(i,Xn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,o){i&&this._previousKeyframe.set("easing",i);let r=o&&o.params||{},s=Y5(e,this._globalTimelineStyles);for(let[a,l]of s){let c=mc(l,r,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Xn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let o=this._styleSummary.get(n);(!o||i.time>o.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Sf?e.add(u):d===Xn&&i.add(u)}),n||c.set("offset",l/this.duration),o.push(c)});let r=[...e.values()],s=[...i.values()];if(n){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return eA(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}},Bb=class extends Ch{constructor(e,i,n,o,r,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],s=n+i,a=i/s,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",zM(a)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let h=new Map(e[u]),m=h.get("offset"),v=i+m*n;h.set("offset",zM(v/s)),r.push(h)}n=s,i=0,o="",e=r}return eA(this.element,e,this.preStyleProps,this.postStyleProps,n,i,o,!0)}};Mb={},wh=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,o){return Z5(this.ast.matchers,e,i,n,o)}buildStyles(e,i,n){let o=this._stateStyles.get("*");return e!==void 0&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(i,n):new Map}build(e,i,n,o,r,s,a,l,c,d){let u=[],h=this.ast.options&&this.ast.options.params||Mb,m=a&&a.params||Mb,v=this.buildStyles(n,m,u),_=l&&l.params||Mb,E=this.buildStyles(o,_,u),D=new Set,L=new Map,de=new Map,H=o==="void",Ze={params:rS(_,h),delay:this.ast.options?.delay},He=d?[]:oS(e,i,this.ast.animation,r,s,v,E,Ze,c,u),We=0;return He.forEach(ut=>{We=Math.max(ut.duration+ut.delay,We)}),u.length?HM(i,this._triggerName,n,o,H,v,E,[],[],L,de,We,u):(He.forEach(ut=>{let xn=ut.element,Cn=an(L,xn,new Set);ut.preStyleProps.forEach(Mo=>Cn.add(Mo));let yc=an(de,xn,new Set);ut.postStyleProps.forEach(Mo=>yc.add(Mo)),xn!==i&&D.add(xn)}),HM(i,this._triggerName,n,o,H,v,E,He,[...D.values()],L,de,We))}};Ub=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,o=rS(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,a)=>{s&&(s=mc(s,o,i));let l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}};zb=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new Ub(o.style,r,n))}),WM(this.states,"true","1"),WM(this.states,"false","0"),i.transitions.forEach(o=>{this.transitionFactories.push(new wh(e,o,this.states))}),this.fallbackTransition=X5(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,o){return this.transitionFactories.find(s=>s.match(e,i,n,o))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};J5=new pc,Hb=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],o=[],r=iS(this._driver,i,n,o);if(n.length)throw h5(n);o.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,i,n){let o=e.element,r=ZM(this._normalizer,e.keyframes,i,n);return this._driver.animate(o,r,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let o=[],r=this._animations.get(e),s,a=new Map;if(r?(s=oS(this._driver,i,r,eS,Rb,new Map,new Map,n,J5,o),s.forEach(d=>{let u=an(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(m5()),s=[]),o.length)throw p5(o);a.forEach((d,u)=>{d.forEach((h,m)=>{d.set(m,this._driver.computeStyle(u,m,Xn))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Io(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw g5(e);return i}listen(e,i,n,o){let r=Yb(i,"","","");return Qb(this._getPlayer(e),n,r,o),()=>{}}command(e,i,n,o){if(n=="register"){this.register(e,o[0]);return}if(n=="create"){let s=o[0]||{};this.create(e,i,s);return}let r=this._getPlayer(e);switch(n){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(e);break}}},GM="ng-animate-queued",ez=".ng-animate-queued",Sb="ng-animate-disabled",tz=".ng-animate-disabled",nz="ng-star-inserted",iz=".ng-star-inserted",oz=[],sS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rz={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Nn="__ng_removed",gc=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),o=n?e.value:e;if(this.value=az(o),n){let r=e,{value:s}=r,a=Oh(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(o=>{n[o]==null&&(n[o]=i[o])})}}},hc="void",Tb=new gc(hc),Wb=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,_n(i,this._hostClassName)}listen(e,i,n,o){if(!this._triggers.has(i))throw v5(n,i);if(n==null||n.length==0)throw y5(i);if(!lz(n))throw b5(n,i);let r=an(this._elementListeners,e,[]),s={name:i,phase:n,callback:o};r.push(s);let a=an(this._engine.statesByElement,e,new Map);return a.has(i)||(_n(e,hh),_n(e,hh+"-"+i),a.set(i,Tb)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw A5(e);return i}trigger(e,i,n,o=!0){let r=this._getTrigger(i),s=new vc(this.id,i,e),a=this._engine.statesByElement.get(e);a||(_n(e,hh),_n(e,hh+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new gc(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Tb),!(c.value===hc)&&l.value===c.value){if(!uz(l.params,c.params)){let _=[],E=r.matchStyles(l.value,l.params,_),D=r.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Sr(e,E),oi(e,D)})}return}let h=an(this._engine.playersByElement,e,[]);h.forEach(_=>{_.namespaceId==this.id&&_.triggerName==i&&_.queued&&_.destroy()});let m=r.matchTransition(l.value,c.value,e,c.params),v=!1;if(!m){if(!o)return;m=r.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:m,fromState:l,toState:c,player:s,isFallbackTransition:v}),v||(_n(e,GM),s.onStart(()=>{oa(e,GM)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let E=this._engine.playersByElement.get(e);if(E){let D=E.indexOf(s);D>=0&&E.splice(D,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,yh,!0);n.forEach(o=>{if(o[Nn])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,i,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,i,n,o){let r=this._engine.statesByElement.get(e),s=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,hc,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&Io(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let o=new Set;i.forEach(r=>{let s=r.name;if(o.has(s))return;o.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Tb,d=new gc(hc),u=new vc(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let o=!1;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)n.markElementAsRemoved(this.id,e,!1,i);else{let r=e[Nn];(!r||r===sS)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){_n(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let o=n.player;if(o.destroyed)return;let r=n.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Yb(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Qb(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):i.push(n)}),this._queue=[],i.sort((n,o)=>{let r=n.transition.ast.depCount,s=o.transition.ast.depCount;return r==0||s==0?r-s:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Gb=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n,o){this.bodyNode=e,this.driver=i,this._normalizer=n,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Wb(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){let l=o.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return o.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let o=this._namespaceLookup[e];o&&o.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let o of n.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&i.add(r)}}return i}trigger(e,i,n,o){if(gh(i)){let r=this._fetchNamespace(e);if(r)return r.trigger(i,n,o),!0}return!1}insertNode(e,i,n,o){if(!gh(i))return;let r=i[Nn];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(i,n)}o&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),_n(e,Sb)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),oa(e,Sb))}removeNode(e,i,n){if(gh(i)){this.scheduler?.notify();let o=e?this._fetchNamespace(e):null;o?o.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let r=this.namespacesByHostElement.get(i);r&&r.id!==e&&r.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,o,r){this.collectedLeaveElements.push(i),i[Nn]={namespaceId:e,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,i,n,o,r){return gh(i)?this._fetchNamespace(e).listen(i,n,o,r):()=>{}}_buildInstruction(e,i,n,o,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,o,e.fromState.options,e.toState.options,i,r)}destroyInnerAnimations(e){let i=this.driver.query(e,yh,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Fb,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Io(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Nn];if(i&&i.setForRemoval){if(e[Nn]=sS,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Sb)&&this.markElementAsDisabled(e,!1),this.driver.query(e,tz,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let o=this.collectedEnterElements[n];_n(o,nz)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{i=this._flushAnimations(n,e)}finally{for(let o=0;o<n.length;o++)n[o]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let o=this.collectedLeaveElements[n];this.processLeaveNode(o)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?Io(i).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(e){throw _5(e)}_flushAnimations(e,i){let n=new pc,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(z=>{d.add(z);let K=this.driver.query(z,ez,!0);for(let Q=0;Q<K.length;Q++)d.add(K[Q])});let u=this.bodyNode,h=Array.from(this.statesByElement.keys()),m=QM(h,this.collectedEnterElements),v=new Map,_=0;m.forEach((z,K)=>{let Q=eS+_++;v.set(K,Q),z.forEach(Me=>_n(Me,Q))});let E=[],D=new Set,L=new Set;for(let z=0;z<this.collectedLeaveElements.length;z++){let K=this.collectedLeaveElements[z],Q=K[Nn];Q&&Q.setForRemoval&&(E.push(K),D.add(K),Q.hasAnimation?this.driver.query(K,iz,!0).forEach(Me=>D.add(Me)):L.add(K))}let de=new Map,H=QM(h,Array.from(D));H.forEach((z,K)=>{let Q=Rb+_++;de.set(K,Q),z.forEach(Me=>_n(Me,Q))}),e.push(()=>{m.forEach((z,K)=>{let Q=v.get(K);z.forEach(Me=>oa(Me,Q))}),H.forEach((z,K)=>{let Q=de.get(K);z.forEach(Me=>oa(Me,Q))}),E.forEach(z=>{this.processLeaveNode(z)})});let Ze=[],He=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(i).forEach(Q=>{let Me=Q.player,vt=Q.element;if(Ze.push(Me),this.collectedEnterElements.length){let Mt=vt[Nn];if(Mt&&Mt.setForMove){if(Mt.previousTriggersValues&&Mt.previousTriggersValues.has(Q.triggerName)){let So=Mt.previousTriggersValues.get(Q.triggerName),ln=this.statesByElement.get(Q.element);if(ln&&ln.has(Q.triggerName)){let bc=ln.get(Q.triggerName);bc.value=So,ln.set(Q.triggerName,bc)}}Me.destroy();return}}let jn=!u||!this.driver.containsElement(u,vt),Yt=de.get(vt),Ni=v.get(vt),Xe=this._buildInstruction(Q,n,Ni,Yt,jn);if(Xe.errors&&Xe.errors.length){He.push(Xe);return}if(jn){Me.onStart(()=>Sr(vt,Xe.fromStyles)),Me.onDestroy(()=>oi(vt,Xe.toStyles)),o.push(Me);return}if(Q.isFallbackTransition){Me.onStart(()=>Sr(vt,Xe.fromStyles)),Me.onDestroy(()=>oi(vt,Xe.toStyles)),o.push(Me);return}let sA=[];Xe.timelines.forEach(Mt=>{Mt.stretchStartingKeyframe=!0,this.disabledNodes.has(Mt.element)||sA.push(Mt)}),Xe.timelines=sA,n.append(vt,Xe.timelines);let xS={instruction:Xe,player:Me,element:vt};s.push(xS),Xe.queriedElements.forEach(Mt=>an(a,Mt,[]).push(Me)),Xe.preStyleProps.forEach((Mt,So)=>{if(Mt.size){let ln=l.get(So);ln||l.set(So,ln=new Set),Mt.forEach((bc,Th)=>ln.add(Th))}}),Xe.postStyleProps.forEach((Mt,So)=>{let ln=c.get(So);ln||c.set(So,ln=new Set),Mt.forEach((bc,Th)=>ln.add(Th))})});if(He.length){let z=[];He.forEach(K=>{z.push(x5(K.triggerName,K.errors))}),Ze.forEach(K=>K.destroy()),this.reportError(z)}let We=new Map,ut=new Map;s.forEach(z=>{let K=z.element;n.has(K)&&(ut.set(K,K),this._beforeAnimationBuild(z.player.namespaceId,z.instruction,We))}),o.forEach(z=>{let K=z.element;this._getPreviousPlayers(K,!1,z.namespaceId,z.triggerName,null).forEach(Me=>{an(We,K,[]).push(Me),Me.destroy()})});let xn=E.filter(z=>YM(z,l,c)),Cn=new Map;qM(Cn,this.driver,L,c,Xn).forEach(z=>{YM(z,l,c)&&xn.push(z)});let Mo=new Map;m.forEach((z,K)=>{qM(Mo,this.driver,new Set(z),l,Sf)}),xn.forEach(z=>{let K=Cn.get(z),Q=Mo.get(z);Cn.set(z,new Map([...K?.entries()??[],...Q?.entries()??[]]))});let Sh=[],oA=[],rA={};s.forEach(z=>{let{element:K,player:Q,instruction:Me}=z;if(n.has(K)){if(d.has(K)){Q.onDestroy(()=>oi(K,Me.toStyles)),Q.disabled=!0,Q.overrideTotalTime(Me.totalTime),o.push(Q);return}let vt=rA;if(ut.size>1){let Yt=K,Ni=[];for(;Yt=Yt.parentNode;){let Xe=ut.get(Yt);if(Xe){vt=Xe;break}Ni.push(Yt)}Ni.forEach(Xe=>ut.set(Xe,vt))}let jn=this._buildAnimation(Q.namespaceId,Me,We,r,Mo,Cn);if(Q.setRealPlayer(jn),vt===rA)Sh.push(Q);else{let Yt=this.playersByElement.get(vt);Yt&&Yt.length&&(Q.parentPlayer=Io(Yt)),o.push(Q)}}else Sr(K,Me.fromStyles),Q.onDestroy(()=>oi(K,Me.toStyles)),oA.push(Q),d.has(K)&&o.push(Q)}),oA.forEach(z=>{let K=r.get(z.element);if(K&&K.length){let Q=Io(K);z.setRealPlayer(Q)}}),o.forEach(z=>{z.parentPlayer?z.syncPlayerEvents(z.parentPlayer):z.destroy()});for(let z=0;z<E.length;z++){let K=E[z],Q=K[Nn];if(oa(K,Rb),Q&&Q.hasAnimation)continue;let Me=[];if(a.size){let jn=a.get(K);jn&&jn.length&&Me.push(...jn);let Yt=this.driver.query(K,Fb,!0);for(let Ni=0;Ni<Yt.length;Ni++){let Xe=a.get(Yt[Ni]);Xe&&Xe.length&&Me.push(...Xe)}}let vt=Me.filter(jn=>!jn.destroyed);vt.length?cz(this,K,vt):this.processLeaveNode(K)}return E.length=0,Sh.forEach(z=>{this.players.push(z),z.onDone(()=>{z.destroy();let K=this.players.indexOf(z);this.players.splice(K,1)}),z.play()}),Sh}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,o,r){let s=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==hc;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(n||o)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){let o=i.triggerName,r=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:o;for(let l of i.timelines){let c=l.element,d=c!==r,u=an(n,c,[]);this._getPreviousPlayers(c,d,s,a,i.toState).forEach(m=>{let v=m.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),m.destroy(),u.push(m)})}Sr(r,i.fromStyles)}_buildAnimation(e,i,n,o,r,s){let a=i.triggerName,l=i.element,c=[],d=new Set,u=new Set,h=i.timelines.map(v=>{let _=v.element;d.add(_);let E=_[Nn];if(E&&E.removedBeforeQueried)return new vo(v.duration,v.delay);let D=_!==l,L=dz((n.get(_)||oz).map(We=>We.getRealPlayer())).filter(We=>{let ut=We;return ut.element?ut.element===_:!1}),de=r.get(_),H=s.get(_),Ze=ZM(this._normalizer,v.keyframes,de,H),He=this._buildPlayer(v,Ze,L);if(v.subTimeline&&o&&u.add(_),D){let We=new vc(e,a,_);We.setRealPlayer(He),c.push(We)}return He});c.forEach(v=>{an(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>sz(this.playersByQueriedElement,v.element,v))}),d.forEach(v=>_n(v,VM));let m=Io(h);return m.onDestroy(()=>{d.forEach(v=>oa(v,VM)),oi(l,i.toStyles)}),u.forEach(v=>{an(o,v,[]).push(m)}),m}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new vo(e.duration,e.delay)}},vc=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new vo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(o=>Qb(e,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){an(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};sa=class{constructor(e,i,n,o){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Gb(e.body,i,n,o),this._timelineEngine=new Hb(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,i,n,o,r){let s=e+"-"+o,a=this._triggerCache[s];if(!a){let l=[],c=[],d=iS(this._driver,r,l,c);if(l.length)throw u5(o,l);c.length&&void 0,a=$5(o,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,o,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,o){this._transitionEngine.insertNode(e,i,n,o)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,o){if(n.charAt(0)=="@"){let[r,s]=NM(n),a=o;this._timelineEngine.command(r,i,s,a)}else this._transitionEngine.trigger(e,i,n,o)}listen(e,i,n,o,r){if(n.charAt(0)=="@"){let[s,a]=NM(n);return this._timelineEngine.listen(s,i,a,r)}return this._transitionEngine.listen(e,i,n,o,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};ra=class ra{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let o=ra.initialStylesByElement.get(e);o||ra.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&oi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(oi(this._element,this._initialStyles),this._endStyles&&(oi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ra.initialStylesByElement.delete(this._element),this._startStyles&&(Sr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sr(this._element,this._endStyles),this._endStyles=null),oi(this._element,this._initialStyles),this._state=3)}};ra.initialStylesByElement=new WeakMap;Kb=ra;Eh=class{constructor(e,i,n,o){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{o!=="offset"&&e.set(o,this._finished?n:Jb(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Dh=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return $M(e,i)}getParentElement(e){return Zb(e)}query(e,i,n){return XM(e,i,n)}computeStyle(e,i,n){return Jb(e,i)}animate(e,i,n,o,r,s=[]){let a=o==0?"both":"forwards",l={duration:n,delay:o,fill:a};r&&(l.easing=r);let c=new Map,d=s.filter(m=>m instanceof Eh);F5(n,o)&&d.forEach(m=>{m.currentSnapshot.forEach((v,_)=>c.set(_,v))});let u=T5(i).map(m=>new Map(m));u=k5(e,u,c);let h=fz(e,u);return new Eh(e,u,l,h)}},vh="@",lS="@.disabled",Ih=class{constructor(e,i,n,o){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,o=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,o)}removeChild(e,i,n){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,o){this.delegate.setAttribute(e,i,n,o)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,o){this.delegate.setStyle(e,i,n,o)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==vh&&i==lS?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},qb=class extends Ih{constructor(e,i,n,o,r){super(i,n,o,r),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==vh?i.charAt(1)=="."&&i==lS?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==vh){let o=mz(e),r=i.slice(1),s="";return r.charAt(0)!=vh&&([r,s]=pz(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,i,n)}};Mh=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(o,r)=>{let s=r?.parentNode(o);s&&r.removeChild(s,o)}}createRenderer(e,i){let n="",o=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,d=c.get(o);if(!d){let u=()=>c.delete(o);d=new Ih(n,o,this.engine,u),c.set(o,d)}return d}let r=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,s,e,c.name,c)};return i.data.animation.forEach(a),new qb(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(n));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}});function yz(){return new Ah}function bz(t,e,i){return new Mh(t,e,i)}function dS(){return to("NgEagerAnimations"),[...Az]}var vz,cS,Az,mte,uS=g(()=>{"use strict";O();O();bs();nA();nA();Ee();vz=(()=>{let e=class e extends sa{constructor(n,o,r){super(n,o,r,y(ss,{optional:!0}))}ngOnDestroy(){this.flush()}};e.\u0275fac=function(o){return new(o||e)(p(U),p(Tr),p(Or))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();cS=[{provide:Or,useFactory:yz},{provide:sa,useClass:vz},{provide:er,useFactory:bz,deps:[Nu,sa,F]}],Az=[{provide:Tr,useFactory:()=>new Dh},{provide:lt,useValue:"BrowserAnimations"},...cS],mte=[{provide:Tr,useClass:$b},{provide:lt,useValue:"NoopAnimations"},...cS]});var fS,hS=g(()=>{"use strict";uc();fS=()=>({provide:dc,useFactory:()=>({xApiKey:"",appId:"",supportEmail:"",maxCharLength:1e4,serviceUrl:"",subscriptionUrl:""})})});var mS,pS=g(()=>{"use strict";uc();mS=()=>({provide:cc,useFactory:()=>({apiUrl:""})})});var gS,vS=g(()=>{"use strict";Uu();gS=()=>({provide:Cs,useValue:{}})});var yS,bS=g(()=>{"use strict";O();Uu();Ke();yS=(t,e)=>{let i=y(Cs),n=window;if(i.skipAuthUrls?.find(o=>t.url.includes(o)))return e(t);if(n.getTildeWebComponentAuthToken){let o=n.getTildeWebComponentAuthToken;return ke(o()).pipe(je(r=>{let s=t.clone({setHeaders:{Authorization:`Bearer ${r}`}});return e(s)}))}if(i.xApiKey){let o=t.clone({setHeaders:{"X-Api-Key":`${i.xApiKey}`}});return e(o)}return e(t)}});var iA,AS=g(()=>{"use strict";Qa();O();uS();dr();hS();pS();vS();bS();iA={providers:[ww(Ew([yS])),dS(),tg(lo.forRoot()),fS(),mS(),gS()]}});var _z=DS(_S=>{iw();bs();FM();Eb();LM();AS();Ey();Rr(_S,null,function*(){let t=yield kw(iA),e=Kg(Uf,{injector:t.injector}),i=Kg(fh,{injector:t.injector});customElements.define("tilde-text-to-speech",e),customElements.define("tilde-llm",i)});kM.production||Fw(RM,iA).catch(t=>console.error(t))});export default _z();