@angular/ssr 19.0.0-next.11 → 19.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/ssr.mjs CHANGED
@@ -2,12 +2,14 @@ import { APP_BASE_HREF, PlatformLocation } from '@angular/common';
2
2
  import { ɵConsole as _Console, InjectionToken, makeEnvironmentProviders, runInInjectionContext, createPlatformFactory, platformCore, ApplicationRef, ɵwhenStable as _whenStable, Compiler, LOCALE_ID, ɵresetCompiledComponents as _resetCompiledComponents } from '@angular/core';
3
3
  import { ɵSERVER_CONTEXT as _SERVER_CONTEXT, renderModule, renderApplication, INITIAL_CONFIG, ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as _INTERNAL_SERVER_PLATFORM_PROVIDERS } from '@angular/platform-server';
4
4
  import { ɵloadChildren as _loadChildren, Router } from '@angular/router';
5
+ import { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from '@angular/ssr/tokens';
5
6
  import Critters from '../third_party/critters/index.js';
6
7
 
7
8
  /**
8
9
  * Manages server-side assets.
9
10
  */
10
11
  class ServerAssets {
12
+ manifest;
11
13
  /**
12
14
  * Creates an instance of ServerAsset.
13
15
  *
@@ -48,13 +50,10 @@ class ServerAssets {
48
50
  * It overrides the `log` method to suppress logs that match certain predefined messages.
49
51
  */
50
52
  class Console extends _Console {
51
- constructor() {
52
- super(...arguments);
53
- /**
54
- * A set of log messages that should be ignored and not printed to the console.
55
- */
56
- this.ignoredLogs = new Set(['Angular is running in development mode.']);
57
- }
53
+ /**
54
+ * A set of log messages that should be ignored and not printed to the console.
55
+ */
56
+ ignoredLogs = new Set(['Angular is running in development mode.']);
58
57
  /**
59
58
  * Logs a message to the console if it is not in the set of ignored messages.
60
59
  *
@@ -367,19 +366,17 @@ function provideServerRoutesConfig(routes) {
367
366
  * @typeParam AdditionalMetadata - Type of additional metadata that can be associated with route nodes.
368
367
  */
369
368
  class RouteTree {
370
- constructor() {
371
- /**
372
- * The root node of the route tree.
373
- * All routes are stored and accessed relative to this root node.
374
- */
375
- this.root = this.createEmptyRouteTreeNode('');
376
- /**
377
- * A counter that tracks the order of route insertion.
378
- * This ensures that routes are matched in the order they were defined,
379
- * with earlier routes taking precedence.
380
- */
381
- this.insertionIndexCounter = 0;
382
- }
369
+ /**
370
+ * The root node of the route tree.
371
+ * All routes are stored and accessed relative to this root node.
372
+ */
373
+ root = this.createEmptyRouteTreeNode('');
374
+ /**
375
+ * A counter that tracks the order of route insertion.
376
+ * This ensures that routes are matched in the order they were defined,
377
+ * with earlier routes taking precedence.
378
+ */
379
+ insertionIndexCounter = 0;
383
380
  /**
384
381
  * Inserts a new route into the route tree.
385
382
  * The route is broken down into segments, and each segment is added to the tree.
@@ -904,13 +901,11 @@ async function extractRoutesAndCreateRouteTree(url, manifest = getAngularAppMani
904
901
  * Hooks are functions that can be invoked with specific arguments to allow modifications or enhancements.
905
902
  */
906
903
  class Hooks {
907
- constructor() {
908
- /**
909
- * A map of hook names to arrays of hook functions.
910
- * Each hook name can have multiple associated functions, which are executed in sequence.
911
- */
912
- this.store = new Map();
913
- }
904
+ /**
905
+ * A map of hook names to arrays of hook functions.
906
+ * Each hook name can have multiple associated functions, which are executed in sequence.
907
+ */
908
+ store = new Map();
914
909
  /**
915
910
  * Executes all hooks associated with the specified name, passing the given argument to each hook function.
916
911
  * The hooks are invoked sequentially, and the argument may be modified by each hook.
@@ -996,6 +991,7 @@ class Hooks {
996
991
  * configuration and using it to match incoming requests to the appropriate routes.
997
992
  */
998
993
  class ServerRouter {
994
+ routeTree;
999
995
  /**
1000
996
  * Creates an instance of the `ServerRouter`.
1001
997
  *
@@ -1061,22 +1057,6 @@ class ServerRouter {
1061
1057
  }
1062
1058
  }
1063
1059
 
1064
- /**
1065
- * Injection token for the current request.
1066
- * @developerPreview
1067
- */
1068
- const REQUEST = new InjectionToken('REQUEST');
1069
- /**
1070
- * Injection token for the response initialization options.
1071
- * @developerPreview
1072
- */
1073
- const RESPONSE_INIT = new InjectionToken('RESPONSE_INIT');
1074
- /**
1075
- * Injection token for additional request context.
1076
- * @developerPreview
1077
- */
1078
- const REQUEST_CONTEXT = new InjectionToken('REQUEST_CONTEXT');
1079
-
1080
1060
  /**
1081
1061
  * Generates a SHA-256 hash of the provided string.
1082
1062
  *
@@ -1147,6 +1127,10 @@ class CrittersBase extends Critters {
1147
1127
  }
1148
1128
  /* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */
1149
1129
  class InlineCriticalCssProcessor extends CrittersBase {
1130
+ readFile;
1131
+ outputPath;
1132
+ addedCspScriptsDocuments = new WeakSet();
1133
+ documentNonces = new WeakMap();
1150
1134
  constructor(readFile, outputPath) {
1151
1135
  super({
1152
1136
  logger: {
@@ -1171,8 +1155,6 @@ class InlineCriticalCssProcessor extends CrittersBase {
1171
1155
  });
1172
1156
  this.readFile = readFile;
1173
1157
  this.outputPath = outputPath;
1174
- this.addedCspScriptsDocuments = new WeakSet();
1175
- this.documentNonces = new WeakMap();
1176
1158
  }
1177
1159
  /**
1178
1160
  * Override of the Critters `embedLinkedStylesheet` method
@@ -1261,15 +1243,27 @@ class InlineCriticalCssProcessor extends CrittersBase {
1261
1243
  * @template Value - The type of the cache values.
1262
1244
  */
1263
1245
  class LRUCache {
1246
+ /**
1247
+ * The maximum number of items the cache can hold.
1248
+ */
1249
+ capacity;
1250
+ /**
1251
+ * Internal storage for the cache, mapping keys to their associated nodes in the linked list.
1252
+ */
1253
+ cache = new Map();
1254
+ /**
1255
+ * Head of the doubly linked list, representing the most recently used item.
1256
+ */
1257
+ head;
1258
+ /**
1259
+ * Tail of the doubly linked list, representing the least recently used item.
1260
+ */
1261
+ tail;
1264
1262
  /**
1265
1263
  * Creates a new LRUCache instance.
1266
1264
  * @param capacity The maximum number of items the cache can hold.
1267
1265
  */
1268
1266
  constructor(capacity) {
1269
- /**
1270
- * Internal storage for the cache, mapping keys to their associated nodes in the linked list.
1271
- */
1272
- this.cache = new Map();
1273
1267
  this.capacity = capacity;
1274
1268
  }
1275
1269
  /**
@@ -1395,29 +1389,39 @@ const SERVER_CONTEXT_VALUE = {
1395
1389
  * The `AngularServerApp` class handles server-side rendering and asset management for a specific locale.
1396
1390
  */
1397
1391
  class AngularServerApp {
1398
- constructor() {
1399
- /**
1400
- * Hooks for extending or modifying the behavior of the server application.
1401
- * This instance can be used to attach custom functionality to various events in the server application lifecycle.
1402
- */
1403
- this.hooks = new Hooks();
1404
- /**
1405
- * The manifest associated with this server application.
1406
- */
1407
- this.manifest = getAngularAppManifest();
1408
- /**
1409
- * An instance of ServerAsset that handles server-side asset.
1410
- */
1411
- this.assets = new ServerAssets(this.manifest);
1412
- /**
1413
- * Cache for storing critical CSS for pages.
1414
- * Stores a maximum of MAX_INLINE_CSS_CACHE_ENTRIES entries.
1415
- *
1416
- * Uses an LRU (Least Recently Used) eviction policy, meaning that when the cache is full,
1417
- * the least recently accessed page's critical CSS will be removed to make space for new entries.
1418
- */
1419
- this.criticalCssLRUCache = new LRUCache(MAX_INLINE_CSS_CACHE_ENTRIES);
1420
- }
1392
+ /**
1393
+ * Hooks for extending or modifying the behavior of the server application.
1394
+ * This instance can be used to attach custom functionality to various events in the server application lifecycle.
1395
+ */
1396
+ hooks = new Hooks();
1397
+ /**
1398
+ * The manifest associated with this server application.
1399
+ */
1400
+ manifest = getAngularAppManifest();
1401
+ /**
1402
+ * An instance of ServerAsset that handles server-side asset.
1403
+ */
1404
+ assets = new ServerAssets(this.manifest);
1405
+ /**
1406
+ * The router instance used for route matching and handling.
1407
+ */
1408
+ router;
1409
+ /**
1410
+ * The `inlineCriticalCssProcessor` is responsible for handling critical CSS inlining.
1411
+ */
1412
+ inlineCriticalCssProcessor;
1413
+ /**
1414
+ * The bootstrap mechanism for the server application.
1415
+ */
1416
+ boostrap;
1417
+ /**
1418
+ * Cache for storing critical CSS for pages.
1419
+ * Stores a maximum of MAX_INLINE_CSS_CACHE_ENTRIES entries.
1420
+ *
1421
+ * Uses an LRU (Least Recently Used) eviction policy, meaning that when the cache is full,
1422
+ * the least recently accessed page's critical CSS will be removed to make space for new entries.
1423
+ */
1424
+ criticalCssLRUCache = new LRUCache(MAX_INLINE_CSS_CACHE_ENTRIES);
1421
1425
  /**
1422
1426
  * Renders a response for the given HTTP request using the server application.
1423
1427
  *
@@ -1640,16 +1644,6 @@ function getPotentialLocaleIdFromUrl(url, basePath) {
1640
1644
  * @developerPreview
1641
1645
  */
1642
1646
  class AngularAppEngine {
1643
- constructor() {
1644
- /**
1645
- * The manifest for the server application.
1646
- */
1647
- this.manifest = getAngularAppEngineManifest();
1648
- /**
1649
- * A cache that holds entry points, keyed by their potential locale string.
1650
- */
1651
- this.entryPointsCache = new Map();
1652
- }
1653
1647
  /**
1654
1648
  * Hooks for extending or modifying the behavior of the server application.
1655
1649
  * These hooks are used by the Angular CLI when running the development server and
@@ -1657,7 +1651,7 @@ class AngularAppEngine {
1657
1651
  *
1658
1652
  * @private
1659
1653
  */
1660
- static { this.ɵhooks = new Hooks(); }
1654
+ static ɵhooks = /* #__PURE__*/ new Hooks();
1661
1655
  /**
1662
1656
  * Provides access to the hooks for extending or modifying the server application's behavior.
1663
1657
  * This allows attaching custom functionality to various server application lifecycle events.
@@ -1667,6 +1661,14 @@ class AngularAppEngine {
1667
1661
  get hooks() {
1668
1662
  return AngularAppEngine.ɵhooks;
1669
1663
  }
1664
+ /**
1665
+ * The manifest for the server application.
1666
+ */
1667
+ manifest = getAngularAppEngineManifest();
1668
+ /**
1669
+ * A cache that holds entry points, keyed by their potential locale string.
1670
+ */
1671
+ entryPointsCache = new Map();
1670
1672
  /**
1671
1673
  * Renders a response for the given HTTP request using the server application.
1672
1674
  *
@@ -1782,5 +1784,5 @@ function createRequestHandler(handler) {
1782
1784
  return handler;
1783
1785
  }
1784
1786
 
1785
- export { AngularAppEngine, REQUEST, REQUEST_CONTEXT, RESPONSE_INIT, RenderMode, createRequestHandler, provideServerRoutesConfig, InlineCriticalCssProcessor as ɵInlineCriticalCssProcessor, destroyAngularServerApp as ɵdestroyAngularServerApp, extractRoutesAndCreateRouteTree as ɵextractRoutesAndCreateRouteTree, getOrCreateAngularServerApp as ɵgetOrCreateAngularServerApp, getRoutesFromAngularRouterConfig as ɵgetRoutesFromAngularRouterConfig, setAngularAppEngineManifest as ɵsetAngularAppEngineManifest, setAngularAppManifest as ɵsetAngularAppManifest };
1787
+ export { AngularAppEngine, RenderMode, createRequestHandler, provideServerRoutesConfig, InlineCriticalCssProcessor as ɵInlineCriticalCssProcessor, destroyAngularServerApp as ɵdestroyAngularServerApp, extractRoutesAndCreateRouteTree as ɵextractRoutesAndCreateRouteTree, getOrCreateAngularServerApp as ɵgetOrCreateAngularServerApp, getRoutesFromAngularRouterConfig as ɵgetRoutesFromAngularRouterConfig, setAngularAppEngineManifest as ɵsetAngularAppEngineManifest, setAngularAppManifest as ɵsetAngularAppManifest };
1786
1788
  //# sourceMappingURL=ssr.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ssr.mjs","sources":["../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/assets.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/console.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/manifest.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/url.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/ng.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-config.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-tree.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/ng-routes.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/hooks.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/router.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/tokens.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/crypto.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/inline-critical-css.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/lru-cache.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/private_export.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/i18n.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app-engine.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/handler.mjs"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages server-side assets.\n */\nexport class ServerAssets {\n /**\n * Creates an instance of ServerAsset.\n *\n * @param manifest - The manifest containing the server assets.\n */\n constructor(manifest) {\n this.manifest = manifest;\n }\n /**\n * Retrieves the content of a server-side asset using its path.\n *\n * @param path - The path to the server asset.\n * @returns A promise that resolves to the asset content as a string.\n * @throws Error If the asset path is not found in the manifest, an error is thrown.\n */\n async getServerAsset(path) {\n const asset = this.manifest.assets.get(path);\n if (!asset) {\n throw new Error(`Server asset '${path}' does not exist.`);\n }\n return asset();\n }\n /**\n * Retrieves and caches the content of 'index.server.html'.\n *\n * @returns A promise that resolves to the content of 'index.server.html'.\n * @throws Error If there is an issue retrieving the asset.\n */\n getIndexServerHtml() {\n return this.getServerAsset('index.server.html');\n }\n}\n//# sourceMappingURL=assets.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\n/**\n * Custom implementation of the Angular Console service that filters out specific log messages.\n *\n * This class extends the internal Angular `ɵConsole` class to provide customized logging behavior.\n * It overrides the `log` method to suppress logs that match certain predefined messages.\n */\nexport class Console extends ɵConsole {\n constructor() {\n super(...arguments);\n /**\n * A set of log messages that should be ignored and not printed to the console.\n */\n this.ignoredLogs = new Set(['Angular is running in development mode.']);\n }\n /**\n * Logs a message to the console if it is not in the set of ignored messages.\n *\n * @param message - The message to log to the console.\n *\n * This method overrides the `log` method of the `ɵConsole` class. It checks if the\n * message is in the `ignoredLogs` set. If it is not, it delegates the logging to\n * the parent class's `log` method. Otherwise, the message is suppressed.\n */\n log(message) {\n if (!this.ignoredLogs.has(message)) {\n super.log(message);\n }\n }\n}\n//# sourceMappingURL=console.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * The Angular app manifest object.\n * This is used internally to store the current Angular app manifest.\n */\nlet angularAppManifest;\n/**\n * Sets the Angular app manifest.\n *\n * @param manifest - The manifest object to set for the Angular application.\n */\nexport function setAngularAppManifest(manifest) {\n angularAppManifest = manifest;\n}\n/**\n * Gets the Angular app manifest.\n *\n * @returns The Angular app manifest.\n * @throws Will throw an error if the Angular app manifest is not set.\n */\nexport function getAngularAppManifest() {\n if (!angularAppManifest) {\n throw new Error('Angular app manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppManifest;\n}\n/**\n * The Angular app engine manifest object.\n * This is used internally to store the current Angular app engine manifest.\n */\nlet angularAppEngineManifest;\n/**\n * Sets the Angular app engine manifest.\n *\n * @param manifest - The engine manifest object to set.\n */\nexport function setAngularAppEngineManifest(manifest) {\n angularAppEngineManifest = manifest;\n}\n/**\n * Gets the Angular app engine manifest.\n *\n * @returns The Angular app engine manifest.\n * @throws Will throw an error if the Angular app engine manifest is not set.\n */\nexport function getAngularAppEngineManifest() {\n if (!angularAppEngineManifest) {\n throw new Error('Angular app engine manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppEngineManifest;\n}\n//# sourceMappingURL=manifest.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Removes the trailing slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the trailing slash.\n * @returns The URL string without a trailing slash.\n *\n * @example\n * ```js\n * stripTrailingSlash('path/'); // 'path'\n * stripTrailingSlash('/path'); // '/path'\n * stripTrailingSlash('/'); // '/'\n * stripTrailingSlash(''); // ''\n * ```\n */\nexport function stripTrailingSlash(url) {\n // Check if the last character of the URL is a slash\n return url.length > 1 && url[url.length - 1] === '/' ? url.slice(0, -1) : url;\n}\n/**\n * Removes the leading slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the leading slash.\n * @returns The URL string without a leading slash.\n *\n * @example\n * ```js\n * stripLeadingSlash('/path'); // 'path'\n * stripLeadingSlash('/path/'); // 'path/'\n * stripLeadingSlash('/'); // '/'\n * stripLeadingSlash(''); // ''\n * ```\n */\nexport function stripLeadingSlash(url) {\n // Check if the first character of the URL is a slash\n return url.length > 1 && url[0] === '/' ? url.slice(1) : url;\n}\n/**\n * Adds a leading slash to a URL if it does not already have one.\n *\n * @param url - The URL string to which the leading slash will be added.\n * @returns The URL string with a leading slash.\n *\n * @example\n * ```js\n * addLeadingSlash('path'); // '/path'\n * addLeadingSlash('/path'); // '/path'\n * ```\n */\nexport function addLeadingSlash(url) {\n // Check if the URL already starts with a slash\n return url[0] === '/' ? url : `/${url}`;\n}\n/**\n * Joins URL parts into a single URL string.\n *\n * This function takes multiple URL segments, normalizes them by removing leading\n * and trailing slashes where appropriate, and then joins them into a single URL.\n *\n * @param parts - The parts of the URL to join. Each part can be a string with or without slashes.\n * @returns The joined URL string, with normalized slashes.\n *\n * @example\n * ```js\n * joinUrlParts('path/', '/to/resource'); // '/path/to/resource'\n * joinUrlParts('/path/', 'to/resource'); // '/path/to/resource'\n * joinUrlParts('', ''); // '/'\n * ```\n */\nexport function joinUrlParts(...parts) {\n const normalizeParts = [];\n for (const part of parts) {\n if (part === '') {\n // Skip any empty parts\n continue;\n }\n let normalizedPart = part;\n if (part[0] === '/') {\n normalizedPart = normalizedPart.slice(1);\n }\n if (part[part.length - 1] === '/') {\n normalizedPart = normalizedPart.slice(0, -1);\n }\n if (normalizedPart !== '') {\n normalizeParts.push(normalizedPart);\n }\n }\n return addLeadingSlash(normalizeParts.join('/'));\n}\n/**\n * Strips `/index.html` from the end of a URL's path, if present.\n *\n * This function is used to convert URLs pointing to an `index.html` file into their directory\n * equivalents. For example, it transforms a URL like `http://www.example.com/page/index.html`\n * into `http://www.example.com/page`.\n *\n * @param url - The URL object to process.\n * @returns A new URL object with `/index.html` removed from the path, if it was present.\n *\n * @example\n * ```typescript\n * const originalUrl = new URL('http://www.example.com/page/index.html');\n * const cleanedUrl = stripIndexHtmlFromURL(originalUrl);\n * console.log(cleanedUrl.href); // Output: 'http://www.example.com/page'\n * ```\n */\nexport function stripIndexHtmlFromURL(url) {\n if (url.pathname.endsWith('/index.html')) {\n const modifiedURL = new URL(url);\n // Remove '/index.html' from the pathname\n modifiedURL.pathname = modifiedURL.pathname.slice(0, /** '/index.html'.length */ -11);\n return modifiedURL;\n }\n return url;\n}\n//# sourceMappingURL=url.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\nimport { ɵSERVER_CONTEXT as SERVER_CONTEXT, renderApplication, renderModule, } from '@angular/platform-server';\nimport { Console } from '../console';\nimport { stripIndexHtmlFromURL } from './url';\n/**\n * Renders an Angular application or module to an HTML string.\n *\n * This function determines whether the provided `bootstrap` value is an Angular module\n * or a bootstrap function and calls the appropriate rendering method (`renderModule` or\n * `renderApplication`) based on that determination.\n *\n * @param html - The HTML string to be used as the initial document content.\n * @param bootstrap - Either an Angular module type or a function that returns a promise\n * resolving to an `ApplicationRef`.\n * @param url - The URL of the application. This is used for server-side rendering to\n * correctly handle route-based rendering.\n * @param platformProviders - An array of platform providers to be used during the\n * rendering process.\n * @param serverContext - A string representing the server context, used to provide additional\n * context or metadata during server-side rendering.\n * @returns A promise that resolves to a string containing the rendered HTML.\n */\nexport function renderAngular(html, bootstrap, url, platformProviders, serverContext) {\n const providers = [\n {\n provide: SERVER_CONTEXT,\n useValue: serverContext,\n },\n {\n // An Angular Console Provider that does not print a set of predefined logs.\n provide: ɵConsole,\n // Using `useClass` would necessitate decorating `Console` with `@Injectable`,\n // which would require switching from `ts_library` to `ng_module`. This change\n // would also necessitate various patches of `@angular/bazel` to support ESM.\n useFactory: () => new Console(),\n },\n ...platformProviders,\n ];\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const urlToRender = stripIndexHtmlFromURL(url).toString();\n return isNgModule(bootstrap)\n ? renderModule(bootstrap, {\n url: urlToRender,\n document: html,\n extraProviders: providers,\n })\n : renderApplication(bootstrap, {\n url: urlToRender,\n document: html,\n platformProviders: providers,\n });\n}\n/**\n * Type guard to determine if a given value is an Angular module.\n * Angular modules are identified by the presence of the `ɵmod` static property.\n * This function helps distinguish between Angular modules and bootstrap functions.\n *\n * @param value - The value to be checked.\n * @returns True if the value is an Angular module (i.e., it has the `ɵmod` property), false otherwise.\n */\nexport function isNgModule(value) {\n return 'ɵmod' in value;\n}\n//# sourceMappingURL=ng.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { InjectionToken, makeEnvironmentProviders } from '@angular/core';\n/**\n * Different rendering modes for server routes.\n * @developerPreview\n */\nexport var RenderMode;\n(function (RenderMode) {\n /** AppShell rendering mode, typically used for pre-rendered shells of the application. */\n RenderMode[RenderMode[\"AppShell\"] = 0] = \"AppShell\";\n /** Server-Side Rendering (SSR) mode, where content is rendered on the server for each request. */\n RenderMode[RenderMode[\"Server\"] = 1] = \"Server\";\n /** Client-Side Rendering (CSR) mode, where content is rendered on the client side in the browser. */\n RenderMode[RenderMode[\"Client\"] = 2] = \"Client\";\n /** Static Site Generation (SSG) mode, where content is pre-rendered at build time and served as static files. */\n RenderMode[RenderMode[\"Prerender\"] = 3] = \"Prerender\";\n})(RenderMode || (RenderMode = {}));\n/**\n * Defines the fallback strategies for Static Site Generation (SSG) routes when a pre-rendered path is not available.\n * This is particularly relevant for routes with parameterized URLs where some paths might not be pre-rendered at build time.\n *\n * @developerPreview\n */\nexport var PrerenderFallback;\n(function (PrerenderFallback) {\n /**\n * Fallback to Server-Side Rendering (SSR) if the pre-rendered path is not available.\n * This strategy dynamically generates the page on the server at request time.\n */\n PrerenderFallback[PrerenderFallback[\"Server\"] = 0] = \"Server\";\n /**\n * Fallback to Client-Side Rendering (CSR) if the pre-rendered path is not available.\n * This strategy allows the page to be rendered on the client side.\n */\n PrerenderFallback[PrerenderFallback[\"Client\"] = 1] = \"Client\";\n /**\n * No fallback; if the path is not pre-rendered, the server will not handle the request.\n * This means the application will not provide any response for paths that are not pre-rendered.\n */\n PrerenderFallback[PrerenderFallback[\"None\"] = 2] = \"None\";\n})(PrerenderFallback || (PrerenderFallback = {}));\n/**\n * Token for providing the server routes configuration.\n * @internal\n */\nexport const SERVER_ROUTES_CONFIG = new InjectionToken('SERVER_ROUTES_CONFIG');\n/**\n * Configures the necessary providers for server routes configuration.\n *\n * @param routes - An array of server routes to be provided.\n * @returns An `EnvironmentProviders` object that contains the server routes configuration.\n * @developerPreview\n */\nexport function provideServerRoutesConfig(routes) {\n return makeEnvironmentProviders([\n {\n provide: SERVER_ROUTES_CONFIG,\n useValue: routes,\n },\n ]);\n}\n//# sourceMappingURL=route-config.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripTrailingSlash } from '../utils/url';\n/**\n * A route tree implementation that supports efficient route matching, including support for wildcard routes.\n * This structure is useful for organizing and retrieving routes in a hierarchical manner,\n * enabling complex routing scenarios with nested paths.\n *\n * @typeParam AdditionalMetadata - Type of additional metadata that can be associated with route nodes.\n */\nexport class RouteTree {\n constructor() {\n /**\n * The root node of the route tree.\n * All routes are stored and accessed relative to this root node.\n */\n this.root = this.createEmptyRouteTreeNode('');\n /**\n * A counter that tracks the order of route insertion.\n * This ensures that routes are matched in the order they were defined,\n * with earlier routes taking precedence.\n */\n this.insertionIndexCounter = 0;\n }\n /**\n * Inserts a new route into the route tree.\n * The route is broken down into segments, and each segment is added to the tree.\n * Parameterized segments (e.g., :id) are normalized to wildcards (*) for matching purposes.\n *\n * @param route - The route path to insert into the tree.\n * @param metadata - Metadata associated with the route, excluding the route path itself.\n */\n insert(route, metadata) {\n let node = this.root;\n const segments = this.getPathSegments(route);\n for (const segment of segments) {\n // Replace parameterized segments (e.g., :id) with a wildcard (*) for matching\n const normalizedSegment = segment[0] === ':' ? '*' : segment;\n let childNode = node.children.get(normalizedSegment);\n if (!childNode) {\n childNode = this.createEmptyRouteTreeNode(normalizedSegment);\n node.children.set(normalizedSegment, childNode);\n }\n node = childNode;\n }\n // At the leaf node, store the full route and its associated metadata\n node.metadata = {\n ...metadata,\n route: segments.join('/'),\n };\n node.insertionIndex = this.insertionIndexCounter++;\n }\n /**\n * Matches a given route against the route tree and returns the best matching route's metadata.\n * The best match is determined by the lowest insertion index, meaning the earliest defined route\n * takes precedence.\n *\n * @param route - The route path to match against the route tree.\n * @returns The metadata of the best matching route or `undefined` if no match is found.\n */\n match(route) {\n const segments = this.getPathSegments(route);\n return this.traverseBySegments(segments)?.metadata;\n }\n /**\n * Converts the route tree into a serialized format representation.\n * This method converts the route tree into an array of metadata objects that describe the structure of the tree.\n * The array represents the routes in a nested manner where each entry includes the route and its associated metadata.\n *\n * @returns An array of `RouteTreeNodeMetadata` objects representing the route tree structure.\n * Each object includes the `route` and associated metadata of a route.\n */\n toObject() {\n return Array.from(this.traverse());\n }\n /**\n * Constructs a `RouteTree` from an object representation.\n * This method is used to recreate a `RouteTree` instance from an array of metadata objects.\n * The array should be in the format produced by `toObject`, allowing for the reconstruction of the route tree\n * with the same routes and metadata.\n *\n * @param value - An array of `RouteTreeNodeMetadata` objects that represent the serialized format of the route tree.\n * Each object should include a `route` and its associated metadata.\n * @returns A new `RouteTree` instance constructed from the provided metadata objects.\n */\n static fromObject(value) {\n const tree = new RouteTree();\n for (const { route, ...metadata } of value) {\n tree.insert(route, metadata);\n }\n return tree;\n }\n /**\n * A generator function that recursively traverses the route tree and yields the metadata of each node.\n * This allows for easy and efficient iteration over all nodes in the tree.\n *\n * @param node - The current node to start the traversal from. Defaults to the root node of the tree.\n */\n *traverse(node = this.root) {\n if (node.metadata) {\n yield node.metadata;\n }\n for (const childNode of node.children.values()) {\n yield* this.traverse(childNode);\n }\n }\n /**\n * Extracts the path segments from a given route string.\n *\n * @param route - The route string from which to extract segments.\n * @returns An array of path segments.\n */\n getPathSegments(route) {\n return stripTrailingSlash(route).split('/');\n }\n /**\n * Recursively traverses the route tree from a given node, attempting to match the remaining route segments.\n * If the node is a leaf node (no more segments to match) and contains metadata, the node is yielded.\n *\n * This function prioritizes exact segment matches first, followed by wildcard matches (`*`),\n * and finally deep wildcard matches (`**`) that consume all segments.\n *\n * @param remainingSegments - The remaining segments of the route path to match.\n * @param node - The current node in the route tree to start traversal from.\n *\n * @returns The node that best matches the remaining segments or `undefined` if no match is found.\n */\n traverseBySegments(remainingSegments, node = this.root) {\n const { metadata, children } = node;\n // If there are no remaining segments and the node has metadata, return this node\n if (!remainingSegments?.length) {\n if (metadata) {\n return node;\n }\n return;\n }\n // If the node has no children, end the traversal\n if (!children.size) {\n return;\n }\n const [segment, ...restSegments] = remainingSegments;\n let currentBestMatchNode;\n // 1. Exact segment match\n const exactMatchNode = node.children.get(segment);\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, exactMatchNode));\n // 2. Wildcard segment match (`*`)\n const wildcardNode = node.children.get('*');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, wildcardNode));\n // 3. Deep wildcard segment match (`**`)\n const deepWildcardNode = node.children.get('**');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, deepWildcardNode);\n return currentBestMatchNode;\n }\n /**\n * Compares two nodes and returns the node with higher priority based on insertion index.\n * A node with a lower insertion index is prioritized as it was defined earlier.\n *\n * @param currentBestMatchNode - The current best match node.\n * @param candidateNode - The node being evaluated for higher priority based on insertion index.\n * @returns The node with higher priority (i.e., lower insertion index). If one of the nodes is `undefined`, the other node is returned.\n */\n getHigherPriorityNode(currentBestMatchNode, candidateNode) {\n if (!candidateNode) {\n return currentBestMatchNode;\n }\n if (!currentBestMatchNode) {\n return candidateNode;\n }\n return candidateNode.insertionIndex < currentBestMatchNode.insertionIndex\n ? candidateNode\n : currentBestMatchNode;\n }\n /**\n * Creates an empty route tree node with the specified segment.\n * This helper function is used during the tree construction.\n *\n * @param segment - The route segment that this node represents.\n * @returns A new, empty route tree node.\n */\n createEmptyRouteTreeNode(segment) {\n return {\n segment,\n insertionIndex: -1,\n children: new Map(),\n };\n }\n}\n//# sourceMappingURL=route-tree.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { APP_BASE_HREF, PlatformLocation } from '@angular/common';\nimport { ApplicationRef, Compiler, createPlatformFactory, platformCore, runInInjectionContext, ɵwhenStable as whenStable, ɵConsole, } from '@angular/core';\nimport { INITIAL_CONFIG, ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS, } from '@angular/platform-server';\nimport { Router, ɵloadChildren as loadChildrenHelper } from '@angular/router';\nimport { ServerAssets } from '../assets';\nimport { Console } from '../console';\nimport { getAngularAppManifest } from '../manifest';\nimport { isNgModule } from '../utils/ng';\nimport { joinUrlParts, stripLeadingSlash } from '../utils/url';\nimport { PrerenderFallback, RenderMode, SERVER_ROUTES_CONFIG } from './route-config';\nimport { RouteTree } from './route-tree';\n/**\n * Regular expression to match segments preceded by a colon in a string.\n */\nconst URL_PARAMETER_REGEXP = /(?<!\\\\):([^/]+)/g;\n/**\n * An set of HTTP status codes that are considered valid for redirect responses.\n */\nconst VALID_REDIRECT_RESPONSE_CODES = new Set([301, 302, 303, 307, 308]);\n/**\n * Traverses an array of route configurations to generate route tree node metadata.\n *\n * This function processes each route and its children, handling redirects, SSG (Static Site Generation) settings,\n * and lazy-loaded routes. It yields route metadata for each route and its potential variants.\n *\n * @param options - The configuration options for traversing routes.\n * @returns An async iterable iterator yielding either route tree node metadata or an error object with an error message.\n */\nasync function* traverseRoutesConfig(options) {\n const { routes, compiler, parentInjector, parentRoute, serverConfigRouteTree, invokeGetPrerenderParams, includePrerenderFallbackRoutes, } = options;\n for (const route of routes) {\n try {\n const { path = '', redirectTo, loadChildren, children } = route;\n const currentRoutePath = joinUrlParts(parentRoute, path);\n // Get route metadata from the server config route tree, if available\n let matchedMetaData;\n if (serverConfigRouteTree) {\n matchedMetaData = serverConfigRouteTree.match(currentRoutePath);\n if (!matchedMetaData) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route does not match any route defined in the server routing configuration. ` +\n 'Please ensure this route is added to the server routing configuration.',\n };\n continue;\n }\n matchedMetaData.presentInClientRouter = true;\n }\n const metadata = {\n ...matchedMetaData,\n route: currentRoutePath,\n };\n delete metadata.presentInClientRouter;\n // Handle redirects\n if (typeof redirectTo === 'string') {\n const redirectToResolved = resolveRedirectTo(currentRoutePath, redirectTo);\n if (metadata.status && !VALID_REDIRECT_RESPONSE_CODES.has(metadata.status)) {\n yield {\n error: `The '${metadata.status}' status code is not a valid redirect response code. ` +\n `Please use one of the following redirect response codes: ${[...VALID_REDIRECT_RESPONSE_CODES.values()].join(', ')}.`,\n };\n continue;\n }\n yield { ...metadata, redirectTo: redirectToResolved };\n }\n else if (metadata.renderMode === RenderMode.Prerender) {\n // Handle SSG routes\n yield* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n }\n else {\n yield metadata;\n }\n // Recursively process child routes\n if (children?.length) {\n yield* traverseRoutesConfig({\n ...options,\n routes: children,\n parentRoute: currentRoutePath,\n });\n }\n // Load and process lazy-loaded child routes\n if (loadChildren) {\n const loadedChildRoutes = await loadChildrenHelper(route, compiler, parentInjector).toPromise();\n if (loadedChildRoutes) {\n const { routes: childRoutes, injector = parentInjector } = loadedChildRoutes;\n yield* traverseRoutesConfig({\n ...options,\n routes: childRoutes,\n parentInjector: injector,\n parentRoute: currentRoutePath,\n });\n }\n }\n }\n catch (error) {\n yield {\n error: `Error processing route '${stripLeadingSlash(route.path ?? '')}': ${error.message}`,\n };\n }\n }\n}\n/**\n * Handles SSG (Static Site Generation) routes by invoking `getPrerenderParams` and yielding\n * all parameterized paths, returning any errors encountered.\n *\n * @param metadata - The metadata associated with the route tree node.\n * @param parentInjector - The dependency injection container for the parent route.\n * @param invokeGetPrerenderParams - A flag indicating whether to invoke the `getPrerenderParams` function.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result.\n * @returns An async iterable iterator that yields route tree node metadata for each SSG path or errors.\n */\nasync function* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes) {\n if (metadata.renderMode !== RenderMode.Prerender) {\n throw new Error(`'handleSSGRoute' was called for a route which rendering mode is not prerender.`);\n }\n const { route: currentRoutePath, fallback, ...meta } = metadata;\n const getPrerenderParams = 'getPrerenderParams' in meta ? meta.getPrerenderParams : undefined;\n if ('getPrerenderParams' in meta) {\n delete meta['getPrerenderParams'];\n }\n if (!URL_PARAMETER_REGEXP.test(currentRoutePath)) {\n // Route has no parameters\n yield {\n ...meta,\n route: currentRoutePath,\n };\n return;\n }\n if (invokeGetPrerenderParams) {\n if (!getPrerenderParams) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route uses prerendering and includes parameters, but 'getPrerenderParams' ` +\n `is missing. Please define 'getPrerenderParams' function for this route in your server routing configuration ` +\n `or specify a different 'renderMode'.`,\n };\n return;\n }\n const parameters = await runInInjectionContext(parentInjector, () => getPrerenderParams());\n try {\n for (const params of parameters) {\n const routeWithResolvedParams = currentRoutePath.replace(URL_PARAMETER_REGEXP, (match) => {\n const parameterName = match.slice(1);\n const value = params[parameterName];\n if (typeof value !== 'string') {\n throw new Error(`The 'getPrerenderParams' function defined for the '${stripLeadingSlash(currentRoutePath)}' route ` +\n `returned a non-string value for parameter '${parameterName}'. ` +\n `Please make sure the 'getPrerenderParams' function returns values for all parameters ` +\n 'specified in this route.');\n }\n return value;\n });\n yield { ...meta, route: routeWithResolvedParams };\n }\n }\n catch (error) {\n yield { error: `${error.message}` };\n return;\n }\n }\n // Handle fallback render modes\n if (includePrerenderFallbackRoutes &&\n (fallback !== PrerenderFallback.None || !invokeGetPrerenderParams)) {\n yield {\n ...meta,\n route: currentRoutePath,\n renderMode: fallback === PrerenderFallback.Client ? RenderMode.Client : RenderMode.Server,\n };\n }\n}\n/**\n * Resolves the `redirectTo` property for a given route.\n *\n * This function processes the `redirectTo` property to ensure that it correctly\n * resolves relative to the current route path. If `redirectTo` is an absolute path,\n * it is returned as is. If it is a relative path, it is resolved based on the current route path.\n *\n * @param routePath - The current route path.\n * @param redirectTo - The target path for redirection.\n * @returns The resolved redirect path as a string.\n */\nfunction resolveRedirectTo(routePath, redirectTo) {\n if (redirectTo[0] === '/') {\n // If the redirectTo path is absolute, return it as is.\n return redirectTo;\n }\n // Resolve relative redirectTo based on the current route path.\n const segments = routePath.split('/');\n segments.pop(); // Remove the last segment to make it relative.\n return joinUrlParts(...segments, redirectTo);\n}\n/**\n * Builds a server configuration route tree from the given server routes configuration.\n *\n * @param serverRoutesConfig - The array of server routes to be used for configuration.\n\n * @returns An object containing:\n * - `serverConfigRouteTree`: A populated `RouteTree` instance, which organizes the server routes\n * along with their additional metadata.\n * - `errors`: An array of strings that list any errors encountered during the route tree construction\n * process, such as invalid paths.\n */\nfunction buildServerConfigRouteTree(serverRoutesConfig) {\n const serverConfigRouteTree = new RouteTree();\n const errors = [];\n for (const { path, ...metadata } of serverRoutesConfig) {\n if (path[0] === '/') {\n errors.push(`Invalid '${path}' route configuration: the path cannot start with a slash.`);\n continue;\n }\n serverConfigRouteTree.insert(path, metadata);\n }\n return { serverConfigRouteTree, errors };\n}\n/**\n * Retrieves routes from the given Angular application.\n *\n * This function initializes an Angular platform, bootstraps the application or module,\n * and retrieves routes from the Angular router configuration. It handles both module-based\n * and function-based bootstrapping. It yields the resulting routes as `RouteTreeNodeMetadata` objects or errors.\n *\n * @param bootstrap - A function that returns a promise resolving to an `ApplicationRef` or an Angular module to bootstrap.\n * @param document - The initial HTML document used for server-side rendering.\n * This document is necessary to render the application on the server.\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object of type `AngularRouterConfigResult` or errors.\n */\nexport async function getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const { protocol, host } = url;\n // Create and initialize the Angular platform for server-side rendering.\n const platformRef = createPlatformFactory(platformCore, 'server', [\n {\n provide: INITIAL_CONFIG,\n useValue: { document, url: `${protocol}//${host}/` },\n },\n {\n provide: ɵConsole,\n useFactory: () => new Console(),\n },\n ...INTERNAL_SERVER_PLATFORM_PROVIDERS,\n ])();\n try {\n let applicationRef;\n if (isNgModule(bootstrap)) {\n const moduleRef = await platformRef.bootstrapModule(bootstrap);\n applicationRef = moduleRef.injector.get(ApplicationRef);\n }\n else {\n applicationRef = await bootstrap();\n }\n // Wait until the application is stable.\n await whenStable(applicationRef);\n const injector = applicationRef.injector;\n const router = injector.get(Router);\n const routesResults = [];\n const errors = [];\n const baseHref = injector.get(APP_BASE_HREF, null, { optional: true }) ??\n injector.get(PlatformLocation).getBaseHrefFromDOM();\n if (router.config.length) {\n const compiler = injector.get(Compiler);\n const serverRoutesConfig = injector.get(SERVER_ROUTES_CONFIG, null, { optional: true });\n let serverConfigRouteTree;\n if (serverRoutesConfig) {\n const result = buildServerConfigRouteTree(serverRoutesConfig);\n serverConfigRouteTree = result.serverConfigRouteTree;\n errors.push(...result.errors);\n }\n if (errors.length) {\n return {\n baseHref,\n routes: routesResults,\n errors,\n };\n }\n // Retrieve all routes from the Angular router configuration.\n const traverseRoutes = traverseRoutesConfig({\n routes: router.config,\n compiler,\n parentInjector: injector,\n parentRoute: '',\n serverConfigRouteTree,\n invokeGetPrerenderParams,\n includePrerenderFallbackRoutes,\n });\n let seenAppShellRoute;\n for await (const result of traverseRoutes) {\n if ('error' in result) {\n errors.push(result.error);\n }\n else {\n if (result.renderMode === RenderMode.AppShell) {\n if (seenAppShellRoute !== undefined) {\n errors.push(`Error: Both '${seenAppShellRoute}' and '${stripLeadingSlash(result.route)}' routes have ` +\n `their 'renderMode' set to 'AppShell'. AppShell renderMode should only be assigned to one route. ` +\n `Please review your route configurations to ensure that only one route is set to 'RenderMode.AppShell'.`);\n }\n seenAppShellRoute = stripLeadingSlash(result.route);\n }\n routesResults.push(result);\n }\n }\n if (serverConfigRouteTree) {\n for (const { route, presentInClientRouter } of serverConfigRouteTree.traverse()) {\n if (presentInClientRouter || route === '**') {\n // Skip if matched or it's the catch-all route.\n continue;\n }\n errors.push(`The '${route}' server route does not match any routes defined in the Angular ` +\n `routing configuration (typically provided as a part of the 'provideRouter' call). ` +\n 'Please make sure that the mentioned server route is present in the Angular routing configuration.');\n }\n }\n }\n else {\n routesResults.push({ route: '', renderMode: RenderMode.Prerender });\n }\n return {\n baseHref,\n routes: routesResults,\n errors,\n };\n }\n finally {\n platformRef.destroy();\n }\n}\n/**\n * Asynchronously extracts routes from the Angular application configuration\n * and creates a `RouteTree` to manage server-side routing.\n *\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * See:\n * - https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51\n * - https://github.com/angular/angular/blob/6882cc7d9eed26d3caeedca027452367ba25f2b9/packages/platform-server/src/http.ts#L44\n * @param manifest - An optional `AngularAppManifest` that contains the application's routing and configuration details.\n * If not provided, the default manifest is retrieved using `getAngularAppManifest()`.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object containing:\n * - `routeTree`: A populated `RouteTree` containing all extracted routes from the Angular application.\n * - `errors`: An array of strings representing any errors encountered during the route extraction process.\n */\nexport async function extractRoutesAndCreateRouteTree(url, manifest = getAngularAppManifest(), invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const routeTree = new RouteTree();\n const document = await new ServerAssets(manifest).getIndexServerHtml();\n const bootstrap = await manifest.bootstrap();\n const { baseHref, routes, errors } = await getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n for (const { route, ...metadata } of routes) {\n if (metadata.redirectTo !== undefined) {\n metadata.redirectTo = joinUrlParts(baseHref, metadata.redirectTo);\n }\n const fullRoute = joinUrlParts(baseHref, route);\n routeTree.insert(fullRoute, metadata);\n }\n return {\n routeTree,\n errors,\n };\n}\n//# sourceMappingURL=ng-routes.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages a collection of hooks and provides methods to register and execute them.\n * Hooks are functions that can be invoked with specific arguments to allow modifications or enhancements.\n */\nexport class Hooks {\n constructor() {\n /**\n * A map of hook names to arrays of hook functions.\n * Each hook name can have multiple associated functions, which are executed in sequence.\n */\n this.store = new Map();\n }\n /**\n * Executes all hooks associated with the specified name, passing the given argument to each hook function.\n * The hooks are invoked sequentially, and the argument may be modified by each hook.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook whose functions will be executed.\n * @param context - The input value to be passed to each hook function. The value is mutated by each hook function.\n * @returns A promise that resolves once all hook functions have been executed.\n *\n * @example\n * ```typescript\n * const hooks = new Hooks();\n * hooks.on('html:transform:pre', async (ctx) => {\n * ctx.html = ctx.html.replace(/foo/g, 'bar');\n * return ctx.html;\n * });\n * const result = await hooks.run('html:transform:pre', { html: '<div>foo</div>' });\n * console.log(result); // '<div>bar</div>'\n * ```\n * @internal\n */\n async run(name, context) {\n const hooks = this.store.get(name);\n switch (name) {\n case 'html:transform:pre': {\n if (!hooks) {\n return context.html;\n }\n const ctx = { ...context };\n for (const hook of hooks) {\n ctx.html = await hook(ctx);\n }\n return ctx.html;\n }\n default:\n throw new Error(`Running hook \"${name}\" is not supported.`);\n }\n }\n /**\n * Registers a new hook function under the specified hook name.\n * This function should be a function that takes an argument of type `T` and returns a `string` or `Promise<string>`.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook under which the function will be registered.\n * @param handler - A function to be executed when the hook is triggered. The handler will be called with an argument\n * that may be modified by the hook functions.\n *\n * @remarks\n * - If there are existing handlers registered under the given hook name, the new handler will be added to the list.\n * - If no handlers are registered under the given hook name, a new list will be created with the handler as its first element.\n *\n * @example\n * ```typescript\n * hooks.on('html:transform:pre', async (ctx) => {\n * return ctx.html.replace(/foo/g, 'bar');\n * });\n * ```\n */\n on(name, handler) {\n const hooks = this.store.get(name);\n if (hooks) {\n hooks.push(handler);\n }\n else {\n this.store.set(name, [handler]);\n }\n }\n /**\n * Checks if there are any hooks registered under the specified name.\n *\n * @param name - The name of the hook to check.\n * @returns `true` if there are hooks registered under the specified name, otherwise `false`.\n */\n has(name) {\n return !!this.store.get(name)?.length;\n }\n}\n//# sourceMappingURL=hooks.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripIndexHtmlFromURL } from '../utils/url';\nimport { extractRoutesAndCreateRouteTree } from './ng-routes';\nimport { RouteTree } from './route-tree';\n/**\n * Manages the application's server routing logic by building and maintaining a route tree.\n *\n * This class is responsible for constructing the route tree from the Angular application\n * configuration and using it to match incoming requests to the appropriate routes.\n */\nexport class ServerRouter {\n /**\n * Creates an instance of the `ServerRouter`.\n *\n * @param routeTree - An instance of `RouteTree` that holds the routing information.\n * The `RouteTree` is used to match request URLs to the appropriate route metadata.\n */\n constructor(routeTree) {\n this.routeTree = routeTree;\n }\n /**\n * Static property to track the ongoing build promise.\n */\n static #extractionPromise;\n /**\n * Creates or retrieves a `ServerRouter` instance based on the provided manifest and URL.\n *\n * If the manifest contains pre-built routes, a new `ServerRouter` is immediately created.\n * Otherwise, it builds the router by extracting routes from the Angular configuration\n * asynchronously. This method ensures that concurrent builds are prevented by re-using\n * the same promise.\n *\n * @param manifest - An instance of `AngularAppManifest` that contains the route information.\n * @param url - The URL for server-side rendering. The URL is needed to configure `ServerPlatformLocation`.\n * This is necessary to ensure that API requests for relative paths succeed, which is crucial for correct route extraction.\n * [Reference](https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51)\n * @returns A promise resolving to a `ServerRouter` instance.\n */\n static from(manifest, url) {\n if (manifest.routes) {\n const routeTree = RouteTree.fromObject(manifest.routes);\n return Promise.resolve(new ServerRouter(routeTree));\n }\n // Create and store a new promise for the build process.\n // This prevents concurrent builds by re-using the same promise.\n ServerRouter.#extractionPromise ??= extractRoutesAndCreateRouteTree(url, manifest)\n .then(({ routeTree, errors }) => {\n if (errors.length > 0) {\n throw new Error('Error(s) occurred while extracting routes:\\n' +\n errors.map((error) => `- ${error}`).join('\\n'));\n }\n return new ServerRouter(routeTree);\n })\n .finally(() => {\n ServerRouter.#extractionPromise = undefined;\n });\n return ServerRouter.#extractionPromise;\n }\n /**\n * Matches a request URL against the route tree to retrieve route metadata.\n *\n * This method strips 'index.html' from the URL if it is present and then attempts\n * to find a match in the route tree. If a match is found, it returns the associated\n * route metadata; otherwise, it returns `undefined`.\n *\n * @param url - The URL to be matched against the route tree.\n * @returns The metadata for the matched route or `undefined` if no match is found.\n */\n match(url) {\n // Strip 'index.html' from URL if present.\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const { pathname } = stripIndexHtmlFromURL(url);\n return this.routeTree.match(decodeURIComponent(pathname));\n }\n}\n//# sourceMappingURL=router.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { InjectionToken } from '@angular/core';\n/**\n * Injection token for the current request.\n * @developerPreview\n */\nexport const REQUEST = new InjectionToken('REQUEST');\n/**\n * Injection token for the response initialization options.\n * @developerPreview\n */\nexport const RESPONSE_INIT = new InjectionToken('RESPONSE_INIT');\n/**\n * Injection token for additional request context.\n * @developerPreview\n */\nexport const REQUEST_CONTEXT = new InjectionToken('REQUEST_CONTEXT');\n//# sourceMappingURL=tokens.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Generates a SHA-256 hash of the provided string.\n *\n * @param data - The input string to be hashed.\n * @returns A promise that resolves to the SHA-256 hash of the input,\n * represented as a hexadecimal string.\n */\nexport async function sha256(data) {\n const encodedData = new TextEncoder().encode(data);\n const hashBuffer = await crypto.subtle.digest('SHA-256', encodedData);\n const hashParts = [];\n for (const h of new Uint8Array(hashBuffer)) {\n hashParts.push(h.toString(16).padStart(2, '0'));\n }\n return hashParts.join('');\n}\n//# sourceMappingURL=crypto.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport Critters from '../../third_party/critters';\n/**\n * Pattern used to extract the media query set by Critters in an `onload` handler.\n */\nconst MEDIA_SET_HANDLER_PATTERN = /^this\\.media=[\"'](.*)[\"'];?$/;\n/**\n * Name of the attribute used to save the Critters media query so it can be re-assigned on load.\n */\nconst CSP_MEDIA_ATTR = 'ngCspMedia';\n/**\n * Script that dynamically updates the `media` attribute of `<link>` tags based on a custom attribute (`CSP_MEDIA_ATTR`).\n *\n * NOTE:\n * We do not use `document.querySelectorAll('link').forEach((s) => s.addEventListener('load', ...)`\n * because load events are not always triggered reliably on Chrome.\n * See: https://github.com/angular/angular-cli/issues/26932 and https://crbug.com/1521256\n *\n * The script:\n * - Ensures the event target is a `<link>` tag with the `CSP_MEDIA_ATTR` attribute.\n * - Updates the `media` attribute with the value of `CSP_MEDIA_ATTR` and then removes the attribute.\n * - Removes the event listener when all relevant `<link>` tags have been processed.\n * - Uses event capturing (the `true` parameter) since load events do not bubble up the DOM.\n */\nconst LINK_LOAD_SCRIPT_CONTENT = `\n(() => {\n const CSP_MEDIA_ATTR = '${CSP_MEDIA_ATTR}';\n const documentElement = document.documentElement;\n\n // Listener for load events on link tags.\n const listener = (e) => {\n const target = e.target;\n if (\n !target ||\n target.tagName !== 'LINK' ||\n !target.hasAttribute(CSP_MEDIA_ATTR)\n ) {\n return;\n }\n\n target.media = target.getAttribute(CSP_MEDIA_ATTR);\n target.removeAttribute(CSP_MEDIA_ATTR);\n\n if (!document.head.querySelector(\\`link[\\${CSP_MEDIA_ATTR}]\\`)) {\n documentElement.removeEventListener('load', listener);\n }\n };\n\n documentElement.addEventListener('load', listener, true);\n})();\n`.trim();\nclass CrittersBase extends Critters {\n}\n/* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */\nexport class InlineCriticalCssProcessor extends CrittersBase {\n constructor(readFile, outputPath) {\n super({\n logger: {\n // eslint-disable-next-line no-console\n warn: (s) => console.warn(s),\n // eslint-disable-next-line no-console\n error: (s) => console.error(s),\n info: () => { },\n },\n logLevel: 'warn',\n path: outputPath,\n publicPath: undefined,\n compress: false,\n pruneSource: false,\n reduceInlineStyles: false,\n mergeStylesheets: false,\n // Note: if `preload` changes to anything other than `media`, the logic in\n // `embedLinkedStylesheet` will have to be updated.\n preload: 'media',\n noscriptFallback: true,\n inlineFonts: true,\n });\n this.readFile = readFile;\n this.outputPath = outputPath;\n this.addedCspScriptsDocuments = new WeakSet();\n this.documentNonces = new WeakMap();\n }\n /**\n * Override of the Critters `embedLinkedStylesheet` method\n * that makes it work with Angular's CSP APIs.\n */\n async embedLinkedStylesheet(link, document) {\n if (link.getAttribute('media') === 'print' && link.next?.name === 'noscript') {\n // Workaround for https://github.com/GoogleChromeLabs/critters/issues/64\n // NB: this is only needed for the webpack based builders.\n const media = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (media) {\n link.removeAttribute('onload');\n link.setAttribute('media', media[1]);\n link?.next?.remove();\n }\n }\n const returnValue = await super.embedLinkedStylesheet(link, document);\n const cspNonce = this.findCspNonce(document);\n if (cspNonce) {\n const crittersMedia = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (crittersMedia) {\n // If there's a Critters-generated `onload` handler and the file has an Angular CSP nonce,\n // we have to remove the handler, because it's incompatible with CSP. We save the value\n // in a different attribute and we generate a script tag with the nonce that uses\n // `addEventListener` to apply the media query instead.\n link.removeAttribute('onload');\n link.setAttribute(CSP_MEDIA_ATTR, crittersMedia[1]);\n this.conditionallyInsertCspLoadingScript(document, cspNonce, link);\n }\n // Ideally we would hook in at the time Critters inserts the `style` tags, but there isn't\n // a way of doing that at the moment so we fall back to doing it any time a `link` tag is\n // inserted. We mitigate it by only iterating the direct children of the `<head>` which\n // should be pretty shallow.\n document.head.children.forEach((child) => {\n if (child.tagName === 'style' && !child.hasAttribute('nonce')) {\n child.setAttribute('nonce', cspNonce);\n }\n });\n }\n return returnValue;\n }\n /**\n * Finds the CSP nonce for a specific document.\n */\n findCspNonce(document) {\n if (this.documentNonces.has(document)) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this.documentNonces.get(document);\n }\n // HTML attribute are case-insensitive, but the parser used by Critters is case-sensitive.\n const nonceElement = document.querySelector('[ngCspNonce], [ngcspnonce]');\n const cspNonce = nonceElement?.getAttribute('ngCspNonce') || nonceElement?.getAttribute('ngcspnonce') || null;\n this.documentNonces.set(document, cspNonce);\n return cspNonce;\n }\n /**\n * Inserts the `script` tag that swaps the critical CSS at runtime,\n * if one hasn't been inserted into the document already.\n */\n conditionallyInsertCspLoadingScript(document, nonce, link) {\n if (this.addedCspScriptsDocuments.has(document)) {\n return;\n }\n if (document.head.textContent.includes(LINK_LOAD_SCRIPT_CONTENT)) {\n // Script was already added during the build.\n this.addedCspScriptsDocuments.add(document);\n return;\n }\n const script = document.createElement('script');\n script.setAttribute('nonce', nonce);\n script.textContent = LINK_LOAD_SCRIPT_CONTENT;\n // Prepend the script to the head since it needs to\n // run as early as possible, before the `link` tags.\n document.head.insertBefore(script, link);\n this.addedCspScriptsDocuments.add(document);\n }\n}\n//# sourceMappingURL=inline-critical-css.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * A Least Recently Used (LRU) cache implementation.\n *\n * This cache stores a fixed number of key-value pairs, and when the cache exceeds its capacity,\n * the least recently accessed items are evicted.\n *\n * @template Key - The type of the cache keys.\n * @template Value - The type of the cache values.\n */\nexport class LRUCache {\n /**\n * Creates a new LRUCache instance.\n * @param capacity The maximum number of items the cache can hold.\n */\n constructor(capacity) {\n /**\n * Internal storage for the cache, mapping keys to their associated nodes in the linked list.\n */\n this.cache = new Map();\n this.capacity = capacity;\n }\n /**\n * Gets the value associated with the given key.\n * @param key The key to retrieve the value for.\n * @returns The value associated with the key, or undefined if the key is not found.\n */\n get(key) {\n const node = this.cache.get(key);\n if (node) {\n this.moveToHead(node);\n return node.value;\n }\n return undefined;\n }\n /**\n * Puts a key-value pair into the cache.\n * If the key already exists, the value is updated.\n * If the cache is full, the least recently used item is evicted.\n * @param key The key to insert or update.\n * @param value The value to associate with the key.\n */\n put(key, value) {\n const cachedNode = this.cache.get(key);\n if (cachedNode) {\n // Update existing node\n cachedNode.value = value;\n this.moveToHead(cachedNode);\n return;\n }\n // Create a new node\n const newNode = { key, value, prev: undefined, next: undefined };\n this.cache.set(key, newNode);\n this.addToHead(newNode);\n if (this.cache.size > this.capacity) {\n // Evict the LRU item\n const tail = this.removeTail();\n if (tail) {\n this.cache.delete(tail.key);\n }\n }\n }\n /**\n * Adds a node to the head of the linked list.\n * @param node The node to add.\n */\n addToHead(node) {\n node.next = this.head;\n node.prev = undefined;\n if (this.head) {\n this.head.prev = node;\n }\n this.head = node;\n if (!this.tail) {\n this.tail = node;\n }\n }\n /**\n * Removes a node from the linked list.\n * @param node The node to remove.\n */\n removeNode(node) {\n if (node.prev) {\n node.prev.next = node.next;\n }\n else {\n this.head = node.next;\n }\n if (node.next) {\n node.next.prev = node.prev;\n }\n else {\n this.tail = node.prev;\n }\n }\n /**\n * Moves a node to the head of the linked list.\n * @param node The node to move.\n */\n moveToHead(node) {\n this.removeNode(node);\n this.addToHead(node);\n }\n /**\n * Removes the tail node from the linked list.\n * @returns The removed tail node, or undefined if the list is empty.\n */\n removeTail() {\n const node = this.tail;\n if (node) {\n this.removeNode(node);\n }\n return node;\n }\n}\n//# sourceMappingURL=lru-cache.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { LOCALE_ID, ɵresetCompiledComponents } from '@angular/core';\nimport { ServerAssets } from './assets';\nimport { Hooks } from './hooks';\nimport { getAngularAppManifest } from './manifest';\nimport { RenderMode } from './routes/route-config';\nimport { ServerRouter } from './routes/router';\nimport { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from './tokens';\nimport { sha256 } from './utils/crypto';\nimport { InlineCriticalCssProcessor } from './utils/inline-critical-css';\nimport { LRUCache } from './utils/lru-cache';\nimport { renderAngular } from './utils/ng';\n/**\n * Maximum number of critical CSS entries the cache can store.\n * This value determines the capacity of the LRU (Least Recently Used) cache, which stores critical CSS for pages.\n */\nconst MAX_INLINE_CSS_CACHE_ENTRIES = 50;\n/**\n * A mapping of `RenderMode` enum values to corresponding string representations.\n *\n * This record is used to map each `RenderMode` to a specific string value that represents\n * the server context. The string values are used internally to differentiate\n * between various rendering strategies when processing routes.\n *\n * - `RenderMode.Prerender` maps to `'ssg'` (Static Site Generation).\n * - `RenderMode.Server` maps to `'ssr'` (Server-Side Rendering).\n * - `RenderMode.AppShell` maps to `'app-shell'` (pre-rendered application shell).\n * - `RenderMode.Client` maps to an empty string `''` (Client-Side Rendering, no server context needed).\n */\nconst SERVER_CONTEXT_VALUE = {\n [RenderMode.Prerender]: 'ssg',\n [RenderMode.Server]: 'ssr',\n [RenderMode.AppShell]: 'app-shell',\n [RenderMode.Client]: '',\n};\n/**\n * Represents a locale-specific Angular server application managed by the server application engine.\n *\n * The `AngularServerApp` class handles server-side rendering and asset management for a specific locale.\n */\nexport class AngularServerApp {\n constructor() {\n /**\n * Hooks for extending or modifying the behavior of the server application.\n * This instance can be used to attach custom functionality to various events in the server application lifecycle.\n */\n this.hooks = new Hooks();\n /**\n * The manifest associated with this server application.\n */\n this.manifest = getAngularAppManifest();\n /**\n * An instance of ServerAsset that handles server-side asset.\n */\n this.assets = new ServerAssets(this.manifest);\n /**\n * Cache for storing critical CSS for pages.\n * Stores a maximum of MAX_INLINE_CSS_CACHE_ENTRIES entries.\n *\n * Uses an LRU (Least Recently Used) eviction policy, meaning that when the cache is full,\n * the least recently accessed page's critical CSS will be removed to make space for new entries.\n */\n this.criticalCssLRUCache = new LRUCache(MAX_INLINE_CSS_CACHE_ENTRIES);\n }\n /**\n * Renders a response for the given HTTP request using the server application.\n *\n * This method processes the request and returns a response based on the specified rendering context.\n *\n * @param request - The incoming HTTP request to be rendered.\n * @param requestContext - Optional additional context for rendering, such as request metadata.\n *\n * @returns A promise that resolves to the HTTP response object resulting from the rendering, or null if no match is found.\n */\n render(request, requestContext) {\n return Promise.race([\n this.createAbortPromise(request),\n this.handleRendering(request, /** isSsrMode */ true, requestContext),\n ]);\n }\n /**\n * Renders a page based on the provided URL via server-side rendering and returns the corresponding HTTP response.\n * The rendering process can be interrupted by an abort signal, where the first resolved promise (either from the abort\n * or the render process) will dictate the outcome.\n *\n * @param url - The full URL to be processed and rendered by the server.\n * @param signal - (Optional) An `AbortSignal` object that allows for the cancellation of the rendering process.\n * @returns A promise that resolves to the generated HTTP response object, or `null` if no matching route is found.\n */\n renderStatic(url, signal) {\n const request = new Request(url, { signal });\n return Promise.race([\n this.createAbortPromise(request),\n this.handleRendering(request, /** isSsrMode */ false),\n ]);\n }\n /**\n * Creates a promise that rejects when the request is aborted.\n *\n * @param request - The HTTP request to monitor for abortion.\n * @returns A promise that never resolves but rejects with an `AbortError` if the request is aborted.\n */\n createAbortPromise(request) {\n return new Promise((_, reject) => {\n request.signal.addEventListener('abort', () => {\n const abortError = new Error(`Request for: ${request.url} was aborted.\\n${request.signal.reason}`);\n abortError.name = 'AbortError';\n reject(abortError);\n }, { once: true });\n });\n }\n /**\n * Handles the server-side rendering process for the given HTTP request.\n * This method matches the request URL to a route and performs rendering if a matching route is found.\n *\n * @param request - The incoming HTTP request to be processed.\n * @param isSsrMode - A boolean indicating whether the rendering is performed in server-side rendering (SSR) mode.\n * @param requestContext - Optional additional context for rendering, such as request metadata.\n *\n * @returns A promise that resolves to the rendered response, or null if no matching route is found.\n */\n async handleRendering(request, isSsrMode, requestContext) {\n const url = new URL(request.url);\n this.router ??= await ServerRouter.from(this.manifest, url);\n const matchedRoute = this.router.match(url);\n if (!matchedRoute) {\n // Not a known Angular route.\n return null;\n }\n const { redirectTo, status } = matchedRoute;\n if (redirectTo !== undefined) {\n // Note: The status code is validated during route extraction.\n // 302 Found is used by default for redirections\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return Response.redirect(new URL(redirectTo, url), status ?? 302);\n }\n const { renderMode = isSsrMode ? RenderMode.Server : RenderMode.Prerender, headers } = matchedRoute;\n const platformProviders = [];\n let responseInit;\n if (isSsrMode) {\n // Initialize the response with status and headers if available.\n responseInit = {\n status,\n headers: new Headers({\n 'Content-Type': 'text/html;charset=UTF-8',\n ...headers,\n }),\n };\n if (renderMode === RenderMode.Server) {\n // Configure platform providers for request and response only for SSR.\n platformProviders.push({\n provide: REQUEST,\n useValue: request,\n }, {\n provide: REQUEST_CONTEXT,\n useValue: requestContext,\n }, {\n provide: RESPONSE_INIT,\n useValue: responseInit,\n });\n }\n else if (renderMode === RenderMode.Client) {\n // Serve the client-side rendered version if the route is configured for CSR.\n return new Response(await this.assets.getServerAsset('index.csr.html'), responseInit);\n }\n }\n const { manifest: { bootstrap, inlineCriticalCss, locale }, hooks, assets, } = this;\n if (locale !== undefined) {\n platformProviders.push({\n provide: LOCALE_ID,\n useValue: locale,\n });\n }\n let html = await assets.getIndexServerHtml();\n // Skip extra microtask if there are no pre hooks.\n if (hooks.has('html:transform:pre')) {\n html = await hooks.run('html:transform:pre', { html, url });\n }\n this.boostrap ??= await bootstrap();\n html = await renderAngular(html, this.boostrap, url, platformProviders, SERVER_CONTEXT_VALUE[renderMode]);\n if (inlineCriticalCss) {\n // Optionally inline critical CSS.\n this.inlineCriticalCssProcessor ??= new InlineCriticalCssProcessor((path) => {\n const fileName = path.split('/').pop() ?? path;\n return this.assets.getServerAsset(fileName);\n });\n // TODO(alanagius): remove once Node.js version 18 is no longer supported.\n if (isSsrMode && typeof crypto === 'undefined') {\n // eslint-disable-next-line no-console\n console.error(`The global 'crypto' module is unavailable. ` +\n `If you are running on Node.js, please ensure you are using version 20 or later, ` +\n `which includes built-in support for the Web Crypto module.`);\n }\n if (isSsrMode && typeof crypto !== 'undefined') {\n // Only cache if we are running in SSR Mode.\n const cacheKey = await sha256(html);\n let htmlWithCriticalCss = this.criticalCssLRUCache.get(cacheKey);\n if (htmlWithCriticalCss === undefined) {\n htmlWithCriticalCss = await this.inlineCriticalCssProcessor.process(html);\n this.criticalCssLRUCache.put(cacheKey, htmlWithCriticalCss);\n }\n html = htmlWithCriticalCss;\n }\n else {\n html = await this.inlineCriticalCssProcessor.process(html);\n }\n }\n return new Response(html, responseInit);\n }\n}\nlet angularServerApp;\n/**\n * Retrieves or creates an instance of `AngularServerApp`.\n * - If an instance of `AngularServerApp` already exists, it will return the existing one.\n * - If no instance exists, it will create a new one with the provided options.\n * @returns The existing or newly created instance of `AngularServerApp`.\n */\nexport function getOrCreateAngularServerApp() {\n return (angularServerApp ??= new AngularServerApp());\n}\n/**\n * Destroys the existing `AngularServerApp` instance, releasing associated resources and resetting the\n * reference to `undefined`.\n *\n * This function is primarily used to enable the recreation of the `AngularServerApp` instance,\n * typically when server configuration or application state needs to be refreshed.\n */\nexport function destroyAngularServerApp() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Need to clean up GENERATED_COMP_IDS map in `@angular/core`.\n // Otherwise an incorrect component ID generation collision detected warning will be displayed in development.\n // See: https://github.com/angular/angular-cli/issues/25924\n ɵresetCompiledComponents();\n }\n angularServerApp = undefined;\n}\n//# sourceMappingURL=app.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n// ɵgetRoutesFromAngularRouterConfig is only used by the Webpack based server builder.\nexport { getRoutesFromAngularRouterConfig as ɵgetRoutesFromAngularRouterConfig, extractRoutesAndCreateRouteTree as ɵextractRoutesAndCreateRouteTree, } from './src/routes/ng-routes';\nexport { getOrCreateAngularServerApp as ɵgetOrCreateAngularServerApp, destroyAngularServerApp as ɵdestroyAngularServerApp, } from './src/app';\nexport { setAngularAppManifest as ɵsetAngularAppManifest, setAngularAppEngineManifest as ɵsetAngularAppEngineManifest, } from './src/manifest';\nexport { InlineCriticalCssProcessor as ɵInlineCriticalCssProcessor } from './src/utils/inline-critical-css';\n//# sourceMappingURL=private_export.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Extracts a potential locale ID from a given URL based on the specified base path.\n *\n * This function parses the URL to locate a potential locale identifier that immediately\n * follows the base path segment in the URL's pathname. If the URL does not contain a valid\n * locale ID, an empty string is returned.\n *\n * @param url - The full URL from which to extract the locale ID.\n * @param basePath - The base path used as the reference point for extracting the locale ID.\n * @returns The extracted locale ID if present, or an empty string if no valid locale ID is found.\n *\n * @example\n * ```js\n * const url = new URL('https://example.com/base/en/page');\n * const basePath = '/base';\n * const localeId = getPotentialLocaleIdFromUrl(url, basePath);\n * console.log(localeId); // Output: 'en'\n * ```\n */\nexport function getPotentialLocaleIdFromUrl(url, basePath) {\n const { pathname } = url;\n // Move forward of the base path section.\n let start = basePath.length;\n if (pathname[start] === '/') {\n start++;\n }\n // Find the next forward slash.\n let end = pathname.indexOf('/', start);\n if (end === -1) {\n end = pathname.length;\n }\n // Extract the potential locale id.\n return pathname.slice(start, end);\n}\n//# sourceMappingURL=i18n.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { Hooks } from './hooks';\nimport { getPotentialLocaleIdFromUrl } from './i18n';\nimport { getAngularAppEngineManifest } from './manifest';\nimport { stripIndexHtmlFromURL, stripTrailingSlash } from './utils/url';\n/**\n * Angular server application engine.\n * Manages Angular server applications (including localized ones), handles rendering requests,\n * and optionally transforms index HTML before rendering.\n *\n * @note This class should be instantiated once and used as a singleton across the server-side\n * application to ensure consistent handling of rendering requests and resource management.\n *\n * @developerPreview\n */\nexport class AngularAppEngine {\n constructor() {\n /**\n * The manifest for the server application.\n */\n this.manifest = getAngularAppEngineManifest();\n /**\n * A cache that holds entry points, keyed by their potential locale string.\n */\n this.entryPointsCache = new Map();\n }\n /**\n * Hooks for extending or modifying the behavior of the server application.\n * These hooks are used by the Angular CLI when running the development server and\n * provide extensibility points for the application lifecycle.\n *\n * @private\n */\n static { this.ɵhooks = new Hooks(); }\n /**\n * Provides access to the hooks for extending or modifying the server application's behavior.\n * This allows attaching custom functionality to various server application lifecycle events.\n *\n * @internal\n */\n get hooks() {\n return AngularAppEngine.ɵhooks;\n }\n /**\n * Renders a response for the given HTTP request using the server application.\n *\n * This method processes the request, determines the appropriate route and rendering context,\n * and returns an HTTP response.\n *\n * If the request URL appears to be for a file (excluding `/index.html`), the method returns `null`.\n * A request to `https://www.example.com/page/index.html` will render the Angular route\n * corresponding to `https://www.example.com/page`.\n *\n * @param request - The incoming HTTP request object to be rendered.\n * @param requestContext - Optional additional context for the request, such as metadata.\n * @returns A promise that resolves to a Response object, or `null` if the request URL represents a file (e.g., `./logo.png`)\n * rather than an application route.\n */\n async render(request, requestContext) {\n // Skip if the request looks like a file but not `/index.html`.\n const url = new URL(request.url);\n const entryPoint = await this.getEntryPointExportsForUrl(url);\n if (!entryPoint) {\n return null;\n }\n const { ɵgetOrCreateAngularServerApp: getOrCreateAngularServerApp } = entryPoint;\n // Note: Using `instanceof` is not feasible here because `AngularServerApp` will\n // be located in separate bundles, making `instanceof` checks unreliable.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n const serverApp = getOrCreateAngularServerApp();\n serverApp.hooks = this.hooks;\n return serverApp.render(request, requestContext);\n }\n /**\n * Retrieves HTTP headers for a request associated with statically generated (SSG) pages,\n * based on the URL pathname.\n *\n * @param request - The incoming request object.\n * @returns A `Map` containing the HTTP headers as key-value pairs.\n * @note This function should be used exclusively for retrieving headers of SSG pages.\n */\n getPrerenderHeaders(request) {\n if (this.manifest.staticPathsHeaders.size === 0) {\n return new Map();\n }\n const { pathname } = stripIndexHtmlFromURL(new URL(request.url));\n const headers = this.manifest.staticPathsHeaders.get(stripTrailingSlash(pathname));\n return new Map(headers);\n }\n /**\n * Retrieves the exports for a specific entry point, caching the result.\n *\n * @param potentialLocale - The locale string used to find the corresponding entry point.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExports(potentialLocale) {\n const cachedEntryPoint = this.entryPointsCache.get(potentialLocale);\n if (cachedEntryPoint) {\n return cachedEntryPoint;\n }\n const { entryPoints } = this.manifest;\n const entryPoint = entryPoints.get(potentialLocale);\n if (!entryPoint) {\n return undefined;\n }\n const entryPointExports = entryPoint();\n this.entryPointsCache.set(potentialLocale, entryPointExports);\n return entryPointExports;\n }\n /**\n * Retrieves the entry point for a given URL by determining the locale and mapping it to\n * the appropriate application bundle.\n *\n * This method determines the appropriate entry point and locale for rendering the application by examining the URL.\n * If there is only one entry point available, it is returned regardless of the URL.\n * Otherwise, the method extracts a potential locale identifier from the URL and looks up the corresponding entry point.\n *\n * @param url - The URL of the request.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExportsForUrl(url) {\n const { entryPoints, basePath } = this.manifest;\n if (entryPoints.size === 1) {\n return this.getEntryPointExports('');\n }\n const potentialLocale = getPotentialLocaleIdFromUrl(url, basePath);\n return this.getEntryPointExports(potentialLocale);\n }\n}\n//# sourceMappingURL=app-engine.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Annotates a request handler function with metadata, marking it as a special\n * handler.\n *\n * @param handler - The request handler function to be annotated.\n * @returns The same handler function passed in, with metadata attached.\n *\n * @example\n * Example usage in a Hono application:\n * ```ts\n * const app = new Hono();\n * export default createRequestHandler(app.fetch);\n * ```\n *\n * @example\n * Example usage in a H3 application:\n * ```ts\n * const app = createApp();\n * const handler = toWebHandler(app);\n * export default createRequestHandler(handler);\n * ```\n * @developerPreview\n */\nexport function createRequestHandler(handler) {\n handler['__ng_request_handler__'] = true;\n return handler;\n}\n//# sourceMappingURL=handler.js.map"],"names":["ɵConsole","SERVER_CONTEXT","loadChildrenHelper","INTERNAL_SERVER_PLATFORM_PROVIDERS","whenStable","ɵresetCompiledComponents"],"mappings":";;;;;;AAOA;AACA;AACA;AACO,MAAM,YAAY,CAAC;AAC1B;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;AAChC,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,cAAc,CAAC,IAAI,EAAE;AAC/B,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;AACpD,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,cAAc,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAA;AACrE,SAAQ;AACR,QAAQ,OAAO,KAAK,EAAE,CAAA;AACtB,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,kBAAkB,GAAG;AACzB,QAAQ,OAAO,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAA;AACvD,KAA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Q,MAAM,iBAAiB,GAAG,UAAU,EAAE,CAAA;AAC9C,QAAQ,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAA;AACrE,QAAQ,OAAO,iBAAiB,CAAA;AAChC,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,0BAA0B,CAAC,GAAG,EAAE;AACpC,QAAQ,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAA;AACvD,QAAQ,IAAI,WAAW,CAAC,IAAI,KAAK,CAAC,EAAE;AACpC,YAAY,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;AAChD,SAAQ;AACR,QAAQ,MAAM,eAAe,GAAG,2BAA2B,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AAC1E,QAAQ,OAAO,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAA;AACzD,KAAI;AACJ;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,OAAO,EAAE;AAC9C,IAAI,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAA;AAC5C,IAAI,OAAO,OAAO,CAAA;AAClB;;;;"}
1
+ {"version":3,"file":"ssr.mjs","sources":["../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/assets.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/console.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/manifest.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/url.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/ng.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-config.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/route-tree.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/ng-routes.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/hooks.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/routes/router.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/crypto.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/inline-critical-css.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/utils/lru-cache.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/private_export.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/i18n.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/app-engine.mjs","../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/src/handler.mjs"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages server-side assets.\n */\nexport class ServerAssets {\n manifest;\n /**\n * Creates an instance of ServerAsset.\n *\n * @param manifest - The manifest containing the server assets.\n */\n constructor(manifest) {\n this.manifest = manifest;\n }\n /**\n * Retrieves the content of a server-side asset using its path.\n *\n * @param path - The path to the server asset.\n * @returns A promise that resolves to the asset content as a string.\n * @throws Error If the asset path is not found in the manifest, an error is thrown.\n */\n async getServerAsset(path) {\n const asset = this.manifest.assets.get(path);\n if (!asset) {\n throw new Error(`Server asset '${path}' does not exist.`);\n }\n return asset();\n }\n /**\n * Retrieves and caches the content of 'index.server.html'.\n *\n * @returns A promise that resolves to the content of 'index.server.html'.\n * @throws Error If there is an issue retrieving the asset.\n */\n getIndexServerHtml() {\n return this.getServerAsset('index.server.html');\n }\n}\n//# sourceMappingURL=assets.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\n/**\n * Custom implementation of the Angular Console service that filters out specific log messages.\n *\n * This class extends the internal Angular `ɵConsole` class to provide customized logging behavior.\n * It overrides the `log` method to suppress logs that match certain predefined messages.\n */\nexport class Console extends ɵConsole {\n /**\n * A set of log messages that should be ignored and not printed to the console.\n */\n ignoredLogs = new Set(['Angular is running in development mode.']);\n /**\n * Logs a message to the console if it is not in the set of ignored messages.\n *\n * @param message - The message to log to the console.\n *\n * This method overrides the `log` method of the `ɵConsole` class. It checks if the\n * message is in the `ignoredLogs` set. If it is not, it delegates the logging to\n * the parent class's `log` method. Otherwise, the message is suppressed.\n */\n log(message) {\n if (!this.ignoredLogs.has(message)) {\n super.log(message);\n }\n }\n}\n//# sourceMappingURL=console.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * The Angular app manifest object.\n * This is used internally to store the current Angular app manifest.\n */\nlet angularAppManifest;\n/**\n * Sets the Angular app manifest.\n *\n * @param manifest - The manifest object to set for the Angular application.\n */\nexport function setAngularAppManifest(manifest) {\n angularAppManifest = manifest;\n}\n/**\n * Gets the Angular app manifest.\n *\n * @returns The Angular app manifest.\n * @throws Will throw an error if the Angular app manifest is not set.\n */\nexport function getAngularAppManifest() {\n if (!angularAppManifest) {\n throw new Error('Angular app manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppManifest;\n}\n/**\n * The Angular app engine manifest object.\n * This is used internally to store the current Angular app engine manifest.\n */\nlet angularAppEngineManifest;\n/**\n * Sets the Angular app engine manifest.\n *\n * @param manifest - The engine manifest object to set.\n */\nexport function setAngularAppEngineManifest(manifest) {\n angularAppEngineManifest = manifest;\n}\n/**\n * Gets the Angular app engine manifest.\n *\n * @returns The Angular app engine manifest.\n * @throws Will throw an error if the Angular app engine manifest is not set.\n */\nexport function getAngularAppEngineManifest() {\n if (!angularAppEngineManifest) {\n throw new Error('Angular app engine manifest is not set. ' +\n `Please ensure you are using the '@angular/build:application' builder to build your server application.`);\n }\n return angularAppEngineManifest;\n}\n//# sourceMappingURL=manifest.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Removes the trailing slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the trailing slash.\n * @returns The URL string without a trailing slash.\n *\n * @example\n * ```js\n * stripTrailingSlash('path/'); // 'path'\n * stripTrailingSlash('/path'); // '/path'\n * stripTrailingSlash('/'); // '/'\n * stripTrailingSlash(''); // ''\n * ```\n */\nexport function stripTrailingSlash(url) {\n // Check if the last character of the URL is a slash\n return url.length > 1 && url[url.length - 1] === '/' ? url.slice(0, -1) : url;\n}\n/**\n * Removes the leading slash from a URL if it exists.\n *\n * @param url - The URL string from which to remove the leading slash.\n * @returns The URL string without a leading slash.\n *\n * @example\n * ```js\n * stripLeadingSlash('/path'); // 'path'\n * stripLeadingSlash('/path/'); // 'path/'\n * stripLeadingSlash('/'); // '/'\n * stripLeadingSlash(''); // ''\n * ```\n */\nexport function stripLeadingSlash(url) {\n // Check if the first character of the URL is a slash\n return url.length > 1 && url[0] === '/' ? url.slice(1) : url;\n}\n/**\n * Adds a leading slash to a URL if it does not already have one.\n *\n * @param url - The URL string to which the leading slash will be added.\n * @returns The URL string with a leading slash.\n *\n * @example\n * ```js\n * addLeadingSlash('path'); // '/path'\n * addLeadingSlash('/path'); // '/path'\n * ```\n */\nexport function addLeadingSlash(url) {\n // Check if the URL already starts with a slash\n return url[0] === '/' ? url : `/${url}`;\n}\n/**\n * Joins URL parts into a single URL string.\n *\n * This function takes multiple URL segments, normalizes them by removing leading\n * and trailing slashes where appropriate, and then joins them into a single URL.\n *\n * @param parts - The parts of the URL to join. Each part can be a string with or without slashes.\n * @returns The joined URL string, with normalized slashes.\n *\n * @example\n * ```js\n * joinUrlParts('path/', '/to/resource'); // '/path/to/resource'\n * joinUrlParts('/path/', 'to/resource'); // '/path/to/resource'\n * joinUrlParts('', ''); // '/'\n * ```\n */\nexport function joinUrlParts(...parts) {\n const normalizeParts = [];\n for (const part of parts) {\n if (part === '') {\n // Skip any empty parts\n continue;\n }\n let normalizedPart = part;\n if (part[0] === '/') {\n normalizedPart = normalizedPart.slice(1);\n }\n if (part[part.length - 1] === '/') {\n normalizedPart = normalizedPart.slice(0, -1);\n }\n if (normalizedPart !== '') {\n normalizeParts.push(normalizedPart);\n }\n }\n return addLeadingSlash(normalizeParts.join('/'));\n}\n/**\n * Strips `/index.html` from the end of a URL's path, if present.\n *\n * This function is used to convert URLs pointing to an `index.html` file into their directory\n * equivalents. For example, it transforms a URL like `http://www.example.com/page/index.html`\n * into `http://www.example.com/page`.\n *\n * @param url - The URL object to process.\n * @returns A new URL object with `/index.html` removed from the path, if it was present.\n *\n * @example\n * ```typescript\n * const originalUrl = new URL('http://www.example.com/page/index.html');\n * const cleanedUrl = stripIndexHtmlFromURL(originalUrl);\n * console.log(cleanedUrl.href); // Output: 'http://www.example.com/page'\n * ```\n */\nexport function stripIndexHtmlFromURL(url) {\n if (url.pathname.endsWith('/index.html')) {\n const modifiedURL = new URL(url);\n // Remove '/index.html' from the pathname\n modifiedURL.pathname = modifiedURL.pathname.slice(0, /** '/index.html'.length */ -11);\n return modifiedURL;\n }\n return url;\n}\n//# sourceMappingURL=url.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { ɵConsole } from '@angular/core';\nimport { ɵSERVER_CONTEXT as SERVER_CONTEXT, renderApplication, renderModule, } from '@angular/platform-server';\nimport { Console } from '../console';\nimport { stripIndexHtmlFromURL } from './url';\n/**\n * Renders an Angular application or module to an HTML string.\n *\n * This function determines whether the provided `bootstrap` value is an Angular module\n * or a bootstrap function and calls the appropriate rendering method (`renderModule` or\n * `renderApplication`) based on that determination.\n *\n * @param html - The HTML string to be used as the initial document content.\n * @param bootstrap - Either an Angular module type or a function that returns a promise\n * resolving to an `ApplicationRef`.\n * @param url - The URL of the application. This is used for server-side rendering to\n * correctly handle route-based rendering.\n * @param platformProviders - An array of platform providers to be used during the\n * rendering process.\n * @param serverContext - A string representing the server context, used to provide additional\n * context or metadata during server-side rendering.\n * @returns A promise that resolves to a string containing the rendered HTML.\n */\nexport function renderAngular(html, bootstrap, url, platformProviders, serverContext) {\n const providers = [\n {\n provide: SERVER_CONTEXT,\n useValue: serverContext,\n },\n {\n // An Angular Console Provider that does not print a set of predefined logs.\n provide: ɵConsole,\n // Using `useClass` would necessitate decorating `Console` with `@Injectable`,\n // which would require switching from `ts_library` to `ng_module`. This change\n // would also necessitate various patches of `@angular/bazel` to support ESM.\n useFactory: () => new Console(),\n },\n ...platformProviders,\n ];\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const urlToRender = stripIndexHtmlFromURL(url).toString();\n return isNgModule(bootstrap)\n ? renderModule(bootstrap, {\n url: urlToRender,\n document: html,\n extraProviders: providers,\n })\n : renderApplication(bootstrap, {\n url: urlToRender,\n document: html,\n platformProviders: providers,\n });\n}\n/**\n * Type guard to determine if a given value is an Angular module.\n * Angular modules are identified by the presence of the `ɵmod` static property.\n * This function helps distinguish between Angular modules and bootstrap functions.\n *\n * @param value - The value to be checked.\n * @returns True if the value is an Angular module (i.e., it has the `ɵmod` property), false otherwise.\n */\nexport function isNgModule(value) {\n return 'ɵmod' in value;\n}\n//# sourceMappingURL=ng.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { InjectionToken, makeEnvironmentProviders } from '@angular/core';\n/**\n * Different rendering modes for server routes.\n * @developerPreview\n */\nexport var RenderMode;\n(function (RenderMode) {\n /** AppShell rendering mode, typically used for pre-rendered shells of the application. */\n RenderMode[RenderMode[\"AppShell\"] = 0] = \"AppShell\";\n /** Server-Side Rendering (SSR) mode, where content is rendered on the server for each request. */\n RenderMode[RenderMode[\"Server\"] = 1] = \"Server\";\n /** Client-Side Rendering (CSR) mode, where content is rendered on the client side in the browser. */\n RenderMode[RenderMode[\"Client\"] = 2] = \"Client\";\n /** Static Site Generation (SSG) mode, where content is pre-rendered at build time and served as static files. */\n RenderMode[RenderMode[\"Prerender\"] = 3] = \"Prerender\";\n})(RenderMode || (RenderMode = {}));\n/**\n * Defines the fallback strategies for Static Site Generation (SSG) routes when a pre-rendered path is not available.\n * This is particularly relevant for routes with parameterized URLs where some paths might not be pre-rendered at build time.\n *\n * @developerPreview\n */\nexport var PrerenderFallback;\n(function (PrerenderFallback) {\n /**\n * Fallback to Server-Side Rendering (SSR) if the pre-rendered path is not available.\n * This strategy dynamically generates the page on the server at request time.\n */\n PrerenderFallback[PrerenderFallback[\"Server\"] = 0] = \"Server\";\n /**\n * Fallback to Client-Side Rendering (CSR) if the pre-rendered path is not available.\n * This strategy allows the page to be rendered on the client side.\n */\n PrerenderFallback[PrerenderFallback[\"Client\"] = 1] = \"Client\";\n /**\n * No fallback; if the path is not pre-rendered, the server will not handle the request.\n * This means the application will not provide any response for paths that are not pre-rendered.\n */\n PrerenderFallback[PrerenderFallback[\"None\"] = 2] = \"None\";\n})(PrerenderFallback || (PrerenderFallback = {}));\n/**\n * Token for providing the server routes configuration.\n * @internal\n */\nexport const SERVER_ROUTES_CONFIG = new InjectionToken('SERVER_ROUTES_CONFIG');\n/**\n * Configures the necessary providers for server routes configuration.\n *\n * @param routes - An array of server routes to be provided.\n * @returns An `EnvironmentProviders` object that contains the server routes configuration.\n * @developerPreview\n */\nexport function provideServerRoutesConfig(routes) {\n return makeEnvironmentProviders([\n {\n provide: SERVER_ROUTES_CONFIG,\n useValue: routes,\n },\n ]);\n}\n//# sourceMappingURL=route-config.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripTrailingSlash } from '../utils/url';\n/**\n * A route tree implementation that supports efficient route matching, including support for wildcard routes.\n * This structure is useful for organizing and retrieving routes in a hierarchical manner,\n * enabling complex routing scenarios with nested paths.\n *\n * @typeParam AdditionalMetadata - Type of additional metadata that can be associated with route nodes.\n */\nexport class RouteTree {\n /**\n * The root node of the route tree.\n * All routes are stored and accessed relative to this root node.\n */\n root = this.createEmptyRouteTreeNode('');\n /**\n * A counter that tracks the order of route insertion.\n * This ensures that routes are matched in the order they were defined,\n * with earlier routes taking precedence.\n */\n insertionIndexCounter = 0;\n /**\n * Inserts a new route into the route tree.\n * The route is broken down into segments, and each segment is added to the tree.\n * Parameterized segments (e.g., :id) are normalized to wildcards (*) for matching purposes.\n *\n * @param route - The route path to insert into the tree.\n * @param metadata - Metadata associated with the route, excluding the route path itself.\n */\n insert(route, metadata) {\n let node = this.root;\n const segments = this.getPathSegments(route);\n for (const segment of segments) {\n // Replace parameterized segments (e.g., :id) with a wildcard (*) for matching\n const normalizedSegment = segment[0] === ':' ? '*' : segment;\n let childNode = node.children.get(normalizedSegment);\n if (!childNode) {\n childNode = this.createEmptyRouteTreeNode(normalizedSegment);\n node.children.set(normalizedSegment, childNode);\n }\n node = childNode;\n }\n // At the leaf node, store the full route and its associated metadata\n node.metadata = {\n ...metadata,\n route: segments.join('/'),\n };\n node.insertionIndex = this.insertionIndexCounter++;\n }\n /**\n * Matches a given route against the route tree and returns the best matching route's metadata.\n * The best match is determined by the lowest insertion index, meaning the earliest defined route\n * takes precedence.\n *\n * @param route - The route path to match against the route tree.\n * @returns The metadata of the best matching route or `undefined` if no match is found.\n */\n match(route) {\n const segments = this.getPathSegments(route);\n return this.traverseBySegments(segments)?.metadata;\n }\n /**\n * Converts the route tree into a serialized format representation.\n * This method converts the route tree into an array of metadata objects that describe the structure of the tree.\n * The array represents the routes in a nested manner where each entry includes the route and its associated metadata.\n *\n * @returns An array of `RouteTreeNodeMetadata` objects representing the route tree structure.\n * Each object includes the `route` and associated metadata of a route.\n */\n toObject() {\n return Array.from(this.traverse());\n }\n /**\n * Constructs a `RouteTree` from an object representation.\n * This method is used to recreate a `RouteTree` instance from an array of metadata objects.\n * The array should be in the format produced by `toObject`, allowing for the reconstruction of the route tree\n * with the same routes and metadata.\n *\n * @param value - An array of `RouteTreeNodeMetadata` objects that represent the serialized format of the route tree.\n * Each object should include a `route` and its associated metadata.\n * @returns A new `RouteTree` instance constructed from the provided metadata objects.\n */\n static fromObject(value) {\n const tree = new RouteTree();\n for (const { route, ...metadata } of value) {\n tree.insert(route, metadata);\n }\n return tree;\n }\n /**\n * A generator function that recursively traverses the route tree and yields the metadata of each node.\n * This allows for easy and efficient iteration over all nodes in the tree.\n *\n * @param node - The current node to start the traversal from. Defaults to the root node of the tree.\n */\n *traverse(node = this.root) {\n if (node.metadata) {\n yield node.metadata;\n }\n for (const childNode of node.children.values()) {\n yield* this.traverse(childNode);\n }\n }\n /**\n * Extracts the path segments from a given route string.\n *\n * @param route - The route string from which to extract segments.\n * @returns An array of path segments.\n */\n getPathSegments(route) {\n return stripTrailingSlash(route).split('/');\n }\n /**\n * Recursively traverses the route tree from a given node, attempting to match the remaining route segments.\n * If the node is a leaf node (no more segments to match) and contains metadata, the node is yielded.\n *\n * This function prioritizes exact segment matches first, followed by wildcard matches (`*`),\n * and finally deep wildcard matches (`**`) that consume all segments.\n *\n * @param remainingSegments - The remaining segments of the route path to match.\n * @param node - The current node in the route tree to start traversal from.\n *\n * @returns The node that best matches the remaining segments or `undefined` if no match is found.\n */\n traverseBySegments(remainingSegments, node = this.root) {\n const { metadata, children } = node;\n // If there are no remaining segments and the node has metadata, return this node\n if (!remainingSegments?.length) {\n if (metadata) {\n return node;\n }\n return;\n }\n // If the node has no children, end the traversal\n if (!children.size) {\n return;\n }\n const [segment, ...restSegments] = remainingSegments;\n let currentBestMatchNode;\n // 1. Exact segment match\n const exactMatchNode = node.children.get(segment);\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, exactMatchNode));\n // 2. Wildcard segment match (`*`)\n const wildcardNode = node.children.get('*');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, this.traverseBySegments(restSegments, wildcardNode));\n // 3. Deep wildcard segment match (`**`)\n const deepWildcardNode = node.children.get('**');\n currentBestMatchNode = this.getHigherPriorityNode(currentBestMatchNode, deepWildcardNode);\n return currentBestMatchNode;\n }\n /**\n * Compares two nodes and returns the node with higher priority based on insertion index.\n * A node with a lower insertion index is prioritized as it was defined earlier.\n *\n * @param currentBestMatchNode - The current best match node.\n * @param candidateNode - The node being evaluated for higher priority based on insertion index.\n * @returns The node with higher priority (i.e., lower insertion index). If one of the nodes is `undefined`, the other node is returned.\n */\n getHigherPriorityNode(currentBestMatchNode, candidateNode) {\n if (!candidateNode) {\n return currentBestMatchNode;\n }\n if (!currentBestMatchNode) {\n return candidateNode;\n }\n return candidateNode.insertionIndex < currentBestMatchNode.insertionIndex\n ? candidateNode\n : currentBestMatchNode;\n }\n /**\n * Creates an empty route tree node with the specified segment.\n * This helper function is used during the tree construction.\n *\n * @param segment - The route segment that this node represents.\n * @returns A new, empty route tree node.\n */\n createEmptyRouteTreeNode(segment) {\n return {\n segment,\n insertionIndex: -1,\n children: new Map(),\n };\n }\n}\n//# sourceMappingURL=route-tree.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { APP_BASE_HREF, PlatformLocation } from '@angular/common';\nimport { ApplicationRef, Compiler, createPlatformFactory, platformCore, runInInjectionContext, ɵwhenStable as whenStable, ɵConsole, } from '@angular/core';\nimport { INITIAL_CONFIG, ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS, } from '@angular/platform-server';\nimport { Router, ɵloadChildren as loadChildrenHelper } from '@angular/router';\nimport { ServerAssets } from '../assets';\nimport { Console } from '../console';\nimport { getAngularAppManifest } from '../manifest';\nimport { isNgModule } from '../utils/ng';\nimport { joinUrlParts, stripLeadingSlash } from '../utils/url';\nimport { PrerenderFallback, RenderMode, SERVER_ROUTES_CONFIG } from './route-config';\nimport { RouteTree } from './route-tree';\n/**\n * Regular expression to match segments preceded by a colon in a string.\n */\nconst URL_PARAMETER_REGEXP = /(?<!\\\\):([^/]+)/g;\n/**\n * An set of HTTP status codes that are considered valid for redirect responses.\n */\nconst VALID_REDIRECT_RESPONSE_CODES = new Set([301, 302, 303, 307, 308]);\n/**\n * Traverses an array of route configurations to generate route tree node metadata.\n *\n * This function processes each route and its children, handling redirects, SSG (Static Site Generation) settings,\n * and lazy-loaded routes. It yields route metadata for each route and its potential variants.\n *\n * @param options - The configuration options for traversing routes.\n * @returns An async iterable iterator yielding either route tree node metadata or an error object with an error message.\n */\nasync function* traverseRoutesConfig(options) {\n const { routes, compiler, parentInjector, parentRoute, serverConfigRouteTree, invokeGetPrerenderParams, includePrerenderFallbackRoutes, } = options;\n for (const route of routes) {\n try {\n const { path = '', redirectTo, loadChildren, children } = route;\n const currentRoutePath = joinUrlParts(parentRoute, path);\n // Get route metadata from the server config route tree, if available\n let matchedMetaData;\n if (serverConfigRouteTree) {\n matchedMetaData = serverConfigRouteTree.match(currentRoutePath);\n if (!matchedMetaData) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route does not match any route defined in the server routing configuration. ` +\n 'Please ensure this route is added to the server routing configuration.',\n };\n continue;\n }\n matchedMetaData.presentInClientRouter = true;\n }\n const metadata = {\n ...matchedMetaData,\n route: currentRoutePath,\n };\n delete metadata.presentInClientRouter;\n // Handle redirects\n if (typeof redirectTo === 'string') {\n const redirectToResolved = resolveRedirectTo(currentRoutePath, redirectTo);\n if (metadata.status && !VALID_REDIRECT_RESPONSE_CODES.has(metadata.status)) {\n yield {\n error: `The '${metadata.status}' status code is not a valid redirect response code. ` +\n `Please use one of the following redirect response codes: ${[...VALID_REDIRECT_RESPONSE_CODES.values()].join(', ')}.`,\n };\n continue;\n }\n yield { ...metadata, redirectTo: redirectToResolved };\n }\n else if (metadata.renderMode === RenderMode.Prerender) {\n // Handle SSG routes\n yield* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n }\n else {\n yield metadata;\n }\n // Recursively process child routes\n if (children?.length) {\n yield* traverseRoutesConfig({\n ...options,\n routes: children,\n parentRoute: currentRoutePath,\n });\n }\n // Load and process lazy-loaded child routes\n if (loadChildren) {\n const loadedChildRoutes = await loadChildrenHelper(route, compiler, parentInjector).toPromise();\n if (loadedChildRoutes) {\n const { routes: childRoutes, injector = parentInjector } = loadedChildRoutes;\n yield* traverseRoutesConfig({\n ...options,\n routes: childRoutes,\n parentInjector: injector,\n parentRoute: currentRoutePath,\n });\n }\n }\n }\n catch (error) {\n yield {\n error: `Error processing route '${stripLeadingSlash(route.path ?? '')}': ${error.message}`,\n };\n }\n }\n}\n/**\n * Handles SSG (Static Site Generation) routes by invoking `getPrerenderParams` and yielding\n * all parameterized paths, returning any errors encountered.\n *\n * @param metadata - The metadata associated with the route tree node.\n * @param parentInjector - The dependency injection container for the parent route.\n * @param invokeGetPrerenderParams - A flag indicating whether to invoke the `getPrerenderParams` function.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result.\n * @returns An async iterable iterator that yields route tree node metadata for each SSG path or errors.\n */\nasync function* handleSSGRoute(metadata, parentInjector, invokeGetPrerenderParams, includePrerenderFallbackRoutes) {\n if (metadata.renderMode !== RenderMode.Prerender) {\n throw new Error(`'handleSSGRoute' was called for a route which rendering mode is not prerender.`);\n }\n const { route: currentRoutePath, fallback, ...meta } = metadata;\n const getPrerenderParams = 'getPrerenderParams' in meta ? meta.getPrerenderParams : undefined;\n if ('getPrerenderParams' in meta) {\n delete meta['getPrerenderParams'];\n }\n if (!URL_PARAMETER_REGEXP.test(currentRoutePath)) {\n // Route has no parameters\n yield {\n ...meta,\n route: currentRoutePath,\n };\n return;\n }\n if (invokeGetPrerenderParams) {\n if (!getPrerenderParams) {\n yield {\n error: `The '${stripLeadingSlash(currentRoutePath)}' route uses prerendering and includes parameters, but 'getPrerenderParams' ` +\n `is missing. Please define 'getPrerenderParams' function for this route in your server routing configuration ` +\n `or specify a different 'renderMode'.`,\n };\n return;\n }\n const parameters = await runInInjectionContext(parentInjector, () => getPrerenderParams());\n try {\n for (const params of parameters) {\n const routeWithResolvedParams = currentRoutePath.replace(URL_PARAMETER_REGEXP, (match) => {\n const parameterName = match.slice(1);\n const value = params[parameterName];\n if (typeof value !== 'string') {\n throw new Error(`The 'getPrerenderParams' function defined for the '${stripLeadingSlash(currentRoutePath)}' route ` +\n `returned a non-string value for parameter '${parameterName}'. ` +\n `Please make sure the 'getPrerenderParams' function returns values for all parameters ` +\n 'specified in this route.');\n }\n return value;\n });\n yield { ...meta, route: routeWithResolvedParams };\n }\n }\n catch (error) {\n yield { error: `${error.message}` };\n return;\n }\n }\n // Handle fallback render modes\n if (includePrerenderFallbackRoutes &&\n (fallback !== PrerenderFallback.None || !invokeGetPrerenderParams)) {\n yield {\n ...meta,\n route: currentRoutePath,\n renderMode: fallback === PrerenderFallback.Client ? RenderMode.Client : RenderMode.Server,\n };\n }\n}\n/**\n * Resolves the `redirectTo` property for a given route.\n *\n * This function processes the `redirectTo` property to ensure that it correctly\n * resolves relative to the current route path. If `redirectTo` is an absolute path,\n * it is returned as is. If it is a relative path, it is resolved based on the current route path.\n *\n * @param routePath - The current route path.\n * @param redirectTo - The target path for redirection.\n * @returns The resolved redirect path as a string.\n */\nfunction resolveRedirectTo(routePath, redirectTo) {\n if (redirectTo[0] === '/') {\n // If the redirectTo path is absolute, return it as is.\n return redirectTo;\n }\n // Resolve relative redirectTo based on the current route path.\n const segments = routePath.split('/');\n segments.pop(); // Remove the last segment to make it relative.\n return joinUrlParts(...segments, redirectTo);\n}\n/**\n * Builds a server configuration route tree from the given server routes configuration.\n *\n * @param serverRoutesConfig - The array of server routes to be used for configuration.\n\n * @returns An object containing:\n * - `serverConfigRouteTree`: A populated `RouteTree` instance, which organizes the server routes\n * along with their additional metadata.\n * - `errors`: An array of strings that list any errors encountered during the route tree construction\n * process, such as invalid paths.\n */\nfunction buildServerConfigRouteTree(serverRoutesConfig) {\n const serverConfigRouteTree = new RouteTree();\n const errors = [];\n for (const { path, ...metadata } of serverRoutesConfig) {\n if (path[0] === '/') {\n errors.push(`Invalid '${path}' route configuration: the path cannot start with a slash.`);\n continue;\n }\n serverConfigRouteTree.insert(path, metadata);\n }\n return { serverConfigRouteTree, errors };\n}\n/**\n * Retrieves routes from the given Angular application.\n *\n * This function initializes an Angular platform, bootstraps the application or module,\n * and retrieves routes from the Angular router configuration. It handles both module-based\n * and function-based bootstrapping. It yields the resulting routes as `RouteTreeNodeMetadata` objects or errors.\n *\n * @param bootstrap - A function that returns a promise resolving to an `ApplicationRef` or an Angular module to bootstrap.\n * @param document - The initial HTML document used for server-side rendering.\n * This document is necessary to render the application on the server.\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object of type `AngularRouterConfigResult` or errors.\n */\nexport async function getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const { protocol, host } = url;\n // Create and initialize the Angular platform for server-side rendering.\n const platformRef = createPlatformFactory(platformCore, 'server', [\n {\n provide: INITIAL_CONFIG,\n useValue: { document, url: `${protocol}//${host}/` },\n },\n {\n provide: ɵConsole,\n useFactory: () => new Console(),\n },\n ...INTERNAL_SERVER_PLATFORM_PROVIDERS,\n ])();\n try {\n let applicationRef;\n if (isNgModule(bootstrap)) {\n const moduleRef = await platformRef.bootstrapModule(bootstrap);\n applicationRef = moduleRef.injector.get(ApplicationRef);\n }\n else {\n applicationRef = await bootstrap();\n }\n // Wait until the application is stable.\n await whenStable(applicationRef);\n const injector = applicationRef.injector;\n const router = injector.get(Router);\n const routesResults = [];\n const errors = [];\n const baseHref = injector.get(APP_BASE_HREF, null, { optional: true }) ??\n injector.get(PlatformLocation).getBaseHrefFromDOM();\n if (router.config.length) {\n const compiler = injector.get(Compiler);\n const serverRoutesConfig = injector.get(SERVER_ROUTES_CONFIG, null, { optional: true });\n let serverConfigRouteTree;\n if (serverRoutesConfig) {\n const result = buildServerConfigRouteTree(serverRoutesConfig);\n serverConfigRouteTree = result.serverConfigRouteTree;\n errors.push(...result.errors);\n }\n if (errors.length) {\n return {\n baseHref,\n routes: routesResults,\n errors,\n };\n }\n // Retrieve all routes from the Angular router configuration.\n const traverseRoutes = traverseRoutesConfig({\n routes: router.config,\n compiler,\n parentInjector: injector,\n parentRoute: '',\n serverConfigRouteTree,\n invokeGetPrerenderParams,\n includePrerenderFallbackRoutes,\n });\n let seenAppShellRoute;\n for await (const result of traverseRoutes) {\n if ('error' in result) {\n errors.push(result.error);\n }\n else {\n if (result.renderMode === RenderMode.AppShell) {\n if (seenAppShellRoute !== undefined) {\n errors.push(`Error: Both '${seenAppShellRoute}' and '${stripLeadingSlash(result.route)}' routes have ` +\n `their 'renderMode' set to 'AppShell'. AppShell renderMode should only be assigned to one route. ` +\n `Please review your route configurations to ensure that only one route is set to 'RenderMode.AppShell'.`);\n }\n seenAppShellRoute = stripLeadingSlash(result.route);\n }\n routesResults.push(result);\n }\n }\n if (serverConfigRouteTree) {\n for (const { route, presentInClientRouter } of serverConfigRouteTree.traverse()) {\n if (presentInClientRouter || route === '**') {\n // Skip if matched or it's the catch-all route.\n continue;\n }\n errors.push(`The '${route}' server route does not match any routes defined in the Angular ` +\n `routing configuration (typically provided as a part of the 'provideRouter' call). ` +\n 'Please make sure that the mentioned server route is present in the Angular routing configuration.');\n }\n }\n }\n else {\n routesResults.push({ route: '', renderMode: RenderMode.Prerender });\n }\n return {\n baseHref,\n routes: routesResults,\n errors,\n };\n }\n finally {\n platformRef.destroy();\n }\n}\n/**\n * Asynchronously extracts routes from the Angular application configuration\n * and creates a `RouteTree` to manage server-side routing.\n *\n * @param url - The URL for server-side rendering. The URL is used to configure `ServerPlatformLocation`. This configuration is crucial\n * for ensuring that API requests for relative paths succeed, which is essential for accurate route extraction.\n * See:\n * - https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51\n * - https://github.com/angular/angular/blob/6882cc7d9eed26d3caeedca027452367ba25f2b9/packages/platform-server/src/http.ts#L44\n * @param manifest - An optional `AngularAppManifest` that contains the application's routing and configuration details.\n * If not provided, the default manifest is retrieved using `getAngularAppManifest()`.\n * @param invokeGetPrerenderParams - A boolean flag indicating whether to invoke `getPrerenderParams` for parameterized SSG routes\n * to handle prerendering paths. Defaults to `false`.\n * @param includePrerenderFallbackRoutes - A flag indicating whether to include fallback routes in the result. Defaults to `true`.\n *\n * @returns A promise that resolves to an object containing:\n * - `routeTree`: A populated `RouteTree` containing all extracted routes from the Angular application.\n * - `errors`: An array of strings representing any errors encountered during the route extraction process.\n */\nexport async function extractRoutesAndCreateRouteTree(url, manifest = getAngularAppManifest(), invokeGetPrerenderParams = false, includePrerenderFallbackRoutes = true) {\n const routeTree = new RouteTree();\n const document = await new ServerAssets(manifest).getIndexServerHtml();\n const bootstrap = await manifest.bootstrap();\n const { baseHref, routes, errors } = await getRoutesFromAngularRouterConfig(bootstrap, document, url, invokeGetPrerenderParams, includePrerenderFallbackRoutes);\n for (const { route, ...metadata } of routes) {\n if (metadata.redirectTo !== undefined) {\n metadata.redirectTo = joinUrlParts(baseHref, metadata.redirectTo);\n }\n const fullRoute = joinUrlParts(baseHref, route);\n routeTree.insert(fullRoute, metadata);\n }\n return {\n routeTree,\n errors,\n };\n}\n//# sourceMappingURL=ng-routes.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Manages a collection of hooks and provides methods to register and execute them.\n * Hooks are functions that can be invoked with specific arguments to allow modifications or enhancements.\n */\nexport class Hooks {\n /**\n * A map of hook names to arrays of hook functions.\n * Each hook name can have multiple associated functions, which are executed in sequence.\n */\n store = new Map();\n /**\n * Executes all hooks associated with the specified name, passing the given argument to each hook function.\n * The hooks are invoked sequentially, and the argument may be modified by each hook.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook whose functions will be executed.\n * @param context - The input value to be passed to each hook function. The value is mutated by each hook function.\n * @returns A promise that resolves once all hook functions have been executed.\n *\n * @example\n * ```typescript\n * const hooks = new Hooks();\n * hooks.on('html:transform:pre', async (ctx) => {\n * ctx.html = ctx.html.replace(/foo/g, 'bar');\n * return ctx.html;\n * });\n * const result = await hooks.run('html:transform:pre', { html: '<div>foo</div>' });\n * console.log(result); // '<div>bar</div>'\n * ```\n * @internal\n */\n async run(name, context) {\n const hooks = this.store.get(name);\n switch (name) {\n case 'html:transform:pre': {\n if (!hooks) {\n return context.html;\n }\n const ctx = { ...context };\n for (const hook of hooks) {\n ctx.html = await hook(ctx);\n }\n return ctx.html;\n }\n default:\n throw new Error(`Running hook \"${name}\" is not supported.`);\n }\n }\n /**\n * Registers a new hook function under the specified hook name.\n * This function should be a function that takes an argument of type `T` and returns a `string` or `Promise<string>`.\n *\n * @template Hook - The type of the hook name. It should be one of the keys of `HooksMapping`.\n * @param name - The name of the hook under which the function will be registered.\n * @param handler - A function to be executed when the hook is triggered. The handler will be called with an argument\n * that may be modified by the hook functions.\n *\n * @remarks\n * - If there are existing handlers registered under the given hook name, the new handler will be added to the list.\n * - If no handlers are registered under the given hook name, a new list will be created with the handler as its first element.\n *\n * @example\n * ```typescript\n * hooks.on('html:transform:pre', async (ctx) => {\n * return ctx.html.replace(/foo/g, 'bar');\n * });\n * ```\n */\n on(name, handler) {\n const hooks = this.store.get(name);\n if (hooks) {\n hooks.push(handler);\n }\n else {\n this.store.set(name, [handler]);\n }\n }\n /**\n * Checks if there are any hooks registered under the specified name.\n *\n * @param name - The name of the hook to check.\n * @returns `true` if there are hooks registered under the specified name, otherwise `false`.\n */\n has(name) {\n return !!this.store.get(name)?.length;\n }\n}\n//# sourceMappingURL=hooks.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { stripIndexHtmlFromURL } from '../utils/url';\nimport { extractRoutesAndCreateRouteTree } from './ng-routes';\nimport { RouteTree } from './route-tree';\n/**\n * Manages the application's server routing logic by building and maintaining a route tree.\n *\n * This class is responsible for constructing the route tree from the Angular application\n * configuration and using it to match incoming requests to the appropriate routes.\n */\nexport class ServerRouter {\n routeTree;\n /**\n * Creates an instance of the `ServerRouter`.\n *\n * @param routeTree - An instance of `RouteTree` that holds the routing information.\n * The `RouteTree` is used to match request URLs to the appropriate route metadata.\n */\n constructor(routeTree) {\n this.routeTree = routeTree;\n }\n /**\n * Static property to track the ongoing build promise.\n */\n static #extractionPromise;\n /**\n * Creates or retrieves a `ServerRouter` instance based on the provided manifest and URL.\n *\n * If the manifest contains pre-built routes, a new `ServerRouter` is immediately created.\n * Otherwise, it builds the router by extracting routes from the Angular configuration\n * asynchronously. This method ensures that concurrent builds are prevented by re-using\n * the same promise.\n *\n * @param manifest - An instance of `AngularAppManifest` that contains the route information.\n * @param url - The URL for server-side rendering. The URL is needed to configure `ServerPlatformLocation`.\n * This is necessary to ensure that API requests for relative paths succeed, which is crucial for correct route extraction.\n * [Reference](https://github.com/angular/angular/blob/d608b857c689d17a7ffa33bbb510301014d24a17/packages/platform-server/src/location.ts#L51)\n * @returns A promise resolving to a `ServerRouter` instance.\n */\n static from(manifest, url) {\n if (manifest.routes) {\n const routeTree = RouteTree.fromObject(manifest.routes);\n return Promise.resolve(new ServerRouter(routeTree));\n }\n // Create and store a new promise for the build process.\n // This prevents concurrent builds by re-using the same promise.\n ServerRouter.#extractionPromise ??= extractRoutesAndCreateRouteTree(url, manifest)\n .then(({ routeTree, errors }) => {\n if (errors.length > 0) {\n throw new Error('Error(s) occurred while extracting routes:\\n' +\n errors.map((error) => `- ${error}`).join('\\n'));\n }\n return new ServerRouter(routeTree);\n })\n .finally(() => {\n ServerRouter.#extractionPromise = undefined;\n });\n return ServerRouter.#extractionPromise;\n }\n /**\n * Matches a request URL against the route tree to retrieve route metadata.\n *\n * This method strips 'index.html' from the URL if it is present and then attempts\n * to find a match in the route tree. If a match is found, it returns the associated\n * route metadata; otherwise, it returns `undefined`.\n *\n * @param url - The URL to be matched against the route tree.\n * @returns The metadata for the matched route or `undefined` if no match is found.\n */\n match(url) {\n // Strip 'index.html' from URL if present.\n // A request to `http://www.example.com/page/index.html` will render the Angular route corresponding to `http://www.example.com/page`.\n const { pathname } = stripIndexHtmlFromURL(url);\n return this.routeTree.match(decodeURIComponent(pathname));\n }\n}\n//# sourceMappingURL=router.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Generates a SHA-256 hash of the provided string.\n *\n * @param data - The input string to be hashed.\n * @returns A promise that resolves to the SHA-256 hash of the input,\n * represented as a hexadecimal string.\n */\nexport async function sha256(data) {\n const encodedData = new TextEncoder().encode(data);\n const hashBuffer = await crypto.subtle.digest('SHA-256', encodedData);\n const hashParts = [];\n for (const h of new Uint8Array(hashBuffer)) {\n hashParts.push(h.toString(16).padStart(2, '0'));\n }\n return hashParts.join('');\n}\n//# sourceMappingURL=crypto.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport Critters from '../../third_party/critters';\n/**\n * Pattern used to extract the media query set by Critters in an `onload` handler.\n */\nconst MEDIA_SET_HANDLER_PATTERN = /^this\\.media=[\"'](.*)[\"'];?$/;\n/**\n * Name of the attribute used to save the Critters media query so it can be re-assigned on load.\n */\nconst CSP_MEDIA_ATTR = 'ngCspMedia';\n/**\n * Script that dynamically updates the `media` attribute of `<link>` tags based on a custom attribute (`CSP_MEDIA_ATTR`).\n *\n * NOTE:\n * We do not use `document.querySelectorAll('link').forEach((s) => s.addEventListener('load', ...)`\n * because load events are not always triggered reliably on Chrome.\n * See: https://github.com/angular/angular-cli/issues/26932 and https://crbug.com/1521256\n *\n * The script:\n * - Ensures the event target is a `<link>` tag with the `CSP_MEDIA_ATTR` attribute.\n * - Updates the `media` attribute with the value of `CSP_MEDIA_ATTR` and then removes the attribute.\n * - Removes the event listener when all relevant `<link>` tags have been processed.\n * - Uses event capturing (the `true` parameter) since load events do not bubble up the DOM.\n */\nconst LINK_LOAD_SCRIPT_CONTENT = `\n(() => {\n const CSP_MEDIA_ATTR = '${CSP_MEDIA_ATTR}';\n const documentElement = document.documentElement;\n\n // Listener for load events on link tags.\n const listener = (e) => {\n const target = e.target;\n if (\n !target ||\n target.tagName !== 'LINK' ||\n !target.hasAttribute(CSP_MEDIA_ATTR)\n ) {\n return;\n }\n\n target.media = target.getAttribute(CSP_MEDIA_ATTR);\n target.removeAttribute(CSP_MEDIA_ATTR);\n\n if (!document.head.querySelector(\\`link[\\${CSP_MEDIA_ATTR}]\\`)) {\n documentElement.removeEventListener('load', listener);\n }\n };\n\n documentElement.addEventListener('load', listener, true);\n})();\n`.trim();\nclass CrittersBase extends Critters {\n}\n/* eslint-enable @typescript-eslint/no-unsafe-declaration-merging */\nexport class InlineCriticalCssProcessor extends CrittersBase {\n readFile;\n outputPath;\n addedCspScriptsDocuments = new WeakSet();\n documentNonces = new WeakMap();\n constructor(readFile, outputPath) {\n super({\n logger: {\n // eslint-disable-next-line no-console\n warn: (s) => console.warn(s),\n // eslint-disable-next-line no-console\n error: (s) => console.error(s),\n info: () => { },\n },\n logLevel: 'warn',\n path: outputPath,\n publicPath: undefined,\n compress: false,\n pruneSource: false,\n reduceInlineStyles: false,\n mergeStylesheets: false,\n // Note: if `preload` changes to anything other than `media`, the logic in\n // `embedLinkedStylesheet` will have to be updated.\n preload: 'media',\n noscriptFallback: true,\n inlineFonts: true,\n });\n this.readFile = readFile;\n this.outputPath = outputPath;\n }\n /**\n * Override of the Critters `embedLinkedStylesheet` method\n * that makes it work with Angular's CSP APIs.\n */\n async embedLinkedStylesheet(link, document) {\n if (link.getAttribute('media') === 'print' && link.next?.name === 'noscript') {\n // Workaround for https://github.com/GoogleChromeLabs/critters/issues/64\n // NB: this is only needed for the webpack based builders.\n const media = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (media) {\n link.removeAttribute('onload');\n link.setAttribute('media', media[1]);\n link?.next?.remove();\n }\n }\n const returnValue = await super.embedLinkedStylesheet(link, document);\n const cspNonce = this.findCspNonce(document);\n if (cspNonce) {\n const crittersMedia = link.getAttribute('onload')?.match(MEDIA_SET_HANDLER_PATTERN);\n if (crittersMedia) {\n // If there's a Critters-generated `onload` handler and the file has an Angular CSP nonce,\n // we have to remove the handler, because it's incompatible with CSP. We save the value\n // in a different attribute and we generate a script tag with the nonce that uses\n // `addEventListener` to apply the media query instead.\n link.removeAttribute('onload');\n link.setAttribute(CSP_MEDIA_ATTR, crittersMedia[1]);\n this.conditionallyInsertCspLoadingScript(document, cspNonce, link);\n }\n // Ideally we would hook in at the time Critters inserts the `style` tags, but there isn't\n // a way of doing that at the moment so we fall back to doing it any time a `link` tag is\n // inserted. We mitigate it by only iterating the direct children of the `<head>` which\n // should be pretty shallow.\n document.head.children.forEach((child) => {\n if (child.tagName === 'style' && !child.hasAttribute('nonce')) {\n child.setAttribute('nonce', cspNonce);\n }\n });\n }\n return returnValue;\n }\n /**\n * Finds the CSP nonce for a specific document.\n */\n findCspNonce(document) {\n if (this.documentNonces.has(document)) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this.documentNonces.get(document);\n }\n // HTML attribute are case-insensitive, but the parser used by Critters is case-sensitive.\n const nonceElement = document.querySelector('[ngCspNonce], [ngcspnonce]');\n const cspNonce = nonceElement?.getAttribute('ngCspNonce') || nonceElement?.getAttribute('ngcspnonce') || null;\n this.documentNonces.set(document, cspNonce);\n return cspNonce;\n }\n /**\n * Inserts the `script` tag that swaps the critical CSS at runtime,\n * if one hasn't been inserted into the document already.\n */\n conditionallyInsertCspLoadingScript(document, nonce, link) {\n if (this.addedCspScriptsDocuments.has(document)) {\n return;\n }\n if (document.head.textContent.includes(LINK_LOAD_SCRIPT_CONTENT)) {\n // Script was already added during the build.\n this.addedCspScriptsDocuments.add(document);\n return;\n }\n const script = document.createElement('script');\n script.setAttribute('nonce', nonce);\n script.textContent = LINK_LOAD_SCRIPT_CONTENT;\n // Prepend the script to the head since it needs to\n // run as early as possible, before the `link` tags.\n document.head.insertBefore(script, link);\n this.addedCspScriptsDocuments.add(document);\n }\n}\n//# sourceMappingURL=inline-critical-css.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * A Least Recently Used (LRU) cache implementation.\n *\n * This cache stores a fixed number of key-value pairs, and when the cache exceeds its capacity,\n * the least recently accessed items are evicted.\n *\n * @template Key - The type of the cache keys.\n * @template Value - The type of the cache values.\n */\nexport class LRUCache {\n /**\n * The maximum number of items the cache can hold.\n */\n capacity;\n /**\n * Internal storage for the cache, mapping keys to their associated nodes in the linked list.\n */\n cache = new Map();\n /**\n * Head of the doubly linked list, representing the most recently used item.\n */\n head;\n /**\n * Tail of the doubly linked list, representing the least recently used item.\n */\n tail;\n /**\n * Creates a new LRUCache instance.\n * @param capacity The maximum number of items the cache can hold.\n */\n constructor(capacity) {\n this.capacity = capacity;\n }\n /**\n * Gets the value associated with the given key.\n * @param key The key to retrieve the value for.\n * @returns The value associated with the key, or undefined if the key is not found.\n */\n get(key) {\n const node = this.cache.get(key);\n if (node) {\n this.moveToHead(node);\n return node.value;\n }\n return undefined;\n }\n /**\n * Puts a key-value pair into the cache.\n * If the key already exists, the value is updated.\n * If the cache is full, the least recently used item is evicted.\n * @param key The key to insert or update.\n * @param value The value to associate with the key.\n */\n put(key, value) {\n const cachedNode = this.cache.get(key);\n if (cachedNode) {\n // Update existing node\n cachedNode.value = value;\n this.moveToHead(cachedNode);\n return;\n }\n // Create a new node\n const newNode = { key, value, prev: undefined, next: undefined };\n this.cache.set(key, newNode);\n this.addToHead(newNode);\n if (this.cache.size > this.capacity) {\n // Evict the LRU item\n const tail = this.removeTail();\n if (tail) {\n this.cache.delete(tail.key);\n }\n }\n }\n /**\n * Adds a node to the head of the linked list.\n * @param node The node to add.\n */\n addToHead(node) {\n node.next = this.head;\n node.prev = undefined;\n if (this.head) {\n this.head.prev = node;\n }\n this.head = node;\n if (!this.tail) {\n this.tail = node;\n }\n }\n /**\n * Removes a node from the linked list.\n * @param node The node to remove.\n */\n removeNode(node) {\n if (node.prev) {\n node.prev.next = node.next;\n }\n else {\n this.head = node.next;\n }\n if (node.next) {\n node.next.prev = node.prev;\n }\n else {\n this.tail = node.prev;\n }\n }\n /**\n * Moves a node to the head of the linked list.\n * @param node The node to move.\n */\n moveToHead(node) {\n this.removeNode(node);\n this.addToHead(node);\n }\n /**\n * Removes the tail node from the linked list.\n * @returns The removed tail node, or undefined if the list is empty.\n */\n removeTail() {\n const node = this.tail;\n if (node) {\n this.removeNode(node);\n }\n return node;\n }\n}\n//# sourceMappingURL=lru-cache.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { LOCALE_ID, ɵresetCompiledComponents } from '@angular/core';\nimport { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from '@angular/ssr/tokens';\nimport { ServerAssets } from './assets';\nimport { Hooks } from './hooks';\nimport { getAngularAppManifest } from './manifest';\nimport { RenderMode } from './routes/route-config';\nimport { ServerRouter } from './routes/router';\nimport { sha256 } from './utils/crypto';\nimport { InlineCriticalCssProcessor } from './utils/inline-critical-css';\nimport { LRUCache } from './utils/lru-cache';\nimport { renderAngular } from './utils/ng';\n/**\n * Maximum number of critical CSS entries the cache can store.\n * This value determines the capacity of the LRU (Least Recently Used) cache, which stores critical CSS for pages.\n */\nconst MAX_INLINE_CSS_CACHE_ENTRIES = 50;\n/**\n * A mapping of `RenderMode` enum values to corresponding string representations.\n *\n * This record is used to map each `RenderMode` to a specific string value that represents\n * the server context. The string values are used internally to differentiate\n * between various rendering strategies when processing routes.\n *\n * - `RenderMode.Prerender` maps to `'ssg'` (Static Site Generation).\n * - `RenderMode.Server` maps to `'ssr'` (Server-Side Rendering).\n * - `RenderMode.AppShell` maps to `'app-shell'` (pre-rendered application shell).\n * - `RenderMode.Client` maps to an empty string `''` (Client-Side Rendering, no server context needed).\n */\nconst SERVER_CONTEXT_VALUE = {\n [RenderMode.Prerender]: 'ssg',\n [RenderMode.Server]: 'ssr',\n [RenderMode.AppShell]: 'app-shell',\n [RenderMode.Client]: '',\n};\n/**\n * Represents a locale-specific Angular server application managed by the server application engine.\n *\n * The `AngularServerApp` class handles server-side rendering and asset management for a specific locale.\n */\nexport class AngularServerApp {\n /**\n * Hooks for extending or modifying the behavior of the server application.\n * This instance can be used to attach custom functionality to various events in the server application lifecycle.\n */\n hooks = new Hooks();\n /**\n * The manifest associated with this server application.\n */\n manifest = getAngularAppManifest();\n /**\n * An instance of ServerAsset that handles server-side asset.\n */\n assets = new ServerAssets(this.manifest);\n /**\n * The router instance used for route matching and handling.\n */\n router;\n /**\n * The `inlineCriticalCssProcessor` is responsible for handling critical CSS inlining.\n */\n inlineCriticalCssProcessor;\n /**\n * The bootstrap mechanism for the server application.\n */\n boostrap;\n /**\n * Cache for storing critical CSS for pages.\n * Stores a maximum of MAX_INLINE_CSS_CACHE_ENTRIES entries.\n *\n * Uses an LRU (Least Recently Used) eviction policy, meaning that when the cache is full,\n * the least recently accessed page's critical CSS will be removed to make space for new entries.\n */\n criticalCssLRUCache = new LRUCache(MAX_INLINE_CSS_CACHE_ENTRIES);\n /**\n * Renders a response for the given HTTP request using the server application.\n *\n * This method processes the request and returns a response based on the specified rendering context.\n *\n * @param request - The incoming HTTP request to be rendered.\n * @param requestContext - Optional additional context for rendering, such as request metadata.\n *\n * @returns A promise that resolves to the HTTP response object resulting from the rendering, or null if no match is found.\n */\n render(request, requestContext) {\n return Promise.race([\n this.createAbortPromise(request),\n this.handleRendering(request, /** isSsrMode */ true, requestContext),\n ]);\n }\n /**\n * Renders a page based on the provided URL via server-side rendering and returns the corresponding HTTP response.\n * The rendering process can be interrupted by an abort signal, where the first resolved promise (either from the abort\n * or the render process) will dictate the outcome.\n *\n * @param url - The full URL to be processed and rendered by the server.\n * @param signal - (Optional) An `AbortSignal` object that allows for the cancellation of the rendering process.\n * @returns A promise that resolves to the generated HTTP response object, or `null` if no matching route is found.\n */\n renderStatic(url, signal) {\n const request = new Request(url, { signal });\n return Promise.race([\n this.createAbortPromise(request),\n this.handleRendering(request, /** isSsrMode */ false),\n ]);\n }\n /**\n * Creates a promise that rejects when the request is aborted.\n *\n * @param request - The HTTP request to monitor for abortion.\n * @returns A promise that never resolves but rejects with an `AbortError` if the request is aborted.\n */\n createAbortPromise(request) {\n return new Promise((_, reject) => {\n request.signal.addEventListener('abort', () => {\n const abortError = new Error(`Request for: ${request.url} was aborted.\\n${request.signal.reason}`);\n abortError.name = 'AbortError';\n reject(abortError);\n }, { once: true });\n });\n }\n /**\n * Handles the server-side rendering process for the given HTTP request.\n * This method matches the request URL to a route and performs rendering if a matching route is found.\n *\n * @param request - The incoming HTTP request to be processed.\n * @param isSsrMode - A boolean indicating whether the rendering is performed in server-side rendering (SSR) mode.\n * @param requestContext - Optional additional context for rendering, such as request metadata.\n *\n * @returns A promise that resolves to the rendered response, or null if no matching route is found.\n */\n async handleRendering(request, isSsrMode, requestContext) {\n const url = new URL(request.url);\n this.router ??= await ServerRouter.from(this.manifest, url);\n const matchedRoute = this.router.match(url);\n if (!matchedRoute) {\n // Not a known Angular route.\n return null;\n }\n const { redirectTo, status } = matchedRoute;\n if (redirectTo !== undefined) {\n // Note: The status code is validated during route extraction.\n // 302 Found is used by default for redirections\n // See: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect_static#status\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return Response.redirect(new URL(redirectTo, url), status ?? 302);\n }\n const { renderMode = isSsrMode ? RenderMode.Server : RenderMode.Prerender, headers } = matchedRoute;\n const platformProviders = [];\n let responseInit;\n if (isSsrMode) {\n // Initialize the response with status and headers if available.\n responseInit = {\n status,\n headers: new Headers({\n 'Content-Type': 'text/html;charset=UTF-8',\n ...headers,\n }),\n };\n if (renderMode === RenderMode.Server) {\n // Configure platform providers for request and response only for SSR.\n platformProviders.push({\n provide: REQUEST,\n useValue: request,\n }, {\n provide: REQUEST_CONTEXT,\n useValue: requestContext,\n }, {\n provide: RESPONSE_INIT,\n useValue: responseInit,\n });\n }\n else if (renderMode === RenderMode.Client) {\n // Serve the client-side rendered version if the route is configured for CSR.\n return new Response(await this.assets.getServerAsset('index.csr.html'), responseInit);\n }\n }\n const { manifest: { bootstrap, inlineCriticalCss, locale }, hooks, assets, } = this;\n if (locale !== undefined) {\n platformProviders.push({\n provide: LOCALE_ID,\n useValue: locale,\n });\n }\n let html = await assets.getIndexServerHtml();\n // Skip extra microtask if there are no pre hooks.\n if (hooks.has('html:transform:pre')) {\n html = await hooks.run('html:transform:pre', { html, url });\n }\n this.boostrap ??= await bootstrap();\n html = await renderAngular(html, this.boostrap, url, platformProviders, SERVER_CONTEXT_VALUE[renderMode]);\n if (inlineCriticalCss) {\n // Optionally inline critical CSS.\n this.inlineCriticalCssProcessor ??= new InlineCriticalCssProcessor((path) => {\n const fileName = path.split('/').pop() ?? path;\n return this.assets.getServerAsset(fileName);\n });\n // TODO(alanagius): remove once Node.js version 18 is no longer supported.\n if (isSsrMode && typeof crypto === 'undefined') {\n // eslint-disable-next-line no-console\n console.error(`The global 'crypto' module is unavailable. ` +\n `If you are running on Node.js, please ensure you are using version 20 or later, ` +\n `which includes built-in support for the Web Crypto module.`);\n }\n if (isSsrMode && typeof crypto !== 'undefined') {\n // Only cache if we are running in SSR Mode.\n const cacheKey = await sha256(html);\n let htmlWithCriticalCss = this.criticalCssLRUCache.get(cacheKey);\n if (htmlWithCriticalCss === undefined) {\n htmlWithCriticalCss = await this.inlineCriticalCssProcessor.process(html);\n this.criticalCssLRUCache.put(cacheKey, htmlWithCriticalCss);\n }\n html = htmlWithCriticalCss;\n }\n else {\n html = await this.inlineCriticalCssProcessor.process(html);\n }\n }\n return new Response(html, responseInit);\n }\n}\nlet angularServerApp;\n/**\n * Retrieves or creates an instance of `AngularServerApp`.\n * - If an instance of `AngularServerApp` already exists, it will return the existing one.\n * - If no instance exists, it will create a new one with the provided options.\n * @returns The existing or newly created instance of `AngularServerApp`.\n */\nexport function getOrCreateAngularServerApp() {\n return (angularServerApp ??= new AngularServerApp());\n}\n/**\n * Destroys the existing `AngularServerApp` instance, releasing associated resources and resetting the\n * reference to `undefined`.\n *\n * This function is primarily used to enable the recreation of the `AngularServerApp` instance,\n * typically when server configuration or application state needs to be refreshed.\n */\nexport function destroyAngularServerApp() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Need to clean up GENERATED_COMP_IDS map in `@angular/core`.\n // Otherwise an incorrect component ID generation collision detected warning will be displayed in development.\n // See: https://github.com/angular/angular-cli/issues/25924\n ɵresetCompiledComponents();\n }\n angularServerApp = undefined;\n}\n//# sourceMappingURL=app.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n// ɵgetRoutesFromAngularRouterConfig is only used by the Webpack based server builder.\nexport { getRoutesFromAngularRouterConfig as ɵgetRoutesFromAngularRouterConfig, extractRoutesAndCreateRouteTree as ɵextractRoutesAndCreateRouteTree, } from './src/routes/ng-routes';\nexport { getOrCreateAngularServerApp as ɵgetOrCreateAngularServerApp, destroyAngularServerApp as ɵdestroyAngularServerApp, } from './src/app';\nexport { setAngularAppManifest as ɵsetAngularAppManifest, setAngularAppEngineManifest as ɵsetAngularAppEngineManifest, } from './src/manifest';\nexport { InlineCriticalCssProcessor as ɵInlineCriticalCssProcessor } from './src/utils/inline-critical-css';\n//# sourceMappingURL=private_export.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Extracts a potential locale ID from a given URL based on the specified base path.\n *\n * This function parses the URL to locate a potential locale identifier that immediately\n * follows the base path segment in the URL's pathname. If the URL does not contain a valid\n * locale ID, an empty string is returned.\n *\n * @param url - The full URL from which to extract the locale ID.\n * @param basePath - The base path used as the reference point for extracting the locale ID.\n * @returns The extracted locale ID if present, or an empty string if no valid locale ID is found.\n *\n * @example\n * ```js\n * const url = new URL('https://example.com/base/en/page');\n * const basePath = '/base';\n * const localeId = getPotentialLocaleIdFromUrl(url, basePath);\n * console.log(localeId); // Output: 'en'\n * ```\n */\nexport function getPotentialLocaleIdFromUrl(url, basePath) {\n const { pathname } = url;\n // Move forward of the base path section.\n let start = basePath.length;\n if (pathname[start] === '/') {\n start++;\n }\n // Find the next forward slash.\n let end = pathname.indexOf('/', start);\n if (end === -1) {\n end = pathname.length;\n }\n // Extract the potential locale id.\n return pathname.slice(start, end);\n}\n//# sourceMappingURL=i18n.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { Hooks } from './hooks';\nimport { getPotentialLocaleIdFromUrl } from './i18n';\nimport { getAngularAppEngineManifest } from './manifest';\nimport { stripIndexHtmlFromURL, stripTrailingSlash } from './utils/url';\n/**\n * Angular server application engine.\n * Manages Angular server applications (including localized ones), handles rendering requests,\n * and optionally transforms index HTML before rendering.\n *\n * @note This class should be instantiated once and used as a singleton across the server-side\n * application to ensure consistent handling of rendering requests and resource management.\n *\n * @developerPreview\n */\nexport class AngularAppEngine {\n /**\n * Hooks for extending or modifying the behavior of the server application.\n * These hooks are used by the Angular CLI when running the development server and\n * provide extensibility points for the application lifecycle.\n *\n * @private\n */\n static ɵhooks = /* #__PURE__*/ new Hooks();\n /**\n * Provides access to the hooks for extending or modifying the server application's behavior.\n * This allows attaching custom functionality to various server application lifecycle events.\n *\n * @internal\n */\n get hooks() {\n return AngularAppEngine.ɵhooks;\n }\n /**\n * The manifest for the server application.\n */\n manifest = getAngularAppEngineManifest();\n /**\n * A cache that holds entry points, keyed by their potential locale string.\n */\n entryPointsCache = new Map();\n /**\n * Renders a response for the given HTTP request using the server application.\n *\n * This method processes the request, determines the appropriate route and rendering context,\n * and returns an HTTP response.\n *\n * If the request URL appears to be for a file (excluding `/index.html`), the method returns `null`.\n * A request to `https://www.example.com/page/index.html` will render the Angular route\n * corresponding to `https://www.example.com/page`.\n *\n * @param request - The incoming HTTP request object to be rendered.\n * @param requestContext - Optional additional context for the request, such as metadata.\n * @returns A promise that resolves to a Response object, or `null` if the request URL represents a file (e.g., `./logo.png`)\n * rather than an application route.\n */\n async render(request, requestContext) {\n // Skip if the request looks like a file but not `/index.html`.\n const url = new URL(request.url);\n const entryPoint = await this.getEntryPointExportsForUrl(url);\n if (!entryPoint) {\n return null;\n }\n const { ɵgetOrCreateAngularServerApp: getOrCreateAngularServerApp } = entryPoint;\n // Note: Using `instanceof` is not feasible here because `AngularServerApp` will\n // be located in separate bundles, making `instanceof` checks unreliable.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n const serverApp = getOrCreateAngularServerApp();\n serverApp.hooks = this.hooks;\n return serverApp.render(request, requestContext);\n }\n /**\n * Retrieves HTTP headers for a request associated with statically generated (SSG) pages,\n * based on the URL pathname.\n *\n * @param request - The incoming request object.\n * @returns A `Map` containing the HTTP headers as key-value pairs.\n * @note This function should be used exclusively for retrieving headers of SSG pages.\n */\n getPrerenderHeaders(request) {\n if (this.manifest.staticPathsHeaders.size === 0) {\n return new Map();\n }\n const { pathname } = stripIndexHtmlFromURL(new URL(request.url));\n const headers = this.manifest.staticPathsHeaders.get(stripTrailingSlash(pathname));\n return new Map(headers);\n }\n /**\n * Retrieves the exports for a specific entry point, caching the result.\n *\n * @param potentialLocale - The locale string used to find the corresponding entry point.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExports(potentialLocale) {\n const cachedEntryPoint = this.entryPointsCache.get(potentialLocale);\n if (cachedEntryPoint) {\n return cachedEntryPoint;\n }\n const { entryPoints } = this.manifest;\n const entryPoint = entryPoints.get(potentialLocale);\n if (!entryPoint) {\n return undefined;\n }\n const entryPointExports = entryPoint();\n this.entryPointsCache.set(potentialLocale, entryPointExports);\n return entryPointExports;\n }\n /**\n * Retrieves the entry point for a given URL by determining the locale and mapping it to\n * the appropriate application bundle.\n *\n * This method determines the appropriate entry point and locale for rendering the application by examining the URL.\n * If there is only one entry point available, it is returned regardless of the URL.\n * Otherwise, the method extracts a potential locale identifier from the URL and looks up the corresponding entry point.\n *\n * @param url - The URL of the request.\n * @returns A promise that resolves to the entry point exports or `undefined` if not found.\n */\n getEntryPointExportsForUrl(url) {\n const { entryPoints, basePath } = this.manifest;\n if (entryPoints.size === 1) {\n return this.getEntryPointExports('');\n }\n const potentialLocale = getPotentialLocaleIdFromUrl(url, basePath);\n return this.getEntryPointExports(potentialLocale);\n }\n}\n//# sourceMappingURL=app-engine.js.map","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n/**\n * Annotates a request handler function with metadata, marking it as a special\n * handler.\n *\n * @param handler - The request handler function to be annotated.\n * @returns The same handler function passed in, with metadata attached.\n *\n * @example\n * Example usage in a Hono application:\n * ```ts\n * const app = new Hono();\n * export default createRequestHandler(app.fetch);\n * ```\n *\n * @example\n * Example usage in a H3 application:\n * ```ts\n * const app = createApp();\n * const handler = toWebHandler(app);\n * export default createRequestHandler(handler);\n * ```\n * @developerPreview\n */\nexport function createRequestHandler(handler) {\n handler['__ng_request_handler__'] = true;\n return handler;\n}\n//# sourceMappingURL=handler.js.map"],"names":["ɵConsole","SERVER_CONTEXT","loadChildrenHelper","INTERNAL_SERVER_PLATFORM_PROVIDERS","whenStable","ɵresetCompiledComponents"],"mappings":";;;;;;;AAOA;AACA;AACA;AACO,MAAM,YAAY,CAAC;AAC1B,IAAI,QAAQ,CAAA;AACZ;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;AAChC,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,MAAM,cAAc,CAAC,IAAI,EAAE;AAC/B,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;AACpD,QAAQ,IAAI,CAAC,KAAK,EAAE;AACpB,YAAY,MAAM,IAAI,KAAK,CAAC,CAAC,cAAc,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAA;AACrE,SAAQ;AACR,QAAQ,OAAO,KAAK,EAAE,CAAA;AACtB,KAAI;AACJ;AACA;AACA;AACA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ACA;AACA,IAAI,0BAA0B,CAAC,GAAG,EAAE;AACpC,QAAQ,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAA;AACvD,QAAQ,IAAI,WAAW,CAAC,IAAI,KAAK,CAAC,EAAE;AACpC,YAAY,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;AAChD,SAAQ;AACR,QAAQ,MAAM,eAAe,GAAG,2BAA2B,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;AAC1E,QAAQ,OAAO,IAAI,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAA;AACzD,KAAI;AACJ;;AC7HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,OAAO,EAAE;AAC9C,IAAI,OAAO,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAA;AAC5C,IAAI,OAAO,OAAO,CAAA;AAClB;;;;"}
@@ -0,0 +1,20 @@
1
+ import { InjectionToken } from '@angular/core';
2
+
3
+ /**
4
+ * Injection token for the current request.
5
+ * @developerPreview
6
+ */
7
+ const REQUEST = new InjectionToken('REQUEST');
8
+ /**
9
+ * Injection token for the response initialization options.
10
+ * @developerPreview
11
+ */
12
+ const RESPONSE_INIT = new InjectionToken('RESPONSE_INIT');
13
+ /**
14
+ * Injection token for additional request context.
15
+ * @developerPreview
16
+ */
17
+ const REQUEST_CONTEXT = new InjectionToken('REQUEST_CONTEXT');
18
+
19
+ export { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT };
20
+ //# sourceMappingURL=tokens.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.mjs","sources":["../../../../../../k8-fastbuild-ST-70f2edae98f4/bin/packages/angular/ssr/tokens/src/tokens.mjs"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport { InjectionToken } from '@angular/core';\n/**\n * Injection token for the current request.\n * @developerPreview\n */\nexport const REQUEST = new InjectionToken('REQUEST');\n/**\n * Injection token for the response initialization options.\n * @developerPreview\n */\nexport const RESPONSE_INIT = new InjectionToken('RESPONSE_INIT');\n/**\n * Injection token for additional request context.\n * @developerPreview\n */\nexport const REQUEST_CONTEXT = new InjectionToken('REQUEST_CONTEXT');\n//# sourceMappingURL=tokens.js.map"],"names":[],"mappings":";;AAQA;AACA;AACA;AACA;AACY,MAAC,OAAO,GAAG,IAAI,cAAc,CAAC,SAAS,EAAC;AACpD;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG,IAAI,cAAc,CAAC,eAAe,EAAC;AAChE;AACA;AACA;AACA;AACY,MAAC,eAAe,GAAG,IAAI,cAAc,CAAC,iBAAiB;;;;"}
package/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { ApplicationRef } from '@angular/core';
2
2
  import { default as default_2 } from 'critters';
3
3
  import { EnvironmentProviders } from '@angular/core';
4
- import { InjectionToken } from '@angular/core';
5
4
  import type { Type } from '@angular/core';
6
5
 
7
6
  /**
@@ -443,18 +442,6 @@ export declare enum RenderMode {
443
442
  Prerender = 3
444
443
  }
445
444
 
446
- /**
447
- * Injection token for the current request.
448
- * @developerPreview
449
- */
450
- export declare const REQUEST: InjectionToken<Request>;
451
-
452
- /**
453
- * Injection token for additional request context.
454
- * @developerPreview
455
- */
456
- export declare const REQUEST_CONTEXT: InjectionToken<unknown>;
457
-
458
445
 
459
446
  /**
460
447
  * Function for handling HTTP requests in a web environment.
@@ -465,12 +452,6 @@ export declare const REQUEST_CONTEXT: InjectionToken<unknown>;
465
452
  */
466
453
  declare type RequestHandlerFunction = (request: Request) => Promise<Response | null> | null | Response;
467
454
 
468
- /**
469
- * Injection token for the response initialization options.
470
- * @developerPreview
471
- */
472
- export declare const RESPONSE_INIT: InjectionToken<ResponseInit>;
473
-
474
455
  /**
475
456
  * A route tree implementation that supports efficient route matching, including support for wildcard routes.
476
457
  * This structure is useful for organizing and retrieving routes in a hierarchical manner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/ssr",
3
- "version": "19.0.0-next.11",
3
+ "version": "19.0.0-next.13",
4
4
  "description": "Angular server side rendering utilities",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/angular/angular-cli",
@@ -22,14 +22,15 @@
22
22
  "@angular/router": "^19.0.0-next.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@angular/common": "19.0.0-next.9",
26
- "@angular/compiler": "19.0.0-next.9",
27
- "@angular/core": "19.0.0-next.9",
28
- "@angular/platform-browser": "19.0.0-next.9",
29
- "@angular/platform-server": "19.0.0-next.9",
30
- "@angular/router": "19.0.0-next.9",
25
+ "@angular/common": "19.0.0-next.10",
26
+ "@angular/compiler": "19.0.0-next.10",
27
+ "@angular/core": "19.0.0-next.10",
28
+ "@angular/platform-browser": "19.0.0-next.10",
29
+ "@angular/platform-server": "19.0.0-next.10",
30
+ "@angular/router": "19.0.0-next.10",
31
31
  "@bazel/runfiles": "^5.8.1"
32
32
  },
33
+ "sideEffects": false,
33
34
  "schematics": "./schematics/collection.json",
34
35
  "repository": {
35
36
  "type": "git",
@@ -49,6 +50,10 @@
49
50
  "./node": {
50
51
  "types": "./node/index.d.ts",
51
52
  "default": "./fesm2022/node.mjs"
53
+ },
54
+ "./tokens": {
55
+ "types": "./tokens/index.d.ts",
56
+ "default": "./fesm2022/tokens.mjs"
52
57
  }
53
58
  }
54
59
  }
@@ -0,0 +1,21 @@
1
+ import { InjectionToken } from '@angular/core';
2
+
3
+ /**
4
+ * Injection token for the current request.
5
+ * @developerPreview
6
+ */
7
+ export declare const REQUEST: InjectionToken<Request>;
8
+
9
+ /**
10
+ * Injection token for additional request context.
11
+ * @developerPreview
12
+ */
13
+ export declare const REQUEST_CONTEXT: InjectionToken<unknown>;
14
+
15
+ /**
16
+ * Injection token for the response initialization options.
17
+ * @developerPreview
18
+ */
19
+ export declare const RESPONSE_INIT: InjectionToken<ResponseInit>;
20
+
21
+ export { }