1(self.webpackChunkhomepageUi=self.webpackChunkhomepageUi||[]).push([[125],{7108(ft,ve,d){d.d(ve,{T:()=>ue});var E=d(4360),S=d(9974);function ue(h,I){return(0,S.N)(function s(h,I,D,F,R){return(Ae,k)=>{let x=D,O=I,le=0;Ae.subscribe((0,E._)(k,L=>{const M=le++;O=x?h(O,L,M):(x=!0,L),F&&k.next(O)},R&&(()=>{x&&k.next(O),k.complete()})))}}(h,I,arguments.length>=2,!1,!0))}},6050(ft,ve,d){d.d(ve,{Qc:()=>k});var S=d(5802);d(1985),d(3726),d(3294),d(6354),d(7647),d(4668),d(9172);const k=new S.nKC("",{factory:()=>{const{defaultView:$}=(0,S.WQX)(S.qQL);if(!$)throw new Error("Window is not available");return $}})},125(ft,ve,d){d.d(ve,{zc:()=>ci,yk:()=>Mt,kh:()=>Wn,ZP:()=>it,T8:()=>xt,ht:()=>gi,HC:()=>as,i8:()=>us});var E=d(467),s=d(5802),S=d(5547),ue=d(7705),h=d(5690),I=d(2934),D=d(4454),F=d(4900),R=d(3570);class ie extends D.o_{}class w extends ie{}class de{}class De{}class re{}function Ee(t){return(0,s.Af3)(Ee),(0,s.WQX)(y).getLogger(t)}class y{}class pe{}class q{}class Le{}class Re{}const C={APP_ID:(0,h.rG)("APP_ID"),SCRIPT_PATH:(0,h.rG)("SCRIPT_PATH"),APP_PROVIDER:(0,h.rG)("APP_PROVIDER"),SERVICE_NAME:(0,h.rG)("SERVICE_NAME"),ROUTER:(0,h.rG)("ROUTER"),ACTIVATED_ROUTE:(0,h.rG)("ACTIVATED_ROUTE"),HASH_LOCATION_STRATEGY_TYPE:(0,h.rG)("HASH_LOCATION_STRATEGY_TYPE"),PRELOADING_STRATEGY:(0,h.rG)("PRELOADING_STRATEGY"),ROUTER_PRELOADER:(0,h.rG)("ROUTER_PRELOADER"),ZONE:(0,h.rG)("ZONE"),ZONELESS:(0,h.rG)("ZONELESS"),API_USED:(0,h.rG)("API_USED"),APP_REF:(0,h.rG)("APP_REF"),APP_ROUTES:(0,h.rG)("APP_ROUTES"),API_VERSION:(0,h.rG)("API_VERSION"),INTERCEPTOR_FN:(0,h.rG)("INTERCEPTOR_FN"),INTEGRATED_TYPES:(0,h.rG)("INTEGRATED_TYPES"),LIFECYCLE_CONFIG:(0,h.rG)("LIFECYCLE_CONFIG"),HTTP_CLIENT:(0,h.rG)("HTTP_CLIENT"),HTTP_XHR_BACKEND:(0,h.rG)("HTTP_XHR_BACKEND"),FETCH_BACKEND:(0,h.rG)("FETCH_BACKEND"),...h.ih};var Vt=d(8141),oe=d(6697),mn=d(1986),K=d(6354),G=d(5964),Ce=d(5558),ae=d(2087),We=d(9437),yt=d(9172),mt=d(3294),Oe=d(4668),he=d(3794),B=d(1635),H=d(5984),Xe=d(9769),ye=d(6494),Ke=d(4412),be=d(2771),Z=d(4843),U=d(1413),V=d(7673),Y=d(980),A=d(1985),ze=d(8750),_e=d(2326),$e=d(4360);var Ze=d(1807),at=d(1203),Xt=d(9901),Ie=d(6977),xe=d(9724),Kt=d(6365),He=d(3726),An=d(274),At=d(4402),Ct=d(7108),b=d(9882),zt=d(9079);const In={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let $t;const $n=new Uint8Array(16),j=[];for(let t=0;t<256;++t)j.push((t+256).toString(16).slice(1));function Pt(t,i,e){const n=(t=t||{}).random??t.rng?.()??function It(){if(!$t){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");$t=crypto.getRandomValues.bind(crypto)}return $t($n)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,i){if((e=e||0)<0||e+16>i.length)throw new RangeError(`UUID byte range ${e}:${e+15} is out of buffer bounds`);for(let r=0;r<16;++r)i[e+r]=n[r];return i}return function Be(t,i=0){return(j[t[i+0]]+j[t[i+1]]+j[t[i+2]]+j[t[i+3]]+"-"+j[t[i+4]]+j[t[i+5]]+"-"+j[t[i+6]]+j[t[i+7]]+"-"+j[t[i+8]]+j[t[i+9]]+"-"+j[t[i+10]]+j[t[i+11]]+j[t[i+12]]+j[t[i+13]]+j[t[i+14]]+j[t[i+15]]).toLowerCase()}(n)}var Ye=d(6050),Nt=d(177),fe=function(t){return t.Local="local_strategy",t.Session="session_strategy",t.InMemory="in_memory_strategy",t}(fe||{});class qt{static isStorageAvailable(i){let e=!0;try{"object"==typeof i?(i.setItem("test-storage","foobar"),i.removeItem("test-storage")):e=!1}catch{e=!1}return e}}function qe(){}const Rt="ngx-webstorage";let ee=(()=>{class t{static{this.prefix=Rt}static{this.separator="|"}static{this.isCaseSensitive=!1}static normalize(e){return e=t.isCaseSensitive?e:e.toLowerCase(),`${t.prefix}${t.separator}${e}`}static isNormalizedKey(e){return 0===e.indexOf(t.prefix+t.separator)}static setPrefix(e){t.prefix=e}static setSeparator(e){t.separator=e}static setCaseSensitive(e){t.isCaseSensitive=e}static consumeConfiguration(e){"prefix"in e&&this.setPrefix(e.prefix),"separator"in e&&this.setSeparator(e.separator),"caseSensitive"in e&&this.setCaseSensitive(e.caseSensitive)}
1}return t})();class Te{constructor(i){this.strategy=i}retrieve(i){let e;return this.strategy.get(ee.normalize(i)).subscribe(n=>e=typeof n>"u"?null:n),e}store(i,e){return this.strategy.set(ee.normalize(i),e).subscribe(qe),e}clear(i){void 0!==i?this.strategy.del(ee.normalize(i)).subscribe(qe):this.strategy.clear().subscribe(qe)}getStrategyName(){return this.strategy.name}observe(i){return i=ee.normalize(i),this.strategy.keyChanges.pipe((0,G.p)(e=>null===e||e===i),(0,Ce.n)(()=>this.strategy.get(i)),(0,mt.F)(),(0,Oe.t)({refCount:!0,bufferSize:1}))}}let et=(()=>{class t{constructor(){this.caches={}}get(e,n){return this.getCacheStore(e)[n]}set(e,n,r){this.getCacheStore(e)[n]=r}del(e,n){delete this.getCacheStore(e)[n]}clear(e){this.caches[e]={}}getCacheStore(e){return e in this.caches?this.caches[e]:this.caches[e]={}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const bt=new s.nKC("window_local_storage"),tn={provide:bt,useFactory:function en(){return typeof window<"u"?window.localStorage:null}},_t=new s.nKC("window_session_storage"),Rn={provide:_t,useFactory:function nn(){return typeof window<"u"?window.sessionStorage:null}};class tt{constructor(i,e){this.storage=i,this.cache=e,this.keyChanges=new U.B}get isAvailable(){return void 0===this._isAvailable&&(this._isAvailable=qt.isStorageAvailable(this.storage)),this._isAvailable}get(i){let e=this.cache.get(this.name,i);if(void 0!==e)return(0,V.of)(e);try{const n=this.storage.getItem(i);null!==n&&(e=JSON.parse(n),this.cache.set(this.name,i,e))}catch(n){console.warn(n)}return(0,V.of)(e)}set(i,e){const n=JSON.stringify(e);return this.storage.setItem(i,n),this.cache.set(this.name,i,e),this.keyChanges.next(i),(0,V.of)(e)}del(i){return this.storage.removeItem(i),this.cache.del(this.name,i),this.keyChanges.next(i),(0,V.of)(null)}clear(){return this.storage.clear(),this.cache.clear(this.name),this.keyChanges.next(null),(0,V.of)(null)}}class ke extends tt{static{this.strategyName=fe.Local}constructor(i,e,n,r){super(i,e),this.storage=i,this.cache=e,this.platformId=n,this.zone=r,this.name=ke.strategyName,(0,Nt.UE)(this.platformId)&&this.listenExternalChanges()}listenExternalChanges(){window.addEventListener("storage",i=>this.zone.run(()=>{if(i.storageArea!==this.storage)return;const e=i.key;null!==e?this.cache.del(this.name,i.key):this.cache.clear(this.name),this.keyChanges.next(e)}))}static{this.\u0275fac=function(e){return new(e||ke)(s.KVO(bt),s.KVO(et),s.KVO(S.Agw),s.KVO(s.SKi))}}static{this.\u0275prov=s.jDH({token:ke,factory:ke.\u0275fac})}}class Pe extends tt{static{this.strategyName=fe.Session}constructor(i,e,n,r){super(i,e),this.storage=i,this.cache=e,this.platformId=n,this.zone=r,this.name=Pe.strategyName,(0,Nt.UE)(this.platformId)&&this.listenExternalChanges()}listenExternalChanges(){window.addEventListener("storage",i=>this.zone.run(()=>{if(i.storageArea!==this.storage)return;const e=i.key;null!==i.key?this.cache.del(this.name,i.key):this.cache.clear(this.name),this.keyChanges.next(e)}))}static{this.\u0275fac=function(e){return new(e||Pe)(s.KVO(_t),s.KVO(et),s.KVO(S.Agw),s.KVO(s.SKi))}}static{this.\u0275prov=s.jDH({token:Pe,factory:Pe.\u0275fac})}}class Ue{static{this.strategyName=fe.InMemory}constructor(i){this.cache=i,this.keyChanges=new U.B,this.isAvailable=!0,this.name=Ue.strategyName}get(i){return(0,V.of)(this.cache.get(this.name,i))}set(i,e){return this.cache.set(this.name,i,e),this.keyChanges.next(i),(0,V.of)(e)}del(i){return this.cache.del(this.name,i),this.keyChanges.next(i),(0,V.of)(null)}clear(){return this.cache.clear(this.name),this.keyChanges.next(null),(0,V.of)(null)}static{this.\u0275fac=function(e){return new(e||Ue)(s.KVO(et))}}static{this.\u0275prov=s.jDH({token:Ue,factory:Ue.\u0275fac})}}const Ge=new s.nKC("STORAGE_STRATEGIES"),On=[{provide:Ge,useClass:Ue,multi:!0},{provide:Ge,useClass:ke,multi:!0},{provide:Ge,useClass:Pe,multi:!0}],[kt,bn,Ft]=On,on="invalid_strategy";let Ve=(()=>{class t{static{this.index={}}constructor(e){this.strategies=e,this.registration$=new U.B,e||(e=[]),this.strategies=e.reverse().map((n,r,l)=>n.name).map((n,r,l)=>l.indexOf(n)===r?r:null).filter(n=>null!==n).map(n=>e[n])}static get(e){if(!this.isStrategyRegistered(e))throw Error(on);let n=this.index[e];return n.isAvailable||(n=this.index[fe.InMemory]),n}static set(e,n){this.index[e]=n}static clear(e){void 0!==e?delete this.index[e]:this.index={}}static isStrategyRegistered(e){return e in this.index}static hasRegistredStrategies(){return Object.keys(this.index).length>0}getStrategy(e){return t.get(e)}
1indexStrategies(){this.strategies.forEach(e=>this.register(e.name,e))}indexStrategy(e,n=!1){if(t.isStrategyRegistered(e)&&!n)return t.get(e);const r=this.strategies.find(l=>l.name===e);if(!r)throw new Error(on);return this.register(e,r,n),r}register(e,n,r=!1){(!t.isStrategyRegistered(e)||r)&&(t.set(e,n),this.registration$.next(e))}static{this.\u0275fac=function(n){return new(n||t)(s.KVO(Ge,8))}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const kn={provide:class lt extends Te{},useFactory:function sn(t){const i=t.indexStrategy(fe.Local);return new Te(i)},deps:[Ve]};class dt extends Te{}const c={provide:dt,useFactory:function pt(t){const i=t.indexStrategy(fe.Session);return new Te(i)},deps:[Ve]},z=new s.nKC("ngx_webstorage_config");var te=function(t){return t[t.Config=1]="Config",t[t.LocalStorage=2]="LocalStorage",t[t.SessionStorage=3]="SessionStorage",t}(te||{});function Zn(...t){const{configProvider:i,featureProviders:e}=function Yn(t){let i;const e=[],n=new Set;for(const r of t){if(n.has(r.kind))throw new Error(`Feature ${r.kind} is already provided.`);r.kind===te.Config?i=r.providers[0]:e.push(...r.providers),n.add(r.kind)}return{configProvider:i??{provide:z,useValue:{prefix:Rt,separator:"|",caseSensitive:false}},featureProviders:e}}(t);return(0,s.EmA)([i,kt,(0,S.phd)(()=>function je(){const t=(0,s.WQX)(z),i=(0,s.WQX)(Ve);return()=>{ee.consumeConfiguration(t),i.indexStrategies()}}()()),...e])}function an(t,i){return{kind:t,providers:i}}const Cr=new s.nKC("validate application config",{factory:()=>!0}),Fn=new s.nKC("app config validator",{factory:()=>[]}),Fe=new s.nKC("external app reference"),wn=new s.nKC("hash routing active"),Pi=new s.nKC("on app init"),Lt=new s.nKC("okp common portal config"),Ni=new s.nKC("app overrides",{factory:()=>h.a1.create()}),Mt=new s.nKC("OKP_HTTP_INTERCEPTORS"),Di=new s.nKC("OKP_HTTP_BACKEND_INTERCEPTORS"),Ri=t=>(i,e)=>t.reduceRight((r,l)=>((t,i)=>e=>i(e,t))(r,l),e)(i),Oi=new s.nKC("basePath");class ht{constructor({accessToken:i,apiKeys:e,basePath:n,credentials:r,encodeParam
1:l,encoder:v,password:Q,username:Qe,withCredentials:ne}={}){e&&(this.apiKeys=e),void 0!==Qe&&(this.username=Qe),void 0!==Q&&(this.password=Q),void 0!==i&&(this.accessToken=i),void 0!==n&&(this.basePath=n),void 0!==ne&&(this.withCredentials=ne),v&&(this.encoder=v),this.encodeParam=l??(ot=>this.defaultEncodeParam(ot)),this.credentials=r??{}}selectHeaderContentType(i){if(0===i.length)return;const e=i.find(n=>this.isJsonMime(n));return void 0===e?i[0]:e}selectHeaderAccept(i){if(0===i.length)return;const e=i.find(n=>this.isJsonMime(n));return void 0===e?i[0]:e}isJsonMime(i){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==i&&(e.test(i)||"application/json-patch+json"===i.toLowerCase())}lookupCredential(i){const e=this.credentials[i];return"function"==typeof e?e():e}addCredentialToHeaders(i,e,n,r){const l=this.lookupCredential(i);return l?n.set(e,(r??"")+l):n}addCredentialToQuery(i,e,n){const r=this.lookupCredential(i);return r?n.set(e,r):n}defaultEncodeParam(i){const e="date-time"===i.dataFormat&&i.value instanceof Date?i.value.toISOString():i.value;return encodeURIComponent(String(e))}}class br{encodeKey(i){return encodeURIComponent(i)}encodeValue(i){return encodeURIComponent(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}class _r{constructor(i,e){if(this.basePath="https://banking-workspace-contracts-bws-etu.okp-mesh-etu-test.apps.caas-ekad-test01.rz.bankenit.de/service/okp-features-service",this.defaultHeaders=new he.Lr,this.configuration=e||new ht,"string"!=typeof this.configuration.basePath){const n=Array.isArray(i)?i[0]:void 0;null!=n&&(i=n),"string"!=typeof i&&(i=this.basePath),this.configuration.basePath=i}this.encoder=this.configuration.encoder||new br}canConsumeForm(i){return-1!==i.indexOf("multipart/form-data")}addToHttpParams(i,e,n,r=!1){return"object"!=typeof e||e instanceof Date?this.addToHttpParamsRecursive(i,e,n):this.addToHttpParamsRecursive(i,e,r?n:void 0,r)}addToHttpParamsRecursive(i,e,n,r=!1){if(null==e)return i;if("object"==typeof e){if(null!=n)return r?Object.keys(e).reduce((l,v)=>l.append(`${n}[${v}]`,e[v]),i):i.append(n,JSON.stringify(e));if(Array.isArray(e))e.forEach(l=>i=this.addToHttpParamsRecursive(i,l,n));else if(e instanceof Date){if(null==n)throw Error("key may not be null if value is Date");i=i.append(n,e.toISOString())}else Object.keys(e).forEach(l=>{i=this.addToHttpParamsRecursive(i,e[l],n?`${n}.${l}`:l)});return i}if(null!=n)return i.append(n,e);throw Error("key may not be null if value is not object or array")}}let bi=(()=>{class t extends _r{constructor(e,n,r){super(n,r),this.httpClient=e}getFeatures(e="body",n=!1,r){let l=this.defaultHeaders;const v=r?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);void 0!==v&&(l=l.set("Accept",v));const Q=r?.context??new he._y,Qe=r?.transferCache??!0;let ne="json";v&&(ne=v.startsWith("text")?"text":this.configuration.isJsonMime(v)?"json":"blob");const{basePath:dr,withCredentials:pr}=this.configuration;return this.httpClient.request("post",`${dr}/v1`,{context:Q,responseType:ne,...pr?{withCredentials:pr}:{},headers:l,observe:e,transferCache:Qe,reportProgress:n})}static{this.\u0275fac=function(n){return new(n||t)(s.KVO(he.Qq),s.KVO(Oi,8),s.KVO(ht,8))}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Wt=t=>{const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return"/"!==t[e-1]?t.slice(0,e)+"/"+t.slice(e):t};function ln(t){return(0,h.VX)(t,b.wF,b.Bx.NavigationEnd)||(0,h.VX)(t,b.L6,b.Bx.NavigationError)||(0,h.VX)(t,b.Cq,b.Bx.NavigationCancel)||(0,h.VX)(t,b.lW,b.Bx.NavigationSkipped)}let _i=(()=>{class t{#e;#t;#n=(0,s.WQX)(H.aZ);#i=new Ke.t(!1);#r=null;constructor(e=(0,s.WQX)(b.Ix)){this.#e=e,this.#t="function"==typeof this.#e.currentNavigation,this.#e.events.pipe((0,h.jL)(b.Z,b.Bx.NavigationStart),(0,Vt.M)(()=>{this.#r=this.#n.path(),this.#i.next(!0)}),(0,Ce.n)(()=>this.#e.events.pipe((0,G.p)(ln),(0,oe.s)(1))),(0,mn.c)(0)).subscribe(()=>{this.getCurrentNavigation()||(this.#r=null,this.#i.next(!1))})}isNavigating(){return this.#i.value}navigationFinished$(){return this.#i.pipe((0,G.p)(e=>!e),(0,K.T)(()=>{}))}isPopStateNavigation(){return"popstate"===this.getNavigation()?.trigger&&!!this.getNavigation()?.extras.state}isSameHistoryEntry(){const e=this.getCurrentNavigation();return!!e&&(!!e.extras.replaceUrl||!!e.extras.skipLocationChange||this.isSameUrl(e))}isSameUrl(e){if(this.#r){const n=this.#e.serializeUrl(e.finalUrl??e.initialUrl);return Wt(n)===Wt(this.#r)}return!1}isFirstApplicationCall(){return!this.getNavigation()?.previousNavigation}resetStateAfterNavigationFinished(){const e=this.#n.path(!0),n=this.#n.getState();this.navigationFinished$().pipe((0,oe.s)(1)).subscribe(()=>{this.#n.replaceState(e,"",n)})}getCurrentNavigation(){return this.#t?this.#e.currentNavigation():this.#e.getCurrentNavigation()}getLastSuccessfulNavigation(){return this.#t?this.#e.lastSuccessfulNavigation():this.#e.lastSuccessfulNavigation}
1getNavigation(){return this.getCurrentNavigation()??this.getLastSuccessfulNavigation()}static{this.\u0275fac=function(n){return new(n||t)(s.KVO(b.Ix))}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),wr=(()=>{class t{#e=(0,s.WQX)(Lt);getServiceUrl(e,n){if(void 0===n)throw new Error("Unsupported operation: ServiceName is mandatory");return`${this.#e.serviceProxyPath}/${H.aZ.joinWithSlash(e,n)}`}getPortalBasePath(){return this.#e.basePath}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),Lr=(()=>{class t{#e=(0,s.WQX)(I.Ji);getAssetPath(e,n){if(void 0===n)throw new Error("Unsupported operation: ServiceName is mandatory");const r=e,l=n.startsWith("/assets")?n:H.aZ.joinWithSlash("/assets",n);return this.#e.getServiceUrl(r,l)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();class ki{}class Fi extends D.Z7{}class qn{}class xt{}const we=F.bx.HIGHEST_PRECEDENCE+200,it={RELOAD_SERVICE:we,CONTEXT_TOKEN_SERVICE:we+10,CONTEXT_SERVICE:we+20,EVENT_BUS_SERVICE:we+30,DATA_STORAGE_SERVICE:we+40,TAB_COM_SERVICE:we+50,NAVIGATION_COUNTER_SERVICE:we+60,GLOBAL_NAVIGATION_COUNTER_SERVICE:we+61,NAVIGATION_ID_SERVICE:we+70,FEATURE_SERVICE:we+80};let Wr=(()=>{let t=class Hn extends D.V8{#e;#t;#n;constructor(){super(),this.#e=(0,s.WQX)(xt),this.#t={},this.#n=new be.m,this.isInitialized=(0,Z._)(this.#n)}onPortalInit(){var e=this;return(0,E.A)(function*(){e.registerReloadDataProvider(e.#e),e.#t={...yield e.#e.retrieve("OKP_DS"),...e.storages},e.#n.next()})()}get storages(){return this.#t}store(e,n,r){var l=this;return(0,E.A)(function*(){yield l.isInitialized;const v=l.createInternalStorage(e,r),Q=v.data;return v.data=n,Q})()}retrieve(e){var n=this;return(0,E.A)(function*(){yield n.isInitialized;const r=n.getInternalStorage(e),l=r?.options?.clearOnRetrieve??!0,v=r?.data;return v&&l&&(yield n.remove(e)),v})()}remove(e){var n=this;return(0,E.A)(function*(){yield n.isInitialized;const r=n.getInternalStorage(e,!1);r&&(r.data=void 0,r.closed=!0)})()}storage(e,n){return{remove:()=>this.remove(e),store:r=>this.store(e,r,n),retrieve:()=>this.retrieve(e)}}getInternalStorage(e,n=!0){const r=this.#t[e.id];if(r?.closed&&n)throw new Error("storage already closed");return r}createInternalStorage(e,n){let r=this.#t[e.id];return(!r||n&&!((t,i)=>t?.clearOnRetrieve===i?.clearOnRetrieve)(r.options,n))&&(r={id:e,data:r?.data,closed:!1,options:{clearOnRetrieve:!0,...r?.options,...n}},this.#t[e.id]=r),n?.destroyRef?.onDestroy(()=>this.remove(e)),r}registerReloadDataProvider(e){e.registerReloadDataProvider("OKP_DS",()=>Object.keys(this.#t).length?this.#t:null)}static{this.\u0275fac=function(n){return new(n||Hn)}}static{this.\u0275prov=s.jDH({token:Hn,factory:Hn.\u0275fac})}};return t=(0,B.Cg)([(0,F.QJ)({token:D.V8,priority:it.DATA_STORAGE_SERVICE}),(0,B.Sn)("design:paramtypes",[])],t),t})();function Li(t,i){if(t){const e=new Ln(t);return i&&(i.length>t&&(i=i.slice(i.length-t)),e.setBuffer(i)),e}return new Ln}class Ln extends U.B{#e;#t;constructor(i){super(),this.#t=Math.max(0,i||0),this.isBuffered()&&(this.#e=[])}next(i){this.isStopped||(this.isBuffered()&&this.nextBuffered(i),super.next(i))}nextBuffered(i){this.buffer().length>=this.#t&&this.buffer().splice(0,this.buffer().length+1-this.#t),this.buffer().push(i)}getBuffer(){return this.#e?.slice()}isBuffered(){return!!this.#t}getBufferSize(){return this.#t}buffer(){return this.#e}adjustBufferSize(i){this.#t=Math.max(0,i),this.isBuffered()?this.#e?this.#e.length>this.#t&&this.#e.splice(0,this.#e.length+1-this.#t):this.#e=[]:this.#e=void 0}setBuffer(i){if(this.buffer().length)throw new Error("The buffer isn't empty. Use the clearBuffer() instead.");this.#e=i.slice();for(const e of this.#e)super.next(e)}clearBuffer(){this.#e=[]}subscribe(i,e){if(e||null===i)throw new Error("Unsupported operation. Do not use subscribe with more than one argument, because it lacks on support with RxJs > 8. @see https://rxjs.dev/deprecations/subscribe-arguments");const n=this.#e?.slice()??[];let r;if("function"==typeof i){for(const l of n)i(l);r=super.subscribe(i)}else{if(i&&i.next)for(const l of n)i.next(l);r=super.subscribe(i)}return r}}const Hr=t=>t.options?.bufferSize||!1,Gr=(t,i)=>({sink$:Li(i.bufferSize,i.buffer),event:{name:t}}),Vr=(t,i)=>Xr(t,([e,n])=>{if(i[e]){const r=i[e];return r.sink$=Li(r.sink$.getBufferSize(),[...n.buffer,...r.sink$.getBuffer()]),[e,r]}return[e,Gr(e,n)]}),Qr=t=>({bufferSize:t.sink$.getBufferSize(),buffer:t.sink$.getBuffer()}),Xr=(t,i)=>Object.fromEntries(Object.entries(t).map(i)),dn=t=>t.qualifiers?t.name+JSON.stringify(t.qualifiers):t.name;let Kr=(()=>{let t=class Bn extends D.Wj{#e=(0,s.WQX)(xt);#t={};#n=new be.m;constructor(){super()}onPortalInit(){var e=this;return(0,E.A)(function*(){e.registerReloadDataProvider();const n=yield e.#e.retrieve("OKP_EB");n&&(e.#t={...e.#t,...Vr(n,e.#t)}),e.#n.next()})()}on(e,n){const r=dn(e);return this.#n.pipe((0,oe.s)(1),(0,Ce.n)(()=>(this.#t[r]?.sink$?.asObservable()??this.createDelegateEventObservable(e)).pipe((0,h.Tk)(()=>!!n?.withDetails,{onTrue:v=>(0,V.of)(v).pipe((0,K.T)(Q=>{const{destroyRef:Qe,...ne}=this.#t[e.name]?.options??{};return{...Q,event:e,options:ne}}
1)),onFalse:v=>(0,V.of)(v.data)}),(0,Y.j)(()=>{!this.#t[r].sink$.observed&&!this.#t[r].options?.destroyRef&&delete this.#t[r]}))))}eventEmitter(e,n){const r=dn(e),l=this.#t[r];if(l)return((t,i)=>{if(t.configured){if(!t.options?.reusable&&!t.options?.reconfigurable)throw new Error(`event emitter for event: '${t.event.name}' already exists. To allow, set 'reusable' option.`);if(!((t,i)=>t?.bufferSize===i?.bufferSize)(t.options,i)&&!t.options?.reconfigurable)throw new Error(`event emitter for event: '${t.event.name}' already exists with different configuration. To allow, set 'reconfigurable' option.`)}})(l,n),((t,i)=>{t.options=i,t.configured=!0,t.sink$.adjustBufferSize(i?.bufferSize||0)})(l,n),this.createEmitter(l);const v={sink$:new Ln(n?.bufferSize),event:e,configured:!0,options:n};this.#t[r]=v;const Q=this.createEmitter(v);return n?.destroyRef&&n.destroyRef.onDestroy(Q.complete),Q}eventEmitterFromObservable(e,n,r){const l=this.eventEmitter(e,r),v=n.pipe((0,h.lq)(()=>r?.destroyRef,Q=>(0,zt.pQ)((t=>{if((t=>(0,R.i5)(t,"destroyed"))(t))return t;let i=!1;return{destroyed:i,onDestroy:e=>t.onDestroy(()=>{i=!0,e()})}})(Q)))).subscribe({next:l.emit,complete:l.complete});return{complete:()=>{v.unsubscribe(),l.complete()}}}get eventSinks(){return this.#t}isKnown(e){return!!this.eventSinks[dn(e)]}createEmitter(e){const n=dn(e.event);let r={emit:l=>e.sink$.next({timestamp:new Date,data:l}),complete:()=>{e.sink$.complete(),delete this.#t[n]}};return e.options?.bufferSize&&(r={...r,clear:()=>e.sink$.clearBuffer()}),r}createDelegateEventObservable(e){return new A.c(n=>{let r;const l=dn(e);this.#t[l]?r=this.#t[l].sink$:(r=new Ln,this.#t[l]={sink$:r,event:e});const v=r.subscribe(n);return()=>v.unsubscribe()})}registerReloadDataProvider(){this.#e.registerReloadDataProvider("OKP_EB",()=>{const e=(t=>Object.fromEntries(t.map(i=>[i.event.name,Qr(i)])))(Object.values(this.#t).filter(Hr));return Object.keys(e).length?e:null})}static{this.\u0275fac=function(n){return new(n||Bn)}}static{this.\u0275prov=s.jDH({token:Bn,factory:Bn.\u0275fac})}};return t=(0,B.Cg)([(0,F.QJ)({token:D.Wj,priority:it.EVENT_BUS_SERVICE}),(0,B.Sn)("design:paramtypes",[])],t),t})();class zr{constructor(i,e,n){this.publisher=e,this.origin=n,this.source="string"==typeof i?i:i.name}debug(i,e){this.log("DEBUG",i,e)}error(i,e){let n,r,l;"string"==typeof i?(n=i,(0,R.bJ)(e)?l=e:r=e):l=i,this.log("ERROR",n,r,l)}log(i,e,n,r){this.publisher.log({source:this.source,origin:this.origin,level:i,message:e,param:n,error:r})}info(i,e){this.log("INFO",i,e)}warn(i,e){this.log("WARN",i,e)}}class Wi{}const Zr=t=>"DEBUG"===t.level?console.debug:"WARN"===t.level?console.warn:"ERROR"===t.level?console.error:console.info;class Yr{constructor(i=Zr){this.type="console",this.consoleLogFn=i}log(i){this.consoleLogFn(i)(((t,i=!0)=>{let e="";return i&&(e+=t.level+" | "),e+=(new Date).toLocaleString()+" | ",t.origin&&(e+=`${t.origin} | `),e+=t.source,t.message&&(e+=" | "+t.message),t.param&&(e+=" | Extra Info: "+JSON.stringify(t.param)),t.error&&(e+=` | ${t.error} | ${t.error.stack}`),e})(i))}}let xi=(()=>{class t{#e=(0,s.WQX)(Wi,{optional:!0})??new Yr;getLogger(e,n="sn: portal-ui"){return(0,R.yL)(n)?this.getAsyncInternalLogger(n,e):new zr(e,this.#e,n)}getAsyncInternalLogger(e,n){const r=e.then(l=>this.getLogger(n,l));return(0,R.tz)({get:(l,v)=>(0,R.tz)({apply:(Q,Qe,ne)=>r.then(ot=>{ot[v].apply(ot,ne)})},()=>{})})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();class Hi{#e=(0,s.WQX)(q);#t=(0,s.WQX)(H.aZ);#n=(0,s.WQX)(H.hb);#i=(0,s.WQX)(wn);isHashBasedRouting(){return this.#i}getLocation(){return this.#t}getLocationStrategy(){return this.#n}getAppBasePath(){return this.#e.getAppBasePath()}}let Jr=(()=>{class t extends Xe.fw{#e=(0,s.WQX)(yi);#t=(0,s.WQX)(ye.Vw);constructor(){super((0,s.WQX)(ye.Vw),""),super.onPopState(e=>{this.#e.handlePopState(e)})}getBaseHref(){return this.#e.getBaseHref()}prepareExternalUrl(e){return H.aZ.joinWithSlash(this.getBaseHref()+"#",e)}onPopState(e){this.#e.addPopStateListener(e)}path(){let e=super.path();return e.includes("?")||(e+=this.#t.search),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),qr=(()=>{class t extends H.Sm{#e=(0,s.WQX)(yi);constructor(){super((0,s.WQX)(ye.Vw),""),super.onPopState(e=>{this.#e.handlePopState(e)})}getBaseHref(){return this.#e.getBaseHref()}prepareExternalUrl(e){return H.aZ.joinWithSlash(this.getBaseHref(),e)}onPopState(e){this.#e.addPopStateListener(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),eo=(()=>{class t extends H.aZ{#e=(0,s.WQX)(q);constructor(){super((0,s.WQX)(H.hb))}normalize(e){return H.aZ.stripTrailingSlash(function kr(t,i){return t&&i.startsWith(t)?i.substring(t.length):i}(this.#e.getAppBasePath()??"",function Fr(t){return t.replace(/\/index.html$/,"")}(e)))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),no=(()=>{class t{#e=(0,s.WQX)(w,{skipSelf:!0});#t=(0,s.WQX)(H.aZ,{skipSelf:!0});#n=(0,s.WQX)(re,{optional:!0,self:!0});navigateById(e,n){var r=this;return(0,E.A)(function*(){return r.#e.navigateById(e,n)})()}navigateByUrl(e,n){return this.#e.navigateByUrl(e,n)}navigateToStartPage(){return this.#e.navigateToStartPage()}getRouterPathForId(e){return this.#e.getRouterPathForId(e)}toExternalUrl(e,n){return this.#e.toExternalUrl(e,n)}navigateToPreviousApp(){return this.hasPreviousApp()?(this.#n?this.#t.historyGo(-1-this.#n.navigationSteps):this.#t.back(),Promise.resolve(!0)):this.navigateToStartPage()}hasPreviousApp(){return this.#e.hasPreviousApp()}hasPreviousNavigation(){return(this.#n?.navigationSteps??-1)>0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),ro=(()=>{class t{#e=(0,s.WQX)(Fe);#t=(0,s.WQX)(q,{skipSelf:!0});#n=(0,s.WQX)(ye.Vw);#i=(0,s.WQX)(wn);#r=(0,s.WQX)(de);#o={};getAppBasePath(){return this.#o[this.getActiveTagName()]||(this.#i?this.getAndStoreHashBasedPath():this.getAndStoreStandardPath())}getAndStoreHashBasedPath(){if(this.#r?.isActive()){const e=this.getActiveTagName(),n=this.#n.pathname;return this.#o[e]=n,this.removeHashBasedPathWhenDeactivated(e),n}}removeHashBasedPathWhenDeactivated(e){this.#r?.isActive$().pipe((0,G.p)(n=>!n),(0,oe.s)(1)).subscribe(()=>this.#o[e]=null)}getAndStoreStandardPath(){const e=this.#t.getAppBasePath();return this.#o[this.getActiveTagName()]=e??null,e}getActiveTagName(){return this.#e.tagName??"tagNameUndefined"}isOwnRoute(e){return Wt(e).startsWith(Wt(this.getAppBasePath()??""))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();
1const Mn=F.bx.HIGHEST_PRECEDENCE+300,ei={LOCATION_STRATEGY_UTIL:Mn+10,NAV_ID_SERVICE:Mn+20,NAV_COUNTER_SERVICE:Mn+30,ROUTER_INITIALIZER:Mn+40};function Ui(t,i){return!!i&&"object"==typeof i&&t in i}const so=new s.nKC("");class ti{#e;#t;#n;#i;constructor(i,e){this.routingInfoService=(0,s.WQX)(pe),this.#t=(0,s.WQX)(H.aZ),this.#n=(0,s.WQX)(so,{optional:!0}),this.#i=0,this.#e=i,this.trace=n=>{this.isTraceEnabled()&&e.debug(`${this.getNavStepName()}: ${n}`)}}init(){const i=this.#e;i&&(this.restoreNavigationSteps("init"),this.subscription=i.events.pipe((0,h.jL)(b.Z,b.Bx.NavigationStart),(0,G.p)(e=>"hashchange"!==e.navigationTrigger),(0,Ce.n)(e=>i.events.pipe((0,h.jL)(b.wF,b.Bx.NavigationEnd),(0,K.T)(()=>e)))).subscribe(e=>"popstate"===e.navigationTrigger?this.restoreNavigationSteps("popstate event",e.restoredState):this.handleImperative()),this.updateHistoryState(),this.trace("navigation recording has started."))}handleImperative(){this.routingInfoService.isSameHistoryEntry()||(this.setNavigationSteps(this.#i+1),this.trace(`navigation steps incremented. after-change: ${this.#i}`)),this.updateHistoryState()}restoreNavigationSteps(i,e=this.#t.getState()){const n=this.getNavStepName();if(Ui(n,e)){const r=e[n];this.trace(`navigation steps restored from history after ${i}. before-change: ${this.#i} after-change: ${r}`),this.setNavigationSteps(r,!0)}else this.trace(`${i} without history navigation steps detected`)}get navigationSteps(){return this.#i}setNavigationSteps(i,e=!1){this.#i=i}reset(){this.setNavigationSteps(0),this.updateHistoryState(),this.trace("navigation steps have been reset.")}updateHistoryState(){const i=this.#t.getState(),e={[this.getNavStepName()]:this.#i};this.#t.replaceState(this.#t.path(!0),"",{...i,...e})}isTraceEnabled(){return this.#n?.useTracing??!1}getNavStepName(){return"navStep"}}var ni;const Gi="globalNavStep";let Ht=class Un extends ti{static{ni=this}#e=(0,s.WQX)(H.aZ);#t=new U.B;constructor(){super((0,s.WQX)(b.Ix),(0,I.WG)(ni))}onPortalInit(){this.init()}getChanges(){return this.#t.asObservable()}getNavigationStepsFromState(){const e=this.#e.getState();return Ui(Gi,e)?e.globalNavStep:-1}setNavigationSteps(e,n=!1){const r=this.navigationSteps;super.setNavigationSteps(e),this.#t.next({previousNavStep:r,currentNavStep:this.navigationSteps,restored:n})}getNavStepName(){return Gi}static{this.\u0275fac=function(n){return new(n||Un)}}static{this.\u0275prov=s.jDH({token:Un,factory:Un.\u0275fac})}};var ii;Ht=ni=(0,B.Cg)([(0,F.QJ)({token:Ht,priority:it.GLOBAL_NAVIGATION_COUNTER_SERVICE}),(0,B.Sn)("design:paramtypes",[])],Ht);let ri=class Gn extends ti{static{ii=this}#e=_(C.APP_ID);#t=xn("traceNavSteps");#n=(0,s.WQX)(re,{skipSelf:!0});#i=(0,s.WQX)(Ht,{skipSelf:!0});constructor(){super(_(C.ROUTER),(0,I.WG)(ii))}onWebCompInit(){this.init()}onWebCompDestroy(){this.subscription?.unsubscribe(),this.trace("navigation recording has stopped due to webcomp destroy.")}handleImperative(){this.routingInfoService.isSameHistoryEntry()||this.#i.handleImperative(),super.handleImperative()}updateHistoryState(){super.updateHistoryState(),this.#n.updateHistoryState(),this.#i.updateHistoryState()}isTraceEnabled(){return this.#t}getNavStepName(){return`${super.getNavStepName()}_${this.#e}`}static{this.\u0275fac=function(n){return new(n||Gn)}}static{this.\u0275prov=s.jDH({token:Gn,factory:Gn.\u0275fac})}};ri=ii=(0,B.Cg)([(0,F.QJ)({priority:ei.NAV_COUNTER_SERVICE,token:re}),(0,B.Sn)("design:paramtypes",[])],ri);let ao=(()=>{class t extends _i{constructor(){super(_(C.ROUTER))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();var oi;const co=t=>(0,R.i5)(t,"onWebCompInit");let si=class Vn{static{oi=this}#e=(0,I.WG)(oi);#t=_(C.ROUTER);#n=_(C.ZONE);#i=(0,s.WQX)(s.zZn);#r=(0,s.WQX)(de);#o=(0,s.WQX)(Le);#s=(0,s.WQX)(q);#a=(0,s.WQX)(re);#p=(0,s.WQX)(Fe);#u=(0,s.WQX)(qn);#l=new Ke.t(null);#c=new Ke.t(!1);#d=!1;#h=null;init(){var e=this;return(0,E.A)(function*(){if(!e.#t.config.length)throw new Error("OKP API is configured to use with routing, but no routes are provided.");if(e.initPreloading(),!e.#r.isEnabled())return e.#e.warn("Support for multi custom elements not available"),(0,R.xo)((0,R.hu)(e.#a,co),n=>n.onWebCompInit()),e.onWebCompInit()})()}onWebCompInit(){var e=this;return(0,E.A)(function*(){if(e.handleRouteInfoChanges(),!e.#d)return e.initNavigationFinishedListener(),e.restoreStateOnCanceledNavigation(),e.#t.initialNavigation(),void(e.#d=!0);const n=yield e.#u.getMainContent();n&&n.id!==e.#p.contentId||(yield(0,Z._)(e.#c.pipe((0,G.p)(r=>r),(0,ae.w)(3e3),(0,We.W)(()=>(e.#e.error("Waited for 3000ms in onWebCompInit for a navigation to be finished"),(0,V.of)(!0))))))})()}onWebCompDestroy(){this.#h?.unsubscribe(),this.#c.next(!1)}onRouteChanged(e){this.#l.next(e)}handleRouteInfoChanges(){var e=this;this.#h=this.#l.pipe((0,h.Ue)(),(0,G.p)(n=>this.#s.isOwnRoute(n.url))).subscribe(function(){var n=(0,E.A)(function*(r){yield e.#n.run(()=>e.resetNavigation(r)),e.#l.next(null)});return function(r){return n.apply(this,arguments)}}())}initNavigationFinishedListener(){this.#t.events.pipe((0,G.p)(ln),(0,K.T)(()=>!0)).subscribe(this.#c)}initPreloading(){(0,s.N4e)(this.#i,()=>{_(C.PRELOADING_STRATEGY,{optional:!0})&&_(C.ROUTER_PRELOADER).setUpPreloading()})}restoreStateOnCanceledNavigation(){const e=this.#o.getLocation();
1this.#t.events.pipe((0,h.jL)(b.Z,b.Bx.NavigationStart),(0,G.p)(n=>"imperative"!==n.navigationTrigger),(0,K.T)(()=>e.getState()),(0,G.p)(R.Gv),(0,Ce.n)(n=>this.#t.events.pipe((0,G.p)(ln),(0,oe.s)(1),(0,h.jL)(b.Cq,b.Bx.NavigationCancel),(0,K.T)(()=>e.getState()),(0,K.T)(r=>(0,R.Gv)(r)?{...n,...r}:{...n})))).subscribe(n=>e.replaceState(e.path(!0),"",n))}resetNavigation(e){const n=e.extras?.sameContent;n||this.#a.reset();let r=this.#o.getLocation().normalize(e.url);this.#o.isHashBasedRouting()&&r.indexOf("#")>=0&&(r=(t=>{const i=t.indexOf("#"),e=t.substring(i+1),n=t.indexOf("?");return n>=0&&!e.includes("?")?e+t.substring(n,i):e})(r));const l={...e.extras,onSameUrlNavigation:"reload",replaceUrl:!n||e.extras?.replaceUrl};return this.#t.navigateByUrl(r,l)}static{this.\u0275fac=function(n){return new(n||Vn)}}static{this.\u0275prov=s.jDH({token:Vn,factory:Vn.\u0275fac})}};si=oi=(0,B.Cg)([(0,F.QJ)({priority:ei.ROUTER_INITIALIZER,token:De})],si);class ai{}class pn extends h.JN{}var ji;const lo={enabled:!0,initTimeoutInMs:1e3};let Qi=(()=>{class t{#e={...lo,..._(C.LIFECYCLE_CONFIG,{optional:!0})};#t=(0,s.WQX)(s.zZn);#n=(0,I.WG)(ji);#i=(0,s.WQX)(Fe);#r=(0,s.WQX)(pn);#o=(0,s.WQX)(ai);#s=new U.B;#a=new Ke.t(!1);constructor(){this.checkConfiguration(),this.checkAvailability()}setAvailable(){this.#s.next()}isEnabled(){return this.#e.enabled}isActive(){return this.#a.value}isActive$(){return this.#a}connect(e){return this.isEnabled()?(this.setIsActive(!0),this.#o.callLifecycleHooks({hookName:"onWebCompInit",callFn:n=>n.onWebCompInit(e),scope:{onExtApp:!0,onApp:!0},appRefs:[this.#i]})):Promise.resolve(void 0)}disconnect(e){return this.isEnabled()?(this.setIsActive(!1),this.#o.callLifecycleHooks({hookName:"onWebCompDestroy",callFn:n=>n.onWebCompDestroy(e),scope:{onExtApp:!0,onApp:!0},appRefs:[this.#i]})):Promise.resolve(void 0)}setIsActive(e){this.#a.next(e),this.#r.setActive(_(this.#i,C.APP_ID),e)}checkConfiguration(){if(this.#e.initTimeoutInMs<=0)throw new Error("Only values greater than 0 are allowed for checking the lifecycle initialization of a web component.")}checkAvailability(){return this.isEnabled()?function jt(...t){return 1===(t=(0,_e.K)(t)).length?(0,ze.Tg)(t[0]):new A.c(function Qt(t){return i=>{let e=[];for(let n=0;e&&!i.closed&&n<t.length;n++)e.push((0,ze.Tg)(t[n]).subscribe((0,$e._)(i,r=>{if(e){for(let l=0;l<e.length;l++)l!==n&&e[l].unsubscribe();e=null}i.next(r)})))}}(t))}((0,Ze.O)(this.#e.initTimeoutInMs).pipe((0,K.T)(()=>{0!==this.#t.get(S.o8S).viewCount?this.#n.error(`WebComponent lifecycle management not available.\n Please use createOkpCustomElement().\n (active configuration: ${JSON.stringify(this.#e)})`):this.#n.error(`Script already been loaded. Loading scripts multiple times\n results in performance degradation. Use OKP content integration to avoid this issue. More information\n about this issue, see the developer documentation.\n (active configuration: ${JSON.stringify(this.#e)})`)})),this.#s).pipe((0,oe.s)(1)):(this.#n.debug("WebComponent lifecycle management is disabled."),(0,V.of)(void 0))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();ji=Qi;class Xi{}class Ki{}const po=new s.nKC("load script fn",{factory:()=>function(){var t=(0,E.A)(function*(i){return!1===i.module?import(yield(0,R.qE)(i.path)):import(i.path)});return function(i){return t.apply(this,arguments)}}()});let zi=(()=>{class t{constructor(){this.#e={},this.get=e=>this.#e[e],this.has=e=>!!this.#e[e],this.set=(e,n)=>this.#e[e]=n}#e;static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();class rt extends Error{constructor(i,e,n){super(e??i,n),this.type=i,this.traceId=function ct(t,i,e){return!In.randomUUID||i||t?Pt(t,i,e):In.randomUUID()}(),this.name=rt.name,this.options=n}get category(){return this.options?.category}get params(){return this.options?.params}}let Wn=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();class ci{}var $i;let Zi=(()=>{class t{#e=(0,I.WG)($i);
1#t=(0,s.WQX)(s.SKi);#n=(0,s.WQX)(b.Ix);#i=(0,s.WQX)(H.aZ);#r=(0,s.WQX)(q);#o=(0,s.WQX)(Fi);#s=(0,s.WQX)(re);#a=(0,s.WQX)(Wn);#p=(0,s.WQX)(ci);#u=(0,s.WQX)(Lt).basePath;constructor(){this.initInternalErrorHandler(),this.handlePopstateProcessed()}handlePopstateProcessed(){this.#n.events.pipe((0,h.is)(b.Z),(0,G.p)(e=>"popstate"===e.navigationTrigger),(0,Ce.n)(()=>this.#n.events.pipe((0,G.p)(ln),(0,oe.s)(1)))).subscribe(e=>this.#a.onPopstateProcessed({navigationCanceled:(0,h.VX)(e,b.Cq,b.Bx.NavigationCancel)}))}getRouterPathForId(e){var n=this;return(0,E.A)(function*(){const r=(yield n.getContent(e))?.routerPath;if(!r)throw new rt("NO_ROUTER_PATH","APP_COULD_NOT_BE_STARTED",{category:"PAGE_NOT_FOUND",params:{contentId:e}});return r})()}navigateById(e,n){var r=this;return(0,E.A)(function*(){try{const l=yield r.getRouterPathForId(e),v=r.addExtrasToPath(l,n);return r.navigateByUrl(v,n)}catch(l){return yield r.handleError(l),!1}})()}navigateToStartPage(){return this.navigateByUrl("/")}navigateByUrl(e,n){var r=this;return(0,E.A)(function*(){n=r.setSameContentInfo(e,n);const l={...n,skipLocationChange:!!n?.sameContent||n?.skipLocationChange};try{const v=yield r.navigateByUrlInZone(e,l);return v&&r.dispatchRouteChangedEvent(r.#n.url,n),v}catch(v){return yield r.handleError(v),!1}})()}dispatchRouteChangedEvent(e,n){e=H.aZ.joinWithSlash(this.#u,e),this.#a.onRouteChanged({url:e,extras:n})}navigateToPreviousApp(){return Promise.resolve(!1)}hasPreviousApp(){return this.#s.navigationSteps>0}hasPreviousNavigation(){return!1}getContent(e){return this.#o.searchInternal({withId:e}).catch(n=>{throw new rt("UNKNOWN_ERROR","APP_COULD_NOT_BE_STARTED",{cause:n})}).then(n=>{if(!n)throw new rt("UNKNOWN_CONTENT_ID","APP_COULD_NOT_BE_STARTED",{category:"PAGE_NOT_FOUND",params:{contentId:e}});return n})}initInternalErrorHandler(){this.#n.events.subscribe(e=>{e instanceof b.L6&&e.error instanceof rt&&this.handleError(e)})}toExternalUrl(e,n){return H.aZ.joinWithSlash(this.#u,this.addExtrasToPath(e,n))}addExtrasToPath(e,n){return this.#n.serializeUrl(this.#n.createUrlTree([e],n))}handleError(e){var n=this;return(0,E.A)(function*(){n.#e.error("A navigation error occurred.",e);const r=(t=>t instanceof rt)(e)?e:new rt("UNKNOWN_ERROR","APP_COULD_NOT_BE_STARTED",{cause:e});return n.#p.handleError(r)})()}navigateByUrlInZone(e,n){return this.#t.run(()=>this.#n.navigateByUrl(e,n))}setSameContentInfo(e,n){const r=this.#i.prepareExternalUrl(e),l=this.#r.getAppBasePath();return l&&Wt(r).startsWith(Wt(l))?{...n,sameContent:!0}:n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();var ui;$i=Zi;let li=class jn extends ti{static{ui=this}constructor(){super((0,s.WQX)(b.Ix),(0,I.WG)(ui))}onPortalInit(){this.init()}static{this.\u0275fac=function(n){return new(n||jn)}}static{this.\u0275prov=s.jDH({token:jn,factory:jn.\u0275fac})}};var di;li=ui=(0,B.Cg)([(0,F.QJ)({token:re,priority:it.NAVIGATION_COUNTER_SERVICE}),(0,B.Sn)("design:paramtypes",[])],li);let pi=class Qn{static{di=this}#e;#t=!1;#n=(0,s.WQX)(he.JV);#i=(0,s.WQX)(ht).basePath;#r=(0,s.WQX)(bi);#o=Ee(di);#s=!1;whenAuthenticated(){this.#s=!0}isFeatureAvailable(e){return this.getFeatures().pipe((0,h.Cj)(n=>n===e),(0,K.T)(n=>!!n),(0,oe.s)(1))}getFeatures(){return!this.#e&&!this.#s&&(this.#e=this.getFeaturesWithoutInterceptors().pipe(this.handleFeatureResponse())),(!this.#e||this.#s&&!this.#t)&&(this.#e=this.#r.getFeatures().pipe(this.handleFeatureResponse()),this.#t=!0),this.#e}handleFeatureResponse(){return(0,at.F)((0,Oe.t)(1),(0,We.W)(e=>(this.#o.error("could not load features from feature service: "+e.message),(0,V.of)([]))))}getFeaturesWithoutInterceptors(){return new he.Qq(this.#n).post(this.#i+"/v1",{observe:"body"})}static{this.\u0275fac=function(n){return new(n||Qn)}}static{this.\u0275prov=s.jDH({token:Qn,factory:Qn.\u0275fac})}};pi=di=(0,B.Cg)([(0,F.QJ)({token:D.Rx,priority:it.FEATURE_SERVICE})],pi);class Yi{}let go=(()=>{class t{#e=(0,s.WQX)(Lt).type;#t=(0,s.WQX)(Yi);getType(){return this.#e}getHeaderHeight(){return this.#t.getHeaderHeight()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),vo=(()=>{class t{#e=(0,s.WQX)(pn);#t=(0,s.WQX)(ai);#n=(0,s.WQX)(Ye.Qc);#i=new U.B;#r=()=>this.#t.callLifecycleHooksSync({hookName:"beforeUnload",callFn:e=>e.beforeUnload(),scope:{onPortal:!0},resultHandling:{ignoreErrors:!0}});constructor(){this.#n.addEventListener("beforeunload",this.#r)}isClosed$(){return this.#i.pipe((0,Xt.U)(!0),(0,K.T)(()=>!0),(0,yt.Z)(!1))}onPortalInit(){var e=this;return(0,E.A)(function*(){return e.#t.callLifecycleHooks({hookName:"onPortalInit",callFn:n=>n.onPortalInit(),scope:{onPortal:!0}})})()}afterReload(){var e=this;return(0,E.A)(function*(){return e.#e.getAddedIntegratedContents().pipe((0,Ie.Q)(e.#i)).subscribe(n=>e.callAfterReloadHooks({onExtApp:!0,onApp:!0},[n])),yield e.callAfterReloadHooks({onPortal:!0,onExtApp:!0,onApp:!0})})()}afterLogin(){var e=this;return(0,E.A)(function*(){return e.#t.callLifecycleHooks({hookName:"afterLogin",callFn:n=>n.afterLogin(),scope:{onPortal:!0}})})()}whenAuthenticated(){var e=this;return(0,E.A)(function*(){return e.#e.getAddedIntegratedContents().pipe((0,Ie.Q)(e.#i)).subscribe(n=>e.callWhenAuthenticatedHooks({onExtApp:!0,onApp:!0},[n])),yield e.callWhenAuthenticatedHooks({onPortal:!0,onExtApp:!0,onApp:!0})})()}callAfterReloadHooks(e,n){var r=this;return(0,E.A)(function*(){return r.#t.callLifecycleHooks({hookName:"afterReload",callFn:l=>l.afterReload(),scope:e,appRefs:n})})()}callWhenAuthenticatedHooks(e,n){var r=this;return(0,E.A)(function*(){return r.#t.callLifecycleHooks({hookName:"whenAuthenticated",callFn:l=>l.whenAuthenticated(),scope:e,appRefs:n})})()}canDeactivateContent(){var e=this;return(0,E.A)(function*(){const n=yield e.#e.getMainAppRef();return n?e.#t.callLifecycleHooks({hookName:"canDeactivateWebComp",callFn:r=>r.canDeactivateWebComp(),scope:{onExtApp:!0,onApp:!0},appRefs:[n],resultHandling:{reducer:{reduce:(r,l)=>r&&l,initialValue:!0}}}):Promise.resolve(!0)})()}onRouteChanged(e){var n=this;return(0,E.A)(function*(){return n.#t.callLifecycleHooks({hookName:"onRouteChanged",callFn:r=>r.onRouteChanged(e),scope:{onPortal:!0,onExtApp:!0,onApp:!0}})})()}onPopstateProcessed(){var e=this;return(0,E.A)(function*(n={navigationCanceled:!1}){return e.#t.callLifecycleHooks({hookName:"onPopstateProcessed",callFn:r=>r.onPopstateProcessed(n),scope:{onExtApp:!0}})}).apply(this,arguments)}beforeClose(){var e=this;return(0,E.A)(function*(n={logout:!0,trigger:"IMPERATIVE"}){return e.#t.callLifecycleHooks({hookName:"beforeClose",callFn:r=>r.beforeClose(n),scope:{onPortal:!0,onExtApp:!0,onApp:!0},resultHandling:{ignoreErrors:!0}}).finally(()=>{e.#i.next(),e.#i.complete(),e.#n.removeEventListener("beforeunload",e.#r)})}).apply(this,arguments)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();const Eo=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}\.\d*)(?:Z|([+-])([\d|:]*))?$/,So=(t,i)=>"string"==typeof i&&Eo.exec(i)?new Date(i):i,Ji="reload-timestamp",hi="reload-data.storage";let yo=(()=>{let t=class gn extends xt{#e=(0,s.WQX)(dt);#t={};#n;#i=new be.m;beforeUnload(){const e=Object.entries(this.#t).reduce((n,[r,l])=>({...n,[r]:l()}),{});this.#e.store(hi,JSON.stringify(e)),this.#e.store(Ji,Date.now())}afterReload(){this.#n=JSON.parse(this.#e.retrieve(hi),So),this.#i.next()}onPortalInit(){this.#e.clear(hi),this.#e.clear(Ji),this.#i.next()}beforeClose(){this.#t={},this.#e.clear()}registerReloadDataProvider(e,n){this.#t[e]=n}retrieve(e){var n=this;return(0,E.A)(function*(){return(0,Z._)(n.#i.pipe((0,K.T)(()=>{const r=n.#n?.[e];return r&&delete n.#n?.[e],r})))})()}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(gn)))(r||gn)}})()}static{this.\u0275prov=s.jDH({token:gn,factory:gn.\u0275fac})}};return t=(0,B.Cg)([(0,F.QJ)({token:xt,priority:it.RELOAD_SERVICE})],t),t})();class mo{constructor(i){this._carriers=i}
1postMessage(i){this._carriers.forEach(e=>e.postMessage(i))}onMessage(i){return(0,xe.H)(this._carriers).pipe((0,K.T)(e=>i?.withDetails?e.onMessage({withDetails:!0}):e.onMessage()),(0,Kt.U)())}}function fi(t){return(0,s.Af3)(fi),(0,s.WQX)(hn).create("BROADCAST_CHANNEL",t)}function qi(t){return(0,s.Af3)(qi),(0,s.WQX)(hn).create("WINDOW",t)}class hn{}class gi{}var vi;const fn={UNRELATED_TAB_INIT:"unrelated-tab-init-"+Date.now(),CHILD_TAB_INIT:"child-tab-init",TAB_MESSAGE:"tab-com"},Co=new s.nKC("config object for tab-communication"),Io={findInitChannelResponseTimeout:1500,tabInitResponseTimeout:5e3};class er{constructor(i=!1){this.isChildTab=i,this.type="TabInitRequest"}}class To{constructor(i){this.initData=i,this.type="TabInitResponse"}}class Po{constructor(i){this.initChannelId=i,this.type="FindInitChannelResponse"}}const tr=(t,i)=>(0,R.i5)(t,"type")&&t.type===i;let Ei=class Xn{static{vi=this}#e=(0,I.WG)(vi);#t=(0,s.WQX)(Ye.Qc);#n={...Io,...(0,s.WQX)(Co,{optional:!0})};#i={};#r=new Map;#o=new be.m;#s=(0,s.WQX)(Wn).isClosed$().pipe((0,h.zz)());#a=(0,s.WQX)(hn);#p=fi(fn.UNRELATED_TAB_INIT);#u=qi(fn.CHILD_TAB_INIT);#l=fi(fn.TAB_MESSAGE);#c;#d=!1;afterReload(){this.#d=!0}afterLogin(){this.#d=!0}onPortalInit(){var e=this;return(0,E.A)(function*(){e.setupTabGroupCommunication(),yield e.setupOwnTabInitialization(),e.setupForeignTabInitialization()})()}setupTabGroupCommunication(){this.#l.onMessage().pipe((0,Ie.Q)(this.#s)).subscribe(e=>{this.#i[e.id]?.next(e.data)})}sendTabGroupMessage(e,n){const r={id:e,data:n};this.#l?.postMessage(r)}onTabGroupMessage(e){let n=this.#i[e];return n||(n=new U.B,this.#i[e]=n),n.pipe((0,Ie.Q)(this.#s))}registerTabInitDataProvider(e,n,r){this.#r.set(e,{providerName:e,provider:n,options:r}),this.setTabInitData(n,e)}setTabInitData(e,n){this.#c?.[n]&&(e.setTabInitData(this.#c[n]),delete this.#c[n])}setupOwnTabInitialization(){var e=this;return(0,E.A)(function*(){if(e.#d)e.#o.next(!0);else if(e.isChildTab())e.processTabInitResponse(e.#u),e.#a.create("WINDOW",fn.CHILD_TAB_INIT,e.#t.opener).postMessage(new er(!0));else{const n=yield e.findInitChannel();if(n){const r=e.#a.create("BROADCAST_CHANNEL",n);e.processTabInitResponse(r),r.postMessage(new er(!1))}else e.#o.next(!0)}})()}findInitChannel(){var e=this;return(0,E.A)(function*(){return e.sendTabGroupMessage("FindInitChannelRequest",void 0),(0,Z._)(e.onTabGroupMessage("FindInitChannelResponse").pipe((0,K.T)(n=>n.initChannelId),(0,ae.w)(e.#n.findInitChannelResponseTimeout),(0,We.W)(()=>(e.#e.debug(`FindInitChannelResponse not received within ${e.#n.findInitChannelResponseTimeout}ms`),(0,V.of)(null)))))})()}processTabInitResponse(e){e.onMessage().pipe((0,h.ah)(n=>tr(n,"TabInitResponse")),(0,ae.w)(this.#n.tabInitResponseTimeout),(0,We.W)(()=>(this.#e.warn(`TabInitResponse not received within ${this.#n.tabInitResponseTimeout}ms`),(0,V.of)(null))),(0,oe.s)(1)).subscribe(n=>{n&&(this.#c=n.initData,this.#r.forEach(r=>this.setTabInitData(r.provider,r.providerName))),this.#o.next(!0)})}isChildTab(){try{return this.#t.opener?.location?.origin===this.#t.location.origin}catch{return!1}}isInitialized(){return this.#o.asObservable()}setupForeignTabInitialization(){this.onTabGroupMessage("FindInitChannelRequest").subscribe(()=>this.sendTabGroupMessage("FindInitChannelResponse",new Po(fn.UNRELATED_TAB_INIT))),function Ao(t){return new mo(t)}([this.#p,this.#u]).onMessage({withDetails:!0}).pipe((0,Ie.Q)(this.#s)).subscribe(e=>{tr(e.data,"TabInitRequest")&&(e.details.sourceCarrier?e.details.sourceCarrier.postMessage(new To(this.getTabInitData(e.data.isChildTab))):this.#e.warn("could not dispatch response to init request. source is null"))})}getTabInitData(e){const n={};return this.#r.forEach(r=>{if(!r.options?.childrenOnly||e){const l=r.provider.provideTabInitData();l&&(n[r.providerName]=l)}}),n}static{this.\u0275fac=function(n){return new(n||Xn)}}static{this.\u0275prov=s.jDH({token:Xn,factory:Xn.\u0275fac})}};Ei=vi=(0,B.Cg)([(0,F.QJ)({token:gi,priority:it.TAB_COM_SERVICE})],Ei);let nr=(()=>{class t extends Re{#e=(0,s.WQX)(Mt,{optional:!0})??[];#t=(0,s.WQX)(he.JV);getOkpHttpInterceptorFn(){return Ri(this.#e)}getRetryInterceptorFn(e){return(n,r)=>e.pathsToIgnore&&n.url.match(e.pathsToIgnore)?r(n):r(n).pipe((0,h.ZB)(e))}getOkpHttpBackend(){return this.#t}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(t)))(r||t)}})()}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),No=(()=>{class t extends ki{#e=(0,s.WQX)(Ye.Qc);openTab(e){return!!this.#e.open(e,"_blank")}openWindow(e){return!!this.#e.open(e,"_blank","x=y")}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(t)))(r||t)}})()}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();var ir;let rr=(()=>{class t extends hn{#e=(0,s.WQX)(Ye.Qc);#t=(0,I.WG)(ir);create(e,n,r){return"BROADCAST_CHANNEL"===e?new Do(n,new BroadcastChannel(n)):new Si(n,r??this.#e,this.#t)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(t)))(r||t)}})()}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();ir=rr;class Do{constructor(i,e){this._identifier=i,this._delegate=e}postMessage(i){this._delegate.postMessage(i)}onMessage(i){return(0,He.R)(this._delegate,"message").pipe((0,K.T)(e=>e),(0,K.T)(e=>i?.withDetails?this.asWrapper(e):e.data))}asWrapper(i){return{data:i.data,details:{identifier:this._identifier,sourceCarrier:this}}}}const Ro=t=>(0,R.i5)(t,"data")&&(0,R.i5)(t.data,"type");
1class Si{constructor(i,e,n){this._identifier=i,this._delegate=e,this._logger=n}postMessage(i){this._delegate.postMessage({type:this._identifier,data:i})}onMessage(i){return(0,He.R)(this._delegate,"message").pipe((0,h.ah)(Ro),(0,G.p)(e=>e.data.type===this._identifier),(0,G.p)(e=>this.checkOrigin(e)),(0,K.T)(e=>e),(0,K.T)(e=>i?.withDetails?this.asWrapper(e):e.data.data))}checkOrigin(i){return i.origin===this._delegate.location.origin||(this._logger.warn(`event ${this._identifier} from wrong origin received: ${i.origin}`),!1)}asWrapper(i){return{data:i.data.data,details:{identifier:this._identifier,sourceCarrier:i.source?i.source===this._delegate?this:new Si(this._identifier,i.source,this._logger):null}}}}let or=(()=>{class t{#e=(0,s.WQX)(he.Xl,{optional:!0})??(0,s.WQX)(he.tl);#t=Ri((0,s.WQX)(Di,{optional:!0})??[]);handle(e){return this.#t(e,n=>this.getDefaultHttpBackend().handle(n))}getDefaultHttpBackend(){return this.#e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),yi=(()=>{let t=class Kn{#e=(0,s.WQX)(ye.Vw);#t=(0,s.WQX)(q);#n=(0,s.WQX)(de);#i=(0,s.WQX)(Fe);#r=new U.B;#o=[];#s=null;getBaseHref(){return this.#t.getAppBasePath()??""}addPopStateListener(e){this.#o.push(e)}onWebCompInit(){var e=this;return(0,E.A)(function*(){if(e.#o.length&&e.handleEvent(e.#s)){const n=_(e.#i,C.ROUTER);yield(0,Z._)(n.events.pipe((0,G.p)(ln)))}e.#s=null})()}onPopstateProcessed(e){this.#r.next(e)}handleEvent(e){return!(!e||!this.#t.isOwnRoute(e.path)||(this.setRestoredStateToHistory(e.event),this.#o.forEach(n=>n(e.event)),0))}handlePopState(e){const n=this.#e.pathname;this.#r.pipe((0,oe.s)(1),(0,G.p)(r=>!r.navigationCanceled)).subscribe(()=>{!this.#t.isOwnRoute(n)||this.#n.isEnabled()&&!this.#n.isActive()?e instanceof PopStateEvent&&(this.#s={event:e,path:n}):(this.setRestoredStateToHistory(e),this.#o.forEach(r=>r(e)))})}setRestoredStateToHistory(e){const n=this.#e.getState();this.#e.replaceState({...e.state,...n},"",this.#e.href)}static{this.\u0275fac=function(n){return new(n||Kn)}}static{this.\u0275prov=s.jDH({token:Kn,factory:Kn.\u0275fac})}};return t=(0,B.Cg)([(0,F.QJ)({priority:ei.LOCATION_STRATEGY_UTIL})],t),t})();const sr=new s.nKC("appTokenMap");function mi(t){const i=(0,s.WQX)(Ni),e=[{provide:sr,useValue:(0,h.d$)(t),multi:!0}];return e.push(...t.map(n=>{const{useFactory:r,...l}=n,v=i.find(r)?.provider;return v?{provide:n.provide,...(0,h.AW)(v)}:{provide:n.provide,...(0,h.AW)(l.default)}})),e}let ko=(()=>{class t extends or{#e=_(C.FETCH_BACKEND,{optional:!0})??_(C.HTTP_XHR_BACKEND);getDefaultHttpBackend(){return this.#e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(t)))(r||t)}})()}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();function ce(t,i,e){return{provide:t,useFactory:i,default:{useClass:e}}}const Fo=[ce(I.Ji,t=>t.getApiEndpointService(),class Oo{#e=(0,s.WQX)(I.Ji,{skipSelf:!0});#t=_(C.SERVICE_NAME,{optional:!0});getServiceUrl(i,e){let n,r;if(void 0===e){if("string"!=typeof this.#t)throw new Error("getServiceUrl(servicePath) only available if okp-api is initialized with its service_name or the SERVICE_NAME injection token is defined.");n=this.#t,r=i}else n=i,r=e;return this.#e.getServiceUrl(n,r)}getPortalBasePath(){return this.#e.getPortalBasePath()}}),ce(I.IC,t=>t.getAssetService(),class bo{#e=(0,s.WQX)(I.IC,{skipSelf:!0});#t=_(C.SERVICE_NAME,{optional:!0});getAssetPath(i,e){let n,r;if(void 0===e){if("string"!=typeof this.#t)throw new Error("getAssetPath(servicePath) only available if okp-api is initialized with its service_name or the SERVICE_NAME injection token is defined.");n=this.#t,r=i}else n=i,r=e;return this.#e.getAssetPath(n,r)}}),ce(D.QE,t=>t.getClientLoggingService(),class _o{#e=(0,s.WQX)(Fe);#t=(0,s.WQX)(y);#n=_(C.SERVICE_NAME,{optional:!0});getLogger(i){return this.#t.getLogger(i,this.getOrigin())}getOrigin(){return this.#n?`sn: ${this.#n}`:this.#e.contentId?`cid: ${this.#e.contentId}`:"cid: unknown"}}),ce(Re,t=>t.getOkpHttpUtilsProvider(),nr),ce(he.JV,t=>t.getHttpBackend(),ko),ce(w,t=>t.getNavigationService(),no)],wo=[ce(H.aZ,t=>t.getLocation(),eo),ce(Xe.fw,t=>
1t.getHashLocationStrategy(),Jr),ce(H.Sm,t=>t.getPathLocationStrategy(),qr),ce(Le,t=>t.getLocationInfoProvider(),Hi),ce(q,t=>t.getAppBasePathProvider(),ro),ce(re,t=>t.getNavigationCounterService(),ri),ce(pe,t=>t.getRoutingInfoService(),ao),ce(De,t=>t.getWebCompRouterInitializer(),si)],Lo=[ce(de,t=>t.getWebCompLifecycleService(),Qi)],ar=t=>t?[...t?.routeConfig?.canDeactivate??[],...ar(t.firstChild)]:[];let Wo=(()=>{let t=class zn{#e=(0,s.WQX)(Fe);#t=_(C.ACTIVATED_ROUTE,{optional:!0});canDeactivateWebComp(){if(!this.#t)return!0;const e=ar(this.#t).filter(n=>(t=>(0,R.g8)(t,"okpCanDeactivateFn"))(n)).map(n=>n.okpCanDeactivateFn);return(0,xe.H)(e).pipe((0,An.H)(n=>{const r=this.#e.runInInjectionContext?.(()=>n())??!0;return(0,At.A)(r)?r.pipe((0,oe.s)(1)):(0,R.yL)(r)?(0,xe.H)(r):(0,V.of)(r)}),(0,Ct.T)((n,r)=>n&&r,!0))}static{this.\u0275fac=function(n){return new(n||zn)}}static{this.\u0275prov=s.jDH({token:zn,factory:zn.\u0275fac})}};return t=(0,B.Cg)([(0,F.QJ)()],t),t})();const Ho=()=>(0,s.WQX)(wn)?(0,s.WQX)(Xe.fw):(0,s.WQX)(H.Sm);function Bo(){const t=_(C.APP_PROVIDER,{optional:!0});if(!t||!t.length)return(0,I.WG)("routing-provider").warn("Configured LocationStrategy couldn't be recognized because the application wasn't initialized with the okpApplication function."),!1;const i=_(C.HASH_LOCATION_STRATEGY_TYPE);return(0,h.eZ)(t,(t=>i=>(0,h.MM)(i)&&i.useClass===t)(i))}const Uo=t=>xn(t,"webCompIntegration")?[...mi(Lo),Go(t)]:[],Go=t=>xn(t,"routing")?[...mi(wo),{provide:H.hb,useFactory:Ho},{provide:wn,useFactory:Bo},{provide:yi},{provide:Wo},{provide:Pi,useValue:()=>(0,s.WQX)(De).init(),multi:!0}]:[];let cr=(()=>{class t{#e=(0,s.WQX)(Cr);#t=(0,s.WQX)(s.zZn);#n={};#i=new U.B;#r={};#o=[];register(e){this.#e&&this.#t.get(Fn).forEach(r=>r.validateAppConfig(e));const n=this.getAppID(e);e.extAppInjector=(0,s.N4e)(this.#t,()=>((t,i)=>s.zZn.create({name:i,parent:(0,s.WQX)(s.zZn),providers:[...mi(Fo),{provide:Fe,useValue:t},...Uo(t)]}))(e,n)),this.#n[n]=e,this.#i.next(e)}connect(e){[this.#t,this.getAppRef(e).extAppInjector].forEach(n=>n.get(Pi,[]).forEach(r=>(0,s.N4e)(n,()=>r(e))))}addAdditionalContentInfo(e,n){this.#n[e]&&(this.#n[e].contentId=n.contentId,this.#n[e].tagName=n.tagName),this.#r[n.contentId]=e}getAppRefs(){return Object.values(this.#n)}getAddedIntegratedContents(){return this.#i}setActive(e,n){if(n)this.#o.push(this.#n[e]);else{const r=this.#o.findIndex(l=>this.getAppID(l)===e);r>=0&&this.#o.splice(r,1)}}getMainAppRef(){var e=this;return(0,E.A)(function*(){const n=yield e.#t.get(qn).getMainContent();if(n?.id){const r=e.#r[n.id];return e.#n[r]}})()}getAppRef(e){if(!this.#n[e])throw new Error(`Application with id ${e} is not registered`);return this.#n[e]}getAppID(e){return _(e,C.APP_ID)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();function _(t,i,e){if((0,h.Gg)(t)){(0,s.Af3)(_);const l=Bt(t),v=i;return l?(0,s.WQX)(Fe).injector.get(l,null,v):ur(t,v)}const n=Bt(t,i),r=e;return n?t.injector.get(n,null,r):ur(i,r)}function Bt(t,i){return(0,h.Gg)(t)?((0,s.Af3)(Bt),(0,s.WQX)(Fe).sharedToken(t)):t.sharedToken(i)}function xn(t,i){return"string"==typeof t?((0,s.Af3)(xn),_(C.ACTIVE_FEATURES).includes(t)):_(t,C.ACTIVE_FEATURES).includes(i)}function ur(t,i){if(!i?.optional)throw new Error(`shared token with id: ${t.name} not found.`)}let Ai=(()=>{class t{#e=(t=>i=>i.substring(i.indexOf(t)+t.length+1))((0,s.WQX)(Lt).serviceProxyPath);#t=(0,s.WQX)(y);getLogger(e){const n=_(e,C.SCRIPT_PATH,{optional:!0})?.then(this.#e)??"";return this.#t.getLogger(t.name,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();const lr=(t,i)=>(0,h.YN)(t)&&t.provide===i;let zo=(()=>{class t extends Ai{validateAppConfig(e){this.checkIfOkpHttpInterceptorsAreUsed(e),this.checkIfProvidersAreInCorrectOrder(e)}checkIfOkpHttpInterceptorsAreUsed(e){const n=_(e,C.APP_PROVIDER),r=_(e,C.INTERCEPTOR_FN);(0,R.Rn)((0,h.PS)(n,v=>((t,i)=>(0,h.Lq)(t)&&t.useValue===i)(v,r)))||this.getLogger(e).warn("Your application is configured to use the http client, it is recommended to use the okpHttpInterceptorFn alongside.")}checkIfProvidersAreInCorrectOrder(e){const n=_(e,C.APP_PROVIDER),r=Bt(e,C.API_USED),l=Bt(e,C.HTTP_CLIENT),v=(0,R._j)((0,h.PS)(n,Q=>lr(Q,r)||((t,i)=>t===i||(0,h.YN)(t)&&t.provide===i)(Q,l)));2===v.length&&lr(v[0],r)&&this.getLogger(e).warn("Invalid web component startup configuration: 'provideHttpClient' is used after 'provideOkpApi'")}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(t)))(r||t)}})()}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();const Ci=(t,i)=>((0,h.YN)(t)&&t.provide)===i;let Zo=(()=>{class t extends Ai{validateAppConfig(e){const n=_(e,C.APP_PROVIDER),r=Bt(e,C.APP_ROUTES),l=(0,R._j)((0,h.PS)(n,v=>(t=>(0,h.Lq)(t)&&"routing"===t.useValue)(v)||Ci(v,r)));l.length&&(1===l.length?Ci(l[0],r)?this.getLogger(e).info("You're using your router configuration without the okp router addon. To ensure consistent behavior, using the addon is recommended."):this.getLogger(e).error("You're using the useRouting configuration within your 'provideOkpApi' without configured angular routing with 'provideRouter'."):Ci(l[1],r)&&this.getLogger(e).error("Invalid web component startup configuration: 'provideRouter is used after 'provideOkpApi'"))}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(t)))(r||t)}})()}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})(),Yo=(()=>{class t extends Ai{validateAppConfig(e){const n=_(e,C.ZONELESS,{optional:!0}
1),r=_(e,C.ACTIVE_FEATURES).includes("zone");n&&r&&this.getLogger(e).error("Invalid web component startup configuration: 'provideZonelessChangeDetection() should not be used with the okpApi feature 'withNgZone'")}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=S.xGo(t)))(r||t)}})()}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();class qo extends I.NP{}let es=(()=>{class t{#e=(0,s.WQX)(Lt).headerTag;#t=(0,s.WQX)(s.qQL);#n=this.getHeaderElement().pipe((0,Ce.n)(this.observeHeaderSizeChanges),(0,yt.Z)(0),(0,mt.F)(),(0,Oe.t)(1));getHeaderElement(){return new A.c(e=>{const n=this.#t.querySelector(this.#e);if(n)return e.next(n),void e.complete();const r=new MutationObserver(()=>{const l=this.#t.querySelector(this.#e);l&&(r.disconnect(),e.next(l),e.complete())});r.observe(this.#t.body,{childList:!0,subtree:!0})})}observeHeaderSizeChanges(e){return new A.c(n=>{new ResizeObserver(r=>{r.length&&n.next(r[0].borderBoxSize[0].blockSize)}).observe(e)})}getHeaderHeight(){return this.#n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();const ns=t=>t.map(i=>(t=>(0,R.i5)(t,"priority"))(i)?i:{type:i,priority:Number.MAX_VALUE}),is=new s.nKC("IntegratedTypes",{factory:()=>(0,h.Xu)()});let rs=(()=>{class t{#e=(0,s.WQX)(s.zZn);#t=(0,s.WQX)(s.SKi);#n=(0,s.WQX)(pn);#i=(0,s.WQX)(is);callLifecycleHooksSync(e){const r=this.getHookContext(e).map(l=>(0,h.Rh)(l)).flat();if(this.checkHookInstances(r),e.resultHandling){let l;return(0,h.BV)(r,v=>e.callFn(v),e.resultHandling).pipe((0,oe.s)(1)).subscribe(v=>l=v),l}(0,h.BV)(r,l=>e.callFn(l)).pipe((0,oe.s)(1)).subscribe()}callLifecycleHooks(e){var n=this;return(0,E.A)(function*(){yield Promise.resolve();const l=n.getHookContext(e).map(v=>(0,h.Rh)(v)).flat();return n.checkHookInstances(l),(0,Z._)(e.resultHandling?(0,h.BV)(l,v=>e.callFn(v),e.resultHandling):(0,h.BV)(l,v=>e.callFn(v)))})()}getHookContext(e){const n=e.appRefs??this.#n.getAppRefs(),r=[];return e.scope.onPortal&&r.push(this.getPortalContext(e.hookName)),e.scope.onExtApp&&r.push(...this.getExtAppContext(e.hookName,n)),e.scope.onApp&&r.push(...this.getAppContext(e.hookName,n)),r}getPortalContext(e){return{hookName:e,integratedTypes:(0,h.GS)(this.#i),injector:this.#e,ngZone:this.#t}}getExtAppContext(e,n){return n.map(r=>({hookName:e,integratedTypes:(0,h.GS)(this.#i),injector:r.extAppInjector,ngZone:this.#t,injectOptions:{self:!0}}))}getAppContext(e,n){return n.map(r=>({hookName:e,integratedTypes:(0,h.GS)(ns(_(r,C.INTEGRATED_TYPES))),injector:r.injector,ngZone:_(r,C.ZONE)}))}checkHookInstances(e){(0,ue.naY)()&&e.forEach(n=>{const r=Object.getPrototypeOf(n.constructor).name;if(e.find(v=>Object.getPrototypeOf(v).constructor.name===r))throw new Error(`wrong hook instance configuration. The base-class of: '${r}' already registered for lifecycle invocation. Please use the token param of the @OkpIntegrated decorator for both types to avoid collisions`)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}}return t})();function W(t,i,e){return{provide:t,useFactory:i,default:{useClass:e}}}const os=[...I.Gm,W(pn,t=>t.getAppConnector(),cr),W(D.r7,t=>t.getScriptRegistry(),zi),W(Ki,t=>t.getScriptRegistry(),zi),W(D.bU,t=>t.getScriptProvider(),class ho{#e=(0,s.WQX)(Ki);#t=(0,s.WQX)(Xi);#n=(0,s.WQX)(po);getScript(i){var e=this;return(0,E.A)(function*(){const n=e.#e.get(i);if(n)return n;const r=yield e.#t.getScript(i).catch(v=>{throw new D.gX(`Failed to lookup script-id: '${i}'`,v)});if(!r)throw new D.zv(`script with id: '${i}' not found`);const l=e.#n(r);return e.#e.set(i,l),l})()}loadScript(i){return this.getScript(i)}}),W(D.Wj,t=>t.getEventBusService(),Kr),W(D.V8,t=>t.getDataStorageService(),Wr),W(D.Rx,t=>t.getPortalFeaturesService(),pi),W(gi,t=>t.getTabCommunicationService(),Ei),W(y,t=>t.getPortalLoggingService(),xi),W(D.QE,t=>t.getClientLoggingService(),xi),W(pe,t=>t.getRoutingInfoService(),_i),W(w,t=>t.getNavigationService(),Zi),W(re,t=>t.getNavigationCounterService(),li),W(Ht,t=>t.getGlobalNavigationCounterService(),Ht),W(Re,t=>t.getOkpHttpUtilsProvider(),nr),W(he.JV,t=>t.getHttpBackend(),or),W(D.cg,t=>t.getPortalInfoService(),go),W(Wn,t=>t.getPortalLifecycleService(),vo),W(ki,t=>t.getClientService(),No),W(hn,t=>t.getMessageCarrierProvider(),rr),W(xt,t=>t.getReloadDataService(),yo),W(I.Ji,t=>t.getApiEndpointService(),wr),W(I.IC,t=>t.getAssetService(),Lr),W(Le,t=>t.getLocationInfoProvider(),Hi),W(ai,t=>t.getLifecycleHookService(),rs),W(Yi,t=>t.getHeaderSizeProvider(),es)],ss=()=>{return[Zn(an(te.SessionStorage,[Rn,c,Ft]),an(te.LocalStorage,[tn,kn,bn]),(t={prefix:"okp-storage"},an(te.Config,[{provide:z,useValue:t}]))),Ve];var t};function as(t,i,...e){return(0,h.rr)({name:I.FZ,type:qo,asStandalone:t.asStandalone,apiInterceptor:cs,providers:[{provide:Lt,useValue:t},ls(t),ds(i),[{provide:Fn,useClass:zo,multi:!0},{provide:Fn,useClass:Zo,multi:!0},{provide:Fn,useClass:Yo,multi:!0}],ss()],serviceProviders:os,optFeatures:e})}const cs=(t,i)=>{if(1===i.length&&"string"==typeof i[0]){const e=i[0],n=(0,s.WQX)(pn).getAppRef(e),r=n.extAppInjector.get(sr).find(l=>l[t])?.[t];if(!r)throw new Error(`could not find app provider for API path: ${t}`);return n.extAppInjector.get(r.provide)}};function us(t){return(0,h.PG)("overriddenAppServices",t,Ni)}function ls(t){return[{provide:ht,useFactory:()=>new ht({basePath:t.featuresBasePath})}]}function ds(t){return[{provide:q,...(0,h.AW)(t.appBasePathProvider)},{provide:D.Pi,...(0,h.AW)(t.localizationService)},{provide:D.Z7,...(0,h.AW)(t.contentLookupService)},{provide:Xi,...(0,h.AW)(t.scriptDefinitionLoader)},{provide:Fi,...(0,h.AW)(t.contentLookupService)},{provide:I.C4,...(0,h.AW)(t.contentFactory)},{provide:qn,...(0,h.AW)(t.contentInfoService)},{provide:ci,...(0,h.AW)(t.errorHandler)}]}},4454(ft,ve,d){d.d(ve,{IC:()=>R,Ji:()=>ue,NP:()=>S,Pi:()=>I,QE:()=>x,Rx:()=>D,V8:()=>k,Wj:()=>le,Z7:()=>Se,bU:()=>J,cg:()=>h,gX:()=>X,o_:()=>F,r7:()=>L,zv:()=>M});class S{}class ue{}class h{}class I{}class D{}class F{}class R{}class k{}class x{}class le{}class L{}
1class M extends Error{getType(){return"NOT_FOUND"}}class X extends Error{getType(){return"LOAD_ERROR"}}class J{}class Se{}},2934(ft,ve,d){d.d(ve,{C4:()=>He,FZ:()=>pt,Gm:()=>kt,IC:()=>at,Ji:()=>Ie,NP:()=>ee,WG:()=>zt});var be=d(467),Z=d(5547),U=d(5802),V=d(9769),Y=d(4454),A=d(5690),ze=d(3794),_e=d(9882),$e=d(3049);const jt=["containerTemplate"];function Qt(c,p){1&c&&Z.Hgh(0,"div",1)}class at extends Y.IC{}class Ie extends Y.Ji{}class He{}class Ct extends Y.o_{}function zt(c){return(0,U.Af3)(zt),(0,U.WQX)(Y.QE).getLogger(c)}const P={APP_ID:(0,A.rG)("APP_ID"),SCRIPT_PATH:(0,A.rG)("SCRIPT_PATH"),APP_PROVIDER:(0,A.rG)("APP_PROVIDER"),SERVICE_NAME:(0,A.rG)("SERVICE_NAME"),ROUTER:(0,A.rG)("ROUTER"),ACTIVATED_ROUTE:(0,A.rG)("ACTIVATED_ROUTE"),HASH_LOCATION_STRATEGY_TYPE:(0,A.rG)("HASH_LOCATION_STRATEGY_TYPE"),PRELOADING_STRATEGY:(0,A.rG)("PRELOADING_STRATEGY"),ROUTER_PRELOADER:(0,A.rG)("ROUTER_PRELOADER"),ZONE:(0,A.rG)("ZONE"),ZONELESS:(0,A.rG)("ZONELESS"),API_USED:(0,A.rG)("API_USED"),APP_REF:(0,A.rG)("APP_REF"),APP_ROUTES:(0,A.rG)("APP_ROUTES"),API_VERSION:(0,A.rG)("API_VERSION"),INTERCEPTOR_FN:(0,A.rG)("INTERCEPTOR_FN"),INTEGRATED_TYPES:(0,A.rG)("INTEGRATED_TYPES"),LIFECYCLE_CONFIG:(0,A.rG)("LIFECYCLE_CONFIG"),HTTP_CLIENT:(0,A.rG)("HTTP_CLIENT"),HTTP_XHR_BACKEND:(0,A.rG)("HTTP_XHR_BACKEND"),FETCH_BACKEND:(0,A.rG)("FETCH_BACKEND"),...A.ih};class ee extends Y.NP{}class Te{}(0,A.k8)(P.API_USED,()=>!1),(0,A.k8)(P.APP_ID,()=>Date.now().toString()),(0,A.k8)(P.APP_PROVIDER,()=>[]),(0,A.k8)(P.ROUTER,_e.Ix),(0,A.k8)(P.ACTIVATED_ROUTE,_e.nX),(0,A.k8)(P.ZONE,U.SKi),(0,A.k8)(P.ZONELESS,U.Evm),(0,A.k8)(P.SERVICE_NAME),(0,A.k8)(P.APP_REF,Z.o8S),(0,A.k8)(P.HASH_LOCATION_STRATEGY_TYPE,()=>V.fw),(0,A.k8)(P.PRELOADING_STRATEGY,$e.NJ),(0,A.k8)(P.ROUTER_PRELOADER,$e.u$),(0,A.k8)(P.API_VERSION,()=>dt),(0,A.k8)(P.INTERCEPTOR_FN,()=>sn),(0,A.k8)(P.APP_ROUTES,_e.bw),(0,A.k8)(P.INTEGRATED_TYPES,()=>(0,A.Xu)()),(0,A.k8)(P.LIFECYCLE_CONFIG),(0,A.k8)(P.SCRIPT_PATH,()=>d.e(7932).then(d.bind(d,7932)).then(c=>c.scriptPath())),(0,A.k8)(P.HTTP_CLIENT,ze.Qq),(0,A.k8)(P.HTTP_XHR_BACKEND,ze.tl),(0,A.k8)(P.FETCH_BACKEND,ze.Xl);class Ue{constructor(p){this.delegate=p,this.injector=(0,U.WQX)(U.uvJ)}createContent(p,f){var m=this;return(0,be.A)(function*(z,te,je={}){return je?.hostTemplate||(je.hostTemplate=yield m.getWebCompHostTemplate(te)),m.delegate.createContent(z,te,je)}).apply(this,arguments)}getWebCompHostTemplate(p){var f=this;return(0,be.A)(function*(){if(!f.webCompHostTemplate){const m=p.createComponent(Ge,{environmentInjector:f.injector});m.changeDetectorRef.detectChanges(),f.webCompHostTemplate=m.instance.getTemplate()}return f.webCompHostTemplate})()}}let Ge=(()=>{class c{constructor(){this.containerPromise=new Promise(f=>this.promiseCallback=f)}ngAfterViewInit(){this.containerTemplate&&this.promiseCallback?.(this.containerTemplate)}getTemplate(){return this.containerPromise}static{this.\u0275fac=function(m){return new(m||c)}}static{this.\u0275cmp=Z.VBU({type:c,selectors:[["ng-component"]],viewQuery:function(m,z){if(1&m&&Z.GBs(jt,5,Z.C4Q),2&m){let te;Z.mGM(te=Z.lsd())&&(z.containerTemplate=te.first)}},decls:2,vars:0,consts:[["containerTemplate",""],[1,"content-container"]],template:function(m,z){1&m&&Z.PeT(0,Qt,1,0,"ng-template",null,0,Z.C5r)},encapsulation:2})}}return c})();const kt=[{provide:Y.cg,useFactory:c=>c.getPortalInfoService()},{provide:class It{},useFactory:c=>c.getPortalLifecycleService()},{provide:Ie,useFactory:c=>c.getApiEndpointService()},{provide:at,useFactory:c=>c.getAssetService()},{provide:Y.Pi,useFactory:c=>c.getLocalizationService()},{provide:Y.QE,useFactory:c=>c.getClientLoggingService()},{provide:Y.Rx,useFactory:c=>c.getPortalFeaturesService()},{provide:Ct,useFactory:c=>c.getNavigationService()},{provide:class Pe extends Ct{},useFactory:c=>c.getNavigationService()},{provide:Te,useFactory:c=>c.getOkpHttpUtilsProvider()},{provide:ze.JV,useFactory:c=>c.getHttpBackend()},{provide:A.JN,useFactory:c=>c.getAppConnector()},{provide:Y.r7,useFactory:c=>c.getScriptRegistry()},{provide:Y.bU,useFactory:c=>c.getScriptProvider()},{provide:Y.Wj,useFactory:c=>c.getEventBusService()},{provide:Y.V8,useFactory:c=>c.getDataStorageService()},{provide:Y.Z7,useFactory:c=>c.getContentLookupService()},{provide:He,useFactory:c=>new Ue(c.getContentFactory())}],sn=(c,p)=>(0,U.WQX)(Te).getOkpHttpInterceptorFn()(c,p),dt=new U.RxE("1.0.0"),pt=`@okp/api_v${dt.major}`},5690(ft,ve,d){d.d(ve,{JN:()=>an,a1:()=>Ze,ih:()=>$e,Vk:()=>f,k8:()=>Y,BV:()=>Zn,jL:()=>Je,Ue:()=>qt,Cj:()=>P,Xu:()=>m,Rh:()=>je,GS:()=>z,ah:()=>fe,YN:()=>It,eZ:()=>Tn,Tk:()=>Nt,is:()=>Nn,Gg:()=>V,MM:()=>An,VX:()=>ct,MC:()=>Pt,zz:()=>Zt,Lq:()=>Ct,rG:()=>U,lq:()=>Rt,PG:()=>at,rr:()=>Pe,ZB:()=>sn,AW:()=>xe,al:()=>Ye,d$:()=>nt,PS:()=>Tt,fm:()=>Yt,Wn:()=>Yn});var E=d(5802),s=d(5547),S=d(6050),ue=d(1985),h=d(1203),I=d(5964),D=d(5558),F=d(9030),Ae=d(6697),k=d(2498),x=d(1807),O=d(7673),le=d(274),L=d(4402),M=d(9724),X=d(9437),J=d(8810),Se=d(7108),ie=d(9901),w=d(9350),de=d(5109),De=d(3774),re=d(3669),y=d(3570),pe=d(6354);let B=(()=>{class o{constructor(u){const g=u;g.okpGlobal||(g.okpGlobal={}),this.globalState=g.okpGlobal}get(u){return this.globalState[u]}set(u,g){this.globalState[u]=g}static{this.\u0275fac=function(g){return new(g||o)(E.KVO(S.Qc))}}static{this.\u0275prov=E.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o}
1)();const H=o=>!!o&&((0,y.AT)(o)||(0,y.yL)(o)),Xe=o=>!!o&&((0,y.aE)(o)||Object.values(o).find(a=>(0,y.Tn)(a)||(0,y.Gv)(a)&&(H(a)||Xe(a))));function ye(o,a){return H(o)?function Ke(o,a){return(0,y.AT)(o)?o.pipe(u=>new ue.c(g=>u.subscribe({next:T=>a.run(()=>g.next(T)),error:T=>a.run(()=>g.error(T)),complete:()=>a.run(()=>g.complete())}))):o.then(u=>a.run(()=>u))}(o,a):Xe(o)?be(o,a):o}function be(o,a,u){return(0,y.tz)({apply:(g,T,N=[])=>{let ge;return ge=(0,y.ju)(g)&&g.handler.apply?g.handler.apply(o,u??o,N):g.apply(u??o,N),(0,y.Gv)(ge)?ye(ge,a):ge},get(g,T){const N=o[T];return(0,y.Tn)(N)?be(N,a,o):(0,y.Gv)(N)?ye(N,a):N}},o)}const U=o=>({name:o}),V=o=>(0,y.i5)(o,"name");function Y(o,a){_e[o.name]=a?(o=>"function"==typeof o&&!(0,y.Lc)(o))(a)?new E.nKC(o.name,{factory:a}):a:new E.nKC(o.name)}const _e={},$e={ACTIVE_FEATURES:U("ACTIVE_FEATURES")};Y($e.ACTIVE_FEATURES,()=>[]);class Ze{#e=[];#t=(0,y.t4)();add(a,u){a(this.#t.capture()),(0,y.xo)(this.#t.value(),g=>{this.#e.push({prop:g,provider:u})})}replace(a,u){a(this.#t.capture()),(0,y.xo)(this.#t.value(),g=>{this.#e.push({prop:g,providerFn:u})})}static create(){return new Ze}getAll(){return this.#e}find(a){return a(this.#t.capture()),(0,y.xo)(this.#t.value(),u=>this.#e.find(g=>g.prop===u))}}function at(o,a,u){const g=Ze.create();return a(g),{overrides:u?null:g,kind:o,providers:u?[{provide:u,useValue:g}]:[]}}const xe=o=>Kt(o)?o:(o=>(0,y.Lc)(o)||(0,y.Xj)(o)||(o=>(0,y.i5)(o,"ngMetadataName")&&"InjectionToken"===o.ngMetadataName)(o))(o)?{useExisting:o}:{useValue:o},Kt=o=>At(o)||Cn(o)||He(o)||b(o),He=o=>(0,y.i5)(o,"useClass"),An=o=>me(o)&&He(o),At=o=>(0,y.i5)(o,"useValue"),Ct=o=>me(o)&&At(o),b=o=>(0,y.i5)(o,"useFactory"),Cn=o=>(0,y.i5)(o,"useExisting"),It=o=>"object"==typeof o&&"provide"in o,me=o=>!!o&&("object"==typeof o&&"provide"in o||"function"==typeof o&&"constructor"in o||Array.isArray(o)&&o.some(me)),j=o=>{if("\u0275providers"in o)return{...o,providers:o.\u0275providers};throw new Error(`Unexpected structure of EnvironmentProviders detected. Structure: '${Object.getOwnPropertyNames(o)}'`)};function Tn(o,a){return!!(0,y.Rn)(Tt(o,a))}function*Tt(o,a){const u=a||void 0;for(const g of o)Array.isArray(g)?yield*Tt(g,u):me(g)?(!u||u(g))&&(yield g):yield*Tt(j(g).providers,u)}const Pt=o=>(0,y.i5)(o,"name")&&"HttpErrorResponse"===o.name;function ct(o,a,u){return!!o&&"object"==typeof o&&"type"in o&&o.type===u}function Zt(){return(0,h.F)((0,I.p)(o=>!!o))}const Ye=(0,h.F)((0,pe.T)(()=>{}));function Nt(o,a){return(0,h.F)((0,D.n)(u=>function R(o,a,u){return(0,F.v)(()=>o()?a:u)}(()=>o(u),(0,F.v)(()=>a.onTrue(u)),(0,F.v)(()=>a.onFalse(u)))))}function Yt(o){return a=>o.pipe((0,Ae.s)(1),(0,D.n)(()=>a))}function P(o){return(0,h.F)((0,pe.T)(a=>a.find(o)))}function Nn(o){return(0,h.F)((0,I.p)(a=>a instanceof o))}function Je(o,a){return(0,h.F)((0,I.p)(u=>ct(u,0,a)))}function fe(o){return(0,h.F)((0,I.p)(a=>o(a)))}function qt(){return(0,h.F)((0,I.p)(o=>!!o))}function Rt(o,a){return u=>{const g=o(u);return g?a(g)(u):u}}const Ot=new E.nKC("OverriddenProviders",{factory:()=>[]});function et(o,a){return a||(0,E.Af3)(et),!!(a?a.get(Ot):(0,E.WQX)(Ot)).find(g=>g===o)}const en=o=>(0,y.i5)(o,"serviceProviders"),tn=o=>!(0,y.i5)(o,"apiProvider"),_t=o=>(0,y.i5)(o,"default");function Pe(o){const a=function rn(o){return tn(o)&&(o.serviceProviders=o.serviceProviders.map(a=>(Kt(a.default)&&(a.default=function Be(o){let a;return a=At(o)?new E.nKC("",{factory:()=>o.useValue}):b(o)?new E.nKC("",{factory:()=>o.useFactory(o.deps?.map(u=>(0,E.WQX)(u)))}):He(o)?new E.nKC("",{factory:()=>new o.useClass}):o.useExisting,a}(a.default)),a))),function _n(o,a){return{...o,extensions:(0,y.cF)((0,y.d9)(o.optFeatures),u=>a(u)),features:(0,y.d9)(o.optFeatures?.filter(u=>!(o=>(0,y.i5)(o,"serviceProviders"))(u))).map(u=>({...u,providers:(0,y.d9)(u.providers)})),providers:(0,y.d9)(o.providers),overrides:o.optFeatures?.find(u=>(o=>(0,y.i5)(o,"overrides"))(u))?.overrides??void 0}}(o,en)}(o),u=[];tn(o)?(u.push(function On(o){const a=nt(o.serviceProviders);return{provide:o.type,useFactory:()=>{const u=(0,E.WQX)(E.zZn);return(0,y.tz)({get:(g,T)=>(...N)=>{if(!T.startsWith("get"))return;const ge=a[T];let cn=(0,E.N4e)(u,()=>o.apiInterceptor?.(T,N??[]));return!cn&&ge.default&&!et(ge.provide,u)&&(cn=u.get(ge.default)),cn??u.get(ge.provide)}})}}}(o)),o.asStandalone&&u.push(a.serviceProviders.filter(N=>N.default).map(N=>({provide:N.default})))):u.push({provide:o.type,...o.apiProvider});const g=[Ft(o),...Ge(o.type,o.serviceProviders),...u,...a.features.map(T=>T.providers).flat(),...a.extensions.map(T=>Pe(T)).flat(),...a.providers.flat(),...kt(a)];return o.asStandalone?(0,s.Ol2)(g,o.asStandalone.parentInjector):(0,E.EmA)(g)}function Ge(o,a){return a.map(u=>({provide:u.provide,deps:[o],useFactory:g=>u.useFactory(g),multi:u.multi}))}function kt(o){if(!o.overrides)return[];const a=nt(o.serviceProviders);return o.overrides.getAll().map(u=>{if(u.providerFn){const g=a[u.prop];return[{provide:Ot,useValue:a[u.prop].provide,multi:!0},{provide:a[u.prop].provide,...xe(u.providerFn(xe(_t(g)?g.default:g)))}]}return[{provide:Ot,useValue:a[u.prop].provide,multi:!0},{provide:a[u.prop].provide,...xe(u.provider)}]})??[]}function Ft(o){return(0,E.BCV)(()=>{const a=(0,E.WQX)(B);if(a.get(o.name))throw Error(`${o.name} already defined. The impl use is restricted to the portal integration. For application integration use the api`);const u=(0,E.WQX)(o.type);return a.set(o.name,u),u})}function nt(o){const a=(0,y.t4)();return o.reduce((u,g)=>{try{g.useFactory?.(a.capture())}catch{}
1const T=a.value();return T?{...u,[T]:g}:u},{})}const lt=(o,a)=>`${o} (Tried to load resource over XHR for ${a+1} times without success)`;function sn(o){const a=o.backoffMs??500,u=o.delayMs??100;let g=0;return T=>T.pipe((0,k.L)({delay:N=>{if(!Pt(N)||!function kn(o,a){let u=!0;return o.status?a.includeCodes?.length?u=pt(o.status,a?.includeCodes??[]):a.excludeCodes?.length&&(u=!pt(o.status,a?.excludeCodes??[])):a.includeCodes?.length&&(u=!1),u}(N,o))throw N;if(g<o.maxRetries)return g++,o.retryCallback&&o.retryCallback(g),(0,x.O)(u+g*a);throw o.errorSupplier?o.errorSupplier(N):new N.constructor({error:N.error,headers:N.headers,status:N.status,statusText:lt(N.statusText,o.maxRetries),url:N.url??void 0})}}))}const dt=/^(\d)xx$/;function pt(o,a){return!!a.find(u=>{if(u==o)return!0;const g=u.toString().match(dt);if(g?.length)return new RegExp(`^${g[1]}\\d{2}$`).test(o.toString());if(isNaN(Number(u)))throw new Error(`possible code '${u}' for status code check is not a number and not a range like 5xx`);return!1})}const p=[];function f(o,a=Number.MAX_VALUE){p.find(u=>u.type===o)||p.push({type:o,priority:a})}function m(){return p}function z(o){return o.sort((a,u)=>a.priority-u.priority).map(a=>a.type)}function je(o){return o.integratedTypes.map(a=>o.injector.get(a,void 0,{...o.injectOptions,optional:!0})).filter(function te(o){return a=>(0,y.i5)(a,o)&&(0,y.Tn)(a[o])}(o.hookName)).map(a=>o.ngZone?ye(a,o.ngZone):a)}function Zn(o,a,u){const g=(0,O.of)(o).pipe((0,le.H)(T=>T),(0,le.H)(T=>{const N=a(T);return(0,L.A)(N)?N.pipe((0,Ae.s)(1)):(0,y.yL)(N)?(0,M.H)(N):(0,O.of)(N)}),(0,X.W)(T=>u?.ignoreErrors?(0,O.of)():(0,J.$)(()=>T)));if(u?.reducer){const T=u.reducer;return g.pipe((0,Se.T)(T.reduce,T.initialValue))}return g.pipe((0,ie.U)(void 0),function Ee(o,a){const u=arguments.length>=2;return g=>g.pipe(o?(0,I.p)((T,N)=>o(T,N,g)):re.D,(0,de.o)(1),u?(0,ie.U)(a):(0,De.v)(()=>new w.G))}())}function Yn(o){return o}class an{}},4900(ft,ve,d){d.d(ve,{QJ:()=>Ae,bx:()=>R});var F=d(5690);const R={HIGHEST_PRECEDENCE:Number.MIN_SAFE_INTEGER,HIGH_PRECEDENCE:0,LOWEST_PRECEDENCE:Number.MAX_SAFE_INTEGER};function Ae(L={},M=F.Vk){return X=>{M(L.token??X,L.priority??R.LOWEST_PRECEDENCE)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.