@azure/msal-browser 3.1.0 → 3.3.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 (282) hide show
  1. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  2. package/dist/app/IPublicClientApplication.mjs +20 -19
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  4. package/dist/app/PublicClientApplication.d.ts +14 -6
  5. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  6. package/dist/app/PublicClientApplication.mjs +18 -8
  7. package/dist/app/PublicClientApplication.mjs.map +1 -1
  8. package/dist/app/PublicClientNext.d.ts +274 -0
  9. package/dist/app/PublicClientNext.d.ts.map +1 -0
  10. package/dist/app/PublicClientNext.mjs +362 -0
  11. package/dist/app/PublicClientNext.mjs.map +1 -0
  12. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +3 -4
  13. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
  14. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +13 -13
  15. package/dist/broker/nativeBroker/NativeMessageHandler.mjs.map +1 -1
  16. package/dist/broker/nativeBroker/NativeStatusCodes.d.ts +8 -0
  17. package/dist/broker/nativeBroker/NativeStatusCodes.d.ts.map +1 -0
  18. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +16 -0
  19. package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -0
  20. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  21. package/dist/cache/BrowserCacheManager.d.ts +4 -15
  22. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  23. package/dist/cache/BrowserCacheManager.mjs +13 -69
  24. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  25. package/dist/cache/BrowserStorage.d.ts.map +1 -1
  26. package/dist/cache/BrowserStorage.mjs +7 -9
  27. package/dist/cache/BrowserStorage.mjs.map +1 -1
  28. package/dist/cache/CryptoKeyStore.mjs +1 -1
  29. package/dist/cache/DatabaseStorage.mjs +1 -1
  30. package/dist/cache/MemoryStorage.mjs +1 -1
  31. package/dist/cache/TokenCache.mjs +1 -1
  32. package/dist/config/Configuration.d.ts +4 -0
  33. package/dist/config/Configuration.d.ts.map +1 -1
  34. package/dist/config/Configuration.mjs +8 -7
  35. package/dist/config/Configuration.mjs.map +1 -1
  36. package/dist/controllers/ControllerFactory.d.ts +2 -1
  37. package/dist/controllers/ControllerFactory.d.ts.map +1 -1
  38. package/dist/controllers/ControllerFactory.mjs +26 -19
  39. package/dist/controllers/ControllerFactory.mjs.map +1 -1
  40. package/dist/controllers/IController.d.ts +3 -2
  41. package/dist/controllers/IController.d.ts.map +1 -1
  42. package/dist/controllers/NestedAppAuthController.d.ts +96 -0
  43. package/dist/controllers/NestedAppAuthController.d.ts.map +1 -0
  44. package/dist/controllers/NestedAppAuthController.mjs +345 -0
  45. package/dist/controllers/NestedAppAuthController.mjs.map +1 -0
  46. package/dist/controllers/StandardController.d.ts +11 -6
  47. package/dist/controllers/StandardController.d.ts.map +1 -1
  48. package/dist/controllers/StandardController.mjs +67 -45
  49. package/dist/controllers/StandardController.mjs.map +1 -1
  50. package/dist/controllers/UnknownOperatingContextController.d.ts +88 -0
  51. package/dist/controllers/UnknownOperatingContextController.d.ts.map +1 -0
  52. package/dist/controllers/UnknownOperatingContextController.mjs +275 -0
  53. package/dist/controllers/UnknownOperatingContextController.mjs.map +1 -0
  54. package/dist/crypto/BrowserCrypto.d.ts +44 -49
  55. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  56. package/dist/crypto/BrowserCrypto.mjs +77 -77
  57. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  58. package/dist/crypto/CryptoOps.d.ts +1 -7
  59. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  60. package/dist/crypto/CryptoOps.mjs +18 -23
  61. package/dist/crypto/CryptoOps.mjs.map +1 -1
  62. package/dist/crypto/PkceGenerator.d.ts +6 -21
  63. package/dist/crypto/PkceGenerator.d.ts.map +1 -1
  64. package/dist/crypto/PkceGenerator.mjs +45 -46
  65. package/dist/crypto/PkceGenerator.mjs.map +1 -1
  66. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  67. package/dist/encode/Base64Decode.d.ts.map +1 -1
  68. package/dist/encode/Base64Decode.mjs +18 -2
  69. package/dist/encode/Base64Decode.mjs.map +1 -1
  70. package/dist/encode/Base64Encode.mjs +1 -1
  71. package/dist/error/BrowserAuthError.d.ts +10 -1
  72. package/dist/error/BrowserAuthError.d.ts.map +1 -1
  73. package/dist/error/BrowserAuthError.mjs +12 -3
  74. package/dist/error/BrowserAuthError.mjs.map +1 -1
  75. package/dist/error/BrowserAuthErrorCodes.d.ts +1 -0
  76. package/dist/error/BrowserAuthErrorCodes.d.ts.map +1 -1
  77. package/dist/error/BrowserAuthErrorCodes.mjs +3 -2
  78. package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
  79. package/dist/error/BrowserConfigurationAuthError.d.ts +9 -46
  80. package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
  81. package/dist/error/BrowserConfigurationAuthError.mjs +20 -73
  82. package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
  83. package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts +4 -0
  84. package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts.map +1 -0
  85. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +12 -0
  86. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs.map +1 -0
  87. package/dist/error/NativeAuthError.d.ts +17 -45
  88. package/dist/error/NativeAuthError.d.ts.map +1 -1
  89. package/dist/error/NativeAuthError.mjs +47 -78
  90. package/dist/error/NativeAuthError.mjs.map +1 -1
  91. package/dist/error/NativeAuthErrorCodes.d.ts +3 -0
  92. package/dist/error/NativeAuthErrorCodes.d.ts.map +1 -0
  93. package/dist/error/NativeAuthErrorCodes.mjs +11 -0
  94. package/dist/error/NativeAuthErrorCodes.mjs.map +1 -0
  95. package/dist/error/NestedAppAuthError.d.ts +15 -0
  96. package/dist/error/NestedAppAuthError.d.ts.map +1 -0
  97. package/dist/error/NestedAppAuthError.mjs +30 -0
  98. package/dist/error/NestedAppAuthError.mjs.map +1 -0
  99. package/dist/event/EventHandler.d.ts.map +1 -1
  100. package/dist/event/EventHandler.mjs +3 -2
  101. package/dist/event/EventHandler.mjs.map +1 -1
  102. package/dist/event/EventMessage.mjs +1 -1
  103. package/dist/event/EventType.mjs +1 -1
  104. package/dist/index.d.ts +5 -7
  105. package/dist/index.d.ts.map +1 -1
  106. package/dist/index.mjs +7 -3
  107. package/dist/index.mjs.map +1 -1
  108. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  109. package/dist/interaction_client/BaseInteractionClient.mjs +10 -11
  110. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  111. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  112. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  113. package/dist/interaction_client/NativeInteractionClient.mjs +26 -13
  114. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
  115. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  116. package/dist/interaction_client/PopupClient.mjs +5 -4
  117. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  118. package/dist/interaction_client/RedirectClient.mjs +7 -7
  119. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
  120. package/dist/interaction_client/SilentAuthCodeClient.mjs +7 -10
  121. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  122. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
  123. package/dist/interaction_client/SilentCacheClient.mjs +11 -18
  124. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
  125. package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
  126. package/dist/interaction_client/SilentIframeClient.mjs +27 -13
  127. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  128. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
  129. package/dist/interaction_client/SilentRefreshClient.mjs +8 -18
  130. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  131. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  132. package/dist/interaction_client/StandardInteractionClient.mjs +16 -37
  133. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  134. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  135. package/dist/interaction_handler/InteractionHandler.mjs +6 -9
  136. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
  137. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  138. package/dist/interaction_handler/RedirectHandler.mjs +3 -3
  139. package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
  140. package/dist/interaction_handler/SilentHandler.d.ts +13 -47
  141. package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
  142. package/dist/interaction_handler/SilentHandler.mjs +120 -156
  143. package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
  144. package/dist/naa/AccountInfo.d.ts +13 -0
  145. package/dist/naa/AccountInfo.d.ts.map +1 -0
  146. package/dist/naa/AccountRequests.d.ts +10 -0
  147. package/dist/naa/AccountRequests.d.ts.map +1 -0
  148. package/dist/naa/AuthBridge.d.ts +6 -0
  149. package/dist/naa/AuthBridge.d.ts.map +1 -0
  150. package/dist/naa/BridgeCapabilities.d.ts +4 -0
  151. package/dist/naa/BridgeCapabilities.d.ts.map +1 -0
  152. package/dist/naa/BridgeError.d.ts +10 -0
  153. package/dist/naa/BridgeError.d.ts.map +1 -0
  154. package/dist/naa/BridgeError.mjs +12 -0
  155. package/dist/naa/BridgeError.mjs.map +1 -0
  156. package/dist/naa/BridgeProxy.d.ts +72 -0
  157. package/dist/naa/BridgeProxy.d.ts.map +1 -0
  158. package/dist/naa/BridgeProxy.mjs +154 -0
  159. package/dist/naa/BridgeProxy.mjs.map +1 -0
  160. package/dist/naa/BridgeRequest.d.ts +7 -0
  161. package/dist/naa/BridgeRequest.d.ts.map +1 -0
  162. package/dist/naa/BridgeRequestEnvelope.d.ts +14 -0
  163. package/dist/naa/BridgeRequestEnvelope.d.ts.map +1 -0
  164. package/dist/naa/BridgeResponseEnvelope.d.ts +11 -0
  165. package/dist/naa/BridgeResponseEnvelope.d.ts.map +1 -0
  166. package/dist/naa/BridgeStatusCode.d.ts +11 -0
  167. package/dist/naa/BridgeStatusCode.d.ts.map +1 -0
  168. package/dist/naa/BridgeStatusCode.mjs +20 -0
  169. package/dist/naa/BridgeStatusCode.mjs.map +1 -0
  170. package/dist/naa/IBridgeProxy.d.ts +11 -0
  171. package/dist/naa/IBridgeProxy.d.ts.map +1 -0
  172. package/dist/naa/InitializeBridgeResponse.d.ts +7 -0
  173. package/dist/naa/InitializeBridgeResponse.d.ts.map +1 -0
  174. package/dist/naa/TokenRequest.d.ts +22 -0
  175. package/dist/naa/TokenRequest.d.ts.map +1 -0
  176. package/dist/naa/TokenResponse.d.ts +17 -0
  177. package/dist/naa/TokenResponse.d.ts.map +1 -0
  178. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +26 -0
  179. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts.map +1 -0
  180. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +178 -0
  181. package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -0
  182. package/dist/navigation/NavigationClient.mjs +1 -1
  183. package/dist/network/FetchClient.mjs +1 -1
  184. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  185. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  186. package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +7 -0
  187. package/dist/operatingcontext/TeamsAppOperatingContext.d.ts.map +1 -1
  188. package/dist/operatingcontext/TeamsAppOperatingContext.mjs +45 -4
  189. package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -1
  190. package/dist/operatingcontext/UnknownOperatingContext.d.ts +26 -0
  191. package/dist/operatingcontext/UnknownOperatingContext.d.ts.map +1 -0
  192. package/dist/operatingcontext/UnknownOperatingContext.mjs +49 -0
  193. package/dist/operatingcontext/UnknownOperatingContext.mjs.map +1 -0
  194. package/dist/packageMetadata.d.ts +1 -1
  195. package/dist/packageMetadata.mjs +2 -2
  196. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  197. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  198. package/dist/utils/BrowserConstants.mjs +1 -1
  199. package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
  200. package/dist/utils/BrowserProtocolUtils.mjs +3 -3
  201. package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
  202. package/dist/utils/BrowserUtils.d.ts +54 -53
  203. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  204. package/dist/utils/BrowserUtils.mjs +114 -102
  205. package/dist/utils/BrowserUtils.mjs.map +1 -1
  206. package/lib/msal-browser.cjs +61 -18042
  207. package/lib/msal-browser.cjs.map +1 -1
  208. package/lib/msal-browser.js +13593 -12505
  209. package/lib/msal-browser.js.map +1 -1
  210. package/lib/msal-browser.min.js +66 -65
  211. package/package.json +2 -2
  212. package/src/app/IPublicClientApplication.ts +55 -18
  213. package/src/app/PublicClientApplication.ts +19 -7
  214. package/src/app/PublicClientNext.ts +442 -0
  215. package/src/broker/nativeBroker/NativeMessageHandler.ts +12 -15
  216. package/src/broker/nativeBroker/NativeStatusCodes.ts +13 -0
  217. package/src/cache/BrowserCacheManager.ts +29 -103
  218. package/src/cache/BrowserStorage.ts +9 -11
  219. package/src/config/Configuration.ts +21 -8
  220. package/src/controllers/ControllerFactory.ts +36 -25
  221. package/src/controllers/IController.ts +4 -1
  222. package/src/controllers/NestedAppAuthController.ts +525 -0
  223. package/src/controllers/StandardController.ts +163 -98
  224. package/src/controllers/UnknownOperatingContextController.ts +383 -0
  225. package/src/crypto/BrowserCrypto.ts +119 -103
  226. package/src/crypto/CryptoOps.ts +18 -27
  227. package/src/crypto/PkceGenerator.ts +93 -54
  228. package/src/encode/Base64Decode.ts +21 -1
  229. package/src/error/BrowserAuthError.ts +13 -1
  230. package/src/error/BrowserAuthErrorCodes.ts +1 -0
  231. package/src/error/BrowserConfigurationAuthError.ts +33 -102
  232. package/src/error/BrowserConfigurationAuthErrorCodes.ts +9 -0
  233. package/src/error/NativeAuthError.ts +73 -101
  234. package/src/error/NativeAuthErrorCodes.ts +7 -0
  235. package/src/error/NestedAppAuthError.ts +32 -0
  236. package/src/event/EventHandler.ts +2 -1
  237. package/src/index.ts +8 -10
  238. package/src/interaction_client/BaseInteractionClient.ts +14 -8
  239. package/src/interaction_client/NativeInteractionClient.ts +48 -14
  240. package/src/interaction_client/PopupClient.ts +2 -1
  241. package/src/interaction_client/RedirectClient.ts +1 -1
  242. package/src/interaction_client/SilentAuthCodeClient.ts +22 -19
  243. package/src/interaction_client/SilentCacheClient.ts +28 -28
  244. package/src/interaction_client/SilentIframeClient.ts +54 -18
  245. package/src/interaction_client/SilentRefreshClient.ts +26 -28
  246. package/src/interaction_client/StandardInteractionClient.ts +37 -68
  247. package/src/interaction_handler/InteractionHandler.ts +20 -15
  248. package/src/interaction_handler/RedirectHandler.ts +6 -2
  249. package/src/interaction_handler/SilentHandler.ts +177 -230
  250. package/src/naa/AccountInfo.ts +17 -0
  251. package/src/naa/AccountRequests.ts +16 -0
  252. package/src/naa/AuthBridge.ts +16 -0
  253. package/src/naa/BridgeCapabilities.ts +8 -0
  254. package/src/naa/BridgeError.ts +18 -0
  255. package/src/naa/BridgeProxy.ts +230 -0
  256. package/src/naa/BridgeRequest.ts +12 -0
  257. package/src/naa/BridgeRequestEnvelope.ts +46 -0
  258. package/src/naa/BridgeResponseEnvelope.ts +21 -0
  259. package/src/naa/BridgeStatusCode.ts +15 -0
  260. package/src/naa/IBridgeProxy.ts +25 -0
  261. package/src/naa/InitializeBridgeResponse.ts +12 -0
  262. package/src/naa/TokenRequest.ts +26 -0
  263. package/src/naa/TokenResponse.ts +61 -0
  264. package/src/naa/mapping/NestedAppAuthAdapter.ts +252 -0
  265. package/src/operatingcontext/TeamsAppOperatingContext.ts +43 -3
  266. package/src/operatingcontext/UnknownOperatingContext.ts +48 -0
  267. package/src/packageMetadata.ts +1 -1
  268. package/src/utils/BrowserProtocolUtils.ts +3 -2
  269. package/src/utils/BrowserUtils.ts +133 -125
  270. package/dist/crypto/ISubtleCrypto.d.ts +0 -10
  271. package/dist/crypto/ISubtleCrypto.d.ts.map +0 -1
  272. package/dist/crypto/ModernBrowserCrypto.d.ts +0 -10
  273. package/dist/crypto/ModernBrowserCrypto.d.ts.map +0 -1
  274. package/dist/crypto/ModernBrowserCrypto.mjs +0 -31
  275. package/dist/crypto/ModernBrowserCrypto.mjs.map +0 -1
  276. package/dist/utils/BrowserStringUtils.d.ts +0 -22
  277. package/dist/utils/BrowserStringUtils.d.ts.map +0 -1
  278. package/dist/utils/BrowserStringUtils.mjs +0 -144
  279. package/dist/utils/BrowserStringUtils.mjs.map +0 -1
  280. package/src/crypto/ISubtleCrypto.ts +0 -30
  281. package/src/crypto/ModernBrowserCrypto.ts +0 -69
  282. package/src/utils/BrowserStringUtils.ts +0 -143
@@ -1,48 +1,35 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { AuthError } from '@azure/msal-common';
4
+ import { storageNotSupported, stubbedPublicClientApplicationCalled, inMemRedirectUnavailable } from './BrowserConfigurationAuthErrorCodes.mjs';
5
+ import * as BrowserConfigurationAuthErrorCodes from './BrowserConfigurationAuthErrorCodes.mjs';
6
+ export { BrowserConfigurationAuthErrorCodes };
4
7
 
5
8
  /*
6
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
10
  * Licensed under the MIT License.
8
11
  */
12
+ const BrowserConfigurationAuthErrorMessages = {
13
+ [storageNotSupported]: "Given storage configuration option was not supported.",
14
+ [stubbedPublicClientApplicationCalled]: "Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",
15
+ [inMemRedirectUnavailable]: "Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.",
16
+ };
9
17
  /**
10
18
  * BrowserAuthErrorMessage class containing string constants used by error codes and messages.
19
+ * @deprecated Use BrowserAuthErrorCodes instead
11
20
  */
12
21
  const BrowserConfigurationAuthErrorMessage = {
13
- redirectUriNotSet: {
14
- code: "redirect_uri_empty",
15
- desc: "A redirect URI is required for all calls, and none has been set.",
16
- },
17
- postLogoutUriNotSet: {
18
- code: "post_logout_uri_empty",
19
- desc: "A post logout redirect has not been set.",
20
- },
21
22
  storageNotSupportedError: {
22
- code: "storage_not_supported",
23
- desc: "Given storage configuration option was not supported.",
24
- },
25
- noRedirectCallbacksSet: {
26
- code: "no_redirect_callbacks",
27
- desc: "No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. " +
28
- "More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.",
29
- },
30
- invalidCallbackObject: {
31
- code: "invalid_callback_object",
32
- desc: "The object passed for the callback was invalid. " +
33
- "More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics.",
23
+ code: storageNotSupported,
24
+ desc: BrowserConfigurationAuthErrorMessages[storageNotSupported],
34
25
  },
35
26
  stubPcaInstanceCalled: {
36
- code: "stubbed_public_client_application_called",
37
- desc: "Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",
27
+ code: stubbedPublicClientApplicationCalled,
28
+ desc: BrowserConfigurationAuthErrorMessages[stubbedPublicClientApplicationCalled],
38
29
  },
39
30
  inMemRedirectUnavailable: {
40
- code: "in_mem_redirect_unavailable",
41
- desc: "Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true.",
42
- },
43
- entropyNotProvided: {
44
- code: "entropy_not_provided",
45
- desc: "The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option.",
31
+ code: inMemRedirectUnavailable,
32
+ desc: BrowserConfigurationAuthErrorMessages[inMemRedirectUnavailable],
46
33
  },
47
34
  };
48
35
  /**
@@ -54,50 +41,10 @@ class BrowserConfigurationAuthError extends AuthError {
54
41
  this.name = "BrowserConfigurationAuthError";
55
42
  Object.setPrototypeOf(this, BrowserConfigurationAuthError.prototype);
56
43
  }
57
- /**
58
- * Creates an error thrown when the redirect uri is empty (not set by caller)
59
- */
60
- static createRedirectUriEmptyError() {
61
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.redirectUriNotSet.code, BrowserConfigurationAuthErrorMessage.redirectUriNotSet.desc);
62
- }
63
- /**
64
- * Creates an error thrown when the post-logout redirect uri is empty (not set by caller)
65
- */
66
- static createPostLogoutRedirectUriEmptyError() {
67
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.code, BrowserConfigurationAuthErrorMessage.postLogoutUriNotSet.desc);
68
- }
69
- /**
70
- * Creates error thrown when given storage location is not supported.
71
- * @param givenStorageLocation
72
- */
73
- static createStorageNotSupportedError(givenStorageLocation) {
74
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.storageNotSupportedError.code, `${BrowserConfigurationAuthErrorMessage.storageNotSupportedError.desc} Given Location: ${givenStorageLocation}`);
75
- }
76
- /**
77
- * Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect().
78
- */
79
- static createRedirectCallbacksNotSetError() {
80
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.code, BrowserConfigurationAuthErrorMessage.noRedirectCallbacksSet.desc);
81
- }
82
- /**
83
- * Creates error thrown when the stub instance of PublicClientApplication is called.
84
- */
85
- static createStubPcaInstanceCalledError() {
86
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.code, BrowserConfigurationAuthErrorMessage.stubPcaInstanceCalled.desc);
87
- }
88
- /*
89
- * Create an error thrown when in-memory storage is used and storeAuthStateInCookie=false.
90
- */
91
- static createInMemoryRedirectUnavailableError() {
92
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.code, BrowserConfigurationAuthErrorMessage.inMemRedirectUnavailable.desc);
93
- }
94
- /**
95
- * Creates an error thrown when a crypto interface that requires entropy is initialized without entropy
96
- */
97
- static createEntropyNotProvided() {
98
- return new BrowserConfigurationAuthError(BrowserConfigurationAuthErrorMessage.entropyNotProvided.code, BrowserConfigurationAuthErrorMessage.entropyNotProvided.desc);
99
- }
44
+ }
45
+ function createBrowserConfigurationAuthError(errorCode) {
46
+ return new BrowserConfigurationAuthError(errorCode, BrowserConfigurationAuthErrorMessages[errorCode]);
100
47
  }
101
48
 
102
- export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage };
49
+ export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage, BrowserConfigurationAuthErrorMessages, createBrowserConfigurationAuthError };
103
50
  //# sourceMappingURL=BrowserConfigurationAuthError.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserConfigurationAuthError.mjs","sources":["../../src/error/BrowserConfigurationAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;AAEA;;AAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsCD,IAAA,EAAA,uRAAA;AAEF,KAAA;;AAEG,QAAA,IAAA,EAAA,sBAAA;AACH,QAAa,IAAA,EAAA,oHAA+C;AAC5C,KAAA;AAOZ,EAAA;;AAEG;;AAQH,MAAA,6BAAA,SAAA,SAAA,CAAA;;AAEG,QAAA,KAAA,CAAA,SAAA,EAAA,YAAA,CAAA,CAAA;QACG,IAAsC,CAAA,IAAA,GAAA,+BAAA,CAAI;AAOhD,QAAA,MAAA,CAAA,cAAA,CAAA,IAAA,EAAA,6BAAA,CAAA,SAAA,CAAA,CAAA;;;AAGG;AACH;AASA,IAAA,OAAA,2BAAA,GAAA;;AAEG,KAAA;;AAQH;;AAEG,IAAA,OAAA,qCAAA,GAAA;QACG,OAAiC,IAAA,6BAAiC,CAAA,oCAAA,CAAA,mBAAA,CAAA,IAAA,EAAA,oCAAA,CAAA,mBAAA,CAAA,IAAA,CAAA,CAAA;KAUlE;AAON;;AAEG;;AAON,IAAA,OAAA,8BAAA,CAAA,oBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"BrowserConfigurationAuthError.mjs","sources":["../../src/error/BrowserConfigurationAuthError.ts"],"sourcesContent":[null],"names":["BrowserConfigurationAuthErrorCodes.storageNotSupported","BrowserConfigurationAuthErrorCodes.inMemRedirectUnavailable"],"mappings":";;;;;;;AAKA;AACA;AACA;AAEA;AAOE,MAAA,qCAAA,GAAA;AAEF,IAAA,CAAAA,mBAAA,GAAA,uDAAA;;;AAGG,EAAA;AACH;;;;;;;;;;;;KAoBE;AAEF,IAAA,wBAAA,EAAA;;AAEG,QAAA,IAAA,EAAA,qCAAA,CAAAC,wBAAA,CAAA;AACH,KAAa;AACG,EAAA;AAMf;AAED;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export declare const storageNotSupported = "storage_not_supported";
2
+ export declare const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
3
+ export declare const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
4
+ //# sourceMappingURL=BrowserConfigurationAuthErrorCodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserConfigurationAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/BrowserConfigurationAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAC3D,eAAO,MAAM,oCAAoC,6CACH,CAAC;AAC/C,eAAO,MAAM,wBAAwB,gCAAgC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
+ 'use strict';
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ const storageNotSupported = "storage_not_supported";
8
+ const stubbedPublicClientApplicationCalled = "stubbed_public_client_application_called";
9
+ const inMemRedirectUnavailable = "in_mem_redirect_unavailable";
10
+
11
+ export { inMemRedirectUnavailable, storageNotSupported, stubbedPublicClientApplicationCalled };
12
+ //# sourceMappingURL=BrowserConfigurationAuthErrorCodes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrowserConfigurationAuthErrorCodes.mjs","sources":["../../src/error/BrowserConfigurationAuthErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;AACA;AAEA;;;;;;;;"}
@@ -1,4 +1,6 @@
1
1
  import { AuthError } from "@azure/msal-common";
2
+ import * as NativeAuthErrorCodes from "./NativeAuthErrorCodes";
3
+ export { NativeAuthErrorCodes };
2
4
  export type OSError = {
3
5
  error?: number;
4
6
  protocol_error?: string;
@@ -6,53 +8,23 @@ export type OSError = {
6
8
  status?: string;
7
9
  retryable?: boolean;
8
10
  };
9
- export declare const NativeStatusCode: {
10
- readonly USER_INTERACTION_REQUIRED: "USER_INTERACTION_REQUIRED";
11
- readonly USER_CANCEL: "USER_CANCEL";
12
- readonly NO_NETWORK: "NO_NETWORK";
13
- readonly TRANSIENT_ERROR: "TRANSIENT_ERROR";
14
- readonly PERSISTENT_ERROR: "PERSISTENT_ERROR";
15
- readonly DISABLED: "DISABLED";
16
- readonly ACCOUNT_UNAVAILABLE: "ACCOUNT_UNAVAILABLE";
17
- };
18
- export type NativeStatusCode = (typeof NativeStatusCode)[keyof typeof NativeStatusCode];
19
- export declare const NativeAuthErrorMessage: {
20
- extensionError: {
21
- code: string;
22
- };
23
- userSwitch: {
24
- code: string;
25
- desc: string;
26
- };
27
- tokensNotFoundInCache: {
28
- code: string;
29
- desc: string;
30
- };
11
+ export declare const NativeAuthErrorMessages: {
12
+ user_switch: string;
31
13
  };
32
14
  export declare class NativeAuthError extends AuthError {
33
15
  ext: OSError | undefined;
34
- constructor(errorCode: string, description: string, ext?: OSError);
35
- /**
36
- * These errors should result in a fallback to the 'standard' browser based auth flow.
37
- */
38
- isFatal(): boolean;
39
- /**
40
- * Create the appropriate error object based on the WAM status code.
41
- * @param code
42
- * @param description
43
- * @param ext
44
- * @returns
45
- */
46
- static createError(code: string, description: string, ext?: OSError): AuthError;
47
- /**
48
- * Creates user switch error when the user chooses a different account in the native broker prompt
49
- * @returns
50
- */
51
- static createUserSwitchError(): NativeAuthError;
52
- /**
53
- * Creates a tokens not found error when the internal cache look up fails
54
- * @returns NativeAuthError: tokensNotFoundInCache
55
- */
56
- static createTokensNotFoundInCacheError(): NativeAuthError;
16
+ constructor(errorCode: string, description?: string, ext?: OSError);
57
17
  }
18
+ /**
19
+ * These errors should result in a fallback to the 'standard' browser based auth flow.
20
+ */
21
+ export declare function isFatalNativeAuthError(error: NativeAuthError): boolean;
22
+ /**
23
+ * Create the appropriate error object based on the WAM status code.
24
+ * @param code
25
+ * @param description
26
+ * @param ext
27
+ * @returns
28
+ */
29
+ export declare function createNativeAuthError(code: string, description?: string, ext?: OSError): AuthError;
58
30
  //# sourceMappingURL=NativeAuthError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAuthError.d.ts","sourceRoot":"","sources":["../../src/error/NativeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAgC,MAAM,oBAAoB,CAAC;AAM7E,MAAM,MAAM,OAAO,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,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,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO;CAOrE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAwBtE;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,OAAO,GACd,SAAS,CAyBX"}
@@ -1,7 +1,9 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
2
  'use strict';
3
- import { AuthError, InteractionRequiredAuthError } from '@azure/msal-common';
3
+ import { AuthError, InteractionRequiredAuthError, createInteractionRequiredAuthError, InteractionRequiredAuthErrorCodes } from '@azure/msal-common';
4
4
  import { createBrowserAuthError } from './BrowserAuthError.mjs';
5
+ import { contentError, userSwitch } from './NativeAuthErrorCodes.mjs';
6
+ import { PERSISTENT_ERROR, DISABLED, NO_NETWORK, USER_CANCEL, USER_INTERACTION_REQUIRED, ACCOUNT_UNAVAILABLE } from '../broker/nativeBroker/NativeStatusCodes.mjs';
5
7
  import { noNetworkConnectivity, userCancelled } from './BrowserAuthErrorCodes.mjs';
6
8
 
7
9
  /*
@@ -9,27 +11,8 @@ import { noNetworkConnectivity, userCancelled } from './BrowserAuthErrorCodes.mj
9
11
  * Licensed under the MIT License.
10
12
  */
11
13
  const INVALID_METHOD_ERROR = -2147186943;
12
- const NativeStatusCode = {
13
- USER_INTERACTION_REQUIRED: "USER_INTERACTION_REQUIRED",
14
- USER_CANCEL: "USER_CANCEL",
15
- NO_NETWORK: "NO_NETWORK",
16
- TRANSIENT_ERROR: "TRANSIENT_ERROR",
17
- PERSISTENT_ERROR: "PERSISTENT_ERROR",
18
- DISABLED: "DISABLED",
19
- ACCOUNT_UNAVAILABLE: "ACCOUNT_UNAVAILABLE",
20
- };
21
- const NativeAuthErrorMessage = {
22
- extensionError: {
23
- code: "ContentError",
24
- },
25
- userSwitch: {
26
- code: "user_switch",
27
- desc: "User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",
28
- },
29
- tokensNotFoundInCache: {
30
- code: "tokens_not_found_in_internal_memory_cache",
31
- desc: "Tokens not cached in MSAL JS internal memory, please make the WAM request",
32
- },
14
+ const NativeAuthErrorMessages = {
15
+ [userSwitch]: "User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again.",
33
16
  };
34
17
  class NativeAuthError extends AuthError {
35
18
  constructor(errorCode, description, ext) {
@@ -38,65 +21,51 @@ class NativeAuthError extends AuthError {
38
21
  this.name = "NativeAuthError";
39
22
  this.ext = ext;
40
23
  }
41
- /**
42
- * These errors should result in a fallback to the 'standard' browser based auth flow.
43
- */
44
- isFatal() {
45
- if (this.ext &&
46
- this.ext.status &&
47
- (this.ext.status === NativeStatusCode.PERSISTENT_ERROR ||
48
- this.ext.status === NativeStatusCode.DISABLED)) {
49
- return true;
50
- }
51
- if (this.ext &&
52
- this.ext.error &&
53
- this.ext.error === INVALID_METHOD_ERROR) {
54
- return true;
55
- }
56
- switch (this.errorCode) {
57
- case NativeAuthErrorMessage.extensionError.code:
58
- return true;
59
- default:
60
- return false;
61
- }
24
+ }
25
+ /**
26
+ * These errors should result in a fallback to the 'standard' browser based auth flow.
27
+ */
28
+ function isFatalNativeAuthError(error) {
29
+ if (error.ext &&
30
+ error.ext.status &&
31
+ (error.ext.status === PERSISTENT_ERROR ||
32
+ error.ext.status === DISABLED)) {
33
+ return true;
62
34
  }
63
- /**
64
- * Create the appropriate error object based on the WAM status code.
65
- * @param code
66
- * @param description
67
- * @param ext
68
- * @returns
69
- */
70
- static createError(code, description, ext) {
71
- if (ext && ext.status) {
72
- switch (ext.status) {
73
- case NativeStatusCode.ACCOUNT_UNAVAILABLE:
74
- return InteractionRequiredAuthError.createNativeAccountUnavailableError();
75
- case NativeStatusCode.USER_INTERACTION_REQUIRED:
76
- return new InteractionRequiredAuthError(code, description);
77
- case NativeStatusCode.USER_CANCEL:
78
- return createBrowserAuthError(userCancelled);
79
- case NativeStatusCode.NO_NETWORK:
80
- return createBrowserAuthError(noNetworkConnectivity);
81
- }
82
- }
83
- return new NativeAuthError(code, description, ext);
35
+ if (error.ext &&
36
+ error.ext.error &&
37
+ error.ext.error === INVALID_METHOD_ERROR) {
38
+ return true;
84
39
  }
85
- /**
86
- * Creates user switch error when the user chooses a different account in the native broker prompt
87
- * @returns
88
- */
89
- static createUserSwitchError() {
90
- return new NativeAuthError(NativeAuthErrorMessage.userSwitch.code, NativeAuthErrorMessage.userSwitch.desc);
40
+ switch (error.errorCode) {
41
+ case contentError:
42
+ return true;
43
+ default:
44
+ return false;
91
45
  }
92
- /**
93
- * Creates a tokens not found error when the internal cache look up fails
94
- * @returns NativeAuthError: tokensNotFoundInCache
95
- */
96
- static createTokensNotFoundInCacheError() {
97
- return new NativeAuthError(NativeAuthErrorMessage.tokensNotFoundInCache.code, NativeAuthErrorMessage.tokensNotFoundInCache.desc);
46
+ }
47
+ /**
48
+ * Create the appropriate error object based on the WAM status code.
49
+ * @param code
50
+ * @param description
51
+ * @param ext
52
+ * @returns
53
+ */
54
+ function createNativeAuthError(code, description, ext) {
55
+ if (ext && ext.status) {
56
+ switch (ext.status) {
57
+ case ACCOUNT_UNAVAILABLE:
58
+ return createInteractionRequiredAuthError(InteractionRequiredAuthErrorCodes.nativeAccountUnavailable);
59
+ case USER_INTERACTION_REQUIRED:
60
+ return new InteractionRequiredAuthError(code, description);
61
+ case USER_CANCEL:
62
+ return createBrowserAuthError(userCancelled);
63
+ case NO_NETWORK:
64
+ return createBrowserAuthError(noNetworkConnectivity);
65
+ }
98
66
  }
67
+ return new NativeAuthError(code, NativeAuthErrorMessages[code] || description, ext);
99
68
  }
100
69
 
101
- export { NativeAuthError, NativeAuthErrorMessage, NativeStatusCode };
70
+ export { NativeAuthError, NativeAuthErrorMessages, createNativeAuthError, isFatalNativeAuthError };
102
71
  //# sourceMappingURL=NativeAuthError.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NativeAuthError.mjs","sources":["../../src/error/NativeAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;AAMA;;;MAKa,oBAAW,GAAA,CAAA,UAAA,CAAA;AACtB,MAAA,gBAAA,GAAA;AAIF,IAAA,yBAA6B,EAAA,2BAAA;;;;;;;;AAQlB,MAAA,sBAAA,GAAA;AACX,IAAA,cAAY,EAAA;AAGZ,QAAA,IAAA,EAAA,cAAmC;;;;;;;;;;;;IAYjC,WAAA,CAAA,SAAA,EAAA,WAAA,EAAA,GAAA,EAAA;AAEF,QAAa,KAAA,CAAA,SAAA,EAAA,WAAgB;AACzB,QAAK,MAAA,CAAA,cAAoB,CAAA,IAAA,EAAA,eAAA,CAAA,SAAA,CAAA,CAAA;iBAEJ,GAAA,iBAAqB,CAAA;AAQ1C,QAAA,IAAA,CAAA,GAAA,GAAA,GAAA,CAAA;;AAEG;AACH;AA0BA;;;;;;AAMG,YAAA,OAAA,IAAA,CAAA;AACH,SAAA;AAyBA,QAAA,IAAA,IAAA,CAAA,GAAA;;;AAGG,YAAA,OAAA,IAAA,CAAA;SACG;AAON,QAAA,QAAA,IAAA,CAAA,SAAA;;;AAGG,YAAA;gBACoC,OAAA,KAAA,CAAA;AAM1C,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"NativeAuthError.mjs","sources":["../../src/error/NativeAuthError.ts"],"sourcesContent":[null],"names":["NativeStatusCodes.PERSISTENT_ERROR"],"mappings":";;;;;;;;AAKA;AAWA;AAEA;AAEA;MAME,oBAAA,GAAA,CAAA,UAAA,CAAA;AAIF,MAAA,uBAAoC,GAAA;;EAGlC;AAEW,MAAA,eAAA,kBAAiC,CAAA;AAC1C,IAAA,WAAK,CAAO,SAAG,EAAA,WAAU,EAAA,GAAA,EAAA;uBAEJ,EAAA,WAAqB,CAAA,CAAA;AAO7C,QAAA,MAAA,CAAA,cAAA,CAAA,IAAA,EAAA,eAAA,CAAA,SAAA,CAAA,CAAA;AAED,QAAA,IAAA,CAAA,IAAA,GAAA,iBAAA,CAAA;;AAEG,KAAA;AACH,CAAA;AA0BA;;;;;;AAMG,SAAA,KAAA,CAAA,GAAA,CAAA,MAAA,KAAAA,gBAAA;AACH,YAAA,KAAA,CAAA,GAAA,CAAA,oBAEI,EAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export declare const contentError = "ContentError";
2
+ export declare const userSwitch = "user_switch";
3
+ //# sourceMappingURL=NativeAuthErrorCodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../src/error/NativeAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,UAAU,gBAAgB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
+ 'use strict';
3
+ /*
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Licensed under the MIT License.
6
+ */
7
+ const contentError = "ContentError";
8
+ const userSwitch = "user_switch";
9
+
10
+ export { contentError, userSwitch };
11
+ //# sourceMappingURL=NativeAuthErrorCodes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeAuthErrorCodes.mjs","sources":["../../src/error/NativeAuthErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKA;AACA;;;;;;;;"}
@@ -0,0 +1,15 @@
1
+ import { AuthError } from "@azure/msal-common";
2
+ /**
3
+ * NestedAppAuthErrorMessage class containing string constants used by error codes and messages.
4
+ */
5
+ export declare const NestedAppAuthErrorMessage: {
6
+ unsupportedMethod: {
7
+ code: string;
8
+ desc: string;
9
+ };
10
+ };
11
+ export declare class NestedAppAuthError extends AuthError {
12
+ constructor(errorCode: string, errorMessage?: string);
13
+ static createUnsupportedError(): NestedAppAuthError;
14
+ }
15
+ //# sourceMappingURL=NestedAppAuthError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NestedAppAuthError.d.ts","sourceRoot":"","sources":["../../src/error/NestedAppAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;CAKrC,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,SAAS;gBACjC,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;WAOtC,sBAAsB,IAAI,kBAAkB;CAM7D"}
@@ -0,0 +1,30 @@
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
+ 'use strict';
3
+ import { AuthError } from '@azure/msal-common';
4
+
5
+ /*
6
+ * Copyright (c) Microsoft Corporation. All rights reserved.
7
+ * Licensed under the MIT License.
8
+ */
9
+ /**
10
+ * NestedAppAuthErrorMessage class containing string constants used by error codes and messages.
11
+ */
12
+ const NestedAppAuthErrorMessage = {
13
+ unsupportedMethod: {
14
+ code: "unsupported_method",
15
+ desc: "The PKCE code challenge and verifier could not be generated.",
16
+ },
17
+ };
18
+ class NestedAppAuthError extends AuthError {
19
+ constructor(errorCode, errorMessage) {
20
+ super(errorCode, errorMessage);
21
+ Object.setPrototypeOf(this, NestedAppAuthError.prototype);
22
+ this.name = "NestedAppAuthError";
23
+ }
24
+ static createUnsupportedError() {
25
+ return new NestedAppAuthError(NestedAppAuthErrorMessage.unsupportedMethod.code, NestedAppAuthErrorMessage.unsupportedMethod.desc);
26
+ }
27
+ }
28
+
29
+ export { NestedAppAuthError, NestedAppAuthErrorMessage };
30
+ //# sourceMappingURL=NestedAppAuthError.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NestedAppAuthError.mjs","sources":["../../src/error/NestedAppAuthError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;AAEA;;AAEG;;;;;IAMD,iBAAA,EAAA;AAEF,QAAa,IAAA,EAAA,oBAAA;AACG,QAAA,IAAA,EAAA,8DAAwC;AAOtC,KAAA;AAMjB,EAAA;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"EventHandler.d.ts","sourceRoot":"","sources":["../../src/event/EventHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAGT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACH,qBAAqB,EACrB,UAAU,EAEV,YAAY,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,YAAY;IAErB,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,wBAAwB,CAAU;gBAE9B,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO;IASlD;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,MAAM,GAAG,IAAI;IAchE;;;OAGG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAK7C;;OAEG;IACH,0BAA0B,IAAI,IAAI;IAclC;;OAEG;IACH,2BAA2B,IAAI,IAAI;IAiBnC;;;;;;OAMG;IACH,SAAS,CACL,SAAS,EAAE,SAAS,EACpB,eAAe,CAAC,EAAE,eAAe,EACjC,OAAO,CAAC,EAAE,YAAY,EACtB,KAAK,CAAC,EAAE,UAAU,GACnB,IAAI;IAuBP;;OAEG;IACH,OAAO,CAAC,wBAAwB;CAqCnC"}
1
+ {"version":3,"file":"EventHandler.d.ts","sourceRoot":"","sources":["../../src/event/EventHandler.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,MAAM,EAGT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACH,qBAAqB,EACrB,UAAU,EAEV,YAAY,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,qBAAa,YAAY;IAErB,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,wBAAwB,CAAU;gBAE9B,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO;IASlD;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,MAAM,GAAG,IAAI;IAchE;;;OAGG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAK7C;;OAEG;IACH,0BAA0B,IAAI,IAAI;IAclC;;OAEG;IACH,2BAA2B,IAAI,IAAI;IAiBnC;;;;;;OAMG;IACH,SAAS,CACL,SAAS,EAAE,SAAS,EACpB,eAAe,CAAC,EAAE,eAAe,EACjC,OAAO,CAAC,EAAE,YAAY,EACtB,KAAK,CAAC,EAAE,UAAU,GACnB,IAAI;IAuBP;;OAEG;IACH,OAAO,CAAC,wBAAwB;CAqCnC"}
@@ -1,7 +1,8 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { AccountEntity, CacheManager } from '@azure/msal-common';
4
4
  import { EventType } from './EventType.mjs';
5
+ import { createNewGuid } from '../crypto/BrowserCrypto.mjs';
5
6
 
6
7
  /*
7
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -22,7 +23,7 @@ class EventHandler {
22
23
  */
23
24
  addEventCallback(callback) {
24
25
  if (typeof window !== "undefined") {
25
- const callbackId = this.browserCrypto.createNewGuid();
26
+ const callbackId = createNewGuid();
26
27
  this.eventCallbacks.set(callbackId, callback);
27
28
  this.logger.verbose(`Event callback registered with id: ${callbackId}`);
28
29
  return callbackId;
@@ -1 +1 @@
1
- {"version":3,"file":"EventHandler.mjs","sources":["../../src/event/EventHandler.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAKA;AAMA;AACA;AAMA;AAKW,kBAAgB,CAAA;IACvB,iCAA+B,EAAA;QACxB,IAAC,yBAAkC,EAAA,CAAA;AAE9B,QAAA,IAAA,CAAA,MAAA,GAAM,MAAE,CAAA;AASpB,QAAA,IAAA,CAAA,aAAA,GAAA,aAAA,CAAA;;;AAGG,YAAA,IAAA,CAAA,wBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,CAAA;AACH,KAAA;AAcA;;;AAGG;AACH,IAAA,gBAAA,CAAA,QAAoB,EAAA;AAKpB,QAAA,IAAA,OAAA,MAAA,KAAA,WAAA,EAAA;;AAEG,YAAA,IAAA,CAAA,cAAA,CAAA,GAAA,CAAA,UAAA,EAAA,QAAA,CAAA,CAAA;AACH,YAAA,IAAA,CAAA,MAAA,CAAA,4CAAkC,EAAA,UAAA,CAAA,CAAA,CAAA,CAAA;AAclC,YAAA,OAAA,UAAA,CAAA;;AAEG,QAAA,OAAA,IAAA,CAAA;AACH,KAAA;AAiBA;;;;;;AAMG,QAAA,IAAA,CAAA,MAAA,CAAA,OAAA,CAAA,CAAA,eAAA,EAAA,UAAA,CAAA,SAAA,CAAA,CAAA,CAAA;KACM;AA4BT;;AAEG;AACH,IAAA,0BAAgC,GAAA;AAqCnC,QAAA,IAAA,OAAA,MAAA,KAAA,WAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"EventHandler.mjs","sources":["../../src/event/EventHandler.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAKA;AAMA;AACA;AAMA;AAOW,kBAAc,CAAU;IAC/B,iCAA0C,EAAA;AAE9B,QAAA,IAAA,CAAA,cAAQ,GAAM,IAAE,GAAA,EAAA,CAAA;AAS5B,QAAA,IAAA,CAAA,MAAA,GAAA,MAAA,CAAA;;;AAGG,QAAA,IAAA,CAAA,wBAAA;AACH,YAAA,IAAA,CAAA,mCAAgD,CAAG;AAcnD,KAAA;;;AAGG;AACH;AAKA,IAAA,gBAAA,CAAA,QAAA,EAAA;;AAEG,YAAA,MAAA,UAAA,GAAA,aAAA,EAAA,CAAA;AACH,YAAA,IAAA,CAAA,kBAAkC,CAAA,UAAA,EAAA,QAAA,CAAA,CAAA;AAclC,YAAA,IAAA,CAAA,MAAA,CAAA,OAAA,CAAA,CAAA,mCAAA,EAAA,UAAA,CAAA,CAAA,CAAA,CAAA;;AAEG,SAAA;AACH,QAAA,OAAA,IAAA,CAAA;AAiBA,KAAA;;;;;;AAMG,QAAA,IAAA,CAAA,cAAA,CAAA,MAAA,CAAA,UAAA,CAAA,CAAA;QACM,IAAA,CAAA,cACM,CAAA,CAAA,eACI,EAAA,UAAkB,CAAA,SAAA,CAAA,CAAA,CAAA;AA0BrC,KAAA;;AAEG;AACH;AAqCH,IAAA,0BAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
2
  'use strict';
3
3
  import { EventType } from './EventType.mjs';
4
4
  import { InteractionType, InteractionStatus } from '../utils/BrowserConstants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
package/dist/index.d.ts CHANGED
@@ -2,17 +2,15 @@
2
2
  * @packageDocumentation
3
3
  * @module @azure/msal-browser
4
4
  */
5
- /**
6
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
7
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
- */
5
+ import * as BrowserUtils from "./utils/BrowserUtils";
6
+ export { BrowserUtils };
9
7
  export { PublicClientApplication } from "./app/PublicClientApplication";
8
+ export { PublicClientNext } from "./app/PublicClientNext";
10
9
  export { IController } from "./controllers/IController";
11
10
  export { Configuration, BrowserAuthOptions, CacheOptions, BrowserSystemOptions, BrowserTelemetryOptions, BrowserConfiguration, DEFAULT_IFRAME_TIMEOUT_MS, } from "./config/Configuration";
12
11
  export { InteractionType, InteractionStatus, BrowserCacheLocation, WrapperSKU, ApiId, CacheLookupPolicy, } from "./utils/BrowserConstants";
13
- export { BrowserUtils } from "./utils/BrowserUtils";
14
12
  export { BrowserAuthError, BrowserAuthErrorMessage, BrowserAuthErrorCodes, } from "./error/BrowserAuthError";
15
- export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage, } from "./error/BrowserConfigurationAuthError";
13
+ export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorCodes, BrowserConfigurationAuthErrorMessage, } from "./error/BrowserConfigurationAuthError";
16
14
  export { IPublicClientApplication, stubbedPublicClientApplication, } from "./app/IPublicClientApplication";
17
15
  export { INavigationClient } from "./navigation/INavigationClient";
18
16
  export { NavigationClient } from "./navigation/NavigationClient";
@@ -37,6 +35,6 @@ export { SignedHttpRequest, SignedHttpRequestOptions, } from "./crypto/SignedHtt
37
35
  export { PopupWindowAttributes, PopupSize, PopupPosition, } from "./request/PopupWindowAttributes";
38
36
  export { BrowserPerformanceClient } from "./telemetry/BrowserPerformanceClient";
39
37
  export { BrowserPerformanceMeasurement } from "./telemetry/BrowserPerformanceMeasurement";
40
- export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorMessage, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, } from "@azure/msal-common";
38
+ export { AuthenticationScheme, AccountInfo, AccountEntity, IdTokenClaims, AuthError, AuthErrorCodes, AuthErrorMessage, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkResponse, NetworkRequestOptions, ILoggerCallback, Logger, LogLevel, ProtocolMode, ServerResponseType, PromptValue, ExternalTokenResponse, StringUtils, UrlString, AzureCloudInstance, AzureCloudOptions, AuthenticationHeaderParser, OIDC_DEFAULT_SCOPES, PerformanceCallbackFunction, PerformanceEvent, PerformanceEvents, InProgressPerformanceEvent, } from "@azure/msal-common";
41
39
  export { version } from "./packageMetadata";
42
40
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,O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,9 +1,11 @@
1
- /*! @azure/msal-browser v3.1.0 2023-09-05 */
1
+ /*! @azure/msal-browser v3.3.0 2023-10-20 */
2
2
  'use strict';
3
+ import * as BrowserUtils from './utils/BrowserUtils.mjs';
4
+ export { BrowserUtils };
3
5
  export { PublicClientApplication } from './app/PublicClientApplication.mjs';
6
+ export { PublicClientNext } from './app/PublicClientNext.mjs';
4
7
  export { DEFAULT_IFRAME_TIMEOUT_MS } from './config/Configuration.mjs';
5
8
  export { ApiId, BrowserCacheLocation, CacheLookupPolicy, InteractionStatus, InteractionType, WrapperSKU } from './utils/BrowserConstants.mjs';
6
- export { BrowserUtils } from './utils/BrowserUtils.mjs';
7
9
  export { BrowserAuthError, BrowserAuthErrorMessage } from './error/BrowserAuthError.mjs';
8
10
  export { BrowserConfigurationAuthError, BrowserConfigurationAuthErrorMessage } from './error/BrowserConfigurationAuthError.mjs';
9
11
  export { stubbedPublicClientApplication } from './app/IPublicClientApplication.mjs';
@@ -15,8 +17,10 @@ export { EventType } from './event/EventType.mjs';
15
17
  export { SignedHttpRequest } from './crypto/SignedHttpRequest.mjs';
16
18
  export { BrowserPerformanceClient } from './telemetry/BrowserPerformanceClient.mjs';
17
19
  export { BrowserPerformanceMeasurement } from './telemetry/BrowserPerformanceMeasurement.mjs';
18
- export { AccountEntity, AuthError, AuthErrorMessage, AuthenticationHeaderParser, AuthenticationScheme, AzureCloudInstance, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, LogLevel, Logger, OIDC_DEFAULT_SCOPES, PerformanceEvents, PromptValue, ProtocolMode, ServerError, ServerResponseType, StringUtils, UrlString } from '@azure/msal-common';
20
+ export { AccountEntity, AuthError, AuthErrorCodes, AuthErrorMessage, AuthenticationHeaderParser, AuthenticationScheme, AzureCloudInstance, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, LogLevel, Logger, OIDC_DEFAULT_SCOPES, PerformanceEvents, PromptValue, ProtocolMode, ServerError, ServerResponseType, StringUtils, UrlString } from '@azure/msal-common';
19
21
  export { version } from './packageMetadata.mjs';
20
22
  import * as BrowserAuthErrorCodes from './error/BrowserAuthErrorCodes.mjs';
21
23
  export { BrowserAuthErrorCodes };
24
+ import * as BrowserConfigurationAuthErrorCodes from './error/BrowserConfigurationAuthErrorCodes.mjs';
25
+ export { BrowserConfigurationAuthErrorCodes };
22
26
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"BaseInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/BaseInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,cAAc,EACd,MAAM,EACN,WAAW,EAEX,eAAe,EAGf,sBAAsB,EAGtB,SAAS,EAGT,kBAAkB,EAGrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,OAAO,EAAE,iBAAiB,EAAE,MAA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2ChB;;;OAGG;cACa,qBAAqB,CACjC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EACjC,OAAO,CAAC,EAAE,WAAW,GACtB,OAAO,CAAC,eAAe,CAAC;IA0D3B;;;;;;OAMG;IACH,cAAc,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM;IAgB7C,wBAAwB,CAC1B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;OAKG;IACH,SAAS,CAAC,gCAAgC,CACtC,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,OAAO,GACvB,sBAAsB;IAiBzB;;;;OAIG;cACa,sBAAsB,CAClC,gBAAgB,CAAC,EAAE,MAAM,GAC1B,OAAO,CAAC,SAAS,CAAC;CAkCxB"}
1
+ {"version":3,"file":"BaseInteractionClient.d.ts","sourceRoot":"","sources":["../../src/interaction_client/BaseInteractionClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,OAAO,EACP,cAAc,EACd,MAAM,EACN,WAAW,EAEX,eAAe,EAGf,sBAAsB,EAItB,SAAS,EAGT,kBAAkB,EAGrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO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