@angular/core 19.1.0-next.3 → 19.1.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/fesm2022/core.mjs +329 -107
  2. package/fesm2022/core.mjs.map +1 -1
  3. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  4. package/fesm2022/primitives/signals.mjs +1 -1
  5. package/fesm2022/rxjs-interop.mjs +1 -1
  6. package/fesm2022/testing.mjs +4 -4
  7. package/index.d.ts +153 -7
  8. package/package.json +1 -1
  9. package/primitives/event-dispatch/index.d.ts +1 -1
  10. package/primitives/signals/index.d.ts +1 -1
  11. package/rxjs-interop/index.d.ts +1 -1
  12. package/schematics/bundles/{checker-228cb8a8.js → checker-884633eb.js} +45 -21
  13. package/schematics/bundles/{combine_units-5d6a7099.js → combine_units-4a95b1b9.js} +3 -3
  14. package/schematics/bundles/{compiler_host-fc806dbe.js → compiler_host-22f6513d.js} +2 -2
  15. package/schematics/bundles/control-flow-migration.js +3 -3
  16. package/schematics/bundles/explicit-standalone-flag.js +3 -3
  17. package/schematics/bundles/imports-abe29092.js +1 -1
  18. package/schematics/bundles/inject-migration.js +3 -3
  19. package/schematics/bundles/leading_space-d190b83b.js +1 -1
  20. package/schematics/bundles/{migrate_ts_type_references-d02c6750.js → migrate_ts_type_references-4b11f3f2.js} +4 -4
  21. package/schematics/bundles/nodes-a9f0b985.js +1 -1
  22. package/schematics/bundles/output-migration.js +4 -4
  23. package/schematics/bundles/pending-tasks.js +3 -3
  24. package/schematics/bundles/{program-1591ec8f.js → program-094352ba.js} +11 -11
  25. package/schematics/bundles/project_tsconfig_paths-e9ccccbf.js +1 -1
  26. package/schematics/bundles/provide-initializer.js +3 -3
  27. package/schematics/bundles/route-lazy-loading.js +3 -3
  28. package/schematics/bundles/signal-input-migration.js +5 -5
  29. package/schematics/bundles/signal-queries-migration.js +5 -5
  30. package/schematics/bundles/signals.js +5 -5
  31. package/schematics/bundles/standalone-migration.js +5 -5
  32. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -175,10 +175,10 @@ class TestBedApplicationErrorHandler {
175
175
  throw e;
176
176
  }
177
177
  }
178
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
179
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: TestBedApplicationErrorHandler });
178
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
179
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler });
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
182
182
  type: Injectable
183
183
  }] });
184
184
 
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3073,6 +3073,36 @@ declare const DEFER_BLOCK_ID = "di";
3073
3073
 
3074
3074
  declare const DEFER_BLOCK_STATE = "s";
3075
3075
 
3076
+ /** Retrieved information about a `@defer` block. */
3077
+ declare interface DeferBlockData {
3078
+ /** Current state of the block. */
3079
+ state: 'placeholder' | 'loading' | 'complete' | 'error' | 'initial';
3080
+ /** Hydration state of the block. */
3081
+ incrementalHydrationState: 'not-configured' | 'hydrated' | 'dehydrated';
3082
+ /** Wherther the block has a connected `@error` block. */
3083
+ hasErrorBlock: boolean;
3084
+ /** Information about the connected `@loading` block. */
3085
+ loadingBlock: {
3086
+ /** Whether the block is defined. */
3087
+ exists: boolean;
3088
+ /** Minimum amount of milliseconds that the block should be shown. */
3089
+ minimumTime: number | null;
3090
+ /** Amount of time after which the block should be shown. */
3091
+ afterTime: number | null;
3092
+ };
3093
+ /** Information about the connected `@placeholder` block. */
3094
+ placeholderBlock: {
3095
+ /** Whether the block is defined. */
3096
+ exists: boolean;
3097
+ /** Minimum amount of time that block should be shown. */
3098
+ minimumTime: number | null;
3099
+ };
3100
+ /** Stringified version of the block's triggers. */
3101
+ triggers: string[];
3102
+ /** Element root nodes that are currently being shown in the block. */
3103
+ rootNodes: Node[];
3104
+ }
3105
+
3076
3106
  /**
3077
3107
  * Represents defer trigger types.
3078
3108
  */
@@ -4609,6 +4639,14 @@ declare function getDebugNode(nativeNode: any): DebugNode | null;
4609
4639
  export { getDebugNode }
4610
4640
  export { getDebugNode as ɵgetDebugNode }
4611
4641
 
4642
+ /**
4643
+ * Gets all of the `@defer` blocks that are present inside the specified DOM node.
4644
+ * @param node Node in which to look for `@defer` blocks.
4645
+ *
4646
+ * @publicApi
4647
+ */
4648
+ declare function getDeferBlocks(node: Node): DeferBlockData[];
4649
+
4612
4650
  /**
4613
4651
  * Discovers the dependencies of an injectable instance. Provides DI information about each
4614
4652
  * dependency that the injectable was instantiated with, including where they were provided from.
@@ -4820,6 +4858,7 @@ declare const globalUtilsFunctions: {
4820
4858
  ɵgetInjectorMetadata: typeof getInjectorMetadata;
4821
4859
  ɵsetProfiler: (profiler: ɵProfiler_2 | null) => void;
4822
4860
  ɵgetSignalGraph: typeof getSignalGraph;
4861
+ ɵgetDeferBlocks: typeof getDeferBlocks;
4823
4862
  getDirectiveMetadata: typeof getDirectiveMetadata;
4824
4863
  getComponent: typeof getComponent;
4825
4864
  getContext: typeof getContext;
@@ -7951,7 +7990,7 @@ export declare class NgZone {
7951
7990
  * Executes the `fn` function synchronously within the Angular zone as a task and returns value
7952
7991
  * returned by the function.
7953
7992
  *
7954
- * Running functions via `run` allows you to reenter Angular zone from a task that was executed
7993
+ * Running functions via `runTask` allows you to reenter Angular zone from a task that was executed
7955
7994
  * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
7956
7995
  *
7957
7996
  * Any future tasks or microtasks scheduled from within this function will continue executing from
@@ -10480,16 +10519,19 @@ declare interface TDeferBlockDetails {
10480
10519
  * List of hydrate triggers for a given block
10481
10520
  */
10482
10521
  hydrateTriggers: Map<DeferBlockTrigger, HydrateTriggerDetails | null> | null;
10483
- /**
10484
- * List of prefetch triggers for a given block
10485
- */
10486
- prefetchTriggers: Set<DeferBlockTrigger> | null;
10487
10522
  /**
10488
10523
  * Defer block flags, which should be used for all
10489
10524
  * instances of a given defer block (the flags that should be
10490
10525
  * placed into the `TDeferDetails` at runtime).
10491
10526
  */
10492
10527
  flags: TDeferDetailsFlags;
10528
+ /**
10529
+ * Tracks debugging information about the deferred block.
10530
+ */
10531
+ debug: {
10532
+ /** Text representations of the block's triggers. */
10533
+ triggers?: Set<string>;
10534
+ } | null;
10493
10535
  }
10494
10536
 
10495
10537
  /**
@@ -13505,6 +13547,28 @@ export declare abstract class ɵEffectScheduler {
13505
13547
  static ɵprov: unknown;
13506
13548
  }
13507
13549
 
13550
+ /**
13551
+ * InjectionToken to control root component bootstrap behavior.
13552
+ *
13553
+ * This token is primarily used in Angular's server-side rendering (SSR) scenarios,
13554
+ * particularly by the `@angular/ssr` package, to manage whether the root component
13555
+ * should be bootstrapped during the application initialization process.
13556
+ *
13557
+ * ## Purpose:
13558
+ * During SSR route extraction, setting this token to `false` prevents Angular from
13559
+ * bootstrapping the root component. This avoids unnecessary component rendering,
13560
+ * enabling route extraction without requiring additional APIs or triggering
13561
+ * component logic.
13562
+ *
13563
+ * ## Behavior:
13564
+ * - **`false`**: Prevents the root component from being bootstrapped.
13565
+ * - **`true`** (default): Proceeds with the normal root component bootstrap process.
13566
+ *
13567
+ * This mechanism ensures SSR can efficiently separate route extraction logic
13568
+ * from component rendering.
13569
+ */
13570
+ export declare const ɵENABLE_ROOT_COMPONENT_BOOTSTRAP: InjectionToken<boolean>;
13571
+
13508
13572
  /**
13509
13573
  * This enables an internal performance profiler
13510
13574
  *
@@ -14261,7 +14325,81 @@ export declare const enum ɵProfilerEvent {
14261
14325
  * Corresponds to the point in time after the runtime has evaluated an expression associated with
14262
14326
  * an event or an output.
14263
14327
  */
14264
- OutputEnd = 7
14328
+ OutputEnd = 7,
14329
+ /**
14330
+ * Corresponds to the point in time just before application bootstrap.
14331
+ */
14332
+ BootstrapApplicationStart = 8,
14333
+ /**
14334
+ * Corresponds to the point in time after application bootstrap.
14335
+ */
14336
+ BootstrapApplicationEnd = 9,
14337
+ /**
14338
+ * Corresponds to the point in time just before root component bootstrap.
14339
+ */
14340
+ BootstrapComponentStart = 10,
14341
+ /**
14342
+ * Corresponds to the point in time after root component bootstrap.
14343
+ */
14344
+ BootstrapComponentEnd = 11,
14345
+ /**
14346
+ * Corresponds to the point in time just before Angular starts a change detection tick.
14347
+ */
14348
+ ChangeDetectionStart = 12,
14349
+ /**
14350
+ * Corresponds to the point in time after Angular ended a change detection tick.
14351
+ */
14352
+ ChangeDetectionEnd = 13,
14353
+ /**
14354
+ * Corresponds to the point in time just before Angular starts a new synchronization pass of change detection tick.
14355
+ */
14356
+ ChangeDetectionSyncStart = 14,
14357
+ /**
14358
+ * Corresponds to the point in time after Angular ended a synchronization pass.
14359
+ */
14360
+ ChangeDetectionSyncEnd = 15,
14361
+ /**
14362
+ * Corresponds to the point in time just before Angular executes after render hooks.
14363
+ */
14364
+ AfterRenderHooksStart = 16,
14365
+ /**
14366
+ * Corresponds to the point in time after Angular executed after render hooks.
14367
+ */
14368
+ AfterRenderHooksEnd = 17,
14369
+ /**
14370
+ * Corresponds to the point in time just before Angular starts processing a component (create or update).
14371
+ */
14372
+ ComponentStart = 18,
14373
+ /**
14374
+ * Corresponds to the point in time after Angular finished processing a component.
14375
+ */
14376
+ ComponentEnd = 19,
14377
+ /**
14378
+ * Corresponds to the point in time just before a defer block transitions between states.
14379
+ */
14380
+ DeferBlockStateStart = 20,
14381
+ /**
14382
+ * Corresponds to the point in time after a defer block transitioned between states.
14383
+ */
14384
+ DeferBlockStateEnd = 21,
14385
+ /**
14386
+ * Corresponds to the point in time just before a component instance is created dynamically.
14387
+ */
14388
+ DynamicComponentStart = 22,
14389
+ /**
14390
+ * Corresponds to the point in time after a a component instance is created dynamically.
14391
+ */
14392
+ DynamicComponentEnd = 23,
14393
+ /**
14394
+ * Corresponds to the point in time before the runtime has called the host bindings function
14395
+ * of a directive.
14396
+ */
14397
+ HostBindingsUpdateStart = 24,
14398
+ /**
14399
+ * Corresponds to the point in time after the runtime has called the host bindings function
14400
+ * of a directive.
14401
+ */
14402
+ HostBindingsUpdateEnd = 25
14265
14403
  }
14266
14404
 
14267
14405
  /**
@@ -14784,6 +14922,14 @@ export declare interface ɵTracingService<T extends ɵTracingSnapshot> {
14784
14922
  * snapshot.
14785
14923
  */
14786
14924
  snapshot(linkedSnapshot: T | null): T;
14925
+ /**
14926
+ * Wrap an event listener bound by the framework for tracing.
14927
+ * @param element Element on which the event is bound.
14928
+ * @param eventName Name of the event.
14929
+ * @param handler Event handler.
14930
+ * @return A new event handler to be bound instead of the original one.
14931
+ */
14932
+ wrapEventListener?<T extends Function>(element: HTMLElement, eventName: string, handler: T): T;
14787
14933
  }
14788
14934
 
14789
14935
  /** A single tracing snapshot. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.1.0-next.3",
3
+ "version": "19.1.0-next.4",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -30410,7 +30410,7 @@ function publishFacade(global) {
30410
30410
  * @description
30411
30411
  * Entry point for all public APIs of the compiler package.
30412
30412
  */
30413
- new Version('19.1.0-next.3');
30413
+ new Version('19.1.0-next.4');
30414
30414
 
30415
30415
  const _I18N_ATTR = 'i18n';
30416
30416
  const _I18N_ATTR_PREFIX = 'i18n-';
@@ -31818,7 +31818,7 @@ class NodeJSPathManipulation {
31818
31818
  // G3-ESM-MARKER: G3 uses CommonJS, but externally everything in ESM.
31819
31819
  // CommonJS/ESM interop for determining the current file name and containing dir.
31820
31820
  const isCommonJS = typeof __filename !== 'undefined';
31821
- const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('checker-228cb8a8.js', document.baseURI).href));
31821
+ const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('checker-884633eb.js', document.baseURI).href));
31822
31822
  const currentFileName = isCommonJS ? __filename : url.fileURLToPath(currentFileUrl);
31823
31823
  /**
31824
31824
  * A wrapper around the Node.js file-system that supports readonly operations and path manipulation.
@@ -33315,6 +33315,13 @@ class TypeScriptReflectionHost {
33315
33315
  }
33316
33316
  }
33317
33317
  class TypeEntityToDeclarationError extends Error {
33318
+ constructor(message) {
33319
+ super(message);
33320
+ // Extending `Error` ends up breaking some internal tests. This appears to be a known issue
33321
+ // when extending errors in TS and the workaround is to explicitly set the prototype.
33322
+ // https://stackoverflow.com/questions/41102060/typescript-extending-error-class
33323
+ Object.setPrototypeOf(this, new.target.prototype);
33324
+ }
33318
33325
  }
33319
33326
  /**
33320
33327
  * @throws {TypeEntityToDeclarationError} if the type cannot be converted
@@ -38512,7 +38519,7 @@ class Chunk {
38512
38519
  // ' test'.trim()
38513
38520
  // split -> ' ' + 'test'
38514
38521
  // ✔️ edit -> '' + 'test'
38515
- // ✖️ edit -> 'test' + ''
38522
+ // ✖️ edit -> 'test' + ''
38516
38523
  // TODO is this block necessary?...
38517
38524
  newChunk.edit('', false);
38518
38525
  this.content = '';
@@ -38759,6 +38766,7 @@ class Mappings {
38759
38766
  this.raw[this.generatedCodeLine] = this.rawSegments = [];
38760
38767
  this.generatedCodeColumn = 0;
38761
38768
  first = true;
38769
+ charInHiresBoundary = false;
38762
38770
  } else {
38763
38771
  if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
38764
38772
  const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
@@ -38836,6 +38844,7 @@ class MagicString {
38836
38844
  storedNames: { writable: true, value: {} },
38837
38845
  indentStr: { writable: true, value: undefined },
38838
38846
  ignoreList: { writable: true, value: options.ignoreList },
38847
+ offset: { writable: true, value: options.offset || 0 },
38839
38848
  });
38840
38849
 
38841
38850
  this.byStart[0] = chunk;
@@ -38854,6 +38863,8 @@ class MagicString {
38854
38863
  }
38855
38864
 
38856
38865
  appendLeft(index, content) {
38866
+ index = index + this.offset;
38867
+
38857
38868
  if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
38858
38869
 
38859
38870
  this._split(index);
@@ -38869,6 +38880,8 @@ class MagicString {
38869
38880
  }
38870
38881
 
38871
38882
  appendRight(index, content) {
38883
+ index = index + this.offset;
38884
+
38872
38885
  if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
38873
38886
 
38874
38887
  this._split(index);
@@ -38884,7 +38897,7 @@ class MagicString {
38884
38897
  }
38885
38898
 
38886
38899
  clone() {
38887
- const cloned = new MagicString(this.original, { filename: this.filename });
38900
+ const cloned = new MagicString(this.original, { filename: this.filename, offset: this.offset });
38888
38901
 
38889
38902
  let originalChunk = this.firstChunk;
38890
38903
  let clonedChunk = (cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone());
@@ -39082,7 +39095,7 @@ class MagicString {
39082
39095
  if (!warned.insertLeft) {
39083
39096
  console.warn(
39084
39097
  'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',
39085
- ); // eslint-disable-line no-console
39098
+ );
39086
39099
  warned.insertLeft = true;
39087
39100
  }
39088
39101
 
@@ -39093,7 +39106,7 @@ class MagicString {
39093
39106
  if (!warned.insertRight) {
39094
39107
  console.warn(
39095
39108
  'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
39096
- ); // eslint-disable-line no-console
39109
+ );
39097
39110
  warned.insertRight = true;
39098
39111
  }
39099
39112
 
@@ -39101,6 +39114,10 @@ class MagicString {
39101
39114
  }
39102
39115
 
39103
39116
  move(start, end, index) {
39117
+ start = start + this.offset;
39118
+ end = end + this.offset;
39119
+ index = index + this.offset;
39120
+
39104
39121
  if (index >= start && index <= end) throw new Error('Cannot move a selection inside itself');
39105
39122
 
39106
39123
  this._split(start);
@@ -39143,6 +39160,9 @@ class MagicString {
39143
39160
  }
39144
39161
 
39145
39162
  update(start, end, content, options) {
39163
+ start = start + this.offset;
39164
+ end = end + this.offset;
39165
+
39146
39166
  if (typeof content !== 'string') throw new TypeError('replacement content must be a string');
39147
39167
 
39148
39168
  if (this.original.length !== 0) {
@@ -39163,7 +39183,7 @@ class MagicString {
39163
39183
  if (!warned.storeName) {
39164
39184
  console.warn(
39165
39185
  'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string',
39166
- ); // eslint-disable-line no-console
39186
+ );
39167
39187
  warned.storeName = true;
39168
39188
  }
39169
39189
 
@@ -39214,6 +39234,8 @@ class MagicString {
39214
39234
  }
39215
39235
 
39216
39236
  prependLeft(index, content) {
39237
+ index = index + this.offset;
39238
+
39217
39239
  if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
39218
39240
 
39219
39241
  this._split(index);
@@ -39229,6 +39251,8 @@ class MagicString {
39229
39251
  }
39230
39252
 
39231
39253
  prependRight(index, content) {
39254
+ index = index + this.offset;
39255
+
39232
39256
  if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
39233
39257
 
39234
39258
  this._split(index);
@@ -39244,6 +39268,9 @@ class MagicString {
39244
39268
  }
39245
39269
 
39246
39270
  remove(start, end) {
39271
+ start = start + this.offset;
39272
+ end = end + this.offset;
39273
+
39247
39274
  if (this.original.length !== 0) {
39248
39275
  while (start < 0) start += this.original.length;
39249
39276
  while (end < 0) end += this.original.length;
@@ -39270,6 +39297,9 @@ class MagicString {
39270
39297
  }
39271
39298
 
39272
39299
  reset(start, end) {
39300
+ start = start + this.offset;
39301
+ end = end + this.offset;
39302
+
39273
39303
  if (this.original.length !== 0) {
39274
39304
  while (start < 0) start += this.original.length;
39275
39305
  while (end < 0) end += this.original.length;
@@ -39334,7 +39364,10 @@ class MagicString {
39334
39364
  return this.intro + lineStr;
39335
39365
  }
39336
39366
 
39337
- slice(start = 0, end = this.original.length) {
39367
+ slice(start = 0, end = this.original.length - this.offset) {
39368
+ start = start + this.offset;
39369
+ end = end + this.offset;
39370
+
39338
39371
  if (this.original.length !== 0) {
39339
39372
  while (start < 0) start += this.original.length;
39340
39373
  while (end < 0) end += this.original.length;
@@ -39570,11 +39603,7 @@ class MagicString {
39570
39603
  if (match.index != null) {
39571
39604
  const replacement = getReplacement(match, this.original);
39572
39605
  if (replacement !== match[0]) {
39573
- this.overwrite(
39574
- match.index,
39575
- match.index + match[0].length,
39576
- replacement
39577
- );
39606
+ this.overwrite(match.index, match.index + match[0].length, replacement);
39578
39607
  }
39579
39608
  }
39580
39609
  });
@@ -39583,11 +39612,7 @@ class MagicString {
39583
39612
  if (match && match.index != null) {
39584
39613
  const replacement = getReplacement(match, this.original);
39585
39614
  if (replacement !== match[0]) {
39586
- this.overwrite(
39587
- match.index,
39588
- match.index + match[0].length,
39589
- replacement
39590
- );
39615
+ this.overwrite(match.index, match.index + match[0].length, replacement);
39591
39616
  }
39592
39617
  }
39593
39618
  }
@@ -39622,8 +39647,7 @@ class MagicString {
39622
39647
  index = original.indexOf(string, index + stringLength)
39623
39648
  ) {
39624
39649
  const previous = original.slice(index, index + stringLength);
39625
- if (previous !== replacement)
39626
- this.overwrite(index, index + stringLength, replacement);
39650
+ if (previous !== replacement) this.overwrite(index, index + stringLength, replacement);
39627
39651
  }
39628
39652
 
39629
39653
  return this;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -10,8 +10,8 @@ var core = require('@angular-devkit/core');
10
10
  var posixPath = require('node:path/posix');
11
11
  var os = require('os');
12
12
  var ts = require('typescript');
13
- var checker = require('./checker-228cb8a8.js');
14
- var program = require('./program-1591ec8f.js');
13
+ var checker = require('./checker-884633eb.js');
14
+ var program = require('./program-094352ba.js');
15
15
  require('path');
16
16
 
17
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
9
  var ts = require('typescript');
10
- var checker = require('./checker-228cb8a8.js');
10
+ var checker = require('./checker-884633eb.js');
11
11
  require('os');
12
12
  var p = require('path');
13
13
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -10,8 +10,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
 
11
11
  var schematics = require('@angular-devkit/schematics');
12
12
  var p = require('path');
13
- var compiler_host = require('./compiler_host-fc806dbe.js');
14
- var checker = require('./checker-228cb8a8.js');
13
+ var compiler_host = require('./compiler_host-22f6513d.js');
14
+ var checker = require('./checker-884633eb.js');
15
15
  var ts = require('typescript');
16
16
  require('os');
17
17
  require('fs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -11,11 +11,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
  var schematics = require('@angular-devkit/schematics');
12
12
  var p = require('path');
13
13
  var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
14
- var compiler_host = require('./compiler_host-fc806dbe.js');
14
+ var compiler_host = require('./compiler_host-22f6513d.js');
15
15
  var ts = require('typescript');
16
16
  var imports = require('./imports-abe29092.js');
17
17
  require('@angular-devkit/core');
18
- require('./checker-228cb8a8.js');
18
+ require('./checker-884633eb.js');
19
19
  require('os');
20
20
  require('fs');
21
21
  require('module');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
 
11
11
  var schematics = require('@angular-devkit/schematics');
12
12
  var p = require('path');
13
- var compiler_host = require('./compiler_host-fc806dbe.js');
13
+ var compiler_host = require('./compiler_host-22f6513d.js');
14
14
  var ts = require('typescript');
15
15
  var nodes = require('./nodes-a9f0b985.js');
16
16
  var imports = require('./imports-abe29092.js');
17
17
  var leading_space = require('./leading_space-d190b83b.js');
18
- require('./checker-228cb8a8.js');
18
+ require('./checker-884633eb.js');
19
19
  require('os');
20
20
  require('fs');
21
21
  require('module');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
- var checker = require('./checker-228cb8a8.js');
9
+ var checker = require('./checker-884633eb.js');
10
10
  var ts = require('typescript');
11
11
  require('os');
12
12
  var assert = require('assert');
13
- var combine_units = require('./combine_units-5d6a7099.js');
13
+ var combine_units = require('./combine_units-4a95b1b9.js');
14
14
  var leading_space = require('./leading_space-d190b83b.js');
15
- require('./program-1591ec8f.js');
15
+ require('./program-094352ba.js');
16
16
  require('path');
17
17
 
18
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-next.4
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */