diff --git a/dwds/CHANGELOG.md b/dwds/CHANGELOG.md index abff4fdf2..36010f113 100644 --- a/dwds/CHANGELOG.md +++ b/dwds/CHANGELOG.md @@ -1,5 +1,7 @@ ## 24.4.2-wip +- Implemented hot restart over websockets with multi window support. +- Fix refresh race condition bug by adding an isolate destruction grace period. - Update a call to the `package:shelf_web_socket` `webSocketHandler()` function. ## 24.4.1 diff --git a/dwds/lib/data/hot_restart_request.dart b/dwds/lib/data/hot_restart_request.dart new file mode 100644 index 000000000..36048ed4f --- /dev/null +++ b/dwds/lib/data/hot_restart_request.dart @@ -0,0 +1,24 @@ +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +library hot_restart_request; + +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'hot_restart_request.g.dart'; + +/// A request to hot restart the application. +abstract class HotRestartRequest + implements Built { + static Serializer get serializer => + _$hotRestartRequestSerializer; + + /// A unique identifier for this request. + String get id; + + HotRestartRequest._(); + factory HotRestartRequest([void Function(HotRestartRequestBuilder) updates]) = + _$HotRestartRequest; +} diff --git a/dwds/lib/data/hot_restart_request.g.dart b/dwds/lib/data/hot_restart_request.g.dart new file mode 100644 index 000000000..c65ea554f --- /dev/null +++ b/dwds/lib/data/hot_restart_request.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'hot_restart_request.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$hotRestartRequestSerializer = + _$HotRestartRequestSerializer(); + +class _$HotRestartRequestSerializer + implements StructuredSerializer { + @override + final Iterable types = const [HotRestartRequest, _$HotRestartRequest]; + @override + final String wireName = 'HotRestartRequest'; + + @override + Iterable serialize( + Serializers serializers, + HotRestartRequest object, { + FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + ]; + + return result; + } + + @override + HotRestartRequest deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = HotRestartRequestBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; + break; + } + } + + return result.build(); + } +} + +class _$HotRestartRequest extends HotRestartRequest { + @override + final String id; + + factory _$HotRestartRequest([ + void Function(HotRestartRequestBuilder)? updates, + ]) => (HotRestartRequestBuilder()..update(updates))._build(); + + _$HotRestartRequest._({required this.id}) : super._(); + @override + HotRestartRequest rebuild(void Function(HotRestartRequestBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + HotRestartRequestBuilder toBuilder() => + HotRestartRequestBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is HotRestartRequest && id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'HotRestartRequest') + ..add('id', id)).toString(); + } +} + +class HotRestartRequestBuilder + implements Builder { + _$HotRestartRequest? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + HotRestartRequestBuilder(); + + HotRestartRequestBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(HotRestartRequest other) { + _$v = other as _$HotRestartRequest; + } + + @override + void update(void Function(HotRestartRequestBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + HotRestartRequest build() => _build(); + + _$HotRestartRequest _build() { + final _$result = + _$v ?? + _$HotRestartRequest._( + id: BuiltValueNullFieldError.checkNotNull( + id, + r'HotRestartRequest', + 'id', + ), + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/dwds/lib/data/hot_restart_response.dart b/dwds/lib/data/hot_restart_response.dart new file mode 100644 index 000000000..7335cc122 --- /dev/null +++ b/dwds/lib/data/hot_restart_response.dart @@ -0,0 +1,32 @@ +// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +library hot_restart_response; + +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'hot_restart_response.g.dart'; + +/// A response to a hot restart request. +abstract class HotRestartResponse + implements Built { + static Serializer get serializer => + _$hotRestartResponseSerializer; + + /// The unique identifier matching the request. + String get id; + + /// Whether the hot restart succeeded on the client. + bool get success; + + /// An optional error message if success is false. + @BuiltValueField(wireName: 'error') + String? get errorMessage; + + HotRestartResponse._(); + factory HotRestartResponse([ + void Function(HotRestartResponseBuilder) updates, + ]) = _$HotRestartResponse; +} diff --git a/dwds/lib/data/hot_restart_response.g.dart b/dwds/lib/data/hot_restart_response.g.dart new file mode 100644 index 000000000..3302f0a66 --- /dev/null +++ b/dwds/lib/data/hot_restart_response.g.dart @@ -0,0 +1,209 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'hot_restart_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +Serializer _$hotRestartResponseSerializer = + _$HotRestartResponseSerializer(); + +class _$HotRestartResponseSerializer + implements StructuredSerializer { + @override + final Iterable types = const [HotRestartResponse, _$HotRestartResponse]; + @override + final String wireName = 'HotRestartResponse'; + + @override + Iterable serialize( + Serializers serializers, + HotRestartResponse object, { + FullType specifiedType = FullType.unspecified, + }) { + final result = [ + 'id', + serializers.serialize(object.id, specifiedType: const FullType(String)), + 'success', + serializers.serialize( + object.success, + specifiedType: const FullType(bool), + ), + ]; + Object? value; + value = object.errorMessage; + if (value != null) { + result + ..add('error') + ..add( + serializers.serialize(value, specifiedType: const FullType(String)), + ); + } + return result; + } + + @override + HotRestartResponse deserialize( + Serializers serializers, + Iterable serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = HotRestartResponseBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'id': + result.id = + serializers.deserialize( + value, + specifiedType: const FullType(String), + )! + as String; + break; + case 'success': + result.success = + serializers.deserialize( + value, + specifiedType: const FullType(bool), + )! + as bool; + break; + case 'error': + result.errorMessage = + serializers.deserialize( + value, + specifiedType: const FullType(String), + ) + as String?; + break; + } + } + + return result.build(); + } +} + +class _$HotRestartResponse extends HotRestartResponse { + @override + final String id; + @override + final bool success; + @override + final String? errorMessage; + + factory _$HotRestartResponse([ + void Function(HotRestartResponseBuilder)? updates, + ]) => (HotRestartResponseBuilder()..update(updates))._build(); + + _$HotRestartResponse._({ + required this.id, + required this.success, + this.errorMessage, + }) : super._(); + @override + HotRestartResponse rebuild( + void Function(HotRestartResponseBuilder) updates, + ) => (toBuilder()..update(updates)).build(); + + @override + HotRestartResponseBuilder toBuilder() => + HotRestartResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is HotRestartResponse && + id == other.id && + success == other.success && + errorMessage == other.errorMessage; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, success.hashCode); + _$hash = $jc(_$hash, errorMessage.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'HotRestartResponse') + ..add('id', id) + ..add('success', success) + ..add('errorMessage', errorMessage)) + .toString(); + } +} + +class HotRestartResponseBuilder + implements Builder { + _$HotRestartResponse? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + bool? _success; + bool? get success => _$this._success; + set success(bool? success) => _$this._success = success; + + String? _errorMessage; + String? get errorMessage => _$this._errorMessage; + set errorMessage(String? errorMessage) => _$this._errorMessage = errorMessage; + + HotRestartResponseBuilder(); + + HotRestartResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _success = $v.success; + _errorMessage = $v.errorMessage; + _$v = null; + } + return this; + } + + @override + void replace(HotRestartResponse other) { + _$v = other as _$HotRestartResponse; + } + + @override + void update(void Function(HotRestartResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + HotRestartResponse build() => _build(); + + _$HotRestartResponse _build() { + final _$result = + _$v ?? + _$HotRestartResponse._( + id: BuiltValueNullFieldError.checkNotNull( + id, + r'HotRestartResponse', + 'id', + ), + success: BuiltValueNullFieldError.checkNotNull( + success, + r'HotRestartResponse', + 'success', + ), + errorMessage: errorMessage, + ); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/dwds/lib/data/serializers.dart b/dwds/lib/data/serializers.dart index 4d6614f85..e29d2343d 100644 --- a/dwds/lib/data/serializers.dart +++ b/dwds/lib/data/serializers.dart @@ -14,6 +14,8 @@ import 'error_response.dart'; import 'extension_request.dart'; import 'hot_reload_request.dart'; import 'hot_reload_response.dart'; +import 'hot_restart_request.dart'; +import 'hot_restart_response.dart'; import 'service_extension_request.dart'; import 'service_extension_response.dart'; import 'isolate_events.dart'; @@ -34,6 +36,8 @@ part 'serializers.g.dart'; DevToolsResponse, HotReloadRequest, HotReloadResponse, + HotRestartRequest, + HotRestartResponse, IsolateExit, IsolateStart, ExtensionRequest, diff --git a/dwds/lib/data/serializers.g.dart b/dwds/lib/data/serializers.g.dart index a061bae9e..250998250 100644 --- a/dwds/lib/data/serializers.g.dart +++ b/dwds/lib/data/serializers.g.dart @@ -7,7 +7,7 @@ part of 'serializers.dart'; // ************************************************************************** Serializers _$serializers = - (new Serializers().toBuilder() + (Serializers().toBuilder() ..add(BatchedDebugEvents.serializer) ..add(BatchedEvents.serializer) ..add(BuildResult.serializer) @@ -23,6 +23,8 @@ Serializers _$serializers = ..add(ExtensionResponse.serializer) ..add(HotReloadRequest.serializer) ..add(HotReloadResponse.serializer) + ..add(HotRestartRequest.serializer) + ..add(HotRestartResponse.serializer) ..add(IsolateExit.serializer) ..add(IsolateStart.serializer) ..add(RegisterEvent.serializer) @@ -31,11 +33,11 @@ Serializers _$serializers = ..add(ServiceExtensionResponse.serializer) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(DebugEvent)]), - () => new ListBuilder(), + () => ListBuilder(), ) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(ExtensionEvent)]), - () => new ListBuilder(), + () => ListBuilder(), )) .build(); diff --git a/dwds/lib/src/dwds_vm_client.dart b/dwds/lib/src/dwds_vm_client.dart index 815e51e3d..26b16d659 100644 --- a/dwds/lib/src/dwds_vm_client.dart +++ b/dwds/lib/src/dwds_vm_client.dart @@ -360,6 +360,11 @@ class WebSocketDwdsVmClient implements DwdsVmClient { requestSink: requestSink, ); + await _registerServiceExtensions( + client: client, + webSocketProxyService: webSocketProxyService, + ); + _webSocketLogger.fine('WebSocket DWDS VM client created successfully'); return WebSocketDwdsVmClient(client, requestController, responseController); } @@ -445,6 +450,20 @@ class WebSocketDwdsVmClient implements DwdsVmClient { } return response; } + + static Future _registerServiceExtensions({ + required VmService client, + required WebSocketProxyService webSocketProxyService, + }) async { + client.registerServiceCallback( + 'hotRestart', + (request) => captureElapsedTime( + () => webSocketProxyService.hotRestart(), + (_) => DwdsEvent.hotRestart(), + ), + ); + await client.registerService('hotRestart', 'DWDS'); + } } /// Shared handler for Flutter list views service extension. diff --git a/dwds/lib/src/handlers/dev_handler.dart b/dwds/lib/src/handlers/dev_handler.dart index c93e16719..25b81982a 100644 --- a/dwds/lib/src/handlers/dev_handler.dart +++ b/dwds/lib/src/handlers/dev_handler.dart @@ -12,6 +12,7 @@ import 'package:dwds/data/debug_event.dart'; import 'package:dwds/data/devtools_request.dart'; import 'package:dwds/data/error_response.dart'; import 'package:dwds/data/hot_reload_response.dart'; +import 'package:dwds/data/hot_restart_response.dart'; import 'package:dwds/data/isolate_events.dart'; import 'package:dwds/data/register_event.dart'; import 'package:dwds/data/serializers.dart'; @@ -423,6 +424,8 @@ class DevHandler { // Handle messages that are specific to certain proxy service types if (message is HotReloadResponse) { proxyService.completeHotReload(message); + } else if (message is HotRestartResponse) { + proxyService.completeHotRestart(message); } else if (message is ServiceExtensionResponse) { proxyService.completeServiceExtension(message); } else if (message is IsolateExit) { diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js index a41260ec1..b362e61fa 100644 --- a/dwds/lib/src/injected/client.js +++ b/dwds/lib/src/injected/client.js @@ -1,4 +1,4 @@ -// Generated by dart2js (, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.9.0-edge. +// Generated by dart2js (, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.10.0-edge. // The code supports the following hooks: // dartPrint(message): // if this function is defined it is called instead of the Dart [print] @@ -125,7 +125,9 @@ return finalValue; }; } - function makeConstList(list) { + function makeConstList(list, rti) { + if (rti != null) + A._setArrayType(list, rti); list.$flags = 7; return list; } @@ -520,6 +522,8 @@ JSArray: function JSArray(t0) { this.$ti = t0; }, + JSArraySafeToStringHook: function JSArraySafeToStringHook() { + }, JSUnmodifiableArray: function JSUnmodifiableArray(t0) { this.$ti = t0; }, @@ -1121,6 +1125,7 @@ return A._rtiToString(A.instanceType(object), null); }, Primitives_safeToString(object) { + var hooks, i, hookResult; if (object == null || typeof object == "number" || A._isBool(object)) return J.toString$0$(object); if (typeof object == "string") @@ -1129,6 +1134,12 @@ return object.toString$0(0); if (object instanceof A._Record) return object._toString$1(true); + hooks = $.$get$_safeToStringHooks(); + for (i = 0; i < 1; ++i) { + hookResult = hooks[i].tryFormat$1(object); + if (hookResult != null) + return hookResult; + } return "Instance of '" + A.Primitives_objectTypeName(object) + "'"; }, Primitives_currentUri() { @@ -1374,7 +1385,7 @@ return new A.NullThrownFromJavaScriptException(ex); if (ex instanceof A.ExceptionAndStackTrace) { t1 = ex.dartException; - return A.saveStackTrace(ex, t1 == null ? type$.Object._as(t1) : t1); + return A.saveStackTrace(ex, t1 == null ? A._asObject(t1) : t1); } if (typeof ex !== "object") return ex; @@ -1969,8 +1980,7 @@ if (receiver === "") return replacement; $length = receiver.length; - t1 = "" + replacement; - for (i = 0; i < $length; ++i) + for (t1 = replacement, i = 0; i < $length; ++i) t1 = t1 + receiver[i] + replacement; return t1.charCodeAt(0) == 0 ? t1 : t1; } @@ -2047,6 +2057,8 @@ this._genericClosure = t0; this.$ti = t1; }, + SafeToStringHook: function SafeToStringHook() { + }, TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) { var _ = this; _._pattern = t0; @@ -2261,10 +2273,12 @@ }, NativeByteBuffer: function NativeByteBuffer() { }, + NativeArrayBuffer: function NativeArrayBuffer() { + }, NativeTypedData: function NativeTypedData() { }, _UnmodifiableNativeByteBufferView: function _UnmodifiableNativeByteBufferView(t0) { - this.__native_typed_data$_data = t0; + this._data = t0; }, NativeByteData: function NativeByteData() { }, @@ -2559,45 +2573,55 @@ return A.createRuntimeType(A._Universe_eval(init.typeUniverse, recipe, false)); }, _installSpecializedIsTest(object) { - var kind, isFn, $name, predicate, testRti = this; + var testRti = this; + testRti._is = A._specializedIsTest(testRti); + return testRti._is(object); + }, + _specializedIsTest(testRti) { + var kind, simpleIsFn, $name, predicate, t1; if (testRti === type$.Object) - return A._finishIsFn(testRti, object, A._isObject); + return A._isObject; if (A.isTopType(testRti)) - return A._finishIsFn(testRti, object, A._isTop); + return A._isTop; kind = testRti._kind; if (kind === 6) - return A._finishIsFn(testRti, object, A._generalNullableIsTestImplementation); + return A._generalNullableIsTestImplementation; if (kind === 1) - return A._finishIsFn(testRti, object, A._isNever); + return A._isNever; if (kind === 7) - return A._finishIsFn(testRti, object, A._isFutureOr); - if (testRti === type$.int) - isFn = A._isInt; - else if (testRti === type$.double || testRti === type$.num) - isFn = A._isNum; - else if (testRti === type$.String) - isFn = A._isString; - else - isFn = testRti === type$.bool ? A._isBool : null; - if (isFn != null) - return A._finishIsFn(testRti, object, isFn); + return A._isFutureOr; + simpleIsFn = A._simpleSpecializedIsTest(testRti); + if (simpleIsFn != null) + return simpleIsFn; if (kind === 8) { $name = testRti._primary; if (testRti._rest.every(A.isTopType)) { testRti._specializedTestResource = "$is" + $name; if ($name === "List") - return A._finishIsFn(testRti, object, A._isListTestViaProperty); - return A._finishIsFn(testRti, object, A._isTestViaProperty); + return A._isListTestViaProperty; + if (testRti === type$.JSObject) + return A._isJSObject; + return A._isTestViaProperty; } } else if (kind === 10) { predicate = A.createRecordTypePredicate(testRti._primary, testRti._rest); - return A._finishIsFn(testRti, object, predicate == null ? A._isNever : predicate); + t1 = predicate == null ? A._isNever : predicate; + return t1 == null ? A._asObject(t1) : t1; + } + return A._generalIsTestImplementation; + }, + _simpleSpecializedIsTest(testRti) { + if (testRti._kind === 8) { + if (testRti === type$.int) + return A._isInt; + if (testRti === type$.double || testRti === type$.num) + return A._isNum; + if (testRti === type$.String) + return A._isString; + if (testRti === type$.bool) + return A._isBool; } - return A._finishIsFn(testRti, object, A._generalIsTestImplementation); - }, - _finishIsFn(testRti, object, isFn) { - testRti._is = isFn; - return testRti._is(object); + return null; }, _installSpecializedAsCheck(object) { var testRti = this, @@ -2606,28 +2630,32 @@ asFn = A._asTop; else if (testRti === type$.Object) asFn = A._asObject; - else if (A.isNullable(testRti)) + else if (A.isNullable(testRti)) { asFn = A._generalNullableAsCheckImplementation; - if (testRti === type$.int) + if (testRti === type$.nullable_int) + asFn = A._asIntQ; + else if (testRti === type$.nullable_String) + asFn = A._asStringQ; + else if (testRti === type$.nullable_bool) + asFn = A._asBoolQ; + else if (testRti === type$.nullable_num) + asFn = A._asNumQ; + else if (testRti === type$.nullable_double) + asFn = A._asDoubleQ; + else if (testRti === type$.nullable_JSObject) + asFn = A._asJSObjectQ; + } else if (testRti === type$.int) asFn = A._asInt; - else if (testRti === type$.nullable_int) - asFn = A._asIntQ; else if (testRti === type$.String) asFn = A._asString; - else if (testRti === type$.nullable_String) - asFn = A._asStringQ; else if (testRti === type$.bool) asFn = A._asBool; - else if (testRti === type$.nullable_bool) - asFn = A._asBoolQ; else if (testRti === type$.num) asFn = A._asNum; - else if (testRti === type$.nullable_num) - asFn = A._asNumQ; else if (testRti === type$.double) asFn = A._asDouble; - else if (testRti === type$.nullable_double) - asFn = A._asDoubleQ; + else if (testRti === type$.JSObject) + asFn = A._asJSObject; testRti._as = asFn; return testRti._as(object); }, @@ -2664,6 +2692,29 @@ return !!object[tag]; return !!J.getInterceptor$(object)[tag]; }, + _isJSObject(object) { + var t1 = this; + if (object == null) + return false; + if (typeof object == "object") { + if (object instanceof A.Object) + return !!object[t1._specializedTestResource]; + return true; + } + if (typeof object == "function") + return true; + return false; + }, + _isJSObjectStandalone(object) { + if (typeof object == "object") { + if (object instanceof A.Object) + return type$.JSObject._is(object); + return true; + } + if (typeof object == "function") + return true; + return false; + }, _generalAsCheckImplementation(object) { var testRti = this; if (object == null) { @@ -2793,6 +2844,18 @@ return object; throw A.initializeExceptionWrapper(A._TypeError__TypeError$forType(object, "String?"), new Error()); }, + _asJSObject(object) { + if (A._isJSObjectStandalone(object)) + return object; + throw A.initializeExceptionWrapper(A._TypeError__TypeError$forType(object, "JSObject"), new Error()); + }, + _asJSObjectQ(object) { + if (object == null) + return object; + if (A._isJSObjectStandalone(object)) + return object; + throw A.initializeExceptionWrapper(A._TypeError__TypeError$forType(object, "JSObject?"), new Error()); + }, _rtiArrayToString(array, genericContext) { var s, sep, i; for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ") @@ -2933,8 +2996,8 @@ }, _Universe_findErasedType(universe, cls) { var $length, erased, $arguments, i, $interface, - t1 = universe.eT, - probe = t1[cls]; + metadata = universe.eT, + probe = metadata[cls]; if (probe == null) return A._Universe_eval(universe, cls, false); else if (typeof probe == "number") { @@ -2944,7 +3007,7 @@ for (i = 0; i < $length; ++i) $arguments[i] = erased; $interface = A._Universe__lookupInterfaceRti(universe, cls, $arguments); - t1[cls] = $interface; + metadata[cls] = $interface; return $interface; } else return probe; @@ -2957,12 +3020,12 @@ }, _Universe_eval(universe, recipe, normalize) { var rti, - t1 = universe.eC, - probe = t1.get(recipe); + cache = universe.eC, + probe = cache.get(recipe); if (probe != null) return probe; rti = A._Parser_parse(A._Parser_create(universe, null, recipe, false)); - t1.set(recipe, rti); + cache.set(recipe, rti); return rti; }, _Universe_evalInEnvironment(universe, environment, recipe) { @@ -3221,97 +3284,97 @@ return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize}; }, _Parser_parse(parser) { - var t2, i, ch, t3, array, end, item, + var t1, i, ch, u, array, end, item, source = parser.r, - t1 = parser.s; - for (t2 = source.length, i = 0; i < t2;) { + stack = parser.s; + for (t1 = source.length, i = 0; i < t1;) { ch = source.charCodeAt(i); if (ch >= 48 && ch <= 57) - i = A._Parser_handleDigit(i + 1, ch, source, t1); + i = A._Parser_handleDigit(i + 1, ch, source, stack); else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124) - i = A._Parser_handleIdentifier(parser, i, source, t1, false); + i = A._Parser_handleIdentifier(parser, i, source, stack, false); else if (ch === 46) - i = A._Parser_handleIdentifier(parser, i, source, t1, true); + i = A._Parser_handleIdentifier(parser, i, source, stack, true); else { ++i; switch (ch) { case 44: break; case 58: - t1.push(false); + stack.push(false); break; case 33: - t1.push(true); + stack.push(true); break; case 59: - t1.push(A._Parser_toType(parser.u, parser.e, t1.pop())); + stack.push(A._Parser_toType(parser.u, parser.e, stack.pop())); break; case 94: - t1.push(A._Universe__lookupGenericFunctionParameterRti(parser.u, t1.pop())); + stack.push(A._Universe__lookupGenericFunctionParameterRti(parser.u, stack.pop())); break; case 35: - t1.push(A._Universe__lookupTerminalRti(parser.u, 5, "#")); + stack.push(A._Universe__lookupTerminalRti(parser.u, 5, "#")); break; case 64: - t1.push(A._Universe__lookupTerminalRti(parser.u, 2, "@")); + stack.push(A._Universe__lookupTerminalRti(parser.u, 2, "@")); break; case 126: - t1.push(A._Universe__lookupTerminalRti(parser.u, 3, "~")); + stack.push(A._Universe__lookupTerminalRti(parser.u, 3, "~")); break; case 60: - t1.push(parser.p); - parser.p = t1.length; + stack.push(parser.p); + parser.p = stack.length; break; case 62: - A._Parser_handleTypeArguments(parser, t1); + A._Parser_handleTypeArguments(parser, stack); break; case 38: - A._Parser_handleExtendedOperations(parser, t1); + A._Parser_handleExtendedOperations(parser, stack); break; case 63: - t3 = parser.u; - t1.push(A._Universe__lookupQuestionRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n)); + u = parser.u; + stack.push(A._Universe__lookupQuestionRti(u, A._Parser_toType(u, parser.e, stack.pop()), parser.n)); break; case 47: - t3 = parser.u; - t1.push(A._Universe__lookupFutureOrRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n)); + u = parser.u; + stack.push(A._Universe__lookupFutureOrRti(u, A._Parser_toType(u, parser.e, stack.pop()), parser.n)); break; case 40: - t1.push(-3); - t1.push(parser.p); - parser.p = t1.length; + stack.push(-3); + stack.push(parser.p); + parser.p = stack.length; break; case 41: - A._Parser_handleArguments(parser, t1); + A._Parser_handleArguments(parser, stack); break; case 91: - t1.push(parser.p); - parser.p = t1.length; + stack.push(parser.p); + parser.p = stack.length; break; case 93: - array = t1.splice(parser.p); + array = stack.splice(parser.p); A._Parser_toTypes(parser.u, parser.e, array); - parser.p = t1.pop(); - t1.push(array); - t1.push(-1); + parser.p = stack.pop(); + stack.push(array); + stack.push(-1); break; case 123: - t1.push(parser.p); - parser.p = t1.length; + stack.push(parser.p); + parser.p = stack.length; break; case 125: - array = t1.splice(parser.p); + array = stack.splice(parser.p); A._Parser_toTypesNamed(parser.u, parser.e, array); - parser.p = t1.pop(); - t1.push(array); - t1.push(-2); + parser.p = stack.pop(); + stack.push(array); + stack.push(-2); break; case 43: end = source.indexOf("(", i); - t1.push(source.substring(i, end)); - t1.push(-4); - t1.push(parser.p); - parser.p = t1.length; + stack.push(source.substring(i, end)); + stack.push(-4); + stack.push(parser.p); + parser.p = stack.length; i = end + 1; break; default: @@ -3319,7 +3382,7 @@ } } } - item = t1.pop(); + item = stack.pop(); return A._Parser_toType(parser.u, parser.e, item); }, _Parser_handleDigit(i, digit, source, stack) { @@ -3368,26 +3431,26 @@ }, _Parser_handleTypeArguments(parser, stack) { var base, - t1 = parser.u, + universe = parser.u, $arguments = A._Parser_collectArray(parser, stack), head = stack.pop(); if (typeof head == "string") - stack.push(A._Universe__lookupInterfaceRti(t1, head, $arguments)); + stack.push(A._Universe__lookupInterfaceRti(universe, head, $arguments)); else { - base = A._Parser_toType(t1, parser.e, head); + base = A._Parser_toType(universe, parser.e, head); switch (base._kind) { case 11: - stack.push(A._Universe__lookupGenericFunctionRti(t1, base, $arguments, parser.n)); + stack.push(A._Universe__lookupGenericFunctionRti(universe, base, $arguments, parser.n)); break; default: - stack.push(A._Universe__lookupBindingRti(t1, base, $arguments)); + stack.push(A._Universe__lookupBindingRti(universe, base, $arguments)); break; } } }, _Parser_handleArguments(parser, stack) { var requiredPositional, returnType, parameters, - t1 = parser.u, + universe = parser.u, head = stack.pop(), optionalPositional = null, named = null; if (typeof head == "number") @@ -3410,18 +3473,18 @@ case -3: head = stack.pop(); if (optionalPositional == null) - optionalPositional = t1.sEA; + optionalPositional = universe.sEA; if (named == null) - named = t1.sEA; - returnType = A._Parser_toType(t1, parser.e, head); + named = universe.sEA; + returnType = A._Parser_toType(universe, parser.e, head); parameters = new A._FunctionParameters(); parameters._requiredPositional = requiredPositional; parameters._optionalPositional = optionalPositional; parameters._named = named; - stack.push(A._Universe__lookupFunctionRti(t1, returnType, parameters)); + stack.push(A._Universe__lookupFunctionRti(universe, returnType, parameters)); return; case -4: - stack.push(A._Universe__lookupRecordRti(t1, stack.pop(), requiredPositional)); + stack.push(A._Universe__lookupRecordRti(universe, stack.pop(), requiredPositional)); return; default: throw A.wrapException(A.AssertionError$("Unexpected state under `()`: " + A.S(head))); @@ -3792,7 +3855,6 @@ return completer._future; }, _asyncAwait(object, bodyFunction) { - bodyFunction.toString; A._awaitOnObject(object, bodyFunction); }, _asyncReturn(object, completer) { @@ -3835,6 +3897,78 @@ }($function, 1); return $.Zone__current.registerBinaryCallback$3$1(new A._wrapJsFunctionForAsync_closure($protected), type$.void, type$.int, type$.dynamic); }, + _asyncStarHelper(object, bodyFunctionOrErrorCode, controller) { + var t1, t2, t3, + _s10_ = "controller"; + if (bodyFunctionOrErrorCode === 0) { + t1 = controller.cancelationFuture; + if (t1 != null) + t1._completeWithValue$1(null); + else { + t1 = controller.___AsyncStarStreamController_controller_A; + t1 === $ && A.throwLateFieldNI(_s10_); + t1.close$0(); + } + return; + } else if (bodyFunctionOrErrorCode === 1) { + t1 = controller.cancelationFuture; + if (t1 != null) { + t2 = A.unwrapException(object); + t3 = A.getTraceFromException(object); + t1._completeErrorObject$1(new A.AsyncError(t2, t3)); + } else { + t1 = A.unwrapException(object); + t2 = A.getTraceFromException(object); + t3 = controller.___AsyncStarStreamController_controller_A; + t3 === $ && A.throwLateFieldNI(_s10_); + t3.addError$2(t1, t2); + controller.___AsyncStarStreamController_controller_A.close$0(); + } + return; + } + type$.void_Function_int_dynamic._as(bodyFunctionOrErrorCode); + if (object instanceof A._IterationMarker) { + if (controller.cancelationFuture != null) { + bodyFunctionOrErrorCode.call$2(2, null); + return; + } + t1 = object.state; + if (t1 === 0) { + t1 = object.value; + t2 = controller.___AsyncStarStreamController_controller_A; + t2 === $ && A.throwLateFieldNI(_s10_); + t2.add$1(0, controller.$ti._precomputed1._as(t1)); + A.scheduleMicrotask(new A._asyncStarHelper_closure(controller, bodyFunctionOrErrorCode)); + return; + } else if (t1 === 1) { + t1 = controller.$ti._eval$1("Stream<1>")._as(type$.Stream_dynamic._as(object.value)); + t2 = controller.___AsyncStarStreamController_controller_A; + t2 === $ && A.throwLateFieldNI(_s10_); + t2.addStream$2$cancelOnError(t1, false).then$1$1(new A._asyncStarHelper_closure0(controller, bodyFunctionOrErrorCode), type$.Null); + return; + } + } + A._awaitOnObject(object, bodyFunctionOrErrorCode); + }, + _streamOfController(controller) { + var t1 = controller.___AsyncStarStreamController_controller_A; + t1 === $ && A.throwLateFieldNI("controller"); + return new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")); + }, + _AsyncStarStreamController$(body, $T) { + var t1 = new A._AsyncStarStreamController($T._eval$1("_AsyncStarStreamController<0>")); + t1._AsyncStarStreamController$1(body, $T); + return t1; + }, + _makeAsyncStarStreamController(body, $T) { + return A._AsyncStarStreamController$(body, $T); + }, + _IterationMarker_yieldStar(values) { + return new A._IterationMarker(values, 1); + }, + _IterationMarker_yieldSingle(value) { + return new A._IterationMarker(value, 0); + }, AsyncError_defaultStackTrace(error) { var stackTrace; if (type$.Error._is(error)) { @@ -4134,21 +4268,12 @@ t1 = $.Zone__current; t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback)); }, - Stream_Stream$value(value, $T) { - var _null = null, - t1 = $T._eval$1("_AsyncStreamController<0>"), - t2 = new A._AsyncStreamController(_null, _null, _null, _null, t1); - t2._add$1(value); - t2._closeUnchecked$0(); - return new A._ControllerStream(t2, t1._eval$1("_ControllerStream<1>")); - }, StreamIterator_StreamIterator(stream, $T) { A.checkNotNullable(stream, "stream", type$.Object); return new A._StreamIterator($T._eval$1("_StreamIterator<0>")); }, - StreamController_StreamController(onCancel, onListen, sync, $T) { - var _null = null; - return sync ? new A._SyncStreamController(onListen, _null, _null, onCancel, $T._eval$1("_SyncStreamController<0>")) : new A._AsyncStreamController(onListen, _null, _null, onCancel, $T._eval$1("_AsyncStreamController<0>")); + StreamController_StreamController(onCancel, onListen, onResume, sync, $T) { + return sync ? new A._SyncStreamController(onListen, null, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new A._AsyncStreamController(onListen, null, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>")); }, _runGuarded(notificationHandler) { var e, s, exception; @@ -4162,6 +4287,9 @@ $.Zone__current.handleUncaughtError$2(e, s); } }, + _AddStreamState_makeErrorHandler(controller) { + return new A._AddStreamState_makeErrorHandler_closure(controller); + }, _BufferingStreamSubscription__registerDataHandler(zone, handleData, $T) { var t1 = handleData == null ? A.async___nullDataHandler$closure() : handleData; return zone.registerUnaryCallback$2$1(t1, type$.void, $T); @@ -4178,7 +4306,7 @@ _nullDataHandler(value) { }, _nullErrorHandler(error, stackTrace) { - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); $.Zone__current.handleUncaughtError$2(error, stackTrace); }, @@ -4244,14 +4372,14 @@ $.Zone__current = old; } }, - _rootRunBinary($self, $parent, zone, f, arg1, arg2, $R, T1, T2) { + _rootRunBinary($self, $parent, zone, f, arg1, arg2, $R, $T1, $T2) { var old, t1; type$.nullable_Zone._as($self); type$.nullable_ZoneDelegate._as($parent); type$.Zone._as(zone); - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); + $R._eval$1("@<0>")._bind$1($T1)._bind$1($T2)._eval$1("1(2,3)")._as(f); + $T1._as(arg1); + $T2._as(arg2); t1 = $.Zone__current; if (t1 === zone) return f.call$2(arg1, arg2); @@ -4270,8 +4398,8 @@ _rootRegisterUnaryCallback($self, $parent, zone, f, $R, $T) { return $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); }, - _rootRegisterBinaryCallback($self, $parent, zone, f, $R, T1, T2) { - return $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); + _rootRegisterBinaryCallback($self, $parent, zone, f, $R, $T1, $T2) { + return $R._eval$1("@<0>")._bind$1($T1)._bind$1($T2)._eval$1("1(2,3)")._as(f); }, _rootErrorCallback($self, $parent, zone, error, stackTrace) { type$.nullable_StackTrace._as(stackTrace); @@ -4381,6 +4509,45 @@ _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) { this.$protected = t0; }, + _asyncStarHelper_closure: function _asyncStarHelper_closure(t0, t1) { + this.controller = t0; + this.bodyFunction = t1; + }, + _asyncStarHelper_closure0: function _asyncStarHelper_closure0(t0, t1) { + this.controller = t0; + this.bodyFunction = t1; + }, + _AsyncStarStreamController: function _AsyncStarStreamController(t0) { + var _ = this; + _.___AsyncStarStreamController_controller_A = $; + _.isSuspended = false; + _.cancelationFuture = null; + _.$ti = t0; + }, + _AsyncStarStreamController__resumeBody: function _AsyncStarStreamController__resumeBody(t0) { + this.body = t0; + }, + _AsyncStarStreamController__resumeBody_closure: function _AsyncStarStreamController__resumeBody_closure(t0) { + this.body = t0; + }, + _AsyncStarStreamController_closure0: function _AsyncStarStreamController_closure0(t0) { + this._resumeBody = t0; + }, + _AsyncStarStreamController_closure1: function _AsyncStarStreamController_closure1(t0, t1) { + this.$this = t0; + this._resumeBody = t1; + }, + _AsyncStarStreamController_closure: function _AsyncStarStreamController_closure(t0, t1) { + this.$this = t0; + this.body = t1; + }, + _AsyncStarStreamController__closure: function _AsyncStarStreamController__closure(t0) { + this.body = t0; + }, + _IterationMarker: function _IterationMarker(t0, t1) { + this.value = t0; + this.state = t1; + }, AsyncError: function AsyncError(t0, t1) { this.error = t0; this.stackTrace = t1; @@ -4550,6 +4717,21 @@ this._async$_target = t0; this.$ti = t1; }, + _AddStreamState: function _AddStreamState() { + }, + _AddStreamState_makeErrorHandler_closure: function _AddStreamState_makeErrorHandler_closure(t0) { + this.controller = t0; + }, + _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) { + this.$this = t0; + }, + _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2, t3) { + var _ = this; + _._varData = t0; + _.addStreamFuture = t1; + _.addSubscription = t2; + _.$ti = t3; + }, _BufferingStreamSubscription: function _BufferingStreamSubscription() { }, _BufferingStreamSubscription_asFuture_closure: function _BufferingStreamSubscription_asFuture_closure(t0, t1) { @@ -4943,7 +5125,7 @@ }, _LinkedHashSetCell: function _LinkedHashSetCell(t0) { this._element = t0; - this._collection$_previous = this._collection$_next = null; + this._collection$_next = null; }, _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1, t2) { var _ = this; @@ -5430,7 +5612,7 @@ _JsonMap: function _JsonMap(t0, t1) { this._original = t0; this._processed = t1; - this._data = null; + this._convert$_data = null; }, _JsonMapKeyIterable: function _JsonMapKeyIterable(t0) { this._parent = t0; @@ -5917,7 +6099,7 @@ Error__throw(error, stackTrace) { error = A.initializeExceptionWrapper(error, new Error()); if (error == null) - error = type$.Object._as(error); + error = A._asObject(error); error.stack = stackTrace.toString$0(0); throw error; }, @@ -6266,8 +6448,8 @@ B.JSArray_methods.add$1(parts, penultimateString); B.JSArray_methods.add$1(parts, ultimateString); }, - Map_castFrom(source, $K, $V, K2, V2) { - return new A.CastMap(source, $K._eval$1("@<0>")._bind$1($V)._bind$1(K2)._bind$1(V2)._eval$1("CastMap<1,2,3,4>")); + Map_castFrom(source, $K, $V, $K2, $V2) { + return new A.CastMap(source, $K._eval$1("@<0>")._bind$1($V)._bind$1($K2)._bind$1($V2)._eval$1("CastMap<1,2,3,4>")); }, Object_hash(object1, object2, object3, object4) { var t1; @@ -7511,24 +7693,24 @@ _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $; }, JSAnyUtilityExtension_instanceOfString(_this, constructorName) { - var parts, $constructor, t1, t2, _i, part; + var parts, $constructor, t1, _i, t2; if (constructorName.length === 0) return false; parts = constructorName.split("."); $constructor = init.G; - for (t1 = parts.length, t2 = type$.nullable_JSObject, _i = 0; _i < t1; ++_i) { - part = parts[_i]; - $constructor = t2._as($constructor[part]); - if ($constructor == null) + for (t1 = parts.length, _i = 0; _i < t1; ++_i, $constructor = t2) { + t2 = $constructor[parts[_i]]; + A._asJSObjectQ(t2); + if (t2 == null) return false; } return _this instanceof type$.JavaScriptFunction._as($constructor); }, FutureOfJSAnyToJSPromise_get_toJS(_this, $T) { - return type$.JSObject._as(new init.G.Promise(A._functionToJS2(new A.FutureOfJSAnyToJSPromise_get_toJS_closure(_this)))); + return A._asJSObject(new init.G.Promise(A._functionToJS2(new A.FutureOfJSAnyToJSPromise_get_toJS_closure(_this)))); }, FutureOfVoidToJSPromise_get_toJS(_this) { - return type$.JSObject._as(new init.G.Promise(A._functionToJS2(new A.FutureOfVoidToJSPromise_get_toJS_closure(_this)))); + return A._asJSObject(new init.G.Promise(A._functionToJS2(new A.FutureOfVoidToJSPromise_get_toJS_closure(_this)))); }, FutureOfJSAnyToJSPromise_get_toJS_closure: function FutureOfJSAnyToJSPromise_get_toJS_closure(t0) { this._this = t0; @@ -7602,6 +7784,17 @@ return callback.call$1(arg1); return callback.call$0(); }, + _callDartFunctionFast3(callback, arg1, arg2, arg3, $length) { + type$.Function._as(callback); + A._asInt($length); + if ($length >= 3) + return callback.call$3(arg1, arg2, arg3); + if ($length === 2) + return callback.call$2(arg1, arg2); + if ($length === 1) + return callback.call$1(arg1); + return callback.call$0(); + }, _noJsifyRequired(o) { return o == null || A._isBool(o) || typeof o == "number" || typeof o == "string" || type$.Int8List._is(o) || type$.Uint8List._is(o) || type$.Uint8ClampedList._is(o) || type$.Int16List._is(o) || type$.Uint16List._is(o) || type$.Int32List._is(o) || type$.Uint32List._is(o) || type$.Float32List._is(o) || type$.Float64List._is(o) || type$.ByteBuffer._is(o) || type$.ByteData._is(o); }, @@ -7968,7 +8161,10 @@ t2 = new A.BuiltJsonSerializersBuilder(A.MapBuilder_MapBuilder(t1, t2), A.MapBuilder_MapBuilder(t3, t2), A.MapBuilder_MapBuilder(t3, t2), A.MapBuilder_MapBuilder(type$.FullType, type$.Function), A.ListBuilder_ListBuilder(B.List_empty0, type$.SerializerPlugin)); t2.add$1(0, new A.BigIntSerializer(A.BuiltList_BuiltList$from([B.Type_BigInt_DZK, A.getRuntimeTypeOfDartObject($.$get$_BigIntImpl_zero())], t1))); t2.add$1(0, new A.BoolSerializer(A.BuiltList_BuiltList$from([B.Type_bool_wF1], t1))); + t2.add$1(0, new A.ListSerializer(A.BuiltList_BuiltList$from([B.Type_List_hc9, A.createRuntimeType(A._arrayInstanceType(A._setArrayType([], type$.JSArray_Object)))], t1))); t3 = type$.Object; + t2.add$1(0, new A.MapSerializer(A.BuiltList_BuiltList$from([B.Type_Map_9Aj, A.getRuntimeTypeOfDartObject(A.LinkedHashMap_LinkedHashMap$_empty(t3, t3))], t1))); + t2.add$1(0, new A.SetSerializer(A.BuiltSet_BuiltSet$from([B.Type_Set_tZi, A.getRuntimeTypeOfDartObject(A.LinkedHashSet_LinkedHashSet$_empty(t3))], t1))); t2.add$1(0, new A.BuiltListSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltList_fj6, A.getRuntimeTypeOfDartObject(A.BuiltList_BuiltList$from(B.List_empty0, t3))], t1))); t2.add$1(0, new A.BuiltListMultimapSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltListMultimap_HQW, A.getRuntimeTypeOfDartObject(A.BuiltListMultimap_BuiltListMultimap(t3, t3))], t1))); t2.add$1(0, new A.BuiltMapSerializer(A.BuiltList_BuiltList$from([B.Type_BuiltMap_TeX, A.getRuntimeTypeOfDartObject(A.BuiltMap_BuiltMap(t3, t3))], t1))); @@ -8127,6 +8323,16 @@ JsonObjectSerializer: function JsonObjectSerializer(t0) { this.types = t0; }, + ListSerializer: function ListSerializer(t0) { + this.types = t0; + }, + ListSerializer_serialize_closure: function ListSerializer_serialize_closure(t0, t1) { + this.serializers = t0; + this.elementType = t1; + }, + MapSerializer: function MapSerializer(t0) { + this.types = t0; + }, NullSerializer: function NullSerializer(t0) { this.types = t0; }, @@ -8136,6 +8342,13 @@ RegExpSerializer: function RegExpSerializer(t0) { this.types = t0; }, + SetSerializer: function SetSerializer(t0) { + this.types = t0; + }, + SetSerializer_serialize_closure: function SetSerializer_serialize_closure(t0, t1) { + this.serializers = t0; + this.elementType = t1; + }, StringSerializer: function StringSerializer(t0) { this.types = t0; }, @@ -8426,6 +8639,34 @@ var _ = this; _._errorMessage = _._hot_reload_response$_success = _._hot_reload_response$_id = _._hot_reload_response$_$v = null; }, + HotRestartRequest: function HotRestartRequest() { + }, + _$HotRestartRequestSerializer: function _$HotRestartRequestSerializer() { + }, + _$HotRestartRequest: function _$HotRestartRequest(t0) { + this.id = t0; + }, + HotRestartRequestBuilder: function HotRestartRequestBuilder() { + this._hot_restart_request$_id = this._hot_restart_request$_$v = null; + }, + HotRestartResponse___new_tearOff(updates) { + var t1 = new A.HotRestartResponseBuilder(); + type$.nullable_void_Function_HotRestartResponseBuilder._as(type$.void_Function_HotRestartResponseBuilder._as(updates)).call$1(t1); + return t1._hot_restart_response$_build$0(); + }, + HotRestartResponse: function HotRestartResponse() { + }, + _$HotRestartResponseSerializer: function _$HotRestartResponseSerializer() { + }, + _$HotRestartResponse: function _$HotRestartResponse(t0, t1, t2) { + this.id = t0; + this.success = t1; + this.errorMessage = t2; + }, + HotRestartResponseBuilder: function HotRestartResponseBuilder() { + var _ = this; + _._hot_restart_response$_errorMessage = _._hot_restart_response$_success = _._hot_restart_response$_id = _._hot_restart_response$_$v = null; + }, IsolateExit: function IsolateExit() { }, IsolateStart: function IsolateStart() { @@ -8719,39 +8960,156 @@ }, BaseResponse: function BaseResponse() { }, - _extension_0_get_responseHeaders(_this) { - var _i, header, splitIdx, key, value, - t1 = type$.String, - headers = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1), - headersList = A._asString(_this.getAllResponseHeaders()).split("\r\n"); - for (t1 = headersList.length, _i = 0; _i < t1; ++_i) { - header = headersList[_i]; - if (header.length === 0) - continue; - splitIdx = B.JSString_methods.indexOf$1(header, ": "); - if (splitIdx === -1) - continue; - key = B.JSString_methods.substring$2(header, 0, splitIdx).toLowerCase(); - value = B.JSString_methods.substring$1(header, splitIdx + 2); - if (headers.containsKey$1(key)) - headers.$indexSet(0, key, A.S(headers.$index(0, key)) + ", " + value); - else - headers.$indexSet(0, key, value); + _rethrowAsClientException(e, st, request) { + var message; + if (!(e instanceof A.ClientException)) { + message = J.toString$0$(e); + if (B.JSString_methods.startsWith$1(message, "TypeError: ")) + message = B.JSString_methods.substring$1(message, 11); + e = new A.ClientException(message, request.url); } - return headers; + A.Error_throwWithStackTrace(e, st); + }, + _readBody(request, response) { + return A._readBody$body(request, response); + }, + _readBody$body(request, response) { + var $async$_readBody = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { + switch ($async$errorCode) { + case 2: + $async$next = $async$nextWhenCanceled; + $async$goto = $async$next.pop(); + break; + case 1: + $async$errorStack.push($async$result); + $async$goto = $async$handler; + } + while (true) + switch ($async$goto) { + case 0: + // Function start + _box_0 = {}; + t1 = A._asJSObjectQ(response.body); + bodyStreamReader = t1 == null ? null : A._asJSObject(t1.getReader()); + if (bodyStreamReader == null) { + // goto return + $async$goto = 1; + break; + } + isDone = false; + _box_0.isError = false; + $async$handler = 4; + t1 = type$.NativeUint8List, t2 = type$.JSObject; + case 7: + // for condition + // trivial condition + $async$goto = 9; + return A._asyncStarHelper(A.promiseToFuture(A._asJSObject(bodyStreamReader.read()), t2), $async$_readBody, $async$controller); + case 9: + // returning from await. + chunk = $async$result; + if (A._asBool(chunk.done)) { + isDone = true; + // goto after for + $async$goto = 8; + break; + } + t3 = chunk.value; + t3.toString; + $async$goto = 10; + $async$nextWhenCanceled = [1, 5]; + return A._asyncStarHelper(A._IterationMarker_yieldSingle(t1._as(t3)), $async$_readBody, $async$controller); + case 10: + // after yield + // goto for condition + $async$goto = 7; + break; + case 8: + // after for + $async$next.push(6); + // goto finally + $async$goto = 5; + break; + case 4: + // catch + $async$handler = 3; + $async$exception = $async$errorStack.pop(); + e = A.unwrapException($async$exception); + st = A.getTraceFromException($async$exception); + _box_0.isError = true; + A._rethrowAsClientException(e, st, request); + $async$next.push(6); + // goto finally + $async$goto = 5; + break; + case 3: + // uncaught + $async$next = [2]; + case 5: + // finally + $async$handler = 2; + $async$goto = !isDone ? 11 : 12; + break; + case 11: + // then + $async$handler = 14; + $async$goto = 17; + return A._asyncStarHelper(A.promiseToFuture(A._asJSObject(bodyStreamReader.cancel()), type$.nullable_Object).catchError$2$test(new A._readBody_closure(), new A._readBody_closure0(_box_0)), $async$_readBody, $async$controller); + case 17: + // returning from await. + $async$handler = 2; + // goto after finally + $async$goto = 16; + break; + case 14: + // catch + $async$handler = 13; + $async$exception1 = $async$errorStack.pop(); + e0 = A.unwrapException($async$exception1); + st0 = A.getTraceFromException($async$exception1); + if (!_box_0.isError) + A._rethrowAsClientException(e0, st0, request); + // goto after finally + $async$goto = 16; + break; + case 13: + // uncaught + // goto rethrow + $async$goto = 2; + break; + case 16: + // after finally + case 12: + // join + // goto the next finally handler + $async$goto = $async$next.pop(); + break; + case 6: + // after finally + case 1: + // return + return A._asyncStarHelper(null, 0, $async$controller); + case 2: + // rethrow + return A._asyncStarHelper($async$errorStack.at(-1), 1, $async$controller); + } + }); + var $async$goto = 0, + $async$controller = A._makeAsyncStarStreamController($async$_readBody, type$.List_int), + $async$nextWhenCanceled, $async$handler = 2, $async$errorStack = [], $async$next = [], isDone, chunk, e, st, e0, st0, t2, t3, exception, _box_0, t1, bodyStreamReader, $async$exception, $async$exception1; + return A._streamOfController($async$controller); }, BrowserClient: function BrowserClient(t0) { - this._xhrs = t0; + this._abortController = t0; this.withCredentials = false; }, - BrowserClient_send_closure: function BrowserClient_send_closure(t0, t1, t2) { - this.xhr = t0; - this.completer = t1; - this.request = t2; + BrowserClient_send_closure: function BrowserClient_send_closure(t0) { + this.headers = t0; }, - BrowserClient_send_closure0: function BrowserClient_send_closure0(t0, t1) { - this.completer = t0; - this.request = t1; + _readBody_closure: function _readBody_closure() { + }, + _readBody_closure0: function _readBody_closure0(t0) { + this._box_0 = t0; }, ByteStream: function ByteStream(t0) { this._stream = t0; @@ -8759,6 +9117,9 @@ ByteStream_toBytes_closure: function ByteStream_toBytes_closure(t0) { this.completer = t0; }, + ClientException$(message, uri) { + return new A.ClientException(message, uri); + }, ClientException: function ClientException(t0, t1) { this.message = t0; this.uri = t1; @@ -8781,9 +9142,6 @@ _._finalized = false; }, Response_fromStream(response) { - return A.Response_fromStream$body(response); - }, - Response_fromStream$body(response) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Response), $async$returnValue, body, t1, t2, t3, t4, t5, t6; @@ -8926,7 +9284,7 @@ break; } message = new A.StringBuffer(""); - t1 = "" + (method + "("); + t1 = method + "("; message._contents = t1; t2 = A._arrayInstanceType(args); t3 = t2._eval$1("SubListIterable<1>"); @@ -9340,11 +9698,11 @@ SseClient$(serverUrl, debugKey) { var t3, t4, t5, _null = null, t1 = type$.String, - t2 = A.StreamController_StreamController(_null, _null, false, t1); - t1 = A.StreamController_StreamController(_null, _null, false, t1); + t2 = A.StreamController_StreamController(_null, _null, _null, false, t1); + t1 = A.StreamController_StreamController(_null, _null, _null, false, t1); t3 = A.Logger_Logger("SseClient"); t4 = $.Zone__current; - t5 = A.generateUuidV4(); + t5 = A.generateId(); t1 = new A.SseClient(debugKey + "-" + t5, t2, t1, t3, new A._AsyncCompleter(new A._Future(t4, type$._Future_void), type$._AsyncCompleter_void)); t1.SseClient$2$debugKey(serverUrl, debugKey); return t1; @@ -9378,21 +9736,6 @@ this.$this = t1; this.message = t2; }, - generateUuidV4() { - var t1 = new A.generateUuidV4_printDigits(), - t2 = new A.generateUuidV4_bitsDigits(t1, new A.generateUuidV4_generateBits(B.C__JSRandom)), - t3 = B.C__JSRandom.nextInt$1(4); - return A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)) + "-" + A.S(t2.call$2(16, 4)) + "-4" + A.S(t2.call$2(12, 3)) + "-" + A.S(t1.call$2(8 + t3, 1)) + A.S(t2.call$2(12, 3)) + "-" + A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)) + A.S(t2.call$2(16, 4)); - }, - generateUuidV4_generateBits: function generateUuidV4_generateBits(t0) { - this.random = t0; - }, - generateUuidV4_printDigits: function generateUuidV4_printDigits() { - }, - generateUuidV4_bitsDigits: function generateUuidV4_bitsDigits(t0, t1) { - this.printDigits = t0; - this.generateBits = t1; - }, GuaranteeChannel$(innerStream, innerSink, allowSinkErrors, $T) { var t2, t1 = {}; t1.innerStream = innerStream; @@ -9497,12 +9840,9 @@ this.handleData = t0; }, BrowserWebSocket_connect(url, protocols) { - return A.BrowserWebSocket_connect$body(url, protocols); - }, - BrowserWebSocket_connect$body(url, protocols) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.BrowserWebSocket), - $async$returnValue, t1, t2, t3, t4, webSocket, browserSocket, webSocketConnected; + $async$returnValue, t1, t2, t3, webSocket, browserSocket, webSocketConnected; var $async$BrowserWebSocket_connect = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -9515,24 +9855,23 @@ t1 = init.G; t2 = t1.WebSocket; t3 = url.toString$0(0); - t1 = type$.JSArray_nullable_Object._as(new t1.Array()); - t4 = type$.JSObject; - webSocket = t4._as(new t2(t3, t1)); + t1 = t1.Array; + t1 = type$.JSArray_nullable_Object._as(new t1()); + webSocket = A._asJSObject(new t2(t3, t1)); webSocket.binaryType = "arraybuffer"; - browserSocket = new A.BrowserWebSocket(webSocket, A.StreamController_StreamController(null, null, false, type$.WebSocketEvent)); + browserSocket = new A.BrowserWebSocket(webSocket, A.StreamController_StreamController(null, null, null, false, type$.WebSocketEvent)); t1 = new A._Future($.Zone__current, type$._Future_BrowserWebSocket); webSocketConnected = new A._AsyncCompleter(t1, type$._AsyncCompleter_BrowserWebSocket); if (A._asInt(webSocket.readyState) === 1) webSocketConnected.complete$1(browserSocket); - else if (A._asInt(webSocket.readyState) === 2 || A._asInt(webSocket.readyState) === 3) { - A._asInt(webSocket.readyState); - webSocketConnected.completeError$1(new A.WebSocketException()); - } else + else if (A._asInt(webSocket.readyState) === 2 || A._asInt(webSocket.readyState) === 3) + webSocketConnected.completeError$1(new A.WebSocketException("Unexpected WebSocket state: " + A._asInt(webSocket.readyState) + ", expected CONNECTING (0) or OPEN (1)")); + else new A._EventStream(webSocket, "open", false, type$._EventStream_JSObject).get$first(0).then$1$1(new A.BrowserWebSocket_connect_closure(webSocketConnected, browserSocket), type$.void); t2 = type$._EventStream_JSObject; t3 = type$.void; new A._EventStream(webSocket, "error", false, t2).get$first(0).then$1$1(new A.BrowserWebSocket_connect_closure0(webSocketConnected, browserSocket), t3); - A._EventStreamSubscription$(webSocket, "message", type$.nullable_void_Function_JSObject._as(new A.BrowserWebSocket_connect_closure1(browserSocket)), false, t4); + A._EventStreamSubscription$(webSocket, "message", type$.nullable_void_Function_JSObject._as(new A.BrowserWebSocket_connect_closure1(browserSocket)), false, type$.JSObject); new A._EventStream(webSocket, "close", false, t2).get$first(0).then$1$1(new A.BrowserWebSocket_connect_closure2(webSocketConnected, browserSocket), t3); $async$returnValue = t1; // goto return @@ -9565,7 +9904,7 @@ this.browserSocket = t1; }, WebSocketConnectionClosed$() { - return new A.WebSocketConnectionClosed(); + return new A.WebSocketConnectionClosed("Connection Closed"); }, WebSocketEvent: function WebSocketEvent() { }, @@ -9579,17 +9918,19 @@ this.code = t0; this.reason = t1; }, - WebSocketException: function WebSocketException() { + WebSocketException: function WebSocketException(t0) { + this.message = t0; }, - WebSocketConnectionClosed: function WebSocketConnectionClosed() { + WebSocketConnectionClosed: function WebSocketConnectionClosed(t0) { + this.message = t0; }, AdapterWebSocketChannel$(webSocket) { var _null = null, t1 = $.Zone__current, t2 = new A.StreamChannelController(type$.StreamChannelController_nullable_Object), t3 = type$.nullable_Object, - localToForeignController = A.StreamController_StreamController(_null, _null, true, t3), - foreignToLocalController = A.StreamController_StreamController(_null, _null, true, t3), + localToForeignController = A.StreamController_StreamController(_null, _null, _null, true, t3), + foreignToLocalController = A.StreamController_StreamController(_null, _null, _null, true, t3), t4 = A._instanceType(foreignToLocalController), t5 = A._instanceType(localToForeignController); t2.__StreamChannelController__local_F = A.GuaranteeChannel$(new A._ControllerStream(foreignToLocalController, t4._eval$1("_ControllerStream<1>")), new A._StreamSinkWrapper(localToForeignController, t5._eval$1("_StreamSinkWrapper<1>")), true, t3); @@ -9650,7 +9991,7 @@ }, _launchCommunicationWithDebugExtension() { var t1, t2; - type$.JSObject._as(init.G.window).addEventListener("message", A._functionToJS1(A.client___handleAuthRequest$closure())); + A._asJSObject(init.G.window).addEventListener("message", A._functionToJS1(A.client___handleAuthRequest$closure())); t1 = $.$get$serializers(); t2 = new A.DebugInfoBuilder(); type$.nullable_void_Function_DebugInfoBuilder._as(new A._launchCommunicationWithDebugExtension_closure()).call$1(t2); @@ -9658,13 +9999,12 @@ }, _dispatchEvent(message, detail) { var t1 = init.G, - t2 = type$.JSObject, - $event = t2._as(new t1.CustomEvent(message, {detail: detail})); - A._asBool(t2._as(t1.document).dispatchEvent($event)); + $event = A._asJSObject(new t1.CustomEvent(message, {detail: detail})); + A._asBool(A._asJSObject(t1.document).dispatchEvent($event)); }, _handleAuthRequest($event) { var t1, - data = type$.JSObject._as($event).data; + data = A._asJSObject($event).data; if (!(typeof data === "string")) return; if (A._asString(data) !== "dart-auth-request") @@ -9676,9 +10016,6 @@ } }, _authenticateUser(authUrl) { - return A._authenticateUser$body(authUrl); - }, - _authenticateUser$body(authUrl) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), $async$returnValue, response, client; @@ -9689,14 +10026,14 @@ switch ($async$goto) { case 0: // Function start - client = new A.BrowserClient(A.LinkedHashSet_LinkedHashSet$_empty(type$.JSObject)); + client = new A.BrowserClient(A._asJSObject(new init.G.AbortController())); client.withCredentials = true; $async$goto = 3; return A._asyncAwait(client._sendUnstreamed$3("GET", A.Uri_parse(authUrl), null), $async$_authenticateUser); case 3: // returning from await. response = $async$result; - $async$returnValue = B.JSString_methods.contains$1(A.encodingForCharset(A._contentTypeForHeaders(response.headers).parameters._collection$_map.$index(0, "charset")).decode$1(response.bodyBytes), "Dart Debug Authentication Success!"); + $async$returnValue = B.JSString_methods.contains$1(A.encodingForContentTypeHeader(A._contentTypeForHeaders(response.headers)).decode$1(response.bodyBytes), "Dart Debug Authentication Success!"); // goto return $async$goto = 1; break; @@ -9770,14 +10107,14 @@ }); return A._asyncStartSync($async$handleWebSocketHotReloadRequest, $async$completer); }, - handleServiceExtensionRequest(request, clientSink, manager) { - return A.handleServiceExtensionRequest$body(request, clientSink, manager); + handleWebSocketHotRestartRequest($event, manager, clientSink) { + return A.handleWebSocketHotRestartRequest$body($event, manager, clientSink); }, - handleServiceExtensionRequest$body(request, clientSink, manager) { + handleWebSocketHotRestartRequest$body($event, manager, clientSink) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$handler = 1, $async$errorStack = [], result, e, t1, exception, $async$exception; - var $async$handleServiceExtensionRequest = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { + $async$returnValue, $async$handler = 2, $async$errorStack = [], runId, e, t1, rng, t2, exception, requestId, $async$exception; + var $async$handleWebSocketHotRestartRequest = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$errorStack.push($async$result); $async$goto = $async$handler; @@ -9786,24 +10123,103 @@ switch ($async$goto) { case 0: // Function start - $async$handler = 3; - t1 = request.argsJson; - t1 = t1.length === 0 ? A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic) : type$.Map_String_dynamic._as(B.C_JsonCodec.decode$1(t1)); - $async$goto = 6; - return A._asyncAwait(manager.handleServiceExtension$2(request.method, t1), $async$handleServiceExtensionRequest); - case 6: - // returning from await. - result = $async$result; - t1 = request.id; - if (result != null) - A._sendServiceExtensionResponse(clientSink, t1, null, null, result, true); + requestId = $event.id; + $async$handler = 4; + t1 = null; + if (null == null) + rng = t1; else - A._sendServiceExtensionResponse(clientSink, t1, -32601, "Service extension not supported", null, false); - $async$handler = 1; + rng = t1; + if (rng == null) + rng = $.$get$V4State_random().generate$0(); + t1 = rng.length; + if (6 >= t1) { + $async$returnValue = A.ioore(rng, 6); + // goto return + $async$goto = 1; + break; + } + t2 = rng[6]; + rng.$flags & 2 && A.throwUnsupportedOperation(rng); + rng[6] = t2 & 15 | 64; + if (8 >= t1) { + $async$returnValue = A.ioore(rng, 8); + // goto return + $async$goto = 1; + break; + } + rng[8] = rng[8] & 63 | 128; + runId = A.UuidParsing_unparse(rng); + $async$goto = 7; + return A._asyncAwait(manager.hotRestart$1$runId(runId), $async$handleWebSocketHotRestartRequest); + case 7: + // returning from await. + A._sendResponse(clientSink, A.hot_restart_response_HotRestartResponse___new_tearOff$closure(), requestId, null, true, type$.HotRestartResponse); + $async$handler = 2; // goto after finally - $async$goto = 5; + $async$goto = 6; break; - case 3: + case 4: + // catch + $async$handler = 3; + $async$exception = $async$errorStack.pop(); + e = A.unwrapException($async$exception); + t1 = J.toString$0$(e); + A._sendResponse(clientSink, A.hot_restart_response_HotRestartResponse___new_tearOff$closure(), requestId, t1, false, type$.HotRestartResponse); + // goto after finally + $async$goto = 6; + break; + case 3: + // uncaught + // goto rethrow + $async$goto = 2; + break; + case 6: + // after finally + case 1: + // return + return A._asyncReturn($async$returnValue, $async$completer); + case 2: + // rethrow + return A._asyncRethrow($async$errorStack.at(-1), $async$completer); + } + }); + return A._asyncStartSync($async$handleWebSocketHotRestartRequest, $async$completer); + }, + handleServiceExtensionRequest(request, clientSink, manager) { + return A.handleServiceExtensionRequest$body(request, clientSink, manager); + }, + handleServiceExtensionRequest$body(request, clientSink, manager) { + var $async$goto = 0, + $async$completer = A._makeAsyncAwaitCompleter(type$.void), + $async$handler = 1, $async$errorStack = [], result, e, t1, exception, $async$exception; + var $async$handleServiceExtensionRequest = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { + if ($async$errorCode === 1) { + $async$errorStack.push($async$result); + $async$goto = $async$handler; + } + while (true) + switch ($async$goto) { + case 0: + // Function start + $async$handler = 3; + t1 = request.argsJson; + t1 = t1.length === 0 ? A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic) : type$.Map_String_dynamic._as(B.C_JsonCodec.decode$1(t1)); + $async$goto = 6; + return A._asyncAwait(manager.handleServiceExtension$2(request.method, t1), $async$handleServiceExtensionRequest); + case 6: + // returning from await. + result = $async$result; + t1 = request.id; + if (result != null) + A._sendServiceExtensionResponse(clientSink, t1, null, null, result, true); + else + A._sendServiceExtensionResponse(clientSink, t1, -32601, "Service extension not supported", null, false); + $async$handler = 1; + // goto after finally + $async$goto = 5; + break; + case 3: // catch $async$handler = 2; $async$exception = $async$errorStack.pop(); @@ -9835,8 +10251,7 @@ return path; }, _isChromium() { - var t1 = type$.JSObject; - return B.JSString_methods.contains$1(A._asString(t1._as(t1._as(init.G.window).navigator).vendor), "Google"); + return B.JSString_methods.contains$1(A._asString(A._asJSObject(A._asJSObject(init.G.window).navigator).vendor), "Google"); }, _authUrl() { var authUrl, @@ -9914,9 +10329,6 @@ this.errorMessage = t2; }, _Debugger_maybeInvokeFlutterDisassemble(_this) { - return A._Debugger_maybeInvokeFlutterDisassemble$body(_this); - }, - _Debugger_maybeInvokeFlutterDisassemble$body(_this) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), t1; @@ -9933,7 +10345,7 @@ case 2: // then $async$goto = 4; - return A._asyncAwait(A.promiseToFuture(type$.JSObject._as(_this.invokeExtension("ext.flutter.disassemble", "{}")), type$.String), $async$_Debugger_maybeInvokeFlutterDisassemble); + return A._asyncAwait(A.promiseToFuture(A._asJSObject(_this.invokeExtension("ext.flutter.disassemble", "{}")), type$.String), $async$_Debugger_maybeInvokeFlutterDisassemble); case 4: // returning from await. case 3: @@ -9945,9 +10357,6 @@ return A._asyncStartSync($async$_Debugger_maybeInvokeFlutterDisassemble, $async$completer); }, _Debugger_maybeInvokeFlutterReassemble(_this) { - return A._Debugger_maybeInvokeFlutterReassemble$body(_this); - }, - _Debugger_maybeInvokeFlutterReassemble$body(_this) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), t1; @@ -9964,7 +10373,7 @@ case 2: // then $async$goto = 4; - return A._asyncAwait(A.promiseToFuture(type$.JSObject._as(_this.invokeExtension("ext.flutter.reassemble", "{}")), type$.String), $async$_Debugger_maybeInvokeFlutterReassemble); + return A._asyncAwait(A.promiseToFuture(A._asJSObject(_this.invokeExtension("ext.flutter.reassemble", "{}")), type$.String), $async$_Debugger_maybeInvokeFlutterReassemble); case 4: // returning from await. case 3: @@ -10002,9 +10411,6 @@ this._restarter = t1; }, SdkDeveloperExtension_maybeInvokeFlutterDisassemble(_this) { - return A.SdkDeveloperExtension_maybeInvokeFlutterDisassemble$body(_this); - }, - SdkDeveloperExtension_maybeInvokeFlutterDisassemble$body(_this) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void); var $async$SdkDeveloperExtension_maybeInvokeFlutterDisassemble = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { @@ -10019,7 +10425,7 @@ case 2: // then $async$goto = 4; - return A._asyncAwait(A.promiseToFuture(type$.JSObject._as(_this.invokeExtension("ext.flutter.disassemble", "{}")), type$.String), $async$SdkDeveloperExtension_maybeInvokeFlutterDisassemble); + return A._asyncAwait(A.promiseToFuture(A._asJSObject(_this.invokeExtension("ext.flutter.disassemble", "{}")), type$.String), $async$SdkDeveloperExtension_maybeInvokeFlutterDisassemble); case 4: // returning from await. case 3: @@ -10085,15 +10491,14 @@ this.stackTrace = t1; }, _findNonce() { - var t2, i, element, t3, nonceValue, - t1 = type$.JSObject, - elements = t1._as(t1._as(t1._as(init.G.window).document).querySelectorAll("script")); - for (t2 = type$.nullable_JSObject, i = 0; i < A._asInt(elements.length); ++i) { - element = t2._as(elements.item(i)); - t3 = element == null ? t1._as(element) : element; - nonceValue = A._asString(t3.nonce); - t3 = $.$get$_noncePattern(); - if (t3._nativeRegExp.test(nonceValue)) + var i, element, t1, nonceValue, + elements = A._asJSObject(A._asJSObject(A._asJSObject(init.G.window).document).querySelectorAll("script")); + for (i = 0; i < A._asInt(elements.length); ++i) { + element = A._asJSObjectQ(elements.item(i)); + t1 = element == null ? A._asJSObject(element) : element; + nonceValue = A._asString(t1.nonce); + t1 = $.$get$_noncePattern(); + if (t1._nativeRegExp.test(nonceValue)) return nonceValue; } return null; @@ -10102,7 +10507,7 @@ var t1, t2, scriptElement = $.$get$_createScript().call$0(); scriptElement.innerHTML = "window.$dartRunMain();"; - t1 = type$.nullable_JSObject._as(type$.JSObject._as(init.G.document).body); + t1 = A._asJSObjectQ(A._asJSObject(init.G.document).body); t1.toString; t2 = A.jsify(scriptElement); t2.toString; @@ -10141,8 +10546,7 @@ throw "Unable to print message: " + String(string); }, JSFunctionUnsafeUtilExtension_callAsConstructor(_this, arg1, $R) { - var t1 = [arg1]; - return $R._as(A.callConstructor(_this, t1, type$.JSObject)); + return $R._as(A.callConstructor(_this, [arg1], type$.JSObject)); }, groupBy(values, key, $S, $T) { var t1, _i, element, t2, t3, @@ -10172,18 +10576,24 @@ else return 255; }, - encodingForCharset(charset) { - var t1; - if (charset == null) - return B.C_Latin1Codec; - t1 = A.Encoding_getByName(charset); - return t1 == null ? B.C_Latin1Codec : t1; + encodingForContentTypeHeader(contentTypeHeader) { + var t1, + charset = contentTypeHeader.parameters._collection$_map.$index(0, "charset"); + if (contentTypeHeader.type === "application" && contentTypeHeader.subtype === "json" && charset == null) + return B.C_Utf8Codec; + if (charset != null) { + t1 = A.Encoding_getByName(charset); + if (t1 == null) + t1 = B.C_Latin1Codec; + } else + t1 = B.C_Latin1Codec; + return t1; }, toUint8List(input) { return input; }, toByteStream(stream) { - return stream; + return new A.ByteStream(stream); }, wrapFormatException($name, value, body, $T) { var error, error0, t1, exception; @@ -10320,6 +10730,87 @@ index = B.JSString_methods.indexOf$2(context, text, index + 1); } return null; + }, + generateId() { + var i, + chars = A.List_List$filled(6, 0, false, type$.int), + bits = B.C__JSRandom.nextInt$1(4294967296); + for (i = 0; i < 6; ++i) { + B.JSArray_methods.$indexSet(chars, i, string$.ABCDEF.charCodeAt(bits & 63)); + bits = bits >>> 6; + } + return A.String_String$fromCharCodes(chars, 0, null); + }, + UuidParsing_unparse(buffer) { + var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, + t1 = buffer.length; + if (t1 < 16) + throw A.wrapException(A.RangeError$("buffer too small: need 16: length=" + t1)); + t1 = $.$get$UuidParsing__byteToHex(); + t2 = buffer[0]; + if (!(t2 < 256)) + return A.ioore(t1, t2); + t2 = t1[t2]; + t3 = buffer[1]; + if (!(t3 < 256)) + return A.ioore(t1, t3); + t3 = t1[t3]; + t4 = buffer[2]; + if (!(t4 < 256)) + return A.ioore(t1, t4); + t4 = t1[t4]; + t5 = buffer[3]; + if (!(t5 < 256)) + return A.ioore(t1, t5); + t5 = t1[t5]; + t6 = buffer[4]; + if (!(t6 < 256)) + return A.ioore(t1, t6); + t6 = t1[t6]; + t7 = buffer[5]; + if (!(t7 < 256)) + return A.ioore(t1, t7); + t7 = t1[t7]; + t8 = buffer[6]; + if (!(t8 < 256)) + return A.ioore(t1, t8); + t8 = t1[t8]; + t9 = buffer[7]; + if (!(t9 < 256)) + return A.ioore(t1, t9); + t9 = t1[t9]; + t10 = buffer[8]; + if (!(t10 < 256)) + return A.ioore(t1, t10); + t10 = t1[t10]; + t11 = buffer[9]; + if (!(t11 < 256)) + return A.ioore(t1, t11); + t11 = t1[t11]; + t12 = buffer[10]; + if (!(t12 < 256)) + return A.ioore(t1, t12); + t12 = t1[t12]; + t13 = buffer[11]; + if (!(t13 < 256)) + return A.ioore(t1, t13); + t13 = t1[t13]; + t14 = buffer[12]; + if (!(t14 < 256)) + return A.ioore(t1, t14); + t14 = t1[t14]; + t15 = buffer[13]; + if (!(t15 < 256)) + return A.ioore(t1, t15); + t15 = t1[t15]; + t16 = buffer[14]; + if (!(t16 < 256)) + return A.ioore(t1, t16); + t16 = t1[t16]; + t17 = buffer[15]; + if (!(t17 < 256)) + return A.ioore(t1, t17); + return t2 + t3 + t4 + t5 + "-" + t6 + t7 + "-" + t8 + t9 + "-" + t10 + t11 + "-" + t12 + t13 + t14 + t15 + t16 + t1[t17]; } }, B = {}; @@ -10503,7 +10994,6 @@ return new A.MappedListIterable(receiver, t1._bind$1($T)._eval$1("1(2)")._as(f), t1._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, map$1(receiver, f) { - f.toString; return this.map$1$1(receiver, f, type$.dynamic); }, join$1(receiver, separator) { @@ -10725,7 +11215,6 @@ return -1; }, indexWhere$1(receiver, test) { - test.toString; return this.indexWhere$2(receiver, test, 0); }, get$runtimeType(receiver) { @@ -10736,6 +11225,24 @@ $isIterable: 1, $isList: 1 }; + J.JSArraySafeToStringHook.prototype = { + tryFormat$1(array) { + var flags, info, base; + if (!Array.isArray(array)) + return null; + flags = array.$flags | 0; + if ((flags & 4) !== 0) + info = "const, "; + else if ((flags & 2) !== 0) + info = "unmodifiable, "; + else + info = (flags & 1) !== 0 ? "fixed, " : ""; + base = "Instance of '" + A.Primitives_objectTypeName(array) + "'"; + if (info === "") + return base; + return base + " (" + info + "length: " + array.length + ")"; + } + }; J.JSUnmodifiableArray.prototype = {}; J.ArrayIterator.prototype = { get$current() { @@ -10908,9 +11415,6 @@ throw A.wrapException(A.argumentErrorValue(other)); return other > 31 ? 0 : receiver << other >>> 0; }, - _shlPositive$1(receiver, other) { - return other > 31 ? 0 : receiver << other >>> 0; - }, $shr(receiver, other) { var t1; if (other < 0) @@ -11229,8 +11733,8 @@ } }; A.CastMap.prototype = { - cast$2$0(_, RK, RV) { - return new A.CastMap(this.__internal$_source, this.$ti._eval$1("@<1,2>")._bind$1(RK)._bind$1(RV)._eval$1("CastMap<1,2,3,4>")); + cast$2$0(_, $RK, $RV) { + return new A.CastMap(this.__internal$_source, this.$ti._eval$1("@<1,2>")._bind$1($RK)._bind$1($RV)._eval$1("CastMap<1,2,3,4>")); }, containsKey$1(key) { return this.__internal$_source.containsKey$1(key); @@ -11295,7 +11799,7 @@ call$0() { return A.Future_Future$value(null, type$.void); }, - $signature: 16 + $signature: 19 }; A.SentinelValue.prototype = {}; A.EfficientLengthIterable.prototype = {}; @@ -11355,7 +11859,6 @@ return new A.MappedListIterable(this, t1._bind$1($T)._eval$1("1(ListIterable.E)")._as(toElement), t1._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, map$1(_, toElement) { - toElement.toString; return this.map$1$1(0, toElement, type$.dynamic); }, reduce$1(_, combine) { @@ -11551,7 +12054,6 @@ return new A.MappedIterable(this, t1._bind$1($T)._eval$1("1(2)")._as(toElement), t1._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>")); }, map$1(_, toElement) { - toElement.toString; return this.map$1$1(0, toElement, type$.dynamic); } }; @@ -11689,7 +12191,6 @@ return new A.EmptyIterable($T._eval$1("EmptyIterable<0>")); }, map$1(_, toElement) { - toElement.toString; return this.map$1$1(0, toElement, type$.dynamic); }, skip$1(_, count) { @@ -11701,8 +12202,11 @@ return this; }, toList$1$growable(_, growable) { - var t1 = J.JSArray_JSArray$fixed(0, this.$ti._precomputed1); - return t1; + var t1 = this.$ti._precomputed1; + return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1); + }, + toList$0(_) { + return this.toList$1$growable(0, true); } }; A.EmptyIterator.prototype = { @@ -11774,9 +12278,9 @@ }; A.__CastListBase__CastIterableBase_ListMixin.prototype = {}; A.ConstantMap.prototype = { - cast$2$0(_, RK, RV) { + cast$2$0(_, $RK, $RV) { var t1 = A._instanceType(this); - return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], RK, RV); + return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], $RK, $RV); }, get$isEmpty(_) { return this.get$length(this) === 0; @@ -11793,14 +12297,13 @@ t1._rest[1]._as(value); A.ConstantMap__throwUnmodifiable(); }, - map$2$1(_, transform, K2, V2) { - var result = A.LinkedHashMap_LinkedHashMap$_empty(K2, V2); - this.forEach$1(0, new A.ConstantMap_map_closure(this, A._instanceType(this)._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), result)); + map$2$1(_, transform, $K2, $V2) { + var result = A.LinkedHashMap_LinkedHashMap$_empty($K2, $V2); + this.forEach$1(0, new A.ConstantMap_map_closure(this, A._instanceType(this)._bind$1($K2)._bind$1($V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), result)); return result; }, map$1(_, transform) { var t1 = type$.dynamic; - transform.toString; return this.map$2$1(0, transform, t1, t1); }, $isMap: 1 @@ -11909,6 +12412,7 @@ return A.instantiatedGenericFunctionType(A.closureFunctionType(this._genericClosure), this.$ti); } }; + A.SafeToStringHook.prototype = {}; A.TypeErrorDecoder.prototype = { matchTypeError$1(message) { var result, t1, _this = this, @@ -12162,7 +12666,7 @@ if (index < 0) return null; cell = bucket.splice(index, 1)[0]; - _this.__js_helper$_unlinkCell$1(cell); + _this._unlinkCell$1(cell); if (bucket.length === 0) delete rest[hash]; return cell.hashMapCellValue; @@ -12197,7 +12701,7 @@ cell = table[key]; if (cell == null) return null; - this.__js_helper$_unlinkCell$1(cell); + this._unlinkCell$1(cell); delete table[key]; return cell.hashMapCellValue; }, @@ -12220,7 +12724,7 @@ _this._modified$0(); return cell; }, - __js_helper$_unlinkCell$1(cell) { + _unlinkCell$1(cell) { var _this = this, previous = cell._previous, next = cell._next; @@ -12395,19 +12899,19 @@ call$1(o) { return this.getTag(o); }, - $signature: 4 + $signature: 6 }; A.initHooks_closure0.prototype = { call$2(o, tag) { return this.getUnknownTag(o, tag); }, - $signature: 91 + $signature: 93 }; A.initHooks_closure1.prototype = { call$1(tag) { return this.prototypeForTag(A._asString(tag)); }, - $signature: 49 + $signature: 86 }; A._Record.prototype = {}; A.JSSyntaxRegExp.prototype = { @@ -12449,7 +12953,7 @@ var match, regexp = this.get$_nativeGlobalVersion(); if (regexp == null) - regexp = type$.Object._as(regexp); + regexp = A._asObject(regexp); regexp.lastIndex = start; match = regexp.exec(string); if (match == null) @@ -12460,7 +12964,7 @@ var match, regexp = this.get$_nativeAnchoredVersion(); if (regexp == null) - regexp = type$.Object._as(regexp); + regexp = A._asObject(regexp); regexp.lastIndex = start; match = regexp.exec(string); if (match == null) @@ -12633,6 +13137,7 @@ $isNativeByteBuffer: 1, $isByteBuffer: 1 }; + A.NativeArrayBuffer.prototype = {$isNativeArrayBuffer: 1}; A.NativeTypedData.prototype = { get$buffer(receiver) { if (((receiver.$flags | 0) & 2) !== 0) @@ -12651,7 +13156,7 @@ }; A._UnmodifiableNativeByteBufferView.prototype = { asUint8List$2(_, offsetInBytes, $length) { - var result = A.NativeUint8List_NativeUint8List$view(this.__native_typed_data$_data, offsetInBytes, $length); + var result = A.NativeUint8List_NativeUint8List$view(this._data, offsetInBytes, $length); result.$flags = 3; return result; }, @@ -12910,7 +13415,7 @@ t1.storedCallback = null; f.call$0(); }, - $signature: 6 + $signature: 4 }; A._AsyncRun__initializeScheduleImmediate_closure.prototype = { call$1(callback) { @@ -12920,7 +13425,7 @@ t2 = this.span; t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2); }, - $signature: 37 + $signature: 69 }; A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = { call$0() { @@ -13026,13 +13531,98 @@ call$2(error, stackTrace) { this.bodyFunction.call$2(1, new A.ExceptionAndStackTrace(error, type$.StackTrace._as(stackTrace))); }, - $signature: 47 + $signature: 66 }; A._wrapJsFunctionForAsync_closure.prototype = { call$2(errorCode, result) { this.$protected(A._asInt(errorCode), result); }, - $signature: 57 + $signature: 64 + }; + A._asyncStarHelper_closure.prototype = { + call$0() { + var t3, + t1 = this.controller, + t2 = t1.___AsyncStarStreamController_controller_A; + t2 === $ && A.throwLateFieldNI("controller"); + t3 = t2._state; + if ((t3 & 1) !== 0 ? (t2.get$_subscription()._state & 4) !== 0 : (t3 & 2) === 0) { + t1.isSuspended = true; + return; + } + t1 = t1.cancelationFuture != null ? 2 : 0; + this.bodyFunction.call$2(t1, null); + }, + $signature: 0 + }; + A._asyncStarHelper_closure0.prototype = { + call$1(__wc0_formal) { + var errorCode = this.controller.cancelationFuture != null ? 2 : 0; + this.bodyFunction.call$2(errorCode, null); + }, + $signature: 4 + }; + A._AsyncStarStreamController.prototype = { + _AsyncStarStreamController$1(body, $T) { + var _this = this, + t1 = new A._AsyncStarStreamController__resumeBody(body); + _this.___AsyncStarStreamController_controller_A = _this.$ti._eval$1("StreamController<1>")._as(A.StreamController_StreamController(new A._AsyncStarStreamController_closure(_this, body), new A._AsyncStarStreamController_closure0(t1), new A._AsyncStarStreamController_closure1(_this, t1), false, $T)); + } + }; + A._AsyncStarStreamController__resumeBody.prototype = { + call$0() { + A.scheduleMicrotask(new A._AsyncStarStreamController__resumeBody_closure(this.body)); + }, + $signature: 1 + }; + A._AsyncStarStreamController__resumeBody_closure.prototype = { + call$0() { + this.body.call$2(0, null); + }, + $signature: 0 + }; + A._AsyncStarStreamController_closure0.prototype = { + call$0() { + this._resumeBody.call$0(); + }, + $signature: 0 + }; + A._AsyncStarStreamController_closure1.prototype = { + call$0() { + var t1 = this.$this; + if (t1.isSuspended) { + t1.isSuspended = false; + this._resumeBody.call$0(); + } + }, + $signature: 0 + }; + A._AsyncStarStreamController_closure.prototype = { + call$0() { + var t1 = this.$this, + t2 = t1.___AsyncStarStreamController_controller_A; + t2 === $ && A.throwLateFieldNI("controller"); + if ((t2._state & 4) === 0) { + t1.cancelationFuture = new A._Future($.Zone__current, type$._Future_dynamic); + if (t1.isSuspended) { + t1.isSuspended = false; + A.scheduleMicrotask(new A._AsyncStarStreamController__closure(this.body)); + } + return t1.cancelationFuture; + } + }, + $signature: 59 + }; + A._AsyncStarStreamController__closure.prototype = { + call$0() { + this.body.call$2(2, null); + }, + $signature: 0 + }; + A._IterationMarker.prototype = { + toString$0(_) { + return "IterationMarker(" + this.state + ", " + A.S(this.value) + ")"; + } }; A.AsyncError.prototype = { toString$0(_) { @@ -13068,7 +13658,7 @@ A.TimeoutException.prototype = {}; A._Completer.prototype = { completeError$2(error, stackTrace) { - type$.Object._as(error); + A._asObject(error); type$.nullable_StackTrace._as(stackTrace); if ((this.future._state & 30) !== 0) throw A.wrapException(A.StateError$("Future already completed")); @@ -13161,7 +13751,6 @@ return result; }, then$1$1(f, $R) { - f.toString; return this.then$1$2$onError(f, null, $R); }, _thenAwait$1$2(f, onError, $E) { @@ -13172,15 +13761,24 @@ this._addListener$1(new A._FutureListener(result, 19, f, onError, t1._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>"))); return result; }, - catchError$1(onError) { - var t1 = this.$ti, - t2 = $.Zone__current, - result = new A._Future(t2, t1); - if (t2 !== B.C__RootZone) + catchError$2$test(onError, test) { + var t1, t2, result; + type$.nullable_bool_Function_Object._as(test); + t1 = this.$ti; + t2 = $.Zone__current; + result = new A._Future(t2, t1); + if (t2 !== B.C__RootZone) { onError = A._registerErrorHandler(onError, t2); - this._addListener$1(new A._FutureListener(result, 2, null, onError, t1._eval$1("_FutureListener<1,1>"))); + if (test != null) + test = t2.registerUnaryCallback$2$1(test, type$.bool, type$.Object); + } + t2 = test == null ? 2 : 6; + this._addListener$1(new A._FutureListener(result, t2, test, onError, t1._eval$1("_FutureListener<1,1>"))); return result; }, + catchError$1(onError) { + return this.catchError$2$test(onError, null); + }, whenComplete$1(action) { var t1, t2, result; type$.dynamic_Function._as(action); @@ -13301,7 +13899,7 @@ A._Future__propagateToListeners(this, listeners); }, _completeError$2(error, stackTrace) { - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); this._completeErrorObject$1(new A.AsyncError(error, stackTrace)); }, @@ -13423,11 +14021,11 @@ call$1(__wc0_formal) { this.joinedResult._completeWithResultOf$1(this.originalSource); }, - $signature: 6 + $signature: 4 }; A._Future__propagateToListeners_handleWhenCompleteCallback_closure0.prototype = { call$2(e, s) { - type$.Object._as(e); + A._asObject(e); type$.StackTrace._as(s); this.joinedResult._completeErrorObject$1(new A.AsyncError(e, s)); }, @@ -13523,7 +14121,7 @@ A._Future_timeout_closure1.prototype = { call$2(e, s) { var t1; - type$.Object._as(e); + A._asObject(e); type$.StackTrace._as(s); t1 = this._box_0; if (t1.timer.get$isActive()) { @@ -13540,7 +14138,6 @@ return new A._MapStream(t1._bind$1($S)._eval$1("1(Stream.T)")._as(convert), this, t1._eval$1("@")._bind$1($S)._eval$1("_MapStream<1,2>")); }, map$1(_, convert) { - convert.toString; return this.map$1$1(0, convert, type$.dynamic); }, get$length(_) { @@ -13606,10 +14203,10 @@ if ((_this._state & 8) === 0) return A._instanceType(_this)._eval$1("_PendingEvents<1>?")._as(_this._varData); t1 = A._instanceType(_this); - return t1._eval$1("_PendingEvents<1>?")._as(t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).get$_varData()); + return t1._eval$1("_PendingEvents<1>?")._as(t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData)._varData); }, _ensurePendingEvents$0() { - var events, t1, _this = this; + var events, t1, state, _this = this; if ((_this._state & 8) === 0) { events = _this._varData; if (events == null) @@ -13617,13 +14214,16 @@ return A._instanceType(_this)._eval$1("_PendingEvents<1>")._as(events); } t1 = A._instanceType(_this); - events = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData).get$_varData(); + state = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData); + events = state._varData; + if (events == null) + events = state._varData = new A._PendingEvents(t1._eval$1("_PendingEvents<1>")); return t1._eval$1("_PendingEvents<1>")._as(events); }, get$_subscription() { var varData = this._varData; if ((this._state & 8) !== 0) - varData = type$._StreamControllerAddStreamState_nullable_Object._as(varData).get$_varData(); + varData = type$._StreamControllerAddStreamState_nullable_Object._as(varData)._varData; return A._instanceType(this)._eval$1("_ControllerSubscription<1>")._as(varData); }, _badEventState$0() { @@ -13631,6 +14231,31 @@ return new A.StateError("Cannot add event after closing"); return new A.StateError("Cannot add event while adding a stream"); }, + addStream$2$cancelOnError(source, cancelOnError) { + var t2, t3, t4, t5, t6, _this = this, + t1 = A._instanceType(_this); + t1._eval$1("Stream<1>")._as(source); + t2 = _this._state; + if (t2 >= 4) + throw A.wrapException(_this._badEventState$0()); + if ((t2 & 2) !== 0) { + t1 = new A._Future($.Zone__current, type$._Future_dynamic); + t1._asyncComplete$1(null); + return t1; + } + t2 = _this._varData; + t3 = cancelOnError === true; + t4 = new A._Future($.Zone__current, type$._Future_dynamic); + t5 = t1._eval$1("~(1)")._as(_this.get$_add()); + t6 = t3 ? A._AddStreamState_makeErrorHandler(_this) : _this.get$_addError(); + t6 = source.listen$4$cancelOnError$onDone$onError(t5, t3, _this.get$_close(), t6); + t3 = _this._state; + if ((t3 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t3 & 2) === 0) + t6.pause$0(); + _this._varData = new A._StreamControllerAddStreamState(t2, t4, t6, t1._eval$1("_StreamControllerAddStreamState<1>")); + _this._state |= 8; + return t4; + }, _ensureDoneFuture$0() { var t1 = this._doneFuture; if (t1 == null) @@ -13645,19 +14270,13 @@ _this._add$1(value); }, addError$2(error, stackTrace) { - var _0_0, t1, _this = this; - type$.Object._as(error); + var _0_0; + A._asObject(error); type$.nullable_StackTrace._as(stackTrace); - if (_this._state >= 4) - throw A.wrapException(_this._badEventState$0()); + if (this._state >= 4) + throw A.wrapException(this._badEventState$0()); _0_0 = A._interceptUserError(error, stackTrace); - error = _0_0.error; - stackTrace = _0_0.stackTrace; - t1 = _this._state; - if ((t1 & 1) !== 0) - _this._sendError$2(error, stackTrace); - else if ((t1 & 3) === 0) - _this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace)); + this._addError$2(_0_0.error, _0_0.stackTrace); }, addError$1(error) { return this.addError$2(error, null); @@ -13689,6 +14308,23 @@ else if ((t2 & 3) === 0) _this._ensurePendingEvents$0().add$1(0, new A._DelayedData(value, t1._eval$1("_DelayedData<1>"))); }, + _addError$2(error, stackTrace) { + var t1; + A._asObject(error); + type$.StackTrace._as(stackTrace); + t1 = this._state; + if ((t1 & 1) !== 0) + this._sendError$2(error, stackTrace); + else if ((t1 & 3) === 0) + this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace)); + }, + _close$0() { + var _this = this, + addState = A._instanceType(_this)._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData); + _this._varData = addState._varData; + _this._state &= 4294967287; + addState.addStreamFuture._asyncComplete$1(null); + }, _subscribe$4(onData, onError, onDone, cancelOnError) { var t2, t3, t4, t5, t6, t7, subscription, pendingEvents, addState, _this = this, t1 = A._instanceType(_this); @@ -13706,8 +14342,8 @@ pendingEvents = _this.get$_pendingEvents(); if (((_this._state |= 1) & 8) !== 0) { addState = t1._eval$1("_StreamControllerAddStreamState<1>")._as(_this._varData); - addState.set$_varData(subscription); - addState.resume$0(); + addState._varData = subscription; + addState.addSubscription.resume$0(); } else _this._varData = subscription; subscription._setPendingEvents$1(pendingEvents); @@ -13734,7 +14370,7 @@ e = A.unwrapException(exception); s = A.getTraceFromException(exception); result0 = new A._Future($.Zone__current, type$._Future_void); - t1 = type$.Object._as(e); + t1 = A._asObject(e); t2 = type$.StackTrace._as(s); result0._asyncCompleteErrorObject$1(new A.AsyncError(t1, t2)); result = result0; @@ -13816,7 +14452,7 @@ t2 = A._instanceType(t1); t2._eval$1("StreamSubscription<1>")._as(this); if ((t1._state & 8) !== 0) - t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).pause$0(); + t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).addSubscription.pause$0(); A._runGuarded(t1.onPause); }, _onResume$0() { @@ -13824,7 +14460,7 @@ t2 = A._instanceType(t1); t2._eval$1("StreamSubscription<1>")._as(this); if ((t1._state & 8) !== 0) - t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).resume$0(); + t2._eval$1("_StreamControllerAddStreamState<1>")._as(t1._varData).addSubscription.resume$0(); A._runGuarded(t1.onResume); } }; @@ -13834,6 +14470,27 @@ }, $isStreamSink: 1 }; + A._AddStreamState.prototype = { + cancel$0() { + var cancel = this.addSubscription.cancel$0(); + return cancel.whenComplete$1(new A._AddStreamState_cancel_closure(this)); + } + }; + A._AddStreamState_makeErrorHandler_closure.prototype = { + call$2(e, s) { + var t1 = this.controller; + t1._addError$2(A._asObject(e), type$.StackTrace._as(s)); + t1._close$0(); + }, + $signature: 5 + }; + A._AddStreamState_cancel_closure.prototype = { + call$0() { + this.$this.addStreamFuture._asyncComplete$1(null); + }, + $signature: 1 + }; + A._StreamControllerAddStreamState.prototype = {}; A._BufferingStreamSubscription.prototype = { _setPendingEvents$1(pendingEvents) { var _this = this; @@ -14071,7 +14728,7 @@ A._BufferingStreamSubscription_asFuture_closure0.prototype = { call$2(error, stackTrace) { var cancelFuture, t1; - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); cancelFuture = this.$this.cancel$0(); t1 = this.result; @@ -14339,7 +14996,7 @@ _handleError$2(error, stackTrace) { var t1; type$.StackTrace._as(stackTrace); - t1 = error == null ? type$.Object._as(error) : error; + t1 = error == null ? A._asObject(error) : error; this._stream.$ti._eval$1("_EventSink<2>")._as(this)._addError$2(t1, stackTrace); }, _handleDone$0() { @@ -14423,7 +15080,7 @@ } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); + this._processUncaughtError$3(this, A._asObject(e), type$.StackTrace._as(s)); } }, runUnaryGuarded$1$2(f, arg, $T) { @@ -14435,20 +15092,20 @@ } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); + this._processUncaughtError$3(this, A._asObject(e), type$.StackTrace._as(s)); } }, - runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) { + runBinaryGuarded$2$3(f, arg1, arg2, $T1, $T2) { var e, s, exception; - T1._eval$1("@<0>")._bind$1(T2)._eval$1("~(1,2)")._as(f); - T1._as(arg1); - T2._as(arg2); + $T1._eval$1("@<0>")._bind$1($T2)._eval$1("~(1,2)")._as(f); + $T1._as(arg1); + $T2._as(arg2); try { - this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2); + this.runBinary$3$3(f, arg1, arg2, type$.void, $T1, $T2); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - this._processUncaughtError$3(this, type$.Object._as(e), type$.StackTrace._as(s)); + this._processUncaughtError$3(this, A._asObject(e), type$.StackTrace._as(s)); } }, bindCallback$1$1(f, $R) { @@ -14486,14 +15143,14 @@ t1 = implementation.zone; return implementation.$function.call$2$5(t1, t1.get$_parentDelegate(), this, f, arg, $R, $T); }, - runBinary$3$3(f, arg1, arg2, $R, T1, T2) { + runBinary$3$3(f, arg1, arg2, $R, $T1, $T2) { var implementation, t1; - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); + $R._eval$1("@<0>")._bind$1($T1)._bind$1($T2)._eval$1("1(2,3)")._as(f); + $T1._as(arg1); + $T2._as(arg2); implementation = this._runBinary; t1 = implementation.zone; - return implementation.$function.call$3$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2, $R, T1, T2); + return implementation.$function.call$3$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2, $R, $T1, $T2); }, registerCallback$1$1(callback, $R) { var implementation, t1; @@ -14509,12 +15166,12 @@ t1 = implementation.zone; return implementation.$function.call$2$4(t1, t1.get$_parentDelegate(), this, callback, $R, $T); }, - registerBinaryCallback$3$1(callback, $R, T1, T2) { + registerBinaryCallback$3$1(callback, $R, $T1, $T2) { var implementation, t1; - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(callback); + $R._eval$1("@<0>")._bind$1($T1)._bind$1($T2)._eval$1("1(2,3)")._as(callback); implementation = this._registerBinaryCallback; t1 = implementation.zone; - return implementation.$function.call$3$4(t1, t1.get$_parentDelegate(), this, callback, $R, T1, T2); + return implementation.$function.call$3$4(t1, t1.get$_parentDelegate(), this, callback, $R, $T1, $T2); }, errorCallback$2(error, stackTrace) { var implementation = this._errorCallback, @@ -14696,7 +15353,7 @@ } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); + A._rootHandleError(A._asObject(e), type$.StackTrace._as(s)); } }, runUnaryGuarded$1$2(f, arg, $T) { @@ -14712,24 +15369,24 @@ } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); + A._rootHandleError(A._asObject(e), type$.StackTrace._as(s)); } }, - runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) { + runBinaryGuarded$2$3(f, arg1, arg2, $T1, $T2) { var e, s, exception; - T1._eval$1("@<0>")._bind$1(T2)._eval$1("~(1,2)")._as(f); - T1._as(arg1); - T2._as(arg2); + $T1._eval$1("@<0>")._bind$1($T2)._eval$1("~(1,2)")._as(f); + $T1._as(arg1); + $T2._as(arg2); try { if (B.C__RootZone === $.Zone__current) { f.call$2(arg1, arg2); return; } - A._rootRunBinary(null, null, this, f, arg1, arg2, type$.void, T1, T2); + A._rootRunBinary(null, null, this, f, arg1, arg2, type$.void, $T1, $T2); } catch (exception) { e = A.unwrapException(exception); s = A.getTraceFromException(exception); - A._rootHandleError(type$.Object._as(e), type$.StackTrace._as(s)); + A._rootHandleError(A._asObject(e), type$.StackTrace._as(s)); } }, bindCallback$1$1(f, $R) { @@ -14763,13 +15420,13 @@ return f.call$1(arg); return A._rootRunUnary(null, null, this, f, arg, $R, $T); }, - runBinary$3$3(f, arg1, arg2, $R, T1, T2) { - $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); - T1._as(arg1); - T2._as(arg2); + runBinary$3$3(f, arg1, arg2, $R, $T1, $T2) { + $R._eval$1("@<0>")._bind$1($T1)._bind$1($T2)._eval$1("1(2,3)")._as(f); + $T1._as(arg1); + $T2._as(arg2); if ($.Zone__current === B.C__RootZone) return f.call$2(arg1, arg2); - return A._rootRunBinary(null, null, this, f, arg1, arg2, $R, T1, T2); + return A._rootRunBinary(null, null, this, f, arg1, arg2, $R, $T1, $T2); }, registerCallback$1$1(f, $R) { return $R._eval$1("0()")._as(f); @@ -14777,8 +15434,8 @@ registerUnaryCallback$2$1(f, $R, $T) { return $R._eval$1("@<0>")._bind$1($T)._eval$1("1(2)")._as(f); }, - registerBinaryCallback$3$1(f, $R, T1, T2) { - return $R._eval$1("@<0>")._bind$1(T1)._bind$1(T2)._eval$1("1(2,3)")._as(f); + registerBinaryCallback$3$1(f, $R, $T1, $T2) { + return $R._eval$1("@<0>")._bind$1($T1)._bind$1($T2)._eval$1("1(2,3)")._as(f); }, errorCallback$2(error, stackTrace) { return null; @@ -14840,10 +15497,10 @@ if (e === error) t2._processUncaughtError$3(zone, error, stackTrace); else - t2._processUncaughtError$3(zone, type$.Object._as(e), t1._as(s)); + t2._processUncaughtError$3(zone, A._asObject(e), t1._as(s)); } }, - $signature: 39 + $signature: 55 }; A._HashMap.prototype = { get$length(_) { @@ -15068,7 +15725,7 @@ call$1(v) { return this.K._is(v); }, - $signature: 14 + $signature: 12 }; A._HashMapKeyIterable.prototype = { get$length(_) { @@ -15149,7 +15806,7 @@ call$1(v) { return this.K._is(v); }, - $signature: 14 + $signature: 12 }; A._HashSet.prototype = { get$iterator(_) { @@ -15405,66 +16062,24 @@ } return true; }, - remove$1(_, object) { - var t1 = this._remove$1(object); - return t1; - }, - _remove$1(object) { - var hash, bucket, index, cell, _this = this, - rest = _this._collection$_rest; - if (rest == null) - return false; - hash = _this._computeHashCode$1(object); - bucket = rest[hash]; - index = _this._findBucketIndex$2(bucket, object); - if (index < 0) - return false; - cell = bucket.splice(index, 1)[0]; - if (0 === bucket.length) - delete rest[hash]; - _this._unlinkCell$1(cell); - return true; - }, - _collection$_addHashTableEntry$2(table, element) { - A._instanceType(this)._precomputed1._as(element); - if (type$.nullable__LinkedHashSetCell._as(table[element]) != null) + _collection$_addHashTableEntry$2(table, element) { + A._instanceType(this)._precomputed1._as(element); + if (type$.nullable__LinkedHashSetCell._as(table[element]) != null) return false; table[element] = this._collection$_newLinkedCell$1(element); return true; }, - _collection$_modified$0() { - this._collection$_modifications = this._collection$_modifications + 1 & 1073741823; - }, _collection$_newLinkedCell$1(element) { - var t1, _this = this, + var _this = this, cell = new A._LinkedHashSetCell(A._instanceType(_this)._precomputed1._as(element)); if (_this._collection$_first == null) _this._collection$_first = _this._collection$_last = cell; - else { - t1 = _this._collection$_last; - t1.toString; - cell._collection$_previous = t1; - _this._collection$_last = t1._collection$_next = cell; - } + else + _this._collection$_last = _this._collection$_last._collection$_next = cell; ++_this._collection$_length; - _this._collection$_modified$0(); + _this._collection$_modifications = _this._collection$_modifications + 1 & 1073741823; return cell; }, - _unlinkCell$1(cell) { - var _this = this, - previous = cell._collection$_previous, - next = cell._collection$_next; - if (previous == null) - _this._collection$_first = next; - else - previous._collection$_next = next; - if (next == null) - _this._collection$_last = previous; - else - next._collection$_previous = previous; - --_this._collection$_length; - _this._collection$_modified$0(); - }, _computeHashCode$1(element) { return J.get$hashCode$(element) & 1073741823; }, @@ -15517,7 +16132,7 @@ call$2(k, v) { this.result.$indexSet(0, this.K._as(k), this.V._as(v)); }, - $signature: 29 + $signature: 24 }; A.ListBase.prototype = { get$iterator(receiver) { @@ -15553,7 +16168,6 @@ return new A.MappedListIterable(receiver, t1._bind$1($T)._eval$1("1(ListBase.E)")._as(f), t1._eval$1("@")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, map$1(receiver, f) { - f.toString; return this.map$1$1(receiver, f, type$.dynamic); }, skip$1(receiver, count) { @@ -15650,9 +16264,9 @@ $isList: 1 }; A.MapBase.prototype = { - cast$2$0(_, RK, RV) { + cast$2$0(_, $RK, $RV) { var t1 = A._instanceType(this); - return A.Map_castFrom(this, t1._eval$1("MapBase.K"), t1._eval$1("MapBase.V"), RK, RV); + return A.Map_castFrom(this, t1._eval$1("MapBase.K"), t1._eval$1("MapBase.V"), $RK, $RV); }, forEach$1(_, action) { var t2, key, t3, @@ -15664,11 +16278,11 @@ action.call$2(key, t3 == null ? t1._as(t3) : t3); } }, - map$2$1(_, transform, K2, V2) { + map$2$1(_, transform, $K2, $V2) { var result, t2, key, t3, entry, t1 = A._instanceType(this); - t1._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(MapBase.K,MapBase.V)")._as(transform); - result = A.LinkedHashMap_LinkedHashMap$_empty(K2, V2); + t1._bind$1($K2)._bind$1($V2)._eval$1("MapEntry<1,2>(MapBase.K,MapBase.V)")._as(transform); + result = A.LinkedHashMap_LinkedHashMap$_empty($K2, $V2); for (t2 = this.get$keys(), t2 = t2.get$iterator(t2), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) { key = t2.get$current(); t3 = this.$index(0, key); @@ -15679,7 +16293,6 @@ }, map$1(_, transform) { var t1 = type$.dynamic; - transform.toString; return this.map$2$1(0, transform, t1, t1); }, containsKey$1(key) { @@ -15715,7 +16328,7 @@ t2 = A.S(v); t1._contents += t2; }, - $signature: 31 + $signature: 25 }; A._UnmodifiableMapMixin.prototype = { $indexSet(_, key, value) { @@ -15726,8 +16339,8 @@ } }; A.MapView.prototype = { - cast$2$0(_, RK, RV) { - return this._collection$_map.cast$2$0(0, RK, RV); + cast$2$0(_, $RK, $RV) { + return this._collection$_map.cast$2$0(0, $RK, $RV); }, $index(_, key) { return this._collection$_map.$index(0, key); @@ -15760,19 +16373,18 @@ toString$0(_) { return this._collection$_map.toString$0(0); }, - map$2$1(_, transform, K2, V2) { - return this._collection$_map.map$2$1(0, A._instanceType(this)._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), K2, V2); + map$2$1(_, transform, $K2, $V2) { + return this._collection$_map.map$2$1(0, A._instanceType(this)._bind$1($K2)._bind$1($V2)._eval$1("MapEntry<1,2>(3,4)")._as(transform), $K2, $V2); }, map$1(_, transform) { var t1 = type$.dynamic; - transform.toString; return this.map$2$1(0, transform, t1, t1); }, $isMap: 1 }; A.UnmodifiableMapView.prototype = { - cast$2$0(_, RK, RV) { - return new A.UnmodifiableMapView(this._collection$_map.cast$2$0(0, RK, RV), RK._eval$1("@<0>")._bind$1(RV)._eval$1("UnmodifiableMapView<1,2>")); + cast$2$0(_, $RK, $RV) { + return new A.UnmodifiableMapView(this._collection$_map.cast$2$0(0, $RK, $RV), $RK._eval$1("@<0>")._bind$1($RV)._eval$1("UnmodifiableMapView<1,2>")); } }; A.ListQueue.prototype = { @@ -15924,7 +16536,6 @@ return new A.EfficientLengthMappedIterable(this, t1._bind$1($T)._eval$1("1(2)")._as(f), t1._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>")); }, map$1(_, f) { - f.toString; return this.map$1$1(0, f, type$.dynamic); }, toString$0(_) { @@ -16240,7 +16851,7 @@ var result, t1 = this._processed; if (t1 == null) - return this._data.$index(0, key); + return this._convert$_data.$index(0, key); else if (typeof key != "string") return null; else { @@ -16249,7 +16860,7 @@ } }, get$length(_) { - return this._processed == null ? this._data.__js_helper$_length : this._convert$_computeKeys$0().length; + return this._processed == null ? this._convert$_data.__js_helper$_length : this._convert$_computeKeys$0().length; }, get$isEmpty(_) { return this.get$length(0) === 0; @@ -16259,7 +16870,7 @@ }, get$keys() { if (this._processed == null) { - var t1 = this._data; + var t1 = this._convert$_data; return new A.LinkedHashMapKeysIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeysIterable<1>")); } return new A._JsonMapKeyIterable(this); @@ -16268,7 +16879,7 @@ var processed, original, _this = this; A._asString(key); if (_this._processed == null) - _this._data.$indexSet(0, key, value); + _this._convert$_data.$indexSet(0, key, value); else if (_this.containsKey$1(key)) { processed = _this._processed; processed[key] = value; @@ -16280,7 +16891,7 @@ }, containsKey$1(key) { if (this._processed == null) - return this._data.containsKey$1(key); + return this._convert$_data.containsKey$1(key); if (typeof key != "string") return false; return Object.prototype.hasOwnProperty.call(this._original, key); @@ -16289,7 +16900,7 @@ var keys, i, key, value, _this = this; type$.void_Function_String_dynamic._as(f); if (_this._processed == null) - return _this._data.forEach$1(0, f); + return _this._convert$_data.forEach$1(0, f); keys = _this._convert$_computeKeys$0(); for (i = 0; i < keys.length; ++i) { key = keys[i]; @@ -16299,20 +16910,20 @@ _this._processed[key] = value; } f.call$2(key, value); - if (keys !== _this._data) + if (keys !== _this._convert$_data) throw A.wrapException(A.ConcurrentModificationError$(_this)); } }, _convert$_computeKeys$0() { - var keys = type$.nullable_List_dynamic._as(this._data); + var keys = type$.nullable_List_dynamic._as(this._convert$_data); if (keys == null) - keys = this._data = A._setArrayType(Object.keys(this._original), type$.JSArray_String); + keys = this._convert$_data = A._setArrayType(Object.keys(this._original), type$.JSArray_String); return keys; }, _upgrade$0() { var result, keys, i, t1, key, _this = this; if (_this._processed == null) - return _this._data; + return _this._convert$_data; result = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic); keys = _this._convert$_computeKeys$0(); for (i = 0; t1 = keys.length, i < t1; ++i) { @@ -16324,7 +16935,7 @@ else B.JSArray_methods.clear$0(keys); _this._original = _this._processed = null; - return _this._data = result; + return _this._convert$_data = result; }, _process$1(key) { var result; @@ -16375,7 +16986,7 @@ } return null; }, - $signature: 21 + $signature: 26 }; A._Utf8Decoder__decoderNonfatal_closure.prototype = { call$0() { @@ -16387,7 +16998,7 @@ } return null; }, - $signature: 21 + $signature: 26 }; A.AsciiCodec.prototype = { encode$1(source) { @@ -16893,7 +17504,7 @@ B.JSArray_methods.$indexSet(t1, t2.i++, key); B.JSArray_methods.$indexSet(t1, t2.i++, value); }, - $signature: 31 + $signature: 25 }; A._JsonStringStringifier.prototype = { get$_partialResult() { @@ -17172,7 +17783,7 @@ break; default: t3 = A.Primitives_stringFromCharCode(_65533); - buffer._contents = (buffer._contents += t3) + A.Primitives_stringFromCharCode(_65533); + buffer._contents = (buffer._contents += t3) + t3; break; } else { @@ -17583,7 +18194,7 @@ hash ^= hash >>> 11; return hash + ((hash & 16383) << 15) & 536870911; }, - $signature: 22 + $signature: 53 }; A.DateTime.prototype = { $eq(_, other) { @@ -17880,7 +18491,6 @@ return A.MappedIterable_MappedIterable(this, t1._bind$1($T)._eval$1("1(Iterable.E)")._as(toElement), t1._eval$1("Iterable.E"), $T); }, map$1(_, toElement) { - toElement.toString; return this.map$1$1(0, toElement, type$.dynamic); }, contains$1(_, element) { @@ -18002,13 +18612,13 @@ call$2(msg, position) { throw A.wrapException(A.FormatException$("Illegal IPv4 address, " + msg, this.host, position)); }, - $signature: 38 + $signature: 44 }; A.Uri_parseIPv6Address_error.prototype = { call$2(msg, position) { throw A.wrapException(A.FormatException$("Illegal IPv6 address, " + msg, this.host, position)); }, - $signature: 43 + $signature: 40 }; A.Uri_parseIPv6Address_parseHex.prototype = { call$2(start, end) { @@ -18028,7 +18638,7 @@ value = _this.___Uri__text_FI; if (value === $) { t1 = _this.scheme; - t2 = t1.length !== 0 ? "" + t1 + ":" : ""; + t2 = t1.length !== 0 ? t1 + ":" : ""; t3 = _this._host; t4 = t3 == null; if (!t4 || t1 === "file") { @@ -18050,7 +18660,6 @@ t2 = _this._fragment; if (t2 != null) t1 = t1 + "#" + t2; - value !== $ && A.throwLateFieldADI("_text"); value = _this.___Uri__text_FI = t1.charCodeAt(0) == 0 ? t1 : t1; } return value; @@ -18271,7 +18880,7 @@ A.throwExpression(A.UnsupportedError$(string$.Cannotn)); pathSegments = _this.get$pathSegments(); A._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false); - t1 = A.StringBuffer__writeAll(B.JSString_methods.startsWith$1(_this.path, "/") ? "" + "/" : "", pathSegments, "/"); + t1 = A.StringBuffer__writeAll(B.JSString_methods.startsWith$1(_this.path, "/") ? "/" : "", pathSegments, "/"); t1 = t1.charCodeAt(0) == 0 ? t1 : t1; return t1; }, @@ -18321,7 +18930,7 @@ call$1(s) { return A._Uri__uriEncode(64, A._asString(s), B.C_Utf8Codec, false); }, - $signature: 15 + $signature: 16 }; A.UriData.prototype = { get$uri() { @@ -18647,7 +19256,7 @@ var t1 = type$.JavaScriptFunction; this._this.then$1$2$onError(new A.FutureOfJSAnyToJSPromise_get_toJS__closure(t1._as(resolve)), new A.FutureOfJSAnyToJSPromise_get_toJS__closure0(t1._as(reject)), type$.nullable_Object); }, - $signature: 24 + $signature: 30 }; A.FutureOfJSAnyToJSPromise_get_toJS__closure.prototype = { call$1(value) { @@ -18660,7 +19269,7 @@ A.FutureOfJSAnyToJSPromise_get_toJS__closure0.prototype = { call$2(error, stackTrace) { var wrapper, box, t1; - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); wrapper = A.JSFunctionUnsafeUtilExtension_callAsConstructor(type$.JavaScriptFunction._as(init.G.Error), string$.Dart_e, type$.JSObject); if (type$.JavaScriptObject._is(error)) @@ -18673,26 +19282,26 @@ t1.call(t1, wrapper); return wrapper; }, - $signature: 51 + $signature: 39 }; A.FutureOfVoidToJSPromise_get_toJS_closure.prototype = { call$2(resolve, reject) { var t1 = type$.JavaScriptFunction; this._this.then$1$2$onError(new A.FutureOfVoidToJSPromise_get_toJS__closure(t1._as(resolve)), new A.FutureOfVoidToJSPromise_get_toJS__closure0(t1._as(reject)), type$.nullable_Object); }, - $signature: 24 + $signature: 30 }; A.FutureOfVoidToJSPromise_get_toJS__closure.prototype = { call$1(__wc0_formal) { var t1 = this.resolve; return t1.call(t1); }, - $signature: 53 + $signature: 38 }; A.FutureOfVoidToJSPromise_get_toJS__closure0.prototype = { call$2(error, stackTrace) { var wrapper, box, t1; - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); wrapper = A.JSFunctionUnsafeUtilExtension_callAsConstructor(type$.JavaScriptFunction._as(init.G.Error), string$.Dart_e, type$.JSObject); if (type$.JavaScriptObject._is(error)) @@ -18949,7 +19558,7 @@ }; A.StreamQueue__ensureListening_closure1.prototype = { call$2(error, stackTrace) { - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); this.$this._addResult$1(new A.ErrorResult(error, stackTrace)); }, @@ -19007,7 +19616,7 @@ call$2(h, i) { return A._combine(A._asInt(h), J.get$hashCode$(i)); }, - $signature: 62 + $signature: 37 }; A.BuiltList.prototype = { toBuilder$0() { @@ -19058,7 +19667,6 @@ return new A.MappedListIterable(t1, t2._bind$1($T)._eval$1("1(2)")._as(this.$ti._bind$1($T)._eval$1("1(2)")._as(f)), t2._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>")); }, map$1(_, f) { - f.toString; return this.map$1$1(0, f, type$.dynamic); }, contains$1(_, element) { @@ -19218,7 +19826,7 @@ call$1(k) { return this.multimap.$index(0, k); }, - $signature: 4 + $signature: 6 }; A.BuiltListMultimap_hashCode_closure.prototype = { call$1(key) { @@ -19375,7 +19983,7 @@ call$1(k) { return this.multimap.$index(0, k); }, - $signature: 4 + $signature: 6 }; A.BuiltMap.prototype = { toBuilder$0() { @@ -19442,7 +20050,7 @@ call$1(k) { return this.map.$index(0, k); }, - $signature: 4 + $signature: 6 }; A.BuiltMap_hashCode_closure.prototype = { call$1(key) { @@ -19560,7 +20168,7 @@ var t1 = this.$this.$ti; this.replacement.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value)); }, - $signature: 29 + $signature: 24 }; A.BuiltSet.prototype = { get$hashCode(_) { @@ -19609,7 +20217,6 @@ return new A.EfficientLengthMappedIterable(t1, t2._bind$1($T)._eval$1("1(2)")._as(this.$ti._bind$1($T)._eval$1("1(2)")._as(f)), t2._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>")); }, map$1(_, f) { - f.toString; return this.map$1$1(0, f, type$.dynamic); }, contains$1(_, element) { @@ -19925,7 +20532,7 @@ call$1(k) { return this.multimap.$index(0, k); }, - $signature: 4 + $signature: 6 }; A.EnumClass.prototype = { toString$0(_) { @@ -19934,14 +20541,13 @@ }; A.newBuiltValueToStringHelper_closure.prototype = { call$1(className) { - var t1 = new A.StringBuffer(""), - t2 = "" + className; - t1._contents = t2; - t1._contents = t2 + " {\n"; + var t1 = new A.StringBuffer(""); + t1._contents = className; + t1._contents = className + " {\n"; $._indentingBuiltValueToStringHelperIndent = $._indentingBuiltValueToStringHelperIndent + 2; return new A.IndentingBuiltValueToStringHelper(t1); }, - $signature: 64 + $signature: 84 }; A.IndentingBuiltValueToStringHelper.prototype = { add$2(_, field, value) { @@ -19949,8 +20555,7 @@ if (value != null) { t1 = this._result; t1.toString; - t2 = B.JSString_methods.$mul(" ", $._indentingBuiltValueToStringHelperIndent); - t2 = (t1._contents += t2) + field; + t2 = (t1._contents += B.JSString_methods.$mul(" ", $._indentingBuiltValueToStringHelperIndent)) + field; t1._contents = t2; t1._contents = t2 + "="; t2 = A.S(value); @@ -19963,9 +20568,8 @@ $._indentingBuiltValueToStringHelperIndent = t1; t2 = this._result; t2.toString; - t1 = B.JSString_methods.$mul(" ", t1); - t2._contents = (t2._contents += t1) + "}"; - stringResult = J.toString$0$(this._result); + t2._contents = (t2._contents += B.JSString_methods.$mul(" ", t1)) + "}"; + stringResult = t2.toString$0(0); this._result = null; return stringResult; } @@ -20074,34 +20678,34 @@ call$0() { return A.ListBuilder_ListBuilder(B.List_empty0, type$.Object); }, - $signature: 67 + $signature: 58 }; A.Serializers_Serializers_closure0.prototype = { call$0() { var t1 = type$.Object; return A.ListMultimapBuilder_ListMultimapBuilder(t1, t1); }, - $signature: 84 + $signature: 34 }; A.Serializers_Serializers_closure1.prototype = { call$0() { var t1 = type$.Object; return A.MapBuilder_MapBuilder(t1, t1); }, - $signature: 90 + $signature: 35 }; A.Serializers_Serializers_closure2.prototype = { call$0() { return A.SetBuilder_SetBuilder(type$.Object); }, - $signature: 107 + $signature: 36 }; A.Serializers_Serializers_closure3.prototype = { call$0() { var t1 = type$.Object; return A.SetMultimapBuilder_SetMultimapBuilder(t1, t1); }, - $signature: 36 + $signature: 92 }; A.FullType.prototype = { $eq(_, other) { @@ -20350,7 +20954,7 @@ if (builderFactory == null) this._throwMissingBuilderFactory$1(fullType); t1 = builderFactory.call$0(); - return t1 == null ? type$.Object._as(t1) : t1; + return t1 == null ? A._asObject(t1) : t1; }, _throwMissingBuilderFactory$1(fullType) { throw A.wrapException(A.StateError$("No builder factory for " + fullType.toString$0(0) + ". Fix by adding one, see SerializersBuilder.addBuilderFactory.")); @@ -20748,7 +21352,7 @@ throw A.wrapException(A.ArgumentError$("odd length", null)); for (t3 = result.$ti, t4 = t3._precomputed1, t5 = t3._rest[1], t6 = t3._eval$1("BuiltSet<2>"), t3 = t3._eval$1("Map<1,BuiltSet<2>>"), i = 0; i !== t2.get$length(serialized); i += 2) { key = serializers.deserialize$2$specifiedType(t2.elementAt$1(serialized, i), keyType); - for (t7 = J.get$iterator$ax(t1._as(J.map$1$ax(t2.elementAt$1(serialized, i + 1), new A.BuiltSetMultimapSerializer_deserialize_closure(serializers, valueType)))); t7.moveNext$0();) { + for (t7 = t1._as(J.map$1$ax(t2.elementAt$1(serialized, i + 1), new A.BuiltSetMultimapSerializer_deserialize_closure(serializers, valueType))), t7 = t7.get$iterator(t7); t7.moveNext$0();) { value = t7.get$current(); t4._as(key); t5._as(value); @@ -21042,6 +21646,143 @@ return "JsonObject"; } }; + A.ListSerializer.prototype = { + serialize$3$specifiedType(serializers, list, specifiedType) { + var t1, t2, elementType; + type$.List_dynamic._as(list); + if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) + serializers._throwMissingBuilderFactory$1(specifiedType); + t1 = specifiedType.parameters; + t2 = t1.length; + if (t2 === 0) + elementType = B.FullType_null_List_empty_false; + else { + if (0 >= t2) + return A.ioore(t1, 0); + elementType = t1[0]; + } + return J.map$1$1$ax(list, new A.ListSerializer_serialize_closure(serializers, elementType), type$.nullable_Object); + }, + serialize$2(serializers, list) { + return this.serialize$3$specifiedType(serializers, list, B.FullType_null_List_empty_false); + }, + deserialize$3$specifiedType(serializers, serialized, specifiedType) { + var isUnderspecified, t1, t2, elementType, result; + type$.Iterable_dynamic._as(serialized); + isUnderspecified = specifiedType.root == null || specifiedType.parameters.length === 0; + t1 = specifiedType.parameters; + t2 = t1.length; + if (t2 === 0) + elementType = B.FullType_null_List_empty_false; + else { + if (0 >= t2) + return A.ioore(t1, 0); + elementType = t1[0]; + } + result = isUnderspecified ? A._setArrayType([], type$.JSArray_Object) : type$.List_dynamic._as(serializers.newBuilder$1(specifiedType)); + for (t1 = J.get$iterator$ax(serialized), t2 = J.getInterceptor$ax(result); t1.moveNext$0();) + t2.add$1(result, serializers.deserialize$2$specifiedType(t1.get$current(), elementType)); + return result; + }, + deserialize$2(serializers, serialized) { + return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); + }, + $isSerializer: 1, + $isStructuredSerializer: 1, + get$types() { + return this.types; + }, + get$wireName() { + return "List"; + } + }; + A.ListSerializer_serialize_closure.prototype = { + call$1(item) { + return this.serializers.serialize$2$specifiedType(item, this.elementType); + }, + $signature: 3 + }; + A.MapSerializer.prototype = { + serialize$3$specifiedType(serializers, $Map, specifiedType) { + var t1, t2, t3, keyType, valueType, result, key; + type$.Map_dynamic_dynamic._as($Map); + if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) + serializers._throwMissingBuilderFactory$1(specifiedType); + t1 = specifiedType.parameters; + t2 = t1.length; + t3 = t2 === 0; + if (t3) + keyType = B.FullType_null_List_empty_false; + else { + if (0 >= t2) + return A.ioore(t1, 0); + keyType = t1[0]; + } + if (t3) + valueType = B.FullType_null_List_empty_false; + else { + if (1 >= t2) + return A.ioore(t1, 1); + valueType = t1[1]; + } + result = []; + for (t1 = $Map.get$keys(), t1 = t1.get$iterator(t1); t1.moveNext$0();) { + key = t1.get$current(); + result.push(serializers.serialize$2$specifiedType(key, keyType)); + result.push(serializers.serialize$2$specifiedType($Map.$index(0, key), valueType)); + } + return result; + }, + serialize$2(serializers, $Map) { + return this.serialize$3$specifiedType(serializers, $Map, B.FullType_null_List_empty_false); + }, + deserialize$3$specifiedType(serializers, serialized, specifiedType) { + var isUnderspecified, t1, t2, t3, keyType, valueType, result, i; + type$.Iterable_dynamic._as(serialized); + isUnderspecified = specifiedType.root == null || specifiedType.parameters.length === 0; + t1 = specifiedType.parameters; + t2 = t1.length; + t3 = t2 === 0; + if (t3) + keyType = B.FullType_null_List_empty_false; + else { + if (0 >= t2) + return A.ioore(t1, 0); + keyType = t1[0]; + } + if (t3) + valueType = B.FullType_null_List_empty_false; + else { + if (1 >= t2) + return A.ioore(t1, 1); + valueType = t1[1]; + } + if (isUnderspecified) { + t1 = type$.Object; + result = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1); + } else + result = type$.Map_dynamic_dynamic._as(serializers.newBuilder$1(specifiedType)); + t1 = J.getInterceptor$asx(serialized); + if (B.JSInt_methods.$mod(t1.get$length(serialized), 2) === 1) + throw A.wrapException(A.ArgumentError$("odd length", null)); + for (i = 0; i !== t1.get$length(serialized); i += 2) + result.$indexSet(0, serializers.deserialize$2$specifiedType(t1.elementAt$1(serialized, i), keyType), serializers.deserialize$2$specifiedType(t1.elementAt$1(serialized, i + 1), valueType)); + return result; + }, + deserialize$2(serializers, serialized) { + return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); + }, + $isSerializer: 1, + $isStructuredSerializer: 1, + get$types() { + return this.types; + }, + get$wireName() { + return "Map"; + } + }; A.NullSerializer.prototype = { serialize$3$specifiedType(serializers, value, specifiedType) { type$.Null._as(value); @@ -21123,6 +21864,63 @@ return "RegExp"; } }; + A.SetSerializer.prototype = { + serialize$3$specifiedType(serializers, set, specifiedType) { + var t1, t2, elementType; + type$.Set_dynamic._as(set); + if (!(specifiedType.root == null || specifiedType.parameters.length === 0)) + if (!serializers.builderFactories._map$_map.containsKey$1(specifiedType)) + serializers._throwMissingBuilderFactory$1(specifiedType); + t1 = specifiedType.parameters; + t2 = t1.length; + if (t2 === 0) + elementType = B.FullType_null_List_empty_false; + else { + if (0 >= t2) + return A.ioore(t1, 0); + elementType = t1[0]; + } + return set.map$1$1(0, new A.SetSerializer_serialize_closure(serializers, elementType), type$.nullable_Object); + }, + serialize$2(serializers, set) { + return this.serialize$3$specifiedType(serializers, set, B.FullType_null_List_empty_false); + }, + deserialize$3$specifiedType(serializers, serialized, specifiedType) { + var isUnderspecified, t1, t2, elementType, result; + type$.Iterable_dynamic._as(serialized); + isUnderspecified = specifiedType.root == null || specifiedType.parameters.length === 0; + t1 = specifiedType.parameters; + t2 = t1.length; + if (t2 === 0) + elementType = B.FullType_null_List_empty_false; + else { + if (0 >= t2) + return A.ioore(t1, 0); + elementType = t1[0]; + } + result = isUnderspecified ? A.LinkedHashSet_LinkedHashSet$_empty(type$.Object) : type$.Set_dynamic._as(serializers.newBuilder$1(specifiedType)); + for (t1 = J.get$iterator$ax(serialized); t1.moveNext$0();) + result.add$1(0, serializers.deserialize$2$specifiedType(t1.get$current(), elementType)); + return result; + }, + deserialize$2(serializers, serialized) { + return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); + }, + $isSerializer: 1, + $isStructuredSerializer: 1, + get$types() { + return this.types; + }, + get$wireName() { + return "Set"; + } + }; + A.SetSerializer_serialize_closure.prototype = { + call$1(item) { + return this.serializers.serialize$2$specifiedType(item, this.elementType); + }, + $signature: 3 + }; A.StringSerializer.prototype = { serialize$3$specifiedType(serializers, string, specifiedType) { return A._asString(string); @@ -21210,8 +22008,8 @@ addAll$1(_, other) { this.$ti._eval$1("Map")._as(other).forEach$1(0, new A.CanonicalizedMap_addAll_closure(this)); }, - cast$2$0(_, K2, V2) { - return this._base.cast$2$0(0, K2, V2); + cast$2$0(_, $K2, $V2) { + return this._base.cast$2$0(0, $K2, $V2); }, containsKey$1(key) { var _this = this; @@ -21237,12 +22035,11 @@ get$length(_) { return this._base.__js_helper$_length; }, - map$2$1(_, transform, K2, V2) { - return this._base.map$2$1(0, new A.CanonicalizedMap_map_closure(this, this.$ti._bind$1(K2)._bind$1(V2)._eval$1("MapEntry<1,2>(CanonicalizedMap.K,CanonicalizedMap.V)")._as(transform), K2, V2), K2, V2); + map$2$1(_, transform, $K2, $V2) { + return this._base.map$2$1(0, new A.CanonicalizedMap_map_closure(this, this.$ti._bind$1($K2)._bind$1($V2)._eval$1("MapEntry<1,2>(CanonicalizedMap.K,CanonicalizedMap.V)")._as(transform), $K2, $V2), $K2, $V2); }, map$1(_, transform) { var t1 = type$.dynamic; - transform.toString; return this.map$2$1(0, transform, t1, t1); }, toString$0(_) { @@ -23342,19 +24139,40 @@ return _this._hot_reload_response$_$v = _$result; } }; - A.IsolateExit.prototype = {}; - A.IsolateStart.prototype = {}; - A._$IsolateExitSerializer.prototype = { + A.HotRestartRequest.prototype = {}; + A._$HotRestartRequestSerializer.prototype = { serialize$3$specifiedType(serializers, object, specifiedType) { - type$.IsolateExit._as(object); - return []; + return ["id", serializers.serialize$2$specifiedType(type$.HotRestartRequest._as(object).id, B.FullType_PT1)]; }, serialize$2(serializers, object) { return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false); }, deserialize$3$specifiedType(serializers, serialized, specifiedType) { - type$.Iterable_nullable_Object._as(serialized); - return new A.IsolateExitBuilder()._isolate_events$_build$0(); + var t1, value, $$v, _$result, + result = new A.HotRestartRequestBuilder(), + iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); + for (; iterator.moveNext$0();) { + t1 = iterator.get$current(); + t1.toString; + A._asString(t1); + iterator.moveNext$0(); + value = iterator.get$current(); + switch (t1) { + case "id": + t1 = serializers.deserialize$2$specifiedType(value, B.FullType_PT1); + t1.toString; + A._asString(t1); + $$v = result._hot_restart_request$_$v; + if ($$v != null) { + result._hot_restart_request$_id = $$v.id; + result._hot_restart_request$_$v = null; + } + result._hot_restart_request$_id = t1; + break; + } + } + _$result = result._hot_restart_request$_$v; + return result._hot_restart_request$_$v = _$result == null ? new A._$HotRestartRequest(A.BuiltValueNullFieldError_checkNotNull(result.get$_hot_restart_request$_$this()._hot_restart_request$_id, "HotRestartRequest", "id", type$.String)) : _$result; }, deserialize$2(serializers, serialized) { return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); @@ -23362,16 +24180,182 @@ $isSerializer: 1, $isStructuredSerializer: 1, get$types() { - return B.List_MJN; + return B.List_9I1; }, get$wireName() { - return "IsolateExit"; + return "HotRestartRequest"; } }; - A._$IsolateStartSerializer.prototype = { - serialize$3$specifiedType(serializers, object, specifiedType) { - type$.IsolateStart._as(object); - return []; + A._$HotRestartRequest.prototype = { + $eq(_, other) { + if (other == null) + return false; + if (other === this) + return true; + return other instanceof A._$HotRestartRequest && this.id === other.id; + }, + get$hashCode(_) { + return A.$jf(A.$jc(0, B.JSString_methods.get$hashCode(this.id))); + }, + toString$0(_) { + var t1 = $.$get$newBuiltValueToStringHelper().call$1("HotRestartRequest"), + t2 = J.getInterceptor$ax(t1); + t2.add$2(t1, "id", this.id); + return t2.toString$0(t1); + } + }; + A.HotRestartRequestBuilder.prototype = { + set$id(id) { + this.get$_hot_restart_request$_$this()._hot_restart_request$_id = id; + }, + get$_hot_restart_request$_$this() { + var _this = this, + $$v = _this._hot_restart_request$_$v; + if ($$v != null) { + _this._hot_restart_request$_id = $$v.id; + _this._hot_restart_request$_$v = null; + } + return _this; + } + }; + A.HotRestartResponse.prototype = {}; + A._$HotRestartResponseSerializer.prototype = { + serialize$3$specifiedType(serializers, object, specifiedType) { + var result, value; + type$.HotRestartResponse._as(object); + result = ["id", serializers.serialize$2$specifiedType(object.id, B.FullType_PT1), "success", serializers.serialize$2$specifiedType(object.success, B.FullType_R6B)]; + value = object.errorMessage; + if (value != null) { + result.push("error"); + result.push(serializers.serialize$2$specifiedType(value, B.FullType_PT1)); + } + return result; + }, + serialize$2(serializers, object) { + return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false); + }, + deserialize$3$specifiedType(serializers, serialized, specifiedType) { + var t1, value, + result = new A.HotRestartResponseBuilder(), + iterator = J.get$iterator$ax(type$.Iterable_nullable_Object._as(serialized)); + for (; iterator.moveNext$0();) { + t1 = iterator.get$current(); + t1.toString; + A._asString(t1); + iterator.moveNext$0(); + value = iterator.get$current(); + switch (t1) { + case "id": + t1 = serializers.deserialize$2$specifiedType(value, B.FullType_PT1); + t1.toString; + A._asString(t1); + result.get$_hot_restart_response$_$this()._hot_restart_response$_id = t1; + break; + case "success": + t1 = serializers.deserialize$2$specifiedType(value, B.FullType_R6B); + t1.toString; + A._asBool(t1); + result.get$_hot_restart_response$_$this()._hot_restart_response$_success = t1; + break; + case "error": + t1 = A._asStringQ(serializers.deserialize$2$specifiedType(value, B.FullType_PT1)); + result.get$_hot_restart_response$_$this()._hot_restart_response$_errorMessage = t1; + break; + } + } + return result._hot_restart_response$_build$0(); + }, + deserialize$2(serializers, serialized) { + return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); + }, + $isSerializer: 1, + $isStructuredSerializer: 1, + get$types() { + return B.List_YhA; + }, + get$wireName() { + return "HotRestartResponse"; + } + }; + A._$HotRestartResponse.prototype = { + $eq(_, other) { + var _this = this; + if (other == null) + return false; + if (other === _this) + return true; + return other instanceof A._$HotRestartResponse && _this.id === other.id && _this.success === other.success && _this.errorMessage == other.errorMessage; + }, + get$hashCode(_) { + return A.$jf(A.$jc(A.$jc(A.$jc(0, B.JSString_methods.get$hashCode(this.id)), B.JSBool_methods.get$hashCode(this.success)), J.get$hashCode$(this.errorMessage))); + }, + toString$0(_) { + var t1 = $.$get$newBuiltValueToStringHelper().call$1("HotRestartResponse"), + t2 = J.getInterceptor$ax(t1); + t2.add$2(t1, "id", this.id); + t2.add$2(t1, "success", this.success); + t2.add$2(t1, "errorMessage", this.errorMessage); + return t2.toString$0(t1); + } + }; + A.HotRestartResponseBuilder.prototype = { + set$id(id) { + this.get$_hot_restart_response$_$this()._hot_restart_response$_id = id; + }, + set$success(success) { + this.get$_hot_restart_response$_$this()._hot_restart_response$_success = success; + }, + set$errorMessage(errorMessage) { + this.get$_hot_restart_response$_$this()._hot_restart_response$_errorMessage = errorMessage; + }, + get$_hot_restart_response$_$this() { + var _this = this, + $$v = _this._hot_restart_response$_$v; + if ($$v != null) { + _this._hot_restart_response$_id = $$v.id; + _this._hot_restart_response$_success = $$v.success; + _this._hot_restart_response$_errorMessage = $$v.errorMessage; + _this._hot_restart_response$_$v = null; + } + return _this; + }, + _hot_restart_response$_build$0() { + var _this = this, + _s18_ = "HotRestartResponse", + _$result = _this._hot_restart_response$_$v; + return _this._hot_restart_response$_$v = _$result == null ? new A._$HotRestartResponse(A.BuiltValueNullFieldError_checkNotNull(_this.get$_hot_restart_response$_$this()._hot_restart_response$_id, _s18_, "id", type$.String), A.BuiltValueNullFieldError_checkNotNull(_this.get$_hot_restart_response$_$this()._hot_restart_response$_success, _s18_, "success", type$.bool), _this.get$_hot_restart_response$_$this()._hot_restart_response$_errorMessage) : _$result; + } + }; + A.IsolateExit.prototype = {}; + A.IsolateStart.prototype = {}; + A._$IsolateExitSerializer.prototype = { + serialize$3$specifiedType(serializers, object, specifiedType) { + type$.IsolateExit._as(object); + return []; + }, + serialize$2(serializers, object) { + return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false); + }, + deserialize$3$specifiedType(serializers, serialized, specifiedType) { + type$.Iterable_nullable_Object._as(serialized); + return new A.IsolateExitBuilder()._isolate_events$_build$0(); + }, + deserialize$2(serializers, serialized) { + return this.deserialize$3$specifiedType(serializers, serialized, B.FullType_null_List_empty_false); + }, + $isSerializer: 1, + $isStructuredSerializer: 1, + get$types() { + return B.List_MJN; + }, + get$wireName() { + return "IsolateExit"; + } + }; + A._$IsolateStartSerializer.prototype = { + serialize$3$specifiedType(serializers, object, specifiedType) { + type$.IsolateStart._as(object); + return []; }, serialize$2(serializers, object) { return this.serialize$3$specifiedType(serializers, object, B.FullType_null_List_empty_false); @@ -23596,13 +24580,13 @@ call$0() { return A.ListBuilder_ListBuilder(B.List_empty0, type$.DebugEvent); }, - $signature: 40 + $signature: 41 }; A._$serializers_closure0.prototype = { call$0() { return A.ListBuilder_ListBuilder(B.List_empty0, type$.ExtensionEvent); }, - $signature: 41 + $signature: 42 }; A.ServiceExtensionRequest.prototype = {}; A._$ServiceExtensionRequestSerializer.prototype = { @@ -23722,7 +24706,7 @@ b.get$_service_extension_response$_$this()._service_extension_response$_errorMessage = _this.errorMessage; return b; }, - $signature: 42 + $signature: 43 }; A._$ServiceExtensionResponseSerializer.prototype = { serialize$3$specifiedType(serializers, object, specifiedType) { @@ -23870,7 +24854,7 @@ _batchAndSendEvents$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$self = this, t2, t3, t4, t5, t6, t7, t8, lastSendTime0, lastEvent, duration, t1, buffer, lastSendTime, $async$temp1, $async$temp2; + $async$self = this, t2, t3, t4, t5, t6, t7, t8, now, lastEvent, duration, t1, buffer, lastSendTime, $async$temp1, $async$temp2; var $async$_batchAndSendEvents$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -23882,7 +24866,7 @@ t1 = $async$self.$ti; buffer = A._setArrayType([], t1._eval$1("JSArray<1>")); lastSendTime = Date.now(); - t2 = $async$self._batchDelayMilliseconds, t3 = $async$self._outputController, t4 = A._instanceType(t3), t1 = t1._precomputed1, t5 = t4._precomputed1, t4 = t4._eval$1("_DelayedData<1>"); + t2 = $async$self._batchDelayMilliseconds, t3 = $async$self._outputController, t4 = A._instanceType(t3), t1 = t1._precomputed1, t5 = t4._eval$1("_DelayedData<1>"); case 2: // for condition $async$goto = 4; @@ -23916,11 +24900,11 @@ $async$temp1.add$1($async$temp2, $async$result); case 6: // join - lastSendTime0 = Date.now(); - if (lastSendTime0 > lastSendTime + t2) { + now = Date.now(); + if (now > lastSendTime + t2) { if (buffer.length !== 0) { t6 = A.List_List$_of(buffer, t1); - t5._as(t6); + t4._precomputed1._as(t6); t7 = t3._state; if (t7 >= 4) A.throwExpression(t3._badEventState$0()); @@ -23928,7 +24912,7 @@ t3._sendData$1(t6); else if ((t7 & 3) === 0) { t7 = t3._ensurePendingEvents$0(); - t6 = new A._DelayedData(t6, t4); + t6 = new A._DelayedData(t6, t5); lastEvent = t7.lastPendingEvent; if (lastEvent == null) t7.firstPendingEvent = t7.lastPendingEvent = t6; @@ -23939,7 +24923,7 @@ } B.JSArray_methods.clear$0(buffer); } - lastSendTime = lastSendTime0; + lastSendTime = now; } // goto for condition $async$goto = 2; @@ -23948,7 +24932,7 @@ // after for if (buffer.length !== 0) { t1 = A.List_List$_of(buffer, t1); - t3.add$1(0, t5._as(t1)); + t3.add$1(0, t4._precomputed1._as(t1)); } $async$self._completer.complete$1(true); // implicit return @@ -23972,13 +24956,13 @@ call$0() { return true; }, - $signature: 26 + $signature: 29 }; A.BatchedStreamController__hasEventDuring_closure.prototype = { call$0() { return false; }, - $signature: 26 + $signature: 29 }; A.SocketClient.prototype = {}; A.SseSocketClient.prototype = { @@ -24001,7 +24985,6 @@ t2 === $ && A.throwLateFieldNI("_foreign"); t2 = t2.__GuaranteeChannel__sink_F; t2 === $ && A.throwLateFieldNI("_sink"); - value !== $ && A.throwLateFieldADI("sink"); value = t1.__AdapterWebSocketChannel_sink_FI = new A._WebSocketSink(t1, t2); } return value; @@ -24020,14 +25003,14 @@ call$1(o) { return J.toString$0$(o); }, - $signature: 44 + $signature: 45 }; A.safeUnawaited_closure.prototype = { call$2(error, stackTrace) { type$.StackTrace._as(stackTrace); return $.$get$_logger().log$4(B.Level_WARNING_900, "Error in unawaited Future:", error, stackTrace); }, - $signature: 25 + $signature: 21 }; A.Int32.prototype = { _toInt$1(val) { @@ -24153,9 +25136,6 @@ A._StackState.prototype = {}; A.BaseClient.prototype = { _sendUnstreamed$3(method, url, headers) { - return this._sendUnstreamed$body$BaseClient(method, url, headers); - }, - _sendUnstreamed$body$BaseClient(method, url, headers) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Response), $async$returnValue, $async$self = this, request, $async$temp1; @@ -24199,19 +25179,24 @@ call$2(key1, key2) { return A._asString(key1).toLowerCase() === A._asString(key2).toLowerCase(); }, - $signature: 45 + $signature: 46 }; A.BaseRequest_closure0.prototype = { call$1(key) { return B.JSString_methods.get$hashCode(A._asString(key).toLowerCase()); }, - $signature: 46 + $signature: 47 }; A.BaseResponse.prototype = { BaseResponse$7$contentLength$headers$isRedirect$persistentConnection$reasonPhrase$request(statusCode, contentLength, headers, isRedirect, persistentConnection, reasonPhrase, request) { var t1 = this.statusCode; if (t1 < 100) throw A.wrapException(A.ArgumentError$("Invalid status code " + t1 + ".", null)); + else { + t1 = this.contentLength; + if (t1 != null && t1 < 0) + throw A.wrapException(A.ArgumentError$("Invalid content length " + A.S(t1) + ".", null)); + } } }; A.BrowserClient.prototype = { @@ -24221,7 +25206,7 @@ send$body$BrowserClient(request) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.StreamedResponse), - $async$returnValue, $async$handler = 2, $async$errorStack = [], $async$next = [], $async$self = this, xhr, completer, bytes, t1, t2, header, t3; + $async$returnValue, $async$handler = 2, $async$errorStack = [], $async$self = this, bodyBytes, t1, _0_0, contentLength, header, response, contentLengthHeader, contentLength0, headers, e, st, t2, t3, _this, t4, t5, t6, t7, result, exception, $async$exception; var $async$send$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) { $async$errorStack.push($async$result); @@ -24232,54 +25217,93 @@ case 0: // Function start request.super$BaseRequest$finalize(); + t2 = type$._AsyncStreamController_List_int; + t3 = new A._AsyncStreamController(null, null, null, null, t2); + t3._add$1(request._bodyBytes); + t3._closeUnchecked$0(); $async$goto = 3; - return A._asyncAwait(new A.ByteStream(A.Stream_Stream$value(request._bodyBytes, type$.List_int)).toBytes$0(), $async$send$1); + return A._asyncAwait(new A.ByteStream(new A._ControllerStream(t3, t2._eval$1("_ControllerStream<1>"))).toBytes$0(), $async$send$1); case 3: // returning from await. - bytes = $async$result; - xhr = type$.JSObject._as(new init.G.XMLHttpRequest()); - t1 = $async$self._xhrs; - t1.add$1(0, xhr); - t2 = xhr; - t2.open(request.method, request.url.toString$0(0), true); - t2.responseType = "arraybuffer"; - t2.withCredentials = $async$self.withCredentials; - for (t2 = request.headers, t2 = new A.LinkedHashMapEntriesIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapEntriesIterable<1,2>")).get$iterator(0); t2.moveNext$0();) { - header = t2.__js_helper$_current; - xhr.setRequestHeader(header.key, header.value); + bodyBytes = $async$result; + $async$handler = 5; + t2 = request.url; + _this = t2.toString$0(0); + t3 = !J.get$isEmpty$asx(bodyBytes) ? bodyBytes : null; + t4 = $async$self.withCredentials ? "include" : "same-origin"; + t5 = type$.String; + t1 = A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.Object); + _0_0 = request._bodyBytes.length; + contentLength = null; + if (_0_0 != null) { + contentLength = _0_0; + J.$indexSet$ax(t1, "content-length", contentLength); } - completer = new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_StreamedResponse), type$._AsyncCompleter_StreamedResponse); - t2 = type$._EventStream_JSObject; - t3 = type$.void; - new A._EventStream(xhr, "load", false, t2).get$first(0).then$1$1(new A.BrowserClient_send_closure(xhr, completer, request), t3); - new A._EventStream(xhr, "error", false, t2).get$first(0).then$1$1(new A.BrowserClient_send_closure0(completer, request), t3); - xhr.send(bytes); - $async$handler = 4; - $async$goto = 7; - return A._asyncAwait(completer.future, $async$send$1); - case 7: + for (t6 = request.headers, t6 = new A.LinkedHashMapEntriesIterable(t6, A._instanceType(t6)._eval$1("LinkedHashMapEntriesIterable<1,2>")).get$iterator(0); t6.moveNext$0();) { + t7 = t6.__js_helper$_current; + t7.toString; + header = t7; + J.$indexSet$ax(t1, header.key, header.value); + } + t1 = A.jsify(t1); + t1.toString; + A._asJSObject(t1); + t6 = A._asJSObject($async$self._abortController.signal); + $async$goto = 8; + return A._asyncAwait(A.promiseToFuture(A._asJSObject(init.G.fetch(_this, {method: request.method, headers: t1, body: t3, credentials: t4, redirect: "follow", signal: t6})), type$.JSObject), $async$send$1); + case 8: // returning from await. - t2 = $async$result; - $async$returnValue = t2; - $async$next = [1]; - // goto finally - $async$goto = 5; + response = $async$result; + contentLengthHeader = A._asStringQ(A._asJSObject(response.headers).get("content-length")); + contentLength0 = contentLengthHeader != null ? A.Primitives_parseInt(contentLengthHeader, null) : null; + if (contentLength0 == null && contentLengthHeader != null) { + t1 = A.ClientException$("Invalid content-length header [" + contentLengthHeader + "].", t2); + throw A.wrapException(t1); + } + headers = A.LinkedHashMap_LinkedHashMap$_empty(t5, t5); + t1 = A._asJSObject(response.headers); + t2 = new A.BrowserClient_send_closure(headers); + if (typeof t2 == "function") + A.throwExpression(A.ArgumentError$("Attempting to rewrap a JS function.", null)); + result = function(_call, f) { + return function(arg1, arg2, arg3) { + return _call(f, arg1, arg2, arg3, arguments.length); + }; + }(A._callDartFunctionFast3, t2); + result[$.$get$DART_CLOSURE_PROPERTY_NAME()] = t2; + t1.forEach(result); + t1 = A._readBody(request, response); + t2 = A._asInt(response.status); + t3 = headers; + t4 = contentLength0; + A.Uri_parse(A._asString(response.url)); + t5 = A._asString(response.statusText); + t1 = new A.StreamedResponseV2(A.toByteStream(t1), request, t2, t5, t4, t3, false, true); + t1.BaseResponse$7$contentLength$headers$isRedirect$persistentConnection$reasonPhrase$request(t2, t4, t3, false, true, t5, request); + $async$returnValue = t1; + // goto return + $async$goto = 1; break; - $async$next.push(6); - // goto finally - $async$goto = 5; + $async$handler = 2; + // goto after finally + $async$goto = 7; + break; + case 5: + // catch + $async$handler = 4; + $async$exception = $async$errorStack.pop(); + e = A.unwrapException($async$exception); + st = A.getTraceFromException($async$exception); + A._rethrowAsClientException(e, st, request); + // goto after finally + $async$goto = 7; break; case 4: // uncaught - $async$next = [2]; - case 5: - // finally - $async$handler = 2; - t1.remove$1(0, xhr); - // goto the next finally handler - $async$goto = $async$next.pop(); + // goto rethrow + $async$goto = 2; break; - case 6: + case 7: // after finally case 1: // return @@ -24293,42 +25317,32 @@ } }; A.BrowserClient_send_closure.prototype = { + call$3(value, header, _) { + A._asString(value); + this.headers.$indexSet(0, A._asString(header).toLowerCase(), value); + }, + call$2(value, header) { + return this.call$3(value, header, null); + }, + "call*": "call$3", + $requiredArgCount: 2, + $defaultValues() { + return [null]; + }, + $signature: 48 + }; + A._readBody_closure.prototype = { call$1(_) { - var t1, _0_0, t2, body, responseUrl, t3, t4, t5, t6, _this = this; - type$.JSObject._as(_); - t1 = _this.xhr; - _0_0 = A._extension_0_get_responseHeaders(t1).$index(0, "content-length"); - t2 = false; - if (_0_0 != null) { - t2 = $.$get$_digitRegex(); - t2 = !t2._nativeRegExp.test(_0_0); - } - if (t2) { - _this.completer.completeError$1(new A.ClientException("Invalid content-length header [" + _0_0 + "].", _this.request.url)); - return; - } - body = A.NativeUint8List_NativeUint8List$view(type$.NativeByteBuffer._as(t1.response), 0, null); - responseUrl = A._asString(t1.responseURL); - if (responseUrl.length !== 0) - A.Uri_parse(responseUrl); - t2 = A.Stream_Stream$value(body, type$.List_int); - t3 = A._asInt(t1.status); - t4 = body.length; - t5 = _this.request; - t6 = A._extension_0_get_responseHeaders(t1); - t1 = A._asString(t1.statusText); - t2 = new A.StreamedResponseV2(A.toByteStream(new A.ByteStream(t2)), t5, t3, t1, t4, t6, false, true); - t2.BaseResponse$7$contentLength$headers$isRedirect$persistentConnection$reasonPhrase$request(t3, t4, t6, false, true, t1, t5); - _this.completer.complete$1(t2); + return null; }, - $signature: 8 + $signature: 4 }; - A.BrowserClient_send_closure0.prototype = { + A._readBody_closure0.prototype = { call$1(_) { - type$.JSObject._as(_); - this.completer.completeError$2(new A.ClientException("XMLHttpRequest error.", this.request.url), A.StackTrace_current()); + A._asObject(_); + return this._box_0.isError; }, - $signature: 8 + $signature: 49 }; A.ByteStream.prototype = { toBytes$0() { @@ -24343,7 +25357,7 @@ call$1(bytes) { return this.completer.complete$1(new Uint8Array(A._ensureNativeList(type$.List_int._as(bytes)))); }, - $signature: 48 + $signature: 50 }; A.ClientException.prototype = { toString$0(_) { @@ -24360,7 +25374,7 @@ A.MediaType.prototype = { toString$0(_) { var buffer = new A.StringBuffer(""), - t1 = "" + this.type; + t1 = this.type; buffer._contents = t1; t1 += "/"; buffer._contents = t1; @@ -24431,7 +25445,7 @@ scanner.expectDone$0(); return A.MediaType$(t4, t5, parameters); }, - $signature: 35 + $signature: 51 }; A.MediaType_toString_closure.prototype = { call$2(attribute, value) { @@ -24450,7 +25464,7 @@ } else t1._contents = t3 + value; }, - $signature: 50 + $signature: 52 }; A.MediaType_toString__closure.prototype = { call$1(match) { @@ -24553,7 +25567,7 @@ $parent._children.$indexSet(0, thisName, t1); return t1; }, - $signature: 52 + $signature: 54 }; A.Context.prototype = { absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) { @@ -24587,10 +25601,10 @@ parsed.root = t4; if (t2.needsSeparator$1(t4)) B.JSArray_methods.$indexSet(parsed.separators, 0, t2.get$separator()); - t4 = "" + parsed.toString$0(0); + t4 = parsed.toString$0(0); } else if (t2.rootLength$1(t5) > 0) { isAbsoluteAndNotRootRelative = !t2.isRootRelative$1(t5); - t4 = "" + t5; + t4 = t5; } else { t6 = t5.length; if (t6 !== 0) { @@ -24629,7 +25643,7 @@ return parsed.toString$0(0); }, _needsNormalization$1(path) { - var t2, i, start, previous, t3, previousPrevious, codeUnit, t4, + var t2, i, start, previous, previousPrevious, codeUnit, t3, t1 = this.style, root = t1.rootLength$1(path); if (root !== 0) { @@ -24646,20 +25660,20 @@ start = 0; previous = null; } - for (t2 = new A.CodeUnits(path).__internal$_string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) { + for (t2 = path.length, i = start, previousPrevious = null; i < t2; ++i, previousPrevious = previous, previous = codeUnit) { if (!(i >= 0)) - return A.ioore(t2, i); - codeUnit = t2.charCodeAt(i); + return A.ioore(path, i); + codeUnit = path.charCodeAt(i); if (t1.isSeparator$1(codeUnit)) { if (t1 === $.$get$Style_windows() && codeUnit === 47) return true; if (previous != null && t1.isSeparator$1(previous)) return true; if (previous === 46) - t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious); + t3 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious); else - t4 = false; - if (t4) + t3 = false; + if (t3) return true; } } @@ -24756,7 +25770,7 @@ t2 = t1.length; if (t2 === 0) return "."; - if (t2 > 1 && J.$eq$(B.JSArray_methods.get$last(t1), ".")) { + if (t2 > 1 && B.JSArray_methods.get$last(t1) === ".") { B.JSArray_methods.removeLast$0(pathParsed.parts); t1 = pathParsed.separators; if (0 >= t1.length) @@ -24787,20 +25801,20 @@ call$1(part) { return A._asString(part) !== ""; }, - $signature: 20 + $signature: 22 }; A.Context_split_closure.prototype = { call$1(part) { return A._asString(part).length !== 0; }, - $signature: 20 + $signature: 22 }; A._validateArgList_closure.prototype = { call$1(arg) { A._asStringQ(arg); return arg == null ? "null" : '"' + arg + '"'; }, - $signature: 54 + $signature: 56 }; A.InternalStyle.prototype = { getRoot$1(path) { @@ -24825,7 +25839,7 @@ var t1, t2, _this = this; while (true) { t1 = _this.parts; - if (!(t1.length !== 0 && J.$eq$(B.JSArray_methods.get$last(t1), ""))) + if (!(t1.length !== 0 && B.JSArray_methods.get$last(t1) === "")) break; B.JSArray_methods.removeLast$0(_this.parts); t1 = _this.separators; @@ -24873,13 +25887,13 @@ toString$0(_) { var t2, t3, t4, t5, i, t1 = this.root; - t1 = t1 != null ? "" + t1 : ""; + t1 = t1 != null ? t1 : ""; for (t2 = this.parts, t3 = t2.length, t4 = this.separators, t5 = t4.length, i = 0; i < t3; ++i) { if (!(i < t5)) return A.ioore(t4, i); t1 = t1 + t4[i] + t2[i]; } - t1 += A.S(B.JSArray_methods.get$last(t4)); + t1 += B.JSArray_methods.get$last(t4); return t1.charCodeAt(0) == 0 ? t1 : t1; }, set$parts(parts) { @@ -25254,11 +26268,11 @@ var t1 = this.$this; t1._onReleaseCompleters.removeFirst$0().complete$1(new A.PoolResource(t1)); }, - $signature: 6 + $signature: 4 }; A.Pool__runOnRelease_closure0.prototype = { call$2(error, stackTrace) { - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); this.$this._onReleaseCompleters.removeFirst$0().completeError$2(error, stackTrace); }, @@ -25631,10 +26645,9 @@ t4 = t1.__internal$_current; if (t4 == null) t4 = t2._as(t4); - if (t4 === 9) { - t4 = B.JSString_methods.$mul(" ", 4); - t3._contents += t4; - } else { + if (t4 === 9) + t3._contents += B.JSString_methods.$mul(" ", 4); + else { t4 = A.Primitives_stringFromCharCode(t4); t3._contents += t4; } @@ -25695,7 +26708,7 @@ call$0() { return this.color; }, - $signature: 55 + $signature: 57 }; A.Highlighter$__closure.prototype = { call$1(line) { @@ -25703,34 +26716,34 @@ t2 = A._arrayInstanceType(t1); return new A.WhereIterable(t1, t2._eval$1("bool(1)")._as(new A.Highlighter$___closure()), t2._eval$1("WhereIterable<1>")).get$length(0); }, - $signature: 56 + $signature: 33 }; A.Highlighter$___closure.prototype = { call$1(highlight) { var t1 = type$._Highlight._as(highlight).span; return t1.get$start().get$line() !== t1.get$end().get$line(); }, - $signature: 19 + $signature: 17 }; A.Highlighter$__closure0.prototype = { call$1(line) { return type$._Line._as(line).url; }, - $signature: 58 + $signature: 60 }; A.Highlighter__collateLines_closure.prototype = { call$1(highlight) { var t1 = type$._Highlight._as(highlight).span.get$sourceUrl(); return t1 == null ? new A.Object() : t1; }, - $signature: 59 + $signature: 61 }; A.Highlighter__collateLines_closure0.prototype = { call$2(highlight1, highlight2) { var t1 = type$._Highlight; return t1._as(highlight1).span.compareTo$1(0, t1._as(highlight2).span); }, - $signature: 60 + $signature: 62 }; A.Highlighter__collateLines_closure1.prototype = { call$1(entry) { @@ -25773,26 +26786,24 @@ } return lines; }, - $signature: 61 + $signature: 63 }; A.Highlighter__collateLines__closure.prototype = { call$1(highlight) { return type$._Highlight._as(highlight).span.get$end().get$line() < this.line.number; }, - $signature: 19 + $signature: 17 }; A.Highlighter_highlight_closure.prototype = { call$1(highlight) { type$._Highlight._as(highlight); return true; }, - $signature: 19 + $signature: 17 }; A.Highlighter__writeFileStart_closure.prototype = { call$0() { - var t1 = this.$this._buffer, - t2 = B.JSString_methods.$mul("\u2500", 2) + ">"; - t1._contents += t2; + this.$this._buffer._contents += B.JSString_methods.$mul("\u2500", 2) + ">"; return null; }, $signature: 0 @@ -25882,12 +26893,11 @@ tabsBefore = t1._countTabs$1(B.JSString_methods.substring$2(t4, 0, startColumn)); tabsInside = t1._countTabs$1(B.JSString_methods.substring$2(t4, startColumn, endColumn)); startColumn += tabsBefore * 3; - t4 = B.JSString_methods.$mul(" ", startColumn); - t2._contents += t4; - t4 = B.JSString_methods.$mul("^", Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1)); - return (t2._contents += t4).length - t3.length; + t4 = (t2._contents += B.JSString_methods.$mul(" ", startColumn)) + B.JSString_methods.$mul("^", Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1)); + t2._contents = t4; + return t4.length - t3.length; }, - $signature: 30 + $signature: 23 }; A.Highlighter__writeIndicator_closure0.prototype = { call$0() { @@ -25901,14 +26911,13 @@ t1 = _this.$this, t2 = t1._buffer, t3 = t2._contents; - if (_this.coversWholeLine) { - t1 = B.JSString_methods.$mul("\u2500", 3); - t2._contents += t1; - } else + if (_this.coversWholeLine) + t2._contents = t3 + B.JSString_methods.$mul("\u2500", 3); + else t1._writeArrow$3$beginning(_this.line, Math.max(_this.highlight.span.get$end().get$column() - 1, 0), false); return t2._contents.length - t3.length; }, - $signature: 30 + $signature: 23 }; A.Highlighter__writeSidebar_closure.prototype = { call$0() { @@ -25927,7 +26936,7 @@ A._Highlight.prototype = { toString$0(_) { var t1 = this.span; - t1 = "" + "primary " + ("" + t1.get$start().get$line() + ":" + t1.get$start().get$column() + "-" + t1.get$end().get$line() + ":" + t1.get$end().get$column()); + t1 = "primary " + ("" + t1.get$start().get$line() + ":" + t1.get$start().get$column() + "-" + t1.get$end().get$line() + ":" + t1.get$end().get$column()); return t1.charCodeAt(0) == 0 ? t1 : t1; } }; @@ -25944,7 +26953,7 @@ } return A._Highlight__normalizeEndOfLine(A._Highlight__normalizeTrailingNewline(A._Highlight__normalizeNewlines(newSpan))); }, - $signature: 63 + $signature: 65 }; A._Line.prototype = { toString$0(_) { @@ -26064,7 +27073,7 @@ toString$0(_) { var t3, t4, highlight, t1 = this._span, - t2 = "" + ("line " + (t1.get$start().get$line() + 1) + ", column " + (t1.get$start().get$column() + 1)); + t2 = "line " + (t1.get$start().get$line() + 1) + ", column " + (t1.get$start().get$column() + 1); if (t1.get$sourceUrl() != null) { t3 = t1.get$sourceUrl(); t4 = $.$get$context(); @@ -26134,13 +27143,13 @@ var t2, _this = this, t1 = serverUrl + "?sseClientId=" + _this._clientId; _this.__SseClient__serverUrl_A = t1; - t2 = type$.JSObject; - t1 = t2._as(new init.G.EventSource(t1, {withCredentials: true})); + t1 = A._asJSObject(new init.G.EventSource(t1, {withCredentials: true})); _this.__SseClient__eventSource_A = t1; new A._EventStream(t1, "open", false, type$._EventStream_JSObject).get$first(0).whenComplete$1(new A.SseClient_closure(_this)); _this.__SseClient__eventSource_A.addEventListener("message", A._functionToJS1(_this.get$_onIncomingMessage())); _this.__SseClient__eventSource_A.addEventListener("control", A._functionToJS1(_this.get$_onIncomingControlMessage())); t1 = type$.nullable_void_Function_JSObject; + t2 = type$.JSObject; A._EventStreamSubscription$(_this.__SseClient__eventSource_A, "open", t1._as(new A.SseClient_closure0(_this)), false, t2); A._EventStreamSubscription$(_this.__SseClient__eventSource_A, "error", t1._as(new A.SseClient_closure1(_this)), false, t2); }, @@ -26165,14 +27174,14 @@ t1.completeError$1(error); }, _onIncomingControlMessage$1(message) { - var data = type$.JSObject._as(message).data; + var data = A._asJSObject(message).data; if (J.$eq$(A.dartify(data), "close")) this.close$0(); else throw A.wrapException(A.UnsupportedError$("[" + this._clientId + '] Illegal Control Message "' + A.S(data) + '"')); }, _onIncomingMessage$1(message) { - this._incomingController.add$1(0, A._asString(B.C_JsonCodec.decode$2$reviver(A._asString(type$.JSObject._as(message).data), null))); + this._incomingController.add$1(0, A._asString(B.C_JsonCodec.decode$2$reviver(A._asString(A._asJSObject(message).data), null))); }, _onOutgoingDone$0() { this.close$0(); @@ -26276,9 +27285,8 @@ if (t1 == null) t1 = null; t1 = {method: "POST", body: t1, credentials: "include"}; - t2 = type$.JSObject; $async$goto = 6; - return A._asyncAwait(A.promiseToFuture(t2._as(t2._as(init.G.window).fetch(url, t1)), t2), $async$call$0); + return A._asyncAwait(A.promiseToFuture(A._asJSObject(A._asJSObject(init.G.window).fetch(url, t1)), type$.JSObject), $async$call$0); case 6: // returning from await. $async$handler = 1; @@ -26313,25 +27321,7 @@ }); return A._asyncStartSync($async$call$0, $async$completer); }, - $signature: 66 - }; - A.generateUuidV4_generateBits.prototype = { - call$1(bitCount) { - return this.random.nextInt$1(B.JSInt_methods._shlPositive$1(1, bitCount)); - }, - $signature: 22 - }; - A.generateUuidV4_printDigits.prototype = { - call$2(value, count) { - return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(value, 16), count, "0"); - }, - $signature: 32 - }; - A.generateUuidV4_bitsDigits.prototype = { - call$2(bitCount, digitCount) { - return this.printDigits.call$2(this.generateBits.call$1(bitCount), digitCount); - }, - $signature: 32 + $signature: 68 }; A.GuaranteeChannel.prototype = { GuaranteeChannel$3$allowSinkErrors(innerSink, allowSinkErrors, _box_0, $T) { @@ -26340,7 +27330,7 @@ t2 = t1._eval$1("_GuaranteeSink<1>")._as(new A._GuaranteeSink(innerSink, _this, new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_void), type$._AsyncCompleter_void), allowSinkErrors, $T._eval$1("_GuaranteeSink<0>"))); _this.__GuaranteeChannel__sink_F !== $ && A.throwLateFieldAI("_sink"); _this.__GuaranteeChannel__sink_F = t2; - t1 = t1._eval$1("StreamController<1>")._as(A.StreamController_StreamController(null, new A.GuaranteeChannel_closure(_box_0, _this, $T), true, $T)); + t1 = t1._eval$1("StreamController<1>")._as(A.StreamController_StreamController(null, new A.GuaranteeChannel_closure(_box_0, _this, $T), null, true, $T)); _this.__GuaranteeChannel__streamController_F !== $ && A.throwLateFieldAI("_streamController"); _this.__GuaranteeChannel__streamController_F = t1; }, @@ -26435,7 +27425,7 @@ A._GuaranteeSink__addError_closure.prototype = { call$1(_) { }, - $signature: 6 + $signature: 4 }; A.StreamChannelController.prototype = {}; A.StreamChannelMixin.prototype = {$isStreamChannel: 1}; @@ -26509,7 +27499,15 @@ this.error$3$length$position("expected " + $name + ".", 0, this._string_scanner$_position); } }; - A.RNG.prototype = {}; + A.RNG.prototype = { + generate$0() { + var uint8list = this._generateInternal$0(); + if (uint8list.length !== 16) + throw A.wrapException(A.Exception_Exception("The length of the Uint8list returned by the custom RNG must be 16.")); + else + return uint8list; + } + }; A.CryptoRNG.prototype = { _generateInternal$0() { var i, k, t1, t2, @@ -26540,15 +27538,39 @@ }; A.UuidV1.prototype = { _init$0() { + var seedBytes, t1, t2, t3, t4, t5, t6; if ($.V1State_initialized) return; - var uint8list = $.$get$V1State_random()._generateInternal$0(); - $.V1State_nodeId = A._setArrayType([uint8list[0] | 1, uint8list[1], uint8list[2], uint8list[3], uint8list[4], uint8list[5]], type$.JSArray_int); - $.V1State_clockSeq = (uint8list[6] << 8 | uint8list[7]) & 262143; + seedBytes = $.$get$V1State_random().generate$0(); + t1 = seedBytes.length; + if (0 >= t1) + return A.ioore(seedBytes, 0); + t2 = seedBytes[0]; + if (1 >= t1) + return A.ioore(seedBytes, 1); + t3 = seedBytes[1]; + if (2 >= t1) + return A.ioore(seedBytes, 2); + t4 = seedBytes[2]; + if (3 >= t1) + return A.ioore(seedBytes, 3); + t5 = seedBytes[3]; + if (4 >= t1) + return A.ioore(seedBytes, 4); + t6 = seedBytes[4]; + if (5 >= t1) + return A.ioore(seedBytes, 5); + $.V1State_nodeId = A._setArrayType([t2 | 1, t3, t4, t5, t6, seedBytes[5]], type$.JSArray_int); + if (6 >= t1) + return A.ioore(seedBytes, 6); + t6 = seedBytes[6]; + if (7 >= t1) + return A.ioore(seedBytes, 7); + $.V1State_clockSeq = (t6 << 8 | seedBytes[7]) & 262143; $.V1State_initialized = true; }, generate$1$options(options) { - var buf, clockSeq, mSecs, t1, nSecs, t2, tl, tmh, node, n, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17; + var buf, clockSeq, mSecs, t1, nSecs, t2, tl, tmh, node, n, t3; this._init$0(); buf = new Uint8Array(16); clockSeq = $.V1State_clockSeq; @@ -26584,75 +27606,15 @@ buf[8] = buf[8] | 128; node = $.V1State_nodeId; for (t1 = node.length, n = 0; n < 6; ++n) { + t2 = 10 + n; if (!(n < t1)) return A.ioore(node, n); - buf[10 + n] = node[n]; + t3 = node[n]; + if (!(t2 < 16)) + return A.ioore(buf, t2); + buf[t2] = t3; } - t1 = $.$get$UuidParsing__byteToHex(); - t2 = buf[0]; - if (!(t2 < 256)) - return A.ioore(t1, t2); - t2 = t1[t2]; - t3 = buf[1]; - if (!(t3 < 256)) - return A.ioore(t1, t3); - t3 = t1[t3]; - t4 = buf[2]; - if (!(t4 < 256)) - return A.ioore(t1, t4); - t4 = t1[t4]; - t5 = buf[3]; - if (!(t5 < 256)) - return A.ioore(t1, t5); - t5 = t1[t5]; - t6 = buf[4]; - if (!(t6 < 256)) - return A.ioore(t1, t6); - t6 = t1[t6]; - t7 = buf[5]; - if (!(t7 < 256)) - return A.ioore(t1, t7); - t7 = t1[t7]; - t8 = buf[6]; - if (!(t8 < 256)) - return A.ioore(t1, t8); - t8 = t1[t8]; - t9 = buf[7]; - if (!(t9 < 256)) - return A.ioore(t1, t9); - t9 = t1[t9]; - t10 = buf[8]; - if (!(t10 < 256)) - return A.ioore(t1, t10); - t10 = t1[t10]; - t11 = buf[9]; - if (!(t11 < 256)) - return A.ioore(t1, t11); - t11 = t1[t11]; - t12 = buf[10]; - if (!(t12 < 256)) - return A.ioore(t1, t12); - t12 = t1[t12]; - t13 = buf[11]; - if (!(t13 < 256)) - return A.ioore(t1, t13); - t13 = t1[t13]; - t14 = buf[12]; - if (!(t14 < 256)) - return A.ioore(t1, t14); - t14 = t1[t14]; - t15 = buf[13]; - if (!(t15 < 256)) - return A.ioore(t1, t15); - t15 = t1[t15]; - t16 = buf[14]; - if (!(t16 < 256)) - return A.ioore(t1, t16); - t16 = t1[t16]; - t17 = buf[15]; - if (!(t17 < 256)) - return A.ioore(t1, t17); - return t2 + t3 + t4 + t5 + "-" + t6 + t7 + "-" + t8 + t9 + "-" + t10 + t11 + "-" + t12 + t13 + t14 + t15 + t16 + t1[t17]; + return A.UuidParsing_unparse(buf); } }; A.EventStreamProvider.prototype = {}; @@ -26716,13 +27678,13 @@ }; A._EventStreamSubscription_closure.prototype = { call$1(e) { - return this.onData.call$1(type$.JSObject._as(e)); + return this.onData.call$1(A._asJSObject(e)); }, $signature: 2 }; A._EventStreamSubscription_onData_closure.prototype = { call$1(e) { - return this.handleData.call$1(type$.JSObject._as(e)); + return this.handleData.call$1(A._asJSObject(e)); }, $signature: 2 }; @@ -26768,22 +27730,22 @@ }; A.BrowserWebSocket_connect_closure.prototype = { call$1(_) { - type$.JSObject._as(_); + A._asJSObject(_); this.webSocketConnected.complete$1(this.browserSocket); }, - $signature: 8 + $signature: 14 }; A.BrowserWebSocket_connect_closure0.prototype = { call$1(e) { var t1; - type$.JSObject._as(e); + A._asJSObject(e); t1 = this.webSocketConnected; if ((t1.future._state & 30) === 0) - t1.completeError$1(new A.WebSocketException()); + t1.completeError$1(new A.WebSocketException("Failed to connect WebSocket")); else this.browserSocket._browser_web_socket$_closed$2(1006, "error"); }, - $signature: 8 + $signature: 14 }; A.BrowserWebSocket_connect_closure1.prototype = { call$1(e) { @@ -26796,8 +27758,8 @@ data = A._Cell$named("data"); if (typeof t2 === "string") data.__late_helper$_value = new A.TextDataReceived(A._asString(t2)); - else if (typeof t2 === "object" && A.JSAnyUtilityExtension_instanceOfString(type$.JSObject._as(t2), "ArrayBuffer")) - data.__late_helper$_value = new A.BinaryDataReceived(A.NativeUint8List_NativeUint8List$view(type$.NativeByteBuffer._as(t2), 0, null)); + else if (typeof t2 === "object" && A.JSAnyUtilityExtension_instanceOfString(A._asJSObject(t2), "ArrayBuffer")) + data.__late_helper$_value = new A.BinaryDataReceived(A.NativeUint8List_NativeUint8List$view(type$.NativeArrayBuffer._as(t2), 0, null)); else throw A.wrapException(A.StateError$("unexpected message type: " + J.get$runtimeType$(t2).toString$0(0))); t1.add$1(0, data._readLocal$0()); @@ -26807,13 +27769,13 @@ A.BrowserWebSocket_connect_closure2.prototype = { call$1($event) { var t1; - type$.JSObject._as($event); + A._asJSObject($event); t1 = this.webSocketConnected; if ((t1.future._state & 30) === 0) t1.complete$1(this.browserSocket); this.browserSocket._browser_web_socket$_closed$2(A._asInt($event.code), A._asString($event.reason)); }, - $signature: 8 + $signature: 14 }; A.WebSocketEvent.prototype = {}; A.TextDataReceived.prototype = { @@ -26862,8 +27824,25 @@ return "CloseReceived(" + this.code + ", " + this.reason + ")"; } }; - A.WebSocketException.prototype = {$isException: 1}; - A.WebSocketConnectionClosed.prototype = {}; + A.WebSocketException.prototype = { + toString$0(_) { + var t1 = this.message; + if (t1.length === 0) + return "WebSocketException"; + else + return "WebSocketException: " + t1; + }, + $isException: 1 + }; + A.WebSocketConnectionClosed.prototype = { + toString$0(_) { + var t1 = this.message; + if (t1.length === 0) + return "WebSocketConnectionClosed"; + else + return "WebSocketConnectionClosed: " + t1; + } + }; A.AdapterWebSocketChannel.prototype = { AdapterWebSocketChannel$1(webSocket) { webSocket.then$1$2$onError(new A.AdapterWebSocketChannel_closure(this), new A.AdapterWebSocketChannel_closure0(this), type$.Null); @@ -26885,7 +27864,7 @@ A._asString(webSocket._webSocket.protocol); t2._readyCompleter.complete$0(); }, - $signature: 68 + $signature: 70 }; A.AdapterWebSocketChannel__closure.prototype = { call$1($event) { @@ -26921,7 +27900,7 @@ } } }, - $signature: 69 + $signature: 71 }; A.AdapterWebSocketChannel__closure0.prototype = { call$1(obj) { @@ -26967,7 +27946,7 @@ throw exception; } }, - $signature: 9 + $signature: 8 }; A.AdapterWebSocketChannel__closure1.prototype = { call$0() { @@ -27018,12 +27997,12 @@ }); return A._asyncStartSync($async$call$0, $async$completer); }, - $signature: 16 + $signature: 19 }; A.AdapterWebSocketChannel_closure0.prototype = { call$1(e) { var error, t1, t2; - type$.Object._as(e); + A._asObject(e); error = e instanceof A.TimeoutException ? e : new A.WebSocketChannelException(J.toString$0$(e)); t1 = this.$this; t1._readyCompleter.completeError$1(error); @@ -27036,7 +28015,7 @@ t1 === $ && A.throwLateFieldNI("_sink"); t1.close$0(); }, - $signature: 70 + $signature: 72 }; A._WebSocketSink.prototype = {$isWebSocketSink: 1}; A.WebSocketChannelException.prototype = { @@ -27052,7 +28031,7 @@ $call$body$main_closure() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - uri, t2, fixedPath, fixedUri, client, _0_0, t3, manager, t4, t5, t6, debugEventController, t7, _box_0, t1; + uri, fixedPath, fixedUri, client, _0_0, t2, manager, t3, t4, t5, debugEventController, t6, _box_0, t1; var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -27065,10 +28044,9 @@ if (A._asStringQ(t1.$dartAppInstanceId) == null) t1.$dartAppInstanceId = new A.UuidV1(null).generate$1$options(null); uri = A.Uri_parse(A._asString(t1.$dwdsDevHandlerPath)); - t2 = type$.JSObject; - if (A._asString(t2._as(t2._as(t1.window).location).protocol) === "https:" && uri.get$scheme() === "http" && uri.get$host() !== "localhost") + if (A._asString(A._asJSObject(A._asJSObject(t1.window).location).protocol) === "https:" && uri.get$scheme() === "http" && uri.get$host() !== "localhost") uri = uri.replace$1$scheme("https"); - else if (A._asString(t2._as(t2._as(t1.window).location).protocol) === "wss:" && uri.get$scheme() === "ws" && uri.get$host() !== "localhost") + else if (A._asString(A._asJSObject(A._asJSObject(t1.window).location).protocol) === "wss:" && uri.get$scheme() === "ws" && uri.get$host() !== "localhost") uri = uri.replace$1$scheme("wss"); fixedPath = uri.toString$0(0); fixedUri = A.Uri_parse(fixedPath); @@ -27082,50 +28060,50 @@ return A._asyncAwait(A.RequireRestarter_create(), $async$call$0); case 5: // returning from await. - t3 = $async$result; + t2 = $async$result; // goto break $label0$0 $async$goto = 2; break; case 4: // join if ("ddc-library-bundle" === _0_0) { - t3 = new A.DdcLibraryBundleRestarter(); + t2 = new A.DdcLibraryBundleRestarter(); // goto break $label0$0 $async$goto = 2; break; } if ("ddc" === _0_0 || "legacy" === _0_0) { - t3 = new A.DdcRestarter(); + t2 = new A.DdcRestarter(); // goto break $label0$0 $async$goto = 2; break; } - t3 = A.throwExpression(A.StateError$("Unknown module strategy: " + A.S(A.getProperty(A.staticInteropGlobalContext(), "$dartModuleStrategy", type$.String)))); + t2 = A.throwExpression(A.StateError$("Unknown module strategy: " + A.S(A.getProperty(A.staticInteropGlobalContext(), "$dartModuleStrategy", type$.String)))); case 2: // break $label0$0 - manager = new A.ReloadingManager(client, t3); + manager = new A.ReloadingManager(client, t2); t1.$dartHotReloadStartDwds = A._functionToJS0(new A.main__closure(manager)); t1.$dartHotReloadEndDwds = A._functionToJS0(new A.main__closure0(manager)); _box_0.readyToRunMainCompleter = null; t1.$dartHotRestartDwds = A._functionToJS2(new A.main__closure1(_box_0, manager)); t1.$dartReadyToRunMain = A._functionToJS0(new A.main__closure2(_box_0)); - t3 = $.Zone__current; - t4 = Math.max(100, 1); - t5 = A.StreamController_StreamController(null, null, false, type$.DebugEvent); - t6 = A.StreamController_StreamController(null, null, false, type$.List_DebugEvent); - debugEventController = new A.BatchedStreamController(t4, 1000, t5, t6, new A._AsyncCompleter(new A._Future(t3, type$._Future_bool), type$._AsyncCompleter_bool), type$.BatchedStreamController_DebugEvent); - t3 = A.List_List$filled(A.QueueList__computeInitialCapacity(null), null, false, type$.nullable_Result_DebugEvent); - t4 = A.ListQueue$(type$._EventRequest_dynamic); - t7 = type$.StreamQueue_DebugEvent; - debugEventController.__BatchedStreamController__inputQueue_A = t7._as(new A.StreamQueue(new A._ControllerStream(t5, A._instanceType(t5)._eval$1("_ControllerStream<1>")), new A.QueueList(t3, 0, 0, type$.QueueList_Result_DebugEvent), t4, t7)); + t2 = $.Zone__current; + t3 = Math.max(100, 1); + t4 = A.StreamController_StreamController(null, null, null, false, type$.DebugEvent); + t5 = A.StreamController_StreamController(null, null, null, false, type$.List_DebugEvent); + debugEventController = new A.BatchedStreamController(t3, 1000, t4, t5, new A._AsyncCompleter(new A._Future(t2, type$._Future_bool), type$._AsyncCompleter_bool), type$.BatchedStreamController_DebugEvent); + t2 = A.List_List$filled(A.QueueList__computeInitialCapacity(null), null, false, type$.nullable_Result_DebugEvent); + t3 = A.ListQueue$(type$._EventRequest_dynamic); + t6 = type$.StreamQueue_DebugEvent; + debugEventController.__BatchedStreamController__inputQueue_A = t6._as(new A.StreamQueue(new A._ControllerStream(t4, A._instanceType(t4)._eval$1("_ControllerStream<1>")), new A.QueueList(t2, 0, 0, type$.QueueList_Result_DebugEvent), t3, t6)); A.safeUnawaited(debugEventController._batchAndSendEvents$0()); - new A._ControllerStream(t6, A._instanceType(t6)._eval$1("_ControllerStream<1>")).listen$1(new A.main__closure3(client)); + new A._ControllerStream(t5, A._instanceType(t5)._eval$1("_ControllerStream<1>")).listen$1(new A.main__closure3(client)); t1.$emitDebugEvent = A._functionToJS2(new A.main__closure4(debugEventController)); t1.$emitRegisterEvent = A._functionToJS1(new A.main__closure5(client)); t1.$launchDevTools = A._functionToJS0(new A.main__closure6(client)); client.get$stream().listen$2$onError(new A.main__closure7(manager, client), new A.main__closure8()); if (A._asBool(t1.$dwdsEnableDevToolsLaunch)) - A._EventStreamSubscription$(t2._as(t1.window), "keydown", type$.nullable_void_Function_JSObject._as(new A.main__closure9()), false, t2); + A._EventStreamSubscription$(A._asJSObject(t1.window), "keydown", type$.nullable_void_Function_JSObject._as(new A.main__closure9()), false, type$.JSObject); if (A._asString(t1.$dartModuleStrategy) !== "ddc-library-bundle") if (A._isChromium()) A._sendConnectRequest(client.get$sink()); @@ -27140,7 +28118,7 @@ }); return A._asyncStartSync($async$call$0, $async$completer); }, - $signature: 16 + $signature: 19 }; A.main__closure.prototype = { call$0() { @@ -27170,7 +28148,12 @@ call$1(runId) { return this.call$2(runId, null); }, - $signature: 72 + "call*": "call$2", + $requiredArgCount: 1, + $defaultValues() { + return [null]; + }, + $signature: 74 }; A.main__closure2.prototype = { call$0() { @@ -27197,7 +28180,7 @@ A._trySendEvent(t1, B.C_JsonCodec.encode$2$toEncodable(t2.serialize$1(t3._debug_event$_build$0()), null), type$.dynamic); } }, - $signature: 73 + $signature: 75 }; A.main___closure2.prototype = { call$1(b) { @@ -27206,7 +28189,7 @@ b.get$_debug_event$_$this().set$_events(t1); return t1; }, - $signature: 74 + $signature: 76 }; A.main__closure4.prototype = { call$2(kind, eventData) { @@ -27220,7 +28203,7 @@ A._trySendEvent(new A._StreamSinkWrapper(t1, A._instanceType(t1)._eval$1("_StreamSinkWrapper<1>")), t2._debug_event$_build$0(), type$.DebugEvent); } }, - $signature: 75 + $signature: 77 }; A.main___closure1.prototype = { call$1(b) { @@ -27230,7 +28213,7 @@ b.get$_debug_event$_$this()._eventData = this.eventData; return b; }, - $signature: 76 + $signature: 78 }; A.main__closure5.prototype = { call$1(eventData) { @@ -27242,7 +28225,7 @@ type$.nullable_void_Function_RegisterEventBuilder._as(new A.main___closure0(eventData)).call$1(t3); A._trySendEvent(t1, B.C_JsonCodec.encode$2$toEncodable(t2.serialize$1(t3._register_event$_build$0()), null), type$.dynamic); }, - $signature: 106 + $signature: 79 }; A.main___closure0.prototype = { call$1(b) { @@ -27251,13 +28234,13 @@ b.get$_register_event$_$this()._register_event$_eventData = this.eventData; return b; }, - $signature: 78 + $signature: 80 }; A.main__closure6.prototype = { call$0() { var t1, t2, t3; if (!A._isChromium()) { - type$.JSObject._as(init.G.window).alert("Dart DevTools is only supported on Chromium based browsers."); + A._asJSObject(init.G.window).alert("Dart DevTools is only supported on Chromium based browsers."); return; } t1 = this.client.get$sink(); @@ -27277,7 +28260,7 @@ b.get$_devtools_request$_$this()._devtools_request$_instanceId = t1; return b; }, - $signature: 79 + $signature: 81 }; A.main__closure7.prototype = { call$1(serialized) { @@ -27286,7 +28269,7 @@ $call$body$main__closure(serialized) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$self = this, t1, t2, $alert, t3, $event; + $async$self = this, t1, $alert, t2, $event; var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -27304,8 +28287,7 @@ break; case 5: // then - t2 = type$.JSObject; - t2._as(t2._as(t1.window).location).reload(); + A._asJSObject(A._asJSObject(t1.window).location).reload(); // goto join $async$goto = 6; break; @@ -27354,13 +28336,12 @@ // then if (!$event.success) { $alert = "DevTools failed to open with:\n" + A.S($event.error); - t1 = $event.promptExtension && A._asBool(type$.JSObject._as(init.G.window).confirm($alert)); + t1 = $event.promptExtension && A._asBool(A._asJSObject(init.G.window).confirm($alert)); t2 = init.G; - t3 = type$.JSObject; if (t1) - type$.nullable_JSObject._as(t3._as(t2.window).open("https://dart.dev/to/web-debug-extension", "_blank")); + A._asJSObjectQ(A._asJSObject(t2.window).open("https://dart.dev/to/web-debug-extension", "_blank")); else - t3._as(t2.window).alert($alert); + A._asJSObject(t2.window).alert($alert); } // goto join $async$goto = 17; @@ -27381,7 +28362,7 @@ break; case 22: // then - type$.JSObject._as(init.G.window).reportError("Error from backend:\n\nError: " + $event.error + "\n\nStack Trace:\n" + $event.stackTrace); + A._asJSObject(init.G.window).reportError("Error from backend:\n\nError: " + $event.error + "\n\nStack Trace:\n" + $event.stackTrace); // goto join $async$goto = 23; break; @@ -27400,14 +28381,29 @@ break; case 27: // else - $async$goto = $event instanceof A._$ServiceExtensionRequest ? 29 : 30; + $async$goto = $event instanceof A._$HotRestartRequest ? 29 : 31; break; case 29: // then - $async$goto = 31; - return A._asyncAwait(A.handleServiceExtensionRequest($event, $async$self.client.get$sink(), $async$self.manager), $async$call$1); + $async$goto = 32; + return A._asyncAwait(A.handleWebSocketHotRestartRequest($event, $async$self.manager, $async$self.client.get$sink()), $async$call$1); + case 32: + // returning from await. + // goto join + $async$goto = 30; + break; case 31: + // else + $async$goto = $event instanceof A._$ServiceExtensionRequest ? 33 : 34; + break; + case 33: + // then + $async$goto = 35; + return A._asyncAwait(A.handleServiceExtensionRequest($event, $async$self.client.get$sink(), $async$self.manager), $async$call$1); + case 35: // returning from await. + case 34: + // join case 30: // join case 26: @@ -27426,12 +28422,12 @@ }); return A._asyncStartSync($async$call$1, $async$completer); }, - $signature: 80 + $signature: 82 }; A.main__closure8.prototype = { call$1(error) { }, - $signature: 6 + $signature: 4 }; A.main__closure9.prototype = { call$1(e) { @@ -27446,11 +28442,11 @@ }; A.main_closure0.prototype = { call$2(error, stackTrace) { - type$.Object._as(error); + A._asObject(error); type$.StackTrace._as(stackTrace); A.print("Unhandled error detected in the injected client.js script.\n\nYou can disable this script in webdev by passing --no-injected-client if it\nis preventing your app from loading, but note that this will also prevent\nall debugging and hot reload/restart functionality from working.\n\nThe original error is below, please file an issue at\nhttps://github.com/dart-lang/webdev/issues/new and attach this output:\n\n" + A.S(error) + "\n" + stackTrace.toString$0(0) + "\n"); }, - $signature: 13 + $signature: 9 }; A._sendConnectRequest_closure.prototype = { call$1(b) { @@ -27463,11 +28459,11 @@ b.get$_connect_request$_$this()._entrypointPath = t1; return b; }, - $signature: 81 + $signature: 83 }; A._launchCommunicationWithDebugExtension_closure.prototype = { call$1(b) { - var t3, t4, + var t3, t1 = init.G, t2 = A._asString(t1.$dartEntrypointPath); b.get$_$this()._appEntrypointPath = t2; @@ -27476,10 +28472,9 @@ b.get$_$this()._appId = t3; t3 = A._asStringQ(t1.$dartAppInstanceId); b.get$_$this()._appInstanceId = t3; - t3 = type$.JSObject; - t4 = A._asString(t3._as(t3._as(t1.window).location).origin); - b.get$_$this()._appOrigin = t4; - t3 = A._asString(t3._as(t3._as(t1.window).location).href); + t3 = A._asString(A._asJSObject(A._asJSObject(t1.window).location).origin); + b.get$_$this()._appOrigin = t3; + t3 = A._asString(A._asJSObject(A._asJSObject(t1.window).location).href); b.get$_$this()._appUrl = t3; t3 = A._authUrl(); b.get$_$this()._authUrl = t3; @@ -27493,13 +28488,13 @@ b.get$_$this()._workspaceName = t1; return b; }, - $signature: 82 + $signature: 110 }; A._handleAuthRequest_closure.prototype = { call$1(isAuthenticated) { return A._dispatchEvent("dart-auth-response", "" + A._asBool(isAuthenticated)); }, - $signature: 83 + $signature: 85 }; A._sendResponse_closure.prototype = { call$1(b) { @@ -27514,9 +28509,6 @@ }; A.DdcLibraryBundleRestarter.prototype = { _runMainWhenReady$2(readyToRunMain, runMain) { - return this._runMainWhenReady$body$DdcLibraryBundleRestarter(readyToRunMain, runMain); - }, - _runMainWhenReady$body$DdcLibraryBundleRestarter(readyToRunMain, runMain) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void); var $async$_runMainWhenReady$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { @@ -27546,7 +28538,7 @@ restart$2$readyToRunMain$runId(readyToRunMain, runId) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), - $async$returnValue, $async$self = this, mainHandler, t1, t2; + $async$returnValue, $async$self = this, mainHandler, t1; var $async$restart$2$readyToRunMain$runId = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -27555,15 +28547,14 @@ case 0: // Function start t1 = init.G; - t2 = type$.JSObject; $async$goto = 3; - return A._asyncAwait(A._Debugger_maybeInvokeFlutterDisassemble(t2._as(t2._as(t1.dartDevEmbedder).debugger)), $async$restart$2$readyToRunMain$runId); + return A._asyncAwait(A._Debugger_maybeInvokeFlutterDisassemble(A._asJSObject(A._asJSObject(t1.dartDevEmbedder).debugger)), $async$restart$2$readyToRunMain$runId); case 3: // returning from await. mainHandler = A._functionToJS1(new A.DdcLibraryBundleRestarter_restart_closure($async$self, readyToRunMain)); - t2._as(t2._as(t1.dartDevEmbedder).config).capturedMainHandler = mainHandler; + A._asJSObject(A._asJSObject(t1.dartDevEmbedder).config).capturedMainHandler = mainHandler; $async$goto = 4; - return A._asyncAwait(A.promiseToFuture(t2._as(t2._as(t1.dartDevEmbedder).hotRestart()), type$.nullable_Object), $async$restart$2$readyToRunMain$runId); + return A._asyncAwait(A.promiseToFuture(A._asJSObject(A._asJSObject(t1.dartDevEmbedder).hotRestart()), type$.nullable_Object), $async$restart$2$readyToRunMain$runId); case 4: // returning from await. $async$returnValue = true; @@ -27578,12 +28569,9 @@ return A._asyncStartSync($async$restart$2$readyToRunMain$runId, $async$completer); }, hotReloadStart$1(hotReloadSourcesPath) { - return this.hotReloadStart$body$DdcLibraryBundleRestarter(hotReloadSourcesPath); - }, - hotReloadStart$body$DdcLibraryBundleRestarter(hotReloadSourcesPath) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.JSArray_nullable_Object), - $async$returnValue, $async$self = this, t4, srcModuleLibraries, filesToLoad, librariesToReload, t5, t6, t7, srcModuleLibraryCast, src, libraries, t8, t1, t2, t3, xhr, $async$temp1, $async$temp2, $async$temp3; + $async$returnValue, $async$self = this, t3, srcModuleLibraries, filesToLoad, librariesToReload, t4, t5, t6, srcModuleLibraryCast, src, libraries, t7, t1, t2, xhr, $async$temp1, $async$temp2, $async$temp3; var $async$hotReloadStart$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -27593,15 +28581,14 @@ // Function start t1 = new A._Future($.Zone__current, type$._Future_String); t2 = init.G; - t3 = type$.JSObject; - xhr = t3._as(new t2.XMLHttpRequest()); + xhr = A._asJSObject(new t2.XMLHttpRequest()); xhr.withCredentials = true; xhr.onreadystatechange = A._functionToJS0(new A.DdcLibraryBundleRestarter_hotReloadStart_closure(xhr, new A._AsyncCompleter(t1, type$._AsyncCompleter_String))); xhr.open("GET", hotReloadSourcesPath, true); xhr.send(); - t4 = type$.List_dynamic; + t3 = type$.List_dynamic; $async$temp1 = J; - $async$temp2 = t4; + $async$temp2 = t3; $async$temp3 = B.C_JsonCodec; $async$goto = 3; return A._asyncAwait(t1, $async$hotReloadStart$1); @@ -27611,17 +28598,17 @@ t1 = type$.JSArray_nullable_Object; filesToLoad = t1._as(new t2.Array()); librariesToReload = t1._as(new t2.Array()); - for (t5 = J.get$iterator$ax(srcModuleLibraries), t6 = type$.String, t7 = type$.Object; t5.moveNext$0();) { - srcModuleLibraryCast = t5.get$current().cast$2$0(0, t6, t7); + for (t4 = srcModuleLibraries.get$iterator(srcModuleLibraries), t5 = type$.String, t6 = type$.Object; t4.moveNext$0();) { + srcModuleLibraryCast = t4.get$current().cast$2$0(0, t5, t6); src = A._asString(srcModuleLibraryCast.$index(0, "src")); - libraries = J.cast$1$0$ax(t4._as(srcModuleLibraryCast.$index(0, "libraries")), t6); + libraries = J.cast$1$0$ax(t3._as(srcModuleLibraryCast.$index(0, "libraries")), t5); filesToLoad.push(src); - for (t8 = J.get$iterator$ax(libraries); t8.moveNext$0();) - librariesToReload.push(t8.get$current()); + for (t7 = libraries.get$iterator(libraries); t7.moveNext$0();) + librariesToReload.push(t7.get$current()); } - t3._as(t3._as(t2.dartDevEmbedder).config).capturedHotReloadEndHandler = A._functionToJS1(new A.DdcLibraryBundleRestarter_hotReloadStart_closure0($async$self)); + A._asJSObject(A._asJSObject(t2.dartDevEmbedder).config).capturedHotReloadEndHandler = A._functionToJS1(new A.DdcLibraryBundleRestarter_hotReloadStart_closure0($async$self)); $async$goto = 4; - return A._asyncAwait(A.promiseToFuture(t3._as(t3._as(t2.dartDevEmbedder).hotReload(filesToLoad, librariesToReload)), type$.nullable_Object), $async$hotReloadStart$1); + return A._asyncAwait(A.promiseToFuture(A._asJSObject(A._asJSObject(t2.dartDevEmbedder).hotReload(filesToLoad, librariesToReload)), type$.nullable_Object), $async$hotReloadStart$1); case 4: // returning from await. $async$returnValue = t1._as(A.jsify(srcModuleLibraries)); @@ -27638,7 +28625,7 @@ hotReloadEnd$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.void), - $async$self = this, t1; + $async$self = this; var $async$hotReloadEnd$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -27647,8 +28634,7 @@ case 0: // Function start $async$self._capturedHotReloadEndCallback.call(); - t1 = type$.JSObject; - t1._as(t1._as(init.G.dartDevEmbedder).config).capturedHotReloadEndHandler = null; + A._asJSObject(A._asJSObject(init.G.dartDevEmbedder).config).capturedHotReloadEndHandler = null; $async$self._capturedHotReloadEndCallback = null; // implicit return return A._asyncReturn(null, $async$completer); @@ -27674,9 +28660,8 @@ break; case 3: // then - t1 = type$.JSObject; $async$goto = 6; - return A._asyncAwait(A._Debugger_maybeInvokeFlutterReassemble(t1._as(t1._as(init.G.dartDevEmbedder).debugger)), $async$handleServiceExtension$2); + return A._asyncAwait(A._Debugger_maybeInvokeFlutterReassemble(A._asJSObject(A._asJSObject(init.G.dartDevEmbedder).debugger)), $async$handleServiceExtension$2); case 6: // returning from await. $async$returnValue = A.LinkedHashMap_LinkedHashMap$_literal(["status", "reassemble invoked"], type$.String, type$.dynamic); @@ -27692,8 +28677,7 @@ break; case 7: // then - t1 = type$.JSObject; - t1 = type$.JSArray_nullable_Object._as(t1._as(t1._as(init.G.dartDevEmbedder).debugger).extensionNames); + t1 = type$.JSArray_nullable_Object._as(A._asJSObject(A._asJSObject(init.G.dartDevEmbedder).debugger).extensionNames); t1 = type$.List_String._is(t1) ? t1 : new A.CastList(t1, A._arrayInstanceType(t1)._eval$1("CastList<1,String>")); t2 = type$.String; $async$returnValue = A.LinkedHashMap_LinkedHashMap$_literal(["rpcs", J.cast$1$0$ax(t1, t2)], t2, type$.dynamic); @@ -27706,11 +28690,10 @@ case 9: // else params = args.get$isNotEmpty(args) ? B.C_JsonCodec.encode$2$toEncodable(args, null) : "{}"; - t1 = type$.JSObject; $async$temp1 = type$.Map_String_dynamic; $async$temp2 = B.C_JsonCodec; $async$goto = 10; - return A._asyncAwait(A.promiseToFuture(t1._as(t1._as(t1._as(init.G.dartDevEmbedder).debugger).invokeExtension(method, params)), type$.String), $async$handleServiceExtension$2); + return A._asyncAwait(A.promiseToFuture(A._asJSObject(A._asJSObject(A._asJSObject(init.G.dartDevEmbedder).debugger).invokeExtension(method, params)), type$.String), $async$handleServiceExtension$2); case 10: // returning from await. $async$returnValue = $async$temp1._as($async$temp2.decode$2$reviver($async$result, null)); @@ -27732,13 +28715,11 @@ }; A.DdcLibraryBundleRestarter_restart_closure.prototype = { call$1(runMain) { - var t1; type$.JavaScriptFunction._as(runMain); - t1 = type$.JSObject; - t1._as(t1._as(init.G.dartDevEmbedder).config).capturedMainHandler = null; + A._asJSObject(A._asJSObject(init.G.dartDevEmbedder).config).capturedMainHandler = null; A.safeUnawaited(this.$this._runMainWhenReady$2(this.readyToRunMain, runMain)); }, - $signature: 33 + $signature: 20 }; A.DdcLibraryBundleRestarter_hotReloadStart_closure.prototype = { call$0() { @@ -27752,7 +28733,7 @@ call$1(hotReloadEndCallback) { this.$this._capturedHotReloadEndCallback = type$.JavaScriptFunction._as(hotReloadEndCallback); }, - $signature: 33 + $signature: 20 }; A.DdcRestarter.prototype = { restart$2$readyToRunMain$runId(readyToRunMain, runId) { @@ -27771,8 +28752,7 @@ t3 = readyToRunMain == null ? null : A.FutureOfVoidToJSPromise_get_toJS(readyToRunMain); t2.reload(runId, t3); t3 = new A._Future($.Zone__current, type$._Future_bool); - t2 = type$.JSObject; - $async$returnValue = t3.then$1$1(new A.DdcRestarter_restart_closure(A._EventStreamSubscription$(t2._as(t1.window), "message", type$.nullable_void_Function_JSObject._as(new A.DdcRestarter_restart_closure0(new A._AsyncCompleter(t3, type$._AsyncCompleter_bool))), false, t2)), type$.bool); + $async$returnValue = t3.then$1$1(new A.DdcRestarter_restart_closure(A._EventStreamSubscription$(A._asJSObject(t1.window), "message", type$.nullable_void_Function_JSObject._as(new A.DdcRestarter_restart_closure0(new A._AsyncCompleter(t3, type$._AsyncCompleter_bool))), false, type$.JSObject)), type$.bool); // goto return $async$goto = 1; break; @@ -27806,7 +28786,7 @@ this.sub.cancel$0(); return value; }, - $signature: 85 + $signature: 87 }; A.ReloadingManager.prototype = { hotRestart$2$readyToRunMain$runId(readyToRunMain, runId) { @@ -27926,7 +28906,7 @@ restart$2$readyToRunMain$runId(readyToRunMain, runId) { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.bool), - $async$returnValue, $async$self = this, newDigests, modulesToLoad, t3, t4, t5, t6, t7, line, toZone, t8, result, t1, t2; + $async$returnValue, $async$self = this, newDigests, modulesToLoad, t3, t4, t5, t6, line, toZone, t7, result, t1, t2; var $async$restart$2$readyToRunMain$runId = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -27946,31 +28926,31 @@ // returning from await. newDigests = $async$result; modulesToLoad = A._setArrayType([], type$.JSArray_String); - for (t3 = newDigests.get$keys(), t3 = t3.get$iterator(t3), t4 = $.RequireRestarter____lastKnownDigests._name, t5 = type$.JSObject; t3.moveNext$0();) { - t6 = t3.get$current(); - t7 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; - if (t7 === $.RequireRestarter____lastKnownDigests) + for (t3 = newDigests.get$keys(), t3 = t3.get$iterator(t3), t4 = $.RequireRestarter____lastKnownDigests._name; t3.moveNext$0();) { + t5 = t3.get$current(); + t6 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; + if (t6 === $.RequireRestarter____lastKnownDigests) A.throwExpression(A.LateError$fieldNI(t4)); - if (!t7.containsKey$1(t6)) { - line = "Error during script reloading, refreshing the page. \nUnable to find an existing digest for module: " + t6 + "."; + if (!t6.containsKey$1(t5)) { + line = "Error during script reloading, refreshing the page. \nUnable to find an existing digest for module: " + t5 + "."; toZone = $.printToZone; if (toZone == null) A.printString(line); else toZone.call$1(line); - t5._as(t5._as(t1.window).location).reload(); + A._asJSObject(A._asJSObject(t1.window).location).reload(); } else { - t7 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; - if (t7 === $.RequireRestarter____lastKnownDigests) + t6 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; + if (t6 === $.RequireRestarter____lastKnownDigests) A.throwExpression(A.LateError$fieldNI(t4)); - if (t7.$index(0, t6) != newDigests.$index(0, t6)) { - t7 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; - if (t7 === $.RequireRestarter____lastKnownDigests) + if (t6.$index(0, t5) != newDigests.$index(0, t5)) { + t6 = $.RequireRestarter____lastKnownDigests.__late_helper$_value; + if (t6 === $.RequireRestarter____lastKnownDigests) A.throwExpression(A.LateError$fieldNI(t4)); - t8 = newDigests.$index(0, t6); - t8.toString; - t7.$indexSet(0, t6, t8); - B.JSArray_methods.add$1(modulesToLoad, t6); + t7 = newDigests.$index(0, t5); + t7.toString; + t6.$indexSet(0, t5, t7); + B.JSArray_methods.add$1(modulesToLoad, t5); } } } @@ -28041,7 +29021,7 @@ _getDigests$0() { var $async$goto = 0, $async$completer = A._makeAsyncAwaitCompleter(type$.Map_String_String), - $async$returnValue, response, t1; + $async$returnValue, t1, response; var $async$_getDigests$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) { if ($async$errorCode === 1) return A._asyncRethrow($async$result, $async$completer); @@ -28049,13 +29029,14 @@ switch ($async$goto) { case 0: // Function start + t1 = init.G; $async$goto = 3; - return A._asyncAwait(new A.BrowserClient(A.LinkedHashSet_LinkedHashSet$_empty(type$.JSObject))._sendUnstreamed$3("GET", A.Uri_parse(A._asString(type$.JavaScriptObject._as(init.G.$requireLoader).digestsPath)), null), $async$_getDigests$0); + return A._asyncAwait(new A.BrowserClient(A._asJSObject(new t1.AbortController()))._sendUnstreamed$3("GET", A.Uri_parse(A._asString(type$.JavaScriptObject._as(t1.$requireLoader).digestsPath)), null), $async$_getDigests$0); case 3: // returning from await. response = $async$result; t1 = type$.String; - $async$returnValue = type$.Map_dynamic_dynamic._as(B.C_JsonCodec.decode$2$reviver(A.encodingForCharset(A._contentTypeForHeaders(response.headers).parameters._collection$_map.$index(0, "charset")).decode$1(response.bodyBytes), null)).cast$2$0(0, t1, t1); + $async$returnValue = type$.Map_dynamic_dynamic._as(B.C_JsonCodec.decode$2$reviver(A.encodingForContentTypeHeader(A._contentTypeForHeaders(response.headers)).decode$1(response.bodyBytes), null)).cast$2$0(0, t1, t1); // goto return $async$goto = 1; break; @@ -28240,8 +29221,7 @@ if (t2 instanceof A.HotReloadFailedException) { e = t2; A.print("Error during script reloading. Firing full page reload. " + A.S(e)); - t2 = type$.JSObject; - t2._as(t2._as(t1.window).location).reload(); + A._asJSObject(A._asJSObject(t1.window).location).reload(); $async$self._running.complete$1(false); } else throw $async$exception; @@ -28282,7 +29262,7 @@ t2 = type$.JavaScriptObject; t2 = t2._as(t2._as(t1.$requireLoader).moduleParentsGraph); t3 = type$.String; - stronglyConnectedComponents = A.stronglyConnectedComponents(A.JSArrayExtension_toDartIterable(type$.JSArray_nullable_Object._as(t1.Array.from(type$.JSObject._as(t2.keys()))), t3), this.get$_moduleParents(), t3); + stronglyConnectedComponents = A.stronglyConnectedComponents(A.JSArrayExtension_toDartIterable(type$.JSArray_nullable_Object._as(t1.Array.from(A._asJSObject(t2.keys()))), t3), this.get$_moduleParents(), t3); t3 = this._moduleOrdering; if (t3._collection$_length > 0) { t3._strings = t3._nums = t3._collection$_rest = t3._keys = null; @@ -28296,7 +29276,7 @@ }; A.RequireRestarter__reload_closure.prototype = { call$0() { - var t1 = type$.JSObject._as(this.dart.getModuleLibraries(this._box_0.previousModuleId)); + var t1 = A._asJSObject(this.dart.getModuleLibraries(this._box_0.previousModuleId)); t1 = A.JSArrayExtension_toDartIterable(type$.JSArray_nullable_Object._as(init.G.Object.values(t1)), type$.nullable_Object).get$first(0); t1.toString; type$.JavaScriptObject._as(t1).main(); @@ -28313,7 +29293,7 @@ call$1(e) { this.completer.completeError$2(new A.HotReloadFailedException(A._asString(type$.JavaScriptObject._as(e).message)), this.stackTrace); }, - $signature: 88 + $signature: 90 }; A._createScript_closure.prototype = { call$0() { @@ -28322,19 +29302,17 @@ return new A._createScript__closure(); return new A._createScript__closure0(nonce); }, - $signature: 89 + $signature: 91 }; A._createScript__closure.prototype = { call$0() { - var t1 = type$.JSObject; - return t1._as(t1._as(init.G.document).createElement("script")); + return A._asJSObject(A._asJSObject(init.G.document).createElement("script")); }, $signature: 10 }; A._createScript__closure0.prototype = { call$0() { - var t1 = type$.JSObject, - scriptElement = t1._as(t1._as(init.G.document).createElement("script")); + var scriptElement = A._asJSObject(A._asJSObject(init.G.document).createElement("script")); scriptElement.setAttribute("nonce", this.nonce); return scriptElement; }, @@ -28385,53 +29363,58 @@ _instance = hunkHelpers.installInstanceTearOff, _instance_2_u = hunkHelpers._instance_2u, _instance_1_i = hunkHelpers._instance_1i, - _instance_0_u = hunkHelpers._instance_0u, - _instance_1_u = hunkHelpers._instance_1u; - _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 34); - _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 12); - _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 12); - _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 12); + _instance_1_u = hunkHelpers._instance_1u, + _instance_0_u = hunkHelpers._instance_0u; + _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 32); + _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 13); + _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 13); + _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 13); _static_0(A, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 0); _static_1(A, "async___nullDataHandler$closure", "_nullDataHandler", 7); - _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 13); + _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 9); _static_0(A, "async___nullDoneHandler$closure", "_nullDoneHandler", 0); - _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 92, 0); + _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 94, 0); _static(A, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) { - f.toString; return A._rootRun($self, $parent, zone, f, type$.dynamic); - }], 93, 0); + }], 95, 1); _static(A, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) { var t1 = type$.dynamic; - f.toString; return A._rootRunUnary($self, $parent, zone, f, arg, t1, t1); - }], 94, 0); - _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6"], ["_rootRunBinary"], 95, 0); + }], 96, 1); + _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) { + var t1 = type$.dynamic; + return A._rootRunBinary($self, $parent, zone, f, arg1, arg2, t1, t1, t1); + }], 97, 1); _static(A, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) { - f.toString; return A._rootRegisterCallback($self, $parent, zone, f, type$.dynamic); - }], 96, 0); + }], 98, 0); _static(A, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) { var t1 = type$.dynamic; - f.toString; return A._rootRegisterUnaryCallback($self, $parent, zone, f, t1, t1); - }], 97, 0); + }], 99, 0); _static(A, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) { var t1 = type$.dynamic; - f.toString; return A._rootRegisterBinaryCallback($self, $parent, zone, f, t1, t1, t1); - }], 98, 0); - _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 99, 0); - _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 100, 0); - _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 101, 0); - _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 102, 0); - _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 103, 0); - _static_1(A, "async___printToZone$closure", "_printToZone", 104); - _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 105, 0); - _instance(A._Completer.prototype, "get$completeError", 0, 1, null, ["call$2", "call$1"], ["completeError$2", "completeError$1"], 23, 0, 0); - _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 13); + }], 100, 0); + _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 101, 0); + _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 102, 0); + _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 103, 0); + _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 104, 0); + _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 105, 0); + _static_1(A, "async___printToZone$closure", "_printToZone", 106); + _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 107, 0); + _instance(A._Completer.prototype, "get$completeError", 0, 1, function() { + return [null]; + }, ["call$2", "call$1"], ["completeError$2", "completeError$1"], 31, 0, 0); + _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 9); var _; - _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 9); - _instance(_, "get$addError", 0, 1, null, ["call$2", "call$1"], ["addError$2", "addError$1"], 23, 0, 0); + _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 8); + _instance(_, "get$addError", 0, 1, function() { + return [null]; + }, ["call$2", "call$1"], ["addError$2", "addError$1"], 31, 0, 0); + _instance_1_u(_, "get$_add", "_add$1", 8); + _instance_2_u(_, "get$_addError", "_addError$2", 9); + _instance_0_u(_, "get$_close", "_close$0", 0); _instance_0_u(_ = A._ControllerSubscription.prototype, "get$_onPause", "_onPause$0", 0); _instance_0_u(_, "get$_onResume", "_onResume$0", 0); _instance_0_u(_ = A._BufferingStreamSubscription.prototype, "get$_onPause", "_onPause$0", 0); @@ -28439,61 +29422,63 @@ _instance_0_u(A._DoneStreamSubscription.prototype, "get$_onMicrotask", "_onMicrotask$0", 0); _instance_0_u(_ = A._ForwardingStreamSubscription.prototype, "get$_onPause", "_onPause$0", 0); _instance_0_u(_, "get$_onResume", "_onResume$0", 0); - _instance_1_u(_, "get$_handleData", "_handleData$1", 9); - _instance_2_u(_, "get$_handleError", "_handleError$2", 25); + _instance_1_u(_, "get$_handleData", "_handleData$1", 8); + _instance_2_u(_, "get$_handleError", "_handleError$2", 21); _instance_0_u(_, "get$_handleDone", "_handleDone$0", 0); - _static_2(A, "collection___defaultEquals$closure", "_defaultEquals0", 17); - _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 18); - _static_2(A, "collection_ListBase__compareAny$closure", "ListBase__compareAny", 34); - _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4); - _instance_1_i(_ = A._ByteCallbackSink.prototype, "get$add", "add$1", 9); + _static_2(A, "collection___defaultEquals$closure", "_defaultEquals0", 18); + _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 15); + _static_2(A, "collection_ListBase__compareAny$closure", "ListBase__compareAny", 32); + _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 6); + _instance_1_i(_ = A._ByteCallbackSink.prototype, "get$add", "add$1", 8); _instance_0_u(_, "get$close", "close$0", 0); - _static_1(A, "core__identityHashCode$closure", "identityHashCode", 18); - _static_2(A, "core__identical$closure", "identical", 17); - _static_1(A, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 15); + _static_1(A, "core__identityHashCode$closure", "identityHashCode", 15); + _static_2(A, "core__identical$closure", "identical", 18); + _static_1(A, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 16); _static(A, "math__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) { - a.toString; - b.toString; return A.max(a, b, type$.num); - }], 77, 0); - _instance_2_u(_ = A.DeepCollectionEquality.prototype, "get$equals", "equals$2", 17); - _instance_1_u(_, "get$hash", "hash$1", 18); - _instance_1_u(_, "get$isValidKey", "isValidKey$1", 14); + }], 108, 1); + _instance_2_u(_ = A.DeepCollectionEquality.prototype, "get$equals", "equals$2", 18); + _instance_1_u(_, "get$hash", "hash$1", 15); + _instance_1_u(_, "get$isValidKey", "isValidKey$1", 12); _static(A, "hot_reload_response_HotReloadResponse___new_tearOff$closure", 0, null, ["call$1", "call$0"], ["HotReloadResponse___new_tearOff", function() { return A.HotReloadResponse___new_tearOff(null); - }], 71, 0); - _static_1(A, "case_insensitive_map_CaseInsensitiveMap__canonicalizer$closure", "CaseInsensitiveMap__canonicalizer", 15); + }], 109, 0); + _static(A, "hot_restart_response_HotRestartResponse___new_tearOff$closure", 0, null, ["call$1", "call$0"], ["HotRestartResponse___new_tearOff", function() { + return A.HotRestartResponse___new_tearOff(null); + }], 73, 0); + _static_1(A, "case_insensitive_map_CaseInsensitiveMap__canonicalizer$closure", "CaseInsensitiveMap__canonicalizer", 16); _instance_1_u(_ = A.SseClient.prototype, "get$_onIncomingControlMessage", "_onIncomingControlMessage$1", 2); _instance_1_u(_, "get$_onIncomingMessage", "_onIncomingMessage$1", 2); _instance_0_u(_, "get$_onOutgoingDone", "_onOutgoingDone$0", 0); - _instance_1_u(_, "get$_onOutgoingMessage", "_onOutgoingMessage$1", 65); + _instance_1_u(_, "get$_onOutgoingMessage", "_onOutgoingMessage$1", 67); _static_1(A, "client___handleAuthRequest$closure", "_handleAuthRequest", 2); - _instance_1_u(_ = A.RequireRestarter.prototype, "get$_moduleParents", "_moduleParents$1", 86); - _instance_2_u(_, "get$_moduleTopologicalCompare", "_moduleTopologicalCompare$2", 87); + _instance_1_u(_ = A.RequireRestarter.prototype, "get$_moduleParents", "_moduleParents$1", 88); + _instance_2_u(_, "get$_moduleTopologicalCompare", "_moduleTopologicalCompare$2", 89); })(); (function inheritance() { var _mixin = hunkHelpers.mixin, _inherit = hunkHelpers.inherit, _inheritMany = hunkHelpers.inheritMany; _inherit(A.Object, null); - _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapBase, A.Error, A.ListBase, A.SentinelValue, A.ListIterator, A.MappedIterator, A.WhereIterator, A.ExpandIterator, A.TakeIterator, A.SkipIterator, A.EmptyIterator, A.WhereTypeIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A.ConstantMap, A._KeysOrValuesOrElementsIterator, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A.LinkedHashMapValueIterator, A.LinkedHashMapEntryIterator, A._Record, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A._UnmodifiableNativeByteBufferView, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A.AsyncError, A.TimeoutException, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._StreamSinkWrapper, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._DoneStreamSubscription, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.SetBase, A._HashSetIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A._UnmodifiableMapMixin, A.MapView, A._ListQueueIterator, A._SplayTreeNode, A._SplayTree, A._SplayTreeIterator, A.Codec, A.Converter, A._Base64Encoder, A._Base64Decoder, A.ByteConversionSink, A._JsonStringifier, A._Utf8Encoder, A._Utf8Decoder, A._BigIntImpl, A.DateTime, A.Duration, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.IntegerDivisionByZeroException, A.MapEntry, A.Null, A._StringStackTrace, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.NullRejectionException, A._JSRandom, A._JSSecureRandom, A.AsyncMemoizer, A.DelegatingStreamSink, A.ErrorResult, A.ValueResult, A.StreamQueue, A._NextRequest, A._HasNextRequest, A.BuiltList, A.ListBuilder, A.BuiltListMultimap, A.ListMultimapBuilder, A.BuiltMap, A.MapBuilder, A.BuiltSet, A.SetBuilder, A.BuiltSetMultimap, A.SetMultimapBuilder, A.EnumClass, A.IndentingBuiltValueToStringHelper, A.JsonObject, A.FullType, A.BigIntSerializer, A.BoolSerializer, A.BuiltJsonSerializers, A.BuiltJsonSerializersBuilder, A.BuiltListMultimapSerializer, A.BuiltListSerializer, A.BuiltMapSerializer, A.BuiltSetMultimapSerializer, A.BuiltSetSerializer, A.DateTimeSerializer, A.DoubleSerializer, A.DurationSerializer, A.Int32Serializer, A.Int64Serializer, A.IntSerializer, A.JsonObjectSerializer, A.NullSerializer, A.NumSerializer, A.RegExpSerializer, A.StringSerializer, A.Uint8ListSerializer, A.UriSerializer, A.CanonicalizedMap, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._UnorderedEquality, A._MapEntry, A.MapEquality, A.DeepCollectionEquality, A._QueueList_Object_ListMixin, A.BuildResult, A._$BuildStatusSerializer, A._$BuildResultSerializer, A.BuildResultBuilder, A.ConnectRequest, A._$ConnectRequestSerializer, A.ConnectRequestBuilder, A.DebugEvent, A.BatchedDebugEvents, A._$DebugEventSerializer, A._$BatchedDebugEventsSerializer, A.DebugEventBuilder, A.BatchedDebugEventsBuilder, A.DebugInfo, A._$DebugInfoSerializer, A.DebugInfoBuilder, A.DevToolsRequest, A.DevToolsResponse, A._$DevToolsRequestSerializer, A._$DevToolsResponseSerializer, A.DevToolsRequestBuilder, A.DevToolsResponseBuilder, A.ErrorResponse, A._$ErrorResponseSerializer, A.ErrorResponseBuilder, A.ExtensionRequest, A.ExtensionResponse, A.ExtensionEvent, A.BatchedEvents, A._$ExtensionRequestSerializer, A._$ExtensionResponseSerializer, A._$ExtensionEventSerializer, A._$BatchedEventsSerializer, A.ExtensionRequestBuilder, A.ExtensionResponseBuilder, A.ExtensionEventBuilder, A.BatchedEventsBuilder, A.HotReloadRequest, A._$HotReloadRequestSerializer, A.HotReloadRequestBuilder, A.HotReloadResponse, A._$HotReloadResponseSerializer, A.HotReloadResponseBuilder, A.IsolateExit, A.IsolateStart, A._$IsolateExitSerializer, A._$IsolateStartSerializer, A.IsolateExitBuilder, A.IsolateStartBuilder, A.RegisterEvent, A._$RegisterEventSerializer, A.RegisterEventBuilder, A.RunRequest, A._$RunRequestSerializer, A.ServiceExtensionRequest, A._$ServiceExtensionRequestSerializer, A.ServiceExtensionRequestBuilder, A.ServiceExtensionResponse, A._$ServiceExtensionResponseSerializer, A.ServiceExtensionResponseBuilder, A.BatchedStreamController, A.SocketClient, A.Int32, A.Int64, A._StackState, A.BaseClient, A.BaseRequest, A.BaseResponse, A.ClientException, A.MediaType, A.Level, A.LogRecord, A.Logger, A.Context, A.Style, A.ParsedPath, A.PathException, A.Pool, A.PoolResource, A.SourceFile, A.SourceLocationMixin, A.SourceSpanMixin, A.Highlighter, A._Highlight, A._Line, A.SourceLocation, A.SourceSpanException, A.StreamChannelMixin, A._GuaranteeSink, A.StreamChannelController, A.StringScanner, A.RNG, A.UuidV1, A.EventStreamProvider, A._EventStreamSubscription, A.BrowserWebSocket, A.WebSocketEvent, A.WebSocketException, A.WebSocketChannelException, A.DdcLibraryBundleRestarter, A.DdcRestarter, A.ReloadingManager, A.HotReloadFailedException, A.RequireRestarter]); + _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, A.SafeToStringHook, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapBase, A.Error, A.ListBase, A.SentinelValue, A.ListIterator, A.MappedIterator, A.WhereIterator, A.ExpandIterator, A.TakeIterator, A.SkipIterator, A.EmptyIterator, A.WhereTypeIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A.ConstantMap, A._KeysOrValuesOrElementsIterator, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A.LinkedHashMapValueIterator, A.LinkedHashMapEntryIterator, A._Record, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A._UnmodifiableNativeByteBufferView, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A._AsyncStarStreamController, A._IterationMarker, A.AsyncError, A.TimeoutException, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._StreamSinkWrapper, A._AddStreamState, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._DoneStreamSubscription, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A.SetBase, A._HashSetIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A._UnmodifiableMapMixin, A.MapView, A._ListQueueIterator, A._SplayTreeNode, A._SplayTree, A._SplayTreeIterator, A.Codec, A.Converter, A._Base64Encoder, A._Base64Decoder, A.ByteConversionSink, A._JsonStringifier, A._Utf8Encoder, A._Utf8Decoder, A._BigIntImpl, A.DateTime, A.Duration, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.IntegerDivisionByZeroException, A.MapEntry, A.Null, A._StringStackTrace, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.NullRejectionException, A._JSRandom, A._JSSecureRandom, A.AsyncMemoizer, A.DelegatingStreamSink, A.ErrorResult, A.ValueResult, A.StreamQueue, A._NextRequest, A._HasNextRequest, A.BuiltList, A.ListBuilder, A.BuiltListMultimap, A.ListMultimapBuilder, A.BuiltMap, A.MapBuilder, A.BuiltSet, A.SetBuilder, A.BuiltSetMultimap, A.SetMultimapBuilder, A.EnumClass, A.IndentingBuiltValueToStringHelper, A.JsonObject, A.FullType, A.BigIntSerializer, A.BoolSerializer, A.BuiltJsonSerializers, A.BuiltJsonSerializersBuilder, A.BuiltListMultimapSerializer, A.BuiltListSerializer, A.BuiltMapSerializer, A.BuiltSetMultimapSerializer, A.BuiltSetSerializer, A.DateTimeSerializer, A.DoubleSerializer, A.DurationSerializer, A.Int32Serializer, A.Int64Serializer, A.IntSerializer, A.JsonObjectSerializer, A.ListSerializer, A.MapSerializer, A.NullSerializer, A.NumSerializer, A.RegExpSerializer, A.SetSerializer, A.StringSerializer, A.Uint8ListSerializer, A.UriSerializer, A.CanonicalizedMap, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._UnorderedEquality, A._MapEntry, A.MapEquality, A.DeepCollectionEquality, A._QueueList_Object_ListMixin, A.BuildResult, A._$BuildStatusSerializer, A._$BuildResultSerializer, A.BuildResultBuilder, A.ConnectRequest, A._$ConnectRequestSerializer, A.ConnectRequestBuilder, A.DebugEvent, A.BatchedDebugEvents, A._$DebugEventSerializer, A._$BatchedDebugEventsSerializer, A.DebugEventBuilder, A.BatchedDebugEventsBuilder, A.DebugInfo, A._$DebugInfoSerializer, A.DebugInfoBuilder, A.DevToolsRequest, A.DevToolsResponse, A._$DevToolsRequestSerializer, A._$DevToolsResponseSerializer, A.DevToolsRequestBuilder, A.DevToolsResponseBuilder, A.ErrorResponse, A._$ErrorResponseSerializer, A.ErrorResponseBuilder, A.ExtensionRequest, A.ExtensionResponse, A.ExtensionEvent, A.BatchedEvents, A._$ExtensionRequestSerializer, A._$ExtensionResponseSerializer, A._$ExtensionEventSerializer, A._$BatchedEventsSerializer, A.ExtensionRequestBuilder, A.ExtensionResponseBuilder, A.ExtensionEventBuilder, A.BatchedEventsBuilder, A.HotReloadRequest, A._$HotReloadRequestSerializer, A.HotReloadRequestBuilder, A.HotReloadResponse, A._$HotReloadResponseSerializer, A.HotReloadResponseBuilder, A.HotRestartRequest, A._$HotRestartRequestSerializer, A.HotRestartRequestBuilder, A.HotRestartResponse, A._$HotRestartResponseSerializer, A.HotRestartResponseBuilder, A.IsolateExit, A.IsolateStart, A._$IsolateExitSerializer, A._$IsolateStartSerializer, A.IsolateExitBuilder, A.IsolateStartBuilder, A.RegisterEvent, A._$RegisterEventSerializer, A.RegisterEventBuilder, A.RunRequest, A._$RunRequestSerializer, A.ServiceExtensionRequest, A._$ServiceExtensionRequestSerializer, A.ServiceExtensionRequestBuilder, A.ServiceExtensionResponse, A._$ServiceExtensionResponseSerializer, A.ServiceExtensionResponseBuilder, A.BatchedStreamController, A.SocketClient, A.Int32, A.Int64, A._StackState, A.BaseClient, A.BaseRequest, A.BaseResponse, A.ClientException, A.MediaType, A.Level, A.LogRecord, A.Logger, A.Context, A.Style, A.ParsedPath, A.PathException, A.Pool, A.PoolResource, A.SourceFile, A.SourceLocationMixin, A.SourceSpanMixin, A.Highlighter, A._Highlight, A._Line, A.SourceLocation, A.SourceSpanException, A.StreamChannelMixin, A._GuaranteeSink, A.StreamChannelController, A.StringScanner, A.RNG, A.UuidV1, A.EventStreamProvider, A._EventStreamSubscription, A.BrowserWebSocket, A.WebSocketEvent, A.WebSocketException, A.WebSocketChannelException, A.DdcLibraryBundleRestarter, A.DdcRestarter, A.ReloadingManager, A.HotReloadFailedException, A.RequireRestarter]); _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JavaScriptBigInt, J.JavaScriptSymbol, J.JSNumber, J.JSString]); _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, J.JSArray, A.NativeByteBuffer, A.NativeTypedData]); _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction]); + _inherit(J.JSArraySafeToStringHook, A.SafeToStringHook); _inherit(J.JSUnmodifiableArray, J.JSArray); _inheritMany(J.JSNumber, [J.JSInt, J.JSNumNotInt]); _inheritMany(A.Iterable, [A._CastIterableBase, A.EfficientLengthIterable, A.MappedIterable, A.WhereIterable, A.ExpandIterable, A.TakeIterable, A.SkipIterable, A.WhereTypeIterable, A._KeysOrValues, A._AllMatchesIterable, A._StringAllMatchesIterable]); _inheritMany(A._CastIterableBase, [A.CastIterable, A.__CastListBase__CastIterableBase_ListMixin]); _inherit(A._EfficientLengthCastIterable, A.CastIterable); _inherit(A._CastListBase, A.__CastListBase__CastIterableBase_ListMixin); - _inheritMany(A.Closure, [A.Closure2Args, A.Closure0Args, A.Instantiation, A.TearOffClosure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._awaitOnObject_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A._Future_timeout_closure0, A.Stream_length_closure, A.Stream_first_closure0, A._CustomZone_bindUnaryCallback_closure, A._CustomZone_bindUnaryCallbackGuarded_closure, A._RootZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallbackGuarded_closure, A.runZonedGuarded_closure, A._CustomHashMap_closure, A._LinkedCustomHashMap_closure, A._BigIntImpl_hashCode_finish, A._Uri__makePath_closure, A.FutureOfJSAnyToJSPromise_get_toJS__closure, A.FutureOfVoidToJSPromise_get_toJS__closure, A.jsify__convert, A.promiseToFuture_closure, A.promiseToFuture_closure0, A.dartify_convert, A.StreamQueue__ensureListening_closure, A.BuiltListMultimap_BuiltListMultimap_closure, A.BuiltListMultimap_hashCode_closure, A.ListMultimapBuilder_replace_closure, A.BuiltMap_BuiltMap_closure, A.BuiltMap_hashCode_closure, A.BuiltSet_hashCode_closure, A.BuiltSetMultimap_hashCode_closure, A.SetMultimapBuilder_replace_closure, A.newBuiltValueToStringHelper_closure, A.BuiltListMultimapSerializer_serialize_closure, A.BuiltListMultimapSerializer_deserialize_closure, A.BuiltListSerializer_serialize_closure, A.BuiltListSerializer_deserialize_closure, A.BuiltSetMultimapSerializer_serialize_closure, A.BuiltSetMultimapSerializer_deserialize_closure, A.BuiltSetSerializer_serialize_closure, A.BuiltSetSerializer_deserialize_closure, A.CanonicalizedMap_keys_closure, A.ServiceExtensionResponse_ServiceExtensionResponse$fromResult_closure, A.WebSocketClient_stream_closure, A.BaseRequest_closure0, A.BrowserClient_send_closure, A.BrowserClient_send_closure0, A.ByteStream_toBytes_closure, A.MediaType_toString__closure, A.expectQuotedString_closure, A.Context_joinAll_closure, A.Context_split_closure, A._validateArgList_closure, A.Pool__runOnRelease_closure, A.Highlighter$__closure, A.Highlighter$___closure, A.Highlighter$__closure0, A.Highlighter__collateLines_closure, A.Highlighter__collateLines_closure1, A.Highlighter__collateLines__closure, A.Highlighter_highlight_closure, A.SseClient_closure0, A.SseClient_closure1, A.generateUuidV4_generateBits, A._GuaranteeSink__addError_closure, A._EventStreamSubscription_closure, A._EventStreamSubscription_onData_closure, A.BrowserWebSocket_connect_closure, A.BrowserWebSocket_connect_closure0, A.BrowserWebSocket_connect_closure1, A.BrowserWebSocket_connect_closure2, A.AdapterWebSocketChannel_closure, A.AdapterWebSocketChannel__closure, A.AdapterWebSocketChannel__closure0, A.AdapterWebSocketChannel_closure0, A.main__closure1, A.main__closure3, A.main___closure2, A.main___closure1, A.main__closure5, A.main___closure0, A.main___closure, A.main__closure7, A.main__closure8, A.main__closure9, A._sendConnectRequest_closure, A._launchCommunicationWithDebugExtension_closure, A._handleAuthRequest_closure, A._sendResponse_closure, A.DdcLibraryBundleRestarter_restart_closure, A.DdcLibraryBundleRestarter_hotReloadStart_closure0, A.DdcRestarter_restart_closure0, A.DdcRestarter_restart_closure, A.RequireRestarter__reloadModule_closure0, A.JSArrayExtension_toDartIterable_closure]); - _inheritMany(A.Closure2Args, [A._CastListBase_sort_closure, A.CastMap_forEach_closure, A.ConstantMap_map_closure, A.JsLinkedHashMap_addAll_closure, A.initHooks_closure0, A._awaitOnObject_closure0, A._wrapJsFunctionForAsync_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure0, A._Future_timeout_closure1, A._BufferingStreamSubscription_asFuture_closure0, A.LinkedHashMap_LinkedHashMap$from_closure, A.MapBase_mapToString_closure, A._JsonStringifier_writeMap_closure, A._BigIntImpl_hashCode_combine, A.Uri__parseIPv4Address_error, A.Uri_parseIPv6Address_error, A.Uri_parseIPv6Address_parseHex, A.FutureOfJSAnyToJSPromise_get_toJS_closure, A.FutureOfJSAnyToJSPromise_get_toJS__closure0, A.FutureOfVoidToJSPromise_get_toJS_closure, A.FutureOfVoidToJSPromise_get_toJS__closure0, A.StreamQueue__ensureListening_closure1, A.hashObjects_closure, A.MapBuilder_replace_closure, A.CanonicalizedMap_addAll_closure, A.CanonicalizedMap_forEach_closure, A.CanonicalizedMap_map_closure, A.safeUnawaited_closure, A.BaseRequest_closure, A.MediaType_toString_closure, A.Pool__runOnRelease_closure0, A.Highlighter__collateLines_closure0, A.generateUuidV4_printDigits, A.generateUuidV4_bitsDigits, A.main__closure4, A.main_closure0]); + _inheritMany(A.Closure, [A.Closure2Args, A.Closure0Args, A.Instantiation, A.TearOffClosure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._awaitOnObject_closure, A._asyncStarHelper_closure0, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A._Future_timeout_closure0, A.Stream_length_closure, A.Stream_first_closure0, A._CustomZone_bindUnaryCallback_closure, A._CustomZone_bindUnaryCallbackGuarded_closure, A._RootZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallbackGuarded_closure, A.runZonedGuarded_closure, A._CustomHashMap_closure, A._LinkedCustomHashMap_closure, A._BigIntImpl_hashCode_finish, A._Uri__makePath_closure, A.FutureOfJSAnyToJSPromise_get_toJS__closure, A.FutureOfVoidToJSPromise_get_toJS__closure, A.jsify__convert, A.promiseToFuture_closure, A.promiseToFuture_closure0, A.dartify_convert, A.StreamQueue__ensureListening_closure, A.BuiltListMultimap_BuiltListMultimap_closure, A.BuiltListMultimap_hashCode_closure, A.ListMultimapBuilder_replace_closure, A.BuiltMap_BuiltMap_closure, A.BuiltMap_hashCode_closure, A.BuiltSet_hashCode_closure, A.BuiltSetMultimap_hashCode_closure, A.SetMultimapBuilder_replace_closure, A.newBuiltValueToStringHelper_closure, A.BuiltListMultimapSerializer_serialize_closure, A.BuiltListMultimapSerializer_deserialize_closure, A.BuiltListSerializer_serialize_closure, A.BuiltListSerializer_deserialize_closure, A.BuiltSetMultimapSerializer_serialize_closure, A.BuiltSetMultimapSerializer_deserialize_closure, A.BuiltSetSerializer_serialize_closure, A.BuiltSetSerializer_deserialize_closure, A.ListSerializer_serialize_closure, A.SetSerializer_serialize_closure, A.CanonicalizedMap_keys_closure, A.ServiceExtensionResponse_ServiceExtensionResponse$fromResult_closure, A.WebSocketClient_stream_closure, A.BaseRequest_closure0, A.BrowserClient_send_closure, A._readBody_closure, A._readBody_closure0, A.ByteStream_toBytes_closure, A.MediaType_toString__closure, A.expectQuotedString_closure, A.Context_joinAll_closure, A.Context_split_closure, A._validateArgList_closure, A.Pool__runOnRelease_closure, A.Highlighter$__closure, A.Highlighter$___closure, A.Highlighter$__closure0, A.Highlighter__collateLines_closure, A.Highlighter__collateLines_closure1, A.Highlighter__collateLines__closure, A.Highlighter_highlight_closure, A.SseClient_closure0, A.SseClient_closure1, A._GuaranteeSink__addError_closure, A._EventStreamSubscription_closure, A._EventStreamSubscription_onData_closure, A.BrowserWebSocket_connect_closure, A.BrowserWebSocket_connect_closure0, A.BrowserWebSocket_connect_closure1, A.BrowserWebSocket_connect_closure2, A.AdapterWebSocketChannel_closure, A.AdapterWebSocketChannel__closure, A.AdapterWebSocketChannel__closure0, A.AdapterWebSocketChannel_closure0, A.main__closure1, A.main__closure3, A.main___closure2, A.main___closure1, A.main__closure5, A.main___closure0, A.main___closure, A.main__closure7, A.main__closure8, A.main__closure9, A._sendConnectRequest_closure, A._launchCommunicationWithDebugExtension_closure, A._handleAuthRequest_closure, A._sendResponse_closure, A.DdcLibraryBundleRestarter_restart_closure, A.DdcLibraryBundleRestarter_hotReloadStart_closure0, A.DdcRestarter_restart_closure0, A.DdcRestarter_restart_closure, A.RequireRestarter__reloadModule_closure0, A.JSArrayExtension_toDartIterable_closure]); + _inheritMany(A.Closure2Args, [A._CastListBase_sort_closure, A.CastMap_forEach_closure, A.ConstantMap_map_closure, A.JsLinkedHashMap_addAll_closure, A.initHooks_closure0, A._awaitOnObject_closure0, A._wrapJsFunctionForAsync_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure0, A._Future_timeout_closure1, A._AddStreamState_makeErrorHandler_closure, A._BufferingStreamSubscription_asFuture_closure0, A.LinkedHashMap_LinkedHashMap$from_closure, A.MapBase_mapToString_closure, A._JsonStringifier_writeMap_closure, A._BigIntImpl_hashCode_combine, A.Uri__parseIPv4Address_error, A.Uri_parseIPv6Address_error, A.Uri_parseIPv6Address_parseHex, A.FutureOfJSAnyToJSPromise_get_toJS_closure, A.FutureOfJSAnyToJSPromise_get_toJS__closure0, A.FutureOfVoidToJSPromise_get_toJS_closure, A.FutureOfVoidToJSPromise_get_toJS__closure0, A.StreamQueue__ensureListening_closure1, A.hashObjects_closure, A.MapBuilder_replace_closure, A.CanonicalizedMap_addAll_closure, A.CanonicalizedMap_forEach_closure, A.CanonicalizedMap_map_closure, A.safeUnawaited_closure, A.BaseRequest_closure, A.MediaType_toString_closure, A.Pool__runOnRelease_closure0, A.Highlighter__collateLines_closure0, A.main__closure4, A.main_closure0]); _inherit(A.CastList, A._CastListBase); _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A._JsonMap]); _inheritMany(A.Error, [A.LateError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A.RuntimeError, A._Error, A.JsonUnsupportedObjectError, A.AssertionError, A.ArgumentError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError, A.BuiltValueNullFieldError, A.BuiltValueNestedFieldError, A.DeserializationError]); _inherit(A.UnmodifiableListBase, A.ListBase); _inheritMany(A.UnmodifiableListBase, [A.CodeUnits, A.UnmodifiableListView]); - _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A.Future_Future$microtask_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainCoreFuture_closure, A._Future__asyncCompleteWithValue_closure, A._Future__asyncCompleteErrorObject_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A._Future_timeout_closure, A.Stream_length_closure0, A.Stream_first_closure, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._BufferingStreamSubscription_asFuture_closure, A._BufferingStreamSubscription_asFuture__closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._cancelAndValue_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A._Utf8Decoder__decoder_closure, A._Utf8Decoder__decoderNonfatal_closure, A.StreamQueue__ensureListening_closure0, A.Serializers_Serializers_closure, A.Serializers_Serializers_closure0, A.Serializers_Serializers_closure1, A.Serializers_Serializers_closure2, A.Serializers_Serializers_closure3, A._$serializers_closure, A._$serializers_closure0, A.BatchedStreamController__hasEventOrTimeOut_closure, A.BatchedStreamController__hasEventDuring_closure, A.MediaType_MediaType$parse_closure, A.Logger_Logger_closure, A.Highlighter_closure, A.Highlighter__writeFileStart_closure, A.Highlighter__writeMultilineHighlights_closure, A.Highlighter__writeMultilineHighlights_closure0, A.Highlighter__writeMultilineHighlights_closure1, A.Highlighter__writeMultilineHighlights_closure2, A.Highlighter__writeMultilineHighlights__closure, A.Highlighter__writeMultilineHighlights__closure0, A.Highlighter__writeHighlightedText_closure, A.Highlighter__writeIndicator_closure, A.Highlighter__writeIndicator_closure0, A.Highlighter__writeIndicator_closure1, A.Highlighter__writeSidebar_closure, A._Highlight_closure, A.SseClient_closure, A.SseClient__closure, A.SseClient__onOutgoingMessage_closure, A.GuaranteeChannel_closure, A.GuaranteeChannel__closure, A.AdapterWebSocketChannel__closure1, A.main_closure, A.main__closure, A.main__closure0, A.main__closure2, A.main__closure6, A.DdcLibraryBundleRestarter_hotReloadStart_closure, A.RequireRestarter__reload_closure, A.RequireRestarter__reloadModule_closure, A._createScript_closure, A._createScript__closure, A._createScript__closure0, A.runMain_closure]); + _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A._asyncStarHelper_closure, A._AsyncStarStreamController__resumeBody, A._AsyncStarStreamController__resumeBody_closure, A._AsyncStarStreamController_closure0, A._AsyncStarStreamController_closure1, A._AsyncStarStreamController_closure, A._AsyncStarStreamController__closure, A.Future_Future$microtask_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainCoreFuture_closure, A._Future__asyncCompleteWithValue_closure, A._Future__asyncCompleteErrorObject_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A._Future_timeout_closure, A.Stream_length_closure0, A.Stream_first_closure, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._AddStreamState_cancel_closure, A._BufferingStreamSubscription_asFuture_closure, A._BufferingStreamSubscription_asFuture__closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._cancelAndValue_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A._Utf8Decoder__decoder_closure, A._Utf8Decoder__decoderNonfatal_closure, A.StreamQueue__ensureListening_closure0, A.Serializers_Serializers_closure, A.Serializers_Serializers_closure0, A.Serializers_Serializers_closure1, A.Serializers_Serializers_closure2, A.Serializers_Serializers_closure3, A._$serializers_closure, A._$serializers_closure0, A.BatchedStreamController__hasEventOrTimeOut_closure, A.BatchedStreamController__hasEventDuring_closure, A.MediaType_MediaType$parse_closure, A.Logger_Logger_closure, A.Highlighter_closure, A.Highlighter__writeFileStart_closure, A.Highlighter__writeMultilineHighlights_closure, A.Highlighter__writeMultilineHighlights_closure0, A.Highlighter__writeMultilineHighlights_closure1, A.Highlighter__writeMultilineHighlights_closure2, A.Highlighter__writeMultilineHighlights__closure, A.Highlighter__writeMultilineHighlights__closure0, A.Highlighter__writeHighlightedText_closure, A.Highlighter__writeIndicator_closure, A.Highlighter__writeIndicator_closure0, A.Highlighter__writeIndicator_closure1, A.Highlighter__writeSidebar_closure, A._Highlight_closure, A.SseClient_closure, A.SseClient__closure, A.SseClient__onOutgoingMessage_closure, A.GuaranteeChannel_closure, A.GuaranteeChannel__closure, A.AdapterWebSocketChannel__closure1, A.main_closure, A.main__closure, A.main__closure0, A.main__closure2, A.main__closure6, A.DdcLibraryBundleRestarter_hotReloadStart_closure, A.RequireRestarter__reload_closure, A.RequireRestarter__reloadModule_closure, A._createScript_closure, A._createScript__closure, A._createScript__closure0, A.runMain_closure]); _inheritMany(A.EfficientLengthIterable, [A.ListIterable, A.EmptyIterable, A.LinkedHashMapKeysIterable, A.LinkedHashMapValuesIterable, A.LinkedHashMapEntriesIterable, A._HashMapKeyIterable]); _inheritMany(A.ListIterable, [A.SubListIterable, A.MappedListIterable, A.ReversedListIterable, A.ListQueue, A._JsonMapKeyIterable]); _inherit(A.EfficientLengthMappedIterable, A.MappedIterable); @@ -28504,6 +29489,7 @@ _inherit(A.NullError, A.TypeError); _inheritMany(A.TearOffClosure, [A.StaticClosure, A.BoundClosure]); _inheritMany(A.JsLinkedHashMap, [A.JsIdentityLinkedHashMap, A._LinkedCustomHashMap]); + _inherit(A.NativeArrayBuffer, A.NativeByteBuffer); _inheritMany(A.NativeTypedData, [A.NativeByteData, A.NativeTypedArray]); _inheritMany(A.NativeTypedArray, [A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]); _inherit(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin); @@ -28518,6 +29504,7 @@ _inheritMany(A._StreamController, [A._AsyncStreamController, A._SyncStreamController]); _inherit(A._ControllerStream, A._StreamImpl); _inheritMany(A._BufferingStreamSubscription, [A._ControllerSubscription, A._ForwardingStreamSubscription]); + _inherit(A._StreamControllerAddStreamState, A._AddStreamState); _inheritMany(A._DelayedEvent, [A._DelayedData, A._DelayedError]); _inherit(A._MapStream, A._ForwardingStream); _inheritMany(A._Zone, [A._CustomZone, A._RootZone]); @@ -28565,6 +29552,8 @@ _inherit(A._$BatchedEvents, A.BatchedEvents); _inherit(A._$HotReloadRequest, A.HotReloadRequest); _inherit(A._$HotReloadResponse, A.HotReloadResponse); + _inherit(A._$HotRestartRequest, A.HotRestartRequest); + _inherit(A._$HotRestartResponse, A.HotRestartResponse); _inherit(A._$IsolateExit, A.IsolateExit); _inherit(A._$IsolateStart, A.IsolateStart); _inherit(A._$RegisterEvent, A.RegisterEvent); @@ -28606,15 +29595,15 @@ var init = { G: typeof self != "undefined" ? self : globalThis, typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []}, - mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List", Object: "Object", Map: "Map"}, + mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List", Object: "Object", Map: "Map", JSObject: "JSObject"}, mangledNames: {}, - types: ["~()", "Null()", "~(JSObject)", "Object?(@)", "@(@)", "Null(Object,StackTrace)", "Null(@)", "~(@)", "Null(JSObject)", "~(Object?)", "JSObject()", "Object?(Object?)", "~(~())", "~(Object,StackTrace)", "bool(Object?)", "String(String)", "Future<~>()", "bool(Object?,Object?)", "int(Object?)", "bool(_Highlight)", "bool(String)", "@()", "int(int)", "~(Object[StackTrace?])", "Null(JavaScriptFunction,JavaScriptFunction)", "~(@,StackTrace)", "bool()", "int(int,int)", "String(Match)", "~(@,@)", "int()", "~(Object?,Object?)", "String(int,int)", "Null(JavaScriptFunction)", "int(@,@)", "MediaType()", "SetMultimapBuilder()", "Null(~())", "~(String,int)", "~(Zone,ZoneDelegate,Zone,Object,StackTrace)", "ListBuilder()", "ListBuilder()", "~(ServiceExtensionResponseBuilder)", "~(String,int?)", "String(@)", "bool(String,String)", "int(String)", "Null(@,StackTrace)", "~(List)", "@(String)", "~(String,String)", "JSObject(Object,StackTrace)", "Logger()", "Object?(~)", "String(String?)", "String?()", "int(_Line)", "~(int,@)", "Object(_Line)", "Object(_Highlight)", "int(_Highlight,_Highlight)", "List<_Line>(MapEntry>)", "int(int,@)", "SourceSpanWithContext()", "IndentingBuiltValueToStringHelper(String)", "~(String?)", "Future()", "ListBuilder()", "Null(WebSocket)", "~(WebSocketEvent)", "Null(Object)", "HotReloadResponse([~(HotReloadResponseBuilder)])", "JSObject(String[bool?])", "~(List)", "ListBuilder(BatchedDebugEventsBuilder)", "Null(String,String)", "DebugEventBuilder(DebugEventBuilder)", "0^(0^,0^)", "RegisterEventBuilder(RegisterEventBuilder)", "DevToolsRequestBuilder(DevToolsRequestBuilder)", "Future<~>(String)", "ConnectRequestBuilder(ConnectRequestBuilder)", "DebugInfoBuilder(DebugInfoBuilder)", "~(bool)", "ListMultimapBuilder()", "bool(bool)", "List(String)", "int(String,String)", "Null(JavaScriptObject)", "JSObject()()", "MapBuilder()", "@(@,String)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)", "0^()(Zone,ZoneDelegate,Zone,0^())", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map?)", "Null(String)", "SetBuilder()"], + types: ["~()", "Null()", "~(JSObject)", "Object?(@)", "Null(@)", "Null(Object,StackTrace)", "@(@)", "~(@)", "~(Object?)", "~(Object,StackTrace)", "JSObject()", "Object?(Object?)", "bool(Object?)", "~(~())", "Null(JSObject)", "int(Object?)", "String(String)", "bool(_Highlight)", "bool(Object?,Object?)", "Future<~>()", "Null(JavaScriptFunction)", "~(@,StackTrace)", "bool(String)", "int()", "~(@,@)", "~(Object?,Object?)", "@()", "int(int,int)", "String(Match)", "bool()", "Null(JavaScriptFunction,JavaScriptFunction)", "~(Object[StackTrace?])", "int(@,@)", "int(_Line)", "ListMultimapBuilder()", "MapBuilder()", "SetBuilder()", "int(int,@)", "Object?(~)", "JSObject(Object,StackTrace)", "~(String,int?)", "ListBuilder()", "ListBuilder()", "~(ServiceExtensionResponseBuilder)", "~(String,int)", "String(@)", "bool(String,String)", "int(String)", "Null(String,String[Object?])", "bool(Object)", "~(List)", "MediaType()", "~(String,String)", "int(int)", "Logger()", "~(Zone,ZoneDelegate,Zone,Object,StackTrace)", "String(String?)", "String?()", "ListBuilder()", "_Future<@>?()", "Object(_Line)", "Object(_Highlight)", "int(_Highlight,_Highlight)", "List<_Line>(MapEntry>)", "~(int,@)", "SourceSpanWithContext()", "Null(@,StackTrace)", "~(String?)", "Future()", "Null(~())", "Null(WebSocket)", "~(WebSocketEvent)", "Null(Object)", "HotRestartResponse([~(HotRestartResponseBuilder)])", "JSObject(String[bool?])", "~(List)", "ListBuilder(BatchedDebugEventsBuilder)", "Null(String,String)", "DebugEventBuilder(DebugEventBuilder)", "Null(String)", "RegisterEventBuilder(RegisterEventBuilder)", "DevToolsRequestBuilder(DevToolsRequestBuilder)", "Future<~>(String)", "ConnectRequestBuilder(ConnectRequestBuilder)", "IndentingBuiltValueToStringHelper(String)", "~(bool)", "@(String)", "bool(bool)", "List(String)", "int(String,String)", "Null(JavaScriptObject)", "JSObject()()", "SetMultimapBuilder()", "@(@,String)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)", "0^()(Zone,ZoneDelegate,Zone,0^())", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map?)", "0^(0^,0^)", "HotReloadResponse([~(HotReloadResponseBuilder)])", "DebugInfoBuilder(DebugInfoBuilder)"], interceptorsByTag: null, leafTags: null, arrayRti: Symbol("$ti"), rttc: {} }; - A._Universe_addRules(init.typeUniverse, JSON.parse('{"JavaScriptFunction":"LegacyJavaScriptObject","PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptObject":{"JSObject":[]},"JSArray":{"List":["1"],"JavaScriptObject":[],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"JSIndexable":["1"],"Iterable.E":"1"},"JSBool":{"bool":[],"TrustedGetRuntimeType":[]},"JSNull":{"Null":[],"TrustedGetRuntimeType":[]},"LegacyJavaScriptObject":{"JavaScriptObject":[],"JSObject":[]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"JavaScriptObject":[],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"JSIndexable":["1"],"Iterable.E":"1"},"ArrayIterator":{"Iterator":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSNumNotInt":{"double":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSString":{"String":[],"Comparable":["String"],"Pattern":[],"JSIndexable":["@"],"TrustedGetRuntimeType":[]},"_CastIterableBase":{"Iterable":["2"]},"CastIterator":{"Iterator":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","Iterable.E":"2"},"CastMap":{"MapBase":["3","4"],"Map":["3","4"],"MapBase.K":"3","MapBase.V":"4"},"LateError":{"Error":[]},"CodeUnits":{"ListBase":["int"],"UnmodifiableListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListBase.E":"int","Iterable.E":"int","UnmodifiableListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"ListIterator":{"Iterator":["1"]},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedIterator":{"Iterator":["2"]},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"WhereIterator":{"Iterator":["1"]},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"ExpandIterator":{"Iterator":["2"]},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"TakeIterator":{"Iterator":["1"]},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterator":{"Iterator":["1"]},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"EmptyIterator":{"Iterator":["1"]},"WhereTypeIterable":{"Iterable":["1"],"Iterable.E":"1"},"WhereTypeIterator":{"Iterator":["1"]},"UnmodifiableListBase":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_KeysOrValues":{"Iterable":["1"],"Iterable.E":"1"},"_KeysOrValuesOrElementsIterator":{"Iterator":["1"]},"Instantiation":{"Closure":[],"Function":[]},"Instantiation1":{"Closure":[],"Function":[]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"NullThrownFromJavaScriptException":{"Exception":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Closure":[],"Function":[]},"Closure2Args":{"Closure":[],"Function":[]},"TearOffClosure":{"Closure":[],"Function":[]},"StaticClosure":{"Closure":[],"Function":[]},"BoundClosure":{"Closure":[],"Function":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapBase":["1","2"],"LinkedHashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"LinkedHashMapKeysIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"LinkedHashMapKeyIterator":{"Iterator":["1"]},"LinkedHashMapValuesIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"LinkedHashMapValueIterator":{"Iterator":["1"]},"LinkedHashMapEntriesIterable":{"EfficientLengthIterable":["MapEntry<1,2>"],"Iterable":["MapEntry<1,2>"],"Iterable.E":"MapEntry<1,2>"},"LinkedHashMapEntryIterator":{"Iterator":["MapEntry<1,2>"]},"JsIdentityLinkedHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"LinkedHashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"JSSyntaxRegExp":{"RegExp":[],"Pattern":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"_AllMatchesIterator":{"Iterator":["RegExpMatch"]},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"_StringAllMatchesIterator":{"Iterator":["Match"]},"NativeByteBuffer":{"JavaScriptObject":[],"JSObject":[],"ByteBuffer":[],"TrustedGetRuntimeType":[]},"NativeTypedData":{"JavaScriptObject":[],"JSObject":[]},"_UnmodifiableNativeByteBufferView":{"ByteBuffer":[]},"NativeByteData":{"JavaScriptObject":[],"ByteData":[],"JSObject":[],"TrustedGetRuntimeType":[]},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"],"JavaScriptObject":[],"JSObject":[],"JSIndexable":["1"]},"NativeTypedArrayOfDouble":{"ListBase":["double"],"NativeTypedArray":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"]},"NativeTypedArrayOfInt":{"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"]},"NativeFloat32List":{"Float32List":[],"ListBase":["double"],"NativeTypedArray":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double","FixedLengthListMixin.E":"double"},"NativeFloat64List":{"Float64List":[],"ListBase":["double"],"NativeTypedArray":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double","FixedLengthListMixin.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"Int16List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"Int32List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"Int8List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"Uint16List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"Uint32List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"Uint8ClampedList":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"Uint8List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"_Type":{"Type":[]},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_TimerImpl":{"Timer":[]},"_AsyncAwaitCompleter":{"Completer":["1"]},"_Completer":{"Completer":["1"]},"_AsyncCompleter":{"_Completer":["1"],"Completer":["1"]},"_SyncCompleter":{"_Completer":["1"],"Completer":["1"]},"_Future":{"Future":["1"]},"StreamView":{"Stream":["1"]},"_StreamController":{"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_AsyncStreamController":{"_AsyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_SyncStreamController":{"_SyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamSinkWrapper":{"StreamSink":["1"]},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_DelayedData":{"_DelayedEvent":["1"]},"_DelayedError":{"_DelayedEvent":["@"]},"_DelayedDone":{"_DelayedEvent":["@"]},"_DoneStreamSubscription":{"StreamSubscription":["1"]},"_EmptyStream":{"Stream":["1"],"Stream.T":"1"},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_EventSink":["2"],"_EventDispatch":["2"],"_BufferingStreamSubscription.T":"2"},"_MapStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"_Zone":[],"Zone":[]},"_RootZone":{"_Zone":[],"Zone":[]},"_SplayTreeSetNode":{"_SplayTreeNode":["1","_SplayTreeSetNode<1>"],"_SplayTreeNode.K":"1","_SplayTreeNode.1":"_SplayTreeSetNode<1>"},"_HashMap":{"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_IdentityHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_CustomHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashMapKeyIterator":{"Iterator":["1"]},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"LinkedHashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_HashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashSetIterator":{"Iterator":["1"]},"_LinkedHashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedHashSetIterator":{"Iterator":["1"]},"UnmodifiableListView":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","Iterable.E":"1","UnmodifiableListMixin.E":"1"},"ListBase":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":["1","2"],"MapView":["1","2"],"_UnmodifiableMapMixin":["1","2"],"Map":["1","2"]},"ListQueue":{"Queue":["1"],"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_ListQueueIterator":{"Iterator":["1"]},"SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SetBase":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SplayTreeIterator":{"Iterator":["3"]},"_SplayTreeKeyIterator":{"_SplayTreeIterator":["1","2","1"],"Iterator":["1"],"_SplayTreeIterator.K":"1","_SplayTreeIterator.T":"1","_SplayTreeIterator.1":"2"},"SplayTreeSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"_SplayTree":["1","_SplayTreeSetNode<1>"],"Iterable":["1"],"Iterable.E":"1","_SplayTree.1":"_SplayTreeSetNode<1>","_SplayTree.K":"1"},"Encoding":{"Codec":["String","List"]},"_JsonMap":{"MapBase":["String","@"],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"AsciiCodec":{"Encoding":[],"Codec":["String","List"],"Codec.S":"String"},"_UnicodeSubsetEncoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"AsciiEncoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"_UnicodeSubsetDecoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"AsciiDecoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Base64Codec":{"Codec":["List","String"],"Codec.S":"List"},"Base64Encoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Base64Decoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Converter":{"StreamTransformer":["1","2"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"],"Codec.S":"Object?"},"JsonEncoder":{"Converter":["Object?","String"],"StreamTransformer":["Object?","String"]},"JsonDecoder":{"Converter":["String","Object?"],"StreamTransformer":["String","Object?"]},"Latin1Codec":{"Encoding":[],"Codec":["String","List"],"Codec.S":"String"},"Latin1Encoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Latin1Decoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Utf8Codec":{"Encoding":[],"Codec":["String","List"],"Codec.S":"String"},"Utf8Encoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Utf8Decoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"BigInt":{"Comparable":["BigInt"]},"DateTime":{"Comparable":["DateTime"]},"double":{"num":[],"Comparable":["num"]},"Duration":{"Comparable":["Duration"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExp":{"Pattern":[]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"],"Pattern":[]},"_BigIntImpl":{"BigInt":[],"Comparable":["BigInt"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"_Exception":{"Exception":[]},"FormatException":{"Exception":[]},"IntegerDivisionByZeroException":{"Exception":[],"Error":[]},"_StringStackTrace":{"StackTrace":[]},"StringBuffer":{"StringSink":[]},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"NullRejectionException":{"Exception":[]},"DelegatingStreamSink":{"StreamSink":["1"]},"ErrorResult":{"Result":["0&"]},"ValueResult":{"Result":["1"]},"_NextRequest":{"_EventRequest":["1"]},"_HasNextRequest":{"_EventRequest":["1"]},"BuiltList":{"Iterable":["1"]},"_BuiltList":{"BuiltList":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltListMultimap":{"BuiltListMultimap":["1","2"]},"_BuiltMap":{"BuiltMap":["1","2"]},"BuiltSet":{"Iterable":["1"]},"_BuiltSet":{"BuiltSet":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltSetMultimap":{"BuiltSetMultimap":["1","2"]},"BuiltValueNullFieldError":{"Error":[]},"BuiltValueNestedFieldError":{"Error":[]},"BoolJsonObject":{"JsonObject":[]},"ListJsonObject":{"JsonObject":[]},"MapJsonObject":{"JsonObject":[]},"NumJsonObject":{"JsonObject":[]},"StringJsonObject":{"JsonObject":[]},"DeserializationError":{"Error":[]},"BigIntSerializer":{"PrimitiveSerializer":["BigInt"],"Serializer":["BigInt"]},"BoolSerializer":{"PrimitiveSerializer":["bool"],"Serializer":["bool"]},"BuiltJsonSerializers":{"Serializers":[]},"BuiltListMultimapSerializer":{"StructuredSerializer":["BuiltListMultimap<@,@>"],"Serializer":["BuiltListMultimap<@,@>"]},"BuiltListSerializer":{"StructuredSerializer":["BuiltList<@>"],"Serializer":["BuiltList<@>"]},"BuiltMapSerializer":{"StructuredSerializer":["BuiltMap<@,@>"],"Serializer":["BuiltMap<@,@>"]},"BuiltSetMultimapSerializer":{"StructuredSerializer":["BuiltSetMultimap<@,@>"],"Serializer":["BuiltSetMultimap<@,@>"]},"BuiltSetSerializer":{"StructuredSerializer":["BuiltSet<@>"],"Serializer":["BuiltSet<@>"]},"DateTimeSerializer":{"PrimitiveSerializer":["DateTime"],"Serializer":["DateTime"]},"DoubleSerializer":{"PrimitiveSerializer":["double"],"Serializer":["double"]},"DurationSerializer":{"PrimitiveSerializer":["Duration"],"Serializer":["Duration"]},"Int32Serializer":{"PrimitiveSerializer":["Int32"],"Serializer":["Int32"]},"Int64Serializer":{"PrimitiveSerializer":["Int64"],"Serializer":["Int64"]},"IntSerializer":{"PrimitiveSerializer":["int"],"Serializer":["int"]},"JsonObjectSerializer":{"PrimitiveSerializer":["JsonObject"],"Serializer":["JsonObject"]},"NullSerializer":{"PrimitiveSerializer":["Null"],"Serializer":["Null"]},"NumSerializer":{"PrimitiveSerializer":["num"],"Serializer":["num"]},"RegExpSerializer":{"PrimitiveSerializer":["RegExp"],"Serializer":["RegExp"]},"StringSerializer":{"PrimitiveSerializer":["String"],"Serializer":["String"]},"Uint8ListSerializer":{"PrimitiveSerializer":["Uint8List"],"Serializer":["Uint8List"]},"UriSerializer":{"PrimitiveSerializer":["Uri"],"Serializer":["Uri"]},"CanonicalizedMap":{"Map":["2","3"]},"DefaultEquality":{"Equality":["1"]},"IterableEquality":{"Equality":["Iterable<1>"]},"ListEquality":{"Equality":["List<1>"]},"_UnorderedEquality":{"Equality":["2"]},"SetEquality":{"_UnorderedEquality":["1","Set<1>"],"Equality":["Set<1>"],"_UnorderedEquality.E":"1","_UnorderedEquality.T":"Set<1>"},"MapEquality":{"Equality":["Map<1,2>"]},"DeepCollectionEquality":{"Equality":["@"]},"QueueList":{"ListBase":["1"],"List":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","QueueList.E":"1","Iterable.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListBase":["2"],"List":["2"],"Queue":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","QueueList.E":"2","Iterable.E":"2"},"_$BuildStatusSerializer":{"PrimitiveSerializer":["BuildStatus"],"Serializer":["BuildStatus"]},"_$BuildResultSerializer":{"StructuredSerializer":["BuildResult"],"Serializer":["BuildResult"]},"_$BuildResult":{"BuildResult":[]},"_$ConnectRequestSerializer":{"StructuredSerializer":["ConnectRequest"],"Serializer":["ConnectRequest"]},"_$ConnectRequest":{"ConnectRequest":[]},"_$DebugEventSerializer":{"StructuredSerializer":["DebugEvent"],"Serializer":["DebugEvent"]},"_$BatchedDebugEventsSerializer":{"StructuredSerializer":["BatchedDebugEvents"],"Serializer":["BatchedDebugEvents"]},"_$DebugEvent":{"DebugEvent":[]},"_$BatchedDebugEvents":{"BatchedDebugEvents":[]},"_$DebugInfoSerializer":{"StructuredSerializer":["DebugInfo"],"Serializer":["DebugInfo"]},"_$DebugInfo":{"DebugInfo":[]},"_$DevToolsRequestSerializer":{"StructuredSerializer":["DevToolsRequest"],"Serializer":["DevToolsRequest"]},"_$DevToolsResponseSerializer":{"StructuredSerializer":["DevToolsResponse"],"Serializer":["DevToolsResponse"]},"_$DevToolsRequest":{"DevToolsRequest":[]},"_$DevToolsResponse":{"DevToolsResponse":[]},"_$ErrorResponseSerializer":{"StructuredSerializer":["ErrorResponse"],"Serializer":["ErrorResponse"]},"_$ErrorResponse":{"ErrorResponse":[]},"_$ExtensionRequestSerializer":{"StructuredSerializer":["ExtensionRequest"],"Serializer":["ExtensionRequest"]},"_$ExtensionResponseSerializer":{"StructuredSerializer":["ExtensionResponse"],"Serializer":["ExtensionResponse"]},"_$ExtensionEventSerializer":{"StructuredSerializer":["ExtensionEvent"],"Serializer":["ExtensionEvent"]},"_$BatchedEventsSerializer":{"StructuredSerializer":["BatchedEvents"],"Serializer":["BatchedEvents"]},"_$ExtensionRequest":{"ExtensionRequest":[]},"_$ExtensionResponse":{"ExtensionResponse":[]},"_$ExtensionEvent":{"ExtensionEvent":[]},"_$BatchedEvents":{"BatchedEvents":[]},"_$HotReloadRequestSerializer":{"StructuredSerializer":["HotReloadRequest"],"Serializer":["HotReloadRequest"]},"_$HotReloadRequest":{"HotReloadRequest":[]},"_$HotReloadResponseSerializer":{"StructuredSerializer":["HotReloadResponse"],"Serializer":["HotReloadResponse"]},"_$HotReloadResponse":{"HotReloadResponse":[]},"_$IsolateExitSerializer":{"StructuredSerializer":["IsolateExit"],"Serializer":["IsolateExit"]},"_$IsolateStartSerializer":{"StructuredSerializer":["IsolateStart"],"Serializer":["IsolateStart"]},"_$IsolateExit":{"IsolateExit":[]},"_$IsolateStart":{"IsolateStart":[]},"_$RegisterEventSerializer":{"StructuredSerializer":["RegisterEvent"],"Serializer":["RegisterEvent"]},"_$RegisterEvent":{"RegisterEvent":[]},"_$RunRequestSerializer":{"StructuredSerializer":["RunRequest"],"Serializer":["RunRequest"]},"_$RunRequest":{"RunRequest":[]},"_$ServiceExtensionRequestSerializer":{"StructuredSerializer":["ServiceExtensionRequest"],"Serializer":["ServiceExtensionRequest"]},"_$ServiceExtensionRequest":{"ServiceExtensionRequest":[]},"_$ServiceExtensionResponseSerializer":{"StructuredSerializer":["ServiceExtensionResponse"],"Serializer":["ServiceExtensionResponse"]},"_$ServiceExtensionResponse":{"ServiceExtensionResponse":[]},"SseSocketClient":{"SocketClient":[]},"WebSocketClient":{"SocketClient":[]},"Int32":{"Comparable":["Object"]},"Int64":{"Comparable":["Object"]},"ByteStream":{"StreamView":["List"],"Stream":["List"],"Stream.T":"List","StreamView.T":"List"},"ClientException":{"Exception":[]},"Request":{"BaseRequest":[]},"StreamedResponseV2":{"StreamedResponse":[]},"CaseInsensitiveMap":{"CanonicalizedMap":["String","String","1"],"Map":["String","1"],"CanonicalizedMap.K":"String","CanonicalizedMap.V":"1","CanonicalizedMap.C":"String"},"Level":{"Comparable":["Level"]},"PathException":{"Exception":[]},"PosixStyle":{"InternalStyle":[]},"UrlStyle":{"InternalStyle":[]},"WindowsStyle":{"InternalStyle":[]},"FileLocation":{"SourceLocation":[],"Comparable":["SourceLocation"]},"_FileSpan":{"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceLocation":{"Comparable":["SourceLocation"]},"SourceLocationMixin":{"SourceLocation":[],"Comparable":["SourceLocation"]},"SourceSpan":{"Comparable":["SourceSpan"]},"SourceSpanBase":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanException":{"Exception":[]},"SourceSpanFormatException":{"FormatException":[],"Exception":[]},"SourceSpanMixin":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanWithContext":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SseClient":{"StreamChannel":["String?"]},"GuaranteeChannel":{"StreamChannel":["1"]},"_GuaranteeSink":{"StreamSink":["1"]},"StreamChannelMixin":{"StreamChannel":["1"]},"StringScannerException":{"FormatException":[],"Exception":[]},"_EventStream":{"Stream":["1"],"Stream.T":"1"},"_EventStreamSubscription":{"StreamSubscription":["1"]},"BrowserWebSocket":{"WebSocket":[]},"TextDataReceived":{"WebSocketEvent":[]},"BinaryDataReceived":{"WebSocketEvent":[]},"CloseReceived":{"WebSocketEvent":[]},"WebSocketException":{"Exception":[]},"WebSocketConnectionClosed":{"Exception":[]},"AdapterWebSocketChannel":{"WebSocketChannel":[],"StreamChannel":["@"]},"_WebSocketSink":{"WebSocketSink":[],"DelegatingStreamSink":["@"],"StreamSink":["@"],"DelegatingStreamSink.T":"@"},"WebSocketChannelException":{"Exception":[]},"DdcLibraryBundleRestarter":{"Restarter":[]},"DdcRestarter":{"Restarter":[]},"RequireRestarter":{"Restarter":[]},"HotReloadFailedException":{"Exception":[]},"Int8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8ClampedList":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Float32List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"Float64List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]}}')); + A._Universe_addRules(init.typeUniverse, JSON.parse('{"JavaScriptFunction":"LegacyJavaScriptObject","PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","NativeSharedArrayBuffer":"NativeByteBuffer","JavaScriptObject":{"JSObject":[]},"JSArray":{"List":["1"],"JavaScriptObject":[],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"JSIndexable":["1"],"Iterable.E":"1"},"JSBool":{"bool":[],"TrustedGetRuntimeType":[]},"JSNull":{"Null":[],"TrustedGetRuntimeType":[]},"LegacyJavaScriptObject":{"JavaScriptObject":[],"JSObject":[]},"JSArraySafeToStringHook":{"SafeToStringHook":[]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"JavaScriptObject":[],"EfficientLengthIterable":["1"],"JSObject":[],"Iterable":["1"],"JSIndexable":["1"],"Iterable.E":"1"},"ArrayIterator":{"Iterator":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSNumNotInt":{"double":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSString":{"String":[],"Comparable":["String"],"Pattern":[],"JSIndexable":["@"],"TrustedGetRuntimeType":[]},"_CastIterableBase":{"Iterable":["2"]},"CastIterator":{"Iterator":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","Iterable.E":"2"},"CastMap":{"MapBase":["3","4"],"Map":["3","4"],"MapBase.K":"3","MapBase.V":"4"},"LateError":{"Error":[]},"CodeUnits":{"ListBase":["int"],"UnmodifiableListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListBase.E":"int","Iterable.E":"int","UnmodifiableListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"ListIterator":{"Iterator":["1"]},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedIterator":{"Iterator":["2"]},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"WhereIterator":{"Iterator":["1"]},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"ExpandIterator":{"Iterator":["2"]},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"TakeIterator":{"Iterator":["1"]},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterator":{"Iterator":["1"]},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"EmptyIterator":{"Iterator":["1"]},"WhereTypeIterable":{"Iterable":["1"],"Iterable.E":"1"},"WhereTypeIterator":{"Iterator":["1"]},"UnmodifiableListBase":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_KeysOrValues":{"Iterable":["1"],"Iterable.E":"1"},"_KeysOrValuesOrElementsIterator":{"Iterator":["1"]},"Instantiation":{"Closure":[],"Function":[]},"Instantiation1":{"Closure":[],"Function":[]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"NullThrownFromJavaScriptException":{"Exception":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Closure":[],"Function":[]},"Closure2Args":{"Closure":[],"Function":[]},"TearOffClosure":{"Closure":[],"Function":[]},"StaticClosure":{"Closure":[],"Function":[]},"BoundClosure":{"Closure":[],"Function":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapBase":["1","2"],"LinkedHashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"LinkedHashMapKeysIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"LinkedHashMapKeyIterator":{"Iterator":["1"]},"LinkedHashMapValuesIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"LinkedHashMapValueIterator":{"Iterator":["1"]},"LinkedHashMapEntriesIterable":{"EfficientLengthIterable":["MapEntry<1,2>"],"Iterable":["MapEntry<1,2>"],"Iterable.E":"MapEntry<1,2>"},"LinkedHashMapEntryIterator":{"Iterator":["MapEntry<1,2>"]},"JsIdentityLinkedHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"LinkedHashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"JSSyntaxRegExp":{"RegExp":[],"Pattern":[]},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"_AllMatchesIterator":{"Iterator":["RegExpMatch"]},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"_StringAllMatchesIterator":{"Iterator":["Match"]},"NativeByteBuffer":{"JavaScriptObject":[],"JSObject":[],"ByteBuffer":[],"TrustedGetRuntimeType":[]},"NativeArrayBuffer":{"NativeByteBuffer":[],"JavaScriptObject":[],"JSObject":[],"ByteBuffer":[],"TrustedGetRuntimeType":[]},"NativeTypedData":{"JavaScriptObject":[],"JSObject":[]},"_UnmodifiableNativeByteBufferView":{"ByteBuffer":[]},"NativeByteData":{"JavaScriptObject":[],"ByteData":[],"JSObject":[],"TrustedGetRuntimeType":[]},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"],"JavaScriptObject":[],"JSObject":[],"JSIndexable":["1"]},"NativeTypedArrayOfDouble":{"ListBase":["double"],"NativeTypedArray":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"]},"NativeTypedArrayOfInt":{"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"]},"NativeFloat32List":{"Float32List":[],"ListBase":["double"],"NativeTypedArray":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double","FixedLengthListMixin.E":"double"},"NativeFloat64List":{"Float64List":[],"ListBase":["double"],"NativeTypedArray":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"JavaScriptObject":[],"EfficientLengthIterable":["double"],"JSObject":[],"JSIndexable":["double"],"Iterable":["double"],"FixedLengthListMixin":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double","Iterable.E":"double","FixedLengthListMixin.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"Int16List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"Int32List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"Int8List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"Uint16List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"Uint32List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"Uint8ClampedList":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"Uint8List":[],"ListBase":["int"],"NativeTypedArray":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"JavaScriptObject":[],"EfficientLengthIterable":["int"],"JSObject":[],"JSIndexable":["int"],"Iterable":["int"],"FixedLengthListMixin":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int","Iterable.E":"int","FixedLengthListMixin.E":"int"},"_Type":{"Type":[]},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_Future":{"Future":["1"]},"_TimerImpl":{"Timer":[]},"_AsyncAwaitCompleter":{"Completer":["1"]},"_Completer":{"Completer":["1"]},"_AsyncCompleter":{"_Completer":["1"],"Completer":["1"]},"_SyncCompleter":{"_Completer":["1"],"Completer":["1"]},"StreamView":{"Stream":["1"]},"_StreamController":{"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_AsyncStreamController":{"_AsyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_SyncStreamController":{"_SyncStreamControllerDispatch":["1"],"_StreamController":["1"],"StreamController":["1"],"StreamSink":["1"],"_StreamControllerLifecycle":["1"],"_EventSink":["1"],"_EventDispatch":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamSinkWrapper":{"StreamSink":["1"]},"_StreamControllerAddStreamState":{"_AddStreamState":["1"]},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_EventSink":["1"],"_EventDispatch":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_DelayedData":{"_DelayedEvent":["1"]},"_DelayedError":{"_DelayedEvent":["@"]},"_DelayedDone":{"_DelayedEvent":["@"]},"_DoneStreamSubscription":{"StreamSubscription":["1"]},"_EmptyStream":{"Stream":["1"],"Stream.T":"1"},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_EventSink":["2"],"_EventDispatch":["2"],"_BufferingStreamSubscription.T":"2"},"_MapStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"_Zone":[],"Zone":[]},"_RootZone":{"_Zone":[],"Zone":[]},"_SplayTreeSetNode":{"_SplayTreeNode":["1","_SplayTreeSetNode<1>"],"_SplayTreeNode.K":"1","_SplayTreeNode.1":"_SplayTreeSetNode<1>"},"_HashMap":{"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_IdentityHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_CustomHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"HashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashMapKeyIterator":{"Iterator":["1"]},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"LinkedHashMap":["1","2"],"Map":["1","2"],"MapBase.K":"1","MapBase.V":"2"},"_HashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_HashSetIterator":{"Iterator":["1"]},"_LinkedHashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedHashSetIterator":{"Iterator":["1"]},"UnmodifiableListView":{"ListBase":["1"],"UnmodifiableListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","Iterable.E":"1","UnmodifiableListMixin.E":"1"},"ListBase":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"Map":["1","2"]},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":["1","2"],"MapView":["1","2"],"_UnmodifiableMapMixin":["1","2"],"Map":["1","2"]},"ListQueue":{"Queue":["1"],"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_ListQueueIterator":{"Iterator":["1"]},"SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SetBase":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SplayTreeIterator":{"Iterator":["3"]},"_SplayTreeKeyIterator":{"_SplayTreeIterator":["1","2","1"],"Iterator":["1"],"_SplayTreeIterator.K":"1","_SplayTreeIterator.T":"1","_SplayTreeIterator.1":"2"},"SplayTreeSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"_SplayTree":["1","_SplayTreeSetNode<1>"],"Iterable":["1"],"Iterable.E":"1","_SplayTree.1":"_SplayTreeSetNode<1>","_SplayTree.K":"1"},"Encoding":{"Codec":["String","List"]},"_JsonMap":{"MapBase":["String","@"],"Map":["String","@"],"MapBase.K":"String","MapBase.V":"@"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"AsciiCodec":{"Encoding":[],"Codec":["String","List"],"Codec.S":"String"},"_UnicodeSubsetEncoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"AsciiEncoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"_UnicodeSubsetDecoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"AsciiDecoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Base64Codec":{"Codec":["List","String"],"Codec.S":"List"},"Base64Encoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Base64Decoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Converter":{"StreamTransformer":["1","2"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"],"Codec.S":"Object?"},"JsonEncoder":{"Converter":["Object?","String"],"StreamTransformer":["Object?","String"]},"JsonDecoder":{"Converter":["String","Object?"],"StreamTransformer":["String","Object?"]},"Latin1Codec":{"Encoding":[],"Codec":["String","List"],"Codec.S":"String"},"Latin1Encoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Latin1Decoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"Utf8Codec":{"Encoding":[],"Codec":["String","List"],"Codec.S":"String"},"Utf8Encoder":{"Converter":["String","List"],"StreamTransformer":["String","List"]},"Utf8Decoder":{"Converter":["List","String"],"StreamTransformer":["List","String"]},"BigInt":{"Comparable":["BigInt"]},"DateTime":{"Comparable":["DateTime"]},"double":{"num":[],"Comparable":["num"]},"Duration":{"Comparable":["Duration"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExp":{"Pattern":[]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"],"Pattern":[]},"_BigIntImpl":{"BigInt":[],"Comparable":["BigInt"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"_Exception":{"Exception":[]},"FormatException":{"Exception":[]},"IntegerDivisionByZeroException":{"Exception":[],"Error":[]},"_StringStackTrace":{"StackTrace":[]},"StringBuffer":{"StringSink":[]},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"NullRejectionException":{"Exception":[]},"DelegatingStreamSink":{"StreamSink":["1"]},"ErrorResult":{"Result":["0&"]},"ValueResult":{"Result":["1"]},"_NextRequest":{"_EventRequest":["1"]},"_HasNextRequest":{"_EventRequest":["1"]},"BuiltList":{"Iterable":["1"]},"_BuiltList":{"BuiltList":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltListMultimap":{"BuiltListMultimap":["1","2"]},"_BuiltMap":{"BuiltMap":["1","2"]},"BuiltSet":{"Iterable":["1"]},"_BuiltSet":{"BuiltSet":["1"],"Iterable":["1"],"Iterable.E":"1"},"_BuiltSetMultimap":{"BuiltSetMultimap":["1","2"]},"BuiltValueNullFieldError":{"Error":[]},"BuiltValueNestedFieldError":{"Error":[]},"BoolJsonObject":{"JsonObject":[]},"ListJsonObject":{"JsonObject":[]},"MapJsonObject":{"JsonObject":[]},"NumJsonObject":{"JsonObject":[]},"StringJsonObject":{"JsonObject":[]},"DeserializationError":{"Error":[]},"BigIntSerializer":{"PrimitiveSerializer":["BigInt"],"Serializer":["BigInt"]},"BoolSerializer":{"PrimitiveSerializer":["bool"],"Serializer":["bool"]},"BuiltJsonSerializers":{"Serializers":[]},"BuiltListMultimapSerializer":{"StructuredSerializer":["BuiltListMultimap<@,@>"],"Serializer":["BuiltListMultimap<@,@>"]},"BuiltListSerializer":{"StructuredSerializer":["BuiltList<@>"],"Serializer":["BuiltList<@>"]},"BuiltMapSerializer":{"StructuredSerializer":["BuiltMap<@,@>"],"Serializer":["BuiltMap<@,@>"]},"BuiltSetMultimapSerializer":{"StructuredSerializer":["BuiltSetMultimap<@,@>"],"Serializer":["BuiltSetMultimap<@,@>"]},"BuiltSetSerializer":{"StructuredSerializer":["BuiltSet<@>"],"Serializer":["BuiltSet<@>"]},"DateTimeSerializer":{"PrimitiveSerializer":["DateTime"],"Serializer":["DateTime"]},"DoubleSerializer":{"PrimitiveSerializer":["double"],"Serializer":["double"]},"DurationSerializer":{"PrimitiveSerializer":["Duration"],"Serializer":["Duration"]},"Int32Serializer":{"PrimitiveSerializer":["Int32"],"Serializer":["Int32"]},"Int64Serializer":{"PrimitiveSerializer":["Int64"],"Serializer":["Int64"]},"IntSerializer":{"PrimitiveSerializer":["int"],"Serializer":["int"]},"JsonObjectSerializer":{"PrimitiveSerializer":["JsonObject"],"Serializer":["JsonObject"]},"ListSerializer":{"StructuredSerializer":["List<@>"],"Serializer":["List<@>"]},"MapSerializer":{"StructuredSerializer":["Map<@,@>"],"Serializer":["Map<@,@>"]},"NullSerializer":{"PrimitiveSerializer":["Null"],"Serializer":["Null"]},"NumSerializer":{"PrimitiveSerializer":["num"],"Serializer":["num"]},"RegExpSerializer":{"PrimitiveSerializer":["RegExp"],"Serializer":["RegExp"]},"SetSerializer":{"StructuredSerializer":["Set<@>"],"Serializer":["Set<@>"]},"StringSerializer":{"PrimitiveSerializer":["String"],"Serializer":["String"]},"Uint8ListSerializer":{"PrimitiveSerializer":["Uint8List"],"Serializer":["Uint8List"]},"UriSerializer":{"PrimitiveSerializer":["Uri"],"Serializer":["Uri"]},"CanonicalizedMap":{"Map":["2","3"]},"DefaultEquality":{"Equality":["1"]},"IterableEquality":{"Equality":["Iterable<1>"]},"ListEquality":{"Equality":["List<1>"]},"_UnorderedEquality":{"Equality":["2"]},"SetEquality":{"_UnorderedEquality":["1","Set<1>"],"Equality":["Set<1>"],"_UnorderedEquality.E":"1","_UnorderedEquality.T":"Set<1>"},"MapEquality":{"Equality":["Map<1,2>"]},"DeepCollectionEquality":{"Equality":["@"]},"QueueList":{"ListBase":["1"],"List":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","QueueList.E":"1","Iterable.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListBase":["2"],"List":["2"],"Queue":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","QueueList.E":"2","Iterable.E":"2"},"_$BuildStatusSerializer":{"PrimitiveSerializer":["BuildStatus"],"Serializer":["BuildStatus"]},"_$BuildResultSerializer":{"StructuredSerializer":["BuildResult"],"Serializer":["BuildResult"]},"_$BuildResult":{"BuildResult":[]},"_$ConnectRequestSerializer":{"StructuredSerializer":["ConnectRequest"],"Serializer":["ConnectRequest"]},"_$ConnectRequest":{"ConnectRequest":[]},"_$DebugEventSerializer":{"StructuredSerializer":["DebugEvent"],"Serializer":["DebugEvent"]},"_$BatchedDebugEventsSerializer":{"StructuredSerializer":["BatchedDebugEvents"],"Serializer":["BatchedDebugEvents"]},"_$DebugEvent":{"DebugEvent":[]},"_$BatchedDebugEvents":{"BatchedDebugEvents":[]},"_$DebugInfoSerializer":{"StructuredSerializer":["DebugInfo"],"Serializer":["DebugInfo"]},"_$DebugInfo":{"DebugInfo":[]},"_$DevToolsRequestSerializer":{"StructuredSerializer":["DevToolsRequest"],"Serializer":["DevToolsRequest"]},"_$DevToolsResponseSerializer":{"StructuredSerializer":["DevToolsResponse"],"Serializer":["DevToolsResponse"]},"_$DevToolsRequest":{"DevToolsRequest":[]},"_$DevToolsResponse":{"DevToolsResponse":[]},"_$ErrorResponseSerializer":{"StructuredSerializer":["ErrorResponse"],"Serializer":["ErrorResponse"]},"_$ErrorResponse":{"ErrorResponse":[]},"_$ExtensionRequestSerializer":{"StructuredSerializer":["ExtensionRequest"],"Serializer":["ExtensionRequest"]},"_$ExtensionResponseSerializer":{"StructuredSerializer":["ExtensionResponse"],"Serializer":["ExtensionResponse"]},"_$ExtensionEventSerializer":{"StructuredSerializer":["ExtensionEvent"],"Serializer":["ExtensionEvent"]},"_$BatchedEventsSerializer":{"StructuredSerializer":["BatchedEvents"],"Serializer":["BatchedEvents"]},"_$ExtensionRequest":{"ExtensionRequest":[]},"_$ExtensionResponse":{"ExtensionResponse":[]},"_$ExtensionEvent":{"ExtensionEvent":[]},"_$BatchedEvents":{"BatchedEvents":[]},"_$HotReloadRequestSerializer":{"StructuredSerializer":["HotReloadRequest"],"Serializer":["HotReloadRequest"]},"_$HotReloadRequest":{"HotReloadRequest":[]},"_$HotReloadResponseSerializer":{"StructuredSerializer":["HotReloadResponse"],"Serializer":["HotReloadResponse"]},"_$HotReloadResponse":{"HotReloadResponse":[]},"_$HotRestartRequestSerializer":{"StructuredSerializer":["HotRestartRequest"],"Serializer":["HotRestartRequest"]},"_$HotRestartRequest":{"HotRestartRequest":[]},"_$HotRestartResponseSerializer":{"StructuredSerializer":["HotRestartResponse"],"Serializer":["HotRestartResponse"]},"_$HotRestartResponse":{"HotRestartResponse":[]},"_$IsolateExitSerializer":{"StructuredSerializer":["IsolateExit"],"Serializer":["IsolateExit"]},"_$IsolateStartSerializer":{"StructuredSerializer":["IsolateStart"],"Serializer":["IsolateStart"]},"_$IsolateExit":{"IsolateExit":[]},"_$IsolateStart":{"IsolateStart":[]},"_$RegisterEventSerializer":{"StructuredSerializer":["RegisterEvent"],"Serializer":["RegisterEvent"]},"_$RegisterEvent":{"RegisterEvent":[]},"_$RunRequestSerializer":{"StructuredSerializer":["RunRequest"],"Serializer":["RunRequest"]},"_$RunRequest":{"RunRequest":[]},"_$ServiceExtensionRequestSerializer":{"StructuredSerializer":["ServiceExtensionRequest"],"Serializer":["ServiceExtensionRequest"]},"_$ServiceExtensionRequest":{"ServiceExtensionRequest":[]},"_$ServiceExtensionResponseSerializer":{"StructuredSerializer":["ServiceExtensionResponse"],"Serializer":["ServiceExtensionResponse"]},"_$ServiceExtensionResponse":{"ServiceExtensionResponse":[]},"SseSocketClient":{"SocketClient":[]},"WebSocketClient":{"SocketClient":[]},"Int32":{"Comparable":["Object"]},"Int64":{"Comparable":["Object"]},"ByteStream":{"StreamView":["List"],"Stream":["List"],"Stream.T":"List","StreamView.T":"List"},"ClientException":{"Exception":[]},"Request":{"BaseRequest":[]},"StreamedResponseV2":{"StreamedResponse":[]},"CaseInsensitiveMap":{"CanonicalizedMap":["String","String","1"],"Map":["String","1"],"CanonicalizedMap.K":"String","CanonicalizedMap.V":"1","CanonicalizedMap.C":"String"},"Level":{"Comparable":["Level"]},"PathException":{"Exception":[]},"PosixStyle":{"InternalStyle":[]},"UrlStyle":{"InternalStyle":[]},"WindowsStyle":{"InternalStyle":[]},"FileLocation":{"SourceLocation":[],"Comparable":["SourceLocation"]},"_FileSpan":{"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceLocation":{"Comparable":["SourceLocation"]},"SourceLocationMixin":{"SourceLocation":[],"Comparable":["SourceLocation"]},"SourceSpan":{"Comparable":["SourceSpan"]},"SourceSpanBase":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanException":{"Exception":[]},"SourceSpanFormatException":{"FormatException":[],"Exception":[]},"SourceSpanMixin":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanWithContext":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SseClient":{"StreamChannel":["String?"]},"GuaranteeChannel":{"StreamChannel":["1"]},"_GuaranteeSink":{"StreamSink":["1"]},"StreamChannelMixin":{"StreamChannel":["1"]},"StringScannerException":{"FormatException":[],"Exception":[]},"_EventStream":{"Stream":["1"],"Stream.T":"1"},"_EventStreamSubscription":{"StreamSubscription":["1"]},"BrowserWebSocket":{"WebSocket":[]},"TextDataReceived":{"WebSocketEvent":[]},"BinaryDataReceived":{"WebSocketEvent":[]},"CloseReceived":{"WebSocketEvent":[]},"WebSocketException":{"Exception":[]},"WebSocketConnectionClosed":{"Exception":[]},"AdapterWebSocketChannel":{"WebSocketChannel":[],"StreamChannel":["@"]},"_WebSocketSink":{"WebSocketSink":[],"DelegatingStreamSink":["@"],"StreamSink":["@"],"DelegatingStreamSink.T":"@"},"WebSocketChannelException":{"Exception":[]},"DdcLibraryBundleRestarter":{"Restarter":[]},"DdcRestarter":{"Restarter":[]},"RequireRestarter":{"Restarter":[]},"HotReloadFailedException":{"Exception":[]},"Int8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8ClampedList":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Float32List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"Float64List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]}}')); A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"NativeTypedArray":1,"_DelayedEvent":1,"_SplayTreeSet__SplayTree_Iterable":1,"_SplayTreeSet__SplayTree_Iterable_SetMixin":1,"_QueueList_Object_ListMixin":1,"StreamChannelMixin":1}')); var string$ = { x00_____: "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\u03f6\x00\u0404\u03f4 \u03f4\u03f6\u01f6\u01f6\u03f6\u03fc\u01f4\u03ff\u03ff\u0584\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u05d4\u01f4\x00\u01f4\x00\u0504\u05c4\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u0400\x00\u0400\u0200\u03f7\u0200\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u03ff\u0200\u0200\u0200\u03f7\x00", @@ -28677,6 +29666,8 @@ Future_void: findType("Future<~>"), HotReloadRequest: findType("HotReloadRequest"), HotReloadResponse: findType("HotReloadResponse"), + HotRestartRequest: findType("HotRestartRequest"), + HotRestartResponse: findType("HotRestartResponse"), Int16List: findType("Int16List"), Int32: findType("Int32"), Int32List: findType("Int32List"), @@ -28730,7 +29721,7 @@ Map_of_String_and_nullable_Object: findType("Map"), MappedListIterable_String_dynamic: findType("MappedListIterable"), MediaType: findType("MediaType"), - NativeByteBuffer: findType("NativeByteBuffer"), + NativeArrayBuffer: findType("NativeArrayBuffer"), NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"), NativeUint8List: findType("NativeUint8List"), Null: findType("Null"), @@ -28762,6 +29753,7 @@ StackTrace: findType("StackTrace"), StreamChannelController_nullable_Object: findType("StreamChannelController"), StreamQueue_DebugEvent: findType("StreamQueue"), + Stream_dynamic: findType("Stream<@>"), StreamedResponse: findType("StreamedResponse"), String: findType("String"), String_Function_Match: findType("String(Match)"), @@ -28785,19 +29777,18 @@ Zone: findType("Zone"), _AsyncCompleter_BrowserWebSocket: findType("_AsyncCompleter"), _AsyncCompleter_PoolResource: findType("_AsyncCompleter"), - _AsyncCompleter_StreamedResponse: findType("_AsyncCompleter"), _AsyncCompleter_String: findType("_AsyncCompleter"), _AsyncCompleter_Uint8List: findType("_AsyncCompleter"), _AsyncCompleter_bool: findType("_AsyncCompleter"), _AsyncCompleter_dynamic: findType("_AsyncCompleter<@>"), _AsyncCompleter_void: findType("_AsyncCompleter<~>"), + _AsyncStreamController_List_int: findType("_AsyncStreamController>"), _BigIntImpl: findType("_BigIntImpl"), _BuiltMap_dynamic_dynamic: findType("_BuiltMap<@,@>"), _EventRequest_dynamic: findType("_EventRequest<@>"), _EventStream_JSObject: findType("_EventStream"), _Future_BrowserWebSocket: findType("_Future"), _Future_PoolResource: findType("_Future"), - _Future_StreamedResponse: findType("_Future"), _Future_String: findType("_Future"), _Future_Uint8List: findType("_Future"), _Future_bool: findType("_Future"), @@ -28842,6 +29833,7 @@ nullable__Highlight: findType("_Highlight?"), nullable__LinkedHashSetCell: findType("_LinkedHashSetCell?"), nullable_bool: findType("bool?"), + nullable_bool_Function_Object: findType("bool(Object)?"), nullable_double: findType("double?"), nullable_int: findType("int?"), nullable_num: findType("num?"), @@ -28852,6 +29844,7 @@ nullable_void_Function_DebugInfoBuilder: findType("~(DebugInfoBuilder)?"), nullable_void_Function_DevToolsRequestBuilder: findType("~(DevToolsRequestBuilder)?"), nullable_void_Function_HotReloadResponseBuilder: findType("~(HotReloadResponseBuilder)?"), + nullable_void_Function_HotRestartResponseBuilder: findType("~(HotRestartResponseBuilder)?"), nullable_void_Function_JSObject: findType("~(JSObject)?"), nullable_void_Function_RegisterEventBuilder: findType("~(RegisterEventBuilder)?"), nullable_void_Function_ServiceExtensionResponseBuilder: findType("~(ServiceExtensionResponseBuilder)?"), @@ -28859,11 +29852,13 @@ void: findType("~"), void_Function: findType("~()"), void_Function_HotReloadResponseBuilder: findType("~(HotReloadResponseBuilder)"), + void_Function_HotRestartResponseBuilder: findType("~(HotRestartResponseBuilder)"), void_Function_List_int: findType("~(List)"), void_Function_Object: findType("~(Object)"), void_Function_Object_StackTrace: findType("~(Object,StackTrace)"), void_Function_String_dynamic: findType("~(String,@)"), - void_Function_Timer: findType("~(Timer)") + void_Function_Timer: findType("~(Timer)"), + void_Function_int_dynamic: findType("~(int,@)") }; })(); (function constants() { @@ -29035,9 +30030,9 @@ B.Duration_5000000 = new A.Duration(5000000); B.Type_BuiltList_fj6 = A.typeLiteral("BuiltList<@>"); B.Type_DebugEvent_gLJ = A.typeLiteral("DebugEvent"); - B.List_empty1 = A._setArrayType(makeConstList([]), type$.JSArray_FullType); + B.List_empty1 = makeConstList([], type$.JSArray_FullType); B.FullType_np4 = new A.FullType(B.Type_DebugEvent_gLJ, B.List_empty1, false); - B.List_njn = A._setArrayType(makeConstList([B.FullType_np4]), type$.JSArray_FullType); + B.List_njn = makeConstList([B.FullType_np4], type$.JSArray_FullType); B.FullType_3Xm = new A.FullType(B.Type_BuiltList_fj6, B.List_njn, false); B.Type_String_AXU = A.typeLiteral("String"); B.FullType_PT1 = new A.FullType(B.Type_String_AXU, B.List_empty1, false); @@ -29046,15 +30041,15 @@ B.Type_BuiltSetMultimap_yT7 = A.typeLiteral("BuiltSetMultimap<@,@>"); B.Type_Object_A4p = A.typeLiteral("Object"); B.FullType_kV7 = new A.FullType(B.Type_Object_A4p, B.List_empty1, false); - B.List_03P = A._setArrayType(makeConstList([B.FullType_kV7, B.FullType_kV7]), type$.JSArray_FullType); + B.List_03P = makeConstList([B.FullType_kV7, B.FullType_kV7], type$.JSArray_FullType); B.FullType_SWR = new A.FullType(B.Type_BuiltSetMultimap_yT7, B.List_03P, false); B.Type_BuiltListMultimap_HQW = A.typeLiteral("BuiltListMultimap<@,@>"); B.FullType_WP0 = new A.FullType(B.Type_BuiltListMultimap_HQW, B.List_03P, false); B.Type_ExtensionEvent_T8C = A.typeLiteral("ExtensionEvent"); B.FullType_I4i = new A.FullType(B.Type_ExtensionEvent_T8C, B.List_empty1, false); - B.List_O9J = A._setArrayType(makeConstList([B.FullType_I4i]), type$.JSArray_FullType); + B.List_O9J = makeConstList([B.FullType_I4i], type$.JSArray_FullType); B.FullType_ahP = new A.FullType(B.Type_BuiltList_fj6, B.List_O9J, false); - B.List_LtY = A._setArrayType(makeConstList([B.FullType_kV7]), type$.JSArray_FullType); + B.List_LtY = makeConstList([B.FullType_kV7], type$.JSArray_FullType); B.FullType_hm4 = new A.FullType(B.Type_BuiltList_fj6, B.List_LtY, false); B.Type_BuildStatus_8KJ = A.typeLiteral("BuildStatus"); B.FullType_k5M = new A.FullType(B.Type_BuildStatus_8KJ, B.List_empty1, false); @@ -29074,67 +30069,73 @@ B.Level_WARNING_900 = new A.Level("WARNING", 900); B.Type_ExtensionRequest_9GR = A.typeLiteral("ExtensionRequest"); B.Type__$ExtensionRequest_o1C = A.typeLiteral("_$ExtensionRequest"); - B.List_2dD = A._setArrayType(makeConstList([B.Type_ExtensionRequest_9GR, B.Type__$ExtensionRequest_o1C]), type$.JSArray_Type); + B.List_2dD = makeConstList([B.Type_ExtensionRequest_9GR, B.Type__$ExtensionRequest_o1C], type$.JSArray_Type); B.Type_ServiceExtensionRequest_K8g = A.typeLiteral("ServiceExtensionRequest"); B.Type__$ServiceExtensionRequest_n9i = A.typeLiteral("_$ServiceExtensionRequest"); - B.List_4i4 = A._setArrayType(makeConstList([B.Type_ServiceExtensionRequest_K8g, B.Type__$ServiceExtensionRequest_n9i]), type$.JSArray_Type); + B.List_4i4 = makeConstList([B.Type_ServiceExtensionRequest_K8g, B.Type__$ServiceExtensionRequest_n9i], type$.JSArray_Type); B.Type_DebugInfo_ua9 = A.typeLiteral("DebugInfo"); B.Type__$DebugInfo_ywz = A.typeLiteral("_$DebugInfo"); - B.List_55I = A._setArrayType(makeConstList([B.Type_DebugInfo_ua9, B.Type__$DebugInfo_ywz]), type$.JSArray_Type); + B.List_55I = makeConstList([B.Type_DebugInfo_ua9, B.Type__$DebugInfo_ywz], type$.JSArray_Type); B.Type_ErrorResponse_WMn = A.typeLiteral("ErrorResponse"); B.Type__$ErrorResponse_9Ps = A.typeLiteral("_$ErrorResponse"); - B.List_5LV = A._setArrayType(makeConstList([B.Type_ErrorResponse_WMn, B.Type__$ErrorResponse_9Ps]), type$.JSArray_Type); + B.List_5LV = makeConstList([B.Type_ErrorResponse_WMn, B.Type__$ErrorResponse_9Ps], type$.JSArray_Type); B.Type_ServiceExtensionResponse_84R = A.typeLiteral("ServiceExtensionResponse"); B.Type__$ServiceExtensionResponse_UiR = A.typeLiteral("_$ServiceExtensionResponse"); - B.List_5rA = A._setArrayType(makeConstList([B.Type_ServiceExtensionResponse_84R, B.Type__$ServiceExtensionResponse_UiR]), type$.JSArray_Type); + B.List_5rA = makeConstList([B.Type_ServiceExtensionResponse_84R, B.Type__$ServiceExtensionResponse_UiR], type$.JSArray_Type); + B.Type_HotRestartRequest_xnM = A.typeLiteral("HotRestartRequest"); + B.Type__$HotRestartRequest_rYI = A.typeLiteral("_$HotRestartRequest"); + B.List_9I1 = makeConstList([B.Type_HotRestartRequest_xnM, B.Type__$HotRestartRequest_rYI], type$.JSArray_Type); B.Type_HotReloadResponse_Gqc = A.typeLiteral("HotReloadResponse"); B.Type__$HotReloadResponse_56g = A.typeLiteral("_$HotReloadResponse"); - B.List_DqJ = A._setArrayType(makeConstList([B.Type_HotReloadResponse_Gqc, B.Type__$HotReloadResponse_56g]), type$.JSArray_Type); + B.List_DqJ = makeConstList([B.Type_HotReloadResponse_Gqc, B.Type__$HotReloadResponse_56g], type$.JSArray_Type); B.Type_RegisterEvent_0Yw = A.typeLiteral("RegisterEvent"); B.Type__$RegisterEvent_Ks1 = A.typeLiteral("_$RegisterEvent"); - B.List_EMv = A._setArrayType(makeConstList([B.Type_RegisterEvent_0Yw, B.Type__$RegisterEvent_Ks1]), type$.JSArray_Type); + B.List_EMv = makeConstList([B.Type_RegisterEvent_0Yw, B.Type__$RegisterEvent_Ks1], type$.JSArray_Type); B.Type_DevToolsRequest_DxE = A.typeLiteral("DevToolsRequest"); B.Type__$DevToolsRequest_Rak = A.typeLiteral("_$DevToolsRequest"); - B.List_G46 = A._setArrayType(makeConstList([B.Type_DevToolsRequest_DxE, B.Type__$DevToolsRequest_Rak]), type$.JSArray_Type); + B.List_G46 = makeConstList([B.Type_DevToolsRequest_DxE, B.Type__$DevToolsRequest_Rak], type$.JSArray_Type); B.Type_IsolateStart_nRT = A.typeLiteral("IsolateStart"); B.Type__$IsolateStart_Pnq = A.typeLiteral("_$IsolateStart"); - B.List_KpG = A._setArrayType(makeConstList([B.Type_IsolateStart_nRT, B.Type__$IsolateStart_Pnq]), type$.JSArray_Type); + B.List_KpG = makeConstList([B.Type_IsolateStart_nRT, B.Type__$IsolateStart_Pnq], type$.JSArray_Type); B.Type_IsolateExit_QVA = A.typeLiteral("IsolateExit"); B.Type__$IsolateExit_4XE = A.typeLiteral("_$IsolateExit"); - B.List_MJN = A._setArrayType(makeConstList([B.Type_IsolateExit_QVA, B.Type__$IsolateExit_4XE]), type$.JSArray_Type); + B.List_MJN = makeConstList([B.Type_IsolateExit_QVA, B.Type__$IsolateExit_4XE], type$.JSArray_Type); B.Type_ExtensionResponse_0Oi = A.typeLiteral("ExtensionResponse"); B.Type__$ExtensionResponse_46G = A.typeLiteral("_$ExtensionResponse"); - B.List_RWp = A._setArrayType(makeConstList([B.Type_ExtensionResponse_0Oi, B.Type__$ExtensionResponse_46G]), type$.JSArray_Type); + B.List_RWp = makeConstList([B.Type_ExtensionResponse_0Oi, B.Type__$ExtensionResponse_46G], type$.JSArray_Type); B.Type_RunRequest_Hfm = A.typeLiteral("RunRequest"); B.Type__$RunRequest_3ad = A.typeLiteral("_$RunRequest"); - B.List_RlA = A._setArrayType(makeConstList([B.Type_RunRequest_Hfm, B.Type__$RunRequest_3ad]), type$.JSArray_Type); + B.List_RlA = makeConstList([B.Type_RunRequest_Hfm, B.Type__$RunRequest_3ad], type$.JSArray_Type); B.Type_DevToolsResponse_gVs = A.typeLiteral("DevToolsResponse"); B.Type__$DevToolsResponse_dcs = A.typeLiteral("_$DevToolsResponse"); - B.List_TEH = A._setArrayType(makeConstList([B.Type_DevToolsResponse_gVs, B.Type__$DevToolsResponse_dcs]), type$.JSArray_Type); - B.List_Type_BuildStatus_8KJ = A._setArrayType(makeConstList([B.Type_BuildStatus_8KJ]), type$.JSArray_Type); + B.List_TEH = makeConstList([B.Type_DevToolsResponse_gVs, B.Type__$DevToolsResponse_dcs], type$.JSArray_Type); + B.List_Type_BuildStatus_8KJ = makeConstList([B.Type_BuildStatus_8KJ], type$.JSArray_Type); B.Type_BatchedDebugEvents_v7B = A.typeLiteral("BatchedDebugEvents"); B.Type__$BatchedDebugEvents_LFV = A.typeLiteral("_$BatchedDebugEvents"); - B.List_WAE = A._setArrayType(makeConstList([B.Type_BatchedDebugEvents_v7B, B.Type__$BatchedDebugEvents_LFV]), type$.JSArray_Type); - B.List_ZNA = A._setArrayType(makeConstList([0, 0, 1048576, 531441, 1048576, 390625, 279936, 823543, 262144, 531441, 1000000, 161051, 248832, 371293, 537824, 759375, 1048576, 83521, 104976, 130321, 160000, 194481, 234256, 279841, 331776, 390625, 456976, 531441, 614656, 707281, 810000, 923521, 1048576, 35937, 39304, 42875, 46656]), type$.JSArray_int); + B.List_WAE = makeConstList([B.Type_BatchedDebugEvents_v7B, B.Type__$BatchedDebugEvents_LFV], type$.JSArray_Type); + B.Type_HotRestartResponse_F1y = A.typeLiteral("HotRestartResponse"); + B.Type__$HotRestartResponse_9cS = A.typeLiteral("_$HotRestartResponse"); + B.List_YhA = makeConstList([B.Type_HotRestartResponse_F1y, B.Type__$HotRestartResponse_9cS], type$.JSArray_Type); + B.List_ZNA = makeConstList([0, 0, 1048576, 531441, 1048576, 390625, 279936, 823543, 262144, 531441, 1000000, 161051, 248832, 371293, 537824, 759375, 1048576, 83521, 104976, 130321, 160000, 194481, 234256, 279841, 331776, 390625, 456976, 531441, 614656, 707281, 810000, 923521, 1048576, 35937, 39304, 42875, 46656], type$.JSArray_int); B.Type_HotReloadRequest_EsW = A.typeLiteral("HotReloadRequest"); B.Type__$HotReloadRequest_ynq = A.typeLiteral("_$HotReloadRequest"); - B.List_dz9 = A._setArrayType(makeConstList([B.Type_HotReloadRequest_EsW, B.Type__$HotReloadRequest_ynq]), type$.JSArray_Type); - B.List_empty = A._setArrayType(makeConstList([]), type$.JSArray_String); - B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_dynamic); - B.List_fAJ = A._setArrayType(makeConstList(["d", "D", "\u2202", "\xce"]), type$.JSArray_String); + B.List_dz9 = makeConstList([B.Type_HotReloadRequest_EsW, B.Type__$HotReloadRequest_ynq], type$.JSArray_Type); + B.List_empty = makeConstList([], type$.JSArray_String); + B.List_empty0 = makeConstList([], type$.JSArray_dynamic); + B.List_fAJ = makeConstList(["d", "D", "\u2202", "\xce"], type$.JSArray_String); B.Type__$DebugEvent_YX4 = A.typeLiteral("_$DebugEvent"); - B.List_fK8 = A._setArrayType(makeConstList([B.Type_DebugEvent_gLJ, B.Type__$DebugEvent_YX4]), type$.JSArray_Type); + B.List_fK8 = makeConstList([B.Type_DebugEvent_gLJ, B.Type__$DebugEvent_YX4], type$.JSArray_Type); B.Type_BatchedEvents_ABc = A.typeLiteral("BatchedEvents"); B.Type__$BatchedEvents_jAA = A.typeLiteral("_$BatchedEvents"); - B.List_oDF = A._setArrayType(makeConstList([B.Type_BatchedEvents_ABc, B.Type__$BatchedEvents_jAA]), type$.JSArray_Type); + B.List_oDF = makeConstList([B.Type_BatchedEvents_ABc, B.Type__$BatchedEvents_jAA], type$.JSArray_Type); B.Type_BuildResult_SAR = A.typeLiteral("BuildResult"); B.Type__$BuildResult_Iwz = A.typeLiteral("_$BuildResult"); - B.List_pLn = A._setArrayType(makeConstList([B.Type_BuildResult_SAR, B.Type__$BuildResult_Iwz]), type$.JSArray_Type); + B.List_pLn = makeConstList([B.Type_BuildResult_SAR, B.Type__$BuildResult_Iwz], type$.JSArray_Type); B.Type_ConnectRequest_8Nv = A.typeLiteral("ConnectRequest"); B.Type__$ConnectRequest_3Qd = A.typeLiteral("_$ConnectRequest"); - B.List_xmd = A._setArrayType(makeConstList([B.Type_ConnectRequest_8Nv, B.Type__$ConnectRequest_3Qd]), type$.JSArray_Type); + B.List_xmd = makeConstList([B.Type_ConnectRequest_8Nv, B.Type__$ConnectRequest_3Qd], type$.JSArray_Type); B.Type__$ExtensionEvent_WzR = A.typeLiteral("_$ExtensionEvent"); - B.List_yvR = A._setArrayType(makeConstList([B.Type_ExtensionEvent_T8C, B.Type__$ExtensionEvent_WzR]), type$.JSArray_Type); + B.List_yvR = makeConstList([B.Type_ExtensionEvent_T8C, B.Type__$ExtensionEvent_WzR], type$.JSArray_Type); B.Object_empty = {}; B.Map_empty0 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap")); B.Map_empty = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<@,@>")); @@ -29154,10 +30155,13 @@ B.Type_JSObject_ttY = A.typeLiteral("JSObject"); B.Type_JsonObject_5jQ = A.typeLiteral("JsonObject"); B.Type_ListJsonObject_qcV = A.typeLiteral("ListJsonObject"); + B.Type_List_hc9 = A.typeLiteral("List<@>"); B.Type_MapJsonObject_VMr = A.typeLiteral("MapJsonObject"); + B.Type_Map_9Aj = A.typeLiteral("Map<@,@>"); B.Type_Null_0Rm = A.typeLiteral("Null"); B.Type_NumJsonObject_hYY = A.typeLiteral("NumJsonObject"); B.Type_RegExp_w5l = A.typeLiteral("RegExp"); + B.Type_Set_tZi = A.typeLiteral("Set<@>"); B.Type_StringJsonObject_NL7 = A.typeLiteral("StringJsonObject"); B.Type_Uint16List_kmP = A.typeLiteral("Uint16List"); B.Type_Uint32List_kmP = A.typeLiteral("Uint32List"); @@ -29229,6 +30233,7 @@ _lazy = hunkHelpers.lazy; _lazyFinal($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => A.getIsolateAffinityTag("_$dart_dartClosure")); _lazyFinal($, "nullFuture", "$get$nullFuture", () => B.C__RootZone.run$1$1(new A.nullFuture_closure(), type$.Future_void)); + _lazyFinal($, "_safeToStringHooks", "$get$_safeToStringHooks", () => A._setArrayType([new J.JSArraySafeToStringHook()], A.findType("JSArray"))); _lazyFinal($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({ toString: function() { return "$receiver$"; @@ -29316,6 +30321,8 @@ _lazy($, "_$batchedEventsSerializer", "$get$_$batchedEventsSerializer", () => new A._$BatchedEventsSerializer()); _lazy($, "_$hotReloadRequestSerializer", "$get$_$hotReloadRequestSerializer", () => new A._$HotReloadRequestSerializer()); _lazy($, "_$hotReloadResponseSerializer", "$get$_$hotReloadResponseSerializer", () => new A._$HotReloadResponseSerializer()); + _lazy($, "_$hotRestartRequestSerializer", "$get$_$hotRestartRequestSerializer", () => new A._$HotRestartRequestSerializer()); + _lazy($, "_$hotRestartResponseSerializer", "$get$_$hotRestartResponseSerializer", () => new A._$HotRestartResponseSerializer()); _lazy($, "_$isolateExitSerializer", "$get$_$isolateExitSerializer", () => new A._$IsolateExitSerializer()); _lazy($, "_$isolateStartSerializer", "$get$_$isolateStartSerializer", () => new A._$IsolateStartSerializer()); _lazy($, "_$registerEventSerializer", "$get$_$registerEventSerializer", () => new A._$RegisterEventSerializer()); @@ -29339,6 +30346,8 @@ t1.add$1(0, $.$get$_$extensionResponseSerializer()); t1.add$1(0, $.$get$_$hotReloadRequestSerializer()); t1.add$1(0, $.$get$_$hotReloadResponseSerializer()); + t1.add$1(0, $.$get$_$hotRestartRequestSerializer()); + t1.add$1(0, $.$get$_$hotRestartResponseSerializer()); t1.add$1(0, $.$get$_$isolateExitSerializer()); t1.add$1(0, $.$get$_$isolateStartSerializer()); t1.add$1(0, $.$get$_$registerEventSerializer()); @@ -29353,7 +30362,6 @@ _lazy($, "_$serviceExtensionResponseSerializer", "$get$_$serviceExtensionResponseSerializer", () => new A._$ServiceExtensionResponseSerializer()); _lazyFinal($, "_logger", "$get$_logger", () => A.Logger_Logger("Utilities")); _lazyFinal($, "BaseRequest__tokenRE", "$get$BaseRequest__tokenRE", () => A.RegExp_RegExp("^[\\w!#%&'*+\\-.^`|~]+$", true, false)); - _lazyFinal($, "_digitRegex", "$get$_digitRegex", () => A.RegExp_RegExp("^\\d+$", true, false)); _lazyFinal($, "_escapedChar", "$get$_escapedChar", () => A.RegExp_RegExp('["\\x00-\\x1F\\x7F]', true, false)); _lazyFinal($, "token", "$get$token", () => A.RegExp_RegExp('[^()<>@,;:"\\\\/[\\]?={} \\t\\x00-\\x1F\\x7F]+', true, false)); _lazyFinal($, "_lws", "$get$_lws", () => A.RegExp_RegExp("(?:\\r\\n)?[ \\t]+", true, false)); @@ -29377,6 +30385,7 @@ return new A.Pool(t2, t3, t1, 1000, new A.AsyncMemoizer(t4, A.findType("AsyncMemoizer<@>"))); }); _lazy($, "V1State_random", "$get$V1State_random", () => new A.CryptoRNG()); + _lazy($, "V4State_random", "$get$V4State_random", () => new A.CryptoRNG()); _lazyFinal($, "UuidParsing__byteToHex", "$get$UuidParsing__byteToHex", () => { var i, _list = J.JSArray_JSArray$allocateGrowable(256, type$.String); @@ -29411,8 +30420,8 @@ } init.dispatchPropertyName = init.getIsolateTag("dispatch_record"); }(); - hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: A.NativeByteBuffer, ArrayBufferView: A.NativeTypedData, DataView: A.NativeByteData, Float32Array: A.NativeFloat32List, Float64Array: A.NativeFloat64List, Int16Array: A.NativeInt16List, Int32Array: A.NativeInt32List, Int8Array: A.NativeInt8List, Uint16Array: A.NativeUint16List, Uint32Array: A.NativeUint32List, Uint8ClampedArray: A.NativeUint8ClampedList, CanvasPixelArray: A.NativeUint8ClampedList, Uint8Array: A.NativeUint8List}); - hunkHelpers.setOrUpdateLeafTags({ArrayBuffer: true, ArrayBufferView: false, DataView: true, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false}); + hunkHelpers.setOrUpdateInterceptorsByTag({SharedArrayBuffer: A.NativeByteBuffer, ArrayBuffer: A.NativeArrayBuffer, ArrayBufferView: A.NativeTypedData, DataView: A.NativeByteData, Float32Array: A.NativeFloat32List, Float64Array: A.NativeFloat64List, Int16Array: A.NativeInt16List, Int32Array: A.NativeInt32List, Int8Array: A.NativeInt8List, Uint16Array: A.NativeUint16List, Uint32Array: A.NativeUint32List, Uint8ClampedArray: A.NativeUint8ClampedList, CanvasPixelArray: A.NativeUint8ClampedList, Uint8Array: A.NativeUint8List}); + hunkHelpers.setOrUpdateLeafTags({SharedArrayBuffer: true, ArrayBuffer: true, ArrayBufferView: false, DataView: true, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false}); A.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView"; A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView"; diff --git a/dwds/lib/src/services/proxy_service.dart b/dwds/lib/src/services/proxy_service.dart index 7af76f08e..192e8c8c7 100644 --- a/dwds/lib/src/services/proxy_service.dart +++ b/dwds/lib/src/services/proxy_service.dart @@ -6,6 +6,7 @@ import 'dart:async'; import 'package:dwds/data/debug_event.dart'; import 'package:dwds/data/hot_reload_response.dart'; +import 'package:dwds/data/hot_restart_response.dart'; import 'package:dwds/data/register_event.dart'; import 'package:dwds/data/service_extension_response.dart'; import 'package:dwds/src/connections/app_connection.dart'; @@ -184,15 +185,23 @@ abstract class ProxyService implements VmServiceInterface { /// Completes hot reload with response from client. /// - /// Default implementation throws UnimplementedError. + /// Default implementation throws [UnimplementedError]. /// Override in subclasses that support hot reload completion. void completeHotReload(HotReloadResponse response) { throw UnimplementedError('completeHotReload not supported'); } + /// Completes hot restart with response from client. + /// + /// Default implementation throws [UnimplementedError]. + /// Override in subclasses that support hot restart completion. + void completeHotRestart(HotRestartResponse response) { + throw UnimplementedError('completeHotRestart not supported'); + } + /// Completes service extension with response from client. /// - /// Default implementation throws UnimplementedError. + /// Default implementation throws [UnimplementedError]. /// Override in subclasses that support service extension completion. void completeServiceExtension(ServiceExtensionResponse response) { throw UnimplementedError('completeServiceExtension not supported'); diff --git a/dwds/lib/src/services/web_socket_proxy_service.dart b/dwds/lib/src/services/web_socket_proxy_service.dart index 4d5503e7c..a2400d085 100644 --- a/dwds/lib/src/services/web_socket_proxy_service.dart +++ b/dwds/lib/src/services/web_socket_proxy_service.dart @@ -8,6 +8,8 @@ import 'dart:convert'; import 'package:dwds/data/debug_event.dart'; import 'package:dwds/data/hot_reload_request.dart'; import 'package:dwds/data/hot_reload_response.dart'; +import 'package:dwds/data/hot_restart_request.dart'; +import 'package:dwds/data/hot_restart_response.dart'; import 'package:dwds/data/register_event.dart'; import 'package:dwds/data/service_extension_request.dart'; import 'package:dwds/data/service_extension_response.dart'; @@ -26,6 +28,11 @@ typedef SendClientRequest = int Function(Object request); const _pauseIsolatesOnStartFlag = 'pause_isolates_on_start'; +/// Grace period before destroying isolate when no clients are detected. +/// This handles the race condition during page refresh where the old connection +/// closes before the new connection is established, preventing premature isolate destruction. +const _isolateDestructionGracePeriod = Duration(seconds: 15); + /// Tracks hot reload responses from multiple browser windows/tabs. class _HotReloadTracker { final String requestId; @@ -41,7 +48,7 @@ class _HotReloadTracker { required this.timeoutTimer, }); - bool get isComplete => responses.length >= expectedResponses; + bool get gotAllResponses => responses.length >= expectedResponses; void addResponse(HotReloadResponse response) { responses.add(response); @@ -54,6 +61,34 @@ class _HotReloadTracker { } } +/// Tracks hot restart responses from multiple browser windows/tabs. +class _HotRestartTracker { + final String requestId; + final Completer completer; + final int expectedResponses; + final List responses = []; + final Timer timeoutTimer; + + _HotRestartTracker({ + required this.requestId, + required this.completer, + required this.expectedResponses, + required this.timeoutTimer, + }); + + bool get gotAllResponses => responses.length >= expectedResponses; + + void addResponse(HotRestartResponse response) { + responses.add(response); + } + + bool get allSuccessful => responses.every((r) => r.success); + + void dispose() { + timeoutTimer.cancel(); + } +} + /// Tracks service extension responses from multiple browser windows/tabs. class _ServiceExtensionTracker { final String requestId; @@ -69,7 +104,7 @@ class _ServiceExtensionTracker { required this.timeoutTimer, }); - bool get isComplete => responses.length >= expectedResponses; + bool get gotAllResponses => responses.length >= expectedResponses; void addResponse(ServiceExtensionResponse response) { responses.add(response); @@ -99,6 +134,9 @@ class WebSocketProxyService extends ProxyService { /// Active hot reload trackers by request ID. final Map _pendingHotReloads = {}; + /// Active hot restart trackers by request ID. + final Map _pendingHotRestarts = {}; + /// App connection cleanup subscriptions by connection instance ID. final Map> _appConnectionDoneSubscriptions = {}; @@ -247,9 +285,24 @@ class WebSocketProxyService extends ProxyService { if (actualClientCount == 0) { _logger.fine( - 'No clients available for hot reload, destroying isolate', + 'No clients available for hot reload, scheduling isolate destruction', ); - destroyIsolate(); + // Add a delay before destroying the isolate to handle page refresh race condition + Timer(_isolateDestructionGracePeriod, () { + // Double-check client count again before destroying + final finalClientCount = sendClientRequest({'type': 'ping'}); + if (finalClientCount == 0) { + _logger.fine( + 'Final check confirmed no clients, destroying isolate', + ); + destroyIsolate(); + } else { + _logger.fine( + 'Final check found $finalClientCount clients, keeping isolate alive', + ); + _activeConnectionCount = finalClientCount; + } + }); } else { _logger.fine( 'Still have $actualClientCount clients available, keeping isolate alive', @@ -457,6 +510,25 @@ class WebSocketProxyService extends ProxyService { } } + /// Handles hot restart requests. + Future> hotRestart() async { + _logger.info('Attempting a hot restart'); + + try { + await _performWebSocketHotRestart(); + _logger.info('Hot restart completed successfully'); + return {'result': vm_service.Success().toJson()}; + } catch (e) { + _logger.warning('Hot restart failed: $e'); + return { + 'error': { + 'code': vm_service.RPCErrorKind.kInternalError.code, + 'message': 'Hot restart failed: $e', + }, + }; + } + } + /// Completes hot reload with response from client. @override void completeHotReload(HotReloadResponse response) { @@ -471,7 +543,7 @@ class WebSocketProxyService extends ProxyService { tracker.addResponse(response); - if (tracker.isComplete) { + if (tracker.gotAllResponses) { _pendingHotReloads.remove(response.id); tracker.dispose(); @@ -489,6 +561,38 @@ class WebSocketProxyService extends ProxyService { } } + /// Completes hot restart with response from client. + @override + void completeHotRestart(HotRestartResponse response) { + final tracker = _pendingHotRestarts[response.id]; + + if (tracker == null) { + _logger.warning( + 'Received hot restart response but no pending tracker found (id: ${response.id})', + ); + return; + } + + tracker.addResponse(response); + + if (tracker.gotAllResponses) { + _pendingHotRestarts.remove(response.id); + tracker.dispose(); + + if (tracker.allSuccessful) { + tracker.completer.complete(response); + } else { + final failedResponses = tracker.responses.where((r) => !r.success); + final errorMessages = failedResponses + .map((r) => r.errorMessage ?? 'Unknown error') + .join('; '); + tracker.completer.completeError( + 'Hot restart failed in some clients: $errorMessages', + ); + } + } + } + /// Performs WebSocket-based hot reload. Future _performWebSocketHotReload({String? requestId}) async { final id = requestId ?? createId(); @@ -549,6 +653,66 @@ class WebSocketProxyService extends ProxyService { } } + /// Performs WebSocket-based hot restart. + Future _performWebSocketHotRestart({String? requestId}) async { + final id = requestId ?? createId(); + + // Check if there's already a pending hot restart with this ID + if (_pendingHotRestarts.containsKey(id)) { + throw StateError('Hot restart already pending for ID: $id'); + } + + const timeout = Duration(seconds: 15); + _logger.info('Sending HotRestartRequest with ID ($id) to client'); + + // Send the request and get the number of connected clients + final clientCount = await Future.microtask(() { + return sendClientRequest(HotRestartRequest((b) => b.id = id)); + }); + + if (clientCount == 0) { + throw StateError('No clients available for hot restart'); + } + + // Create tracker for this hot restart request + final completer = Completer(); + final timeoutTimer = Timer(timeout, () { + final tracker = _pendingHotRestarts.remove(id); + if (tracker != null) { + tracker.dispose(); + if (!completer.isCompleted) { + completer.completeError( + TimeoutException( + 'Hot restart timed out - received ${tracker.responses.length}/$clientCount responses', + timeout, + ), + ); + } + } + }); + + final tracker = _HotRestartTracker( + requestId: id, + completer: completer, + expectedResponses: clientCount, + timeoutTimer: timeoutTimer, + ); + + _pendingHotRestarts[id] = tracker; + + try { + final response = await completer.future; + if (!response.success) { + throw Exception(response.errorMessage ?? 'Client reported failure'); + } + } catch (e) { + // Clean up tracker if still present + final remainingTracker = _pendingHotRestarts.remove(id); + remainingTracker?.dispose(); + rethrow; + } + } + @override Future callServiceExtension( String method, { @@ -648,7 +812,7 @@ class WebSocketProxyService extends ProxyService { tracker.addResponse(response); - if (tracker.isComplete) { + if (tracker.gotAllResponses) { _pendingServiceExtensionTrackers.remove(id); tracker.dispose(); diff --git a/dwds/web/client.dart b/dwds/web/client.dart index 2aefcdfd9..d95b4912f 100644 --- a/dwds/web/client.dart +++ b/dwds/web/client.dart @@ -16,6 +16,8 @@ import 'package:dwds/data/error_response.dart'; import 'package:dwds/data/extension_request.dart'; import 'package:dwds/data/hot_reload_request.dart'; import 'package:dwds/data/hot_reload_response.dart'; +import 'package:dwds/data/hot_restart_request.dart'; +import 'package:dwds/data/hot_restart_response.dart'; import 'package:dwds/data/register_event.dart'; import 'package:dwds/data/run_request.dart'; import 'package:dwds/data/serializers.dart'; @@ -210,6 +212,8 @@ Future? main() { ); } else if (event is HotReloadRequest) { await handleWebSocketHotReloadRequest(event, manager, client.sink); + } else if (event is HotRestartRequest) { + await handleWebSocketHotRestartRequest(event, manager, client.sink); } else if (event is ServiceExtensionRequest) { await handleServiceExtensionRequest(event, client.sink, manager); } @@ -416,6 +420,21 @@ void _sendHotReloadResponse( ); } +void _sendHotRestartResponse( + StreamSink clientSink, + String requestId, { + bool success = true, + String? errorMessage, +}) { + _sendResponse( + clientSink, + HotRestartResponse.new, + requestId, + success: success, + errorMessage: errorMessage, + ); +} + void _sendServiceExtensionResponse( StreamSink clientSink, String requestId, { @@ -460,6 +479,26 @@ Future handleWebSocketHotReloadRequest( } } +Future handleWebSocketHotRestartRequest( + HotRestartRequest event, + ReloadingManager manager, + StreamSink clientSink, +) async { + final requestId = event.id; + try { + final runId = const Uuid().v4().toString(); + await manager.hotRestart(runId: runId); + _sendHotRestartResponse(clientSink, requestId, success: true); + } catch (e) { + _sendHotRestartResponse( + clientSink, + requestId, + success: false, + errorMessage: e.toString(), + ); + } +} + Future handleServiceExtensionRequest( ServiceExtensionRequest request, StreamSink clientSink,