@gen-epix/ui-client-common 4.5.0 → 4.6.0

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 (229) hide show
  1. package/README.md +5 -4
  2. package/dist/@types/mui.d.ts +13 -5
  3. package/dist/@types/ui-client-common.d.ts +1 -0
  4. package/dist/_chunks/ApplicationFooter.js +45 -46
  5. package/dist/_chunks/ApplicationFooter.js.map +1 -1
  6. package/dist/_chunks/Breadcrumbs.js +14 -15
  7. package/dist/_chunks/CrudPage.js +301 -302
  8. package/dist/_chunks/CrudPage.js.map +1 -1
  9. package/dist/_chunks/GeoFilter.js +1 -2
  10. package/dist/_chunks/GeoFilter.js.map +1 -1
  11. package/dist/_chunks/Notifications.js +52 -53
  12. package/dist/_chunks/OutageList.js +30 -31
  13. package/dist/_chunks/OutageList.js.map +1 -1
  14. package/dist/_chunks/OutageUtil.js +4 -8
  15. package/dist/_chunks/OutageUtil.js.map +1 -1
  16. package/dist/_chunks/QueryClientProvider.js +1 -2
  17. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  18. package/dist/_chunks/QueryClientService.js +101 -395
  19. package/dist/_chunks/QueryClientService.js.map +1 -1
  20. package/dist/_chunks/Reflect.js +1 -2
  21. package/dist/_chunks/Table.js +523 -522
  22. package/dist/_chunks/Table.js.map +1 -1
  23. package/dist/_chunks/TableUtil.js +10 -20
  24. package/dist/_chunks/TableUtil.js.map +1 -1
  25. package/dist/_chunks/TextFilter.js +18 -20
  26. package/dist/_chunks/TextFilter.js.map +1 -1
  27. package/dist/_chunks/UserInvitationsAdminPage.js +78 -79
  28. package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
  29. package/dist/_chunks/UserManagerUtil.js +212 -213
  30. package/dist/_chunks/UserManagerUtil.js.map +1 -1
  31. package/dist/_chunks/_baseAssignValue.js +1 -2
  32. package/dist/_chunks/_baseFlatten.js +9 -10
  33. package/dist/_chunks/_baseFlatten.js.map +1 -1
  34. package/dist/_chunks/_baseGet.js +279 -0
  35. package/dist/_chunks/_baseGet.js.map +1 -0
  36. package/dist/_chunks/_baseIteratee.js +273 -0
  37. package/dist/_chunks/_baseIteratee.js.map +1 -0
  38. package/dist/_chunks/_baseUnset.js +22 -300
  39. package/dist/_chunks/_baseUnset.js.map +1 -1
  40. package/dist/_chunks/_cacheHas.js +1 -2
  41. package/dist/_chunks/_setToString.js +1 -2
  42. package/dist/_chunks/decorate.js +1 -2
  43. package/dist/_chunks/decorateParam.js +1 -2
  44. package/dist/_chunks/format.js +27 -54
  45. package/dist/_chunks/format.js.map +1 -1
  46. package/dist/_chunks/isArrayLike.js +1 -2
  47. package/dist/_chunks/isObject.js +1 -2
  48. package/dist/_chunks/isSymbol.js +1 -2
  49. package/dist/_chunks/last.js +12 -0
  50. package/dist/_chunks/last.js.map +1 -0
  51. package/dist/_chunks/middleware.js +2 -3
  52. package/dist/_chunks/middleware.js.map +1 -1
  53. package/dist/_chunks/omit.js +42 -42
  54. package/dist/_chunks/omit.js.map +1 -1
  55. package/dist/_chunks/query.js +8 -15
  56. package/dist/_chunks/query.js.map +1 -1
  57. package/dist/_chunks/react.js +2 -3
  58. package/dist/_chunks/react.js.map +1 -1
  59. package/dist/_chunks/rolldown-runtime.js +2 -3
  60. package/dist/_chunks/tableStore.js +231 -224
  61. package/dist/_chunks/tableStore.js.map +1 -1
  62. package/dist/_chunks/toDate.js +8 -14
  63. package/dist/_chunks/toDate.js.map +1 -1
  64. package/dist/_chunks/uniq.js +43 -0
  65. package/dist/_chunks/uniq.js.map +1 -0
  66. package/dist/_chunks/useColumnsMenu.js +3 -6
  67. package/dist/_chunks/useColumnsMenu.js.map +1 -1
  68. package/dist/_chunks/useMutation.js +24 -26
  69. package/dist/_chunks/useMutation.js.map +1 -1
  70. package/dist/_chunks/useQueryMemo.js +33 -22
  71. package/dist/_chunks/useQueryMemo.js.map +1 -1
  72. package/dist/_chunks/vanilla.js +1 -2
  73. package/dist/_chunks/vanilla.js.map +1 -1
  74. package/dist/_chunks/yup.js +2 -4
  75. package/dist/_chunks/yup.js.map +1 -1
  76. package/dist/classes/TableEventBus/index.js +1 -2
  77. package/dist/classes/abstracts/FilterAbstract/index.js +4 -3
  78. package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
  79. package/dist/classes/filters/MultiSelectFilter.d.ts +1 -1
  80. package/dist/classes/services/AuthenticationService/AuthenticationService.d.ts +1 -1
  81. package/dist/classes/services/AuthenticationService/index.js +15 -16
  82. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  83. package/dist/classes/services/AuthorizationService/index.js +5 -6
  84. package/dist/classes/services/AuthorizationService/index.js.map +1 -1
  85. package/dist/classes/services/BackendVersionService/index.js +4 -4
  86. package/dist/classes/services/BackendVersionService/index.js.map +1 -1
  87. package/dist/classes/services/BreadcrumbService/index.js +16 -39
  88. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  89. package/dist/classes/services/EmotionCacheService/index.js +10 -10
  90. package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
  91. package/dist/classes/services/FeatureFlagsService/index.js +1 -2
  92. package/dist/classes/services/I18nService/index.js +12 -12
  93. package/dist/classes/services/I18nService/index.js.map +1 -1
  94. package/dist/classes/services/InactivityService/index.js +13 -14
  95. package/dist/classes/services/InactivityService/index.js.map +1 -1
  96. package/dist/classes/services/LogService/index.js +40 -35
  97. package/dist/classes/services/LogService/index.js.map +1 -1
  98. package/dist/classes/services/NavigationHistoryService/index.js +1 -2
  99. package/dist/classes/services/NotificationService/index.js +9 -10
  100. package/dist/classes/services/NotificationService/index.js.map +1 -1
  101. package/dist/classes/services/PageEventBusService/index.js +14 -11
  102. package/dist/classes/services/PageEventBusService/index.js.map +1 -1
  103. package/dist/classes/services/RouterService/index.js +4 -8
  104. package/dist/classes/services/RouterService/index.js.map +1 -1
  105. package/dist/classes/services/UserSettingsService/index.js +1 -2
  106. package/dist/components/app/App/App.d.ts +1 -1
  107. package/dist/components/app/App/index.js +35 -40
  108. package/dist/components/app/App/index.js.map +1 -1
  109. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +29 -30
  110. package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
  111. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +48 -47
  112. package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
  113. package/dist/components/app/AuthenticationWrapper/index.js +36 -37
  114. package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
  115. package/dist/components/app/AuthorizationWrapper/index.js +20 -21
  116. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  117. package/dist/components/app/RouterRoot/index.js +53 -52
  118. package/dist/components/app/RouterRoot/index.js.map +1 -1
  119. package/dist/components/epi/EpiContactDetailsDialog/index.js +22 -23
  120. package/dist/components/filters/BooleanFilterField/index.js +6 -7
  121. package/dist/components/filters/DateFilterField/index.js +4 -5
  122. package/dist/components/filters/GeoFilterField/index.js +5 -6
  123. package/dist/components/filters/MultiSelectFilterField/index.js +5 -6
  124. package/dist/components/filters/NumberRangeFilterField/index.js +4 -5
  125. package/dist/components/filters/TextFilterField/index.js +4 -5
  126. package/dist/components/ui/ApplicationBar/index.js +189 -190
  127. package/dist/components/ui/ApplicationBar/index.js.map +1 -1
  128. package/dist/components/ui/ConsentDialog/index.js +1 -2
  129. package/dist/components/ui/GenericErrorMessage/index.js +30 -31
  130. package/dist/components/ui/LicensesDialog/index.js +39 -40
  131. package/dist/components/ui/LicensesDialog/index.js.map +1 -1
  132. package/dist/components/ui/MyPermissionsDialog/index.js +17 -18
  133. package/dist/components/ui/NavLink/index.js +7 -8
  134. package/dist/components/ui/OrganizationSwitcherDialog/index.js +22 -23
  135. package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
  136. package/dist/components/ui/OutagesDialog/index.js +1 -2
  137. package/dist/components/ui/PageContainer/index.js +25 -26
  138. package/dist/components/ui/PageContainer/index.js.map +1 -1
  139. package/dist/components/ui/ResponseHandler/index.js +1 -2
  140. package/dist/components/ui/Sidebar/index.js +31 -32
  141. package/dist/components/ui/UserFeedbackDialog/index.js +13 -14
  142. package/dist/components/ui/UserInactivityConfirmation/index.js +1 -2
  143. package/dist/constants/api.constants.js +1 -2
  144. package/dist/constants/config.constants.d.ts +0 -2
  145. package/dist/constants/config.constants.js +3 -4
  146. package/dist/constants/config.constants.js.map +1 -1
  147. package/dist/constants/query.constants.js +1 -2
  148. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +13 -14
  149. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js.map +1 -1
  150. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +15 -16
  151. package/dist/dataHooks/useIdentifierIssuerQuery/index.js.map +1 -1
  152. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +13 -14
  153. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
  154. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +14 -15
  155. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js.map +1 -1
  156. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +5 -6
  157. package/dist/dataHooks/useOrganizationsQuery/index.js +14 -15
  158. package/dist/dataHooks/useOrganizationsQuery/index.js.map +1 -1
  159. package/dist/dataHooks/useUsersQuery/index.js +11 -12
  160. package/dist/dataHooks/useUsersQuery/index.js.map +1 -1
  161. package/dist/hoc/withPermissions/index.js +1 -2
  162. package/dist/hooks/useConfig/index.js +3 -4
  163. package/dist/hooks/useConfig/index.js.map +1 -1
  164. package/dist/hooks/useCreateMutation/index.js +13 -14
  165. package/dist/hooks/useCreateMutation/index.js.map +1 -1
  166. package/dist/hooks/useDeleteMutation/index.js +17 -11
  167. package/dist/hooks/useDeleteMutation/index.js.map +1 -1
  168. package/dist/hooks/useEditMutation/index.js +49 -35
  169. package/dist/hooks/useEditMutation/index.js.map +1 -1
  170. package/dist/hooks/useInitializeTableStore/index.js +1 -2
  171. package/dist/hooks/useItemQuery/index.js +5 -6
  172. package/dist/hooks/useItemQuery/index.js.map +1 -1
  173. package/dist/hooks/useUpdateBreadcrumb/index.js +1 -2
  174. package/dist/hooks/useUpdateDocumentTitle/index.js +1 -2
  175. package/dist/locale/en.json +1 -0
  176. package/dist/locale/nl.json +1 -0
  177. package/dist/models/admin.models.js +1 -2
  178. package/dist/models/admin.models.js.map +1 -1
  179. package/dist/models/config.models.d.ts +1 -5
  180. package/dist/models/table.models.js +1 -2
  181. package/dist/models/table.models.js.map +1 -1
  182. package/dist/models/theme.models.d.ts +19 -16
  183. package/dist/pages/AcceptInvitationPage/index.js +26 -27
  184. package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
  185. package/dist/pages/AdminPage/index.js +17 -18
  186. package/dist/pages/ChooseIdentityProviderPage/index.js +22 -23
  187. package/dist/pages/ErrorPage/index.js +1 -2
  188. package/dist/pages/IdentifierIssuersAdminPage/index.js +6 -7
  189. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +6 -7
  190. package/dist/pages/OrganizationContactsAdminPage/index.js +7 -8
  191. package/dist/pages/OrganizationSitesAdminPage/index.js +10 -11
  192. package/dist/pages/OrganizationsAdminPage/index.js +14 -15
  193. package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
  194. package/dist/pages/OutagesAdminPage/index.js +21 -22
  195. package/dist/pages/PostLoginPage/index.js +8 -9
  196. package/dist/pages/PostLoginPage/index.js.map +1 -1
  197. package/dist/pages/PostLogoutPage/index.js +9 -10
  198. package/dist/pages/RouterErrorPage/index.js +1 -2
  199. package/dist/pages/UsersAdminPage/index.js +40 -41
  200. package/dist/pages/UsersAdminPage/index.js.map +1 -1
  201. package/dist/routes/index.js +1 -2
  202. package/dist/setup/setup.js +12 -6
  203. package/dist/setup/setup.js.map +1 -1
  204. package/dist/stores/oidcStore/index.js +1 -2
  205. package/dist/stores/outagesStore/index.js +1 -2
  206. package/dist/theme/demoTheme/index.js +18 -17
  207. package/dist/theme/demoTheme/index.js.map +1 -1
  208. package/dist/utils/AxiosUtil/index.js +1 -2
  209. package/dist/utils/DataHookUtil/index.js +2 -3
  210. package/dist/utils/DataHookUtil/index.js.map +1 -1
  211. package/dist/utils/DependencyContainerUtil/DependencyContainerUtil.d.ts +2 -3
  212. package/dist/utils/DependencyContainerUtil/index.js +10 -16
  213. package/dist/utils/DependencyContainerUtil/index.js.map +1 -1
  214. package/dist/utils/LoadableUtil/index.js +1 -2
  215. package/dist/utils/MenuDataUtil/index.js +2 -3
  216. package/dist/utils/MenuDataUtil/index.js.map +1 -1
  217. package/dist/utils/NotificationUtil/index.js +1 -2
  218. package/dist/utils/StandardConfigUtil/index.js +1 -6
  219. package/dist/utils/StandardConfigUtil/index.js.map +1 -1
  220. package/dist/utils/TimeUtil/index.js +2 -3
  221. package/dist/utils/TimeUtil/index.js.map +1 -1
  222. package/dist/utils/UserUtil/index.js +1 -2
  223. package/package.json +26 -29
  224. package/dist/context/ClientCommonConfigContext/ClientCommonConfigContext.d.ts +0 -9
  225. package/dist/context/ClientCommonConfigContext/ClientCommonConfigContextProvider.d.ts +0 -6
  226. package/dist/context/ClientCommonConfigContext/index.d.ts +0 -3
  227. package/dist/context/ClientCommonConfigContext/index.js +0 -34
  228. package/dist/context/ClientCommonConfigContext/index.js.map +0 -1
  229. package/dist/context/ClientCommonConfigContext/useClientCommonConfigContext.d.ts +0 -3
@@ -1,14 +1,15 @@
1
- import { WindowService as e } from "@gen-epix/ui-core/classes/services/WindowService";
2
- //#region ../../node_modules/.pnpm/jwt-decode@4.0.0/node_modules/jwt-decode/build/esm/index.js
3
- var t = class extends Error {};
4
- t.prototype.name = "InvalidTokenError";
5
- function n(e) {
1
+ import { container as e } from "tsyringe";
2
+ import { WindowService as t } from "@gen-epix/ui-core/classes/services/WindowService";
3
+ // ../../node_modules/.pnpm/jwt-decode@4.0.0/node_modules/jwt-decode/build/esm/index.js
4
+ var n = class extends Error {};
5
+ n.prototype.name = "InvalidTokenError";
6
+ function r(e) {
6
7
  return decodeURIComponent(atob(e).replace(/(.)/g, (e, t) => {
7
8
  let n = t.charCodeAt(0).toString(16).toUpperCase();
8
9
  return n.length < 2 && (n = "0" + n), "%" + n;
9
10
  }));
10
11
  }
11
- function r(e) {
12
+ function i(e) {
12
13
  let t = e.replace(/-/g, "+").replace(/_/g, "/");
13
14
  switch (t.length % 4) {
14
15
  case 0: break;
@@ -21,66 +22,65 @@ function r(e) {
21
22
  default: throw Error("base64 string is not of the correct length");
22
23
  }
23
24
  try {
24
- return n(t);
25
+ return r(t);
25
26
  } catch {
26
27
  return atob(t);
27
28
  }
28
29
  }
29
- function i(e, n) {
30
- if (typeof e != "string") throw new t("Invalid token specified: must be a string");
31
- n ||= {};
32
- let i = n.header === !0 ? 0 : 1, a = e.split(".")[i];
33
- if (typeof a != "string") throw new t(`Invalid token specified: missing part #${i + 1}`);
30
+ function a(e, t) {
31
+ if (typeof e != "string") throw new n("Invalid token specified: must be a string");
32
+ t ||= {};
33
+ let r = t.header === !0 ? 0 : 1, a = e.split(".")[r];
34
+ if (typeof a != "string") throw new n(`Invalid token specified: missing part #${r + 1}`);
34
35
  let o;
35
36
  try {
36
- o = r(a);
37
+ o = i(a);
37
38
  } catch (e) {
38
- throw new t(`Invalid token specified: invalid base64 for part #${i + 1} (${e.message})`);
39
+ throw new n(`Invalid token specified: invalid base64 for part #${r + 1} (${e.message})`);
39
40
  }
40
41
  try {
41
42
  return JSON.parse(o);
42
43
  } catch (e) {
43
- throw new t(`Invalid token specified: invalid json for part #${i + 1} (${e.message})`);
44
+ throw new n(`Invalid token specified: invalid json for part #${r + 1} (${e.message})`);
44
45
  }
45
46
  }
46
- //#endregion
47
- //#region ../../node_modules/.pnpm/oidc-client-ts@3.5.0/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js
48
- var a = {
47
+ // ../../node_modules/.pnpm/oidc-client-ts@3.5.0/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js
48
+ var o = {
49
49
  debug: () => void 0,
50
50
  info: () => void 0,
51
51
  warn: () => void 0,
52
52
  error: () => void 0
53
- }, o, s, c = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.ERROR = 1] = "ERROR", e[e.WARN = 2] = "WARN", e[e.INFO = 3] = "INFO", e[e.DEBUG = 4] = "DEBUG", e))(c || {});
53
+ }, s, c, l = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.ERROR = 1] = "ERROR", e[e.WARN = 2] = "WARN", e[e.INFO = 3] = "INFO", e[e.DEBUG = 4] = "DEBUG", e))(l || {});
54
54
  ((e) => {
55
55
  function t() {
56
- o = 3, s = a;
56
+ s = 3, c = o;
57
57
  }
58
58
  e.reset = t;
59
59
  function n(e) {
60
60
  if (!(0 <= e && e <= 4)) throw Error("Invalid log level");
61
- o = e;
61
+ s = e;
62
62
  }
63
63
  e.setLevel = n;
64
64
  function r(e) {
65
- s = e;
65
+ c = e;
66
66
  }
67
67
  e.setLogger = r;
68
- })(c ||= {});
69
- var l = class e {
68
+ })(l ||= {});
69
+ var u = class e {
70
70
  constructor(e) {
71
71
  this._name = e;
72
72
  }
73
73
  debug(...t) {
74
- o >= 4 && s.debug(e._format(this._name, this._method), ...t);
74
+ s >= 4 && c.debug(e._format(this._name, this._method), ...t);
75
75
  }
76
76
  info(...t) {
77
- o >= 3 && s.info(e._format(this._name, this._method), ...t);
77
+ s >= 3 && c.info(e._format(this._name, this._method), ...t);
78
78
  }
79
79
  warn(...t) {
80
- o >= 2 && s.warn(e._format(this._name, this._method), ...t);
80
+ s >= 2 && c.warn(e._format(this._name, this._method), ...t);
81
81
  }
82
82
  error(...t) {
83
- o >= 1 && s.error(e._format(this._name, this._method), ...t);
83
+ s >= 1 && c.error(e._format(this._name, this._method), ...t);
84
84
  }
85
85
  throw(e) {
86
86
  throw this.error(e), e;
@@ -98,45 +98,45 @@ var l = class e {
98
98
  return t ? `${n} ${t}:` : n;
99
99
  }
100
100
  static debug(t, ...n) {
101
- o >= 4 && s.debug(e._format(t), ...n);
101
+ s >= 4 && c.debug(e._format(t), ...n);
102
102
  }
103
103
  static info(t, ...n) {
104
- o >= 3 && s.info(e._format(t), ...n);
104
+ s >= 3 && c.info(e._format(t), ...n);
105
105
  }
106
106
  static warn(t, ...n) {
107
- o >= 2 && s.warn(e._format(t), ...n);
107
+ s >= 2 && c.warn(e._format(t), ...n);
108
108
  }
109
109
  static error(t, ...n) {
110
- o >= 1 && s.error(e._format(t), ...n);
110
+ s >= 1 && c.error(e._format(t), ...n);
111
111
  }
112
112
  };
113
- c.reset();
114
- var u = class {
113
+ l.reset();
114
+ var d = class {
115
115
  static decode(e) {
116
116
  try {
117
- return i(e);
117
+ return a(e);
118
118
  } catch (e) {
119
- throw l.error("JwtUtils.decode", e), e;
119
+ throw u.error("JwtUtils.decode", e), e;
120
120
  }
121
121
  }
122
122
  static async generateSignedJwt(e, t, n) {
123
- let r = `${m.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${m.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`, i = await window.crypto.subtle.sign({
123
+ let r = `${h.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${h.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`, i = await window.crypto.subtle.sign({
124
124
  name: "ECDSA",
125
125
  hash: { name: "SHA-256" }
126
126
  }, n, new TextEncoder().encode(r));
127
- return `${r}.${m.encodeBase64Url(new Uint8Array(i))}`;
127
+ return `${r}.${h.encodeBase64Url(new Uint8Array(i))}`;
128
128
  }
129
129
  static async generateSignedJwtWithHmac(e, t, n) {
130
- let r = `${m.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${m.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`, i = await window.crypto.subtle.sign("HMAC", n, new TextEncoder().encode(r));
131
- return `${r}.${m.encodeBase64Url(new Uint8Array(i))}`;
130
+ let r = `${h.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${h.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`, i = await window.crypto.subtle.sign("HMAC", n, new TextEncoder().encode(r));
131
+ return `${r}.${h.encodeBase64Url(new Uint8Array(i))}`;
132
132
  }
133
- }, d = "10000000-1000-4000-8000-100000000000", f = (e) => btoa([...new Uint8Array(e)].map((e) => String.fromCharCode(e)).join("")), p = class e {
133
+ }, f = "10000000-1000-4000-8000-100000000000", p = (e) => btoa([...new Uint8Array(e)].map((e) => String.fromCharCode(e)).join("")), m = class e {
134
134
  static _randomWord() {
135
135
  let e = /* @__PURE__ */ new Uint32Array(1);
136
136
  return crypto.getRandomValues(e), e[0];
137
137
  }
138
138
  static generateUUIDv4() {
139
- return d.replace(/[018]/g, (t) => (+t ^ e._randomWord() & 15 >> t / 4).toString(16)).replace(/-/g, "");
139
+ return f.replace(/[018]/g, (t) => (+t ^ e._randomWord() & 15 >> t / 4).toString(16)).replace(/-/g, "");
140
140
  }
141
141
  static generateCodeVerifier() {
142
142
  return e.generateUUIDv4() + e.generateUUIDv4() + e.generateUUIDv4();
@@ -145,13 +145,13 @@ var u = class {
145
145
  if (!crypto.subtle) throw Error("Crypto.subtle is available only in secure contexts (HTTPS).");
146
146
  try {
147
147
  let t = new TextEncoder().encode(e);
148
- return f(await crypto.subtle.digest("SHA-256", t)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
148
+ return p(await crypto.subtle.digest("SHA-256", t)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
149
149
  } catch (e) {
150
- throw l.error("CryptoUtils.generateCodeChallenge", e), e;
150
+ throw u.error("CryptoUtils.generateCodeChallenge", e), e;
151
151
  }
152
152
  }
153
153
  static generateBasicAuth(e, t) {
154
- return f(new TextEncoder().encode([e, t].join(":")));
154
+ return p(new TextEncoder().encode([e, t].join(":")));
155
155
  }
156
156
  static async hash(e, t) {
157
157
  let n = new TextEncoder().encode(t), r = await crypto.subtle.digest(e, n);
@@ -212,7 +212,7 @@ var u = class {
212
212
  y: e.y
213
213
  }
214
214
  };
215
- return await u.generateSignedJwt(t, c, i.privateKey);
215
+ return await d.generateSignedJwt(t, c, i.privateKey);
216
216
  } catch (e) {
217
217
  throw e instanceof TypeError ? Error(`Error exporting dpop public key: ${e.message}`) : e;
218
218
  }
@@ -248,17 +248,17 @@ var u = class {
248
248
  HS512: "SHA-512"
249
249
  }[i];
250
250
  if (!c) throw Error(`Unsupported algorithm: ${i}. Supported algorithms are: HS256, HS384, HS512`);
251
- let l = new TextEncoder(), d = await crypto.subtle.importKey("raw", l.encode(n), {
251
+ let l = new TextEncoder(), u = await crypto.subtle.importKey("raw", l.encode(n), {
252
252
  name: "HMAC",
253
253
  hash: c
254
254
  }, !1, ["sign"]);
255
- return await u.generateSignedJwtWithHmac(o, s, d);
255
+ return await d.generateSignedJwtWithHmac(o, s, u);
256
256
  }
257
257
  };
258
- p.encodeBase64Url = (e) => f(e).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
259
- var m = p, h = class {
258
+ m.encodeBase64Url = (e) => p(e).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
259
+ var h = m, g = class {
260
260
  constructor(e) {
261
- this._name = e, this._callbacks = [], this._logger = new l(`Event('${this._name}')`);
261
+ this._name = e, this._callbacks = [], this._logger = new u(`Event('${this._name}')`);
262
262
  }
263
263
  addHandler(e) {
264
264
  return this._callbacks.push(e), () => this.removeHandler(e);
@@ -271,7 +271,7 @@ var m = p, h = class {
271
271
  this._logger.debug("raise:", ...e);
272
272
  for (let t of this._callbacks) await t(...e);
273
273
  }
274
- }, g = class {
274
+ }, _ = class {
275
275
  static center({ ...e }) {
276
276
  return e.width ??= [
277
277
  800,
@@ -283,9 +283,9 @@ var m = p, h = class {
283
283
  static serialize(e) {
284
284
  return Object.entries(e).filter(([, e]) => e != null).map(([e, t]) => `${e}=${typeof t == "boolean" ? t ? "yes" : "no" : t}`).join(",");
285
285
  }
286
- }, _ = class e extends h {
286
+ }, v = class e extends g {
287
287
  constructor() {
288
- super(...arguments), this._logger = new l(`Timer('${this._name}')`), this._timerHandle = null, this._expiration = 0, this._callback = () => {
288
+ super(...arguments), this._logger = new u(`Timer('${this._name}')`), this._timerHandle = null, this._expiration = 0, this._callback = () => {
289
289
  let t = this._expiration - e.getEpochTime();
290
290
  this._logger.debug("timer completes in", t), this._expiration <= e.getEpochTime() && (this.cancel(), super.raise());
291
291
  };
@@ -311,24 +311,24 @@ var m = p, h = class {
311
311
  cancel() {
312
312
  this._logger.create("cancel"), this._timerHandle &&= (clearInterval(this._timerHandle), null);
313
313
  }
314
- }, v = class {
314
+ }, y = class {
315
315
  static readParams(e, t = "query") {
316
316
  if (!e) throw TypeError("Invalid URL");
317
317
  let n = new URL(e, "http://127.0.0.1")[t === "fragment" ? "hash" : "search"];
318
318
  return new URLSearchParams(n.slice(1));
319
319
  }
320
- }, y = ";", b = class extends Error {
320
+ }, b = ";", x = class extends Error {
321
321
  constructor(e, t) {
322
- if (super(e.error_description || e.error || ""), this.form = t, this.name = "ErrorResponse", !e.error) throw l.error("ErrorResponse", "No error passed"), Error("No error passed");
322
+ if (super(e.error_description || e.error || ""), this.form = t, this.name = "ErrorResponse", !e.error) throw u.error("ErrorResponse", "No error passed"), Error("No error passed");
323
323
  this.error = e.error, this.error_description = e.error_description ?? null, this.error_uri = e.error_uri ?? null, this.state = e.userState, this.session_state = e.session_state ?? null, this.url_state = e.url_state;
324
324
  }
325
- }, x = class extends Error {
325
+ }, S = class extends Error {
326
326
  constructor(e) {
327
327
  super(e), this.name = "ErrorTimeout";
328
328
  }
329
- }, S = class {
329
+ }, C = class {
330
330
  constructor(e) {
331
- this._logger = new l("AccessTokenEvents"), this._expiringTimer = new _("Access token expiring"), this._expiredTimer = new _("Access token expired"), this._expiringNotificationTimeInSeconds = e.expiringNotificationTimeInSeconds;
331
+ this._logger = new u("AccessTokenEvents"), this._expiringTimer = new v("Access token expiring"), this._expiredTimer = new v("Access token expired"), this._expiringNotificationTimeInSeconds = e.expiringNotificationTimeInSeconds;
332
332
  }
333
333
  async load(e) {
334
334
  let t = this._logger.create("load");
@@ -357,9 +357,9 @@ var m = p, h = class {
357
357
  removeAccessTokenExpired(e) {
358
358
  this._expiredTimer.removeHandler(e);
359
359
  }
360
- }, C = class {
360
+ }, w = class {
361
361
  constructor(e, t, n, r, i) {
362
- this._callback = e, this._client_id = t, this._intervalInSeconds = r, this._stopOnError = i, this._logger = new l("CheckSessionIFrame"), this._timer = null, this._session_state = null, this._message = (e) => {
362
+ this._callback = e, this._client_id = t, this._intervalInSeconds = r, this._stopOnError = i, this._logger = new u("CheckSessionIFrame"), this._timer = null, this._session_state = null, this._message = (e) => {
363
363
  e.origin === this._frame_origin && e.source === this._frame.contentWindow && (e.data === "error" ? (this._logger.error("error message from check session op iframe"), this._stopOnError && this.stop()) : e.data === "changed" ? (this._logger.debug("changed message from check session op iframe"), this.stop(), this._callback()) : this._logger.debug(e.data + " message from check session op iframe"));
364
364
  };
365
365
  let a = new URL(n);
@@ -383,9 +383,9 @@ var m = p, h = class {
383
383
  stop() {
384
384
  this._logger.create("stop"), this._session_state = null, this._timer &&= (clearInterval(this._timer), null);
385
385
  }
386
- }, w = class {
386
+ }, T = class {
387
387
  constructor() {
388
- this._logger = new l("InMemoryWebStorage"), this._data = {};
388
+ this._logger = new u("InMemoryWebStorage"), this._data = {};
389
389
  }
390
390
  clear() {
391
391
  this._logger.create("clear"), this._data = {};
@@ -405,13 +405,13 @@ var m = p, h = class {
405
405
  key(e) {
406
406
  return Object.getOwnPropertyNames(this._data)[e];
407
407
  }
408
- }, T = class extends Error {
408
+ }, E = class extends Error {
409
409
  constructor(e, t) {
410
410
  super(t), this.name = "ErrorDPoPNonce", this.nonce = e;
411
411
  }
412
- }, E = class {
412
+ }, D = class {
413
413
  constructor(e = [], t = null, n = {}) {
414
- this._jwtHandler = t, this._extraHeaders = n, this._logger = new l("JsonService"), this._contentTypes = [], this._contentTypes.push(...e, "application/json"), t && this._contentTypes.push("application/jwt");
414
+ this._jwtHandler = t, this._extraHeaders = n, this._logger = new u("JsonService"), this._contentTypes = [], this._contentTypes.push(...e, "application/json"), t && this._contentTypes.push("application/jwt");
415
415
  }
416
416
  async fetchWithTimeout(e, t = {}) {
417
417
  let { timeoutInSeconds: n, ...r } = t;
@@ -423,7 +423,7 @@ var m = p, h = class {
423
423
  signal: i.signal
424
424
  });
425
425
  } catch (e) {
426
- throw e instanceof DOMException && e.name === "AbortError" ? new x("Network timed out") : e;
426
+ throw e instanceof DOMException && e.name === "AbortError" ? new S("Network timed out") : e;
427
427
  } finally {
428
428
  clearTimeout(a);
429
429
  }
@@ -451,7 +451,7 @@ var m = p, h = class {
451
451
  } catch (e) {
452
452
  throw i.error("Error parsing JSON response", e), o.ok ? e : Error(`${o.statusText} (${o.status})`);
453
453
  }
454
- if (!o.ok) throw i.error("Error from server:", c), c.error ? new b(c) : Error(`${o.statusText} (${o.status}): ${JSON.stringify(c)}`);
454
+ if (!o.ok) throw i.error("Error from server:", c), c.error ? new x(c) : Error(`${o.statusText} (${o.status}): ${JSON.stringify(c)}`);
455
455
  return c;
456
456
  }
457
457
  async postForm(e, { body: t, basicAuth: n, timeoutInSeconds: r, initCredentials: i, extraHeaders: a }) {
@@ -482,7 +482,7 @@ var m = p, h = class {
482
482
  } catch (e) {
483
483
  throw o.error("Error parsing JSON response", e), c.ok ? e : Error(`${c.statusText} (${c.status})`);
484
484
  }
485
- if (!c.ok) throw o.error("Error from server:", d), c.headers.has("dpop-nonce") ? new T(c.headers.get("dpop-nonce"), `${JSON.stringify(d)}`) : d.error ? new b(d, t) : Error(`${c.statusText} (${c.status}): ${JSON.stringify(d)}`);
485
+ if (!c.ok) throw o.error("Error from server:", d), c.headers.has("dpop-nonce") ? new E(c.headers.get("dpop-nonce"), `${JSON.stringify(d)}`) : d.error ? new x(d, t) : Error(`${c.statusText} (${c.status}): ${JSON.stringify(d)}`);
486
486
  return d;
487
487
  }
488
488
  _appendExtraHeaders(e) {
@@ -500,9 +500,9 @@ var m = p, h = class {
500
500
  a && a !== "" && (e[n] = a);
501
501
  });
502
502
  }
503
- }, D = class {
503
+ }, O = class {
504
504
  constructor(e) {
505
- this._settings = e, this._logger = new l("MetadataService"), this._signingKeys = null, this._metadata = null, this._metadataUrl = this._settings.metadataUrl, this._jsonService = new E(["application/jwk-set+json"], null, this._settings.extraHeaders), this._settings.signingKeys && (this._logger.debug("using signingKeys from settings"), this._signingKeys = this._settings.signingKeys), this._settings.metadata && (this._logger.debug("using metadata from settings"), this._metadata = this._settings.metadata), this._settings.fetchRequestCredentials && (this._logger.debug("using fetchRequestCredentials from settings"), this._fetchRequestCredentials = this._settings.fetchRequestCredentials);
505
+ this._settings = e, this._logger = new u("MetadataService"), this._signingKeys = null, this._metadata = null, this._metadataUrl = this._settings.metadataUrl, this._jsonService = new D(["application/jwk-set+json"], null, this._settings.extraHeaders), this._settings.signingKeys && (this._logger.debug("using signingKeys from settings"), this._signingKeys = this._settings.signingKeys), this._settings.metadata && (this._logger.debug("using metadata from settings"), this._metadata = this._settings.metadata), this._settings.fetchRequestCredentials && (this._logger.debug("using fetchRequestCredentials from settings"), this._fetchRequestCredentials = this._settings.fetchRequestCredentials);
506
506
  }
507
507
  resetSigningKeys() {
508
508
  this._signingKeys = null;
@@ -562,9 +562,9 @@ var m = p, h = class {
562
562
  if (e.debug("got key set", n), !Array.isArray(n.keys)) throw e.throw(/* @__PURE__ */ Error("Missing keys on keyset")), null;
563
563
  return this._signingKeys = n.keys, this._signingKeys;
564
564
  }
565
- }, O = class {
565
+ }, k = class {
566
566
  constructor({ prefix: e = "oidc.", store: t = localStorage } = {}) {
567
- this._logger = new l("WebStorageStateStore"), this._store = t, this._prefix = e;
567
+ this._logger = new u("WebStorageStateStore"), this._store = t, this._prefix = e;
568
568
  }
569
569
  async set(e, t) {
570
570
  this._logger.create(`set('${e}')`), e = this._prefix + e, await this._store.setItem(e, t);
@@ -586,26 +586,26 @@ var m = p, h = class {
586
586
  }
587
587
  return t;
588
588
  }
589
- }, k = "code", A = "openid", j = "client_secret_post", ee = 900, M = class {
590
- constructor({ authority: e, metadataUrl: t, metadata: n, signingKeys: r, metadataSeed: i, client_id: a, client_secret: o, response_type: s = k, scope: c = A, redirect_uri: l, post_logout_redirect_uri: u, client_authentication: d = j, token_endpoint_auth_signing_alg: f = "HS256", prompt: p, display: m, max_age: h, ui_locales: g, acr_values: _, resource: v, response_mode: y, filterProtocolClaims: b = !0, loadUserInfo: x = !1, requestTimeoutInSeconds: S, staleStateAgeInSeconds: C = ee, mergeClaimsStrategy: T = { array: "replace" }, disablePKCE: E = !1, stateStore: D, revokeTokenAdditionalContentTypes: M, fetchRequestCredentials: N, refreshTokenAllowedScope: P, extraQueryParams: F = {}, extraTokenParams: I = {}, extraHeaders: L = {}, dpop: R, omitScopeWhenRequesting: z = !1 }) {
591
- if (this.authority = e, t ? this.metadataUrl = t : (this.metadataUrl = e, e && (this.metadataUrl.endsWith("/") || (this.metadataUrl += "/"), this.metadataUrl += ".well-known/openid-configuration")), this.metadata = n, this.metadataSeed = i, this.signingKeys = r, this.client_id = a, this.client_secret = o, this.response_type = s, this.scope = c, this.redirect_uri = l, this.post_logout_redirect_uri = u, this.client_authentication = d, this.token_endpoint_auth_signing_alg = f, this.prompt = p, this.display = m, this.max_age = h, this.ui_locales = g, this.acr_values = _, this.resource = v, this.response_mode = y, this.filterProtocolClaims = b ?? !0, this.loadUserInfo = !!x, this.staleStateAgeInSeconds = C, this.mergeClaimsStrategy = T, this.omitScopeWhenRequesting = z, this.disablePKCE = !!E, this.revokeTokenAdditionalContentTypes = M, this.fetchRequestCredentials = N || "same-origin", this.requestTimeoutInSeconds = S, D) this.stateStore = D;
589
+ }, A = "code", j = "openid", M = "client_secret_post", ee = 900, N = class {
590
+ constructor({ authority: e, metadataUrl: t, metadata: n, signingKeys: r, metadataSeed: i, client_id: a, client_secret: o, response_type: s = A, scope: c = j, redirect_uri: l, post_logout_redirect_uri: u, client_authentication: d = M, token_endpoint_auth_signing_alg: f = "HS256", prompt: p, display: m, max_age: h, ui_locales: g, acr_values: _, resource: v, response_mode: y, filterProtocolClaims: b = !0, loadUserInfo: x = !1, requestTimeoutInSeconds: S, staleStateAgeInSeconds: C = ee, mergeClaimsStrategy: w = { array: "replace" }, disablePKCE: E = !1, stateStore: D, revokeTokenAdditionalContentTypes: O, fetchRequestCredentials: N, refreshTokenAllowedScope: P, extraQueryParams: F = {}, extraTokenParams: I = {}, extraHeaders: L = {}, dpop: R, omitScopeWhenRequesting: z = !1 }) {
591
+ if (this.authority = e, t ? this.metadataUrl = t : (this.metadataUrl = e, e && (this.metadataUrl.endsWith("/") || (this.metadataUrl += "/"), this.metadataUrl += ".well-known/openid-configuration")), this.metadata = n, this.metadataSeed = i, this.signingKeys = r, this.client_id = a, this.client_secret = o, this.response_type = s, this.scope = c, this.redirect_uri = l, this.post_logout_redirect_uri = u, this.client_authentication = d, this.token_endpoint_auth_signing_alg = f, this.prompt = p, this.display = m, this.max_age = h, this.ui_locales = g, this.acr_values = _, this.resource = v, this.response_mode = y, this.filterProtocolClaims = b ?? !0, this.loadUserInfo = !!x, this.staleStateAgeInSeconds = C, this.mergeClaimsStrategy = w, this.omitScopeWhenRequesting = z, this.disablePKCE = !!E, this.revokeTokenAdditionalContentTypes = O, this.fetchRequestCredentials = N || "same-origin", this.requestTimeoutInSeconds = S, D) this.stateStore = D;
592
592
  else {
593
- let e = typeof window < "u" ? window.localStorage : new w();
594
- this.stateStore = new O({ store: e });
593
+ let e = typeof window < "u" ? window.localStorage : new T();
594
+ this.stateStore = new k({ store: e });
595
595
  }
596
596
  if (this.refreshTokenAllowedScope = P, this.extraQueryParams = F, this.extraTokenParams = I, this.extraHeaders = L, this.dpop = R, this.dpop && !this.dpop?.store) throw Error("A DPoPStore is required when dpop is enabled");
597
597
  }
598
- }, N = class {
598
+ }, P = class {
599
599
  constructor(e, t) {
600
- this._settings = e, this._metadataService = t, this._logger = new l("UserInfoService"), this._getClaimsFromJwt = async (e) => {
600
+ this._settings = e, this._metadataService = t, this._logger = new u("UserInfoService"), this._getClaimsFromJwt = async (e) => {
601
601
  let t = this._logger.create("_getClaimsFromJwt");
602
602
  try {
603
- let n = u.decode(e);
603
+ let n = d.decode(e);
604
604
  return t.debug("JWT decoding successful"), n;
605
605
  } catch (e) {
606
606
  throw t.error("Error parsing JWT response"), e;
607
607
  }
608
- }, this._jsonService = new E(void 0, this._getClaimsFromJwt, this._settings.extraHeaders);
608
+ }, this._jsonService = new D(void 0, this._getClaimsFromJwt, this._settings.extraHeaders);
609
609
  }
610
610
  async getClaims(e) {
611
611
  let t = this._logger.create("getClaims");
@@ -619,9 +619,9 @@ var m = p, h = class {
619
619
  });
620
620
  return t.debug("got claims", r), r;
621
621
  }
622
- }, P = class {
622
+ }, F = class {
623
623
  constructor(e, t) {
624
- this._settings = e, this._metadataService = t, this._logger = new l("TokenClient"), this._jsonService = new E(this._settings.revokeTokenAdditionalContentTypes, null, this._settings.extraHeaders);
624
+ this._settings = e, this._metadataService = t, this._logger = new u("TokenClient"), this._jsonService = new D(this._settings.revokeTokenAdditionalContentTypes, null, this._settings.extraHeaders);
625
625
  }
626
626
  async exchangeCode({ grant_type: e = "authorization_code", redirect_uri: t = this._settings.redirect_uri, client_id: n = this._settings.client_id, client_secret: r = this._settings.client_secret, extraHeaders: i, ...a }) {
627
627
  let o = this._logger.create("exchangeCode");
@@ -635,13 +635,13 @@ var m = p, h = class {
635
635
  let c, l = await this._metadataService.getTokenEndpoint(!1);
636
636
  switch (this._settings.client_authentication) {
637
637
  case "client_secret_basic":
638
- c = m.generateBasicAuth(n, r);
638
+ c = h.generateBasicAuth(n, r);
639
639
  break;
640
640
  case "client_secret_post":
641
641
  s.append("client_id", n), r && s.append("client_secret", r);
642
642
  break;
643
643
  case "client_secret_jwt": {
644
- let e = await m.generateClientAssertionJwt(n, r, l, this._settings.token_endpoint_auth_signing_alg);
644
+ let e = await h.generateClientAssertionJwt(n, r, l, this._settings.token_endpoint_auth_signing_alg);
645
645
  s.append("client_id", n), s.append("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"), s.append("client_assertion", e);
646
646
  break;
647
647
  }
@@ -666,13 +666,13 @@ var m = p, h = class {
666
666
  let s, c = await this._metadataService.getTokenEndpoint(!1);
667
667
  switch (this._settings.client_authentication) {
668
668
  case "client_secret_basic":
669
- s = m.generateBasicAuth(t, n);
669
+ s = h.generateBasicAuth(t, n);
670
670
  break;
671
671
  case "client_secret_post":
672
672
  o.append("client_id", t), n && o.append("client_secret", n);
673
673
  break;
674
674
  case "client_secret_jwt": {
675
- let e = await m.generateClientAssertionJwt(t, n, c, this._settings.token_endpoint_auth_signing_alg);
675
+ let e = await h.generateClientAssertionJwt(t, n, c, this._settings.token_endpoint_auth_signing_alg);
676
676
  o.append("client_id", t), o.append("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"), o.append("client_assertion", e);
677
677
  break;
678
678
  }
@@ -695,13 +695,13 @@ var m = p, h = class {
695
695
  let c, l = await this._metadataService.getTokenEndpoint(!1);
696
696
  switch (this._settings.client_authentication) {
697
697
  case "client_secret_basic":
698
- c = m.generateBasicAuth(t, n);
698
+ c = h.generateBasicAuth(t, n);
699
699
  break;
700
700
  case "client_secret_post":
701
701
  s.append("client_id", t), n && s.append("client_secret", n);
702
702
  break;
703
703
  case "client_secret_jwt": {
704
- let e = await m.generateClientAssertionJwt(t, n, l, this._settings.token_endpoint_auth_signing_alg);
704
+ let e = await h.generateClientAssertionJwt(t, n, l, this._settings.token_endpoint_auth_signing_alg);
705
705
  s.append("client_id", t), s.append("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"), s.append("client_assertion", e);
706
706
  break;
707
707
  }
@@ -728,9 +728,9 @@ var m = p, h = class {
728
728
  timeoutInSeconds: this._settings.requestTimeoutInSeconds
729
729
  }), t.debug("got response");
730
730
  }
731
- }, F = class {
731
+ }, I = class {
732
732
  constructor(e, t, n) {
733
- this._settings = e, this._metadataService = t, this._claimsService = n, this._logger = new l("ResponseValidator"), this._userInfoService = new N(this._settings, this._metadataService), this._tokenClient = new P(this._settings, this._metadataService);
733
+ this._settings = e, this._metadataService = t, this._claimsService = n, this._logger = new u("ResponseValidator"), this._userInfoService = new P(this._settings, this._metadataService), this._tokenClient = new F(this._settings, this._metadataService);
734
734
  }
735
735
  async validateSigninResponse(e, t, n) {
736
736
  let r = this._logger.create("validateSigninResponse");
@@ -748,11 +748,11 @@ var m = p, h = class {
748
748
  }
749
749
  validateSignoutResponse(e, t) {
750
750
  let n = this._logger.create("validateSignoutResponse");
751
- if (t.id !== e.state && n.throw(/* @__PURE__ */ Error("State does not match")), n.debug("state validated"), e.userState = t.data, e.error) throw n.warn("Response was error", e.error), new b(e);
751
+ if (t.id !== e.state && n.throw(/* @__PURE__ */ Error("State does not match")), n.debug("state validated"), e.userState = t.data, e.error) throw n.warn("Response was error", e.error), new x(e);
752
752
  }
753
753
  _processSigninState(e, t) {
754
754
  let n = this._logger.create("_processSigninState");
755
- if (t.id !== e.state && n.throw(/* @__PURE__ */ Error("State does not match")), t.client_id || n.throw(/* @__PURE__ */ Error("No client_id on state")), t.authority || n.throw(/* @__PURE__ */ Error("No authority on state")), this._settings.authority !== t.authority && n.throw(/* @__PURE__ */ Error("authority mismatch on settings vs. signin state")), this._settings.client_id && this._settings.client_id !== t.client_id && n.throw(/* @__PURE__ */ Error("client_id mismatch on settings vs. signin state")), n.debug("state validated"), e.userState = t.data, e.url_state = t.url_state, e.scope ??= t.scope, e.error) throw n.warn("Response was error", e.error), new b(e);
755
+ if (t.id !== e.state && n.throw(/* @__PURE__ */ Error("State does not match")), t.client_id || n.throw(/* @__PURE__ */ Error("No client_id on state")), t.authority || n.throw(/* @__PURE__ */ Error("No authority on state")), this._settings.authority !== t.authority && n.throw(/* @__PURE__ */ Error("authority mismatch on settings vs. signin state")), this._settings.client_id && this._settings.client_id !== t.client_id && n.throw(/* @__PURE__ */ Error("client_id mismatch on settings vs. signin state")), n.debug("state validated"), e.userState = t.data, e.url_state = t.url_state, e.scope ??= t.scope, e.error) throw n.warn("Response was error", e.error), new x(e);
756
756
  t.code_verifier && !e.code && n.throw(/* @__PURE__ */ Error("Expected code in response"));
757
757
  }
758
758
  async _processClaims(e, t = !1, n = !0) {
@@ -784,19 +784,19 @@ var m = p, h = class {
784
784
  _validateIdTokenAttributes(e, t, n) {
785
785
  let r = this._logger.create("_validateIdTokenAttributes");
786
786
  r.debug("decoding ID Token JWT");
787
- let i = u.decode(e.id_token ?? "");
787
+ let i = d.decode(e.id_token ?? "");
788
788
  if (i.sub || r.throw(/* @__PURE__ */ Error("ID Token is missing a subject claim")), n && i.nonce !== n && r.throw(/* @__PURE__ */ Error("nonce in id_token does not match nonce in client storage")), t) {
789
- let e = u.decode(t);
789
+ let e = d.decode(t);
790
790
  i.sub !== e.sub && r.throw(/* @__PURE__ */ Error("sub in id_token does not match current sub")), i.auth_time && i.auth_time !== e.auth_time && r.throw(/* @__PURE__ */ Error("auth_time in id_token does not match original auth_time")), i.azp && i.azp !== e.azp && r.throw(/* @__PURE__ */ Error("azp in id_token does not match original azp")), !i.azp && e.azp && r.throw(/* @__PURE__ */ Error("azp not in id_token, but present in original id_token"));
791
791
  }
792
792
  e.profile = i;
793
793
  }
794
- }, I = class e {
794
+ }, L = class e {
795
795
  constructor(e) {
796
- this.id = e.id || m.generateUUIDv4(), this.data = e.data, this.created = e.created && e.created > 0 ? e.created : _.getEpochTime(), this.request_type = e.request_type, this.url_state = e.url_state;
796
+ this.id = e.id || h.generateUUIDv4(), this.data = e.data, this.created = e.created && e.created > 0 ? e.created : v.getEpochTime(), this.request_type = e.request_type, this.url_state = e.url_state;
797
797
  }
798
798
  toStorageString() {
799
- return new l("State").create("toStorageString"), JSON.stringify({
799
+ return new u("State").create("toStorageString"), JSON.stringify({
800
800
  id: this.id,
801
801
  data: this.data,
802
802
  created: this.created,
@@ -805,10 +805,10 @@ var m = p, h = class {
805
805
  });
806
806
  }
807
807
  static fromStorageString(t) {
808
- return l.createStatic("State", "fromStorageString"), Promise.resolve(new e(JSON.parse(t)));
808
+ return u.createStatic("State", "fromStorageString"), Promise.resolve(new e(JSON.parse(t)));
809
809
  }
810
810
  static async clearStaleState(t, n) {
811
- let r = l.createStatic("State", "clearStaleState"), i = _.getEpochTime() - n, a = await t.getAllKeys();
811
+ let r = u.createStatic("State", "clearStaleState"), i = v.getEpochTime() - n, a = await t.getAllKeys();
812
812
  r.debug("got keys", a);
813
813
  for (let n = 0; n < a.length; n++) {
814
814
  let o = a[n], s = await t.get(o), c = !1;
@@ -822,12 +822,12 @@ var m = p, h = class {
822
822
  c && (r.debug("removed item for key:", o), t.remove(o));
823
823
  }
824
824
  }
825
- }, L = class e extends I {
825
+ }, R = class e extends L {
826
826
  constructor(e) {
827
827
  super(e), this.code_verifier = e.code_verifier, this.code_challenge = e.code_challenge, this.authority = e.authority, this.client_id = e.client_id, this.redirect_uri = e.redirect_uri, this.scope = e.scope, this.client_secret = e.client_secret, this.extraTokenParams = e.extraTokenParams, this.response_mode = e.response_mode, this.skipUserInfo = e.skipUserInfo, this.nonce = e.nonce;
828
828
  }
829
829
  static async create(t) {
830
- let n = t.code_verifier === !0 ? m.generateCodeVerifier() : t.code_verifier || void 0, r = n ? await m.generateCodeChallenge(n) : void 0;
830
+ let n = t.code_verifier === !0 ? h.generateCodeVerifier() : t.code_verifier || void 0, r = n ? await h.generateCodeChallenge(n) : void 0;
831
831
  return new e({
832
832
  ...t,
833
833
  code_verifier: n,
@@ -835,7 +835,7 @@ var m = p, h = class {
835
835
  });
836
836
  }
837
837
  toStorageString() {
838
- return new l("SigninState").create("toStorageString"), JSON.stringify({
838
+ return new u("SigninState").create("toStorageString"), JSON.stringify({
839
839
  id: this.id,
840
840
  data: this.data,
841
841
  created: this.created,
@@ -854,22 +854,22 @@ var m = p, h = class {
854
854
  });
855
855
  }
856
856
  static fromStorageString(t) {
857
- l.createStatic("SigninState", "fromStorageString");
857
+ u.createStatic("SigninState", "fromStorageString");
858
858
  let n = JSON.parse(t);
859
859
  return e.create(n);
860
860
  }
861
- }, R = class e {
861
+ }, z = class e {
862
862
  constructor(e) {
863
863
  this.url = e.url, this.state = e.state;
864
864
  }
865
- static async create({ url: t, authority: n, client_id: r, redirect_uri: i, response_type: a, scope: o, state_data: s, response_mode: c, request_type: l, client_secret: u, nonce: d, url_state: f, resource: p, skipUserInfo: m, extraQueryParams: h, extraTokenParams: g, disablePKCE: _, dpopJkt: v, omitScopeWhenRequesting: b, ...x }) {
865
+ static async create({ url: t, authority: n, client_id: r, redirect_uri: i, response_type: a, scope: o, state_data: s, response_mode: c, request_type: l, client_secret: u, nonce: d, url_state: f, resource: p, skipUserInfo: m, extraQueryParams: h, extraTokenParams: g, disablePKCE: _, dpopJkt: v, omitScopeWhenRequesting: y, ...x }) {
866
866
  if (!t) throw this._logger.error("create: No url passed"), Error("url");
867
867
  if (!r) throw this._logger.error("create: No client_id passed"), Error("client_id");
868
868
  if (!i) throw this._logger.error("create: No redirect_uri passed"), Error("redirect_uri");
869
869
  if (!a) throw this._logger.error("create: No response_type passed"), Error("response_type");
870
870
  if (!o) throw this._logger.error("create: No scope passed"), Error("scope");
871
871
  if (!n) throw this._logger.error("create: No authority passed"), Error("authority");
872
- let S = await L.create({
872
+ let S = await R.create({
873
873
  data: s,
874
874
  request_type: l,
875
875
  url_state: f,
@@ -884,9 +884,9 @@ var m = p, h = class {
884
884
  skipUserInfo: m,
885
885
  nonce: d
886
886
  }), C = new URL(t);
887
- C.searchParams.append("client_id", r), C.searchParams.append("redirect_uri", i), C.searchParams.append("response_type", a), b || C.searchParams.append("scope", o), d && C.searchParams.append("nonce", d), v && C.searchParams.append("dpop_jkt", v);
887
+ C.searchParams.append("client_id", r), C.searchParams.append("redirect_uri", i), C.searchParams.append("response_type", a), y || C.searchParams.append("scope", o), d && C.searchParams.append("nonce", d), v && C.searchParams.append("dpop_jkt", v);
888
888
  let w = S.id;
889
- f && (w = `${w}${y}${f}`), C.searchParams.append("state", w), S.code_challenge && (C.searchParams.append("code_challenge", S.code_challenge), C.searchParams.append("code_challenge_method", "S256")), p && (Array.isArray(p) ? p : [p]).forEach((e) => C.searchParams.append("resource", e));
889
+ f && (w = `${w}${b}${f}`), C.searchParams.append("state", w), S.code_challenge && (C.searchParams.append("code_challenge", S.code_challenge), C.searchParams.append("code_challenge_method", "S256")), p && (Array.isArray(p) ? p : [p]).forEach((e) => C.searchParams.append("resource", e));
890
890
  for (let [e, t] of Object.entries({
891
891
  response_mode: c,
892
892
  ...x,
@@ -898,36 +898,36 @@ var m = p, h = class {
898
898
  });
899
899
  }
900
900
  };
901
- R._logger = new l("SigninRequest");
902
- var z = R, te = "openid", B = class {
901
+ z._logger = new u("SigninRequest");
902
+ var B = z, V = "openid", H = class {
903
903
  constructor(e) {
904
904
  if (this.access_token = "", this.token_type = "", this.profile = {}, this.state = e.get("state"), this.session_state = e.get("session_state"), this.state) {
905
- let e = decodeURIComponent(this.state).split(y);
906
- this.state = e[0], e.length > 1 && (this.url_state = e.slice(1).join(y));
905
+ let e = decodeURIComponent(this.state).split(b);
906
+ this.state = e[0], e.length > 1 && (this.url_state = e.slice(1).join(b));
907
907
  }
908
908
  this.error = e.get("error"), this.error_description = e.get("error_description"), this.error_uri = e.get("error_uri"), this.code = e.get("code");
909
909
  }
910
910
  get expires_in() {
911
- if (this.expires_at !== void 0) return this.expires_at - _.getEpochTime();
911
+ if (this.expires_at !== void 0) return this.expires_at - v.getEpochTime();
912
912
  }
913
913
  set expires_in(e) {
914
- typeof e == "string" && (e = Number(e)), e !== void 0 && e >= 0 && (this.expires_at = Math.floor(e) + _.getEpochTime());
914
+ typeof e == "string" && (e = Number(e)), e !== void 0 && e >= 0 && (this.expires_at = Math.floor(e) + v.getEpochTime());
915
915
  }
916
916
  get isOpenId() {
917
- return this.scope?.split(" ").includes(te) || !!this.id_token;
917
+ return this.scope?.split(" ").includes(V) || !!this.id_token;
918
918
  }
919
- }, V = class {
919
+ }, te = class {
920
920
  constructor({ url: e, state_data: t, id_token_hint: n, post_logout_redirect_uri: r, extraQueryParams: i, request_type: a, client_id: o, url_state: s }) {
921
- if (this._logger = new l("SignoutRequest"), !e) throw this._logger.error("ctor: No url passed"), Error("url");
921
+ if (this._logger = new u("SignoutRequest"), !e) throw this._logger.error("ctor: No url passed"), Error("url");
922
922
  let c = new URL(e);
923
923
  if (n && c.searchParams.append("id_token_hint", n), o && c.searchParams.append("client_id", o), r && (c.searchParams.append("post_logout_redirect_uri", r), t || s)) {
924
- this.state = new I({
924
+ this.state = new L({
925
925
  data: t,
926
926
  request_type: a,
927
927
  url_state: s
928
928
  });
929
929
  let e = this.state.id;
930
- s && (e = `${e}${y}${s}`), c.searchParams.append("state", e);
930
+ s && (e = `${e}${b}${s}`), c.searchParams.append("state", e);
931
931
  }
932
932
  for (let [e, t] of Object.entries({ ...i })) t != null && c.searchParams.append(e, t.toString());
933
933
  this.url = c.href;
@@ -935,8 +935,8 @@ var z = R, te = "openid", B = class {
935
935
  }, ne = class {
936
936
  constructor(e) {
937
937
  if (this.state = e.get("state"), this.state) {
938
- let e = decodeURIComponent(this.state).split(y);
939
- this.state = e[0], e.length > 1 && (this.url_state = e.slice(1).join(y));
938
+ let e = decodeURIComponent(this.state).split(b);
939
+ this.state = e[0], e.length > 1 && (this.url_state = e.slice(1).join(b));
940
940
  }
941
941
  this.error = e.get("error"), this.error_description = e.get("error_description"), this.error_uri = e.get("error_uri");
942
942
  }
@@ -957,7 +957,7 @@ var z = R, te = "openid", B = class {
957
957
  "iat"
958
958
  ], ae = class {
959
959
  constructor(e) {
960
- this._settings = e, this._logger = new l("ClaimsService");
960
+ this._settings = e, this._logger = new u("ClaimsService");
961
961
  }
962
962
  filterProtocolClaims(e) {
963
963
  let t = { ...e };
@@ -982,20 +982,20 @@ var z = R, te = "openid", B = class {
982
982
  }
983
983
  return n;
984
984
  }
985
- }, H = class {
985
+ }, U = class {
986
986
  constructor(e, t) {
987
987
  this.keys = e, this.nonce = t;
988
988
  }
989
- }, U = class {
989
+ }, W = class {
990
990
  constructor(e, t) {
991
- this._logger = new l("OidcClient"), this.settings = e instanceof M ? e : new M(e), this.metadataService = t ?? new D(this.settings), this._claimsService = new ae(this.settings), this._validator = new F(this.settings, this.metadataService, this._claimsService), this._tokenClient = new P(this.settings, this.metadataService);
991
+ this._logger = new u("OidcClient"), this.settings = e instanceof N ? e : new N(e), this.metadataService = t ?? new O(this.settings), this._claimsService = new ae(this.settings), this._validator = new I(this.settings, this.metadataService, this._claimsService), this._tokenClient = new F(this.settings, this.metadataService);
992
992
  }
993
993
  async createSigninRequest({ state: e, request: t, request_uri: n, request_type: r, id_token_hint: i, login_hint: a, skipUserInfo: o, nonce: s, url_state: c, response_type: l = this.settings.response_type, scope: u = this.settings.scope, redirect_uri: d = this.settings.redirect_uri, prompt: f = this.settings.prompt, display: p = this.settings.display, max_age: m = this.settings.max_age, ui_locales: h = this.settings.ui_locales, acr_values: g = this.settings.acr_values, resource: _ = this.settings.resource, response_mode: v = this.settings.response_mode, extraQueryParams: y = this.settings.extraQueryParams, extraTokenParams: b = this.settings.extraTokenParams, dpopJkt: x, omitScopeWhenRequesting: S = this.settings.omitScopeWhenRequesting }) {
994
994
  let C = this._logger.create("createSigninRequest");
995
995
  if (l !== "code") throw Error("Only the Authorization Code flow (with PKCE) is supported");
996
996
  let w = await this.metadataService.getAuthorizationEndpoint();
997
997
  C.debug("Received authorization endpoint", w);
998
- let T = await z.create({
998
+ let T = await B.create({
999
999
  url: w,
1000
1000
  authority: this.settings.authority,
1001
1001
  client_id: this.settings.client_id,
@@ -1030,12 +1030,12 @@ var z = R, te = "openid", B = class {
1030
1030
  return await this.settings.stateStore.set(E.id, E.toStorageString()), T;
1031
1031
  }
1032
1032
  async readSigninResponseState(e, t = !1) {
1033
- let n = this._logger.create("readSigninResponseState"), r = new B(v.readParams(e, this.settings.response_mode));
1033
+ let n = this._logger.create("readSigninResponseState"), r = new H(y.readParams(e, this.settings.response_mode));
1034
1034
  if (!r.state) throw n.throw(/* @__PURE__ */ Error("No state in response")), null;
1035
1035
  let i = await this.settings.stateStore[t ? "remove" : "get"](r.state);
1036
1036
  if (!i) throw n.throw(/* @__PURE__ */ Error("No matching state found in storage")), null;
1037
1037
  return {
1038
- state: await L.fromStorageString(i),
1038
+ state: await R.fromStorageString(i),
1039
1039
  response: r
1040
1040
  };
1041
1041
  }
@@ -1051,7 +1051,7 @@ var z = R, te = "openid", B = class {
1051
1051
  try {
1052
1052
  await this._validator.validateSigninResponse(a, i, t);
1053
1053
  } catch (e) {
1054
- if (e instanceof T && this.settings.dpop) {
1054
+ if (e instanceof E && this.settings.dpop) {
1055
1055
  let n = await this.getDpopProof(this.settings.dpop.store, e.nonce);
1056
1056
  t.DPoP = n, await this._validator.validateSigninResponse(a, i, t);
1057
1057
  } else throw e;
@@ -1060,7 +1060,7 @@ var z = R, te = "openid", B = class {
1060
1060
  }
1061
1061
  async getDpopProof(e, t) {
1062
1062
  let n, r;
1063
- return (await e.getAllKeys()).includes(this.settings.client_id) ? (r = await e.get(this.settings.client_id), r.nonce !== t && t && (r.nonce = t, await e.set(this.settings.client_id, r))) : (n = await m.generateDPoPKeys(), r = new H(n, t), await e.set(this.settings.client_id, r)), await m.generateDPoPProof({
1063
+ return (await e.getAllKeys()).includes(this.settings.client_id) ? (r = await e.get(this.settings.client_id), r.nonce !== t && t && (r.nonce = t, await e.set(this.settings.client_id, r))) : (n = await h.generateDPoPKeys(), r = new U(n, t), await e.set(this.settings.client_id, r)), await h.generateDPoPProof({
1064
1064
  url: await this.metadataService.getTokenEndpoint(!1),
1065
1065
  httpMethod: "POST",
1066
1066
  keyPair: r.keys,
@@ -1072,7 +1072,7 @@ var z = R, te = "openid", B = class {
1072
1072
  username: e,
1073
1073
  password: t,
1074
1074
  ...r
1075
- }), a = new B(new URLSearchParams());
1075
+ }), a = new H(new URLSearchParams());
1076
1076
  return Object.assign(a, i), await this._validator.validateCredentialsResponse(a, n), a;
1077
1077
  }
1078
1078
  async useRefreshToken({ state: e, redirect_uri: t, resource: n, timeoutInSeconds: r, extraHeaders: i, extraTokenParams: a }) {
@@ -1101,7 +1101,7 @@ var z = R, te = "openid", B = class {
1101
1101
  ...a
1102
1102
  });
1103
1103
  } catch (o) {
1104
- if (o instanceof T && this.settings.dpop) i.DPoP = await this.getDpopProof(this.settings.dpop.store, o.nonce), c = await this._tokenClient.exchangeRefreshToken({
1104
+ if (o instanceof E && this.settings.dpop) i.DPoP = await this.getDpopProof(this.settings.dpop.store, o.nonce), c = await this._tokenClient.exchangeRefreshToken({
1105
1105
  refresh_token: e.refresh_token,
1106
1106
  scope: s,
1107
1107
  redirect_uri: t,
@@ -1112,7 +1112,7 @@ var z = R, te = "openid", B = class {
1112
1112
  });
1113
1113
  else throw o;
1114
1114
  }
1115
- let l = new B(new URLSearchParams());
1115
+ let l = new H(new URLSearchParams());
1116
1116
  return Object.assign(l, c), o.debug("validating response", l), await this._validator.validateRefreshResponse(l, {
1117
1117
  ...e,
1118
1118
  scope: s
@@ -1122,7 +1122,7 @@ var z = R, te = "openid", B = class {
1122
1122
  let s = this._logger.create("createSignoutRequest"), c = await this.metadataService.getEndSessionEndpoint();
1123
1123
  if (!c) throw s.throw(/* @__PURE__ */ Error("No end session endpoint")), null;
1124
1124
  s.debug("Received end session endpoint", c), !n && a && !t && (n = this.settings.client_id);
1125
- let l = new V({
1125
+ let l = new te({
1126
1126
  url: c,
1127
1127
  id_token_hint: t,
1128
1128
  client_id: n,
@@ -1137,9 +1137,9 @@ var z = R, te = "openid", B = class {
1137
1137
  return u && (s.debug("Signout request has state to persist"), await this.settings.stateStore.set(u.id, u.toStorageString())), l;
1138
1138
  }
1139
1139
  async readSignoutResponseState(e, t = !1) {
1140
- let n = this._logger.create("readSignoutResponseState"), r = new ne(v.readParams(e, this.settings.response_mode));
1140
+ let n = this._logger.create("readSignoutResponseState"), r = new ne(y.readParams(e, this.settings.response_mode));
1141
1141
  if (!r.state) {
1142
- if (n.debug("No state in response"), r.error) throw n.warn("Response was error:", r.error), new b(r);
1142
+ if (n.debug("No state in response"), r.error) throw n.warn("Response was error:", r.error), new x(r);
1143
1143
  return {
1144
1144
  state: void 0,
1145
1145
  response: r
@@ -1148,7 +1148,7 @@ var z = R, te = "openid", B = class {
1148
1148
  let i = await this.settings.stateStore[t ? "remove" : "get"](r.state);
1149
1149
  if (!i) throw n.throw(/* @__PURE__ */ Error("No matching state found in storage")), null;
1150
1150
  return {
1151
- state: await I.fromStorageString(i),
1151
+ state: await L.fromStorageString(i),
1152
1152
  response: r
1153
1153
  };
1154
1154
  }
@@ -1157,7 +1157,7 @@ var z = R, te = "openid", B = class {
1157
1157
  return n ? (t.debug("Received state from storage; validating response"), this._validator.validateSignoutResponse(r, n)) : t.debug("No state from storage; skipping response validation"), r;
1158
1158
  }
1159
1159
  clearStaleState() {
1160
- return this._logger.create("clearStaleState"), I.clearStaleState(this.settings.stateStore, this.settings.staleStateAgeInSeconds);
1160
+ return this._logger.create("clearStaleState"), L.clearStaleState(this.settings.stateStore, this.settings.staleStateAgeInSeconds);
1161
1161
  }
1162
1162
  async revokeToken(e, t) {
1163
1163
  return this._logger.create("revokeToken"), await this._tokenClient.revoke({
@@ -1165,9 +1165,9 @@ var z = R, te = "openid", B = class {
1165
1165
  token_type_hint: t
1166
1166
  });
1167
1167
  }
1168
- }, W = class {
1168
+ }, G = class {
1169
1169
  constructor(e) {
1170
- this._userManager = e, this._logger = new l("SessionMonitor"), this._start = async (e) => {
1170
+ this._userManager = e, this._logger = new u("SessionMonitor"), this._start = async (e) => {
1171
1171
  let t = e.session_state;
1172
1172
  if (!t) return;
1173
1173
  let n = this._logger.create("_start");
@@ -1176,7 +1176,7 @@ var z = R, te = "openid", B = class {
1176
1176
  let e = await this._userManager.metadataService.getCheckSessionIframe();
1177
1177
  if (e) {
1178
1178
  n.debug("initializing check session iframe");
1179
- let r = this._userManager.settings.client_id, i = this._userManager.settings.checkSessionIntervalInSeconds, a = this._userManager.settings.stopCheckSessionOnError, o = new C(this._callback, r, e, i, a);
1179
+ let r = this._userManager.settings.client_id, i = this._userManager.settings.checkSessionIntervalInSeconds, a = this._userManager.settings.stopCheckSessionOnError, o = new w(this._callback, r, e, i, a);
1180
1180
  await o.load(), this._checkSessionIFrame = o, o.start(t);
1181
1181
  } else n.warn("no check session iframe found in the metadata");
1182
1182
  } catch (e) {
@@ -1228,15 +1228,15 @@ var z = R, te = "openid", B = class {
1228
1228
  }
1229
1229
  }
1230
1230
  }
1231
- }, G = class e {
1231
+ }, K = class e {
1232
1232
  constructor(e) {
1233
1233
  this.id_token = e.id_token, this.session_state = e.session_state ?? null, this.access_token = e.access_token, this.refresh_token = e.refresh_token, this.token_type = e.token_type, this.scope = e.scope, this.profile = e.profile, this.expires_at = e.expires_at, this.state = e.userState, this.url_state = e.url_state;
1234
1234
  }
1235
1235
  get expires_in() {
1236
- if (this.expires_at !== void 0) return this.expires_at - _.getEpochTime();
1236
+ if (this.expires_at !== void 0) return this.expires_at - v.getEpochTime();
1237
1237
  }
1238
1238
  set expires_in(e) {
1239
- e !== void 0 && (this.expires_at = Math.floor(e) + _.getEpochTime());
1239
+ e !== void 0 && (this.expires_at = Math.floor(e) + v.getEpochTime());
1240
1240
  }
1241
1241
  get expired() {
1242
1242
  let e = this.expires_in;
@@ -1246,7 +1246,7 @@ var z = R, te = "openid", B = class {
1246
1246
  return this.scope?.split(" ") ?? [];
1247
1247
  }
1248
1248
  toStorageString() {
1249
- return new l("User").create("toStorageString"), JSON.stringify({
1249
+ return new u("User").create("toStorageString"), JSON.stringify({
1250
1250
  id_token: this.id_token,
1251
1251
  session_state: this.session_state,
1252
1252
  access_token: this.access_token,
@@ -1258,11 +1258,11 @@ var z = R, te = "openid", B = class {
1258
1258
  });
1259
1259
  }
1260
1260
  static fromStorageString(t) {
1261
- return l.createStatic("User", "fromStorageString"), new e(JSON.parse(t));
1261
+ return u.createStatic("User", "fromStorageString"), new e(JSON.parse(t));
1262
1262
  }
1263
- }, K = "oidc-client", q = class {
1263
+ }, q = "oidc-client", J = class {
1264
1264
  constructor() {
1265
- this._abort = new h("Window navigation aborted"), this._disposeHandlers = /* @__PURE__ */ new Set(), this._window = null;
1265
+ this._abort = new g("Window navigation aborted"), this._disposeHandlers = /* @__PURE__ */ new Set(), this._window = null;
1266
1266
  }
1267
1267
  async navigate(e) {
1268
1268
  let t = this._logger.create("navigate");
@@ -1271,9 +1271,9 @@ var z = R, te = "openid", B = class {
1271
1271
  let { url: n, keepOpen: r } = await new Promise((n, r) => {
1272
1272
  let i = (i) => {
1273
1273
  let a = i.data, o = e.scriptOrigin ?? window.location.origin;
1274
- if (i.origin === o && a?.source === K) {
1274
+ if (i.origin === o && a?.source === q) {
1275
1275
  try {
1276
- let n = v.readParams(a.url, e.response_mode).get("state");
1276
+ let n = y.readParams(a.url, e.response_mode).get("state");
1277
1277
  if (n || t.warn("no state found in response url"), i.source !== this._window && n !== e.state) return;
1278
1278
  } catch {
1279
1279
  this._dispose(), r(/* @__PURE__ */ Error("Invalid response from window"));
@@ -1296,10 +1296,10 @@ var z = R, te = "openid", B = class {
1296
1296
  }
1297
1297
  static _notifyParent(e, t, n = !1, r = window.location.origin) {
1298
1298
  let i = {
1299
- source: K,
1299
+ source: q,
1300
1300
  url: t,
1301
1301
  keepOpen: n
1302
- }, a = new l("_notifyParent");
1302
+ }, a = new u("_notifyParent");
1303
1303
  if (e) a.debug("With parent. Using parent.postMessage."), e.postMessage(i, r);
1304
1304
  else {
1305
1305
  a.debug("No parent. Using BroadcastChannel.");
@@ -1309,23 +1309,23 @@ var z = R, te = "openid", B = class {
1309
1309
  n.postMessage(i), n.close();
1310
1310
  }
1311
1311
  }
1312
- }, J = {
1312
+ }, Y = {
1313
1313
  location: !1,
1314
1314
  toolbar: !1,
1315
1315
  height: 640,
1316
1316
  closePopupWindowAfterInSeconds: -1
1317
- }, Y = "_blank", oe = 60, se = 2, X = 10, ce = class extends M {
1317
+ }, X = "_blank", oe = 60, se = 2, Z = 10, ce = class extends N {
1318
1318
  constructor(e) {
1319
- let { popup_redirect_uri: t = e.redirect_uri, popup_post_logout_redirect_uri: n = e.post_logout_redirect_uri, popupWindowFeatures: r = J, popupWindowTarget: i = Y, redirectMethod: a = "assign", redirectTarget: o = "self", iframeNotifyParentOrigin: s = e.iframeNotifyParentOrigin, iframeScriptOrigin: c = e.iframeScriptOrigin, requestTimeoutInSeconds: l, silent_redirect_uri: u = e.redirect_uri, silentRequestTimeoutInSeconds: d, automaticSilentRenew: f = !0, validateSubOnSilentRenew: p = !0, includeIdTokenInSilentRenew: m = !1, monitorSession: h = !1, monitorAnonymousSession: g = !1, checkSessionIntervalInSeconds: _ = se, query_status_response_type: v = "code", stopCheckSessionOnError: y = !0, revokeTokenTypes: b = ["access_token", "refresh_token"], revokeTokensOnSignout: x = !1, includeIdTokenInSilentSignout: S = !1, accessTokenExpiringNotificationTimeInSeconds: C = oe, maxSilentRenewTimeoutRetries: T, userStore: E } = e;
1320
- if (super(e), this.popup_redirect_uri = t, this.popup_post_logout_redirect_uri = n, this.popupWindowFeatures = r, this.popupWindowTarget = i, this.redirectMethod = a, this.redirectTarget = o, this.iframeNotifyParentOrigin = s, this.iframeScriptOrigin = c, this.silent_redirect_uri = u, this.silentRequestTimeoutInSeconds = d || l || X, this.automaticSilentRenew = f, this.validateSubOnSilentRenew = p, this.includeIdTokenInSilentRenew = m, this.monitorSession = h, this.monitorAnonymousSession = g, this.checkSessionIntervalInSeconds = _, this.stopCheckSessionOnError = y, this.query_status_response_type = v, this.revokeTokenTypes = b, this.revokeTokensOnSignout = x, this.includeIdTokenInSilentSignout = S, this.accessTokenExpiringNotificationTimeInSeconds = C, this.maxSilentRenewTimeoutRetries = T, E) this.userStore = E;
1319
+ let { popup_redirect_uri: t = e.redirect_uri, popup_post_logout_redirect_uri: n = e.post_logout_redirect_uri, popupWindowFeatures: r = Y, popupWindowTarget: i = X, redirectMethod: a = "assign", redirectTarget: o = "self", iframeNotifyParentOrigin: s = e.iframeNotifyParentOrigin, iframeScriptOrigin: c = e.iframeScriptOrigin, requestTimeoutInSeconds: l, silent_redirect_uri: u = e.redirect_uri, silentRequestTimeoutInSeconds: d, automaticSilentRenew: f = !0, validateSubOnSilentRenew: p = !0, includeIdTokenInSilentRenew: m = !1, monitorSession: h = !1, monitorAnonymousSession: g = !1, checkSessionIntervalInSeconds: _ = se, query_status_response_type: v = "code", stopCheckSessionOnError: y = !0, revokeTokenTypes: b = ["access_token", "refresh_token"], revokeTokensOnSignout: x = !1, includeIdTokenInSilentSignout: S = !1, accessTokenExpiringNotificationTimeInSeconds: C = oe, maxSilentRenewTimeoutRetries: w, userStore: E } = e;
1320
+ if (super(e), this.popup_redirect_uri = t, this.popup_post_logout_redirect_uri = n, this.popupWindowFeatures = r, this.popupWindowTarget = i, this.redirectMethod = a, this.redirectTarget = o, this.iframeNotifyParentOrigin = s, this.iframeScriptOrigin = c, this.silent_redirect_uri = u, this.silentRequestTimeoutInSeconds = d || l || Z, this.automaticSilentRenew = f, this.validateSubOnSilentRenew = p, this.includeIdTokenInSilentRenew = m, this.monitorSession = h, this.monitorAnonymousSession = g, this.checkSessionIntervalInSeconds = _, this.stopCheckSessionOnError = y, this.query_status_response_type = v, this.revokeTokenTypes = b, this.revokeTokensOnSignout = x, this.includeIdTokenInSilentSignout = S, this.accessTokenExpiringNotificationTimeInSeconds = C, this.maxSilentRenewTimeoutRetries = w, E) this.userStore = E;
1321
1321
  else {
1322
- let e = typeof window < "u" ? window.sessionStorage : new w();
1323
- this.userStore = new O({ store: e });
1322
+ let e = typeof window < "u" ? window.sessionStorage : new T();
1323
+ this.userStore = new k({ store: e });
1324
1324
  }
1325
1325
  }
1326
- }, Z = class e extends q {
1327
- constructor({ silentRequestTimeoutInSeconds: t = X }) {
1328
- super(), this._logger = new l("IFrameWindow"), this._timeoutInSeconds = t, this._frame = e.createHiddenIframe(), this._window = this._frame.contentWindow;
1326
+ }, Q = class e extends J {
1327
+ constructor({ silentRequestTimeoutInSeconds: t = Z }) {
1328
+ super(), this._logger = new u("IFrameWindow"), this._timeoutInSeconds = t, this._frame = e.createHiddenIframe(), this._window = this._frame.contentWindow;
1329
1329
  }
1330
1330
  static createHiddenIframe() {
1331
1331
  let e = window.document.createElement("iframe");
@@ -1333,7 +1333,7 @@ var z = R, te = "openid", B = class {
1333
1333
  }
1334
1334
  async navigate(e) {
1335
1335
  this._logger.debug("navigate: Using timeout of:", this._timeoutInSeconds);
1336
- let t = setTimeout(() => void this._abort.raise(new x("IFrame timed out without a response")), this._timeoutInSeconds * 1e3);
1336
+ let t = setTimeout(() => void this._abort.raise(new S("IFrame timed out without a response")), this._timeoutInSeconds * 1e3);
1337
1337
  return this._disposeHandlers.add(() => clearTimeout(t)), await super.navigate(e);
1338
1338
  }
1339
1339
  close() {
@@ -1349,22 +1349,22 @@ var z = R, te = "openid", B = class {
1349
1349
  }
1350
1350
  }, le = class {
1351
1351
  constructor(e) {
1352
- this._settings = e, this._logger = new l("IFrameNavigator");
1352
+ this._settings = e, this._logger = new u("IFrameNavigator");
1353
1353
  }
1354
1354
  async prepare({ silentRequestTimeoutInSeconds: e = this._settings.silentRequestTimeoutInSeconds }) {
1355
- return new Z({ silentRequestTimeoutInSeconds: e });
1355
+ return new Q({ silentRequestTimeoutInSeconds: e });
1356
1356
  }
1357
1357
  async callback(e) {
1358
- this._logger.create("callback"), Z.notifyParent(e, this._settings.iframeNotifyParentOrigin);
1358
+ this._logger.create("callback"), Q.notifyParent(e, this._settings.iframeNotifyParentOrigin);
1359
1359
  }
1360
- }, ue = 500, de = 1e3, Q = class extends q {
1361
- constructor({ popupWindowTarget: e = Y, popupWindowFeatures: t = {}, popupSignal: n, popupAbortOnClose: r }) {
1362
- super(), this._logger = new l("PopupWindow");
1363
- let i = g.center({
1364
- ...J,
1360
+ }, ue = 500, de = 1e3, $ = class extends J {
1361
+ constructor({ popupWindowTarget: e = X, popupWindowFeatures: t = {}, popupSignal: n, popupAbortOnClose: r }) {
1362
+ super(), this._logger = new u("PopupWindow");
1363
+ let i = _.center({
1364
+ ...Y,
1365
1365
  ...t
1366
1366
  });
1367
- this._window = window.open(void 0, e, g.serialize(i)), this.abortOnClose = !!r, n && n.addEventListener("abort", () => {
1367
+ this._window = window.open(void 0, e, _.serialize(i)), this.abortOnClose = !!r, n && n.addEventListener("abort", () => {
1368
1368
  this._abort.raise(Error(n.reason ?? "Popup aborted"));
1369
1369
  }), t.closePopupWindowAfterInSeconds && t.closePopupWindowAfterInSeconds > 0 && setTimeout(() => {
1370
1370
  !this._window || typeof this._window.closed != "boolean" || this._window.closed ? this._abort.raise(/* @__PURE__ */ Error("Popup blocked by user")) : this.close();
@@ -1384,12 +1384,12 @@ var z = R, te = "openid", B = class {
1384
1384
  static notifyOpener(e, t) {
1385
1385
  super._notifyParent(window.opener, e, t), !t && !window.opener && window.close();
1386
1386
  }
1387
- }, $ = class {
1387
+ }, fe = class {
1388
1388
  constructor(e) {
1389
- this._settings = e, this._logger = new l("PopupNavigator");
1389
+ this._settings = e, this._logger = new u("PopupNavigator");
1390
1390
  }
1391
1391
  async prepare({ popupWindowFeatures: e = this._settings.popupWindowFeatures, popupWindowTarget: t = this._settings.popupWindowTarget, popupSignal: n, popupAbortOnClose: r }) {
1392
- return new Q({
1392
+ return new $({
1393
1393
  popupWindowFeatures: e,
1394
1394
  popupWindowTarget: t,
1395
1395
  popupSignal: n,
@@ -1397,11 +1397,11 @@ var z = R, te = "openid", B = class {
1397
1397
  });
1398
1398
  }
1399
1399
  async callback(e, { keepOpen: t = !1 }) {
1400
- this._logger.create("callback"), Q.notifyOpener(e, t);
1400
+ this._logger.create("callback"), $.notifyOpener(e, t);
1401
1401
  }
1402
- }, fe = class {
1402
+ }, pe = class {
1403
1403
  constructor(e) {
1404
- this._settings = e, this._logger = new l("RedirectNavigator");
1404
+ this._settings = e, this._logger = new u("RedirectNavigator");
1405
1405
  }
1406
1406
  async prepare({ redirectMethod: e = this._settings.redirectMethod, redirectTarget: t = this._settings.redirectTarget }) {
1407
1407
  this._logger.create("prepare");
@@ -1418,9 +1418,9 @@ var z = R, te = "openid", B = class {
1418
1418
  };
1419
1419
  }
1420
1420
  async callback() {}
1421
- }, pe = class extends S {
1421
+ }, me = class extends C {
1422
1422
  constructor(e) {
1423
- super({ expiringNotificationTimeInSeconds: e.accessTokenExpiringNotificationTimeInSeconds }), this._logger = new l("UserManagerEvents"), this._userLoaded = new h("User loaded"), this._userUnloaded = new h("User unloaded"), this._silentRenewError = new h("Silent renew error"), this._userSignedIn = new h("User signed in"), this._userSignedOut = new h("User signed out"), this._userSessionChanged = new h("User session changed");
1423
+ super({ expiringNotificationTimeInSeconds: e.accessTokenExpiringNotificationTimeInSeconds }), this._logger = new u("UserManagerEvents"), this._userLoaded = new g("User loaded"), this._userUnloaded = new g("User unloaded"), this._silentRenewError = new g("Silent renew error"), this._userSignedIn = new g("User signed in"), this._userSignedOut = new g("User signed out"), this._userSessionChanged = new g("User session changed");
1424
1424
  }
1425
1425
  async load(e, t = !0) {
1426
1426
  await super.load(e), t && await this._userLoaded.raise(e);
@@ -1476,14 +1476,14 @@ var z = R, te = "openid", B = class {
1476
1476
  async _raiseUserSessionChanged() {
1477
1477
  await this._userSessionChanged.raise();
1478
1478
  }
1479
- }, me = class {
1479
+ }, he = class {
1480
1480
  constructor(e) {
1481
- this._userManager = e, this._logger = new l("SilentRenewService"), this._isStarted = !1, this._retryTimer = new _("Retry Silent Renew"), this._timeoutRetryCount = 0, this._tokenExpiring = async () => {
1481
+ this._userManager = e, this._logger = new u("SilentRenewService"), this._isStarted = !1, this._retryTimer = new v("Retry Silent Renew"), this._timeoutRetryCount = 0, this._tokenExpiring = async () => {
1482
1482
  let e = this._logger.create("_tokenExpiring");
1483
1483
  try {
1484
1484
  await this._userManager.signinSilent(), this._timeoutRetryCount = 0, e.debug("silent token renewal successful");
1485
1485
  } catch (t) {
1486
- if (t instanceof x) {
1486
+ if (t instanceof S) {
1487
1487
  this._timeoutRetryCount++;
1488
1488
  let n = this._userManager.settings.maxSilentRenewTimeoutRetries;
1489
1489
  if (n !== void 0 && this._timeoutRetryCount > n) {
@@ -1511,13 +1511,13 @@ var z = R, te = "openid", B = class {
1511
1511
  stop() {
1512
1512
  this._isStarted &&= (this._retryTimer.cancel(), this._retryTimer.removeHandler(this._tokenExpiring), this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring), !1);
1513
1513
  }
1514
- }, he = class {
1514
+ }, ge = class {
1515
1515
  constructor(e) {
1516
1516
  this.refresh_token = e.refresh_token, this.id_token = e.id_token, this.session_state = e.session_state, this.scope = e.scope, this.profile = e.profile, this.data = e.state;
1517
1517
  }
1518
- }, ge = class {
1518
+ }, _e = class {
1519
1519
  constructor(e, t, n, r) {
1520
- this._logger = new l("UserManager"), this.settings = new ce(e), this._client = new U(e), this._redirectNavigator = t ?? new fe(this.settings), this._popupNavigator = n ?? new $(this.settings), this._iframeNavigator = r ?? new le(this.settings), this._events = new pe(this.settings), this._silentRenewService = new me(this), this.settings.automaticSilentRenew && this.startSilentRenew(), this._sessionMonitor = null, this.settings.monitorSession && (this._sessionMonitor = new W(this));
1520
+ this._logger = new u("UserManager"), this.settings = new ce(e), this._client = new W(e), this._redirectNavigator = t ?? new pe(this.settings), this._popupNavigator = n ?? new fe(this.settings), this._iframeNavigator = r ?? new le(this.settings), this._events = new me(this.settings), this._silentRenewService = new he(this), this.settings.automaticSilentRenew && this.startSilentRenew(), this._sessionMonitor = null, this.settings.monitorSession && (this._sessionMonitor = new G(this));
1521
1521
  }
1522
1522
  get events() {
1523
1523
  return this._events;
@@ -1586,7 +1586,7 @@ var z = R, te = "openid", B = class {
1586
1586
  let t = this._logger.create("signinSilent"), { silentRequestTimeoutInSeconds: n, ...r } = e, i = await this._loadUser();
1587
1587
  if (!e.forceIframeAuth && i?.refresh_token) {
1588
1588
  t.debug("using refresh token");
1589
- let e = new he(i);
1589
+ let e = new ge(i);
1590
1590
  return await this._useRefreshToken({
1591
1591
  state: e,
1592
1592
  redirect_uri: r.redirect_uri,
@@ -1615,7 +1615,7 @@ var z = R, te = "openid", B = class {
1615
1615
  let t = await this._client.useRefreshToken({
1616
1616
  timeoutInSeconds: this.settings.silentRequestTimeoutInSeconds,
1617
1617
  ...e
1618
- }), n = new G({
1618
+ }), n = new K({
1619
1619
  ...e.state,
1620
1620
  ...t
1621
1621
  });
@@ -1671,7 +1671,7 @@ var z = R, te = "openid", B = class {
1671
1671
  sub: e.profile.sub
1672
1672
  }) : (t.info("success, user not authenticated"), null);
1673
1673
  } catch (e) {
1674
- if (this.settings.monitorAnonymousSession && e instanceof b) switch (e.error) {
1674
+ if (this.settings.monitorAnonymousSession && e instanceof x) switch (e.error) {
1675
1675
  case "login_required":
1676
1676
  case "consent_required":
1677
1677
  case "interaction_required":
@@ -1703,9 +1703,9 @@ var z = R, te = "openid", B = class {
1703
1703
  return n.debug("got signin response"), await this._buildUser(r, t);
1704
1704
  }
1705
1705
  async _buildUser(e, t) {
1706
- let n = this._logger.create("_buildUser"), r = new G(e);
1706
+ let n = this._logger.create("_buildUser"), r = new K(e);
1707
1707
  if (t) {
1708
- if (t !== r.profile.sub) throw n.debug("current user does not match user returned from signin. sub from signin:", r.profile.sub), new b({
1708
+ if (t !== r.profile.sub) throw n.debug("current user does not match user returned from signin. sub from signin:", r.profile.sub), new x({
1709
1709
  ...e,
1710
1710
  error: "login_required"
1711
1711
  });
@@ -1805,7 +1805,7 @@ var z = R, te = "openid", B = class {
1805
1805
  }
1806
1806
  async _loadUser() {
1807
1807
  let e = this._logger.create("_loadUser"), t = await this.settings.userStore.get(this._userStoreKey);
1808
- return t ? (e.debug("user storageString loaded"), G.fromStorageString(t)) : (e.debug("no user storageString"), null);
1808
+ return t ? (e.debug("user storageString loaded"), K.fromStorageString(t)) : (e.debug("no user storageString"), null);
1809
1809
  }
1810
1810
  async storeUser(e) {
1811
1811
  let t = this._logger.create("storeUser");
@@ -1820,7 +1820,7 @@ var z = R, te = "openid", B = class {
1820
1820
  }
1821
1821
  async dpopProof(e, t, n, r) {
1822
1822
  let i = await (this.settings.dpop?.store)?.get(this.settings.client_id);
1823
- if (i) return await m.generateDPoPProof({
1823
+ if (i) return await h.generateDPoPProof({
1824
1824
  url: e,
1825
1825
  accessToken: t?.access_token,
1826
1826
  httpMethod: n,
@@ -1830,33 +1830,32 @@ var z = R, te = "openid", B = class {
1830
1830
  }
1831
1831
  async generateDPoPJkt(e) {
1832
1832
  let t = await e.store.get(this.settings.client_id);
1833
- return t || (t = new H(await m.generateDPoPKeys()), await e.store.set(this.settings.client_id, t)), await m.generateDPoPJkt(t.keys);
1833
+ return t || (t = new U(await h.generateDPoPKeys()), await e.store.set(this.settings.client_id, t)), await h.generateDPoPJkt(t.keys);
1834
1834
  }
1835
- }, _e = class {
1835
+ }, ve = class {
1836
1836
  static userManager;
1837
- static getSettings(t) {
1838
- let n = new URL(e.getInstance().window.location.href);
1839
- n.search = "", n.pathname = "/post-login";
1840
- let r = n.toString();
1841
- n.pathname = "/post-logout";
1842
- let i = n.toString();
1837
+ static getSettings(n) {
1838
+ let r = new URL(e.resolve(t).window.location.href);
1839
+ r.search = "", r.pathname = "/post-login";
1840
+ let i = r.toString();
1841
+ r.pathname = "/post-logout";
1842
+ let a = r.toString();
1843
1843
  return {
1844
- authority: t.issuer,
1844
+ authority: n.issuer,
1845
1845
  automaticSilentRenew: !0,
1846
- client_id: t.client_id,
1847
- client_secret: t.client_secret,
1848
- metadataUrl: t.discovery_url,
1849
- post_logout_redirect_uri: i,
1850
- redirect_uri: r,
1846
+ client_id: n.client_id,
1847
+ client_secret: n.client_secret,
1848
+ metadataUrl: n.discovery_url,
1849
+ post_logout_redirect_uri: a,
1850
+ redirect_uri: i,
1851
1851
  refreshTokenAllowedScope: "",
1852
1852
  response_type: "code",
1853
- scope: t.scope,
1854
- userStore: new O({ store: sessionStorage }),
1853
+ scope: n.scope,
1854
+ userStore: new k({ store: sessionStorage }),
1855
1855
  validateSubOnSilentRenew: !0
1856
1856
  };
1857
1857
  }
1858
1858
  };
1859
- //#endregion
1860
- export { ge as n, _e as t };
1859
+ export { _e as n, ve as t };
1861
1860
 
1862
1861
  //# sourceMappingURL=UserManagerUtil.js.map