@adobe/alloy 2.27.0 → 2.28.0-beta.1

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 (1961) hide show
  1. package/dist/alloy.cjs +18138 -0
  2. package/dist/alloy.js +18128 -0
  3. package/dist/alloy.standalone.js +18122 -0
  4. package/dist/alloy.standalone.min.js +3 -0
  5. package/dist/baseCode.js +76 -0
  6. package/dist/baseCode.min.js +1 -0
  7. package/dist/types/baseCode/index.d.ts.map +1 -0
  8. package/dist/types/baseCode.d.ts.map +1 -0
  9. package/dist/types/components/ActivityCollector/attachClickActivityCollector.d.ts.map +1 -0
  10. package/dist/types/components/ActivityCollector/configValidators.d.ts.map +1 -0
  11. package/dist/types/components/ActivityCollector/createClickActivityStorage.d.ts.map +1 -0
  12. package/dist/types/components/ActivityCollector/createClickedElementProperties.d.ts.map +1 -0
  13. package/dist/types/components/ActivityCollector/createGetClickedElementProperties.d.ts.map +1 -0
  14. package/dist/types/components/ActivityCollector/createInjectClickedElementProperties.d.ts.map +1 -0
  15. package/dist/types/components/ActivityCollector/createRecallAndInjectClickedElementProperties.d.ts.map +1 -0
  16. package/dist/types/components/ActivityCollector/createStorePageViewProperties.d.ts.map +1 -0
  17. package/dist/types/components/ActivityCollector/getLinkName.d.ts.map +1 -0
  18. package/dist/types/components/ActivityCollector/getLinkRegion.d.ts.map +1 -0
  19. package/dist/types/components/ActivityCollector/index.d.ts.map +1 -0
  20. package/dist/types/components/ActivityCollector/utils/activityMapExtensionEnabled.d.ts.map +1 -0
  21. package/dist/types/components/ActivityCollector/utils/createTransientStorage.d.ts.map +1 -0
  22. package/dist/types/components/ActivityCollector/utils/determineLinkType.d.ts.map +1 -0
  23. package/dist/types/components/ActivityCollector/utils/dom/elementHasClickHandler.d.ts.map +1 -0
  24. package/dist/types/components/ActivityCollector/utils/dom/extractDomain.d.ts.map +1 -0
  25. package/dist/types/components/ActivityCollector/utils/dom/findClickableElement.d.ts.map +1 -0
  26. package/dist/types/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.d.ts.map +1 -0
  27. package/dist/types/components/ActivityCollector/utils/dom/isButtonSubmitElement.d.ts.map +1 -0
  28. package/dist/types/components/ActivityCollector/utils/dom/isDownloadLink.d.ts.map +1 -0
  29. package/dist/types/components/ActivityCollector/utils/dom/isExitLink.d.ts.map +1 -0
  30. package/dist/types/components/ActivityCollector/utils/dom/isInputSubmitElement.d.ts.map +1 -0
  31. package/dist/types/components/ActivityCollector/utils/dom/isSupportedAnchorElement.d.ts.map +1 -0
  32. package/dist/types/components/ActivityCollector/utils/dom/isSupportedTextNode.d.ts.map +1 -0
  33. package/dist/types/components/ActivityCollector/utils/hasPageName.d.ts.map +1 -0
  34. package/dist/types/components/ActivityCollector/utils/isDifferentDomains.d.ts.map +1 -0
  35. package/dist/types/components/ActivityCollector/utils/trimQueryFromUrl.d.ts.map +1 -0
  36. package/dist/types/components/ActivityCollector/utils/truncateWhiteSpace.d.ts.map +1 -0
  37. package/dist/types/components/ActivityCollector/validateClickCollectionConfig.d.ts.map +1 -0
  38. package/dist/types/components/Audiences/index.d.ts.map +1 -0
  39. package/dist/types/components/Audiences/injectProcessDestinations.d.ts.map +1 -0
  40. package/dist/types/components/Audiences/injectProcessResponse.d.ts.map +1 -0
  41. package/dist/types/components/Consent/computeConsentHash.d.ts.map +1 -0
  42. package/dist/types/components/Consent/configValidators.d.ts.map +1 -0
  43. package/dist/types/components/Consent/createComponent.d.ts.map +1 -0
  44. package/dist/types/components/Consent/createConsentHashStore.d.ts.map +1 -0
  45. package/dist/types/components/Consent/createConsentRequest.d.ts.map +1 -0
  46. package/dist/types/components/Consent/createConsentRequestPayload.d.ts.map +1 -0
  47. package/dist/types/components/Consent/createStoredConsent.d.ts.map +1 -0
  48. package/dist/types/components/Consent/index.d.ts.map +1 -0
  49. package/dist/types/components/Consent/injectSendSetConsentRequest.d.ts.map +1 -0
  50. package/dist/types/components/Consent/parseConsentCookie.d.ts.map +1 -0
  51. package/dist/types/components/Consent/validateSetConsentOptions.d.ts.map +1 -0
  52. package/dist/types/components/Context/createComponent.d.ts.map +1 -0
  53. package/dist/types/components/Context/implementationDetails.d.ts.map +1 -0
  54. package/dist/types/components/Context/index.d.ts.map +1 -0
  55. package/dist/types/components/Context/injectDevice.d.ts.map +1 -0
  56. package/dist/types/components/Context/injectEnvironment.d.ts.map +1 -0
  57. package/dist/types/components/Context/injectHighEntropyUserAgentHints.d.ts.map +1 -0
  58. package/dist/types/components/Context/injectPlaceContext.d.ts.map +1 -0
  59. package/dist/types/components/Context/injectTimestamp.d.ts.map +1 -0
  60. package/dist/types/components/Context/injectWeb.d.ts.map +1 -0
  61. package/dist/types/components/DataCollector/index.d.ts.map +1 -0
  62. package/dist/types/components/DataCollector/validateApplyResponse.d.ts.map +1 -0
  63. package/dist/types/components/DataCollector/validateUserEventOptions.d.ts.map +1 -0
  64. package/dist/types/components/EventMerge/createComponent.d.ts.map +1 -0
  65. package/dist/types/components/EventMerge/index.d.ts.map +1 -0
  66. package/dist/types/components/Identity/addEcidToPayload.d.ts.map +1 -0
  67. package/dist/types/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.d.ts.map +1 -0
  68. package/dist/types/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.d.ts.map +1 -0
  69. package/dist/types/components/Identity/configValidators.d.ts.map +1 -0
  70. package/dist/types/components/Identity/constants/authState.d.ts.map +1 -0
  71. package/dist/types/components/Identity/constants/defaultIdSyncTtlMinutes.d.ts.map +1 -0
  72. package/dist/types/components/Identity/createComponent.d.ts.map +1 -0
  73. package/dist/types/components/Identity/createDecodeKndctrCookie.d.ts.map +1 -0
  74. package/dist/types/components/Identity/createLegacyIdentity.d.ts.map +1 -0
  75. package/dist/types/components/Identity/getIdentity/createGetIdentity.d.ts.map +1 -0
  76. package/dist/types/components/Identity/getIdentity/createGetIdentityOptionsValidator.d.ts.map +1 -0
  77. package/dist/types/components/Identity/getIdentity/createIdentityRequest.d.ts.map +1 -0
  78. package/dist/types/components/Identity/getIdentity/createIdentityRequestPayload.d.ts.map +1 -0
  79. package/dist/types/components/Identity/getNamespacesFromResponse.d.ts.map +1 -0
  80. package/dist/types/components/Identity/index.d.ts.map +1 -0
  81. package/dist/types/components/Identity/injectAddEcidQueryToPayload.d.ts.map +1 -0
  82. package/dist/types/components/Identity/injectAddLegacyEcidToPayload.d.ts.map +1 -0
  83. package/dist/types/components/Identity/injectAddQueryStringIdentityToPayload.d.ts.map +1 -0
  84. package/dist/types/components/Identity/injectAwaitIdentityCookie.d.ts.map +1 -0
  85. package/dist/types/components/Identity/injectEnsureSingleIdentity.d.ts.map +1 -0
  86. package/dist/types/components/Identity/injectHandleResponseForIdSyncs.d.ts.map +1 -0
  87. package/dist/types/components/Identity/injectProcessIdSyncs.d.ts.map +1 -0
  88. package/dist/types/components/Identity/injectSetDomainForInitialIdentityPayload.d.ts.map +1 -0
  89. package/dist/types/components/Identity/visitorService/awaitVisitorOptIn.d.ts.map +1 -0
  90. package/dist/types/components/Identity/visitorService/getVisitor.d.ts.map +1 -0
  91. package/dist/types/components/Identity/visitorService/injectGetEcidFromVisitor.d.ts.map +1 -0
  92. package/dist/types/components/LibraryInfo/index.d.ts +22 -0
  93. package/dist/types/components/LibraryInfo/index.d.ts.map +1 -0
  94. package/dist/types/components/MediaAnalyticsBridge/constants/constants.d.ts.map +1 -0
  95. package/dist/types/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.d.ts.map +1 -0
  96. package/dist/types/components/MediaAnalyticsBridge/createGetInstance.d.ts.map +1 -0
  97. package/dist/types/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.d.ts.map +1 -0
  98. package/dist/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts +62 -0
  99. package/dist/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts.map +1 -0
  100. package/dist/types/components/MediaAnalyticsBridge/index.d.ts.map +1 -0
  101. package/dist/types/components/Personalization/constants/loggerMessage.d.ts.map +1 -0
  102. package/dist/types/components/Personalization/constants/scopeType.d.ts.map +1 -0
  103. package/dist/types/components/Personalization/constants/surface.d.ts.map +1 -0
  104. package/dist/types/components/Personalization/createApplyPropositions.d.ts.map +1 -0
  105. package/dist/types/components/Personalization/createClickStorage.d.ts.map +1 -0
  106. package/dist/types/components/Personalization/createComponent.d.ts.map +1 -0
  107. package/dist/types/components/Personalization/createFetchDataHandler.d.ts.map +1 -0
  108. package/dist/types/components/Personalization/createGetPageLocation.d.ts.map +1 -0
  109. package/dist/types/components/Personalization/createHandleConsentFlicker.d.ts.map +1 -0
  110. package/dist/types/components/Personalization/createInteractionStorage.d.ts.map +1 -0
  111. package/dist/types/components/Personalization/createNotificationHandler.d.ts.map +1 -0
  112. package/dist/types/components/Personalization/createOnClickHandler.d.ts.map +1 -0
  113. package/dist/types/components/Personalization/createOnDecisionHandler.d.ts.map +1 -0
  114. package/dist/types/components/Personalization/createPersonalizationDetails.d.ts.map +1 -0
  115. package/dist/types/components/Personalization/createSetTargetMigration.d.ts.map +1 -0
  116. package/dist/types/components/Personalization/createViewCacheManager.d.ts.map +1 -0
  117. package/dist/types/components/Personalization/createViewChangeHandler.d.ts.map +1 -0
  118. package/dist/types/components/Personalization/dom-actions/action.d.ts.map +1 -0
  119. package/dist/types/components/Personalization/dom-actions/addNonceToInlineStyleElements.d.ts.map +1 -0
  120. package/dist/types/components/Personalization/dom-actions/appendHtml.d.ts.map +1 -0
  121. package/dist/types/components/Personalization/dom-actions/clicks/collectClicks.d.ts.map +1 -0
  122. package/dist/types/components/Personalization/dom-actions/clicks/collectInteractions.d.ts.map +1 -0
  123. package/dist/types/components/Personalization/dom-actions/collectInteractions.d.ts.map +1 -0
  124. package/dist/types/components/Personalization/dom-actions/createPreprocess.d.ts.map +1 -0
  125. package/dist/types/components/Personalization/dom-actions/createRedirect.d.ts.map +1 -0
  126. package/dist/types/components/Personalization/dom-actions/dom/createFragment.d.ts.map +1 -0
  127. package/dist/types/components/Personalization/dom-actions/dom/getAttribute.d.ts.map +1 -0
  128. package/dist/types/components/Personalization/dom-actions/dom/getChildNodes.d.ts.map +1 -0
  129. package/dist/types/components/Personalization/dom-actions/dom/getChildren.d.ts.map +1 -0
  130. package/dist/types/components/Personalization/dom-actions/dom/getElementById.d.ts.map +1 -0
  131. package/dist/types/components/Personalization/dom-actions/dom/getFirstChild.d.ts.map +1 -0
  132. package/dist/types/components/Personalization/dom-actions/dom/getNextSibling.d.ts.map +1 -0
  133. package/dist/types/components/Personalization/dom-actions/dom/getNonce.d.ts.map +1 -0
  134. package/dist/types/components/Personalization/dom-actions/dom/getParent.d.ts.map +1 -0
  135. package/dist/types/components/Personalization/dom-actions/dom/helperForEq.d.ts.map +1 -0
  136. package/dist/types/components/Personalization/dom-actions/dom/index.d.ts.map +1 -0
  137. package/dist/types/components/Personalization/dom-actions/dom/insertAfter.d.ts.map +1 -0
  138. package/dist/types/components/Personalization/dom-actions/dom/insertBefore.d.ts.map +1 -0
  139. package/dist/types/components/Personalization/dom-actions/dom/isDomElement.d.ts.map +1 -0
  140. package/dist/types/components/Personalization/dom-actions/dom/matchesSelectorWithEq.d.ts.map +1 -0
  141. package/dist/types/components/Personalization/dom-actions/dom/removeAttribute.d.ts.map +1 -0
  142. package/dist/types/components/Personalization/dom-actions/dom/selectNodesWithEq.d.ts.map +1 -0
  143. package/dist/types/components/Personalization/dom-actions/dom/setAttribute.d.ts.map +1 -0
  144. package/dist/types/components/Personalization/dom-actions/dom/setStyle.d.ts.map +1 -0
  145. package/dist/types/components/Personalization/dom-actions/dom/util.d.ts.map +1 -0
  146. package/dist/types/components/Personalization/dom-actions/images.d.ts.map +1 -0
  147. package/dist/types/components/Personalization/dom-actions/index.d.ts.map +1 -0
  148. package/dist/types/components/Personalization/dom-actions/initDomActionsModules.d.ts.map +1 -0
  149. package/dist/types/components/Personalization/dom-actions/insertHtmlAfter.d.ts.map +1 -0
  150. package/dist/types/components/Personalization/dom-actions/insertHtmlBefore.d.ts.map +1 -0
  151. package/dist/types/components/Personalization/dom-actions/move.d.ts.map +1 -0
  152. package/dist/types/components/Personalization/dom-actions/prependHtml.d.ts.map +1 -0
  153. package/dist/types/components/Personalization/dom-actions/rearrangeChildren.d.ts.map +1 -0
  154. package/dist/types/components/Personalization/dom-actions/remapCustomCodeOffers.d.ts.map +1 -0
  155. package/dist/types/components/Personalization/dom-actions/remapHeadOffers.d.ts.map +1 -0
  156. package/dist/types/components/Personalization/dom-actions/replaceHtml.d.ts.map +1 -0
  157. package/dist/types/components/Personalization/dom-actions/resize.d.ts.map +1 -0
  158. package/dist/types/components/Personalization/dom-actions/scripts.d.ts.map +1 -0
  159. package/dist/types/components/Personalization/dom-actions/setAttributes.d.ts.map +1 -0
  160. package/dist/types/components/Personalization/dom-actions/setHtml.d.ts.map +1 -0
  161. package/dist/types/components/Personalization/dom-actions/setStyles.d.ts.map +1 -0
  162. package/dist/types/components/Personalization/dom-actions/setText.d.ts.map +1 -0
  163. package/dist/types/components/Personalization/dom-actions/swapImage.d.ts.map +1 -0
  164. package/dist/types/components/Personalization/flicker/index.d.ts.map +1 -0
  165. package/dist/types/components/Personalization/handlers/createDecorateProposition.d.ts.map +1 -0
  166. package/dist/types/components/Personalization/handlers/createProcessDomAction.d.ts.map +1 -0
  167. package/dist/types/components/Personalization/handlers/createProcessHtmlContent.d.ts.map +1 -0
  168. package/dist/types/components/Personalization/handlers/createProcessInAppMessage.d.ts.map +1 -0
  169. package/dist/types/components/Personalization/handlers/createProcessPropositions.d.ts.map +1 -0
  170. package/dist/types/components/Personalization/handlers/createProcessRedirect.d.ts.map +1 -0
  171. package/dist/types/components/Personalization/handlers/createRenderStatusHandler.d.ts.map +1 -0
  172. package/dist/types/components/Personalization/handlers/injectCreateProposition.d.ts.map +1 -0
  173. package/dist/types/components/Personalization/handlers/processDefaultContent.d.ts.map +1 -0
  174. package/dist/types/components/Personalization/in-app-message-actions/actions/displayIframeContent.d.ts.map +1 -0
  175. package/dist/types/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.d.ts.map +1 -0
  176. package/dist/types/components/Personalization/in-app-message-actions/utils.d.ts.map +1 -0
  177. package/dist/types/components/Personalization/index.d.ts.map +1 -0
  178. package/dist/types/components/Personalization/utils/addRenderAttemptedToDecisions.d.ts.map +1 -0
  179. package/dist/types/components/Personalization/utils/createAsyncArray.d.ts.map +1 -0
  180. package/dist/types/components/Personalization/utils/isAuthoringModeEnabled.d.ts.map +1 -0
  181. package/dist/types/components/Personalization/utils/metaUtils.d.ts.map +1 -0
  182. package/dist/types/components/Personalization/utils/surfaceUtils.d.ts.map +1 -0
  183. package/dist/types/components/Personalization/validateApplyPropositionsOptions.d.ts.map +1 -0
  184. package/dist/types/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.d.ts.map +1 -0
  185. package/dist/types/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.d.ts.map +1 -0
  186. package/dist/types/components/RulesEngine/constants/index.d.ts +23 -0
  187. package/dist/types/components/RulesEngine/constants/index.d.ts.map +1 -0
  188. package/dist/types/components/RulesEngine/createApplyResponse.d.ts +13 -0
  189. package/dist/types/components/RulesEngine/createApplyResponse.d.ts.map +1 -0
  190. package/dist/types/components/RulesEngine/createConsequenceAdapter.d.ts.map +1 -0
  191. package/dist/types/components/RulesEngine/createContextProvider.d.ts.map +1 -0
  192. package/dist/types/components/RulesEngine/createDecisionProvider.d.ts.map +1 -0
  193. package/dist/types/components/RulesEngine/createEvaluableRulesetPayload.d.ts.map +1 -0
  194. package/dist/types/components/RulesEngine/createEvaluateRulesetsCommand.d.ts.map +1 -0
  195. package/dist/types/components/RulesEngine/createEventRegistry.d.ts +6 -0
  196. package/dist/types/components/RulesEngine/createEventRegistry.d.ts.map +1 -0
  197. package/dist/types/components/RulesEngine/createOnResponseHandler.d.ts.map +1 -0
  198. package/dist/types/components/RulesEngine/createSubscribeRulesetItems.d.ts.map +1 -0
  199. package/dist/types/components/RulesEngine/index.d.ts.map +1 -0
  200. package/dist/types/components/RulesEngine/types.d.ts +107 -0
  201. package/dist/types/components/RulesEngine/types.d.ts.map +1 -0
  202. package/dist/types/components/RulesEngine/utils/createEventPruner.d.ts.map +1 -0
  203. package/dist/types/components/RulesEngine/utils/extractPayloadsFromEventHistoryOperations.d.ts +5 -0
  204. package/dist/types/components/RulesEngine/utils/extractPayloadsFromEventHistoryOperations.d.ts.map +1 -0
  205. package/dist/types/components/RulesEngine/utils/generateEventHash.d.ts.map +1 -0
  206. package/dist/types/components/RulesEngine/utils/getExpirationDate.d.ts.map +1 -0
  207. package/dist/types/components/RulesEngine/utils/getPropositionData.d.ts.map +1 -0
  208. package/dist/types/components/RulesEngine/utils/hasExperienceData.d.ts.map +1 -0
  209. package/dist/types/components/RulesEngine/utils/index.d.ts.map +1 -0
  210. package/dist/types/components/RulesEngine/utils/storage.d.ts +8 -0
  211. package/dist/types/components/RulesEngine/utils/storage.d.ts.map +1 -0
  212. package/dist/types/components/StreamingMedia/configValidators.d.ts.map +1 -0
  213. package/dist/types/components/StreamingMedia/constants/eventTypes.d.ts.map +1 -0
  214. package/dist/types/components/StreamingMedia/constants/playbackState.d.ts.map +1 -0
  215. package/dist/types/components/StreamingMedia/createMediaEventManager.d.ts.map +1 -0
  216. package/dist/types/components/StreamingMedia/createMediaRequest.d.ts.map +1 -0
  217. package/dist/types/components/StreamingMedia/createMediaResponseHandler.d.ts.map +1 -0
  218. package/dist/types/components/StreamingMedia/createMediaSessionCacheManager.d.ts.map +1 -0
  219. package/dist/types/components/StreamingMedia/createStreamingMediaComponent.d.ts.map +1 -0
  220. package/dist/types/components/StreamingMedia/createTrackMediaEvent.d.ts.map +1 -0
  221. package/dist/types/components/StreamingMedia/createTrackMediaSession.d.ts.map +1 -0
  222. package/dist/types/components/StreamingMedia/index.d.ts.map +1 -0
  223. package/dist/types/components/StreamingMedia/validateMediaEventOptions.d.ts.map +1 -0
  224. package/dist/types/components/StreamingMedia/validateMediaSessionOptions.d.ts.map +1 -0
  225. package/dist/types/constants/apiVersion.d.ts.map +1 -0
  226. package/dist/types/constants/browser.d.ts.map +1 -0
  227. package/dist/types/constants/consentPurpose.d.ts.map +1 -0
  228. package/dist/types/constants/consentStatus.d.ts.map +1 -0
  229. package/dist/types/constants/contentType.d.ts.map +1 -0
  230. package/dist/types/constants/cookieNameKey.d.ts.map +1 -0
  231. package/dist/types/constants/cookieNamePrefix.d.ts.map +1 -0
  232. package/dist/types/constants/coreCommands.d.ts.map +1 -0
  233. package/dist/types/constants/coreNamespace.d.ts.map +1 -0
  234. package/dist/types/constants/debugQueryParam.d.ts.map +1 -0
  235. package/dist/types/constants/decisionProvider.d.ts.map +1 -0
  236. package/dist/types/constants/domain.d.ts.map +1 -0
  237. package/dist/types/constants/ecidNamespace.d.ts.map +1 -0
  238. package/dist/types/constants/edgeBasePath.d.ts.map +1 -0
  239. package/dist/types/constants/elementAttribute.d.ts.map +1 -0
  240. package/dist/types/constants/eventType.d.ts.map +1 -0
  241. package/dist/types/constants/highEntropyUserAgentClientHints.d.ts.map +1 -0
  242. package/dist/types/constants/httpHeaderNames.d.ts.map +1 -0
  243. package/dist/types/constants/httpStatusCode.d.ts.map +1 -0
  244. package/dist/types/constants/identityMapAuthenticatedState.d.ts.map +1 -0
  245. package/dist/types/constants/legacyCookies.d.ts.map +1 -0
  246. package/dist/types/constants/libraryName.d.ts.map +1 -0
  247. package/dist/types/constants/libraryVersion.d.ts +2 -0
  248. package/dist/types/constants/libraryVersion.d.ts.map +1 -0
  249. package/dist/types/constants/namespace.d.ts.map +1 -0
  250. package/dist/types/constants/pageWideScope.d.ts.map +1 -0
  251. package/dist/types/constants/propositionEventType.d.ts.map +1 -0
  252. package/dist/types/constants/propositionInteractionType.d.ts.map +1 -0
  253. package/dist/types/constants/queryStringIdentityParam.d.ts.map +1 -0
  254. package/dist/types/constants/schema.d.ts +12 -0
  255. package/dist/types/constants/schema.d.ts.map +1 -0
  256. package/dist/types/constants/sessionDataKeys.d.ts.map +1 -0
  257. package/dist/types/constants/shadowSeparator.d.ts.map +1 -0
  258. package/dist/types/constants/tagName.d.ts.map +1 -0
  259. package/dist/types/core/buildAndValidateConfig.d.ts.map +1 -0
  260. package/dist/types/core/componentCreators.d.ts.map +1 -0
  261. package/dist/types/core/config/createConfig.d.ts.map +1 -0
  262. package/dist/types/core/config/createCoreConfigs.d.ts.map +1 -0
  263. package/dist/types/core/consent/createConsent.d.ts.map +1 -0
  264. package/dist/types/core/consent/createConsentStateMachine.d.ts.map +1 -0
  265. package/dist/types/core/createComponentRegistry.d.ts.map +1 -0
  266. package/dist/types/core/createCookieTransfer.d.ts.map +1 -0
  267. package/dist/types/core/createEvent.d.ts.map +1 -0
  268. package/dist/types/core/createEventManager.d.ts.map +1 -0
  269. package/dist/types/core/createInstanceFunction.d.ts.map +1 -0
  270. package/dist/types/core/createLifecycle.d.ts.map +1 -0
  271. package/dist/types/core/createLogController.d.ts.map +1 -0
  272. package/dist/types/core/createLogger.d.ts.map +1 -0
  273. package/dist/types/core/edgeNetwork/handleRequestFailure.d.ts.map +1 -0
  274. package/dist/types/core/edgeNetwork/injectApplyResponse.d.ts.map +1 -0
  275. package/dist/types/core/edgeNetwork/injectExtractEdgeInfo.d.ts.map +1 -0
  276. package/dist/types/core/edgeNetwork/injectGetLocationHint.d.ts.map +1 -0
  277. package/dist/types/core/edgeNetwork/injectProcessWarningsAndErrors.d.ts.map +1 -0
  278. package/dist/types/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts.map +1 -0
  279. package/dist/types/core/edgeNetwork/mergeLifecycleResponses.d.ts.map +1 -0
  280. package/dist/types/core/getMonitors.d.ts.map +1 -0
  281. package/dist/types/core/index.d.ts.map +1 -0
  282. package/dist/types/core/initializeComponents.d.ts.map +1 -0
  283. package/dist/types/core/injectCreateResponse.d.ts.map +1 -0
  284. package/dist/types/core/injectExecuteCommand.d.ts.map +1 -0
  285. package/dist/types/core/injectHandleError.d.ts.map +1 -0
  286. package/dist/types/core/injectShouldTransferCookie.d.ts.map +1 -0
  287. package/dist/types/core/network/getRequestRetryDelay.d.ts.map +1 -0
  288. package/dist/types/core/network/injectSendNetworkRequest.d.ts.map +1 -0
  289. package/dist/types/core/network/isRequestRetryable.d.ts.map +1 -0
  290. package/dist/types/core/network/requestMethods/injectSendBeaconRequest.d.ts.map +1 -0
  291. package/dist/types/core/network/requestMethods/injectSendFetchRequest.d.ts.map +1 -0
  292. package/dist/types/core/requiredComponentCreators.d.ts.map +1 -0
  293. package/dist/types/core/types.d.ts.map +1 -0
  294. package/dist/types/core/validateCommandOptions.d.ts.map +1 -0
  295. package/dist/types/index.d.ts.map +1 -0
  296. package/dist/types/standalone.d.ts.map +1 -0
  297. package/dist/types/utils/assignConcatArrayValues.d.ts.map +1 -0
  298. package/dist/types/utils/clone.d.ts.map +1 -0
  299. package/dist/types/utils/cookieJar.d.ts.map +1 -0
  300. package/dist/types/utils/createCallbackAggregator.d.ts.map +1 -0
  301. package/dist/types/utils/createCollect.d.ts.map +1 -0
  302. package/dist/types/utils/createEventMergeId.d.ts.map +1 -0
  303. package/dist/types/utils/createLoggingCookieJar.d.ts.map +1 -0
  304. package/dist/types/utils/createMerger.d.ts.map +1 -0
  305. package/dist/types/utils/createSubscription.d.ts.map +1 -0
  306. package/dist/types/utils/createTaskQueue.d.ts.map +1 -0
  307. package/dist/types/utils/decodeUriComponentSafely.d.ts.map +1 -0
  308. package/dist/types/utils/deduplicateArray.d.ts.map +1 -0
  309. package/dist/types/utils/deepAssign.d.ts.map +1 -0
  310. package/dist/types/utils/defer.d.ts.map +1 -0
  311. package/dist/types/utils/dom/appendNode.d.ts.map +1 -0
  312. package/dist/types/utils/dom/awaitSelector.d.ts.map +1 -0
  313. package/dist/types/utils/dom/createNode.d.ts.map +1 -0
  314. package/dist/types/utils/dom/index.d.ts.map +1 -0
  315. package/dist/types/utils/dom/isShadowSelector.d.ts.map +1 -0
  316. package/dist/types/utils/dom/matchesSelector.d.ts.map +1 -0
  317. package/dist/types/utils/dom/querySelectorAll.d.ts.map +1 -0
  318. package/dist/types/utils/dom/removeNode.d.ts.map +1 -0
  319. package/dist/types/utils/dom/selectNodes.d.ts.map +1 -0
  320. package/dist/types/utils/dom/selectNodesWithShadow.d.ts.map +1 -0
  321. package/dist/types/utils/event.d.ts.map +1 -0
  322. package/dist/types/utils/filterObject.d.ts.map +1 -0
  323. package/dist/types/utils/fireImage.d.ts.map +1 -0
  324. package/dist/types/utils/flattenArray.d.ts.map +1 -0
  325. package/dist/types/utils/flattenObject.d.ts.map +1 -0
  326. package/dist/types/utils/fnv1a32Hex.d.ts.map +1 -0
  327. package/dist/types/utils/getApexDomain.d.ts.map +1 -0
  328. package/dist/types/utils/getLastArrayItems.d.ts.map +1 -0
  329. package/dist/types/utils/getNamespacedCookieName.d.ts.map +1 -0
  330. package/dist/types/utils/groupBy.d.ts.map +1 -0
  331. package/dist/types/utils/index.d.ts +52 -0
  332. package/dist/types/utils/index.d.ts.map +1 -0
  333. package/dist/types/utils/injectAreThirdPartyCookiesSupportedByDefault.d.ts.map +1 -0
  334. package/dist/types/utils/injectDoesIdentityCookieExist.d.ts.map +1 -0
  335. package/dist/types/utils/injectFireReferrerHideableImage.d.ts.map +1 -0
  336. package/dist/types/utils/injectGetBrowser.d.ts.map +1 -0
  337. package/dist/types/utils/injectStorage.d.ts.map +1 -0
  338. package/dist/types/utils/intersection.d.ts.map +1 -0
  339. package/dist/types/utils/isBlankString.d.ts.map +1 -0
  340. package/dist/types/utils/isBoolean.d.ts.map +1 -0
  341. package/dist/types/utils/isEmptyObject.d.ts.map +1 -0
  342. package/dist/types/utils/isFunction.d.ts.map +1 -0
  343. package/dist/types/utils/isInteger.d.ts.map +1 -0
  344. package/dist/types/utils/isNamespacedCookieName.d.ts.map +1 -0
  345. package/dist/types/utils/isNil.d.ts.map +1 -0
  346. package/dist/types/utils/isNonEmptyArray.d.ts.map +1 -0
  347. package/dist/types/utils/isNonEmptyString.d.ts.map +1 -0
  348. package/dist/types/utils/isNumber.d.ts.map +1 -0
  349. package/dist/types/utils/isObject.d.ts.map +1 -0
  350. package/dist/types/utils/isString.d.ts.map +1 -0
  351. package/dist/types/utils/isUnique.d.ts.map +1 -0
  352. package/dist/types/utils/isValidRegExp.d.ts.map +1 -0
  353. package/dist/types/utils/lazy.d.ts.map +1 -0
  354. package/dist/types/utils/networkErrors.d.ts.map +1 -0
  355. package/dist/types/utils/noop.d.ts.map +1 -0
  356. package/dist/types/utils/parseUrl.d.ts.map +1 -0
  357. package/dist/types/utils/prepareConfigOverridesForEdge.d.ts.map +1 -0
  358. package/dist/types/utils/querystring.d.ts.map +1 -0
  359. package/dist/types/utils/request/createAddIdentity.d.ts.map +1 -0
  360. package/dist/types/utils/request/createDataCollectionRequest.d.ts.map +1 -0
  361. package/dist/types/utils/request/createDataCollectionRequestPayload.d.ts.map +1 -0
  362. package/dist/types/utils/request/createGetAssuranceValidationTokenParams.d.ts.map +1 -0
  363. package/dist/types/utils/request/createHasIdentity.d.ts.map +1 -0
  364. package/dist/types/utils/request/createRequest.d.ts.map +1 -0
  365. package/dist/types/utils/request/createRequestParams.d.ts.map +1 -0
  366. package/dist/types/utils/request/createRequestPayload.d.ts.map +1 -0
  367. package/dist/types/utils/request/index.d.ts.map +1 -0
  368. package/dist/types/utils/sanitizeOrgIdForCookieName.d.ts.map +1 -0
  369. package/dist/types/utils/sortObjectKeysRecursively.d.ts.map +1 -0
  370. package/dist/types/utils/stackError.d.ts.map +1 -0
  371. package/dist/types/utils/stringToBoolean.d.ts.map +1 -0
  372. package/dist/types/utils/toArray.d.ts.map +1 -0
  373. package/dist/types/utils/toError.d.ts.map +1 -0
  374. package/dist/types/utils/toISOStringLocal.d.ts.map +1 -0
  375. package/dist/types/utils/toInteger.d.ts.map +1 -0
  376. package/dist/types/utils/updateErrorMessage.d.ts.map +1 -0
  377. package/dist/types/utils/uuid.d.ts.map +1 -0
  378. package/dist/types/utils/validateConfigOverride.d.ts.map +1 -0
  379. package/dist/types/utils/validateIdentityMap.d.ts.map +1 -0
  380. package/dist/types/utils/validation/booleanValidator.d.ts.map +1 -0
  381. package/dist/types/utils/validation/callbackValidator.d.ts.map +1 -0
  382. package/dist/types/utils/validation/createAnyOfValidator.d.ts.map +1 -0
  383. package/dist/types/utils/validation/createArrayOfValidator.d.ts.map +1 -0
  384. package/dist/types/utils/validation/createDefaultValidator.d.ts.map +1 -0
  385. package/dist/types/utils/validation/createDeprecatedValidator.d.ts.map +1 -0
  386. package/dist/types/utils/validation/createLiteralValidator.d.ts.map +1 -0
  387. package/dist/types/utils/validation/createMapOfValuesValidator.d.ts.map +1 -0
  388. package/dist/types/utils/validation/createMaximumValidator.d.ts.map +1 -0
  389. package/dist/types/utils/validation/createMinimumValidator.d.ts.map +1 -0
  390. package/dist/types/utils/validation/createNoUnknownFieldsValidator.d.ts.map +1 -0
  391. package/dist/types/utils/validation/createNonEmptyValidator.d.ts.map +1 -0
  392. package/dist/types/utils/validation/createObjectOfValidator.d.ts.map +1 -0
  393. package/dist/types/utils/validation/createRenamedValidator.d.ts.map +1 -0
  394. package/dist/types/utils/validation/createUniqueItemsValidator.d.ts.map +1 -0
  395. package/dist/types/utils/validation/createUniqueValidator.d.ts.map +1 -0
  396. package/dist/types/utils/validation/domainValidator.d.ts.map +1 -0
  397. package/dist/types/utils/validation/index.d.ts.map +1 -0
  398. package/dist/types/utils/validation/integerValidator.d.ts.map +1 -0
  399. package/dist/types/utils/validation/matchesRegexpValidator.d.ts.map +1 -0
  400. package/dist/types/utils/validation/numberValidator.d.ts.map +1 -0
  401. package/dist/types/utils/validation/regexpValidator.d.ts.map +1 -0
  402. package/dist/types/utils/validation/requiredValidator.d.ts.map +1 -0
  403. package/dist/types/utils/validation/stringValidator.d.ts.map +1 -0
  404. package/dist/types/utils/validation/utils.d.ts.map +1 -0
  405. package/dist/utils.cjs +3258 -0
  406. package/dist/utils.js +3206 -0
  407. package/package.json +57 -59
  408. package/rollup.config.js +143 -235
  409. package/scripts/alloyBuilder.js +7 -8
  410. package/babel.config.js +0 -76
  411. package/libEs5/baseCode/index.js +0 -62
  412. package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +0 -62
  413. package/libEs5/components/ActivityCollector/configValidators.js +0 -41
  414. package/libEs5/components/ActivityCollector/createClickActivityStorage.js +0 -38
  415. package/libEs5/components/ActivityCollector/createClickedElementProperties.js +0 -222
  416. package/libEs5/components/ActivityCollector/createGetClickedElementProperties.js +0 -74
  417. package/libEs5/components/ActivityCollector/createInjectClickedElementProperties.js +0 -75
  418. package/libEs5/components/ActivityCollector/createRecallAndInjectClickedElementProperties.js +0 -49
  419. package/libEs5/components/ActivityCollector/createStorePageViewProperties.js +0 -26
  420. package/libEs5/components/ActivityCollector/getLinkName.js +0 -125
  421. package/libEs5/components/ActivityCollector/getLinkRegion.js +0 -62
  422. package/libEs5/components/ActivityCollector/index.js +0 -135
  423. package/libEs5/components/ActivityCollector/utils/activityMapExtensionEnabled.js +0 -20
  424. package/libEs5/components/ActivityCollector/utils/createTransientStorage.js +0 -29
  425. package/libEs5/components/ActivityCollector/utils/determineLinkType.js +0 -29
  426. package/libEs5/components/ActivityCollector/utils/dom/elementHasClickHandler.js +0 -18
  427. package/libEs5/components/ActivityCollector/utils/dom/extractDomain.js +0 -23
  428. package/libEs5/components/ActivityCollector/utils/dom/findClickableElement.js +0 -29
  429. package/libEs5/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.js +0 -45
  430. package/libEs5/components/ActivityCollector/utils/dom/isButtonSubmitElement.js +0 -18
  431. package/libEs5/components/ActivityCollector/utils/dom/isDownloadLink.js +0 -29
  432. package/libEs5/components/ActivityCollector/utils/dom/isExitLink.js +0 -26
  433. package/libEs5/components/ActivityCollector/utils/dom/isInputSubmitElement.js +0 -29
  434. package/libEs5/components/ActivityCollector/utils/dom/isSupportedAnchorElement.js +0 -21
  435. package/libEs5/components/ActivityCollector/utils/dom/isSupportedTextNode.js +0 -31
  436. package/libEs5/components/ActivityCollector/utils/hasPageName.js +0 -22
  437. package/libEs5/components/ActivityCollector/utils/isDifferentDomains.js +0 -21
  438. package/libEs5/components/ActivityCollector/utils/trimQueryFromUrl.js +0 -31
  439. package/libEs5/components/ActivityCollector/utils/truncateWhiteSpace.js +0 -25
  440. package/libEs5/components/ActivityCollector/utils/urlStartsWithScheme.js +0 -18
  441. package/libEs5/components/ActivityCollector/validateClickCollectionConfig.js +0 -43
  442. package/libEs5/components/Audiences/index.js +0 -51
  443. package/libEs5/components/Audiences/injectProcessDestinations.js +0 -65
  444. package/libEs5/components/Audiences/injectProcessResponse.js +0 -45
  445. package/libEs5/components/Consent/computeConsentHash.js +0 -17
  446. package/libEs5/components/Consent/configValidators.js +0 -19
  447. package/libEs5/components/Consent/createComponent.js +0 -90
  448. package/libEs5/components/Consent/createConsentHashStore.js +0 -64
  449. package/libEs5/components/Consent/createConsentRequest.js +0 -32
  450. package/libEs5/components/Consent/createConsentRequestPayload.js +0 -34
  451. package/libEs5/components/Consent/createStoredConsent.js +0 -34
  452. package/libEs5/components/Consent/index.js +0 -69
  453. package/libEs5/components/Consent/injectSendSetConsentRequest.js +0 -52
  454. package/libEs5/components/Consent/parseConsentCookie.js +0 -29
  455. package/libEs5/components/Consent/validateSetConsentOptions.js +0 -21
  456. package/libEs5/components/Context/createComponent.js +0 -37
  457. package/libEs5/components/Context/implementationDetails.js +0 -28
  458. package/libEs5/components/Context/index.js +0 -56
  459. package/libEs5/components/Context/injectDevice.js +0 -74
  460. package/libEs5/components/Context/injectEnvironment.js +0 -45
  461. package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +0 -51
  462. package/libEs5/components/Context/injectPlaceContext.js +0 -33
  463. package/libEs5/components/Context/injectTimestamp.js +0 -24
  464. package/libEs5/components/Context/injectWeb.js +0 -31
  465. package/libEs5/components/DataCollector/index.js +0 -110
  466. package/libEs5/components/DataCollector/validateApplyResponse.js +0 -38
  467. package/libEs5/components/DataCollector/validateUserEventOptions.js +0 -52
  468. package/libEs5/components/EventMerge/createComponent.js +0 -27
  469. package/libEs5/components/EventMerge/createEventMergeId.js +0 -21
  470. package/libEs5/components/EventMerge/index.js +0 -24
  471. package/libEs5/components/Identity/addEcidToPayload.js +0 -21
  472. package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -25
  473. package/libEs5/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -38
  474. package/libEs5/components/Identity/configValidators.js +0 -21
  475. package/libEs5/components/Identity/constants/authState.js +0 -18
  476. package/libEs5/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -15
  477. package/libEs5/components/Identity/createComponent.js +0 -141
  478. package/libEs5/components/Identity/createDecodeKndctrCookie.js +0 -268
  479. package/libEs5/components/Identity/createLegacyIdentity.js +0 -73
  480. package/libEs5/components/Identity/getIdentity/createGetIdentity.js +0 -39
  481. package/libEs5/components/Identity/getIdentity/createGetIdentityOptionsValidator.js +0 -44
  482. package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +0 -32
  483. package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -30
  484. package/libEs5/components/Identity/getNamespacesFromResponse.js +0 -24
  485. package/libEs5/components/Identity/index.js +0 -149
  486. package/libEs5/components/Identity/injectAddEcidQueryToPayload.js +0 -34
  487. package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +0 -34
  488. package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -67
  489. package/libEs5/components/Identity/injectAwaitIdentityCookie.js +0 -57
  490. package/libEs5/components/Identity/injectEnsureSingleIdentity.js +0 -103
  491. package/libEs5/components/Identity/injectHandleResponseForIdSyncs.js +0 -23
  492. package/libEs5/components/Identity/injectProcessIdSyncs.js +0 -42
  493. package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -35
  494. package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +0 -37
  495. package/libEs5/components/Identity/visitorService/getVisitor.js +0 -20
  496. package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -52
  497. package/libEs5/components/LibraryInfo/index.js +0 -63
  498. package/libEs5/components/MediaAnalyticsBridge/constants/constants.js +0 -144
  499. package/libEs5/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.js +0 -49
  500. package/libEs5/components/MediaAnalyticsBridge/createGetInstance.js +0 -247
  501. package/libEs5/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js +0 -91
  502. package/libEs5/components/MediaAnalyticsBridge/createMediaHelper.js +0 -184
  503. package/libEs5/components/MediaAnalyticsBridge/index.js +0 -71
  504. package/libEs5/components/Personalization/constants/loggerMessage.js +0 -16
  505. package/libEs5/components/Personalization/constants/scopeType.js +0 -18
  506. package/libEs5/components/Personalization/constants/surface.js +0 -19
  507. package/libEs5/components/Personalization/createApplyPropositions.js +0 -127
  508. package/libEs5/components/Personalization/createClickStorage.js +0 -63
  509. package/libEs5/components/Personalization/createComponent.js +0 -139
  510. package/libEs5/components/Personalization/createFetchDataHandler.js +0 -126
  511. package/libEs5/components/Personalization/createGetPageLocation.js +0 -23
  512. package/libEs5/components/Personalization/createHandleConsentFlicker.js +0 -33
  513. package/libEs5/components/Personalization/createInteractionStorage.js +0 -90
  514. package/libEs5/components/Personalization/createNotificationHandler.js +0 -51
  515. package/libEs5/components/Personalization/createOnClickHandler.js +0 -86
  516. package/libEs5/components/Personalization/createOnDecisionHandler.js +0 -75
  517. package/libEs5/components/Personalization/createPersonalizationDetails.js +0 -99
  518. package/libEs5/components/Personalization/createSetTargetMigration.js +0 -31
  519. package/libEs5/components/Personalization/createViewCacheManager.js +0 -88
  520. package/libEs5/components/Personalization/createViewChangeHandler.js +0 -62
  521. package/libEs5/components/Personalization/dom-actions/action.js +0 -155
  522. package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -40
  523. package/libEs5/components/Personalization/dom-actions/appendHtml.js +0 -34
  524. package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +0 -85
  525. package/libEs5/components/Personalization/dom-actions/clicks/collectInteractions.js +0 -78
  526. package/libEs5/components/Personalization/dom-actions/collectInteractions.js +0 -18
  527. package/libEs5/components/Personalization/dom-actions/createPreprocess.js +0 -24
  528. package/libEs5/components/Personalization/dom-actions/createRedirect.js +0 -26
  529. package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +0 -22
  530. package/libEs5/components/Personalization/dom-actions/dom/getAttribute.js +0 -18
  531. package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +0 -25
  532. package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +0 -25
  533. package/libEs5/components/Personalization/dom-actions/dom/getElementById.js +0 -24
  534. package/libEs5/components/Personalization/dom-actions/dom/getFirstChild.js +0 -18
  535. package/libEs5/components/Personalization/dom-actions/dom/getNextSibling.js +0 -18
  536. package/libEs5/components/Personalization/dom-actions/dom/getNonce.js +0 -36
  537. package/libEs5/components/Personalization/dom-actions/dom/getParent.js +0 -18
  538. package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +0 -24
  539. package/libEs5/components/Personalization/dom-actions/dom/index.js +0 -100
  540. package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +0 -26
  541. package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +0 -25
  542. package/libEs5/components/Personalization/dom-actions/dom/isDomElement.js +0 -16
  543. package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -38
  544. package/libEs5/components/Personalization/dom-actions/dom/removeAttribute.js +0 -18
  545. package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -105
  546. package/libEs5/components/Personalization/dom-actions/dom/setAttribute.js +0 -18
  547. package/libEs5/components/Personalization/dom-actions/dom/setStyle.js +0 -24
  548. package/libEs5/components/Personalization/dom-actions/dom/util.js +0 -20
  549. package/libEs5/components/Personalization/dom-actions/images.js +0 -37
  550. package/libEs5/components/Personalization/dom-actions/index.js +0 -9
  551. package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +0 -69
  552. package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +0 -35
  553. package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +0 -33
  554. package/libEs5/components/Personalization/dom-actions/move.js +0 -31
  555. package/libEs5/components/Personalization/dom-actions/prependHtml.js +0 -49
  556. package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +0 -37
  557. package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -41
  558. package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +0 -56
  559. package/libEs5/components/Personalization/dom-actions/replaceHtml.js +0 -22
  560. package/libEs5/components/Personalization/dom-actions/resize.js +0 -31
  561. package/libEs5/components/Personalization/dom-actions/scripts.js +0 -110
  562. package/libEs5/components/Personalization/dom-actions/setAttributes.js +0 -22
  563. package/libEs5/components/Personalization/dom-actions/setHtml.js +0 -28
  564. package/libEs5/components/Personalization/dom-actions/setStyles.js +0 -26
  565. package/libEs5/components/Personalization/dom-actions/setText.js +0 -19
  566. package/libEs5/components/Personalization/dom-actions/swapImage.js +0 -33
  567. package/libEs5/components/Personalization/flicker/index.js +0 -103
  568. package/libEs5/components/Personalization/handlers/createDecorateProposition.js +0 -63
  569. package/libEs5/components/Personalization/handlers/createProcessDomAction.js +0 -75
  570. package/libEs5/components/Personalization/handlers/createProcessHtmlContent.js +0 -51
  571. package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +0 -85
  572. package/libEs5/components/Personalization/handlers/createProcessPropositions.js +0 -220
  573. package/libEs5/components/Personalization/handlers/createProcessRedirect.js +0 -64
  574. package/libEs5/components/Personalization/handlers/createRenderStatusHandler.js +0 -59
  575. package/libEs5/components/Personalization/handlers/injectCreateProposition.js +0 -127
  576. package/libEs5/components/Personalization/handlers/processDefaultContent.js +0 -23
  577. package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -306
  578. package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -21
  579. package/libEs5/components/Personalization/in-app-message-actions/utils.js +0 -56
  580. package/libEs5/components/Personalization/index.js +0 -199
  581. package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -25
  582. package/libEs5/components/Personalization/utils/createAsyncArray.js +0 -39
  583. package/libEs5/components/Personalization/utils/isAuthoringModeEnabled.js +0 -18
  584. package/libEs5/components/Personalization/utils/metaUtils.js +0 -28
  585. package/libEs5/components/Personalization/utils/surfaceUtils.js +0 -88
  586. package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +0 -48
  587. package/libEs5/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -34
  588. package/libEs5/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -27
  589. package/libEs5/components/RulesEngine/constants/index.js +0 -18
  590. package/libEs5/components/RulesEngine/constants.js +0 -28
  591. package/libEs5/components/RulesEngine/createApplyResponse.js +0 -36
  592. package/libEs5/components/RulesEngine/createConsequenceAdapter.js +0 -34
  593. package/libEs5/components/RulesEngine/createContextProvider.js +0 -101
  594. package/libEs5/components/RulesEngine/createDecisionProvider.js +0 -54
  595. package/libEs5/components/RulesEngine/createEvaluableRulesetPayload.js +0 -90
  596. package/libEs5/components/RulesEngine/createEvaluateRulesetsCommand.js +0 -53
  597. package/libEs5/components/RulesEngine/createEventRegistry.js +0 -112
  598. package/libEs5/components/RulesEngine/createOnResponseHandler.js +0 -51
  599. package/libEs5/components/RulesEngine/createSubscribeRulesetItems.js +0 -138
  600. package/libEs5/components/RulesEngine/index.js +0 -157
  601. package/libEs5/components/RulesEngine/utils/createEventPruner.js +0 -65
  602. package/libEs5/components/RulesEngine/utils/generateEventHash.js +0 -36
  603. package/libEs5/components/RulesEngine/utils/getExpirationDate.js +0 -20
  604. package/libEs5/components/RulesEngine/utils/getPropositionData.js +0 -19
  605. package/libEs5/components/RulesEngine/utils/hasExperienceData.js +0 -21
  606. package/libEs5/components/RulesEngine/utils/index.js +0 -68
  607. package/libEs5/components/RulesEngine/utils/storage.js +0 -50
  608. package/libEs5/components/StreamingMedia/configValidators.js +0 -24
  609. package/libEs5/components/StreamingMedia/constants/eventTypes.js +0 -34
  610. package/libEs5/components/StreamingMedia/constants/playbackState.js +0 -19
  611. package/libEs5/components/StreamingMedia/createMediaEventManager.js +0 -134
  612. package/libEs5/components/StreamingMedia/createMediaRequest.js +0 -32
  613. package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +0 -64
  614. package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +0 -65
  615. package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +0 -76
  616. package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +0 -99
  617. package/libEs5/components/StreamingMedia/createTrackMediaSession.js +0 -58
  618. package/libEs5/components/StreamingMedia/index.js +0 -69
  619. package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +0 -38
  620. package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +0 -40
  621. package/libEs5/constants/apiVersion.js +0 -15
  622. package/libEs5/constants/browser.js +0 -22
  623. package/libEs5/constants/consentPurpose.js +0 -16
  624. package/libEs5/constants/consentStatus.js +0 -18
  625. package/libEs5/constants/contentType.js +0 -16
  626. package/libEs5/constants/cookieNameKey.js +0 -18
  627. package/libEs5/constants/cookieNamePrefix.js +0 -16
  628. package/libEs5/constants/coreCommands.js +0 -17
  629. package/libEs5/constants/coreNamespace.js +0 -15
  630. package/libEs5/constants/debugQueryParam.js +0 -15
  631. package/libEs5/constants/decisionProvider.js +0 -17
  632. package/libEs5/constants/domain.js +0 -17
  633. package/libEs5/constants/ecidNamespace.js +0 -15
  634. package/libEs5/constants/edgeBasePath.js +0 -15
  635. package/libEs5/constants/elementAttribute.js +0 -16
  636. package/libEs5/constants/eventType.js +0 -21
  637. package/libEs5/constants/handle.js +0 -15
  638. package/libEs5/constants/highEntropyUserAgentClientHints.js +0 -15
  639. package/libEs5/constants/httpHeaderNames.js +0 -17
  640. package/libEs5/constants/httpStatusCode.js +0 -20
  641. package/libEs5/constants/identityMapAuthenticatedState.js +0 -17
  642. package/libEs5/constants/legacyCookies.js +0 -18
  643. package/libEs5/constants/libraryName.js +0 -15
  644. package/libEs5/constants/libraryVersion.js +0 -17
  645. package/libEs5/constants/namespace.js +0 -15
  646. package/libEs5/constants/pageWideScope.js +0 -15
  647. package/libEs5/constants/propositionEventType.js +0 -41
  648. package/libEs5/constants/propositionInteractionType.js +0 -18
  649. package/libEs5/constants/queryStringIdentityParam.js +0 -15
  650. package/libEs5/constants/schema.js +0 -25
  651. package/libEs5/constants/sessionDataKeys.js +0 -15
  652. package/libEs5/constants/shadowSeparator.js +0 -15
  653. package/libEs5/constants/tagName.js +0 -22
  654. package/libEs5/core/buildAndValidateConfig.js +0 -112
  655. package/libEs5/core/componentCreators.js +0 -58
  656. package/libEs5/core/config/createConfig.js +0 -21
  657. package/libEs5/core/config/createCoreConfigs.js +0 -28
  658. package/libEs5/core/consent/createConsent.js +0 -64
  659. package/libEs5/core/consent/createConsentStateMachine.js +0 -130
  660. package/libEs5/core/createComponentRegistry.js +0 -89
  661. package/libEs5/core/createCookieTransfer.js +0 -83
  662. package/libEs5/core/createEvent.js +0 -165
  663. package/libEs5/core/createEventManager.js +0 -142
  664. package/libEs5/core/createInstanceFunction.js +0 -21
  665. package/libEs5/core/createLifecycle.js +0 -75
  666. package/libEs5/core/createLogController.js +0 -73
  667. package/libEs5/core/createLogger.js +0 -121
  668. package/libEs5/core/edgeNetwork/handleRequestFailure.js +0 -28
  669. package/libEs5/core/edgeNetwork/injectApplyResponse.js +0 -65
  670. package/libEs5/core/edgeNetwork/injectExtractEdgeInfo.js +0 -39
  671. package/libEs5/core/edgeNetwork/injectGetLocationHint.js +0 -36
  672. package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -47
  673. package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -130
  674. package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +0 -24
  675. package/libEs5/core/getMonitors.js +0 -32
  676. package/libEs5/core/index.js +0 -245
  677. package/libEs5/core/initializeComponents.js +0 -44
  678. package/libEs5/core/injectCreateResponse.js +0 -75
  679. package/libEs5/core/injectExecuteCommand.js +0 -118
  680. package/libEs5/core/injectHandleError.js +0 -39
  681. package/libEs5/core/injectShouldTransferCookie.js +0 -31
  682. package/libEs5/core/network/getRequestRetryDelay.js +0 -76
  683. package/libEs5/core/network/injectSendNetworkRequest.js +0 -102
  684. package/libEs5/core/network/isRequestRetryable.js +0 -29
  685. package/libEs5/core/network/requestMethods/injectSendBeaconRequest.js +0 -42
  686. package/libEs5/core/network/requestMethods/injectSendFetchRequest.js +0 -44
  687. package/libEs5/core/requiredComponentCreators.js +0 -30
  688. package/libEs5/core/types.js +0 -19
  689. package/libEs5/core/validateCommandOptions.js +0 -38
  690. package/libEs5/index.js +0 -110
  691. package/libEs5/standalone.js +0 -23
  692. package/libEs5/utils/assignConcatArrayValues.js +0 -41
  693. package/libEs5/utils/clone.js +0 -21
  694. package/libEs5/utils/cookieJar.js +0 -21
  695. package/libEs5/utils/createCallbackAggregator.js +0 -37
  696. package/libEs5/utils/createCollect.js +0 -54
  697. package/libEs5/utils/createLoggingCookieJar.js +0 -32
  698. package/libEs5/utils/createMerger.js +0 -32
  699. package/libEs5/utils/createSubscription.js +0 -103
  700. package/libEs5/utils/createTaskQueue.js +0 -51
  701. package/libEs5/utils/decodeUriComponentSafely.js +0 -22
  702. package/libEs5/utils/deduplicateArray.js +0 -27
  703. package/libEs5/utils/deepAssign.js +0 -46
  704. package/libEs5/utils/defer.js +0 -27
  705. package/libEs5/utils/dom/appendNode.js +0 -18
  706. package/libEs5/utils/dom/awaitSelector.js +0 -114
  707. package/libEs5/utils/dom/createNode.js +0 -45
  708. package/libEs5/utils/dom/index.js +0 -58
  709. package/libEs5/utils/dom/isShadowSelector.js +0 -17
  710. package/libEs5/utils/dom/matchesSelector.js +0 -29
  711. package/libEs5/utils/dom/querySelectorAll.js +0 -24
  712. package/libEs5/utils/dom/removeNode.js +0 -22
  713. package/libEs5/utils/dom/selectNodes.js +0 -30
  714. package/libEs5/utils/dom/selectNodesWithShadow.js +0 -57
  715. package/libEs5/utils/event.js +0 -49
  716. package/libEs5/utils/filterObject.js +0 -57
  717. package/libEs5/utils/fireImage.js +0 -40
  718. package/libEs5/utils/flattenArray.js +0 -18
  719. package/libEs5/utils/flattenObject.js +0 -34
  720. package/libEs5/utils/fnv1a32Hex.js +0 -51
  721. package/libEs5/utils/getApexDomain.js +0 -46
  722. package/libEs5/utils/getLastArrayItems.js +0 -22
  723. package/libEs5/utils/getNamespacedCookieName.js +0 -18
  724. package/libEs5/utils/groupBy.js +0 -32
  725. package/libEs5/utils/index.js +0 -352
  726. package/libEs5/utils/injectAreThirdPartyCookiesSupportedByDefault.js +0 -28
  727. package/libEs5/utils/injectDoesIdentityCookieExist.js +0 -28
  728. package/libEs5/utils/injectFireReferrerHideableImage.js +0 -71
  729. package/libEs5/utils/injectGetBrowser.js +0 -70
  730. package/libEs5/utils/injectStorage.js +0 -72
  731. package/libEs5/utils/intersection.js +0 -22
  732. package/libEs5/utils/isBlankString.js +0 -22
  733. package/libEs5/utils/isBoolean.js +0 -21
  734. package/libEs5/utils/isEmptyObject.js +0 -22
  735. package/libEs5/utils/isFunction.js +0 -21
  736. package/libEs5/utils/isInteger.js +0 -25
  737. package/libEs5/utils/isNamespacedCookieName.js +0 -25
  738. package/libEs5/utils/isNil.js +0 -21
  739. package/libEs5/utils/isNonEmptyArray.js +0 -21
  740. package/libEs5/utils/isNonEmptyString.js +0 -22
  741. package/libEs5/utils/isNumber.js +0 -21
  742. package/libEs5/utils/isObject.js +0 -22
  743. package/libEs5/utils/isString.js +0 -21
  744. package/libEs5/utils/isUnique.js +0 -31
  745. package/libEs5/utils/isValidRegExp.js +0 -27
  746. package/libEs5/utils/lazy.js +0 -26
  747. package/libEs5/utils/networkErrors.js +0 -26
  748. package/libEs5/utils/noop.js +0 -19
  749. package/libEs5/utils/parseUrl.js +0 -98
  750. package/libEs5/utils/prepareConfigOverridesForEdge.js +0 -53
  751. package/libEs5/utils/querystring.js +0 -16
  752. package/libEs5/utils/request/createAddIdentity.js +0 -23
  753. package/libEs5/utils/request/createDataCollectionRequest.js +0 -75
  754. package/libEs5/utils/request/createDataCollectionRequestPayload.js +0 -34
  755. package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +0 -47
  756. package/libEs5/utils/request/createHasIdentity.js +0 -18
  757. package/libEs5/utils/request/createRequest.js +0 -65
  758. package/libEs5/utils/request/createRequestParams.js +0 -50
  759. package/libEs5/utils/request/createRequestPayload.js +0 -37
  760. package/libEs5/utils/request/index.js +0 -58
  761. package/libEs5/utils/sanitizeOrgIdForCookieName.js +0 -16
  762. package/libEs5/utils/sortObjectKeysRecursively.js +0 -42
  763. package/libEs5/utils/stackError.js +0 -38
  764. package/libEs5/utils/stringToBoolean.js +0 -19
  765. package/libEs5/utils/toArray.js +0 -24
  766. package/libEs5/utils/toError.js +0 -24
  767. package/libEs5/utils/toISOStringLocal.js +0 -54
  768. package/libEs5/utils/toInteger.js +0 -31
  769. package/libEs5/utils/updateErrorMessage.js +0 -27
  770. package/libEs5/utils/uuid.js +0 -16
  771. package/libEs5/utils/validateConfigOverride.js +0 -16
  772. package/libEs5/utils/validateIdentityMap.js +0 -25
  773. package/libEs5/utils/validation/booleanValidator.js +0 -21
  774. package/libEs5/utils/validation/callbackValidator.js +0 -21
  775. package/libEs5/utils/validation/createAnyOfValidator.js +0 -29
  776. package/libEs5/utils/validation/createArrayOfValidator.js +0 -32
  777. package/libEs5/utils/validation/createDefaultValidator.js +0 -21
  778. package/libEs5/utils/validation/createDeprecatedValidator.js +0 -29
  779. package/libEs5/utils/validation/createLiteralValidator.js +0 -20
  780. package/libEs5/utils/validation/createMapOfValuesValidator.js +0 -38
  781. package/libEs5/utils/validation/createMaximumValidator.js +0 -20
  782. package/libEs5/utils/validation/createMinimumValidator.js +0 -20
  783. package/libEs5/utils/validation/createNoUnknownFieldsValidator.js +0 -28
  784. package/libEs5/utils/validation/createNonEmptyValidator.js +0 -26
  785. package/libEs5/utils/validation/createObjectOfValidator.js +0 -46
  786. package/libEs5/utils/validation/createRenamedValidator.js +0 -41
  787. package/libEs5/utils/validation/createUniqueItemsValidator.js +0 -23
  788. package/libEs5/utils/validation/createUniqueValidator.js +0 -24
  789. package/libEs5/utils/validation/domainValidator.js +0 -22
  790. package/libEs5/utils/validation/index.js +0 -240
  791. package/libEs5/utils/validation/integerValidator.js +0 -21
  792. package/libEs5/utils/validation/matchesRegexpValidator.js +0 -20
  793. package/libEs5/utils/validation/numberValidator.js +0 -21
  794. package/libEs5/utils/validation/regexpValidator.js +0 -21
  795. package/libEs5/utils/validation/requiredValidator.js +0 -21
  796. package/libEs5/utils/validation/stringValidator.js +0 -21
  797. package/libEs5/utils/validation/utils.js +0 -131
  798. package/libEs6/baseCode/index.js +0 -61
  799. package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +0 -56
  800. package/libEs6/components/ActivityCollector/configValidators.js +0 -39
  801. package/libEs6/components/ActivityCollector/createClickActivityStorage.js +0 -34
  802. package/libEs6/components/ActivityCollector/createClickedElementProperties.js +0 -218
  803. package/libEs6/components/ActivityCollector/createGetClickedElementProperties.js +0 -69
  804. package/libEs6/components/ActivityCollector/createInjectClickedElementProperties.js +0 -69
  805. package/libEs6/components/ActivityCollector/createRecallAndInjectClickedElementProperties.js +0 -45
  806. package/libEs6/components/ActivityCollector/createStorePageViewProperties.js +0 -22
  807. package/libEs6/components/ActivityCollector/getLinkName.js +0 -122
  808. package/libEs6/components/ActivityCollector/getLinkRegion.js +0 -58
  809. package/libEs6/components/ActivityCollector/index.js +0 -128
  810. package/libEs6/components/ActivityCollector/utils/activityMapExtensionEnabled.js +0 -14
  811. package/libEs6/components/ActivityCollector/utils/createTransientStorage.js +0 -26
  812. package/libEs6/components/ActivityCollector/utils/determineLinkType.js +0 -26
  813. package/libEs6/components/ActivityCollector/utils/dom/elementHasClickHandler.js +0 -15
  814. package/libEs6/components/ActivityCollector/utils/dom/extractDomain.js +0 -20
  815. package/libEs6/components/ActivityCollector/utils/dom/findClickableElement.js +0 -26
  816. package/libEs6/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.js +0 -42
  817. package/libEs6/components/ActivityCollector/utils/dom/isButtonSubmitElement.js +0 -15
  818. package/libEs6/components/ActivityCollector/utils/dom/isDownloadLink.js +0 -26
  819. package/libEs6/components/ActivityCollector/utils/dom/isExitLink.js +0 -23
  820. package/libEs6/components/ActivityCollector/utils/dom/isInputSubmitElement.js +0 -26
  821. package/libEs6/components/ActivityCollector/utils/dom/isSupportedAnchorElement.js +0 -18
  822. package/libEs6/components/ActivityCollector/utils/dom/isSupportedTextNode.js +0 -27
  823. package/libEs6/components/ActivityCollector/utils/hasPageName.js +0 -19
  824. package/libEs6/components/ActivityCollector/utils/isDifferentDomains.js +0 -18
  825. package/libEs6/components/ActivityCollector/utils/trimQueryFromUrl.js +0 -28
  826. package/libEs6/components/ActivityCollector/utils/truncateWhiteSpace.js +0 -22
  827. package/libEs6/components/ActivityCollector/utils/urlStartsWithScheme.js +0 -15
  828. package/libEs6/components/ActivityCollector/validateClickCollectionConfig.js +0 -40
  829. package/libEs6/components/Audiences/index.js +0 -47
  830. package/libEs6/components/Audiences/injectProcessDestinations.js +0 -60
  831. package/libEs6/components/Audiences/injectProcessResponse.js +0 -38
  832. package/libEs6/components/Consent/computeConsentHash.js +0 -14
  833. package/libEs6/components/Consent/configValidators.js +0 -16
  834. package/libEs6/components/Consent/createComponent.js +0 -85
  835. package/libEs6/components/Consent/createConsentHashStore.js +0 -57
  836. package/libEs6/components/Consent/createConsentRequest.js +0 -28
  837. package/libEs6/components/Consent/createConsentRequestPayload.js +0 -31
  838. package/libEs6/components/Consent/createStoredConsent.js +0 -30
  839. package/libEs6/components/Consent/index.js +0 -65
  840. package/libEs6/components/Consent/injectSendSetConsentRequest.js +0 -45
  841. package/libEs6/components/Consent/parseConsentCookie.js +0 -26
  842. package/libEs6/components/Consent/validateSetConsentOptions.js +0 -18
  843. package/libEs6/components/Context/createComponent.js +0 -32
  844. package/libEs6/components/Context/implementationDetails.js +0 -24
  845. package/libEs6/components/Context/index.js +0 -52
  846. package/libEs6/components/Context/injectDevice.js +0 -70
  847. package/libEs6/components/Context/injectEnvironment.js +0 -42
  848. package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +0 -46
  849. package/libEs6/components/Context/injectPlaceContext.js +0 -29
  850. package/libEs6/components/Context/injectTimestamp.js +0 -21
  851. package/libEs6/components/Context/injectWeb.js +0 -28
  852. package/libEs6/components/DataCollector/index.js +0 -106
  853. package/libEs6/components/DataCollector/validateApplyResponse.js +0 -33
  854. package/libEs6/components/DataCollector/validateUserEventOptions.js +0 -48
  855. package/libEs6/components/EventMerge/createComponent.js +0 -23
  856. package/libEs6/components/EventMerge/createEventMergeId.js +0 -18
  857. package/libEs6/components/EventMerge/index.js +0 -21
  858. package/libEs6/components/Identity/addEcidToPayload.js +0 -18
  859. package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -23
  860. package/libEs6/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -31
  861. package/libEs6/components/Identity/configValidators.js +0 -18
  862. package/libEs6/components/Identity/constants/authState.js +0 -15
  863. package/libEs6/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -13
  864. package/libEs6/components/Identity/createComponent.js +0 -134
  865. package/libEs6/components/Identity/createDecodeKndctrCookie.js +0 -263
  866. package/libEs6/components/Identity/createLegacyIdentity.js +0 -69
  867. package/libEs6/components/Identity/getIdentity/createGetIdentity.js +0 -34
  868. package/libEs6/components/Identity/getIdentity/createGetIdentityOptionsValidator.js +0 -40
  869. package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +0 -28
  870. package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -27
  871. package/libEs6/components/Identity/getNamespacesFromResponse.js +0 -20
  872. package/libEs6/components/Identity/index.js +0 -145
  873. package/libEs6/components/Identity/injectAddEcidQueryToPayload.js +0 -30
  874. package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +0 -30
  875. package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -61
  876. package/libEs6/components/Identity/injectAwaitIdentityCookie.js +0 -52
  877. package/libEs6/components/Identity/injectEnsureSingleIdentity.js +0 -98
  878. package/libEs6/components/Identity/injectHandleResponseForIdSyncs.js +0 -19
  879. package/libEs6/components/Identity/injectProcessIdSyncs.js +0 -34
  880. package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -31
  881. package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +0 -33
  882. package/libEs6/components/Identity/visitorService/getVisitor.js +0 -17
  883. package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -48
  884. package/libEs6/components/LibraryInfo/index.js +0 -58
  885. package/libEs6/components/MediaAnalyticsBridge/constants/constants.js +0 -141
  886. package/libEs6/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.js +0 -46
  887. package/libEs6/components/MediaAnalyticsBridge/createGetInstance.js +0 -239
  888. package/libEs6/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js +0 -85
  889. package/libEs6/components/MediaAnalyticsBridge/createMediaHelper.js +0 -180
  890. package/libEs6/components/MediaAnalyticsBridge/index.js +0 -67
  891. package/libEs6/components/Personalization/constants/loggerMessage.js +0 -13
  892. package/libEs6/components/Personalization/constants/scopeType.js +0 -15
  893. package/libEs6/components/Personalization/constants/surface.js +0 -16
  894. package/libEs6/components/Personalization/createApplyPropositions.js +0 -119
  895. package/libEs6/components/Personalization/createClickStorage.js +0 -58
  896. package/libEs6/components/Personalization/createComponent.js +0 -132
  897. package/libEs6/components/Personalization/createFetchDataHandler.js +0 -118
  898. package/libEs6/components/Personalization/createGetPageLocation.js +0 -17
  899. package/libEs6/components/Personalization/createHandleConsentFlicker.js +0 -26
  900. package/libEs6/components/Personalization/createInteractionStorage.js +0 -84
  901. package/libEs6/components/Personalization/createNotificationHandler.js +0 -45
  902. package/libEs6/components/Personalization/createOnClickHandler.js +0 -79
  903. package/libEs6/components/Personalization/createOnDecisionHandler.js +0 -70
  904. package/libEs6/components/Personalization/createPersonalizationDetails.js +0 -94
  905. package/libEs6/components/Personalization/createSetTargetMigration.js +0 -27
  906. package/libEs6/components/Personalization/createViewCacheManager.js +0 -84
  907. package/libEs6/components/Personalization/createViewChangeHandler.js +0 -57
  908. package/libEs6/components/Personalization/dom-actions/action.js +0 -85
  909. package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -36
  910. package/libEs6/components/Personalization/dom-actions/appendHtml.js +0 -31
  911. package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +0 -81
  912. package/libEs6/components/Personalization/dom-actions/clicks/collectInteractions.js +0 -74
  913. package/libEs6/components/Personalization/dom-actions/collectInteractions.js +0 -15
  914. package/libEs6/components/Personalization/dom-actions/createPreprocess.js +0 -21
  915. package/libEs6/components/Personalization/dom-actions/createRedirect.js +0 -22
  916. package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +0 -19
  917. package/libEs6/components/Personalization/dom-actions/dom/getAttribute.js +0 -15
  918. package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +0 -22
  919. package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +0 -22
  920. package/libEs6/components/Personalization/dom-actions/dom/getElementById.js +0 -21
  921. package/libEs6/components/Personalization/dom-actions/dom/getFirstChild.js +0 -15
  922. package/libEs6/components/Personalization/dom-actions/dom/getNextSibling.js +0 -15
  923. package/libEs6/components/Personalization/dom-actions/dom/getNonce.js +0 -33
  924. package/libEs6/components/Personalization/dom-actions/dom/getParent.js +0 -15
  925. package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +0 -19
  926. package/libEs6/components/Personalization/dom-actions/dom/index.js +0 -26
  927. package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +0 -23
  928. package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +0 -22
  929. package/libEs6/components/Personalization/dom-actions/dom/isDomElement.js +0 -12
  930. package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -35
  931. package/libEs6/components/Personalization/dom-actions/dom/removeAttribute.js +0 -15
  932. package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -100
  933. package/libEs6/components/Personalization/dom-actions/dom/setAttribute.js +0 -15
  934. package/libEs6/components/Personalization/dom-actions/dom/setStyle.js +0 -21
  935. package/libEs6/components/Personalization/dom-actions/dom/util.js +0 -16
  936. package/libEs6/components/Personalization/dom-actions/images.js +0 -31
  937. package/libEs6/components/Personalization/dom-actions/index.js +0 -13
  938. package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +0 -65
  939. package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +0 -32
  940. package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +0 -30
  941. package/libEs6/components/Personalization/dom-actions/move.js +0 -28
  942. package/libEs6/components/Personalization/dom-actions/prependHtml.js +0 -46
  943. package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +0 -33
  944. package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -36
  945. package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +0 -52
  946. package/libEs6/components/Personalization/dom-actions/replaceHtml.js +0 -19
  947. package/libEs6/components/Personalization/dom-actions/resize.js +0 -28
  948. package/libEs6/components/Personalization/dom-actions/scripts.js +0 -101
  949. package/libEs6/components/Personalization/dom-actions/setAttributes.js +0 -19
  950. package/libEs6/components/Personalization/dom-actions/setHtml.js +0 -24
  951. package/libEs6/components/Personalization/dom-actions/setStyles.js +0 -23
  952. package/libEs6/components/Personalization/dom-actions/setText.js +0 -16
  953. package/libEs6/components/Personalization/dom-actions/swapImage.js +0 -30
  954. package/libEs6/components/Personalization/flicker/index.js +0 -96
  955. package/libEs6/components/Personalization/handlers/createDecorateProposition.js +0 -59
  956. package/libEs6/components/Personalization/handlers/createProcessDomAction.js +0 -69
  957. package/libEs6/components/Personalization/handlers/createProcessHtmlContent.js +0 -44
  958. package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +0 -79
  959. package/libEs6/components/Personalization/handlers/createProcessPropositions.js +0 -214
  960. package/libEs6/components/Personalization/handlers/createProcessRedirect.js +0 -56
  961. package/libEs6/components/Personalization/handlers/createRenderStatusHandler.js +0 -56
  962. package/libEs6/components/Personalization/handlers/injectCreateProposition.js +0 -121
  963. package/libEs6/components/Personalization/handlers/processDefaultContent.js +0 -19
  964. package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -293
  965. package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -17
  966. package/libEs6/components/Personalization/in-app-message-actions/utils.js +0 -50
  967. package/libEs6/components/Personalization/index.js +0 -195
  968. package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -21
  969. package/libEs6/components/Personalization/utils/createAsyncArray.js +0 -35
  970. package/libEs6/components/Personalization/utils/isAuthoringModeEnabled.js +0 -15
  971. package/libEs6/components/Personalization/utils/metaUtils.js +0 -23
  972. package/libEs6/components/Personalization/utils/surfaceUtils.js +0 -76
  973. package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +0 -42
  974. package/libEs6/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -30
  975. package/libEs6/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -24
  976. package/libEs6/components/RulesEngine/constants/index.js +0 -15
  977. package/libEs6/components/RulesEngine/constants.js +0 -25
  978. package/libEs6/components/RulesEngine/createApplyResponse.js +0 -31
  979. package/libEs6/components/RulesEngine/createConsequenceAdapter.js +0 -29
  980. package/libEs6/components/RulesEngine/createContextProvider.js +0 -95
  981. package/libEs6/components/RulesEngine/createDecisionProvider.js +0 -44
  982. package/libEs6/components/RulesEngine/createEvaluableRulesetPayload.js +0 -85
  983. package/libEs6/components/RulesEngine/createEvaluateRulesetsCommand.js +0 -45
  984. package/libEs6/components/RulesEngine/createEventRegistry.js +0 -106
  985. package/libEs6/components/RulesEngine/createOnResponseHandler.js +0 -45
  986. package/libEs6/components/RulesEngine/createSubscribeRulesetItems.js +0 -129
  987. package/libEs6/components/RulesEngine/index.js +0 -148
  988. package/libEs6/components/RulesEngine/utils/createEventPruner.js +0 -54
  989. package/libEs6/components/RulesEngine/utils/generateEventHash.js +0 -33
  990. package/libEs6/components/RulesEngine/utils/getExpirationDate.js +0 -16
  991. package/libEs6/components/RulesEngine/utils/getPropositionData.js +0 -14
  992. package/libEs6/components/RulesEngine/utils/hasExperienceData.js +0 -17
  993. package/libEs6/components/RulesEngine/utils/index.js +0 -18
  994. package/libEs6/components/RulesEngine/utils/storage.js +0 -40
  995. package/libEs6/components/StreamingMedia/configValidators.js +0 -22
  996. package/libEs6/components/StreamingMedia/constants/eventTypes.js +0 -31
  997. package/libEs6/components/StreamingMedia/constants/playbackState.js +0 -16
  998. package/libEs6/components/StreamingMedia/createMediaEventManager.js +0 -125
  999. package/libEs6/components/StreamingMedia/createMediaRequest.js +0 -28
  1000. package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +0 -58
  1001. package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +0 -59
  1002. package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +0 -69
  1003. package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +0 -93
  1004. package/libEs6/components/StreamingMedia/createTrackMediaSession.js +0 -53
  1005. package/libEs6/components/StreamingMedia/index.js +0 -64
  1006. package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +0 -33
  1007. package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +0 -36
  1008. package/libEs6/constants/apiVersion.js +0 -12
  1009. package/libEs6/constants/browser.js +0 -19
  1010. package/libEs6/constants/consentPurpose.js +0 -13
  1011. package/libEs6/constants/consentStatus.js +0 -15
  1012. package/libEs6/constants/contentType.js +0 -13
  1013. package/libEs6/constants/cookieNameKey.js +0 -15
  1014. package/libEs6/constants/cookieNamePrefix.js +0 -14
  1015. package/libEs6/constants/coreCommands.js +0 -14
  1016. package/libEs6/constants/coreNamespace.js +0 -13
  1017. package/libEs6/constants/debugQueryParam.js +0 -13
  1018. package/libEs6/constants/decisionProvider.js +0 -14
  1019. package/libEs6/constants/domain.js +0 -14
  1020. package/libEs6/constants/ecidNamespace.js +0 -13
  1021. package/libEs6/constants/edgeBasePath.js +0 -12
  1022. package/libEs6/constants/elementAttribute.js +0 -13
  1023. package/libEs6/constants/eventType.js +0 -18
  1024. package/libEs6/constants/handle.js +0 -12
  1025. package/libEs6/constants/highEntropyUserAgentClientHints.js +0 -13
  1026. package/libEs6/constants/httpHeaderNames.js +0 -14
  1027. package/libEs6/constants/httpStatusCode.js +0 -17
  1028. package/libEs6/constants/identityMapAuthenticatedState.js +0 -14
  1029. package/libEs6/constants/legacyCookies.js +0 -15
  1030. package/libEs6/constants/libraryName.js +0 -13
  1031. package/libEs6/constants/libraryVersion.js +0 -16
  1032. package/libEs6/constants/namespace.js +0 -13
  1033. package/libEs6/constants/pageWideScope.js +0 -13
  1034. package/libEs6/constants/propositionEventType.js +0 -36
  1035. package/libEs6/constants/propositionInteractionType.js +0 -15
  1036. package/libEs6/constants/queryStringIdentityParam.js +0 -13
  1037. package/libEs6/constants/schema.js +0 -22
  1038. package/libEs6/constants/sessionDataKeys.js +0 -12
  1039. package/libEs6/constants/shadowSeparator.js +0 -13
  1040. package/libEs6/constants/tagName.js +0 -19
  1041. package/libEs6/core/buildAndValidateConfig.js +0 -96
  1042. package/libEs6/core/componentCreators.js +0 -24
  1043. package/libEs6/core/config/createConfig.js +0 -18
  1044. package/libEs6/core/config/createCoreConfigs.js +0 -25
  1045. package/libEs6/core/consent/createConsent.js +0 -60
  1046. package/libEs6/core/consent/createConsentStateMachine.js +0 -125
  1047. package/libEs6/core/createComponentRegistry.js +0 -83
  1048. package/libEs6/core/createCookieTransfer.js +0 -78
  1049. package/libEs6/core/createEvent.js +0 -161
  1050. package/libEs6/core/createEventManager.js +0 -135
  1051. package/libEs6/core/createInstanceFunction.js +0 -17
  1052. package/libEs6/core/createLifecycle.js +0 -65
  1053. package/libEs6/core/createLogController.js +0 -68
  1054. package/libEs6/core/createLogger.js +0 -114
  1055. package/libEs6/core/edgeNetwork/handleRequestFailure.js +0 -24
  1056. package/libEs6/core/edgeNetwork/injectApplyResponse.js +0 -58
  1057. package/libEs6/core/edgeNetwork/injectExtractEdgeInfo.js +0 -33
  1058. package/libEs6/core/edgeNetwork/injectGetLocationHint.js +0 -32
  1059. package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -42
  1060. package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -123
  1061. package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +0 -21
  1062. package/libEs6/core/getMonitors.js +0 -31
  1063. package/libEs6/core/index.js +0 -238
  1064. package/libEs6/core/initializeComponents.js +0 -40
  1065. package/libEs6/core/injectCreateResponse.js +0 -68
  1066. package/libEs6/core/injectExecuteCommand.js +0 -113
  1067. package/libEs6/core/injectHandleError.js +0 -33
  1068. package/libEs6/core/injectShouldTransferCookie.js +0 -25
  1069. package/libEs6/core/network/getRequestRetryDelay.js +0 -72
  1070. package/libEs6/core/network/injectSendNetworkRequest.js +0 -96
  1071. package/libEs6/core/network/isRequestRetryable.js +0 -24
  1072. package/libEs6/core/network/requestMethods/injectSendBeaconRequest.js +0 -38
  1073. package/libEs6/core/network/requestMethods/injectSendFetchRequest.js +0 -40
  1074. package/libEs6/core/requiredComponentCreators.js +0 -16
  1075. package/libEs6/core/types.js +0 -16
  1076. package/libEs6/core/validateCommandOptions.js +0 -33
  1077. package/libEs6/index.js +0 -103
  1078. package/libEs6/standalone.js +0 -22
  1079. package/libEs6/utils/assignConcatArrayValues.js +0 -35
  1080. package/libEs6/utils/clone.js +0 -18
  1081. package/libEs6/utils/cookieJar.js +0 -19
  1082. package/libEs6/utils/createCallbackAggregator.js +0 -31
  1083. package/libEs6/utils/createCollect.js +0 -48
  1084. package/libEs6/utils/createLoggingCookieJar.js +0 -28
  1085. package/libEs6/utils/createMerger.js +0 -30
  1086. package/libEs6/utils/createSubscription.js +0 -87
  1087. package/libEs6/utils/createTaskQueue.js +0 -48
  1088. package/libEs6/utils/decodeUriComponentSafely.js +0 -19
  1089. package/libEs6/utils/deduplicateArray.js +0 -23
  1090. package/libEs6/utils/deepAssign.js +0 -40
  1091. package/libEs6/utils/defer.js +0 -24
  1092. package/libEs6/utils/dom/appendNode.js +0 -15
  1093. package/libEs6/utils/dom/awaitSelector.js +0 -102
  1094. package/libEs6/utils/dom/createNode.js +0 -38
  1095. package/libEs6/utils/dom/index.js +0 -20
  1096. package/libEs6/utils/dom/isShadowSelector.js +0 -14
  1097. package/libEs6/utils/dom/matchesSelector.js +0 -26
  1098. package/libEs6/utils/dom/querySelectorAll.js +0 -20
  1099. package/libEs6/utils/dom/removeNode.js +0 -19
  1100. package/libEs6/utils/dom/selectNodes.js +0 -28
  1101. package/libEs6/utils/dom/selectNodesWithShadow.js +0 -53
  1102. package/libEs6/utils/event.js +0 -45
  1103. package/libEs6/utils/filterObject.js +0 -55
  1104. package/libEs6/utils/fireImage.js +0 -37
  1105. package/libEs6/utils/flattenArray.js +0 -13
  1106. package/libEs6/utils/flattenObject.js +0 -28
  1107. package/libEs6/utils/fnv1a32Hex.js +0 -48
  1108. package/libEs6/utils/getApexDomain.js +0 -42
  1109. package/libEs6/utils/getLastArrayItems.js +0 -19
  1110. package/libEs6/utils/getNamespacedCookieName.js +0 -15
  1111. package/libEs6/utils/groupBy.js +0 -29
  1112. package/libEs6/utils/index.js +0 -63
  1113. package/libEs6/utils/injectAreThirdPartyCookiesSupportedByDefault.js +0 -22
  1114. package/libEs6/utils/injectDoesIdentityCookieExist.js +0 -24
  1115. package/libEs6/utils/injectFireReferrerHideableImage.js +0 -65
  1116. package/libEs6/utils/injectGetBrowser.js +0 -65
  1117. package/libEs6/utils/injectStorage.js +0 -68
  1118. package/libEs6/utils/intersection.js +0 -18
  1119. package/libEs6/utils/isBlankString.js +0 -20
  1120. package/libEs6/utils/isBoolean.js +0 -18
  1121. package/libEs6/utils/isEmptyObject.js +0 -20
  1122. package/libEs6/utils/isFunction.js +0 -18
  1123. package/libEs6/utils/isInteger.js +0 -23
  1124. package/libEs6/utils/isNamespacedCookieName.js +0 -23
  1125. package/libEs6/utils/isNil.js +0 -18
  1126. package/libEs6/utils/isNonEmptyArray.js +0 -18
  1127. package/libEs6/utils/isNonEmptyString.js +0 -20
  1128. package/libEs6/utils/isNumber.js +0 -18
  1129. package/libEs6/utils/isObject.js +0 -20
  1130. package/libEs6/utils/isString.js +0 -18
  1131. package/libEs6/utils/isUnique.js +0 -27
  1132. package/libEs6/utils/isValidRegExp.js +0 -24
  1133. package/libEs6/utils/lazy.js +0 -22
  1134. package/libEs6/utils/networkErrors.js +0 -22
  1135. package/libEs6/utils/noop.js +0 -16
  1136. package/libEs6/utils/parseUrl.js +0 -93
  1137. package/libEs6/utils/prepareConfigOverridesForEdge.js +0 -50
  1138. package/libEs6/utils/querystring.js +0 -14
  1139. package/libEs6/utils/request/createAddIdentity.js +0 -19
  1140. package/libEs6/utils/request/createDataCollectionRequest.js +0 -69
  1141. package/libEs6/utils/request/createDataCollectionRequestPayload.js +0 -30
  1142. package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +0 -42
  1143. package/libEs6/utils/request/createHasIdentity.js +0 -15
  1144. package/libEs6/utils/request/createRequest.js +0 -63
  1145. package/libEs6/utils/request/createRequestParams.js +0 -46
  1146. package/libEs6/utils/request/createRequestPayload.js +0 -35
  1147. package/libEs6/utils/request/index.js +0 -20
  1148. package/libEs6/utils/sanitizeOrgIdForCookieName.js +0 -13
  1149. package/libEs6/utils/sortObjectKeysRecursively.js +0 -38
  1150. package/libEs6/utils/stackError.js +0 -35
  1151. package/libEs6/utils/stringToBoolean.js +0 -15
  1152. package/libEs6/utils/toArray.js +0 -21
  1153. package/libEs6/utils/toError.js +0 -21
  1154. package/libEs6/utils/toISOStringLocal.js +0 -50
  1155. package/libEs6/utils/toInteger.js +0 -29
  1156. package/libEs6/utils/updateErrorMessage.js +0 -23
  1157. package/libEs6/utils/uuid.js +0 -14
  1158. package/libEs6/utils/validateConfigOverride.js +0 -14
  1159. package/libEs6/utils/validateIdentityMap.js +0 -23
  1160. package/libEs6/utils/validation/booleanValidator.js +0 -18
  1161. package/libEs6/utils/validation/callbackValidator.js +0 -17
  1162. package/libEs6/utils/validation/createAnyOfValidator.js +0 -25
  1163. package/libEs6/utils/validation/createArrayOfValidator.js +0 -28
  1164. package/libEs6/utils/validation/createDefaultValidator.js +0 -18
  1165. package/libEs6/utils/validation/createDeprecatedValidator.js +0 -24
  1166. package/libEs6/utils/validation/createLiteralValidator.js +0 -16
  1167. package/libEs6/utils/validation/createMapOfValuesValidator.js +0 -35
  1168. package/libEs6/utils/validation/createMaximumValidator.js +0 -16
  1169. package/libEs6/utils/validation/createMinimumValidator.js +0 -16
  1170. package/libEs6/utils/validation/createNoUnknownFieldsValidator.js +0 -25
  1171. package/libEs6/utils/validation/createNonEmptyValidator.js +0 -23
  1172. package/libEs6/utils/validation/createObjectOfValidator.js +0 -43
  1173. package/libEs6/utils/validation/createRenamedValidator.js +0 -37
  1174. package/libEs6/utils/validation/createUniqueItemsValidator.js +0 -19
  1175. package/libEs6/utils/validation/createUniqueValidator.js +0 -21
  1176. package/libEs6/utils/validation/domainValidator.js +0 -17
  1177. package/libEs6/utils/validation/index.js +0 -236
  1178. package/libEs6/utils/validation/integerValidator.js +0 -18
  1179. package/libEs6/utils/validation/matchesRegexpValidator.js +0 -17
  1180. package/libEs6/utils/validation/numberValidator.js +0 -18
  1181. package/libEs6/utils/validation/regexpValidator.js +0 -18
  1182. package/libEs6/utils/validation/requiredValidator.js +0 -18
  1183. package/libEs6/utils/validation/stringValidator.js +0 -17
  1184. package/libEs6/utils/validation/utils.js +0 -124
  1185. package/scripts/helpers/versionBabelPlugin.js +0 -43
  1186. package/types/baseCode/index.d.ts.map +0 -1
  1187. package/types/baseCode.d.ts.map +0 -1
  1188. package/types/components/ActivityCollector/attachClickActivityCollector.d.ts.map +0 -1
  1189. package/types/components/ActivityCollector/configValidators.d.ts.map +0 -1
  1190. package/types/components/ActivityCollector/createClickActivityStorage.d.ts.map +0 -1
  1191. package/types/components/ActivityCollector/createClickedElementProperties.d.ts.map +0 -1
  1192. package/types/components/ActivityCollector/createGetClickedElementProperties.d.ts.map +0 -1
  1193. package/types/components/ActivityCollector/createInjectClickedElementProperties.d.ts.map +0 -1
  1194. package/types/components/ActivityCollector/createRecallAndInjectClickedElementProperties.d.ts.map +0 -1
  1195. package/types/components/ActivityCollector/createStorePageViewProperties.d.ts.map +0 -1
  1196. package/types/components/ActivityCollector/getLinkName.d.ts.map +0 -1
  1197. package/types/components/ActivityCollector/getLinkRegion.d.ts.map +0 -1
  1198. package/types/components/ActivityCollector/index.d.ts.map +0 -1
  1199. package/types/components/ActivityCollector/utils/activityMapExtensionEnabled.d.ts.map +0 -1
  1200. package/types/components/ActivityCollector/utils/createTransientStorage.d.ts.map +0 -1
  1201. package/types/components/ActivityCollector/utils/determineLinkType.d.ts.map +0 -1
  1202. package/types/components/ActivityCollector/utils/dom/elementHasClickHandler.d.ts.map +0 -1
  1203. package/types/components/ActivityCollector/utils/dom/extractDomain.d.ts.map +0 -1
  1204. package/types/components/ActivityCollector/utils/dom/findClickableElement.d.ts.map +0 -1
  1205. package/types/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.d.ts.map +0 -1
  1206. package/types/components/ActivityCollector/utils/dom/isButtonSubmitElement.d.ts.map +0 -1
  1207. package/types/components/ActivityCollector/utils/dom/isDownloadLink.d.ts.map +0 -1
  1208. package/types/components/ActivityCollector/utils/dom/isExitLink.d.ts.map +0 -1
  1209. package/types/components/ActivityCollector/utils/dom/isInputSubmitElement.d.ts.map +0 -1
  1210. package/types/components/ActivityCollector/utils/dom/isSupportedAnchorElement.d.ts.map +0 -1
  1211. package/types/components/ActivityCollector/utils/dom/isSupportedTextNode.d.ts.map +0 -1
  1212. package/types/components/ActivityCollector/utils/hasPageName.d.ts.map +0 -1
  1213. package/types/components/ActivityCollector/utils/isDifferentDomains.d.ts.map +0 -1
  1214. package/types/components/ActivityCollector/utils/trimQueryFromUrl.d.ts.map +0 -1
  1215. package/types/components/ActivityCollector/utils/truncateWhiteSpace.d.ts.map +0 -1
  1216. package/types/components/ActivityCollector/utils/urlStartsWithScheme.d.ts +0 -3
  1217. package/types/components/ActivityCollector/utils/urlStartsWithScheme.d.ts.map +0 -1
  1218. package/types/components/ActivityCollector/validateClickCollectionConfig.d.ts.map +0 -1
  1219. package/types/components/Audiences/index.d.ts.map +0 -1
  1220. package/types/components/Audiences/injectProcessDestinations.d.ts.map +0 -1
  1221. package/types/components/Audiences/injectProcessResponse.d.ts.map +0 -1
  1222. package/types/components/Consent/computeConsentHash.d.ts.map +0 -1
  1223. package/types/components/Consent/configValidators.d.ts.map +0 -1
  1224. package/types/components/Consent/createComponent.d.ts.map +0 -1
  1225. package/types/components/Consent/createConsentHashStore.d.ts.map +0 -1
  1226. package/types/components/Consent/createConsentRequest.d.ts.map +0 -1
  1227. package/types/components/Consent/createConsentRequestPayload.d.ts.map +0 -1
  1228. package/types/components/Consent/createStoredConsent.d.ts.map +0 -1
  1229. package/types/components/Consent/index.d.ts.map +0 -1
  1230. package/types/components/Consent/injectSendSetConsentRequest.d.ts.map +0 -1
  1231. package/types/components/Consent/parseConsentCookie.d.ts.map +0 -1
  1232. package/types/components/Consent/validateSetConsentOptions.d.ts.map +0 -1
  1233. package/types/components/Context/createComponent.d.ts.map +0 -1
  1234. package/types/components/Context/implementationDetails.d.ts.map +0 -1
  1235. package/types/components/Context/index.d.ts.map +0 -1
  1236. package/types/components/Context/injectDevice.d.ts.map +0 -1
  1237. package/types/components/Context/injectEnvironment.d.ts.map +0 -1
  1238. package/types/components/Context/injectHighEntropyUserAgentHints.d.ts.map +0 -1
  1239. package/types/components/Context/injectPlaceContext.d.ts.map +0 -1
  1240. package/types/components/Context/injectTimestamp.d.ts.map +0 -1
  1241. package/types/components/Context/injectWeb.d.ts.map +0 -1
  1242. package/types/components/DataCollector/index.d.ts.map +0 -1
  1243. package/types/components/DataCollector/validateApplyResponse.d.ts.map +0 -1
  1244. package/types/components/DataCollector/validateUserEventOptions.d.ts.map +0 -1
  1245. package/types/components/EventMerge/createComponent.d.ts.map +0 -1
  1246. package/types/components/EventMerge/createEventMergeId.d.ts.map +0 -1
  1247. package/types/components/EventMerge/index.d.ts.map +0 -1
  1248. package/types/components/Identity/addEcidToPayload.d.ts.map +0 -1
  1249. package/types/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.d.ts.map +0 -1
  1250. package/types/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.d.ts.map +0 -1
  1251. package/types/components/Identity/configValidators.d.ts.map +0 -1
  1252. package/types/components/Identity/constants/authState.d.ts.map +0 -1
  1253. package/types/components/Identity/constants/defaultIdSyncTtlMinutes.d.ts.map +0 -1
  1254. package/types/components/Identity/createComponent.d.ts.map +0 -1
  1255. package/types/components/Identity/createDecodeKndctrCookie.d.ts.map +0 -1
  1256. package/types/components/Identity/createLegacyIdentity.d.ts.map +0 -1
  1257. package/types/components/Identity/getIdentity/createGetIdentity.d.ts.map +0 -1
  1258. package/types/components/Identity/getIdentity/createGetIdentityOptionsValidator.d.ts.map +0 -1
  1259. package/types/components/Identity/getIdentity/createIdentityRequest.d.ts.map +0 -1
  1260. package/types/components/Identity/getIdentity/createIdentityRequestPayload.d.ts.map +0 -1
  1261. package/types/components/Identity/getNamespacesFromResponse.d.ts.map +0 -1
  1262. package/types/components/Identity/index.d.ts.map +0 -1
  1263. package/types/components/Identity/injectAddEcidQueryToPayload.d.ts.map +0 -1
  1264. package/types/components/Identity/injectAddLegacyEcidToPayload.d.ts.map +0 -1
  1265. package/types/components/Identity/injectAddQueryStringIdentityToPayload.d.ts.map +0 -1
  1266. package/types/components/Identity/injectAwaitIdentityCookie.d.ts.map +0 -1
  1267. package/types/components/Identity/injectEnsureSingleIdentity.d.ts.map +0 -1
  1268. package/types/components/Identity/injectHandleResponseForIdSyncs.d.ts.map +0 -1
  1269. package/types/components/Identity/injectProcessIdSyncs.d.ts.map +0 -1
  1270. package/types/components/Identity/injectSetDomainForInitialIdentityPayload.d.ts.map +0 -1
  1271. package/types/components/Identity/visitorService/awaitVisitorOptIn.d.ts.map +0 -1
  1272. package/types/components/Identity/visitorService/getVisitor.d.ts.map +0 -1
  1273. package/types/components/Identity/visitorService/injectGetEcidFromVisitor.d.ts.map +0 -1
  1274. package/types/components/LibraryInfo/index.d.ts +0 -22
  1275. package/types/components/LibraryInfo/index.d.ts.map +0 -1
  1276. package/types/components/MediaAnalyticsBridge/constants/constants.d.ts.map +0 -1
  1277. package/types/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.d.ts.map +0 -1
  1278. package/types/components/MediaAnalyticsBridge/createGetInstance.d.ts.map +0 -1
  1279. package/types/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.d.ts.map +0 -1
  1280. package/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts +0 -62
  1281. package/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts.map +0 -1
  1282. package/types/components/MediaAnalyticsBridge/index.d.ts.map +0 -1
  1283. package/types/components/Personalization/constants/loggerMessage.d.ts.map +0 -1
  1284. package/types/components/Personalization/constants/scopeType.d.ts.map +0 -1
  1285. package/types/components/Personalization/constants/surface.d.ts.map +0 -1
  1286. package/types/components/Personalization/createApplyPropositions.d.ts.map +0 -1
  1287. package/types/components/Personalization/createClickStorage.d.ts.map +0 -1
  1288. package/types/components/Personalization/createComponent.d.ts.map +0 -1
  1289. package/types/components/Personalization/createFetchDataHandler.d.ts.map +0 -1
  1290. package/types/components/Personalization/createGetPageLocation.d.ts.map +0 -1
  1291. package/types/components/Personalization/createHandleConsentFlicker.d.ts.map +0 -1
  1292. package/types/components/Personalization/createInteractionStorage.d.ts.map +0 -1
  1293. package/types/components/Personalization/createNotificationHandler.d.ts.map +0 -1
  1294. package/types/components/Personalization/createOnClickHandler.d.ts.map +0 -1
  1295. package/types/components/Personalization/createOnDecisionHandler.d.ts.map +0 -1
  1296. package/types/components/Personalization/createPersonalizationDetails.d.ts.map +0 -1
  1297. package/types/components/Personalization/createSetTargetMigration.d.ts.map +0 -1
  1298. package/types/components/Personalization/createViewCacheManager.d.ts.map +0 -1
  1299. package/types/components/Personalization/createViewChangeHandler.d.ts.map +0 -1
  1300. package/types/components/Personalization/dom-actions/action.d.ts.map +0 -1
  1301. package/types/components/Personalization/dom-actions/addNonceToInlineStyleElements.d.ts.map +0 -1
  1302. package/types/components/Personalization/dom-actions/appendHtml.d.ts.map +0 -1
  1303. package/types/components/Personalization/dom-actions/clicks/collectClicks.d.ts.map +0 -1
  1304. package/types/components/Personalization/dom-actions/clicks/collectInteractions.d.ts.map +0 -1
  1305. package/types/components/Personalization/dom-actions/collectInteractions.d.ts.map +0 -1
  1306. package/types/components/Personalization/dom-actions/createPreprocess.d.ts.map +0 -1
  1307. package/types/components/Personalization/dom-actions/createRedirect.d.ts.map +0 -1
  1308. package/types/components/Personalization/dom-actions/dom/createFragment.d.ts.map +0 -1
  1309. package/types/components/Personalization/dom-actions/dom/getAttribute.d.ts.map +0 -1
  1310. package/types/components/Personalization/dom-actions/dom/getChildNodes.d.ts.map +0 -1
  1311. package/types/components/Personalization/dom-actions/dom/getChildren.d.ts.map +0 -1
  1312. package/types/components/Personalization/dom-actions/dom/getElementById.d.ts.map +0 -1
  1313. package/types/components/Personalization/dom-actions/dom/getFirstChild.d.ts.map +0 -1
  1314. package/types/components/Personalization/dom-actions/dom/getNextSibling.d.ts.map +0 -1
  1315. package/types/components/Personalization/dom-actions/dom/getNonce.d.ts.map +0 -1
  1316. package/types/components/Personalization/dom-actions/dom/getParent.d.ts.map +0 -1
  1317. package/types/components/Personalization/dom-actions/dom/helperForEq.d.ts.map +0 -1
  1318. package/types/components/Personalization/dom-actions/dom/index.d.ts.map +0 -1
  1319. package/types/components/Personalization/dom-actions/dom/insertAfter.d.ts.map +0 -1
  1320. package/types/components/Personalization/dom-actions/dom/insertBefore.d.ts.map +0 -1
  1321. package/types/components/Personalization/dom-actions/dom/isDomElement.d.ts.map +0 -1
  1322. package/types/components/Personalization/dom-actions/dom/matchesSelectorWithEq.d.ts.map +0 -1
  1323. package/types/components/Personalization/dom-actions/dom/removeAttribute.d.ts.map +0 -1
  1324. package/types/components/Personalization/dom-actions/dom/selectNodesWithEq.d.ts.map +0 -1
  1325. package/types/components/Personalization/dom-actions/dom/setAttribute.d.ts.map +0 -1
  1326. package/types/components/Personalization/dom-actions/dom/setStyle.d.ts.map +0 -1
  1327. package/types/components/Personalization/dom-actions/dom/util.d.ts.map +0 -1
  1328. package/types/components/Personalization/dom-actions/images.d.ts.map +0 -1
  1329. package/types/components/Personalization/dom-actions/index.d.ts.map +0 -1
  1330. package/types/components/Personalization/dom-actions/initDomActionsModules.d.ts.map +0 -1
  1331. package/types/components/Personalization/dom-actions/insertHtmlAfter.d.ts.map +0 -1
  1332. package/types/components/Personalization/dom-actions/insertHtmlBefore.d.ts.map +0 -1
  1333. package/types/components/Personalization/dom-actions/move.d.ts.map +0 -1
  1334. package/types/components/Personalization/dom-actions/prependHtml.d.ts.map +0 -1
  1335. package/types/components/Personalization/dom-actions/rearrangeChildren.d.ts.map +0 -1
  1336. package/types/components/Personalization/dom-actions/remapCustomCodeOffers.d.ts.map +0 -1
  1337. package/types/components/Personalization/dom-actions/remapHeadOffers.d.ts.map +0 -1
  1338. package/types/components/Personalization/dom-actions/replaceHtml.d.ts.map +0 -1
  1339. package/types/components/Personalization/dom-actions/resize.d.ts.map +0 -1
  1340. package/types/components/Personalization/dom-actions/scripts.d.ts.map +0 -1
  1341. package/types/components/Personalization/dom-actions/setAttributes.d.ts.map +0 -1
  1342. package/types/components/Personalization/dom-actions/setHtml.d.ts.map +0 -1
  1343. package/types/components/Personalization/dom-actions/setStyles.d.ts.map +0 -1
  1344. package/types/components/Personalization/dom-actions/setText.d.ts.map +0 -1
  1345. package/types/components/Personalization/dom-actions/swapImage.d.ts.map +0 -1
  1346. package/types/components/Personalization/flicker/index.d.ts.map +0 -1
  1347. package/types/components/Personalization/handlers/createDecorateProposition.d.ts.map +0 -1
  1348. package/types/components/Personalization/handlers/createProcessDomAction.d.ts.map +0 -1
  1349. package/types/components/Personalization/handlers/createProcessHtmlContent.d.ts.map +0 -1
  1350. package/types/components/Personalization/handlers/createProcessInAppMessage.d.ts.map +0 -1
  1351. package/types/components/Personalization/handlers/createProcessPropositions.d.ts.map +0 -1
  1352. package/types/components/Personalization/handlers/createProcessRedirect.d.ts.map +0 -1
  1353. package/types/components/Personalization/handlers/createRenderStatusHandler.d.ts.map +0 -1
  1354. package/types/components/Personalization/handlers/injectCreateProposition.d.ts.map +0 -1
  1355. package/types/components/Personalization/handlers/processDefaultContent.d.ts.map +0 -1
  1356. package/types/components/Personalization/in-app-message-actions/actions/displayIframeContent.d.ts.map +0 -1
  1357. package/types/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.d.ts.map +0 -1
  1358. package/types/components/Personalization/in-app-message-actions/utils.d.ts.map +0 -1
  1359. package/types/components/Personalization/index.d.ts.map +0 -1
  1360. package/types/components/Personalization/utils/addRenderAttemptedToDecisions.d.ts.map +0 -1
  1361. package/types/components/Personalization/utils/createAsyncArray.d.ts.map +0 -1
  1362. package/types/components/Personalization/utils/isAuthoringModeEnabled.d.ts.map +0 -1
  1363. package/types/components/Personalization/utils/metaUtils.d.ts.map +0 -1
  1364. package/types/components/Personalization/utils/surfaceUtils.d.ts.map +0 -1
  1365. package/types/components/Personalization/validateApplyPropositionsOptions.d.ts.map +0 -1
  1366. package/types/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.d.ts.map +0 -1
  1367. package/types/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.d.ts.map +0 -1
  1368. package/types/components/RulesEngine/constants/index.d.ts +0 -5
  1369. package/types/components/RulesEngine/constants/index.d.ts.map +0 -1
  1370. package/types/components/RulesEngine/constants.d.ts +0 -15
  1371. package/types/components/RulesEngine/constants.d.ts.map +0 -1
  1372. package/types/components/RulesEngine/createApplyResponse.d.ts +0 -10
  1373. package/types/components/RulesEngine/createApplyResponse.d.ts.map +0 -1
  1374. package/types/components/RulesEngine/createConsequenceAdapter.d.ts.map +0 -1
  1375. package/types/components/RulesEngine/createContextProvider.d.ts.map +0 -1
  1376. package/types/components/RulesEngine/createDecisionProvider.d.ts.map +0 -1
  1377. package/types/components/RulesEngine/createEvaluableRulesetPayload.d.ts.map +0 -1
  1378. package/types/components/RulesEngine/createEvaluateRulesetsCommand.d.ts.map +0 -1
  1379. package/types/components/RulesEngine/createEventRegistry.d.ts +0 -12
  1380. package/types/components/RulesEngine/createEventRegistry.d.ts.map +0 -1
  1381. package/types/components/RulesEngine/createOnResponseHandler.d.ts.map +0 -1
  1382. package/types/components/RulesEngine/createSubscribeRulesetItems.d.ts.map +0 -1
  1383. package/types/components/RulesEngine/index.d.ts.map +0 -1
  1384. package/types/components/RulesEngine/utils/createEventPruner.d.ts.map +0 -1
  1385. package/types/components/RulesEngine/utils/generateEventHash.d.ts.map +0 -1
  1386. package/types/components/RulesEngine/utils/getExpirationDate.d.ts.map +0 -1
  1387. package/types/components/RulesEngine/utils/getPropositionData.d.ts.map +0 -1
  1388. package/types/components/RulesEngine/utils/hasExperienceData.d.ts.map +0 -1
  1389. package/types/components/RulesEngine/utils/index.d.ts.map +0 -1
  1390. package/types/components/RulesEngine/utils/storage.d.ts +0 -8
  1391. package/types/components/RulesEngine/utils/storage.d.ts.map +0 -1
  1392. package/types/components/StreamingMedia/configValidators.d.ts.map +0 -1
  1393. package/types/components/StreamingMedia/constants/eventTypes.d.ts.map +0 -1
  1394. package/types/components/StreamingMedia/constants/playbackState.d.ts.map +0 -1
  1395. package/types/components/StreamingMedia/createMediaEventManager.d.ts.map +0 -1
  1396. package/types/components/StreamingMedia/createMediaRequest.d.ts.map +0 -1
  1397. package/types/components/StreamingMedia/createMediaResponseHandler.d.ts.map +0 -1
  1398. package/types/components/StreamingMedia/createMediaSessionCacheManager.d.ts.map +0 -1
  1399. package/types/components/StreamingMedia/createStreamingMediaComponent.d.ts.map +0 -1
  1400. package/types/components/StreamingMedia/createTrackMediaEvent.d.ts.map +0 -1
  1401. package/types/components/StreamingMedia/createTrackMediaSession.d.ts.map +0 -1
  1402. package/types/components/StreamingMedia/index.d.ts.map +0 -1
  1403. package/types/components/StreamingMedia/validateMediaEventOptions.d.ts.map +0 -1
  1404. package/types/components/StreamingMedia/validateMediaSessionOptions.d.ts.map +0 -1
  1405. package/types/constants/apiVersion.d.ts.map +0 -1
  1406. package/types/constants/browser.d.ts.map +0 -1
  1407. package/types/constants/consentPurpose.d.ts.map +0 -1
  1408. package/types/constants/consentStatus.d.ts.map +0 -1
  1409. package/types/constants/contentType.d.ts.map +0 -1
  1410. package/types/constants/cookieNameKey.d.ts.map +0 -1
  1411. package/types/constants/cookieNamePrefix.d.ts.map +0 -1
  1412. package/types/constants/coreCommands.d.ts.map +0 -1
  1413. package/types/constants/coreNamespace.d.ts.map +0 -1
  1414. package/types/constants/debugQueryParam.d.ts.map +0 -1
  1415. package/types/constants/decisionProvider.d.ts.map +0 -1
  1416. package/types/constants/domain.d.ts.map +0 -1
  1417. package/types/constants/ecidNamespace.d.ts.map +0 -1
  1418. package/types/constants/edgeBasePath.d.ts.map +0 -1
  1419. package/types/constants/elementAttribute.d.ts.map +0 -1
  1420. package/types/constants/eventType.d.ts.map +0 -1
  1421. package/types/constants/handle.d.ts +0 -2
  1422. package/types/constants/handle.d.ts.map +0 -1
  1423. package/types/constants/highEntropyUserAgentClientHints.d.ts.map +0 -1
  1424. package/types/constants/httpHeaderNames.d.ts.map +0 -1
  1425. package/types/constants/httpStatusCode.d.ts.map +0 -1
  1426. package/types/constants/identityMapAuthenticatedState.d.ts.map +0 -1
  1427. package/types/constants/legacyCookies.d.ts.map +0 -1
  1428. package/types/constants/libraryName.d.ts.map +0 -1
  1429. package/types/constants/libraryVersion.d.ts +0 -3
  1430. package/types/constants/libraryVersion.d.ts.map +0 -1
  1431. package/types/constants/namespace.d.ts.map +0 -1
  1432. package/types/constants/pageWideScope.d.ts.map +0 -1
  1433. package/types/constants/propositionEventType.d.ts.map +0 -1
  1434. package/types/constants/propositionInteractionType.d.ts.map +0 -1
  1435. package/types/constants/queryStringIdentityParam.d.ts.map +0 -1
  1436. package/types/constants/schema.d.ts +0 -11
  1437. package/types/constants/schema.d.ts.map +0 -1
  1438. package/types/constants/sessionDataKeys.d.ts.map +0 -1
  1439. package/types/constants/shadowSeparator.d.ts.map +0 -1
  1440. package/types/constants/tagName.d.ts.map +0 -1
  1441. package/types/core/buildAndValidateConfig.d.ts.map +0 -1
  1442. package/types/core/componentCreators.d.ts.map +0 -1
  1443. package/types/core/config/createConfig.d.ts.map +0 -1
  1444. package/types/core/config/createCoreConfigs.d.ts.map +0 -1
  1445. package/types/core/consent/createConsent.d.ts.map +0 -1
  1446. package/types/core/consent/createConsentStateMachine.d.ts.map +0 -1
  1447. package/types/core/createComponentRegistry.d.ts.map +0 -1
  1448. package/types/core/createCookieTransfer.d.ts.map +0 -1
  1449. package/types/core/createEvent.d.ts.map +0 -1
  1450. package/types/core/createEventManager.d.ts.map +0 -1
  1451. package/types/core/createInstanceFunction.d.ts.map +0 -1
  1452. package/types/core/createLifecycle.d.ts.map +0 -1
  1453. package/types/core/createLogController.d.ts.map +0 -1
  1454. package/types/core/createLogger.d.ts.map +0 -1
  1455. package/types/core/edgeNetwork/handleRequestFailure.d.ts.map +0 -1
  1456. package/types/core/edgeNetwork/injectApplyResponse.d.ts.map +0 -1
  1457. package/types/core/edgeNetwork/injectExtractEdgeInfo.d.ts.map +0 -1
  1458. package/types/core/edgeNetwork/injectGetLocationHint.d.ts.map +0 -1
  1459. package/types/core/edgeNetwork/injectProcessWarningsAndErrors.d.ts.map +0 -1
  1460. package/types/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts.map +0 -1
  1461. package/types/core/edgeNetwork/mergeLifecycleResponses.d.ts.map +0 -1
  1462. package/types/core/getMonitors.d.ts.map +0 -1
  1463. package/types/core/index.d.ts.map +0 -1
  1464. package/types/core/initializeComponents.d.ts.map +0 -1
  1465. package/types/core/injectCreateResponse.d.ts.map +0 -1
  1466. package/types/core/injectExecuteCommand.d.ts.map +0 -1
  1467. package/types/core/injectHandleError.d.ts.map +0 -1
  1468. package/types/core/injectShouldTransferCookie.d.ts.map +0 -1
  1469. package/types/core/network/getRequestRetryDelay.d.ts.map +0 -1
  1470. package/types/core/network/injectSendNetworkRequest.d.ts.map +0 -1
  1471. package/types/core/network/isRequestRetryable.d.ts.map +0 -1
  1472. package/types/core/network/requestMethods/injectSendBeaconRequest.d.ts.map +0 -1
  1473. package/types/core/network/requestMethods/injectSendFetchRequest.d.ts.map +0 -1
  1474. package/types/core/requiredComponentCreators.d.ts.map +0 -1
  1475. package/types/core/types.d.ts.map +0 -1
  1476. package/types/core/validateCommandOptions.d.ts.map +0 -1
  1477. package/types/index.d.ts.map +0 -1
  1478. package/types/standalone.d.ts.map +0 -1
  1479. package/types/utils/assignConcatArrayValues.d.ts.map +0 -1
  1480. package/types/utils/clone.d.ts.map +0 -1
  1481. package/types/utils/cookieJar.d.ts.map +0 -1
  1482. package/types/utils/createCallbackAggregator.d.ts.map +0 -1
  1483. package/types/utils/createCollect.d.ts.map +0 -1
  1484. package/types/utils/createLoggingCookieJar.d.ts.map +0 -1
  1485. package/types/utils/createMerger.d.ts.map +0 -1
  1486. package/types/utils/createSubscription.d.ts.map +0 -1
  1487. package/types/utils/createTaskQueue.d.ts.map +0 -1
  1488. package/types/utils/decodeUriComponentSafely.d.ts.map +0 -1
  1489. package/types/utils/deduplicateArray.d.ts.map +0 -1
  1490. package/types/utils/deepAssign.d.ts.map +0 -1
  1491. package/types/utils/defer.d.ts.map +0 -1
  1492. package/types/utils/dom/appendNode.d.ts.map +0 -1
  1493. package/types/utils/dom/awaitSelector.d.ts.map +0 -1
  1494. package/types/utils/dom/createNode.d.ts.map +0 -1
  1495. package/types/utils/dom/index.d.ts.map +0 -1
  1496. package/types/utils/dom/isShadowSelector.d.ts.map +0 -1
  1497. package/types/utils/dom/matchesSelector.d.ts.map +0 -1
  1498. package/types/utils/dom/querySelectorAll.d.ts.map +0 -1
  1499. package/types/utils/dom/removeNode.d.ts.map +0 -1
  1500. package/types/utils/dom/selectNodes.d.ts.map +0 -1
  1501. package/types/utils/dom/selectNodesWithShadow.d.ts.map +0 -1
  1502. package/types/utils/event.d.ts.map +0 -1
  1503. package/types/utils/filterObject.d.ts.map +0 -1
  1504. package/types/utils/fireImage.d.ts.map +0 -1
  1505. package/types/utils/flattenArray.d.ts.map +0 -1
  1506. package/types/utils/flattenObject.d.ts.map +0 -1
  1507. package/types/utils/fnv1a32Hex.d.ts.map +0 -1
  1508. package/types/utils/getApexDomain.d.ts.map +0 -1
  1509. package/types/utils/getLastArrayItems.d.ts.map +0 -1
  1510. package/types/utils/getNamespacedCookieName.d.ts.map +0 -1
  1511. package/types/utils/groupBy.d.ts.map +0 -1
  1512. package/types/utils/index.d.ts +0 -51
  1513. package/types/utils/index.d.ts.map +0 -1
  1514. package/types/utils/injectAreThirdPartyCookiesSupportedByDefault.d.ts.map +0 -1
  1515. package/types/utils/injectDoesIdentityCookieExist.d.ts.map +0 -1
  1516. package/types/utils/injectFireReferrerHideableImage.d.ts.map +0 -1
  1517. package/types/utils/injectGetBrowser.d.ts.map +0 -1
  1518. package/types/utils/injectStorage.d.ts.map +0 -1
  1519. package/types/utils/intersection.d.ts.map +0 -1
  1520. package/types/utils/isBlankString.d.ts.map +0 -1
  1521. package/types/utils/isBoolean.d.ts.map +0 -1
  1522. package/types/utils/isEmptyObject.d.ts.map +0 -1
  1523. package/types/utils/isFunction.d.ts.map +0 -1
  1524. package/types/utils/isInteger.d.ts.map +0 -1
  1525. package/types/utils/isNamespacedCookieName.d.ts.map +0 -1
  1526. package/types/utils/isNil.d.ts.map +0 -1
  1527. package/types/utils/isNonEmptyArray.d.ts.map +0 -1
  1528. package/types/utils/isNonEmptyString.d.ts.map +0 -1
  1529. package/types/utils/isNumber.d.ts.map +0 -1
  1530. package/types/utils/isObject.d.ts.map +0 -1
  1531. package/types/utils/isString.d.ts.map +0 -1
  1532. package/types/utils/isUnique.d.ts.map +0 -1
  1533. package/types/utils/isValidRegExp.d.ts.map +0 -1
  1534. package/types/utils/lazy.d.ts.map +0 -1
  1535. package/types/utils/networkErrors.d.ts.map +0 -1
  1536. package/types/utils/noop.d.ts.map +0 -1
  1537. package/types/utils/parseUrl.d.ts.map +0 -1
  1538. package/types/utils/prepareConfigOverridesForEdge.d.ts.map +0 -1
  1539. package/types/utils/querystring.d.ts.map +0 -1
  1540. package/types/utils/request/createAddIdentity.d.ts.map +0 -1
  1541. package/types/utils/request/createDataCollectionRequest.d.ts.map +0 -1
  1542. package/types/utils/request/createDataCollectionRequestPayload.d.ts.map +0 -1
  1543. package/types/utils/request/createGetAssuranceValidationTokenParams.d.ts.map +0 -1
  1544. package/types/utils/request/createHasIdentity.d.ts.map +0 -1
  1545. package/types/utils/request/createRequest.d.ts.map +0 -1
  1546. package/types/utils/request/createRequestParams.d.ts.map +0 -1
  1547. package/types/utils/request/createRequestPayload.d.ts.map +0 -1
  1548. package/types/utils/request/index.d.ts.map +0 -1
  1549. package/types/utils/sanitizeOrgIdForCookieName.d.ts.map +0 -1
  1550. package/types/utils/sortObjectKeysRecursively.d.ts.map +0 -1
  1551. package/types/utils/stackError.d.ts.map +0 -1
  1552. package/types/utils/stringToBoolean.d.ts.map +0 -1
  1553. package/types/utils/toArray.d.ts.map +0 -1
  1554. package/types/utils/toError.d.ts.map +0 -1
  1555. package/types/utils/toISOStringLocal.d.ts.map +0 -1
  1556. package/types/utils/toInteger.d.ts.map +0 -1
  1557. package/types/utils/updateErrorMessage.d.ts.map +0 -1
  1558. package/types/utils/uuid.d.ts.map +0 -1
  1559. package/types/utils/validateConfigOverride.d.ts.map +0 -1
  1560. package/types/utils/validateIdentityMap.d.ts.map +0 -1
  1561. package/types/utils/validation/booleanValidator.d.ts.map +0 -1
  1562. package/types/utils/validation/callbackValidator.d.ts.map +0 -1
  1563. package/types/utils/validation/createAnyOfValidator.d.ts.map +0 -1
  1564. package/types/utils/validation/createArrayOfValidator.d.ts.map +0 -1
  1565. package/types/utils/validation/createDefaultValidator.d.ts.map +0 -1
  1566. package/types/utils/validation/createDeprecatedValidator.d.ts.map +0 -1
  1567. package/types/utils/validation/createLiteralValidator.d.ts.map +0 -1
  1568. package/types/utils/validation/createMapOfValuesValidator.d.ts.map +0 -1
  1569. package/types/utils/validation/createMaximumValidator.d.ts.map +0 -1
  1570. package/types/utils/validation/createMinimumValidator.d.ts.map +0 -1
  1571. package/types/utils/validation/createNoUnknownFieldsValidator.d.ts.map +0 -1
  1572. package/types/utils/validation/createNonEmptyValidator.d.ts.map +0 -1
  1573. package/types/utils/validation/createObjectOfValidator.d.ts.map +0 -1
  1574. package/types/utils/validation/createRenamedValidator.d.ts.map +0 -1
  1575. package/types/utils/validation/createUniqueItemsValidator.d.ts.map +0 -1
  1576. package/types/utils/validation/createUniqueValidator.d.ts.map +0 -1
  1577. package/types/utils/validation/domainValidator.d.ts.map +0 -1
  1578. package/types/utils/validation/index.d.ts.map +0 -1
  1579. package/types/utils/validation/integerValidator.d.ts.map +0 -1
  1580. package/types/utils/validation/matchesRegexpValidator.d.ts.map +0 -1
  1581. package/types/utils/validation/numberValidator.d.ts.map +0 -1
  1582. package/types/utils/validation/regexpValidator.d.ts.map +0 -1
  1583. package/types/utils/validation/requiredValidator.d.ts.map +0 -1
  1584. package/types/utils/validation/stringValidator.d.ts.map +0 -1
  1585. package/types/utils/validation/utils.d.ts.map +0 -1
  1586. /package/{types → dist/types}/baseCode/index.d.ts +0 -0
  1587. /package/{types → dist/types}/baseCode.d.ts +0 -0
  1588. /package/{types → dist/types}/components/ActivityCollector/attachClickActivityCollector.d.ts +0 -0
  1589. /package/{types → dist/types}/components/ActivityCollector/configValidators.d.ts +0 -0
  1590. /package/{types → dist/types}/components/ActivityCollector/createClickActivityStorage.d.ts +0 -0
  1591. /package/{types → dist/types}/components/ActivityCollector/createClickedElementProperties.d.ts +0 -0
  1592. /package/{types → dist/types}/components/ActivityCollector/createGetClickedElementProperties.d.ts +0 -0
  1593. /package/{types → dist/types}/components/ActivityCollector/createInjectClickedElementProperties.d.ts +0 -0
  1594. /package/{types → dist/types}/components/ActivityCollector/createRecallAndInjectClickedElementProperties.d.ts +0 -0
  1595. /package/{types → dist/types}/components/ActivityCollector/createStorePageViewProperties.d.ts +0 -0
  1596. /package/{types → dist/types}/components/ActivityCollector/getLinkName.d.ts +0 -0
  1597. /package/{types → dist/types}/components/ActivityCollector/getLinkRegion.d.ts +0 -0
  1598. /package/{types → dist/types}/components/ActivityCollector/index.d.ts +0 -0
  1599. /package/{types → dist/types}/components/ActivityCollector/utils/activityMapExtensionEnabled.d.ts +0 -0
  1600. /package/{types → dist/types}/components/ActivityCollector/utils/createTransientStorage.d.ts +0 -0
  1601. /package/{types → dist/types}/components/ActivityCollector/utils/determineLinkType.d.ts +0 -0
  1602. /package/{types → dist/types}/components/ActivityCollector/utils/dom/elementHasClickHandler.d.ts +0 -0
  1603. /package/{types → dist/types}/components/ActivityCollector/utils/dom/extractDomain.d.ts +0 -0
  1604. /package/{types → dist/types}/components/ActivityCollector/utils/dom/findClickableElement.d.ts +0 -0
  1605. /package/{types → dist/types}/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.d.ts +0 -0
  1606. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isButtonSubmitElement.d.ts +0 -0
  1607. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isDownloadLink.d.ts +0 -0
  1608. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isExitLink.d.ts +0 -0
  1609. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isInputSubmitElement.d.ts +0 -0
  1610. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isSupportedAnchorElement.d.ts +0 -0
  1611. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isSupportedTextNode.d.ts +0 -0
  1612. /package/{types → dist/types}/components/ActivityCollector/utils/hasPageName.d.ts +0 -0
  1613. /package/{types → dist/types}/components/ActivityCollector/utils/isDifferentDomains.d.ts +0 -0
  1614. /package/{types → dist/types}/components/ActivityCollector/utils/trimQueryFromUrl.d.ts +0 -0
  1615. /package/{types → dist/types}/components/ActivityCollector/utils/truncateWhiteSpace.d.ts +0 -0
  1616. /package/{types → dist/types}/components/ActivityCollector/validateClickCollectionConfig.d.ts +0 -0
  1617. /package/{types → dist/types}/components/Audiences/index.d.ts +0 -0
  1618. /package/{types → dist/types}/components/Audiences/injectProcessDestinations.d.ts +0 -0
  1619. /package/{types → dist/types}/components/Audiences/injectProcessResponse.d.ts +0 -0
  1620. /package/{types → dist/types}/components/Consent/computeConsentHash.d.ts +0 -0
  1621. /package/{types → dist/types}/components/Consent/configValidators.d.ts +0 -0
  1622. /package/{types → dist/types}/components/Consent/createComponent.d.ts +0 -0
  1623. /package/{types → dist/types}/components/Consent/createConsentHashStore.d.ts +0 -0
  1624. /package/{types → dist/types}/components/Consent/createConsentRequest.d.ts +0 -0
  1625. /package/{types → dist/types}/components/Consent/createConsentRequestPayload.d.ts +0 -0
  1626. /package/{types → dist/types}/components/Consent/createStoredConsent.d.ts +0 -0
  1627. /package/{types → dist/types}/components/Consent/index.d.ts +0 -0
  1628. /package/{types → dist/types}/components/Consent/injectSendSetConsentRequest.d.ts +0 -0
  1629. /package/{types → dist/types}/components/Consent/parseConsentCookie.d.ts +0 -0
  1630. /package/{types → dist/types}/components/Consent/validateSetConsentOptions.d.ts +0 -0
  1631. /package/{types → dist/types}/components/Context/createComponent.d.ts +0 -0
  1632. /package/{types → dist/types}/components/Context/implementationDetails.d.ts +0 -0
  1633. /package/{types → dist/types}/components/Context/index.d.ts +0 -0
  1634. /package/{types → dist/types}/components/Context/injectDevice.d.ts +0 -0
  1635. /package/{types → dist/types}/components/Context/injectEnvironment.d.ts +0 -0
  1636. /package/{types → dist/types}/components/Context/injectHighEntropyUserAgentHints.d.ts +0 -0
  1637. /package/{types → dist/types}/components/Context/injectPlaceContext.d.ts +0 -0
  1638. /package/{types → dist/types}/components/Context/injectTimestamp.d.ts +0 -0
  1639. /package/{types → dist/types}/components/Context/injectWeb.d.ts +0 -0
  1640. /package/{types → dist/types}/components/DataCollector/index.d.ts +0 -0
  1641. /package/{types → dist/types}/components/DataCollector/validateApplyResponse.d.ts +0 -0
  1642. /package/{types → dist/types}/components/DataCollector/validateUserEventOptions.d.ts +0 -0
  1643. /package/{types → dist/types}/components/EventMerge/createComponent.d.ts +0 -0
  1644. /package/{types → dist/types}/components/EventMerge/index.d.ts +0 -0
  1645. /package/{types → dist/types}/components/Identity/addEcidToPayload.d.ts +0 -0
  1646. /package/{types → dist/types}/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.d.ts +0 -0
  1647. /package/{types → dist/types}/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.d.ts +0 -0
  1648. /package/{types → dist/types}/components/Identity/configValidators.d.ts +0 -0
  1649. /package/{types → dist/types}/components/Identity/constants/authState.d.ts +0 -0
  1650. /package/{types → dist/types}/components/Identity/constants/defaultIdSyncTtlMinutes.d.ts +0 -0
  1651. /package/{types → dist/types}/components/Identity/createComponent.d.ts +0 -0
  1652. /package/{types → dist/types}/components/Identity/createDecodeKndctrCookie.d.ts +0 -0
  1653. /package/{types → dist/types}/components/Identity/createLegacyIdentity.d.ts +0 -0
  1654. /package/{types → dist/types}/components/Identity/getIdentity/createGetIdentity.d.ts +0 -0
  1655. /package/{types → dist/types}/components/Identity/getIdentity/createGetIdentityOptionsValidator.d.ts +0 -0
  1656. /package/{types → dist/types}/components/Identity/getIdentity/createIdentityRequest.d.ts +0 -0
  1657. /package/{types → dist/types}/components/Identity/getIdentity/createIdentityRequestPayload.d.ts +0 -0
  1658. /package/{types → dist/types}/components/Identity/getNamespacesFromResponse.d.ts +0 -0
  1659. /package/{types → dist/types}/components/Identity/index.d.ts +0 -0
  1660. /package/{types → dist/types}/components/Identity/injectAddEcidQueryToPayload.d.ts +0 -0
  1661. /package/{types → dist/types}/components/Identity/injectAddLegacyEcidToPayload.d.ts +0 -0
  1662. /package/{types → dist/types}/components/Identity/injectAddQueryStringIdentityToPayload.d.ts +0 -0
  1663. /package/{types → dist/types}/components/Identity/injectAwaitIdentityCookie.d.ts +0 -0
  1664. /package/{types → dist/types}/components/Identity/injectEnsureSingleIdentity.d.ts +0 -0
  1665. /package/{types → dist/types}/components/Identity/injectHandleResponseForIdSyncs.d.ts +0 -0
  1666. /package/{types → dist/types}/components/Identity/injectProcessIdSyncs.d.ts +0 -0
  1667. /package/{types → dist/types}/components/Identity/injectSetDomainForInitialIdentityPayload.d.ts +0 -0
  1668. /package/{types → dist/types}/components/Identity/visitorService/awaitVisitorOptIn.d.ts +0 -0
  1669. /package/{types → dist/types}/components/Identity/visitorService/getVisitor.d.ts +0 -0
  1670. /package/{types → dist/types}/components/Identity/visitorService/injectGetEcidFromVisitor.d.ts +0 -0
  1671. /package/{types → dist/types}/components/MediaAnalyticsBridge/constants/constants.d.ts +0 -0
  1672. /package/{types → dist/types}/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.d.ts +0 -0
  1673. /package/{types → dist/types}/components/MediaAnalyticsBridge/createGetInstance.d.ts +0 -0
  1674. /package/{types → dist/types}/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.d.ts +0 -0
  1675. /package/{types → dist/types}/components/MediaAnalyticsBridge/index.d.ts +0 -0
  1676. /package/{types → dist/types}/components/Personalization/constants/loggerMessage.d.ts +0 -0
  1677. /package/{types → dist/types}/components/Personalization/constants/scopeType.d.ts +0 -0
  1678. /package/{types → dist/types}/components/Personalization/constants/surface.d.ts +0 -0
  1679. /package/{types → dist/types}/components/Personalization/createApplyPropositions.d.ts +0 -0
  1680. /package/{types → dist/types}/components/Personalization/createClickStorage.d.ts +0 -0
  1681. /package/{types → dist/types}/components/Personalization/createComponent.d.ts +0 -0
  1682. /package/{types → dist/types}/components/Personalization/createFetchDataHandler.d.ts +0 -0
  1683. /package/{types → dist/types}/components/Personalization/createGetPageLocation.d.ts +0 -0
  1684. /package/{types → dist/types}/components/Personalization/createHandleConsentFlicker.d.ts +0 -0
  1685. /package/{types → dist/types}/components/Personalization/createInteractionStorage.d.ts +0 -0
  1686. /package/{types → dist/types}/components/Personalization/createNotificationHandler.d.ts +0 -0
  1687. /package/{types → dist/types}/components/Personalization/createOnClickHandler.d.ts +0 -0
  1688. /package/{types → dist/types}/components/Personalization/createOnDecisionHandler.d.ts +0 -0
  1689. /package/{types → dist/types}/components/Personalization/createPersonalizationDetails.d.ts +0 -0
  1690. /package/{types → dist/types}/components/Personalization/createSetTargetMigration.d.ts +0 -0
  1691. /package/{types → dist/types}/components/Personalization/createViewCacheManager.d.ts +0 -0
  1692. /package/{types → dist/types}/components/Personalization/createViewChangeHandler.d.ts +0 -0
  1693. /package/{types → dist/types}/components/Personalization/dom-actions/action.d.ts +0 -0
  1694. /package/{types → dist/types}/components/Personalization/dom-actions/addNonceToInlineStyleElements.d.ts +0 -0
  1695. /package/{types → dist/types}/components/Personalization/dom-actions/appendHtml.d.ts +0 -0
  1696. /package/{types → dist/types}/components/Personalization/dom-actions/clicks/collectClicks.d.ts +0 -0
  1697. /package/{types → dist/types}/components/Personalization/dom-actions/clicks/collectInteractions.d.ts +0 -0
  1698. /package/{types → dist/types}/components/Personalization/dom-actions/collectInteractions.d.ts +0 -0
  1699. /package/{types → dist/types}/components/Personalization/dom-actions/createPreprocess.d.ts +0 -0
  1700. /package/{types → dist/types}/components/Personalization/dom-actions/createRedirect.d.ts +0 -0
  1701. /package/{types → dist/types}/components/Personalization/dom-actions/dom/createFragment.d.ts +0 -0
  1702. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getAttribute.d.ts +0 -0
  1703. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getChildNodes.d.ts +0 -0
  1704. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getChildren.d.ts +0 -0
  1705. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getElementById.d.ts +0 -0
  1706. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getFirstChild.d.ts +0 -0
  1707. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getNextSibling.d.ts +0 -0
  1708. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getNonce.d.ts +0 -0
  1709. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getParent.d.ts +0 -0
  1710. /package/{types → dist/types}/components/Personalization/dom-actions/dom/helperForEq.d.ts +0 -0
  1711. /package/{types → dist/types}/components/Personalization/dom-actions/dom/index.d.ts +0 -0
  1712. /package/{types → dist/types}/components/Personalization/dom-actions/dom/insertAfter.d.ts +0 -0
  1713. /package/{types → dist/types}/components/Personalization/dom-actions/dom/insertBefore.d.ts +0 -0
  1714. /package/{types → dist/types}/components/Personalization/dom-actions/dom/isDomElement.d.ts +0 -0
  1715. /package/{types → dist/types}/components/Personalization/dom-actions/dom/matchesSelectorWithEq.d.ts +0 -0
  1716. /package/{types → dist/types}/components/Personalization/dom-actions/dom/removeAttribute.d.ts +0 -0
  1717. /package/{types → dist/types}/components/Personalization/dom-actions/dom/selectNodesWithEq.d.ts +0 -0
  1718. /package/{types → dist/types}/components/Personalization/dom-actions/dom/setAttribute.d.ts +0 -0
  1719. /package/{types → dist/types}/components/Personalization/dom-actions/dom/setStyle.d.ts +0 -0
  1720. /package/{types → dist/types}/components/Personalization/dom-actions/dom/util.d.ts +0 -0
  1721. /package/{types → dist/types}/components/Personalization/dom-actions/images.d.ts +0 -0
  1722. /package/{types → dist/types}/components/Personalization/dom-actions/index.d.ts +0 -0
  1723. /package/{types → dist/types}/components/Personalization/dom-actions/initDomActionsModules.d.ts +0 -0
  1724. /package/{types → dist/types}/components/Personalization/dom-actions/insertHtmlAfter.d.ts +0 -0
  1725. /package/{types → dist/types}/components/Personalization/dom-actions/insertHtmlBefore.d.ts +0 -0
  1726. /package/{types → dist/types}/components/Personalization/dom-actions/move.d.ts +0 -0
  1727. /package/{types → dist/types}/components/Personalization/dom-actions/prependHtml.d.ts +0 -0
  1728. /package/{types → dist/types}/components/Personalization/dom-actions/rearrangeChildren.d.ts +0 -0
  1729. /package/{types → dist/types}/components/Personalization/dom-actions/remapCustomCodeOffers.d.ts +0 -0
  1730. /package/{types → dist/types}/components/Personalization/dom-actions/remapHeadOffers.d.ts +0 -0
  1731. /package/{types → dist/types}/components/Personalization/dom-actions/replaceHtml.d.ts +0 -0
  1732. /package/{types → dist/types}/components/Personalization/dom-actions/resize.d.ts +0 -0
  1733. /package/{types → dist/types}/components/Personalization/dom-actions/scripts.d.ts +0 -0
  1734. /package/{types → dist/types}/components/Personalization/dom-actions/setAttributes.d.ts +0 -0
  1735. /package/{types → dist/types}/components/Personalization/dom-actions/setHtml.d.ts +0 -0
  1736. /package/{types → dist/types}/components/Personalization/dom-actions/setStyles.d.ts +0 -0
  1737. /package/{types → dist/types}/components/Personalization/dom-actions/setText.d.ts +0 -0
  1738. /package/{types → dist/types}/components/Personalization/dom-actions/swapImage.d.ts +0 -0
  1739. /package/{types → dist/types}/components/Personalization/flicker/index.d.ts +0 -0
  1740. /package/{types → dist/types}/components/Personalization/handlers/createDecorateProposition.d.ts +0 -0
  1741. /package/{types → dist/types}/components/Personalization/handlers/createProcessDomAction.d.ts +0 -0
  1742. /package/{types → dist/types}/components/Personalization/handlers/createProcessHtmlContent.d.ts +0 -0
  1743. /package/{types → dist/types}/components/Personalization/handlers/createProcessInAppMessage.d.ts +0 -0
  1744. /package/{types → dist/types}/components/Personalization/handlers/createProcessPropositions.d.ts +0 -0
  1745. /package/{types → dist/types}/components/Personalization/handlers/createProcessRedirect.d.ts +0 -0
  1746. /package/{types → dist/types}/components/Personalization/handlers/createRenderStatusHandler.d.ts +0 -0
  1747. /package/{types → dist/types}/components/Personalization/handlers/injectCreateProposition.d.ts +0 -0
  1748. /package/{types → dist/types}/components/Personalization/handlers/processDefaultContent.d.ts +0 -0
  1749. /package/{types → dist/types}/components/Personalization/in-app-message-actions/actions/displayIframeContent.d.ts +0 -0
  1750. /package/{types → dist/types}/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.d.ts +0 -0
  1751. /package/{types → dist/types}/components/Personalization/in-app-message-actions/utils.d.ts +0 -0
  1752. /package/{types → dist/types}/components/Personalization/index.d.ts +0 -0
  1753. /package/{types → dist/types}/components/Personalization/utils/addRenderAttemptedToDecisions.d.ts +0 -0
  1754. /package/{types → dist/types}/components/Personalization/utils/createAsyncArray.d.ts +0 -0
  1755. /package/{types → dist/types}/components/Personalization/utils/isAuthoringModeEnabled.d.ts +0 -0
  1756. /package/{types → dist/types}/components/Personalization/utils/metaUtils.d.ts +0 -0
  1757. /package/{types → dist/types}/components/Personalization/utils/surfaceUtils.d.ts +0 -0
  1758. /package/{types → dist/types}/components/Personalization/validateApplyPropositionsOptions.d.ts +0 -0
  1759. /package/{types → dist/types}/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.d.ts +0 -0
  1760. /package/{types → dist/types}/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.d.ts +0 -0
  1761. /package/{types → dist/types}/components/RulesEngine/createConsequenceAdapter.d.ts +0 -0
  1762. /package/{types → dist/types}/components/RulesEngine/createContextProvider.d.ts +0 -0
  1763. /package/{types → dist/types}/components/RulesEngine/createDecisionProvider.d.ts +0 -0
  1764. /package/{types → dist/types}/components/RulesEngine/createEvaluableRulesetPayload.d.ts +0 -0
  1765. /package/{types → dist/types}/components/RulesEngine/createEvaluateRulesetsCommand.d.ts +0 -0
  1766. /package/{types → dist/types}/components/RulesEngine/createOnResponseHandler.d.ts +0 -0
  1767. /package/{types → dist/types}/components/RulesEngine/createSubscribeRulesetItems.d.ts +0 -0
  1768. /package/{types → dist/types}/components/RulesEngine/index.d.ts +0 -0
  1769. /package/{types → dist/types}/components/RulesEngine/utils/createEventPruner.d.ts +0 -0
  1770. /package/{types → dist/types}/components/RulesEngine/utils/generateEventHash.d.ts +0 -0
  1771. /package/{types → dist/types}/components/RulesEngine/utils/getExpirationDate.d.ts +0 -0
  1772. /package/{types → dist/types}/components/RulesEngine/utils/getPropositionData.d.ts +0 -0
  1773. /package/{types → dist/types}/components/RulesEngine/utils/hasExperienceData.d.ts +0 -0
  1774. /package/{types → dist/types}/components/RulesEngine/utils/index.d.ts +0 -0
  1775. /package/{types → dist/types}/components/StreamingMedia/configValidators.d.ts +0 -0
  1776. /package/{types → dist/types}/components/StreamingMedia/constants/eventTypes.d.ts +0 -0
  1777. /package/{types → dist/types}/components/StreamingMedia/constants/playbackState.d.ts +0 -0
  1778. /package/{types → dist/types}/components/StreamingMedia/createMediaEventManager.d.ts +0 -0
  1779. /package/{types → dist/types}/components/StreamingMedia/createMediaRequest.d.ts +0 -0
  1780. /package/{types → dist/types}/components/StreamingMedia/createMediaResponseHandler.d.ts +0 -0
  1781. /package/{types → dist/types}/components/StreamingMedia/createMediaSessionCacheManager.d.ts +0 -0
  1782. /package/{types → dist/types}/components/StreamingMedia/createStreamingMediaComponent.d.ts +0 -0
  1783. /package/{types → dist/types}/components/StreamingMedia/createTrackMediaEvent.d.ts +0 -0
  1784. /package/{types → dist/types}/components/StreamingMedia/createTrackMediaSession.d.ts +0 -0
  1785. /package/{types → dist/types}/components/StreamingMedia/index.d.ts +0 -0
  1786. /package/{types → dist/types}/components/StreamingMedia/validateMediaEventOptions.d.ts +0 -0
  1787. /package/{types → dist/types}/components/StreamingMedia/validateMediaSessionOptions.d.ts +0 -0
  1788. /package/{types → dist/types}/constants/apiVersion.d.ts +0 -0
  1789. /package/{types → dist/types}/constants/browser.d.ts +0 -0
  1790. /package/{types → dist/types}/constants/consentPurpose.d.ts +0 -0
  1791. /package/{types → dist/types}/constants/consentStatus.d.ts +0 -0
  1792. /package/{types → dist/types}/constants/contentType.d.ts +0 -0
  1793. /package/{types → dist/types}/constants/cookieNameKey.d.ts +0 -0
  1794. /package/{types → dist/types}/constants/cookieNamePrefix.d.ts +0 -0
  1795. /package/{types → dist/types}/constants/coreCommands.d.ts +0 -0
  1796. /package/{types → dist/types}/constants/coreNamespace.d.ts +0 -0
  1797. /package/{types → dist/types}/constants/debugQueryParam.d.ts +0 -0
  1798. /package/{types → dist/types}/constants/decisionProvider.d.ts +0 -0
  1799. /package/{types → dist/types}/constants/domain.d.ts +0 -0
  1800. /package/{types → dist/types}/constants/ecidNamespace.d.ts +0 -0
  1801. /package/{types → dist/types}/constants/edgeBasePath.d.ts +0 -0
  1802. /package/{types → dist/types}/constants/elementAttribute.d.ts +0 -0
  1803. /package/{types → dist/types}/constants/eventType.d.ts +0 -0
  1804. /package/{types → dist/types}/constants/highEntropyUserAgentClientHints.d.ts +0 -0
  1805. /package/{types → dist/types}/constants/httpHeaderNames.d.ts +0 -0
  1806. /package/{types → dist/types}/constants/httpStatusCode.d.ts +0 -0
  1807. /package/{types → dist/types}/constants/identityMapAuthenticatedState.d.ts +0 -0
  1808. /package/{types → dist/types}/constants/legacyCookies.d.ts +0 -0
  1809. /package/{types → dist/types}/constants/libraryName.d.ts +0 -0
  1810. /package/{types → dist/types}/constants/namespace.d.ts +0 -0
  1811. /package/{types → dist/types}/constants/pageWideScope.d.ts +0 -0
  1812. /package/{types → dist/types}/constants/propositionEventType.d.ts +0 -0
  1813. /package/{types → dist/types}/constants/propositionInteractionType.d.ts +0 -0
  1814. /package/{types → dist/types}/constants/queryStringIdentityParam.d.ts +0 -0
  1815. /package/{types → dist/types}/constants/sessionDataKeys.d.ts +0 -0
  1816. /package/{types → dist/types}/constants/shadowSeparator.d.ts +0 -0
  1817. /package/{types → dist/types}/constants/tagName.d.ts +0 -0
  1818. /package/{types → dist/types}/core/buildAndValidateConfig.d.ts +0 -0
  1819. /package/{types → dist/types}/core/componentCreators.d.ts +0 -0
  1820. /package/{types → dist/types}/core/config/createConfig.d.ts +0 -0
  1821. /package/{types → dist/types}/core/config/createCoreConfigs.d.ts +0 -0
  1822. /package/{types → dist/types}/core/consent/createConsent.d.ts +0 -0
  1823. /package/{types → dist/types}/core/consent/createConsentStateMachine.d.ts +0 -0
  1824. /package/{types → dist/types}/core/createComponentRegistry.d.ts +0 -0
  1825. /package/{types → dist/types}/core/createCookieTransfer.d.ts +0 -0
  1826. /package/{types → dist/types}/core/createEvent.d.ts +0 -0
  1827. /package/{types → dist/types}/core/createEventManager.d.ts +0 -0
  1828. /package/{types → dist/types}/core/createInstanceFunction.d.ts +0 -0
  1829. /package/{types → dist/types}/core/createLifecycle.d.ts +0 -0
  1830. /package/{types → dist/types}/core/createLogController.d.ts +0 -0
  1831. /package/{types → dist/types}/core/createLogger.d.ts +0 -0
  1832. /package/{types → dist/types}/core/edgeNetwork/handleRequestFailure.d.ts +0 -0
  1833. /package/{types → dist/types}/core/edgeNetwork/injectApplyResponse.d.ts +0 -0
  1834. /package/{types → dist/types}/core/edgeNetwork/injectExtractEdgeInfo.d.ts +0 -0
  1835. /package/{types → dist/types}/core/edgeNetwork/injectGetLocationHint.d.ts +0 -0
  1836. /package/{types → dist/types}/core/edgeNetwork/injectProcessWarningsAndErrors.d.ts +0 -0
  1837. /package/{types → dist/types}/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts +0 -0
  1838. /package/{types → dist/types}/core/edgeNetwork/mergeLifecycleResponses.d.ts +0 -0
  1839. /package/{types → dist/types}/core/getMonitors.d.ts +0 -0
  1840. /package/{types → dist/types}/core/index.d.ts +0 -0
  1841. /package/{types → dist/types}/core/initializeComponents.d.ts +0 -0
  1842. /package/{types → dist/types}/core/injectCreateResponse.d.ts +0 -0
  1843. /package/{types → dist/types}/core/injectExecuteCommand.d.ts +0 -0
  1844. /package/{types → dist/types}/core/injectHandleError.d.ts +0 -0
  1845. /package/{types → dist/types}/core/injectShouldTransferCookie.d.ts +0 -0
  1846. /package/{types → dist/types}/core/network/getRequestRetryDelay.d.ts +0 -0
  1847. /package/{types → dist/types}/core/network/injectSendNetworkRequest.d.ts +0 -0
  1848. /package/{types → dist/types}/core/network/isRequestRetryable.d.ts +0 -0
  1849. /package/{types → dist/types}/core/network/requestMethods/injectSendBeaconRequest.d.ts +0 -0
  1850. /package/{types → dist/types}/core/network/requestMethods/injectSendFetchRequest.d.ts +0 -0
  1851. /package/{types → dist/types}/core/requiredComponentCreators.d.ts +0 -0
  1852. /package/{types → dist/types}/core/types.d.ts +0 -0
  1853. /package/{types → dist/types}/core/validateCommandOptions.d.ts +0 -0
  1854. /package/{types → dist/types}/index.d.ts +0 -0
  1855. /package/{types → dist/types}/standalone.d.ts +0 -0
  1856. /package/{types → dist/types}/utils/assignConcatArrayValues.d.ts +0 -0
  1857. /package/{types → dist/types}/utils/clone.d.ts +0 -0
  1858. /package/{types → dist/types}/utils/cookieJar.d.ts +0 -0
  1859. /package/{types → dist/types}/utils/createCallbackAggregator.d.ts +0 -0
  1860. /package/{types → dist/types}/utils/createCollect.d.ts +0 -0
  1861. /package/{types/components/EventMerge → dist/types/utils}/createEventMergeId.d.ts +0 -0
  1862. /package/{types → dist/types}/utils/createLoggingCookieJar.d.ts +0 -0
  1863. /package/{types → dist/types}/utils/createMerger.d.ts +0 -0
  1864. /package/{types → dist/types}/utils/createSubscription.d.ts +0 -0
  1865. /package/{types → dist/types}/utils/createTaskQueue.d.ts +0 -0
  1866. /package/{types → dist/types}/utils/decodeUriComponentSafely.d.ts +0 -0
  1867. /package/{types → dist/types}/utils/deduplicateArray.d.ts +0 -0
  1868. /package/{types → dist/types}/utils/deepAssign.d.ts +0 -0
  1869. /package/{types → dist/types}/utils/defer.d.ts +0 -0
  1870. /package/{types → dist/types}/utils/dom/appendNode.d.ts +0 -0
  1871. /package/{types → dist/types}/utils/dom/awaitSelector.d.ts +0 -0
  1872. /package/{types → dist/types}/utils/dom/createNode.d.ts +0 -0
  1873. /package/{types → dist/types}/utils/dom/index.d.ts +0 -0
  1874. /package/{types → dist/types}/utils/dom/isShadowSelector.d.ts +0 -0
  1875. /package/{types → dist/types}/utils/dom/matchesSelector.d.ts +0 -0
  1876. /package/{types → dist/types}/utils/dom/querySelectorAll.d.ts +0 -0
  1877. /package/{types → dist/types}/utils/dom/removeNode.d.ts +0 -0
  1878. /package/{types → dist/types}/utils/dom/selectNodes.d.ts +0 -0
  1879. /package/{types → dist/types}/utils/dom/selectNodesWithShadow.d.ts +0 -0
  1880. /package/{types → dist/types}/utils/event.d.ts +0 -0
  1881. /package/{types → dist/types}/utils/filterObject.d.ts +0 -0
  1882. /package/{types → dist/types}/utils/fireImage.d.ts +0 -0
  1883. /package/{types → dist/types}/utils/flattenArray.d.ts +0 -0
  1884. /package/{types → dist/types}/utils/flattenObject.d.ts +0 -0
  1885. /package/{types → dist/types}/utils/fnv1a32Hex.d.ts +0 -0
  1886. /package/{types → dist/types}/utils/getApexDomain.d.ts +0 -0
  1887. /package/{types → dist/types}/utils/getLastArrayItems.d.ts +0 -0
  1888. /package/{types → dist/types}/utils/getNamespacedCookieName.d.ts +0 -0
  1889. /package/{types → dist/types}/utils/groupBy.d.ts +0 -0
  1890. /package/{types → dist/types}/utils/injectAreThirdPartyCookiesSupportedByDefault.d.ts +0 -0
  1891. /package/{types → dist/types}/utils/injectDoesIdentityCookieExist.d.ts +0 -0
  1892. /package/{types → dist/types}/utils/injectFireReferrerHideableImage.d.ts +0 -0
  1893. /package/{types → dist/types}/utils/injectGetBrowser.d.ts +0 -0
  1894. /package/{types → dist/types}/utils/injectStorage.d.ts +0 -0
  1895. /package/{types → dist/types}/utils/intersection.d.ts +0 -0
  1896. /package/{types → dist/types}/utils/isBlankString.d.ts +0 -0
  1897. /package/{types → dist/types}/utils/isBoolean.d.ts +0 -0
  1898. /package/{types → dist/types}/utils/isEmptyObject.d.ts +0 -0
  1899. /package/{types → dist/types}/utils/isFunction.d.ts +0 -0
  1900. /package/{types → dist/types}/utils/isInteger.d.ts +0 -0
  1901. /package/{types → dist/types}/utils/isNamespacedCookieName.d.ts +0 -0
  1902. /package/{types → dist/types}/utils/isNil.d.ts +0 -0
  1903. /package/{types → dist/types}/utils/isNonEmptyArray.d.ts +0 -0
  1904. /package/{types → dist/types}/utils/isNonEmptyString.d.ts +0 -0
  1905. /package/{types → dist/types}/utils/isNumber.d.ts +0 -0
  1906. /package/{types → dist/types}/utils/isObject.d.ts +0 -0
  1907. /package/{types → dist/types}/utils/isString.d.ts +0 -0
  1908. /package/{types → dist/types}/utils/isUnique.d.ts +0 -0
  1909. /package/{types → dist/types}/utils/isValidRegExp.d.ts +0 -0
  1910. /package/{types → dist/types}/utils/lazy.d.ts +0 -0
  1911. /package/{types → dist/types}/utils/networkErrors.d.ts +0 -0
  1912. /package/{types → dist/types}/utils/noop.d.ts +0 -0
  1913. /package/{types → dist/types}/utils/parseUrl.d.ts +0 -0
  1914. /package/{types → dist/types}/utils/prepareConfigOverridesForEdge.d.ts +0 -0
  1915. /package/{types → dist/types}/utils/querystring.d.ts +0 -0
  1916. /package/{types → dist/types}/utils/request/createAddIdentity.d.ts +0 -0
  1917. /package/{types → dist/types}/utils/request/createDataCollectionRequest.d.ts +0 -0
  1918. /package/{types → dist/types}/utils/request/createDataCollectionRequestPayload.d.ts +0 -0
  1919. /package/{types → dist/types}/utils/request/createGetAssuranceValidationTokenParams.d.ts +0 -0
  1920. /package/{types → dist/types}/utils/request/createHasIdentity.d.ts +0 -0
  1921. /package/{types → dist/types}/utils/request/createRequest.d.ts +0 -0
  1922. /package/{types → dist/types}/utils/request/createRequestParams.d.ts +0 -0
  1923. /package/{types → dist/types}/utils/request/createRequestPayload.d.ts +0 -0
  1924. /package/{types → dist/types}/utils/request/index.d.ts +0 -0
  1925. /package/{types → dist/types}/utils/sanitizeOrgIdForCookieName.d.ts +0 -0
  1926. /package/{types → dist/types}/utils/sortObjectKeysRecursively.d.ts +0 -0
  1927. /package/{types → dist/types}/utils/stackError.d.ts +0 -0
  1928. /package/{types → dist/types}/utils/stringToBoolean.d.ts +0 -0
  1929. /package/{types → dist/types}/utils/toArray.d.ts +0 -0
  1930. /package/{types → dist/types}/utils/toError.d.ts +0 -0
  1931. /package/{types → dist/types}/utils/toISOStringLocal.d.ts +0 -0
  1932. /package/{types → dist/types}/utils/toInteger.d.ts +0 -0
  1933. /package/{types → dist/types}/utils/updateErrorMessage.d.ts +0 -0
  1934. /package/{types → dist/types}/utils/uuid.d.ts +0 -0
  1935. /package/{types → dist/types}/utils/validateConfigOverride.d.ts +0 -0
  1936. /package/{types → dist/types}/utils/validateIdentityMap.d.ts +0 -0
  1937. /package/{types → dist/types}/utils/validation/booleanValidator.d.ts +0 -0
  1938. /package/{types → dist/types}/utils/validation/callbackValidator.d.ts +0 -0
  1939. /package/{types → dist/types}/utils/validation/createAnyOfValidator.d.ts +0 -0
  1940. /package/{types → dist/types}/utils/validation/createArrayOfValidator.d.ts +0 -0
  1941. /package/{types → dist/types}/utils/validation/createDefaultValidator.d.ts +0 -0
  1942. /package/{types → dist/types}/utils/validation/createDeprecatedValidator.d.ts +0 -0
  1943. /package/{types → dist/types}/utils/validation/createLiteralValidator.d.ts +0 -0
  1944. /package/{types → dist/types}/utils/validation/createMapOfValuesValidator.d.ts +0 -0
  1945. /package/{types → dist/types}/utils/validation/createMaximumValidator.d.ts +0 -0
  1946. /package/{types → dist/types}/utils/validation/createMinimumValidator.d.ts +0 -0
  1947. /package/{types → dist/types}/utils/validation/createNoUnknownFieldsValidator.d.ts +0 -0
  1948. /package/{types → dist/types}/utils/validation/createNonEmptyValidator.d.ts +0 -0
  1949. /package/{types → dist/types}/utils/validation/createObjectOfValidator.d.ts +0 -0
  1950. /package/{types → dist/types}/utils/validation/createRenamedValidator.d.ts +0 -0
  1951. /package/{types → dist/types}/utils/validation/createUniqueItemsValidator.d.ts +0 -0
  1952. /package/{types → dist/types}/utils/validation/createUniqueValidator.d.ts +0 -0
  1953. /package/{types → dist/types}/utils/validation/domainValidator.d.ts +0 -0
  1954. /package/{types → dist/types}/utils/validation/index.d.ts +0 -0
  1955. /package/{types → dist/types}/utils/validation/integerValidator.d.ts +0 -0
  1956. /package/{types → dist/types}/utils/validation/matchesRegexpValidator.d.ts +0 -0
  1957. /package/{types → dist/types}/utils/validation/numberValidator.d.ts +0 -0
  1958. /package/{types → dist/types}/utils/validation/regexpValidator.d.ts +0 -0
  1959. /package/{types → dist/types}/utils/validation/requiredValidator.d.ts +0 -0
  1960. /package/{types → dist/types}/utils/validation/stringValidator.d.ts +0 -0
  1961. /package/{types → dist/types}/utils/validation/utils.d.ts +0 -0
package/dist/utils.cjs ADDED
@@ -0,0 +1,3258 @@
1
+ 'use strict';
2
+
3
+ /*
4
+ Copyright 2019 Adobe. All rights reserved.
5
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License. You may obtain a copy
7
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software distributed under
10
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ OF ANY KIND, either express or implied. See the License for the specific language
12
+ governing permissions and limitations under the License.
13
+ */
14
+
15
+ /**
16
+ * Returns true when the value is null.
17
+ * @param {*} value
18
+ * @returns {boolean}
19
+ */
20
+ var isNil = (value) => value == null;
21
+
22
+ /*
23
+ Copyright 2019 Adobe. All rights reserved.
24
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
25
+ you may not use this file except in compliance with the License. You may obtain a copy
26
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
27
+
28
+ Unless required by applicable law or agreed to in writing, software distributed under
29
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
30
+ OF ANY KIND, either express or implied. See the License for the specific language
31
+ governing permissions and limitations under the License.
32
+ */
33
+
34
+
35
+ /**
36
+ * Returns whether the value is an object.
37
+ * @param {*} value
38
+ * @returns {boolean}
39
+ */
40
+ var isObject = (value) =>
41
+ !isNil(value) && !Array.isArray(value) && typeof value === "object";
42
+
43
+ /*
44
+ Copyright 2023 Adobe. All rights reserved.
45
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
46
+ you may not use this file except in compliance with the License. You may obtain a copy
47
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
48
+
49
+ Unless required by applicable law or agreed to in writing, software distributed under
50
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
51
+ OF ANY KIND, either express or implied. See the License for the specific language
52
+ governing permissions and limitations under the License.
53
+ */
54
+
55
+ var assignConcatArrayValues = (...values) => {
56
+ if (values.length < 2) {
57
+ // if the number of args is 0 or 1, just use the default behavior from Object.assign
58
+ return Object.assign(...values);
59
+ }
60
+ return values.reduce((accumulator, currentValue) => {
61
+ if (isObject(currentValue)) {
62
+ Object.keys(currentValue).forEach((key) => {
63
+ if (Array.isArray(currentValue[key])) {
64
+ if (Array.isArray(accumulator[key])) {
65
+ accumulator[key].push(...currentValue[key]);
66
+ } else {
67
+ // clone the array so the original isn't modified.
68
+ accumulator[key] = [...currentValue[key]];
69
+ }
70
+ } else {
71
+ accumulator[key] = currentValue[key];
72
+ }
73
+ });
74
+ }
75
+ return accumulator;
76
+ }); // no default value to pass into reduce because we want to skip the first value
77
+ };
78
+
79
+ /*
80
+ Copyright 2019 Adobe. All rights reserved.
81
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
82
+ you may not use this file except in compliance with the License. You may obtain a copy
83
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
84
+
85
+ Unless required by applicable law or agreed to in writing, software distributed under
86
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
87
+ OF ANY KIND, either express or implied. See the License for the specific language
88
+ governing permissions and limitations under the License.
89
+ */
90
+
91
+ /**
92
+ * Clones a value by serializing then deserializing the value.
93
+ * @param {*} value
94
+ * @returns {any}
95
+ */
96
+ var clone = (value) => JSON.parse(JSON.stringify(value));
97
+
98
+ /*! js-cookie v3.0.5 | MIT */
99
+ /* eslint-disable no-var */
100
+ function assign (target) {
101
+ for (var i = 1; i < arguments.length; i++) {
102
+ var source = arguments[i];
103
+ for (var key in source) {
104
+ target[key] = source[key];
105
+ }
106
+ }
107
+ return target
108
+ }
109
+ /* eslint-enable no-var */
110
+
111
+ /* eslint-disable no-var */
112
+ var defaultConverter = {
113
+ read: function (value) {
114
+ if (value[0] === '"') {
115
+ value = value.slice(1, -1);
116
+ }
117
+ return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
118
+ },
119
+ write: function (value) {
120
+ return encodeURIComponent(value).replace(
121
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
122
+ decodeURIComponent
123
+ )
124
+ }
125
+ };
126
+ /* eslint-enable no-var */
127
+
128
+ /* eslint-disable no-var */
129
+
130
+ function init (converter, defaultAttributes) {
131
+ function set (name, value, attributes) {
132
+ if (typeof document === 'undefined') {
133
+ return
134
+ }
135
+
136
+ attributes = assign({}, defaultAttributes, attributes);
137
+
138
+ if (typeof attributes.expires === 'number') {
139
+ attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
140
+ }
141
+ if (attributes.expires) {
142
+ attributes.expires = attributes.expires.toUTCString();
143
+ }
144
+
145
+ name = encodeURIComponent(name)
146
+ .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
147
+ .replace(/[()]/g, escape);
148
+
149
+ var stringifiedAttributes = '';
150
+ for (var attributeName in attributes) {
151
+ if (!attributes[attributeName]) {
152
+ continue
153
+ }
154
+
155
+ stringifiedAttributes += '; ' + attributeName;
156
+
157
+ if (attributes[attributeName] === true) {
158
+ continue
159
+ }
160
+
161
+ // Considers RFC 6265 section 5.2:
162
+ // ...
163
+ // 3. If the remaining unparsed-attributes contains a %x3B (";")
164
+ // character:
165
+ // Consume the characters of the unparsed-attributes up to,
166
+ // not including, the first %x3B (";") character.
167
+ // ...
168
+ stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
169
+ }
170
+
171
+ return (document.cookie =
172
+ name + '=' + converter.write(value, name) + stringifiedAttributes)
173
+ }
174
+
175
+ function get (name) {
176
+ if (typeof document === 'undefined' || (arguments.length && !name)) {
177
+ return
178
+ }
179
+
180
+ // To prevent the for loop in the first place assign an empty array
181
+ // in case there are no cookies at all.
182
+ var cookies = document.cookie ? document.cookie.split('; ') : [];
183
+ var jar = {};
184
+ for (var i = 0; i < cookies.length; i++) {
185
+ var parts = cookies[i].split('=');
186
+ var value = parts.slice(1).join('=');
187
+
188
+ try {
189
+ var found = decodeURIComponent(parts[0]);
190
+ jar[found] = converter.read(value, found);
191
+
192
+ if (name === found) {
193
+ break
194
+ }
195
+ } catch (e) {}
196
+ }
197
+
198
+ return name ? jar[name] : jar
199
+ }
200
+
201
+ return Object.create(
202
+ {
203
+ set,
204
+ get,
205
+ remove: function (name, attributes) {
206
+ set(
207
+ name,
208
+ '',
209
+ assign({}, attributes, {
210
+ expires: -1
211
+ })
212
+ );
213
+ },
214
+ withAttributes: function (attributes) {
215
+ return init(this.converter, assign({}, this.attributes, attributes))
216
+ },
217
+ withConverter: function (converter) {
218
+ return init(assign({}, this.converter, converter), this.attributes)
219
+ }
220
+ },
221
+ {
222
+ attributes: { value: Object.freeze(defaultAttributes) },
223
+ converter: { value: Object.freeze(converter) }
224
+ }
225
+ )
226
+ }
227
+
228
+ var api = init(defaultConverter, { path: '/' });
229
+
230
+ /*
231
+ Copyright 2019 Adobe. All rights reserved.
232
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
233
+ you may not use this file except in compliance with the License. You may obtain a copy
234
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
235
+
236
+ Unless required by applicable law or agreed to in writing, software distributed under
237
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
238
+ OF ANY KIND, either express or implied. See the License for the specific language
239
+ governing permissions and limitations under the License.
240
+ */
241
+
242
+
243
+
244
+ var cookieJar = {
245
+ get: api.get.bind(api),
246
+ set: api.set.bind(api),
247
+ remove: api.remove.bind(api),
248
+ withConverter: api.withConverter.bind(api)
249
+ };
250
+
251
+ /*
252
+ Copyright 2019 Adobe. All rights reserved.
253
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
254
+ you may not use this file except in compliance with the License. You may obtain a copy
255
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
256
+
257
+ Unless required by applicable law or agreed to in writing, software distributed under
258
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
259
+ OF ANY KIND, either express or implied. See the License for the specific language
260
+ governing permissions and limitations under the License.
261
+ */
262
+
263
+
264
+ const deepAssignObject = (target, source) => {
265
+ Object.keys(source).forEach((key) => {
266
+ if (isObject(target[key]) && isObject(source[key])) {
267
+ deepAssignObject(target[key], source[key]);
268
+ return;
269
+ }
270
+
271
+ target[key] = source[key];
272
+ });
273
+ };
274
+
275
+ /**
276
+ * Recursively copy the values of all enumerable own properties from a source item to a target item if the both items are objects
277
+ * @param {Object} target - a target object
278
+ * @param {...Object} source - an array of source objects
279
+ * @example
280
+ * deepAssign({ a: 'a', b: 'b' }, { b: 'B', c: 'c' });
281
+ * // { a: 'a', b: 'B', c: 'c' }
282
+ */
283
+ var deepAssign = (target, ...sources) => {
284
+ if (isNil(target)) {
285
+ throw new TypeError('deepAssign "target" cannot be null or undefined');
286
+ }
287
+
288
+ const result = Object(target);
289
+
290
+ sources.forEach((source) => deepAssignObject(result, Object(source)));
291
+
292
+ return result;
293
+ };
294
+
295
+ /*
296
+ Copyright 2019 Adobe. All rights reserved.
297
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
298
+ you may not use this file except in compliance with the License. You may obtain a copy
299
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
300
+
301
+ Unless required by applicable law or agreed to in writing, software distributed under
302
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
303
+ OF ANY KIND, either express or implied. See the License for the specific language
304
+ governing permissions and limitations under the License.
305
+ */
306
+
307
+
308
+ /**
309
+ * Creates a function that, when passed an object of updates, will merge
310
+ * the updates onto the current value of a payload property.
311
+ * @param {Object} content The base object to modify
312
+ * @param {String } key The property to merge updates into. This
313
+ * can be a dot-notation property path.
314
+ * @returns {Function}
315
+ */
316
+ var createMerger = (content, key) => (updates) => {
317
+ const propertyPath = key.split(".");
318
+ const hostObjectForUpdates = propertyPath.reduce((obj, propertyName) => {
319
+ obj[propertyName] = obj[propertyName] || {};
320
+ return obj[propertyName];
321
+ }, content);
322
+ deepAssign(hostObjectForUpdates, updates);
323
+ };
324
+
325
+ /*
326
+ Copyright 2020 Adobe. All rights reserved.
327
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
328
+ you may not use this file except in compliance with the License. You may obtain a copy
329
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
330
+
331
+ Unless required by applicable law or agreed to in writing, software distributed under
332
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
333
+ OF ANY KIND, either express or implied. See the License for the specific language
334
+ governing permissions and limitations under the License.
335
+ */
336
+
337
+ /**
338
+ * Allows callbacks to be registered and then later called. When the
339
+ * callbacks are called, their responses are combined into a single promise.
340
+ */
341
+ var createCallbackAggregator = () => {
342
+ const callbacks = [];
343
+ return {
344
+ add(callback) {
345
+ callbacks.push(callback);
346
+ },
347
+ call(...args) {
348
+ // While this utility doesn't necessarily need to be doing the
349
+ // Promise.all, it's currently useful everywhere this is used and
350
+ // reduces repetitive code. We can factor it out later if we want
351
+ // to make this utility more "pure".
352
+ return Promise.all(callbacks.map((callback) => callback(...args)));
353
+ },
354
+ };
355
+ };
356
+
357
+ const byteToHex = [];
358
+ for (let i = 0; i < 256; ++i) {
359
+ byteToHex.push((i + 0x100).toString(16).slice(1));
360
+ }
361
+ function unsafeStringify(arr, offset = 0) {
362
+ return (byteToHex[arr[offset + 0]] +
363
+ byteToHex[arr[offset + 1]] +
364
+ byteToHex[arr[offset + 2]] +
365
+ byteToHex[arr[offset + 3]] +
366
+ '-' +
367
+ byteToHex[arr[offset + 4]] +
368
+ byteToHex[arr[offset + 5]] +
369
+ '-' +
370
+ byteToHex[arr[offset + 6]] +
371
+ byteToHex[arr[offset + 7]] +
372
+ '-' +
373
+ byteToHex[arr[offset + 8]] +
374
+ byteToHex[arr[offset + 9]] +
375
+ '-' +
376
+ byteToHex[arr[offset + 10]] +
377
+ byteToHex[arr[offset + 11]] +
378
+ byteToHex[arr[offset + 12]] +
379
+ byteToHex[arr[offset + 13]] +
380
+ byteToHex[arr[offset + 14]] +
381
+ byteToHex[arr[offset + 15]]).toLowerCase();
382
+ }
383
+
384
+ let getRandomValues;
385
+ const rnds8 = new Uint8Array(16);
386
+ function rng() {
387
+ if (!getRandomValues) {
388
+ if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
389
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
390
+ }
391
+ getRandomValues = crypto.getRandomValues.bind(crypto);
392
+ }
393
+ return getRandomValues(rnds8);
394
+ }
395
+
396
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
397
+ var native = { randomUUID };
398
+
399
+ function v4(options, buf, offset) {
400
+ if (native.randomUUID && !buf && !options) {
401
+ return native.randomUUID();
402
+ }
403
+ options = options || {};
404
+ const rnds = options.random ?? options.rng?.() ?? rng();
405
+ if (rnds.length < 16) {
406
+ throw new Error('Random bytes length must be >= 16');
407
+ }
408
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
409
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
410
+ if (buf) {
411
+ offset = offset || 0;
412
+ if (offset < 0 || offset + 16 > buf.length) {
413
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
414
+ }
415
+ for (let i = 0; i < 16; ++i) {
416
+ buf[offset + i] = rnds[i];
417
+ }
418
+ return buf;
419
+ }
420
+ return unsafeStringify(rnds);
421
+ }
422
+
423
+ /*
424
+ Copyright 20219 Adobe. All rights reserved.
425
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
426
+ you may not use this file except in compliance with the License. You may obtain a copy
427
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
428
+
429
+ Unless required by applicable law or agreed to in writing, software distributed under
430
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
431
+ OF ANY KIND, either express or implied. See the License for the specific language
432
+ governing permissions and limitations under the License.
433
+ */
434
+
435
+
436
+ var createEventMergeId = () => {
437
+ return {
438
+ eventMergeId: v4(),
439
+ };
440
+ };
441
+
442
+ /*
443
+ Copyright 2022 Adobe. All rights reserved.
444
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
445
+ you may not use this file except in compliance with the License. You may obtain a copy
446
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
447
+
448
+ Unless required by applicable law or agreed to in writing, software distributed under
449
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
450
+ OF ANY KIND, either express or implied. See the License for the specific language
451
+ governing permissions and limitations under the License.
452
+ */
453
+
454
+ var createLoggingCookieJar = ({ logger, cookieJar }) => {
455
+ return {
456
+ ...cookieJar,
457
+ set(key, value, options) {
458
+ logger.info("Setting cookie", { name: key, value, ...options });
459
+ cookieJar.set(key, value, options);
460
+ },
461
+ };
462
+ };
463
+
464
+ /*
465
+ Copyright 2020 Adobe. All rights reserved.
466
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
467
+ you may not use this file except in compliance with the License. You may obtain a copy
468
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
469
+
470
+ Unless required by applicable law or agreed to in writing, software distributed under
471
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
472
+ OF ANY KIND, either express or implied. See the License for the specific language
473
+ governing permissions and limitations under the License.
474
+ */
475
+
476
+ /**
477
+ * Sequences tasks.
478
+ */
479
+ var createTaskQueue = () => {
480
+ let queueLength = 0;
481
+ let lastPromiseInQueue = Promise.resolve();
482
+ return {
483
+ /**
484
+ * Add a task to the queue. If no task is currenty running,
485
+ * the task will begin immediately.
486
+ * @param {Function} task A function that will be called when
487
+ * the task should be run. If the task it asynchronous, it should
488
+ * return a promise.
489
+ * @returns {Promise} A promise that will be resolved or rejected
490
+ * with whatever value the task resolved or rejects its promise.
491
+ */
492
+ addTask(task) {
493
+ queueLength += 1;
494
+
495
+ const lastPromiseFulfilledHandler = () => {
496
+ return task().finally(() => {
497
+ queueLength -= 1;
498
+ });
499
+ };
500
+
501
+ lastPromiseInQueue = lastPromiseInQueue.then(
502
+ lastPromiseFulfilledHandler,
503
+ lastPromiseFulfilledHandler,
504
+ );
505
+ return lastPromiseInQueue;
506
+ },
507
+ /**
508
+ * How many tasks are in the queue. This includes the task
509
+ * that's currently running.
510
+ * @returns {number}
511
+ */
512
+ get length() {
513
+ return queueLength;
514
+ },
515
+ };
516
+ };
517
+
518
+ /*
519
+ Copyright 2019 Adobe. All rights reserved.
520
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
521
+ you may not use this file except in compliance with the License. You may obtain a copy
522
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
523
+
524
+ Unless required by applicable law or agreed to in writing, software distributed under
525
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
526
+ OF ANY KIND, either express or implied. See the License for the specific language
527
+ governing permissions and limitations under the License.
528
+ */
529
+
530
+ /**
531
+ * A simple utility for managing a promise's state outside of
532
+ * the promise's "executor" (the function passed into the constructor).
533
+ */
534
+ var defer = () => {
535
+ const deferred = {};
536
+
537
+ deferred.promise = new Promise((resolve, reject) => {
538
+ deferred.resolve = resolve;
539
+ deferred.reject = reject;
540
+ });
541
+
542
+ return deferred;
543
+ };
544
+
545
+ /*
546
+ Copyright 2023 Adobe. All rights reserved.
547
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
548
+ you may not use this file except in compliance with the License. You may obtain a copy
549
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
550
+
551
+ Unless required by applicable law or agreed to in writing, software distributed under
552
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
553
+ OF ANY KIND, either express or implied. See the License for the specific language
554
+ governing permissions and limitations under the License.
555
+ */
556
+ const REFERENCE_EQUALITY = (a, b) => a === b;
557
+
558
+ const findIndex = (array, item, isEqual) => {
559
+ for (let i = 0; i < array.length; i += 1) {
560
+ if (isEqual(array[i], item)) {
561
+ return i;
562
+ }
563
+ }
564
+ return -1;
565
+ };
566
+
567
+ var deduplicateArray = (array, isEqual = REFERENCE_EQUALITY) => {
568
+ return array.filter(
569
+ (item, index) => findIndex(array, item, isEqual) === index,
570
+ );
571
+ };
572
+
573
+ /*
574
+ Copyright 2019 Adobe. All rights reserved.
575
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
576
+ you may not use this file except in compliance with the License. You may obtain a copy
577
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
578
+
579
+ Unless required by applicable law or agreed to in writing, software distributed under
580
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
581
+ OF ANY KIND, either express or implied. See the License for the specific language
582
+ governing permissions and limitations under the License.
583
+ */
584
+
585
+ var appendNodeToDocument = (parent, node) => {
586
+ return parent.appendChild(node);
587
+ };
588
+
589
+ /*
590
+ Copyright 2019 Adobe. All rights reserved.
591
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
592
+ you may not use this file except in compliance with the License. You may obtain a copy
593
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
594
+
595
+ Unless required by applicable law or agreed to in writing, software distributed under
596
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
597
+ OF ANY KIND, either express or implied. See the License for the specific language
598
+ governing permissions and limitations under the License.
599
+ */
600
+
601
+
602
+ const populateElementProperties = (element, props) => {
603
+ Object.keys(props).forEach((key) => {
604
+ // The following is to support setting style properties to avoid CSP errors.
605
+ if (key === "style" && isObject(props[key])) {
606
+ const styleProps = props[key];
607
+ Object.keys(styleProps).forEach((styleKey) => {
608
+ element.style[styleKey] = styleProps[styleKey];
609
+ });
610
+ } else {
611
+ element[key] = props[key];
612
+ }
613
+ });
614
+ };
615
+
616
+ var createNodeInDocument = (tag, attrs = {}, props = {}, children = [], doc = document) => {
617
+ const result = doc.createElement(tag);
618
+ Object.keys(attrs).forEach((key) => {
619
+ // TODO: To highlight CSP problems consider throwing a descriptive error
620
+ // if nonce is available and key is style.
621
+ result.setAttribute(key, attrs[key]);
622
+ });
623
+ populateElementProperties(result, props);
624
+ children.forEach((child) => appendNodeToDocument(result, child));
625
+ return result;
626
+ };
627
+
628
+ /*
629
+ Copyright 2019 Adobe. All rights reserved.
630
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
631
+ you may not use this file except in compliance with the License. You may obtain a copy
632
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
633
+
634
+ Unless required by applicable law or agreed to in writing, software distributed under
635
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
636
+ OF ANY KIND, either express or implied. See the License for the specific language
637
+ governing permissions and limitations under the License.
638
+ */
639
+
640
+ const BODY = "BODY";
641
+ const IFRAME = "IFRAME";
642
+ const IMG = "IMG";
643
+
644
+ /*
645
+ Copyright 2019 Adobe. All rights reserved.
646
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
647
+ you may not use this file except in compliance with the License. You may obtain a copy
648
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
649
+
650
+ Unless required by applicable law or agreed to in writing, software distributed under
651
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
652
+ OF ANY KIND, either express or implied. See the License for the specific language
653
+ governing permissions and limitations under the License.
654
+ */
655
+
656
+
657
+ /**
658
+ * Fires an image pixel from the current document's window.
659
+ * @param {object} currentDocument
660
+ * @param {string} src
661
+ * @returns {Promise}
662
+ */
663
+ var fireImageInDocument = ({ src, currentDocument = document }) => {
664
+ return new Promise((resolve, reject) => {
665
+ const attrs = { src };
666
+ const props = {
667
+ onload: resolve,
668
+ onerror: reject,
669
+ onabort: reject,
670
+ };
671
+
672
+ createNodeInDocument(IMG, attrs, props, [], currentDocument);
673
+ });
674
+ };
675
+
676
+ /*
677
+ Copyright 2019 Adobe. All rights reserved.
678
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
679
+ you may not use this file except in compliance with the License. You may obtain a copy
680
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
681
+
682
+ Unless required by applicable law or agreed to in writing, software distributed under
683
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
684
+ OF ANY KIND, either express or implied. See the License for the specific language
685
+ governing permissions and limitations under the License.
686
+ */
687
+
688
+ /**
689
+ * Returns whether the value is a function.
690
+ * @param {*} value
691
+ * @returns {boolean}
692
+ */
693
+ var isFunction = (value) => typeof value === "function";
694
+
695
+ /*
696
+ Copyright 2019 Adobe. All rights reserved.
697
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
698
+ you may not use this file except in compliance with the License. You may obtain a copy
699
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
700
+
701
+ Unless required by applicable law or agreed to in writing, software distributed under
702
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
703
+ OF ANY KIND, either express or implied. See the License for the specific language
704
+ governing permissions and limitations under the License.
705
+ */
706
+
707
+ /**
708
+ * Returns whether the value is a non-empty array.
709
+ * @param {*} value
710
+ * @returns {boolean}
711
+ */
712
+ var isNonEmptyArray = (value) => Array.isArray(value) && value.length > 0;
713
+
714
+ /*
715
+ Copyright 2019 Adobe. All rights reserved.
716
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
717
+ you may not use this file except in compliance with the License. You may obtain a copy
718
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
719
+
720
+ Unless required by applicable law or agreed to in writing, software distributed under
721
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
722
+ OF ANY KIND, either express or implied. See the License for the specific language
723
+ governing permissions and limitations under the License.
724
+ */
725
+
726
+ var toArray = (value) => {
727
+ if (Array.isArray(value)) {
728
+ return value;
729
+ }
730
+
731
+ if (value == null) {
732
+ return [];
733
+ }
734
+
735
+ return [].slice.call(value);
736
+ };
737
+
738
+ /*
739
+ Copyright 2021 Adobe. All rights reserved.
740
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
741
+ you may not use this file except in compliance with the License. You may obtain a copy
742
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
743
+
744
+ Unless required by applicable law or agreed to in writing, software distributed under
745
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
746
+ OF ANY KIND, either express or implied. See the License for the specific language
747
+ governing permissions and limitations under the License.
748
+ */
749
+
750
+
751
+ const SIBLING_PATTERN = /^\s*>/;
752
+
753
+ var querySelectorAll = (context, selector) => {
754
+ if (!SIBLING_PATTERN.test(selector)) {
755
+ return toArray(context.querySelectorAll(selector));
756
+ }
757
+ return toArray(context.querySelectorAll(`:scope ${selector}`));
758
+ };
759
+
760
+ /*
761
+ Copyright 2022 Adobe. All rights reserved.
762
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
763
+ you may not use this file except in compliance with the License. You may obtain a copy
764
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
765
+
766
+ Unless required by applicable law or agreed to in writing, software distributed under
767
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
768
+ OF ANY KIND, either express or implied. See the License for the specific language
769
+ governing permissions and limitations under the License.
770
+ */
771
+
772
+ var SHADOW_SEPARATOR = ":shadow";
773
+
774
+ /*
775
+ Copyright 2021 Adobe. All rights reserved.
776
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
777
+ you may not use this file except in compliance with the License. You may obtain a copy
778
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
779
+
780
+ Unless required by applicable law or agreed to in writing, software distributed under
781
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
782
+ OF ANY KIND, either express or implied. See the License for the specific language
783
+ governing permissions and limitations under the License.
784
+ */
785
+
786
+
787
+ const splitWithShadow = (selector) => {
788
+ return selector.split(SHADOW_SEPARATOR);
789
+ };
790
+
791
+ const transformPrefix = (parent, selector) => {
792
+ const result = selector;
793
+ const hasChildCombinatorPrefix = result.startsWith(">");
794
+ if (!hasChildCombinatorPrefix) {
795
+ return result;
796
+ }
797
+
798
+ const prefix =
799
+ parent instanceof Element || parent instanceof Document
800
+ ? ":scope"
801
+ : ":host"; // see https://bugs.webkit.org/show_bug.cgi?id=233380
802
+
803
+ return `${prefix} ${result}`;
804
+ };
805
+
806
+ var selectNodesWithShadow = (context, selector) => {
807
+ const parts = splitWithShadow(selector);
808
+
809
+ if (parts.length < 2) {
810
+ return querySelectorAll(context, selector);
811
+ }
812
+
813
+ // split the selector into parts separated by :shadow pseudo-selectors
814
+ // find each subselector element based on the previously selected node's shadowRoot
815
+ let parent = context;
816
+ for (let i = 0; i < parts.length; i += 1) {
817
+ const part = parts[i].trim();
818
+ // if part is empty, it means there's a chained :eq:shadow selector
819
+ if (part === "" && parent.shadowRoot) {
820
+ parent = parent.shadowRoot;
821
+
822
+ continue;
823
+ }
824
+ const prefixed = transformPrefix(parent, part);
825
+ const partNode = querySelectorAll(parent, prefixed);
826
+
827
+ if (partNode.length === 0 || !partNode[0] || !partNode[0].shadowRoot) {
828
+ return partNode;
829
+ }
830
+
831
+ parent = partNode[0].shadowRoot;
832
+ }
833
+ return undefined;
834
+ };
835
+
836
+ /*
837
+ Copyright 2022 Adobe. All rights reserved.
838
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
839
+ you may not use this file except in compliance with the License. You may obtain a copy
840
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
841
+
842
+ Unless required by applicable law or agreed to in writing, software distributed under
843
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
844
+ OF ANY KIND, either express or implied. See the License for the specific language
845
+ governing permissions and limitations under the License.
846
+ */
847
+
848
+
849
+ var isShadowSelector = (str) => str.indexOf(SHADOW_SEPARATOR) !== -1;
850
+
851
+ /*
852
+ Copyright 2019 Adobe. All rights reserved.
853
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
854
+ you may not use this file except in compliance with the License. You may obtain a copy
855
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
856
+
857
+ Unless required by applicable law or agreed to in writing, software distributed under
858
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
859
+ OF ANY KIND, either express or implied. See the License for the specific language
860
+ governing permissions and limitations under the License.
861
+ */
862
+
863
+
864
+ /**
865
+ * Returns an array of matched DOM nodes.
866
+ * @param {String} selector
867
+ * @param {Node} [context=document] defaults to document
868
+ * @returns {Array} an array of DOM nodes
869
+ */
870
+ var selectNodes = (selector, context = document) => {
871
+ if (!isShadowSelector(selector)) {
872
+ return querySelectorAll(context, selector);
873
+ }
874
+
875
+ return selectNodesWithShadow(context, selector);
876
+ };
877
+
878
+ /*
879
+ Copyright 2019 Adobe. All rights reserved.
880
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
881
+ you may not use this file except in compliance with the License. You may obtain a copy
882
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
883
+
884
+ Unless required by applicable law or agreed to in writing, software distributed under
885
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
886
+ OF ANY KIND, either express or implied. See the License for the specific language
887
+ governing permissions and limitations under the License.
888
+ */
889
+
890
+
891
+ const MUTATION_OBSERVER = "MutationObserver";
892
+ const RAF = "requestAnimationFrame";
893
+ const MUTATION_OBSERVER_CONFIG = { childList: true, subtree: true };
894
+ const VISIBILITY_STATE = "visibilityState";
895
+ const VISIBLE = "visible";
896
+ const DELAY = 100;
897
+ const MAX_POLLING_TIMEOUT = 5000;
898
+
899
+ const createError = (selector) => {
900
+ return new Error(`Could not find: ${selector}`);
901
+ };
902
+
903
+ const createPromise = (executor) => {
904
+ return new Promise(executor);
905
+ };
906
+
907
+ const canUseMutationObserver = (win) => {
908
+ return isFunction(win[MUTATION_OBSERVER]);
909
+ };
910
+
911
+ const awaitUsingMutationObserver = (
912
+ win,
913
+ doc,
914
+ selector,
915
+ timeout,
916
+ selectFunc,
917
+ ) => {
918
+ return createPromise((resolve, reject) => {
919
+ let timer;
920
+
921
+ const mutationObserver = new win[MUTATION_OBSERVER](() => {
922
+ const nodes = selectFunc(selector);
923
+
924
+ if (isNonEmptyArray(nodes)) {
925
+ mutationObserver.disconnect();
926
+ if (timer) {
927
+ clearTimeout(timer);
928
+ }
929
+ resolve(nodes);
930
+ }
931
+ });
932
+
933
+ timer = setTimeout(() => {
934
+ mutationObserver.disconnect();
935
+ reject(createError(selector));
936
+ }, timeout);
937
+
938
+ mutationObserver.observe(doc, MUTATION_OBSERVER_CONFIG);
939
+ });
940
+ };
941
+
942
+ const canUseRequestAnimationFrame = (doc) => {
943
+ return doc[VISIBILITY_STATE] === VISIBLE;
944
+ };
945
+
946
+ const awaitUsingRequestAnimation = (
947
+ win,
948
+ selector,
949
+ timeout,
950
+ selectFunc,
951
+ ) => {
952
+ return createPromise((resolve, reject) => {
953
+ const execute = () => {
954
+ const nodes = selectFunc(selector);
955
+
956
+ if (isNonEmptyArray(nodes)) {
957
+ resolve(nodes);
958
+ return;
959
+ }
960
+
961
+ win[RAF](execute);
962
+ };
963
+
964
+ execute();
965
+
966
+ setTimeout(() => {
967
+ reject(createError(selector));
968
+ }, timeout);
969
+ });
970
+ };
971
+
972
+ const awaitUsingTimer = (selector, timeout, selectFunc) => {
973
+ return createPromise((resolve, reject) => {
974
+ const execute = () => {
975
+ const nodes = selectFunc(selector);
976
+
977
+ if (isNonEmptyArray(nodes)) {
978
+ resolve(nodes);
979
+ return;
980
+ }
981
+
982
+ setTimeout(execute, DELAY);
983
+ };
984
+
985
+ execute();
986
+
987
+ setTimeout(() => {
988
+ reject(createError(selector));
989
+ }, timeout);
990
+ });
991
+ };
992
+
993
+ var awaitSelectorInDocument = (
994
+ selector,
995
+ selectFunc = selectNodes,
996
+ timeout = MAX_POLLING_TIMEOUT,
997
+ win = window,
998
+ doc = document,
999
+ ) => {
1000
+ const nodes = selectFunc(selector);
1001
+
1002
+ if (isNonEmptyArray(nodes)) {
1003
+ return Promise.resolve(nodes);
1004
+ }
1005
+
1006
+ if (canUseMutationObserver(win)) {
1007
+ return awaitUsingMutationObserver(win, doc, selector, timeout, selectFunc);
1008
+ }
1009
+
1010
+ if (canUseRequestAnimationFrame(doc)) {
1011
+ return awaitUsingRequestAnimation(win, selector, timeout, selectFunc);
1012
+ }
1013
+
1014
+ return awaitUsingTimer(selector, timeout, selectFunc);
1015
+ };
1016
+
1017
+ /*
1018
+ Copyright 2019 Adobe. All rights reserved.
1019
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1020
+ you may not use this file except in compliance with the License. You may obtain a copy
1021
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1022
+
1023
+ Unless required by applicable law or agreed to in writing, software distributed under
1024
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1025
+ OF ANY KIND, either express or implied. See the License for the specific language
1026
+ governing permissions and limitations under the License.
1027
+ */
1028
+
1029
+
1030
+ const IFRAME_ATTRS = {
1031
+ name: "Adobe Alloy",
1032
+ };
1033
+
1034
+ const IFRAME_PROPS = {
1035
+ style: {
1036
+ display: "none",
1037
+ width: 0,
1038
+ height: 0,
1039
+ },
1040
+ };
1041
+
1042
+ var injectFireReferrerHideableImage = ({
1043
+ appendNode = appendNodeToDocument,
1044
+ awaitSelector = awaitSelectorInDocument,
1045
+ createNode = createNodeInDocument,
1046
+ fireImage = fireImageInDocument,
1047
+ } = {}) => {
1048
+ const fireOnPage = fireImage;
1049
+
1050
+ let hiddenIframe;
1051
+
1052
+ const createIframe = () => {
1053
+ return awaitSelector(BODY).then(([body]) => {
1054
+ if (hiddenIframe) {
1055
+ return hiddenIframe;
1056
+ }
1057
+ hiddenIframe = createNode(IFRAME, IFRAME_ATTRS, IFRAME_PROPS);
1058
+ return appendNode(body, hiddenIframe);
1059
+ });
1060
+ };
1061
+
1062
+ const fireInIframe = ({ src }) => {
1063
+ return createIframe().then((iframe) => {
1064
+ const currentDocument = iframe.contentWindow.document;
1065
+ return fireImage({ src, currentDocument });
1066
+ });
1067
+ };
1068
+
1069
+ return (request) => {
1070
+ const { hideReferrer, url } = request;
1071
+ return hideReferrer ? fireInIframe({ src: url }) : fireOnPage({ src: url });
1072
+ };
1073
+ };
1074
+
1075
+ /*
1076
+ Copyright 2019 Adobe. All rights reserved.
1077
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1078
+ you may not use this file except in compliance with the License. You may obtain a copy
1079
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1080
+
1081
+ Unless required by applicable law or agreed to in writing, software distributed under
1082
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1083
+ OF ANY KIND, either express or implied. See the License for the specific language
1084
+ governing permissions and limitations under the License.
1085
+ */
1086
+
1087
+
1088
+ /**
1089
+ * Returns whether the value is an empty object.
1090
+ * @param {*} value
1091
+ * @returns {boolean}
1092
+ */
1093
+ var isEmptyObject = (value) => isObject(value) && Object.keys(value).length === 0;
1094
+
1095
+ /*
1096
+ Copyright 2022 Adobe. All rights reserved.
1097
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1098
+ you may not use this file except in compliance with the License. You may obtain a copy
1099
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1100
+
1101
+ Unless required by applicable law or agreed to in writing, software distributed under
1102
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1103
+ OF ANY KIND, either express or implied. See the License for the specific language
1104
+ governing permissions and limitations under the License.
1105
+ */
1106
+
1107
+
1108
+ /**
1109
+ * Given an object and a function that takes a value and returns a predicate, filter out
1110
+ * all non-object deeply nested values that do not pass the predicate.
1111
+ *
1112
+ * Example: filterObject({ a: 2, b: { c: 6 } }, (val) => val > 5) returns { b { c: 6 } }
1113
+ *
1114
+ * @param {*} obj
1115
+ * @param {* => boolean} predicate a function that takes a value and return a boolean,
1116
+ * representing if it should be included in the result object or not.
1117
+ * @returns A copy of the original object with the values that fail the predicate, filtered out.
1118
+ */
1119
+ const filterObject = (obj, predicate) => {
1120
+ if (isNil(obj) || !isObject(obj)) {
1121
+ return obj;
1122
+ }
1123
+ return Object.keys(obj).reduce((result, key) => {
1124
+ const value = obj[key];
1125
+ if (isObject(value)) {
1126
+ // value is object, go deeper
1127
+ const filteredValue = filterObject(value, predicate);
1128
+ if (isEmptyObject(filteredValue)) {
1129
+ return result;
1130
+ }
1131
+ return { ...result, [key]: filteredValue };
1132
+ }
1133
+ // value is not an object, test predicate
1134
+ if (predicate(value)) {
1135
+ return { ...result, [key]: value };
1136
+ }
1137
+ return result;
1138
+ }, {});
1139
+ };
1140
+
1141
+ /*
1142
+ Copyright 2025 Adobe. All rights reserved.
1143
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1144
+ you may not use this file except in compliance with the License. You may obtain a copy
1145
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1146
+
1147
+ Unless required by applicable law or agreed to in writing, software distributed under
1148
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1149
+ OF ANY KIND, either express or implied. See the License for the specific language
1150
+ governing permissions and limitations under the License.
1151
+ */
1152
+
1153
+ /* eslint-disable no-bitwise */
1154
+
1155
+ /**
1156
+ * Generates an FNV1A32 hash for the given input string.
1157
+ * @param {string} str - The string to hash
1158
+ * @returns {number} - The 32-bit FNV1A hash as a number
1159
+ */
1160
+ const fnv1a32 = (str) => {
1161
+ // FNV_offset_basis for 32-bit hash
1162
+ let hash = 0x811c9dc5;
1163
+
1164
+ // FNV_prime for 32-bit hash
1165
+ const prime = 0x01000193;
1166
+
1167
+ // Convert the string to a properly encoded UTF-8 byte array
1168
+ const utf8Encoder = new TextEncoder();
1169
+ const bytes = utf8Encoder.encode(str);
1170
+
1171
+ // Process each byte in the UTF-8 encoded array
1172
+ for (let i = 0; i < bytes.length; i += 1) {
1173
+ // XOR the hash with the byte value, then multiply by prime
1174
+ hash ^= bytes[i];
1175
+ hash = Math.imul(hash, prime);
1176
+ }
1177
+
1178
+ // Return the final hash value (unsigned 32-bit integer)
1179
+ return hash >>> 0;
1180
+ };
1181
+
1182
+ /**
1183
+ * Generates an FNV1A32 hash and returns it as a hexadecimal string.
1184
+ * @param {string} str - The string to hash
1185
+ * @returns {string} - The 32-bit FNV1A hash as a hexadecimal string
1186
+ */
1187
+ const fnv1a32Hex = (str) => fnv1a32(str).toString(16).padStart(8, "0");
1188
+
1189
+ /*
1190
+ Copyright 2019 Adobe. All rights reserved.
1191
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1192
+ you may not use this file except in compliance with the License. You may obtain a copy
1193
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1194
+
1195
+ Unless required by applicable law or agreed to in writing, software distributed under
1196
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1197
+ OF ANY KIND, either express or implied. See the License for the specific language
1198
+ governing permissions and limitations under the License.
1199
+ */
1200
+
1201
+ var baseNamespace = "com.adobe.alloy.";
1202
+
1203
+ /*
1204
+ Copyright 2019 Adobe. All rights reserved.
1205
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1206
+ you may not use this file except in compliance with the License. You may obtain a copy
1207
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1208
+
1209
+ Unless required by applicable law or agreed to in writing, software distributed under
1210
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1211
+ OF ANY KIND, either express or implied. See the License for the specific language
1212
+ governing permissions and limitations under the License.
1213
+ */
1214
+
1215
+ /**
1216
+ * Returns the last N number of items from an array.
1217
+ * @param {Array} arr
1218
+ * @param {number} itemCount
1219
+ * @returns {Array}
1220
+ */
1221
+ var getLastArrayItems = (arr, itemCount) => arr.slice(-itemCount);
1222
+
1223
+ /*
1224
+ Copyright 2019 Adobe. All rights reserved.
1225
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1226
+ you may not use this file except in compliance with the License. You may obtain a copy
1227
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1228
+
1229
+ Unless required by applicable law or agreed to in writing, software distributed under
1230
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1231
+ OF ANY KIND, either express or implied. See the License for the specific language
1232
+ governing permissions and limitations under the License.
1233
+ */
1234
+
1235
+
1236
+ const cookieName = `${baseNamespace}getTld`;
1237
+
1238
+ /**
1239
+ * Of the current web page's hostname, this is the top-most domain that is
1240
+ * not a "public suffix" as outlined in https://publicsuffix.org/. In other
1241
+ * words, this is top-most domain that is able to accept cookies.
1242
+ * @param {Object} window
1243
+ * @param {Object} cookieJar
1244
+ * @returns {string}
1245
+ */
1246
+ var getApexDomain = (window, cookieJar) => {
1247
+ let topLevelCookieDomain = "";
1248
+
1249
+ // If hostParts.length === 1, we may be on localhost.
1250
+ const hostParts = window.location.hostname.toLowerCase().split(".");
1251
+ let i = 1;
1252
+
1253
+ while (i < hostParts.length && !cookieJar.get(cookieName)) {
1254
+ i += 1;
1255
+ topLevelCookieDomain = getLastArrayItems(hostParts, i).join(".");
1256
+ cookieJar.set(cookieName, cookieName, { domain: topLevelCookieDomain });
1257
+ }
1258
+
1259
+ cookieJar.remove(cookieName, { domain: topLevelCookieDomain });
1260
+
1261
+ return topLevelCookieDomain;
1262
+ };
1263
+
1264
+ /*
1265
+ Copyright 2019 Adobe. All rights reserved.
1266
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1267
+ you may not use this file except in compliance with the License. You may obtain a copy
1268
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1269
+
1270
+ Unless required by applicable law or agreed to in writing, software distributed under
1271
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1272
+ OF ANY KIND, either express or implied. See the License for the specific language
1273
+ governing permissions and limitations under the License.
1274
+ */
1275
+
1276
+ // Remember to also incorporate the org ID wherever cookies are read or written.
1277
+ var COOKIE_NAME_PREFIX = "kndctr";
1278
+
1279
+ /*
1280
+ Copyright 2019 Adobe. All rights reserved.
1281
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1282
+ you may not use this file except in compliance with the License. You may obtain a copy
1283
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1284
+
1285
+ Unless required by applicable law or agreed to in writing, software distributed under
1286
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1287
+ OF ANY KIND, either express or implied. See the License for the specific language
1288
+ governing permissions and limitations under the License.
1289
+ */
1290
+
1291
+ var sanitizeOrgIdForCookieName = (orgId) => orgId.replace("@", "_");
1292
+
1293
+ /*
1294
+ Copyright 2019 Adobe. All rights reserved.
1295
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1296
+ you may not use this file except in compliance with the License. You may obtain a copy
1297
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1298
+
1299
+ Unless required by applicable law or agreed to in writing, software distributed under
1300
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1301
+ OF ANY KIND, either express or implied. See the License for the specific language
1302
+ governing permissions and limitations under the License.
1303
+ */
1304
+
1305
+
1306
+ var getNamespacedCookieName = (orgId, key) =>
1307
+ `${COOKIE_NAME_PREFIX}_${sanitizeOrgIdForCookieName(orgId)}_${key}`;
1308
+
1309
+ /*
1310
+ Copyright 2019 Adobe. All rights reserved.
1311
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1312
+ you may not use this file except in compliance with the License. You may obtain a copy
1313
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1314
+
1315
+ Unless required by applicable law or agreed to in writing, software distributed under
1316
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1317
+ OF ANY KIND, either express or implied. See the License for the specific language
1318
+ governing permissions and limitations under the License.
1319
+ */
1320
+
1321
+ /**
1322
+ * Group an array by a key getter provided
1323
+ * @param {Array} arr Array to iterate over.
1324
+ * @param {Function} keyGetter The key getter by which to group.
1325
+ * @returns {Object}
1326
+ */
1327
+ var groupBy = (arr, keyGetter) => {
1328
+ const result = {};
1329
+
1330
+ arr.forEach((item) => {
1331
+ const key = keyGetter(item);
1332
+
1333
+ if (!result[key]) {
1334
+ result[key] = [];
1335
+ }
1336
+
1337
+ result[key].push(item);
1338
+ });
1339
+
1340
+ return result;
1341
+ };
1342
+
1343
+ /*
1344
+ Copyright 2019 Adobe. All rights reserved.
1345
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1346
+ you may not use this file except in compliance with the License. You may obtain a copy
1347
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1348
+
1349
+ Unless required by applicable law or agreed to in writing, software distributed under
1350
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1351
+ OF ANY KIND, either express or implied. See the License for the specific language
1352
+ governing permissions and limitations under the License.
1353
+ */
1354
+
1355
+ const CHROME = "Chrome";
1356
+ const EDGE = "Edge";
1357
+ const EDGE_CHROMIUM = "EdgeChromium";
1358
+ const FIREFOX = "Firefox";
1359
+ const IE = "IE";
1360
+ const SAFARI = "Safari";
1361
+ const UNKNOWN = "Unknown";
1362
+
1363
+ /*
1364
+ Copyright 2024 Adobe. All rights reserved.
1365
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1366
+ you may not use this file except in compliance with the License. You may obtain a copy
1367
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1368
+
1369
+ Unless required by applicable law or agreed to in writing, software distributed under
1370
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1371
+ OF ANY KIND, either express or implied. See the License for the specific language
1372
+ governing permissions and limitations under the License.
1373
+ */
1374
+ var lazy = (fn) => {
1375
+ let called = false;
1376
+ let result;
1377
+ return () => {
1378
+ if (!called) {
1379
+ called = true;
1380
+ result = fn();
1381
+ }
1382
+ return result;
1383
+ };
1384
+ };
1385
+
1386
+ /*
1387
+ Copyright 2019 Adobe. All rights reserved.
1388
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1389
+ you may not use this file except in compliance with the License. You may obtain a copy
1390
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1391
+
1392
+ Unless required by applicable law or agreed to in writing, software distributed under
1393
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1394
+ OF ANY KIND, either express or implied. See the License for the specific language
1395
+ governing permissions and limitations under the License.
1396
+ */
1397
+
1398
+
1399
+ // Users could have also disabled third-party cookies within these browsers, but
1400
+ // we don't know. We also assume "unknown" browsers support third-party cookies,
1401
+ // though we don't really know that either. We're making best guesses.
1402
+ const browsersSupportingThirdPartyCookie = [
1403
+ CHROME,
1404
+ EDGE,
1405
+ EDGE_CHROMIUM,
1406
+ IE,
1407
+ UNKNOWN,
1408
+ ];
1409
+
1410
+ var injectAreThirdPartyCookiesSupportedByDefault = ({ getBrowser }) =>
1411
+ lazy(() => browsersSupportingThirdPartyCookie.includes(getBrowser()));
1412
+
1413
+ /*
1414
+ Copyright 2019 Adobe. All rights reserved.
1415
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1416
+ you may not use this file except in compliance with the License. You may obtain a copy
1417
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1418
+
1419
+ Unless required by applicable law or agreed to in writing, software distributed under
1420
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1421
+ OF ANY KIND, either express or implied. See the License for the specific language
1422
+ governing permissions and limitations under the License.
1423
+ */
1424
+
1425
+ const IDENTITY = "identity";
1426
+
1427
+ /*
1428
+ Copyright 2020 Adobe. All rights reserved.
1429
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1430
+ you may not use this file except in compliance with the License. You may obtain a copy
1431
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1432
+
1433
+ Unless required by applicable law or agreed to in writing, software distributed under
1434
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1435
+ OF ANY KIND, either express or implied. See the License for the specific language
1436
+ governing permissions and limitations under the License.
1437
+ */
1438
+
1439
+
1440
+ var injectDoesIdentityCookieExist = ({ orgId }) => {
1441
+ const identityCookieName = getNamespacedCookieName(orgId, IDENTITY);
1442
+ /**
1443
+ * Returns whether the identity cookie exists.
1444
+ */
1445
+ return () => Boolean(cookieJar.get(identityCookieName));
1446
+ };
1447
+
1448
+ /*
1449
+ Copyright 2019 Adobe. All rights reserved.
1450
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1451
+ you may not use this file except in compliance with the License. You may obtain a copy
1452
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1453
+
1454
+ Unless required by applicable law or agreed to in writing, software distributed under
1455
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1456
+ OF ANY KIND, either express or implied. See the License for the specific language
1457
+ governing permissions and limitations under the License.
1458
+ */
1459
+
1460
+
1461
+ const matchUserAgent = (regexs, userAgent) => {
1462
+ const keys = Object.keys(regexs);
1463
+ for (let i = 0; i < keys.length; i += 1) {
1464
+ const key = keys[i];
1465
+ const regex = regexs[key];
1466
+ if (regex.test(userAgent)) {
1467
+ return key;
1468
+ }
1469
+ }
1470
+ return UNKNOWN;
1471
+ };
1472
+
1473
+ var injectGetBrowser = ({ userAgent }) => {
1474
+ return lazy(() =>
1475
+ matchUserAgent(
1476
+ {
1477
+ /*
1478
+ The MIT License (MIT)
1479
+
1480
+ Copyright (c) 2019 Damon Oehlman damon.oehlman@gmail.com
1481
+
1482
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1483
+ of this software and associated documentation files (the "Software"), to
1484
+ deal in the Software without restriction, including without limitation the
1485
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1486
+ sell copies of the Software, and to permit persons to whom the Software is
1487
+ furnished to do so, subject to the following conditions:
1488
+
1489
+ The above copyright notice and this permission notice shall be included in
1490
+ all copies or substantial portions of the Software.
1491
+
1492
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1493
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1494
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1495
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1496
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1497
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1498
+ DEALINGS IN THE SOFTWARE.
1499
+ */
1500
+ // Regular expression patterns were copied from
1501
+ // https://github.com/DamonOehlman/detect-browser
1502
+ // These are only the browsers that Alloy officially supports.
1503
+ /* eslint-disable */
1504
+ [EDGE]: /Edge\/([0-9\._]+)/,
1505
+ // Edge Chromium can dynamically change its user agent string based
1506
+ // on the host site:
1507
+ // https://winaero.com/blog/microsoft-edge-chromium-dynamically-changes-its-user-agent/
1508
+ [EDGE_CHROMIUM]: /Edg\/([0-9\.]+)/,
1509
+ [CHROME]: /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/,
1510
+ [FIREFOX]: /Firefox\/([0-9\.]+)(?:\s|$)/,
1511
+ // This only covers version 11 of IE, but that's all we support.
1512
+ [IE]: /Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/,
1513
+ [SAFARI]: /Version\/([0-9\._]+).*Safari/,
1514
+ /* eslint-enable */
1515
+ },
1516
+ userAgent,
1517
+ ),
1518
+ );
1519
+ };
1520
+
1521
+ /*
1522
+ Copyright 2019 Adobe. All rights reserved.
1523
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1524
+ you may not use this file except in compliance with the License. You may obtain a copy
1525
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1526
+
1527
+ Unless required by applicable law or agreed to in writing, software distributed under
1528
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1529
+ OF ANY KIND, either express or implied. See the License for the specific language
1530
+ governing permissions and limitations under the License.
1531
+ */
1532
+
1533
+
1534
+ const getStorageByType = (context, storageType, namespace) => {
1535
+ // When storage is disabled on Safari, the mere act of referencing
1536
+ // window.localStorage or window.sessionStorage throws an error.
1537
+ // For this reason, we wrap in a try-catch.
1538
+ return {
1539
+ /**
1540
+ * Reads a value from storage.
1541
+ * @param {string} name The name of the item to be read.
1542
+ * @returns {string}
1543
+ */
1544
+ getItem(name) {
1545
+ try {
1546
+ return context[storageType].getItem(namespace + name);
1547
+ } catch {
1548
+ return null;
1549
+ }
1550
+ },
1551
+ /**
1552
+ * Saves a value to storage.
1553
+ * @param {string} name The name of the item to be saved.
1554
+ * @param {string} value The value of the item to be saved.
1555
+ * @returns {boolean} Whether the item was successfully saved to storage.
1556
+ */
1557
+ setItem(name, value) {
1558
+ try {
1559
+ context[storageType].setItem(namespace + name, value);
1560
+ return true;
1561
+ } catch {
1562
+ return false;
1563
+ }
1564
+ },
1565
+ /**
1566
+ * Clear all values in storage that match the namespace.
1567
+ */
1568
+ clear() {
1569
+ try {
1570
+ Object.keys(context[storageType]).forEach((key) => {
1571
+ if (key.startsWith(namespace)) {
1572
+ context[storageType].removeItem(key);
1573
+ }
1574
+ });
1575
+ return true;
1576
+ } catch {
1577
+ return false;
1578
+ }
1579
+ },
1580
+ };
1581
+ };
1582
+
1583
+ var injectStorage = (context) => (additionalNamespace) => {
1584
+ const finalNamespace = baseNamespace + additionalNamespace;
1585
+ return {
1586
+ session: getStorageByType(context, "sessionStorage", finalNamespace),
1587
+ persistent: getStorageByType(context, "localStorage", finalNamespace),
1588
+ };
1589
+ };
1590
+
1591
+ /*
1592
+ Copyright 2019 Adobe. All rights reserved.
1593
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1594
+ you may not use this file except in compliance with the License. You may obtain a copy
1595
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1596
+
1597
+ Unless required by applicable law or agreed to in writing, software distributed under
1598
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1599
+ OF ANY KIND, either express or implied. See the License for the specific language
1600
+ governing permissions and limitations under the License.
1601
+ */
1602
+ /**
1603
+ * Returns items that are found within both arrays.
1604
+ * @param {Array} a
1605
+ * @param {Array} b
1606
+ * @returns {Array}
1607
+ */
1608
+ var intersection = (a, b) => a.filter((x) => b.includes(x));
1609
+
1610
+ /*
1611
+ Copyright 2019 Adobe. All rights reserved.
1612
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1613
+ you may not use this file except in compliance with the License. You may obtain a copy
1614
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1615
+
1616
+ Unless required by applicable law or agreed to in writing, software distributed under
1617
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1618
+ OF ANY KIND, either express or implied. See the License for the specific language
1619
+ governing permissions and limitations under the License.
1620
+ */
1621
+
1622
+ /**
1623
+ * Returns whether the value is a boolean.
1624
+ * @param {*} value
1625
+ * @returns {boolean}
1626
+ */
1627
+ var isBoolean = (value) => typeof value === "boolean";
1628
+
1629
+ /*
1630
+ Copyright 2019 Adobe. All rights reserved.
1631
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1632
+ you may not use this file except in compliance with the License. You may obtain a copy
1633
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1634
+
1635
+ Unless required by applicable law or agreed to in writing, software distributed under
1636
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1637
+ OF ANY KIND, either express or implied. See the License for the specific language
1638
+ governing permissions and limitations under the License.
1639
+ */
1640
+
1641
+ /**
1642
+ * Returns whether the value is a number.
1643
+ * @param {*} value
1644
+ * @returns {boolean}
1645
+ */
1646
+ var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
1647
+
1648
+ /*
1649
+ Copyright 2019 Adobe. All rights reserved.
1650
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1651
+ you may not use this file except in compliance with the License. You may obtain a copy
1652
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1653
+
1654
+ Unless required by applicable law or agreed to in writing, software distributed under
1655
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1656
+ OF ANY KIND, either express or implied. See the License for the specific language
1657
+ governing permissions and limitations under the License.
1658
+ */
1659
+
1660
+
1661
+ /**
1662
+ * Returns whether the value is an integer.
1663
+ * @param {*} value
1664
+ * @returns {boolean}
1665
+ */
1666
+ var isInteger = (value) => {
1667
+ const parsed = parseInt(value, 10);
1668
+
1669
+ return isNumber(parsed) && value === parsed;
1670
+ };
1671
+
1672
+ /*
1673
+ Copyright 2019 Adobe. All rights reserved.
1674
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1675
+ you may not use this file except in compliance with the License. You may obtain a copy
1676
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1677
+
1678
+ Unless required by applicable law or agreed to in writing, software distributed under
1679
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1680
+ OF ANY KIND, either express or implied. See the License for the specific language
1681
+ governing permissions and limitations under the License.
1682
+ */
1683
+
1684
+
1685
+ /**
1686
+ * Determines whether a cookie name is namespaced according to the contract
1687
+ * defined by the server.
1688
+ * @param {String} orgId The org ID configured for the Alloy instance.
1689
+ * @param {String} name The cookie name.
1690
+ * @returns {boolean}
1691
+ */
1692
+ var isNamespacedCookieName = (orgId, name) =>
1693
+ name.indexOf(
1694
+ `${COOKIE_NAME_PREFIX}_${sanitizeOrgIdForCookieName(orgId)}_`,
1695
+ ) === 0;
1696
+
1697
+ /*
1698
+ Copyright 2019 Adobe. All rights reserved.
1699
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1700
+ you may not use this file except in compliance with the License. You may obtain a copy
1701
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1702
+
1703
+ Unless required by applicable law or agreed to in writing, software distributed under
1704
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1705
+ OF ANY KIND, either express or implied. See the License for the specific language
1706
+ governing permissions and limitations under the License.
1707
+ */
1708
+
1709
+ /**
1710
+ * Returns whether the value is a string.
1711
+ * @param {*} value
1712
+ * @returns {boolean}
1713
+ */
1714
+ var isString = (value) => typeof value === "string";
1715
+
1716
+ /*
1717
+ Copyright 2019 Adobe. All rights reserved.
1718
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1719
+ you may not use this file except in compliance with the License. You may obtain a copy
1720
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1721
+
1722
+ Unless required by applicable law or agreed to in writing, software distributed under
1723
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1724
+ OF ANY KIND, either express or implied. See the License for the specific language
1725
+ governing permissions and limitations under the License.
1726
+ */
1727
+
1728
+
1729
+ /**
1730
+ * Returns whether the value is a populated string.
1731
+ * @param {*} value
1732
+ * @returns {boolean}
1733
+ */
1734
+ var isNonEmptyString = (value) => isString(value) && value.length > 0;
1735
+
1736
+ /*
1737
+ Copyright 2019 Adobe. All rights reserved.
1738
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1739
+ you may not use this file except in compliance with the License. You may obtain a copy
1740
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1741
+
1742
+ Unless required by applicable law or agreed to in writing, software distributed under
1743
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1744
+ OF ANY KIND, either express or implied. See the License for the specific language
1745
+ governing permissions and limitations under the License.
1746
+ */
1747
+
1748
+ /**
1749
+ * A function that performs no operations.
1750
+ */
1751
+ var noop = () => {};
1752
+
1753
+ /*
1754
+ Copyright 2023 Adobe. All rights reserved.
1755
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1756
+ you may not use this file except in compliance with the License. You may obtain a copy
1757
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1758
+
1759
+ Unless required by applicable law or agreed to in writing, software distributed under
1760
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1761
+ OF ANY KIND, either express or implied. See the License for the specific language
1762
+ governing permissions and limitations under the License.
1763
+ */
1764
+
1765
+ const parseDomainBasic = (host) => {
1766
+ const result = {};
1767
+ const domainParts = host.split(".");
1768
+
1769
+ switch (domainParts.length) {
1770
+ case 1:
1771
+ result.subdomain = "";
1772
+ result.domain = host;
1773
+ result.topLevelDomain = "";
1774
+ break;
1775
+ case 2:
1776
+ result.subdomain = "";
1777
+ result.domain = host;
1778
+ result.topLevelDomain = domainParts[1];
1779
+ break;
1780
+ case 3:
1781
+ result.subdomain = domainParts[0] === "www" ? "" : domainParts[0];
1782
+ result.domain = host;
1783
+ result.topLevelDomain = domainParts[2];
1784
+ break;
1785
+ case 4:
1786
+ result.subdomain = domainParts[0] === "www" ? "" : domainParts[0];
1787
+ result.domain = host;
1788
+ result.topLevelDomain = `${domainParts[2]}.${domainParts[3]}`;
1789
+ break;
1790
+ }
1791
+
1792
+ return result;
1793
+ };
1794
+
1795
+ /**
1796
+ * @typedef {Object} ParseUriResult
1797
+ * @property {string} host
1798
+ * @property {string} path
1799
+ * @property {string} query
1800
+ * @property {string} anchor
1801
+ *
1802
+ * @param {string} url
1803
+ * @returns {ParseUriResult}
1804
+ */
1805
+ const parseUri = (url) => {
1806
+ try {
1807
+ const parsed = new URL(url);
1808
+ let path = parsed.pathname;
1809
+ if (!url.endsWith("/") && path === "/") {
1810
+ path = "";
1811
+ }
1812
+ return {
1813
+ host: parsed.hostname,
1814
+ path,
1815
+ query: parsed.search.replace(/^\?/, ""),
1816
+ anchor: parsed.hash.replace(/^#/, ""),
1817
+ };
1818
+ } catch {
1819
+ return {
1820
+ host: "",
1821
+ path: "",
1822
+ query: "",
1823
+ anchor: "",
1824
+ };
1825
+ }
1826
+ };
1827
+
1828
+ const parseUrl = (url, parseDomain = parseDomainBasic) => {
1829
+ if (!isString(url)) {
1830
+ url = "";
1831
+ }
1832
+
1833
+ const parsed = parseUri(url);
1834
+ const { host, path, query, anchor } = parsed;
1835
+
1836
+ return {
1837
+ path,
1838
+ query,
1839
+ fragment: anchor,
1840
+ ...parseDomain(host),
1841
+ };
1842
+ };
1843
+
1844
+ /*
1845
+ Copyright 2022 Adobe. All rights reserved.
1846
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1847
+ you may not use this file except in compliance with the License. You may obtain a copy
1848
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1849
+
1850
+ Unless required by applicable law or agreed to in writing, software distributed under
1851
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1852
+ OF ANY KIND, either express or implied. See the License for the specific language
1853
+ governing permissions and limitations under the License.
1854
+ */
1855
+
1856
+ // We want to avoid mapping between specific keys because we want Konductor
1857
+ // to be able to add overrides in the future without us needing to make
1858
+ // any changes to the Web SDK
1859
+ var prepareConfigOverridesForEdge = (configuration) => {
1860
+ if (isNil(configuration) || typeof configuration !== "object") {
1861
+ return null;
1862
+ }
1863
+ // remove entries that are empty strings or arrays
1864
+ const configOverrides = filterObject(configuration, (value) => {
1865
+ if (isNil(value)) {
1866
+ return false;
1867
+ }
1868
+ if (isBoolean(value)) {
1869
+ return true;
1870
+ }
1871
+ if (isNumber(value)) {
1872
+ return true;
1873
+ }
1874
+ if (isNonEmptyString(value)) {
1875
+ return true;
1876
+ }
1877
+ if (isNonEmptyArray(value)) {
1878
+ return true;
1879
+ }
1880
+ return false;
1881
+ });
1882
+ if (isEmptyObject(configOverrides)) {
1883
+ return null;
1884
+ }
1885
+
1886
+ return configOverrides;
1887
+ };
1888
+
1889
+ function getDefaultExportFromCjs (x) {
1890
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1891
+ }
1892
+
1893
+ /***************************************************************************************
1894
+ * (c) 2017 Adobe. All rights reserved.
1895
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1896
+ * you may not use this file except in compliance with the License. You may obtain a copy
1897
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
1898
+ *
1899
+ * Unless required by applicable law or agreed to in writing, software distributed under
1900
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1901
+ * OF ANY KIND, either express or implied. See the License for the specific language
1902
+ * governing permissions and limitations under the License.
1903
+ ****************************************************************************************/
1904
+
1905
+ var reactorQueryString;
1906
+ var hasRequiredReactorQueryString;
1907
+
1908
+ function requireReactorQueryString () {
1909
+ if (hasRequiredReactorQueryString) return reactorQueryString;
1910
+ hasRequiredReactorQueryString = 1;
1911
+
1912
+ /**
1913
+ * Parse a query string into an object. Leading `?` or `#` are ignored, so you
1914
+ * can pass `location.search` or `location.hash` directly.
1915
+ *
1916
+ * URL components are decoded with decode-uri-component.
1917
+ *
1918
+ * Parse arrays with elements using duplicate keys, e.g. ?a=1&a=2 becomes
1919
+ * {a: ['1', '2']}.
1920
+ *
1921
+ * Query keys are sorted alphabetically.
1922
+ *
1923
+ * Numbers and booleans are NOT parsed; they are left as strings.
1924
+ * @param {string} query the query part of a url
1925
+ * @returns {{ [key: string]: string | string[] | undefined }} the parsed query string
1926
+ */
1927
+ var parseQueryString = function (query) {
1928
+ /** @type {{[key: string]: string | string[] | undefined }} */
1929
+ var result = {};
1930
+
1931
+ if (!query || typeof query !== 'string') {
1932
+ return result;
1933
+ }
1934
+
1935
+ var cleanQuery = query.trim().replace(/^[?#&]/, '');
1936
+ var params = new URLSearchParams(cleanQuery);
1937
+
1938
+ var iter = params.keys();
1939
+ do {
1940
+ var v = iter.next();
1941
+ var key = v.value;
1942
+
1943
+ if (key) {
1944
+ var values = params.getAll(key);
1945
+ if (values.length === 1) {
1946
+ result[key] = values[0];
1947
+ } else {
1948
+ result[key] = values;
1949
+ }
1950
+ }
1951
+ } while (v.done === false);
1952
+
1953
+ return result;
1954
+ };
1955
+
1956
+ /**
1957
+ * Transform an object into a query string.
1958
+ *
1959
+ * Keys having object values are ignored.
1960
+ *
1961
+ * @param {object} the object to transform into a query string
1962
+ * @returns {string} the parsed query string
1963
+ */
1964
+
1965
+ var stringifyObject = function (object) {
1966
+ var spaceToken = '{{space}}';
1967
+ var params = new URLSearchParams();
1968
+
1969
+ Object.keys(object).forEach(function (key) {
1970
+ var value = object[key];
1971
+
1972
+ if (typeof object[key] === 'string') {
1973
+ value = value.replace(/ /g, spaceToken);
1974
+ } else if (
1975
+ ['object', 'undefined'].includes(typeof value) &&
1976
+ !Array.isArray(value)
1977
+ ) {
1978
+ value = '';
1979
+ }
1980
+
1981
+ if (Array.isArray(value)) {
1982
+ value.forEach(function (arrayValue) {
1983
+ params.append(key, arrayValue);
1984
+ });
1985
+ } else {
1986
+ params.append(key, value);
1987
+ }
1988
+ });
1989
+
1990
+ return params
1991
+ .toString()
1992
+ .replace(new RegExp(encodeURIComponent(spaceToken), 'g'), '%20');
1993
+ };
1994
+
1995
+ // We proxy the underlying querystring module so we can limit the API we expose.
1996
+ // This allows us to more easily make changes to the underlying implementation later without
1997
+ // having to worry about breaking extensions. If extensions demand additional functionality, we
1998
+ // can make adjustments as needed.
1999
+ reactorQueryString = {
2000
+ parse: function (string) {
2001
+ return parseQueryString(string);
2002
+ },
2003
+ stringify: function (object) {
2004
+ return stringifyObject(object);
2005
+ }
2006
+ };
2007
+ return reactorQueryString;
2008
+ }
2009
+
2010
+ var reactorQueryStringExports = requireReactorQueryString();
2011
+ var queryString = /*@__PURE__*/getDefaultExportFromCjs(reactorQueryStringExports);
2012
+
2013
+ /*
2014
+ Copyright 2025 Adobe. All rights reserved.
2015
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2016
+ you may not use this file except in compliance with the License. You may obtain a copy
2017
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2018
+
2019
+ Unless required by applicable law or agreed to in writing, software distributed under
2020
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2021
+ OF ANY KIND, either express or implied. See the License for the specific language
2022
+ governing permissions and limitations under the License.
2023
+ */
2024
+
2025
+ /**
2026
+ * Recursively sorts the properties of all objects within the provided data structure.
2027
+ * @param {Object|Array} data - The data structure to serialize. It can be an object or an array.
2028
+ * @returns {Object|Array} - A new object or array with allo the container object having properties sorted.
2029
+ */
2030
+ const sortObjectPropertiesDeep = (data) => {
2031
+ if (Array.isArray(data)) {
2032
+ return data.map((value) => sortObjectPropertiesDeep(value));
2033
+ }
2034
+
2035
+ if (typeof data === "object" && data !== null) {
2036
+ return Object.keys(data)
2037
+ .sort()
2038
+ .reduce((memo, key) => {
2039
+ memo[key] = sortObjectPropertiesDeep(data[key]);
2040
+ return memo;
2041
+ }, {});
2042
+ }
2043
+
2044
+ return data;
2045
+ };
2046
+
2047
+ /**
2048
+ * This utility helps create consistent serialized representations of objects
2049
+ * by eliminating variations caused by property order. This is useful for creating
2050
+ * reliable hashes or checksums containing these objects.
2051
+ * @param {Object|Array} data - The data structure to serialize. It can be an object or an array.
2052
+ * @returns {Object|Array} - A new object or array with allo the container object having properties sorted.
2053
+ */
2054
+ var sortObjectKeysRecursively = (data) => sortObjectPropertiesDeep(data);
2055
+
2056
+ /*
2057
+ Copyright 2019 Adobe. All rights reserved.
2058
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2059
+ you may not use this file except in compliance with the License. You may obtain a copy
2060
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2061
+
2062
+ Unless required by applicable law or agreed to in writing, software distributed under
2063
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2064
+ OF ANY KIND, either express or implied. See the License for the specific language
2065
+ governing permissions and limitations under the License.
2066
+ */
2067
+
2068
+ /**
2069
+ * Creates and returns a new error using the provided value as a message.
2070
+ * If the provided value is already an Error, it will be returned unmodified.
2071
+ * @param {*} value
2072
+ * @returns {Error}
2073
+ */
2074
+ var toError = (value) => {
2075
+ return value instanceof Error ? value : new Error(value);
2076
+ };
2077
+
2078
+ /*
2079
+ Copyright 2020 Adobe. All rights reserved.
2080
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2081
+ you may not use this file except in compliance with the License. You may obtain a copy
2082
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2083
+
2084
+ Unless required by applicable law or agreed to in writing, software distributed under
2085
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2086
+ OF ANY KIND, either express or implied. See the License for the specific language
2087
+ governing permissions and limitations under the License.
2088
+ */
2089
+
2090
+ var updateErrorMessage = ({ error, message }) => {
2091
+ try {
2092
+ error.message = message;
2093
+ } catch {
2094
+ // We'll set a new message when we can, but some errors, like DOMException,
2095
+ // have a read-only message property, which limits our options.
2096
+ }
2097
+ };
2098
+
2099
+ /*
2100
+ Copyright 2019 Adobe. All rights reserved.
2101
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2102
+ you may not use this file except in compliance with the License. You may obtain a copy
2103
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2104
+
2105
+ Unless required by applicable law or agreed to in writing, software distributed under
2106
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2107
+ OF ANY KIND, either express or implied. See the License for the specific language
2108
+ governing permissions and limitations under the License.
2109
+ */
2110
+
2111
+
2112
+ /**
2113
+ * Augments an error's message with additional context as it bubbles up the call stack.
2114
+ * @param {Object} options
2115
+ * @param {String} options.message The message to be added to the error.
2116
+ * @param {Error} options.error Optimally, this is an instance of Error. If it is not,
2117
+ * this is used as the basis for the message of a newly created Error instance.
2118
+ * @returns {*}
2119
+ */
2120
+ var stackError = ({ error, message }) => {
2121
+ const errorToStack = toError(error);
2122
+ const newMessage = `${message}\nCaused by: ${errorToStack.message}`;
2123
+ updateErrorMessage({
2124
+ error: errorToStack,
2125
+ message: newMessage,
2126
+ });
2127
+ return errorToStack;
2128
+ };
2129
+
2130
+ /*
2131
+ Copyright 2023 Adobe. All rights reserved.
2132
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2133
+ you may not use this file except in compliance with the License. You may obtain a copy
2134
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2135
+
2136
+ Unless required by applicable law or agreed to in writing, software distributed under
2137
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2138
+ OF ANY KIND, either express or implied. See the License for the specific language
2139
+ governing permissions and limitations under the License.
2140
+ */
2141
+
2142
+ var stringToBoolean = (str) => {
2143
+ return isString(str) && str.toLowerCase() === "true";
2144
+ };
2145
+
2146
+ /*
2147
+ Copyright 2022 Adobe. All rights reserved.
2148
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2149
+ you may not use this file except in compliance with the License. You may obtain a copy
2150
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2151
+
2152
+ Unless required by applicable law or agreed to in writing, software distributed under
2153
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2154
+ OF ANY KIND, either express or implied. See the License for the specific language
2155
+ governing permissions and limitations under the License.
2156
+ */
2157
+
2158
+
2159
+ /*
2160
+ * coerce `value` to a number or return `defaultValue` if it cannot be.
2161
+ *
2162
+ * The coersion is attempted if value is a number or string.
2163
+ */
2164
+ var toInteger = (value, defaultValue) => {
2165
+ if (isNumber(value) || isString(value)) {
2166
+ const n = Math.round(Number(value));
2167
+ if (!Number.isNaN(n)) {
2168
+ return n;
2169
+ }
2170
+ }
2171
+ return defaultValue;
2172
+ };
2173
+
2174
+ /*
2175
+ Copyright 2019 Adobe. All rights reserved.
2176
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2177
+ you may not use this file except in compliance with the License. You may obtain a copy
2178
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2179
+
2180
+ Unless required by applicable law or agreed to in writing, software distributed under
2181
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2182
+ OF ANY KIND, either express or implied. See the License for the specific language
2183
+ governing permissions and limitations under the License.
2184
+ */
2185
+
2186
+ /**
2187
+ * Add padString to the start of the string until it reaches the target length
2188
+ *
2189
+ * Different from String.prototype.padStart because this function coerces the
2190
+ * input to a string before padding.
2191
+ * @param {any} string
2192
+ * @param {number} targetLength
2193
+ * @param {string} padString
2194
+ * @returns {string}
2195
+ */
2196
+ const padStart = (string, targetLength, padString) => {
2197
+ return `${string}`.padStart(targetLength, padString);
2198
+ };
2199
+
2200
+ /**
2201
+ * Formats the date into an ISO date-time string in the local timezone
2202
+ * @param {Date} date
2203
+ * @returns {string}
2204
+ */
2205
+ var toISOStringLocal = (date) => {
2206
+ const YYYY = date.getFullYear();
2207
+ const MM = padStart(date.getMonth() + 1, 2, "0");
2208
+ const DD = padStart(date.getDate(), 2, "0");
2209
+
2210
+ const hh = padStart(date.getHours(), 2, "0");
2211
+ const mm = padStart(date.getMinutes(), 2, "0");
2212
+ const ss = padStart(date.getSeconds(), 2, "0");
2213
+ const mmm = padStart(date.getMilliseconds(), 3, "0");
2214
+
2215
+ // The time-zone offset is the difference, in minutes, from local time to UTC. Note that this
2216
+ // means that the offset is positive if the local timezone is behind UTC and negative if it is
2217
+ // ahead. For example, for time zone UTC+10:00, -600 will be returned.
2218
+ const timezoneOffset = toInteger(date.getTimezoneOffset(), 0);
2219
+ const ts = timezoneOffset > 0 ? "-" : "+";
2220
+ const th = padStart(Math.floor(Math.abs(timezoneOffset) / 60), 2, "0");
2221
+ const tm = padStart(Math.abs(timezoneOffset) % 60, 2, "0");
2222
+
2223
+ return `${YYYY}-${MM}-${DD}T${hh}:${mm}:${ss}.${mmm}${ts}${th}:${tm}`;
2224
+ };
2225
+
2226
+ /*
2227
+ Copyright 2023 Adobe. All rights reserved.
2228
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2229
+ you may not use this file except in compliance with the License. You may obtain a copy
2230
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2231
+
2232
+ Unless required by applicable law or agreed to in writing, software distributed under
2233
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2234
+ OF ANY KIND, either express or implied. See the License for the specific language
2235
+ governing permissions and limitations under the License.
2236
+ */
2237
+
2238
+ /**
2239
+ * Wraps a validator returning the value if it is null or undefined, otherwise
2240
+ * it will call the original validator and return the result.
2241
+ *
2242
+ * @param {function} validator - the validator to call if the value is not null
2243
+ */
2244
+ const skipIfNull = (validator) =>
2245
+ function skipIfNullValidator(value, path) {
2246
+ return value == null ? value : validator.call(this, value, path);
2247
+ };
2248
+
2249
+ /**
2250
+ * Returns a new validator that calls the first validator and then calls the second
2251
+ * validator with the result of the first validator. The result of the second validator
2252
+ * is returned.
2253
+ *
2254
+ * @param {function} firstValidator - validator to call first
2255
+ * @param {function} secondValidator - validator to call second
2256
+ * @returns {function} - a new validator that calls the first and second validators
2257
+ */
2258
+ const callSequentially = (firstValidator, secondValidator) =>
2259
+ function callSequentiallyValidator(value, path) {
2260
+ return secondValidator.call(
2261
+ this,
2262
+ firstValidator.call(this, value, path),
2263
+ path,
2264
+ );
2265
+ };
2266
+
2267
+ /**
2268
+ * Just like callSequentially, but if either validator throws an error, the errors
2269
+ * are collected and thrown at the end.
2270
+ *
2271
+ * @param {function} firstValidator
2272
+ * @param {function} secondValidator
2273
+ * @returns {function}
2274
+ */
2275
+ const callSequentiallyJoinErrors = (firstValidator, secondValidator) =>
2276
+ function callSequentiallyJoinErrorsValidator(value, path) {
2277
+ const errors = [];
2278
+ const newValue = [firstValidator, secondValidator].reduce(
2279
+ (memo, validator) => {
2280
+ try {
2281
+ return validator.call(this, memo, path);
2282
+ } catch (e) {
2283
+ errors.push(e);
2284
+ return memo;
2285
+ }
2286
+ },
2287
+ value,
2288
+ );
2289
+ if (errors.length) {
2290
+ throw new Error(errors.join("\n"));
2291
+ }
2292
+ return newValue;
2293
+ };
2294
+
2295
+ /**
2296
+ * Chains two validators together. In addition to calling the validators in
2297
+ * sequence, this will also copy over methods from the base validator to the
2298
+ * resulting validator and include any additional methods.
2299
+ *
2300
+ * @param {function} baseValidator - This validator will be called first, and its
2301
+ * methods will be copied over to the returned validator.
2302
+ * @param {function} newValidator - This validator will be called second.
2303
+ * @param {object} additionalMethods - Additional methods to include on the returned
2304
+ * validator.
2305
+ * @returns {function}
2306
+ */
2307
+ const chain = (baseValidator, newValidator, additionalMethods) => {
2308
+ return Object.assign(
2309
+ callSequentially(baseValidator, newValidator),
2310
+ baseValidator,
2311
+ additionalMethods,
2312
+ );
2313
+ };
2314
+
2315
+ /**
2316
+ * Chains two validators together, but skips the second validator if the value
2317
+ * is null. In addition to calling the validators in sequence, this will also
2318
+ * copy over methods from the base validator to the resulting validator and
2319
+ * include any additional methods.
2320
+ *
2321
+ * @param {function} baseValidator - This validator will be called first, and its
2322
+ * methods will be copied over to the returned validator.
2323
+ * @param {function} newValidator - This validator will be called second. If the value
2324
+ * is null after the first validator is called, this validator will not be
2325
+ * called.
2326
+ * @param {object} additionalMethods - Additional methods to include on the returned
2327
+ * validator.
2328
+ * @returns {function}
2329
+ */
2330
+ const nullSafeChain = (
2331
+ baseValidator,
2332
+ newValidator,
2333
+ additionalMethods,
2334
+ ) => {
2335
+ return Object.assign(
2336
+ callSequentially(baseValidator, skipIfNull(newValidator)),
2337
+ baseValidator,
2338
+ additionalMethods,
2339
+ );
2340
+ };
2341
+
2342
+ /**
2343
+ * Same as nullSafeChain, but calls the new validator first.
2344
+ *
2345
+ * @param {function} baseValidator - This validator will be called second, and its
2346
+ * methods will be copied over to the returned validator.
2347
+ * @param {function} newValidator - This validator will be called first. If the value
2348
+ * is null, this validator will not be called.
2349
+ * @param {function} additionalMethods - Additional methods to include on the returned
2350
+ * validator.
2351
+ * @returns {function}
2352
+ */
2353
+ const reverseNullSafeChainJoinErrors = (
2354
+ baseValidator,
2355
+ newValidator,
2356
+ additionalMethods,
2357
+ ) => {
2358
+ return Object.assign(
2359
+ callSequentiallyJoinErrors(skipIfNull(newValidator), baseValidator),
2360
+ baseValidator,
2361
+ additionalMethods,
2362
+ );
2363
+ };
2364
+
2365
+ /**
2366
+ * Throws an error if the value is not valid.
2367
+ *
2368
+ * @param {boolean} isValid - Whether or not the value is valid.
2369
+ * @param {*} value - The value to validate.
2370
+ * @param {string} path - The path to the value.
2371
+ * @param {string} message - The expected part of the error message.
2372
+ * @throws {Error} - Throws an error if the value is not valid.
2373
+ * @returns {void}
2374
+ */
2375
+ const assertValid = (isValid, value, path, message) => {
2376
+ if (!isValid) {
2377
+ throw new Error(
2378
+ `'${path}': Expected ${message}, but got ${JSON.stringify(value)}.`,
2379
+ );
2380
+ }
2381
+ };
2382
+
2383
+ /*
2384
+ Copyright 2019 Adobe. All rights reserved.
2385
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2386
+ you may not use this file except in compliance with the License. You may obtain a copy
2387
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2388
+
2389
+ Unless required by applicable law or agreed to in writing, software distributed under
2390
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2391
+ OF ANY KIND, either express or implied. See the License for the specific language
2392
+ governing permissions and limitations under the License.
2393
+ */
2394
+
2395
+
2396
+ var booleanValidator = (value, path) => {
2397
+ assertValid(isBoolean(value), value, path, "true or false");
2398
+ return value;
2399
+ };
2400
+
2401
+ /*
2402
+ Copyright 2019 Adobe. All rights reserved.
2403
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2404
+ you may not use this file except in compliance with the License. You may obtain a copy
2405
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2406
+
2407
+ Unless required by applicable law or agreed to in writing, software distributed under
2408
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2409
+ OF ANY KIND, either express or implied. See the License for the specific language
2410
+ governing permissions and limitations under the License.
2411
+ */
2412
+
2413
+ var callbackValidator = (value, path) => {
2414
+ assertValid(isFunction(value), value, path, "a function");
2415
+ return value;
2416
+ };
2417
+
2418
+ /*
2419
+ Copyright 2019 Adobe. All rights reserved.
2420
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2421
+ you may not use this file except in compliance with the License. You may obtain a copy
2422
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2423
+
2424
+ Unless required by applicable law or agreed to in writing, software distributed under
2425
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2426
+ OF ANY KIND, either express or implied. See the License for the specific language
2427
+ governing permissions and limitations under the License.
2428
+ */
2429
+
2430
+ var createAnyOfValidator = (validators, message) =>
2431
+ function anyOf(value, path) {
2432
+ let newValue;
2433
+ const valid = validators.find((validator) => {
2434
+ try {
2435
+ newValue = validator.call(this, value, path);
2436
+ return true;
2437
+ } catch {
2438
+ return false;
2439
+ }
2440
+ });
2441
+ assertValid(valid, value, path, message);
2442
+ return newValue;
2443
+ };
2444
+
2445
+ /*
2446
+ Copyright 2019 Adobe. All rights reserved.
2447
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2448
+ you may not use this file except in compliance with the License. You may obtain a copy
2449
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2450
+
2451
+ Unless required by applicable law or agreed to in writing, software distributed under
2452
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2453
+ OF ANY KIND, either express or implied. See the License for the specific language
2454
+ governing permissions and limitations under the License.
2455
+ */
2456
+
2457
+ var createArrayOfValidator = (elementValidator) =>
2458
+ function arrayOf(value, path) {
2459
+ assertValid(Array.isArray(value), value, path, "an array");
2460
+ const errors = [];
2461
+ const validatedArray = value.map((subValue, i) => {
2462
+ try {
2463
+ return elementValidator.call(this, subValue, `${path}[${i}]`, value);
2464
+ } catch (e) {
2465
+ errors.push(e.message);
2466
+ return undefined;
2467
+ }
2468
+ });
2469
+ if (errors.length) {
2470
+ throw new Error(errors.join("\n"));
2471
+ }
2472
+ return validatedArray;
2473
+ };
2474
+
2475
+ /*
2476
+ Copyright 2020 Adobe. All rights reserved.
2477
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2478
+ you may not use this file except in compliance with the License. You may obtain a copy
2479
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2480
+
2481
+ Unless required by applicable law or agreed to in writing, software distributed under
2482
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2483
+ OF ANY KIND, either express or implied. See the License for the specific language
2484
+ governing permissions and limitations under the License.
2485
+ */
2486
+
2487
+ var createDefaultValidator = (defaultValue) => (value) => {
2488
+ if (value == null) {
2489
+ return defaultValue;
2490
+ }
2491
+ return value;
2492
+ };
2493
+
2494
+ /*
2495
+ Copyright 2024 Adobe. All rights reserved.
2496
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2497
+ you may not use this file except in compliance with the License. You may obtain a copy
2498
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2499
+
2500
+ Unless required by applicable law or agreed to in writing, software distributed under
2501
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2502
+ OF ANY KIND, either express or implied. See the License for the specific language
2503
+ governing permissions and limitations under the License.
2504
+ */
2505
+
2506
+ var createDeprecatedValidator = (warning = "This field has been deprecated") =>
2507
+ function deprecated(value, path) {
2508
+ let message = warning;
2509
+ if (value !== undefined) {
2510
+ if (path) {
2511
+ message = `'${path}': ${message}`;
2512
+ }
2513
+ if (this && this.logger) {
2514
+ this.logger.warn(message);
2515
+ }
2516
+ }
2517
+ return value;
2518
+ };
2519
+
2520
+ /*
2521
+ Copyright 2020 Adobe. All rights reserved.
2522
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2523
+ you may not use this file except in compliance with the License. You may obtain a copy
2524
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2525
+
2526
+ Unless required by applicable law or agreed to in writing, software distributed under
2527
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2528
+ OF ANY KIND, either express or implied. See the License for the specific language
2529
+ governing permissions and limitations under the License.
2530
+ */
2531
+
2532
+ var createLiteralValidator = (literalValue) => (value, path) => {
2533
+ assertValid(value === literalValue, value, path, `${literalValue}`);
2534
+ return value;
2535
+ };
2536
+
2537
+ /*
2538
+ Copyright 2020 Adobe. All rights reserved.
2539
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2540
+ you may not use this file except in compliance with the License. You may obtain a copy
2541
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2542
+
2543
+ Unless required by applicable law or agreed to in writing, software distributed under
2544
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2545
+ OF ANY KIND, either express or implied. See the License for the specific language
2546
+ governing permissions and limitations under the License.
2547
+ */
2548
+
2549
+
2550
+ var createMapOfValuesValidator = (valueValidator) =>
2551
+ function mapOfValues(value, path) {
2552
+ assertValid(isObject(value), value, path, "an object");
2553
+
2554
+ const errors = [];
2555
+ const validatedObject = {};
2556
+ Object.keys(value).forEach((subKey) => {
2557
+ const subValue = value[subKey];
2558
+ const subPath = path ? `${path}.${subKey}` : subKey;
2559
+ try {
2560
+ const validatedValue = valueValidator.call(this, subValue, subPath);
2561
+ if (validatedValue !== undefined) {
2562
+ validatedObject[subKey] = validatedValue;
2563
+ }
2564
+ } catch (e) {
2565
+ errors.push(e.message);
2566
+ }
2567
+ });
2568
+
2569
+ if (errors.length) {
2570
+ throw new Error(errors.join("\n"));
2571
+ }
2572
+
2573
+ return validatedObject;
2574
+ };
2575
+
2576
+ /*
2577
+ Copyright 2019 Adobe. All rights reserved.
2578
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2579
+ you may not use this file except in compliance with the License. You may obtain a copy
2580
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2581
+
2582
+ Unless required by applicable law or agreed to in writing, software distributed under
2583
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2584
+ OF ANY KIND, either express or implied. See the License for the specific language
2585
+ governing permissions and limitations under the License.
2586
+ */
2587
+
2588
+ var createMinimumValidator = (typeName, minimum) => (value, path) => {
2589
+ assertValid(
2590
+ value >= minimum,
2591
+ value,
2592
+ path,
2593
+ `${typeName} greater than or equal to ${minimum}`,
2594
+ );
2595
+ return value;
2596
+ };
2597
+
2598
+ /*
2599
+ Copyright 2023 Adobe. All rights reserved.
2600
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2601
+ you may not use this file except in compliance with the License. You may obtain a copy
2602
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2603
+
2604
+ Unless required by applicable law or agreed to in writing, software distributed under
2605
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2606
+ OF ANY KIND, either express or implied. See the License for the specific language
2607
+ governing permissions and limitations under the License.
2608
+ */
2609
+
2610
+ var createMaximumValidator = (typeName, maximum) => (value, path) => {
2611
+ assertValid(
2612
+ value <= maximum,
2613
+ value,
2614
+ path,
2615
+ `${typeName} less than or equal to ${maximum}`,
2616
+ );
2617
+ return value;
2618
+ };
2619
+
2620
+ /*
2621
+ Copyright 2020 Adobe. All rights reserved.
2622
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2623
+ you may not use this file except in compliance with the License. You may obtain a copy
2624
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2625
+
2626
+ Unless required by applicable law or agreed to in writing, software distributed under
2627
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2628
+ OF ANY KIND, either express or implied. See the License for the specific language
2629
+ governing permissions and limitations under the License.
2630
+ */
2631
+
2632
+ var createNoUnknownFieldsValidator = (schema) => (value, path) => {
2633
+ const errors = [];
2634
+ Object.keys(value).forEach((subKey) => {
2635
+ if (!schema[subKey]) {
2636
+ const subPath = path ? `${path}.${subKey}` : subKey;
2637
+ errors.push(`'${subPath}': Unknown field.`);
2638
+ }
2639
+ });
2640
+
2641
+ if (errors.length) {
2642
+ throw new Error(errors.join("\n"));
2643
+ }
2644
+
2645
+ return value;
2646
+ };
2647
+
2648
+ /*
2649
+ Copyright 2019 Adobe. All rights reserved.
2650
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2651
+ you may not use this file except in compliance with the License. You may obtain a copy
2652
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2653
+
2654
+ Unless required by applicable law or agreed to in writing, software distributed under
2655
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2656
+ OF ANY KIND, either express or implied. See the License for the specific language
2657
+ governing permissions and limitations under the License.
2658
+ */
2659
+
2660
+
2661
+ var createNonEmptyValidator = (message) => (value, path) => {
2662
+ if (isObject(value)) {
2663
+ assertValid(!isEmptyObject(value), value, path, message);
2664
+ } else {
2665
+ assertValid(value.length > 0, value, path, message);
2666
+ }
2667
+ return value;
2668
+ };
2669
+
2670
+ /*
2671
+ Copyright 2020 Adobe. All rights reserved.
2672
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2673
+ you may not use this file except in compliance with the License. You may obtain a copy
2674
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2675
+
2676
+ Unless required by applicable law or agreed to in writing, software distributed under
2677
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2678
+ OF ANY KIND, either express or implied. See the License for the specific language
2679
+ governing permissions and limitations under the License.
2680
+ */
2681
+
2682
+
2683
+ var createObjectOfValidator = (schema) =>
2684
+ function objectOf(value, path) {
2685
+ assertValid(isObject(value), value, path, "an object");
2686
+
2687
+ const errors = [];
2688
+ const validatedObject = {};
2689
+ Object.keys(schema).forEach((subKey) => {
2690
+ const subValue = value[subKey];
2691
+ const subSchema = schema[subKey];
2692
+ const subPath = path ? `${path}.${subKey}` : subKey;
2693
+ try {
2694
+ const validatedValue = subSchema.call(this, subValue, subPath);
2695
+ if (validatedValue !== undefined) {
2696
+ validatedObject[subKey] = validatedValue;
2697
+ }
2698
+ } catch (e) {
2699
+ errors.push(e.message);
2700
+ }
2701
+ });
2702
+
2703
+ // copy over unknown properties
2704
+ Object.keys(value).forEach((subKey) => {
2705
+ if (!Object.prototype.hasOwnProperty.call(validatedObject, subKey)) {
2706
+ validatedObject[subKey] = value[subKey];
2707
+ }
2708
+ });
2709
+
2710
+ if (errors.length) {
2711
+ throw new Error(errors.join("\n"));
2712
+ }
2713
+ return validatedObject;
2714
+ };
2715
+
2716
+ /*
2717
+ Copyright 2023 Adobe. All rights reserved.
2718
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2719
+ you may not use this file except in compliance with the License. You may obtain a copy
2720
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2721
+
2722
+ Unless required by applicable law or agreed to in writing, software distributed under
2723
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2724
+ OF ANY KIND, either express or implied. See the License for the specific language
2725
+ governing permissions and limitations under the License.
2726
+ */
2727
+
2728
+ var createRenamedValidator = (oldField, oldSchema, newField) =>
2729
+ function deprecated(value, path) {
2730
+ assertValid(isObject(value), value, path, "an object");
2731
+
2732
+ const {
2733
+ [oldField]: oldValue,
2734
+ [newField]: newValue,
2735
+ ...otherValues
2736
+ } = value;
2737
+ const validatedOldValue = oldSchema(oldValue, path);
2738
+
2739
+ if (validatedOldValue !== undefined) {
2740
+ let message = `The field '${oldField}' is deprecated. Use '${newField}' instead.`;
2741
+ if (path) {
2742
+ message = `'${path}': ${message}`;
2743
+ }
2744
+ if (newValue !== undefined && newValue !== validatedOldValue) {
2745
+ throw new Error(message);
2746
+ } else if (this && this.logger) {
2747
+ this.logger.warn(message);
2748
+ }
2749
+ }
2750
+ return {
2751
+ [newField]: newValue || validatedOldValue,
2752
+ ...otherValues,
2753
+ };
2754
+ };
2755
+
2756
+ /*
2757
+ Copyright 2019 Adobe. All rights reserved.
2758
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2759
+ you may not use this file except in compliance with the License. You may obtain a copy
2760
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2761
+
2762
+ Unless required by applicable law or agreed to in writing, software distributed under
2763
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2764
+ OF ANY KIND, either express or implied. See the License for the specific language
2765
+ governing permissions and limitations under the License.
2766
+ */
2767
+
2768
+
2769
+ var createUniqueValidator = () => {
2770
+ const values = [];
2771
+ return (value, path) => {
2772
+ assertValid(
2773
+ values.indexOf(value) === -1,
2774
+ value,
2775
+ path,
2776
+ "a unique value across instances",
2777
+ );
2778
+ values.push(value);
2779
+ return value;
2780
+ };
2781
+ };
2782
+
2783
+ /*
2784
+ Copyright 2022 Adobe. All rights reserved.
2785
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2786
+ you may not use this file except in compliance with the License. You may obtain a copy
2787
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2788
+
2789
+ Unless required by applicable law or agreed to in writing, software distributed under
2790
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2791
+ OF ANY KIND, either express or implied. See the License for the specific language
2792
+ governing permissions and limitations under the License.
2793
+ */
2794
+ /**
2795
+ * Returns whether an array contains unique values.
2796
+ * @param {*} value
2797
+ * @returns {boolean}
2798
+ */
2799
+ var isUnique = (values) => {
2800
+ const storedVals = Object.create(null);
2801
+ for (let i = 0; i < values.length; i += 1) {
2802
+ const item = values[i];
2803
+ if (item in storedVals) {
2804
+ return false;
2805
+ }
2806
+ storedVals[item] = true;
2807
+ }
2808
+ return true;
2809
+ };
2810
+
2811
+ /*
2812
+ Copyright 2022 Adobe. All rights reserved.
2813
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2814
+ you may not use this file except in compliance with the License. You may obtain a copy
2815
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2816
+
2817
+ Unless required by applicable law or agreed to in writing, software distributed under
2818
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2819
+ OF ANY KIND, either express or implied. See the License for the specific language
2820
+ governing permissions and limitations under the License.
2821
+ */
2822
+
2823
+ var createUniqueItemsValidator = () => {
2824
+ return (value, path) => {
2825
+ assertValid(isUnique(value), value, path, "array values to be unique");
2826
+ return value;
2827
+ };
2828
+ };
2829
+
2830
+ /*
2831
+ Copyright 2019 Adobe. All rights reserved.
2832
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2833
+ you may not use this file except in compliance with the License. You may obtain a copy
2834
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2835
+
2836
+ Unless required by applicable law or agreed to in writing, software distributed under
2837
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2838
+ OF ANY KIND, either express or implied. See the License for the specific language
2839
+ governing permissions and limitations under the License.
2840
+ */
2841
+
2842
+ const DOMAIN_REGEX = /^[a-z0-9.-]{1,}$/i;
2843
+
2844
+ var domainValidator = (value, path) => {
2845
+ assertValid(DOMAIN_REGEX.test(value), value, path, "a valid domain");
2846
+ return value;
2847
+ };
2848
+
2849
+ /*
2850
+ Copyright 2019 Adobe. All rights reserved.
2851
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2852
+ you may not use this file except in compliance with the License. You may obtain a copy
2853
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2854
+
2855
+ Unless required by applicable law or agreed to in writing, software distributed under
2856
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2857
+ OF ANY KIND, either express or implied. See the License for the specific language
2858
+ governing permissions and limitations under the License.
2859
+ */
2860
+
2861
+
2862
+ var integerValidator = (value, path) => {
2863
+ assertValid(isInteger(value), value, path, "an integer");
2864
+ return value;
2865
+ };
2866
+
2867
+ /*
2868
+ Copyright 2019 Adobe. All rights reserved.
2869
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2870
+ you may not use this file except in compliance with the License. You may obtain a copy
2871
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2872
+
2873
+ Unless required by applicable law or agreed to in writing, software distributed under
2874
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2875
+ OF ANY KIND, either express or implied. See the License for the specific language
2876
+ governing permissions and limitations under the License.
2877
+ */
2878
+
2879
+
2880
+ var numberValidator = (value, path) => {
2881
+ assertValid(isNumber(value), value, path, "a number");
2882
+ return value;
2883
+ };
2884
+
2885
+ /*
2886
+ Copyright 2019 Adobe. All rights reserved.
2887
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2888
+ you may not use this file except in compliance with the License. You may obtain a copy
2889
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2890
+
2891
+ Unless required by applicable law or agreed to in writing, software distributed under
2892
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2893
+ OF ANY KIND, either express or implied. See the License for the specific language
2894
+ governing permissions and limitations under the License.
2895
+ */
2896
+
2897
+ /**
2898
+ * Determines whether the value is a valid regular expression.
2899
+ * @param {*} value
2900
+ * @returns {boolean}
2901
+ */
2902
+ var isValidRegExp = (value) => {
2903
+ try {
2904
+ return RegExp(value) !== null;
2905
+ } catch {
2906
+ return false;
2907
+ }
2908
+ };
2909
+
2910
+ /*
2911
+ Copyright 2019 Adobe. All rights reserved.
2912
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2913
+ you may not use this file except in compliance with the License. You may obtain a copy
2914
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2915
+
2916
+ Unless required by applicable law or agreed to in writing, software distributed under
2917
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2918
+ OF ANY KIND, either express or implied. See the License for the specific language
2919
+ governing permissions and limitations under the License.
2920
+ */
2921
+
2922
+
2923
+ var regexpValidator = (value, path) => {
2924
+ assertValid(isValidRegExp(value), value, path, "a regular expression");
2925
+ return value;
2926
+ };
2927
+
2928
+ /*
2929
+ Copyright 2020 Adobe. All rights reserved.
2930
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2931
+ you may not use this file except in compliance with the License. You may obtain a copy
2932
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2933
+
2934
+ Unless required by applicable law or agreed to in writing, software distributed under
2935
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2936
+ OF ANY KIND, either express or implied. See the License for the specific language
2937
+ governing permissions and limitations under the License.
2938
+ */
2939
+
2940
+ var requiredValidator = (value, path) => {
2941
+ if (value == null) {
2942
+ throw new Error(`'${path}' is a required option`);
2943
+ }
2944
+ return value;
2945
+ };
2946
+
2947
+ /*
2948
+ Copyright 2019 Adobe. All rights reserved.
2949
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2950
+ you may not use this file except in compliance with the License. You may obtain a copy
2951
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2952
+
2953
+ Unless required by applicable law or agreed to in writing, software distributed under
2954
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2955
+ OF ANY KIND, either express or implied. See the License for the specific language
2956
+ governing permissions and limitations under the License.
2957
+ */
2958
+
2959
+ var stringValidator = (value, path) => {
2960
+ assertValid(isString(value), value, path, "a string");
2961
+ return value;
2962
+ };
2963
+
2964
+ /*
2965
+ Copyright 2023 Adobe. All rights reserved.
2966
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2967
+ you may not use this file except in compliance with the License. You may obtain a copy
2968
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2969
+
2970
+ Unless required by applicable law or agreed to in writing, software distributed under
2971
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2972
+ OF ANY KIND, either express or implied. See the License for the specific language
2973
+ governing permissions and limitations under the License.
2974
+ */
2975
+
2976
+
2977
+ var matchesRegexpValidator = (regexp) => (value, path) => {
2978
+ assertValid(
2979
+ regexp.test(value),
2980
+ value,
2981
+ path,
2982
+ `does not match the ${regexp.toString()}`,
2983
+ );
2984
+ return value;
2985
+ };
2986
+
2987
+ /*
2988
+ Copyright 2020 Adobe. All rights reserved.
2989
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2990
+ you may not use this file except in compliance with the License. You may obtain a copy
2991
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2992
+
2993
+ Unless required by applicable law or agreed to in writing, software distributed under
2994
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2995
+ OF ANY KIND, either express or implied. See the License for the specific language
2996
+ governing permissions and limitations under the License.
2997
+ */
2998
+
2999
+
3000
+ // The base validator does no validation and just returns the value unchanged
3001
+ const base = (value) => value;
3002
+
3003
+ // The 'default', 'required', and 'deprecated' methods are available after any
3004
+ // data-type method. Don't use the nullSafeChain on 'default' or 'required'
3005
+ // because they need to handle the null or undefined case
3006
+ base.default = function _default(defaultValue) {
3007
+ return chain(this, createDefaultValidator(defaultValue));
3008
+ };
3009
+ base.required = function required() {
3010
+ return chain(this, requiredValidator);
3011
+ };
3012
+ base.deprecated = function deprecated(message) {
3013
+ return chain(this, createDeprecatedValidator(message));
3014
+ };
3015
+
3016
+ // helper validators
3017
+ const domain = function domain() {
3018
+ return nullSafeChain(this, domainValidator);
3019
+ };
3020
+ const minimumInteger = function minimumInteger(minValue) {
3021
+ return nullSafeChain(this, createMinimumValidator("an integer", minValue));
3022
+ };
3023
+ const minimumNumber = function minimumNumber(minValue) {
3024
+ return nullSafeChain(this, createMinimumValidator("a number", minValue));
3025
+ };
3026
+ const maximumNumber = function maximumNumber(maxValue) {
3027
+ return nullSafeChain(this, createMaximumValidator("a number", maxValue));
3028
+ };
3029
+ const integer = function integer() {
3030
+ return nullSafeChain(this, integerValidator, { minimum: minimumInteger });
3031
+ };
3032
+ const nonEmptyString = function nonEmptyString() {
3033
+ return nullSafeChain(this, createNonEmptyValidator("a non-empty string"));
3034
+ };
3035
+ const nonEmptyArray = function nonEmptyArray() {
3036
+ return nullSafeChain(this, createNonEmptyValidator("a non-empty array"));
3037
+ };
3038
+ const nonEmptyObject = function nonEmptyObject() {
3039
+ return nullSafeChain(this, createNonEmptyValidator("a non-empty object"));
3040
+ };
3041
+ const regexp = function regexp() {
3042
+ return nullSafeChain(this, regexpValidator);
3043
+ };
3044
+ const matches = function matches(regexpPattern) {
3045
+ return nullSafeChain(this, matchesRegexpValidator(regexpPattern));
3046
+ };
3047
+ const unique = function createUnique() {
3048
+ return nullSafeChain(this, createUniqueValidator());
3049
+ };
3050
+ const uniqueItems = function createUniqueItems() {
3051
+ return nullSafeChain(this, createUniqueItemsValidator());
3052
+ };
3053
+
3054
+ // top-level validators. These are the first functions that are called to create a validator.
3055
+ const anyOf = function anyOf(validators, message) {
3056
+ // use chain here because we don't want to accept null or undefined unless at least
3057
+ // one of the validators accept null or undefined.
3058
+ return chain(this, createAnyOfValidator(validators, message));
3059
+ };
3060
+ const anything = function anything() {
3061
+ return this;
3062
+ };
3063
+ const arrayOf = function arrayOf(elementValidator) {
3064
+ return nullSafeChain(this, createArrayOfValidator(elementValidator), {
3065
+ nonEmpty: nonEmptyArray,
3066
+ uniqueItems,
3067
+ });
3068
+ };
3069
+ const boolean = function boolean() {
3070
+ return nullSafeChain(this, booleanValidator);
3071
+ };
3072
+ const callback = function callback() {
3073
+ return nullSafeChain(this, callbackValidator);
3074
+ };
3075
+ const literal = function literal(literalValue) {
3076
+ return nullSafeChain(this, createLiteralValidator(literalValue));
3077
+ };
3078
+ const number = function number() {
3079
+ return nullSafeChain(this, numberValidator, {
3080
+ minimum: minimumNumber,
3081
+ maximum: maximumNumber,
3082
+ integer,
3083
+ unique,
3084
+ });
3085
+ };
3086
+ const mapOfValues = function mapOfValues(valuesValidator) {
3087
+ return nullSafeChain(this, createMapOfValuesValidator(valuesValidator), {
3088
+ nonEmpty: nonEmptyObject,
3089
+ });
3090
+ };
3091
+ const createObjectOfAdditionalProperties = (schema) => ({
3092
+ noUnknownFields: function noUnknownFields() {
3093
+ return nullSafeChain(this, createNoUnknownFieldsValidator(schema));
3094
+ },
3095
+ nonEmpty: nonEmptyObject,
3096
+ concat: function concat(otherObjectOfValidator) {
3097
+ // combine the schema so that noUnknownFields, and concat have the combined schema
3098
+ const newSchema = { ...schema, ...otherObjectOfValidator.schema };
3099
+ return nullSafeChain(
3100
+ this,
3101
+ otherObjectOfValidator,
3102
+ createObjectOfAdditionalProperties(newSchema),
3103
+ );
3104
+ },
3105
+ renamed: function renamed(oldField, oldSchema, newField) {
3106
+ // Run the deprecated validator first so that the deprecated field is removed
3107
+ // before the objectOf validator runs.
3108
+ return reverseNullSafeChainJoinErrors(
3109
+ this,
3110
+ createRenamedValidator(oldField, oldSchema, newField),
3111
+ );
3112
+ },
3113
+ schema,
3114
+ });
3115
+ const objectOf = function objectOf(schema) {
3116
+ return nullSafeChain(
3117
+ this,
3118
+ createObjectOfValidator(schema),
3119
+ createObjectOfAdditionalProperties(schema),
3120
+ );
3121
+ };
3122
+ const string = function string() {
3123
+ return nullSafeChain(this, stringValidator, {
3124
+ regexp,
3125
+ domain,
3126
+ nonEmpty: nonEmptyString,
3127
+ unique,
3128
+ matches,
3129
+ });
3130
+ };
3131
+
3132
+ const boundAnyOf = anyOf.bind(base);
3133
+ anything.bind(base);
3134
+ const boundArrayOf = arrayOf.bind(base);
3135
+ const boundBoolean = boolean.bind(base);
3136
+ callback.bind(base);
3137
+ const boundLiteral = literal.bind(base);
3138
+ number.bind(base);
3139
+ const boundMapOfValues = mapOfValues.bind(base);
3140
+ const boundObjectOf = objectOf.bind(base);
3141
+ const boundString = string.bind(base);
3142
+
3143
+ // compound validators
3144
+ const boundEnumOf = function boundEnumOf(...values) {
3145
+ return boundAnyOf(
3146
+ values.map(boundLiteral),
3147
+ `one of these values: ${JSON.stringify(values)}`,
3148
+ );
3149
+ };
3150
+
3151
+ /*
3152
+ Copyright 2023 Adobe. All rights reserved.
3153
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
3154
+ you may not use this file except in compliance with the License. You may obtain a copy
3155
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
3156
+
3157
+ Unless required by applicable law or agreed to in writing, software distributed under
3158
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
3159
+ OF ANY KIND, either express or implied. See the License for the specific language
3160
+ governing permissions and limitations under the License.
3161
+ */
3162
+ const AMBIGUOUS = "ambiguous";
3163
+ const AUTHENTICATED = "authenticated";
3164
+ const LOGGED_OUT = "loggedOut";
3165
+
3166
+ /*
3167
+ Copyright 2020 Adobe. All rights reserved.
3168
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
3169
+ you may not use this file except in compliance with the License. You may obtain a copy
3170
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
3171
+
3172
+ Unless required by applicable law or agreed to in writing, software distributed under
3173
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
3174
+ OF ANY KIND, either express or implied. See the License for the specific language
3175
+ governing permissions and limitations under the License.
3176
+ */
3177
+
3178
+
3179
+ var validateIdentityMap = boundMapOfValues(
3180
+ boundArrayOf(
3181
+ boundObjectOf({
3182
+ authenticatedState: boundEnumOf(AMBIGUOUS, AUTHENTICATED, LOGGED_OUT),
3183
+ id: boundString(),
3184
+ namespace: boundObjectOf({
3185
+ code: boundString(),
3186
+ }).noUnknownFields(),
3187
+ primary: boundBoolean(),
3188
+ xid: boundString(),
3189
+ }).noUnknownFields(),
3190
+ ).required(),
3191
+ );
3192
+
3193
+ /*
3194
+ Copyright 2022 Adobe. All rights reserved.
3195
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
3196
+ you may not use this file except in compliance with the License. You may obtain a copy
3197
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
3198
+
3199
+ Unless required by applicable law or agreed to in writing, software distributed under
3200
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
3201
+ OF ANY KIND, either express or implied. See the License for the specific language
3202
+ governing permissions and limitations under the License.
3203
+ */
3204
+
3205
+
3206
+ var validateConfigOverride = boundObjectOf({});
3207
+
3208
+ exports.assignConcatArrayValues = assignConcatArrayValues;
3209
+ exports.clone = clone;
3210
+ exports.cookieJar = cookieJar;
3211
+ exports.createCallbackAggregator = createCallbackAggregator;
3212
+ exports.createEventMergeId = createEventMergeId;
3213
+ exports.createLoggingCookieJar = createLoggingCookieJar;
3214
+ exports.createMerger = createMerger;
3215
+ exports.createTaskQueue = createTaskQueue;
3216
+ exports.deduplicateArray = deduplicateArray;
3217
+ exports.deepAssign = deepAssign;
3218
+ exports.defer = defer;
3219
+ exports.filterObject = filterObject;
3220
+ exports.fireImage = fireImageInDocument;
3221
+ exports.fnv1a32Hex = fnv1a32Hex;
3222
+ exports.getApexDomain = getApexDomain;
3223
+ exports.getLastArrayItems = getLastArrayItems;
3224
+ exports.getNamespacedCookieName = getNamespacedCookieName;
3225
+ exports.groupBy = groupBy;
3226
+ exports.injectAreThirdPartyCookiesSupportedByDefault = injectAreThirdPartyCookiesSupportedByDefault;
3227
+ exports.injectDoesIdentityCookieExist = injectDoesIdentityCookieExist;
3228
+ exports.injectFireReferrerHideableImage = injectFireReferrerHideableImage;
3229
+ exports.injectGetBrowser = injectGetBrowser;
3230
+ exports.injectStorage = injectStorage;
3231
+ exports.intersection = intersection;
3232
+ exports.isBoolean = isBoolean;
3233
+ exports.isEmptyObject = isEmptyObject;
3234
+ exports.isFunction = isFunction;
3235
+ exports.isInteger = isInteger;
3236
+ exports.isNamespacedCookieName = isNamespacedCookieName;
3237
+ exports.isNil = isNil;
3238
+ exports.isNonEmptyArray = isNonEmptyArray;
3239
+ exports.isNonEmptyString = isNonEmptyString;
3240
+ exports.isNumber = isNumber;
3241
+ exports.isObject = isObject;
3242
+ exports.isString = isString;
3243
+ exports.noop = noop;
3244
+ exports.parseUrl = parseUrl;
3245
+ exports.prepareConfigOverridesForEdge = prepareConfigOverridesForEdge;
3246
+ exports.queryString = queryString;
3247
+ exports.sanitizeOrgIdForCookieName = sanitizeOrgIdForCookieName;
3248
+ exports.sortObjectKeysRecursively = sortObjectKeysRecursively;
3249
+ exports.stackError = stackError;
3250
+ exports.stringToBoolean = stringToBoolean;
3251
+ exports.toArray = toArray;
3252
+ exports.toError = toError;
3253
+ exports.toISOStringLocal = toISOStringLocal;
3254
+ exports.toInteger = toInteger;
3255
+ exports.updateErrorMessage = updateErrorMessage;
3256
+ exports.uuid = v4;
3257
+ exports.validateConfigOverride = validateConfigOverride;
3258
+ exports.validateIdentityMap = validateIdentityMap;