Index: trip-planner-front/node_modules/@angular-devkit/architect/package.json
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/architect/package.json	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/architect/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -1,14 +1,7 @@
 {
-  "_args": [
-    [
-      "@angular-devkit/architect@0.1202.9",
-      "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
-    ]
-  ],
-  "_development": true,
-  "_from": "@angular-devkit/architect@0.1202.9",
-  "_id": "@angular-devkit/architect@0.1202.9",
+  "_from": "@angular-devkit/architect@0.1202.13",
+  "_id": "@angular-devkit/architect@0.1202.13",
   "_inBundle": false,
-  "_integrity": "sha512-s2NcFqZjsdYoR0vhJWLCwykF6hG7F0C5fJJs49i6IJMKj5Ai58z7d2IFYvD8nA60paMvjFS14OQ+E/FEEEZ88Q==",
+  "_integrity": "sha512-LXgiidXwBgyWPqqWK4xR1/kCPQTMTzG5w+s7+LvENUZwbcdl6CKrOMjfgjo6WPr6yeq+WWQvPCD4pZ6nXRTm7A==",
   "_location": "/@angular-devkit/architect",
   "_phantomChildren": {},
@@ -16,11 +9,11 @@
     "type": "version",
     "registry": true,
-    "raw": "@angular-devkit/architect@0.1202.9",
+    "raw": "@angular-devkit/architect@0.1202.13",
     "name": "@angular-devkit/architect",
     "escapedName": "@angular-devkit%2farchitect",
     "scope": "@angular-devkit",
-    "rawSpec": "0.1202.9",
+    "rawSpec": "0.1202.13",
     "saveSpec": null,
-    "fetchSpec": "0.1202.9"
+    "fetchSpec": "0.1202.13"
   },
   "_requiredBy": [
@@ -29,7 +22,8 @@
     "/@angular/cli"
   ],
-  "_resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1202.9.tgz",
-  "_spec": "0.1202.9",
-  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
+  "_resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1202.13.tgz",
+  "_shasum": "b9b883d62f628a6b31ce071da91e268f61da00ef",
+  "_spec": "@angular-devkit/architect@0.1202.13",
+  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@angular-devkit\\build-angular",
   "author": {
     "name": "Angular Authors"
@@ -39,12 +33,14 @@
   },
   "builders": "./builders/builders.json",
+  "bundleDependencies": false,
   "dependencies": {
-    "@angular-devkit/core": "12.2.9",
+    "@angular-devkit/core": "12.2.13",
     "rxjs": "6.6.7"
   },
+  "deprecated": false,
   "description": "Angular Build Facade",
   "engines": {
     "node": "^12.14.1 || >=14.0.0",
-    "npm": "^6.11.0 || ^7.5.6",
+    "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
     "yarn": ">= 1.13.0"
   },
@@ -66,4 +62,4 @@
   },
   "typings": "src/index.d.ts",
-  "version": "0.1202.9"
+  "version": "0.1202.13"
 }
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,15 @@
+#!/bin/sh
+basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
+
+case `uname` in
+    *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+if [ -x "$basedir/node" ]; then
+  "$basedir/node"  "$basedir/../esbuild-wasm/bin/esbuild" "$@"
+  ret=$?
+else 
+  node  "$basedir/../esbuild-wasm/bin/esbuild" "$@"
+  ret=$?
+fi
+exit $ret
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild.cmd
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild.cmd	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild.cmd	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,17 @@
+@ECHO off
+SETLOCAL
+CALL :find_dp0
+
+IF EXIST "%dp0%\node.exe" (
+  SET "_prog=%dp0%\node.exe"
+) ELSE (
+  SET "_prog=node"
+  SET PATHEXT=%PATHEXT:;.JS;=;%
+)
+
+"%_prog%"  "%dp0%\..\esbuild-wasm\bin\esbuild" %*
+ENDLOCAL
+EXIT /b %errorlevel%
+:find_dp0
+SET dp0=%~dp0
+EXIT /b
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild.ps1
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild.ps1	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/.bin/esbuild.ps1	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,18 @@
+#!/usr/bin/env pwsh
+$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
+
+$exe=""
+if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
+  # Fix case when both the Windows and Linux builds of Node
+  # are installed in the same directory
+  $exe=".exe"
+}
+$ret=0
+if (Test-Path "$basedir/node$exe") {
+  & "$basedir/node$exe"  "$basedir/../esbuild-wasm/bin/esbuild" $args
+  $ret=$LASTEXITCODE
+} else {
+  & "node$exe"  "$basedir/../esbuild-wasm/bin/esbuild" $args
+  $ret=$LASTEXITCODE
+}
+exit $ret
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/README.md
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/README.md	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/README.md	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,3 @@
+# esbuild
+
+This is the cross-platform WebAssembly binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild and the [JavaScript API documentation](https://esbuild.github.io/api/) for details.
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/bin/esbuild
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/bin/esbuild	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/bin/esbuild	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,101 @@
+#!/usr/bin/env node
+
+// Forward to the automatically-generated WebAssembly loader from the Go compiler
+
+const crypto = require('crypto');
+const path = require('path');
+const zlib = require('zlib');
+const fs = require('fs');
+const os = require('os');
+
+const wasm_exec = path.join(__dirname, '..', 'wasm_exec.js');
+const esbuild_wasm = path.join(__dirname, '..', 'esbuild.wasm');
+
+const code = fs.readFileSync(wasm_exec, 'utf8');
+const wrapper = new Function('require', 'module', 'process', 'WebAssembly', code);
+
+function instantiate(bytes, importObject) {
+  // Using this API causes "./esbuild --version" to run around 1 second faster
+  // than using the "WebAssembly.instantiate()" API when run in node (v12.16.2)
+  const module = new WebAssembly.Module(bytes);
+  const instance = new WebAssembly.Instance(module, importObject);
+  return Promise.resolve({ instance, module });
+}
+
+// Node has an unfortunate bug where the node process is unnecessarily kept open while a
+// WebAssembly module is being optimized: https://github.com/nodejs/node/issues/36616.
+// This means cases where running "esbuild" should take a few milliseconds can end up
+// taking many seconds instead. To work around this bug, it is possible to force node to
+// exit by calling the operating system's exit function. That's what this code does.
+process.on('exit', code => {
+  // If it's a non-zero exit code, we can just kill our own process to stop. This will
+  // preserve the fact that there is a non-zero exit code although the exit code will
+  // be different. We cannot use this if the exit code is supposed to be zero.
+  if (code !== 0) {
+    try {
+      process.kill(process.pid, 'SIGINT');
+    } catch (e) {
+    }
+    return;
+  }
+
+  // Otherwise if the exit code is zero, try to fall back to a binary N-API module that
+  // calls the operating system's "exit(0)" function.
+  const nativeModule = `${process.platform}-${os.arch()}-${os.endianness()}.node`;
+  const base64 = require('../exit0')[nativeModule];
+  if (base64) {
+    try {
+      const data = zlib.inflateRawSync(Buffer.from(base64, 'base64'));
+      const hash = crypto.createHash('sha256').update(base64).digest().toString('hex').slice(0, 16);
+      const tempFile = path.join(os.tmpdir(), `${hash}-${nativeModule}`);
+      try {
+        if (fs.readFileSync(tempFile).equals(data)) {
+          require(tempFile);
+        }
+      } finally {
+        fs.writeFileSync(tempFile, data);
+        require(tempFile);
+      }
+    } catch (e) {
+    }
+  }
+});
+
+// Node has another bug where using "fs.read" to read from stdin reads
+// everything successfully and then throws an error, but only on Windows. Go's
+// WebAssembly support uses "fs.read" so it hits this problem. This is a patch
+// to try to work around the bug in node. This bug has been reported to node
+// at least twice in https://github.com/nodejs/node/issues/35997 and in
+// https://github.com/nodejs/node/issues/19831. This issue has also been
+// reported to the Go project: https://github.com/golang/go/issues/43913.
+const read = fs.read;
+fs.read = function () {
+  const callback = arguments[5];
+  arguments[5] = function (err, count) {
+    if (count === 0 && err && err.code === 'EOF') {
+      arguments[0] = null;
+    }
+    return callback.apply(this, arguments);
+  };
+  return read.apply(this, arguments);
+};
+
+// WASM code generated with Go 1.17.2+ will crash when run in a situation with
+// many environment variables: https://github.com/golang/go/issues/49011. An
+// example of this situation is running a Go-compiled WASM executable in GitHub
+// Actions. Work around this by filtering node's copy of environment variables
+// down to only include the environment variables that esbuild currently uses.
+const esbuildUsedEnvVars = [
+  'NO_COLOR',
+  'NODE_PATH',
+  'npm_config_user_agent',
+  'WT_SESSION',
+]
+for (let key in process.env) {
+  if (esbuildUsedEnvVars.indexOf(key) < 0) {
+    delete process.env[key]
+  }
+}
+
+const argv = ['node', wasm_exec, esbuild_wasm].concat(process.argv.slice(2));
+wrapper(require, require.main, Object.assign(Object.create(process), { argv }), Object.assign(Object.create(WebAssembly), { instantiate }));
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.d.ts
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,416 @@
+export type Platform = 'browser' | 'node' | 'neutral';
+export type Format = 'iife' | 'cjs' | 'esm';
+export type Loader = 'js' | 'jsx' | 'ts' | 'tsx' | 'css' | 'json' | 'text' | 'base64' | 'file' | 'dataurl' | 'binary' | 'default';
+export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent';
+export type Charset = 'ascii' | 'utf8';
+
+interface CommonOptions {
+  sourcemap?: boolean | 'inline' | 'external' | 'both';
+  legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
+  sourceRoot?: string;
+  sourcesContent?: boolean;
+
+  format?: Format;
+  globalName?: string;
+  target?: string | string[];
+
+  minify?: boolean;
+  minifyWhitespace?: boolean;
+  minifyIdentifiers?: boolean;
+  minifySyntax?: boolean;
+  charset?: Charset;
+  treeShaking?: boolean;
+  ignoreAnnotations?: boolean;
+
+  jsx?: 'transform' | 'preserve';
+  jsxFactory?: string;
+  jsxFragment?: string;
+
+  define?: { [key: string]: string };
+  pure?: string[];
+  keepNames?: boolean;
+
+  color?: boolean;
+  logLevel?: LogLevel;
+  logLimit?: number;
+}
+
+export interface BuildOptions extends CommonOptions {
+  bundle?: boolean;
+  splitting?: boolean;
+  preserveSymlinks?: boolean;
+  outfile?: string;
+  metafile?: boolean;
+  outdir?: string;
+  outbase?: string;
+  platform?: Platform;
+  external?: string[];
+  loader?: { [ext: string]: Loader };
+  resolveExtensions?: string[];
+  mainFields?: string[];
+  conditions?: string[];
+  write?: boolean;
+  allowOverwrite?: boolean;
+  tsconfig?: string;
+  outExtension?: { [ext: string]: string };
+  publicPath?: string;
+  entryNames?: string;
+  chunkNames?: string;
+  assetNames?: string;
+  inject?: string[];
+  banner?: { [type: string]: string };
+  footer?: { [type: string]: string };
+  incremental?: boolean;
+  entryPoints?: string[] | Record<string, string>;
+  stdin?: StdinOptions;
+  plugins?: Plugin[];
+  absWorkingDir?: string;
+  nodePaths?: string[]; // The "NODE_PATH" variable from Node.js
+  watch?: boolean | WatchMode;
+}
+
+export interface WatchMode {
+  onRebuild?: (error: BuildFailure | null, result: BuildResult | null) => void;
+}
+
+export interface StdinOptions {
+  contents: string;
+  resolveDir?: string;
+  sourcefile?: string;
+  loader?: Loader;
+}
+
+export interface Message {
+  pluginName: string;
+  text: string;
+  location: Location | null;
+  notes: Note[];
+
+  // Optional user-specified data that is passed through unmodified. You can
+  // use this to stash the original error, for example.
+  detail: any;
+}
+
+export interface Note {
+  text: string;
+  location: Location | null;
+}
+
+export interface Location {
+  file: string;
+  namespace: string;
+  line: number; // 1-based
+  column: number; // 0-based, in bytes
+  length: number; // in bytes
+  lineText: string;
+  suggestion: string;
+}
+
+export interface OutputFile {
+  path: string;
+  contents: Uint8Array; // "text" as bytes
+  text: string; // "contents" as text
+}
+
+export interface BuildInvalidate {
+  (): Promise<BuildIncremental>;
+  dispose(): void;
+}
+
+export interface BuildIncremental extends BuildResult {
+  rebuild: BuildInvalidate;
+}
+
+export interface BuildResult {
+  errors: Message[];
+  warnings: Message[];
+  outputFiles?: OutputFile[]; // Only when "write: false"
+  rebuild?: BuildInvalidate; // Only when "incremental: true"
+  stop?: () => void; // Only when "watch: true"
+  metafile?: Metafile; // Only when "metafile: true"
+}
+
+export interface BuildFailure extends Error {
+  errors: Message[];
+  warnings: Message[];
+}
+
+export interface ServeOptions {
+  port?: number;
+  host?: string;
+  servedir?: string;
+  onRequest?: (args: ServeOnRequestArgs) => void;
+}
+
+export interface ServeOnRequestArgs {
+  remoteAddress: string;
+  method: string;
+  path: string;
+  status: number;
+  timeInMS: number; // The time to generate the response, not to send it
+}
+
+export interface ServeResult {
+  port: number;
+  host: string;
+  wait: Promise<void>;
+  stop: () => void;
+}
+
+export interface TransformOptions extends CommonOptions {
+  tsconfigRaw?: string | {
+    compilerOptions?: {
+      jsxFactory?: string,
+      jsxFragmentFactory?: string,
+      useDefineForClassFields?: boolean,
+      importsNotUsedAsValues?: 'remove' | 'preserve' | 'error',
+    },
+  };
+
+  sourcefile?: string;
+  loader?: Loader;
+  banner?: string;
+  footer?: string;
+}
+
+export interface TransformResult {
+  code: string;
+  map: string;
+  warnings: Message[];
+}
+
+export interface TransformFailure extends Error {
+  errors: Message[];
+  warnings: Message[];
+}
+
+export interface Plugin {
+  name: string;
+  setup: (build: PluginBuild) => (void | Promise<void>);
+}
+
+export interface PluginBuild {
+  initialOptions: BuildOptions;
+  onStart(callback: () =>
+    (OnStartResult | null | void | Promise<OnStartResult | null | void>)): void;
+  onEnd(callback: (result: BuildResult) =>
+    (void | Promise<void>)): void;
+  onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) =>
+    (OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>)): void;
+  onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) =>
+    (OnLoadResult | null | undefined | Promise<OnLoadResult | null | undefined>)): void;
+}
+
+export interface OnStartResult {
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+}
+
+export interface OnResolveOptions {
+  filter: RegExp;
+  namespace?: string;
+}
+
+export interface OnResolveArgs {
+  path: string;
+  importer: string;
+  namespace: string;
+  resolveDir: string;
+  kind: ImportKind;
+  pluginData: any;
+}
+
+export type ImportKind =
+  | 'entry-point'
+
+  // JS
+  | 'import-statement'
+  | 'require-call'
+  | 'dynamic-import'
+  | 'require-resolve'
+
+  // CSS
+  | 'import-rule'
+  | 'url-token'
+
+export interface OnResolveResult {
+  pluginName?: string;
+
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+
+  path?: string;
+  external?: boolean;
+  sideEffects?: boolean;
+  namespace?: string;
+  pluginData?: any;
+
+  watchFiles?: string[];
+  watchDirs?: string[];
+}
+
+export interface OnLoadOptions {
+  filter: RegExp;
+  namespace?: string;
+}
+
+export interface OnLoadArgs {
+  path: string;
+  namespace: string;
+  pluginData: any;
+}
+
+export interface OnLoadResult {
+  pluginName?: string;
+
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+
+  contents?: string | Uint8Array;
+  resolveDir?: string;
+  loader?: Loader;
+  pluginData?: any;
+
+  watchFiles?: string[];
+  watchDirs?: string[];
+}
+
+export interface PartialMessage {
+  pluginName?: string;
+  text?: string;
+  location?: Partial<Location> | null;
+  notes?: PartialNote[];
+  detail?: any;
+}
+
+export interface PartialNote {
+  text?: string;
+  location?: Partial<Location> | null;
+}
+
+export interface Metafile {
+  inputs: {
+    [path: string]: {
+      bytes: number
+      imports: {
+        path: string
+        kind: ImportKind
+      }[]
+    }
+  }
+  outputs: {
+    [path: string]: {
+      bytes: number
+      inputs: {
+        [path: string]: {
+          bytesInOutput: number
+        }
+      }
+      imports: {
+        path: string
+        kind: ImportKind
+      }[]
+      exports: string[]
+      entryPoint?: string
+    }
+  }
+}
+
+export interface FormatMessagesOptions {
+  kind: 'error' | 'warning';
+  color?: boolean;
+  terminalWidth?: number;
+}
+
+export interface AnalyzeMetafileOptions {
+  color?: boolean;
+  verbose?: boolean;
+}
+
+// This function invokes the "esbuild" command-line tool for you. It returns a
+// promise that either resolves with a "BuildResult" object or rejects with a
+// "BuildFailure" object.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function build(options: BuildOptions & { write: false }): Promise<BuildResult & { outputFiles: OutputFile[] }>;
+export declare function build(options: BuildOptions & { incremental: true }): Promise<BuildIncremental>;
+export declare function build(options: BuildOptions): Promise<BuildResult>;
+
+// This function is similar to "build" but it serves the resulting files over
+// HTTP on a localhost address with the specified port.
+//
+// Works in node: yes
+// Works in browser: no
+export declare function serve(serveOptions: ServeOptions, buildOptions: BuildOptions): Promise<ServeResult>;
+
+// This function transforms a single JavaScript file. It can be used to minify
+// JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript
+// to older JavaScript. It returns a promise that is either resolved with a
+// "TransformResult" object or rejected with a "TransformFailure" object.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function transform(input: string, options?: TransformOptions): Promise<TransformResult>;
+
+// Converts log messages to formatted message strings suitable for printing in
+// the terminal. This allows you to reuse the built-in behavior of esbuild's
+// log message formatter. This is a batch-oriented API for efficiency.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>;
+
+// Pretty-prints an analysis of the metafile JSON to a string. This is just for
+// convenience to be able to match esbuild's pretty-printing exactly. If you want
+// to customize it, you can just inspect the data in the metafile yourself.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>;
+
+// A synchronous version of "build".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function buildSync(options: BuildOptions & { write: false }): BuildResult & { outputFiles: OutputFile[] };
+export declare function buildSync(options: BuildOptions): BuildResult;
+
+// A synchronous version of "transform".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function transformSync(input: string, options?: TransformOptions): TransformResult;
+
+// A synchronous version of "formatMessages".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function formatMessagesSync(messages: PartialMessage[], options: FormatMessagesOptions): string[];
+
+// A synchronous version of "analyzeMetafile".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function analyzeMetafileSync(metafile: Metafile | string, options?: AnalyzeMetafileOptions): string;
+
+// This configures the browser-based version of esbuild. It is necessary to
+// call this first and wait for the returned promise to be resolved before
+// making other API calls when using esbuild in the browser.
+//
+// Works in node: yes
+// Works in browser: yes ("options" is required)
+export declare function initialize(options: InitializeOptions): Promise<void>;
+
+export interface InitializeOptions {
+  // The URL of the "esbuild.wasm" file. This must be provided when running
+  // esbuild in the browser.
+  wasmURL?: string
+
+  // By default esbuild runs the WebAssembly-based browser API in a web worker
+  // to avoid blocking the UI thread. This can be disabled by setting "worker"
+  // to false.
+  worker?: boolean
+}
+
+export let version: string;
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,2386 @@
+var __defProp = Object.defineProperty;
+var __defProps = Object.defineProperties;
+var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues = (a, b) => {
+  for (var prop in b || (b = {}))
+    if (__hasOwnProp.call(b, prop))
+      __defNormalProp(a, prop, b[prop]);
+  if (__getOwnPropSymbols)
+    for (var prop of __getOwnPropSymbols(b)) {
+      if (__propIsEnum.call(b, prop))
+        __defNormalProp(a, prop, b[prop]);
+    }
+  return a;
+};
+var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
+
+// lib/shared/stdio_protocol.ts
+function encodePacket(packet) {
+  let visit = (value) => {
+    if (value === null) {
+      bb.write8(0);
+    } else if (typeof value === "boolean") {
+      bb.write8(1);
+      bb.write8(+value);
+    } else if (typeof value === "number") {
+      bb.write8(2);
+      bb.write32(value | 0);
+    } else if (typeof value === "string") {
+      bb.write8(3);
+      bb.write(encodeUTF8(value));
+    } else if (value instanceof Uint8Array) {
+      bb.write8(4);
+      bb.write(value);
+    } else if (value instanceof Array) {
+      bb.write8(5);
+      bb.write32(value.length);
+      for (let item of value) {
+        visit(item);
+      }
+    } else {
+      let keys = Object.keys(value);
+      bb.write8(6);
+      bb.write32(keys.length);
+      for (let key of keys) {
+        bb.write(encodeUTF8(key));
+        visit(value[key]);
+      }
+    }
+  };
+  let bb = new ByteBuffer();
+  bb.write32(0);
+  bb.write32(packet.id << 1 | +!packet.isRequest);
+  visit(packet.value);
+  writeUInt32LE(bb.buf, bb.len - 4, 0);
+  return bb.buf.subarray(0, bb.len);
+}
+function decodePacket(bytes) {
+  let visit = () => {
+    switch (bb.read8()) {
+      case 0:
+        return null;
+      case 1:
+        return !!bb.read8();
+      case 2:
+        return bb.read32();
+      case 3:
+        return decodeUTF8(bb.read());
+      case 4:
+        return bb.read();
+      case 5: {
+        let count = bb.read32();
+        let value2 = [];
+        for (let i = 0; i < count; i++) {
+          value2.push(visit());
+        }
+        return value2;
+      }
+      case 6: {
+        let count = bb.read32();
+        let value2 = {};
+        for (let i = 0; i < count; i++) {
+          value2[decodeUTF8(bb.read())] = visit();
+        }
+        return value2;
+      }
+      default:
+        throw new Error("Invalid packet");
+    }
+  };
+  let bb = new ByteBuffer(bytes);
+  let id = bb.read32();
+  let isRequest = (id & 1) === 0;
+  id >>>= 1;
+  let value = visit();
+  if (bb.ptr !== bytes.length) {
+    throw new Error("Invalid packet");
+  }
+  return { id, isRequest, value };
+}
+var ByteBuffer = class {
+  constructor(buf = new Uint8Array(1024)) {
+    this.buf = buf;
+    this.len = 0;
+    this.ptr = 0;
+  }
+  _write(delta) {
+    if (this.len + delta > this.buf.length) {
+      let clone = new Uint8Array((this.len + delta) * 2);
+      clone.set(this.buf);
+      this.buf = clone;
+    }
+    this.len += delta;
+    return this.len - delta;
+  }
+  write8(value) {
+    let offset = this._write(1);
+    this.buf[offset] = value;
+  }
+  write32(value) {
+    let offset = this._write(4);
+    writeUInt32LE(this.buf, value, offset);
+  }
+  write(bytes) {
+    let offset = this._write(4 + bytes.length);
+    writeUInt32LE(this.buf, bytes.length, offset);
+    this.buf.set(bytes, offset + 4);
+  }
+  _read(delta) {
+    if (this.ptr + delta > this.buf.length) {
+      throw new Error("Invalid packet");
+    }
+    this.ptr += delta;
+    return this.ptr - delta;
+  }
+  read8() {
+    return this.buf[this._read(1)];
+  }
+  read32() {
+    return readUInt32LE(this.buf, this._read(4));
+  }
+  read() {
+    let length = this.read32();
+    let bytes = new Uint8Array(length);
+    let ptr = this._read(bytes.length);
+    bytes.set(this.buf.subarray(ptr, ptr + length));
+    return bytes;
+  }
+};
+var encodeUTF8;
+var decodeUTF8;
+if (typeof TextEncoder !== "undefined" && typeof TextDecoder !== "undefined") {
+  let encoder = new TextEncoder();
+  let decoder = new TextDecoder();
+  encodeUTF8 = (text) => encoder.encode(text);
+  decodeUTF8 = (bytes) => decoder.decode(bytes);
+} else if (typeof Buffer !== "undefined") {
+  encodeUTF8 = (text) => {
+    let buffer = Buffer.from(text);
+    if (!(buffer instanceof Uint8Array)) {
+      buffer = new Uint8Array(buffer);
+    }
+    return buffer;
+  };
+  decodeUTF8 = (bytes) => {
+    let { buffer, byteOffset, byteLength } = bytes;
+    return Buffer.from(buffer, byteOffset, byteLength).toString();
+  };
+} else {
+  throw new Error("No UTF-8 codec found");
+}
+function readUInt32LE(buffer, offset) {
+  return buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24;
+}
+function writeUInt32LE(buffer, value, offset) {
+  buffer[offset++] = value;
+  buffer[offset++] = value >> 8;
+  buffer[offset++] = value >> 16;
+  buffer[offset++] = value >> 24;
+}
+
+// lib/shared/common.ts
+function validateTarget(target) {
+  target += "";
+  if (target.indexOf(",") >= 0)
+    throw new Error(`Invalid target: ${target}`);
+  return target;
+}
+var canBeAnything = () => null;
+var mustBeBoolean = (value) => typeof value === "boolean" ? null : "a boolean";
+var mustBeBooleanOrObject = (value) => typeof value === "boolean" || typeof value === "object" && !Array.isArray(value) ? null : "a boolean or an object";
+var mustBeString = (value) => typeof value === "string" ? null : "a string";
+var mustBeRegExp = (value) => value instanceof RegExp ? null : "a RegExp object";
+var mustBeInteger = (value) => typeof value === "number" && value === (value | 0) ? null : "an integer";
+var mustBeFunction = (value) => typeof value === "function" ? null : "a function";
+var mustBeArray = (value) => Array.isArray(value) ? null : "an array";
+var mustBeObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? null : "an object";
+var mustBeArrayOrRecord = (value) => typeof value === "object" && value !== null ? null : "an array or an object";
+var mustBeObjectOrNull = (value) => typeof value === "object" && !Array.isArray(value) ? null : "an object or null";
+var mustBeStringOrBoolean = (value) => typeof value === "string" || typeof value === "boolean" ? null : "a string or a boolean";
+var mustBeStringOrObject = (value) => typeof value === "string" || typeof value === "object" && value !== null && !Array.isArray(value) ? null : "a string or an object";
+var mustBeStringOrArray = (value) => typeof value === "string" || Array.isArray(value) ? null : "a string or an array";
+var mustBeStringOrUint8Array = (value) => typeof value === "string" || value instanceof Uint8Array ? null : "a string or a Uint8Array";
+function getFlag(object, keys, key, mustBeFn) {
+  let value = object[key];
+  keys[key + ""] = true;
+  if (value === void 0)
+    return void 0;
+  let mustBe = mustBeFn(value);
+  if (mustBe !== null)
+    throw new Error(`"${key}" must be ${mustBe}`);
+  return value;
+}
+function checkForInvalidFlags(object, keys, where) {
+  for (let key in object) {
+    if (!(key in keys)) {
+      throw new Error(`Invalid option ${where}: "${key}"`);
+    }
+  }
+}
+function validateInitializeOptions(options) {
+  let keys = Object.create(null);
+  let wasmURL = getFlag(options, keys, "wasmURL", mustBeString);
+  let worker = getFlag(options, keys, "worker", mustBeBoolean);
+  checkForInvalidFlags(options, keys, "in startService() call");
+  return {
+    wasmURL,
+    worker
+  };
+}
+function pushLogFlags(flags, options, keys, isTTY, logLevelDefault) {
+  let color = getFlag(options, keys, "color", mustBeBoolean);
+  let logLevel = getFlag(options, keys, "logLevel", mustBeString);
+  let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
+  if (color !== void 0)
+    flags.push(`--color=${color}`);
+  else if (isTTY)
+    flags.push(`--color=true`);
+  flags.push(`--log-level=${logLevel || logLevelDefault}`);
+  flags.push(`--log-limit=${logLimit || 0}`);
+}
+function pushCommonFlags(flags, options, keys) {
+  let legalComments = getFlag(options, keys, "legalComments", mustBeString);
+  let sourceRoot = getFlag(options, keys, "sourceRoot", mustBeString);
+  let sourcesContent = getFlag(options, keys, "sourcesContent", mustBeBoolean);
+  let target = getFlag(options, keys, "target", mustBeStringOrArray);
+  let format = getFlag(options, keys, "format", mustBeString);
+  let globalName = getFlag(options, keys, "globalName", mustBeString);
+  let minify = getFlag(options, keys, "minify", mustBeBoolean);
+  let minifySyntax = getFlag(options, keys, "minifySyntax", mustBeBoolean);
+  let minifyWhitespace = getFlag(options, keys, "minifyWhitespace", mustBeBoolean);
+  let minifyIdentifiers = getFlag(options, keys, "minifyIdentifiers", mustBeBoolean);
+  let charset = getFlag(options, keys, "charset", mustBeString);
+  let treeShaking = getFlag(options, keys, "treeShaking", mustBeBoolean);
+  let ignoreAnnotations = getFlag(options, keys, "ignoreAnnotations", mustBeBoolean);
+  let jsx = getFlag(options, keys, "jsx", mustBeString);
+  let jsxFactory = getFlag(options, keys, "jsxFactory", mustBeString);
+  let jsxFragment = getFlag(options, keys, "jsxFragment", mustBeString);
+  let define = getFlag(options, keys, "define", mustBeObject);
+  let pure = getFlag(options, keys, "pure", mustBeArray);
+  let keepNames = getFlag(options, keys, "keepNames", mustBeBoolean);
+  if (legalComments)
+    flags.push(`--legal-comments=${legalComments}`);
+  if (sourceRoot !== void 0)
+    flags.push(`--source-root=${sourceRoot}`);
+  if (sourcesContent !== void 0)
+    flags.push(`--sources-content=${sourcesContent}`);
+  if (target) {
+    if (Array.isArray(target))
+      flags.push(`--target=${Array.from(target).map(validateTarget).join(",")}`);
+    else
+      flags.push(`--target=${validateTarget(target)}`);
+  }
+  if (format)
+    flags.push(`--format=${format}`);
+  if (globalName)
+    flags.push(`--global-name=${globalName}`);
+  if (minify)
+    flags.push("--minify");
+  if (minifySyntax)
+    flags.push("--minify-syntax");
+  if (minifyWhitespace)
+    flags.push("--minify-whitespace");
+  if (minifyIdentifiers)
+    flags.push("--minify-identifiers");
+  if (charset)
+    flags.push(`--charset=${charset}`);
+  if (treeShaking !== void 0)
+    flags.push(`--tree-shaking=${treeShaking}`);
+  if (ignoreAnnotations)
+    flags.push(`--ignore-annotations`);
+  if (jsx)
+    flags.push(`--jsx=${jsx}`);
+  if (jsxFactory)
+    flags.push(`--jsx-factory=${jsxFactory}`);
+  if (jsxFragment)
+    flags.push(`--jsx-fragment=${jsxFragment}`);
+  if (define) {
+    for (let key in define) {
+      if (key.indexOf("=") >= 0)
+        throw new Error(`Invalid define: ${key}`);
+      flags.push(`--define:${key}=${define[key]}`);
+    }
+  }
+  if (pure)
+    for (let fn of pure)
+      flags.push(`--pure:${fn}`);
+  if (keepNames)
+    flags.push(`--keep-names`);
+}
+function flagsForBuildOptions(callName, options, isTTY, logLevelDefault, writeDefault) {
+  var _a;
+  let flags = [];
+  let entries = [];
+  let keys = Object.create(null);
+  let stdinContents = null;
+  let stdinResolveDir = null;
+  let watchMode = null;
+  pushLogFlags(flags, options, keys, isTTY, logLevelDefault);
+  pushCommonFlags(flags, options, keys);
+  let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
+  let bundle = getFlag(options, keys, "bundle", mustBeBoolean);
+  let watch = getFlag(options, keys, "watch", mustBeBooleanOrObject);
+  let splitting = getFlag(options, keys, "splitting", mustBeBoolean);
+  let preserveSymlinks = getFlag(options, keys, "preserveSymlinks", mustBeBoolean);
+  let metafile = getFlag(options, keys, "metafile", mustBeBoolean);
+  let outfile = getFlag(options, keys, "outfile", mustBeString);
+  let outdir = getFlag(options, keys, "outdir", mustBeString);
+  let outbase = getFlag(options, keys, "outbase", mustBeString);
+  let platform = getFlag(options, keys, "platform", mustBeString);
+  let tsconfig = getFlag(options, keys, "tsconfig", mustBeString);
+  let resolveExtensions = getFlag(options, keys, "resolveExtensions", mustBeArray);
+  let nodePathsInput = getFlag(options, keys, "nodePaths", mustBeArray);
+  let mainFields = getFlag(options, keys, "mainFields", mustBeArray);
+  let conditions = getFlag(options, keys, "conditions", mustBeArray);
+  let external = getFlag(options, keys, "external", mustBeArray);
+  let loader = getFlag(options, keys, "loader", mustBeObject);
+  let outExtension = getFlag(options, keys, "outExtension", mustBeObject);
+  let publicPath = getFlag(options, keys, "publicPath", mustBeString);
+  let entryNames = getFlag(options, keys, "entryNames", mustBeString);
+  let chunkNames = getFlag(options, keys, "chunkNames", mustBeString);
+  let assetNames = getFlag(options, keys, "assetNames", mustBeString);
+  let inject = getFlag(options, keys, "inject", mustBeArray);
+  let banner = getFlag(options, keys, "banner", mustBeObject);
+  let footer = getFlag(options, keys, "footer", mustBeObject);
+  let entryPoints = getFlag(options, keys, "entryPoints", mustBeArrayOrRecord);
+  let absWorkingDir = getFlag(options, keys, "absWorkingDir", mustBeString);
+  let stdin = getFlag(options, keys, "stdin", mustBeObject);
+  let write = (_a = getFlag(options, keys, "write", mustBeBoolean)) != null ? _a : writeDefault;
+  let allowOverwrite = getFlag(options, keys, "allowOverwrite", mustBeBoolean);
+  let incremental = getFlag(options, keys, "incremental", mustBeBoolean) === true;
+  keys.plugins = true;
+  checkForInvalidFlags(options, keys, `in ${callName}() call`);
+  if (sourcemap)
+    flags.push(`--sourcemap${sourcemap === true ? "" : `=${sourcemap}`}`);
+  if (bundle)
+    flags.push("--bundle");
+  if (allowOverwrite)
+    flags.push("--allow-overwrite");
+  if (watch) {
+    flags.push("--watch");
+    if (typeof watch === "boolean") {
+      watchMode = {};
+    } else {
+      let watchKeys = Object.create(null);
+      let onRebuild = getFlag(watch, watchKeys, "onRebuild", mustBeFunction);
+      checkForInvalidFlags(watch, watchKeys, `on "watch" in ${callName}() call`);
+      watchMode = { onRebuild };
+    }
+  }
+  if (splitting)
+    flags.push("--splitting");
+  if (preserveSymlinks)
+    flags.push("--preserve-symlinks");
+  if (metafile)
+    flags.push(`--metafile`);
+  if (outfile)
+    flags.push(`--outfile=${outfile}`);
+  if (outdir)
+    flags.push(`--outdir=${outdir}`);
+  if (outbase)
+    flags.push(`--outbase=${outbase}`);
+  if (platform)
+    flags.push(`--platform=${platform}`);
+  if (tsconfig)
+    flags.push(`--tsconfig=${tsconfig}`);
+  if (resolveExtensions) {
+    let values = [];
+    for (let value of resolveExtensions) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid resolve extension: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--resolve-extensions=${values.join(",")}`);
+  }
+  if (publicPath)
+    flags.push(`--public-path=${publicPath}`);
+  if (entryNames)
+    flags.push(`--entry-names=${entryNames}`);
+  if (chunkNames)
+    flags.push(`--chunk-names=${chunkNames}`);
+  if (assetNames)
+    flags.push(`--asset-names=${assetNames}`);
+  if (mainFields) {
+    let values = [];
+    for (let value of mainFields) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid main field: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--main-fields=${values.join(",")}`);
+  }
+  if (conditions) {
+    let values = [];
+    for (let value of conditions) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid condition: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--conditions=${values.join(",")}`);
+  }
+  if (external)
+    for (let name of external)
+      flags.push(`--external:${name}`);
+  if (banner) {
+    for (let type in banner) {
+      if (type.indexOf("=") >= 0)
+        throw new Error(`Invalid banner file type: ${type}`);
+      flags.push(`--banner:${type}=${banner[type]}`);
+    }
+  }
+  if (footer) {
+    for (let type in footer) {
+      if (type.indexOf("=") >= 0)
+        throw new Error(`Invalid footer file type: ${type}`);
+      flags.push(`--footer:${type}=${footer[type]}`);
+    }
+  }
+  if (inject)
+    for (let path of inject)
+      flags.push(`--inject:${path}`);
+  if (loader) {
+    for (let ext in loader) {
+      if (ext.indexOf("=") >= 0)
+        throw new Error(`Invalid loader extension: ${ext}`);
+      flags.push(`--loader:${ext}=${loader[ext]}`);
+    }
+  }
+  if (outExtension) {
+    for (let ext in outExtension) {
+      if (ext.indexOf("=") >= 0)
+        throw new Error(`Invalid out extension: ${ext}`);
+      flags.push(`--out-extension:${ext}=${outExtension[ext]}`);
+    }
+  }
+  if (entryPoints) {
+    if (Array.isArray(entryPoints)) {
+      for (let entryPoint of entryPoints) {
+        entries.push(["", entryPoint + ""]);
+      }
+    } else {
+      for (let [key, value] of Object.entries(entryPoints)) {
+        entries.push([key + "", value + ""]);
+      }
+    }
+  }
+  if (stdin) {
+    let stdinKeys = Object.create(null);
+    let contents = getFlag(stdin, stdinKeys, "contents", mustBeString);
+    let resolveDir = getFlag(stdin, stdinKeys, "resolveDir", mustBeString);
+    let sourcefile = getFlag(stdin, stdinKeys, "sourcefile", mustBeString);
+    let loader2 = getFlag(stdin, stdinKeys, "loader", mustBeString);
+    checkForInvalidFlags(stdin, stdinKeys, 'in "stdin" object');
+    if (sourcefile)
+      flags.push(`--sourcefile=${sourcefile}`);
+    if (loader2)
+      flags.push(`--loader=${loader2}`);
+    if (resolveDir)
+      stdinResolveDir = resolveDir + "";
+    stdinContents = contents ? contents + "" : "";
+  }
+  let nodePaths = [];
+  if (nodePathsInput) {
+    for (let value of nodePathsInput) {
+      value += "";
+      nodePaths.push(value);
+    }
+  }
+  return {
+    entries,
+    flags,
+    write,
+    stdinContents,
+    stdinResolveDir,
+    absWorkingDir,
+    incremental,
+    nodePaths,
+    watch: watchMode
+  };
+}
+function flagsForTransformOptions(callName, options, isTTY, logLevelDefault) {
+  let flags = [];
+  let keys = Object.create(null);
+  pushLogFlags(flags, options, keys, isTTY, logLevelDefault);
+  pushCommonFlags(flags, options, keys);
+  let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
+  let tsconfigRaw = getFlag(options, keys, "tsconfigRaw", mustBeStringOrObject);
+  let sourcefile = getFlag(options, keys, "sourcefile", mustBeString);
+  let loader = getFlag(options, keys, "loader", mustBeString);
+  let banner = getFlag(options, keys, "banner", mustBeString);
+  let footer = getFlag(options, keys, "footer", mustBeString);
+  checkForInvalidFlags(options, keys, `in ${callName}() call`);
+  if (sourcemap)
+    flags.push(`--sourcemap=${sourcemap === true ? "external" : sourcemap}`);
+  if (tsconfigRaw)
+    flags.push(`--tsconfig-raw=${typeof tsconfigRaw === "string" ? tsconfigRaw : JSON.stringify(tsconfigRaw)}`);
+  if (sourcefile)
+    flags.push(`--sourcefile=${sourcefile}`);
+  if (loader)
+    flags.push(`--loader=${loader}`);
+  if (banner)
+    flags.push(`--banner=${banner}`);
+  if (footer)
+    flags.push(`--footer=${footer}`);
+  return flags;
+}
+function createChannel(streamIn) {
+  let responseCallbacks = new Map();
+  let pluginCallbacks = new Map();
+  let watchCallbacks = new Map();
+  let serveCallbacks = new Map();
+  let nextServeID = 0;
+  let isClosed = false;
+  let nextRequestID = 0;
+  let nextBuildKey = 0;
+  let stdout = new Uint8Array(16 * 1024);
+  let stdoutUsed = 0;
+  let readFromStdout = (chunk) => {
+    let limit = stdoutUsed + chunk.length;
+    if (limit > stdout.length) {
+      let swap = new Uint8Array(limit * 2);
+      swap.set(stdout);
+      stdout = swap;
+    }
+    stdout.set(chunk, stdoutUsed);
+    stdoutUsed += chunk.length;
+    let offset = 0;
+    while (offset + 4 <= stdoutUsed) {
+      let length = readUInt32LE(stdout, offset);
+      if (offset + 4 + length > stdoutUsed) {
+        break;
+      }
+      offset += 4;
+      handleIncomingPacket(stdout.subarray(offset, offset + length));
+      offset += length;
+    }
+    if (offset > 0) {
+      stdout.copyWithin(0, offset, stdoutUsed);
+      stdoutUsed -= offset;
+    }
+  };
+  let afterClose = () => {
+    isClosed = true;
+    for (let callback of responseCallbacks.values()) {
+      callback("The service was stopped", null);
+    }
+    responseCallbacks.clear();
+    for (let callbacks of serveCallbacks.values()) {
+      callbacks.onWait("The service was stopped");
+    }
+    serveCallbacks.clear();
+    for (let callback of watchCallbacks.values()) {
+      try {
+        callback(new Error("The service was stopped"), null);
+      } catch (e) {
+        console.error(e);
+      }
+    }
+    watchCallbacks.clear();
+  };
+  let sendRequest = (refs, value, callback) => {
+    if (isClosed)
+      return callback("The service is no longer running", null);
+    let id = nextRequestID++;
+    responseCallbacks.set(id, (error, response) => {
+      try {
+        callback(error, response);
+      } finally {
+        if (refs)
+          refs.unref();
+      }
+    });
+    if (refs)
+      refs.ref();
+    streamIn.writeToStdin(encodePacket({ id, isRequest: true, value }));
+  };
+  let sendResponse = (id, value) => {
+    if (isClosed)
+      throw new Error("The service is no longer running");
+    streamIn.writeToStdin(encodePacket({ id, isRequest: false, value }));
+  };
+  let handleRequest = async (id, request) => {
+    try {
+      switch (request.command) {
+        case "ping": {
+          sendResponse(id, {});
+          break;
+        }
+        case "start": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, await callback(request));
+          break;
+        }
+        case "resolve": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, await callback(request));
+          break;
+        }
+        case "load": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, await callback(request));
+          break;
+        }
+        case "serve-request": {
+          let callbacks = serveCallbacks.get(request.serveID);
+          if (callbacks && callbacks.onRequest)
+            callbacks.onRequest(request.args);
+          sendResponse(id, {});
+          break;
+        }
+        case "serve-wait": {
+          let callbacks = serveCallbacks.get(request.serveID);
+          if (callbacks)
+            callbacks.onWait(request.error);
+          sendResponse(id, {});
+          break;
+        }
+        case "watch-rebuild": {
+          let callback = watchCallbacks.get(request.watchID);
+          try {
+            if (callback)
+              callback(null, request.args);
+          } catch (err) {
+            console.error(err);
+          }
+          sendResponse(id, {});
+          break;
+        }
+        default:
+          throw new Error(`Invalid command: ` + request.command);
+      }
+    } catch (e) {
+      sendResponse(id, { errors: [extractErrorMessageV8(e, streamIn, null, void 0, "")] });
+    }
+  };
+  let isFirstPacket = true;
+  let handleIncomingPacket = (bytes) => {
+    if (isFirstPacket) {
+      isFirstPacket = false;
+      let binaryVersion = String.fromCharCode(...bytes);
+      if (binaryVersion !== "0.13.8") {
+        throw new Error(`Cannot start service: Host version "${"0.13.8"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
+      }
+      return;
+    }
+    let packet = decodePacket(bytes);
+    if (packet.isRequest) {
+      handleRequest(packet.id, packet.value);
+    } else {
+      let callback = responseCallbacks.get(packet.id);
+      responseCallbacks.delete(packet.id);
+      if (packet.value.error)
+        callback(packet.value.error, {});
+      else
+        callback(null, packet.value);
+    }
+  };
+  let handlePlugins = async (initialOptions, plugins, buildKey, stash) => {
+    let onStartCallbacks = [];
+    let onEndCallbacks = [];
+    let onResolveCallbacks = {};
+    let onLoadCallbacks = {};
+    let nextCallbackID = 0;
+    let i = 0;
+    let requestPlugins = [];
+    plugins = [...plugins];
+    for (let item of plugins) {
+      let keys = {};
+      if (typeof item !== "object")
+        throw new Error(`Plugin at index ${i} must be an object`);
+      let name = getFlag(item, keys, "name", mustBeString);
+      if (typeof name !== "string" || name === "")
+        throw new Error(`Plugin at index ${i} is missing a name`);
+      try {
+        let setup = getFlag(item, keys, "setup", mustBeFunction);
+        if (typeof setup !== "function")
+          throw new Error(`Plugin is missing a setup function`);
+        checkForInvalidFlags(item, keys, `on plugin ${JSON.stringify(name)}`);
+        let plugin = {
+          name,
+          onResolve: [],
+          onLoad: []
+        };
+        i++;
+        let promise = setup({
+          initialOptions,
+          onStart(callback2) {
+            let registeredText = `This error came from the "onStart" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onStart");
+            onStartCallbacks.push({ name, callback: callback2, note: registeredNote });
+          },
+          onEnd(callback2) {
+            let registeredText = `This error came from the "onEnd" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onEnd");
+            onEndCallbacks.push({ name, callback: callback2, note: registeredNote });
+          },
+          onResolve(options, callback2) {
+            let registeredText = `This error came from the "onResolve" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onResolve");
+            let keys2 = {};
+            let filter = getFlag(options, keys2, "filter", mustBeRegExp);
+            let namespace = getFlag(options, keys2, "namespace", mustBeString);
+            checkForInvalidFlags(options, keys2, `in onResolve() call for plugin ${JSON.stringify(name)}`);
+            if (filter == null)
+              throw new Error(`onResolve() call is missing a filter`);
+            let id = nextCallbackID++;
+            onResolveCallbacks[id] = { name, callback: callback2, note: registeredNote };
+            plugin.onResolve.push({ id, filter: filter.source, namespace: namespace || "" });
+          },
+          onLoad(options, callback2) {
+            let registeredText = `This error came from the "onLoad" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onLoad");
+            let keys2 = {};
+            let filter = getFlag(options, keys2, "filter", mustBeRegExp);
+            let namespace = getFlag(options, keys2, "namespace", mustBeString);
+            checkForInvalidFlags(options, keys2, `in onLoad() call for plugin ${JSON.stringify(name)}`);
+            if (filter == null)
+              throw new Error(`onLoad() call is missing a filter`);
+            let id = nextCallbackID++;
+            onLoadCallbacks[id] = { name, callback: callback2, note: registeredNote };
+            plugin.onLoad.push({ id, filter: filter.source, namespace: namespace || "" });
+          }
+        });
+        if (promise)
+          await promise;
+        requestPlugins.push(plugin);
+      } catch (e) {
+        return { ok: false, error: e, pluginName: name };
+      }
+    }
+    const callback = async (request) => {
+      switch (request.command) {
+        case "start": {
+          let response = { errors: [], warnings: [] };
+          await Promise.all(onStartCallbacks.map(async ({ name, callback: callback2, note }) => {
+            try {
+              let result = await callback2();
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onStart() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onStart() callback in plugin ${JSON.stringify(name)}`);
+                if (errors != null)
+                  response.errors.push(...sanitizeMessages(errors, "errors", stash, name));
+                if (warnings != null)
+                  response.warnings.push(...sanitizeMessages(warnings, "warnings", stash, name));
+              }
+            } catch (e) {
+              response.errors.push(extractErrorMessageV8(e, streamIn, stash, note && note(), name));
+            }
+          }));
+          return response;
+        }
+        case "resolve": {
+          let response = {}, name = "", callback2, note;
+          for (let id of request.ids) {
+            try {
+              ({ name, callback: callback2, note } = onResolveCallbacks[id]);
+              let result = await callback2({
+                path: request.path,
+                importer: request.importer,
+                namespace: request.namespace,
+                resolveDir: request.resolveDir,
+                kind: request.kind,
+                pluginData: stash.load(request.pluginData)
+              });
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onResolve() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let pluginName = getFlag(result, keys, "pluginName", mustBeString);
+                let path = getFlag(result, keys, "path", mustBeString);
+                let namespace = getFlag(result, keys, "namespace", mustBeString);
+                let external = getFlag(result, keys, "external", mustBeBoolean);
+                let sideEffects = getFlag(result, keys, "sideEffects", mustBeBoolean);
+                let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
+                let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onResolve() callback in plugin ${JSON.stringify(name)}`);
+                response.id = id;
+                if (pluginName != null)
+                  response.pluginName = pluginName;
+                if (path != null)
+                  response.path = path;
+                if (namespace != null)
+                  response.namespace = namespace;
+                if (external != null)
+                  response.external = external;
+                if (sideEffects != null)
+                  response.sideEffects = sideEffects;
+                if (pluginData != null)
+                  response.pluginData = stash.store(pluginData);
+                if (errors != null)
+                  response.errors = sanitizeMessages(errors, "errors", stash, name);
+                if (warnings != null)
+                  response.warnings = sanitizeMessages(warnings, "warnings", stash, name);
+                if (watchFiles != null)
+                  response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
+                if (watchDirs != null)
+                  response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
+                break;
+              }
+            } catch (e) {
+              return { id, errors: [extractErrorMessageV8(e, streamIn, stash, note && note(), name)] };
+            }
+          }
+          return response;
+        }
+        case "load": {
+          let response = {}, name = "", callback2, note;
+          for (let id of request.ids) {
+            try {
+              ({ name, callback: callback2, note } = onLoadCallbacks[id]);
+              let result = await callback2({
+                path: request.path,
+                namespace: request.namespace,
+                pluginData: stash.load(request.pluginData)
+              });
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onLoad() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let pluginName = getFlag(result, keys, "pluginName", mustBeString);
+                let contents = getFlag(result, keys, "contents", mustBeStringOrUint8Array);
+                let resolveDir = getFlag(result, keys, "resolveDir", mustBeString);
+                let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
+                let loader = getFlag(result, keys, "loader", mustBeString);
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
+                let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onLoad() callback in plugin ${JSON.stringify(name)}`);
+                response.id = id;
+                if (pluginName != null)
+                  response.pluginName = pluginName;
+                if (contents instanceof Uint8Array)
+                  response.contents = contents;
+                else if (contents != null)
+                  response.contents = encodeUTF8(contents);
+                if (resolveDir != null)
+                  response.resolveDir = resolveDir;
+                if (pluginData != null)
+                  response.pluginData = stash.store(pluginData);
+                if (loader != null)
+                  response.loader = loader;
+                if (errors != null)
+                  response.errors = sanitizeMessages(errors, "errors", stash, name);
+                if (warnings != null)
+                  response.warnings = sanitizeMessages(warnings, "warnings", stash, name);
+                if (watchFiles != null)
+                  response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
+                if (watchDirs != null)
+                  response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
+                break;
+              }
+            } catch (e) {
+              return { id, errors: [extractErrorMessageV8(e, streamIn, stash, note && note(), name)] };
+            }
+          }
+          return response;
+        }
+        default:
+          throw new Error(`Invalid command: ` + request.command);
+      }
+    };
+    let runOnEndCallbacks = (result, logPluginError, done) => done();
+    if (onEndCallbacks.length > 0) {
+      runOnEndCallbacks = (result, logPluginError, done) => {
+        (async () => {
+          for (const { name, callback: callback2, note } of onEndCallbacks) {
+            try {
+              await callback2(result);
+            } catch (e) {
+              result.errors.push(await new Promise((resolve) => logPluginError(e, name, note && note(), resolve)));
+            }
+          }
+        })().then(done);
+      };
+    }
+    let refCount = 0;
+    return {
+      ok: true,
+      requestPlugins,
+      runOnEndCallbacks,
+      pluginRefs: {
+        ref() {
+          if (++refCount === 1)
+            pluginCallbacks.set(buildKey, callback);
+        },
+        unref() {
+          if (--refCount === 0)
+            pluginCallbacks.delete(buildKey);
+        }
+      }
+    };
+  };
+  let buildServeData = (refs, options, request) => {
+    let keys = {};
+    let port = getFlag(options, keys, "port", mustBeInteger);
+    let host = getFlag(options, keys, "host", mustBeString);
+    let servedir = getFlag(options, keys, "servedir", mustBeString);
+    let onRequest = getFlag(options, keys, "onRequest", mustBeFunction);
+    let serveID = nextServeID++;
+    let onWait;
+    let wait = new Promise((resolve, reject) => {
+      onWait = (error) => {
+        serveCallbacks.delete(serveID);
+        if (error !== null)
+          reject(new Error(error));
+        else
+          resolve();
+      };
+    });
+    request.serve = { serveID };
+    checkForInvalidFlags(options, keys, `in serve() call`);
+    if (port !== void 0)
+      request.serve.port = port;
+    if (host !== void 0)
+      request.serve.host = host;
+    if (servedir !== void 0)
+      request.serve.servedir = servedir;
+    serveCallbacks.set(serveID, {
+      onRequest,
+      onWait
+    });
+    return {
+      wait,
+      stop() {
+        sendRequest(refs, { command: "serve-stop", serveID }, () => {
+        });
+      }
+    };
+  };
+  const buildLogLevelDefault = "warning";
+  const transformLogLevelDefault = "silent";
+  let buildOrServe = (args) => {
+    let key = nextBuildKey++;
+    const details = createObjectStash();
+    let plugins;
+    let { refs, options, isTTY, callback } = args;
+    if (typeof options === "object") {
+      let value = options.plugins;
+      if (value !== void 0) {
+        if (!Array.isArray(value))
+          throw new Error(`"plugins" must be an array`);
+        plugins = value;
+      }
+    }
+    let logPluginError = (e, pluginName, note, done) => {
+      let flags = [];
+      try {
+        pushLogFlags(flags, options, {}, isTTY, buildLogLevelDefault);
+      } catch (e2) {
+      }
+      const message = extractErrorMessageV8(e, streamIn, details, note, pluginName);
+      sendRequest(refs, { command: "error", flags, error: message }, () => {
+        message.detail = details.load(message.detail);
+        done(message);
+      });
+    };
+    let handleError = (e, pluginName) => {
+      logPluginError(e, pluginName, void 0, (error) => {
+        callback(failureErrorWithLog("Build failed", [error], []), null);
+      });
+    };
+    if (plugins && plugins.length > 0) {
+      if (streamIn.isSync)
+        return handleError(new Error("Cannot use plugins in synchronous API calls"), "");
+      handlePlugins(options, plugins, key, details).then((result) => {
+        if (!result.ok) {
+          handleError(result.error, result.pluginName);
+        } else {
+          try {
+            buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
+              key,
+              details,
+              logPluginError,
+              requestPlugins: result.requestPlugins,
+              runOnEndCallbacks: result.runOnEndCallbacks,
+              pluginRefs: result.pluginRefs
+            }));
+          } catch (e) {
+            handleError(e, "");
+          }
+        }
+      }, (e) => handleError(e, ""));
+    } else {
+      try {
+        buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
+          key,
+          details,
+          logPluginError,
+          requestPlugins: null,
+          runOnEndCallbacks: (result, logPluginError2, done) => done(),
+          pluginRefs: null
+        }));
+      } catch (e) {
+        handleError(e, "");
+      }
+    }
+  };
+  let buildOrServeContinue = ({
+    callName,
+    refs: callerRefs,
+    serveOptions,
+    options,
+    isTTY,
+    defaultWD,
+    callback,
+    key,
+    details,
+    logPluginError,
+    requestPlugins,
+    runOnEndCallbacks,
+    pluginRefs
+  }) => {
+    const refs = {
+      ref() {
+        if (pluginRefs)
+          pluginRefs.ref();
+        if (callerRefs)
+          callerRefs.ref();
+      },
+      unref() {
+        if (pluginRefs)
+          pluginRefs.unref();
+        if (callerRefs)
+          callerRefs.unref();
+      }
+    };
+    let writeDefault = !streamIn.isBrowser;
+    let {
+      entries,
+      flags,
+      write,
+      stdinContents,
+      stdinResolveDir,
+      absWorkingDir,
+      incremental,
+      nodePaths,
+      watch
+    } = flagsForBuildOptions(callName, options, isTTY, buildLogLevelDefault, writeDefault);
+    let request = {
+      command: "build",
+      key,
+      entries,
+      flags,
+      write,
+      stdinContents,
+      stdinResolveDir,
+      absWorkingDir: absWorkingDir || defaultWD,
+      incremental,
+      nodePaths
+    };
+    if (requestPlugins)
+      request.plugins = requestPlugins;
+    let serve2 = serveOptions && buildServeData(refs, serveOptions, request);
+    let rebuild;
+    let stop;
+    let copyResponseToResult = (response, result) => {
+      if (response.outputFiles)
+        result.outputFiles = response.outputFiles.map(convertOutputFiles);
+      if (response.metafile)
+        result.metafile = JSON.parse(response.metafile);
+      if (response.writeToStdout !== void 0)
+        console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, ""));
+    };
+    let buildResponseToResult = (response, callback2) => {
+      let result = {
+        errors: replaceDetailsInMessages(response.errors, details),
+        warnings: replaceDetailsInMessages(response.warnings, details)
+      };
+      copyResponseToResult(response, result);
+      runOnEndCallbacks(result, logPluginError, () => {
+        if (result.errors.length > 0) {
+          return callback2(failureErrorWithLog("Build failed", result.errors, result.warnings), null);
+        }
+        if (response.rebuildID !== void 0) {
+          if (!rebuild) {
+            let isDisposed = false;
+            rebuild = () => new Promise((resolve, reject) => {
+              if (isDisposed || isClosed)
+                throw new Error("Cannot rebuild");
+              sendRequest(refs, { command: "rebuild", rebuildID: response.rebuildID }, (error2, response2) => {
+                if (error2) {
+                  const message = { pluginName: "", text: error2, location: null, notes: [], detail: void 0 };
+                  return callback2(failureErrorWithLog("Build failed", [message], []), null);
+                }
+                buildResponseToResult(response2, (error3, result3) => {
+                  if (error3)
+                    reject(error3);
+                  else
+                    resolve(result3);
+                });
+              });
+            });
+            refs.ref();
+            rebuild.dispose = () => {
+              if (isDisposed)
+                return;
+              isDisposed = true;
+              sendRequest(refs, { command: "rebuild-dispose", rebuildID: response.rebuildID }, () => {
+              });
+              refs.unref();
+            };
+          }
+          result.rebuild = rebuild;
+        }
+        if (response.watchID !== void 0) {
+          if (!stop) {
+            let isStopped = false;
+            refs.ref();
+            stop = () => {
+              if (isStopped)
+                return;
+              isStopped = true;
+              watchCallbacks.delete(response.watchID);
+              sendRequest(refs, { command: "watch-stop", watchID: response.watchID }, () => {
+              });
+              refs.unref();
+            };
+            if (watch) {
+              watchCallbacks.set(response.watchID, (serviceStopError, watchResponse) => {
+                if (serviceStopError) {
+                  if (watch.onRebuild)
+                    watch.onRebuild(serviceStopError, null);
+                  return;
+                }
+                let result2 = {
+                  errors: replaceDetailsInMessages(watchResponse.errors, details),
+                  warnings: replaceDetailsInMessages(watchResponse.warnings, details)
+                };
+                copyResponseToResult(watchResponse, result2);
+                runOnEndCallbacks(result2, logPluginError, () => {
+                  if (result2.errors.length > 0) {
+                    if (watch.onRebuild)
+                      watch.onRebuild(failureErrorWithLog("Build failed", result2.errors, result2.warnings), null);
+                    return;
+                  }
+                  if (watchResponse.rebuildID !== void 0)
+                    result2.rebuild = rebuild;
+                  result2.stop = stop;
+                  if (watch.onRebuild)
+                    watch.onRebuild(null, result2);
+                });
+              });
+            }
+          }
+          result.stop = stop;
+        }
+        callback2(null, result);
+      });
+    };
+    if (write && streamIn.isBrowser)
+      throw new Error(`Cannot enable "write" in the browser`);
+    if (incremental && streamIn.isSync)
+      throw new Error(`Cannot use "incremental" with a synchronous build`);
+    if (watch && streamIn.isSync)
+      throw new Error(`Cannot use "watch" with a synchronous build`);
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      if (serve2) {
+        let serveResponse = response;
+        let isStopped = false;
+        refs.ref();
+        let result = {
+          port: serveResponse.port,
+          host: serveResponse.host,
+          wait: serve2.wait,
+          stop() {
+            if (isStopped)
+              return;
+            isStopped = true;
+            serve2.stop();
+            refs.unref();
+          }
+        };
+        refs.ref();
+        serve2.wait.then(refs.unref, refs.unref);
+        return callback(null, result);
+      }
+      return buildResponseToResult(response, callback);
+    });
+  };
+  let transform2 = ({ callName, refs, input, options, isTTY, fs, callback }) => {
+    const details = createObjectStash();
+    let start = (inputPath) => {
+      try {
+        if (typeof input !== "string")
+          throw new Error('The input to "transform" must be a string');
+        let flags = flagsForTransformOptions(callName, options, isTTY, transformLogLevelDefault);
+        let request = {
+          command: "transform",
+          flags,
+          inputFS: inputPath !== null,
+          input: inputPath !== null ? inputPath : input
+        };
+        sendRequest(refs, request, (error, response) => {
+          if (error)
+            return callback(new Error(error), null);
+          let errors = replaceDetailsInMessages(response.errors, details);
+          let warnings = replaceDetailsInMessages(response.warnings, details);
+          let outstanding = 1;
+          let next = () => --outstanding === 0 && callback(null, { warnings, code: response.code, map: response.map });
+          if (errors.length > 0)
+            return callback(failureErrorWithLog("Transform failed", errors, warnings), null);
+          if (response.codeFS) {
+            outstanding++;
+            fs.readFile(response.code, (err, contents) => {
+              if (err !== null) {
+                callback(err, null);
+              } else {
+                response.code = contents;
+                next();
+              }
+            });
+          }
+          if (response.mapFS) {
+            outstanding++;
+            fs.readFile(response.map, (err, contents) => {
+              if (err !== null) {
+                callback(err, null);
+              } else {
+                response.map = contents;
+                next();
+              }
+            });
+          }
+          next();
+        });
+      } catch (e) {
+        let flags = [];
+        try {
+          pushLogFlags(flags, options, {}, isTTY, transformLogLevelDefault);
+        } catch (e2) {
+        }
+        const error = extractErrorMessageV8(e, streamIn, details, void 0, "");
+        sendRequest(refs, { command: "error", flags, error }, () => {
+          error.detail = details.load(error.detail);
+          callback(failureErrorWithLog("Transform failed", [error], []), null);
+        });
+      }
+    };
+    if (typeof input === "string" && input.length > 1024 * 1024) {
+      let next = start;
+      start = () => fs.writeFile(input, next);
+    }
+    start(null);
+  };
+  let formatMessages2 = ({ callName, refs, messages, options, callback }) => {
+    let result = sanitizeMessages(messages, "messages", null, "");
+    if (!options)
+      throw new Error(`Missing second argument in ${callName}() call`);
+    let keys = {};
+    let kind = getFlag(options, keys, "kind", mustBeString);
+    let color = getFlag(options, keys, "color", mustBeBoolean);
+    let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
+    checkForInvalidFlags(options, keys, `in ${callName}() call`);
+    if (kind === void 0)
+      throw new Error(`Missing "kind" in ${callName}() call`);
+    if (kind !== "error" && kind !== "warning")
+      throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
+    let request = {
+      command: "format-msgs",
+      messages: result,
+      isWarning: kind === "warning"
+    };
+    if (color !== void 0)
+      request.color = color;
+    if (terminalWidth !== void 0)
+      request.terminalWidth = terminalWidth;
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      callback(null, response.messages);
+    });
+  };
+  let analyzeMetafile2 = ({ callName, refs, metafile, options, callback }) => {
+    if (options === void 0)
+      options = {};
+    let keys = {};
+    let color = getFlag(options, keys, "color", mustBeBoolean);
+    let verbose = getFlag(options, keys, "verbose", mustBeBoolean);
+    checkForInvalidFlags(options, keys, `in ${callName}() call`);
+    let request = {
+      command: "analyze-metafile",
+      metafile
+    };
+    if (color !== void 0)
+      request.color = color;
+    if (verbose !== void 0)
+      request.verbose = verbose;
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      callback(null, response.result);
+    });
+  };
+  return {
+    readFromStdout,
+    afterClose,
+    service: {
+      buildOrServe,
+      transform: transform2,
+      formatMessages: formatMessages2,
+      analyzeMetafile: analyzeMetafile2
+    }
+  };
+}
+function createObjectStash() {
+  const map = new Map();
+  let nextID = 0;
+  return {
+    load(id) {
+      return map.get(id);
+    },
+    store(value) {
+      if (value === void 0)
+        return -1;
+      const id = nextID++;
+      map.set(id, value);
+      return id;
+    }
+  };
+}
+function extractCallerV8(e, streamIn, ident) {
+  let note;
+  let tried = false;
+  return () => {
+    if (tried)
+      return note;
+    tried = true;
+    try {
+      let lines = (e.stack + "").split("\n");
+      lines.splice(1, 1);
+      let location = parseStackLinesV8(streamIn, lines, ident);
+      if (location) {
+        note = { text: e.message, location };
+        return note;
+      }
+    } catch (e2) {
+    }
+  };
+}
+function extractErrorMessageV8(e, streamIn, stash, note, pluginName) {
+  let text = "Internal error";
+  let location = null;
+  try {
+    text = (e && e.message || e) + "";
+  } catch (e2) {
+  }
+  try {
+    location = parseStackLinesV8(streamIn, (e.stack + "").split("\n"), "");
+  } catch (e2) {
+  }
+  return { pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(e) : -1 };
+}
+function parseStackLinesV8(streamIn, lines, ident) {
+  let at = "    at ";
+  if (streamIn.readFileSync && !lines[0].startsWith(at) && lines[1].startsWith(at)) {
+    for (let i = 1; i < lines.length; i++) {
+      let line = lines[i];
+      if (!line.startsWith(at))
+        continue;
+      line = line.slice(at.length);
+      while (true) {
+        let match = /^(?:new |async )?\S+ \((.*)\)$/.exec(line);
+        if (match) {
+          line = match[1];
+          continue;
+        }
+        match = /^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(line);
+        if (match) {
+          line = match[1];
+          continue;
+        }
+        match = /^(\S+):(\d+):(\d+)$/.exec(line);
+        if (match) {
+          let contents;
+          try {
+            contents = streamIn.readFileSync(match[1], "utf8");
+          } catch (e) {
+            break;
+          }
+          let lineText = contents.split(/\r\n|\r|\n|\u2028|\u2029/)[+match[2] - 1] || "";
+          let column = +match[3] - 1;
+          let length = lineText.slice(column, column + ident.length) === ident ? ident.length : 0;
+          return {
+            file: match[1],
+            namespace: "file",
+            line: +match[2],
+            column: encodeUTF8(lineText.slice(0, column)).length,
+            length: encodeUTF8(lineText.slice(column, column + length)).length,
+            lineText: lineText + "\n" + lines.slice(1).join("\n"),
+            suggestion: ""
+          };
+        }
+        break;
+      }
+    }
+  }
+  return null;
+}
+function failureErrorWithLog(text, errors, warnings) {
+  let limit = 5;
+  let summary = errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((e, i) => {
+    if (i === limit)
+      return "\n...";
+    if (!e.location)
+      return `
+error: ${e.text}`;
+    let { file, line, column } = e.location;
+    let pluginText = e.pluginName ? `[plugin: ${e.pluginName}] ` : "";
+    return `
+${file}:${line}:${column}: error: ${pluginText}${e.text}`;
+  }).join("");
+  let error = new Error(`${text}${summary}`);
+  error.errors = errors;
+  error.warnings = warnings;
+  return error;
+}
+function replaceDetailsInMessages(messages, stash) {
+  for (const message of messages) {
+    message.detail = stash.load(message.detail);
+  }
+  return messages;
+}
+function sanitizeLocation(location, where) {
+  if (location == null)
+    return null;
+  let keys = {};
+  let file = getFlag(location, keys, "file", mustBeString);
+  let namespace = getFlag(location, keys, "namespace", mustBeString);
+  let line = getFlag(location, keys, "line", mustBeInteger);
+  let column = getFlag(location, keys, "column", mustBeInteger);
+  let length = getFlag(location, keys, "length", mustBeInteger);
+  let lineText = getFlag(location, keys, "lineText", mustBeString);
+  let suggestion = getFlag(location, keys, "suggestion", mustBeString);
+  checkForInvalidFlags(location, keys, where);
+  return {
+    file: file || "",
+    namespace: namespace || "",
+    line: line || 0,
+    column: column || 0,
+    length: length || 0,
+    lineText: lineText || "",
+    suggestion: suggestion || ""
+  };
+}
+function sanitizeMessages(messages, property, stash, fallbackPluginName) {
+  let messagesClone = [];
+  let index = 0;
+  for (const message of messages) {
+    let keys = {};
+    let pluginName = getFlag(message, keys, "pluginName", mustBeString);
+    let text = getFlag(message, keys, "text", mustBeString);
+    let location = getFlag(message, keys, "location", mustBeObjectOrNull);
+    let notes = getFlag(message, keys, "notes", mustBeArray);
+    let detail = getFlag(message, keys, "detail", canBeAnything);
+    let where = `in element ${index} of "${property}"`;
+    checkForInvalidFlags(message, keys, where);
+    let notesClone = [];
+    if (notes) {
+      for (const note of notes) {
+        let noteKeys = {};
+        let noteText = getFlag(note, noteKeys, "text", mustBeString);
+        let noteLocation = getFlag(note, noteKeys, "location", mustBeObjectOrNull);
+        checkForInvalidFlags(note, noteKeys, where);
+        notesClone.push({
+          text: noteText || "",
+          location: sanitizeLocation(noteLocation, where)
+        });
+      }
+    }
+    messagesClone.push({
+      pluginName: pluginName || fallbackPluginName,
+      text: text || "",
+      location: sanitizeLocation(location, where),
+      notes: notesClone,
+      detail: stash ? stash.store(detail) : -1
+    });
+    index++;
+  }
+  return messagesClone;
+}
+function sanitizeStringArray(values, property) {
+  const result = [];
+  for (const value of values) {
+    if (typeof value !== "string")
+      throw new Error(`${JSON.stringify(property)} must be an array of strings`);
+    result.push(value);
+  }
+  return result;
+}
+function convertOutputFiles({ path, contents }) {
+  let text = null;
+  return {
+    path,
+    contents,
+    get text() {
+      if (text === null)
+        text = decodeUTF8(contents);
+      return text;
+    }
+  };
+}
+
+// lib/npm/browser.ts
+var version = "0.13.8";
+var build = (options) => ensureServiceIsRunning().build(options);
+var serve = () => {
+  throw new Error(`The "serve" API only works in node`);
+};
+var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
+var formatMessages = (messages, options) => ensureServiceIsRunning().formatMessages(messages, options);
+var analyzeMetafile = (metafile, options) => ensureServiceIsRunning().analyzeMetafile(metafile, options);
+var buildSync = () => {
+  throw new Error(`The "buildSync" API only works in node`);
+};
+var transformSync = () => {
+  throw new Error(`The "transformSync" API only works in node`);
+};
+var formatMessagesSync = () => {
+  throw new Error(`The "formatMessagesSync" API only works in node`);
+};
+var analyzeMetafileSync = () => {
+  throw new Error(`The "analyzeMetafileSync" API only works in node`);
+};
+var initializePromise;
+var longLivedService;
+var ensureServiceIsRunning = () => {
+  if (longLivedService)
+    return longLivedService;
+  if (initializePromise)
+    throw new Error('You need to wait for the promise returned from "initialize" to be resolved before calling this');
+  throw new Error('You need to call "initialize" before calling this');
+};
+var initialize = (options) => {
+  options = validateInitializeOptions(options || {});
+  let wasmURL = options.wasmURL;
+  let useWorker = options.worker !== false;
+  if (!wasmURL)
+    throw new Error('Must provide the "wasmURL" option');
+  wasmURL += "";
+  if (initializePromise)
+    throw new Error('Cannot call "initialize" more than once');
+  initializePromise = startRunningService(wasmURL, useWorker);
+  initializePromise.catch(() => {
+    initializePromise = void 0;
+  });
+  return initializePromise;
+};
+var startRunningService = async (wasmURL, useWorker) => {
+  let res = await fetch(wasmURL);
+  if (!res.ok)
+    throw new Error(`Failed to download ${JSON.stringify(wasmURL)}`);
+  let wasm = await res.arrayBuffer();
+  let code = `{let global={};for(let o=self;o;o=Object.getPrototypeOf(o))for(let k of Object.getOwnPropertyNames(o))if(!(k in global))Object.defineProperty(global,k,{get:()=>self[k]});// Copyright 2018 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+(() => {
+	// Map multiple JavaScript environments to a single common API,
+	// preferring web standards over Node.js API.
+	//
+	// Environments considered:
+	// - Browsers
+	// - Node.js
+	// - Electron
+	// - Parcel
+	// - Webpack
+
+	if (typeof global !== "undefined") {
+		// global already exists
+	} else if (typeof window !== "undefined") {
+		window.global = window;
+	} else if (typeof self !== "undefined") {
+		self.global = self;
+	} else {
+		throw new Error("cannot export Go (neither global, window nor self is defined)");
+	}
+
+	if (!global.require && typeof require !== "undefined") {
+		global.require = require;
+	}
+
+	if (!global.fs && global.require) {
+		const fs = require("fs");
+		if (typeof fs === "object" && fs !== null && Object.keys(fs).length !== 0) {
+			
+    global.fs = Object.assign({}, fs, {
+      // Hack around a Unicode bug in node: https://github.com/nodejs/node/issues/24550
+      write(fd, buf, offset, length, position, callback) {
+        if (offset === 0 && length === buf.length && position === null) {
+          if (fd === process.stdout.fd) {
+            try {
+              process.stdout.write(buf, err => err ? callback(err, 0, null) : callback(null, length, buf));
+            } catch (err) {
+              callback(err, 0, null);
+            }
+            return;
+          }
+          if (fd === process.stderr.fd) {
+            try {
+              process.stderr.write(buf, err => err ? callback(err, 0, null) : callback(null, length, buf));
+            } catch (err) {
+              callback(err, 0, null);
+            }
+            return;
+          }
+        }
+        fs.write(fd, buf, offset, length, position, callback);
+      },
+    });
+  
+		}
+	}
+
+	const enosys = () => {
+		const err = new Error("not implemented");
+		err.code = "ENOSYS";
+		return err;
+	};
+
+	if (!global.fs) {
+		let outputBuf = "";
+		global.fs = {
+			constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
+			writeSync(fd, buf) {
+				outputBuf += decoder.decode(buf);
+				const nl = outputBuf.lastIndexOf("\\n");
+				if (nl != -1) {
+					console.log(outputBuf.substr(0, nl));
+					outputBuf = outputBuf.substr(nl + 1);
+				}
+				return buf.length;
+			},
+			write(fd, buf, offset, length, position, callback) {
+				if (offset !== 0 || length !== buf.length || position !== null) {
+					callback(enosys());
+					return;
+				}
+				const n = this.writeSync(fd, buf);
+				callback(null, n);
+			},
+			chmod(path, mode, callback) { callback(enosys()); },
+			chown(path, uid, gid, callback) { callback(enosys()); },
+			close(fd, callback) { callback(enosys()); },
+			fchmod(fd, mode, callback) { callback(enosys()); },
+			fchown(fd, uid, gid, callback) { callback(enosys()); },
+			fstat(fd, callback) { callback(enosys()); },
+			fsync(fd, callback) { callback(null); },
+			ftruncate(fd, length, callback) { callback(enosys()); },
+			lchown(path, uid, gid, callback) { callback(enosys()); },
+			link(path, link, callback) { callback(enosys()); },
+			lstat(path, callback) { callback(enosys()); },
+			mkdir(path, perm, callback) { callback(enosys()); },
+			open(path, flags, mode, callback) { callback(enosys()); },
+			read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
+			readdir(path, callback) { callback(enosys()); },
+			readlink(path, callback) { callback(enosys()); },
+			rename(from, to, callback) { callback(enosys()); },
+			rmdir(path, callback) { callback(enosys()); },
+			stat(path, callback) { callback(enosys()); },
+			symlink(path, link, callback) { callback(enosys()); },
+			truncate(path, length, callback) { callback(enosys()); },
+			unlink(path, callback) { callback(enosys()); },
+			utimes(path, atime, mtime, callback) { callback(enosys()); },
+		};
+	}
+
+	if (!global.process) {
+		global.process = {
+			getuid() { return -1; },
+			getgid() { return -1; },
+			geteuid() { return -1; },
+			getegid() { return -1; },
+			getgroups() { throw enosys(); },
+			pid: -1,
+			ppid: -1,
+			umask() { throw enosys(); },
+			cwd() { throw enosys(); },
+			chdir() { throw enosys(); },
+		}
+	}
+
+	if (!global.crypto && global.require) {
+		const nodeCrypto = require("crypto");
+		global.crypto = {
+			getRandomValues(b) {
+				nodeCrypto.randomFillSync(b);
+			},
+		};
+	}
+	if (!global.crypto) {
+		throw new Error("global.crypto is not available, polyfill required (getRandomValues only)");
+	}
+
+	if (!global.performance) {
+		global.performance = {
+			now() {
+				const [sec, nsec] = process.hrtime();
+				return sec * 1000 + nsec / 1000000;
+			},
+		};
+	}
+
+	if (!global.TextEncoder && global.require) {
+		global.TextEncoder = require("util").TextEncoder;
+	}
+	if (!global.TextEncoder) {
+		throw new Error("global.TextEncoder is not available, polyfill required");
+	}
+
+	if (!global.TextDecoder && global.require) {
+		global.TextDecoder = require("util").TextDecoder;
+	}
+	if (!global.TextDecoder) {
+		throw new Error("global.TextDecoder is not available, polyfill required");
+	}
+
+	// End of polyfills for common API.
+
+	const encoder = new TextEncoder("utf-8");
+	const decoder = new TextDecoder("utf-8");
+
+	global.Go = class {
+		constructor() {
+			this.argv = ["js"];
+			this.env = {};
+			this.exit = (code) => {
+				if (code !== 0) {
+					console.warn("exit code:", code);
+				}
+			};
+			this._exitPromise = new Promise((resolve) => {
+				this._resolveExitPromise = resolve;
+			});
+			this._pendingEvent = null;
+			this._scheduledTimeouts = new Map();
+			this._nextCallbackTimeoutID = 1;
+
+			const setInt64 = (addr, v) => {
+				this.mem.setUint32(addr + 0, v, true);
+				this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
+			}
+
+			const getInt64 = (addr) => {
+				const low = this.mem.getUint32(addr + 0, true);
+				const high = this.mem.getInt32(addr + 4, true);
+				return low + high * 4294967296;
+			}
+
+			const loadValue = (addr) => {
+				const f = this.mem.getFloat64(addr, true);
+				if (f === 0) {
+					return undefined;
+				}
+				if (!isNaN(f)) {
+					return f;
+				}
+
+				const id = this.mem.getUint32(addr, true);
+				return this._values[id];
+			}
+
+			const storeValue = (addr, v) => {
+				const nanHead = 0x7FF80000;
+
+				if (typeof v === "number" && v !== 0) {
+					if (isNaN(v)) {
+						this.mem.setUint32(addr + 4, nanHead, true);
+						this.mem.setUint32(addr, 0, true);
+						return;
+					}
+					this.mem.setFloat64(addr, v, true);
+					return;
+				}
+
+				if (v === undefined) {
+					this.mem.setFloat64(addr, 0, true);
+					return;
+				}
+
+				let id = this._ids.get(v);
+				if (id === undefined) {
+					id = this._idPool.pop();
+					if (id === undefined) {
+						id = this._values.length;
+					}
+					this._values[id] = v;
+					this._goRefCounts[id] = 0;
+					this._ids.set(v, id);
+				}
+				this._goRefCounts[id]++;
+				let typeFlag = 0;
+				switch (typeof v) {
+					case "object":
+						if (v !== null) {
+							typeFlag = 1;
+						}
+						break;
+					case "string":
+						typeFlag = 2;
+						break;
+					case "symbol":
+						typeFlag = 3;
+						break;
+					case "function":
+						typeFlag = 4;
+						break;
+				}
+				this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
+				this.mem.setUint32(addr, id, true);
+			}
+
+			const loadSlice = (addr) => {
+				const array = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				return new Uint8Array(this._inst.exports.mem.buffer, array, len);
+			}
+
+			const loadSliceOfValues = (addr) => {
+				const array = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				const a = new Array(len);
+				for (let i = 0; i < len; i++) {
+					a[i] = loadValue(array + i * 8);
+				}
+				return a;
+			}
+
+			const loadString = (addr) => {
+				const saddr = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
+			}
+
+			const timeOrigin = Date.now() - performance.now();
+			this.importObject = {
+				go: {
+					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
+					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
+					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
+					// This changes the SP, thus we have to update the SP used by the imported function.
+
+					// func wasmExit(code int32)
+					"runtime.wasmExit": (sp) => {
+						sp >>>= 0;
+						const code = this.mem.getInt32(sp + 8, true);
+						this.exited = true;
+						delete this._inst;
+						delete this._values;
+						delete this._goRefCounts;
+						delete this._ids;
+						delete this._idPool;
+						this.exit(code);
+					},
+
+					// func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
+					"runtime.wasmWrite": (sp) => {
+						sp >>>= 0;
+						const fd = getInt64(sp + 8);
+						const p = getInt64(sp + 16);
+						const n = this.mem.getInt32(sp + 24, true);
+						fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
+					},
+
+					// func resetMemoryDataView()
+					"runtime.resetMemoryDataView": (sp) => {
+						sp >>>= 0;
+						this.mem = new DataView(this._inst.exports.mem.buffer);
+					},
+
+					// func nanotime1() int64
+					"runtime.nanotime1": (sp) => {
+						sp >>>= 0;
+						setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);
+					},
+
+					// func walltime() (sec int64, nsec int32)
+					"runtime.walltime": (sp) => {
+						sp >>>= 0;
+						const msec = (new Date).getTime();
+						setInt64(sp + 8, msec / 1000);
+						this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);
+					},
+
+					// func scheduleTimeoutEvent(delay int64) int32
+					"runtime.scheduleTimeoutEvent": (sp) => {
+						sp >>>= 0;
+						const id = this._nextCallbackTimeoutID;
+						this._nextCallbackTimeoutID++;
+						this._scheduledTimeouts.set(id, setTimeout(
+							() => {
+								this._resume();
+								while (this._scheduledTimeouts.has(id)) {
+									// for some reason Go failed to register the timeout event, log and try again
+									// (temporary workaround for https://github.com/golang/go/issues/28975)
+									console.warn("scheduleTimeoutEvent: missed timeout event");
+									this._resume();
+								}
+							},
+							getInt64(sp + 8) + 1, // setTimeout has been seen to fire up to 1 millisecond early
+						));
+						this.mem.setInt32(sp + 16, id, true);
+					},
+
+					// func clearTimeoutEvent(id int32)
+					"runtime.clearTimeoutEvent": (sp) => {
+						sp >>>= 0;
+						const id = this.mem.getInt32(sp + 8, true);
+						clearTimeout(this._scheduledTimeouts.get(id));
+						this._scheduledTimeouts.delete(id);
+					},
+
+					// func getRandomData(r []byte)
+					"runtime.getRandomData": (sp) => {
+						sp >>>= 0;
+						crypto.getRandomValues(loadSlice(sp + 8));
+					},
+
+					// func finalizeRef(v ref)
+					"syscall/js.finalizeRef": (sp) => {
+						sp >>>= 0;
+						const id = this.mem.getUint32(sp + 8, true);
+						this._goRefCounts[id]--;
+						if (this._goRefCounts[id] === 0) {
+							const v = this._values[id];
+							this._values[id] = null;
+							this._ids.delete(v);
+							this._idPool.push(id);
+						}
+					},
+
+					// func stringVal(value string) ref
+					"syscall/js.stringVal": (sp) => {
+						sp >>>= 0;
+						storeValue(sp + 24, loadString(sp + 8));
+					},
+
+					// func valueGet(v ref, p string) ref
+					"syscall/js.valueGet": (sp) => {
+						sp >>>= 0;
+						const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));
+						sp = this._inst.exports.getsp() >>> 0; // see comment above
+						storeValue(sp + 32, result);
+					},
+
+					// func valueSet(v ref, p string, x ref)
+					"syscall/js.valueSet": (sp) => {
+						sp >>>= 0;
+						Reflect.set(loadValue(sp + 8), loadString(sp + 16), loadValue(sp + 32));
+					},
+
+					// func valueDelete(v ref, p string)
+					"syscall/js.valueDelete": (sp) => {
+						sp >>>= 0;
+						Reflect.deleteProperty(loadValue(sp + 8), loadString(sp + 16));
+					},
+
+					// func valueIndex(v ref, i int) ref
+					"syscall/js.valueIndex": (sp) => {
+						sp >>>= 0;
+						storeValue(sp + 24, Reflect.get(loadValue(sp + 8), getInt64(sp + 16)));
+					},
+
+					// valueSetIndex(v ref, i int, x ref)
+					"syscall/js.valueSetIndex": (sp) => {
+						sp >>>= 0;
+						Reflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24));
+					},
+
+					// func valueCall(v ref, m string, args []ref) (ref, bool)
+					"syscall/js.valueCall": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const m = Reflect.get(v, loadString(sp + 16));
+							const args = loadSliceOfValues(sp + 32);
+							const result = Reflect.apply(m, v, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 56, result);
+							this.mem.setUint8(sp + 64, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 56, err);
+							this.mem.setUint8(sp + 64, 0);
+						}
+					},
+
+					// func valueInvoke(v ref, args []ref) (ref, bool)
+					"syscall/js.valueInvoke": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const args = loadSliceOfValues(sp + 16);
+							const result = Reflect.apply(v, undefined, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, result);
+							this.mem.setUint8(sp + 48, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, err);
+							this.mem.setUint8(sp + 48, 0);
+						}
+					},
+
+					// func valueNew(v ref, args []ref) (ref, bool)
+					"syscall/js.valueNew": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const args = loadSliceOfValues(sp + 16);
+							const result = Reflect.construct(v, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, result);
+							this.mem.setUint8(sp + 48, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, err);
+							this.mem.setUint8(sp + 48, 0);
+						}
+					},
+
+					// func valueLength(v ref) int
+					"syscall/js.valueLength": (sp) => {
+						sp >>>= 0;
+						setInt64(sp + 16, parseInt(loadValue(sp + 8).length));
+					},
+
+					// valuePrepareString(v ref) (ref, int)
+					"syscall/js.valuePrepareString": (sp) => {
+						sp >>>= 0;
+						const str = encoder.encode(String(loadValue(sp + 8)));
+						storeValue(sp + 16, str);
+						setInt64(sp + 24, str.length);
+					},
+
+					// valueLoadString(v ref, b []byte)
+					"syscall/js.valueLoadString": (sp) => {
+						sp >>>= 0;
+						const str = loadValue(sp + 8);
+						loadSlice(sp + 16).set(str);
+					},
+
+					// func valueInstanceOf(v ref, t ref) bool
+					"syscall/js.valueInstanceOf": (sp) => {
+						sp >>>= 0;
+						this.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);
+					},
+
+					// func copyBytesToGo(dst []byte, src ref) (int, bool)
+					"syscall/js.copyBytesToGo": (sp) => {
+						sp >>>= 0;
+						const dst = loadSlice(sp + 8);
+						const src = loadValue(sp + 32);
+						if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
+							this.mem.setUint8(sp + 48, 0);
+							return;
+						}
+						const toCopy = src.subarray(0, dst.length);
+						dst.set(toCopy);
+						setInt64(sp + 40, toCopy.length);
+						this.mem.setUint8(sp + 48, 1);
+					},
+
+					// func copyBytesToJS(dst ref, src []byte) (int, bool)
+					"syscall/js.copyBytesToJS": (sp) => {
+						sp >>>= 0;
+						const dst = loadValue(sp + 8);
+						const src = loadSlice(sp + 16);
+						if (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {
+							this.mem.setUint8(sp + 48, 0);
+							return;
+						}
+						const toCopy = src.subarray(0, dst.length);
+						dst.set(toCopy);
+						setInt64(sp + 40, toCopy.length);
+						this.mem.setUint8(sp + 48, 1);
+					},
+
+					"debug": (value) => {
+						console.log(value);
+					},
+				}
+			};
+		}
+
+		async run(instance) {
+			if (!(instance instanceof WebAssembly.Instance)) {
+				throw new Error("Go.run: WebAssembly.Instance expected");
+			}
+			this._inst = instance;
+			this.mem = new DataView(this._inst.exports.mem.buffer);
+			this._values = [ // JS values that Go currently has references to, indexed by reference id
+				NaN,
+				0,
+				null,
+				true,
+				false,
+				global,
+				this,
+			];
+			this._goRefCounts = new Array(this._values.length).fill(Infinity); // number of references that Go has to a JS value, indexed by reference id
+			this._ids = new Map([ // mapping from JS values to reference ids
+				[0, 1],
+				[null, 2],
+				[true, 3],
+				[false, 4],
+				[global, 5],
+				[this, 6],
+			]);
+			this._idPool = [];   // unused ids that have been garbage collected
+			this.exited = false; // whether the Go program has exited
+
+			// Pass command line arguments and environment variables to WebAssembly by writing them to the linear memory.
+			let offset = 4096;
+
+			const strPtr = (str) => {
+				const ptr = offset;
+				const bytes = encoder.encode(str + "\\0");
+				new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);
+				offset += bytes.length;
+				if (offset % 8 !== 0) {
+					offset += 8 - (offset % 8);
+				}
+				return ptr;
+			};
+
+			const argc = this.argv.length;
+
+			const argvPtrs = [];
+			this.argv.forEach((arg) => {
+				argvPtrs.push(strPtr(arg));
+			});
+			argvPtrs.push(0);
+
+			const keys = Object.keys(this.env).sort();
+			keys.forEach((key) => {
+				argvPtrs.push(strPtr(\`\${key}=\${this.env[key]}\`));
+			});
+			argvPtrs.push(0);
+
+			const argv = offset;
+			argvPtrs.forEach((ptr) => {
+				this.mem.setUint32(offset, ptr, true);
+				this.mem.setUint32(offset + 4, 0, true);
+				offset += 8;
+			});
+
+			// The linker guarantees global data starts from at least wasmMinDataAddr.
+			// Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
+			const wasmMinDataAddr = 4096 + 4096;
+			if (offset >= wasmMinDataAddr) {
+				throw new Error("command line too long");
+			}
+
+			this._inst.exports.run(argc, argv);
+			if (this.exited) {
+				this._resolveExitPromise();
+			}
+			await this._exitPromise;
+		}
+
+		_resume() {
+			if (this.exited) {
+				throw new Error("Go program has already exited");
+			}
+			this._inst.exports.resume();
+			if (this.exited) {
+				this._resolveExitPromise();
+			}
+		}
+
+		_makeFuncWrapper(id) {
+			const go = this;
+			return function () {
+				const event = { id: id, this: this, args: arguments };
+				go._pendingEvent = event;
+				go._resume();
+				return event.result;
+			};
+		}
+	}
+
+	if (
+		typeof module !== "undefined" &&
+		global.require &&
+		global.require.main === module &&
+		global.process &&
+		global.process.versions &&
+		!global.process.versions.electron
+	) {
+		if (process.argv.length < 3) {
+			console.error("usage: go_js_wasm_exec [wasm binary] [arguments]");
+			process.exit(1);
+		}
+
+		const go = new Go();
+		go.argv = process.argv.slice(2);
+		go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);
+		go.exit = process.exit;
+		WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
+			process.on("exit", (code) => { // Node.js exits if no event handler is pending
+				if (code === 0 && !go.exited) {
+					// deadlock, make Go print error and stack traces
+					go._pendingEvent = { id: 0 };
+					go._resume();
+				}
+			});
+			return go.run(result.instance);
+		}).catch((err) => {
+			console.error(err);
+			process.exit(1);
+		});
+	}
+})();
+onmessage = ({ data: wasm }) => {
+  let decoder = new TextDecoder();
+  let fs = global.fs;
+  let stderr = "";
+  fs.writeSync = (fd, buffer) => {
+    if (fd === 1) {
+      postMessage(buffer);
+    } else if (fd === 2) {
+      stderr += decoder.decode(buffer);
+      let parts = stderr.split("\\n");
+      if (parts.length > 1)
+        console.log(parts.slice(0, -1).join("\\n"));
+      stderr = parts[parts.length - 1];
+    } else {
+      throw new Error("Bad write");
+    }
+    return buffer.length;
+  };
+  let stdin = [];
+  let resumeStdin;
+  let stdinPos = 0;
+  onmessage = ({ data }) => {
+    if (data.length > 0) {
+      stdin.push(data);
+      if (resumeStdin)
+        resumeStdin();
+    }
+  };
+  fs.read = (fd, buffer, offset, length, position, callback) => {
+    if (fd !== 0 || offset !== 0 || length !== buffer.length || position !== null) {
+      throw new Error("Bad read");
+    }
+    if (stdin.length === 0) {
+      resumeStdin = () => fs.read(fd, buffer, offset, length, position, callback);
+      return;
+    }
+    let first = stdin[0];
+    let count = Math.max(0, Math.min(length, first.length - stdinPos));
+    buffer.set(first.subarray(stdinPos, stdinPos + count), offset);
+    stdinPos += count;
+    if (stdinPos === first.length) {
+      stdin.shift();
+      stdinPos = 0;
+    }
+    callback(null, count);
+  };
+  let go = new global.Go();
+  go.argv = ["", \`--service=\${"0.13.8"}\`];
+  WebAssembly.instantiate(wasm, go.importObject).then(({ instance }) => go.run(instance));
+};}`;
+  let worker;
+  if (useWorker) {
+    let blob = new Blob([code], { type: "text/javascript" });
+    worker = new Worker(URL.createObjectURL(blob));
+  } else {
+    let fn = new Function("postMessage", code + `var onmessage; return m => onmessage(m)`);
+    let onmessage = fn((data) => worker.onmessage({ data }));
+    worker = {
+      onmessage: null,
+      postMessage: (data) => onmessage({ data }),
+      terminate() {
+      }
+    };
+  }
+  worker.postMessage(wasm);
+  worker.onmessage = ({ data }) => readFromStdout(data);
+  let { readFromStdout, service } = createChannel({
+    writeToStdin(bytes) {
+      worker.postMessage(bytes);
+    },
+    isSync: false,
+    isBrowser: true
+  });
+  longLivedService = {
+    build: (options) => new Promise((resolve, reject) => service.buildOrServe({
+      callName: "build",
+      refs: null,
+      serveOptions: null,
+      options,
+      isTTY: false,
+      defaultWD: "/",
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    })),
+    transform: (input, options) => new Promise((resolve, reject) => service.transform({
+      callName: "transform",
+      refs: null,
+      input,
+      options: options || {},
+      isTTY: false,
+      fs: {
+        readFile(_, callback) {
+          callback(new Error("Internal error"), null);
+        },
+        writeFile(_, callback) {
+          callback(null);
+        }
+      },
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    })),
+    formatMessages: (messages, options) => new Promise((resolve, reject) => service.formatMessages({
+      callName: "formatMessages",
+      refs: null,
+      messages,
+      options,
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    })),
+    analyzeMetafile: (metafile, options) => new Promise((resolve, reject) => service.analyzeMetafile({
+      callName: "analyzeMetafile",
+      refs: null,
+      metafile: typeof metafile === "string" ? metafile : JSON.stringify(metafile),
+      options,
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    }))
+  };
+};
+export {
+  analyzeMetafile,
+  analyzeMetafileSync,
+  build,
+  buildSync,
+  formatMessages,
+  formatMessagesSync,
+  initialize,
+  serve,
+  transform,
+  transformSync,
+  version
+};
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.min.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.min.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/esm/browser.min.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,8 @@
+var Ze=Object.defineProperty,et=Object.defineProperties;var tt=Object.getOwnPropertyDescriptors;var Ce=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;var Le=(e,t,r)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pe=(e,t)=>{for(var r in t||(t={}))rt.call(t,r)&&Le(e,r,t[r]);if(Ce)for(var r of Ce(t))nt.call(t,r)&&Le(e,r,t[r]);return e},Me=(e,t)=>et(e,tt(t));function Be(e){let t=s=>{if(s===null)r.write8(0);else if(typeof s=="boolean")r.write8(1),r.write8(+s);else if(typeof s=="number")r.write8(2),r.write32(s|0);else if(typeof s=="string")r.write8(3),r.write(ae(s));else if(s instanceof Uint8Array)r.write8(4),r.write(s);else if(s instanceof Array){r.write8(5),r.write32(s.length);for(let p of s)t(p)}else{let p=Object.keys(s);r.write8(6),r.write32(p.length);for(let l of p)r.write(ae(l)),t(s[l])}},r=new Te;return r.write32(0),r.write32(e.id<<1|+!e.isRequest),t(e.value),Fe(r.buf,r.len-4,0),r.buf.subarray(0,r.len)}function Ue(e){let t=()=>{switch(r.read8()){case 0:return null;case 1:return!!r.read8();case 2:return r.read32();case 3:return ce(r.read());case 4:return r.read();case 5:{let c=r.read32(),i=[];for(let w=0;w<c;w++)i.push(t());return i}case 6:{let c=r.read32(),i={};for(let w=0;w<c;w++)i[ce(r.read())]=t();return i}default:throw new Error("Invalid packet")}},r=new Te(e),s=r.read32(),p=(s&1)==0;s>>>=1;let l=t();if(r.ptr!==e.length)throw new Error("Invalid packet");return{id:s,isRequest:p,value:l}}var Te=class{constructor(t=new Uint8Array(1024)){this.buf=t;this.len=0;this.ptr=0}_write(t){if(this.len+t>this.buf.length){let r=new Uint8Array((this.len+t)*2);r.set(this.buf),this.buf=r}return this.len+=t,this.len-t}write8(t){let r=this._write(1);this.buf[r]=t}write32(t){let r=this._write(4);Fe(this.buf,t,r)}write(t){let r=this._write(4+t.length);Fe(this.buf,t.length,r),this.buf.set(t,r+4)}_read(t){if(this.ptr+t>this.buf.length)throw new Error("Invalid packet");return this.ptr+=t,this.ptr-t}read8(){return this.buf[this._read(1)]}read32(){return Ae(this.buf,this._read(4))}read(){let t=this.read32(),r=new Uint8Array(t),s=this._read(r.length);return r.set(this.buf.subarray(s,s+t)),r}},ae,ce;if(typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined"){let e=new TextEncoder,t=new TextDecoder;ae=r=>e.encode(r),ce=r=>t.decode(r)}else if(typeof Buffer!="undefined")ae=e=>{let t=Buffer.from(e);return t instanceof Uint8Array||(t=new Uint8Array(t)),t},ce=e=>{let{buffer:t,byteOffset:r,byteLength:s}=e;return Buffer.from(t,r,s).toString()};else throw new Error("No UTF-8 codec found");function Ae(e,t){return e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24}function Fe(e,t,r){e[r++]=t,e[r++]=t>>8,e[r++]=t>>16,e[r++]=t>>24}function qe(e){if(e+="",e.indexOf(",")>=0)throw new Error(`Invalid target: ${e}`);return e}var Ne=()=>null,C=e=>typeof e=="boolean"?null:"a boolean",lt=e=>typeof e=="boolean"||typeof e=="object"&&!Array.isArray(e)?null:"a boolean or an object",y=e=>typeof e=="string"?null:"a string",We=e=>e instanceof RegExp?null:"a RegExp object",ge=e=>typeof e=="number"&&e===(e|0)?null:"an integer",je=e=>typeof e=="function"?null:"a function",z=e=>Array.isArray(e)?null:"an array",me=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?null:"an object",it=e=>typeof e=="object"&&e!==null?null:"an array or an object",ze=e=>typeof e=="object"&&!Array.isArray(e)?null:"an object or null",Ke=e=>typeof e=="string"||typeof e=="boolean"?null:"a string or a boolean",st=e=>typeof e=="string"||typeof e=="object"&&e!==null&&!Array.isArray(e)?null:"a string or an object",ot=e=>typeof e=="string"||Array.isArray(e)?null:"a string or an array",at=e=>typeof e=="string"||e instanceof Uint8Array?null:"a string or a Uint8Array";function n(e,t,r,s){let p=e[r];if(t[r+""]=!0,p===void 0)return;let l=s(p);if(l!==null)throw new Error(`"${r}" must be ${l}`);return p}function _(e,t,r){for(let s in e)if(!(s in t))throw new Error(`Invalid option ${r}: "${s}"`)}function _e(e){let t=Object.create(null),r=n(e,t,"wasmURL",y),s=n(e,t,"worker",C);return _(e,t,"in startService() call"),{wasmURL:r,worker:s}}function Re(e,t,r,s,p){let l=n(t,r,"color",C),c=n(t,r,"logLevel",y),i=n(t,r,"logLimit",ge);l!==void 0?e.push(`--color=${l}`):s&&e.push("--color=true"),e.push(`--log-level=${c||p}`),e.push(`--log-limit=${i||0}`)}function Ve(e,t,r){let s=n(t,r,"legalComments",y),p=n(t,r,"sourceRoot",y),l=n(t,r,"sourcesContent",C),c=n(t,r,"target",ot),i=n(t,r,"format",y),w=n(t,r,"globalName",y),O=n(t,r,"minify",C),x=n(t,r,"minifySyntax",C),N=n(t,r,"minifyWhitespace",C),L=n(t,r,"minifyIdentifiers",C),k=n(t,r,"charset",y),q=n(t,r,"treeShaking",C),ee=n(t,r,"ignoreAnnotations",C),G=n(t,r,"jsx",y),te=n(t,r,"jsxFactory",y),re=n(t,r,"jsxFragment",y),le=n(t,r,"define",me),ie=n(t,r,"pure",z),ue=n(t,r,"keepNames",C);if(s&&e.push(`--legal-comments=${s}`),p!==void 0&&e.push(`--source-root=${p}`),l!==void 0&&e.push(`--sources-content=${l}`),c&&(Array.isArray(c)?e.push(`--target=${Array.from(c).map(qe).join(",")}`):e.push(`--target=${qe(c)}`)),i&&e.push(`--format=${i}`),w&&e.push(`--global-name=${w}`),O&&e.push("--minify"),x&&e.push("--minify-syntax"),N&&e.push("--minify-whitespace"),L&&e.push("--minify-identifiers"),k&&e.push(`--charset=${k}`),q!==void 0&&e.push(`--tree-shaking=${q}`),ee&&e.push("--ignore-annotations"),G&&e.push(`--jsx=${G}`),te&&e.push(`--jsx-factory=${te}`),re&&e.push(`--jsx-fragment=${re}`),le)for(let Q in le){if(Q.indexOf("=")>=0)throw new Error(`Invalid define: ${Q}`);e.push(`--define:${Q}=${le[Q]}`)}if(ie)for(let Q of ie)e.push(`--pure:${Q}`);ue&&e.push("--keep-names")}function ut(e,t,r,s,p){var b;let l=[],c=[],i=Object.create(null),w=null,O=null,x=null;Re(l,t,i,r,s),Ve(l,t,i);let N=n(t,i,"sourcemap",Ke),L=n(t,i,"bundle",C),k=n(t,i,"watch",lt),q=n(t,i,"splitting",C),ee=n(t,i,"preserveSymlinks",C),G=n(t,i,"metafile",C),te=n(t,i,"outfile",y),re=n(t,i,"outdir",y),le=n(t,i,"outbase",y),ie=n(t,i,"platform",y),ue=n(t,i,"tsconfig",y),Q=n(t,i,"resolveExtensions",z),ve=n(t,i,"nodePaths",z),ke=n(t,i,"mainFields",z),Ee=n(t,i,"conditions",z),$e=n(t,i,"external",z),d=n(t,i,"loader",me),u=n(t,i,"outExtension",me),o=n(t,i,"publicPath",y),f=n(t,i,"entryNames",y),I=n(t,i,"chunkNames",y),B=n(t,i,"assetNames",y),M=n(t,i,"inject",z),j=n(t,i,"banner",me),D=n(t,i,"footer",me),E=n(t,i,"entryPoints",it),R=n(t,i,"absWorkingDir",y),T=n(t,i,"stdin",me),A=(b=n(t,i,"write",C))!=null?b:p,S=n(t,i,"allowOverwrite",C),$=n(t,i,"incremental",C)===!0;if(i.plugins=!0,_(t,i,`in ${e}() call`),N&&l.push(`--sourcemap${N===!0?"":`=${N}`}`),L&&l.push("--bundle"),S&&l.push("--allow-overwrite"),k)if(l.push("--watch"),typeof k=="boolean")x={};else{let a=Object.create(null),h=n(k,a,"onRebuild",je);_(k,a,`on "watch" in ${e}() call`),x={onRebuild:h}}if(q&&l.push("--splitting"),ee&&l.push("--preserve-symlinks"),G&&l.push("--metafile"),te&&l.push(`--outfile=${te}`),re&&l.push(`--outdir=${re}`),le&&l.push(`--outbase=${le}`),ie&&l.push(`--platform=${ie}`),ue&&l.push(`--tsconfig=${ue}`),Q){let a=[];for(let h of Q){if(h+="",h.indexOf(",")>=0)throw new Error(`Invalid resolve extension: ${h}`);a.push(h)}l.push(`--resolve-extensions=${a.join(",")}`)}if(o&&l.push(`--public-path=${o}`),f&&l.push(`--entry-names=${f}`),I&&l.push(`--chunk-names=${I}`),B&&l.push(`--asset-names=${B}`),ke){let a=[];for(let h of ke){if(h+="",h.indexOf(",")>=0)throw new Error(`Invalid main field: ${h}`);a.push(h)}l.push(`--main-fields=${a.join(",")}`)}if(Ee){let a=[];for(let h of Ee){if(h+="",h.indexOf(",")>=0)throw new Error(`Invalid condition: ${h}`);a.push(h)}l.push(`--conditions=${a.join(",")}`)}if($e)for(let a of $e)l.push(`--external:${a}`);if(j)for(let a in j){if(a.indexOf("=")>=0)throw new Error(`Invalid banner file type: ${a}`);l.push(`--banner:${a}=${j[a]}`)}if(D)for(let a in D){if(a.indexOf("=")>=0)throw new Error(`Invalid footer file type: ${a}`);l.push(`--footer:${a}=${D[a]}`)}if(M)for(let a of M)l.push(`--inject:${a}`);if(d)for(let a in d){if(a.indexOf("=")>=0)throw new Error(`Invalid loader extension: ${a}`);l.push(`--loader:${a}=${d[a]}`)}if(u)for(let a in u){if(a.indexOf("=")>=0)throw new Error(`Invalid out extension: ${a}`);l.push(`--out-extension:${a}=${u[a]}`)}if(E)if(Array.isArray(E))for(let a of E)c.push(["",a+""]);else for(let[a,h]of Object.entries(E))c.push([a+"",h+""]);if(T){let a=Object.create(null),h=n(T,a,"contents",y),P=n(T,a,"resolveDir",y),g=n(T,a,"sourcefile",y),v=n(T,a,"loader",y);_(T,a,'in "stdin" object'),g&&l.push(`--sourcefile=${g}`),v&&l.push(`--loader=${v}`),P&&(O=P+""),w=h?h+"":""}let m=[];if(ve)for(let a of ve)a+="",m.push(a);return{entries:c,flags:l,write:A,stdinContents:w,stdinResolveDir:O,absWorkingDir:R,incremental:$,nodePaths:m,watch:x}}function ct(e,t,r,s){let p=[],l=Object.create(null);Re(p,t,l,r,s),Ve(p,t,l);let c=n(t,l,"sourcemap",Ke),i=n(t,l,"tsconfigRaw",st),w=n(t,l,"sourcefile",y),O=n(t,l,"loader",y),x=n(t,l,"banner",y),N=n(t,l,"footer",y);return _(t,l,`in ${e}() call`),c&&p.push(`--sourcemap=${c===!0?"external":c}`),i&&p.push(`--tsconfig-raw=${typeof i=="string"?i:JSON.stringify(i)}`),w&&p.push(`--sourcefile=${w}`),O&&p.push(`--loader=${O}`),x&&p.push(`--banner=${x}`),N&&p.push(`--footer=${N}`),p}function Je(e){let t=new Map,r=new Map,s=new Map,p=new Map,l=0,c=!1,i=0,w=0,O=new Uint8Array(16*1024),x=0,N=d=>{let u=x+d.length;if(u>O.length){let f=new Uint8Array(u*2);f.set(O),O=f}O.set(d,x),x+=d.length;let o=0;for(;o+4<=x;){let f=Ae(O,o);if(o+4+f>x)break;o+=4,te(O.subarray(o,o+f)),o+=f}o>0&&(O.copyWithin(0,o,x),x-=o)},L=()=>{c=!0;for(let d of t.values())d("The service was stopped",null);t.clear();for(let d of p.values())d.onWait("The service was stopped");p.clear();for(let d of s.values())try{d(new Error("The service was stopped"),null)}catch(u){console.error(u)}s.clear()},k=(d,u,o)=>{if(c)return o("The service is no longer running",null);let f=i++;t.set(f,(I,B)=>{try{o(I,B)}finally{d&&d.unref()}}),d&&d.ref(),e.writeToStdin(Be({id:f,isRequest:!0,value:u}))},q=(d,u)=>{if(c)throw new Error("The service is no longer running");e.writeToStdin(Be({id:d,isRequest:!1,value:u}))},ee=async(d,u)=>{try{switch(u.command){case"ping":{q(d,{});break}case"start":{let o=r.get(u.key);o?q(d,await o(u)):q(d,{});break}case"resolve":{let o=r.get(u.key);o?q(d,await o(u)):q(d,{});break}case"load":{let o=r.get(u.key);o?q(d,await o(u)):q(d,{});break}case"serve-request":{let o=p.get(u.serveID);o&&o.onRequest&&o.onRequest(u.args),q(d,{});break}case"serve-wait":{let o=p.get(u.serveID);o&&o.onWait(u.error),q(d,{});break}case"watch-rebuild":{let o=s.get(u.watchID);try{o&&o(null,u.args)}catch(f){console.error(f)}q(d,{});break}default:throw new Error("Invalid command: "+u.command)}}catch(o){q(d,{errors:[ye(o,e,null,void 0,"")]})}},G=!0,te=d=>{if(G){G=!1;let o=String.fromCharCode(...d);if(o!=="0.13.8")throw new Error(`Cannot start service: Host version "0.13.8" does not match binary version ${JSON.stringify(o)}`);return}let u=Ue(d);if(u.isRequest)ee(u.id,u.value);else{let o=t.get(u.id);t.delete(u.id),u.value.error?o(u.value.error,{}):o(null,u.value)}},re=async(d,u,o,f)=>{let I=[],B=[],M={},j={},D=0,E=0,R=[];u=[...u];for(let $ of u){let m={};if(typeof $!="object")throw new Error(`Plugin at index ${E} must be an object`);let b=n($,m,"name",y);if(typeof b!="string"||b==="")throw new Error(`Plugin at index ${E} is missing a name`);try{let a=n($,m,"setup",je);if(typeof a!="function")throw new Error("Plugin is missing a setup function");_($,m,`on plugin ${JSON.stringify(b)}`);let h={name:b,onResolve:[],onLoad:[]};E++;let P=a({initialOptions:d,onStart(g){let v='This error came from the "onStart" callback registered here',W=Oe(new Error(v),e,"onStart");I.push({name:b,callback:g,note:W})},onEnd(g){let v='This error came from the "onEnd" callback registered here',W=Oe(new Error(v),e,"onEnd");B.push({name:b,callback:g,note:W})},onResolve(g,v){let W='This error came from the "onResolve" callback registered here',U=Oe(new Error(W),e,"onResolve"),K={},V=n(g,K,"filter",We),Y=n(g,K,"namespace",y);if(_(g,K,`in onResolve() call for plugin ${JSON.stringify(b)}`),V==null)throw new Error("onResolve() call is missing a filter");let J=D++;M[J]={name:b,callback:v,note:U},h.onResolve.push({id:J,filter:V.source,namespace:Y||""})},onLoad(g,v){let W='This error came from the "onLoad" callback registered here',U=Oe(new Error(W),e,"onLoad"),K={},V=n(g,K,"filter",We),Y=n(g,K,"namespace",y);if(_(g,K,`in onLoad() call for plugin ${JSON.stringify(b)}`),V==null)throw new Error("onLoad() call is missing a filter");let J=D++;j[J]={name:b,callback:v,note:U},h.onLoad.push({id:J,filter:V.source,namespace:Y||""})}});P&&await P,R.push(h)}catch(a){return{ok:!1,error:a,pluginName:b}}}let T=async $=>{switch($.command){case"start":{let m={errors:[],warnings:[]};return await Promise.all(I.map(async({name:b,callback:a,note:h})=>{try{let P=await a();if(P!=null){if(typeof P!="object")throw new Error(`Expected onStart() callback in plugin ${JSON.stringify(b)} to return an object`);let g={},v=n(P,g,"errors",z),W=n(P,g,"warnings",z);_(P,g,`from onStart() callback in plugin ${JSON.stringify(b)}`),v!=null&&m.errors.push(...fe(v,"errors",f,b)),W!=null&&m.warnings.push(...fe(W,"warnings",f,b))}}catch(P){m.errors.push(ye(P,e,f,h&&h(),b))}})),m}case"resolve":{let m={},b="",a,h;for(let P of $.ids)try{({name:b,callback:a,note:h}=M[P]);let g=await a({path:$.path,importer:$.importer,namespace:$.namespace,resolveDir:$.resolveDir,kind:$.kind,pluginData:f.load($.pluginData)});if(g!=null){if(typeof g!="object")throw new Error(`Expected onResolve() callback in plugin ${JSON.stringify(b)} to return an object`);let v={},W=n(g,v,"pluginName",y),U=n(g,v,"path",y),K=n(g,v,"namespace",y),V=n(g,v,"external",C),Y=n(g,v,"sideEffects",C),J=n(g,v,"pluginData",Ne),se=n(g,v,"errors",z),oe=n(g,v,"warnings",z),F=n(g,v,"watchFiles",z),H=n(g,v,"watchDirs",z);_(g,v,`from onResolve() callback in plugin ${JSON.stringify(b)}`),m.id=P,W!=null&&(m.pluginName=W),U!=null&&(m.path=U),K!=null&&(m.namespace=K),V!=null&&(m.external=V),Y!=null&&(m.sideEffects=Y),J!=null&&(m.pluginData=f.store(J)),se!=null&&(m.errors=fe(se,"errors",f,b)),oe!=null&&(m.warnings=fe(oe,"warnings",f,b)),F!=null&&(m.watchFiles=Se(F,"watchFiles")),H!=null&&(m.watchDirs=Se(H,"watchDirs"));break}}catch(g){return{id:P,errors:[ye(g,e,f,h&&h(),b)]}}return m}case"load":{let m={},b="",a,h;for(let P of $.ids)try{({name:b,callback:a,note:h}=j[P]);let g=await a({path:$.path,namespace:$.namespace,pluginData:f.load($.pluginData)});if(g!=null){if(typeof g!="object")throw new Error(`Expected onLoad() callback in plugin ${JSON.stringify(b)} to return an object`);let v={},W=n(g,v,"pluginName",y),U=n(g,v,"contents",at),K=n(g,v,"resolveDir",y),V=n(g,v,"pluginData",Ne),Y=n(g,v,"loader",y),J=n(g,v,"errors",z),se=n(g,v,"warnings",z),oe=n(g,v,"watchFiles",z),F=n(g,v,"watchDirs",z);_(g,v,`from onLoad() callback in plugin ${JSON.stringify(b)}`),m.id=P,W!=null&&(m.pluginName=W),U instanceof Uint8Array?m.contents=U:U!=null&&(m.contents=ae(U)),K!=null&&(m.resolveDir=K),V!=null&&(m.pluginData=f.store(V)),Y!=null&&(m.loader=Y),J!=null&&(m.errors=fe(J,"errors",f,b)),se!=null&&(m.warnings=fe(se,"warnings",f,b)),oe!=null&&(m.watchFiles=Se(oe,"watchFiles")),F!=null&&(m.watchDirs=Se(F,"watchDirs"));break}}catch(g){return{id:P,errors:[ye(g,e,f,h&&h(),b)]}}return m}default:throw new Error("Invalid command: "+$.command)}},A=($,m,b)=>b();B.length>0&&(A=($,m,b)=>{(async()=>{for(let{name:a,callback:h,note:P}of B)try{await h($)}catch(g){$.errors.push(await new Promise(v=>m(g,a,P&&P(),v)))}})().then(b)});let S=0;return{ok:!0,requestPlugins:R,runOnEndCallbacks:A,pluginRefs:{ref(){++S==1&&r.set(o,T)},unref(){--S==0&&r.delete(o)}}}},le=(d,u,o)=>{let f={},I=n(u,f,"port",ge),B=n(u,f,"host",y),M=n(u,f,"servedir",y),j=n(u,f,"onRequest",je),D=l++,E,R=new Promise((T,A)=>{E=S=>{p.delete(D),S!==null?A(new Error(S)):T()}});return o.serve={serveID:D},_(u,f,"in serve() call"),I!==void 0&&(o.serve.port=I),B!==void 0&&(o.serve.host=B),M!==void 0&&(o.serve.servedir=M),p.set(D,{onRequest:j,onWait:E}),{wait:R,stop(){k(d,{command:"serve-stop",serveID:D},()=>{})}}},ie="warning",ue="silent",Q=d=>{let u=w++,o=Ye(),f,{refs:I,options:B,isTTY:M,callback:j}=d;if(typeof B=="object"){let R=B.plugins;if(R!==void 0){if(!Array.isArray(R))throw new Error('"plugins" must be an array');f=R}}let D=(R,T,A,S)=>{let $=[];try{Re($,B,{},M,ie)}catch(b){}let m=ye(R,e,o,A,T);k(I,{command:"error",flags:$,error:m},()=>{m.detail=o.load(m.detail),S(m)})},E=(R,T)=>{D(R,T,void 0,A=>{j(he("Build failed",[A],[]),null)})};if(f&&f.length>0){if(e.isSync)return E(new Error("Cannot use plugins in synchronous API calls"),"");re(B,f,u,o).then(R=>{if(!R.ok)E(R.error,R.pluginName);else try{ve(Me(Pe({},d),{key:u,details:o,logPluginError:D,requestPlugins:R.requestPlugins,runOnEndCallbacks:R.runOnEndCallbacks,pluginRefs:R.pluginRefs}))}catch(T){E(T,"")}},R=>E(R,""))}else try{ve(Me(Pe({},d),{key:u,details:o,logPluginError:D,requestPlugins:null,runOnEndCallbacks:(R,T,A)=>A(),pluginRefs:null}))}catch(R){E(R,"")}},ve=({callName:d,refs:u,serveOptions:o,options:f,isTTY:I,defaultWD:B,callback:M,key:j,details:D,logPluginError:E,requestPlugins:R,runOnEndCallbacks:T,pluginRefs:A})=>{let S={ref(){A&&A.ref(),u&&u.ref()},unref(){A&&A.unref(),u&&u.unref()}},$=!e.isBrowser,{entries:m,flags:b,write:a,stdinContents:h,stdinResolveDir:P,absWorkingDir:g,incremental:v,nodePaths:W,watch:U}=ut(d,f,I,ie,$),K={command:"build",key:j,entries:m,flags:b,write:a,stdinContents:h,stdinResolveDir:P,absWorkingDir:g||B,incremental:v,nodePaths:W};R&&(K.plugins=R);let V=o&&le(S,o,K),Y,J,se=(F,H)=>{F.outputFiles&&(H.outputFiles=F.outputFiles.map(ft)),F.metafile&&(H.metafile=JSON.parse(F.metafile)),F.writeToStdout!==void 0&&console.log(ce(F.writeToStdout).replace(/\n$/,""))},oe=(F,H)=>{let X={errors:be(F.errors,D),warnings:be(F.warnings,D)};se(F,X),T(X,E,()=>{if(X.errors.length>0)return H(he("Build failed",X.errors,X.warnings),null);if(F.rebuildID!==void 0){if(!Y){let ne=!1;Y=()=>new Promise((de,pe)=>{if(ne||c)throw new Error("Cannot rebuild");k(S,{command:"rebuild",rebuildID:F.rebuildID},(Z,Qe)=>{if(Z)return H(he("Build failed",[{pluginName:"",text:Z,location:null,notes:[],detail:void 0}],[]),null);oe(Qe,(De,Xe)=>{De?pe(De):de(Xe)})})}),S.ref(),Y.dispose=()=>{ne||(ne=!0,k(S,{command:"rebuild-dispose",rebuildID:F.rebuildID},()=>{}),S.unref())}}X.rebuild=Y}if(F.watchID!==void 0){if(!J){let ne=!1;S.ref(),J=()=>{ne||(ne=!0,s.delete(F.watchID),k(S,{command:"watch-stop",watchID:F.watchID},()=>{}),S.unref())},U&&s.set(F.watchID,(de,pe)=>{if(de){U.onRebuild&&U.onRebuild(de,null);return}let Z={errors:be(pe.errors,D),warnings:be(pe.warnings,D)};se(pe,Z),T(Z,E,()=>{if(Z.errors.length>0){U.onRebuild&&U.onRebuild(he("Build failed",Z.errors,Z.warnings),null);return}pe.rebuildID!==void 0&&(Z.rebuild=Y),Z.stop=J,U.onRebuild&&U.onRebuild(null,Z)})})}X.stop=J}H(null,X)})};if(a&&e.isBrowser)throw new Error('Cannot enable "write" in the browser');if(v&&e.isSync)throw new Error('Cannot use "incremental" with a synchronous build');if(U&&e.isSync)throw new Error('Cannot use "watch" with a synchronous build');k(S,K,(F,H)=>{if(F)return M(new Error(F),null);if(V){let X=H,ne=!1;S.ref();let de={port:X.port,host:X.host,wait:V.wait,stop(){ne||(ne=!0,V.stop(),S.unref())}};return S.ref(),V.wait.then(S.unref,S.unref),M(null,de)}return oe(H,M)})};return{readFromStdout:N,afterClose:L,service:{buildOrServe:Q,transform:({callName:d,refs:u,input:o,options:f,isTTY:I,fs:B,callback:M})=>{let j=Ye(),D=E=>{try{if(typeof o!="string")throw new Error('The input to "transform" must be a string');let R=ct(d,f,I,ue);k(u,{command:"transform",flags:R,inputFS:E!==null,input:E!==null?E:o},(A,S)=>{if(A)return M(new Error(A),null);let $=be(S.errors,j),m=be(S.warnings,j),b=1,a=()=>--b==0&&M(null,{warnings:m,code:S.code,map:S.map});if($.length>0)return M(he("Transform failed",$,m),null);S.codeFS&&(b++,B.readFile(S.code,(h,P)=>{h!==null?M(h,null):(S.code=P,a())})),S.mapFS&&(b++,B.readFile(S.map,(h,P)=>{h!==null?M(h,null):(S.map=P,a())})),a()})}catch(R){let T=[];try{Re(T,f,{},I,ue)}catch(S){}let A=ye(R,e,j,void 0,"");k(u,{command:"error",flags:T,error:A},()=>{A.detail=j.load(A.detail),M(he("Transform failed",[A],[]),null)})}};if(typeof o=="string"&&o.length>1024*1024){let E=D;D=()=>B.writeFile(o,E)}D(null)},formatMessages:({callName:d,refs:u,messages:o,options:f,callback:I})=>{let B=fe(o,"messages",null,"");if(!f)throw new Error(`Missing second argument in ${d}() call`);let M={},j=n(f,M,"kind",y),D=n(f,M,"color",C),E=n(f,M,"terminalWidth",ge);if(_(f,M,`in ${d}() call`),j===void 0)throw new Error(`Missing "kind" in ${d}() call`);if(j!=="error"&&j!=="warning")throw new Error(`Expected "kind" to be "error" or "warning" in ${d}() call`);let R={command:"format-msgs",messages:B,isWarning:j==="warning"};D!==void 0&&(R.color=D),E!==void 0&&(R.terminalWidth=E),k(u,R,(T,A)=>{if(T)return I(new Error(T),null);I(null,A.messages)})},analyzeMetafile:({callName:d,refs:u,metafile:o,options:f,callback:I})=>{f===void 0&&(f={});let B={},M=n(f,B,"color",C),j=n(f,B,"verbose",C);_(f,B,`in ${d}() call`);let D={command:"analyze-metafile",metafile:o};M!==void 0&&(D.color=M),j!==void 0&&(D.verbose=j),k(u,D,(E,R)=>{if(E)return I(new Error(E),null);I(null,R.result)})}}}}function Ye(){let e=new Map,t=0;return{load(r){return e.get(r)},store(r){if(r===void 0)return-1;let s=t++;return e.set(s,r),s}}}function Oe(e,t,r){let s,p=!1;return()=>{if(p)return s;p=!0;try{let l=(e.stack+"").split(`
+`);l.splice(1,1);let c=He(t,l,r);if(c)return s={text:e.message,location:c},s}catch(l){}}}function ye(e,t,r,s,p){let l="Internal error",c=null;try{l=(e&&e.message||e)+""}catch(i){}try{c=He(t,(e.stack+"").split(`
+`),"")}catch(i){}return{pluginName:p,text:l,location:c,notes:s?[s]:[],detail:r?r.store(e):-1}}function He(e,t,r){let s="    at ";if(e.readFileSync&&!t[0].startsWith(s)&&t[1].startsWith(s))for(let p=1;p<t.length;p++){let l=t[p];if(!!l.startsWith(s))for(l=l.slice(s.length);;){let c=/^(?:new |async )?\S+ \((.*)\)$/.exec(l);if(c){l=c[1];continue}if(c=/^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(l),c){l=c[1];continue}if(c=/^(\S+):(\d+):(\d+)$/.exec(l),c){let i;try{i=e.readFileSync(c[1],"utf8")}catch(N){break}let w=i.split(/\r\n|\r|\n|\u2028|\u2029/)[+c[2]-1]||"",O=+c[3]-1,x=w.slice(O,O+r.length)===r?r.length:0;return{file:c[1],namespace:"file",line:+c[2],column:ae(w.slice(0,O)).length,length:ae(w.slice(O,O+x)).length,lineText:w+`
+`+t.slice(1).join(`
+`),suggestion:""}}break}}return null}function he(e,t,r){let s=5,p=t.length<1?"":` with ${t.length} error${t.length<2?"":"s"}:`+t.slice(0,s+1).map((c,i)=>{if(i===s)return`
+...`;if(!c.location)return`
+error: ${c.text}`;let{file:w,line:O,column:x}=c.location,N=c.pluginName?`[plugin: ${c.pluginName}] `:"";return`
+${w}:${O}:${x}: error: ${N}${c.text}`}).join(""),l=new Error(`${e}${p}`);return l.errors=t,l.warnings=r,l}function be(e,t){for(let r of e)r.detail=t.load(r.detail);return e}function Ge(e,t){if(e==null)return null;let r={},s=n(e,r,"file",y),p=n(e,r,"namespace",y),l=n(e,r,"line",ge),c=n(e,r,"column",ge),i=n(e,r,"length",ge),w=n(e,r,"lineText",y),O=n(e,r,"suggestion",y);return _(e,r,t),{file:s||"",namespace:p||"",line:l||0,column:c||0,length:i||0,lineText:w||"",suggestion:O||""}}function fe(e,t,r,s){let p=[],l=0;for(let c of e){let i={},w=n(c,i,"pluginName",y),O=n(c,i,"text",y),x=n(c,i,"location",ze),N=n(c,i,"notes",z),L=n(c,i,"detail",Ne),k=`in element ${l} of "${t}"`;_(c,i,k);let q=[];if(N)for(let ee of N){let G={},te=n(ee,G,"text",y),re=n(ee,G,"location",ze);_(ee,G,k),q.push({text:te||"",location:Ge(re,k)})}p.push({pluginName:w||s,text:O||"",location:Ge(x,k),notes:q,detail:r?r.store(L):-1}),l++}return p}function Se(e,t){let r=[];for(let s of e){if(typeof s!="string")throw new Error(`${JSON.stringify(t)} must be an array of strings`);r.push(s)}return r}function ft({path:e,contents:t}){let r=null;return{path:e,contents:t,get text(){return r===null&&(r=ce(t)),r}}}var bt="0.13.8",wt=e=>xe().build(e),vt=()=>{throw new Error('The "serve" API only works in node')},Rt=(e,t)=>xe().transform(e,t),Ot=(e,t)=>xe().formatMessages(e,t),St=(e,t)=>xe().analyzeMetafile(e,t),xt=()=>{throw new Error('The "buildSync" API only works in node')},kt=()=>{throw new Error('The "transformSync" API only works in node')},Et=()=>{throw new Error('The "formatMessagesSync" API only works in node')},$t=()=>{throw new Error('The "analyzeMetafileSync" API only works in node')},we,Ie,xe=()=>{if(Ie)return Ie;throw we?new Error('You need to wait for the promise returned from "initialize" to be resolved before calling this'):new Error('You need to call "initialize" before calling this')},Dt=e=>{e=_e(e||{});let t=e.wasmURL,r=e.worker!==!1;if(!t)throw new Error('Must provide the "wasmURL" option');if(t+="",we)throw new Error('Cannot call "initialize" more than once');return we=dt(t,r),we.catch(()=>{we=void 0}),we},dt=async(e,t)=>{let r=await fetch(e);if(!r.ok)throw new Error(`Failed to download ${JSON.stringify(e)}`);let s=await r.arrayBuffer(),p='{let global={};for(let o=self;o;o=Object.getPrototypeOf(o))for(let k of Object.getOwnPropertyNames(o))if(!(k in global))Object.defineProperty(global,k,{get:()=>self[k]});\n// Copyright 2018 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n(()=>{if(typeof global=="undefined")if(typeof window!="undefined")window.global=window;else if(typeof self!="undefined")self.global=self;else throw new Error("cannot export Go (neither global, window nor self is defined)");if(!global.require&&typeof require!="undefined"&&(global.require=require),!global.fs&&global.require){const r=require("fs");typeof r=="object"&&r!==null&&Object.keys(r).length!==0&&(global.fs=Object.assign({},r,{write(n,s,i,l,d,u){if(i===0&&l===s.length&&d===null){if(n===process.stdout.fd){try{process.stdout.write(s,h=>h?u(h,0,null):u(null,l,s))}catch(h){u(h,0,null)}return}if(n===process.stderr.fd){try{process.stderr.write(s,h=>h?u(h,0,null):u(null,l,s))}catch(h){u(h,0,null)}return}}r.write(n,s,i,l,d,u)}}))}const a=()=>{const r=new Error("not implemented");return r.code="ENOSYS",r};if(!global.fs){let r="";global.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(n,s){r+=g.decode(s);const i=r.lastIndexOf(`\n`);return i!=-1&&(console.log(r.substr(0,i)),r=r.substr(i+1)),s.length},write(n,s,i,l,d,u){if(i!==0||l!==s.length||d!==null){u(a());return}const h=this.writeSync(n,s);u(null,h)},chmod(n,s,i){i(a())},chown(n,s,i,l){l(a())},close(n,s){s(a())},fchmod(n,s,i){i(a())},fchown(n,s,i,l){l(a())},fstat(n,s){s(a())},fsync(n,s){s(null)},ftruncate(n,s,i){i(a())},lchown(n,s,i,l){l(a())},link(n,s,i){i(a())},lstat(n,s){s(a())},mkdir(n,s,i){i(a())},open(n,s,i,l){l(a())},read(n,s,i,l,d,u){u(a())},readdir(n,s){s(a())},readlink(n,s){s(a())},rename(n,s,i){i(a())},rmdir(n,s){s(a())},stat(n,s){s(a())},symlink(n,s,i){i(a())},truncate(n,s,i){i(a())},unlink(n,s){s(a())},utimes(n,s,i,l){l(a())}}}if(global.process||(global.process={getuid(){return-1},getgid(){return-1},geteuid(){return-1},getegid(){return-1},getgroups(){throw a()},pid:-1,ppid:-1,umask(){throw a()},cwd(){throw a()},chdir(){throw a()}}),!global.crypto&&global.require){const r=require("crypto");global.crypto={getRandomValues(n){r.randomFillSync(n)}}}if(!global.crypto)throw new Error("global.crypto is not available, polyfill required (getRandomValues only)");if(global.performance||(global.performance={now(){const[r,n]=process.hrtime();return r*1e3+n/1e6}}),!global.TextEncoder&&global.require&&(global.TextEncoder=require("util").TextEncoder),!global.TextEncoder)throw new Error("global.TextEncoder is not available, polyfill required");if(!global.TextDecoder&&global.require&&(global.TextDecoder=require("util").TextDecoder),!global.TextDecoder)throw new Error("global.TextDecoder is not available, polyfill required");const f=new TextEncoder("utf-8"),g=new TextDecoder("utf-8");if(global.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=e=>{e!==0&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;const r=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>{const t=this.mem.getUint32(e+0,!0),o=this.mem.getInt32(e+4,!0);return t+o*4294967296},s=e=>{const t=this.mem.getFloat64(e,!0);if(t===0)return;if(!isNaN(t))return t;const o=this.mem.getUint32(e,!0);return this._values[o]},i=(e,t)=>{const o=2146959360;if(typeof t=="number"&&t!==0){if(isNaN(t)){this.mem.setUint32(e+4,o,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(t===void 0){this.mem.setFloat64(e,0,!0);return}let c=this._ids.get(t);c===void 0&&(c=this._idPool.pop(),c===void 0&&(c=this._values.length),this._values[c]=t,this._goRefCounts[c]=0,this._ids.set(t,c)),this._goRefCounts[c]++;let m=0;switch(typeof t){case"object":t!==null&&(m=1);break;case"string":m=2;break;case"symbol":m=3;break;case"function":m=4;break}this.mem.setUint32(e+4,o|m,!0),this.mem.setUint32(e,c,!0)},l=e=>{const t=n(e+0),o=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,o)},d=e=>{const t=n(e+0),o=n(e+8),c=new Array(o);for(let m=0;m<o;m++)c[m]=s(t+m*8);return c},u=e=>{const t=n(e+0),o=n(e+8);return g.decode(new DataView(this._inst.exports.mem.buffer,t,o))},h=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{e>>>=0;const t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{e>>>=0;const t=n(e+8),o=n(e+16),c=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,o,c))},"runtime.resetMemoryDataView":e=>{e>>>=0,this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":e=>{e>>>=0,r(e+8,(h+performance.now())*1e6)},"runtime.walltime":e=>{e>>>=0;const t=new Date().getTime();r(e+8,t/1e3),this.mem.setInt32(e+16,t%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{e>>>=0;const t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{e>>>=0;const t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{e>>>=0,crypto.getRandomValues(l(e+8))},"syscall/js.finalizeRef":e=>{e>>>=0;const t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,this._goRefCounts[t]===0){const o=this._values[t];this._values[t]=null,this._ids.delete(o),this._idPool.push(t)}},"syscall/js.stringVal":e=>{e>>>=0,i(e+24,u(e+8))},"syscall/js.valueGet":e=>{e>>>=0;const t=Reflect.get(s(e+8),u(e+16));e=this._inst.exports.getsp()>>>0,i(e+32,t)},"syscall/js.valueSet":e=>{e>>>=0,Reflect.set(s(e+8),u(e+16),s(e+32))},"syscall/js.valueDelete":e=>{e>>>=0,Reflect.deleteProperty(s(e+8),u(e+16))},"syscall/js.valueIndex":e=>{e>>>=0,i(e+24,Reflect.get(s(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{e>>>=0,Reflect.set(s(e+8),n(e+16),s(e+24))},"syscall/js.valueCall":e=>{e>>>=0;try{const t=s(e+8),o=Reflect.get(t,u(e+16)),c=d(e+32),m=Reflect.apply(o,t,c);e=this._inst.exports.getsp()>>>0,i(e+56,m),this.mem.setUint8(e+64,1)}catch(t){e=this._inst.exports.getsp()>>>0,i(e+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{e>>>=0;try{const t=s(e+8),o=d(e+16),c=Reflect.apply(t,void 0,o);e=this._inst.exports.getsp()>>>0,i(e+40,c),this.mem.setUint8(e+48,1)}catch(t){e=this._inst.exports.getsp()>>>0,i(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{e>>>=0;try{const t=s(e+8),o=d(e+16),c=Reflect.construct(t,o);e=this._inst.exports.getsp()>>>0,i(e+40,c),this.mem.setUint8(e+48,1)}catch(t){e=this._inst.exports.getsp()>>>0,i(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":e=>{e>>>=0,r(e+16,parseInt(s(e+8).length))},"syscall/js.valuePrepareString":e=>{e>>>=0;const t=f.encode(String(s(e+8)));i(e+16,t),r(e+24,t.length)},"syscall/js.valueLoadString":e=>{e>>>=0;const t=s(e+8);l(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{e>>>=0,this.mem.setUint8(e+24,s(e+8)instanceof s(e+16)?1:0)},"syscall/js.copyBytesToGo":e=>{e>>>=0;const t=l(e+8),o=s(e+32);if(!(o instanceof Uint8Array||o instanceof Uint8ClampedArray)){this.mem.setUint8(e+48,0);return}const c=o.subarray(0,t.length);t.set(c),r(e+40,c.length),this.mem.setUint8(e+48,1)},"syscall/js.copyBytesToJS":e=>{e>>>=0;const t=s(e+8),o=l(e+16);if(!(t instanceof Uint8Array||t instanceof Uint8ClampedArray)){this.mem.setUint8(e+48,0);return}const c=o.subarray(0,t.length);t.set(c),r(e+40,c.length),this.mem.setUint8(e+48,1)},debug:e=>{console.log(e)}}}}async run(r){if(!(r instanceof WebAssembly.Instance))throw new Error("Go.run: WebAssembly.Instance expected");this._inst=r,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,global,this],this._goRefCounts=new Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[global,5],[this,6]]),this._idPool=[],this.exited=!1;let n=4096;const s=e=>{const t=n,o=f.encode(e+"\\0");return new Uint8Array(this.mem.buffer,n,o.length).set(o),n+=o.length,n%8!=0&&(n+=8-n%8),t},i=this.argv.length,l=[];this.argv.forEach(e=>{l.push(s(e))}),l.push(0),Object.keys(this.env).sort().forEach(e=>{l.push(s(`${e}=${this.env[e]}`))}),l.push(0);const u=n;l.forEach(e=>{this.mem.setUint32(n,e,!0),this.mem.setUint32(n+4,0,!0),n+=8});const h=4096+4096;if(n>=h)throw new Error("command line too long");this._inst.exports.run(i,u),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw new Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(r){const n=this;return function(){const s={id:r,this:this,args:arguments};return n._pendingEvent=s,n._resume(),s.result}}},typeof module!="undefined"&&global.require&&global.require.main===module&&global.process&&global.process.versions&&!global.process.versions.electron){process.argv.length<3&&(console.error("usage: go_js_wasm_exec [wasm binary] [arguments]"),process.exit(1));const r=new Go;r.argv=process.argv.slice(2),r.env=Object.assign({TMPDIR:require("os").tmpdir()},process.env),r.exit=process.exit,WebAssembly.instantiate(fs.readFileSync(process.argv[2]),r.importObject).then(n=>(process.on("exit",s=>{s===0&&!r.exited&&(r._pendingEvent={id:0},r._resume())}),r.run(n.instance))).catch(n=>{console.error(n),process.exit(1)})}})();\nonmessage=({data:c})=>{let y=new TextDecoder,s=global.fs,a="";s.writeSync=(e,t)=>{if(e===1)postMessage(t);else if(e===2){a+=y.decode(t);let n=a.split(`\n`);n.length>1&&console.log(n.slice(0,-1).join(`\n`)),a=n[n.length-1]}else throw new Error("Bad write");return t.length};let l=[],i,r=0;onmessage=({data:e})=>{e.length>0&&(l.push(e),i&&i())},s.read=(e,t,n,d,h,m)=>{if(e!==0||n!==0||d!==t.length||h!==null)throw new Error("Bad read");if(l.length===0){i=()=>s.read(e,t,n,d,h,m);return}let g=l[0],u=Math.max(0,Math.min(d,g.length-r));t.set(g.subarray(r,r+u),n),r+=u,r===g.length&&(l.shift(),r=0),m(null,u)};let o=new global.Go;o.argv=["","--service=0.13.8"],WebAssembly.instantiate(c,o.importObject).then(({instance:e})=>o.run(e))};}',l;if(t){let w=new Blob([p],{type:"text/javascript"});l=new Worker(URL.createObjectURL(w))}else{let O=new Function("postMessage",p+"var onmessage; return m => onmessage(m)")(x=>l.onmessage({data:x}));l={onmessage:null,postMessage:x=>O({data:x}),terminate(){}}}l.postMessage(s),l.onmessage=({data:w})=>c(w);let{readFromStdout:c,service:i}=Je({writeToStdin(w){l.postMessage(w)},isSync:!1,isBrowser:!0});Ie={build:w=>new Promise((O,x)=>i.buildOrServe({callName:"build",refs:null,serveOptions:null,options:w,isTTY:!1,defaultWD:"/",callback:(N,L)=>N?x(N):O(L)})),transform:(w,O)=>new Promise((x,N)=>i.transform({callName:"transform",refs:null,input:w,options:O||{},isTTY:!1,fs:{readFile(L,k){k(new Error("Internal error"),null)},writeFile(L,k){k(null)}},callback:(L,k)=>L?N(L):x(k)})),formatMessages:(w,O)=>new Promise((x,N)=>i.formatMessages({callName:"formatMessages",refs:null,messages:w,options:O,callback:(L,k)=>L?N(L):x(k)})),analyzeMetafile:(w,O)=>new Promise((x,N)=>i.analyzeMetafile({callName:"analyzeMetafile",refs:null,metafile:typeof w=="string"?w:JSON.stringify(w),options:O,callback:(L,k)=>L?N(L):x(k)}))}};export{St as analyzeMetafile,$t as analyzeMetafileSync,wt as build,xt as buildSync,Ot as formatMessages,Et as formatMessagesSync,Dt as initialize,vt as serve,Rt as transform,kt as transformSync,bt as version};
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/exit0.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/exit0.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/exit0.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,11 @@
+
+// Each of these is a native module that calls "exit(0)". This is a workaround
+// for https://github.com/nodejs/node/issues/36616. These native modules are
+// stored in a string both to make them smaller and to hide them from Yarn 2,
+// since they make Yarn 2 unzip this package.
+
+module.exports = {
+  "darwin-x64-LE.node": "7d3LaxNBHAfwmaRNQx92DwUVX0VawUMaC0ULCm20hRSLLbZCb9Nsd9subjZhHzYV1AUfUEToXyAe9ar+AT15tEf9B8QKVjx4EA+uM7uTOk3T3PT0/cCw+WV3v/uYuc7O9q/d3x2E0DQhJMNbF2+jbYQ8JhoRjvP2kRLC2Pzkwjw5aLx53a40gTHfrPl/D2vM6x9LtpeUuk3NbSOhWjLm+YHuHZq3IPMySk2V87MyL7Mvj62adtV0m+QtyrxupU61vL/AWbMcg1nOcqVJni3zZpU6RQ7HmLnKlt1S2Wz+vFtj+7tD1OkWeaJfd+KcicJ8oUl/HrJNy5bauy9j3TbU+2yepyl1uuVz2iXmrZf1is2qvnsgT5N5WaVW8/hY3tfP4jmLce701I3rkxNT9XcWNjyfrF/Kkjbk9MicYw3/O9Vy3vT0wLKN3FrJ40XN8i/kjZLLez9XuziSm54cciqG7Lb4vYkMLUzG90KYjIEuZSykZKPyXdMW72s2bBg3YXL8CXmdR+GbzzPDV3483X33PPo2szNQ74v2TpLp7YzH86g8Nr6mQdtFQj7w3Lxt6aLNrXu+WR66OsS72tKTy5yTOdkw6YvzstZCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwzxTmpp+d+rAVRYW5aHCb/9F7hkSD7/mPzdit4san4sOvWnHj3s/iRvB9ONoR0283o8HX8fn87Fd88+VtFEVix0mZq27FvFsx332EJK0+d138FvN/u/kRfcksX9qf7NqbEtwnt/TuTUJrGtW6O7KbfO+AzF6MEkf3HuiI9iR1rac+751oWyx6QEhWbuvz3AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADg/xFrdqcJyby43xcvbX+Wt9M0+R6BcFnWI7IWXyHo5fW4rMU641T5HkF9ffh+wpxS1WKuuWJ5vumycsUIbJPdGRZL2dcsn4h145nnBzrTLcewnBW2atpV05VLyrPlwFlidqVyO6jyvD8=",
+  "linux-x64-LE.node": "7VtfbBRFGJ+99trDlvYkKNeWlA1CAkiXa7HyL4WGSrsgNVhoQqJm3fa27cb7U3b3oMWgNQRjISQYn3zCx77wbGKilmAIb9Yn9cFYNMSSED0xmOJD15nd77vuTrockQc1mR/Z++33ffObmZ3Z2e2wM+8eOtobkySCqCL7CbPeTPp2N/jV9nIS6ttN6uhvC2n20laTaOyOh5lAvkwXD9g8H5LCHNR55cng53iWhDmoq2GmAu79YU7FIJtYWBcDnQw6eX+YZ6UwJ0BeDccM5MczX31edwvS8byJhBnb/vgdJ/NPyjsGuqj23E7CjOW9SnU15PGB3TsA5UX1Q0kKsxQoNwn3TN8rg6xfZqu9+3U5vhZsFu9veDi8q+2L1zr6Rut7Tx1f9+O6t2qD/Yn3A5nyq4bX8sNzrQOVrkNewZ+jx5oV/FJE+u0R/l56bFzBP+jl30CanvbtVgxo2miukNdsR7ccTSPa4RP9WsawjFHTdgzrRH9PtpA3TuhDWcOPrRzRhid0bcTM61nzrEHy+rhZTqjlCpli1tBOtxPNmDAdkjWHhhW7oLxI+o4ePtijdSgdSufyaGG/kvfPDvR7sdlcxSLnSLi/8T5MwnWlOP8cZCB3h/1ozx/wuSZwrzAsBPxVAX8p4A8+txYD/njAn4JyastXJyAgICAgICAgIPD/xR+NrX+p5+8l1Evx73fQaf6FWSfmzqnnv0rc8OJu50/Ufd/d/DOlxg1e+jEWuH/3tuu6V5hNo9e86Et+ftT+HG31ctd1lu/l+GeM9iw6z9CiRqCoVe5844Yplt0NYJr+Qy9950VGW5fU6ZJ6/dcD6vXFKlW6qX6z5KylGXRCBgl3fsQrB/Ws/Kmu/h1syvH8oHq+aw07VafvOPXqpS6FGguHab0XMvTnZnwztaU3qDakv3uGBtnJINXRxkmq0+cW1eli6UtvZtFEo8vtVm4pAQEBAQEBAQEBAQEBAYH/LqSWqn3sWyT7FiaXXFel3E15nPIxyh9QbvrddT+B9GtRd3aASBNJqaW+NnFF8r9Hr6fH3G+u633XbEj2NqSONNadSUyRA817t+3ctBH1dLpObtF0yUA9mP91esxy/hQ9HHqconXxvnkeaki+H+tZXSO6TkBAQEBAQEBAQEBA4ImA6zDnAuumGWzg+nJCn1aDuRt0TRiGdZwtYOO6zWac10F8PRd/sOQWGJdgsSWuxZyFRZw470uB/RTY08B1gXkjQ3ntJ6zjjHFxnM/WAq8DluNh/0R1uJ4zwKu4/JZcv/4nIb0LNrZjCewjEH8IdtW/1N+4jp1Hmlt329fTs1feMjhUzDtFeY+yU0m3te8qemb7Ox1pJf3CVt9NiGKP2Y7l6ENEyRccQxnNF5VxqzBuWM5kwDVUNLOZNjNDPGtMt8eIkpnM25M5nx3Lj5w2LNss5EOGRmOWkdVZQjgbzzpEMfMm/aWnymgBTmxjmCiOMUHNERomijGmjVh6ztDGMtay5Ws13bL0ST8lntMi9JxJM6FZ+qVkdEcnypBtE2W4kMsZeefJ+6GOhNcYR63fJ9x4QbRy+qh9Awh+zwbb3vEnvRdRj+OvxOmrI8rfB9cQ48YnMo6XOIyFBDduemAMxLjxjjzN/78VZ78MYw31OL6QG7j6xzg+CWO3bFeHWY6oP2IU8o5xzwvkmYj2w+s/BbGD3PMHORXQP7uC/m0S2NMQeD4jt1To/9OcXk5yzL8nOH6P03cnw5ysoL/I6Y8lw1xJ/xGnx/1LyN9G6BEfc3p8nyGvrtB+V0Ff3iMQsY8mSn+N06flMF+pMP4/hXu8inv/4j6bRIQema1hagzo8f2cekz91yS816K8Twr0uD8qzumwHy7A9aMe93XM73j08w/5O05f3riWfjz9bU6P7z05/ejrR/wCPtRvAf2WCD3//LoHvjTnR/22CH2QV/obYgD0DyqU/zc=",
+  "win32-x64-LE.node": "842awMDMwMDAAsT//zMw7GCAAAcGwuAGEPPJ7+Jj2MJ5VnEHo89ZxZCMzGKFgqL89KLEXIXkxLy8/BKFpFSFotI8hcw8BRf/YIXc/JRUPV5eLhWoGVdLWI9OFM2eBsOnarOmTwKzs6ZNANKhVfnTIXQ2lM4E00GZyRkg9bjcFuDKwJDSxsyQv4svASb2gUFJgZuJT5KBCephGBAAkw2MMDZQng0qBaPBAQLVw8SQwAjTBKMw+RCmgCIDQwyQzgHSGsgONGBg4MHibgEFBgYZBhKAAoqVGECvJLWiBKIM7jcUv0PkEvSKUhJLEhkYjjBCFTMhex4eBA56BRB1PFA/gNVxYKpjGAVDAnh0hqgIeHT6qHB4NL/RMD75ghUk2HxE4/B/1Qf8o+Ez3MEKRUwxWJnJC8RXgFgHWB7osCEKNQVYuaKSm4dcBullgsoGFVPkcgxWroDMuALnq1RVVaUkpYMUKkL1VkDUwcpLvVQIH1RuiiDMNgIX1EAxCYSYMUhshiKKG0xgfpNBiJkhl7uwcoyRj5GBzwnV////g2pCBgYnoH5QcQjDFkC+DRA7KELCIQQcduWZecZGuhVmJro+rnp5wOqNIS+xIDO+KDU9s7gktSgeWOOV5qTGlxmC3QgD2xRhhTJx8ZLC6FqRWRJQlJ+cWlzM4O0a5OfqY2ykl5KTQ2ECAPpDSgASD6Ng5AEA"
+};
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.d.ts
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,416 @@
+export type Platform = 'browser' | 'node' | 'neutral';
+export type Format = 'iife' | 'cjs' | 'esm';
+export type Loader = 'js' | 'jsx' | 'ts' | 'tsx' | 'css' | 'json' | 'text' | 'base64' | 'file' | 'dataurl' | 'binary' | 'default';
+export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent';
+export type Charset = 'ascii' | 'utf8';
+
+interface CommonOptions {
+  sourcemap?: boolean | 'inline' | 'external' | 'both';
+  legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
+  sourceRoot?: string;
+  sourcesContent?: boolean;
+
+  format?: Format;
+  globalName?: string;
+  target?: string | string[];
+
+  minify?: boolean;
+  minifyWhitespace?: boolean;
+  minifyIdentifiers?: boolean;
+  minifySyntax?: boolean;
+  charset?: Charset;
+  treeShaking?: boolean;
+  ignoreAnnotations?: boolean;
+
+  jsx?: 'transform' | 'preserve';
+  jsxFactory?: string;
+  jsxFragment?: string;
+
+  define?: { [key: string]: string };
+  pure?: string[];
+  keepNames?: boolean;
+
+  color?: boolean;
+  logLevel?: LogLevel;
+  logLimit?: number;
+}
+
+export interface BuildOptions extends CommonOptions {
+  bundle?: boolean;
+  splitting?: boolean;
+  preserveSymlinks?: boolean;
+  outfile?: string;
+  metafile?: boolean;
+  outdir?: string;
+  outbase?: string;
+  platform?: Platform;
+  external?: string[];
+  loader?: { [ext: string]: Loader };
+  resolveExtensions?: string[];
+  mainFields?: string[];
+  conditions?: string[];
+  write?: boolean;
+  allowOverwrite?: boolean;
+  tsconfig?: string;
+  outExtension?: { [ext: string]: string };
+  publicPath?: string;
+  entryNames?: string;
+  chunkNames?: string;
+  assetNames?: string;
+  inject?: string[];
+  banner?: { [type: string]: string };
+  footer?: { [type: string]: string };
+  incremental?: boolean;
+  entryPoints?: string[] | Record<string, string>;
+  stdin?: StdinOptions;
+  plugins?: Plugin[];
+  absWorkingDir?: string;
+  nodePaths?: string[]; // The "NODE_PATH" variable from Node.js
+  watch?: boolean | WatchMode;
+}
+
+export interface WatchMode {
+  onRebuild?: (error: BuildFailure | null, result: BuildResult | null) => void;
+}
+
+export interface StdinOptions {
+  contents: string;
+  resolveDir?: string;
+  sourcefile?: string;
+  loader?: Loader;
+}
+
+export interface Message {
+  pluginName: string;
+  text: string;
+  location: Location | null;
+  notes: Note[];
+
+  // Optional user-specified data that is passed through unmodified. You can
+  // use this to stash the original error, for example.
+  detail: any;
+}
+
+export interface Note {
+  text: string;
+  location: Location | null;
+}
+
+export interface Location {
+  file: string;
+  namespace: string;
+  line: number; // 1-based
+  column: number; // 0-based, in bytes
+  length: number; // in bytes
+  lineText: string;
+  suggestion: string;
+}
+
+export interface OutputFile {
+  path: string;
+  contents: Uint8Array; // "text" as bytes
+  text: string; // "contents" as text
+}
+
+export interface BuildInvalidate {
+  (): Promise<BuildIncremental>;
+  dispose(): void;
+}
+
+export interface BuildIncremental extends BuildResult {
+  rebuild: BuildInvalidate;
+}
+
+export interface BuildResult {
+  errors: Message[];
+  warnings: Message[];
+  outputFiles?: OutputFile[]; // Only when "write: false"
+  rebuild?: BuildInvalidate; // Only when "incremental: true"
+  stop?: () => void; // Only when "watch: true"
+  metafile?: Metafile; // Only when "metafile: true"
+}
+
+export interface BuildFailure extends Error {
+  errors: Message[];
+  warnings: Message[];
+}
+
+export interface ServeOptions {
+  port?: number;
+  host?: string;
+  servedir?: string;
+  onRequest?: (args: ServeOnRequestArgs) => void;
+}
+
+export interface ServeOnRequestArgs {
+  remoteAddress: string;
+  method: string;
+  path: string;
+  status: number;
+  timeInMS: number; // The time to generate the response, not to send it
+}
+
+export interface ServeResult {
+  port: number;
+  host: string;
+  wait: Promise<void>;
+  stop: () => void;
+}
+
+export interface TransformOptions extends CommonOptions {
+  tsconfigRaw?: string | {
+    compilerOptions?: {
+      jsxFactory?: string,
+      jsxFragmentFactory?: string,
+      useDefineForClassFields?: boolean,
+      importsNotUsedAsValues?: 'remove' | 'preserve' | 'error',
+    },
+  };
+
+  sourcefile?: string;
+  loader?: Loader;
+  banner?: string;
+  footer?: string;
+}
+
+export interface TransformResult {
+  code: string;
+  map: string;
+  warnings: Message[];
+}
+
+export interface TransformFailure extends Error {
+  errors: Message[];
+  warnings: Message[];
+}
+
+export interface Plugin {
+  name: string;
+  setup: (build: PluginBuild) => (void | Promise<void>);
+}
+
+export interface PluginBuild {
+  initialOptions: BuildOptions;
+  onStart(callback: () =>
+    (OnStartResult | null | void | Promise<OnStartResult | null | void>)): void;
+  onEnd(callback: (result: BuildResult) =>
+    (void | Promise<void>)): void;
+  onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) =>
+    (OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>)): void;
+  onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) =>
+    (OnLoadResult | null | undefined | Promise<OnLoadResult | null | undefined>)): void;
+}
+
+export interface OnStartResult {
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+}
+
+export interface OnResolveOptions {
+  filter: RegExp;
+  namespace?: string;
+}
+
+export interface OnResolveArgs {
+  path: string;
+  importer: string;
+  namespace: string;
+  resolveDir: string;
+  kind: ImportKind;
+  pluginData: any;
+}
+
+export type ImportKind =
+  | 'entry-point'
+
+  // JS
+  | 'import-statement'
+  | 'require-call'
+  | 'dynamic-import'
+  | 'require-resolve'
+
+  // CSS
+  | 'import-rule'
+  | 'url-token'
+
+export interface OnResolveResult {
+  pluginName?: string;
+
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+
+  path?: string;
+  external?: boolean;
+  sideEffects?: boolean;
+  namespace?: string;
+  pluginData?: any;
+
+  watchFiles?: string[];
+  watchDirs?: string[];
+}
+
+export interface OnLoadOptions {
+  filter: RegExp;
+  namespace?: string;
+}
+
+export interface OnLoadArgs {
+  path: string;
+  namespace: string;
+  pluginData: any;
+}
+
+export interface OnLoadResult {
+  pluginName?: string;
+
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+
+  contents?: string | Uint8Array;
+  resolveDir?: string;
+  loader?: Loader;
+  pluginData?: any;
+
+  watchFiles?: string[];
+  watchDirs?: string[];
+}
+
+export interface PartialMessage {
+  pluginName?: string;
+  text?: string;
+  location?: Partial<Location> | null;
+  notes?: PartialNote[];
+  detail?: any;
+}
+
+export interface PartialNote {
+  text?: string;
+  location?: Partial<Location> | null;
+}
+
+export interface Metafile {
+  inputs: {
+    [path: string]: {
+      bytes: number
+      imports: {
+        path: string
+        kind: ImportKind
+      }[]
+    }
+  }
+  outputs: {
+    [path: string]: {
+      bytes: number
+      inputs: {
+        [path: string]: {
+          bytesInOutput: number
+        }
+      }
+      imports: {
+        path: string
+        kind: ImportKind
+      }[]
+      exports: string[]
+      entryPoint?: string
+    }
+  }
+}
+
+export interface FormatMessagesOptions {
+  kind: 'error' | 'warning';
+  color?: boolean;
+  terminalWidth?: number;
+}
+
+export interface AnalyzeMetafileOptions {
+  color?: boolean;
+  verbose?: boolean;
+}
+
+// This function invokes the "esbuild" command-line tool for you. It returns a
+// promise that either resolves with a "BuildResult" object or rejects with a
+// "BuildFailure" object.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function build(options: BuildOptions & { write: false }): Promise<BuildResult & { outputFiles: OutputFile[] }>;
+export declare function build(options: BuildOptions & { incremental: true }): Promise<BuildIncremental>;
+export declare function build(options: BuildOptions): Promise<BuildResult>;
+
+// This function is similar to "build" but it serves the resulting files over
+// HTTP on a localhost address with the specified port.
+//
+// Works in node: yes
+// Works in browser: no
+export declare function serve(serveOptions: ServeOptions, buildOptions: BuildOptions): Promise<ServeResult>;
+
+// This function transforms a single JavaScript file. It can be used to minify
+// JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript
+// to older JavaScript. It returns a promise that is either resolved with a
+// "TransformResult" object or rejected with a "TransformFailure" object.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function transform(input: string, options?: TransformOptions): Promise<TransformResult>;
+
+// Converts log messages to formatted message strings suitable for printing in
+// the terminal. This allows you to reuse the built-in behavior of esbuild's
+// log message formatter. This is a batch-oriented API for efficiency.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>;
+
+// Pretty-prints an analysis of the metafile JSON to a string. This is just for
+// convenience to be able to match esbuild's pretty-printing exactly. If you want
+// to customize it, you can just inspect the data in the metafile yourself.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>;
+
+// A synchronous version of "build".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function buildSync(options: BuildOptions & { write: false }): BuildResult & { outputFiles: OutputFile[] };
+export declare function buildSync(options: BuildOptions): BuildResult;
+
+// A synchronous version of "transform".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function transformSync(input: string, options?: TransformOptions): TransformResult;
+
+// A synchronous version of "formatMessages".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function formatMessagesSync(messages: PartialMessage[], options: FormatMessagesOptions): string[];
+
+// A synchronous version of "analyzeMetafile".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function analyzeMetafileSync(metafile: Metafile | string, options?: AnalyzeMetafileOptions): string;
+
+// This configures the browser-based version of esbuild. It is necessary to
+// call this first and wait for the returned promise to be resolved before
+// making other API calls when using esbuild in the browser.
+//
+// Works in node: yes
+// Works in browser: yes ("options" is required)
+export declare function initialize(options: InitializeOptions): Promise<void>;
+
+export interface InitializeOptions {
+  // The URL of the "esbuild.wasm" file. This must be provided when running
+  // esbuild in the browser.
+  wasmURL?: string
+
+  // By default esbuild runs the WebAssembly-based browser API in a web worker
+  // to avoid blocking the UI thread. This can be disabled by setting "worker"
+  // to false.
+  worker?: boolean
+}
+
+export let version: string;
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,2416 @@
+(exports=>{
+var __defProp = Object.defineProperty;
+var __defProps = Object.defineProperties;
+var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues = (a, b) => {
+  for (var prop in b || (b = {}))
+    if (__hasOwnProp.call(b, prop))
+      __defNormalProp(a, prop, b[prop]);
+  if (__getOwnPropSymbols)
+    for (var prop of __getOwnPropSymbols(b)) {
+      if (__propIsEnum.call(b, prop))
+        __defNormalProp(a, prop, b[prop]);
+    }
+  return a;
+};
+var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
+var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
+var __export = (target, all) => {
+  __markAsModule(target);
+  for (var name in all)
+    __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __async = (__this, __arguments, generator) => {
+  return new Promise((resolve, reject) => {
+    var fulfilled = (value) => {
+      try {
+        step(generator.next(value));
+      } catch (e) {
+        reject(e);
+      }
+    };
+    var rejected = (value) => {
+      try {
+        step(generator.throw(value));
+      } catch (e) {
+        reject(e);
+      }
+    };
+    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
+    step((generator = generator.apply(__this, __arguments)).next());
+  });
+};
+
+// lib/npm/browser.ts
+__export(exports, {
+  analyzeMetafile: () => analyzeMetafile,
+  analyzeMetafileSync: () => analyzeMetafileSync,
+  build: () => build,
+  buildSync: () => buildSync,
+  formatMessages: () => formatMessages,
+  formatMessagesSync: () => formatMessagesSync,
+  initialize: () => initialize,
+  serve: () => serve,
+  transform: () => transform,
+  transformSync: () => transformSync,
+  version: () => version
+});
+
+// lib/shared/stdio_protocol.ts
+function encodePacket(packet) {
+  let visit = (value) => {
+    if (value === null) {
+      bb.write8(0);
+    } else if (typeof value === "boolean") {
+      bb.write8(1);
+      bb.write8(+value);
+    } else if (typeof value === "number") {
+      bb.write8(2);
+      bb.write32(value | 0);
+    } else if (typeof value === "string") {
+      bb.write8(3);
+      bb.write(encodeUTF8(value));
+    } else if (value instanceof Uint8Array) {
+      bb.write8(4);
+      bb.write(value);
+    } else if (value instanceof Array) {
+      bb.write8(5);
+      bb.write32(value.length);
+      for (let item of value) {
+        visit(item);
+      }
+    } else {
+      let keys = Object.keys(value);
+      bb.write8(6);
+      bb.write32(keys.length);
+      for (let key of keys) {
+        bb.write(encodeUTF8(key));
+        visit(value[key]);
+      }
+    }
+  };
+  let bb = new ByteBuffer();
+  bb.write32(0);
+  bb.write32(packet.id << 1 | +!packet.isRequest);
+  visit(packet.value);
+  writeUInt32LE(bb.buf, bb.len - 4, 0);
+  return bb.buf.subarray(0, bb.len);
+}
+function decodePacket(bytes) {
+  let visit = () => {
+    switch (bb.read8()) {
+      case 0:
+        return null;
+      case 1:
+        return !!bb.read8();
+      case 2:
+        return bb.read32();
+      case 3:
+        return decodeUTF8(bb.read());
+      case 4:
+        return bb.read();
+      case 5: {
+        let count = bb.read32();
+        let value2 = [];
+        for (let i = 0; i < count; i++) {
+          value2.push(visit());
+        }
+        return value2;
+      }
+      case 6: {
+        let count = bb.read32();
+        let value2 = {};
+        for (let i = 0; i < count; i++) {
+          value2[decodeUTF8(bb.read())] = visit();
+        }
+        return value2;
+      }
+      default:
+        throw new Error("Invalid packet");
+    }
+  };
+  let bb = new ByteBuffer(bytes);
+  let id = bb.read32();
+  let isRequest = (id & 1) === 0;
+  id >>>= 1;
+  let value = visit();
+  if (bb.ptr !== bytes.length) {
+    throw new Error("Invalid packet");
+  }
+  return { id, isRequest, value };
+}
+var ByteBuffer = class {
+  constructor(buf = new Uint8Array(1024)) {
+    this.buf = buf;
+    this.len = 0;
+    this.ptr = 0;
+  }
+  _write(delta) {
+    if (this.len + delta > this.buf.length) {
+      let clone = new Uint8Array((this.len + delta) * 2);
+      clone.set(this.buf);
+      this.buf = clone;
+    }
+    this.len += delta;
+    return this.len - delta;
+  }
+  write8(value) {
+    let offset = this._write(1);
+    this.buf[offset] = value;
+  }
+  write32(value) {
+    let offset = this._write(4);
+    writeUInt32LE(this.buf, value, offset);
+  }
+  write(bytes) {
+    let offset = this._write(4 + bytes.length);
+    writeUInt32LE(this.buf, bytes.length, offset);
+    this.buf.set(bytes, offset + 4);
+  }
+  _read(delta) {
+    if (this.ptr + delta > this.buf.length) {
+      throw new Error("Invalid packet");
+    }
+    this.ptr += delta;
+    return this.ptr - delta;
+  }
+  read8() {
+    return this.buf[this._read(1)];
+  }
+  read32() {
+    return readUInt32LE(this.buf, this._read(4));
+  }
+  read() {
+    let length = this.read32();
+    let bytes = new Uint8Array(length);
+    let ptr = this._read(bytes.length);
+    bytes.set(this.buf.subarray(ptr, ptr + length));
+    return bytes;
+  }
+};
+var encodeUTF8;
+var decodeUTF8;
+if (typeof TextEncoder !== "undefined" && typeof TextDecoder !== "undefined") {
+  let encoder = new TextEncoder();
+  let decoder = new TextDecoder();
+  encodeUTF8 = (text) => encoder.encode(text);
+  decodeUTF8 = (bytes) => decoder.decode(bytes);
+} else if (typeof Buffer !== "undefined") {
+  encodeUTF8 = (text) => {
+    let buffer = Buffer.from(text);
+    if (!(buffer instanceof Uint8Array)) {
+      buffer = new Uint8Array(buffer);
+    }
+    return buffer;
+  };
+  decodeUTF8 = (bytes) => {
+    let { buffer, byteOffset, byteLength } = bytes;
+    return Buffer.from(buffer, byteOffset, byteLength).toString();
+  };
+} else {
+  throw new Error("No UTF-8 codec found");
+}
+function readUInt32LE(buffer, offset) {
+  return buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24;
+}
+function writeUInt32LE(buffer, value, offset) {
+  buffer[offset++] = value;
+  buffer[offset++] = value >> 8;
+  buffer[offset++] = value >> 16;
+  buffer[offset++] = value >> 24;
+}
+
+// lib/shared/common.ts
+function validateTarget(target) {
+  target += "";
+  if (target.indexOf(",") >= 0)
+    throw new Error(`Invalid target: ${target}`);
+  return target;
+}
+var canBeAnything = () => null;
+var mustBeBoolean = (value) => typeof value === "boolean" ? null : "a boolean";
+var mustBeBooleanOrObject = (value) => typeof value === "boolean" || typeof value === "object" && !Array.isArray(value) ? null : "a boolean or an object";
+var mustBeString = (value) => typeof value === "string" ? null : "a string";
+var mustBeRegExp = (value) => value instanceof RegExp ? null : "a RegExp object";
+var mustBeInteger = (value) => typeof value === "number" && value === (value | 0) ? null : "an integer";
+var mustBeFunction = (value) => typeof value === "function" ? null : "a function";
+var mustBeArray = (value) => Array.isArray(value) ? null : "an array";
+var mustBeObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? null : "an object";
+var mustBeArrayOrRecord = (value) => typeof value === "object" && value !== null ? null : "an array or an object";
+var mustBeObjectOrNull = (value) => typeof value === "object" && !Array.isArray(value) ? null : "an object or null";
+var mustBeStringOrBoolean = (value) => typeof value === "string" || typeof value === "boolean" ? null : "a string or a boolean";
+var mustBeStringOrObject = (value) => typeof value === "string" || typeof value === "object" && value !== null && !Array.isArray(value) ? null : "a string or an object";
+var mustBeStringOrArray = (value) => typeof value === "string" || Array.isArray(value) ? null : "a string or an array";
+var mustBeStringOrUint8Array = (value) => typeof value === "string" || value instanceof Uint8Array ? null : "a string or a Uint8Array";
+function getFlag(object, keys, key, mustBeFn) {
+  let value = object[key];
+  keys[key + ""] = true;
+  if (value === void 0)
+    return void 0;
+  let mustBe = mustBeFn(value);
+  if (mustBe !== null)
+    throw new Error(`"${key}" must be ${mustBe}`);
+  return value;
+}
+function checkForInvalidFlags(object, keys, where) {
+  for (let key in object) {
+    if (!(key in keys)) {
+      throw new Error(`Invalid option ${where}: "${key}"`);
+    }
+  }
+}
+function validateInitializeOptions(options) {
+  let keys = Object.create(null);
+  let wasmURL = getFlag(options, keys, "wasmURL", mustBeString);
+  let worker = getFlag(options, keys, "worker", mustBeBoolean);
+  checkForInvalidFlags(options, keys, "in startService() call");
+  return {
+    wasmURL,
+    worker
+  };
+}
+function pushLogFlags(flags, options, keys, isTTY, logLevelDefault) {
+  let color = getFlag(options, keys, "color", mustBeBoolean);
+  let logLevel = getFlag(options, keys, "logLevel", mustBeString);
+  let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
+  if (color !== void 0)
+    flags.push(`--color=${color}`);
+  else if (isTTY)
+    flags.push(`--color=true`);
+  flags.push(`--log-level=${logLevel || logLevelDefault}`);
+  flags.push(`--log-limit=${logLimit || 0}`);
+}
+function pushCommonFlags(flags, options, keys) {
+  let legalComments = getFlag(options, keys, "legalComments", mustBeString);
+  let sourceRoot = getFlag(options, keys, "sourceRoot", mustBeString);
+  let sourcesContent = getFlag(options, keys, "sourcesContent", mustBeBoolean);
+  let target = getFlag(options, keys, "target", mustBeStringOrArray);
+  let format = getFlag(options, keys, "format", mustBeString);
+  let globalName = getFlag(options, keys, "globalName", mustBeString);
+  let minify = getFlag(options, keys, "minify", mustBeBoolean);
+  let minifySyntax = getFlag(options, keys, "minifySyntax", mustBeBoolean);
+  let minifyWhitespace = getFlag(options, keys, "minifyWhitespace", mustBeBoolean);
+  let minifyIdentifiers = getFlag(options, keys, "minifyIdentifiers", mustBeBoolean);
+  let charset = getFlag(options, keys, "charset", mustBeString);
+  let treeShaking = getFlag(options, keys, "treeShaking", mustBeBoolean);
+  let ignoreAnnotations = getFlag(options, keys, "ignoreAnnotations", mustBeBoolean);
+  let jsx = getFlag(options, keys, "jsx", mustBeString);
+  let jsxFactory = getFlag(options, keys, "jsxFactory", mustBeString);
+  let jsxFragment = getFlag(options, keys, "jsxFragment", mustBeString);
+  let define = getFlag(options, keys, "define", mustBeObject);
+  let pure = getFlag(options, keys, "pure", mustBeArray);
+  let keepNames = getFlag(options, keys, "keepNames", mustBeBoolean);
+  if (legalComments)
+    flags.push(`--legal-comments=${legalComments}`);
+  if (sourceRoot !== void 0)
+    flags.push(`--source-root=${sourceRoot}`);
+  if (sourcesContent !== void 0)
+    flags.push(`--sources-content=${sourcesContent}`);
+  if (target) {
+    if (Array.isArray(target))
+      flags.push(`--target=${Array.from(target).map(validateTarget).join(",")}`);
+    else
+      flags.push(`--target=${validateTarget(target)}`);
+  }
+  if (format)
+    flags.push(`--format=${format}`);
+  if (globalName)
+    flags.push(`--global-name=${globalName}`);
+  if (minify)
+    flags.push("--minify");
+  if (minifySyntax)
+    flags.push("--minify-syntax");
+  if (minifyWhitespace)
+    flags.push("--minify-whitespace");
+  if (minifyIdentifiers)
+    flags.push("--minify-identifiers");
+  if (charset)
+    flags.push(`--charset=${charset}`);
+  if (treeShaking !== void 0)
+    flags.push(`--tree-shaking=${treeShaking}`);
+  if (ignoreAnnotations)
+    flags.push(`--ignore-annotations`);
+  if (jsx)
+    flags.push(`--jsx=${jsx}`);
+  if (jsxFactory)
+    flags.push(`--jsx-factory=${jsxFactory}`);
+  if (jsxFragment)
+    flags.push(`--jsx-fragment=${jsxFragment}`);
+  if (define) {
+    for (let key in define) {
+      if (key.indexOf("=") >= 0)
+        throw new Error(`Invalid define: ${key}`);
+      flags.push(`--define:${key}=${define[key]}`);
+    }
+  }
+  if (pure)
+    for (let fn of pure)
+      flags.push(`--pure:${fn}`);
+  if (keepNames)
+    flags.push(`--keep-names`);
+}
+function flagsForBuildOptions(callName, options, isTTY, logLevelDefault, writeDefault) {
+  var _a;
+  let flags = [];
+  let entries = [];
+  let keys = Object.create(null);
+  let stdinContents = null;
+  let stdinResolveDir = null;
+  let watchMode = null;
+  pushLogFlags(flags, options, keys, isTTY, logLevelDefault);
+  pushCommonFlags(flags, options, keys);
+  let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
+  let bundle = getFlag(options, keys, "bundle", mustBeBoolean);
+  let watch = getFlag(options, keys, "watch", mustBeBooleanOrObject);
+  let splitting = getFlag(options, keys, "splitting", mustBeBoolean);
+  let preserveSymlinks = getFlag(options, keys, "preserveSymlinks", mustBeBoolean);
+  let metafile = getFlag(options, keys, "metafile", mustBeBoolean);
+  let outfile = getFlag(options, keys, "outfile", mustBeString);
+  let outdir = getFlag(options, keys, "outdir", mustBeString);
+  let outbase = getFlag(options, keys, "outbase", mustBeString);
+  let platform = getFlag(options, keys, "platform", mustBeString);
+  let tsconfig = getFlag(options, keys, "tsconfig", mustBeString);
+  let resolveExtensions = getFlag(options, keys, "resolveExtensions", mustBeArray);
+  let nodePathsInput = getFlag(options, keys, "nodePaths", mustBeArray);
+  let mainFields = getFlag(options, keys, "mainFields", mustBeArray);
+  let conditions = getFlag(options, keys, "conditions", mustBeArray);
+  let external = getFlag(options, keys, "external", mustBeArray);
+  let loader = getFlag(options, keys, "loader", mustBeObject);
+  let outExtension = getFlag(options, keys, "outExtension", mustBeObject);
+  let publicPath = getFlag(options, keys, "publicPath", mustBeString);
+  let entryNames = getFlag(options, keys, "entryNames", mustBeString);
+  let chunkNames = getFlag(options, keys, "chunkNames", mustBeString);
+  let assetNames = getFlag(options, keys, "assetNames", mustBeString);
+  let inject = getFlag(options, keys, "inject", mustBeArray);
+  let banner = getFlag(options, keys, "banner", mustBeObject);
+  let footer = getFlag(options, keys, "footer", mustBeObject);
+  let entryPoints = getFlag(options, keys, "entryPoints", mustBeArrayOrRecord);
+  let absWorkingDir = getFlag(options, keys, "absWorkingDir", mustBeString);
+  let stdin = getFlag(options, keys, "stdin", mustBeObject);
+  let write = (_a = getFlag(options, keys, "write", mustBeBoolean)) != null ? _a : writeDefault;
+  let allowOverwrite = getFlag(options, keys, "allowOverwrite", mustBeBoolean);
+  let incremental = getFlag(options, keys, "incremental", mustBeBoolean) === true;
+  keys.plugins = true;
+  checkForInvalidFlags(options, keys, `in ${callName}() call`);
+  if (sourcemap)
+    flags.push(`--sourcemap${sourcemap === true ? "" : `=${sourcemap}`}`);
+  if (bundle)
+    flags.push("--bundle");
+  if (allowOverwrite)
+    flags.push("--allow-overwrite");
+  if (watch) {
+    flags.push("--watch");
+    if (typeof watch === "boolean") {
+      watchMode = {};
+    } else {
+      let watchKeys = Object.create(null);
+      let onRebuild = getFlag(watch, watchKeys, "onRebuild", mustBeFunction);
+      checkForInvalidFlags(watch, watchKeys, `on "watch" in ${callName}() call`);
+      watchMode = { onRebuild };
+    }
+  }
+  if (splitting)
+    flags.push("--splitting");
+  if (preserveSymlinks)
+    flags.push("--preserve-symlinks");
+  if (metafile)
+    flags.push(`--metafile`);
+  if (outfile)
+    flags.push(`--outfile=${outfile}`);
+  if (outdir)
+    flags.push(`--outdir=${outdir}`);
+  if (outbase)
+    flags.push(`--outbase=${outbase}`);
+  if (platform)
+    flags.push(`--platform=${platform}`);
+  if (tsconfig)
+    flags.push(`--tsconfig=${tsconfig}`);
+  if (resolveExtensions) {
+    let values = [];
+    for (let value of resolveExtensions) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid resolve extension: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--resolve-extensions=${values.join(",")}`);
+  }
+  if (publicPath)
+    flags.push(`--public-path=${publicPath}`);
+  if (entryNames)
+    flags.push(`--entry-names=${entryNames}`);
+  if (chunkNames)
+    flags.push(`--chunk-names=${chunkNames}`);
+  if (assetNames)
+    flags.push(`--asset-names=${assetNames}`);
+  if (mainFields) {
+    let values = [];
+    for (let value of mainFields) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid main field: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--main-fields=${values.join(",")}`);
+  }
+  if (conditions) {
+    let values = [];
+    for (let value of conditions) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid condition: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--conditions=${values.join(",")}`);
+  }
+  if (external)
+    for (let name of external)
+      flags.push(`--external:${name}`);
+  if (banner) {
+    for (let type in banner) {
+      if (type.indexOf("=") >= 0)
+        throw new Error(`Invalid banner file type: ${type}`);
+      flags.push(`--banner:${type}=${banner[type]}`);
+    }
+  }
+  if (footer) {
+    for (let type in footer) {
+      if (type.indexOf("=") >= 0)
+        throw new Error(`Invalid footer file type: ${type}`);
+      flags.push(`--footer:${type}=${footer[type]}`);
+    }
+  }
+  if (inject)
+    for (let path of inject)
+      flags.push(`--inject:${path}`);
+  if (loader) {
+    for (let ext in loader) {
+      if (ext.indexOf("=") >= 0)
+        throw new Error(`Invalid loader extension: ${ext}`);
+      flags.push(`--loader:${ext}=${loader[ext]}`);
+    }
+  }
+  if (outExtension) {
+    for (let ext in outExtension) {
+      if (ext.indexOf("=") >= 0)
+        throw new Error(`Invalid out extension: ${ext}`);
+      flags.push(`--out-extension:${ext}=${outExtension[ext]}`);
+    }
+  }
+  if (entryPoints) {
+    if (Array.isArray(entryPoints)) {
+      for (let entryPoint of entryPoints) {
+        entries.push(["", entryPoint + ""]);
+      }
+    } else {
+      for (let [key, value] of Object.entries(entryPoints)) {
+        entries.push([key + "", value + ""]);
+      }
+    }
+  }
+  if (stdin) {
+    let stdinKeys = Object.create(null);
+    let contents = getFlag(stdin, stdinKeys, "contents", mustBeString);
+    let resolveDir = getFlag(stdin, stdinKeys, "resolveDir", mustBeString);
+    let sourcefile = getFlag(stdin, stdinKeys, "sourcefile", mustBeString);
+    let loader2 = getFlag(stdin, stdinKeys, "loader", mustBeString);
+    checkForInvalidFlags(stdin, stdinKeys, 'in "stdin" object');
+    if (sourcefile)
+      flags.push(`--sourcefile=${sourcefile}`);
+    if (loader2)
+      flags.push(`--loader=${loader2}`);
+    if (resolveDir)
+      stdinResolveDir = resolveDir + "";
+    stdinContents = contents ? contents + "" : "";
+  }
+  let nodePaths = [];
+  if (nodePathsInput) {
+    for (let value of nodePathsInput) {
+      value += "";
+      nodePaths.push(value);
+    }
+  }
+  return {
+    entries,
+    flags,
+    write,
+    stdinContents,
+    stdinResolveDir,
+    absWorkingDir,
+    incremental,
+    nodePaths,
+    watch: watchMode
+  };
+}
+function flagsForTransformOptions(callName, options, isTTY, logLevelDefault) {
+  let flags = [];
+  let keys = Object.create(null);
+  pushLogFlags(flags, options, keys, isTTY, logLevelDefault);
+  pushCommonFlags(flags, options, keys);
+  let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
+  let tsconfigRaw = getFlag(options, keys, "tsconfigRaw", mustBeStringOrObject);
+  let sourcefile = getFlag(options, keys, "sourcefile", mustBeString);
+  let loader = getFlag(options, keys, "loader", mustBeString);
+  let banner = getFlag(options, keys, "banner", mustBeString);
+  let footer = getFlag(options, keys, "footer", mustBeString);
+  checkForInvalidFlags(options, keys, `in ${callName}() call`);
+  if (sourcemap)
+    flags.push(`--sourcemap=${sourcemap === true ? "external" : sourcemap}`);
+  if (tsconfigRaw)
+    flags.push(`--tsconfig-raw=${typeof tsconfigRaw === "string" ? tsconfigRaw : JSON.stringify(tsconfigRaw)}`);
+  if (sourcefile)
+    flags.push(`--sourcefile=${sourcefile}`);
+  if (loader)
+    flags.push(`--loader=${loader}`);
+  if (banner)
+    flags.push(`--banner=${banner}`);
+  if (footer)
+    flags.push(`--footer=${footer}`);
+  return flags;
+}
+function createChannel(streamIn) {
+  let responseCallbacks = new Map();
+  let pluginCallbacks = new Map();
+  let watchCallbacks = new Map();
+  let serveCallbacks = new Map();
+  let nextServeID = 0;
+  let isClosed = false;
+  let nextRequestID = 0;
+  let nextBuildKey = 0;
+  let stdout = new Uint8Array(16 * 1024);
+  let stdoutUsed = 0;
+  let readFromStdout = (chunk) => {
+    let limit = stdoutUsed + chunk.length;
+    if (limit > stdout.length) {
+      let swap = new Uint8Array(limit * 2);
+      swap.set(stdout);
+      stdout = swap;
+    }
+    stdout.set(chunk, stdoutUsed);
+    stdoutUsed += chunk.length;
+    let offset = 0;
+    while (offset + 4 <= stdoutUsed) {
+      let length = readUInt32LE(stdout, offset);
+      if (offset + 4 + length > stdoutUsed) {
+        break;
+      }
+      offset += 4;
+      handleIncomingPacket(stdout.subarray(offset, offset + length));
+      offset += length;
+    }
+    if (offset > 0) {
+      stdout.copyWithin(0, offset, stdoutUsed);
+      stdoutUsed -= offset;
+    }
+  };
+  let afterClose = () => {
+    isClosed = true;
+    for (let callback of responseCallbacks.values()) {
+      callback("The service was stopped", null);
+    }
+    responseCallbacks.clear();
+    for (let callbacks of serveCallbacks.values()) {
+      callbacks.onWait("The service was stopped");
+    }
+    serveCallbacks.clear();
+    for (let callback of watchCallbacks.values()) {
+      try {
+        callback(new Error("The service was stopped"), null);
+      } catch (e) {
+        console.error(e);
+      }
+    }
+    watchCallbacks.clear();
+  };
+  let sendRequest = (refs, value, callback) => {
+    if (isClosed)
+      return callback("The service is no longer running", null);
+    let id = nextRequestID++;
+    responseCallbacks.set(id, (error, response) => {
+      try {
+        callback(error, response);
+      } finally {
+        if (refs)
+          refs.unref();
+      }
+    });
+    if (refs)
+      refs.ref();
+    streamIn.writeToStdin(encodePacket({ id, isRequest: true, value }));
+  };
+  let sendResponse = (id, value) => {
+    if (isClosed)
+      throw new Error("The service is no longer running");
+    streamIn.writeToStdin(encodePacket({ id, isRequest: false, value }));
+  };
+  let handleRequest = (id, request) => __async(this, null, function* () {
+    try {
+      switch (request.command) {
+        case "ping": {
+          sendResponse(id, {});
+          break;
+        }
+        case "start": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, yield callback(request));
+          break;
+        }
+        case "resolve": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, yield callback(request));
+          break;
+        }
+        case "load": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, yield callback(request));
+          break;
+        }
+        case "serve-request": {
+          let callbacks = serveCallbacks.get(request.serveID);
+          if (callbacks && callbacks.onRequest)
+            callbacks.onRequest(request.args);
+          sendResponse(id, {});
+          break;
+        }
+        case "serve-wait": {
+          let callbacks = serveCallbacks.get(request.serveID);
+          if (callbacks)
+            callbacks.onWait(request.error);
+          sendResponse(id, {});
+          break;
+        }
+        case "watch-rebuild": {
+          let callback = watchCallbacks.get(request.watchID);
+          try {
+            if (callback)
+              callback(null, request.args);
+          } catch (err) {
+            console.error(err);
+          }
+          sendResponse(id, {});
+          break;
+        }
+        default:
+          throw new Error(`Invalid command: ` + request.command);
+      }
+    } catch (e) {
+      sendResponse(id, { errors: [extractErrorMessageV8(e, streamIn, null, void 0, "")] });
+    }
+  });
+  let isFirstPacket = true;
+  let handleIncomingPacket = (bytes) => {
+    if (isFirstPacket) {
+      isFirstPacket = false;
+      let binaryVersion = String.fromCharCode(...bytes);
+      if (binaryVersion !== "0.13.8") {
+        throw new Error(`Cannot start service: Host version "${"0.13.8"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
+      }
+      return;
+    }
+    let packet = decodePacket(bytes);
+    if (packet.isRequest) {
+      handleRequest(packet.id, packet.value);
+    } else {
+      let callback = responseCallbacks.get(packet.id);
+      responseCallbacks.delete(packet.id);
+      if (packet.value.error)
+        callback(packet.value.error, {});
+      else
+        callback(null, packet.value);
+    }
+  };
+  let handlePlugins = (initialOptions, plugins, buildKey, stash) => __async(this, null, function* () {
+    let onStartCallbacks = [];
+    let onEndCallbacks = [];
+    let onResolveCallbacks = {};
+    let onLoadCallbacks = {};
+    let nextCallbackID = 0;
+    let i = 0;
+    let requestPlugins = [];
+    plugins = [...plugins];
+    for (let item of plugins) {
+      let keys = {};
+      if (typeof item !== "object")
+        throw new Error(`Plugin at index ${i} must be an object`);
+      let name = getFlag(item, keys, "name", mustBeString);
+      if (typeof name !== "string" || name === "")
+        throw new Error(`Plugin at index ${i} is missing a name`);
+      try {
+        let setup = getFlag(item, keys, "setup", mustBeFunction);
+        if (typeof setup !== "function")
+          throw new Error(`Plugin is missing a setup function`);
+        checkForInvalidFlags(item, keys, `on plugin ${JSON.stringify(name)}`);
+        let plugin = {
+          name,
+          onResolve: [],
+          onLoad: []
+        };
+        i++;
+        let promise = setup({
+          initialOptions,
+          onStart(callback2) {
+            let registeredText = `This error came from the "onStart" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onStart");
+            onStartCallbacks.push({ name, callback: callback2, note: registeredNote });
+          },
+          onEnd(callback2) {
+            let registeredText = `This error came from the "onEnd" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onEnd");
+            onEndCallbacks.push({ name, callback: callback2, note: registeredNote });
+          },
+          onResolve(options, callback2) {
+            let registeredText = `This error came from the "onResolve" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onResolve");
+            let keys2 = {};
+            let filter = getFlag(options, keys2, "filter", mustBeRegExp);
+            let namespace = getFlag(options, keys2, "namespace", mustBeString);
+            checkForInvalidFlags(options, keys2, `in onResolve() call for plugin ${JSON.stringify(name)}`);
+            if (filter == null)
+              throw new Error(`onResolve() call is missing a filter`);
+            let id = nextCallbackID++;
+            onResolveCallbacks[id] = { name, callback: callback2, note: registeredNote };
+            plugin.onResolve.push({ id, filter: filter.source, namespace: namespace || "" });
+          },
+          onLoad(options, callback2) {
+            let registeredText = `This error came from the "onLoad" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onLoad");
+            let keys2 = {};
+            let filter = getFlag(options, keys2, "filter", mustBeRegExp);
+            let namespace = getFlag(options, keys2, "namespace", mustBeString);
+            checkForInvalidFlags(options, keys2, `in onLoad() call for plugin ${JSON.stringify(name)}`);
+            if (filter == null)
+              throw new Error(`onLoad() call is missing a filter`);
+            let id = nextCallbackID++;
+            onLoadCallbacks[id] = { name, callback: callback2, note: registeredNote };
+            plugin.onLoad.push({ id, filter: filter.source, namespace: namespace || "" });
+          }
+        });
+        if (promise)
+          yield promise;
+        requestPlugins.push(plugin);
+      } catch (e) {
+        return { ok: false, error: e, pluginName: name };
+      }
+    }
+    const callback = (request) => __async(this, null, function* () {
+      switch (request.command) {
+        case "start": {
+          let response = { errors: [], warnings: [] };
+          yield Promise.all(onStartCallbacks.map((_0) => __async(this, [_0], function* ({ name, callback: callback2, note }) {
+            try {
+              let result = yield callback2();
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onStart() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onStart() callback in plugin ${JSON.stringify(name)}`);
+                if (errors != null)
+                  response.errors.push(...sanitizeMessages(errors, "errors", stash, name));
+                if (warnings != null)
+                  response.warnings.push(...sanitizeMessages(warnings, "warnings", stash, name));
+              }
+            } catch (e) {
+              response.errors.push(extractErrorMessageV8(e, streamIn, stash, note && note(), name));
+            }
+          })));
+          return response;
+        }
+        case "resolve": {
+          let response = {}, name = "", callback2, note;
+          for (let id of request.ids) {
+            try {
+              ({ name, callback: callback2, note } = onResolveCallbacks[id]);
+              let result = yield callback2({
+                path: request.path,
+                importer: request.importer,
+                namespace: request.namespace,
+                resolveDir: request.resolveDir,
+                kind: request.kind,
+                pluginData: stash.load(request.pluginData)
+              });
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onResolve() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let pluginName = getFlag(result, keys, "pluginName", mustBeString);
+                let path = getFlag(result, keys, "path", mustBeString);
+                let namespace = getFlag(result, keys, "namespace", mustBeString);
+                let external = getFlag(result, keys, "external", mustBeBoolean);
+                let sideEffects = getFlag(result, keys, "sideEffects", mustBeBoolean);
+                let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
+                let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onResolve() callback in plugin ${JSON.stringify(name)}`);
+                response.id = id;
+                if (pluginName != null)
+                  response.pluginName = pluginName;
+                if (path != null)
+                  response.path = path;
+                if (namespace != null)
+                  response.namespace = namespace;
+                if (external != null)
+                  response.external = external;
+                if (sideEffects != null)
+                  response.sideEffects = sideEffects;
+                if (pluginData != null)
+                  response.pluginData = stash.store(pluginData);
+                if (errors != null)
+                  response.errors = sanitizeMessages(errors, "errors", stash, name);
+                if (warnings != null)
+                  response.warnings = sanitizeMessages(warnings, "warnings", stash, name);
+                if (watchFiles != null)
+                  response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
+                if (watchDirs != null)
+                  response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
+                break;
+              }
+            } catch (e) {
+              return { id, errors: [extractErrorMessageV8(e, streamIn, stash, note && note(), name)] };
+            }
+          }
+          return response;
+        }
+        case "load": {
+          let response = {}, name = "", callback2, note;
+          for (let id of request.ids) {
+            try {
+              ({ name, callback: callback2, note } = onLoadCallbacks[id]);
+              let result = yield callback2({
+                path: request.path,
+                namespace: request.namespace,
+                pluginData: stash.load(request.pluginData)
+              });
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onLoad() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let pluginName = getFlag(result, keys, "pluginName", mustBeString);
+                let contents = getFlag(result, keys, "contents", mustBeStringOrUint8Array);
+                let resolveDir = getFlag(result, keys, "resolveDir", mustBeString);
+                let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
+                let loader = getFlag(result, keys, "loader", mustBeString);
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
+                let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onLoad() callback in plugin ${JSON.stringify(name)}`);
+                response.id = id;
+                if (pluginName != null)
+                  response.pluginName = pluginName;
+                if (contents instanceof Uint8Array)
+                  response.contents = contents;
+                else if (contents != null)
+                  response.contents = encodeUTF8(contents);
+                if (resolveDir != null)
+                  response.resolveDir = resolveDir;
+                if (pluginData != null)
+                  response.pluginData = stash.store(pluginData);
+                if (loader != null)
+                  response.loader = loader;
+                if (errors != null)
+                  response.errors = sanitizeMessages(errors, "errors", stash, name);
+                if (warnings != null)
+                  response.warnings = sanitizeMessages(warnings, "warnings", stash, name);
+                if (watchFiles != null)
+                  response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
+                if (watchDirs != null)
+                  response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
+                break;
+              }
+            } catch (e) {
+              return { id, errors: [extractErrorMessageV8(e, streamIn, stash, note && note(), name)] };
+            }
+          }
+          return response;
+        }
+        default:
+          throw new Error(`Invalid command: ` + request.command);
+      }
+    });
+    let runOnEndCallbacks = (result, logPluginError, done) => done();
+    if (onEndCallbacks.length > 0) {
+      runOnEndCallbacks = (result, logPluginError, done) => {
+        (() => __async(this, null, function* () {
+          for (const { name, callback: callback2, note } of onEndCallbacks) {
+            try {
+              yield callback2(result);
+            } catch (e) {
+              result.errors.push(yield new Promise((resolve) => logPluginError(e, name, note && note(), resolve)));
+            }
+          }
+        }))().then(done);
+      };
+    }
+    let refCount = 0;
+    return {
+      ok: true,
+      requestPlugins,
+      runOnEndCallbacks,
+      pluginRefs: {
+        ref() {
+          if (++refCount === 1)
+            pluginCallbacks.set(buildKey, callback);
+        },
+        unref() {
+          if (--refCount === 0)
+            pluginCallbacks.delete(buildKey);
+        }
+      }
+    };
+  });
+  let buildServeData = (refs, options, request) => {
+    let keys = {};
+    let port = getFlag(options, keys, "port", mustBeInteger);
+    let host = getFlag(options, keys, "host", mustBeString);
+    let servedir = getFlag(options, keys, "servedir", mustBeString);
+    let onRequest = getFlag(options, keys, "onRequest", mustBeFunction);
+    let serveID = nextServeID++;
+    let onWait;
+    let wait = new Promise((resolve, reject) => {
+      onWait = (error) => {
+        serveCallbacks.delete(serveID);
+        if (error !== null)
+          reject(new Error(error));
+        else
+          resolve();
+      };
+    });
+    request.serve = { serveID };
+    checkForInvalidFlags(options, keys, `in serve() call`);
+    if (port !== void 0)
+      request.serve.port = port;
+    if (host !== void 0)
+      request.serve.host = host;
+    if (servedir !== void 0)
+      request.serve.servedir = servedir;
+    serveCallbacks.set(serveID, {
+      onRequest,
+      onWait
+    });
+    return {
+      wait,
+      stop() {
+        sendRequest(refs, { command: "serve-stop", serveID }, () => {
+        });
+      }
+    };
+  };
+  const buildLogLevelDefault = "warning";
+  const transformLogLevelDefault = "silent";
+  let buildOrServe = (args) => {
+    let key = nextBuildKey++;
+    const details = createObjectStash();
+    let plugins;
+    let { refs, options, isTTY, callback } = args;
+    if (typeof options === "object") {
+      let value = options.plugins;
+      if (value !== void 0) {
+        if (!Array.isArray(value))
+          throw new Error(`"plugins" must be an array`);
+        plugins = value;
+      }
+    }
+    let logPluginError = (e, pluginName, note, done) => {
+      let flags = [];
+      try {
+        pushLogFlags(flags, options, {}, isTTY, buildLogLevelDefault);
+      } catch (e2) {
+      }
+      const message = extractErrorMessageV8(e, streamIn, details, note, pluginName);
+      sendRequest(refs, { command: "error", flags, error: message }, () => {
+        message.detail = details.load(message.detail);
+        done(message);
+      });
+    };
+    let handleError = (e, pluginName) => {
+      logPluginError(e, pluginName, void 0, (error) => {
+        callback(failureErrorWithLog("Build failed", [error], []), null);
+      });
+    };
+    if (plugins && plugins.length > 0) {
+      if (streamIn.isSync)
+        return handleError(new Error("Cannot use plugins in synchronous API calls"), "");
+      handlePlugins(options, plugins, key, details).then((result) => {
+        if (!result.ok) {
+          handleError(result.error, result.pluginName);
+        } else {
+          try {
+            buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
+              key,
+              details,
+              logPluginError,
+              requestPlugins: result.requestPlugins,
+              runOnEndCallbacks: result.runOnEndCallbacks,
+              pluginRefs: result.pluginRefs
+            }));
+          } catch (e) {
+            handleError(e, "");
+          }
+        }
+      }, (e) => handleError(e, ""));
+    } else {
+      try {
+        buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
+          key,
+          details,
+          logPluginError,
+          requestPlugins: null,
+          runOnEndCallbacks: (result, logPluginError2, done) => done(),
+          pluginRefs: null
+        }));
+      } catch (e) {
+        handleError(e, "");
+      }
+    }
+  };
+  let buildOrServeContinue = ({
+    callName,
+    refs: callerRefs,
+    serveOptions,
+    options,
+    isTTY,
+    defaultWD,
+    callback,
+    key,
+    details,
+    logPluginError,
+    requestPlugins,
+    runOnEndCallbacks,
+    pluginRefs
+  }) => {
+    const refs = {
+      ref() {
+        if (pluginRefs)
+          pluginRefs.ref();
+        if (callerRefs)
+          callerRefs.ref();
+      },
+      unref() {
+        if (pluginRefs)
+          pluginRefs.unref();
+        if (callerRefs)
+          callerRefs.unref();
+      }
+    };
+    let writeDefault = !streamIn.isBrowser;
+    let {
+      entries,
+      flags,
+      write,
+      stdinContents,
+      stdinResolveDir,
+      absWorkingDir,
+      incremental,
+      nodePaths,
+      watch
+    } = flagsForBuildOptions(callName, options, isTTY, buildLogLevelDefault, writeDefault);
+    let request = {
+      command: "build",
+      key,
+      entries,
+      flags,
+      write,
+      stdinContents,
+      stdinResolveDir,
+      absWorkingDir: absWorkingDir || defaultWD,
+      incremental,
+      nodePaths
+    };
+    if (requestPlugins)
+      request.plugins = requestPlugins;
+    let serve2 = serveOptions && buildServeData(refs, serveOptions, request);
+    let rebuild;
+    let stop;
+    let copyResponseToResult = (response, result) => {
+      if (response.outputFiles)
+        result.outputFiles = response.outputFiles.map(convertOutputFiles);
+      if (response.metafile)
+        result.metafile = JSON.parse(response.metafile);
+      if (response.writeToStdout !== void 0)
+        console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, ""));
+    };
+    let buildResponseToResult = (response, callback2) => {
+      let result = {
+        errors: replaceDetailsInMessages(response.errors, details),
+        warnings: replaceDetailsInMessages(response.warnings, details)
+      };
+      copyResponseToResult(response, result);
+      runOnEndCallbacks(result, logPluginError, () => {
+        if (result.errors.length > 0) {
+          return callback2(failureErrorWithLog("Build failed", result.errors, result.warnings), null);
+        }
+        if (response.rebuildID !== void 0) {
+          if (!rebuild) {
+            let isDisposed = false;
+            rebuild = () => new Promise((resolve, reject) => {
+              if (isDisposed || isClosed)
+                throw new Error("Cannot rebuild");
+              sendRequest(refs, { command: "rebuild", rebuildID: response.rebuildID }, (error2, response2) => {
+                if (error2) {
+                  const message = { pluginName: "", text: error2, location: null, notes: [], detail: void 0 };
+                  return callback2(failureErrorWithLog("Build failed", [message], []), null);
+                }
+                buildResponseToResult(response2, (error3, result3) => {
+                  if (error3)
+                    reject(error3);
+                  else
+                    resolve(result3);
+                });
+              });
+            });
+            refs.ref();
+            rebuild.dispose = () => {
+              if (isDisposed)
+                return;
+              isDisposed = true;
+              sendRequest(refs, { command: "rebuild-dispose", rebuildID: response.rebuildID }, () => {
+              });
+              refs.unref();
+            };
+          }
+          result.rebuild = rebuild;
+        }
+        if (response.watchID !== void 0) {
+          if (!stop) {
+            let isStopped = false;
+            refs.ref();
+            stop = () => {
+              if (isStopped)
+                return;
+              isStopped = true;
+              watchCallbacks.delete(response.watchID);
+              sendRequest(refs, { command: "watch-stop", watchID: response.watchID }, () => {
+              });
+              refs.unref();
+            };
+            if (watch) {
+              watchCallbacks.set(response.watchID, (serviceStopError, watchResponse) => {
+                if (serviceStopError) {
+                  if (watch.onRebuild)
+                    watch.onRebuild(serviceStopError, null);
+                  return;
+                }
+                let result2 = {
+                  errors: replaceDetailsInMessages(watchResponse.errors, details),
+                  warnings: replaceDetailsInMessages(watchResponse.warnings, details)
+                };
+                copyResponseToResult(watchResponse, result2);
+                runOnEndCallbacks(result2, logPluginError, () => {
+                  if (result2.errors.length > 0) {
+                    if (watch.onRebuild)
+                      watch.onRebuild(failureErrorWithLog("Build failed", result2.errors, result2.warnings), null);
+                    return;
+                  }
+                  if (watchResponse.rebuildID !== void 0)
+                    result2.rebuild = rebuild;
+                  result2.stop = stop;
+                  if (watch.onRebuild)
+                    watch.onRebuild(null, result2);
+                });
+              });
+            }
+          }
+          result.stop = stop;
+        }
+        callback2(null, result);
+      });
+    };
+    if (write && streamIn.isBrowser)
+      throw new Error(`Cannot enable "write" in the browser`);
+    if (incremental && streamIn.isSync)
+      throw new Error(`Cannot use "incremental" with a synchronous build`);
+    if (watch && streamIn.isSync)
+      throw new Error(`Cannot use "watch" with a synchronous build`);
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      if (serve2) {
+        let serveResponse = response;
+        let isStopped = false;
+        refs.ref();
+        let result = {
+          port: serveResponse.port,
+          host: serveResponse.host,
+          wait: serve2.wait,
+          stop() {
+            if (isStopped)
+              return;
+            isStopped = true;
+            serve2.stop();
+            refs.unref();
+          }
+        };
+        refs.ref();
+        serve2.wait.then(refs.unref, refs.unref);
+        return callback(null, result);
+      }
+      return buildResponseToResult(response, callback);
+    });
+  };
+  let transform2 = ({ callName, refs, input, options, isTTY, fs, callback }) => {
+    const details = createObjectStash();
+    let start = (inputPath) => {
+      try {
+        if (typeof input !== "string")
+          throw new Error('The input to "transform" must be a string');
+        let flags = flagsForTransformOptions(callName, options, isTTY, transformLogLevelDefault);
+        let request = {
+          command: "transform",
+          flags,
+          inputFS: inputPath !== null,
+          input: inputPath !== null ? inputPath : input
+        };
+        sendRequest(refs, request, (error, response) => {
+          if (error)
+            return callback(new Error(error), null);
+          let errors = replaceDetailsInMessages(response.errors, details);
+          let warnings = replaceDetailsInMessages(response.warnings, details);
+          let outstanding = 1;
+          let next = () => --outstanding === 0 && callback(null, { warnings, code: response.code, map: response.map });
+          if (errors.length > 0)
+            return callback(failureErrorWithLog("Transform failed", errors, warnings), null);
+          if (response.codeFS) {
+            outstanding++;
+            fs.readFile(response.code, (err, contents) => {
+              if (err !== null) {
+                callback(err, null);
+              } else {
+                response.code = contents;
+                next();
+              }
+            });
+          }
+          if (response.mapFS) {
+            outstanding++;
+            fs.readFile(response.map, (err, contents) => {
+              if (err !== null) {
+                callback(err, null);
+              } else {
+                response.map = contents;
+                next();
+              }
+            });
+          }
+          next();
+        });
+      } catch (e) {
+        let flags = [];
+        try {
+          pushLogFlags(flags, options, {}, isTTY, transformLogLevelDefault);
+        } catch (e2) {
+        }
+        const error = extractErrorMessageV8(e, streamIn, details, void 0, "");
+        sendRequest(refs, { command: "error", flags, error }, () => {
+          error.detail = details.load(error.detail);
+          callback(failureErrorWithLog("Transform failed", [error], []), null);
+        });
+      }
+    };
+    if (typeof input === "string" && input.length > 1024 * 1024) {
+      let next = start;
+      start = () => fs.writeFile(input, next);
+    }
+    start(null);
+  };
+  let formatMessages2 = ({ callName, refs, messages, options, callback }) => {
+    let result = sanitizeMessages(messages, "messages", null, "");
+    if (!options)
+      throw new Error(`Missing second argument in ${callName}() call`);
+    let keys = {};
+    let kind = getFlag(options, keys, "kind", mustBeString);
+    let color = getFlag(options, keys, "color", mustBeBoolean);
+    let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
+    checkForInvalidFlags(options, keys, `in ${callName}() call`);
+    if (kind === void 0)
+      throw new Error(`Missing "kind" in ${callName}() call`);
+    if (kind !== "error" && kind !== "warning")
+      throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
+    let request = {
+      command: "format-msgs",
+      messages: result,
+      isWarning: kind === "warning"
+    };
+    if (color !== void 0)
+      request.color = color;
+    if (terminalWidth !== void 0)
+      request.terminalWidth = terminalWidth;
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      callback(null, response.messages);
+    });
+  };
+  let analyzeMetafile2 = ({ callName, refs, metafile, options, callback }) => {
+    if (options === void 0)
+      options = {};
+    let keys = {};
+    let color = getFlag(options, keys, "color", mustBeBoolean);
+    let verbose = getFlag(options, keys, "verbose", mustBeBoolean);
+    checkForInvalidFlags(options, keys, `in ${callName}() call`);
+    let request = {
+      command: "analyze-metafile",
+      metafile
+    };
+    if (color !== void 0)
+      request.color = color;
+    if (verbose !== void 0)
+      request.verbose = verbose;
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      callback(null, response.result);
+    });
+  };
+  return {
+    readFromStdout,
+    afterClose,
+    service: {
+      buildOrServe,
+      transform: transform2,
+      formatMessages: formatMessages2,
+      analyzeMetafile: analyzeMetafile2
+    }
+  };
+}
+function createObjectStash() {
+  const map = new Map();
+  let nextID = 0;
+  return {
+    load(id) {
+      return map.get(id);
+    },
+    store(value) {
+      if (value === void 0)
+        return -1;
+      const id = nextID++;
+      map.set(id, value);
+      return id;
+    }
+  };
+}
+function extractCallerV8(e, streamIn, ident) {
+  let note;
+  let tried = false;
+  return () => {
+    if (tried)
+      return note;
+    tried = true;
+    try {
+      let lines = (e.stack + "").split("\n");
+      lines.splice(1, 1);
+      let location = parseStackLinesV8(streamIn, lines, ident);
+      if (location) {
+        note = { text: e.message, location };
+        return note;
+      }
+    } catch (e2) {
+    }
+  };
+}
+function extractErrorMessageV8(e, streamIn, stash, note, pluginName) {
+  let text = "Internal error";
+  let location = null;
+  try {
+    text = (e && e.message || e) + "";
+  } catch (e2) {
+  }
+  try {
+    location = parseStackLinesV8(streamIn, (e.stack + "").split("\n"), "");
+  } catch (e2) {
+  }
+  return { pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(e) : -1 };
+}
+function parseStackLinesV8(streamIn, lines, ident) {
+  let at = "    at ";
+  if (streamIn.readFileSync && !lines[0].startsWith(at) && lines[1].startsWith(at)) {
+    for (let i = 1; i < lines.length; i++) {
+      let line = lines[i];
+      if (!line.startsWith(at))
+        continue;
+      line = line.slice(at.length);
+      while (true) {
+        let match = /^(?:new |async )?\S+ \((.*)\)$/.exec(line);
+        if (match) {
+          line = match[1];
+          continue;
+        }
+        match = /^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(line);
+        if (match) {
+          line = match[1];
+          continue;
+        }
+        match = /^(\S+):(\d+):(\d+)$/.exec(line);
+        if (match) {
+          let contents;
+          try {
+            contents = streamIn.readFileSync(match[1], "utf8");
+          } catch (e) {
+            break;
+          }
+          let lineText = contents.split(/\r\n|\r|\n|\u2028|\u2029/)[+match[2] - 1] || "";
+          let column = +match[3] - 1;
+          let length = lineText.slice(column, column + ident.length) === ident ? ident.length : 0;
+          return {
+            file: match[1],
+            namespace: "file",
+            line: +match[2],
+            column: encodeUTF8(lineText.slice(0, column)).length,
+            length: encodeUTF8(lineText.slice(column, column + length)).length,
+            lineText: lineText + "\n" + lines.slice(1).join("\n"),
+            suggestion: ""
+          };
+        }
+        break;
+      }
+    }
+  }
+  return null;
+}
+function failureErrorWithLog(text, errors, warnings) {
+  let limit = 5;
+  let summary = errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((e, i) => {
+    if (i === limit)
+      return "\n...";
+    if (!e.location)
+      return `
+error: ${e.text}`;
+    let { file, line, column } = e.location;
+    let pluginText = e.pluginName ? `[plugin: ${e.pluginName}] ` : "";
+    return `
+${file}:${line}:${column}: error: ${pluginText}${e.text}`;
+  }).join("");
+  let error = new Error(`${text}${summary}`);
+  error.errors = errors;
+  error.warnings = warnings;
+  return error;
+}
+function replaceDetailsInMessages(messages, stash) {
+  for (const message of messages) {
+    message.detail = stash.load(message.detail);
+  }
+  return messages;
+}
+function sanitizeLocation(location, where) {
+  if (location == null)
+    return null;
+  let keys = {};
+  let file = getFlag(location, keys, "file", mustBeString);
+  let namespace = getFlag(location, keys, "namespace", mustBeString);
+  let line = getFlag(location, keys, "line", mustBeInteger);
+  let column = getFlag(location, keys, "column", mustBeInteger);
+  let length = getFlag(location, keys, "length", mustBeInteger);
+  let lineText = getFlag(location, keys, "lineText", mustBeString);
+  let suggestion = getFlag(location, keys, "suggestion", mustBeString);
+  checkForInvalidFlags(location, keys, where);
+  return {
+    file: file || "",
+    namespace: namespace || "",
+    line: line || 0,
+    column: column || 0,
+    length: length || 0,
+    lineText: lineText || "",
+    suggestion: suggestion || ""
+  };
+}
+function sanitizeMessages(messages, property, stash, fallbackPluginName) {
+  let messagesClone = [];
+  let index = 0;
+  for (const message of messages) {
+    let keys = {};
+    let pluginName = getFlag(message, keys, "pluginName", mustBeString);
+    let text = getFlag(message, keys, "text", mustBeString);
+    let location = getFlag(message, keys, "location", mustBeObjectOrNull);
+    let notes = getFlag(message, keys, "notes", mustBeArray);
+    let detail = getFlag(message, keys, "detail", canBeAnything);
+    let where = `in element ${index} of "${property}"`;
+    checkForInvalidFlags(message, keys, where);
+    let notesClone = [];
+    if (notes) {
+      for (const note of notes) {
+        let noteKeys = {};
+        let noteText = getFlag(note, noteKeys, "text", mustBeString);
+        let noteLocation = getFlag(note, noteKeys, "location", mustBeObjectOrNull);
+        checkForInvalidFlags(note, noteKeys, where);
+        notesClone.push({
+          text: noteText || "",
+          location: sanitizeLocation(noteLocation, where)
+        });
+      }
+    }
+    messagesClone.push({
+      pluginName: pluginName || fallbackPluginName,
+      text: text || "",
+      location: sanitizeLocation(location, where),
+      notes: notesClone,
+      detail: stash ? stash.store(detail) : -1
+    });
+    index++;
+  }
+  return messagesClone;
+}
+function sanitizeStringArray(values, property) {
+  const result = [];
+  for (const value of values) {
+    if (typeof value !== "string")
+      throw new Error(`${JSON.stringify(property)} must be an array of strings`);
+    result.push(value);
+  }
+  return result;
+}
+function convertOutputFiles({ path, contents }) {
+  let text = null;
+  return {
+    path,
+    contents,
+    get text() {
+      if (text === null)
+        text = decodeUTF8(contents);
+      return text;
+    }
+  };
+}
+
+// lib/npm/browser.ts
+var version = "0.13.8";
+var build = (options) => ensureServiceIsRunning().build(options);
+var serve = () => {
+  throw new Error(`The "serve" API only works in node`);
+};
+var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
+var formatMessages = (messages, options) => ensureServiceIsRunning().formatMessages(messages, options);
+var analyzeMetafile = (metafile, options) => ensureServiceIsRunning().analyzeMetafile(metafile, options);
+var buildSync = () => {
+  throw new Error(`The "buildSync" API only works in node`);
+};
+var transformSync = () => {
+  throw new Error(`The "transformSync" API only works in node`);
+};
+var formatMessagesSync = () => {
+  throw new Error(`The "formatMessagesSync" API only works in node`);
+};
+var analyzeMetafileSync = () => {
+  throw new Error(`The "analyzeMetafileSync" API only works in node`);
+};
+var initializePromise;
+var longLivedService;
+var ensureServiceIsRunning = () => {
+  if (longLivedService)
+    return longLivedService;
+  if (initializePromise)
+    throw new Error('You need to wait for the promise returned from "initialize" to be resolved before calling this');
+  throw new Error('You need to call "initialize" before calling this');
+};
+var initialize = (options) => {
+  options = validateInitializeOptions(options || {});
+  let wasmURL = options.wasmURL;
+  let useWorker = options.worker !== false;
+  if (!wasmURL)
+    throw new Error('Must provide the "wasmURL" option');
+  wasmURL += "";
+  if (initializePromise)
+    throw new Error('Cannot call "initialize" more than once');
+  initializePromise = startRunningService(wasmURL, useWorker);
+  initializePromise.catch(() => {
+    initializePromise = void 0;
+  });
+  return initializePromise;
+};
+var startRunningService = (wasmURL, useWorker) => __async(void 0, null, function* () {
+  let res = yield fetch(wasmURL);
+  if (!res.ok)
+    throw new Error(`Failed to download ${JSON.stringify(wasmURL)}`);
+  let wasm = yield res.arrayBuffer();
+  let code = `{let global={};for(let o=self;o;o=Object.getPrototypeOf(o))for(let k of Object.getOwnPropertyNames(o))if(!(k in global))Object.defineProperty(global,k,{get:()=>self[k]});// Copyright 2018 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+(() => {
+	// Map multiple JavaScript environments to a single common API,
+	// preferring web standards over Node.js API.
+	//
+	// Environments considered:
+	// - Browsers
+	// - Node.js
+	// - Electron
+	// - Parcel
+	// - Webpack
+
+	if (typeof global !== "undefined") {
+		// global already exists
+	} else if (typeof window !== "undefined") {
+		window.global = window;
+	} else if (typeof self !== "undefined") {
+		self.global = self;
+	} else {
+		throw new Error("cannot export Go (neither global, window nor self is defined)");
+	}
+
+	if (!global.require && typeof require !== "undefined") {
+		global.require = require;
+	}
+
+	if (!global.fs && global.require) {
+		const fs = require("fs");
+		if (typeof fs === "object" && fs !== null && Object.keys(fs).length !== 0) {
+			
+    global.fs = Object.assign({}, fs, {
+      // Hack around a Unicode bug in node: https://github.com/nodejs/node/issues/24550
+      write(fd, buf, offset, length, position, callback) {
+        if (offset === 0 && length === buf.length && position === null) {
+          if (fd === process.stdout.fd) {
+            try {
+              process.stdout.write(buf, err => err ? callback(err, 0, null) : callback(null, length, buf));
+            } catch (err) {
+              callback(err, 0, null);
+            }
+            return;
+          }
+          if (fd === process.stderr.fd) {
+            try {
+              process.stderr.write(buf, err => err ? callback(err, 0, null) : callback(null, length, buf));
+            } catch (err) {
+              callback(err, 0, null);
+            }
+            return;
+          }
+        }
+        fs.write(fd, buf, offset, length, position, callback);
+      },
+    });
+  
+		}
+	}
+
+	const enosys = () => {
+		const err = new Error("not implemented");
+		err.code = "ENOSYS";
+		return err;
+	};
+
+	if (!global.fs) {
+		let outputBuf = "";
+		global.fs = {
+			constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
+			writeSync(fd, buf) {
+				outputBuf += decoder.decode(buf);
+				const nl = outputBuf.lastIndexOf("\\n");
+				if (nl != -1) {
+					console.log(outputBuf.substr(0, nl));
+					outputBuf = outputBuf.substr(nl + 1);
+				}
+				return buf.length;
+			},
+			write(fd, buf, offset, length, position, callback) {
+				if (offset !== 0 || length !== buf.length || position !== null) {
+					callback(enosys());
+					return;
+				}
+				const n = this.writeSync(fd, buf);
+				callback(null, n);
+			},
+			chmod(path, mode, callback) { callback(enosys()); },
+			chown(path, uid, gid, callback) { callback(enosys()); },
+			close(fd, callback) { callback(enosys()); },
+			fchmod(fd, mode, callback) { callback(enosys()); },
+			fchown(fd, uid, gid, callback) { callback(enosys()); },
+			fstat(fd, callback) { callback(enosys()); },
+			fsync(fd, callback) { callback(null); },
+			ftruncate(fd, length, callback) { callback(enosys()); },
+			lchown(path, uid, gid, callback) { callback(enosys()); },
+			link(path, link, callback) { callback(enosys()); },
+			lstat(path, callback) { callback(enosys()); },
+			mkdir(path, perm, callback) { callback(enosys()); },
+			open(path, flags, mode, callback) { callback(enosys()); },
+			read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
+			readdir(path, callback) { callback(enosys()); },
+			readlink(path, callback) { callback(enosys()); },
+			rename(from, to, callback) { callback(enosys()); },
+			rmdir(path, callback) { callback(enosys()); },
+			stat(path, callback) { callback(enosys()); },
+			symlink(path, link, callback) { callback(enosys()); },
+			truncate(path, length, callback) { callback(enosys()); },
+			unlink(path, callback) { callback(enosys()); },
+			utimes(path, atime, mtime, callback) { callback(enosys()); },
+		};
+	}
+
+	if (!global.process) {
+		global.process = {
+			getuid() { return -1; },
+			getgid() { return -1; },
+			geteuid() { return -1; },
+			getegid() { return -1; },
+			getgroups() { throw enosys(); },
+			pid: -1,
+			ppid: -1,
+			umask() { throw enosys(); },
+			cwd() { throw enosys(); },
+			chdir() { throw enosys(); },
+		}
+	}
+
+	if (!global.crypto && global.require) {
+		const nodeCrypto = require("crypto");
+		global.crypto = {
+			getRandomValues(b) {
+				nodeCrypto.randomFillSync(b);
+			},
+		};
+	}
+	if (!global.crypto) {
+		throw new Error("global.crypto is not available, polyfill required (getRandomValues only)");
+	}
+
+	if (!global.performance) {
+		global.performance = {
+			now() {
+				const [sec, nsec] = process.hrtime();
+				return sec * 1000 + nsec / 1000000;
+			},
+		};
+	}
+
+	if (!global.TextEncoder && global.require) {
+		global.TextEncoder = require("util").TextEncoder;
+	}
+	if (!global.TextEncoder) {
+		throw new Error("global.TextEncoder is not available, polyfill required");
+	}
+
+	if (!global.TextDecoder && global.require) {
+		global.TextDecoder = require("util").TextDecoder;
+	}
+	if (!global.TextDecoder) {
+		throw new Error("global.TextDecoder is not available, polyfill required");
+	}
+
+	// End of polyfills for common API.
+
+	const encoder = new TextEncoder("utf-8");
+	const decoder = new TextDecoder("utf-8");
+
+	global.Go = class {
+		constructor() {
+			this.argv = ["js"];
+			this.env = {};
+			this.exit = (code) => {
+				if (code !== 0) {
+					console.warn("exit code:", code);
+				}
+			};
+			this._exitPromise = new Promise((resolve) => {
+				this._resolveExitPromise = resolve;
+			});
+			this._pendingEvent = null;
+			this._scheduledTimeouts = new Map();
+			this._nextCallbackTimeoutID = 1;
+
+			const setInt64 = (addr, v) => {
+				this.mem.setUint32(addr + 0, v, true);
+				this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
+			}
+
+			const getInt64 = (addr) => {
+				const low = this.mem.getUint32(addr + 0, true);
+				const high = this.mem.getInt32(addr + 4, true);
+				return low + high * 4294967296;
+			}
+
+			const loadValue = (addr) => {
+				const f = this.mem.getFloat64(addr, true);
+				if (f === 0) {
+					return undefined;
+				}
+				if (!isNaN(f)) {
+					return f;
+				}
+
+				const id = this.mem.getUint32(addr, true);
+				return this._values[id];
+			}
+
+			const storeValue = (addr, v) => {
+				const nanHead = 0x7FF80000;
+
+				if (typeof v === "number" && v !== 0) {
+					if (isNaN(v)) {
+						this.mem.setUint32(addr + 4, nanHead, true);
+						this.mem.setUint32(addr, 0, true);
+						return;
+					}
+					this.mem.setFloat64(addr, v, true);
+					return;
+				}
+
+				if (v === undefined) {
+					this.mem.setFloat64(addr, 0, true);
+					return;
+				}
+
+				let id = this._ids.get(v);
+				if (id === undefined) {
+					id = this._idPool.pop();
+					if (id === undefined) {
+						id = this._values.length;
+					}
+					this._values[id] = v;
+					this._goRefCounts[id] = 0;
+					this._ids.set(v, id);
+				}
+				this._goRefCounts[id]++;
+				let typeFlag = 0;
+				switch (typeof v) {
+					case "object":
+						if (v !== null) {
+							typeFlag = 1;
+						}
+						break;
+					case "string":
+						typeFlag = 2;
+						break;
+					case "symbol":
+						typeFlag = 3;
+						break;
+					case "function":
+						typeFlag = 4;
+						break;
+				}
+				this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
+				this.mem.setUint32(addr, id, true);
+			}
+
+			const loadSlice = (addr) => {
+				const array = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				return new Uint8Array(this._inst.exports.mem.buffer, array, len);
+			}
+
+			const loadSliceOfValues = (addr) => {
+				const array = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				const a = new Array(len);
+				for (let i = 0; i < len; i++) {
+					a[i] = loadValue(array + i * 8);
+				}
+				return a;
+			}
+
+			const loadString = (addr) => {
+				const saddr = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
+			}
+
+			const timeOrigin = Date.now() - performance.now();
+			this.importObject = {
+				go: {
+					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
+					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
+					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
+					// This changes the SP, thus we have to update the SP used by the imported function.
+
+					// func wasmExit(code int32)
+					"runtime.wasmExit": (sp) => {
+						sp >>>= 0;
+						const code = this.mem.getInt32(sp + 8, true);
+						this.exited = true;
+						delete this._inst;
+						delete this._values;
+						delete this._goRefCounts;
+						delete this._ids;
+						delete this._idPool;
+						this.exit(code);
+					},
+
+					// func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
+					"runtime.wasmWrite": (sp) => {
+						sp >>>= 0;
+						const fd = getInt64(sp + 8);
+						const p = getInt64(sp + 16);
+						const n = this.mem.getInt32(sp + 24, true);
+						fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
+					},
+
+					// func resetMemoryDataView()
+					"runtime.resetMemoryDataView": (sp) => {
+						sp >>>= 0;
+						this.mem = new DataView(this._inst.exports.mem.buffer);
+					},
+
+					// func nanotime1() int64
+					"runtime.nanotime1": (sp) => {
+						sp >>>= 0;
+						setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);
+					},
+
+					// func walltime() (sec int64, nsec int32)
+					"runtime.walltime": (sp) => {
+						sp >>>= 0;
+						const msec = (new Date).getTime();
+						setInt64(sp + 8, msec / 1000);
+						this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);
+					},
+
+					// func scheduleTimeoutEvent(delay int64) int32
+					"runtime.scheduleTimeoutEvent": (sp) => {
+						sp >>>= 0;
+						const id = this._nextCallbackTimeoutID;
+						this._nextCallbackTimeoutID++;
+						this._scheduledTimeouts.set(id, setTimeout(
+							() => {
+								this._resume();
+								while (this._scheduledTimeouts.has(id)) {
+									// for some reason Go failed to register the timeout event, log and try again
+									// (temporary workaround for https://github.com/golang/go/issues/28975)
+									console.warn("scheduleTimeoutEvent: missed timeout event");
+									this._resume();
+								}
+							},
+							getInt64(sp + 8) + 1, // setTimeout has been seen to fire up to 1 millisecond early
+						));
+						this.mem.setInt32(sp + 16, id, true);
+					},
+
+					// func clearTimeoutEvent(id int32)
+					"runtime.clearTimeoutEvent": (sp) => {
+						sp >>>= 0;
+						const id = this.mem.getInt32(sp + 8, true);
+						clearTimeout(this._scheduledTimeouts.get(id));
+						this._scheduledTimeouts.delete(id);
+					},
+
+					// func getRandomData(r []byte)
+					"runtime.getRandomData": (sp) => {
+						sp >>>= 0;
+						crypto.getRandomValues(loadSlice(sp + 8));
+					},
+
+					// func finalizeRef(v ref)
+					"syscall/js.finalizeRef": (sp) => {
+						sp >>>= 0;
+						const id = this.mem.getUint32(sp + 8, true);
+						this._goRefCounts[id]--;
+						if (this._goRefCounts[id] === 0) {
+							const v = this._values[id];
+							this._values[id] = null;
+							this._ids.delete(v);
+							this._idPool.push(id);
+						}
+					},
+
+					// func stringVal(value string) ref
+					"syscall/js.stringVal": (sp) => {
+						sp >>>= 0;
+						storeValue(sp + 24, loadString(sp + 8));
+					},
+
+					// func valueGet(v ref, p string) ref
+					"syscall/js.valueGet": (sp) => {
+						sp >>>= 0;
+						const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));
+						sp = this._inst.exports.getsp() >>> 0; // see comment above
+						storeValue(sp + 32, result);
+					},
+
+					// func valueSet(v ref, p string, x ref)
+					"syscall/js.valueSet": (sp) => {
+						sp >>>= 0;
+						Reflect.set(loadValue(sp + 8), loadString(sp + 16), loadValue(sp + 32));
+					},
+
+					// func valueDelete(v ref, p string)
+					"syscall/js.valueDelete": (sp) => {
+						sp >>>= 0;
+						Reflect.deleteProperty(loadValue(sp + 8), loadString(sp + 16));
+					},
+
+					// func valueIndex(v ref, i int) ref
+					"syscall/js.valueIndex": (sp) => {
+						sp >>>= 0;
+						storeValue(sp + 24, Reflect.get(loadValue(sp + 8), getInt64(sp + 16)));
+					},
+
+					// valueSetIndex(v ref, i int, x ref)
+					"syscall/js.valueSetIndex": (sp) => {
+						sp >>>= 0;
+						Reflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24));
+					},
+
+					// func valueCall(v ref, m string, args []ref) (ref, bool)
+					"syscall/js.valueCall": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const m = Reflect.get(v, loadString(sp + 16));
+							const args = loadSliceOfValues(sp + 32);
+							const result = Reflect.apply(m, v, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 56, result);
+							this.mem.setUint8(sp + 64, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 56, err);
+							this.mem.setUint8(sp + 64, 0);
+						}
+					},
+
+					// func valueInvoke(v ref, args []ref) (ref, bool)
+					"syscall/js.valueInvoke": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const args = loadSliceOfValues(sp + 16);
+							const result = Reflect.apply(v, undefined, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, result);
+							this.mem.setUint8(sp + 48, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, err);
+							this.mem.setUint8(sp + 48, 0);
+						}
+					},
+
+					// func valueNew(v ref, args []ref) (ref, bool)
+					"syscall/js.valueNew": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const args = loadSliceOfValues(sp + 16);
+							const result = Reflect.construct(v, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, result);
+							this.mem.setUint8(sp + 48, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, err);
+							this.mem.setUint8(sp + 48, 0);
+						}
+					},
+
+					// func valueLength(v ref) int
+					"syscall/js.valueLength": (sp) => {
+						sp >>>= 0;
+						setInt64(sp + 16, parseInt(loadValue(sp + 8).length));
+					},
+
+					// valuePrepareString(v ref) (ref, int)
+					"syscall/js.valuePrepareString": (sp) => {
+						sp >>>= 0;
+						const str = encoder.encode(String(loadValue(sp + 8)));
+						storeValue(sp + 16, str);
+						setInt64(sp + 24, str.length);
+					},
+
+					// valueLoadString(v ref, b []byte)
+					"syscall/js.valueLoadString": (sp) => {
+						sp >>>= 0;
+						const str = loadValue(sp + 8);
+						loadSlice(sp + 16).set(str);
+					},
+
+					// func valueInstanceOf(v ref, t ref) bool
+					"syscall/js.valueInstanceOf": (sp) => {
+						sp >>>= 0;
+						this.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);
+					},
+
+					// func copyBytesToGo(dst []byte, src ref) (int, bool)
+					"syscall/js.copyBytesToGo": (sp) => {
+						sp >>>= 0;
+						const dst = loadSlice(sp + 8);
+						const src = loadValue(sp + 32);
+						if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
+							this.mem.setUint8(sp + 48, 0);
+							return;
+						}
+						const toCopy = src.subarray(0, dst.length);
+						dst.set(toCopy);
+						setInt64(sp + 40, toCopy.length);
+						this.mem.setUint8(sp + 48, 1);
+					},
+
+					// func copyBytesToJS(dst ref, src []byte) (int, bool)
+					"syscall/js.copyBytesToJS": (sp) => {
+						sp >>>= 0;
+						const dst = loadValue(sp + 8);
+						const src = loadSlice(sp + 16);
+						if (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {
+							this.mem.setUint8(sp + 48, 0);
+							return;
+						}
+						const toCopy = src.subarray(0, dst.length);
+						dst.set(toCopy);
+						setInt64(sp + 40, toCopy.length);
+						this.mem.setUint8(sp + 48, 1);
+					},
+
+					"debug": (value) => {
+						console.log(value);
+					},
+				}
+			};
+		}
+
+		async run(instance) {
+			if (!(instance instanceof WebAssembly.Instance)) {
+				throw new Error("Go.run: WebAssembly.Instance expected");
+			}
+			this._inst = instance;
+			this.mem = new DataView(this._inst.exports.mem.buffer);
+			this._values = [ // JS values that Go currently has references to, indexed by reference id
+				NaN,
+				0,
+				null,
+				true,
+				false,
+				global,
+				this,
+			];
+			this._goRefCounts = new Array(this._values.length).fill(Infinity); // number of references that Go has to a JS value, indexed by reference id
+			this._ids = new Map([ // mapping from JS values to reference ids
+				[0, 1],
+				[null, 2],
+				[true, 3],
+				[false, 4],
+				[global, 5],
+				[this, 6],
+			]);
+			this._idPool = [];   // unused ids that have been garbage collected
+			this.exited = false; // whether the Go program has exited
+
+			// Pass command line arguments and environment variables to WebAssembly by writing them to the linear memory.
+			let offset = 4096;
+
+			const strPtr = (str) => {
+				const ptr = offset;
+				const bytes = encoder.encode(str + "\\0");
+				new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);
+				offset += bytes.length;
+				if (offset % 8 !== 0) {
+					offset += 8 - (offset % 8);
+				}
+				return ptr;
+			};
+
+			const argc = this.argv.length;
+
+			const argvPtrs = [];
+			this.argv.forEach((arg) => {
+				argvPtrs.push(strPtr(arg));
+			});
+			argvPtrs.push(0);
+
+			const keys = Object.keys(this.env).sort();
+			keys.forEach((key) => {
+				argvPtrs.push(strPtr(\`\${key}=\${this.env[key]}\`));
+			});
+			argvPtrs.push(0);
+
+			const argv = offset;
+			argvPtrs.forEach((ptr) => {
+				this.mem.setUint32(offset, ptr, true);
+				this.mem.setUint32(offset + 4, 0, true);
+				offset += 8;
+			});
+
+			// The linker guarantees global data starts from at least wasmMinDataAddr.
+			// Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
+			const wasmMinDataAddr = 4096 + 4096;
+			if (offset >= wasmMinDataAddr) {
+				throw new Error("command line too long");
+			}
+
+			this._inst.exports.run(argc, argv);
+			if (this.exited) {
+				this._resolveExitPromise();
+			}
+			await this._exitPromise;
+		}
+
+		_resume() {
+			if (this.exited) {
+				throw new Error("Go program has already exited");
+			}
+			this._inst.exports.resume();
+			if (this.exited) {
+				this._resolveExitPromise();
+			}
+		}
+
+		_makeFuncWrapper(id) {
+			const go = this;
+			return function () {
+				const event = { id: id, this: this, args: arguments };
+				go._pendingEvent = event;
+				go._resume();
+				return event.result;
+			};
+		}
+	}
+
+	if (
+		typeof module !== "undefined" &&
+		global.require &&
+		global.require.main === module &&
+		global.process &&
+		global.process.versions &&
+		!global.process.versions.electron
+	) {
+		if (process.argv.length < 3) {
+			console.error("usage: go_js_wasm_exec [wasm binary] [arguments]");
+			process.exit(1);
+		}
+
+		const go = new Go();
+		go.argv = process.argv.slice(2);
+		go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);
+		go.exit = process.exit;
+		WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
+			process.on("exit", (code) => { // Node.js exits if no event handler is pending
+				if (code === 0 && !go.exited) {
+					// deadlock, make Go print error and stack traces
+					go._pendingEvent = { id: 0 };
+					go._resume();
+				}
+			});
+			return go.run(result.instance);
+		}).catch((err) => {
+			console.error(err);
+			process.exit(1);
+		});
+	}
+})();
+onmessage = ({ data: wasm }) => {
+  let decoder = new TextDecoder();
+  let fs = global.fs;
+  let stderr = "";
+  fs.writeSync = (fd, buffer) => {
+    if (fd === 1) {
+      postMessage(buffer);
+    } else if (fd === 2) {
+      stderr += decoder.decode(buffer);
+      let parts = stderr.split("\\n");
+      if (parts.length > 1)
+        console.log(parts.slice(0, -1).join("\\n"));
+      stderr = parts[parts.length - 1];
+    } else {
+      throw new Error("Bad write");
+    }
+    return buffer.length;
+  };
+  let stdin = [];
+  let resumeStdin;
+  let stdinPos = 0;
+  onmessage = ({ data }) => {
+    if (data.length > 0) {
+      stdin.push(data);
+      if (resumeStdin)
+        resumeStdin();
+    }
+  };
+  fs.read = (fd, buffer, offset, length, position, callback) => {
+    if (fd !== 0 || offset !== 0 || length !== buffer.length || position !== null) {
+      throw new Error("Bad read");
+    }
+    if (stdin.length === 0) {
+      resumeStdin = () => fs.read(fd, buffer, offset, length, position, callback);
+      return;
+    }
+    let first = stdin[0];
+    let count = Math.max(0, Math.min(length, first.length - stdinPos));
+    buffer.set(first.subarray(stdinPos, stdinPos + count), offset);
+    stdinPos += count;
+    if (stdinPos === first.length) {
+      stdin.shift();
+      stdinPos = 0;
+    }
+    callback(null, count);
+  };
+  let go = new global.Go();
+  go.argv = ["", \`--service=\${"0.13.8"}\`];
+  WebAssembly.instantiate(wasm, go.importObject).then(({ instance }) => go.run(instance));
+};}`;
+  let worker;
+  if (useWorker) {
+    let blob = new Blob([code], { type: "text/javascript" });
+    worker = new Worker(URL.createObjectURL(blob));
+  } else {
+    let fn = new Function("postMessage", code + `var onmessage; return m => onmessage(m)`);
+    let onmessage = fn((data) => worker.onmessage({ data }));
+    worker = {
+      onmessage: null,
+      postMessage: (data) => onmessage({ data }),
+      terminate() {
+      }
+    };
+  }
+  worker.postMessage(wasm);
+  worker.onmessage = ({ data }) => readFromStdout(data);
+  let { readFromStdout, service } = createChannel({
+    writeToStdin(bytes) {
+      worker.postMessage(bytes);
+    },
+    isSync: false,
+    isBrowser: true
+  });
+  longLivedService = {
+    build: (options) => new Promise((resolve, reject) => service.buildOrServe({
+      callName: "build",
+      refs: null,
+      serveOptions: null,
+      options,
+      isTTY: false,
+      defaultWD: "/",
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    })),
+    transform: (input, options) => new Promise((resolve, reject) => service.transform({
+      callName: "transform",
+      refs: null,
+      input,
+      options: options || {},
+      isTTY: false,
+      fs: {
+        readFile(_, callback) {
+          callback(new Error("Internal error"), null);
+        },
+        writeFile(_, callback) {
+          callback(null);
+        }
+      },
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    })),
+    formatMessages: (messages, options) => new Promise((resolve, reject) => service.formatMessages({
+      callName: "formatMessages",
+      refs: null,
+      messages,
+      options,
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    })),
+    analyzeMetafile: (metafile, options) => new Promise((resolve, reject) => service.analyzeMetafile({
+      callName: "analyzeMetafile",
+      refs: null,
+      metafile: typeof metafile === "string" ? metafile : JSON.stringify(metafile),
+      options,
+      callback: (err, res2) => err ? reject(err) : resolve(res2)
+    }))
+  };
+});
+})(typeof exports==="object"?exports:(typeof self!=="undefined"?self:this).esbuild={});
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.min.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.min.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/browser.min.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,10 @@
+(exports=>{
+var Me=Object.defineProperty,tt=Object.defineProperties;var rt=Object.getOwnPropertyDescriptors;var Ue=Object.getOwnPropertySymbols;var nt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var qe=(e,t,r)=>t in e?Me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Be=(e,t)=>{for(var r in t||(t={}))nt.call(t,r)&&qe(e,r,t[r]);if(Ue)for(var r of Ue(t))lt.call(t,r)&&qe(e,r,t[r]);return e},Te=(e,t)=>tt(e,rt(t)),it=e=>Me(e,"__esModule",{value:!0});var st=(e,t)=>{it(e);for(var r in t)Me(e,r,{get:t[r],enumerable:!0})};var ae=(e,t,r)=>new Promise((s,d)=>{var l=m=>{try{i(r.next(m))}catch(R){d(R)}},u=m=>{try{i(r.throw(m))}catch(R){d(R)}},i=m=>m.done?s(m.value):Promise.resolve(m.value).then(l,u);i((r=r.apply(e,t)).next())});st(exports,{analyzeMetafile:()=>vt,analyzeMetafileSync:()=>xt,build:()=>yt,buildSync:()=>Rt,formatMessages:()=>wt,formatMessagesSync:()=>St,initialize:()=>kt,serve:()=>ht,transform:()=>bt,transformSync:()=>Ot,version:()=>mt});function Ae(e){let t=s=>{if(s===null)r.write8(0);else if(typeof s=="boolean")r.write8(1),r.write8(+s);else if(typeof s=="number")r.write8(2),r.write32(s|0);else if(typeof s=="string")r.write8(3),r.write(ue(s));else if(s instanceof Uint8Array)r.write8(4),r.write(s);else if(s instanceof Array){r.write8(5),r.write32(s.length);for(let d of s)t(d)}else{let d=Object.keys(s);r.write8(6),r.write32(d.length);for(let l of d)r.write(ue(l)),t(s[l])}},r=new Fe;return r.write32(0),r.write32(e.id<<1|+!e.isRequest),t(e.value),je(r.buf,r.len-4,0),r.buf.subarray(0,r.len)}function We(e){let t=()=>{switch(r.read8()){case 0:return null;case 1:return!!r.read8();case 2:return r.read32();case 3:return fe(r.read());case 4:return r.read();case 5:{let u=r.read32(),i=[];for(let m=0;m<u;m++)i.push(t());return i}case 6:{let u=r.read32(),i={};for(let m=0;m<u;m++)i[fe(r.read())]=t();return i}default:throw new Error("Invalid packet")}},r=new Fe(e),s=r.read32(),d=(s&1)==0;s>>>=1;let l=t();if(r.ptr!==e.length)throw new Error("Invalid packet");return{id:s,isRequest:d,value:l}}var Fe=class{constructor(t=new Uint8Array(1024)){this.buf=t;this.len=0;this.ptr=0}_write(t){if(this.len+t>this.buf.length){let r=new Uint8Array((this.len+t)*2);r.set(this.buf),this.buf=r}return this.len+=t,this.len-t}write8(t){let r=this._write(1);this.buf[r]=t}write32(t){let r=this._write(4);je(this.buf,t,r)}write(t){let r=this._write(4+t.length);je(this.buf,t.length,r),this.buf.set(t,r+4)}_read(t){if(this.ptr+t>this.buf.length)throw new Error("Invalid packet");return this.ptr+=t,this.ptr-t}read8(){return this.buf[this._read(1)]}read32(){return Ne(this.buf,this._read(4))}read(){let t=this.read32(),r=new Uint8Array(t),s=this._read(r.length);return r.set(this.buf.subarray(s,s+t)),r}},ue,fe;if(typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined"){let e=new TextEncoder,t=new TextDecoder;ue=r=>e.encode(r),fe=r=>t.decode(r)}else if(typeof Buffer!="undefined")ue=e=>{let t=Buffer.from(e);return t instanceof Uint8Array||(t=new Uint8Array(t)),t},fe=e=>{let{buffer:t,byteOffset:r,byteLength:s}=e;return Buffer.from(t,r,s).toString()};else throw new Error("No UTF-8 codec found");function Ne(e,t){return e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24}function je(e,t,r){e[r++]=t,e[r++]=t>>8,e[r++]=t>>16,e[r++]=t>>24}function ze(e){if(e+="",e.indexOf(",")>=0)throw new Error(`Invalid target: ${e}`);return e}var Ie=()=>null,L=e=>typeof e=="boolean"?null:"a boolean",ot=e=>typeof e=="boolean"||typeof e=="object"&&!Array.isArray(e)?null:"a boolean or an object",h=e=>typeof e=="string"?null:"a string",Ke=e=>e instanceof RegExp?null:"a RegExp object",me=e=>typeof e=="number"&&e===(e|0)?null:"an integer",Ce=e=>typeof e=="function"?null:"a function",z=e=>Array.isArray(e)?null:"an array",ye=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)?null:"an object",at=e=>typeof e=="object"&&e!==null?null:"an array or an object",_e=e=>typeof e=="object"&&!Array.isArray(e)?null:"an object or null",Ve=e=>typeof e=="string"||typeof e=="boolean"?null:"a string or a boolean",ut=e=>typeof e=="string"||typeof e=="object"&&e!==null&&!Array.isArray(e)?null:"a string or an object",ct=e=>typeof e=="string"||Array.isArray(e)?null:"a string or an array",ft=e=>typeof e=="string"||e instanceof Uint8Array?null:"a string or a Uint8Array";function n(e,t,r,s){let d=e[r];if(t[r+""]=!0,d===void 0)return;let l=s(d);if(l!==null)throw new Error(`"${r}" must be ${l}`);return d}function _(e,t,r){for(let s in e)if(!(s in t))throw new Error(`Invalid option ${r}: "${s}"`)}function Je(e){let t=Object.create(null),r=n(e,t,"wasmURL",h),s=n(e,t,"worker",L);return _(e,t,"in startService() call"),{wasmURL:r,worker:s}}function Oe(e,t,r,s,d){let l=n(t,r,"color",L),u=n(t,r,"logLevel",h),i=n(t,r,"logLimit",me);l!==void 0?e.push(`--color=${l}`):s&&e.push("--color=true"),e.push(`--log-level=${u||d}`),e.push(`--log-limit=${i||0}`)}function Ye(e,t,r){let s=n(t,r,"legalComments",h),d=n(t,r,"sourceRoot",h),l=n(t,r,"sourcesContent",L),u=n(t,r,"target",ct),i=n(t,r,"format",h),m=n(t,r,"globalName",h),R=n(t,r,"minify",L),x=n(t,r,"minifySyntax",L),F=n(t,r,"minifyWhitespace",L),U=n(t,r,"minifyIdentifiers",L),k=n(t,r,"charset",h),q=n(t,r,"treeShaking",L),ee=n(t,r,"ignoreAnnotations",L),G=n(t,r,"jsx",h),te=n(t,r,"jsxFactory",h),re=n(t,r,"jsxFragment",h),le=n(t,r,"define",ye),ie=n(t,r,"pure",z),ce=n(t,r,"keepNames",L);if(s&&e.push(`--legal-comments=${s}`),d!==void 0&&e.push(`--source-root=${d}`),l!==void 0&&e.push(`--sources-content=${l}`),u&&(Array.isArray(u)?e.push(`--target=${Array.from(u).map(ze).join(",")}`):e.push(`--target=${ze(u)}`)),i&&e.push(`--format=${i}`),m&&e.push(`--global-name=${m}`),R&&e.push("--minify"),x&&e.push("--minify-syntax"),F&&e.push("--minify-whitespace"),U&&e.push("--minify-identifiers"),k&&e.push(`--charset=${k}`),q!==void 0&&e.push(`--tree-shaking=${q}`),ee&&e.push("--ignore-annotations"),G&&e.push(`--jsx=${G}`),te&&e.push(`--jsx-factory=${te}`),re&&e.push(`--jsx-fragment=${re}`),le)for(let Q in le){if(Q.indexOf("=")>=0)throw new Error(`Invalid define: ${Q}`);e.push(`--define:${Q}=${le[Q]}`)}if(ie)for(let Q of ie)e.push(`--pure:${Q}`);ce&&e.push("--keep-names")}function dt(e,t,r,s,d){var w;let l=[],u=[],i=Object.create(null),m=null,R=null,x=null;Oe(l,t,i,r,s),Ye(l,t,i);let F=n(t,i,"sourcemap",Ve),U=n(t,i,"bundle",L),k=n(t,i,"watch",ot),q=n(t,i,"splitting",L),ee=n(t,i,"preserveSymlinks",L),G=n(t,i,"metafile",L),te=n(t,i,"outfile",h),re=n(t,i,"outdir",h),le=n(t,i,"outbase",h),ie=n(t,i,"platform",h),ce=n(t,i,"tsconfig",h),Q=n(t,i,"resolveExtensions",z),Re=n(t,i,"nodePaths",z),Ee=n(t,i,"mainFields",z),$e=n(t,i,"conditions",z),De=n(t,i,"external",z),g=n(t,i,"loader",ye),c=n(t,i,"outExtension",ye),o=n(t,i,"publicPath",h),p=n(t,i,"entryNames",h),j=n(t,i,"chunkNames",h),M=n(t,i,"assetNames",h),P=n(t,i,"inject",z),N=n(t,i,"banner",ye),D=n(t,i,"footer",ye),E=n(t,i,"entryPoints",at),O=n(t,i,"absWorkingDir",h),B=n(t,i,"stdin",ye),T=(w=n(t,i,"write",L))!=null?w:d,S=n(t,i,"allowOverwrite",L),$=n(t,i,"incremental",L)===!0;if(i.plugins=!0,_(t,i,`in ${e}() call`),F&&l.push(`--sourcemap${F===!0?"":`=${F}`}`),U&&l.push("--bundle"),S&&l.push("--allow-overwrite"),k)if(l.push("--watch"),typeof k=="boolean")x={};else{let a=Object.create(null),b=n(k,a,"onRebuild",Ce);_(k,a,`on "watch" in ${e}() call`),x={onRebuild:b}}if(q&&l.push("--splitting"),ee&&l.push("--preserve-symlinks"),G&&l.push("--metafile"),te&&l.push(`--outfile=${te}`),re&&l.push(`--outdir=${re}`),le&&l.push(`--outbase=${le}`),ie&&l.push(`--platform=${ie}`),ce&&l.push(`--tsconfig=${ce}`),Q){let a=[];for(let b of Q){if(b+="",b.indexOf(",")>=0)throw new Error(`Invalid resolve extension: ${b}`);a.push(b)}l.push(`--resolve-extensions=${a.join(",")}`)}if(o&&l.push(`--public-path=${o}`),p&&l.push(`--entry-names=${p}`),j&&l.push(`--chunk-names=${j}`),M&&l.push(`--asset-names=${M}`),Ee){let a=[];for(let b of Ee){if(b+="",b.indexOf(",")>=0)throw new Error(`Invalid main field: ${b}`);a.push(b)}l.push(`--main-fields=${a.join(",")}`)}if($e){let a=[];for(let b of $e){if(b+="",b.indexOf(",")>=0)throw new Error(`Invalid condition: ${b}`);a.push(b)}l.push(`--conditions=${a.join(",")}`)}if(De)for(let a of De)l.push(`--external:${a}`);if(N)for(let a in N){if(a.indexOf("=")>=0)throw new Error(`Invalid banner file type: ${a}`);l.push(`--banner:${a}=${N[a]}`)}if(D)for(let a in D){if(a.indexOf("=")>=0)throw new Error(`Invalid footer file type: ${a}`);l.push(`--footer:${a}=${D[a]}`)}if(P)for(let a of P)l.push(`--inject:${a}`);if(g)for(let a in g){if(a.indexOf("=")>=0)throw new Error(`Invalid loader extension: ${a}`);l.push(`--loader:${a}=${g[a]}`)}if(c)for(let a in c){if(a.indexOf("=")>=0)throw new Error(`Invalid out extension: ${a}`);l.push(`--out-extension:${a}=${c[a]}`)}if(E)if(Array.isArray(E))for(let a of E)u.push(["",a+""]);else for(let[a,b]of Object.entries(E))u.push([a+"",b+""]);if(B){let a=Object.create(null),b=n(B,a,"contents",h),C=n(B,a,"resolveDir",h),f=n(B,a,"sourcefile",h),v=n(B,a,"loader",h);_(B,a,'in "stdin" object'),f&&l.push(`--sourcefile=${f}`),v&&l.push(`--loader=${v}`),C&&(R=C+""),m=b?b+"":""}let y=[];if(Re)for(let a of Re)a+="",y.push(a);return{entries:u,flags:l,write:T,stdinContents:m,stdinResolveDir:R,absWorkingDir:O,incremental:$,nodePaths:y,watch:x}}function pt(e,t,r,s){let d=[],l=Object.create(null);Oe(d,t,l,r,s),Ye(d,t,l);let u=n(t,l,"sourcemap",Ve),i=n(t,l,"tsconfigRaw",ut),m=n(t,l,"sourcefile",h),R=n(t,l,"loader",h),x=n(t,l,"banner",h),F=n(t,l,"footer",h);return _(t,l,`in ${e}() call`),u&&d.push(`--sourcemap=${u===!0?"external":u}`),i&&d.push(`--tsconfig-raw=${typeof i=="string"?i:JSON.stringify(i)}`),m&&d.push(`--sourcefile=${m}`),R&&d.push(`--loader=${R}`),x&&d.push(`--banner=${x}`),F&&d.push(`--footer=${F}`),d}function He(e){let t=new Map,r=new Map,s=new Map,d=new Map,l=0,u=!1,i=0,m=0,R=new Uint8Array(16*1024),x=0,F=g=>{let c=x+g.length;if(c>R.length){let p=new Uint8Array(c*2);p.set(R),R=p}R.set(g,x),x+=g.length;let o=0;for(;o+4<=x;){let p=Ne(R,o);if(o+4+p>x)break;o+=4,te(R.subarray(o,o+p)),o+=p}o>0&&(R.copyWithin(0,o,x),x-=o)},U=()=>{u=!0;for(let g of t.values())g("The service was stopped",null);t.clear();for(let g of d.values())g.onWait("The service was stopped");d.clear();for(let g of s.values())try{g(new Error("The service was stopped"),null)}catch(c){console.error(c)}s.clear()},k=(g,c,o)=>{if(u)return o("The service is no longer running",null);let p=i++;t.set(p,(j,M)=>{try{o(j,M)}finally{g&&g.unref()}}),g&&g.ref(),e.writeToStdin(Ae({id:p,isRequest:!0,value:c}))},q=(g,c)=>{if(u)throw new Error("The service is no longer running");e.writeToStdin(Ae({id:g,isRequest:!1,value:c}))},ee=(g,c)=>ae(this,null,function*(){try{switch(c.command){case"ping":{q(g,{});break}case"start":{let o=r.get(c.key);o?q(g,yield o(c)):q(g,{});break}case"resolve":{let o=r.get(c.key);o?q(g,yield o(c)):q(g,{});break}case"load":{let o=r.get(c.key);o?q(g,yield o(c)):q(g,{});break}case"serve-request":{let o=d.get(c.serveID);o&&o.onRequest&&o.onRequest(c.args),q(g,{});break}case"serve-wait":{let o=d.get(c.serveID);o&&o.onWait(c.error),q(g,{});break}case"watch-rebuild":{let o=s.get(c.watchID);try{o&&o(null,c.args)}catch(p){console.error(p)}q(g,{});break}default:throw new Error("Invalid command: "+c.command)}}catch(o){q(g,{errors:[he(o,e,null,void 0,"")]})}}),G=!0,te=g=>{if(G){G=!1;let o=String.fromCharCode(...g);if(o!=="0.13.8")throw new Error(`Cannot start service: Host version "0.13.8" does not match binary version ${JSON.stringify(o)}`);return}let c=We(g);if(c.isRequest)ee(c.id,c.value);else{let o=t.get(c.id);t.delete(c.id),c.value.error?o(c.value.error,{}):o(null,c.value)}},re=(g,c,o,p)=>ae(this,null,function*(){let j=[],M=[],P={},N={},D=0,E=0,O=[];c=[...c];for(let $ of c){let y={};if(typeof $!="object")throw new Error(`Plugin at index ${E} must be an object`);let w=n($,y,"name",h);if(typeof w!="string"||w==="")throw new Error(`Plugin at index ${E} is missing a name`);try{let a=n($,y,"setup",Ce);if(typeof a!="function")throw new Error("Plugin is missing a setup function");_($,y,`on plugin ${JSON.stringify(w)}`);let b={name:w,onResolve:[],onLoad:[]};E++;let C=a({initialOptions:g,onStart(f){let v='This error came from the "onStart" callback registered here',W=Se(new Error(v),e,"onStart");j.push({name:w,callback:f,note:W})},onEnd(f){let v='This error came from the "onEnd" callback registered here',W=Se(new Error(v),e,"onEnd");M.push({name:w,callback:f,note:W})},onResolve(f,v){let W='This error came from the "onResolve" callback registered here',I=Se(new Error(W),e,"onResolve"),K={},V=n(f,K,"filter",Ke),Y=n(f,K,"namespace",h);if(_(f,K,`in onResolve() call for plugin ${JSON.stringify(w)}`),V==null)throw new Error("onResolve() call is missing a filter");let J=D++;P[J]={name:w,callback:v,note:I},b.onResolve.push({id:J,filter:V.source,namespace:Y||""})},onLoad(f,v){let W='This error came from the "onLoad" callback registered here',I=Se(new Error(W),e,"onLoad"),K={},V=n(f,K,"filter",Ke),Y=n(f,K,"namespace",h);if(_(f,K,`in onLoad() call for plugin ${JSON.stringify(w)}`),V==null)throw new Error("onLoad() call is missing a filter");let J=D++;N[J]={name:w,callback:v,note:I},b.onLoad.push({id:J,filter:V.source,namespace:Y||""})}});C&&(yield C),O.push(b)}catch(a){return{ok:!1,error:a,pluginName:w}}}let B=$=>ae(this,null,function*(){switch($.command){case"start":{let y={errors:[],warnings:[]};return yield Promise.all(j.map(C=>ae(this,[C],function*({name:w,callback:a,note:b}){try{let f=yield a();if(f!=null){if(typeof f!="object")throw new Error(`Expected onStart() callback in plugin ${JSON.stringify(w)} to return an object`);let v={},W=n(f,v,"errors",z),I=n(f,v,"warnings",z);_(f,v,`from onStart() callback in plugin ${JSON.stringify(w)}`),W!=null&&y.errors.push(...de(W,"errors",p,w)),I!=null&&y.warnings.push(...de(I,"warnings",p,w))}}catch(f){y.errors.push(he(f,e,p,b&&b(),w))}}))),y}case"resolve":{let y={},w="",a,b;for(let C of $.ids)try{({name:w,callback:a,note:b}=P[C]);let f=yield a({path:$.path,importer:$.importer,namespace:$.namespace,resolveDir:$.resolveDir,kind:$.kind,pluginData:p.load($.pluginData)});if(f!=null){if(typeof f!="object")throw new Error(`Expected onResolve() callback in plugin ${JSON.stringify(w)} to return an object`);let v={},W=n(f,v,"pluginName",h),I=n(f,v,"path",h),K=n(f,v,"namespace",h),V=n(f,v,"external",L),Y=n(f,v,"sideEffects",L),J=n(f,v,"pluginData",Ie),se=n(f,v,"errors",z),oe=n(f,v,"warnings",z),A=n(f,v,"watchFiles",z),H=n(f,v,"watchDirs",z);_(f,v,`from onResolve() callback in plugin ${JSON.stringify(w)}`),y.id=C,W!=null&&(y.pluginName=W),I!=null&&(y.path=I),K!=null&&(y.namespace=K),V!=null&&(y.external=V),Y!=null&&(y.sideEffects=Y),J!=null&&(y.pluginData=p.store(J)),se!=null&&(y.errors=de(se,"errors",p,w)),oe!=null&&(y.warnings=de(oe,"warnings",p,w)),A!=null&&(y.watchFiles=xe(A,"watchFiles")),H!=null&&(y.watchDirs=xe(H,"watchDirs"));break}}catch(f){return{id:C,errors:[he(f,e,p,b&&b(),w)]}}return y}case"load":{let y={},w="",a,b;for(let C of $.ids)try{({name:w,callback:a,note:b}=N[C]);let f=yield a({path:$.path,namespace:$.namespace,pluginData:p.load($.pluginData)});if(f!=null){if(typeof f!="object")throw new Error(`Expected onLoad() callback in plugin ${JSON.stringify(w)} to return an object`);let v={},W=n(f,v,"pluginName",h),I=n(f,v,"contents",ft),K=n(f,v,"resolveDir",h),V=n(f,v,"pluginData",Ie),Y=n(f,v,"loader",h),J=n(f,v,"errors",z),se=n(f,v,"warnings",z),oe=n(f,v,"watchFiles",z),A=n(f,v,"watchDirs",z);_(f,v,`from onLoad() callback in plugin ${JSON.stringify(w)}`),y.id=C,W!=null&&(y.pluginName=W),I instanceof Uint8Array?y.contents=I:I!=null&&(y.contents=ue(I)),K!=null&&(y.resolveDir=K),V!=null&&(y.pluginData=p.store(V)),Y!=null&&(y.loader=Y),J!=null&&(y.errors=de(J,"errors",p,w)),se!=null&&(y.warnings=de(se,"warnings",p,w)),oe!=null&&(y.watchFiles=xe(oe,"watchFiles")),A!=null&&(y.watchDirs=xe(A,"watchDirs"));break}}catch(f){return{id:C,errors:[he(f,e,p,b&&b(),w)]}}return y}default:throw new Error("Invalid command: "+$.command)}}),T=($,y,w)=>w();M.length>0&&(T=($,y,w)=>{(()=>ae(this,null,function*(){for(let{name:a,callback:b,note:C}of M)try{yield b($)}catch(f){$.errors.push(yield new Promise(v=>y(f,a,C&&C(),v)))}}))().then(w)});let S=0;return{ok:!0,requestPlugins:O,runOnEndCallbacks:T,pluginRefs:{ref(){++S==1&&r.set(o,B)},unref(){--S==0&&r.delete(o)}}}}),le=(g,c,o)=>{let p={},j=n(c,p,"port",me),M=n(c,p,"host",h),P=n(c,p,"servedir",h),N=n(c,p,"onRequest",Ce),D=l++,E,O=new Promise((B,T)=>{E=S=>{d.delete(D),S!==null?T(new Error(S)):B()}});return o.serve={serveID:D},_(c,p,"in serve() call"),j!==void 0&&(o.serve.port=j),M!==void 0&&(o.serve.host=M),P!==void 0&&(o.serve.servedir=P),d.set(D,{onRequest:N,onWait:E}),{wait:O,stop(){k(g,{command:"serve-stop",serveID:D},()=>{})}}},ie="warning",ce="silent",Q=g=>{let c=m++,o=Ge(),p,{refs:j,options:M,isTTY:P,callback:N}=g;if(typeof M=="object"){let O=M.plugins;if(O!==void 0){if(!Array.isArray(O))throw new Error('"plugins" must be an array');p=O}}let D=(O,B,T,S)=>{let $=[];try{Oe($,M,{},P,ie)}catch(w){}let y=he(O,e,o,T,B);k(j,{command:"error",flags:$,error:y},()=>{y.detail=o.load(y.detail),S(y)})},E=(O,B)=>{D(O,B,void 0,T=>{N(be("Build failed",[T],[]),null)})};if(p&&p.length>0){if(e.isSync)return E(new Error("Cannot use plugins in synchronous API calls"),"");re(M,p,c,o).then(O=>{if(!O.ok)E(O.error,O.pluginName);else try{Re(Te(Be({},g),{key:c,details:o,logPluginError:D,requestPlugins:O.requestPlugins,runOnEndCallbacks:O.runOnEndCallbacks,pluginRefs:O.pluginRefs}))}catch(B){E(B,"")}},O=>E(O,""))}else try{Re(Te(Be({},g),{key:c,details:o,logPluginError:D,requestPlugins:null,runOnEndCallbacks:(O,B,T)=>T(),pluginRefs:null}))}catch(O){E(O,"")}},Re=({callName:g,refs:c,serveOptions:o,options:p,isTTY:j,defaultWD:M,callback:P,key:N,details:D,logPluginError:E,requestPlugins:O,runOnEndCallbacks:B,pluginRefs:T})=>{let S={ref(){T&&T.ref(),c&&c.ref()},unref(){T&&T.unref(),c&&c.unref()}},$=!e.isBrowser,{entries:y,flags:w,write:a,stdinContents:b,stdinResolveDir:C,absWorkingDir:f,incremental:v,nodePaths:W,watch:I}=dt(g,p,j,ie,$),K={command:"build",key:N,entries:y,flags:w,write:a,stdinContents:b,stdinResolveDir:C,absWorkingDir:f||M,incremental:v,nodePaths:W};O&&(K.plugins=O);let V=o&&le(S,o,K),Y,J,se=(A,H)=>{A.outputFiles&&(H.outputFiles=A.outputFiles.map(gt)),A.metafile&&(H.metafile=JSON.parse(A.metafile)),A.writeToStdout!==void 0&&console.log(fe(A.writeToStdout).replace(/\n$/,""))},oe=(A,H)=>{let X={errors:we(A.errors,D),warnings:we(A.warnings,D)};se(A,X),B(X,E,()=>{if(X.errors.length>0)return H(be("Build failed",X.errors,X.warnings),null);if(A.rebuildID!==void 0){if(!Y){let ne=!1;Y=()=>new Promise((pe,ge)=>{if(ne||u)throw new Error("Cannot rebuild");k(S,{command:"rebuild",rebuildID:A.rebuildID},(Z,Ze)=>{if(Z)return H(be("Build failed",[{pluginName:"",text:Z,location:null,notes:[],detail:void 0}],[]),null);oe(Ze,(Pe,et)=>{Pe?ge(Pe):pe(et)})})}),S.ref(),Y.dispose=()=>{ne||(ne=!0,k(S,{command:"rebuild-dispose",rebuildID:A.rebuildID},()=>{}),S.unref())}}X.rebuild=Y}if(A.watchID!==void 0){if(!J){let ne=!1;S.ref(),J=()=>{ne||(ne=!0,s.delete(A.watchID),k(S,{command:"watch-stop",watchID:A.watchID},()=>{}),S.unref())},I&&s.set(A.watchID,(pe,ge)=>{if(pe){I.onRebuild&&I.onRebuild(pe,null);return}let Z={errors:we(ge.errors,D),warnings:we(ge.warnings,D)};se(ge,Z),B(Z,E,()=>{if(Z.errors.length>0){I.onRebuild&&I.onRebuild(be("Build failed",Z.errors,Z.warnings),null);return}ge.rebuildID!==void 0&&(Z.rebuild=Y),Z.stop=J,I.onRebuild&&I.onRebuild(null,Z)})})}X.stop=J}H(null,X)})};if(a&&e.isBrowser)throw new Error('Cannot enable "write" in the browser');if(v&&e.isSync)throw new Error('Cannot use "incremental" with a synchronous build');if(I&&e.isSync)throw new Error('Cannot use "watch" with a synchronous build');k(S,K,(A,H)=>{if(A)return P(new Error(A),null);if(V){let X=H,ne=!1;S.ref();let pe={port:X.port,host:X.host,wait:V.wait,stop(){ne||(ne=!0,V.stop(),S.unref())}};return S.ref(),V.wait.then(S.unref,S.unref),P(null,pe)}return oe(H,P)})};return{readFromStdout:F,afterClose:U,service:{buildOrServe:Q,transform:({callName:g,refs:c,input:o,options:p,isTTY:j,fs:M,callback:P})=>{let N=Ge(),D=E=>{try{if(typeof o!="string")throw new Error('The input to "transform" must be a string');let O=pt(g,p,j,ce);k(c,{command:"transform",flags:O,inputFS:E!==null,input:E!==null?E:o},(T,S)=>{if(T)return P(new Error(T),null);let $=we(S.errors,N),y=we(S.warnings,N),w=1,a=()=>--w==0&&P(null,{warnings:y,code:S.code,map:S.map});if($.length>0)return P(be("Transform failed",$,y),null);S.codeFS&&(w++,M.readFile(S.code,(b,C)=>{b!==null?P(b,null):(S.code=C,a())})),S.mapFS&&(w++,M.readFile(S.map,(b,C)=>{b!==null?P(b,null):(S.map=C,a())})),a()})}catch(O){let B=[];try{Oe(B,p,{},j,ce)}catch(S){}let T=he(O,e,N,void 0,"");k(c,{command:"error",flags:B,error:T},()=>{T.detail=N.load(T.detail),P(be("Transform failed",[T],[]),null)})}};if(typeof o=="string"&&o.length>1024*1024){let E=D;D=()=>M.writeFile(o,E)}D(null)},formatMessages:({callName:g,refs:c,messages:o,options:p,callback:j})=>{let M=de(o,"messages",null,"");if(!p)throw new Error(`Missing second argument in ${g}() call`);let P={},N=n(p,P,"kind",h),D=n(p,P,"color",L),E=n(p,P,"terminalWidth",me);if(_(p,P,`in ${g}() call`),N===void 0)throw new Error(`Missing "kind" in ${g}() call`);if(N!=="error"&&N!=="warning")throw new Error(`Expected "kind" to be "error" or "warning" in ${g}() call`);let O={command:"format-msgs",messages:M,isWarning:N==="warning"};D!==void 0&&(O.color=D),E!==void 0&&(O.terminalWidth=E),k(c,O,(B,T)=>{if(B)return j(new Error(B),null);j(null,T.messages)})},analyzeMetafile:({callName:g,refs:c,metafile:o,options:p,callback:j})=>{p===void 0&&(p={});let M={},P=n(p,M,"color",L),N=n(p,M,"verbose",L);_(p,M,`in ${g}() call`);let D={command:"analyze-metafile",metafile:o};P!==void 0&&(D.color=P),N!==void 0&&(D.verbose=N),k(c,D,(E,O)=>{if(E)return j(new Error(E),null);j(null,O.result)})}}}}function Ge(){let e=new Map,t=0;return{load(r){return e.get(r)},store(r){if(r===void 0)return-1;let s=t++;return e.set(s,r),s}}}function Se(e,t,r){let s,d=!1;return()=>{if(d)return s;d=!0;try{let l=(e.stack+"").split(`
+`);l.splice(1,1);let u=Qe(t,l,r);if(u)return s={text:e.message,location:u},s}catch(l){}}}function he(e,t,r,s,d){let l="Internal error",u=null;try{l=(e&&e.message||e)+""}catch(i){}try{u=Qe(t,(e.stack+"").split(`
+`),"")}catch(i){}return{pluginName:d,text:l,location:u,notes:s?[s]:[],detail:r?r.store(e):-1}}function Qe(e,t,r){let s="    at ";if(e.readFileSync&&!t[0].startsWith(s)&&t[1].startsWith(s))for(let d=1;d<t.length;d++){let l=t[d];if(!!l.startsWith(s))for(l=l.slice(s.length);;){let u=/^(?:new |async )?\S+ \((.*)\)$/.exec(l);if(u){l=u[1];continue}if(u=/^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(l),u){l=u[1];continue}if(u=/^(\S+):(\d+):(\d+)$/.exec(l),u){let i;try{i=e.readFileSync(u[1],"utf8")}catch(F){break}let m=i.split(/\r\n|\r|\n|\u2028|\u2029/)[+u[2]-1]||"",R=+u[3]-1,x=m.slice(R,R+r.length)===r?r.length:0;return{file:u[1],namespace:"file",line:+u[2],column:ue(m.slice(0,R)).length,length:ue(m.slice(R,R+x)).length,lineText:m+`
+`+t.slice(1).join(`
+`),suggestion:""}}break}}return null}function be(e,t,r){let s=5,d=t.length<1?"":` with ${t.length} error${t.length<2?"":"s"}:`+t.slice(0,s+1).map((u,i)=>{if(i===s)return`
+...`;if(!u.location)return`
+error: ${u.text}`;let{file:m,line:R,column:x}=u.location,F=u.pluginName?`[plugin: ${u.pluginName}] `:"";return`
+${m}:${R}:${x}: error: ${F}${u.text}`}).join(""),l=new Error(`${e}${d}`);return l.errors=t,l.warnings=r,l}function we(e,t){for(let r of e)r.detail=t.load(r.detail);return e}function Xe(e,t){if(e==null)return null;let r={},s=n(e,r,"file",h),d=n(e,r,"namespace",h),l=n(e,r,"line",me),u=n(e,r,"column",me),i=n(e,r,"length",me),m=n(e,r,"lineText",h),R=n(e,r,"suggestion",h);return _(e,r,t),{file:s||"",namespace:d||"",line:l||0,column:u||0,length:i||0,lineText:m||"",suggestion:R||""}}function de(e,t,r,s){let d=[],l=0;for(let u of e){let i={},m=n(u,i,"pluginName",h),R=n(u,i,"text",h),x=n(u,i,"location",_e),F=n(u,i,"notes",z),U=n(u,i,"detail",Ie),k=`in element ${l} of "${t}"`;_(u,i,k);let q=[];if(F)for(let ee of F){let G={},te=n(ee,G,"text",h),re=n(ee,G,"location",_e);_(ee,G,k),q.push({text:te||"",location:Xe(re,k)})}d.push({pluginName:m||s,text:R||"",location:Xe(x,k),notes:q,detail:r?r.store(U):-1}),l++}return d}function xe(e,t){let r=[];for(let s of e){if(typeof s!="string")throw new Error(`${JSON.stringify(t)} must be an array of strings`);r.push(s)}return r}function gt({path:e,contents:t}){let r=null;return{path:e,contents:t,get text(){return r===null&&(r=fe(t)),r}}}var mt="0.13.8",yt=e=>ke().build(e),ht=()=>{throw new Error('The "serve" API only works in node')},bt=(e,t)=>ke().transform(e,t),wt=(e,t)=>ke().formatMessages(e,t),vt=(e,t)=>ke().analyzeMetafile(e,t),Rt=()=>{throw new Error('The "buildSync" API only works in node')},Ot=()=>{throw new Error('The "transformSync" API only works in node')},St=()=>{throw new Error('The "formatMessagesSync" API only works in node')},xt=()=>{throw new Error('The "analyzeMetafileSync" API only works in node')},ve,Le,ke=()=>{if(Le)return Le;throw ve?new Error('You need to wait for the promise returned from "initialize" to be resolved before calling this'):new Error('You need to call "initialize" before calling this')},kt=e=>{e=Je(e||{});let t=e.wasmURL,r=e.worker!==!1;if(!t)throw new Error('Must provide the "wasmURL" option');if(t+="",ve)throw new Error('Cannot call "initialize" more than once');return ve=Et(t,r),ve.catch(()=>{ve=void 0}),ve},Et=(e,t)=>ae(void 0,null,function*(){let r=yield fetch(e);if(!r.ok)throw new Error(`Failed to download ${JSON.stringify(e)}`);let s=yield r.arrayBuffer(),d='{let global={};for(let o=self;o;o=Object.getPrototypeOf(o))for(let k of Object.getOwnPropertyNames(o))if(!(k in global))Object.defineProperty(global,k,{get:()=>self[k]});\n// Copyright 2018 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\nvar y=(a,g,f)=>new Promise((r,n)=>{var s=h=>{try{l(f.next(h))}catch(u){n(u)}},i=h=>{try{l(f.throw(h))}catch(u){n(u)}},l=h=>h.done?r(h.value):Promise.resolve(h.value).then(s,i);l((f=f.apply(a,g)).next())});(()=>{if(typeof global=="undefined")if(typeof window!="undefined")window.global=window;else if(typeof self!="undefined")self.global=self;else throw new Error("cannot export Go (neither global, window nor self is defined)");if(!global.require&&typeof require!="undefined"&&(global.require=require),!global.fs&&global.require){const r=require("fs");typeof r=="object"&&r!==null&&Object.keys(r).length!==0&&(global.fs=Object.assign({},r,{write(n,s,i,l,h,u){if(i===0&&l===s.length&&h===null){if(n===process.stdout.fd){try{process.stdout.write(s,m=>m?u(m,0,null):u(null,l,s))}catch(m){u(m,0,null)}return}if(n===process.stderr.fd){try{process.stderr.write(s,m=>m?u(m,0,null):u(null,l,s))}catch(m){u(m,0,null)}return}}r.write(n,s,i,l,h,u)}}))}const a=()=>{const r=new Error("not implemented");return r.code="ENOSYS",r};if(!global.fs){let r="";global.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(n,s){r+=f.decode(s);const i=r.lastIndexOf(`\n`);return i!=-1&&(console.log(r.substr(0,i)),r=r.substr(i+1)),s.length},write(n,s,i,l,h,u){if(i!==0||l!==s.length||h!==null){u(a());return}const m=this.writeSync(n,s);u(null,m)},chmod(n,s,i){i(a())},chown(n,s,i,l){l(a())},close(n,s){s(a())},fchmod(n,s,i){i(a())},fchown(n,s,i,l){l(a())},fstat(n,s){s(a())},fsync(n,s){s(null)},ftruncate(n,s,i){i(a())},lchown(n,s,i,l){l(a())},link(n,s,i){i(a())},lstat(n,s){s(a())},mkdir(n,s,i){i(a())},open(n,s,i,l){l(a())},read(n,s,i,l,h,u){u(a())},readdir(n,s){s(a())},readlink(n,s){s(a())},rename(n,s,i){i(a())},rmdir(n,s){s(a())},stat(n,s){s(a())},symlink(n,s,i){i(a())},truncate(n,s,i){i(a())},unlink(n,s){s(a())},utimes(n,s,i,l){l(a())}}}if(global.process||(global.process={getuid(){return-1},getgid(){return-1},geteuid(){return-1},getegid(){return-1},getgroups(){throw a()},pid:-1,ppid:-1,umask(){throw a()},cwd(){throw a()},chdir(){throw a()}}),!global.crypto&&global.require){const r=require("crypto");global.crypto={getRandomValues(n){r.randomFillSync(n)}}}if(!global.crypto)throw new Error("global.crypto is not available, polyfill required (getRandomValues only)");if(global.performance||(global.performance={now(){const[r,n]=process.hrtime();return r*1e3+n/1e6}}),!global.TextEncoder&&global.require&&(global.TextEncoder=require("util").TextEncoder),!global.TextEncoder)throw new Error("global.TextEncoder is not available, polyfill required");if(!global.TextDecoder&&global.require&&(global.TextDecoder=require("util").TextDecoder),!global.TextDecoder)throw new Error("global.TextDecoder is not available, polyfill required");const g=new TextEncoder("utf-8"),f=new TextDecoder("utf-8");if(global.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=e=>{e!==0&&console.warn("exit code:",e)},this._exitPromise=new Promise(e=>{this._resolveExitPromise=e}),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;const r=(e,t)=>{this.mem.setUint32(e+0,t,!0),this.mem.setUint32(e+4,Math.floor(t/4294967296),!0)},n=e=>{const t=this.mem.getUint32(e+0,!0),o=this.mem.getInt32(e+4,!0);return t+o*4294967296},s=e=>{const t=this.mem.getFloat64(e,!0);if(t===0)return;if(!isNaN(t))return t;const o=this.mem.getUint32(e,!0);return this._values[o]},i=(e,t)=>{const o=2146959360;if(typeof t=="number"&&t!==0){if(isNaN(t)){this.mem.setUint32(e+4,o,!0),this.mem.setUint32(e,0,!0);return}this.mem.setFloat64(e,t,!0);return}if(t===void 0){this.mem.setFloat64(e,0,!0);return}let c=this._ids.get(t);c===void 0&&(c=this._idPool.pop(),c===void 0&&(c=this._values.length),this._values[c]=t,this._goRefCounts[c]=0,this._ids.set(t,c)),this._goRefCounts[c]++;let d=0;switch(typeof t){case"object":t!==null&&(d=1);break;case"string":d=2;break;case"symbol":d=3;break;case"function":d=4;break}this.mem.setUint32(e+4,o|d,!0),this.mem.setUint32(e,c,!0)},l=e=>{const t=n(e+0),o=n(e+8);return new Uint8Array(this._inst.exports.mem.buffer,t,o)},h=e=>{const t=n(e+0),o=n(e+8),c=new Array(o);for(let d=0;d<o;d++)c[d]=s(t+d*8);return c},u=e=>{const t=n(e+0),o=n(e+8);return f.decode(new DataView(this._inst.exports.mem.buffer,t,o))},m=Date.now()-performance.now();this.importObject={go:{"runtime.wasmExit":e=>{e>>>=0;const t=this.mem.getInt32(e+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(t)},"runtime.wasmWrite":e=>{e>>>=0;const t=n(e+8),o=n(e+16),c=this.mem.getInt32(e+24,!0);fs.writeSync(t,new Uint8Array(this._inst.exports.mem.buffer,o,c))},"runtime.resetMemoryDataView":e=>{e>>>=0,this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":e=>{e>>>=0,r(e+8,(m+performance.now())*1e6)},"runtime.walltime":e=>{e>>>=0;const t=new Date().getTime();r(e+8,t/1e3),this.mem.setInt32(e+16,t%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":e=>{e>>>=0;const t=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(t,setTimeout(()=>{for(this._resume();this._scheduledTimeouts.has(t);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()},n(e+8)+1)),this.mem.setInt32(e+16,t,!0)},"runtime.clearTimeoutEvent":e=>{e>>>=0;const t=this.mem.getInt32(e+8,!0);clearTimeout(this._scheduledTimeouts.get(t)),this._scheduledTimeouts.delete(t)},"runtime.getRandomData":e=>{e>>>=0,crypto.getRandomValues(l(e+8))},"syscall/js.finalizeRef":e=>{e>>>=0;const t=this.mem.getUint32(e+8,!0);if(this._goRefCounts[t]--,this._goRefCounts[t]===0){const o=this._values[t];this._values[t]=null,this._ids.delete(o),this._idPool.push(t)}},"syscall/js.stringVal":e=>{e>>>=0,i(e+24,u(e+8))},"syscall/js.valueGet":e=>{e>>>=0;const t=Reflect.get(s(e+8),u(e+16));e=this._inst.exports.getsp()>>>0,i(e+32,t)},"syscall/js.valueSet":e=>{e>>>=0,Reflect.set(s(e+8),u(e+16),s(e+32))},"syscall/js.valueDelete":e=>{e>>>=0,Reflect.deleteProperty(s(e+8),u(e+16))},"syscall/js.valueIndex":e=>{e>>>=0,i(e+24,Reflect.get(s(e+8),n(e+16)))},"syscall/js.valueSetIndex":e=>{e>>>=0,Reflect.set(s(e+8),n(e+16),s(e+24))},"syscall/js.valueCall":e=>{e>>>=0;try{const t=s(e+8),o=Reflect.get(t,u(e+16)),c=h(e+32),d=Reflect.apply(o,t,c);e=this._inst.exports.getsp()>>>0,i(e+56,d),this.mem.setUint8(e+64,1)}catch(t){e=this._inst.exports.getsp()>>>0,i(e+56,t),this.mem.setUint8(e+64,0)}},"syscall/js.valueInvoke":e=>{e>>>=0;try{const t=s(e+8),o=h(e+16),c=Reflect.apply(t,void 0,o);e=this._inst.exports.getsp()>>>0,i(e+40,c),this.mem.setUint8(e+48,1)}catch(t){e=this._inst.exports.getsp()>>>0,i(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueNew":e=>{e>>>=0;try{const t=s(e+8),o=h(e+16),c=Reflect.construct(t,o);e=this._inst.exports.getsp()>>>0,i(e+40,c),this.mem.setUint8(e+48,1)}catch(t){e=this._inst.exports.getsp()>>>0,i(e+40,t),this.mem.setUint8(e+48,0)}},"syscall/js.valueLength":e=>{e>>>=0,r(e+16,parseInt(s(e+8).length))},"syscall/js.valuePrepareString":e=>{e>>>=0;const t=g.encode(String(s(e+8)));i(e+16,t),r(e+24,t.length)},"syscall/js.valueLoadString":e=>{e>>>=0;const t=s(e+8);l(e+16).set(t)},"syscall/js.valueInstanceOf":e=>{e>>>=0,this.mem.setUint8(e+24,s(e+8)instanceof s(e+16)?1:0)},"syscall/js.copyBytesToGo":e=>{e>>>=0;const t=l(e+8),o=s(e+32);if(!(o instanceof Uint8Array||o instanceof Uint8ClampedArray)){this.mem.setUint8(e+48,0);return}const c=o.subarray(0,t.length);t.set(c),r(e+40,c.length),this.mem.setUint8(e+48,1)},"syscall/js.copyBytesToJS":e=>{e>>>=0;const t=s(e+8),o=l(e+16);if(!(t instanceof Uint8Array||t instanceof Uint8ClampedArray)){this.mem.setUint8(e+48,0);return}const c=o.subarray(0,t.length);t.set(c),r(e+40,c.length),this.mem.setUint8(e+48,1)},debug:e=>{console.log(e)}}}}run(r){return y(this,null,function*(){if(!(r instanceof WebAssembly.Instance))throw new Error("Go.run: WebAssembly.Instance expected");this._inst=r,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,global,this],this._goRefCounts=new Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[global,5],[this,6]]),this._idPool=[],this.exited=!1;let n=4096;const s=e=>{const t=n,o=g.encode(e+"\\0");return new Uint8Array(this.mem.buffer,n,o.length).set(o),n+=o.length,n%8!=0&&(n+=8-n%8),t},i=this.argv.length,l=[];this.argv.forEach(e=>{l.push(s(e))}),l.push(0),Object.keys(this.env).sort().forEach(e=>{l.push(s(`${e}=${this.env[e]}`))}),l.push(0);const u=n;l.forEach(e=>{this.mem.setUint32(n,e,!0),this.mem.setUint32(n+4,0,!0),n+=8});const m=4096+4096;if(n>=m)throw new Error("command line too long");this._inst.exports.run(i,u),this.exited&&this._resolveExitPromise(),yield this._exitPromise})}_resume(){if(this.exited)throw new Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(r){const n=this;return function(){const s={id:r,this:this,args:arguments};return n._pendingEvent=s,n._resume(),s.result}}},typeof module!="undefined"&&global.require&&global.require.main===module&&global.process&&global.process.versions&&!global.process.versions.electron){process.argv.length<3&&(console.error("usage: go_js_wasm_exec [wasm binary] [arguments]"),process.exit(1));const r=new Go;r.argv=process.argv.slice(2),r.env=Object.assign({TMPDIR:require("os").tmpdir()},process.env),r.exit=process.exit,WebAssembly.instantiate(fs.readFileSync(process.argv[2]),r.importObject).then(n=>(process.on("exit",s=>{s===0&&!r.exited&&(r._pendingEvent={id:0},r._resume())}),r.run(n.instance))).catch(n=>{console.error(n),process.exit(1)})}})();\nonmessage=({data:c})=>{let y=new TextDecoder,s=global.fs,a="";s.writeSync=(e,t)=>{if(e===1)postMessage(t);else if(e===2){a+=y.decode(t);let n=a.split(`\n`);n.length>1&&console.log(n.slice(0,-1).join(`\n`)),a=n[n.length-1]}else throw new Error("Bad write");return t.length};let l=[],i,r=0;onmessage=({data:e})=>{e.length>0&&(l.push(e),i&&i())},s.read=(e,t,n,d,h,m)=>{if(e!==0||n!==0||d!==t.length||h!==null)throw new Error("Bad read");if(l.length===0){i=()=>s.read(e,t,n,d,h,m);return}let g=l[0],u=Math.max(0,Math.min(d,g.length-r));t.set(g.subarray(r,r+u),n),r+=u,r===g.length&&(l.shift(),r=0),m(null,u)};let o=new global.Go;o.argv=["","--service=0.13.8"],WebAssembly.instantiate(c,o.importObject).then(({instance:e})=>o.run(e))};}',l;if(t){let m=new Blob([d],{type:"text/javascript"});l=new Worker(URL.createObjectURL(m))}else{let R=new Function("postMessage",d+"var onmessage; return m => onmessage(m)")(x=>l.onmessage({data:x}));l={onmessage:null,postMessage:x=>R({data:x}),terminate(){}}}l.postMessage(s),l.onmessage=({data:m})=>u(m);let{readFromStdout:u,service:i}=He({writeToStdin(m){l.postMessage(m)},isSync:!1,isBrowser:!0});Le={build:m=>new Promise((R,x)=>i.buildOrServe({callName:"build",refs:null,serveOptions:null,options:m,isTTY:!1,defaultWD:"/",callback:(F,U)=>F?x(F):R(U)})),transform:(m,R)=>new Promise((x,F)=>i.transform({callName:"transform",refs:null,input:m,options:R||{},isTTY:!1,fs:{readFile(U,k){k(new Error("Internal error"),null)},writeFile(U,k){k(null)}},callback:(U,k)=>U?F(U):x(k)})),formatMessages:(m,R)=>new Promise((x,F)=>i.formatMessages({callName:"formatMessages",refs:null,messages:m,options:R,callback:(U,k)=>U?F(U):x(k)})),analyzeMetafile:(m,R)=>new Promise((x,F)=>i.analyzeMetafile({callName:"analyzeMetafile",refs:null,metafile:typeof m=="string"?m:JSON.stringify(m),options:R,callback:(U,k)=>U?F(U):x(k)}))}});
+})(typeof exports==="object"?exports:(typeof self!=="undefined"?self:this).esbuild={});
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/main.d.ts
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/main.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/main.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,416 @@
+export type Platform = 'browser' | 'node' | 'neutral';
+export type Format = 'iife' | 'cjs' | 'esm';
+export type Loader = 'js' | 'jsx' | 'ts' | 'tsx' | 'css' | 'json' | 'text' | 'base64' | 'file' | 'dataurl' | 'binary' | 'default';
+export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent';
+export type Charset = 'ascii' | 'utf8';
+
+interface CommonOptions {
+  sourcemap?: boolean | 'inline' | 'external' | 'both';
+  legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
+  sourceRoot?: string;
+  sourcesContent?: boolean;
+
+  format?: Format;
+  globalName?: string;
+  target?: string | string[];
+
+  minify?: boolean;
+  minifyWhitespace?: boolean;
+  minifyIdentifiers?: boolean;
+  minifySyntax?: boolean;
+  charset?: Charset;
+  treeShaking?: boolean;
+  ignoreAnnotations?: boolean;
+
+  jsx?: 'transform' | 'preserve';
+  jsxFactory?: string;
+  jsxFragment?: string;
+
+  define?: { [key: string]: string };
+  pure?: string[];
+  keepNames?: boolean;
+
+  color?: boolean;
+  logLevel?: LogLevel;
+  logLimit?: number;
+}
+
+export interface BuildOptions extends CommonOptions {
+  bundle?: boolean;
+  splitting?: boolean;
+  preserveSymlinks?: boolean;
+  outfile?: string;
+  metafile?: boolean;
+  outdir?: string;
+  outbase?: string;
+  platform?: Platform;
+  external?: string[];
+  loader?: { [ext: string]: Loader };
+  resolveExtensions?: string[];
+  mainFields?: string[];
+  conditions?: string[];
+  write?: boolean;
+  allowOverwrite?: boolean;
+  tsconfig?: string;
+  outExtension?: { [ext: string]: string };
+  publicPath?: string;
+  entryNames?: string;
+  chunkNames?: string;
+  assetNames?: string;
+  inject?: string[];
+  banner?: { [type: string]: string };
+  footer?: { [type: string]: string };
+  incremental?: boolean;
+  entryPoints?: string[] | Record<string, string>;
+  stdin?: StdinOptions;
+  plugins?: Plugin[];
+  absWorkingDir?: string;
+  nodePaths?: string[]; // The "NODE_PATH" variable from Node.js
+  watch?: boolean | WatchMode;
+}
+
+export interface WatchMode {
+  onRebuild?: (error: BuildFailure | null, result: BuildResult | null) => void;
+}
+
+export interface StdinOptions {
+  contents: string;
+  resolveDir?: string;
+  sourcefile?: string;
+  loader?: Loader;
+}
+
+export interface Message {
+  pluginName: string;
+  text: string;
+  location: Location | null;
+  notes: Note[];
+
+  // Optional user-specified data that is passed through unmodified. You can
+  // use this to stash the original error, for example.
+  detail: any;
+}
+
+export interface Note {
+  text: string;
+  location: Location | null;
+}
+
+export interface Location {
+  file: string;
+  namespace: string;
+  line: number; // 1-based
+  column: number; // 0-based, in bytes
+  length: number; // in bytes
+  lineText: string;
+  suggestion: string;
+}
+
+export interface OutputFile {
+  path: string;
+  contents: Uint8Array; // "text" as bytes
+  text: string; // "contents" as text
+}
+
+export interface BuildInvalidate {
+  (): Promise<BuildIncremental>;
+  dispose(): void;
+}
+
+export interface BuildIncremental extends BuildResult {
+  rebuild: BuildInvalidate;
+}
+
+export interface BuildResult {
+  errors: Message[];
+  warnings: Message[];
+  outputFiles?: OutputFile[]; // Only when "write: false"
+  rebuild?: BuildInvalidate; // Only when "incremental: true"
+  stop?: () => void; // Only when "watch: true"
+  metafile?: Metafile; // Only when "metafile: true"
+}
+
+export interface BuildFailure extends Error {
+  errors: Message[];
+  warnings: Message[];
+}
+
+export interface ServeOptions {
+  port?: number;
+  host?: string;
+  servedir?: string;
+  onRequest?: (args: ServeOnRequestArgs) => void;
+}
+
+export interface ServeOnRequestArgs {
+  remoteAddress: string;
+  method: string;
+  path: string;
+  status: number;
+  timeInMS: number; // The time to generate the response, not to send it
+}
+
+export interface ServeResult {
+  port: number;
+  host: string;
+  wait: Promise<void>;
+  stop: () => void;
+}
+
+export interface TransformOptions extends CommonOptions {
+  tsconfigRaw?: string | {
+    compilerOptions?: {
+      jsxFactory?: string,
+      jsxFragmentFactory?: string,
+      useDefineForClassFields?: boolean,
+      importsNotUsedAsValues?: 'remove' | 'preserve' | 'error',
+    },
+  };
+
+  sourcefile?: string;
+  loader?: Loader;
+  banner?: string;
+  footer?: string;
+}
+
+export interface TransformResult {
+  code: string;
+  map: string;
+  warnings: Message[];
+}
+
+export interface TransformFailure extends Error {
+  errors: Message[];
+  warnings: Message[];
+}
+
+export interface Plugin {
+  name: string;
+  setup: (build: PluginBuild) => (void | Promise<void>);
+}
+
+export interface PluginBuild {
+  initialOptions: BuildOptions;
+  onStart(callback: () =>
+    (OnStartResult | null | void | Promise<OnStartResult | null | void>)): void;
+  onEnd(callback: (result: BuildResult) =>
+    (void | Promise<void>)): void;
+  onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) =>
+    (OnResolveResult | null | undefined | Promise<OnResolveResult | null | undefined>)): void;
+  onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) =>
+    (OnLoadResult | null | undefined | Promise<OnLoadResult | null | undefined>)): void;
+}
+
+export interface OnStartResult {
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+}
+
+export interface OnResolveOptions {
+  filter: RegExp;
+  namespace?: string;
+}
+
+export interface OnResolveArgs {
+  path: string;
+  importer: string;
+  namespace: string;
+  resolveDir: string;
+  kind: ImportKind;
+  pluginData: any;
+}
+
+export type ImportKind =
+  | 'entry-point'
+
+  // JS
+  | 'import-statement'
+  | 'require-call'
+  | 'dynamic-import'
+  | 'require-resolve'
+
+  // CSS
+  | 'import-rule'
+  | 'url-token'
+
+export interface OnResolveResult {
+  pluginName?: string;
+
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+
+  path?: string;
+  external?: boolean;
+  sideEffects?: boolean;
+  namespace?: string;
+  pluginData?: any;
+
+  watchFiles?: string[];
+  watchDirs?: string[];
+}
+
+export interface OnLoadOptions {
+  filter: RegExp;
+  namespace?: string;
+}
+
+export interface OnLoadArgs {
+  path: string;
+  namespace: string;
+  pluginData: any;
+}
+
+export interface OnLoadResult {
+  pluginName?: string;
+
+  errors?: PartialMessage[];
+  warnings?: PartialMessage[];
+
+  contents?: string | Uint8Array;
+  resolveDir?: string;
+  loader?: Loader;
+  pluginData?: any;
+
+  watchFiles?: string[];
+  watchDirs?: string[];
+}
+
+export interface PartialMessage {
+  pluginName?: string;
+  text?: string;
+  location?: Partial<Location> | null;
+  notes?: PartialNote[];
+  detail?: any;
+}
+
+export interface PartialNote {
+  text?: string;
+  location?: Partial<Location> | null;
+}
+
+export interface Metafile {
+  inputs: {
+    [path: string]: {
+      bytes: number
+      imports: {
+        path: string
+        kind: ImportKind
+      }[]
+    }
+  }
+  outputs: {
+    [path: string]: {
+      bytes: number
+      inputs: {
+        [path: string]: {
+          bytesInOutput: number
+        }
+      }
+      imports: {
+        path: string
+        kind: ImportKind
+      }[]
+      exports: string[]
+      entryPoint?: string
+    }
+  }
+}
+
+export interface FormatMessagesOptions {
+  kind: 'error' | 'warning';
+  color?: boolean;
+  terminalWidth?: number;
+}
+
+export interface AnalyzeMetafileOptions {
+  color?: boolean;
+  verbose?: boolean;
+}
+
+// This function invokes the "esbuild" command-line tool for you. It returns a
+// promise that either resolves with a "BuildResult" object or rejects with a
+// "BuildFailure" object.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function build(options: BuildOptions & { write: false }): Promise<BuildResult & { outputFiles: OutputFile[] }>;
+export declare function build(options: BuildOptions & { incremental: true }): Promise<BuildIncremental>;
+export declare function build(options: BuildOptions): Promise<BuildResult>;
+
+// This function is similar to "build" but it serves the resulting files over
+// HTTP on a localhost address with the specified port.
+//
+// Works in node: yes
+// Works in browser: no
+export declare function serve(serveOptions: ServeOptions, buildOptions: BuildOptions): Promise<ServeResult>;
+
+// This function transforms a single JavaScript file. It can be used to minify
+// JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript
+// to older JavaScript. It returns a promise that is either resolved with a
+// "TransformResult" object or rejected with a "TransformFailure" object.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function transform(input: string, options?: TransformOptions): Promise<TransformResult>;
+
+// Converts log messages to formatted message strings suitable for printing in
+// the terminal. This allows you to reuse the built-in behavior of esbuild's
+// log message formatter. This is a batch-oriented API for efficiency.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>;
+
+// Pretty-prints an analysis of the metafile JSON to a string. This is just for
+// convenience to be able to match esbuild's pretty-printing exactly. If you want
+// to customize it, you can just inspect the data in the metafile yourself.
+//
+// Works in node: yes
+// Works in browser: yes
+export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>;
+
+// A synchronous version of "build".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function buildSync(options: BuildOptions & { write: false }): BuildResult & { outputFiles: OutputFile[] };
+export declare function buildSync(options: BuildOptions): BuildResult;
+
+// A synchronous version of "transform".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function transformSync(input: string, options?: TransformOptions): TransformResult;
+
+// A synchronous version of "formatMessages".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function formatMessagesSync(messages: PartialMessage[], options: FormatMessagesOptions): string[];
+
+// A synchronous version of "analyzeMetafile".
+//
+// Works in node: yes
+// Works in browser: no
+export declare function analyzeMetafileSync(metafile: Metafile | string, options?: AnalyzeMetafileOptions): string;
+
+// This configures the browser-based version of esbuild. It is necessary to
+// call this first and wait for the returned promise to be resolved before
+// making other API calls when using esbuild in the browser.
+//
+// Works in node: yes
+// Works in browser: yes ("options" is required)
+export declare function initialize(options: InitializeOptions): Promise<void>;
+
+export interface InitializeOptions {
+  // The URL of the "esbuild.wasm" file. This must be provided when running
+  // esbuild in the browser.
+  wasmURL?: string
+
+  // By default esbuild runs the WebAssembly-based browser API in a web worker
+  // to avoid blocking the UI thread. This can be disabled by setting "worker"
+  // to false.
+  worker?: boolean
+}
+
+export let version: string;
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/main.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/main.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/lib/main.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,2108 @@
+var __create = Object.create;
+var __defProp = Object.defineProperty;
+var __defProps = Object.defineProperties;
+var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
+var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
+var __getOwnPropNames = Object.getOwnPropertyNames;
+var __getOwnPropSymbols = Object.getOwnPropertySymbols;
+var __getProtoOf = Object.getPrototypeOf;
+var __hasOwnProp = Object.prototype.hasOwnProperty;
+var __propIsEnum = Object.prototype.propertyIsEnumerable;
+var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
+var __spreadValues = (a, b) => {
+  for (var prop in b || (b = {}))
+    if (__hasOwnProp.call(b, prop))
+      __defNormalProp(a, prop, b[prop]);
+  if (__getOwnPropSymbols)
+    for (var prop of __getOwnPropSymbols(b)) {
+      if (__propIsEnum.call(b, prop))
+        __defNormalProp(a, prop, b[prop]);
+    }
+  return a;
+};
+var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
+var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
+var __export = (target, all) => {
+  __markAsModule(target);
+  for (var name in all)
+    __defProp(target, name, { get: all[name], enumerable: true });
+};
+var __reExport = (target, module2, desc) => {
+  if (module2 && typeof module2 === "object" || typeof module2 === "function") {
+    for (let key of __getOwnPropNames(module2))
+      if (!__hasOwnProp.call(target, key) && key !== "default")
+        __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
+  }
+  return target;
+};
+var __toModule = (module2) => {
+  return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
+};
+
+// lib/npm/node.ts
+__export(exports, {
+  analyzeMetafile: () => analyzeMetafile,
+  analyzeMetafileSync: () => analyzeMetafileSync,
+  build: () => build,
+  buildSync: () => buildSync,
+  formatMessages: () => formatMessages,
+  formatMessagesSync: () => formatMessagesSync,
+  initialize: () => initialize,
+  serve: () => serve,
+  transform: () => transform,
+  transformSync: () => transformSync,
+  version: () => version
+});
+
+// lib/shared/stdio_protocol.ts
+function encodePacket(packet) {
+  let visit = (value) => {
+    if (value === null) {
+      bb.write8(0);
+    } else if (typeof value === "boolean") {
+      bb.write8(1);
+      bb.write8(+value);
+    } else if (typeof value === "number") {
+      bb.write8(2);
+      bb.write32(value | 0);
+    } else if (typeof value === "string") {
+      bb.write8(3);
+      bb.write(encodeUTF8(value));
+    } else if (value instanceof Uint8Array) {
+      bb.write8(4);
+      bb.write(value);
+    } else if (value instanceof Array) {
+      bb.write8(5);
+      bb.write32(value.length);
+      for (let item of value) {
+        visit(item);
+      }
+    } else {
+      let keys = Object.keys(value);
+      bb.write8(6);
+      bb.write32(keys.length);
+      for (let key of keys) {
+        bb.write(encodeUTF8(key));
+        visit(value[key]);
+      }
+    }
+  };
+  let bb = new ByteBuffer();
+  bb.write32(0);
+  bb.write32(packet.id << 1 | +!packet.isRequest);
+  visit(packet.value);
+  writeUInt32LE(bb.buf, bb.len - 4, 0);
+  return bb.buf.subarray(0, bb.len);
+}
+function decodePacket(bytes) {
+  let visit = () => {
+    switch (bb.read8()) {
+      case 0:
+        return null;
+      case 1:
+        return !!bb.read8();
+      case 2:
+        return bb.read32();
+      case 3:
+        return decodeUTF8(bb.read());
+      case 4:
+        return bb.read();
+      case 5: {
+        let count = bb.read32();
+        let value2 = [];
+        for (let i = 0; i < count; i++) {
+          value2.push(visit());
+        }
+        return value2;
+      }
+      case 6: {
+        let count = bb.read32();
+        let value2 = {};
+        for (let i = 0; i < count; i++) {
+          value2[decodeUTF8(bb.read())] = visit();
+        }
+        return value2;
+      }
+      default:
+        throw new Error("Invalid packet");
+    }
+  };
+  let bb = new ByteBuffer(bytes);
+  let id = bb.read32();
+  let isRequest = (id & 1) === 0;
+  id >>>= 1;
+  let value = visit();
+  if (bb.ptr !== bytes.length) {
+    throw new Error("Invalid packet");
+  }
+  return { id, isRequest, value };
+}
+var ByteBuffer = class {
+  constructor(buf = new Uint8Array(1024)) {
+    this.buf = buf;
+    this.len = 0;
+    this.ptr = 0;
+  }
+  _write(delta) {
+    if (this.len + delta > this.buf.length) {
+      let clone = new Uint8Array((this.len + delta) * 2);
+      clone.set(this.buf);
+      this.buf = clone;
+    }
+    this.len += delta;
+    return this.len - delta;
+  }
+  write8(value) {
+    let offset = this._write(1);
+    this.buf[offset] = value;
+  }
+  write32(value) {
+    let offset = this._write(4);
+    writeUInt32LE(this.buf, value, offset);
+  }
+  write(bytes) {
+    let offset = this._write(4 + bytes.length);
+    writeUInt32LE(this.buf, bytes.length, offset);
+    this.buf.set(bytes, offset + 4);
+  }
+  _read(delta) {
+    if (this.ptr + delta > this.buf.length) {
+      throw new Error("Invalid packet");
+    }
+    this.ptr += delta;
+    return this.ptr - delta;
+  }
+  read8() {
+    return this.buf[this._read(1)];
+  }
+  read32() {
+    return readUInt32LE(this.buf, this._read(4));
+  }
+  read() {
+    let length = this.read32();
+    let bytes = new Uint8Array(length);
+    let ptr = this._read(bytes.length);
+    bytes.set(this.buf.subarray(ptr, ptr + length));
+    return bytes;
+  }
+};
+var encodeUTF8;
+var decodeUTF8;
+if (typeof TextEncoder !== "undefined" && typeof TextDecoder !== "undefined") {
+  let encoder = new TextEncoder();
+  let decoder = new TextDecoder();
+  encodeUTF8 = (text) => encoder.encode(text);
+  decodeUTF8 = (bytes) => decoder.decode(bytes);
+} else if (typeof Buffer !== "undefined") {
+  encodeUTF8 = (text) => {
+    let buffer = Buffer.from(text);
+    if (!(buffer instanceof Uint8Array)) {
+      buffer = new Uint8Array(buffer);
+    }
+    return buffer;
+  };
+  decodeUTF8 = (bytes) => {
+    let { buffer, byteOffset, byteLength } = bytes;
+    return Buffer.from(buffer, byteOffset, byteLength).toString();
+  };
+} else {
+  throw new Error("No UTF-8 codec found");
+}
+function readUInt32LE(buffer, offset) {
+  return buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24;
+}
+function writeUInt32LE(buffer, value, offset) {
+  buffer[offset++] = value;
+  buffer[offset++] = value >> 8;
+  buffer[offset++] = value >> 16;
+  buffer[offset++] = value >> 24;
+}
+
+// lib/shared/common.ts
+function validateTarget(target) {
+  target += "";
+  if (target.indexOf(",") >= 0)
+    throw new Error(`Invalid target: ${target}`);
+  return target;
+}
+var canBeAnything = () => null;
+var mustBeBoolean = (value) => typeof value === "boolean" ? null : "a boolean";
+var mustBeBooleanOrObject = (value) => typeof value === "boolean" || typeof value === "object" && !Array.isArray(value) ? null : "a boolean or an object";
+var mustBeString = (value) => typeof value === "string" ? null : "a string";
+var mustBeRegExp = (value) => value instanceof RegExp ? null : "a RegExp object";
+var mustBeInteger = (value) => typeof value === "number" && value === (value | 0) ? null : "an integer";
+var mustBeFunction = (value) => typeof value === "function" ? null : "a function";
+var mustBeArray = (value) => Array.isArray(value) ? null : "an array";
+var mustBeObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? null : "an object";
+var mustBeArrayOrRecord = (value) => typeof value === "object" && value !== null ? null : "an array or an object";
+var mustBeObjectOrNull = (value) => typeof value === "object" && !Array.isArray(value) ? null : "an object or null";
+var mustBeStringOrBoolean = (value) => typeof value === "string" || typeof value === "boolean" ? null : "a string or a boolean";
+var mustBeStringOrObject = (value) => typeof value === "string" || typeof value === "object" && value !== null && !Array.isArray(value) ? null : "a string or an object";
+var mustBeStringOrArray = (value) => typeof value === "string" || Array.isArray(value) ? null : "a string or an array";
+var mustBeStringOrUint8Array = (value) => typeof value === "string" || value instanceof Uint8Array ? null : "a string or a Uint8Array";
+function getFlag(object, keys, key, mustBeFn) {
+  let value = object[key];
+  keys[key + ""] = true;
+  if (value === void 0)
+    return void 0;
+  let mustBe = mustBeFn(value);
+  if (mustBe !== null)
+    throw new Error(`"${key}" must be ${mustBe}`);
+  return value;
+}
+function checkForInvalidFlags(object, keys, where) {
+  for (let key in object) {
+    if (!(key in keys)) {
+      throw new Error(`Invalid option ${where}: "${key}"`);
+    }
+  }
+}
+function validateInitializeOptions(options) {
+  let keys = Object.create(null);
+  let wasmURL = getFlag(options, keys, "wasmURL", mustBeString);
+  let worker = getFlag(options, keys, "worker", mustBeBoolean);
+  checkForInvalidFlags(options, keys, "in startService() call");
+  return {
+    wasmURL,
+    worker
+  };
+}
+function pushLogFlags(flags, options, keys, isTTY2, logLevelDefault) {
+  let color = getFlag(options, keys, "color", mustBeBoolean);
+  let logLevel = getFlag(options, keys, "logLevel", mustBeString);
+  let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
+  if (color !== void 0)
+    flags.push(`--color=${color}`);
+  else if (isTTY2)
+    flags.push(`--color=true`);
+  flags.push(`--log-level=${logLevel || logLevelDefault}`);
+  flags.push(`--log-limit=${logLimit || 0}`);
+}
+function pushCommonFlags(flags, options, keys) {
+  let legalComments = getFlag(options, keys, "legalComments", mustBeString);
+  let sourceRoot = getFlag(options, keys, "sourceRoot", mustBeString);
+  let sourcesContent = getFlag(options, keys, "sourcesContent", mustBeBoolean);
+  let target = getFlag(options, keys, "target", mustBeStringOrArray);
+  let format = getFlag(options, keys, "format", mustBeString);
+  let globalName = getFlag(options, keys, "globalName", mustBeString);
+  let minify = getFlag(options, keys, "minify", mustBeBoolean);
+  let minifySyntax = getFlag(options, keys, "minifySyntax", mustBeBoolean);
+  let minifyWhitespace = getFlag(options, keys, "minifyWhitespace", mustBeBoolean);
+  let minifyIdentifiers = getFlag(options, keys, "minifyIdentifiers", mustBeBoolean);
+  let charset = getFlag(options, keys, "charset", mustBeString);
+  let treeShaking = getFlag(options, keys, "treeShaking", mustBeBoolean);
+  let ignoreAnnotations = getFlag(options, keys, "ignoreAnnotations", mustBeBoolean);
+  let jsx = getFlag(options, keys, "jsx", mustBeString);
+  let jsxFactory = getFlag(options, keys, "jsxFactory", mustBeString);
+  let jsxFragment = getFlag(options, keys, "jsxFragment", mustBeString);
+  let define = getFlag(options, keys, "define", mustBeObject);
+  let pure = getFlag(options, keys, "pure", mustBeArray);
+  let keepNames = getFlag(options, keys, "keepNames", mustBeBoolean);
+  if (legalComments)
+    flags.push(`--legal-comments=${legalComments}`);
+  if (sourceRoot !== void 0)
+    flags.push(`--source-root=${sourceRoot}`);
+  if (sourcesContent !== void 0)
+    flags.push(`--sources-content=${sourcesContent}`);
+  if (target) {
+    if (Array.isArray(target))
+      flags.push(`--target=${Array.from(target).map(validateTarget).join(",")}`);
+    else
+      flags.push(`--target=${validateTarget(target)}`);
+  }
+  if (format)
+    flags.push(`--format=${format}`);
+  if (globalName)
+    flags.push(`--global-name=${globalName}`);
+  if (minify)
+    flags.push("--minify");
+  if (minifySyntax)
+    flags.push("--minify-syntax");
+  if (minifyWhitespace)
+    flags.push("--minify-whitespace");
+  if (minifyIdentifiers)
+    flags.push("--minify-identifiers");
+  if (charset)
+    flags.push(`--charset=${charset}`);
+  if (treeShaking !== void 0)
+    flags.push(`--tree-shaking=${treeShaking}`);
+  if (ignoreAnnotations)
+    flags.push(`--ignore-annotations`);
+  if (jsx)
+    flags.push(`--jsx=${jsx}`);
+  if (jsxFactory)
+    flags.push(`--jsx-factory=${jsxFactory}`);
+  if (jsxFragment)
+    flags.push(`--jsx-fragment=${jsxFragment}`);
+  if (define) {
+    for (let key in define) {
+      if (key.indexOf("=") >= 0)
+        throw new Error(`Invalid define: ${key}`);
+      flags.push(`--define:${key}=${define[key]}`);
+    }
+  }
+  if (pure)
+    for (let fn of pure)
+      flags.push(`--pure:${fn}`);
+  if (keepNames)
+    flags.push(`--keep-names`);
+}
+function flagsForBuildOptions(callName, options, isTTY2, logLevelDefault, writeDefault) {
+  var _a2;
+  let flags = [];
+  let entries = [];
+  let keys = Object.create(null);
+  let stdinContents = null;
+  let stdinResolveDir = null;
+  let watchMode = null;
+  pushLogFlags(flags, options, keys, isTTY2, logLevelDefault);
+  pushCommonFlags(flags, options, keys);
+  let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
+  let bundle = getFlag(options, keys, "bundle", mustBeBoolean);
+  let watch = getFlag(options, keys, "watch", mustBeBooleanOrObject);
+  let splitting = getFlag(options, keys, "splitting", mustBeBoolean);
+  let preserveSymlinks = getFlag(options, keys, "preserveSymlinks", mustBeBoolean);
+  let metafile = getFlag(options, keys, "metafile", mustBeBoolean);
+  let outfile = getFlag(options, keys, "outfile", mustBeString);
+  let outdir = getFlag(options, keys, "outdir", mustBeString);
+  let outbase = getFlag(options, keys, "outbase", mustBeString);
+  let platform = getFlag(options, keys, "platform", mustBeString);
+  let tsconfig = getFlag(options, keys, "tsconfig", mustBeString);
+  let resolveExtensions = getFlag(options, keys, "resolveExtensions", mustBeArray);
+  let nodePathsInput = getFlag(options, keys, "nodePaths", mustBeArray);
+  let mainFields = getFlag(options, keys, "mainFields", mustBeArray);
+  let conditions = getFlag(options, keys, "conditions", mustBeArray);
+  let external = getFlag(options, keys, "external", mustBeArray);
+  let loader = getFlag(options, keys, "loader", mustBeObject);
+  let outExtension = getFlag(options, keys, "outExtension", mustBeObject);
+  let publicPath = getFlag(options, keys, "publicPath", mustBeString);
+  let entryNames = getFlag(options, keys, "entryNames", mustBeString);
+  let chunkNames = getFlag(options, keys, "chunkNames", mustBeString);
+  let assetNames = getFlag(options, keys, "assetNames", mustBeString);
+  let inject = getFlag(options, keys, "inject", mustBeArray);
+  let banner = getFlag(options, keys, "banner", mustBeObject);
+  let footer = getFlag(options, keys, "footer", mustBeObject);
+  let entryPoints = getFlag(options, keys, "entryPoints", mustBeArrayOrRecord);
+  let absWorkingDir = getFlag(options, keys, "absWorkingDir", mustBeString);
+  let stdin = getFlag(options, keys, "stdin", mustBeObject);
+  let write = (_a2 = getFlag(options, keys, "write", mustBeBoolean)) != null ? _a2 : writeDefault;
+  let allowOverwrite = getFlag(options, keys, "allowOverwrite", mustBeBoolean);
+  let incremental = getFlag(options, keys, "incremental", mustBeBoolean) === true;
+  keys.plugins = true;
+  checkForInvalidFlags(options, keys, `in ${callName}() call`);
+  if (sourcemap)
+    flags.push(`--sourcemap${sourcemap === true ? "" : `=${sourcemap}`}`);
+  if (bundle)
+    flags.push("--bundle");
+  if (allowOverwrite)
+    flags.push("--allow-overwrite");
+  if (watch) {
+    flags.push("--watch");
+    if (typeof watch === "boolean") {
+      watchMode = {};
+    } else {
+      let watchKeys = Object.create(null);
+      let onRebuild = getFlag(watch, watchKeys, "onRebuild", mustBeFunction);
+      checkForInvalidFlags(watch, watchKeys, `on "watch" in ${callName}() call`);
+      watchMode = { onRebuild };
+    }
+  }
+  if (splitting)
+    flags.push("--splitting");
+  if (preserveSymlinks)
+    flags.push("--preserve-symlinks");
+  if (metafile)
+    flags.push(`--metafile`);
+  if (outfile)
+    flags.push(`--outfile=${outfile}`);
+  if (outdir)
+    flags.push(`--outdir=${outdir}`);
+  if (outbase)
+    flags.push(`--outbase=${outbase}`);
+  if (platform)
+    flags.push(`--platform=${platform}`);
+  if (tsconfig)
+    flags.push(`--tsconfig=${tsconfig}`);
+  if (resolveExtensions) {
+    let values = [];
+    for (let value of resolveExtensions) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid resolve extension: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--resolve-extensions=${values.join(",")}`);
+  }
+  if (publicPath)
+    flags.push(`--public-path=${publicPath}`);
+  if (entryNames)
+    flags.push(`--entry-names=${entryNames}`);
+  if (chunkNames)
+    flags.push(`--chunk-names=${chunkNames}`);
+  if (assetNames)
+    flags.push(`--asset-names=${assetNames}`);
+  if (mainFields) {
+    let values = [];
+    for (let value of mainFields) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid main field: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--main-fields=${values.join(",")}`);
+  }
+  if (conditions) {
+    let values = [];
+    for (let value of conditions) {
+      value += "";
+      if (value.indexOf(",") >= 0)
+        throw new Error(`Invalid condition: ${value}`);
+      values.push(value);
+    }
+    flags.push(`--conditions=${values.join(",")}`);
+  }
+  if (external)
+    for (let name of external)
+      flags.push(`--external:${name}`);
+  if (banner) {
+    for (let type in banner) {
+      if (type.indexOf("=") >= 0)
+        throw new Error(`Invalid banner file type: ${type}`);
+      flags.push(`--banner:${type}=${banner[type]}`);
+    }
+  }
+  if (footer) {
+    for (let type in footer) {
+      if (type.indexOf("=") >= 0)
+        throw new Error(`Invalid footer file type: ${type}`);
+      flags.push(`--footer:${type}=${footer[type]}`);
+    }
+  }
+  if (inject)
+    for (let path3 of inject)
+      flags.push(`--inject:${path3}`);
+  if (loader) {
+    for (let ext in loader) {
+      if (ext.indexOf("=") >= 0)
+        throw new Error(`Invalid loader extension: ${ext}`);
+      flags.push(`--loader:${ext}=${loader[ext]}`);
+    }
+  }
+  if (outExtension) {
+    for (let ext in outExtension) {
+      if (ext.indexOf("=") >= 0)
+        throw new Error(`Invalid out extension: ${ext}`);
+      flags.push(`--out-extension:${ext}=${outExtension[ext]}`);
+    }
+  }
+  if (entryPoints) {
+    if (Array.isArray(entryPoints)) {
+      for (let entryPoint of entryPoints) {
+        entries.push(["", entryPoint + ""]);
+      }
+    } else {
+      for (let [key, value] of Object.entries(entryPoints)) {
+        entries.push([key + "", value + ""]);
+      }
+    }
+  }
+  if (stdin) {
+    let stdinKeys = Object.create(null);
+    let contents = getFlag(stdin, stdinKeys, "contents", mustBeString);
+    let resolveDir = getFlag(stdin, stdinKeys, "resolveDir", mustBeString);
+    let sourcefile = getFlag(stdin, stdinKeys, "sourcefile", mustBeString);
+    let loader2 = getFlag(stdin, stdinKeys, "loader", mustBeString);
+    checkForInvalidFlags(stdin, stdinKeys, 'in "stdin" object');
+    if (sourcefile)
+      flags.push(`--sourcefile=${sourcefile}`);
+    if (loader2)
+      flags.push(`--loader=${loader2}`);
+    if (resolveDir)
+      stdinResolveDir = resolveDir + "";
+    stdinContents = contents ? contents + "" : "";
+  }
+  let nodePaths = [];
+  if (nodePathsInput) {
+    for (let value of nodePathsInput) {
+      value += "";
+      nodePaths.push(value);
+    }
+  }
+  return {
+    entries,
+    flags,
+    write,
+    stdinContents,
+    stdinResolveDir,
+    absWorkingDir,
+    incremental,
+    nodePaths,
+    watch: watchMode
+  };
+}
+function flagsForTransformOptions(callName, options, isTTY2, logLevelDefault) {
+  let flags = [];
+  let keys = Object.create(null);
+  pushLogFlags(flags, options, keys, isTTY2, logLevelDefault);
+  pushCommonFlags(flags, options, keys);
+  let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
+  let tsconfigRaw = getFlag(options, keys, "tsconfigRaw", mustBeStringOrObject);
+  let sourcefile = getFlag(options, keys, "sourcefile", mustBeString);
+  let loader = getFlag(options, keys, "loader", mustBeString);
+  let banner = getFlag(options, keys, "banner", mustBeString);
+  let footer = getFlag(options, keys, "footer", mustBeString);
+  checkForInvalidFlags(options, keys, `in ${callName}() call`);
+  if (sourcemap)
+    flags.push(`--sourcemap=${sourcemap === true ? "external" : sourcemap}`);
+  if (tsconfigRaw)
+    flags.push(`--tsconfig-raw=${typeof tsconfigRaw === "string" ? tsconfigRaw : JSON.stringify(tsconfigRaw)}`);
+  if (sourcefile)
+    flags.push(`--sourcefile=${sourcefile}`);
+  if (loader)
+    flags.push(`--loader=${loader}`);
+  if (banner)
+    flags.push(`--banner=${banner}`);
+  if (footer)
+    flags.push(`--footer=${footer}`);
+  return flags;
+}
+function createChannel(streamIn) {
+  let responseCallbacks = new Map();
+  let pluginCallbacks = new Map();
+  let watchCallbacks = new Map();
+  let serveCallbacks = new Map();
+  let nextServeID = 0;
+  let isClosed = false;
+  let nextRequestID = 0;
+  let nextBuildKey = 0;
+  let stdout = new Uint8Array(16 * 1024);
+  let stdoutUsed = 0;
+  let readFromStdout = (chunk) => {
+    let limit = stdoutUsed + chunk.length;
+    if (limit > stdout.length) {
+      let swap = new Uint8Array(limit * 2);
+      swap.set(stdout);
+      stdout = swap;
+    }
+    stdout.set(chunk, stdoutUsed);
+    stdoutUsed += chunk.length;
+    let offset = 0;
+    while (offset + 4 <= stdoutUsed) {
+      let length = readUInt32LE(stdout, offset);
+      if (offset + 4 + length > stdoutUsed) {
+        break;
+      }
+      offset += 4;
+      handleIncomingPacket(stdout.subarray(offset, offset + length));
+      offset += length;
+    }
+    if (offset > 0) {
+      stdout.copyWithin(0, offset, stdoutUsed);
+      stdoutUsed -= offset;
+    }
+  };
+  let afterClose = () => {
+    isClosed = true;
+    for (let callback of responseCallbacks.values()) {
+      callback("The service was stopped", null);
+    }
+    responseCallbacks.clear();
+    for (let callbacks of serveCallbacks.values()) {
+      callbacks.onWait("The service was stopped");
+    }
+    serveCallbacks.clear();
+    for (let callback of watchCallbacks.values()) {
+      try {
+        callback(new Error("The service was stopped"), null);
+      } catch (e) {
+        console.error(e);
+      }
+    }
+    watchCallbacks.clear();
+  };
+  let sendRequest = (refs, value, callback) => {
+    if (isClosed)
+      return callback("The service is no longer running", null);
+    let id = nextRequestID++;
+    responseCallbacks.set(id, (error, response) => {
+      try {
+        callback(error, response);
+      } finally {
+        if (refs)
+          refs.unref();
+      }
+    });
+    if (refs)
+      refs.ref();
+    streamIn.writeToStdin(encodePacket({ id, isRequest: true, value }));
+  };
+  let sendResponse = (id, value) => {
+    if (isClosed)
+      throw new Error("The service is no longer running");
+    streamIn.writeToStdin(encodePacket({ id, isRequest: false, value }));
+  };
+  let handleRequest = async (id, request) => {
+    try {
+      switch (request.command) {
+        case "ping": {
+          sendResponse(id, {});
+          break;
+        }
+        case "start": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, await callback(request));
+          break;
+        }
+        case "resolve": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, await callback(request));
+          break;
+        }
+        case "load": {
+          let callback = pluginCallbacks.get(request.key);
+          if (!callback)
+            sendResponse(id, {});
+          else
+            sendResponse(id, await callback(request));
+          break;
+        }
+        case "serve-request": {
+          let callbacks = serveCallbacks.get(request.serveID);
+          if (callbacks && callbacks.onRequest)
+            callbacks.onRequest(request.args);
+          sendResponse(id, {});
+          break;
+        }
+        case "serve-wait": {
+          let callbacks = serveCallbacks.get(request.serveID);
+          if (callbacks)
+            callbacks.onWait(request.error);
+          sendResponse(id, {});
+          break;
+        }
+        case "watch-rebuild": {
+          let callback = watchCallbacks.get(request.watchID);
+          try {
+            if (callback)
+              callback(null, request.args);
+          } catch (err) {
+            console.error(err);
+          }
+          sendResponse(id, {});
+          break;
+        }
+        default:
+          throw new Error(`Invalid command: ` + request.command);
+      }
+    } catch (e) {
+      sendResponse(id, { errors: [extractErrorMessageV8(e, streamIn, null, void 0, "")] });
+    }
+  };
+  let isFirstPacket = true;
+  let handleIncomingPacket = (bytes) => {
+    if (isFirstPacket) {
+      isFirstPacket = false;
+      let binaryVersion = String.fromCharCode(...bytes);
+      if (binaryVersion !== "0.13.8") {
+        throw new Error(`Cannot start service: Host version "${"0.13.8"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
+      }
+      return;
+    }
+    let packet = decodePacket(bytes);
+    if (packet.isRequest) {
+      handleRequest(packet.id, packet.value);
+    } else {
+      let callback = responseCallbacks.get(packet.id);
+      responseCallbacks.delete(packet.id);
+      if (packet.value.error)
+        callback(packet.value.error, {});
+      else
+        callback(null, packet.value);
+    }
+  };
+  let handlePlugins = async (initialOptions, plugins, buildKey, stash) => {
+    let onStartCallbacks = [];
+    let onEndCallbacks = [];
+    let onResolveCallbacks = {};
+    let onLoadCallbacks = {};
+    let nextCallbackID = 0;
+    let i = 0;
+    let requestPlugins = [];
+    plugins = [...plugins];
+    for (let item of plugins) {
+      let keys = {};
+      if (typeof item !== "object")
+        throw new Error(`Plugin at index ${i} must be an object`);
+      let name = getFlag(item, keys, "name", mustBeString);
+      if (typeof name !== "string" || name === "")
+        throw new Error(`Plugin at index ${i} is missing a name`);
+      try {
+        let setup = getFlag(item, keys, "setup", mustBeFunction);
+        if (typeof setup !== "function")
+          throw new Error(`Plugin is missing a setup function`);
+        checkForInvalidFlags(item, keys, `on plugin ${JSON.stringify(name)}`);
+        let plugin = {
+          name,
+          onResolve: [],
+          onLoad: []
+        };
+        i++;
+        let promise = setup({
+          initialOptions,
+          onStart(callback2) {
+            let registeredText = `This error came from the "onStart" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onStart");
+            onStartCallbacks.push({ name, callback: callback2, note: registeredNote });
+          },
+          onEnd(callback2) {
+            let registeredText = `This error came from the "onEnd" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onEnd");
+            onEndCallbacks.push({ name, callback: callback2, note: registeredNote });
+          },
+          onResolve(options, callback2) {
+            let registeredText = `This error came from the "onResolve" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onResolve");
+            let keys2 = {};
+            let filter = getFlag(options, keys2, "filter", mustBeRegExp);
+            let namespace = getFlag(options, keys2, "namespace", mustBeString);
+            checkForInvalidFlags(options, keys2, `in onResolve() call for plugin ${JSON.stringify(name)}`);
+            if (filter == null)
+              throw new Error(`onResolve() call is missing a filter`);
+            let id = nextCallbackID++;
+            onResolveCallbacks[id] = { name, callback: callback2, note: registeredNote };
+            plugin.onResolve.push({ id, filter: filter.source, namespace: namespace || "" });
+          },
+          onLoad(options, callback2) {
+            let registeredText = `This error came from the "onLoad" callback registered here`;
+            let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onLoad");
+            let keys2 = {};
+            let filter = getFlag(options, keys2, "filter", mustBeRegExp);
+            let namespace = getFlag(options, keys2, "namespace", mustBeString);
+            checkForInvalidFlags(options, keys2, `in onLoad() call for plugin ${JSON.stringify(name)}`);
+            if (filter == null)
+              throw new Error(`onLoad() call is missing a filter`);
+            let id = nextCallbackID++;
+            onLoadCallbacks[id] = { name, callback: callback2, note: registeredNote };
+            plugin.onLoad.push({ id, filter: filter.source, namespace: namespace || "" });
+          }
+        });
+        if (promise)
+          await promise;
+        requestPlugins.push(plugin);
+      } catch (e) {
+        return { ok: false, error: e, pluginName: name };
+      }
+    }
+    const callback = async (request) => {
+      switch (request.command) {
+        case "start": {
+          let response = { errors: [], warnings: [] };
+          await Promise.all(onStartCallbacks.map(async ({ name, callback: callback2, note }) => {
+            try {
+              let result = await callback2();
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onStart() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onStart() callback in plugin ${JSON.stringify(name)}`);
+                if (errors != null)
+                  response.errors.push(...sanitizeMessages(errors, "errors", stash, name));
+                if (warnings != null)
+                  response.warnings.push(...sanitizeMessages(warnings, "warnings", stash, name));
+              }
+            } catch (e) {
+              response.errors.push(extractErrorMessageV8(e, streamIn, stash, note && note(), name));
+            }
+          }));
+          return response;
+        }
+        case "resolve": {
+          let response = {}, name = "", callback2, note;
+          for (let id of request.ids) {
+            try {
+              ({ name, callback: callback2, note } = onResolveCallbacks[id]);
+              let result = await callback2({
+                path: request.path,
+                importer: request.importer,
+                namespace: request.namespace,
+                resolveDir: request.resolveDir,
+                kind: request.kind,
+                pluginData: stash.load(request.pluginData)
+              });
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onResolve() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let pluginName = getFlag(result, keys, "pluginName", mustBeString);
+                let path3 = getFlag(result, keys, "path", mustBeString);
+                let namespace = getFlag(result, keys, "namespace", mustBeString);
+                let external = getFlag(result, keys, "external", mustBeBoolean);
+                let sideEffects = getFlag(result, keys, "sideEffects", mustBeBoolean);
+                let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
+                let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onResolve() callback in plugin ${JSON.stringify(name)}`);
+                response.id = id;
+                if (pluginName != null)
+                  response.pluginName = pluginName;
+                if (path3 != null)
+                  response.path = path3;
+                if (namespace != null)
+                  response.namespace = namespace;
+                if (external != null)
+                  response.external = external;
+                if (sideEffects != null)
+                  response.sideEffects = sideEffects;
+                if (pluginData != null)
+                  response.pluginData = stash.store(pluginData);
+                if (errors != null)
+                  response.errors = sanitizeMessages(errors, "errors", stash, name);
+                if (warnings != null)
+                  response.warnings = sanitizeMessages(warnings, "warnings", stash, name);
+                if (watchFiles != null)
+                  response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
+                if (watchDirs != null)
+                  response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
+                break;
+              }
+            } catch (e) {
+              return { id, errors: [extractErrorMessageV8(e, streamIn, stash, note && note(), name)] };
+            }
+          }
+          return response;
+        }
+        case "load": {
+          let response = {}, name = "", callback2, note;
+          for (let id of request.ids) {
+            try {
+              ({ name, callback: callback2, note } = onLoadCallbacks[id]);
+              let result = await callback2({
+                path: request.path,
+                namespace: request.namespace,
+                pluginData: stash.load(request.pluginData)
+              });
+              if (result != null) {
+                if (typeof result !== "object")
+                  throw new Error(`Expected onLoad() callback in plugin ${JSON.stringify(name)} to return an object`);
+                let keys = {};
+                let pluginName = getFlag(result, keys, "pluginName", mustBeString);
+                let contents = getFlag(result, keys, "contents", mustBeStringOrUint8Array);
+                let resolveDir = getFlag(result, keys, "resolveDir", mustBeString);
+                let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
+                let loader = getFlag(result, keys, "loader", mustBeString);
+                let errors = getFlag(result, keys, "errors", mustBeArray);
+                let warnings = getFlag(result, keys, "warnings", mustBeArray);
+                let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
+                let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
+                checkForInvalidFlags(result, keys, `from onLoad() callback in plugin ${JSON.stringify(name)}`);
+                response.id = id;
+                if (pluginName != null)
+                  response.pluginName = pluginName;
+                if (contents instanceof Uint8Array)
+                  response.contents = contents;
+                else if (contents != null)
+                  response.contents = encodeUTF8(contents);
+                if (resolveDir != null)
+                  response.resolveDir = resolveDir;
+                if (pluginData != null)
+                  response.pluginData = stash.store(pluginData);
+                if (loader != null)
+                  response.loader = loader;
+                if (errors != null)
+                  response.errors = sanitizeMessages(errors, "errors", stash, name);
+                if (warnings != null)
+                  response.warnings = sanitizeMessages(warnings, "warnings", stash, name);
+                if (watchFiles != null)
+                  response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
+                if (watchDirs != null)
+                  response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
+                break;
+              }
+            } catch (e) {
+              return { id, errors: [extractErrorMessageV8(e, streamIn, stash, note && note(), name)] };
+            }
+          }
+          return response;
+        }
+        default:
+          throw new Error(`Invalid command: ` + request.command);
+      }
+    };
+    let runOnEndCallbacks = (result, logPluginError, done) => done();
+    if (onEndCallbacks.length > 0) {
+      runOnEndCallbacks = (result, logPluginError, done) => {
+        (async () => {
+          for (const { name, callback: callback2, note } of onEndCallbacks) {
+            try {
+              await callback2(result);
+            } catch (e) {
+              result.errors.push(await new Promise((resolve) => logPluginError(e, name, note && note(), resolve)));
+            }
+          }
+        })().then(done);
+      };
+    }
+    let refCount = 0;
+    return {
+      ok: true,
+      requestPlugins,
+      runOnEndCallbacks,
+      pluginRefs: {
+        ref() {
+          if (++refCount === 1)
+            pluginCallbacks.set(buildKey, callback);
+        },
+        unref() {
+          if (--refCount === 0)
+            pluginCallbacks.delete(buildKey);
+        }
+      }
+    };
+  };
+  let buildServeData = (refs, options, request) => {
+    let keys = {};
+    let port = getFlag(options, keys, "port", mustBeInteger);
+    let host = getFlag(options, keys, "host", mustBeString);
+    let servedir = getFlag(options, keys, "servedir", mustBeString);
+    let onRequest = getFlag(options, keys, "onRequest", mustBeFunction);
+    let serveID = nextServeID++;
+    let onWait;
+    let wait = new Promise((resolve, reject) => {
+      onWait = (error) => {
+        serveCallbacks.delete(serveID);
+        if (error !== null)
+          reject(new Error(error));
+        else
+          resolve();
+      };
+    });
+    request.serve = { serveID };
+    checkForInvalidFlags(options, keys, `in serve() call`);
+    if (port !== void 0)
+      request.serve.port = port;
+    if (host !== void 0)
+      request.serve.host = host;
+    if (servedir !== void 0)
+      request.serve.servedir = servedir;
+    serveCallbacks.set(serveID, {
+      onRequest,
+      onWait
+    });
+    return {
+      wait,
+      stop() {
+        sendRequest(refs, { command: "serve-stop", serveID }, () => {
+        });
+      }
+    };
+  };
+  const buildLogLevelDefault = "warning";
+  const transformLogLevelDefault = "silent";
+  let buildOrServe = (args) => {
+    let key = nextBuildKey++;
+    const details = createObjectStash();
+    let plugins;
+    let { refs, options, isTTY: isTTY2, callback } = args;
+    if (typeof options === "object") {
+      let value = options.plugins;
+      if (value !== void 0) {
+        if (!Array.isArray(value))
+          throw new Error(`"plugins" must be an array`);
+        plugins = value;
+      }
+    }
+    let logPluginError = (e, pluginName, note, done) => {
+      let flags = [];
+      try {
+        pushLogFlags(flags, options, {}, isTTY2, buildLogLevelDefault);
+      } catch (e2) {
+      }
+      const message = extractErrorMessageV8(e, streamIn, details, note, pluginName);
+      sendRequest(refs, { command: "error", flags, error: message }, () => {
+        message.detail = details.load(message.detail);
+        done(message);
+      });
+    };
+    let handleError = (e, pluginName) => {
+      logPluginError(e, pluginName, void 0, (error) => {
+        callback(failureErrorWithLog("Build failed", [error], []), null);
+      });
+    };
+    if (plugins && plugins.length > 0) {
+      if (streamIn.isSync)
+        return handleError(new Error("Cannot use plugins in synchronous API calls"), "");
+      handlePlugins(options, plugins, key, details).then((result) => {
+        if (!result.ok) {
+          handleError(result.error, result.pluginName);
+        } else {
+          try {
+            buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
+              key,
+              details,
+              logPluginError,
+              requestPlugins: result.requestPlugins,
+              runOnEndCallbacks: result.runOnEndCallbacks,
+              pluginRefs: result.pluginRefs
+            }));
+          } catch (e) {
+            handleError(e, "");
+          }
+        }
+      }, (e) => handleError(e, ""));
+    } else {
+      try {
+        buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
+          key,
+          details,
+          logPluginError,
+          requestPlugins: null,
+          runOnEndCallbacks: (result, logPluginError2, done) => done(),
+          pluginRefs: null
+        }));
+      } catch (e) {
+        handleError(e, "");
+      }
+    }
+  };
+  let buildOrServeContinue = ({
+    callName,
+    refs: callerRefs,
+    serveOptions,
+    options,
+    isTTY: isTTY2,
+    defaultWD: defaultWD2,
+    callback,
+    key,
+    details,
+    logPluginError,
+    requestPlugins,
+    runOnEndCallbacks,
+    pluginRefs
+  }) => {
+    const refs = {
+      ref() {
+        if (pluginRefs)
+          pluginRefs.ref();
+        if (callerRefs)
+          callerRefs.ref();
+      },
+      unref() {
+        if (pluginRefs)
+          pluginRefs.unref();
+        if (callerRefs)
+          callerRefs.unref();
+      }
+    };
+    let writeDefault = !streamIn.isBrowser;
+    let {
+      entries,
+      flags,
+      write,
+      stdinContents,
+      stdinResolveDir,
+      absWorkingDir,
+      incremental,
+      nodePaths,
+      watch
+    } = flagsForBuildOptions(callName, options, isTTY2, buildLogLevelDefault, writeDefault);
+    let request = {
+      command: "build",
+      key,
+      entries,
+      flags,
+      write,
+      stdinContents,
+      stdinResolveDir,
+      absWorkingDir: absWorkingDir || defaultWD2,
+      incremental,
+      nodePaths
+    };
+    if (requestPlugins)
+      request.plugins = requestPlugins;
+    let serve2 = serveOptions && buildServeData(refs, serveOptions, request);
+    let rebuild;
+    let stop;
+    let copyResponseToResult = (response, result) => {
+      if (response.outputFiles)
+        result.outputFiles = response.outputFiles.map(convertOutputFiles);
+      if (response.metafile)
+        result.metafile = JSON.parse(response.metafile);
+      if (response.writeToStdout !== void 0)
+        console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, ""));
+    };
+    let buildResponseToResult = (response, callback2) => {
+      let result = {
+        errors: replaceDetailsInMessages(response.errors, details),
+        warnings: replaceDetailsInMessages(response.warnings, details)
+      };
+      copyResponseToResult(response, result);
+      runOnEndCallbacks(result, logPluginError, () => {
+        if (result.errors.length > 0) {
+          return callback2(failureErrorWithLog("Build failed", result.errors, result.warnings), null);
+        }
+        if (response.rebuildID !== void 0) {
+          if (!rebuild) {
+            let isDisposed = false;
+            rebuild = () => new Promise((resolve, reject) => {
+              if (isDisposed || isClosed)
+                throw new Error("Cannot rebuild");
+              sendRequest(refs, { command: "rebuild", rebuildID: response.rebuildID }, (error2, response2) => {
+                if (error2) {
+                  const message = { pluginName: "", text: error2, location: null, notes: [], detail: void 0 };
+                  return callback2(failureErrorWithLog("Build failed", [message], []), null);
+                }
+                buildResponseToResult(response2, (error3, result3) => {
+                  if (error3)
+                    reject(error3);
+                  else
+                    resolve(result3);
+                });
+              });
+            });
+            refs.ref();
+            rebuild.dispose = () => {
+              if (isDisposed)
+                return;
+              isDisposed = true;
+              sendRequest(refs, { command: "rebuild-dispose", rebuildID: response.rebuildID }, () => {
+              });
+              refs.unref();
+            };
+          }
+          result.rebuild = rebuild;
+        }
+        if (response.watchID !== void 0) {
+          if (!stop) {
+            let isStopped = false;
+            refs.ref();
+            stop = () => {
+              if (isStopped)
+                return;
+              isStopped = true;
+              watchCallbacks.delete(response.watchID);
+              sendRequest(refs, { command: "watch-stop", watchID: response.watchID }, () => {
+              });
+              refs.unref();
+            };
+            if (watch) {
+              watchCallbacks.set(response.watchID, (serviceStopError, watchResponse) => {
+                if (serviceStopError) {
+                  if (watch.onRebuild)
+                    watch.onRebuild(serviceStopError, null);
+                  return;
+                }
+                let result2 = {
+                  errors: replaceDetailsInMessages(watchResponse.errors, details),
+                  warnings: replaceDetailsInMessages(watchResponse.warnings, details)
+                };
+                copyResponseToResult(watchResponse, result2);
+                runOnEndCallbacks(result2, logPluginError, () => {
+                  if (result2.errors.length > 0) {
+                    if (watch.onRebuild)
+                      watch.onRebuild(failureErrorWithLog("Build failed", result2.errors, result2.warnings), null);
+                    return;
+                  }
+                  if (watchResponse.rebuildID !== void 0)
+                    result2.rebuild = rebuild;
+                  result2.stop = stop;
+                  if (watch.onRebuild)
+                    watch.onRebuild(null, result2);
+                });
+              });
+            }
+          }
+          result.stop = stop;
+        }
+        callback2(null, result);
+      });
+    };
+    if (write && streamIn.isBrowser)
+      throw new Error(`Cannot enable "write" in the browser`);
+    if (incremental && streamIn.isSync)
+      throw new Error(`Cannot use "incremental" with a synchronous build`);
+    if (watch && streamIn.isSync)
+      throw new Error(`Cannot use "watch" with a synchronous build`);
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      if (serve2) {
+        let serveResponse = response;
+        let isStopped = false;
+        refs.ref();
+        let result = {
+          port: serveResponse.port,
+          host: serveResponse.host,
+          wait: serve2.wait,
+          stop() {
+            if (isStopped)
+              return;
+            isStopped = true;
+            serve2.stop();
+            refs.unref();
+          }
+        };
+        refs.ref();
+        serve2.wait.then(refs.unref, refs.unref);
+        return callback(null, result);
+      }
+      return buildResponseToResult(response, callback);
+    });
+  };
+  let transform2 = ({ callName, refs, input, options, isTTY: isTTY2, fs: fs3, callback }) => {
+    const details = createObjectStash();
+    let start = (inputPath) => {
+      try {
+        if (typeof input !== "string")
+          throw new Error('The input to "transform" must be a string');
+        let flags = flagsForTransformOptions(callName, options, isTTY2, transformLogLevelDefault);
+        let request = {
+          command: "transform",
+          flags,
+          inputFS: inputPath !== null,
+          input: inputPath !== null ? inputPath : input
+        };
+        sendRequest(refs, request, (error, response) => {
+          if (error)
+            return callback(new Error(error), null);
+          let errors = replaceDetailsInMessages(response.errors, details);
+          let warnings = replaceDetailsInMessages(response.warnings, details);
+          let outstanding = 1;
+          let next = () => --outstanding === 0 && callback(null, { warnings, code: response.code, map: response.map });
+          if (errors.length > 0)
+            return callback(failureErrorWithLog("Transform failed", errors, warnings), null);
+          if (response.codeFS) {
+            outstanding++;
+            fs3.readFile(response.code, (err, contents) => {
+              if (err !== null) {
+                callback(err, null);
+              } else {
+                response.code = contents;
+                next();
+              }
+            });
+          }
+          if (response.mapFS) {
+            outstanding++;
+            fs3.readFile(response.map, (err, contents) => {
+              if (err !== null) {
+                callback(err, null);
+              } else {
+                response.map = contents;
+                next();
+              }
+            });
+          }
+          next();
+        });
+      } catch (e) {
+        let flags = [];
+        try {
+          pushLogFlags(flags, options, {}, isTTY2, transformLogLevelDefault);
+        } catch (e2) {
+        }
+        const error = extractErrorMessageV8(e, streamIn, details, void 0, "");
+        sendRequest(refs, { command: "error", flags, error }, () => {
+          error.detail = details.load(error.detail);
+          callback(failureErrorWithLog("Transform failed", [error], []), null);
+        });
+      }
+    };
+    if (typeof input === "string" && input.length > 1024 * 1024) {
+      let next = start;
+      start = () => fs3.writeFile(input, next);
+    }
+    start(null);
+  };
+  let formatMessages2 = ({ callName, refs, messages, options, callback }) => {
+    let result = sanitizeMessages(messages, "messages", null, "");
+    if (!options)
+      throw new Error(`Missing second argument in ${callName}() call`);
+    let keys = {};
+    let kind = getFlag(options, keys, "kind", mustBeString);
+    let color = getFlag(options, keys, "color", mustBeBoolean);
+    let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
+    checkForInvalidFlags(options, keys, `in ${callName}() call`);
+    if (kind === void 0)
+      throw new Error(`Missing "kind" in ${callName}() call`);
+    if (kind !== "error" && kind !== "warning")
+      throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
+    let request = {
+      command: "format-msgs",
+      messages: result,
+      isWarning: kind === "warning"
+    };
+    if (color !== void 0)
+      request.color = color;
+    if (terminalWidth !== void 0)
+      request.terminalWidth = terminalWidth;
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      callback(null, response.messages);
+    });
+  };
+  let analyzeMetafile2 = ({ callName, refs, metafile, options, callback }) => {
+    if (options === void 0)
+      options = {};
+    let keys = {};
+    let color = getFlag(options, keys, "color", mustBeBoolean);
+    let verbose = getFlag(options, keys, "verbose", mustBeBoolean);
+    checkForInvalidFlags(options, keys, `in ${callName}() call`);
+    let request = {
+      command: "analyze-metafile",
+      metafile
+    };
+    if (color !== void 0)
+      request.color = color;
+    if (verbose !== void 0)
+      request.verbose = verbose;
+    sendRequest(refs, request, (error, response) => {
+      if (error)
+        return callback(new Error(error), null);
+      callback(null, response.result);
+    });
+  };
+  return {
+    readFromStdout,
+    afterClose,
+    service: {
+      buildOrServe,
+      transform: transform2,
+      formatMessages: formatMessages2,
+      analyzeMetafile: analyzeMetafile2
+    }
+  };
+}
+function createObjectStash() {
+  const map = new Map();
+  let nextID = 0;
+  return {
+    load(id) {
+      return map.get(id);
+    },
+    store(value) {
+      if (value === void 0)
+        return -1;
+      const id = nextID++;
+      map.set(id, value);
+      return id;
+    }
+  };
+}
+function extractCallerV8(e, streamIn, ident) {
+  let note;
+  let tried = false;
+  return () => {
+    if (tried)
+      return note;
+    tried = true;
+    try {
+      let lines = (e.stack + "").split("\n");
+      lines.splice(1, 1);
+      let location = parseStackLinesV8(streamIn, lines, ident);
+      if (location) {
+        note = { text: e.message, location };
+        return note;
+      }
+    } catch (e2) {
+    }
+  };
+}
+function extractErrorMessageV8(e, streamIn, stash, note, pluginName) {
+  let text = "Internal error";
+  let location = null;
+  try {
+    text = (e && e.message || e) + "";
+  } catch (e2) {
+  }
+  try {
+    location = parseStackLinesV8(streamIn, (e.stack + "").split("\n"), "");
+  } catch (e2) {
+  }
+  return { pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(e) : -1 };
+}
+function parseStackLinesV8(streamIn, lines, ident) {
+  let at = "    at ";
+  if (streamIn.readFileSync && !lines[0].startsWith(at) && lines[1].startsWith(at)) {
+    for (let i = 1; i < lines.length; i++) {
+      let line = lines[i];
+      if (!line.startsWith(at))
+        continue;
+      line = line.slice(at.length);
+      while (true) {
+        let match = /^(?:new |async )?\S+ \((.*)\)$/.exec(line);
+        if (match) {
+          line = match[1];
+          continue;
+        }
+        match = /^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(line);
+        if (match) {
+          line = match[1];
+          continue;
+        }
+        match = /^(\S+):(\d+):(\d+)$/.exec(line);
+        if (match) {
+          let contents;
+          try {
+            contents = streamIn.readFileSync(match[1], "utf8");
+          } catch (e) {
+            break;
+          }
+          let lineText = contents.split(/\r\n|\r|\n|\u2028|\u2029/)[+match[2] - 1] || "";
+          let column = +match[3] - 1;
+          let length = lineText.slice(column, column + ident.length) === ident ? ident.length : 0;
+          return {
+            file: match[1],
+            namespace: "file",
+            line: +match[2],
+            column: encodeUTF8(lineText.slice(0, column)).length,
+            length: encodeUTF8(lineText.slice(column, column + length)).length,
+            lineText: lineText + "\n" + lines.slice(1).join("\n"),
+            suggestion: ""
+          };
+        }
+        break;
+      }
+    }
+  }
+  return null;
+}
+function failureErrorWithLog(text, errors, warnings) {
+  let limit = 5;
+  let summary = errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((e, i) => {
+    if (i === limit)
+      return "\n...";
+    if (!e.location)
+      return `
+error: ${e.text}`;
+    let { file, line, column } = e.location;
+    let pluginText = e.pluginName ? `[plugin: ${e.pluginName}] ` : "";
+    return `
+${file}:${line}:${column}: error: ${pluginText}${e.text}`;
+  }).join("");
+  let error = new Error(`${text}${summary}`);
+  error.errors = errors;
+  error.warnings = warnings;
+  return error;
+}
+function replaceDetailsInMessages(messages, stash) {
+  for (const message of messages) {
+    message.detail = stash.load(message.detail);
+  }
+  return messages;
+}
+function sanitizeLocation(location, where) {
+  if (location == null)
+    return null;
+  let keys = {};
+  let file = getFlag(location, keys, "file", mustBeString);
+  let namespace = getFlag(location, keys, "namespace", mustBeString);
+  let line = getFlag(location, keys, "line", mustBeInteger);
+  let column = getFlag(location, keys, "column", mustBeInteger);
+  let length = getFlag(location, keys, "length", mustBeInteger);
+  let lineText = getFlag(location, keys, "lineText", mustBeString);
+  let suggestion = getFlag(location, keys, "suggestion", mustBeString);
+  checkForInvalidFlags(location, keys, where);
+  return {
+    file: file || "",
+    namespace: namespace || "",
+    line: line || 0,
+    column: column || 0,
+    length: length || 0,
+    lineText: lineText || "",
+    suggestion: suggestion || ""
+  };
+}
+function sanitizeMessages(messages, property, stash, fallbackPluginName) {
+  let messagesClone = [];
+  let index = 0;
+  for (const message of messages) {
+    let keys = {};
+    let pluginName = getFlag(message, keys, "pluginName", mustBeString);
+    let text = getFlag(message, keys, "text", mustBeString);
+    let location = getFlag(message, keys, "location", mustBeObjectOrNull);
+    let notes = getFlag(message, keys, "notes", mustBeArray);
+    let detail = getFlag(message, keys, "detail", canBeAnything);
+    let where = `in element ${index} of "${property}"`;
+    checkForInvalidFlags(message, keys, where);
+    let notesClone = [];
+    if (notes) {
+      for (const note of notes) {
+        let noteKeys = {};
+        let noteText = getFlag(note, noteKeys, "text", mustBeString);
+        let noteLocation = getFlag(note, noteKeys, "location", mustBeObjectOrNull);
+        checkForInvalidFlags(note, noteKeys, where);
+        notesClone.push({
+          text: noteText || "",
+          location: sanitizeLocation(noteLocation, where)
+        });
+      }
+    }
+    messagesClone.push({
+      pluginName: pluginName || fallbackPluginName,
+      text: text || "",
+      location: sanitizeLocation(location, where),
+      notes: notesClone,
+      detail: stash ? stash.store(detail) : -1
+    });
+    index++;
+  }
+  return messagesClone;
+}
+function sanitizeStringArray(values, property) {
+  const result = [];
+  for (const value of values) {
+    if (typeof value !== "string")
+      throw new Error(`${JSON.stringify(property)} must be an array of strings`);
+    result.push(value);
+  }
+  return result;
+}
+function convertOutputFiles({ path: path3, contents }) {
+  let text = null;
+  return {
+    path: path3,
+    contents,
+    get text() {
+      if (text === null)
+        text = decodeUTF8(contents);
+      return text;
+    }
+  };
+}
+
+// lib/npm/node-platform.ts
+var fs = require("fs");
+var os = require("os");
+var path = require("path");
+var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
+var knownWindowsPackages = {
+  "win32 arm64 LE": "esbuild-windows-arm64",
+  "win32 ia32 LE": "esbuild-windows-32",
+  "win32 x64 LE": "esbuild-windows-64"
+};
+var knownUnixlikePackages = {
+  "android arm64 LE": "esbuild-android-arm64",
+  "darwin arm64 LE": "esbuild-darwin-arm64",
+  "darwin x64 LE": "esbuild-darwin-64",
+  "freebsd arm64 LE": "esbuild-freebsd-arm64",
+  "freebsd x64 LE": "esbuild-freebsd-64",
+  "linux arm LE": "esbuild-linux-arm",
+  "linux arm64 LE": "esbuild-linux-arm64",
+  "linux ia32 LE": "esbuild-linux-32",
+  "linux mips64el LE": "esbuild-linux-mips64le",
+  "linux ppc64 LE": "esbuild-linux-ppc64le",
+  "linux x64 LE": "esbuild-linux-64",
+  "netbsd x64 LE": "esbuild-netbsd-64",
+  "openbsd x64 LE": "esbuild-openbsd-64",
+  "sunos x64 LE": "esbuild-sunos-64"
+};
+function pkgAndSubpathForCurrentPlatform() {
+  let pkg;
+  let subpath;
+  let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
+  if (platformKey in knownWindowsPackages) {
+    pkg = knownWindowsPackages[platformKey];
+    subpath = "esbuild.exe";
+  } else if (platformKey in knownUnixlikePackages) {
+    pkg = knownUnixlikePackages[platformKey];
+    subpath = "bin/esbuild";
+  } else {
+    throw new Error(`Unsupported platform: ${platformKey}`);
+  }
+  return { pkg, subpath };
+}
+function downloadedBinPath(pkg, subpath) {
+  const esbuildLibDir = path.dirname(require.resolve("esbuild"));
+  return path.join(esbuildLibDir, `downloaded-${pkg}-${path.basename(subpath)}`);
+}
+function generateBinPath() {
+  if (ESBUILD_BINARY_PATH) {
+    return ESBUILD_BINARY_PATH;
+  }
+  const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
+  let binPath;
+  try {
+    binPath = require.resolve(`${pkg}/${subpath}`);
+  } catch (e) {
+    binPath = downloadedBinPath(pkg, subpath);
+    if (!fs.existsSync(binPath)) {
+      try {
+        require.resolve(pkg);
+      } catch (e2) {
+        throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
+
+If you are installing esbuild with npm, make sure that you don't specify the
+"--no-optional" flag. The "optionalDependencies" package.json feature is used
+by esbuild to install the correct binary executable for your current platform.`);
+      }
+      throw e;
+    }
+  }
+  let isYarnPnP = false;
+  try {
+    require("pnpapi");
+    isYarnPnP = true;
+  } catch (e) {
+  }
+  if (isYarnPnP) {
+    const esbuildLibDir = path.dirname(require.resolve("esbuild"));
+    const binTargetPath = path.join(esbuildLibDir, `pnpapi-${pkg}-${path.basename(subpath)}`);
+    if (!fs.existsSync(binTargetPath)) {
+      fs.copyFileSync(binPath, binTargetPath);
+      fs.chmodSync(binTargetPath, 493);
+    }
+    return binTargetPath;
+  }
+  return binPath;
+}
+
+// lib/npm/node.ts
+var child_process = require("child_process");
+var crypto = require("crypto");
+var path2 = require("path");
+var fs2 = require("fs");
+var os2 = require("os");
+var tty = require("tty");
+var worker_threads;
+if (process.env.ESBUILD_WORKER_THREADS !== "0") {
+  try {
+    worker_threads = require("worker_threads");
+  } catch (e) {
+  }
+  let [major, minor] = process.versions.node.split(".");
+  if (+major < 12 || +major === 12 && +minor < 17 || +major === 13 && +minor < 13) {
+    worker_threads = void 0;
+  }
+}
+var _a;
+var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.13.8";
+var esbuildCommandAndArgs = () => {
+  if ((!ESBUILD_BINARY_PATH || true) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
+    throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
+
+More information: The file containing the code for esbuild's JavaScript API (${__filename}) does not appear to be inside the esbuild package on the file system, which usually means that the esbuild package was bundled into another file. This is problematic because the API needs to run a binary executable inside the esbuild package which is located using a relative path from the API code to the executable. If the esbuild package is bundled, the relative path will be incorrect and the executable won't be found.`);
+  }
+  if (true) {
+    return ["node", [path2.join(__dirname, "..", "bin", "esbuild")]];
+  }
+  return [generateBinPath(), []];
+};
+var isTTY = () => tty.isatty(2);
+var fsSync = {
+  readFile(tempFile, callback) {
+    try {
+      let contents = fs2.readFileSync(tempFile, "utf8");
+      try {
+        fs2.unlinkSync(tempFile);
+      } catch (e) {
+      }
+      callback(null, contents);
+    } catch (err) {
+      callback(err, null);
+    }
+  },
+  writeFile(contents, callback) {
+    try {
+      let tempFile = randomFileName();
+      fs2.writeFileSync(tempFile, contents);
+      callback(tempFile);
+    } catch (e) {
+      callback(null);
+    }
+  }
+};
+var fsAsync = {
+  readFile(tempFile, callback) {
+    try {
+      fs2.readFile(tempFile, "utf8", (err, contents) => {
+        try {
+          fs2.unlink(tempFile, () => callback(err, contents));
+        } catch (e) {
+          callback(err, contents);
+        }
+      });
+    } catch (err) {
+      callback(err, null);
+    }
+  },
+  writeFile(contents, callback) {
+    try {
+      let tempFile = randomFileName();
+      fs2.writeFile(tempFile, contents, (err) => err !== null ? callback(null) : callback(tempFile));
+    } catch (e) {
+      callback(null);
+    }
+  }
+};
+var version = "0.13.8";
+var build = (options) => ensureServiceIsRunning().build(options);
+var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
+var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
+var formatMessages = (messages, options) => ensureServiceIsRunning().formatMessages(messages, options);
+var analyzeMetafile = (messages, options) => ensureServiceIsRunning().analyzeMetafile(messages, options);
+var buildSync = (options) => {
+  if (worker_threads && !isInternalWorkerThread) {
+    if (!workerThreadService)
+      workerThreadService = startWorkerThreadService(worker_threads);
+    return workerThreadService.buildSync(options);
+  }
+  let result;
+  runServiceSync((service) => service.buildOrServe({
+    callName: "buildSync",
+    refs: null,
+    serveOptions: null,
+    options,
+    isTTY: isTTY(),
+    defaultWD,
+    callback: (err, res) => {
+      if (err)
+        throw err;
+      result = res;
+    }
+  }));
+  return result;
+};
+var transformSync = (input, options) => {
+  if (worker_threads && !isInternalWorkerThread) {
+    if (!workerThreadService)
+      workerThreadService = startWorkerThreadService(worker_threads);
+    return workerThreadService.transformSync(input, options);
+  }
+  let result;
+  runServiceSync((service) => service.transform({
+    callName: "transformSync",
+    refs: null,
+    input,
+    options: options || {},
+    isTTY: isTTY(),
+    fs: fsSync,
+    callback: (err, res) => {
+      if (err)
+        throw err;
+      result = res;
+    }
+  }));
+  return result;
+};
+var formatMessagesSync = (messages, options) => {
+  if (worker_threads && !isInternalWorkerThread) {
+    if (!workerThreadService)
+      workerThreadService = startWorkerThreadService(worker_threads);
+    return workerThreadService.formatMessagesSync(messages, options);
+  }
+  let result;
+  runServiceSync((service) => service.formatMessages({
+    callName: "formatMessagesSync",
+    refs: null,
+    messages,
+    options,
+    callback: (err, res) => {
+      if (err)
+        throw err;
+      result = res;
+    }
+  }));
+  return result;
+};
+var analyzeMetafileSync = (metafile, options) => {
+  if (worker_threads && !isInternalWorkerThread) {
+    if (!workerThreadService)
+      workerThreadService = startWorkerThreadService(worker_threads);
+    return workerThreadService.analyzeMetafileSync(metafile, options);
+  }
+  let result;
+  runServiceSync((service) => service.analyzeMetafile({
+    callName: "analyzeMetafileSync",
+    refs: null,
+    metafile: typeof metafile === "string" ? metafile : JSON.stringify(metafile),
+    options,
+    callback: (err, res) => {
+      if (err)
+        throw err;
+      result = res;
+    }
+  }));
+  return result;
+};
+var initializeWasCalled = false;
+var initialize = (options) => {
+  options = validateInitializeOptions(options || {});
+  if (options.wasmURL)
+    throw new Error(`The "wasmURL" option only works in the browser`);
+  if (options.worker)
+    throw new Error(`The "worker" option only works in the browser`);
+  if (initializeWasCalled)
+    throw new Error('Cannot call "initialize" more than once');
+  ensureServiceIsRunning();
+  initializeWasCalled = true;
+  return Promise.resolve();
+};
+var defaultWD = process.cwd();
+var longLivedService;
+var ensureServiceIsRunning = () => {
+  if (longLivedService)
+    return longLivedService;
+  let [command, args] = esbuildCommandAndArgs();
+  let child = child_process.spawn(command, args.concat(`--service=${"0.13.8"}`, "--ping"), {
+    windowsHide: true,
+    stdio: ["pipe", "pipe", "inherit"],
+    cwd: defaultWD
+  });
+  let { readFromStdout, afterClose, service } = createChannel({
+    writeToStdin(bytes) {
+      child.stdin.write(bytes);
+    },
+    readFileSync: fs2.readFileSync,
+    isSync: false,
+    isBrowser: false
+  });
+  const stdin = child.stdin;
+  const stdout = child.stdout;
+  stdout.on("data", readFromStdout);
+  stdout.on("end", afterClose);
+  let refCount = 0;
+  child.unref();
+  if (stdin.unref) {
+    stdin.unref();
+  }
+  if (stdout.unref) {
+    stdout.unref();
+  }
+  const refs = {
+    ref() {
+      if (++refCount === 1)
+        child.ref();
+    },
+    unref() {
+      if (--refCount === 0)
+        child.unref();
+    }
+  };
+  longLivedService = {
+    build: (options) => {
+      return new Promise((resolve, reject) => {
+        service.buildOrServe({
+          callName: "build",
+          refs,
+          serveOptions: null,
+          options,
+          isTTY: isTTY(),
+          defaultWD,
+          callback: (err, res) => err ? reject(err) : resolve(res)
+        });
+      });
+    },
+    serve: (serveOptions, buildOptions) => {
+      if (serveOptions === null || typeof serveOptions !== "object")
+        throw new Error("The first argument must be an object");
+      return new Promise((resolve, reject) => service.buildOrServe({
+        callName: "serve",
+        refs,
+        serveOptions,
+        options: buildOptions,
+        isTTY: isTTY(),
+        defaultWD,
+        callback: (err, res) => err ? reject(err) : resolve(res)
+      }));
+    },
+    transform: (input, options) => {
+      return new Promise((resolve, reject) => service.transform({
+        callName: "transform",
+        refs,
+        input,
+        options: options || {},
+        isTTY: isTTY(),
+        fs: fsAsync,
+        callback: (err, res) => err ? reject(err) : resolve(res)
+      }));
+    },
+    formatMessages: (messages, options) => {
+      return new Promise((resolve, reject) => service.formatMessages({
+        callName: "formatMessages",
+        refs,
+        messages,
+        options,
+        callback: (err, res) => err ? reject(err) : resolve(res)
+      }));
+    },
+    analyzeMetafile: (metafile, options) => {
+      return new Promise((resolve, reject) => service.analyzeMetafile({
+        callName: "analyzeMetafile",
+        refs,
+        metafile: typeof metafile === "string" ? metafile : JSON.stringify(metafile),
+        options,
+        callback: (err, res) => err ? reject(err) : resolve(res)
+      }));
+    }
+  };
+  return longLivedService;
+};
+var runServiceSync = (callback) => {
+  let [command, args] = esbuildCommandAndArgs();
+  let stdin = new Uint8Array();
+  let { readFromStdout, afterClose, service } = createChannel({
+    writeToStdin(bytes) {
+      if (stdin.length !== 0)
+        throw new Error("Must run at most one command");
+      stdin = bytes;
+    },
+    isSync: true,
+    isBrowser: false
+  });
+  callback(service);
+  let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.13.8"}`), {
+    cwd: defaultWD,
+    windowsHide: true,
+    input: stdin,
+    maxBuffer: +process.env.ESBUILD_MAX_BUFFER || 16 * 1024 * 1024
+  });
+  readFromStdout(stdout);
+  afterClose();
+};
+var randomFileName = () => {
+  return path2.join(os2.tmpdir(), `esbuild-${crypto.randomBytes(32).toString("hex")}`);
+};
+var workerThreadService = null;
+var startWorkerThreadService = (worker_threads2) => {
+  let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
+  let worker = new worker_threads2.Worker(__filename, {
+    workerData: { workerPort, defaultWD, esbuildVersion: "0.13.8" },
+    transferList: [workerPort],
+    execArgv: []
+  });
+  let nextID = 0;
+  let wasStopped = false;
+  let fakeBuildError = (text) => {
+    let error = new Error(`Build failed with 1 error:
+error: ${text}`);
+    let errors = [{ pluginName: "", text, location: null, notes: [], detail: void 0 }];
+    error.errors = errors;
+    error.warnings = [];
+    return error;
+  };
+  let validateBuildSyncOptions = (options) => {
+    if (!options)
+      return;
+    let plugins = options.plugins;
+    let incremental = options.incremental;
+    let watch = options.watch;
+    if (plugins && plugins.length > 0)
+      throw fakeBuildError(`Cannot use plugins in synchronous API calls`);
+    if (incremental)
+      throw fakeBuildError(`Cannot use "incremental" with a synchronous build`);
+    if (watch)
+      throw fakeBuildError(`Cannot use "watch" with a synchronous build`);
+  };
+  let applyProperties = (object, properties) => {
+    for (let key in properties) {
+      object[key] = properties[key];
+    }
+  };
+  let runCallSync = (command, args) => {
+    if (wasStopped)
+      throw new Error("The service was stopped");
+    let id = nextID++;
+    let sharedBuffer = new SharedArrayBuffer(8);
+    let sharedBufferView = new Int32Array(sharedBuffer);
+    let msg = { sharedBuffer, id, command, args };
+    worker.postMessage(msg);
+    let status = Atomics.wait(sharedBufferView, 0, 0);
+    if (status !== "ok" && status !== "not-equal")
+      throw new Error("Internal error: Atomics.wait() failed: " + status);
+    let { message: { id: id2, resolve, reject, properties } } = worker_threads2.receiveMessageOnPort(mainPort);
+    if (id !== id2)
+      throw new Error(`Internal error: Expected id ${id} but got id ${id2}`);
+    if (reject) {
+      applyProperties(reject, properties);
+      throw reject;
+    }
+    return resolve;
+  };
+  worker.unref();
+  return {
+    buildSync(options) {
+      validateBuildSyncOptions(options);
+      return runCallSync("build", [options]);
+    },
+    transformSync(input, options) {
+      return runCallSync("transform", [input, options]);
+    },
+    formatMessagesSync(messages, options) {
+      return runCallSync("formatMessages", [messages, options]);
+    },
+    analyzeMetafileSync(metafile, options) {
+      return runCallSync("analyzeMetafile", [metafile, options]);
+    }
+  };
+};
+var startSyncServiceWorker = () => {
+  let workerPort = worker_threads.workerData.workerPort;
+  let parentPort = worker_threads.parentPort;
+  let service = ensureServiceIsRunning();
+  defaultWD = worker_threads.workerData.defaultWD;
+  let extractProperties = (object) => {
+    let properties = {};
+    if (object && typeof object === "object") {
+      for (let key in object) {
+        properties[key] = object[key];
+      }
+    }
+    return properties;
+  };
+  parentPort.on("message", (msg) => {
+    (async () => {
+      let { sharedBuffer, id, command, args } = msg;
+      let sharedBufferView = new Int32Array(sharedBuffer);
+      try {
+        switch (command) {
+          case "build":
+            workerPort.postMessage({ id, resolve: await service.build(args[0]) });
+            break;
+          case "transform":
+            workerPort.postMessage({ id, resolve: await service.transform(args[0], args[1]) });
+            break;
+          case "formatMessages":
+            workerPort.postMessage({ id, resolve: await service.formatMessages(args[0], args[1]) });
+            break;
+          case "analyzeMetafile":
+            workerPort.postMessage({ id, resolve: await service.analyzeMetafile(args[0], args[1]) });
+            break;
+          default:
+            throw new Error(`Invalid command: ${command}`);
+        }
+      } catch (reject) {
+        workerPort.postMessage({ id, reject, properties: extractProperties(reject) });
+      }
+      Atomics.add(sharedBufferView, 0, 1);
+      Atomics.notify(sharedBufferView, 0, Infinity);
+    })();
+  });
+};
+if (isInternalWorkerThread) {
+  startSyncServiceWorker();
+}
+// Annotate the CommonJS export names for ESM import in node:
+0 && (module.exports = {
+  analyzeMetafile,
+  analyzeMetafileSync,
+  build,
+  buildSync,
+  formatMessages,
+  formatMessagesSync,
+  initialize,
+  serve,
+  transform,
+  transformSync,
+  version
+});
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/package.json
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,51 @@
+{
+  "_from": "esbuild-wasm@0.13.8",
+  "_id": "esbuild-wasm@0.13.8",
+  "_inBundle": false,
+  "_integrity": "sha512-UbD+3nloiSpJWXTCInZQrqPe8Y+RLfDkY/5kEHiXsw/lmaEvibe69qTzQu16m5R9je/0bF7VYQ5jaEOq0z9lLA==",
+  "_location": "/@angular-devkit/build-angular/esbuild-wasm",
+  "_phantomChildren": {},
+  "_requested": {
+    "type": "version",
+    "registry": true,
+    "raw": "esbuild-wasm@0.13.8",
+    "name": "esbuild-wasm",
+    "escapedName": "esbuild-wasm",
+    "rawSpec": "0.13.8",
+    "saveSpec": null,
+    "fetchSpec": "0.13.8"
+  },
+  "_requiredBy": [
+    "/@angular-devkit/build-angular"
+  ],
+  "_resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.13.8.tgz",
+  "_shasum": "f34134c187ffcfc22d476e925917f70bab40f8b0",
+  "_spec": "esbuild-wasm@0.13.8",
+  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@angular-devkit\\build-angular",
+  "bin": {
+    "esbuild": "bin/esbuild"
+  },
+  "browser": "lib/browser.js",
+  "bugs": {
+    "url": "https://github.com/evanw/esbuild/issues"
+  },
+  "bundleDependencies": false,
+  "deprecated": false,
+  "description": "The cross-platform WebAssembly binary for esbuild, a JavaScript bundler.",
+  "directories": {
+    "bin": "bin"
+  },
+  "engines": {
+    "node": ">=8"
+  },
+  "homepage": "https://github.com/evanw/esbuild#readme",
+  "license": "MIT",
+  "main": "lib/main.js",
+  "name": "esbuild-wasm",
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/evanw/esbuild.git"
+  },
+  "types": "lib/main.d.ts",
+  "version": "0.13.8"
+}
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/wasm_exec.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/wasm_exec.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/esbuild-wasm/wasm_exec.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -0,0 +1,661 @@
+// Copyright 2018 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+(() => {
+	// Map multiple JavaScript environments to a single common API,
+	// preferring web standards over Node.js API.
+	//
+	// Environments considered:
+	// - Browsers
+	// - Node.js
+	// - Electron
+	// - Parcel
+	// - Webpack
+
+	if (typeof global !== "undefined") {
+		// global already exists
+	} else if (typeof window !== "undefined") {
+		window.global = window;
+	} else if (typeof self !== "undefined") {
+		self.global = self;
+	} else {
+		throw new Error("cannot export Go (neither global, window nor self is defined)");
+	}
+
+	if (!global.require && typeof require !== "undefined") {
+		global.require = require;
+	}
+
+	if (!global.fs && global.require) {
+		const fs = require("fs");
+		if (typeof fs === "object" && fs !== null && Object.keys(fs).length !== 0) {
+			
+    global.fs = Object.assign({}, fs, {
+      // Hack around a Unicode bug in node: https://github.com/nodejs/node/issues/24550
+      write(fd, buf, offset, length, position, callback) {
+        if (offset === 0 && length === buf.length && position === null) {
+          if (fd === process.stdout.fd) {
+            try {
+              process.stdout.write(buf, err => err ? callback(err, 0, null) : callback(null, length, buf));
+            } catch (err) {
+              callback(err, 0, null);
+            }
+            return;
+          }
+          if (fd === process.stderr.fd) {
+            try {
+              process.stderr.write(buf, err => err ? callback(err, 0, null) : callback(null, length, buf));
+            } catch (err) {
+              callback(err, 0, null);
+            }
+            return;
+          }
+        }
+        fs.write(fd, buf, offset, length, position, callback);
+      },
+    });
+  
+		}
+	}
+
+	const enosys = () => {
+		const err = new Error("not implemented");
+		err.code = "ENOSYS";
+		return err;
+	};
+
+	if (!global.fs) {
+		let outputBuf = "";
+		global.fs = {
+			constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
+			writeSync(fd, buf) {
+				outputBuf += decoder.decode(buf);
+				const nl = outputBuf.lastIndexOf("\n");
+				if (nl != -1) {
+					console.log(outputBuf.substr(0, nl));
+					outputBuf = outputBuf.substr(nl + 1);
+				}
+				return buf.length;
+			},
+			write(fd, buf, offset, length, position, callback) {
+				if (offset !== 0 || length !== buf.length || position !== null) {
+					callback(enosys());
+					return;
+				}
+				const n = this.writeSync(fd, buf);
+				callback(null, n);
+			},
+			chmod(path, mode, callback) { callback(enosys()); },
+			chown(path, uid, gid, callback) { callback(enosys()); },
+			close(fd, callback) { callback(enosys()); },
+			fchmod(fd, mode, callback) { callback(enosys()); },
+			fchown(fd, uid, gid, callback) { callback(enosys()); },
+			fstat(fd, callback) { callback(enosys()); },
+			fsync(fd, callback) { callback(null); },
+			ftruncate(fd, length, callback) { callback(enosys()); },
+			lchown(path, uid, gid, callback) { callback(enosys()); },
+			link(path, link, callback) { callback(enosys()); },
+			lstat(path, callback) { callback(enosys()); },
+			mkdir(path, perm, callback) { callback(enosys()); },
+			open(path, flags, mode, callback) { callback(enosys()); },
+			read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
+			readdir(path, callback) { callback(enosys()); },
+			readlink(path, callback) { callback(enosys()); },
+			rename(from, to, callback) { callback(enosys()); },
+			rmdir(path, callback) { callback(enosys()); },
+			stat(path, callback) { callback(enosys()); },
+			symlink(path, link, callback) { callback(enosys()); },
+			truncate(path, length, callback) { callback(enosys()); },
+			unlink(path, callback) { callback(enosys()); },
+			utimes(path, atime, mtime, callback) { callback(enosys()); },
+		};
+	}
+
+	if (!global.process) {
+		global.process = {
+			getuid() { return -1; },
+			getgid() { return -1; },
+			geteuid() { return -1; },
+			getegid() { return -1; },
+			getgroups() { throw enosys(); },
+			pid: -1,
+			ppid: -1,
+			umask() { throw enosys(); },
+			cwd() { throw enosys(); },
+			chdir() { throw enosys(); },
+		}
+	}
+
+	if (!global.crypto && global.require) {
+		const nodeCrypto = require("crypto");
+		global.crypto = {
+			getRandomValues(b) {
+				nodeCrypto.randomFillSync(b);
+			},
+		};
+	}
+	if (!global.crypto) {
+		throw new Error("global.crypto is not available, polyfill required (getRandomValues only)");
+	}
+
+	if (!global.performance) {
+		global.performance = {
+			now() {
+				const [sec, nsec] = process.hrtime();
+				return sec * 1000 + nsec / 1000000;
+			},
+		};
+	}
+
+	if (!global.TextEncoder && global.require) {
+		global.TextEncoder = require("util").TextEncoder;
+	}
+	if (!global.TextEncoder) {
+		throw new Error("global.TextEncoder is not available, polyfill required");
+	}
+
+	if (!global.TextDecoder && global.require) {
+		global.TextDecoder = require("util").TextDecoder;
+	}
+	if (!global.TextDecoder) {
+		throw new Error("global.TextDecoder is not available, polyfill required");
+	}
+
+	// End of polyfills for common API.
+
+	const encoder = new TextEncoder("utf-8");
+	const decoder = new TextDecoder("utf-8");
+
+	global.Go = class {
+		constructor() {
+			this.argv = ["js"];
+			this.env = {};
+			this.exit = (code) => {
+				if (code !== 0) {
+					console.warn("exit code:", code);
+				}
+			};
+			this._exitPromise = new Promise((resolve) => {
+				this._resolveExitPromise = resolve;
+			});
+			this._pendingEvent = null;
+			this._scheduledTimeouts = new Map();
+			this._nextCallbackTimeoutID = 1;
+
+			const setInt64 = (addr, v) => {
+				this.mem.setUint32(addr + 0, v, true);
+				this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
+			}
+
+			const getInt64 = (addr) => {
+				const low = this.mem.getUint32(addr + 0, true);
+				const high = this.mem.getInt32(addr + 4, true);
+				return low + high * 4294967296;
+			}
+
+			const loadValue = (addr) => {
+				const f = this.mem.getFloat64(addr, true);
+				if (f === 0) {
+					return undefined;
+				}
+				if (!isNaN(f)) {
+					return f;
+				}
+
+				const id = this.mem.getUint32(addr, true);
+				return this._values[id];
+			}
+
+			const storeValue = (addr, v) => {
+				const nanHead = 0x7FF80000;
+
+				if (typeof v === "number" && v !== 0) {
+					if (isNaN(v)) {
+						this.mem.setUint32(addr + 4, nanHead, true);
+						this.mem.setUint32(addr, 0, true);
+						return;
+					}
+					this.mem.setFloat64(addr, v, true);
+					return;
+				}
+
+				if (v === undefined) {
+					this.mem.setFloat64(addr, 0, true);
+					return;
+				}
+
+				let id = this._ids.get(v);
+				if (id === undefined) {
+					id = this._idPool.pop();
+					if (id === undefined) {
+						id = this._values.length;
+					}
+					this._values[id] = v;
+					this._goRefCounts[id] = 0;
+					this._ids.set(v, id);
+				}
+				this._goRefCounts[id]++;
+				let typeFlag = 0;
+				switch (typeof v) {
+					case "object":
+						if (v !== null) {
+							typeFlag = 1;
+						}
+						break;
+					case "string":
+						typeFlag = 2;
+						break;
+					case "symbol":
+						typeFlag = 3;
+						break;
+					case "function":
+						typeFlag = 4;
+						break;
+				}
+				this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
+				this.mem.setUint32(addr, id, true);
+			}
+
+			const loadSlice = (addr) => {
+				const array = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				return new Uint8Array(this._inst.exports.mem.buffer, array, len);
+			}
+
+			const loadSliceOfValues = (addr) => {
+				const array = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				const a = new Array(len);
+				for (let i = 0; i < len; i++) {
+					a[i] = loadValue(array + i * 8);
+				}
+				return a;
+			}
+
+			const loadString = (addr) => {
+				const saddr = getInt64(addr + 0);
+				const len = getInt64(addr + 8);
+				return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
+			}
+
+			const timeOrigin = Date.now() - performance.now();
+			this.importObject = {
+				go: {
+					// Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
+					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
+					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
+					// This changes the SP, thus we have to update the SP used by the imported function.
+
+					// func wasmExit(code int32)
+					"runtime.wasmExit": (sp) => {
+						sp >>>= 0;
+						const code = this.mem.getInt32(sp + 8, true);
+						this.exited = true;
+						delete this._inst;
+						delete this._values;
+						delete this._goRefCounts;
+						delete this._ids;
+						delete this._idPool;
+						this.exit(code);
+					},
+
+					// func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
+					"runtime.wasmWrite": (sp) => {
+						sp >>>= 0;
+						const fd = getInt64(sp + 8);
+						const p = getInt64(sp + 16);
+						const n = this.mem.getInt32(sp + 24, true);
+						fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
+					},
+
+					// func resetMemoryDataView()
+					"runtime.resetMemoryDataView": (sp) => {
+						sp >>>= 0;
+						this.mem = new DataView(this._inst.exports.mem.buffer);
+					},
+
+					// func nanotime1() int64
+					"runtime.nanotime1": (sp) => {
+						sp >>>= 0;
+						setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);
+					},
+
+					// func walltime() (sec int64, nsec int32)
+					"runtime.walltime": (sp) => {
+						sp >>>= 0;
+						const msec = (new Date).getTime();
+						setInt64(sp + 8, msec / 1000);
+						this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);
+					},
+
+					// func scheduleTimeoutEvent(delay int64) int32
+					"runtime.scheduleTimeoutEvent": (sp) => {
+						sp >>>= 0;
+						const id = this._nextCallbackTimeoutID;
+						this._nextCallbackTimeoutID++;
+						this._scheduledTimeouts.set(id, setTimeout(
+							() => {
+								this._resume();
+								while (this._scheduledTimeouts.has(id)) {
+									// for some reason Go failed to register the timeout event, log and try again
+									// (temporary workaround for https://github.com/golang/go/issues/28975)
+									console.warn("scheduleTimeoutEvent: missed timeout event");
+									this._resume();
+								}
+							},
+							getInt64(sp + 8) + 1, // setTimeout has been seen to fire up to 1 millisecond early
+						));
+						this.mem.setInt32(sp + 16, id, true);
+					},
+
+					// func clearTimeoutEvent(id int32)
+					"runtime.clearTimeoutEvent": (sp) => {
+						sp >>>= 0;
+						const id = this.mem.getInt32(sp + 8, true);
+						clearTimeout(this._scheduledTimeouts.get(id));
+						this._scheduledTimeouts.delete(id);
+					},
+
+					// func getRandomData(r []byte)
+					"runtime.getRandomData": (sp) => {
+						sp >>>= 0;
+						crypto.getRandomValues(loadSlice(sp + 8));
+					},
+
+					// func finalizeRef(v ref)
+					"syscall/js.finalizeRef": (sp) => {
+						sp >>>= 0;
+						const id = this.mem.getUint32(sp + 8, true);
+						this._goRefCounts[id]--;
+						if (this._goRefCounts[id] === 0) {
+							const v = this._values[id];
+							this._values[id] = null;
+							this._ids.delete(v);
+							this._idPool.push(id);
+						}
+					},
+
+					// func stringVal(value string) ref
+					"syscall/js.stringVal": (sp) => {
+						sp >>>= 0;
+						storeValue(sp + 24, loadString(sp + 8));
+					},
+
+					// func valueGet(v ref, p string) ref
+					"syscall/js.valueGet": (sp) => {
+						sp >>>= 0;
+						const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));
+						sp = this._inst.exports.getsp() >>> 0; // see comment above
+						storeValue(sp + 32, result);
+					},
+
+					// func valueSet(v ref, p string, x ref)
+					"syscall/js.valueSet": (sp) => {
+						sp >>>= 0;
+						Reflect.set(loadValue(sp + 8), loadString(sp + 16), loadValue(sp + 32));
+					},
+
+					// func valueDelete(v ref, p string)
+					"syscall/js.valueDelete": (sp) => {
+						sp >>>= 0;
+						Reflect.deleteProperty(loadValue(sp + 8), loadString(sp + 16));
+					},
+
+					// func valueIndex(v ref, i int) ref
+					"syscall/js.valueIndex": (sp) => {
+						sp >>>= 0;
+						storeValue(sp + 24, Reflect.get(loadValue(sp + 8), getInt64(sp + 16)));
+					},
+
+					// valueSetIndex(v ref, i int, x ref)
+					"syscall/js.valueSetIndex": (sp) => {
+						sp >>>= 0;
+						Reflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24));
+					},
+
+					// func valueCall(v ref, m string, args []ref) (ref, bool)
+					"syscall/js.valueCall": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const m = Reflect.get(v, loadString(sp + 16));
+							const args = loadSliceOfValues(sp + 32);
+							const result = Reflect.apply(m, v, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 56, result);
+							this.mem.setUint8(sp + 64, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 56, err);
+							this.mem.setUint8(sp + 64, 0);
+						}
+					},
+
+					// func valueInvoke(v ref, args []ref) (ref, bool)
+					"syscall/js.valueInvoke": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const args = loadSliceOfValues(sp + 16);
+							const result = Reflect.apply(v, undefined, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, result);
+							this.mem.setUint8(sp + 48, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, err);
+							this.mem.setUint8(sp + 48, 0);
+						}
+					},
+
+					// func valueNew(v ref, args []ref) (ref, bool)
+					"syscall/js.valueNew": (sp) => {
+						sp >>>= 0;
+						try {
+							const v = loadValue(sp + 8);
+							const args = loadSliceOfValues(sp + 16);
+							const result = Reflect.construct(v, args);
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, result);
+							this.mem.setUint8(sp + 48, 1);
+						} catch (err) {
+							sp = this._inst.exports.getsp() >>> 0; // see comment above
+							storeValue(sp + 40, err);
+							this.mem.setUint8(sp + 48, 0);
+						}
+					},
+
+					// func valueLength(v ref) int
+					"syscall/js.valueLength": (sp) => {
+						sp >>>= 0;
+						setInt64(sp + 16, parseInt(loadValue(sp + 8).length));
+					},
+
+					// valuePrepareString(v ref) (ref, int)
+					"syscall/js.valuePrepareString": (sp) => {
+						sp >>>= 0;
+						const str = encoder.encode(String(loadValue(sp + 8)));
+						storeValue(sp + 16, str);
+						setInt64(sp + 24, str.length);
+					},
+
+					// valueLoadString(v ref, b []byte)
+					"syscall/js.valueLoadString": (sp) => {
+						sp >>>= 0;
+						const str = loadValue(sp + 8);
+						loadSlice(sp + 16).set(str);
+					},
+
+					// func valueInstanceOf(v ref, t ref) bool
+					"syscall/js.valueInstanceOf": (sp) => {
+						sp >>>= 0;
+						this.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);
+					},
+
+					// func copyBytesToGo(dst []byte, src ref) (int, bool)
+					"syscall/js.copyBytesToGo": (sp) => {
+						sp >>>= 0;
+						const dst = loadSlice(sp + 8);
+						const src = loadValue(sp + 32);
+						if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
+							this.mem.setUint8(sp + 48, 0);
+							return;
+						}
+						const toCopy = src.subarray(0, dst.length);
+						dst.set(toCopy);
+						setInt64(sp + 40, toCopy.length);
+						this.mem.setUint8(sp + 48, 1);
+					},
+
+					// func copyBytesToJS(dst ref, src []byte) (int, bool)
+					"syscall/js.copyBytesToJS": (sp) => {
+						sp >>>= 0;
+						const dst = loadValue(sp + 8);
+						const src = loadSlice(sp + 16);
+						if (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {
+							this.mem.setUint8(sp + 48, 0);
+							return;
+						}
+						const toCopy = src.subarray(0, dst.length);
+						dst.set(toCopy);
+						setInt64(sp + 40, toCopy.length);
+						this.mem.setUint8(sp + 48, 1);
+					},
+
+					"debug": (value) => {
+						console.log(value);
+					},
+				}
+			};
+		}
+
+		async run(instance) {
+			if (!(instance instanceof WebAssembly.Instance)) {
+				throw new Error("Go.run: WebAssembly.Instance expected");
+			}
+			this._inst = instance;
+			this.mem = new DataView(this._inst.exports.mem.buffer);
+			this._values = [ // JS values that Go currently has references to, indexed by reference id
+				NaN,
+				0,
+				null,
+				true,
+				false,
+				global,
+				this,
+			];
+			this._goRefCounts = new Array(this._values.length).fill(Infinity); // number of references that Go has to a JS value, indexed by reference id
+			this._ids = new Map([ // mapping from JS values to reference ids
+				[0, 1],
+				[null, 2],
+				[true, 3],
+				[false, 4],
+				[global, 5],
+				[this, 6],
+			]);
+			this._idPool = [];   // unused ids that have been garbage collected
+			this.exited = false; // whether the Go program has exited
+
+			// Pass command line arguments and environment variables to WebAssembly by writing them to the linear memory.
+			let offset = 4096;
+
+			const strPtr = (str) => {
+				const ptr = offset;
+				const bytes = encoder.encode(str + "\0");
+				new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);
+				offset += bytes.length;
+				if (offset % 8 !== 0) {
+					offset += 8 - (offset % 8);
+				}
+				return ptr;
+			};
+
+			const argc = this.argv.length;
+
+			const argvPtrs = [];
+			this.argv.forEach((arg) => {
+				argvPtrs.push(strPtr(arg));
+			});
+			argvPtrs.push(0);
+
+			const keys = Object.keys(this.env).sort();
+			keys.forEach((key) => {
+				argvPtrs.push(strPtr(`${key}=${this.env[key]}`));
+			});
+			argvPtrs.push(0);
+
+			const argv = offset;
+			argvPtrs.forEach((ptr) => {
+				this.mem.setUint32(offset, ptr, true);
+				this.mem.setUint32(offset + 4, 0, true);
+				offset += 8;
+			});
+
+			// The linker guarantees global data starts from at least wasmMinDataAddr.
+			// Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
+			const wasmMinDataAddr = 4096 + 4096;
+			if (offset >= wasmMinDataAddr) {
+				throw new Error("command line too long");
+			}
+
+			this._inst.exports.run(argc, argv);
+			if (this.exited) {
+				this._resolveExitPromise();
+			}
+			await this._exitPromise;
+		}
+
+		_resume() {
+			if (this.exited) {
+				throw new Error("Go program has already exited");
+			}
+			this._inst.exports.resume();
+			if (this.exited) {
+				this._resolveExitPromise();
+			}
+		}
+
+		_makeFuncWrapper(id) {
+			const go = this;
+			return function () {
+				const event = { id: id, this: this, args: arguments };
+				go._pendingEvent = event;
+				go._resume();
+				return event.result;
+			};
+		}
+	}
+
+	if (
+		typeof module !== "undefined" &&
+		global.require &&
+		global.require.main === module &&
+		global.process &&
+		global.process.versions &&
+		!global.process.versions.electron
+	) {
+		if (process.argv.length < 3) {
+			console.error("usage: go_js_wasm_exec [wasm binary] [arguments]");
+			process.exit(1);
+		}
+
+		const go = new Go();
+		go.argv = process.argv.slice(2);
+		go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);
+		go.exit = process.exit;
+		WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
+			process.on("exit", (code) => { // Node.js exits if no event handler is pending
+				if (code === 0 && !go.exited) {
+					// deadlock, make Go print error and stack traces
+					go._pendingEvent = { id: 0 };
+					go._resume();
+				}
+			});
+			return go.run(result.instance);
+		}).catch((err) => {
+			console.error(err);
+			process.exit(1);
+		});
+	}
+})();
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/package.json
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/package.json	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -1,14 +1,7 @@
 {
-  "_args": [
-    [
-      "@angular-devkit/build-angular@12.2.9",
-      "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
-    ]
-  ],
-  "_development": true,
-  "_from": "@angular-devkit/build-angular@12.2.9",
-  "_id": "@angular-devkit/build-angular@12.2.9",
+  "_from": "@angular-devkit/build-angular@12.2.13",
+  "_id": "@angular-devkit/build-angular@12.2.13",
   "_inBundle": false,
-  "_integrity": "sha512-A8yddhGpUnrTcA4WCiUxwklFbfkNMfvlST5CT9VLVjz4MEwwOpdaNmIF39+NMr4XTgOBbP6Bq/t3ciIsB5+/Uw==",
+  "_integrity": "sha512-iJ1P/RZ1hk2n/HtEqB5ohXvHa+Hf0BXShYskSGrn6/klcTb0eJTCREsFxHk7mNEmRIGPWkjbLAslqpPgwiagXg==",
   "_location": "/@angular-devkit/build-angular",
   "_phantomChildren": {},
@@ -16,17 +9,19 @@
     "type": "version",
     "registry": true,
-    "raw": "@angular-devkit/build-angular@12.2.9",
+    "raw": "@angular-devkit/build-angular@12.2.13",
     "name": "@angular-devkit/build-angular",
     "escapedName": "@angular-devkit%2fbuild-angular",
     "scope": "@angular-devkit",
-    "rawSpec": "12.2.9",
+    "rawSpec": "12.2.13",
     "saveSpec": null,
-    "fetchSpec": "12.2.9"
+    "fetchSpec": "12.2.13"
   },
   "_requiredBy": [
-    "#DEV:/"
+    "#DEV:/",
+    "#USER"
   ],
-  "_resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-12.2.9.tgz",
-  "_spec": "12.2.9",
+  "_resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-12.2.13.tgz",
+  "_shasum": "f5564d3ec9db132956473bb904bb3590482f5b36",
+  "_spec": "@angular-devkit/build-angular@12.2.13",
   "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
   "author": {
@@ -37,10 +32,11 @@
   },
   "builders": "builders.json",
+  "bundleDependencies": false,
   "dependencies": {
     "@ampproject/remapping": "1.0.1",
-    "@angular-devkit/architect": "0.1202.9",
-    "@angular-devkit/build-optimizer": "0.1202.9",
-    "@angular-devkit/build-webpack": "0.1202.9",
-    "@angular-devkit/core": "12.2.9",
+    "@angular-devkit/architect": "0.1202.13",
+    "@angular-devkit/build-optimizer": "0.1202.13",
+    "@angular-devkit/build-webpack": "0.1202.13",
+    "@angular-devkit/core": "12.2.13",
     "@babel/core": "7.14.8",
     "@babel/generator": "7.14.8",
@@ -54,5 +50,5 @@
     "@discoveryjs/json-ext": "0.5.3",
     "@jsdevtools/coverage-istanbul-loader": "3.0.5",
-    "@ngtools/webpack": "12.2.9",
+    "@ngtools/webpack": "12.2.13",
     "ansi-colors": "4.1.1",
     "babel-loader": "8.2.2",
@@ -63,9 +59,9 @@
     "copy-webpack-plugin": "9.0.1",
     "core-js": "3.16.0",
-    "critters": "0.0.10",
+    "critters": "0.0.12",
     "css-loader": "6.2.0",
     "css-minimizer-webpack-plugin": "3.0.2",
-    "esbuild": "0.13.4",
-    "esbuild-wasm": "0.13.4",
+    "esbuild": "0.13.8",
+    "esbuild-wasm": "0.13.8",
     "find-cache-dir": "3.3.1",
     "glob": "7.1.7",
@@ -77,5 +73,5 @@
     "license-webpack-plugin": "2.3.20",
     "loader-utils": "2.0.0",
-    "mini-css-extract-plugin": "2.2.1",
+    "mini-css-extract-plugin": "2.4.2",
     "minimatch": "3.0.4",
     "open": "8.2.1",
@@ -109,8 +105,9 @@
     "webpack-subresource-integrity": "1.5.2"
   },
+  "deprecated": false,
   "description": "Angular Webpack Build Facade",
   "engines": {
     "node": "^12.14.1 || >=14.0.0",
-    "npm": "^6.11.0 || ^7.5.6",
+    "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
     "yarn": ">= 1.13.0"
   },
@@ -127,5 +124,5 @@
   "name": "@angular-devkit/build-angular",
   "optionalDependencies": {
-    "esbuild": "0.13.4"
+    "esbuild": "0.13.8"
   },
   "peerDependencies": {
@@ -168,4 +165,4 @@
   },
   "typings": "src/index.d.ts",
-  "version": "12.2.9"
+  "version": "12.2.13"
 }
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/babel-loader.d.ts
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/babel-loader.d.ts	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/babel-loader.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -8,7 +8,5 @@
 
 declare module 'babel-loader' {
-  type BabelLoaderCustomizer<T> = (
-    babel: typeof import('@babel/core'),
-  ) => {
+  type BabelLoaderCustomizer<T> = (babel: typeof import('@babel/core')) => {
     customOptions?(
       this: import('webpack').loader.LoaderContext,
@@ -21,4 +19,15 @@
       loaderArguments: { source: string; map?: unknown; customOptions: T },
     ): import('@babel/core').TransformOptions;
+    result?(
+      this: import('webpack').loader.LoaderContext,
+      result: import('@babel/core').BabelFileResult,
+      context: {
+        source: string;
+        map?: unknown;
+        customOptions: T;
+        configuration: import('@babel/core').PartialConfig;
+        options: import('@babel/core').TransformOptions;
+      },
+    ): import('@babel/core').BabelFileResult;
   };
   function custom<T>(customizer: BabelLoaderCustomizer<T>): import('webpack').loader.Loader;
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -7,5 +7,9 @@
  * found in the LICENSE file at https://angular.io/license
  */
+var __importDefault = (this && this.__importDefault) || function (mod) {
+    return (mod && mod.__esModule) ? mod : { "default": mod };
+};
 Object.defineProperty(exports, "__esModule", { value: true });
+const remapping_1 = __importDefault(require("@ampproject/remapping"));
 const linker_1 = require("@angular/compiler-cli/linker");
 const babel_loader_1 = require("babel-loader");
@@ -119,8 +123,8 @@
             return {
                 ...configuration.options,
-                // Workaround for https://github.com/babel/babel-loader/pull/896 is available
-                // Delete once the above PR is released
+                // Using `false` disables babel from attempting to locate sourcemaps or process any inline maps.
+                // The babel types do not include the false option even though it is valid
                 // eslint-disable-next-line @typescript-eslint/no-explicit-any
-                inputSourceMap: configuration.options.inputSourceMap || false,
+                inputSourceMap: false,
                 plugins,
                 presets: [
@@ -147,4 +151,21 @@
             };
         },
+        result(result, { map: inputSourceMap }) {
+            if (result.map && inputSourceMap) {
+                // Merge the intermediate sourcemap generated by babel with the input source map.
+                // The casting is required due to slight differences in the types for babel and
+                // `@ampproject/remapping` source map objects but both are compatible with Webpack.
+                // This method for merging is used because it provides more accurate output
+                // and is faster while using less memory.
+                result.map = {
+                    // Convert the SourceMap back to simple plain object.
+                    // This is needed because otherwise code-coverage will fail with `don't know how to turn this value into a node`
+                    // Which is throw by Babel when it is invoked again from `istanbul-lib-instrument`.
+                    // https://github.com/babel/babel/blob/780aa48d2a34dc55f556843074b6aed45e7eabeb/packages/babel-types/src/converters/valueToNode.ts#L115-L130
+                    ...remapping_1.default([result.map, inputSourceMap], () => null),
+                };
+            }
+            return result;
+        },
     };
 });
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/browser/index.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/browser/index.js	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/browser/index.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -132,5 +132,5 @@
         // eslint-disable-next-line max-lines-per-function
         operators_1.concatMap(async (buildEvent) => {
-            var _a, _b, _c, _d, _e, _f, _g, _h;
+            var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
             const spinner = new spinner_1.Spinner();
             spinner.enabled = options.progress !== false;
@@ -242,5 +242,5 @@
                             try {
                                 map = fs.readFileSync(filename + '.map', 'utf8');
-                                if (es5Polyfills) {
+                                if (es5Polyfills || i18n.shouldInline) {
                                     fs.unlinkSync(filename + '.map');
                                 }
@@ -251,4 +251,9 @@
                             fs.unlinkSync(filename);
                             filename = filename.replace(/\-es20\d{2}/, '');
+                        }
+                        else if (i18n.shouldInline) {
+                            // Original files must be deleted with i18n to avoid the original files from
+                            // being copied over the translated files when copying the project assets.
+                            fs.unlinkSync(filename);
                         }
                         const es2015Polyfills = file.file.startsWith('polyfills-es20');
@@ -266,4 +271,6 @@
                             ignoreOriginal: es5Polyfills,
                             optimizeOnly: es2015Polyfills,
+                            // When using i18n, file results are kept in memory for further processing
+                            memoryMode: i18n.shouldInline,
                         });
                         // ES2015 polyfills are only optimized; optimization check was performed above
@@ -280,4 +287,7 @@
                     let processRuntimeAction;
                     for (const action of actions) {
+                        if (options.verbose) {
+                            context.logger.info(`[${new Date().toISOString()}] Differential loading file queued: ${action.filename}`);
+                        }
                         // If SRI is enabled always process the runtime bundle
                         // Lazy route integrity values are stored in the runtime bundle
@@ -289,107 +299,122 @@
                         }
                     }
-                    const executor = new action_executor_1.BundleActionExecutor({ cachePath: cacheDownlevelPath, i18n }, options.subresourceIntegrity ? 'sha384' : undefined);
+                    const differentialLoadingExecutor = new action_executor_1.BundleActionExecutor({ cachePath: cacheDownlevelPath, i18n }, options.subresourceIntegrity ? 'sha384' : undefined);
                     // Execute the bundle processing actions
                     try {
                         spinner.start('Generating ES5 bundles for differential loading...');
-                        for await (const result of executor.processAll(processActions)) {
+                        for await (const result of differentialLoadingExecutor.processAll(processActions)) {
+                            if (options.verbose) {
+                                if (result.original) {
+                                    context.logger.info(`[${new Date().toISOString()}] Differential loading file processed: ${result.original.filename}`);
+                                }
+                                if (result.downlevel) {
+                                    context.logger.info(`[${new Date().toISOString()}] Differential loading file processed: ${result.downlevel.filename}`);
+                                }
+                            }
                             processResults.push(result);
                         }
-                        // Runtime must be processed after all other files
-                        if (processRuntimeAction) {
-                            const runtimeOptions = {
-                                ...processRuntimeAction,
-                                runtimeData: processResults,
-                                supportedBrowsers: buildBrowserFeatures.supportedBrowsers,
-                            };
-                            processResults.push(await Promise.resolve().then(() => __importStar(require('../utils/process-bundle'))).then((m) => m.process(runtimeOptions)));
-                        }
-                        spinner.succeed('ES5 bundle generation complete.');
-                        if (i18n.shouldInline) {
-                            spinner.start('Generating localized bundles...');
-                            const inlineActions = [];
-                            const processedFiles = new Set();
-                            for (const result of processResults) {
-                                if (result.original) {
-                                    inlineActions.push({
-                                        filename: path.basename(result.original.filename),
-                                        code: fs.readFileSync(result.original.filename, 'utf8'),
-                                        map: result.original.map &&
-                                            fs.readFileSync(result.original.map.filename, 'utf8'),
-                                        outputPath: baseOutputPath,
-                                        es5: false,
-                                        missingTranslation: options.i18nMissingTranslation,
-                                        setLocale: result.name === mainChunkId,
-                                    });
-                                    processedFiles.add(result.original.filename);
-                                    if (result.original.map) {
-                                        processedFiles.add(result.original.map.filename);
+                    }
+                    finally {
+                        differentialLoadingExecutor.stop();
+                    }
+                    // Runtime must be processed after all other files
+                    if (processRuntimeAction) {
+                        const runtimeOptions = {
+                            ...processRuntimeAction,
+                            runtimeData: processResults,
+                            supportedBrowsers: buildBrowserFeatures.supportedBrowsers,
+                        };
+                        processResults.push(await Promise.resolve().then(() => __importStar(require('../utils/process-bundle'))).then((m) => m.process(runtimeOptions)));
+                    }
+                    if (options.verbose) {
+                        context.logger.info(`[${new Date().toISOString()}] Differential loading processing complete.`);
+                    }
+                    spinner.succeed('ES5 bundle generation complete.');
+                    if (i18n.shouldInline) {
+                        spinner.start('Generating localized bundles...');
+                        const inlineActions = [];
+                        for (const result of processResults) {
+                            if (result.original) {
+                                if (options.verbose) {
+                                    context.logger.info(`[${new Date().toISOString()}] i18n localize file queued: ${result.original.filename}`);
+                                }
+                                inlineActions.push({
+                                    filename: path.basename(result.original.filename),
+                                    // Memory mode is always enabled for i18n
+                                    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+                                    code: result.original.content,
+                                    map: (_a = result.original.map) === null || _a === void 0 ? void 0 : _a.content,
+                                    outputPath: baseOutputPath,
+                                    es5: false,
+                                    missingTranslation: options.i18nMissingTranslation,
+                                    setLocale: result.name === mainChunkId,
+                                });
+                            }
+                            if (result.downlevel) {
+                                if (options.verbose) {
+                                    context.logger.info(`[${new Date().toISOString()}] i18n localize file queued: ${result.downlevel.filename}`);
+                                }
+                                inlineActions.push({
+                                    filename: path.basename(result.downlevel.filename),
+                                    // Memory mode is always enabled for i18n
+                                    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+                                    code: result.downlevel.content,
+                                    map: (_b = result.downlevel.map) === null || _b === void 0 ? void 0 : _b.content,
+                                    outputPath: baseOutputPath,
+                                    es5: true,
+                                    missingTranslation: options.i18nMissingTranslation,
+                                    setLocale: result.name === mainChunkId,
+                                });
+                            }
+                        }
+                        let hasErrors = false;
+                        const i18nExecutor = new action_executor_1.BundleActionExecutor({ i18n }, options.subresourceIntegrity ? 'sha384' : undefined);
+                        try {
+                            let localizedCount = 0;
+                            for await (const result of i18nExecutor.inlineAll(inlineActions)) {
+                                localizedCount++;
+                                if (options.verbose) {
+                                    context.logger.info(`[${new Date().toISOString()}] (${localizedCount}/${inlineActions.length}) Localized "${result.file}" [${result.count} translation(s)].`);
+                                }
+                                for (const diagnostic of result.diagnostics) {
+                                    spinner.stop();
+                                    if (diagnostic.type === 'error') {
+                                        hasErrors = true;
+                                        context.logger.error(diagnostic.message);
                                     }
-                                }
-                                if (result.downlevel) {
-                                    inlineActions.push({
-                                        filename: path.basename(result.downlevel.filename),
-                                        code: fs.readFileSync(result.downlevel.filename, 'utf8'),
-                                        map: result.downlevel.map &&
-                                            fs.readFileSync(result.downlevel.map.filename, 'utf8'),
-                                        outputPath: baseOutputPath,
-                                        es5: true,
-                                        missingTranslation: options.i18nMissingTranslation,
-                                        setLocale: result.name === mainChunkId,
-                                    });
-                                    processedFiles.add(result.downlevel.filename);
-                                    if (result.downlevel.map) {
-                                        processedFiles.add(result.downlevel.map.filename);
+                                    else {
+                                        context.logger.warn(diagnostic.message);
                                     }
-                                }
-                            }
-                            let hasErrors = false;
-                            try {
-                                for await (const result of executor.inlineAll(inlineActions)) {
-                                    if (options.verbose) {
-                                        context.logger.info(`Localized "${result.file}" [${result.count} translation(s)].`);
-                                    }
-                                    for (const diagnostic of result.diagnostics) {
-                                        spinner.stop();
-                                        if (diagnostic.type === 'error') {
-                                            hasErrors = true;
-                                            context.logger.error(diagnostic.message);
-                                        }
-                                        else {
-                                            context.logger.warn(diagnostic.message);
-                                        }
-                                        spinner.start();
-                                    }
-                                }
-                                // Copy any non-processed files into the output locations
-                                await copy_assets_1.copyAssets([
-                                    {
-                                        glob: '**/*',
-                                        input: webpackOutputPath,
-                                        output: '',
-                                        ignore: [...processedFiles].map((f) => path.relative(webpackOutputPath, f)),
-                                    },
-                                ], Array.from(outputPaths.values()), '');
-                            }
-                            catch (err) {
-                                spinner.fail('Localized bundle generation failed.');
-                                return { success: false, error: mapErrorToMessage(err) };
-                            }
-                            if (hasErrors) {
-                                spinner.fail('Localized bundle generation failed.');
-                            }
-                            else {
-                                spinner.succeed('Localized bundle generation complete.');
-                            }
-                            if (hasErrors) {
-                                return { success: false };
-                            }
-                        }
-                    }
-                    finally {
-                        executor.stop();
+                                    spinner.start();
+                                }
+                            }
+                            // Copy any non-processed files into the output locations
+                            await copy_assets_1.copyAssets([
+                                {
+                                    glob: '**/*',
+                                    input: webpackOutputPath,
+                                    output: '',
+                                },
+                            ], Array.from(outputPaths.values()), '');
+                        }
+                        catch (err) {
+                            spinner.fail('Localized bundle generation failed.');
+                            return { success: false, error: mapErrorToMessage(err) };
+                        }
+                        finally {
+                            i18nExecutor.stop();
+                        }
+                        if (hasErrors) {
+                            spinner.fail('Localized bundle generation failed.');
+                        }
+                        else {
+                            spinner.succeed('Localized bundle generation complete.');
+                        }
+                        if (hasErrors) {
+                            return { success: false };
+                        }
                     }
                     for (const result of processResults) {
-                        const chunk = (_a = webpackStats.chunks) === null || _a === void 0 ? void 0 : _a.find((chunk) => { var _a; return ((_a = chunk.id) === null || _a === void 0 ? void 0 : _a.toString()) === result.name; });
+                        const chunk = (_c = webpackStats.chunks) === null || _c === void 0 ? void 0 : _c.find((chunk) => { var _a; return ((_a = chunk.id) === null || _a === void 0 ? void 0 : _a.toString()) === result.name; });
                         if (result.original) {
                             bundleInfoStats.push(generateBundleInfoStats(result.original, chunk, 'modern'));
@@ -399,7 +424,7 @@
                         }
                     }
-                    const unprocessedChunks = ((_b = webpackStats.chunks) === null || _b === void 0 ? void 0 : _b.filter((chunk) => !processResults.find((result) => { var _a; return ((_a = chunk.id) === null || _a === void 0 ? void 0 : _a.toString()) === result.name; }))) || [];
+                    const unprocessedChunks = ((_d = webpackStats.chunks) === null || _d === void 0 ? void 0 : _d.filter((chunk) => !processResults.find((result) => { var _a; return ((_a = chunk.id) === null || _a === void 0 ? void 0 : _a.toString()) === result.name; }))) || [];
                     for (const chunk of unprocessedChunks) {
-                        const asset = (_c = webpackStats.assets) === null || _c === void 0 ? void 0 : _c.find((a) => { var _a; return a.name === ((_a = chunk.files) === null || _a === void 0 ? void 0 : _a[0]); });
+                        const asset = (_e = webpackStats.assets) === null || _e === void 0 ? void 0 : _e.find((a) => { var _a; return a.name === ((_a = chunk.files) === null || _a === void 0 ? void 0 : _a[0]); });
                         bundleInfoStats.push(stats_1.generateBundleStats({ ...chunk, size: asset === null || asset === void 0 ? void 0 : asset.size }));
                     }
@@ -422,8 +447,8 @@
                         switch (severity) {
                             case bundle_calculator_1.ThresholdSeverity.Warning:
-                                (_d = webpackStats.warnings) === null || _d === void 0 ? void 0 : _d.push({ message });
+                                (_f = webpackStats.warnings) === null || _f === void 0 ? void 0 : _f.push({ message });
                                 break;
                             case bundle_calculator_1.ThresholdSeverity.Error:
-                                (_e = webpackStats.errors) === null || _e === void 0 ? void 0 : _e.push({ message });
+                                (_g = webpackStats.errors) === null || _g === void 0 ? void 0 : _g.push({ message });
                                 break;
                             default:
@@ -435,5 +460,5 @@
                 if (buildSuccess) {
                     // Copy assets
-                    if (!options.watch && ((_f = options.assets) === null || _f === void 0 ? void 0 : _f.length)) {
+                    if (!options.watch && ((_h = options.assets) === null || _h === void 0 ? void 0 : _h.length)) {
                         spinner.start('Copying assets...');
                         try {
@@ -450,6 +475,6 @@
                         const WOFFSupportNeeded = !buildBrowserFeatures.isFeatureSupported('woff2');
                         const entrypoints = package_chunk_sort_1.generateEntryPoints({
-                            scripts: (_g = options.scripts) !== null && _g !== void 0 ? _g : [],
-                            styles: (_h = options.styles) !== null && _h !== void 0 ? _h : [],
+                            scripts: (_j = options.scripts) !== null && _j !== void 0 ? _j : [],
+                            styles: (_k = options.styles) !== null && _k !== void 0 ? _k : [],
                         });
                         const indexHtmlGenerator = new index_html_generator_1.IndexHtmlGenerator({
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/dev-server/index.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/dev-server/index.js	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/dev-server/index.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -275,4 +275,7 @@
                 logger.info(`\n${color_1.colors.greenBright(color_1.colors.symbols.check)} Compiled successfully.`);
             }
+            else {
+                logger.info(`\n${color_1.colors.redBright(color_1.colors.symbols.cross)} Failed to compile.`);
+            }
             return { ...buildEvent, baseUrl: serverAddress };
         }));
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/action-executor.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/action-executor.js	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/action-executor.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -63,11 +63,10 @@
         for (const action of actions) {
             const execution = executor(action);
-            executions.set(execution, execution.then((result) => {
-                executions.delete(execution);
-                return result;
-            }));
+            executions.set(execution, execution.then((result) => [execution, result]));
         }
         while (executions.size > 0) {
-            yield Promise.race(executions.values());
+            const [execution, result] = await Promise.race(executions.values());
+            executions.delete(execution);
+            yield result;
         }
     }
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.d.ts
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.d.ts	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -25,4 +25,5 @@
     replacements?: [string, string][];
     supportedBrowsers?: string[] | Record<string, string>;
+    memoryMode?: boolean;
 }
 export interface ProcessBundleResult {
@@ -36,7 +37,9 @@
     size: number;
     integrity?: string;
+    content?: string;
     map?: {
         filename: string;
         size: number;
+        content?: string;
     };
 }
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.js	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/utils/process-bundle.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -135,5 +135,5 @@
 exports.process = process;
 async function processBundle(options) {
-    const { optimize, isOriginal, code, map, downlevelMap, filename: filepath, hiddenSourceMaps, cacheKeys = [], integrityAlgorithm, } = options;
+    const { optimize, isOriginal, code, map, downlevelMap, filename: filepath, hiddenSourceMaps, cacheKeys = [], integrityAlgorithm, memoryMode, } = options;
     const filename = path.basename(filepath);
     let resultCode = code;
@@ -169,9 +169,13 @@
         }
         await cachePut(mapContent, cacheKeys[isOriginal ? 1 /* OriginalMap */ : 3 /* DownlevelMap */]);
-        fs.writeFileSync(filepath + '.map', mapContent);
-    }
-    const fileResult = createFileEntry(filepath, resultCode, mapContent, integrityAlgorithm);
+        if (!memoryMode) {
+            fs.writeFileSync(filepath + '.map', mapContent);
+        }
+    }
+    const fileResult = createFileEntry(filepath, resultCode, mapContent, memoryMode, integrityAlgorithm);
     await cachePut(resultCode, cacheKeys[isOriginal ? 0 /* OriginalCode */ : 2 /* DownlevelCode */], fileResult.integrity);
-    fs.writeFileSync(filepath, resultCode);
+    if (!memoryMode) {
+        fs.writeFileSync(filepath, resultCode);
+    }
     return fileResult;
 }
@@ -201,9 +205,10 @@
     return { code: minifyOutput.code, map: minifyOutput.map };
 }
-function createFileEntry(filename, code, map, integrityAlgorithm) {
+function createFileEntry(filename, code, map, memoryMode, integrityAlgorithm) {
     return {
         filename: filename,
         size: Buffer.byteLength(code),
         integrity: integrityAlgorithm && generateIntegrityValue(integrityAlgorithm, code),
+        content: memoryMode ? code : undefined,
         map: !map
             ? undefined
@@ -211,4 +216,5 @@
                 filename: filename + '.map',
                 size: Buffer.byteLength(map),
+                content: memoryMode ? map : undefined,
             },
     };
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/browser.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/browser.js	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/browser.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -38,4 +38,5 @@
         resolve: {
             mainFields: ['es2015', 'browser', 'module', 'main'],
+            conditionNames: ['es2015', '...'],
         },
         output: {
Index: trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/test.js
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/test.js	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/test.js	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -62,4 +62,5 @@
         resolve: {
             mainFields: ['es2015', 'browser', 'module', 'main'],
+            conditionNames: ['es2015', '...'],
         },
         devtool: false,
Index: trip-planner-front/node_modules/@angular-devkit/build-optimizer/package.json
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-optimizer/package.json	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-optimizer/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -1,14 +1,7 @@
 {
-  "_args": [
-    [
-      "@angular-devkit/build-optimizer@0.1202.9",
-      "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
-    ]
-  ],
-  "_development": true,
-  "_from": "@angular-devkit/build-optimizer@0.1202.9",
-  "_id": "@angular-devkit/build-optimizer@0.1202.9",
+  "_from": "@angular-devkit/build-optimizer@0.1202.13",
+  "_id": "@angular-devkit/build-optimizer@0.1202.13",
   "_inBundle": false,
-  "_integrity": "sha512-yDR7f2fRWzJdqa7U0eIYu5fCRIae3tcSsYE18UPiV5ypGK3talMIpZ1ibkklr9Nm9SAB6Js1/EdVBGB5jo3R9A==",
+  "_integrity": "sha512-XX6rX5+mAl+MiIJDvi5N5mBLWOoskhMJ5r/G1PEqv0CMMJSSw60zUTndjxfq/nrX0PtsV3j/aqHN4Sj0w/gumg==",
   "_location": "/@angular-devkit/build-optimizer",
   "_phantomChildren": {},
@@ -16,18 +9,19 @@
     "type": "version",
     "registry": true,
-    "raw": "@angular-devkit/build-optimizer@0.1202.9",
+    "raw": "@angular-devkit/build-optimizer@0.1202.13",
     "name": "@angular-devkit/build-optimizer",
     "escapedName": "@angular-devkit%2fbuild-optimizer",
     "scope": "@angular-devkit",
-    "rawSpec": "0.1202.9",
+    "rawSpec": "0.1202.13",
     "saveSpec": null,
-    "fetchSpec": "0.1202.9"
+    "fetchSpec": "0.1202.13"
   },
   "_requiredBy": [
     "/@angular-devkit/build-angular"
   ],
-  "_resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.1202.9.tgz",
-  "_spec": "0.1202.9",
-  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
+  "_resolved": "https://registry.npmjs.org/@angular-devkit/build-optimizer/-/build-optimizer-0.1202.13.tgz",
+  "_shasum": "7f0b13368cc2a08b1f4789ab1296a1609f5049ea",
+  "_spec": "@angular-devkit/build-optimizer@0.1202.13",
+  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@angular-devkit\\build-angular",
   "author": {
     "name": "Angular Authors"
@@ -39,4 +33,5 @@
     "url": "https://github.com/angular/angular-cli/issues"
   },
+  "bundleDependencies": false,
   "dependencies": {
     "source-map": "0.7.3",
@@ -44,8 +39,9 @@
     "typescript": "4.3.5"
   },
+  "deprecated": false,
   "description": "Angular Build Optimizer",
   "engines": {
     "node": "^12.14.1 || >=14.0.0",
-    "npm": "^6.11.0 || ^7.5.6",
+    "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
     "yarn": ">= 1.13.0"
   },
@@ -75,4 +71,4 @@
   },
   "typings": "src/index.d.ts",
-  "version": "0.1202.9"
+  "version": "0.1202.13"
 }
Index: trip-planner-front/node_modules/@angular-devkit/build-webpack/package.json
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/build-webpack/package.json	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/build-webpack/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -1,14 +1,7 @@
 {
-  "_args": [
-    [
-      "@angular-devkit/build-webpack@0.1202.9",
-      "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
-    ]
-  ],
-  "_development": true,
-  "_from": "@angular-devkit/build-webpack@0.1202.9",
-  "_id": "@angular-devkit/build-webpack@0.1202.9",
+  "_from": "@angular-devkit/build-webpack@0.1202.13",
+  "_id": "@angular-devkit/build-webpack@0.1202.13",
   "_inBundle": false,
-  "_integrity": "sha512-UKVxFTRSyDpQDxM1yk1OJiynhbryrbsy+WgZ/gFcnZcrRGtrpAWOq+uMXfq05zET6CNqpOKBnxy9LSHAwXR5Ig==",
+  "_integrity": "sha512-KafzGyHuU2gBKaSICfMTFP2niTYZ/46DKU94TQ0lCILdJZsj0NE5M/288LSCbYgu2c7srJKz+Rvb+JcYGxIZ1g==",
   "_location": "/@angular-devkit/build-webpack",
   "_phantomChildren": {},
@@ -16,18 +9,19 @@
     "type": "version",
     "registry": true,
-    "raw": "@angular-devkit/build-webpack@0.1202.9",
+    "raw": "@angular-devkit/build-webpack@0.1202.13",
     "name": "@angular-devkit/build-webpack",
     "escapedName": "@angular-devkit%2fbuild-webpack",
     "scope": "@angular-devkit",
-    "rawSpec": "0.1202.9",
+    "rawSpec": "0.1202.13",
     "saveSpec": null,
-    "fetchSpec": "0.1202.9"
+    "fetchSpec": "0.1202.13"
   },
   "_requiredBy": [
     "/@angular-devkit/build-angular"
   ],
-  "_resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1202.9.tgz",
-  "_spec": "0.1202.9",
-  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
+  "_resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1202.13.tgz",
+  "_shasum": "875f9f9677bb10056b52230965dc2f00bd3089dd",
+  "_spec": "@angular-devkit/build-webpack@0.1202.13",
+  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@angular-devkit\\build-angular",
   "author": {
     "name": "Angular Authors"
@@ -37,12 +31,14 @@
   },
   "builders": "builders.json",
+  "bundleDependencies": false,
   "dependencies": {
-    "@angular-devkit/architect": "0.1202.9",
+    "@angular-devkit/architect": "0.1202.13",
     "rxjs": "6.6.7"
   },
+  "deprecated": false,
   "description": "Webpack Builder for Architect",
   "engines": {
     "node": "^12.14.1 || >=14.0.0",
-    "npm": "^6.11.0 || ^7.5.6",
+    "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
     "yarn": ">= 1.13.0"
   },
@@ -68,4 +64,4 @@
   },
   "typings": "src/index.d.ts",
-  "version": "0.1202.9"
+  "version": "0.1202.13"
 }
Index: trip-planner-front/node_modules/@angular-devkit/core/package.json
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/core/package.json	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/core/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -1,14 +1,7 @@
 {
-  "_args": [
-    [
-      "@angular-devkit/core@12.2.9",
-      "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
-    ]
-  ],
-  "_development": true,
-  "_from": "@angular-devkit/core@12.2.9",
-  "_id": "@angular-devkit/core@12.2.9",
+  "_from": "@angular-devkit/core@12.2.13",
+  "_id": "@angular-devkit/core@12.2.13",
   "_inBundle": false,
-  "_integrity": "sha512-iPHQiga08bbryiVq3QYzwpuq9sNb8CB/MVy65MHJ0fuW1z6RYDeUh1EziitBBUT2d81KWKPO1wQ2DuUoxOg4mg==",
+  "_integrity": "sha512-9csMF0p+lTvlWnutxxTZ/+pDRMIbXk/TV4MGLbcqUPPfeG3dCRwErns73xLuMTwp9qO/KCLkFqNaM6cGOoqsDA==",
   "_location": "/@angular-devkit/core",
   "_phantomChildren": {},
@@ -16,11 +9,11 @@
     "type": "version",
     "registry": true,
-    "raw": "@angular-devkit/core@12.2.9",
+    "raw": "@angular-devkit/core@12.2.13",
     "name": "@angular-devkit/core",
     "escapedName": "@angular-devkit%2fcore",
     "scope": "@angular-devkit",
-    "rawSpec": "12.2.9",
+    "rawSpec": "12.2.13",
     "saveSpec": null,
-    "fetchSpec": "12.2.9"
+    "fetchSpec": "12.2.13"
   },
   "_requiredBy": [
@@ -31,7 +24,8 @@
     "/@schematics/angular"
   ],
-  "_resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.9.tgz",
-  "_spec": "12.2.9",
-  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
+  "_resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-12.2.13.tgz",
+  "_shasum": "db3929d1bfce71010b37fb7c4e6c33ef80a4f35f",
+  "_spec": "@angular-devkit/core@12.2.13",
+  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@angular-devkit\\build-angular",
   "author": {
     "name": "Angular Authors"
@@ -40,4 +34,5 @@
     "url": "https://github.com/angular/angular-cli/issues"
   },
+  "bundleDependencies": false,
   "dependencies": {
     "ajv": "8.6.2",
@@ -48,8 +43,9 @@
     "source-map": "0.7.3"
   },
+  "deprecated": false,
   "description": "Angular DevKit - Core Utility Library",
   "engines": {
     "node": "^12.14.1 || >=14.0.0",
-    "npm": "^6.11.0 || ^7.5.6",
+    "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
     "yarn": ">= 1.13.0"
   },
@@ -71,4 +67,4 @@
   },
   "typings": "src/index.d.ts",
-  "version": "12.2.9"
+  "version": "12.2.13"
 }
Index: trip-planner-front/node_modules/@angular-devkit/schematics/package.json
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/schematics/package.json	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/schematics/package.json	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -1,14 +1,7 @@
 {
-  "_args": [
-    [
-      "@angular-devkit/schematics@12.2.9",
-      "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
-    ]
-  ],
-  "_development": true,
-  "_from": "@angular-devkit/schematics@12.2.9",
-  "_id": "@angular-devkit/schematics@12.2.9",
+  "_from": "@angular-devkit/schematics@12.2.13",
+  "_id": "@angular-devkit/schematics@12.2.13",
   "_inBundle": false,
-  "_integrity": "sha512-OcMDCdlIxiir8XntrNXdXEPi9/8BRx54oYZeRosr0sJZlz4pPzsHs36t5uX2DURYYMkNNMaBnf2luUIC+77ZsA==",
+  "_integrity": "sha512-LQTv72R5Ma1uowMEeii2wIoDWI4bYQyZvunqPy9jRveBTjli2yVwwcOziGCVyttwlYs46bSdxThgeEvVIako2w==",
   "_location": "/@angular-devkit/schematics",
   "_phantomChildren": {},
@@ -16,11 +9,11 @@
     "type": "version",
     "registry": true,
-    "raw": "@angular-devkit/schematics@12.2.9",
+    "raw": "@angular-devkit/schematics@12.2.13",
     "name": "@angular-devkit/schematics",
     "escapedName": "@angular-devkit%2fschematics",
     "scope": "@angular-devkit",
-    "rawSpec": "12.2.9",
+    "rawSpec": "12.2.13",
     "saveSpec": null,
-    "fetchSpec": "12.2.9"
+    "fetchSpec": "12.2.13"
   },
   "_requiredBy": [
@@ -28,7 +21,8 @@
     "/@schematics/angular"
   ],
-  "_resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.9.tgz",
-  "_spec": "12.2.9",
-  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
+  "_resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-12.2.13.tgz",
+  "_shasum": "6464d86fa3ccd0efb5ead46c793cef9ec45c7758",
+  "_spec": "@angular-devkit/schematics@12.2.13",
+  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\@angular\\cli",
   "author": {
     "name": "Angular Authors"
@@ -37,13 +31,15 @@
     "url": "https://github.com/angular/angular-cli/issues"
   },
+  "bundleDependencies": false,
   "dependencies": {
-    "@angular-devkit/core": "12.2.9",
+    "@angular-devkit/core": "12.2.13",
     "ora": "5.4.1",
     "rxjs": "6.6.7"
   },
+  "deprecated": false,
   "description": "Angular Schematics - Library",
   "engines": {
     "node": "^12.14.1 || >=14.0.0",
-    "npm": "^6.11.0 || ^7.5.6",
+    "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
     "yarn": ">= 1.13.0"
   },
@@ -70,4 +66,4 @@
   },
   "typings": "src/index.d.ts",
-  "version": "12.2.9"
+  "version": "12.2.13"
 }
Index: trip-planner-front/node_modules/@angular-devkit/schematics/src/utility/update-buffer.d.ts
===================================================================
--- trip-planner-front/node_modules/@angular-devkit/schematics/src/utility/update-buffer.d.ts	(revision 59329aad30ff25ec5095bb7ffb78ddb59b7dc111)
+++ trip-planner-front/node_modules/@angular-devkit/schematics/src/utility/update-buffer.d.ts	(revision 1ad8e64a349fcc7c996155279b16efc2cfe001dd)
@@ -34,5 +34,5 @@
     constructor(start: number, end: number, originalContent: Buffer);
     get length(): number;
-    toString(encoding?: string): string;
+    toString(encoding?: BufferEncoding): string;
     slice(start: number): Chunk;
     append(buffer: Buffer, essential: boolean): void;
@@ -66,5 +66,5 @@
     get length(): number;
     get original(): Buffer;
-    toString(encoding?: string): string;
+    toString(encoding?: BufferEncoding): string;
     generate(): Buffer;
     insertLeft(index: number, content: Buffer, assert?: boolean): void;
