import{Aa as si,Ba as $e,C as Kt,D as We,I as Jt,R as Xe,S as Yt,T as Zt,U as Te,V as et,W as tt,g as $t,ia as Xt,la as ei,ma as ti,n as qe,na as ii,qa as ni,s as Vt,ta as oi,ua as ri,xa as ai,y as Qt,z as Gt}from"./chunk-E4UUPK46.js";import{d as Ut}from"./chunk-K3AFQ46O.js";import{$c as be,A as pt,Ac as He,Bb as Tt,Da as Le,Ea as Me,Eb as St,Fa as kt,G as mt,H as Ze,Ha as ve,Hb as At,Ia as Dt,Ic as ce,Kc as V,Kd as Ht,L as _t,La as Pe,Lc as Rt,Ma as wt,Mc as Ft,Ob as G,Oc as Lt,Pa as xt,Pb as It,Pc as Mt,Qc as Pt,R as gt,Sb as Be,Tb as ue,Ua as Et,Uc as Ue,Vc as jt,W as yt,Wa as Ot,Wc as Bt,Yc as fe,Zc as re,_c as me,c as ft,ce as qt,e as Oe,ee as Wt,fa as Ct,hc as Ne,j as Ye,ja as vt,jc as te,lc as ie,pb as je,pd as Nt,qc as ne,rc as w,sa as Ce,sc as F,ta as bt,tc as oe,v as ht,va as Fe,wb as T,wd as zt,xa as E,zc as ze}from"./chunk-O7RN3KYY.js";import{a as N}from"./chunk-ZE2KCNEA.js";import{a as ee,b as Je,f as mi,h as _i}from"./chunk-CEWFFWI2.js";var fi=mi((rt,at)=>{N();((r,c)=>{typeof define=="function"&&define.amd?define([],c):typeof at=="object"&&typeof rt<"u"?at.exports=c():r.Papa=c()})(rt,function r(){var c=typeof self<"u"?self:typeof window<"u"?window:c!==void 0?c:{},e,t=!c.document&&!!c.postMessage,o=c.IS_PAPA_WORKER||!1,l={},h=0,s={};function U(i){return i.charCodeAt(0)===65279?i.slice(1):i}function K(i){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(n){var a=Ge(n);a.chunkSize=parseInt(a.chunkSize),n.step||n.chunk||(a.chunkSize=null),this._handle=new st(a),(this._handle.streamer=this)._config=a}.call(this,i),this.parseChunk=function(n,a){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview),o)c.postMessage({results:d,workerId:s.WORKER_ID,finished:u});else if(O(this._config.chunk)&&!a){if(this._config.chunk(d,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=d=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(d.data),this._completeResults.errors=this._completeResults.errors.concat(d.errors),this._completeResults.meta=d.meta),this._completed||!u||!O(this._config.complete)||d&&d.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||d&&d.meta.paused||this._nextChunk(),d}this._halted=!0},this._sendError=function(n){O(this._config.error)?this._config.error(n):o&&this._config.error&&c.postMessage({workerId:s.WORKER_ID,error:n,finished:!1})}}function Ae(i){var n;(i=i||{}).chunkSize||(i.chunkSize=s.RemoteChunkSize),K.call(this,i),this._nextChunk=t?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(a){this._input=a,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(n=new XMLHttpRequest,this._config.withCredentials&&(n.withCredentials=this._config.withCredentials),t||(n.onload=pe(this._chunkLoaded,this),n.onerror=pe(this._chunkError,this)),n.open(this._config.downloadRequestBody?"POST":"GET",this._input,!t),this._config.downloadRequestHeaders){var a,u=this._config.downloadRequestHeaders;for(a in u)n.setRequestHeader(a,u[a])}var d;this._config.chunkSize&&(d=this._start+this._config.chunkSize-1,n.setRequestHeader("Range","bytes="+this._start+"-"+d));try{n.send(this._config.downloadRequestBody)}catch(_){this._chunkError(_.message)}t&&n.status===0&&this._chunkError()}},this._chunkLoaded=function(){n.readyState===4&&(n.status<200||400<=n.status?this._chunkError():(this._start+=this._config.chunkSize||n.responseText.length,this._finished=!this._config.chunkSize||this._start>=(a=>(a=a.getResponseHeader("Content-Range"))!==null?parseInt(a.substring(a.lastIndexOf("/")+1)):-1)(n),this.parseChunk(n.responseText)))},this._chunkError=function(a){a=n.statusText||a,this._sendError(new Error(a))}}function Ie(i){(i=i||{}).chunkSize||(i.chunkSize=s.LocalChunkSize),K.call(this,i);var n,a,u=typeof FileReader<"u";this.stream=function(d){this._input=d,a=d.slice||d.webkitSlice||d.mozSlice,u?((n=new FileReader).onload=pe(this._chunkLoaded,this),n.onerror=pe(this._chunkError,this)):n=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(d.target.result)},this._chunkError=function(){this._sendError(n.error)}}function De(i){var n;K.call(this,i=i||{}),this.stream=function(a){return n=a,this._nextChunk()},this._nextChunk=function(){var a,u;if(!this._finished)return a=this._config.chunkSize,n=a?(u=n.substring(0,a),n.substring(a)):(u=n,""),this._finished=!n,this.parseChunk(u)}}function Re(i){K.call(this,i=i||{});var n=[],a=!0,u=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(d){this._input=d,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&n.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),n.length?this.parseChunk(n.shift()):a=!0},this._streamData=pe(function(d){try{n.push(typeof d=="string"?d:d.toString(this._config.encoding)),a&&(a=!1,this._checkIsFinished(),this.parseChunk(n.shift()))}catch(_){this._streamError(_)}},this),this._streamError=pe(function(d){this._streamCleanUp(),this._sendError(d)},this),this._streamEnd=pe(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=pe(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function st(i){var n,a,u,d,_=Math.pow(2,53),L=-_,J=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Z=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,C=this,M=0,p=0,q=!1,m=!1,v=[],f={data:[],errors:[],meta:{}};function Y(k){return i.skipEmptyLines==="greedy"?k.join("").trim()==="":k.length===1&&k[0].length===0}function S(){if(f&&u&&(X("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),u=!1),i.skipEmptyLines&&(f.data=f.data.filter(function(A){return!Y(A)})),j()){let A=function(B,I){B=U(B),O(i.transformHeader)&&(B=i.transformHeader(B,I)),v.push(B)};var g=A;if(f)if(Array.isArray(f.data[0])){for(var k=0;j()&&k(z=>(i.dynamicTypingFunction&&i.dynamicTyping[z]===void 0&&(i.dynamicTyping[z]=i.dynamicTypingFunction(z)),(i.dynamicTyping[z]||i.dynamicTyping)===!0))(D)?R==="true"||R==="TRUE"||R!=="false"&&R!=="FALSE"&&((z=>{if(J.test(z)&&(z=parseFloat(z),L=v.length?"__parsed_extra":v[x]:y,W=i.transform?i.transform(W,y):W);y==="__parsed_extra"?(I[y]=I[y]||[],I[y].push(W)):I[y]=W}return i.header&&(x>v.length?X("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+x,p+B):xi.preview?a.abort():(f.data=f.data[0],d(f,C))))}),this.parse=function(k,b,P){var g=i.quoteChar||'"',g=(i.newline||(i.newline=this.guessLineEndings(k,g)),u=!1,i.delimiter?O(i.delimiter)&&(i.delimiter=i.delimiter(k),f.meta.delimiter=i.delimiter):((g=((A,B,I,x,y)=>{var W,D,R,z;y=y||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var ge=0;ge=P.length/2?`\r `:"\r"}}function we(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qe(i){var n=(i=i||{}).delimiter,a=i.newline,u=i.comments,d=i.step,_=i.preview,L=i.fastMode,J=null,Z=!1,C=i.quoteChar==null?'"':i.quoteChar,M=C;if(i.escapeChar!==void 0&&(M=i.escapeChar),(typeof n!="string"||-1=_)return $(!0);break}P.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:p}),D++}}else if(u&&g.length===0&&m.substring(p,p+X)===u){if(y===-1)return $();p=y+j,y=m.indexOf(a,p),x=m.indexOf(n,p)}else if(x!==-1&&(x=_)return $(!0)}return ae();function z(H){b.push(H),A=p}function ge(H){var Q=0;return Q=H!==-1&&(H=m.substring(D+1,H))&&H.trim()===""?H.length:Q}function ae(H){return f||(H===void 0&&(H=m.substring(p)),g.push(H),p=Y,z(g),k&&se()),$()}function xe(H){p=H,z(g),g=[],y=m.indexOf(a,p)}function $(H){if(i.header&&!v&&b.length&&!Z){var Q=b[0],de=Object.create(null),Ke=new Set(Q);let dt=!1;for(let ye=0;ye{var u;return!!s.WORKERS_SUPPORTED&&(u=(()=>{var d=c.URL||c.webkitURL||null,_=r.toString();return s.BLOB_URL||(s.BLOB_URL=d.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",_,")();"],{type:"text/javascript"})))})(),(u=new c.Worker(u)).onmessage=pi,u.id=h++,l[u.id]=u)})()).userStep=n.step,a.userChunk=n.chunk,a.userComplete=n.complete,a.userError=n.error,n.step=O(n.step),n.chunk=O(n.chunk),n.complete=O(n.complete),n.error=O(n.error),delete n.worker,a.postMessage({input:i,config:n,workerId:a.id})},s.unparse=function(i,n){var a=!1,u=!0,d=",",_=`\r `,L='"',J=L+L,Z=!1,C=null,M=!1,p=((()=>{if(typeof n=="object"){if(typeof n.delimiter!="string"||s.BAD_DELIMITERS.filter(function(v){return n.delimiter.indexOf(v)!==-1}).length||(d=n.delimiter),typeof n.quotes!="boolean"&&typeof n.quotes!="function"&&!Array.isArray(n.quotes)||(a=n.quotes),typeof n.skipEmptyLines!="boolean"&&typeof n.skipEmptyLines!="string"||(Z=n.skipEmptyLines),typeof n.newline=="string"&&(_=n.newline),typeof n.quoteChar=="string"&&(L=n.quoteChar,J=L+L),typeof n.header=="boolean"&&(u=n.header),Array.isArray(n.columns)){if(n.columns.length===0)throw new Error("Option columns is empty");C=n.columns}n.escapeChar!==void 0&&(J=n.escapeChar+L),n.escapeFormulae instanceof RegExp?M=n.escapeFormulae:typeof n.escapeFormulae=="boolean"&&n.escapeFormulae&&(M=/^[=+\-@\t\r].*$/)}})(),new RegExp(we(L),"g"));if(typeof i=="string"&&(i=JSON.parse(i)),Array.isArray(i)){if(!i.length||Array.isArray(i[0]))return q(null,i,Z);if(typeof i[0]=="object")return q(C||Object.keys(i[0]),i,Z)}else if(typeof i=="object")return typeof i.data=="string"&&(i.data=JSON.parse(i.data)),Array.isArray(i.data)&&(i.fields||(i.fields=i.meta&&i.meta.fields||C),i.fields||(i.fields=Array.isArray(i.data[0])?i.fields:typeof i.data[0]=="object"?Object.keys(i.data[0]):[]),Array.isArray(i.data[0])||typeof i.data[0]=="object"||(i.data=[i.data])),q(i.fields||[],i.data||[],Z);throw new Error("Unable to serialize unrecognized input");function q(v,f,Y){var S="",j=(typeof v=="string"&&(v=JSON.parse(v)),typeof f=="string"&&(f=JSON.parse(f)),Array.isArray(v)&&0{for(var b=0;b{class r extends Zt{_elementRef=E(Ot);_focusTrapFactory=E(Gt);_config;_interactivityChecker=E(Qt);_ngZone=E(wt);_focusMonitor=E(Vt);_renderer=E(At);_changeDetectorRef=E(Ht);_injector=E(ve);_platform=E($t);_document=E(Dt);_portalOutlet;_focusTrapped=new Oe;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=E(ke,{optional:!0})||new ke,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{l(),h(),e.removeAttribute("tabindex")},l=this._renderer.listen(e,"blur",o),h=this._renderer.listen(e,"mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(e){this._isDestroyed||Tt(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let o=qe(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,t=qe();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=qe()))}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=G({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(t,o){if(t&1&&Lt(Te,7),t&2){let l;Mt(l=Pt())&&(o._portalOutlet=l.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,o){t&2&&Ne("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[Be],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,o){t&1&&ue(0,gi,0,0,"ng-template",0)},dependencies:[Te],styles:[`.cdk-dialog-container { display: block; width: 100%; height: 100%; min-height: inherit; max-height: inherit; } `],encapsulation:2})}return r})(),he=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new Oe;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(c,e){this.overlayRef=c,this.config=e,this.disableClose=e.disableClose,this.backdropClick=c.backdropClick(),this.keydownEvents=c.keydownEvents(),this.outsidePointerEvents=c.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!We(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=c.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(c,e){if(this._canClose(c)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(c),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(c="",e=""){return this.overlayRef.updateSize({width:c,height:e}),this}addPanelClass(c){return this.overlayRef.addPanelClass(c),this}removePanelClass(c){return this.overlayRef.removePanelClass(c),this}_canClose(c){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(c,e,this.componentInstance))}},yi=new Fe("DialogScrollStrategy",{providedIn:"root",factory:()=>{let r=E(ve);return()=>Xt(r)}}),Se=new Fe("DialogData"),Ci=new Fe("DefaultDialogConfig");function vi(r){let c=xt(r),e=new Pe;return{valueSignal:c,get value(){return c()},change:e,ngOnDestroy(){e.complete()}}}var ot=(()=>{class r{_injector=E(ve);_defaultOptions=E(Ci,{optional:!0});_parentDialog=E(r,{optional:!0,skipSelf:!0});_overlayContainer=E(ti);_idGenerator=E(Jt);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Oe;_afterOpenedAtThisLevel=new Oe;_ariaHiddenElements=new Map;_scrollStrategy=E(yi);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=pt(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ct(void 0)));constructor(){}open(e,t){let o=this._defaultOptions||new ke;t=ee(ee({},o),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let l=this._getOverlayConfig(t),h=oi(this._injector,l),s=new he(h,t),U=this._attachContainer(h,s,t);if(s.containerInstance=U,!this.openDialogs.length){let K=this._overlayContainer.getContainerElement();U._focusTrapped?U._focusTrapped.pipe(gt(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(K)}):this._hideNonDialogContentFromAssistiveTechnology(K)}return this._attachDialogContent(e,s,U,t),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){it(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){it(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),it(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let t=new ei({positionStrategy:e.positionStrategy||ni().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){let l=o.injector||o.viewContainerRef?.injector,h=[{provide:ke,useValue:o},{provide:he,useValue:t},{provide:ii,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,h.push(...o.container.providers(o))):s=nt;let U=new Xe(s,o.viewContainerRef,ve.create({parent:l||this._injector,providers:h}));return e.attach(U).instance}_attachDialogContent(e,t,o,l){if(e instanceof St){let h=this._createInjector(l,t,o,void 0),s={$implicit:l.data,dialogRef:t};l.templateContext&&(s=ee(ee({},s),typeof l.templateContext=="function"?l.templateContext():l.templateContext)),o.attachTemplatePortal(new Yt(e,null,s,h))}else{let h=this._createInjector(l,t,o,this._injector),s=o.attachComponentPortal(new Xe(e,l.viewContainerRef,h));t.componentRef=s,t.componentInstance=s.instance}}_createInjector(e,t,o,l){let h=e.injector||e.viewContainerRef?.injector,s=[{provide:Se,useValue:e.data},{provide:he,useValue:t}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(t,e,o)):s.push(...e.providers)),e.direction&&(!h||!h.get(tt,null,{optional:!0}))&&s.push({provide:tt,useValue:vi(e.direction)}),ve.create({parent:h||l,providers:s})}_removeOpenDialog(e,t){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,h)=>{l?h.setAttribute("aria-hidden",l):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){let l=t[o];l!==e&&l.nodeName!=="SCRIPT"&&l.nodeName!=="STYLE"&&!l.hasAttribute("aria-live")&&!l.hasAttribute("popover")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||r)};static \u0275prov=Ce({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function it(r,c){let e=r.length;for(;e--;)c(r[e])}var li=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=It({type:r});static \u0275inj=bt({providers:[ot],imports:[ai,et,Kt,et]})}return r})();N();var Ve=(()=>{class r{constructor(){this.buttonClass="borderless",this.clicked=new Pe}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=G({type:r,selectors:[["close-button"]],inputs:{buttonClass:"buttonClass"},outputs:{clicked:"clicked"},decls:2,vars:2,consts:()=>{let e;return e=$localize`Close`,[["type","button","tooltip",e,1,"closeButton","btn","md",3,"click"],["name","internal-close"]]},template:function(t,o){t&1&&(w(0,"button",0),ce("click",function(h){return o.clicked.emit(h)}),oe(1,"icon",1),F()),t&2&&fe(o.buttonClass)},dependencies:[si,$e],encapsulation:2})}}return r})();function bi(r,c){if(r&1){let e=He();w(0,"button",9),ce("click",function(){Le(e);let o=V();return Me(o.confirm(!1))}),w(1,"span"),re(2),F()()}if(r&2){let e=V();T(2),me(e.data.noText)}}var ci=(()=>{class r{constructor(){this.dialogRef=E(he),this.data={message:"",title:"",confirmText:$localize`Yes`,cancelText:$localize`Cancel`,noText:$localize`No`,isDanger:!0,noOption:!1},Object.assign(this.data,E(Se))}confirm(e){this.dialogRef.close(e)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=G({type:r,selectors:[["confirm-dialog"]],decls:14,vars:9,consts:[[1,"flex-no-shrink","d-flex","pa-8"],[1,"h2","pa-16","flex-grow"],[3,"clicked"],[1,"px-24","pb-24","scroll-y"],[3,"innerHTML"],[1,"d-flex","flex-column","flex-sm-row","justify-content-end","mt-24"],["id","btn-dialog-cancel","type","button",1,"btn","md","secondary","mb-12","mb-sm-0","w-100","w-sm-auto",3,"click"],["id","btn-dialog-no","type","button","cdkFocusInitial","",1,"btn","md","secondary","w-100","mr-sm-12","mb-12","w-sm-auto"],["id","btn-dialog-yes","type","button","cdkFocusInitial","",1,"btn","md","primary","w-100","w-sm-auto",3,"click"],["id","btn-dialog-no","type","button","cdkFocusInitial","",1,"btn","md","secondary","w-100","mr-sm-12","mb-12","w-sm-auto",3,"click"]],template:function(t,o){t&1&&(w(0,"div",0)(1,"h2",1),re(2),F(),w(3,"close-button",2),ce("clicked",function(){return o.cancel()}),F()(),w(4,"div",3),oe(5,"p",4),w(6,"div",5)(7,"button",6),ce("click",function(){return o.cancel()}),w(8,"span"),re(9),F()(),te(10,bi,3,1,"button",7),w(11,"button",8),ce("click",function(){return o.confirm(!0)}),w(12,"span"),re(13),F()()()()),t&2&&(T(2),be(" ",o.data.title," "),T(3),ne("innerHTML",o.data.message,je),T(2),fe(o.data.noOption?"mr-auto":"mr-sm-12"),T(2),me(o.data.cancelText),T(),ie(o.data.noOption?10:-1),T(),Bt("danger",o.data.isDanger),T(2),me(o.data.confirmText))},dependencies:[Ve],encapsulation:2})}}return r})();N();function ki(r,c){if(r&1){let e=He();w(0,"div",0)(1,"h2",6),re(2),F(),w(3,"close-button",7),ce("clicked",function(){Le(e);let o=V();return Me(o.close())}),F()()}if(r&2){let e=V();T(2),be(" ",e.data.title," ")}}var di=(()=>{class r{constructor(){this.dialogRef=E(he),this.data=E(Se),this.btnText=this.data.btnText||$localize`:acknowledged:OK`}close(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=G({type:r,selectors:[["info-dialog"]],decls:8,vars:3,consts:[[1,"flex-no-shrink","d-flex","pa-8"],[1,"pa-24"],[1,"dialog-content"],[3,"innerHTML"],[1,"d-flex","mt-24"],["type","button","cdkFocusInitial","",1,"btn","md","primary","ml-auto",3,"click"],[1,"h2","pt-16","px-16","flex-grow"],[3,"clicked"]],template:function(t,o){t&1&&(te(0,ki,4,1,"div",0),w(1,"div",1)(2,"div",2),oe(3,"p",3),F(),w(4,"div",4)(5,"button",5),ce("click",function(){return o.close()}),w(6,"span"),re(7),F()()()()),t&2&&(ie(o.data.title?0:-1),T(3),ne("innerHTML",o.data.message,je),T(4),me(o.btnText))},dependencies:[li,Ve],encapsulation:2})}}return r})();N();function Di(r,c){}var ui=(()=>{class r extends nt{_contentAttached(){setTimeout(()=>{super._contentAttached()})}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Et(r)))(o||r)}})()}static{this.\u0275cmp=G({type:r,selectors:[["cdk-dialog-container"]],hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,o){t&2&&Ne("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[Be],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,o){t&1&&ue(0,Di,0,0,"ng-template",0)},dependencies:[Te],styles:[`.cdk-dialog-container{display:block;position:relative;border-radius:var(--border-radius-double);overflow-y:hidden;width:100%;height:100%;min-height:inherit;max-height:inherit} `],encapsulation:2})}}return r})();var Nn=(()=>{class r{constructor(){this.dialog=E(ot),this.overlay=E(ri),this.defaultConfig={hasBackdrop:!0,panelClass:["custom-dialog"],backdropClass:"custom-dialog-backdrop",autoFocus:"first-tabbable",maxWidth:"calc(100vw - 32px)",closeOnNavigation:!0,container:ui}}confirm(e){return this.smallDialog(ci,{data:e})}info(e){return this.smallDialog(di,{data:e})}smallDialog(e,t){return this.openDialog(e,Je(ee({},t),{width:"500px"}))}mediumDialog(e,t){return this.openDialog(e,Je(ee({},t),{width:"650px"}))}openDialog(e,t){let o=ee(ee({},this.defaultConfig),t),l=this.dialog.open(e,o);return l.overrideCloseBehaviour=h=>{l.disableClose=!0,mt(l.backdropClick,l.keydownEvents.pipe(Ze(s=>s.key==="Escape"&&!We(s)))).subscribe(()=>{h()})},l}createFullscreenOverlay(e){return this.overlay.create(ee({hasBackdrop:this.defaultConfig.hasBackdrop,backdropClass:this.defaultConfig.backdropClass,width:"100%",height:"100%"},e))}confirmDiscard(){return this.confirm({title:$localize`Discard Changes?`,message:$localize`Are you sure you want to discard changes? Your progress will be lost.`,confirmText:$localize`Discard Changes`,cancelText:$localize`Cancel`,isDanger:!0}).closed}confirmDiscardAndCloseDialog(e,t){if(t){e.close();return}this.confirmDiscard().pipe(Ze(o=>!!o)).subscribe(()=>{e.close()})}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();N();var wi=["*"];function xi(r,c){if(r&1&&oe(0,"icon",3),r&2){let e=V();fe(e.iconClass),ne("name",e.logo)}}function Ei(r,c){if(r&1&&(w(0,"p",4),re(1),F()),r&2){let e=V();fe(e.textClass),T(),be(" ",e.title," ")}}var Wn=(()=>{class r{constructor(){this.class="d-block pa-40 my-16",this.iconClass="text-muted",this.textClass="text-quiet"}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=G({type:r,selectors:[["no-item"]],hostVars:2,hostBindings:function(t,o){t&2&&fe(o.class)},inputs:{class:"class",iconClass:"iconClass",textClass:"textClass",logo:"logo",title:"title",message:"message"},ngContentSelectors:wi,decls:6,vars:5,consts:[[1,"text-center"],[1,"icon","size-96",3,"name","class"],[1,"h3",3,"class"],[1,"icon","size-96",3,"name"],[1,"h3"]],template:function(t,o){t&1&&(Rt(),w(0,"div",0),te(1,xi,1,3,"icon",1),te(2,Ei,2,3,"p",2),w(3,"p"),re(4),F(),Ft(5),F()),t&2&&(T(),ie(o.logo?1:-1),T(),ie(o.title?2:-1),T(),fe(o.textClass),T(),me(o.message))},dependencies:[$e],encapsulation:2})}}return r})();N();var Oi=(r,c,e)=>({"pa-0":r,"pa-8":c,"pa-16":e});function Ti(r,c){r&1&&ze(0)}function Si(r,c){if(r&1&&(w(0,"div",1)(1,"div",3),ue(2,Ti,1,0,"ng-container",4),F()()),r&2){V();let e=Ue(3);T(2),ne("ngTemplateOutlet",e)}}function Ai(r,c){r&1&&ze(0)}function Ii(r,c){if(r&1&&(w(0,"div",5)(1,"div",6),ue(2,Ai,1,0,"ng-container",4),F()()),r&2){V(2);let e=Ue(3);T(2),ne("ngTemplateOutlet",e)}}function Ri(r,c){r&1&&ze(0)}function Fi(r,c){if(r&1&&(w(0,"div")(1,"div",7),ue(2,Ri,1,0,"ng-container",4),F()()),r&2){let e=V(2),t=Ue(3);T(),ne("ngClass",Nt(2,Oi,e.padding==="none",e.padding==="icon",e.padding==="regular")),T(),ne("ngTemplateOutlet",t)}}function Li(r,c){if(r&1&&(w(0,"div",2),te(1,Ii,3,1,"div",5)(2,Fi,3,6,"div"),F()),r&2){let e,t=V();T(),ie((e=t.padding)==="large"?1:2)}}function Mi(r,c){if(r&1&&(kt(),w(0,"svg",8)(1,"g"),oe(2,"animateTransform",9),w(3,"circle",10),oe(4,"animateTransform",11)(5,"animate",12),F()()()),r&2){let e=V();jt("width",e.size,"px")("height",e.size,"px")}}var Gn=(()=>{class r{constructor(){this.padding="large",this.asOverlay=!1,this.size=24}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=G({type:r,selectors:[["loader"]],inputs:{padding:"padding",asOverlay:"asOverlay",size:"size"},decls:4,vars:2,consts:[["loader",""],[1,"overlay"],[1,"pos-rel"],[1,"overlay-inner"],[4,"ngTemplateOutlet"],[1,"pa-40","my-40"],[1,"d-flex","py-16","px-40"],[1,"d-flex",3,"ngClass"],["viewBox","0 0 66 66","xmlns","http://www.w3.org/2000/svg",1,"mx-auto"],["attributeName","transform","type","rotate","values","0 33 33;270 33 33","begin","0s","dur","1.4s","fill","freeze","repeatCount","indefinite"],["fill","none","stroke-width","11%","stroke-linecap","round","cx","33","cy","33","r","30","stroke-dasharray","187","stroke-dashoffset","610"],["attributeName","transform","type","rotate","values","0 33 33;135 33 33;450 33 33","begin","0s","dur","1.4s","fill","freeze","repeatCount","indefinite"],["attributeName","stroke-dashoffset","values","187;46.75;187","begin","0s","dur","1.4s","fill","freeze","repeatCount","indefinite"]],template:function(t,o){t&1&&(te(0,Si,3,1,"div",1),te(1,Li,3,1,"div",2),ue(2,Mi,6,4,"ng-template",null,0,zt)),t&2&&(ie(o.asOverlay?0:-1),T(),ie(o.asOverlay?-1:1))},dependencies:[Wt,qt],styles:["[_nghost-%COMP%]{stroke:var(--loader-color)}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1;background-color:hsla(var(--white_hsl),.8)}.overlay[_ngcontent-%COMP%] .overlay-inner[_ngcontent-%COMP%]{display:flex;max-height:1000px;max-height:calc(var(--vh, 1vh) * 100);height:100%}.overlay[_ngcontent-%COMP%] .overlay-inner[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin:auto}"]})}}return r})();N();var hi=_i(fi());var to=(()=>{class r{toHttpParams(e){if(!e)return;let t=new Ut;for(let[o,l]of Object.entries(e))if(l!=null)if(Array.isArray(l))for(let h of l)t=t.append(o,String(h));else t=t.append(o,String(l));return t}toFormData(e,t){if(!e)return;let o=h=>{let s=h!=null,U=t&&t.removeEmptyStrings;return s&&(!U||h!=="")},l=new FormData;for(let[h,s]of Object.entries(e))if(o(s))if(Array.isArray(s)||s instanceof FileList)for(let U of Array.from(s))o(U)&&l.append(h,U instanceof File?U:String(U));else l.append(h,s instanceof File?s:String(s));return l}splitFormData(e){let t={};for(let[o,l]of Object.entries(e))l instanceof File&&(t[o]=l,delete e[o]);return[e,Object.keys(t).length?this.toFormData(t):null]}getCursorPosition(e){if("selectionStart"in e&&"selectionEnd"in e){let t=e.selectionStart,o=e.selectionEnd;if(t===o)return o}return null}bufferToHex(e){let t=[];for(let h=0;h<=255;++h){let s=h.toString(16).padStart(2,"0");t.push(s)}let o=new Uint8Array(e),l=[];for(let h=0;ho.offset/o.limit>=l?(console.debug(`HelperService.fetchAllPages timed out after fetching ${l} pages.`),Ye):h.count>=o.offset?e(o):Ye),vt(()=>{o.offset+=o.limit}),ht(h=>h.results),_t((h,s)=>h.concat(s),new Array))}slugify(e,t=!0){return e?(e=e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/-(-|_)+/g,"-").replace(/_(-|_)+/g,"_").replace(/^-|^_/g,""),t||(e=e.replace(/_+/g,"-")),e):""}observeOnResize(e,t){return new ft(o=>{let l=new ResizeObserver((h,s)=>{o.next(h)});return l.observe(e,t),()=>l.disconnect()})}parseCsvFile(e){return new Promise((t,o)=>{hi.default.parse(e,{header:!0,transformHeader:l=>l.trim().toLowerCase().replace(/\s+/g,"_"),skipEmptyLines:"greedy",complete:l=>t(l.data),error:l=>o(l)})})}updateCssProperty(e,t,o){o!==void 0?e.style.setProperty(t,o):e.style.removeProperty(t)}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=Ce({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{fi as a,to as b,he as c,Se as d,ot as e,li as f,Ve as g,Nn as h,Wn as i,Gn as j};