@elliemae/pui-app-sdk 5.48.0 → 5.48.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (525) hide show
  1. package/README.md +1 -1
  2. package/build/docs/404.html +3 -3
  3. package/build/docs/api/classes/Analytics/index.html +4 -4
  4. package/build/docs/api/classes/CMicroAppGuest/index.html +4 -4
  5. package/build/docs/api/classes/CMicroAppHost/index.html +4 -4
  6. package/build/docs/api/classes/ErrorBoundary/index.html +4 -4
  7. package/build/docs/api/classes/GuestModule/index.html +4 -4
  8. package/build/docs/api/functions/AppRoot/index.html +4 -4
  9. package/build/docs/api/functions/Autocomplete/index.html +4 -4
  10. package/build/docs/api/functions/CheckBox/index.html +4 -4
  11. package/build/docs/api/functions/ComboBox/index.html +4 -4
  12. package/build/docs/api/functions/ComboBoxV3/index.html +4 -4
  13. package/build/docs/api/functions/ConnectForm/index.html +4 -4
  14. package/build/docs/api/functions/DateInput/index.html +4 -4
  15. package/build/docs/api/functions/DatePicker/index.html +4 -4
  16. package/build/docs/api/functions/DateRangePicker/index.html +4 -4
  17. package/build/docs/api/functions/DateTimePicker/index.html +4 -4
  18. package/build/docs/api/functions/Form/index.html +4 -4
  19. package/build/docs/api/functions/FormItemLayout/index.html +4 -4
  20. package/build/docs/api/functions/FormLayoutBlockItem/index.html +4 -4
  21. package/build/docs/api/functions/FormSubmitButton/index.html +4 -4
  22. package/build/docs/api/functions/InputMask/index.html +4 -4
  23. package/build/docs/api/functions/InputText/index.html +4 -4
  24. package/build/docs/api/functions/LargeTextBox/index.html +4 -4
  25. package/build/docs/api/functions/MaskedInputText/index.html +4 -4
  26. package/build/docs/api/functions/Page/index.html +4 -4
  27. package/build/docs/api/functions/Radio/index.html +4 -4
  28. package/build/docs/api/functions/RadioGroup/index.html +4 -4
  29. package/build/docs/api/functions/RegisterService/index.html +4 -4
  30. package/build/docs/api/functions/RenderWithStateAddOns/index.html +4 -4
  31. package/build/docs/api/functions/RequireAuth/index.html +4 -4
  32. package/build/docs/api/functions/SessionTimeout/index.html +4 -4
  33. package/build/docs/api/functions/TextBox/index.html +4 -4
  34. package/build/docs/api/functions/Toggle/index.html +4 -4
  35. package/build/docs/api/functions/authSaga/index.html +4 -4
  36. package/build/docs/api/functions/authorize/index.html +4 -4
  37. package/build/docs/api/functions/buildModuleParams/index.html +4 -4
  38. package/build/docs/api/functions/cleanup/index.html +4 -4
  39. package/build/docs/api/functions/configureStore/index.html +4 -4
  40. package/build/docs/api/functions/createGuestModule/index.html +4 -4
  41. package/build/docs/api/functions/createManager/index.html +4 -4
  42. package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +4 -4
  43. package/build/docs/api/functions/fetchHostAppData/index.html +4 -4
  44. package/build/docs/api/functions/fetchUserSettings/index.html +4 -4
  45. package/build/docs/api/functions/getApiActionCreator/index.html +4 -4
  46. package/build/docs/api/functions/getAppConfig/index.html +4 -4
  47. package/build/docs/api/functions/getAppConfigValue/index.html +4 -4
  48. package/build/docs/api/functions/getAuthHTTPClient/index.html +4 -4
  49. package/build/docs/api/functions/getAuthorizationHeader/index.html +4 -4
  50. package/build/docs/api/functions/getHTTPClient/index.html +4 -4
  51. package/build/docs/api/functions/getHostAppDataByKey/index.html +4 -4
  52. package/build/docs/api/functions/getLogger/index.html +4 -4
  53. package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +4 -4
  54. package/build/docs/api/functions/getNavigationLinks/index.html +4 -4
  55. package/build/docs/api/functions/getRedirectUrl/index.html +4 -4
  56. package/build/docs/api/functions/getSelectField/index.html +4 -4
  57. package/build/docs/api/functions/getStore/index.html +4 -4
  58. package/build/docs/api/functions/initServiceWorker/index.html +4 -4
  59. package/build/docs/api/functions/isCIBuild/index.html +4 -4
  60. package/build/docs/api/functions/isProd/index.html +4 -4
  61. package/build/docs/api/functions/isUserAuthorized/index.html +4 -4
  62. package/build/docs/api/functions/listenStorageEvents/index.html +4 -4
  63. package/build/docs/api/functions/loadAppConfig/index.html +4 -4
  64. package/build/docs/api/functions/loadable/index.html +4 -4
  65. package/build/docs/api/functions/login/index.html +4 -4
  66. package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +4 -4
  67. package/build/docs/api/functions/onAuthorizationFailure/index.html +4 -4
  68. package/build/docs/api/functions/onGuestUnloadStart/index.html +4 -4
  69. package/build/docs/api/functions/redactPii/index.html +4 -4
  70. package/build/docs/api/functions/removeDoubleSlash/index.html +4 -4
  71. package/build/docs/api/functions/removeStorageEvents/index.html +4 -4
  72. package/build/docs/api/functions/render/index.html +4 -4
  73. package/build/docs/api/functions/renderHook/index.html +4 -4
  74. package/build/docs/api/functions/renderWithHostData/index.html +4 -4
  75. package/build/docs/api/functions/renderWithRedux/index.html +4 -4
  76. package/build/docs/api/functions/renderWithRouter/index.html +4 -4
  77. package/build/docs/api/functions/renderWithRouterRedux/index.html +4 -4
  78. package/build/docs/api/functions/sdkBaseQuery/index.html +4 -4
  79. package/build/docs/api/functions/sendBAEvent/index.html +4 -4
  80. package/build/docs/api/functions/sendMessageToHost/index.html +4 -4
  81. package/build/docs/api/functions/setAppConfig/index.html +4 -4
  82. package/build/docs/api/functions/setAppConfigValue/index.html +4 -4
  83. package/build/docs/api/functions/setHostAppData/index.html +4 -4
  84. package/build/docs/api/functions/setLoginParams/index.html +4 -4
  85. package/build/docs/api/functions/setSessionTimeoutInterval/index.html +4 -4
  86. package/build/docs/api/functions/subscribeToResetSession/index.html +4 -4
  87. package/build/docs/api/functions/subscribeToSessionExpiry/index.html +4 -4
  88. package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +4 -4
  89. package/build/docs/api/functions/trackActivity/index.html +4 -4
  90. package/build/docs/api/functions/useAppDispatch/index.html +4 -4
  91. package/build/docs/api/functions/useAppMiddleware/index.html +4 -4
  92. package/build/docs/api/functions/useInjectQuery/index.html +4 -4
  93. package/build/docs/api/functions/useInjectReducer/index.html +4 -4
  94. package/build/docs/api/functions/useInjectSaga/index.html +4 -4
  95. package/build/docs/api/functions/useInjectSideEffect/index.html +4 -4
  96. package/build/docs/api/functions/useMediaQueryList/index.html +4 -4
  97. package/build/docs/api/functions/useStateSelector/index.html +4 -4
  98. package/build/docs/api/functions/useStateSelectorShallow/index.html +4 -4
  99. package/build/docs/api/functions/waitFor/index.html +4 -4
  100. package/build/docs/api/functions/waitForElementToBeRemoved/index.html +4 -4
  101. package/build/docs/api/functions/withAppDecorator/index.html +4 -4
  102. package/build/docs/api/index.html +4 -4
  103. package/build/docs/api/interfaces/AppConfig/index.html +4 -4
  104. package/build/docs/api/interfaces/GuestProps/index.html +4 -4
  105. package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +4 -4
  106. package/build/docs/api/type-aliases/AppDispatch/index.html +4 -4
  107. package/build/docs/api/type-aliases/AppStore/index.html +4 -4
  108. package/build/docs/api/type-aliases/Await/index.html +4 -4
  109. package/build/docs/api/type-aliases/EMUI/index.html +4 -4
  110. package/build/docs/api/type-aliases/HostOptions/index.html +4 -4
  111. package/build/docs/api/type-aliases/HostProvidedParams/index.html +4 -4
  112. package/build/docs/api/type-aliases/ModuleOverrides/index.html +4 -4
  113. package/build/docs/api/type-aliases/OnHostInitCallback/index.html +4 -4
  114. package/build/docs/api/type-aliases/OnInitCallback/index.html +4 -4
  115. package/build/docs/api/type-aliases/OnMountCallback/index.html +4 -4
  116. package/build/docs/api/type-aliases/OnUnMountCallback/index.html +4 -4
  117. package/build/docs/api/type-aliases/RootState/index.html +4 -4
  118. package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +4 -4
  119. package/build/docs/api/variables/ErrorToast/index.html +4 -4
  120. package/build/docs/api/variables/FormPropsContext/index.html +4 -4
  121. package/build/docs/api/variables/GuestMicroApp/index.html +4 -4
  122. package/build/docs/api/variables/MASK_PIPES/index.html +4 -4
  123. package/build/docs/api/variables/MASK_TYPES/index.html +4 -4
  124. package/build/docs/api/variables/MicroApp/index.html +4 -4
  125. package/build/docs/api/variables/MicroIFrameApp/index.html +4 -4
  126. package/build/docs/api/variables/NavigationPrompt/index.html +4 -4
  127. package/build/docs/api/variables/NavigationPromptActions/index.html +4 -4
  128. package/build/docs/api/variables/Themes/index.html +4 -4
  129. package/build/docs/api/variables/VisuallyHidden/index.html +4 -4
  130. package/build/docs/api/variables/WaitMessage/index.html +4 -4
  131. package/build/docs/api/variables/act/index.html +4 -4
  132. package/build/docs/api/variables/ariaLive/index.html +4 -4
  133. package/build/docs/api/variables/auth/index.html +4 -4
  134. package/build/docs/api/variables/authReducer/index.html +4 -4
  135. package/build/docs/api/variables/clearSideEffects/index.html +4 -4
  136. package/build/docs/api/variables/createSideEffect/index.html +4 -4
  137. package/build/docs/api/variables/decorators/index.html +4 -4
  138. package/build/docs/api/variables/endSession/index.html +4 -4
  139. package/build/docs/api/variables/error/index.html +4 -4
  140. package/build/docs/api/variables/errorMiddleware/index.html +4 -4
  141. package/build/docs/api/variables/fireEvent/index.html +4 -4
  142. package/build/docs/api/variables/globalConstants/index.html +4 -4
  143. package/build/docs/api/variables/history/index.html +4 -4
  144. package/build/docs/api/variables/httpClientProps/index.html +4 -4
  145. package/build/docs/api/variables/logout/index.html +4 -4
  146. package/build/docs/api/variables/memoryHistory/index.html +4 -4
  147. package/build/docs/api/variables/removeSideEffect/index.html +4 -4
  148. package/build/docs/api/variables/resetUserIdleTime/index.html +4 -4
  149. package/build/docs/api/variables/screen/index.html +4 -4
  150. package/build/docs/api/variables/startSideEffect/index.html +4 -4
  151. package/build/docs/api/variables/updateBAEventParameters/index.html +4 -4
  152. package/build/docs/api/variables/useAppSelector/index.html +4 -4
  153. package/build/docs/api/variables/waitMessageAction/index.html +4 -4
  154. package/build/docs/api/variables/within/index.html +4 -4
  155. package/build/docs/assets/js/04ee7372.8ae82229.js +1 -0
  156. package/build/docs/assets/js/05fd5745.61597b6e.js +1 -0
  157. package/build/docs/assets/js/075aa584.da5038bb.js +1 -0
  158. package/build/docs/assets/js/0a1bd0e5.d027010c.js +1 -0
  159. package/build/docs/assets/js/0f302db7.76c5afe9.js +1 -0
  160. package/build/docs/assets/js/10c70e6f.a094ec1f.js +1 -0
  161. package/build/docs/assets/js/110b6cba.9a03713e.js +1 -0
  162. package/build/docs/assets/js/1154937a.951e551c.js +1 -0
  163. package/build/docs/assets/js/14efea89.a04f8c76.js +1 -0
  164. package/build/docs/assets/js/15f40f8f.bd290a61.js +1 -0
  165. package/build/docs/assets/js/16427680.c14bc2eb.js +1 -0
  166. package/build/docs/assets/js/16fba083.24d400b5.js +1 -0
  167. package/build/docs/assets/js/1a5ba401.f7b7a994.js +1 -0
  168. package/build/docs/assets/js/1ad86f56.6e9c8b2f.js +1 -0
  169. package/build/docs/assets/js/1cc7c915.9f0329e8.js +1 -0
  170. package/build/docs/assets/js/1dfec420.4397e099.js +1 -0
  171. package/build/docs/assets/js/1fcf59a8.ac992c8d.js +1 -0
  172. package/build/docs/assets/js/22c6ac39.cd9e6818.js +1 -0
  173. package/build/docs/assets/js/24b1c163.5f2b6c5e.js +1 -0
  174. package/build/docs/assets/js/25ae0bf1.a8feb1ba.js +1 -0
  175. package/build/docs/assets/js/27c4a013.1aaa4906.js +1 -0
  176. package/build/docs/assets/js/27c8b774.45278834.js +1 -0
  177. package/build/docs/assets/js/2b2c5b3b.0ea20653.js +1 -0
  178. package/build/docs/assets/js/3072782a.613bddff.js +1 -0
  179. package/build/docs/assets/js/3204d46b.ee836dac.js +1 -0
  180. package/build/docs/assets/js/322ec2e7.cfe6ee9e.js +1 -0
  181. package/build/docs/assets/js/336f5910.495e21c0.js +1 -0
  182. package/build/docs/assets/js/365a2c17.55f0fc2b.js +1 -0
  183. package/build/docs/assets/js/379bbc32.b51e146a.js +1 -0
  184. package/build/docs/assets/js/3accd241.d7f8bd47.js +1 -0
  185. package/build/docs/assets/js/3b0e1261.8b607451.js +1 -0
  186. package/build/docs/assets/js/3b333d5b.d27f2abc.js +1 -0
  187. package/build/docs/assets/js/3cb0b0a9.6631cb21.js +1 -0
  188. package/build/docs/assets/js/3cd01694.8013af74.js +1 -0
  189. package/build/docs/assets/js/413bfdf1.a4aaea1f.js +1 -0
  190. package/build/docs/assets/js/41f4ce7f.381f9467.js +1 -0
  191. package/build/docs/assets/js/46eb403d.9803c7a7.js +1 -0
  192. package/build/docs/assets/js/47f7a134.b496cd35.js +1 -0
  193. package/build/docs/assets/js/4acce17e.dc49d76f.js +1 -0
  194. package/build/docs/assets/js/4b10ac31.751afbad.js +1 -0
  195. package/build/docs/assets/js/4eef183e.897071da.js +1 -0
  196. package/build/docs/assets/js/50ae2c89.8e99854b.js +1 -0
  197. package/build/docs/assets/js/50b500dc.658066cf.js +1 -0
  198. package/build/docs/assets/js/5113883b.8e91098c.js +1 -0
  199. package/build/docs/assets/js/51cd08ce.e434c019.js +1 -0
  200. package/build/docs/assets/js/533e434c.ffdd9efd.js +1 -0
  201. package/build/docs/assets/js/53defe29.745c6300.js +1 -0
  202. package/build/docs/assets/js/54dea6f0.a8adba98.js +1 -0
  203. package/build/docs/assets/js/550f7dc1.c0d84a69.js +1 -0
  204. package/build/docs/assets/js/5575829c.9c5b3b5f.js +1 -0
  205. package/build/docs/assets/js/58e12487.73bc34a4.js +1 -0
  206. package/build/docs/assets/js/59169cbb.35f2707e.js +1 -0
  207. package/build/docs/assets/js/5c5cf8ae.ba837ad2.js +1 -0
  208. package/build/docs/assets/js/5ca2639d.0657a369.js +1 -0
  209. package/build/docs/assets/js/5da011d0.e036c805.js +1 -0
  210. package/build/docs/assets/js/5e13701d.e7ff8089.js +1 -0
  211. package/build/docs/assets/js/5e7ee35c.ae4e15a1.js +1 -0
  212. package/build/docs/assets/js/5e8c322a.1e0eb37a.js +1 -0
  213. package/build/docs/assets/js/5ebc190f.928fc694.js +1 -0
  214. package/build/docs/assets/js/5f21eb71.a72b5ba9.js +1 -0
  215. package/build/docs/assets/js/60781fed.5abca3e0.js +1 -0
  216. package/build/docs/assets/js/61b0e64b.ae0d5f9d.js +1 -0
  217. package/build/docs/assets/js/61f3b5cc.93fae673.js +1 -0
  218. package/build/docs/assets/js/62e1e335.d6f48693.js +1 -0
  219. package/build/docs/assets/js/6aac2d5c.9fed4101.js +1 -0
  220. package/build/docs/assets/js/6b345055.4ff883a2.js +1 -0
  221. package/build/docs/assets/js/6b7fcc15.9e2a3be8.js +1 -0
  222. package/build/docs/assets/js/6ca90961.5bb44ad7.js +1 -0
  223. package/build/docs/assets/js/6d1f0509.f7531471.js +1 -0
  224. package/build/docs/assets/js/6daa33e8.17d04f1e.js +1 -0
  225. package/build/docs/assets/js/749b3cb7.2bf2ae3b.js +1 -0
  226. package/build/docs/assets/js/77982fdd.7b406165.js +1 -0
  227. package/build/docs/assets/js/78fde597.415009b5.js +1 -0
  228. package/build/docs/assets/js/7b224b5a.1a5cec4e.js +1 -0
  229. package/build/docs/assets/js/7c822e85.77d000d5.js +1 -0
  230. package/build/docs/assets/js/7cde3459.4fe67289.js +1 -0
  231. package/build/docs/assets/js/7d256524.4d1bb5bc.js +1 -0
  232. package/build/docs/assets/js/7d48b3e7.794c1719.js +1 -0
  233. package/build/docs/assets/js/80392bdc.a9aa4e48.js +1 -0
  234. package/build/docs/assets/js/805daf1e.4dd0578f.js +1 -0
  235. package/build/docs/assets/js/82894961.db408bf5.js +1 -0
  236. package/build/docs/assets/js/85dc4c9b.49e2c5ce.js +1 -0
  237. package/build/docs/assets/js/88a4c043.a398035e.js +1 -0
  238. package/build/docs/assets/js/90579cbd.cb6a6ce5.js +1 -0
  239. package/build/docs/assets/js/90bbfd1d.44b04d56.js +1 -0
  240. package/build/docs/assets/js/9550cc1f.fba02e8c.js +1 -0
  241. package/build/docs/assets/js/999f4a99.b968915c.js +1 -0
  242. package/build/docs/assets/js/99a35e8f.eb34ee4e.js +1 -0
  243. package/build/docs/assets/js/9ab62f73.92639f11.js +1 -0
  244. package/build/docs/assets/js/9ea6fe4d.c2135efa.js +1 -0
  245. package/build/docs/assets/js/a09470d9.e0e851cb.js +1 -0
  246. package/build/docs/assets/js/a0eb976e.f14cbcd5.js +1 -0
  247. package/build/docs/assets/js/a17fb045.181a5251.js +1 -0
  248. package/build/docs/assets/js/a2537f00.76ac0656.js +1 -0
  249. package/build/docs/assets/js/a29a6e44.7d70b466.js +1 -0
  250. package/build/docs/assets/js/a3ecf861.5d1e46dd.js +1 -0
  251. package/build/docs/assets/js/a48fd09c.4da24050.js +1 -0
  252. package/build/docs/assets/js/a6c41565.a3e05af6.js +1 -0
  253. package/build/docs/assets/js/a6c5c03c.999c6a6e.js +1 -0
  254. package/build/docs/assets/js/a769954d.70af9a01.js +1 -0
  255. package/build/docs/assets/js/a7861986.0c25c96b.js +1 -0
  256. package/build/docs/assets/js/a8687130.06194171.js +1 -0
  257. package/build/docs/assets/js/a9ba6591.0b2a6111.js +1 -0
  258. package/build/docs/assets/js/ab05b3aa.d2d06ca4.js +1 -0
  259. package/build/docs/assets/js/ac9d64ec.0f69cf32.js +1 -0
  260. package/build/docs/assets/js/aeb9810c.b1f17f8b.js +1 -0
  261. package/build/docs/assets/js/b0125fa2.674a0551.js +1 -0
  262. package/build/docs/assets/js/b0ccf0d8.94251bcf.js +1 -0
  263. package/build/docs/assets/js/b1474780.4ac3412b.js +1 -0
  264. package/build/docs/assets/js/b2a255cc.da5695d7.js +1 -0
  265. package/build/docs/assets/js/b31a5f55.e8e9d964.js +1 -0
  266. package/build/docs/assets/js/b4285021.eeaaa518.js +1 -0
  267. package/build/docs/assets/js/b784b5bb.1adc5f17.js +1 -0
  268. package/build/docs/assets/js/b8c1226b.873c2507.js +1 -0
  269. package/build/docs/assets/js/b93b454c.aa2eb388.js +1 -0
  270. package/build/docs/assets/js/bc717899.ca07cd54.js +1 -0
  271. package/build/docs/assets/js/bf1a96cc.1588e912.js +1 -0
  272. package/build/docs/assets/js/c10ec81d.55d7b9a5.js +1 -0
  273. package/build/docs/assets/js/c254daed.662451bc.js +1 -0
  274. package/build/docs/assets/js/c377a04b.662ff551.js +1 -0
  275. package/build/docs/assets/js/c52b5473.fdf684e6.js +1 -0
  276. package/build/docs/assets/js/c5e9787b.3c92531e.js +1 -0
  277. package/build/docs/assets/js/c7710052.15998b99.js +1 -0
  278. package/build/docs/assets/js/c8a9fc86.33752b34.js +1 -0
  279. package/build/docs/assets/js/c90572d4.3790df3d.js +1 -0
  280. package/build/docs/assets/js/cfad4bb4.dcae3bdb.js +1 -0
  281. package/build/docs/assets/js/d071c513.8d28365d.js +1 -0
  282. package/build/docs/assets/js/d0fd4a71.69bc17fd.js +1 -0
  283. package/build/docs/assets/js/d1d7a857.052b33c4.js +1 -0
  284. package/build/docs/assets/js/d38c25bf.41b1ebd6.js +1 -0
  285. package/build/docs/assets/js/d3d37933.43d6f6a7.js +1 -0
  286. package/build/docs/assets/js/d71e6c8a.5d7ad151.js +1 -0
  287. package/build/docs/assets/js/d9084ecb.1023e8c6.js +1 -0
  288. package/build/docs/assets/js/de3ee31a.a9fa1d26.js +1 -0
  289. package/build/docs/assets/js/e0db4c79.3f743f77.js +1 -0
  290. package/build/docs/assets/js/e4ad89b2.5cdff7ab.js +1 -0
  291. package/build/docs/assets/js/e876cff6.afb83043.js +1 -0
  292. package/build/docs/assets/js/e917d7c9.97605710.js +1 -0
  293. package/build/docs/assets/js/e9f568e8.87daf2aa.js +1 -0
  294. package/build/docs/assets/js/ea5986e4.275ca37f.js +1 -0
  295. package/build/docs/assets/js/eb84a108.5f8525d7.js +1 -0
  296. package/build/docs/assets/js/ed6a4585.786e4077.js +1 -0
  297. package/build/docs/assets/js/f4180cff.909c9618.js +1 -0
  298. package/build/docs/assets/js/f7084923.283f1cd5.js +1 -0
  299. package/build/docs/assets/js/f72a372a.0e65a0e2.js +1 -0
  300. package/build/docs/assets/js/f72c86d0.7edc82d8.js +1 -0
  301. package/build/docs/assets/js/f8fa0321.fcff0c9a.js +1 -0
  302. package/build/docs/assets/js/fc7c782f.2426a28b.js +1 -0
  303. package/build/docs/assets/js/fce396bf.94e62f7d.js +1 -0
  304. package/build/docs/assets/js/fdb0d9e1.a6d2adf8.js +1 -0
  305. package/build/docs/assets/js/fed4ae4f.05ba0f51.js +1 -0
  306. package/build/docs/assets/js/fefe9566.06f8a04e.js +1 -0
  307. package/build/docs/assets/js/ff0bf96e.8a1953cb.js +1 -0
  308. package/build/docs/assets/js/ff6d65a9.f84ddf73.js +1 -0
  309. package/build/docs/assets/js/{main.0f67774f.js → main.9983c34d.js} +2 -2
  310. package/build/docs/assets/js/runtime~main.b8505035.js +1 -0
  311. package/build/docs/index.html +5 -5
  312. package/build/docs/usage-guide/index.html +4 -4
  313. package/demo/{6751.168284a9.iframe.bundle.js → 6751.4870b9e7.iframe.bundle.js} +1 -1
  314. package/demo/6751.4870b9e7.iframe.bundle.js.br +0 -0
  315. package/demo/{docs/6751.168284a9.iframe.bundle.js.gz → 6751.4870b9e7.iframe.bundle.js.gz} +0 -0
  316. package/demo/docs/{6751.168284a9.iframe.bundle.js → 6751.4870b9e7.iframe.bundle.js} +1 -1
  317. package/demo/docs/6751.4870b9e7.iframe.bundle.js.br +0 -0
  318. package/demo/{6751.168284a9.iframe.bundle.js.gz → docs/6751.4870b9e7.iframe.bundle.js.gz} +0 -0
  319. package/demo/docs/iframe.html +1 -1
  320. package/demo/docs/index.html +1 -1
  321. package/demo/{main.ce1aee32.iframe.bundle.js → docs/main.23c07c99.iframe.bundle.js} +3 -3
  322. package/demo/docs/main.23c07c99.iframe.bundle.js.br +0 -0
  323. package/demo/docs/main.23c07c99.iframe.bundle.js.gz +0 -0
  324. package/demo/docs/{main.927fd89085a3c9a1b274.manager.bundle.js → main.bd6146977a981bbbc197.manager.bundle.js} +1 -1
  325. package/demo/docs/main.bd6146977a981bbbc197.manager.bundle.js.br +0 -0
  326. package/demo/docs/main.bd6146977a981bbbc197.manager.bundle.js.gz +0 -0
  327. package/demo/docs/project.json +1 -1
  328. package/demo/docs/{runtime~main.125215b3.iframe.bundle.js → runtime~main.b3c5c070.iframe.bundle.js} +2 -2
  329. package/demo/docs/runtime~main.b3c5c070.iframe.bundle.js.br +0 -0
  330. package/demo/docs/runtime~main.b3c5c070.iframe.bundle.js.gz +0 -0
  331. package/demo/{view-fields-autocomplete-async-suggestions-autocomplete-stories.5f13678a.iframe.bundle.js → docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.716cc12b.iframe.bundle.js} +1 -1
  332. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.716cc12b.iframe.bundle.js.br +0 -0
  333. package/demo/{view-fields-autocomplete-async-suggestions-autocomplete-stories.5f13678a.iframe.bundle.js.gz → docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.716cc12b.iframe.bundle.js.gz} +0 -0
  334. package/demo/iframe.html +1 -1
  335. package/demo/index.html +1 -1
  336. package/demo/{docs/main.ce1aee32.iframe.bundle.js → main.23c07c99.iframe.bundle.js} +3 -3
  337. package/demo/main.23c07c99.iframe.bundle.js.br +0 -0
  338. package/demo/main.23c07c99.iframe.bundle.js.gz +0 -0
  339. package/demo/{main.927fd89085a3c9a1b274.manager.bundle.js → main.bd6146977a981bbbc197.manager.bundle.js} +1 -1
  340. package/demo/main.bd6146977a981bbbc197.manager.bundle.js.br +0 -0
  341. package/demo/main.bd6146977a981bbbc197.manager.bundle.js.gz +0 -0
  342. package/demo/project.json +1 -1
  343. package/demo/{runtime~main.125215b3.iframe.bundle.js → runtime~main.b3c5c070.iframe.bundle.js} +2 -2
  344. package/demo/runtime~main.b3c5c070.iframe.bundle.js.br +0 -0
  345. package/demo/runtime~main.b3c5c070.iframe.bundle.js.gz +0 -0
  346. package/demo/{docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.5f13678a.iframe.bundle.js → view-fields-autocomplete-async-suggestions-autocomplete-stories.716cc12b.iframe.bundle.js} +1 -1
  347. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.716cc12b.iframe.bundle.js.br +0 -0
  348. package/demo/{docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.5f13678a.iframe.bundle.js.gz → view-fields-autocomplete-async-suggestions-autocomplete-stories.716cc12b.iframe.bundle.js.gz} +0 -0
  349. package/dist/cjs/utils/session.js +5 -3
  350. package/dist/esm/utils/session.js +5 -3
  351. package/dist/types/lib/utils/session.d.ts +2 -1
  352. package/dist/types/tsconfig.tsbuildinfo +1 -1
  353. package/package.json +2 -2
  354. package/build/docs/assets/js/04ee7372.5673acb0.js +0 -1
  355. package/build/docs/assets/js/05fd5745.b0183093.js +0 -1
  356. package/build/docs/assets/js/075aa584.ef20d0ad.js +0 -1
  357. package/build/docs/assets/js/0a1bd0e5.5562cace.js +0 -1
  358. package/build/docs/assets/js/0f302db7.993bddef.js +0 -1
  359. package/build/docs/assets/js/10c70e6f.79a4cd04.js +0 -1
  360. package/build/docs/assets/js/110b6cba.d98de799.js +0 -1
  361. package/build/docs/assets/js/1154937a.bf662a2c.js +0 -1
  362. package/build/docs/assets/js/14efea89.b3ccbb44.js +0 -1
  363. package/build/docs/assets/js/15f40f8f.2963b003.js +0 -1
  364. package/build/docs/assets/js/16427680.d6577833.js +0 -1
  365. package/build/docs/assets/js/16fba083.93ba7cd5.js +0 -1
  366. package/build/docs/assets/js/1a5ba401.547a0455.js +0 -1
  367. package/build/docs/assets/js/1ad86f56.4f3470a0.js +0 -1
  368. package/build/docs/assets/js/1cc7c915.964923e1.js +0 -1
  369. package/build/docs/assets/js/1dfec420.7273a206.js +0 -1
  370. package/build/docs/assets/js/1fcf59a8.7f131093.js +0 -1
  371. package/build/docs/assets/js/22c6ac39.666917ed.js +0 -1
  372. package/build/docs/assets/js/24b1c163.5d0f1ad4.js +0 -1
  373. package/build/docs/assets/js/25ae0bf1.3dd19943.js +0 -1
  374. package/build/docs/assets/js/27c4a013.dc54bf81.js +0 -1
  375. package/build/docs/assets/js/27c8b774.2ec269ef.js +0 -1
  376. package/build/docs/assets/js/2b2c5b3b.a5c2ffde.js +0 -1
  377. package/build/docs/assets/js/3072782a.aa783791.js +0 -1
  378. package/build/docs/assets/js/3204d46b.1ff5c3fd.js +0 -1
  379. package/build/docs/assets/js/322ec2e7.68dc3585.js +0 -1
  380. package/build/docs/assets/js/336f5910.1650e1b8.js +0 -1
  381. package/build/docs/assets/js/365a2c17.e11f7ef1.js +0 -1
  382. package/build/docs/assets/js/379bbc32.6e5c274c.js +0 -1
  383. package/build/docs/assets/js/3accd241.1030f906.js +0 -1
  384. package/build/docs/assets/js/3b0e1261.a37f3651.js +0 -1
  385. package/build/docs/assets/js/3b333d5b.e96fcbdd.js +0 -1
  386. package/build/docs/assets/js/3cb0b0a9.83d64f7a.js +0 -1
  387. package/build/docs/assets/js/3cd01694.7b0c1b24.js +0 -1
  388. package/build/docs/assets/js/413bfdf1.6fd754f1.js +0 -1
  389. package/build/docs/assets/js/41f4ce7f.23294d78.js +0 -1
  390. package/build/docs/assets/js/46eb403d.f1fddca1.js +0 -1
  391. package/build/docs/assets/js/47f7a134.a1e334c0.js +0 -1
  392. package/build/docs/assets/js/4acce17e.56d1e1bc.js +0 -1
  393. package/build/docs/assets/js/4b10ac31.5b4e5639.js +0 -1
  394. package/build/docs/assets/js/4eef183e.1dd17513.js +0 -1
  395. package/build/docs/assets/js/50ae2c89.ea64f986.js +0 -1
  396. package/build/docs/assets/js/50b500dc.3c2b961c.js +0 -1
  397. package/build/docs/assets/js/5113883b.6692b67b.js +0 -1
  398. package/build/docs/assets/js/51cd08ce.4c03d6c1.js +0 -1
  399. package/build/docs/assets/js/533e434c.0b91621c.js +0 -1
  400. package/build/docs/assets/js/53defe29.80bd053e.js +0 -1
  401. package/build/docs/assets/js/54dea6f0.5c6dbe76.js +0 -1
  402. package/build/docs/assets/js/550f7dc1.73b71afa.js +0 -1
  403. package/build/docs/assets/js/5575829c.c220dd2b.js +0 -1
  404. package/build/docs/assets/js/58e12487.00100566.js +0 -1
  405. package/build/docs/assets/js/59169cbb.582fc062.js +0 -1
  406. package/build/docs/assets/js/5c5cf8ae.a36a3598.js +0 -1
  407. package/build/docs/assets/js/5ca2639d.bba78207.js +0 -1
  408. package/build/docs/assets/js/5da011d0.6b00bc3b.js +0 -1
  409. package/build/docs/assets/js/5e13701d.0ad344b1.js +0 -1
  410. package/build/docs/assets/js/5e7ee35c.a2f95cf0.js +0 -1
  411. package/build/docs/assets/js/5e8c322a.ad9de8ba.js +0 -1
  412. package/build/docs/assets/js/5ebc190f.ecc2a581.js +0 -1
  413. package/build/docs/assets/js/5f21eb71.2e6801fb.js +0 -1
  414. package/build/docs/assets/js/60781fed.32f4477c.js +0 -1
  415. package/build/docs/assets/js/61b0e64b.85fb194f.js +0 -1
  416. package/build/docs/assets/js/61f3b5cc.9bcbaf57.js +0 -1
  417. package/build/docs/assets/js/62e1e335.56ca432b.js +0 -1
  418. package/build/docs/assets/js/6aac2d5c.f4d186f2.js +0 -1
  419. package/build/docs/assets/js/6b345055.445af2c9.js +0 -1
  420. package/build/docs/assets/js/6b7fcc15.adc2c7a0.js +0 -1
  421. package/build/docs/assets/js/6ca90961.9adc051a.js +0 -1
  422. package/build/docs/assets/js/6d1f0509.d1f42df3.js +0 -1
  423. package/build/docs/assets/js/6daa33e8.1fb97c28.js +0 -1
  424. package/build/docs/assets/js/749b3cb7.3801df4d.js +0 -1
  425. package/build/docs/assets/js/77982fdd.2c32b564.js +0 -1
  426. package/build/docs/assets/js/78fde597.c9c25e7e.js +0 -1
  427. package/build/docs/assets/js/7b224b5a.49839087.js +0 -1
  428. package/build/docs/assets/js/7c822e85.5f82c723.js +0 -1
  429. package/build/docs/assets/js/7cde3459.3992ad5e.js +0 -1
  430. package/build/docs/assets/js/7d256524.018f89e2.js +0 -1
  431. package/build/docs/assets/js/7d48b3e7.ddf209b8.js +0 -1
  432. package/build/docs/assets/js/80392bdc.6bf9ce42.js +0 -1
  433. package/build/docs/assets/js/805daf1e.45fbac81.js +0 -1
  434. package/build/docs/assets/js/82894961.018f2afc.js +0 -1
  435. package/build/docs/assets/js/85dc4c9b.c59a27b3.js +0 -1
  436. package/build/docs/assets/js/88a4c043.e0fa8644.js +0 -1
  437. package/build/docs/assets/js/90579cbd.2e5eb6fd.js +0 -1
  438. package/build/docs/assets/js/90bbfd1d.ee771c8f.js +0 -1
  439. package/build/docs/assets/js/9550cc1f.a253deb0.js +0 -1
  440. package/build/docs/assets/js/999f4a99.278d2560.js +0 -1
  441. package/build/docs/assets/js/99a35e8f.ab92c478.js +0 -1
  442. package/build/docs/assets/js/9ab62f73.2ba82c6d.js +0 -1
  443. package/build/docs/assets/js/9ea6fe4d.1560ca73.js +0 -1
  444. package/build/docs/assets/js/a09470d9.d327e3f8.js +0 -1
  445. package/build/docs/assets/js/a0eb976e.c9ea2d0c.js +0 -1
  446. package/build/docs/assets/js/a17fb045.b8b0ef22.js +0 -1
  447. package/build/docs/assets/js/a2537f00.8fa81afc.js +0 -1
  448. package/build/docs/assets/js/a29a6e44.b26c1107.js +0 -1
  449. package/build/docs/assets/js/a3ecf861.79a02e97.js +0 -1
  450. package/build/docs/assets/js/a48fd09c.7ad93946.js +0 -1
  451. package/build/docs/assets/js/a6c41565.663efb4b.js +0 -1
  452. package/build/docs/assets/js/a6c5c03c.0260b2d9.js +0 -1
  453. package/build/docs/assets/js/a769954d.82ab6eda.js +0 -1
  454. package/build/docs/assets/js/a7861986.c9dbd8d6.js +0 -1
  455. package/build/docs/assets/js/a8687130.8b311811.js +0 -1
  456. package/build/docs/assets/js/a9ba6591.5f3d8c6b.js +0 -1
  457. package/build/docs/assets/js/ab05b3aa.c285fb64.js +0 -1
  458. package/build/docs/assets/js/ac9d64ec.11293b6f.js +0 -1
  459. package/build/docs/assets/js/aeb9810c.86b85ef8.js +0 -1
  460. package/build/docs/assets/js/b0125fa2.ff714a1f.js +0 -1
  461. package/build/docs/assets/js/b0ccf0d8.c3c3453e.js +0 -1
  462. package/build/docs/assets/js/b1474780.f75855c7.js +0 -1
  463. package/build/docs/assets/js/b2a255cc.55c27cd2.js +0 -1
  464. package/build/docs/assets/js/b31a5f55.1af58206.js +0 -1
  465. package/build/docs/assets/js/b4285021.4724f893.js +0 -1
  466. package/build/docs/assets/js/b784b5bb.9ff5b13a.js +0 -1
  467. package/build/docs/assets/js/b8c1226b.3c59d2a2.js +0 -1
  468. package/build/docs/assets/js/b93b454c.dc742f21.js +0 -1
  469. package/build/docs/assets/js/bc717899.9c815fb6.js +0 -1
  470. package/build/docs/assets/js/bf1a96cc.ca326928.js +0 -1
  471. package/build/docs/assets/js/c10ec81d.88068d1f.js +0 -1
  472. package/build/docs/assets/js/c254daed.692d1729.js +0 -1
  473. package/build/docs/assets/js/c377a04b.56758ac1.js +0 -1
  474. package/build/docs/assets/js/c52b5473.9632bada.js +0 -1
  475. package/build/docs/assets/js/c5e9787b.3f144cf4.js +0 -1
  476. package/build/docs/assets/js/c7710052.d43a2401.js +0 -1
  477. package/build/docs/assets/js/c8a9fc86.b83e36c2.js +0 -1
  478. package/build/docs/assets/js/c90572d4.95405390.js +0 -1
  479. package/build/docs/assets/js/cfad4bb4.a72c9d00.js +0 -1
  480. package/build/docs/assets/js/d071c513.f0b4ede2.js +0 -1
  481. package/build/docs/assets/js/d0fd4a71.cd024870.js +0 -1
  482. package/build/docs/assets/js/d1d7a857.ba4af14a.js +0 -1
  483. package/build/docs/assets/js/d38c25bf.e77fec84.js +0 -1
  484. package/build/docs/assets/js/d3d37933.23c5ed5f.js +0 -1
  485. package/build/docs/assets/js/d71e6c8a.8905b635.js +0 -1
  486. package/build/docs/assets/js/d9084ecb.eb9d3676.js +0 -1
  487. package/build/docs/assets/js/de3ee31a.73e8d862.js +0 -1
  488. package/build/docs/assets/js/e0db4c79.f0c62ade.js +0 -1
  489. package/build/docs/assets/js/e4ad89b2.1e764186.js +0 -1
  490. package/build/docs/assets/js/e876cff6.7f4fee6c.js +0 -1
  491. package/build/docs/assets/js/e917d7c9.437f6986.js +0 -1
  492. package/build/docs/assets/js/e9f568e8.fba9ae60.js +0 -1
  493. package/build/docs/assets/js/ea5986e4.6bb233d4.js +0 -1
  494. package/build/docs/assets/js/eb84a108.1629671e.js +0 -1
  495. package/build/docs/assets/js/ed6a4585.6755bc3d.js +0 -1
  496. package/build/docs/assets/js/f4180cff.99a67ed3.js +0 -1
  497. package/build/docs/assets/js/f7084923.2459b7b1.js +0 -1
  498. package/build/docs/assets/js/f72a372a.992b5d03.js +0 -1
  499. package/build/docs/assets/js/f72c86d0.d78ea58e.js +0 -1
  500. package/build/docs/assets/js/f8fa0321.1da3e731.js +0 -1
  501. package/build/docs/assets/js/fc7c782f.930296e5.js +0 -1
  502. package/build/docs/assets/js/fce396bf.9c451cb7.js +0 -1
  503. package/build/docs/assets/js/fdb0d9e1.053c37f2.js +0 -1
  504. package/build/docs/assets/js/fed4ae4f.1c0cd6db.js +0 -1
  505. package/build/docs/assets/js/fefe9566.270d51aa.js +0 -1
  506. package/build/docs/assets/js/ff0bf96e.21bfe768.js +0 -1
  507. package/build/docs/assets/js/ff6d65a9.c3000564.js +0 -1
  508. package/build/docs/assets/js/runtime~main.8280862b.js +0 -1
  509. package/demo/6751.168284a9.iframe.bundle.js.br +0 -0
  510. package/demo/docs/6751.168284a9.iframe.bundle.js.br +0 -0
  511. package/demo/docs/main.927fd89085a3c9a1b274.manager.bundle.js.br +0 -0
  512. package/demo/docs/main.927fd89085a3c9a1b274.manager.bundle.js.gz +0 -0
  513. package/demo/docs/main.ce1aee32.iframe.bundle.js.br +0 -0
  514. package/demo/docs/main.ce1aee32.iframe.bundle.js.gz +0 -0
  515. package/demo/docs/runtime~main.125215b3.iframe.bundle.js.br +0 -0
  516. package/demo/docs/runtime~main.125215b3.iframe.bundle.js.gz +0 -0
  517. package/demo/docs/view-fields-autocomplete-async-suggestions-autocomplete-stories.5f13678a.iframe.bundle.js.br +0 -0
  518. package/demo/main.927fd89085a3c9a1b274.manager.bundle.js.br +0 -0
  519. package/demo/main.927fd89085a3c9a1b274.manager.bundle.js.gz +0 -0
  520. package/demo/main.ce1aee32.iframe.bundle.js.br +0 -0
  521. package/demo/main.ce1aee32.iframe.bundle.js.gz +0 -0
  522. package/demo/runtime~main.125215b3.iframe.bundle.js.br +0 -0
  523. package/demo/runtime~main.125215b3.iframe.bundle.js.gz +0 -0
  524. package/demo/view-fields-autocomplete-async-suggestions-autocomplete-stories.5f13678a.iframe.bundle.js.br +0 -0
  525. /package/build/docs/assets/js/{main.0f67774f.js.LICENSE.txt → main.9983c34d.js.LICENSE.txt} +0 -0
@@ -18397,7 +18397,7 @@ ${J}`;console.warn(W),I.warned=!0}return T(z,k,U,...$)};return Object.defineProp
18397
18397
  }
18398
18398
  }
18399
18399
  ${d.L1}
18400
- `;e.d(o,["Az",0,v,"G3",0,g,"KZ",0,b,"OV",0,j,"_W",0,c,"f7",0,S,"rf",0,p,"uP",0,h])},"./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"(u,o,e){"use strict";var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.62.1_@elliemae+pui-theme@2.13.1_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),r=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.62.1_@elliemae+pui-theme@2.13.1_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),s=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const d={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},a=null,c={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(s.Jl).description("Position on the screen to show the toast").defaultValue("bottom-left"),autoClose:n.A.oneOfType([n.A.number,n.A.oneOf([!1])]).description("ms to autoclose the toast, false if you don't want to automatically close").defaultValue(5e3),showProgressBar:n.A.bool.description("Whether to show a progress bar indicating when the toast is going to be closed").defaultValue(!1),closeOnClick:n.A.bool.description("Close toast handler").defaultValue(!1),enableMultiContainer:n.A.bool.description("Allows instantiating multiple Toast containers").defaultValue(!1),containerId:n.A.oneOfType([n.A.string,n.A.number]).description("unique id for multi container"),...(0,r.Y)(i.GM,i.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},m={children:n.A.node.isRequired.description("link text")},p={children:n.A.node.description("DSToastActionLink component or text string"),onClick:n.A.func.description("click handler"),onKeyDown:n.A.func.description("key down handler")},g={type:n.A.oneOf(s.Rm).description("Type of toast").defaultValue("default"),messageTitle:n.A.string.description("Toast message title").defaultValue(""),messageText:n.A.string.description("Toast message text").defaultValue(""),messageComponent:n.A.node.description("Toast message component")};e.d(o,["AS",0,g,"Gs",0,d,"x7",0,c])},"./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/toast.js"(u,o,e){"use strict";e.d(o,{o:()=>v});var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),r=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.cjs.production.min.js"),s=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.62.1_@elliemae+pui-theme@2.13.1_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),d=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const m=h=>a.lA[h],p=h=>a.JC[h],g=({type:h=a.Ck.DEFAULT,messageTitle:x="",messageText:j="",messageComponent:S})=>{const P=m(h),w=p(h);return(0,n.jsxs)(d.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(d.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(P,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(d.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(d.Az,{className:"em-ds-toast-content__message-header",children:x}),(0,n.jsx)(d.uP,{className:"em-ds-toast-content__message-text",children:S||j})]})]})};g.displayName=c.VR;const b=(0,s.A)(g);b.propTypes=i.AS;const v=Object.assign(({type:h,messageTitle:x,messageText:j,messageComponent:S,...P},w)=>(0,r.oR)((0,n.jsx)(g,{messageText:j,messageComponent:S,messageTitle:x,type:h}),{...P,...w,type:h}),{...r.oR,isActive:h=>r.oR.isActive(h)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,b3:()=>n});class t{name;objectId;id;constructor(d){const{name:a,objectId:c}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");this.objectId=c,this.name=a,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](d){return typeof d=="object"&&d!==null&&"getType"in d&&typeof d.getType=="function"&&d.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(d){const{name:a,objectId:c,eventSrc:m}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");if(!m)throw new Error("Event source is required");this.objectId=c,this.name=a,this.#e=m,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=d=>this.#e.subscribe({eventId:this.id,callback:d});unsubscribe=d=>{this.#e.unsubscribe({eventId:this.id,token:d})}}const r=i=>i instanceof t,s=(i,d)=>`${i.toLowerCase()}.${d.toLowerCase()}`;e.d(o,["_s",0,s,"xH",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"(u,o,e){"use strict";e.d(o,{of:()=>s,ts:()=>i});const t=new Map;function n(d){return typeof d=="object"&&d!==null&&("eq"in d||"in"in d||"includes"in d||"gt"in d||"lt"in d||"regex"in d)}function r(d,a,c){if("eq"in a)return d===a.eq;if("in"in a)return Array.isArray(a.in)&&a.in.includes(d);if("includes"in a)return Array.isArray(d)&&d.includes(a.includes);if("gt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m>a.gt}if("lt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m<a.lt}if("regex"in a){const m=c??t;let p=m.get(a.regex);if(p===void 0){try{p=new RegExp(a.regex)}catch{p=null}m.set(a.regex,p)}return p!==null&&typeof d=="string"&&p.test(d)}return!1}function s(d){return d!=null&&Object.keys(d).length>0}function i(d,a,c){return Object.entries(a).every(([m,p])=>r(d[m],p,c?.regexCache))}},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"(u,o,e){"use strict";e.d(o,{G:()=>t});var t=(n=>(n.GuestClose="guest:close",n.GuestEventSubscribe="guest:eventSubscribe",n.GuestEventUnsubscribe="guest:eventUnsubscribe",n.GuestFocus="guest:focus",n.GuestReady="guest:ready",n.GuestReadyComplete="guest:readyComplete",n.GuestResize="guest:resize",n.HandShake="handshake",n.HandShakeAck="handshake:ack",n.HostClose="host:close",n.HostConfig="host:config",n.ListObjects="list:objects",n.ObjectEvent="object:event",n.ObjectGet="object:get",n.ObjectInvoke="object:invoke",n))(t||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t});class t{__TYPE__="Proxy";id;objectType;constructor(s,i){this.id=s,this.objectType=i}}const n=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";e.d(o,["h",0,n])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>a});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",r="elli:remoting:response",s="elli:remoting:exception",i=({messageType:c,messageBody:m,requestId:p,onewayMsg:g=!1})=>({requestId:p??(g?null:(0,t.A)()),source:n,type:c,body:m}),d=c=>{const{targetWin:m,targetOrigin:p,messageType:g,messageBody:b}=c,v=i({messageType:g,messageBody:b});m.postMessage(v,p)};class a{#e;#t;#n=new Map;#i=new Map;#r=null;#o=null;#s=new Map;constructor(m,p){if(!m)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#e=p,this.#t=m}#l=()=>{this.#r=null;const m=Date.now(),p=[];let g=null;if(this.#i.forEach((b,v)=>{const{requestId:h,cancelTime:x}=b;x&&x<=m?(this.#t.debug(`Detected response timeout for requestId: ${h}...`),p.push(v),b.resolve(void 0)):x&&(g=g===null?x:Math.min(g,x))}),p.forEach(b=>{this.#i.delete(b)}),g!==null){const b=Math.max(g-Date.now(),0);this.#a(b)}};#a=m=>{this.#r===null&&(this.#r=window.setTimeout(this.#l,m))};#f=()=>{this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)};#d=m=>{const p=this.#i.get(m);return this.#t.debug(`serving requestId: ${m}`),this.#i.delete(m),p};#c=m=>{const{requestId:p}=m;this.#t.debug(`Response received for invocation requestId: ${p}`);const g=this.#d(p);return g?(g.resolve(m.body),!0):(this.#t.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#u=m=>{this.#t.debug(`Exception received for invocation (requestId = ${m.requestId})`);const p=this.#d(m.requestId);return p?(p.reject(new Error(m.body)),!0):(this.#t.warn(`Received exception for stale/invalid request (requestId = ${m.requestId})`),!1)};#h=({sourceWin:m,sourceOrigin:p,message:g})=>{this.#t.debug(`Received message of type "${g.type}"`);const b=this.#n.get(g.type);return b?(b.forEach(v=>{this.#t.debug(`Invoking message handler ${v.name}`),v({sourceWin:m,sourceOrigin:p,requestId:g.requestId,type:g.type,body:g.body})}),!0):!1};#p=m=>{if(this.#s.size===0||!m.source)return!1;const p=this.#s.get(m.source);return!p||m?.data?.source!==n?!1:(this.#t.debug(`Remoting: Received message of type "${m.data.type}"`),m.data.type===r?this.#c(m.data):m.data.type===s?this.#u(m.data):this.#h({sourceWin:m.source,sourceOrigin:p,message:m.data}),!0)};addSender=m=>{const{origin:p,window:g}=m;if(!p)throw new Error("origin is required");if(!g)throw new Error("window is required");this.#s.set(g,p)};initialize=m=>{this.#o&&this.#o.removeEventListener("message",this.#p),m.addEventListener("message",this.#p),this.#o=m,this.#t.debug(`initialized remoting id: ${this.#e}`)};close=()=>{this.#o&&(this.#o.removeEventListener("message",this.#p),this.#o=null),this.#f(),this.#i.forEach(({reject:m})=>{m(new Error("Remoting closed"))}),this.#i.clear(),this.#n.clear(),this.#s.clear(),this.#t.debug(`closed remoting id: ${this.#e}`)};invoke=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v,responseTimeoutMs:h}=m;return new Promise((x,j)=>{const S=i({messageType:b,messageBody:v});this.#i.set(S.requestId,{requestId:S.requestId,resolve:x,reject:j,cancelTime:h?Date.now()+h:null}),p.postMessage(S,g);const{requestId:P}=S;this.#t.debug(`Posted invocation message of type ${b} requestId: ${P||""}`),h&&(this.#t.debug(`scheduling timeout check for requestId: ${P||""} in ${h} ms`),this.#a(h))})};listen=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p)||[];b.push(g),this.#n.set(p,b)};unlisten=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p);if(!b)return;const v=b.indexOf(g);v!==-1&&b.splice(v,1)};send=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v}=m,h=i({messageType:b,messageBody:v,onewayMsg:!0});p.postMessage(h,g),this.#t.debug(`Posted one-way message of type "${b}"`)};removeSender=m=>{const{window:p}=m;p&&this.#s.delete(p)};respond=m=>{const{targetWin:p,targetOrigin:g,requestId:b,response:v}=m,h=i({messageType:r,messageBody:v,requestId:b});p.postMessage(h,g),this.#t.debug(`Response sent to caller for invocation requestId: ${b}`)};raiseException=m=>{const{targetWin:p,targetOrigin:g,requestId:b,ex:v}=m,h=v instanceof Error?v.message:v,x=i({messageType:s,messageBody:h,requestId:b});p.postMessage(x,g),this.#t.debug(`Exception sent to caller for invocation. requestId: ${b}`)}}e.d(o,["_",0,d])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",r=(i,d)=>typeof i===n&&!!d&&!d.startsWith("_");class s{#e;#t="Object";constructor(d,a){this.#e=d,this.#t=a||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const d=[],a=[];return Object.keys(this).forEach(c=>{const m=this[c];(0,t.xH)(m)?a.push(c):r(m,c)&&d.push(c)}),{objectId:this.#e,objectType:this.#t,functions:d,events:a}};_dispose=()=>{};dispose=()=>{}}e.d(o,["Q",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"(u,o,e){"use strict";e.d(o,{qE:()=>s});const t="module";var n=null,r=null;class s{#e=d=>d.trim().toLowerCase();#t=new Map;#n=new Map;#i=d=>{const{so:a,guestId:c,onDuplicate:m="throw",securityContext:p}=d,g=this.#e(a.id),b={so:a,guestId:c,securityContext:p},v=this.#n.get(c);if(!v){this.#n.set(c,new Map([[g,b]]));return}if(v.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${a.id} already exists for guest ${c}`)}v.set(g,b)};#r=({so:d})=>{if(d._dispose&&typeof d._dispose=="function")try{d._dispose()}catch{}};#o=({objectId:d,guestId:a})=>{if(d===t&&!a)for(const[,m]of this.#n){const p=m.get(d);if(p)return p}const c=a?this.#n.get(a):null;return c?c.get(d)??null:null};#s=({objectId:d,guestId:a}={})=>{if(a){if(!d){const m=this.#n.get(a);m&&m.forEach(this.#r),this.#n.delete(a);return}const c=this.#n.get(a);if(c){const m=c.get(d);m&&this.#r(m),c.delete(d)}}else d&&this.#n.forEach(c=>{const m=c.get(d);m&&this.#r(m),c.delete(d)})};addScriptingObject=(d,a)=>{const{guestId:c,onDuplicate:m="throw",securityContext:p}=a||{};if(!d?.id||!d?._toJSON)throw new Error("Object is not derived from ScriptingObject");const g=this.#e(d.id);if(g===t&&!c)throw new Error("Guest id is required to add Module scripting object");if(c){this.#i({so:d,...a,guestId:c,onDuplicate:m});return}if(this.#t.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${d.id} already exists`)}this.#t.set(g,{so:d,guestId:c,securityContext:p})};getObject=(d,a)=>{const c=this.#e(d);let m=this.#o({objectId:c,guestId:a?.id});m=m??this.#t.get(c)??null;const{so:p}=m||{};return p||null};has=(d,a)=>this.getObject(d,a)!==null;listScriptingObjects=d=>{const a=new Set(this.#t.keys()),c=this.#n.get(d);if(c)for(const m of c.keys())a.add(m);return Array.from(a)};removeScriptingObject=(d,a)=>{const c=this.#e(d);if(a)this.#s({objectId:c,guestId:a});else{this.#s({objectId:c});const m=this.#t.get(c);m&&this.#r(m),this.#t.delete(c)}};removeAllScriptingObjects=d=>{d?this.#s({guestId:d}):(this.#t.forEach(this.#r),this.#t.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"(u,o,e){"use strict";e.d(o,{j:()=>g});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=b=>typeof b!="number"||Number.isNaN(b)?0:b>=1?1:b<=0?0:b,r=b=>Math.round(n(b)*100/5)*5,s=b=>{const h=r(b),x=100,j=(P,w)=>w===0?P:j(w,P%w),S=j(h,x);return{numerator:h/S,denominator:x/S}};class i{#e=0;#t=0;#n=0;constructor(v){const h=s(v);this.#e=h.numerator,this.#t=h.denominator}shouldSample=()=>(this.#n+=1,this.#n<=this.#e?!0:(this.#n===this.#t&&(this.#n=0),!1))}class d{#e={};#t={};#n=new i(.25);constructor(v={}){Object.keys(v).forEach(h=>{this.#e[h]=new i(v[h]),this.#t[h]=v[h]})}shouldSample(v){return this.#e[v]?this.#e[v].shouldSample():this.#n.shouldSample()}setRatio(v,h){this.#e[v]=new i(h),this.#t[v]=h}deleteRatio(v){delete this.#e[v],delete this.#t[v]}getRatio(v){return this.#t[v]}getAllRatios(){return{...this.#t}}}var a=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js");const m=Promise.resolve(),p=/^(?:GTM-|G-)[A-Z0-9-]+(?::\S*)?$/;class g extends t.P{#e;#t;constructor(v){super("analytics"),this.#e=v.logger,this.#t=new d(v.timingEventSamplingRatios??v.samplingRatios),this.#n()}#n=()=>{try{new PerformanceObserver(h=>{const x=h.getEntries();queueMicrotask(()=>{this.#i(x)})}).observe({type:"measure",buffered:!0})}catch(v){this.#e.error({message:"Error while recording performance",exception:v})}};#i=v=>{for(const h of v)if(h.entryType==="measure"&&!p.test(h.name)&&this.#t.shouldSample(h.name)){const x=h.detail??{},j=h.duration.toString(),S=new Date(performance.timeOrigin+h.startTime).toISOString();this.#e.info({message:"timing",event:h.name,duration:j,startTime:S,detail:x}),this.#r(h.name,{...x,duration:j,startTime:S})}};#r=(v,h)=>{const x=`timing:${v}`;window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...h,event:x})};setTimingEventSamplingRatio=v=>{Object.entries(v).forEach(([h,x])=>{this.#t.setRatio(h,x)})};getTimingEventSamplingRatio=v=>{const h={};return v.forEach(x=>{h[x]=this.#t.getRatio(x)}),h};deleteTimingEventSamplingRatio=v=>{v.forEach(h=>{this.#t.deleteRatio(h)})};getAllTimingEventSamplingRatios=()=>this.#t.getAllRatios();sendBAEvent=v=>{const{event:h,...x}=v??{};return h&&(window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...x,event:h}),(0,a.As)(h,x)),m};startTiming=(v,h)=>{if(!v)throw new Error("parameter mark is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=performance.mark(v,{detail:h});return m.then(()=>({name:x?.name,startTime:x?.startTime}))};endTiming=(v,h)=>{if(!v)throw new Error("parameter start is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=v?.name??v,j=performance.getEntriesByName(x,"mark")?.[0],S={startAppId:j?.detail?.appId??h.appId,startAppUrl:j?.detail?.appUrl??h.appUrl,endAppId:h.appId,endAppUrl:h.appUrl};return j?(typeof v=="string"?performance.measure(x,{detail:S,start:x}):performance.measure(x,{detail:S,start:v.startTime}),performance.clearMarks(x)):performance.measure(x,{detail:S,end:performance.now()}),m}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";const t=(()=>{try{return window.parent.document,window.parent}catch{return window}})(),n=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),r=()=>{},s=()=>({productId:t?.emui?.appId??"",productPath:t.location.pathname,productUrl:t.location.href,productPageTitle:t.document.title,version:t?.emui?.version??"",appId:window?.emui?.appId??"",appPath:window.location.pathname,appUrl:window.location.href,appPageTitle:document.title});let i={};const d=()=>({...n(),...i}),a=c=>{i={...i,...c}};e.d(o,["QS",0,d,"nE",0,a,"np",0,s])},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";const t=()=>window.emui?.logRocket,i=new Map,d=P=>{i.size<50||i.forEach((w,E)=>{P-w.windowStart>=1e3&&i.delete(E)})},a=2,c=(P,w)=>{let E=P;for(const O of Object.keys(w))E+=`|${O}:${String(w[O])}`;return E},m=20,p=[];let g="";const b=()=>{const P=t();if(!P)return;const w=sessionStorage.getItem("user");if(w)try{const E=JSON.parse(w),O=E.user_key;if(!O||O===g)return;const D=E.user_name||sessionStorage.getItem("userId")||"",T=E.encompass_instance_id||sessionStorage.getItem("instanceId")||"";P.identify(O,{name:D,instanceId:T}),g=O}catch{}},v=P=>{g=P},h=()=>{g="",p.length=0},x=(P,w,E)=>{const O=c(w,E),D=Date.now(),T=i.get(O);if(T&&D-T.windowStart<1e3){if(T.count>=3)return;T.count+=1}else d(D),i.set(O,{windowStart:D,count:1});const I=Object.keys(E).length;I>a&&console.warn(`[analytics] lrTrack "${w}" has ${I} properties. Keep it to ${a} or fewer to stay within LogRocket's 2,000 total-property session budget.`,E),P.track(w,E)},j=P=>{for(;p.length>0;){const w=p.shift();w&&x(P,w.event,w.eventEx)}},S=(P,w)=>{const E=t();if(!E){p.length<m&&p.push({event:P,eventEx:w});return}b(),j(E),x(E,P,w)};e.d(o,["As",0,S,"E3",0,h])},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.32.3_@elliemae+pui-diagnostics@3.12.6_@elliemae+pui-logrocket@1.5._doqwnpquvazd5ereffd3jsflna/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>ee});var t=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),r=(de=>(de.Analytics="analytics",de.Application="application",de.Auth="auth",de.Form="form",de.Global="global",de.Http="http",de.Loan="loan",de.LoanV2="loanV2",de.MemStorage="memstorage",de.Module="module",de.Service="service",de.Session="session",de.Styling="styling",de.Transaction="transaction",de.TransactionTemplate="transactiontemplate",de.WebSocket="websocket",de))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(Z){this.#n=Z}#i=(Z,oe)=>{const xe=new Promise(Ve=>{setTimeout(()=>{Ve()},oe)});return Promise.race([Z,xe])};#r=(Z,oe)=>{const xe=oe?.guestId;return!xe||!Z.guestId?!0:Z.guestId===xe};#o=Z=>{const{eventName:oe,scriptingObject:xe,eventParams:Ve,listeners:An,eventOptions:hn}=Z;An.forEach(ct=>{this.#r(ct,hn)&&(ct.criteria&&!(Ve&&this.#l(Ve,ct.criteria))||Promise.resolve(ct.callback({obj:xe,eventName:oe,eventParams:Ve})).catch(Ft=>{this.#n?.warn(`Error in event listener for "${oe}": ${Ft.message}`)}))})};#s=async({eventId:Z,eventName:oe,scriptingObject:xe,eventParams:Ve,feedbackWaitTime:An,eventOptions:hn})=>{const Ft=(this.#e.get(Z)||[]).map(ur=>!this.#r(ur,hn)||ur.criteria&&!(Ve?this.#l(Ve,ur.criteria):!1)?Promise.resolve():this.#i(ur.callback({obj:xe,eventName:oe,eventParams:Ve}),An));return(await Promise.all(Ft)).flat(1/0).filter(ur=>ur!==void 0)};#l(Z,oe){return Object.entries(oe).every(([xe,Ve])=>{const An=Z[xe];if("eq"in Ve)return An===Ve.eq;if("in"in Ve)return Array.isArray(Ve.in)&&Ve.in.includes(An);if("includes"in Ve)return Array.isArray(An)&&An.includes(Ve.includes);if("gt"in Ve){const hn=typeof An=="number"?An:Number(An);return!Number.isNaN(hn)&&hn>Ve.gt}if("lt"in Ve){const hn=typeof An=="number"?An:Number(An);return!Number.isNaN(hn)&&hn<Ve.lt}if("regex"in Ve){let hn=this.#t.get(Ve);if(hn===void 0){try{hn=new RegExp(Ve.regex)}catch{hn=null}this.#t.set(Ve,hn)}return hn!==null&&typeof An=="string"&&hn.test(An)}return!1})}dispatchEvent=async(Z,oe)=>{const{event:{id:xe,name:Ve},eventParams:An,eventOptions:hn}=oe,{timeout:ct}=hn??{};if(!xe)throw new Error("Event Id is required");const Ft=this.#e.get(xe)||[];return!ct||ct<=0?(this.#o({eventName:Ve,scriptingObject:Z,eventParams:An,listeners:Ft,eventOptions:hn}),Promise.resolve()):this.#s({eventId:xe,eventName:Ve,scriptingObject:Z,eventParams:An,feedbackWaitTime:ct,eventOptions:hn})};subscribe=Z=>{const{eventId:oe,callback:xe,criteria:Ve,guestId:An}=Z;if(!oe)throw new Error("eventId is required");if(!xe)throw new Error("Callback is required");const hn=this.#e.get(oe)||[],ct=(0,n.A)();return hn.push({token:ct,criteria:Ve,guestId:An,callback:xe}),this.#e.set(oe,hn),ct};unsubscribe=Z=>{const{eventId:oe,token:xe}=Z;if(!oe)throw new Error("eventId id is required");if(xe){const Ve=this.#e.get(oe)||[],An=Ve.findIndex(hn=>hn.token===xe);An>-1&&(Ve.splice(An,1),this.#e.set(oe,Ve))}else this.#e.delete(oe)};unsubscribeAll=()=>{this.#e.clear()};unsubscribeByGuestId=Z=>{Z&&this.#e.forEach((oe,xe)=>{const Ve=oe.filter(An=>An.guestId!==Z);Ve.length===0?this.#e.delete(xe):Ve.length!==oe.length&&this.#e.set(xe,Ve)})}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=de=>de.replace(/([^:]\/)\/+/g,"$1"),g=de=>{const Z=document.createElement("a");return Z.href=de,Z.href},b=de=>de?.replace?.(/\/?$/,"/"),v=(de,Z)=>`${de.replace(/\/+$/,"")}/${Z.replace(/^\/+/,"")}`,h=de=>/^(\/|https?:\/\/)/.test(de),x=(de,Z)=>{const oe=b(Z);if(h(oe)){const{origin:xe}=new URL(de,window.location.href);return p(new URL(oe,xe).href)}return p(new URL(oe,b(de)).href)},j=(de,Z)=>p(new URL("manifest.json",x(de,Z)).href),S=()=>window.navigator.userAgent.includes("jsdom"),P=de=>de.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=de=>{try{if(new URL(de,window.location.href).origin===window.location.origin)return de;const oe=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${oe}/frame.html`}catch{return de}},E="pui-app-container-",O=de=>{const Z=de.src??m.default??m,oe=w(Z);if(!de.queryParams)return oe;const xe=de.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${oe}${oe.includes("?")?"&":"?"}${xe}`},D=({documentEle:de,hostUrl:Z,manifestPath:oe,guestId:xe})=>{const Ve=de.getElementById(E);Ve&&(Ve.id=`${Ve.id}${xe}`);const An=x(Z,oe);let hn=de.getElementsByTagName("base")?.[0];if(hn){hn.href=An;return}hn=de.createElement("base"),hn.href=An,de.getElementsByTagName("head")[0].appendChild(hn)},T=({id:de,instanceId:Z,manifestPath:oe,hostUrl:xe,options:Ve})=>new Promise((An,hn)=>{const{signal:ct}=Ve;if(ct?.aborted){hn(new DOMException("iframe creation aborted","AbortError"));return}const Ft=document.createElement("div");Ft.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const nr=document.createElement("iframe");nr.setAttribute("id",Z),nr.setAttribute("data-testid",de),nr.setAttribute("title",Ve.title),nr.setAttribute("allowfullscreen","true"),nr.setAttribute("allowtransparency","true"),Ve.permissionPolicy&&nr.setAttribute("allow",Ve.permissionPolicy),Ve.sandbox&&nr.setAttribute("sandbox",Ve.sandbox),nr.setAttribute("style",Ve.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),nr.setAttribute("src",O(Ve));const ur=1e4;let Xn=!1,pn,kn;const _n=()=>{clearTimeout(pn),ct?.removeEventListener("abort",kn)},fn=()=>ct?.aborted?(Xn||(Xn=!0,_n(),Ft.remove(),hn(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(kn=()=>{fn()},fn())return;ct?.addEventListener("abort",kn),pn=setTimeout(()=>{Xn||(Xn=!0,_n(),Ft.remove(),hn(new Error(`iframe for ${de} failed to load within ${ur}ms`)))},ur),nr.addEventListener("error",()=>{Xn||(Xn=!0,_n(),Ft.remove(),hn(new Error(`iframe for ${de} failed to load`)))}),nr.addEventListener("load",()=>{Xn||fn()||nr.contentDocument&&(Xn=!0,_n(),D({documentEle:nr.contentDocument,hostUrl:xe,manifestPath:oe,guestId:de}),An(nr))}),Ft.appendChild(nr);const{containerId:gt}=Ve;(document.getElementById(gt??"")??document.body).appendChild(Ft)}),I=de=>document.getElementById(de),z={create:T,remove:de=>{const Z=I(de);Z&&Z.parentElement?.remove()},get:I};var k=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.1/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const U=()=>{try{return window.parent.document,window.parent}catch{return window}},$=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),V=de=>Number(de.replace("px","")),J=()=>{const{width:de}=$(),{breakpoints:Z}=(0,k.getDefaultTheme)();return de<=V(Z.small)?"small":de<=V(Z.medium)?"medium":"large"};var W=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/cloneDeep.js"),F=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),L=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),B=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),K=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const M=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}');var H=(de=>(de.DEVELOPMENT="development",de.PRODUCTION="production",de))(H||{}),G=(de=>(de.SSF="ssf",de.APPSDK="appsdk",de))(G||{});class q{#e=M;#t;#n;constructor(Z){this.#t=Z?.version||"latest",this.#n=b(Z?.baseUrl||"")}#i=Z=>{const{activeEnv:oe,env:xe,...Ve}=Z,An=xe[oe]||{};this.#e=K({},Ve,An)};get=(Z="",oe=null)=>W(F(this.#e,Z,oe));set=(Z,oe)=>{L(this.#e,Z,oe)};has=(Z="")=>B(this.#e,Z);setPreloadedConfig=Z=>{this.#e=Z};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const oe=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${oe?.[0]||"latest"}`)}return this.#n};#o=()=>{const Z=this.#r();return b(Z.replace(/(\/)(\d+\.\d+|latest)\/?$/,"$1latest/"))};load=async Z=>{const oe=Z??`${this.#r()}app.config.json`,xe=`${this.#o()}app.config.json`,Ve=hn=>!Z&&hn!==xe;let An;try{An=await fetch(oe)}catch(hn){if(Ve(oe)){await this.load(xe);return}throw new Error("Failed to fetch app config",{cause:hn})}if(An.ok)try{const hn=await An.json();this.#i(hn)}catch(hn){if(Ve(oe)){await this.load(xe);return}throw new Error("Failed to parse app config",{cause:hn})}else if(Ve(oe))await this.load(xe);else throw new Error("Failed to load app config")}}var te=(de=>(de.USER="USER",de.PARTNER="PARTNER",de))(te||{}),ce=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const ie="microFrontendApps",fe=()=>ce.env.CI==="true",se=de=>fe()?!0:String(de).toLowerCase()===H.PRODUCTION.toLowerCase(),ae=de=>de?new URL(de).pathname:"",he=de=>{const Z=document.createElement("a");return Z.href=de,Z.href},re=(de,Z)=>{const oe=Z.match(/^(?:\d+\.\d+)*/g);return de.replace(/{SYSTEM_VERSION}/,oe&&oe[0]||"latest")},je=de=>!de||!de.length?!1:de.every(Z=>typeof Z=="string"),ze=(de,Z)=>{const{mode:oe=H.PRODUCTION}=Z;if(String(oe).toLowerCase()!==H.PRODUCTION.toLowerCase()&&String(oe).toLowerCase()!==H.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(oe)}' for ${de}`);const{production:xe,development:Ve,microappManager:An=G.APPSDK}=Z;if(String(An).toLowerCase()===G.APPSDK.toLowerCase()){if(String(oe).toLowerCase()===H.PRODUCTION.toLowerCase()){if(!xe)throw new Error(`microFrontendApps.${de} is missing production section in app.config.json`);if(!je(xe.files))throw new Error("invalid value for production.files")}if(String(oe).toLowerCase()===H.DEVELOPMENT.toLowerCase()){if(!Ve)throw new Error(`microFrontendApps.${de} is missing development section in app.config.json`);if(!je(Ve.files))throw new Error("invalid value for development.files")}}},Xe=({id:de,config:Z,version:oe="latest"})=>{const{mode:xe=H.PRODUCTION,production:Ve,development:An,...hn}=Z,ct=se(xe)?Ve:An,Ft=K({id:de},{name:de,mode:H.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:te.USER,isJsModule:!0},hn,{mode:xe},ct);return Ft.hostUrl=b(he(Ft.hostUrl||"")),Ft.homeRoute=b(Ft.homeRoute)||ae(Ft.hostUrl),Ft.manifestPath=b(re(Ft.manifestPath,oe)),Ft};class en{#e=[];init=({version:Z,appConfig:oe})=>{const xe=oe.get(ie);xe&&(this.#e=Object.keys(xe).map(Ve=>(ze(Ve,xe[Ve]),Xe({id:Ve,config:xe[Ve],version:Z}))))};getConfigById=Z=>this.#e.find(oe=>oe.id===Z)}const ve=/^https?:\/\//i,pe=(de,Z)=>{if(!ve.test(de))return!1;try{return!de.startsWith(new URL(Z).href)}catch{return!0}},De=(de,Z)=>{const oe=[],xe=[];return de.forEach(Ve=>{pe(Ve.href,Z)?oe.push(Ve):xe.push(Ve)}),{external:oe,local:xe}},Be=de=>{if(!de)return;const Z=de,oe=Z.emui?._ASSET_PATH;oe&&(Z.__webpack_public_path__=new URL("../",oe).href)},Ce=(de,Z)=>{if(!(!de||!Z))try{const oe=de;oe.__webpack_public_path__=new URL("./",Z).href}catch{}},$e=(de,Z)=>{if(!de)return;if(de.emui?._ASSET_PATH){Be(de);return}Ce(de,Z)},Ge="ice-script-";class qe{#e;constructor(Z){this.#e=Z}#t=({href:Z,isESMModule:oe=!0,documentEle:xe})=>{const Ve=xe.createElement("link");Ve.rel=oe?"modulepreload":"preload",Ve.href=Z,Ve.crossOrigin="anonymous",oe||(Ve.as="script"),xe.head.appendChild(Ve)};#n=({id:Z,documentEle:oe,isESMModule:xe=!0})=>{const Ve=oe.createElement("script");return Ve.id=Z,Ve.crossOrigin="anonymous",Ve.nonce="__CSP_NONCE__",!S()&&xe&&(Ve.type="module"),Ve.async=!1,Ve};#i=(Z,oe)=>new Promise((xe,Ve)=>{Z.onload=xe.bind(null,Z.id),Z.onerror=An=>{this.#e.error({message:`Error loading script ${Z.src}`,exception:new Error(An)}),Ve(new Error(`Unable to load script ${Z.src}`,{cause:new Error(An)}))},Z.src=p(oe)});#r=async(Z,oe,xe)=>{if(Z.length===0)return;const Ve=Z.map(({id:hn})=>this.#n({id:hn,documentEle:oe,isESMModule:xe}));Ve.forEach(hn=>{oe.head.appendChild(hn)});const An=Z.map(({href:hn},ct)=>this.#i(Ve[ct],hn));await Promise.all(An)};#o=async({scripts:Z,documentEle:oe,isESMModule:xe,hostUrl:Ve})=>{if(Z.length===0)return;if(!Ve){await this.#r(Z,oe,xe);return}const{external:An,local:hn}=De(Z,Ve);await this.#r(An,oe,xe),$e(oe.defaultView,Ve),await this.#r(hn,oe,xe)};load=async(Z,oe)=>{const{documentEle:xe,isESMModule:Ve}=oe,An=/^https?:\/\//i,hn=Z.map((ct,Ft)=>{const nr=`${Ge}${oe.name.toLowerCase()}-${Ft}`,ur=An.test(ct)?ct:new URL(ct,oe.hostUrl).href;return this.#t({href:ur,documentEle:xe,isESMModule:Ve}),{id:nr,href:ur}});return await this.#o({scripts:hn,documentEle:xe,isESMModule:Ve,hostUrl:oe.hostUrl}),$e(xe.defaultView,oe.hostUrl),hn.map(ct=>ct.id)};remove=(Z="",oe=document)=>new Promise(xe=>{const Ve=oe.getElementById(Z);if(!Ve){this.#e.warn(`script with id ${Z} not found`),xe();return}Ve.remove(),xe()});removeDynamicImportedScripts=(Z,oe)=>{const xe=new RegExp(P(Z),"i"),Ve=oe.getElementsByTagName("script");for(let An=Ve.length-1;An>=0;An-=1){const hn=Ve[An],{src:ct}=hn;xe.test(ct)&&hn.remove()}};removePrefetchLinks=(Z,oe)=>{const xe=new RegExp(P(Z),"i"),Ve=oe.querySelectorAll('[rel="prefetch"]');for(let An=Ve.length-1;An>=0;An-=1){const hn=Ve[An],{href:ct}=hn;xe.test(ct)&&hn.remove()}}}const Je="ice-style-";class dn{#e;constructor(Z){this.#e=Z}#t=({id:Z,href:oe,documentEle:xe})=>new Promise((Ve,An)=>{const hn=xe.createElement("link");hn.id=Z,hn.nonce="__CSP_NONCE__",hn.rel="stylesheet",hn.href=p(oe),hn.onload=Ve.bind(null,hn.id),hn.onerror=ct=>{this.#e.error({message:`Error loading stylesheet ${hn.href}`,exception:new Error(ct)}),An(new Error(`Unable to load stylesheet ${hn.href}`,{cause:new Error(ct)}))},xe.head.appendChild(hn)});load=async(Z,oe)=>{const xe=[],Ve=Z.map((An,hn)=>{const ct=new URL(An,oe.hostUrl),Ft=`${Je}${oe.name.toLowerCase()}-${hn}`;return xe.push(Ft),this.#t({id:Ft,href:ct.href,documentEle:oe.documentEle})});return await Promise.all(Ve),xe};remove=(Z="",oe=document)=>new Promise(xe=>{const Ve=oe.getElementById(Z);if(!Ve){this.#e.warn(`style with id ${Z} not found`),xe();return}Ve.remove(),xe()});removeDynamicImportedStyles=(Z,oe)=>{const xe=new RegExp(P(Z),"i"),Ve=oe.querySelectorAll('[rel="stylesheet"]');for(let An=Ve.length-1;An>=0;An-=1){const hn=Ve[An],{href:ct}=hn;xe.test(ct)&&hn.remove()}}}const Fe=de=>de.replace(/\/\d+\.\d+/,"/latest"),me=de=>{let Z;try{Z=new URL(de)}catch{return!1}return Z.protocol==="http:"||Z.protocol==="https:"},we=new Map,Ae={get:async({hostUrl:de,manifestPath:Z})=>{const oe=j(de,Z),xe=we.get(oe);if(xe)return xe;const Ve=async An=>{const hn=await fetch(An);if(!hn.ok)throw new Error(`unable to get manifest ${An}`);if(!(hn.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${An} is not a valid json`);const Ft=await hn.json();return we.set(An,Ft),Ft};try{return await Ve(oe)}catch(An){const hn=Fe(Z);if(Z!==hn){const ct=j(de,hn);return await Ve(ct)}throw An}},getFullFileNameofAssets:(de,Z=[])=>Z.reduce((oe,xe)=>{const Ve=de[xe];if(Ve)oe.push(Ve);else if(me(xe))oe.push(xe);else throw new Error(`unable to locate ${xe} in manifest`);return oe},[]),clearCache:()=>we.clear()},Le=new Set(["module.unloading","module.unmount"]);class Ye{#e;#t;#n;#i;#r;constructor(Z){this.#e=Z.guest,this.#t=Z.instanceId,this.#n=Z?.version||"latest",this.#i=Z.soManager,this.#r=Z.eventManager}get version(){return this.#n}getObject=Z=>{try{const oe=this.#i.getObject(Z,this.#e);if(!oe)return Promise.resolve(null);const xe=new a.V(oe.id,oe.objectType);return Object.keys(oe).forEach(Ve=>{const An=oe[Ve];An instanceof d.Jh?Object.defineProperty(xe,Ve,{value:new d.Jh({name:Ve,objectId:oe.id}),enumerable:!0}):(0,s.Q)(An,Ve)&&Object.defineProperty(xe,Ve,{value:(...hn)=>{const ct=xe[Ve]?.callContext?.callChain;return Object.defineProperty(An,"callContext",{value:{guest:{...this.#e,instanceId:this.#t},...ct?.length?{callChain:ct}:{}},configurable:!0,enumerable:!0,writable:!0}),oe[Ve](...hn)},enumerable:!0})}),Promise.resolve(xe)}catch(oe){return Promise.reject(oe)}};setAppWindowSize=Z=>{const{size:oe}=Z,xe=document.getElementById(this.#t);xe&&(xe.style.height=`${oe.height}px`,xe.style.width=`${oe.width}px`)};subscribe=Z=>this.#r.subscribe({...Z,...Le.has(Z.eventId)?{guestId:this.#t}:{}});unsubscribe=Z=>{this.#r.unsubscribe(Z)}}class Ze{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:Z,app:oe})=>{if(!Z)throw new Error("appId is required");if(Z==="__proto__"||Z==="constructor"||Z==="prototype")throw new Error(`Invalid appId: ${Z}`);if(!oe?.uuid)throw new Error("application uuid is required");if(window.emui[Z]=window.emui[Z]||[],Array.isArray(window.emui[Z])){const xe=window.emui[Z].findIndex(Ve=>Ve.uuid===oe.uuid);xe>-1?window.emui[Z][xe]=oe:window.emui[Z].push(oe)}else{let xe=window.emui[Z];xe?.uuid===oe.uuid?(xe={...xe,...oe},window.emui[Z]=[xe]):typeof xe.init>"u"?window.emui[Z]=[{...xe,...oe}]:window.emui[Z]=[window.emui[Z],oe]}};get=({id:Z,instanceId:oe})=>{const xe=window.emui?.[Z];return Array.isArray(xe)?xe.find(An=>An.uuid===oe)??null:xe?.uuid===oe?xe:null};add=({id:Z,instanceId:oe,documentEle:xe})=>{if(!oe)throw new Error(`instanceId (uuid) is required to register application ${Z}`);const Ve={uuid:oe,init:null,mount:null,unmount:null},An=window.emui[Z];An?Array.isArray(An)?An.push(Ve):window.emui[Z]=[An,Ve]:window.emui[Z]=[Ve],xe.defaultView&&(xe.defaultView.emui=xe.defaultView.emui??{},xe.defaultView.emui.uuid=oe)};delete=({id:Z,instanceId:oe})=>{if(Array.isArray(window.emui[Z])){const xe=window.emui[Z].findIndex(Ve=>Ve.uuid===oe);xe>-1&&window.emui[Z].splice(xe,1),window.emui[Z].length===0&&delete window.emui[Z]}else delete window.emui[Z]}}const Ne=12e4,Se="module.unloading",Gn="module.unmount",Vn=1e3,vn=new s.P(r.Module),Pn=de=>Array.isArray(de)&&de.some(Z=>Z===!1),Un=["click","scroll","keypress","touchstart"],pt=/\.css$/,St=de=>pt.test(de);class ee{#e;#t;#n;#i;#r;#o=new en;#s;#l;#a=new Map;#f=new Map;#d=new Map;#c=new Set;#u=new Ze;#h=!0;constructor(Z){const{logger:oe}=Z;if(!oe)throw new Error("logger is required");this.#e=Z.logger,this.#t=Z.version,this.#h=Z.extendSession??!0,this.#r=new q({version:Z.version,baseUrl:Z.appConfigBaseUrl}),this.#n=new qe(oe),this.#i=new dn(oe),this.#s=new i.qE,this.#l=new c(this.#e)}#p(Z){return typeof Z=="function"}#E=Z=>Z instanceof d.b3||typeof Z?.subscribe=="function";#A=(Z,oe)=>`Application ${Z} with instance id ${oe} is not found. Most probably the appId property of app.config.json is not set to ${Z}`;#x=(Z,oe=document)=>{const{elementIds:xe}=this.#a.get(Z)||{};xe&&xe.forEach(Ve=>{const An=oe.getElementById(Ve);An&&An.remove()})};#m=({id:Z,instanceId:oe,documentEle:xe,elementIds:Ve,microFEHost:An,selfInitialize:hn})=>{const ct=this.#u.get({id:Z,instanceId:oe});if(!ct)throw new Error(this.#A(Z,oe));this.#a.set(oe,{id:Z,instanceId:oe,elementIds:Ve,guest:{guestWindow:xe?.defaultView,...ct},microFEHost:An,selfInitialize:hn})};#v=async({id:Z,instanceId:oe,containerId:xe,hostUrl:Ve,manifestPath:An,homeRoute:hn,initialRoute:ct,history:Ft,theme:nr,microFEHost:ur})=>{const Xn=this.#u.get({id:Z,instanceId:oe});if(!Xn)throw new Error(`Application ${Z} with instance id ${oe} is not found. Most probably the appId property of app.config.json is not set to ${Z}`);if(!Xn.init||typeof Xn.init!="function")throw new Error(`Application ${Z} with instance id ${oe} doesn't expose init method`);const pn=ur??this.#P({id:Z,instanceId:oe,containerId:xe});return Xn.init({host:pn,hostUrl:Ve,manifestPath:An,homeRoute:hn,initialRoute:ct,prevState:null,history:Ft,theme:nr,hostBreakpoint:J(),hostViewportSize:$(),logger:this.#e})};#w=async Z=>{try{const{id:oe,instanceId:xe,files:Ve,name:An,hostUrl:hn,documentEle:ct,isJsModule:Ft}=Z;this.#e.debug(`Application ${oe} with instance id ${xe} is loading...`);let nr=Ve;const ur=Z.manifest??await Ae.get(Z);nr=Ae.getFullFileNameofAssets(ur,Ve);const Xn=nr.filter(gt=>St(gt)),pn=nr.filter(gt=>!St(gt)),kn={name:An,hostUrl:hn,documentEle:ct,isESMModule:Ft},[_n,fn]=await Promise.all([this.#i.load(Xn,kn),this.#n.load(pn,kn)]);this.#m({id:oe,instanceId:xe,documentEle:ct,elementIds:[..._n,...fn],microFEHost:Z.microFEHost,selfInitialize:Z.selfInitialize}),Z.selfInitialize||await this.#v(Z),this.#e.audit(`Application ${oe} with instance id ${xe} loaded`)}catch(oe){const xe=`Application load failed. Unable to load one or more resources for ${Z.id} with instance id ${Z.instanceId}. ${oe.message}`;throw this.#e.error({message:xe,appId:Z.id,exception:oe}),new Error(xe)}};#O=({id:Z,instanceId:oe,hostUrl:xe,documentEle:Ve})=>{this.#e.debug(`Application ${Z} with instance id ${oe} unloading...`),this.#u.get({id:Z,instanceId:oe})&&(this.#x(oe,Ve),this.#n.removeDynamicImportedScripts(xe,Ve),this.#n.removePrefetchLinks(xe,Ve),this.#i.removeDynamicImportedStyles(xe,Ve),this.#u.delete({id:Z,instanceId:oe}),this.#e.audit(`Application ${Z} with instance id ${oe} unloaded`))};#b=async({id:Z,instanceId:oe})=>{const xe=this.#u.get({id:Z,instanceId:oe});if(!xe?.mount||typeof xe?.mount!="function")throw new Error(`Application ${Z} with instance id ${oe} doesn't expose mount method`);return xe.mount({containerId:`${E}${Z}`,hostBreakpoint:J(),hostViewportSize:$()})};#g=({id:Z,instanceId:oe})=>{const xe=this.#u.get({id:Z,instanceId:oe});if(!xe?.unmount)return null;if(typeof xe.unmount!="function")throw new Error(`Application ${Z} with instance id ${oe} doesn't expose unmount method`);return xe.unmount({containerId:`${E}${Z}`})};#_=({id:Z,instanceId:oe})=>{if(this.#h)try{const xe=this.#s.getObject(r.Application);if(!xe){this.#e.warn({message:`Application scripting object not available for ${Z} to manage session`});return}const Ve=this.#a.get(oe);if(!Ve)return;Ve.keepAlive=t(async()=>{try{await xe.keepSessionAlive()}catch(hn){this.#e.error(`Error keeping session alive. ${hn.message}`)}},Ne);const An=z.get(oe);Un.forEach(hn=>{An?.contentDocument?.addEventListener(hn,Ve.keepAlive)})}catch(xe){this.#e.warn({message:`Application scripting object not available for ${Z} to manage session`,exception:xe})}};#j=(Z,oe)=>{const xe=oe?.callContext?.guest;if(xe?.instanceId&&this.#a.get(xe.instanceId)?.id===Z)return xe.instanceId;const Ve=xe?.guestWindow,An=Array.from(this.#a.entries()).filter(([,hn])=>hn.id===Z);if(Ve){const hn=An.find(([,ct])=>ct.guest.guestWindow===Ve);if(hn)return hn[0]}return An.length===1?An[0][0]:void 0};#y=(Z,oe)=>{this.#d.set(oe,()=>this.closeApp(oe));const xe=this.#s.getObject(r.Module,{id:Z}),An=xe?._setUnloadHandler;typeof An=="function"&&(this.#c.has(Z)||(this.#c.add(Z),An.call(xe,async()=>{const hn=xe.unload,ct=this.#j(Z,typeof hn=="function"?hn:xe);if(!ct){this.#e.warn(`Cannot resolve instance for module.unload of ${Z}`);return}await this.#d.get(ct)?.()})))};#S=(Z,oe)=>{this.#d.delete(Z),[...this.#a.entries()].some(([Ve,An])=>An.id===oe&&Ve!==Z)||this.#c.delete(oe)};#T=Z=>this.#s.getObject(r.Module,{id:Z});#P=({id:Z,instanceId:oe,containerId:xe})=>new Ye({guest:{id:Z},instanceId:oe,version:this.#t,containerId:xe,logger:this.#e,soManager:this.#s,eventManager:this.#l});#C=async(Z,oe,xe)=>{const Ve=this.#T(Z.id)??vn;return this.#l.dispatchEvent(Ve,{event:{id:oe,name:xe},eventParams:{moduleId:Z.id},eventOptions:{timeout:Vn,guestId:Z.instanceId}})};#R=async Z=>{try{const oe=await this.#C(Z,Se,"unloading");if(Pn(oe))return this.#e.info(`Unload denied by guest ${Z.id} via module.unloading event`),!1}catch(oe){this.#e.warn({message:`Error dispatching module.unloading event for ${Z.id}; proceeding with unload`,exception:oe})}return!0};#D=async({id:Z,instanceId:oe,selfInitialize:xe})=>{if(!xe){await this.#g({id:Z,instanceId:oe});return}try{await this.#C({id:Z,instanceId:oe},Gn,"unmount")}catch(Ve){this.#e.warn({message:`Error dispatching module.unmount event for ${Z}`,exception:Ve})}};#I=Z=>{if(!this.#h||!Z)return;const{keepAlive:oe,instanceId:xe}=Z;if(oe){const An=z.get(xe)?.contentDocument;An&&Un.forEach(hn=>{An.removeEventListener(hn,oe)}),Z.keepAlive?.cancel()}};addScriptingObject=(Z,oe)=>{if((0,a.h)(Z)){const xe=this.cloneScriptingObject(Z);this.#s.addScriptingObject(xe,oe)}else this.#s.addScriptingObject(Z,oe)};cloneScriptingObject=Z=>{if(!Z)throw new Error("proxy is required");const oe=new s.P(Z.id,Z.objectType);let xe=[];return Object.keys(Z).forEach(Ve=>{const An=Z[Ve];if(this.#E(An)){const hn=new d.Jh({name:An.name||Ve,objectId:oe.id});Object.defineProperty(oe,Ve,{value:hn,enumerable:!0});const ct=({eventParams:nr,eventOptions:ur})=>this.dispatchEvent({event:hn,eventParams:nr,eventOptions:ur}),Ft=An.subscribe(ct);xe.push(()=>{An.unsubscribe(Ft)})}else if(this.#p(An)&&(Object.defineProperty(oe,Ve,{value:async(...hn)=>{const ct=oe[Ve]?.callContext;if(ct?.guest){const nr=ct.callChain??[],ur=ct.guest,Xn=ur.instanceId??ur.id,pn=this.#f.get(Xn),kn={id:ur.id};pn&&(kn.metadata=pn),Object.defineProperty(An,"callContext",{value:{callChain:[...nr,kn]},configurable:!0,enumerable:!0,writable:!0})}const Ft=await An(...hn);return(0,a.h)(Ft)?this.cloneScriptingObject(Ft):Ft},enumerable:!0}),Ve==="dispose")){const hn=oe.dispose;Object.defineProperty(oe,Ve,{value:()=>(oe._dispose(),hn.apply(oe)),enumerable:!0})}}),oe._dispose=()=>{xe.forEach(Ve=>{Ve?.()}),xe=[]},oe};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async Z=>{if(!Z)throw new Error("instanceId is required");const oe=this.#a.get(Z);if(!oe){this.#e.warn(`Application with instance id ${Z} is not found`);return}const{id:xe,selfInitialize:Ve}=oe;if(!await this.#R({id:xe,instanceId:Z}))return;const An=this.#o.getConfigById(xe);if(!An){this.#e.warn(`Configuration for application ${xe} is not found`),this.removeAllScriptingObjects(Z),this.#l.unsubscribeByGuestId(Z),this.#a.delete(Z),this.#f.delete(Z),this.#S(Z,xe),z.remove(Z);return}const{hostUrl:hn}=An,ct=z.get(Z);try{this.#I(oe),await this.#D({id:xe,instanceId:Z,selfInitialize:Ve})}finally{ct?.contentDocument&&this.#O({id:xe,instanceId:Z,hostUrl:hn,documentEle:ct.contentDocument}),ct&&(ct.src="about:blank"),this.removeAllScriptingObjects(Z),this.#l.unsubscribeByGuestId(Z),this.#a.delete(Z),this.#f.delete(Z),this.#S(Z,xe),z.remove(Z)}};dispatchEvent=async Z=>{const{event:{id:oe,name:xe},eventOptions:Ve={}}=Z,{guestId:An}=Ve;if(!oe)throw new Error("Event Id is required");const hn=oe.split(".")?.[0],ct=An?this.#s.getObject(hn,{id:An}):this.#s.getObject(hn);return ct?this.#l.dispatchEvent(ct,Z):(this.#e.warn(`Attempt to dispatch event ${xe} on unknown object ${hn}`),Promise.resolve())};getApp=Z=>this.#a.get(Z)?.guest;getApps=()=>[...this.#a.values()].map(Z=>Z.guest);init=async Z=>{Z?this.#r.setPreloadedConfig(Z):await this.#r.load(),this.#o.init({version:this.#t,appConfig:this.#r}),this.#k()};#k=()=>{const Z=this.#r.get("microFrontendApps")??{},oe=new Set;Object.keys(Z).forEach(xe=>{const Ve=this.#o.getConfigById(xe);if(Ve?.hostUrl)try{oe.add(new URL(Ve.hostUrl).origin)}catch{}}),oe.forEach(xe=>{const Ve=document.createElement("link");Ve.rel="preconnect",Ve.href=xe,Ve.crossOrigin="anonymous",document.head.appendChild(Ve)})};mountApp=async Z=>{if(!Z)throw new Error("instanceId is required");const{id:oe}=this.#a.get(Z)||{};if(!oe)throw new Error(`Application with instance id ${Z} is not found`);const xe=this.#o.getConfigById(oe);if(!xe)throw new Error(`Application with id ${oe} is not found`);await this.#b({...xe,instanceId:Z})};#F=(Z,oe,xe)=>{const Ve=this.#P(xe),An=Z.defaultView;An&&(An.emui=An.emui??{},An.emui.__host=Ve,An.emui.getHost=()=>An.emui?.__host??null);const hn=Z.createElement("link");return hn.rel="preconnect",hn.href=oe.hostUrl,hn.crossOrigin="anonymous",Z.head.appendChild(hn),Ve};openApp=async Z=>{const{id:oe,frameOptions:xe,history:Ve,theme:An,homeRoute:hn,initialRoute:ct,metadata:Ft,selfInitialize:nr}=Z,ur=(0,n.A)();Ft&&this.#f.set(ur,Ft);const Xn=this.#o.getConfigById(oe);if(!Xn)throw new Error(`Application ${oe} is not found in app config`);const pn=Ae.get(Xn);pn.catch(()=>{});const kn=await z.create({id:oe,instanceId:ur,manifestPath:Xn.manifestPath,hostUrl:Xn.hostUrl,options:{title:Xn.name,...xe}});if(!kn?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#u.add({id:oe,instanceId:ur,documentEle:kn.contentDocument});const _n=this.#F(kn.contentDocument,Xn,{id:oe,instanceId:ur,containerId:xe?.containerId}),fn=await pn;return await this.#w({instanceId:ur,history:Ve,theme:An,documentEle:kn.contentDocument,containerId:xe?.containerId,...Xn,homeRoute:hn??Xn.homeRoute,initialRoute:ct,microFEHost:_n,selfInitialize:nr,manifest:fn}),nr||await this.#b({instanceId:ur,...Xn}),this.#_({id:oe,instanceId:ur}),this.#y(oe,ur),ur}catch(_n){throw this.#f.delete(ur),this.#S(ur,oe),this.#O({id:oe,instanceId:ur,hostUrl:Xn.hostUrl,documentEle:kn.contentDocument}),z.remove(ur),_n}};removeAllEventSubscriptions=()=>{this.#l.unsubscribeAll()};removeAllScriptingObjects=Z=>{this.#s.removeAllScriptingObjects(Z)};removeScriptingObject=(Z,oe)=>{this.#s.removeScriptingObject(Z,oe)};warmUp=Z=>{const oe=this.#o.getConfigById(Z);oe&&Ae.get(oe).catch(()=>{})};unmountApp=async Z=>{if(!Z)throw new Error("instanceId is required");const oe=this.#a.get(Z),{id:xe,selfInitialize:Ve}=oe||{};if(!xe)throw new Error(`Application with instance id ${Z} is not found`);if(!this.#o.getConfigById(xe))throw new Error(`Application with id ${xe} is not found`);await this.#D({id:xe,instanceId:Z,selfInitialize:Ve})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.32.3_@elliemae+pui-logrocket@1.5.0/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>J});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js");class i{#e;#t;#n;#i=new Map;static DEFAULT_THROTTLE_MS=1e4;constructor(F){this.#e=F.logger,this.#t=F.enabled??!0,this.#n=F.throttleMs??i.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(F,L){if(!this.#t){this.#e.debug(L);return}if(this.#n>0){const B=performance.now(),K=this.#i.get(F);if(K!==void 0&&B-K<this.#n){this.#e.debug(L);return}this.#i.set(F,B)}this.#e.audit(L)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:W}=window;try{return W?.location?.href}catch{return null}},g=W=>{if(!W||W==="about:blank")return"*";try{const{origin:F}=new URL(W);return F==="null"||!F?"*":F}catch{try{const{origin:F}=new URL(W,document.baseURI);return F==="null"||!F?"*":F}catch{return"*"}}},b=()=>window.self!==window.parent,v=(W,F)=>{const L=F||document.body,B=document.defaultView?.getComputedStyle?.(L,null),K=B?B[W]:"0";return parseInt(K,10)},h="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},S=(W,F)=>!!(window.opener&&W.source===window.opener||F&&W.data?.handshakeToken===F),P=()=>new Promise((W,F)=>{if(b())W({origin:g(document.referrer||p()),window:window.parent});else{const L=window,B=j();let K;const M=H=>{if(S(H,B)){const{source:G,type:q}=H.data||{};if(G===h&&q===s.G.HandShake){const{origin:te}=H,ce=H.source;clearTimeout(K),(0,r._)({targetWin:ce,targetOrigin:te,messageType:s.G.HandShakeAck,messageBody:{}}),L.removeEventListener("message",M),W({origin:te,window:ce})}}};K=setTimeout(()=>{L.removeEventListener("message",M),F(new Error(`Host handshake timed out after ${x}ms`))},x),L.addEventListener("message",M)}});let w=!1;const E=W=>{w=W},O=(W=null)=>{let F=W;const L=()=>{if(!F&&(F=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!F))throw new Error("Guest definition not found");return F};window.elli=window.elli??{},window.elli.script={guest:{create:(B,K)=>L().addScript(B,K,{asModule:!1})},connect:B=>(w||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);"),L().connect(B)),getObject:B=>(w||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);"),L().getObject(B)),setLogLevel:B=>(w||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),L().setLogLevel(B)),subscribe:(B,K,M,H)=>(w||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); });"),L().subscribe({eventId:`${B}.${K}`,callback:G=>M(G?.obj,G?.eventParams,G?.eventOptions),criteria:H?.criteria,...H?.filterOnGuest===!1?{filterOnGuest:!1}:{}})),unsubscribe:(B,K,M)=>(w||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 });"),L().unsubscribe({eventId:`${B}.${K}`,token:M}))}};try{O()}catch{}var D=null;const T=12e4,I=2e3,N=2e3,z={eventFeedback:!0},k=()=>{const{document:W}=window,F=W.body,L=W.documentElement,K={height:F.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(F.scrollWidth,L.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:g(W.referrer||p()),messageType:s.G.GuestResize,messageBody:K}),window.removeEventListener("load",k)};b()&&window.addEventListener("load",k);const U={"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"},$=["click","scroll","keypress","touchstart"],V=()=>{const W=document.currentScript?.src||"file:///var/opt/jenkins/workspace/UIPlatform_app-sdk_master/608/node_modules/.pnpm/@elliemae+ssf-guest@2.32.3_@elliemae+pui-logrocket@1.5.0/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",F=W?new URL(W).hostname:"localhost";return U[F]||U["cdn.mortgagetech.q1.ice.com"]};class J{#e;#t;#n;#i=!1;#r=null;#o=!1;#s=new Map;#l=null;#a=null;#f=null;#d=null;#c=null;#u=null;#h=new Map;#p(){if(!this.#c||!this.#d)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#c,hostOrigin:this.#d}}#E(F){let L={...z};if(F){const B={...F};delete B.window,L={...L,...B}}return L}#A(F){const{hostWindow:L,hostOrigin:B}=this.#p();this.#n.send({targetWin:L,targetOrigin:B,messageType:s.G.GuestReady,messageBody:F})}#x=!1;#m=null;#v=null;#w=null;#O=!0;#b=T;#g;#_=null;#j;constructor(F){const{console:L=!1,url:B=window.__ICE__?.diagnosticsUrl||V(),index:K="ssf-guest-v2",team:M="ICE",appName:H="SSF Guest V2 Application"}=F?.logger??{};this.#g=F?.logger,this.#x=F?.usesDevConnectAPI??!1,this.#O=F?.keepAlive??!0,this.#b=F?.keepAliveInterval??T;const G=L?(0,m.Console)():(0,m.http)(B);this.#t=F?.appLogger??(0,m.logger)({transport:G,index:K,team:M,appName:H}),this.#j=new i({logger:this.#t,enabled:F?.auditOperations,throttleMs:F?.auditThrottleMs}),(0,m.webvitals)(this.#t),(0,m.logUnhandledErrors)(this.#t),this.#e=(0,t.A)(),this.#n=new r.K(this.#t,this.#e),O(this),this.#t.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#e})}#y=()=>({guestId:this.#l,guestTitle:this.#a,guestUrl:this.#f});#S=F=>{if(!F||!F.objectId)throw this.#t.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const L=new d.V(F.objectId,F.objectType);return F.functions&&F.functions.forEach(B=>{Object.defineProperty(L,B,{value:async(...K)=>{const H=L[B]?.callContext?.callChain;return this.#T({objectId:L.id,functionName:B,functionParams:[...K],callerChain:H})},enumerable:!0})}),F.events&&F.events.forEach(B=>{Object.defineProperty(L,B,{value:new a.b3({objectId:L.id,name:B,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${L.id}")`),L};#T=async({objectId:F,functionName:L,functionParams:B,callerChain:K})=>{this.#t.debug(`Invoking scripting object method ${F}.${L}()...`);const M=[];if(B)for(let ce=0;ce<B.length;ce+=1){const ie=B[ce];ie instanceof Promise&&M.push(ie.then(fe=>{B[ce]=fe}))}await Promise.all(M);const{hostWindow:H,hostOrigin:G}=this.#p(),q=await this.#n.invoke({targetWin:H,targetOrigin:G,messageType:s.G.ObjectInvoke,messageBody:{objectId:F,functionName:L,functionParams:B,...K?.length?{callerChain:K}:{}}}),te=this.#C(q);return this.#j.log(`invoke:${F}.${L}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:F,scriptingMethod:L,...this.#y()}),te};#P(F,L){return(0,c.ts)(F,L,{regexCache:this.#h})}#C=F=>F?.type==="object"&&"object"in F?this.#S(F.object):F?.type==="value"?F.value:F;#R=({body:F})=>{F?.logLevel&&(this.#t.setLogLevel(F.logLevel),this.#t.debug(`Log level changed by host to ${F.logLevel}`)),this.#l=F?.guestId??null,this.#a=F?.guestTitle??null,this.#f=F?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#y()})};#D=()=>{window.focus()};#I=async()=>{await this.close(),window.close()};#k=()=>{b()||(this.#u=setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#F=async({sourceWin:F,sourceOrigin:L,requestId:B,body:K})=>{const M=this.#S(K.object);if(M){const H=(0,a._s)(M.id,K.eventName);this.#t.debug(`Received event "${H}" from host`);let G;K.eventHandler?G=[{callback:window[K.eventHandler],token:(0,t.A)(),eventId:H}]:G=this.#s.get(H)||[];const q=[];if(G.forEach(te=>{if(te?.callback){if(te.criteria&&te.filterOnGuest!==!1&&!(K.eventParams?this.#P(K.eventParams,te.criteria):!1)){this.#t.debug(`Event ${H} did not match criteria for subscriber ${te.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${te.callback.name} for event ${H}`);const ce=te.callback({obj:M,eventName:K.eventName,eventParams:K.eventParams,eventOptions:K.eventOptions});ce instanceof Promise?q.push(ce):typeof ce<"u"&&q.push(Promise.resolve(ce))}}),B){const te=await Promise.all(q);this.#n.respond({targetWin:F,targetOrigin:L,requestId:B,response:te}),this.#j.log(`event:${H}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:H,scriptingObject:M.id,...this.#y()})}else this.#j.log(`event:${H}`,{message:"Guest proxy processed event from host",scriptingEventId:H,scriptingObject:M.id,...this.#y()})}};#N=async()=>{if(!(!this.#m||!this.#v||!this.#w))try{await fetch(`${this.#w}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#m,client_id:this.#v}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(F){this.#t.warn(`Failed to extend token lifetime: ${F.message}`)}};#M=async()=>{if(this.#m&&this.#v&&this.#w)try{await fetch(`${this.#w}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#m,client_id:this.#v}).toString()}`,{method:"POST"})}catch(F){this.#t.error(`Error revoking token. ${F.message}`)}finally{this.#m=null,this.#v=null}};#B=async()=>{if(this.#O)try{const F=await Promise.race([this.getObject("application"),new Promise(L=>{setTimeout(()=>L(null),I)})]);F?(this.#_=n(async()=>{try{await F.keepSessionAlive(),await this.#N()}catch(L){this.#t.error(`Error keeping session alive. ${L.message}`)}},this.#b,{leading:!1}),$.forEach(L=>{document.addEventListener(L,this.#_)})):this.#t.warn("Application object not available to send keep alive")}catch(F){this.#t.error(`Error getting application object. ${F.message}`)}};addScript=async(F,L,B={})=>{const{asModule:K=!0}=B;if(!this.#i&&F){await this.connect();const M=document.createElement("script");M.setAttribute("src",F),K&&M.setAttribute("type","module"),await new Promise((H,G)=>{let q,te;const ce=()=>{M.removeEventListener("load",q),M.removeEventListener("error",te)};q=()=>{ce(),this.#i=!0,E(!0),H()},te=()=>{ce(),G(new Error(`Failed to load script: ${F}`))},M.addEventListener("load",q),M.addEventListener("error",te),this.#r=L.appendChild(M)})}};#U=()=>{const F=this.#c,L=this.#d;try{F&&L&&this.#s.forEach(B=>{B.forEach(({token:K,eventId:M})=>{try{this.#n.send({targetWin:F,targetOrigin:L,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:M,token:K}})}catch(H){this.#t.debug(`Failed to notify host of unsubscribe for ${M}: ${H.message}`)}})})}finally{this.#s.clear()}};#L=()=>{this.#u&&(clearInterval(this.#u),this.#u=null),this.#_&&($.forEach(F=>{document.removeEventListener(F,this.#_)}),this.#_.cancel(),this.#_=null)};close=async()=>{if(this.#o){if(this.#U(),this.#c&&this.#d)try{this.#n.send({targetWin:this.#c,targetOrigin:this.#d,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#d,window:this.#c})}catch(F){this.#t.debug(`Failed to notify host of guest close: ${F.message}`)}this.#n.close(),this.#L(),await this.#M(),window.removeEventListener("beforeunload",this.close),this.#o=!1,this.#t.audit({message:"Guest disconnected from host",...this.#y()}),this.#l=null,this.#f=null,this.#a=null}};connect=async F=>{if(this.#o){this.#A(this.#E(F));return}let L=window;F?.window&&(L=F.window);const B=this.#E(F),K=await P();this.#d=K.origin,this.#c=K.window,this.#n.initialize(L),this.#n.addSender({origin:this.#d,window:this.#c}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#F.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#R.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#D.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#I.bind(this)}),this.#A(B),this.#o=!0,this.#k(),this.#x&&await this.getAuthToken(),await this.#B(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})};getAuthToken=async()=>{if(!this.#m&&this.#o)try{const F=await this.getObject("auth");if(F){const L=await F.getAccessToken();this.#m=L?.access_token,this.#w=L?.host_name,this.#v=L?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(F){this.#t.error(`Error getting access token from auth object. ${F.message}`)}return this.#m};getObject=async F=>{if(this.#t.debug(`Retrieving scripting object "${F}" from host...`),!this.#o)throw new Error("Not connected to host");const{hostWindow:L,hostOrigin:B}=this.#p(),K=await this.#n.invoke({targetWin:L,targetOrigin:B,messageType:s.G.ObjectGet,messageBody:{objectId:F},responseTimeoutMs:N});if(!K?.object)throw new Error(`The requested object (${F}) is not available`);const M=this.#S(K.object);return this.#j.log(`getObject:${F}`,{message:"Received scripting object from host",scriptingObject:F,...this.#y()}),M};listObjects=async()=>{if(this.#t.debug("Retrieving names of scripting objects exposed by host..."),!this.#o)throw new Error("Not connected to host");const{hostWindow:F,hostOrigin:L}=this.#p(),B=await this.#n.invoke({targetWin:F,targetOrigin:L,messageType:s.G.ListObjects,messageBody:{}});return this.#j.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:B,...this.#y()}),B};removeScript=()=>{if(this.#i&&this.#r){const{parentNode:F}=this.#r;F?.removeChild?.(this.#r)}};setLogLevel=F=>{this.#t.setLogLevel(F),this.#t.debug(`Log level changed by guest to ${F}`)};subscribe=F=>{const{eventId:L,criteria:B,callback:K,filterOnGuest:M}=F;this.#t.debug(`Registering subscription for event ${L}`);const H=this.#s.get(L.toLowerCase())||[],G=(0,t.A)(),q={callback:K,token:G,criteria:B,eventId:L};M===!1&&(q.filterOnGuest=!1),H.push(q),this.#s.set(L.toLowerCase(),H);const{hostWindow:te,hostOrigin:ce}=this.#p();return this.#n.send({targetWin:te,targetOrigin:ce,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:L,criteria:B,token:G,...M===!1?{filterOnGuest:!1}:{}}}),this.#t.debug(`Subscribed to event ${L} with token ${G}`),G};unsubscribe=F=>{const{eventId:L,token:B}=F,K=this.#s.get(L.toLowerCase());if(K){const M=K.length,H=K.filter(G=>G.token!==B);if(H.length<M){this.#s.set(L.toLowerCase(),H);const{hostWindow:G,hostOrigin:q}=this.#p();this.#n.send({targetWin:G,targetOrigin:q,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:L,token:B}}),this.#t.debug(`Unsubscribed from event ${L}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.32.3_@elliemae+pui-diagnostics@3.12.6/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>B});var t=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.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(K,M){return(0,c.of)(M)?(0,c.ts)(K,M):!0}var g=(K=>(K.Popup="popup",K.Embed="embed",K))(g||{}),b=(K=>(K.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",K.AllowDownloads="allow-downloads",K.AllowForms="allow-forms",K.AllowModals="allow-modals",K.AllowOrientationLock="allow-orientation-lock",K.AllowPointerLock="allow-pointer-lock",K.AllowPopups="allow-popups",K.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",K.AllowPresentation="allow-presentation",K.AllowSameOrigin="allow-same-origin",K.AllowScripts="allow-scripts",K.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",K.AllowTopNavigation="allow-top-navigation",K.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",K))(b||{});const v=K=>{if(K==="about:blank")return"*";try{const{origin:M}=new URL(K);return M==="null"||!M?K:M}catch{const{origin:H}=new URL(K,document.baseURI);return H}},h=K=>K.flat(1/0).filter(M=>M!==void 0);function x(K){return typeof K=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com",".elliemae.io",".ellieservices.com"],S=["localhost","127.0.0.1"],P=K=>K.split(".").slice(-2).join("."),w=K=>S.includes(K)||j.some(M=>K===M.slice(1)||K.endsWith(M)),E=K=>{const M=P(window.location.hostname),H=P(K);return M===H},O=K=>{if(!K)return!1;try{const{hostname:M}=new URL(K,document.baseURI);return w(M)||E(M)}catch{return!1}},D=1e3,T=5;class I{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;#i=null;#r=null;#o=null;constructor(M){const{guestId:H,domElement:G=null,title:q,url:te,window:ce,searchParams:ie={},openMode:fe=g.Embed,remoting:se,perfTracker:ae,handshakeToken:he}=M;this.id=H,this.title=q,this.url=te,this.origin=v(te),this.searchParams=ie,this.domElement=G,this.window=ce,this.openMode=fe,this.capabilities={},this.#t=ae,this.#e=se,this.#n=he}dispose=()=>{if(this.#s(!1),this.openMode===g.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#e.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});#s=M=>{this.#i&&(clearInterval(this.#i),this.#i=null),this.#r&&(this.#e.unlisten({messageType:i.G.HandShakeAck,callback:this.#r}),this.#r=null);const H=this.#o;this.#o=null,H&&M!==void 0&&H(M)};#l=()=>{this.#o&&this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}})};handShake=()=>(this.#s(!1),this.openMode!==g.Popup?Promise.resolve(!1):new Promise(M=>{let H=0;this.#o=M;const G=()=>{this.#o&&this.#s(!0)};this.#r=G,this.#l(),H=1,this.#i=setInterval(()=>{if(this.#o){if(H>=T){this.#s(!1);return}this.#l(),H+=1}},D),this.#e.listen({messageType:i.G.HandShakeAck,callback:G})}));init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===g.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(M,H)=>{let G;if(this.#t.enabled){const q=`ScriptingObject.Event.${M.object.objectId}.${M.eventName}`;G=this.#t.start(q,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.ObjectEvent,messageBody:M,responseTimeoutMs:H}).finally(()=>{G&&this.#t.end(G,{appId:this.id,appUrl:this.url})})};send=M=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...M})}}const N=new Set(["SSF.Guest.Load"]);class z{#e;#t;#n;#i=new Set;#r;#o=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(M){this.#e=M.analyticsObj,this.#t=M.enabled??!1,this.#n=M.samplingRatio??z.DEFAULT_SAMPLING_RATIO,this.#r=M.dedupWindowMs??z.DEFAULT_DEDUP_WINDOW_MS,this.#s=M.onError}get enabled(){return this.#t}start(M,H){if(this.#t)try{const G=N.has(M);return!G&&!this.shouldTrack(M)?void 0:(!G&&!this.#i.has(M)&&(this.#e.setTimingEventSamplingRatio({[M]:this.#n}),this.#i.add(M)),this.#e.startTiming(M,H).catch(q=>{this.reportError(`startTiming failed: ${q.message}`)}),M)}catch(G){this.reportError(`startTiming failed: ${G.message}`);return}}end(M,H){if(M)try{this.#e.endTiming(M,H).catch(G=>{this.reportError(`endTiming failed: ${G.message}`)})}catch(G){this.reportError(`endTiming failed: ${G.message}`)}}reportError(M){try{this.#s?.(M)}catch{}}shouldTrack(M){if(this.#r<=0)return!0;const H=performance.now(),G=this.#o.get(M);return G!==void 0&&H-G<this.#r?!1:(this.#o.set(M,H),!0)}}const k=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin],U="module",$="module.unloading",V="module.unmount",J=1e3,W=new n.P(U),F=K=>Array.isArray(K)&&K.some(M=>M===!1),L=()=>{};class B{hostId;#e;#t;#n;#i;#r=new Map;#o=new Map;#s=new Map;#l=new Map;#a;#f=null;#d=null;#c=new Map;#u=new Set;#h=new Set;#p=new Set;#E=null;#A=null;#x=new Map;#m;#v;constructor(M,H){if(this.hostId=M,!H?.logger)throw new Error("Logger is required");if(!H?.analyticsObj)throw new Error("Analytics object is required");this.#n=H.logger,this.#i=H.analyticsObj;const G={analyticsObj:H.analyticsObj,enabled:H?.measurePerformance,samplingRatio:H?.performanceSamplingRatio,onError:q=>this.#n.debug(q)};if(this.#m=new z({...G,dedupWindowMs:H?.performanceDedupWindowMs}),this.#v=new z({...G,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new r.K(this.#n,this.#t),H?.readyStateCallback&&typeof H?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#f=H?.readyStateCallback||null,this.#E=H?.onGuestEventSubscribe||null,this.#A=H?.onGuestEventUnsubscribe||null,this.#a=new s.qE,this.#e.initialize(window),this.#Q(),window.addEventListener("beforeunload",this.#b),window.addEventListener("pagehide",this.#b),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#w=(M,H)=>{const G={event:M,...H};this.#i.sendBAEvent(G).catch(q=>{this.#n.debug(`Analytics sendBAEvent failed: ${q.message}`)})};#O=()=>{this.#r.forEach(M=>{M.openMode!==g.Popup||M.window?.closed||M.dispose()})};#b=()=>{this.#O(),Array.from(this.#r.keys()).forEach(M=>this.#Y(M))};#g=M=>this.#o.get(M);#_=M=>this.#s.get(M)??null;#j=M=>typeof M?._toJSON=="function";#y=(M,H)=>this.#j(M)?(this.#a.has(M?.id,H)||this.#a.addScriptingObject(M,H?{guestId:H?.id}:{}),{type:"object",object:M._toJSON()}):{type:"value",value:M};#S=M=>typeof M=="string"?M:M instanceof Error?M.message:"An unexpected error occurred in the host application";#T=M=>{M.ready&&this.#e.send({targetWin:M.window,targetOrigin:M.origin,messageType:i.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...M.getInfo()}})};#P=({guest:M,obj:H,functionName:G,functionParams:q,callerChain:te})=>{const ce=H[G];return x(ce)?(this.#n.debug(`Invoking host implementation of ${H.id}.${String(G)}()`),new Promise(ie=>{Object.defineProperty(ce,"callContext",{value:{guest:M,...te?.length?{callChain:te}:{}},configurable:!0,enumerable:!0,writable:!0}),ie(ce(...q))})):(this.#n.warn(`Attempt to call invalid function on object type ${H.objectType}: ${String(G)}`),Promise.reject(new Error(`Method '${G}' not found in Scripting Object '${H.id}'`)))};#C=({sourceWin:M,sourceOrigin:H,requestId:G})=>{const q=this.#g(M);if(!q){this.#n.warn(`Received ready event for unknown guest. requestId: ${G}`);return}if(!q.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:M,targetOrigin:H,requestId:G,ex:"Guest must be initialized before it is marked as ready"});return}if(!q.ready){q.ready=!0;const te=q.getInfo();this.#m.end("SSF.Guest.Load",{appId:te.guestId,appUrl:te.guestUrl}),this.#T(q),this.#f?.(q),this.#n.audit({message:"Guest is ready",...te})}};#R=({sourceWin:M,sourceOrigin:H,requestId:G,body:q})=>{const te=this.#g(M);if(!te){this.#n.warn(`Received ready event for unknown guest. requestid = ${G}`);return}te.initialized?q&&(te.capabilities={...te.capabilities,...q}):(te.initialized=!0,te.capabilities=q||{},this.#n.audit({message:"Guest is initialized",...te.getInfo()})),(!q||!q.onReady)&&this.#C({sourceWin:M,sourceOrigin:H,requestId:G,type:"",body:null})};#D=({sourceWin:M})=>{if(!M)return;const H=this.#$(M);H&&this.#z(H.id)};#I=({sourceWin:M,sourceOrigin:H,requestId:G})=>{this.#n.debug(`Processing listObjects request. requestId = ${G}`);const q=this.#g(M);if(!q)return this.#n.warn("Rejected object request from unknown guest window"),!1;const te=this.#a.listScriptingObjects(q.id);return this.#e.respond({targetWin:M,targetOrigin:H,requestId:G,response:te}),this.#n.debug({message:"name of scripting objects returned",requestId:G,objects:te,...q.getInfo()}),!0};#k=({sourceWin:M,sourceOrigin:H,requestId:G,body:q})=>{const{objectId:te}=q;this.#n.debug(`Processing getObject request for object ${te}. requestId = ${G}`);const ce=this.#g(M);if(!ce)return this.#n.warn("Rejected object request from unknown guest window"),!1;const ie=this.getScriptingObject(te,{guest:ce});return ie?(this.#e.respond({targetWin:M,targetOrigin:H,requestId:G,response:this.#y(ie,ce)}),this.#n.debug({message:"Scripting Object returned",requestId:G,scriptingObject:te,...ce.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${te} from guest ${ce.id}`),this.#e.raiseException({targetWin:M,targetOrigin:H,requestId:G,ex:`The requested object (${te}) is not available`}),!1)};#F=({sourceWin:M,requestId:H,body:G})=>{const{eventId:q,criteria:te,filterOnGuest:ce,token:ie}=G;this.#n.debug(`Processing guest event subscribe request for event ${q}. requestId = ${H}`);const fe=this.#g(M);if(!fe){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#E?.({guestId:fe.id,eventId:q,criteria:te,token:ie,...ce===!1?{filterOnGuest:!1}:{}})}catch(se){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${q}: ${se.message}`)}},0)};#N=({sourceWin:M,requestId:H,body:G})=>{const{eventId:q,token:te}=G;this.#n.debug(`Processing guest event unsubscribe request for event ${q}. requestId = ${H}`);const ce=this.#g(M);if(!ce){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#A?.({guestId:ce.id,eventId:q,token:te})}catch(ie){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${q}: ${ie.message}`)}},0)};#M=({sourceWin:M,requestId:H,body:G})=>{const q=this.#g(M);if(!q||!this.#u.has(q.id)||this.#h.has(q.id)){q?this.#n.debug(`Ignored resize event from guest ${q.id}. requestId = ${H}`):this.#n.warn(`Received resize event from unknown guest. requestid = ${H}`);return}q.domElement&&(q.domElement.style.height=`${G.height}px`),this.#n.debug(`Guest ${q.id} resized to ${G.width}x${G.height}`)};#B=({sourceWin:M,sourceOrigin:H,requestId:G,body:q})=>{const{objectId:te,callerChain:ce}=q,ie=this.#g(M);if(!ie)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${te}.${String(q.functionName)}() called from guest "${ie.id}" (requestId = ${G})`);const fe=this.getScriptingObject(te,{guest:ie});if(!fe)return this.#n.warn(`Invocation of unknown or unauthorized object ${te} from guest ${ie.id}`),this.#e.raiseException({targetWin:M,targetOrigin:H,requestId:G,ex:`The requested object (${te}) is not available`}),!1;const se=ie.getInfo();let ae;if(this.#m.enabled){const he=`ScriptingObject.API.${te}.${q.functionName}`;ae=this.#m.start(he,{appId:se.guestId,appUrl:se.guestUrl})}return this.#P({guest:ie,obj:fe,functionName:q.functionName,functionParams:q.functionParams,callerChain:ce}).then(he=>{this.#e.respond({targetWin:M,targetOrigin:H,requestId:G,response:this.#y(he,ie)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:G,scriptingObject:te,scriptingMethod:q.functionName,...se})}).catch(he=>{this.#e.raiseException({targetWin:M,targetOrigin:ie.origin,requestId:G,ex:he}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:G,scriptingObject:te,scriptingMethod:q.functionName,...se})}).finally(()=>{ae&&this.#m.end(ae,{appId:se.guestId,appUrl:se.guestUrl})}),!0};#U=()=>{this.#e.listen({messageType:i.G.GuestResize,callback:this.#M})};#L=()=>{this.#e.unlisten({messageType:i.G.GuestResize,callback:this.#M})};#X=M=>{if(this.#u.has(M))return;const H=this.#u.size===0;this.#u.add(M),H&&this.#U()};#J=M=>{this.#u.delete(M)&&this.#u.size===0&&this.#L()};#Q=()=>{this.#e.listen({messageType:i.G.GuestReady,callback:this.#R}),this.#e.listen({messageType:i.G.GuestReadyComplete,callback:this.#C}),this.#e.listen({messageType:i.G.GuestClose,callback:this.#D}),this.#e.listen({messageType:i.G.ListObjects,callback:this.#I}),this.#e.listen({messageType:i.G.ObjectGet,callback:this.#k}),this.#e.listen({messageType:i.G.ObjectInvoke,callback:this.#B}),this.#e.listen({messageType:i.G.GuestEventSubscribe,callback:this.#F}),this.#e.listen({messageType:i.G.GuestEventUnsubscribe,callback:this.#N})};#Z=M=>M instanceof d.b3||typeof M?.subscribe=="function";#W=M=>{const H=new I({...M,remoting:this.#e,perfTracker:this.#v});return H.init(),this.#r.set(M.guestId,H),this.#o.set(H.window,H),this.#s.set(H.url,H),H};#$=M=>{if(typeof M=="string")return this.#r.get(M);const H=this.#o.get(M);return H||Array.from(this.#r.values()).find(G=>G.domElement===M)};#G=M=>M.openMode===g.Embed&&(!M.domElement||!M.domElement.isConnected);#q=M=>{this.#l.get(M)?.forEach(G=>{Promise.resolve(G({id:M})).catch(L)})};#z=M=>{this.#r.has(M)&&(this.#p.has(M)||(this.#p.add(M),this.#q(M)),this.#h.has(M)||this.#Y(M))};#ee=M=>{const H=M.domElement,G=H?.parentNode;if(!H||!G)return;const q=new MutationObserver(()=>{this.#G(M)&&(this.#H(M.id),this.#z(M.id))});q.observe(G,{childList:!0}),this.#c.set(M.id,q)};#H=M=>{this.#c.get(M)?.disconnect(),this.#c.delete(M)};#ne=()=>{this.#c.forEach(M=>M.disconnect()),this.#c.clear()};#te=()=>{this.#d||(this.#d=setInterval(()=>{const M=[];this.#r.forEach(H=>{H.openMode===g.Popup&&H.window.closed&&M.push(H)}),M.forEach(H=>{this.#z(H.id)})},1e3))};#re=()=>{if(!this.#d)return;Array.from(this.#r.values()).some(H=>H.openMode===g.Popup)||(clearInterval(this.#d),this.#d=null)};#oe=M=>{const H=O(M),G=H?void 0:(0,t.A)();return{popupUrl:G?`${M}#hs=${G}`:M,handshakeToken:G,trusted:H}};#se=M=>{const{url:H,title:G,popupWindowFeatures:q={},searchParams:te,guestId:ce,onLoad:ie,onError:fe}=M,{width:se=800,height:ae=600,top:he=100,left:re=100}=q;let je=this.#_(H);if(je)je.window.closed||(O(H)?window.open("",G):je.window.focus());else{const ze=Object.entries({width:se,height:ae,top:he,left:re}).filter(([,De])=>De).map(([De,Be])=>`${De}=${Be}`).join(","),{popupUrl:Xe,handshakeToken:en,trusted:ve}=this.#oe(H),pe=window.open(Xe,G,`popup, ${ze}`);if(pe)setTimeout(()=>{try{ie?.(ce)}catch(De){this.#n.debug(`Error occurred in onLoad for guest with id '${ce}': ${De.message}`)}},0);else throw setTimeout(()=>{try{fe?.(ce)}catch(De){this.#n.debug(`Error occurred in onError for guest with id '${ce}': ${De.message}`)}},0),new Error("Failed to open guest application in popup window");ve||(pe.opener=null),je=this.#W({guestId:ce,window:pe,title:G,url:H,searchParams:te,openMode:g.Popup,handshakeToken:en}),this.#te()}return je};#V=(M,H,G)=>{setTimeout(()=>{try{H?.(M)}catch(q){this.#n.debug(`Error occurred in ${G} for guest with id '${M}': ${q.message}`)}},0)};#ie=(M,H,G={})=>{const{onLoad:q,onError:te}=G,ce=()=>{this.#V(H,q,"onLoad"),this.#n.debug(`frame loaded for guest with id '${H}'`),M.removeEventListener("load",ce)},ie=()=>{this.#V(H,te,"onError"),this.#n.error(`frame load failed for guest with id '${H}'`),M.removeEventListener("error",ie)};M.addEventListener("load",ce),M.addEventListener("error",ie)};#ae=M=>{const{url:H,title:G,targetElement:q,searchParams:te,guestId:ce,onLoad:ie,onError:fe,options:se={}}=M,ae=q.ownerDocument??document,{fitToContent:he=!1,disableSandbox:re=!1,sandboxValues:je=[],customSandboxValues:ze=[],style:Xe="",permissionPolicy:en=""}=se;if(!G)throw new Error("title is required");const ve=ae.createElement("iframe");ve.setAttribute("id",ce),this.#ie(ve,ce,{onLoad:ie,onError:fe}),ve.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${Xe}`),re||ve.setAttribute("sandbox",ze.length>0?ze.join(" "):[...k,...je].join(" ")),ve.setAttribute("title",G),ve.setAttribute("src",H),en&&ve.setAttribute("allow",en),q.appendChild(ve);const pe=ae.getElementById(ce),De=this.#W({guestId:ce,domElement:pe,window:pe.contentWindow,title:G,url:H,searchParams:te,openMode:g.Embed});return he&&this.#X(De.id),this.#ee(De),De};#le=(M,H)=>{let G="";return Object.keys(H).forEach(q=>{G+=`${(G.length?"&":"")+encodeURIComponent(q)}=${encodeURIComponent(H[q])}`}),M+(G?(M.indexOf("?")>=0?"&":"?")+G:"")};addScriptingObject=(M,H)=>{if((0,a.h)(M)){const G=this.cloneScriptingObject(M);this.#a.addScriptingObject(G,H)}else this.#a.addScriptingObject(M,H)};cloneScriptingObject=M=>{if(!M)throw new Error("proxy is required");const H=new n.P(M.id,M.objectType);let G=[];return Object.keys(M).forEach(q=>{const te=M[q];if(this.#Z(te)){const ce=new d.Jh({name:te.name||q,objectId:H.id});if(Object.defineProperty(H,q,{value:ce,enumerable:!0}),te instanceof d.b3){const ie=({eventParams:se,eventOptions:ae})=>this.dispatchEvent({event:ce,eventParams:se,eventOptions:ae}),fe=te.subscribe(ie);G.push(()=>{te.unsubscribe(fe)})}else{const ie=te.subscribe?.((fe,se,ae)=>this.dispatchEvent({event:ce,eventParams:se,eventOptions:ae}));G.push(()=>{te.unsubscribe?.(ie)})}}else if(x(te)&&(Object.defineProperty(H,q,{value:async(...ce)=>{const ie=H[q]?.callContext;if(ie?.guest){const se=ie.callChain??[],ae=ie.guest.id,he=this.#x.get(ae),re={id:ae};he&&(re.metadata=he),Object.defineProperty(te,"callContext",{value:{callChain:[...se,re]},configurable:!0,enumerable:!0,writable:!0})}const fe=await te(...ce);return(0,a.h)(fe)?this.cloneScriptingObject(fe):fe},enumerable:!0}),q==="dispose")){const ce=H.dispose;Object.defineProperty(H,q,{value:()=>(H._dispose(),ce.apply(H)),enumerable:!0})}}),H._dispose=()=>{G.forEach(q=>{q?.()}),G=[]},H};close=()=>{this.#d&&(clearInterval(this.#d),this.#d=null),this.#ne(),this.#b(),this.#u.clear(),this.#p.clear(),this.#L(),this.#l.clear(),this.removeAllScriptingObjects(),this.#x.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#b),window.removeEventListener("pagehide",this.#b),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#de=({targetGuest:M,guestCapabilities:H,scriptingEventId:G,dispatchToGuest:q})=>{const te=ce=>{if((0,c.of)(H)&&!p(ce.capabilities,H)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:G,guestCapabilities:H,...ce.getInfo()});return}q(ce)};M?te(M):this.#r.forEach(te)};#ue=(M,H)=>(H?this.getScriptingObject(M,{guest:H}):this.getScriptingObject(M))??(M===U&&H?W:null);dispatchEvent=async M=>{const{event:{id:H,name:G},eventParams:q,eventOptions:te={}}=M,{eventHandler:ce=null,timeout:ie=null,window:fe=null,guestId:se,guestCapabilities:ae}=te,he=H.split(".")[0],re=se||fe,je=re?this.#$(re):null,ze=this.#ue(he,je??null);if(!ze)return this.#n.warn(`Attempt to dispatch event ${G} on unknown object ${he}`),Promise.resolve([]);const Xe={object:ze._toJSON(),eventName:G,eventParams:q,eventHandler:ce,eventOptions:{allowsFeedback:!1}};ie&&!Number.isNaN(ie)&&(Xe.eventOptions={allowsFeedback:!0,timeout:Number(ie)});const en=[];let ve;const pe=De=>{const Be=De.getInfo();ie&&De?.capabilities?.eventFeedback?(en.push(De.dispatchEvent(Xe,ie)),!ve&&this.#m.enabled&&(ve=this.#m.start(`ScriptingObject.Event.${ze.id}.${G}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:H,...Be})):(De.send({messageType:i.G.ObjectEvent,messageBody:Xe}),this.#n.debug({message:"Event dispatched",scriptingEventId:H,...Be}))};return this.#de({targetGuest:je??null,guestCapabilities:ae,scriptingEventId:H,dispatchToGuest:pe}),Promise.all(en).then(De=>(this.#n.debug({message:"Event feedback received",scriptingEventId:H}),h(De))).catch(De=>{throw this.#n.error({message:"Error processing event",eventId:H,exception:De}),De}).finally(()=>{ve&&this.#m.end(ve,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(M,H)=>this.#a.getObject(M,H?.guest);loadGuest=M=>{const{id:H,url:G,targetElement:q,title:te,searchParams:ce={},onLoad:ie,onError:fe,options:se={},metadata:ae}=M;if(!H)throw new Error("id for guest application is required");let he=H;if(this.#r.has(he)){let en=1;for(;this.#r.has(`${H}-${en}`);)en+=1;he=`${H}-${en}`}const{openMode:re=g.Embed,popupWindowFeatures:je={}}=se,ze=this.#le(G,ce);let Xe=null;if(this.#m.start("SSF.Guest.Load",{appId:he,appUrl:ze}),re===g.Popup)Xe=this.#se({guestId:he,url:ze,title:te,searchParams:ce,popupWindowFeatures:je,onLoad:ie,onError:fe});else if(re===g.Embed)Xe=this.#ae({guestId:he,url:ze,title:te,targetElement:q,searchParams:ce,onLoad:ie,onError:fe,options:se});else throw new Error(`Invalid openMode: ${re}`);return ae&&this.#x.set(he,ae),this.#n.audit({message:"Guest loaded",...Xe.getInfo()}),Xe};loadGuests=M=>{const{id:H,url:G,targetElement:q,title:te,searchParamsList:ce=[],options:ie={}}=M;ce.forEach((fe,se)=>{this.loadGuest({id:`${H}-${se}`,url:G,title:te,targetElement:q,searchParams:fe,options:ie})},this)};removeAllScriptingObjects=M=>{this.#a.removeAllScriptingObjects(M)};removeScriptingObject=(M,H)=>{this.#a.removeScriptingObject(M,H)};setLogLevel=M=>{this.#n.setLogLevel(M),this.#r.forEach(this.#T),this.#n.debug("Dispatched config events to all guests")};#K=async(M,H,G)=>this.dispatchEvent({event:{id:H,name:G},eventParams:{moduleId:M.id},eventOptions:{timeout:J,guestId:M.id}});#ce=async M=>{try{const H=await this.#K(M,$,"unloading");if(F(H))return this.#n.info(`Unload denied by guest ${M.id} via module.unloading event`),!1}catch(H){this.#n.warn({message:`Error dispatching module.unloading event for ${M.id}; proceeding with unload`,exception:H})}return!0};#me=async M=>{try{await this.#K(M,V,"unmount")}catch(H){this.#n.warn({message:`Error dispatching module.unmount event for ${M.id}`,exception:H})}};#Y=M=>{this.unloadGuest(M).catch(L)};#pe=M=>{this.#H(M.id),this.#J(M.id),M.dispose(),this.removeAllScriptingObjects(M.id),this.#o.delete(M.window),this.#s.delete(M.url),this.#x.delete(M.id),this.#r.delete(M.id),this.#l.delete(M.id),this.#p.delete(M.id),this.#n.audit({message:"Guest is removed from host",...M.getInfo()}),this.#re()};unloadGuest=async M=>{const H=this.#$(M);if(H&&!this.#h.has(H.id)){this.#h.add(H.id);try{if(!(Boolean(H.window?.closed)||this.#G(H))){if(!await this.#ce(H)){this.#p.delete(H.id);return}await this.#me(H)}this.#pe(H)}finally{this.#h.delete(H.id)}}};onGuestClose=M=>{const{id:H,guestCloseCallback:G}=M,q=this.#l.get(H)||[];q.push(G),this.#l.set(H,q)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{E8:()=>se,_7:()=>ve});var t,n,r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),s=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),i=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");function d(Le){return n({theme:Le})}function a(Le,Ye){const Ne=d(Le)[Ye];return Ne===0?null:Ne}function c(Le,Ye){const Ne=d(Le)[Ye];return Ne===0?null:Ne-.02}function m(){const[Le,Ye]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function Ze(){Ye(window.innerWidth)}return window.addEventListener("resize",Ze),Ye(window.innerWidth),()=>window.removeEventListener("resize",Ze)},[]),Le}function p(Le){const Ye=d(Le),Ze=m();return t.useMemo(()=>Object.keys(Ye).reverse().find(Ne=>Ze!==null&&Ze>=Ye[Ne])||null,[Ye,Ze])}function g(Le,Ye){const Ze=a(Le,Ye),Ne=m();return Ne!==null&&Ze!==null&&Ne>=Ze}function b(Le,Ye){const Ze=c(Le,Ye),Ne=m();return Ne!==null&&Ze!==null&&Ne<Ze}const v=(...Le)=>Le.filter(Boolean).join("."),h=Le=>`--${Le.replace(/\./g,"-")}`,x=(Le,Ye)=>`var(${h(Le)}, ${Ye})`,j=(Le,Ye)=>`${Le}: ${Ye};`;function S(Le,Ye,Ze=Object.keys(Le),Ne){const Se=Array.isArray(Le)?[]:{};for(const Gn in Ze){const Vn=Ze[Gn],vn=Le[Vn],Pn=v(Ne,Vn);if((0,i.WL)(vn)){Se[Vn]=S(vn,Ye,Object.keys(vn),Pn);continue}if((0,i.Yj)(vn)){Se[Vn]=x(Pn,vn);continue}if((0,i.Pc)(vn)){Se[Vn]=x(Pn,(0,i.DJ)(vn,{theme:Ye}));continue}}return Se}function P(Le,Ye,Ze=Object.keys(Le),Ne,Se={value:""}){for(const Gn in Ze){const Vn=Ze[Gn],vn=Le[Vn],Pn=v(Ne,Vn);if((0,i.WL)(vn)){P(vn,Ye,Object.keys(vn),Pn,Se);continue}if((0,i.Yj)(vn)){Se.value+=j(h(Pn),vn);continue}if((0,i.Pc)(vn)){Se.value+=j(h(Pn),(0,i.DJ)(vn,{theme:Ye}));continue}}return Se.value}var w=Object.defineProperty,E=Object.defineProperties,O=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,N=(Le,Ye,Ze)=>Ye in Le?w(Le,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Le[Ye]=Ze,z=(Le,Ye)=>{for(var Ze in Ye||(Ye={}))T.call(Ye,Ze)&&N(Le,Ze,Ye[Ze]);if(D)for(var Ze of D(Ye))I.call(Ye,Ze)&&N(Le,Ze,Ye[Ze]);return Le},k=(Le,Ye)=>E(Le,O(Ye)),U=(Le,Ye)=>{var Ze={};for(var Ne in Le)T.call(Le,Ne)&&Ye.indexOf(Ne)<0&&(Ze[Ne]=Le[Ne]);if(Le!=null&&D)for(var Ne of D(Le))Ye.indexOf(Ne)<0&&I.call(Le,Ne)&&(Ze[Ne]=Le[Ne]);return Ze};const $="xstyled-color-mode",J=typeof window<"u"&&(()=>{try{const Le="xstyled-test-key";return window.localStorage.setItem(Le,Le),window.localStorage.removeItem(Le),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem($),set:Le=>{window.localStorage.setItem($,Le)},clear:()=>window.localStorage.removeItem($)}:{get:()=>null,set:()=>{},clear:()=>{}},W="xstyled-color-mode-",F=Le=>`${W}${Le}`,L="xstyled-colors",B=["light","dark"];function K(Le,Ye){return k(z({},Le),{colors:z(z({},Le.colors),Le.colors.modes[Ye])})}const M=Le=>`@media ${Le}`,H=Le=>`(prefers-color-scheme: ${Le})`;function G(Le){return Boolean(Le&&Le.colors&&Le.colors.modes)}function q(Le){return Boolean(Le&&(Le.useCustomProperties===void 0||Le.useCustomProperties))}function te(Le){return Boolean(Le&&(Le.useColorSchemeMediaQuery===void 0||Le.useColorSchemeMediaQuery))}function ce(Le){return Le.initialColorModeName||"default"}function ie(Le){return Le.defaultColorModeName||ce(Le)}function fe(Le){let Ye=[];for(const Ze in Le)Ye=[...Ye,...Object.keys(Le[Ze])];return Ye}function se(Le,{targetSelector:Ye="body"}={}){if(!G(Le))return null;const Ze=Le.colors,{modes:Ne}=Ze,Se=U(Ze,["modes"]),Gn=fe(Ne);let Vn=P(Se,Le,Gn,L);function vn(Un){const pt=K(Le,Un),St=pt.colors,{modes:ee}=St,de=U(St,["modes"]);return P(z(z({},de),ee[Un]),pt,Gn,L)}return Le.useColorSchemeMediaQuery!==!1&&B.forEach(Un=>{if(Ne[Un]){const pt=M(H(Un));Vn+=`${pt}{${vn(Un)}}`}}),[ce(Le),...Object.keys(Ne)].forEach(Un=>{const pt=`&.${F(Un)}`;Vn+=`${pt}{${vn(Un)}}`}),`${Ye}{${Vn}}`}function ae(Le){if(typeof window>"u"||window.matchMedia===void 0)return null;const Ye=H(Le);return window.matchMedia(Ye)}function he(Le){const Ye=r.useMemo(()=>te(Le)?B.map(Se=>{if(!G(Le)||!Le.colors.modes[Se])return null;const Gn=ae(Se);return Gn?{mode:Se,mql:Gn}:null}).filter(Boolean):[],[Le]),[Ze,Ne]=r.useState(()=>{const Se=Ye.find(Gn=>Gn.mql.matches);return Se?Se.mode:null});return r.useEffect(()=>{const Se=Ye.map(({mode:Gn,mql:Vn})=>{const vn=({matches:Pn})=>{Ne(Pn?Gn:Un=>Un===Gn?null:Gn)};return Vn.addEventListener("change",vn),()=>Vn.removeEventListener("change",vn)});return()=>Se.forEach(Gn=>Gn())}),Ze}const re=typeof window<"u"?r.useLayoutEffect:r.useEffect;function je(Le,{target:Ye}={}){const Ze=he(Le),Ne=ie(Le),Se=ce(Le),[Gn,Vn]=r.useState(()=>G(Le)?Ne:null),vn=q(Le),Pn=r.useCallback(Un=>{Vn(Un||null),Un?J.set(Un):J.clear()},[]);return re(()=>{if(!G(Le))return;const Un=J.get();Gn!==(Un||Ze||Ne)&&Vn(Un||Ze||Ne)},[]),re(()=>{if(J.get())return;const pt=Ze||Ne;pt!==Gn&&Vn(pt)},[Gn,Ze,Ne]),re(()=>{if(!Gn||!vn||!J.get()&&!(Se!==Gn))return;const St=F(Gn),ee=Ye||document.body;return ee.classList.add(St),()=>{ee.classList.remove(St)}},[vn,Ye,Gn,Se]),[Gn,Pn]}function ze(Le,Ye){const[Ze]=r.useState(Ye),Ne=r.useMemo(()=>{if(!Ze||!q(Le))return null;if(!G(Le))return Le;const Gn=Le.colors,{modes:Vn}=Gn,vn=U(Gn,["modes"]),Pn=fe(Vn);return k(z({},Le),{colors:k(z(z({},vn),S(vn,Le,Pn,L)),{modes:Vn}),__rawColors:Le.colors})},[Ze,Le]),Se=r.useMemo(()=>!Ye||q(Le)?null:G(Le)?Ye===ce(Le)?k(z({},Le),{__colorMode:Ye}):k(z({},Le),{colors:z(z({},Le.colors),Le.colors.modes[Ye]),__colorMode:Ye,__rawColors:Le.colors}):Le,[Le,Ye]);return Ne||Se}const Xe=r.createContext(null);function en(){const Le=t.useContext(Xe);if(!Le)throw new Error("[useColorMode] requires the ColorModeProvider component");return Le}function ve({ThemeContext:Le,ThemeProvider:Ye,ColorModeStyle:Ze}){function Ne({children:Se,target:Gn,targetSelector:Vn}){const vn=r.useContext(Le);if(!vn)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const Pn=je(vn,{target:Gn}),Un=ze(vn,Pn[0]);return r.createElement(r.Fragment,null,r.createElement(Ze,{targetSelector:Vn}),r.createElement(Ye,{theme:Un},r.createElement(Xe.Provider,{value:Pn},Se)))}return Ne}function pe({target:Le="document.body"}={}){return`(function() { try {
18400
+ `;e.d(o,["Az",0,v,"G3",0,g,"KZ",0,b,"OV",0,j,"_W",0,c,"f7",0,S,"rf",0,p,"uP",0,h])},"./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"(u,o,e){"use strict";var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.62.1_@elliemae+pui-theme@2.13.1_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),r=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.62.1_@elliemae+pui-theme@2.13.1_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),s=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const d={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},a=null,c={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(s.Jl).description("Position on the screen to show the toast").defaultValue("bottom-left"),autoClose:n.A.oneOfType([n.A.number,n.A.oneOf([!1])]).description("ms to autoclose the toast, false if you don't want to automatically close").defaultValue(5e3),showProgressBar:n.A.bool.description("Whether to show a progress bar indicating when the toast is going to be closed").defaultValue(!1),closeOnClick:n.A.bool.description("Close toast handler").defaultValue(!1),enableMultiContainer:n.A.bool.description("Allows instantiating multiple Toast containers").defaultValue(!1),containerId:n.A.oneOfType([n.A.string,n.A.number]).description("unique id for multi container"),...(0,r.Y)(i.GM,i.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},m={children:n.A.node.isRequired.description("link text")},p={children:n.A.node.description("DSToastActionLink component or text string"),onClick:n.A.func.description("click handler"),onKeyDown:n.A.func.description("key down handler")},g={type:n.A.oneOf(s.Rm).description("Type of toast").defaultValue("default"),messageTitle:n.A.string.description("Toast message title").defaultValue(""),messageText:n.A.string.description("Toast message text").defaultValue(""),messageComponent:n.A.node.description("Toast message component")};e.d(o,["AS",0,g,"Gs",0,d,"x7",0,c])},"./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/toast.js"(u,o,e){"use strict";e.d(o,{o:()=>v});var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),r=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.cjs.production.min.js"),s=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.62.1_@elliemae+pui-theme@2.13.1_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),d=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.62.1_@elliemae+pui-theme@2.13.1/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const m=h=>a.lA[h],p=h=>a.JC[h],g=({type:h=a.Ck.DEFAULT,messageTitle:x="",messageText:j="",messageComponent:S})=>{const P=m(h),w=p(h);return(0,n.jsxs)(d.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(d.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(P,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(d.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(d.Az,{className:"em-ds-toast-content__message-header",children:x}),(0,n.jsx)(d.uP,{className:"em-ds-toast-content__message-text",children:S||j})]})]})};g.displayName=c.VR;const b=(0,s.A)(g);b.propTypes=i.AS;const v=Object.assign(({type:h,messageTitle:x,messageText:j,messageComponent:S,...P},w)=>(0,r.oR)((0,n.jsx)(g,{messageText:j,messageComponent:S,messageTitle:x,type:h}),{...P,...w,type:h}),{...r.oR,isActive:h=>r.oR.isActive(h)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,b3:()=>n});class t{name;objectId;id;constructor(d){const{name:a,objectId:c}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");this.objectId=c,this.name=a,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](d){return typeof d=="object"&&d!==null&&"getType"in d&&typeof d.getType=="function"&&d.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(d){const{name:a,objectId:c,eventSrc:m}=d;if(!a)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");if(!m)throw new Error("Event source is required");this.objectId=c,this.name=a,this.#e=m,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=d=>this.#e.subscribe({eventId:this.id,callback:d});unsubscribe=d=>{this.#e.unsubscribe({eventId:this.id,token:d})}}const r=i=>i instanceof t,s=(i,d)=>`${i.toLowerCase()}.${d.toLowerCase()}`;e.d(o,["_s",0,s,"xH",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"(u,o,e){"use strict";e.d(o,{of:()=>s,ts:()=>i});const t=new Map;function n(d){return typeof d=="object"&&d!==null&&("eq"in d||"in"in d||"includes"in d||"gt"in d||"lt"in d||"regex"in d)}function r(d,a,c){if("eq"in a)return d===a.eq;if("in"in a)return Array.isArray(a.in)&&a.in.includes(d);if("includes"in a)return Array.isArray(d)&&d.includes(a.includes);if("gt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m>a.gt}if("lt"in a){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m<a.lt}if("regex"in a){const m=c??t;let p=m.get(a.regex);if(p===void 0){try{p=new RegExp(a.regex)}catch{p=null}m.set(a.regex,p)}return p!==null&&typeof d=="string"&&p.test(d)}return!1}function s(d){return d!=null&&Object.keys(d).length>0}function i(d,a,c){return Object.entries(a).every(([m,p])=>r(d[m],p,c?.regexCache))}},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"(u,o,e){"use strict";e.d(o,{G:()=>t});var t=(n=>(n.GuestClose="guest:close",n.GuestEventSubscribe="guest:eventSubscribe",n.GuestEventUnsubscribe="guest:eventUnsubscribe",n.GuestFocus="guest:focus",n.GuestReady="guest:ready",n.GuestReadyComplete="guest:readyComplete",n.GuestResize="guest:resize",n.HandShake="handshake",n.HandShakeAck="handshake:ack",n.HostClose="host:close",n.HostConfig="host:config",n.ListObjects="list:objects",n.ObjectEvent="object:event",n.ObjectGet="object:get",n.ObjectInvoke="object:invoke",n))(t||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t});class t{__TYPE__="Proxy";id;objectType;constructor(s,i){this.id=s,this.objectType=i}}const n=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";e.d(o,["h",0,n])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>a});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",r="elli:remoting:response",s="elli:remoting:exception",i=({messageType:c,messageBody:m,requestId:p,onewayMsg:g=!1})=>({requestId:p??(g?null:(0,t.A)()),source:n,type:c,body:m}),d=c=>{const{targetWin:m,targetOrigin:p,messageType:g,messageBody:b}=c,v=i({messageType:g,messageBody:b});m.postMessage(v,p)};class a{#e;#t;#n=new Map;#i=new Map;#r=null;#o=null;#s=new Map;constructor(m,p){if(!m)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#e=p,this.#t=m}#l=()=>{this.#r=null;const m=Date.now(),p=[];let g=null;if(this.#i.forEach((b,v)=>{const{requestId:h,cancelTime:x}=b;x&&x<=m?(this.#t.debug(`Detected response timeout for requestId: ${h}...`),p.push(v),b.resolve(void 0)):x&&(g=g===null?x:Math.min(g,x))}),p.forEach(b=>{this.#i.delete(b)}),g!==null){const b=Math.max(g-Date.now(),0);this.#a(b)}};#a=m=>{this.#r===null&&(this.#r=window.setTimeout(this.#l,m))};#f=()=>{this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)};#d=m=>{const p=this.#i.get(m);return this.#t.debug(`serving requestId: ${m}`),this.#i.delete(m),p};#c=m=>{const{requestId:p}=m;this.#t.debug(`Response received for invocation requestId: ${p}`);const g=this.#d(p);return g?(g.resolve(m.body),!0):(this.#t.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#u=m=>{this.#t.debug(`Exception received for invocation (requestId = ${m.requestId})`);const p=this.#d(m.requestId);return p?(p.reject(new Error(m.body)),!0):(this.#t.warn(`Received exception for stale/invalid request (requestId = ${m.requestId})`),!1)};#h=({sourceWin:m,sourceOrigin:p,message:g})=>{this.#t.debug(`Received message of type "${g.type}"`);const b=this.#n.get(g.type);return b?(b.forEach(v=>{this.#t.debug(`Invoking message handler ${v.name}`),v({sourceWin:m,sourceOrigin:p,requestId:g.requestId,type:g.type,body:g.body})}),!0):!1};#p=m=>{if(this.#s.size===0||!m.source)return!1;const p=this.#s.get(m.source);return!p||m?.data?.source!==n?!1:(this.#t.debug(`Remoting: Received message of type "${m.data.type}"`),m.data.type===r?this.#c(m.data):m.data.type===s?this.#u(m.data):this.#h({sourceWin:m.source,sourceOrigin:p,message:m.data}),!0)};addSender=m=>{const{origin:p,window:g}=m;if(!p)throw new Error("origin is required");if(!g)throw new Error("window is required");this.#s.set(g,p)};initialize=m=>{this.#o&&this.#o.removeEventListener("message",this.#p),m.addEventListener("message",this.#p),this.#o=m,this.#t.debug(`initialized remoting id: ${this.#e}`)};close=()=>{this.#o&&(this.#o.removeEventListener("message",this.#p),this.#o=null),this.#f(),this.#i.forEach(({reject:m})=>{m(new Error("Remoting closed"))}),this.#i.clear(),this.#n.clear(),this.#s.clear(),this.#t.debug(`closed remoting id: ${this.#e}`)};invoke=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v,responseTimeoutMs:h}=m;return new Promise((x,j)=>{const S=i({messageType:b,messageBody:v});this.#i.set(S.requestId,{requestId:S.requestId,resolve:x,reject:j,cancelTime:h?Date.now()+h:null}),p.postMessage(S,g);const{requestId:P}=S;this.#t.debug(`Posted invocation message of type ${b} requestId: ${P||""}`),h&&(this.#t.debug(`scheduling timeout check for requestId: ${P||""} in ${h} ms`),this.#a(h))})};listen=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p)||[];b.push(g),this.#n.set(p,b)};unlisten=m=>{const{messageType:p,callback:g}=m,b=this.#n.get(p);if(!b)return;const v=b.indexOf(g);v!==-1&&b.splice(v,1)};send=m=>{const{targetWin:p,targetOrigin:g,messageType:b,messageBody:v}=m,h=i({messageType:b,messageBody:v,onewayMsg:!0});p.postMessage(h,g),this.#t.debug(`Posted one-way message of type "${b}"`)};removeSender=m=>{const{window:p}=m;p&&this.#s.delete(p)};respond=m=>{const{targetWin:p,targetOrigin:g,requestId:b,response:v}=m,h=i({messageType:r,messageBody:v,requestId:b});p.postMessage(h,g),this.#t.debug(`Response sent to caller for invocation requestId: ${b}`)};raiseException=m=>{const{targetWin:p,targetOrigin:g,requestId:b,ex:v}=m,h=v instanceof Error?v.message:v,x=i({messageType:s,messageBody:h,requestId:b});p.postMessage(x,g),this.#t.debug(`Exception sent to caller for invocation. requestId: ${b}`)}}e.d(o,["_",0,d])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",r=(i,d)=>typeof i===n&&!!d&&!d.startsWith("_");class s{#e;#t="Object";constructor(d,a){this.#e=d,this.#t=a||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const d=[],a=[];return Object.keys(this).forEach(c=>{const m=this[c];(0,t.xH)(m)?a.push(c):r(m,c)&&d.push(c)}),{objectId:this.#e,objectType:this.#t,functions:d,events:a}};_dispose=()=>{};dispose=()=>{}}e.d(o,["Q",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"(u,o,e){"use strict";e.d(o,{qE:()=>s});const t="module";var n=null,r=null;class s{#e=d=>d.trim().toLowerCase();#t=new Map;#n=new Map;#i=d=>{const{so:a,guestId:c,onDuplicate:m="throw",securityContext:p}=d,g=this.#e(a.id),b={so:a,guestId:c,securityContext:p},v=this.#n.get(c);if(!v){this.#n.set(c,new Map([[g,b]]));return}if(v.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${a.id} already exists for guest ${c}`)}v.set(g,b)};#r=({so:d})=>{if(d._dispose&&typeof d._dispose=="function")try{d._dispose()}catch{}};#o=({objectId:d,guestId:a})=>{if(d===t&&!a)for(const[,m]of this.#n){const p=m.get(d);if(p)return p}const c=a?this.#n.get(a):null;return c?c.get(d)??null:null};#s=({objectId:d,guestId:a}={})=>{if(a){if(!d){const m=this.#n.get(a);m&&m.forEach(this.#r),this.#n.delete(a);return}const c=this.#n.get(a);if(c){const m=c.get(d);m&&this.#r(m),c.delete(d)}}else d&&this.#n.forEach(c=>{const m=c.get(d);m&&this.#r(m),c.delete(d)})};addScriptingObject=(d,a)=>{const{guestId:c,onDuplicate:m="throw",securityContext:p}=a||{};if(!d?.id||!d?._toJSON)throw new Error("Object is not derived from ScriptingObject");const g=this.#e(d.id);if(g===t&&!c)throw new Error("Guest id is required to add Module scripting object");if(c){this.#i({so:d,...a,guestId:c,onDuplicate:m});return}if(this.#t.has(g)){if(m==="ignore")return;throw new Error(`Scripting Object ${d.id} already exists`)}this.#t.set(g,{so:d,guestId:c,securityContext:p})};getObject=(d,a)=>{const c=this.#e(d);let m=this.#o({objectId:c,guestId:a?.id});m=m??this.#t.get(c)??null;const{so:p}=m||{};return p||null};has=(d,a)=>this.getObject(d,a)!==null;listScriptingObjects=d=>{const a=new Set(this.#t.keys()),c=this.#n.get(d);if(c)for(const m of c.keys())a.add(m);return Array.from(a)};removeScriptingObject=(d,a)=>{const c=this.#e(d);if(a)this.#s({objectId:c,guestId:a});else{this.#s({objectId:c});const m=this.#t.get(c);m&&this.#r(m),this.#t.delete(c)}};removeAllScriptingObjects=d=>{d?this.#s({guestId:d}):(this.#t.forEach(this.#r),this.#t.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"(u,o,e){"use strict";e.d(o,{j:()=>g});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=b=>typeof b!="number"||Number.isNaN(b)?0:b>=1?1:b<=0?0:b,r=b=>Math.round(n(b)*100/5)*5,s=b=>{const h=r(b),x=100,j=(P,w)=>w===0?P:j(w,P%w),S=j(h,x);return{numerator:h/S,denominator:x/S}};class i{#e=0;#t=0;#n=0;constructor(v){const h=s(v);this.#e=h.numerator,this.#t=h.denominator}shouldSample=()=>(this.#n+=1,this.#n<=this.#e?!0:(this.#n===this.#t&&(this.#n=0),!1))}class d{#e={};#t={};#n=new i(.25);constructor(v={}){Object.keys(v).forEach(h=>{this.#e[h]=new i(v[h]),this.#t[h]=v[h]})}shouldSample(v){return this.#e[v]?this.#e[v].shouldSample():this.#n.shouldSample()}setRatio(v,h){this.#e[v]=new i(h),this.#t[v]=h}deleteRatio(v){delete this.#e[v],delete this.#t[v]}getRatio(v){return this.#t[v]}getAllRatios(){return{...this.#t}}}var a=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js");const m=Promise.resolve(),p=/^(?:GTM-|G-)[A-Z0-9-]+(?::\S*)?$/;class g extends t.P{#e;#t;constructor(v){super("analytics"),this.#e=v.logger,this.#t=new d(v.timingEventSamplingRatios??v.samplingRatios),this.#n()}#n=()=>{try{new PerformanceObserver(h=>{const x=h.getEntries();queueMicrotask(()=>{this.#i(x)})}).observe({type:"measure",buffered:!0})}catch(v){this.#e.error({message:"Error while recording performance",exception:v})}};#i=v=>{for(const h of v)if(h.entryType==="measure"&&!p.test(h.name)&&this.#t.shouldSample(h.name)){const x=h.detail??{},j=h.duration.toString(),S=new Date(performance.timeOrigin+h.startTime).toISOString();this.#e.info({message:"timing",event:h.name,duration:j,startTime:S,detail:x}),this.#r(h.name,{...x,duration:j,startTime:S})}};#r=(v,h)=>{const x=`timing:${v}`;window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...h,event:x})};setTimingEventSamplingRatio=v=>{Object.entries(v).forEach(([h,x])=>{this.#t.setRatio(h,x)})};getTimingEventSamplingRatio=v=>{const h={};return v.forEach(x=>{h[x]=this.#t.getRatio(x)}),h};deleteTimingEventSamplingRatio=v=>{v.forEach(h=>{this.#t.deleteRatio(h)})};getAllTimingEventSamplingRatios=()=>this.#t.getAllRatios();sendBAEvent=v=>{const{event:h,...x}=v??{};return h&&(window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...x,event:h}),(0,a.As)(h,x)),m};startTiming=(v,h)=>{if(!v)throw new Error("parameter mark is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=performance.mark(v,{detail:h});return m.then(()=>({name:x?.name,startTime:x?.startTime}))};endTiming=(v,h)=>{if(!v)throw new Error("parameter start is required");if(!h||!h?.appId||!h?.appUrl)throw new Error("parameter options is required");const x=v?.name??v,j=performance.getEntriesByName(x,"mark")?.[0],S={startAppId:j?.detail?.appId??h.appId,startAppUrl:j?.detail?.appUrl??h.appUrl,endAppId:h.appId,endAppUrl:h.appUrl};return j?(typeof v=="string"?performance.measure(x,{detail:S,start:x}):performance.measure(x,{detail:S,start:v.startTime}),performance.clearMarks(x)):performance.measure(x,{detail:S,end:performance.now()}),m}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";const t=(()=>{try{return window.parent.document,window.parent}catch{return window}})(),n=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),r=()=>{},s=()=>({productId:t?.emui?.appId??"",productPath:t.location.pathname,productUrl:t.location.href,productPageTitle:t.document.title,version:t?.emui?.version??"",appId:window?.emui?.appId??"",appPath:window.location.pathname,appUrl:window.location.href,appPageTitle:document.title});let i={};const d=()=>({...n(),...i}),a=c=>{i={...i,...c}};e.d(o,["QS",0,d,"nE",0,a,"np",0,s])},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.2/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";const t=()=>window.emui?.logRocket,i=new Map,d=P=>{i.size<50||i.forEach((w,E)=>{P-w.windowStart>=1e3&&i.delete(E)})},a=2,c=(P,w)=>{let E=P;for(const O of Object.keys(w))E+=`|${O}:${String(w[O])}`;return E},m=20,p=[];let g="";const b=()=>{const P=t();if(!P)return;const w=sessionStorage.getItem("user");if(w)try{const E=JSON.parse(w),O=E.user_key;if(!O||O===g)return;const D=E.user_name||sessionStorage.getItem("userId")||"",T=E.encompass_instance_id||sessionStorage.getItem("instanceId")||"";P.identify(O,{name:D,instanceId:T}),g=O}catch{}},v=P=>{g=P},h=()=>{g="",p.length=0},x=(P,w,E)=>{const O=c(w,E),D=Date.now(),T=i.get(O);if(T&&D-T.windowStart<1e3){if(T.count>=3)return;T.count+=1}else d(D),i.set(O,{windowStart:D,count:1});const I=Object.keys(E).length;I>a&&console.warn(`[analytics] lrTrack "${w}" has ${I} properties. Keep it to ${a} or fewer to stay within LogRocket's 2,000 total-property session budget.`,E),P.track(w,E)},j=P=>{for(;p.length>0;){const w=p.shift();w&&x(P,w.event,w.eventEx)}},S=(P,w)=>{const E=t();if(!E){p.length<m&&p.push({event:P,eventEx:w});return}b(),j(E),x(E,P,w)};e.d(o,["As",0,S,"E3",0,h])},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.32.3_@elliemae+pui-diagnostics@3.12.6_@elliemae+pui-logrocket@1.5._doqwnpquvazd5ereffd3jsflna/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>ee});var t=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),r=(de=>(de.Analytics="analytics",de.Application="application",de.Auth="auth",de.Form="form",de.Global="global",de.Http="http",de.Loan="loan",de.LoanV2="loanV2",de.MemStorage="memstorage",de.Module="module",de.Service="service",de.Session="session",de.Styling="styling",de.Transaction="transaction",de.TransactionTemplate="transactiontemplate",de.WebSocket="websocket",de))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(Z){this.#n=Z}#i=(Z,oe)=>{const xe=new Promise(Ve=>{setTimeout(()=>{Ve()},oe)});return Promise.race([Z,xe])};#r=(Z,oe)=>{const xe=oe?.guestId;return!xe||!Z.guestId?!0:Z.guestId===xe};#o=Z=>{const{eventName:oe,scriptingObject:xe,eventParams:Ve,listeners:An,eventOptions:hn}=Z;An.forEach(ct=>{this.#r(ct,hn)&&(ct.criteria&&!(Ve&&this.#l(Ve,ct.criteria))||Promise.resolve(ct.callback({obj:xe,eventName:oe,eventParams:Ve})).catch(Ft=>{this.#n?.warn(`Error in event listener for "${oe}": ${Ft.message}`)}))})};#s=async({eventId:Z,eventName:oe,scriptingObject:xe,eventParams:Ve,feedbackWaitTime:An,eventOptions:hn})=>{const Ft=(this.#e.get(Z)||[]).map(ur=>!this.#r(ur,hn)||ur.criteria&&!(Ve?this.#l(Ve,ur.criteria):!1)?Promise.resolve():this.#i(ur.callback({obj:xe,eventName:oe,eventParams:Ve}),An));return(await Promise.all(Ft)).flat(1/0).filter(ur=>ur!==void 0)};#l(Z,oe){return Object.entries(oe).every(([xe,Ve])=>{const An=Z[xe];if("eq"in Ve)return An===Ve.eq;if("in"in Ve)return Array.isArray(Ve.in)&&Ve.in.includes(An);if("includes"in Ve)return Array.isArray(An)&&An.includes(Ve.includes);if("gt"in Ve){const hn=typeof An=="number"?An:Number(An);return!Number.isNaN(hn)&&hn>Ve.gt}if("lt"in Ve){const hn=typeof An=="number"?An:Number(An);return!Number.isNaN(hn)&&hn<Ve.lt}if("regex"in Ve){let hn=this.#t.get(Ve);if(hn===void 0){try{hn=new RegExp(Ve.regex)}catch{hn=null}this.#t.set(Ve,hn)}return hn!==null&&typeof An=="string"&&hn.test(An)}return!1})}dispatchEvent=async(Z,oe)=>{const{event:{id:xe,name:Ve},eventParams:An,eventOptions:hn}=oe,{timeout:ct}=hn??{};if(!xe)throw new Error("Event Id is required");const Ft=this.#e.get(xe)||[];return!ct||ct<=0?(this.#o({eventName:Ve,scriptingObject:Z,eventParams:An,listeners:Ft,eventOptions:hn}),Promise.resolve()):this.#s({eventId:xe,eventName:Ve,scriptingObject:Z,eventParams:An,feedbackWaitTime:ct,eventOptions:hn})};subscribe=Z=>{const{eventId:oe,callback:xe,criteria:Ve,guestId:An}=Z;if(!oe)throw new Error("eventId is required");if(!xe)throw new Error("Callback is required");const hn=this.#e.get(oe)||[],ct=(0,n.A)();return hn.push({token:ct,criteria:Ve,guestId:An,callback:xe}),this.#e.set(oe,hn),ct};unsubscribe=Z=>{const{eventId:oe,token:xe}=Z;if(!oe)throw new Error("eventId id is required");if(xe){const Ve=this.#e.get(oe)||[],An=Ve.findIndex(hn=>hn.token===xe);An>-1&&(Ve.splice(An,1),this.#e.set(oe,Ve))}else this.#e.delete(oe)};unsubscribeAll=()=>{this.#e.clear()};unsubscribeByGuestId=Z=>{Z&&this.#e.forEach((oe,xe)=>{const Ve=oe.filter(An=>An.guestId!==Z);Ve.length===0?this.#e.delete(xe):Ve.length!==oe.length&&this.#e.set(xe,Ve)})}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=de=>de.replace(/([^:]\/)\/+/g,"$1"),g=de=>{const Z=document.createElement("a");return Z.href=de,Z.href},b=de=>de?.replace?.(/\/?$/,"/"),v=(de,Z)=>`${de.replace(/\/+$/,"")}/${Z.replace(/^\/+/,"")}`,h=de=>/^(\/|https?:\/\/)/.test(de),x=(de,Z)=>{const oe=b(Z);if(h(oe)){const{origin:xe}=new URL(de,window.location.href);return p(new URL(oe,xe).href)}return p(new URL(oe,b(de)).href)},j=(de,Z)=>p(new URL("manifest.json",x(de,Z)).href),S=()=>window.navigator.userAgent.includes("jsdom"),P=de=>de.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=de=>{try{if(new URL(de,window.location.href).origin===window.location.origin)return de;const oe=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${oe}/frame.html`}catch{return de}},E="pui-app-container-",O=de=>{const Z=de.src??m.default??m,oe=w(Z);if(!de.queryParams)return oe;const xe=de.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${oe}${oe.includes("?")?"&":"?"}${xe}`},D=({documentEle:de,hostUrl:Z,manifestPath:oe,guestId:xe})=>{const Ve=de.getElementById(E);Ve&&(Ve.id=`${Ve.id}${xe}`);const An=x(Z,oe);let hn=de.getElementsByTagName("base")?.[0];if(hn){hn.href=An;return}hn=de.createElement("base"),hn.href=An,de.getElementsByTagName("head")[0].appendChild(hn)},T=({id:de,instanceId:Z,manifestPath:oe,hostUrl:xe,options:Ve})=>new Promise((An,hn)=>{const{signal:ct}=Ve;if(ct?.aborted){hn(new DOMException("iframe creation aborted","AbortError"));return}const Ft=document.createElement("div");Ft.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const nr=document.createElement("iframe");nr.setAttribute("id",Z),nr.setAttribute("data-testid",de),nr.setAttribute("title",Ve.title),nr.setAttribute("allowfullscreen","true"),nr.setAttribute("allowtransparency","true"),Ve.permissionPolicy&&nr.setAttribute("allow",Ve.permissionPolicy),Ve.sandbox&&nr.setAttribute("sandbox",Ve.sandbox),nr.setAttribute("style",Ve.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),nr.setAttribute("src",O(Ve));const ur=1e4;let Xn=!1,pn,kn;const _n=()=>{clearTimeout(pn),ct?.removeEventListener("abort",kn)},fn=()=>ct?.aborted?(Xn||(Xn=!0,_n(),Ft.remove(),hn(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if(kn=()=>{fn()},fn())return;ct?.addEventListener("abort",kn),pn=setTimeout(()=>{Xn||(Xn=!0,_n(),Ft.remove(),hn(new Error(`iframe for ${de} failed to load within ${ur}ms`)))},ur),nr.addEventListener("error",()=>{Xn||(Xn=!0,_n(),Ft.remove(),hn(new Error(`iframe for ${de} failed to load`)))}),nr.addEventListener("load",()=>{Xn||fn()||nr.contentDocument&&(Xn=!0,_n(),D({documentEle:nr.contentDocument,hostUrl:xe,manifestPath:oe,guestId:de}),An(nr))}),Ft.appendChild(nr);const{containerId:gt}=Ve;(document.getElementById(gt??"")??document.body).appendChild(Ft)}),I=de=>document.getElementById(de),z={create:T,remove:de=>{const Z=I(de);Z&&Z.parentElement?.remove()},get:I};var k=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.1/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const U=()=>{try{return window.parent.document,window.parent}catch{return window}},$=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),V=de=>Number(de.replace("px","")),J=()=>{const{width:de}=$(),{breakpoints:Z}=(0,k.getDefaultTheme)();return de<=V(Z.small)?"small":de<=V(Z.medium)?"medium":"large"};var W=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/cloneDeep.js"),F=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),L=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),B=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),K=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const M=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}');var H=(de=>(de.DEVELOPMENT="development",de.PRODUCTION="production",de))(H||{}),G=(de=>(de.SSF="ssf",de.APPSDK="appsdk",de))(G||{});class q{#e=M;#t;#n;constructor(Z){this.#t=Z?.version||"latest",this.#n=b(Z?.baseUrl||"")}#i=Z=>{const{activeEnv:oe,env:xe,...Ve}=Z,An=xe[oe]||{};this.#e=K({},Ve,An)};get=(Z="",oe=null)=>W(F(this.#e,Z,oe));set=(Z,oe)=>{L(this.#e,Z,oe)};has=(Z="")=>B(this.#e,Z);setPreloadedConfig=Z=>{this.#e=Z};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const oe=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${oe?.[0]||"latest"}`)}return this.#n};#o=()=>{const Z=this.#r();return b(Z.replace(/(\/)(\d+\.\d+|latest)\/?$/,"$1latest/"))};load=async Z=>{const oe=Z??`${this.#r()}app.config.json`,xe=`${this.#o()}app.config.json`,Ve=hn=>!Z&&hn!==xe;let An;try{An=await fetch(oe)}catch(hn){if(Ve(oe)){await this.load(xe);return}throw new Error("Failed to fetch app config",{cause:hn})}if(An.ok)try{const hn=await An.json();this.#i(hn)}catch(hn){if(Ve(oe)){await this.load(xe);return}throw new Error("Failed to parse app config",{cause:hn})}else if(Ve(oe))await this.load(xe);else throw new Error("Failed to load app config")}}var te=(de=>(de.USER="USER",de.PARTNER="PARTNER",de))(te||{}),ce=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const ie="microFrontendApps",fe=()=>ce.env.CI==="true",se=de=>fe()?!0:String(de).toLowerCase()===H.PRODUCTION.toLowerCase(),ae=de=>de?new URL(de).pathname:"",he=de=>{const Z=document.createElement("a");return Z.href=de,Z.href},re=(de,Z)=>{const oe=Z.match(/^(?:\d+\.\d+)*/g);return de.replace(/{SYSTEM_VERSION}/,oe&&oe[0]||"latest")},je=de=>!de||!de.length?!1:de.every(Z=>typeof Z=="string"),ze=(de,Z)=>{const{mode:oe=H.PRODUCTION}=Z;if(String(oe).toLowerCase()!==H.PRODUCTION.toLowerCase()&&String(oe).toLowerCase()!==H.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(oe)}' for ${de}`);const{production:xe,development:Ve,microappManager:An=G.APPSDK}=Z;if(String(An).toLowerCase()===G.APPSDK.toLowerCase()){if(String(oe).toLowerCase()===H.PRODUCTION.toLowerCase()){if(!xe)throw new Error(`microFrontendApps.${de} is missing production section in app.config.json`);if(!je(xe.files))throw new Error("invalid value for production.files")}if(String(oe).toLowerCase()===H.DEVELOPMENT.toLowerCase()){if(!Ve)throw new Error(`microFrontendApps.${de} is missing development section in app.config.json`);if(!je(Ve.files))throw new Error("invalid value for development.files")}}},Xe=({id:de,config:Z,version:oe="latest"})=>{const{mode:xe=H.PRODUCTION,production:Ve,development:An,...hn}=Z,ct=se(xe)?Ve:An,Ft=K({id:de},{name:de,mode:H.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:te.USER,isJsModule:!0},hn,{mode:xe},ct);return Ft.hostUrl=b(he(Ft.hostUrl||"")),Ft.homeRoute=b(Ft.homeRoute)||ae(Ft.hostUrl),Ft.manifestPath=b(re(Ft.manifestPath,oe)),Ft};class en{#e=[];init=({version:Z,appConfig:oe})=>{const xe=oe.get(ie);xe&&(this.#e=Object.keys(xe).map(Ve=>(ze(Ve,xe[Ve]),Xe({id:Ve,config:xe[Ve],version:Z}))))};getConfigById=Z=>this.#e.find(oe=>oe.id===Z)}const ve=/^https?:\/\//i,pe=(de,Z)=>{if(!ve.test(de))return!1;try{return!de.startsWith(new URL(Z).href)}catch{return!0}},De=(de,Z)=>{const oe=[],xe=[];return de.forEach(Ve=>{pe(Ve.href,Z)?oe.push(Ve):xe.push(Ve)}),{external:oe,local:xe}},Be=de=>{if(!de)return;const Z=de,oe=Z.emui?._ASSET_PATH;oe&&(Z.__webpack_public_path__=new URL("../",oe).href)},Ce=(de,Z)=>{if(!(!de||!Z))try{const oe=de;oe.__webpack_public_path__=new URL("./",Z).href}catch{}},$e=(de,Z)=>{if(!de)return;if(de.emui?._ASSET_PATH){Be(de);return}Ce(de,Z)},Ge="ice-script-";class qe{#e;constructor(Z){this.#e=Z}#t=({href:Z,isESMModule:oe=!0,documentEle:xe})=>{const Ve=xe.createElement("link");Ve.rel=oe?"modulepreload":"preload",Ve.href=Z,Ve.crossOrigin="anonymous",oe||(Ve.as="script"),xe.head.appendChild(Ve)};#n=({id:Z,documentEle:oe,isESMModule:xe=!0})=>{const Ve=oe.createElement("script");return Ve.id=Z,Ve.crossOrigin="anonymous",Ve.nonce="__CSP_NONCE__",!S()&&xe&&(Ve.type="module"),Ve.async=!1,Ve};#i=(Z,oe)=>new Promise((xe,Ve)=>{Z.onload=xe.bind(null,Z.id),Z.onerror=An=>{this.#e.error({message:`Error loading script ${Z.src}`,exception:new Error(An)}),Ve(new Error(`Unable to load script ${Z.src}`,{cause:new Error(An)}))},Z.src=p(oe)});#r=async(Z,oe,xe)=>{if(Z.length===0)return;const Ve=Z.map(({id:hn})=>this.#n({id:hn,documentEle:oe,isESMModule:xe}));Ve.forEach(hn=>{oe.head.appendChild(hn)});const An=Z.map(({href:hn},ct)=>this.#i(Ve[ct],hn));await Promise.all(An)};#o=async({scripts:Z,documentEle:oe,isESMModule:xe,hostUrl:Ve})=>{if(Z.length===0)return;if(!Ve){await this.#r(Z,oe,xe);return}const{external:An,local:hn}=De(Z,Ve);await this.#r(An,oe,xe),$e(oe.defaultView,Ve),await this.#r(hn,oe,xe)};load=async(Z,oe)=>{const{documentEle:xe,isESMModule:Ve}=oe,An=/^https?:\/\//i,hn=Z.map((ct,Ft)=>{const nr=`${Ge}${oe.name.toLowerCase()}-${Ft}`,ur=An.test(ct)?ct:new URL(ct,oe.hostUrl).href;return this.#t({href:ur,documentEle:xe,isESMModule:Ve}),{id:nr,href:ur}});return await this.#o({scripts:hn,documentEle:xe,isESMModule:Ve,hostUrl:oe.hostUrl}),$e(xe.defaultView,oe.hostUrl),hn.map(ct=>ct.id)};remove=(Z="",oe=document)=>new Promise(xe=>{const Ve=oe.getElementById(Z);if(!Ve){this.#e.warn(`script with id ${Z} not found`),xe();return}Ve.remove(),xe()});removeDynamicImportedScripts=(Z,oe)=>{const xe=new RegExp(P(Z),"i"),Ve=oe.getElementsByTagName("script");for(let An=Ve.length-1;An>=0;An-=1){const hn=Ve[An],{src:ct}=hn;xe.test(ct)&&hn.remove()}};removePrefetchLinks=(Z,oe)=>{const xe=new RegExp(P(Z),"i"),Ve=oe.querySelectorAll('[rel="prefetch"]');for(let An=Ve.length-1;An>=0;An-=1){const hn=Ve[An],{href:ct}=hn;xe.test(ct)&&hn.remove()}}}const Je="ice-style-";class dn{#e;constructor(Z){this.#e=Z}#t=({id:Z,href:oe,documentEle:xe})=>new Promise((Ve,An)=>{const hn=xe.createElement("link");hn.id=Z,hn.nonce="__CSP_NONCE__",hn.rel="stylesheet",hn.href=p(oe),hn.onload=Ve.bind(null,hn.id),hn.onerror=ct=>{this.#e.error({message:`Error loading stylesheet ${hn.href}`,exception:new Error(ct)}),An(new Error(`Unable to load stylesheet ${hn.href}`,{cause:new Error(ct)}))},xe.head.appendChild(hn)});load=async(Z,oe)=>{const xe=[],Ve=Z.map((An,hn)=>{const ct=new URL(An,oe.hostUrl),Ft=`${Je}${oe.name.toLowerCase()}-${hn}`;return xe.push(Ft),this.#t({id:Ft,href:ct.href,documentEle:oe.documentEle})});return await Promise.all(Ve),xe};remove=(Z="",oe=document)=>new Promise(xe=>{const Ve=oe.getElementById(Z);if(!Ve){this.#e.warn(`style with id ${Z} not found`),xe();return}Ve.remove(),xe()});removeDynamicImportedStyles=(Z,oe)=>{const xe=new RegExp(P(Z),"i"),Ve=oe.querySelectorAll('[rel="stylesheet"]');for(let An=Ve.length-1;An>=0;An-=1){const hn=Ve[An],{href:ct}=hn;xe.test(ct)&&hn.remove()}}}const Fe=de=>de.replace(/\/\d+\.\d+/,"/latest"),me=de=>{let Z;try{Z=new URL(de)}catch{return!1}return Z.protocol==="http:"||Z.protocol==="https:"},we=new Map,Ae={get:async({hostUrl:de,manifestPath:Z})=>{const oe=j(de,Z),xe=we.get(oe);if(xe)return xe;const Ve=async An=>{const hn=await fetch(An);if(!hn.ok)throw new Error(`unable to get manifest ${An}`);if(!(hn.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${An} is not a valid json`);const Ft=await hn.json();return we.set(An,Ft),Ft};try{return await Ve(oe)}catch(An){const hn=Fe(Z);if(Z!==hn){const ct=j(de,hn);return await Ve(ct)}throw An}},getFullFileNameofAssets:(de,Z=[])=>Z.reduce((oe,xe)=>{const Ve=de[xe];if(Ve)oe.push(Ve);else if(me(xe))oe.push(xe);else throw new Error(`unable to locate ${xe} in manifest`);return oe},[]),clearCache:()=>we.clear()},Le=new Set(["module.unloading","module.unmount"]);class Ye{#e;#t;#n;#i;#r;constructor(Z){this.#e=Z.guest,this.#t=Z.instanceId,this.#n=Z?.version||"latest",this.#i=Z.soManager,this.#r=Z.eventManager}get version(){return this.#n}getObject=Z=>{try{const oe=this.#i.getObject(Z,this.#e);if(!oe)return Promise.resolve(null);const xe=new a.V(oe.id,oe.objectType);return Object.keys(oe).forEach(Ve=>{const An=oe[Ve];An instanceof d.Jh?Object.defineProperty(xe,Ve,{value:new d.Jh({name:Ve,objectId:oe.id}),enumerable:!0}):(0,s.Q)(An,Ve)&&Object.defineProperty(xe,Ve,{value:(...hn)=>{const ct=xe[Ve]?.callContext?.callChain;return Object.defineProperty(An,"callContext",{value:{guest:{...this.#e,instanceId:this.#t},...ct?.length?{callChain:ct}:{}},configurable:!0,enumerable:!0,writable:!0}),oe[Ve](...hn)},enumerable:!0})}),Promise.resolve(xe)}catch(oe){return Promise.reject(oe)}};setAppWindowSize=Z=>{const{size:oe}=Z,xe=document.getElementById(this.#t);xe&&(xe.style.height=`${oe.height}px`,xe.style.width=`${oe.width}px`)};subscribe=Z=>this.#r.subscribe({...Z,...Le.has(Z.eventId)?{guestId:this.#t}:{}});unsubscribe=Z=>{this.#r.unsubscribe(Z)}}class Ze{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:Z,app:oe})=>{if(!Z)throw new Error("appId is required");if(Z==="__proto__"||Z==="constructor"||Z==="prototype")throw new Error(`Invalid appId: ${Z}`);if(!oe?.uuid)throw new Error("application uuid is required");if(window.emui[Z]=window.emui[Z]||[],Array.isArray(window.emui[Z])){const xe=window.emui[Z].findIndex(Ve=>Ve.uuid===oe.uuid);xe>-1?window.emui[Z][xe]=oe:window.emui[Z].push(oe)}else{let xe=window.emui[Z];xe?.uuid===oe.uuid?(xe={...xe,...oe},window.emui[Z]=[xe]):typeof xe.init>"u"?window.emui[Z]=[{...xe,...oe}]:window.emui[Z]=[window.emui[Z],oe]}};get=({id:Z,instanceId:oe})=>{const xe=window.emui?.[Z];return Array.isArray(xe)?xe.find(An=>An.uuid===oe)??null:xe?.uuid===oe?xe:null};add=({id:Z,instanceId:oe,documentEle:xe})=>{if(!oe)throw new Error(`instanceId (uuid) is required to register application ${Z}`);const Ve={uuid:oe,init:null,mount:null,unmount:null},An=window.emui[Z];An?Array.isArray(An)?An.push(Ve):window.emui[Z]=[An,Ve]:window.emui[Z]=[Ve],xe.defaultView&&(xe.defaultView.emui=xe.defaultView.emui??{},xe.defaultView.emui.uuid=oe)};delete=({id:Z,instanceId:oe})=>{if(Array.isArray(window.emui[Z])){const xe=window.emui[Z].findIndex(Ve=>Ve.uuid===oe);xe>-1&&window.emui[Z].splice(xe,1),window.emui[Z].length===0&&delete window.emui[Z]}else delete window.emui[Z]}}const Ne=12e4,Se="module.unloading",Gn="module.unmount",Vn=1e3,vn=new s.P(r.Module),Pn=de=>Array.isArray(de)&&de.some(Z=>Z===!1),Un=["click","scroll","keypress","touchstart"],pt=/\.css$/,St=de=>pt.test(de);class ee{#e;#t;#n;#i;#r;#o=new en;#s;#l;#a=new Map;#f=new Map;#d=new Map;#c=new Set;#u=new Ze;#h=!0;constructor(Z){const{logger:oe}=Z;if(!oe)throw new Error("logger is required");this.#e=Z.logger,this.#t=Z.version,this.#h=Z.extendSession??!0,this.#r=new q({version:Z.version,baseUrl:Z.appConfigBaseUrl}),this.#n=new qe(oe),this.#i=new dn(oe),this.#s=new i.qE,this.#l=new c(this.#e)}#p(Z){return typeof Z=="function"}#E=Z=>Z instanceof d.b3||typeof Z?.subscribe=="function";#A=(Z,oe)=>`Application ${Z} with instance id ${oe} is not found. Most probably the appId property of app.config.json is not set to ${Z}`;#x=(Z,oe=document)=>{const{elementIds:xe}=this.#a.get(Z)||{};xe&&xe.forEach(Ve=>{const An=oe.getElementById(Ve);An&&An.remove()})};#m=({id:Z,instanceId:oe,documentEle:xe,elementIds:Ve,microFEHost:An,selfInitialize:hn})=>{const ct=this.#u.get({id:Z,instanceId:oe});if(!ct)throw new Error(this.#A(Z,oe));this.#a.set(oe,{id:Z,instanceId:oe,elementIds:Ve,guest:{guestWindow:xe?.defaultView,...ct},microFEHost:An,selfInitialize:hn})};#v=async({id:Z,instanceId:oe,containerId:xe,hostUrl:Ve,manifestPath:An,homeRoute:hn,initialRoute:ct,history:Ft,theme:nr,microFEHost:ur})=>{const Xn=this.#u.get({id:Z,instanceId:oe});if(!Xn)throw new Error(`Application ${Z} with instance id ${oe} is not found. Most probably the appId property of app.config.json is not set to ${Z}`);if(!Xn.init||typeof Xn.init!="function")throw new Error(`Application ${Z} with instance id ${oe} doesn't expose init method`);const pn=ur??this.#P({id:Z,instanceId:oe,containerId:xe});return Xn.init({host:pn,hostUrl:Ve,manifestPath:An,homeRoute:hn,initialRoute:ct,prevState:null,history:Ft,theme:nr,hostBreakpoint:J(),hostViewportSize:$(),logger:this.#e})};#w=async Z=>{try{const{id:oe,instanceId:xe,files:Ve,name:An,hostUrl:hn,documentEle:ct,isJsModule:Ft}=Z;this.#e.debug(`Application ${oe} with instance id ${xe} is loading...`);let nr=Ve;const ur=Z.manifest??await Ae.get(Z);nr=Ae.getFullFileNameofAssets(ur,Ve);const Xn=nr.filter(gt=>St(gt)),pn=nr.filter(gt=>!St(gt)),kn={name:An,hostUrl:hn,documentEle:ct,isESMModule:Ft},[_n,fn]=await Promise.all([this.#i.load(Xn,kn),this.#n.load(pn,kn)]);this.#m({id:oe,instanceId:xe,documentEle:ct,elementIds:[..._n,...fn],microFEHost:Z.microFEHost,selfInitialize:Z.selfInitialize}),Z.selfInitialize||await this.#v(Z),this.#e.audit(`Application ${oe} with instance id ${xe} loaded`)}catch(oe){const xe=`Application load failed. Unable to load one or more resources for ${Z.id} with instance id ${Z.instanceId}. ${oe.message}`;throw this.#e.error({message:xe,appId:Z.id,exception:oe}),new Error(xe)}};#O=({id:Z,instanceId:oe,hostUrl:xe,documentEle:Ve})=>{this.#e.debug(`Application ${Z} with instance id ${oe} unloading...`),this.#u.get({id:Z,instanceId:oe})&&(this.#x(oe,Ve),this.#n.removeDynamicImportedScripts(xe,Ve),this.#n.removePrefetchLinks(xe,Ve),this.#i.removeDynamicImportedStyles(xe,Ve),this.#u.delete({id:Z,instanceId:oe}),this.#e.audit(`Application ${Z} with instance id ${oe} unloaded`))};#b=async({id:Z,instanceId:oe})=>{const xe=this.#u.get({id:Z,instanceId:oe});if(!xe?.mount||typeof xe?.mount!="function")throw new Error(`Application ${Z} with instance id ${oe} doesn't expose mount method`);return xe.mount({containerId:`${E}${Z}`,hostBreakpoint:J(),hostViewportSize:$()})};#g=({id:Z,instanceId:oe})=>{const xe=this.#u.get({id:Z,instanceId:oe});if(!xe?.unmount)return null;if(typeof xe.unmount!="function")throw new Error(`Application ${Z} with instance id ${oe} doesn't expose unmount method`);return xe.unmount({containerId:`${E}${Z}`})};#_=({id:Z,instanceId:oe})=>{if(this.#h)try{const xe=this.#s.getObject(r.Application);if(!xe){this.#e.warn({message:`Application scripting object not available for ${Z} to manage session`});return}const Ve=this.#a.get(oe);if(!Ve)return;Ve.keepAlive=t(async()=>{try{await xe.keepSessionAlive()}catch(hn){this.#e.error(`Error keeping session alive. ${hn.message}`)}},Ne);const An=z.get(oe);Un.forEach(hn=>{An?.contentDocument?.addEventListener(hn,Ve.keepAlive)})}catch(xe){this.#e.warn({message:`Application scripting object not available for ${Z} to manage session`,exception:xe})}};#j=(Z,oe)=>{const xe=oe?.callContext?.guest;if(xe?.instanceId&&this.#a.get(xe.instanceId)?.id===Z)return xe.instanceId;const Ve=xe?.guestWindow,An=Array.from(this.#a.entries()).filter(([,hn])=>hn.id===Z);if(Ve){const hn=An.find(([,ct])=>ct.guest.guestWindow===Ve);if(hn)return hn[0]}return An.length===1?An[0][0]:void 0};#y=(Z,oe)=>{this.#d.set(oe,()=>this.closeApp(oe));const xe=this.#s.getObject(r.Module,{id:Z}),An=xe?._setUnloadHandler;typeof An=="function"&&(this.#c.has(Z)||(this.#c.add(Z),An.call(xe,async()=>{const hn=xe.unload,ct=this.#j(Z,typeof hn=="function"?hn:xe);if(!ct){this.#e.warn(`Cannot resolve instance for module.unload of ${Z}`);return}await this.#d.get(ct)?.()})))};#S=(Z,oe)=>{this.#d.delete(Z),[...this.#a.entries()].some(([Ve,An])=>An.id===oe&&Ve!==Z)||this.#c.delete(oe)};#T=Z=>this.#s.getObject(r.Module,{id:Z});#P=({id:Z,instanceId:oe,containerId:xe})=>new Ye({guest:{id:Z},instanceId:oe,version:this.#t,containerId:xe,logger:this.#e,soManager:this.#s,eventManager:this.#l});#C=async(Z,oe,xe)=>{const Ve=this.#T(Z.id)??vn;return this.#l.dispatchEvent(Ve,{event:{id:oe,name:xe},eventParams:{moduleId:Z.id},eventOptions:{timeout:Vn,guestId:Z.instanceId}})};#R=async Z=>{try{const oe=await this.#C(Z,Se,"unloading");if(Pn(oe))return this.#e.info(`Unload denied by guest ${Z.id} via module.unloading event`),!1}catch(oe){this.#e.warn({message:`Error dispatching module.unloading event for ${Z.id}; proceeding with unload`,exception:oe})}return!0};#D=async({id:Z,instanceId:oe,selfInitialize:xe})=>{if(!xe){await this.#g({id:Z,instanceId:oe});return}try{await this.#C({id:Z,instanceId:oe},Gn,"unmount")}catch(Ve){this.#e.warn({message:`Error dispatching module.unmount event for ${Z}`,exception:Ve})}};#I=Z=>{if(!this.#h||!Z)return;const{keepAlive:oe,instanceId:xe}=Z;if(oe){const An=z.get(xe)?.contentDocument;An&&Un.forEach(hn=>{An.removeEventListener(hn,oe)}),Z.keepAlive?.cancel()}};addScriptingObject=(Z,oe)=>{if((0,a.h)(Z)){const xe=this.cloneScriptingObject(Z);this.#s.addScriptingObject(xe,oe)}else this.#s.addScriptingObject(Z,oe)};cloneScriptingObject=Z=>{if(!Z)throw new Error("proxy is required");const oe=new s.P(Z.id,Z.objectType);let xe=[];return Object.keys(Z).forEach(Ve=>{const An=Z[Ve];if(this.#E(An)){const hn=new d.Jh({name:An.name||Ve,objectId:oe.id});Object.defineProperty(oe,Ve,{value:hn,enumerable:!0});const ct=({eventParams:nr,eventOptions:ur})=>this.dispatchEvent({event:hn,eventParams:nr,eventOptions:ur}),Ft=An.subscribe(ct);xe.push(()=>{An.unsubscribe(Ft)})}else if(this.#p(An)&&(Object.defineProperty(oe,Ve,{value:async(...hn)=>{const ct=oe[Ve]?.callContext;if(ct?.guest){const nr=ct.callChain??[],ur=ct.guest,Xn=ur.instanceId??ur.id,pn=this.#f.get(Xn),kn={id:ur.id};pn&&(kn.metadata=pn),Object.defineProperty(An,"callContext",{value:{callChain:[...nr,kn]},configurable:!0,enumerable:!0,writable:!0})}const Ft=await An(...hn);return(0,a.h)(Ft)?this.cloneScriptingObject(Ft):Ft},enumerable:!0}),Ve==="dispose")){const hn=oe.dispose;Object.defineProperty(oe,Ve,{value:()=>(oe._dispose(),hn.apply(oe)),enumerable:!0})}}),oe._dispose=()=>{xe.forEach(Ve=>{Ve?.()}),xe=[]},oe};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async Z=>{if(!Z)throw new Error("instanceId is required");const oe=this.#a.get(Z);if(!oe){this.#e.warn(`Application with instance id ${Z} is not found`);return}const{id:xe,selfInitialize:Ve}=oe;if(!await this.#R({id:xe,instanceId:Z}))return;const An=this.#o.getConfigById(xe);if(!An){this.#e.warn(`Configuration for application ${xe} is not found`),this.removeAllScriptingObjects(Z),this.#l.unsubscribeByGuestId(Z),this.#a.delete(Z),this.#f.delete(Z),this.#S(Z,xe),z.remove(Z);return}const{hostUrl:hn}=An,ct=z.get(Z);try{this.#I(oe),await this.#D({id:xe,instanceId:Z,selfInitialize:Ve})}finally{ct?.contentDocument&&this.#O({id:xe,instanceId:Z,hostUrl:hn,documentEle:ct.contentDocument}),ct&&(ct.src="about:blank"),this.removeAllScriptingObjects(Z),this.#l.unsubscribeByGuestId(Z),this.#a.delete(Z),this.#f.delete(Z),this.#S(Z,xe),z.remove(Z)}};dispatchEvent=async Z=>{const{event:{id:oe,name:xe},eventOptions:Ve={}}=Z,{guestId:An}=Ve;if(!oe)throw new Error("Event Id is required");const hn=oe.split(".")?.[0],ct=An?this.#s.getObject(hn,{id:An}):this.#s.getObject(hn);return ct?this.#l.dispatchEvent(ct,Z):(this.#e.warn(`Attempt to dispatch event ${xe} on unknown object ${hn}`),Promise.resolve())};getApp=Z=>this.#a.get(Z)?.guest;getApps=()=>[...this.#a.values()].map(Z=>Z.guest);init=async Z=>{Z?this.#r.setPreloadedConfig(Z):await this.#r.load(),this.#o.init({version:this.#t,appConfig:this.#r}),this.#k()};#k=()=>{const Z=this.#r.get("microFrontendApps")??{},oe=new Set;Object.keys(Z).forEach(xe=>{const Ve=this.#o.getConfigById(xe);if(Ve?.hostUrl)try{oe.add(new URL(Ve.hostUrl).origin)}catch{}}),oe.forEach(xe=>{const Ve=document.createElement("link");Ve.rel="preconnect",Ve.href=xe,Ve.crossOrigin="anonymous",document.head.appendChild(Ve)})};mountApp=async Z=>{if(!Z)throw new Error("instanceId is required");const{id:oe}=this.#a.get(Z)||{};if(!oe)throw new Error(`Application with instance id ${Z} is not found`);const xe=this.#o.getConfigById(oe);if(!xe)throw new Error(`Application with id ${oe} is not found`);await this.#b({...xe,instanceId:Z})};#F=(Z,oe,xe)=>{const Ve=this.#P(xe),An=Z.defaultView;An&&(An.emui=An.emui??{},An.emui.__host=Ve,An.emui.getHost=()=>An.emui?.__host??null);const hn=Z.createElement("link");return hn.rel="preconnect",hn.href=oe.hostUrl,hn.crossOrigin="anonymous",Z.head.appendChild(hn),Ve};openApp=async Z=>{const{id:oe,frameOptions:xe,history:Ve,theme:An,homeRoute:hn,initialRoute:ct,metadata:Ft,selfInitialize:nr}=Z,ur=(0,n.A)();Ft&&this.#f.set(ur,Ft);const Xn=this.#o.getConfigById(oe);if(!Xn)throw new Error(`Application ${oe} is not found in app config`);const pn=Ae.get(Xn);pn.catch(()=>{});const kn=await z.create({id:oe,instanceId:ur,manifestPath:Xn.manifestPath,hostUrl:Xn.hostUrl,options:{title:Xn.name,...xe}});if(!kn?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#u.add({id:oe,instanceId:ur,documentEle:kn.contentDocument});const _n=this.#F(kn.contentDocument,Xn,{id:oe,instanceId:ur,containerId:xe?.containerId}),fn=await pn;return await this.#w({instanceId:ur,history:Ve,theme:An,documentEle:kn.contentDocument,containerId:xe?.containerId,...Xn,homeRoute:hn??Xn.homeRoute,initialRoute:ct,microFEHost:_n,selfInitialize:nr,manifest:fn}),nr||await this.#b({instanceId:ur,...Xn}),this.#_({id:oe,instanceId:ur}),this.#y(oe,ur),ur}catch(_n){throw this.#f.delete(ur),this.#S(ur,oe),this.#O({id:oe,instanceId:ur,hostUrl:Xn.hostUrl,documentEle:kn.contentDocument}),z.remove(ur),_n}};removeAllEventSubscriptions=()=>{this.#l.unsubscribeAll()};removeAllScriptingObjects=Z=>{this.#s.removeAllScriptingObjects(Z)};removeScriptingObject=(Z,oe)=>{this.#s.removeScriptingObject(Z,oe)};warmUp=Z=>{const oe=this.#o.getConfigById(Z);oe&&Ae.get(oe).catch(()=>{})};unmountApp=async Z=>{if(!Z)throw new Error("instanceId is required");const oe=this.#a.get(Z),{id:xe,selfInitialize:Ve}=oe||{};if(!xe)throw new Error(`Application with instance id ${Z} is not found`);if(!this.#o.getConfigById(xe))throw new Error(`Application with id ${xe} is not found`);await this.#D({id:xe,instanceId:Z,selfInitialize:Ve})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.32.3_@elliemae+pui-logrocket@1.5.0/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>J});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js");class i{#e;#t;#n;#i=new Map;static DEFAULT_THROTTLE_MS=1e4;constructor(F){this.#e=F.logger,this.#t=F.enabled??!0,this.#n=F.throttleMs??i.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(F,L){if(!this.#t){this.#e.debug(L);return}if(this.#n>0){const B=performance.now(),K=this.#i.get(F);if(K!==void 0&&B-K<this.#n){this.#e.debug(L);return}this.#i.set(F,B)}this.#e.audit(L)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:W}=window;try{return W?.location?.href}catch{return null}},g=W=>{if(!W||W==="about:blank")return"*";try{const{origin:F}=new URL(W);return F==="null"||!F?"*":F}catch{try{const{origin:F}=new URL(W,document.baseURI);return F==="null"||!F?"*":F}catch{return"*"}}},b=()=>window.self!==window.parent,v=(W,F)=>{const L=F||document.body,B=document.defaultView?.getComputedStyle?.(L,null),K=B?B[W]:"0";return parseInt(K,10)},h="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},S=(W,F)=>!!(window.opener&&W.source===window.opener||F&&W.data?.handshakeToken===F),P=()=>new Promise((W,F)=>{if(b())W({origin:g(document.referrer||p()),window:window.parent});else{const L=window,B=j();let K;const M=H=>{if(S(H,B)){const{source:G,type:q}=H.data||{};if(G===h&&q===s.G.HandShake){const{origin:te}=H,ce=H.source;clearTimeout(K),(0,r._)({targetWin:ce,targetOrigin:te,messageType:s.G.HandShakeAck,messageBody:{}}),L.removeEventListener("message",M),W({origin:te,window:ce})}}};K=setTimeout(()=>{L.removeEventListener("message",M),F(new Error(`Host handshake timed out after ${x}ms`))},x),L.addEventListener("message",M)}});let w=!1;const E=W=>{w=W},O=(W=null)=>{let F=W;const L=()=>{if(!F&&(F=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!F))throw new Error("Guest definition not found");return F};window.elli=window.elli??{},window.elli.script={guest:{create:(B,K)=>L().addScript(B,K,{asModule:!1})},connect:B=>(w||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);"),L().connect(B)),getObject:B=>(w||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);"),L().getObject(B)),setLogLevel:B=>(w||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),L().setLogLevel(B)),subscribe:(B,K,M,H)=>(w||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); });"),L().subscribe({eventId:`${B}.${K}`,callback:G=>M(G?.obj,G?.eventParams,G?.eventOptions),criteria:H?.criteria,...H?.filterOnGuest===!1?{filterOnGuest:!1}:{}})),unsubscribe:(B,K,M)=>(w||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 });"),L().unsubscribe({eventId:`${B}.${K}`,token:M}))}};try{O()}catch{}var D=null;const T=12e4,I=2e3,N=2e3,z={eventFeedback:!0},k=()=>{const{document:W}=window,F=W.body,L=W.documentElement,K={height:F.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(F.scrollWidth,L.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:g(W.referrer||p()),messageType:s.G.GuestResize,messageBody:K}),window.removeEventListener("load",k)};b()&&window.addEventListener("load",k);const U={"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"},$=["click","scroll","keypress","touchstart"],V=()=>{const W=document.currentScript?.src||"file:///var/opt/jenkins/workspace/PLATFORM-UI-rw_app-sdk_master/621/node_modules/.pnpm/@elliemae+ssf-guest@2.32.3_@elliemae+pui-logrocket@1.5.0/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",F=W?new URL(W).hostname:"localhost";return U[F]||U["cdn.mortgagetech.q1.ice.com"]};class J{#e;#t;#n;#i=!1;#r=null;#o=!1;#s=new Map;#l=null;#a=null;#f=null;#d=null;#c=null;#u=null;#h=new Map;#p(){if(!this.#c||!this.#d)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#c,hostOrigin:this.#d}}#E(F){let L={...z};if(F){const B={...F};delete B.window,L={...L,...B}}return L}#A(F){const{hostWindow:L,hostOrigin:B}=this.#p();this.#n.send({targetWin:L,targetOrigin:B,messageType:s.G.GuestReady,messageBody:F})}#x=!1;#m=null;#v=null;#w=null;#O=!0;#b=T;#g;#_=null;#j;constructor(F){const{console:L=!1,url:B=window.__ICE__?.diagnosticsUrl||V(),index:K="ssf-guest-v2",team:M="ICE",appName:H="SSF Guest V2 Application"}=F?.logger??{};this.#g=F?.logger,this.#x=F?.usesDevConnectAPI??!1,this.#O=F?.keepAlive??!0,this.#b=F?.keepAliveInterval??T;const G=L?(0,m.Console)():(0,m.http)(B);this.#t=F?.appLogger??(0,m.logger)({transport:G,index:K,team:M,appName:H}),this.#j=new i({logger:this.#t,enabled:F?.auditOperations,throttleMs:F?.auditThrottleMs}),(0,m.webvitals)(this.#t),(0,m.logUnhandledErrors)(this.#t),this.#e=(0,t.A)(),this.#n=new r.K(this.#t,this.#e),O(this),this.#t.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#e})}#y=()=>({guestId:this.#l,guestTitle:this.#a,guestUrl:this.#f});#S=F=>{if(!F||!F.objectId)throw this.#t.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const L=new d.V(F.objectId,F.objectType);return F.functions&&F.functions.forEach(B=>{Object.defineProperty(L,B,{value:async(...K)=>{const H=L[B]?.callContext?.callChain;return this.#T({objectId:L.id,functionName:B,functionParams:[...K],callerChain:H})},enumerable:!0})}),F.events&&F.events.forEach(B=>{Object.defineProperty(L,B,{value:new a.b3({objectId:L.id,name:B,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${L.id}")`),L};#T=async({objectId:F,functionName:L,functionParams:B,callerChain:K})=>{this.#t.debug(`Invoking scripting object method ${F}.${L}()...`);const M=[];if(B)for(let ce=0;ce<B.length;ce+=1){const ie=B[ce];ie instanceof Promise&&M.push(ie.then(fe=>{B[ce]=fe}))}await Promise.all(M);const{hostWindow:H,hostOrigin:G}=this.#p(),q=await this.#n.invoke({targetWin:H,targetOrigin:G,messageType:s.G.ObjectInvoke,messageBody:{objectId:F,functionName:L,functionParams:B,...K?.length?{callerChain:K}:{}}}),te=this.#C(q);return this.#j.log(`invoke:${F}.${L}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:F,scriptingMethod:L,...this.#y()}),te};#P(F,L){return(0,c.ts)(F,L,{regexCache:this.#h})}#C=F=>F?.type==="object"&&"object"in F?this.#S(F.object):F?.type==="value"?F.value:F;#R=({body:F})=>{F?.logLevel&&(this.#t.setLogLevel(F.logLevel),this.#t.debug(`Log level changed by host to ${F.logLevel}`)),this.#l=F?.guestId??null,this.#a=F?.guestTitle??null,this.#f=F?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#y()})};#D=()=>{window.focus()};#I=async()=>{await this.close(),window.close()};#k=()=>{b()||(this.#u=setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#F=async({sourceWin:F,sourceOrigin:L,requestId:B,body:K})=>{const M=this.#S(K.object);if(M){const H=(0,a._s)(M.id,K.eventName);this.#t.debug(`Received event "${H}" from host`);let G;K.eventHandler?G=[{callback:window[K.eventHandler],token:(0,t.A)(),eventId:H}]:G=this.#s.get(H)||[];const q=[];if(G.forEach(te=>{if(te?.callback){if(te.criteria&&te.filterOnGuest!==!1&&!(K.eventParams?this.#P(K.eventParams,te.criteria):!1)){this.#t.debug(`Event ${H} did not match criteria for subscriber ${te.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${te.callback.name} for event ${H}`);const ce=te.callback({obj:M,eventName:K.eventName,eventParams:K.eventParams,eventOptions:K.eventOptions});ce instanceof Promise?q.push(ce):typeof ce<"u"&&q.push(Promise.resolve(ce))}}),B){const te=await Promise.all(q);this.#n.respond({targetWin:F,targetOrigin:L,requestId:B,response:te}),this.#j.log(`event:${H}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:H,scriptingObject:M.id,...this.#y()})}else this.#j.log(`event:${H}`,{message:"Guest proxy processed event from host",scriptingEventId:H,scriptingObject:M.id,...this.#y()})}};#N=async()=>{if(!(!this.#m||!this.#v||!this.#w))try{await fetch(`${this.#w}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#m,client_id:this.#v}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(F){this.#t.warn(`Failed to extend token lifetime: ${F.message}`)}};#M=async()=>{if(this.#m&&this.#v&&this.#w)try{await fetch(`${this.#w}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#m,client_id:this.#v}).toString()}`,{method:"POST"})}catch(F){this.#t.error(`Error revoking token. ${F.message}`)}finally{this.#m=null,this.#v=null}};#B=async()=>{if(this.#O)try{const F=await Promise.race([this.getObject("application"),new Promise(L=>{setTimeout(()=>L(null),I)})]);F?(this.#_=n(async()=>{try{await F.keepSessionAlive(),await this.#N()}catch(L){this.#t.error(`Error keeping session alive. ${L.message}`)}},this.#b,{leading:!1}),$.forEach(L=>{document.addEventListener(L,this.#_)})):this.#t.warn("Application object not available to send keep alive")}catch(F){this.#t.error(`Error getting application object. ${F.message}`)}};addScript=async(F,L,B={})=>{const{asModule:K=!0}=B;if(!this.#i&&F){await this.connect();const M=document.createElement("script");M.setAttribute("src",F),K&&M.setAttribute("type","module"),await new Promise((H,G)=>{let q,te;const ce=()=>{M.removeEventListener("load",q),M.removeEventListener("error",te)};q=()=>{ce(),this.#i=!0,E(!0),H()},te=()=>{ce(),G(new Error(`Failed to load script: ${F}`))},M.addEventListener("load",q),M.addEventListener("error",te),this.#r=L.appendChild(M)})}};#U=()=>{const F=this.#c,L=this.#d;try{F&&L&&this.#s.forEach(B=>{B.forEach(({token:K,eventId:M})=>{try{this.#n.send({targetWin:F,targetOrigin:L,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:M,token:K}})}catch(H){this.#t.debug(`Failed to notify host of unsubscribe for ${M}: ${H.message}`)}})})}finally{this.#s.clear()}};#L=()=>{this.#u&&(clearInterval(this.#u),this.#u=null),this.#_&&($.forEach(F=>{document.removeEventListener(F,this.#_)}),this.#_.cancel(),this.#_=null)};close=async()=>{if(this.#o){if(this.#U(),this.#c&&this.#d)try{this.#n.send({targetWin:this.#c,targetOrigin:this.#d,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#d,window:this.#c})}catch(F){this.#t.debug(`Failed to notify host of guest close: ${F.message}`)}this.#n.close(),this.#L(),await this.#M(),window.removeEventListener("beforeunload",this.close),this.#o=!1,this.#t.audit({message:"Guest disconnected from host",...this.#y()}),this.#l=null,this.#f=null,this.#a=null}};connect=async F=>{if(this.#o){this.#A(this.#E(F));return}let L=window;F?.window&&(L=F.window);const B=this.#E(F),K=await P();this.#d=K.origin,this.#c=K.window,this.#n.initialize(L),this.#n.addSender({origin:this.#d,window:this.#c}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#F.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#R.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#D.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#I.bind(this)}),this.#A(B),this.#o=!0,this.#k(),this.#x&&await this.getAuthToken(),await this.#B(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})};getAuthToken=async()=>{if(!this.#m&&this.#o)try{const F=await this.getObject("auth");if(F){const L=await F.getAccessToken();this.#m=L?.access_token,this.#w=L?.host_name,this.#v=L?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(F){this.#t.error(`Error getting access token from auth object. ${F.message}`)}return this.#m};getObject=async F=>{if(this.#t.debug(`Retrieving scripting object "${F}" from host...`),!this.#o)throw new Error("Not connected to host");const{hostWindow:L,hostOrigin:B}=this.#p(),K=await this.#n.invoke({targetWin:L,targetOrigin:B,messageType:s.G.ObjectGet,messageBody:{objectId:F},responseTimeoutMs:N});if(!K?.object)throw new Error(`The requested object (${F}) is not available`);const M=this.#S(K.object);return this.#j.log(`getObject:${F}`,{message:"Received scripting object from host",scriptingObject:F,...this.#y()}),M};listObjects=async()=>{if(this.#t.debug("Retrieving names of scripting objects exposed by host..."),!this.#o)throw new Error("Not connected to host");const{hostWindow:F,hostOrigin:L}=this.#p(),B=await this.#n.invoke({targetWin:F,targetOrigin:L,messageType:s.G.ListObjects,messageBody:{}});return this.#j.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:B,...this.#y()}),B};removeScript=()=>{if(this.#i&&this.#r){const{parentNode:F}=this.#r;F?.removeChild?.(this.#r)}};setLogLevel=F=>{this.#t.setLogLevel(F),this.#t.debug(`Log level changed by guest to ${F}`)};subscribe=F=>{const{eventId:L,criteria:B,callback:K,filterOnGuest:M}=F;this.#t.debug(`Registering subscription for event ${L}`);const H=this.#s.get(L.toLowerCase())||[],G=(0,t.A)(),q={callback:K,token:G,criteria:B,eventId:L};M===!1&&(q.filterOnGuest=!1),H.push(q),this.#s.set(L.toLowerCase(),H);const{hostWindow:te,hostOrigin:ce}=this.#p();return this.#n.send({targetWin:te,targetOrigin:ce,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:L,criteria:B,token:G,...M===!1?{filterOnGuest:!1}:{}}}),this.#t.debug(`Subscribed to event ${L} with token ${G}`),G};unsubscribe=F=>{const{eventId:L,token:B}=F,K=this.#s.get(L.toLowerCase());if(K){const M=K.length,H=K.filter(G=>G.token!==B);if(H.length<M){this.#s.set(L.toLowerCase(),H);const{hostWindow:G,hostOrigin:q}=this.#p();this.#n.send({targetWin:G,targetOrigin:q,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:L,token:B}}),this.#t.debug(`Unsubscribed from event ${L}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.32.3_@elliemae+pui-diagnostics@3.12.6/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>B});var t=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.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.32.3_@elliemae+pui-diagnostics@3.12.6_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(K,M){return(0,c.of)(M)?(0,c.ts)(K,M):!0}var g=(K=>(K.Popup="popup",K.Embed="embed",K))(g||{}),b=(K=>(K.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",K.AllowDownloads="allow-downloads",K.AllowForms="allow-forms",K.AllowModals="allow-modals",K.AllowOrientationLock="allow-orientation-lock",K.AllowPointerLock="allow-pointer-lock",K.AllowPopups="allow-popups",K.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",K.AllowPresentation="allow-presentation",K.AllowSameOrigin="allow-same-origin",K.AllowScripts="allow-scripts",K.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",K.AllowTopNavigation="allow-top-navigation",K.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",K))(b||{});const v=K=>{if(K==="about:blank")return"*";try{const{origin:M}=new URL(K);return M==="null"||!M?K:M}catch{const{origin:H}=new URL(K,document.baseURI);return H}},h=K=>K.flat(1/0).filter(M=>M!==void 0);function x(K){return typeof K=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com",".elliemae.io",".ellieservices.com"],S=["localhost","127.0.0.1"],P=K=>K.split(".").slice(-2).join("."),w=K=>S.includes(K)||j.some(M=>K===M.slice(1)||K.endsWith(M)),E=K=>{const M=P(window.location.hostname),H=P(K);return M===H},O=K=>{if(!K)return!1;try{const{hostname:M}=new URL(K,document.baseURI);return w(M)||E(M)}catch{return!1}},D=1e3,T=5;class I{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;#i=null;#r=null;#o=null;constructor(M){const{guestId:H,domElement:G=null,title:q,url:te,window:ce,searchParams:ie={},openMode:fe=g.Embed,remoting:se,perfTracker:ae,handshakeToken:he}=M;this.id=H,this.title=q,this.url=te,this.origin=v(te),this.searchParams=ie,this.domElement=G,this.window=ce,this.openMode=fe,this.capabilities={},this.#t=ae,this.#e=se,this.#n=he}dispose=()=>{if(this.#s(!1),this.openMode===g.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#e.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});#s=M=>{this.#i&&(clearInterval(this.#i),this.#i=null),this.#r&&(this.#e.unlisten({messageType:i.G.HandShakeAck,callback:this.#r}),this.#r=null);const H=this.#o;this.#o=null,H&&M!==void 0&&H(M)};#l=()=>{this.#o&&this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}})};handShake=()=>(this.#s(!1),this.openMode!==g.Popup?Promise.resolve(!1):new Promise(M=>{let H=0;this.#o=M;const G=()=>{this.#o&&this.#s(!0)};this.#r=G,this.#l(),H=1,this.#i=setInterval(()=>{if(this.#o){if(H>=T){this.#s(!1);return}this.#l(),H+=1}},D),this.#e.listen({messageType:i.G.HandShakeAck,callback:G})}));init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===g.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(M,H)=>{let G;if(this.#t.enabled){const q=`ScriptingObject.Event.${M.object.objectId}.${M.eventName}`;G=this.#t.start(q,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:i.G.ObjectEvent,messageBody:M,responseTimeoutMs:H}).finally(()=>{G&&this.#t.end(G,{appId:this.id,appUrl:this.url})})};send=M=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...M})}}const N=new Set(["SSF.Guest.Load"]);class z{#e;#t;#n;#i=new Set;#r;#o=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(M){this.#e=M.analyticsObj,this.#t=M.enabled??!1,this.#n=M.samplingRatio??z.DEFAULT_SAMPLING_RATIO,this.#r=M.dedupWindowMs??z.DEFAULT_DEDUP_WINDOW_MS,this.#s=M.onError}get enabled(){return this.#t}start(M,H){if(this.#t)try{const G=N.has(M);return!G&&!this.shouldTrack(M)?void 0:(!G&&!this.#i.has(M)&&(this.#e.setTimingEventSamplingRatio({[M]:this.#n}),this.#i.add(M)),this.#e.startTiming(M,H).catch(q=>{this.reportError(`startTiming failed: ${q.message}`)}),M)}catch(G){this.reportError(`startTiming failed: ${G.message}`);return}}end(M,H){if(M)try{this.#e.endTiming(M,H).catch(G=>{this.reportError(`endTiming failed: ${G.message}`)})}catch(G){this.reportError(`endTiming failed: ${G.message}`)}}reportError(M){try{this.#s?.(M)}catch{}}shouldTrack(M){if(this.#r<=0)return!0;const H=performance.now(),G=this.#o.get(M);return G!==void 0&&H-G<this.#r?!1:(this.#o.set(M,H),!0)}}const k=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin],U="module",$="module.unloading",V="module.unmount",J=1e3,W=new n.P(U),F=K=>Array.isArray(K)&&K.some(M=>M===!1),L=()=>{};class B{hostId;#e;#t;#n;#i;#r=new Map;#o=new Map;#s=new Map;#l=new Map;#a;#f=null;#d=null;#c=new Map;#u=new Set;#h=new Set;#p=new Set;#E=null;#A=null;#x=new Map;#m;#v;constructor(M,H){if(this.hostId=M,!H?.logger)throw new Error("Logger is required");if(!H?.analyticsObj)throw new Error("Analytics object is required");this.#n=H.logger,this.#i=H.analyticsObj;const G={analyticsObj:H.analyticsObj,enabled:H?.measurePerformance,samplingRatio:H?.performanceSamplingRatio,onError:q=>this.#n.debug(q)};if(this.#m=new z({...G,dedupWindowMs:H?.performanceDedupWindowMs}),this.#v=new z({...G,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new r.K(this.#n,this.#t),H?.readyStateCallback&&typeof H?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#f=H?.readyStateCallback||null,this.#E=H?.onGuestEventSubscribe||null,this.#A=H?.onGuestEventUnsubscribe||null,this.#a=new s.qE,this.#e.initialize(window),this.#Q(),window.addEventListener("beforeunload",this.#b),window.addEventListener("pagehide",this.#b),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#w=(M,H)=>{const G={event:M,...H};this.#i.sendBAEvent(G).catch(q=>{this.#n.debug(`Analytics sendBAEvent failed: ${q.message}`)})};#O=()=>{this.#r.forEach(M=>{M.openMode!==g.Popup||M.window?.closed||M.dispose()})};#b=()=>{this.#O(),Array.from(this.#r.keys()).forEach(M=>this.#Y(M))};#g=M=>this.#o.get(M);#_=M=>this.#s.get(M)??null;#j=M=>typeof M?._toJSON=="function";#y=(M,H)=>this.#j(M)?(this.#a.has(M?.id,H)||this.#a.addScriptingObject(M,H?{guestId:H?.id}:{}),{type:"object",object:M._toJSON()}):{type:"value",value:M};#S=M=>typeof M=="string"?M:M instanceof Error?M.message:"An unexpected error occurred in the host application";#T=M=>{M.ready&&this.#e.send({targetWin:M.window,targetOrigin:M.origin,messageType:i.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...M.getInfo()}})};#P=({guest:M,obj:H,functionName:G,functionParams:q,callerChain:te})=>{const ce=H[G];return x(ce)?(this.#n.debug(`Invoking host implementation of ${H.id}.${String(G)}()`),new Promise(ie=>{Object.defineProperty(ce,"callContext",{value:{guest:M,...te?.length?{callChain:te}:{}},configurable:!0,enumerable:!0,writable:!0}),ie(ce(...q))})):(this.#n.warn(`Attempt to call invalid function on object type ${H.objectType}: ${String(G)}`),Promise.reject(new Error(`Method '${G}' not found in Scripting Object '${H.id}'`)))};#C=({sourceWin:M,sourceOrigin:H,requestId:G})=>{const q=this.#g(M);if(!q){this.#n.warn(`Received ready event for unknown guest. requestId: ${G}`);return}if(!q.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:M,targetOrigin:H,requestId:G,ex:"Guest must be initialized before it is marked as ready"});return}if(!q.ready){q.ready=!0;const te=q.getInfo();this.#m.end("SSF.Guest.Load",{appId:te.guestId,appUrl:te.guestUrl}),this.#T(q),this.#f?.(q),this.#n.audit({message:"Guest is ready",...te})}};#R=({sourceWin:M,sourceOrigin:H,requestId:G,body:q})=>{const te=this.#g(M);if(!te){this.#n.warn(`Received ready event for unknown guest. requestid = ${G}`);return}te.initialized?q&&(te.capabilities={...te.capabilities,...q}):(te.initialized=!0,te.capabilities=q||{},this.#n.audit({message:"Guest is initialized",...te.getInfo()})),(!q||!q.onReady)&&this.#C({sourceWin:M,sourceOrigin:H,requestId:G,type:"",body:null})};#D=({sourceWin:M})=>{if(!M)return;const H=this.#$(M);H&&this.#z(H.id)};#I=({sourceWin:M,sourceOrigin:H,requestId:G})=>{this.#n.debug(`Processing listObjects request. requestId = ${G}`);const q=this.#g(M);if(!q)return this.#n.warn("Rejected object request from unknown guest window"),!1;const te=this.#a.listScriptingObjects(q.id);return this.#e.respond({targetWin:M,targetOrigin:H,requestId:G,response:te}),this.#n.debug({message:"name of scripting objects returned",requestId:G,objects:te,...q.getInfo()}),!0};#k=({sourceWin:M,sourceOrigin:H,requestId:G,body:q})=>{const{objectId:te}=q;this.#n.debug(`Processing getObject request for object ${te}. requestId = ${G}`);const ce=this.#g(M);if(!ce)return this.#n.warn("Rejected object request from unknown guest window"),!1;const ie=this.getScriptingObject(te,{guest:ce});return ie?(this.#e.respond({targetWin:M,targetOrigin:H,requestId:G,response:this.#y(ie,ce)}),this.#n.debug({message:"Scripting Object returned",requestId:G,scriptingObject:te,...ce.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${te} from guest ${ce.id}`),this.#e.raiseException({targetWin:M,targetOrigin:H,requestId:G,ex:`The requested object (${te}) is not available`}),!1)};#F=({sourceWin:M,requestId:H,body:G})=>{const{eventId:q,criteria:te,filterOnGuest:ce,token:ie}=G;this.#n.debug(`Processing guest event subscribe request for event ${q}. requestId = ${H}`);const fe=this.#g(M);if(!fe){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#E?.({guestId:fe.id,eventId:q,criteria:te,token:ie,...ce===!1?{filterOnGuest:!1}:{}})}catch(se){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${q}: ${se.message}`)}},0)};#N=({sourceWin:M,requestId:H,body:G})=>{const{eventId:q,token:te}=G;this.#n.debug(`Processing guest event unsubscribe request for event ${q}. requestId = ${H}`);const ce=this.#g(M);if(!ce){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#A?.({guestId:ce.id,eventId:q,token:te})}catch(ie){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${q}: ${ie.message}`)}},0)};#M=({sourceWin:M,requestId:H,body:G})=>{const q=this.#g(M);if(!q||!this.#u.has(q.id)||this.#h.has(q.id)){q?this.#n.debug(`Ignored resize event from guest ${q.id}. requestId = ${H}`):this.#n.warn(`Received resize event from unknown guest. requestid = ${H}`);return}q.domElement&&(q.domElement.style.height=`${G.height}px`),this.#n.debug(`Guest ${q.id} resized to ${G.width}x${G.height}`)};#B=({sourceWin:M,sourceOrigin:H,requestId:G,body:q})=>{const{objectId:te,callerChain:ce}=q,ie=this.#g(M);if(!ie)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${te}.${String(q.functionName)}() called from guest "${ie.id}" (requestId = ${G})`);const fe=this.getScriptingObject(te,{guest:ie});if(!fe)return this.#n.warn(`Invocation of unknown or unauthorized object ${te} from guest ${ie.id}`),this.#e.raiseException({targetWin:M,targetOrigin:H,requestId:G,ex:`The requested object (${te}) is not available`}),!1;const se=ie.getInfo();let ae;if(this.#m.enabled){const he=`ScriptingObject.API.${te}.${q.functionName}`;ae=this.#m.start(he,{appId:se.guestId,appUrl:se.guestUrl})}return this.#P({guest:ie,obj:fe,functionName:q.functionName,functionParams:q.functionParams,callerChain:ce}).then(he=>{this.#e.respond({targetWin:M,targetOrigin:H,requestId:G,response:this.#y(he,ie)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:G,scriptingObject:te,scriptingMethod:q.functionName,...se})}).catch(he=>{this.#e.raiseException({targetWin:M,targetOrigin:ie.origin,requestId:G,ex:he}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:G,scriptingObject:te,scriptingMethod:q.functionName,...se})}).finally(()=>{ae&&this.#m.end(ae,{appId:se.guestId,appUrl:se.guestUrl})}),!0};#U=()=>{this.#e.listen({messageType:i.G.GuestResize,callback:this.#M})};#L=()=>{this.#e.unlisten({messageType:i.G.GuestResize,callback:this.#M})};#X=M=>{if(this.#u.has(M))return;const H=this.#u.size===0;this.#u.add(M),H&&this.#U()};#J=M=>{this.#u.delete(M)&&this.#u.size===0&&this.#L()};#Q=()=>{this.#e.listen({messageType:i.G.GuestReady,callback:this.#R}),this.#e.listen({messageType:i.G.GuestReadyComplete,callback:this.#C}),this.#e.listen({messageType:i.G.GuestClose,callback:this.#D}),this.#e.listen({messageType:i.G.ListObjects,callback:this.#I}),this.#e.listen({messageType:i.G.ObjectGet,callback:this.#k}),this.#e.listen({messageType:i.G.ObjectInvoke,callback:this.#B}),this.#e.listen({messageType:i.G.GuestEventSubscribe,callback:this.#F}),this.#e.listen({messageType:i.G.GuestEventUnsubscribe,callback:this.#N})};#Z=M=>M instanceof d.b3||typeof M?.subscribe=="function";#W=M=>{const H=new I({...M,remoting:this.#e,perfTracker:this.#v});return H.init(),this.#r.set(M.guestId,H),this.#o.set(H.window,H),this.#s.set(H.url,H),H};#$=M=>{if(typeof M=="string")return this.#r.get(M);const H=this.#o.get(M);return H||Array.from(this.#r.values()).find(G=>G.domElement===M)};#G=M=>M.openMode===g.Embed&&(!M.domElement||!M.domElement.isConnected);#q=M=>{this.#l.get(M)?.forEach(G=>{Promise.resolve(G({id:M})).catch(L)})};#z=M=>{this.#r.has(M)&&(this.#p.has(M)||(this.#p.add(M),this.#q(M)),this.#h.has(M)||this.#Y(M))};#ee=M=>{const H=M.domElement,G=H?.parentNode;if(!H||!G)return;const q=new MutationObserver(()=>{this.#G(M)&&(this.#H(M.id),this.#z(M.id))});q.observe(G,{childList:!0}),this.#c.set(M.id,q)};#H=M=>{this.#c.get(M)?.disconnect(),this.#c.delete(M)};#ne=()=>{this.#c.forEach(M=>M.disconnect()),this.#c.clear()};#te=()=>{this.#d||(this.#d=setInterval(()=>{const M=[];this.#r.forEach(H=>{H.openMode===g.Popup&&H.window.closed&&M.push(H)}),M.forEach(H=>{this.#z(H.id)})},1e3))};#re=()=>{if(!this.#d)return;Array.from(this.#r.values()).some(H=>H.openMode===g.Popup)||(clearInterval(this.#d),this.#d=null)};#oe=M=>{const H=O(M),G=H?void 0:(0,t.A)();return{popupUrl:G?`${M}#hs=${G}`:M,handshakeToken:G,trusted:H}};#se=M=>{const{url:H,title:G,popupWindowFeatures:q={},searchParams:te,guestId:ce,onLoad:ie,onError:fe}=M,{width:se=800,height:ae=600,top:he=100,left:re=100}=q;let je=this.#_(H);if(je)je.window.closed||(O(H)?window.open("",G):je.window.focus());else{const ze=Object.entries({width:se,height:ae,top:he,left:re}).filter(([,De])=>De).map(([De,Be])=>`${De}=${Be}`).join(","),{popupUrl:Xe,handshakeToken:en,trusted:ve}=this.#oe(H),pe=window.open(Xe,G,`popup, ${ze}`);if(pe)setTimeout(()=>{try{ie?.(ce)}catch(De){this.#n.debug(`Error occurred in onLoad for guest with id '${ce}': ${De.message}`)}},0);else throw setTimeout(()=>{try{fe?.(ce)}catch(De){this.#n.debug(`Error occurred in onError for guest with id '${ce}': ${De.message}`)}},0),new Error("Failed to open guest application in popup window");ve||(pe.opener=null),je=this.#W({guestId:ce,window:pe,title:G,url:H,searchParams:te,openMode:g.Popup,handshakeToken:en}),this.#te()}return je};#V=(M,H,G)=>{setTimeout(()=>{try{H?.(M)}catch(q){this.#n.debug(`Error occurred in ${G} for guest with id '${M}': ${q.message}`)}},0)};#ie=(M,H,G={})=>{const{onLoad:q,onError:te}=G,ce=()=>{this.#V(H,q,"onLoad"),this.#n.debug(`frame loaded for guest with id '${H}'`),M.removeEventListener("load",ce)},ie=()=>{this.#V(H,te,"onError"),this.#n.error(`frame load failed for guest with id '${H}'`),M.removeEventListener("error",ie)};M.addEventListener("load",ce),M.addEventListener("error",ie)};#ae=M=>{const{url:H,title:G,targetElement:q,searchParams:te,guestId:ce,onLoad:ie,onError:fe,options:se={}}=M,ae=q.ownerDocument??document,{fitToContent:he=!1,disableSandbox:re=!1,sandboxValues:je=[],customSandboxValues:ze=[],style:Xe="",permissionPolicy:en=""}=se;if(!G)throw new Error("title is required");const ve=ae.createElement("iframe");ve.setAttribute("id",ce),this.#ie(ve,ce,{onLoad:ie,onError:fe}),ve.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${Xe}`),re||ve.setAttribute("sandbox",ze.length>0?ze.join(" "):[...k,...je].join(" ")),ve.setAttribute("title",G),ve.setAttribute("src",H),en&&ve.setAttribute("allow",en),q.appendChild(ve);const pe=ae.getElementById(ce),De=this.#W({guestId:ce,domElement:pe,window:pe.contentWindow,title:G,url:H,searchParams:te,openMode:g.Embed});return he&&this.#X(De.id),this.#ee(De),De};#le=(M,H)=>{let G="";return Object.keys(H).forEach(q=>{G+=`${(G.length?"&":"")+encodeURIComponent(q)}=${encodeURIComponent(H[q])}`}),M+(G?(M.indexOf("?")>=0?"&":"?")+G:"")};addScriptingObject=(M,H)=>{if((0,a.h)(M)){const G=this.cloneScriptingObject(M);this.#a.addScriptingObject(G,H)}else this.#a.addScriptingObject(M,H)};cloneScriptingObject=M=>{if(!M)throw new Error("proxy is required");const H=new n.P(M.id,M.objectType);let G=[];return Object.keys(M).forEach(q=>{const te=M[q];if(this.#Z(te)){const ce=new d.Jh({name:te.name||q,objectId:H.id});if(Object.defineProperty(H,q,{value:ce,enumerable:!0}),te instanceof d.b3){const ie=({eventParams:se,eventOptions:ae})=>this.dispatchEvent({event:ce,eventParams:se,eventOptions:ae}),fe=te.subscribe(ie);G.push(()=>{te.unsubscribe(fe)})}else{const ie=te.subscribe?.((fe,se,ae)=>this.dispatchEvent({event:ce,eventParams:se,eventOptions:ae}));G.push(()=>{te.unsubscribe?.(ie)})}}else if(x(te)&&(Object.defineProperty(H,q,{value:async(...ce)=>{const ie=H[q]?.callContext;if(ie?.guest){const se=ie.callChain??[],ae=ie.guest.id,he=this.#x.get(ae),re={id:ae};he&&(re.metadata=he),Object.defineProperty(te,"callContext",{value:{callChain:[...se,re]},configurable:!0,enumerable:!0,writable:!0})}const fe=await te(...ce);return(0,a.h)(fe)?this.cloneScriptingObject(fe):fe},enumerable:!0}),q==="dispose")){const ce=H.dispose;Object.defineProperty(H,q,{value:()=>(H._dispose(),ce.apply(H)),enumerable:!0})}}),H._dispose=()=>{G.forEach(q=>{q?.()}),G=[]},H};close=()=>{this.#d&&(clearInterval(this.#d),this.#d=null),this.#ne(),this.#b(),this.#u.clear(),this.#p.clear(),this.#L(),this.#l.clear(),this.removeAllScriptingObjects(),this.#x.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#b),window.removeEventListener("pagehide",this.#b),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#de=({targetGuest:M,guestCapabilities:H,scriptingEventId:G,dispatchToGuest:q})=>{const te=ce=>{if((0,c.of)(H)&&!p(ce.capabilities,H)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:G,guestCapabilities:H,...ce.getInfo()});return}q(ce)};M?te(M):this.#r.forEach(te)};#ue=(M,H)=>(H?this.getScriptingObject(M,{guest:H}):this.getScriptingObject(M))??(M===U&&H?W:null);dispatchEvent=async M=>{const{event:{id:H,name:G},eventParams:q,eventOptions:te={}}=M,{eventHandler:ce=null,timeout:ie=null,window:fe=null,guestId:se,guestCapabilities:ae}=te,he=H.split(".")[0],re=se||fe,je=re?this.#$(re):null,ze=this.#ue(he,je??null);if(!ze)return this.#n.warn(`Attempt to dispatch event ${G} on unknown object ${he}`),Promise.resolve([]);const Xe={object:ze._toJSON(),eventName:G,eventParams:q,eventHandler:ce,eventOptions:{allowsFeedback:!1}};ie&&!Number.isNaN(ie)&&(Xe.eventOptions={allowsFeedback:!0,timeout:Number(ie)});const en=[];let ve;const pe=De=>{const Be=De.getInfo();ie&&De?.capabilities?.eventFeedback?(en.push(De.dispatchEvent(Xe,ie)),!ve&&this.#m.enabled&&(ve=this.#m.start(`ScriptingObject.Event.${ze.id}.${G}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:H,...Be})):(De.send({messageType:i.G.ObjectEvent,messageBody:Xe}),this.#n.debug({message:"Event dispatched",scriptingEventId:H,...Be}))};return this.#de({targetGuest:je??null,guestCapabilities:ae,scriptingEventId:H,dispatchToGuest:pe}),Promise.all(en).then(De=>(this.#n.debug({message:"Event feedback received",scriptingEventId:H}),h(De))).catch(De=>{throw this.#n.error({message:"Error processing event",eventId:H,exception:De}),De}).finally(()=>{ve&&this.#m.end(ve,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(M,H)=>this.#a.getObject(M,H?.guest);loadGuest=M=>{const{id:H,url:G,targetElement:q,title:te,searchParams:ce={},onLoad:ie,onError:fe,options:se={},metadata:ae}=M;if(!H)throw new Error("id for guest application is required");let he=H;if(this.#r.has(he)){let en=1;for(;this.#r.has(`${H}-${en}`);)en+=1;he=`${H}-${en}`}const{openMode:re=g.Embed,popupWindowFeatures:je={}}=se,ze=this.#le(G,ce);let Xe=null;if(this.#m.start("SSF.Guest.Load",{appId:he,appUrl:ze}),re===g.Popup)Xe=this.#se({guestId:he,url:ze,title:te,searchParams:ce,popupWindowFeatures:je,onLoad:ie,onError:fe});else if(re===g.Embed)Xe=this.#ae({guestId:he,url:ze,title:te,targetElement:q,searchParams:ce,onLoad:ie,onError:fe,options:se});else throw new Error(`Invalid openMode: ${re}`);return ae&&this.#x.set(he,ae),this.#n.audit({message:"Guest loaded",...Xe.getInfo()}),Xe};loadGuests=M=>{const{id:H,url:G,targetElement:q,title:te,searchParamsList:ce=[],options:ie={}}=M;ce.forEach((fe,se)=>{this.loadGuest({id:`${H}-${se}`,url:G,title:te,targetElement:q,searchParams:fe,options:ie})},this)};removeAllScriptingObjects=M=>{this.#a.removeAllScriptingObjects(M)};removeScriptingObject=(M,H)=>{this.#a.removeScriptingObject(M,H)};setLogLevel=M=>{this.#n.setLogLevel(M),this.#r.forEach(this.#T),this.#n.debug("Dispatched config events to all guests")};#K=async(M,H,G)=>this.dispatchEvent({event:{id:H,name:G},eventParams:{moduleId:M.id},eventOptions:{timeout:J,guestId:M.id}});#ce=async M=>{try{const H=await this.#K(M,$,"unloading");if(F(H))return this.#n.info(`Unload denied by guest ${M.id} via module.unloading event`),!1}catch(H){this.#n.warn({message:`Error dispatching module.unloading event for ${M.id}; proceeding with unload`,exception:H})}return!0};#me=async M=>{try{await this.#K(M,V,"unmount")}catch(H){this.#n.warn({message:`Error dispatching module.unmount event for ${M.id}`,exception:H})}};#Y=M=>{this.unloadGuest(M).catch(L)};#pe=M=>{this.#H(M.id),this.#J(M.id),M.dispose(),this.removeAllScriptingObjects(M.id),this.#o.delete(M.window),this.#s.delete(M.url),this.#x.delete(M.id),this.#r.delete(M.id),this.#l.delete(M.id),this.#p.delete(M.id),this.#n.audit({message:"Guest is removed from host",...M.getInfo()}),this.#re()};unloadGuest=async M=>{const H=this.#$(M);if(H&&!this.#h.has(H.id)){this.#h.add(H.id);try{if(!(Boolean(H.window?.closed)||this.#G(H))){if(!await this.#ce(H)){this.#p.delete(H.id);return}await this.#me(H)}this.#pe(H)}finally{this.#h.delete(H.id)}}};onGuestClose=M=>{const{id:H,guestCloseCallback:G}=M,q=this.#l.get(H)||[];q.push(G),this.#l.set(H,q)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{E8:()=>se,_7:()=>ve});var t,n,r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),s=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),i=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");function d(Le){return n({theme:Le})}function a(Le,Ye){const Ne=d(Le)[Ye];return Ne===0?null:Ne}function c(Le,Ye){const Ne=d(Le)[Ye];return Ne===0?null:Ne-.02}function m(){const[Le,Ye]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function Ze(){Ye(window.innerWidth)}return window.addEventListener("resize",Ze),Ye(window.innerWidth),()=>window.removeEventListener("resize",Ze)},[]),Le}function p(Le){const Ye=d(Le),Ze=m();return t.useMemo(()=>Object.keys(Ye).reverse().find(Ne=>Ze!==null&&Ze>=Ye[Ne])||null,[Ye,Ze])}function g(Le,Ye){const Ze=a(Le,Ye),Ne=m();return Ne!==null&&Ze!==null&&Ne>=Ze}function b(Le,Ye){const Ze=c(Le,Ye),Ne=m();return Ne!==null&&Ze!==null&&Ne<Ze}const v=(...Le)=>Le.filter(Boolean).join("."),h=Le=>`--${Le.replace(/\./g,"-")}`,x=(Le,Ye)=>`var(${h(Le)}, ${Ye})`,j=(Le,Ye)=>`${Le}: ${Ye};`;function S(Le,Ye,Ze=Object.keys(Le),Ne){const Se=Array.isArray(Le)?[]:{};for(const Gn in Ze){const Vn=Ze[Gn],vn=Le[Vn],Pn=v(Ne,Vn);if((0,i.WL)(vn)){Se[Vn]=S(vn,Ye,Object.keys(vn),Pn);continue}if((0,i.Yj)(vn)){Se[Vn]=x(Pn,vn);continue}if((0,i.Pc)(vn)){Se[Vn]=x(Pn,(0,i.DJ)(vn,{theme:Ye}));continue}}return Se}function P(Le,Ye,Ze=Object.keys(Le),Ne,Se={value:""}){for(const Gn in Ze){const Vn=Ze[Gn],vn=Le[Vn],Pn=v(Ne,Vn);if((0,i.WL)(vn)){P(vn,Ye,Object.keys(vn),Pn,Se);continue}if((0,i.Yj)(vn)){Se.value+=j(h(Pn),vn);continue}if((0,i.Pc)(vn)){Se.value+=j(h(Pn),(0,i.DJ)(vn,{theme:Ye}));continue}}return Se.value}var w=Object.defineProperty,E=Object.defineProperties,O=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,N=(Le,Ye,Ze)=>Ye in Le?w(Le,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Le[Ye]=Ze,z=(Le,Ye)=>{for(var Ze in Ye||(Ye={}))T.call(Ye,Ze)&&N(Le,Ze,Ye[Ze]);if(D)for(var Ze of D(Ye))I.call(Ye,Ze)&&N(Le,Ze,Ye[Ze]);return Le},k=(Le,Ye)=>E(Le,O(Ye)),U=(Le,Ye)=>{var Ze={};for(var Ne in Le)T.call(Le,Ne)&&Ye.indexOf(Ne)<0&&(Ze[Ne]=Le[Ne]);if(Le!=null&&D)for(var Ne of D(Le))Ye.indexOf(Ne)<0&&I.call(Le,Ne)&&(Ze[Ne]=Le[Ne]);return Ze};const $="xstyled-color-mode",J=typeof window<"u"&&(()=>{try{const Le="xstyled-test-key";return window.localStorage.setItem(Le,Le),window.localStorage.removeItem(Le),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem($),set:Le=>{window.localStorage.setItem($,Le)},clear:()=>window.localStorage.removeItem($)}:{get:()=>null,set:()=>{},clear:()=>{}},W="xstyled-color-mode-",F=Le=>`${W}${Le}`,L="xstyled-colors",B=["light","dark"];function K(Le,Ye){return k(z({},Le),{colors:z(z({},Le.colors),Le.colors.modes[Ye])})}const M=Le=>`@media ${Le}`,H=Le=>`(prefers-color-scheme: ${Le})`;function G(Le){return Boolean(Le&&Le.colors&&Le.colors.modes)}function q(Le){return Boolean(Le&&(Le.useCustomProperties===void 0||Le.useCustomProperties))}function te(Le){return Boolean(Le&&(Le.useColorSchemeMediaQuery===void 0||Le.useColorSchemeMediaQuery))}function ce(Le){return Le.initialColorModeName||"default"}function ie(Le){return Le.defaultColorModeName||ce(Le)}function fe(Le){let Ye=[];for(const Ze in Le)Ye=[...Ye,...Object.keys(Le[Ze])];return Ye}function se(Le,{targetSelector:Ye="body"}={}){if(!G(Le))return null;const Ze=Le.colors,{modes:Ne}=Ze,Se=U(Ze,["modes"]),Gn=fe(Ne);let Vn=P(Se,Le,Gn,L);function vn(Un){const pt=K(Le,Un),St=pt.colors,{modes:ee}=St,de=U(St,["modes"]);return P(z(z({},de),ee[Un]),pt,Gn,L)}return Le.useColorSchemeMediaQuery!==!1&&B.forEach(Un=>{if(Ne[Un]){const pt=M(H(Un));Vn+=`${pt}{${vn(Un)}}`}}),[ce(Le),...Object.keys(Ne)].forEach(Un=>{const pt=`&.${F(Un)}`;Vn+=`${pt}{${vn(Un)}}`}),`${Ye}{${Vn}}`}function ae(Le){if(typeof window>"u"||window.matchMedia===void 0)return null;const Ye=H(Le);return window.matchMedia(Ye)}function he(Le){const Ye=r.useMemo(()=>te(Le)?B.map(Se=>{if(!G(Le)||!Le.colors.modes[Se])return null;const Gn=ae(Se);return Gn?{mode:Se,mql:Gn}:null}).filter(Boolean):[],[Le]),[Ze,Ne]=r.useState(()=>{const Se=Ye.find(Gn=>Gn.mql.matches);return Se?Se.mode:null});return r.useEffect(()=>{const Se=Ye.map(({mode:Gn,mql:Vn})=>{const vn=({matches:Pn})=>{Ne(Pn?Gn:Un=>Un===Gn?null:Gn)};return Vn.addEventListener("change",vn),()=>Vn.removeEventListener("change",vn)});return()=>Se.forEach(Gn=>Gn())}),Ze}const re=typeof window<"u"?r.useLayoutEffect:r.useEffect;function je(Le,{target:Ye}={}){const Ze=he(Le),Ne=ie(Le),Se=ce(Le),[Gn,Vn]=r.useState(()=>G(Le)?Ne:null),vn=q(Le),Pn=r.useCallback(Un=>{Vn(Un||null),Un?J.set(Un):J.clear()},[]);return re(()=>{if(!G(Le))return;const Un=J.get();Gn!==(Un||Ze||Ne)&&Vn(Un||Ze||Ne)},[]),re(()=>{if(J.get())return;const pt=Ze||Ne;pt!==Gn&&Vn(pt)},[Gn,Ze,Ne]),re(()=>{if(!Gn||!vn||!J.get()&&!(Se!==Gn))return;const St=F(Gn),ee=Ye||document.body;return ee.classList.add(St),()=>{ee.classList.remove(St)}},[vn,Ye,Gn,Se]),[Gn,Pn]}function ze(Le,Ye){const[Ze]=r.useState(Ye),Ne=r.useMemo(()=>{if(!Ze||!q(Le))return null;if(!G(Le))return Le;const Gn=Le.colors,{modes:Vn}=Gn,vn=U(Gn,["modes"]),Pn=fe(Vn);return k(z({},Le),{colors:k(z(z({},vn),S(vn,Le,Pn,L)),{modes:Vn}),__rawColors:Le.colors})},[Ze,Le]),Se=r.useMemo(()=>!Ye||q(Le)?null:G(Le)?Ye===ce(Le)?k(z({},Le),{__colorMode:Ye}):k(z({},Le),{colors:z(z({},Le.colors),Le.colors.modes[Ye]),__colorMode:Ye,__rawColors:Le.colors}):Le,[Le,Ye]);return Ne||Se}const Xe=r.createContext(null);function en(){const Le=t.useContext(Xe);if(!Le)throw new Error("[useColorMode] requires the ColorModeProvider component");return Le}function ve({ThemeContext:Le,ThemeProvider:Ye,ColorModeStyle:Ze}){function Ne({children:Se,target:Gn,targetSelector:Vn}){const vn=r.useContext(Le);if(!vn)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const Pn=je(vn,{target:Gn}),Un=ze(vn,Pn[0]);return r.createElement(r.Fragment,null,r.createElement(Ze,{targetSelector:Vn}),r.createElement(Ye,{theme:Un},r.createElement(Xe.Provider,{value:Pn},Se)))}return Ne}function pe({target:Le="document.body"}={}){return`(function() { try {
18401
18401
  var mode = localStorage.getItem('${$}');
18402
18402
  if (mode) ${Le}.classList.add('${W}' + mode);
18403
18403
  } catch (e) {} })();`}function De(Le){return t.createElement("script",{key:"xstyled-color-mode-init",dangerouslySetInnerHTML:{__html:pe(Le)}})}function Be(Le){return`<script>${pe(Le)}<\/script>`}function Ce(){return["&&{",s.qUY,"}"]}Ce.meta=s.qUY.meta;const $e=Le=>Ye=>Ze=>{const Ne=Le((0,s.o$4)(Ze),Ye);return Ne===null?"0":Ne||Ye},Ge={"min-width":$e(s.ieS),"max-width":$e(s.Ct)},qe="[-\\w]",dn=`(${qe}+)(\\s*:\\s*)(?=\\S)((?:\\\\[\\s\\S]|[^\\\\;{}])*?)(\\s*!important)?(\\s*;)`,me="(@media\\b\\s*)(?=\\S)([^{]+?)(\\s*\\{)",we=new RegExp(`(?:${dn}|${me})`,"g"),Ke=new RegExp(`(\\(\\s*)(${qe}+)(\\s*:\\s*)([^\\)]*?)(\\s*\\))`,"g"),He=Le=>{let Ye,Ze=0;const Ne=[];for(;Ye=Ke.exec(Le);){const[,Se,Gn,Vn,vn,Pn]=Ye,Un=Ge[Gn];Un&&(Ne.push(Le.slice(Ze,Ye.index)),Ne.push(pt=>`${Se}${Gn}${Vn}${Un(vn)(pt)}${Pn}`),Ze=Ye.index+Ye[0].length)}return Ne.push(Le.slice(Ze,Le.length)),Ne},rn=Le=>Ye=>{if(typeof Ye!="string")return Ye;let Ze,Ne=0;const Se=[];for(;Ze=we.exec(Ye);){const[,Gn,Vn,vn,Pn,Un,pt,St,ee]=Ze;if(pt)Se.push(Ye.slice(Ne,Ze.index)),Se.push(pt),He(St).forEach(de=>Se.push(de)),Se.push(ee),Ne=Ze.index+Ze[0].length;else{const de=Le.meta.cssGetters[Gn];de&&(Se.push(Ye.slice(Ne,Ze.index)),Se.push(Z=>`${Gn}${Vn}${de(vn)(Z)}${Pn||""}${Un}`),Ne=Ze.index+Ze[0].length)}}return Se.push(Ye.slice(Ne,Ye.length)),Se},Ae=(Le,Ye)=>(Ze,Ne)=>{const Se=Ye();return(0,r.useMemo)(()=>Le(Ze,Ne)({theme:Se}),[Ze,Ne,Se])};e.d(o,["B1",0,Ae,"l1",0,rn])},"./node_modules/.pnpm/@xstyled+styled-components@3.8.1_styled-components@5.3.11/node_modules/@xstyled/styled-components/dist/index.mjs"(u,o,e){"use strict";var t,n,r,s,i=e("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.cjs.js"),d=e("./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"),a=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),c=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),m=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");const p=(0,i.createGlobalStyle)`${$e=>(0,d.E8)($e.theme,{targetSelector:$e.targetSelector})}`,g=(0,d._7)({ThemeContext:i.ThemeContext,ThemeProvider:i.ThemeProvider,ColorModeStyle:p}),b=()=>(0,a.useContext)(i.ThemeContext),v=(0,d.B1)(c.th,b),h=(0,d.B1)(c.th.angle,b),x=(0,d.B1)(c.th.animation,b),j=(0,d.B1)(c.th.border,b),S=(0,d.B1)(c.th.borderColor,b),P=(0,d.B1)(c.th.borderStyle,b),w=(0,d.B1)(c.th.borderWidth,b),E=(0,d.B1)(c.th.color,b),O=(0,d.B1)(c.th.duration,b),D=(0,d.B1)(c.th.font,b),T=(0,d.B1)(c.th.fontSize,b),I=(0,d.B1)(c.th.fontWeight,b),N=(0,d.B1)(c.th.inset,b),z=(0,d.B1)(c.th.letterSpacing,b),k=(0,d.B1)(c.th.lineHeight,b),U=(0,d.B1)(c.th.percent,b),$=(0,d.B1)(c.th.px,b),V=(0,d.B1)(c.th.radius,b),J=(0,d.B1)(c.th.ringWidth,b),W=(0,d.B1)(c.th.shadow,b),F=(0,d.B1)(c.th.size,b),L=(0,d.B1)(c.th.space,b),B=(0,d.B1)(c.th.timingFunction,b),K=(0,d.B1)(c.th.transform,b),M=(0,d.B1)(c.th.transition,b),H=(0,d.B1)(c.th.transitionProperty,b),G=(0,d.B1)(c.th.zIndex,b),q=()=>t(b()),te=()=>n(b()),ce=$e=>r(b(),$e),ie=$e=>s(b(),$e),fe=(0,i.createGlobalStyle)(({theme:$e})=>(0,c.wlu)($e)),se=$e=>{const Ge=(0,d.l1)($e);return(...qe)=>{const Je=(0,i.css)(...qe);return(0,m.tc)(Je).map(Ge)}},ae=typeof i=="function"?i:i.default,he=($e,Ge,qe)=>{const Je=(...dn)=>$e`${Ge(...dn)}${qe}`;return Je.attrs=dn=>he($e.attrs(dn),Ge,qe),Je.withConfig=dn=>he($e.withConfig(dn),Ge,qe),Je},re=$e=>{const Ge=new Set($e.meta.props);return(qe,Je,dn)=>(0,m.Yj)(qe)&&Ge.has(qe)?!1:typeof dn=="string"?Je(qe):!0},je=($e,Ge)=>{const qe=Ge?{shouldForwardProp:re(Ge)}:{};return Je=>{const dn=ae(Je);return he(qe?dn.withConfig(qe):dn,$e,Ge)}},ze=$e=>{const Ge=se($e),qe=je(Ge),Je=je(Ge,$e);return qe.box=Je("div"),Object.keys(ae).forEach(dn=>{qe[dn]=qe(dn),qe[`${dn}Box`]=Je(dn)}),qe},Xe=$e=>{const Ge=je(se($e),$e),qe={};return Object.keys(ae).forEach(Je=>{qe[Je]=Ge(Je)``}),qe},en=$e=>{const Ge=se($e);return(...qe)=>(0,i.createGlobalStyle)([Ge(...qe)])},ve=$e=>({css:se($e),x:Xe($e),styled:ze($e),createGlobalStyle:en($e)}),{css:pe,styled:De,x:Be,createGlobalStyle:Ce}=ve(c.qUY);e.d(o,["Yb",0,ve])},"./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"(u,o,e){"use strict";e.d(o,{ZzX:()=>je});var t,n=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs"),r=Math.pow;const s=Wn=>Math.round(Wn*r(10,4))/r(10,4),i=Wn=>st=>(0,n.bu)(st)&&st!==0?`${st}${Wn}`:st,d=i("ms"),a=i("px"),c=i("deg"),m=(Wn,{rootFontSize:st=16}={})=>s(Wn/st),p=(Wn,st)=>{const Mt=Number(Wn);return Number.isNaN(Mt)||Mt===0?Wn:`${m(Mt,st)}rem`},g=(Wn,st)=>{if(!(0,n.Yj)(Wn)||Wn.length<4||Wn.slice(-3)!=="rpx")return Wn;const lo=Number(Wn.slice(0,Wn.length-3));return lo===0?0:`${m(lo,st)}rem`},b=Wn=>(0,n.bu)(Wn)&&Wn!==0&&Wn>=-1&&Wn<=1?`${s(Wn*100)}%`:Wn,v=(Wn,{rawValue:st,variants:Mt,props:lo})=>{if((0,n.Yj)(st)){const to=st.startsWith("-"),Ro=to?st.substr(1):st,Vo=(0,n.nv)(lo,Ro,Mt),os=(0,n.Yj)(Vo)||(0,n.bu)(Vo)?Vo:Ro;return to?`-${os}`:os}if((0,n.bu)(st)){const to=(0,n.gu)(st),Ro=Math.abs(st),Vo=Mt?Mt[Ro]:void 0;if((0,n.Yj)(Vo))return to?`-${Vo}`:Vo;const os=(0,n.bu)(Vo)?Vo:Ro;return to?os*-1:os}},h=Wn=>Wn?`@media (min-width: ${Wn})`:null,x=Wn=>Wn?`@media (max-width: ${Wn})`:null,j=(Wn,st)=>Wn&&st?`@media (min-width: ${Wn}) and (max-width: ${st})`:null,S=(Wn,st)=>{const Mt=Wn[st];return Mt===0?null:a(Mt)},P=(Wn,st)=>{const Mt=Wn[st];return Mt===0?null:a(Mt-.02)};var w=Object.defineProperty,E=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,T=(Wn,st,Mt)=>st in Wn?w(Wn,st,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Wn[st]=Mt,I=(Wn,st)=>{for(var Mt in st||(st={}))O.call(st,Mt)&&T(Wn,Mt,st[Mt]);if(E)for(var Mt of E(st))D.call(st,Mt)&&T(Wn,Mt,st[Mt]);return Wn};const N=Wn=>Wn.theme&&Wn.theme.screens?Wn.theme.screens:{},z=Wn=>Wn.theme&&Wn.theme.states?Wn.theme.states:{},k=Wn=>{const st=N(Wn),Mt=z(Wn),lo={};for(const Ro in st)lo[Ro]=h(S(st,Ro));const to=I(I({},lo),Mt);for(const[Ro,Vo]of Object.entries(to))Vo&&Vo.startsWith("@")&&(delete to[Ro],to[Ro]=Vo);return to},U=(Wn,st)=>{if(st.has("_variants"))return st.get("_variants");const Mt=k(Wn);return st.set("_variants",Mt),Mt},V=typeof Map<"u"&&typeof WeakMap<"u"?new WeakMap:null,J=Wn=>{var st;return((st=Wn?.xstyled)==null?void 0:st.cache)===!1},W=Wn=>{if(J(Wn)||V===null)return null;if(V.has(Wn))return V.get(Wn)||null;const Mt={};return V.set(Wn,Mt),Mt},F={has:()=>!1,set:()=>{},get:()=>{}},L=(Wn,st)=>{if(!Wn)return F;const Mt=W(Wn);return Mt?(Mt[st]=Mt[st]||new Map,Mt[st]):F};var B=Object.defineProperty,K=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,G=(Wn,st,Mt)=>st in Wn?B(Wn,st,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Wn[st]=Mt,q=(Wn,st)=>{for(var Mt in st||(st={}))M.call(st,Mt)&&G(Wn,Mt,st[Mt]);if(K)for(var Mt of K(st))H.call(st,Mt)&&G(Wn,Mt,st[Mt]);return Wn};let te=0;const ce={shorthand:[/\s+/," "],multiple:[/\s*,\s*/,","]},ie=(Wn,st)=>Mt=>Mt.split(Wn[0]).map(st).join(Wn[1]),fe=({name:Wn,transform:st,key:Mt,compose:lo,shorthand:to,multiple:Ro})=>{const Vo=te++,os=(Jo,Us)=>Rs=>{let Mi=Jo;if(!(0,n.Yj)(Jo)&&!(0,n.bu)(Jo)&&Jo!==!0)return Mi;const Li=`${typeof Jo}-${Jo}-${Us}`,ma=L(Rs.theme,`__themeGetter${Vo}`);if(ma.has(Li))return ma.get(Li);const fi=ni=>{const Yi=(0,n.is)(Us)?Us:ni;let Js=ni;const Ia=(0,n.is)(Mt)?(0,n.nv)(Rs,Mt):null;if((0,n.is)(Ia)){const bi=ni===!0?"default":(0,n.Yj)(ni)||(0,n.bu)(ni)?ni:null;if((0,n.is)(bi)){const Xi=(0,n.nv)(Rs,bi,Ia);Js=Array.isArray(Xi)?Xi.join(","):Xi}}let Ol=ni;(0,n.is)(Js)||(Ol=Yi,Js=Yi);const Ni=(Wn&&Rs.theme&&Rs.theme.transformers?Rs.theme.transformers[Wn]:null)||st;return Ni&&(Js=Ni(Js,{rawValue:Ol,variants:Ia,props:Rs})),lo?lo(Js)(Rs):Js};if((to||Ro)&&(0,n.Yj)(Jo)){let ni=fi;to&&(ni=ie(ce.shorthand,ni)),Ro&&(ni=ie(ce.multiple,ni)),Mi=ni(Jo)}else Mi=fi(Jo);return ma.set(Li,Mi),Mi};return os.meta={name:Wn,transform:st},os},se=({getStyle:Wn,props:st,cssGetters:Mt={},generators:lo})=>{const to=Wn;return to.meta={props:st,cssGetters:Mt,getStyle:to,generators:lo},to.apply=Ro=>({theme:Vo})=>to(q({theme:Vo},Ro)),to},ae=(Wn,st,Mt)=>{const lo=L(Wn.theme,"__variants"),to=U(Wn,lo);let Ro={};for(const Vo in st){const os=Mt(st[Vo]);if(os===null)continue;const Jo=Vo in to?to[Vo]:Vo;Jo!==void 0&&(Jo===null?Ro=(0,n.h1)(Ro,os):Ro[Jo]=Ro[Jo]?(0,n.kp)(Ro[Jo],os):os)}return Ro},he=(Wn,st,Mt)=>lo=>{const to=Us=>(0,n.is)(Us)?(0,n.WL)(Us)?ae(lo,Us,to):(0,n.DJ)(st(Mt?Mt(Us)(lo):Us),lo):null,Ro=lo[Wn];if(!(0,n.is)(Ro))return null;const Vo=L(lo.theme,Wn),os=(0,n.WL)(Ro)?JSON.stringify(Ro):Ro;if(Vo.has(os))return Vo.get(os);const Jo=to(Ro);return Vo.set(os,Jo),Jo},re=(Wn,st)=>{for(const Mt in st){const lo=st[Mt],to=Wn[lo];to&&(delete Wn[lo],Wn[lo]=to)}return Wn};function je(...Wn){var st;const Mt={},lo=[],to={},Ro=os=>{if(!os||!os.meta)return;const Jo=os.meta.props;for(let Us=0;Us<Jo.length;Us++){const Rs=Jo[Us];Mt[Rs]=os,lo.push(Rs)}Object.assign(to,os.meta.cssGetters)};for(let os=0;os<Wn.length;os++){const Jo=Wn[os];if((0,n.R8)(Boolean(Jo),'Undefined generator in "compose" method'),!Jo)continue;const Us=(st=Jo.meta)==null?void 0:st.generators;if(Us)for(let Rs=0;Rs<Us.length;Rs++)Ro(Us[Rs]);else Ro(Jo)}return se({getStyle:(os,Jo=!0)=>{const Us={};let Rs=!1;for(const Li in os){const ma=Mt[Li];if(ma){const fi=ma.meta.getStyle(os,!1);(0,n.h1)(Us,fi),Rs=!0}}if(!Rs||!Jo)return Us;const Mi=U(os,L(os.theme,"__states"));return re(Us,Mi)},props:lo,cssGetters:to,generators:Wn})}const ze=Wn=>st=>{if((0,n.Yj)(Wn))return{[Wn]:st};const Mt={};if(!Wn)return Mt;for(let lo=0;lo<Wn.length;lo++)Mt[Wn[lo]]=st;return Mt},Xe=Wn=>(0,n.Pc)(Wn)?Wn:ze(Wn),en=Wn=>Wn.replace(/[A-Z]/g,"-$&").toLowerCase(),ve=({prop:Wn,css:st,themeGet:Mt,key:lo,transform:to,cssProps:Ro})=>{const Vo=Mt||(lo||to?fe({key:lo,transform:to}):void 0),os=Ro||((0,n.Yj)(st)?[st]:Array.isArray(st)?st:(0,n.Yj)(Wn)?[Wn]:Array.isArray(Wn)?Wn:[]);if(Array.isArray(Wn)){const Li=st&&Xe(st),ma=Wn.map(fi=>ve({prop:fi,css:Li,cssProps:os,themeGet:Vo}));return je(...ma)}const Jo=[Wn],Us=Xe(st||Jo),Rs=he(Wn,Us,Vo),Mi={};if(Vo)for(let Li=0;Li<os.length;Li++)Mi[en(os[Li])]=Vo;return je(se({getStyle:Rs,props:Jo,cssGetters:Mi}))},pe=fe({name:"px",transform:(Wn,{props:st})=>{var Mt,lo,to;const Ro=(to=(lo=(Mt=st?.theme)==null?void 0:Mt.settings)==null?void 0:lo.rootFontSize)!=null?to:void 0,Vo=Number(Wn);return a(g(Number.isNaN(Vo)?Wn:Vo,{rootFontSize:Ro}))}}),De=fe({name:"duration",key:"durations",transform:Wn=>{const st=Number(Wn);return d(Number.isNaN(st)?Wn:st)}}),Be=fe({name:"angle",transform:Wn=>{const st=Number(Wn);return c(Number.isNaN(st)?Wn:st)}}),Ce=fe({name:"percent",compose:pe,transform:b}),$e=fe({name:"transition",key:"transitions"}),Ge=fe({name:"transitionProperty",key:"transitionProperties"}),qe=fe({name:"timingFunction",key:"timingFunctions"}),Je=ve({prop:"transition",themeGet:$e}),dn=ve({prop:"transitionProperty",themeGet:Ge}),Fe=ve({prop:"transitionDuration",themeGet:De}),me=ve({prop:"transitionTimingFunction",themeGet:qe}),we=ve({prop:"transitionDelay",themeGet:De}),Ke=je(Je,dn,Fe,me,we),He=fe({name:"animation",key:"animations"}),rn=ve({prop:"animation",themeGet:He}),Ae=ve({prop:"animationDuration",themeGet:De}),Le=ve({prop:"animationTimingFunction",themeGet:qe}),Ye=je(rn,Ae,Le),Ze=fe({name:"color",key:"colors"}),Ne={"gradient-to-t":"linear-gradient(to top, var(--x-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--x-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--x-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--x-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--x-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--x-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--x-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--x-gradient-stops))"},Se=ve({prop:"background",css:Wn=>({background:Ne[Wn]||Wn})}),Gn=ve({prop:["backgroundColor","bg"],css:"backgroundColor",themeGet:Ze}),Vn=ve({prop:"backgroundImage",css:Wn=>({backgroundImage:Ne[Wn]||Wn})}),vn=ve({prop:"backgroundSize"}),Pn=ve({prop:"backgroundPosition"}),Un=ve({prop:"backgroundRepeat"}),pt=ve({prop:"backgroundAttachment"}),St=ve({prop:"backgroundClip",css:["backgroundClip","-webkitBackgroundClip"]}),ee=ve({prop:"gradientFrom",themeGet:Ze,css:Wn=>({"--x-gradient-from":Wn,"--x-gradient-stops":"var(--x-gradient-from), var(--x-gradient-to, transparent)"})}),de=ve({prop:"gradientVia",themeGet:Ze,css:Wn=>({"--x-gradient-stops":`var(--x-gradient-from), ${Wn}, var(--x-gradient-to, transparent)`})}),Z=ve({prop:"gradientTo",themeGet:Ze,css:"--x-gradient-to"}),oe=je(Se,Gn,Vn,vn,Pn,Un,pt,St,ee,de,Z),xe=fe({name:"border",key:"borders",transform:Wn=>{const st=Number(Wn);return st>0?`${a(st)} solid`:Wn}}),Ve=fe({name:"borderWidth",key:"borderWidths",compose:pe,shorthand:!0}),An=fe({name:"borderColor",compose:Ze,shorthand:!0}),hn=fe({name:"borderStyle",key:"borderStyles"}),ct=ve({prop:"border",themeGet:xe}),Ft=ve({prop:"borderTop",themeGet:xe}),nr=ve({prop:"borderRight",themeGet:xe}),ur=ve({prop:"borderBottom",themeGet:xe}),Xn=ve({prop:"borderLeft",themeGet:xe}),pn=ve({prop:"borderColor",themeGet:An}),kn=ve({prop:"borderTopColor",themeGet:Ze}),_n=ve({prop:"borderRightColor",themeGet:Ze}),fn=ve({prop:"borderBottomColor",themeGet:Ze}),gt=ve({prop:"borderLeftColor",themeGet:Ze}),Rt=ve({prop:"borderWidth",themeGet:Ve}),Nt=ve({prop:"borderTopWidth",themeGet:Ve}),Wt=ve({prop:"borderRightWidth",themeGet:Ve}),pr=ve({prop:"borderBottomWidth",themeGet:Ve}),rr=ve({prop:"borderLeftWidth",themeGet:Ve}),wt=ve({prop:"borderStyle",themeGet:hn,cssProps:["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]}),sr=ve({prop:"borderTopStyle",themeGet:hn}),xr=ve({prop:"borderRightStyle",themeGet:hn}),mr=ve({prop:"borderBottomStyle",themeGet:hn}),tn=ve({prop:"borderLeftStyle",themeGet:hn}),jn=ve({prop:"outline",themeGet:xe}),Rn=ve({prop:"outlineColor",themeGet:Ze}),qn=ve({prop:"outlineWidth",themeGet:Ve}),it=ve({prop:"outlineStyle",themeGet:hn}),A=ve({prop:"outlineOffset",themeGet:Ve}),Y=fe({name:"radius",key:"radii",compose:pe,shorthand:!0}),ue=ve({prop:"borderRadius",themeGet:Y,cssProps:["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]}),ge="& > :not([hidden]) ~ :not([hidden])",ne=ve({prop:"divideY",themeGet:Ve,css:Wn=>{const st=Wn===!0?1:Wn;return{[ge]:{"--x-divide-y-reverse":0,borderTopWidth:`calc(${st} * calc(1 - var(--x-divide-y-reverse)))`,borderBottomWidth:`calc(${st} * var(--x-divide-y-reverse))`}}}}),Te=ve({prop:"divideX",themeGet:Ve,css:Wn=>{const st=Wn===!0?1:Wn;return{[ge]:{"--x-divide-x-reverse":0,borderRightWidth:`calc(${st} * var(--x-divide-x-reverse))`,borderLeftWidth:`calc(${st} * calc(1 - var(--x-divide-x-reverse)))`}}}}),_e=ve({prop:"divideXReverse",css:()=>({[ge]:{"--x-divide-x-reverse":"1"}})}),on=ve({prop:"divideYReverse",css:()=>({[ge]:{"--x-divide-y-reverse":"1"}})}),wn=ve({prop:"divideColor",themeGet:Ze,css:Wn=>({[ge]:{borderColor:Wn}})}),yn=ve({prop:"divideStyle",themeGet:hn,css:Wn=>({[ge]:{borderStyle:Wn}})}),Nn=fe({name:"ringWidth",key:"ringWidths",compose:pe}),xn=ve({prop:"ring",themeGet:Nn,css:Wn=>({"--x-ring-shadow":`var(--x-ring-inset, /*!*/ /*!*/) 0 0 0 ${Wn} var(--x-ring-color)`,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow, 0 0 #0000)"})}),rt=ve({prop:"ringInset",css:()=>({"--x-ring-inset":"inset"})}),Ot=ve({prop:"ringColor",themeGet:Ze,css:Wn=>({"--x-ring-color":Wn})}),At=je(ct,Ft,nr,ur,Xn,pn,kn,_n,fn,gt,Rt,Nt,Wt,pr,rr,wt,sr,xr,mr,tn,ue,jn,Rn,qn,it,A,Te,ne,_e,on,wn,yn,xn,rt,Ot),tr=fe({name:"shadow",key:"shadows",multiple:!0}),gr=ve({prop:"opacity"}),fr=ve({prop:"boxShadow",themeGet:tr,css:Wn=>({"--x-shadow":Wn,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow)"})}),vr=ve({prop:"textShadow",themeGet:tr}),$r=je(gr,fr,vr);var ir=Object.defineProperty,Ar=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,Ie=(Wn,st,Mt)=>st in Wn?ir(Wn,st,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Wn[st]=Mt,Ue=(Wn,st)=>{for(var Mt in st||(st={}))zr.call(st,Mt)&&Ie(Wn,Mt,st[Mt]);if(Ar)for(var Mt of Ar(st))Tr.call(st,Mt)&&Ie(Wn,Mt,st[Mt]);return Wn};const un=ve({prop:"row",css:()=>({boxSizing:"border-box",flexGrow:1,flexWrap:"wrap",display:"flex"})}),cn=(Wn,st)=>{if(!(0,n.is)(st))return null;if(st===!0)return{flexBasis:0,flexGrow:1,maxWidth:"100%"};if(st==="auto")return{flex:"0 0 auto",maxWidth:"none",width:"auto"};const Mt=Ce(st)(Wn);return{flex:`0 0 ${Mt}`,maxWidth:Mt}},In=se({getStyle:Wn=>{const st=Wn.col,Mt={boxSizing:"border-box",flexBasis:0,flexGrow:1,maxWidth:"100%"};if((0,n.WL)(st)){const lo=ae(Wn,st,to=>cn(Wn,to));return Ue(Ue({},Mt),lo)}return Ue(Ue({},Mt),cn(Wn,st))},props:["col"]}),$n=je(un,In);var Bn=Object.defineProperty,Jn=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Pt=(Wn,st,Mt)=>st in Wn?Bn(Wn,st,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Wn[st]=Mt,Xt=(Wn,st)=>{for(var Mt in st||(st={}))Zn.call(st,Mt)&&Pt(Wn,Mt,st[Mt]);if(Jn)for(var Mt of Jn(st))mt.call(st,Mt)&&Pt(Wn,Mt,st[Mt]);return Wn};const or=ve({prop:"display"}),vt=ve({prop:"float"}),cr=ve({prop:"boxSizing"}),hr=se({getStyle:Wn=>{if(!Wn.container)return null;const st=N(Wn);let Mt=ae(Wn,st,lo=>lo!==0?{maxWidth:lo}:{});return(0,n.WL)(Wn.container)&&(Mt=ae(Wn,Wn.container,()=>Mt)),Xt({width:"100%"},Mt)},props:["container"]}),wr=ve({prop:"overflow"}),no=ve({prop:"overflowX"}),Mr=ve({prop:"overflowY"}),Pr=fe({name:"zIndex",key:"zIndices"}),lr=ve({prop:"zIndex",themeGet:Pr}),fo=ve({prop:"position"}),co=fe({name:"inset",key:"inset",compose:pe,transform:v}),jt=ve({prop:"top",themeGet:co}),so=ve({prop:"right",themeGet:co}),Do=ve({prop:"bottom",themeGet:co}),ko=ve({prop:"left",themeGet:co}),Dn=ve({prop:"visibility"}),Hn=ve({prop:"overscrollBehavior"}),dt=ve({prop:"objectFit"}),Vt=je(cr,or,vt,hr,wr,no,Mr,fo,lr,jt,so,Do,ko,Dn,Hn,dt),dr=ve({prop:"alignItems"}),Sr=ve({prop:"alignContent"}),nt=ve({prop:"justifyContent"}),En=ve({prop:"justifyItems"}),zn=ve({prop:"flexWrap"}),Yn=ve({prop:"flexGrow"}),Et=ve({prop:"flexShrink"}),Jt=ve({prop:"flexBasis",themeGet:Ce}),er=ve({prop:"flexDirection"}),Qr=ve({prop:"flex"}),Ir=ve({prop:"justifySelf"}),nn=ve({prop:"alignSelf"}),Pe=ve({prop:"order"}),ke=je(or,dr,Sr,nt,En,zn,Jt,Et,Yn,er,Qr,Ir,nn,Pe),sn=fe({name:"space",key:"space",compose:pe,shorthand:!0,transform:v}),On=ve({prop:["margin","m"],themeGet:sn,css:"margin"}),Dt=ve({prop:["marginTop","mt"],themeGet:sn,css:"marginTop"}),at=ve({prop:["marginRight","mr"],themeGet:sn,css:"marginRight"}),yt=ve({prop:["marginBottom","mb"],themeGet:sn,css:"marginBottom"}),zt=ve({prop:["marginLeft","ml"],themeGet:sn,css:"marginLeft"}),Ut=ve({prop:"mx",themeGet:sn,css:["marginRight","marginLeft"]}),kr=ve({prop:"my",themeGet:sn,css:["marginTop","marginBottom"]}),Dr=ve({prop:["padding","p"],themeGet:sn,css:"padding"}),Kr=ve({prop:["paddingTop","pt"],themeGet:sn,css:"paddingTop"}),Jr=ve({prop:["paddingRight","pr"],themeGet:sn,css:"paddingRight"}),_o=ve({prop:["paddingBottom","pb"],themeGet:sn,css:"paddingBottom"}),Ao=ve({prop:["paddingLeft","pl"],themeGet:sn,css:"paddingLeft"}),jo=ve({prop:"px",themeGet:sn,css:["paddingRight","paddingLeft"]}),Wo=ve({prop:"py",themeGet:sn,css:["paddingTop","paddingBottom"]}),Go=ve({prop:"spaceY",themeGet:sn,css:Wn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":0,marginTop:`calc(${Wn} * calc(1 - var(--x-space-y-reverse)))`,marginBottom:`calc(${Wn} * var(--x-space-y-reverse))`}})}),Oo=ve({prop:"spaceX",themeGet:sn,css:Wn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":0,marginRight:`calc(${Wn} * var(--x-space-x-reverse))`,marginLeft:`calc(${Wn} * calc(1 - var(--x-space-x-reverse)))`}})}),yo=ve({prop:"spaceXReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":"1"}})}),wo=ve({prop:"spaceYReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":"1"}})}),Co=je(On,Dt,at,yt,zt,Ut,kr,Dr,Kr,Jr,_o,Ao,jo,Wo,Oo,Go,yo,wo),Yo=ve({prop:"gap",themeGet:sn}),ss=ve({prop:"columnGap",themeGet:sn}),ms=ve({prop:"rowGap",themeGet:sn}),cs=ve({prop:"gridColumn"}),gs=ve({prop:"gridRow"}),yi=ve({prop:"gridAutoFlow"}),$s=ve({prop:"gridAutoColumns"}),bs=ve({prop:"gridAutoRows"}),qs=ve({prop:"gridTemplateColumns",key:"gridTemplateColumns"}),Me=ve({prop:"gridTemplateRows",key:"gridTemplateRows"}),We=ve({prop:"gridTemplateAreas"}),bn=ve({prop:"gridArea"}),Sn=je(Yo,ss,ms,cs,gs,yi,$s,bs,qs,Me,We,bn),et=ve({prop:"appearance"}),ut=ve({prop:"cursor"}),_t=ve({prop:"pointerEvents"}),Lt=ve({prop:"resize"}),_r=ve({prop:"userSelect"}),Rr=je(et,ut,_t,Lt,_r),Er=fe({name:"size",key:"sizes",compose:Ce}),Yr=ve({prop:"w",themeGet:Er,css:"width"}),mo=ve({prop:"h",themeGet:Er,css:"height"}),Kn=ve({prop:["maxWidth","maxW"],themeGet:Er,css:"maxWidth"}),ht=ve({prop:["maxHeight","maxH"],themeGet:Er,css:"maxHeight"}),It=ve({prop:["minWidth","minW"],themeGet:Er,css:"minWidth"}),Qt=ve({prop:["minHeight","minH"],themeGet:Er,css:"minHeight"}),Bt=ve({prop:"maskSize",themeGet:fe({name:"size",key:"sizes",compose:Ce,multiple:!0,shorthand:!0})}),yr=je(Yr,mo,Kn,ht,It,Qt,Bt),Nr=ve({prop:"fill",themeGet:Ze}),Wr=ve({prop:"stroke",themeGet:Ze}),qr=je(Nr,Wr),Vr=ve({prop:"borderCollapse"}),ao=ve({prop:"tableLayout"}),Bo=je(Vr,ao),Xo=fe({name:"transform",key:"transforms"}),ft=ve({prop:"transform",themeGet:Xo,css:Wn=>Wn===!0?{"--x-translate-x":0,"--x-translate-y":0,"--x-rotate":0,"--x-skew-x":0,"--x-skew-y":0,"--x-scale-x":"1","--x-scale-y":"1",transform:"translate3d(var(--x-translate-x), var(--x-translate-y), 0) rotate(var(--x-rotate)) skewX(var(--x-skew-x)) skewY(var(--x-skew-y)) scaleX(var(--x-scale-x)) scaleY(var(--x-scale-y))"}:{transform:Wn}}),Ht=ve({prop:"transformOrigin"}),Ct=ve({prop:"translateX",themeGet:sn,css:"--x-translate-x"}),Br=ve({prop:"translateY",themeGet:sn,css:"--x-translate-y"}),ho=ve({prop:"rotate",themeGet:Be,css:"--x-rotate"}),Zo=ve({prop:"skewX",themeGet:Be,css:"--x-skew-x"}),ps=ve({prop:"skewY",themeGet:Be,css:"--x-skew-y"}),ns=ve({prop:"scale",transform:Wn=>String(Wn),css:["--x-scale-x","--x-scale-y"]}),ks=ve({prop:"scaleX",transform:Wn=>String(Wn),css:"--x-scale-x"}),Ks=ve({prop:"scaleY",transform:Wn=>String(Wn),css:"--x-scale-y"}),ws=je(ft,Ht,Ct,Br,ho,Zo,ps,ns,ks,Ks);var _s=Object.defineProperty,Ds=Object.defineProperties,No=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,oo=Object.prototype.propertyIsEnumerable,as=(Wn,st,Mt)=>st in Wn?_s(Wn,st,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Wn[st]=Mt,si=(Wn,st)=>{for(var Mt in st||(st={}))ai.call(st,Mt)&&as(Wn,Mt,st[Mt]);if(is)for(var Mt of is(st))oo.call(st,Mt)&&as(Wn,Mt,st[Mt]);return Wn},li=(Wn,st)=>Ds(Wn,No(st));const sa=fe({name:"font",key:"fonts"}),za=fe({name:"lineHeight",key:"lineHeights",transform:(Wn,{props:st})=>{var Mt,lo,to;const Ro=(to=(lo=(Mt=st?.theme)==null?void 0:Mt.settings)==null?void 0:lo.rootFontSize)!=null?to:void 0;return g(Wn,{rootFontSize:Ro})}}),xi=fe({name:"fontWeight",key:"fontWeights"}),Qe=fe({name:"letterSpacing",key:"letterSpacings",compose:pe}),Re=fe({name:"fontSize",key:"fontSizes",compose:pe}),an=ve({prop:"fontFamily",themeGet:sa}),Tn=ve({prop:"fontSize",themeGet:Re}),lt=ve({prop:"fontVariant"}),Zt=ve({prop:"lineHeight",themeGet:za}),Zr=ve({prop:"fontWeight",themeGet:xi}),Fr=ve({prop:"fontStyle"}),Kt=ve({prop:"letterSpacing",themeGet:Qe}),br=ve({prop:"color",themeGet:Ze}),Lo=ve({prop:"textTransform"}),Ho=ve({prop:"textDecoration"}),qo=ve({prop:"textAlign"}),ls=ve({prop:"verticalAlign"}),vi=ve({prop:"whiteSpace"}),ia=ve({prop:"textOverflow"}),aa=ve({prop:"listStyleType"}),Wa=ve({prop:"listStylePosition"}),pl=je(Co,an,Tn,Fr,lt,Zt,Zr,qo,Kt,br,Lo,Ho,ls,vi,ia,aa,Wa),va=ve({prop:"text",key:"texts",css:Wn=>({theme:st})=>pl(li(si({},Wn),{theme:st}))}),fl=je(pl,va),la=je(Ye,oe,At,$r,$n,ke,Sn,Rr,Vt,yr,Co,qr,Bo,ws,Ke,fl),Fs=(Wn,st)=>Mt=>{const lo=(0,n.nv)(Mt,Wn);return(0,n.is)(lo)?lo:(0,n.is)(st)?st:Wn};[Be,He,xe,An,hn,Ve,Ze,De,sa,Re,xi,co,Qe,za,Ce,pe,Y,Nn,tr,Er,sn,qe,Xo,$e,Ge,Pr].forEach(Wn=>{Fs[Wn.meta.name]=Wn});const Ns=(Wn,st)=>Mt=>{const lo=N(Mt),to=S(lo,Wn);return to===null?st:[`${h(to)} {`,st,"}"]},hl=(Wn,st)=>Mt=>{const lo=N(Mt),to=P(lo,Wn);return to===null?null:[`${x(to)} {`,st,"}"]},pd=(Wn,st,Mt)=>lo=>{const to=N(lo),Ro=S(to,Wn),Vo=P(to,st);return Vo===null?Ns(Wn,Mt)(lo):Ro===null?hl(st,Mt)(lo):[`${j(Ro,Vo)} {`,Mt,"}"]},Sl=Wn=>st=>{const Mt=[],lo=Object.keys(Wn),to=lo.length;for(let Ro=0;Ro<to;Ro++){const Vo=lo[Ro],os=Wn[Vo],Jo=Ns(Vo,os)(st);Array.isArray(Jo)?Jo.forEach(Us=>Mt.push(Us)):Mt.push(Jo)}return Mt},io=null;var vo=Object.defineProperty,eo=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,So=(Wn,st,Mt)=>st in Wn?vo(Wn,st,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Wn[st]=Mt,Ss=(Wn,st)=>{for(var Mt in st||(st={}))Fo.call(st,Mt)&&So(Wn,Mt,st[Mt]);if(eo)for(var Mt of eo(st))bo.call(st,Mt)&&So(Wn,Mt,st[Mt]);return Wn};const di=[0,5,10,20,25,30,40,50,60,70,75,80,90,95,100],ei=(Wn,st=di)=>{const Mt=(to,Ro)=>`${to}${Math.round(Ro/100*255).toString(16).padStart(2,"0")}`,lo=Object.keys(Wn).reduce((to,Ro)=>(st.forEach(Vo=>{const os=Wn[Ro],Jo=`${Ro}-a${Vo}`;to[Jo]=(0,n.Yj)(os)?Mt(os,Vo):ei(os,st)}),to),{});return Ss(Ss({},Wn),lo)},zs=null,Fi=(Wn,st,Mt=zs,lo=di)=>Mt.reduce((to,Ro)=>(to[`${Wn}-${Ro}`]=Fs.color(`${st}-${Ro}`),lo.forEach(Vo=>{to[`${Wn}-${Ro}-a${Vo}`]=Fs.color(`${st}-${Ro}-a${Vo}`)}),to),{});var Ga=Object.defineProperty,Ra=Object.defineProperties,da=Object.getOwnPropertyDescriptors,ua=Object.getOwnPropertySymbols,Ti=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable,Cn=(Wn,st,Mt)=>st in Wn?Ga(Wn,st,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Wn[st]=Mt,El=(Wn,st)=>{for(var Mt in st||(st={}))Ti.call(st,Mt)&&Cn(Wn,Mt,st[Mt]);if(ua)for(var Mt of ua(st))gl.call(st,Mt)&&Cn(Wn,Mt,st[Mt]);return Wn},ba=(Wn,st)=>Ra(Wn,da(st));const ui={.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},us={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Al={default:["background-color","border-color","color","fill","stroke","opacity","box-shadow","transform"],colors:["background-color","border-color","color","fill","stroke"],opacity:["opacity"],shadow:["box-shadow"],transform:["transform"]},fd=Object.keys(Al).reduce((Wn,st)=>(Wn[st]=Al[st].map(Mt=>`${Mt} ${us["ease-in-out"]} 150ms`).join(","),Wn),{}),ca={black:"#000000",white:"#ffffff","blue-gray-50":"#f8fafc","blue-gray-100":"#f1f5f9","blue-gray-200":"#e2e8f0","blue-gray-300":"#cbd5e1","blue-gray-400":"#94a3b8","blue-gray-500":"#64748b","blue-gray-600":"#475569","blue-gray-700":"#334155","blue-gray-800":"#1e293b","blue-gray-900":"#0f172a","cool-gray-50":"#f9fafb","cool-gray-100":"#f3f4f6","cool-gray-200":"#e5e7eb","cool-gray-300":"#d1d5db","cool-gray-400":"#9ca3af","cool-gray-500":"#6b7280","cool-gray-600":"#4b5563","cool-gray-700":"#374151","cool-gray-800":"#1f2937","cool-gray-900":"#111827","gray-50":"#fafafa","gray-100":"#f4f4f5","gray-200":"#e4e4e7","gray-300":"#d4d4d8","gray-400":"#a1a1aa","gray-500":"#71717a","gray-600":"#52525b","gray-700":"#3f3f46","gray-800":"#27272a","gray-900":"#18181b","true-gray-50":"#fafafa","true-gray-100":"#f5f5f5","true-gray-200":"#e5e5e5","true-gray-300":"#d4d4d4","true-gray-400":"#a3a3a3","true-gray-500":"#737373","true-gray-600":"#525252","true-gray-700":"#404040","true-gray-800":"#262626","true-gray-900":"#171717","warm-gray-50":"#fafaf9","warm-gray-100":"#f5f5f4","warm-gray-200":"#e7e5e4","warm-gray-300":"#d6d3d1","warm-gray-400":"#a8a29e","warm-gray-500":"#78716c","warm-gray-600":"#57534e","warm-gray-700":"#44403c","warm-gray-800":"#292524","warm-gray-900":"#1c1917","red-50":"#fef2f2","red-100":"#fee2e2","red-200":"#fecaca","red-300":"#fca5a5","red-400":"#f87171","red-500":"#ef4444","red-600":"#dc2626","red-700":"#b91c1c","red-800":"#991b1b","red-900":"#7f1d1d","orange-50":"#fff7ed","orange-100":"#ffedd5","orange-200":"#fed7aa","orange-300":"#fdba74","orange-400":"#fb923c","orange-500":"#f97316","orange-600":"#ea580c","orange-700":"#c2410c","orange-800":"#9a3412","orange-900":"#7c2d12","amber-50":"#fffbeb","amber-100":"#fef3c7","amber-200":"#fde68a","amber-300":"#fcd34d","amber-400":"#fbbf24","amber-500":"#f59e0b","amber-600":"#d97706","amber-700":"#b45309","amber-800":"#92400e","amber-900":"#78350f","yellow-50":"#fefce8","yellow-100":"#fef9c3","yellow-200":"#fef08a","yellow-300":"#fde047","yellow-400":"#facc15","yellow-500":"#eab308","yellow-600":"#ca8a04","yellow-700":"#a16207","yellow-800":"#854d0e","yellow-900":"#713f12","lime-50":"#f7fee7","lime-100":"#ecfccb","lime-200":"#d9f99d","lime-300":"#bef264","lime-400":"#a3e635","lime-500":"#84cc16","lime-600":"#65a30d","lime-700":"#4d7c0f","lime-800":"#3f6212","lime-900":"#365314","green-50":"#f0fdf4","green-100":"#dcfce7","green-200":"#bbf7d0","green-300":"#86efac","green-400":"#4ade80","green-500":"#22c55e","green-600":"#16a34a","green-700":"#15803d","green-800":"#166534","green-900":"#14532d","emerald-50":"#ecfdf5","emerald-100":"#d1fae5","emerald-200":"#a7f3d0","emerald-300":"#6ee7b7","emerald-400":"#34d399","emerald-500":"#10b981","emerald-600":"#059669","emerald-700":"#047857","emerald-800":"#065f46","emerald-900":"#064e3b","teal-50":"#f0fdfa","teal-100":"#ccfbf1","teal-200":"#99f6e4","teal-300":"#5eead4","teal-400":"#2dd4bf","teal-500":"#14b8a6","teal-600":"#0d9488","teal-700":"#0f766e","teal-800":"#115e59","teal-900":"#134e4a","cyan-50":"#ecfeff","cyan-100":"#cffafe","cyan-200":"#a5f3fc","cyan-300":"#67e8f9","cyan-400":"#22d3ee","cyan-500":"#06b6d4","cyan-600":"#0891b2","cyan-700":"#0e7490","cyan-800":"#155e75","cyan-900":"#164e63","light-blue-50":"#f0f9ff","light-blue-100":"#e0f2fe","light-blue-200":"#bae6fd","light-blue-300":"#7dd3fc","light-blue-400":"#38bdf8","light-blue-500":"#0ea5e9","light-blue-600":"#0284c7","light-blue-700":"#0369a1","light-blue-800":"#075985","light-blue-900":"#0c4a6e","blue-50":"#eff6ff","blue-100":"#dbeafe","blue-200":"#bfdbfe","blue-300":"#93c5fd","blue-400":"#60a5fa","blue-500":"#3b82f6","blue-600":"#2563eb","blue-700":"#1d4ed8","blue-800":"#1e40af","blue-900":"#1e3a8a","indigo-50":"#eef2ff","indigo-100":"#e0e7ff","indigo-200":"#c7d2fe","indigo-300":"#a5b4fc","indigo-400":"#818cf8","indigo-500":"#6366f1","indigo-600":"#4f46e5","indigo-700":"#4338ca","indigo-800":"#3730a3","indigo-900":"#312e81","violet-50":"#f5f3ff","violet-100":"#ede9fe","violet-200":"#ddd6fe","violet-300":"#c4b5fd","violet-400":"#a78bfa","violet-500":"#8b5cf6","violet-600":"#7c3aed","violet-700":"#6d28d9","violet-800":"#5b21b6","violet-900":"#4c1d95","purple-50":"#faf5ff","purple-100":"#f3e8ff","purple-200":"#e9d5ff","purple-300":"#d8b4fe","purple-400":"#c084fc","purple-500":"#a855f7","purple-600":"#9333ea","purple-700":"#7e22ce","purple-800":"#6b21a8","purple-900":"#581c87","fuchsia-50":"#fdf4ff","fuchsia-100":"#fae8ff","fuchsia-200":"#f5d0fe","fuchsia-300":"#f0abfc","fuchsia-400":"#e879f9","fuchsia-500":"#d946ef","fuchsia-600":"#c026d3","fuchsia-700":"#a21caf","fuchsia-800":"#86198f","fuchsia-900":"#701a75","pink-50":"#fdf2f8","pink-100":"#fce7f3","pink-200":"#fbcfe8","pink-300":"#f9a8d4","pink-400":"#f472b6","pink-500":"#ec4899","pink-600":"#db2777","pink-700":"#be185d","pink-800":"#9d174d","pink-900":"#831843","rose-50":"#fff1f2","rose-100":"#ffe4e6","rose-200":"#fecdd3","rose-300":"#fda4af","rose-400":"#fb7185","rose-500":"#f43f5e","rose-600":"#e11d48","rose-700":"#be123c","rose-800":"#9f1239","rose-900":"#881337"},wi={xs:"0.75rem",sm:"0.875rem",default:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Bs=Object.keys(wi).reduce((Wn,st)=>(Wn[st]={fontSize:st,lineHeight:st},Wn),{}),Gs={colors:ei(ca),space:ui,screens:{_:0,xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},durations:{instant:"100ms","fast-in":"250ms","fast-out":"200ms","slow-in":"300ms","slow-out":"250ms"},sizes:ba(El({},ui),{.5:void 0,1:void 0,"0.5s":ui[.5],"1s":ui[1],full:"100%",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"}),radii:{none:"0",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",default:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)"},fontSizes:wi,fontWeights:{hairline:"100",thin:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},fonts:{mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2,3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",xs:"1rem",sm:"1.25rem",default:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":1,"6xl":1,"7xl":1,"8xl":1,"9xl":1},gridTemplateColumns:{1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},borderWidths:{default:1},ringWidths:{default:3},borders:{default:"1px solid transparent"},texts:Bs,transitions:fd,transitionProperties:Al,timingFunctions:us,animations:{spin:"x-spin 1s linear infinite",ping:"x-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"x-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"x-bounce 1s infinite"},states:{_:null,motionSafe:"@media (prefers-reduced-motion: no-preference)",motionReduce:"@media (prefers-reduced-motion: reduce)",first:"&:first-child",last:"&:last-child",odd:"&:odd",even:"&:even",visited:"&:visited",checked:"&:checked",focusWithin:"&:focus-within",hover:"&:hover",focus:"&:focus",focusVisible:"&:focus-visible",active:"&:active",disabled:"&:disabled, &[aria-disabled=true]",placeholder:"&::placeholder"},xstyled:{cache:!0}},pi=Wn=>`