:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(hog): add JavaScript sourcemap inject, upload and process (#124568)
Rafael Audibert4d549afdcfdd
diff --git a/.gitattributes b/.gitattributesindex 057cd876c1f4..60398f845fff 100644--- a/.gitattributes+++ b/.gitattributes@@ -43,3 +43,5 @@ common/hogql_parser/HogQLParserVisitor.cpp linguist-generatedcommon/hogql_parser/HogQLParserVisitor.h linguist-generatedcommon/hogql_parser/HogQLParserBaseVisitor.cpp linguist-generatedcommon/hogql_parser/HogQLParserBaseVisitor.h linguist-generated+hog/test/parity/bundles/** linguist-generated -text+hog/test/parity/golden/** linguist-generateddiff --git a/.oxfmtrc.json b/.oxfmtrc.jsonindex 4201c6b93d13..c04848aeef9a 100644--- a/.oxfmtrc.json+++ b/.oxfmtrc.json@@ -163,6 +163,8 @@"products/review_hog/backend/reviewer/prompts/**/schema.json","**/chart/*/templates/**","products/metrics/agent/tests/**/golden/**",+ "hog/test/parity/bundles/**",+ "hog/test/parity/golden/**","frontend/dist/","frontend/**/*LogicType.ts","bin/validate-setup-tasks.mjs",diff --git a/.oxlintrc.json b/.oxlintrc.jsonindex 298e862e816e..e7f6efe90140 100644--- a/.oxlintrc.json+++ b/.oxlintrc.json@@ -28,7 +28,8 @@"frontend/src/generated/**","services/mcp/**/generated.ts","services/mcp/schema/tool-inputs.json",- "products/**/frontend/generated/**"+ "products/**/frontend/generated/**",+ "hog/test/parity/bundles/**"],"rules": {"no-constant-condition": "off",diff --git a/hog/AGENTS.md b/hog/AGENTS.mdindex 9dcd495bc297..642f6bef1b25 100644--- a/hog/AGENTS.md+++ b/hog/AGENTS.md@@ -4,15 +4,15 @@## Layout-| Path | Holds |-| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |-| `src/commands/` | One file per command. `index.ts` is the tree of every command; `legacy.ts` holds the ones posthog-cli still owns |-| `src/core/` | The shared parts every command uses: command definitions, context and global options, output, agent detection, errors, runtime, the manifest |-| `src/posthog/` | The PostHog API client and credentials |-| `src/error-tracking/` | Symbol upload: discovery, artifact types under `kinds/`, the container and content hash, releases, git, the upload protocol |-| `test/parity/` | Goldens recorded from posthog-cli and the tests that hold hog to them. Read its README before changing anything that reaches an upload |-| `src/cli.ts` | Turns the command tree into a commander program, runs it, and maps errors to exit codes |-| `src/testing.ts` | `runHog` and a fake runtime, so tests run the real CLI without a process or a network |+| Path | Holds |+| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `src/commands/` | One file per command. `index.ts` is the tree of every command; `legacy.ts` holds the ones posthog-cli still owns |+| `src/core/` | The shared parts every command uses: command definitions, context and global options, output, agent detection, errors, runtime, the manifest |+| `src/posthog/` | The PostHog API client and credentials |+| `src/error-tracking/` | Symbol upload: discovery, artifact types under `kinds/`, the container and content hash, releases, git, the upload protocol, and `run.ts`, the inject and upload steps the commands share |+| `test/parity/` | Goldens recorded from posthog-cli and the tests that hold hog to them. Read its README before changing anything that reaches an upload |+| `src/cli.ts` | Turns the command tree into a commander program, runs it, and maps errors to exit codes |+| `src/testing.ts` | `runHog` and a fake runtime, so tests run the real CLI without a process or a network |Import from another folder with `@/`, which `tsconfig.json` maps to `src/`, as in `import { defineCommand } from '@/core/command'`. Use `./` only inside the same folder.diff --git a/hog/README.md b/hog/README.mdindex 832df579ee3d..c4b3f06ae027 100644--- a/hog/README.md+++ b/hog/README.md@@ -18,7 +18,9 @@ The commands `posthog-cli` keeps under `exp` (`query`, `endpoints`, `logs`, `tas| `hog auth logout` | Removes the stored key. The key stays valid in PostHog until you delete it there. || `hog query run <query>` | Runs a HogQL query. `-` reads the query from stdin. || `hog query check <query>` | Checks a query without running it. Exits with code 1 when the query has errors. |-| `hog error-tracking upload [paths...]` | Uploads symbols for readable stack traces. ProGuard and R8 mappings so far. `hog et` is an alias. |+| `hog error-tracking inject [paths...]` | Adds chunk IDs to JavaScript bundles and their sourcemaps. `hog et` is an alias for `hog error-tracking`. |+| `hog error-tracking upload [paths...]` | Uploads symbols for readable stack traces: JavaScript sourcemaps, and ProGuard and R8 mappings. |+| `hog error-tracking process [paths...]` | Runs `inject`, then `upload`. Use it in CI after the build. || `hog config check`, `hog config schema` | Check `posthog.json` against its schema, or print the schema. || `hog commands` | Lists every command, its arguments, options and scopes. || Everything else | Not ported yet. Exits with code 1 and prints the `posthog-cli` command to run instead, with the same arguments. |@@ -55,6 +57,27 @@ Point `$schema` at the published schema to get validation in your editor:`posthog.schema.json` is generated from `src/core/config.ts` with `pnpm --filter @posthog/hog schema`.+## Error tracking++`hog error-tracking` finds the artifacts in each path and detects their type from the files:++- a `.js`, `.mjs` or `.cjs` file is a JavaScript bundle when its sourcemap exists, through its `sourceMappingURL` comment or a `.map` file next to it+- a `.txt` file is a ProGuard or R8 mapping when its content parses as one++Without paths, the commands read `errorTracking.sources` from `posthog.json`, where `ignore` globs skip files.+`--kind` skips detection.++JavaScript releases work in two modes, as in posthog-cli:++- `event`, the default, puts the release in the snippet hog adds to each bundle, so every event carries it. Chunk IDs come from the bundle content, so the same build gets the same IDs.+- `symbol-set` puts the release in the sourcemap, and gives a bundle a new random chunk ID when its release changes.++hog uploads the same bytes and content hashes as posthog-cli, so either CLI can re-upload what the other uploaded. A few things differ on purpose:++- `posthog-cli sourcemap` and `posthog-cli proguard` are `hog error-tracking`, with paths as arguments instead of `--directory` and `--path`+- hog walks folders in sorted order and skips `node_modules`, `.git` and symlinks, so two machines visit the same files in the same order+- `--dry-run` shows the plan and the content hashes without writing files or contacting PostHog. posthog-cli's `--dry-run` skips the whole command.+## Credentials`hog` reads the same credentials as `posthog-cli`, in the same order:diff --git a/hog/src/cli.test.ts b/hog/src/cli.test.tsindex 99b3468f1a2b..0231ef16cc18 100644--- a/hog/src/cli.test.ts+++ b/hog/src/cli.test.ts@@ -65,10 +65,13 @@ describe('hog', () => {expect(result.error()).toMatchObject({ code })})- test('a command that moved into a group points to its full name', async () => {- const result = await runHog(['login'])+ test.each([+ ['login', 'Did you mean `hog auth login`?'],+ ['sourcemap', '`sourcemap` is `hog error-tracking inject|upload|process` in hog.'],+ ])('a command that moved, like %s, points to its new name', async (name, message) => {+ const result = await runHog([name, 'upload'])expect(result.exitCode).toBe(2)- expect(result.error().message).toContain('Did you mean `hog auth login`?')+ expect(result.error().message).toContain(message)})test('a person sees errors as text', async () => {@@ -96,7 +99,9 @@ describe('hog', () => {'query run','query check','query editor',+ 'error-tracking inject','error-tracking upload',+ 'error-tracking process','config check','config schema','commands',diff --git a/hog/src/cli.ts b/hog/src/cli.tsindex 27d61cf93772..8d095c7d5a89 100644--- a/hog/src/cli.ts+++ b/hog/src/cli.ts@@ -263,6 +263,18 @@ function nestedMatches(tree: CommandTree, name: string, prefix = ''): string[] {})}+// posthog-cli commands that hog groups under a new name, with the flags that changed.+const RENAMED: Record<string, { to: string; hint: string }> = {+ sourcemap: {+ to: 'error-tracking inject|upload|process',+ hint: 'Pass the folders as arguments instead of --directory, as in `hog error-tracking process dist`.',+ },+ proguard: {+ to: 'error-tracking upload',+ hint: 'Pass the mapping as an argument instead of --path, as in `hog error-tracking upload mapping.txt --map-id <id>`.',+ },+}+function toHogError(caught: unknown): HogError {if (caught instanceof HogError) {return caught@@ -272,6 +284,15 @@ function toHogError(caught: unknown): HogError {const sentence = message.charAt(0).toUpperCase() + message.slice(1)if (caught.code === 'commander.unknownCommand') {const name = /unknown command '([^']+)'/.exec(caught.message)?.[1] ?? ''+ const renamed = RENAMED[name]+ if (renamed) {+ return new HogError(+ 'unknown_command',+ `\`${name}\` is \`hog ${renamed.to}\` in hog.`,+ renamed.hint,+ EXIT_USAGE+ )+ }const [match] = nestedMatches(COMMANDS, name)const message = match ? `Unknown command '${name}'. Did you mean \`hog ${match}\`?` : sentencereturn new HogError(diff --git a/hog/src/commands/error-tracking/error-tracking.test.ts b/hog/src/commands/error-tracking/error-tracking.test.tsindex bee6f8ba5c38..7fa8b43356ff 100644--- a/hog/src/commands/error-tracking/error-tracking.test.ts+++ b/hog/src/commands/error-tracking/error-tracking.test.ts@@ -1,8 +1,9 @@import { describe, expect, test } from 'bun:test'-import { mkdirSync, mkdtempSync, symlinkSync, writeFileSync } from 'node:fs'+import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, symlinkSync, writeFileSync } from 'node:fs'import { tmpdir } from 'node:os'import { join } from 'node:path'+import { cleanUp, cssTargets } from '@/error-tracking/cleanup'import { contentHash, SymbolDataType, writeSymbolData } from '@/error-tracking/container'import { runHog } from '@/testing'@@ -42,6 +43,9 @@ describe('hog error-tracking upload', () => {expect(result.json()).toEqual({dryRun: true,release: { name: 'app', version: '2.0', id: null },+ skipped: [],+ warnings: [],+ deletedMaps: [],symbolSets: [{path: 'build/mapping.txt',@@ -57,6 +61,107 @@ describe('hog error-tracking upload', () => {})})+ test('--dry-run leaves bundles and maps untouched, and ignore globs skip files', async () => {+ const bundle = 'a();\n//# sourceMappingURL=a.js.map\n'+ const map = JSON.stringify({ version: 3, sources: ['a.ts'], names: [], mappings: 'AAAA' })+ const folder = project({+ 'posthog.json': JSON.stringify({ errorTracking: { sources: [{ path: 'dist', ignore: ['vendor/**'] }] } }),+ 'dist/a.js': bundle,+ 'dist/a.js.map': map,+ 'dist/vendor/b.js': bundle.replace('a.js.map', 'b.js.map'),+ 'dist/vendor/b.js.map': map,+ })+ const result = await runHog(['et', 'process', '--dry-run'], {+ env: { CLAUDECODE: '1' },+ cwd: folder,+ useDisk: true,+ })++ expect(result.exitCode).toBe(0)+ expect(result.json()).toMatchObject({+ dryRun: true,+ injected: [{ path: 'dist/a.js', action: 'injected' }],+ symbolSets: [{ path: 'dist/a.js', kind: 'js', status: 'planned' }],+ })+ expect(readFileSync(join(folder, 'dist/a.js'), 'utf8')).toBe(bundle)+ expect(readFileSync(join(folder, 'dist/a.js.map'), 'utf8')).toBe(map)+ })++ const MAP = JSON.stringify({ version: 3, sources: ['a.ts'], names: [], mappings: 'AAAA' })+ test.each([+ [+ 'a reference to a JSON file that is not a sourcemap',+ { 'dist/a.js': 'a();\n//# sourceMappingURL=../settings.json\n', 'settings.json': '{"theme":"dark"}' },+ [],+ 'settings.json',+ "isn't a sourcemap",+ ],+ [+ 'a sourcemap that matches an ignore pattern',+ { 'dist/a.js': 'a();\n//# sourceMappingURL=a.js.map\n', 'dist/a.js.map': MAP },+ ['a.js.map'],+ 'dist/a.js.map',+ 'ignore pattern',+ ],+ ])('inject skips %s and leaves it alone', async (_name, files, ignore, untouched, reason) => {+ const folder = project({+ 'posthog.json': JSON.stringify({ errorTracking: { sources: [{ path: 'dist', ignore }] } }),+ 'dist/b.js': 'b();\n//# sourceMappingURL=b.js.map\n',+ 'dist/b.js.map': MAP,+ ...files,+ })+ const before = readFileSync(join(folder, untouched), 'utf8')+ const result = await runHog(['et', 'inject'], { env: { CLAUDECODE: '1' }, cwd: folder, useDisk: true })++ expect(result.exitCode).toBe(0)+ expect(result.json().skipped).toEqual([+ { path: expect.stringMatching(/dist\/a\.js$/), reason: expect.stringContaining(reason) },+ ])+ expect(readFileSync(join(folder, untouched), 'utf8')).toBe(before)+ })++ test('--delete-after leaves alone CSS maps outside the selected paths, ignored maps, and JSON that is not a map', () => {+ const folder = project({+ 'dist/broken.css': 'a{}\n/*# sourceMappingURL=%FF.css.map */\n',+ 'dist/outside.css': 'a{}\n/*# sourceMappingURL=../maps/outside.css.map */\n',+ 'maps/outside.css.map': MAP,+ 'dist/settings.css': 'a{}\n/*# sourceMappingURL=settings.json */\n',+ 'dist/settings.json': '{"theme":"dark"}',+ 'dist/ignored.css': 'a{}\n/*# sourceMappingURL=ignored.css.map */\n',+ 'dist/ignored.css.map': MAP,+ 'dist/kept.css': 'a{}\n/*# sourceMappingURL=kept.css.map */\n',+ 'dist/kept.css.map': MAP,+ })+ const warnings: string[] = []+ const css = cssTargets(+ ['broken', 'outside', 'settings', 'ignored', 'kept'].map((name) => join(folder, `dist/${name}.css`)),+ [join(folder, 'dist')],+ undefined,+ warnings,+ (mapPath) => mapPath.endsWith('ignored.css.map')+ )+ const result = cleanUp(css)++ expect(result.deletedMaps).toEqual([expect.stringMatching(/dist\/kept\.css\.map$/)])+ expect(warnings).toEqual([+ expect.stringContaining("broken.css: its sourcemap reference can't be read"),+ expect.stringContaining('resolves outside the selected paths'),+ ])+ for (const path of ['maps/outside.css.map', 'dist/settings.json', 'dist/ignored.css.map']) {+ expect(existsSync(join(folder, path))).toBe(true)+ }+ })++ test.skipIf(process.getuid?.() === 0)('inject changes no bundle when a map cannot be written', async () => {+ const bundle = 'a();\n//# sourceMappingURL=a.js.map\n'+ const folder = project({ 'dist/a.js': bundle, 'dist/a.js.map': MAP })+ chmodSync(join(folder, 'dist/a.js.map'), 0o444)+ const result = await runHog(['et', 'inject', 'dist'], { env: { CLAUDECODE: '1' }, cwd: folder, useDisk: true })++ expect(result.exitCode).toBe(1)+ expect(readFileSync(join(folder, 'dist/a.js'), 'utf8')).toBe(bundle)+ })+test('--dry-run reads the release from the repository a symlinked mapping points into', async () => {const repository = project({ ...GIT_REPO, 'app/mapping.txt': SMALL_MAPPING })const outside = project({})@@ -77,6 +182,8 @@ describe('hog error-tracking upload', () => {['a ProGuard mapping without a map ID', ['mapping.txt'], 2, 'map_id_required'],['a file hog cannot place', ['notes.txt'], 1, 'unknown_artifact'],['no paths and no posthog.json', [], 2, 'no_paths'],+ ['--force with --skip-on-conflict', ['mapping.txt', '--force', '--skip-on-conflict'], 2, 'usage_error'],+ ['a concurrency below 1', ['mapping.txt', '--concurrency', '0'], 2, 'usage_error'],])('%s fails with a hint', async (_name, paths, exitCode, code) => {const folder = project({ 'mapping.txt': SMALL_MAPPING, 'notes.txt': 'hello' })const result = await runHog(['et', 'upload', '--dry-run', ...paths], {diff --git a/hog/src/commands/error-tracking/index.ts b/hog/src/commands/error-tracking/index.tsindex 3af7720d85e5..93d5e2823357 100644--- a/hog/src/commands/error-tracking/index.ts+++ b/hog/src/commands/error-tracking/index.ts@@ -1,9 +1,11 @@import { defineGroup } from '@/core/command'+import inject from './inject'+import process from './process'import upload from './upload'export default defineGroup({description: 'Upload symbols for readable stack traces in error tracking',aliases: ['et'],- commands: { upload },+ commands: { inject, upload, process },})diff --git a/hog/src/commands/error-tracking/inject.ts b/hog/src/commands/error-tracking/inject.tsnew file mode 100644index 000000000000..779819ef7df1--- /dev/null+++ b/hog/src/commands/error-tracking/inject.ts@@ -0,0 +1,61 @@+import { defineCommand } from '@/core/command'+import { inject, select } from '@/error-tracking/run'++import {+ DRY_RUN_OPTION,+ PATHS,+ readOptions,+ RELEASE_OPTIONS,+ renderInjected,+ renderNotes,+ renderRelease,+} from './shared'++export default defineCommand({+ description: 'Add chunk IDs to JavaScript bundles and their sourcemaps',+ args: PATHS,+ options: {+ publicPathPrefix: {+ type: 'string',+ placeholder: 'prefix',+ description: 'The URL prefix to strip from sourceMappingURL comments to find maps on disk',+ },+ ...RELEASE_OPTIONS,+ ...DRY_RUN_OPTION,+ },+ scopes: ['error_tracking:write'],+ notes: [+ 'Each bundle gets a snippet that registers its chunk ID at runtime, and its sourcemap gets the same ID, so PostHog can match stack frames to the right map.',+ 'Chunk IDs come from the bundle content, so the same build gets the same IDs. Running inject again changes nothing unless the release changed.',+ 'In event mode the release comes from the flags, posthog.json or git, and PostHog creates it, which needs credentials.',+ ].join('\n'),+ examples: ['hog error-tracking inject dist', 'hog et inject dist --release-name web --release-version 1.4.0'],++ async run({ args, options, ctx }) {+ const settings = readOptions(options, ctx.runtime.env)+ const selection = await select(ctx, args.paths ?? [], settings)+ const report = await inject(ctx, selection, settings)+ return {+ dryRun: settings.dryRun,+ release: report.release,+ injected: report.injected,+ skipped: report.skipped,+ warnings: report.warnings,+ }+ },++ human({ result, out }) {+ renderRelease(out, result.release)+ renderInjected(out, result.injected)+ renderNotes(out, result)+ const changed = result.injected.filter((item) => item.action !== 'unchanged').length+ out.line(+ out.style(+ result.dryRun+ ? `Dry run: ${changed} of ${result.injected.length} bundles would change. No file was written.`+ : `${changed} of ${result.injected.length} bundles changed.`,+ 'dim'+ )+ )+ },+})diff --git a/hog/src/commands/error-tracking/process.ts b/hog/src/commands/error-tracking/process.tsnew file mode 100644index 000000000000..58104e08c975--- /dev/null+++ b/hog/src/commands/error-tracking/process.ts@@ -0,0 +1,51 @@+import { defineCommand } from '@/core/command'+import { HogError } from '@/core/errors'+import { plural } from '@/core/text'+import { processArtifacts, select } from '@/error-tracking/run'++import {+ DRY_RUN_OPTION,+ PATHS,+ readOptions,+ RELEASE_OPTIONS,+ renderRelease,+ renderUpload,+ SELECTION_OPTIONS,+ UPLOAD_OPTIONS,+} from './shared'++export default defineCommand({+ description: 'Inject chunk IDs into JavaScript bundles, then upload every artifact',+ args: PATHS,+ options: { ...SELECTION_OPTIONS, ...UPLOAD_OPTIONS, ...RELEASE_OPTIONS, ...DRY_RUN_OPTION },+ scopes: ['error_tracking:write'],+ notes: [+ 'Runs `hog error-tracking inject` on the JavaScript bundles, then `hog error-tracking upload` on everything it found. Use it in CI after the build.',+ 'When --release-name, --release-version or --build is set, PostHog creates the release before any file changes.',+ ].join('\n'),+ examples: ['hog error-tracking process dist', 'hog et process dist --delete-after'],++ async run({ args, options, ctx }) {+ const settings = readOptions(options, ctx.runtime.env)+ const selection = await select(ctx, args.paths ?? [], settings)+ if (selection.artifacts.length === 0) {+ throw new HogError(+ 'nothing_to_upload',+ 'hog found no artifacts to process in those paths.',+ 'Check the paths, or pass --kind.'+ )+ }+ return processArtifacts(ctx, selection, settings)+ },++ human({ result, out }) {+ renderRelease(out, result.release)+ if (result.injected.length > 0) {+ const changed = result.injected.filter((item) => item.action !== 'unchanged').length+ out.line(+ `Injected chunk IDs into ${plural(changed, 'bundle')}${changed < result.injected.length ? `, ${result.injected.length - changed} already had them` : ''}.`+ )+ }+ renderUpload(out, result)+ },+})diff --git a/hog/src/commands/error-tracking/shared.ts b/hog/src/commands/error-tracking/shared.tsnew file mode 100644index 000000000000..4a9398bd7fb7--- /dev/null+++ b/hog/src/commands/error-tracking/shared.ts@@ -0,0 +1,194 @@+import type { OptionSpec } from '@/core/command'+import { ARTIFACT_KINDS, type ArtifactKind } from '@/core/config'+import { EXIT_USAGE, HogError } from '@/core/errors'+import type { Output } from '@/core/output'+import type { Env } from '@/core/runtime'+import { plural } from '@/core/text'+import type { ErrorTrackingOptions, InjectedReport, UploadReport } from '@/error-tracking/run'++// The options `inject`, `upload` and `process` share, and how their results look.++export const PATHS = {+ paths: {+ description: 'Files or folders to read. Defaults to errorTracking.sources in posthog.json',+ optional: true,+ variadic: true,+ },+} as const++export const SELECTION_OPTIONS = {+ kind: {+ type: 'string',+ choices: ARTIFACT_KINDS,+ description: 'The artifact type, when hog should not detect it',+ },+ publicPathPrefix: {+ type: 'string',+ placeholder: 'prefix',+ description: 'JavaScript only: the URL prefix to strip from sourceMappingURL comments to find maps on disk',+ },+} as const satisfies Record<string, OptionSpec>++export const RELEASE_OPTIONS = {+ releaseName: {+ type: 'string',+ placeholder: 'name',+ description: 'The release name. Defaults to the git repository name',+ },+ releaseVersion: {+ type: 'string',+ placeholder: 'version',+ description: 'The release version. Defaults to the git commit',+ },+ build: {+ type: 'string',+ placeholder: 'build',+ description: 'A build number, added to the version as version+build',+ },+ releaseMode: {+ type: 'string',+ choices: ['event', 'symbol-set'],+ description: 'JavaScript only: put the release in the bundle (event, the default) or in the symbol set',+ },+} as const satisfies Record<string, OptionSpec>++export const UPLOAD_OPTIONS = {+ mapId: {+ type: 'string',+ placeholder: 'id',+ description: 'ProGuard only: the map ID your Android build injected into the app',+ },+ force: { type: 'boolean', description: 'Replace symbol sets PostHog already has with different content' },+ skipOnConflict: { type: 'boolean', description: 'Keep symbol sets PostHog already has with different content' },+ deleteAfter: {+ type: 'boolean',+ description: 'JavaScript and CSS: remove sourcemap references and delete the maps after a successful upload',+ },+ batchSize: { type: 'string', placeholder: 'count', description: 'Symbol sets per upload request (default 50)' },+ concurrency: { type: 'string', placeholder: 'count', description: 'Parallel file uploads (default 10)' },+} as const satisfies Record<string, OptionSpec>++export const DRY_RUN_OPTION = {+ dryRun: {+ type: 'boolean',+ description: 'Show what would happen, with content hashes, without changing files or contacting PostHog',+ },+} as const satisfies Record<string, OptionSpec>++interface RawOptions {+ kind?: ArtifactKind+ publicPathPrefix?: string+ releaseName?: string+ releaseVersion?: string+ build?: string+ releaseMode?: 'event' | 'symbol-set'+ mapId?: string+ force?: boolean+ skipOnConflict?: boolean+ deleteAfter?: boolean+ batchSize?: string+ concurrency?: string+ dryRun?: boolean+}++function count(flag: string, value: string | undefined, fallback: number): number {+ if (value === undefined) {+ return fallback+ }+ const parsed = Number(value)+ if (!Number.isInteger(parsed) || parsed < 1) {+ throw new HogError(+ 'usage_error',+ `${flag} must be a whole number of at least 1.`,+ `Pass a number, as in ${flag} ${fallback}.`,+ EXIT_USAGE+ )+ }+ return parsed+}++// posthog-cli reads the release mode and the upload concurrency from these variables too.+export function readOptions(options: RawOptions, env: Env): ErrorTrackingOptions {+ if (options.force && options.skipOnConflict) {+ throw new HogError(+ 'usage_error',+ '--force and --skip-on-conflict cannot be used together.',+ 'Use --force to replace what PostHog has, or --skip-on-conflict to keep it.',+ EXIT_USAGE+ )+ }+ const releaseMode = options.releaseMode ?? env.POSTHOG_RELEASE_MODE ?? 'event'+ if (releaseMode !== 'event' && releaseMode !== 'symbol-set') {+ throw new HogError(+ 'usage_error',+ 'POSTHOG_RELEASE_MODE must be event or symbol-set.',+ 'Unset it, or pass --release-mode.',+ EXIT_USAGE+ )+ }+ return {+ kind: options.kind,+ mapId: options.mapId,+ release: { name: options.releaseName, version: options.releaseVersion, build: options.build },+ releaseMode,+ publicPathPrefix: options.publicPathPrefix,+ force: options.force === true,+ skipOnConflict: options.skipOnConflict === true,+ batchSize: count('--batch-size', options.batchSize, 50),+ concurrency: count('--concurrency', options.concurrency ?? env.POSTHOG_CLI_SOURCEMAP_UPLOAD_CONCURRENCY, 10),+ deleteAfter: options.deleteAfter === true,+ dryRun: options.dryRun === true,+ }+}++export function renderRelease(out: Output, release: UploadReport['release']): void {+ if (release) {+ out.line(`Release ${out.style(`${release.name}@${release.version}`, 'bold')}`)+ }+}++export function renderNotes(out: Output, report: Pick<UploadReport, 'skipped' | 'warnings'>): void {+ for (const skip of report.skipped) {+ out.line(out.style(`Skipped ${skip.path}: ${skip.reason}`, 'yellow'))+ }+ for (const warning of report.warnings) {+ out.line(out.style(warning, 'yellow'))+ }+}++export function renderInjected(out: Output, injected: InjectedReport[]): void {+ out.table(+ [{ name: 'path' }, { name: 'chunk id' }, { name: 'action' }],+ injected.map((item) => [item.path, item.chunkId, item.action.replace('_', ' ')])+ )+}++export function renderUpload(out: Output, report: UploadReport): void {+ if (report.symbolSets.length > 0) {+ out.table(+ [+ { name: 'path' },+ { name: 'kind' },+ { name: 'chunk id' },+ { name: 'size', kind: 'number' },+ { name: 'status' },+ ],+ report.symbolSets.map((set) => [set.path, set.kind, set.chunkId, set.size, set.status.replace('_', ' ')])+ )+ }+ for (const path of report.deletedMaps) {+ out.line(out.style(`Deleted ${path}`, 'dim'))+ }+ renderNotes(out, report)+ const uploaded = report.symbolSets.filter((set) => set.status === 'uploaded').length+ const present = report.symbolSets.filter((set) => set.status === 'already_present').length+ const tooLarge = report.symbolSets.filter((set) => set.status === 'too_large').length+ out.line(+ out.style(+ report.dryRun+ ? `Dry run: ${plural(report.symbolSets.length, 'symbol set')} would be uploaded. Nothing was sent.`+ : `${plural(uploaded, 'symbol set')} uploaded, ${present} already present${tooLarge ? `, ${tooLarge} too large` : ''}.`,+ 'dim'+ )+ )+}diff --git a/hog/src/commands/error-tracking/upload.ts b/hog/src/commands/error-tracking/upload.tsindex 33474f2af94f..14406d44aa99 100644--- a/hog/src/commands/error-tracking/upload.ts+++ b/hog/src/commands/error-tracking/upload.ts@@ -1,259 +1,49 @@-import { realpathSync } from 'node:fs'-import { dirname } from 'node:path'-import { defineCommand } from '@/core/command'-import { ARTIFACT_KINDS } from '@/core/config'-import type { Context } from '@/core/context'-import { EXIT_USAGE, HogError } from '@/core/errors'-import { plural } from '@/core/text'-import { contentHash } from '@/error-tracking/container'-import { discover, type Artifact, type Root } from '@/error-tracking/discover'-import { GitError, gitInfo, type GitInfo } from '@/error-tracking/git'-import { proguardContainer } from '@/error-tracking/kinds/proguard'-import { fetchOrCreateRelease, resolveRelease, type Release } from '@/error-tracking/release'-import { SymbolSetClient, type SymbolSetUpload, type UploadStatus } from '@/error-tracking/upload'--interface PlannedSymbolSet {- path: string- kind: string- chunkId: string- contentHash: string- size: number- status: UploadStatus | 'planned'-}--interface UploadResult {- dryRun: boolean- release: { name: string; version: string; id: string | null } | null- symbolSets: PlannedSymbolSet[]-}--interface Prepared {- artifact: Artifact- upload: SymbolSetUpload-}--function prepare(artifact: Artifact, mapId: string | undefined): Prepared {- // ProGuard mappings carry no id of their own: the Android build plugin writes one into the app,- // and the same value must be passed here.- const chunkId = mapId ?? artifact.root.mapId- if (!chunkId) {- throw new HogError(- 'map_id_required',- `${artifact.display} is a ProGuard mapping, which needs the map ID your build injected into the app.`,- 'Pass --map-id, or set "mapId" on the source in posthog.json.',- EXIT_USAGE- )- }- return { artifact, upload: { chunkId, releaseId: null, data: proguardContainer(artifact.path, artifact.display) } }-}--async function roots(- ctx: Context,- paths: string[],- kind: Root['kind'],- mapId: string | undefined-): Promise<{ roots: Root[]; cwd: string }> {- if (paths.length > 0) {- return { roots: paths.map((path) => ({ path, kind, mapId })), cwd: ctx.runtime.cwd() }- }- const loaded = await ctx.config()- const sources = loaded?.config.errorTracking?.sources ?? []- if (!loaded || sources.length === 0) {- throw new HogError(- 'no_paths',- 'Pass the files or folders to upload, or list them under errorTracking.sources in posthog.json.',- 'Run `hog config schema` to see the posthog.json format.',- EXIT_USAGE- )- }- return { roots: sources.map((source) => ({ ...source, kind: kind ?? source.kind })), cwd: loaded.root }-}--function releaseGit(ctx: Context, artifacts: Artifact[]): GitInfo | undefined {- const first = artifacts[0]- if (!first) {- return undefined- }- try {- // posthog-cli resolves symlinks first, so a link outside the repository still finds it.- return gitInfo(ctx.runtime.env, dirname(realpathSync(first.path)))- } catch (error) {- if (error instanceof GitError) {- throw new HogError(- 'git_failed',- `hog couldn't read the git repository: ${error.message}`,- 'Pass --release-name and --release-version.'- )- }- throw error- }-}+import { HogError } from '@/core/errors'+import { select, upload } from '@/error-tracking/run'++import {+ DRY_RUN_OPTION,+ PATHS,+ readOptions,+ RELEASE_OPTIONS,+ renderRelease,+ renderUpload,+ SELECTION_OPTIONS,+ UPLOAD_OPTIONS,+} from './shared'export default defineCommand({description: 'Upload symbols so PostHog can show readable stack traces',- args: {- paths: {- description: 'Files or folders to upload. Defaults to errorTracking.sources in posthog.json',- optional: true,- variadic: true,- },- },- options: {- kind: {- type: 'string',- choices: ARTIFACT_KINDS,- description: 'The artifact type, when hog should not detect it',- },- mapId: {- type: 'string',- placeholder: 'id',- description: 'ProGuard only: the map ID your Android build injected into the app',- },- releaseName: {- type: 'string',- placeholder: 'name',- description: 'The release name. Defaults to the git repository name',- },- releaseVersion: {- type: 'string',- placeholder: 'version',- description: 'The release version. Defaults to the git commit',- },- build: {- type: 'string',- placeholder: 'build',- description: 'A build number, added to the version as version+build',- },- force: { type: 'boolean', description: 'Replace symbol sets PostHog already has with different content' },- skipOnConflict: { type: 'boolean', description: 'Keep symbol sets PostHog already has with different content' },- batchSize: { type: 'string', placeholder: 'count', description: 'Symbol sets per upload request (default 50)' },- dryRun: {- type: 'boolean',- description: 'Show what would be uploaded, with content hashes, without contacting PostHog',- },- },+ args: PATHS,+ options: { ...SELECTION_OPTIONS, ...UPLOAD_OPTIONS, ...RELEASE_OPTIONS, ...DRY_RUN_OPTION },scopes: ['error_tracking:write'],notes: ["hog finds the artifacts in each path and detects their type from the files. A file it can't place, or one that two types could claim, is an error that names --kind.",- 'Supported: ProGuard and R8 mappings (mapping.txt).',+ 'Supported: JavaScript bundles with sourcemaps, and ProGuard or R8 mappings (mapping.txt).',+ 'JavaScript bundles need a chunk ID first: run `hog error-tracking inject`, or use `hog error-tracking process` to do both.',].join('\n'),examples: [+ 'hog error-tracking upload dist','hog error-tracking upload app/build/outputs/mapping/release --map-id "$MAP_ID"','hog et upload --dry-run',],- async run({ args, options, ctx }): Promise<UploadResult> {- if (options.force && options.skipOnConflict) {- throw new HogError(- 'usage_error',- '--force and --skip-on-conflict cannot be used together.',- undefined,- EXIT_USAGE- )- }- const batchSize = options.batchSize === undefined ? 50 : Number(options.batchSize)- if (!Number.isInteger(batchSize) || batchSize < 1) {- throw new HogError(- 'usage_error',- '--batch-size must be a whole number of at least 1.',- undefined,- EXIT_USAGE- )- }- const { roots: found, cwd } = await roots(ctx, args.paths ?? [], options.kind, options.mapId)- const artifacts = discover(found, cwd)- if (artifacts.length === 0) {+ async run({ args, options, ctx }) {+ const settings = readOptions(options, ctx.runtime.env)+ const selection = await select(ctx, args.paths ?? [], settings)+ if (selection.artifacts.length === 0) {throw new HogError('nothing_to_upload','hog found no artifacts to upload in those paths.','Check the paths, or pass --kind.')}- const prepared = artifacts.map((artifact) => prepare(artifact, options.mapId))- const duplicate = prepared.find(- (item, index) => prepared.findIndex((other) => other.upload.chunkId === item.upload.chunkId) !== index- )- if (duplicate) {- throw new HogError(- 'duplicate_chunk_id',- `Two artifacts share the chunk ID ${duplicate.upload.chunkId}.`,- 'Give each mapping its own --map-id.'- )- }-- const config = (await ctx.config())?.config.errorTracking?.release- const git = releaseGit(ctx, artifacts)- const { name, version } = resolveRelease(- {- name: options.releaseName ?? config?.name,- version: options.releaseVersion ?? config?.version,- build: options.build,- },- git- )-- const describe = (item: Prepared, status: PlannedSymbolSet['status']): PlannedSymbolSet => ({- path: item.artifact.display,- kind: item.artifact.kind,- chunkId: item.upload.chunkId,- contentHash: item.upload.contentHash ?? contentHash(item.upload.data),- size: item.upload.data.length,- status,- })- const release = name !== undefined && version !== undefined ? { name, version } : undefined- if (options.dryRun) {- return {- dryRun: true,- release: release ? { ...release, id: null } : null,- symbolSets: prepared.map((item) => describe(item, 'planned')),- }- }-- const client = new SymbolSetClient(ctx.runtime, await ctx.credentials())- let created: Release | undefined- if (release) {- created = await fetchOrCreateRelease(client, release.name, release.version, git ? { git } : {})- }- const uploads = prepared.map((item) => ({ ...item.upload, releaseId: created?.id ?? null }))- const outcome = await client.upload(uploads, {- batchSize,- force: options.force === true,- skipOnConflict: options.skipOnConflict === true,- })- return {- dryRun: false,- release: release ? { ...release, id: created?.id ?? null } : null,- symbolSets: prepared.map((item) =>- describe(item, outcome.status.get(item.upload.chunkId) ?? 'already_present')- ),- }+ return upload(ctx, selection, settings)},human({ result, out }) {- if (result.release) {- out.line(`Release ${out.style(`${result.release.name}@${result.release.version}`, 'bold')}`)- }- out.table(- [- { name: 'path' },- { name: 'kind' },- { name: 'chunk id' },- { name: 'size', kind: 'number' },- { name: 'status' },- ],- result.symbolSets.map((set) => [set.path, set.kind, set.chunkId, set.size, set.status.replace('_', ' ')])- )- const uploaded = result.symbolSets.filter((set) => set.status === 'uploaded').length- const present = result.symbolSets.filter((set) => set.status === 'already_present').length- const tooLarge = result.symbolSets.filter((set) => set.status === 'too_large').length- out.line(- out.style(- result.dryRun- ? `Dry run: ${plural(result.symbolSets.length, 'symbol set')} would be uploaded. Nothing was sent.`- : `${plural(uploaded, 'symbol set')} uploaded, ${present} already present${tooLarge ? `, ${tooLarge} too large` : ''}.`,- 'dim'- )- )+ renderRelease(out, result.release)+ renderUpload(out, result)},})diff --git a/hog/src/commands/legacy.ts b/hog/src/commands/legacy.tsindex 2281a24ff8ce..999b4b7ea34b 100644--- a/hog/src/commands/legacy.ts+++ b/hog/src/commands/legacy.ts@@ -12,13 +12,8 @@ export const LEGACY_COMMANDS: CommandTree = {description: 'Download event definitions and generate a typed SDK',use: 'posthog-cli exp schema',}),- sourcemap: defineLegacy({- description: 'Inject chunk IDs into bundles and upload their sourcemaps',- use: 'posthog-cli sourcemap',- }),hermes: defineLegacy({ description: 'Upload Hermes sourcemaps to PostHog', use: 'posthog-cli hermes' }),dsym: defineLegacy({ description: 'Upload Apple dSYM debug symbol files to PostHog', use: 'posthog-cli dsym' }),- proguard: defineLegacy({ description: 'Upload ProGuard mapping files to PostHog', use: 'posthog-cli proguard' }),'symbol-sets': defineLegacy({description: 'Upload, download, and manage symbol sets',use: 'posthog-cli symbol-sets',diff --git a/hog/src/error-tracking/cleanup.ts b/hog/src/error-tracking/cleanup.tsnew file mode 100644index 000000000000..f275064368d9--- /dev/null+++ b/hog/src/error-tracking/cleanup.ts@@ -0,0 +1,232 @@+import { existsSync, readFileSync, realpathSync, rmSync, statSync, writeFileSync } from 'node:fs'+import { dirname, isAbsolute, relative } from 'node:path'++import { contentHash } from './container'+import { decodeUtf8 } from './json'+import { findSourceMap, loadMapContent, rustTrim, serializeMapContent, type SourcePair } from './kinds/js'++// `--delete-after`: once an upload succeeded, drop the sourcemap references from the bundles and+// delete the maps, so they never ship to users. A file that changed since hog read it is left+// alone, and a map is only deleted when every bundle that points at it was cleaned.++export interface CleanupTarget {+ sourcePath: string+ mapPath: string+ sourceFingerprint: string+ mapFingerprint: string+ kind: 'js' | 'css'+}++export interface CleanupResult {+ deletedMaps: string[]+ warnings: string[]+}++export function jsTarget(pair: SourcePair): CleanupTarget {+ return {+ sourcePath: pair.sourcePath,+ mapPath: pair.mapPath,+ sourceFingerprint: pair.sourceFingerprint(),+ mapFingerprint: pair.mapFingerprint(),+ kind: 'js',+ }+}++// The last real line of a bundle, skipping blank lines and the chunk and debug id comments, when it+// is a `sourceMappingURL` comment: the whole line goes, newline included.+function jsReferenceRange(content: string): [number, number] | undefined {+ const lines: [number, number, string][] = []+ let start = 0+ for (const line of content.split(/(?<=\n)/)) {+ lines.push([start, start + line.length, line])+ start += line.length+ }+ for (const [lineStart, lineEnd, line] of lines.reverse()) {+ const trimmed = rustTrim(line)+ if (trimmed === '' || trimmed.startsWith('//# chunkId=') || trimmed.startsWith('//# debugId=')) {+ continue+ }+ if (trimmed.startsWith('//# sourceMappingURL=') || trimmed.startsWith('//@ sourceMappingURL=')) {+ return [lineStart, lineEnd]+ }+ return undefined+ }+ return undefined+}++const CSS_PREFIX = '/*# sourceMappingURL='++// The last `/*# sourceMappingURL=... */` comment outside a string, as posthog-cli's CSS lexer finds it.+function cssReferenceRange(content: string): [number, number] | undefined {+ let index = 0+ let quote: string | undefined+ let escaped = false+ let found: [number, number] | undefined+ while (index < content.length) {+ const char = content[index]!+ if (escaped) {+ escaped = false+ index+++ continue+ }+ if (quote !== undefined) {+ if (char === '\\') {+ escaped = true+ } else if (char === quote) {+ quote = undefined+ }+ index+++ continue+ }+ if (char === '\\') {+ escaped = true+ index+++ } else if (char === "'" || char === '"') {+ quote = char+ index+++ } else if (char === '/' && content[index + 1] === '*') {+ const close = content.indexOf('*/', index + 2)+ if (close < 0) {+ return undefined+ }+ const end = close + 2+ if (content.startsWith(CSS_PREFIX, index)) {+ found = [index, end]+ }+ index = end+ } else {+ index+++ }+ }+ return found+}++export function cssReference(content: string): string | undefined {+ const range = cssReferenceRange(content)+ return range ? content.slice(range[0] + CSS_PREFIX.length, range[1] - 2).trimEnd() : undefined+}++function cssRemovalRange(content: string): [number, number] | undefined {+ const range = cssReferenceRange(content)+ if (!range) {+ return undefined+ }+ const lineStart = content.lastIndexOf('\n', range[0] - 1) + 1+ const newline = content.indexOf('\n', range[1])+ const lineEnd = newline < 0 ? content.length : newline + 1+ const blank = (text: string): boolean => text.trim() === ''+ return blank(content.slice(lineStart, range[0])) && blank(content.slice(range[1], lineEnd))+ ? [lineStart, lineEnd]+ : range+}++// CSS bundles with maps under the given roots. Their maps are cleaned up too, but only when they+// resolve inside a root, so a stylesheet can't make hog delete a file elsewhere. A map that an+// ignore glob excludes, or a JSON file that isn't a sourcemap, is left alone.+export function cssTargets(+ files: string[],+ roots: string[],+ publicPathPrefix: string | undefined,+ warnings: string[],+ ignored: (mapPath: string) => boolean+): CleanupTarget[] {+ const canonicalRoots = roots.map((root) => {+ const absolute = realpathSync(root)+ return statSync(absolute).isFile() ? dirname(absolute) : absolute+ })+ const targets: CleanupTarget[] = []+ for (const file of files.filter((path) => path.endsWith('.css'))) {+ let source: string+ let mapPath: string | undefined+ try {+ source = decodeUtf8(readFileSync(realpathSync(file)))+ mapPath = findSourceMap(realpathSync(file), cssReference(source), publicPathPrefix)+ } catch {+ warnings.push(`Skipping sourcemap cleanup for ${file}: its sourcemap reference can't be read.`)+ continue+ }+ if (mapPath === undefined || ignored(mapPath)) {+ continue+ }+ let map+ try {+ map = loadMapContent(decodeUtf8(readFileSync(mapPath)))+ } catch {+ continue+ }+ if (!map.fields.has('mappings') && !map.fields.has('sections')) {+ continue+ }+ const canonicalMap = realpathSync(mapPath)+ // On Windows, `relative` returns an absolute path for a file on another drive.+ const inside = (root: string): boolean => {+ const within = relative(root, canonicalMap)+ return !within.startsWith('..') && !isAbsolute(within)+ }+ if (!canonicalRoots.some(inside)) {+ warnings.push(+ `Skipping CSS sourcemap cleanup for ${mapPath} because it resolves outside the selected paths.`+ )+ continue+ }+ targets.push({+ sourcePath: realpathSync(file),+ mapPath,+ sourceFingerprint: contentHash(source),+ mapFingerprint: contentHash(serializeMapContent(map)),+ kind: 'css',+ })+ }+ return targets+}++export function cleanUp(targets: CleanupTarget[]): CleanupResult {+ const warnings: string[] = []+ const skippedMaps = new Set<string>()+ const maps = new Map<string, Set<string>>()+ for (const target of targets) {+ const canonicalMap = existsSync(target.mapPath) ? realpathSync(target.mapPath) : target.mapPath+ if (!maps.has(canonicalMap)) {+ maps.set(canonicalMap, new Set())+ }+ maps.get(canonicalMap)!.add(target.mapFingerprint)+ if (!existsSync(target.sourcePath)) {+ warnings.push(`Skipping cleanup for ${target.sourcePath}: the file no longer exists.`)+ skippedMaps.add(canonicalMap)+ continue+ }+ const content = decodeUtf8(readFileSync(target.sourcePath))+ if (contentHash(content) !== target.sourceFingerprint) {+ warnings.push(`Skipping cleanup for ${target.sourcePath}: the file changed since it was uploaded.`)+ skippedMaps.add(canonicalMap)+ continue+ }+ const range = target.kind === 'js' ? jsReferenceRange(content) : cssRemovalRange(content)+ if (range) {+ writeFileSync(target.sourcePath, content.slice(0, range[0]) + content.slice(range[1]))+ }+ }+ const deletedMaps: string[] = []+ for (const [path, fingerprints] of maps) {+ if (skippedMaps.has(path)) {+ warnings.push(`Skipping sourcemap deletion for ${path}: a source referencing it was skipped.`)+ continue+ }+ if (!existsSync(path)) {+ continue+ }+ let current: string+ try {+ current = contentHash(serializeMapContent(loadMapContent(decodeUtf8(readFileSync(path)))))+ } catch {+ current = ''+ }+ if (!fingerprints.has(current)) {+ warnings.push(`Skipping sourcemap deletion for ${path}: the map changed since it was uploaded.`)+ continue+ }+ rmSync(path)+ deletedMaps.push(path)+ }+ return { deletedMaps, warnings }+}diff --git a/hog/src/error-tracking/discover.ts b/hog/src/error-tracking/discover.tsindex 9f63fcff6765..ca78010f25d8 100644--- a/hog/src/error-tracking/discover.ts+++ b/hog/src/error-tracking/discover.ts@@ -1,15 +1,23 @@import { readdirSync, readFileSync, statSync } from 'node:fs'-import { join, relative, resolve } from 'node:path'+import { isAbsolute, join, relative, resolve } from 'node:path'import type { ArtifactKind } from '@/core/config'import { HogError } from '@/core/errors'+import { isJsBundle, JS_EXTENSIONS } from './kinds/js'import { isValidProguardMapping } from './kinds/proguard'export interface Root {path: stringkind?: ArtifactKindmapId?: string+ // Globs relative to `path`. Matching files are never opened.+ ignore?: string[]+}++export interface DiscoverOptions {+ // Strips a URL prefix from `sourceMappingURL` comments, so absolute URLs resolve to local maps.+ publicPathPrefix?: string}export interface Artifact {@@ -26,7 +34,7 @@ interface Detector {kind: ArtifactKind// While scanning a folder, only files with these extensions are opened.extensions: readonly string[]- matches(path: string): boolean+ matches(path: string, options: DiscoverOptions): boolean}const DETECTORS: readonly Detector[] = [@@ -35,15 +43,27 @@ const DETECTORS: readonly Detector[] = [extensions: ['.txt'],matches: (path) => isValidProguardMapping(readFileSync(path)),},+ {+ // A bundle counts only when its sourcemap exists, as in posthog-cli. Bundles without one are+ // skipped without a message, because most build folders hold some.+ kind: 'js',+ extensions: JS_EXTENSIONS,+ matches: (path, options) => isJsBundle(path, options.publicPathPrefix),+ },]-function detect(path: string, fromFolder: boolean, kind: ArtifactKind | undefined): ArtifactKind | undefined {+function detect(+ path: string,+ fromFolder: boolean,+ kind: ArtifactKind | undefined,+ options: DiscoverOptions+): ArtifactKind | undefined {const candidates = DETECTORS.filter((detector) =>(kind === undefined || detector.kind === kind) &&(!fromFolder || detector.extensions.some((extension) => path.endsWith(extension))))- const matched = candidates.filter((detector) => detector.matches(path))+ const matched = candidates.filter((detector) => detector.matches(path, options))if (matched.length > 1) {throw new HogError('ambiguous_artifact',@@ -55,7 +75,8 @@ function detect(path: string, fromFolder: boolean, kind: ArtifactKind | undefine}function walk(folder: string, out: string[]): void {- // Sorted, so runs on different machines visit files in the same order.+ // Sorted, so runs on different machines visit files in the same order. Symlinks are skipped, as+ // in posthog-cli, so a link can't make hog rewrite files outside the folder.for (const entry of readdirSync(folder, { withFileTypes: true }).sort((a, b) => (a.name < b.name ? -1 : 1))) {if (entry.name === 'node_modules' || entry.name === '.git') {continue@@ -69,16 +90,45 @@ function walk(folder: string, out: string[]): void {}}-export function discover(roots: readonly Root[], cwd: string): Artifact[] {+function rootFiles(root: Root, cwd: string): { path: string; isFile: boolean; files: string[] } {+ const path = resolve(cwd, root.path)+ const stat = statSync(path, { throwIfNoEntry: false })+ if (!stat) {+ throw new HogError('path_not_found', `${root.path} doesn't exist.`)+ }+ if (stat.isFile()) {+ return { path, isFile: true, files: [path] }+ }+ const files: string[] = []+ walk(path, files)+ return { path, isFile: false, files: files.filter((file) => !isIgnored(root, path, file)) }+}++const compiledGlobs = new WeakMap<Root, Bun.Glob[]>()++export function isIgnored(root: Root, folder: string, file: string): boolean {+ const within = relative(folder, file)+ if (!root.ignore?.length || within.startsWith('..') || isAbsolute(within)) {+ return false+ }+ let globs = compiledGlobs.get(root)+ if (!globs) {+ globs = root.ignore.map((pattern) => new Bun.Glob(pattern))+ compiledGlobs.set(root, globs)+ }+ return globs.some((glob) => glob.match(within))+}++export function listFiles(roots: readonly Root[], cwd: string): string[] {+ return roots.flatMap((root) => rootFiles(root, cwd).files)+}++export function discover(roots: readonly Root[], cwd: string, options: DiscoverOptions = {}): Artifact[] {const artifacts: Artifact[] = []for (const root of roots) {- const path = resolve(cwd, root.path)- const stat = statSync(path, { throwIfNoEntry: false })- if (!stat) {- throw new HogError('path_not_found', `${root.path} doesn't exist.`)- }- if (stat.isFile()) {- const kind = detect(path, false, root.kind)+ const { path, isFile, files } = rootFiles(root, cwd)+ if (isFile) {+ const kind = detect(path, false, root.kind, options)if (!kind) {throw new HogError('unknown_artifact',@@ -91,10 +141,8 @@ export function discover(roots: readonly Root[], cwd: string): Artifact[] {artifacts.push({ kind, path, display: relative(cwd, path) || path, root })continue}- const files: string[] = []- walk(path, files)for (const file of files) {- const kind = detect(file, true, root.kind)+ const kind = detect(file, true, root.kind, options)if (kind) {artifacts.push({ kind, path: file, display: relative(cwd, file), root })}diff --git a/hog/src/error-tracking/js-flow.ts b/hog/src/error-tracking/js-flow.tsnew file mode 100644index 000000000000..1505f06d02d1--- /dev/null+++ b/hog/src/error-tracking/js-flow.ts@@ -0,0 +1,213 @@+import { randomUUID } from 'node:crypto'+import { accessSync, chmodSync, constants, realpathSync, renameSync, rmSync, statSync, writeFileSync } from 'node:fs'++import { HogError } from '@/core/errors'+import type { Env } from '@/core/runtime'++import { GitError, gitInfo, type GitInfo } from './git'+import { isEmptyMapContent, isUuid, pairUpload, uuidv5, type ReleaseMode, type Skip, type SourcePair } from './kinds/js'+import { packVersion, type ReleaseFields } from './release'+import { uuidv7, type SymbolSetUpload } from './upload'++export type InjectAction = 'injected' | 'release_updated' | 'unchanged'++export interface InjectOutcome {+ pair: SourcePair+ action: InjectAction+ chunkId: string+}++// A bundler debug id becomes the chunk id when it parses as a UUID. The source comment wins over the+// map's `debugId` when both exist.+function adoptedDebugId(pair: SourcePair, warnings: string[]): string | null {+ const id = pair.debugId()+ if (id === null) {+ return null+ }+ const fromMap = pair.map.debugId+ if (pair.sourceDebugId() !== null && fromMap !== null && fromMap !== pair.sourceDebugId()) {+ warnings.push(`${pair.sourcePath}: the chunk and its sourcemap have different debug ids. Using the chunk's.`)+ }+ if (isUuid(id)) {+ return id+ }+ warnings.push(+ `${pair.sourcePath}: ignoring the malformed debug id ${JSON.stringify(id)} and deriving a chunk id from the content.`+ )+ return null+}++// Event mode: chunk ids derive from the bundle's content (UUIDv5), so they stay stable across+// rebuilds. A resolved release goes into the snippet; a changed release swaps only the snippet.+export function injectEventMode(pairs: SourcePair[], releaseId: string | null, warnings: string[]): InjectOutcome[] {+ return pairs.map((pair) => {+ const existing = pair.chunkId()+ if (existing === null) {+ const chunkId = adoptedDebugId(pair, warnings) ?? uuidv5(Buffer.from(pair.source, 'utf8'))+ pair.addChunkId(chunkId, releaseId)+ return { pair, action: 'injected', chunkId }+ }+ if (releaseId === null || pair.injectedReleaseId() === releaseId) {+ return { pair, action: 'unchanged', chunkId: existing }+ }+ pair.removeChunkId(existing)+ pair.addChunkId(existing, releaseId)+ return { pair, action: 'release_updated', chunkId: existing }+ })+}++export function injectSymbolSetMode(+ pairs: SourcePair[],+ releaseId: string | null,+ newId: () => string+): InjectOutcome[] {+ return pairs.map((pair) => {+ const existing = pair.chunkId()+ if (pair.map.releaseId === releaseId && existing !== null) {+ return { pair, action: 'unchanged', chunkId: existing }+ }+ pair.map.releaseId = releaseId+ const chunkId = newId()+ if (existing !== null) {+ pair.removeChunkId(existing)+ }+ pair.addChunkId(chunkId, null)+ return { pair, action: existing === null ? 'injected' : 'release_updated', chunkId }+ })+}++export const randomChunkId = (now: () => number) => (): string => uuidv7(now())++// posthog-cli writes every pair only after all of them were transformed, so a failure leaves the+// build untouched. Unchanged pairs are written too, which puts every map in canonical form.+export function savePairs(pairs: SourcePair[], serialize: (pair: SourcePair) => string): void {+ replaceFiles(+ pairs.flatMap((pair): [string, string][] => [+ [pair.sourcePath, pair.source],+ [pair.mapPath, serialize(pair)],+ ])+ )+}++// Writes every file next to its target first, then renames them all into place. A full disk or a+// read-only target then fails before any target changes, instead of leaving a bundle injected+// while its map keeps the old offsets, which a rerun can't repair.+function replaceFiles(files: [string, string][]): void {+ const staged: [string, string][] = []+ try {+ for (const [path, contents] of files) {+ const target = realpathSync(path)+ // A rename would replace a read-only file, where posthog-cli's write fails.+ accessSync(target, constants.W_OK)+ const temporary = `${target}.${randomUUID()}.tmp`+ staged.push([temporary, target])+ writeFileSync(temporary, contents, { flag: 'wx' })+ chmodSync(temporary, statSync(target).mode & 0o7777)+ }+ } catch (error) {+ for (const [temporary] of staged) {+ rmSync(temporary, { force: true })+ }+ throw error+ }+ for (const [temporary, target] of staged) {+ renameSync(temporary, target)+ }+}++export interface PreparedPairs {+ uploads: { pair: SourcePair; upload: SymbolSetUpload }[]+ skipped: Skip[]+ duplicates: string[]+}++export function preparePairs(pairs: SourcePair[], mode: ReleaseMode): PreparedPairs {+ const skipped: Skip[] = []+ const uploads: { pair: SourcePair; upload: SymbolSetUpload }[] = []+ for (const pair of pairs) {+ if (pair.chunkId() === null && pair.debugId() === null) {+ skipped.push({+ path: pair.sourcePath,+ reason: 'no PostHog chunk ID or native debug ID. Run `hog error-tracking inject` first.',+ })+ continue+ }+ if (isEmptyMapContent(pair.map)) {+ skipped.push({+ path: pair.sourcePath,+ reason:+ Buffer.byteLength(pair.source) < 2048+ ? 'the sourcemap is empty'+ : 'the sourcemap is empty although the file is large. Check your bundler sourcemap setting.',+ })+ continue+ }+ uploads.push({ pair, upload: pairUpload(pair, mode) })+ }+ const nativeFirst = (entry: { pair: SourcePair }): number =>+ entry.pair.chunkId() === null && entry.pair.sourceDebugId() !== null ? 0 : 1+ const sorted = uploads+ .map((entry, index) => ({ entry, index }))+ .sort((a, b) => nativeFirst(a.entry) - nativeFirst(b.entry) || a.index - b.index)+ const seen = new Set<string>()+ const duplicates: string[] = []+ const kept = sorted+ .map(({ entry }) => entry)+ .filter((entry) => {+ if (seen.has(entry.upload.chunkId)) {+ duplicates.push(entry.upload.chunkId)+ return false+ }+ seen.add(entry.upload.chunkId)+ return true+ })+ return { uploads: kept, skipped, duplicates }+}++export interface JsRelease {+ name: string+ version: string+ git: GitInfo | undefined+}++export function resolveJsRelease(+ fields: ReleaseFields,+ env: Env,+ cwd: string,+ warnings: string[]+): JsRelease | undefined {+ let name = fields.name+ let version = packVersion(fields.version, fields.build)+ const complete = name !== undefined && version !== undefined+ let git: GitInfo | undefined+ try {+ git = gitInfo(env, cwd)+ } catch (error) {+ if (!(error instanceof GitError)) {+ throw error+ }+ if (!complete) {+ throw new HogError(+ 'git_failed',+ `hog couldn't read the git repository for the release: ${error.message}`,+ 'Pass --release-name and --release-version.'+ )+ }+ warnings.push(`Skipping git metadata for the release: ${error.message}`)+ }+ if (git) {+ name ??= git.repo_name+ version ??= git.commit_id+ } else if (!complete && (fields.name !== undefined || fields.version !== undefined || fields.build !== undefined)) {+ throw new HogError(+ 'release_incomplete',+ 'The release needs both a name and a version, and there is no git repository to fill in the missing one.',+ 'Pass both --release-name and --release-version, or run from a git repository.'+ )+ }+ return name !== undefined && version !== undefined ? { name, version, git } : undefined+}++export function releaseRequested(fields: ReleaseFields): boolean {+ return fields.name !== undefined || fields.version !== undefined || fields.build !== undefined+}diff --git a/hog/src/error-tracking/kinds/js.ts b/hog/src/error-tracking/kinds/js.tsnew file mode 100644index 000000000000..3273eabeb6be--- /dev/null+++ b/hog/src/error-tracking/kinds/js.ts@@ -0,0 +1,554 @@+import { createHash } from 'node:crypto'+import { existsSync, readFileSync, realpathSync } from 'node:fs'+import { basename, dirname, extname, isAbsolute, join } from 'node:path'++import { contentHash, sourceAndMapPayload, SymbolDataType, writeSymbolData } from '../container'+import {+ decodeUtf8,+ JsonError,+ JsonObject,+ JsonParser,+ parseJson,+ stringifyJson,+ writeEntries,+ writeString,+ type JsonValue,+} from '../json'+import { adjustMappings, decodeSourceMap, encodeSourceMap, magicStringAdjustment, type Token } from '../sourcemap'+import type { SymbolSetUpload } from '../upload'++// JavaScript bundles and their sourcemaps: a port of posthog-cli's `sourcemaps/content.rs`,+// `source_pairs.rs` and `inject.rs`. The injected files, the uploaded payload and the event-mode+// content hash all come out byte for byte as posthog-cli writes them.++const SNIPPET = `!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="__POSTHOG_CHUNK_ID__")}catch(e){}}();`+const SNIPPET_WITH_RELEASE = `!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||__POSTHOG_RELEASE_ID__;var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="__POSTHOG_CHUNK_ID__")}catch(e){}}();`+const COMMENT = '\n//# chunkId=__POSTHOG_CHUNK_ID__'+const QUOTED_CHUNK = '"__POSTHOG_CHUNK_ID__"'+const CHUNK_PLACEHOLDER = '__POSTHOG_CHUNK_ID__'+const RELEASE_PLACEHOLDER = '__POSTHOG_RELEASE_ID__'+const CHUNK_NAMESPACE = Buffer.from('0e9b3c7a5d1f42a8b6c4e2d0f8a17593', 'hex')++export const JS_EXTENSIONS = ['.js', '.mjs', '.cjs'] as const++const replaceAll = (text: string, find: string, replacement: string): string => text.split(find).join(replacement)+const renderChunk = (template: string, chunkId: string): string =>+ replaceAll(template, QUOTED_CHUNK, writeString(chunkId))++function snippet(chunkId: string, releaseId: string | null): string {+ return releaseId === null+ ? renderChunk(SNIPPET, chunkId)+ : replaceAll(renderChunk(SNIPPET_WITH_RELEASE, chunkId), RELEASE_PLACEHOLDER, writeString(releaseId))+}++const comment = (chunkId: string): string => replaceAll(COMMENT, CHUNK_PLACEHOLDER, chunkId)++// Rust's `str::lines`: splits on `\n`, strips a `\r` before each `\n`, drops a final empty line, and+// keeps a bare `\r` at the very end.+export function rustLines(text: string): string[] {+ const parts = text.split('\n')+ const terminated = text.endsWith('\n')+ if (terminated) {+ parts.pop()+ }+ return parts.map((line, index) => (index < parts.length - 1 || terminated ? line.replace(/\r$/, '') : line))+}++// Rust's `str::trim` removes Unicode White_Space, which does not include U+FEFF.+const RUST_WHITESPACE = '[\\t\\n\\v\\f\\r \\u0085\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000]'+export const rustTrim = (text: string): string =>+ text.replace(new RegExp(`^${RUST_WHITESPACE}+|${RUST_WHITESPACE}+$`, 'g'), '')++export function uuidv5(bytes: Uint8Array): string {+ const hash = createHash('sha1').update(CHUNK_NAMESPACE).update(bytes).digest().subarray(0, 16)+ hash[6] = (hash[6]! & 0x0f) | 0x50+ hash[8] = (hash[8]! & 0x3f) | 0x80+ const hex = hash.toString('hex')+ return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`+}++// `uuid::Uuid::parse_str`: the forms a bundler debug id must have to be adopted as a chunk id.+export function isUuid(text: string): boolean {+ return /^(?:urn:uuid:)?(?:\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[0-9a-f]{32})$/i.test(+ text+ )+}++// `SourceMapContent`: three known fields, then every other key flattened into a sorted map.+export interface MapContent {+ releaseId: string | null+ chunkId: string | null+ debugId: string | null+ fields: Map<string, JsonValue>+}++// Parses a map like serde's derive: `chunkId` is an alias of `chunk_id`, a repeated known field is an+// error, nulls read as absent, and any other type for those fields is an error.+export function loadMapContent(text: string): MapContent {+ const parser = new JsonParser(text)+ parser.skipWhitespace()+ if (text[parser.index] !== '{') {+ parser.fail('invalid type: expected struct SourceMapContent')+ }+ parser.enter()+ parser.index+++ parser.skipWhitespace()+ const content: MapContent = { releaseId: null, chunkId: null, debugId: null, fields: new Map() }+ const seen = new Set<string>()+ const known = (name: string, value: JsonValue): string | null => {+ if (seen.has(name)) {+ parser.fail(`duplicate field \`${name}\``)+ }+ seen.add(name)+ if (value === null) {+ return null+ }+ if (typeof value !== 'string') {+ parser.fail(`invalid type for ${name}: expected a string`)+ }+ return value as string+ }+ if (text[parser.index] === '}') {+ parser.index+++ } else {+ for (;;) {+ parser.skipWhitespace()+ if (text[parser.index] !== '"') {+ parser.fail('key must be a string')+ }+ const key = parser.string()+ parser.skipWhitespace()+ if (text[parser.index] !== ':') {+ parser.fail('expected `:`')+ }+ parser.index+++ const value = parser.value()+ if (key === 'release_id') {+ content.releaseId = known('release_id', value)+ } else if (key === 'chunk_id' || key === 'chunkId') {+ content.chunkId = known('chunk_id', value)+ } else if (key === 'debugId') {+ content.debugId = known('debugId', value)+ } else {+ content.fields.set(key, value)+ }+ parser.skipWhitespace()+ const next = text[parser.index++]+ if (next === '}') {+ break+ }+ if (next !== ',') {+ parser.fail('expected `,` or `}`')+ }+ }+ }+ parser.leave()+ parser.end()+ return content+}++export function serializeMapContent(content: MapContent): string {+ const head: string[] = []+ if (content.releaseId !== null) {+ head.push(`"release_id":${writeString(content.releaseId)}`)+ }+ if (content.chunkId !== null) {+ head.push(`"chunk_id":${writeString(content.chunkId)}`)+ }+ if (content.debugId !== null) {+ head.push(`"debugId":${writeString(content.debugId)}`)+ }+ const body: string[] = []+ writeEntries([...content.fields.entries()], body)+ const inner = body.join('').slice(1, -1)+ return `{${[...head, ...(inner ? [inner] : [])].join(',')}}`+}++function isEmptyMap(get: (key: string) => JsonValue | undefined): boolean {+ const mappings = get('mappings')+ const sources = get('sources')+ const names = get('names')+ const sections = get('sections')+ return (+ (typeof mappings !== 'string' || mappings === '') &&+ (!Array.isArray(sources) || sources.length === 0) &&+ (!Array.isArray(names) || names.length === 0) &&+ (!Array.isArray(sections) ||+ sections.every((section) => {+ const map = section instanceof JsonObject ? section.entries.get('map') : undefined+ return !(map instanceof JsonObject) || isEmptyMap((key) => map.entries.get(key))+ }))+ )+}++export const isEmptyMapContent = (content: MapContent): boolean => isEmptyMap((key) => content.fields.get(key))++// `urlencoding::decode`: decodes valid `%XX` sequences, leaves malformed ones as they are, and fails+// when the result is not valid UTF-8.+function percentDecode(text: string): string {+ if (!text.includes('%')) {+ return text+ }+ const raw = Buffer.from(text, 'utf8')+ const bytes = Buffer.alloc(raw.length)+ let length = 0+ for (let index = 0; index < raw.length; index++) {+ const high = hexValue(raw[index + 1])+ const low = hexValue(raw[index + 2])+ if (raw[index] === 0x25 && high !== undefined && low !== undefined) {+ bytes[length++] = high * 16 + low+ index += 2+ } else {+ bytes[length++] = raw[index]!+ }+ }+ return decodeUtf8(bytes.subarray(0, length))+}++function hexValue(byte: number | undefined): number | undefined {+ if (byte === undefined) {+ return undefined+ }+ const digit = Number.parseInt(String.fromCharCode(byte), 16)+ return Number.isNaN(digit) ? undefined : digit+}++export function sourceMappingReference(source: string): string | undefined {+ const lines = rustLines(source)+ for (let index = lines.length - 1; index >= 0; index--) {+ const line = rustTrim(lines[index]!)+ for (const prefix of ['//# sourceMappingURL=', '//@ sourceMappingURL=']) {+ if (line.startsWith(prefix)) {+ return line.slice(prefix.length)+ }+ }+ }+ return undefined+}++// The candidates posthog-cli tries, in order: the referenced path, the reference with the public+// path prefix stripped, and `<file>.map` next to the bundle.+export function findSourceMap(+ sourcePath: string,+ reference: string | undefined,+ publicPathPrefix: string | undefined+): string | undefined {+ const folder = dirname(sourcePath)+ const candidates: string[] = []+ if (reference !== undefined) {+ const decoded = percentDecode(reference)+ const resolve = (path: string): string => (isAbsolute(path) ? path : join(folder, path))+ candidates.push(resolve(decoded))+ if (publicPathPrefix !== undefined) {+ for (const prefix of [publicPathPrefix, `${publicPathPrefix}/`]) {+ if (decoded.startsWith(prefix)) {+ candidates.push(resolve(decoded.slice(prefix.length)))+ }+ }+ }+ }+ const extension = extname(sourcePath)+ candidates.push(extension ? `${sourcePath.slice(0, -extension.length)}${extension}.map` : `${sourcePath}.map`)+ return candidates.find((candidate) => existsSync(candidate))+}++export function isJsBundle(path: string, publicPathPrefix: string | undefined): boolean {+ const name = basename(path)+ // Rust's `Path::extension` gives no extension for a file named `.js`.+ if (name.lastIndexOf('.') === 0 || !JS_EXTENSIONS.some((extension) => name.endsWith(extension))) {+ return false+ }+ try {+ return (+ findSourceMap(path, sourceMappingReference(decodeUtf8(readFileSync(path))), publicPathPrefix) !== undefined+ )+ } catch {+ return false+ }+}++export class SourcePair {+ constructor(+ readonly sourcePath: string,+ public source: string,+ readonly mapPath: string,+ public map: MapContent+ ) {}++ clone(): SourcePair {+ return new SourcePair(this.sourcePath, this.source, this.mapPath, {+ ...this.map,+ fields: new Map(this.map.fields),+ })+ }++ private commentValue(prefix: string): string | null {+ const lines = rustLines(this.source)+ for (let index = lines.length - 1; index >= 0; index--) {+ const line = lines[index]!+ if (line.startsWith(prefix)) {+ return line.slice(line.indexOf('=') + 1)+ }+ }+ return null+ }++ chunkId(): string | null {+ return this.commentValue('//# chunkId=')+ }++ sourceDebugId(): string | null {+ return this.commentValue('//# debugId=')+ }++ debugId(): string | null {+ return this.sourceDebugId() ?? this.map.debugId+ }++ // Where the release snippet sits, if the source carries one for `chunkId`. The release id+ // between the snippet halves must be at most 256 bytes, like posthog-cli's search.+ releaseSnippet(+ chunkId: string+ ): { start: number; end: number; releaseStart: number; releaseEnd: number } | undefined {+ const split = SNIPPET_WITH_RELEASE.indexOf(RELEASE_PLACEHOLDER)+ const prefix = SNIPPET_WITH_RELEASE.slice(0, split)+ const suffix = renderChunk(SNIPPET_WITH_RELEASE.slice(split + RELEASE_PLACEHOLDER.length), chunkId)+ const start = this.source.indexOf(prefix)+ if (start < 0) {+ return undefined+ }+ const releaseStart = start + prefix.length+ const length = this.source.slice(releaseStart).indexOf(suffix)+ if (length < 0 || Buffer.byteLength(this.source.slice(releaseStart, releaseStart + length)) > 256) {+ return undefined+ }+ return { start, end: releaseStart + length + suffix.length, releaseStart, releaseEnd: releaseStart + length }+ }++ injectedReleaseId(): string | null {+ const chunkId = this.chunkId()+ const span = chunkId === null ? undefined : this.releaseSnippet(chunkId)+ if (!span) {+ return null+ }+ try {+ const value = parseJson(this.source.slice(span.releaseStart, span.releaseEnd))+ return typeof value === 'string' ? value : null+ } catch {+ return null+ }+ }++ // `apply_adjustment`: decode the map with the sourcemap crate rules, move every token through+ // the adjustment, write it back, then keep the old ids and any old keys the writer dropped.+ private applyAdjustment(adjustment: Token[]): void {+ const decoded = decodeSourceMap(parseJson(serializeMapContent(this.map)))+ adjustMappings(decoded, adjustment)+ const fresh = loadMapContent(stringifyJson(encodeSourceMap(decoded)))+ fresh.chunkId = this.map.chunkId+ fresh.releaseId = this.map.releaseId+ fresh.debugId = this.map.debugId+ for (const [key, value] of this.map.fields) {+ if (key !== 'sections' && !fresh.fields.has(key)) {+ fresh.fields.set(key, value)+ }+ }+ this.map = fresh+ }++ addChunkId(chunkId: string, releaseId: string | null): void {+ if (this.chunkId() !== null) {+ throw new Error('Chunk ID already set')+ }+ const intro = snippet(chunkId, releaseId)+ const outro = comment(chunkId)+ const adjustment = magicStringAdjustment(Buffer.from(this.source, 'utf8'), intro, [], outro)+ this.source = intro + this.source + outro+ // A map that already carries a chunk id is left alone, even when the source had none.+ if (this.map.chunkId === null) {+ this.applyAdjustment(adjustment)+ this.map.chunkId = chunkId+ }+ }++ removeChunkId(chunkId: string): void {+ if (this.chunkId() !== chunkId) {+ throw new Error('Chunk ID mismatch')+ }+ const bytes = Buffer.from(this.source, 'utf8')+ const removed: [number, number][] = []+ const tail = Buffer.from(comment(chunkId), 'utf8')+ const commentAt = bytes.indexOf(tail)+ if (commentAt >= 0) {+ removed.push([commentAt, commentAt + tail.length])+ }+ const plain = Buffer.from(renderChunk(SNIPPET, chunkId), 'utf8')+ const snippetAt = bytes.indexOf(plain)+ if (snippetAt >= 0) {+ removed.push([snippetAt, snippetAt + plain.length])+ } else {+ const span = this.releaseSnippet(chunkId)+ if (span) {+ const start = Buffer.byteLength(this.source.slice(0, span.start))+ removed.push([start, start + Buffer.byteLength(this.source.slice(span.start, span.end))])+ }+ }+ const adjustment = magicStringAdjustment(bytes, '', removed, '')+ let out = bytes+ for (const [start, end] of [...removed].sort((a, b) => b[0] - a[0])) {+ out = Buffer.concat([out.subarray(0, start), out.subarray(end)])+ }+ this.source = decodeUtf8(out)+ this.applyAdjustment(adjustment)+ this.map.chunkId = null+ }++ sourceFingerprint(): string {+ return contentHash(this.source)+ }++ mapFingerprint(): string {+ return contentHash(serializeMapContent(this.map))+ }+}++export type Skip = { path: string; reason: string }++export function readPair(path: string, publicPathPrefix: string | undefined, skipped: Skip[]): SourcePair | undefined {+ let source: string+ let canonical: string+ try {+ canonical = realpathSync(path)+ source = decodeUtf8(readFileSync(canonical))+ } catch (error) {+ skipped.push({ path, reason: `failed to read source: ${(error as Error).message}` })+ return undefined+ }+ let mapPath: string | undefined+ try {+ mapPath = findSourceMap(canonical, sourceMappingReference(source), publicPathPrefix)+ } catch {+ skipped.push({ path, reason: 'the sourcemap reference is not valid UTF-8 once decoded' })+ return undefined+ }+ if (mapPath === undefined) {+ return undefined+ }+ let map: MapContent+ try {+ map = loadMapContent(decodeUtf8(readFileSync(mapPath)))+ } catch (error) {+ skipped.push({+ path,+ reason: `failed to read sourcemap: ${error instanceof JsonError ? error.message : (error as Error).message}`,+ })+ return undefined+ }+ // posthog-cli would rewrite any JSON object the reference names, such as a settings file next to+ // the build. A sourcemap always has `mappings`, or `sections` when it is an index map.+ if (!map.fields.has('mappings') && !map.fields.has('sections')) {+ skipped.push({ path, reason: "the file its sourceMappingURL names isn't a sourcemap: it has no mappings" })+ return undefined+ }+ return new SourcePair(canonical, source, mapPath, map)+}++const FILE_PATH_TOKEN = '\u0001file-path\u0001'+const isIdentifierChar = (codePoint: number): boolean =>+ /[\p{Alphabetic}\p{N}_$]/u.test(String.fromCodePoint(codePoint))+const isPathChar = (codePoint: number): boolean =>+ isIdentifierChar(codePoint) || '-./\\~@+'.includes(String.fromCodePoint(codePoint))++// `without_file_paths`: replaces every script path (ending in .js, .mjs or .cjs) with a fixed token,+// so a rebuild that only renames hashed chunk files keeps the same event-mode content hash.+export function withoutFilePaths(text: string): string {+ const out: string[] = []+ let copied = 0+ let searched = 0+ let changed = false+ for (;;) {+ const js = text.indexOf('js', searched)+ if (js < 0) {+ break+ }+ const end = js + 2+ searched = end+ let extension: number+ if (js >= 1 && text[js - 1] === '.') {+ extension = js - 1+ } else if (js >= 2 && (text[js - 1] === 'm' || text[js - 1] === 'c') && text[js - 2] === '.') {+ extension = js - 2+ } else {+ continue+ }+ if (end < text.length && isIdentifierChar(text.codePointAt(end)!)) {+ continue+ }+ let start = -1+ let index = extension+ while (index > copied) {+ const code = text.charCodeAt(index - 1)+ let codePoint = code+ let width = 1+ if (code >= 0xdc00 && code <= 0xdfff && index - 2 >= copied) {+ const high = text.charCodeAt(index - 2)+ if (high >= 0xd800 && high <= 0xdbff) {+ codePoint = text.codePointAt(index - 2)!+ width = 2+ }+ }+ if (!isPathChar(codePoint)) {+ break+ }+ index -= width+ start = index+ }+ if (start < 0) {+ continue+ }+ changed = true+ out.push(text.slice(copied, start), FILE_PATH_TOKEN)+ copied = end+ }+ if (!changed) {+ return text+ }+ out.push(text.slice(copied))+ return out.join('')+}++export type ReleaseMode = 'event' | 'symbol-set'++// `into_upload`: the payload is the injected source and its map. In event mode the content hash+// covers the pristine pair instead (injection removed, script paths replaced), so it stays the+// same across releases and rebuilds.+export function pairUpload(original: SourcePair, mode: ReleaseMode): SymbolSetUpload {+ const pair = original.clone()+ const injected = pair.chunkId()+ const chunkId = injected ?? pair.debugId()+ if (chunkId === null) {+ throw new Error(`Chunk ID or debug ID not found in ${pair.sourcePath}`)+ }+ const source = pair.source+ const map = serializeMapContent(pair.map)+ const data = writeSymbolData(+ SymbolDataType.SourceAndMap,+ sourceAndMapPayload(Buffer.from(source, 'utf8'), Buffer.from(map, 'utf8'))+ )+ let hash: string | undefined+ if (mode === 'event') {+ let variant: string+ if (injected !== null) {+ variant = pair.releaseSnippet(chunkId) ? 'with-release' : 'chunk-id-only'+ pair.removeChunkId(chunkId)+ } else {+ variant = 'native-debug-id'+ }+ const file = pair.map.fields.get('file')+ if (typeof file === 'string') {+ pair.map.fields.set('file', withoutFilePaths(file))+ }+ hash = contentHash(withoutFilePaths(pair.source), '\0', serializeMapContent(pair.map), '\0', variant)+ }+ return { chunkId, releaseId: pair.map.releaseId, data, contentHash: hash }+}diff --git a/hog/src/error-tracking/run.ts b/hog/src/error-tracking/run.tsnew file mode 100644index 000000000000..497db517b5b6--- /dev/null+++ b/hog/src/error-tracking/run.ts@@ -0,0 +1,466 @@+import { realpathSync } from 'node:fs'+import { dirname, relative, resolve } from 'node:path'++import type { ArtifactKind } from '@/core/config'+import type { Context } from '@/core/context'+import { EXIT_USAGE, HogError } from '@/core/errors'++import { cleanUp, cssTargets, jsTarget, type CleanupTarget } from './cleanup'+import { contentHash } from './container'+import { discover, isIgnored, listFiles, type Artifact, type Root } from './discover'+import { GitError, gitInfo, type GitInfo } from './git'+import {+ injectEventMode,+ injectSymbolSetMode,+ preparePairs,+ randomChunkId,+ releaseRequested,+ resolveJsRelease,+ savePairs,+ type InjectAction,+} from './js-flow'+import { readPair, serializeMapContent, type ReleaseMode, type Skip, type SourcePair } from './kinds/js'+import { proguardContainer } from './kinds/proguard'+import { fetchOrCreateRelease, resolveRelease, type Release, type ReleaseFields } from './release'+import { SymbolSetClient, type SymbolSetUpload, type UploadStatus } from './upload'++export interface ErrorTrackingOptions {+ kind?: ArtifactKind+ mapId?: string+ release: ReleaseFields+ releaseMode: ReleaseMode+ publicPathPrefix?: string+ force: boolean+ skipOnConflict: boolean+ batchSize: number+ concurrency: number+ deleteAfter: boolean+ dryRun: boolean+}++export interface ReleaseReport {+ name: string+ version: string+ id: string | null+}++export interface SymbolSetReport {+ path: string+ kind: ArtifactKind+ chunkId: string+ contentHash: string+ size: number+ status: UploadStatus | 'planned'+}++export interface InjectedReport {+ path: string+ map: string+ chunkId: string+ action: InjectAction+}++export interface Selection {+ artifacts: Artifact[]+ roots: Root[]+ cwd: string+}++export async function select(ctx: Context, paths: string[], options: ErrorTrackingOptions): Promise<Selection> {+ let roots: Root[]+ let cwd: string+ if (paths.length > 0) {+ roots = paths.map((path) => ({ path, kind: options.kind, mapId: options.mapId }))+ cwd = ctx.runtime.cwd()+ } else {+ const loaded = await ctx.config()+ const sources = loaded?.config.errorTracking?.sources ?? []+ if (!loaded || sources.length === 0) {+ throw new HogError(+ 'no_paths',+ 'Pass the files or folders to process, or list them under errorTracking.sources in posthog.json.',+ 'Run `hog config schema` to see the posthog.json format.',+ EXIT_USAGE+ )+ }+ roots = sources.map((source) => ({ ...source, kind: options.kind ?? source.kind }))+ cwd = loaded.root+ }+ return { artifacts: discover(roots, cwd, { publicPathPrefix: options.publicPathPrefix }), roots, cwd }+}++export async function releaseFields(ctx: Context, options: ErrorTrackingOptions): Promise<ReleaseFields> {+ const configured = (await ctx.config())?.config.errorTracking?.release+ return {+ name: options.release.name ?? configured?.name,+ version: options.release.version ?? configured?.version,+ build: options.release.build,+ }+}++class Releases {+ private readonly cache = new Map<string, Promise<Release>>()++ constructor(private readonly client: () => Promise<SymbolSetClient>) {}++ get(name: string, version: string, git: GitInfo | undefined): Promise<Release> {+ const key = `${name}\u0000${version}`+ if (!this.cache.has(key)) {+ this.cache.set(+ key,+ this.client().then((client) => fetchOrCreateRelease(client, name, version, git ? { git } : {}))+ )+ }+ return this.cache.get(key)!+ }+}++// One API client and one release cache per command, created on first use so dry runs and+// `inject` without a release never read credentials.+export class Session {+ private client: Promise<SymbolSetClient> | undefined+ readonly releases = new Releases(() => this.getClient())++ constructor(private readonly ctx: Context) {}++ getClient(): Promise<SymbolSetClient> {+ this.client ??= this.ctx.credentials().then((credentials) => new SymbolSetClient(this.ctx.runtime, credentials))+ return this.client+ }+}++function readPairs(+ selection: Selection,+ options: ErrorTrackingOptions,+ skipped: Skip[]+): { pairs: SourcePair[]; artifacts: Map<SourcePair, Artifact> } {+ const seen = new Set<string>()+ const pairs: SourcePair[] = []+ const owners = new Map<SourcePair, Artifact>()+ for (const artifact of selection.artifacts.filter((candidate) => candidate.kind === 'js')) {+ const pair = readPair(artifact.path, options.publicPathPrefix, skipped)+ if (+ pair &&+ isIgnored(+ artifact.root,+ realpathSync(resolve(selection.cwd, artifact.root.path)),+ realpathSync(pair.mapPath)+ )+ ) {+ skipped.push({ path: artifact.display, reason: `its sourcemap matches an ignore pattern in posthog.json` })+ continue+ }+ if (pair && !seen.has(pair.sourcePath)) {+ seen.add(pair.sourcePath)+ pairs.push(pair)+ owners.set(pair, artifact)+ }+ }+ return { pairs, artifacts: owners }+}++export interface InjectReport {+ release: ReleaseReport | null+ injected: InjectedReport[]+ skipped: Skip[]+ warnings: string[]+ pairs: SourcePair[]+ owners: Map<SourcePair, Artifact>+}++export async function inject(+ ctx: Context,+ selection: Selection,+ options: ErrorTrackingOptions,+ session: Session = new Session(ctx),+ preset?: Release+): Promise<InjectReport> {+ const skipped: Skip[] = []+ const warnings: string[] = []+ const { pairs, artifacts: owners } = readPairs(selection, options, skipped)+ if (pairs.length === 0) {+ throw new HogError(+ 'no_bundles',+ 'hog found no JavaScript bundles with sourcemaps to inject in those paths.',+ 'Check the paths, or pass --public-path-prefix if your sourceMappingURL comments are absolute URLs.'+ )+ }+ const fields = await releaseFields(ctx, options)+ let release = preset+ let reported: ReleaseReport | null = release+ ? { name: release.project, version: release.version, id: release.id }+ : null+ if (!release) {+ const needed =+ options.releaseMode === 'event' ||+ releaseRequested(fields) ||+ pairs.some((pair) => pair.map.releaseId === null)+ const resolved = needed ? resolveJsRelease(fields, ctx.runtime.env, selection.cwd, warnings) : undefined+ if (resolved) {+ reported = { name: resolved.name, version: resolved.version, id: null }+ if (options.dryRun) {+ warnings.push(DRY_RUN_RELEASE_WARNING)+ } else {+ release = await session.releases.get(resolved.name, resolved.version, resolved.git)+ reported.id = release.id+ }+ } else if (options.releaseMode === 'event') {+ warnings.push(+ 'No release could be resolved, so hog injected chunk IDs only and events will carry no release.'+ )+ }+ }+ const releaseId = release?.id ?? null+ const outcomes =+ options.releaseMode === 'event'+ ? injectEventMode(pairs, releaseId, warnings)+ : injectSymbolSetMode(pairs, releaseId, randomChunkId(ctx.runtime.now))+ if (!options.dryRun) {+ savePairs(pairs, (pair) => serializeMapContent(pair.map))+ }+ return {+ release: reported,+ injected: outcomes.map((outcome) => ({+ path: owners.get(outcome.pair)?.display ?? outcome.pair.sourcePath,+ map: relative(realpathSync(selection.cwd), outcome.pair.mapPath),+ chunkId: outcome.chunkId,+ action: outcome.action,+ })),+ skipped,+ warnings,+ pairs,+ owners,+ }+}++const DRY_RUN_RELEASE_WARNING =+ 'PostHog assigns the release ID, so a dry run leaves it out. JavaScript content hashes from a dry run can differ from a real run.'++export interface UploadReport {+ dryRun: boolean+ release: ReleaseReport | null+ symbolSets: SymbolSetReport[]+ skipped: Skip[]+ warnings: string[]+ deletedMaps: string[]+}++interface Planned {+ artifact: Artifact+ upload: SymbolSetUpload+ policy: { force: boolean; skipOnConflict: boolean }+}++function proguardGit(ctx: Context, artifact: Artifact): GitInfo | undefined {+ try {+ // posthog-cli resolves symlinks first, so a link outside the repository still finds it.+ return gitInfo(ctx.runtime.env, dirname(realpathSync(artifact.path)))+ } catch (error) {+ if (error instanceof GitError) {+ throw new HogError(+ 'git_failed',+ `hog couldn't read the git repository: ${error.message}`,+ 'Pass --release-name and --release-version.'+ )+ }+ throw error+ }+}++export async function upload(+ ctx: Context,+ selection: Selection,+ options: ErrorTrackingOptions,+ session: Session = new Session(ctx),+ injected?: InjectReport+): Promise<UploadReport> {+ const skipped: Skip[] = [...(injected?.skipped ?? [])]+ const warnings: string[] = [...(injected?.warnings ?? [])]+ const releases = session.releases+ const fields = await releaseFields(ctx, options)+ const planned: Planned[] = []+ let reported: ReleaseReport | null = injected?.release ?? null++ const mappings = selection.artifacts.filter((artifact) => artifact.kind === 'proguard')+ if (mappings.length > 0) {+ const git = proguardGit(ctx, mappings[0]!)+ const { name, version } = resolveRelease(fields, git)+ let release: Release | undefined+ if (name !== undefined && version !== undefined) {+ reported = { name, version, id: null }+ if (!options.dryRun) {+ release = await releases.get(name, version, git)+ reported.id = release.id+ }+ }+ for (const artifact of mappings) {+ const chunkId = options.mapId ?? artifact.root.mapId+ if (!chunkId) {+ throw new HogError(+ 'map_id_required',+ `${artifact.display} is a ProGuard mapping, which needs the map ID your build injected into the app.`,+ 'Pass --map-id, or set "mapId" on the source in posthog.json.',+ EXIT_USAGE+ )+ }+ planned.push({+ artifact,+ upload: {+ chunkId,+ releaseId: release?.id ?? null,+ data: proguardContainer(artifact.path, artifact.display),+ },+ policy: { force: options.force, skipOnConflict: options.skipOnConflict },+ })+ }+ }++ const read = injected+ ? { pairs: injected.pairs, artifacts: injected.owners }+ : readPairs(selection, options, skipped)+ let targets: { pair: SourcePair; target: CleanupTarget }[] = []+ // posthog-cli stops before any cleanup when no bundle has an id to upload under.+ let jsUploadable = false+ if (read.pairs.length > 0) {+ if (options.releaseMode === 'event' && options.skipOnConflict) {+ warnings.push(+ '--skip-on-conflict is ignored in event mode: every chunk is overwritten, so events never keep an old release.'+ )+ }+ const uploadable = read.pairs.filter((pair) => pair.chunkId() !== null || pair.debugId() !== null)+ jsUploadable = uploadable.length > 0+ if (!jsUploadable) {+ warnings.push(+ 'No bundle has a chunk ID or a native debug ID, so there is nothing to upload. Run `hog error-tracking inject` first.'+ )+ }+ if (options.deleteAfter) {+ targets = uploadable.map((pair) => ({ pair, target: jsTarget(pair) }))+ }+ if (+ options.releaseMode === 'symbol-set' &&+ !injected?.release &&+ (releaseRequested(fields) || uploadable.some((pair) => pair.map.releaseId === null))+ ) {+ const resolved = resolveJsRelease(fields, ctx.runtime.env, selection.cwd, warnings)+ if (resolved) {+ reported = { name: resolved.name, version: resolved.version, id: null }+ if (options.dryRun) {+ warnings.push(DRY_RUN_RELEASE_WARNING)+ } else {+ const release = await releases.get(resolved.name, resolved.version, resolved.git)+ reported.id = release.id+ for (const pair of uploadable) {+ pair.map.releaseId = release.id+ }+ }+ }+ }+ const prepared = preparePairs(read.pairs, options.releaseMode)+ skipped.push(...prepared.skipped)+ for (const chunkId of prepared.duplicates) {+ warnings.push(`Duplicate chunk ID ${chunkId} across symbol sets: hog uploads the first one.`)+ }+ // Event mode always replaces what PostHog has, because the payload changes with each release.+ const policy =+ options.releaseMode === 'event'+ ? { force: true, skipOnConflict: false }+ : { force: options.force, skipOnConflict: options.skipOnConflict }+ for (const { pair, upload: item } of prepared.uploads) {+ planned.push({ artifact: read.artifacts.get(pair)!, upload: item, policy })+ }+ }++ const report = (item: Planned, status: SymbolSetReport['status']): SymbolSetReport => ({+ path: item.artifact.display,+ kind: item.artifact.kind,+ chunkId: item.upload.chunkId,+ contentHash: item.upload.contentHash ?? contentHash(item.upload.data),+ size: item.upload.data.length,+ status,+ })+ if (options.dryRun) {+ return {+ dryRun: true,+ release: reported,+ symbolSets: planned.map((item) => report(item, 'planned')),+ skipped,+ warnings,+ deletedMaps: [],+ }+ }++ const statuses = new Map<string, UploadStatus>()+ const groups = new Map<string, Planned[]>()+ for (const item of planned) {+ const key = `${item.policy.force}:${item.policy.skipOnConflict}`+ const group = groups.get(key)+ if (group) {+ group.push(item)+ } else {+ groups.set(key, [item])+ }+ }+ for (const group of groups.values()) {+ const client = await session.getClient()+ const outcome = await client.upload(+ group.map((item) => item.upload),+ { batchSize: options.batchSize, concurrency: options.concurrency, ...group[0]!.policy }+ )+ for (const [chunkId, status] of outcome.status) {+ statuses.set(chunkId, status)+ }+ }++ let deletedMaps: string[] = []+ if (options.deleteAfter && jsUploadable) {+ const rootPaths = selection.roots.map((root) => resolve(selection.cwd, root.path))+ const ignored = (mapPath: string): boolean =>+ selection.roots.some((root, index) =>+ isIgnored(root, realpathSync(rootPaths[index]!), realpathSync(mapPath))+ )+ const cleanup = cleanUp([+ // Maps skipped as too large go too, as in posthog-cli, so they never ship with the build.+ ...targets.map(({ target }) => target),+ ...cssTargets(+ listFiles(selection.roots, selection.cwd),+ rootPaths,+ options.publicPathPrefix,+ warnings,+ ignored+ ),+ ])+ deletedMaps = cleanup.deletedMaps.map((path) => relative(realpathSync(selection.cwd), path))+ warnings.push(...cleanup.warnings)+ }+ return {+ dryRun: false,+ release: reported,+ symbolSets: planned.map((item) => report(item, statuses.get(item.upload.chunkId) ?? 'already_present')),+ skipped,+ warnings,+ deletedMaps,+ }+}++// `process`: posthog-cli creates the release first when the flags name one, so a failure there+// stops the run before any file changes. Otherwise inject resolves it from git as usual.+export async function processArtifacts(+ ctx: Context,+ selection: Selection,+ options: ErrorTrackingOptions+): Promise<UploadReport & { injected: InjectedReport[] }> {+ const session = new Session(ctx)+ const fields = await releaseFields(ctx, options)+ let preset: Release | undefined+ if (releaseRequested(fields) && !options.dryRun) {+ const resolved = resolveJsRelease(fields, ctx.runtime.env, selection.cwd, [])+ if (resolved) {+ preset = await session.releases.get(resolved.name, resolved.version, resolved.git)+ }+ }+ const hasJs = selection.artifacts.some((artifact) => artifact.kind === 'js')+ const injected = hasJs ? await inject(ctx, selection, options, session, preset) : undefined+ const report = await upload(ctx, selection, options, session, injected)+ return { ...report, injected: injected?.injected ?? [] }+}diff --git a/hog/src/error-tracking/sourcemap.ts b/hog/src/error-tracking/sourcemap.tsnew file mode 100644index 000000000000..195a7f0fc38c--- /dev/null+++ b/hog/src/error-tracking/sourcemap.ts@@ -0,0 +1,773 @@+// A port of the parts of the `sourcemap` crate (9.2.2) and `magic_string` (0.3.4) that posthog-cli+// uses to rewrite a sourcemap after injecting a chunk id. The rewritten map is uploaded and hashed,+// so its bytes must match: token order, VLQ output, the fields the encoder writes, and the quirks+// listed next to the code that reproduces them.+import { formatFloat, isJsonNumber, JsonObject, type JsonNumber, type JsonValue } from './json'++export const NONE = 0xffffffff++export interface Token {+ dstLine: number+ dstCol: number+ srcLine: number+ srcCol: number+ srcId: number+ nameId: number+ isRange: boolean+}++export interface SourceMap {+ file: string | null+ tokens: Token[]+ names: string[]+ sources: string[]+ // Sources with `sourceRoot` prepended, used only when flattening index maps.+ prefixedSources: string[] | null+ sourceRoot: string | null+ sourcesContent: (string | null)[]+ ignoreList: Set<number>+ debugId: string | null+}++export class SourceMapError extends Error {}++const fail = (message: string): never => {+ throw new SourceMapError(message)+}++const BASE64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'+const BASE64_VALUES = new Int16Array(128).fill(-1)+for (let index = 0; index < 64; index++) {+ BASE64_VALUES[BASE64.charCodeAt(index)] = index+}++function decodeVlqSegment(segment: string, out: number[]): void {+ let current = 0+ let shift = 0+ for (let index = 0; index < segment.length; index++) {+ const code = segment.charCodeAt(index)+ const digit = code < 128 ? BASE64_VALUES[code]! : -1+ if (digit < 0) {+ fail(`invalid base64 character in mappings`)+ }+ current += (digit & 31) * 2 ** shift+ if (digit & 32) {+ shift += 5+ } else {+ const value = Math.floor(current / 2)+ out.push(current % 2 === 1 ? -value : value)+ current = 0+ shift = 0+ }+ }+ if (shift) {+ fail('VLQ left over')+ }+}++function encodeVlq(out: string[], value: number): void {+ let remaining = value < 0 ? -value * 2 + 1 : value * 2+ do {+ let digit = remaining % 32+ remaining = Math.floor(remaining / 32)+ if (remaining > 0) {+ digit |= 32+ }+ out.push(BASE64[digit]!)+ } while (remaining > 0)+}++const u32 = (value: number): number => value >>> 0++function field(raw: JsonObject, name: string): JsonValue | undefined {+ return raw.entries.get(name)+}++function asU32(value: JsonValue, name: string): number {+ if (!isJsonNumber(value) || value.kind !== 'u' || value.value > 0xffffffffn) {+ fail(`invalid type for ${name}: expected u32`)+ }+ return Number((value as { value: bigint }).value)+}++function optionalString(value: JsonValue | undefined, name: string): string | null {+ if (value === undefined || value === null) {+ return null+ }+ if (typeof value !== 'string') {+ fail(`invalid type for ${name}: expected a string`)+ }+ return value as string+}++function optionalArray(value: JsonValue | undefined, name: string): JsonValue[] | null {+ if (value === undefined || value === null) {+ return null+ }+ if (!Array.isArray(value)) {+ fail(`invalid type for ${name}: expected a sequence`)+ }+ return value as JsonValue[]+}++function optionalU32(value: JsonValue | undefined, name: string): number | null {+ return value === undefined || value === null ? null : asU32(value, name)+}++// Fields serde type-checks even when the decoder ignores them: a wrong type fails the whole map.+function validateExtensions(raw: JsonObject): void {+ for (const offset of optionalArray(field(raw, 'x_facebook_offsets'), 'x_facebook_offsets') ?? []) {+ optionalU32(offset, 'x_facebook_offsets')+ }+ for (const path of optionalArray(field(raw, 'x_metro_module_paths'), 'x_metro_module_paths') ?? []) {+ if (typeof path !== 'string') {+ fail('invalid type for x_metro_module_paths: expected a string')+ }+ }+ for (const source of optionalArray(field(raw, 'x_facebook_sources'), 'x_facebook_sources') ?? []) {+ for (const scope of optionalArray(source, 'x_facebook_sources') ?? []) {+ if (!(scope instanceof JsonObject)) {+ fail('invalid type for x_facebook_sources: expected a struct')+ }+ const mapping = scope as JsonObject+ const names = mapping.entries.get('names')+ if (!Array.isArray(names) || names.some((name) => typeof name !== 'string')) {+ fail('invalid type for x_facebook_sources names')+ }+ if (typeof mapping.entries.get('mappings') !== 'string') {+ fail('invalid type for x_facebook_sources mappings')+ }+ }+ }+}++// `debugid::DebugId::from_str` and its Display: the canonical form written into `debug_id`.+export function canonicalDebugId(text: string): string {+ const invalid = (): never => fail(`invalid value: string ${JSON.stringify(text)}, expected DebugId`)+ if ([...text].some((char) => char.charCodeAt(0) > 0x7f)) {+ invalid()+ }+ const hyphenated = text[8] === '-'+ const hex32 = (value: string): number | null =>+ /^\+?[0-9a-fA-F]+$/.test(value) && Number.parseInt(value.replace('+', ''), 16) <= 0xffffffff+ ? Number.parseInt(value.replace('+', ''), 16)+ : null+ const minPdb = hyphenated ? 10 : 9+ const maxPdb = hyphenated ? 17 : 16+ if (text.length >= minPdb && text.length <= maxPdb) {+ const timestamp = hex32(text.slice(0, 8))+ const appendix = hex32(hyphenated ? text.slice(9) : text.slice(8))+ if (timestamp === null || appendix === null) {+ return invalid()+ }+ const head = timestamp.toString(16).toUpperCase().padStart(8, '0')+ return appendix > 0 ? `${head}-${appendix.toString(16)}` : head+ }+ const uuidLength = hyphenated ? 36 : 32+ const uuidText = text.slice(0, uuidLength)+ const uuidPattern = hyphenated+ ? /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/+ : /^[0-9a-fA-F]{32}$/+ if (uuidText.length !== uuidLength || !uuidPattern.test(uuidText)) {+ return invalid()+ }+ const hex = uuidText.replaceAll('-', '').toLowerCase()+ const uuid = `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`+ if (text.length === uuidLength) {+ return uuid+ }+ let appendixText = text.slice(uuidLength)+ if (hyphenated !== appendixText.startsWith('-')) {+ return invalid()+ }+ if (hyphenated) {+ appendixText = appendixText.slice(1)+ }+ const appendix = hex32(appendixText.slice(0, 8))+ if (appendix === null) {+ return invalid()+ }+ return appendix > 0 ? `${uuid}-${appendix.toString(16)}` : uuid+}++function rawDebugId(raw: JsonObject, preferCamelCase: boolean): string | null {+ const snake = optionalString(field(raw, 'debug_id'), 'debug_id')+ const camel = optionalString(field(raw, 'debugId'), 'debugId')+ // serde parses both fields, so an invalid one fails even when the other wins.+ const snakeId = snake === null ? null : canonicalDebugId(snake)+ const camelId = camel === null ? null : canonicalDebugId(camel)+ return preferCamelCase ? (camelId ?? snakeId) : (snakeId ?? camelId)+}++function sortTokens(tokens: Token[]): void {+ // Rust uses `sort_unstable_by_key`. For already sorted input, and for ties within 20 tokens,+ // it agrees with this stable sort. A larger unsorted map with tied positions can order them+ // differently: a known, unreproduced edge case.+ tokens.sort((a, b) => a.dstLine - b.dstLine || a.dstCol - b.dstCol)+}++function prefixSource(root: string, source: string): string {+ const trimmed = root.endsWith('/') ? root.slice(0, -1) : root+ const absolute =+ source !== '' && (source.startsWith('/') || source.startsWith('http:') || source.startsWith('https:'))+ return absolute ? source : `${trimmed}/${source}`+}++function newMap(+ file: string | null,+ tokens: Token[],+ names: string[],+ sources: string[],+ content: (string | null)[] | null+): SourceMap {+ sortTokens(tokens)+ return {+ file,+ tokens,+ names,+ sources,+ prefixedSources: null,+ sourceRoot: null,+ sourcesContent: content ?? [],+ ignoreList: new Set(),+ debugId: null,+ }+}++function setSourceRoot(map: SourceMap, root: string | null): void {+ map.sourceRoot = root+ map.prefixedSources = root ? map.sources.map((source) => prefixSource(root, source)) : null+}++// The `rangeMappings` bitfield of one line: base64 digits, least significant bit first.+function decodeRangeBits(text: string): boolean[] {+ const bits: boolean[] = []+ for (const char of text) {+ const value = char.charCodeAt(0) < 128 ? BASE64_VALUES[char.charCodeAt(0)]! : -1+ if (value < 0) {+ fail(`invalid base64 character ${char} in rangeMappings`)+ }+ for (let bit = 0; bit < 6; bit++) {+ bits.push(((value >> bit) & 1) === 1)+ }+ }+ return bits+}++function fileField(value: JsonValue | undefined): string | null {+ if (value === undefined || value === null) {+ return null+ }+ return typeof value === 'string' ? value : '<invalid>'+}++function numberText(value: JsonNumber): string {+ return value.kind === 'f' ? formatFloat(value.value) : value.value.toString()+}++function decodeRegular(raw: JsonObject): SourceMap {+ optionalU32(field(raw, 'version'), 'version')+ const names = optionalArray(field(raw, 'names'), 'names') ?? []+ const sources = (optionalArray(field(raw, 'sources'), 'sources') ?? []).map((source) =>+ optionalString(source, 'sources')+ )+ const rangeMappings = optionalString(field(raw, 'rangeMappings'), 'rangeMappings') ?? ''+ const mappings = optionalString(field(raw, 'mappings'), 'mappings') ?? ''+ const contentArray = optionalArray(field(raw, 'sourcesContent'), 'sourcesContent')+ const content = contentArray ? contentArray.map((value) => optionalString(value, 'sourcesContent')) : null+ const ignoreList = (optionalArray(field(raw, 'ignoreList'), 'ignoreList') ?? []).map((value) =>+ asU32(value, 'ignoreList')+ )+ const sourceRoot = optionalString(field(raw, 'sourceRoot'), 'sourceRoot')+ validateExtensions(raw)+ const debugId = rawDebugId(raw, false)++ const tokens: Token[] = []+ let sourceId = 0+ let sourceLine = 0+ let sourceColumn = 0+ let nameId = 0+ const numbers: number[] = []+ const rangeLines = rangeMappings.split(';')+ const lines = mappings.split(';')+ for (let line = 0; line < lines.length; line++) {+ const text = lines[line]!+ if (text === '') {+ continue+ }+ const rangeBits = decodeRangeBits(rangeLines[line] ?? '')+ let column = 0+ const segments = text.split(',')+ for (let index = 0; index < segments.length; index++) {+ const segment = segments[index]!+ if (segment === '') {+ continue+ }+ numbers.length = 0+ decodeVlqSegment(segment, numbers)+ if (numbers.length !== 1 && numbers.length !== 4 && numbers.length !== 5) {+ fail(`bad segment size ${numbers.length}`)+ }+ column = u32(column + numbers[0]!)+ let token: Token = {+ dstLine: line,+ dstCol: column,+ srcLine: NONE,+ srcCol: NONE,+ srcId: NONE,+ nameId: NONE,+ isRange: rangeBits[index] ?? false,+ }+ if (numbers.length > 1) {+ sourceId = u32(sourceId + numbers[1]!)+ if (sourceId >= sources.length) {+ fail(`bad source reference ${sourceId}`)+ }+ sourceLine = u32(sourceLine + numbers[2]!)+ sourceColumn = u32(sourceColumn + numbers[3]!)+ token = { ...token, srcId: sourceId, srcLine: sourceLine, srcCol: sourceColumn }+ if (numbers.length > 4) {+ nameId = u32(nameId + numbers[4]!)+ if (nameId >= names.length) {+ fail(`bad name reference ${nameId}`)+ }+ token.nameId = nameId+ }+ }+ tokens.push(token)+ }+ }+ const nameStrings = names.map((name) =>+ typeof name === 'string' ? name : isJsonNumber(name) ? numberText(name) : ''+ )+ const map = newMap(+ fileField(field(raw, 'file')),+ tokens,+ nameStrings,+ sources.map((source) => source ?? ''),+ content+ )+ setSourceRoot(map, sourceRoot)+ map.debugId = debugId+ for (const index of ignoreList) {+ map.ignoreList.add(index)+ }+ return map+}++interface Section {+ line: number+ column: number+ map: SourceMap | null+}++function decodeAny(raw: JsonValue): SourceMap {+ if (!(raw instanceof JsonObject)) {+ return fail('invalid type: expected struct RawSourceMap')+ }+ const sections = field(raw, 'sections')+ if (sections === undefined || sections === null) {+ return decodeRegular(raw)+ }+ optionalU32(field(raw, 'version'), 'version')+ validateExtensions(raw)+ rawDebugId(raw, true)+ const parsed: Section[] = (optionalArray(sections, 'sections') ?? []).map((section) => {+ if (!(section instanceof JsonObject)) {+ return fail('invalid type for sections: expected a struct')+ }+ const offset = section.entries.get('offset')+ if (!(offset instanceof JsonObject)) {+ return fail('invalid type for section offset')+ }+ const line = offset.entries.get('line')+ const column = offset.entries.get('column')+ if (line === undefined || column === undefined) {+ return fail('missing field in section offset')+ }+ optionalString(section.entries.get('url'), 'url')+ const map = section.entries.get('map')+ return {+ line: asU32(line, 'line'),+ column: asU32(column, 'column'),+ map: map === undefined || map === null ? null : decodeAny(map),+ }+ })+ parsed.sort((a, b) => a.line - b.line || a.column - b.column)+ return flatten(fileField(field(raw, 'file')), parsed)+}++// `SourceMapIndex::flatten`: sources and names are deduplicated, tokens offset by their section.+// The flattened map has no debug id.+function flatten(file: string | null, sections: Section[]): SourceMap {+ const sourceIds = new Map<string, number>()+ const sources: string[] = []+ const content: (string | null)[] = []+ const nameIds = new Map<string, number>()+ const names: string[] = []+ const tokens: Token[] = []+ const ignore = new Set<number>()+ for (const section of sections) {+ const map = section.map ?? fail('cannot flatten a section without a map')+ const sectionSourceIds = (map.prefixedSources ?? map.sources).map((source, index) => {+ let id = sourceIds.get(source)+ if (id === undefined) {+ id = sources.length+ sourceIds.set(source, id)+ sources.push(source)+ }+ const text = map.sourcesContent[index] ?? null+ if (text !== null) {+ while (content.length < sources.length) {+ content.push(null)+ }+ content[id] = text+ }+ return id+ })+ const sectionNameIds = map.names.map((name) => {+ let id = nameIds.get(name)+ if (id === undefined) {+ id = names.length+ nameIds.set(name, id)+ names.push(name)+ }+ return id+ })+ for (const token of map.tokens) {+ const srcId = token.srcId === NONE ? NONE : (sectionSourceIds[token.srcId] ?? NONE)+ tokens.push({+ ...token,+ dstLine: u32(token.dstLine + section.line),+ dstCol: token.dstLine === 0 ? u32(token.dstCol + section.column) : token.dstCol,+ srcId,+ nameId: token.nameId === NONE ? NONE : (sectionNameIds[token.nameId] ?? NONE),+ })+ if (map.ignoreList.has(token.srcId)) {+ ignore.add(srcId)+ }+ }+ }+ const map = newMap(file, tokens, names, sources, content.length > 0 ? content : null)+ for (const index of ignore) {+ map.ignoreList.add(index)+ }+ return map+}++export function decodeSourceMap(raw: JsonValue): SourceMap {+ return decodeAny(raw)+}++// `SourceMap::adjust_mappings`: maps every token through the adjustment's ranges. A range never+// crosses a line, so tokens on lines the adjustment doesn't cover are dropped.+export function adjustMappings(map: SourceMap, adjustment: Token[]): void {+ type Position = [number, number]+ interface Range {+ start: Position+ end: Position+ token: Token+ }+ const before = (a: Position, b: Position): boolean => a[0] < b[0] || (a[0] === b[0] && a[1] < b[1])+ const atMost = (a: Position, b: Position): boolean => !before(b, a)+ const ranges = (tokens: Token[], key: (token: Token) => Position): Range[] => {+ tokens.sort((a, b) => {+ const ka = key(a)+ const kb = key(b)+ return ka[0] - kb[0] || ka[1] - kb[1]+ })+ return tokens.map((token, index) => {+ const start = key(token)+ const next: Position = index + 1 < tokens.length ? key(tokens[index + 1]!) : [Infinity, Infinity]+ const endOfLine: Position = [start[0], Infinity]+ return { start, end: before(next, endOfLine) ? next : endOfLine, token }+ })+ }+ const original = ranges(map.tokens, (token) => [token.dstLine, token.dstCol])+ const adjusted = ranges([...adjustment], (token) => [token.srcLine, token.srcCol])+ map.tokens = []+ if (original.length === 0) {+ return+ }+ let index = 0+ let current = original[0]!+ outer: for (const range of adjusted) {+ const lineDelta = range.token.dstLine - range.token.srcLine+ const columnDelta = range.token.dstCol - range.token.srcCol+ while (atMost(current.end, range.start)) {+ if (++index >= original.length) {+ break outer+ }+ current = original[index]!+ }+ while (before(current.start, range.end)) {+ const [line, column] = before(current.start, range.start) ? range.start : current.start+ map.tokens.push({ ...current.token, dstLine: u32(line + lineDelta), dstCol: u32(column + columnDelta) })+ if (atMost(range.end, current.end)) {+ break+ }+ if (++index >= original.length) {+ break outer+ }+ current = original[index]!+ }+ }+ sortTokens(map.tokens)+}++const sameToken = (a: Token, b: Token): boolean =>+ a.dstLine === b.dstLine &&+ a.dstCol === b.dstCol &&+ a.srcLine === b.srcLine &&+ a.srcCol === b.srcCol &&+ a.srcId === b.srcId &&+ a.nameId === b.nameId &&+ a.isRange === b.isRange++function serializeMappings(map: SourceMap): string {+ const out: string[] = []+ let line = 0+ let column = 0+ let sourceLine = 0+ let sourceColumn = 0+ let nameId = 0+ let sourceId = 0+ map.tokens.forEach((token, index) => {+ if (token.dstLine !== line) {+ column = 0+ while (token.dstLine !== line) {+ out.push(';')+ line+++ }+ } else if (index > 0) {+ if (sameToken(token, map.tokens[index - 1]!)) {+ return+ }+ out.push(',')+ }+ encodeVlq(out, token.dstCol - column)+ column = token.dstCol+ if (token.srcId !== NONE) {+ encodeVlq(out, token.srcId - sourceId)+ sourceId = token.srcId+ encodeVlq(out, token.srcLine - sourceLine)+ sourceLine = token.srcLine+ encodeVlq(out, token.srcCol - sourceColumn)+ sourceColumn = token.srcCol+ if (token.nameId !== NONE && token.nameId < map.names.length) {+ encodeVlq(out, token.nameId - nameId)+ nameId = token.nameId+ }+ }+ })+ return out.join('')+}++function encodeRangeBits(bits: boolean[], out: string[]): void {+ let last = 0+ bits.forEach((bit, index) => {+ if (bit) {+ last = index+ }+ })+ for (let start = 0; start <= last; start += 6) {+ let value = 0+ for (let bit = 0; bit < 6 && start + bit <= last; bit++) {+ if (bits[start + bit]) {+ value |= 1 << bit+ }+ }+ out.push(BASE64[value]!)+ }+}++// `serialize_range_mappings`, quirks included: a range token's bit is set before the line advance,+// so the first token on a new line is indexed from the previous line's first token, and counted in+// that line's bitfield. Duplicate tokens the mappings writer skips still take an index.+function serializeRangeMappings(map: SourceMap): string | null {+ const out: string[] = []+ let previousLine = 0+ let hadRange = false+ let empty = true+ let firstInLine = 0+ let bits: boolean[] = []+ map.tokens.forEach((token, index) => {+ if (token.isRange) {+ hadRange = true+ empty = false+ const position = index - firstInLine+ while (bits.length < position + 1) {+ bits.push(false)+ }+ bits[position] = true+ }+ while (token.dstLine !== previousLine) {+ if (hadRange) {+ encodeRangeBits(bits, out)+ bits = []+ }+ out.push(';')+ previousLine+++ hadRange = false+ firstInLine = index+ }+ })+ if (empty) {+ return null+ }+ if (hadRange) {+ encodeRangeBits(bits, out)+ }+ return out.join('')+}++const u = (value: number): JsonNumber => ({ kind: 'u', value: BigInt(value) })++// `as_raw_sourcemap` as `to_writer` serializes it: version 3, the fields below, and `debug_id` in+// snake_case. Hermes `x_facebook_*` fields are not written.+export function encodeSourceMap(map: SourceMap): JsonObject {+ const out = new JsonObject()+ out.entries.set('version', u(3))+ if (map.file !== null) {+ out.entries.set('file', map.file)+ }+ out.entries.set('sources', [...map.sources])+ if (map.sourceRoot !== null) {+ out.entries.set('sourceRoot', map.sourceRoot)+ }+ let hasContent = false+ const content: JsonValue[] = map.sources.map((_, index) => {+ const text = map.sourcesContent[index] ?? null+ if (text !== null) {+ hasContent = true+ }+ return text+ })+ if (hasContent) {+ out.entries.set('sourcesContent', content)+ }+ out.entries.set('names', [...map.names])+ const ranges = serializeRangeMappings(map)+ if (ranges !== null) {+ out.entries.set('rangeMappings', ranges)+ }+ out.entries.set('mappings', serializeMappings(map))+ if (map.ignoreList.size > 0) {+ out.entries.set('ignoreList', [...map.ignoreList].sort((a, b) => a - b).map(u))+ }+ if (map.debugId !== null) {+ out.entries.set('debug_id', map.debugId)+ }+ return out+}++// magic_string's `generate_map` (hires off) for an edit made of a prepended `intro`, removed byte+// ranges and an appended `outro`. Positions in the original are bytes; columns inside unedited text+// count characters, while the intro and outro widths count bytes.+export function magicStringAdjustment(+ original: Uint8Array,+ intro: string,+ removed: [number, number][],+ outro: string+): Token[] {+ const lineStarts = [0]+ for (let index = 0; index < original.length; index++) {+ if (original[index] === 10) {+ lineStarts.push(index + 1)+ }+ }+ const locate = (offset: number): [number, number] => {+ let low = 0+ let high = lineStarts.length+ while (low < high) {+ const middle = (low + high) >> 1+ if (offset < lineStarts[middle]!) {+ high = middle+ } else {+ low = middle + 1+ }+ }+ return [low - 1, offset - lineStarts[low - 1]!]+ }+ const lines: [number, number, number][][] = []+ let generatedLine = 0+ let generatedColumn = 0+ const push = (segment: [number, number, number]): void => {+ if (generatedLine < lines.length) {+ lines[generatedLine]!.push(segment)+ } else {+ lines.push([segment])+ }+ }+ const advance = (text: string): void => {+ if (!text) {+ return+ }+ const parts = text.split('\n')+ for (let count = parts.length; count > 1; count--) {+ lines.push([])+ generatedColumn = 0+ }+ generatedLine += parts.length - 1+ generatedColumn += Buffer.byteLength(parts.at(-1)!)+ }+ advance(intro)+ const sorted = [...removed].sort((a, b) => a[0] - b[0])+ const chunks: [number, number, boolean][] = []+ let position = 0+ for (const [start, end] of sorted) {+ if (start > position) {+ chunks.push([position, start, false])+ }+ chunks.push([start, end, true])+ position = end+ }+ if (position < original.length || chunks.length === 0) {+ chunks.push([position, original.length, false])+ }+ for (const [start, end, edited] of chunks) {+ if (edited) {+ continue+ }+ let [originalLine, originalColumn] = locate(start)+ let first = true+ for (let index = start; index < end; index++) {+ const byte = original[index]!+ // Continuation bytes belong to the character already counted.+ if ((byte & 0xc0) === 0x80) {+ continue+ }+ if (first) {+ push([generatedColumn, originalLine, originalColumn])+ }+ if (byte === 10) {+ originalLine+++ originalColumn = 0+ generatedLine+++ generatedColumn = 0+ first = true+ } else {+ originalColumn+++ generatedColumn+++ first = false+ }+ }+ }+ advance(outro)+ const tokens: Token[] = []+ lines.forEach((segments, line) =>+ segments.forEach(([column, sourceLine, sourceColumn]) =>+ tokens.push({+ dstLine: line,+ dstCol: column,+ srcLine: sourceLine,+ srcCol: sourceColumn,+ srcId: 0,+ nameId: NONE,+ isRange: false,+ })+ )+ )+ sortTokens(tokens)+ return tokens+}diff --git a/hog/test/parity/README.md b/hog/test/parity/README.mdindex f0c2f3b07d35..fd80e65b7098 100644--- a/hog/test/parity/README.md+++ b/hog/test/parity/README.md@@ -19,13 +19,20 @@ The container inputs sit on every boundary where libzstd's streaming output canThe end-to-end scenarios cover a first upload, a re-upload of chunks PostHog already has, the multipart POST path, content and release conflicts with and without `--force` and `--skip-on-conflict`, check and start failures, and releases from flags and from git.+JavaScript scenarios also compare every file in the folder after the run, because `inject` rewrites bundles and maps, and `--delete-after` removes references and maps.+They run on real bundler output in `bundles/` (esbuild, rollup, webpack and terser, with and without native debug IDs) and on the edge cases in `js-fixtures.ts`.+Symbol-set mode mints random UUIDv7 chunk IDs, so `js-inject-symbol-set` compares where the IDs go, not their values.+The symbol-set upload scenarios then start from the files posthog-cli wrote in that scenario, so their content hashes are compared exactly.+## What is normalized`normalize.ts` rewrites only values that are random by design:- upload run and attempt IDs (UUIDv7)- the key order of `content_hashes` and release `metadata`, which posthog-cli writes in hash-map order+- the order of `symbol_sets` in request bodies, which follows posthog-cli's unsorted folder walk- the order of object-storage uploads within one batch, which run in parallel+- random UUIDv7 chunk IDs in files, for scenarios marked `randomIds`- the multipart boundary- the user agent: hog sends `hog/<version>`, posthog-cli sends `posthog-cli`@@ -42,4 +49,6 @@ bun test/parity/record-containers.ts "$TARGET/release/examples/hog_parity_oraclebun test/parity/record-e2e.ts "$TARGET/release/posthog-cli"```+Record the JavaScript scenarios with a binary from the same `cli/` version, and keep one bundle per folder in new fixtures: posthog-cli's walk order decides which bundle wins a shared map or a duplicate chunk ID.+Regenerate them when posthog-cli changes what it uploads, and review the diff: a changed golden means hog and posthog-cli no longer agree until hog changes too.diff --git a/hog/test/parity/bundles/README.md b/hog/test/parity/bundles/README.mdnew file mode 100644index 000000000000..f3605d547fb5--- /dev/null+++ b/hog/test/parity/bundles/README.md@@ -0,0 +1,15 @@+# Real bundler output++The parity scenarios run both CLIs on these files, so hog is held to what posthog-cli does with real builds and not only with hand-written cases.++They were built from a small app (`index.js` importing `cart.js` and `ui/badge.js`, with a dynamic import of `reviews.js`) with:++| Folder | Bundler | Settings |+| ------------- | -------------- | ------------------------------------------------------------------------ |+| `esbuild` | esbuild 0.28 | ESM, code splitting, minified, hashed names, `sourcemap: 'linked'` |+| `esbuild-cjs` | esbuild 0.28 | CommonJS, `sourcemap: 'external'`, so the map is found by its file name |+| `rollup` | rollup 4.60 | ESM, hashed `.mjs` chunks, `sourcemapDebugIds: true` |+| `terser` | rollup + terser 5.46 | IIFE minified by terser, with the rollup map as input |+| `webpack` | webpack 5.105 | production mode, `devtool: 'source-map-debugids'` |++Do not edit them by hand: the goldens in `golden/e2e/` were recorded from these exact bytes.diff --git a/hog/test/parity/bundles/esbuild-cjs/index.cjs b/hog/test/parity/bundles/esbuild-cjs/index.cjsnew file mode 100644index 000000000000..f94103f48c9d--- /dev/null+++ b/hog/test/parity/bundles/esbuild-cjs/index.cjs@@ -0,0 +1,83 @@+var __defProp = Object.defineProperty;+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;+var __getOwnPropNames = Object.getOwnPropertyNames;+var __hasOwnProp = Object.prototype.hasOwnProperty;+var __esm = (fn, res, err) => function __init() {+ if (err) throw err[0];+ try {+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;+ } catch (e) {+ throw err = [e], e;+ }+};+var __export = (target, all) => {+ for (var name in all)+ __defProp(target, name, { get: all[name], enumerable: true });+};+var __copyProps = (to, from, except, desc) => {+ if (from && typeof from === "object" || typeof from === "function") {+ for (let key of __getOwnPropNames(from))+ if (!__hasOwnProp.call(to, key) && key !== except)+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });+ }+ return to;+};+var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);++// src/reviews.js+var reviews_exports = {};+__export(reviews_exports, {+ fetchReviews: () => fetchReviews+});+function fetchReviews(productId) {+ if (!productId) {+ throw new Error("Missing product");+ }+ return [{ productId, stars: 5, text: "Works as described" }];+}+var init_reviews = __esm({+ "src/reviews.js"() {+ }+});++// src/index.js+var index_exports = {};+__export(index_exports, {+ checkout: () => checkout,+ loadReviews: () => loadReviews+});+module.exports = __toCommonJS(index_exports);++// src/cart.js+function formatPrice(cents) {+ return `$${(cents / 100).toFixed(2)}`;+}+function parseQuantity(value) {+ const parsed = Number.parseInt(value, 10);+ if (Number.isNaN(parsed)) {+ throw new TypeError(`Invalid quantity: ${value}`);+ }+ return parsed;+}++// src/ui/badge.js+function renderBadge(label) {+ const badge = { kind: "badge", label, createdAt: "\xE9\u65E5\u{1F600}" };+ return JSON.stringify(badge);+}++// src/index.js+function checkout(items) {+ let total = 0;+ for (const item of items) {+ total += item.price * parseQuantity(item.quantity);+ }+ if (total <= 0) {+ throw new Error("Cart total must be positive");+ }+ return renderBadge(`Total: ${formatPrice(total)}`);+}+async function loadReviews() {+ const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));+ return fetchReviews2("example-product");+}diff --git a/hog/test/parity/bundles/esbuild-cjs/index.cjs.map b/hog/test/parity/bundles/esbuild-cjs/index.cjs.mapnew file mode 100644index 000000000000..09e6cf04b02c--- /dev/null+++ b/hog/test/parity/bundles/esbuild-cjs/index.cjs.map@@ -0,0 +1,7 @@+{+ "version": 3,+ "sources": ["../../src/reviews.js", "../../src/index.js", "../../src/cart.js", "../../src/ui/badge.js"],+ "sourcesContent": ["export function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n", "import { formatPrice, parseQuantity } from './cart.js'\nimport { renderBadge } from './ui/badge.js'\n\nexport function checkout(items) {\n let total = 0\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity)\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nexport async function loadReviews() {\n const { fetchReviews } = await import('./reviews.js')\n return fetchReviews('example-product')\n}\n", "export function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nexport function parseQuantity(value) {\n const parsed = Number.parseInt(value, 10)\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n", "export function renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: '\u00E9\u65E5\uD83D\uDE00' }\n return JSON.stringify(badge)\n}\n"],+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC;",+ "names": ["fetchReviews"]+}diff --git a/hog/test/parity/bundles/esbuild/chunk-QCGVITVN.js b/hog/test/parity/bundles/esbuild/chunk-QCGVITVN.jsnew file mode 100644index 000000000000..de75a803d537--- /dev/null+++ b/hog/test/parity/bundles/esbuild/chunk-QCGVITVN.js@@ -0,0 +1,2 @@+function e(r){if(!r)throw new Error("Missing product");return[{productId:r,stars:5,text:"Works as described"}]}export{e as fetchReviews};+//# sourceMappingURL=chunk-QCGVITVN.js.mapdiff --git a/hog/test/parity/bundles/esbuild/chunk-QCGVITVN.js.map b/hog/test/parity/bundles/esbuild/chunk-QCGVITVN.js.mapnew file mode 100644index 000000000000..4bf8265eb2a1--- /dev/null+++ b/hog/test/parity/bundles/esbuild/chunk-QCGVITVN.js.map@@ -0,0 +1,7 @@+{+ "version": 3,+ "sources": ["../../src/reviews.js"],+ "sourcesContent": ["export function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n"],+ "mappings": "AAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D",+ "names": ["fetchReviews", "productId"]+}diff --git a/hog/test/parity/bundles/esbuild/index-DLM2YCDD.js b/hog/test/parity/bundles/esbuild/index-DLM2YCDD.jsnew file mode 100644index 000000000000..7110d76abd15--- /dev/null+++ b/hog/test/parity/bundles/esbuild/index-DLM2YCDD.js@@ -0,0 +1,2 @@+function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:"badge",label:t,createdAt:"\xE9\u65E5\u{1F600}"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error("Cart total must be positive");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import("./chunk-QCGVITVN.js");return t("example-product")}export{f as checkout,s as loadReviews};+//# sourceMappingURL=index-DLM2YCDD.js.mapdiff --git a/hog/test/parity/bundles/esbuild/index-DLM2YCDD.js.map b/hog/test/parity/bundles/esbuild/index-DLM2YCDD.js.mapnew file mode 100644index 000000000000..b3de800cb122--- /dev/null+++ b/hog/test/parity/bundles/esbuild/index-DLM2YCDD.js.map@@ -0,0 +1,7 @@+{+ "version": 3,+ "sources": ["../../src/cart.js", "../../src/ui/badge.js", "../../src/index.js"],+ "sourcesContent": ["export function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nexport function parseQuantity(value) {\n const parsed = Number.parseInt(value, 10)\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n", "export function renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: '\u00E9\u65E5\uD83D\uDE00' }\n return JSON.stringify(badge)\n}\n", "import { formatPrice, parseQuantity } from './cart.js'\nimport { renderBadge } from './ui/badge.js'\n\nexport function checkout(items) {\n let total = 0\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity)\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nexport async function loadReviews() {\n const { fetchReviews } = await import('./reviews.js')\n return fetchReviews('example-product')\n}\n"],+ "mappings": "AAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC",+ "names": ["formatPrice", "cents", "parseQuantity", "value", "parsed", "renderBadge", "label", "checkout", "items", "total", "item", "parseQuantity", "renderBadge", "formatPrice", "loadReviews", "fetchReviews"]+}diff --git a/hog/test/parity/bundles/rollup/index-W25VBdhh.mjs b/hog/test/parity/bundles/rollup/index-W25VBdhh.mjsnew file mode 100644index 000000000000..ef7600a4fe5b--- /dev/null+++ b/hog/test/parity/bundles/rollup/index-W25VBdhh.mjs@@ -0,0 +1,36 @@+function formatPrice(cents) {+ return `$${(cents / 100).toFixed(2)}`+}++function parseQuantity(value) {+ const parsed = Number.parseInt(value, 10);+ if (Number.isNaN(parsed)) {+ throw new TypeError(`Invalid quantity: ${value}`)+ }+ return parsed+}++function renderBadge(label) {+ const badge = { kind: 'badge', label, createdAt: 'é日😀' };+ return JSON.stringify(badge)+}++function checkout(items) {+ let total = 0;+ for (const item of items) {+ total += item.price * parseQuantity(item.quantity);+ }+ if (total <= 0) {+ throw new Error('Cart total must be positive')+ }+ return renderBadge(`Total: ${formatPrice(total)}`)+}++async function loadReviews() {+ const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');+ return fetchReviews('example-product')+}++export { checkout, loadReviews };+//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17+//# sourceMappingURL=index-W25VBdhh.mjs.mapdiff --git a/hog/test/parity/bundles/rollup/index-W25VBdhh.mjs.map b/hog/test/parity/bundles/rollup/index-W25VBdhh.mjs.mapnew file mode 100644index 000000000000..5001fa4257b4--- /dev/null+++ b/hog/test/parity/bundles/rollup/index-W25VBdhh.mjs.map@@ -0,0 +1 @@+{"version":3,"file":"index-W25VBdhh.mjs","sources":["../../src/cart.js","../../src/ui/badge.js","../../src/index.js"],"sourcesContent":["export function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nexport function parseQuantity(value) {\n const parsed = Number.parseInt(value, 10)\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n","export function renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\n return JSON.stringify(badge)\n}\n","import { formatPrice, parseQuantity } from './cart.js'\nimport { renderBadge } from './ui/badge.js'\n\nexport function checkout(items) {\n let total = 0\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity)\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nexport async function loadReviews() {\n const { fetchReviews } = await import('./reviews.js')\n return fetchReviews('example-product')\n}\n"],"names":[],"mappings":"AAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC;;;;","debugId":"b7e07b27-43b5-41de-9196-855306cb5e17"}\ No newline at end of filediff --git a/hog/test/parity/bundles/rollup/reviews-nJfzDM_Q.mjs b/hog/test/parity/bundles/rollup/reviews-nJfzDM_Q.mjsnew file mode 100644index 000000000000..2bdf3aa7ebc8--- /dev/null+++ b/hog/test/parity/bundles/rollup/reviews-nJfzDM_Q.mjs@@ -0,0 +1,10 @@+function fetchReviews(productId) {+ if (!productId) {+ throw new Error('Missing product')+ }+ return [{ productId, stars: 5, text: 'Works as described' }]+}++export { fetchReviews };+//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31+//# sourceMappingURL=reviews-nJfzDM_Q.mjs.mapdiff --git a/hog/test/parity/bundles/rollup/reviews-nJfzDM_Q.mjs.map b/hog/test/parity/bundles/rollup/reviews-nJfzDM_Q.mjs.mapnew file mode 100644index 000000000000..93a3585f82a4--- /dev/null+++ b/hog/test/parity/bundles/rollup/reviews-nJfzDM_Q.mjs.map@@ -0,0 +1 @@+{"version":3,"file":"reviews-nJfzDM_Q.mjs","sources":["../../src/reviews.js"],"sourcesContent":["export function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D;;;;","debugId":"8e45a01c-ff78-471a-87d3-ba56f7ab4c31"}\ No newline at end of filediff --git a/hog/test/parity/bundles/terser/badge.min.js b/hog/test/parity/bundles/terser/badge.min.jsnew file mode 100644index 000000000000..aa7a9e447fc5--- /dev/null+++ b/hog/test/parity/bundles/terser/badge.min.js@@ -0,0 +1,2 @@+var Badge=function(e){"use strict";return e.renderBadge=function(e){const n={kind:"badge",label:e,createdAt:"é日😀"};return JSON.stringify(n)},e}({});+//# sourceMappingURL=badge.min.js.map\ No newline at end of filediff --git a/hog/test/parity/bundles/terser/badge.min.js.map b/hog/test/parity/bundles/terser/badge.min.js.mapnew file mode 100644index 000000000000..e295c43bf05a--- /dev/null+++ b/hog/test/parity/bundles/terser/badge.min.js.map@@ -0,0 +1 @@+{"version":3,"file":"badge.min.js","names":["label","badge","kind","createdAt","JSON","stringify"],"sources":["src/ui/badge.js"],"sourcesContent":["export function renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\n return JSON.stringify(badge)\n}\n"],"mappings":"wDAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E"}\ No newline at end of filediff --git a/hog/test/parity/bundles/webpack/213.eef13598.js b/hog/test/parity/bundles/webpack/213.eef13598.jsnew file mode 100644index 000000000000..327f3a421b67--- /dev/null+++ b/hog/test/parity/bundles/webpack/213.eef13598.js@@ -0,0 +1,3 @@+"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error("Missing product");return[{productId:e,stars:5,text:"Works as described"}]}r.d(s,{fetchReviews:()=>t})}}]);+//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4+//# sourceMappingURL=213.eef13598.js.map\ No newline at end of filediff --git a/hog/test/parity/bundles/webpack/213.eef13598.js.map b/hog/test/parity/bundles/webpack/213.eef13598.js.mapnew file mode 100644index 000000000000..f8a85bc840cd--- /dev/null+++ b/hog/test/parity/bundles/webpack/213.eef13598.js.map@@ -0,0 +1 @@+{"version":3,"file":"213.eef13598.js","mappings":"+EAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd","sources":["webpack:///./src/reviews.js"],"sourcesContent":["export function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n"],"names":["fetchReviews","productId","Error","stars","text"],"sourceRoot":"","debugId":"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4"}\ No newline at end of filediff --git a/hog/test/parity/bundles/webpack/main.24954514.js b/hog/test/parity/bundles/webpack/main.24954514.jsnew file mode 100644index 000000000000..075e29267f23--- /dev/null+++ b/hog/test/parity/bundles/webpack/main.24954514.js@@ -0,0 +1,3 @@+(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+".eef13598.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute("src")==r){i=u;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",o.nc&&i.setAttribute("nonce",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;c.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",c.name="ChunkLoadError",c.type=a,c.request=i,n[1](c)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();+//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3+//# sourceMappingURL=main.24954514.js.map\ No newline at end of filediff --git a/hog/test/parity/bundles/webpack/main.24954514.js.map b/hog/test/parity/bundles/webpack/main.24954514.js.mapnew file mode 100644index 000000000000..5318cf98ea2c--- /dev/null+++ b/hog/test/parity/bundles/webpack/main.24954514.js.map@@ -0,0 +1 @@+{"version":3,"file":"main.24954514.js","mappings":"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","sources":["webpack:///webpack/runtime/load script","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/ensure chunk","webpack:///webpack/runtime/get javascript chunk filename","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/publicPath","webpack:///webpack/runtime/jsonp chunk loading"],"sourcesContent":["var inProgress = {};\n// data-webpack is not used as build has no uniqueName\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".\" + \"eef13598\" + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t792: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk\"] = self[\"webpackChunk\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));"],"names":["inProgress","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","d","definition","key","o","Object","defineProperty","enumerable","get","f","e","chunkId","Promise","all","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","call","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","timeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","scriptUrl","importScripts","location","currentScript","tagName","toUpperCase","test","Error","replace","p","installedChunks","j","installedChunkData","promise","resolve","reject","error","errorType","realSrc","message","name","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","id","chunkLoadingGlobal","self"],"sourceRoot":"","debugId":"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3"}\ No newline at end of filediff --git a/hog/test/parity/e2e.test.ts b/hog/test/parity/e2e.test.tsindex 4be262e997b0..c572d589ac88 100644--- a/hog/test/parity/e2e.test.ts+++ b/hog/test/parity/e2e.test.ts@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'import { readFileSync } from 'node:fs'import { join } from 'node:path'-import { runScenario, type ParityResult } from './run'+import { runScenario, withoutRandomIds, type ParityResult } from './run'import { SCENARIOS } from './scenarios'// Each golden is what posthog-cli sent to the fake server for the same files and flags@@ -14,6 +14,10 @@ describe('hog error-tracking sends what posthog-cli sends', () => {readFileSync(join(import.meta.dir, 'golden', 'e2e', `${name}.json`), 'utf8')) as ParityResultconst result = await runScenario(scenario, 'hog')- expect(result).toEqual(golden)+ if (scenario.randomIds) {+ expect(withoutRandomIds(result)).toEqual(withoutRandomIds(golden))+ } else {+ expect(result).toEqual(golden)+ }})})diff --git a/hog/test/parity/golden/e2e/js-inject-bundles.json b/hog/test/parity/golden/e2e/js-inject-bundles.jsonnew file mode 100644index 000000000000..292e7e3145ce--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-bundles.json@@ -0,0 +1,22 @@+{+ "exitCode": 0,+ "requests": [],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"qTAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"qTAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"qTAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"qTAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"6WAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"oYAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-edge-cases.json b/hog/test/parity/golden/e2e/js-inject-edge-cases.jsonnew file mode 100644index 000000000000..a445549b7d17--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-edge-cases.json@@ -0,0 +1,56 @@+{+ "exitCode": 0,+ "requests": [],+ "files": {+ "bom/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"80b6a8fb-4779-5802-87aa-802648bace40\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=80b6a8fb-4779-5802-87aa-802648bace40",+ "bom/a.js.map": "utf8:{\"chunk_id\":\"80b6a8fb-4779-5802-87aa-802648bace40\",\"mappings\":\"sTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "cjs/a.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\")}catch(e){}}();a();\n\n//# chunkId=0510e957-b1a3-50ed-b158-0a426e8dc1a4",+ "cjs/a.cjs.map": "utf8:{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "crlf/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"f2491f38-1d56-5a08-bc20-a9c1a0787811\")}catch(e){}}();a();\r\nb();\r\n//# sourceMappingURL=a.js.map\r\n\n//# chunkId=f2491f38-1d56-5a08-bc20-a9c1a0787811",+ "crlf/a.js.map": "utf8:{\"chunk_id\":\"f2491f38-1d56-5a08-bc20-a9c1a0787811\",\"mappings\":\"qTAAA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"11111111-2222-4333-8444-555555555555\")}catch(e){}}();a();\n//# debugId=11111111-2222-4333-8444-555555555555\n//# sourceMappingURL=a.js.map\n\n//# chunkId=11111111-2222-4333-8444-555555555555",+ "debugid/a.js.map": "utf8:{\"chunk_id\":\"11111111-2222-4333-8444-555555555555\",\"debugId\":\"11111111-2222-4333-8444-555555555555\",\"debug_id\":\"11111111-2222-4333-8444-555555555555\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid-malformed-source/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b34c85ba-4619-5a69-b07b-0e18491efdaa\")}catch(e){}}();a();\n//# debugId=not-a-uuid\n//# sourceMappingURL=a.js.map\n\n//# chunkId=b34c85ba-4619-5a69-b07b-0e18491efdaa",+ "debugid-malformed-source/a.js.map": "utf8:{\"chunk_id\":\"b34c85ba-4619-5a69-b07b-0e18491efdaa\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid-simple/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"1111111122224333844455555555555F\")}catch(e){}}();a();\n//# debugId=1111111122224333844455555555555F\n//# sourceMappingURL=a.js.map\n\n//# chunkId=1111111122224333844455555555555F",+ "debugid-simple/a.js.map": "utf8:{\"chunk_id\":\"1111111122224333844455555555555F\",\"mappings\":\"iTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "dotfile/.js": "utf8:a();\n",+ "dotfile/.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "empty-large/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"944858eb-3416-5b63-9533-d33c8260b7bc\")}catch(e){}}();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=944858eb-3416-5b63-9533-d33c8260b7bc",+ "empty-large/a.js.map": "utf8:{\"chunk_id\":\"944858eb-3416-5b63-9533-d33c8260b7bc\",\"mappings\":\"\",\"names\":[],\"sources\":[],\"version\":3}",+ "empty-small/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "empty-small/a.js.map": "utf8:{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"mappings\":\"\",\"names\":[],\"sources\":[],\"version\":3}",+ "empty-source/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"62802695-5536-57e0-aa8b-94f8f86120c2\")}catch(e){}}();\n//# chunkId=62802695-5536-57e0-aa8b-94f8f86120c2",+ "empty-source/a.js.map": "utf8:{\"chunk_id\":\"62802695-5536-57e0-aa8b-94f8f86120c2\",\"mappings\":\"\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "encoded/maps/my map.js.map": "utf8:{\"chunk_id\":\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\",\"file\":\"a.js\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "encoded/sub/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\")}catch(e){}}();a();\n//# sourceMappingURL=../maps/my%20map.js.map\n\n//# chunkId=341e7b7a-6afb-5f3d-a57b-c4a1d0206886",+ "facebook/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "facebook/a.js.map": "utf8:{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3,\"x_facebook_sources\":[[{\"mappings\":\"AAA\",\"names\":[\"<global>\"]}]]}",+ "fields/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"427cc064-91e4-5a93-8836-d5c35783c77e\")}catch(e){}}();abc();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=427cc064-91e4-5a93-8836-d5c35783c77e",+ "fields/a.js.map": "utf8:{\"chunk_id\":\"427cc064-91e4-5a93-8836-d5c35783c77e\",\"file\":\"<invalid>\",\"ignoreList\":[0,1],\"mappings\":\"qTAAAA,CCAAC,CAAAC\",\"names\":[\"1\",\"\",\"x\",\"2.5\"],\"sourceRoot\":\"/root/\",\"sources\":[\"\",\"b.ts\"],\"sourcesContent\":[null,null,\"extra\"],\"version\":3,\"x_big\":1e21,\"x_float\":1.0,\"x_google_ignoreList\":[1],\"x_huge\":18446744073709551615,\"x_neg\":-9223372036854775808,\"x_neg0\":-0.0,\"x_small\":1e-7,\"x_unicode\":\"é //\\u0001\"}",+ "file-paths/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\")}catch(e){}}();import(\"./one-BrAf3own.js\");x.js.map;\n//# sourceMappingURL=a.js.map\n\n//# chunkId=dee6105f-fd4f-5a94-8280-3d6c5b8c3808",+ "file-paths/a.js.map": "utf8:{\"chunk_id\":\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\",\"file\":\"https://cdn.example.com/a/b-X_1.mjs\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "index-map/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"f6c70089-17a8-5804-8f40-88d1de05004d\")}catch(e){}}();a();\nb();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=f6c70089-17a8-5804-8f40-88d1de05004d",+ "index-map/a.js.map": "utf8:{\"chunk_id\":\"f6c70089-17a8-5804-8f40-88d1de05004d\",\"file\":\"a.js\",\"mappings\":\"qTAAAA;ECAAA,CCAA\",\"names\":[\"n\"],\"sources\":[\"webpack://one.ts\",\"two.ts\",\"one.ts\"],\"sourcesContent\":[\"one\",null,null],\"version\":3,\"x_custom\":1}",+ "inline/a.js": "utf8:a();\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=\n",+ "jsx/a.jsx": "utf8:a();\n",+ "jsx/a.jsx.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "latin1/a.js": "base64:YSgn6ScpOwovLyMgc291cmNlTWFwcGluZ1VSTD1hLmpzLm1hcAo=",+ "latin1/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "legacy/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"23a25919-c8e3-5062-9ca1-898f72d5632a\")}catch(e){}}();a();\n//@ sourceMappingURL=a.js.map\n\n//# chunkId=23a25919-c8e3-5062-9ca1-898f72d5632a",+ "legacy/a.js.map": "utf8:{\"chunk_id\":\"aaaaaaaa-0000-4000-8000-000000000000\",\"mappings\":\"AAAA\",\"names\":[],\"sources\":[\"a\"],\"version\":3}",+ "mjs/a.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"12304257-7089-53fd-a46c-6d8506a9025c\")}catch(e){}}();a();\n//# sourceMappingURL=a.mjs.map\n\n//# chunkId=12304257-7089-53fd-a46c-6d8506a9025c",+ "mjs/a.mjs.map": "utf8:{\"chunk_id\":\"12304257-7089-53fd-a46c-6d8506a9025c\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "multibyte/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\")}catch(e){}}();var s='é日😀';f();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=c833ebd5-8c8a-54d8-b847-ad3fd0466fa4",+ "multibyte/a.js.map": "utf8:{\"chunk_id\":\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\",\"mappings\":\"qTAAA,UAAU,QAAQ\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "nomap/a.js": "utf8:a();\n",+ "nonl/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"2da66511-eb44-58d8-a251-078984980c67\")}catch(e){}}();a();\nb();\n//# sourceMappingURL=a.js.map\n//# chunkId=2da66511-eb44-58d8-a251-078984980c67",+ "nonl/a.js.map": "utf8:{\"chunk_id\":\"2da66511-eb44-58d8-a251-078984980c67\",\"mappings\":\"qTAAA,EAAE;AACA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"sourcesContent\":[\"x\"],\"version\":3}",+ "reference-not-last/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"5d6600e6-8c95-50ca-a844-0bf783ee24de\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\nb();\n\n//# chunkId=5d6600e6-8c95-50ca-a844-0bf783ee24de",+ "reference-not-last/a.js.map": "utf8:{\"chunk_id\":\"5d6600e6-8c95-50ca-a844-0bf783ee24de\",\"mappings\":\"qTAAA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "sibling/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\")}catch(e){}}();a();\n\n//# chunkId=0510e957-b1a3-50ed-b158-0a426e8dc1a4",+ "sibling/a.js.map": "utf8:{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "xssi/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "xssi/a.js.map": "utf8:)]}'\n{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-file-root.json b/hog/test/parity/golden/e2e/js-inject-file-root.jsonnew file mode 100644index 000000000000..381cb3dc2a10--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-file-root.json@@ -0,0 +1,22 @@+{+ "exitCode": 0,+ "requests": [],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\n \"version\": 3,\n \"sources\": [\"../../src/reviews.js\"],\n \"sourcesContent\": [\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\n \"mappings\": \"AAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\n \"names\": [\"fetchReviews\", \"productId\"]\n}\n",+ "esbuild/index-DLM2YCDD.js": "utf8:function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\n \"version\": 3,\n \"sources\": [\"../../src/cart.js\", \"../../src/ui/badge.js\", \"../../src/index.js\"],\n \"sourcesContent\": [\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\", \"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: '\\u00E9\\u65E5\\uD83D\\uDE00' }\\n return JSON.stringify(badge)\\n}\\n\", \"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\n \"mappings\": \"AAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\n \"names\": [\"formatPrice\", \"cents\", \"parseQuantity\", \"value\", \"parsed\", \"renderBadge\", \"label\", \"checkout\", \"items\", \"total\", \"item\", \"parseQuantity\", \"renderBadge\", \"formatPrice\", \"loadReviews\", \"fetchReviews\"]\n}\n",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"version\":3,\"file\":\"index-W25VBdhh.mjs\",\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"names\":[],\"mappings\":\"AAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC;;;;\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\"}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"version\":3,\"file\":\"reviews-nJfzDM_Q.mjs\",\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"names\":[],\"mappings\":\"AAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D;;;;\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\"}",+ "terser/badge.min.js": "utf8:var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map",+ "terser/badge.min.js.map": "utf8:{\"version\":3,\"file\":\"badge.min.js\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"mappings\":\"wDAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\"}",+ "webpack/213.eef13598.js": "utf8:\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map",+ "webpack/213.eef13598.js.map": "utf8:{\"version\":3,\"file\":\"213.eef13598.js\",\"mappings\":\"+EAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\"}",+ "webpack/main.24954514.js": "utf8:(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map",+ "webpack/main.24954514.js.map": "utf8:{\"version\":3,\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\"}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-malformed-map-debug-id.json b/hog/test/parity/golden/e2e/js-inject-malformed-map-debug-id.jsonnew file mode 100644index 000000000000..c8e1cc133cc1--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-malformed-map-debug-id.json@@ -0,0 +1,10 @@+{+ "exitCode": 1,+ "requests": [],+ "files": {+ "bad/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "bad/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\",\"debugId\":\"not-a-uuid\"}",+ "ok/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "ok/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-public-path.json b/hog/test/parity/golden/e2e/js-inject-public-path.jsonnew file mode 100644index 000000000000..f31138e0503b--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-public-path.json@@ -0,0 +1,8 @@+{+ "exitCode": 0,+ "requests": [],+ "files": {+ "static/js/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"373e7183-5d27-5270-8f2f-4a5f5736fefe\")}catch(e){}}();a();\n//# sourceMappingURL=/static/js/a.js.map\n\n//# chunkId=373e7183-5d27-5270-8f2f-4a5f5736fefe",+ "static/js/a.js.map": "utf8:{\"chunk_id\":\"373e7183-5d27-5270-8f2f-4a5f5736fefe\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-release-change.json b/hog/test/parity/golden/e2e/js-inject-release-change.jsonnew file mode 100644index 000000000000..948c38ea1606--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-release-change.json@@ -0,0 +1,42 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/8ceb32b2f80fa73efd83e158126b23e2326afc8b3123848fecc96971877f65c2d6e48ad71395a3230628b35124acfb75ed10798a9374243306527a590244c43c",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"8ceb32b2f80fa73efd83e158126b23e2326afc8b3123848fecc96971877f65c2d6e48ad71395a3230628b35124acfb75ed10798a9374243306527a590244c43c\",\"version\":\"2.2.0\",\"project\":\"web\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"da53b9fa-5ecc-502a-b6da-4219b4324c0d\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-release-from-git.json b/hog/test/parity/golden/e2e/js-inject-release-from-git.jsonnew file mode 100644index 000000000000..f8fc4c6a7fe1--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-release-from-git.json@@ -0,0 +1,42 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/1a090dd726e5233c41faaa8e3cdd0d85f295c741f72d295ca5bfac0b9a78d3bb86b23b73148563c49bd81c11d0b8782285a24420156dfddec37f4cb239e4705f",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"metadata\":{\"git\":{\"branch\":\"main\",\"commit_id\":\"c0ffee00c0ffee00c0ffee00c0ffee00c0ffee00\",\"remote_url\":\"https://github.com/PostHog/example-app.git\",\"repo_name\":\"example-app\"}},\"hash_id\":\"1a090dd726e5233c41faaa8e3cdd0d85f295c741f72d295ca5bfac0b9a78d3bb86b23b73148563c49bd81c11d0b8782285a24420156dfddec37f4cb239e4705f\",\"version\":\"c0ffee00c0ffee00c0ffee00c0ffee00c0ffee00\",\"project\":\"example-app\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"36a34f25-35f2-5a0c-9248-4587b214cebe\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-release.json b/hog/test/parity/golden/e2e/js-inject-release.jsonnew file mode 100644index 000000000000..db9dfe9cc71a--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-release.json@@ -0,0 +1,42 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-symbol-set.json b/hog/test/parity/golden/e2e/js-inject-symbol-set.jsonnew file mode 100644index 000000000000..23bf856434db--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-symbol-set.json@@ -0,0 +1,42 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b912854e5ac8\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b912854e5ac8",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"mappings\":\"qTAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b909bcc83e83\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b909bcc83e83",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"mappings\":\"qTAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96661f92e937\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96661f92e937",+ "esbuild-cjs/index.cjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-9641d1b71a02\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-9641d1b71a02",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"qTAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96566ceee837\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96566ceee837",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"qTAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b92472346456\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=01a18076-fac6-7451-9926-b92472346456",+ "terser/badge.min.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"file\":\"badge.min.js\",\"mappings\":\"6WAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-963cb54bc5ec",+ "webpack/213.eef13598.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"oYAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-962a8c8c9b13",+ "webpack/main.24954514.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"4UAAAA,OCCAC,EAAA,GAGA,SAAAC,EAAAC,GAEA,IAAAC,EAAAH,EAAAE,GACA,QAAAE,IAAAD,EACA,OAAAA,EAAAE,QAGA,IAAAC,EAAAN,EAAAE,GAAA,CAGAG,QAAA,IAOA,OAHAE,EAAAL,GAAAI,EAAAA,EAAAD,QAAAJ,GAGAK,EAAAD,OACA,CAGAJ,EAAAO,EAAAD,ECxBAN,EAAAQ,EAAA,CAAAJ,EAAAK,KACA,QAAAC,KAAAD,EACAT,EAAAW,EAAAF,EAAAC,KAAAV,EAAAW,EAAAP,EAAAM,IACAE,OAAAC,eAAAT,EAAAM,EAAA,CAAyCI,YAAA,EAAAC,IAAAN,EAAAC,MCJzCV,EAAAgB,EAAA,GAGAhB,EAAAiB,EAAAC,GACAC,QAAAC,IAAAR,OAAAS,KAAArB,EAAAgB,GAAAM,OAAA,CAAAC,EAAAb,KACAV,EAAAgB,EAAAN,GAAAQ,EAAAK,GACAA,GACE,KCNFvB,EAAAwB,EAAAN,GAEAA,EAAA,eCHAlB,EAAAyB,EAAA,WACA,oBAAAC,WAAA,OAAAA,WACA,IACA,OAAAC,MAAA,IAAAC,SAAA,gBACA,CAAG,MAAAX,GACH,oBAAAY,OAAA,OAAAA,MACA,CACC,CAPD,GCAA7B,EAAAW,EAAA,CAAAmB,EAAAC,IAAAnB,OAAAoB,UAAAC,eAAAC,KAAAJ,EAAAC,GNAAjC,EAAA,GAGAE,EAAAmC,EAAA,CAAAC,EAAAC,EAAA3B,EAAAQ,KACA,GAAApB,EAAAsC,GAAuBtC,EAAAsC,GAAAE,KAAAD,OAAvB,CACA,IAAAE,EAAAC,EACA,QAAArC,IAAAO,EAEA,IADA,IAAA+B,EAAAC,SAAAC,qBAAA,UACAC,EAAA,EAAiBA,EAAAH,EAAAI,OAAoBD,IAAA,CACrC,IAAAE,EAAAL,EAAAG,GACA,GAAAE,EAAAC,aAAA,QAAAX,EAAA,CAAsCG,EAAAO,EAAY,MAClD,CAEAP,IACAC,GAAA,GACAD,EAAAG,SAAAM,cAAA,WAEAC,QAAA,QACAjD,EAAAkD,IACAX,EAAAY,aAAA,QAAAnD,EAAAkD,IAIAX,EAAAa,IAAAhB,GAEAtC,EAAAsC,GAAA,CAAAC,GACA,IAAAgB,EAAA,CAAAC,EAAAC,KAEAhB,EAAAiB,QAAAjB,EAAAkB,OAAA,KACAC,aAAAC,GACA,IAAAC,EAAA9D,EAAAsC,GAIA,UAHAtC,EAAAsC,GACAG,EAAAsB,YAAAtB,EAAAsB,WAAAC,YAAAvB,GACAqB,GAAAA,EAAAG,QAAAC,GAAAA,EAAAT,IACAD,EAAA,OAAAA,EAAAC,IAEAI,EAAAM,WAAAZ,EAAAa,KAAA,UAAA/D,EAAA,CAAmEgE,KAAA,UAAAC,OAAA7B,IAAiC,MACpGA,EAAAiB,QAAAH,EAAAa,KAAA,KAAA3B,EAAAiB,SACAjB,EAAAkB,OAAAJ,EAAAa,KAAA,KAAA3B,EAAAkB,QACAjB,GAAAE,SAAA2B,KAAAC,YAAA/B,EAnCmD,SOJnD,IAAAgC,EACAvE,EAAAyB,EAAA+C,gBAAAD,EAAAvE,EAAAyB,EAAAgD,SAAA,IACA,IAAA/B,EAAA1C,EAAAyB,EAAAiB,SACA,IAAA6B,GAAA7B,IACAA,EAAAgC,eAAA,WAAAhC,EAAAgC,cAAAC,QAAAC,gBACAL,EAAA7B,EAAAgC,cAAAtB,MACAmB,GAAA,CACA,IAAA9B,EAAAC,EAAAC,qBAAA,UACA,GAAAF,EAAAI,OAEA,IADA,IAAAD,EAAAH,EAAAI,OAAA,EACAD,GAAA,KAAA2B,IAAA,aAAAM,KAAAN,KAAAA,EAAA9B,EAAAG,KAAAQ,GAEA,CAIA,IAAAmB,EAAA,UAAAO,MAAA,yDACAP,EAAAA,EAAAQ,QAAA,aAAAA,QAAA,WAAAA,QAAA,YAAAA,QAAA,iBACA/E,EAAAgF,EAAAT,YCbA,IAAAU,EAAA,CACA,OAGAjF,EAAAgB,EAAAkE,EAAA,CAAAhE,EAAAK,KAEA,IAAA4D,EAAAnF,EAAAW,EAAAsE,EAAA/D,GAAA+D,EAAA/D,QAAAf,EACA,OAAAgF,EAGA,GAAAA,EACA5D,EAAAe,KAAA6C,EAAA,QACK,CAGL,IAAAC,EAAA,IAAAjE,QAAA,CAAAkE,EAAAC,IAAAH,EAAAF,EAAA/D,GAAA,CAAAmE,EAAAC,IACA/D,EAAAe,KAAA6C,EAAA,GAAAC,GAGA,IAAAhD,EAAApC,EAAAgF,EAAAhF,EAAAwB,EAAAN,GAEAqE,EAAA,IAAAT,MAgBA9E,EAAAmC,EAAAC,EAfAmB,IACA,GAAAvD,EAAAW,EAAAsE,EAAA/D,KAEA,KADAiE,EAAAF,EAAA/D,MACA+D,EAAA/D,QAAAf,GACAgF,GAAA,CACA,IAAAK,EAAAjC,IAAA,SAAAA,EAAAY,KAAA,UAAAZ,EAAAY,MACAsB,EAAAlC,GAAAA,EAAAa,QAAAb,EAAAa,OAAAhB,IACAmC,EAAAG,QAAA,iBAAAxE,EAAA,cAAAsE,EAAA,KAAAC,EAAA,IACAF,EAAAI,KAAA,iBACAJ,EAAApB,KAAAqB,EACAD,EAAAK,QAAAH,EACAN,EAAA,GAAAI,EACA,GAGA,SAAArE,EAAAA,EAEA,GAeA,IAAA2E,EAAA,CAAAC,EAAAC,KACA,IAGA9F,EAAAiB,GAHA8E,EAAAC,EAAAC,GAAAH,EAGAnD,EAAA,EACA,GAAAoD,EAAAG,KAAAC,GAAA,IAAAnB,EAAAmB,IAAA,CACA,IAAAnG,KAAAgG,EACAjG,EAAAW,EAAAsF,EAAAhG,KACAD,EAAAO,EAAAN,GAAAgG,EAAAhG,IAGAiG,GAAAA,EAAAlG,EACA,CAEA,IADA8F,GAAAA,EAAAC,GACMnD,EAAAoD,EAAAnD,OAAqBD,IAC3B1B,EAAA8E,EAAApD,GACA5C,EAAAW,EAAAsE,EAAA/D,IAAA+D,EAAA/D,IACA+D,EAAA/D,GAAA,KAEA+D,EAAA/D,GAAA,GAKAmF,EAAAC,KAAA,aAAAA,KAAA,iBACAD,EAAAtC,QAAA8B,EAAA3B,KAAA,SACAmC,EAAA/D,KAAAuD,EAAA3B,KAAA,KAAAmC,EAAA/D,KAAA4B,KAAAmC\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-inject-twice.json b/hog/test/parity/golden/e2e/js-inject-twice.jsonnew file mode 100644index 000000000000..a445549b7d17--- /dev/null+++ b/hog/test/parity/golden/e2e/js-inject-twice.json@@ -0,0 +1,56 @@+{+ "exitCode": 0,+ "requests": [],+ "files": {+ "bom/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"80b6a8fb-4779-5802-87aa-802648bace40\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=80b6a8fb-4779-5802-87aa-802648bace40",+ "bom/a.js.map": "utf8:{\"chunk_id\":\"80b6a8fb-4779-5802-87aa-802648bace40\",\"mappings\":\"sTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "cjs/a.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\")}catch(e){}}();a();\n\n//# chunkId=0510e957-b1a3-50ed-b158-0a426e8dc1a4",+ "cjs/a.cjs.map": "utf8:{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "crlf/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"f2491f38-1d56-5a08-bc20-a9c1a0787811\")}catch(e){}}();a();\r\nb();\r\n//# sourceMappingURL=a.js.map\r\n\n//# chunkId=f2491f38-1d56-5a08-bc20-a9c1a0787811",+ "crlf/a.js.map": "utf8:{\"chunk_id\":\"f2491f38-1d56-5a08-bc20-a9c1a0787811\",\"mappings\":\"qTAAA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"11111111-2222-4333-8444-555555555555\")}catch(e){}}();a();\n//# debugId=11111111-2222-4333-8444-555555555555\n//# sourceMappingURL=a.js.map\n\n//# chunkId=11111111-2222-4333-8444-555555555555",+ "debugid/a.js.map": "utf8:{\"chunk_id\":\"11111111-2222-4333-8444-555555555555\",\"debugId\":\"11111111-2222-4333-8444-555555555555\",\"debug_id\":\"11111111-2222-4333-8444-555555555555\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid-malformed-source/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b34c85ba-4619-5a69-b07b-0e18491efdaa\")}catch(e){}}();a();\n//# debugId=not-a-uuid\n//# sourceMappingURL=a.js.map\n\n//# chunkId=b34c85ba-4619-5a69-b07b-0e18491efdaa",+ "debugid-malformed-source/a.js.map": "utf8:{\"chunk_id\":\"b34c85ba-4619-5a69-b07b-0e18491efdaa\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid-simple/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"1111111122224333844455555555555F\")}catch(e){}}();a();\n//# debugId=1111111122224333844455555555555F\n//# sourceMappingURL=a.js.map\n\n//# chunkId=1111111122224333844455555555555F",+ "debugid-simple/a.js.map": "utf8:{\"chunk_id\":\"1111111122224333844455555555555F\",\"mappings\":\"iTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "dotfile/.js": "utf8:a();\n",+ "dotfile/.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "empty-large/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"944858eb-3416-5b63-9533-d33c8260b7bc\")}catch(e){}}();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=944858eb-3416-5b63-9533-d33c8260b7bc",+ "empty-large/a.js.map": "utf8:{\"chunk_id\":\"944858eb-3416-5b63-9533-d33c8260b7bc\",\"mappings\":\"\",\"names\":[],\"sources\":[],\"version\":3}",+ "empty-small/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "empty-small/a.js.map": "utf8:{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"mappings\":\"\",\"names\":[],\"sources\":[],\"version\":3}",+ "empty-source/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"62802695-5536-57e0-aa8b-94f8f86120c2\")}catch(e){}}();\n//# chunkId=62802695-5536-57e0-aa8b-94f8f86120c2",+ "empty-source/a.js.map": "utf8:{\"chunk_id\":\"62802695-5536-57e0-aa8b-94f8f86120c2\",\"mappings\":\"\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "encoded/maps/my map.js.map": "utf8:{\"chunk_id\":\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\",\"file\":\"a.js\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "encoded/sub/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\")}catch(e){}}();a();\n//# sourceMappingURL=../maps/my%20map.js.map\n\n//# chunkId=341e7b7a-6afb-5f3d-a57b-c4a1d0206886",+ "facebook/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "facebook/a.js.map": "utf8:{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3,\"x_facebook_sources\":[[{\"mappings\":\"AAA\",\"names\":[\"<global>\"]}]]}",+ "fields/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"427cc064-91e4-5a93-8836-d5c35783c77e\")}catch(e){}}();abc();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=427cc064-91e4-5a93-8836-d5c35783c77e",+ "fields/a.js.map": "utf8:{\"chunk_id\":\"427cc064-91e4-5a93-8836-d5c35783c77e\",\"file\":\"<invalid>\",\"ignoreList\":[0,1],\"mappings\":\"qTAAAA,CCAAC,CAAAC\",\"names\":[\"1\",\"\",\"x\",\"2.5\"],\"sourceRoot\":\"/root/\",\"sources\":[\"\",\"b.ts\"],\"sourcesContent\":[null,null,\"extra\"],\"version\":3,\"x_big\":1e21,\"x_float\":1.0,\"x_google_ignoreList\":[1],\"x_huge\":18446744073709551615,\"x_neg\":-9223372036854775808,\"x_neg0\":-0.0,\"x_small\":1e-7,\"x_unicode\":\"é //\\u0001\"}",+ "file-paths/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\")}catch(e){}}();import(\"./one-BrAf3own.js\");x.js.map;\n//# sourceMappingURL=a.js.map\n\n//# chunkId=dee6105f-fd4f-5a94-8280-3d6c5b8c3808",+ "file-paths/a.js.map": "utf8:{\"chunk_id\":\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\",\"file\":\"https://cdn.example.com/a/b-X_1.mjs\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "index-map/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"f6c70089-17a8-5804-8f40-88d1de05004d\")}catch(e){}}();a();\nb();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=f6c70089-17a8-5804-8f40-88d1de05004d",+ "index-map/a.js.map": "utf8:{\"chunk_id\":\"f6c70089-17a8-5804-8f40-88d1de05004d\",\"file\":\"a.js\",\"mappings\":\"qTAAAA;ECAAA,CCAA\",\"names\":[\"n\"],\"sources\":[\"webpack://one.ts\",\"two.ts\",\"one.ts\"],\"sourcesContent\":[\"one\",null,null],\"version\":3,\"x_custom\":1}",+ "inline/a.js": "utf8:a();\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=\n",+ "jsx/a.jsx": "utf8:a();\n",+ "jsx/a.jsx.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "latin1/a.js": "base64:YSgn6ScpOwovLyMgc291cmNlTWFwcGluZ1VSTD1hLmpzLm1hcAo=",+ "latin1/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "legacy/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"23a25919-c8e3-5062-9ca1-898f72d5632a\")}catch(e){}}();a();\n//@ sourceMappingURL=a.js.map\n\n//# chunkId=23a25919-c8e3-5062-9ca1-898f72d5632a",+ "legacy/a.js.map": "utf8:{\"chunk_id\":\"aaaaaaaa-0000-4000-8000-000000000000\",\"mappings\":\"AAAA\",\"names\":[],\"sources\":[\"a\"],\"version\":3}",+ "mjs/a.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"12304257-7089-53fd-a46c-6d8506a9025c\")}catch(e){}}();a();\n//# sourceMappingURL=a.mjs.map\n\n//# chunkId=12304257-7089-53fd-a46c-6d8506a9025c",+ "mjs/a.mjs.map": "utf8:{\"chunk_id\":\"12304257-7089-53fd-a46c-6d8506a9025c\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "multibyte/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\")}catch(e){}}();var s='é日😀';f();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=c833ebd5-8c8a-54d8-b847-ad3fd0466fa4",+ "multibyte/a.js.map": "utf8:{\"chunk_id\":\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\",\"mappings\":\"qTAAA,UAAU,QAAQ\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "nomap/a.js": "utf8:a();\n",+ "nonl/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"2da66511-eb44-58d8-a251-078984980c67\")}catch(e){}}();a();\nb();\n//# sourceMappingURL=a.js.map\n//# chunkId=2da66511-eb44-58d8-a251-078984980c67",+ "nonl/a.js.map": "utf8:{\"chunk_id\":\"2da66511-eb44-58d8-a251-078984980c67\",\"mappings\":\"qTAAA,EAAE;AACA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"sourcesContent\":[\"x\"],\"version\":3}",+ "reference-not-last/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"5d6600e6-8c95-50ca-a844-0bf783ee24de\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\nb();\n\n//# chunkId=5d6600e6-8c95-50ca-a844-0bf783ee24de",+ "reference-not-last/a.js.map": "utf8:{\"chunk_id\":\"5d6600e6-8c95-50ca-a844-0bf783ee24de\",\"mappings\":\"qTAAA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "sibling/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\")}catch(e){}}();a();\n\n//# chunkId=0510e957-b1a3-50ed-b158-0a426e8dc1a4",+ "sibling/a.js.map": "utf8:{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"mappings\":\"qTAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "xssi/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "xssi/a.js.map": "utf8:)]}'\n{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-already-present.json b/hog/test/parity/golden/e2e/js-process-already-present.jsonnew file mode 100644index 000000000000..07fd8b32cf69--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-already-present.json@@ -0,0 +1,42 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-bundles.json b/hog/test/parity/golden/e2e/js-process-bundles.jsonnew file mode 100644index 000000000000..da4c0027439f--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-bundles.json@@ -0,0 +1,168 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/352a9101-f516-5f32-b056-fa854bede172?length=2016",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "fae195309165ddf39cfb033cf7120ccf0848ec3fedffe5d37389b06ecc539a46c41a9604ca74ba6bb1f9c56938d6723fde0fa1be7a8e3cece3aa77fda251c48e",+ "length": 2016+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/3c842e61-a617-54d6-9b1a-be6815ca29c8?length=1471",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1caa14a513f3c9048415842d5f2d7ef9334c94026fd73d7c16e826995de389b793faafbdcd2e5a59c69c5cd7a6b9286e5c76ecb6b49d999bc7a8ae8896d58d46",+ "length": 1471+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/57fc17ec-68e5-598a-9821-9c09d88c3062?length=681",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d0db144f7934dc046cc243960809b32bd6bd887fd082b328a7f54566b727ee4e1d93d01e3b9cdd1496f148a7387518af411bdcf3e1c445204dfb3d9d3acc8a2e",+ "length": 681+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632?length=5997",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "743359e55f9b74ba04080fe6be44b8c527aa16fca61f4421d3d60ffb9fbf9c9eddb8cafe64150c7b657bdb45de705124e6cc6595ef23acd05a45d8d6071e75f5",+ "length": 5997+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6?length=758",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "c6b438a5a2a4578e19c939f28d7bf28bac0dfeb81633fc91cf7ed23fbbf5412091be9015b5c0f819a6202314f47f87a18e6a08c061468d144d87d040d119fef1",+ "length": 758+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156?length=1395",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "627434671e6fe54b3fea57d2fe6836df782fae290ef0b65fa3fef8fe4fef028e0d4041e5f6b09fa7db5e326e31a4700cd3399723de8598a14529336b1698a4d3",+ "length": 1395+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/bc620c4b-45a7-55ab-a4d5-2952c5a7549b?length=683",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "18ce3f754f32bacb5d4f548500ea10473b9c0890432d90593642a81929e3fc354e2c190b21c8cbc20e04b5364364c87cf209bf5bfcaec4bb4a4255cf82f6e795",+ "length": 683+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba?length=700",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0300e5cdf227fb4b872e9b56e5531a9ba06e75e4b0ca28c09b9f8fc7cc3f98d4813373925bcc40d1322e0194537bf7267938754381ef8b25e92a8d3c22040211",+ "length": 700+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"352a9101-f516-5f32-b056-fa854bede172\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"3c842e61-a617-54d6-9b1a-be6815ca29c8\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"57fc17ec-68e5-598a-9821-9c09d88c3062\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"bc620c4b-45a7-55ab-a4d5-2952c5a7549b\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-delete-after-css-lookup.json b/hog/test/parity/golden/e2e/js-process-delete-after-css-lookup.jsonnew file mode 100644index 000000000000..b9dfffc55d01--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-delete-after-css-lookup.json@@ -0,0 +1,71 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"release_id\":null,\"content_hash\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"content_length\":395}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"release_id\":null,\"content_hash\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"content_length\":395}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/2d4d3dba-abfc-5ade-87d8-5fde76602b70?length=395",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "307d35e8ee3fccaa788d867886d5cbee300c1b82899764746c7641efd38595f158b008b7e9fabd55713b6513d714be6e76130f5d2e8b87e01b337703336a5a7b",+ "length": 395+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"2d4d3dba-abfc-5ade-87d8-5fde76602b70\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "dist/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "dist/cdn.css": "utf8:.a{}\n",+ "dist/stale.css": "utf8:.b{}\n"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-delete-after.json b/hog/test/parity/golden/e2e/js-process-delete-after.jsonnew file mode 100644index 000000000000..f0b558e7e255--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-delete-after.json@@ -0,0 +1,175 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"release_id\":null,\"content_hash\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"content_length\":395},{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"release_id\":null,\"content_hash\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"content_length\":395},{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/2d4d3dba-abfc-5ade-87d8-5fde76602b70?length=395",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "307d35e8ee3fccaa788d867886d5cbee300c1b82899764746c7641efd38595f158b008b7e9fabd55713b6513d714be6e76130f5d2e8b87e01b337703336a5a7b",+ "length": 395+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/352a9101-f516-5f32-b056-fa854bede172?length=2016",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "fae195309165ddf39cfb033cf7120ccf0848ec3fedffe5d37389b06ecc539a46c41a9604ca74ba6bb1f9c56938d6723fde0fa1be7a8e3cece3aa77fda251c48e",+ "length": 2016+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/3c842e61-a617-54d6-9b1a-be6815ca29c8?length=1471",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1caa14a513f3c9048415842d5f2d7ef9334c94026fd73d7c16e826995de389b793faafbdcd2e5a59c69c5cd7a6b9286e5c76ecb6b49d999bc7a8ae8896d58d46",+ "length": 1471+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/57fc17ec-68e5-598a-9821-9c09d88c3062?length=681",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d0db144f7934dc046cc243960809b32bd6bd887fd082b328a7f54566b727ee4e1d93d01e3b9cdd1496f148a7387518af411bdcf3e1c445204dfb3d9d3acc8a2e",+ "length": 681+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632?length=5997",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "743359e55f9b74ba04080fe6be44b8c527aa16fca61f4421d3d60ffb9fbf9c9eddb8cafe64150c7b657bdb45de705124e6cc6595ef23acd05a45d8d6071e75f5",+ "length": 5997+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6?length=758",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "c6b438a5a2a4578e19c939f28d7bf28bac0dfeb81633fc91cf7ed23fbbf5412091be9015b5c0f819a6202314f47f87a18e6a08c061468d144d87d040d119fef1",+ "length": 758+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156?length=1395",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "627434671e6fe54b3fea57d2fe6836df782fae290ef0b65fa3fef8fe4fef028e0d4041e5f6b09fa7db5e326e31a4700cd3399723de8598a14529336b1698a4d3",+ "length": 1395+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/bc620c4b-45a7-55ab-a4d5-2952c5a7549b?length=683",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "18ce3f754f32bacb5d4f548500ea10473b9c0890432d90593642a81929e3fc354e2c190b21c8cbc20e04b5364364c87cf209bf5bfcaec4bb4a4255cf82f6e795",+ "length": 683+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba?length=700",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0300e5cdf227fb4b872e9b56e5531a9ba06e75e4b0ca28c09b9f8fc7cc3f98d4813373925bcc40d1322e0194537bf7267938754381ef8b25e92a8d3c22040211",+ "length": 700+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"2d4d3dba-abfc-5ade-87d8-5fde76602b70\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"352a9101-f516-5f32-b056-fa854bede172\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"3c842e61-a617-54d6-9b1a-be6815ca29c8\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"57fc17ec-68e5-598a-9821-9c09d88c3062\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"bc620c4b-45a7-55ab-a4d5-2952c5a7549b\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "dist/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "dist/inline.css": "utf8:.b{} .c{}\n",+ "dist/site.css": "utf8:.a{color:red}\n",+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-edge-cases.json b/hog/test/parity/golden/e2e/js-process-edge-cases.jsonnew file mode 100644index 000000000000..0e55f3d8f493--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-edge-cases.json@@ -0,0 +1,310 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"release_id\":null,\"content_hash\":\"9cfb9baf1fa9eb0347a9aa4357b71b4ed8aedc96204a8c9260d56bfa743b792df8f6b78f4e39c5ae8c8abd03016ceb49a15aaaefedcd9704a171f163de26395e\",\"content_length\":375},{\"chunk_id\":\"11111111-2222-4333-8444-555555555555\",\"release_id\":null,\"content_hash\":\"aeb98d1811c270c037a8fd0a05d930e888d880e6473ac376ea1c207bfbdbd7cc7bc689586c13cdd2121c0dcaf3ff5eb14b7ad19a0d0c73147865bebb1505e0ee\",\"content_length\":412},{\"chunk_id\":\"1111111122224333844455555555555F\",\"release_id\":null,\"content_hash\":\"eb92fd97d59d256f67994ef0a3311b1e08f76d2e794ce997a7247e9da33c536e122027df431c2ff829c34343aa737f75725f32bd9329d6118cdb89b7422baa78\",\"content_length\":392},{\"chunk_id\":\"12304257-7089-53fd-a46c-6d8506a9025c\",\"release_id\":null,\"content_hash\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"content_length\":399},{\"chunk_id\":\"23a25919-c8e3-5062-9ca1-898f72d5632a\",\"release_id\":null,\"content_hash\":\"41cec954214ade2f9c037b8681716c11d8fe95f17eca72a374b10e645350feab956a05c4301b0a7eed87d97bbda4441ce7376aa48afda03f0f2373ca2d1ad322\",\"content_length\":408},{\"chunk_id\":\"2da66511-eb44-58d8-a251-078984980c67\",\"release_id\":null,\"content_hash\":\"e7ea650daa1e89253dd681133cf793e55d991893922a7830e486dda21b322d0f8ffe55a31cb4f388f26cbded5dcd0b1a3c70e608515181c36169dd8016fb4cd6\",\"content_length\":424},{\"chunk_id\":\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\",\"release_id\":null,\"content_hash\":\"3ebe38ba428c125f576bb5a0d1449e65972023519416bf7fae5984083bbf4b4691928374dd7034718cac7798d4f6a4c05e041457f2dfd97e066f4da1e533c2a4\",\"content_length\":423},{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"release_id\":null,\"content_hash\":\"a17df95bc07360b903fbdb7405bcd83d5322c4e54d1a927a1b727616cddc468c78a433df904169ca9e778bf0f79ea614bae4beb03566ecede7dd75ca2193dcf7\",\"content_length\":428},{\"chunk_id\":\"427cc064-91e4-5a93-8836-d5c35783c77e\",\"release_id\":null,\"content_hash\":\"866a02959045f2b3ba957489f8b6b1a1577cb4386d0fa34ca1494b0dba29527f3a60145f0445e06d5a4375255e85e7381c0f5ae08744aba05d29a6664e74f853\",\"content_length\":591},{\"chunk_id\":\"5d6600e6-8c95-50ca-a844-0bf783ee24de\",\"release_id\":null,\"content_hash\":\"f7b86d7b05440d61218d6a2b4ef123d9f732d854834f30351943f029e82ce81a0dcfcf8b70733ab58c4648cd545a3980b2c37611ce99d8eff0bdd239cb3a52f4\",\"content_length\":406},{\"chunk_id\":\"62802695-5536-57e0-aa8b-94f8f86120c2\",\"release_id\":null,\"content_hash\":\"962ef66628cbe70672f5bd23507cbad7f5fa3f9615a1b2491e1a563c1b6e2d35c84f7c68d7dfda423732f54d4fb37b47f74ec2aebc43d97665823d870230226c\",\"content_length\":364},{\"chunk_id\":\"80b6a8fb-4779-5802-87aa-802648bace40\",\"release_id\":null,\"content_hash\":\"0dbd8119d0021ad84dfd21635ad46f98ad6dd1ca412cf124f11fe95e2aa561b9544b4eacb02b9798e0de41ddf6327d7b276cedff63f53cca7b7f70796b9ef0c9\",\"content_length\":401},{\"chunk_id\":\"b34c85ba-4619-5a69-b07b-0e18491efdaa\",\"release_id\":null,\"content_hash\":\"2e5c76fec138948f0032f155832d2d2d39822c2cf745af9cff7f45537531cf808bed33a7ba34d14668af2ddce8176360b2962c5083005fac0f2a8e0eeb2dccd5\",\"content_length\":418},{\"chunk_id\":\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\",\"release_id\":null,\"content_hash\":\"694d931ee1d60b1dfc58ea86669db67903e441a16a5d0c83bb70bd40f9a684e73b91181da7e6a7e185236d8c1d85695a46152e3e71f8dbd77cd1b7fa517998af\",\"content_length\":433},{\"chunk_id\":\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\",\"release_id\":null,\"content_hash\":\"e6367aaa3a876b5e2f89380c720fd6cb84d9cf3f0e2e84bf4c7f4fe003c7834ef208121e03715b7f07ffb042b51abed8af65380b1f88d694695c8f9efc2a7db8\",\"content_length\":457},{\"chunk_id\":\"f2491f38-1d56-5a08-bc20-a9c1a0787811\",\"release_id\":null,\"content_hash\":\"007caa71d5b9a8db91a445a8baba239f113917dda80813f72523cd9315cfaa3d4ed7c07d3c16d117302649d455490cd6aa3b0243df6ea13dc5af5d209474c5b3\",\"content_length\":411},{\"chunk_id\":\"f6c70089-17a8-5804-8f40-88d1de05004d\",\"release_id\":null,\"content_hash\":\"a85999048c7289560fc71affc45549942be2b5c89aed902ed22bddb3e16480f3bf640ba4e8f812b3326305a8148eac03508e19a9162c6d2cf1ac7ffc458bd2ff\",\"content_length\":464}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"release_id\":null,\"content_hash\":\"9cfb9baf1fa9eb0347a9aa4357b71b4ed8aedc96204a8c9260d56bfa743b792df8f6b78f4e39c5ae8c8abd03016ceb49a15aaaefedcd9704a171f163de26395e\",\"content_length\":375},{\"chunk_id\":\"11111111-2222-4333-8444-555555555555\",\"release_id\":null,\"content_hash\":\"aeb98d1811c270c037a8fd0a05d930e888d880e6473ac376ea1c207bfbdbd7cc7bc689586c13cdd2121c0dcaf3ff5eb14b7ad19a0d0c73147865bebb1505e0ee\",\"content_length\":412},{\"chunk_id\":\"1111111122224333844455555555555F\",\"release_id\":null,\"content_hash\":\"eb92fd97d59d256f67994ef0a3311b1e08f76d2e794ce997a7247e9da33c536e122027df431c2ff829c34343aa737f75725f32bd9329d6118cdb89b7422baa78\",\"content_length\":392},{\"chunk_id\":\"12304257-7089-53fd-a46c-6d8506a9025c\",\"release_id\":null,\"content_hash\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"content_length\":399},{\"chunk_id\":\"23a25919-c8e3-5062-9ca1-898f72d5632a\",\"release_id\":null,\"content_hash\":\"41cec954214ade2f9c037b8681716c11d8fe95f17eca72a374b10e645350feab956a05c4301b0a7eed87d97bbda4441ce7376aa48afda03f0f2373ca2d1ad322\",\"content_length\":408},{\"chunk_id\":\"2da66511-eb44-58d8-a251-078984980c67\",\"release_id\":null,\"content_hash\":\"e7ea650daa1e89253dd681133cf793e55d991893922a7830e486dda21b322d0f8ffe55a31cb4f388f26cbded5dcd0b1a3c70e608515181c36169dd8016fb4cd6\",\"content_length\":424},{\"chunk_id\":\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\",\"release_id\":null,\"content_hash\":\"3ebe38ba428c125f576bb5a0d1449e65972023519416bf7fae5984083bbf4b4691928374dd7034718cac7798d4f6a4c05e041457f2dfd97e066f4da1e533c2a4\",\"content_length\":423},{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"release_id\":null,\"content_hash\":\"a17df95bc07360b903fbdb7405bcd83d5322c4e54d1a927a1b727616cddc468c78a433df904169ca9e778bf0f79ea614bae4beb03566ecede7dd75ca2193dcf7\",\"content_length\":428},{\"chunk_id\":\"427cc064-91e4-5a93-8836-d5c35783c77e\",\"release_id\":null,\"content_hash\":\"866a02959045f2b3ba957489f8b6b1a1577cb4386d0fa34ca1494b0dba29527f3a60145f0445e06d5a4375255e85e7381c0f5ae08744aba05d29a6664e74f853\",\"content_length\":591},{\"chunk_id\":\"5d6600e6-8c95-50ca-a844-0bf783ee24de\",\"release_id\":null,\"content_hash\":\"f7b86d7b05440d61218d6a2b4ef123d9f732d854834f30351943f029e82ce81a0dcfcf8b70733ab58c4648cd545a3980b2c37611ce99d8eff0bdd239cb3a52f4\",\"content_length\":406},{\"chunk_id\":\"62802695-5536-57e0-aa8b-94f8f86120c2\",\"release_id\":null,\"content_hash\":\"962ef66628cbe70672f5bd23507cbad7f5fa3f9615a1b2491e1a563c1b6e2d35c84f7c68d7dfda423732f54d4fb37b47f74ec2aebc43d97665823d870230226c\",\"content_length\":364},{\"chunk_id\":\"80b6a8fb-4779-5802-87aa-802648bace40\",\"release_id\":null,\"content_hash\":\"0dbd8119d0021ad84dfd21635ad46f98ad6dd1ca412cf124f11fe95e2aa561b9544b4eacb02b9798e0de41ddf6327d7b276cedff63f53cca7b7f70796b9ef0c9\",\"content_length\":401},{\"chunk_id\":\"b34c85ba-4619-5a69-b07b-0e18491efdaa\",\"release_id\":null,\"content_hash\":\"2e5c76fec138948f0032f155832d2d2d39822c2cf745af9cff7f45537531cf808bed33a7ba34d14668af2ddce8176360b2962c5083005fac0f2a8e0eeb2dccd5\",\"content_length\":418},{\"chunk_id\":\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\",\"release_id\":null,\"content_hash\":\"694d931ee1d60b1dfc58ea86669db67903e441a16a5d0c83bb70bd40f9a684e73b91181da7e6a7e185236d8c1d85695a46152e3e71f8dbd77cd1b7fa517998af\",\"content_length\":433},{\"chunk_id\":\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\",\"release_id\":null,\"content_hash\":\"e6367aaa3a876b5e2f89380c720fd6cb84d9cf3f0e2e84bf4c7f4fe003c7834ef208121e03715b7f07ffb042b51abed8af65380b1f88d694695c8f9efc2a7db8\",\"content_length\":457},{\"chunk_id\":\"f2491f38-1d56-5a08-bc20-a9c1a0787811\",\"release_id\":null,\"content_hash\":\"007caa71d5b9a8db91a445a8baba239f113917dda80813f72523cd9315cfaa3d4ed7c07d3c16d117302649d455490cd6aa3b0243df6ea13dc5af5d209474c5b3\",\"content_length\":411},{\"chunk_id\":\"f6c70089-17a8-5804-8f40-88d1de05004d\",\"release_id\":null,\"content_hash\":\"a85999048c7289560fc71affc45549942be2b5c89aed902ed22bddb3e16480f3bf640ba4e8f812b3326305a8148eac03508e19a9162c6d2cf1ac7ffc458bd2ff\",\"content_length\":464}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/0b61b420-510f-508b-a94e-d20634fbb1e9?length=423",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "b93b265a894eb4dc22e5138fd796e746f91613ff77298cc8c610cde2f05ccaf803adb1a171931913891fb73aa38b614d86b81af0571194eac4e4d255685d4cbd",+ "length": 423+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/1e2532ec-227c-55cd-b428-e3d84ca0f3f1?length=591",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "02f6102da1432d6ec0afe39a65b4c14e9328734520a5c4b574cfc1d34a938040a5becc4ed8d248f45dfd2acb6e66d3d5bdd15202f3981d8a46e8da5b366a04ff",+ "length": 591+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/2506326d-3dc0-5057-b88e-cbde14285f22?length=399",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "e8bbd49e900a4c1125f2e5b20b26c36954851262aa83c8dede7ba1fa31b4cbfc40d8d7f22fd5113327a4ca0f8fda7d319d2de0f691d31d20b63e89bf2404335a",+ "length": 399+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/2d4d3dba-abfc-5ade-87d8-5fde76602b70?length=428",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "73349838484bd30bc025ce0756fd5044c8ef46312bafdd5f31441de42725c3f2efb91f2c3e35e3f6bf6b97a16aec5ba789124fbc618c9d74c86df6e02042431f",+ "length": 428+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/2e299ed0-dad3-5805-bcde-4d2d98f6a808?length=412",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "7ef332c395dda6bc365b39a76744fdb0bab21c6f2c248ac0344ab49d10634746bc2deb11bd8481ed391c9a32b3c307e42f84b4a815148641d536baa3cb2d33b8",+ "length": 412+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/2fffb10b-c7b4-5fc9-8bf7-84542a81a4c3?length=457",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "e9d3e986df99bf4fd660aa61275aaa813cf676e401bc4826b4b951e8a5218cd5eb868e2f25e32cf01a5e7847087ceecaf33494966bc5b298d98204fbaa45a8cb",+ "length": 457+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/3c560f44-3d0a-5fb3-bdcd-c88f56af9fbc?length=406",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "82fb37ae4526a9bc776a1db913bae219be6a44b28ff0ad4c0feec54102b397a9f90d9d4e3253412055c5cd8d76e6ddf3069f26372ac44b0dba8c9d83751f0714",+ "length": 406+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/4eada58a-91cb-5d6e-a6c2-f4ce8c02d54f?length=411",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "69390cad823d17dee11588958a11bd1c66a1296c5a792adbb7921df3ab150434e42d8652df51205179ac1702810ed272a97ae789e0673ced3af3ef890c48f40e",+ "length": 411+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/6e36b9fd-ba31-58be-ae8a-2d8c2cb523db?length=464",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d5a18c860fedaa522dce9722944f90ed2adddc2c402c041fe5d8eaa1f17a30c98f4a51e61e4d71fa599371cb9d2574bd78f270d8278596a241d02bb794ab6082",+ "length": 464+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/7df18dd9-49c0-5ab8-a64c-b7774524414e?length=418",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "aebc1afed50f03841837a3b395961d06323511a6901ce8b8c8c9580493530628075c9c1385509159789078bb8a2a6027497cbf50cdb615786718e2ad478a1d7a",+ "length": 418+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/82e637e7-c636-55d2-b046-2889f2c74b2e?length=408",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "9ba6cb8a6d01f703b316171f9e2f96e2bb1da07f568788eb89015de04af61ff2927827489a4e0a7b12fb0402de01134cac684b3e313e697a085f13237ee8fb75",+ "length": 408+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/9fe4deab-9d93-5108-9309-713c805751ab?length=401",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "992cc289f2e82ff713a1fe41135725e061c57e7ef1bbc06979403da1dd986a48c71b85b4665e9b680b36a1cb62e2f1698252399bfb2912b05e6427e4df67f313",+ "length": 401+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/a052c2f8-3aac-5499-bf9a-16e82ccaba42?length=392",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "710cf0a488e58bfc04b2c19ff867a92a46596ff4517c0a2dac625651a3630a0df77f4a4149aa6b535bc89967ced9d432618c0cacbe15f289d51efa0e0440240f",+ "length": 392+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/d7c30e48-054a-52a7-a56f-31a74b9d297c?length=433",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1ebc93f6c0c5d07a134de2eaa1a60971ef69722ff4b2f26bc6ef089efcbfe07808106d862ada63e982bdfdda192b659767a8851be6b5791d9e28e6ebd4e08a02",+ "length": 433+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/e5edbcac-2628-550f-b5ee-5bd9a9b851a5?length=364",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "bf6e4bb2d9296b6801422f7336357efc31d35aa5d3c481d0fe6d51190e35f50949ed0f59bf3516f72b0b04aa1c1a728550965d4d3b3736f1e7ac2d162b0d9b38",+ "length": 364+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3743b13-cf37-5afe-83bf-1a24dfee00ff?length=375",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "7a06c41c38b48fae1fc2425f2aa35d1142d071b04c01afed7767a149191bf406798a9e42e976f481a9f7430aba01d5667f5a4d18f5b149ac1c38bc7b1955f455",+ "length": 375+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f5c75feb-a0bb-54af-b7f9-613491c3e412?length=424",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "160e4372497d7a419b508a71a2f02130d1160887f14754f1d6e827769ed3904a4812bcb08c1e6fdd6fe75e941f3f13ecb6e5e8c2c1c015edb0982a6d3b75fd01",+ "length": 424+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"0b61b420-510f-508b-a94e-d20634fbb1e9\":\"3ebe38ba428c125f576bb5a0d1449e65972023519416bf7fae5984083bbf4b4691928374dd7034718cac7798d4f6a4c05e041457f2dfd97e066f4da1e533c2a4\",\"1e2532ec-227c-55cd-b428-e3d84ca0f3f1\":\"866a02959045f2b3ba957489f8b6b1a1577cb4386d0fa34ca1494b0dba29527f3a60145f0445e06d5a4375255e85e7381c0f5ae08744aba05d29a6664e74f853\",\"2506326d-3dc0-5057-b88e-cbde14285f22\":\"132ba998d0dc6f057040d336e10ab39ecc898e7aca3ed94017340e2278b6e2a4632ecf9f5fb93740409e6989f760275051e42de00f54360681dca651f6c6b3a2\",\"2d4d3dba-abfc-5ade-87d8-5fde76602b70\":\"a17df95bc07360b903fbdb7405bcd83d5322c4e54d1a927a1b727616cddc468c78a433df904169ca9e778bf0f79ea614bae4beb03566ecede7dd75ca2193dcf7\",\"2e299ed0-dad3-5805-bcde-4d2d98f6a808\":\"aeb98d1811c270c037a8fd0a05d930e888d880e6473ac376ea1c207bfbdbd7cc7bc689586c13cdd2121c0dcaf3ff5eb14b7ad19a0d0c73147865bebb1505e0ee\",\"2fffb10b-c7b4-5fc9-8bf7-84542a81a4c3\":\"e6367aaa3a876b5e2f89380c720fd6cb84d9cf3f0e2e84bf4c7f4fe003c7834ef208121e03715b7f07ffb042b51abed8af65380b1f88d694695c8f9efc2a7db8\",\"3c560f44-3d0a-5fb3-bdcd-c88f56af9fbc\":\"f7b86d7b05440d61218d6a2b4ef123d9f732d854834f30351943f029e82ce81a0dcfcf8b70733ab58c4648cd545a3980b2c37611ce99d8eff0bdd239cb3a52f4\",\"4eada58a-91cb-5d6e-a6c2-f4ce8c02d54f\":\"007caa71d5b9a8db91a445a8baba239f113917dda80813f72523cd9315cfaa3d4ed7c07d3c16d117302649d455490cd6aa3b0243df6ea13dc5af5d209474c5b3\",\"6e36b9fd-ba31-58be-ae8a-2d8c2cb523db\":\"a85999048c7289560fc71affc45549942be2b5c89aed902ed22bddb3e16480f3bf640ba4e8f812b3326305a8148eac03508e19a9162c6d2cf1ac7ffc458bd2ff\",\"7df18dd9-49c0-5ab8-a64c-b7774524414e\":\"2e5c76fec138948f0032f155832d2d2d39822c2cf745af9cff7f45537531cf808bed33a7ba34d14668af2ddce8176360b2962c5083005fac0f2a8e0eeb2dccd5\",\"82e637e7-c636-55d2-b046-2889f2c74b2e\":\"41cec954214ade2f9c037b8681716c11d8fe95f17eca72a374b10e645350feab956a05c4301b0a7eed87d97bbda4441ce7376aa48afda03f0f2373ca2d1ad322\",\"9fe4deab-9d93-5108-9309-713c805751ab\":\"0dbd8119d0021ad84dfd21635ad46f98ad6dd1ca412cf124f11fe95e2aa561b9544b4eacb02b9798e0de41ddf6327d7b276cedff63f53cca7b7f70796b9ef0c9\",\"a052c2f8-3aac-5499-bf9a-16e82ccaba42\":\"eb92fd97d59d256f67994ef0a3311b1e08f76d2e794ce997a7247e9da33c536e122027df431c2ff829c34343aa737f75725f32bd9329d6118cdb89b7422baa78\",\"d7c30e48-054a-52a7-a56f-31a74b9d297c\":\"694d931ee1d60b1dfc58ea86669db67903e441a16a5d0c83bb70bd40f9a684e73b91181da7e6a7e185236d8c1d85695a46152e3e71f8dbd77cd1b7fa517998af\",\"e5edbcac-2628-550f-b5ee-5bd9a9b851a5\":\"962ef66628cbe70672f5bd23507cbad7f5fa3f9615a1b2491e1a563c1b6e2d35c84f7c68d7dfda423732f54d4fb37b47f74ec2aebc43d97665823d870230226c\",\"f3743b13-cf37-5afe-83bf-1a24dfee00ff\":\"9cfb9baf1fa9eb0347a9aa4357b71b4ed8aedc96204a8c9260d56bfa743b792df8f6b78f4e39c5ae8c8abd03016ceb49a15aaaefedcd9704a171f163de26395e\",\"f5c75feb-a0bb-54af-b7f9-613491c3e412\":\"e7ea650daa1e89253dd681133cf793e55d991893922a7830e486dda21b322d0f8ffe55a31cb4f388f26cbded5dcd0b1a3c70e608515181c36169dd8016fb4cd6\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "bom/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"80b6a8fb-4779-5802-87aa-802648bace40\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=80b6a8fb-4779-5802-87aa-802648bace40",+ "bom/a.js.map": "utf8:{\"chunk_id\":\"80b6a8fb-4779-5802-87aa-802648bace40\",\"mappings\":\"0YAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "cjs/a.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\")}catch(e){}}();a();\n\n//# chunkId=0510e957-b1a3-50ed-b158-0a426e8dc1a4",+ "cjs/a.cjs.map": "utf8:{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "crlf/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"f2491f38-1d56-5a08-bc20-a9c1a0787811\")}catch(e){}}();a();\r\nb();\r\n//# sourceMappingURL=a.js.map\r\n\n//# chunkId=f2491f38-1d56-5a08-bc20-a9c1a0787811",+ "crlf/a.js.map": "utf8:{\"chunk_id\":\"f2491f38-1d56-5a08-bc20-a9c1a0787811\",\"mappings\":\"yYAAA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"11111111-2222-4333-8444-555555555555\")}catch(e){}}();a();\n//# debugId=11111111-2222-4333-8444-555555555555\n//# sourceMappingURL=a.js.map\n\n//# chunkId=11111111-2222-4333-8444-555555555555",+ "debugid/a.js.map": "utf8:{\"chunk_id\":\"11111111-2222-4333-8444-555555555555\",\"debugId\":\"11111111-2222-4333-8444-555555555555\",\"debug_id\":\"11111111-2222-4333-8444-555555555555\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid-malformed-source/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b34c85ba-4619-5a69-b07b-0e18491efdaa\")}catch(e){}}();a();\n//# debugId=not-a-uuid\n//# sourceMappingURL=a.js.map\n\n//# chunkId=b34c85ba-4619-5a69-b07b-0e18491efdaa",+ "debugid-malformed-source/a.js.map": "utf8:{\"chunk_id\":\"b34c85ba-4619-5a69-b07b-0e18491efdaa\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "debugid-simple/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"1111111122224333844455555555555F\")}catch(e){}}();a();\n//# debugId=1111111122224333844455555555555F\n//# sourceMappingURL=a.js.map\n\n//# chunkId=1111111122224333844455555555555F",+ "debugid-simple/a.js.map": "utf8:{\"chunk_id\":\"1111111122224333844455555555555F\",\"mappings\":\"qYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "dotfile/.js": "utf8:a();\n",+ "dotfile/.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "empty-large/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"944858eb-3416-5b63-9533-d33c8260b7bc\")}catch(e){}}();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=944858eb-3416-5b63-9533-d33c8260b7bc",+ "empty-large/a.js.map": "utf8:{\"chunk_id\":\"944858eb-3416-5b63-9533-d33c8260b7bc\",\"mappings\":\"\",\"names\":[],\"sources\":[],\"version\":3}",+ "empty-small/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "empty-small/a.js.map": "utf8:{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"mappings\":\"\",\"names\":[],\"sources\":[],\"version\":3}",+ "empty-source/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"62802695-5536-57e0-aa8b-94f8f86120c2\")}catch(e){}}();\n//# chunkId=62802695-5536-57e0-aa8b-94f8f86120c2",+ "empty-source/a.js.map": "utf8:{\"chunk_id\":\"62802695-5536-57e0-aa8b-94f8f86120c2\",\"mappings\":\"\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "encoded/maps/my map.js.map": "utf8:{\"chunk_id\":\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\",\"file\":\"a.js\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "encoded/sub/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"341e7b7a-6afb-5f3d-a57b-c4a1d0206886\")}catch(e){}}();a();\n//# sourceMappingURL=../maps/my%20map.js.map\n\n//# chunkId=341e7b7a-6afb-5f3d-a57b-c4a1d0206886",+ "facebook/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15",+ "facebook/a.js.map": "utf8:{\"chunk_id\":\"3f161e6c-fc03-5fe2-a9e9-08e5ae65fd15\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3,\"x_facebook_sources\":[[{\"mappings\":\"AAA\",\"names\":[\"<global>\"]}]]}",+ "fields/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"427cc064-91e4-5a93-8836-d5c35783c77e\")}catch(e){}}();abc();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=427cc064-91e4-5a93-8836-d5c35783c77e",+ "fields/a.js.map": "utf8:{\"chunk_id\":\"427cc064-91e4-5a93-8836-d5c35783c77e\",\"file\":\"<invalid>\",\"ignoreList\":[0,1],\"mappings\":\"yYAAAA,CCAAC,CAAAC\",\"names\":[\"1\",\"\",\"x\",\"2.5\"],\"sourceRoot\":\"/root/\",\"sources\":[\"\",\"b.ts\"],\"sourcesContent\":[null,null,\"extra\"],\"version\":3,\"x_big\":1e21,\"x_float\":1.0,\"x_google_ignoreList\":[1],\"x_huge\":18446744073709551615,\"x_neg\":-9223372036854775808,\"x_neg0\":-0.0,\"x_small\":1e-7,\"x_unicode\":\"é //\\u0001\"}",+ "file-paths/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\")}catch(e){}}();import(\"./one-BrAf3own.js\");x.js.map;\n//# sourceMappingURL=a.js.map\n\n//# chunkId=dee6105f-fd4f-5a94-8280-3d6c5b8c3808",+ "file-paths/a.js.map": "utf8:{\"chunk_id\":\"dee6105f-fd4f-5a94-8280-3d6c5b8c3808\",\"file\":\"https://cdn.example.com/a/b-X_1.mjs\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "index-map/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"f6c70089-17a8-5804-8f40-88d1de05004d\")}catch(e){}}();a();\nb();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=f6c70089-17a8-5804-8f40-88d1de05004d",+ "index-map/a.js.map": "utf8:{\"chunk_id\":\"f6c70089-17a8-5804-8f40-88d1de05004d\",\"file\":\"a.js\",\"mappings\":\"yYAAAA;ECAAA,CCAA\",\"names\":[\"n\"],\"sources\":[\"webpack://one.ts\",\"two.ts\",\"one.ts\"],\"sourcesContent\":[\"one\",null,null],\"version\":3,\"x_custom\":1}",+ "inline/a.js": "utf8:a();\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=\n",+ "jsx/a.jsx": "utf8:a();\n",+ "jsx/a.jsx.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "latin1/a.js": "base64:YSgn6ScpOwovLyMgc291cmNlTWFwcGluZ1VSTD1hLmpzLm1hcAo=",+ "latin1/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "legacy/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"23a25919-c8e3-5062-9ca1-898f72d5632a\")}catch(e){}}();a();\n//@ sourceMappingURL=a.js.map\n\n//# chunkId=23a25919-c8e3-5062-9ca1-898f72d5632a",+ "legacy/a.js.map": "utf8:{\"chunk_id\":\"aaaaaaaa-0000-4000-8000-000000000000\",\"mappings\":\"AAAA\",\"names\":[],\"sources\":[\"a\"],\"version\":3}",+ "mjs/a.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"12304257-7089-53fd-a46c-6d8506a9025c\")}catch(e){}}();a();\n//# sourceMappingURL=a.mjs.map\n\n//# chunkId=12304257-7089-53fd-a46c-6d8506a9025c",+ "mjs/a.mjs.map": "utf8:{\"chunk_id\":\"12304257-7089-53fd-a46c-6d8506a9025c\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "multibyte/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\")}catch(e){}}();var s='é日😀';f();\n//# sourceMappingURL=a.js.map\n\n//# chunkId=c833ebd5-8c8a-54d8-b847-ad3fd0466fa4",+ "multibyte/a.js.map": "utf8:{\"chunk_id\":\"c833ebd5-8c8a-54d8-b847-ad3fd0466fa4\",\"mappings\":\"yYAAA,UAAU,QAAQ\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "nomap/a.js": "utf8:a();\n",+ "nonl/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"2da66511-eb44-58d8-a251-078984980c67\")}catch(e){}}();a();\nb();\n//# sourceMappingURL=a.js.map\n//# chunkId=2da66511-eb44-58d8-a251-078984980c67",+ "nonl/a.js.map": "utf8:{\"chunk_id\":\"2da66511-eb44-58d8-a251-078984980c67\",\"mappings\":\"yYAAA,EAAE;AACA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"sourcesContent\":[\"x\"],\"version\":3}",+ "reference-not-last/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"5d6600e6-8c95-50ca-a844-0bf783ee24de\")}catch(e){}}();a();\n//# sourceMappingURL=a.js.map\nb();\n\n//# chunkId=5d6600e6-8c95-50ca-a844-0bf783ee24de",+ "reference-not-last/a.js.map": "utf8:{\"chunk_id\":\"5d6600e6-8c95-50ca-a844-0bf783ee24de\",\"mappings\":\"yYAAA;AACA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "sibling/a.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\")}catch(e){}}();a();\n\n//# chunkId=0510e957-b1a3-50ed-b158-0a426e8dc1a4",+ "sibling/a.js.map": "utf8:{\"chunk_id\":\"0510e957-b1a3-50ed-b158-0a426e8dc1a4\",\"mappings\":\"yYAAA\",\"names\":[],\"sources\":[\"src/a.ts\"],\"version\":3}",+ "xssi/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "xssi/a.js.map": "utf8:)]}'\n{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-hash-mismatch.json b/hog/test/parity/golden/e2e/js-process-hash-mismatch.jsonnew file mode 100644index 000000000000..da4c0027439f--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-hash-mismatch.json@@ -0,0 +1,168 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/352a9101-f516-5f32-b056-fa854bede172?length=2016",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "fae195309165ddf39cfb033cf7120ccf0848ec3fedffe5d37389b06ecc539a46c41a9604ca74ba6bb1f9c56938d6723fde0fa1be7a8e3cece3aa77fda251c48e",+ "length": 2016+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/3c842e61-a617-54d6-9b1a-be6815ca29c8?length=1471",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1caa14a513f3c9048415842d5f2d7ef9334c94026fd73d7c16e826995de389b793faafbdcd2e5a59c69c5cd7a6b9286e5c76ecb6b49d999bc7a8ae8896d58d46",+ "length": 1471+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/57fc17ec-68e5-598a-9821-9c09d88c3062?length=681",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d0db144f7934dc046cc243960809b32bd6bd887fd082b328a7f54566b727ee4e1d93d01e3b9cdd1496f148a7387518af411bdcf3e1c445204dfb3d9d3acc8a2e",+ "length": 681+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632?length=5997",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "743359e55f9b74ba04080fe6be44b8c527aa16fca61f4421d3d60ffb9fbf9c9eddb8cafe64150c7b657bdb45de705124e6cc6595ef23acd05a45d8d6071e75f5",+ "length": 5997+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6?length=758",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "c6b438a5a2a4578e19c939f28d7bf28bac0dfeb81633fc91cf7ed23fbbf5412091be9015b5c0f819a6202314f47f87a18e6a08c061468d144d87d040d119fef1",+ "length": 758+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156?length=1395",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "627434671e6fe54b3fea57d2fe6836df782fae290ef0b65fa3fef8fe4fef028e0d4041e5f6b09fa7db5e326e31a4700cd3399723de8598a14529336b1698a4d3",+ "length": 1395+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/bc620c4b-45a7-55ab-a4d5-2952c5a7549b?length=683",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "18ce3f754f32bacb5d4f548500ea10473b9c0890432d90593642a81929e3fc354e2c190b21c8cbc20e04b5364364c87cf209bf5bfcaec4bb4a4255cf82f6e795",+ "length": 683+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba?length=700",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0300e5cdf227fb4b872e9b56e5531a9ba06e75e4b0ca28c09b9f8fc7cc3f98d4813373925bcc40d1322e0194537bf7267938754381ef8b25e92a8d3c22040211",+ "length": 700+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"352a9101-f516-5f32-b056-fa854bede172\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"3c842e61-a617-54d6-9b1a-be6815ca29c8\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"57fc17ec-68e5-598a-9821-9c09d88c3062\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"bc620c4b-45a7-55ab-a4d5-2952c5a7549b\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-no-release.json b/hog/test/parity/golden/e2e/js-process-no-release.jsonnew file mode 100644index 000000000000..a2ee28a69416--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-no-release.json@@ -0,0 +1,149 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"04e31d06b2d2a5c46cf60bfc34537fcad8ae5757f3a291dddf38bbc259bff30e5ca679d75fa2280b4b8999898468527ce4bed6f428ac6b50bb3ef02bcbd9c542\",\"content_length\":635},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"c5e12c8f4f9d845957074ef083da475bcbd1a772bac10788e71fac28b2afe308aec386f3089845e7dc23f511e8945fe2091824e17d9862fe3a8366ab89516489\",\"content_length\":641},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"fe1b92d0e7577bdee59bed4841df6f5883990e9d27c73c5d816f35ce89f984b4a7653f7bd69972fbb62bebfcabcd2960fabcd74d590e9116073811e0f36f3372\",\"content_length\":1424},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"c6d02d3596cc48d5df3d093d032a62116e0ecd6f264c43d04dafa0949306fc5fe1ca8090b2e2e68c82e24c645716d7804bfb1d0477bbbb906b6272b88ddc0575\",\"content_length\":632},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5346926e774ca211656b732ba2946db3dbaf1fb2808e6769d147127e2ffdeff328514a9531918ebddfe1561f59d3995f072d1ef00c2b74fceaa1d1aaaee5796e\",\"content_length\":1347},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"45088f3b837c44b0f2afd9169b03c72c3451d42ece42f2bffa2da678ed249493f1ad36c6a69f5e05952f0d6602517ed57223eed2d8a4526f66d0888f0b44a131\",\"content_length\":1960},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5ba438463331e664c5cf293f1b909220d606da838d3768c565f259a2c9b60f90a75db89cd0c5683fdd88cbc86517df96febae3661f23a309eafea0eb65a9c747\",\"content_length\":5948},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"8d98e62774256a39dbacbcb169460b7a4ac92e29a0c17bef9402461343f01724695738475368fcecd0c386030ad4be2be3fb35a679bbb57ae2b8b59991d1ff2f\",\"content_length\":702}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"04e31d06b2d2a5c46cf60bfc34537fcad8ae5757f3a291dddf38bbc259bff30e5ca679d75fa2280b4b8999898468527ce4bed6f428ac6b50bb3ef02bcbd9c542\",\"content_length\":635},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"c5e12c8f4f9d845957074ef083da475bcbd1a772bac10788e71fac28b2afe308aec386f3089845e7dc23f511e8945fe2091824e17d9862fe3a8366ab89516489\",\"content_length\":641},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"fe1b92d0e7577bdee59bed4841df6f5883990e9d27c73c5d816f35ce89f984b4a7653f7bd69972fbb62bebfcabcd2960fabcd74d590e9116073811e0f36f3372\",\"content_length\":1424},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"c6d02d3596cc48d5df3d093d032a62116e0ecd6f264c43d04dafa0949306fc5fe1ca8090b2e2e68c82e24c645716d7804bfb1d0477bbbb906b6272b88ddc0575\",\"content_length\":632},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5346926e774ca211656b732ba2946db3dbaf1fb2808e6769d147127e2ffdeff328514a9531918ebddfe1561f59d3995f072d1ef00c2b74fceaa1d1aaaee5796e\",\"content_length\":1347},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"45088f3b837c44b0f2afd9169b03c72c3451d42ece42f2bffa2da678ed249493f1ad36c6a69f5e05952f0d6602517ed57223eed2d8a4526f66d0888f0b44a131\",\"content_length\":1960},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5ba438463331e664c5cf293f1b909220d606da838d3768c565f259a2c9b60f90a75db89cd0c5683fdd88cbc86517df96febae3661f23a309eafea0eb65a9c747\",\"content_length\":5948},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"8d98e62774256a39dbacbcb169460b7a4ac92e29a0c17bef9402461343f01724695738475368fcecd0c386030ad4be2be3fb35a679bbb57ae2b8b59991d1ff2f\",\"content_length\":702}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/352a9101-f516-5f32-b056-fa854bede172?length=1960",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "32538ababcf758b382720d3dc0838ccdc8a6fcbb4d73918603597781933f9dfdf3a13b79bfd062a7d700e488e1a4d156a9aea97890a8506d0f4771e1652523ad",+ "length": 1960+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/3c842e61-a617-54d6-9b1a-be6815ca29c8?length=1424",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "90df43f3b6502a9e2557a5052e2e4f7dbd90ad175ee6bdc504caeb501722ee5a24758ae1abec1636cde869a551beeb8a0c857b918cf434c3f1d319b0cb85d477",+ "length": 1424+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/57fc17ec-68e5-598a-9821-9c09d88c3062?length=632",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "81a7697ad75f1170178ac36276c2b77b92a962ba22c1e8eefc0a526c75310edf98a51b60b5845443f76ac2cf2afe5d3292384e71b5823a4517c9013f6fb537c1",+ "length": 632+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632?length=5948",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "f18b826ee18941ed2870227d5a1082bf9243094463a8fb27bd83860ccf7ea2a91392051f7c1bf3e868eedd3d8266aa6469bf8092c630dc572fd631be1f456ac5",+ "length": 5948+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6?length=702",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "01af843ae752eb9bcc8d602f1452ae2abba5b8e896c9a16d700a67b8174a7b75b3854ef9ec4d909c44de08bd831d2f1b792a3e731a72e18fa64f62b2d8a1e8c6",+ "length": 702+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156?length=1347",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "812b9106aa7a3b7ec294b800d167f1a2160f6a48998ad405bb8a450c6182402959ea5bdcf4189b8b38f3dc499eb8eb8571d9d69a12cceaf88f0177310e3ea76c",+ "length": 1347+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/bc620c4b-45a7-55ab-a4d5-2952c5a7549b?length=635",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "7d56c3548ac5e1a23ffe99527df76168d865ef3f7a2afc8d4863dfff4cd35a533032aa72a6c6db2eed05b5aec6a9d98ddc4be521b0c3c2db280ea53e2d66f4a9",+ "length": 635+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba?length=641",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "63637896d1a3f63e841a17bebfda2985d0ffbaf76ec097034ad1a60f1cd3a6fab67ab5cef5f3948e69035d776fdbe89877eaf68ef4ce5e8b3ae5e7c6cd1a849d",+ "length": 641+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"352a9101-f516-5f32-b056-fa854bede172\":\"45088f3b837c44b0f2afd9169b03c72c3451d42ece42f2bffa2da678ed249493f1ad36c6a69f5e05952f0d6602517ed57223eed2d8a4526f66d0888f0b44a131\",\"3c842e61-a617-54d6-9b1a-be6815ca29c8\":\"fe1b92d0e7577bdee59bed4841df6f5883990e9d27c73c5d816f35ce89f984b4a7653f7bd69972fbb62bebfcabcd2960fabcd74d590e9116073811e0f36f3372\",\"57fc17ec-68e5-598a-9821-9c09d88c3062\":\"c6d02d3596cc48d5df3d093d032a62116e0ecd6f264c43d04dafa0949306fc5fe1ca8090b2e2e68c82e24c645716d7804bfb1d0477bbbb906b6272b88ddc0575\",\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"5ba438463331e664c5cf293f1b909220d606da838d3768c565f259a2c9b60f90a75db89cd0c5683fdd88cbc86517df96febae3661f23a309eafea0eb65a9c747\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"8d98e62774256a39dbacbcb169460b7a4ac92e29a0c17bef9402461343f01724695738475368fcecd0c386030ad4be2be3fb35a679bbb57ae2b8b59991d1ff2f\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"5346926e774ca211656b732ba2946db3dbaf1fb2808e6769d147127e2ffdeff328514a9531918ebddfe1561f59d3995f072d1ef00c2b74fceaa1d1aaaee5796e\",\"bc620c4b-45a7-55ab-a4d5-2952c5a7549b\":\"04e31d06b2d2a5c46cf60bfc34537fcad8ae5757f3a291dddf38bbc259bff30e5ca679d75fa2280b4b8999898468527ce4bed6f428ac6b50bb3ef02bcbd9c542\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"c5e12c8f4f9d845957074ef083da475bcbd1a772bac10788e71fac28b2afe308aec386f3089845e7dc23f511e8945fe2091824e17d9862fe3a8366ab89516489\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"qTAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"qTAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"qTAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"qTAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"6WAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"oYAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-post-only.json b/hog/test/parity/golden/e2e/js-process-post-only.jsonnew file mode 100644index 000000000000..295d9f9ba302--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-post-only.json@@ -0,0 +1,216 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "fae195309165ddf39cfb033cf7120ccf0848ec3fedffe5d37389b06ecc539a46c41a9604ca74ba6bb1f9c56938d6723fde0fa1be7a8e3cece3aa77fda251c48e",+ "length": 2016,+ "fields": {+ "key": "symbolsets/352a9101-f516-5f32-b056-fa854bede172",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1caa14a513f3c9048415842d5f2d7ef9334c94026fd73d7c16e826995de389b793faafbdcd2e5a59c69c5cd7a6b9286e5c76ecb6b49d999bc7a8ae8896d58d46",+ "length": 1471,+ "fields": {+ "key": "symbolsets/3c842e61-a617-54d6-9b1a-be6815ca29c8",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d0db144f7934dc046cc243960809b32bd6bd887fd082b328a7f54566b727ee4e1d93d01e3b9cdd1496f148a7387518af411bdcf3e1c445204dfb3d9d3acc8a2e",+ "length": 681,+ "fields": {+ "key": "symbolsets/57fc17ec-68e5-598a-9821-9c09d88c3062",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "743359e55f9b74ba04080fe6be44b8c527aa16fca61f4421d3d60ffb9fbf9c9eddb8cafe64150c7b657bdb45de705124e6cc6595ef23acd05a45d8d6071e75f5",+ "length": 5997,+ "fields": {+ "key": "symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "c6b438a5a2a4578e19c939f28d7bf28bac0dfeb81633fc91cf7ed23fbbf5412091be9015b5c0f819a6202314f47f87a18e6a08c061468d144d87d040d119fef1",+ "length": 758,+ "fields": {+ "key": "symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "627434671e6fe54b3fea57d2fe6836df782fae290ef0b65fa3fef8fe4fef028e0d4041e5f6b09fa7db5e326e31a4700cd3399723de8598a14529336b1698a4d3",+ "length": 1395,+ "fields": {+ "key": "symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "18ce3f754f32bacb5d4f548500ea10473b9c0890432d90593642a81929e3fc354e2c190b21c8cbc20e04b5364364c87cf209bf5bfcaec4bb4a4255cf82f6e795",+ "length": 683,+ "fields": {+ "key": "symbolsets/bc620c4b-45a7-55ab-a4d5-2952c5a7549b",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/s3/post",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0300e5cdf227fb4b872e9b56e5531a9ba06e75e4b0ca28c09b9f8fc7cc3f98d4813373925bcc40d1322e0194537bf7267938754381ef8b25e92a8d3c22040211",+ "length": 700,+ "fields": {+ "key": "symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba",+ "policy": "policy",+ "x-amz-signature": "signature"+ },+ "filename": "file"+ },+ "status": 204+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"352a9101-f516-5f32-b056-fa854bede172\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"3c842e61-a617-54d6-9b1a-be6815ca29c8\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"57fc17ec-68e5-598a-9821-9c09d88c3062\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"bc620c4b-45a7-55ab-a4d5-2952c5a7549b\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-process-release-mismatch.json b/hog/test/parity/golden/e2e/js-process-release-mismatch.jsonnew file mode 100644index 000000000000..da4c0027439f--- /dev/null+++ b/hog/test/parity/golden/e2e/js-process-release-mismatch.json@@ -0,0 +1,168 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/352a9101-f516-5f32-b056-fa854bede172?length=2016",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "fae195309165ddf39cfb033cf7120ccf0848ec3fedffe5d37389b06ecc539a46c41a9604ca74ba6bb1f9c56938d6723fde0fa1be7a8e3cece3aa77fda251c48e",+ "length": 2016+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/3c842e61-a617-54d6-9b1a-be6815ca29c8?length=1471",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1caa14a513f3c9048415842d5f2d7ef9334c94026fd73d7c16e826995de389b793faafbdcd2e5a59c69c5cd7a6b9286e5c76ecb6b49d999bc7a8ae8896d58d46",+ "length": 1471+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/57fc17ec-68e5-598a-9821-9c09d88c3062?length=681",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d0db144f7934dc046cc243960809b32bd6bd887fd082b328a7f54566b727ee4e1d93d01e3b9cdd1496f148a7387518af411bdcf3e1c445204dfb3d9d3acc8a2e",+ "length": 681+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632?length=5997",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "743359e55f9b74ba04080fe6be44b8c527aa16fca61f4421d3d60ffb9fbf9c9eddb8cafe64150c7b657bdb45de705124e6cc6595ef23acd05a45d8d6071e75f5",+ "length": 5997+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6?length=758",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "c6b438a5a2a4578e19c939f28d7bf28bac0dfeb81633fc91cf7ed23fbbf5412091be9015b5c0f819a6202314f47f87a18e6a08c061468d144d87d040d119fef1",+ "length": 758+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156?length=1395",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "627434671e6fe54b3fea57d2fe6836df782fae290ef0b65fa3fef8fe4fef028e0d4041e5f6b09fa7db5e326e31a4700cd3399723de8598a14529336b1698a4d3",+ "length": 1395+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/bc620c4b-45a7-55ab-a4d5-2952c5a7549b?length=683",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "18ce3f754f32bacb5d4f548500ea10473b9c0890432d90593642a81929e3fc354e2c190b21c8cbc20e04b5364364c87cf209bf5bfcaec4bb4a4255cf82f6e795",+ "length": 683+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba?length=700",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0300e5cdf227fb4b872e9b56e5531a9ba06e75e4b0ca28c09b9f8fc7cc3f98d4813373925bcc40d1322e0194537bf7267938754381ef8b25e92a8d3c22040211",+ "length": 700+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"352a9101-f516-5f32-b056-fa854bede172\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"3c842e61-a617-54d6-9b1a-be6815ca29c8\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"57fc17ec-68e5-598a-9821-9c09d88c3062\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"bc620c4b-45a7-55ab-a4d5-2952c5a7549b\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-upload-after-inject.json b/hog/test/parity/golden/e2e/js-upload-after-inject.jsonnew file mode 100644index 000000000000..feea4c050cf3--- /dev/null+++ b/hog/test/parity/golden/e2e/js-upload-after-inject.json@@ -0,0 +1,149 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"release_id\":null,\"content_hash\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"content_length\":683},{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\",\"content_length\":700},{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"release_id\":null,\"content_hash\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"content_length\":1471},{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"release_id\":null,\"content_hash\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"content_length\":681},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"content_length\":1395},{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"release_id\":null,\"content_hash\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"content_length\":2016},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"content_length\":5997},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"content_length\":758}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/352a9101-f516-5f32-b056-fa854bede172?length=2016",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "fae195309165ddf39cfb033cf7120ccf0848ec3fedffe5d37389b06ecc539a46c41a9604ca74ba6bb1f9c56938d6723fde0fa1be7a8e3cece3aa77fda251c48e",+ "length": 2016+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/3c842e61-a617-54d6-9b1a-be6815ca29c8?length=1471",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1caa14a513f3c9048415842d5f2d7ef9334c94026fd73d7c16e826995de389b793faafbdcd2e5a59c69c5cd7a6b9286e5c76ecb6b49d999bc7a8ae8896d58d46",+ "length": 1471+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/57fc17ec-68e5-598a-9821-9c09d88c3062?length=681",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d0db144f7934dc046cc243960809b32bd6bd887fd082b328a7f54566b727ee4e1d93d01e3b9cdd1496f148a7387518af411bdcf3e1c445204dfb3d9d3acc8a2e",+ "length": 681+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632?length=5997",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "743359e55f9b74ba04080fe6be44b8c527aa16fca61f4421d3d60ffb9fbf9c9eddb8cafe64150c7b657bdb45de705124e6cc6595ef23acd05a45d8d6071e75f5",+ "length": 5997+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6?length=758",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "c6b438a5a2a4578e19c939f28d7bf28bac0dfeb81633fc91cf7ed23fbbf5412091be9015b5c0f819a6202314f47f87a18e6a08c061468d144d87d040d119fef1",+ "length": 758+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156?length=1395",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "627434671e6fe54b3fea57d2fe6836df782fae290ef0b65fa3fef8fe4fef028e0d4041e5f6b09fa7db5e326e31a4700cd3399723de8598a14529336b1698a4d3",+ "length": 1395+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/bc620c4b-45a7-55ab-a4d5-2952c5a7549b?length=683",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "18ce3f754f32bacb5d4f548500ea10473b9c0890432d90593642a81929e3fc354e2c190b21c8cbc20e04b5364364c87cf209bf5bfcaec4bb4a4255cf82f6e795",+ "length": 683+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba?length=700",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0300e5cdf227fb4b872e9b56e5531a9ba06e75e4b0ca28c09b9f8fc7cc3f98d4813373925bcc40d1322e0194537bf7267938754381ef8b25e92a8d3c22040211",+ "length": 700+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"352a9101-f516-5f32-b056-fa854bede172\":\"40196dd2164a5e8453ce9e4fea9e13ead4934a18706fb6a484928f3e38e4b2a3be29cc0a391461ec15e66cbc0b9957bacf5ccfe1b365c36a3975bb5c2e1854b1\",\"3c842e61-a617-54d6-9b1a-be6815ca29c8\":\"e54df964d76a5e0f9a231e63c72fad63894b1e0297652144831877c762a0901d16b1941cd680def1b57eea70a94a9c4a554d54492387b7241a757d92d71a576a\",\"57fc17ec-68e5-598a-9821-9c09d88c3062\":\"3c14eeaf26034aa5c287d5f31a6859a06cf89dcd509b262902e2103e9b6e649e541a5d9badf8bb5836e1df0f0e43f2a8a235aca9aeb18ed4477d37379454d272\",\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"5d02bb52fe5e2e1f517c4e8bd27fbe242a3364c12727db54d71efa3fb02d6bf939dbc85955c65078b7c4b49d5c14c05c70d222648d67e442934511f7ba5f04f8\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"77b4943d3104140f4554b84c5ff96dc70c739733f8bc092bce8c7c72ea846e01832a7bbbb302ba5ccb3ec61e920b0e6125bbf2ae914dd91e1cd6d73463532463\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"5a68fc82f35276caaabd0863c28b08785560d543eca3d0d845bdf35ff9c4663f84b8dfad6391a176c48d9f4a2ef5381a8d3a59ecce5f4dd90bbe062df84b0673\",\"bc620c4b-45a7-55ab-a4d5-2952c5a7549b\":\"f1452989ce16248eab98a5a988232a5823ef581d0112174b3cafa8de3f6554c520f9ad9728a53c749e73c969bac4e45b1f962f620ae1f0d970152cf3e51e7b7c\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"530432894b6d893269da7130a7334c9bb3ecf5ec2e8d0061333aad18508444bb2273882db7b293a769491827c160a7e31dda60fedb5aaff26c18236a25eee8ad\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=7f049abd-6283-5ecf-925b-d4ce9b1a514d",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"chunk_id\":\"7f049abd-6283-5ecf-925b-d4ce9b1a514d\",\"mappings\":\"yYAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"97e874eb-b143-5723-bb41-695f14c0d557\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=97e874eb-b143-5723-bb41-695f14c0d557",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"chunk_id\":\"97e874eb-b143-5723-bb41-695f14c0d557\",\"mappings\":\"yYAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=bb9d599f-3e44-5c89-bd8f-745d085a30a0",+ "esbuild-cjs/index.cjs.map": "utf8:{\"chunk_id\":\"bb9d599f-3e44-5c89-bd8f-745d085a30a0\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"b7e07b27-43b5-41de-9196-855306cb5e17\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=b7e07b27-43b5-41de-9196-855306cb5e17",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"yYAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"yYAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"99aebe21-13ee-51da-a4aa-940e274f080f\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=99aebe21-13ee-51da-a4aa-940e274f080f",+ "terser/badge.min.js.map": "utf8:{\"chunk_id\":\"99aebe21-13ee-51da-a4aa-940e274f080f\",\"file\":\"badge.min.js\",\"mappings\":\"icAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4",+ "webpack/213.eef13598.js.map": "utf8:{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"wdAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||\"e7ccdce0-e172-5444-b00e-bec22162f00f\";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3",+ "webpack/main.24954514.js.map": "utf8:{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-upload-native-debug-ids.json b/hog/test/parity/golden/e2e/js-upload-native-debug-ids.jsonnew file mode 100644index 000000000000..9055de9576b7--- /dev/null+++ b/hog/test/parity/golden/e2e/js-upload-native-debug-ids.json@@ -0,0 +1,101 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"13c9d1072eabcb17a65dea6ddbee49de25ac86f521957d899eeb5acd237450ab7d8f3adbf891d49e059fbbbff54f7b904a9ff102d50538683025035f1f261329\",\"content_length\":483},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"8931f2113c3d5b1a6068fcb7a7b29a2f90c7582f0216164427f25c311b1bd9b07e8edebfb196db123f8ca73eb1b49552a3c561dd9a2e11c7f8631ed87353dfa5\",\"content_length\":1203},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"c3b99bb24e161d4f7240dec69dfc1018e4c924428de6cb10ced14d58421ecea3a49b0cdb087540cdfbffc7ebfd365d3ab783bfb3b1510ac67010635e7b202090\",\"content_length\":5835},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"b484d502d18b8e770c6031ddcef7a45affa5755f409fc38e627594f02251c44f1b4c5c16a143e9a863fd99fa62dd20dc91e345f824fd091ebc805b95ff000b73\",\"content_length\":558}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"release_id\":null,\"content_hash\":\"13c9d1072eabcb17a65dea6ddbee49de25ac86f521957d899eeb5acd237450ab7d8f3adbf891d49e059fbbbff54f7b904a9ff102d50538683025035f1f261329\",\"content_length\":483},{\"chunk_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"release_id\":null,\"content_hash\":\"8931f2113c3d5b1a6068fcb7a7b29a2f90c7582f0216164427f25c311b1bd9b07e8edebfb196db123f8ca73eb1b49552a3c561dd9a2e11c7f8631ed87353dfa5\",\"content_length\":1203},{\"chunk_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"release_id\":null,\"content_hash\":\"c3b99bb24e161d4f7240dec69dfc1018e4c924428de6cb10ced14d58421ecea3a49b0cdb087540cdfbffc7ebfd365d3ab783bfb3b1510ac67010635e7b202090\",\"content_length\":5835},{\"chunk_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"release_id\":null,\"content_hash\":\"b484d502d18b8e770c6031ddcef7a45affa5755f409fc38e627594f02251c44f1b4c5c16a143e9a863fd99fa62dd20dc91e345f824fd091ebc805b95ff000b73\",\"content_length\":558}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/681f29ad-219c-5b86-ae2b-84ae38e13632?length=5835",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d37ae5108c1c2adcfb461de253d83c3ea5cff928a0bde0a400cec561bdd25ce107c25d5d62942aecc8990501bd16f92a876b1886be3db2ae85cb737bc12fc40b",+ "length": 5835+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/942ecec0-4cb2-5160-9c2b-948cbff4d4e6?length=558",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "3001b8f6843c703997b87b55cd277061ccc3b9790db8a5913ca44030061b6042f343fac7c19ce2d34238ac44384d12384b1ab34d8bb624efc58f1339753c423b",+ "length": 558+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/aa9eb665-a4e6-563c-8f32-132887ddb156?length=1203",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0058e864f76f78b185ef6cdfe3625d78e71084686c6b672fe060cfa7f3a792f9a84adbba2d75eabc0eaf473312a74e28c56eaf1c2bf6807e1662816e7a1b2854",+ "length": 1203+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/f3a4edbe-bdbe-5854-a25b-283553f240ba?length=483",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "b923239b948f5f303ea69bf6bc6cc39805521ae677395ff93726eb8db2900152245ec7008e10e8bde2d49fce4d426e88f6fa8c2a07572fca95da41b154bde7ec",+ "length": 483+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"681f29ad-219c-5b86-ae2b-84ae38e13632\":\"c3b99bb24e161d4f7240dec69dfc1018e4c924428de6cb10ced14d58421ecea3a49b0cdb087540cdfbffc7ebfd365d3ab783bfb3b1510ac67010635e7b202090\",\"942ecec0-4cb2-5160-9c2b-948cbff4d4e6\":\"b484d502d18b8e770c6031ddcef7a45affa5755f409fc38e627594f02251c44f1b4c5c16a143e9a863fd99fa62dd20dc91e345f824fd091ebc805b95ff000b73\",\"aa9eb665-a4e6-563c-8f32-132887ddb156\":\"8931f2113c3d5b1a6068fcb7a7b29a2f90c7582f0216164427f25c311b1bd9b07e8edebfb196db123f8ca73eb1b49552a3c561dd9a2e11c7f8631ed87353dfa5\",\"f3a4edbe-bdbe-5854-a25b-283553f240ba\":\"13c9d1072eabcb17a65dea6ddbee49de25ac86f521957d899eeb5acd237450ab7d8f3adbf891d49e059fbbbff54f7b904a9ff102d50538683025035f1f261329\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\n \"version\": 3,\n \"sources\": [\"../../src/reviews.js\"],\n \"sourcesContent\": [\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\n \"mappings\": \"AAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\n \"names\": [\"fetchReviews\", \"productId\"]\n}\n",+ "esbuild/index-DLM2YCDD.js": "utf8:function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\n \"version\": 3,\n \"sources\": [\"../../src/cart.js\", \"../../src/ui/badge.js\", \"../../src/index.js\"],\n \"sourcesContent\": [\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\", \"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: '\\u00E9\\u65E5\\uD83D\\uDE00' }\\n return JSON.stringify(badge)\\n}\\n\", \"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\n \"mappings\": \"AAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\n \"names\": [\"formatPrice\", \"cents\", \"parseQuantity\", \"value\", \"parsed\", \"renderBadge\", \"label\", \"checkout\", \"items\", \"total\", \"item\", \"parseQuantity\", \"renderBadge\", \"formatPrice\", \"loadReviews\", \"fetchReviews\"]\n}\n",+ "esbuild-cjs/index.cjs": "utf8:var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n",+ "esbuild-cjs/index.cjs.map": "utf8:{\n \"version\": 3,\n \"sources\": [\"../../src/reviews.js\", \"../../src/index.js\", \"../../src/cart.js\", \"../../src/ui/badge.js\"],\n \"sourcesContent\": [\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\", \"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\", \"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\", \"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: '\\u00E9\\u65E5\\uD83D\\uDE00' }\\n return JSON.stringify(badge)\\n}\\n\"],\n \"mappings\": \";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC;\",\n \"names\": [\"fetchReviews\"]\n}\n",+ "rollup/index-W25VBdhh.mjs": "utf8:function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"version\":3,\"file\":\"index-W25VBdhh.mjs\",\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"names\":[],\"mappings\":\"AAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC;;;;\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\"}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"version\":3,\"file\":\"reviews-nJfzDM_Q.mjs\",\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"names\":[],\"mappings\":\"AAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D;;;;\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\"}",+ "terser/badge.min.js": "utf8:var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map",+ "terser/badge.min.js.map": "utf8:{\"version\":3,\"file\":\"badge.min.js\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"mappings\":\"wDAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\"}",+ "webpack/213.eef13598.js": "utf8:\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map",+ "webpack/213.eef13598.js.map": "utf8:{\"version\":3,\"file\":\"213.eef13598.js\",\"mappings\":\"+EAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\"}",+ "webpack/main.24954514.js": "utf8:(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map",+ "webpack/main.24954514.js.map": "utf8:{\"version\":3,\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\"}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-upload-not-injected.json b/hog/test/parity/golden/e2e/js-upload-not-injected.jsonnew file mode 100644index 000000000000..baf98e405b59--- /dev/null+++ b/hog/test/parity/golden/e2e/js-upload-not-injected.json@@ -0,0 +1,123 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"11111111-2222-4333-8444-555555555555\",\"release_id\":null,\"content_hash\":\"0fc402a98a41edab34970bf3a0838dd1c2e265197a0559de84901542e47d2c1f2c2d96988b30794268f84a488cea5306f1574f3d210934ab01d3032c223a5146\",\"content_length\":181},{\"chunk_id\":\"1111111122224333844455555555555F\",\"release_id\":null,\"content_hash\":\"bc523363f7feec2bbf2eb2485d6ad5f6213878ed13359cacd18cb566e445ef0b0f297c22cdb176666b727db71d7b623414ebad776a5bcaa35587144b6f4eccd3\",\"content_length\":169},{\"chunk_id\":\"not-a-uuid\",\"release_id\":null,\"content_hash\":\"9e3722a574ab6692035377ae638d639bb2590a607101f1aaed9d01bda2f568a67032694e5bbcc268aaa85f352097cbd062d2593aa1694857b786028f17922ee3\",\"content_length\":158}],\"force\":true,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"11111111-2222-4333-8444-555555555555\",\"release_id\":null,\"content_hash\":\"0fc402a98a41edab34970bf3a0838dd1c2e265197a0559de84901542e47d2c1f2c2d96988b30794268f84a488cea5306f1574f3d210934ab01d3032c223a5146\",\"content_length\":181},{\"chunk_id\":\"1111111122224333844455555555555F\",\"release_id\":null,\"content_hash\":\"bc523363f7feec2bbf2eb2485d6ad5f6213878ed13359cacd18cb566e445ef0b0f297c22cdb176666b727db71d7b623414ebad776a5bcaa35587144b6f4eccd3\",\"content_length\":169},{\"chunk_id\":\"not-a-uuid\",\"release_id\":null,\"content_hash\":\"9e3722a574ab6692035377ae638d639bb2590a607101f1aaed9d01bda2f568a67032694e5bbcc268aaa85f352097cbd062d2593aa1694857b786028f17922ee3\",\"content_length\":158}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":true,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/2e299ed0-dad3-5805-bcde-4d2d98f6a808?length=181",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "83b13f16e4206535ad809eb28be15b30c72d576209bc0512a619885fc9a32aa6907a8892e3c1b0ddfcc525daf025eed1945bb5a6c0b4cb85d09290c57dd158d5",+ "length": 181+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/610d3f3c-ff95-5e10-9b99-e38c2e4de773?length=158",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "c145122acd97f6d19ee71706eb9da02d82f2a52246b0eb514a153e04dc965fb26047c78cfdf2e0e5f7a06a7d018d38db4c429ed5d2cbb99a9a73651dfbd4606d",+ "length": 158+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/a052c2f8-3aac-5499-bf9a-16e82ccaba42?length=169",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "af5009969dff06b1fd46dfe101f8a3f23a0b6ab79cfba3d3fbd57ea29334ed3dac321f9e85de4147b0639c26b5424095381db6b4cf7523265bbb94aeb244d40d",+ "length": 169+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"2e299ed0-dad3-5805-bcde-4d2d98f6a808\":\"0fc402a98a41edab34970bf3a0838dd1c2e265197a0559de84901542e47d2c1f2c2d96988b30794268f84a488cea5306f1574f3d210934ab01d3032c223a5146\",\"610d3f3c-ff95-5e10-9b99-e38c2e4de773\":\"9e3722a574ab6692035377ae638d639bb2590a607101f1aaed9d01bda2f568a67032694e5bbcc268aaa85f352097cbd062d2593aa1694857b786028f17922ee3\",\"a052c2f8-3aac-5499-bf9a-16e82ccaba42\":\"bc523363f7feec2bbf2eb2485d6ad5f6213878ed13359cacd18cb566e445ef0b0f297c22cdb176666b727db71d7b623414ebad776a5bcaa35587144b6f4eccd3\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "bom/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "bom/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"CAAA\"}",+ "cjs/a.cjs": "utf8:a();\n",+ "cjs/a.cjs.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "crlf/a.js": "utf8:a();\r\nb();\r\n//# sourceMappingURL=a.js.map\r\n",+ "crlf/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA;AACA\"}",+ "debugid/a.js": "utf8:a();\n//# debugId=11111111-2222-4333-8444-555555555555\n//# sourceMappingURL=a.js.map\n",+ "debugid/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\",\"debugId\":\"11111111-2222-4333-8444-555555555555\"}",+ "debugid-malformed-source/a.js": "utf8:a();\n//# debugId=not-a-uuid\n//# sourceMappingURL=a.js.map\n",+ "debugid-malformed-source/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "debugid-simple/a.js": "utf8:a();\n//# debugId=1111111122224333844455555555555F\n//# sourceMappingURL=a.js.map\n",+ "debugid-simple/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "dotfile/.js": "utf8:a();\n",+ "dotfile/.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "empty-large/a.js": "utf8:a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();a();\n//# sourceMappingURL=a.js.map\n",+ "empty-large/a.js.map": "utf8:{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\"}",+ "empty-small/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "empty-small/a.js.map": "utf8:{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\"}",+ "empty-source/a.js": "utf8:",+ "empty-source/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"\"}",+ "encoded/maps/my map.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\",\"file\":\"a.js\"}",+ "encoded/sub/a.js": "utf8:a();\n//# sourceMappingURL=../maps/my%20map.js.map\n",+ "facebook/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "facebook/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\",\"x_facebook_sources\":[[{\"names\":[\"<global>\"],\"mappings\":\"AAA\"}]]}",+ "fields/a.js": "utf8:abc();\n//# sourceMappingURL=a.js.map\n",+ "fields/a.js.map": "utf8:{\"version\":3,\"sourceRoot\":\"/root/\",\"sources\":[null,\"b.ts\"],\"names\":[1,null,\"x\",2.5],\"mappings\":\"AAAAA,CCAAC,CAAAC\",\"x_google_ignoreList\":[1],\"ignoreList\":[1,1,0],\"x_float\":1.0,\"x_big\":1e21,\"x_neg0\":-0.0,\"x_small\":1e-7,\"x_huge\":18446744073709551615,\"x_neg\":-9223372036854775808,\"x_unicode\":\"\\u00e9\\u2028/\\/\\u0001\",\"file\":42,\"sourcesContent\":[null,null,\"extra\"]}",+ "file-paths/a.js": "utf8:import(\"./one-BrAf3own.js\");x.js.map;\n//# sourceMappingURL=a.js.map\n",+ "file-paths/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\",\"file\":\"https://cdn.example.com/a/b-X_1.mjs\"}",+ "index-map/a.js": "utf8:a();\nb();\n//# sourceMappingURL=a.js.map\n",+ "index-map/a.js.map": "utf8:{\"version\":3,\"file\":\"a.js\",\"sources\":[],\"x_custom\":1,\"sections\":[{\"offset\":{\"line\":0,\"column\":0},\"map\":{\"version\":3,\"sources\":[\"one.ts\"],\"sourceRoot\":\"webpack://\",\"names\":[\"n\"],\"mappings\":\"AAAAA\",\"sourcesContent\":[\"one\"]}},{\"offset\":{\"line\":1,\"column\":2},\"map\":{\"version\":3,\"sources\":[\"two.ts\",\"one.ts\"],\"names\":[\"n\"],\"mappings\":\"AAAAA,CCAA\"}}]}",+ "inline/a.js": "utf8:a();\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=\n",+ "jsx/a.jsx": "utf8:a();\n",+ "jsx/a.jsx.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "latin1/a.js": "base64:YSgn6ScpOwovLyMgc291cmNlTWFwcGluZ1VSTD1hLmpzLm1hcAo=",+ "latin1/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "legacy/a.js": "utf8:a();\n//@ sourceMappingURL=a.js.map\n",+ "legacy/a.js.map": "utf8:{\"version\":3,\"sources\":[\"a\"],\"names\":[],\"mappings\":\"AAAA\",\"chunkId\":\"aaaaaaaa-0000-4000-8000-000000000000\"}",+ "mjs/a.mjs": "utf8:a();\n//# sourceMappingURL=a.mjs.map\n",+ "mjs/a.mjs.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "multibyte/a.js": "utf8:var s='é日😀';f();\n//# sourceMappingURL=a.js.map\n",+ "multibyte/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA,UAAU,QAAQ\"}",+ "nomap/a.js": "utf8:a();\n",+ "nonl/a.js": "utf8:a();\nb();\n//# sourceMappingURL=a.js.map",+ "nonl/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA,EAAE;AACA;AACA;AACA\",\"sourcesContent\":[\"x\"]}",+ "reference-not-last/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\nb();\n",+ "reference-not-last/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA;AACA\"}",+ "sibling/a.js": "utf8:a();\n",+ "sibling/a.js.map": "utf8:{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}",+ "xssi/a.js": "utf8:a();\n//# sourceMappingURL=a.js.map\n",+ "xssi/a.js.map": "utf8:)]}'\n{\"version\":3,\"sources\":[\"src/a.ts\"],\"names\":[],\"mappings\":\"AAAA\"}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-upload-symbol-set-hash-mismatch.json b/hog/test/parity/golden/e2e/js-upload-symbol-set-hash-mismatch.jsonnew file mode 100644index 000000000000..9cd75fe1849e--- /dev/null+++ b/hog/test/parity/golden/e2e/js-upload-symbol-set-hash-mismatch.json@@ -0,0 +1,62 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"d57559a03fbd4261ce4e3e24246bb416b7aee6937bbc38ff4ddca18dd53a31d894ee0cf2de0203e29e527c9ec29ca2ec5ef47481c2bce90133ec9c189f831780\",\"content_length\":6035},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"2b65bb7dcee7907dc6c53938bb081b894470879aad7c9987ba1f2564b3271f96f0da680cbd8d3158841a361c10dd68d151f299fb442cc3823efdbb127cc0f378\",\"content_length\":772},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"46f338e963271faebb5c1e84cb6bba611d7487651b93e937d85863d2354816a39bc63fc2bdf7379b565d19a7ea5d6e560d635df6ddf14eba602de16940367edd\",\"content_length\":1419},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"ef8257743ec6a87b4040a1ff47ba1b7066f14813ddd3723144298ab9a11decec553d769340e7646e37589cd5afe481141f2827db5499698beb926e89f3db3f90\",\"content_length\":717},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"3c3c5e6e10de71a1af29e005432bbfa9a0caff5e5e2632a48e7433d612063ca6866bd5bebfcc1b8fc798bb7e852f8e394dc81acd2d76dc16bf18b39e463d3dc8\",\"content_length\":2001},{\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"18568002e35a6f1711e70134ac25b225ec7edb8bc8cb15ce86322ded82b71b0e946786ce1f4036e6568c1881857d4b7a14b9d21f7a905a228010e49cf5e43430\",\"content_length\":1460},{\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"de62c315c811c3d31f66b4554ad0debe724864ca20fb726b5062b8e893f86d94fc3fc82a213183f5d955ab2d412dca5b81148f4adc77ca9c09e3f11fc1c06db5\",\"content_length\":653},{\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"58fe5f77c44ad93c74b4cc145cb71140f2e554274615be3295a99c590f77a0da7dcdb67ca2c4d524e3b448a764d33721c0c7f2e271af5d23a903247a0fc1b602\",\"content_length\":675}],\"force\":false,\"skip_on_conflict\":true}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"d57559a03fbd4261ce4e3e24246bb416b7aee6937bbc38ff4ddca18dd53a31d894ee0cf2de0203e29e527c9ec29ca2ec5ef47481c2bce90133ec9c189f831780\",\"content_length\":6035},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"2b65bb7dcee7907dc6c53938bb081b894470879aad7c9987ba1f2564b3271f96f0da680cbd8d3158841a361c10dd68d151f299fb442cc3823efdbb127cc0f378\",\"content_length\":772},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"46f338e963271faebb5c1e84cb6bba611d7487651b93e937d85863d2354816a39bc63fc2bdf7379b565d19a7ea5d6e560d635df6ddf14eba602de16940367edd\",\"content_length\":1419},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"ef8257743ec6a87b4040a1ff47ba1b7066f14813ddd3723144298ab9a11decec553d769340e7646e37589cd5afe481141f2827db5499698beb926e89f3db3f90\",\"content_length\":717},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"3c3c5e6e10de71a1af29e005432bbfa9a0caff5e5e2632a48e7433d612063ca6866bd5bebfcc1b8fc798bb7e852f8e394dc81acd2d76dc16bf18b39e463d3dc8\",\"content_length\":2001},{\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"18568002e35a6f1711e70134ac25b225ec7edb8bc8cb15ce86322ded82b71b0e946786ce1f4036e6568c1881857d4b7a14b9d21f7a905a228010e49cf5e43430\",\"content_length\":1460},{\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"de62c315c811c3d31f66b4554ad0debe724864ca20fb726b5062b8e893f86d94fc3fc82a213183f5d955ab2d412dca5b81148f4adc77ca9c09e3f11fc1c06db5\",\"content_length\":653},{\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"58fe5f77c44ad93c74b4cc145cb71140f2e554274615be3295a99c590f77a0da7dcdb67ca2c4d524e3b448a764d33721c0c7f2e271af5d23a903247a0fc1b602\",\"content_length\":675}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":false,\"skip_on_conflict\":true}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b912854e5ac8\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b912854e5ac8",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"mappings\":\"qTAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b909bcc83e83\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b909bcc83e83",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"mappings\":\"qTAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96661f92e937\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96661f92e937",+ "esbuild-cjs/index.cjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-9641d1b71a02\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-9641d1b71a02",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"qTAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96566ceee837\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96566ceee837",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"qTAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b92472346456\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=01a18076-fac6-7451-9926-b92472346456",+ "terser/badge.min.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"file\":\"badge.min.js\",\"mappings\":\"6WAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-963cb54bc5ec",+ "webpack/213.eef13598.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"oYAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-962a8c8c9b13",+ "webpack/main.24954514.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-upload-symbol-set-new-release.json b/hog/test/parity/golden/e2e/js-upload-symbol-set-new-release.jsonnew file mode 100644index 000000000000..3e28dab492c8--- /dev/null+++ b/hog/test/parity/golden/e2e/js-upload-symbol-set-new-release.json@@ -0,0 +1,168 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/7f00e614a7f0b35cbec39e444af6dd7fd961a9c4c5d681bbdcb9933dbf54e9661adb85085b4757d3dcda0993269cb528b6e5fefe06ad668a105da15eab10322d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"7f00e614a7f0b35cbec39e444af6dd7fd961a9c4c5d681bbdcb9933dbf54e9661adb85085b4757d3dcda0993269cb528b6e5fefe06ad668a105da15eab10322d\",\"version\":\"3.0.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"41583f28fcdb5d231b94f580dceafbef32d2448a2ad6ee23d790cb342aa7494e3c6c656ae94a1fd7587ae752ca4f141c04bbebc5c4b4bee1b76d2da05e4e5744\",\"content_length\":6034},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"1c253574d7cb126fddea00b96a659f5d514337f73a06e6ed08764aa8709c8dbd0b9a53676928bb7fac9512f4a6d3e7f56f60bd784d97e7db77c8ac1784cfd027\",\"content_length\":773},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"ab409679c7af37a29661cec84ccf0127b310b59b7dd28ae2935a8b13c2a86c2da9856c648e016b0a2ed5cf2f51a2a5ac3aa7af6b3a478a9b0956596174a09520\",\"content_length\":1421},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"03c5616164d82fe5c5b48eb64013dd938b85d7e93bc86a5a5c3d1a34fd3e3cd290ba2f179e35e561cc39a30049c05aa4f254d004fc42d3c3d5d4467a17e756bd\",\"content_length\":719},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"466a3dafa4f1351f84018632345c3cf4c2cf51f2705069a764bfd6ac65aa447cc2cd336f6ba55fc872a5046cfe29c5c2d21bf68811f3edaa1668283245a19b0f\",\"content_length\":2003},{\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"0213869f9eb9f3cb08e652314bc09ec9e1fb770d0239d5a70a4966943f1a1bf0dee28f1ba8991c8ec66069affef00157a33c6b0eef951f6c529fad5ead3ddf70\",\"content_length\":1464},{\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"d39c8bb4fd3c75765adb260770aa4570fa798dd9e3c0e36cca4abaa79b11238e2194b695eaebdecf55c07f03082df2cecbdd5dd74a1522f39a80862778b2c289\",\"content_length\":654},{\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"152e42ca158e73eddd369474d997d6ca9f3e2a9721e26f40a2a229bb8c14d3f6f4218261adfe1c65c737df21a4202f6d11e7d9788e660fa20fb87c2c29608b33\",\"content_length\":675}],\"force\":false,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"41583f28fcdb5d231b94f580dceafbef32d2448a2ad6ee23d790cb342aa7494e3c6c656ae94a1fd7587ae752ca4f141c04bbebc5c4b4bee1b76d2da05e4e5744\",\"content_length\":6034},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"1c253574d7cb126fddea00b96a659f5d514337f73a06e6ed08764aa8709c8dbd0b9a53676928bb7fac9512f4a6d3e7f56f60bd784d97e7db77c8ac1784cfd027\",\"content_length\":773},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"ab409679c7af37a29661cec84ccf0127b310b59b7dd28ae2935a8b13c2a86c2da9856c648e016b0a2ed5cf2f51a2a5ac3aa7af6b3a478a9b0956596174a09520\",\"content_length\":1421},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"03c5616164d82fe5c5b48eb64013dd938b85d7e93bc86a5a5c3d1a34fd3e3cd290ba2f179e35e561cc39a30049c05aa4f254d004fc42d3c3d5d4467a17e756bd\",\"content_length\":719},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"466a3dafa4f1351f84018632345c3cf4c2cf51f2705069a764bfd6ac65aa447cc2cd336f6ba55fc872a5046cfe29c5c2d21bf68811f3edaa1668283245a19b0f\",\"content_length\":2003},{\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"0213869f9eb9f3cb08e652314bc09ec9e1fb770d0239d5a70a4966943f1a1bf0dee28f1ba8991c8ec66069affef00157a33c6b0eef951f6c529fad5ead3ddf70\",\"content_length\":1464},{\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"d39c8bb4fd3c75765adb260770aa4570fa798dd9e3c0e36cca4abaa79b11238e2194b695eaebdecf55c07f03082df2cecbdd5dd74a1522f39a80862778b2c289\",\"content_length\":654},{\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"release_id\":\"074d25d5-c524-52f9-8a99-084e68252a9a\",\"content_hash\":\"152e42ca158e73eddd369474d997d6ca9f3e2a9721e26f40a2a229bb8c14d3f6f4218261adfe1c65c737df21a4202f6d11e7d9788e660fa20fb87c2c29608b33\",\"content_length\":675}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":false,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/0c477c5c-f01a-52ee-a62c-5255246547b6?length=654",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d39c8bb4fd3c75765adb260770aa4570fa798dd9e3c0e36cca4abaa79b11238e2194b695eaebdecf55c07f03082df2cecbdd5dd74a1522f39a80862778b2c289",+ "length": 654+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/244a14b2-b1c9-5d81-b516-7eb7bcb29d25?length=773",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "1c253574d7cb126fddea00b96a659f5d514337f73a06e6ed08764aa8709c8dbd0b9a53676928bb7fac9512f4a6d3e7f56f60bd784d97e7db77c8ac1784cfd027",+ "length": 773+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/412bf2c9-d9d2-5b35-b015-ae30c23f524f?length=719",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "03c5616164d82fe5c5b48eb64013dd938b85d7e93bc86a5a5c3d1a34fd3e3cd290ba2f179e35e561cc39a30049c05aa4f254d004fc42d3c3d5d4467a17e756bd",+ "length": 719+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/5c0f89cb-3e11-5072-996c-0ff8b49cd140?length=675",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "152e42ca158e73eddd369474d997d6ca9f3e2a9721e26f40a2a229bb8c14d3f6f4218261adfe1c65c737df21a4202f6d11e7d9788e660fa20fb87c2c29608b33",+ "length": 675+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/75bf4be6-9520-5714-9d32-ebfbf6ef840c?length=1464",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "0213869f9eb9f3cb08e652314bc09ec9e1fb770d0239d5a70a4966943f1a1bf0dee28f1ba8991c8ec66069affef00157a33c6b0eef951f6c529fad5ead3ddf70",+ "length": 1464+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/a0592776-65b8-5a9d-8c5c-881a8fb19930?length=2003",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "466a3dafa4f1351f84018632345c3cf4c2cf51f2705069a764bfd6ac65aa447cc2cd336f6ba55fc872a5046cfe29c5c2d21bf68811f3edaa1668283245a19b0f",+ "length": 2003+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/a266424d-7fd2-56c8-a114-4d1b3e98a47b?length=1421",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "ab409679c7af37a29661cec84ccf0127b310b59b7dd28ae2935a8b13c2a86c2da9856c648e016b0a2ed5cf2f51a2a5ac3aa7af6b3a478a9b0956596174a09520",+ "length": 1421+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/da2548a0-3a4a-5562-9442-aef7c507af35?length=6034",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "41583f28fcdb5d231b94f580dceafbef32d2448a2ad6ee23d790cb342aa7494e3c6c656ae94a1fd7587ae752ca4f141c04bbebc5c4b4bee1b76d2da05e4e5744",+ "length": 6034+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"0c477c5c-f01a-52ee-a62c-5255246547b6\":\"d39c8bb4fd3c75765adb260770aa4570fa798dd9e3c0e36cca4abaa79b11238e2194b695eaebdecf55c07f03082df2cecbdd5dd74a1522f39a80862778b2c289\",\"244a14b2-b1c9-5d81-b516-7eb7bcb29d25\":\"1c253574d7cb126fddea00b96a659f5d514337f73a06e6ed08764aa8709c8dbd0b9a53676928bb7fac9512f4a6d3e7f56f60bd784d97e7db77c8ac1784cfd027\",\"412bf2c9-d9d2-5b35-b015-ae30c23f524f\":\"03c5616164d82fe5c5b48eb64013dd938b85d7e93bc86a5a5c3d1a34fd3e3cd290ba2f179e35e561cc39a30049c05aa4f254d004fc42d3c3d5d4467a17e756bd\",\"5c0f89cb-3e11-5072-996c-0ff8b49cd140\":\"152e42ca158e73eddd369474d997d6ca9f3e2a9721e26f40a2a229bb8c14d3f6f4218261adfe1c65c737df21a4202f6d11e7d9788e660fa20fb87c2c29608b33\",\"75bf4be6-9520-5714-9d32-ebfbf6ef840c\":\"0213869f9eb9f3cb08e652314bc09ec9e1fb770d0239d5a70a4966943f1a1bf0dee28f1ba8991c8ec66069affef00157a33c6b0eef951f6c529fad5ead3ddf70\",\"a0592776-65b8-5a9d-8c5c-881a8fb19930\":\"466a3dafa4f1351f84018632345c3cf4c2cf51f2705069a764bfd6ac65aa447cc2cd336f6ba55fc872a5046cfe29c5c2d21bf68811f3edaa1668283245a19b0f\",\"a266424d-7fd2-56c8-a114-4d1b3e98a47b\":\"ab409679c7af37a29661cec84ccf0127b310b59b7dd28ae2935a8b13c2a86c2da9856c648e016b0a2ed5cf2f51a2a5ac3aa7af6b3a478a9b0956596174a09520\",\"da2548a0-3a4a-5562-9442-aef7c507af35\":\"41583f28fcdb5d231b94f580dceafbef32d2448a2ad6ee23d790cb342aa7494e3c6c656ae94a1fd7587ae752ca4f141c04bbebc5c4b4bee1b76d2da05e4e5744\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b912854e5ac8\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b912854e5ac8",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"mappings\":\"qTAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b909bcc83e83\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b909bcc83e83",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"mappings\":\"qTAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96661f92e937\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96661f92e937",+ "esbuild-cjs/index.cjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-9641d1b71a02\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-9641d1b71a02",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"qTAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96566ceee837\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96566ceee837",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"qTAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b92472346456\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=01a18076-fac6-7451-9926-b92472346456",+ "terser/badge.min.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"file\":\"badge.min.js\",\"mappings\":\"6WAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-963cb54bc5ec",+ "webpack/213.eef13598.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"oYAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-962a8c8c9b13",+ "webpack/main.24954514.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/golden/e2e/js-upload-symbol-set.json b/hog/test/parity/golden/e2e/js-upload-symbol-set.jsonnew file mode 100644index 000000000000..366711c6a1c0--- /dev/null+++ b/hog/test/parity/golden/e2e/js-upload-symbol-set.json@@ -0,0 +1,168 @@+{+ "exitCode": 0,+ "requests": [+ {+ "method": "GET",+ "path": "/api/projects/1/error_tracking/releases/hash/a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "status": 404+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/releases",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"hash_id\":\"a59184886017fd23032c5d7e8e23b3780be229599cc0d9416b3c0ef0fbdb0baa65af2fd905b59c37464ef7c4658c6fc0c0e57a24fca88541388041682ab9d97d\",\"version\":\"2.1.0\",\"project\":\"web\"}",+ "status": 201+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_check_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"d57559a03fbd4261ce4e3e24246bb416b7aee6937bbc38ff4ddca18dd53a31d894ee0cf2de0203e29e527c9ec29ca2ec5ef47481c2bce90133ec9c189f831780\",\"content_length\":6035},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"2b65bb7dcee7907dc6c53938bb081b894470879aad7c9987ba1f2564b3271f96f0da680cbd8d3158841a361c10dd68d151f299fb442cc3823efdbb127cc0f378\",\"content_length\":772},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"46f338e963271faebb5c1e84cb6bba611d7487651b93e937d85863d2354816a39bc63fc2bdf7379b565d19a7ea5d6e560d635df6ddf14eba602de16940367edd\",\"content_length\":1419},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"ef8257743ec6a87b4040a1ff47ba1b7066f14813ddd3723144298ab9a11decec553d769340e7646e37589cd5afe481141f2827db5499698beb926e89f3db3f90\",\"content_length\":717},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"3c3c5e6e10de71a1af29e005432bbfa9a0caff5e5e2632a48e7433d612063ca6866bd5bebfcc1b8fc798bb7e852f8e394dc81acd2d76dc16bf18b39e463d3dc8\",\"content_length\":2001},{\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"18568002e35a6f1711e70134ac25b225ec7edb8bc8cb15ce86322ded82b71b0e946786ce1f4036e6568c1881857d4b7a14b9d21f7a905a228010e49cf5e43430\",\"content_length\":1460},{\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"de62c315c811c3d31f66b4554ad0debe724864ca20fb726b5062b8e893f86d94fc3fc82a213183f5d955ab2d412dca5b81148f4adc77ca9c09e3f11fc1c06db5\",\"content_length\":653},{\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"58fe5f77c44ad93c74b4cc145cb71140f2e554274615be3295a99c590f77a0da7dcdb67ca2c4d524e3b448a764d33721c0c7f2e271af5d23a903247a0fc1b602\",\"content_length\":675}],\"force\":false,\"skip_on_conflict\":false}",+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_start_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"symbol_sets\":[{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"d57559a03fbd4261ce4e3e24246bb416b7aee6937bbc38ff4ddca18dd53a31d894ee0cf2de0203e29e527c9ec29ca2ec5ef47481c2bce90133ec9c189f831780\",\"content_length\":6035},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"2b65bb7dcee7907dc6c53938bb081b894470879aad7c9987ba1f2564b3271f96f0da680cbd8d3158841a361c10dd68d151f299fb442cc3823efdbb127cc0f378\",\"content_length\":772},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"46f338e963271faebb5c1e84cb6bba611d7487651b93e937d85863d2354816a39bc63fc2bdf7379b565d19a7ea5d6e560d635df6ddf14eba602de16940367edd\",\"content_length\":1419},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"ef8257743ec6a87b4040a1ff47ba1b7066f14813ddd3723144298ab9a11decec553d769340e7646e37589cd5afe481141f2827db5499698beb926e89f3db3f90\",\"content_length\":717},{\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"3c3c5e6e10de71a1af29e005432bbfa9a0caff5e5e2632a48e7433d612063ca6866bd5bebfcc1b8fc798bb7e852f8e394dc81acd2d76dc16bf18b39e463d3dc8\",\"content_length\":2001},{\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"18568002e35a6f1711e70134ac25b225ec7edb8bc8cb15ce86322ded82b71b0e946786ce1f4036e6568c1881857d4b7a14b9d21f7a905a228010e49cf5e43430\",\"content_length\":1460},{\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"de62c315c811c3d31f66b4554ad0debe724864ca20fb726b5062b8e893f86d94fc3fc82a213183f5d955ab2d412dca5b81148f4adc77ca9c09e3f11fc1c06db5\",\"content_length\":653},{\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"content_hash\":\"58fe5f77c44ad93c74b4cc145cb71140f2e554274615be3295a99c590f77a0da7dcdb67ca2c4d524e3b448a764d33721c0c7f2e271af5d23a903247a0fc1b602\",\"content_length\":675}],\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\",\"force\":false,\"skip_on_conflict\":false}",+ "status": 201+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/0c477c5c-f01a-52ee-a62c-5255246547b6?length=653",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "de62c315c811c3d31f66b4554ad0debe724864ca20fb726b5062b8e893f86d94fc3fc82a213183f5d955ab2d412dca5b81148f4adc77ca9c09e3f11fc1c06db5",+ "length": 653+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/244a14b2-b1c9-5d81-b516-7eb7bcb29d25?length=772",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "2b65bb7dcee7907dc6c53938bb081b894470879aad7c9987ba1f2564b3271f96f0da680cbd8d3158841a361c10dd68d151f299fb442cc3823efdbb127cc0f378",+ "length": 772+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/412bf2c9-d9d2-5b35-b015-ae30c23f524f?length=717",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "ef8257743ec6a87b4040a1ff47ba1b7066f14813ddd3723144298ab9a11decec553d769340e7646e37589cd5afe481141f2827db5499698beb926e89f3db3f90",+ "length": 717+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/5c0f89cb-3e11-5072-996c-0ff8b49cd140?length=675",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "58fe5f77c44ad93c74b4cc145cb71140f2e554274615be3295a99c590f77a0da7dcdb67ca2c4d524e3b448a764d33721c0c7f2e271af5d23a903247a0fc1b602",+ "length": 675+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/75bf4be6-9520-5714-9d32-ebfbf6ef840c?length=1460",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "18568002e35a6f1711e70134ac25b225ec7edb8bc8cb15ce86322ded82b71b0e946786ce1f4036e6568c1881857d4b7a14b9d21f7a905a228010e49cf5e43430",+ "length": 1460+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/a0592776-65b8-5a9d-8c5c-881a8fb19930?length=2001",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "3c3c5e6e10de71a1af29e005432bbfa9a0caff5e5e2632a48e7433d612063ca6866bd5bebfcc1b8fc798bb7e852f8e394dc81acd2d76dc16bf18b39e463d3dc8",+ "length": 2001+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/a266424d-7fd2-56c8-a114-4d1b3e98a47b?length=1419",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "46f338e963271faebb5c1e84cb6bba611d7487651b93e937d85863d2354816a39bc63fc2bdf7379b565d19a7ea5d6e560d635df6ddf14eba602de16940367edd",+ "length": 1419+ },+ "status": 200+ },+ {+ "method": "PUT",+ "path": "/s3/put/symbolsets/da2548a0-3a4a-5562-9442-aef7c507af35?length=6035",+ "headers": {+ "authorization": "<none>"+ },+ "upload": {+ "sha512": "d57559a03fbd4261ce4e3e24246bb416b7aee6937bbc38ff4ddca18dd53a31d894ee0cf2de0203e29e527c9ec29ca2ec5ef47481c2bce90133ec9c189f831780",+ "length": 6035+ },+ "status": 200+ },+ {+ "method": "POST",+ "path": "/api/projects/1/error_tracking/symbol_sets/bulk_finish_upload",+ "headers": {+ "authorization": "Bearer phx_<key>",+ "content-type": "application/json"+ },+ "body": "{\"content_hashes\":{\"0c477c5c-f01a-52ee-a62c-5255246547b6\":\"de62c315c811c3d31f66b4554ad0debe724864ca20fb726b5062b8e893f86d94fc3fc82a213183f5d955ab2d412dca5b81148f4adc77ca9c09e3f11fc1c06db5\",\"244a14b2-b1c9-5d81-b516-7eb7bcb29d25\":\"2b65bb7dcee7907dc6c53938bb081b894470879aad7c9987ba1f2564b3271f96f0da680cbd8d3158841a361c10dd68d151f299fb442cc3823efdbb127cc0f378\",\"412bf2c9-d9d2-5b35-b015-ae30c23f524f\":\"ef8257743ec6a87b4040a1ff47ba1b7066f14813ddd3723144298ab9a11decec553d769340e7646e37589cd5afe481141f2827db5499698beb926e89f3db3f90\",\"5c0f89cb-3e11-5072-996c-0ff8b49cd140\":\"58fe5f77c44ad93c74b4cc145cb71140f2e554274615be3295a99c590f77a0da7dcdb67ca2c4d524e3b448a764d33721c0c7f2e271af5d23a903247a0fc1b602\",\"75bf4be6-9520-5714-9d32-ebfbf6ef840c\":\"18568002e35a6f1711e70134ac25b225ec7edb8bc8cb15ce86322ded82b71b0e946786ce1f4036e6568c1881857d4b7a14b9d21f7a905a228010e49cf5e43430\",\"a0592776-65b8-5a9d-8c5c-881a8fb19930\":\"3c3c5e6e10de71a1af29e005432bbfa9a0caff5e5e2632a48e7433d612063ca6866bd5bebfcc1b8fc798bb7e852f8e394dc81acd2d76dc16bf18b39e463d3dc8\",\"a266424d-7fd2-56c8-a114-4d1b3e98a47b\":\"46f338e963271faebb5c1e84cb6bba611d7487651b93e937d85863d2354816a39bc63fc2bdf7379b565d19a7ea5d6e560d635df6ddf14eba602de16940367edd\",\"da2548a0-3a4a-5562-9442-aef7c507af35\":\"d57559a03fbd4261ce4e3e24246bb416b7aee6937bbc38ff4ddca18dd53a31d894ee0cf2de0203e29e527c9ec29ca2ec5ef47481c2bce90133ec9c189f831780\"},\"upload_attempt_id\":\"<attempt-1>\",\"upload_run_id\":\"<run>\"}",+ "status": 201+ }+ ],+ "files": {+ "esbuild/chunk-QCGVITVN.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b912854e5ac8\")}catch(e){}}();function e(r){if(!r)throw new Error(\"Missing product\");return[{productId:r,stars:5,text:\"Works as described\"}]}export{e as fetchReviews};\n//# sourceMappingURL=chunk-QCGVITVN.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b912854e5ac8",+ "esbuild/chunk-QCGVITVN.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b912854e5ac8\",\"mappings\":\"qTAAO,SAASA,EAAaC,EAAW,CACpC,GAAI,CAACA,EACD,MAAM,IAAI,MAAM,iBAAiB,EAErC,MAAO,CAAC,CAAE,UAAAA,EAAW,MAAO,EAAG,KAAM,oBAAqB,CAAC,CAC/D\",\"names\":[\"fetchReviews\",\"productId\"],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "esbuild/index-DLM2YCDD.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b909bcc83e83\")}catch(e){}}();function o(t){return`$${(t/100).toFixed(2)}`}function n(t){let r=Number.parseInt(t,10);if(Number.isNaN(r))throw new TypeError(`Invalid quantity: ${t}`);return r}function i(t){return JSON.stringify({kind:\"badge\",label:t,createdAt:\"\\xE9\\u65E5\\u{1F600}\"})}function f(t){let r=0;for(let e of t)r+=e.price*n(e.quantity);if(r<=0)throw new Error(\"Cart total must be positive\");return i(`Total: ${o(r)}`)}async function s(){let{fetchReviews:t}=await import(\"./chunk-QCGVITVN.js\");return t(\"example-product\")}export{f as checkout,s as loadReviews};\n//# sourceMappingURL=index-DLM2YCDD.js.map\n\n//# chunkId=01a18076-fac6-7451-9926-b909bcc83e83",+ "esbuild/index-DLM2YCDD.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b909bcc83e83\",\"mappings\":\"qTAAO,SAASA,EAAYC,EAAO,CAC/B,MAAO,KAAKA,EAAQ,KAAK,QAAQ,CAAC,CAAC,EACvC,CAEO,SAASC,EAAcC,EAAO,CACjC,IAAMC,EAAS,OAAO,SAASD,EAAO,EAAE,EACxC,GAAI,OAAO,MAAMC,CAAM,EACnB,MAAM,IAAI,UAAU,qBAAqBD,CAAK,EAAE,EAEpD,OAAOC,CACX,CCVO,SAASC,EAAYC,EAAO,CAE/B,OAAO,KAAK,UADE,CAAE,KAAM,QAAS,MAAAA,EAAO,UAAW,qBAAO,CAC7B,CAC/B,CCAO,SAASC,EAASC,EAAO,CAC5B,IAAIC,EAAQ,EACZ,QAAWC,KAAQF,EACfC,GAASC,EAAK,MAAQC,EAAcD,EAAK,QAAQ,EAErD,GAAID,GAAS,EACT,MAAM,IAAI,MAAM,6BAA6B,EAEjD,OAAOG,EAAY,UAAUC,EAAYJ,CAAK,CAAC,EAAE,CACrD,CAEA,eAAsBK,GAAc,CAChC,GAAM,CAAE,aAAAC,CAAa,EAAI,KAAM,QAAO,qBAAc,EACpD,OAAOA,EAAa,iBAAiB,CACzC\",\"names\":[\"formatPrice\",\"cents\",\"parseQuantity\",\"value\",\"parsed\",\"renderBadge\",\"label\",\"checkout\",\"items\",\"total\",\"item\",\"parseQuantity\",\"renderBadge\",\"formatPrice\",\"loadReviews\",\"fetchReviews\"],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "esbuild-cjs/index.cjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96661f92e937\")}catch(e){}}();var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esm = (fn, res, err) => function __init() {\n if (err) throw err[0];\n try {\n return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;\n } catch (e) {\n throw err = [e], e;\n }\n};\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/reviews.js\nvar reviews_exports = {};\n__export(reviews_exports, {\n fetchReviews: () => fetchReviews\n});\nfunction fetchReviews(productId) {\n if (!productId) {\n throw new Error(\"Missing product\");\n }\n return [{ productId, stars: 5, text: \"Works as described\" }];\n}\nvar init_reviews = __esm({\n \"src/reviews.js\"() {\n }\n});\n\n// src/index.js\nvar index_exports = {};\n__export(index_exports, {\n checkout: () => checkout,\n loadReviews: () => loadReviews\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// src/cart.js\nfunction formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`;\n}\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`);\n }\n return parsed;\n}\n\n// src/ui/badge.js\nfunction renderBadge(label) {\n const badge = { kind: \"badge\", label, createdAt: \"\\xE9\\u65E5\\u{1F600}\" };\n return JSON.stringify(badge);\n}\n\n// src/index.js\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error(\"Cart total must be positive\");\n }\n return renderBadge(`Total: ${formatPrice(total)}`);\n}\nasync function loadReviews() {\n const { fetchReviews: fetchReviews2 } = await Promise.resolve().then(() => (init_reviews(), reviews_exports));\n return fetchReviews2(\"example-product\");\n}\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96661f92e937",+ "esbuild-cjs/index.cjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96661f92e937\",\"mappings\":\";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,aAAa,WAAW;AACpC,MAAI,CAAC,WAAW;AACZ,UAAM,IAAI,MAAM,iBAAiB;AAAA,EACrC;AACA,SAAO,CAAC,EAAE,WAAW,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAC/D;AALA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,YAAY,OAAO;AAC/B,SAAO,KAAK,QAAQ,KAAK,QAAQ,CAAC,CAAC;AACvC;AAEO,SAAS,cAAc,OAAO;AACjC,QAAM,SAAS,OAAO,SAAS,OAAO,EAAE;AACxC,MAAI,OAAO,MAAM,MAAM,GAAG;AACtB,UAAM,IAAI,UAAU,qBAAqB,KAAK,EAAE;AAAA,EACpD;AACA,SAAO;AACX;;;ACVO,SAAS,YAAY,OAAO;AAC/B,QAAM,QAAQ,EAAE,MAAM,SAAS,OAAO,WAAW,sBAAO;AACxD,SAAO,KAAK,UAAU,KAAK;AAC/B;;;AFAO,SAAS,SAAS,OAAO;AAC5B,MAAI,QAAQ;AACZ,aAAW,QAAQ,OAAO;AACtB,aAAS,KAAK,QAAQ,cAAc,KAAK,QAAQ;AAAA,EACrD;AACA,MAAI,SAAS,GAAG;AACZ,UAAM,IAAI,MAAM,6BAA6B;AAAA,EACjD;AACA,SAAO,YAAY,UAAU,YAAY,KAAK,CAAC,EAAE;AACrD;AAEA,eAAsB,cAAc;AAChC,QAAM,EAAE,cAAAA,cAAa,IAAI,MAAM;AAC/B,SAAOA,cAAa,iBAAiB;AACzC\",\"names\":[\"fetchReviews\"],\"sources\":[\"../../src/reviews.js\",\"../../src/index.js\",\"../../src/cart.js\",\"../../src/ui/badge.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\",\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "rollup/index-W25VBdhh.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-9641d1b71a02\")}catch(e){}}();function formatPrice(cents) {\n return `$${(cents / 100).toFixed(2)}`\n}\n\nfunction parseQuantity(value) {\n const parsed = Number.parseInt(value, 10);\n if (Number.isNaN(parsed)) {\n throw new TypeError(`Invalid quantity: ${value}`)\n }\n return parsed\n}\n\nfunction renderBadge(label) {\n const badge = { kind: 'badge', label, createdAt: 'é日😀' };\n return JSON.stringify(badge)\n}\n\nfunction checkout(items) {\n let total = 0;\n for (const item of items) {\n total += item.price * parseQuantity(item.quantity);\n }\n if (total <= 0) {\n throw new Error('Cart total must be positive')\n }\n return renderBadge(`Total: ${formatPrice(total)}`)\n}\n\nasync function loadReviews() {\n const { fetchReviews } = await import('./reviews-nJfzDM_Q.mjs');\n return fetchReviews('example-product')\n}\n\nexport { checkout, loadReviews };\n//# debugId=b7e07b27-43b5-41de-9196-855306cb5e17\n//# sourceMappingURL=index-W25VBdhh.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-9641d1b71a02",+ "rollup/index-W25VBdhh.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-9641d1b71a02\",\"debugId\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"debug_id\":\"b7e07b27-43b5-41de-9196-855306cb5e17\",\"file\":\"index-W25VBdhh.mjs\",\"mappings\":\"qTAAO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AACxC;;AAEO,SAAS,aAAa,CAAC,KAAK,EAAE;AACrC,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE;AAC5C,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;AAC9B,QAAQ,MAAM,IAAI,SAAS,CAAC,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AACxD,IAAI;AACJ,IAAI,OAAO;AACX;;ACVO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM;AAC3D,IAAI,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK;AAC/B;;ACAO,SAAS,QAAQ,CAAC,KAAK,EAAE;AAChC,IAAI,IAAI,KAAK,GAAG;AAChB,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AAC9B,QAAQ,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,QAAQ;AACzD,IAAI;AACJ,IAAI,IAAI,KAAK,IAAI,CAAC,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,6BAA6B;AACrD,IAAI;AACJ,IAAI,OAAO,WAAW,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACrD;;AAEO,eAAe,WAAW,GAAG;AACpC,IAAI,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,wBAAc;AACxD,IAAI,OAAO,YAAY,CAAC,iBAAiB;AACzC\",\"names\":[],\"sources\":[\"../../src/cart.js\",\"../../src/ui/badge.js\",\"../../src/index.js\"],\"sourcesContent\":[\"export function formatPrice(cents) {\\n return `$${(cents / 100).toFixed(2)}`\\n}\\n\\nexport function parseQuantity(value) {\\n const parsed = Number.parseInt(value, 10)\\n if (Number.isNaN(parsed)) {\\n throw new TypeError(`Invalid quantity: ${value}`)\\n }\\n return parsed\\n}\\n\",\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\",\"import { formatPrice, parseQuantity } from './cart.js'\\nimport { renderBadge } from './ui/badge.js'\\n\\nexport function checkout(items) {\\n let total = 0\\n for (const item of items) {\\n total += item.price * parseQuantity(item.quantity)\\n }\\n if (total <= 0) {\\n throw new Error('Cart total must be positive')\\n }\\n return renderBadge(`Total: ${formatPrice(total)}`)\\n}\\n\\nexport async function loadReviews() {\\n const { fetchReviews } = await import('./reviews.js')\\n return fetchReviews('example-product')\\n}\\n\"],\"version\":3}",+ "rollup/reviews-nJfzDM_Q.mjs": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-96566ceee837\")}catch(e){}}();function fetchReviews(productId) {\n if (!productId) {\n throw new Error('Missing product')\n }\n return [{ productId, stars: 5, text: 'Works as described' }]\n}\n\nexport { fetchReviews };\n//# debugId=8e45a01c-ff78-471a-87d3-ba56f7ab4c31\n//# sourceMappingURL=reviews-nJfzDM_Q.mjs.map\n\n//# chunkId=01a18076-fac5-7b13-8bc8-96566ceee837",+ "rollup/reviews-nJfzDM_Q.mjs.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-96566ceee837\",\"debugId\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"debug_id\":\"8e45a01c-ff78-471a-87d3-ba56f7ab4c31\",\"file\":\"reviews-nJfzDM_Q.mjs\",\"mappings\":\"qTAAO,SAAS,YAAY,CAAC,SAAS,EAAE;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE;AACpB,QAAQ,MAAM,IAAI,KAAK,CAAC,iBAAiB;AACzC,IAAI;AACJ,IAAI,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE;AAC/D\",\"names\":[],\"sources\":[\"../../src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "terser/badge.min.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac6-7451-9926-b92472346456\")}catch(e){}}();var Badge=function(e){\"use strict\";return e.renderBadge=function(e){const n={kind:\"badge\",label:e,createdAt:\"é日😀\"};return JSON.stringify(n)},e}({});\n//# sourceMappingURL=badge.min.js.map\n//# chunkId=01a18076-fac6-7451-9926-b92472346456",+ "terser/badge.min.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac6-7451-9926-b92472346456\",\"file\":\"badge.min.js\",\"mappings\":\"6WAAO,SAAqBA,GACxB,MAAMC,EAAQ,CAAEC,KAAM,QAASF,QAAOG,UAAW,QACjD,OAAOC,KAAKC,UAAUJ,EAC1B,E\",\"names\":[\"label\",\"badge\",\"kind\",\"createdAt\",\"JSON\",\"stringify\"],\"sources\":[\"src/ui/badge.js\"],\"sourcesContent\":[\"export function renderBadge(label) {\\n const badge = { kind: 'badge', label, createdAt: 'é日😀' }\\n return JSON.stringify(badge)\\n}\\n\"],\"version\":3}",+ "webpack/213.eef13598.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\")}catch(e){}}();\"use strict\";(self.webpackChunk=self.webpackChunk||[]).push([[213],{213(e,s,r){function t(e){if(!e)throw new Error(\"Missing product\");return[{productId:e,stars:5,text:\"Works as described\"}]}r.d(s,{fetchReviews:()=>t})}}]);\n//# debugId=eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\n//# sourceMappingURL=213.eef13598.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-963cb54bc5ec",+ "webpack/213.eef13598.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-963cb54bc5ec\",\"debugId\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"debug_id\":\"eaaf9a0d-6c5a-4568-a743-6f4fa42549a4\",\"file\":\"213.eef13598.js\",\"mappings\":\"oYAAO,SAAAA,EAAAC,GACP,IAAAA,EACA,UAAAC,MAAA,mBAEA,QAAcD,YAAAE,MAAA,EAAAC,KAAA,sBACd\",\"names\":[\"fetchReviews\",\"productId\",\"Error\",\"stars\",\"text\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///./src/reviews.js\"],\"sourcesContent\":[\"export function fetchReviews(productId) {\\n if (!productId) {\\n throw new Error('Missing product')\\n }\\n return [{ productId, stars: 5, text: 'Works as described' }]\\n}\\n\"],\"version\":3}",+ "webpack/main.24954514.js": "utf8:!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]=\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\")}catch(e){}}();(()=>{\"use strict\";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.m=r,o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>e+\".eef13598.js\",o.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},o.l=(r,t,n,a)=>{if(e[r])e[r].push(t);else{var i,c;if(void 0!==n)for(var s=document.getElementsByTagName(\"script\"),l=0;l<s.length;l++){var u=s[l];if(u.getAttribute(\"src\")==r){i=u;break}}i||(c=!0,(i=document.createElement(\"script\")).charset=\"utf-8\",o.nc&&i.setAttribute(\"nonce\",o.nc),i.src=r),e[r]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(e=>e(o)),t)return t(o)},f=setTimeout(p.bind(null,void 0,{type:\"timeout\",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),c&&document.head.appendChild(i)}},(()=>{var e;o.g.importScripts&&(e=o.g.location+\"\");var r=o.g.document;if(!e&&r&&(r.currentScript&&\"SCRIPT\"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName(\"script\");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error(\"Automatic publicPath is not supported in this browser\");e=e.replace(/^blob:/,\"\").replace(/#.*$/,\"\").replace(/\\?.*$/,\"\").replace(/\\/[^\\/]+$/,\"/\"),o.p=e})(),(()=>{var e={792:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=a);var i=o.p+o.u(r),c=new Error;o.l(i,t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&(\"load\"===t.type?\"missing\":t.type),i=t&&t.target&&t.target.src;c.message=\"Loading chunk \"+r+\" failed.\\n(\"+a+\": \"+i+\")\",c.name=\"ChunkLoadError\",c.type=a,c.request=i,n[1](c)}},\"chunk-\"+r,r)}};var r=(r,t)=>{var n,a,[i,c,s]=t,l=0;if(i.some(r=>0!==e[r])){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);s&&s(o)}for(r&&r(t);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();\n//# debugId=d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\n//# sourceMappingURL=main.24954514.js.map\n//# chunkId=01a18076-fac5-7b13-8bc8-962a8c8c9b13",+ "webpack/main.24954514.js.map": "utf8:{\"release_id\":\"e7ccdce0-e172-5444-b00e-bec22162f00f\",\"chunk_id\":\"01a18076-fac5-7b13-8bc8-962a8c8c9b13\",\"debugId\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"debug_id\":\"d56106a8-57e0-4c45-909c-5a8d8c4a9cc3\",\"file\":\"main.24954514.js\",\"mappings\":\"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\",\"names\":[\"inProgress\",\"__webpack_module_cache__\",\"__webpack_require__\",\"moduleId\",\"cachedModule\",\"undefined\",\"exports\",\"module\",\"__webpack_modules__\",\"m\",\"d\",\"definition\",\"key\",\"o\",\"Object\",\"defineProperty\",\"enumerable\",\"get\",\"f\",\"e\",\"chunkId\",\"Promise\",\"all\",\"keys\",\"reduce\",\"promises\",\"u\",\"g\",\"globalThis\",\"this\",\"Function\",\"window\",\"obj\",\"prop\",\"prototype\",\"hasOwnProperty\",\"call\",\"l\",\"url\",\"done\",\"push\",\"script\",\"needAttach\",\"scripts\",\"document\",\"getElementsByTagName\",\"i\",\"length\",\"s\",\"getAttribute\",\"createElement\",\"charset\",\"nc\",\"setAttribute\",\"src\",\"onScriptComplete\",\"prev\",\"event\",\"onerror\",\"onload\",\"clearTimeout\",\"timeout\",\"doneFns\",\"parentNode\",\"removeChild\",\"forEach\",\"fn\",\"setTimeout\",\"bind\",\"type\",\"target\",\"head\",\"appendChild\",\"scriptUrl\",\"importScripts\",\"location\",\"currentScript\",\"tagName\",\"toUpperCase\",\"test\",\"Error\",\"replace\",\"p\",\"installedChunks\",\"j\",\"installedChunkData\",\"promise\",\"resolve\",\"reject\",\"error\",\"errorType\",\"realSrc\",\"message\",\"name\",\"request\",\"webpackJsonpCallback\",\"parentChunkLoadingFunction\",\"data\",\"chunkIds\",\"moreModules\",\"runtime\",\"some\",\"id\",\"chunkLoadingGlobal\",\"self\"],\"sourceRoot\":\"\",\"sources\":[\"webpack:///webpack/runtime/load script\",\"webpack:///webpack/bootstrap\",\"webpack:///webpack/runtime/define property getters\",\"webpack:///webpack/runtime/ensure chunk\",\"webpack:///webpack/runtime/get javascript chunk filename\",\"webpack:///webpack/runtime/global\",\"webpack:///webpack/runtime/hasOwnProperty shorthand\",\"webpack:///webpack/runtime/publicPath\",\"webpack:///webpack/runtime/jsonp chunk loading\"],\"sourcesContent\":[\"var inProgress = {};\\n// data-webpack is not used as build has no uniqueName\\n// loadScript function to load a script via script tag\\n__webpack_require__.l = (url, done, key, chunkId) => {\\n\\tif(inProgress[url]) { inProgress[url].push(done); return; }\\n\\tvar script, needAttach;\\n\\tif(key !== undefined) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tfor(var i = 0; i < scripts.length; i++) {\\n\\t\\t\\tvar s = scripts[i];\\n\\t\\t\\tif(s.getAttribute(\\\"src\\\") == url) { script = s; break; }\\n\\t\\t}\\n\\t}\\n\\tif(!script) {\\n\\t\\tneedAttach = true;\\n\\t\\tscript = document.createElement('script');\\n\\n\\t\\tscript.charset = 'utf-8';\\n\\t\\tif (__webpack_require__.nc) {\\n\\t\\t\\tscript.setAttribute(\\\"nonce\\\", __webpack_require__.nc);\\n\\t\\t}\\n\\n\\n\\t\\tscript.src = url;\\n\\t}\\n\\tinProgress[url] = [done];\\n\\tvar onScriptComplete = (prev, event) => {\\n\\t\\t// avoid mem leaks in IE.\\n\\t\\tscript.onerror = script.onload = null;\\n\\t\\tclearTimeout(timeout);\\n\\t\\tvar doneFns = inProgress[url];\\n\\t\\tdelete inProgress[url];\\n\\t\\tscript.parentNode && script.parentNode.removeChild(script);\\n\\t\\tdoneFns && doneFns.forEach((fn) => (fn(event)));\\n\\t\\tif(prev) return prev(event);\\n\\t}\\n\\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\\n\\tscript.onerror = onScriptComplete.bind(null, script.onerror);\\n\\tscript.onload = onScriptComplete.bind(null, script.onload);\\n\\tneedAttach && document.head.appendChild(script);\\n};\",\"// The module cache\\nvar __webpack_module_cache__ = {};\\n\\n// The require function\\nfunction __webpack_require__(moduleId) {\\n\\t// Check if module is in cache\\n\\tvar cachedModule = __webpack_module_cache__[moduleId];\\n\\tif (cachedModule !== undefined) {\\n\\t\\treturn cachedModule.exports;\\n\\t}\\n\\t// Create a new module (and put it into the cache)\\n\\tvar module = __webpack_module_cache__[moduleId] = {\\n\\t\\t// no module.id needed\\n\\t\\t// no module.loaded needed\\n\\t\\texports: {}\\n\\t};\\n\\n\\t// Execute the module function\\n\\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\\n\\n\\t// Return the exports of the module\\n\\treturn module.exports;\\n}\\n\\n// expose the modules object (__webpack_modules__)\\n__webpack_require__.m = __webpack_modules__;\\n\\n\",\"// define getter functions for harmony exports\\n__webpack_require__.d = (exports, definition) => {\\n\\tfor(var key in definition) {\\n\\t\\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\\n\\t\\t\\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\\n\\t\\t}\\n\\t}\\n};\",\"__webpack_require__.f = {};\\n// This file contains only the entry chunk.\\n// The chunk loading function for additional chunks\\n__webpack_require__.e = (chunkId) => {\\n\\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\\n\\t\\t__webpack_require__.f[key](chunkId, promises);\\n\\t\\treturn promises;\\n\\t}, []));\\n};\",\"// This function allow to reference async chunks\\n__webpack_require__.u = (chunkId) => {\\n\\t// return url for filenames based on template\\n\\treturn \\\"\\\" + chunkId + \\\".\\\" + \\\"eef13598\\\" + \\\".js\\\";\\n};\",\"__webpack_require__.g = (function() {\\n\\tif (typeof globalThis === 'object') return globalThis;\\n\\ttry {\\n\\t\\treturn this || new Function('return this')();\\n\\t} catch (e) {\\n\\t\\tif (typeof window === 'object') return window;\\n\\t}\\n})();\",\"__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\",\"var scriptUrl;\\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \\\"\\\";\\nvar document = __webpack_require__.g.document;\\nif (!scriptUrl && document) {\\n\\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\\n\\t\\tscriptUrl = document.currentScript.src;\\n\\tif (!scriptUrl) {\\n\\t\\tvar scripts = document.getElementsByTagName(\\\"script\\\");\\n\\t\\tif(scripts.length) {\\n\\t\\t\\tvar i = scripts.length - 1;\\n\\t\\t\\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\\n\\t\\t}\\n\\t}\\n}\\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\\n// or pass an empty string (\\\"\\\") and set the __webpack_public_path__ variable from your code to use your own logic.\\nif (!scriptUrl) throw new Error(\\\"Automatic publicPath is not supported in this browser\\\");\\nscriptUrl = scriptUrl.replace(/^blob:/, \\\"\\\").replace(/#.*$/, \\\"\\\").replace(/\\\\?.*$/, \\\"\\\").replace(/\\\\/[^\\\\/]+$/, \\\"/\\\");\\n__webpack_require__.p = scriptUrl;\",\"// no baseURI\\n\\n// object to store loaded and loading chunks\\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\\nvar installedChunks = {\\n\\t792: 0\\n};\\n\\n__webpack_require__.f.j = (chunkId, promises) => {\\n\\t\\t// JSONP chunk loading for javascript\\n\\t\\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\\n\\t\\tif(installedChunkData !== 0) { // 0 means \\\"already installed\\\".\\n\\n\\t\\t\\t// a Promise means \\\"currently loading\\\".\\n\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\tpromises.push(installedChunkData[2]);\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif(true) { // all chunks have JS\\n\\t\\t\\t\\t\\t// setup Promise in chunk cache\\n\\t\\t\\t\\t\\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\\n\\t\\t\\t\\t\\tpromises.push(installedChunkData[2] = promise);\\n\\n\\t\\t\\t\\t\\t// start chunk loading\\n\\t\\t\\t\\t\\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\\n\\t\\t\\t\\t\\t// create error before stack unwound to get useful stacktrace later\\n\\t\\t\\t\\t\\tvar error = new Error();\\n\\t\\t\\t\\t\\tvar loadingEnded = (event) => {\\n\\t\\t\\t\\t\\t\\tif(__webpack_require__.o(installedChunks, chunkId)) {\\n\\t\\t\\t\\t\\t\\t\\tinstalledChunkData = installedChunks[chunkId];\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\\n\\t\\t\\t\\t\\t\\t\\tif(installedChunkData) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\\n\\t\\t\\t\\t\\t\\t\\t\\tvar realSrc = event && event.target && event.target.src;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.message = 'Loading chunk ' + chunkId + ' failed.\\\\n(' + errorType + ': ' + realSrc + ')';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.name = 'ChunkLoadError';\\n\\t\\t\\t\\t\\t\\t\\t\\terror.type = errorType;\\n\\t\\t\\t\\t\\t\\t\\t\\terror.request = realSrc;\\n\\t\\t\\t\\t\\t\\t\\t\\tinstalledChunkData[1](error);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t};\\n\\t\\t\\t\\t\\t__webpack_require__.l(url, loadingEnded, \\\"chunk-\\\" + chunkId, chunkId);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n};\\n\\n// no prefetching\\n\\n// no preloaded\\n\\n// no HMR\\n\\n// no HMR manifest\\n\\n// no on chunks loaded\\n\\n// install a JSONP callback for chunk loading\\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\\n\\tvar [chunkIds, moreModules, runtime] = data;\\n\\t// add \\\"moreModules\\\" to the modules object,\\n\\t// then flag all \\\"chunkIds\\\" as loaded and fire callback\\n\\tvar moduleId, chunkId, i = 0;\\n\\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\\n\\t\\tfor(moduleId in moreModules) {\\n\\t\\t\\tif(__webpack_require__.o(moreModules, moduleId)) {\\n\\t\\t\\t\\t__webpack_require__.m[moduleId] = moreModules[moduleId];\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif(runtime) var result = runtime(__webpack_require__);\\n\\t}\\n\\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\\n\\tfor(;i < chunkIds.length; i++) {\\n\\t\\tchunkId = chunkIds[i];\\n\\t\\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\\n\\t\\t\\tinstalledChunks[chunkId][0]();\\n\\t\\t}\\n\\t\\tinstalledChunks[chunkId] = 0;\\n\\t}\\n\\n}\\n\\nvar chunkLoadingGlobal = self[\\\"webpackChunk\\\"] = self[\\\"webpackChunk\\\"] || [];\\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));\"],\"version\":3}"+ }+}diff --git a/hog/test/parity/js-fixtures.ts b/hog/test/parity/js-fixtures.tsnew file mode 100644index 000000000000..b696bfffd167--- /dev/null+++ b/hog/test/parity/js-fixtures.ts@@ -0,0 +1,148 @@+import { readdirSync, readFileSync } from 'node:fs'+import { join, relative } from 'node:path'++// JavaScript bundles and maps for the parity scenarios. Each case sits in its own folder, because+// posthog-cli walks folders in file-system order, and only cases with one bundle per folder give+// the same result on every machine.++const map = (fields: Record<string, unknown> = {}): string =>+ JSON.stringify({ version: 3, sources: ['src/a.ts'], names: [], mappings: 'AAAA', ...fields })++const ref = (name: string): string => `\n//# sourceMappingURL=${name}`++const DEBUG_ID = '11111111-2222-4333-8444-555555555555'++// Edge cases from the posthog-cli source: line endings, map lookup, map field types and numbers.+export const EDGE_CASES: Record<string, string | Uint8Array> = {+ 'nonl/a.js': `a();\nb();${ref('a.js.map')}`,+ 'nonl/a.js.map': map({ mappings: 'AAAA,EAAE;AACA;AACA;AACA', sourcesContent: ['x'] }),+ 'crlf/a.js': 'a();\r\nb();\r\n//# sourceMappingURL=a.js.map\r\n',+ 'crlf/a.js.map': map({ mappings: 'AAAA;AACA' }),+ 'bom/a.js': `\uFEFFa();${ref('a.js.map')}\n`,+ 'bom/a.js.map': map({ mappings: 'CAAA' }),+ 'sibling/a.js': 'a();\n',+ 'sibling/a.js.map': map(),+ 'encoded/sub/a.js': `a();${ref('../maps/my%20map.js.map')}\n`,+ 'encoded/maps/my map.js.map': map({ file: 'a.js' }),+ 'inline/a.js': `a();${ref(`data:application/json;base64,${Buffer.from(map()).toString('base64')}`)}\n`,+ 'nomap/a.js': 'a();\n',+ 'mjs/a.mjs': `a();${ref('a.mjs.map')}\n`,+ 'mjs/a.mjs.map': map(),+ 'cjs/a.cjs': 'a();\n',+ 'cjs/a.cjs.map': map(),+ 'jsx/a.jsx': 'a();\n',+ 'jsx/a.jsx.map': map(),+ 'dotfile/.js': 'a();\n',+ 'dotfile/.js.map': map(),+ 'legacy/a.js': 'a();\n//@ sourceMappingURL=a.js.map\n',+ 'legacy/a.js.map': JSON.stringify({+ version: 3,+ sources: ['a'],+ names: [],+ mappings: 'AAAA',+ chunkId: 'aaaaaaaa-0000-4000-8000-000000000000',+ }),+ 'debugid/a.js': `a();\n//# debugId=${DEBUG_ID}${ref('a.js.map')}\n`,+ 'debugid/a.js.map': map({ debugId: DEBUG_ID.toUpperCase() }),+ 'debugid-simple/a.js': 'a();\n//# debugId=1111111122224333844455555555555F\n//# sourceMappingURL=a.js.map\n',+ 'debugid-simple/a.js.map': map(),+ 'debugid-malformed-source/a.js': `a();\n//# debugId=not-a-uuid${ref('a.js.map')}\n`,+ 'debugid-malformed-source/a.js.map': map(),+ 'index-map/a.js': `a();\nb();${ref('a.js.map')}\n`,+ 'index-map/a.js.map': JSON.stringify({+ version: 3,+ file: 'a.js',+ sources: [],+ x_custom: 1,+ sections: [+ {+ offset: { line: 0, column: 0 },+ map: {+ version: 3,+ sources: ['one.ts'],+ sourceRoot: 'webpack://',+ names: ['n'],+ mappings: 'AAAAA',+ sourcesContent: ['one'],+ },+ },+ {+ offset: { line: 1, column: 2 },+ map: { version: 3, sources: ['two.ts', 'one.ts'], names: ['n'], mappings: 'AAAAA,CCAA' },+ },+ ],+ }),+ // Written by hand: floats, big numbers, escapes and key order JSON.stringify would change.+ 'fields/a.js': `abc();${ref('a.js.map')}\n`,+ 'fields/a.js.map':+ '{"version":3,"sourceRoot":"/root/","sources":[null,"b.ts"],"names":[1,null,"x",2.5],"mappings":"AAAAA,CCAAC,CAAAC","x_google_ignoreList":[1],"ignoreList":[1,1,0],"x_float":1.0,"x_big":1e21,"x_neg0":-0.0,"x_small":1e-7,"x_huge":18446744073709551615,"x_neg":-9223372036854775808,"x_unicode":"\\u00e9\\u2028/\\/\\u0001","file":42,"sourcesContent":[null,null,"extra"]}',+ 'empty-small/a.js': `a();${ref('a.js.map')}\n`,+ 'empty-small/a.js.map': JSON.stringify({ version: 3, sources: [], names: [], mappings: '' }),+ 'empty-large/a.js': `${'a();'.repeat(600)}${ref('a.js.map')}\n`,+ 'empty-large/a.js.map': JSON.stringify({ version: 3, sources: [], names: [], mappings: '' }),+ 'xssi/a.js': `a();${ref('a.js.map')}\n`,+ 'xssi/a.js.map': `)]}'\n${map()}`,+ 'latin1/a.js': Buffer.from(`a('\xe9');${ref('a.js.map')}\n`, 'latin1'),+ 'latin1/a.js.map': map(),+ 'empty-source/a.js': '',+ 'empty-source/a.js.map': map({ mappings: '' }),+ 'multibyte/a.js': `var s='é日😀';f();${ref('a.js.map')}\n`,+ 'multibyte/a.js.map': map({ mappings: 'AAAA,UAAU,QAAQ' }),+ 'facebook/a.js': `a();${ref('a.js.map')}\n`,+ 'facebook/a.js.map': map({ x_facebook_sources: [[{ names: ['<global>'], mappings: 'AAA' }]] }),+ 'file-paths/a.js': `import("./one-BrAf3own.js");x.js.map;${ref('a.js.map')}\n`,+ 'file-paths/a.js.map': map({ file: 'https://cdn.example.com/a/b-X_1.mjs' }),+ 'reference-not-last/a.js': `a();${ref('a.js.map')}\nb();\n`,+ 'reference-not-last/a.js.map': map({ mappings: 'AAAA;AACA' }),+}++// A map whose debugId is not a UUID fails the whole posthog-cli run before any file is written.+export const MALFORMED_MAP_DEBUG_ID: Record<string, string> = {+ 'ok/a.js': `a();${ref('a.js.map')}\n`,+ 'ok/a.js.map': map(),+ 'bad/a.js': `a();${ref('a.js.map')}\n`,+ 'bad/a.js.map': map({ debugId: 'not-a-uuid' }),+}++export const PUBLIC_PATH: Record<string, string> = {+ 'static/js/a.js': `a();${ref('/static/js/a.js.map')}\n`,+ 'static/js/a.js.map': map(),+}++export const STYLESHEETS: Record<string, string> = {+ 'dist/a.js': `a();${ref('a.js.map')}\n`,+ 'dist/a.js.map': map(),+ 'dist/site.css': '.a{color:red}\n/*# sourceMappingURL=site.css.map */\n',+ 'dist/site.css.map': map({ sources: ['site.scss'] }),+ 'dist/inline.css': '.b{} /*# sourceMappingURL=inline.css.map */ .c{}\n',+ 'dist/inline.css.map': map({ sources: ['inline.scss'] }),+}++// Stylesheets whose reference doesn't name the map directly: a CDN URL that --public-path-prefix+// strips, and a stale name that falls back to the map next to the stylesheet.+export const STYLESHEET_LOOKUP: Record<string, string> = {+ 'dist/a.js': `a();${ref('a.js.map')}\n`,+ 'dist/a.js.map': map(),+ 'dist/cdn.css': '.a{}\n/*# sourceMappingURL=https://cdn.example.com/assets/cdn.css.map */\n',+ 'dist/cdn.css.map': map({ sources: ['cdn.scss'] }),+ 'dist/stale.css': '.b{}\n/*# sourceMappingURL=stale.0f3a.css.map */\n',+ 'dist/stale.css.map': map({ sources: ['stale.scss'] }),+}++// Real bundler output, built from the small app in bundles/README.md.+export function bundles(): Record<string, Uint8Array> {+ const root = join(import.meta.dir, 'bundles')+ const files: Record<string, Uint8Array> = {}+ const visit = (folder: string): void => {+ for (const entry of readdirSync(folder, { withFileTypes: true })) {+ const path = join(folder, entry.name)+ if (entry.isDirectory()) {+ visit(path)+ } else if (entry.name !== 'README.md') {+ files[relative(root, path)] = readFileSync(path)+ }+ }+ }+ visit(root)+ return files+}diff --git a/hog/test/parity/normalize.ts b/hog/test/parity/normalize.tsindex 0ec9809eb955..db39d40b90ff 100644--- a/hog/test/parity/normalize.ts+++ b/hog/test/parity/normalize.ts@@ -3,7 +3,8 @@ import type { RecordedRequest } from './fake-server'// Rewrites only what is random by design, so the rest can be compared byte for byte:// - upload run and attempt ids (UUIDv7) become <run> and <attempt-n>,// - the keys of `content_hashes` and release `metadata`, which Rust writes in HashMap order, are sorted,-// - object-storage uploads inside one batch are sorted by path, because they run in parallel,+// - `symbol_sets` lists are sorted by chunk id, because posthog-cli walks folders in file-system order,+// - object-storage uploads inside one batch are sorted by path and object key, because they run in parallel,// - the multipart boundary, the user agent and object-storage headers are dropped.// The user agent differs on purpose: hog sends `hog/<version>`, posthog-cli sends `posthog-cli`.export interface NormalizedRequest {@@ -48,6 +49,11 @@ export function normalize(requests: RecordedRequest[]): NormalizedRequest[] {if (parsed.content_hashes && typeof parsed.content_hashes === 'object') {parsed.content_hashes = sortKeys(parsed.content_hashes as Record<string, unknown>)}+ if (Array.isArray(parsed.symbol_sets)) {+ parsed.symbol_sets = [...(parsed.symbol_sets as { chunk_id: string }[])].sort((a, b) =>+ a.chunk_id < b.chunk_id ? -1 : 1+ )+ }if (parsed.metadata && typeof parsed.metadata === 'object') {parsed.metadata = sortKeys(parsed.metadata as Record<string, unknown>)}@@ -74,7 +80,8 @@ export function normalize(requests: RecordedRequest[]): NormalizedRequest[] {while (end < out.length && out[end]!.path.startsWith('/s3/')) {end++}- out.splice(start, end - start, ...out.slice(start, end).sort((a, b) => (a.path < b.path ? -1 : 1)))+ const order = (request: NormalizedRequest): string => `${request.path} ${request.upload?.fields?.key ?? ''}`+ out.splice(start, end - start, ...out.slice(start, end).sort((a, b) => (order(a) < order(b) ? -1 : 1)))start = end}return outdiff --git a/hog/test/parity/run.ts b/hog/test/parity/run.tsindex 303edc48decf..a569de1e96ba 100644--- a/hog/test/parity/run.ts+++ b/hog/test/parity/run.ts@@ -1,6 +1,6 @@-import { mkdtempSync, rmSync } from 'node:fs'+import { mkdtempSync, readdirSync, readFileSync, rmSync } from 'node:fs'import { tmpdir } from 'node:os'-import { join } from 'node:path'+import { join, relative } from 'node:path'import { run } from '@/cli'import { processRuntime } from '@/core/runtime'@@ -13,6 +13,8 @@ import type { ParityScenario } from './scenarios'export interface ParityResult {exitCode: numberrequests: NormalizedRequest[]+ // Every file in the folder after the run, for scenarios that rewrite files.+ files?: Record<string, string>}function environment(serverUrl: string, home: string): Record<string, string> {@@ -26,44 +28,111 @@ function environment(serverUrl: string, home: string): Record<string, string> {}}+const strictUtf8 = new TextDecoder('utf-8', { fatal: true })++// Text files stay readable in the golden, so a diff shows what changed. Other bytes are base64.+export function encodeFile(bytes: Uint8Array): string {+ try {+ return `utf8:${strictUtf8.decode(bytes)}`+ } catch {+ return `base64:${Buffer.from(bytes).toString('base64')}`+ }+}++export function decodeFile(text: string): Uint8Array {+ return text.startsWith('utf8:') ? Buffer.from(text.slice(5), 'utf8') : Buffer.from(text.slice(7), 'base64')+}++function snapshot(folder: string): Record<string, string> {+ const files: Record<string, string> = {}+ const visit = (path: string): void => {+ for (const entry of readdirSync(path, { withFileTypes: true }).sort((a, b) => (a.name < b.name ? -1 : 1))) {+ const full = join(path, entry.name)+ if (entry.isDirectory() && entry.name !== '.git') {+ visit(full)+ } else if (entry.isFile()) {+ files[relative(folder, full)] = encodeFile(readFileSync(full))+ }+ }+ }+ visit(folder)+ return files+}++async function invoke(+ args: string[],+ cli: { rust: string } | 'hog',+ folder: string,+ env: Record<string, string>+): Promise<number> {+ if (cli === 'hog') {+ const runtime = {+ ...processRuntime(),+ env,+ cwd: () => folder,+ stdinIsTTY: false,+ stdoutIsTTY: false,+ stdoutHasColors: false,+ writeStdout: () => {},+ writeStderr: () => {},+ // Retry delays don't change what is sent, so tests skip them.+ sleep: async () => {},+ }+ return run(args, runtime)+ }+ const child = Bun.spawn([cli.rust, ...args], {+ cwd: folder,+ env: { PATH: process.env.PATH ?? '', ...env },+ stdout: 'pipe',+ stderr: 'pipe',+ })+ return child.exited+}+export async function runScenario(scenario: ParityScenario, cli: { rust: string } | 'hog'): Promise<ParityResult> {const folder = mkdtempSync(join(tmpdir(), 'hog-parity-'))const home = mkdtempSync(join(tmpdir(), 'hog-parity-home-'))- write(folder, scenario.files)+ write(folder, scenario.files())const server = startFakeServer(scenario.server)try {+ const env = environment(server.url, home)+ for (const step of scenario.before ?? []) {+ await invoke(cli === 'hog' ? step.hog : step.rust, cli, folder, env)+ }let exitCode = 0for (let index = 0; index < (scenario.runs ?? 1); index++) {server.requests.length = 0- const env = environment(server.url, home)- if (cli === 'hog') {- const runtime = {- ...processRuntime(),- env,- cwd: () => folder,- stdinIsTTY: false,- stdoutIsTTY: false,- stdoutHasColors: false,- writeStdout: () => {},- writeStderr: () => {},- // Retry delays don't change what is sent, so tests skip them.- sleep: async () => {},- }- exitCode = await run(scenario.hog, runtime)- } else {- const child = Bun.spawn([cli.rust, ...scenario.rust], {- cwd: folder,- env: { PATH: process.env.PATH ?? '', ...env },- stdout: 'pipe',- stderr: 'pipe',- })- exitCode = await child.exited- }+ exitCode = await invoke(cli === 'hog' ? scenario.hog : scenario.rust, cli, folder, env)+ }+ return {+ exitCode,+ requests: normalize(server.requests),+ ...(scenario.snapshot ? { files: snapshot(folder) } : {}),}- return { exitCode, requests: normalize(server.requests) }} finally {server.stop()rmSync(folder, { recursive: true, force: true })rmSync(home, { recursive: true, force: true })}}++const UUID_V7 = /[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/g++// Symbol-set mode mints random UUIDv7 chunk ids. They become <v7-n>, numbered by first appearance in+// path order, so two runs compare equal when they put the same kind of id in the same places.+export function withoutRandomIds(result: ParityResult): ParityResult {+ const names = new Map<string, string>()+ const rename = (text: string): string =>+ text.replace(UUID_V7, (id) => {+ if (!names.has(id)) {+ names.set(id, `<v7-${names.size + 1}>`)+ }+ return names.get(id)!+ })+ return {+ ...result,+ files:+ result.files &&+ Object.fromEntries(Object.entries(result.files).map(([path, text]) => [path, rename(text)])),+ }+}diff --git a/hog/test/parity/scenarios.ts b/hog/test/parity/scenarios.tsindex d044c10d1105..c736ffac0eb1 100644--- a/hog/test/parity/scenarios.ts+++ b/hog/test/parity/scenarios.ts@@ -1,14 +1,37 @@+import { readFileSync } from 'node:fs'+import { join } from 'node:path'+import type { Scenario } from './fake-server'import { GIT_REPO, mappingOfSize, SMALL_MAPPING } from './fixtures'+import { bundles, EDGE_CASES, MALFORMED_MAP_DEBUG_ID, PUBLIC_PATH, STYLESHEET_LOOKUP, STYLESHEETS } from './js-fixtures'+import { decodeFile, type ParityResult } from './run'++type Files = Record<string, string | Uint8Array>export interface ParityScenario {name: stringserver: Scenario- files: Record<string, string | Uint8Array>+ files: () => Filesrust: string[]hog: string[]+ // Commands to run first, against the same folder and server. Only the main command is recorded.+ before?: { rust: string[]; hog: string[] }[]// Run this many times against the same server and compare only the last run, to cover re-uploads.runs?: number+ // Also compare every file in the folder after the run.+ snapshot?: boolean+ // The run mints random UUIDv7 chunk ids, so compare their positions and not their values.+ randomIds?: boolean+}++// The files posthog-cli left behind in another scenario, so a step can start from its real output.+function filesFrom(name: string): () => Files {+ return () => {+ const golden = JSON.parse(+ readFileSync(join(import.meta.dir, 'golden', 'e2e', `${name}.json`), 'utf8')+ ) as ParityResult+ return Object.fromEntries(Object.entries(golden.files ?? {}).map(([path, text]) => [path, decodeFile(text)]))+ }}const release = ['--release-name', 'com.example.app', '--release-version', '1.0', '--build', '7']@@ -23,7 +46,7 @@ const proguard = (return {name: `proguard-${name}`,server,- files: options.files ?? { [file]: SMALL_MAPPING },+ files: options.files ?? (() => ({ [file]: SMALL_MAPPING })),rust: ['proguard', 'upload', '--path', file, '--map-id', `map-${name}`, ...args],hog: ['error-tracking', 'upload', file, '--map-id', `map-${name}`, ...args],runs: options.runs,@@ -35,7 +58,7 @@ export const SCENARIOS: ParityScenario[] = [proguard('no-release', 'fresh'),proguard('release-from-git', 'fresh', {file: 'app/mapping.txt',- files: { ...GIT_REPO, 'app/mapping.txt': SMALL_MAPPING },+ files: () => ({ ...GIT_REPO, 'app/mapping.txt': SMALL_MAPPING }),}),proguard('already-present', 'fresh', { args: release, runs: 2 }),proguard('post-only', 'post-only', { args: release }),@@ -45,6 +68,83 @@ export const SCENARIOS: ParityScenario[] = [proguard('release-mismatch', 'release-mismatch', { args: release }),proguard('check-403', 'check-403', { args: release }),proguard('start-500-once', 'start-500-once', { args: release }),- proguard('block-multiple', 'fresh', { files: { 'mapping.txt': mappingOfSize(2 * 128 * 1024) } }),- proguard('bom-crlf', 'fresh', { files: { 'mapping.txt': `${SMALL_MAPPING.replaceAll('\n', '\r\n')}` } }),+ proguard('block-multiple', 'fresh', { files: () => ({ 'mapping.txt': mappingOfSize(2 * 128 * 1024) }) }),+ proguard('bom-crlf', 'fresh', {+ files: () => ({ 'mapping.txt': `\uFEFF${SMALL_MAPPING.replaceAll('\n', '\r\n')}` }),+ }),]++type JsCommand = 'inject' | 'upload' | 'process'++// posthog-cli's `sourcemap <command> -d <path>` and hog's `error-tracking <command> <path>` take the+// same flags after the path.+const jsArgs = (command: JsCommand, path: string, args: string[]): { rust: string[]; hog: string[] } => ({+ rust: ['sourcemap', command, '-d', path, ...args],+ hog: ['error-tracking', command, path, ...args],+})++const js = (+ name: string,+ command: JsCommand,+ files: () => Files,+ options: Partial<Omit<ParityScenario, 'before'>> & {+ args?: string[]+ path?: string+ before?: [JsCommand, string[]][]+ } = {}+): ParityScenario => ({+ name: `js-${name}`,+ server: options.server ?? 'fresh',+ files,+ ...jsArgs(command, options.path ?? '.', options.args ?? []),+ before: options.before?.map(([step, args]) => jsArgs(step, options.path ?? '.', args)),+ runs: options.runs,+ snapshot: options.snapshot ?? true,+ randomIds: options.randomIds,+})++const jsRelease = ['--release-name', 'web', '--release-version', '2.1.0']+const symbolSet = ['--release-mode', 'symbol-set']++SCENARIOS.push(+ js('inject-bundles', 'inject', bundles),+ js('inject-edge-cases', 'inject', () => EDGE_CASES),+ js('inject-twice', 'inject', () => EDGE_CASES, { runs: 2 }),+ js('inject-malformed-map-debug-id', 'inject', () => MALFORMED_MAP_DEBUG_ID),+ js('inject-release', 'inject', bundles, { args: jsRelease }),+ js('inject-release-from-git', 'inject', () => ({ ...GIT_REPO, ...bundles() })),+ js('inject-release-change', 'inject', bundles, {+ args: ['--release-name', 'web', '--release-version', '2.2.0'],+ before: [['inject', jsRelease]],+ }),+ js('inject-public-path', 'inject', () => PUBLIC_PATH, { args: ['--public-path-prefix', '/static/js'] }),+ js('inject-file-root', 'inject', bundles, { path: 'esbuild-cjs/index.cjs' }),+ js('process-bundles', 'process', bundles, { args: jsRelease }),+ js('process-no-release', 'process', bundles),+ js('process-edge-cases', 'process', () => EDGE_CASES, { args: jsRelease }),+ js('process-already-present', 'process', bundles, { args: jsRelease, runs: 2 }),+ js('process-hash-mismatch', 'process', bundles, {+ args: [...jsRelease, '--skip-on-conflict'],+ server: 'hash-mismatch',+ }),+ js('process-release-mismatch', 'process', bundles, { args: jsRelease, server: 'release-mismatch' }),+ js('process-post-only', 'process', bundles, { args: jsRelease, server: 'post-only' }),+ js('process-delete-after', 'process', () => ({ ...STYLESHEETS, ...bundles() }), {+ args: [...jsRelease, '--delete-after'],+ }),+ js('process-delete-after-css-lookup', 'process', () => STYLESHEET_LOOKUP, {+ args: [...jsRelease, '--delete-after', '--public-path-prefix', 'https://cdn.example.com/assets'],+ }),+ js('upload-native-debug-ids', 'upload', bundles),+ js('upload-after-inject', 'upload', bundles, { before: [['inject', jsRelease]] }),+ js('upload-not-injected', 'upload', () => EDGE_CASES),+ js('inject-symbol-set', 'inject', bundles, { args: [...jsRelease, ...symbolSet], randomIds: true }),+ js('upload-symbol-set', 'upload', filesFrom('js-inject-symbol-set'), { args: [...jsRelease, ...symbolSet] }),+ js('upload-symbol-set-new-release', 'upload', filesFrom('js-inject-symbol-set'), {+ args: ['--release-name', 'web', '--release-version', '3.0.0', ...symbolSet],+ }),+ js('upload-symbol-set-hash-mismatch', 'upload', filesFrom('js-inject-symbol-set'), {+ args: [...jsRelease, ...symbolSet, '--skip-on-conflict'],+ server: 'hash-mismatch',+ })+)