iureiure 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.editorconfig +21 -0
- package/.env.example +8 -0
- package/.eslintignore +19 -0
- package/.eslintrc.json +155 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +50 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- package/.github/dependabot.yml +6 -0
- package/.github/pull_request_template.md +23 -0
- package/.github/workflows/build-and-quality-checks-v3.yml +51 -0
- package/.github/workflows/check_pr_title.yml +17 -0
- package/.github/workflows/codeql-analysis.yml +70 -0
- package/.github/workflows/create-hotfix-branch-v3.yml +21 -0
- package/.github/workflows/deploy-beta-v3.yml +82 -0
- package/.github/workflows/deploy-dev-v3.yml +71 -0
- package/.github/workflows/deploy-npm-v3.yml +169 -0
- package/.github/workflows/deploy-prod-v3.yml +194 -0
- package/.github/workflows/deploy-sanity-suite.yml +80 -0
- package/.github/workflows/deploy-staging-v3.yml +99 -0
- package/.github/workflows/draft-new-release-v3.yml +103 -0
- package/.github/workflows/housekeeping.yaml +40 -0
- package/.github/workflows/publish-new-release-v3.yml +136 -0
- package/.github/workflows/rollback-v3.yml +190 -0
- package/.github/workflows/test-v3.yml +60 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +1 -0
- package/.jscpd.json +17 -0
- package/.nvmrc +1 -0
- package/.nxignore +3 -0
- package/.prettierignore +18 -0
- package/.prettierrc +13 -0
- package/.versionrc +8 -0
- package/CODEOWNERS +2 -0
- package/__mocks__/BraveBrowser.js +9 -0
- package/assets/integrations/AdobeAnalytics/adobe-analytics-js-heartbeat.js +193 -0
- package/assets/integrations/AdobeAnalytics/adobe-analytics-js.js +116 -0
- package/assets/rs-logo-full-light.jpg +0 -0
- package/babel.config.json +14 -0
- package/commitlint.config.js +27 -0
- package/examples/angular/sample-app/.editorconfig +16 -0
- package/examples/angular/sample-app/README.md +27 -0
- package/examples/angular/sample-app/angular.json +83 -0
- package/examples/angular/sample-app/package-lock.json +12552 -0
- package/examples/angular/sample-app/package.json +39 -0
- package/examples/angular/sample-app/src/app/app-routing.module.ts +10 -0
- package/examples/angular/sample-app/src/app/app.component.css +0 -0
- package/examples/angular/sample-app/src/app/app.component.html +508 -0
- package/examples/angular/sample-app/src/app/app.component.spec.ts +33 -0
- package/examples/angular/sample-app/src/app/app.component.ts +104 -0
- package/examples/angular/sample-app/src/app/app.module.ts +12 -0
- package/examples/angular/sample-app/src/assets/.gitkeep +0 -0
- package/examples/angular/sample-app/src/favicon.ico +0 -0
- package/examples/angular/sample-app/src/index.html +45 -0
- package/examples/angular/sample-app/src/main.ts +7 -0
- package/examples/angular/sample-app/src/styles.css +1 -0
- package/examples/angular/sample-app/tsconfig.app.json +10 -0
- package/examples/angular/sample-app/tsconfig.json +30 -0
- package/examples/angular/sample-app/tsconfig.spec.json +9 -0
- package/examples/chrome-extension/USAGE.md +140 -0
- package/examples/chrome-extension/background-script/LICENSE +21 -0
- package/examples/chrome-extension/background-script/README.md +105 -0
- package/examples/chrome-extension/background-script/foreground.js +7 -0
- package/examples/chrome-extension/background-script/logo/logo-128.png +0 -0
- package/examples/chrome-extension/background-script/logo/logo-16.png +0 -0
- package/examples/chrome-extension/background-script/logo/logo-48.png +0 -0
- package/examples/chrome-extension/background-script/logo/logo.svg +138 -0
- package/examples/chrome-extension/background-script/manifest.json +36 -0
- package/examples/chrome-extension/background-script/popup/popup.css +11 -0
- package/examples/chrome-extension/background-script/popup/popup.html +11 -0
- package/examples/chrome-extension/background-script/rudderAnalytics.js +5133 -0
- package/examples/chrome-extension/background-script/service-worker.js +28 -0
- package/examples/chrome-extension/background-script/settings/settings.css +8 -0
- package/examples/chrome-extension/background-script/settings/settings.html +12 -0
- package/examples/chrome-extension/background-script-websockets/LICENSE +21 -0
- package/examples/chrome-extension/background-script-websockets/README.md +101 -0
- package/examples/chrome-extension/background-script-websockets/foreground.js +7 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo-128.png +0 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo-16.png +0 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo-48.png +0 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo.svg +138 -0
- package/examples/chrome-extension/background-script-websockets/manifest.json +37 -0
- package/examples/chrome-extension/background-script-websockets/popup/popup.css +11 -0
- package/examples/chrome-extension/background-script-websockets/popup/popup.html +11 -0
- package/examples/chrome-extension/background-script-websockets/rudderAnalytics.js +5133 -0
- package/examples/chrome-extension/background-script-websockets/service-worker.js +60 -0
- package/examples/chrome-extension/background-script-websockets/settings/settings.css +8 -0
- package/examples/chrome-extension/background-script-websockets/settings/settings.html +12 -0
- package/examples/chrome-extension/content-script-v1.1/LICENSE +21 -0
- package/examples/chrome-extension/content-script-v1.1/README.md +105 -0
- package/examples/chrome-extension/content-script-v1.1/foreground.js +65 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo-128.png +0 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo-16.png +0 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo-48.png +0 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo.svg +138 -0
- package/examples/chrome-extension/content-script-v1.1/manifest.json +35 -0
- package/examples/chrome-extension/content-script-v1.1/popup/popup.css +11 -0
- package/examples/chrome-extension/content-script-v1.1/popup/popup.html +11 -0
- package/examples/chrome-extension/content-script-v1.1/service-worker-utils.js +17 -0
- package/examples/chrome-extension/content-script-v1.1/service-worker.js +12 -0
- package/examples/chrome-extension/content-script-v1.1/settings/settings.css +8 -0
- package/examples/chrome-extension/content-script-v1.1/settings/settings.html +12 -0
- package/examples/chrome-extension/content-script-v3/LICENSE +21 -0
- package/examples/chrome-extension/content-script-v3/README.md +105 -0
- package/examples/chrome-extension/content-script-v3/foreground.js +3875 -0
- package/examples/chrome-extension/content-script-v3/logo/logo-128.png +0 -0
- package/examples/chrome-extension/content-script-v3/logo/logo-16.png +0 -0
- package/examples/chrome-extension/content-script-v3/logo/logo-48.png +0 -0
- package/examples/chrome-extension/content-script-v3/logo/logo.svg +138 -0
- package/examples/chrome-extension/content-script-v3/manifest.json +35 -0
- package/examples/chrome-extension/content-script-v3/popup/popup.css +11 -0
- package/examples/chrome-extension/content-script-v3/popup/popup.html +11 -0
- package/examples/chrome-extension/content-script-v3/service-worker-utils.js +17 -0
- package/examples/chrome-extension/content-script-v3/service-worker.js +12 -0
- package/examples/chrome-extension/content-script-v3/settings/settings.css +8 -0
- package/examples/chrome-extension/content-script-v3/settings/settings.html +12 -0
- package/examples/chrome-extension/websocket-server/server.mjs +19 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/README.md +49 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/gatsby-config.ts +27 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/package-lock.json +16070 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/package.json +31 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/src/images/icon.png +0 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/src/pages/404.tsx +49 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/src/pages/index.tsx +193 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/tsconfig.json +105 -0
- package/examples/gatsby/sample-gatsby-site/README.md +49 -0
- package/examples/gatsby/sample-gatsby-site/gatsby-config.ts +15 -0
- package/examples/gatsby/sample-gatsby-site/package-lock.json +15916 -0
- package/examples/gatsby/sample-gatsby-site/package.json +37 -0
- package/examples/gatsby/sample-gatsby-site/src/images/icon.png +0 -0
- package/examples/gatsby/sample-gatsby-site/src/pages/404.tsx +49 -0
- package/examples/gatsby/sample-gatsby-site/src/pages/index.tsx +209 -0
- package/examples/gatsby/sample-gatsby-site/tsconfig.json +105 -0
- package/examples/html/autotrack-test.html +94 -0
- package/examples/html/ecomm_test.html +358 -0
- package/examples/html/script-test.html +968 -0
- package/examples/html/segment.html +177 -0
- package/examples/html/test_poster.jpg +0 -0
- package/examples/nextjs/hooks/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/hooks/sample-app/README.md +36 -0
- package/examples/nextjs/hooks/sample-app/next.config.js +4 -0
- package/examples/nextjs/hooks/sample-app/package-lock.json +4766 -0
- package/examples/nextjs/hooks/sample-app/package.json +28 -0
- package/examples/nextjs/hooks/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/hooks/sample-app/public/next.svg +1 -0
- package/examples/nextjs/hooks/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/hooks/sample-app/src/app/favicon.ico +0 -0
- package/examples/nextjs/hooks/sample-app/src/app/globals.css +27 -0
- package/examples/nextjs/hooks/sample-app/src/app/layout.tsx +55 -0
- package/examples/nextjs/hooks/sample-app/src/app/page.tsx +137 -0
- package/examples/nextjs/hooks/sample-app/src/app/useRudderAnalytics.ts +29 -0
- package/examples/nextjs/hooks/sample-app/tailwind.config.ts +19 -0
- package/examples/nextjs/hooks/sample-app/tsconfig.json +27 -0
- package/examples/nextjs/js/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/js/sample-app/README.md +36 -0
- package/examples/nextjs/js/sample-app/jsconfig.json +7 -0
- package/examples/nextjs/js/sample-app/next.config.js +4 -0
- package/examples/nextjs/js/sample-app/package-lock.json +4710 -0
- package/examples/nextjs/js/sample-app/package.json +24 -0
- package/examples/nextjs/js/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/js/sample-app/public/next.svg +1 -0
- package/examples/nextjs/js/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/js/sample-app/src/app/favicon.ico +0 -0
- package/examples/nextjs/js/sample-app/src/app/globals.css +27 -0
- package/examples/nextjs/js/sample-app/src/app/layout.js +54 -0
- package/examples/nextjs/js/sample-app/src/app/page.js +146 -0
- package/examples/nextjs/js/sample-app/tailwind.config.js +17 -0
- package/examples/nextjs/page-router/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/page-router/sample-app/README.md +40 -0
- package/examples/nextjs/page-router/sample-app/next.config.js +6 -0
- package/examples/nextjs/page-router/sample-app/package-lock.json +4270 -0
- package/examples/nextjs/page-router/sample-app/package.json +28 -0
- package/examples/nextjs/page-router/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/page-router/sample-app/public/favicon.ico +0 -0
- package/examples/nextjs/page-router/sample-app/public/next.svg +1 -0
- package/examples/nextjs/page-router/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/page-router/sample-app/src/pages/_app.tsx +35 -0
- package/examples/nextjs/page-router/sample-app/src/pages/_document.tsx +49 -0
- package/examples/nextjs/page-router/sample-app/src/pages/api/hello.ts +10 -0
- package/examples/nextjs/page-router/sample-app/src/pages/index.tsx +138 -0
- package/examples/nextjs/page-router/sample-app/src/pages/page2.tsx +18 -0
- package/examples/nextjs/page-router/sample-app/src/styles/globals.css +27 -0
- package/examples/nextjs/page-router/sample-app/src/useRudderAnalytics.ts +29 -0
- package/examples/nextjs/page-router/sample-app/tailwind.config.ts +19 -0
- package/examples/nextjs/page-router/sample-app/tsconfig.json +22 -0
- package/examples/nextjs/ts/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/ts/sample-app/README.md +36 -0
- package/examples/nextjs/ts/sample-app/next.config.js +4 -0
- package/examples/nextjs/ts/sample-app/package-lock.json +4766 -0
- package/examples/nextjs/ts/sample-app/package.json +28 -0
- package/examples/nextjs/ts/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/ts/sample-app/public/next.svg +1 -0
- package/examples/nextjs/ts/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/ts/sample-app/src/app/favicon.ico +0 -0
- package/examples/nextjs/ts/sample-app/src/app/globals.css +27 -0
- package/examples/nextjs/ts/sample-app/src/app/layout.tsx +55 -0
- package/examples/nextjs/ts/sample-app/src/app/page.tsx +147 -0
- package/examples/nextjs/ts/sample-app/tailwind.config.ts +19 -0
- package/examples/nextjs/ts/sample-app/tsconfig.json +27 -0
- package/examples/reactjs/hooks/sample-app/README.md +46 -0
- package/examples/reactjs/hooks/sample-app/package-lock.json +16203 -0
- package/examples/reactjs/hooks/sample-app/package.json +47 -0
- package/examples/reactjs/hooks/sample-app/public/favicon.ico +0 -0
- package/examples/reactjs/hooks/sample-app/public/index.html +75 -0
- package/examples/reactjs/hooks/sample-app/public/logo192.png +0 -0
- package/examples/reactjs/hooks/sample-app/public/logo512.png +0 -0
- package/examples/reactjs/hooks/sample-app/public/manifest.json +25 -0
- package/examples/reactjs/hooks/sample-app/public/robots.txt +3 -0
- package/examples/reactjs/hooks/sample-app/src/App.css +38 -0
- package/examples/reactjs/hooks/sample-app/src/App.test.tsx +9 -0
- package/examples/reactjs/hooks/sample-app/src/App.tsx +95 -0
- package/examples/reactjs/hooks/sample-app/src/index.css +32 -0
- package/examples/reactjs/hooks/sample-app/src/index.tsx +19 -0
- package/examples/reactjs/hooks/sample-app/src/logo.svg +1 -0
- package/examples/reactjs/hooks/sample-app/src/react-app-env.d.ts +1 -0
- package/examples/reactjs/hooks/sample-app/src/reportWebVitals.ts +15 -0
- package/examples/reactjs/hooks/sample-app/src/setupTests.ts +5 -0
- package/examples/reactjs/hooks/sample-app/src/useRudderAnalytics.ts +23 -0
- package/examples/reactjs/hooks/sample-app/tsconfig.json +20 -0
- package/examples/reactjs/js/sample-app/README.md +70 -0
- package/examples/reactjs/js/sample-app/package-lock.json +17665 -0
- package/examples/reactjs/js/sample-app/package.json +42 -0
- package/examples/reactjs/js/sample-app/public/favicon.ico +0 -0
- package/examples/reactjs/js/sample-app/public/index.html +75 -0
- package/examples/reactjs/js/sample-app/public/logo192.png +0 -0
- package/examples/reactjs/js/sample-app/public/logo512.png +0 -0
- package/examples/reactjs/js/sample-app/public/manifest.json +25 -0
- package/examples/reactjs/js/sample-app/public/robots.txt +3 -0
- package/examples/reactjs/js/sample-app/src/App.css +38 -0
- package/examples/reactjs/js/sample-app/src/App.js +101 -0
- package/examples/reactjs/js/sample-app/src/App.test.js +8 -0
- package/examples/reactjs/js/sample-app/src/index.css +34 -0
- package/examples/reactjs/js/sample-app/src/index.js +17 -0
- package/examples/reactjs/js/sample-app/src/logo.svg +1 -0
- package/examples/reactjs/js/sample-app/src/reportWebVitals.js +13 -0
- package/examples/reactjs/js/sample-app/src/setupTests.js +5 -0
- package/examples/reactjs/ts/sample-app/README.md +46 -0
- package/examples/reactjs/ts/sample-app/package-lock.json +17653 -0
- package/examples/reactjs/ts/sample-app/package.json +47 -0
- package/examples/reactjs/ts/sample-app/public/favicon.ico +0 -0
- package/examples/reactjs/ts/sample-app/public/index.html +75 -0
- package/examples/reactjs/ts/sample-app/public/logo192.png +0 -0
- package/examples/reactjs/ts/sample-app/public/logo512.png +0 -0
- package/examples/reactjs/ts/sample-app/public/manifest.json +25 -0
- package/examples/reactjs/ts/sample-app/public/robots.txt +3 -0
- package/examples/reactjs/ts/sample-app/src/App.css +38 -0
- package/examples/reactjs/ts/sample-app/src/App.test.tsx +9 -0
- package/examples/reactjs/ts/sample-app/src/App.tsx +101 -0
- package/examples/reactjs/ts/sample-app/src/index.css +34 -0
- package/examples/reactjs/ts/sample-app/src/index.tsx +19 -0
- package/examples/reactjs/ts/sample-app/src/logo.svg +1 -0
- package/examples/reactjs/ts/sample-app/src/react-app-env.d.ts +1 -0
- package/examples/reactjs/ts/sample-app/src/reportWebVitals.ts +15 -0
- package/examples/reactjs/ts/sample-app/src/setupTests.ts +5 -0
- package/examples/reactjs/ts/sample-app/tsconfig.json +20 -0
- package/examples/reactjs/vite/sample-app/.eslintrc.cjs +18 -0
- package/examples/reactjs/vite/sample-app/README.md +27 -0
- package/examples/reactjs/vite/sample-app/index.html +45 -0
- package/examples/reactjs/vite/sample-app/package-lock.json +3427 -0
- package/examples/reactjs/vite/sample-app/package.json +29 -0
- package/examples/reactjs/vite/sample-app/public/vite.svg +1 -0
- package/examples/reactjs/vite/sample-app/src/App.css +42 -0
- package/examples/reactjs/vite/sample-app/src/App.tsx +105 -0
- package/examples/reactjs/vite/sample-app/src/assets/react.svg +1 -0
- package/examples/reactjs/vite/sample-app/src/index.css +70 -0
- package/examples/reactjs/vite/sample-app/src/main.tsx +10 -0
- package/examples/reactjs/vite/sample-app/src/vite-env.d.ts +1 -0
- package/examples/reactjs/vite/sample-app/tsconfig.json +25 -0
- package/examples/reactjs/vite/sample-app/tsconfig.node.json +10 -0
- package/examples/reactjs/vite/sample-app/vite.config.ts +7 -0
- package/examples/serverless/USAGE.md +85 -0
- package/examples/serverless/cloudflare-worker/.editorconfig +13 -0
- package/examples/serverless/cloudflare-worker/.prettierrc +6 -0
- package/examples/serverless/cloudflare-worker/package-lock.json +2646 -0
- package/examples/serverless/cloudflare-worker/package.json +18 -0
- package/examples/serverless/cloudflare-worker/src/worker.js +54 -0
- package/examples/serverless/cloudflare-worker/wrangler.toml +52 -0
- package/examples/serverless/vercel-edge/.eslintrc.json +3 -0
- package/examples/serverless/vercel-edge/README.md +34 -0
- package/examples/serverless/vercel-edge/app/api/edge-function-example/route.ts +32 -0
- package/examples/serverless/vercel-edge/app/favicon.ico +0 -0
- package/examples/serverless/vercel-edge/app/globals.css +27 -0
- package/examples/serverless/vercel-edge/app/layout.tsx +22 -0
- package/examples/serverless/vercel-edge/app/page.tsx +113 -0
- package/examples/serverless/vercel-edge/next.config.js +4 -0
- package/examples/serverless/vercel-edge/package-lock.json +5351 -0
- package/examples/serverless/vercel-edge/package.json +26 -0
- package/examples/serverless/vercel-edge/postcss.config.js +6 -0
- package/examples/serverless/vercel-edge/public/next.svg +1 -0
- package/examples/serverless/vercel-edge/public/vercel.svg +1 -0
- package/examples/serverless/vercel-edge/tailwind.config.ts +19 -0
- package/examples/serverless/vercel-edge/tsconfig.json +27 -0
- package/examples/symfony/USAGE.md +57 -0
- package/examples/symfony/sample/.env.test +6 -0
- package/examples/symfony/sample/assets/app.js +15 -0
- package/examples/symfony/sample/assets/styles/app.css +3 -0
- package/examples/symfony/sample/compose.override.yaml +14 -0
- package/examples/symfony/sample/compose.yaml +21 -0
- package/examples/symfony/sample/composer.json +104 -0
- package/examples/symfony/sample/composer.lock +9921 -0
- package/examples/symfony/sample/config/bundles.php +15 -0
- package/examples/symfony/sample/config/packages/cache.yaml +19 -0
- package/examples/symfony/sample/config/packages/debug.yaml +5 -0
- package/examples/symfony/sample/config/packages/doctrine.yaml +43 -0
- package/examples/symfony/sample/config/packages/doctrine_migrations.yaml +6 -0
- package/examples/symfony/sample/config/packages/framework.yaml +24 -0
- package/examples/symfony/sample/config/packages/mailer.yaml +3 -0
- package/examples/symfony/sample/config/packages/messenger.yaml +24 -0
- package/examples/symfony/sample/config/packages/monolog.yaml +61 -0
- package/examples/symfony/sample/config/packages/notifier.yaml +12 -0
- package/examples/symfony/sample/config/packages/routing.yaml +12 -0
- package/examples/symfony/sample/config/packages/security.yaml +40 -0
- package/examples/symfony/sample/config/packages/translation.yaml +13 -0
- package/examples/symfony/sample/config/packages/twig.yaml +6 -0
- package/examples/symfony/sample/config/packages/validator.yaml +13 -0
- package/examples/symfony/sample/config/packages/web_profiler.yaml +15 -0
- package/examples/symfony/sample/config/packages/webpack_encore.yaml +45 -0
- package/examples/symfony/sample/config/preload.php +5 -0
- package/examples/symfony/sample/config/routes/framework.yaml +4 -0
- package/examples/symfony/sample/config/routes/web_profiler.yaml +8 -0
- package/examples/symfony/sample/config/routes.yaml +7 -0
- package/examples/symfony/sample/config/services.yaml +24 -0
- package/examples/symfony/sample/package-lock.json +8082 -0
- package/examples/symfony/sample/package.json +23 -0
- package/examples/symfony/sample/phpunit.xml.dist +38 -0
- package/examples/symfony/sample/public/index.php +9 -0
- package/examples/symfony/sample/src/Controller/LuckyController.php +18 -0
- package/examples/symfony/sample/src/Kernel.php +11 -0
- package/examples/symfony/sample/symfony.lock +277 -0
- package/examples/symfony/sample/templates/base.html.twig +19 -0
- package/examples/symfony/sample/templates/lucky/number.html.twig +20 -0
- package/examples/symfony/sample/tests/bootstrap.php +11 -0
- package/examples/symfony/sample/webpack.config.js +72 -0
- package/examples/v1/index.html +229 -0
- package/examples/v1.1/index.html +229 -0
- package/examples/v2-beacon/index.html +229 -0
- package/examples/v3/index.html +266 -0
- package/examples/v3-beacon/index.html +270 -0
- package/examples/v3-legacy/index.html +266 -0
- package/examples/v3-legacy-minimum-plugins/index.html +270 -0
- package/examples/v3-minimum-plugins/index.html +270 -0
- package/jest/jest.global-setup.js +3 -0
- package/jest/jest.polyfills.js +18 -0
- package/jest/jest.setup-dom.js +54 -0
- package/jest/jsdom-extended.js +26 -0
- package/jest.config.ts +5 -0
- package/jest.preset.js +83 -0
- package/migrations.json +34 -0
- package/nx.json +69 -0
- package/package.json +170 -0
- package/packages/analytics-js/.env.example +9 -0
- package/packages/analytics-js/.jscpd.json +17 -0
- package/packages/analytics-js/.size-limit.js +31 -0
- package/packages/analytics-js/CHANGELOG.md +283 -0
- package/packages/analytics-js/CHANGELOG_LATEST.md +2 -0
- package/packages/analytics-js/LICENSE +21 -0
- package/packages/analytics-js/README.md +100 -0
- package/packages/analytics-js/__fixtures__/fixtures.ts +765 -0
- package/packages/analytics-js/__fixtures__/msw.handlers.ts +82 -0
- package/packages/analytics-js/__fixtures__/msw.server.ts +6 -0
- package/packages/analytics-js/__mocks__/remotePlugins/BeaconQueue.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/Bugsnag.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/CustomConsentManager.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/DeviceModeDestinations.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/DeviceModeTransformation.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/ErrorReporting.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/ExternalAnonymousId.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/GoogleLinker.ts +8 -0
- package/packages/analytics-js/__mocks__/remotePlugins/KetchConsentManager.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/NativeDestinationQueue.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/OneTrustConsentManager.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/StorageEncryption.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/StorageEncryptionLegacy.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/StorageMigrator.ts +8 -0
- package/packages/analytics-js/__mocks__/remotePlugins/XhrQueue.ts +9 -0
- package/packages/analytics-js/__tests__/app/RudderAnalytics.test.ts +286 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/adBlockers.test.ts +78 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/browser.test.ts +24 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/clientHint.test.ts +87 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/dom.test.ts +13 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/screen.test.ts +13 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/storage.test.ts +27 -0
- package/packages/analytics-js/__tests__/components/configManager/ConfigManager.test.ts +222 -0
- package/packages/analytics-js/__tests__/components/configManager/cdnPaths.test.ts +70 -0
- package/packages/analytics-js/__tests__/components/configManager/commonUtil.test.ts +531 -0
- package/packages/analytics-js/__tests__/components/configManager/dataPlaneResolver.test.ts +163 -0
- package/packages/analytics-js/__tests__/components/configManager/validate.test.ts +31 -0
- package/packages/analytics-js/__tests__/components/core/Analytics.test.ts +628 -0
- package/packages/analytics-js/__tests__/components/eventManager/EventManager.test.ts +78 -0
- package/packages/analytics-js/__tests__/components/eventManager/RudderEventFactory.test.ts +514 -0
- package/packages/analytics-js/__tests__/components/eventManager/utilities.test.ts +1043 -0
- package/packages/analytics-js/__tests__/components/eventRepository/EventRepository.test.ts +324 -0
- package/packages/analytics-js/__tests__/components/pluginsManager/.gitkeep +0 -0
- package/packages/analytics-js/__tests__/components/preloadBuffer/index.test.ts +130 -0
- package/packages/analytics-js/__tests__/components/userSessionManager/UserSessionManager.test.ts +1386 -0
- package/packages/analytics-js/__tests__/components/userSessionManager/utils.test.ts +103 -0
- package/packages/analytics-js/__tests__/components/utilities/consent.test.ts +192 -0
- package/packages/analytics-js/__tests__/components/utilities/destinations.test.ts +201 -0
- package/packages/analytics-js/__tests__/components/utilities/event.test.ts +8 -0
- package/packages/analytics-js/__tests__/components/utilities/globals.test.ts +42 -0
- package/packages/analytics-js/__tests__/components/utilities/page.test.ts +235 -0
- package/packages/analytics-js/__tests__/components/utilities/sort.test.ts +17 -0
- package/packages/analytics-js/__tests__/components/utilities/statsCollection.test.ts +84 -0
- package/packages/analytics-js/__tests__/components/utilities/url.test.ts +51 -0
- package/packages/analytics-js/__tests__/services/ErrorHandler/ErrorHandler.test.ts +272 -0
- package/packages/analytics-js/__tests__/services/ErrorHandler/processError.test.ts +33 -0
- package/packages/analytics-js/__tests__/services/HttpClient/HttpClient.test.ts +255 -0
- package/packages/analytics-js/__tests__/services/Logger/Logger.test.ts +204 -0
- package/packages/analytics-js/__tests__/services/PluginEngine/PluginEngine.test.ts +206 -0
- package/packages/analytics-js/__tests__/services/StoreManager/Store.test.ts +152 -0
- package/packages/analytics-js/__tests__/services/StoreManager/StoreManager.test.ts +272 -0
- package/packages/analytics-js/__tests__/services/StoreManager/component-cookie/index.test.ts +65 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/CookieStorage.test.ts +42 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/InMemoryStorage.test.ts +26 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/LocalStorage.test.ts +26 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/sessionStorage.test.ts +26 -0
- package/packages/analytics-js/__tests__/services/StoreManager/top-domain/index.test.ts +60 -0
- package/packages/analytics-js/babel.config.json +15 -0
- package/packages/analytics-js/jest.config.mjs +14 -0
- package/packages/analytics-js/package.json +114 -0
- package/packages/analytics-js/project.json +138 -0
- package/packages/analytics-js/public/index-legacy-only.html +308 -0
- package/packages/analytics-js/public/index.html +324 -0
- package/packages/analytics-js/public/list_integration_sdks.html +408 -0
- package/packages/analytics-js/rollup.config.mjs +387 -0
- package/packages/analytics-js/src/app/IRudderStackGlobals.ts +21 -0
- package/packages/analytics-js/src/app/RudderAnalytics.ts +296 -0
- package/packages/analytics-js/src/browser.ts +55 -0
- package/packages/analytics-js/src/components/capabilitiesManager/CapabilitiesManager.ts +199 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/adBlockers.ts +38 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/browser.ts +24 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/clientHint.ts +31 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/dom.ts +54 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/index.ts +6 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/screen.ts +23 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/storage.ts +77 -0
- package/packages/analytics-js/src/components/capabilitiesManager/index.ts +1 -0
- package/packages/analytics-js/src/components/capabilitiesManager/polyfill/index.ts +14 -0
- package/packages/analytics-js/src/components/capabilitiesManager/types.ts +14 -0
- package/packages/analytics-js/src/components/configManager/ConfigManager.ts +218 -0
- package/packages/analytics-js/src/components/configManager/constants.ts +21 -0
- package/packages/analytics-js/src/components/configManager/index.ts +1 -0
- package/packages/analytics-js/src/components/configManager/types.ts +90 -0
- package/packages/analytics-js/src/components/configManager/util/cdnPaths.ts +80 -0
- package/packages/analytics-js/src/components/configManager/util/commonUtil.ts +262 -0
- package/packages/analytics-js/src/components/configManager/util/dataPlaneResolver.ts +79 -0
- package/packages/analytics-js/src/components/configManager/util/validate.ts +46 -0
- package/packages/analytics-js/src/components/core/Analytics.ts +824 -0
- package/packages/analytics-js/src/components/core/IAnalytics.ts +218 -0
- package/packages/analytics-js/src/components/core/utilities.ts +12 -0
- package/packages/analytics-js/src/components/eventManager/EventManager.ts +80 -0
- package/packages/analytics-js/src/components/eventManager/RudderEventFactory.ts +171 -0
- package/packages/analytics-js/src/components/eventManager/constants.ts +29 -0
- package/packages/analytics-js/src/components/eventManager/index.ts +1 -0
- package/packages/analytics-js/src/components/eventManager/types.ts +7 -0
- package/packages/analytics-js/src/components/eventManager/utilities.ts +341 -0
- package/packages/analytics-js/src/components/eventRepository/EventRepository.ts +225 -0
- package/packages/analytics-js/src/components/eventRepository/constants.ts +9 -0
- package/packages/analytics-js/src/components/eventRepository/index.ts +1 -0
- package/packages/analytics-js/src/components/eventRepository/types.ts +10 -0
- package/packages/analytics-js/src/components/eventRepository/utils.ts +53 -0
- package/packages/analytics-js/src/components/pluginsManager/PluginsManager.ts +332 -0
- package/packages/analytics-js/src/components/pluginsManager/bundledBuildPluginImports.ts +39 -0
- package/packages/analytics-js/src/components/pluginsManager/defaultPluginsList.ts +24 -0
- package/packages/analytics-js/src/components/pluginsManager/federatedModulesBuildPluginImports.ts +68 -0
- package/packages/analytics-js/src/components/pluginsManager/index.ts +1 -0
- package/packages/analytics-js/src/components/pluginsManager/pluginNames.ts +29 -0
- package/packages/analytics-js/src/components/pluginsManager/pluginsInventory.ts +47 -0
- package/packages/analytics-js/src/components/pluginsManager/types.ts +4 -0
- package/packages/analytics-js/src/components/preloadBuffer/index.ts +187 -0
- package/packages/analytics-js/src/components/preloadBuffer/types.ts +5 -0
- package/packages/analytics-js/src/components/userSessionManager/UserSessionManager.ts +642 -0
- package/packages/analytics-js/src/components/userSessionManager/constants.ts +25 -0
- package/packages/analytics-js/src/components/userSessionManager/index.ts +1 -0
- package/packages/analytics-js/src/components/userSessionManager/types.ts +29 -0
- package/packages/analytics-js/src/components/userSessionManager/utils.ts +109 -0
- package/packages/analytics-js/src/components/utilities/consent.ts +163 -0
- package/packages/analytics-js/src/components/utilities/destinations.ts +31 -0
- package/packages/analytics-js/src/components/utilities/event.ts +3 -0
- package/packages/analytics-js/src/components/utilities/globals.ts +54 -0
- package/packages/analytics-js/src/components/utilities/loadOptions.ts +176 -0
- package/packages/analytics-js/src/components/utilities/number.ts +23 -0
- package/packages/analytics-js/src/components/utilities/page.ts +103 -0
- package/packages/analytics-js/src/components/utilities/sort.ts +15 -0
- package/packages/analytics-js/src/components/utilities/statsCollection.ts +16 -0
- package/packages/analytics-js/src/components/utilities/url.ts +90 -0
- package/packages/analytics-js/src/constants/app.ts +24 -0
- package/packages/analytics-js/src/constants/encryption.ts +6 -0
- package/packages/analytics-js/src/constants/errors.ts +4 -0
- package/packages/analytics-js/src/constants/logMessages.ts +282 -0
- package/packages/analytics-js/src/constants/queryParams.ts +13 -0
- package/packages/analytics-js/src/constants/storage.ts +40 -0
- package/packages/analytics-js/src/constants/timeouts.ts +15 -0
- package/packages/analytics-js/src/constants/urls.ts +21 -0
- package/packages/analytics-js/src/index.ts +40 -0
- package/packages/analytics-js/src/services/ErrorHandler/ErrorHandler.ts +204 -0
- package/packages/analytics-js/src/services/ErrorHandler/constant.ts +3 -0
- package/packages/analytics-js/src/services/ErrorHandler/index.ts +1 -0
- package/packages/analytics-js/src/services/ErrorHandler/processError.ts +61 -0
- package/packages/analytics-js/src/services/HttpClient/HttpClient.ts +112 -0
- package/packages/analytics-js/src/services/HttpClient/index.ts +7 -0
- package/packages/analytics-js/src/services/HttpClient/xhr/xhrRequestHandler.ts +140 -0
- package/packages/analytics-js/src/services/HttpClient/xhr/xhrResponseHandler.ts +25 -0
- package/packages/analytics-js/src/services/Logger/Logger.ts +123 -0
- package/packages/analytics-js/src/services/Logger/index.ts +1 -0
- package/packages/analytics-js/src/services/Logger/types.ts +6 -0
- package/packages/analytics-js/src/services/PluginEngine/PluginEngine.ts +200 -0
- package/packages/analytics-js/src/services/PluginEngine/README.md +152 -0
- package/packages/analytics-js/src/services/PluginEngine/index.ts +1 -0
- package/packages/analytics-js/src/services/StoreManager/Store.ts +218 -0
- package/packages/analytics-js/src/services/StoreManager/StoreManager.ts +231 -0
- package/packages/analytics-js/src/services/StoreManager/component-cookie/README.md +23 -0
- package/packages/analytics-js/src/services/StoreManager/component-cookie/index.ts +138 -0
- package/packages/analytics-js/src/services/StoreManager/index.ts +2 -0
- package/packages/analytics-js/src/services/StoreManager/storages/CookieStorage.ts +80 -0
- package/packages/analytics-js/src/services/StoreManager/storages/InMemoryStorage.ts +66 -0
- package/packages/analytics-js/src/services/StoreManager/storages/LocalStorage.ts +68 -0
- package/packages/analytics-js/src/services/StoreManager/storages/defaultOptions.ts +39 -0
- package/packages/analytics-js/src/services/StoreManager/storages/index.ts +18 -0
- package/packages/analytics-js/src/services/StoreManager/storages/sessionStorage.ts +64 -0
- package/packages/analytics-js/src/services/StoreManager/storages/storageEngine.ts +91 -0
- package/packages/analytics-js/src/services/StoreManager/top-domain/README.md +21 -0
- package/packages/analytics-js/src/services/StoreManager/top-domain/index.ts +83 -0
- package/packages/analytics-js/src/services/StoreManager/types.ts +32 -0
- package/packages/analytics-js/src/services/StoreManager/utils.ts +33 -0
- package/packages/analytics-js/src/state/index.ts +53 -0
- package/packages/analytics-js/src/state/slices/capabilities.ts +19 -0
- package/packages/analytics-js/src/state/slices/consents.ts +16 -0
- package/packages/analytics-js/src/state/slices/context.ts +36 -0
- package/packages/analytics-js/src/state/slices/eventBuffer.ts +9 -0
- package/packages/analytics-js/src/state/slices/lifecycle.ts +19 -0
- package/packages/analytics-js/src/state/slices/loadOptions.ts +44 -0
- package/packages/analytics-js/src/state/slices/metrics.ts +12 -0
- package/packages/analytics-js/src/state/slices/nativeDestinations.ts +15 -0
- package/packages/analytics-js/src/state/slices/plugins.ts +13 -0
- package/packages/analytics-js/src/state/slices/reporting.ts +11 -0
- package/packages/analytics-js/src/state/slices/session.ts +24 -0
- package/packages/analytics-js/src/state/slices/source.ts +6 -0
- package/packages/analytics-js/src/state/slices/storage.ts +13 -0
- package/packages/analytics-js/src/types/index.ts +1 -0
- package/packages/analytics-js/src/types/remote-plugins.d.ts +15 -0
- package/packages/analytics-js/src/types/rudderanalytics.d.ts +16 -0
- package/packages/analytics-js/tsconfig.json +14 -0
- package/packages/analytics-js/tsconfig.spec.json +26 -0
- package/packages/analytics-js-common/.jscpd.json +17 -0
- package/packages/analytics-js-common/.size-limit.js +11 -0
- package/packages/analytics-js-common/CHANGELOG.md +180 -0
- package/packages/analytics-js-common/CHANGELOG_LATEST.md +7 -0
- package/packages/analytics-js-common/LICENSE +21 -0
- package/packages/analytics-js-common/README.md +42 -0
- package/packages/analytics-js-common/__fixtures__/fixtures.ts +161 -0
- package/packages/analytics-js-common/__fixtures__/msw.handlers.ts +82 -0
- package/packages/analytics-js-common/__fixtures__/msw.server.ts +6 -0
- package/packages/analytics-js-common/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-common/__tests__/services/BufferQueue/BufferQueue.test.ts +55 -0
- package/packages/analytics-js-common/__tests__/services/ExternalSrcLoader/ExternalSrcLoader.test.ts +170 -0
- package/packages/analytics-js-common/__tests__/utilities/checks.test.ts +95 -0
- package/packages/analytics-js-common/__tests__/utilities/destinations.test.ts +44 -0
- package/packages/analytics-js-common/__tests__/utilities/detect.test.ts +22 -0
- package/packages/analytics-js-common/__tests__/utilities/eventMethodOverloads.test.ts +260 -0
- package/packages/analytics-js-common/__tests__/utilities/json.test.ts +155 -0
- package/packages/analytics-js-common/__tests__/utilities/object.test.ts +287 -0
- package/packages/analytics-js-common/__tests__/utilities/string.test.ts +104 -0
- package/packages/analytics-js-common/__tests__/utilities/timezone.test.ts +9 -0
- package/packages/analytics-js-common/__tests__/utilities/uuid.test.ts +35 -0
- package/packages/analytics-js-common/__tests__/v1.1/utils/ObjectUtils.test.js +113 -0
- package/packages/analytics-js-common/__tests__/v1.1/utils/errorHandler.test.js +60 -0
- package/packages/analytics-js-common/babel.config.json +14 -0
- package/packages/analytics-js-common/jest.config.mjs +14 -0
- package/packages/analytics-js-common/package.json +92 -0
- package/packages/analytics-js-common/project.json +107 -0
- package/packages/analytics-js-common/src/constants/QueueStatuses.ts +10 -0
- package/packages/analytics-js-common/src/constants/consent.ts +6 -0
- package/packages/analytics-js-common/src/constants/destDisplayNamesToFileNamesMap.ts +243 -0
- package/packages/analytics-js-common/src/constants/destinationNames.ts +312 -0
- package/packages/analytics-js-common/src/constants/htmlAttributes.ts +3 -0
- package/packages/analytics-js-common/src/constants/index.ts +11 -0
- package/packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.js +18 -0
- package/packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Braze/constants.ts +22 -0
- package/packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/CommandBar/constants.ts +21 -0
- package/packages/analytics-js-common/src/constants/integrations/CommonIntegrationsConstant/constants.ts +194 -0
- package/packages/analytics-js-common/src/constants/integrations/Comscore/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/ConvertFlow/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/Criteo/constants.ts +22 -0
- package/packages/analytics-js-common/src/constants/integrations/CustomerIO/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/DCMFloodlight/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/Drip/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Engage/constants.ts +27 -0
- package/packages/analytics-js-common/src/constants/integrations/FacebookPixel/constants.ts +89 -0
- package/packages/analytics-js-common/src/constants/integrations/Fullstory/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/GA/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/GA360/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/GA4/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/GoogleAds/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/GoogleOptimize/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/GoogleTagManager/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Heap/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Hotjar/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/HubSpot/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/INTERCOM/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Iterable/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/June/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Keen/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Kissmetrics/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Klaviyo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/LaunchDarkly/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/Lemnisk/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/LinkedInInsightTag/constants.ts +20 -0
- package/packages/analytics-js-common/src/constants/integrations/LiveChat/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Lotame/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Lytics/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Matomo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/MicrosoftClarity/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/Mixpanel/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/MoEngage/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Mouseflow/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/Ninetailed/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Olark/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Optimizely/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Pendo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/PinterestTag/constants.ts +23 -0
- package/packages/analytics-js-common/src/constants/integrations/Podsights/constants.ts +24 -0
- package/packages/analytics-js-common/src/constants/integrations/PostAffiliatePro/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Posthog/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/ProfitWell/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Qualaroo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Qualtrics/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/QuantumMetric/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/QuoraPixel/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/RedditPixel/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Refiner/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Rockerbox/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/RollBar/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Satismeter/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Sendinblue/constants.ts +37 -0
- package/packages/analytics-js-common/src/constants/integrations/Sentry/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Shynet/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/SnapEngage/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/SnapPixel/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/SpotifyPixel/constants.ts +20 -0
- package/packages/analytics-js-common/src/constants/integrations/Sprig/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/TVSquared/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/TiktokAds/constants.ts +97 -0
- package/packages/analytics-js-common/src/constants/integrations/VWO/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Vero/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Woopra/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/YandexMetrica/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrationsConfig.ts +5 -0
- package/packages/analytics-js-common/src/constants/logMessages.ts +24 -0
- package/packages/analytics-js-common/src/constants/loggerContexts.ts +33 -0
- package/packages/analytics-js-common/src/constants/storages.ts +9 -0
- package/packages/analytics-js-common/src/constants/timeouts.ts +3 -0
- package/packages/analytics-js-common/src/constants/urls.ts +4 -0
- package/packages/analytics-js-common/src/index.ts +4 -0
- package/packages/analytics-js-common/src/services/BufferQueue/BufferQueue.ts +37 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/ExternalSrcLoader.ts +63 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/index.ts +1 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/jsFileLoader.ts +124 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/types.ts +26 -0
- package/packages/analytics-js-common/src/types/ApiObject.ts +14 -0
- package/packages/analytics-js-common/src/types/ApplicationLifecycle.ts +12 -0
- package/packages/analytics-js-common/src/types/ApplicationState.ts +172 -0
- package/packages/analytics-js-common/src/types/Consent.ts +47 -0
- package/packages/analytics-js-common/src/types/DataResidency.ts +9 -0
- package/packages/analytics-js-common/src/types/Destination.ts +85 -0
- package/packages/analytics-js-common/src/types/ErrorHandler.ts +39 -0
- package/packages/analytics-js-common/src/types/Event.ts +54 -0
- package/packages/analytics-js-common/src/types/EventApi.ts +45 -0
- package/packages/analytics-js-common/src/types/EventContext.ts +26 -0
- package/packages/analytics-js-common/src/types/HttpClient.ts +63 -0
- package/packages/analytics-js-common/src/types/IRudderAnalytics.ts +204 -0
- package/packages/analytics-js-common/src/types/Integration.ts +18 -0
- package/packages/analytics-js-common/src/types/LoadOptions.ts +159 -0
- package/packages/analytics-js-common/src/types/Logger.ts +19 -0
- package/packages/analytics-js-common/src/types/Nullable.ts +1 -0
- package/packages/analytics-js-common/src/types/PluginEngine.ts +41 -0
- package/packages/analytics-js-common/src/types/PluginsManager.ts +29 -0
- package/packages/analytics-js-common/src/types/Session.ts +8 -0
- package/packages/analytics-js-common/src/types/Source.ts +21 -0
- package/packages/analytics-js-common/src/types/Storage.ts +49 -0
- package/packages/analytics-js-common/src/types/Store.ts +82 -0
- package/packages/analytics-js-common/src/types/UserSessionStorage.ts +10 -0
- package/packages/analytics-js-common/src/types/traits.ts +91 -0
- package/packages/analytics-js-common/src/utilities/checks.ts +77 -0
- package/packages/analytics-js-common/src/utilities/crypto.ts +6 -0
- package/packages/analytics-js-common/src/utilities/destinations.ts +31 -0
- package/packages/analytics-js-common/src/utilities/detect.ts +8 -0
- package/packages/analytics-js-common/src/utilities/errors.ts +20 -0
- package/packages/analytics-js-common/src/utilities/eventMethodOverloads.ts +407 -0
- package/packages/analytics-js-common/src/utilities/http.ts +13 -0
- package/packages/analytics-js-common/src/utilities/index.ts +14 -0
- package/packages/analytics-js-common/src/utilities/json.ts +69 -0
- package/packages/analytics-js-common/src/utilities/object.ts +119 -0
- package/packages/analytics-js-common/src/utilities/string.ts +64 -0
- package/packages/analytics-js-common/src/utilities/timestamp.ts +10 -0
- package/packages/analytics-js-common/src/utilities/timezone.ts +11 -0
- package/packages/analytics-js-common/src/utilities/url.ts +3 -0
- package/packages/analytics-js-common/src/utilities/uuId.ts +13 -0
- package/packages/analytics-js-common/src/v1.1/utils/ObjectUtils.js +54 -0
- package/packages/analytics-js-common/src/v1.1/utils/ScriptLoader.js +51 -0
- package/packages/analytics-js-common/src/v1.1/utils/client_server_name.js +82 -0
- package/packages/analytics-js-common/src/v1.1/utils/config_to_integration_names.js +83 -0
- package/packages/analytics-js-common/src/v1.1/utils/constants.js +15 -0
- package/packages/analytics-js-common/src/v1.1/utils/errorHandler.js +88 -0
- package/packages/analytics-js-common/src/v1.1/utils/index.ts +10 -0
- package/packages/analytics-js-common/src/v1.1/utils/integration_cname.js +164 -0
- package/packages/analytics-js-common/src/v1.1/utils/logUtil.js +51 -0
- package/packages/analytics-js-common/src/v1.1/utils/notifyError.js +16 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/cookie.js +98 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/index.js +5 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/storage.js +384 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/store.js +79 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/v3DecryptionUtils.js +19 -0
- package/packages/analytics-js-common/tsconfig.json +14 -0
- package/packages/analytics-js-common/tsconfig.spec.json +23 -0
- package/packages/analytics-js-common/types/rudderanalytics.d.ts +16 -0
- package/packages/analytics-js-integrations/.jscpd.json +17 -0
- package/packages/analytics-js-integrations/.size-limit.js +11 -0
- package/packages/analytics-js-integrations/CHANGELOG.md +241 -0
- package/packages/analytics-js-integrations/CHANGELOG_LATEST.md +12 -0
- package/packages/analytics-js-integrations/LICENSE +21 -0
- package/packages/analytics-js-integrations/README.md +35 -0
- package/packages/analytics-js-integrations/__fixtures__/.gitkeep +0 -0
- package/packages/analytics-js-integrations/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-integrations/__tests__/common/common.test.js +49 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Amplitude/browser.test.js +926 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Amplitude/util.test.js +190 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Appcues/appcues.test.js +163 -0
- package/packages/analytics-js-integrations/__tests__/integrations/BingAds/__fixtures__/data.js +17 -0
- package/packages/analytics-js-integrations/__tests__/integrations/BingAds/browser.test.js +166 -0
- package/packages/analytics-js-integrations/__tests__/integrations/BingAds/utils.test.js +138 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Braze/browser.test.js +1077 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Clevertap/browser.test.js +43 -0
- package/packages/analytics-js-integrations/__tests__/integrations/CommandBar/browser.test.js +115 -0
- package/packages/analytics-js-integrations/__tests__/integrations/FacebookPixel/browser.test.js +410 -0
- package/packages/analytics-js-integrations/__tests__/integrations/FacebookPixel/utils.test.js +775 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Fullstory/browser.test.js +173 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA/browser.test.js +179 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA4/__mocks__/data.js +1563 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA4/browser.test.js +212 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA4/utils.test.js +380 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GoogleAds/__fixtures__/data.js +256 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GoogleAds/browser.test.js +372 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GoogleAds/utils.test.js +121 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Hotjar/browser.test.js +108 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Intercom/browser.test.js +135 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Intercom/util.test.js +69 -0
- package/packages/analytics-js-integrations/__tests__/integrations/LaunchDarkly/__fixtures__/data.js +61 -0
- package/packages/analytics-js-integrations/__tests__/integrations/LaunchDarkly/browser.test.js +151 -0
- package/packages/analytics-js-integrations/__tests__/integrations/LaunchDarkly/utils.test.js +36 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Lemnisk/browser.test.js +172 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Matomo/browser.test.js +208 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Mixpanel/browser.test.js +117 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Mixpanel/util.test.js +504 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Ninetailed/browser.test.js +148 -0
- package/packages/analytics-js-integrations/__tests__/integrations/PinterestTag/__fixtures__/data.js +24 -0
- package/packages/analytics-js-integrations/__tests__/integrations/PinterestTag/utils.test.js +19 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Podsights/utils.test.js +394 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Posthog/browser.test.js +420 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Posthog/utils.test.js +111 -0
- package/packages/analytics-js-integrations/__tests__/integrations/SpotifyPixel/browser.test.js +630 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Sprig/browser.test.js +85 -0
- package/packages/analytics-js-integrations/__tests__/integrations/TikTokAds/browser.test.js +421 -0
- package/packages/analytics-js-integrations/__tests__/integrations/VWO/browser.test.js +143 -0
- package/packages/analytics-js-integrations/__tests__/integrations/VWO/utils.test.js +36 -0
- package/packages/analytics-js-integrations/__tests__/utils/camelcase.test.js +29 -0
- package/packages/analytics-js-integrations/__tests__/utils/commonUtils.test.js +347 -0
- package/packages/analytics-js-integrations/__tests__/utils/utils.test.js +337 -0
- package/packages/analytics-js-integrations/babel.config.json +14 -0
- package/packages/analytics-js-integrations/jest.config.mjs +21 -0
- package/packages/analytics-js-integrations/package.json +143 -0
- package/packages/analytics-js-integrations/project.json +106 -0
- package/packages/analytics-js-integrations/public/list_integration_sdks.html +408 -0
- package/packages/analytics-js-integrations/rollup.config.mjs +151 -0
- package/packages/analytics-js-integrations/scripts/integrationBuildScript.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/ActiveCampaign/browser.js +53 -0
- package/packages/analytics-js-integrations/src/integrations/ActiveCampaign/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/ActiveCampaign/nativeSdkLoader.js +24 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/browser.js +279 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/eCommHandle.js +56 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/heartbeatHandle.js +268 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/util.js +681 -0
- package/packages/analytics-js-integrations/src/integrations/Adroll/browser.js +123 -0
- package/packages/analytics-js-integrations/src/integrations/Adroll/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Adroll/util.js +48 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/browser.js +374 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/nativeSdkLoader.js +114 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/test/test_amplitude.html +157 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/utils.js +67 -0
- package/packages/analytics-js-integrations/src/integrations/Appcues/browser.js +89 -0
- package/packages/analytics-js-integrations/src/integrations/Appcues/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/browser.js +61 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/nativeSdkLoader.js +14 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/utils.js +16 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/nativeSdkLoader.js +30 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/utils.js +100 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/browser.js +297 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/nativeSdkLoader.js +35 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/utils.js +51 -0
- package/packages/analytics-js-integrations/src/integrations/Bugsnag/browser.js +62 -0
- package/packages/analytics-js-integrations/src/integrations/Bugsnag/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Chartbeat/browser.js +143 -0
- package/packages/analytics-js-integrations/src/integrations/Chartbeat/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Chartbeat/nativeSdkLoader.js +7 -0
- package/packages/analytics-js-integrations/src/integrations/Clevertap/browser.js +202 -0
- package/packages/analytics-js-integrations/src/integrations/Clevertap/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Clevertap/utils.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/CommandBar/browser.js +78 -0
- package/packages/analytics-js-integrations/src/integrations/CommandBar/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/CommandBar/nativeSdkLoader.js +85 -0
- package/packages/analytics-js-integrations/src/integrations/Comscore/browser.js +126 -0
- package/packages/analytics-js-integrations/src/integrations/Comscore/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Comscore/nativeSdkLoader.js +10 -0
- package/packages/analytics-js-integrations/src/integrations/ConvertFlow/browser.js +60 -0
- package/packages/analytics-js-integrations/src/integrations/ConvertFlow/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/ConvertFlow/utils.js +107 -0
- package/packages/analytics-js-integrations/src/integrations/Criteo/browser.js +144 -0
- package/packages/analytics-js-integrations/src/integrations/Criteo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Criteo/utils.js +346 -0
- package/packages/analytics-js-integrations/src/integrations/CustomerIO/browser.js +85 -0
- package/packages/analytics-js-integrations/src/integrations/CustomerIO/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/CustomerIO/nativeSdkLoader.js +33 -0
- package/packages/analytics-js-integrations/src/integrations/DCMFloodlight/browser.js +228 -0
- package/packages/analytics-js-integrations/src/integrations/DCMFloodlight/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/DCMFloodlight/utils.js +353 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/browser.js +165 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/nativeSdkLoader.js +10 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/utils.js +29 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/browser.js +119 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/nativeSdkLoader.js +25 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/utils.js +69 -0
- package/packages/analytics-js-integrations/src/integrations/FacebookPixel/browser.js +326 -0
- package/packages/analytics-js-integrations/src/integrations/FacebookPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/FacebookPixel/utils.js +332 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/browser.js +175 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/nativeSdkLoader.js +69 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/utils.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/GA/browser.js +817 -0
- package/packages/analytics-js-integrations/src/integrations/GA/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GA360/browser.js +58 -0
- package/packages/analytics-js-integrations/src/integrations/GA360/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/browser.js +264 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/config.js +296 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/utils.js +374 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/browser.js +219 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/browser.test.js +16 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/nativeSdkLoader.js +28 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/utils.js +135 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleOptimize/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleOptimize/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleTagManager/browser.js +96 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleTagManager/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleTagManager/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/browser.js +64 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/nativeSdkLoader.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/util.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Hotjar/browser.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/Hotjar/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Hotjar/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/HubSpot/browser.js +91 -0
- package/packages/analytics-js-integrations/src/integrations/HubSpot/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/browser.js +112 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/nativeSdkLoader.js +46 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/utils.js +68 -0
- package/packages/analytics-js-integrations/src/integrations/Iterable/browser.js +179 -0
- package/packages/analytics-js-integrations/src/integrations/Iterable/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Iterable/utils.js +127 -0
- package/packages/analytics-js-integrations/src/integrations/June/browser.js +96 -0
- package/packages/analytics-js-integrations/src/integrations/June/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Keen/browser.js +150 -0
- package/packages/analytics-js-integrations/src/integrations/Keen/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Kissmetrics/browser.js +245 -0
- package/packages/analytics-js-integrations/src/integrations/Kissmetrics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Kissmetrics/nativeSdkLoader.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Klaviyo/browser.js +197 -0
- package/packages/analytics-js-integrations/src/integrations/Klaviyo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Klaviyo/util.js +91 -0
- package/packages/analytics-js-integrations/src/integrations/LaunchDarkly/browser.js +75 -0
- package/packages/analytics-js-integrations/src/integrations/LaunchDarkly/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/LaunchDarkly/utils.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/Lemnisk/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/Lemnisk/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Lemnisk/nativeSdkLoader.js +34 -0
- package/packages/analytics-js-integrations/src/integrations/LinkedInInsightTag/browser.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/LinkedInInsightTag/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/nativeSdkLoader.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/util.js +71 -0
- package/packages/analytics-js-integrations/src/integrations/Lotame/LotameStorage.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/Lotame/browser.js +152 -0
- package/packages/analytics-js-integrations/src/integrations/Lotame/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/browser.js +103 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/nativeSdkLoader.js +77 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/test/script-test-lytics.html +250 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/browser.js +184 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/nativeSdkLoader.js +20 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/util.js +433 -0
- package/packages/analytics-js-integrations/src/integrations/MicrosoftClarity/browser.js +69 -0
- package/packages/analytics-js-integrations/src/integrations/MicrosoftClarity/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/MicrosoftClarity/nativeSdkLoader.js +22 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/browser.js +353 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/nativeSdkLoader.js +71 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/util.js +288 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/browser.js +131 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/nativeSdkLoader.js +65 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/test/script-test-moengage.html +216 -0
- package/packages/analytics-js-integrations/src/integrations/Mouseflow/browser.js +97 -0
- package/packages/analytics-js-integrations/src/integrations/Mouseflow/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Mouseflow/utils.js +41 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js +65 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/README.md +70 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/package-lock.json +17843 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/package.json +43 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/favicon.ico +0 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/index.html +75 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/logo192.png +0 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/logo512.png +0 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/manifest.json +25 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/robots.txt +3 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/App.css +38 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/App.js +108 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/index.css +34 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/index.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/logo.svg +1 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/reportWebVitals.js +13 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/setupTests.js +5 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/browser.js +92 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/nativeSdkLoader.js +31 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/utils.js +51 -0
- package/packages/analytics-js-integrations/src/integrations/Optimizely/browser.js +244 -0
- package/packages/analytics-js-integrations/src/integrations/Optimizely/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Optimizely/utils.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Pendo/browser.js +123 -0
- package/packages/analytics-js-integrations/src/integrations/Pendo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Pendo/nativeSdkLoader.js +32 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/browser.js +240 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/nativeSdkLoader.js +19 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/propertyMappingConfig.js +57 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/test/input.js +180 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/test/output.js +129 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/utils.js +50 -0
- package/packages/analytics-js-integrations/src/integrations/Podsights/browser.js +179 -0
- package/packages/analytics-js-integrations/src/integrations/Podsights/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Podsights/utils.js +64 -0
- package/packages/analytics-js-integrations/src/integrations/PostAffiliatePro/browser.js +132 -0
- package/packages/analytics-js-integrations/src/integrations/PostAffiliatePro/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/PostAffiliatePro/utils.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/browser.js +147 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/nativeSdkLoader.js +48 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/test/test_posthog.html +77 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/utils.js +52 -0
- package/packages/analytics-js-integrations/src/integrations/ProfitWell/browser.js +71 -0
- package/packages/analytics-js-integrations/src/integrations/ProfitWell/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/ProfitWell/nativeSdkLoader.js +25 -0
- package/packages/analytics-js-integrations/src/integrations/Qualaroo/browser.js +116 -0
- package/packages/analytics-js-integrations/src/integrations/Qualaroo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Qualaroo/utils.js +83 -0
- package/packages/analytics-js-integrations/src/integrations/Qualtrics/browser.js +92 -0
- package/packages/analytics-js-integrations/src/integrations/Qualtrics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Qualtrics/nativeSdkLoader.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/QuantumMetric/browser.js +54 -0
- package/packages/analytics-js-integrations/src/integrations/QuantumMetric/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/QuoraPixel/browser.js +77 -0
- package/packages/analytics-js-integrations/src/integrations/QuoraPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/QuoraPixel/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js +103 -0
- package/packages/analytics-js-integrations/src/integrations/RedditPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/RedditPixel/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/browser.js +117 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/nativeSdkLoader.js +20 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/utils.js +44 -0
- package/packages/analytics-js-integrations/src/integrations/Rockerbox/browser.js +90 -0
- package/packages/analytics-js-integrations/src/integrations/Rockerbox/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Rockerbox/nativeSdkLoader.js +32 -0
- package/packages/analytics-js-integrations/src/integrations/RollBar/browser.js +93 -0
- package/packages/analytics-js-integrations/src/integrations/RollBar/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/RollBar/nativeSdkLoader.js +383 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/browser.js +92 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/nativeSdkLoader.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/util.js +54 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/browser.js +111 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/nativeSdkLoader.js +36 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/utils.js +129 -0
- package/packages/analytics-js-integrations/src/integrations/Sentry/browser.js +120 -0
- package/packages/analytics-js-integrations/src/integrations/Sentry/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sentry/utils.js +84 -0
- package/packages/analytics-js-integrations/src/integrations/Shynet/browser.js +99 -0
- package/packages/analytics-js-integrations/src/integrations/Shynet/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/browser.js +74 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/nativeSdkLoader.js +24 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/util.js +63 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/browser.js +226 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/nativeSdkLoader.js +20 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/util.js +214 -0
- package/packages/analytics-js-integrations/src/integrations/SpotifyPixel/browser.js +180 -0
- package/packages/analytics-js-integrations/src/integrations/SpotifyPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sprig/browser.js +89 -0
- package/packages/analytics-js-integrations/src/integrations/Sprig/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sprig/nativeSdkLoader.js +19 -0
- package/packages/analytics-js-integrations/src/integrations/TVSquared/browser.js +99 -0
- package/packages/analytics-js-integrations/src/integrations/TVSquared/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/TVSquared/utils.js +41 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/browser.js +111 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/nativeSdkLoader.js +52 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/util.js +70 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/browser.js +155 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/nativeSdkLoader.js +64 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/utils.js +42 -0
- package/packages/analytics-js-integrations/src/integrations/Vero/browser.js +166 -0
- package/packages/analytics-js-integrations/src/integrations/Vero/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Vero/utils.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/Woopra/browser.js +82 -0
- package/packages/analytics-js-integrations/src/integrations/Woopra/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Woopra/nativeSdkLoader.js +43 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/browser.js +139 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/nativeSdkLoader.js +35 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/utils.js +140 -0
- package/packages/analytics-js-integrations/src/integrations/index.js +163 -0
- package/packages/analytics-js-integrations/src/utils/camelcase.js +48 -0
- package/packages/analytics-js-integrations/src/utils/commonUtils.js +214 -0
- package/packages/analytics-js-integrations/src/utils/constants.js +4 -0
- package/packages/analytics-js-integrations/src/utils/logger.js +106 -0
- package/packages/analytics-js-integrations/src/utils/utils.js +585 -0
- package/packages/analytics-js-integrations/tsconfig.json +8 -0
- package/packages/analytics-js-integrations/tsconfig.spec.json +26 -0
- package/packages/analytics-js-plugins/.jscpd.json +17 -0
- package/packages/analytics-js-plugins/.size-limit.js +16 -0
- package/packages/analytics-js-plugins/CHANGELOG.md +212 -0
- package/packages/analytics-js-plugins/CHANGELOG_LATEST.md +7 -0
- package/packages/analytics-js-plugins/LICENSE +21 -0
- package/packages/analytics-js-plugins/README.md +57 -0
- package/packages/analytics-js-plugins/__fixtures__/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__fixtures__/fixtures.ts +174 -0
- package/packages/analytics-js-plugins/__fixtures__/msw.handlers.js +45 -0
- package/packages/analytics-js-plugins/__fixtures__/msw.server.js +6 -0
- package/packages/analytics-js-plugins/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/beaconQueue/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/bugsnag/index.test.ts +116 -0
- package/packages/analytics-js-plugins/__tests__/bugsnag/utils.test.ts +555 -0
- package/packages/analytics-js-plugins/__tests__/customConsentManager/index.test.ts +264 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeDestinations/utils.test.ts +260 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeTransformation/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeTransformation/index.test.ts +287 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeTransformation/utilities.test.ts +22 -0
- package/packages/analytics-js-plugins/__tests__/errorReporting/index.test.ts +102 -0
- package/packages/analytics-js-plugins/__tests__/externalAnonymousId/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/googleLinker/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/ketchConsentManager/index.test.ts +498 -0
- package/packages/analytics-js-plugins/__tests__/ketchConsentManager/utils.test.ts +189 -0
- package/packages/analytics-js-plugins/__tests__/nativeDestinationQueue/utilities.test.ts +98 -0
- package/packages/analytics-js-plugins/__tests__/oneTrustConsentManager/index.test.ts +395 -0
- package/packages/analytics-js-plugins/__tests__/storageEncryption/index.test.ts +37 -0
- package/packages/analytics-js-plugins/__tests__/storageEncryptionLegacy/index.test.ts +41 -0
- package/packages/analytics-js-plugins/__tests__/storageMigrator/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/storageMigrator/index.test.ts +144 -0
- package/packages/analytics-js-plugins/__tests__/utilities/destination.test.ts +133 -0
- package/packages/analytics-js-plugins/__tests__/utilities/queue.test.ts +327 -0
- package/packages/analytics-js-plugins/__tests__/utilities/retryQueue/RetryQueue.test.ts +1077 -0
- package/packages/analytics-js-plugins/__tests__/utilities/retryQueue/Schedule.test.ts +78 -0
- package/packages/analytics-js-plugins/__tests__/xhrQueue/index.test.ts +320 -0
- package/packages/analytics-js-plugins/__tests__/xhrQueue/utilities.test.ts +388 -0
- package/packages/analytics-js-plugins/babel.config.json +14 -0
- package/packages/analytics-js-plugins/jest.config.mjs +14 -0
- package/packages/analytics-js-plugins/package.json +106 -0
- package/packages/analytics-js-plugins/project.json +131 -0
- package/packages/analytics-js-plugins/public/.gitkeep +0 -0
- package/packages/analytics-js-plugins/rollup.config.mjs +245 -0
- package/packages/analytics-js-plugins/src/beaconQueue/constants.ts +27 -0
- package/packages/analytics-js-plugins/src/beaconQueue/index.ts +146 -0
- package/packages/analytics-js-plugins/src/beaconQueue/logMessages.ts +24 -0
- package/packages/analytics-js-plugins/src/beaconQueue/types.ts +12 -0
- package/packages/analytics-js-plugins/src/beaconQueue/utilities.ts +68 -0
- package/packages/analytics-js-plugins/src/bugsnag/constants.ts +52 -0
- package/packages/analytics-js-plugins/src/bugsnag/index.ts +65 -0
- package/packages/analytics-js-plugins/src/bugsnag/logMessages.ts +19 -0
- package/packages/analytics-js-plugins/src/bugsnag/utils.ts +214 -0
- package/packages/analytics-js-plugins/src/customConsentManager/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/customConsentManager/index.ts +86 -0
- package/packages/analytics-js-plugins/src/customConsentManager/logMessages.ts +3 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/constants.ts +6 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/index.ts +138 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/logMessages.ts +24 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/types.ts +28 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/utils.ts +249 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/constants.ts +12 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/index.ts +111 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/logMessages.ts +28 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/types.ts +38 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/utilities.ts +155 -0
- package/packages/analytics-js-plugins/src/errorReporting/index.ts +62 -0
- package/packages/analytics-js-plugins/src/errorReporting/logMessages.ts +3 -0
- package/packages/analytics-js-plugins/src/externalAnonymousId/constants.ts +5 -0
- package/packages/analytics-js-plugins/src/externalAnonymousId/index.ts +47 -0
- package/packages/analytics-js-plugins/src/externalAnonymousId/util.ts +25 -0
- package/packages/analytics-js-plugins/src/googleLinker/base64Decoder.ts +33 -0
- package/packages/analytics-js-plugins/src/googleLinker/constants.ts +1 -0
- package/packages/analytics-js-plugins/src/googleLinker/crc32.ts +44 -0
- package/packages/analytics-js-plugins/src/googleLinker/index.ts +30 -0
- package/packages/analytics-js-plugins/src/googleLinker/userLib.ts +16 -0
- package/packages/analytics-js-plugins/src/googleLinker/utils.ts +156 -0
- package/packages/analytics-js-plugins/src/index.ts +15 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/constants.ts +4 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/index.ts +120 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/logMessages.ts +15 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/types.ts +11 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/utils.ts +95 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/constants.ts +9 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/index.ts +159 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/logMessages.ts +14 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/utilities.ts +81 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/index.ts +131 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/logMessages.ts +8 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/types.ts +4 -0
- package/packages/analytics-js-plugins/src/shared-chunks/common.ts +13 -0
- package/packages/analytics-js-plugins/src/shared-chunks/deviceModeDestinations.ts +3 -0
- package/packages/analytics-js-plugins/src/storageEncryption/constants.ts +1 -0
- package/packages/analytics-js-plugins/src/storageEncryption/encryptionUtils.ts +14 -0
- package/packages/analytics-js-plugins/src/storageEncryption/index.ts +26 -0
- package/packages/analytics-js-plugins/src/storageEncryptionLegacy/constants.ts +2 -0
- package/packages/analytics-js-plugins/src/storageEncryptionLegacy/index.ts +26 -0
- package/packages/analytics-js-plugins/src/storageEncryptionLegacy/legacyEncryptionUtils.ts +18 -0
- package/packages/analytics-js-plugins/src/storageMigrator/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/storageMigrator/index.ts +59 -0
- package/packages/analytics-js-plugins/src/storageMigrator/logMessages.ts +4 -0
- package/packages/analytics-js-plugins/src/types/plugins.ts +69 -0
- package/packages/analytics-js-plugins/src/utilities/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/utilities/destination.ts +40 -0
- package/packages/analytics-js-plugins/src/utilities/eventsDelivery.ts +85 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/README.md +135 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts +736 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/Schedule.ts +101 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/constants.ts +32 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/logMessages.ts +9 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/types.ts +21 -0
- package/packages/analytics-js-plugins/src/xhrQueue/constants.ts +23 -0
- package/packages/analytics-js-plugins/src/xhrQueue/index.ts +158 -0
- package/packages/analytics-js-plugins/src/xhrQueue/logMessages.ts +6 -0
- package/packages/analytics-js-plugins/src/xhrQueue/types.ts +16 -0
- package/packages/analytics-js-plugins/src/xhrQueue/utilities.ts +103 -0
- package/packages/analytics-js-plugins/tsconfig.json +14 -0
- package/packages/analytics-js-plugins/tsconfig.spec.json +24 -0
- package/packages/analytics-js-service-worker/.env.example +8 -0
- package/packages/analytics-js-service-worker/.jscpd.json +17 -0
- package/packages/analytics-js-service-worker/.size-limit.js +11 -0
- package/packages/analytics-js-service-worker/CHANGELOG.md +91 -0
- package/packages/analytics-js-service-worker/CHANGELOG_LATEST.md +7 -0
- package/packages/analytics-js-service-worker/LICENSE +21 -0
- package/packages/analytics-js-service-worker/README.md +74 -0
- package/packages/analytics-js-service-worker/__fixtures__/fixtures.ts +79 -0
- package/packages/analytics-js-service-worker/__fixtures__/msw.server.ts +13 -0
- package/packages/analytics-js-service-worker/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-service-worker/__tests__/Analytics.test.ts +120 -0
- package/packages/analytics-js-service-worker/__tests__/loosely-validate-event/index.test.ts +140 -0
- package/packages/analytics-js-service-worker/babel.config.json +15 -0
- package/packages/analytics-js-service-worker/jest.config.mjs +14 -0
- package/packages/analytics-js-service-worker/package.json +103 -0
- package/packages/analytics-js-service-worker/project.json +104 -0
- package/packages/analytics-js-service-worker/public/.gitkeep +0 -0
- package/packages/analytics-js-service-worker/rollup.config.mjs +140 -0
- package/packages/analytics-js-service-worker/src/Analytics.ts +564 -0
- package/packages/analytics-js-service-worker/src/IAnalytics.ts +141 -0
- package/packages/analytics-js-service-worker/src/index.ts +9 -0
- package/packages/analytics-js-service-worker/src/loosely-validate-event/index.ts +136 -0
- package/packages/analytics-js-service-worker/src/types.ts +67 -0
- package/packages/analytics-js-service-worker/tsconfig.json +8 -0
- package/packages/analytics-js-service-worker/tsconfig.spec.json +22 -0
- package/packages/analytics-v1.1/.env.example +8 -0
- package/packages/analytics-v1.1/.jscpd.json +17 -0
- package/packages/analytics-v1.1/.size-limit.js +16 -0
- package/packages/analytics-v1.1/.versionrc +12 -0
- package/packages/analytics-v1.1/CHANGELOG.md +3859 -0
- package/packages/analytics-v1.1/CHANGELOG_LATEST.md +5 -0
- package/packages/analytics-v1.1/LICENSE +21 -0
- package/packages/analytics-v1.1/README.md +321 -0
- package/packages/analytics-v1.1/__fixtures__/fixtures.js +130 -0
- package/packages/analytics-v1.1/__fixtures__/msw.handlers.js +51 -0
- package/packages/analytics-v1.1/__fixtures__/msw.server.js +6 -0
- package/packages/analytics-v1.1/__mocks__/.gitkeep +0 -0
- package/packages/analytics-v1.1/__tests__/data-residency.test.js +236 -0
- package/packages/analytics-v1.1/__tests__/features/core/metrics/errorReporting/ErrorReportingService.test.js +80 -0
- package/packages/analytics-v1.1/__tests__/ketchConsent.test.js +49 -0
- package/packages/analytics-v1.1/__tests__/oneTrustCookieConsent.test.js +89 -0
- package/packages/analytics-v1.1/__tests__/script.test.js +167 -0
- package/packages/analytics-v1.1/__tests__/transformationHandler.test.js +179 -0
- package/packages/analytics-v1.1/__tests__/utils/IntegrationsData.test.js +105 -0
- package/packages/analytics-v1.1/__tests__/utils/cdnPaths.test.js +63 -0
- package/packages/analytics-v1.1/__tests__/utils/clientHint.test.js +87 -0
- package/packages/analytics-v1.1/__tests__/utils/eventProcessorUtils.test.js +264 -0
- package/packages/analytics-v1.1/__tests__/utils/navigator.test.js +38 -0
- package/packages/analytics-v1.1/__tests__/utils/preProcessQueue.test.js +78 -0
- package/packages/analytics-v1.1/__tests__/utils/screenDetails.test.js +19 -0
- package/packages/analytics-v1.1/__tests__/utils/utils.test.js +69 -0
- package/packages/analytics-v1.1/babel.config.json +14 -0
- package/packages/analytics-v1.1/jest.config.mjs +14 -0
- package/packages/analytics-v1.1/package.json +115 -0
- package/packages/analytics-v1.1/project.json +119 -0
- package/packages/analytics-v1.1/public/index.html +137 -0
- package/packages/analytics-v1.1/rollup-configs/rollup.sdk.browser.mjs +32 -0
- package/packages/analytics-v1.1/rollup-configs/rollup.sdk.npm.mjs +53 -0
- package/packages/analytics-v1.1/rollup-configs/rollup.utilities.mjs +160 -0
- package/packages/analytics-v1.1/src/core/analytics.js +1669 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/CookieConsentFactory.js +32 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/OneTrust/browser.js +102 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/OneTrust/index.js +1 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/ketch/browser.js +114 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/ketch/index.js +1 -0
- package/packages/analytics-v1.1/src/features/core/deviceModeTransformation/transformationHandler.js +196 -0
- package/packages/analytics-v1.1/src/features/core/deviceModeTransformation/util.js +23 -0
- package/packages/analytics-v1.1/src/features/core/metrics/errorReporting/ErrorReportingService.js +116 -0
- package/packages/analytics-v1.1/src/features/core/metrics/errorReporting/providers/Bugsnag.js +247 -0
- package/packages/analytics-v1.1/src/features/core/session/index.js +207 -0
- package/packages/analytics-v1.1/src/utils/EventRepository.js +79 -0
- package/packages/analytics-v1.1/src/utils/IntegrationsData.js +56 -0
- package/packages/analytics-v1.1/src/utils/JSFileLoader.js +66 -0
- package/packages/analytics-v1.1/src/utils/PreProcessQueue.js +66 -0
- package/packages/analytics-v1.1/src/utils/RudderApp.js +9 -0
- package/packages/analytics-v1.1/src/utils/RudderContext.js +23 -0
- package/packages/analytics-v1.1/src/utils/RudderElement.js +33 -0
- package/packages/analytics-v1.1/src/utils/RudderElementBuilder.js +29 -0
- package/packages/analytics-v1.1/src/utils/RudderInfo.js +41 -0
- package/packages/analytics-v1.1/src/utils/RudderMessage.js +28 -0
- package/packages/analytics-v1.1/src/utils/beaconQueue.js +140 -0
- package/packages/analytics-v1.1/src/utils/cdnPaths.js +43 -0
- package/packages/analytics-v1.1/src/utils/clientHint.js +28 -0
- package/packages/analytics-v1.1/src/utils/constants.js +70 -0
- package/packages/analytics-v1.1/src/utils/eventProcessorUtils.js +53 -0
- package/packages/analytics-v1.1/src/utils/linker/base64decoder.js +29 -0
- package/packages/analytics-v1.1/src/utils/linker/crc32.js +42 -0
- package/packages/analytics-v1.1/src/utils/linker/index.js +134 -0
- package/packages/analytics-v1.1/src/utils/linker/userLib.js +20 -0
- package/packages/analytics-v1.1/src/utils/navigator.js +32 -0
- package/packages/analytics-v1.1/src/utils/pageProperties.js +74 -0
- package/packages/analytics-v1.1/src/utils/screenDetails.js +23 -0
- package/packages/analytics-v1.1/src/utils/utils.js +423 -0
- package/packages/analytics-v1.1/src/utils/xhrModule.js +117 -0
- package/packages/analytics-v1.1/tsconfig.json +8 -0
- package/packages/analytics-v1.1/tsconfig.spec.json +26 -0
- package/packages/analytics-v1.1/types/index.d.ts +472 -0
- package/packages/analytics-v1.1/types/service-worker/index.d.ts +220 -0
- package/packages/loading-scripts/.env.example +11 -0
- package/packages/loading-scripts/.jscpd.json +17 -0
- package/packages/loading-scripts/CHANGELOG.md +130 -0
- package/packages/loading-scripts/CHANGELOG_LATEST.md +2 -0
- package/packages/loading-scripts/LICENSE +21 -0
- package/packages/loading-scripts/README.md +26 -0
- package/packages/loading-scripts/__fixtures__/.gitkeep +0 -0
- package/packages/loading-scripts/__mocks__/.gitkeep +0 -0
- package/packages/loading-scripts/__tests__/.gitkeep +0 -0
- package/packages/loading-scripts/babel.config.json +14 -0
- package/packages/loading-scripts/jest.config.mjs +14 -0
- package/packages/loading-scripts/package.json +62 -0
- package/packages/loading-scripts/project.json +101 -0
- package/packages/loading-scripts/public/index.html +180 -0
- package/packages/loading-scripts/rollup.config.mjs +112 -0
- package/packages/loading-scripts/src/index.ts +106 -0
- package/packages/loading-scripts/src/types/rudderanalytics.d.ts +16 -0
- package/packages/loading-scripts/tsconfig.json +15 -0
- package/packages/loading-scripts/tsconfig.spec.json +22 -0
- package/packages/sanity-suite/.env.example +39 -0
- package/packages/sanity-suite/.jscpd.json +17 -0
- package/packages/sanity-suite/CHANGELOG.md +154 -0
- package/packages/sanity-suite/LICENSE +21 -0
- package/packages/sanity-suite/README.md +37 -0
- package/packages/sanity-suite/__fixtures__/alias1.json +141 -0
- package/packages/sanity-suite/__fixtures__/alias2.json +101 -0
- package/packages/sanity-suite/__fixtures__/alias3.json +101 -0
- package/packages/sanity-suite/__fixtures__/alias4.json +101 -0
- package/packages/sanity-suite/__fixtures__/alias5.json +107 -0
- package/packages/sanity-suite/__fixtures__/alias6.json +141 -0
- package/packages/sanity-suite/__fixtures__/eventFiltering1.json +69 -0
- package/packages/sanity-suite/__fixtures__/eventFiltering2.json +69 -0
- package/packages/sanity-suite/__fixtures__/eventFiltering3.json +69 -0
- package/packages/sanity-suite/__fixtures__/group1.json +124 -0
- package/packages/sanity-suite/__fixtures__/group2.json +90 -0
- package/packages/sanity-suite/__fixtures__/group3.json +90 -0
- package/packages/sanity-suite/__fixtures__/group4.json +105 -0
- package/packages/sanity-suite/__fixtures__/group5.json +71 -0
- package/packages/sanity-suite/__fixtures__/group6.json +70 -0
- package/packages/sanity-suite/__fixtures__/identify1.json +140 -0
- package/packages/sanity-suite/__fixtures__/identify2.json +106 -0
- package/packages/sanity-suite/__fixtures__/identify3.json +103 -0
- package/packages/sanity-suite/__fixtures__/identify4.json +69 -0
- package/packages/sanity-suite/__fixtures__/identify5.json +106 -0
- package/packages/sanity-suite/__fixtures__/identify6.json +107 -0
- package/packages/sanity-suite/__fixtures__/identify7.json +106 -0
- package/packages/sanity-suite/__fixtures__/identify8.json +107 -0
- package/packages/sanity-suite/__fixtures__/page1.json +123 -0
- package/packages/sanity-suite/__fixtures__/page2.json +90 -0
- package/packages/sanity-suite/__fixtures__/page3.json +90 -0
- package/packages/sanity-suite/__fixtures__/page4.json +116 -0
- package/packages/sanity-suite/__fixtures__/page5.json +83 -0
- package/packages/sanity-suite/__fixtures__/page6.json +81 -0
- package/packages/sanity-suite/__fixtures__/page7.json +81 -0
- package/packages/sanity-suite/__fixtures__/page8.json +79 -0
- package/packages/sanity-suite/__fixtures__/sourceConfig1.json +1536 -0
- package/packages/sanity-suite/__fixtures__/sourceConfigDMT1.json +665 -0
- package/packages/sanity-suite/__fixtures__/sourceConfigDev1.json +892 -0
- package/packages/sanity-suite/__fixtures__/track1.json +154 -0
- package/packages/sanity-suite/__fixtures__/track2.json +122 -0
- package/packages/sanity-suite/__fixtures__/track3.json +122 -0
- package/packages/sanity-suite/__fixtures__/track4.json +138 -0
- package/packages/sanity-suite/__fixtures__/track5.json +106 -0
- package/packages/sanity-suite/__fixtures__/track6.json +85 -0
- package/packages/sanity-suite/__fixtures__/track7.json +85 -0
- package/packages/sanity-suite/babel.config.json +14 -0
- package/packages/sanity-suite/jest.config.mjs +14 -0
- package/packages/sanity-suite/package.json +83 -0
- package/packages/sanity-suite/project.json +55 -0
- package/packages/sanity-suite/public/v1.1/index-cdn.html +135 -0
- package/packages/sanity-suite/public/v1.1/index-local.html +141 -0
- package/packages/sanity-suite/public/v1.1/index-npm.html +107 -0
- package/packages/sanity-suite/public/v1.1/integrations/index-cdn.html +172 -0
- package/packages/sanity-suite/public/v1.1/integrations/index-local.html +171 -0
- package/packages/sanity-suite/public/v1.1/integrations/index-npm.html +140 -0
- package/packages/sanity-suite/public/v1.1/manualLoadCall/index-cdn.html +172 -0
- package/packages/sanity-suite/public/v1.1/manualLoadCall/index-local.html +171 -0
- package/packages/sanity-suite/public/v1.1/manualLoadCall/index-npm.html +140 -0
- package/packages/sanity-suite/public/v3/index-cdn.html +165 -0
- package/packages/sanity-suite/public/v3/index-local.html +169 -0
- package/packages/sanity-suite/public/v3/index-npm.html +99 -0
- package/packages/sanity-suite/public/v3/integrations/index-cdn.html +196 -0
- package/packages/sanity-suite/public/v3/integrations/index-local.html +198 -0
- package/packages/sanity-suite/public/v3/integrations/index-npm.html +138 -0
- package/packages/sanity-suite/public/v3/manualLoadCall/index-cdn.html +196 -0
- package/packages/sanity-suite/public/v3/manualLoadCall/index-local.html +198 -0
- package/packages/sanity-suite/public/v3/manualLoadCall/index-npm.html +138 -0
- package/packages/sanity-suite/rollup.config.mjs +247 -0
- package/packages/sanity-suite/serve.json +4 -0
- package/packages/sanity-suite/src/ignoredProperties/ignoredProperties.js +183 -0
- package/packages/sanity-suite/src/ignoredProperties/sourceConfigIgnoredProperties.js +144 -0
- package/packages/sanity-suite/src/index-npm-v1.1.ts +53 -0
- package/packages/sanity-suite/src/index-npm.ts +57 -0
- package/packages/sanity-suite/src/index.ts +6 -0
- package/packages/sanity-suite/src/testBook/ResultAssertions.js +77 -0
- package/packages/sanity-suite/src/testBook/TestBook.js +360 -0
- package/packages/sanity-suite/src/testBook/index.js +13 -0
- package/packages/sanity-suite/src/testBookSuites/alias.js +289 -0
- package/packages/sanity-suite/src/testBookSuites/eventFiltering.js +77 -0
- package/packages/sanity-suite/src/testBookSuites/group.js +241 -0
- package/packages/sanity-suite/src/testBookSuites/identify.js +455 -0
- package/packages/sanity-suite/src/testBookSuites/index.js +40 -0
- package/packages/sanity-suite/src/testBookSuites/page.js +259 -0
- package/packages/sanity-suite/src/testBookSuites/sourceConfig.js +89 -0
- package/packages/sanity-suite/src/testBookSuites/sourceConfigDev.js +20 -0
- package/packages/sanity-suite/src/testBookSuites/track.js +448 -0
- package/packages/sanity-suite/src/types/global.d.ts +2 -0
- package/packages/sanity-suite/src/types/rudderanalytics.d.ts +16 -0
- package/packages/sanity-suite/tsconfig.json +14 -0
- package/packages/sanity-suite/tsconfig.spec.json +22 -0
- package/patches/@originjs+vite-plugin-federation+1.3.5.patch +170 -0
- package/patches/@segment+localstorage-retry+1.3.0.patch +123 -0
- package/patches/@segment+top-domain+3.0.1.patch +34 -0
- package/patches/@vespaiach+axios-fetch-adapter+0.3.1.patch +43 -0
- package/patches/crypto-es+2.1.0.patch +103 -0
- package/patches/nx+18.0.5.patch +83 -0
- package/patches/rollup-plugin-generate-html-template+1.7.0.patch +46 -0
- package/scripts/commitizen.js +26 -0
- package/scripts/fix-reports-path-in-github-runner.sh +16 -0
- package/scripts/generate-last-release-changelog.sh +32 -0
- package/scripts/sync-tags-in-nx-projects.sh +24 -0
- package/sonar-project.properties +37 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.json +49 -0
- package/tsconfig.paths.json +27 -0
- package/types/clipboardJs.d.ts +1 -0
- package/types/component-querystring.d.ts +1 -0
- package/types/component-type.d.ts +1 -0
- package/types/global.d.ts +18 -0
- package/types/join-component.d.ts +1 -0
- package/types/localstorage-retry.d.ts +1 -0
- package/types/loosely-validate-event.d.ts +1 -0
- package/types/user-agent-data-types.d.ts +3 -0
@@ -0,0 +1,116 @@
|
|
1
|
+
window.s = s_gi(window.s_account);
|
2
|
+
|
3
|
+
/* Plugin Config */
|
4
|
+
|
5
|
+
function s_doPlugins(s) {
|
6
|
+
/* Add calls to plugins here */
|
7
|
+
if (s.Util.getQueryParam('marid') != "") {
|
8
|
+
s.campaign = 'MARID' + s.Util.getQueryParam('marid');
|
9
|
+
}
|
10
|
+
else {
|
11
|
+
s.campaign = s.Util.getQueryParam('cid');
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
// Will execute before s.t() and s.tl()
|
16
|
+
s.doPlugins = s_doPlugins;
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @license
|
20
|
+
* Adobe Visitor API for JavaScript version: 4.4.0
|
21
|
+
* Copyright 2019 Adobe, Inc. All Rights Reserved
|
22
|
+
* More info available at https://marketing.adobe.com/resources/help/en_US/mcvid/
|
23
|
+
*/
|
24
|
+
var e=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(){return{callbacks:{},add:function(e,t){this.callbacks[e]=this.callbacks[e]||[];var n=this.callbacks[e].push(t)-1,i=this;return function(){i.callbacks[e].splice(n,1)}},execute:function(e,t){if(this.callbacks[e]){t=void 0===t?[]:t,t=t instanceof Array?t:[t];try{for(;this.callbacks[e].length;){var n=this.callbacks[e].shift();"function"==typeof n?n.apply(null,t):n instanceof Array&&n[1].apply(n[0],t)}delete this.callbacks[e]}catch(e){}}},executeAll:function(e,t){(t||e&&!j.isObjectEmpty(e))&&Object.keys(this.callbacks).forEach(function(t){var n=void 0!==e[t]?e[t]:"";this.execute(t,n)},this)},hasCallbacks:function(){return Boolean(Object.keys(this.callbacks).length)}}}function i(e,t,n){var i=null==e?void 0:e[t];return void 0===i?n:i}function r(e){for(var t=/^\d+$/,n=0,i=e.length;n<i;n++)if(!t.test(e[n]))return!1;return!0}function a(e,t){for(;e.length<t.length;)e.push("0");for(;t.length<e.length;)t.push("0")}function o(e,t){for(var n=0;n<e.length;n++){var i=parseInt(e[n],10),r=parseInt(t[n],10);if(i>r)return 1;if(r>i)return-1}return 0}function s(e,t){if(e===t)return 0;var n=e.toString().split("."),i=t.toString().split(".");return r(n.concat(i))?(a(n,i),o(n,i)):NaN}function l(e){return e===Object(e)&&0===Object.keys(e).length}function c(e){return"function"==typeof e||e instanceof Array&&e.length}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};this.log=_e("log",e,t),this.warn=_e("warn",e,t),this.error=_e("error",e,t)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isEnabled,n=e.cookieName,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.cookies;return t&&n&&r?{remove:function(){r.remove(n)},get:function(){var e=r.get(n),t={};try{t=JSON.parse(e)}catch(e){t={}}return t},set:function(e,t){t=t||{},r.set(n,JSON.stringify(e),{domain:t.optInCookieDomain||"",cookieLifetime:t.optInStorageExpiry||3419e4,expires:!0})}}:{get:Le,set:Le,remove:Le}}function f(e){this.name=this.constructor.name,this.message=e,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}function p(){function e(e,t){var n=Se(e);return n.length?n.every(function(e){return!!t[e]}):De(t)}function t(){M(b),O(ce.COMPLETE),_(h.status,h.permissions),m.set(h.permissions,{optInCookieDomain:l,optInStorageExpiry:c}),C.execute(xe)}function n(e){return function(n,i){if(!Ae(n))throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");return O(ce.CHANGED),Object.assign(b,ye(Se(n),e)),i||t(),h}}var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.doesOptInApply,a=i.previousPermissions,o=i.preOptInApprovals,s=i.isOptInStorageEnabled,l=i.optInCookieDomain,c=i.optInStorageExpiry,u=i.isIabContext,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=f.cookies,g=Pe(a);Re(g,"Invalid `previousPermissions`!"),Re(o,"Invalid `preOptInApprovals`!");var m=d({isEnabled:!!s,cookieName:"adobeujs-optin"},{cookies:p}),h=this,_=le(h),C=ge(),I=Me(g),v=Me(o),S=m.get(),D={},A=function(e,t){return ke(e)||t&&ke(t)?ce.COMPLETE:ce.PENDING}(I,S),y=function(e,t,n){var i=ye(pe,!r);return r?Object.assign({},i,e,t,n):i}(v,I,S),b=be(y),O=function(e){return A=e},M=function(e){return y=e};h.deny=n(!1),h.approve=n(!0),h.denyAll=h.deny.bind(h,pe),h.approveAll=h.approve.bind(h,pe),h.isApproved=function(t){return e(t,h.permissions)},h.isPreApproved=function(t){return e(t,v)},h.fetchPermissions=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?h.on(ce.COMPLETE,e):Le;return!r||r&&h.isComplete||!!o?e(h.permissions):t||C.add(xe,function(){return e(h.permissions)}),n},h.complete=function(){h.status===ce.CHANGED&&t()},h.registerPlugin=function(e){if(!e||!e.name||"function"!=typeof e.onRegister)throw new Error(je);D[e.name]||(D[e.name]=e,e.onRegister.call(e,h))},h.execute=Ne(D),Object.defineProperties(h,{permissions:{get:function(){return y}},status:{get:function(){return A}},Categories:{get:function(){return ue}},doesOptInApply:{get:function(){return!!r}},isPending:{get:function(){return h.status===ce.PENDING}},isComplete:{get:function(){return h.status===ce.COMPLETE}},__plugins:{get:function(){return Object.keys(D)}},isIabContext:{get:function(){return u}}})}function g(e,t){function n(){r=null,e.call(e,new f("The call took longer than you wanted!"))}function i(){r&&(clearTimeout(r),e.apply(e,arguments))}if(void 0===t)return e;var r=setTimeout(n,t);return i}function m(){if(window.__cmp)return window.__cmp;var e=window;if(e===window.top)return void Ie.error("__cmp not found");for(var t;!t;){e=e.parent;try{e.frames.__cmpLocator&&(t=e)}catch(e){}if(e===window.top)break}if(!t)return void Ie.error("__cmp not found");var n={};return window.__cmp=function(e,i,r){var a=Math.random()+"",o={__cmpCall:{command:e,parameter:i,callId:a}};n[a]=r,t.postMessage(o,"*")},window.addEventListener("message",function(e){var t=e.data;if("string"==typeof t)try{t=JSON.parse(e.data)}catch(e){}if(t.__cmpReturn){var i=t.__cmpReturn;n[i.callId]&&(n[i.callId](i.returnValue,i.success),delete n[i.callId])}},!1),window.__cmp}function h(){var e=this;e.name="iabPlugin",e.version="0.0.1";var t=ge(),n={allConsentData:null},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n[e]=t};e.fetchConsentData=function(e){var t=e.callback,n=e.timeout,i=g(t,n);r({callback:i})},e.isApproved=function(e){var t=e.callback,i=e.category,a=e.timeout;if(n.allConsentData)return t(null,s(i,n.allConsentData.vendorConsents,n.allConsentData.purposeConsents));var o=g(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.vendorConsents,a=n.purposeConsents;t(e,s(i,r,a))},a);r({category:i,callback:o})},e.onRegister=function(t){var n=Object.keys(de),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.purposeConsents,a=i.gdprApplies,o=i.vendorConsents;!e&&a&&o&&r&&(n.forEach(function(e){var n=s(e,o,r);t[n?"approve":"deny"](e,!0)}),t.complete())};e.fetchConsentData({callback:i})};var r=function(e){var r=e.callback;if(n.allConsentData)return r(null,n.allConsentData);t.add("FETCH_CONSENT_DATA",r);var s={};o(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.purposeConsents,o=e.gdprApplies,l=e.vendorConsents;(arguments.length>1?arguments[1]:void 0)&&(s={purposeConsents:r,gdprApplies:o,vendorConsents:l},i("allConsentData",s)),a(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(arguments.length>1?arguments[1]:void 0)&&(s.consentString=e.consentData,i("allConsentData",s)),t.execute("FETCH_CONSENT_DATA",[null,n.allConsentData])})})},a=function(e){var t=m();t&&t("getConsentData",null,e)},o=function(e){var t=Fe(de),n=m();n&&n("getVendorConsents",t,e)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!!t[de[e]];return i&&function(){return fe[e].every(function(e){return n[e]})}()}}var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};Object.assign=Object.assign||function(e){for(var t,n,i=1;i<arguments.length;++i){n=arguments[i];for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e};var C,I,v={HANDSHAKE:"HANDSHAKE",GETSTATE:"GETSTATE",PARENTSTATE:"PARENTSTATE"},S={MCMID:"MCMID",MCAID:"MCAID",MCAAMB:"MCAAMB",MCAAMLH:"MCAAMLH",MCOPTOUT:"MCOPTOUT",CUSTOMERIDS:"CUSTOMERIDS"},D={MCMID:"getMarketingCloudVisitorID",MCAID:"getAnalyticsVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",ALLFIELDS:"getVisitorValues"},A={CUSTOMERIDS:"getCustomerIDs"},y={MCMID:"getMarketingCloudVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"isOptedOut",MCAID:"getAnalyticsVisitorID",CUSTOMERIDS:"getCustomerIDs",ALLFIELDS:"getVisitorValues"},b={MC:"MCMID",A:"MCAID",AAM:"MCAAMB"},O={MCMID:"MCMID",MCOPTOUT:"MCOPTOUT",MCAID:"MCAID",MCAAMLH:"MCAAMLH",MCAAMB:"MCAAMB"},M={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},k={GLOBAL:"global"},E={MESSAGES:v,STATE_KEYS_MAP:S,ASYNC_API_MAP:D,SYNC_API_MAP:A,ALL_APIS:y,FIELDGROUP_TO_FIELD:b,FIELDS:O,AUTH_STATE:M,OPT_OUT:k},T=E.STATE_KEYS_MAP,L=function(e){function t(){}function n(t,n){var i=this;return function(){var r=e(0,t),a={};return a[t]=r,i.setStateAndPublish(a),n(r),r}}this.getMarketingCloudVisitorID=function(e){e=e||t;var i=this.findField(T.MCMID,e),r=n.call(this,T.MCMID,e);return void 0!==i?i:r()},this.getVisitorValues=function(e){this.getMarketingCloudVisitorID(function(t){e({MCMID:t})})}},P=E.MESSAGES,R=E.ASYNC_API_MAP,w=E.SYNC_API_MAP,F=function(){function e(){}function t(e,t){var n=this;return function(){return n.callbackRegistry.add(e,t),n.messageParent(P.GETSTATE),""}}function n(n){this[R[n]]=function(i){i=i||e;var r=this.findField(n,i),a=t.call(this,n,i);return void 0!==r?r:a()}}function i(t){this[w[t]]=function(){return this.findField(t,e)||{}}}Object.keys(R).forEach(n,this),Object.keys(w).forEach(i,this)},N=E.ASYNC_API_MAP,x=function(){Object.keys(N).forEach(function(e){this[N[e]]=function(t){this.callbackRegistry.add(e,t)}},this)},j=function(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(t,n){n.isObjectEmpty=function(e){return e===Object(e)&&0===Object.keys(e).length},n.isValueEmpty=function(e){return""===e||n.isObjectEmpty(e)},n.getIeVersion=function(){if(document.documentMode)return document.documentMode;for(var e=7;e>4;e--){var t=document.createElement("div");if(t.innerHTML="\x3c!--[if IE "+e+"]><span></span><![endif]--\x3e",t.getElementsByTagName("span").length)return t=null,e;t=null}return null},n.encodeAndBuildRequest=function(e,t){return e.map(encodeURIComponent).join(t)},n.isObject=function(t){return null!==t&&"object"===e(t)&&!1===Array.isArray(t)},n.defineGlobalNamespace=function(){return window.adobe=n.isObject(window.adobe)?window.adobe:{},window.adobe},n.pluck=function(e,t){return t.reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},Object.create(null))},n.parseOptOut=function(e,t,n){t||(t=n,e.d_optout&&e.d_optout instanceof Array&&(t=e.d_optout.join(",")));var i=parseInt(e.d_ottl,10);return isNaN(i)&&(i=7200),{optOut:t,d_ottl:i}},n.normalizeBoolean=function(e){var t=e;return"true"===e?t=!0:"false"===e&&(t=!1),t}}),V=(j.isObjectEmpty,j.isValueEmpty,j.getIeVersion,j.encodeAndBuildRequest,j.isObject,j.defineGlobalNamespace,j.pluck,j.parseOptOut,j.normalizeBoolean,n),H=E.MESSAGES,U={0:"prefix",1:"orgID",2:"state"},B=function(e,t){this.parse=function(e){try{var t={};return e.data.split("|").forEach(function(e,n){if(void 0!==e){t[U[n]]=2!==n?e:JSON.parse(e)}}),t}catch(e){}},this.isInvalid=function(n){var i=this.parse(n);if(!i||Object.keys(i).length<2)return!0;var r=e!==i.orgID,a=!t||n.origin!==t,o=-1===Object.keys(H).indexOf(i.prefix);return r||a||o},this.send=function(n,i,r){var a=i+"|"+e;r&&r===Object(r)&&(a+="|"+JSON.stringify(r));try{n.postMessage(a,t)}catch(e){}}},G=E.MESSAGES,Y=function(e,t,n,i){function r(e){Object.assign(p,e)}function a(e){Object.assign(p.state,e),Object.assign(p.state.ALLFIELDS,e),p.callbackRegistry.executeAll(p.state)}function o(e){if(!h.isInvalid(e)){m=!1;var t=h.parse(e);p.setStateAndPublish(t.state)}}function s(e){!m&&g&&(m=!0,h.send(i,e))}function l(){r(new L(n._generateID)),p.getMarketingCloudVisitorID(),p.callbackRegistry.executeAll(p.state,!0),_.removeEventListener("message",c)}function c(e){if(!h.isInvalid(e)){var t=h.parse(e);m=!1,_.clearTimeout(p._handshakeTimeout),_.removeEventListener("message",c),r(new F(p)),_.addEventListener("message",o),p.setStateAndPublish(t.state),p.callbackRegistry.hasCallbacks()&&s(G.GETSTATE)}}function u(){g&&postMessage?(_.addEventListener("message",c),s(G.HANDSHAKE),p._handshakeTimeout=setTimeout(l,250)):l()}function d(){_.s_c_in||(_.s_c_il=[],_.s_c_in=0),p._c="Visitor",p._il=_.s_c_il,p._in=_.s_c_in,p._il[p._in]=p,_.s_c_in++}function f(){function e(e){0!==e.indexOf("_")&&"function"==typeof n[e]&&(p[e]=function(){})}Object.keys(n).forEach(e),p.getSupplementalDataID=n.getSupplementalDataID,p.isAllowed=function(){return!0}}var p=this,g=t.whitelistParentDomain;p.state={ALLFIELDS:{}},p.version=n.version,p.marketingCloudOrgID=e,p.cookieDomain=n.cookieDomain||"",p._instanceType="child";var m=!1,h=new B(e,g);p.callbackRegistry=V(),p.init=function(){d(),f(),r(new x(p)),u()},p.findField=function(e,t){if(void 0!==p.state[e])return t(p.state[e]),p.state[e]},p.messageParent=s,p.setStateAndPublish=a},q=E.MESSAGES,X=E.ALL_APIS,W=E.ASYNC_API_MAP,J=E.FIELDGROUP_TO_FIELD,K=function(e,t){function n(){var t={};return Object.keys(X).forEach(function(n){var i=X[n],r=e[i]();j.isValueEmpty(r)||(t[n]=r)}),t}function i(){var t=[];return e._loading&&Object.keys(e._loading).forEach(function(n){if(e._loading[n]){var i=J[n];t.push(i)}}),t.length?t:null}function r(t){return function n(r){var a=i();if(a){var o=W[a[0]];e[o](n,!0)}else t()}}function a(e,i){var r=n();t.send(e,i,r)}function o(e){l(e),a(e,q.HANDSHAKE)}function s(e){r(function(){a(e,q.PARENTSTATE)})()}function l(n){function i(i){r.call(e,i),t.send(n,q.PARENTSTATE,{CUSTOMERIDS:e.getCustomerIDs()})}var r=e.setCustomerIDs;e.setCustomerIDs=i}return function(e){if(!t.isInvalid(e)){(t.parse(e).prefix===q.HANDSHAKE?o:s)(e.source)}}},z=function(e,t){function n(e){return function(n){i[e]=n,r++,r===a&&t(i)}}var i={},r=0,a=Object.keys(e).length;Object.keys(e).forEach(function(t){var i=e[t];if(i.fn){var r=i.args||[];r.unshift(n(t)),i.fn.apply(i.context||null,r)}})},Q={get:function(e){e=encodeURIComponent(e);var t=(";"+document.cookie).split(" ").join(";"),n=t.indexOf(";"+e+"="),i=n<0?n:t.indexOf(";",n+1);return n<0?"":decodeURIComponent(t.substring(n+2+e.length,i<0?t.length:i))},set:function(e,t,n){var r=i(n,"cookieLifetime"),a=i(n,"expires"),o=i(n,"domain"),s=i(n,"secure"),l=s?"Secure":"";if(a&&"SESSION"!==r&&"NONE"!==r){var c=""!==t?parseInt(r||0,10):-60;if(c)a=new Date,a.setTime(a.getTime()+1e3*c);else if(1===a){a=new Date;var u=a.getYear();a.setYear(u+2+(u<1900?1900:0))}}else a=0;return e&&"NONE"!==r?(document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+"; path=/;"+(a?" expires="+a.toGMTString()+";":"")+(o?" domain="+o+";":"")+l,this.get(e)===t):0},remove:function(e,t){var n=i(t,"domain");n=n?" domain="+n+";":"",document.cookie=encodeURIComponent(e)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"+n}},$=function(e){var t;!e&&_.location&&(e=_.location.hostname),t=e;var n,i=t.split(".");for(n=i.length-2;n>=0;n--)if(t=i.slice(n).join("."),Q.set("test","cookie",{domain:t}))return Q.remove("test",{domain:t}),t;return""},Z={compare:s,isLessThan:function(e,t){return s(e,t)<0},areVersionsDifferent:function(e,t){return 0!==s(e,t)},isGreaterThan:function(e,t){return s(e,t)>0},isEqual:function(e,t){return 0===s(e,t)}},ee=!!_.postMessage,te={postMessage:function(e,t,n){var i=1;t&&(ee?n.postMessage(e,t.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):t&&(n.location=t.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+e))},receiveMessage:function(e,t){var n;try{ee&&(e&&(n=function(n){if("string"==typeof t&&n.origin!==t||"[object Function]"===Object.prototype.toString.call(t)&&!1===t(n.origin))return!1;e(n)}),_.addEventListener?_[e?"addEventListener":"removeEventListener"]("message",n):_[e?"attachEvent":"detachEvent"]("onmessage",n))}catch(e){}}},ne=function(e){var t,n,i="0123456789",r="",a="",o=8,s=10,l=10;if(1==e){for(i+="ABCDEF",t=0;16>t;t++)n=Math.floor(Math.random()*o),r+=i.substring(n,n+1),n=Math.floor(Math.random()*o),a+=i.substring(n,n+1),o=16;return r+"-"+a}for(t=0;19>t;t++)n=Math.floor(Math.random()*s),r+=i.substring(n,n+1),0===t&&9==n?s=3:(1==t||2==t)&&10!=s&&2>n?s=10:2<t&&(s=10),n=Math.floor(Math.random()*l),a+=i.substring(n,n+1),0===t&&9==n?l=3:(1==t||2==t)&&10!=l&&2>n?l=10:2<t&&(l=10);return r+a},ie=function(e,t){return{corsMetadata:function(){var e="none",t=!0;return"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?e="XMLHttpRequest":"undefined"!=typeof XDomainRequest&&XDomainRequest===Object(XDomainRequest)&&(t=!1),Object.prototype.toString.call(_.HTMLElement).indexOf("Constructor")>0&&(t=!1)),{corsType:e,corsCookiesEnabled:t}}(),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new _[this.corsMetadata.corsType]},fireCORS:function(t,n,i){function r(e){var n;try{if((n=JSON.parse(e))!==Object(n))return void a.handleCORSError(t,null,"Response is not JSON")}catch(e){return void a.handleCORSError(t,e,"Error parsing response as JSON")}try{for(var i=t.callback,r=_,o=0;o<i.length;o++)r=r[i[o]];r(n)}catch(e){a.handleCORSError(t,e,"Error forming callback function")}}var a=this;n&&(t.loadErrorHandler=n);try{var o=this.getCORSInstance();o.open("get",t.corsUrl+"&ts="+(new Date).getTime(),!0),"XMLHttpRequest"===this.corsMetadata.corsType&&(o.withCredentials=!0,o.timeout=e.loadTimeout,o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){4===this.readyState&&200===this.status&&r(this.responseText)}),o.onerror=function(e){a.handleCORSError(t,e,"onerror")},o.ontimeout=function(e){a.handleCORSError(t,e,"ontimeout")},o.send(),e._log.requests.push(t.corsUrl)}catch(e){this.handleCORSError(t,e,"try-catch")}},handleCORSError:function(t,n,i){e.CORSErrors.push({corsData:t,error:n,description:i}),t.loadErrorHandler&&("ontimeout"===i?t.loadErrorHandler(!0):t.loadErrorHandler(!1))}}},re={POST_MESSAGE_ENABLED:!!_.postMessage,DAYS_BETWEEN_SYNC_ID_CALLS:1,MILLIS_PER_DAY:864e5,ADOBE_MC:"adobe_mc",ADOBE_MC_SDID:"adobe_mc_sdid",VALID_VISITOR_ID_REGEX:/^[0-9a-fA-F\-]+$/,ADOBE_MC_TTL_IN_MIN:5,VERSION_REGEX:/vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/,FIRST_PARTY_SERVER_COOKIE:"s_ecid"},ae=function(e,t){var n=_.document;return{THROTTLE_START:3e4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(e){if("string"==typeof e){var t=e.split("/");return t[0]+"//"+t[2]}},subdomain:null,url:null,getUrl:function(){var t,i="http://fast.",r="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.origin);return this.subdomain||(this.subdomain="nosubdomainreturned"),e.loadSSL&&(i=e.idSyncSSLUseAkamai?"https://fast.":"https://"),t=i+this.subdomain+".demdex.net/dest5.html"+r,this.iframeHost=this.getIframeHost(t),this.id="destination_publishing_iframe_"+this.subdomain+"_"+e.idSyncContainerID,t},checkDPIframeSrc:function(){var t="?d_nsid="+e.idSyncContainerID+"#"+encodeURIComponent(n.location.href);"string"==typeof e.dpIframeSrc&&e.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(e._subdomain||this.subdomain||(new Date).getTime())+"_"+e.idSyncContainerID,this.iframeHost=this.getIframeHost(e.dpIframeSrc),this.url=e.dpIframeSrc+t)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,iframeLoadedCallbacks:[],regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],messageSendingInterval:re.POST_MESSAGE_ENABLED?null:100,onPageDestinationsFired:[],jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframePreliminary:function(){return!(e.idSyncDisableSyncs||e.disableIdSyncs||e.idSyncDisable3rdPartySyncing||e.disableThirdPartyCookies||e.disableThirdPartyCalls)},readyToAttachIframe:function(){return this.readyToAttachIframePreliminary()&&(this.doAttachIframe||e._doAttachIframe)&&(this.subdomain&&"nosubdomainreturned"!==this.subdomain||e._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function e(){r=n.createElement("iframe"),r.sandbox="allow-scripts allow-same-origin",r.title="Adobe ID Syncing iFrame",r.id=i.id,r.name=i.id+"_name",r.style.cssText="display: none; width: 0; height: 0;",r.src=i.url,i.newIframeCreated=!0,t(),n.body.appendChild(r)}function t(e){r.addEventListener("load",function(){r.className="aamIframeLoaded",i.iframeHasLoaded=!0,i.fireIframeLoadedCallbacks(e),i.requestToProcess()})}this.startedAttachingIframe=!0;var i=this,r=n.getElementById(this.id);r?"IFRAME"!==r.nodeName?(this.id+="_2",this.iframeIdChanged=!0,e()):(this.newIframeCreated=!1,"aamIframeLoaded"!==r.className?(this.originalIframeHasLoadedAlready=!1,t("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=r,this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."),this.requestToProcess())):e(),this.iframe=r},fireIframeLoadedCallbacks:function(e){this.iframeLoadedCallbacks.forEach(function(t){"function"==typeof t&&t({message:e||"The destination publishing iframe was attached and loaded successfully."})}),this.iframeLoadedCallbacks=[]},requestToProcess:function(t){function n(){r.jsonForComparison.push(t),r.jsonWaiting.push(t),r.processSyncOnPage(t)}var i,r=this;if(t===Object(t)&&t.ibs)if(i=JSON.stringify(t.ibs||[]),this.jsonForComparison.length){var a,o,s,l=!1;for(a=0,o=this.jsonForComparison.length;a<o;a++)if(s=this.jsonForComparison[a],i===JSON.stringify(s.ibs||[])){l=!0;break}l?this.jsonDuplicates.push(t):n()}else n();if((this.receivedThirdPartyCookiesNotification||!re.POST_MESSAGE_ENABLED||this.iframeHasLoaded)&&this.jsonWaiting.length){var c=this.jsonWaiting.shift();this.process(c),this.requestToProcess()}e.idSyncDisableSyncs||e.disableIdSyncs||!this.iframeHasLoaded||!this.messages.length||this.sendingMessages||(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout(function(){r.messageSendingInterval=re.POST_MESSAGE_ENABLED?null:150},this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},getRegionAndCheckIfChanged:function(t,n){var i=e._getField("MCAAMLH"),r=t.d_region||t.dcs_region;return i?r&&(e._setFieldExpire("MCAAMLH",n),e._setField("MCAAMLH",r),parseInt(i,10)!==r&&(this.regionChanged=!0,this.timesRegionChanged++,e._setField("MCSYNCSOP",""),e._setField("MCSYNCS",""),i=r)):(i=r)&&(e._setFieldExpire("MCAAMLH",n),e._setField("MCAAMLH",i)),i||(i=""),i},processSyncOnPage:function(e){var t,n,i,r;if((t=e.ibs)&&t instanceof Array&&(n=t.length))for(i=0;i<n;i++)r=t[i],r.syncOnPage&&this.checkFirstPartyCookie(r,"","syncOnPage")},process:function(e){var t,n,i,r,a,o=encodeURIComponent,s=!1;if((t=e.ibs)&&t instanceof Array&&(n=t.length))for(s=!0,i=0;i<n;i++)r=t[i],a=[o("ibs"),o(r.id||""),o(r.tag||""),j.encodeAndBuildRequest(r.url||[],","),o(r.ttl||""),"","",r.fireURLSync?"true":"false"],r.syncOnPage||(this.canSetThirdPartyCookies?this.addMessage(a.join("|")):r.fireURLSync&&this.checkFirstPartyCookie(r,a.join("|")));s&&this.jsonProcessed.push(e)},checkFirstPartyCookie:function(t,n,i){var r="syncOnPage"===i,a=r?"MCSYNCSOP":"MCSYNCS";e._readVisitor();var o,s,l=e._getField(a),c=!1,u=!1,d=Math.ceil((new Date).getTime()/re.MILLIS_PER_DAY);l?(o=l.split("*"),s=this.pruneSyncData(o,t.id,d),c=s.dataPresent,u=s.dataValid,c&&u||this.fireSync(r,t,n,o,a,d)):(o=[],this.fireSync(r,t,n,o,a,d))},pruneSyncData:function(e,t,n){var i,r,a,o=!1,s=!1;for(r=0;r<e.length;r++)i=e[r],a=parseInt(i.split("-")[1],10),i.match("^"+t+"-")?(o=!0,n<a?s=!0:(e.splice(r,1),r--)):n>=a&&(e.splice(r,1),r--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(e){if(e.join("*").length>this.MAX_SYNCS_LENGTH)for(e.sort(function(e,t){return parseInt(e.split("-")[1],10)-parseInt(t.split("-")[1],10)});e.join("*").length>this.MAX_SYNCS_LENGTH;)e.shift()},fireSync:function(t,n,i,r,a,o){var s=this;if(t){if("img"===n.tag){var l,c,u,d,f=n.url,p=e.loadSSL?"https:":"http:";for(l=0,c=f.length;l<c;l++){u=f[l],d=/^\/\//.test(u);var g=new Image;g.addEventListener("load",function(t,n,i,r){return function(){s.onPagePixels[t]=null,e._readVisitor();var o,l=e._getField(a),c=[];if(l){o=l.split("*");var u,d,f;for(u=0,d=o.length;u<d;u++)f=o[u],f.match("^"+n.id+"-")||c.push(f)}s.setSyncTrackingData(c,n,i,r)}}(this.onPagePixels.length,n,a,o)),g.src=(d?p:"")+u,this.onPagePixels.push(g)}}}else this.addMessage(i),this.setSyncTrackingData(r,n,a,o)},addMessage:function(t){var n=encodeURIComponent,i=n(e._enableErrorReporting?"---destpub-debug---":"---destpub---");this.messages.push((re.POST_MESSAGE_ENABLED?"":i)+t)},setSyncTrackingData:function(t,n,i,r){t.push(n.id+"-"+(r+Math.ceil(n.ttl/60/24))),this.manageSyncsSize(t),e._setField(i,t.join("*"))},sendMessages:function(){var e,t=this,n="",i=encodeURIComponent;this.regionChanged&&(n=i("---destpub-clear-dextp---"),this.regionChanged=!1),this.messages.length?re.POST_MESSAGE_ENABLED?(e=n+i("---destpub-combined---")+this.messages.join("%01"),this.postMessage(e),this.messages=[],this.sendingMessages=!1):(e=this.messages.shift(),this.postMessage(n+e),setTimeout(function(){t.sendMessages()},this.messageSendingInterval)):this.sendingMessages=!1},postMessage:function(e){te.postMessage(e,this.url,this.iframe.contentWindow),this.messagesPosted.push(e)},receiveMessage:function(e){var t,n=/^---destpub-to-parent---/;"string"==typeof e&&n.test(e)&&(t=e.replace(n,"").split("|"),"canSetThirdPartyCookies"===t[0]&&(this.canSetThirdPartyCookies="true"===t[1],this.receivedThirdPartyCookiesNotification=!0,this.requestToProcess()),this.messagesReceived.push(e))},processIDCallData:function(i){(null==this.url||i.subdomain&&"nosubdomainreturned"===this.subdomain)&&("string"==typeof e._subdomain&&e._subdomain.length?this.subdomain=e._subdomain:this.subdomain=i.subdomain||"",this.url=this.getUrl()),i.ibs instanceof Array&&i.ibs.length&&(this.doAttachIframe=!0),this.readyToAttachIframe()&&(e.idSyncAttachIframeOnWindowLoad?(t.windowLoaded||"complete"===n.readyState||"loaded"===n.readyState)&&this.attachIframe():this.attachIframeASAP()),"function"==typeof e.idSyncIDCallResult?e.idSyncIDCallResult(i):this.requestToProcess(i),"function"==typeof e.idSyncAfterIDCallResult&&e.idSyncAfterIDCallResult(i)},canMakeSyncIDCall:function(t,n){return e._forceSyncIDCall||!t||n-t>re.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function e(){t.startedAttachingIframe||(n.body?t.attachIframe():setTimeout(e,30))}var t=this;e()}}},oe={audienceManagerServer:{},audienceManagerServerSecure:{},cookieDomain:{},cookieLifetime:{},cookieName:{},doesOptInApply:{},disableThirdPartyCalls:{},discardTrackingServerECID:{},idSyncAfterIDCallResult:{},idSyncAttachIframeOnWindowLoad:{},idSyncContainerID:{},idSyncDisable3rdPartySyncing:{},disableThirdPartyCookies:{},idSyncDisableSyncs:{},disableIdSyncs:{},idSyncIDCallResult:{},idSyncSSLUseAkamai:{},isCoopSafe:{},isIabContext:{},isOptInStorageEnabled:{},loadSSL:{},loadTimeout:{},marketingCloudServer:{},marketingCloudServerSecure:{},optInCookieDomain:{},optInStorageExpiry:{},overwriteCrossDomainMCIDAndAID:{},preOptInApprovals:{},previousPermissions:{},resetBeforeVersion:{},sdidParamExpiry:{},serverState:{},sessionCookieName:{},secureCookie:{},takeTimeoutMetrics:{},trackingServer:{},trackingServerSecure:{},whitelistIframeDomains:{},whitelistParentDomain:{}},se={getConfigNames:function(){return Object.keys(oe)},getConfigs:function(){return oe},normalizeConfig:function(e){return"function"!=typeof e?e:e()}},le=function(e){var t={};return e.on=function(e,n,i){if(!n||"function"!=typeof n)throw new Error("[ON] Callback should be a function.");t.hasOwnProperty(e)||(t[e]=[]);var r=t[e].push({callback:n,context:i})-1;return function(){t[e].splice(r,1),t[e].length||delete t[e]}},e.off=function(e,n){t.hasOwnProperty(e)&&(t[e]=t[e].filter(function(e){if(e.callback!==n)return e}))},e.publish=function(e){if(t.hasOwnProperty(e)){var n=[].slice.call(arguments,1);t[e].slice(0).forEach(function(e){e.callback.apply(e.context,n)})}},e.publish},ce={PENDING:"pending",CHANGED:"changed",COMPLETE:"complete"},ue={AAM:"aam",ADCLOUD:"adcloud",ANALYTICS:"aa",CAMPAIGN:"campaign",ECID:"ecid",LIVEFYRE:"livefyre",TARGET:"target",VIDEO_ANALYTICS:"videoaa"},de=(C={},t(C,ue.AAM,565),t(C,ue.ECID,565),C),fe=(I={},t(I,ue.AAM,[1,2,5]),t(I,ue.ECID,[1,2,5]),I),pe=function(e){return Object.keys(e).map(function(t){return e[t]})}(ue),ge=function(){var e={};return e.callbacks=Object.create(null),e.add=function(t,n){if(!c(n))throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");e.callbacks[t]=e.callbacks[t]||[];var i=e.callbacks[t].push(n)-1;return function(){e.callbacks[t].splice(i,1)}},e.execute=function(t,n){if(e.callbacks[t]){n=void 0===n?[]:n,n=n instanceof Array?n:[n];try{for(;e.callbacks[t].length;){var i=e.callbacks[t].shift();"function"==typeof i?i.apply(null,n):i instanceof Array&&i[1].apply(i[0],n)}delete e.callbacks[t]}catch(e){}}},e.executeAll=function(t,n){(n||t&&!l(t))&&Object.keys(e.callbacks).forEach(function(n){var i=void 0!==t[n]?t[n]:"";e.execute(n,i)},e)},e.hasCallbacks=function(){return Boolean(Object.keys(e.callbacks).length)},e},me=function(){},he=function(e){var t=window,n=t.console;return!!n&&"function"==typeof n[e]},_e=function(e,t,n){return n()?function(){if(he(e)){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];console[e].apply(console,[t].concat(i))}}:me},Ce=u,Ie=new Ce("[ADOBE OPT-IN]"),ve=function(t,n){return e(t)===n},Se=function(e,t){return e instanceof Array?e:ve(e,"string")?[e]:t||[]},De=function(e){var t=Object.keys(e);return!!t.length&&t.every(function(t){return!0===e[t]})},Ae=function(e){return!(!e||Oe(e))&&Se(e).every(function(e){return pe.indexOf(e)>-1})},ye=function(e,t){return e.reduce(function(e,n){return e[n]=t,e},{})},be=function(e){return JSON.parse(JSON.stringify(e))},Oe=function(e){return"[object Array]"===Object.prototype.toString.call(e)&&!e.length},Me=function(e){if(Te(e))return e;try{return JSON.parse(e)}catch(e){return{}}},ke=function(e){return void 0===e||(Te(e)?Ae(Object.keys(e)):Ee(e))},Ee=function(e){try{var t=JSON.parse(e);return!!e&&ve(e,"string")&&Ae(Object.keys(t))}catch(e){return!1}},Te=function(e){return null!==e&&ve(e,"object")&&!1===Array.isArray(e)},Le=function(){},Pe=function(e){return ve(e,"function")?e():e},Re=function(e,t){ke(e)||Ie.error("".concat(t))},we=function(e){return Object.keys(e).map(function(t){return e[t]})},Fe=function(e){return we(e).filter(function(e,t,n){return n.indexOf(e)===t})},Ne=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.command,i=t.params,r=void 0===i?{}:i,a=t.callback,o=void 0===a?Le:a;if(!n||-1===n.indexOf("."))throw new Error("[OptIn.execute] Please provide a valid command.");try{var s=n.split("."),l=e[s[0]],c=s[1];if(!l||"function"!=typeof l[c])throw new Error("Make sure the plugin and API name exist.");var u=Object.assign(r,{callback:o});l[c].call(l,u)}catch(e){Ie.error("[execute] Something went wrong: "+e.message)}}};f.prototype=Object.create(Error.prototype),f.prototype.constructor=f;var xe="fetchPermissions",je="[OptIn#registerPlugin] Plugin is invalid.";p.Categories=ue,p.TimeoutError=f;var Ve=Object.freeze({OptIn:p,IabPlugin:h}),He=function(e,t){e.publishDestinations=function(n){var i=arguments[1],r=arguments[2];try{r="function"==typeof r?r:n.callback}catch(e){r=function(){}}var a=t;if(!a.readyToAttachIframePreliminary())return void r({error:"The destination publishing iframe is disabled in the Visitor library."});if("string"==typeof n){if(!n.length)return void r({error:"subdomain is not a populated string."});if(!(i instanceof Array&&i.length))return void r({error:"messages is not a populated array."});var o=!1;if(i.forEach(function(e){
|
25
|
+
"string"==typeof e&&e.length&&(a.addMessage(e),o=!0)}),!o)return void r({error:"None of the messages are populated strings."})}else{if(!j.isObject(n))return void r({error:"Invalid parameters passed."});var s=n;if("string"!=typeof(n=s.subdomain)||!n.length)return void r({error:"config.subdomain is not a populated string."});var l=s.urlDestinations;if(!(l instanceof Array&&l.length))return void r({error:"config.urlDestinations is not a populated array."});var c=[];l.forEach(function(e){j.isObject(e)&&(e.hideReferrer?e.message&&a.addMessage(e.message):c.push(e))});!function e(){c.length&&setTimeout(function(){var t=new Image,n=c.shift();t.src=n.url,a.onPageDestinationsFired.push(n),e()},100)}()}a.iframe?(r({message:"The destination publishing iframe is already attached and loaded."}),a.requestToProcess()):!e.subdomain&&e._getField("MCMID")?(a.subdomain=n,a.doAttachIframe=!0,a.url=a.getUrl(),a.readyToAttachIframe()?(a.iframeLoadedCallbacks.push(function(e){r({message:"Attempted to attach and load the destination publishing iframe through this API call. Result: "+(e.message||"no result")})}),a.attachIframe()):r({error:"Encountered a problem in attempting to attach and load the destination publishing iframe through this API call."})):a.iframeLoadedCallbacks.push(function(e){r({message:"Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: "+(e.message||"no result")})})}},Ue=function e(t){function n(e,t){return e>>>t|e<<32-t}for(var i,r,a=Math.pow,o=a(2,32),s="",l=[],c=8*t.length,u=e.h=e.h||[],d=e.k=e.k||[],f=d.length,p={},g=2;f<64;g++)if(!p[g]){for(i=0;i<313;i+=g)p[i]=g;u[f]=a(g,.5)*o|0,d[f++]=a(g,1/3)*o|0}for(t+="€";t.length%64-56;)t+="\0";for(i=0;i<t.length;i++){if((r=t.charCodeAt(i))>>8)return;l[i>>2]|=r<<(3-i)%4*8}for(l[l.length]=c/o|0,l[l.length]=c,r=0;r<l.length;){var m=l.slice(r,r+=16),h=u;for(u=u.slice(0,8),i=0;i<64;i++){var _=m[i-15],C=m[i-2],I=u[0],v=u[4],S=u[7]+(n(v,6)^n(v,11)^n(v,25))+(v&u[5]^~v&u[6])+d[i]+(m[i]=i<16?m[i]:m[i-16]+(n(_,7)^n(_,18)^_>>>3)+m[i-7]+(n(C,17)^n(C,19)^C>>>10)|0);u=[S+((n(I,2)^n(I,13)^n(I,22))+(I&u[1]^I&u[2]^u[1]&u[2]))|0].concat(u),u[4]=u[4]+S|0}for(i=0;i<8;i++)u[i]=u[i]+h[i]|0}for(i=0;i<8;i++)for(r=3;r+1;r--){var D=u[i]>>8*r&255;s+=(D<16?0:"")+D.toString(16)}return s},Be=function(e,t){return"SHA-256"!==t&&"SHA256"!==t&&"sha256"!==t&&"sha-256"!==t||(e=Ue(e)),e},Ge=function(e){return String(e).trim().toLowerCase()},Ye=Ve.OptIn;j.defineGlobalNamespace(),window.adobe.OptInCategories=Ye.Categories;var qe=function(t,n,i){function r(e){var t=e;return function(e){var n=e||v.location.href;try{var i=g._extractParamFromUri(n,t);if(i)return w.parsePipeDelimetedKeyValues(i)}catch(e){}}}function a(e){function t(e,t,n){e&&e.match(re.VALID_VISITOR_ID_REGEX)&&(n===A&&(I=!0),t(e))}t(e[A],g.setMarketingCloudVisitorID,A),g._setFieldExpire(k,-1),t(e[O],g.setAnalyticsVisitorID)}function o(e){e=e||{},g._supplementalDataIDCurrent=e.supplementalDataIDCurrent||"",g._supplementalDataIDCurrentConsumed=e.supplementalDataIDCurrentConsumed||{},g._supplementalDataIDLast=e.supplementalDataIDLast||"",g._supplementalDataIDLastConsumed=e.supplementalDataIDLastConsumed||{}}function s(e){function t(e,t,n){return n=n?n+="|":n,n+=e+"="+encodeURIComponent(t)}function n(e,n){var i=n[0],r=n[1];return null!=r&&r!==T&&(e=t(i,r,e)),e}var i=e.reduce(n,"");return function(e){var t=w.getTimestampInSeconds();return e=e?e+="|":e,e+="TS="+t}(i)}function l(e){var t=e.minutesToLive,n="";return(g.idSyncDisableSyncs||g.disableIdSyncs)&&(n=n||"Error: id syncs have been disabled"),"string"==typeof e.dpid&&e.dpid.length||(n=n||"Error: config.dpid is empty"),"string"==typeof e.url&&e.url.length||(n=n||"Error: config.url is empty"),void 0===t?t=20160:(t=parseInt(t,10),(isNaN(t)||t<=0)&&(n=n||"Error: config.minutesToLive needs to be a positive number")),{error:n,ttl:t}}function c(){return!!g.configs.doesOptInApply&&!(m.optIn.isComplete&&u())}function u(){return g.configs.isIabContext?m.optIn.isApproved(m.optIn.Categories.ECID)&&C:m.optIn.isApproved(m.optIn.Categories.ECID)}function d(e,t){if(C=!0,e)throw new Error("[IAB plugin] : "+e);t.gdprApplies&&(h=t.consentString),g.init(),p()}function f(){m.optIn.isApproved(m.optIn.Categories.ECID)&&(g.configs.isIabContext?m.optIn.execute({command:"iabPlugin.fetchConsentData",callback:d}):(g.init(),p()))}function p(){m.optIn.off("complete",f)}if(!i||i.split("").reverse().join("")!==t)throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");var g=this,m=window.adobe,h="",C=!1,I=!1;g.version="4.4.0";var v=_,S=v.Visitor;S.version=g.version,S.AuthState=E.AUTH_STATE,S.OptOut=E.OPT_OUT,v.s_c_in||(v.s_c_il=[],v.s_c_in=0),g._c="Visitor",g._il=v.s_c_il,g._in=v.s_c_in,g._il[g._in]=g,v.s_c_in++,g._instanceType="regular",g._log={requests:[]},g.marketingCloudOrgID=t,g.cookieName="AMCV_"+t,g.sessionCookieName="AMCVS_"+t,g.cookieDomain=$(),g.loadSSL=v.location.protocol.toLowerCase().indexOf("https")>=0,g.loadTimeout=3e4,g.CORSErrors=[],g.marketingCloudServer=g.audienceManagerServer="dpm.demdex.net",g.sdidParamExpiry=30;var D=null,A="MCMID",y="MCIDTS",b="A",O="MCAID",M="AAM",k="MCAAMB",T="NONE",L=function(e){return!Object.prototype[e]},P=ie(g);g.FIELDS=E.FIELDS,g.cookieRead=function(e){return Q.get(e)},g.cookieWrite=function(e,t,n){var i=g.cookieLifetime?(""+g.cookieLifetime).toUpperCase():"",r=!1;return g.configs&&g.configs.secureCookie&&"https:"===location.protocol&&(r=!0),Q.set(e,""+t,{expires:n,domain:g.cookieDomain,cookieLifetime:i,secure:r})},g.resetState=function(e){e?g._mergeServerState(e):o()},g._isAllowedDone=!1,g._isAllowedFlag=!1,g.isAllowed=function(){return g._isAllowedDone||(g._isAllowedDone=!0,(g.cookieRead(g.cookieName)||g.cookieWrite(g.cookieName,"T",1))&&(g._isAllowedFlag=!0)),"T"===g.cookieRead(g.cookieName)&&g._helpers.removeCookie(g.cookieName),g._isAllowedFlag},g.setMarketingCloudVisitorID=function(e){g._setMarketingCloudFields(e)},g._use1stPartyMarketingCloudServer=!1,g.getMarketingCloudVisitorID=function(e,t){g.marketingCloudServer&&g.marketingCloudServer.indexOf(".demdex.net")<0&&(g._use1stPartyMarketingCloudServer=!0);var n=g._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;return g._getRemoteField(A,i,e,t,n)},g.getVisitorValues=function(e,t){var n={MCMID:{fn:g.getMarketingCloudVisitorID,args:[!0],context:g},MCOPTOUT:{fn:g.isOptedOut,args:[void 0,!0],context:g},MCAID:{fn:g.getAnalyticsVisitorID,args:[!0],context:g},MCAAMLH:{fn:g.getAudienceManagerLocationHint,args:[!0],context:g},MCAAMB:{fn:g.getAudienceManagerBlob,args:[!0],context:g}},i=t&&t.length?j.pluck(n,t):n;z(i,e)},g._currentCustomerIDs={},g._customerIDsHashChanged=!1,g._newCustomerIDsHash="",g.setCustomerIDs=function(t,n){function i(){g._customerIDsHashChanged=!1}if(!g.isOptedOut()&&t){if(!j.isObject(t)||j.isObjectEmpty(t))return!1;g._readVisitor();var r,a,o;for(r in t)if(L(r)&&(a=t[r],n=a.hasOwnProperty("hashType")?a.hashType:n,a))if("object"===e(a)){var s={};if(a.id){if(n){if(!(o=Be(Ge(a.id),n)))return;a.id=o,s.hashType=n}s.id=a.id}void 0!=a.authState&&(s.authState=a.authState),g._currentCustomerIDs[r]=s}else if(n){if(!(o=Be(Ge(a),n)))return;g._currentCustomerIDs[r]={id:o,hashType:n}}else g._currentCustomerIDs[r]={id:a};var l=g.getCustomerIDs(),c=g._getField("MCCIDH"),u="";c||(c=0);for(r in l)L(r)&&(a=l[r],u+=(u?"|":"")+r+"|"+(a.id?a.id:"")+(a.authState?a.authState:""));g._newCustomerIDsHash=String(g._hash(u)),g._newCustomerIDsHash!==c&&(g._customerIDsHashChanged=!0,g._mapCustomerIDs(i))}},g.getCustomerIDs=function(){g._readVisitor();var e,t,n={};for(e in g._currentCustomerIDs)L(e)&&(t=g._currentCustomerIDs[e],n[e]||(n[e]={}),t.id&&(n[e].id=t.id),void 0!=t.authState?n[e].authState=t.authState:n[e].authState=S.AuthState.UNKNOWN,t.hashType&&(n[e].hashType=t.hashType));return n},g.setAnalyticsVisitorID=function(e){g._setAnalyticsFields(e)},g.getAnalyticsVisitorID=function(e,t,n){if(!w.isTrackingServerPopulated()&&!n)return g._callCallback(e,[""]),"";var i="";if(n||(i=g.getMarketingCloudVisitorID(function(t){g.getAnalyticsVisitorID(e,!0)})),i||n){var r=n?g.marketingCloudServer:g.trackingServer,a="";g.loadSSL&&(n?g.marketingCloudServerSecure&&(r=g.marketingCloudServerSecure):g.trackingServerSecure&&(r=g.trackingServerSecure));var o={};if(r){var s="http"+(g.loadSSL?"s":"")+"://"+r+"/id",l="d_visid_ver="+g.version+"&mcorgid="+encodeURIComponent(g.marketingCloudOrgID)+(i?"&mid="+encodeURIComponent(i):"")+(g.idSyncDisable3rdPartySyncing||g.disableThirdPartyCookies?"&d_coppa=true":""),c=["s_c_il",g._in,"_set"+(n?"MarketingCloud":"Analytics")+"Fields"];a=s+"?"+l+"&callback=s_c_il%5B"+g._in+"%5D._set"+(n?"MarketingCloud":"Analytics")+"Fields",o.corsUrl=s+"?"+l,o.callback=c}return o.url=a,g._getRemoteField(n?A:O,a,e,t,o)}return""},g.getAudienceManagerLocationHint=function(e,t){if(g.getMarketingCloudVisitorID(function(t){g.getAudienceManagerLocationHint(e,!0)})){var n=g._getField(O);if(!n&&w.isTrackingServerPopulated()&&(n=g.getAnalyticsVisitorID(function(t){g.getAudienceManagerLocationHint(e,!0)})),n||!w.isTrackingServerPopulated()){var i=g._getAudienceManagerURLData(),r=i.url;return g._getRemoteField("MCAAMLH",r,e,t,i)}}return""},g.getLocationHint=g.getAudienceManagerLocationHint,g.getAudienceManagerBlob=function(e,t){if(g.getMarketingCloudVisitorID(function(t){g.getAudienceManagerBlob(e,!0)})){var n=g._getField(O);if(!n&&w.isTrackingServerPopulated()&&(n=g.getAnalyticsVisitorID(function(t){g.getAudienceManagerBlob(e,!0)})),n||!w.isTrackingServerPopulated()){var i=g._getAudienceManagerURLData(),r=i.url;return g._customerIDsHashChanged&&g._setFieldExpire(k,-1),g._getRemoteField(k,r,e,t,i)}}return""},g._supplementalDataIDCurrent="",g._supplementalDataIDCurrentConsumed={},g._supplementalDataIDLast="",g._supplementalDataIDLastConsumed={},g.getSupplementalDataID=function(e,t){g._supplementalDataIDCurrent||t||(g._supplementalDataIDCurrent=g._generateID(1));var n=g._supplementalDataIDCurrent;return g._supplementalDataIDLast&&!g._supplementalDataIDLastConsumed[e]?(n=g._supplementalDataIDLast,g._supplementalDataIDLastConsumed[e]=!0):n&&(g._supplementalDataIDCurrentConsumed[e]&&(g._supplementalDataIDLast=g._supplementalDataIDCurrent,g._supplementalDataIDLastConsumed=g._supplementalDataIDCurrentConsumed,g._supplementalDataIDCurrent=n=t?"":g._generateID(1),g._supplementalDataIDCurrentConsumed={}),n&&(g._supplementalDataIDCurrentConsumed[e]=!0)),n};var R=!1;g._liberatedOptOut=null,g.getOptOut=function(e,t){var n=g._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;if(u())return g._getRemoteField("MCOPTOUT",i,e,t,n);if(g._registerCallback("liberatedOptOut",e),null!==g._liberatedOptOut)return g._callAllCallbacks("liberatedOptOut",[g._liberatedOptOut]),R=!1,g._liberatedOptOut;if(R)return null;R=!0;var r="liberatedGetOptOut";return n.corsUrl=n.corsUrl.replace(/dpm\.demdex\.net\/id\?/,"dpm.demdex.net/optOutStatus?"),n.callback=[r],_[r]=function(e){if(e===Object(e)){var t,n,i=j.parseOptOut(e,t,T);t=i.optOut,n=1e3*i.d_ottl,g._liberatedOptOut=t,setTimeout(function(){g._liberatedOptOut=null},n)}g._callAllCallbacks("liberatedOptOut",[t]),R=!1},P.fireCORS(n),null},g.isOptedOut=function(e,t,n){t||(t=S.OptOut.GLOBAL);var i=g.getOptOut(function(n){var i=n===S.OptOut.GLOBAL||n.indexOf(t)>=0;g._callCallback(e,[i])},n);return i?i===S.OptOut.GLOBAL||i.indexOf(t)>=0:null},g._fields=null,g._fieldsExpired=null,g._hash=function(e){var t,n,i=0;if(e)for(t=0;t<e.length;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i&=i;return i},g._generateID=ne,g._generateLocalMID=function(){var e=g._generateID(0);return N.isClientSideMarketingCloudVisitorID=!0,e},g._callbackList=null,g._callCallback=function(e,t){try{"function"==typeof e?e.apply(v,t):e[1].apply(e[0],t)}catch(e){}},g._registerCallback=function(e,t){t&&(null==g._callbackList&&(g._callbackList={}),void 0==g._callbackList[e]&&(g._callbackList[e]=[]),g._callbackList[e].push(t))},g._callAllCallbacks=function(e,t){if(null!=g._callbackList){var n=g._callbackList[e];if(n)for(;n.length>0;)g._callCallback(n.shift(),t)}},g._addQuerystringParam=function(e,t,n,i){var r=encodeURIComponent(t)+"="+encodeURIComponent(n),a=w.parseHash(e),o=w.hashlessUrl(e);if(-1===o.indexOf("?"))return o+"?"+r+a;var s=o.split("?"),l=s[0]+"?",c=s[1];return l+w.addQueryParamAtLocation(c,r,i)+a},g._extractParamFromUri=function(e,t){var n=new RegExp("[\\?&#]"+t+"=([^&#]*)"),i=n.exec(e);if(i&&i.length)return decodeURIComponent(i[1])},g._parseAdobeMcFromUrl=r(re.ADOBE_MC),g._parseAdobeMcSdidFromUrl=r(re.ADOBE_MC_SDID),g._attemptToPopulateSdidFromUrl=function(e){var n=g._parseAdobeMcSdidFromUrl(e),i=1e9;n&&n.TS&&(i=w.getTimestampInSeconds()-n.TS),n&&n.SDID&&n.MCORGID===t&&i<g.sdidParamExpiry&&(g._supplementalDataIDCurrent=n.SDID,g._supplementalDataIDCurrentConsumed.SDID_URL_PARAM=!0)},g._attemptToPopulateIdsFromUrl=function(){var e=g._parseAdobeMcFromUrl();if(e&&e.TS){var n=w.getTimestampInSeconds(),i=n-e.TS;if(Math.floor(i/60)>re.ADOBE_MC_TTL_IN_MIN||e.MCORGID!==t)return;a(e)}},g._mergeServerState=function(e){if(e)try{if(e=function(e){return w.isObject(e)?e:JSON.parse(e)}(e),e[g.marketingCloudOrgID]){var t=e[g.marketingCloudOrgID];!function(e){w.isObject(e)&&g.setCustomerIDs(e)}(t.customerIDs),o(t.sdid)}}catch(e){throw new Error("`serverState` has an invalid format.")}},g._timeout=null,g._loadData=function(e,t,n,i){t=g._addQuerystringParam(t,"d_fieldgroup",e,1),i.url=g._addQuerystringParam(i.url,"d_fieldgroup",e,1),i.corsUrl=g._addQuerystringParam(i.corsUrl,"d_fieldgroup",e,1),N.fieldGroupObj[e]=!0,i===Object(i)&&i.corsUrl&&"XMLHttpRequest"===P.corsMetadata.corsType&&P.fireCORS(i,n,e)},g._clearTimeout=function(e){null!=g._timeout&&g._timeout[e]&&(clearTimeout(g._timeout[e]),g._timeout[e]=0)},g._settingsDigest=0,g._getSettingsDigest=function(){if(!g._settingsDigest){var e=g.version;g.audienceManagerServer&&(e+="|"+g.audienceManagerServer),g.audienceManagerServerSecure&&(e+="|"+g.audienceManagerServerSecure),g._settingsDigest=g._hash(e)}return g._settingsDigest},g._readVisitorDone=!1,g._readVisitor=function(){if(!g._readVisitorDone){g._readVisitorDone=!0;var e,t,n,i,r,a,o=g._getSettingsDigest(),s=!1,l=g.cookieRead(g.cookieName),c=new Date;if(l||I||g.discardTrackingServerECID||(l=g.cookieRead(re.FIRST_PARTY_SERVER_COOKIE)),null==g._fields&&(g._fields={}),l&&"T"!==l)for(l=l.split("|"),l[0].match(/^[\-0-9]+$/)&&(parseInt(l[0],10)!==o&&(s=!0),l.shift()),l.length%2==1&&l.pop(),e=0;e<l.length;e+=2)t=l[e].split("-"),n=t[0],i=l[e+1],t.length>1?(r=parseInt(t[1],10),a=t[1].indexOf("s")>0):(r=0,a=!1),s&&("MCCIDH"===n&&(i=""),r>0&&(r=c.getTime()/1e3-60)),n&&i&&(g._setField(n,i,1),r>0&&(g._fields["expire"+n]=r+(a?"s":""),(c.getTime()>=1e3*r||a&&!g.cookieRead(g.sessionCookieName))&&(g._fieldsExpired||(g._fieldsExpired={}),g._fieldsExpired[n]=!0)));!g._getField(O)&&w.isTrackingServerPopulated()&&(l=g.cookieRead("s_vi"))&&(l=l.split("|"),l.length>1&&l[0].indexOf("v1")>=0&&(i=l[1],e=i.indexOf("["),e>=0&&(i=i.substring(0,e)),i&&i.match(re.VALID_VISITOR_ID_REGEX)&&g._setField(O,i)))}},g._appendVersionTo=function(e){var t="vVersion|"+g.version,n=e?g._getCookieVersion(e):null;return n?Z.areVersionsDifferent(n,g.version)&&(e=e.replace(re.VERSION_REGEX,t)):e+=(e?"|":"")+t,e},g._writeVisitor=function(){var e,t,n=g._getSettingsDigest();for(e in g._fields)L(e)&&g._fields[e]&&"expire"!==e.substring(0,6)&&(t=g._fields[e],n+=(n?"|":"")+e+(g._fields["expire"+e]?"-"+g._fields["expire"+e]:"")+"|"+t);n=g._appendVersionTo(n),g.cookieWrite(g.cookieName,n,1)},g._getField=function(e,t){return null==g._fields||!t&&g._fieldsExpired&&g._fieldsExpired[e]?null:g._fields[e]},g._setField=function(e,t,n){null==g._fields&&(g._fields={}),g._fields[e]=t,n||g._writeVisitor()},g._getFieldList=function(e,t){var n=g._getField(e,t);return n?n.split("*"):null},g._setFieldList=function(e,t,n){g._setField(e,t?t.join("*"):"",n)},g._getFieldMap=function(e,t){var n=g._getFieldList(e,t);if(n){var i,r={};for(i=0;i<n.length;i+=2)r[n[i]]=n[i+1];return r}return null},g._setFieldMap=function(e,t,n){var i,r=null;if(t){r=[];for(i in t)L(i)&&(r.push(i),r.push(t[i]))}g._setFieldList(e,r,n)},g._setFieldExpire=function(e,t,n){var i=new Date;i.setTime(i.getTime()+1e3*t),null==g._fields&&(g._fields={}),g._fields["expire"+e]=Math.floor(i.getTime()/1e3)+(n?"s":""),t<0?(g._fieldsExpired||(g._fieldsExpired={}),g._fieldsExpired[e]=!0):g._fieldsExpired&&(g._fieldsExpired[e]=!1),n&&(g.cookieRead(g.sessionCookieName)||g.cookieWrite(g.sessionCookieName,"1"))},g._findVisitorID=function(t){return t&&("object"===e(t)&&(t=t.d_mid?t.d_mid:t.visitorID?t.visitorID:t.id?t.id:t.uuid?t.uuid:""+t),t&&"NOTARGET"===(t=t.toUpperCase())&&(t=T),t&&(t===T||t.match(re.VALID_VISITOR_ID_REGEX))||(t="")),t},g._setFields=function(t,n){if(g._clearTimeout(t),null!=g._loading&&(g._loading[t]=!1),N.fieldGroupObj[t]&&N.setState(t,!1),"MC"===t){!0!==N.isClientSideMarketingCloudVisitorID&&(N.isClientSideMarketingCloudVisitorID=!1);var i=g._getField(A);if(!i||g.overwriteCrossDomainMCIDAndAID){if(!(i="object"===e(n)&&n.mid?n.mid:g._findVisitorID(n))){if(g._use1stPartyMarketingCloudServer&&!g.tried1stPartyMarketingCloudServer)return g.tried1stPartyMarketingCloudServer=!0,void g.getAnalyticsVisitorID(null,!1,!0);i=g._generateLocalMID()}g._setField(A,i)}i&&i!==T||(i=""),"object"===e(n)&&((n.d_region||n.dcs_region||n.d_blob||n.blob)&&g._setFields(M,n),g._use1stPartyMarketingCloudServer&&n.mid&&g._setFields(b,{id:n.id})),g._callAllCallbacks(A,[i])}if(t===M&&"object"===e(n)){var r=604800;void 0!=n.id_sync_ttl&&n.id_sync_ttl&&(r=parseInt(n.id_sync_ttl,10));var a=F.getRegionAndCheckIfChanged(n,r);g._callAllCallbacks("MCAAMLH",[a]);var o=g._getField(k);(n.d_blob||n.blob)&&(o=n.d_blob,o||(o=n.blob),g._setFieldExpire(k,r),g._setField(k,o)),o||(o=""),g._callAllCallbacks(k,[o]),!n.error_msg&&g._newCustomerIDsHash&&g._setField("MCCIDH",g._newCustomerIDsHash)}if(t===b){var s=g._getField(O);s&&!g.overwriteCrossDomainMCIDAndAID||(s=g._findVisitorID(n),s?s!==T&&g._setFieldExpire(k,-1):s=T,g._setField(O,s)),s&&s!==T||(s=""),g._callAllCallbacks(O,[s])}if(g.idSyncDisableSyncs||g.disableIdSyncs)F.idCallNotProcesssed=!0;else{F.idCallNotProcesssed=!1;var l={};l.ibs=n.ibs,l.subdomain=n.subdomain,F.processIDCallData(l)}if(n===Object(n)){var c,d;u()&&g.isAllowed()&&(c=g._getField("MCOPTOUT"));var f=j.parseOptOut(n,c,T);c=f.optOut,d=f.d_ottl,g._setFieldExpire("MCOPTOUT",d,!0),g._setField("MCOPTOUT",c),g._callAllCallbacks("MCOPTOUT",[c])}},g._loading=null,g._getRemoteField=function(e,t,n,i,r){var a,o="",s=w.isFirstPartyAnalyticsVisitorIDCall(e),l={MCAAMLH:!0,MCAAMB:!0};if(u()&&g.isAllowed()){g._readVisitor(),o=g._getField(e,!0===l[e]);if(function(){return(!o||g._fieldsExpired&&g._fieldsExpired[e])&&(!g.disableThirdPartyCalls||s)}()){if(e===A||"MCOPTOUT"===e?a="MC":"MCAAMLH"===e||e===k?a=M:e===O&&(a=b),a)return!t||null!=g._loading&&g._loading[a]||(null==g._loading&&(g._loading={}),g._loading[a]=!0,g._loadData(a,t,function(t){if(!g._getField(e)){t&&N.setState(a,!0);var n="";e===A?n=g._generateLocalMID():a===M&&(n={error_msg:"timeout"}),g._setFields(a,n)}},r)),g._registerCallback(e,n),o||(t||g._setFields(a,{id:T}),"")}else o||(e===A?(g._registerCallback(e,n),o=g._generateLocalMID(),g.setMarketingCloudVisitorID(o)):e===O?(g._registerCallback(e,n),o="",g.setAnalyticsVisitorID(o)):(o="",i=!0))}return e!==A&&e!==O||o!==T||(o="",i=!0),n&&i&&g._callCallback(n,[o]),o},g._setMarketingCloudFields=function(e){g._readVisitor(),g._setFields("MC",e)},g._mapCustomerIDs=function(e){g.getAudienceManagerBlob(e,!0)},g._setAnalyticsFields=function(e){g._readVisitor(),g._setFields(b,e)},g._setAudienceManagerFields=function(e){g._readVisitor(),g._setFields(M,e)},g._getAudienceManagerURLData=function(e){var t=g.audienceManagerServer,n="",i=g._getField(A),r=g._getField(k,!0),a=g._getField(O),o=a&&a!==T?"&d_cid_ic=AVID%01"+encodeURIComponent(a):"";if(g.loadSSL&&g.audienceManagerServerSecure&&(t=g.audienceManagerServerSecure),t){var s,l,c=g.getCustomerIDs();if(c)for(s in c)L(s)&&(l=c[s],o+="&d_cid_ic="+encodeURIComponent(s)+"%01"+encodeURIComponent(l.id?l.id:"")+(l.authState?"%01"+l.authState:""));e||(e="_setAudienceManagerFields");var u="http"+(g.loadSSL?"s":"")+"://"+t+"/id",d="d_visid_ver="+g.version+(h&&-1!==u.indexOf("demdex.net")?"&gdpr=1&gdpr_force=1&gdpr_consent="+h:"")+"&d_rtbd=json&d_ver=2"+(!i&&g._use1stPartyMarketingCloudServer?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(g.marketingCloudOrgID)+"&d_nsid="+(g.idSyncContainerID||0)+(i?"&d_mid="+encodeURIComponent(i):"")+(g.idSyncDisable3rdPartySyncing||g.disableThirdPartyCookies?"&d_coppa=true":"")+(!0===D?"&d_coop_safe=1":!1===D?"&d_coop_unsafe=1":"")+(r?"&d_blob="+encodeURIComponent(r):"")+o,f=["s_c_il",g._in,e];return n=u+"?"+d+"&d_cb=s_c_il%5B"+g._in+"%5D."+e,{url:n,corsUrl:u+"?"+d,callback:f}}return{url:n}},g.appendVisitorIDsTo=function(e){try{var t=[[A,g._getField(A)],[O,g._getField(O)],["MCORGID",g.marketingCloudOrgID]];return g._addQuerystringParam(e,re.ADOBE_MC,s(t))}catch(t){return e}},g.appendSupplementalDataIDTo=function(e,t){if(!(t=t||g.getSupplementalDataID(w.generateRandomString(),!0)))return e;try{var n=s([["SDID",t],["MCORGID",g.marketingCloudOrgID]]);return g._addQuerystringParam(e,re.ADOBE_MC_SDID,n)}catch(t){return e}};var w={parseHash:function(e){var t=e.indexOf("#");return t>0?e.substr(t):""},hashlessUrl:function(e){var t=e.indexOf("#");return t>0?e.substr(0,t):e},addQueryParamAtLocation:function(e,t,n){var i=e.split("&");return n=null!=n?n:i.length,i.splice(n,0,t),i.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(e,t,n){if(e!==O)return!1;var i;return t||(t=g.trackingServer),n||(n=g.trackingServerSecure),!("string"!=typeof(i=g.loadSSL?n:t)||!i.length)&&(i.indexOf("2o7.net")<0&&i.indexOf("omtrdc.net")<0)},isObject:function(e){return Boolean(e&&e===Object(e))},removeCookie:function(e){Q.remove(e,{domain:g.cookieDomain})},isTrackingServerPopulated:function(){return!!g.trackingServer||!!g.trackingServerSecure},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1e3)},parsePipeDelimetedKeyValues:function(e){return e.split("|").reduce(function(e,t){var n=t.split("=");return e[n[0]]=decodeURIComponent(n[1]),e},{})},generateRandomString:function(e){e=e||5;for(var t="",n="abcdefghijklmnopqrstuvwxyz0123456789";e--;)t+=n[Math.floor(Math.random()*n.length)];return t},normalizeBoolean:function(e){return"true"===e||"false"!==e&&e},parseBoolean:function(e){return"true"===e||"false"!==e&&null},replaceMethodsWithFunction:function(e,t){for(var n in e)e.hasOwnProperty(n)&&"function"==typeof e[n]&&(e[n]=t);return e}};g._helpers=w;var F=ae(g,S);g._destinationPublishing=F,g.timeoutMetricsLog=[];var N={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},setState:function(e,t){switch(e){case"MC":!1===t?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=t;break;case b:!1===t?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=t;break;case M:!1===t?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=t}}};g.isClientSideMarketingCloudVisitorID=function(){return N.isClientSideMarketingCloudVisitorID},g.MCIDCallTimedOut=function(){return N.MCIDCallTimedOut},g.AnalyticsIDCallTimedOut=function(){return N.AnalyticsIDCallTimedOut},g.AAMIDCallTimedOut=function(){return N.AAMIDCallTimedOut},g.idSyncGetOnPageSyncInfo=function(){return g._readVisitor(),g._getField("MCSYNCSOP")},g.idSyncByURL=function(e){if(!g.isOptedOut()){var t=l(e||{});if(t.error)return t.error;var n,i,r=e.url,a=encodeURIComponent,o=F;return r=r.replace(/^https:/,"").replace(/^http:/,""),n=j.encodeAndBuildRequest(["",e.dpid,e.dpuuid||""],","),i=["ibs",a(e.dpid),"img",a(r),t.ttl,"",n],o.addMessage(i.join("|")),o.requestToProcess(),"Successfully queued"}},g.idSyncByDataSource=function(e){if(!g.isOptedOut())return e===Object(e)&&"string"==typeof e.dpuuid&&e.dpuuid.length?(e.url="//dpm.demdex.net/ibs:dpid="+e.dpid+"&dpuuid="+e.dpuuid,g.idSyncByURL(e)):"Error: config or config.dpuuid is empty"},He(g,F),g._getCookieVersion=function(e){e=e||g.cookieRead(g.cookieName);var t=re.VERSION_REGEX.exec(e);return t&&t.length>1?t[1]:null},g._resetAmcvCookie=function(e){var t=g._getCookieVersion();t&&!Z.isLessThan(t,e)||w.removeCookie(g.cookieName)},g.setAsCoopSafe=function(){D=!0},g.setAsCoopUnsafe=function(){D=!1},function(){if(g.configs=Object.create(null),w.isObject(n))for(var e in n)L(e)&&(g[e]=n[e],g.configs[e]=n[e])}(),function(){[["getMarketingCloudVisitorID"],["setCustomerIDs",void 0],["getAnalyticsVisitorID"],["getAudienceManagerLocationHint"],["getLocationHint"],["getAudienceManagerBlob"]].forEach(function(e){var t=e[0],n=2===e.length?e[1]:"",i=g[t];g[t]=function(e){return u()&&g.isAllowed()?i.apply(g,arguments):("function"==typeof e&&g._callCallback(e,[n]),n)}})}(),g.init=function(){if(c())return m.optIn.fetchPermissions(f,!0);!function(){if(w.isObject(n)){g.idSyncContainerID=g.idSyncContainerID||0,D="boolean"==typeof g.isCoopSafe?g.isCoopSafe:w.parseBoolean(g.isCoopSafe),g.resetBeforeVersion&&g._resetAmcvCookie(g.resetBeforeVersion),g._attemptToPopulateIdsFromUrl(),g._attemptToPopulateSdidFromUrl(),g._readVisitor();var e=g._getField(y),t=Math.ceil((new Date).getTime()/re.MILLIS_PER_DAY);g.idSyncDisableSyncs||g.disableIdSyncs||!F.canMakeSyncIDCall(e,t)||(g._setFieldExpire(k,-1),g._setField(y,t)),g.getMarketingCloudVisitorID(),g.getAudienceManagerLocationHint(),g.getAudienceManagerBlob(),g._mergeServerState(g.serverState)}else g._attemptToPopulateIdsFromUrl(),g._attemptToPopulateSdidFromUrl()}(),function(){if(!g.idSyncDisableSyncs&&!g.disableIdSyncs){F.checkDPIframeSrc();var e=function(){var e=F;e.readyToAttachIframe()&&e.attachIframe()};v.addEventListener("load",function(){S.windowLoaded=!0,e()});try{te.receiveMessage(function(e){F.receiveMessage(e.data)},F.iframeHost)}catch(e){}}}(),function(){g.whitelistIframeDomains&&re.POST_MESSAGE_ENABLED&&(g.whitelistIframeDomains=g.whitelistIframeDomains instanceof Array?g.whitelistIframeDomains:[g.whitelistIframeDomains],g.whitelistIframeDomains.forEach(function(e){var n=new B(t,e),i=K(g,n);te.receiveMessage(i,e)}))}()}};qe.config=se,_.Visitor=qe;var Xe=qe,We=function(e){if(j.isObject(e))return Object.keys(e).filter(function(t){return""!==e[t]}).reduce(function(t,n){var i="doesOptInApply"!==n?e[n]:se.normalizeConfig(e[n]),r=j.normalizeBoolean(i);return t[n]=r,t},Object.create(null))},Je=Ve.OptIn,Ke=Ve.IabPlugin;return Xe.getInstance=function(e,t){if(!e)throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");e.indexOf("@")<0&&(e+="@AdobeOrg");var n=function(){var t=_.s_c_il;if(t)for(var n=0;n<t.length;n++){var i=t[n];if(i&&"Visitor"===i._c&&i.marketingCloudOrgID===e)return i}}();if(n)return n;var i=We(t);!function(e){_.adobe.optIn=_.adobe.optIn||function(){var t=j.pluck(e,["doesOptInApply","previousPermissions","preOptInApprovals","isOptInStorageEnabled","optInStorageExpiry","isIabContext"]),n=e.optInCookieDomain||e.cookieDomain;n=n||$(),n=n===window.location.hostname?"":n,t.optInCookieDomain=n;var i=new Je(t,{cookies:Q});if(t.isIabContext){var r=new Ke(window.__cmp);i.registerPlugin(r)}return i}()}(i||{});var r=e,a=r.split("").reverse().join(""),o=new Xe(e,null,a);j.isObject(i)&&i.cookieDomain&&(o.cookieDomain=i.cookieDomain),function(){_.s_c_il.splice(--_.s_c_in,1)}();var s=j.getIeVersion();if("number"==typeof s&&s<10)return o._helpers.replaceMethodsWithFunction(o,function(){});var l=function(){try{return _.self!==_.parent}catch(e){return!0}}()&&!function(e){return e.cookieWrite("TEST_AMCV_COOKIE","T",1),"T"===e.cookieRead("TEST_AMCV_COOKIE")&&(e._helpers.removeCookie("TEST_AMCV_COOKIE"),!0)}(o)&&_.parent?new Y(e,i,o,_.parent):new Xe(e,i,a);return o=null,l.init(),l},function(){function e(){Xe.windowLoaded=!0}_.addEventListener?_.addEventListener("load",e):_.attachEvent&&_.attachEvent("onload",e),Xe.codeLoadEnd=(new Date).getTime()}(),Xe}();
|
26
|
+
|
27
|
+
/*
|
28
|
+
Start ActivityMap Module
|
29
|
+
|
30
|
+
The following module enables ActivityMap tracking in Adobe Analytics. ActivityMap
|
31
|
+
allows you to view data overlays on your links and content to understand how
|
32
|
+
users engage with your web site. If you do not intend to use ActivityMap, you
|
33
|
+
can remove the following block of code from your AppMeasurement.js file.
|
34
|
+
Additional documentation on how to configure ActivityMap is available at:
|
35
|
+
https://marketing.adobe.com/resources/help/en_US/analytics/activitymap/getting-started-admins.html
|
36
|
+
*/
|
37
|
+
function AppMeasurement_Module_ActivityMap(h){function q(){var a=f.pageYOffset+(f.innerHeight||0);a&&a>+g&&(g=a)}function r(){if(e.scrollReachSelector){var a=h.d.querySelector&&h.d.querySelector(e.scrollReachSelector);a?(g=a.scrollTop||0,a.addEventListener("scroll",function(){var d;(d=a&&a.scrollTop+a.clientHeight||0)>g&&(g=d)})):0<w--&&setTimeout(r,1E3)}}function l(a,d){var c,b,n;if(a&&d&&(c=e.c[d]||(e.c[d]=d.split(","))))for(n=0;n<c.length&&(b=c[n++]);)if(-1<a.indexOf(b))return null;p=1;return a}
|
38
|
+
function s(a,d,c,b,e){var f,k;if(a.dataset&&(k=a.dataset[d]))f=k;else if(a.getAttribute)if(k=a.getAttribute("data-"+c))f=k;else if(k=a.getAttribute(c))f=k;if(!f&&h.useForcedLinkTracking&&e){var g;a=a.onclick?""+a.onclick:"";varValue="";if(b&&a&&(d=a.indexOf(b),0<=d)){for(d+=b.length;d<a.length;)if(c=a.charAt(d++),0<="'\"".indexOf(c)){g=c;break}for(k=!1;d<a.length&&g;){c=a.charAt(d);if(!k&&c===g)break;"\\"===c?k=!0:(varValue+=c,k=!1);d++}}(g=varValue)&&(h.w[b]=g)}return f||e&&h.w[b]}function t(a,d,
|
39
|
+
c){var b;return(b=e[d](a,c))&&(p?(p=0,b):l(m(b),e[d+"Exclusions"]))}function u(a,d,c){var b;if(a&&!(1===(b=a.nodeType)&&(b=a.nodeName)&&(b=b.toUpperCase())&&x[b])&&(1===a.nodeType&&(b=a.nodeValue)&&(d[d.length]=b),c.a||c.t||c.s||!a.getAttribute||((b=a.getAttribute("alt"))?c.a=b:(b=a.getAttribute("title"))?c.t=b:"IMG"==(""+a.nodeName).toUpperCase()&&(b=a.getAttribute("src")||a.src)&&(c.s=b)),(b=a.childNodes)&&b.length))for(a=0;a<b.length;a++)u(b[a],d,c)}function m(a){if(null==a||void 0==a)return a;
|
40
|
+
try{return a.replace(RegExp("^[\\s\\n\\f\\r\\t\t-\r \u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u205f\u3000\ufeff]+","mg"),"").replace(RegExp("[\\s\\n\\f\\r\\t\t-\r \u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u205f\u3000\ufeff]+$","mg"),"").replace(RegExp("[\\s\\n\\f\\r\\t\t-\r \u00a0\u1680\u180e\u2000-\u200a\u2028\u2029\u205f\u3000\ufeff]{1,}","mg")," ").substring(0,254)}catch(d){}}var e=this;e.s=h;var f=window;f.s_c_in||(f.s_c_il=[],f.s_c_in=0);e._il=f.s_c_il;e._in=f.s_c_in;e._il[e._in]=e;f.s_c_in++;
|
41
|
+
e._c="s_m";var g=0,v,w=60;e.c={};var p=0,x={SCRIPT:1,STYLE:1,LINK:1,CANVAS:1};e._g=function(){var a,d,c,b=h.contextData,e=h.linkObject;(a=h.pageName||h.pageURL)&&(d=t(e,"link",h.linkName))&&(c=t(e,"region"))&&(b["a.activitymap.page"]=a.substring(0,255),b["a.activitymap.link"]=128<d.length?d.substring(0,128):d,b["a.activitymap.region"]=127<c.length?c.substring(0,127):c,0<g&&(b["a.activitymap.xy"]=10*Math.floor(g/10)),b["a.activitymap.pageIDType"]=h.pageName?1:0)};e._d=function(){e.trackScrollReach&&
|
42
|
+
!v&&(e.scrollReachSelector?r():(q(),f.addEventListener&&f.addEventListener("scroll",q,!1)),v=!0)};e.link=function(a,d){var c;if(d)c=l(m(d),e.linkExclusions);else if((c=a)&&!(c=s(a,"sObjectId","s-object-id","s_objectID",1))){var b,f;(f=l(m(a.innerText||a.textContent),e.linkExclusions))||(u(a,b=[],c={a:void 0,t:void 0,s:void 0}),(f=l(m(b.join(""))))||(f=l(m(c.a?c.a:c.t?c.t:c.s?c.s:void 0)))||!(b=(b=a.tagName)&&b.toUpperCase?b.toUpperCase():"")||("INPUT"==b||"SUBMIT"==b&&a.value?f=l(m(a.value)):"IMAGE"==
|
43
|
+
b&&a.src&&(f=l(m(a.src)))));c=f}return c};e.region=function(a){for(var d,c=e.regionIDAttribute||"id";a&&(a=a.parentNode);){if(d=s(a,c,c,c))return d;if("BODY"==a.nodeName)return"BODY"}}}
|
44
|
+
/* End ActivityMap Module */
|
45
|
+
/*
|
46
|
+
============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ===============
|
47
|
+
|
48
|
+
AppMeasurement for JavaScript version: 2.20.0
|
49
|
+
Copyright 1996-2016 Adobe, Inc. All Rights Reserved
|
50
|
+
More info available at http://www.adobe.com/marketing-cloud.html
|
51
|
+
*/
|
52
|
+
function AppMeasurement(r){var a=this;a.version="2.20.0";var h=window;h.s_c_in||(h.s_c_il=[],h.s_c_in=0);a._il=h.s_c_il;a._in=h.s_c_in;a._il[a._in]=a;h.s_c_in++;a._c="s_c";var q=h.AppMeasurement.hc;q||(q=null);var p=h,m,s;try{for(m=p.parent,s=p.location;m&&m.location&&s&&""+m.location!==""+s&&p.location&&""+m.location!==""+p.location&&m.location.host===s.host;)p=m,m=p.parent}catch(u){}a.C=function(a){try{console.log(a)}catch(b){}};a.Qa=function(a){return""+parseInt(a)==""+a};a.replace=function(a,
|
53
|
+
b,d){return!a||0>a.indexOf(b)?a:a.split(b).join(d)};a.escape=function(c){var b,d;if(!c)return c;c=encodeURIComponent(c);for(b=0;7>b;b++)d="+~!*()'".substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,"%"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf("+")?a.replace(c,"+"," "):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.Mb=function(){var c=h.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);
|
54
|
+
if(c&&!a.Ja&&!/^[0-9.]+$/.test(c)&&(b=b?parseInt(b):2,b=2<b?b:2,d=c.lastIndexOf("."),0<=d)){for(;0<=d&&1<b;)d=c.lastIndexOf(".",d-1),b--;a.Ja=0<d?c.substring(d):c}return a.Ja};a.c_r=a.cookieRead=function(c){c=a.escape(c);var b=" "+a.d.cookie,d=b.indexOf(" "+c+"="),f=0>d?d:b.indexOf(";",d);c=0>d?"":a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return"[[B]]"!=c?c:""};a.c_w=a.cookieWrite=function(c,b,d){var f=a.Mb(),e=a.cookieLifetime,g;b=""+b;e=e?(""+e).toUpperCase():"";d&&"SESSION"!=e&&"NONE"!=
|
55
|
+
e&&((g=""!=b?parseInt(e?e:0):-60)?(d=new Date,d.setTime(d.getTime()+1E3*g)):1===d&&(d=new Date,g=d.getYear(),d.setYear(g+2+(1900>g?1900:0))));return c&&"NONE"!=e?(a.d.cookie=a.escape(c)+"="+a.escape(""!=b?b:"[[B]]")+"; path=/;"+(d&&"SESSION"!=e?" expires="+d.toUTCString()+";":"")+(f?" domain="+f+";":"")+(a.writeSecureCookies?" secure;":""),a.cookieRead(c)==b):0};a.Jb=function(){var c=a.Util.getIeVersion();"number"===typeof c&&10>c&&(a.unsupportedBrowser=!0,a.wb(a,function(){}))};a.xa=function(){var a=
|
56
|
+
navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName||0<=a.indexOf("MSIE ")||0<=a.indexOf("Trident/")&&0<=a.indexOf("Windows NT 6")?!0:!1};a.wb=function(a,b){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&"function"===typeof a[d]&&(a[d]=b)};a.K=[];a.ea=function(c,b,d){if(a.Ka)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,k=["webkitvisibilitychange","visibilitychange"];g||(g=a.d.webkitVisibilityState);if(g&&"prerender"==
|
57
|
+
g){if(!a.fa)for(a.fa=1,d=0;d<k.length;d++)a.d.addEventListener(k[d],function(){var c=a.d.visibilityState;c||(c=a.d.webkitVisibilityState);"visible"==c&&(a.fa=0,a.delayReady())});f=1;e=0}else d||a.u("_d")&&(f=1);f&&(a.K.push({m:c,a:b,t:e}),a.fa||setTimeout(a.delayReady,a.maxDelay));return f};a.delayReady=function(){var c=(new Date).getTime(),b=0,d;for(a.u("_d")?b=1:a.za();0<a.K.length;){d=a.K.shift();if(b&&!d.t&&d.t>c){a.K.unshift(d);setTimeout(a.delayReady,parseInt(a.maxDelay/2));break}a.Ka=1;a[d.m].apply(a,
|
58
|
+
d.a);a.Ka=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.ea("setAccount",arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(",")),a.allAccounts=[],b.sort(),d=0;d<b.length;d++)0!=d&&b[d-1]==b[d]||a.allAccounts.push(b[d]);else a.allAccounts=c.split(",")};a.foreachVar=function(c,b){var d,f,e,g,k="";e=f="";if(a.lightProfileID)d=a.O,(k=a.lightTrackVars)&&(k=","+k+","+a.ka.join(",")+",");else{d=a.g;if(a.pe||a.linkType)k=a.linkTrackVars,f=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,
|
59
|
+
1).toUpperCase()+a.pe.substring(1),a[e]&&(k=a[e].cc,f=a[e].bc));k&&(k=","+k+","+a.F.join(",")+",");f&&k&&(k+=",events,")}b&&(b=","+b+",");for(f=0;f<d.length;f++)e=d[f],(g=a[e])&&(!k||0<=k.indexOf(","+e+","))&&(!b||0<=b.indexOf(","+e+","))&&c(e,g)};a.o=function(c,b,d,f,e){var g="",k,l,h,n,m=0;"contextData"==c&&(c="c");if(b){for(k in b)if(!(Object.prototype[k]||e&&k.substring(0,e.length)!=e)&&b[k]&&(!d||0<=d.indexOf(","+(f?f+".":"")+k+","))){h=!1;if(m)for(l=0;l<m.length;l++)if(k.substring(0,m[l].length)==
|
60
|
+
m[l]){h=!0;break}if(!h&&(""==g&&(g+="&"+c+"."),l=b[k],e&&(k=k.substring(e.length)),0<k.length))if(h=k.indexOf("."),0<h)l=k.substring(0,h),h=(e?e:"")+l+".",m||(m=[]),m.push(h),g+=a.o(l,b,d,f,h);else if("boolean"==typeof l&&(l=l?"true":"false"),l){if("retrieveLightData"==f&&0>e.indexOf(".contextData."))switch(h=k.substring(0,4),n=k.substring(4),k){case "transactionID":k="xact";break;case "channel":k="ch";break;case "campaign":k="v0";break;default:a.Qa(n)&&("prop"==h?k="c"+n:"eVar"==h?k="v"+n:"list"==
|
61
|
+
h?k="l"+n:"hier"==h&&(k="h"+n,l=l.substring(0,255)))}g+="&"+a.escape(k)+"="+a.escape(l)}}""!=g&&(g+="&."+c)}return g};a.usePostbacks=0;a.Pb=function(){var c="",b,d,f,e,g,k,l,h,n="",m="",p=e="",r=a.T();if(a.lightProfileID)b=a.O,(n=a.lightTrackVars)&&(n=","+n+","+a.ka.join(",")+",");else{b=a.g;if(a.pe||a.linkType)n=a.linkTrackVars,m=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(n=a[e].cc,m=a[e].bc));n&&(n=","+n+","+a.F.join(",")+",");m&&(m=","+m+",",n&&(n+=",events,"));
|
62
|
+
a.events2&&(p+=(""!=p?",":"")+a.events2)}if(r&&r.getCustomerIDs){e=q;if(g=r.getCustomerIDs())for(d in g)Object.prototype[d]||(f=g[d],"object"==typeof f&&(e||(e={}),f.id&&(e[d+".id"]=f.id),f.authState&&(e[d+".as"]=f.authState)));e&&(c+=a.o("cid",e))}a.AudienceManagement&&a.AudienceManagement.isReady()&&(c+=a.o("d",a.AudienceManagement.getEventCallConfigParams()));for(d=0;d<b.length;d++){e=b[d];g=a[e];f=e.substring(0,4);k=e.substring(4);g||("events"==e&&p?(g=p,p=""):"marketingCloudOrgID"==e&&r&&a.V("ECID")&&
|
63
|
+
(g=r.marketingCloudOrgID));if(g&&(!n||0<=n.indexOf(","+e+","))){switch(e){case "customerPerspective":e="cp";break;case "marketingCloudOrgID":e="mcorgid";break;case "supplementalDataID":e="sdid";break;case "timestamp":e="ts";break;case "dynamicVariablePrefix":e="D";break;case "visitorID":e="vid";break;case "marketingCloudVisitorID":e="mid";break;case "analyticsVisitorID":e="aid";break;case "audienceManagerLocationHint":e="aamlh";break;case "audienceManagerBlob":e="aamb";break;case "authState":e="as";
|
64
|
+
break;case "pageURL":e="g";255<g.length&&(a.pageURLRest=g.substring(255),g=g.substring(0,255));break;case "pageURLRest":e="-g";break;case "referrer":e="r";break;case "vmk":case "visitorMigrationKey":e="vmt";break;case "visitorMigrationServer":e="vmf";a.ssl&&a.visitorMigrationServerSecure&&(g="");break;case "visitorMigrationServerSecure":e="vmf";!a.ssl&&a.visitorMigrationServer&&(g="");break;case "charSet":e="ce";break;case "visitorNamespace":e="ns";break;case "cookieDomainPeriods":e="cdp";break;case "cookieLifetime":e=
|
65
|
+
"cl";break;case "variableProvider":e="vvp";break;case "currencyCode":e="cc";break;case "channel":e="ch";break;case "transactionID":e="xact";break;case "campaign":e="v0";break;case "latitude":e="lat";break;case "longitude":e="lon";break;case "resolution":e="s";break;case "colorDepth":e="c";break;case "javascriptVersion":e="j";break;case "javaEnabled":e="v";break;case "cookiesEnabled":e="k";break;case "browserWidth":e="bw";break;case "browserHeight":e="bh";break;case "connectionType":e="ct";break;case "homepage":e=
|
66
|
+
"hp";break;case "events":p&&(g+=(""!=g?",":"")+p);if(m)for(k=g.split(","),g="",f=0;f<k.length;f++)l=k[f],h=l.indexOf("="),0<=h&&(l=l.substring(0,h)),h=l.indexOf(":"),0<=h&&(l=l.substring(0,h)),0<=m.indexOf(","+l+",")&&(g+=(g?",":"")+k[f]);break;case "events2":g="";break;case "contextData":c+=a.o("c",a[e],n,e);g="";break;case "lightProfileID":e="mtp";break;case "lightStoreForSeconds":e="mtss";a.lightProfileID||(g="");break;case "lightIncrementBy":e="mti";a.lightProfileID||(g="");break;case "retrieveLightProfiles":e=
|
67
|
+
"mtsr";break;case "deleteLightProfiles":e="mtsd";break;case "retrieveLightData":a.retrieveLightProfiles&&(c+=a.o("mts",a[e],n,e));g="";break;default:a.Qa(k)&&("prop"==f?e="c"+k:"eVar"==f?e="v"+k:"list"==f?e="l"+k:"hier"==f&&(e="h"+k,g=g.substring(0,255)))}g&&(c+="&"+e+"="+("pev"!=e.substring(0,3)?a.escape(g):g))}"pev3"==e&&a.e&&(c+=a.e)}a.ja&&(c+="&lrt="+a.ja,a.ja=null);return c};a.B=function(a){var b=a.tagName;if("undefined"!=""+a.kc||"undefined"!=""+a.Yb&&"HTML"!=(""+a.Yb).toUpperCase())return"";
|
68
|
+
b=b&&b.toUpperCase?b.toUpperCase():"";"SHAPE"==b&&(b="");b&&(("INPUT"==b||"BUTTON"==b)&&a.type&&a.type.toUpperCase?b=a.type.toUpperCase():!b&&a.href&&(b="A"));return b};a.Ma=function(a){var b=h.location,d=a.href?a.href:"",f,e,g;f=d.indexOf(":");e=d.indexOf("?");g=d.indexOf("/");d&&(0>f||0<=e&&f>e||0<=g&&f>g)&&(e=a.protocol&&1<a.protocol.length?a.protocol:b.protocol?b.protocol:"",f=b.pathname.lastIndexOf("/"),d=(e?e+"//":"")+(a.host?a.host:b.host?b.host:"")+("/"!=d.substring(0,1)?b.pathname.substring(0,
|
69
|
+
0>f?0:f)+"/":"")+d);return d};a.L=function(c){var b=a.B(c),d,f,e="",g=0;return b&&(d=c.protocol,f=c.onclick,!c.href||"A"!=b&&"AREA"!=b||f&&d&&!(0>d.toLowerCase().indexOf("javascript"))?f?(e=a.replace(a.replace(a.replace(a.replace(""+f,"\r",""),"\n",""),"\t","")," ",""),g=2):"INPUT"==b||"SUBMIT"==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):"IMAGE"==b&&c.src&&(e=c.src):e=a.Ma(c),e)?{id:e.substring(0,100),type:g}:0};a.ic=function(c){for(var b=a.B(c),d=a.L(c);c&&
|
70
|
+
!d&&"BODY"!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.B(c),d=a.L(c);d&&"BODY"!=b||(c=0);c&&(b=c.onclick?""+c.onclick:"",0<=b.indexOf(".tl(")||0<=b.indexOf(".trackLink("))&&(c=0);return c};a.Xb=function(){var c,b,d=a.linkObject,f=a.linkType,e=a.linkURL,g,k;a.la=1;d||(a.la=0,d=a.clickObject);if(d){c=a.B(d);for(b=a.L(d);d&&!b&&"BODY"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.B(d),b=a.L(d);b&&"BODY"!=c||(d=0);if(d&&!a.linkObject){var l=d.onclick?""+d.onclick:"";if(0<=l.indexOf(".tl(")||
|
71
|
+
0<=l.indexOf(".trackLink("))d=0}}else a.la=1;!e&&d&&(e=a.Ma(d));e&&!a.linkLeaveQueryString&&(g=e.indexOf("?"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var m=0,n=0,p;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(l=e.toLowerCase(),g=l.indexOf("?"),k=l.indexOf("#"),0<=g?0<=k&&k<g&&(g=k):g=k,0<=g&&(l=l.substring(0,g)),g=a.linkDownloadFileTypes.toLowerCase().split(","),k=0;k<g.length;k++)(p=g[k])&&l.substring(l.length-(p.length+1))=="."+p&&(f="d");if(a.trackExternalLinks&&!f&&(l=e.toLowerCase(),a.Pa(l)&&
|
72
|
+
(a.linkInternalFilters||(a.linkInternalFilters=h.location.hostname),g=0,a.linkExternalFilters?(g=a.linkExternalFilters.toLowerCase().split(","),m=1):a.linkInternalFilters&&(g=a.linkInternalFilters.toLowerCase().split(",")),g))){for(k=0;k<g.length;k++)p=g[k],0<=l.indexOf(p)&&(n=1);n?m&&(f="e"):m||(f="e")}}a.linkObject=d;a.linkURL=e;a.linkType=f;if(a.trackClickMap||a.trackInlineStats)a.e="",d&&(f=a.pageName,e=1,d=d.sourceIndex,f||(f=a.pageURL,e=0),h.s_objectID&&(b.id=h.s_objectID,d=b.type=1),f&&b&&
|
73
|
+
b.id&&c&&(a.e="&pid="+a.escape(f.substring(0,255))+(e?"&pidt="+e:"")+"&oid="+a.escape(b.id.substring(0,100))+(b.type?"&oidt="+b.type:"")+"&ot="+c+(d?"&oi="+d:"")))};a.Qb=function(){var c=a.la,b=a.linkType,d=a.linkURL,f=a.linkName;b&&(d||f)&&(b=b.toLowerCase(),"d"!=b&&"e"!=b&&(b="o"),a.pe="lnk_"+b,a.pev1=d?a.escape(d):"",a.pev2=f?a.escape(f):"",c=1);a.abort&&(c=0);if(a.trackClickMap||a.trackInlineStats||a.Tb()){var b={},d=0,e=a.qb(),g=e?e.split("&"):0,k,l,h,e=0;if(g)for(k=0;k<g.length;k++)l=g[k].split("="),
|
74
|
+
f=a.unescape(l[0]).split(","),l=a.unescape(l[1]),b[l]=f;f=a.account.split(",");k={};for(h in a.contextData)h&&!Object.prototype[h]&&"a.activitymap."==h.substring(0,14)&&(k[h]=a.contextData[h],a.contextData[h]="");a.e=a.o("c",k)+(a.e?a.e:"");if(c||a.e){c&&!a.e&&(e=1);for(l in b)if(!Object.prototype[l])for(h=0;h<f.length;h++)for(e&&(g=b[l].join(","),g==a.account&&(a.e+=("&"!=l.charAt(0)?"&":"")+l,b[l]=[],d=1)),k=0;k<b[l].length;k++)g=b[l][k],g==f[h]&&(e&&(a.e+="&u="+a.escape(g)+("&"!=l.charAt(0)?"&":
|
75
|
+
"")+l+"&u=0"),b[l].splice(k,1),d=1);c||(d=1);if(d){e="";k=2;!c&&a.e&&(e=a.escape(f.join(","))+"="+a.escape(a.e),k=1);for(l in b)!Object.prototype[l]&&0<k&&0<b[l].length&&(e+=(e?"&":"")+a.escape(b[l].join(","))+"="+a.escape(l),k--);a.yb(e)}}}return c};a.qb=function(){if(a.useLinkTrackSessionStorage){if(a.Da())return h.sessionStorage.getItem(a.P)}else return a.cookieRead(a.P)};a.Da=function(){return h.sessionStorage?!0:!1};a.yb=function(c){a.useLinkTrackSessionStorage?a.Da()&&h.sessionStorage.setItem(a.P,
|
76
|
+
c):a.cookieWrite(a.P,c)};a.Rb=function(){if(!a.ac){var c=new Date,b=p.location,d,f,e=f=d="",g="",k="",l="1.2",h=a.cookieWrite("s_cc","true",0)?"Y":"N",m="",q="";if(c.setUTCDate&&(l="1.3",(0).toPrecision&&(l="1.5",c=[],c.forEach))){l="1.6";f=0;d={};try{f=new Iterator(d),f.next&&(l="1.7",c.reduce&&(l="1.8",l.trim&&(l="1.8.1",Date.parse&&(l="1.8.2",Object.create&&(l="1.8.5")))))}catch(r){}}d=screen.width+"x"+screen.height;e=navigator.javaEnabled()?"Y":"N";f=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;
|
77
|
+
g=a.w.innerWidth?a.w.innerWidth:a.d.documentElement.offsetWidth;k=a.w.innerHeight?a.w.innerHeight:a.d.documentElement.offsetHeight;try{a.b.addBehavior("#default#homePage"),m=a.b.jc(b)?"Y":"N"}catch(s){}try{a.b.addBehavior("#default#clientCaps"),q=a.b.connectionType}catch(t){}a.resolution=d;a.colorDepth=f;a.javascriptVersion=l;a.javaEnabled=e;a.cookiesEnabled=h;a.browserWidth=g;a.browserHeight=k;a.connectionType=q;a.homepage=m;a.ac=1}};a.Q={};a.loadModule=function(c,b){var d=a.Q[c];if(!d){d=h["AppMeasurement_Module_"+
|
78
|
+
c]?new h["AppMeasurement_Module_"+c](a):{};a.Q[c]=a[c]=d;d.jb=function(){return d.tb};d.zb=function(b){if(d.tb=b)a[c+"_onLoad"]=b,a.ea(c+"_onLoad",[a,d],1)||b(a,d)};try{Object.defineProperty?Object.defineProperty(d,"onLoad",{get:d.jb,set:d.zb}):d._olc=1}catch(f){d._olc=1}}b&&(a[c+"_onLoad"]=b,a.ea(c+"_onLoad",[a,d],1)||b(a,d))};a.u=function(c){var b,d;for(b in a.Q)if(!Object.prototype[b]&&(d=a.Q[b])&&(d._olc&&d.onLoad&&(d._olc=0,d.onLoad(a,d)),d[c]&&d[c]()))return 1;return 0};a.Tb=function(){return a.ActivityMap&&
|
79
|
+
a.ActivityMap._c?!0:!1};a.Ub=function(){var c=Math.floor(1E13*Math.random()),b=a.visitorSampling,d=a.visitorSamplingGroup,d="s_vsn_"+(a.visitorNamespace?a.visitorNamespace:a.account)+(d?"_"+d:""),f=a.cookieRead(d);if(b){b*=100;f&&(f=parseInt(f));if(!f){if(!a.cookieWrite(d,c))return 0;f=c}if(f%1E4>b)return 0}return 1};a.S=function(c,b){var d,f,e,g,k,h,m;m={};for(d=0;2>d;d++)for(f=0<d?a.Fa:a.g,e=0;e<f.length;e++)if(g=f[e],(k=c[g])||c["!"+g]){if(k&&!b&&("contextData"==g||"retrieveLightData"==g)&&a[g])for(h in a[g])k[h]||
|
80
|
+
(k[h]=a[g][h]);a[g]||(m["!"+g]=1);m[g]=a[g];a[g]=k}return m};a.gc=function(c){var b,d,f,e;for(b=0;2>b;b++)for(d=0<b?a.Fa:a.g,f=0;f<d.length;f++)e=d[f],c[e]=a[e],c[e]||"prop"!==e.substring(0,4)&&"eVar"!==e.substring(0,4)&&"hier"!==e.substring(0,4)&&"list"!==e.substring(0,4)&&"channel"!==e&&"events"!==e&&"eventList"!==e&&"products"!==e&&"productList"!==e&&"purchaseID"!==e&&"transactionID"!==e&&"state"!==e&&"zip"!==e&&"campaign"!==e&&"events2"!==e&&"latitude"!==e&&"longitude"!==e&&"ms_a"!==e&&"contextData"!==
|
81
|
+
e&&"supplementalDataID"!==e&&"tnt"!==e&&"timestamp"!==e&&"abort"!==e&&"useBeacon"!==e&&"linkObject"!==e&&"clickObject"!==e&&"linkType"!==e&&"linkName"!==e&&"linkURL"!==e&&"bodyClickTarget"!==e&&"bodyClickFunction"!==e||(c["!"+e]=1)};a.Lb=function(a){var b,d,f,e,g,k=0,h,m="",n="";if(a&&255<a.length&&(b=""+a,d=b.indexOf("?"),0<d&&(h=b.substring(d+1),b=b.substring(0,d),e=b.toLowerCase(),f=0,"http://"==e.substring(0,7)?f+=7:"https://"==e.substring(0,8)&&(f+=8),d=e.indexOf("/",f),0<d&&(e=e.substring(f,
|
82
|
+
d),g=b.substring(d),b=b.substring(0,d),0<=e.indexOf("google")?k=",q,ie,start,search_key,word,kw,cd,":0<=e.indexOf("yahoo.co")?k=",p,ei,":0<=e.indexOf("baidu.")&&(k=",wd,word,"),k&&h)))){if((a=h.split("&"))&&1<a.length){for(f=0;f<a.length;f++)e=a[f],d=e.indexOf("="),0<d&&0<=k.indexOf(","+e.substring(0,d)+",")?m+=(m?"&":"")+e:n+=(n?"&":"")+e;m&&n?h=m+"&"+n:n=""}d=253-(h.length-n.length)-b.length;a=b+(0<d?g.substring(0,d):"")+"?"+h}return a};a.cb=function(c){var b=a.d.visibilityState,d=["webkitvisibilitychange",
|
83
|
+
"visibilitychange"];b||(b=a.d.webkitVisibilityState);if(b&&"prerender"==b){if(c)for(b=0;b<d.length;b++)a.d.addEventListener(d[b],function(){var b=a.d.visibilityState;b||(b=a.d.webkitVisibilityState);"visible"==b&&c()});return!1}return!0};a.ba=!1;a.H=!1;a.Bb=function(){a.H=!0;a.p()};a.I=!1;a.Cb=function(c){a.marketingCloudVisitorID=c.MCMID;a.visitorOptedOut=c.MCOPTOUT;a.analyticsVisitorID=c.MCAID;a.audienceManagerLocationHint=c.MCAAMLH;a.audienceManagerBlob=c.MCAAMB;a.I=!1;a.p()};a.bb=function(c){a.maxDelay||
|
84
|
+
(a.maxDelay=250);return a.u("_d")?(c&&setTimeout(function(){c()},a.maxDelay),!1):!0};a.Z=!1;a.G=!1;a.za=function(){a.G=!0;a.p()};a.isReadyToTrack=function(){var c=!0;if(!a.nb()||!a.lb())return!1;a.pb()||(c=!1);a.sb()||(c=!1);return c};a.nb=function(){a.ba||a.H||(a.cb(a.Bb)?a.H=!0:a.ba=!0);return a.ba&&!a.H?!1:!0};a.lb=function(){var c=a.va();if(c)if(a.ra||a.aa)if(a.ra){if(!c.isApproved(c.Categories.ANALYTICS))return!1}else return!1;else return c.fetchPermissions(a.ub,!0),a.aa=!0,!1;return!0};a.V=
|
85
|
+
function(c){var b=a.va();return b&&!b.isApproved(b.Categories[c])?!1:!0};a.va=function(){return h.adobe&&h.adobe.optIn?h.adobe.optIn:null};a.Y=!0;a.pb=function(){var c=a.T();if(!c||!c.getVisitorValues)return!0;a.Y&&(a.Y=!1,a.I||(a.I=!0,c.getVisitorValues(a.Cb)));return!a.I};a.T=function(){var c=a.visitor;c&&!c.isAllowed()&&(c=null);return c};a.sb=function(){a.Z||a.G||(a.bb(a.za)?a.G=!0:a.Z=!0);return a.Z&&!a.G?!1:!0};a.aa=!1;a.ub=function(){a.aa=!1;a.ra=!0};a.j=q;a.q=0;a.callbackWhenReadyToTrack=
|
86
|
+
function(c,b,d){var f;f={};f.Gb=c;f.Fb=b;f.Db=d;a.j==q&&(a.j=[]);a.j.push(f);0==a.q&&(a.q=setInterval(a.p,100))};a.p=function(){var c;if(a.isReadyToTrack()&&(a.Ab(),a.j!=q))for(;0<a.j.length;)c=a.j.shift(),c.Fb.apply(c.Gb,c.Db)};a.Ab=function(){a.q&&(clearInterval(a.q),a.q=0)};a.ta=function(c){var b,d={};a.gc(d);if(c!=q)for(b in c)d[b]=c[b];a.callbackWhenReadyToTrack(a,a.Ea,[d]);a.Ca()};a.Nb=function(){var c=a.cookieRead("s_fid"),b="",d="",f;f=8;var e=4;if(!c||0>c.indexOf("-")){for(c=0;16>c;c++)f=
|
87
|
+
Math.floor(Math.random()*f),b+="0123456789ABCDEF".substring(f,f+1),f=Math.floor(Math.random()*e),d+="0123456789ABCDEF".substring(f,f+1),f=e=16;c=b+"-"+d}a.cookieWrite("s_fid",c,1)||(c=0);return c};a.Ea=function(c){var b=new Date,d="s"+Math.floor(b.getTime()/108E5)%10+Math.floor(1E13*Math.random()),f=b.getYear(),f="t="+a.escape(b.getDate()+"/"+b.getMonth()+"/"+(1900>f?f+1900:f)+" "+b.getHours()+":"+b.getMinutes()+":"+b.getSeconds()+" "+b.getDay()+" "+b.getTimezoneOffset()),e=a.T(),g;c&&(g=a.S(c,1));
|
88
|
+
a.Ub()&&!a.visitorOptedOut&&(a.wa()||(a.fid=a.Nb()),a.Xb(),a.usePlugins&&a.doPlugins&&a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(b.getTime()/1E3)),c=h.location,a.pageURL||(a.pageURL=c.href?c.href:c),a.referrer||a.Za||(c=a.Util.getQueryParam("adobe_mc_ref",null,null,!0),a.referrer=c||void 0===c?void 0===c?"":c:p.document.referrer),a.Za=1,a.referrer=a.Lb(a.referrer),a.u("_g")),a.Qb()&&!a.abort&&(e&&a.V("TARGET")&&!a.supplementalDataID&&e.getSupplementalDataID&&
|
89
|
+
(a.supplementalDataID=e.getSupplementalDataID("AppMeasurement:"+a._in,a.expectSupplementalData?!1:!0)),a.V("AAM")||(a.contextData["cm.ssf"]=1),a.Rb(),a.vb(),f+=a.Pb(),a.rb(d,f),a.u("_t"),a.referrer="")));a.Ca();g&&a.S(g,1)};a.t=a.track=function(c,b){b&&a.S(b);a.Y=!0;a.isReadyToTrack()?null!=a.j&&0<a.j.length?(a.ta(c),a.p()):a.Ea(c):a.ta(c)};a.vb=function(){a.writeSecureCookies&&!a.ssl&&a.$a()};a.$a=function(){a.contextData.excCodes=a.contextData.excCodes?a.contextData.excCodes:[];a.contextData.excCodes.push(1)};
|
90
|
+
a.Ca=function(){a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=h.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e=a.lightProfileID=a.useBeacon=a.referrer=0;a.contextData&&a.contextData.excCodes&&(a.contextData.excCodes=0)};a.Ba=[];a.registerPreTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);"function"==typeof c?a.Ba.push([c,b]):a.debugTracking&&a.C("DEBUG: Non function type passed to registerPreTrackCallback")};
|
91
|
+
a.gb=function(c){a.ua(a.Ba,c)};a.Aa=[];a.registerPostTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);"function"==typeof c?a.Aa.push([c,b]):a.debugTracking&&a.C("DEBUG: Non function type passed to registerPostTrackCallback")};a.fb=function(c){a.ua(a.Aa,c)};a.ua=function(c,b){if("object"==typeof c)for(var d=0;d<c.length;d++){var f=c[d][0],e=c[d][1].slice();e.unshift(b);if("function"==typeof f)try{f.apply(null,e)}catch(g){a.debugTracking&&a.C(g.message)}}};a.tl=
|
92
|
+
a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.bodyClickTarget=c,a.bodyClickFunction=e);return a.track(f)};a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;c<a.g.length;c++)if(b=a.g[c],"prop"==b.substring(0,4)||"eVar"==b.substring(0,4)||"hier"==b.substring(0,4)||"list"==b.substring(0,4)||"channel"==b||"events"==b||"eventList"==b||"products"==b||"productList"==b||
|
93
|
+
"purchaseID"==b||"transactionID"==b||"state"==b||"zip"==b||"campaign"==b)a[b]=void 0};a.tagContainerMarker="";a.rb=function(c,b){var d=a.hb()+"/"+c+"?AQB=1&ndh=1&pf=1&"+(a.ya()?"callback=s_c_il["+a._in+"].doPostbacks&et=1&":"")+b+"&AQE=1";a.gb(d);a.eb(d);a.U()};a.hb=function(){var c=a.ib();return"http"+(a.ssl?"s":"")+"://"+c+"/b/ss/"+a.account+"/"+(a.mobile?"5.":"")+(a.ya()?"10":"1")+"/JS-"+a.version+(a.$b?"T":"")+(a.tagContainerMarker?"-"+a.tagContainerMarker:"")};a.ya=function(){return a.AudienceManagement&&
|
94
|
+
a.AudienceManagement.isReady()||0!=a.usePostbacks};a.ib=function(){var c=a.dc,b=a.trackingServer;b?a.trackingServerSecure&&a.ssl&&(b=a.trackingServerSecure):(c=c?(""+c).toLowerCase():"d1","d1"==c?c="112":"d2"==c&&(c="122"),b=a.kb()+"."+c+".2o7.net");return b};a.kb=function(){var c=a.visitorNamespace;c||(c=a.account.split(",")[0],c=c.replace(/[^0-9a-z]/gi,""));return c};a.Ya=/{(%?)(.*?)(%?)}/;a.fc=RegExp(a.Ya.source,"g");a.Kb=function(c){if("object"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=
|
95
|
+
c.dests[b];if("string"==typeof d.c&&"aa."==d.id.substr(0,3))for(var f=d.c.match(a.fc),e=0;e<f.length;++e){var g=f[e],k=g.match(a.Ya),h="";"%"==k[1]&&"timezone_offset"==k[2]?h=(new Date).getTimezoneOffset():"%"==k[1]&&"timestampz"==k[2]&&(h=a.Ob());d.c=d.c.replace(g,a.escape(h))}}};a.Ob=function(){var c=new Date,b=new Date(6E4*Math.abs(c.getTimezoneOffset()));return a.k(4,c.getFullYear())+"-"+a.k(2,c.getMonth()+1)+"-"+a.k(2,c.getDate())+"T"+a.k(2,c.getHours())+":"+a.k(2,c.getMinutes())+":"+a.k(2,c.getSeconds())+
|
96
|
+
(0<c.getTimezoneOffset()?"-":"+")+a.k(2,b.getUTCHours())+":"+a.k(2,b.getUTCMinutes())};a.k=function(a,b){return(Array(a+1).join(0)+b).slice(-a)};a.pa={};a.doPostbacks=function(c){if("object"==typeof c)if(a.Kb(c),"object"==typeof a.AudienceManagement&&"function"==typeof a.AudienceManagement.isReady&&a.AudienceManagement.isReady()&&"function"==typeof a.AudienceManagement.passData)a.AudienceManagement.passData(c);else if("object"==typeof c&&"object"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=
|
97
|
+
c.dests[b];"object"==typeof d&&"string"==typeof d.c&&"string"==typeof d.id&&"aa."==d.id.substr(0,3)&&(a.pa[d.id]=new Image,a.pa[d.id].alt="",a.pa[d.id].src=d.c)}};a.eb=function(c){a.i||a.Sb();a.i.push(c);a.ia=a.A();a.Xa()};a.Sb=function(){a.i=a.Vb();a.i||(a.i=[])};a.Vb=function(){var c,b;if(a.oa()){try{(b=h.localStorage.getItem(a.ma()))&&(c=h.JSON.parse(b))}catch(d){}return c}};a.oa=function(){var c=!0;a.trackOffline&&a.offlineFilename&&h.localStorage&&h.JSON||(c=!1);return c};a.Na=function(){var c=
|
98
|
+
0;a.i&&(c=a.i.length);a.l&&c++;return c};a.U=function(){if(a.l&&(a.v&&a.v.complete&&a.v.D&&a.v.R(),a.l))return;a.Oa=q;if(a.na)a.ia>a.N&&a.Va(a.i),a.qa(500);else{var c=a.Eb();if(0<c)a.qa(c);else if(c=a.La())a.l=1,a.Wb(c),a.Zb(c)}};a.qa=function(c){a.Oa||(c||(c=0),a.Oa=setTimeout(a.U,c))};a.Eb=function(){var c;if(!a.trackOffline||0>=a.offlineThrottleDelay)return 0;c=a.A()-a.Ta;return a.offlineThrottleDelay<c?0:a.offlineThrottleDelay-c};a.La=function(){if(0<a.i.length)return a.i.shift()};a.Wb=function(c){if(a.debugTracking){var b=
|
99
|
+
"AppMeasurement Debug: "+c;c=c.split("&");var d;for(d=0;d<c.length;d++)b+="\n\t"+a.unescape(c[d]);a.C(b)}};a.wa=function(){return a.marketingCloudVisitorID||a.analyticsVisitorID};a.X=!1;var t;try{t=JSON.parse('{"x":"y"}')}catch(v){t=null}t&&"y"==t.x?(a.X=!0,a.W=function(a){return JSON.parse(a)}):h.$&&h.$.parseJSON?(a.W=function(a){return h.$.parseJSON(a)},a.X=!0):a.W=function(){return null};a.Zb=function(c){var b,d,f;a.mb(c)&&(d=1,b={send:function(c){a.useBeacon=!1;navigator.sendBeacon(c)?b.R():b.ga()}});
|
100
|
+
!b&&a.wa()&&2047<c.length&&(a.ab()&&(d=2,b=new XMLHttpRequest),b&&(a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks)&&(a.X?b.Ga=!0:b=0));!b&&a.ec&&(c=c.substring(0,2047));!b&&a.d.createElement&&(0!=a.usePostbacks||a.AudienceManagement&&a.AudienceManagement.isReady())&&(b=a.d.createElement("SCRIPT"))&&"async"in b&&((f=(f=a.d.getElementsByTagName("HEAD"))&&f[0]?f[0]:a.d.body)?(b.type="text/javascript",b.setAttribute("async","async"),d=3):b=0);b||(b=new Image,b.alt="",b.abort||
|
101
|
+
"undefined"===typeof h.InstallTrigger||(b.abort=function(){b.src=q}));b.Ua=Date.now();b.Ia=function(){try{b.D&&(clearTimeout(b.D),b.D=0)}catch(a){}};b.onload=b.R=function(){b.Ua&&(a.ja=Date.now()-b.Ua);a.fb(c);b.Ia();a.Ib();a.ca();a.l=0;a.U();if(b.Ga){b.Ga=!1;try{a.doPostbacks(a.W(b.responseText))}catch(d){}}};b.onabort=b.onerror=b.ga=function(){b.Ia();(a.trackOffline||a.na)&&a.l&&a.i.unshift(a.Hb);a.l=0;a.ia>a.N&&a.Va(a.i);a.ca();a.qa(500)};b.onreadystatechange=function(){4==b.readyState&&(200==
|
102
|
+
b.status?b.R():b.ga())};a.Ta=a.A();if(1===d)b.send(c);else if(2===d)f=c.indexOf("?"),d=c.substring(0,f),f=c.substring(f+1),f=f.replace(/&callback=[a-zA-Z0-9_.\[\]]+/,""),b.open("POST",d,!0),b.withCredentials=!0,b.send(f);else if(b.src=c,3===d){if(a.Ra)try{f.removeChild(a.Ra)}catch(e){}f.firstChild?f.insertBefore(b,f.firstChild):f.appendChild(b);a.Ra=a.v}b.D=setTimeout(function(){b.D&&(b.complete?b.R():(a.trackOffline&&b.abort&&b.abort(),b.ga()))},5E3);a.Hb=c;a.v=h["s_i_"+a.replace(a.account,",","_")]=
|
103
|
+
b;if(a.useForcedLinkTracking&&a.J||a.bodyClickFunction)a.forcedLinkTrackingTimeout||(a.forcedLinkTrackingTimeout=250),a.da=setTimeout(a.ca,a.forcedLinkTrackingTimeout)};a.mb=function(c){var b=!1;navigator.sendBeacon&&(a.ob(c)?b=!0:a.useBeacon&&(b=!0));a.xb(c)&&(b=!1);return b};a.ob=function(a){return a&&0<a.indexOf("pe=lnk_e")?!0:!1};a.xb=function(a){return 64E3<=a.length};a.ab=function(){return"undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?!0:!1};a.Ib=function(){if(a.oa()&&
|
104
|
+
!(a.Sa>a.N))try{h.localStorage.removeItem(a.ma()),a.Sa=a.A()}catch(c){}};a.Va=function(c){if(a.oa()){a.Xa();try{h.localStorage.setItem(a.ma(),h.JSON.stringify(c)),a.N=a.A()}catch(b){}}};a.Xa=function(){if(a.trackOffline){if(!a.offlineLimit||0>=a.offlineLimit)a.offlineLimit=10;for(;a.i.length>a.offlineLimit;)a.La()}};a.forceOffline=function(){a.na=!0};a.forceOnline=function(){a.na=!1};a.ma=function(){return a.offlineFilename+"-"+a.visitorNamespace+a.account};a.A=function(){return(new Date).getTime()};
|
105
|
+
a.Pa=function(a){a=a.toLowerCase();return 0!=a.indexOf("#")&&0!=a.indexOf("about:")&&0!=a.indexOf("opera:")&&0!=a.indexOf("javascript:")?!0:!1};a.setTagContainer=function(c){var b,d,f;a.$b=c;for(b=0;b<a._il.length;b++)if((d=a._il[b])&&"s_l"==d._c&&d.tagContainerName==c){a.S(d);if(d.lmq)for(b=0;b<d.lmq.length;b++)f=d.lmq[b],a.loadModule(f.n);if(d.ml)for(f in d.ml)if(a[f])for(b in c=a[f],f=d.ml[f],f)!Object.prototype[b]&&("function"!=typeof f[b]||0>(""+f[b]).indexOf("s_c_il"))&&(c[b]=f[b]);if(d.mmq)for(b=
|
106
|
+
0;b<d.mmq.length;b++)f=d.mmq[b],a[f.m]&&(c=a[f.m],c[f.f]&&"function"==typeof c[f.f]&&(f.a?c[f.f].apply(c,f.a):c[f.f].apply(c)));if(d.tq)for(b=0;b<d.tq.length;b++)a.track(d.tq[b]);d.s=a;break}};a.Util={urlEncode:a.escape,urlDecode:a.unescape,cookieRead:a.cookieRead,cookieWrite:a.cookieWrite,getQueryParam:function(c,b,d,f){var e,g="";b||(b=a.pageURL?a.pageURL:h.location);d=d?d:"&";if(!c||!b)return g;b=""+b;e=b.indexOf("?");if(0>e)return g;b=d+b.substring(e+1)+d;if(!f||!(0<=b.indexOf(d+c+d)||0<=b.indexOf(d+
|
107
|
+
c+"="+d))){e=b.indexOf("#");0<=e&&(b=b.substr(0,e)+d);e=b.indexOf(d+c+"=");if(0>e)return g;b=b.substring(e+d.length+c.length+1);e=b.indexOf(d);0<=e&&(b=b.substring(0,e));0<b.length&&(g=a.unescape(b));return g}},getIeVersion:function(){return document.documentMode?document.documentMode:a.xa()?7:null}};a.F="supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL customerPerspective referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData".split(" ");
|
108
|
+
a.g=a.F.concat("purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt".split(" "));a.ka="timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy".split(" ");a.O=a.ka.slice(0);a.Fa="account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout writeSecureCookies useLinkTrackSessionStorage trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData useBeacon usePostbacks registerPreTrackCallback registerPostTrackCallback bodyClickTarget bodyClickFunction AudienceManagement".split(" ");
|
109
|
+
for(m=0;250>=m;m++)76>m&&(a.g.push("prop"+m),a.O.push("prop"+m)),a.g.push("eVar"+m),a.O.push("eVar"+m),6>m&&a.g.push("hier"+m),4>m&&a.g.push("list"+m);m="pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID ms_a".split(" ");a.g=a.g.concat(m);a.F=a.F.concat(m);a.ssl=0<=h.location.protocol.toLowerCase().indexOf("https");a.charSet="UTF-8";a.contextData={};a.writeSecureCookies=
|
110
|
+
!1;a.offlineThrottleDelay=0;a.offlineFilename="AppMeasurement.offline";a.P="s_sq";a.Ta=0;a.ia=0;a.N=0;a.Sa=0;a.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx";a.w=h;a.d=h.document;a.ca=function(){a.da&&(h.clearTimeout(a.da),a.da=q);a.bodyClickTarget&&a.J&&a.bodyClickTarget.dispatchEvent(a.J);a.bodyClickFunction&&("function"==typeof a.bodyClickFunction?a.bodyClickFunction():a.bodyClickTarget&&a.bodyClickTarget.href&&(a.d.location=a.bodyClickTarget.href));a.bodyClickTarget=
|
111
|
+
a.J=a.bodyClickFunction=0};a.Wa=function(){a.b=a.d.body;a.b?(a.r=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById("cppXYctnr")||c&&c["s_fe_"+a._in])){if(a.Ha)if(a.useForcedLinkTracking)a.b.removeEventListener("click",a.r,!1);else{a.b.removeEventListener("click",a.r,!0);a.Ha=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.M&&a.M==a.clickObject||!(a.clickObject.tagName||a.clickObject.parentElement||a.clickObject.parentNode))a.clickObject=
|
112
|
+
0;else{var k=a.M=a.clickObject;a.ha&&(clearTimeout(a.ha),a.ha=0);a.ha=setTimeout(function(){a.M==k&&(a.M=0)},1E4);f=a.Na();a.track();if(f<a.Na()&&a.useForcedLinkTracking&&c.target){for(e=c.target;e&&e!=a.b&&"A"!=e.tagName.toUpperCase()&&"AREA"!=e.tagName.toUpperCase();)e=e.parentNode;if(e&&(g=e.href,a.Pa(g)||(g=0),d=e.target,c.target.dispatchEvent&&g&&(!d||"_self"==d||"_top"==d||"_parent"==d||h.name&&d==h.name))){try{b=a.d.createEvent("MouseEvents")}catch(l){b=new h.MouseEvent}if(b){try{b.initMouseEvent("click",
|
113
|
+
c.bubbles,c.cancelable,c.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget)}catch(m){b=0}b&&(b["s_fe_"+a._in]=b.s_fe=1,c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),c.preventDefault(),a.bodyClickTarget=c.target,a.J=b)}}}}}catch(n){a.clickObject=0}}},a.b&&a.b.attachEvent?a.b.attachEvent("onclick",a.r):a.b&&a.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf("WebKit")&&a.d.createEvent||
|
114
|
+
0<=navigator.userAgent.indexOf("Firefox/2")&&h.MouseEvent)&&(a.Ha=1,a.useForcedLinkTracking=1,a.b.addEventListener("click",a.r,!0)),a.b.addEventListener("click",a.r,!1))):setTimeout(a.Wa,30)};a.ec=a.xa();a.Jb();a.lc||(r?a.setAccount(r):a.C("Error, missing Report Suite ID in AppMeasurement initialization"),a.Wa(),a.loadModule("ActivityMap"))}
|
115
|
+
function s_gi(r){var a,h=window.s_c_il,q,p,m=r.split(","),s,u,t=0;if(h)for(q=0;!t&&q<h.length;){a=h[q];if("s_c"==a._c&&(a.account||a.oun))if(a.account&&a.account==r)t=1;else for(p=a.account?a.account:a.oun,p=a.allAccounts?a.allAccounts:p.split(","),s=0;s<m.length;s++)for(u=0;u<p.length;u++)m[s]==p[u]&&(t=1);q++}t?a.setAccount&&a.setAccount(r):a=new AppMeasurement(r);return a}AppMeasurement.getInstance=s_gi;window.s_objectID||(window.s_objectID=0);
|
116
|
+
function s_pgicq(){var r=window,a=r.s_giq,h,q,p;if(a)for(h=0;h<a.length;h++)q=a[h],p=s_gi(q.oun),p.setAccount(q.un),p.setTagContainer(q.tagContainerName);r.s_giq=0}s_pgicq();
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
const {
|
2
|
+
utils: { getProjects },
|
3
|
+
} = require('@commitlint/config-nx-scopes');
|
4
|
+
|
5
|
+
module.exports = {
|
6
|
+
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'],
|
7
|
+
parserPreset: {
|
8
|
+
parserOpts: {
|
9
|
+
referenceActions: null,
|
10
|
+
issuePrefixes: [],
|
11
|
+
},
|
12
|
+
},
|
13
|
+
rules: {
|
14
|
+
'scope-enum': async ctx => [
|
15
|
+
2,
|
16
|
+
'always',
|
17
|
+
[
|
18
|
+
...(await getProjects(ctx)),
|
19
|
+
// Insert custom scopes below:
|
20
|
+
'release',
|
21
|
+
'monorepo',
|
22
|
+
'examples',
|
23
|
+
'deps',
|
24
|
+
],
|
25
|
+
],
|
26
|
+
},
|
27
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
2
|
+
root = true
|
3
|
+
|
4
|
+
[*]
|
5
|
+
charset = utf-8
|
6
|
+
indent_style = space
|
7
|
+
indent_size = 2
|
8
|
+
insert_final_newline = true
|
9
|
+
trim_trailing_whitespace = true
|
10
|
+
|
11
|
+
[*.ts]
|
12
|
+
quote_type = single
|
13
|
+
|
14
|
+
[*.md]
|
15
|
+
max_line_length = off
|
16
|
+
trim_trailing_whitespace = false
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# SampleApp
|
2
|
+
|
3
|
+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.9.
|
4
|
+
|
5
|
+
## Development server
|
6
|
+
|
7
|
+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
|
8
|
+
|
9
|
+
## Code scaffolding
|
10
|
+
|
11
|
+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
12
|
+
|
13
|
+
## Build
|
14
|
+
|
15
|
+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
|
16
|
+
|
17
|
+
## Running unit tests
|
18
|
+
|
19
|
+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
20
|
+
|
21
|
+
## Running end-to-end tests
|
22
|
+
|
23
|
+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
|
24
|
+
|
25
|
+
## Further help
|
26
|
+
|
27
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
@@ -0,0 +1,83 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
3
|
+
"version": 1,
|
4
|
+
"newProjectRoot": "projects",
|
5
|
+
"projects": {
|
6
|
+
"sample-app": {
|
7
|
+
"projectType": "application",
|
8
|
+
"schematics": {},
|
9
|
+
"root": "",
|
10
|
+
"sourceRoot": "src",
|
11
|
+
"prefix": "app",
|
12
|
+
"architect": {
|
13
|
+
"build": {
|
14
|
+
"builder": "@angular-devkit/build-angular:browser",
|
15
|
+
"options": {
|
16
|
+
"outputPath": "dist/sample-app",
|
17
|
+
"index": "src/index.html",
|
18
|
+
"main": "src/main.ts",
|
19
|
+
"polyfills": ["zone.js"],
|
20
|
+
"tsConfig": "tsconfig.app.json",
|
21
|
+
"assets": ["src/favicon.ico", "src/assets"],
|
22
|
+
"styles": ["src/styles.css"],
|
23
|
+
"scripts": []
|
24
|
+
},
|
25
|
+
"configurations": {
|
26
|
+
"production": {
|
27
|
+
"budgets": [
|
28
|
+
{
|
29
|
+
"type": "initial",
|
30
|
+
"maximumWarning": "500kb",
|
31
|
+
"maximumError": "1mb"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"type": "anyComponentStyle",
|
35
|
+
"maximumWarning": "2kb",
|
36
|
+
"maximumError": "4kb"
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"outputHashing": "all"
|
40
|
+
},
|
41
|
+
"development": {
|
42
|
+
"buildOptimizer": false,
|
43
|
+
"optimization": false,
|
44
|
+
"vendorChunk": true,
|
45
|
+
"extractLicenses": false,
|
46
|
+
"sourceMap": true,
|
47
|
+
"namedChunks": true
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"defaultConfiguration": "production"
|
51
|
+
},
|
52
|
+
"serve": {
|
53
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
54
|
+
"configurations": {
|
55
|
+
"production": {
|
56
|
+
"browserTarget": "sample-app:build:production"
|
57
|
+
},
|
58
|
+
"development": {
|
59
|
+
"browserTarget": "sample-app:build:development"
|
60
|
+
}
|
61
|
+
},
|
62
|
+
"defaultConfiguration": "development"
|
63
|
+
},
|
64
|
+
"extract-i18n": {
|
65
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
66
|
+
"options": {
|
67
|
+
"browserTarget": "sample-app:build"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"test": {
|
71
|
+
"builder": "@angular-devkit/build-angular:karma",
|
72
|
+
"options": {
|
73
|
+
"polyfills": ["zone.js", "zone.js/testing"],
|
74
|
+
"tsConfig": "tsconfig.spec.json",
|
75
|
+
"assets": ["src/favicon.ico", "src/assets"],
|
76
|
+
"styles": ["src/styles.css"],
|
77
|
+
"scripts": []
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|