@elliemae/pui-app-sdk 5.32.2 → 5.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/{4194.d7b7bd0c.iframe.bundle.js → 4194.b43aef1e.iframe.bundle.js} +1 -1
- package/demo/4194.b43aef1e.iframe.bundle.js.br +0 -0
- package/demo/{4194.d7b7bd0c.iframe.bundle.js.gz → 4194.b43aef1e.iframe.bundle.js.gz} +0 -0
- package/demo/docs/{4194.d7b7bd0c.iframe.bundle.js → 4194.b43aef1e.iframe.bundle.js} +1 -1
- package/demo/docs/4194.b43aef1e.iframe.bundle.js.br +0 -0
- package/demo/docs/{4194.d7b7bd0c.iframe.bundle.js.gz → 4194.b43aef1e.iframe.bundle.js.gz} +0 -0
- package/demo/docs/iframe.html +1 -1
- package/demo/docs/index.html +1 -1
- package/demo/docs/{main.0ae090a6634de7a91844.manager.bundle.js → main.98d57bde8df29856ba54.manager.bundle.js} +1 -1
- package/demo/docs/{main.0ae090a6634de7a91844.manager.bundle.js.br → main.98d57bde8df29856ba54.manager.bundle.js.br} +0 -0
- package/demo/docs/{main.0ae090a6634de7a91844.manager.bundle.js.gz → main.98d57bde8df29856ba54.manager.bundle.js.gz} +0 -0
- package/demo/docs/main.d330d1f5.iframe.bundle.js +5 -0
- package/demo/docs/main.d330d1f5.iframe.bundle.js.br +0 -0
- package/demo/docs/main.d330d1f5.iframe.bundle.js.gz +0 -0
- package/demo/docs/project.json +1 -1
- package/demo/iframe.html +1 -1
- package/demo/index.html +1 -1
- package/demo/{main.0ae090a6634de7a91844.manager.bundle.js → main.98d57bde8df29856ba54.manager.bundle.js} +1 -1
- package/demo/{main.0ae090a6634de7a91844.manager.bundle.js.br → main.98d57bde8df29856ba54.manager.bundle.js.br} +0 -0
- package/demo/{main.0ae090a6634de7a91844.manager.bundle.js.gz → main.98d57bde8df29856ba54.manager.bundle.js.gz} +0 -0
- package/demo/main.d330d1f5.iframe.bundle.js +5 -0
- package/demo/main.d330d1f5.iframe.bundle.js.br +0 -0
- package/demo/main.d330d1f5.iframe.bundle.js.gz +0 -0
- package/demo/project.json +1 -1
- package/dist/cjs/utils/logrocket.js +2 -7
- package/dist/cjs/utils/micro-frontend/guest.js +0 -7
- package/dist/cjs/utils/micro-frontend/host.js +0 -7
- package/dist/esm/utils/logrocket.js +2 -7
- package/dist/esm/utils/micro-frontend/guest.js +0 -7
- package/dist/esm/utils/micro-frontend/host.js +0 -7
- package/dist/types/lib/utils/logrocket.d.ts +1 -2
- package/dist/types/lib/utils/micro-frontend/guest.d.ts +0 -2
- package/dist/types/lib/utils/micro-frontend/host.d.ts +0 -2
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/demo/4194.d7b7bd0c.iframe.bundle.js.br +0 -0
- package/demo/docs/4194.d7b7bd0c.iframe.bundle.js.br +0 -0
- package/demo/docs/main.2d39c220.iframe.bundle.js +0 -5
- package/demo/docs/main.2d39c220.iframe.bundle.js.br +0 -0
- package/demo/docs/main.2d39c220.iframe.bundle.js.gz +0 -0
- package/demo/main.2d39c220.iframe.bundle.js +0 -5
- package/demo/main.2d39c220.iframe.bundle.js.br +0 -0
- package/demo/main.2d39c220.iframe.bundle.js.gz +0 -0
|
@@ -1410,7 +1410,7 @@ ${ie}`;console.warn(V),I.warned=!0}return A(ne,k,H,...N)};return Object.definePr
|
|
|
1410
1410
|
@media (max-width: ${l[g]}) {
|
|
1411
1411
|
${(0,n.AH)(v,...j)};
|
|
1412
1412
|
}
|
|
1413
|
-
`,h),{}),t=l=>({space:{...l.spaces,xxxs:l.spaces[1],xxs:l.spaces[2],xxs2:l.spaces[3],xs:l.spaces[4],s:l.spaces[5],m:l.spaces[6],l:l.spaces[7],xl:l.spaces[8],xxl:l.spaces[9]},fontSizes:{...l.fontSizes,title:{500:l.fontSizes[3],600:l.fontSizes[4],700:l.fontSizes[5],800:l.fontSizes[6],900:l.fontSizes[7]},subTitle:{300:l.fontSizes[1],400:l.fontSizes[2]},label:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},value:{300:l.fontSizes[1],400:l.fontSizes[2],500:l.fontSizes[3],600:l.fontSizes[4]},hyperlink:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},microText:{200:l.fontSizes[0]}},fontWeights:{...l.fontWeights,thin:l.fontWeights[0],light:l.fontWeights[1],regular:l.fontWeights[3],semibold:l.fontWeights[5],bold:l.fontWeights[8]},lineHeights:{...l.lineHeights,r:l.lineHeights[0],m:l.lineHeights[1],l:l.lineHeights[2],xl:l.lineHeights[3]},letterSpacings:{normal:l.letterSpacings[0],tracked:l.letterSpacings[1],tight:l.letterSpacings[2],mega:l.letterSpacings[3]},fonts:{...l.fonts,default:l.fonts[0]},colors:{neutral:{"000":l.colors.neutral[0],"050":l.colors.neutral[1],"080":l.colors.neutral[2],100:l.colors.neutral[3],200:l.colors.neutral[4],300:l.colors.neutral[5],400:l.colors.neutral[6],500:l.colors.neutral[7],600:l.colors.neutral[8],700:l.colors.neutral[9],800:l.colors.neutral[10]},brand:{100:l.colors.brand[0],200:l.colors.brand[1],250:l.colors.brand[8],300:l.colors.brand[2],400:l.colors.brand[3],500:l.colors.brand[4],600:l.colors.brand[5],700:l.colors.brand[6],800:l.colors.brand[7]},success:{300:l.colors.success[0],400:l.colors.success[1],600:l.colors.success[2],900:l.colors.success[3],950:l.colors.success[4]},warning:{400:l.colors.warning[0],500:l.colors.warning[1],600:l.colors.warning[1],900:l.colors.warning[2],950:l.colors.warning[3]},danger:{200:l.colors.danger[0],400:l.colors.danger[1],600:l.colors.danger[2],900:l.colors.danger[3],950:l.colors.danger[4]}},shadows:{xs:l.shadows[0],s:l.shadows[1],m:l.shadows[2],l:l.shadows[3],xl:l.shadows[4]},breakpoints:{...l.breakpoints,xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]},media:o({xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]}),zIndex:{dialog:l.zIndex[0],popper:l.zIndex[1],tooltip:l.zIndex[2],backdrop:l.zIndex[3],loader:l.zIndex[4]},states:{_:l.states[0],motionSafe:l.states[1],motionReduce:l.states[2],first:l.states[3],last:l.states[4],odd:l.states[5],even:l.states[6],visited:l.states[7],checked:l.states[8],focusWithin:l.states[9],hover:l.states[10],focus:l.states[11],focusVisible:l.states[12],active:l.states[13],disabled:l.states[14],placeholder:l.states[15]}}),c=((l=r())=>()=>t(l))()},"./node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.16/node_modules/@elliemae/ssf-guest/dist/esm/guest.js":(u,m,e)=>{"use strict";e.d(m,{p:()=>$});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),l=e("@elliemae/pui-diagnostics");const h=()=>{const{parent:ne}=window;try{return ne?.location?.href}catch{return null}},g=ne=>{if(!ne||ne==="about:blank")return"*";try{const{origin:k}=new URL(ne);return k==="null"||!k?ne:k}catch{const{origin:H}=new URL(ne,document.baseURI);return H}},v=()=>window.self!==window.parent,j=(ne,k)=>{const H=k||document.body,N=document.defaultView?.getComputedStyle?.(H,null),Y=N?N[ne]:"0";return parseInt(Y,10)},P=new RegExp("^https?://(.*.elliemae.io|.*.ellielabs.com|.*.ellieservices.com|.*.encompassloconnect.com|.*.ice.com|localhost:[0-9]+)","i"),E="elli:remoting",C=()=>new Promise(ne=>{if(v())ne({origin:g(document.referrer||h()),window:window.parent});else{const k=window,H=N=>{if(P.test(N.origin)){const{source:Y,type:ie}=N.data||{};if(Y===E&&ie===t.G.HandShake){const{origin:V}=N,U=N.source;(0,o._)({targetWin:U,targetOrigin:V,messageType:t.G.HandShakeAck,messageBody:{}}),k.removeEventListener("message",H),ne({origin:V,window:U})}}};k.addEventListener("message",H)}});let T=!1;const D=ne=>{T=ne},O=(ne=null)=>{let k=ne;const H=()=>{if(!k&&(k=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!k))throw new Error("Guest definition not found");return k};window.elli=window.elli??{},window.elli.script={guest:{create:async(N,Y)=>H().addScript(N,Y)},connect:async N=>(console.warn("elli.script.connect is deprecated. Please use connect method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.connect(params);"),H().connect(N)),getObject:async N=>(T||console.warn("elli.script.getObject is deprecated. Please use getObject method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.getObject(objectName);"),H().getObject(N)),setLogLevel:N=>(T||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),H().setLogLevel(N)),subscribe:(N,Y,ie)=>(T||console.warn("elli.script.subscribe is deprecated. Please use subscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.subscribe({ eventId: `${objectId}.${eventName}`, callback: (event) => { console.log(event); });"),H().subscribe({eventId:`${N}.${Y}`,callback:V=>ie(V?.obj,V?.eventParams,V?.eventOptions)})),unsubscribe:(N,Y,ie)=>(T||console.warn("elli.script.unsubscribe is deprecated. Please use unsubscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.unsubscribe({ eventId: `${objectId}.${eventName}`, token });"),H().unsubscribe({eventId:`${N}.${Y}`,token:ie}))}};O();var M=(ne=>(ne.OBJECT="object",ne.VALUE="value",ne))(M||{});const w=12e4,y={eventFeedback:!0},x=()=>{const{document:ne}=window,k=ne.body,H=ne.documentElement,Y={height:k.offsetHeight+j("marginTop")+j("marginBottom"),width:Math.max(k.scrollWidth,H.scrollWidth)};(0,o._)({targetWin:window.parent,targetOrigin:g(ne.referrer||h()),messageType:t.G.GuestResize,messageBody:Y}),window.removeEventListener("load",x)};v()&&window.addEventListener("load",x);const R={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},A=["click","scroll","keypress","touchstart"],I=()=>{const ne=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/541/node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.16/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",k=ne?new URL(ne).hostname:"localhost";return R[k]||R["cdn.qa1.ice.com"]};class ${#n;#e;#t;#o=!1;#r=null;#s=!1;#a=new Map;#m=null;#i=null;#u=null;#l=null;#c=null;#g=!1;#d=null;#h=null;#p=null;#_=!0;#x=w;#y;#v=null;constructor(k){const{console:H=!1,url:N=window.__ICE__?.diagnosticsUrl||I(),index:Y="ssf-guest-v2",team:ie="ICE",appName:V="SSF Guest V2 Application"}=k?.logger??{};this.#y=k?.logger,this.#g=k?.usesDevConnectAPI??!1,this.#_=k?.keepAlive??!0,this.#x=k?.keepAliveInterval??w;const U=H?(0,l.Console)():(0,l.http)(N);this.#e=k?.appLogger??(0,l.logger)({transport:U,index:Y,team:ie,appName:V}),(0,l.webvitals)(this.#e),(0,l.logUnhandledErrors)(this.#e),this.#n=(0,r.A)(),this.#t=new o.K(this.#e,this.#n),O(this),this.#e.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#n})}#f=()=>({guestId:this.#m,guestTitle:this.#i,guestUrl:this.#u});#b=k=>{if(!k||!k.objectId)throw this.#e.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const H=new i.V(k.objectId,k.objectType);return k.functions&&k.functions.forEach(N=>{Object.defineProperty(H,N,{value:async(...Y)=>this.#j({objectId:H.id,functionName:N,functionParams:[].slice.call(Y)}),enumerable:!0})}),k.events&&k.events.forEach(N=>{Object.defineProperty(H,N,{value:new c.b3({objectId:H.id,name:N,eventSrc:this}),enumerable:!0})}),this.#e.debug(`Created guest proxy for scripting object (id = "${H.id}")`),H};#j=async({objectId:k,functionName:H,functionParams:N})=>{this.#e.debug(`Invoking scripting object method ${k}.${H}()...`);const Y=[];if(N)for(let U=0;U<N.length;U+=1){const G=N[U];G instanceof Promise&&Y.push(G.then(q=>{N[U]=q}))}await Promise.all(Y);const ie=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectInvoke,messageBody:{objectId:k,functionName:H,functionParams:N}}),V=this.#E(ie);return this.#e.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:k,scriptingMethod:H,...this.#f()}),V};#w(k,H){return Object.entries(H).every(([N,Y])=>{const ie=k[N];if("eq"in Y)return ie===Y.eq;if("in"in Y)return Array.isArray(Y.in)&&Y.in.includes(ie);if("includes"in Y)return Array.isArray(ie)&&ie.includes(Y.includes);if("gt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V>Y.gt}if("lt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V<Y.lt}if("regex"in Y)try{const V=new RegExp(Y.regex);return typeof ie=="string"&&V.test(ie)}catch{return!1}return!1})}#E=k=>k?.type==="object"&&"object"in k?this.#b(k.object):k?.type==="value"?k.value:k;#A=({body:k})=>{k?.logLevel&&(this.#e.setLogLevel(k.logLevel),this.#e.debug(`Log level changed by host to ${k.logLevel}`)),this.#m=k?.guestId??null,this.#i=k?.guestTitle??null,this.#u=k?.guestUrl??null,this.#e.audit({message:"Received configuration from Host",...this.#f()})};#S=()=>{window.focus()};#C=async()=>{await this.close(),window.close()};#O=()=>{v()||setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#T=async({sourceWin:k,sourceOrigin:H,requestId:N,body:Y})=>{const ie=this.#b(Y.object);if(ie){const V=(0,c._s)(ie.id,Y.eventName);this.#e.debug(`Received event "${V}" from host`);let U;Y.eventHandler?U=[{callback:window[Y.eventHandler],token:(0,r.A)()}]:U=this.#a.get(V)||[];const G=[];if(U.forEach(q=>{if(q?.callback){if(q.criteria&&!(Y.eventParams?this.#w(Y.eventParams,q.criteria):!1)){this.#e.debug(`Event ${V} did not match criteria for subscriber ${q.callback.name}`);return}this.#e.debug(`Invoking event subscriber ${q.callback.name} for event ${V}`);const re=q.callback({obj:ie,eventName:Y.eventName,eventParams:Y.eventParams,eventOptions:Y.eventOptions});re instanceof Promise?G.push(re):typeof re<"u"&&G.push(Promise.resolve(re))}}),N){const q=await Promise.all(G);this.#t.respond({targetWin:k,targetOrigin:H,requestId:N,response:q}),this.#e.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}else this.#e.audit({message:"Guest proxy processed event from host",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}};#P=async()=>{!this.#d||!this.#h||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#D=async()=>{if(this.#d&&this.#h&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{method:"POST"})}catch(k){this.#e.error(`Error revoking token. ${k.message}`)}finally{this.#d=null,this.#h=null}};#R=async()=>{if(this.#_)try{const k=await this.getObject("application");k?(this.#v=(0,n.throttle)(async()=>{try{await k.keepSessionAlive(),await this.#P()}catch(H){this.#e.error(`Error keeping session alive. ${H.message}`)}},this.#x,{leading:!1}),A.forEach(H=>{document.addEventListener(H,this.#v)})):this.#e.warn("Application object not available to send keep alive")}catch(k){this.#e.error(`Error getting application object. ${k.message}`)}};#k=async()=>{try{const k=await this.getObject("module");if(k?.log&&!this.#y.console){const{index:H="",team:N="",appName:Y=""}=this.#y||{};if(!H||!N||!Y)throw new Error("Missing one of required logger options: index, team, appName");this.#e=(0,l.logger)({transport:(0,l.parentApp)(k),index:H,team:N,appName:Y})}}catch(k){this.#e.info(`Module object not exposed from hosting application. using local logger instance. ${k.message}`)}};addScript=async(k,H)=>{if(!this.#o&&k){await this.connect();const N=document.createElement("script");N.setAttribute("src",k),N.setAttribute("type","module"),await new Promise(Y=>{const ie=()=>{N?.removeEventListener?.("load",ie),this.#o=!0,D(!0),Y()};N.addEventListener("load",ie),this.#r=H.appendChild(N)})}};close=async()=>{this.#s&&(this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestClose,messageBody:{}}),this.#t.removeSender({origin:this.#l,window:this.#c}),this.#t.close(),this.#v&&A.forEach(k=>{document.removeEventListener(k,this.#v)}),await this.#D(),window.removeEventListener("beforeunload",this.close),this.#s=!1,this.#e.audit({message:"Guest disconnected from host",...this.#f()}),this.#m=null,this.#u=null,this.#i=null)};connect=async k=>{if(!this.#s){let H=window,N={...y};if(k){H=k.window||H;const ie={...k};delete ie.window,N=Object.assign(N,ie)}const Y=await C();this.#l=Y.origin,this.#c=Y.window,this.#t.initialize(H),this.#t.addSender({origin:this.#l,window:this.#c}),this.#t.listen({messageType:t.G.ObjectEvent,callback:this.#T.bind(this)}),this.#t.listen({messageType:t.G.HostConfig,callback:this.#A.bind(this)}),this.#t.listen({messageType:t.G.GuestFocus,callback:this.#S.bind(this)}),this.#t.listen({messageType:t.G.HostClose,callback:this.#C.bind(this)}),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestReady,messageBody:N}),this.#s=!0,this.#O(),this.#g&&await this.getAuthToken(),await this.#R(),window.addEventListener("beforeunload",this.close),this.#e.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#d&&this.#s)try{const k=await this.getObject("auth");if(k){const H=await k.getAccessToken();this.#d=H?.access_token,this.#p=H?.host_name,this.#h=H?.client_id}else this.#e.warn("Auth object not available to get access token from host")}catch(k){this.#e.error(`Error getting access token from auth object. ${k.message}`)}return this.#d};getObject=async k=>{if(this.#e.debug(`Retrieving scripting object "${k}" from host...`),!this.#s)throw new Error("Not connected to host");const H=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectGet,messageBody:{objectId:k}}),N=this.#b(H.object);return this.#e.audit({message:"Received scripting object from host",scriptingObject:k,...this.#f()}),N};listObjects=async()=>{if(this.#e.debug("Retrieving names of scripting objects exposed by host..."),!this.#s)throw new Error("Not connected to host");const k=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ListObjects,messageBody:{}});return this.#e.audit({message:"Received names of all scripting objects exposed by host",objects:k,...this.#f()}),k};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:k}=this.#r;k?.removeChild?.(this.#r)}};setLogLevel=k=>{this.#e.setLogLevel(k),this.#e.debug(`Log level changed by guest to ${k}`)};subscribe=k=>{const{eventId:H,criteria:N,callback:Y}=k;this.#e.debug(`Registering subscription for event ${H}`);const ie=this.#a.get(H.toLowerCase())||[],V=(0,r.A)();return ie.push({callback:Y,token:V,criteria:N}),this.#a.set(H.toLowerCase(),ie),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventSubscribe,messageBody:{eventId:H,criteria:N,token:V}}),this.#e.debug(`Subscribed to event ${H} with token ${V}`),V};unsubscribe=k=>{const{eventId:H,token:N}=k,Y=this.#a.get(H.toLowerCase());if(Y){const ie=Y.length,V=Y.filter(U=>U.token!==N);V.length<ie&&(this.#a.set(H.toLowerCase(),V),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventUnsubscribe,messageBody:{eventId:H,token:N}}),this.#e.debug(`Unsubscribed from event ${H}`))}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.21.3_@elliemae+pui-diagnostics@3.11.3/node_modules/@elliemae/ssf-host/dist/esm/host.js":(u,m,e)=>{"use strict";e.d(m,{P:()=>O});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),l=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),h=(M=>(M.Popup="popup",M.Embed="embed",M))(h||{}),g=(M=>(M.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",M.AllowDownloads="allow-downloads",M.AllowForms="allow-forms",M.AllowModals="allow-modals",M.AllowOrientationLock="allow-orientation-lock",M.AllowPointerLock="allow-pointer-lock",M.AllowPopups="allow-popups",M.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",M.AllowPresentation="allow-presentation",M.AllowSameOrigin="allow-same-origin",M.AllowScripts="allow-scripts",M.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",M.AllowTopNavigation="allow-top-navigation",M.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",M))(g||{});const v=M=>{if(M==="about:blank")return"*";try{const{origin:w}=new URL(M);return w==="null"||!w?M:w}catch{const{origin:y}=new URL(M,document.baseURI);return y}},j=(M,w=[])=>{const y=w||[];return M&&M.forEach?M.forEach(x=>{j(x,y)}):typeof M<"u"&&y.push(M),y},P=M=>typeof M?._toJSON=="function";function E(M){return typeof M=="function"}const C=M=>M?.id??M;class T{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#n;#e;constructor(w){const{guestId:y,domElement:x=null,title:R,url:A,window:I,searchParams:$={},openMode:ne=h.Embed,remoting:k,analyticsObj:H}=w;this.id=y,this.title=R,this.url=A,this.origin=v(A),this.searchParams=$,this.domElement=x,this.window=I,this.openMode=ne,this.capabilities={},this.#e=H,this.#n=k}dispose=()=>{if(this.openMode===h.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#n.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(w=>{let y=0;const x=5,R=setInterval(()=>{y>=x?(clearInterval(R),w(!1)):(this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HandShake,messageBody:{}}),y+=1)},1e3);this.#n.listen({messageType:t.G.HandShakeAck,callback:()=>{clearInterval(R),w(!0)}})});init=()=>{this.#n.addSender({origin:this.origin,window:this.window}),this.openMode===h.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(w,y)=>(this.#e.startTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{}),this.#n.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.ObjectEvent,messageBody:w,responseTimeoutMs:y}).finally(()=>{this.#e.endTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{})}));send=w=>{this.#n.send({targetWin:this.window,targetOrigin:this.origin,...w})}}const D=[g.AllowScripts,g.AllowPopups,g.AllowModals,g.AllowForms,g.AllowDownloads,g.AllowSameOrigin];class O{hostId;#n;#e;#t;#o;#r=new Map;#s=new Map;#a;#m=null;#i=null;#u=null;#l=null;constructor(w,y){if(this.hostId=w,!y?.logger)throw new Error("Logger is required");if(!y?.analyticsObj)throw new Error("Analytics object is required");if(this.#t=y.logger,this.#o=y.analyticsObj,this.#e=(0,r.A)(),this.#n=new n.K(this.#t,this.#e),y?.readyStateCallback&&typeof y?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#m=y?.readyStateCallback||null,this.#u=y?.onGuestEventSubscribe||null,this.#l=y?.onGuestEventUnsubscribe||null,this.#a=new o.qE,this.#n.initialize(window),this.#R(),window.addEventListener("beforeunload",this.#h),this.#F(),this.#t.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#e}`)}#c=(w,y)=>{const x={event:w,...y};this.#o.sendBAEvent(x).catch(()=>{})};#g=(w,y)=>{this.#o.startTiming(w,y).catch(()=>{})};#d=(w,y)=>{this.#o.endTiming(w,y).catch(()=>{})};#h=()=>{for(const w of this.#r.values())w.openMode===h.Popup&&this.unloadGuest(w.id)};#p=w=>Array.from(this.#r.values()).find(y=>y.window===w);#_=w=>{for(const y of this.#r.values())if(y.url===w)return y;return null};#x=w=>typeof w?._toJSON=="function";#y=(w,y)=>this.#x(w)?(this.#a.has(w?.id,y)||this.#a.addScriptingObject(w,y?{guestId:y?.id}:{}),{type:"object",object:w._toJSON()}):{type:"value",value:w};#v=w=>typeof w=="string"?w:w instanceof Error?w.message:"An unexpected error occurred in the host application";#f=w=>{w.ready&&this.#n.send({targetWin:w.window,targetOrigin:w.origin,messageType:t.G.HostConfig,messageBody:{logLevel:this.#t.getLogLevel(),...w.getInfo()}})};#b=({guest:w,obj:y,functionName:x,functionParams:R})=>{const A=y[x];return E(A)?(this.#t.debug(`Invoking host implementation of ${y.id}.${String(x)}()`),new Promise(I=>{Object.defineProperty(A,"callContext",{value:{guest:w},configurable:!0,enumerable:!0,writable:!0}),I(A(...R))})):(this.#t.warn(`Attempt to call invalid function on object type ${y.objectType}: ${String(x)}`),Promise.reject(new Error(`Method '${x}' not found in Scripting Object '${y.id}'`)))};#j=({sourceWin:w,sourceOrigin:y,requestId:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received ready event for unknown guest. requestId: ${x}`);return}if(!R.initialized){this.#t.warn("Guest must be initialized before it is marked as ready"),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:"Guest must be initialized before it is marked as ready"});return}if(!R.ready){R.ready=!0;const A=R.getInfo();this.#d("SSF.Guest.Load",{appId:A.guestId,appUrl:A.guestUrl}),this.#f(R),this.#m?.(R),this.#t.audit({message:"Guest is ready",...A})}};#w=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const A=this.#p(w);if(!A){this.#t.warn(`Received ready event for unknown guest. requestid = ${x}`);return}A.initialized||(A.initialized=!0,A.capabilities=R||{},this.#t.audit({message:"Guest is initialized",...A.getInfo()})),(!R||!R.onReady)&&this.#j({sourceWin:w,sourceOrigin:y,requestId:x,type:"",body:null})};#E=async({sourceWin:w})=>{if(w?.window){const y=this.#I(w);y&&!await y.handShake()&&this.unloadGuest(w)}};#A=({sourceWin:w,sourceOrigin:y,requestId:x})=>{this.#t.debug(`Processing listObjects request. requestId = ${x}`);const R=this.#p(w);if(!R)return this.#t.warn("Rejected object request from unknown guest window"),!1;const A=this.#a.listScriptingObjects(R.id);return this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:A}),this.#t.audit({message:"name of scripting objects returned",requestId:x,objects:A,...R.getInfo()}),!0};#S=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R;this.#t.debug(`Processing getObject request for object ${A}. requestId = ${x}`);const I=this.#p(w);if(!I)return this.#t.warn("Rejected object request from unknown guest window"),!1;const $=this.getScriptingObject(A,{guest:I});return $?(this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y($,I)}),this.#t.audit({message:"Scripting Object returned",requestId:x,scriptingObject:A,...I.getInfo()}),!0):(this.#t.warn(`unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1)};#C=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,criteria:A,token:I}=x;this.#t.debug(`Processing guest event subscribe request for event ${R}. requestId = ${y}`);const $=this.#p(w);if(!$){this.#t.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:$.id,eventId:R,criteria:A,token:I})}catch{}},0)};#O=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,token:A}=x;this.#t.debug(`Processing guest event unsubscribe request for event ${R}. requestId = ${y}`);const I=this.#p(w);if(!I){this.#t.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#l?.({guestId:I.id,eventId:R,token:A})}catch{}},0)};#T=({sourceWin:w,requestId:y,body:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received resize event from unknown guest. requestid = ${y}`);return}R.domElement&&(R.domElement.style.height=`${x.height}px`),this.#t.debug(`Guest ${R.id} resized to ${x.width}x${x.height}`)};#P=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R,I=this.#p(w);if(!I)return this.#t.warn("Rejected method invocation request from unknown guest window"),!1;this.#t.debug(`Function ${A}.${String(R.functionName)}() called from guest "${I.id}" (requestId = ${x})`);const $=this.getScriptingObject(A,{guest:I});if(!$)return this.#t.warn(`Invocation of unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1;const ne=I.getInfo();return this.#g(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl}),this.#b({guest:I,obj:$,functionName:R.functionName,functionParams:R.functionParams}).then(k=>{this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y(k,I)}),this.#t.audit({message:"Value returned for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).catch(k=>{this.#n.raiseException({targetWin:w,targetOrigin:I.origin,requestId:x,ex:k}),this.#t.audit({message:"Exception thrown for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).finally(()=>{this.#d(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl})}),!0};#D=()=>{this.#n.listen({messageType:t.G.GuestResize,callback:this.#T})};#R=()=>{this.#n.listen({messageType:t.G.GuestReady,callback:this.#w}),this.#n.listen({messageType:t.G.GuestReadyComplete,callback:this.#j}),this.#n.listen({messageType:t.G.GuestClose,callback:this.#E}),this.#n.listen({messageType:t.G.ListObjects,callback:this.#A}),this.#n.listen({messageType:t.G.ObjectGet,callback:this.#S}),this.#n.listen({messageType:t.G.ObjectInvoke,callback:this.#P}),this.#n.listen({messageType:t.G.GuestEventSubscribe,callback:this.#C}),this.#n.listen({messageType:t.G.GuestEventUnsubscribe,callback:this.#O})};#k=w=>w instanceof i.b3||typeof w?.subscribe=="function";#M=w=>{const y=new T({...w,remoting:this.#n,analyticsObj:this.#o});return y.init(),this.#r.set(w.guestId,y),y};#I=w=>{let y=typeof w=="string"?this.#r.get(w):null;return y||(y=Array.from(this.#r.values()).find(x=>x.window===w||x.domElement===w)),y};#F=()=>{this.#i=setInterval(()=>{const w=[];this.#r.forEach(y=>{y.openMode===h.Popup&&y.window.closed&&w.push(y)}),w.forEach(y=>{const{id:x}=y;this.unloadGuest(x),this.#s.get(x)?.forEach(A=>{A({id:x}).catch(()=>{})})})},1e3)};#L=w=>{const{url:y,title:x,popupWindowFeatures:R={},searchParams:A,guestId:I,onLoad:$,onError:ne}=w,{width:k=800,height:H=600,top:N=100,left:Y=100}=R;let ie=this.#_(y);if(ie)ie.window.closed||ie.send({messageType:t.G.GuestFocus,messageBody:{}});else{const V=[{key:"width",value:k},{key:"height",value:H},{key:"top",value:N},{key:"left",value:Y}].reduce((G,q,re)=>(re>0&&q.value&&(G+=","),q.value?`${G}${q.key}=${q.value}`:G),""),U=window.open(y,x,`popup, ${V}`);if(U)try{setTimeout(()=>{$?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${G.message}`)}else{try{setTimeout(()=>{ne?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${G.message}`)}throw new Error("Failed to open guest application in popup window")}U.opener=null,ie=this.#M({guestId:I,window:U,title:x,url:y,searchParams:A,openMode:h.Popup})}return ie};#N=w=>{const{url:y,title:x,targetElement:R,searchParams:A,guestId:I,onLoad:$,onError:ne,options:k={}}=w,H=R.ownerDocument??document,{fitToContent:N=!1,disableSandbox:Y=!1,sandboxValues:ie=[],customSandboxValues:V=[],style:U="",permissionPolicy:G=""}=k;if(!x)throw new Error("title is required");N&&this.#D();const q=H.createElement("iframe");q.setAttribute("id",I);const re=()=>{setTimeout(()=>{try{$?.(I)}catch(Ae){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${Ae.message}`)}},0),this.#t.debug(`frame loaded for guest with id '${I}'`),q.removeEventListener("load",re)},ee=()=>{setTimeout(()=>{try{ne?.(I)}catch(Ae){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${Ae.message}`)}},0),this.#t.error(`frame load failed for guest with id '${I}'`),q.removeEventListener("error",ee)};q.addEventListener("load",re),q.addEventListener("error",ee),q.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${U}`),Y||q.setAttribute("sandbox",V.length>0?V.join(" "):[...D,...ie].join(" ")),q.setAttribute("title",x),q.setAttribute("src",y),G&&q.setAttribute("allow",G),R.appendChild(q);const de=H.getElementById(I);return this.#M({guestId:I,domElement:de,window:de.contentWindow,title:x,url:y,searchParams:A,openMode:h.Embed})};#B=(w,y)=>{let x="";return Object.keys(y).forEach(R=>{x+=`${(x.length?"&":"")+encodeURIComponent(R)}=${encodeURIComponent(y[R])}`}),w+(x?(w.indexOf("?")>=0?"&":"?")+x:"")};addScriptingObject=(w,y)=>{if((0,c.h)(w)){const x=this.cloneScriptingObject(w);this.#a.addScriptingObject(x,y)}else this.#a.addScriptingObject(w,y)};cloneScriptingObject=w=>{if(!w)throw new Error("proxy is required");const y=new l.P(w.id,w.objectType);let x=[];return Object.keys(w).forEach(R=>{const A=w[R];if(this.#k(A)){const I=new i.Jh({name:A.name||R,objectId:y.id});if(Object.defineProperty(y,R,{value:I,enumerable:!0}),A instanceof i.b3){const $=({eventParams:k,eventOptions:H})=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}),ne=A.subscribe($);x.push(()=>{A.unsubscribe(ne)})}else{const $=A.subscribe?.((ne,k,H)=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}));x.push(()=>{A.unsubscribe?.($)})}}else if(E(A)&&(Object.defineProperty(y,R,{value:async(...I)=>{const $=await A(...I);return(0,c.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),R==="dispose")){const I=y.dispose;Object.defineProperty(y,R,{value:()=>(y._dispose(),I.apply(y)),enumerable:!0})}}),y._dispose=()=>{x.forEach(R=>{R?.()}),x=[]},y};close=()=>{clearInterval(this.#i),this.#h(),this.#n.close(),window.removeEventListener("beforeunload",this.#h),this.#t.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#e}`)};dispatchEvent=async w=>{const{event:{id:y,name:x},eventParams:R,eventOptions:A={}}=w,{eventHandler:I=null,timeout:$=null,window:ne=null,guestId:k}=A,H=y.split(".")[0],N=k||ne,Y=N?this.#I(N):null,ie=Y?this.getScriptingObject(H,{guest:Y}):this.getScriptingObject(H);if(!ie)return this.#t.warn(`Attempt to dispatch event ${x} on unknown object ${H}`),Promise.resolve([]);const V={object:ie._toJSON(),eventName:x,eventParams:R,eventHandler:I,eventOptions:{allowsFeedback:!1}};$&&!Number.isNaN($)&&(V.eventOptions={allowsFeedback:!0,timeout:Number($)});const U=[];let G=!1;return this.#r.forEach(re=>{const ee=re.getInfo();(!ne||ne===re.window)&&($&&re?.capabilities?.eventFeedback?(U.push(re.dispatchEvent(V,$)),G||(this.#g(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href}),G=!0),this.#t.audit({message:"Event dispatched and awaiting feedback",scriptingEventId:y,...ee})):(re.send({messageType:t.G.ObjectEvent,messageBody:V}),this.#t.audit({message:"Event dispatched",scriptingEventId:y,...ee})))}),await Promise.all(U).then(re=>(this.#t.audit({message:"Event feedback received",scriptingEventId:y}),j(re))).catch(re=>{throw this.#t.error({message:"Error processing event",eventId:y,exception:re}),re}).finally(()=>{G&&this.#d(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>{const w=[];return this.#r.forEach(y=>{w.push(y)}),w};getScriptingObject=(w,y)=>this.#a.getObject(w,y?.guest);loadGuest=w=>{const{id:y,url:x,targetElement:R,title:A,searchParams:I={},onLoad:$,onError:ne,options:k={}}=w;if(!y)throw new Error("id for guest application is required");const{openMode:H=h.Embed,popupWindowFeatures:N={}}=k,Y=this.#B(x,I);let ie=null;if(this.#g("SSF.Guest.Load",{appId:y,appUrl:Y}),H===h.Popup)ie=this.#L({guestId:y,url:Y,title:A,searchParams:I,popupWindowFeatures:N,onLoad:$,onError:ne});else if(H===h.Embed)ie=this.#N({guestId:y,url:Y,title:A,targetElement:R,searchParams:I,onLoad:$,onError:ne,options:k});else throw new Error(`Invalid openMode: ${H}`);return this.#t.audit({message:"Guest loaded",...ie.getInfo()}),ie};loadGuests=w=>{const{id:y,url:x,targetElement:R,title:A,searchParamsList:I=[],options:$={}}=w;I.forEach((ne,k)=>{this.loadGuest({id:`${y}-${k}`,url:x,title:A,targetElement:R,searchParams:ne,options:$})},this)};removeAllScriptingObjects=w=>{this.#a.removeAllScriptingObjects(w)};removeScriptingObject=(w,y)=>{this.#a.removeScriptingObject(w,y)};setLogLevel=w=>{this.#t.setLogLevel(w),this.#r.forEach(this.#f),this.#t.debug("Dispatched config events to all guests")};unloadGuest=w=>{const y=this.#I(w);y&&(y.dispose(),this.#r.delete(y.id),this.#t.audit({message:"Guest is removed from host",...y.getInfo()}))};onGuestClose=w=>{const{id:y,guestCloseCallback:x}=w,R=this.#s.get(y)||[];R.push(x),this.#s.set(y,R)}}},"./node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>r});function r(n){var o=Object.create(null);return function(t){return o[t]===void 0&&(o[t]=n(t)),o[t]}}},"./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/query/rtk-query.esm.js":(u,m,e)=>{"use strict";e.d(m,{$k:()=>Ze});var r=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"),n=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.js"),o="NOT_FOUND";function t(Qe){var Xn;return{get:function(ln){return Xn&&Qe(Xn.key,ln)?Xn.value:o},put:function(ln,Jn){Xn={key:ln,value:Jn}},getEntries:function(){return Xn?[Xn]:[]},clear:function(){Xn=void 0}}}function i(Qe,Xn){var Yn=[];function ln(Rt){var at=Yn.findIndex(function(Wt){return Xn(Rt,Wt.key)});if(at>-1){var Bt=Yn[at];return at>0&&(Yn.splice(at,1),Yn.unshift(Bt)),Bt.value}return o}function Jn(Rt,at){ln(Rt)===o&&(Yn.unshift({key:Rt,value:at}),Yn.length>Qe&&Yn.pop())}function bn(){return Yn}function Zn(){Yn=[]}return{get:ln,put:Jn,getEntries:bn,clear:Zn}}var c=function(Xn,Yn){return Xn===Yn};function l(Qe){return function(Yn,ln){if(Yn===null||ln===null||Yn.length!==ln.length)return!1;for(var Jn=Yn.length,bn=0;bn<Jn;bn++)if(!Qe(Yn[bn],ln[bn]))return!1;return!0}}function h(Qe,Xn){var Yn=typeof Xn=="object"?Xn:{equalityCheck:Xn},ln=Yn.equalityCheck,Jn=ln===void 0?c:ln,bn=Yn.maxSize,Zn=bn===void 0?1:bn,Rt=Yn.resultEqualityCheck,at=l(Jn),Bt=Zn===1?t(at):i(Zn,at);function Wt(){var b=Bt.get(arguments);if(b===o){if(b=Qe.apply(null,arguments),Rt){var J=Bt.getEntries(),we=J.find(function(Ie){return Rt(Ie.value,b)});we&&(b=we.value)}Bt.put(arguments,b)}return b}return Wt.clearCache=function(){return Bt.clear()},Wt}function g(Qe){var Xn=Array.isArray(Qe[0])?Qe[0]:Qe;if(!Xn.every(function(ln){return typeof ln=="function"})){var Yn=Xn.map(function(ln){return typeof ln=="function"?"function "+(ln.name||"unnamed")+"()":typeof ln}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+Yn+"]")}return Xn}function v(Qe){for(var Xn=arguments.length,Yn=new Array(Xn>1?Xn-1:0),ln=1;ln<Xn;ln++)Yn[ln-1]=arguments[ln];var Jn=function(){for(var Zn=arguments.length,Rt=new Array(Zn),at=0;at<Zn;at++)Rt[at]=arguments[at];var Bt=0,Wt,b={memoizeOptions:void 0},J=Rt.pop();if(typeof J=="object"&&(b=J,J=Rt.pop()),typeof J!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof J+"]");var we=b,Ie=we.memoizeOptions,On=Ie===void 0?Yn:Ie,dn=Array.isArray(On)?On:[On],Q=g(Rt),pe=Qe.apply(void 0,[function(){return Bt++,J.apply(null,arguments)}].concat(dn)),ge=Qe(function(){for(var ke=[],Je=Q.length,Mn=0;Mn<Je;Mn++)ke.push(Q[Mn].apply(null,arguments));return Wt=pe.apply(null,ke),Wt});return Object.assign(ge,{resultFunc:J,memoizedResultFunc:pe,dependencies:Q,lastResult:function(){return Wt},recomputations:function(){return Bt},resetRecomputations:function(){return Bt=0}}),ge};return Jn}var j=v(h),P=function(Xn,Yn){if(Yn===void 0&&(Yn=j),typeof Xn!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof Xn));var ln=Object.keys(Xn),Jn=Yn(ln.map(function(bn){return Xn[bn]}),function(){for(var bn=arguments.length,Zn=new Array(bn),Rt=0;Rt<bn;Rt++)Zn[Rt]=arguments[Rt];return Zn.reduce(function(at,Bt,Wt){return at[ln[Wt]]=Bt,at},{})});return Jn},E=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),C=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),T=function(Qe,Xn){var Yn={label:0,sent:function(){if(bn[0]&1)throw bn[1];return bn[1]},trys:[],ops:[]},ln,Jn,bn,Zn;return Zn={next:Rt(0),throw:Rt(1),return:Rt(2)},typeof Symbol=="function"&&(Zn[Symbol.iterator]=function(){return this}),Zn;function Rt(Bt){return function(Wt){return at([Bt,Wt])}}function at(Bt){if(ln)throw new TypeError("Generator is already executing.");for(;Yn;)try{if(ln=1,Jn&&(bn=Bt[0]&2?Jn.return:Bt[0]?Jn.throw||((bn=Jn.return)&&bn.call(Jn),0):Jn.next)&&!(bn=bn.call(Jn,Bt[1])).done)return bn;switch(Jn=0,bn&&(Bt=[Bt[0]&2,bn.value]),Bt[0]){case 0:case 1:bn=Bt;break;case 4:return Yn.label++,{value:Bt[1],done:!1};case 5:Yn.label++,Jn=Bt[1],Bt=[0];continue;case 7:Bt=Yn.ops.pop(),Yn.trys.pop();continue;default:if(bn=Yn.trys,!(bn=bn.length>0&&bn[bn.length-1])&&(Bt[0]===6||Bt[0]===2)){Yn=0;continue}if(Bt[0]===3&&(!bn||Bt[1]>bn[0]&&Bt[1]<bn[3])){Yn.label=Bt[1];break}if(Bt[0]===6&&Yn.label<bn[1]){Yn.label=bn[1],bn=Bt;break}if(bn&&Yn.label<bn[2]){Yn.label=bn[2],Yn.ops.push(Bt);break}bn[2]&&Yn.ops.pop(),Yn.trys.pop();continue}Bt=Xn.call(Qe,Yn)}catch(Wt){Bt=[6,Wt],Jn=0}finally{ln=bn=0}if(Bt[0]&5)throw Bt[1];return{value:Bt[0]?Bt[1]:void 0,done:!0}}},D=function(Qe,Xn){for(var Yn=0,ln=Xn.length,Jn=Qe.length;Yn<ln;Yn++,Jn++)Qe[Jn]=Xn[Yn];return Qe},O=Object.defineProperty,M=Object.defineProperties,w=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,A=function(Qe,Xn,Yn){return Xn in Qe?O(Qe,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):Qe[Xn]=Yn},I=function(Qe,Xn){for(var Yn in Xn||(Xn={}))x.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn]);if(y)for(var ln=0,Jn=y(Xn);ln<Jn.length;ln++){var Yn=Jn[ln];R.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn])}return Qe},$=function(Qe,Xn){return M(Qe,w(Xn))},ne=function(Qe,Xn){var Yn={};for(var ln in Qe)x.call(Qe,ln)&&Xn.indexOf(ln)<0&&(Yn[ln]=Qe[ln]);if(Qe!=null&&y)for(var Jn=0,bn=y(Qe);Jn<bn.length;Jn++){var ln=bn[Jn];Xn.indexOf(ln)<0&&R.call(Qe,ln)&&(Yn[ln]=Qe[ln])}return Yn},k=function(Qe,Xn,Yn){return new Promise(function(ln,Jn){var bn=function(at){try{Rt(Yn.next(at))}catch(Bt){Jn(Bt)}},Zn=function(at){try{Rt(Yn.throw(at))}catch(Bt){Jn(Bt)}},Rt=function(at){return at.done?ln(at.value):Promise.resolve(at.value).then(bn,Zn)};Rt((Yn=Yn.apply(Qe,Xn)).next())})},H;(function(Qe){Qe.uninitialized="uninitialized",Qe.pending="pending",Qe.fulfilled="fulfilled",Qe.rejected="rejected"})(H||(H={}));function N(Qe){return{status:Qe,isUninitialized:Qe===H.uninitialized,isLoading:Qe===H.pending,isSuccess:Qe===H.fulfilled,isError:Qe===H.rejected}}function Y(Qe){return new RegExp("(^|:)//").test(Qe)}var ie=function(Qe){return Qe.replace(/\/$/,"")},V=function(Qe){return Qe.replace(/^\//,"")};function U(Qe,Xn){if(!Qe)return Xn;if(!Xn)return Qe;if(Y(Xn))return Xn;var Yn=Qe.endsWith("/")||!Xn.startsWith("?")?"/":"";return Qe=ie(Qe),Xn=V(Xn),""+Qe+Yn+Xn}var G=function(Qe){return[].concat.apply([],Qe)};function q(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function re(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var ee=r.Qd;function de(Qe,Xn){if(Qe===Xn||!(ee(Qe)&&ee(Xn)||Array.isArray(Qe)&&Array.isArray(Xn)))return Xn;for(var Yn=Object.keys(Xn),ln=Object.keys(Qe),Jn=Yn.length===ln.length,bn=Array.isArray(Xn)?[]:{},Zn=0,Rt=Yn;Zn<Rt.length;Zn++){var at=Rt[Zn];bn[at]=de(Qe[at],Xn[at]),Jn&&(Jn=Qe[at]===bn[at])}return Jn?Qe:bn}var Ae=function(){for(var Qe=[],Xn=0;Xn<arguments.length;Xn++)Qe[Xn]=arguments[Xn];return fetch.apply(void 0,Qe)},be=function(Qe){return Qe.status>=200&&Qe.status<=299},Ce=function(Qe){return/ion\/(vnd\.api\+)?json/.test(Qe.get("content-type")||"")};function qe(Qe){if(!isPlainObject2(Qe))return Qe;for(var Xn=I({},Qe),Yn=0,ln=Object.entries(Xn);Yn<ln.length;Yn++){var Jn=ln[Yn],bn=Jn[0],Zn=Jn[1];Zn===void 0&&delete Xn[bn]}return Xn}function je(Qe){var Xn=this;Qe===void 0&&(Qe={});var Yn=Qe,ln=Yn.baseUrl,Jn=Yn.prepareHeaders,bn=Jn===void 0?function(ge){return ge}:Jn,Zn=Yn.fetchFn,Rt=Zn===void 0?Ae:Zn,at=Yn.paramsSerializer,Bt=Yn.isJsonContentType,Wt=Bt===void 0?Ce:Bt,b=Yn.jsonContentType,J=b===void 0?"application/json":b,we=Yn.jsonReplacer,Ie=Yn.timeout,On=Yn.responseHandler,dn=Yn.validateStatus,Q=ne(Yn,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&Rt===Ae&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(ge,De){return k(Xn,null,function(){var ke,Je,Mn,Kn,An,Wn,nt,mt,$t,Xt,Fe,yn,Dn,Qn,It,Ct,St,ir,Cr,cr,Yt,nr,jr,wr,gt,hr,ur,Ur,vr,Lr,Ar,xo,Jr,Gr,Yr,oo;return T(this,function(Ao){switch(Ao.label){case 0:return ke=De.signal,Je=De.getState,Mn=De.extra,Kn=De.endpoint,An=De.forced,Wn=De.type,mt=typeof ge=="string"?{url:ge}:ge,$t=mt.url,Xt=mt.headers,Fe=Xt===void 0?new Headers(Q.headers):Xt,yn=mt.params,Dn=yn===void 0?void 0:yn,Qn=mt.responseHandler,It=Qn===void 0?On??"json":Qn,Ct=mt.validateStatus,St=Ct===void 0?dn??be:Ct,ir=mt.timeout,Cr=ir===void 0?Ie:ir,cr=ne(mt,["url","headers","params","responseHandler","validateStatus","timeout"]),Yt=I($(I({},Q),{signal:ke}),cr),Fe=new Headers(qe(Fe)),nr=Yt,[4,bn(Fe,{getState:Je,extra:Mn,endpoint:Kn,forced:An,type:Wn})];case 1:nr.headers=Ao.sent()||Fe,jr=function(ss){return typeof ss=="object"&&(isPlainObject2(ss)||Array.isArray(ss)||typeof ss.toJSON=="function")},!Yt.headers.has("content-type")&&jr(Yt.body)&&Yt.headers.set("content-type",J),jr(Yt.body)&&Wt(Yt.headers)&&(Yt.body=JSON.stringify(Yt.body,we)),Dn&&(wr=~$t.indexOf("?")?"&":"?",gt=at?at(Dn):new URLSearchParams(qe(Dn)),$t+=wr+gt),$t=U(ln,$t),hr=new Request($t,Yt),ur=new Request($t,Yt),nt={request:ur},vr=!1,Lr=Cr&&setTimeout(function(){vr=!0,De.abort()},Cr),Ao.label=2;case 2:return Ao.trys.push([2,4,5,6]),[4,Rt(hr)];case 3:return Ur=Ao.sent(),[3,6];case 4:return Ar=Ao.sent(),[2,{error:{status:vr?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Ar)},meta:nt}];case 5:return Lr&&clearTimeout(Lr),[7];case 6:xo=Ur.clone(),nt.response=xo,Gr="",Ao.label=7;case 7:return Ao.trys.push([7,9,,10]),[4,Promise.all([pe(Ur,It).then(function(ss){return Jr=ss},function(ss){return Yr=ss}),xo.text().then(function(ss){return Gr=ss},function(){})])];case 8:if(Ao.sent(),Yr)throw Yr;return[3,10];case 9:return oo=Ao.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Ur.status,data:Gr,error:String(oo)},meta:nt}];case 10:return[2,St(Ur,Jr)?{data:Jr,meta:nt}:{error:{status:Ur.status,data:Jr},meta:nt}]}})})};function pe(ge,De){return k(this,null,function(){var ke;return T(this,function(Je){switch(Je.label){case 0:return typeof De=="function"?[2,De(ge)]:(De==="content-type"&&(De=Wt(ge.headers)?"json":"text"),De!=="json"?[3,2]:[4,ge.text()]);case 1:return ke=Je.sent(),[2,ke.length?JSON.parse(ke):null];case 2:return[2,ge.text()]}})})}}var Ge=function(){function Qe(Xn,Yn){Yn===void 0&&(Yn=void 0),this.value=Xn,this.meta=Yn}return Qe}();function un(Qe,Xn){return Qe===void 0&&(Qe=0),Xn===void 0&&(Xn=5),k(this,null,function(){var Yn,ln;return T(this,function(Jn){switch(Jn.label){case 0:return Yn=Math.min(Qe,Xn),ln=~~((Math.random()+.4)*(300<<Yn)),[4,new Promise(function(bn){return setTimeout(function(Zn){return bn(Zn)},ln)})];case 1:return Jn.sent(),[2]}})})}function cn(Qe){throw Object.assign(new Ge({error:Qe}),{throwImmediately:!0})}var Ln={},Nn=function(Qe,Xn){return function(Yn,ln,Jn){return k(void 0,null,function(){var bn,Zn,Rt,at,Bt,Wt,b;return T(this,function(J){switch(J.label){case 0:bn=[5,(Xn||Ln).maxRetries,(Jn||Ln).maxRetries].filter(function(we){return we!==void 0}),Zn=bn.slice(-1)[0],Rt=function(we,Ie,On){var dn=On.attempt;return dn<=Zn},at=I(I({maxRetries:Zn,backoff:un,retryCondition:Rt},Xn),Jn),Bt=0,J.label=1;case 1:J.label=2;case 2:return J.trys.push([2,4,,6]),[4,Qe(Yn,ln,Jn)];case 3:if(Wt=J.sent(),Wt.error)throw new Ge(Wt);return[2,Wt];case 4:if(b=J.sent(),Bt++,b.throwImmediately){if(b instanceof Ge)return[2,b.value];throw b}return b instanceof Ge&&!at.retryCondition(b.value.error,Yn,{attempt:Bt,baseQueryApi:ln,extraOptions:Jn})?[2,b.value]:[4,at.backoff(Bt,at.maxRetries)];case 5:return J.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},In=Object.assign(Nn,{fail:cn}),qn=(0,r.VP)("__rtkq/focused"),jn=(0,r.VP)("__rtkq/unfocused"),ht=(0,r.VP)("__rtkq/online"),wn=(0,r.VP)("__rtkq/offline"),st=!1;function Ze(Qe,Xn){function Yn(){var ln=function(){return Qe(qn())},Jn=function(){return Qe(jn())},bn=function(){return Qe(ht())},Zn=function(){return Qe(wn())},Rt=function(){window.document.visibilityState==="visible"?ln():Jn()};st||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",Rt,!1),window.addEventListener("focus",ln,!1),window.addEventListener("online",bn,!1),window.addEventListener("offline",Zn,!1),st=!0);var at=function(){window.removeEventListener("focus",ln),window.removeEventListener("visibilitychange",Rt),window.removeEventListener("online",bn),window.removeEventListener("offline",Zn),st=!1};return at}return Xn?Xn(Qe,{onFocus:qn,onFocusLost:jn,onOffline:wn,onOnline:ht}):Yn()}var rt;(function(Qe){Qe.query="query",Qe.mutation="mutation"})(rt||(rt={}));function At(Qe){return Qe.type===rt.query}function yt(Qe){return Qe.type===rt.mutation}function Bn(Qe,Xn,Yn,ln,Jn,bn){return wt(Qe)?Qe(Xn,Yn,ln,Jn).map(an).map(bn):Array.isArray(Qe)?Qe.map(an).map(bn):[]}function wt(Qe){return typeof Qe=="function"}function an(Qe){return typeof Qe=="string"?{type:Qe}:Qe}function En(Qe){return Qe!=null}var ft=Symbol("forceQueryFn"),tn=function(Qe){return typeof Qe[ft]=="function"};function te(Qe){var Xn=Qe.serializeQueryArgs,Yn=Qe.queryThunk,ln=Qe.mutationThunk,Jn=Qe.api,bn=Qe.context,Zn=new Map,Rt=new Map,at=Jn.internalActions,Bt=at.unsubscribeQueryResult,Wt=at.removeMutationResult,b=at.updateSubscriptionOptions;return{buildInitiateQuery:ge,buildInitiateMutation:De,getRunningQueryThunk:Ie,getRunningMutationThunk:On,getRunningQueriesThunk:dn,getRunningMutationsThunk:Q,getRunningOperationPromises:we,removalWarning:J};function J(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
1413
|
+
`,h),{}),t=l=>({space:{...l.spaces,xxxs:l.spaces[1],xxs:l.spaces[2],xxs2:l.spaces[3],xs:l.spaces[4],s:l.spaces[5],m:l.spaces[6],l:l.spaces[7],xl:l.spaces[8],xxl:l.spaces[9]},fontSizes:{...l.fontSizes,title:{500:l.fontSizes[3],600:l.fontSizes[4],700:l.fontSizes[5],800:l.fontSizes[6],900:l.fontSizes[7]},subTitle:{300:l.fontSizes[1],400:l.fontSizes[2]},label:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},value:{300:l.fontSizes[1],400:l.fontSizes[2],500:l.fontSizes[3],600:l.fontSizes[4]},hyperlink:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},microText:{200:l.fontSizes[0]}},fontWeights:{...l.fontWeights,thin:l.fontWeights[0],light:l.fontWeights[1],regular:l.fontWeights[3],semibold:l.fontWeights[5],bold:l.fontWeights[8]},lineHeights:{...l.lineHeights,r:l.lineHeights[0],m:l.lineHeights[1],l:l.lineHeights[2],xl:l.lineHeights[3]},letterSpacings:{normal:l.letterSpacings[0],tracked:l.letterSpacings[1],tight:l.letterSpacings[2],mega:l.letterSpacings[3]},fonts:{...l.fonts,default:l.fonts[0]},colors:{neutral:{"000":l.colors.neutral[0],"050":l.colors.neutral[1],"080":l.colors.neutral[2],100:l.colors.neutral[3],200:l.colors.neutral[4],300:l.colors.neutral[5],400:l.colors.neutral[6],500:l.colors.neutral[7],600:l.colors.neutral[8],700:l.colors.neutral[9],800:l.colors.neutral[10]},brand:{100:l.colors.brand[0],200:l.colors.brand[1],250:l.colors.brand[8],300:l.colors.brand[2],400:l.colors.brand[3],500:l.colors.brand[4],600:l.colors.brand[5],700:l.colors.brand[6],800:l.colors.brand[7]},success:{300:l.colors.success[0],400:l.colors.success[1],600:l.colors.success[2],900:l.colors.success[3],950:l.colors.success[4]},warning:{400:l.colors.warning[0],500:l.colors.warning[1],600:l.colors.warning[1],900:l.colors.warning[2],950:l.colors.warning[3]},danger:{200:l.colors.danger[0],400:l.colors.danger[1],600:l.colors.danger[2],900:l.colors.danger[3],950:l.colors.danger[4]}},shadows:{xs:l.shadows[0],s:l.shadows[1],m:l.shadows[2],l:l.shadows[3],xl:l.shadows[4]},breakpoints:{...l.breakpoints,xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]},media:o({xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]}),zIndex:{dialog:l.zIndex[0],popper:l.zIndex[1],tooltip:l.zIndex[2],backdrop:l.zIndex[3],loader:l.zIndex[4]},states:{_:l.states[0],motionSafe:l.states[1],motionReduce:l.states[2],first:l.states[3],last:l.states[4],odd:l.states[5],even:l.states[6],visited:l.states[7],checked:l.states[8],focusWithin:l.states[9],hover:l.states[10],focus:l.states[11],focusVisible:l.states[12],active:l.states[13],disabled:l.states[14],placeholder:l.states[15]}}),c=((l=r())=>()=>t(l))()},"./node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.16/node_modules/@elliemae/ssf-guest/dist/esm/guest.js":(u,m,e)=>{"use strict";e.d(m,{p:()=>$});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),l=e("@elliemae/pui-diagnostics");const h=()=>{const{parent:ne}=window;try{return ne?.location?.href}catch{return null}},g=ne=>{if(!ne||ne==="about:blank")return"*";try{const{origin:k}=new URL(ne);return k==="null"||!k?ne:k}catch{const{origin:H}=new URL(ne,document.baseURI);return H}},v=()=>window.self!==window.parent,j=(ne,k)=>{const H=k||document.body,N=document.defaultView?.getComputedStyle?.(H,null),Y=N?N[ne]:"0";return parseInt(Y,10)},P=new RegExp("^https?://(.*.elliemae.io|.*.ellielabs.com|.*.ellieservices.com|.*.encompassloconnect.com|.*.ice.com|localhost:[0-9]+)","i"),E="elli:remoting",C=()=>new Promise(ne=>{if(v())ne({origin:g(document.referrer||h()),window:window.parent});else{const k=window,H=N=>{if(P.test(N.origin)){const{source:Y,type:ie}=N.data||{};if(Y===E&&ie===t.G.HandShake){const{origin:V}=N,U=N.source;(0,o._)({targetWin:U,targetOrigin:V,messageType:t.G.HandShakeAck,messageBody:{}}),k.removeEventListener("message",H),ne({origin:V,window:U})}}};k.addEventListener("message",H)}});let T=!1;const D=ne=>{T=ne},O=(ne=null)=>{let k=ne;const H=()=>{if(!k&&(k=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!k))throw new Error("Guest definition not found");return k};window.elli=window.elli??{},window.elli.script={guest:{create:async(N,Y)=>H().addScript(N,Y)},connect:async N=>(console.warn("elli.script.connect is deprecated. Please use connect method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.connect(params);"),H().connect(N)),getObject:async N=>(T||console.warn("elli.script.getObject is deprecated. Please use getObject method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.getObject(objectName);"),H().getObject(N)),setLogLevel:N=>(T||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),H().setLogLevel(N)),subscribe:(N,Y,ie)=>(T||console.warn("elli.script.subscribe is deprecated. Please use subscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.subscribe({ eventId: `${objectId}.${eventName}`, callback: (event) => { console.log(event); });"),H().subscribe({eventId:`${N}.${Y}`,callback:V=>ie(V?.obj,V?.eventParams,V?.eventOptions)})),unsubscribe:(N,Y,ie)=>(T||console.warn("elli.script.unsubscribe is deprecated. Please use unsubscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.unsubscribe({ eventId: `${objectId}.${eventName}`, token });"),H().unsubscribe({eventId:`${N}.${Y}`,token:ie}))}};O();var M=(ne=>(ne.OBJECT="object",ne.VALUE="value",ne))(M||{});const w=12e4,y={eventFeedback:!0},x=()=>{const{document:ne}=window,k=ne.body,H=ne.documentElement,Y={height:k.offsetHeight+j("marginTop")+j("marginBottom"),width:Math.max(k.scrollWidth,H.scrollWidth)};(0,o._)({targetWin:window.parent,targetOrigin:g(ne.referrer||h()),messageType:t.G.GuestResize,messageBody:Y}),window.removeEventListener("load",x)};v()&&window.addEventListener("load",x);const R={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},A=["click","scroll","keypress","touchstart"],I=()=>{const ne=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/542/node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.16/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",k=ne?new URL(ne).hostname:"localhost";return R[k]||R["cdn.qa1.ice.com"]};class ${#n;#e;#t;#o=!1;#r=null;#s=!1;#a=new Map;#m=null;#i=null;#u=null;#l=null;#c=null;#g=!1;#d=null;#h=null;#p=null;#_=!0;#x=w;#y;#v=null;constructor(k){const{console:H=!1,url:N=window.__ICE__?.diagnosticsUrl||I(),index:Y="ssf-guest-v2",team:ie="ICE",appName:V="SSF Guest V2 Application"}=k?.logger??{};this.#y=k?.logger,this.#g=k?.usesDevConnectAPI??!1,this.#_=k?.keepAlive??!0,this.#x=k?.keepAliveInterval??w;const U=H?(0,l.Console)():(0,l.http)(N);this.#e=k?.appLogger??(0,l.logger)({transport:U,index:Y,team:ie,appName:V}),(0,l.webvitals)(this.#e),(0,l.logUnhandledErrors)(this.#e),this.#n=(0,r.A)(),this.#t=new o.K(this.#e,this.#n),O(this),this.#e.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#n})}#f=()=>({guestId:this.#m,guestTitle:this.#i,guestUrl:this.#u});#b=k=>{if(!k||!k.objectId)throw this.#e.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const H=new i.V(k.objectId,k.objectType);return k.functions&&k.functions.forEach(N=>{Object.defineProperty(H,N,{value:async(...Y)=>this.#j({objectId:H.id,functionName:N,functionParams:[].slice.call(Y)}),enumerable:!0})}),k.events&&k.events.forEach(N=>{Object.defineProperty(H,N,{value:new c.b3({objectId:H.id,name:N,eventSrc:this}),enumerable:!0})}),this.#e.debug(`Created guest proxy for scripting object (id = "${H.id}")`),H};#j=async({objectId:k,functionName:H,functionParams:N})=>{this.#e.debug(`Invoking scripting object method ${k}.${H}()...`);const Y=[];if(N)for(let U=0;U<N.length;U+=1){const G=N[U];G instanceof Promise&&Y.push(G.then(q=>{N[U]=q}))}await Promise.all(Y);const ie=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectInvoke,messageBody:{objectId:k,functionName:H,functionParams:N}}),V=this.#E(ie);return this.#e.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:k,scriptingMethod:H,...this.#f()}),V};#w(k,H){return Object.entries(H).every(([N,Y])=>{const ie=k[N];if("eq"in Y)return ie===Y.eq;if("in"in Y)return Array.isArray(Y.in)&&Y.in.includes(ie);if("includes"in Y)return Array.isArray(ie)&&ie.includes(Y.includes);if("gt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V>Y.gt}if("lt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V<Y.lt}if("regex"in Y)try{const V=new RegExp(Y.regex);return typeof ie=="string"&&V.test(ie)}catch{return!1}return!1})}#E=k=>k?.type==="object"&&"object"in k?this.#b(k.object):k?.type==="value"?k.value:k;#A=({body:k})=>{k?.logLevel&&(this.#e.setLogLevel(k.logLevel),this.#e.debug(`Log level changed by host to ${k.logLevel}`)),this.#m=k?.guestId??null,this.#i=k?.guestTitle??null,this.#u=k?.guestUrl??null,this.#e.audit({message:"Received configuration from Host",...this.#f()})};#S=()=>{window.focus()};#C=async()=>{await this.close(),window.close()};#O=()=>{v()||setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#T=async({sourceWin:k,sourceOrigin:H,requestId:N,body:Y})=>{const ie=this.#b(Y.object);if(ie){const V=(0,c._s)(ie.id,Y.eventName);this.#e.debug(`Received event "${V}" from host`);let U;Y.eventHandler?U=[{callback:window[Y.eventHandler],token:(0,r.A)()}]:U=this.#a.get(V)||[];const G=[];if(U.forEach(q=>{if(q?.callback){if(q.criteria&&!(Y.eventParams?this.#w(Y.eventParams,q.criteria):!1)){this.#e.debug(`Event ${V} did not match criteria for subscriber ${q.callback.name}`);return}this.#e.debug(`Invoking event subscriber ${q.callback.name} for event ${V}`);const re=q.callback({obj:ie,eventName:Y.eventName,eventParams:Y.eventParams,eventOptions:Y.eventOptions});re instanceof Promise?G.push(re):typeof re<"u"&&G.push(Promise.resolve(re))}}),N){const q=await Promise.all(G);this.#t.respond({targetWin:k,targetOrigin:H,requestId:N,response:q}),this.#e.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}else this.#e.audit({message:"Guest proxy processed event from host",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}};#P=async()=>{!this.#d||!this.#h||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#D=async()=>{if(this.#d&&this.#h&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{method:"POST"})}catch(k){this.#e.error(`Error revoking token. ${k.message}`)}finally{this.#d=null,this.#h=null}};#R=async()=>{if(this.#_)try{const k=await this.getObject("application");k?(this.#v=(0,n.throttle)(async()=>{try{await k.keepSessionAlive(),await this.#P()}catch(H){this.#e.error(`Error keeping session alive. ${H.message}`)}},this.#x,{leading:!1}),A.forEach(H=>{document.addEventListener(H,this.#v)})):this.#e.warn("Application object not available to send keep alive")}catch(k){this.#e.error(`Error getting application object. ${k.message}`)}};#k=async()=>{try{const k=await this.getObject("module");if(k?.log&&!this.#y.console){const{index:H="",team:N="",appName:Y=""}=this.#y||{};if(!H||!N||!Y)throw new Error("Missing one of required logger options: index, team, appName");this.#e=(0,l.logger)({transport:(0,l.parentApp)(k),index:H,team:N,appName:Y})}}catch(k){this.#e.info(`Module object not exposed from hosting application. using local logger instance. ${k.message}`)}};addScript=async(k,H)=>{if(!this.#o&&k){await this.connect();const N=document.createElement("script");N.setAttribute("src",k),N.setAttribute("type","module"),await new Promise(Y=>{const ie=()=>{N?.removeEventListener?.("load",ie),this.#o=!0,D(!0),Y()};N.addEventListener("load",ie),this.#r=H.appendChild(N)})}};close=async()=>{this.#s&&(this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestClose,messageBody:{}}),this.#t.removeSender({origin:this.#l,window:this.#c}),this.#t.close(),this.#v&&A.forEach(k=>{document.removeEventListener(k,this.#v)}),await this.#D(),window.removeEventListener("beforeunload",this.close),this.#s=!1,this.#e.audit({message:"Guest disconnected from host",...this.#f()}),this.#m=null,this.#u=null,this.#i=null)};connect=async k=>{if(!this.#s){let H=window,N={...y};if(k){H=k.window||H;const ie={...k};delete ie.window,N=Object.assign(N,ie)}const Y=await C();this.#l=Y.origin,this.#c=Y.window,this.#t.initialize(H),this.#t.addSender({origin:this.#l,window:this.#c}),this.#t.listen({messageType:t.G.ObjectEvent,callback:this.#T.bind(this)}),this.#t.listen({messageType:t.G.HostConfig,callback:this.#A.bind(this)}),this.#t.listen({messageType:t.G.GuestFocus,callback:this.#S.bind(this)}),this.#t.listen({messageType:t.G.HostClose,callback:this.#C.bind(this)}),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestReady,messageBody:N}),this.#s=!0,this.#O(),this.#g&&await this.getAuthToken(),await this.#R(),window.addEventListener("beforeunload",this.close),this.#e.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#d&&this.#s)try{const k=await this.getObject("auth");if(k){const H=await k.getAccessToken();this.#d=H?.access_token,this.#p=H?.host_name,this.#h=H?.client_id}else this.#e.warn("Auth object not available to get access token from host")}catch(k){this.#e.error(`Error getting access token from auth object. ${k.message}`)}return this.#d};getObject=async k=>{if(this.#e.debug(`Retrieving scripting object "${k}" from host...`),!this.#s)throw new Error("Not connected to host");const H=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectGet,messageBody:{objectId:k}}),N=this.#b(H.object);return this.#e.audit({message:"Received scripting object from host",scriptingObject:k,...this.#f()}),N};listObjects=async()=>{if(this.#e.debug("Retrieving names of scripting objects exposed by host..."),!this.#s)throw new Error("Not connected to host");const k=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ListObjects,messageBody:{}});return this.#e.audit({message:"Received names of all scripting objects exposed by host",objects:k,...this.#f()}),k};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:k}=this.#r;k?.removeChild?.(this.#r)}};setLogLevel=k=>{this.#e.setLogLevel(k),this.#e.debug(`Log level changed by guest to ${k}`)};subscribe=k=>{const{eventId:H,criteria:N,callback:Y}=k;this.#e.debug(`Registering subscription for event ${H}`);const ie=this.#a.get(H.toLowerCase())||[],V=(0,r.A)();return ie.push({callback:Y,token:V,criteria:N}),this.#a.set(H.toLowerCase(),ie),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventSubscribe,messageBody:{eventId:H,criteria:N,token:V}}),this.#e.debug(`Subscribed to event ${H} with token ${V}`),V};unsubscribe=k=>{const{eventId:H,token:N}=k,Y=this.#a.get(H.toLowerCase());if(Y){const ie=Y.length,V=Y.filter(U=>U.token!==N);V.length<ie&&(this.#a.set(H.toLowerCase(),V),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventUnsubscribe,messageBody:{eventId:H,token:N}}),this.#e.debug(`Unsubscribed from event ${H}`))}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.21.3_@elliemae+pui-diagnostics@3.11.3/node_modules/@elliemae/ssf-host/dist/esm/host.js":(u,m,e)=>{"use strict";e.d(m,{P:()=>O});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),l=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),h=(M=>(M.Popup="popup",M.Embed="embed",M))(h||{}),g=(M=>(M.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",M.AllowDownloads="allow-downloads",M.AllowForms="allow-forms",M.AllowModals="allow-modals",M.AllowOrientationLock="allow-orientation-lock",M.AllowPointerLock="allow-pointer-lock",M.AllowPopups="allow-popups",M.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",M.AllowPresentation="allow-presentation",M.AllowSameOrigin="allow-same-origin",M.AllowScripts="allow-scripts",M.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",M.AllowTopNavigation="allow-top-navigation",M.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",M))(g||{});const v=M=>{if(M==="about:blank")return"*";try{const{origin:w}=new URL(M);return w==="null"||!w?M:w}catch{const{origin:y}=new URL(M,document.baseURI);return y}},j=(M,w=[])=>{const y=w||[];return M&&M.forEach?M.forEach(x=>{j(x,y)}):typeof M<"u"&&y.push(M),y},P=M=>typeof M?._toJSON=="function";function E(M){return typeof M=="function"}const C=M=>M?.id??M;class T{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#n;#e;constructor(w){const{guestId:y,domElement:x=null,title:R,url:A,window:I,searchParams:$={},openMode:ne=h.Embed,remoting:k,analyticsObj:H}=w;this.id=y,this.title=R,this.url=A,this.origin=v(A),this.searchParams=$,this.domElement=x,this.window=I,this.openMode=ne,this.capabilities={},this.#e=H,this.#n=k}dispose=()=>{if(this.openMode===h.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#n.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(w=>{let y=0;const x=5,R=setInterval(()=>{y>=x?(clearInterval(R),w(!1)):(this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HandShake,messageBody:{}}),y+=1)},1e3);this.#n.listen({messageType:t.G.HandShakeAck,callback:()=>{clearInterval(R),w(!0)}})});init=()=>{this.#n.addSender({origin:this.origin,window:this.window}),this.openMode===h.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(w,y)=>(this.#e.startTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{}),this.#n.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.ObjectEvent,messageBody:w,responseTimeoutMs:y}).finally(()=>{this.#e.endTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{})}));send=w=>{this.#n.send({targetWin:this.window,targetOrigin:this.origin,...w})}}const D=[g.AllowScripts,g.AllowPopups,g.AllowModals,g.AllowForms,g.AllowDownloads,g.AllowSameOrigin];class O{hostId;#n;#e;#t;#o;#r=new Map;#s=new Map;#a;#m=null;#i=null;#u=null;#l=null;constructor(w,y){if(this.hostId=w,!y?.logger)throw new Error("Logger is required");if(!y?.analyticsObj)throw new Error("Analytics object is required");if(this.#t=y.logger,this.#o=y.analyticsObj,this.#e=(0,r.A)(),this.#n=new n.K(this.#t,this.#e),y?.readyStateCallback&&typeof y?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#m=y?.readyStateCallback||null,this.#u=y?.onGuestEventSubscribe||null,this.#l=y?.onGuestEventUnsubscribe||null,this.#a=new o.qE,this.#n.initialize(window),this.#R(),window.addEventListener("beforeunload",this.#h),this.#F(),this.#t.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#e}`)}#c=(w,y)=>{const x={event:w,...y};this.#o.sendBAEvent(x).catch(()=>{})};#g=(w,y)=>{this.#o.startTiming(w,y).catch(()=>{})};#d=(w,y)=>{this.#o.endTiming(w,y).catch(()=>{})};#h=()=>{for(const w of this.#r.values())w.openMode===h.Popup&&this.unloadGuest(w.id)};#p=w=>Array.from(this.#r.values()).find(y=>y.window===w);#_=w=>{for(const y of this.#r.values())if(y.url===w)return y;return null};#x=w=>typeof w?._toJSON=="function";#y=(w,y)=>this.#x(w)?(this.#a.has(w?.id,y)||this.#a.addScriptingObject(w,y?{guestId:y?.id}:{}),{type:"object",object:w._toJSON()}):{type:"value",value:w};#v=w=>typeof w=="string"?w:w instanceof Error?w.message:"An unexpected error occurred in the host application";#f=w=>{w.ready&&this.#n.send({targetWin:w.window,targetOrigin:w.origin,messageType:t.G.HostConfig,messageBody:{logLevel:this.#t.getLogLevel(),...w.getInfo()}})};#b=({guest:w,obj:y,functionName:x,functionParams:R})=>{const A=y[x];return E(A)?(this.#t.debug(`Invoking host implementation of ${y.id}.${String(x)}()`),new Promise(I=>{Object.defineProperty(A,"callContext",{value:{guest:w},configurable:!0,enumerable:!0,writable:!0}),I(A(...R))})):(this.#t.warn(`Attempt to call invalid function on object type ${y.objectType}: ${String(x)}`),Promise.reject(new Error(`Method '${x}' not found in Scripting Object '${y.id}'`)))};#j=({sourceWin:w,sourceOrigin:y,requestId:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received ready event for unknown guest. requestId: ${x}`);return}if(!R.initialized){this.#t.warn("Guest must be initialized before it is marked as ready"),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:"Guest must be initialized before it is marked as ready"});return}if(!R.ready){R.ready=!0;const A=R.getInfo();this.#d("SSF.Guest.Load",{appId:A.guestId,appUrl:A.guestUrl}),this.#f(R),this.#m?.(R),this.#t.audit({message:"Guest is ready",...A})}};#w=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const A=this.#p(w);if(!A){this.#t.warn(`Received ready event for unknown guest. requestid = ${x}`);return}A.initialized||(A.initialized=!0,A.capabilities=R||{},this.#t.audit({message:"Guest is initialized",...A.getInfo()})),(!R||!R.onReady)&&this.#j({sourceWin:w,sourceOrigin:y,requestId:x,type:"",body:null})};#E=async({sourceWin:w})=>{if(w?.window){const y=this.#I(w);y&&!await y.handShake()&&this.unloadGuest(w)}};#A=({sourceWin:w,sourceOrigin:y,requestId:x})=>{this.#t.debug(`Processing listObjects request. requestId = ${x}`);const R=this.#p(w);if(!R)return this.#t.warn("Rejected object request from unknown guest window"),!1;const A=this.#a.listScriptingObjects(R.id);return this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:A}),this.#t.audit({message:"name of scripting objects returned",requestId:x,objects:A,...R.getInfo()}),!0};#S=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R;this.#t.debug(`Processing getObject request for object ${A}. requestId = ${x}`);const I=this.#p(w);if(!I)return this.#t.warn("Rejected object request from unknown guest window"),!1;const $=this.getScriptingObject(A,{guest:I});return $?(this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y($,I)}),this.#t.audit({message:"Scripting Object returned",requestId:x,scriptingObject:A,...I.getInfo()}),!0):(this.#t.warn(`unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1)};#C=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,criteria:A,token:I}=x;this.#t.debug(`Processing guest event subscribe request for event ${R}. requestId = ${y}`);const $=this.#p(w);if(!$){this.#t.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:$.id,eventId:R,criteria:A,token:I})}catch{}},0)};#O=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,token:A}=x;this.#t.debug(`Processing guest event unsubscribe request for event ${R}. requestId = ${y}`);const I=this.#p(w);if(!I){this.#t.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#l?.({guestId:I.id,eventId:R,token:A})}catch{}},0)};#T=({sourceWin:w,requestId:y,body:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received resize event from unknown guest. requestid = ${y}`);return}R.domElement&&(R.domElement.style.height=`${x.height}px`),this.#t.debug(`Guest ${R.id} resized to ${x.width}x${x.height}`)};#P=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R,I=this.#p(w);if(!I)return this.#t.warn("Rejected method invocation request from unknown guest window"),!1;this.#t.debug(`Function ${A}.${String(R.functionName)}() called from guest "${I.id}" (requestId = ${x})`);const $=this.getScriptingObject(A,{guest:I});if(!$)return this.#t.warn(`Invocation of unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1;const ne=I.getInfo();return this.#g(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl}),this.#b({guest:I,obj:$,functionName:R.functionName,functionParams:R.functionParams}).then(k=>{this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y(k,I)}),this.#t.audit({message:"Value returned for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).catch(k=>{this.#n.raiseException({targetWin:w,targetOrigin:I.origin,requestId:x,ex:k}),this.#t.audit({message:"Exception thrown for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).finally(()=>{this.#d(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl})}),!0};#D=()=>{this.#n.listen({messageType:t.G.GuestResize,callback:this.#T})};#R=()=>{this.#n.listen({messageType:t.G.GuestReady,callback:this.#w}),this.#n.listen({messageType:t.G.GuestReadyComplete,callback:this.#j}),this.#n.listen({messageType:t.G.GuestClose,callback:this.#E}),this.#n.listen({messageType:t.G.ListObjects,callback:this.#A}),this.#n.listen({messageType:t.G.ObjectGet,callback:this.#S}),this.#n.listen({messageType:t.G.ObjectInvoke,callback:this.#P}),this.#n.listen({messageType:t.G.GuestEventSubscribe,callback:this.#C}),this.#n.listen({messageType:t.G.GuestEventUnsubscribe,callback:this.#O})};#k=w=>w instanceof i.b3||typeof w?.subscribe=="function";#M=w=>{const y=new T({...w,remoting:this.#n,analyticsObj:this.#o});return y.init(),this.#r.set(w.guestId,y),y};#I=w=>{let y=typeof w=="string"?this.#r.get(w):null;return y||(y=Array.from(this.#r.values()).find(x=>x.window===w||x.domElement===w)),y};#F=()=>{this.#i=setInterval(()=>{const w=[];this.#r.forEach(y=>{y.openMode===h.Popup&&y.window.closed&&w.push(y)}),w.forEach(y=>{const{id:x}=y;this.unloadGuest(x),this.#s.get(x)?.forEach(A=>{A({id:x}).catch(()=>{})})})},1e3)};#L=w=>{const{url:y,title:x,popupWindowFeatures:R={},searchParams:A,guestId:I,onLoad:$,onError:ne}=w,{width:k=800,height:H=600,top:N=100,left:Y=100}=R;let ie=this.#_(y);if(ie)ie.window.closed||ie.send({messageType:t.G.GuestFocus,messageBody:{}});else{const V=[{key:"width",value:k},{key:"height",value:H},{key:"top",value:N},{key:"left",value:Y}].reduce((G,q,re)=>(re>0&&q.value&&(G+=","),q.value?`${G}${q.key}=${q.value}`:G),""),U=window.open(y,x,`popup, ${V}`);if(U)try{setTimeout(()=>{$?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${G.message}`)}else{try{setTimeout(()=>{ne?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${G.message}`)}throw new Error("Failed to open guest application in popup window")}U.opener=null,ie=this.#M({guestId:I,window:U,title:x,url:y,searchParams:A,openMode:h.Popup})}return ie};#N=w=>{const{url:y,title:x,targetElement:R,searchParams:A,guestId:I,onLoad:$,onError:ne,options:k={}}=w,H=R.ownerDocument??document,{fitToContent:N=!1,disableSandbox:Y=!1,sandboxValues:ie=[],customSandboxValues:V=[],style:U="",permissionPolicy:G=""}=k;if(!x)throw new Error("title is required");N&&this.#D();const q=H.createElement("iframe");q.setAttribute("id",I);const re=()=>{setTimeout(()=>{try{$?.(I)}catch(Ae){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${Ae.message}`)}},0),this.#t.debug(`frame loaded for guest with id '${I}'`),q.removeEventListener("load",re)},ee=()=>{setTimeout(()=>{try{ne?.(I)}catch(Ae){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${Ae.message}`)}},0),this.#t.error(`frame load failed for guest with id '${I}'`),q.removeEventListener("error",ee)};q.addEventListener("load",re),q.addEventListener("error",ee),q.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${U}`),Y||q.setAttribute("sandbox",V.length>0?V.join(" "):[...D,...ie].join(" ")),q.setAttribute("title",x),q.setAttribute("src",y),G&&q.setAttribute("allow",G),R.appendChild(q);const de=H.getElementById(I);return this.#M({guestId:I,domElement:de,window:de.contentWindow,title:x,url:y,searchParams:A,openMode:h.Embed})};#B=(w,y)=>{let x="";return Object.keys(y).forEach(R=>{x+=`${(x.length?"&":"")+encodeURIComponent(R)}=${encodeURIComponent(y[R])}`}),w+(x?(w.indexOf("?")>=0?"&":"?")+x:"")};addScriptingObject=(w,y)=>{if((0,c.h)(w)){const x=this.cloneScriptingObject(w);this.#a.addScriptingObject(x,y)}else this.#a.addScriptingObject(w,y)};cloneScriptingObject=w=>{if(!w)throw new Error("proxy is required");const y=new l.P(w.id,w.objectType);let x=[];return Object.keys(w).forEach(R=>{const A=w[R];if(this.#k(A)){const I=new i.Jh({name:A.name||R,objectId:y.id});if(Object.defineProperty(y,R,{value:I,enumerable:!0}),A instanceof i.b3){const $=({eventParams:k,eventOptions:H})=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}),ne=A.subscribe($);x.push(()=>{A.unsubscribe(ne)})}else{const $=A.subscribe?.((ne,k,H)=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}));x.push(()=>{A.unsubscribe?.($)})}}else if(E(A)&&(Object.defineProperty(y,R,{value:async(...I)=>{const $=await A(...I);return(0,c.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),R==="dispose")){const I=y.dispose;Object.defineProperty(y,R,{value:()=>(y._dispose(),I.apply(y)),enumerable:!0})}}),y._dispose=()=>{x.forEach(R=>{R?.()}),x=[]},y};close=()=>{clearInterval(this.#i),this.#h(),this.#n.close(),window.removeEventListener("beforeunload",this.#h),this.#t.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#e}`)};dispatchEvent=async w=>{const{event:{id:y,name:x},eventParams:R,eventOptions:A={}}=w,{eventHandler:I=null,timeout:$=null,window:ne=null,guestId:k}=A,H=y.split(".")[0],N=k||ne,Y=N?this.#I(N):null,ie=Y?this.getScriptingObject(H,{guest:Y}):this.getScriptingObject(H);if(!ie)return this.#t.warn(`Attempt to dispatch event ${x} on unknown object ${H}`),Promise.resolve([]);const V={object:ie._toJSON(),eventName:x,eventParams:R,eventHandler:I,eventOptions:{allowsFeedback:!1}};$&&!Number.isNaN($)&&(V.eventOptions={allowsFeedback:!0,timeout:Number($)});const U=[];let G=!1;return this.#r.forEach(re=>{const ee=re.getInfo();(!ne||ne===re.window)&&($&&re?.capabilities?.eventFeedback?(U.push(re.dispatchEvent(V,$)),G||(this.#g(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href}),G=!0),this.#t.audit({message:"Event dispatched and awaiting feedback",scriptingEventId:y,...ee})):(re.send({messageType:t.G.ObjectEvent,messageBody:V}),this.#t.audit({message:"Event dispatched",scriptingEventId:y,...ee})))}),await Promise.all(U).then(re=>(this.#t.audit({message:"Event feedback received",scriptingEventId:y}),j(re))).catch(re=>{throw this.#t.error({message:"Error processing event",eventId:y,exception:re}),re}).finally(()=>{G&&this.#d(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>{const w=[];return this.#r.forEach(y=>{w.push(y)}),w};getScriptingObject=(w,y)=>this.#a.getObject(w,y?.guest);loadGuest=w=>{const{id:y,url:x,targetElement:R,title:A,searchParams:I={},onLoad:$,onError:ne,options:k={}}=w;if(!y)throw new Error("id for guest application is required");const{openMode:H=h.Embed,popupWindowFeatures:N={}}=k,Y=this.#B(x,I);let ie=null;if(this.#g("SSF.Guest.Load",{appId:y,appUrl:Y}),H===h.Popup)ie=this.#L({guestId:y,url:Y,title:A,searchParams:I,popupWindowFeatures:N,onLoad:$,onError:ne});else if(H===h.Embed)ie=this.#N({guestId:y,url:Y,title:A,targetElement:R,searchParams:I,onLoad:$,onError:ne,options:k});else throw new Error(`Invalid openMode: ${H}`);return this.#t.audit({message:"Guest loaded",...ie.getInfo()}),ie};loadGuests=w=>{const{id:y,url:x,targetElement:R,title:A,searchParamsList:I=[],options:$={}}=w;I.forEach((ne,k)=>{this.loadGuest({id:`${y}-${k}`,url:x,title:A,targetElement:R,searchParams:ne,options:$})},this)};removeAllScriptingObjects=w=>{this.#a.removeAllScriptingObjects(w)};removeScriptingObject=(w,y)=>{this.#a.removeScriptingObject(w,y)};setLogLevel=w=>{this.#t.setLogLevel(w),this.#r.forEach(this.#f),this.#t.debug("Dispatched config events to all guests")};unloadGuest=w=>{const y=this.#I(w);y&&(y.dispose(),this.#r.delete(y.id),this.#t.audit({message:"Guest is removed from host",...y.getInfo()}))};onGuestClose=w=>{const{id:y,guestCloseCallback:x}=w,R=this.#s.get(y)||[];R.push(x),this.#s.set(y,R)}}},"./node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>r});function r(n){var o=Object.create(null);return function(t){return o[t]===void 0&&(o[t]=n(t)),o[t]}}},"./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/query/rtk-query.esm.js":(u,m,e)=>{"use strict";e.d(m,{$k:()=>Ze});var r=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"),n=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.js"),o="NOT_FOUND";function t(Qe){var Xn;return{get:function(ln){return Xn&&Qe(Xn.key,ln)?Xn.value:o},put:function(ln,Jn){Xn={key:ln,value:Jn}},getEntries:function(){return Xn?[Xn]:[]},clear:function(){Xn=void 0}}}function i(Qe,Xn){var Yn=[];function ln(Rt){var at=Yn.findIndex(function(Wt){return Xn(Rt,Wt.key)});if(at>-1){var Bt=Yn[at];return at>0&&(Yn.splice(at,1),Yn.unshift(Bt)),Bt.value}return o}function Jn(Rt,at){ln(Rt)===o&&(Yn.unshift({key:Rt,value:at}),Yn.length>Qe&&Yn.pop())}function bn(){return Yn}function Zn(){Yn=[]}return{get:ln,put:Jn,getEntries:bn,clear:Zn}}var c=function(Xn,Yn){return Xn===Yn};function l(Qe){return function(Yn,ln){if(Yn===null||ln===null||Yn.length!==ln.length)return!1;for(var Jn=Yn.length,bn=0;bn<Jn;bn++)if(!Qe(Yn[bn],ln[bn]))return!1;return!0}}function h(Qe,Xn){var Yn=typeof Xn=="object"?Xn:{equalityCheck:Xn},ln=Yn.equalityCheck,Jn=ln===void 0?c:ln,bn=Yn.maxSize,Zn=bn===void 0?1:bn,Rt=Yn.resultEqualityCheck,at=l(Jn),Bt=Zn===1?t(at):i(Zn,at);function Wt(){var b=Bt.get(arguments);if(b===o){if(b=Qe.apply(null,arguments),Rt){var J=Bt.getEntries(),we=J.find(function(Ie){return Rt(Ie.value,b)});we&&(b=we.value)}Bt.put(arguments,b)}return b}return Wt.clearCache=function(){return Bt.clear()},Wt}function g(Qe){var Xn=Array.isArray(Qe[0])?Qe[0]:Qe;if(!Xn.every(function(ln){return typeof ln=="function"})){var Yn=Xn.map(function(ln){return typeof ln=="function"?"function "+(ln.name||"unnamed")+"()":typeof ln}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+Yn+"]")}return Xn}function v(Qe){for(var Xn=arguments.length,Yn=new Array(Xn>1?Xn-1:0),ln=1;ln<Xn;ln++)Yn[ln-1]=arguments[ln];var Jn=function(){for(var Zn=arguments.length,Rt=new Array(Zn),at=0;at<Zn;at++)Rt[at]=arguments[at];var Bt=0,Wt,b={memoizeOptions:void 0},J=Rt.pop();if(typeof J=="object"&&(b=J,J=Rt.pop()),typeof J!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof J+"]");var we=b,Ie=we.memoizeOptions,On=Ie===void 0?Yn:Ie,dn=Array.isArray(On)?On:[On],Q=g(Rt),pe=Qe.apply(void 0,[function(){return Bt++,J.apply(null,arguments)}].concat(dn)),ge=Qe(function(){for(var ke=[],Je=Q.length,Mn=0;Mn<Je;Mn++)ke.push(Q[Mn].apply(null,arguments));return Wt=pe.apply(null,ke),Wt});return Object.assign(ge,{resultFunc:J,memoizedResultFunc:pe,dependencies:Q,lastResult:function(){return Wt},recomputations:function(){return Bt},resetRecomputations:function(){return Bt=0}}),ge};return Jn}var j=v(h),P=function(Xn,Yn){if(Yn===void 0&&(Yn=j),typeof Xn!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof Xn));var ln=Object.keys(Xn),Jn=Yn(ln.map(function(bn){return Xn[bn]}),function(){for(var bn=arguments.length,Zn=new Array(bn),Rt=0;Rt<bn;Rt++)Zn[Rt]=arguments[Rt];return Zn.reduce(function(at,Bt,Wt){return at[ln[Wt]]=Bt,at},{})});return Jn},E=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),C=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),T=function(Qe,Xn){var Yn={label:0,sent:function(){if(bn[0]&1)throw bn[1];return bn[1]},trys:[],ops:[]},ln,Jn,bn,Zn;return Zn={next:Rt(0),throw:Rt(1),return:Rt(2)},typeof Symbol=="function"&&(Zn[Symbol.iterator]=function(){return this}),Zn;function Rt(Bt){return function(Wt){return at([Bt,Wt])}}function at(Bt){if(ln)throw new TypeError("Generator is already executing.");for(;Yn;)try{if(ln=1,Jn&&(bn=Bt[0]&2?Jn.return:Bt[0]?Jn.throw||((bn=Jn.return)&&bn.call(Jn),0):Jn.next)&&!(bn=bn.call(Jn,Bt[1])).done)return bn;switch(Jn=0,bn&&(Bt=[Bt[0]&2,bn.value]),Bt[0]){case 0:case 1:bn=Bt;break;case 4:return Yn.label++,{value:Bt[1],done:!1};case 5:Yn.label++,Jn=Bt[1],Bt=[0];continue;case 7:Bt=Yn.ops.pop(),Yn.trys.pop();continue;default:if(bn=Yn.trys,!(bn=bn.length>0&&bn[bn.length-1])&&(Bt[0]===6||Bt[0]===2)){Yn=0;continue}if(Bt[0]===3&&(!bn||Bt[1]>bn[0]&&Bt[1]<bn[3])){Yn.label=Bt[1];break}if(Bt[0]===6&&Yn.label<bn[1]){Yn.label=bn[1],bn=Bt;break}if(bn&&Yn.label<bn[2]){Yn.label=bn[2],Yn.ops.push(Bt);break}bn[2]&&Yn.ops.pop(),Yn.trys.pop();continue}Bt=Xn.call(Qe,Yn)}catch(Wt){Bt=[6,Wt],Jn=0}finally{ln=bn=0}if(Bt[0]&5)throw Bt[1];return{value:Bt[0]?Bt[1]:void 0,done:!0}}},D=function(Qe,Xn){for(var Yn=0,ln=Xn.length,Jn=Qe.length;Yn<ln;Yn++,Jn++)Qe[Jn]=Xn[Yn];return Qe},O=Object.defineProperty,M=Object.defineProperties,w=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,A=function(Qe,Xn,Yn){return Xn in Qe?O(Qe,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):Qe[Xn]=Yn},I=function(Qe,Xn){for(var Yn in Xn||(Xn={}))x.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn]);if(y)for(var ln=0,Jn=y(Xn);ln<Jn.length;ln++){var Yn=Jn[ln];R.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn])}return Qe},$=function(Qe,Xn){return M(Qe,w(Xn))},ne=function(Qe,Xn){var Yn={};for(var ln in Qe)x.call(Qe,ln)&&Xn.indexOf(ln)<0&&(Yn[ln]=Qe[ln]);if(Qe!=null&&y)for(var Jn=0,bn=y(Qe);Jn<bn.length;Jn++){var ln=bn[Jn];Xn.indexOf(ln)<0&&R.call(Qe,ln)&&(Yn[ln]=Qe[ln])}return Yn},k=function(Qe,Xn,Yn){return new Promise(function(ln,Jn){var bn=function(at){try{Rt(Yn.next(at))}catch(Bt){Jn(Bt)}},Zn=function(at){try{Rt(Yn.throw(at))}catch(Bt){Jn(Bt)}},Rt=function(at){return at.done?ln(at.value):Promise.resolve(at.value).then(bn,Zn)};Rt((Yn=Yn.apply(Qe,Xn)).next())})},H;(function(Qe){Qe.uninitialized="uninitialized",Qe.pending="pending",Qe.fulfilled="fulfilled",Qe.rejected="rejected"})(H||(H={}));function N(Qe){return{status:Qe,isUninitialized:Qe===H.uninitialized,isLoading:Qe===H.pending,isSuccess:Qe===H.fulfilled,isError:Qe===H.rejected}}function Y(Qe){return new RegExp("(^|:)//").test(Qe)}var ie=function(Qe){return Qe.replace(/\/$/,"")},V=function(Qe){return Qe.replace(/^\//,"")};function U(Qe,Xn){if(!Qe)return Xn;if(!Xn)return Qe;if(Y(Xn))return Xn;var Yn=Qe.endsWith("/")||!Xn.startsWith("?")?"/":"";return Qe=ie(Qe),Xn=V(Xn),""+Qe+Yn+Xn}var G=function(Qe){return[].concat.apply([],Qe)};function q(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function re(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var ee=r.Qd;function de(Qe,Xn){if(Qe===Xn||!(ee(Qe)&&ee(Xn)||Array.isArray(Qe)&&Array.isArray(Xn)))return Xn;for(var Yn=Object.keys(Xn),ln=Object.keys(Qe),Jn=Yn.length===ln.length,bn=Array.isArray(Xn)?[]:{},Zn=0,Rt=Yn;Zn<Rt.length;Zn++){var at=Rt[Zn];bn[at]=de(Qe[at],Xn[at]),Jn&&(Jn=Qe[at]===bn[at])}return Jn?Qe:bn}var Ae=function(){for(var Qe=[],Xn=0;Xn<arguments.length;Xn++)Qe[Xn]=arguments[Xn];return fetch.apply(void 0,Qe)},be=function(Qe){return Qe.status>=200&&Qe.status<=299},Ce=function(Qe){return/ion\/(vnd\.api\+)?json/.test(Qe.get("content-type")||"")};function qe(Qe){if(!isPlainObject2(Qe))return Qe;for(var Xn=I({},Qe),Yn=0,ln=Object.entries(Xn);Yn<ln.length;Yn++){var Jn=ln[Yn],bn=Jn[0],Zn=Jn[1];Zn===void 0&&delete Xn[bn]}return Xn}function je(Qe){var Xn=this;Qe===void 0&&(Qe={});var Yn=Qe,ln=Yn.baseUrl,Jn=Yn.prepareHeaders,bn=Jn===void 0?function(ge){return ge}:Jn,Zn=Yn.fetchFn,Rt=Zn===void 0?Ae:Zn,at=Yn.paramsSerializer,Bt=Yn.isJsonContentType,Wt=Bt===void 0?Ce:Bt,b=Yn.jsonContentType,J=b===void 0?"application/json":b,we=Yn.jsonReplacer,Ie=Yn.timeout,On=Yn.responseHandler,dn=Yn.validateStatus,Q=ne(Yn,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&Rt===Ae&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(ge,De){return k(Xn,null,function(){var ke,Je,Mn,Kn,An,Wn,nt,mt,$t,Xt,Fe,yn,Dn,Qn,It,Ct,St,ir,Cr,cr,Yt,nr,jr,wr,gt,hr,ur,Ur,vr,Lr,Ar,xo,Jr,Gr,Yr,oo;return T(this,function(Ao){switch(Ao.label){case 0:return ke=De.signal,Je=De.getState,Mn=De.extra,Kn=De.endpoint,An=De.forced,Wn=De.type,mt=typeof ge=="string"?{url:ge}:ge,$t=mt.url,Xt=mt.headers,Fe=Xt===void 0?new Headers(Q.headers):Xt,yn=mt.params,Dn=yn===void 0?void 0:yn,Qn=mt.responseHandler,It=Qn===void 0?On??"json":Qn,Ct=mt.validateStatus,St=Ct===void 0?dn??be:Ct,ir=mt.timeout,Cr=ir===void 0?Ie:ir,cr=ne(mt,["url","headers","params","responseHandler","validateStatus","timeout"]),Yt=I($(I({},Q),{signal:ke}),cr),Fe=new Headers(qe(Fe)),nr=Yt,[4,bn(Fe,{getState:Je,extra:Mn,endpoint:Kn,forced:An,type:Wn})];case 1:nr.headers=Ao.sent()||Fe,jr=function(ss){return typeof ss=="object"&&(isPlainObject2(ss)||Array.isArray(ss)||typeof ss.toJSON=="function")},!Yt.headers.has("content-type")&&jr(Yt.body)&&Yt.headers.set("content-type",J),jr(Yt.body)&&Wt(Yt.headers)&&(Yt.body=JSON.stringify(Yt.body,we)),Dn&&(wr=~$t.indexOf("?")?"&":"?",gt=at?at(Dn):new URLSearchParams(qe(Dn)),$t+=wr+gt),$t=U(ln,$t),hr=new Request($t,Yt),ur=new Request($t,Yt),nt={request:ur},vr=!1,Lr=Cr&&setTimeout(function(){vr=!0,De.abort()},Cr),Ao.label=2;case 2:return Ao.trys.push([2,4,5,6]),[4,Rt(hr)];case 3:return Ur=Ao.sent(),[3,6];case 4:return Ar=Ao.sent(),[2,{error:{status:vr?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Ar)},meta:nt}];case 5:return Lr&&clearTimeout(Lr),[7];case 6:xo=Ur.clone(),nt.response=xo,Gr="",Ao.label=7;case 7:return Ao.trys.push([7,9,,10]),[4,Promise.all([pe(Ur,It).then(function(ss){return Jr=ss},function(ss){return Yr=ss}),xo.text().then(function(ss){return Gr=ss},function(){})])];case 8:if(Ao.sent(),Yr)throw Yr;return[3,10];case 9:return oo=Ao.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Ur.status,data:Gr,error:String(oo)},meta:nt}];case 10:return[2,St(Ur,Jr)?{data:Jr,meta:nt}:{error:{status:Ur.status,data:Jr},meta:nt}]}})})};function pe(ge,De){return k(this,null,function(){var ke;return T(this,function(Je){switch(Je.label){case 0:return typeof De=="function"?[2,De(ge)]:(De==="content-type"&&(De=Wt(ge.headers)?"json":"text"),De!=="json"?[3,2]:[4,ge.text()]);case 1:return ke=Je.sent(),[2,ke.length?JSON.parse(ke):null];case 2:return[2,ge.text()]}})})}}var Ge=function(){function Qe(Xn,Yn){Yn===void 0&&(Yn=void 0),this.value=Xn,this.meta=Yn}return Qe}();function un(Qe,Xn){return Qe===void 0&&(Qe=0),Xn===void 0&&(Xn=5),k(this,null,function(){var Yn,ln;return T(this,function(Jn){switch(Jn.label){case 0:return Yn=Math.min(Qe,Xn),ln=~~((Math.random()+.4)*(300<<Yn)),[4,new Promise(function(bn){return setTimeout(function(Zn){return bn(Zn)},ln)})];case 1:return Jn.sent(),[2]}})})}function cn(Qe){throw Object.assign(new Ge({error:Qe}),{throwImmediately:!0})}var Ln={},Nn=function(Qe,Xn){return function(Yn,ln,Jn){return k(void 0,null,function(){var bn,Zn,Rt,at,Bt,Wt,b;return T(this,function(J){switch(J.label){case 0:bn=[5,(Xn||Ln).maxRetries,(Jn||Ln).maxRetries].filter(function(we){return we!==void 0}),Zn=bn.slice(-1)[0],Rt=function(we,Ie,On){var dn=On.attempt;return dn<=Zn},at=I(I({maxRetries:Zn,backoff:un,retryCondition:Rt},Xn),Jn),Bt=0,J.label=1;case 1:J.label=2;case 2:return J.trys.push([2,4,,6]),[4,Qe(Yn,ln,Jn)];case 3:if(Wt=J.sent(),Wt.error)throw new Ge(Wt);return[2,Wt];case 4:if(b=J.sent(),Bt++,b.throwImmediately){if(b instanceof Ge)return[2,b.value];throw b}return b instanceof Ge&&!at.retryCondition(b.value.error,Yn,{attempt:Bt,baseQueryApi:ln,extraOptions:Jn})?[2,b.value]:[4,at.backoff(Bt,at.maxRetries)];case 5:return J.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},In=Object.assign(Nn,{fail:cn}),qn=(0,r.VP)("__rtkq/focused"),jn=(0,r.VP)("__rtkq/unfocused"),ht=(0,r.VP)("__rtkq/online"),wn=(0,r.VP)("__rtkq/offline"),st=!1;function Ze(Qe,Xn){function Yn(){var ln=function(){return Qe(qn())},Jn=function(){return Qe(jn())},bn=function(){return Qe(ht())},Zn=function(){return Qe(wn())},Rt=function(){window.document.visibilityState==="visible"?ln():Jn()};st||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",Rt,!1),window.addEventListener("focus",ln,!1),window.addEventListener("online",bn,!1),window.addEventListener("offline",Zn,!1),st=!0);var at=function(){window.removeEventListener("focus",ln),window.removeEventListener("visibilitychange",Rt),window.removeEventListener("online",bn),window.removeEventListener("offline",Zn),st=!1};return at}return Xn?Xn(Qe,{onFocus:qn,onFocusLost:jn,onOffline:wn,onOnline:ht}):Yn()}var rt;(function(Qe){Qe.query="query",Qe.mutation="mutation"})(rt||(rt={}));function At(Qe){return Qe.type===rt.query}function yt(Qe){return Qe.type===rt.mutation}function Bn(Qe,Xn,Yn,ln,Jn,bn){return wt(Qe)?Qe(Xn,Yn,ln,Jn).map(an).map(bn):Array.isArray(Qe)?Qe.map(an).map(bn):[]}function wt(Qe){return typeof Qe=="function"}function an(Qe){return typeof Qe=="string"?{type:Qe}:Qe}function En(Qe){return Qe!=null}var ft=Symbol("forceQueryFn"),tn=function(Qe){return typeof Qe[ft]=="function"};function te(Qe){var Xn=Qe.serializeQueryArgs,Yn=Qe.queryThunk,ln=Qe.mutationThunk,Jn=Qe.api,bn=Qe.context,Zn=new Map,Rt=new Map,at=Jn.internalActions,Bt=at.unsubscribeQueryResult,Wt=at.removeMutationResult,b=at.updateSubscriptionOptions;return{buildInitiateQuery:ge,buildInitiateMutation:De,getRunningQueryThunk:Ie,getRunningMutationThunk:On,getRunningQueriesThunk:dn,getRunningMutationsThunk:Q,getRunningOperationPromises:we,removalWarning:J};function J(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
1414
1414
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
|
1415
1415
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function we(){typeof C<"u";var ke=function(Je){return Array.from(Je.values()).flatMap(function(Mn){return Mn?Object.values(Mn):[]})};return D(D([],ke(Zn)),ke(Rt)).filter(En)}function Ie(ke,Je){return function(Mn){var Kn,An=bn.endpointDefinitions[ke],Wn=Xn({queryArgs:Je,endpointDefinition:An,endpointName:ke});return(Kn=Zn.get(Mn))==null?void 0:Kn[Wn]}}function On(ke,Je){return function(Mn){var Kn;return(Kn=Rt.get(Mn))==null?void 0:Kn[Je]}}function dn(){return function(ke){return Object.values(Zn.get(ke)||{}).filter(En)}}function Q(){return function(ke){return Object.values(Rt.get(ke)||{}).filter(En)}}function pe(ke){if(!1)var Je}function ge(ke,Je){var Mn=function(Kn,An){var Wn=An===void 0?{}:An,nt=Wn.subscribe,mt=nt===void 0?!0:nt,$t=Wn.forceRefetch,Xt=Wn.subscriptionOptions,Fe=ft,yn=Wn[Fe];return function(Dn,Qn){var It,Ct,St=Xn({queryArgs:Kn,endpointDefinition:Je,endpointName:ke}),ir=Yn((It={type:"query",subscribe:mt,forceRefetch:$t,subscriptionOptions:Xt,endpointName:ke,originalArgs:Kn,queryCacheKey:St},It[ft]=yn,It)),Cr=Jn.endpoints[ke].select(Kn),cr=Dn(ir),Yt=Cr(Qn());pe(Dn);var nr=cr.requestId,jr=cr.abort,wr=Yt.requestId!==nr,gt=(Ct=Zn.get(Dn))==null?void 0:Ct[St],hr=function(){return Cr(Qn())},ur=Object.assign(yn?cr.then(hr):wr&&!gt?Promise.resolve(Yt):Promise.all([gt,cr]).then(hr),{arg:Kn,requestId:nr,subscriptionOptions:Xt,queryCacheKey:St,abort:jr,unwrap:function(){return k(this,null,function(){var vr;return T(this,function(Lr){switch(Lr.label){case 0:return[4,ur];case 1:if(vr=Lr.sent(),vr.isError)throw vr.error;return[2,vr.data]}})})},refetch:function(){return Dn(Mn(Kn,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){mt&&Dn(Bt({queryCacheKey:St,requestId:nr}))},updateSubscriptionOptions:function(vr){ur.subscriptionOptions=vr,Dn(b({endpointName:ke,requestId:nr,queryCacheKey:St,options:vr}))}});if(!gt&&!wr&&!yn){var Ur=Zn.get(Dn)||{};Ur[St]=ur,Zn.set(Dn,Ur),ur.then(function(){delete Ur[St],Object.keys(Ur).length||Zn.delete(Dn)})}return ur}};return Mn}function De(ke){return function(Je,Mn){var Kn=Mn===void 0?{}:Mn,An=Kn.track,Wn=An===void 0?!0:An,nt=Kn.fixedCacheKey;return function(mt,$t){var Xt=ln({type:"mutation",endpointName:ke,originalArgs:Je,track:Wn,fixedCacheKey:nt}),Fe=mt(Xt);pe(mt);var yn=Fe.requestId,Dn=Fe.abort,Qn=Fe.unwrap,It=Fe.unwrap().then(function(Cr){return{data:Cr}}).catch(function(Cr){return{error:Cr}}),Ct=function(){mt(Wt({requestId:yn,fixedCacheKey:nt}))},St=Object.assign(It,{arg:Fe.arg,requestId:yn,abort:Dn,unwrap:Qn,unsubscribe:Ct,reset:Ct}),ir=Rt.get(mt)||{};return Rt.set(mt,ir),ir[yn]=St,St.then(function(){delete ir[yn],Object.keys(ir).length||Rt.delete(mt)}),nt&&(ir[nt]=St,St.then(function(){ir[nt]===St&&(delete ir[nt],Object.keys(ir).length||Rt.delete(mt))})),St}}}}function Xe(Qe){return Qe}function Ue(Qe){var Xn=this,Yn=Qe.reducerPath,ln=Qe.baseQuery,Jn=Qe.context.endpointDefinitions,bn=Qe.serializeQueryArgs,Zn=Qe.api,Rt=Qe.assertTagType,at=function(De,ke,Je,Mn){return function(Kn,An){var Wn=Jn[De],nt=bn({queryArgs:ke,endpointDefinition:Wn,endpointName:De});if(Kn(Zn.internalActions.queryResultPatched({queryCacheKey:nt,patches:Je})),!!Mn){var mt=Zn.endpoints[De].select(ke)(An()),$t=Bn(Wn.providesTags,mt.data,void 0,ke,{},Rt);Kn(Zn.internalActions.updateProvidedBy({queryCacheKey:nt,providedTags:$t}))}}},Bt=function(De,ke,Je,Mn){return Mn===void 0&&(Mn=!0),function(Kn,An){var Wn,nt,mt=Zn.endpoints[De],$t=mt.select(ke)(An()),Xt={patches:[],inversePatches:[],undo:function(){return Kn(Zn.util.patchQueryData(De,ke,Xt.inversePatches,Mn))}};if($t.status===H.uninitialized)return Xt;var Fe;if("data"in $t)if((0,n.a6)($t.data)){var yn=(0,n.vI)($t.data,Je),Dn=yn[0],Qn=yn[1],It=yn[2];(Wn=Xt.patches).push.apply(Wn,Qn),(nt=Xt.inversePatches).push.apply(nt,It),Fe=Dn}else Fe=Je($t.data),Xt.patches.push({op:"replace",path:[],value:Fe}),Xt.inversePatches.push({op:"replace",path:[],value:$t.data});return Kn(Zn.util.patchQueryData(De,ke,Xt.patches,Mn)),Xt}},Wt=function(De,ke,Je){return function(Mn){var Kn;return Mn(Zn.endpoints[De].initiate(ke,(Kn={subscribe:!1,forceRefetch:!0},Kn[ft]=function(){return{data:Je}},Kn)))}},b=function(De,ke){return k(Xn,[De,ke],function(Je,Mn){var Kn,An,Wn,nt,mt,$t,Xt,Fe,yn,Dn,Qn,It,Ct,St,ir,Cr,cr,Yt,nr=Mn.signal,jr=Mn.abort,wr=Mn.rejectWithValue,gt=Mn.fulfillWithValue,hr=Mn.dispatch,ur=Mn.getState,Ur=Mn.extra;return T(this,function(vr){switch(vr.label){case 0:Kn=Jn[Je.endpointName],vr.label=1;case 1:return vr.trys.push([1,8,,13]),An=Xe,Wn=void 0,nt={signal:nr,abort:jr,dispatch:hr,getState:ur,extra:Ur,endpoint:Je.endpointName,type:Je.type,forced:Je.type==="query"?J(Je,ur()):void 0},mt=Je.type==="query"?Je[ft]:void 0,mt?(Wn=mt(),[3,6]):[3,2];case 2:return Kn.query?[4,ln(Kn.query(Je.originalArgs),nt,Kn.extraOptions)]:[3,4];case 3:return Wn=vr.sent(),Kn.transformResponse&&(An=Kn.transformResponse),[3,6];case 4:return[4,Kn.queryFn(Je.originalArgs,nt,Kn.extraOptions,function(Lr){return ln(Lr,nt,Kn.extraOptions)})];case 5:Wn=vr.sent(),vr.label=6;case 6:if(typeof C<"u",Wn.error)throw new Ge(Wn.error,Wn.meta);return Qn=gt,[4,An(Wn.data,Wn.meta,Je.originalArgs)];case 7:return[2,Qn.apply(void 0,[vr.sent(),(cr={fulfilledTimeStamp:Date.now(),baseQueryMeta:Wn.meta},cr[r.cN]=!0,cr)])];case 8:if(It=vr.sent(),Ct=It,!(Ct instanceof Ge))return[3,12];St=Xe,Kn.query&&Kn.transformErrorResponse&&(St=Kn.transformErrorResponse),vr.label=9;case 9:return vr.trys.push([9,11,,12]),ir=wr,[4,St(Ct.value,Ct.meta,Je.originalArgs)];case 10:return[2,ir.apply(void 0,[vr.sent(),(Yt={baseQueryMeta:Ct.meta},Yt[r.cN]=!0,Yt)])];case 11:return Cr=vr.sent(),Ct=Cr,[3,12];case 12:throw typeof C<"u",console.error(Ct),Ct;case 13:return[2]}})})};function J(De,ke){var Je,Mn,Kn,An,Wn=(Mn=(Je=ke[Yn])==null?void 0:Je.queries)==null?void 0:Mn[De.queryCacheKey],nt=(Kn=ke[Yn])==null?void 0:Kn.config.refetchOnMountOrArgChange,mt=Wn?.fulfilledTimeStamp,$t=(An=De.forceRefetch)!=null?An:De.subscribe&&nt;return $t?$t===!0||(Number(new Date)-Number(mt))/1e3>=$t:!1}var we=(0,r.zD)(Yn+"/executeQuery",b,{getPendingMeta:function(){var De;return De={startedTimeStamp:Date.now()},De[r.cN]=!0,De},condition:function(De,ke){var Je=ke.getState,Mn,Kn,An,Wn=Je(),nt=(Kn=(Mn=Wn[Yn])==null?void 0:Mn.queries)==null?void 0:Kn[De.queryCacheKey],mt=nt?.fulfilledTimeStamp,$t=De.originalArgs,Xt=nt?.originalArgs,Fe=Jn[De.endpointName];return tn(De)?!0:nt?.status==="pending"?!1:J(De,Wn)||At(Fe)&&((An=Fe?.forceRefetch)!=null&&An.call(Fe,{currentArg:$t,previousArg:Xt,endpointState:nt,state:Wn}))?!0:!mt},dispatchConditionRejection:!0}),Ie=(0,r.zD)(Yn+"/executeMutation",b,{getPendingMeta:function(){var De;return De={startedTimeStamp:Date.now()},De[r.cN]=!0,De}}),On=function(De){return"force"in De},dn=function(De){return"ifOlderThan"in De},Q=function(De,ke,Je){return function(Mn,Kn){var An=On(Je)&&Je.force,Wn=dn(Je)&&Je.ifOlderThan,nt=function(Fe){return Fe===void 0&&(Fe=!0),Zn.endpoints[De].initiate(ke,{forceRefetch:Fe})},mt=Zn.endpoints[De].select(ke)(Kn());if(An)Mn(nt());else if(Wn){var $t=mt?.fulfilledTimeStamp;if(!$t){Mn(nt());return}var Xt=(Number(new Date)-Number(new Date($t)))/1e3>=Wn;Xt&&Mn(nt())}else Mn(nt(!1))}};function pe(De){return function(ke){var Je,Mn;return((Mn=(Je=ke?.meta)==null?void 0:Je.arg)==null?void 0:Mn.endpointName)===De}}function ge(De,ke){return{matchPending:(0,r.f$)((0,r.mm)(De),pe(ke)),matchFulfilled:(0,r.f$)((0,r.sf)(De),pe(ke)),matchRejected:(0,r.f$)((0,r.TK)(De),pe(ke))}}return{queryThunk:we,mutationThunk:Ie,prefetch:Q,updateQueryData:Bt,upsertQueryData:Wt,patchQueryData:at,buildMatchThunkActions:ge}}function Ne(Qe,Xn,Yn,ln){return Bn(Yn[Qe.meta.arg.endpointName][Xn],(0,r.sf)(Qe)?Qe.payload:void 0,(0,r.WA)(Qe)?Qe.payload:void 0,Qe.meta.arg.originalArgs,"baseQueryMeta"in Qe.meta?Qe.meta.baseQueryMeta:void 0,ln)}function le(Qe,Xn,Yn){var ln=Qe[Xn];ln&&Yn(ln)}function he(Qe){var Xn;return(Xn="arg"in Qe?Qe.arg.fixedCacheKey:Qe.fixedCacheKey)!=null?Xn:Qe.requestId}function We(Qe,Xn,Yn){var ln=Qe[he(Xn)];ln&&Yn(ln)}var mn={};function Be(Qe){var Xn=Qe.reducerPath,Yn=Qe.queryThunk,ln=Qe.mutationThunk,Jn=Qe.context,bn=Jn.endpointDefinitions,Zn=Jn.apiUid,Rt=Jn.extractRehydrationInfo,at=Jn.hasRehydrationInfo,Bt=Qe.assertTagType,Wt=Qe.config,b=(0,r.VP)(Xn+"/resetApiState"),J=(0,r.Z0)({name:Xn+"/queries",initialState:mn,reducers:{removeQueryResult:{reducer:function(ke,Je){var Mn=Je.payload.queryCacheKey;delete ke[Mn]},prepare:(0,r.aA)()},queryResultPatched:{reducer:function(ke,Je){var Mn=Je.payload,Kn=Mn.queryCacheKey,An=Mn.patches;le(ke,Kn,function(Wn){Wn.data=(0,n.$i)(Wn.data,An.concat())})},prepare:(0,r.aA)()}},extraReducers:function(ke){ke.addCase(Yn.pending,function(Je,Mn){var Kn=Mn.meta,An=Mn.meta.arg,Wn,nt,mt=tn(An);(An.subscribe||mt)&&((nt=Je[Wn=An.queryCacheKey])!=null||(Je[Wn]={status:H.uninitialized,endpointName:An.endpointName})),le(Je,An.queryCacheKey,function($t){$t.status=H.pending,$t.requestId=mt&&$t.requestId?$t.requestId:Kn.requestId,An.originalArgs!==void 0&&($t.originalArgs=An.originalArgs),$t.startedTimeStamp=Kn.startedTimeStamp})}).addCase(Yn.fulfilled,function(Je,Mn){var Kn=Mn.meta,An=Mn.payload;le(Je,Kn.arg.queryCacheKey,function(Wn){var nt;if(!(Wn.requestId!==Kn.requestId&&!tn(Kn.arg))){var mt=bn[Kn.arg.endpointName].merge;if(Wn.status=H.fulfilled,mt)if(Wn.data!==void 0){var $t=Kn.fulfilledTimeStamp,Xt=Kn.arg,Fe=Kn.baseQueryMeta,yn=Kn.requestId,Dn=(0,n.Ay)(Wn.data,function(Qn){return mt(Qn,An,{arg:Xt.originalArgs,baseQueryMeta:Fe,fulfilledTimeStamp:$t,requestId:yn})});Wn.data=Dn}else Wn.data=An;else Wn.data=(nt=bn[Kn.arg.endpointName].structuralSharing)==null||nt?de((0,n.Qx)(Wn.data)?(0,n.c2)(Wn.data):Wn.data,An):An;delete Wn.error,Wn.fulfilledTimeStamp=Kn.fulfilledTimeStamp}})}).addCase(Yn.rejected,function(Je,Mn){var Kn=Mn.meta,An=Kn.condition,Wn=Kn.arg,nt=Kn.requestId,mt=Mn.error,$t=Mn.payload;le(Je,Wn.queryCacheKey,function(Xt){if(!An){if(Xt.requestId!==nt)return;Xt.status=H.rejected,Xt.error=$t??mt}})}).addMatcher(at,function(Je,Mn){for(var Kn=Rt(Mn).queries,An=0,Wn=Object.entries(Kn);An<Wn.length;An++){var nt=Wn[An],mt=nt[0],$t=nt[1];($t?.status===H.fulfilled||$t?.status===H.rejected)&&(Je[mt]=$t)}})}}),we=(0,r.Z0)({name:Xn+"/mutations",initialState:mn,reducers:{removeMutationResult:{reducer:function(ke,Je){var Mn=Je.payload,Kn=he(Mn);Kn in ke&&delete ke[Kn]},prepare:(0,r.aA)()}},extraReducers:function(ke){ke.addCase(ln.pending,function(Je,Mn){var Kn=Mn.meta,An=Mn.meta,Wn=An.requestId,nt=An.arg,mt=An.startedTimeStamp;nt.track&&(Je[he(Kn)]={requestId:Wn,status:H.pending,endpointName:nt.endpointName,startedTimeStamp:mt})}).addCase(ln.fulfilled,function(Je,Mn){var Kn=Mn.payload,An=Mn.meta;An.arg.track&&We(Je,An,function(Wn){Wn.requestId===An.requestId&&(Wn.status=H.fulfilled,Wn.data=Kn,Wn.fulfilledTimeStamp=An.fulfilledTimeStamp)})}).addCase(ln.rejected,function(Je,Mn){var Kn=Mn.payload,An=Mn.error,Wn=Mn.meta;Wn.arg.track&&We(Je,Wn,function(nt){nt.requestId===Wn.requestId&&(nt.status=H.rejected,nt.error=Kn??An)})}).addMatcher(at,function(Je,Mn){for(var Kn=Rt(Mn).mutations,An=0,Wn=Object.entries(Kn);An<Wn.length;An++){var nt=Wn[An],mt=nt[0],$t=nt[1];($t?.status===H.fulfilled||$t?.status===H.rejected)&&mt!==$t?.requestId&&(Je[mt]=$t)}})}}),Ie=(0,r.Z0)({name:Xn+"/invalidation",initialState:mn,reducers:{updateProvidedBy:{reducer:function(ke,Je){for(var Mn,Kn,An,Wn,nt=Je.payload,mt=nt.queryCacheKey,$t=nt.providedTags,Xt=0,Fe=Object.values(ke);Xt<Fe.length;Xt++)for(var yn=Fe[Xt],Dn=0,Qn=Object.values(yn);Dn<Qn.length;Dn++){var It=Qn[Dn],Ct=It.indexOf(mt);Ct!==-1&&It.splice(Ct,1)}for(var St=0,ir=$t;St<ir.length;St++){var Cr=ir[St],cr=Cr.type,Yt=Cr.id,nr=(Wn=(Kn=(Mn=ke[cr])!=null?Mn:ke[cr]={})[An=Yt||"__internal_without_id"])!=null?Wn:Kn[An]=[],jr=nr.includes(mt);jr||nr.push(mt)}},prepare:(0,r.aA)()}},extraReducers:function(ke){ke.addCase(J.actions.removeQueryResult,function(Je,Mn){for(var Kn=Mn.payload.queryCacheKey,An=0,Wn=Object.values(Je);An<Wn.length;An++)for(var nt=Wn[An],mt=0,$t=Object.values(nt);mt<$t.length;mt++){var Xt=$t[mt],Fe=Xt.indexOf(Kn);Fe!==-1&&Xt.splice(Fe,1)}}).addMatcher(at,function(Je,Mn){for(var Kn,An,Wn,nt,mt=Rt(Mn).provided,$t=0,Xt=Object.entries(mt);$t<Xt.length;$t++)for(var Fe=Xt[$t],yn=Fe[0],Dn=Fe[1],Qn=0,It=Object.entries(Dn);Qn<It.length;Qn++)for(var Ct=It[Qn],St=Ct[0],ir=Ct[1],Cr=(nt=(An=(Kn=Je[yn])!=null?Kn:Je[yn]={})[Wn=St||"__internal_without_id"])!=null?nt:An[Wn]=[],cr=0,Yt=ir;cr<Yt.length;cr++){var nr=Yt[cr],jr=Cr.includes(nr);jr||Cr.push(nr)}}).addMatcher((0,r.i0)((0,r.sf)(Yn),(0,r.WA)(Yn)),function(Je,Mn){var Kn=Ne(Mn,"providesTags",bn,Bt),An=Mn.meta.arg.queryCacheKey;Ie.caseReducers.updateProvidedBy(Je,Ie.actions.updateProvidedBy({queryCacheKey:An,providedTags:Kn}))})}}),On=(0,r.Z0)({name:Xn+"/subscriptions",initialState:mn,reducers:{updateSubscriptionOptions:function(ke,Je){},unsubscribeQueryResult:function(ke,Je){},internal_probeSubscription:function(ke,Je){}}}),dn=(0,r.Z0)({name:Xn+"/internalSubscriptions",initialState:mn,reducers:{subscriptionsUpdated:{reducer:function(ke,Je){return(0,n.$i)(ke,Je.payload)},prepare:(0,r.aA)()}}}),Q=(0,r.Z0)({name:Xn+"/config",initialState:I({online:q(),focused:re(),middlewareRegistered:!1},Wt),reducers:{middlewareRegistered:function(ke,Je){var Mn=Je.payload;ke.middlewareRegistered=ke.middlewareRegistered==="conflict"||Zn!==Mn?"conflict":!0}},extraReducers:function(ke){ke.addCase(ht,function(Je){Je.online=!0}).addCase(wn,function(Je){Je.online=!1}).addCase(qn,function(Je){Je.focused=!0}).addCase(jn,function(Je){Je.focused=!1}).addMatcher(at,function(Je){return I({},Je)})}}),pe=(0,E.HY)({queries:J.reducer,mutations:we.reducer,provided:Ie.reducer,subscriptions:dn.reducer,config:Q.reducer}),ge=function(ke,Je){return pe(b.match(Je)?void 0:ke,Je)},De=$(I(I(I(I(I(I({},Q.actions),J.actions),On.actions),dn.actions),we.actions),Ie.actions),{unsubscribeMutationResult:we.actions.removeMutationResult,resetApiState:b});return{reducer:ge,actions:De}}var vn=Symbol.for("RTKQ/skipToken"),Cn=null,$n={status:H.uninitialized},ze=(0,n.Ay)($n,function(){}),on=(0,n.Ay)($n,function(){});function fn(Qe){var Xn=Qe.serializeQueryArgs,Yn=Qe.reducerPath,ln=function(Wt){return ze},Jn=function(Wt){return on};return{buildQuerySelector:Rt,buildMutationSelector:at,selectInvalidatedBy:Bt};function bn(Wt){return I(I({},Wt),N(Wt.status))}function Zn(Wt){var b=Wt[Yn];return b}function Rt(Wt,b){return function(J){var we=Xn({queryArgs:J,endpointDefinition:b,endpointName:Wt}),Ie=function(dn){var Q,pe,ge;return(ge=(pe=(Q=Zn(dn))==null?void 0:Q.queries)==null?void 0:pe[we])!=null?ge:ze},On=J===vn?ln:Ie;return j(On,bn)}}function at(){return function(Wt){var b,J;typeof Wt=="object"?J=(b=he(Wt))!=null?b:vn:J=Wt;var we=function(On){var dn,Q,pe;return(pe=(Q=(dn=Zn(On))==null?void 0:dn.mutations)==null?void 0:Q[J])!=null?pe:on},Ie=J===vn?Jn:we;return j(Ie,bn)}}function Bt(Wt,b){for(var J,we=Wt[Yn],Ie=new Set,On=0,dn=b.map(an);On<dn.length;On++){var Q=dn[On],pe=we.provided[Q.type];if(pe)for(var ge=(J=Q.id!==void 0?pe[Q.id]:G(Object.values(pe)))!=null?J:[],De=0,ke=ge;De<ke.length;De++){var Je=ke[De];Ie.add(Je)}}return G(Array.from(Ie.values()).map(function(Mn){var Kn=we.queries[Mn];return Kn?[{queryCacheKey:Mn,endpointName:Kn.endpointName,originalArgs:Kn.originalArgs}]:[]}))}}var Hn=WeakMap?new WeakMap:void 0,Pn=function(Qe){var Xn=Qe.endpointName,Yn=Qe.queryArgs,ln="",Jn=Hn?.get(Yn);if(typeof Jn=="string")ln=Jn;else{var bn=JSON.stringify(Yn,function(Zn,Rt){return(0,r.Qd)(Rt)?Object.keys(Rt).sort().reduce(function(at,Bt){return at[Bt]=Rt[Bt],at},{}):Rt});(0,r.Qd)(Yn)&&Hn?.set(Yn,bn),ln=bn}return Xn+"("+ln+")"};function B(){for(var Qe=[],Xn=0;Xn<arguments.length;Xn++)Qe[Xn]=arguments[Xn];return function(ln){var Jn=h(function(Wt){var b,J;return(J=ln.extractRehydrationInfo)==null?void 0:J.call(ln,Wt,{reducerPath:(b=ln.reducerPath)!=null?b:"api"})}),bn=$(I({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},ln),{extractRehydrationInfo:Jn,serializeQueryArgs:function(Wt){var b=Pn;if("serializeQueryArgs"in Wt.endpointDefinition){var J=Wt.endpointDefinition.serializeQueryArgs;b=function(we){var Ie=J(we);return typeof Ie=="string"?Ie:Pn($(I({},we),{queryArgs:Ie}))}}else ln.serializeQueryArgs&&(b=ln.serializeQueryArgs);return b(Wt)},tagTypes:D([],ln.tagTypes||[])}),Zn={endpointDefinitions:{},batch:function(Wt){Wt()},apiUid:(0,r.Ak)(),extractRehydrationInfo:Jn,hasRehydrationInfo:h(function(Wt){return Jn(Wt)!=null})},Rt={injectEndpoints:Bt,enhanceEndpoints:function(Wt){var b=Wt.addTagTypes,J=Wt.endpoints;if(b)for(var we=0,Ie=b;we<Ie.length;we++){var On=Ie[we];bn.tagTypes.includes(On)||bn.tagTypes.push(On)}if(J)for(var dn=0,Q=Object.entries(J);dn<Q.length;dn++){var pe=Q[dn],ge=pe[0],De=pe[1];typeof De=="function"?De(Zn.endpointDefinitions[ge]):Object.assign(Zn.endpointDefinitions[ge]||{},De)}return Rt}},at=Qe.map(function(Wt){return Wt.init(Rt,bn,Zn)});function Bt(Wt){for(var b=Wt.endpoints({query:function(De){return $(I({},De),{type:rt.query})},mutation:function(De){return $(I({},De),{type:rt.mutation})}}),J=0,we=Object.entries(b);J<we.length;J++){var Ie=we[J],On=Ie[0],dn=Ie[1];if(!Wt.overrideExisting&&On in Zn.endpointDefinitions){typeof C<"u";continue}Zn.endpointDefinitions[On]=dn;for(var Q=0,pe=at;Q<pe.length;Q++){var ge=pe[Q];ge.injectEndpoint(On,dn)}}return Rt}return Rt.injectEndpoints({endpoints:ln.endpoints})}}function ce(){return function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")}}function oe(Qe){for(var Xn in Qe)return!1;return!0}var W=2147483647/1e3-1,ae=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.api,ln=Qe.context,Jn=Qe.internalState,bn=Yn.internalActions,Zn=bn.removeQueryResult,Rt=bn.unsubscribeQueryResult;function at(J){var we=Jn.currentSubscriptions[J];return!!we&&!oe(we)}var Bt={},Wt=function(J,we,Ie){var On;if(Rt.match(J)){var dn=we.getState()[Xn],Q=J.payload.queryCacheKey;b(Q,(On=dn.queries[Q])==null?void 0:On.endpointName,we,dn.config)}if(Yn.util.resetApiState.match(J))for(var pe=0,ge=Object.entries(Bt);pe<ge.length;pe++){var De=ge[pe],ke=De[0],Je=De[1];Je&&clearTimeout(Je),delete Bt[ke]}if(ln.hasRehydrationInfo(J))for(var dn=we.getState()[Xn],Mn=ln.extractRehydrationInfo(J).queries,Kn=0,An=Object.entries(Mn);Kn<An.length;Kn++){var Wn=An[Kn],Q=Wn[0],nt=Wn[1];b(Q,nt?.endpointName,we,dn.config)}};function b(J,we,Ie,On){var dn,Q=ln.endpointDefinitions[we],pe=(dn=Q?.keepUnusedDataFor)!=null?dn:On.keepUnusedDataFor;if(pe!==1/0){var ge=Math.max(0,Math.min(pe,W));if(!at(J)){var De=Bt[J];De&&clearTimeout(De),Bt[J]=setTimeout(function(){at(J)||Ie.dispatch(Zn({queryCacheKey:J})),delete Bt[J]},ge*1e3)}}}return Wt},fe=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.context,ln=Qe.context.endpointDefinitions,Jn=Qe.mutationThunk,bn=Qe.api,Zn=Qe.assertTagType,Rt=Qe.refetchQuery,at=bn.internalActions.removeQueryResult,Bt=(0,r.i0)((0,r.sf)(Jn),(0,r.WA)(Jn)),Wt=function(J,we){Bt(J)&&b(Ne(J,"invalidatesTags",ln,Zn),we),bn.util.invalidateTags.match(J)&&b(Bn(J.payload,void 0,void 0,void 0,void 0,Zn),we)};function b(J,we){var Ie=we.getState(),On=Ie[Xn],dn=bn.util.selectInvalidatedBy(Ie,J);Yn.batch(function(){for(var Q,pe=Array.from(dn.values()),ge=0,De=pe;ge<De.length;ge++){var ke=De[ge].queryCacheKey,Je=On.queries[ke],Mn=(Q=On.subscriptions[ke])!=null?Q:{};Je&&(Object.keys(Mn).length===0?we.dispatch(at({queryCacheKey:ke})):Je.status!==H.uninitialized&&we.dispatch(Rt(Je,ke)))}})}return Wt},Me=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.queryThunk,ln=Qe.api,Jn=Qe.refetchQuery,bn=Qe.internalState,Zn={},Rt=function(we,Ie){(ln.internalActions.updateSubscriptionOptions.match(we)||ln.internalActions.unsubscribeQueryResult.match(we))&&Bt(we.payload,Ie),(Yn.pending.match(we)||Yn.rejected.match(we)&&we.meta.condition)&&Bt(we.meta.arg,Ie),(Yn.fulfilled.match(we)||Yn.rejected.match(we)&&!we.meta.condition)&&at(we.meta.arg,Ie),ln.util.resetApiState.match(we)&&b()};function at(we,Ie){var On=we.queryCacheKey,dn=Ie.getState()[Xn],Q=dn.queries[On],pe=bn.currentSubscriptions[On];if(!(!Q||Q.status===H.uninitialized)){var ge=J(pe);if(Number.isFinite(ge)){var De=Zn[On];De?.timeout&&(clearTimeout(De.timeout),De.timeout=void 0);var ke=Date.now()+ge,Je=Zn[On]={nextPollTimestamp:ke,pollingInterval:ge,timeout:setTimeout(function(){Je.timeout=void 0,Ie.dispatch(Jn(Q,On))},ge)}}}}function Bt(we,Ie){var On=we.queryCacheKey,dn=Ie.getState()[Xn],Q=dn.queries[On],pe=bn.currentSubscriptions[On];if(!(!Q||Q.status===H.uninitialized)){var ge=J(pe);if(!Number.isFinite(ge)){Wt(On);return}var De=Zn[On],ke=Date.now()+ge;(!De||ke<De.nextPollTimestamp)&&at({queryCacheKey:On},Ie)}}function Wt(we){var Ie=Zn[we];Ie?.timeout&&clearTimeout(Ie.timeout),delete Zn[we]}function b(){for(var we=0,Ie=Object.keys(Zn);we<Ie.length;we++){var On=Ie[we];Wt(On)}}function J(we){we===void 0&&(we={});var Ie=Number.POSITIVE_INFINITY;for(var On in we)we[On].pollingInterval&&(Ie=Math.min(we[On].pollingInterval,Ie));return Ie}return Rt},Ke=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.context,ln=Qe.api,Jn=Qe.refetchQuery,bn=Qe.internalState,Zn=ln.internalActions.removeQueryResult,Rt=function(Bt,Wt){qn.match(Bt)&&at(Wt,"refetchOnFocus"),ht.match(Bt)&&at(Wt,"refetchOnReconnect")};function at(Bt,Wt){var b=Bt.getState()[Xn],J=b.queries,we=bn.currentSubscriptions;Yn.batch(function(){for(var Ie=0,On=Object.keys(we);Ie<On.length;Ie++){var dn=On[Ie],Q=J[dn],pe=we[dn];if(!(!pe||!Q)){var ge=Object.values(pe).some(function(De){return De[Wt]===!0})||Object.values(pe).every(function(De){return De[Wt]===void 0})&&b.config[Wt];ge&&(Object.keys(pe).length===0?Bt.dispatch(Zn({queryCacheKey:dn})):Q.status!==H.uninitialized&&Bt.dispatch(Jn(Q,dn)))}}})}return Rt},Vn=new Error("Promise never resolved before cacheEntryRemoved."),ut=function(Qe){var Xn=Qe.api,Yn=Qe.reducerPath,ln=Qe.context,Jn=Qe.queryThunk,bn=Qe.mutationThunk,Zn=Qe.internalState,Rt=(0,r.$S)(Jn),at=(0,r.$S)(bn),Bt=(0,r.sf)(Jn,bn),Wt={},b=function(Ie,On,dn){var Q=J(Ie);if(Jn.pending.match(Ie)){var pe=dn[Yn].queries[Q],ge=On.getState()[Yn].queries[Q];!pe&&ge&&we(Ie.meta.arg.endpointName,Ie.meta.arg.originalArgs,Q,On,Ie.meta.requestId)}else if(bn.pending.match(Ie)){var ge=On.getState()[Yn].mutations[Q];ge&&we(Ie.meta.arg.endpointName,Ie.meta.arg.originalArgs,Q,On,Ie.meta.requestId)}else if(Bt(Ie)){var De=Wt[Q];De?.valueResolved&&(De.valueResolved({data:Ie.payload,meta:Ie.meta.baseQueryMeta}),delete De.valueResolved)}else if(Xn.internalActions.removeQueryResult.match(Ie)||Xn.internalActions.removeMutationResult.match(Ie)){var De=Wt[Q];De&&(delete Wt[Q],De.cacheEntryRemoved())}else if(Xn.util.resetApiState.match(Ie))for(var ke=0,Je=Object.entries(Wt);ke<Je.length;ke++){var Mn=Je[ke],Kn=Mn[0],De=Mn[1];delete Wt[Kn],De.cacheEntryRemoved()}};function J(Ie){return Rt(Ie)?Ie.meta.arg.queryCacheKey:at(Ie)?Ie.meta.requestId:Xn.internalActions.removeQueryResult.match(Ie)?Ie.payload.queryCacheKey:Xn.internalActions.removeMutationResult.match(Ie)?he(Ie.payload):""}function we(Ie,On,dn,Q,pe){var ge=ln.endpointDefinitions[Ie],De=ge?.onCacheEntryAdded;if(De){var ke={},Je=new Promise(function(mt){ke.cacheEntryRemoved=mt}),Mn=Promise.race([new Promise(function(mt){ke.valueResolved=mt}),Je.then(function(){throw Vn})]);Mn.catch(function(){}),Wt[dn]=ke;var Kn=Xn.endpoints[Ie].select(ge.type===rt.query?On:dn),An=Q.dispatch(function(mt,$t,Xt){return Xt}),Wn=$(I({},Q),{getCacheEntry:function(){return Kn(Q.getState())},requestId:pe,extra:An,updateCachedData:ge.type===rt.query?function(mt){return Q.dispatch(Xn.util.updateQueryData(Ie,On,mt))}:void 0,cacheDataLoaded:Mn,cacheEntryRemoved:Je}),nt=De(On,Wn);Promise.resolve(nt).catch(function(mt){if(mt!==Vn)throw mt})}}return b},_t=function(Qe){var Xn=Qe.api,Yn=Qe.context,ln=Qe.queryThunk,Jn=Qe.mutationThunk,bn=(0,r.mm)(ln,Jn),Zn=(0,r.TK)(ln,Jn),Rt=(0,r.sf)(ln,Jn),at={},Bt=function(Wt,b){var J,we,Ie;if(bn(Wt)){var On=Wt.meta,dn=On.requestId,Q=On.arg,pe=Q.endpointName,ge=Q.originalArgs,De=Yn.endpointDefinitions[pe],ke=De?.onQueryStarted;if(ke){var Je={},Mn=new Promise(function(Fe,yn){Je.resolve=Fe,Je.reject=yn});Mn.catch(function(){}),at[dn]=Je;var Kn=Xn.endpoints[pe].select(De.type===rt.query?ge:dn),An=b.dispatch(function(Fe,yn,Dn){return Dn}),Wn=$(I({},b),{getCacheEntry:function(){return Kn(b.getState())},requestId:dn,extra:An,updateCachedData:De.type===rt.query?function(Fe){return b.dispatch(Xn.util.updateQueryData(pe,ge,Fe))}:void 0,queryFulfilled:Mn});ke(ge,Wn)}}else if(Rt(Wt)){var nt=Wt.meta,dn=nt.requestId,mt=nt.baseQueryMeta;(J=at[dn])==null||J.resolve({data:Wt.payload,meta:mt}),delete at[dn]}else if(Zn(Wt)){var $t=Wt.meta,dn=$t.requestId,Xt=$t.rejectedWithValue,mt=$t.baseQueryMeta;(Ie=at[dn])==null||Ie.reject({error:(we=Wt.payload)!=null?we:Wt.error,isUnhandledError:!Xt,meta:mt}),delete at[dn]}};return Bt},lr=function(Qe){var Xn=Qe.api,Yn=Qe.context.apiUid,ln=Qe.reducerPath;return function(Jn,bn){var Zn,Rt;Xn.util.resetApiState.match(Jn)&&bn.dispatch(Xn.internalActions.middlewareRegistered(Yn)),typeof C<"u"}},xr,pr=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof e.g<"u"?e.g:globalThis):function(Qe){return(xr||(xr=Promise.resolve())).then(Qe).catch(function(Xn){return setTimeout(function(){throw Xn},0)})},gr=function(Qe){var Xn=Qe.api,Yn=Qe.queryThunk,ln=Qe.internalState,Jn=Xn.reducerPath+"/subscriptions",bn=null,Zn=!1,Rt=Xn.internalActions,at=Rt.updateSubscriptionOptions,Bt=Rt.unsubscribeQueryResult,Wt=function(b,J){var we,Ie,On,dn,Q,pe,ge,De,ke;if(at.match(J)){var Je=J.payload,Mn=Je.queryCacheKey,Kn=Je.requestId,An=Je.options;return(we=b?.[Mn])!=null&&we[Kn]&&(b[Mn][Kn]=An),!0}if(Bt.match(J)){var Wn=J.payload,Mn=Wn.queryCacheKey,Kn=Wn.requestId;return b[Mn]&&delete b[Mn][Kn],!0}if(Xn.internalActions.removeQueryResult.match(J))return delete b[J.payload.queryCacheKey],!0;if(Yn.pending.match(J)){var nt=J.meta,mt=nt.arg,Kn=nt.requestId;if(mt.subscribe){var $t=(On=b[Ie=mt.queryCacheKey])!=null?On:b[Ie]={};return $t[Kn]=(Q=(dn=mt.subscriptionOptions)!=null?dn:$t[Kn])!=null?Q:{},!0}}if(Yn.rejected.match(J)){var Xt=J.meta,Fe=Xt.condition,mt=Xt.arg,Kn=Xt.requestId;if(Fe&&mt.subscribe){var $t=(ge=b[pe=mt.queryCacheKey])!=null?ge:b[pe]={};return $t[Kn]=(ke=(De=mt.subscriptionOptions)!=null?De:$t[Kn])!=null?ke:{},!0}}return!1};return function(b,J){var we,Ie;if(bn||(bn=JSON.parse(JSON.stringify(ln.currentSubscriptions))),Xn.util.resetApiState.match(b))return bn=ln.currentSubscriptions={},[!0,!1];if(Xn.internalActions.internal_probeSubscription.match(b)){var On=b.payload,dn=On.queryCacheKey,Q=On.requestId,pe=!!((we=ln.currentSubscriptions[dn])!=null&&we[Q]);return[!1,pe]}var ge=Wt(ln.currentSubscriptions,b);if(ge){Zn||(pr(function(){var Mn=JSON.parse(JSON.stringify(ln.currentSubscriptions)),Kn=(0,n.vI)(bn,function(){return Mn}),An=Kn[1];J.next(Xn.internalActions.subscriptionsUpdated(An)),bn=Mn,Zn=!1}),Zn=!0);var De=!!((Ie=b.type)!=null&&Ie.startsWith(Jn)),ke=Yn.rejected.match(b)&&b.meta.condition&&!!b.meta.arg.subscribe,Je=!De&&!ke;return[Je,!1]}return[!0,!1]}};function Or(Qe){var Xn=Qe.reducerPath,Yn=Qe.queryThunk,ln=Qe.api,Jn=Qe.context,bn=Jn.apiUid,Zn={invalidateTags:(0,r.VP)(Xn+"/invalidateTags")},Rt=function(b){return!!b&&typeof b.type=="string"&&b.type.startsWith(Xn+"/")},at=[lr,ae,fe,Me,ut,_t],Bt=function(b){var J=!1,we={currentSubscriptions:{}},Ie=$(I({},Qe),{internalState:we,refetchQuery:Wt}),On=at.map(function(pe){return pe(Ie)}),dn=gr(Ie),Q=Ke(Ie);return function(pe){return function(ge){J||(J=!0,b.dispatch(ln.internalActions.middlewareRegistered(bn)));var De=$(I({},b),{next:pe}),ke=b.getState(),Je=dn(ge,De,ke),Mn=Je[0],Kn=Je[1],An;if(Mn?An=pe(ge):An=Kn,b.getState()[Xn]&&(Q(ge,De,ke),Rt(ge)||Jn.hasRehydrationInfo(ge)))for(var Wn=0,nt=On;Wn<nt.length;Wn++){var mt=nt[Wn];mt(ge,De,ke)}return An}}};return{middleware:Bt,actions:Zn};function Wt(b,J,we){return we===void 0&&(we={}),Yn(I({type:"query",endpointName:b.endpointName,originalArgs:b.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:J},we))}}function Dr(Qe){}function Rr(Qe){for(var Xn=[],Yn=1;Yn<arguments.length;Yn++)Xn[Yn-1]=arguments[Yn];Object.assign.apply(Object,D([Qe],Xn))}var kt=Symbol(),fr=function(){return{name:kt,init:function(Qe,Xn,Yn){var ln=Xn.baseQuery,Jn=Xn.tagTypes,bn=Xn.reducerPath,Zn=Xn.serializeQueryArgs,Rt=Xn.keepUnusedDataFor,at=Xn.refetchOnMountOrArgChange,Bt=Xn.refetchOnFocus,Wt=Xn.refetchOnReconnect;(0,n.YT)();var b=function(Cr){return typeof C<"u",Cr};Object.assign(Qe,{reducerPath:bn,endpoints:{},internalActions:{onOnline:ht,onOffline:wn,onFocus:qn,onFocusLost:jn},util:{}});var J=Ue({baseQuery:ln,reducerPath:bn,context:Yn,api:Qe,serializeQueryArgs:Zn,assertTagType:b}),we=J.queryThunk,Ie=J.mutationThunk,On=J.patchQueryData,dn=J.updateQueryData,Q=J.upsertQueryData,pe=J.prefetch,ge=J.buildMatchThunkActions,De=Be({context:Yn,queryThunk:we,mutationThunk:Ie,reducerPath:bn,assertTagType:b,config:{refetchOnFocus:Bt,refetchOnReconnect:Wt,refetchOnMountOrArgChange:at,keepUnusedDataFor:Rt,reducerPath:bn}}),ke=De.reducer,Je=De.actions;Rr(Qe.util,{patchQueryData:On,updateQueryData:dn,upsertQueryData:Q,prefetch:pe,resetApiState:Je.resetApiState}),Rr(Qe.internalActions,Je);var Mn=Or({reducerPath:bn,context:Yn,queryThunk:we,mutationThunk:Ie,api:Qe,assertTagType:b}),Kn=Mn.middleware,An=Mn.actions;Rr(Qe.util,An),Rr(Qe,{reducer:ke,middleware:Kn});var Wn=fn({serializeQueryArgs:Zn,reducerPath:bn}),nt=Wn.buildQuerySelector,mt=Wn.buildMutationSelector,$t=Wn.selectInvalidatedBy;Rr(Qe.util,{selectInvalidatedBy:$t});var Xt=te({queryThunk:we,mutationThunk:Ie,api:Qe,serializeQueryArgs:Zn,context:Yn}),Fe=Xt.buildInitiateQuery,yn=Xt.buildInitiateMutation,Dn=Xt.getRunningMutationThunk,Qn=Xt.getRunningMutationsThunk,It=Xt.getRunningQueriesThunk,Ct=Xt.getRunningQueryThunk,St=Xt.getRunningOperationPromises,ir=Xt.removalWarning;return Rr(Qe.util,{getRunningOperationPromises:St,getRunningOperationPromise:ir,getRunningMutationThunk:Dn,getRunningMutationsThunk:Qn,getRunningQueryThunk:Ct,getRunningQueriesThunk:It}),{name:kt,injectEndpoint:function(Cr,cr){var Yt,nr,jr=Qe;(nr=(Yt=jr.endpoints)[Cr])!=null||(Yt[Cr]={}),At(cr)?Rr(jr.endpoints[Cr],{name:Cr,select:nt(Cr,cr),initiate:Fe(Cr,cr)},ge(we,Cr)):yt(cr)&&Rr(jr.endpoints[Cr],{name:Cr,select:mt(),initiate:yn(Cr)},ge(Ie,Cr))}}}}},zt=B(fr())},"./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":(u,m,e)=>{"use strict";e.d(m,{cN:()=>Kn,U1:()=>Ze,VP:()=>$,zD:()=>Hn,Nc:()=>Mn,Z0:()=>En,f$:()=>W,i0:()=>oe,$S:()=>_t,sf:()=>ut,mm:()=>Me,Qd:()=>A,TK:()=>Ke,WA:()=>Vn,Ak:()=>Cn,aA:()=>An});var r=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.js"),n=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js");function o(Fe){var yn=function(Qn){var It=Qn.dispatch,Ct=Qn.getState;return function(St){return function(ir){return typeof ir=="function"?ir(It,Ct,Fe):St(ir)}}};return yn}var t=o();t.withExtraArgument=o;const i=t;var c=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),l=function(){var Fe=function(yn,Dn){return Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qn,It){Qn.__proto__=It}||function(Qn,It){for(var Ct in It)Object.prototype.hasOwnProperty.call(It,Ct)&&(Qn[Ct]=It[Ct])},Fe(yn,Dn)};return function(yn,Dn){if(typeof Dn!="function"&&Dn!==null)throw new TypeError("Class extends value "+String(Dn)+" is not a constructor or null");Fe(yn,Dn);function Qn(){this.constructor=yn}yn.prototype=Dn===null?Object.create(Dn):(Qn.prototype=Dn.prototype,new Qn)}}(),h=function(Fe,yn){var Dn={label:0,sent:function(){if(Ct[0]&1)throw Ct[1];return Ct[1]},trys:[],ops:[]},Qn,It,Ct,St;return St={next:ir(0),throw:ir(1),return:ir(2)},typeof Symbol=="function"&&(St[Symbol.iterator]=function(){return this}),St;function ir(cr){return function(Yt){return Cr([cr,Yt])}}function Cr(cr){if(Qn)throw new TypeError("Generator is already executing.");for(;Dn;)try{if(Qn=1,It&&(Ct=cr[0]&2?It.return:cr[0]?It.throw||((Ct=It.return)&&Ct.call(It),0):It.next)&&!(Ct=Ct.call(It,cr[1])).done)return Ct;switch(It=0,Ct&&(cr=[cr[0]&2,Ct.value]),cr[0]){case 0:case 1:Ct=cr;break;case 4:return Dn.label++,{value:cr[1],done:!1};case 5:Dn.label++,It=cr[1],cr=[0];continue;case 7:cr=Dn.ops.pop(),Dn.trys.pop();continue;default:if(Ct=Dn.trys,!(Ct=Ct.length>0&&Ct[Ct.length-1])&&(cr[0]===6||cr[0]===2)){Dn=0;continue}if(cr[0]===3&&(!Ct||cr[1]>Ct[0]&&cr[1]<Ct[3])){Dn.label=cr[1];break}if(cr[0]===6&&Dn.label<Ct[1]){Dn.label=Ct[1],Ct=cr;break}if(Ct&&Dn.label<Ct[2]){Dn.label=Ct[2],Dn.ops.push(cr);break}Ct[2]&&Dn.ops.pop(),Dn.trys.pop();continue}cr=yn.call(Fe,Dn)}catch(Yt){cr=[6,Yt],It=0}finally{Qn=Ct=0}if(cr[0]&5)throw cr[1];return{value:cr[0]?cr[1]:void 0,done:!0}}},g=function(Fe,yn){for(var Dn=0,Qn=yn.length,It=Fe.length;Dn<Qn;Dn++,It++)Fe[It]=yn[Dn];return Fe},v=Object.defineProperty,j=Object.defineProperties,P=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=function(Fe,yn,Dn){return yn in Fe?v(Fe,yn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Fe[yn]=Dn},O=function(Fe,yn){for(var Dn in yn||(yn={}))C.call(yn,Dn)&&D(Fe,Dn,yn[Dn]);if(E)for(var Qn=0,It=E(yn);Qn<It.length;Qn++){var Dn=It[Qn];T.call(yn,Dn)&&D(Fe,Dn,yn[Dn])}return Fe},M=function(Fe,yn){return j(Fe,P(yn))},w=function(Fe,yn,Dn){return new Promise(function(Qn,It){var Ct=function(Cr){try{ir(Dn.next(Cr))}catch(cr){It(cr)}},St=function(Cr){try{ir(Dn.throw(Cr))}catch(cr){It(cr)}},ir=function(Cr){return Cr.done?Qn(Cr.value):Promise.resolve(Cr.value).then(Ct,St)};ir((Dn=Dn.apply(Fe,yn)).next())})},y=function(){for(var Fe=[],yn=0;yn<arguments.length;yn++)Fe[yn]=arguments[yn];var Dn=createSelector.apply(void 0,Fe),Qn=function(It){for(var Ct=[],St=1;St<arguments.length;St++)Ct[St-1]=arguments[St];return Dn.apply(void 0,g([isDraft(It)?current(It):It],Ct))};return Qn},x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?n.Zz:n.Zz.apply(null,arguments)},R=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(Fe){return Fe}};function A(Fe){if(typeof Fe!="object"||Fe===null)return!1;var yn=Object.getPrototypeOf(Fe);if(yn===null)return!0;for(var Dn=yn;Object.getPrototypeOf(Dn)!==null;)Dn=Object.getPrototypeOf(Dn);return yn===Dn}var I=function(Fe){return Fe&&typeof Fe.match=="function"};function $(Fe,yn){function Dn(){for(var Qn=[],It=0;It<arguments.length;It++)Qn[It]=arguments[It];if(yn){var Ct=yn.apply(void 0,Qn);if(!Ct)throw new Error("prepareAction did not return an object");return O(O({type:Fe,payload:Ct.payload},"meta"in Ct&&{meta:Ct.meta}),"error"in Ct&&{error:Ct.error})}return{type:Fe,payload:Qn[0]}}return Dn.toString=function(){return""+Fe},Dn.type=Fe,Dn.match=function(Qn){return Qn.type===Fe},Dn}function ne(Fe){return A(Fe)&&"type"in Fe}function k(Fe){return typeof Fe=="function"&&"type"in Fe&&I(Fe)}function H(Fe){return ne(Fe)&&typeof Fe.type=="string"&&Object.keys(Fe).every(N)}function N(Fe){return["type","payload","error","meta"].indexOf(Fe)>-1}function Y(Fe){return""+Fe}function ie(Fe){var yn=Fe?(""+Fe).split("/"):[],Dn=yn[yn.length-1]||"actionCreator";return'Detected an action creator with type "'+(Fe||"unknown")+`" being dispatched.
|
|
1416
1416
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(`+Dn+"())` instead of `dispatch("+Dn+")`. This is necessary even if the action has no payload."}function V(Fe){return Fe===void 0&&(Fe={}),function(){return function(Qn){return function(It){return Qn(It)}}};var yn,Dn}function U(Fe,yn){var Dn=0;return{measureTime:function(Qn){var It=Date.now();try{return Qn()}finally{var Ct=Date.now();Dn+=Ct-It}},warnIfExceeded:function(){Dn>Fe&&console.warn(yn+" took "+Dn+"ms, which is more than the warning threshold of "+Fe+`ms.
|
|
Binary file
|