@whoz-oss/coday-client 0.0.0-workstream-forge.170 → 0.0.0-workstream-forge.171

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.
Files changed (75) hide show
  1. package/browser/chunk-71J15-v3.js +1 -0
  2. package/browser/{chunk-B8I4f-Tr.js → chunk-8jObMYuf.js} +1 -1
  3. package/browser/{chunk-CwkXYTZA.js → chunk-B3NozCkD.js} +1 -1
  4. package/browser/chunk-BE2gr3p6.js +1 -0
  5. package/browser/{chunk-DjhKeD1b.js → chunk-BIQHTDel.js} +1 -1
  6. package/browser/chunk-BKo5gTaz.js +1 -0
  7. package/browser/{chunk-T-MyQ60v.js → chunk-BPKteNGV.js} +1 -1
  8. package/browser/chunk-BT-NlYaf.js +1 -0
  9. package/browser/{chunk-DpihPg3o.js → chunk-BTy6yKH4.js} +1 -1
  10. package/browser/{chunk-DJo3_Udm.js → chunk-BU3k32e3.js} +1 -1
  11. package/browser/chunk-B_QodpYG.js +1 -0
  12. package/browser/{chunk-YAdCsA0W.js → chunk-Blgx9AFm.js} +1 -1
  13. package/browser/chunk-Bq24Rml2.js +1 -0
  14. package/browser/{chunk-D2AQLKBp.js → chunk-BvstaQVd.js} +1 -1
  15. package/browser/{chunk-DsFj5ou4.js → chunk-C5m9mgHu.js} +1 -1
  16. package/browser/{chunk-BksPDz1g.js → chunk-CNU0caUf.js} +1 -1
  17. package/browser/chunk-C_OMTp5P.js +1 -0
  18. package/browser/{chunk-BDyOxfSx.js → chunk-CeHH5awD.js} +1 -1
  19. package/browser/{chunk-BMwQO1aF.js → chunk-CnV27gYr.js} +1 -1
  20. package/browser/{chunk-t7hrk6-r.js → chunk-Co0A853g.js} +1 -1
  21. package/browser/{chunk-QAL0dGUf.js → chunk-CoRwPlfd.js} +1 -1
  22. package/browser/chunk-D-BPxKQ6.js +1 -0
  23. package/browser/chunk-D2S3Krd9.js +1 -0
  24. package/browser/chunk-D8_LjQNu.js +668 -0
  25. package/browser/chunk-DDOr2TDF.js +1 -0
  26. package/browser/{chunk-B6iOc9hF.js → chunk-DFBs-RE9.js} +1 -1
  27. package/browser/{chunk-D8BdDsLf.js → chunk-DLChehGS.js} +1 -1
  28. package/browser/chunk-DQWi-xSi.js +1 -0
  29. package/browser/chunk-DVl0k4as.js +1 -0
  30. package/browser/chunk-DW2g7bf8.js +1 -0
  31. package/browser/{chunk-D1sMiX8H.js → chunk-DYTKtJg4.js} +1 -1
  32. package/browser/{chunk-DOdWgrVq.js → chunk-DZQmSPQb.js} +1 -1
  33. package/browser/{chunk-iSSo0lPZ.js → chunk-DcZyBFc0.js} +1 -1
  34. package/browser/chunk-DrWMSNHn.js +1 -0
  35. package/browser/chunk-DrpC3fGm.js +1 -0
  36. package/browser/chunk-DsTtqeXD.js +1 -0
  37. package/browser/chunk-DviWI6ZH.js +1 -0
  38. package/browser/chunk-EVTfRXob.js +1 -0
  39. package/browser/chunk-EnGHXwUB.js +1 -0
  40. package/browser/chunk-P4r1dEyn.js +2 -0
  41. package/browser/chunk-dhR_kF8u.js +1 -0
  42. package/browser/chunk-m9jY08fz.js +1 -0
  43. package/browser/chunk-w5fqwHg4.js +1 -0
  44. package/browser/chunk-xALPtt6X.js +1 -0
  45. package/browser/chunk-xgxXbGGi.js +1 -0
  46. package/browser/index.html +3 -3
  47. package/browser/{main-UDKVTVAZ.js → main-YWZOZ7BG.js} +1 -1
  48. package/browser/{styles-MKNSQU7Y.css → styles-FNIV4SFO.css} +1 -1
  49. package/package.json +1 -1
  50. package/browser/chunk-9BCVk9NQ.js +0 -1
  51. package/browser/chunk-9MylQlFX.js +0 -1
  52. package/browser/chunk-BAVg53Gi.js +0 -1
  53. package/browser/chunk-BB_dA66R.js +0 -1
  54. package/browser/chunk-BGhzqfFE.js +0 -1
  55. package/browser/chunk-BSyalGSH.js +0 -1
  56. package/browser/chunk-Bfn_agkT.js +0 -1
  57. package/browser/chunk-CCbfhj2G.js +0 -1
  58. package/browser/chunk-CGCJZ64O.js +0 -1
  59. package/browser/chunk-CJHYrcx3.js +0 -1
  60. package/browser/chunk-CXDCRruq.js +0 -1
  61. package/browser/chunk-CgAHFQGb.js +0 -2
  62. package/browser/chunk-CxFvnhVl.js +0 -1
  63. package/browser/chunk-D0KyNALN.js +0 -1
  64. package/browser/chunk-DB2QUY1u.js +0 -1
  65. package/browser/chunk-DGErIFJc.js +0 -668
  66. package/browser/chunk-DJxwfugY.js +0 -1
  67. package/browser/chunk-DT9JiqnH.js +0 -1
  68. package/browser/chunk-DTD__Dn_.js +0 -1
  69. package/browser/chunk-DUCp8ptZ.js +0 -1
  70. package/browser/chunk-DglVEB0S.js +0 -1
  71. package/browser/chunk-DuNCuAwy.js +0 -1
  72. package/browser/chunk-Dvoa2pcH.js +0 -1
  73. package/browser/chunk-Dz6l4scy.js +0 -1
  74. package/browser/chunk-QJCDzExw.js +0 -1
  75. package/browser/chunk-q29IcxwC.js +0 -1
@@ -561,4 +561,4 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
561
561
  }
562
562
  `],encapsulation:2,changeDetection:1})}return n})(),Ce$3="--mat-dialog-transition-duration";function Ae$3(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?We$1(n.substring(0,n.length-2)):n.endsWith("s")?We$1(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var F$3=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(F$3||{}),W$2=class W{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new _r$1(1);_beforeClosed=new _r$1(1);_result;_closeFallbackTimeout;_state=F$3.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Ot$3(i=>i.state==="opened"),sn$1(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ot$3(i=>i.state==="closed"),sn$1(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Ay(this.backdropClick(),this.keydownEvents().pipe(Ot$3(i=>i.keyCode===27&&!this.disableClose&&!Qe$2(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),je$2(this,i.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(Ot$3(t=>t.state==="closing"),sn$1(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=F$3.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=F$3.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function je$2(n,a,e){return n._closeInteractionType=a,n.close(e)}var Ne$3=new w("MatMdcDialogData"),Ve$3=new w("mat-mdc-dialog-default-options"),ze$2=new w("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=g$1(pe$4);return ()=>ln(n)}}),Et$2=(()=>{class n{_defaultOptions=g$1(Ve$3,{optional:true});_scrollStrategy=g$1(ze$2);_parentDialog=g$1(n,{optional:true,skipSelf:true});_idGenerator=g$1(lt$2);_injector=g$1(pe$4);_dialog=g$1(be$2);_animationsDisabled=tt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ue$1;_afterOpenedAtThisLevel=new ue$1;dialogConfigClass=L$1;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=xy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(md(void 0)));constructor(){this._dialogRefConstructor=W$2,this._dialogContainerType=Be$3,this._dialogDataToken=Ne$3;}open(e,t){let i;t=w$1(w$1({},this._defaultOptions||new L$1),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,x$2(w$1({},t),{positionStrategy:gn(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:i}),providers:(l,s,d)=>(i=new this._dialogRefConstructor(l,t,d),i.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=o.componentRef,i.componentInstance=o.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(i);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),i}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Ce$5({token:n,factory:n.\u0275fac})}return n})();function U$3(n){n||(n=g$1(Ie$4));let e=new R$2(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Cd(e))}function T$1(n,e){let t=g$1(pe$4),o=new _r$1(1),c=Af(()=>{let r;try{r=n();}catch(i){wo$1(()=>o.error(i));return}wo$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(Ie$4).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$2(n,e){let o=!e?.manualCleanup?e?.injector?.get(Ie$4)??g$1(Ie$4):null,c=h(e?.equal),r;e?.requireSync?r=Ui$2({kind:0},{equal:c}):r=Ui$2({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new m$1(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),KC(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$1(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:l,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),r!==void 0&&(this.basePath=r),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=l??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}isJsonMime(x){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return x!==null&&(n.test(x)||x.toLowerCase()==="application/json-patch+json")}lookupCredential(x){let n=this.credentials[x];return typeof n=="function"?n():n}addCredentialToHeaders(x,n,r,l){let o=this.lookupCredential(x);return o?r.set(n,(l??"")+o):r}addCredentialToQuery(x,n,r){let l=this.lookupCredential(x);return l?r.set(n,l):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$1=new w("basePath");var M=class{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$1=class j{basePath="http://localhost:18124";defaultHeaders=new xt$1;configuration;encoder;constructor(x,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(x)?x[0]:void 0;r!=null&&(x=r),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new M;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,l=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,l?r:void 0,l):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,l=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return l?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),x):x.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,r));else if(n instanceof Date)if(r!=null)x=x.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(r!=null)return x.append(r,n);throw Error("key may not be null if value is not object or array")}};var $$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getDefinitionAgentConfig(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,l,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new Ks,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",l=false,o){let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new Ks,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}searchAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var U$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var N=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByNamespaceIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listPlatformLevelAiModel(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAiProvider(n,r,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;addMessageCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new Ks,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}createCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}interruptCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}killCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserExternalIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserInNamespaceCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listMineByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}markCaseRead(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reopenCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setReasoningEffortCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}starCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unstarCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var D=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listIntegrationConfig(n,r,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listTypesIntegrationType(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAllNamespace(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}undeployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}removeAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setAssociationNamespaceGit(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new Ks,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByCaseTreeUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByModelUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new Ks,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(l==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,l,"from"),p=this.addToHttpParams(p,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new Ks,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var we$1=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(we$1||{});var Te$1=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Te$1||{});var Ie$2=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Ie$2||{});var Re$2=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Re$2||{});var L=class C{config=g$1(y);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new R$2(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$1=class C{http=g$1(Xm);config=g$1(y);exportAsYaml(x){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var K$2=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(K$2||{});var Q$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(Q$1||{});var Ee$1=K$2,Oe$1=Q$1;var Ve$2={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Se$2={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAuthSetting(n,r,l="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var Z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersCaseMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ee$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}diffCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}refreshCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}retryCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var te$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;applyConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(l==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new Ks,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new Ks,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new Ks,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}browseNamespaceFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new Nt$3({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new Ks,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}deleteCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getNamespaceFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new Nt$3({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new Nt$3({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseEventFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var re$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ae$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersNamespaceMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;grantAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}grantMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reloadAllAgentsPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}startPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deletePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectivePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}translateBatchPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}translatePrompt(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(l==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new Ks,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var le$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopCostRunRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectiveScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateScheduledPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listEffectiveSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new Ks,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}listPlatformSkill(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseInvalidationsNamespaceCaseInvalidationSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-invalidation`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseListUpdatesNamespaceCaseListUpdateSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/case-list-updates`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}streamEventsCaseEventSse(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listToolInvoke(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var he$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ge$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getGroupsByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMeUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new Ks,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}revokeNamespaceAccessByExternalIdUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new Ks,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$2=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}findByNamespaceIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new Nt$3({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new Ks,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}getByIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMembersUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new Ks,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateUserGroup(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new Ks,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$1(Xm),b$1(P$1,8),b$1(y,8))};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var qe$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(qe$2||{});var Me$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Me$2||{});var Be$2=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Be$2||{});var $e$1=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))($e$1||{}),Ue$1=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Ue$1||{});var Ne$2=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(Ne$2||{});function Xc(C){return wt$2([typeof C=="string"?{provide:P$1,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=g$1(y);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new R$2(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return l.addEventListener("case-event",o),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=g$1(y);zone=g$1(G$4);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new R$2(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var me$1=class C{http=g$1(Xm);config=g$1(y);exportAsYaml(x){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye$2=class C{http=g$1(Xm);config=g$1(y);exportAsYaml(x){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ae$2=class C{http=g$1(Xm);config=g$1(y);invoke(x){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,x)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x$1({token:C,factory:C.\u0275fac,providedIn:"root"})};
563
563
  var p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(By()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei$1(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return Sy(t)?t:Rs$1(t)?Ye$2(Promise.resolve(t)):Cr$1(t)}function Nn$1(t){return Sy(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return KC(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui$1.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li$1(n.queryParams),i=typeof n.fragment=="string"?`#${Oi$1(n.fragment)}`:"";return `${e}${r}${i}`}},Ui$1=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi$1(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li$1(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji$1=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji$1);return n?n[0]:""}var xi$1=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi$1);return n?n[0]:""}var $i$1=/^[^=?&#]+/;function zi$1(t){let n=t.match($i$1);return n?n[0]:""}var Hi$1=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi$1);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$1(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$1(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$1(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new m$1(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi$1(e)}function qi$1(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi$1(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi$1(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new m$1(4003,false);let i=r.find(He);if(i&&i!==Ei$1(r))throw new m$1(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi$1(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi$1(e,i,t.numberOfDoubleDots)}function Gi$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$1(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi$1(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi$1(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki$1(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se$1="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),O$1=class O{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O$1{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O$1{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$=class extends O$1{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G$1=class G extends O$1{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de=class extends O$1{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O$1{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O$1{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt$1=class Rt extends O$1{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O$1{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O$1{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi$1(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(b$1(fe$3))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi$1(t,n),r=new wr$1([new ee$1("",{})]),i=new wr$1({}),o=new wr$1({}),a=new wr$1({}),c=new wr$1(""),s=new W(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi$1(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ne$2(u=>u[Qe$1]))??Cr$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ne$2(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne$2(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji$1="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new w(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new yt$2;deactivateEvents=new yt$2;attachEvents=new yt$2;detachEvents=new yt$2;routerOutletData=DB();parentContexts=g$1(pe$1);location=g$1(pr$1);changeDetector=g$1(sm);inputBinder=g$1(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$1(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$1(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$1(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new m$1(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=al({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Du]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new w(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=wy([this.options.queryParams?r.queryParams:Cr$1({}),r.params,r.data]).pipe(fa(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?Cr$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=MB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){kI();};static \u0275prov=x$1({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=mw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&lg(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$2(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi$1(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W(new wr$1(t.url),new wr$1(t.params),new wr$1(t.queryParams),new wr$1(t.fragment),new wr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe$1(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Jy(t)?t:n.get(t):r}function xe$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe$1(t,n,c?c.children:null,r,i):xe$1(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe$1(t,null,c?c.children:null,r,i):xe$1(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return qn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e(a,n.children.getContext(o),e):$e(a,null,e):$e(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof on$1||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return fa(t=>wy(t.map(n=>n.pipe(sn$1(1),md(ht$1)))).pipe(ne$2(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),Ot$3(n=>n!==ht$1),sn$1(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?Cr$1(void 0).pipe(sn$1(1)):new R$2(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return Cd(Jn$1(t))}function go(t){return ht$3(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Cr$1(x$2(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(ht$3(a=>a&&so(a)?mo(e,i,t):Cr$1(a)),ne$2(a=>x$2(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Ye$2(t).pipe(ht$3(r=>wo(r.component,r.route,e,n)),By(r=>r!==true,true))}function mo(t,n,e){return Ye$2(n).pipe(ui$3(r=>kt$3(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),By(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),Cr$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),Cr$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Cr$1(true);let r=e.map(i=>xy(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):qn$3(o,()=>a(n,t));return fe$1(c).pipe(By())}));return Cr$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>xy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):qn$3(s,()=>u(e,t));return fe$1(d).pipe(By())});return Cr$1(a).pipe(Ne$1())}));return Cr$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Cr$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):qn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(By())});return Cr$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Cr$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):qn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return Cr$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return ry(yd(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),ne$2(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return Cr$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):qn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return Cr$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new m$1(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$2(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$2(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$1(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1(qn$3(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=Jh(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return Cr$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(ne$2(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn$1(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot$1(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot$1(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot$1(t,n,r))}function Ot$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$2(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$1(4002,`'${n.segmentGroup}'`)}recognize(){return B$2(this,null,function*(){let n=bn$1(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$2(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$2(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$2(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$2(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$2(this,null,function*(){if(H(r)!==a&&(a===p||!Ot$1(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$2(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$2(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn$1(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$2(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return ht$3(c=>B$2(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$2(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return ht$3(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Cr$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return Ye$2(o).pipe(ui$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,Cr$1(void 0))),yd(()=>a++),Vy(1),ht$3(c=>a===o.size?Cr$1(n):nn$1))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),xy(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(ne$2(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return Cr$1({});let i={};return Ye$2(r).pipe(ht$3(o=>Go(t[o],n,e).pipe(By(),yd(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),Vy(1),ne$2(()=>i),da(o=>Zn$1(o)?nn$1:by(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):qn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return fa(n=>{let e=t(n);return e?Ye$2(e).pipe(ne$2(()=>n)):Cr$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(b$1(SH))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new w("",{factory:()=>({})}),ge$1=new w(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g$1(ZC);loadComponent(e,r){return B$2(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$2(this,null,function*(){try{let o=yield Nn$1(qn$3(e,()=>r.loadComponent())),a=yield si$1(yB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=B$2(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$2(this,null,function*(){let i=yield Nn$1(qn$3(e,()=>t.loadChildren())),o=yield si$1(yB(i)),a;o instanceof Xh||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$2(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),Tr=new w(""),Nr=new w("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$5);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&qn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{hE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new w(""),Ko=()=>{},Mr=new w(""),jt=(()=>{class t{currentNavigation=Ui$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Ui$2(null);events=new ue$1;transitionAbortWithErrorSubject=new ue$1;configLoader=g$1(Pt$1);environmentInjector=g$1(fe$3);destroyRef=g$1(Ie$4);urlSerializer=g$1(ne);rootContexts=g$1(pe$1);location=g$1(gm);inputBindingEnabled=g$1(Ke$1,{optional:true})!==null;titleStrategy=g$1(Er);options=g$1(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji$1;urlHandlingStrategy=g$1(Lt);createViewTransition=g$1(Tr,{optional:true});navigationErrorHandler=g$1(Mr,{optional:true});activatedRouteInjectorFeature=g$1(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Cr$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;wo$1(()=>{this.transitions?.next(x$2(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new wr$1(null),this.transitions.pipe(Ot$3(r=>r!==null),fa(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return Cr$1(r).pipe(fa(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),nn$1;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?x$2(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),nn$1;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Cr$1(s).pipe(fa(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?nn$1:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),yd(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),fa(g=>Ye$2(r.routesRecognizeHandler.deferredHandle??Cr$1(void 0)).pipe(ne$2(()=>g))),yd(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$2(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$2(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),Cr$1(r)}else return this.events.next(new G$1(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),nn$1}),ne$2(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$2(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),fa(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return nn$1;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),nn$1;if(s.guards.canActivateChecks.length===0)return Cr$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return nn$1;let v=false;return Cr$1(s).pipe(qo(this.paramsInheritanceStrategy),yd({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?Cr$1(s):Ye$2(Promise.all(d).then(()=>s))}),fa(s=>{let{newlyCreatedRoutes:u,state:d}=Xi$1(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$2(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),Cr$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),fa(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?Ye$2(d).pipe(ne$2(()=>r)):Cr$1(r)}),sn$1(1),fa(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Ye$2(u.then(()=>s)):Cr$1(s)}),yd(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(wo$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Cd(Jn$1(a.signal).pipe(Ot$3(()=>!o&&i),yd(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),yd({complete:()=>{o=true;}}),Cd(this.transitionAbortWithErrorSubject.pipe(yd(s=>{throw s}))),li$2(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),da(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),nn$1;if(Yn$1(s))this.events.next(new $(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=qn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return nn$1}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=wo$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se$1}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li=new w("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g$1(ne);options=g$1(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g$1(gm);urlHandlingStrategy=g$1(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g$1(fe$3));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g$1(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G$1?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $&&!Fn$1(e)?this.restoreHistory(r):e instanceof de?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function kt$1(t,n){t.events.pipe(Ot$3(e=>e instanceof P||e instanceof $||e instanceof de||e instanceof G$1),ne$2(e=>e instanceof P||e instanceof G$1?0:(e instanceof $?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),Ot$3(e=>e!==2),sn$1(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g$1(sg);stateManager=g$1(xt);options=g$1(ie,{optional:true})||{};pendingTasks=g$1(qt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g$1(jt);urlSerializer=g$1(ne);location=g$1(gm);urlHandlingStrategy=g$1(Lt);injector=g$1(fe$3);_events=new ue$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g$1(hi$1);injectorCleanup=g$1(li,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g$1(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g$1(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ee$3;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=wo$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se$1,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi$1(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se$1,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$2(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(ot$1)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return wo$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se$1,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Xe$1(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt$1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$1(4008,false)}var ea=(()=>{class t{router=g$1(F);stateManager=g$1(xt);fragment=Ui$2("");queryParams=Ui$2({});path=Ui$2("");serializer=g$1(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g$1(new Yg("href"),{optional:true});reactiveHref=JC(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return wo$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return wo$1(this._target)}_target=Ui$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return wo$1(this._queryParams)}_queryParams=Ui$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return wo$1(this._fragment)}_fragment=Ui$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return wo$1(this._queryParamsHandling)}_queryParamsHandling=Ui$2(void 0);set state(e){this._state.set(e);}get state(){return wo$1(this._state)}_state=Ui$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return wo$1(this._info)}_info=Ui$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return wo$1(this._relativeTo)}_relativeTo=Ui$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return wo$1(this._preserveFragment)}_preserveFragment=Ui$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return wo$1(this._skipLocationChange)}_skipLocationChange=Ui$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return wo$1(this._replaceUrl)}_replaceUrl=Ui$2(false);browserUrl=DB(void 0);isAnchorElement;onChanges=new ue$1;applicationErrorHandler=g$1(ot$1);options=g$1(ie,{optional:true});reactiveRouterState=g$1(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Ui$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=KC(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return wo$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(ze$3(F),ze$3(W),Iu("tabindex"),ze$3(Yu),ze$3(xn$3),ze$3(yr$1))};static \u0275dir=al({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&mg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&cg("href",i.reactiveHref(),KD)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",AT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",AT],replaceUrl:[2,"replaceUrl","replaceUrl",AT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Du]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new yt$2;link=g$1($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){Cr$1(this.links.changes,Cr$1(null)).pipe(Sr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Ye$2(e).pipe(Sr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?wo$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(ze$3(F),ze$3(xn$3),ze$3(Yu),ze$3(sm))};static \u0275dir=al({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Dg(o,$t,5),r&2){let a;rC(a=oC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Du]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ot$3(e=>e instanceof P),ui$3(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Jh(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Ye$2(i).pipe(Sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return Cr$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Ye$2(this.loader.loadChildren(e,r)):i=Cr$1(null);let o=i.pipe(ht$3(a=>a===null?Cr$1(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Ye$2([o,a]).pipe(Sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$1(F),b$1(fe$3),b$1(Ze),b$1(Pt$1))};static \u0275prov=x$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new w(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se$1;restoredId=0;store={};isHydrating=g$1(yD,{optional:true})??false;urlSerializer=g$1(ne);zone=g$1(G$4);viewportScroller=g$1(JV);transitions=g$1(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g$1(gr$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G$1&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=wo$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$2(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){kI();};static \u0275prov=x$1({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return wt$2([{provide:ge$1,multi:true,useValue:t},{provide:W,useFactory:pi$1},{provide:dl,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g$1(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g$1(pe$4);return n=>{let e=t.get(gr$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new w("",{factory:()=>new ue$1}),_r=new w("",{factory:()=>1});function mi$1(){let t=[{provide:zp,useValue:true},{provide:_r,useValue:0},Iw(()=>{let n=g$1(pe$4);return n.get(kT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt$1(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?Cr$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Iw(()=>{g$1(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new w("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi(t){ut$2("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[gm,{provide:ne,useClass:Y},F,pe$1,{provide:W,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Os$1({type:t});static \u0275inj=Br({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g$1(JV),n=g$1(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:yr$1,useClass:jT}}function ca(){return {provide:yr$1,useClass:hm}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new w("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:dl,multi:true,useExisting:Dr}]}
564
- var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),x="*";function Sn(s,e=null){return {type:_.Sequence,steps:s,options:e}}function nt(s){return {type:_.Style,styles:s,offset:null}}var Q=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}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);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++n==r&&this._onDestroy();}),a.onStart(()=>{++i==r&&this._onStart();});}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},he="!";function vn(s){return new m$1(3e3,false)}function Ai(){return new m$1(3100,false)}function ki(){return new m$1(3101,false)}function Pi(s){return new m$1(3001,false)}function Ci(s){return new m$1(3003,false)}function Mi(s){return new m$1(3004,false)}function bn(s,e){return new m$1(3005,false)}function Tn(){return new m$1(3006,false)}function wn(){return new m$1(3007,false)}function An(s,e){return new m$1(3008,false)}function kn(s){return new m$1(3002,false)}function Pn(s,e,t,n,i){return new m$1(3010,false)}function Cn(){return new m$1(3011,false)}function Mn(){return new m$1(3012,false)}function Nn(){return new m$1(3200,false)}function Dn(){return new m$1(3202,false)}function Rn(){return new m$1(3013,false)}function On(s){return new m$1(3014,false)}function Fn(s){return new m$1(3015,false)}function In(s){return new m$1(3016,false)}function Ln(s,e){return new m$1(3404,false)}function Ni(s){return new m$1(3502,false)}function Bn(s){return new m$1(3503,false)}function xn(){return new m$1(3300,false)}function zn(s){return new m$1(3504,false)}function Kn(s){return new m$1(3301,false)}function qn(s,e){return new m$1(3302,false)}function Vn(s){return new m$1(3303,false)}function jn(s,e){return new m$1(3400,false)}function Qn(s){return new m$1(3401,false)}function Un(s){return new m$1(3402,false)}function $n(s,e){return new m$1(3505,false)}function U(s){switch(s.length){case 0:return new Q;case 1:return s[0];default:return new re(s)}}function at(s,e,t=new Map,n=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==a,u=d&&o||new Map;l.forEach((S,y)=>{let m=y,g=S;if(y!=="offset")switch(m=s.normalizePropertyName(m,i),g){case he:g=t.get(y);break;case x:g=n.get(y);break;default:g=s.normalizeStyleValue(y,m,g,i);break}u.set(m,g);}),d||r.push(u),o=u,a=c;}),i.length)throw Ni();return r}function Ae(s,e,t,n){switch(e){case "start":s.onStart(()=>n(t&&it(t,"start",s)));break;case "done":s.onDone(()=>n(t&&it(t,"done",s)));break;case "destroy":s.onDestroy(()=>n(t&&it(t,"destroy",s)));break}}function it(s,e,t){let n=t.totalTime,i=!!t.disabled,r=ke(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n??s.totalTime,i),a=s._data;return a!=null&&(r._data=a),r}function ke(s,e,t,n,i="",r=0,a){return {element:s,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function R(s,e,t){let n=s.get(e);return n||s.set(e,n=t),n}function ot(s){let e=s.indexOf(":"),t=s.substring(1,e),n=s.slice(e+1);return [t,n]}var Di=typeof document>"u"?null:document.documentElement;function Pe(s){let e=s.parentNode||s.host||null;return e===Di?null:e}function Ri(s){return s.substring(1,6)=="ebkit"}var Z=null,En=false;function Gn(s){Z||(Z=Oi()||{},En=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Ri(s)&&(e=s in Z.style,!e&&En&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Z.style)),e}function Oi(){return typeof document<"u"?document.body:null}function lt(s,e){for(;e;){if(e===s)return true;e=Pe(e);}return false}function ct(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let n=s.querySelector(e);return n?[n]:[]}var Fi=1e3,ut="{{",Ii="}}",dt="ng-enter",Ce="ng-leave",me="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function j(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:st(parseFloat(e[1]),e[2])}function st(s,e){return e==="s"?s*Fi:s}function pe(s,e,t){return s.hasOwnProperty("duration")?s:Bi(s,e,t)}var Li=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Bi(s,e,t){let n,i=0,r="";if(typeof s=="string"){let a=s.match(Li);if(a===null)return e.push(vn()),{duration:0,delay:0,easing:""};n=st(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=st(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else n=s;if(!t){let a=false,o=e.length;n<0&&(e.push(Ai()),a=true),i<0&&(e.push(ki()),a=true),a&&e.splice(o,0,vn());}return {duration:n,delay:i,easing:r}}function Wn(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function z(s,e,t){e.forEach((n,i)=>{let r=Ne(i);t&&!t.has(i)&&t.set(i,s.style[r]),s.style[r]=n;});}function G(s,e){e.forEach((t,n)=>{let i=Ne(n);s.style[i]="";});}function ae(s){return Array.isArray(s)?s.length==1?s[0]:Sn(s):s}function Hn(s,e,t){let n=e.params||{},i=mt(s);i.length&&i.forEach(r=>{n.hasOwnProperty(r)||t.push(Pi());});}var rt=new RegExp(`${ut}\\s*(.+?)\\s*${Ii}`,"g");function mt(s){let e=[];if(typeof s=="string"){let t;for(;t=rt.exec(s);)e.push(t[1]);rt.lastIndex=0;}return e}function oe(s,e,t){let n=`${s}`,i=n.replace(rt,(r,a)=>{let o=e[a];return o==null&&(t.push(Ci()),o=""),o.toString()});return i==n?s:i}var xi=/-+([a-z0-9])/g;function Ne(s){return s.replace(xi,(...e)=>e[1].toUpperCase())}function Yn(s,e){return s===0||e===0}function Xn(s,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((r,a)=>{n.has(a)||i.push(a),n.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,De(s,o)));}}return e}function O(s,e,t){switch(e.type){case _.Trigger:return s.visitTrigger(e,t);case _.State:return s.visitState(e,t);case _.Transition:return s.visitTransition(e,t);case _.Sequence:return s.visitSequence(e,t);case _.Group:return s.visitGroup(e,t);case _.Animate:return s.visitAnimate(e,t);case _.Keyframes:return s.visitKeyframes(e,t);case _.Style:return s.visitStyle(e,t);case _.Reference:return s.visitReference(e,t);case _.AnimateChild:return s.visitAnimateChild(e,t);case _.AnimateRef:return s.visitAnimateRef(e,t);case _.Query:return s.visitQuery(e,t);case _.Stagger:return s.visitStagger(e,t);default:throw Mi(e.type)}}function De(s,e){return window.getComputedStyle(s)[e]}var Nt=(()=>{class s{validateStyleProperty(t){return Gn(t)}containsElement(t,n){return lt(t,n)}getParentElement(t){return Pe(t)}query(t,n,i){return ct(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,r,a,o=[],l){return new Q(i,r)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=x$1({token:s,factory:s.\u0275fac})}return s})(),ee=class{static NOOP=new Nt},te=class{};var zi=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"]),Le=class extends te{normalizePropertyName(e,t){return Ne(e)}normalizeStyleValue(e,t,n,i){let r="",a=n.toString().trim();if(zi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else {let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(bn());}return a+r}};var Be="*";function Ki(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(n=>qi(n,t,e)):t.push(s),t}function qi(s,e,t){if(s[0]==":"){let l=Vi(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let n=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Fn()),e;let i=n[1],r=n[2],a=n[3];e.push(Zn(i,a));let o=i==Be&&a==Be;r[0]=="<"&&!o&&e.push(Zn(a,i));}function Vi(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(In()),"* => *"}}var Re=new Set(["true","1"]),Oe=new Set(["false","0"]);function Zn(s,e){let t=Re.has(s)||Oe.has(s),n=Re.has(e)||Oe.has(e);return (i,r)=>{let a=s==Be||s==i,o=e==Be||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?Re.has(s):Oe.has(s)),!o&&n&&typeof r=="boolean"&&(o=r?Re.has(e):Oe.has(e)),a&&o}}var ci=":self",ji=new RegExp(`s*${ci}s*,?`,"g");function ui(s,e,t,n){return new St(s).build(e,t,n)}var Jn="",St=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new vt(t);return this._resetContextStyleTimingState(i),O(this,ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Jn,e.collectedStyles=new Map,e.collectedStyles.set(Jn,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Tn()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t));}),l.name=c;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(wn());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=i||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{mt(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(An(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=O(this,ae(e.animation),t),i=Ki(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(n=>O(this,n,t)),options:J(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=n;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let n=Gi(e.timings,t.errors);t.currentAnimateTimings=n;let i,r=e.styles?e.styles:nt({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let c={};n.easing&&(c.easing=n.easing),a=nt(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===x?n.push(o):t.errors.push(kn()):n.push(new Map(Object.entries(o)));let r=false,a=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:n,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=true;d&&(r!=i&&r>=d.startTime&&i<=d.endTime&&(t.errors.push(Pn(l,d.startTime,d.endTime)),u=false),r=d.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&Hn(o,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cn()),n;let i=1,r=0,a=[],o=false,l=false,c=0,d=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:$i(A.styles),P=0;return M!=null&&(r++,P=A.offset=M),l=l||P<0||P>1,o=o||P<c,c=P,a.push(P),A});l&&t.errors.push(Mn()),o&&t.errors.push(Nn());let u=e.steps.length,S=0;r>0&&r<u?t.errors.push(Dn()):r==0&&(S=i/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return d.forEach((w,A)=>{let M=S>0?A==y?1:S*A:a[A],P=M*b;t.currentTime=m+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=M,n.styles.push(w);}),n}visitReference(e,t){return {type:_.Reference,animation:O(this,ae(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Qi(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Rn());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:pe(e.timings,t.errors,true);return {type:_.Stagger,animation:O(this,ae(e.animation),t),timings:n,options:null}}};function Qi(s){let e=!!s.split(/\s*,\s*/).find(t=>t==ci);return e&&(s=s.replace(ji,"")),s=s.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[s,e]}function Ui(s){return s?w$1({},s):null}var vt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function $i(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gi(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=pe(s,e).duration;return ft(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=pe(t,e);return ft(i.duration,i.delay,i.easing)}function J(s){return s?(s=w$1({},s),s.params&&(s.params=Ui(s.params))):s={},s}function ft(s,e,t){return {duration:s,delay:e,easing:t}}function Dt(s,e,t,n,i,r,a=null,o=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ye=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Wi=1,Hi=":enter",Yi=new RegExp(Hi,"g"),Xi=":leave",Zi=new RegExp(Xi,"g");function di(s,e,t,n,i,r=new Map,a=new Map,o,l,c=[]){return new Et().buildKeyframes(s,e,t,n,i,r,a,o,l,c)}var Et=class{buildKeyframes(e,t,n,i,r,a,o,l,c,d=[]){c=c||new ye;let u=new bt(e,t,c,i,r,d,[]);u.options=l;let S=l.delay?j(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,n,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:j(oe(r,i?.params??{},t.errors));n.delayNextStep(a);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,a=n.duration!=null?j(n.duration):null,o=n.delay!=null?j(n.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,c.duration+c.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),O(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=xe);let a=j(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?j(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline);}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?oe(n,t.params,t.errors):n;return pe(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?j(i.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=xe);let a=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;a=Math.max(a,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=o-l;break;case "full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;O(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime);}},xe={},bt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=xe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new ze(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=j(n.duration)),n.delay!=null&&(i.delay=j(n.delay));let r=n.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=oe(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,r=new s(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,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=xe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Yi,"."+this._enterClassName),e=e.replace(Zi,"."+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)),o.push(...c);}return !r&&o.length==0&&a.push(On()),o}},ze=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||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+=Wi,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||x),this._currentKeyframe.set(t,x);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Ji(e,this._globalTimelineStyles);for(let[o,l]of a){let c=oe(l,r,n);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??x),this._updateStyle(o,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((d,u)=>{d===he?e.add(u):d===x&&t.add(u);}),n||c.set("offset",l/this.duration),i.push(c);});let r=[...e.values()],a=[...t.values()];if(n){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return Dt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},Tt=class extends ze{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,r,a,o=false){super(e,t,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=n+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",ei(o)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let S=new Map(e[u]),y=S.get("offset"),m=t+y*n;S.set("offset",ei(m/a)),r.push(S);}n=a,t=0,i="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function ei(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Ji(s,e){let t=new Map,n;return s.forEach(i=>{if(i==="*"){n??=e.keys();for(let r of n)t.set(r,x);}else for(let[r,a]of i)t.set(r,a);}),t}function ti(s,e,t,n,i,r,a,o,l,c,d,u,S){return {type:0,element:s,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:S}}var pt={},Ke=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return es(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,r,a,o,l,c,d){let u=[],S=this.ast.options&&this.ast.options.params||pt,y=o&&o.params||pt,m=this.buildStyles(n,y,u),g=l&&l.params||pt,b=this.buildStyles(i,g,u),w=new Set,A=new Map,M=new Map,P=i==="void",ne={params:hi(g,S),delay:this.ast.options?.delay},q=d?[]:di(e,t,this.ast.animation,r,a,m,b,ne,c,u),N=0;return q.forEach(D=>{N=Math.max(D.duration+D.delay,N);}),u.length?ti(t,this._triggerName,n,i,P,m,b,[],[],A,M,N,u):(q.forEach(D=>{let W=D.element,ie=R(A,W,new Set);D.preStyleProps.forEach(H=>ie.add(H));let Ft=R(M,W,new Set);D.postStyleProps.forEach(H=>Ft.add(H)),W!==t&&w.add(W);}),ti(t,this._triggerName,n,i,P,m,b,q,[...w.values()],A,M,N))}};function es(s,e,t,n,i){return s.some(r=>r(e,t,n,i))}function hi(s,e){let t=w$1({},e);return Object.entries(s).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var wt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=hi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=oe(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),n.set(o,a);});}),n}};function ts(s,e,t){return new At(s,e,t)}var At=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new wt(i.style,r,n));}),ni(this.states,"true","1"),ni(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Ke(e,i,this.states));}),this.fallbackTransition=ns(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(a=>a.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function ns(s,e,t){let n=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ke(s,r,e)}function ni(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t));}var is=new ye,kt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],r=ui(this._driver,t,n,i);if(n.length)throw Bn();this._animations.set(e,r);}_buildPlayer(e,t,n){let i=e.element,r=at(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=di(this._driver,t,r,dt,Ce,new Map,new Map,n,is,i),a.forEach(d=>{let u=R(o,d.element,new Map);d.postStyleProps.forEach(S=>u.set(S,null));})):(i.push(xn()),a=[]),i.length)throw zn();o.forEach((d,u)=>{d.forEach((S,y)=>{d.set(y,this._driver.computeStyle(u,y,x));});});let l=a.map(d=>{let u=o.get(d.element);return this._buildPlayer(d,new Map,u)}),c=U(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Kn();return t}listen(e,t,n,i){let r=ke(t,"","","");return Ae(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let a=i[0]||{};this.create(e,t,a);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(i[0]));break;case "destroy":this.destroy(e);break}}},ii="ng-animate-queued",ss=".ng-animate-queued",gt="ng-animate-disabled",rs=".ng-animate-disabled",as="ng-star-inserted",os=".ng-star-inserted",ls=[],mi={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},cs={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},K="__ng_removed",_e=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=ds(i),n){let r=e,{value:a}=r,o=y$3(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},ge="void",yt=new _e(ge),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,B(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw qn();if(n==null||n.length==0)throw Vn();if(!hs(n))throw jn();let r=R(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(B(e,me),B(e,me+"-"+t),o.set(t,yt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Qn();return t}trigger(e,t,n,i=true){let r=this._getTrigger(t),a=new Se(this.id,t,e),o=this._engine.statesByElement.get(e);o||(B(e,me),B(e,me+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new _e(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=yt),!(c.value===ge)&&l.value===c.value){if(!ps(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{G(e,b),z(e,w);});}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,c.value,e,c.params),m=false;if(!y){if(!i)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:m}),m||(B(e,ii),a.onStart(()=>{le(e,ii);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1);}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,fe,true);n.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ge,i);d&&o.push(d);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),n&&U(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||yt,d=new _e(ge),u=new Se(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let r=e[K];(!r||r===mi)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){B(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==n.triggerName){let l=ke(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Ae(n.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let r=n.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Ct=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,n,i){if(Fe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),true}return false}insertNode(e,t,n,i){if(!Fe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1);}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),B(e,gt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,gt));}removeNode(e,t,n){if(Fe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,n,i,r){return Fe(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=mi,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(gt)&&this.markElementAsDisabled(e,false),this.driver.query(e,rs,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];B(i,as);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}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=[],t.length?U(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw Un()}_flushAnimations(e,t){let n=new ye,i=[],r=new Map,a=[],o=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,ss,true);for(let p=0;p<f.length;p++)d.add(f[p]);});let u=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=ai(S,this.collectedEnterElements),m=new Map,g=0;y.forEach((h,f)=>{let p=dt+g++;m.set(f,p),h.forEach(v=>B(v,p));});let b=[],w=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],p=f[K];p&&p.setForRemoval&&(b.push(f),w.add(f),p.hasAnimation?this.driver.query(f,os,true).forEach(v=>w.add(v)):A.add(f));}let M=new Map,P=ai(S,Array.from(w));P.forEach((h,f)=>{let p=Ce+g++;M.set(f,p),h.forEach(v=>B(v,p));}),e.push(()=>{y.forEach((h,f)=>{let p=m.get(f);h.forEach(v=>le(v,p));}),P.forEach((h,f)=>{let p=M.get(f);h.forEach(v=>le(v,p));}),b.forEach(h=>{this.processLeaveNode(h);});});let ne=[],q=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(p=>{let v=p.player,k=p.element;if(ne.push(v),this.collectedEnterElements.length){let C=k[K];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let Y=C.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let ve=L.get(p.triggerName);ve.value=Y,L.set(p.triggerName,ve);}}v.destroy();return}}let V=!u||!this.driver.containsElement(u,k),F=M.get(k),$=m.get(k),T=this._buildInstruction(p,n,$,F,V);if(T.errors&&T.errors.length){q.push(T);return}if(V){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}let Bt=[];T.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||Bt.push(C);}),T.timelines=Bt,n.append(k,T.timelines);let wi={instruction:T,player:v,element:k};a.push(wi),T.queriedElements.forEach(C=>R(o,C,[]).push(v)),T.preStyleProps.forEach((C,Y)=>{if(C.size){let L=l.get(Y);L||l.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));}}),T.postStyleProps.forEach((C,Y)=>{let L=c.get(Y);L||c.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));});});if(q.length){let h=[];q.forEach(f=>{h.push($n(f.triggerName,f.errors));}),ne.forEach(f=>f.destroy()),this.reportError(h);}let N=new Map,D=new Map;a.forEach(h=>{let f=h.element;n.has(f)&&(D.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,N));}),i.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,false,h.namespaceId,h.triggerName,null).forEach(v=>{R(N,f,[]).push(v),v.destroy();});});let W=b.filter(h=>oi(h,l,c)),ie=new Map;ri(ie,this.driver,A,c,x).forEach(h=>{oi(h,l,c)&&W.push(h);});let H=new Map;y.forEach((h,f)=>{ri(H,this.driver,new Set(h),l,he);}),W.forEach(h=>{let f=ie.get(h),p=H.get(h);ie.set(h,new Map([...f?.entries()??[],...p?.entries()??[]]));});let $e=[],It=[],Lt={};a.forEach(h=>{let{element:f,player:p,instruction:v}=h;if(n.has(f)){if(d.has(f)){p.onDestroy(()=>z(f,v.toStyles)),p.disabled=true,p.overrideTotalTime(v.totalTime),i.push(p);return}let k=Lt;if(D.size>1){let F=f,$=[];for(;F=F.parentNode;){let T=D.get(F);if(T){k=T;break}$.push(F);}$.forEach(T=>D.set(T,k));}let V=this._buildAnimation(p.namespaceId,v,N,r,H,ie);if(p.setRealPlayer(V),k===Lt)$e.push(p);else {let F=this.playersByElement.get(k);F&&F.length&&(p.parentPlayer=U(F)),i.push(p);}}else G(f,v.fromStyles),p.onDestroy(()=>z(f,v.toStyles)),It.push(p),d.has(f)&&i.push(p);}),It.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let p=U(f);h.setRealPlayer(p);}}),i.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy();});for(let h=0;h<b.length;h++){let f=b[h],p=f[K];if(le(f,Ce),p&&p.hasAnimation)continue;let v=[];if(o.size){let V=o.get(f);V&&V.length&&v.push(...V);let F=this.driver.query(f,Me,true);for(let $=0;$<F.length;$++){let T=o.get(F[$]);T&&T.length&&v.push(...T);}}let k=v.filter(V=>!V.destroyed);k.length?ms(this,f,k):this.processLeaveNode(f);}return b.length=0,$e.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1);}),h.play();}),$e}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o);}else {let o=this.playersByElement.get(e);if(o){let l=!r||r==ge;o.forEach(c=>{c.queued||!l&&c.triggerName!=i||a.push(c);});}}return (n||i)&&(a=a.filter(o=>!(n&&n!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,n){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,d=c!==r,u=R(n,c,[]);this._getPreviousPlayers(c,d,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}G(r,t.fromStyles);}_buildAnimation(e,t,n,i,r,a){let o=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,S=t.timelines.map(m=>{let g=m.element;d.add(g);let b=g[K];if(b&&b.removedBeforeQueried)return new Q(m.duration,m.delay);let w=g!==l,A=fs((n.get(g)||ls).map(N=>N.getRealPlayer())).filter(N=>{let D=N;return D.element?D.element===g:false}),M=r.get(g),P=a.get(g),ne=at(this._normalizer,m.keyframes,M,P),q=this._buildPlayer(m,ne,A);if(m.subTimeline&&i&&u.add(g),w){let N=new Se(e,o,g);N.setRealPlayer(q),c.push(N);}return q});c.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>us(this.playersByQueriedElement,m.element,m));}),d.forEach(m=>B(m,ht));let y=U(S);return y.onDestroy(()=>{d.forEach(m=>le(m,ht)),z(l,t.toStyles);}),u.forEach(m=>{R(i,m,[]).push(y);}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Q(e.duration,e.delay)}},Se=class{namespaceId;triggerName;element;_player=new Q;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>Ae(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t);}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?false: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=true,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 t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function us(s,e,t){let n=s.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&s.delete(e);}return n}function ds(s){return s??null}function Fe(s){return s&&s.nodeType===1}function hs(s){return s=="start"||s=="done"}function si(s,e){let t=s.style.display;return s.style.display=e??"none",t}function ri(s,e,t,n,i){let r=[];t.forEach(l=>r.push(si(l)));let a=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);d.set(u,S),(!S||S.length==0)&&(c[K]=cs,a.push(c));}),s.set(c,d);});let o=0;return t.forEach(l=>si(l,r[o++])),a}function ai(s,e){let t=new Map;if(s.forEach(o=>t.set(o,[])),e.length==0)return t;let n=1,i=new Set(e),r=new Map;function a(o){if(!o)return n;let l=r.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=a(c),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==n&&t.get(l).push(o);}),t}function B(s,e){s.classList?.add(e);}function le(s,e){s.classList?.remove(e);}function ms(s,e,t){U(t).onDone(()=>s.processLeaveNode(e));}function fs(s){let e=[];return fi(s,e),e}function fi(s,e){for(let t=0;t<s.length;t++){let n=s[t];n instanceof re?fi(n.players,e):e.push(n);}}function ps(s,e){let t=Object.keys(s),n=Object.keys(e);if(t.length!=n.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function oi(s,e,t){let n=t.get(s);if(!n)return false;let i=e.get(s);return i?n.forEach(r=>i.add(r)):e.set(s,n),t.delete(s),true}var ce=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Ct(e.body,t,n),this._timelineEngine=new kt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,n,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],c=[],d=ui(this._driver,r,l,c);if(l.length)throw Ln();o=ts(i,d,this._normalizer),this._triggerCache[a]=o;}this._transitionEngine.registerTrigger(t,i,o);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[r,a]=ot(n),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,r){if(n.charAt(0)=="@"){let[a,o]=ot(n);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,n,i,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);}};function gs(s,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=_t(e[0]),e.length>1&&(n=_t(e[e.length-1]))):e instanceof Map&&(t=_t(e)),t||n?new ys(s,t,n):null}var ys=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3);}}return s})();function _t(s){let e=null;return s.forEach((t,n)=>{_s(n)&&(e=e||new Map,e.set(n,t));}),e}function _s(s){return s==="display"||s==="position"}var qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch(r){return null}}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(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:De(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return lt(e,t)}getParentElement(e){return Pe(e)}query(e,t,n){return ct(e,t,n)}computeStyle(e,t,n){return De(e,t)}animate(e,t,n,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:n,delay:i,fill:o};r&&(l.easing=r);let c=new Map,d=a.filter(y=>y instanceof qe);Yn(n,i)&&d.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Wn(t).map(y=>new Map(y));u=Xn(e,u,c);let S=gs(e,u);return new qe(e,u,l,S)}};var Ie="@",pi="@.disabled",je=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}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,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==Ie&&t==pi?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Mt=class extends je{factory;constructor(e,t,n,i,r){super(t,n,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pi?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==Ie){let r=Ss(e),a=t.slice(1),o="";return a.charAt(0)!=Ie&&([a,o]=vs(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);})}return this.delegate.listen(e,t,n,i)}};function Ss(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function vs(s){let e=s.indexOf("."),t=s.substring(0,e),n=s.slice(e+1);return [t,n]}var Qe=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(i);if(!d){let u=()=>c.delete(i);d=new je("",i,this.engine,u),c.set(i,d);}return d}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,a,e,c.name,c);};return t.data.animation.forEach(o),new Mt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o);}),this._animationCallbacksBuffer=[];});}),i.push([t,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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var bs=(()=>{class s extends ce{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||s)(b$1(U$5),b$1(ee),b$1(te))};static \u0275prov=x$1({token:s,factory:s.\u0275fac})}return s})();function Ts(){return new Le}function ws(){return new Qe(g$1(jl),g$1(ce),g$1(G$4))}var gi=[{provide:te,useFactory:Ts},{provide:ce,useClass:bs},{provide:Sn$3,useFactory:ws}],As=[{provide:ee,useFactory:()=>new Ve},{provide:Av,useFactory:()=>"BrowserAnimations"},...gi];function yi(){return ut$2("NgEagerAnimations"),[...As]}var Rt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var _i=new w("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Rt});var ks=s=>!!s&&s.mode==="laptop"&&s.setupEnabled&&!s.setupDone,Ot=false;var Si=()=>B$2(null,null,function*(){if(Ot)return true;let s=g$1(R$1),e=g$1(F),t=yield s.refreshStatus();return t?.setupDone&&(Ot=true),ks(t)?e.parseUrl("/welcome"):true}),vi=()=>B$2(null,null,function*(){return (yield g$1(R$1).refreshStatus())?.setupDone&&(Ot=true),true});var Ps=s=>s[0]?.path==="agentos"?{consumed:s}:null,Cs=(s,e)=>{let t=e.url.replace(/^\/agentos/,"");return g$1(F).parseUrl(t.startsWith("/")?t:`/${t}`)},Ei=[{matcher:Ps,canActivate:[Cs],children:[]},{path:"welcome",canActivate:[vi],loadComponent:()=>import('./chunk-QAL0dGUf.js').then(s=>s.WelcomeComponent)},{path:"",canActivate:[Si],loadChildren:()=>import('./chunk-DGErIFJc.js').then(function(n){return n.aa}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ms=5e3;function bi(t){return B$2(this,arguments,function*(s,e=Ms){yield hy(s.loadMe().pipe(My(e),da(n=>(console.warn("Failed to load current user",n),Cr$1(null)))),{defaultValue:null});})}function Ns(s){return ()=>B$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-DGErIFJc.js').then(function(n){return n.aa});yield bi(s.get(e));})}var Ti={providers:[Nv(),bB({eventCoalescing:true}),ia(Ei),nS(),yi(),{provide:_i,useValue:{duration:3e3}},{provide:cl,useFactory:Ns,deps:[pe$4],multi:true},Xc({basePath:"/api/agentos"}),{provide:Ve$3,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Ds(s,e){s&1&&(Ds$1(0,"div",0),lg(1,"div",2),Ds$1(2,"p"),MC(3,"Loading Coday\u2026"),pl()());}function Rs(s,e){if(s&1){let t=qw();Ds$1(0,"div",1)(1,"p"),MC(2,"Coday could not load this page."),pl(),Ds$1(3,"button",3),mg("click",function(){df(t);let i=Xw();return ff(i.reload())}),MC(4,"Reload"),pl()();}}var Os=s=>s instanceof re$1?"pending":s instanceof de?"failed":"idle",Ue=class s{title="client";phase=F$2(g$1(F).events.pipe(Ot$3(e=>e instanceof re$1||e instanceof P||e instanceof $||e instanceof de||e instanceof G$1),ne$2(Os)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=mw({type:s,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,n){if(t&1&&(Pw(0,Ds,4,0,"div",0)(1,Rs,5,0,"div",1),lg(2,"router-outlet")),t&2){let i;Lw((i=n.phase())==="pending"?0:i==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};Ab(Ue,Ti).catch(s=>console.error(s));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(s=>console.error("[SW] Registration failed:",s));});export{x$1 as $,Af as A,B$2 as B,x$2 as C,Ds$1 as D,E,F,G$2 as G,Hw as H,Ie$4 as I,ug as J,KC as K,Lw as L,MC as M,mg as N,Og as O,Pw as P,SI as Q,R$1 as R,Sg as S,MI as T,Ui$2 as U,Vw as V,W,Xw as X,br as Y,Ae$2 as Z,yd as _,pl as a,Rp as a$,On$3 as a0,W$1 as a1,F$2 as a2,Cr$1 as a3,kw as a4,Bw as a5,D as a6,wr$1 as a7,fa as a8,$$1 as a9,me$1 as aA,de$1 as aB,be$1 as aC,J$1 as aD,ue$1 as aE,pb as aF,nn$1 as aG,Bg as aH,jg as aI,UC as aJ,HC as aK,WC as aL,kC as aM,F$1 as aN,hy as aO,_$1 as aP,Ie$2 as aQ,A$2 as aR,z$3 as aS,Ce$2 as aT,w as aU,Os$1 as aV,Br as aW,al as aX,ze$3 as aY,Yu as aZ,xn$3 as a_,Oe$1 as aa,Ee$1 as ab,Ve$2 as ac,md as ad,Ty as ae,da as af,Se$2 as ag,jw as ah,Te$1 as ai,k as aj,N as ak,Re$2 as al,kg as am,wy as an,$t as ao,$C as ap,GC as aq,ZD as ar,U$2 as as,Y$1 as at,we$1 as au,ne$2 as av,ae$1 as aw,T$1 as ax,Uy as ay,z$1 as az,gl as b,Tf as b$,yt$2 as b0,gr$1 as b1,sm as b2,hE as b3,AT as b4,_t$2 as b5,ee$3 as b6,Ce$5 as b7,Rs$1 as b8,Ye$2 as b9,Bs as bA,Jn$2 as bB,V$1 as bC,Ke$2 as bD,tt as bE,ss$1 as bF,lt$2 as bG,ye$3 as bH,Ay as bI,Qe$2 as bJ,ig as bK,Dg as bL,U$5 as bM,ve$1 as bN,L$2 as bO,Hn$2 as bP,bs$1 as bQ,mt$2 as bR,ut$1 as bS,We$1 as bT,go$1 as bU,Oe$2 as bV,xr as bW,by as bX,li$2 as bY,va as bZ,b$1 as b_,Ci$3 as ba,ng as bb,BC as bc,Du as bd,ww as be,m$1 as bf,sC as bg,Eg as bh,rC as bi,oC as bj,DB as bk,eC as bl,tC as bm,vB as bn,Ri$2 as bo,ii$2 as bp,EB as bq,IB as br,wg as bs,iC as bt,pd as bu,Id as bv,la$1 as bw,Se$5 as bx,Yg as by,sn$1 as bz,hg as c,W$2 as c$,pr$1 as c0,at$1 as c1,G$4 as c2,Cd as c3,wn$2 as c4,Nt$2 as c5,_n$1 as c6,Ot$3 as c7,Ot$2 as c8,kI as c9,Me$2 as cA,My as cB,L as cC,hd as cD,ne$1 as cE,jy as cF,Hy as cG,$y as cH,wB as cI,le$2 as cJ,ky as cK,Mr$1 as cL,ma as cM,cb as cN,Ne$2 as cO,te$2 as cP,JC as cQ,ee$2 as cR,re$2 as cS,Be$2 as cT,bf as cU,$e$1 as cV,Ue$1 as cW,Et$2 as cX,db as cY,Z$1 as cZ,Ne$3 as c_,pi$2 as ca,v as cb,Tn$2 as cc,ha as cd,st$1 as ce,Oy as cf,dn as cg,rS as ch,cr$1 as ci,ab as cj,og as ck,pg as cl,qC as cm,ge$2 as cn,ta as co,xy as cp,pa as cq,Ly as cr,ui$3 as cs,hr$1 as ct,ce$1 as cu,ye$2 as cv,he$2 as cw,qe$2 as cx,fb as cy,SB as cz,dg as d,FC as d0,Pg as d1,Lg as d2,CB as d3,Ig as d4,pe$2 as d5,Fg as d6,cg as e,P$2 as f,g$1 as g,hl as h,VC as i,jE as j,df as k,lg as l,mw as m,ff as n,oh as o,pe$4 as p,qw as q,yC as r,bg as s,Xm as t,y as u,vl as v,wo$1 as w,U$3 as x,yg as y,w$1 as z};
564
+ var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),x="*";function Sn(s,e=null){return {type:_.Sequence,steps:s,options:e}}function nt(s){return {type:_.Style,styles:s,offset:null}}var Q=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}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);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++n==r&&this._onDestroy();}),a.onStart(()=>{++i==r&&this._onStart();});}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},he="!";function vn(s){return new m$1(3e3,false)}function Ai(){return new m$1(3100,false)}function ki(){return new m$1(3101,false)}function Pi(s){return new m$1(3001,false)}function Ci(s){return new m$1(3003,false)}function Mi(s){return new m$1(3004,false)}function bn(s,e){return new m$1(3005,false)}function Tn(){return new m$1(3006,false)}function wn(){return new m$1(3007,false)}function An(s,e){return new m$1(3008,false)}function kn(s){return new m$1(3002,false)}function Pn(s,e,t,n,i){return new m$1(3010,false)}function Cn(){return new m$1(3011,false)}function Mn(){return new m$1(3012,false)}function Nn(){return new m$1(3200,false)}function Dn(){return new m$1(3202,false)}function Rn(){return new m$1(3013,false)}function On(s){return new m$1(3014,false)}function Fn(s){return new m$1(3015,false)}function In(s){return new m$1(3016,false)}function Ln(s,e){return new m$1(3404,false)}function Ni(s){return new m$1(3502,false)}function Bn(s){return new m$1(3503,false)}function xn(){return new m$1(3300,false)}function zn(s){return new m$1(3504,false)}function Kn(s){return new m$1(3301,false)}function qn(s,e){return new m$1(3302,false)}function Vn(s){return new m$1(3303,false)}function jn(s,e){return new m$1(3400,false)}function Qn(s){return new m$1(3401,false)}function Un(s){return new m$1(3402,false)}function $n(s,e){return new m$1(3505,false)}function U(s){switch(s.length){case 0:return new Q;case 1:return s[0];default:return new re(s)}}function at(s,e,t=new Map,n=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==a,u=d&&o||new Map;l.forEach((S,y)=>{let m=y,g=S;if(y!=="offset")switch(m=s.normalizePropertyName(m,i),g){case he:g=t.get(y);break;case x:g=n.get(y);break;default:g=s.normalizeStyleValue(y,m,g,i);break}u.set(m,g);}),d||r.push(u),o=u,a=c;}),i.length)throw Ni();return r}function Ae(s,e,t,n){switch(e){case "start":s.onStart(()=>n(t&&it(t,"start",s)));break;case "done":s.onDone(()=>n(t&&it(t,"done",s)));break;case "destroy":s.onDestroy(()=>n(t&&it(t,"destroy",s)));break}}function it(s,e,t){let n=t.totalTime,i=!!t.disabled,r=ke(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n??s.totalTime,i),a=s._data;return a!=null&&(r._data=a),r}function ke(s,e,t,n,i="",r=0,a){return {element:s,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function R(s,e,t){let n=s.get(e);return n||s.set(e,n=t),n}function ot(s){let e=s.indexOf(":"),t=s.substring(1,e),n=s.slice(e+1);return [t,n]}var Di=typeof document>"u"?null:document.documentElement;function Pe(s){let e=s.parentNode||s.host||null;return e===Di?null:e}function Ri(s){return s.substring(1,6)=="ebkit"}var Z=null,En=false;function Gn(s){Z||(Z=Oi()||{},En=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Ri(s)&&(e=s in Z.style,!e&&En&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Z.style)),e}function Oi(){return typeof document<"u"?document.body:null}function lt(s,e){for(;e;){if(e===s)return true;e=Pe(e);}return false}function ct(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let n=s.querySelector(e);return n?[n]:[]}var Fi=1e3,ut="{{",Ii="}}",dt="ng-enter",Ce="ng-leave",me="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function j(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:st(parseFloat(e[1]),e[2])}function st(s,e){return e==="s"?s*Fi:s}function pe(s,e,t){return s.hasOwnProperty("duration")?s:Bi(s,e,t)}var Li=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Bi(s,e,t){let n,i=0,r="";if(typeof s=="string"){let a=s.match(Li);if(a===null)return e.push(vn()),{duration:0,delay:0,easing:""};n=st(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=st(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else n=s;if(!t){let a=false,o=e.length;n<0&&(e.push(Ai()),a=true),i<0&&(e.push(ki()),a=true),a&&e.splice(o,0,vn());}return {duration:n,delay:i,easing:r}}function Wn(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function z(s,e,t){e.forEach((n,i)=>{let r=Ne(i);t&&!t.has(i)&&t.set(i,s.style[r]),s.style[r]=n;});}function G(s,e){e.forEach((t,n)=>{let i=Ne(n);s.style[i]="";});}function ae(s){return Array.isArray(s)?s.length==1?s[0]:Sn(s):s}function Hn(s,e,t){let n=e.params||{},i=mt(s);i.length&&i.forEach(r=>{n.hasOwnProperty(r)||t.push(Pi());});}var rt=new RegExp(`${ut}\\s*(.+?)\\s*${Ii}`,"g");function mt(s){let e=[];if(typeof s=="string"){let t;for(;t=rt.exec(s);)e.push(t[1]);rt.lastIndex=0;}return e}function oe(s,e,t){let n=`${s}`,i=n.replace(rt,(r,a)=>{let o=e[a];return o==null&&(t.push(Ci()),o=""),o.toString()});return i==n?s:i}var xi=/-+([a-z0-9])/g;function Ne(s){return s.replace(xi,(...e)=>e[1].toUpperCase())}function Yn(s,e){return s===0||e===0}function Xn(s,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((r,a)=>{n.has(a)||i.push(a),n.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,De(s,o)));}}return e}function O(s,e,t){switch(e.type){case _.Trigger:return s.visitTrigger(e,t);case _.State:return s.visitState(e,t);case _.Transition:return s.visitTransition(e,t);case _.Sequence:return s.visitSequence(e,t);case _.Group:return s.visitGroup(e,t);case _.Animate:return s.visitAnimate(e,t);case _.Keyframes:return s.visitKeyframes(e,t);case _.Style:return s.visitStyle(e,t);case _.Reference:return s.visitReference(e,t);case _.AnimateChild:return s.visitAnimateChild(e,t);case _.AnimateRef:return s.visitAnimateRef(e,t);case _.Query:return s.visitQuery(e,t);case _.Stagger:return s.visitStagger(e,t);default:throw Mi(e.type)}}function De(s,e){return window.getComputedStyle(s)[e]}var Nt=(()=>{class s{validateStyleProperty(t){return Gn(t)}containsElement(t,n){return lt(t,n)}getParentElement(t){return Pe(t)}query(t,n,i){return ct(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,r,a,o=[],l){return new Q(i,r)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=x$1({token:s,factory:s.\u0275fac})}return s})(),ee=class{static NOOP=new Nt},te=class{};var zi=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"]),Le=class extends te{normalizePropertyName(e,t){return Ne(e)}normalizeStyleValue(e,t,n,i){let r="",a=n.toString().trim();if(zi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else {let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(bn());}return a+r}};var Be="*";function Ki(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(n=>qi(n,t,e)):t.push(s),t}function qi(s,e,t){if(s[0]==":"){let l=Vi(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let n=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Fn()),e;let i=n[1],r=n[2],a=n[3];e.push(Zn(i,a));let o=i==Be&&a==Be;r[0]=="<"&&!o&&e.push(Zn(a,i));}function Vi(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(In()),"* => *"}}var Re=new Set(["true","1"]),Oe=new Set(["false","0"]);function Zn(s,e){let t=Re.has(s)||Oe.has(s),n=Re.has(e)||Oe.has(e);return (i,r)=>{let a=s==Be||s==i,o=e==Be||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?Re.has(s):Oe.has(s)),!o&&n&&typeof r=="boolean"&&(o=r?Re.has(e):Oe.has(e)),a&&o}}var ci=":self",ji=new RegExp(`s*${ci}s*,?`,"g");function ui(s,e,t,n){return new St(s).build(e,t,n)}var Jn="",St=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new vt(t);return this._resetContextStyleTimingState(i),O(this,ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Jn,e.collectedStyles=new Map,e.collectedStyles.set(Jn,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Tn()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t));}),l.name=c;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(wn());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=i||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{mt(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(An(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=O(this,ae(e.animation),t),i=Ki(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(n=>O(this,n,t)),options:J(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=n;let o=O(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let n=Gi(e.timings,t.errors);t.currentAnimateTimings=n;let i,r=e.styles?e.styles:nt({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let c={};n.easing&&(c.easing=n.easing),a=nt(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===x?n.push(o):t.errors.push(kn()):n.push(new Map(Object.entries(o)));let r=false,a=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:n,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=true;d&&(r!=i&&r>=d.startTime&&i<=d.endTime&&(t.errors.push(Pn(l,d.startTime,d.endTime)),u=false),r=d.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&Hn(o,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Cn()),n;let i=1,r=0,a=[],o=false,l=false,c=0,d=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:$i(A.styles),P=0;return M!=null&&(r++,P=A.offset=M),l=l||P<0||P>1,o=o||P<c,c=P,a.push(P),A});l&&t.errors.push(Mn()),o&&t.errors.push(Nn());let u=e.steps.length,S=0;r>0&&r<u?t.errors.push(Dn()):r==0&&(S=i/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return d.forEach((w,A)=>{let M=S>0?A==y?1:S*A:a[A],P=M*b;t.currentTime=m+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=M,n.styles.push(w);}),n}visitReference(e,t){return {type:_.Reference,animation:O(this,ae(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Qi(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Rn());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:pe(e.timings,t.errors,true);return {type:_.Stagger,animation:O(this,ae(e.animation),t),timings:n,options:null}}};function Qi(s){let e=!!s.split(/\s*,\s*/).find(t=>t==ci);return e&&(s=s.replace(ji,"")),s=s.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[s,e]}function Ui(s){return s?w$1({},s):null}var vt=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function $i(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gi(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=pe(s,e).duration;return ft(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=pe(t,e);return ft(i.duration,i.delay,i.easing)}function J(s){return s?(s=w$1({},s),s.params&&(s.params=Ui(s.params))):s={},s}function ft(s,e,t){return {duration:s,delay:e,easing:t}}function Dt(s,e,t,n,i,r,a=null,o=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ye=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},Wi=1,Hi=":enter",Yi=new RegExp(Hi,"g"),Xi=":leave",Zi=new RegExp(Xi,"g");function di(s,e,t,n,i,r=new Map,a=new Map,o,l,c=[]){return new Et().buildKeyframes(s,e,t,n,i,r,a,o,l,c)}var Et=class{buildKeyframes(e,t,n,i,r,a,o,l,c,d=[]){c=c||new ye;let u=new bt(e,t,c,i,r,d,[]);u.options=l;let S=l.delay?j(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([a],null,u.errors,l),O(this,n,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:j(oe(r,i?.params??{},t.errors));n.delayNextStep(a);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,a=n.duration!=null?j(n.duration):null,o=n.delay!=null?j(n.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,c.duration+c.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),O(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=xe);let a=j(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>O(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?j(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline);}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?oe(n,t.params,t.errors):n;return pe(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?j(i.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=xe);let a=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),O(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;a=Math.max(a,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=o-l;break;case "full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;O(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime);}},xe={},bt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=xe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new ze(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=j(n.duration)),n.delay!=null&&(i.delay=j(n.delay));let r=n.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=oe(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,r=new s(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,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=xe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Yi,"."+this._enterClassName),e=e.replace(Zi,"."+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)),o.push(...c);}return !r&&o.length==0&&a.push(On()),o}},ze=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||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+=Wi,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||x),this._currentKeyframe.set(t,x);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Ji(e,this._globalTimelineStyles);for(let[o,l]of a){let c=oe(l,r,n);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??x),this._updateStyle(o,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((d,u)=>{d===he?e.add(u):d===x&&t.add(u);}),n||c.set("offset",l/this.duration),i.push(c);});let r=[...e.values()],a=[...t.values()];if(n){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return Dt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},Tt=class extends ze{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,r,a,o=false){super(e,t,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=n+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",ei(o)),r.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let S=new Map(e[u]),y=S.get("offset"),m=t+y*n;S.set("offset",ei(m/a)),r.push(S);}n=a,t=0,i="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function ei(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Ji(s,e){let t=new Map,n;return s.forEach(i=>{if(i==="*"){n??=e.keys();for(let r of n)t.set(r,x);}else for(let[r,a]of i)t.set(r,a);}),t}function ti(s,e,t,n,i,r,a,o,l,c,d,u,S){return {type:0,element:s,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:S}}var pt={},Ke=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return es(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,r,a,o,l,c,d){let u=[],S=this.ast.options&&this.ast.options.params||pt,y=o&&o.params||pt,m=this.buildStyles(n,y,u),g=l&&l.params||pt,b=this.buildStyles(i,g,u),w=new Set,A=new Map,M=new Map,P=i==="void",ne={params:hi(g,S),delay:this.ast.options?.delay},q=d?[]:di(e,t,this.ast.animation,r,a,m,b,ne,c,u),N=0;return q.forEach(D=>{N=Math.max(D.duration+D.delay,N);}),u.length?ti(t,this._triggerName,n,i,P,m,b,[],[],A,M,N,u):(q.forEach(D=>{let W=D.element,ie=R(A,W,new Set);D.preStyleProps.forEach(H=>ie.add(H));let Ft=R(M,W,new Set);D.postStyleProps.forEach(H=>Ft.add(H)),W!==t&&w.add(W);}),ti(t,this._triggerName,n,i,P,m,b,q,[...w.values()],A,M,N))}};function es(s,e,t,n,i){return s.some(r=>r(e,t,n,i))}function hi(s,e){let t=w$1({},e);return Object.entries(s).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var wt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=hi(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=oe(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),n.set(o,a);});}),n}};function ts(s,e,t){return new At(s,e,t)}var At=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new wt(i.style,r,n));}),ni(this.states,"true","1"),ni(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Ke(e,i,this.states));}),this.fallbackTransition=ns(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(a=>a.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function ns(s,e,t){let n=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ke(s,r,e)}function ni(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t));}var is=new ye,kt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],r=ui(this._driver,t,n,i);if(n.length)throw Bn();this._animations.set(e,r);}_buildPlayer(e,t,n){let i=e.element,r=at(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=di(this._driver,t,r,dt,Ce,new Map,new Map,n,is,i),a.forEach(d=>{let u=R(o,d.element,new Map);d.postStyleProps.forEach(S=>u.set(S,null));})):(i.push(xn()),a=[]),i.length)throw zn();o.forEach((d,u)=>{d.forEach((S,y)=>{d.set(y,this._driver.computeStyle(u,y,x));});});let l=a.map(d=>{let u=o.get(d.element);return this._buildPlayer(d,new Map,u)}),c=U(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Kn();return t}listen(e,t,n,i){let r=ke(t,"","","");return Ae(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let a=i[0]||{};this.create(e,t,a);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(i[0]));break;case "destroy":this.destroy(e);break}}},ii="ng-animate-queued",ss=".ng-animate-queued",gt="ng-animate-disabled",rs=".ng-animate-disabled",as="ng-star-inserted",os=".ng-star-inserted",ls=[],mi={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},cs={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},K="__ng_removed",_e=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=ds(i),n){let r=e,{value:a}=r,o=y$3(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},ge="void",yt=new _e(ge),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,B(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw qn();if(n==null||n.length==0)throw Vn();if(!hs(n))throw jn();let r=R(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(B(e,me),B(e,me+"-"+t),o.set(t,yt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Qn();return t}trigger(e,t,n,i=true){let r=this._getTrigger(t),a=new Se(this.id,t,e),o=this._engine.statesByElement.get(e);o||(B(e,me),B(e,me+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new _e(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=yt),!(c.value===ge)&&l.value===c.value){if(!ps(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{G(e,b),z(e,w);});}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,c.value,e,c.params),m=false;if(!y){if(!i)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:m}),m||(B(e,ii),a.onStart(()=>{le(e,ii);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1);}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,fe,true);n.forEach(i=>{if(i[K])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ge,i);d&&o.push(d);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),n&&U(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||yt,d=new _e(ge),u=new Se(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let r=e[K];(!r||r===mi)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){B(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==n.triggerName){let l=ke(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Ae(n.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let r=n.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Ct=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,n,i){if(Fe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),true}return false}insertNode(e,t,n,i){if(!Fe(t))return;let r=t[K];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1);}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),B(e,gt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,gt));}removeNode(e,t,n){if(Fe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,r){this.collectedLeaveElements.push(t),t[K]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,n,i,r){return Fe(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[K];if(t&&t.setForRemoval){if(e[K]=mi,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(gt)&&this.markElementAsDisabled(e,false),this.driver.query(e,rs,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];B(i,as);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}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=[],t.length?U(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw Un()}_flushAnimations(e,t){let n=new ye,i=[],r=new Map,a=[],o=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(h=>{d.add(h);let f=this.driver.query(h,ss,true);for(let p=0;p<f.length;p++)d.add(f[p]);});let u=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=ai(S,this.collectedEnterElements),m=new Map,g=0;y.forEach((h,f)=>{let p=dt+g++;m.set(f,p),h.forEach(v=>B(v,p));});let b=[],w=new Set,A=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){let f=this.collectedLeaveElements[h],p=f[K];p&&p.setForRemoval&&(b.push(f),w.add(f),p.hasAnimation?this.driver.query(f,os,true).forEach(v=>w.add(v)):A.add(f));}let M=new Map,P=ai(S,Array.from(w));P.forEach((h,f)=>{let p=Ce+g++;M.set(f,p),h.forEach(v=>B(v,p));}),e.push(()=>{y.forEach((h,f)=>{let p=m.get(f);h.forEach(v=>le(v,p));}),P.forEach((h,f)=>{let p=M.get(f);h.forEach(v=>le(v,p));}),b.forEach(h=>{this.processLeaveNode(h);});});let ne=[],q=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(t).forEach(p=>{let v=p.player,k=p.element;if(ne.push(v),this.collectedEnterElements.length){let C=k[K];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let Y=C.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let ve=L.get(p.triggerName);ve.value=Y,L.set(p.triggerName,ve);}}v.destroy();return}}let V=!u||!this.driver.containsElement(u,k),F=M.get(k),$=m.get(k),T=this._buildInstruction(p,n,$,F,V);if(T.errors&&T.errors.length){q.push(T);return}if(V){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>G(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}let Bt=[];T.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||Bt.push(C);}),T.timelines=Bt,n.append(k,T.timelines);let wi={instruction:T,player:v,element:k};a.push(wi),T.queriedElements.forEach(C=>R(o,C,[]).push(v)),T.preStyleProps.forEach((C,Y)=>{if(C.size){let L=l.get(Y);L||l.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));}}),T.postStyleProps.forEach((C,Y)=>{let L=c.get(Y);L||c.set(Y,L=new Set),C.forEach((ve,Ge)=>L.add(Ge));});});if(q.length){let h=[];q.forEach(f=>{h.push($n(f.triggerName,f.errors));}),ne.forEach(f=>f.destroy()),this.reportError(h);}let N=new Map,D=new Map;a.forEach(h=>{let f=h.element;n.has(f)&&(D.set(f,f),this._beforeAnimationBuild(h.player.namespaceId,h.instruction,N));}),i.forEach(h=>{let f=h.element;this._getPreviousPlayers(f,false,h.namespaceId,h.triggerName,null).forEach(v=>{R(N,f,[]).push(v),v.destroy();});});let W=b.filter(h=>oi(h,l,c)),ie=new Map;ri(ie,this.driver,A,c,x).forEach(h=>{oi(h,l,c)&&W.push(h);});let H=new Map;y.forEach((h,f)=>{ri(H,this.driver,new Set(h),l,he);}),W.forEach(h=>{let f=ie.get(h),p=H.get(h);ie.set(h,new Map([...f?.entries()??[],...p?.entries()??[]]));});let $e=[],It=[],Lt={};a.forEach(h=>{let{element:f,player:p,instruction:v}=h;if(n.has(f)){if(d.has(f)){p.onDestroy(()=>z(f,v.toStyles)),p.disabled=true,p.overrideTotalTime(v.totalTime),i.push(p);return}let k=Lt;if(D.size>1){let F=f,$=[];for(;F=F.parentNode;){let T=D.get(F);if(T){k=T;break}$.push(F);}$.forEach(T=>D.set(T,k));}let V=this._buildAnimation(p.namespaceId,v,N,r,H,ie);if(p.setRealPlayer(V),k===Lt)$e.push(p);else {let F=this.playersByElement.get(k);F&&F.length&&(p.parentPlayer=U(F)),i.push(p);}}else G(f,v.fromStyles),p.onDestroy(()=>z(f,v.toStyles)),It.push(p),d.has(f)&&i.push(p);}),It.forEach(h=>{let f=r.get(h.element);if(f&&f.length){let p=U(f);h.setRealPlayer(p);}}),i.forEach(h=>{h.parentPlayer?h.syncPlayerEvents(h.parentPlayer):h.destroy();});for(let h=0;h<b.length;h++){let f=b[h],p=f[K];if(le(f,Ce),p&&p.hasAnimation)continue;let v=[];if(o.size){let V=o.get(f);V&&V.length&&v.push(...V);let F=this.driver.query(f,Me,true);for(let $=0;$<F.length;$++){let T=o.get(F[$]);T&&T.length&&v.push(...T);}}let k=v.filter(V=>!V.destroyed);k.length?ms(this,f,k):this.processLeaveNode(f);}return b.length=0,$e.forEach(h=>{this.players.push(h),h.onDone(()=>{h.destroy();let f=this.players.indexOf(h);this.players.splice(f,1);}),h.play();}),$e}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o);}else {let o=this.playersByElement.get(e);if(o){let l=!r||r==ge;o.forEach(c=>{c.queued||!l&&c.triggerName!=i||a.push(c);});}}return (n||i)&&(a=a.filter(o=>!(n&&n!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,n){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,d=c!==r,u=R(n,c,[]);this._getPreviousPlayers(c,d,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}G(r,t.fromStyles);}_buildAnimation(e,t,n,i,r,a){let o=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,S=t.timelines.map(m=>{let g=m.element;d.add(g);let b=g[K];if(b&&b.removedBeforeQueried)return new Q(m.duration,m.delay);let w=g!==l,A=fs((n.get(g)||ls).map(N=>N.getRealPlayer())).filter(N=>{let D=N;return D.element?D.element===g:false}),M=r.get(g),P=a.get(g),ne=at(this._normalizer,m.keyframes,M,P),q=this._buildPlayer(m,ne,A);if(m.subTimeline&&i&&u.add(g),w){let N=new Se(e,o,g);N.setRealPlayer(q),c.push(N);}return q});c.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>us(this.playersByQueriedElement,m.element,m));}),d.forEach(m=>B(m,ht));let y=U(S);return y.onDestroy(()=>{d.forEach(m=>le(m,ht)),z(l,t.toStyles);}),u.forEach(m=>{R(i,m,[]).push(y);}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Q(e.duration,e.delay)}},Se=class{namespaceId;triggerName;element;_player=new Q;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>Ae(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t);}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?false: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=true,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 t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function us(s,e,t){let n=s.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&s.delete(e);}return n}function ds(s){return s??null}function Fe(s){return s&&s.nodeType===1}function hs(s){return s=="start"||s=="done"}function si(s,e){let t=s.style.display;return s.style.display=e??"none",t}function ri(s,e,t,n,i){let r=[];t.forEach(l=>r.push(si(l)));let a=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);d.set(u,S),(!S||S.length==0)&&(c[K]=cs,a.push(c));}),s.set(c,d);});let o=0;return t.forEach(l=>si(l,r[o++])),a}function ai(s,e){let t=new Map;if(s.forEach(o=>t.set(o,[])),e.length==0)return t;let n=1,i=new Set(e),r=new Map;function a(o){if(!o)return n;let l=r.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=a(c),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==n&&t.get(l).push(o);}),t}function B(s,e){s.classList?.add(e);}function le(s,e){s.classList?.remove(e);}function ms(s,e,t){U(t).onDone(()=>s.processLeaveNode(e));}function fs(s){let e=[];return fi(s,e),e}function fi(s,e){for(let t=0;t<s.length;t++){let n=s[t];n instanceof re?fi(n.players,e):e.push(n);}}function ps(s,e){let t=Object.keys(s),n=Object.keys(e);if(t.length!=n.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function oi(s,e,t){let n=t.get(s);if(!n)return false;let i=e.get(s);return i?n.forEach(r=>i.add(r)):e.set(s,n),t.delete(s),true}var ce=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Ct(e.body,t,n),this._timelineEngine=new kt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,n,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],c=[],d=ui(this._driver,r,l,c);if(l.length)throw Ln();o=ts(i,d,this._normalizer),this._triggerCache[a]=o;}this._transitionEngine.registerTrigger(t,i,o);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[r,a]=ot(n),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,r){if(n.charAt(0)=="@"){let[a,o]=ot(n);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,n,i,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);}};function gs(s,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=_t(e[0]),e.length>1&&(n=_t(e[e.length-1]))):e instanceof Map&&(t=_t(e)),t||n?new ys(s,t,n):null}var ys=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3);}}return s})();function _t(s){let e=null;return s.forEach((t,n)=>{_s(n)&&(e=e||new Map,e.set(n,t));}),e}function _s(s){return s==="display"||s==="position"}var qe=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch(r){return null}}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(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:De(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return lt(e,t)}getParentElement(e){return Pe(e)}query(e,t,n){return ct(e,t,n)}computeStyle(e,t,n){return De(e,t)}animate(e,t,n,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:n,delay:i,fill:o};r&&(l.easing=r);let c=new Map,d=a.filter(y=>y instanceof qe);Yn(n,i)&&d.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Wn(t).map(y=>new Map(y));u=Xn(e,u,c);let S=gs(e,u);return new qe(e,u,l,S)}};var Ie="@",pi="@.disabled",je=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}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,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==Ie&&t==pi?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Mt=class extends je{factory;constructor(e,t,n,i,r){super(t,n,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pi?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==Ie){let r=Ss(e),a=t.slice(1),o="";return a.charAt(0)!=Ie&&([a,o]=vs(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);})}return this.delegate.listen(e,t,n,i)}};function Ss(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function vs(s){let e=s.indexOf("."),t=s.substring(0,e),n=s.slice(e+1);return [t,n]}var Qe=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(i);if(!d){let u=()=>c.delete(i);d=new je("",i,this.engine,u),c.set(i,d);}return d}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,a,e,c.name,c);};return t.data.animation.forEach(o),new Mt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o);}),this._animationCallbacksBuffer=[];});}),i.push([t,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()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var bs=(()=>{class s extends ce{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||s)(b$1(U$5),b$1(ee),b$1(te))};static \u0275prov=x$1({token:s,factory:s.\u0275fac})}return s})();function Ts(){return new Le}function ws(){return new Qe(g$1(jl),g$1(ce),g$1(G$4))}var gi=[{provide:te,useFactory:Ts},{provide:ce,useClass:bs},{provide:Sn$3,useFactory:ws}],As=[{provide:ee,useFactory:()=>new Ve},{provide:Av,useFactory:()=>"BrowserAnimations"},...gi];function yi(){return ut$2("NgEagerAnimations"),[...As]}var Rt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var _i=new w("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Rt});var ks=s=>!!s&&s.mode==="laptop"&&s.setupEnabled&&!s.setupDone,Ot=false;var Si=()=>B$2(null,null,function*(){if(Ot)return true;let s=g$1(R$1),e=g$1(F),t=yield s.refreshStatus();return t?.setupDone&&(Ot=true),ks(t)?e.parseUrl("/welcome"):true}),vi=()=>B$2(null,null,function*(){return (yield g$1(R$1).refreshStatus())?.setupDone&&(Ot=true),true});var Ps=s=>s[0]?.path==="agentos"?{consumed:s}:null,Cs=(s,e)=>{let t=e.url.replace(/^\/agentos/,"");return g$1(F).parseUrl(t.startsWith("/")?t:`/${t}`)},Ei=[{matcher:Ps,canActivate:[Cs],children:[]},{path:"welcome",canActivate:[vi],loadComponent:()=>import('./chunk-CoRwPlfd.js').then(s=>s.WelcomeComponent)},{path:"",canActivate:[Si],loadChildren:()=>import('./chunk-D8_LjQNu.js').then(function(n){return n.aa}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ms=5e3;function bi(t){return B$2(this,arguments,function*(s,e=Ms){yield hy(s.loadMe().pipe(My(e),da(n=>(console.warn("Failed to load current user",n),Cr$1(null)))),{defaultValue:null});})}function Ns(s){return ()=>B$2(null,null,function*(){let{UserStateService:e}=yield import('./chunk-D8_LjQNu.js').then(function(n){return n.aa});yield bi(s.get(e));})}var Ti={providers:[Nv(),bB({eventCoalescing:true}),ia(Ei),nS(),yi(),{provide:_i,useValue:{duration:3e3}},{provide:cl,useFactory:Ns,deps:[pe$4],multi:true},Xc({basePath:"/api/agentos"}),{provide:Ve$3,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Ds(s,e){s&1&&(Ds$1(0,"div",0),lg(1,"div",2),Ds$1(2,"p"),MC(3,"Loading Coday\u2026"),pl()());}function Rs(s,e){if(s&1){let t=qw();Ds$1(0,"div",1)(1,"p"),MC(2,"Coday could not load this page."),pl(),Ds$1(3,"button",3),mg("click",function(){df(t);let i=Xw();return ff(i.reload())}),MC(4,"Reload"),pl()();}}var Os=s=>s instanceof re$1?"pending":s instanceof de?"failed":"idle",Ue=class s{title="client";phase=F$2(g$1(F).events.pipe(Ot$3(e=>e instanceof re$1||e instanceof P||e instanceof $||e instanceof de||e instanceof G$1),ne$2(Os)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=mw({type:s,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,n){if(t&1&&(Pw(0,Ds,4,0,"div",0)(1,Rs,5,0,"div",1),lg(2,"router-outlet")),t&2){let i;Lw((i=n.phase())==="pending"?0:i==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};Ab(Ue,Ti).catch(s=>console.error(s));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(s=>console.error("[SW] Registration failed:",s));});export{x$1 as $,Af as A,B$2 as B,x$2 as C,Ds$1 as D,E,F,G$2 as G,Hw as H,Ie$4 as I,ug as J,KC as K,Lw as L,MC as M,mg as N,Og as O,Pw as P,SI as Q,R$1 as R,Sg as S,MI as T,Ui$2 as U,Vw as V,W,Xw as X,br as Y,Ae$2 as Z,yd as _,pl as a,oC as a$,On$3 as a0,W$1 as a1,F$2 as a2,Cr$1 as a3,kw as a4,Bw as a5,D as a6,wr$1 as a7,fa as a8,$$1 as a9,me$1 as aA,de$1 as aB,be$1 as aC,J$1 as aD,ue$1 as aE,pb as aF,nn$1 as aG,Bg as aH,jg as aI,UC as aJ,HC as aK,WC as aL,kC as aM,F$1 as aN,hy as aO,_$1 as aP,Ie$2 as aQ,A$2 as aR,z$3 as aS,Ce$2 as aT,xn$3 as aU,Yu as aV,al as aW,yt$2 as aX,sC as aY,Eg as aZ,rC as a_,Oe$1 as aa,Ee$1 as ab,Ve$2 as ac,md as ad,Ty as ae,da as af,Se$2 as ag,jw as ah,Te$1 as ai,k as aj,N as ak,Re$2 as al,kg as am,wy as an,$t as ao,$C as ap,GC as aq,ZD as ar,U$2 as as,Y$1 as at,we$1 as au,ne$2 as av,ae$1 as aw,T$1 as ax,Uy as ay,z$1 as az,gl as b,Nt$2 as b$,DB as b0,AT as b1,eC as b2,tC as b3,vB as b4,Ri$2 as b5,ii$2 as b6,EB as b7,IB as b8,wg as b9,ig as bA,BC as bB,Dg as bC,U$5 as bD,ve$1 as bE,L$2 as bF,Hn$2 as bG,bs$1 as bH,mt$2 as bI,ut$1 as bJ,We$1 as bK,go$1 as bL,ng as bM,_t$2 as bN,Ce$5 as bO,Oe$2 as bP,xr as bQ,by as bR,li$2 as bS,va as bT,b$1 as bU,Tf as bV,pr$1 as bW,at$1 as bX,G$4 as bY,Cd as bZ,wn$2 as b_,iC as ba,pd as bb,Id as bc,w as bd,Os$1 as be,Br as bf,ze$3 as bg,Rp as bh,gr$1 as bi,sm as bj,hE as bk,la$1 as bl,Se$5 as bm,ee$3 as bn,Yg as bo,sn$1 as bp,Bs as bq,Jn$2 as br,V$1 as bs,Ke$2 as bt,tt as bu,ss$1 as bv,lt$2 as bw,ye$3 as bx,Ay as by,Qe$2 as bz,hg as c,W$2 as c$,_n$1 as c0,Ot$3 as c1,Ot$2 as c2,kI as c3,pi$2 as c4,v as c5,Tn$2 as c6,ha as c7,st$1 as c8,Oy as c9,Me$2 as cA,My as cB,L as cC,hd as cD,ne$1 as cE,jy as cF,Hy as cG,$y as cH,wB as cI,le$2 as cJ,ky as cK,Mr$1 as cL,ma as cM,cb as cN,Ne$2 as cO,te$2 as cP,JC as cQ,ee$2 as cR,re$2 as cS,Be$2 as cT,bf as cU,$e$1 as cV,Ue$1 as cW,Et$2 as cX,db as cY,Z$1 as cZ,Ne$3 as c_,Rs$1 as ca,Ye$2 as cb,dn as cc,Ci$3 as cd,Du as ce,ww as cf,rS as cg,cr$1 as ch,m$1 as ci,ab as cj,og as ck,pg as cl,qC as cm,ge$2 as cn,ta as co,xy as cp,pa as cq,Ly as cr,ui$3 as cs,hr$1 as ct,ce$1 as cu,ye$2 as cv,he$2 as cw,qe$2 as cx,fb as cy,SB as cz,dg as d,FC as d0,Pg as d1,Lg as d2,CB as d3,Ig as d4,pe$2 as d5,Fg as d6,cg as e,P$2 as f,g$1 as g,hl as h,VC as i,jE as j,df as k,lg as l,mw as m,ff as n,oh as o,pe$4 as p,qw as q,yC as r,bg as s,Xm as t,y as u,vl as v,wo$1 as w,U$3 as x,yg as y,w$1 as z};