| OLD | NEW |
| 1 // Generated by dart2js, the Dart to JavaScript compiler. | 1 // Generated by dart2js, the Dart to JavaScript compiler. |
| 2 // The code supports the following hooks: | 2 // The code supports the following hooks: |
| 3 // dartPrint(message) - if this function is defined it is called | 3 // dartPrint(message) - if this function is defined it is called |
| 4 // instead of the Dart [print] method. | 4 // instead of the Dart [print] method. |
| 5 // dartMainRunner(main) - if this function is defined, the Dart [main] | 5 // dartMainRunner(main) - if this function is defined, the Dart [main] |
| 6 // method will not be invoked directly. | 6 // method will not be invoked directly. |
| 7 // Instead, a closure that will invoke [main] is | 7 // Instead, a closure that will invoke [main] is |
| 8 // passed to [dartMainRunner]. | 8 // passed to [dartMainRunner]. |
| 9 (function($) { | 9 (function($) { |
| 10 var A = {}; | 10 var A = {}; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 var Z = {}; | 58 var Z = {}; |
| 59 delete Z.x; | 59 delete Z.x; |
| 60 function Isolate() {} | 60 function Isolate() {} |
| 61 init(); | 61 init(); |
| 62 | 62 |
| 63 $ = Isolate.$isolateProperties; | 63 $ = Isolate.$isolateProperties; |
| 64 var $$ = {}; | 64 var $$ = {}; |
| 65 | 65 |
| 66 // Native classes | 66 // Native classes |
| 67 // Method closures | 67 // Method closures |
| 68 $$.BoundClosure$2 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | 68 $$.BoundClosure$2 = [P, {"": "BoundClosure;_self,_target,_receiver,__js_helper$_
name", |
| 69 call$2: function(p0, p1) { | 69 call$2: function(p0, p1) { |
| 70 return this.__js_helper$_target.call(this._self, p0, p1); | 70 return this._target.call(this._self, p0, p1); |
| 71 }, | 71 }, |
| 72 call$1: function(p0) { | 72 call$1: function(p0) { |
| 73 return this.call$2(p0, null); | 73 return this.call$2(p0, null); |
| 74 }, |
| 75 $is_args2: true |
| 76 }]; |
| 77 |
| 78 $$.BoundClosure$0 = [P, {"": "BoundClosure;_self,_target,_receiver,__js_helper$_
name", |
| 79 call$0: function() { |
| 80 return this._target.call(this._self); |
| 74 } | 81 } |
| 75 }]; | 82 }]; |
| 76 | 83 |
| 77 $$.BoundClosure$0 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | 84 $$.Closure$2 = [H, {"": "Closure;call$2,$name", $is_args2: true}]; |
| 78 call$0: function() { | |
| 79 return this.__js_helper$_target.call(this._self); | |
| 80 }, | |
| 81 $is_void_: true | |
| 82 }]; | |
| 83 | 85 |
| 84 $$.BoundClosure$1 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | 86 $$.Closure$0 = [H, {"": "Closure;call$0,$name"}]; |
| 85 call$1: function(p0) { | |
| 86 return this.__js_helper$_target.call(this._self, p0); | |
| 87 } | |
| 88 }]; | |
| 89 | |
| 90 $$.Closure$2 = [H, {"": "Closure;call$2,$name"}]; | |
| 91 | |
| 92 $$.Closure$0 = [H, {"": "Closure;call$0,$name", $is_void_: true}]; | |
| 93 | 87 |
| 94 $$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; | 88 $$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; |
| 95 | 89 |
| 96 $$.Closure$1 = [H, {"": "Closure;call$1,$name"}]; | 90 $$.Closure$1 = [H, {"": "Closure;call$1,$name"}]; |
| 97 | 91 |
| 98 $$.Closure$4 = [P, {"": "Closure;call$4,$name"}]; | 92 $$.Closure$21 = [P, {"": "Closure;call$2,$name", |
| 99 | 93 call$1: function(p0) { |
| 100 $$.Closure$5 = [P, {"": "Closure;call$5,$name"}]; | 94 return this.call$2(p0, null); |
| 95 }, |
| 96 $is_args2: true |
| 97 }]; |
| 101 | 98 |
| 102 (function (reflectionData) { | 99 (function (reflectionData) { |
| 103 function map(x){x={x:x};delete x.x;return x} | 100 function map(x){x={x:x};delete x.x;return x} |
| 104 if (!init.libraries) init.libraries = []; | 101 if (!init.libraries) init.libraries = []; |
| 105 if (!init.mangledNames) init.mangledNames = map(); | 102 if (!init.mangledNames) init.mangledNames = map(); |
| 106 if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); | 103 if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); |
| 107 if (!init.statics) init.statics = map(); | 104 if (!init.statics) init.statics = map(); |
| 108 if (!init.interfaces) init.interfaces = map(); | 105 if (!init.interfaces) init.interfaces = map(); |
| 109 if (!init.globalFunctions) init.globalFunctions = map(); | 106 if (!init.globalFunctions) init.globalFunctions = map(); |
| 110 var libraries = init.libraries; | 107 var libraries = init.libraries; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 classes.push(property); | 174 classes.push(property); |
| 178 } | 175 } |
| 179 } | 176 } |
| 180 } | 177 } |
| 181 processStatics(descriptor); | 178 processStatics(descriptor); |
| 182 libraries.push([name, uri, classes, functions, metadata, fields, isRoot, | 179 libraries.push([name, uri, classes, functions, metadata, fields, isRoot, |
| 183 globalObject]); | 180 globalObject]); |
| 184 } | 181 } |
| 185 })([ | 182 })([ |
| 186 ["_foreign_helper", "dart:_foreign_helper", , H, { | 183 ["_foreign_helper", "dart:_foreign_helper", , H, { |
| 187 JS_CONST: {"": "Object;code"}}], | 184 JS_CONST: {"": "Object;code>"}}], |
| 188 ["_interceptors", "dart:_interceptors", , J, { | 185 ["_interceptors", "dart:_interceptors", , J, { |
| 189 getInterceptor: function(object) { | 186 getInterceptor: function(object) { |
| 190 return void 0; | 187 return void 0; |
| 191 }, | 188 }, |
| 192 | 189 |
| 193 makeDispatchRecord: function(interceptor, proto, extension, indexability) { | 190 makeDispatchRecord: function(interceptor, proto, extension, indexability) { |
| 194 return {i: interceptor, p: proto, e: extension, x: indexability}; | 191 return {i: interceptor, p: proto, e: extension, x: indexability}; |
| 195 }, | 192 }, |
| 196 | 193 |
| 197 getNativeInterceptor: function(object) { | 194 getNativeInterceptor: function(object) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 get$hashCode: function(_) { | 251 get$hashCode: function(_) { |
| 255 return 0; | 252 return 0; |
| 256 } | 253 } |
| 257 }, | 254 }, |
| 258 | 255 |
| 259 PlainJavaScriptObject: {"": "JavaScriptObject;"}, | 256 PlainJavaScriptObject: {"": "JavaScriptObject;"}, |
| 260 | 257 |
| 261 UnknownJavaScriptObject: {"": "JavaScriptObject;"}, | 258 UnknownJavaScriptObject: {"": "JavaScriptObject;"}, |
| 262 | 259 |
| 263 JSArray: {"": "List/Interceptor;", | 260 JSArray: {"": "List/Interceptor;", |
| 261 add$1: function(receiver, value) { |
| 262 if (!!receiver.fixed$length) |
| 263 H.throwExpression(P.UnsupportedError$("add")); |
| 264 receiver.push(value); |
| 265 }, |
| 266 removeLast$0: function(receiver) { |
| 267 if (!!receiver.fixed$length) |
| 268 H.throwExpression(P.UnsupportedError$("removeLast")); |
| 269 if (receiver.length === 0) |
| 270 throw H.wrapException(P.RangeError$value(-1)); |
| 271 return receiver.pop(); |
| 272 }, |
| 264 forEach$1: function(receiver, f) { | 273 forEach$1: function(receiver, f) { |
| 265 return H.IterableMixinWorkaround_forEach(receiver, f); | 274 return H.IterableMixinWorkaround_forEach(receiver, f); |
| 266 }, | 275 }, |
| 267 map$1: function(receiver, f) { | |
| 268 var t1 = new H.MappedListIterable(receiver, f); | |
| 269 H.setRuntimeTypeInfo(t1, [null, null]); | |
| 270 return t1; | |
| 271 }, | |
| 272 elementAt$1: function(receiver, index) { | 276 elementAt$1: function(receiver, index) { |
| 273 if (index < 0 || index >= receiver.length) | 277 if (index < 0 || index >= receiver.length) |
| 274 throw H.ioore(receiver, index); | 278 throw H.ioore(receiver, index); |
| 275 return receiver[index]; | 279 return receiver[index]; |
| 276 }, | 280 }, |
| 277 toString$0: function(receiver) { | 281 toString$0: function(receiver) { |
| 278 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); | 282 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); |
| 279 }, | 283 }, |
| 280 get$iterator: function(receiver) { | 284 get$iterator: function(receiver) { |
| 281 return new H.ListIterator(receiver, receiver.length, 0, null); | 285 return new H.ListIterator(receiver, receiver.length, 0, null); |
| 282 }, | 286 }, |
| 283 get$hashCode: function(receiver) { | 287 get$hashCode: function(receiver) { |
| 284 return H.Primitives_objectHashCode(receiver); | 288 return H.Primitives_objectHashCode(receiver); |
| 285 }, | 289 }, |
| 286 get$length: function(receiver) { | 290 get$length: function(receiver) { |
| 287 return receiver.length; | 291 return receiver.length; |
| 288 }, | 292 }, |
| 289 set$length: function(receiver, newLength) { | |
| 290 if (newLength < 0) | |
| 291 throw H.wrapException(new P.RangeError("value " + newLength)); | |
| 292 if (!!receiver.fixed$length) | |
| 293 H.throwExpression(new P.UnsupportedError("set length")); | |
| 294 receiver.length = newLength; | |
| 295 }, | |
| 296 $index: function(receiver, index) { | 293 $index: function(receiver, index) { |
| 297 if (typeof index !== "number" || Math.floor(index) !== index) | 294 if (typeof index !== "number" || Math.floor(index) !== index) |
| 298 throw H.wrapException(new P.ArgumentError(index)); | 295 throw H.wrapException(new P.ArgumentError(index)); |
| 299 if (index >= receiver.length || index < 0) | 296 if (index >= receiver.length || index < 0) |
| 300 throw H.wrapException(new P.RangeError("value " + H.S(index))); | 297 throw H.wrapException(P.RangeError$value(index)); |
| 301 return receiver[index]; | 298 return receiver[index]; |
| 302 }, | 299 }, |
| 303 $indexSet: function(receiver, index, value) { | 300 $indexSet: function(receiver, index, value) { |
| 304 if (!!receiver.immutable$list) | 301 if (!!receiver.immutable$list) |
| 305 H.throwExpression(new P.UnsupportedError("indexed set")); | 302 H.throwExpression(P.UnsupportedError$("indexed set")); |
| 306 if (typeof index !== "number" || Math.floor(index) !== index) | 303 if (typeof index !== "number" || Math.floor(index) !== index) |
| 307 throw H.wrapException(new P.ArgumentError(index)); | 304 throw H.wrapException(new P.ArgumentError(index)); |
| 308 if (index >= receiver.length || index < 0) | 305 if (index >= receiver.length || index < 0) |
| 309 throw H.wrapException(new P.RangeError("value " + H.S(index))); | 306 throw H.wrapException(P.RangeError$value(index)); |
| 310 receiver[index] = value; | 307 receiver[index] = value; |
| 311 }, | 308 }, |
| 312 $isList: true, | 309 $isList: true, |
| 313 $asList: null, | 310 $asList: null, |
| 314 $isList: true | 311 $isList: true, |
| 312 $isEfficientLength: true |
| 315 }, | 313 }, |
| 316 | 314 |
| 317 JSMutableArray: {"": "JSArray;", $isJSMutableArray: true, | 315 JSMutableArray: {"": "JSArray;", $isJSMutableArray: true, |
| 318 $asJSArray: function() { | 316 $asJSArray: function() { |
| 319 return [null]; | 317 return [null]; |
| 320 }, | 318 }, |
| 321 $asList: function() { | 319 $asList: function() { |
| 322 return [null]; | 320 return [null]; |
| 323 } | 321 } |
| 324 }, | 322 }, |
| 325 | 323 |
| 326 JSFixedArray: {"": "JSMutableArray;"}, | 324 JSFixedArray: {"": "JSMutableArray;"}, |
| 327 | 325 |
| 328 JSExtendableArray: {"": "JSMutableArray;", $isJSExtendableArray: true}, | 326 JSExtendableArray: {"": "JSMutableArray;", $isJSExtendableArray: true}, |
| 329 | 327 |
| 330 JSNumber: {"": "num/Interceptor;", | 328 JSNumber: {"": "num/Interceptor;", |
| 331 remainder$1: function(receiver, b) { | 329 remainder$1: function(receiver, b) { |
| 332 return receiver % b; | 330 return receiver % b; |
| 333 }, | 331 }, |
| 334 toInt$0: function(receiver) { | 332 toInt$0: function(receiver) { |
| 335 var truncated; | 333 var t1; |
| 336 if (isNaN(receiver)) | 334 if (isFinite(receiver)) { |
| 337 throw H.wrapException(new P.UnsupportedError("NaN")); | 335 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); |
| 338 if (receiver == Infinity || receiver == -Infinity) | 336 return t1 + 0; |
| 339 throw H.wrapException(new P.UnsupportedError("Infinity")); | 337 } |
| 340 truncated = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); | 338 throw H.wrapException(P.UnsupportedError$('' + receiver)); |
| 341 return truncated == -0.0 ? 0 : truncated; | |
| 342 }, | 339 }, |
| 343 toString$0: function(receiver) { | 340 toString$0: function(receiver) { |
| 344 if (receiver === 0 && 1 / receiver < 0) | 341 if (receiver === 0 && 1 / receiver < 0) |
| 345 return "-0.0"; | 342 return "-0.0"; |
| 346 else | 343 else |
| 347 return "" + receiver; | 344 return "" + receiver; |
| 348 }, | 345 }, |
| 349 get$hashCode: function(receiver) { | 346 get$hashCode: function(receiver) { |
| 350 return receiver & 0x1FFFFFFF; | 347 return receiver & 0x1FFFFFFF; |
| 351 }, | 348 }, |
| 352 $tdiv: function(receiver, other) { | 349 $tdiv: function(receiver, other) { |
| 353 return this.toInt$0(receiver / other); | 350 return this.toInt$0(receiver / other); |
| 354 }, | 351 }, |
| 355 $shr: function(receiver, other) { | 352 $shr: function(receiver, other) { |
| 356 if (other < 0) | 353 if (other < 0) |
| 357 throw H.wrapException(new P.ArgumentError(other)); | 354 throw H.wrapException(P.ArgumentError$(other)); |
| 358 if (receiver > 0) { | 355 if (receiver > 0) { |
| 359 if (other > 31) | 356 if (other > 31) |
| 360 return 0; | 357 return 0; |
| 361 return receiver >>> other; | 358 return receiver >>> other; |
| 362 } | 359 } |
| 363 if (other > 31) | 360 if (other > 31) |
| 364 other = 31; | 361 other = 31; |
| 365 return receiver >> other >>> 0; | 362 return receiver >> other >>> 0; |
| 366 }, | 363 }, |
| 367 $lt: function(receiver, other) { | 364 $lt: function(receiver, other) { |
| 368 if (typeof other !== "number") | 365 if (typeof other !== "number") |
| 369 throw H.wrapException(new P.ArgumentError(other)); | 366 throw H.wrapException(P.ArgumentError$(other)); |
| 370 return receiver < other; | 367 return receiver < other; |
| 371 }, | 368 }, |
| 372 $gt: function(receiver, other) { | 369 $gt: function(receiver, other) { |
| 373 if (typeof other !== "number") | 370 if (typeof other !== "number") |
| 374 throw H.wrapException(new P.ArgumentError(other)); | 371 throw H.wrapException(new P.ArgumentError(other)); |
| 375 return receiver > other; | 372 return receiver > other; |
| 376 }, | 373 }, |
| 377 $ge: function(receiver, other) { | 374 $ge: function(receiver, other) { |
| 378 if (typeof other !== "number") | 375 if (typeof other !== "number") |
| 379 throw H.wrapException(new P.ArgumentError(other)); | 376 throw H.wrapException(P.ArgumentError$(other)); |
| 380 return receiver >= other; | 377 return receiver >= other; |
| 381 }, | 378 }, |
| 382 $isnum: true | 379 $isnum: true |
| 383 }, | 380 }, |
| 384 | 381 |
| 385 JSInt: {"": "int/JSNumber;", $isdouble: true, $isnum: true, $isint: true}, | 382 JSInt: {"": "int/JSNumber;", $isdouble: true, $isnum: true, $isint: true}, |
| 386 | 383 |
| 387 JSDouble: {"": "double/JSNumber;", $isdouble: true, $isnum: true}, | 384 JSDouble: {"": "double/JSNumber;", $isdouble: true, $isnum: true}, |
| 388 | 385 |
| 389 JSString: {"": "String/Interceptor;", | 386 JSString: {"": "String/Interceptor;", |
| 390 codeUnitAt$1: function(receiver, index) { | 387 codeUnitAt$1: function(receiver, index) { |
| 391 if (index < 0) | 388 if (index < 0) |
| 392 throw H.wrapException(new P.RangeError("value " + H.S(index))); | 389 throw H.wrapException(P.RangeError$value(index)); |
| 393 if (index >= receiver.length) | 390 if (index >= receiver.length) |
| 394 throw H.wrapException(new P.RangeError("value " + H.S(index))); | 391 throw H.wrapException(P.RangeError$value(index)); |
| 395 return receiver.charCodeAt(index); | 392 return receiver.charCodeAt(index); |
| 396 }, | 393 }, |
| 397 substring$2: function(receiver, startIndex, endIndex) { | 394 substring$2: function(receiver, startIndex, endIndex) { |
| 398 if (endIndex == null) | 395 if (endIndex == null) |
| 399 endIndex = receiver.length; | 396 endIndex = receiver.length; |
| 400 if (typeof endIndex !== "number") | 397 if (typeof endIndex !== "number") |
| 401 H.throwExpression(new P.ArgumentError(endIndex)); | 398 H.throwExpression(P.ArgumentError$(endIndex)); |
| 402 if (startIndex < 0) | 399 if (startIndex < 0) |
| 403 throw H.wrapException(new P.RangeError("value " + startIndex)); | 400 throw H.wrapException(P.RangeError$value(startIndex)); |
| 404 if (typeof endIndex !== "number") | 401 if (typeof endIndex !== "number") |
| 405 throw H.iae(endIndex); | 402 throw H.iae(endIndex); |
| 406 if (startIndex > endIndex) | 403 if (startIndex > endIndex) |
| 407 throw H.wrapException(new P.RangeError("value " + startIndex)); | 404 throw H.wrapException(P.RangeError$value(startIndex)); |
| 408 if (endIndex > receiver.length) | 405 if (endIndex > receiver.length) |
| 409 throw H.wrapException(new P.RangeError("value " + H.S(endIndex))); | 406 throw H.wrapException(P.RangeError$value(endIndex)); |
| 410 return receiver.substring(startIndex, endIndex); | 407 return receiver.substring(startIndex, endIndex); |
| 411 }, | 408 }, |
| 412 substring$1: function($receiver, startIndex) { | 409 substring$1: function($receiver, startIndex) { |
| 413 return this.substring$2($receiver, startIndex, null); | 410 return this.substring$2($receiver, startIndex, null); |
| 414 }, | 411 }, |
| 415 get$isEmpty: function(receiver) { | 412 get$isEmpty: function(receiver) { |
| 416 return receiver.length === 0; | 413 return receiver.length === 0; |
| 417 }, | 414 }, |
| 418 toString$0: function(receiver) { | 415 toString$0: function(receiver) { |
| 419 return receiver; | 416 return receiver; |
| 420 }, | 417 }, |
| 421 get$hashCode: function(receiver) { | 418 get$hashCode: function(receiver) { |
| 422 var t1, hash, i; | 419 var t1, hash, i; |
| 423 for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { | 420 for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { |
| 424 hash = 536870911 & hash + receiver.charCodeAt(i); | 421 hash = 536870911 & hash + receiver.charCodeAt(i); |
| 425 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); | 422 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); |
| 426 hash ^= hash >> 6; | 423 hash ^= hash >> 6; |
| 427 } | 424 } |
| 428 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); | 425 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); |
| 429 hash ^= hash >> 11; | 426 hash ^= hash >> 11; |
| 430 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); | 427 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); |
| 431 }, | 428 }, |
| 432 get$length: function(receiver) { | 429 get$length: function(receiver) { |
| 433 return receiver.length; | 430 return receiver.length; |
| 434 }, | 431 }, |
| 435 $index: function(receiver, index) { | 432 $index: function(receiver, index) { |
| 436 if (typeof index !== "number" || Math.floor(index) !== index) | 433 if (typeof index !== "number" || Math.floor(index) !== index) |
| 437 throw H.wrapException(new P.ArgumentError(index)); | 434 throw H.wrapException(new P.ArgumentError(index)); |
| 438 if (index >= receiver.length || index < 0) | 435 if (index >= receiver.length || index < 0) |
| 439 throw H.wrapException(new P.RangeError("value " + H.S(index))); | 436 throw H.wrapException(P.RangeError$value(index)); |
| 440 return receiver[index]; | 437 return receiver[index]; |
| 441 }, | 438 }, |
| 442 $isString: true | 439 $isString: true |
| 443 }}], | 440 }}], |
| 444 ["_isolate_helper", "dart:_isolate_helper", , H, { | 441 ["_isolate_helper", "dart:_isolate_helper", , H, { |
| 445 _callInIsolate: function(isolate, $function) { | 442 _callInIsolate: function(isolate, $function) { |
| 446 var result = isolate.eval$1($function); | 443 var result = isolate.eval$1($function); |
| 447 $globalState.topEventLoop.run$0(); | 444 $globalState.topEventLoop.run$0(); |
| 448 return result; | 445 return result; |
| 449 }, | 446 }, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 470 return thisFilename(); | 467 return thisFilename(); |
| 471 return; | 468 return; |
| 472 }, | 469 }, |
| 473 | 470 |
| 474 IsolateNatives_computeThisScriptD8: function() { | 471 IsolateNatives_computeThisScriptD8: function() { |
| 475 var stack, matches; | 472 var stack, matches; |
| 476 stack = new Error().stack; | 473 stack = new Error().stack; |
| 477 if (stack == null) { | 474 if (stack == null) { |
| 478 stack = (function() {try { throw new Error() } catch(e) { return e.stack }})
(); | 475 stack = (function() {try { throw new Error() } catch(e) { return e.stack }})
(); |
| 479 if (stack == null) | 476 if (stack == null) |
| 480 throw H.wrapException(new P.UnsupportedError("No stack trace")); | 477 throw H.wrapException(P.UnsupportedError$("No stack trace")); |
| 481 } | 478 } |
| 482 matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"))
; | 479 matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"))
; |
| 483 if (matches != null) | 480 if (matches != null) |
| 484 return matches[1]; | 481 return matches[1]; |
| 485 matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m")); | 482 matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m")); |
| 486 if (matches != null) | 483 if (matches != null) |
| 487 return matches[1]; | 484 return matches[1]; |
| 488 throw H.wrapException(new P.UnsupportedError("Cannot extract URI from \"" + st
ack + "\"")); | 485 throw H.wrapException(P.UnsupportedError$("Cannot extract URI from \"" + stack
+ "\"")); |
| 489 }, | 486 }, |
| 490 | 487 |
| 491 IsolateNatives__processWorkerMessage: function(sender, e) { | 488 IsolateNatives__processWorkerMessage: function(sender, e) { |
| 492 var msg, t1, functionName, entryPoint, replyTo, context, t2; | 489 var msg, t1, functionName, entryPoint, replyTo, context, t2; |
| 493 msg = H._deserializeMessage(e.data); | 490 msg = H._deserializeMessage(e.data); |
| 494 t1 = J.getInterceptor$asx(msg); | 491 t1 = J.getInterceptor$asx(msg); |
| 495 switch (t1.$index(msg, "command")) { | 492 switch (t1.$index(msg, "command")) { |
| 496 case "start": | 493 case "start": |
| 497 $globalState.currentManagerId = t1.$index(msg, "id"); | 494 $globalState.currentManagerId = t1.$index(msg, "id"); |
| 498 functionName = t1.$index(msg, "functionName"); | 495 functionName = t1.$index(msg, "functionName"); |
| 499 entryPoint = functionName == null ? $globalState.entry : init.globalFuncti
ons[functionName]; | 496 entryPoint = functionName == null ? $globalState.entry : init.globalFuncti
ons[functionName]; |
| 500 replyTo = H._deserializeMessage(t1.$index(msg, "replyTo")); | 497 replyTo = H._deserializeMessage(t1.$index(msg, "replyTo")); |
| 501 context = H._IsolateContext$(); | 498 context = H._IsolateContext$(); |
| 502 $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H
.IsolateNatives__processWorkerMessage_closure(entryPoint, replyTo), "worker-star
t")); | 499 $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H
.IsolateNatives__processWorkerMessage_closure(entryPoint, replyTo), "worker-star
t")); |
| 503 $globalState.currentContext = context; | 500 $globalState.currentContext = context; |
| 504 $globalState.topEventLoop.run$0(); | 501 $globalState.topEventLoop.run$0(); |
| 505 break; | 502 break; |
| 506 case "spawn-worker": | 503 case "spawn-worker": |
| 507 H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(ms
g, "uri"), t1.$index(msg, "replyPort")); | 504 H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(ms
g, "uri"), t1.$index(msg, "replyPort")); |
| 508 break; | 505 break; |
| 509 case "message": | 506 case "message": |
| 510 if (t1.$index(msg, "port") != null) | 507 if (t1.$index(msg, "port") != null) |
| 511 J.send$2$x(t1.$index(msg, "port"), t1.$index(msg, "msg"), t1.$index(msg,
"replyTo")); | 508 t1.$index(msg, "port").send$2(t1.$index(msg, "msg"), t1.$index(msg, "rep
lyTo")); |
| 512 $globalState.topEventLoop.run$0(); | 509 $globalState.topEventLoop.run$0(); |
| 513 break; | 510 break; |
| 514 case "close": | 511 case "close": |
| 515 t1 = $globalState.managers; | 512 t1 = $globalState.managers; |
| 516 t2 = $.get$IsolateNatives_workerIds(); | 513 t2 = $.get$IsolateNatives_workerIds(); |
| 517 t1.remove$1(t1, t2.$index(t2, sender)); | 514 t1.remove$1(t1, t2.$index(t2, sender)); |
| 518 sender.terminate(); | 515 sender.terminate(); |
| 519 $globalState.topEventLoop.run$0(); | 516 $globalState.topEventLoop.run$0(); |
| 520 break; | 517 break; |
| 521 case "log": | 518 case "log": |
| 522 H.IsolateNatives__log(t1.$index(msg, "msg")); | 519 H.IsolateNatives__log(t1.$index(msg, "msg")); |
| 523 break; | 520 break; |
| 524 case "print": | 521 case "print": |
| 525 if ($globalState.isWorker === true) { | 522 if ($globalState.isWorker === true) { |
| 526 t1 = $globalState.mainManager; | 523 t1 = $globalState.mainManager; |
| 527 t2 = H._serializeMessage(H.fillLiteralMap(["command", "print", "msg", ms
g], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | 524 t2 = H._serializeMessage(H.fillLiteralMap(["command", "print", "msg", ms
g], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null))); |
| 528 t1.toString; | 525 t1.toString; |
| 529 self.postMessage(t2); | 526 self.postMessage(t2); |
| 530 } else | 527 } else |
| 531 H.Primitives_printString(J.toString$0(t1.$index(msg, "msg"))); | 528 P.print(t1.$index(msg, "msg")); |
| 532 break; | 529 break; |
| 533 case "error": | 530 case "error": |
| 534 throw H.wrapException(t1.$index(msg, "msg")); | 531 throw H.wrapException(t1.$index(msg, "msg")); |
| 535 default: | 532 default: |
| 536 } | 533 } |
| 537 }, | 534 }, |
| 538 | 535 |
| 539 IsolateNatives__log: function(msg) { | 536 IsolateNatives__log: function(msg) { |
| 540 var trace, t1, t2, exception; | 537 var trace, t1, t2, exception; |
| 541 if ($globalState.isWorker === true) { | 538 if ($globalState.isWorker === true) { |
| 542 t1 = $globalState.mainManager; | 539 t1 = $globalState.mainManager; |
| 543 t2 = H._serializeMessage(H.fillLiteralMap(["command", "log", "msg", msg], P.
LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | 540 t2 = H._serializeMessage(H.fillLiteralMap(["command", "log", "msg", msg], P.
LinkedHashMap_LinkedHashMap(null, null, null, null, null))); |
| 544 t1.toString; | 541 t1.toString; |
| 545 self.postMessage(t2); | 542 self.postMessage(t2); |
| 546 } else | 543 } else |
| 547 try { | 544 try { |
| 548 $.get$globalThis().console.log(msg); | 545 $.get$globalThis().console.log(msg); |
| 549 } catch (exception) { | 546 } catch (exception) { |
| 550 H.unwrapException(exception); | 547 H.unwrapException(exception); |
| 551 trace = new H._StackTrace(exception, null); | 548 trace = new H._StackTrace(exception, null); |
| 552 throw H.wrapException(new P._ExceptionImplementation(trace)); | 549 throw H.wrapException(P.Exception_Exception(trace)); |
| 553 } | 550 } |
| 554 | 551 |
| 555 }, | 552 }, |
| 556 | 553 |
| 557 IsolateNatives__startIsolate: function(topLevel, replyTo) { | 554 IsolateNatives__startIsolate: function(topLevel, replyTo) { |
| 558 var t1; | 555 var t1; |
| 559 H.Primitives_initializeStatics($globalState.currentContext.id); | 556 H.Primitives_initializeStatics($globalState.currentContext.id); |
| 560 $.lazyPort = H.ReceivePortImpl$(); | 557 $.lazyPort = H.ReceivePortImpl$(); |
| 561 t1 = P._Isolate_port(); | 558 t1 = P._Isolate_port(); |
| 562 t1.toString; | 559 t1.toString; |
| 563 J.send$2$x(replyTo, "spawned", new H._NativeJsSendPort(t1, $globalState.curren
tContext.id)); | 560 replyTo.send$2("spawned", new H._NativeJsSendPort(t1, $globalState.currentCont
ext.id)); |
| 564 topLevel.call$0(); | 561 topLevel.call$0(); |
| 565 }, | 562 }, |
| 566 | 563 |
| 567 IsolateNatives__spawnWorker: function(functionName, uri, replyPort) { | 564 IsolateNatives__spawnWorker: function(functionName, uri, replyPort) { |
| 568 var worker, t1, workerId; | 565 var worker, t1, workerId; |
| 569 if (uri == null) | 566 if (uri == null) |
| 570 uri = $.get$IsolateNatives_thisScript(); | 567 uri = $.get$IsolateNatives_thisScript(); |
| 571 worker = new Worker(uri); | 568 worker = new Worker(uri); |
| 572 worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(worker, e); }; | 569 worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(worker, e); }; |
| 573 t1 = $globalState; | 570 t1 = $globalState; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | 607 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; |
| 611 }, | 608 }, |
| 612 | 609 |
| 613 _Deserializer_isPrimitive: function(x) { | 610 _Deserializer_isPrimitive: function(x) { |
| 614 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | 611 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; |
| 615 }, | 612 }, |
| 616 | 613 |
| 617 CloseToken: {"": "Object;", $isCloseToken: true}, | 614 CloseToken: {"": "Object;", $isCloseToken: true}, |
| 618 | 615 |
| 619 JsIsolateSink: {"": "EventSink;_isClosed,_port<", | 616 JsIsolateSink: {"": "EventSink;_isClosed,_port<", |
| 617 add$1: function(_, message) { |
| 618 this._port.send$1(message); |
| 619 }, |
| 620 $eq: function(_, other) { | 620 $eq: function(_, other) { |
| 621 var t1; | 621 var t1; |
| 622 if (other == null) | 622 if (other == null) |
| 623 return false; | 623 return false; |
| 624 t1 = J.getInterceptor(other); | 624 t1 = J.getInterceptor(other); |
| 625 return typeof other === "object" && other !== null && !!t1.$isIsolateSink &&
J.$eq(this._port, other.get$_port()); | 625 return typeof other === "object" && other !== null && !!t1.$isIsolateSink &&
J.$eq(this._port, other.get$_port()); |
| 626 }, | 626 }, |
| 627 get$hashCode: function(_) { | 627 get$hashCode: function(_) { |
| 628 return J.get$hashCode$(this._port) + 499; | 628 return J.get$hashCode$(this._port) + 499; |
| 629 }, | 629 }, |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 } | 684 } |
| 685 return result; | 685 return result; |
| 686 }, | 686 }, |
| 687 lookup$1: function(portId) { | 687 lookup$1: function(portId) { |
| 688 var t1 = this.ports; | 688 var t1 = this.ports; |
| 689 return t1.$index(t1, portId); | 689 return t1.$index(t1, portId); |
| 690 }, | 690 }, |
| 691 register$2: function(_, portId, port) { | 691 register$2: function(_, portId, port) { |
| 692 var t1; | 692 var t1; |
| 693 if (this.ports.containsKey$1(portId)) | 693 if (this.ports.containsKey$1(portId)) |
| 694 throw H.wrapException(new P._ExceptionImplementation("Registry: ports must
be registered only once.")); | 694 throw H.wrapException(P.Exception_Exception("Registry: ports must be regis
tered only once.")); |
| 695 t1 = this.ports; | 695 t1 = this.ports; |
| 696 t1.$indexSet(t1, portId, port); | 696 t1.$indexSet(t1, portId, port); |
| 697 t1 = $globalState.isolates; | 697 t1 = $globalState.isolates; |
| 698 t1.$indexSet(t1, this.id, this); | 698 t1.$indexSet(t1, this.id, this); |
| 699 }, | 699 }, |
| 700 unregister$1: function(portId) { | 700 unregister$1: function(portId) { |
| 701 var t1 = this.ports; | 701 var t1 = this.ports; |
| 702 t1.remove$1(t1, portId); | 702 t1.remove$1(t1, portId); |
| 703 if (this.ports._collection$_length === 0) { | 703 if (this.ports._collection$_length === 0) { |
| 704 t1 = $globalState.isolates; | 704 t1 = $globalState.isolates; |
| 705 t1.remove$1(t1, this.id); | 705 t1.remove$1(t1, this.id); |
| 706 } | 706 } |
| 707 }, | 707 }, |
| 708 _IsolateContext$0: function() { | 708 _IsolateContext$0: function() { |
| 709 var t1, t2; | 709 var t1, t2; |
| 710 t1 = $globalState; | 710 t1 = $globalState; |
| 711 t2 = t1.nextIsolateId; | 711 t2 = t1.nextIsolateId; |
| 712 t1.nextIsolateId = t2 + 1; | 712 t1.nextIsolateId = t2 + 1; |
| 713 this.id = t2; | 713 this.id = t2; |
| 714 this.ports = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, P.Rece
ivePort); | 714 this.ports = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, P.Rece
ivePort); |
| 715 this.isolateStatics = new Isolate(); | 715 this.isolateStatics = new Isolate(); |
| 716 }, | 716 }, |
| 717 $is_IsolateContext: true, | |
| 718 static: { | 717 static: { |
| 719 _IsolateContext$: function() { | 718 _IsolateContext$: function() { |
| 720 var t1 = new H._IsolateContext(null, null, null); | 719 var t1 = new H._IsolateContext(null, null, null); |
| 721 t1._IsolateContext$0(); | 720 t1._IsolateContext$0(); |
| 722 return t1; | 721 return t1; |
| 723 }} | 722 }} |
| 724 | 723 |
| 725 }, | 724 }, |
| 726 | 725 |
| 727 _EventLoop: {"": "Object;events,activeTimerCount", | 726 _EventLoop: {"": "Object;events,activeTimerCount", |
| 728 dequeue$0: function() { | 727 dequeue$0: function() { |
| 729 var t1 = this.events; | 728 var t1 = this.events; |
| 730 if (t1._head === t1._tail) | 729 if (t1._head === t1._tail) |
| 731 return; | 730 return; |
| 732 return t1.removeFirst$0(); | 731 return t1.removeFirst$0(); |
| 733 }, | 732 }, |
| 734 checkOpenReceivePortsFromCommandLine$0: function() { | 733 checkOpenReceivePortsFromCommandLine$0: function() { |
| 735 if ($globalState.rootContext != null && $globalState.isolates.containsKey$1(
$globalState.rootContext.id) && $globalState.fromCommandLine === true && $global
State.rootContext.ports._collection$_length === 0) | 734 if ($globalState.rootContext != null && $globalState.isolates.containsKey$1(
$globalState.rootContext.id) && $globalState.fromCommandLine === true && $global
State.rootContext.ports._collection$_length === 0) |
| 736 throw H.wrapException(new P._ExceptionImplementation("Program exited with
open ReceivePorts.")); | 735 throw H.wrapException(P.Exception_Exception("Program exited with open Rece
ivePorts.")); |
| 737 }, | 736 }, |
| 738 runIteration$0: function() { | 737 runIteration$0: function() { |
| 739 var $event, t1, t2; | 738 var $event, t1, t2; |
| 740 $event = this.dequeue$0(); | 739 $event = this.dequeue$0(); |
| 741 if ($event == null) { | 740 if ($event == null) { |
| 742 this.checkOpenReceivePortsFromCommandLine$0(); | 741 this.checkOpenReceivePortsFromCommandLine$0(); |
| 743 t1 = $globalState; | 742 t1 = $globalState; |
| 744 if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.to
pEventLoop.activeTimerCount === 0) { | 743 if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.to
pEventLoop.activeTimerCount === 0) { |
| 745 t1 = t1.mainManager; | 744 t1 = t1.mainManager; |
| 746 t2 = H._serializeMessage(H.fillLiteralMap(["command", "close"], P.Linked
HashMap_LinkedHashMap(null, null, null, null, null))); | 745 t2 = H._serializeMessage(H.fillLiteralMap(["command", "close"], P.Linked
HashMap_LinkedHashMap(null, null, null, null, null))); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 777 } | 776 } |
| 778 | 777 |
| 779 } | 778 } |
| 780 }, | 779 }, |
| 781 | 780 |
| 782 _EventLoop__runHelper_next: {"": "Closure;this_0", | 781 _EventLoop__runHelper_next: {"": "Closure;this_0", |
| 783 call$0: function() { | 782 call$0: function() { |
| 784 if (!this.this_0.runIteration$0()) | 783 if (!this.this_0.runIteration$0()) |
| 785 return; | 784 return; |
| 786 P.Timer_Timer(C.Duration_0, this); | 785 P.Timer_Timer(C.Duration_0, this); |
| 787 }, | 786 } |
| 788 $is_void_: true | |
| 789 }, | 787 }, |
| 790 | 788 |
| 791 _IsolateEvent: {"": "Object;isolate,fn,message", | 789 _IsolateEvent: {"": "Object;isolate,fn,message", |
| 792 process$0: function() { | 790 process$0: function() { |
| 793 this.isolate.eval$1(this.fn); | 791 this.isolate.eval$1(this.fn); |
| 794 }, | 792 } |
| 795 $is_IsolateEvent: true | |
| 796 }, | 793 }, |
| 797 | 794 |
| 798 _MainManagerStub: {"": "Object;"}, | 795 _MainManagerStub: {"": "Object;"}, |
| 799 | 796 |
| 800 IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,replyTo
_1", | 797 IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,replyTo
_1", |
| 801 call$0: function() { | 798 call$0: function() { |
| 802 H.IsolateNatives__startIsolate(this.entryPoint_0, this.replyTo_1); | 799 H.IsolateNatives__startIsolate(this.entryPoint_0, this.replyTo_1); |
| 803 }, | 800 } |
| 804 $is_void_: true | |
| 805 }, | 801 }, |
| 806 | 802 |
| 807 _BaseSendPort: {"": "Object;", | 803 _BaseSendPort: {"": "Object;", |
| 808 _checkReplyTo$1: function(replyTo) { | 804 _checkReplyTo$1: function(replyTo) { |
| 809 var t1; | 805 var t1; |
| 810 if (replyTo != null) { | 806 if (replyTo != null) { |
| 811 t1 = J.getInterceptor(replyTo); | 807 t1 = J.getInterceptor(replyTo); |
| 812 t1 = (typeof replyTo !== "object" || replyTo === null || !t1.$is_NativeJsS
endPort) && (typeof replyTo !== "object" || replyTo === null || !t1.$is_WorkerSe
ndPort) && true; | 808 t1 = (typeof replyTo !== "object" || replyTo === null || !t1.$is_NativeJsS
endPort) && (typeof replyTo !== "object" || replyTo === null || !t1.$is_WorkerSe
ndPort) && true; |
| 813 } else | 809 } else |
| 814 t1 = false; | 810 t1 = false; |
| 815 if (t1) | 811 if (t1) |
| 816 throw H.wrapException(new P._ExceptionImplementation("SendPort.send: Illeg
al replyTo port type")); | 812 throw H.wrapException(P.Exception_Exception("SendPort.send: Illegal replyT
o port type")); |
| 817 }, | 813 }, |
| 818 call$1: function(message) { | 814 call$1: function(message) { |
| 819 var t1, completer, port; | 815 var t1, completer, port; |
| 820 t1 = null; | 816 t1 = null; |
| 821 completer = new P._AsyncCompleter(P._Future$(t1)); | 817 completer = new P._AsyncCompleter(P._Future$(t1)); |
| 822 H.setRuntimeTypeInfo(completer, [t1]); | 818 H.setRuntimeTypeInfo(completer, [t1]); |
| 823 port = H.ReceivePortImpl$(); | 819 port = H.ReceivePortImpl$(); |
| 824 this.send$2(this, message, new H._NativeJsSendPort(port, $globalState.curren
tContext.id)); | 820 this.send$2(message, new H._NativeJsSendPort(port, $globalState.currentConte
xt.id)); |
| 825 port._callback = new H._BaseSendPort_call_closure(completer, port); | 821 port._callback = new H._BaseSendPort_call_closure(completer, port); |
| 826 return completer.future; | 822 return completer.future; |
| 827 }, | 823 }, |
| 828 $isSendPort: true | 824 $isSendPort: true |
| 829 }, | 825 }, |
| 830 | 826 |
| 831 _BaseSendPort_call_closure: {"": "Closure;completer_0,port_1", | 827 _BaseSendPort_call_closure: {"": "Closure;completer_0,port_1", |
| 832 call$2: function(value, ignoreReplyTo) { | 828 call$2: function(value, ignoreReplyTo) { |
| 833 var t1, t2; | 829 var t1, t2; |
| 834 t1 = this.port_1; | 830 t1 = this.port_1; |
| 835 t1._callback = null; | 831 t1._callback = null; |
| 836 $globalState.currentContext.unregister$1(t1._id); | 832 $globalState.currentContext.unregister$1(t1._id); |
| 837 t1 = J.getInterceptor(value); | 833 t1 = J.getInterceptor(value); |
| 838 t2 = this.completer_0; | 834 t2 = this.completer_0; |
| 839 if (typeof value === "object" && value !== null && !!t1.$isException) { | 835 if (typeof value === "object" && value !== null && !!t1.$isException) { |
| 840 t1 = t2.future; | 836 t1 = t2.future; |
| 841 if (t1._state !== 0) | 837 if (t1._state !== 0) |
| 842 H.throwExpression(new P.StateError("Future already completed")); | 838 H.throwExpression(new P.StateError("Future already completed")); |
| 843 t1._asyncCompleteError$2(value, null); | 839 t1._asyncCompleteError$2(value, null); |
| 844 } else { | 840 } else { |
| 845 t1 = t2.future; | 841 t1 = t2.future; |
| 846 if (t1._state !== 0) | 842 if (t1._state !== 0) |
| 847 H.throwExpression(new P.StateError("Future already completed")); | 843 H.throwExpression(new P.StateError("Future already completed")); |
| 848 t1._asyncComplete$1(value); | 844 t1._asyncComplete$1(value); |
| 849 } | 845 } |
| 850 } | 846 }, |
| 847 $is_args2: true |
| 851 }, | 848 }, |
| 852 | 849 |
| 853 _NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId", | 850 _NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId", |
| 854 send$2: function(_, message, replyTo) { | 851 send$2: function(message, replyTo) { |
| 855 H._waitForPendingPorts([message, replyTo], new H._NativeJsSendPort_send_clos
ure(this, message, replyTo)); | 852 H._waitForPendingPorts([message, replyTo], new H._NativeJsSendPort_send_clos
ure(this, message, replyTo)); |
| 856 }, | 853 }, |
| 854 send$1: function(message) { |
| 855 return this.send$2(message, null); |
| 856 }, |
| 857 $eq: function(_, other) { | 857 $eq: function(_, other) { |
| 858 var t1; | 858 var t1; |
| 859 if (other == null) | 859 if (other == null) |
| 860 return false; | 860 return false; |
| 861 t1 = J.getInterceptor(other); | 861 t1 = J.getInterceptor(other); |
| 862 return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendP
ort && J.$eq(this._receivePort, other._receivePort); | 862 return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendP
ort && J.$eq(this._receivePort, other._receivePort); |
| 863 }, | 863 }, |
| 864 get$hashCode: function(_) { | 864 get$hashCode: function(_) { |
| 865 return this._receivePort.get$_id(); | 865 return this._receivePort.get$_id(); |
| 866 }, | 866 }, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 886 msg = this.message_2; | 886 msg = this.message_2; |
| 887 t1.msg_0 = msg; | 887 t1.msg_0 = msg; |
| 888 t1.reply_1 = t3; | 888 t1.reply_1 = t3; |
| 889 if (shouldSerialize) { | 889 if (shouldSerialize) { |
| 890 t1.msg_0 = H._serializeMessage(t1.msg_0); | 890 t1.msg_0 = H._serializeMessage(t1.msg_0); |
| 891 t1.reply_1 = H._serializeMessage(t1.reply_1); | 891 t1.reply_1 = H._serializeMessage(t1.reply_1); |
| 892 } | 892 } |
| 893 t3 = $globalState.topEventLoop; | 893 t3 = $globalState.topEventLoop; |
| 894 t4 = "receive " + H.S(msg); | 894 t4 = "receive " + H.S(msg); |
| 895 t3.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__
closure(t1, t2, shouldSerialize), t4)); | 895 t3.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__
closure(t1, t2, shouldSerialize), t4)); |
| 896 }, | 896 } |
| 897 $is_void_: true | |
| 898 }, | 897 }, |
| 899 | 898 |
| 900 _NativeJsSendPort_send__closure: {"": "Closure;box_0,this_4,shouldSerialize_5", | 899 _NativeJsSendPort_send__closure: {"": "Closure;box_0,this_4,shouldSerialize_5", |
| 901 call$0: function() { | 900 call$0: function() { |
| 902 var t1, t2; | 901 var t1, t2; |
| 903 t1 = this.this_4._receivePort; | 902 t1 = this.this_4._receivePort; |
| 904 if (t1.get$_callback() != null) { | 903 if (t1.get$_callback() != null) { |
| 905 if (this.shouldSerialize_5) { | 904 if (this.shouldSerialize_5) { |
| 906 t2 = this.box_0; | 905 t2 = this.box_0; |
| 907 t2.msg_0 = H._deserializeMessage(t2.msg_0); | 906 t2.msg_0 = H._deserializeMessage(t2.msg_0); |
| 908 t2.reply_1 = H._deserializeMessage(t2.reply_1); | 907 t2.reply_1 = H._deserializeMessage(t2.reply_1); |
| 909 } | 908 } |
| 910 t2 = this.box_0; | 909 t2 = this.box_0; |
| 911 t1._callback$2(t2.msg_0, t2.reply_1); | 910 t1._callback$2(t2.msg_0, t2.reply_1); |
| 912 } | 911 } |
| 913 }, | 912 } |
| 914 $is_void_: true | |
| 915 }, | 913 }, |
| 916 | 914 |
| 917 _WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId", | 915 _WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId", |
| 918 send$2: function(_, message, replyTo) { | 916 send$2: function(message, replyTo) { |
| 919 H._waitForPendingPorts([message, replyTo], new H._WorkerSendPort_send_closur
e(this, message, replyTo)); | 917 H._waitForPendingPorts([message, replyTo], new H._WorkerSendPort_send_closur
e(this, message, replyTo)); |
| 920 }, | 918 }, |
| 919 send$1: function(message) { |
| 920 return this.send$2(message, null); |
| 921 }, |
| 921 $eq: function(_, other) { | 922 $eq: function(_, other) { |
| 922 var t1; | 923 var t1; |
| 923 if (other == null) | 924 if (other == null) |
| 924 return false; | 925 return false; |
| 925 t1 = J.getInterceptor(other); | 926 t1 = J.getInterceptor(other); |
| 926 if (typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort) | 927 if (typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort) |
| 927 t1 = J.$eq(this._workerId, other._workerId) && J.$eq(this._isolateId, othe
r._isolateId) && J.$eq(this._receivePortId, other._receivePortId); | 928 t1 = J.$eq(this._workerId, other._workerId) && J.$eq(this._isolateId, othe
r._isolateId) && J.$eq(this._receivePortId, other._receivePortId); |
| 928 else | 929 else |
| 929 t1 = false; | 930 t1 = false; |
| 930 return t1; | 931 return t1; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 955 workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message",
"port", t1, "msg", this.message_1, "replyTo", t2], P.LinkedHashMap_LinkedHashMap
(null, null, null, null, null))); | 956 workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message",
"port", t1, "msg", this.message_1, "replyTo", t2], P.LinkedHashMap_LinkedHashMap
(null, null, null, null, null))); |
| 956 if ($globalState.isWorker === true) { | 957 if ($globalState.isWorker === true) { |
| 957 $globalState.mainManager.toString; | 958 $globalState.mainManager.toString; |
| 958 self.postMessage(workerMessage); | 959 self.postMessage(workerMessage); |
| 959 } else { | 960 } else { |
| 960 t2 = $globalState.managers; | 961 t2 = $globalState.managers; |
| 961 manager = t2.$index(t2, t1._workerId); | 962 manager = t2.$index(t2, t1._workerId); |
| 962 if (manager != null) | 963 if (manager != null) |
| 963 manager.postMessage(workerMessage); | 964 manager.postMessage(workerMessage); |
| 964 } | 965 } |
| 965 }, | 966 } |
| 966 $is_void_: true | |
| 967 }, | 967 }, |
| 968 | 968 |
| 969 ReceivePortImpl: {"": "Object;_id<,_callback<", | 969 ReceivePortImpl: {"": "Object;_id<,_callback<", |
| 970 _callback$2: function(arg0, arg1) { | 970 _callback$2: function(arg0, arg1) { |
| 971 return this._callback.call$2(arg0, arg1); | 971 return this._callback.call$2(arg0, arg1); |
| 972 }, | 972 }, |
| 973 ReceivePortImpl$0: function() { | 973 ReceivePortImpl$0: function() { |
| 974 var t1 = $globalState.currentContext; | 974 var t1 = $globalState.currentContext; |
| 975 t1.register$2(t1, this._id, this); | 975 t1.register$2(t1, this._id, this); |
| 976 }, | 976 }, |
| 977 $isReceivePort: true, | |
| 978 static: { | 977 static: { |
| 979 "": "ReceivePortImpl__nextFreeId", | 978 "": "ReceivePortImpl__nextFreeId", |
| 980 ReceivePortImpl$: function() { | 979 ReceivePortImpl$: function() { |
| 981 var t1 = $.ReceivePortImpl__nextFreeId; | 980 var t1 = $.ReceivePortImpl__nextFreeId; |
| 982 $.ReceivePortImpl__nextFreeId = t1 + 1; | 981 $.ReceivePortImpl__nextFreeId = t1 + 1; |
| 983 t1 = new H.ReceivePortImpl(t1, null); | 982 t1 = new H.ReceivePortImpl(t1, null); |
| 984 t1.ReceivePortImpl$0(); | 983 t1.ReceivePortImpl$0(); |
| 985 return t1; | 984 return t1; |
| 986 }} | 985 }} |
| 987 | 986 |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 t2.$indexSet(t2, map, t1.copy_0); | 1242 t2.$indexSet(t2, map, t1.copy_0); |
| 1244 map.forEach$1(map, new H._Copier_visitMap_closure(t1, this)); | 1243 map.forEach$1(map, new H._Copier_visitMap_closure(t1, this)); |
| 1245 return t1.copy_0; | 1244 return t1.copy_0; |
| 1246 } | 1245 } |
| 1247 }, | 1246 }, |
| 1248 | 1247 |
| 1249 _Copier_visitMap_closure: {"": "Closure;box_0,this_1", | 1248 _Copier_visitMap_closure: {"": "Closure;box_0,this_1", |
| 1250 call$2: function(key, val) { | 1249 call$2: function(key, val) { |
| 1251 var t1 = this.this_1; | 1250 var t1 = this.this_1; |
| 1252 J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val)); | 1251 J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val)); |
| 1253 } | 1252 }, |
| 1253 $is_args2: true |
| 1254 }, | 1254 }, |
| 1255 | 1255 |
| 1256 _Serializer: {"": "_MessageTraverser;", | 1256 _Serializer: {"": "_MessageTraverser;", |
| 1257 visitPrimitive$1: function(x) { | 1257 visitPrimitive$1: function(x) { |
| 1258 return x; | 1258 return x; |
| 1259 }, | 1259 }, |
| 1260 visitList$1: function(list) { | 1260 visitList$1: function(list) { |
| 1261 var t1, copyId, id; | 1261 var t1, copyId, id; |
| 1262 t1 = this._visited; | 1262 t1 = this._visited; |
| 1263 copyId = t1.$index(t1, list); | 1263 copyId = t1.$index(t1, list); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1275 copyId = t1.$index(t1, map); | 1275 copyId = t1.$index(t1, map); |
| 1276 if (copyId != null) | 1276 if (copyId != null) |
| 1277 return ["ref", copyId]; | 1277 return ["ref", copyId]; |
| 1278 id = this._nextFreeRefId; | 1278 id = this._nextFreeRefId; |
| 1279 this._nextFreeRefId = id + 1; | 1279 this._nextFreeRefId = id + 1; |
| 1280 t1 = this._visited; | 1280 t1 = this._visited; |
| 1281 t1.$indexSet(t1, map, id); | 1281 t1.$indexSet(t1, map, id); |
| 1282 t1 = map.get$keys(); | 1282 t1 = map.get$keys(); |
| 1283 keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgu
ment(t1, "IterableBase", 0))); | 1283 keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgu
ment(t1, "IterableBase", 0))); |
| 1284 t1 = map.get$values(map); | 1284 t1 = map.get$values(map); |
| 1285 return ["map", id, keys, this._serializeList$1(t1.toList$0(t1))]; | 1285 return ["map", id, keys, this._serializeList$1(P.List_List$from(t1, true, H.
getRuntimeTypeArgument(t1, "IterableBase", 0)))]; |
| 1286 }, | 1286 }, |
| 1287 _serializeList$1: function(list) { | 1287 _serializeList$1: function(list) { |
| 1288 var len, result, t1, i, t2; | 1288 var len, result, t1, i, t2; |
| 1289 if (typeof list !== "string" && (typeof list !== "object" || list === null |
| list.constructor !== Array && !H.isJsIndexable(list, list[init.dispatchPropert
yName]))) | 1289 if (typeof list !== "string" && (typeof list !== "object" || list === null |
| list.constructor !== Array && !H.isJsIndexable(list, list[init.dispatchPropert
yName]))) |
| 1290 return this._serializeList$1$bailout(1, list); | 1290 return this._serializeList$1$bailout(1, list); |
| 1291 len = list.length; | 1291 len = list.length; |
| 1292 result = P.List_List(len, null); | 1292 result = P.List_List(len, null); |
| 1293 for (t1 = result.length, i = 0; i < len; ++i) { | 1293 for (t1 = result.length, i = 0; i < len; ++i) { |
| 1294 if (i >= list.length) | 1294 if (i >= list.length) |
| 1295 throw H.ioore(list, i); | 1295 throw H.ioore(list, i); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 this._handle = 1; | 1445 this._handle = 1; |
| 1446 t1 = $globalState.topEventLoop; | 1446 t1 = $globalState.topEventLoop; |
| 1447 t2 = $globalState.currentContext; | 1447 t2 = $globalState.currentContext; |
| 1448 t1.events._add$1(new H._IsolateEvent(t2, new H.TimerImpl_internalCallback(
this, callback), "timer")); | 1448 t1.events._add$1(new H._IsolateEvent(t2, new H.TimerImpl_internalCallback(
this, callback), "timer")); |
| 1449 this._inEventLoop = true; | 1449 this._inEventLoop = true; |
| 1450 } else if ($.get$globalThis().setTimeout != null) { | 1450 } else if ($.get$globalThis().setTimeout != null) { |
| 1451 t1 = $globalState.topEventLoop; | 1451 t1 = $globalState.topEventLoop; |
| 1452 t1.activeTimerCount = t1.activeTimerCount + 1; | 1452 t1.activeTimerCount = t1.activeTimerCount + 1; |
| 1453 this._handle = $.get$globalThis().setTimeout(H.convertDartClosureToJS(new
H.TimerImpl_internalCallback0(this, callback), 0), milliseconds); | 1453 this._handle = $.get$globalThis().setTimeout(H.convertDartClosureToJS(new
H.TimerImpl_internalCallback0(this, callback), 0), milliseconds); |
| 1454 } else | 1454 } else |
| 1455 throw H.wrapException(new P.UnsupportedError("Timer greater than 0.")); | 1455 throw H.wrapException(P.UnsupportedError$("Timer greater than 0.")); |
| 1456 }, | |
| 1457 TimerImpl$periodic$2: function(milliseconds, callback) { | |
| 1458 var t1; | |
| 1459 if ($.get$globalThis().setTimeout != null) { | |
| 1460 t1 = $globalState.topEventLoop; | |
| 1461 t1.activeTimerCount = t1.activeTimerCount + 1; | |
| 1462 this._handle = $.get$globalThis().setInterval(H.convertDartClosureToJS(new
H.TimerImpl$periodic_closure(this, callback), 0), milliseconds); | |
| 1463 } else | |
| 1464 throw H.wrapException(new P.UnsupportedError("Periodic timer.")); | |
| 1465 }, | 1456 }, |
| 1466 static: { | 1457 static: { |
| 1467 TimerImpl$: function(milliseconds, callback) { | 1458 TimerImpl$: function(milliseconds, callback) { |
| 1468 var t1 = new H.TimerImpl(true, false, null); | 1459 var t1 = new H.TimerImpl(true, false, null); |
| 1469 t1.TimerImpl$2(milliseconds, callback); | 1460 t1.TimerImpl$2(milliseconds, callback); |
| 1470 return t1; | 1461 return t1; |
| 1471 }, | |
| 1472 | |
| 1473 TimerImpl$periodic: function(milliseconds, callback) { | |
| 1474 var t1 = new H.TimerImpl(false, false, null); | |
| 1475 t1.TimerImpl$periodic$2(milliseconds, callback); | |
| 1476 return t1; | |
| 1477 }} | 1462 }} |
| 1478 | 1463 |
| 1479 }, | 1464 }, |
| 1480 | 1465 |
| 1481 TimerImpl_internalCallback: {"": "Closure;this_0,callback_1", | 1466 TimerImpl_internalCallback: {"": "Closure;this_0,callback_1", |
| 1482 call$0: function() { | 1467 call$0: function() { |
| 1483 this.this_0._handle = null; | 1468 this.this_0._handle = null; |
| 1484 this.callback_1.call$0(); | 1469 this.callback_1.call$0(); |
| 1485 }, | 1470 } |
| 1486 $is_void_: true | |
| 1487 }, | 1471 }, |
| 1488 | 1472 |
| 1489 TimerImpl_internalCallback0: {"": "Closure;this_2,callback_3", | 1473 TimerImpl_internalCallback0: {"": "Closure;this_2,callback_3", |
| 1490 call$0: function() { | 1474 call$0: function() { |
| 1491 this.this_2._handle = null; | 1475 this.this_2._handle = null; |
| 1492 var t1 = $globalState.topEventLoop; | 1476 var t1 = $globalState.topEventLoop; |
| 1493 t1.activeTimerCount = t1.activeTimerCount - 1; | 1477 t1.activeTimerCount = t1.activeTimerCount - 1; |
| 1494 this.callback_3.call$0(); | 1478 this.callback_3.call$0(); |
| 1495 }, | 1479 } |
| 1496 $is_void_: true | |
| 1497 }, | |
| 1498 | |
| 1499 TimerImpl$periodic_closure: {"": "Closure;this_0,callback_1", | |
| 1500 call$0: function() { | |
| 1501 this.callback_1.call$1(this.this_0); | |
| 1502 }, | |
| 1503 $is_void_: true | |
| 1504 }}], | 1480 }}], |
| 1505 ["_js_helper", "dart:_js_helper", , H, { | 1481 ["_js_helper", "dart:_js_helper", , H, { |
| 1506 isJsIndexable: function(object, record) { | 1482 isJsIndexable: function(object, record) { |
| 1507 var result, t1; | 1483 var result, t1; |
| 1508 if (record != null) { | 1484 if (record != null) { |
| 1509 result = record.x; | 1485 result = record.x; |
| 1510 if (result != null) | 1486 if (result != null) |
| 1511 return result; | 1487 return result; |
| 1512 } | 1488 } |
| 1513 t1 = J.getInterceptor(object); | 1489 t1 = J.getInterceptor(object); |
| 1514 return typeof object === "object" && object !== null && !!t1.$isJavaScriptInde
xingBehavior; | 1490 return typeof object === "object" && object !== null && !!t1.$isJavaScriptInde
xingBehavior; |
| 1515 }, | 1491 }, |
| 1516 | 1492 |
| 1517 S: function(value) { | 1493 S: function(value) { |
| 1518 var res; | 1494 var res; |
| 1519 if (typeof value === "string") | 1495 if (typeof value === "string") |
| 1520 return value; | 1496 return value; |
| 1521 if (typeof value === "number") { | 1497 if (typeof value === "number") { |
| 1522 if (value !== 0) | 1498 if (value !== 0) |
| 1523 return "" + value; | 1499 return "" + value; |
| 1524 } else if (true === value) | 1500 } else if (true === value) |
| 1525 return "true"; | 1501 return "true"; |
| 1526 else if (false === value) | 1502 else if (false === value) |
| 1527 return "false"; | 1503 return "false"; |
| 1528 else if (value == null) | 1504 else if (value == null) |
| 1529 return "null"; | 1505 return "null"; |
| 1530 res = J.toString$0(value); | 1506 res = J.toString$0(value); |
| 1531 if (typeof res !== "string") | 1507 if (typeof res !== "string") |
| 1532 throw H.wrapException(new P.ArgumentError(value)); | 1508 throw H.wrapException(P.ArgumentError$(value)); |
| 1533 return res; | 1509 return res; |
| 1534 }, | 1510 }, |
| 1535 | 1511 |
| 1536 Primitives_initializeStatics: function(id) { | 1512 Primitives_initializeStatics: function(id) { |
| 1537 $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheName +
("_" + H.S(id)); | 1513 $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheName +
("_" + H.S(id)); |
| 1538 $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName + ("_"
+ H.S(id)); | 1514 $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName + ("_"
+ H.S(id)); |
| 1539 }, | 1515 }, |
| 1540 | 1516 |
| 1541 Primitives_objectHashCode: function(object) { | 1517 Primitives_objectHashCode: function(object) { |
| 1542 var hash = object.$identityHash; | 1518 var hash = object.$identityHash; |
| 1543 if (hash == null) { | 1519 if (hash == null) { |
| 1544 hash = Math.random() * 0x3fffffff | 0; | 1520 hash = Math.random() * 0x3fffffff | 0; |
| 1545 object.$identityHash = hash; | 1521 object.$identityHash = hash; |
| 1546 } | 1522 } |
| 1547 return hash; | 1523 return hash; |
| 1548 }, | 1524 }, |
| 1549 | 1525 |
| 1550 Primitives_printString: function(string) { | |
| 1551 if (typeof dartPrint == "function") { | |
| 1552 dartPrint(string); | |
| 1553 return; | |
| 1554 } | |
| 1555 if (typeof console == "object" && typeof console.log == "function") { | |
| 1556 console.log(string); | |
| 1557 return; | |
| 1558 } | |
| 1559 if (typeof window == "object") | |
| 1560 return; | |
| 1561 if (typeof print == "function") { | |
| 1562 print(string); | |
| 1563 return; | |
| 1564 } | |
| 1565 throw "Unable to print message: " + String(string); | |
| 1566 }, | |
| 1567 | |
| 1568 Primitives_objectTypeName: function(object) { | 1526 Primitives_objectTypeName: function(object) { |
| 1569 var $name, decompiled, t1; | 1527 var $name, decompiled, t1; |
| 1570 $name = H.constructorNameFallback(J.getInterceptor(object)); | 1528 $name = H.constructorNameFallback(J.getInterceptor(object)); |
| 1571 if (J.$eq($name, "Object")) { | 1529 if (J.$eq($name, "Object")) { |
| 1572 decompiled = String(object.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1
]; | 1530 decompiled = String(object.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1
]; |
| 1573 if (typeof decompiled === "string") | 1531 if (typeof decompiled === "string") |
| 1574 $name = decompiled; | 1532 $name = decompiled; |
| 1575 } | 1533 } |
| 1576 t1 = J.getInterceptor$s($name); | 1534 t1 = J.getInterceptor$s($name); |
| 1577 if (t1.codeUnitAt$1($name, 0) === 36) | 1535 if (t1.codeUnitAt$1($name, 0) === 36) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1605 } | 1563 } |
| 1606 return result; | 1564 return result; |
| 1607 }, | 1565 }, |
| 1608 | 1566 |
| 1609 Primitives_stringFromCodePoints: function(codePoints) { | 1567 Primitives_stringFromCodePoints: function(codePoints) { |
| 1610 var a, t1, i; | 1568 var a, t1, i; |
| 1611 a = []; | 1569 a = []; |
| 1612 for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveN
ext$0();) { | 1570 for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveN
ext$0();) { |
| 1613 i = t1._current; | 1571 i = t1._current; |
| 1614 if (typeof i !== "number" || Math.floor(i) !== i) | 1572 if (typeof i !== "number" || Math.floor(i) !== i) |
| 1615 throw H.wrapException(new P.ArgumentError(i)); | 1573 throw H.wrapException(P.ArgumentError$(i)); |
| 1616 if (i <= 65535) | 1574 if (i <= 65535) |
| 1617 a.push(i); | 1575 a.push(i); |
| 1618 else if (i <= 1114111) { | 1576 else if (i <= 1114111) { |
| 1619 a.push(55296 + (C.JSNumber_methods.$shr(i - 65536, 10) & 1023)); | 1577 a.push(55296 + (C.JSInt_methods.$shr(i - 65536, 10) & 1023)); |
| 1620 a.push(56320 + (i & 1023)); | 1578 a.push(56320 + (i & 1023)); |
| 1621 } else | 1579 } else |
| 1622 throw H.wrapException(new P.ArgumentError(i)); | 1580 throw H.wrapException(P.ArgumentError$(i)); |
| 1623 } | 1581 } |
| 1624 return H.Primitives__fromCharCodeApply(a); | 1582 return H.Primitives__fromCharCodeApply(a); |
| 1625 }, | 1583 }, |
| 1626 | 1584 |
| 1627 Primitives_stringFromCharCodes: function(charCodes) { | 1585 Primitives_stringFromCharCodes: function(charCodes) { |
| 1628 var t1, i; | 1586 var t1, i; |
| 1629 for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNex
t$0();) { | 1587 for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNex
t$0();) { |
| 1630 i = t1._current; | 1588 i = t1._current; |
| 1631 if (typeof i !== "number" || Math.floor(i) !== i) | 1589 if (typeof i !== "number" || Math.floor(i) !== i) |
| 1632 throw H.wrapException(new P.ArgumentError(i)); | 1590 throw H.wrapException(P.ArgumentError$(i)); |
| 1633 if (i < 0) | 1591 if (i < 0) |
| 1634 throw H.wrapException(new P.ArgumentError(i)); | 1592 throw H.wrapException(P.ArgumentError$(i)); |
| 1635 if (i > 65535) | 1593 if (i > 65535) |
| 1636 return H.Primitives_stringFromCodePoints(charCodes); | 1594 return H.Primitives_stringFromCodePoints(charCodes); |
| 1637 } | 1595 } |
| 1638 return H.Primitives__fromCharCodeApply(charCodes); | 1596 return H.Primitives__fromCharCodeApply(charCodes); |
| 1639 }, | 1597 }, |
| 1640 | 1598 |
| 1641 Primitives_getProperty: function(object, key) { | 1599 Primitives_getProperty: function(object, key) { |
| 1642 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | 1600 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") |
| 1643 throw H.wrapException(new P.ArgumentError(object)); | 1601 throw H.wrapException(new P.ArgumentError(object)); |
| 1644 return object[key]; | 1602 return object[key]; |
| 1645 }, | 1603 }, |
| 1646 | 1604 |
| 1647 Primitives_setProperty: function(object, key, value) { | 1605 Primitives_setProperty: function(object, key, value) { |
| 1648 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | 1606 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") |
| 1649 throw H.wrapException(new P.ArgumentError(object)); | 1607 throw H.wrapException(new P.ArgumentError(object)); |
| 1650 object[key] = value; | 1608 object[key] = value; |
| 1651 }, | 1609 }, |
| 1652 | 1610 |
| 1653 iae: function(argument) { | 1611 iae: function(argument) { |
| 1654 throw H.wrapException(new P.ArgumentError(argument)); | 1612 throw H.wrapException(P.ArgumentError$(argument)); |
| 1655 }, | 1613 }, |
| 1656 | 1614 |
| 1657 ioore: function(receiver, index) { | 1615 ioore: function(receiver, index) { |
| 1658 if (receiver == null) | 1616 if (receiver == null) |
| 1659 J.get$length$asx(receiver); | 1617 J.get$length$asx(receiver); |
| 1660 if (typeof index !== "number" || Math.floor(index) !== index) | 1618 if (typeof index !== "number" || Math.floor(index) !== index) |
| 1661 H.iae(index); | 1619 H.iae(index); |
| 1662 throw H.wrapException(new P.RangeError("value " + H.S(index))); | 1620 throw H.wrapException(P.RangeError$value(index)); |
| 1663 }, | 1621 }, |
| 1664 | 1622 |
| 1665 wrapException: function(ex) { | 1623 wrapException: function(ex) { |
| 1666 var wrapper; | 1624 var wrapper; |
| 1667 if (ex == null) | 1625 if (ex == null) |
| 1668 ex = new P.NullThrownError(); | 1626 ex = new P.NullThrownError(); |
| 1669 wrapper = new Error(); | 1627 wrapper = new Error(); |
| 1670 wrapper.dartException = ex; | 1628 wrapper.dartException = ex; |
| 1671 if ("defineProperty" in Object) { | 1629 if ("defineProperty" in Object) { |
| 1672 Object.defineProperty(wrapper, "message", { get: H.toStringWrapper$closure.c
all$0 }); | 1630 Object.defineProperty(wrapper, "message", { get: H.toStringWrapper$closure.c
all$0 }); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 return H._callInIsolate(isolate, new H.invokeClosure_closure(closure)); | 1762 return H._callInIsolate(isolate, new H.invokeClosure_closure(closure)); |
| 1805 else if (t1.$eq(numberOfArguments, 1)) | 1763 else if (t1.$eq(numberOfArguments, 1)) |
| 1806 return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, arg1)
); | 1764 return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, arg1)
); |
| 1807 else if (t1.$eq(numberOfArguments, 2)) | 1765 else if (t1.$eq(numberOfArguments, 2)) |
| 1808 return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, arg1,
arg2)); | 1766 return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, arg1,
arg2)); |
| 1809 else if (t1.$eq(numberOfArguments, 3)) | 1767 else if (t1.$eq(numberOfArguments, 3)) |
| 1810 return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, arg1,
arg2, arg3)); | 1768 return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, arg1,
arg2, arg3)); |
| 1811 else if (t1.$eq(numberOfArguments, 4)) | 1769 else if (t1.$eq(numberOfArguments, 4)) |
| 1812 return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, arg1,
arg2, arg3, arg4)); | 1770 return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, arg1,
arg2, arg3, arg4)); |
| 1813 else | 1771 else |
| 1814 throw H.wrapException(new P._ExceptionImplementation("Unsupported number of
arguments for wrapped closure")); | 1772 throw H.wrapException(P.Exception_Exception("Unsupported number of arguments
for wrapped closure")); |
| 1815 }, | 1773 }, |
| 1816 | 1774 |
| 1817 convertDartClosureToJS: function(closure, arity) { | 1775 convertDartClosureToJS: function(closure, arity) { |
| 1818 var $function; | 1776 var $function; |
| 1819 if (closure == null) | 1777 if (closure == null) |
| 1820 return; | 1778 return; |
| 1821 $function = closure.$identity; | 1779 $function = closure.$identity; |
| 1822 if (!!$function) | 1780 if (!!$function) |
| 1823 return $function; | 1781 return $function; |
| 1824 $function = (function(closure, arity, context, invoke) { return function(a1,
a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})(
closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7); | 1782 $function = (function(closure, arity, context, invoke) { return function(a1,
a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})(
closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7); |
| 1825 closure.$identity = $function; | 1783 closure.$identity = $function; |
| 1826 return $function; | 1784 return $function; |
| 1827 }, | 1785 }, |
| 1828 | 1786 |
| 1829 throwCyclicInit: function(staticName) { | 1787 throwCyclicInit: function(staticName) { |
| 1830 throw H.wrapException(new P.CyclicInitializationError("Cyclic initialization f
or static " + H.S(staticName))); | 1788 throw H.wrapException(P.CyclicInitializationError$("Cyclic initialization for
static " + H.S(staticName))); |
| 1831 }, | 1789 }, |
| 1832 | 1790 |
| 1833 setRuntimeTypeInfo: function(target, typeInfo) { | 1791 setRuntimeTypeInfo: function(target, typeInfo) { |
| 1834 if (target != null) | 1792 if (target != null) |
| 1835 target.$builtinTypeInfo = typeInfo; | 1793 target.$builtinTypeInfo = typeInfo; |
| 1836 return target; | 1794 return target; |
| 1837 }, | 1795 }, |
| 1838 | 1796 |
| 1839 getRuntimeTypeInfo: function(target) { | 1797 getRuntimeTypeInfo: function(target) { |
| 1840 if (target == null) | 1798 if (target == null) |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 else if (typeof substitution == "function") { | 1846 else if (typeof substitution == "function") { |
| 1889 substitution = H.invokeOn(substitution, null, $arguments); | 1847 substitution = H.invokeOn(substitution, null, $arguments); |
| 1890 if (typeof substitution === "object" && substitution !== null && substitutio
n.constructor === Array) | 1848 if (typeof substitution === "object" && substitution !== null && substitutio
n.constructor === Array) |
| 1891 $arguments = substitution; | 1849 $arguments = substitution; |
| 1892 else if (typeof substitution == "function") | 1850 else if (typeof substitution == "function") |
| 1893 $arguments = H.invokeOn(substitution, null, $arguments); | 1851 $arguments = H.invokeOn(substitution, null, $arguments); |
| 1894 } | 1852 } |
| 1895 return $arguments; | 1853 return $arguments; |
| 1896 }, | 1854 }, |
| 1897 | 1855 |
| 1898 areSubtypes: function(s, t) { | |
| 1899 var len, i; | |
| 1900 if (s == null || t == null) | |
| 1901 return true; | |
| 1902 len = s.length; | |
| 1903 for (i = 0; i < len; ++i) | |
| 1904 if (!H.isSubtype(s[i], t[i])) | |
| 1905 return false; | |
| 1906 return true; | |
| 1907 }, | |
| 1908 | |
| 1909 isSupertypeOfNull: function(type) { | |
| 1910 return type == null || type.builtin$cls === "Object" || type.builtin$cls === "
Null"; | |
| 1911 }, | |
| 1912 | |
| 1913 checkSubtypeOfRuntimeType: function(o, t) { | |
| 1914 var rti, type; | |
| 1915 if (o == null) | |
| 1916 return H.isSupertypeOfNull(t); | |
| 1917 if (t == null) | |
| 1918 return true; | |
| 1919 rti = H.getRuntimeTypeInfo(o); | |
| 1920 o = J.getInterceptor(o); | |
| 1921 if (rti != null) { | |
| 1922 type = rti.slice(); | |
| 1923 type.splice(0, 0, o); | |
| 1924 } else | |
| 1925 type = o; | |
| 1926 return H.isSubtype(type, t); | |
| 1927 }, | |
| 1928 | |
| 1929 isSubtype: function(s, t) { | |
| 1930 var targetSignatureFunction, t1, typeOfS, t2, typeOfT, substitution; | |
| 1931 if (s === t) | |
| 1932 return true; | |
| 1933 if (s == null || t == null) | |
| 1934 return true; | |
| 1935 if ("func" in t) { | |
| 1936 if (!("func" in s)) { | |
| 1937 if ("$is_" + H.S(t.func) in s) | |
| 1938 return true; | |
| 1939 targetSignatureFunction = s.$signature; | |
| 1940 if (targetSignatureFunction == null) | |
| 1941 return false; | |
| 1942 s = targetSignatureFunction.apply(s, null); | |
| 1943 } | |
| 1944 return H.isFunctionSubtype(s, t); | |
| 1945 } | |
| 1946 if (t.builtin$cls === "Function" && "func" in s) | |
| 1947 return true; | |
| 1948 t1 = typeof s === "object" && s !== null && s.constructor === Array; | |
| 1949 typeOfS = t1 ? s[0] : s; | |
| 1950 t2 = typeof t === "object" && t !== null && t.constructor === Array; | |
| 1951 typeOfT = t2 ? t[0] : t; | |
| 1952 if (!("$is" + H.runtimeTypeToString(typeOfT) in typeOfS)) | |
| 1953 return false; | |
| 1954 substitution = typeOfT !== typeOfS ? typeOfS["$as" + H.runtimeTypeToString(typ
eOfT)] : null; | |
| 1955 if (!t1 && substitution == null || !t2) | |
| 1956 return true; | |
| 1957 t1 = t1 ? s.slice(1) : null; | |
| 1958 t2 = t2 ? t.slice(1) : null; | |
| 1959 return H.areSubtypes(H.substitute(substitution, t1), t2); | |
| 1960 }, | |
| 1961 | |
| 1962 isAssignable: function(s, t) { | |
| 1963 return H.isSubtype(s, t) || H.isSubtype(t, s); | |
| 1964 }, | |
| 1965 | |
| 1966 areAssignable: function(s, t, allowShorter) { | |
| 1967 var sLength, tLength, i, t1, t2; | |
| 1968 if (t == null && s == null) | |
| 1969 return true; | |
| 1970 if (t == null) | |
| 1971 return allowShorter; | |
| 1972 if (s == null) | |
| 1973 return false; | |
| 1974 sLength = s.length; | |
| 1975 tLength = t.length; | |
| 1976 if (allowShorter) { | |
| 1977 if (sLength < tLength) | |
| 1978 return false; | |
| 1979 } else if (sLength !== tLength) | |
| 1980 return false; | |
| 1981 for (i = 0; i < tLength; ++i) { | |
| 1982 t1 = s[i]; | |
| 1983 t2 = t[i]; | |
| 1984 if (!(H.isSubtype(t1, t2) || H.isSubtype(t2, t1))) | |
| 1985 return false; | |
| 1986 } | |
| 1987 return true; | |
| 1988 }, | |
| 1989 | |
| 1990 areAssignableMaps: function(s, t) { | |
| 1991 if (t == null) | |
| 1992 return true; | |
| 1993 if (s == null) | |
| 1994 return false; | |
| 1995 return function (t, s, isAssignable) { | |
| 1996 for (var $name in t) { | |
| 1997 if (!s.hasOwnProperty($name)) { | |
| 1998 return false; | |
| 1999 } | |
| 2000 var tType = t[$name]; | |
| 2001 var sType = s[$name]; | |
| 2002 if (!isAssignable.call$2(sType, tType)) { | |
| 2003 return false; | |
| 2004 } | |
| 2005 } | |
| 2006 return true; | |
| 2007 }(t, s, H.isAssignable$closure) | |
| 2008 ; | |
| 2009 }, | |
| 2010 | |
| 2011 isFunctionSubtype: function(s, t) { | |
| 2012 var sReturnType, tReturnType, sParameterTypes, tParameterTypes, sOptionalParam
eterTypes, tOptionalParameterTypes, sParametersLen, tParametersLen, sOptionalPar
ametersLen, tOptionalParametersLen, pos, t1, t2, tPos, sPos; | |
| 2013 if (!("func" in s)) | |
| 2014 return false; | |
| 2015 if ("void" in s) { | |
| 2016 if (!("void" in t) && "ret" in t) | |
| 2017 return false; | |
| 2018 } else if (!("void" in t)) { | |
| 2019 sReturnType = s.ret; | |
| 2020 tReturnType = t.ret; | |
| 2021 if (!(H.isSubtype(sReturnType, tReturnType) || H.isSubtype(tReturnType, sRet
urnType))) | |
| 2022 return false; | |
| 2023 } | |
| 2024 sParameterTypes = s.args; | |
| 2025 tParameterTypes = t.args; | |
| 2026 sOptionalParameterTypes = s.opt; | |
| 2027 tOptionalParameterTypes = t.opt; | |
| 2028 sParametersLen = sParameterTypes != null ? sParameterTypes.length : 0; | |
| 2029 tParametersLen = tParameterTypes != null ? tParameterTypes.length : 0; | |
| 2030 sOptionalParametersLen = sOptionalParameterTypes != null ? sOptionalParameterT
ypes.length : 0; | |
| 2031 tOptionalParametersLen = tOptionalParameterTypes != null ? tOptionalParameterT
ypes.length : 0; | |
| 2032 if (sParametersLen > tParametersLen) | |
| 2033 return false; | |
| 2034 if (sParametersLen + sOptionalParametersLen < tParametersLen + tOptionalParame
tersLen) | |
| 2035 return false; | |
| 2036 if (sParametersLen === tParametersLen) { | |
| 2037 if (!H.areAssignable(sParameterTypes, tParameterTypes, false)) | |
| 2038 return false; | |
| 2039 if (!H.areAssignable(sOptionalParameterTypes, tOptionalParameterTypes, true)
) | |
| 2040 return false; | |
| 2041 } else { | |
| 2042 for (pos = 0; pos < sParametersLen; ++pos) { | |
| 2043 t1 = sParameterTypes[pos]; | |
| 2044 t2 = tParameterTypes[pos]; | |
| 2045 if (!(H.isSubtype(t1, t2) || H.isSubtype(t2, t1))) | |
| 2046 return false; | |
| 2047 } | |
| 2048 for (tPos = pos, sPos = 0; tPos < tParametersLen; ++sPos, ++tPos) { | |
| 2049 t1 = sOptionalParameterTypes[sPos]; | |
| 2050 t2 = tParameterTypes[tPos]; | |
| 2051 if (!(H.isSubtype(t1, t2) || H.isSubtype(t2, t1))) | |
| 2052 return false; | |
| 2053 } | |
| 2054 for (sPos = 0; tPos < tOptionalParametersLen; ++sPos, ++tPos) { | |
| 2055 t1 = tOptionalParameterTypes[sPos]; | |
| 2056 t2 = tOptionalParameterTypes[tPos]; | |
| 2057 if (!(H.isSubtype(t1, t2) || H.isSubtype(t2, t1))) | |
| 2058 return false; | |
| 2059 } | |
| 2060 } | |
| 2061 return H.areAssignableMaps(s.named, t.named); | |
| 2062 }, | |
| 2063 | |
| 2064 invokeOn: function($function, receiver, $arguments) { | 1856 invokeOn: function($function, receiver, $arguments) { |
| 2065 return $function.apply(receiver, $arguments); | 1857 return $function.apply(receiver, $arguments); |
| 2066 }, | 1858 }, |
| 2067 | 1859 |
| 2068 typeNameInChrome: function(obj) { | 1860 typeNameInChrome: function(obj) { |
| 2069 return obj.constructor.name; | 1861 return obj.constructor.name; |
| 2070 }, | 1862 }, |
| 2071 | 1863 |
| 2072 typeNameInSafari: function(obj) { | 1864 typeNameInSafari: function(obj) { |
| 2073 return H.constructorNameFallback(obj); | 1865 return H.constructorNameFallback(obj); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2185 }, | 1977 }, |
| 2186 | 1978 |
| 2187 hashCodeForNativeObject: function(object) { | 1979 hashCodeForNativeObject: function(object) { |
| 2188 return H.Primitives_objectHashCode(object); | 1980 return H.Primitives_objectHashCode(object); |
| 2189 }, | 1981 }, |
| 2190 | 1982 |
| 2191 defineProperty: function(obj, property, value) { | 1983 defineProperty: function(obj, property, value) { |
| 2192 Object.defineProperty(obj, property, {value: value, enumerable: false, writabl
e: true, configurable: true}); | 1984 Object.defineProperty(obj, property, {value: value, enumerable: false, writabl
e: true, configurable: true}); |
| 2193 }, | 1985 }, |
| 2194 | 1986 |
| 2195 defineNativeMethods: function(tags, interceptorClass) { | |
| 2196 H.defineNativeMethodsCommon(tags, interceptorClass, true); | |
| 2197 }, | |
| 2198 | |
| 2199 defineNativeMethodsNonleaf: function(tags, interceptorClass) { | |
| 2200 H.defineNativeMethodsCommon(tags, interceptorClass, false); | |
| 2201 }, | |
| 2202 | |
| 2203 defineNativeMethodsExtended: function(tags, interceptorClass, subclassIntercepto
rClasses) { | |
| 2204 var classes, t1, i; | |
| 2205 if ($.interceptorToTag == null) | |
| 2206 $.interceptorToTag = []; | |
| 2207 classes = subclassInterceptorClasses; | |
| 2208 for (t1 = classes.length, i = 0; i < t1; ++i) { | |
| 2209 $.interceptorToTag.push(classes[i]); | |
| 2210 $.interceptorToTag.push(tags); | |
| 2211 } | |
| 2212 H.defineNativeMethodsCommon(tags, interceptorClass, false); | |
| 2213 }, | |
| 2214 | |
| 2215 defineNativeMethodsCommon: function(tags, interceptorClass, isLeaf) { | |
| 2216 var methods, tagsList, i, tag; | |
| 2217 methods = interceptorClass.prototype; | |
| 2218 if ($.interceptorsByTag == null) | |
| 2219 $.interceptorsByTag = {}; | |
| 2220 if ($.leafTags == null) | |
| 2221 $.leafTags = {}; | |
| 2222 tagsList = tags.split("|"); | |
| 2223 for (i = 0; i < tagsList.length; ++i) { | |
| 2224 tag = tagsList[i]; | |
| 2225 $.interceptorsByTag[tag] = methods; | |
| 2226 $.leafTags[tag] = isLeaf; | |
| 2227 } | |
| 2228 }, | |
| 2229 | |
| 2230 defineNativeMethodsFinish: function() { | |
| 2231 }, | |
| 2232 | |
| 2233 lookupInterceptor: function(hasOwnPropertyFunction, tag) { | 1987 lookupInterceptor: function(hasOwnPropertyFunction, tag) { |
| 2234 var map = $.interceptorsByTag; | 1988 var map = init.interceptorsByTag; |
| 2235 if (map == null) | |
| 2236 return; | |
| 2237 return hasOwnPropertyFunction.call(map, tag) ? map[tag] : null; | 1989 return hasOwnPropertyFunction.call(map, tag) ? map[tag] : null; |
| 2238 }, | 1990 }, |
| 2239 | 1991 |
| 2240 lookupDispatchRecord: function(obj) { | 1992 lookupDispatchRecord: function(obj) { |
| 2241 var hasOwnPropertyFunction, tag, interceptor, secondTag, t1; | 1993 var hasOwnPropertyFunction, tag, interceptorClass, secondTag, interceptor; |
| 2242 hasOwnPropertyFunction = Object.prototype.hasOwnProperty; | 1994 hasOwnPropertyFunction = Object.prototype.hasOwnProperty; |
| 2243 tag = $.get$getTypeNameOf().call$1(obj); | 1995 tag = $.get$getTypeNameOf().call$1(obj); |
| 2244 interceptor = H.lookupInterceptor(hasOwnPropertyFunction, tag); | 1996 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, tag); |
| 2245 if (interceptor == null) { | 1997 if (interceptorClass == null) { |
| 2246 secondTag = H.alternateTag(obj, tag); | 1998 secondTag = H.alternateTag(obj, tag); |
| 2247 if (secondTag != null) | 1999 if (secondTag != null) |
| 2248 interceptor = H.lookupInterceptor(hasOwnPropertyFunction, secondTag); | 2000 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, secondTag); |
| 2249 } | 2001 } |
| 2250 if (interceptor == null) | 2002 if (interceptorClass == null) |
| 2251 return; | 2003 return; |
| 2252 t1 = $.leafTags; | 2004 interceptor = interceptorClass.prototype; |
| 2253 if (t1 != null && t1[tag] === true) | 2005 init.leafTags; |
| 2006 if (init.leafTags[tag] === true) |
| 2254 return H.makeLeafDispatchRecord(interceptor); | 2007 return H.makeLeafDispatchRecord(interceptor); |
| 2255 else | 2008 else |
| 2256 return J.makeDispatchRecord(interceptor, Object.getPrototypeOf(obj), null, n
ull); | 2009 return J.makeDispatchRecord(interceptor, Object.getPrototypeOf(obj), null, n
ull); |
| 2257 }, | 2010 }, |
| 2258 | 2011 |
| 2259 makeLeafDispatchRecord: function(interceptor) { | 2012 makeLeafDispatchRecord: function(interceptor) { |
| 2260 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScr
iptIndexingBehavior); | 2013 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScr
iptIndexingBehavior); |
| 2261 }, | 2014 }, |
| 2262 | 2015 |
| 2263 ConstantMap: {"": "Object;", | |
| 2264 toString$0: function(_) { | |
| 2265 return P.Maps_mapToString(this); | |
| 2266 }, | |
| 2267 _throwUnmodifiable$0: function() { | |
| 2268 throw H.wrapException(new P.UnsupportedError("Cannot modify unmodifiable Map
")); | |
| 2269 }, | |
| 2270 $indexSet: function(_, key, val) { | |
| 2271 return this._throwUnmodifiable$0(); | |
| 2272 }, | |
| 2273 $isMap: true | |
| 2274 }, | |
| 2275 | |
| 2276 ConstantStringMap: {"": "ConstantMap;length>,_jsObject,_keys", | |
| 2277 containsKey$1: function(key) { | |
| 2278 if (typeof key !== "string") | |
| 2279 return false; | |
| 2280 if (key === "__proto__") | |
| 2281 return false; | |
| 2282 return this._jsObject.hasOwnProperty(key); | |
| 2283 }, | |
| 2284 $index: function(_, key) { | |
| 2285 if (typeof key !== "string") | |
| 2286 return; | |
| 2287 if (!this.containsKey$1(key)) | |
| 2288 return; | |
| 2289 return this._jsObject[key]; | |
| 2290 }, | |
| 2291 forEach$1: function(_, f) { | |
| 2292 J.forEach$1$ax(this._keys, new H.ConstantStringMap_forEach_closure(this, f))
; | |
| 2293 }, | |
| 2294 get$keys: function() { | |
| 2295 var t1 = new H._ConstantMapKeyIterable(this); | |
| 2296 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "ConstantStringMap"
, 0)]); | |
| 2297 return t1; | |
| 2298 }, | |
| 2299 get$values: function(_) { | |
| 2300 return J.map$1$ax(this._keys, new H.ConstantStringMap_values_closure(this)); | |
| 2301 }, | |
| 2302 $asConstantMap: null, | |
| 2303 $asMap: null | |
| 2304 }, | |
| 2305 | |
| 2306 ConstantStringMap_forEach_closure: {"": "Closure;this_0,f_1", | |
| 2307 call$1: function(key) { | |
| 2308 var t1 = this.this_0; | |
| 2309 return this.f_1.call$2(key, t1.$index(t1, key)); | |
| 2310 } | |
| 2311 }, | |
| 2312 | |
| 2313 ConstantStringMap_values_closure: {"": "Closure;this_0", | |
| 2314 call$1: function(key) { | |
| 2315 var t1 = this.this_0; | |
| 2316 return t1.$index(t1, key); | |
| 2317 } | |
| 2318 }, | |
| 2319 | |
| 2320 _ConstantMapKeyIterable: {"": "IterableBase;__js_helper$_map", | |
| 2321 get$iterator: function(_) { | |
| 2322 return J.get$iterator$ax(this.__js_helper$_map._keys); | |
| 2323 }, | |
| 2324 $asIterableBase: null | |
| 2325 }, | |
| 2326 | |
| 2327 TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,
_receiver", | 2016 TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,
_receiver", |
| 2328 matchTypeError$1: function(message) { | 2017 matchTypeError$1: function(message) { |
| 2329 var match, result, t1; | 2018 var match, result, t1; |
| 2330 match = new RegExp(this._pattern).exec(message); | 2019 match = new RegExp(this._pattern).exec(message); |
| 2331 if (match == null) | 2020 if (match == null) |
| 2332 return; | 2021 return; |
| 2333 result = {}; | 2022 result = {}; |
| 2334 t1 = this._arguments; | 2023 t1 = this._arguments; |
| 2335 if (t1 !== -1) | 2024 if (t1 !== -1) |
| 2336 result.arguments = match[t1 + 1]; | 2025 result.arguments = match[t1 + 1]; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2489 trace = typeof t1 === "object" ? t1.stack : null; | 2178 trace = typeof t1 === "object" ? t1.stack : null; |
| 2490 t1 = trace == null ? "" : trace; | 2179 t1 = trace == null ? "" : trace; |
| 2491 this._trace = t1; | 2180 this._trace = t1; |
| 2492 return t1; | 2181 return t1; |
| 2493 } | 2182 } |
| 2494 }, | 2183 }, |
| 2495 | 2184 |
| 2496 invokeClosure_closure: {"": "Closure;closure_0", | 2185 invokeClosure_closure: {"": "Closure;closure_0", |
| 2497 call$0: function() { | 2186 call$0: function() { |
| 2498 return this.closure_0.call$0(); | 2187 return this.closure_0.call$0(); |
| 2499 }, | 2188 } |
| 2500 $is_void_: true | |
| 2501 }, | 2189 }, |
| 2502 | 2190 |
| 2503 invokeClosure_closure0: {"": "Closure;closure_1,arg1_2", | 2191 invokeClosure_closure0: {"": "Closure;closure_1,arg1_2", |
| 2504 call$0: function() { | 2192 call$0: function() { |
| 2505 return this.closure_1.call$1(this.arg1_2); | 2193 return this.closure_1.call$1(this.arg1_2); |
| 2506 }, | 2194 } |
| 2507 $is_void_: true | |
| 2508 }, | 2195 }, |
| 2509 | 2196 |
| 2510 invokeClosure_closure1: {"": "Closure;closure_3,arg1_4,arg2_5", | 2197 invokeClosure_closure1: {"": "Closure;closure_3,arg1_4,arg2_5", |
| 2511 call$0: function() { | 2198 call$0: function() { |
| 2512 return this.closure_3.call$2(this.arg1_4, this.arg2_5); | 2199 return this.closure_3.call$2(this.arg1_4, this.arg2_5); |
| 2513 }, | 2200 } |
| 2514 $is_void_: true | |
| 2515 }, | 2201 }, |
| 2516 | 2202 |
| 2517 invokeClosure_closure2: {"": "Closure;closure_6,arg1_7,arg2_8,arg3_9", | 2203 invokeClosure_closure2: {"": "Closure;closure_6,arg1_7,arg2_8,arg3_9", |
| 2518 call$0: function() { | 2204 call$0: function() { |
| 2519 return this.closure_6.call$3(this.arg1_7, this.arg2_8, this.arg3_9); | 2205 return this.closure_6.call$3(this.arg1_7, this.arg2_8, this.arg3_9); |
| 2520 }, | 2206 } |
| 2521 $is_void_: true | |
| 2522 }, | 2207 }, |
| 2523 | 2208 |
| 2524 invokeClosure_closure3: {"": "Closure;closure_10,arg1_11,arg2_12,arg3_13,arg4_14
", | 2209 invokeClosure_closure3: {"": "Closure;closure_10,arg1_11,arg2_12,arg3_13,arg4_14
", |
| 2525 call$0: function() { | 2210 call$0: function() { |
| 2526 return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this
.arg4_14); | 2211 return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this
.arg4_14); |
| 2527 }, | 2212 } |
| 2528 $is_void_: true | |
| 2529 }, | 2213 }, |
| 2530 | 2214 |
| 2531 Closure: {"": "Object;", | 2215 Closure: {"": "Object;", |
| 2532 toString$0: function(_) { | 2216 toString$0: function(_) { |
| 2533 return "Closure"; | 2217 return "Closure"; |
| 2534 } | 2218 } |
| 2535 }, | 2219 }, |
| 2536 | 2220 |
| 2537 BoundClosure: {"": "Closure;_self,__js_helper$_target,_receiver,__js_helper$_nam
e", | 2221 BoundClosure: {"": "Closure;_self,_target,_receiver,__js_helper$_name", |
| 2538 $eq: function(_, other) { | 2222 $eq: function(_, other) { |
| 2539 var t1; | 2223 var t1; |
| 2540 if (other == null) | 2224 if (other == null) |
| 2541 return false; | 2225 return false; |
| 2542 if (this === other) | 2226 if (this === other) |
| 2543 return true; | 2227 return true; |
| 2544 t1 = J.getInterceptor(other); | 2228 t1 = J.getInterceptor(other); |
| 2545 if (typeof other !== "object" || other === null || !t1.$isBoundClosure) | 2229 if (typeof other !== "object" || other === null || !t1.$isBoundClosure) |
| 2546 return false; | 2230 return false; |
| 2547 return this._self === other._self && this.__js_helper$_target === other.__js
_helper$_target && this._receiver === other._receiver; | 2231 return this._self === other._self && this._target === other._target && this.
_receiver === other._receiver; |
| 2548 }, | 2232 }, |
| 2549 get$hashCode: function(_) { | 2233 get$hashCode: function(_) { |
| 2550 var t1, receiverHashCode; | 2234 var t1, receiverHashCode; |
| 2551 t1 = this._receiver; | 2235 t1 = this._receiver; |
| 2552 if (t1 == null) | 2236 if (t1 == null) |
| 2553 receiverHashCode = H.Primitives_objectHashCode(this._self); | 2237 receiverHashCode = H.Primitives_objectHashCode(this._self); |
| 2554 else | 2238 else |
| 2555 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit
ives_objectHashCode(t1); | 2239 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit
ives_objectHashCode(t1); |
| 2556 return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_tar
get)) >>> 0; | 2240 return (receiverHashCode ^ H.Primitives_objectHashCode(this._target)) >>> 0; |
| 2557 }, | 2241 }, |
| 2558 $isBoundClosure: true | 2242 $isBoundClosure: true |
| 2559 }, | 2243 }, |
| 2560 | 2244 |
| 2561 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_
0", | 2245 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_
0", |
| 2562 call$1: function(object) { | 2246 call$1: function(object) { |
| 2563 return this.newGetTagJSFunction_0(object); | 2247 return this.newGetTagJSFunction_0(object); |
| 2564 } | 2248 } |
| 2565 }}], | 2249 }}], |
| 2566 ["dart._collection.dev", "dart:_collection-dev", , H, { | 2250 ["dart._collection.dev", "dart:_collection-dev", , H, { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2628 } finally { | 2312 } finally { |
| 2629 t1 = $.get$IterableMixinWorkaround__toStringList(); | 2313 t1 = $.get$IterableMixinWorkaround__toStringList(); |
| 2630 if (0 >= t1.length) | 2314 if (0 >= t1.length) |
| 2631 throw H.ioore(t1, 0); | 2315 throw H.ioore(t1, 0); |
| 2632 t1.pop(); | 2316 t1.pop(); |
| 2633 } | 2317 } |
| 2634 return result.get$_contents(); | 2318 return result.get$_contents(); |
| 2635 }, | 2319 }, |
| 2636 | 2320 |
| 2637 IterableMixinWorkaround__rangeCheck: function(list, start, end) { | 2321 IterableMixinWorkaround__rangeCheck: function(list, start, end) { |
| 2638 var t1; | 2322 if (start < 0 || start > list.length) |
| 2639 if (start < 0 || start > list.length) { | 2323 throw H.wrapException(P.RangeError$range(start, 0, list.length)); |
| 2640 t1 = list.length; | 2324 if (end < start || end > list.length) |
| 2641 throw H.wrapException(new P.RangeError("value " + start + " not in range 0..
" + t1)); | 2325 throw H.wrapException(P.RangeError$range(end, start, list.length)); |
| 2642 } | |
| 2643 if (end < start || end > list.length) { | |
| 2644 t1 = list.length; | |
| 2645 throw H.wrapException(new P.RangeError("value " + end + " not in range " + s
tart + ".." + t1)); | |
| 2646 } | |
| 2647 }, | 2326 }, |
| 2648 | 2327 |
| 2649 IterableMixinWorkaround_setRangeList: function(list, start, end, from, skipCount
) { | 2328 IterableMixinWorkaround_setRangeList: function(list, start, end, from, skipCount
) { |
| 2650 var $length; | 2329 var $length; |
| 2651 H.IterableMixinWorkaround__rangeCheck(list, start, end); | 2330 H.IterableMixinWorkaround__rangeCheck(list, start, end); |
| 2652 $length = end - start; | 2331 $length = end - start; |
| 2653 if ($length === 0) | 2332 if ($length === 0) |
| 2654 return; | 2333 return; |
| 2655 if (skipCount < 0) | 2334 if (skipCount < 0) |
| 2656 throw H.wrapException(new P.ArgumentError(skipCount)); | 2335 throw H.wrapException(new P.ArgumentError(skipCount)); |
| 2657 if (skipCount + $length > from.length) | 2336 if (skipCount + $length > from.length) |
| 2658 throw H.wrapException(new P.StateError("Not enough elements")); | 2337 throw H.wrapException(P.StateError$("Not enough elements")); |
| 2659 H.Arrays_copy(from, skipCount, list, start, $length); | 2338 H.Arrays_copy(from, skipCount, list, start, $length); |
| 2660 }, | 2339 }, |
| 2661 | 2340 |
| 2341 printToConsole: function(line) { |
| 2342 if (typeof dartPrint == "function") { |
| 2343 dartPrint(line); |
| 2344 return; |
| 2345 } |
| 2346 if (typeof console == "object" && typeof console.log == "function") { |
| 2347 console.log(line); |
| 2348 return; |
| 2349 } |
| 2350 if (typeof window == "object") |
| 2351 return; |
| 2352 if (typeof print == "function") { |
| 2353 print(line); |
| 2354 return; |
| 2355 } |
| 2356 throw "Unable to print message: " + String(line); |
| 2357 }, |
| 2358 |
| 2662 Symbol_getName: function(symbol) { | 2359 Symbol_getName: function(symbol) { |
| 2663 return symbol.get$_name(); | 2360 return symbol.get$_name(); |
| 2664 }, | 2361 }, |
| 2665 | 2362 |
| 2666 ListIterable: {"": "IterableBase;", | |
| 2667 get$iterator: function(_) { | |
| 2668 return new H.ListIterator(this, this.get$length(this), 0, null); | |
| 2669 }, | |
| 2670 forEach$1: function(_, action) { | |
| 2671 var $length, i; | |
| 2672 $length = this.get$length(this); | |
| 2673 for (i = 0; i < $length; ++i) { | |
| 2674 action.call$1(this.elementAt$1(this, i)); | |
| 2675 if ($length !== this.get$length(this)) | |
| 2676 throw H.wrapException(new P.ConcurrentModificationError(this)); | |
| 2677 } | |
| 2678 }, | |
| 2679 map$1: function(_, f) { | |
| 2680 var t1 = new H.MappedListIterable(this, f); | |
| 2681 H.setRuntimeTypeInfo(t1, [null, null]); | |
| 2682 return t1; | |
| 2683 }, | |
| 2684 toList$1$growable: function(_, growable) { | |
| 2685 var result, i, t1; | |
| 2686 if (growable) { | |
| 2687 result = P.List_List(null, H.getRuntimeTypeArgument(this, "ListIterable",
0)); | |
| 2688 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(this, "ListIterable
", 0)]); | |
| 2689 C.JSArray_methods.set$length(result, this.get$length(this)); | |
| 2690 } else { | |
| 2691 result = P.List_List(this.get$length(this), H.getRuntimeTypeArgument(this,
"ListIterable", 0)); | |
| 2692 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(this, "ListIterable
", 0)]); | |
| 2693 } | |
| 2694 for (i = 0; i < this.get$length(this); ++i) { | |
| 2695 t1 = this.elementAt$1(this, i); | |
| 2696 if (i >= result.length) | |
| 2697 throw H.ioore(result, i); | |
| 2698 result[i] = t1; | |
| 2699 } | |
| 2700 return result; | |
| 2701 }, | |
| 2702 toList$0: function($receiver) { | |
| 2703 return this.toList$1$growable($receiver, true); | |
| 2704 }, | |
| 2705 $asIterableBase: null | |
| 2706 }, | |
| 2707 | |
| 2708 ListIterator: {"": "Object;_iterable,_length,_index,_current", | 2363 ListIterator: {"": "Object;_iterable,_length,_index,_current", |
| 2709 get$current: function() { | 2364 get$current: function() { |
| 2710 return this._current; | 2365 return this._current; |
| 2711 }, | 2366 }, |
| 2712 moveNext$0: function() { | 2367 moveNext$0: function() { |
| 2713 var t1, t2, $length, t3; | 2368 var t1, t2, $length, t3; |
| 2714 t1 = this._iterable; | 2369 t1 = this._iterable; |
| 2715 t2 = J.getInterceptor$asx(t1); | 2370 t2 = J.getInterceptor$asx(t1); |
| 2716 $length = t2.get$length(t1); | 2371 $length = t2.get$length(t1); |
| 2717 if (this._length !== $length) | 2372 if (this._length !== $length) |
| 2718 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 2373 throw H.wrapException(P.ConcurrentModificationError$(t1)); |
| 2719 t3 = this._index; | 2374 t3 = this._index; |
| 2720 if (t3 >= $length) { | 2375 if (t3 >= $length) { |
| 2721 this._current = null; | 2376 this._current = null; |
| 2722 return false; | 2377 return false; |
| 2723 } | 2378 } |
| 2724 this._current = t2.elementAt$1(t1, t3); | 2379 this._current = t2.elementAt$1(t1, t3); |
| 2725 this._index = this._index + 1; | 2380 this._index = this._index + 1; |
| 2726 return true; | 2381 return true; |
| 2727 } | 2382 } |
| 2728 }, | 2383 }, |
| 2729 | 2384 |
| 2730 MappedIterable: {"": "IterableBase;_iterable,_f", | 2385 MappedIterable: {"": "IterableBase;_iterable,_f", |
| 2731 get$iterator: function(_) { | 2386 get$iterator: function(_) { |
| 2732 var t1 = this._iterable; | 2387 var t1 = this._iterable; |
| 2733 t1 = t1.get$iterator(t1); | 2388 t1 = t1.get$iterator(t1); |
| 2734 t1 = new H.MappedIterator(null, t1, this._f); | 2389 t1 = new H.MappedIterator(null, t1, this._f); |
| 2735 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "MappedIterable", 0
), H.getRuntimeTypeArgument(this, "MappedIterable", 1)]); | 2390 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "MappedIterable", 0
), H.getRuntimeTypeArgument(this, "MappedIterable", 1)]); |
| 2736 return t1; | 2391 return t1; |
| 2737 }, | 2392 }, |
| 2738 get$length: function(_) { | 2393 get$length: function(_) { |
| 2739 var t1 = this._iterable; | 2394 var t1 = this._iterable; |
| 2740 return t1.get$length(t1); | 2395 return t1.get$length(t1); |
| 2741 }, | 2396 }, |
| 2742 $asIterableBase: function($S, $T) { | 2397 $asIterableBase: function($S, $T) { |
| 2743 return [$T]; | 2398 return [$T]; |
| 2399 }, |
| 2400 static: { |
| 2401 MappedIterable_MappedIterable: function(iterable, $function, $S, $T) { |
| 2402 var t1; |
| 2403 if (!!iterable.$isEfficientLength) { |
| 2404 t1 = new H.EfficientLengthMappedIterable(iterable, $function); |
| 2405 H.setRuntimeTypeInfo(t1, [$S, $T]); |
| 2406 return t1; |
| 2744 } | 2407 } |
| 2408 t1 = new H.MappedIterable(iterable, $function); |
| 2409 H.setRuntimeTypeInfo(t1, [$S, $T]); |
| 2410 return t1; |
| 2411 }} |
| 2412 |
| 2745 }, | 2413 }, |
| 2746 | 2414 |
| 2415 EfficientLengthMappedIterable: {"": "MappedIterable;_iterable,_f", $asMappedIter
able: null, $isEfficientLength: true}, |
| 2416 |
| 2747 MappedIterator: {"": "Iterator;_current,_iterator,_f", | 2417 MappedIterator: {"": "Iterator;_current,_iterator,_f", |
| 2748 _f$1: function(arg0) { | 2418 _f$1: function(arg0) { |
| 2749 return this._f.call$1(arg0); | 2419 return this._f.call$1(arg0); |
| 2750 }, | 2420 }, |
| 2751 moveNext$0: function() { | 2421 moveNext$0: function() { |
| 2752 var t1 = this._iterator; | 2422 var t1 = this._iterator; |
| 2753 if (t1.moveNext$0()) { | 2423 if (t1.moveNext$0()) { |
| 2754 this._current = this._f$1(t1.get$current()); | 2424 this._current = this._f$1(t1.get$current()); |
| 2755 return true; | 2425 return true; |
| 2756 } | 2426 } |
| 2757 this._current = null; | 2427 this._current = null; |
| 2758 return false; | 2428 return false; |
| 2759 }, | 2429 }, |
| 2760 get$current: function() { | 2430 get$current: function() { |
| 2761 return this._current; | 2431 return this._current; |
| 2762 }, | 2432 }, |
| 2763 $asIterator: function($S, $T) { | 2433 $asIterator: function($S, $T) { |
| 2764 return [$T]; | 2434 return [$T]; |
| 2765 } | 2435 } |
| 2766 }, | 2436 }, |
| 2767 | 2437 |
| 2768 MappedListIterable: {"": "ListIterable;_source,_f", | 2438 FixedLengthListMixin: {"": "Object;", |
| 2769 _f$1: function(arg0) { | 2439 set$length: function(receiver, newLength) { |
| 2770 return this._f.call$1(arg0); | 2440 throw H.wrapException(P.UnsupportedError$("Cannot change the length of a fix
ed-length list")); |
| 2771 }, | 2441 }, |
| 2772 get$length: function(_) { | 2442 add$1: function(receiver, value) { |
| 2773 return J.get$length$asx(this._source); | 2443 throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list
")); |
| 2774 }, | 2444 }, |
| 2775 elementAt$1: function(_, index) { | 2445 removeLast$0: function(receiver) { |
| 2776 return this._f$1(J.elementAt$1$ax(this._source, index)); | 2446 throw H.wrapException(P.UnsupportedError$("Cannot remove from a fixed-length
list")); |
| 2777 }, | |
| 2778 $asListIterable: function($S, $T) { | |
| 2779 return [$T]; | |
| 2780 } | 2447 } |
| 2781 }, | 2448 }}], |
| 2782 | |
| 2783 WhereIterable: {"": "IterableBase;_iterable,_f", | |
| 2784 get$iterator: function(_) { | |
| 2785 var t1 = J.get$iterator$ax(this._iterable); | |
| 2786 t1 = new H.WhereIterator(t1, this._f); | |
| 2787 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "WhereIterable", 0)
]); | |
| 2788 return t1; | |
| 2789 }, | |
| 2790 $asIterableBase: null | |
| 2791 }, | |
| 2792 | |
| 2793 WhereIterator: {"": "Iterator;_iterator,_f", | |
| 2794 _f$1: function(arg0) { | |
| 2795 return this._f.call$1(arg0); | |
| 2796 }, | |
| 2797 moveNext$0: function() { | |
| 2798 for (var t1 = this._iterator; t1.moveNext$0();) | |
| 2799 if (this._f$1(t1.get$current()) === true) | |
| 2800 return true; | |
| 2801 return false; | |
| 2802 }, | |
| 2803 get$current: function() { | |
| 2804 return this._iterator.get$current(); | |
| 2805 }, | |
| 2806 $asIterator: null | |
| 2807 }, | |
| 2808 | |
| 2809 FixedLengthListMixin: {"": "Object;"}}], | |
| 2810 ["dart.async", "dart:async", , P, { | 2449 ["dart.async", "dart:async", , P, { |
| 2811 _attachStackTrace: function(o, st) { | 2450 _attachStackTrace: function(o, st) { |
| 2812 var t1; | 2451 var t1; |
| 2813 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | 2452 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") |
| 2814 return; | 2453 return; |
| 2815 t1 = $.get$_stackTraceExpando(); | 2454 t1 = $.get$_stackTraceExpando(); |
| 2816 t1.$indexSet(t1, o, st); | 2455 t1.$indexSet(t1, o, st); |
| 2817 }, | 2456 }, |
| 2818 | 2457 |
| 2458 _invokeErrorHandler: function(errorHandler, error, stackTrace) { |
| 2459 var t1 = J.getInterceptor(errorHandler); |
| 2460 if (!!t1.$is_args2) |
| 2461 return errorHandler.call$2(error, stackTrace); |
| 2462 else |
| 2463 return errorHandler.call$1(error); |
| 2464 }, |
| 2465 |
| 2466 _registerErrorHandler: function(errorHandler, zone) { |
| 2467 var t1 = J.getInterceptor(errorHandler); |
| 2468 zone.toString; |
| 2469 if (!!t1.$is_args2) |
| 2470 return errorHandler; |
| 2471 else |
| 2472 return errorHandler; |
| 2473 }, |
| 2474 |
| 2819 getAttachedStackTrace: function(o) { | 2475 getAttachedStackTrace: function(o) { |
| 2820 var t1; | 2476 var t1; |
| 2821 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | 2477 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") |
| 2822 return; | 2478 return; |
| 2823 t1 = $.get$_stackTraceExpando(); | 2479 t1 = $.get$_stackTraceExpando(); |
| 2824 return t1.$index(t1, o); | 2480 return t1.$index(t1, o); |
| 2825 }, | 2481 }, |
| 2826 | 2482 |
| 2827 _asyncRunCallback: function() { | |
| 2828 var callback, t1, exception, milliseconds; | |
| 2829 for (; t1 = $.get$_asyncCallbacks(), t1._head !== t1._tail;) { | |
| 2830 callback = $.get$_asyncCallbacks().removeFirst$0(); | |
| 2831 try { | |
| 2832 callback.call$0(); | |
| 2833 } catch (exception) { | |
| 2834 H.unwrapException(exception); | |
| 2835 milliseconds = C.Duration_0.get$inMilliseconds(); | |
| 2836 H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, P._asyncRunCallback$clos
ure); | |
| 2837 throw exception; | |
| 2838 } | |
| 2839 | |
| 2840 } | |
| 2841 $._callbacksAreEnqueued = false; | |
| 2842 }, | |
| 2843 | |
| 2844 _scheduleAsyncCallback: function(callback) { | |
| 2845 $.get$_asyncCallbacks()._add$1(callback); | |
| 2846 if (!$._callbacksAreEnqueued) { | |
| 2847 P._createTimer(C.Duration_0, P._asyncRunCallback$closure); | |
| 2848 $._callbacksAreEnqueued = true; | |
| 2849 } | |
| 2850 }, | |
| 2851 | |
| 2852 runAsync: function(callback) { | |
| 2853 var t1; | |
| 2854 if (J.$eq($.Zone__current, C._CustomizedZone_WYN)) { | |
| 2855 $.Zone__current.scheduleMicrotask$1(callback); | |
| 2856 return; | |
| 2857 } | |
| 2858 t1 = $.Zone__current; | |
| 2859 t1.scheduleMicrotask$1(t1.bindCallback$2$runGuarded(callback, true)); | |
| 2860 }, | |
| 2861 | |
| 2862 Future_wait: function(futures) { | 2483 Future_wait: function(futures) { |
| 2863 var t1, t2, t3, future, pos, t4, t5, result, completer; | 2484 var t1, t2, t3, future, pos, t4, t5, result, completer; |
| 2864 t1 = {}; | 2485 t1 = {}; |
| 2865 t1.completer_0 = null; | 2486 t1.completer_0 = null; |
| 2866 t1.values_1 = null; | 2487 t1.values_1 = null; |
| 2867 t2 = new P.Future_wait_handleError(t1); | 2488 t2 = new P.Future_wait_handleError(t1); |
| 2868 t1.remaining_2 = 0; | 2489 t1.remaining_2 = 0; |
| 2869 for (t3 = new H.ListIterator(futures, futures.length, 0, null); t3.moveNext$0(
);) { | 2490 for (t3 = new H.ListIterator(futures, futures.length, 0, null); t3.moveNext$0(
);) { |
| 2870 future = t3._current; | 2491 future = t3._current; |
| 2871 pos = t1.remaining_2; | 2492 pos = t1.remaining_2; |
| 2872 t1.remaining_2 = pos + 1; | 2493 t1.remaining_2 = pos + 1; |
| 2873 t4 = future.catchError$1(t2); | 2494 t4 = future.catchError$1(t2); |
| 2874 t5 = $.Zone__current; | 2495 t5 = $.Zone__current; |
| 2875 result = new P._Future(0, t5, null, null, t5.registerUnaryCallback$1(new P.F
uture_wait_closure(t1, pos)), null, $.Zone__current.registerUnaryCallback$1(null
), null); | 2496 t5.toString; |
| 2497 result = new P._Future(0, t5, null, null, new P.Future_wait_closure(t1, pos)
, null, P._registerErrorHandler(null, t5), null); |
| 2876 result.$builtinTypeInfo = [null]; | 2498 result.$builtinTypeInfo = [null]; |
| 2877 t4._addListener$1(result); | 2499 t4._addListener$1(result); |
| 2878 } | 2500 } |
| 2879 t2 = t1.remaining_2; | 2501 t2 = t1.remaining_2; |
| 2880 if (t2 === 0) | 2502 if (t2 === 0) |
| 2881 return P._Future$immediate(C.List_empty, null); | 2503 return P._Future$immediate(C.List_empty, null); |
| 2882 t1.values_1 = P.List_List(t2, null); | 2504 t1.values_1 = P.List_List(t2, null); |
| 2883 t2 = J.JSArray; | 2505 t2 = J.JSArray; |
| 2884 completer = new P._AsyncCompleter(P._Future$(t2)); | 2506 completer = new P._AsyncCompleter(P._Future$(t2)); |
| 2885 H.setRuntimeTypeInfo(completer, [t2]); | 2507 H.setRuntimeTypeInfo(completer, [t2]); |
| 2886 t1.completer_0 = completer; | 2508 t1.completer_0 = completer; |
| 2887 return t1.completer_0.future; | 2509 return t1.completer_0.future; |
| 2888 }, | 2510 }, |
| 2889 | 2511 |
| 2512 _asyncRunCallback: function() { |
| 2513 var callback, t1, exception, milliseconds; |
| 2514 for (; t1 = $.get$_asyncCallbacks(), t1._head !== t1._tail;) { |
| 2515 callback = $.get$_asyncCallbacks().removeFirst$0(); |
| 2516 try { |
| 2517 callback.call$0(); |
| 2518 } catch (exception) { |
| 2519 H.unwrapException(exception); |
| 2520 milliseconds = C.JSNumber_methods.$tdiv(C.Duration_0._duration, 1000); |
| 2521 H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, P._asyncRunCallback$clos
ure); |
| 2522 throw exception; |
| 2523 } |
| 2524 |
| 2525 } |
| 2526 $._callbacksAreEnqueued = false; |
| 2527 }, |
| 2528 |
| 2529 _scheduleAsyncCallback: function(callback) { |
| 2530 $.get$_asyncCallbacks()._add$1(callback); |
| 2531 if (!$._callbacksAreEnqueued) { |
| 2532 P._createTimer(C.Duration_0, P._asyncRunCallback$closure); |
| 2533 $._callbacksAreEnqueued = true; |
| 2534 } |
| 2535 }, |
| 2536 |
| 2537 scheduleMicrotask: function(callback) { |
| 2538 var t1, t2; |
| 2539 t1 = $.Zone__current; |
| 2540 if (t1 === C.C__RootZone) { |
| 2541 t1.toString; |
| 2542 P._scheduleAsyncCallback(callback); |
| 2543 return; |
| 2544 } |
| 2545 t2 = t1.bindCallback$2$runGuarded(callback, true); |
| 2546 t1.toString; |
| 2547 P._scheduleAsyncCallback(t2); |
| 2548 }, |
| 2549 |
| 2550 StreamController_StreamController: function(onCancel, onListen, onPause, onResum
e, sync, $T) { |
| 2551 var t1; |
| 2552 if (sync) { |
| 2553 t1 = new P._SyncStreamController(onListen, onPause, onResume, onCancel, null
, 0, null); |
| 2554 H.setRuntimeTypeInfo(t1, [$T]); |
| 2555 } else { |
| 2556 t1 = new P._AsyncStreamController(onListen, onPause, onResume, onCancel, nul
l, 0, null); |
| 2557 H.setRuntimeTypeInfo(t1, [$T]); |
| 2558 } |
| 2559 return t1; |
| 2560 }, |
| 2561 |
| 2562 _runGuarded: function(notificationHandler) { |
| 2563 var e, s, exception, t1, t2; |
| 2564 if (notificationHandler == null) |
| 2565 return; |
| 2566 try { |
| 2567 notificationHandler.call$0(); |
| 2568 } catch (exception) { |
| 2569 t1 = H.unwrapException(exception); |
| 2570 e = t1; |
| 2571 s = new H._StackTrace(exception, null); |
| 2572 t1 = $.Zone__current; |
| 2573 t2 = P._asyncError(e, s); |
| 2574 t1.toString; |
| 2575 P._rootHandleUncaughtError(t1, null, t1, t2, s); |
| 2576 } |
| 2577 |
| 2578 }, |
| 2579 |
| 2890 _nullDataHandler: function(value) { | 2580 _nullDataHandler: function(value) { |
| 2891 }, | 2581 }, |
| 2892 | 2582 |
| 2893 _nullErrorHandler: function(error) { | 2583 _nullErrorHandler: function(error, stackTrace) { |
| 2894 $.Zone__current.handleUncaughtError$1(error); | 2584 var t1 = $.Zone__current; |
| 2585 t1.toString; |
| 2586 P._rootHandleUncaughtError(t1, null, t1, error, stackTrace); |
| 2895 }, | 2587 }, |
| 2896 | 2588 |
| 2897 _nullDoneHandler: function() { | 2589 _nullDoneHandler: function() { |
| 2898 }, | 2590 }, |
| 2899 | 2591 |
| 2900 _asyncError: function(error, stackTrace) { | 2592 _asyncError: function(error, stackTrace) { |
| 2901 if (stackTrace == null) | 2593 if (stackTrace == null) |
| 2902 return error; | 2594 return error; |
| 2903 if (P.getAttachedStackTrace(error) != null) | 2595 if (P.getAttachedStackTrace(error) != null) |
| 2904 return error; | 2596 return error; |
| 2905 P._attachStackTrace(error, stackTrace); | 2597 P._attachStackTrace(error, stackTrace); |
| 2906 return error; | 2598 return error; |
| 2907 }, | 2599 }, |
| 2908 | 2600 |
| 2909 _runUserCode: function(userCode, onSuccess, onError) { | 2601 _runUserCode: function(userCode, onSuccess, onError) { |
| 2910 var e, s, exception, t1; | 2602 var e, s, exception, t1; |
| 2911 try { | 2603 try { |
| 2912 onSuccess.call$1(userCode.call$0()); | 2604 onSuccess.call$1(userCode.call$0()); |
| 2913 } catch (exception) { | 2605 } catch (exception) { |
| 2914 t1 = H.unwrapException(exception); | 2606 t1 = H.unwrapException(exception); |
| 2915 e = t1; | 2607 e = t1; |
| 2916 s = new H._StackTrace(exception, null); | 2608 s = new H._StackTrace(exception, null); |
| 2917 onError.call$1(P._asyncError(e, s)); | 2609 onError.call$2(P._asyncError(e, s), s); |
| 2918 } | 2610 } |
| 2919 | 2611 |
| 2920 }, | 2612 }, |
| 2921 | 2613 |
| 2922 _cancelAndError: function(subscription, future) { | 2614 _cancelAndError: function(subscription, future) { |
| 2923 return new P._cancelAndError_closure(subscription, future); | 2615 return new P._cancelAndError_closure(subscription, future); |
| 2924 }, | 2616 }, |
| 2925 | 2617 |
| 2926 Timer_Timer: function(duration, callback) { | 2618 Timer_Timer: function(duration, callback) { |
| 2927 var t1; | 2619 var t1, t2; |
| 2928 if (J.$eq($.Zone__current, C._CustomizedZone_WYN)) | |
| 2929 return $.Zone__current.createTimer$2(duration, callback); | |
| 2930 t1 = $.Zone__current; | 2620 t1 = $.Zone__current; |
| 2931 return t1.createTimer$2(duration, t1.bindCallback$2$runGuarded(callback, true)
); | 2621 if (t1 === C.C__RootZone) { |
| 2622 t1.toString; |
| 2623 return P._createTimer(duration, callback); |
| 2624 } |
| 2625 t2 = t1.bindCallback$2$runGuarded(callback, true); |
| 2626 t1.toString; |
| 2627 return P._createTimer(duration, t2); |
| 2932 }, | 2628 }, |
| 2933 | 2629 |
| 2934 _createTimer: function(duration, callback) { | 2630 _createTimer: function(duration, callback) { |
| 2935 var milliseconds = duration.get$inMilliseconds(); | 2631 var milliseconds = C.JSNumber_methods.$tdiv(duration._duration, 1000); |
| 2936 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); | 2632 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); |
| 2937 }, | 2633 }, |
| 2938 | 2634 |
| 2939 _createPeriodicTimer: function(duration, callback) { | 2635 _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) { |
| 2940 var milliseconds = duration.get$inMilliseconds(); | 2636 P._scheduleAsyncCallback(new P._rootHandleUncaughtError_closure(error, stackTr
ace)); |
| 2941 return H.TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback); | |
| 2942 }, | |
| 2943 | |
| 2944 _rootHandleUncaughtError: function($self, $parent, zone, error) { | |
| 2945 P._scheduleAsyncCallback(new P._rootHandleUncaughtError_closure(error)); | |
| 2946 }, | 2637 }, |
| 2947 | 2638 |
| 2948 _rootRun: function($self, $parent, zone, f) { | 2639 _rootRun: function($self, $parent, zone, f) { |
| 2949 var old, t1; | 2640 var old, t1, t2; |
| 2950 if (J.$eq($.Zone__current, zone)) | 2641 t1 = $.Zone__current; |
| 2642 t2 = zone; |
| 2643 if (t1 == null ? t2 == null : t1 === t2) |
| 2951 return f.call$0(); | 2644 return f.call$0(); |
| 2952 old = $.Zone__current; | 2645 old = t1; |
| 2953 try { | 2646 try { |
| 2954 $.Zone__current = zone; | 2647 $.Zone__current = zone; |
| 2955 t1 = f.call$0(); | 2648 t1 = f.call$0(); |
| 2956 return t1; | 2649 return t1; |
| 2957 } finally { | 2650 } finally { |
| 2958 $.Zone__current = old; | 2651 $.Zone__current = old; |
| 2959 } | 2652 } |
| 2960 }, | 2653 }, |
| 2961 | 2654 |
| 2962 _rootRunUnary: function($self, $parent, zone, f, arg) { | 2655 _rootRunUnary: function($self, $parent, zone, f, arg) { |
| 2963 var old, t1; | 2656 var old, t1, t2; |
| 2964 if (J.$eq($.Zone__current, zone)) | 2657 t1 = $.Zone__current; |
| 2658 t2 = zone; |
| 2659 if (t1 == null ? t2 == null : t1 === t2) |
| 2965 return f.call$1(arg); | 2660 return f.call$1(arg); |
| 2966 old = $.Zone__current; | 2661 old = t1; |
| 2967 try { | 2662 try { |
| 2968 $.Zone__current = zone; | 2663 $.Zone__current = zone; |
| 2969 t1 = f.call$1(arg); | 2664 t1 = f.call$1(arg); |
| 2970 return t1; | 2665 return t1; |
| 2971 } finally { | 2666 } finally { |
| 2972 $.Zone__current = old; | 2667 $.Zone__current = old; |
| 2973 } | 2668 } |
| 2974 }, | 2669 }, |
| 2975 | 2670 |
| 2976 _rootRegisterCallback: function($self, $parent, zone, f) { | 2671 _rootRunBinary: function($self, $parent, zone, f, arg1, arg2) { |
| 2977 return f; | 2672 var old, t1, t2; |
| 2673 t1 = $.Zone__current; |
| 2674 t2 = zone; |
| 2675 if (t1 == null ? t2 == null : t1 === t2) |
| 2676 return f.call$2(arg1, arg2); |
| 2677 old = t1; |
| 2678 try { |
| 2679 $.Zone__current = zone; |
| 2680 t1 = f.call$2(arg1, arg2); |
| 2681 return t1; |
| 2682 } finally { |
| 2683 $.Zone__current = old; |
| 2684 } |
| 2978 }, | 2685 }, |
| 2979 | 2686 |
| 2980 _rootRegisterUnaryCallback: function($self, $parent, zone, f) { | 2687 _AsyncError: {"": "Object;error>,stackTrace<", $isError: true}, |
| 2981 return f; | |
| 2982 }, | |
| 2983 | |
| 2984 _rootScheduleMicrotask: function($self, $parent, zone, f) { | |
| 2985 P._scheduleAsyncCallback(f); | |
| 2986 }, | |
| 2987 | |
| 2988 _rootCreateTimer: function($self, $parent, zone, duration, callback) { | |
| 2989 return P._createTimer(duration, callback); | |
| 2990 }, | |
| 2991 | |
| 2992 _rootCreatePeriodicTimer: function($self, $parent, zone, duration, callback) { | |
| 2993 return P._createPeriodicTimer(duration, callback); | |
| 2994 }, | |
| 2995 | |
| 2996 _rootFork: function($self, $parent, zone, specification, zoneValues) { | |
| 2997 var t1, copiedMap; | |
| 2998 if (specification == null) | |
| 2999 specification = C._ZoneSpecification_eLJ; | |
| 3000 else { | |
| 3001 t1 = J.getInterceptor(specification); | |
| 3002 if (typeof specification !== "object" || specification === null || !t1.$is_Z
oneSpecification) | |
| 3003 throw H.wrapException(new P.ArgumentError("ZoneSpecifications must be inst
antiated with the provided constructor.")); | |
| 3004 } | |
| 3005 copiedMap = P.HashMap_HashMap(null, null, null, null, null); | |
| 3006 if (zoneValues != null) | |
| 3007 J.forEach$1$ax(zoneValues, new P._rootFork_closure(copiedMap)); | |
| 3008 return new P._CustomizedZone(zone, specification, copiedMap); | |
| 3009 }, | |
| 3010 | 2688 |
| 3011 Future: {"": "Object;", $isFuture: true}, | 2689 Future: {"": "Object;", $isFuture: true}, |
| 3012 | 2690 |
| 3013 Future_wait_handleError: {"": "Closure;box_0", | 2691 Future_wait_handleError: {"": "Closure;box_0", |
| 3014 call$1: function(error) { | 2692 call$1: function(error) { |
| 3015 var t1 = this.box_0; | 2693 var t1 = this.box_0; |
| 3016 if (t1.values_1 != null) { | 2694 if (t1.values_1 != null) { |
| 3017 t1.values_1 = null; | 2695 t1.values_1 = null; |
| 3018 t1 = t1.completer_0.future; | 2696 t1 = t1.completer_0.future; |
| 3019 if (t1._state !== 0) | 2697 if (t1._state !== 0) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3040 t2 = t1.completer_0; | 2718 t2 = t1.completer_0; |
| 3041 t1 = t1.values_1; | 2719 t1 = t1.values_1; |
| 3042 t2 = t2.future; | 2720 t2 = t2.future; |
| 3043 if (t2._state !== 0) | 2721 if (t2._state !== 0) |
| 3044 H.throwExpression(new P.StateError("Future already completed")); | 2722 H.throwExpression(new P.StateError("Future already completed")); |
| 3045 t2._asyncComplete$1(t1); | 2723 t2._asyncComplete$1(t1); |
| 3046 } | 2724 } |
| 3047 } | 2725 } |
| 3048 }, | 2726 }, |
| 3049 | 2727 |
| 3050 _Completer: {"": "Object;"}, | 2728 _Completer: {"": "Object;future<"}, |
| 3051 | 2729 |
| 3052 _AsyncCompleter: {"": "_Completer;future", $as_Completer: null}, | 2730 _AsyncCompleter: {"": "_Completer;future", $as_Completer: null}, |
| 3053 | 2731 |
| 3054 _Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCa
llback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback", | 2732 _Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCa
llback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback", |
| 3055 get$_isComplete: function() { | 2733 get$_isComplete: function() { |
| 3056 return this._state >= 4; | 2734 return this._state >= 4; |
| 3057 }, | 2735 }, |
| 3058 get$_hasError: function() { | 2736 get$_hasError: function() { |
| 3059 return this._state === 8; | 2737 return this._state === 8; |
| 3060 }, | 2738 }, |
| 3061 set$_isChained: function(value) { | 2739 set$_isChained: function(value) { |
| 3062 if (value) | 2740 if (value) |
| 3063 this._state = 2; | 2741 this._state = 2; |
| 3064 else | 2742 else |
| 3065 this._state = 0; | 2743 this._state = 0; |
| 3066 }, | 2744 }, |
| 3067 get$_onValue: function() { | 2745 get$_onValue: function() { |
| 3068 return this._state === 2 ? null : this._onValueCallback; | 2746 return this._state === 2 ? null : this._onValueCallback; |
| 3069 }, | 2747 }, |
| 3070 _onValue$1: function(arg0) { | 2748 _onValue$1: function(arg0) { |
| 3071 return this.get$_onValue().call$1(arg0); | 2749 return this.get$_onValue().call$1(arg0); |
| 3072 }, | 2750 }, |
| 3073 get$_onError: function() { | |
| 3074 return this._state === 2 ? null : this._onErrorCallback; | |
| 3075 }, | |
| 3076 _onError$1: function(arg0) { | |
| 3077 return this.get$_onError().call$1(arg0); | |
| 3078 }, | |
| 3079 get$_whenCompleteAction: function() { | 2751 get$_whenCompleteAction: function() { |
| 3080 return this._state === 2 ? null : this._whenCompleteActionCallback; | 2752 return this._state === 2 ? null : this._whenCompleteActionCallback; |
| 3081 }, | 2753 }, |
| 3082 _whenCompleteAction$0: function() { | 2754 _whenCompleteAction$0: function() { |
| 3083 return this.get$_whenCompleteAction().call$0(); | 2755 return this.get$_whenCompleteAction().call$0(); |
| 3084 }, | 2756 }, |
| 3085 then$2$onError: function(f, onError) { | 2757 then$2$onError: function(f, onError) { |
| 3086 var result = P._Future$_then(f, onError, null); | 2758 var result = P._Future$_then(f, onError, null); |
| 3087 this._addListener$1(result); | 2759 this._addListener$1(result); |
| 3088 return result; | 2760 return result; |
| 3089 }, | 2761 }, |
| 3090 then$1: function(f) { | 2762 then$1: function(f) { |
| 3091 return this.then$2$onError(f, null); | 2763 return this.then$2$onError(f, null); |
| 3092 }, | 2764 }, |
| 3093 catchError$2$test: function(f, test) { | 2765 catchError$2$test: function(onError, test) { |
| 3094 var result = P._Future$_catchError(f, test, null); | 2766 var result = P._Future$_catchError(onError, test, null); |
| 3095 this._addListener$1(result); | 2767 this._addListener$1(result); |
| 3096 return result; | 2768 return result; |
| 3097 }, | 2769 }, |
| 3098 catchError$1: function(f) { | 2770 catchError$1: function(onError) { |
| 3099 return this.catchError$2$test(f, null); | 2771 return this.catchError$2$test(onError, null); |
| 3100 }, | 2772 }, |
| 3101 get$_value: function() { | 2773 get$_value: function() { |
| 3102 return this._resultOrListeners; | 2774 return this._resultOrListeners; |
| 3103 }, | 2775 }, |
| 3104 get$_error: function() { | 2776 get$_error: function() { |
| 3105 return this._resultOrListeners; | 2777 return this._resultOrListeners; |
| 3106 }, | 2778 }, |
| 3107 _setValue$1: function(value) { | 2779 _setValue$1: function(value) { |
| 3108 this._state = 4; | 2780 this._state = 4; |
| 3109 this._resultOrListeners = value; | 2781 this._resultOrListeners = value; |
| 3110 }, | 2782 }, |
| 3111 _setError$1: function(error) { | 2783 _setError$2: function(error, stackTrace) { |
| 3112 this._state = 8; | 2784 this._state = 8; |
| 3113 this._resultOrListeners = error; | 2785 this._resultOrListeners = new P._AsyncError(error, stackTrace); |
| 3114 }, | 2786 }, |
| 3115 _addListener$1: function(listener) { | 2787 _addListener$1: function(listener) { |
| 3116 if (this._state >= 4) | 2788 if (this._state >= 4) { |
| 3117 this._zone.scheduleMicrotask$1(new P._Future__addListener_closure(this, li
stener)); | 2789 this._zone.toString; |
| 3118 else { | 2790 P._scheduleAsyncCallback(new P._Future__addListener_closure(this, listener
)); |
| 2791 } else { |
| 3119 listener._nextListener = this._resultOrListeners; | 2792 listener._nextListener = this._resultOrListeners; |
| 3120 this._resultOrListeners = listener; | 2793 this._resultOrListeners = listener; |
| 3121 } | 2794 } |
| 3122 }, | 2795 }, |
| 3123 _removeListeners$0: function() { | 2796 _removeListeners$0: function() { |
| 3124 var current, prev, next; | 2797 var current, prev, next; |
| 3125 current = this._resultOrListeners; | 2798 current = this._resultOrListeners; |
| 3126 this._resultOrListeners = null; | 2799 this._resultOrListeners = null; |
| 3127 for (prev = null; current != null; prev = current, current = next) { | 2800 for (prev = null; current != null; prev = current, current = next) { |
| 3128 next = current.get$_nextListener(); | 2801 next = current.get$_nextListener(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3139 } | 2812 } |
| 3140 listeners = this._removeListeners$0(); | 2813 listeners = this._removeListeners$0(); |
| 3141 this._setValue$1(value); | 2814 this._setValue$1(value); |
| 3142 P._Future__propagateToListeners(this, listeners); | 2815 P._Future__propagateToListeners(this, listeners); |
| 3143 }, | 2816 }, |
| 3144 _completeError$2: function(error, stackTrace) { | 2817 _completeError$2: function(error, stackTrace) { |
| 3145 var listeners; | 2818 var listeners; |
| 3146 if (stackTrace != null) | 2819 if (stackTrace != null) |
| 3147 P._attachStackTrace(error, stackTrace); | 2820 P._attachStackTrace(error, stackTrace); |
| 3148 listeners = this._state === 2 ? null : this._removeListeners$0(); | 2821 listeners = this._state === 2 ? null : this._removeListeners$0(); |
| 3149 this._setError$1(error); | 2822 this._setError$2(error, stackTrace); |
| 3150 P._Future__propagateToListeners(this, listeners); | 2823 P._Future__propagateToListeners(this, listeners); |
| 3151 }, | 2824 }, |
| 3152 _completeError$1: function(error) { | |
| 3153 return this._completeError$2(error, null); | |
| 3154 }, | |
| 3155 get$_completeError: function() { | 2825 get$_completeError: function() { |
| 3156 return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null
, "_completeError$2"); | 2826 return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null
, "_completeError$2"); |
| 3157 }, | 2827 }, |
| 3158 _asyncComplete$1: function(value) { | 2828 _asyncComplete$1: function(value) { |
| 3159 var t1, t2; | 2829 var t1, t2; |
| 3160 t1 = J.getInterceptor(value); | 2830 t1 = J.getInterceptor(value); |
| 3161 t2 = typeof value === "object" && value !== null && !!t1.$isFuture; | 2831 t2 = typeof value === "object" && value !== null && !!t1.$isFuture; |
| 3162 if (t2) | 2832 if (t2) |
| 3163 ; | 2833 ; |
| 3164 if (t2) | 2834 if (t2) |
| 3165 t1 = !t1.$is_Future || value._state < 4; | 2835 t1 = !t1.$is_Future || value._state < 4; |
| 3166 else | 2836 else |
| 3167 t1 = false; | 2837 t1 = false; |
| 3168 if (t1) { | 2838 if (t1) { |
| 3169 this._complete$1(value); | 2839 this._complete$1(value); |
| 3170 return; | 2840 return; |
| 3171 } | 2841 } |
| 3172 if (this._state !== 0) | 2842 if (this._state !== 0) |
| 3173 H.throwExpression(new P.StateError("Future already completed")); | 2843 H.throwExpression(P.StateError$("Future already completed")); |
| 3174 this._state = 1; | 2844 this._state = 1; |
| 3175 this._zone.scheduleMicrotask$1(new P._Future__asyncComplete_closure(this, va
lue)); | 2845 this._zone.toString; |
| 2846 P._scheduleAsyncCallback(new P._Future__asyncComplete_closure(this, value)); |
| 3176 }, | 2847 }, |
| 3177 _asyncCompleteError$2: function(error, stackTrace) { | 2848 _asyncCompleteError$2: function(error, stackTrace) { |
| 3178 if (this._state !== 0) | 2849 if (this._state !== 0) |
| 3179 H.throwExpression(new P.StateError("Future already completed")); | 2850 H.throwExpression(new P.StateError("Future already completed")); |
| 3180 this._state = 1; | 2851 this._state = 1; |
| 3181 this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteError_closure(thi
s, error, stackTrace)); | 2852 this._zone.toString; |
| 2853 P._scheduleAsyncCallback(new P._Future__asyncCompleteError_closure(this, err
or, stackTrace)); |
| 3182 }, | 2854 }, |
| 3183 _async$_Future$immediate$1: function(value, $T) { | 2855 _async$_Future$immediate$1: function(value, $T) { |
| 3184 this._asyncComplete$1(value); | 2856 this._asyncComplete$1(value); |
| 3185 }, | 2857 }, |
| 3186 $is_Future: true, | 2858 $is_Future: true, |
| 3187 $isFuture: true, | 2859 $isFuture: true, |
| 3188 static: { | 2860 static: { |
| 3189 "": "_Future__INCOMPLETE,_Future__PENDING_COMPLETE,_Future__CHAINED,_Future__VAL
UE,_Future__ERROR", | 2861 "": "_Future__INCOMPLETE,_Future__PENDING_COMPLETE,_Future__CHAINED,_Future__VAL
UE,_Future__ERROR", |
| 3190 _Future$: function($T) { | 2862 _Future$: function($T) { |
| 3191 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | 2863 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; |
| 3192 H.setRuntimeTypeInfo(t1, [$T]); | 2864 H.setRuntimeTypeInfo(t1, [$T]); |
| 3193 return t1; | 2865 return t1; |
| 3194 }, | 2866 }, |
| 3195 | 2867 |
| 3196 _Future$immediate: function(value, $T) { | 2868 _Future$immediate: function(value, $T) { |
| 3197 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | 2869 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; |
| 3198 H.setRuntimeTypeInfo(t1, [$T]); | 2870 H.setRuntimeTypeInfo(t1, [$T]); |
| 3199 t1._async$_Future$immediate$1(value, $T); | 2871 t1._async$_Future$immediate$1(value, $T); |
| 3200 return t1; | 2872 return t1; |
| 3201 }, | 2873 }, |
| 3202 | 2874 |
| 3203 _Future$_then: function(onValueCallback, onErrorCallback, $T) { | 2875 _Future$_then: function(onValueCallback, onErrorCallback, $T) { |
| 3204 var t1 = $.Zone__current; | 2876 var t1 = $.Zone__current; |
| 3205 t1 = new P._Future(0, t1, null, null, t1.registerUnaryCallback$1(onValueCallba
ck), null, $.Zone__current.registerUnaryCallback$1(onErrorCallback), null); | 2877 t1.toString; |
| 2878 t1 = new P._Future(0, t1, null, null, onValueCallback, null, P._registerErrorH
andler(onErrorCallback, t1), null); |
| 3206 H.setRuntimeTypeInfo(t1, [$T]); | 2879 H.setRuntimeTypeInfo(t1, [$T]); |
| 3207 return t1; | 2880 return t1; |
| 3208 }, | 2881 }, |
| 3209 | 2882 |
| 3210 _Future$_catchError: function(onErrorCallback, errorTestCallback, $T) { | 2883 _Future$_catchError: function(onErrorCallback, errorTestCallback, $T) { |
| 3211 var t1, t2; | 2884 var t1, t2; |
| 3212 t1 = $.Zone__current; | 2885 t1 = $.Zone__current; |
| 3213 t2 = t1.registerUnaryCallback$1(onErrorCallback); | 2886 t2 = P._registerErrorHandler(onErrorCallback, t1); |
| 3214 t2 = new P._Future(0, t1, null, null, null, $.Zone__current.registerUnaryCallb
ack$1(errorTestCallback), t2, null); | 2887 t1.toString; |
| 2888 t2 = new P._Future(0, t1, null, null, null, errorTestCallback, t2, null); |
| 3215 H.setRuntimeTypeInfo(t2, [$T]); | 2889 H.setRuntimeTypeInfo(t2, [$T]); |
| 3216 return t2; | 2890 return t2; |
| 3217 }, | 2891 }, |
| 3218 | 2892 |
| 3219 _Future__chainFutures: function(source, target) { | 2893 _Future__chainFutures: function(source, target) { |
| 3220 var t1; | 2894 var t1; |
| 3221 target._state = 2; | 2895 target._state = 2; |
| 3222 t1 = J.getInterceptor(source); | 2896 t1 = J.getInterceptor(source); |
| 3223 if (typeof source === "object" && source !== null && !!t1.$is_Future) | 2897 if (typeof source === "object" && source !== null && !!t1.$is_Future) |
| 3224 if (source._state >= 4) | 2898 if (source._state >= 4) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3237 P._Future__propagateToListeners(source, listeners); | 2911 P._Future__propagateToListeners(source, listeners); |
| 3238 if (listeners0 != null) { | 2912 if (listeners0 != null) { |
| 3239 listeners = listeners0; | 2913 listeners = listeners0; |
| 3240 continue; | 2914 continue; |
| 3241 } else | 2915 } else |
| 3242 break; | 2916 break; |
| 3243 } while (true); | 2917 } while (true); |
| 3244 }, | 2918 }, |
| 3245 | 2919 |
| 3246 _Future__propagateToListeners: function(source, listeners) { | 2920 _Future__propagateToListeners: function(source, listeners) { |
| 3247 var t1, t2, hasError, t3, t4, t5, chainSource, listeners0; | 2921 var t1, t2, hasError, asyncError, t3, t4, t5, chainSource, listeners0; |
| 3248 t1 = {}; | 2922 t1 = {}; |
| 3249 t1.source_4 = source; | 2923 t1.source_4 = source; |
| 3250 for (; true;) { | 2924 for (; true;) { |
| 3251 t2 = {}; | 2925 t2 = {}; |
| 3252 if (!t1.source_4.get$_isComplete()) | 2926 if (!t1.source_4.get$_isComplete()) |
| 3253 return; | 2927 return; |
| 3254 hasError = t1.source_4.get$_hasError(); | 2928 hasError = t1.source_4.get$_hasError(); |
| 3255 if (hasError && listeners == null) { | 2929 if (hasError && listeners == null) { |
| 3256 t1.source_4.get$_zone().handleUncaughtError$1(t1.source_4.get$_error()); | 2930 t2 = t1.source_4; |
| 2931 asyncError = t2.get$_error(); |
| 2932 t2 = t2.get$_zone(); |
| 2933 t3 = J.get$error$x(asyncError); |
| 2934 t4 = asyncError.get$stackTrace(); |
| 2935 t2.toString; |
| 2936 P._rootHandleUncaughtError(t2, null, t2, t3, t4); |
| 3257 return; | 2937 return; |
| 3258 } | 2938 } |
| 3259 if (listeners == null) | 2939 if (listeners == null) |
| 3260 return; | 2940 return; |
| 3261 if (listeners._nextListener != null) { | 2941 if (listeners._nextListener != null) { |
| 3262 P._Future__propagateMultipleListeners(t1.source_4, listeners); | 2942 P._Future__propagateMultipleListeners(t1.source_4, listeners); |
| 3263 return; | 2943 return; |
| 3264 } | 2944 } |
| 3265 if (hasError && !t1.source_4.get$_zone().inSameErrorZone$1(listeners._zone))
{ | 2945 if (hasError) { |
| 3266 t1.source_4.get$_zone().handleUncaughtError$1(t1.source_4.get$_error()); | 2946 t3 = t1.source_4.get$_zone(); |
| 2947 t4 = listeners._zone; |
| 2948 t3.toString; |
| 2949 t4.toString; |
| 2950 t3 = t4 == null ? t3 != null : t4 !== t3; |
| 2951 } else |
| 2952 t3 = false; |
| 2953 if (t3) { |
| 2954 t2 = t1.source_4; |
| 2955 asyncError = t2.get$_error(); |
| 2956 t2 = t2.get$_zone(); |
| 2957 t3 = J.get$error$x(asyncError); |
| 2958 t4 = asyncError.get$stackTrace(); |
| 2959 t2.toString; |
| 2960 P._rootHandleUncaughtError(t2, null, t2, t3, t4); |
| 3267 return; | 2961 return; |
| 3268 } | 2962 } |
| 3269 t3 = $.Zone__current; | 2963 t3 = $.Zone__current; |
| 3270 t4 = listeners._zone; | 2964 t4 = listeners._zone; |
| 3271 if (t3 == null ? t4 != null : t3 !== t4) { | 2965 if (t3 == null ? t4 != null : t3 !== t4) { |
| 3272 t4.run$1(new P._Future__propagateToListeners_closure(t1, listeners)); | 2966 t4.toString; |
| 2967 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure(t1, l
isteners)); |
| 3273 return; | 2968 return; |
| 3274 } | 2969 } |
| 3275 t2.listenerHasValue_1 = null; | 2970 t2.listenerHasValue_1 = null; |
| 3276 t2.listenerValueOrError_2 = null; | 2971 t2.listenerValueOrError_2 = null; |
| 3277 t2.isPropagationAborted_3 = false; | 2972 t2.isPropagationAborted_3 = false; |
| 3278 t4.run$1(new P._Future__propagateToListeners_closure0(t1, t2, hasError, list
eners)); | 2973 t4.toString; |
| 2974 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure0(t1, t2
, hasError, listeners)); |
| 3279 if (t2.isPropagationAborted_3) | 2975 if (t2.isPropagationAborted_3) |
| 3280 return; | 2976 return; |
| 3281 t3 = t2.listenerHasValue_1 === true; | 2977 t3 = t2.listenerHasValue_1 === true; |
| 3282 if (t3) { | 2978 if (t3) { |
| 3283 t4 = t2.listenerValueOrError_2; | 2979 t4 = t2.listenerValueOrError_2; |
| 3284 t5 = J.getInterceptor(t4); | 2980 t5 = J.getInterceptor(t4); |
| 3285 t5 = typeof t4 === "object" && t4 !== null && !!t5.$isFuture; | 2981 t5 = typeof t4 === "object" && t4 !== null && !!t5.$isFuture; |
| 3286 t4 = t5; | 2982 t4 = t5; |
| 3287 } else | 2983 } else |
| 3288 t4 = false; | 2984 t4 = false; |
| 3289 if (t4) { | 2985 if (t4) { |
| 3290 chainSource = t2.listenerValueOrError_2; | 2986 chainSource = t2.listenerValueOrError_2; |
| 3291 t2 = J.getInterceptor(chainSource); | 2987 t2 = J.getInterceptor(chainSource); |
| 3292 if (typeof chainSource === "object" && chainSource !== null && !!t2.$is_Fu
ture && chainSource._state >= 4) { | 2988 if (typeof chainSource === "object" && chainSource !== null && !!t2.$is_Fu
ture && chainSource._state >= 4) { |
| 3293 listeners._state = 2; | 2989 listeners._state = 2; |
| 3294 t1.source_4 = chainSource; | 2990 t1.source_4 = chainSource; |
| 3295 continue; | 2991 continue; |
| 3296 } | 2992 } |
| 3297 P._Future__chainFutures(chainSource, listeners); | 2993 P._Future__chainFutures(chainSource, listeners); |
| 3298 return; | 2994 return; |
| 3299 } | 2995 } |
| 3300 if (t3) { | 2996 if (t3) { |
| 3301 listeners0 = listeners._removeListeners$0(); | 2997 listeners0 = listeners._removeListeners$0(); |
| 3302 t2 = t2.listenerValueOrError_2; | 2998 t2 = t2.listenerValueOrError_2; |
| 3303 listeners._state = 4; | 2999 listeners._state = 4; |
| 3304 listeners._resultOrListeners = t2; | 3000 listeners._resultOrListeners = t2; |
| 3305 } else { | 3001 } else { |
| 3306 listeners0 = listeners._removeListeners$0(); | 3002 listeners0 = listeners._removeListeners$0(); |
| 3307 t2 = t2.listenerValueOrError_2; | 3003 asyncError = t2.listenerValueOrError_2; |
| 3004 t2 = J.get$error$x(asyncError); |
| 3005 t3 = asyncError.get$stackTrace(); |
| 3308 listeners._state = 8; | 3006 listeners._state = 8; |
| 3309 listeners._resultOrListeners = t2; | 3007 listeners._resultOrListeners = new P._AsyncError(t2, t3); |
| 3310 } | 3008 } |
| 3311 t1.source_4 = listeners; | 3009 t1.source_4 = listeners; |
| 3312 listeners = listeners0; | 3010 listeners = listeners0; |
| 3313 } | 3011 } |
| 3314 }} | 3012 }} |
| 3315 | 3013 |
| 3316 }, | 3014 }, |
| 3317 | 3015 |
| 3318 _Future__addListener_closure: {"": "Closure;this_0,listener_1", | 3016 _Future__addListener_closure: {"": "Closure;this_0,listener_1", |
| 3319 call$0: function() { | 3017 call$0: function() { |
| 3320 P._Future__propagateToListeners(this.this_0, this.listener_1); | 3018 P._Future__propagateToListeners(this.this_0, this.listener_1); |
| 3321 }, | 3019 } |
| 3322 $is_void_: true | |
| 3323 }, | 3020 }, |
| 3324 | 3021 |
| 3325 _Future__chainFutures_closure: {"": "Closure;target_0", | 3022 _Future__chainFutures_closure: {"": "Closure;target_0", |
| 3326 call$1: function(value) { | 3023 call$1: function(value) { |
| 3327 this.target_0._complete$1(value); | 3024 this.target_0._complete$1(value); |
| 3328 } | 3025 } |
| 3329 }, | 3026 }, |
| 3330 | 3027 |
| 3331 _Future__chainFutures_closure0: {"": "Closure;target_1", | 3028 _Future__chainFutures_closure0: {"": "Closure;target_1", |
| 3029 call$2: function(error, stackTrace) { |
| 3030 this.target_1._completeError$2(error, stackTrace); |
| 3031 }, |
| 3332 call$1: function(error) { | 3032 call$1: function(error) { |
| 3333 this.target_1._completeError$1(error); | 3033 return this.call$2(error, null); |
| 3334 } | 3034 }, |
| 3035 $is_args2: true |
| 3335 }, | 3036 }, |
| 3336 | 3037 |
| 3337 _Future__asyncComplete_closure: {"": "Closure;this_0,value_1", | 3038 _Future__asyncComplete_closure: {"": "Closure;this_0,value_1", |
| 3338 call$0: function() { | 3039 call$0: function() { |
| 3339 this.this_0._complete$1(this.value_1); | 3040 this.this_0._complete$1(this.value_1); |
| 3340 }, | 3041 } |
| 3341 $is_void_: true | |
| 3342 }, | 3042 }, |
| 3343 | 3043 |
| 3344 _Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2", | 3044 _Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2", |
| 3345 call$0: function() { | 3045 call$0: function() { |
| 3346 this.this_0._completeError$2(this.error_1, this.stackTrace_2); | 3046 this.this_0._completeError$2(this.error_1, this.stackTrace_2); |
| 3347 }, | 3047 } |
| 3348 $is_void_: true | |
| 3349 }, | 3048 }, |
| 3350 | 3049 |
| 3351 _Future__propagateToListeners_closure: {"": "Closure;box_2,listener_3", | 3050 _Future__propagateToListeners_closure: {"": "Closure;box_2,listener_3", |
| 3352 call$0: function() { | 3051 call$0: function() { |
| 3353 P._Future__propagateToListeners(this.box_2.source_4, this.listener_3); | 3052 P._Future__propagateToListeners(this.box_2.source_4, this.listener_3); |
| 3354 }, | 3053 } |
| 3355 $is_void_: true | |
| 3356 }, | 3054 }, |
| 3357 | 3055 |
| 3358 _Future__propagateToListeners_closure0: {"": "Closure;box_2,box_1,hasError_4,lis
tener_5", | 3056 _Future__propagateToListeners_closure0: {"": "Closure;box_2,box_1,hasError_4,lis
tener_5", |
| 3359 call$0: function() { | 3057 call$0: function() { |
| 3360 var t1, value, error, test, matchesTest, e, s, t2, t3, t4, exception; | 3058 var t1, value, asyncError, test, matchesTest, errorCallback, e, s, t2, t3, t
4, exception; |
| 3361 t1 = {}; | 3059 t1 = {}; |
| 3362 try { | 3060 try { |
| 3363 t2 = this.box_2; | 3061 t2 = this.box_2; |
| 3364 if (!this.hasError_4) { | 3062 if (!this.hasError_4) { |
| 3365 value = t2.source_4.get$_value(); | 3063 value = t2.source_4.get$_value(); |
| 3366 t2 = this.listener_5; | 3064 t2 = this.listener_5; |
| 3367 t3 = t2._state === 2 ? null : t2._onValueCallback; | 3065 t3 = t2._state === 2 ? null : t2._onValueCallback; |
| 3368 t4 = this.box_1; | 3066 t4 = this.box_1; |
| 3369 if (t3 != null) { | 3067 if (t3 != null) { |
| 3370 t4.listenerValueOrError_2 = t2._onValue$1(value); | 3068 t4.listenerValueOrError_2 = t2._onValue$1(value); |
| 3371 t4.listenerHasValue_1 = true; | 3069 t4.listenerHasValue_1 = true; |
| 3372 } else { | 3070 } else { |
| 3373 t4.listenerValueOrError_2 = value; | 3071 t4.listenerValueOrError_2 = value; |
| 3374 t4.listenerHasValue_1 = true; | 3072 t4.listenerHasValue_1 = true; |
| 3375 } | 3073 } |
| 3376 } else { | 3074 } else { |
| 3377 error = t2.source_4.get$_error(); | 3075 asyncError = t2.source_4.get$_error(); |
| 3378 t2 = this.listener_5; | 3076 t2 = this.listener_5; |
| 3379 test = t2._state === 2 ? null : t2._errorTestCallback; | 3077 test = t2._state === 2 ? null : t2._errorTestCallback; |
| 3380 matchesTest = true; | 3078 matchesTest = true; |
| 3381 if (test != null) | 3079 if (test != null) |
| 3382 matchesTest = test.call$1(error); | 3080 matchesTest = test.call$1(J.get$error$x(asyncError)); |
| 3383 if (matchesTest === true) | 3081 if (matchesTest === true) |
| 3384 t3 = (t2._state === 2 ? null : t2._onErrorCallback) != null; | 3082 t3 = (t2._state === 2 ? null : t2._onErrorCallback) != null; |
| 3385 else | 3083 else |
| 3386 t3 = false; | 3084 t3 = false; |
| 3387 t4 = this.box_1; | |
| 3388 if (t3) { | 3085 if (t3) { |
| 3389 t4.listenerValueOrError_2 = t2._onError$1(error); | 3086 errorCallback = t2._state === 2 ? null : t2._onErrorCallback; |
| 3390 t4.listenerHasValue_1 = true; | 3087 t2 = this.box_1; |
| 3088 t2.listenerValueOrError_2 = P._invokeErrorHandler(errorCallback, J.get
$error$x(asyncError), asyncError.get$stackTrace()); |
| 3089 t2.listenerHasValue_1 = true; |
| 3391 } else { | 3090 } else { |
| 3392 t4.listenerValueOrError_2 = error; | 3091 t2 = this.box_1; |
| 3393 t4.listenerHasValue_1 = false; | 3092 t2.listenerValueOrError_2 = asyncError; |
| 3093 t2.listenerHasValue_1 = false; |
| 3394 } | 3094 } |
| 3395 } | 3095 } |
| 3396 t2 = this.listener_5; | 3096 t2 = this.listener_5; |
| 3397 if ((t2._state === 2 ? null : t2._whenCompleteActionCallback) != null) { | 3097 if ((t2._state === 2 ? null : t2._whenCompleteActionCallback) != null) { |
| 3398 t1.completeResult_0 = t2._whenCompleteAction$0(); | 3098 t1.completeResult_0 = t2._whenCompleteAction$0(); |
| 3399 t3 = t1.completeResult_0; | 3099 t3 = t1.completeResult_0; |
| 3400 t4 = J.getInterceptor(t3); | 3100 t4 = J.getInterceptor(t3); |
| 3401 if (typeof t3 === "object" && t3 !== null && !!t4.$isFuture) { | 3101 if (typeof t3 === "object" && t3 !== null && !!t4.$isFuture) { |
| 3402 t2.set$_isChained(true); | 3102 t2.set$_isChained(true); |
| 3403 t1.completeResult_0.then$2$onError(new P._Future__propagateToListeners
__closure(this.box_2, t2), new P._Future__propagateToListeners__closure0(t1, t2)
); | 3103 t1.completeResult_0.then$2$onError(new P._Future__propagateToListeners
__closure(this.box_2, t2), new P._Future__propagateToListeners__closure0(t1, t2)
); |
| 3404 this.box_1.isPropagationAborted_3 = true; | 3104 this.box_1.isPropagationAborted_3 = true; |
| 3405 } | 3105 } |
| 3406 } | 3106 } |
| 3407 } catch (exception) { | 3107 } catch (exception) { |
| 3408 t1 = H.unwrapException(exception); | 3108 t1 = H.unwrapException(exception); |
| 3409 e = t1; | 3109 e = t1; |
| 3410 s = new H._StackTrace(exception, null); | 3110 s = new H._StackTrace(exception, null); |
| 3411 t1 = this.box_1; | 3111 if (this.hasError_4) { |
| 3412 t1.listenerValueOrError_2 = P._asyncError(e, s); | 3112 t1 = J.get$error$x(this.box_2.source_4.get$_error()); |
| 3413 t1.listenerHasValue_1 = false; | 3113 t2 = e; |
| 3114 t2 = t1 == null ? t2 == null : t1 === t2; |
| 3115 t1 = t2; |
| 3116 } else |
| 3117 t1 = false; |
| 3118 t2 = this.box_1; |
| 3119 if (t1) |
| 3120 t2.listenerValueOrError_2 = this.box_2.source_4.get$_error(); |
| 3121 else |
| 3122 t2.listenerValueOrError_2 = new P._AsyncError(P._asyncError(e, s), s); |
| 3123 this.box_1.listenerHasValue_1 = false; |
| 3414 } | 3124 } |
| 3415 | 3125 |
| 3416 }, | 3126 } |
| 3417 $is_void_: true | |
| 3418 }, | 3127 }, |
| 3419 | 3128 |
| 3420 _Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6", | 3129 _Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6", |
| 3421 call$1: function(ignored) { | 3130 call$1: function(ignored) { |
| 3422 P._Future__propagateToListeners(this.box_2.source_4, this.listener_6); | 3131 P._Future__propagateToListeners(this.box_2.source_4, this.listener_6); |
| 3423 } | 3132 } |
| 3424 }, | 3133 }, |
| 3425 | 3134 |
| 3426 _Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7", | 3135 _Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7", |
| 3427 call$1: function(error) { | 3136 call$2: function(error, stackTrace) { |
| 3428 var t1, t2, t3; | 3137 var t1, t2, t3; |
| 3429 t1 = this.box_0; | 3138 t1 = this.box_0; |
| 3430 t2 = t1.completeResult_0; | 3139 t2 = t1.completeResult_0; |
| 3431 t3 = J.getInterceptor(t2); | 3140 t3 = J.getInterceptor(t2); |
| 3432 if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) { | 3141 if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) { |
| 3433 t1.completeResult_0 = P._Future$(null); | 3142 t1.completeResult_0 = P._Future$(null); |
| 3434 t1.completeResult_0._setError$1(error); | 3143 t1.completeResult_0._setError$2(error, stackTrace); |
| 3435 } | 3144 } |
| 3436 P._Future__propagateToListeners(t1.completeResult_0, this.listener_7); | 3145 P._Future__propagateToListeners(t1.completeResult_0, this.listener_7); |
| 3437 } | 3146 }, |
| 3147 call$1: function(error) { |
| 3148 return this.call$2(error, null); |
| 3149 }, |
| 3150 $is_args2: true |
| 3438 }, | 3151 }, |
| 3439 | 3152 |
| 3440 Stream: {"": "Object;", | 3153 Stream: {"": "Object;", |
| 3441 map$1: function(_, convert) { | |
| 3442 var t1 = new P._MapStream(convert, this); | |
| 3443 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "Stream", 0), null]
); | |
| 3444 return t1; | |
| 3445 }, | |
| 3446 forEach$1: function(_, action) { | 3154 forEach$1: function(_, action) { |
| 3447 var t1, future; | 3155 var t1, future; |
| 3448 t1 = {}; | 3156 t1 = {}; |
| 3449 future = P._Future$(null); | 3157 future = P._Future$(null); |
| 3450 t1.subscription_0 = null; | 3158 t1.subscription_0 = null; |
| 3451 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(f
uture), future.get$_completeError()); | 3159 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(f
uture), future.get$_completeError()); |
| 3452 return future; | 3160 return future; |
| 3453 }, | 3161 }, |
| 3454 get$length: function(_) { | 3162 get$length: function(_) { |
| 3455 var t1, future; | 3163 var t1, future; |
| 3456 t1 = {}; | 3164 t1 = {}; |
| 3457 future = P._Future$(J.JSInt); | 3165 future = P._Future$(J.JSInt); |
| 3458 t1.count_0 = 0; | 3166 t1.count_0 = 0; |
| 3459 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1),
true, new P.Stream_length_closure0(t1, future), future.get$_completeError()); | 3167 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1),
true, new P.Stream_length_closure0(t1, future), future.get$_completeError()); |
| 3460 return future; | 3168 return future; |
| 3461 }, | |
| 3462 toList$0: function(_) { | |
| 3463 var result, future; | |
| 3464 result = []; | |
| 3465 future = P._Future$([J.JSArray, H.getRuntimeTypeArgument(this, "Stream", 0)]
); | |
| 3466 this.listen$4$cancelOnError$onDone$onError(new P.Stream_toList_closure(this,
result), true, new P.Stream_toList_closure0(result, future), future.get$_comple
teError()); | |
| 3467 return future; | |
| 3468 } | 3169 } |
| 3469 }, | 3170 }, |
| 3470 | 3171 |
| 3471 Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3", | 3172 Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3", |
| 3472 call$1: function(element) { | 3173 call$1: function(element) { |
| 3473 P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.
Stream_forEach__closure0(), P._cancelAndError(this.box_0.subscription_0, this.fu
ture_3)); | 3174 P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.
Stream_forEach__closure0(), P._cancelAndError(this.box_0.subscription_0, this.fu
ture_3)); |
| 3474 } | 3175 } |
| 3475 }, | 3176 }, |
| 3476 | 3177 |
| 3477 Stream_forEach__closure: {"": "Closure;action_4,element_5", | 3178 Stream_forEach__closure: {"": "Closure;action_4,element_5", |
| 3478 call$0: function() { | 3179 call$0: function() { |
| 3479 return this.action_4.call$1(this.element_5); | 3180 return this.action_4.call$1(this.element_5); |
| 3480 }, | 3181 } |
| 3481 $is_void_: true | |
| 3482 }, | 3182 }, |
| 3483 | 3183 |
| 3484 Stream_forEach__closure0: {"": "Closure;", | 3184 Stream_forEach__closure0: {"": "Closure;", |
| 3485 call$1: function(_) { | 3185 call$1: function(_) { |
| 3486 } | 3186 } |
| 3487 }, | 3187 }, |
| 3488 | 3188 |
| 3489 Stream_forEach_closure0: {"": "Closure;future_6", | 3189 Stream_forEach_closure0: {"": "Closure;future_6", |
| 3490 call$0: function() { | 3190 call$0: function() { |
| 3491 this.future_6._complete$1(null); | 3191 this.future_6._complete$1(null); |
| 3492 }, | 3192 } |
| 3493 $is_void_: true | |
| 3494 }, | 3193 }, |
| 3495 | 3194 |
| 3496 Stream_length_closure: {"": "Closure;box_0", | 3195 Stream_length_closure: {"": "Closure;box_0", |
| 3497 call$1: function(_) { | 3196 call$1: function(_) { |
| 3498 var t1 = this.box_0; | 3197 var t1 = this.box_0; |
| 3499 t1.count_0 = t1.count_0 + 1; | 3198 t1.count_0 = t1.count_0 + 1; |
| 3500 } | 3199 } |
| 3501 }, | 3200 }, |
| 3502 | 3201 |
| 3503 Stream_length_closure0: {"": "Closure;box_0,future_1", | 3202 Stream_length_closure0: {"": "Closure;box_0,future_1", |
| 3504 call$0: function() { | 3203 call$0: function() { |
| 3505 this.future_1._complete$1(this.box_0.count_0); | 3204 this.future_1._complete$1(this.box_0.count_0); |
| 3506 }, | 3205 } |
| 3507 $is_void_: true | 3206 }, |
| 3508 }, | 3207 |
| 3509 | 3208 StreamSubscription: {"": "Object;"}, |
| 3510 Stream_toList_closure: {"": "Closure;this_0,result_1", | 3209 |
| 3511 call$1: function(data) { | 3210 EventSink: {"": "Object;"}, |
| 3512 this.result_1.push(data); | 3211 |
| 3513 } | 3212 _StreamController: {"": "Object;", |
| 3514 }, | 3213 get$_pendingEvents: function() { |
| 3515 | 3214 if ((this._state & 8) === 0) |
| 3516 Stream_toList_closure0: {"": "Closure;result_2,future_3", | 3215 return this._varData; |
| 3216 return this._varData.get$varData(); |
| 3217 }, |
| 3218 _ensurePendingEvents$0: function() { |
| 3219 if ((this._state & 8) === 0) { |
| 3220 if (this._varData == null) |
| 3221 this._varData = new P._StreamImplEvents(null, null, 0); |
| 3222 return this._varData; |
| 3223 } |
| 3224 var t1 = this._varData.get$varData(); |
| 3225 return t1; |
| 3226 }, |
| 3227 get$_subscription: function() { |
| 3228 if ((this._state & 8) !== 0) |
| 3229 return this._varData.get$varData(); |
| 3230 return this._varData; |
| 3231 }, |
| 3232 _badEventState$0: function() { |
| 3233 if ((this._state & 4) !== 0) |
| 3234 return new P.StateError("Cannot add event after closing"); |
| 3235 return new P.StateError("Cannot add event while adding a stream"); |
| 3236 }, |
| 3237 add$1: function(_, value) { |
| 3238 if (this._state >= 4) |
| 3239 throw H.wrapException(this._badEventState$0()); |
| 3240 this._async$_add$1(value); |
| 3241 }, |
| 3242 addError$2: function(error, stackTrace) { |
| 3243 if (this._state >= 4) |
| 3244 throw H.wrapException(this._badEventState$0()); |
| 3245 this._addError$2(error, stackTrace); |
| 3246 }, |
| 3247 addError$1: function(error) { |
| 3248 return this.addError$2(error, null); |
| 3249 }, |
| 3250 _async$_add$1: function(value) { |
| 3251 var t1 = this._state; |
| 3252 if ((t1 & 1) !== 0) |
| 3253 this._sendData$1(value); |
| 3254 else if ((t1 & 3) === 0) { |
| 3255 t1 = this._ensurePendingEvents$0(); |
| 3256 t1.add$1(t1, new P._DelayedData(value, null)); |
| 3257 } |
| 3258 }, |
| 3259 _addError$2: function(error, stackTrace) { |
| 3260 var t1 = this._state; |
| 3261 if ((t1 & 1) !== 0) |
| 3262 this._sendError$2(error, stackTrace); |
| 3263 else if ((t1 & 3) === 0) { |
| 3264 t1 = this._ensurePendingEvents$0(); |
| 3265 t1.add$1(t1, new P._DelayedError(error, stackTrace, null)); |
| 3266 } |
| 3267 }, |
| 3268 _subscribe$1: function(cancelOnError) { |
| 3269 var t1, t2, subscription, pendingEvents; |
| 3270 if ((this._state & 3) !== 0) |
| 3271 throw H.wrapException(P.StateError$("Stream has already been listened to."
)); |
| 3272 t1 = $.Zone__current; |
| 3273 t2 = cancelOnError ? 1 : 0; |
| 3274 subscription = new P._ControllerSubscription(this, null, null, null, t1, t2,
null); |
| 3275 H.setRuntimeTypeInfo(subscription, [null]); |
| 3276 pendingEvents = this.get$_pendingEvents(); |
| 3277 this._state = (this._state | 1) >>> 0; |
| 3278 if ((this._state & 8) !== 0) |
| 3279 this._varData.set$varData(subscription); |
| 3280 else |
| 3281 this._varData = subscription; |
| 3282 subscription._setPendingEvents$1(pendingEvents); |
| 3283 subscription._guardCallback$1(new P._StreamController__subscribe_closure(thi
s)); |
| 3284 return subscription; |
| 3285 }, |
| 3286 _recordCancel$1: function(subscription) { |
| 3287 var t1; |
| 3288 if ((this._state & 8) !== 0) |
| 3289 this._varData.cancel$0(); |
| 3290 this._varData = null; |
| 3291 this._state = (this._state & 4294967286 | 2) >>> 0; |
| 3292 P._runGuarded(this.get$_onCancel()); |
| 3293 t1 = this._doneFuture; |
| 3294 if (t1 != null && t1._state === 0) |
| 3295 t1._asyncComplete$1(null); |
| 3296 } |
| 3297 }, |
| 3298 |
| 3299 _StreamController__subscribe_closure: {"": "Closure;this_0", |
| 3517 call$0: function() { | 3300 call$0: function() { |
| 3518 this.future_3._complete$1(this.result_2); | 3301 P._runGuarded(this.this_0.get$_onListen()); |
| 3519 }, | 3302 } |
| 3520 $is_void_: true | 3303 }, |
| 3521 }, | 3304 |
| 3522 | 3305 _SyncStreamControllerDispatch: {"": "Object;", |
| 3523 StreamSubscription: {"": "Object;"}, | 3306 _sendData$1: function(data) { |
| 3524 | 3307 this.get$_subscription()._async$_add$1(data); |
| 3525 EventSink: {"": "Object;"}, | 3308 }, |
| 3309 _sendError$2: function(error, stackTrace) { |
| 3310 this.get$_subscription()._addError$2(error, stackTrace); |
| 3311 } |
| 3312 }, |
| 3313 |
| 3314 _AsyncStreamControllerDispatch: {"": "Object;", |
| 3315 _sendData$1: function(data) { |
| 3316 this.get$_subscription()._addPending$1(new P._DelayedData(data, null)); |
| 3317 }, |
| 3318 _sendError$2: function(error, stackTrace) { |
| 3319 this.get$_subscription()._addPending$1(new P._DelayedError(error, stackTrace
, null)); |
| 3320 } |
| 3321 }, |
| 3322 |
| 3323 _AsyncStreamController: {"": "_StreamController__AsyncStreamControllerDispatch;_
onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, |
| 3324 |
| 3325 _StreamController__AsyncStreamControllerDispatch: {"": "_StreamController+_Async
StreamControllerDispatch;"}, |
| 3326 |
| 3327 _SyncStreamController: {"": "_StreamController__SyncStreamControllerDispatch;_on
Listen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, |
| 3328 |
| 3329 _StreamController__SyncStreamControllerDispatch: {"": "_StreamController+_SyncSt
reamControllerDispatch;"}, |
| 3330 |
| 3331 _ControllerStream: {"": "_StreamImpl;_controller", |
| 3332 _createSubscription$1: function(cancelOnError) { |
| 3333 return this._controller._subscribe$1(cancelOnError); |
| 3334 }, |
| 3335 get$hashCode: function(_) { |
| 3336 return (H.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0; |
| 3337 }, |
| 3338 $eq: function(_, other) { |
| 3339 var t1; |
| 3340 if (other == null) |
| 3341 return false; |
| 3342 if (this === other) |
| 3343 return true; |
| 3344 t1 = J.getInterceptor(other); |
| 3345 if (typeof other !== "object" || other === null || !t1.$is_ControllerStream) |
| 3346 return false; |
| 3347 return other._controller === this._controller; |
| 3348 }, |
| 3349 $is_ControllerStream: true, |
| 3350 $as_StreamImpl: null |
| 3351 }, |
| 3352 |
| 3353 _ControllerSubscription: {"": "_BufferingStreamSubscription;_controller,_onData,
_onError,_onDone,_zone,_state,_pending", |
| 3354 _onCancel$0: function() { |
| 3355 this._controller._recordCancel$1(this); |
| 3356 }, |
| 3357 _onPause$0: function() { |
| 3358 var t1, addState; |
| 3359 t1 = this._controller; |
| 3360 if ((t1._state & 8) !== 0) { |
| 3361 addState = t1._varData; |
| 3362 addState.pause$0(addState); |
| 3363 } |
| 3364 P._runGuarded(t1.get$_onPause()); |
| 3365 }, |
| 3366 get$_onPause: function() { |
| 3367 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onPau
se$0, null, "_onPause$0"); |
| 3368 }, |
| 3369 _onResume$0: function() { |
| 3370 var t1 = this._controller; |
| 3371 if ((t1._state & 8) !== 0) |
| 3372 t1._varData.resume$0(); |
| 3373 P._runGuarded(t1.get$_onResume()); |
| 3374 }, |
| 3375 get$_onResume: function() { |
| 3376 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onRes
ume$0, null, "_onResume$0"); |
| 3377 }, |
| 3378 $as_BufferingStreamSubscription: null |
| 3379 }, |
| 3526 | 3380 |
| 3527 _EventSink: {"": "Object;"}, | 3381 _EventSink: {"": "Object;"}, |
| 3528 | 3382 |
| 3529 _BufferingStreamSubscription: {"": "Object;_zone<", | 3383 _BufferingStreamSubscription: {"": "Object;_onData,_onError,_onDone,_zone<,_stat
e,_pending", |
| 3384 _setPendingEvents$1: function(pendingEvents) { |
| 3385 if (pendingEvents == null) |
| 3386 return; |
| 3387 this._pending = pendingEvents; |
| 3388 if (!pendingEvents.get$isEmpty(pendingEvents)) { |
| 3389 this._state = (this._state | 32) >>> 0; |
| 3390 this._pending.schedule$1(this); |
| 3391 } |
| 3392 }, |
| 3393 onData$1: function(handleData) { |
| 3394 $.Zone__current.toString; |
| 3395 this._onData = handleData; |
| 3396 }, |
| 3397 onError$1: function(_, handleError) { |
| 3398 this._onError = P._registerErrorHandler(handleError, $.Zone__current); |
| 3399 }, |
| 3400 onDone$1: function(handleDone) { |
| 3401 if (handleDone == null) |
| 3402 handleDone = P._nullDoneHandler$closure; |
| 3403 $.Zone__current.toString; |
| 3404 this._onDone = handleDone; |
| 3405 }, |
| 3530 pause$1: function(_, resumeSignal) { | 3406 pause$1: function(_, resumeSignal) { |
| 3531 var t1, t2; | 3407 var t1 = this._state; |
| 3532 t1 = this._state; | |
| 3533 if ((t1 & 8) !== 0) | 3408 if ((t1 & 8) !== 0) |
| 3534 return; | 3409 return; |
| 3535 this._state = (t1 + 64 | 4) >>> 0; | 3410 this._state = (t1 + 64 | 4) >>> 0; |
| 3536 if (t1 < 64 && this._pending != null) { | 3411 if (t1 < 64 && this._pending != null) |
| 3537 t2 = this._pending; | 3412 this._pending.cancelSchedule$0(); |
| 3538 if (t2._state === 1) | |
| 3539 t2._state = 3; | |
| 3540 } | |
| 3541 if ((t1 & 4) === 0 && (this._state & 16) === 0) | 3413 if ((t1 & 4) === 0 && (this._state & 16) === 0) |
| 3542 this._guardCallback$1(this.get$_onPause()); | 3414 this._guardCallback$1(this.get$_onPause()); |
| 3543 }, | 3415 }, |
| 3544 pause$0: function($receiver) { | 3416 pause$0: function($receiver) { |
| 3545 return this.pause$1($receiver, null); | 3417 return this.pause$1($receiver, null); |
| 3546 }, | 3418 }, |
| 3547 resume$0: function() { | 3419 resume$0: function() { |
| 3548 var t1 = this._state; | 3420 var t1, t2; |
| 3421 t1 = this._state; |
| 3549 if ((t1 & 8) !== 0) | 3422 if ((t1 & 8) !== 0) |
| 3550 return; | 3423 return; |
| 3551 if (t1 >= 64) { | 3424 if (t1 >= 64) { |
| 3552 this._state = t1 - 64; | 3425 this._state = t1 - 64; |
| 3553 t1 = this._state; | 3426 t1 = this._state; |
| 3554 if (t1 < 64) | 3427 if (t1 < 64) { |
| 3555 if ((t1 & 32) !== 0 && this._pending.lastPendingEvent != null) | 3428 if ((t1 & 32) !== 0) { |
| 3429 t2 = this._pending; |
| 3430 t2 = !t2.get$isEmpty(t2); |
| 3431 } else |
| 3432 t2 = false; |
| 3433 if (t2) |
| 3556 this._pending.schedule$1(this); | 3434 this._pending.schedule$1(this); |
| 3557 else { | 3435 else { |
| 3558 this._state = (t1 & 4294967291) >>> 0; | 3436 this._state = (t1 & 4294967291) >>> 0; |
| 3559 if ((this._state & 16) === 0) | 3437 if ((this._state & 16) === 0) |
| 3560 this._guardCallback$1(this.get$_onResume()); | 3438 this._guardCallback$1(this.get$_onResume()); |
| 3561 } | 3439 } |
| 3440 } |
| 3562 } | 3441 } |
| 3563 }, | 3442 }, |
| 3564 cancel$0: function() { | 3443 cancel$0: function() { |
| 3565 if ((this._state & 8) !== 0) | 3444 if ((this._state & 8) !== 0) |
| 3566 return; | 3445 return; |
| 3567 this._cancel$0(); | 3446 this._cancel$0(); |
| 3568 var t1 = this._state; | 3447 var t1 = this._state; |
| 3569 if ((t1 & 16) === 0) { | 3448 if ((t1 & 16) === 0) { |
| 3570 this._state = (t1 | 16) >>> 0; | 3449 this._state = (t1 | 16) >>> 0; |
| 3571 this._onCancel$0(); | 3450 this._onCancel$0(); |
| 3572 this._pending = null; | 3451 this._pending = null; |
| 3573 this._state = (this._state & 4294967279) >>> 0; | 3452 this._state = (this._state & 4294967279) >>> 0; |
| 3574 } | 3453 } |
| 3575 }, | 3454 }, |
| 3576 get$_mayResumeInput: function() { | 3455 get$_mayResumeInput: function() { |
| 3577 if (this._state < 64) { | 3456 if (this._state < 64) { |
| 3578 var t1 = this._pending; | 3457 var t1 = this._pending; |
| 3579 t1 = t1 == null || t1.lastPendingEvent == null; | 3458 t1 = t1 == null || t1.get$isEmpty(t1); |
| 3580 } else | 3459 } else |
| 3581 t1 = false; | 3460 t1 = false; |
| 3582 return t1; | 3461 return t1; |
| 3583 }, | 3462 }, |
| 3584 _cancel$0: function() { | 3463 _cancel$0: function() { |
| 3585 this._state = (this._state | 8) >>> 0; | 3464 this._state = (this._state | 8) >>> 0; |
| 3586 if ((this._state & 32) !== 0) { | 3465 if ((this._state & 32) !== 0) |
| 3587 var t1 = this._pending; | 3466 this._pending.cancelSchedule$0(); |
| 3588 if (t1._state === 1) | |
| 3589 t1._state = 3; | |
| 3590 } | |
| 3591 }, | 3467 }, |
| 3592 _async$_add$1: function(data) { | 3468 _async$_add$1: function(data) { |
| 3593 var t1 = this._state; | 3469 var t1 = this._state; |
| 3594 if ((t1 & 8) !== 0) | 3470 if ((t1 & 8) !== 0) |
| 3595 return; | 3471 return; |
| 3596 if (t1 < 16) | 3472 if (t1 < 16) |
| 3597 this._sendData$1(data); | 3473 this._sendData$1(data); |
| 3598 else | 3474 else |
| 3599 this._addPending$1(new P._DelayedData(data, null)); | 3475 this._addPending$1(new P._DelayedData(data, null)); |
| 3600 }, | 3476 }, |
| 3601 _addError$1: function(error) { | 3477 _addError$2: function(error, stackTrace) { |
| 3602 var t1 = this._state; | 3478 var t1 = this._state; |
| 3603 if ((t1 & 8) !== 0) | 3479 if ((t1 & 8) !== 0) |
| 3604 return; | 3480 return; |
| 3605 if (t1 < 16) | 3481 if (t1 < 16) |
| 3606 this._sendError$1(error); | 3482 this._sendError$2(error, stackTrace); |
| 3607 else | 3483 else |
| 3608 this._addPending$1(new P._DelayedError(error, null)); | 3484 this._addPending$1(new P._DelayedError(error, stackTrace, null)); |
| 3609 }, | |
| 3610 _close$0: function() { | |
| 3611 var t1 = this._state; | |
| 3612 if ((t1 & 8) !== 0) | |
| 3613 return; | |
| 3614 this._state = (t1 | 2) >>> 0; | |
| 3615 if (this._state < 16) | |
| 3616 this._sendDone$0(); | |
| 3617 else | |
| 3618 this._addPending$1(C.C__DelayedDone); | |
| 3619 }, | 3485 }, |
| 3620 _onPause$0: function() { | 3486 _onPause$0: function() { |
| 3621 }, | 3487 }, |
| 3622 get$_onPause: function() { | 3488 get$_onPause: function() { |
| 3623 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onPause$0, null, "_onPause$0"); | 3489 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onPause$0, null, "_onPause$0"); |
| 3624 }, | 3490 }, |
| 3625 _onResume$0: function() { | 3491 _onResume$0: function() { |
| 3626 }, | 3492 }, |
| 3627 get$_onResume: function() { | 3493 get$_onResume: function() { |
| 3628 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onResume$0, null, "_onResume$0"); | 3494 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onResume$0, null, "_onResume$0"); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3640 t1 = this._state; | 3506 t1 = this._state; |
| 3641 if ((t1 & 32) === 0) { | 3507 if ((t1 & 32) === 0) { |
| 3642 this._state = (t1 | 32) >>> 0; | 3508 this._state = (t1 | 32) >>> 0; |
| 3643 if (this._state < 64) | 3509 if (this._state < 64) |
| 3644 this._pending.schedule$1(this); | 3510 this._pending.schedule$1(this); |
| 3645 } | 3511 } |
| 3646 }, | 3512 }, |
| 3647 _sendData$1: function(data) { | 3513 _sendData$1: function(data) { |
| 3648 var t1 = this._state; | 3514 var t1 = this._state; |
| 3649 this._state = (t1 | 16) >>> 0; | 3515 this._state = (t1 | 16) >>> 0; |
| 3650 this._zone.runUnaryGuarded$2(this._async$_onData, data); | 3516 this._zone.runUnaryGuarded$2(this._onData, data); |
| 3651 this._state = (this._state & 4294967279) >>> 0; | 3517 this._state = (this._state & 4294967279) >>> 0; |
| 3652 this._checkState$1((t1 & 4) !== 0); | 3518 this._checkState$1((t1 & 4) !== 0); |
| 3653 }, | 3519 }, |
| 3654 _sendError$1: function(error) { | 3520 _sendError$2: function(error, stackTrace) { |
| 3655 var t1, t2; | 3521 var t1, t2, t3, t4; |
| 3656 t1 = this._state; | 3522 t1 = this._state; |
| 3657 this._state = (t1 | 16) >>> 0; | 3523 this._state = (t1 | 16) >>> 0; |
| 3658 t2 = this._zone; | 3524 t2 = this._zone; |
| 3659 if (!t2.inSameErrorZone$1($.Zone__current)) | 3525 t3 = $.Zone__current; |
| 3660 $.Zone__current.handleUncaughtError$1(error); | 3526 t2.toString; |
| 3661 else | 3527 t3.toString; |
| 3662 t2.runUnaryGuarded$2(this._onError, error); | 3528 if (t3 == null ? t2 != null : t3 !== t2) |
| 3529 P._rootHandleUncaughtError(t3, null, t3, error, stackTrace); |
| 3530 else { |
| 3531 t3 = this._onError; |
| 3532 t4 = J.getInterceptor(t3); |
| 3533 if (!!t4.$is_args2) |
| 3534 t2.runBinaryGuarded$3(t3, error, stackTrace); |
| 3535 else |
| 3536 t2.runUnaryGuarded$2(t3, error); |
| 3537 } |
| 3663 this._state = (this._state & 4294967279) >>> 0; | 3538 this._state = (this._state & 4294967279) >>> 0; |
| 3664 if ((this._state & 1) !== 0) | 3539 if ((this._state & 1) !== 0) |
| 3665 this._cancel$0(); | 3540 this._cancel$0(); |
| 3666 this._checkState$1((t1 & 4) !== 0); | 3541 this._checkState$1((t1 & 4) !== 0); |
| 3667 }, | 3542 }, |
| 3668 _sendDone$0: function() { | |
| 3669 this._state = (this._state | 26) >>> 0; | |
| 3670 this._zone.runGuarded$1(this._onDone); | |
| 3671 this._onCancel$0(); | |
| 3672 this._state = (this._state & 4294967279) >>> 0; | |
| 3673 }, | |
| 3674 _guardCallback$1: function(callback) { | 3543 _guardCallback$1: function(callback) { |
| 3675 var t1 = this._state; | 3544 var t1 = this._state; |
| 3676 this._state = (t1 | 16) >>> 0; | 3545 this._state = (t1 | 16) >>> 0; |
| 3677 callback.call$0(); | 3546 callback.call$0(); |
| 3678 this._state = (this._state & 4294967279) >>> 0; | 3547 this._state = (this._state & 4294967279) >>> 0; |
| 3679 this._checkState$1((t1 & 4) !== 0); | 3548 this._checkState$1((t1 & 4) !== 0); |
| 3680 }, | 3549 }, |
| 3681 _checkState$1: function(wasInputPaused) { | 3550 _checkState$1: function(wasInputPaused) { |
| 3682 var t1, isInputPaused; | 3551 var t1, t2, isInputPaused; |
| 3683 t1 = this._state; | 3552 t1 = this._state; |
| 3684 if ((t1 & 32) !== 0 && this._pending.lastPendingEvent == null) { | 3553 if ((t1 & 32) !== 0) { |
| 3554 t2 = this._pending; |
| 3555 t2 = t2.get$isEmpty(t2); |
| 3556 } else |
| 3557 t2 = false; |
| 3558 if (t2) { |
| 3685 this._state = (t1 & 4294967263) >>> 0; | 3559 this._state = (t1 & 4294967263) >>> 0; |
| 3686 if ((this._state & 4) !== 0 && this.get$_mayResumeInput()) | 3560 if ((this._state & 4) !== 0 && this.get$_mayResumeInput()) |
| 3687 this._state = (this._state & 4294967291) >>> 0; | 3561 this._state = (this._state & 4294967291) >>> 0; |
| 3688 } | 3562 } |
| 3689 for (; true; wasInputPaused = isInputPaused) { | 3563 for (; true; wasInputPaused = isInputPaused) { |
| 3690 t1 = this._state; | 3564 t1 = this._state; |
| 3691 if ((t1 & 8) !== 0) { | 3565 if ((t1 & 8) !== 0) { |
| 3692 this._onCancel$0(); | 3566 this._onCancel$0(); |
| 3693 this._pending = null; | 3567 this._pending = null; |
| 3694 return; | 3568 return; |
| 3695 } | 3569 } |
| 3696 isInputPaused = (t1 & 4) !== 0; | 3570 isInputPaused = (t1 & 4) !== 0; |
| 3697 if (wasInputPaused === isInputPaused) | 3571 if (wasInputPaused === isInputPaused) |
| 3698 break; | 3572 break; |
| 3699 this._state = (t1 ^ 16) >>> 0; | 3573 this._state = (t1 ^ 16) >>> 0; |
| 3700 if (isInputPaused) | 3574 if (isInputPaused) |
| 3701 this._onPause$0(); | 3575 this._onPause$0(); |
| 3702 else | 3576 else |
| 3703 this._onResume$0(); | 3577 this._onResume$0(); |
| 3704 this._state = (this._state & 4294967279) >>> 0; | 3578 this._state = (this._state & 4294967279) >>> 0; |
| 3705 } | 3579 } |
| 3706 t1 = this._state; | 3580 t1 = this._state; |
| 3707 if ((t1 & 32) !== 0 && t1 < 64) | 3581 if ((t1 & 32) !== 0 && t1 < 64) |
| 3708 this._pending.schedule$1(this); | 3582 this._pending.schedule$1(this); |
| 3709 }, | 3583 }, |
| 3710 _BufferingStreamSubscription$4: function(onData, onError, onDone, cancelOnErro
r) { | 3584 static: { |
| 3711 } | 3585 "": "_BufferingStreamSubscription__STATE_CANCEL_ON_ERROR,_BufferingStreamSubscri
ption__STATE_CLOSED,_BufferingStreamSubscription__STATE_INPUT_PAUSED,_BufferingS
treamSubscription__STATE_CANCELED,_BufferingStreamSubscription__STATE_IN_CALLBAC
K,_BufferingStreamSubscription__STATE_HAS_PENDING,_BufferingStreamSubscription__
STATE_PAUSE_COUNT,_BufferingStreamSubscription__STATE_PAUSE_COUNT_SHIFT", |
| 3586 } |
| 3587 |
| 3588 }, |
| 3589 |
| 3590 _StreamImpl: {"": "Stream;", |
| 3591 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { |
| 3592 var subscription = this._createSubscription$1(true === cancelOnError); |
| 3593 subscription.onData$1(onData); |
| 3594 subscription.onError$1(subscription, onError); |
| 3595 subscription.onDone$1(onDone); |
| 3596 return subscription; |
| 3597 }, |
| 3598 listen$2$onError: function(onData, onError) { |
| 3599 return this.listen$4$cancelOnError$onDone$onError(onData, null, null, onErro
r); |
| 3600 }, |
| 3601 _createSubscription$1: function(cancelOnError) { |
| 3602 var t1, t2; |
| 3603 t1 = $.Zone__current; |
| 3604 t2 = cancelOnError ? 1 : 0; |
| 3605 return new P._BufferingStreamSubscription(null, null, null, t1, t2, null); |
| 3606 }, |
| 3607 $asStream: null |
| 3712 }, | 3608 }, |
| 3713 | 3609 |
| 3714 _DelayedEvent: {"": "Object;next@"}, | 3610 _DelayedEvent: {"": "Object;next@"}, |
| 3715 | 3611 |
| 3716 _DelayedData: {"": "_DelayedEvent;value,next", | 3612 _DelayedData: {"": "_DelayedEvent;value,next", |
| 3717 perform$1: function(dispatch) { | 3613 perform$1: function(dispatch) { |
| 3718 dispatch._sendData$1(this.value); | 3614 dispatch._sendData$1(this.value); |
| 3719 } | 3615 } |
| 3720 }, | 3616 }, |
| 3721 | 3617 |
| 3722 _DelayedError: {"": "_DelayedEvent;error,next", | 3618 _DelayedError: {"": "_DelayedEvent;error>,stackTrace<,next", |
| 3723 perform$1: function(dispatch) { | 3619 perform$1: function(dispatch) { |
| 3724 dispatch._sendError$1(this.error); | 3620 dispatch._sendError$2(this.error, this.stackTrace); |
| 3725 } | 3621 } |
| 3726 }, | 3622 }, |
| 3727 | 3623 |
| 3728 _DelayedDone: {"": "Object;", | |
| 3729 perform$1: function(dispatch) { | |
| 3730 dispatch._sendDone$0(); | |
| 3731 }, | |
| 3732 get$next: function() { | |
| 3733 return; | |
| 3734 }, | |
| 3735 set$next: function(_) { | |
| 3736 throw H.wrapException(new P.StateError("No events after a done.")); | |
| 3737 } | |
| 3738 }, | |
| 3739 | |
| 3740 _PendingEvents: {"": "Object;", | 3624 _PendingEvents: {"": "Object;", |
| 3741 schedule$1: function(dispatch) { | 3625 schedule$1: function(dispatch) { |
| 3742 var t1 = this._state; | 3626 var t1 = this._state; |
| 3743 if (t1 === 1) | 3627 if (t1 === 1) |
| 3744 return; | 3628 return; |
| 3745 if (t1 >= 1) { | 3629 if (t1 >= 1) { |
| 3746 this._state = 1; | 3630 this._state = 1; |
| 3747 return; | 3631 return; |
| 3748 } | 3632 } |
| 3749 P.runAsync(new P._PendingEvents_schedule_closure(this, dispatch)); | 3633 P.scheduleMicrotask(new P._PendingEvents_schedule_closure(this, dispatch)); |
| 3750 this._state = 1; | 3634 this._state = 1; |
| 3635 }, |
| 3636 cancelSchedule$0: function() { |
| 3637 if (this._state === 1) |
| 3638 this._state = 3; |
| 3751 } | 3639 } |
| 3752 }, | 3640 }, |
| 3753 | 3641 |
| 3754 _PendingEvents_schedule_closure: {"": "Closure;this_0,dispatch_1", | 3642 _PendingEvents_schedule_closure: {"": "Closure;this_0,dispatch_1", |
| 3755 call$0: function() { | 3643 call$0: function() { |
| 3756 var t1, oldState; | 3644 var t1, oldState; |
| 3757 t1 = this.this_0; | 3645 t1 = this.this_0; |
| 3758 oldState = t1._state; | 3646 oldState = t1._state; |
| 3759 t1._state = 0; | 3647 t1._state = 0; |
| 3760 if (oldState === 3) | 3648 if (oldState === 3) |
| 3761 return; | 3649 return; |
| 3762 t1.handleNext$1(this.dispatch_1); | 3650 t1.handleNext$1(this.dispatch_1); |
| 3763 }, | 3651 } |
| 3764 $is_void_: true | |
| 3765 }, | 3652 }, |
| 3766 | 3653 |
| 3767 _StreamImplEvents: {"": "_PendingEvents;firstPendingEvent,lastPendingEvent,_stat
e", | 3654 _StreamImplEvents: {"": "_PendingEvents;firstPendingEvent,lastPendingEvent,_stat
e", |
| 3655 get$isEmpty: function(_) { |
| 3656 return this.lastPendingEvent == null; |
| 3657 }, |
| 3768 add$1: function(_, $event) { | 3658 add$1: function(_, $event) { |
| 3769 var t1 = this.lastPendingEvent; | 3659 var t1 = this.lastPendingEvent; |
| 3770 if (t1 == null) { | 3660 if (t1 == null) { |
| 3771 this.lastPendingEvent = $event; | 3661 this.lastPendingEvent = $event; |
| 3772 this.firstPendingEvent = $event; | 3662 this.firstPendingEvent = $event; |
| 3773 } else { | 3663 } else { |
| 3774 t1.set$next($event); | 3664 t1.set$next($event); |
| 3775 this.lastPendingEvent = $event; | 3665 this.lastPendingEvent = $event; |
| 3776 } | 3666 } |
| 3777 }, | 3667 }, |
| 3778 handleNext$1: function(dispatch) { | 3668 handleNext$1: function(dispatch) { |
| 3779 var $event = this.firstPendingEvent; | 3669 var $event = this.firstPendingEvent; |
| 3780 this.firstPendingEvent = $event.get$next(); | 3670 this.firstPendingEvent = $event.get$next(); |
| 3781 if (this.firstPendingEvent == null) | 3671 if (this.firstPendingEvent == null) |
| 3782 this.lastPendingEvent = null; | 3672 this.lastPendingEvent = null; |
| 3783 $event.perform$1(dispatch); | 3673 $event.perform$1(dispatch); |
| 3784 } | 3674 } |
| 3785 }, | 3675 }, |
| 3786 | 3676 |
| 3787 _cancelAndError_closure: {"": "Closure;subscription_0,future_1", | 3677 _cancelAndError_closure: {"": "Closure;subscription_0,future_1", |
| 3788 call$1: function(error) { | 3678 call$2: function(error, stackTrace) { |
| 3789 this.subscription_0.cancel$0(); | 3679 this.subscription_0.cancel$0(); |
| 3790 this.future_1._completeError$1(error); | 3680 this.future_1._completeError$2(error, stackTrace); |
| 3791 } | 3681 }, |
| 3682 $is_args2: true |
| 3792 }, | 3683 }, |
| 3793 | 3684 |
| 3794 _ForwardingStream: {"": "Stream;", | 3685 _BaseZone: {"": "Object;", |
| 3795 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
| 3796 return P._ForwardingStreamSubscription$(this, onData, onError, onDone, true
=== cancelOnError, H.getRuntimeTypeArgument(this, "_ForwardingStream", 0), H.get
RuntimeTypeArgument(this, "_ForwardingStream", 1)); | |
| 3797 }, | |
| 3798 listen$3$onDone$onError: function(onData, onDone, onError) { | |
| 3799 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onEr
ror); | |
| 3800 }, | |
| 3801 _handleData$2: function(data, sink) { | |
| 3802 sink._async$_add$1(data); | |
| 3803 }, | |
| 3804 $asStream: function($S, $T) { | |
| 3805 return [$T]; | |
| 3806 } | |
| 3807 }, | |
| 3808 | |
| 3809 _ForwardingStreamSubscription: {"": "_BufferingStreamSubscription;_stream,_subsc
ription,_async$_onData,_onError,_onDone,_zone,_state,_pending", | |
| 3810 _async$_add$1: function(data) { | |
| 3811 if ((this._state & 2) !== 0) | |
| 3812 return; | |
| 3813 P._BufferingStreamSubscription.prototype._async$_add$1.call(this, data); | |
| 3814 }, | |
| 3815 _addError$1: function(error) { | |
| 3816 if ((this._state & 2) !== 0) | |
| 3817 return; | |
| 3818 P._BufferingStreamSubscription.prototype._addError$1.call(this, error); | |
| 3819 }, | |
| 3820 _onPause$0: function() { | |
| 3821 var t1 = this._subscription; | |
| 3822 if (t1 == null) | |
| 3823 return; | |
| 3824 t1.pause$0(t1); | |
| 3825 }, | |
| 3826 get$_onPause: function() { | |
| 3827 return new P.BoundClosure$0(this, P._ForwardingStreamSubscription.prototype.
_onPause$0, null, "_onPause$0"); | |
| 3828 }, | |
| 3829 _onResume$0: function() { | |
| 3830 var t1 = this._subscription; | |
| 3831 if (t1 == null) | |
| 3832 return; | |
| 3833 t1.resume$0(); | |
| 3834 }, | |
| 3835 get$_onResume: function() { | |
| 3836 return new P.BoundClosure$0(this, P._ForwardingStreamSubscription.prototype.
_onResume$0, null, "_onResume$0"); | |
| 3837 }, | |
| 3838 _onCancel$0: function() { | |
| 3839 var t1 = this._subscription; | |
| 3840 if (t1 != null) { | |
| 3841 this._subscription = null; | |
| 3842 t1.cancel$0(); | |
| 3843 } | |
| 3844 }, | |
| 3845 _handleData$1: function(data) { | |
| 3846 this._stream._handleData$2(data, this); | |
| 3847 }, | |
| 3848 get$_handleData: function() { | |
| 3849 return new P.BoundClosure$1(this, P._ForwardingStreamSubscription.prototype.
_handleData$1, null, "_handleData$1"); | |
| 3850 }, | |
| 3851 _handleError$1: function(error) { | |
| 3852 this._addError$1(error); | |
| 3853 }, | |
| 3854 get$_handleError: function() { | |
| 3855 return new P.BoundClosure$1(this, P._ForwardingStreamSubscription.prototype.
_handleError$1, null, "_handleError$1"); | |
| 3856 }, | |
| 3857 _handleDone$0: function() { | |
| 3858 this._close$0(); | |
| 3859 }, | |
| 3860 get$_handleDone: function() { | |
| 3861 return new P.BoundClosure$0(this, P._ForwardingStreamSubscription.prototype.
_handleDone$0, null, "_handleDone$0"); | |
| 3862 }, | |
| 3863 _ForwardingStreamSubscription$5: function(_stream, onData, onError, onDone, ca
ncelOnError, $S, $T) { | |
| 3864 var t1, t2; | |
| 3865 t1 = this.get$_handleData(); | |
| 3866 t2 = this.get$_handleError(); | |
| 3867 this._subscription = this._stream._async$_source.listen$3$onDone$onError(t1,
this.get$_handleDone(), t2); | |
| 3868 }, | |
| 3869 $as_BufferingStreamSubscription: function($S, $T) { | |
| 3870 return [$T]; | |
| 3871 }, | |
| 3872 static: { | |
| 3873 _ForwardingStreamSubscription$: function(_stream, onData, onError, onDone, cance
lOnError, $S, $T) { | |
| 3874 var t1, t2, t3, t4, t5; | |
| 3875 t1 = $.Zone__current; | |
| 3876 t2 = t1.registerUnaryCallback$1(onData); | |
| 3877 t3 = $.Zone__current.registerUnaryCallback$1(onError); | |
| 3878 t4 = $.Zone__current.registerCallback$1(onDone); | |
| 3879 t5 = cancelOnError ? 1 : 0; | |
| 3880 t5 = new P._ForwardingStreamSubscription(_stream, null, t2, t3, t4, t1, t5, nu
ll); | |
| 3881 H.setRuntimeTypeInfo(t5, [$S, $T]); | |
| 3882 t5._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError); | |
| 3883 t5._ForwardingStreamSubscription$5(_stream, onData, onError, onDone, cancelOnE
rror, $S, $T); | |
| 3884 return t5; | |
| 3885 }} | |
| 3886 | |
| 3887 }, | |
| 3888 | |
| 3889 _MapStream: {"": "_ForwardingStream;_transform,_async$_source", | |
| 3890 _transform$1: function(arg0) { | |
| 3891 return this._transform.call$1(arg0); | |
| 3892 }, | |
| 3893 _handleData$2: function(inputEvent, sink) { | |
| 3894 var outputEvent, e, s, exception, t1; | |
| 3895 outputEvent = null; | |
| 3896 try { | |
| 3897 outputEvent = this._transform$1(inputEvent); | |
| 3898 } catch (exception) { | |
| 3899 t1 = H.unwrapException(exception); | |
| 3900 e = t1; | |
| 3901 s = new H._StackTrace(exception, null); | |
| 3902 sink._addError$1(P._asyncError(e, s)); | |
| 3903 return; | |
| 3904 } | |
| 3905 | |
| 3906 sink._async$_add$1(outputEvent); | |
| 3907 }, | |
| 3908 $as_ForwardingStream: null | |
| 3909 }, | |
| 3910 | |
| 3911 Timer: {"": "Object;"}, | |
| 3912 | |
| 3913 ZoneSpecification: {"": "Object;", | |
| 3914 handleUncaughtError$1: function(arg0) { | |
| 3915 return this.get$handleUncaughtError().call$1(arg0); | |
| 3916 }, | |
| 3917 run$1: function(arg0) { | |
| 3918 return this.get$run().call$1(arg0); | |
| 3919 }, | |
| 3920 registerCallback$1: function(arg0) { | |
| 3921 return this.get$registerCallback().call$1(arg0); | |
| 3922 }, | |
| 3923 registerUnaryCallback$1: function(arg0) { | |
| 3924 return this.get$registerUnaryCallback().call$1(arg0); | |
| 3925 }, | |
| 3926 scheduleMicrotask$1: function(arg0) { | |
| 3927 return this.get$scheduleMicrotask().call$1(arg0); | |
| 3928 }, | |
| 3929 createTimer$2: function(arg0, arg1) { | |
| 3930 return this.get$createTimer().call$2(arg0, arg1); | |
| 3931 } | |
| 3932 }, | |
| 3933 | |
| 3934 _ZoneSpecification: {"": "Object;handleUncaughtError,run,runUnary,registerCallba
ck,registerUnaryCallback,scheduleMicrotask,createTimer,createPeriodicTimer,fork"
, | |
| 3935 handleUncaughtError$1: function(arg0) { | |
| 3936 return this.handleUncaughtError.call$1(arg0); | |
| 3937 }, | |
| 3938 run$1: function(arg0) { | |
| 3939 return this.run.call$1(arg0); | |
| 3940 }, | |
| 3941 registerCallback$1: function(arg0) { | |
| 3942 return this.registerCallback.call$1(arg0); | |
| 3943 }, | |
| 3944 registerUnaryCallback$1: function(arg0) { | |
| 3945 return this.registerUnaryCallback.call$1(arg0); | |
| 3946 }, | |
| 3947 scheduleMicrotask$1: function(arg0) { | |
| 3948 return this.scheduleMicrotask.call$1(arg0); | |
| 3949 }, | |
| 3950 createTimer$2: function(arg0, arg1) { | |
| 3951 return this.createTimer.call$2(arg0, arg1); | |
| 3952 }, | |
| 3953 $is_ZoneSpecification: true | |
| 3954 }, | |
| 3955 | |
| 3956 ZoneDelegate: {"": "Object;"}, | |
| 3957 | |
| 3958 Zone: {"": "Object;"}, | |
| 3959 | |
| 3960 _ZoneDelegate: {"": "Object;_degelationTarget", | |
| 3961 get$_zone: function() { | |
| 3962 return this._degelationTarget; | |
| 3963 }, | |
| 3964 handleUncaughtError$2: function(zone, e) { | |
| 3965 var $parent, t1, t2; | |
| 3966 $parent = this._degelationTarget; | |
| 3967 for (; t1 = $parent.get$_specification().handleUncaughtError, t2 = J.getInte
rceptor$x($parent), t1 == null;) | |
| 3968 $parent = t2.get$parent($parent); | |
| 3969 return t1.call$4($parent, new P._ZoneDelegate(t2.get$parent($parent)), zone,
e); | |
| 3970 }, | |
| 3971 run$2: function(zone, f) { | |
| 3972 var $parent, t1, t2; | |
| 3973 $parent = this._degelationTarget; | |
| 3974 for (; t1 = $parent.get$_specification().run, t2 = J.getInterceptor$x($paren
t), t1 == null;) | |
| 3975 $parent = t2.get$parent($parent); | |
| 3976 return t1.call$4($parent, new P._ZoneDelegate(t2.get$parent($parent)), zone,
f); | |
| 3977 }, | |
| 3978 runUnary$3: function(zone, f, arg) { | |
| 3979 var $parent, t1, t2; | |
| 3980 $parent = this._degelationTarget; | |
| 3981 for (; t1 = $parent.get$_specification().runUnary, t2 = J.getInterceptor$x($
parent), t1 == null;) | |
| 3982 $parent = t2.get$parent($parent); | |
| 3983 return t1.call$5($parent, new P._ZoneDelegate(t2.get$parent($parent)), zone,
f, arg); | |
| 3984 }, | |
| 3985 registerCallback$2: function(zone, f) { | |
| 3986 var $parent, t1, t2; | |
| 3987 $parent = this._degelationTarget; | |
| 3988 for (; t1 = $parent.get$_specification().registerCallback, t2 = J.getInterce
ptor$x($parent), t1 == null;) | |
| 3989 $parent = t2.get$parent($parent); | |
| 3990 return t1.call$4($parent, new P._ZoneDelegate(t2.get$parent($parent)), zone,
f); | |
| 3991 }, | |
| 3992 registerUnaryCallback$2: function(zone, f) { | |
| 3993 var $parent, t1, t2; | |
| 3994 $parent = this._degelationTarget; | |
| 3995 for (; t1 = $parent.get$_specification().registerUnaryCallback, t2 = J.getIn
terceptor$x($parent), t1 == null;) | |
| 3996 $parent = t2.get$parent($parent); | |
| 3997 return t1.call$4($parent, new P._ZoneDelegate(t2.get$parent($parent)), zone,
f); | |
| 3998 }, | |
| 3999 scheduleMicrotask$2: function(zone, f) { | |
| 4000 var $parent, t1; | |
| 4001 $parent = this._degelationTarget; | |
| 4002 for (; t1 = J.getInterceptor$x($parent), $parent.get$_specification().schedu
leMicrotask == null;) | |
| 4003 $parent = t1.get$parent($parent); | |
| 4004 t1 = t1.get$parent($parent); | |
| 4005 $parent.get$_specification().scheduleMicrotask.call$4($parent, new P._ZoneDe
legate(t1), zone, f); | |
| 4006 }, | |
| 4007 createTimer$3: function(zone, duration, f) { | |
| 4008 var $parent, t1, t2; | |
| 4009 $parent = this._degelationTarget; | |
| 4010 for (; t1 = $parent.get$_specification().createTimer, t2 = J.getInterceptor$
x($parent), t1 == null;) | |
| 4011 $parent = t2.get$parent($parent); | |
| 4012 return t1.call$5($parent, new P._ZoneDelegate(t2.get$parent($parent)), zone,
duration, f); | |
| 4013 } | |
| 4014 }, | |
| 4015 | |
| 4016 _CustomizedZone: {"": "Object;parent>,_specification<,_map", | |
| 4017 get$_errorZone: function() { | |
| 4018 if (this._specification.handleUncaughtError != null) | |
| 4019 return this; | |
| 4020 return this.parent.get$_errorZone(); | |
| 4021 }, | |
| 4022 inSameErrorZone$1: function(otherZone) { | |
| 4023 return this.get$_errorZone() === otherZone.get$_errorZone(); | |
| 4024 }, | |
| 4025 runGuarded$1: function(f) { | 3686 runGuarded$1: function(f) { |
| 4026 var e, s, t1, exception; | 3687 var e, s, t1, exception; |
| 4027 try { | 3688 try { |
| 4028 t1 = new P._ZoneDelegate(this).run$2(this, f); | 3689 t1 = this.run$1(f); |
| 4029 return t1; | 3690 return t1; |
| 4030 } catch (exception) { | 3691 } catch (exception) { |
| 4031 t1 = H.unwrapException(exception); | 3692 t1 = H.unwrapException(exception); |
| 4032 e = t1; | 3693 e = t1; |
| 4033 s = new H._StackTrace(exception, null); | 3694 s = new H._StackTrace(exception, null); |
| 4034 return new P._ZoneDelegate(this).handleUncaughtError$2(this, P._asyncError
(e, s)); | 3695 return this.handleUncaughtError$2(e, s); |
| 4035 } | 3696 } |
| 4036 | 3697 |
| 4037 }, | 3698 }, |
| 4038 runUnaryGuarded$2: function(f, arg) { | 3699 runUnaryGuarded$2: function(f, arg) { |
| 4039 var e, s, t1, exception; | 3700 var e, s, t1, exception; |
| 4040 try { | 3701 try { |
| 4041 t1 = new P._ZoneDelegate(this).runUnary$3(this, f, arg); | 3702 t1 = this.runUnary$2(f, arg); |
| 4042 return t1; | 3703 return t1; |
| 4043 } catch (exception) { | 3704 } catch (exception) { |
| 4044 t1 = H.unwrapException(exception); | 3705 t1 = H.unwrapException(exception); |
| 4045 e = t1; | 3706 e = t1; |
| 4046 s = new H._StackTrace(exception, null); | 3707 s = new H._StackTrace(exception, null); |
| 4047 return new P._ZoneDelegate(this).handleUncaughtError$2(this, P._asyncError
(e, s)); | 3708 return this.handleUncaughtError$2(e, s); |
| 3709 } |
| 3710 |
| 3711 }, |
| 3712 runBinaryGuarded$3: function(f, arg1, arg2) { |
| 3713 var e, s, t1, exception; |
| 3714 try { |
| 3715 t1 = this.runBinary$3(f, arg1, arg2); |
| 3716 return t1; |
| 3717 } catch (exception) { |
| 3718 t1 = H.unwrapException(exception); |
| 3719 e = t1; |
| 3720 s = new H._StackTrace(exception, null); |
| 3721 return this.handleUncaughtError$2(e, s); |
| 4048 } | 3722 } |
| 4049 | 3723 |
| 4050 }, | 3724 }, |
| 4051 bindCallback$2$runGuarded: function(f, runGuarded) { | 3725 bindCallback$2$runGuarded: function(f, runGuarded) { |
| 4052 var registered = new P._ZoneDelegate(this).registerCallback$2(this, f); | 3726 var registered = this.registerCallback$1(f); |
| 4053 if (runGuarded) | 3727 if (runGuarded) |
| 4054 return new P._CustomizedZone_bindCallback_closure(this, registered); | 3728 return new P._BaseZone_bindCallback_closure(this, registered); |
| 4055 else | 3729 else |
| 4056 return new P._CustomizedZone_bindCallback_closure0(this, registered); | 3730 return new P._BaseZone_bindCallback_closure0(this, registered); |
| 4057 }, | |
| 4058 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { | |
| 4059 var registered = new P._ZoneDelegate(this).registerUnaryCallback$2(this, f); | |
| 4060 if (runGuarded) | |
| 4061 return new P._CustomizedZone_bindUnaryCallback_closure(this, registered); | |
| 4062 else | |
| 4063 return new P._CustomizedZone_bindUnaryCallback_closure0(this, registered); | |
| 4064 }, | |
| 4065 $index: function(_, key) { | |
| 4066 var t1, result; | |
| 4067 t1 = this._map; | |
| 4068 result = t1.$index(t1, key); | |
| 4069 if (result != null || t1.containsKey$1(key)) | |
| 4070 return result; | |
| 4071 t1 = this.parent; | |
| 4072 if (t1 != null) | |
| 4073 return J.$index$asx(t1, key); | |
| 4074 return; | |
| 4075 }, | |
| 4076 handleUncaughtError$1: function(error) { | |
| 4077 return new P._ZoneDelegate(this).handleUncaughtError$2(this, error); | |
| 4078 }, | |
| 4079 run$1: function(f) { | |
| 4080 return new P._ZoneDelegate(this).run$2(this, f); | |
| 4081 }, | |
| 4082 registerCallback$1: function(f) { | |
| 4083 return new P._ZoneDelegate(this).registerCallback$2(this, f); | |
| 4084 }, | |
| 4085 registerUnaryCallback$1: function(f) { | |
| 4086 return new P._ZoneDelegate(this).registerUnaryCallback$2(this, f); | |
| 4087 }, | |
| 4088 scheduleMicrotask$1: function(f) { | |
| 4089 new P._ZoneDelegate(this).scheduleMicrotask$2(this, f); | |
| 4090 }, | |
| 4091 createTimer$2: function(duration, f) { | |
| 4092 return new P._ZoneDelegate(this).createTimer$3(this, duration, f); | |
| 4093 } | 3731 } |
| 4094 }, | 3732 }, |
| 4095 | 3733 |
| 4096 _CustomizedZone_bindCallback_closure: {"": "Closure;this_0,registered_1", | 3734 _BaseZone_bindCallback_closure: {"": "Closure;this_0,registered_1", |
| 4097 call$0: function() { | 3735 call$0: function() { |
| 4098 return this.this_0.runGuarded$1(this.registered_1); | 3736 return this.this_0.runGuarded$1(this.registered_1); |
| 4099 }, | |
| 4100 $is_void_: true | |
| 4101 }, | |
| 4102 | |
| 4103 _CustomizedZone_bindCallback_closure0: {"": "Closure;this_2,registered_3", | |
| 4104 call$0: function() { | |
| 4105 var t1 = this.this_2; | |
| 4106 return new P._ZoneDelegate(t1).run$2(t1, this.registered_3); | |
| 4107 }, | |
| 4108 $is_void_: true | |
| 4109 }, | |
| 4110 | |
| 4111 _CustomizedZone_bindUnaryCallback_closure: {"": "Closure;this_0,registered_1", | |
| 4112 call$1: function(arg) { | |
| 4113 return this.this_0.runUnaryGuarded$2(this.registered_1, arg); | |
| 4114 } | 3737 } |
| 4115 }, | 3738 }, |
| 4116 | 3739 |
| 4117 _CustomizedZone_bindUnaryCallback_closure0: {"": "Closure;this_2,registered_3", | 3740 _BaseZone_bindCallback_closure0: {"": "Closure;this_2,registered_3", |
| 4118 call$1: function(arg) { | 3741 call$0: function() { |
| 4119 var t1 = this.this_2; | 3742 return this.this_2.run$1(this.registered_3); |
| 4120 return new P._ZoneDelegate(t1).runUnary$3(t1, this.registered_3, arg); | |
| 4121 } | 3743 } |
| 4122 }, | 3744 }, |
| 4123 | 3745 |
| 4124 _rootHandleUncaughtError_closure: {"": "Closure;error_0", | 3746 _rootHandleUncaughtError_closure: {"": "Closure;error_0,stackTrace_1", |
| 4125 call$0: function() { | 3747 call$0: function() { |
| 4126 var t1, trace; | 3748 var t1, trace; |
| 4127 t1 = this.error_0; | 3749 t1 = this.error_0; |
| 4128 H.Primitives_printString("Uncaught Error: " + H.S(t1)); | 3750 P.print("Uncaught Error: " + H.S(t1)); |
| 4129 trace = P.getAttachedStackTrace(t1); | 3751 trace = this.stackTrace_1; |
| 3752 if (trace == null) |
| 3753 trace = P.getAttachedStackTrace(t1); |
| 4130 P._attachStackTrace(t1, null); | 3754 P._attachStackTrace(t1, null); |
| 4131 if (trace != null) | 3755 if (trace != null) |
| 4132 H.Primitives_printString("Stack Trace:\n" + H.S(trace) + "\n"); | 3756 P.print("Stack Trace: \n" + H.S(trace) + "\n"); |
| 4133 throw H.wrapException(t1); | 3757 throw H.wrapException(t1); |
| 4134 }, | 3758 } |
| 4135 $is_void_: true | |
| 4136 }, | 3759 }, |
| 4137 | 3760 |
| 4138 _rootFork_closure: {"": "Closure;copiedMap_0", | 3761 _RootZone: {"": "_BaseZone;", |
| 4139 call$2: function(key, value) { | 3762 $index: function(_, key) { |
| 4140 var t1; | 3763 return; |
| 4141 if (key == null) | 3764 }, |
| 4142 throw H.wrapException(new P.ArgumentError("ZoneValue key must not be null"
)); | 3765 handleUncaughtError$2: function(error, stackTrace) { |
| 4143 t1 = this.copiedMap_0; | 3766 return P._rootHandleUncaughtError(this, null, this, error, stackTrace); |
| 4144 t1.$indexSet(t1, key, value); | 3767 }, |
| 3768 run$1: function(f) { |
| 3769 return P._rootRun(this, null, this, f); |
| 3770 }, |
| 3771 runUnary$2: function(f, arg) { |
| 3772 return P._rootRunUnary(this, null, this, f, arg); |
| 3773 }, |
| 3774 runBinary$3: function(f, arg1, arg2) { |
| 3775 return P._rootRunBinary(this, null, this, f, arg1, arg2); |
| 3776 }, |
| 3777 registerCallback$1: function(f) { |
| 3778 return f; |
| 4145 } | 3779 } |
| 4146 }}], | 3780 }}], |
| 4147 ["dart.collection", "dart:collection", , P, { | 3781 ["dart.collection", "dart:collection", , P, { |
| 3782 _HashSet__newHashTable: function() { |
| 3783 var table = Object.create(null); |
| 3784 table["<non-identifier-key>"] = table; |
| 3785 delete table["<non-identifier-key>"]; |
| 3786 return table; |
| 3787 }, |
| 3788 |
| 4148 _defaultEquals: function(a, b) { | 3789 _defaultEquals: function(a, b) { |
| 4149 return J.$eq(a, b); | 3790 return J.$eq(a, b); |
| 4150 }, | 3791 }, |
| 4151 | 3792 |
| 4152 _defaultHashCode: function(a) { | 3793 _defaultHashCode: function(a) { |
| 4153 return J.get$hashCode$(a); | 3794 return J.get$hashCode$(a); |
| 4154 }, | 3795 }, |
| 4155 | 3796 |
| 4156 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { | 3797 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { |
| 4157 var t1 = new P._HashMap(0, null, null, null, null); | 3798 var t1 = new P._HashMap(0, null, null, null, null); |
| 4158 H.setRuntimeTypeInfo(t1, [$K, $V]); | 3799 H.setRuntimeTypeInfo(t1, [$K, $V]); |
| 4159 return t1; | 3800 return t1; |
| 4160 }, | 3801 }, |
| 4161 | 3802 |
| 3803 _iterableToString: function(iterable) { |
| 3804 var LENGTH_LIMIT, MIN_COUNT, MAX_COUNT, OVERHEAD, ELLIPSIS_SIZE, result, $leng
th, count, it, next, penultimateString, ultimateString, penultimate, ultimate, e
lision, t1, t2, t3, t4; |
| 3805 LENGTH_LIMIT = 80; |
| 3806 MIN_COUNT = 3; |
| 3807 MAX_COUNT = 100; |
| 3808 OVERHEAD = 2; |
| 3809 ELLIPSIS_SIZE = 3; |
| 3810 t1 = $.get$_toStringVisiting(); |
| 3811 if (t1.contains$1(t1, iterable)) |
| 3812 return "(...)"; |
| 3813 t1 = $.get$_toStringVisiting(); |
| 3814 t1.add$1(t1, iterable); |
| 3815 result = []; |
| 3816 try { |
| 3817 $building$0: { |
| 3818 $length = 0; |
| 3819 count = 0; |
| 3820 it = J.get$iterator$ax(iterable); |
| 3821 while (true) { |
| 3822 t1 = count; |
| 3823 t2 = MIN_COUNT; |
| 3824 if (typeof t1 !== "number") |
| 3825 throw t1.$lt(); |
| 3826 if (typeof t2 !== "number") |
| 3827 throw H.iae(t2); |
| 3828 if (!(t1 < t2)) { |
| 3829 t1 = $length; |
| 3830 t2 = LENGTH_LIMIT; |
| 3831 if (typeof t1 !== "number") |
| 3832 throw t1.$lt(); |
| 3833 if (typeof t2 !== "number") |
| 3834 throw H.iae(t2); |
| 3835 t2 = t1 < t2; |
| 3836 t1 = t2; |
| 3837 } else |
| 3838 t1 = true; |
| 3839 if (!t1) |
| 3840 break; |
| 3841 if (!it.moveNext$0()) |
| 3842 break $building$0; |
| 3843 next = H.S(it.get$current()); |
| 3844 J.add$1$ax(result, next); |
| 3845 t1 = $length; |
| 3846 t2 = J.get$length$asx(next); |
| 3847 t3 = OVERHEAD; |
| 3848 if (typeof t2 !== "number") |
| 3849 throw t2.$add(); |
| 3850 if (typeof t3 !== "number") |
| 3851 throw H.iae(t3); |
| 3852 if (typeof t1 !== "number") |
| 3853 throw t1.$add(); |
| 3854 $length = t1 + (t2 + t3); |
| 3855 t3 = count; |
| 3856 if (typeof t3 !== "number") |
| 3857 throw t3.$add(); |
| 3858 count = t3 + 1; |
| 3859 } |
| 3860 penultimateString = null; |
| 3861 ultimateString = null; |
| 3862 penultimate = null; |
| 3863 ultimate = null; |
| 3864 if (!it.moveNext$0()) { |
| 3865 t1 = count; |
| 3866 t2 = MIN_COUNT; |
| 3867 if (typeof t2 !== "number") |
| 3868 throw t2.$add(); |
| 3869 if (typeof t1 !== "number") |
| 3870 throw t1.$le(); |
| 3871 if (t1 <= t2 + 2) |
| 3872 break $building$0; |
| 3873 ultimateString = J.removeLast$0$ax(result); |
| 3874 penultimateString = J.removeLast$0$ax(result); |
| 3875 } else { |
| 3876 penultimate = it.get$current(); |
| 3877 t1 = count; |
| 3878 if (typeof t1 !== "number") |
| 3879 throw t1.$add(); |
| 3880 count = t1 + 1; |
| 3881 if (!it.moveNext$0()) { |
| 3882 t1 = count; |
| 3883 t2 = MIN_COUNT; |
| 3884 if (typeof t2 !== "number") |
| 3885 throw t2.$add(); |
| 3886 if (typeof t1 !== "number") |
| 3887 throw t1.$le(); |
| 3888 if (t1 <= t2 + 1) { |
| 3889 J.add$1$ax(result, H.S(penultimate)); |
| 3890 break $building$0; |
| 3891 } |
| 3892 ultimateString = H.S(penultimate); |
| 3893 penultimateString = J.removeLast$0$ax(result); |
| 3894 t1 = $length; |
| 3895 t2 = J.get$length$asx(ultimateString); |
| 3896 t3 = OVERHEAD; |
| 3897 if (typeof t2 !== "number") |
| 3898 throw t2.$add(); |
| 3899 if (typeof t3 !== "number") |
| 3900 throw H.iae(t3); |
| 3901 if (typeof t1 !== "number") |
| 3902 throw t1.$add(); |
| 3903 $length = t1 + (t2 + t3); |
| 3904 } else { |
| 3905 ultimate = it.get$current(); |
| 3906 t1 = count; |
| 3907 if (typeof t1 !== "number") |
| 3908 throw t1.$add(); |
| 3909 count = t1 + 1; |
| 3910 for (; it.moveNext$0();) { |
| 3911 penultimate = ultimate; |
| 3912 ultimate = it.get$current(); |
| 3913 t1 = count; |
| 3914 if (typeof t1 !== "number") |
| 3915 throw t1.$add(); |
| 3916 count = t1 + 1; |
| 3917 t1 = count; |
| 3918 t2 = MAX_COUNT; |
| 3919 if (typeof t1 !== "number") |
| 3920 throw t1.$gt(); |
| 3921 if (typeof t2 !== "number") |
| 3922 throw H.iae(t2); |
| 3923 if (t1 > t2) { |
| 3924 while (true) { |
| 3925 t1 = $length; |
| 3926 t2 = LENGTH_LIMIT; |
| 3927 t3 = ELLIPSIS_SIZE; |
| 3928 if (typeof t2 !== "number") |
| 3929 throw t2.$sub(); |
| 3930 if (typeof t3 !== "number") |
| 3931 throw H.iae(t3); |
| 3932 t4 = OVERHEAD; |
| 3933 if (typeof t4 !== "number") |
| 3934 throw H.iae(t4); |
| 3935 if (typeof t1 !== "number") |
| 3936 throw t1.$gt(); |
| 3937 if (t1 > t2 - t3 - t4) { |
| 3938 t1 = count; |
| 3939 t2 = MIN_COUNT; |
| 3940 if (typeof t1 !== "number") |
| 3941 throw t1.$gt(); |
| 3942 if (typeof t2 !== "number") |
| 3943 throw H.iae(t2); |
| 3944 t2 = t1 > t2; |
| 3945 t1 = t2; |
| 3946 } else |
| 3947 t1 = false; |
| 3948 if (!t1) |
| 3949 break; |
| 3950 t1 = $length; |
| 3951 t2 = J.get$length$asx(J.removeLast$0$ax(result)); |
| 3952 t3 = OVERHEAD; |
| 3953 if (typeof t2 !== "number") |
| 3954 throw t2.$add(); |
| 3955 if (typeof t3 !== "number") |
| 3956 throw H.iae(t3); |
| 3957 if (typeof t1 !== "number") |
| 3958 throw t1.$sub(); |
| 3959 $length = t1 - (t2 + t3); |
| 3960 t3 = count; |
| 3961 if (typeof t3 !== "number") |
| 3962 throw t3.$sub(); |
| 3963 count = t3 - 1; |
| 3964 } |
| 3965 J.add$1$ax(result, "..."); |
| 3966 break $building$0; |
| 3967 } |
| 3968 } |
| 3969 penultimateString = H.S(penultimate); |
| 3970 ultimateString = H.S(ultimate); |
| 3971 t1 = $length; |
| 3972 t2 = J.get$length$asx(ultimateString); |
| 3973 t3 = J.get$length$asx(penultimateString); |
| 3974 if (typeof t2 !== "number") |
| 3975 throw t2.$add(); |
| 3976 if (typeof t3 !== "number") |
| 3977 throw H.iae(t3); |
| 3978 t4 = OVERHEAD; |
| 3979 if (typeof t4 !== "number") |
| 3980 throw H.iae(t4); |
| 3981 if (typeof t1 !== "number") |
| 3982 throw t1.$add(); |
| 3983 $length = t1 + (t2 + t3 + 2 * t4); |
| 3984 } |
| 3985 } |
| 3986 elision = null; |
| 3987 t1 = count; |
| 3988 t2 = J.get$length$asx(result); |
| 3989 if (typeof t2 !== "number") |
| 3990 throw t2.$add(); |
| 3991 if (typeof t1 !== "number") |
| 3992 throw t1.$gt(); |
| 3993 if (t1 > t2 + 2) { |
| 3994 elision = "..."; |
| 3995 t1 = $length; |
| 3996 t2 = ELLIPSIS_SIZE; |
| 3997 t3 = OVERHEAD; |
| 3998 if (typeof t2 !== "number") |
| 3999 throw t2.$add(); |
| 4000 if (typeof t3 !== "number") |
| 4001 throw H.iae(t3); |
| 4002 if (typeof t1 !== "number") |
| 4003 throw t1.$add(); |
| 4004 $length = t1 + (t2 + t3); |
| 4005 } |
| 4006 while (true) { |
| 4007 t1 = $length; |
| 4008 t2 = LENGTH_LIMIT; |
| 4009 if (typeof t1 !== "number") |
| 4010 throw t1.$gt(); |
| 4011 if (typeof t2 !== "number") |
| 4012 throw H.iae(t2); |
| 4013 if (t1 > t2) { |
| 4014 t1 = J.get$length$asx(result); |
| 4015 t2 = MIN_COUNT; |
| 4016 if (typeof t1 !== "number") |
| 4017 throw t1.$gt(); |
| 4018 if (typeof t2 !== "number") |
| 4019 throw H.iae(t2); |
| 4020 t2 = t1 > t2; |
| 4021 t1 = t2; |
| 4022 } else |
| 4023 t1 = false; |
| 4024 if (!t1) |
| 4025 break; |
| 4026 t1 = $length; |
| 4027 t2 = J.get$length$asx(J.removeLast$0$ax(result)); |
| 4028 t3 = OVERHEAD; |
| 4029 if (typeof t2 !== "number") |
| 4030 throw t2.$add(); |
| 4031 if (typeof t3 !== "number") |
| 4032 throw H.iae(t3); |
| 4033 if (typeof t1 !== "number") |
| 4034 throw t1.$sub(); |
| 4035 $length = t1 - (t2 + t3); |
| 4036 if (elision == null) { |
| 4037 elision = "..."; |
| 4038 t1 = $length; |
| 4039 t2 = ELLIPSIS_SIZE; |
| 4040 t3 = OVERHEAD; |
| 4041 if (typeof t2 !== "number") |
| 4042 throw t2.$add(); |
| 4043 if (typeof t3 !== "number") |
| 4044 throw H.iae(t3); |
| 4045 if (typeof t1 !== "number") |
| 4046 throw t1.$add(); |
| 4047 $length = t1 + (t2 + t3); |
| 4048 } |
| 4049 } |
| 4050 if (elision != null) |
| 4051 J.add$1$ax(result, elision); |
| 4052 J.add$1$ax(result, penultimateString); |
| 4053 J.add$1$ax(result, ultimateString); |
| 4054 } |
| 4055 } finally { |
| 4056 t1 = $.get$_toStringVisiting(); |
| 4057 t1.remove$1(t1, iterable); |
| 4058 } |
| 4059 t1 = P.StringBuffer$("("); |
| 4060 t1.writeAll$2(result, ", "); |
| 4061 t1.write$1(")"); |
| 4062 return t1._contents; |
| 4063 }, |
| 4064 |
| 4162 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { | 4065 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { |
| 4163 var t1; | 4066 var t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); |
| 4164 if (hashCode == null) { | 4067 H.setRuntimeTypeInfo(t1, [$K, $V]); |
| 4165 if (equals == null) { | 4068 return t1; |
| 4166 t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); | |
| 4167 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
| 4168 return t1; | |
| 4169 } | |
| 4170 hashCode = P._defaultHashCode$closure; | |
| 4171 } else { | |
| 4172 if ((P.identityHashCode$closure == null ? hashCode == null : P.identityHashC
ode$closure === hashCode) && (P.identical$closure == null ? equals == null : P.i
dentical$closure === equals)) { | |
| 4173 t1 = new P._LinkedIdentityHashMap(0, null, null, null, null, null, 0); | |
| 4174 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
| 4175 return t1; | |
| 4176 } | |
| 4177 if (equals == null) | |
| 4178 equals = P._defaultEquals$closure; | |
| 4179 } | |
| 4180 return P._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V); | |
| 4181 }, | 4069 }, |
| 4182 | 4070 |
| 4183 Maps_mapToString: function(m) { | 4071 Maps_mapToString: function(m) { |
| 4184 var t1, result, i, t2; | 4072 var t1, result, i, t2; |
| 4185 t1 = {}; | 4073 t1 = {}; |
| 4186 for (i = 0; i < $.get$Maps__toStringList().length; ++i) { | 4074 for (i = 0; i < $.get$Maps__toStringList().length; ++i) { |
| 4187 t2 = $.get$Maps__toStringList(); | 4075 t2 = $.get$Maps__toStringList(); |
| 4188 if (i >= t2.length) | 4076 if (i >= t2.length) |
| 4189 throw H.ioore(t2, i); | 4077 throw H.ioore(t2, i); |
| 4190 if (t2[i] === m) | 4078 if (t2[i] === m) |
| 4191 return "{...}"; | 4079 return "{...}"; |
| 4192 } | 4080 } |
| 4193 result = P.StringBuffer$(""); | 4081 result = P.StringBuffer$(""); |
| 4194 try { | 4082 try { |
| 4195 $.get$Maps__toStringList().push(m); | 4083 $.get$Maps__toStringList().push(m); |
| 4196 result.write$1("{"); | 4084 result.write$1("{"); |
| 4197 t1.first_0 = true; | 4085 t1.first_0 = true; |
| 4198 J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); | 4086 J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); |
| 4199 result.write$1("}"); | 4087 result.write$1("}"); |
| 4200 } finally { | 4088 } finally { |
| 4201 t1 = $.get$Maps__toStringList(); | 4089 t1 = $.get$Maps__toStringList(); |
| 4202 if (0 >= t1.length) | 4090 if (0 >= t1.length) |
| 4203 throw H.ioore(t1, 0); | 4091 throw H.ioore(t1, 0); |
| 4204 t1.pop(); | 4092 t1.pop(); |
| 4205 } | 4093 } |
| 4206 return result.get$_contents(); | 4094 return result.get$_contents(); |
| 4207 }, | 4095 }, |
| 4208 | 4096 |
| 4209 _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_collection$_key
s", | 4097 _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_keys", |
| 4210 get$length: function(_) { | 4098 get$length: function(_) { |
| 4211 return this._collection$_length; | 4099 return this._collection$_length; |
| 4212 }, | 4100 }, |
| 4213 get$keys: function() { | 4101 get$keys: function() { |
| 4214 var t1 = new P.HashMapKeyIterable(this); | 4102 var t1 = new P.HashMapKeyIterable(this); |
| 4215 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | 4103 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); |
| 4216 return t1; | 4104 return t1; |
| 4217 }, | 4105 }, |
| 4218 get$values: function(_) { | 4106 get$values: function(_) { |
| 4219 var t1, t2; | 4107 var t1 = new P.HashMapKeyIterable(this); |
| 4220 t1 = new P.HashMapKeyIterable(this); | |
| 4221 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | 4108 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); |
| 4222 t2 = new H.MappedIterable(t1, new P._HashMap_values_closure(this)); | 4109 return H.MappedIterable_MappedIterable(t1, new P._HashMap_values_closure(thi
s), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); |
| 4223 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), n
ull]); | |
| 4224 return t2; | |
| 4225 }, | |
| 4226 containsKey$1: function(key) { | |
| 4227 var strings, nums, rest; | |
| 4228 if (typeof key === "string" && key !== "__proto__") { | |
| 4229 strings = this._strings; | |
| 4230 return strings == null ? false : strings[key] != null; | |
| 4231 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
| 4232 nums = this._nums; | |
| 4233 return nums == null ? false : nums[key] != null; | |
| 4234 } else { | |
| 4235 rest = this._rest; | |
| 4236 if (rest == null) | |
| 4237 return false; | |
| 4238 return this._findBucketIndex$2(rest[this._computeHashCode$1(key)], key) >=
0; | |
| 4239 } | |
| 4240 }, | 4110 }, |
| 4241 $index: function(_, key) { | 4111 $index: function(_, key) { |
| 4242 var strings, t1, entry, nums, rest, bucket, index; | 4112 var strings, t1, entry, nums, rest, bucket, index; |
| 4243 if (typeof key === "string" && key !== "__proto__") { | 4113 if (typeof key === "string" && key !== "__proto__") { |
| 4244 strings = this._strings; | 4114 strings = this._strings; |
| 4245 if (strings == null) | 4115 if (strings == null) |
| 4246 t1 = null; | 4116 t1 = null; |
| 4247 else { | 4117 else { |
| 4248 entry = strings[key]; | 4118 entry = strings[key]; |
| 4249 t1 = entry === strings ? null : entry; | 4119 t1 = entry === strings ? null : entry; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4287 rest = this._rest; | 4157 rest = this._rest; |
| 4288 if (rest == null) { | 4158 if (rest == null) { |
| 4289 rest = P._HashMap__newHashTable(); | 4159 rest = P._HashMap__newHashTable(); |
| 4290 this._rest = rest; | 4160 this._rest = rest; |
| 4291 } | 4161 } |
| 4292 hash = this._computeHashCode$1(key); | 4162 hash = this._computeHashCode$1(key); |
| 4293 bucket = rest[hash]; | 4163 bucket = rest[hash]; |
| 4294 if (bucket == null) { | 4164 if (bucket == null) { |
| 4295 P._HashMap__setTableEntry(rest, hash, [key, value]); | 4165 P._HashMap__setTableEntry(rest, hash, [key, value]); |
| 4296 this._collection$_length = this._collection$_length + 1; | 4166 this._collection$_length = this._collection$_length + 1; |
| 4297 this._collection$_keys = null; | 4167 this._keys = null; |
| 4298 } else { | 4168 } else { |
| 4299 index = this._findBucketIndex$2(bucket, key); | 4169 index = this._findBucketIndex$2(bucket, key); |
| 4300 if (index >= 0) | 4170 if (index >= 0) |
| 4301 bucket[index + 1] = value; | 4171 bucket[index + 1] = value; |
| 4302 else { | 4172 else { |
| 4303 bucket.push(key, value); | 4173 bucket.push(key, value); |
| 4304 this._collection$_length = this._collection$_length + 1; | 4174 this._collection$_length = this._collection$_length + 1; |
| 4305 this._collection$_keys = null; | 4175 this._keys = null; |
| 4306 } | 4176 } |
| 4307 } | 4177 } |
| 4308 } | 4178 } |
| 4309 }, | 4179 }, |
| 4310 forEach$1: function(_, action) { | 4180 forEach$1: function(_, action) { |
| 4311 var keys, $length, i, key; | 4181 var keys, $length, i, key; |
| 4312 keys = this._computeKeys$0(); | 4182 keys = this._computeKeys$0(); |
| 4313 for ($length = keys.length, i = 0; i < $length; ++i) { | 4183 for ($length = keys.length, i = 0; i < $length; ++i) { |
| 4314 key = keys[i]; | 4184 key = keys[i]; |
| 4315 action.call$2(key, this.$index(this, key)); | 4185 action.call$2(key, this.$index(this, key)); |
| 4316 if (keys !== this._collection$_keys) | 4186 if (keys !== this._keys) |
| 4317 throw H.wrapException(new P.ConcurrentModificationError(this)); | 4187 throw H.wrapException(P.ConcurrentModificationError$(this)); |
| 4318 } | 4188 } |
| 4319 }, | 4189 }, |
| 4320 _computeKeys$0: function() { | 4190 _computeKeys$0: function() { |
| 4321 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; | 4191 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; |
| 4322 t1 = this._collection$_keys; | 4192 t1 = this._keys; |
| 4323 if (t1 != null) | 4193 if (t1 != null) |
| 4324 return t1; | 4194 return t1; |
| 4325 result = P.List_List(this._collection$_length, null); | 4195 result = P.List_List(this._collection$_length, null); |
| 4326 strings = this._strings; | 4196 strings = this._strings; |
| 4327 if (strings != null) { | 4197 if (strings != null) { |
| 4328 names = Object.getOwnPropertyNames(strings); | 4198 names = Object.getOwnPropertyNames(strings); |
| 4329 entries = names.length; | 4199 entries = names.length; |
| 4330 for (index = 0, i = 0; i < entries; ++i) { | 4200 for (index = 0, i = 0; i < entries; ++i) { |
| 4331 result[index] = names[i]; | 4201 result[index] = names[i]; |
| 4332 ++index; | 4202 ++index; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 4348 entries = names.length; | 4218 entries = names.length; |
| 4349 for (i = 0; i < entries; ++i) { | 4219 for (i = 0; i < entries; ++i) { |
| 4350 bucket = rest[names[i]]; | 4220 bucket = rest[names[i]]; |
| 4351 $length = bucket.length; | 4221 $length = bucket.length; |
| 4352 for (i0 = 0; i0 < $length; i0 += 2) { | 4222 for (i0 = 0; i0 < $length; i0 += 2) { |
| 4353 result[index] = bucket[i0]; | 4223 result[index] = bucket[i0]; |
| 4354 ++index; | 4224 ++index; |
| 4355 } | 4225 } |
| 4356 } | 4226 } |
| 4357 } | 4227 } |
| 4358 this._collection$_keys = result; | 4228 this._keys = result; |
| 4359 return result; | 4229 return result; |
| 4360 }, | 4230 }, |
| 4361 _addHashTableEntry$3: function(table, key, value) { | 4231 _addHashTableEntry$3: function(table, key, value) { |
| 4362 if (table[key] == null) { | 4232 if (table[key] == null) { |
| 4363 this._collection$_length = this._collection$_length + 1; | 4233 this._collection$_length = this._collection$_length + 1; |
| 4364 this._collection$_keys = null; | 4234 this._keys = null; |
| 4365 } | 4235 } |
| 4366 P._HashMap__setTableEntry(table, key, value); | 4236 P._HashMap__setTableEntry(table, key, value); |
| 4367 }, | 4237 }, |
| 4368 _computeHashCode$1: function(key) { | 4238 _computeHashCode$1: function(key) { |
| 4369 return J.get$hashCode$(key) & 0x3ffffff; | 4239 return J.get$hashCode$(key) & 0x3ffffff; |
| 4370 }, | 4240 }, |
| 4371 _findBucketIndex$2: function(bucket, key) { | 4241 _findBucketIndex$2: function(bucket, key) { |
| 4372 var $length, i; | 4242 var $length, i; |
| 4373 if (bucket == null) | 4243 if (bucket == null) |
| 4374 return -1; | 4244 return -1; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4396 | 4266 |
| 4397 }, | 4267 }, |
| 4398 | 4268 |
| 4399 _HashMap_values_closure: {"": "Closure;this_0", | 4269 _HashMap_values_closure: {"": "Closure;this_0", |
| 4400 call$1: function(each) { | 4270 call$1: function(each) { |
| 4401 var t1 = this.this_0; | 4271 var t1 = this.this_0; |
| 4402 return t1.$index(t1, each); | 4272 return t1.$index(t1, each); |
| 4403 } | 4273 } |
| 4404 }, | 4274 }, |
| 4405 | 4275 |
| 4406 HashMapKeyIterable: {"": "IterableBase;_collection$_map", | 4276 HashMapKeyIterable: {"": "IterableBase;_map", |
| 4407 get$length: function(_) { | 4277 get$length: function(_) { |
| 4408 return this._collection$_map._collection$_length; | 4278 return this._map._collection$_length; |
| 4409 }, | 4279 }, |
| 4410 get$iterator: function(_) { | 4280 get$iterator: function(_) { |
| 4411 var t1 = this._collection$_map; | 4281 var t1 = this._map; |
| 4412 return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); | 4282 return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); |
| 4413 }, | 4283 }, |
| 4414 forEach$1: function(_, f) { | 4284 forEach$1: function(_, f) { |
| 4415 var t1, keys, $length, i; | 4285 var t1, keys, $length, i; |
| 4416 t1 = this._collection$_map; | 4286 t1 = this._map; |
| 4417 keys = t1._computeKeys$0(); | 4287 keys = t1._computeKeys$0(); |
| 4418 for ($length = keys.length, i = 0; i < $length; ++i) { | 4288 for ($length = keys.length, i = 0; i < $length; ++i) { |
| 4419 f.call$1(keys[i]); | 4289 f.call$1(keys[i]); |
| 4420 if (keys !== t1._collection$_keys) | 4290 if (keys !== t1._keys) |
| 4421 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 4291 throw H.wrapException(P.ConcurrentModificationError$(t1)); |
| 4422 } | 4292 } |
| 4423 }, | 4293 }, |
| 4424 $asIterableBase: null | 4294 $asIterableBase: null, |
| 4295 $isEfficientLength: true |
| 4425 }, | 4296 }, |
| 4426 | 4297 |
| 4427 HashMapKeyIterator: {"": "Object;_collection$_map,_collection$_keys,_offset,_col
lection$_current", | 4298 HashMapKeyIterator: {"": "Object;_map,_keys,_offset,_collection$_current", |
| 4428 get$current: function() { | 4299 get$current: function() { |
| 4429 return this._collection$_current; | 4300 return this._collection$_current; |
| 4430 }, | 4301 }, |
| 4431 moveNext$0: function() { | 4302 moveNext$0: function() { |
| 4432 var keys, offset, t1; | 4303 var keys, offset, t1; |
| 4433 keys = this._collection$_keys; | 4304 keys = this._keys; |
| 4434 offset = this._offset; | 4305 offset = this._offset; |
| 4435 t1 = this._collection$_map; | 4306 t1 = this._map; |
| 4436 if (keys !== t1._collection$_keys) | 4307 if (keys !== t1._keys) |
| 4437 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 4308 throw H.wrapException(P.ConcurrentModificationError$(t1)); |
| 4438 else if (offset >= keys.length) { | 4309 else if (offset >= keys.length) { |
| 4439 this._collection$_current = null; | 4310 this._collection$_current = null; |
| 4440 return false; | 4311 return false; |
| 4441 } else { | 4312 } else { |
| 4442 this._collection$_current = keys[offset]; | 4313 this._collection$_current = keys[offset]; |
| 4443 this._offset = offset + 1; | 4314 this._offset = offset + 1; |
| 4444 return true; | 4315 return true; |
| 4445 } | 4316 } |
| 4446 } | 4317 } |
| 4447 }, | 4318 }, |
| 4448 | 4319 |
| 4449 _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la
st,_modifications", | 4320 _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la
st,_modifications", |
| 4450 get$length: function(_) { | 4321 get$length: function(_) { |
| 4451 return this._collection$_length; | 4322 return this._collection$_length; |
| 4452 }, | 4323 }, |
| 4453 get$keys: function() { | 4324 get$keys: function() { |
| 4454 var t1 = new P.LinkedHashMapKeyIterable(this); | 4325 var t1 = new P.LinkedHashMapKeyIterable(this); |
| 4455 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | 4326 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); |
| 4456 return t1; | 4327 return t1; |
| 4457 }, | 4328 }, |
| 4458 get$values: function(_) { | 4329 get$values: function(_) { |
| 4459 var t1, t2; | 4330 var t1 = new P.LinkedHashMapKeyIterable(this); |
| 4460 t1 = new P.LinkedHashMapKeyIterable(this); | |
| 4461 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | 4331 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); |
| 4462 t2 = new H.MappedIterable(t1, new P._LinkedHashMap_values_closure(this)); | 4332 return H.MappedIterable_MappedIterable(t1, new P._LinkedHashMap_values_closu
re(this), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); |
| 4463 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), n
ull]); | |
| 4464 return t2; | |
| 4465 }, | 4333 }, |
| 4466 containsKey$1: function(key) { | 4334 containsKey$1: function(key) { |
| 4467 var strings, nums, rest; | 4335 var nums, rest; |
| 4468 if (typeof key === "string" && key !== "__proto__") { | 4336 if ((key & 0x3ffffff) === key) { |
| 4469 strings = this._strings; | |
| 4470 if (strings == null) | |
| 4471 return false; | |
| 4472 return strings[key] != null; | |
| 4473 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
| 4474 nums = this._nums; | 4337 nums = this._nums; |
| 4475 if (nums == null) | 4338 if (nums == null) |
| 4476 return false; | 4339 return false; |
| 4477 return nums[key] != null; | 4340 return nums[key] != null; |
| 4478 } else { | 4341 } else { |
| 4479 rest = this._rest; | 4342 rest = this._rest; |
| 4480 if (rest == null) | 4343 if (rest == null) |
| 4481 return false; | 4344 return false; |
| 4482 return this._findBucketIndex$2(rest[this._computeHashCode$1(key)], key) >=
0; | 4345 return this._findBucketIndex$2(rest[this._computeHashCode$1(key)], key) >=
0; |
| 4483 } | 4346 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4561 return cell.get$_collection$_value(); | 4424 return cell.get$_collection$_value(); |
| 4562 } | 4425 } |
| 4563 }, | 4426 }, |
| 4564 forEach$1: function(_, action) { | 4427 forEach$1: function(_, action) { |
| 4565 var cell, modifications; | 4428 var cell, modifications; |
| 4566 cell = this._first; | 4429 cell = this._first; |
| 4567 modifications = this._modifications; | 4430 modifications = this._modifications; |
| 4568 for (; cell != null;) { | 4431 for (; cell != null;) { |
| 4569 action.call$2(cell._key, cell._collection$_value); | 4432 action.call$2(cell._key, cell._collection$_value); |
| 4570 if (modifications !== this._modifications) | 4433 if (modifications !== this._modifications) |
| 4571 throw H.wrapException(new P.ConcurrentModificationError(this)); | 4434 throw H.wrapException(P.ConcurrentModificationError$(this)); |
| 4572 cell = cell._next; | 4435 cell = cell._next; |
| 4573 } | 4436 } |
| 4574 }, | 4437 }, |
| 4575 _addHashTableEntry$3: function(table, key, value) { | 4438 _addHashTableEntry$3: function(table, key, value) { |
| 4576 var cell = table[key]; | 4439 var cell = table[key]; |
| 4577 if (cell == null) | 4440 if (cell == null) |
| 4578 table[key] = this._newLinkedCell$2(key, value); | 4441 table[key] = this._newLinkedCell$2(key, value); |
| 4579 else | 4442 else |
| 4580 cell.set$_collection$_value(value); | 4443 cell.set$_collection$_value(value); |
| 4581 }, | 4444 }, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4648 | 4511 |
| 4649 }, | 4512 }, |
| 4650 | 4513 |
| 4651 _LinkedHashMap_values_closure: {"": "Closure;this_0", | 4514 _LinkedHashMap_values_closure: {"": "Closure;this_0", |
| 4652 call$1: function(each) { | 4515 call$1: function(each) { |
| 4653 var t1 = this.this_0; | 4516 var t1 = this.this_0; |
| 4654 return t1.$index(t1, each); | 4517 return t1.$index(t1, each); |
| 4655 } | 4518 } |
| 4656 }, | 4519 }, |
| 4657 | 4520 |
| 4658 _LinkedIdentityHashMap: {"": "_LinkedHashMap;_collection$_length,_strings,_nums,
_rest,_first,_last,_modifications", | |
| 4659 _computeHashCode$1: function(key) { | |
| 4660 return H.objectHashCode(key) & 0x3ffffff; | |
| 4661 }, | |
| 4662 _findBucketIndex$2: function(bucket, key) { | |
| 4663 var $length, i, t1; | |
| 4664 if (bucket == null) | |
| 4665 return -1; | |
| 4666 $length = bucket.length; | |
| 4667 for (i = 0; i < $length; ++i) { | |
| 4668 t1 = bucket[i].get$_key(); | |
| 4669 if (t1 == null ? key == null : t1 === key) | |
| 4670 return i; | |
| 4671 } | |
| 4672 return -1; | |
| 4673 }, | |
| 4674 $as_LinkedHashMap: null, | |
| 4675 $asMap: null | |
| 4676 }, | |
| 4677 | |
| 4678 _LinkedCustomHashMap: {"": "_LinkedHashMap;_equals,_hashCode,_validKey,_collecti
on$_length,_strings,_nums,_rest,_first,_last,_modifications", | |
| 4679 _equals$2: function(arg0, arg1) { | |
| 4680 return this._equals.call$2(arg0, arg1); | |
| 4681 }, | |
| 4682 _hashCode$1: function(arg0) { | |
| 4683 return this._hashCode.call$1(arg0); | |
| 4684 }, | |
| 4685 _validKey$1: function(arg0) { | |
| 4686 return this._validKey.call$1(arg0); | |
| 4687 }, | |
| 4688 $index: function(_, key) { | |
| 4689 if (this._validKey$1(key) !== true) | |
| 4690 return; | |
| 4691 return P._LinkedHashMap.prototype.$index.call(this, this, key); | |
| 4692 }, | |
| 4693 containsKey$1: function(key) { | |
| 4694 if (this._validKey$1(key) !== true) | |
| 4695 return false; | |
| 4696 return P._LinkedHashMap.prototype.containsKey$1.call(this, key); | |
| 4697 }, | |
| 4698 remove$1: function(_, key) { | |
| 4699 if (this._validKey$1(key) !== true) | |
| 4700 return; | |
| 4701 return P._LinkedHashMap.prototype.remove$1.call(this, this, key); | |
| 4702 }, | |
| 4703 _computeHashCode$1: function(key) { | |
| 4704 return this._hashCode$1(key) & 0x3ffffff; | |
| 4705 }, | |
| 4706 _findBucketIndex$2: function(bucket, key) { | |
| 4707 var $length, i; | |
| 4708 if (bucket == null) | |
| 4709 return -1; | |
| 4710 $length = bucket.length; | |
| 4711 for (i = 0; i < $length; ++i) | |
| 4712 if (this._equals$2(bucket[i].get$_key(), key) === true) | |
| 4713 return i; | |
| 4714 return -1; | |
| 4715 }, | |
| 4716 $as_LinkedHashMap: null, | |
| 4717 $asMap: null, | |
| 4718 static: { | |
| 4719 _LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) { | |
| 4720 var t1 = new P._LinkedCustomHashMap_closure($K); | |
| 4721 t1 = new P._LinkedCustomHashMap(_equals, _hashCode, t1, 0, null, null, null, n
ull, null, 0); | |
| 4722 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
| 4723 return t1; | |
| 4724 }} | |
| 4725 | |
| 4726 }, | |
| 4727 | |
| 4728 _LinkedCustomHashMap_closure: {"": "Closure;K_0", | |
| 4729 call$1: function(v) { | |
| 4730 var t1 = H.checkSubtypeOfRuntimeType(v, this.K_0); | |
| 4731 return t1; | |
| 4732 } | |
| 4733 }, | |
| 4734 | |
| 4735 LinkedHashMapCell: {"": "Object;_key<,_collection$_value@,_next<,_previous<"}, | 4521 LinkedHashMapCell: {"": "Object;_key<,_collection$_value@,_next<,_previous<"}, |
| 4736 | 4522 |
| 4737 LinkedHashMapKeyIterable: {"": "IterableBase;_collection$_map", | 4523 LinkedHashMapKeyIterable: {"": "IterableBase;_map", |
| 4738 get$length: function(_) { | 4524 get$length: function(_) { |
| 4739 return this._collection$_map._collection$_length; | 4525 return this._map._collection$_length; |
| 4740 }, | 4526 }, |
| 4741 get$iterator: function(_) { | 4527 get$iterator: function(_) { |
| 4742 var t1 = this._collection$_map; | 4528 var t1 = this._map; |
| 4743 t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null); | 4529 t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null); |
| 4744 t1._cell = t1._collection$_map._first; | 4530 t1._cell = t1._map._first; |
| 4745 return t1; | 4531 return t1; |
| 4746 }, | 4532 }, |
| 4747 forEach$1: function(_, f) { | 4533 forEach$1: function(_, f) { |
| 4748 var t1, cell, modifications; | 4534 var t1, cell, modifications; |
| 4749 t1 = this._collection$_map; | 4535 t1 = this._map; |
| 4750 cell = t1._first; | 4536 cell = t1._first; |
| 4751 modifications = t1._modifications; | 4537 modifications = t1._modifications; |
| 4752 for (; cell != null;) { | 4538 for (; cell != null;) { |
| 4753 f.call$1(cell._key); | 4539 f.call$1(cell._key); |
| 4754 if (modifications !== t1._modifications) | 4540 if (modifications !== t1._modifications) |
| 4755 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 4541 throw H.wrapException(P.ConcurrentModificationError$(t1)); |
| 4756 cell = cell._next; | 4542 cell = cell._next; |
| 4757 } | 4543 } |
| 4758 }, | 4544 }, |
| 4759 $asIterableBase: null | 4545 $asIterableBase: null, |
| 4760 }, | 4546 $isEfficientLength: true |
| 4761 | 4547 }, |
| 4762 LinkedHashMapKeyIterator: {"": "Object;_collection$_map,_modifications,_cell,_co
llection$_current", | 4548 |
| 4549 LinkedHashMapKeyIterator: {"": "Object;_map,_modifications,_cell,_collection$_cu
rrent", |
| 4763 get$current: function() { | 4550 get$current: function() { |
| 4764 return this._collection$_current; | 4551 return this._collection$_current; |
| 4765 }, | 4552 }, |
| 4766 moveNext$0: function() { | 4553 moveNext$0: function() { |
| 4767 var t1 = this._collection$_map; | 4554 var t1 = this._map; |
| 4768 if (this._modifications !== t1._modifications) | 4555 if (this._modifications !== t1._modifications) |
| 4769 throw H.wrapException(new P.ConcurrentModificationError(t1)); | 4556 throw H.wrapException(P.ConcurrentModificationError$(t1)); |
| 4770 else { | 4557 else { |
| 4771 t1 = this._cell; | 4558 t1 = this._cell; |
| 4772 if (t1 == null) { | 4559 if (t1 == null) { |
| 4773 this._collection$_current = null; | 4560 this._collection$_current = null; |
| 4774 return false; | 4561 return false; |
| 4775 } else { | 4562 } else { |
| 4776 this._collection$_current = t1._key; | 4563 this._collection$_current = t1._key; |
| 4777 this._cell = this._cell._next; | 4564 this._cell = this._cell._next; |
| 4778 return true; | 4565 return true; |
| 4779 } | 4566 } |
| 4780 } | 4567 } |
| 4781 } | 4568 } |
| 4782 }, | 4569 }, |
| 4783 | 4570 |
| 4571 _HashSet: {"": "_HashSetBase;", |
| 4572 get$iterator: function(_) { |
| 4573 return new P.HashSetIterator(this, this._computeElements$0(), 0, null); |
| 4574 }, |
| 4575 get$length: function(_) { |
| 4576 return this._collection$_length; |
| 4577 }, |
| 4578 contains$1: function(_, object) { |
| 4579 var strings, nums, rest; |
| 4580 if (typeof object === "string" && object !== "__proto__") { |
| 4581 strings = this._strings; |
| 4582 return strings == null ? false : strings[object] != null; |
| 4583 } else if (typeof object === "number" && (object & 0x3ffffff) === object) { |
| 4584 nums = this._nums; |
| 4585 return nums == null ? false : nums[object] != null; |
| 4586 } else { |
| 4587 rest = this._rest; |
| 4588 if (rest == null) |
| 4589 return false; |
| 4590 return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], obje
ct) >= 0; |
| 4591 } |
| 4592 }, |
| 4593 lookup$1: function(object) { |
| 4594 var t1, rest, bucket, index; |
| 4595 if (!(typeof object === "string" && object !== "__proto__")) |
| 4596 t1 = typeof object === "number" && (object & 0x3ffffff) === object; |
| 4597 else |
| 4598 t1 = true; |
| 4599 if (t1) |
| 4600 return this.contains$1(this, object) ? object : null; |
| 4601 rest = this._rest; |
| 4602 if (rest == null) |
| 4603 return; |
| 4604 bucket = rest[this._computeHashCode$1(object)]; |
| 4605 index = this._findBucketIndex$2(bucket, object); |
| 4606 if (index < 0) |
| 4607 return; |
| 4608 return J.$index$asx(bucket, index); |
| 4609 }, |
| 4610 add$1: function(_, element) { |
| 4611 var rest, hash, bucket; |
| 4612 rest = this._rest; |
| 4613 if (rest == null) { |
| 4614 rest = P._HashSet__newHashTable(); |
| 4615 this._rest = rest; |
| 4616 } |
| 4617 hash = this._computeHashCode$1(element); |
| 4618 bucket = rest[hash]; |
| 4619 if (bucket == null) |
| 4620 rest[hash] = [element]; |
| 4621 else { |
| 4622 if (this._findBucketIndex$2(bucket, element) >= 0) |
| 4623 return false; |
| 4624 bucket.push(element); |
| 4625 } |
| 4626 this._collection$_length = this._collection$_length + 1; |
| 4627 this._elements = null; |
| 4628 return true; |
| 4629 }, |
| 4630 remove$1: function(_, object) { |
| 4631 var rest, bucket, index; |
| 4632 rest = this._rest; |
| 4633 if (rest == null) |
| 4634 return false; |
| 4635 bucket = rest[this._computeHashCode$1(object)]; |
| 4636 index = this._findBucketIndex$2(bucket, object); |
| 4637 if (index < 0) |
| 4638 return false; |
| 4639 this._collection$_length = this._collection$_length - 1; |
| 4640 this._elements = null; |
| 4641 bucket.splice(index, 1); |
| 4642 return true; |
| 4643 }, |
| 4644 _computeElements$0: function() { |
| 4645 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; |
| 4646 t1 = this._elements; |
| 4647 if (t1 != null) |
| 4648 return t1; |
| 4649 result = P.List_List(this._collection$_length, null); |
| 4650 strings = this._strings; |
| 4651 if (strings != null) { |
| 4652 names = Object.getOwnPropertyNames(strings); |
| 4653 entries = names.length; |
| 4654 for (index = 0, i = 0; i < entries; ++i) { |
| 4655 result[index] = names[i]; |
| 4656 ++index; |
| 4657 } |
| 4658 } else |
| 4659 index = 0; |
| 4660 nums = this._nums; |
| 4661 if (nums != null) { |
| 4662 names = Object.getOwnPropertyNames(nums); |
| 4663 entries = names.length; |
| 4664 for (i = 0; i < entries; ++i) { |
| 4665 result[index] = +names[i]; |
| 4666 ++index; |
| 4667 } |
| 4668 } |
| 4669 rest = this._rest; |
| 4670 if (rest != null) { |
| 4671 names = Object.getOwnPropertyNames(rest); |
| 4672 entries = names.length; |
| 4673 for (i = 0; i < entries; ++i) { |
| 4674 bucket = rest[names[i]]; |
| 4675 $length = bucket.length; |
| 4676 for (i0 = 0; i0 < $length; ++i0) { |
| 4677 result[index] = bucket[i0]; |
| 4678 ++index; |
| 4679 } |
| 4680 } |
| 4681 } |
| 4682 this._elements = result; |
| 4683 return result; |
| 4684 }, |
| 4685 _computeHashCode$1: function(element) { |
| 4686 return J.get$hashCode$(element) & 0x3ffffff; |
| 4687 }, |
| 4688 _findBucketIndex$2: function(bucket, element) { |
| 4689 var $length, i; |
| 4690 if (bucket == null) |
| 4691 return -1; |
| 4692 $length = bucket.length; |
| 4693 for (i = 0; i < $length; ++i) |
| 4694 if (J.$eq(bucket[i], element)) |
| 4695 return i; |
| 4696 return -1; |
| 4697 }, |
| 4698 $as_HashSetBase: null, |
| 4699 $isEfficientLength: true |
| 4700 }, |
| 4701 |
| 4702 _IdentityHashSet: {"": "_HashSet;_collection$_length,_strings,_nums,_rest,_eleme
nts", |
| 4703 _computeHashCode$1: function(key) { |
| 4704 return H.objectHashCode(key) & 0x3ffffff; |
| 4705 }, |
| 4706 _findBucketIndex$2: function(bucket, element) { |
| 4707 var $length, i, t1; |
| 4708 if (bucket == null) |
| 4709 return -1; |
| 4710 $length = bucket.length; |
| 4711 for (i = 0; i < $length; ++i) { |
| 4712 t1 = bucket[i]; |
| 4713 if (t1 == null ? element == null : t1 === element) |
| 4714 return i; |
| 4715 } |
| 4716 return -1; |
| 4717 }, |
| 4718 $as_HashSet: null |
| 4719 }, |
| 4720 |
| 4721 HashSetIterator: {"": "Object;_set,_elements,_offset,_collection$_current", |
| 4722 get$current: function() { |
| 4723 return this._collection$_current; |
| 4724 }, |
| 4725 moveNext$0: function() { |
| 4726 var elements, offset, t1; |
| 4727 elements = this._elements; |
| 4728 offset = this._offset; |
| 4729 t1 = this._set; |
| 4730 if (elements !== t1._elements) |
| 4731 throw H.wrapException(P.ConcurrentModificationError$(t1)); |
| 4732 else if (offset >= elements.length) { |
| 4733 this._collection$_current = null; |
| 4734 return false; |
| 4735 } else { |
| 4736 this._collection$_current = elements[offset]; |
| 4737 this._offset = offset + 1; |
| 4738 return true; |
| 4739 } |
| 4740 } |
| 4741 }, |
| 4742 |
| 4743 _HashSetBase: {"": "IterableBase;", |
| 4744 toString$0: function(_) { |
| 4745 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); |
| 4746 }, |
| 4747 $asIterableBase: null, |
| 4748 $isEfficientLength: true |
| 4749 }, |
| 4750 |
| 4751 HashSet: {"": "Object;", $isEfficientLength: true, static: { |
| 4752 HashSet_HashSet$identity: function($E) { |
| 4753 var t1 = new P._IdentityHashSet(0, null, null, null, null); |
| 4754 H.setRuntimeTypeInfo(t1, [$E]); |
| 4755 return t1; |
| 4756 }} |
| 4757 }, |
| 4758 |
| 4784 IterableBase: {"": "Object;", | 4759 IterableBase: {"": "Object;", |
| 4785 map$1: function(_, f) { | |
| 4786 var t1 = new H.MappedIterable(this, f); | |
| 4787 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "IterableBase", 0),
null]); | |
| 4788 return t1; | |
| 4789 }, | |
| 4790 forEach$1: function(_, f) { | 4760 forEach$1: function(_, f) { |
| 4791 var t1; | 4761 var t1; |
| 4792 for (t1 = this.get$iterator(this); t1.moveNext$0();) | 4762 for (t1 = this.get$iterator(this); t1.moveNext$0();) |
| 4793 f.call$1(t1.get$current()); | 4763 f.call$1(t1.get$current()); |
| 4794 }, | 4764 }, |
| 4795 toList$1$growable: function(_, growable) { | |
| 4796 return P.List_List$from(this, growable, H.getRuntimeTypeArgument(this, "Iter
ableBase", 0)); | |
| 4797 }, | |
| 4798 toList$0: function($receiver) { | |
| 4799 return this.toList$1$growable($receiver, true); | |
| 4800 }, | |
| 4801 get$length: function(_) { | 4765 get$length: function(_) { |
| 4802 var it, count; | 4766 var it, count; |
| 4803 it = this.get$iterator(this); | 4767 it = this.get$iterator(this); |
| 4804 for (count = 0; it.moveNext$0();) | 4768 for (count = 0; it.moveNext$0();) |
| 4805 ++count; | 4769 ++count; |
| 4806 return count; | 4770 return count; |
| 4807 }, | 4771 }, |
| 4808 elementAt$1: function(_, index) { | 4772 elementAt$1: function(_, index) { |
| 4809 var t1, remaining, element; | 4773 var t1, remaining, element; |
| 4810 if (index < 0) | 4774 if (index < 0) |
| 4811 throw H.wrapException(new P.RangeError("value " + index)); | 4775 throw H.wrapException(P.RangeError$value(index)); |
| 4812 for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) { | 4776 for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) { |
| 4813 element = t1.get$current(); | 4777 element = t1.get$current(); |
| 4814 if (remaining === 0) | 4778 if (remaining === 0) |
| 4815 return element; | 4779 return element; |
| 4816 --remaining; | 4780 --remaining; |
| 4817 } | 4781 } |
| 4818 throw H.wrapException(new P.RangeError("value " + index)); | 4782 throw H.wrapException(P.RangeError$value(index)); |
| 4783 }, |
| 4784 toString$0: function(_) { |
| 4785 return P._iterableToString(this); |
| 4819 } | 4786 } |
| 4820 }, | 4787 }, |
| 4821 | 4788 |
| 4822 ListBase: {"": "Object+ListMixin;", $isList: true, $asList: null}, | |
| 4823 | |
| 4824 ListMixin: {"": "Object;", | 4789 ListMixin: {"": "Object;", |
| 4825 get$iterator: function(receiver) { | 4790 get$iterator: function(receiver) { |
| 4826 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); | 4791 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); |
| 4827 }, | 4792 }, |
| 4828 elementAt$1: function(receiver, index) { | 4793 elementAt$1: function(receiver, index) { |
| 4829 return this.$index(receiver, index); | 4794 return this.$index(receiver, index); |
| 4830 }, | 4795 }, |
| 4831 forEach$1: function(receiver, action) { | 4796 forEach$1: function(receiver, action) { |
| 4832 var $length, i; | 4797 var $length, i; |
| 4833 if (typeof receiver !== "string" && (typeof receiver !== "object" || receive
r === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, recei
ver[init.dispatchPropertyName]))) | 4798 if (typeof receiver !== "string" && (typeof receiver !== "object" || receive
r === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, recei
ver[init.dispatchPropertyName]))) |
| 4834 return this.forEach$1$bailout(1, receiver, action); | 4799 return this.forEach$1$bailout(1, receiver, action); |
| 4835 $length = receiver.length; | 4800 $length = C.JS_CONST_ZYJ(receiver); |
| 4836 for (i = 0; i < $length; ++i) { | 4801 for (i = 0; i < $length; ++i) { |
| 4837 if (i >= receiver.length) | 4802 if (i >= C.JS_CONST_ZYJ(receiver)) |
| 4838 throw H.ioore(receiver, i); | 4803 throw H.ioore(receiver, i); |
| 4839 action.call$1(receiver[i]); | 4804 action.call$1(receiver[i]); |
| 4840 if ($length !== receiver.length) | 4805 if ($length !== C.JS_CONST_ZYJ(receiver)) |
| 4841 throw H.wrapException(new P.ConcurrentModificationError(receiver)); | 4806 throw H.wrapException(P.ConcurrentModificationError$(receiver)); |
| 4842 } | 4807 } |
| 4843 }, | 4808 }, |
| 4844 forEach$1$bailout: function(state0, receiver, action) { | 4809 forEach$1$bailout: function(state0, receiver, action) { |
| 4845 var $length, i; | 4810 var $length, i; |
| 4846 $length = this.get$length(receiver); | 4811 $length = this.get$length(receiver); |
| 4847 for (i = 0; i < $length; ++i) { | 4812 for (i = 0; i < $length; ++i) { |
| 4848 action.call$1(this.$index(receiver, i)); | 4813 action.call$1(this.$index(receiver, i)); |
| 4849 if ($length !== this.get$length(receiver)) | 4814 if ($length !== this.get$length(receiver)) |
| 4850 throw H.wrapException(new P.ConcurrentModificationError(receiver)); | 4815 throw H.wrapException(P.ConcurrentModificationError$(receiver)); |
| 4851 } | 4816 } |
| 4852 }, | 4817 }, |
| 4853 where$1: function(receiver, test) { | 4818 add$1: function(receiver, element) { |
| 4854 var t1 = new H.WhereIterable(receiver, test); | 4819 var t1 = this.get$length(receiver); |
| 4855 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(receiver, "ListMixin", 0)
]); | 4820 this.set$length(receiver, t1 + 1); |
| 4856 return t1; | 4821 this.$indexSet(receiver, t1, element); |
| 4857 }, | 4822 }, |
| 4858 map$1: function(receiver, f) { | 4823 removeLast$0: function(receiver) { |
| 4859 var t1 = new H.MappedListIterable(receiver, f); | 4824 var result; |
| 4860 H.setRuntimeTypeInfo(t1, [null, null]); | 4825 if (this.get$length(receiver) === 0) |
| 4861 return t1; | 4826 throw H.wrapException(P.StateError$("No elements")); |
| 4862 }, | 4827 result = this.$index(receiver, this.get$length(receiver) - 1); |
| 4863 toList$1$growable: function(receiver, growable) { | 4828 this.set$length(receiver, this.get$length(receiver) - 1); |
| 4864 var result, t1, t2, i, t3; | |
| 4865 if (typeof receiver !== "string" && (typeof receiver !== "object" || receive
r === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, recei
ver[init.dispatchPropertyName]))) | |
| 4866 return this.toList$1$growable$bailout(1, receiver, growable); | |
| 4867 if (growable) { | |
| 4868 result = P.List_List(null, H.getRuntimeTypeArgument(receiver, "ListMixin",
0)); | |
| 4869 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi
n", 0)]); | |
| 4870 C.JSArray_methods.set$length(result, receiver.length); | |
| 4871 } else { | |
| 4872 result = P.List_List(receiver.length, H.getRuntimeTypeArgument(receiver, "
ListMixin", 0)); | |
| 4873 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi
n", 0)]); | |
| 4874 } | |
| 4875 for (t1 = receiver.length, t2 = result.length, i = 0; i < t1; ++i) { | |
| 4876 t3 = receiver[i]; | |
| 4877 if (i >= t2) | |
| 4878 throw H.ioore(result, i); | |
| 4879 result[i] = t3; | |
| 4880 } | |
| 4881 return result; | 4829 return result; |
| 4882 }, | 4830 }, |
| 4883 toList$1$growable$bailout: function(state0, receiver, growable) { | |
| 4884 var result, i, t1; | |
| 4885 if (growable) { | |
| 4886 result = P.List_List(null, H.getRuntimeTypeArgument(receiver, "ListMixin",
0)); | |
| 4887 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi
n", 0)]); | |
| 4888 C.JSArray_methods.set$length(result, this.get$length(receiver)); | |
| 4889 } else { | |
| 4890 result = P.List_List(this.get$length(receiver), H.getRuntimeTypeArgument(r
eceiver, "ListMixin", 0)); | |
| 4891 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi
n", 0)]); | |
| 4892 } | |
| 4893 for (i = 0; i < this.get$length(receiver); ++i) { | |
| 4894 t1 = this.$index(receiver, i); | |
| 4895 if (i >= result.length) | |
| 4896 throw H.ioore(result, i); | |
| 4897 result[i] = t1; | |
| 4898 } | |
| 4899 return result; | |
| 4900 }, | |
| 4901 toList$0: function($receiver) { | |
| 4902 return this.toList$1$growable($receiver, true); | |
| 4903 }, | |
| 4904 toString$0: function(receiver) { | 4831 toString$0: function(receiver) { |
| 4905 var result, i, t1; | 4832 var result, t1; |
| 4906 for (i = 0; i < $.get$ListMixin__toStringList().length; ++i) { | 4833 t1 = $.get$_toStringVisiting(); |
| 4907 t1 = $.get$ListMixin__toStringList(); | 4834 if (t1.contains$1(t1, receiver)) |
| 4908 if (i >= t1.length) | 4835 return "[...]"; |
| 4909 throw H.ioore(t1, i); | |
| 4910 if (t1[i] === receiver) | |
| 4911 return "[...]"; | |
| 4912 } | |
| 4913 result = P.StringBuffer$(""); | 4836 result = P.StringBuffer$(""); |
| 4914 try { | 4837 try { |
| 4915 $.get$ListMixin__toStringList().push(receiver); | 4838 t1 = $.get$_toStringVisiting(); |
| 4839 t1.add$1(t1, receiver); |
| 4916 result.write$1("["); | 4840 result.write$1("["); |
| 4917 result.writeAll$2(receiver, ", "); | 4841 result.writeAll$2(receiver, ", "); |
| 4918 result.write$1("]"); | 4842 result.write$1("]"); |
| 4919 } finally { | 4843 } finally { |
| 4920 t1 = $.get$ListMixin__toStringList(); | 4844 t1 = $.get$_toStringVisiting(); |
| 4921 if (0 >= t1.length) | 4845 t1.remove$1(t1, receiver); |
| 4922 throw H.ioore(t1, 0); | |
| 4923 t1.pop(); | |
| 4924 } | 4846 } |
| 4925 return result.get$_contents(); | 4847 return result.get$_contents(); |
| 4926 }, | 4848 }, |
| 4927 $isList: true, | 4849 $isList: true, |
| 4928 $asList: null | 4850 $asList: null, |
| 4851 $isEfficientLength: true |
| 4929 }, | 4852 }, |
| 4930 | 4853 |
| 4931 Maps_mapToString_closure: {"": "Closure;box_0,result_1", | 4854 Maps_mapToString_closure: {"": "Closure;box_0,result_1", |
| 4932 call$2: function(k, v) { | 4855 call$2: function(k, v) { |
| 4933 var t1 = this.box_0; | 4856 var t1 = this.box_0; |
| 4934 if (!t1.first_0) | 4857 if (!t1.first_0) |
| 4935 this.result_1.write$1(", "); | 4858 this.result_1.write$1(", "); |
| 4936 t1.first_0 = false; | 4859 t1.first_0 = false; |
| 4937 t1 = this.result_1; | 4860 t1 = this.result_1; |
| 4938 t1.write$1(k); | 4861 t1.write$1(k); |
| 4939 t1.write$1(": "); | 4862 t1.write$1(": "); |
| 4940 t1.write$1(v); | 4863 t1.write$1(v); |
| 4941 } | 4864 }, |
| 4865 $is_args2: true |
| 4942 }, | 4866 }, |
| 4943 | 4867 |
| 4944 ListQueue: {"": "IterableBase;_table,_head,_tail,_modificationCount", | 4868 ListQueue: {"": "IterableBase;_table,_head,_tail,_modificationCount", |
| 4945 get$iterator: function(_) { | 4869 get$iterator: function(_) { |
| 4946 return P._ListQueueIterator$(this); | 4870 return P._ListQueueIterator$(this); |
| 4947 }, | 4871 }, |
| 4948 forEach$1: function(_, action) { | 4872 forEach$1: function(_, action) { |
| 4949 var modificationCount, i, t1; | 4873 var modificationCount, i, t1; |
| 4950 modificationCount = this._modificationCount; | 4874 modificationCount = this._modificationCount; |
| 4951 for (i = this._head; i !== this._tail; i = (i + 1 & this._table.length - 1)
>>> 0) { | 4875 for (i = this._head; i !== this._tail; i = (i + 1 & this._table.length - 1)
>>> 0) { |
| 4952 t1 = this._table; | 4876 t1 = this._table; |
| 4953 if (i < 0 || i >= t1.length) | 4877 if (i < 0 || i >= t1.length) |
| 4954 throw H.ioore(t1, i); | 4878 throw H.ioore(t1, i); |
| 4955 action.call$1(t1[i]); | 4879 action.call$1(t1[i]); |
| 4956 if (modificationCount !== this._modificationCount) | 4880 if (modificationCount !== this._modificationCount) |
| 4957 H.throwExpression(new P.ConcurrentModificationError(this)); | 4881 H.throwExpression(P.ConcurrentModificationError$(this)); |
| 4958 } | 4882 } |
| 4959 }, | 4883 }, |
| 4960 get$length: function(_) { | 4884 get$length: function(_) { |
| 4961 return (this._tail - this._head & this._table.length - 1) >>> 0; | 4885 return (this._tail - this._head & this._table.length - 1) >>> 0; |
| 4962 }, | 4886 }, |
| 4887 add$1: function(_, element) { |
| 4888 this._add$1(element); |
| 4889 }, |
| 4963 toString$0: function(_) { | 4890 toString$0: function(_) { |
| 4964 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | 4891 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); |
| 4965 }, | 4892 }, |
| 4966 removeFirst$0: function() { | 4893 removeFirst$0: function() { |
| 4967 var t1, t2, t3, result; | 4894 var t1, t2, t3, result; |
| 4968 if (this._head === this._tail) | 4895 if (this._head === this._tail) |
| 4969 throw H.wrapException(new P.StateError("No elements")); | 4896 throw H.wrapException(P.StateError$("No elements")); |
| 4970 this._modificationCount = this._modificationCount + 1; | 4897 this._modificationCount = this._modificationCount + 1; |
| 4971 t1 = this._table; | 4898 t1 = this._table; |
| 4972 t2 = this._head; | 4899 t2 = this._head; |
| 4973 t3 = t1.length; | 4900 t3 = t1.length; |
| 4974 if (t2 < 0 || t2 >= t3) | 4901 if (t2 < 0 || t2 >= t3) |
| 4975 throw H.ioore(t1, t2); | 4902 throw H.ioore(t1, t2); |
| 4976 result = t1[t2]; | 4903 result = t1[t2]; |
| 4977 this._head = (t2 + 1 & t3 - 1) >>> 0; | 4904 this._head = (t2 + 1 & t3 - 1) >>> 0; |
| 4978 return result; | 4905 return result; |
| 4979 }, | 4906 }, |
| 4907 removeLast$0: function(_) { |
| 4908 var t1, t2; |
| 4909 if (this._head === this._tail) |
| 4910 throw H.wrapException(P.StateError$("No elements")); |
| 4911 this._modificationCount = this._modificationCount + 1; |
| 4912 this._tail = (this._tail - 1 & this._table.length - 1) >>> 0; |
| 4913 t1 = this._table; |
| 4914 t2 = this._tail; |
| 4915 if (t2 < 0 || t2 >= t1.length) |
| 4916 throw H.ioore(t1, t2); |
| 4917 return t1[t2]; |
| 4918 }, |
| 4980 _add$1: function(element) { | 4919 _add$1: function(element) { |
| 4981 var t1, t2, t3; | 4920 var t1, t2, t3; |
| 4982 t1 = this._table; | 4921 t1 = this._table; |
| 4983 t2 = this._tail; | 4922 t2 = this._tail; |
| 4984 t3 = t1.length; | 4923 t3 = t1.length; |
| 4985 if (t2 < 0 || t2 >= t3) | 4924 if (t2 < 0 || t2 >= t3) |
| 4986 throw H.ioore(t1, t2); | 4925 throw H.ioore(t1, t2); |
| 4987 t1[t2] = element; | 4926 t1[t2] = element; |
| 4988 this._tail = (t2 + 1 & t3 - 1) >>> 0; | 4927 this._tail = (t2 + 1 & t3 - 1) >>> 0; |
| 4989 if (this._head === this._tail) | 4928 if (this._head === this._tail) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 5004 this._head = 0; | 4943 this._head = 0; |
| 5005 this._tail = this._table.length; | 4944 this._tail = this._table.length; |
| 5006 this._table = newTable; | 4945 this._table = newTable; |
| 5007 }, | 4946 }, |
| 5008 ListQueue$1: function(initialCapacity, $E) { | 4947 ListQueue$1: function(initialCapacity, $E) { |
| 5009 var t1 = P.List_List(8, $E); | 4948 var t1 = P.List_List(8, $E); |
| 5010 H.setRuntimeTypeInfo(t1, [$E]); | 4949 H.setRuntimeTypeInfo(t1, [$E]); |
| 5011 this._table = t1; | 4950 this._table = t1; |
| 5012 }, | 4951 }, |
| 5013 $asIterableBase: null, | 4952 $asIterableBase: null, |
| 4953 $isEfficientLength: true, |
| 5014 static: { | 4954 static: { |
| 5015 "": "ListQueue__INITIAL_CAPACITY", | 4955 "": "ListQueue__INITIAL_CAPACITY", |
| 5016 ListQueue$: function(initialCapacity, $E) { | 4956 ListQueue$: function(initialCapacity, $E) { |
| 5017 var t1 = new P.ListQueue(null, 0, 0, 0); | 4957 var t1 = new P.ListQueue(null, 0, 0, 0); |
| 5018 H.setRuntimeTypeInfo(t1, [$E]); | 4958 H.setRuntimeTypeInfo(t1, [$E]); |
| 5019 t1.ListQueue$1(initialCapacity, $E); | 4959 t1.ListQueue$1(initialCapacity, $E); |
| 5020 return t1; | 4960 return t1; |
| 5021 }} | 4961 }} |
| 5022 | 4962 |
| 5023 }, | 4963 }, |
| 5024 | 4964 |
| 5025 _ListQueueIterator: {"": "Object;_queue,_end,_modificationCount,_position,_colle
ction$_current", | 4965 _ListQueueIterator: {"": "Object;_queue,_end,_modificationCount,_position,_colle
ction$_current", |
| 5026 get$current: function() { | 4966 get$current: function() { |
| 5027 return this._collection$_current; | 4967 return this._collection$_current; |
| 5028 }, | 4968 }, |
| 5029 moveNext$0: function() { | 4969 moveNext$0: function() { |
| 5030 var t1, t2, t3; | 4970 var t1, t2, t3; |
| 5031 t1 = this._queue; | 4971 t1 = this._queue; |
| 5032 if (this._modificationCount !== t1._modificationCount) | 4972 if (this._modificationCount !== t1._modificationCount) |
| 5033 H.throwExpression(new P.ConcurrentModificationError(t1)); | 4973 H.throwExpression(P.ConcurrentModificationError$(t1)); |
| 5034 t2 = this._position; | 4974 t2 = this._position; |
| 5035 if (t2 === this._end) { | 4975 if (t2 === this._end) { |
| 5036 this._collection$_current = null; | 4976 this._collection$_current = null; |
| 5037 return false; | 4977 return false; |
| 5038 } | 4978 } |
| 5039 t3 = t1._table; | 4979 t3 = t1._table; |
| 5040 if (t2 < 0 || t2 >= t3.length) | 4980 if (t2 < 0 || t2 >= t3.length) |
| 5041 throw H.ioore(t3, t2); | 4981 throw H.ioore(t3, t2); |
| 5042 this._collection$_current = t3[t2]; | 4982 this._collection$_current = t3[t2]; |
| 5043 this._position = (this._position + 1 & t1._table.length - 1) >>> 0; | 4983 this._position = (this._position + 1 & t1._table.length - 1) >>> 0; |
| 5044 return true; | 4984 return true; |
| 5045 }, | 4985 }, |
| 5046 static: { | 4986 static: { |
| 5047 _ListQueueIterator$: function(queue) { | 4987 _ListQueueIterator$: function(queue) { |
| 5048 return new P._ListQueueIterator(queue, queue._tail, queue._modificationCount,
queue._head, null); | 4988 return new P._ListQueueIterator(queue, queue._tail, queue._modificationCount,
queue._head, null); |
| 5049 }} | 4989 }} |
| 5050 | 4990 |
| 5051 }}], | 4991 }}], |
| 5052 ["dart.convert", "dart:convert", , P, { | |
| 5053 _convertJsonToDart: function(json, reviver) { | |
| 5054 var revive = new P._convertJsonToDart_closure(); | |
| 5055 return revive.call$2(null, new P._convertJsonToDart_walk(revive).call$1(json))
; | |
| 5056 }, | |
| 5057 | |
| 5058 _parseJson: function(source, reviver) { | |
| 5059 var parsed, e, t1, exception; | |
| 5060 t1 = source; | |
| 5061 if (typeof t1 !== "string") | |
| 5062 throw H.wrapException(new P.ArgumentError(source)); | |
| 5063 parsed = null; | |
| 5064 try { | |
| 5065 parsed = JSON.parse(source); | |
| 5066 } catch (exception) { | |
| 5067 t1 = H.unwrapException(exception); | |
| 5068 e = t1; | |
| 5069 throw H.wrapException(new P.FormatException(String(e))); | |
| 5070 } | |
| 5071 | |
| 5072 return P._convertJsonToDart(parsed, reviver); | |
| 5073 }, | |
| 5074 | |
| 5075 _convertJsonToDart_closure: {"": "Closure;", | |
| 5076 call$2: function(key, value) { | |
| 5077 return value; | |
| 5078 } | |
| 5079 }, | |
| 5080 | |
| 5081 _convertJsonToDart_walk: {"": "Closure;revive_0", | |
| 5082 call$1: function(e) { | |
| 5083 var list, t1, i, keys, map, key, proto; | |
| 5084 if (e == null || typeof e != "object") | |
| 5085 return e; | |
| 5086 if (Object.getPrototypeOf(e) === Array.prototype) { | |
| 5087 list = e; | |
| 5088 for (t1 = this.revive_0, i = 0; i < list.length; ++i) | |
| 5089 list[i] = t1.call$2(i, this.call$1(list[i])); | |
| 5090 return list; | |
| 5091 } | |
| 5092 keys = Object.keys(e); | |
| 5093 map = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, null, n
ull, null)); | |
| 5094 for (t1 = this.revive_0, i = 0; i < keys.length; ++i) { | |
| 5095 key = keys[i]; | |
| 5096 map.$indexSet(map, key, t1.call$2(key, this.call$1(e[key]))); | |
| 5097 } | |
| 5098 proto = e.__proto__; | |
| 5099 if (typeof proto !== "undefined" && proto !== Object.prototype) | |
| 5100 map.$indexSet(map, "__proto__", t1.call$2("__proto__", this.call$1(proto))
); | |
| 5101 return map; | |
| 5102 } | |
| 5103 }, | |
| 5104 | |
| 5105 Converter: {"": "Object;"}, | |
| 5106 | |
| 5107 JsonDecoder: {"": "Converter;_reviver"}}], | |
| 5108 ["dart.core", "dart:core", , P, { | 4992 ["dart.core", "dart:core", , P, { |
| 5109 _symbolToString: function(symbol) { | 4993 _symbolToString: function(symbol) { |
| 5110 return H.Symbol_getName(symbol); | 4994 return H.Symbol_getName(symbol); |
| 5111 }, | 4995 }, |
| 5112 | 4996 |
| 5113 Error_safeToString: function(object) { | 4997 Error_safeToString: function(object) { |
| 5114 var buffer, t1, i, codeUnit, t2, charCodes; | 4998 var buffer, t1, i, codeUnit, t2, charCodes; |
| 5115 if (typeof object === "number" && Math.floor(object) === object || typeof obje
ct === "number" || typeof object === "boolean" || null == object) | 4999 if (typeof object === "number" && Math.floor(object) === object || typeof obje
ct === "number" || typeof object === "boolean" || null == object) |
| 5116 return J.toString$0(object); | 5000 return J.toString$0(object); |
| 5117 if (typeof object === "string") { | 5001 if (typeof object === "string") { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5150 t2 = H.Primitives_stringFromCharCodes(charCodes); | 5034 t2 = H.Primitives_stringFromCharCodes(charCodes); |
| 5151 buffer._contents = buffer._contents + t2; | 5035 buffer._contents = buffer._contents + t2; |
| 5152 } | 5036 } |
| 5153 } | 5037 } |
| 5154 buffer._contents = buffer._contents + "\""; | 5038 buffer._contents = buffer._contents + "\""; |
| 5155 return buffer._contents; | 5039 return buffer._contents; |
| 5156 } | 5040 } |
| 5157 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | 5041 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; |
| 5158 }, | 5042 }, |
| 5159 | 5043 |
| 5044 Exception_Exception: function(message) { |
| 5045 return new P._ExceptionImplementation(message); |
| 5046 }, |
| 5047 |
| 5160 identical: function(a, b) { | 5048 identical: function(a, b) { |
| 5161 return a == null ? b == null : a === b; | 5049 return a == null ? b == null : a === b; |
| 5162 }, | 5050 }, |
| 5163 | 5051 |
| 5164 identityHashCode: function(object) { | 5052 identityHashCode: function(object) { |
| 5165 return H.objectHashCode(object); | 5053 return H.objectHashCode(object); |
| 5166 }, | 5054 }, |
| 5167 | 5055 |
| 5168 List_List: function($length, $E) { | 5056 List_List: function($length, $E) { |
| 5169 if ($length == null) | 5057 if ($length == null) |
| 5170 return new Array(0); | 5058 return new Array(0); |
| 5171 if (typeof $length !== "number" || Math.floor($length) !== $length || $length
< 0) | 5059 if (typeof $length !== "number" || Math.floor($length) !== $length || $length
< 0) |
| 5172 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + H.S($length) + ".")); | 5060 throw H.wrapException(P.ArgumentError$("Length must be a positive integer: "
+ H.S($length) + ".")); |
| 5173 return H.Primitives_newFixedList($length); | 5061 return H.Primitives_newFixedList($length); |
| 5174 }, | 5062 }, |
| 5175 | 5063 |
| 5176 List_List$filled: function($length, fill, $E) { | 5064 List_List$filled: function($length, fill, $E) { |
| 5177 var result, t1, i; | 5065 var result, t1, i; |
| 5178 if ($length < 0) | 5066 if ($length < 0) |
| 5179 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + $length + ".")); | 5067 throw H.wrapException(P.ArgumentError$("Length must be a positive integer: "
+ $length + ".")); |
| 5180 result = H.Primitives_newFixedList($length); | 5068 result = H.Primitives_newFixedList($length); |
| 5181 if ($length !== 0 && true) | 5069 if ($length !== 0 && true) |
| 5182 for (t1 = result.length, i = 0; i < t1; ++i) | 5070 for (t1 = result.length, i = 0; i < t1; ++i) |
| 5183 result[i] = fill; | 5071 result[i] = fill; |
| 5184 return result; | 5072 return result; |
| 5185 }, | 5073 }, |
| 5186 | 5074 |
| 5187 List_List$from: function(other, growable, $E) { | 5075 List_List$from: function(other, growable, $E) { |
| 5188 var list, t1, $length, fixedList, t2, i, t3; | 5076 var list, t1, $length, fixedList, t2, i, t3; |
| 5189 list = P.List_List(null, $E); | 5077 list = P.List_List(null, $E); |
| 5190 H.setRuntimeTypeInfo(list, [$E]); | 5078 H.setRuntimeTypeInfo(list, [$E]); |
| 5191 for (t1 = J.get$iterator$ax(other); t1.moveNext$0();) | 5079 for (t1 = J.get$iterator$ax(other); t1.moveNext$0();) |
| 5192 list.push(t1.get$current()); | 5080 list.push(t1.get$current()); |
| 5193 if (growable) | 5081 if (growable) |
| 5194 return list; | 5082 return list; |
| 5195 $length = list.length; | 5083 $length = list.length; |
| 5196 fixedList = P.List_List($length, $E); | 5084 fixedList = P.List_List($length, $E); |
| 5197 H.setRuntimeTypeInfo(fixedList, [$E]); | 5085 H.setRuntimeTypeInfo(fixedList, [$E]); |
| 5198 for (t1 = list.length, t2 = fixedList.length, i = 0; i < $length; ++i) { | 5086 for (t1 = list.length, t2 = fixedList.length, i = 0; i < $length; ++i) { |
| 5199 if (i >= t1) | 5087 if (i >= t1) |
| 5200 throw H.ioore(list, i); | 5088 throw H.ioore(list, i); |
| 5201 t3 = list[i]; | 5089 t3 = list[i]; |
| 5202 if (i >= t2) | 5090 if (i >= t2) |
| 5203 throw H.ioore(fixedList, i); | 5091 throw H.ioore(fixedList, i); |
| 5204 fixedList[i] = t3; | 5092 fixedList[i] = t3; |
| 5205 } | 5093 } |
| 5206 return fixedList; | 5094 return fixedList; |
| 5207 }, | 5095 }, |
| 5208 | 5096 |
| 5097 print: function(object) { |
| 5098 var line = J.toString$0(object); |
| 5099 H.printToConsole(line); |
| 5100 }, |
| 5101 |
| 5209 NoSuchMethodError_toString_closure: {"": "Closure;box_0", | 5102 NoSuchMethodError_toString_closure: {"": "Closure;box_0", |
| 5210 call$2: function(key, value) { | 5103 call$2: function(key, value) { |
| 5211 var t1 = this.box_0; | 5104 var t1 = this.box_0; |
| 5212 if (t1.i_1 > 0) | 5105 if (t1.i_1 > 0) |
| 5213 t1.sb_0.write$1(", "); | 5106 t1.sb_0.write$1(", "); |
| 5214 t1.sb_0.write$1(P._symbolToString(key)); | 5107 t1.sb_0.write$1(P._symbolToString(key)); |
| 5215 } | 5108 }, |
| 5109 $is_args2: true |
| 5216 }, | 5110 }, |
| 5217 | 5111 |
| 5218 Duration: {"": "Object;_duration", | 5112 Duration: {"": "Object;_duration", |
| 5219 $lt: function(_, other) { | 5113 $lt: function(_, other) { |
| 5220 var t1 = other.get$_duration(); | 5114 var t1 = other.get$_duration(); |
| 5221 if (typeof t1 !== "number") | 5115 if (typeof t1 !== "number") |
| 5222 throw H.iae(t1); | 5116 throw H.iae(t1); |
| 5223 return C.JSNumber_methods.$lt(this._duration, t1); | 5117 return C.JSNumber_methods.$lt(this._duration, t1); |
| 5224 }, | 5118 }, |
| 5225 $gt: function(_, other) { | 5119 $gt: function(_, other) { |
| 5226 var t1 = other.get$_duration(); | 5120 var t1 = other.get$_duration(); |
| 5227 if (typeof t1 !== "number") | 5121 if (typeof t1 !== "number") |
| 5228 throw H.iae(t1); | 5122 throw H.iae(t1); |
| 5229 return C.JSNumber_methods.$gt(this._duration, t1); | 5123 return C.JSNumber_methods.$gt(this._duration, t1); |
| 5230 }, | 5124 }, |
| 5231 $ge: function(_, other) { | 5125 $ge: function(_, other) { |
| 5232 var t1 = other.get$_duration(); | 5126 var t1 = other.get$_duration(); |
| 5233 if (typeof t1 !== "number") | 5127 if (typeof t1 !== "number") |
| 5234 throw H.iae(t1); | 5128 throw H.iae(t1); |
| 5235 return C.JSNumber_methods.$ge(this._duration, t1); | 5129 return C.JSNumber_methods.$ge(this._duration, t1); |
| 5236 }, | 5130 }, |
| 5237 get$inMilliseconds: function() { | |
| 5238 return C.JSNumber_methods.$tdiv(this._duration, 1000); | |
| 5239 }, | |
| 5240 $eq: function(_, other) { | 5131 $eq: function(_, other) { |
| 5241 var t1; | 5132 var t1; |
| 5242 if (other == null) | 5133 if (other == null) |
| 5243 return false; | 5134 return false; |
| 5244 t1 = J.getInterceptor(other); | 5135 t1 = J.getInterceptor(other); |
| 5245 if (typeof other !== "object" || other === null || !t1.$isDuration) | 5136 if (typeof other !== "object" || other === null || !t1.$isDuration) |
| 5246 return false; | 5137 return false; |
| 5247 return this._duration === other._duration; | 5138 return this._duration === other._duration; |
| 5248 }, | 5139 }, |
| 5249 get$hashCode: function(_) { | 5140 get$hashCode: function(_) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5287 }, | 5178 }, |
| 5288 | 5179 |
| 5289 Duration_toString_twoDigits: {"": "Closure;", | 5180 Duration_toString_twoDigits: {"": "Closure;", |
| 5290 call$1: function(n) { | 5181 call$1: function(n) { |
| 5291 if (J.$ge$n(n, 10)) | 5182 if (J.$ge$n(n, 10)) |
| 5292 return H.S(n); | 5183 return H.S(n); |
| 5293 return "0" + H.S(n); | 5184 return "0" + H.S(n); |
| 5294 } | 5185 } |
| 5295 }, | 5186 }, |
| 5296 | 5187 |
| 5297 Error: {"": "Object;", $isError: true}, | 5188 Error: {"": "Object;", |
| 5189 get$stackTrace: function() { |
| 5190 return new H._StackTrace(this.$thrownJsError, null); |
| 5191 }, |
| 5192 $isError: true |
| 5193 }, |
| 5298 | 5194 |
| 5299 NullThrownError: {"": "Error;", | 5195 NullThrownError: {"": "Error;", |
| 5300 toString$0: function(_) { | 5196 toString$0: function(_) { |
| 5301 return "Throw of null."; | 5197 return "Throw of null."; |
| 5302 } | 5198 } |
| 5303 }, | 5199 }, |
| 5304 | 5200 |
| 5305 ArgumentError: {"": "Error;message", | 5201 ArgumentError: {"": "Error;message", |
| 5306 toString$0: function(_) { | 5202 toString$0: function(_) { |
| 5307 var t1 = this.message; | 5203 var t1 = this.message; |
| 5308 if (t1 != null) | 5204 if (t1 != null) |
| 5309 return "Illegal argument(s): " + H.S(t1); | 5205 return "Illegal argument(s): " + H.S(t1); |
| 5310 return "Illegal argument(s)"; | 5206 return "Illegal argument(s)"; |
| 5311 } | 5207 }, |
| 5208 static: { |
| 5209 ArgumentError$: function(message) { |
| 5210 return new P.ArgumentError(message); |
| 5211 }} |
| 5212 |
| 5312 }, | 5213 }, |
| 5313 | 5214 |
| 5314 RangeError: {"": "ArgumentError;message", | 5215 RangeError: {"": "ArgumentError;message", |
| 5315 toString$0: function(_) { | 5216 toString$0: function(_) { |
| 5316 return "RangeError: " + H.S(this.message); | 5217 return "RangeError: " + H.S(this.message); |
| 5317 } | 5218 }, |
| 5219 static: { |
| 5220 RangeError$value: function(value) { |
| 5221 return new P.RangeError("value " + H.S(value)); |
| 5222 }, |
| 5223 |
| 5224 RangeError$range: function(value, start, end) { |
| 5225 return new P.RangeError("value " + H.S(value) + " not in range " + start + "..
" + H.S(end)); |
| 5226 }} |
| 5227 |
| 5318 }, | 5228 }, |
| 5319 | 5229 |
| 5320 UnsupportedError: {"": "Error;message", | 5230 UnsupportedError: {"": "Error;message", |
| 5321 toString$0: function(_) { | 5231 toString$0: function(_) { |
| 5322 return "Unsupported operation: " + this.message; | 5232 return "Unsupported operation: " + this.message; |
| 5323 } | 5233 }, |
| 5234 static: { |
| 5235 UnsupportedError$: function(message) { |
| 5236 return new P.UnsupportedError(message); |
| 5237 }} |
| 5238 |
| 5324 }, | 5239 }, |
| 5325 | 5240 |
| 5326 StateError: {"": "Error;message", | 5241 StateError: {"": "Error;message", |
| 5327 toString$0: function(_) { | 5242 toString$0: function(_) { |
| 5328 return "Bad state: " + this.message; | 5243 return "Bad state: " + this.message; |
| 5329 } | 5244 }, |
| 5245 static: { |
| 5246 StateError$: function(message) { |
| 5247 return new P.StateError(message); |
| 5248 }} |
| 5249 |
| 5330 }, | 5250 }, |
| 5331 | 5251 |
| 5332 ConcurrentModificationError: {"": "Error;modifiedObject", | 5252 ConcurrentModificationError: {"": "Error;modifiedObject", |
| 5333 toString$0: function(_) { | 5253 toString$0: function(_) { |
| 5334 var t1 = this.modifiedObject; | 5254 var t1 = this.modifiedObject; |
| 5335 if (t1 == null) | 5255 if (t1 == null) |
| 5336 return "Concurrent modification during iteration."; | 5256 return "Concurrent modification during iteration."; |
| 5337 return "Concurrent modification during iteration: " + H.S(P.Error_safeToStri
ng(t1)) + "."; | 5257 return "Concurrent modification during iteration: " + H.S(P.Error_safeToStri
ng(t1)) + "."; |
| 5338 } | 5258 }, |
| 5259 static: { |
| 5260 ConcurrentModificationError$: function(modifiedObject) { |
| 5261 return new P.ConcurrentModificationError(modifiedObject); |
| 5262 }} |
| 5263 |
| 5339 }, | 5264 }, |
| 5340 | 5265 |
| 5341 StackOverflowError: {"": "Object;", | 5266 StackOverflowError: {"": "Object;", |
| 5342 toString$0: function(_) { | 5267 toString$0: function(_) { |
| 5343 return "Stack Overflow"; | 5268 return "Stack Overflow"; |
| 5344 }, | 5269 }, |
| 5270 get$stackTrace: function() { |
| 5271 return; |
| 5272 }, |
| 5345 $isError: true | 5273 $isError: true |
| 5346 }, | 5274 }, |
| 5347 | 5275 |
| 5348 CyclicInitializationError: {"": "Error;variableName", | 5276 CyclicInitializationError: {"": "Error;variableName", |
| 5349 toString$0: function(_) { | 5277 toString$0: function(_) { |
| 5350 return "Reading static variable '" + this.variableName + "' during its initi
alization"; | 5278 return "Reading static variable '" + this.variableName + "' during its initi
alization"; |
| 5351 } | 5279 }, |
| 5280 static: { |
| 5281 CyclicInitializationError$: function(variableName) { |
| 5282 return new P.CyclicInitializationError(variableName); |
| 5283 }} |
| 5284 |
| 5352 }, | 5285 }, |
| 5353 | 5286 |
| 5354 _ExceptionImplementation: {"": "Object;message", | 5287 _ExceptionImplementation: {"": "Object;message", |
| 5355 toString$0: function(_) { | 5288 toString$0: function(_) { |
| 5356 var t1 = this.message; | 5289 var t1 = this.message; |
| 5357 if (t1 == null) | 5290 if (t1 == null) |
| 5358 return "Exception"; | 5291 return "Exception"; |
| 5359 return "Exception: " + H.S(t1); | 5292 return "Exception: " + H.S(t1); |
| 5360 }, | 5293 }, |
| 5361 $isException: true | 5294 $isException: true |
| 5362 }, | 5295 }, |
| 5363 | 5296 |
| 5364 FormatException: {"": "Object;message", | |
| 5365 toString$0: function(_) { | |
| 5366 return "FormatException: " + this.message; | |
| 5367 }, | |
| 5368 $isException: true | |
| 5369 }, | |
| 5370 | |
| 5371 Expando: {"": "Object;name", | 5297 Expando: {"": "Object;name", |
| 5372 toString$0: function(_) { | 5298 toString$0: function(_) { |
| 5373 return "Expando:" + this.name; | 5299 return "Expando:" + this.name; |
| 5374 }, | 5300 }, |
| 5375 $index: function(_, object) { | 5301 $index: function(_, object) { |
| 5376 var values = H.Primitives_getProperty(object, "expando$values"); | 5302 var values = H.Primitives_getProperty(object, "expando$values"); |
| 5377 return values == null ? null : H.Primitives_getProperty(values, this._getKey
$0()); | 5303 return values == null ? null : H.Primitives_getProperty(values, this._getKey
$0()); |
| 5378 }, | 5304 }, |
| 5379 $indexSet: function(_, object, value) { | 5305 $indexSet: function(_, object, value) { |
| 5380 var values = H.Primitives_getProperty(object, "expando$values"); | 5306 var values = H.Primitives_getProperty(object, "expando$values"); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5398 static: { | 5324 static: { |
| 5399 "": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount
", | 5325 "": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount
", |
| 5400 } | 5326 } |
| 5401 | 5327 |
| 5402 }, | 5328 }, |
| 5403 | 5329 |
| 5404 Function: {"": "Object;"}, | 5330 Function: {"": "Object;"}, |
| 5405 | 5331 |
| 5406 Iterator: {"": "Object;"}, | 5332 Iterator: {"": "Object;"}, |
| 5407 | 5333 |
| 5408 Map: {"": "Object;", $isMap: true}, | |
| 5409 | |
| 5410 Null: {"": "Object;", | 5334 Null: {"": "Object;", |
| 5411 toString$0: function(_) { | 5335 toString$0: function(_) { |
| 5412 return "null"; | 5336 return "null"; |
| 5413 } | 5337 } |
| 5414 }, | 5338 }, |
| 5415 | 5339 |
| 5416 Object: {"": ";", | 5340 Object: {"": ";", |
| 5417 $eq: function(_, other) { | 5341 $eq: function(_, other) { |
| 5418 return this === other; | 5342 return this === other; |
| 5419 }, | 5343 }, |
| 5420 get$hashCode: function(_) { | 5344 get$hashCode: function(_) { |
| 5421 return H.Primitives_objectHashCode(this); | 5345 return H.Primitives_objectHashCode(this); |
| 5422 }, | 5346 }, |
| 5423 toString$0: function(_) { | 5347 toString$0: function(_) { |
| 5424 return H.Primitives_objectToString(this); | 5348 return H.Primitives_objectToString(this); |
| 5425 }, | 5349 } |
| 5426 $isObject: true | |
| 5427 }, | 5350 }, |
| 5428 | 5351 |
| 5429 StackTrace: {"": "Object;"}, | 5352 StackTrace: {"": "Object;"}, |
| 5430 | 5353 |
| 5431 StringBuffer: {"": "Object;_contents<", | 5354 StringBuffer: {"": "Object;_contents<", |
| 5432 get$length: function(_) { | 5355 get$length: function(_) { |
| 5433 return this._contents.length; | 5356 return this._contents.length; |
| 5434 }, | 5357 }, |
| 5435 write$1: function(obj) { | 5358 write$1: function(obj) { |
| 5436 if (typeof obj !== "string") | 5359 if (typeof obj !== "string") |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5470 }, | 5393 }, |
| 5471 static: { | 5394 static: { |
| 5472 StringBuffer$: function($content) { | 5395 StringBuffer$: function($content) { |
| 5473 var t1 = new P.StringBuffer(""); | 5396 var t1 = new P.StringBuffer(""); |
| 5474 t1.StringBuffer$1($content); | 5397 t1.StringBuffer$1($content); |
| 5475 return t1; | 5398 return t1; |
| 5476 }} | 5399 }} |
| 5477 | 5400 |
| 5478 }, | 5401 }, |
| 5479 | 5402 |
| 5480 Symbol: {"": "Object;", $isSymbol: true}}], | 5403 Symbol: {"": "Object;"}}], |
| 5481 ["dart.dom.html", "dart:html", , W, { | 5404 ["dart.dom.html", "dart:html", , W, { |
| 5482 HttpRequest_getString: function(url, onProgress, withCredentials) { | 5405 Geolocation_getCurrentPosition_closure: {"": "Closure;this_0,completer_1", |
| 5483 return W.HttpRequest_request(url, null, null, onProgress, null, null, null, wi
thCredentials).then$1(new W.HttpRequest_getString_closure()); | 5406 call$1: function(position) { |
| 5484 }, | 5407 var t1, t2; |
| 5485 | 5408 t1 = C.Geolocation_methods._ensurePosition$1(this.this_0, position); |
| 5486 HttpRequest_request: function(url, method, mimeType, onProgress, requestHeaders,
responseType, sendData, withCredentials) { | 5409 t2 = this.completer_1.future; |
| 5487 var t1, completer, xhr, t2; | 5410 if (t2._state !== 0) |
| 5488 t1 = W.HttpRequest; | 5411 H.throwExpression(new P.StateError("Future already completed")); |
| 5489 completer = new P._AsyncCompleter(P._Future$(t1)); | 5412 t2._asyncComplete$1(t1); |
| 5490 H.setRuntimeTypeInfo(completer, [t1]); | 5413 } |
| 5491 xhr = new XMLHttpRequest(); | 5414 }, |
| 5492 C.HttpRequest_methods.open$3$async(xhr, "GET", url, true); | 5415 |
| 5493 t1 = new W._EventStream(xhr, C.EventStreamProvider_load._eventType, false); | 5416 Geolocation_getCurrentPosition_closure0: {"": "Closure;completer_2", |
| 5494 H.setRuntimeTypeInfo(t1, [null]); | 5417 call$1: function(error) { |
| 5495 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStre
amSubscription__wrapZone(new W.HttpRequest_request_closure(completer, xhr)), t1.
_useCapture); | 5418 var t1 = this.completer_2.future; |
| 5496 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); | 5419 if (t1._state !== 0) |
| 5497 t2._tryResume$0(); | 5420 H.throwExpression(new P.StateError("Future already completed")); |
| 5498 t2 = new W._EventStream(xhr, C.EventStreamProvider_error._eventType, false); | 5421 t1._asyncCompleteError$2(error, null); |
| 5499 H.setRuntimeTypeInfo(t2, [null]); | 5422 } |
| 5500 t1 = new W._EventStreamSubscription(0, t2._target, t2._eventType, W._EventStre
amSubscription__wrapZone(new W.HttpRequest_request_closure0(completer)), t2._use
Capture); | 5423 }, |
| 5501 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(t2, "_EventStream", 0)]); | 5424 |
| 5502 t1._tryResume$0(); | 5425 Geolocation_watchPosition_closure0: {"": "Closure;box_0,this_1,options_2", |
| 5503 xhr.send(); | 5426 call$0: function() { |
| 5504 return completer.future; | 5427 var t1, t2; |
| 5505 }, | 5428 t1 = this.this_1; |
| 5506 | 5429 t2 = this.box_0; |
| 5507 _convertNativeToDart_Window: function(win) { | 5430 t2.watchId_0 = C.Geolocation_methods._watchPosition$3(t1, new W.Geolocation_
watchPosition__closure(t2, t1), new W.Geolocation_watchPosition__closure0(t2), t
his.options_2); |
| 5508 if (win == null) | 5431 } |
| 5509 return; | 5432 }, |
| 5510 return W._DOMWindowCrossFrame__createSafe(win); | 5433 |
| 5511 }, | 5434 Geolocation_watchPosition__closure: {"": "Closure;box_0,this_3", |
| 5512 | 5435 call$1: function(position) { |
| 5513 _ChildrenElementList: {"": "ListBase;_element,_childElements", | 5436 var t1, t2; |
| 5514 get$length: function(_) { | 5437 t1 = this.box_0.controller_1; |
| 5515 return this._childElements.length; | 5438 t2 = C.Geolocation_methods._ensurePosition$1(this.this_3, position); |
| 5516 }, | 5439 if (t1._state >= 4) |
| 5517 $index: function(_, index) { | 5440 H.throwExpression(t1._badEventState$0()); |
| 5518 var t1 = this._childElements; | 5441 t1._async$_add$1(t2); |
| 5519 if (index >>> 0 !== index || index >= t1.length) | 5442 } |
| 5520 throw H.ioore(t1, index); | 5443 }, |
| 5521 return t1[index]; | 5444 |
| 5522 }, | 5445 Geolocation_watchPosition__closure0: {"": "Closure;box_0", |
| 5523 $indexSet: function(_, index, value) { | 5446 call$1: function(error) { |
| 5524 var t1 = this._childElements; | 5447 this.box_0.controller_1.addError$1(error); |
| 5525 if (index >>> 0 !== index || index >= t1.length) | 5448 } |
| 5526 throw H.ioore(t1, index); | 5449 }, |
| 5527 this._element.replaceChild(value, t1[index]); | 5450 |
| 5528 }, | 5451 Geolocation_watchPosition_closure: {"": "Closure;box_0,this_4", |
| 5529 add$1: function(_, value) { | 5452 call$0: function() { |
| 5530 this._element.appendChild(value); | 5453 this.this_4.clearWatch(this.box_0.watchId_0); |
| 5531 return value; | 5454 } |
| 5532 }, | 5455 }, |
| 5533 get$iterator: function(_) { | 5456 |
| 5534 var t1 = this.toList$0(this); | 5457 _GeopositionWrapper: {"": "Object;_ptr", |
| 5535 return new H.ListIterator(t1, t1.length, 0, null); | 5458 get$coords: function(_) { |
| 5536 }, | 5459 return this._ptr.coords; |
| 5537 $asList: function() { | 5460 }, |
| 5538 return [W.Element]; | 5461 $isGeoposition: true |
| 5539 } | 5462 }, |
| 5540 }, | 5463 |
| 5541 | 5464 HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseElem
ent|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|HTML
ContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialo
gElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFieldSetElemen
t|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadEle
ment|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLI
nputElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|H
TMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMetaElement
|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLOptGroupElement|HTMLOption
Element|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|H
TMLProgressElement|HTMLQuoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSour
ceElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCell
Element|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableH
eaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement
|HTMLTextAreaElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnkn
ownElement;HTMLElement"}, |
| 5542 Interceptor_ListMixin: {"": "Interceptor+ListMixin;", $isList: true, $asList: nu
ll}, | 5465 |
| 5543 | 5466 AnchorElement: {"": "HtmlElement;", |
| 5544 Interceptor_ListMixin_ImmutableListMixin: {"": "Interceptor_ListMixin+ImmutableL
istMixin;", $asList: null, $isList: true}, | 5467 toString$0: function(receiver) { |
| 5545 | 5468 return receiver.toString(); |
| 5546 HttpRequest_getString_closure: {"": "Closure;", | 5469 }, |
| 5547 call$1: function(xhr) { | 5470 "%": "HTMLAnchorElement" |
| 5548 return J.get$responseText$x(xhr); | 5471 }, |
| 5549 } | 5472 |
| 5550 }, | 5473 AreaElement: {"": "HtmlElement;coords=", "%": "HTMLAreaElement"}, |
| 5551 | 5474 |
| 5552 HttpRequest_request_closure1: {"": "Closure;xhr_0", | 5475 CloseEvent: {"": "Event;code=", "%": "CloseEvent"}, |
| 5553 call$2: function(header, value) { | 5476 |
| 5554 this.xhr_0.setRequestHeader(header, value); | 5477 Coordinates: {"": "Interceptor;latitude=,longitude=", "%": "Coordinates"}, |
| 5555 } | 5478 |
| 5556 }, | 5479 CssFontFaceLoadEvent: {"": "Event;error=", "%": "CSSFontFaceLoadEvent"}, |
| 5557 | 5480 |
| 5558 HttpRequest_request_closure: {"": "Closure;completer_1,xhr_2", | 5481 DomError: {"": "Interceptor;", "%": ";DOMError"}, |
| 5559 call$1: function(e) { | 5482 |
| 5560 var t1, t2, t3; | 5483 DomException: {"": "Interceptor;", |
| 5561 t1 = this.xhr_2; | 5484 toString$0: function(receiver) { |
| 5562 t2 = t1.status; | 5485 return receiver.toString(); |
| 5563 if (typeof t2 !== "number") | 5486 }, |
| 5564 throw t2.$ge(); | 5487 "%": "DOMException" |
| 5565 t2 = t2 >= 200 && t2 < 300 || t2 === 0 || t2 === 304; | 5488 }, |
| 5566 t3 = this.completer_1; | 5489 |
| 5567 if (t2) { | 5490 Element: {"": "Node;", |
| 5568 t2 = t3.future; | 5491 toString$0: function(receiver) { |
| 5569 if (t2._state !== 0) | 5492 return receiver.localName; |
| 5570 H.throwExpression(new P.StateError("Future already completed")); | 5493 }, |
| 5571 t2._asyncComplete$1(t1); | 5494 "%": "SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphElement|SVGAltGlyphItemElem
ent|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateT
ransformElement|SVGAnimationElement|SVGCircleElement|SVGClipPathElement|SVGCompo
nentTransferFunctionElement|SVGCursorElement|SVGDefsElement|SVGDescElement|SVGEl
ement|SVGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponent
TransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLig
htingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShado
wElement|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement
|SVGFEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|
SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightE
lement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFE
TurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFace
FormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement
|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefElement|SVGGradi
entElement|SVGGraphicsElement|SVGHKernElement|SVGImageElement|SVGLineElement|SVG
LinearGradientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadat
aElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement|SVGPolygonEleme
nt|SVGPolylineElement|SVGRadialGradientElement|SVGRectElement|SVGSVGElement|SVGS
criptElement|SVGSetElement|SVGStopElement|SVGStyleElement|SVGSwitchElement|SVGSy
mbolElement|SVGTRefElement|SVGTSpanElement|SVGTextContentElement|SVGTextElement|
SVGTextPathElement|SVGTextPositioningElement|SVGTitleElement|SVGUseElement|SVGVK
ernElement|SVGViewElement;Element" |
| 5572 } else { | 5495 }, |
| 5573 t1 = t3.future; | 5496 |
| 5497 ErrorEvent: {"": "Event;error=", "%": "ErrorEvent"}, |
| 5498 |
| 5499 Event: {"": "Interceptor;", "%": "AudioProcessingEvent|AutocompleteErrorEvent|Be
foreLoadEvent|CompositionEvent|CustomEvent|DeviceMotionEvent|DeviceOrientationEv
ent|DragEvent|FocusEvent|HashChangeEvent|IDBVersionChangeEvent|KeyboardEvent|MID
IConnectionEvent|MIDIMessageEvent|MSPointerEvent|MediaKeyEvent|MediaKeyMessageEv
ent|MediaKeyNeededEvent|MediaStreamEvent|MediaStreamTrackEvent|MessageEvent|Mous
eEvent|MouseScrollEvent|MouseWheelEvent|MutationEvent|OfflineAudioCompletionEven
t|OverflowEvent|PageTransitionEvent|PointerEvent|PopStateEvent|ProgressEvent|RTC
DTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|ResourceProgressEve
nt|SVGZoomEvent|SecurityPolicyViolationEvent|SpeechInputEvent|SpeechRecognitionE
vent|SpeechSynthesisEvent|StorageEvent|TextEvent|TouchEvent|TrackEvent|Transitio
nEvent|UIEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|Whee
lEvent|XMLHttpRequestProgressEvent;Event"}, |
| 5500 |
| 5501 EventTarget: {"": "Interceptor;", "%": "MediaStream;EventTarget"}, |
| 5502 |
| 5503 FileError: {"": "DomError;code=", "%": "FileError"}, |
| 5504 |
| 5505 FormElement: {"": "HtmlElement;length=", "%": "HTMLFormElement"}, |
| 5506 |
| 5507 Geolocation: {"": "Interceptor;", |
| 5508 getCurrentPosition$3$enableHighAccuracy$maximumAge$timeout: function(receiver,
enableHighAccuracy, maximumAge, timeout) { |
| 5509 var options, completer, e, stacktrace, t1, completer0, exception; |
| 5510 options = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, nul
l, null, null)); |
| 5511 t1 = W.Geoposition; |
| 5512 completer0 = new P._AsyncCompleter(P._Future$(t1)); |
| 5513 H.setRuntimeTypeInfo(completer0, [t1]); |
| 5514 completer = completer0; |
| 5515 try { |
| 5516 this._getCurrentPosition$3(receiver, new W.Geolocation_getCurrentPosition_
closure(receiver, completer), new W.Geolocation_getCurrentPosition_closure0(comp
leter), options); |
| 5517 } catch (exception) { |
| 5518 t1 = H.unwrapException(exception); |
| 5519 e = t1; |
| 5520 stacktrace = new H._StackTrace(exception, null); |
| 5521 t1 = completer.get$future(); |
| 5574 if (t1._state !== 0) | 5522 if (t1._state !== 0) |
| 5575 H.throwExpression(new P.StateError("Future already completed")); | 5523 H.throwExpression(new P.StateError("Future already completed")); |
| 5576 t1._asyncCompleteError$2(e, null); | 5524 t1._asyncCompleteError$2(e, stacktrace); |
| 5577 } | 5525 } |
| 5578 } | 5526 |
| 5579 }, | 5527 return completer.get$future(); |
| 5580 | 5528 }, |
| 5581 HttpRequest_request_closure0: {"": "Closure;completer_3", | 5529 getCurrentPosition$0: function($receiver) { |
| 5582 call$1: function(e) { | 5530 return this.getCurrentPosition$3$enableHighAccuracy$maximumAge$timeout($rece
iver, null, null, null); |
| 5583 var t1 = this.completer_3.future; | 5531 }, |
| 5584 if (t1._state !== 0) | 5532 watchPosition$3$enableHighAccuracy$maximumAge$timeout: function(receiver, enab
leHighAccuracy, maximumAge, timeout) { |
| 5585 H.throwExpression(new P.StateError("Future already completed")); | 5533 var t1, options; |
| 5586 t1._asyncCompleteError$2(e, null); | 5534 t1 = {}; |
| 5587 } | 5535 options = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, nul
l, null, null)); |
| 5588 }, | 5536 t1.watchId_0 = null; |
| 5589 | 5537 t1.controller_1 = null; |
| 5590 _ChildNodeListLazy: {"": "ListBase;_this", | 5538 t1.controller_1 = P.StreamController_StreamController(new W.Geolocation_watc
hPosition_closure(t1, receiver), new W.Geolocation_watchPosition_closure0(t1, re
ceiver, options), null, null, true, W.Geoposition); |
| 5591 $indexSet: function(_, index, value) { | 5539 t1 = t1.controller_1; |
| 5592 var t1, t2; | 5540 t1.toString; |
| 5593 t1 = this._this; | 5541 t1 = new P._ControllerStream(t1); |
| 5594 t2 = t1.childNodes; | 5542 H.setRuntimeTypeInfo(t1, [null]); |
| 5595 if (index >>> 0 !== index || index >= t2.length) | |
| 5596 throw H.ioore(t2, index); | |
| 5597 t1.replaceChild(value, t2[index]); | |
| 5598 }, | |
| 5599 get$iterator: function(_) { | |
| 5600 return C.NodeList_methods.get$iterator(this._this.childNodes); | |
| 5601 }, | |
| 5602 get$length: function(_) { | |
| 5603 return this._this.childNodes.length; | |
| 5604 }, | |
| 5605 $index: function(_, index) { | |
| 5606 var t1 = this._this.childNodes; | |
| 5607 if (index >>> 0 !== index || index >= t1.length) | |
| 5608 throw H.ioore(t1, index); | |
| 5609 return t1[index]; | |
| 5610 }, | |
| 5611 $asList: function() { | |
| 5612 return [W.Node]; | |
| 5613 } | |
| 5614 }, | |
| 5615 | |
| 5616 Interceptor_ListMixin0: {"": "Interceptor+ListMixin;", $isList: true, $asList: n
ull}, | |
| 5617 | |
| 5618 Interceptor_ListMixin_ImmutableListMixin0: {"": "Interceptor_ListMixin0+Immutabl
eListMixin;", $asList: null, $isList: true}, | |
| 5619 | |
| 5620 _EventStream: {"": "Stream;_target,_eventType,_useCapture", | |
| 5621 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
| 5622 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W.
_EventStreamSubscription__wrapZone(onData), this._useCapture); | |
| 5623 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)]
); | |
| 5624 t1._tryResume$0(); | |
| 5625 return t1; | 5543 return t1; |
| 5626 }, | 5544 }, |
| 5627 listen$3$onDone$onError: function(onData, onDone, onError) { | 5545 watchPosition$0: function($receiver) { |
| 5628 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onEr
ror); | 5546 return this.watchPosition$3$enableHighAccuracy$maximumAge$timeout($receiver,
null, null, null); |
| 5629 }, | 5547 }, |
| 5630 $asStream: null | 5548 _ensurePosition$1: function(receiver, domPosition) { |
| 5631 }, | 5549 var t1, t2, exception; |
| 5632 | |
| 5633 _ElementEventStreamImpl: {"": "_EventStream;_target,_eventType,_useCapture", $as
_EventStream: null}, | |
| 5634 | |
| 5635 _EventStreamSubscription: {"": "StreamSubscription;_pauseCount,_target,_eventTyp
e,_onData,_useCapture", | |
| 5636 cancel$0: function() { | |
| 5637 if (this._target == null) | |
| 5638 return; | |
| 5639 this._unlisten$0(); | |
| 5640 this._target = null; | |
| 5641 this._onData = null; | |
| 5642 }, | |
| 5643 pause$1: function(_, resumeSignal) { | |
| 5644 if (this._target == null) | |
| 5645 return; | |
| 5646 this._pauseCount = this._pauseCount + 1; | |
| 5647 this._unlisten$0(); | |
| 5648 }, | |
| 5649 pause$0: function($receiver) { | |
| 5650 return this.pause$1($receiver, null); | |
| 5651 }, | |
| 5652 resume$0: function() { | |
| 5653 if (this._target == null || this._pauseCount <= 0) | |
| 5654 return; | |
| 5655 this._pauseCount = this._pauseCount - 1; | |
| 5656 this._tryResume$0(); | |
| 5657 }, | |
| 5658 _tryResume$0: function() { | |
| 5659 var t1 = this._onData; | |
| 5660 if (t1 != null && this._pauseCount <= 0) | |
| 5661 J.$$dom_addEventListener$3$x(this._target, this._eventType, t1, this._useC
apture); | |
| 5662 }, | |
| 5663 _unlisten$0: function() { | |
| 5664 var t1 = this._onData; | |
| 5665 if (t1 != null) | |
| 5666 J.$$dom_removeEventListener$3$x(this._target, this._eventType, t1, this._u
seCapture); | |
| 5667 }, | |
| 5668 $asStreamSubscription: null, | |
| 5669 static: { | |
| 5670 _EventStreamSubscription__wrapZone: function(callback) { | |
| 5671 if (J.$eq($.Zone__current, C._CustomizedZone_WYN)) | |
| 5672 return callback; | |
| 5673 return $.Zone__current.bindUnaryCallback$2$runGuarded(callback, true); | |
| 5674 }} | |
| 5675 | |
| 5676 }, | |
| 5677 | |
| 5678 EventStreamProvider: {"": "Object;_eventType"}, | |
| 5679 | |
| 5680 ImmutableListMixin: {"": "Object;", | |
| 5681 get$iterator: function(receiver) { | |
| 5682 return W.FixedSizeListIterator$(receiver); | |
| 5683 }, | |
| 5684 $isList: true, | |
| 5685 $asList: null | |
| 5686 }, | |
| 5687 | |
| 5688 FixedSizeListIterator: {"": "Object;_array,_html$_length,_html$_position,_html$_
current", | |
| 5689 moveNext$0: function() { | |
| 5690 var nextPosition, t1; | |
| 5691 nextPosition = this._html$_position + 1; | |
| 5692 t1 = this._html$_length; | |
| 5693 if (nextPosition < t1) { | |
| 5694 this._html$_current = J.$index$asx(this._array, nextPosition); | |
| 5695 this._html$_position = nextPosition; | |
| 5696 return true; | |
| 5697 } | |
| 5698 this._html$_current = null; | |
| 5699 this._html$_position = t1; | |
| 5700 return false; | |
| 5701 }, | |
| 5702 get$current: function() { | |
| 5703 return this._html$_current; | |
| 5704 }, | |
| 5705 static: { | |
| 5706 FixedSizeListIterator$: function(array) { | |
| 5707 return new W.FixedSizeListIterator(array, J.get$length$asx(array), -1, null); | |
| 5708 }} | |
| 5709 | |
| 5710 }, | |
| 5711 | |
| 5712 _DOMWindowCrossFrame: {"": "Object;_window", | |
| 5713 get$parent: function(_) { | |
| 5714 return W._DOMWindowCrossFrame__createSafe(this._window.parent); | |
| 5715 }, | |
| 5716 static: { | |
| 5717 _DOMWindowCrossFrame__createSafe: function(w) { | |
| 5718 if (w === window) | |
| 5719 return w; | |
| 5720 else | |
| 5721 return new W._DOMWindowCrossFrame(w); | |
| 5722 }} | |
| 5723 | |
| 5724 }, | |
| 5725 | |
| 5726 HtmlElement: {"": "Element;"}, | |
| 5727 | |
| 5728 AnchorElement: {"": "HtmlElement;", | |
| 5729 toString$0: function(receiver) { | |
| 5730 return receiver.toString(); | |
| 5731 } | |
| 5732 }, | |
| 5733 | |
| 5734 CharacterData: {"": "Node;length="}, | |
| 5735 | |
| 5736 DomException: {"": "Interceptor;", | |
| 5737 toString$0: function(receiver) { | |
| 5738 return receiver.toString(); | |
| 5739 } | |
| 5740 }, | |
| 5741 | |
| 5742 Element: {"": "Node;", | |
| 5743 get$children: function(receiver) { | |
| 5744 return new W._ChildrenElementList(receiver, receiver.children); | |
| 5745 }, | |
| 5746 toString$0: function(receiver) { | |
| 5747 return receiver.localName; | |
| 5748 }, | |
| 5749 $isElement: true | |
| 5750 }, | |
| 5751 | |
| 5752 Event: {"": "Interceptor;"}, | |
| 5753 | |
| 5754 EventTarget: {"": "Interceptor;", | |
| 5755 $$dom_addEventListener$3: function(receiver, type, listener, useCapture) { | |
| 5756 return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1)
, useCapture); | |
| 5757 }, | |
| 5758 $$dom_removeEventListener$3: function(receiver, type, listener, useCapture) { | |
| 5759 return receiver.removeEventListener(type, H.convertDartClosureToJS(listener,
1), useCapture); | |
| 5760 } | |
| 5761 }, | |
| 5762 | |
| 5763 FormElement: {"": "HtmlElement;length="}, | |
| 5764 | |
| 5765 HtmlCollection: {"": "Interceptor_ListMixin_ImmutableListMixin;", | |
| 5766 get$length: function(receiver) { | |
| 5767 return receiver.length; | |
| 5768 }, | |
| 5769 $index: function(receiver, index) { | |
| 5770 var t1 = receiver.length; | |
| 5771 if (index >>> 0 !== index || index >= t1) | |
| 5772 throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in ra
nge 0.." + t1)); | |
| 5773 return receiver[index]; | |
| 5774 }, | |
| 5775 $indexSet: function(receiver, index, value) { | |
| 5776 throw H.wrapException(new P.UnsupportedError("Cannot assign element of immut
able List.")); | |
| 5777 }, | |
| 5778 elementAt$1: function(receiver, index) { | |
| 5779 if (index < 0 || index >= receiver.length) | |
| 5780 throw H.ioore(receiver, index); | |
| 5781 return receiver[index]; | |
| 5782 }, | |
| 5783 $asList: function() { | |
| 5784 return [W.Node]; | |
| 5785 }, | |
| 5786 $isList: true, | |
| 5787 $isJavaScriptIndexingBehavior: true | |
| 5788 }, | |
| 5789 | |
| 5790 HttpRequest: {"": "XmlHttpRequestEventTarget;responseText=", | |
| 5791 open$5$async$password$user: function(receiver, method, url, async, password, u
ser) { | |
| 5792 return receiver.open(method, url, async, user, password); | |
| 5793 }, | |
| 5794 open$3$async: function($receiver, method, url, async) { | |
| 5795 return $receiver.open(method, url, async); | |
| 5796 }, | |
| 5797 $isHttpRequest: true | |
| 5798 }, | |
| 5799 | |
| 5800 InputElement: {"": "HtmlElement;", $isElement: true, $isNode: true}, | |
| 5801 | |
| 5802 MouseEvent: {"": "UIEvent;", $isMouseEvent: true}, | |
| 5803 | |
| 5804 Node: {"": "EventTarget;parent:parentElement=", | |
| 5805 replaceWith$1: function(receiver, otherNode) { | |
| 5806 var $parent, exception; | |
| 5807 try { | 5550 try { |
| 5808 $parent = receiver.parentNode; | 5551 t1 = domPosition; |
| 5809 J._replaceChild$2$x($parent, otherNode, receiver); | 5552 t2 = J.getInterceptor(t1); |
| 5553 if (typeof t1 === "object" && t1 !== null && !!t2.$isGeoposition) |
| 5554 return domPosition; |
| 5810 } catch (exception) { | 5555 } catch (exception) { |
| 5811 H.unwrapException(exception); | 5556 H.unwrapException(exception); |
| 5812 } | 5557 } |
| 5813 | 5558 |
| 5814 return receiver; | 5559 return new W._GeopositionWrapper(domPosition); |
| 5815 }, | 5560 }, |
| 5561 _getCurrentPosition$3: function(receiver, successCallback, errorCallback, opti
ons) { |
| 5562 return receiver.getCurrentPosition(H.convertDartClosureToJS(successCallback,
1), H.convertDartClosureToJS(errorCallback, 1), options); |
| 5563 }, |
| 5564 _watchPosition$3: function(receiver, successCallback, errorCallback, options)
{ |
| 5565 return receiver.watchPosition(H.convertDartClosureToJS(successCallback, 1),
H.convertDartClosureToJS(errorCallback, 1), options); |
| 5566 }, |
| 5567 "%": "Geolocation" |
| 5568 }, |
| 5569 |
| 5570 Geoposition: {"": "Interceptor;coords=", $isGeoposition: true, "%": "Geoposition
"}, |
| 5571 |
| 5572 MediaElement: {"": "HtmlElement;error=", "%": "HTMLAudioElement|HTMLMediaElement
|HTMLVideoElement"}, |
| 5573 |
| 5574 MediaError: {"": "Interceptor;code=", "%": "MediaError"}, |
| 5575 |
| 5576 MediaKeyError: {"": "Interceptor;code=", "%": "MediaKeyError"}, |
| 5577 |
| 5578 Node: {"": "EventTarget;", |
| 5816 toString$0: function(receiver) { | 5579 toString$0: function(receiver) { |
| 5817 var t1 = receiver.nodeValue; | 5580 var t1 = receiver.nodeValue; |
| 5818 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver)
: t1; | 5581 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver)
: t1; |
| 5819 }, | 5582 }, |
| 5820 _replaceChild$2: function(receiver, newChild, oldChild) { | 5583 "%": "Document|HTMLDocument;Node" |
| 5821 return receiver.replaceChild(newChild, oldChild); | 5584 }, |
| 5822 }, | 5585 |
| 5823 $isNode: true | 5586 ObjectElement: {"": "HtmlElement;code=", "%": "HTMLObjectElement"}, |
| 5824 }, | 5587 |
| 5825 | 5588 PositionError: {"": "Interceptor;code=", "%": "PositionError"}, |
| 5826 NodeList: {"": "Interceptor_ListMixin_ImmutableListMixin0;", | 5589 |
| 5827 get$length: function(receiver) { | 5590 SelectElement: {"": "HtmlElement;length=", "%": "HTMLSelectElement"}, |
| 5828 return receiver.length; | 5591 |
| 5829 }, | 5592 SpeechRecognitionError: {"": "Event;error=", "%": "SpeechRecognitionError"}, |
| 5830 $index: function(receiver, index) { | |
| 5831 var t1 = receiver.length; | |
| 5832 if (index >>> 0 !== index || index >= t1) | |
| 5833 throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in ra
nge 0.." + t1)); | |
| 5834 return receiver[index]; | |
| 5835 }, | |
| 5836 $indexSet: function(receiver, index, value) { | |
| 5837 throw H.wrapException(new P.UnsupportedError("Cannot assign element of immut
able List.")); | |
| 5838 }, | |
| 5839 elementAt$1: function(receiver, index) { | |
| 5840 if (index < 0 || index >= receiver.length) | |
| 5841 throw H.ioore(receiver, index); | |
| 5842 return receiver[index]; | |
| 5843 }, | |
| 5844 $asList: function() { | |
| 5845 return [W.Node]; | |
| 5846 }, | |
| 5847 $isList: true, | |
| 5848 $isJavaScriptIndexingBehavior: true | |
| 5849 }, | |
| 5850 | |
| 5851 ProgressEvent: {"": "Event;", $isProgressEvent: true}, | |
| 5852 | |
| 5853 SelectElement: {"": "HtmlElement;length="}, | |
| 5854 | |
| 5855 UIEvent: {"": "Event;"}, | |
| 5856 | 5593 |
| 5857 Window: {"": "EventTarget;", | 5594 Window: {"": "EventTarget;", |
| 5858 get$parent: function(receiver) { | |
| 5859 return W._convertNativeToDart_Window(receiver.parent); | |
| 5860 }, | |
| 5861 toString$0: function(receiver) { | 5595 toString$0: function(receiver) { |
| 5862 return receiver.toString(); | 5596 return receiver.toString(); |
| 5863 } | 5597 }, |
| 5864 }, | 5598 "%": "DOMWindow|Window" |
| 5865 | |
| 5866 XmlHttpRequestEventTarget: {"": "EventTarget;"}}], | |
| 5867 ["dart.dom.svg", "dart:svg", , P, { | |
| 5868 SvgElement: {"": "Element;", | |
| 5869 get$children: function(receiver) { | |
| 5870 var t1 = new P.FilteredElementList(receiver, new W._ChildNodeListLazy(receiv
er)); | |
| 5871 H.setRuntimeTypeInfo(t1, [W.Element]); | |
| 5872 return t1; | |
| 5873 } | |
| 5874 }}], | 5599 }}], |
| 5600 ["dart.dom.web_sql", "dart:web_sql", , P, { |
| 5601 SqlError: {"": "Interceptor;code=", "%": "SQLError"}}], |
| 5875 ["dart.isolate", "dart:isolate", , P, { | 5602 ["dart.isolate", "dart:isolate", , P, { |
| 5876 _Isolate_port: function() { | 5603 _Isolate_port: function() { |
| 5877 if ($.lazyPort == null) | 5604 if ($.lazyPort == null) |
| 5878 $.lazyPort = H.ReceivePortImpl$(); | 5605 $.lazyPort = H.ReceivePortImpl$(); |
| 5879 return $.lazyPort; | 5606 return $.lazyPort; |
| 5880 }, | 5607 }, |
| 5881 | 5608 |
| 5882 ReceivePort: {"": "Object;", $isReceivePort: true}}], | 5609 ReceivePort: {"": "Object;"}}], |
| 5883 ["dart.typed_data", "dart:typed_data", , P, { | 5610 ["dart.typed_data", "dart:typed_data", , P, { |
| 5884 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null}, | 5611 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null,
$isEfficientLength: true}, |
| 5885 | 5612 |
| 5886 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL
istMixin;", $asList: null}, | 5613 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL
istMixin;", $asList: null}, |
| 5887 | 5614 |
| 5888 TypedData: {"": "Interceptor;", | 5615 TypedData: {"": "Interceptor;", |
| 5889 _invalidIndex$2: function(receiver, index, $length) { | 5616 _invalidIndex$2: function(receiver, index, $length) { |
| 5890 var t1 = J.getInterceptor$n(index); | 5617 var t1 = J.getInterceptor$n(index); |
| 5891 if (t1.$lt(index, 0) || t1.$ge(index, $length)) | 5618 if (t1.$lt(index, 0) || t1.$ge(index, $length)) |
| 5892 throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in ra
nge 0.." + $length)); | 5619 throw H.wrapException(P.RangeError$range(index, 0, $length)); |
| 5893 else | 5620 else |
| 5894 throw H.wrapException(new P.ArgumentError("Invalid list index " + H.S(inde
x))); | 5621 throw H.wrapException(P.ArgumentError$("Invalid list index " + H.S(index))
); |
| 5895 } | 5622 }, |
| 5623 "%": ";ArrayBufferView;TypedData_ListMixin|TypedData_ListMixin_FixedLengthList
Mixin" |
| 5896 }, | 5624 }, |
| 5897 | 5625 |
| 5898 Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", | 5626 Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", |
| 5899 get$length: function(receiver) { | 5627 get$length: function(receiver) { |
| 5900 return C.JS_CONST_ZYJ(receiver); | 5628 return C.JS_CONST_ZYJ(receiver); |
| 5901 }, | 5629 }, |
| 5902 $index: function(receiver, index) { | 5630 $index: function(receiver, index) { |
| 5903 var t1; | 5631 var t1; |
| 5904 if (typeof index !== "number") | 5632 if (typeof index !== "number") |
| 5905 return this.$$index$bailout(1, receiver, index); | 5633 return this.$$index$bailout(1, receiver, index); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5926 $$indexSet$bailout: function(state0, receiver, index, value) { | 5654 $$indexSet$bailout: function(state0, receiver, index, value) { |
| 5927 var t1 = C.JS_CONST_ZYJ(receiver); | 5655 var t1 = C.JS_CONST_ZYJ(receiver); |
| 5928 if (index >>> 0 != index || J.$ge$n(index, t1)) | 5656 if (index >>> 0 != index || J.$ge$n(index, t1)) |
| 5929 this._invalidIndex$2(receiver, index, t1); | 5657 this._invalidIndex$2(receiver, index, t1); |
| 5930 receiver[index] = value; | 5658 receiver[index] = value; |
| 5931 }, | 5659 }, |
| 5932 $asList: function() { | 5660 $asList: function() { |
| 5933 return [J.JSInt]; | 5661 return [J.JSInt]; |
| 5934 }, | 5662 }, |
| 5935 $isList: true, | 5663 $isList: true, |
| 5936 $isJavaScriptIndexingBehavior: true | 5664 $isEfficientLength: true, |
| 5665 $isJavaScriptIndexingBehavior: true, |
| 5666 "%": ";Uint8Array" |
| 5937 }}], | 5667 }}], |
| 5938 ["html_common", "dart:html_common", , P, { | 5668 ["trip_meter.dart", "trip_meter.dart", , E, { |
| 5939 FilteredElementList: {"": "ListBase;_node,_childNodes", | 5669 calculateDistance: function(lat1, lon1, lat2, lon2) { |
| 5940 get$_filtered: function() { | 5670 var t1, t2, t3, t4, a; |
| 5941 var t1 = this._childNodes; | 5671 if (typeof lat2 !== "number") |
| 5942 return P.List_List$from(t1.where$1(t1, new P.FilteredElementList__filtered_c
losure()), true, W.Element); | 5672 throw lat2.$sub(); |
| 5943 }, | 5673 if (typeof lat1 !== "number") |
| 5944 forEach$1: function(_, f) { | 5674 throw H.iae(lat1); |
| 5945 H.IterableMixinWorkaround_forEach(this.get$_filtered(), f); | 5675 if (typeof lon2 !== "number") |
| 5946 }, | 5676 throw lon2.$sub(); |
| 5947 $indexSet: function(_, index, value) { | 5677 if (typeof lon1 !== "number") |
| 5948 var t1 = this.get$_filtered(); | 5678 throw H.iae(lon1); |
| 5949 if (index >>> 0 !== index || index >= t1.length) | 5679 t1 = Math.sin((lat2 - lat1) / 2); |
| 5950 throw H.ioore(t1, index); | 5680 t1 = Math.pow(t1, 2); |
| 5951 J.replaceWith$1$x(t1[index], value); | 5681 t2 = Math.cos(lat1); |
| 5952 }, | 5682 t3 = Math.cos(lat2); |
| 5953 add$1: function(_, value) { | 5683 t4 = Math.sin((lon2 - lon1) / 2); |
| 5954 this._childNodes._this.appendChild(value); | 5684 a = t1 + t2 * t3 * Math.pow(t4, 2); |
| 5955 }, | 5685 t1 = Math.sqrt(a); |
| 5956 get$length: function(_) { | 5686 t2 = Math.sqrt(1 - a); |
| 5957 return this.get$_filtered().length; | 5687 return 6371 * (2 * Math.atan2(t1, t2)); |
| 5958 }, | |
| 5959 $index: function(_, index) { | |
| 5960 var t1 = this.get$_filtered(); | |
| 5961 if (index >>> 0 !== index || index >= t1.length) | |
| 5962 throw H.ioore(t1, index); | |
| 5963 return t1[index]; | |
| 5964 }, | |
| 5965 get$iterator: function(_) { | |
| 5966 var t1 = this.get$_filtered(); | |
| 5967 return new H.ListIterator(t1, t1.length, 0, null); | |
| 5968 }, | |
| 5969 $asListBase: null, | |
| 5970 $asList: null | |
| 5971 }, | 5688 }, |
| 5972 | 5689 |
| 5973 FilteredElementList__filtered_closure: {"": "Closure;", | |
| 5974 call$1: function(n) { | |
| 5975 var t1 = J.getInterceptor(n); | |
| 5976 return typeof n === "object" && n !== null && !!t1.$isElement; | |
| 5977 } | |
| 5978 }}], | |
| 5979 ["portmanteaux_simple.dart", "portmanteaux_simple.dart", , O, { | |
| 5980 main: function() { | 5690 main: function() { |
| 5981 var t1, t2; | 5691 var t1 = {}; |
| 5982 t1 = document.querySelector("#getWords"); | 5692 t1.startPosition_0 = null; |
| 5983 t1.toString; | 5693 J.getCurrentPosition$0$x(window.navigator.geolocation).then$2$onError(new E.ma
in_closure(t1), new E.main_closure0()); |
| 5984 t1 = new W._ElementEventStreamImpl(t1, C.EventStreamProvider_click._eventType,
false); | 5694 J.watchPosition$0$x(window.navigator.geolocation).listen$2$onError(new E.main_
closure1(t1), new E.main_closure2()); |
| 5985 H.setRuntimeTypeInfo(t1, [null]); | |
| 5986 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStre
amSubscription__wrapZone(O.makeRequest$closure), t1._useCapture); | |
| 5987 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); | |
| 5988 t2._tryResume$0(); | |
| 5989 $.wordList = document.querySelector("#wordList"); | |
| 5990 }, | 5695 }, |
| 5991 | 5696 |
| 5992 makeRequest: function(e) { | 5697 main_closure: {"": "Closure;box_0", |
| 5993 W.HttpRequest_getString("portmanteaux_simple.json", null, null).then$1(O.proce
ssString$closure).catchError$1(O.handleError$closure); | 5698 call$1: function(position) { |
| 5994 }, | 5699 var t1 = this.box_0; |
| 5995 | 5700 t1.startPosition_0 = position; |
| 5996 processString: function(jsonString) { | 5701 document.querySelector("#start-lat").textContent = H.S(J.get$latitude$x(J.ge
t$coords$x(t1.startPosition_0))); |
| 5997 var portmanteaux, i, t1, t2; | 5702 document.querySelector("#start-lon").textContent = H.S(J.get$longitude$x(J.g
et$coords$x(t1.startPosition_0))); |
| 5998 portmanteaux = P._parseJson(jsonString, new P.JsonDecoder(null)._reviver); | |
| 5999 if (typeof portmanteaux !== "string" && (typeof portmanteaux !== "object" || p
ortmanteaux === null || portmanteaux.constructor !== Array && !H.isJsIndexable(p
ortmanteaux, portmanteaux[init.dispatchPropertyName]))) | |
| 6000 return O.processString$bailout(1, portmanteaux); | |
| 6001 for (i = 0; i < portmanteaux.length; ++i) { | |
| 6002 t1 = J.get$children$x($.wordList); | |
| 6003 t2 = document.createElement("li", null); | |
| 6004 if (i >= portmanteaux.length) | |
| 6005 throw H.ioore(portmanteaux, i); | |
| 6006 t2.textContent = portmanteaux[i]; | |
| 6007 t1.add$1(t1, t2); | |
| 6008 } | 5703 } |
| 6009 }, | 5704 }, |
| 6010 | 5705 |
| 6011 processString$bailout: function(state0, portmanteaux) { | 5706 main_closure0: {"": "Closure;", |
| 6012 var t1, i, t2, t3; | 5707 call$1: function(error) { |
| 6013 t1 = J.getInterceptor$asx(portmanteaux); | 5708 window.alert("Error occurred. Error code: " + H.S(J.get$code$x(error))); |
| 6014 i = 0; | 5709 return; |
| 6015 while (true) { | |
| 6016 t2 = t1.get$length(portmanteaux); | |
| 6017 if (typeof t2 !== "number") | |
| 6018 throw H.iae(t2); | |
| 6019 if (!(i < t2)) | |
| 6020 break; | |
| 6021 t2 = J.get$children$x($.wordList); | |
| 6022 t3 = document.createElement("li", null); | |
| 6023 t3.textContent = t1.$index(portmanteaux, i); | |
| 6024 t2.add$1(t2, t3); | |
| 6025 ++i; | |
| 6026 } | 5710 } |
| 6027 }, | 5711 }, |
| 6028 | 5712 |
| 6029 handleError: function(error) { | 5713 main_closure1: {"": "Closure;box_0", |
| 6030 var t1, t2; | 5714 call$1: function(position) { |
| 6031 t1 = J.get$children$x($.wordList); | 5715 var t1, t2, distance; |
| 6032 t2 = document.createElement("li", null); | 5716 t1 = J.getInterceptor$x(position); |
| 6033 t2.textContent = "Request failed."; | 5717 document.querySelector("#current-lat").textContent = H.S(J.get$latitude$x(t1
.get$coords(position))); |
| 6034 t1.add$1(t1, t2); | 5718 document.querySelector("#current-lon").textContent = H.S(J.get$longitude$x(t
1.get$coords(position))); |
| 5719 t2 = this.box_0; |
| 5720 distance = E.calculateDistance(J.get$latitude$x(J.get$coords$x(t2.startPosit
ion_0)), J.get$longitude$x(J.get$coords$x(t2.startPosition_0)), J.get$latitude$x
(t1.get$coords(position)), J.get$longitude$x(t1.get$coords(position))); |
| 5721 document.querySelector("#distance").textContent = H.S(distance); |
| 5722 } |
| 5723 }, |
| 5724 |
| 5725 main_closure2: {"": "Closure;", |
| 5726 call$1: function(error) { |
| 5727 window.alert("Error occurred. Error code: " + H.S(J.get$code$x(error))); |
| 5728 return; |
| 5729 } |
| 6035 }}, | 5730 }}, |
| 6036 1], | 5731 1], |
| 6037 ]); | 5732 ]); |
| 6038 Isolate.$finishClasses($$, $, null); | 5733 Isolate.$finishClasses($$, $, null); |
| 6039 $$ = null; | 5734 $$ = null; |
| 6040 | 5735 |
| 6041 // Static function getters | 5736 // Static function getters |
| 6042 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat
ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo
rkerMessage, "IsolateNatives__processWorkerMessage$closure"); | 5737 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat
ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo
rkerMessage, "IsolateNatives__processWorkerMessage$closure"); |
| 6043 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H
.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); | 5738 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H
.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); |
| 6044 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo
sure$7(H.invokeClosure, "invokeClosure$closure"); | 5739 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo
sure$7(H.invokeClosure, "invokeClosure$closure"); |
| 6045 init.globalFunctions.isAssignable$closure = H.isAssignable$closure = new H.Closu
re$2(H.isAssignable, "isAssignable$closure"); | |
| 6046 init.globalFunctions.typeNameInChrome$closure = H.typeNameInChrome$closure = new
H.Closure$1(H.typeNameInChrome, "typeNameInChrome$closure"); | 5740 init.globalFunctions.typeNameInChrome$closure = H.typeNameInChrome$closure = new
H.Closure$1(H.typeNameInChrome, "typeNameInChrome$closure"); |
| 6047 init.globalFunctions.typeNameInSafari$closure = H.typeNameInSafari$closure = new
H.Closure$1(H.typeNameInSafari, "typeNameInSafari$closure"); | 5741 init.globalFunctions.typeNameInSafari$closure = H.typeNameInSafari$closure = new
H.Closure$1(H.typeNameInSafari, "typeNameInSafari$closure"); |
| 6048 init.globalFunctions.typeNameInOpera$closure = H.typeNameInOpera$closure = new H
.Closure$1(H.typeNameInOpera, "typeNameInOpera$closure"); | 5742 init.globalFunctions.typeNameInOpera$closure = H.typeNameInOpera$closure = new H
.Closure$1(H.typeNameInOpera, "typeNameInOpera$closure"); |
| 6049 init.globalFunctions.typeNameInFirefox$closure = H.typeNameInFirefox$closure = n
ew H.Closure$1(H.typeNameInFirefox, "typeNameInFirefox$closure"); | 5743 init.globalFunctions.typeNameInFirefox$closure = H.typeNameInFirefox$closure = n
ew H.Closure$1(H.typeNameInFirefox, "typeNameInFirefox$closure"); |
| 6050 init.globalFunctions.typeNameInIE$closure = H.typeNameInIE$closure = new H.Closu
re$1(H.typeNameInIE, "typeNameInIE$closure"); | 5744 init.globalFunctions.typeNameInIE$closure = H.typeNameInIE$closure = new H.Closu
re$1(H.typeNameInIE, "typeNameInIE$closure"); |
| 6051 init.globalFunctions.constructorNameFallback$closure = H.constructorNameFallback
$closure = new H.Closure$1(H.constructorNameFallback, "constructorNameFallback$c
losure"); | 5745 init.globalFunctions.constructorNameFallback$closure = H.constructorNameFallback
$closure = new H.Closure$1(H.constructorNameFallback, "constructorNameFallback$c
losure"); |
| 6052 init.globalFunctions.callDartFunctionWith1Arg$closure = H.callDartFunctionWith1A
rg$closure = new H.Closure$2(H.callDartFunctionWith1Arg, "callDartFunctionWith1A
rg$closure"); | 5746 init.globalFunctions.callDartFunctionWith1Arg$closure = H.callDartFunctionWith1A
rg$closure = new H.Closure$2(H.callDartFunctionWith1Arg, "callDartFunctionWith1A
rg$closure"); |
| 6053 init.globalFunctions._asyncRunCallback$closure = P._asyncRunCallback$closure = n
ew H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure"); | 5747 init.globalFunctions._asyncRunCallback$closure = P._asyncRunCallback$closure = n
ew H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure"); |
| 6054 init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new
H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure"); | 5748 init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new
H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure"); |
| 6055 init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = n
ew H.Closure$1(P._nullErrorHandler, "_nullErrorHandler$closure"); | 5749 init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = n
ew P.Closure$21(P._nullErrorHandler, "_nullErrorHandler$closure"); |
| 6056 init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new
H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure"); | 5750 init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new
H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure"); |
| 6057 init.globalFunctions._rootHandleUncaughtError$closure = P._rootHandleUncaughtErr
or$closure = new P.Closure$4(P._rootHandleUncaughtError, "_rootHandleUncaughtErr
or$closure"); | |
| 6058 init.globalFunctions._rootRun$closure = P._rootRun$closure = new P.Closure$4(P._
rootRun, "_rootRun$closure"); | |
| 6059 init.globalFunctions._rootRunUnary$closure = P._rootRunUnary$closure = new P.Clo
sure$5(P._rootRunUnary, "_rootRunUnary$closure"); | |
| 6060 init.globalFunctions._rootRegisterCallback$closure = P._rootRegisterCallback$clo
sure = new P.Closure$4(P._rootRegisterCallback, "_rootRegisterCallback$closure")
; | |
| 6061 init.globalFunctions._rootRegisterUnaryCallback$closure = P._rootRegisterUnaryCa
llback$closure = new P.Closure$4(P._rootRegisterUnaryCallback, "_rootRegisterUna
ryCallback$closure"); | |
| 6062 init.globalFunctions._rootScheduleMicrotask$closure = P._rootScheduleMicrotask$c
losure = new P.Closure$4(P._rootScheduleMicrotask, "_rootScheduleMicrotask$closu
re"); | |
| 6063 init.globalFunctions._rootCreateTimer$closure = P._rootCreateTimer$closure = new
P.Closure$5(P._rootCreateTimer, "_rootCreateTimer$closure"); | |
| 6064 init.globalFunctions._rootCreatePeriodicTimer$closure = P._rootCreatePeriodicTim
er$closure = new P.Closure$5(P._rootCreatePeriodicTimer, "_rootCreatePeriodicTim
er$closure"); | |
| 6065 init.globalFunctions._rootFork$closure = P._rootFork$closure = new P.Closure$5(P
._rootFork, "_rootFork$closure"); | |
| 6066 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C
losure$2(P._defaultEquals, "_defaultEquals$closure"); | 5751 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C
losure$2(P._defaultEquals, "_defaultEquals$closure"); |
| 6067 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new
H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); | 5752 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new
H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); |
| 6068 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P
.identical, "identical$closure"); | 5753 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P
.identical, "identical$closure"); |
| 6069 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new
H.Closure$1(P.identityHashCode, "identityHashCode$closure"); | 5754 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new
H.Closure$1(P.identityHashCode, "identityHashCode$closure"); |
| 6070 init.globalFunctions.main$closure = O.main$closure = new H.Closure$0(O.main, "ma
in$closure"); | 5755 init.globalFunctions.main$closure = E.main$closure = new H.Closure$0(E.main, "ma
in$closure"); |
| 6071 init.globalFunctions.makeRequest$closure = O.makeRequest$closure = new H.Closure
$1(O.makeRequest, "makeRequest$closure"); | |
| 6072 init.globalFunctions.processString$closure = O.processString$closure = new H.Clo
sure$1(O.processString, "processString$closure"); | |
| 6073 init.globalFunctions.handleError$closure = O.handleError$closure = new H.Closure
$1(O.handleError, "handleError$closure"); | |
| 6074 // Runtime type support | 5756 // Runtime type support |
| 6075 J.JSInt.$isint = true; | 5757 J.JSInt.$isint = true; |
| 6076 J.JSInt.$isObject = true; | 5758 J.JSInt.$isObject = true; |
| 6077 W.Node.$isObject = true; | |
| 6078 J.JSString.$isString = true; | 5759 J.JSString.$isString = true; |
| 6079 J.JSString.$isObject = true; | 5760 J.JSString.$isObject = true; |
| 6080 J.JSNumber.$isObject = true; | 5761 J.JSNumber.$isObject = true; |
| 6081 P.Duration.$isDuration = true; | |
| 6082 P.Duration.$isObject = true; | 5762 P.Duration.$isObject = true; |
| 6083 W.Element.$isObject = true; | 5763 W.Geoposition.$isGeoposition = true; |
| 6084 P.Object.$isObject = true; | 5764 W.Geoposition.$isObject = true; |
| 6085 W.MouseEvent.$isEvent = true; | |
| 6086 W.MouseEvent.$isObject = true; | |
| 6087 P.Symbol.$isSymbol = true; | |
| 6088 P.Symbol.$isObject = true; | |
| 6089 W.HttpRequest.$isObject = true; | |
| 6090 W.ProgressEvent.$isEvent = true; | |
| 6091 W.ProgressEvent.$isObject = true; | |
| 6092 P.ReceivePort.$isObject = true; | 5765 P.ReceivePort.$isObject = true; |
| 6093 H._IsolateEvent.$isObject = true; | 5766 H._IsolateEvent.$isObject = true; |
| 6094 H._IsolateContext.$isObject = true; | 5767 H._IsolateContext.$isObject = true; |
| 6095 J.JSArray.$isObject = true; | 5768 J.JSArray.$isObject = true; |
| 5769 P.Symbol.$isSymbol = true; |
| 5770 P.Symbol.$isObject = true; |
| 5771 P.StackTrace.$isStackTrace = true; |
| 5772 P.StackTrace.$isObject = true; |
| 6096 P.Future.$isFuture = true; | 5773 P.Future.$isFuture = true; |
| 6097 P.Future.$isObject = true; | 5774 P.Future.$isObject = true; |
| 6098 W.Event.$isEvent = true; | 5775 P.Object.$isObject = true; |
| 6099 W.Event.$isObject = true; | |
| 6100 P.Zone.$isZone = true; | |
| 6101 P.Zone.$isObject = true; | |
| 6102 P.ZoneDelegate.$isZoneDelegate = true; | |
| 6103 P.ZoneDelegate.$isObject = true; | |
| 6104 P.Timer.$isTimer = true; | |
| 6105 P.Timer.$isObject = true; | |
| 6106 P.ZoneSpecification.$isZoneSpecification = true; | |
| 6107 P.ZoneSpecification.$isObject = true; | |
| 6108 P.Map.$isMap = true; | |
| 6109 P.Map.$isObject = true; | |
| 6110 P.Function.$isFunction = true; | 5776 P.Function.$isFunction = true; |
| 6111 P.Function.$isObject = true; | 5777 P.Function.$isObject = true; |
| 6112 J.JSBool.$isbool = true; | 5778 J.JSBool.$isbool = true; |
| 6113 J.JSBool.$isObject = true; | 5779 J.JSBool.$isObject = true; |
| 6114 P.Error.$isError = true; | 5780 P.StreamSubscription.$isStreamSubscription = true; |
| 6115 P.Error.$isObject = true; | 5781 P.StreamSubscription.$isObject = true; |
| 6116 P.StackTrace.$isStackTrace = true; | |
| 6117 P.StackTrace.$isObject = true; | |
| 6118 P._EventSink.$is_EventSink = true; | 5782 P._EventSink.$is_EventSink = true; |
| 6119 P._EventSink.$isObject = true; | 5783 P._EventSink.$isObject = true; |
| 6120 // getInterceptor methods | 5784 // getInterceptor methods |
| 6121 J.getInterceptor = function(receiver) { | 5785 J.getInterceptor = function(receiver) { |
| 6122 if (typeof receiver == "number") { | 5786 if (typeof receiver == "number") { |
| 6123 if (Math.floor(receiver) == receiver) | 5787 if (Math.floor(receiver) == receiver) |
| 6124 return J.JSInt.prototype; | 5788 return J.JSInt.prototype; |
| 6125 return J.JSDouble.prototype; | 5789 return J.JSDouble.prototype; |
| 6126 } | 5790 } |
| 6127 if (typeof receiver == "string") | 5791 if (typeof receiver == "string") |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6184 if (receiver == null) | 5848 if (receiver == null) |
| 6185 return receiver; | 5849 return receiver; |
| 6186 if (typeof receiver != "object") | 5850 if (typeof receiver != "object") |
| 6187 return receiver; | 5851 return receiver; |
| 6188 if (receiver instanceof P.Object) | 5852 if (receiver instanceof P.Object) |
| 6189 return receiver; | 5853 return receiver; |
| 6190 return J.getNativeInterceptor(receiver); | 5854 return J.getNativeInterceptor(receiver); |
| 6191 }; | 5855 }; |
| 6192 C.C_CloseToken = new H.CloseToken(); | 5856 C.C_CloseToken = new H.CloseToken(); |
| 6193 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); | 5857 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); |
| 6194 C.C__DelayedDone = new P._DelayedDone(); | 5858 C.C__RootZone = new P._RootZone(); |
| 6195 C.Duration_0 = new P.Duration(0); | 5859 C.Duration_0 = new P.Duration(0); |
| 6196 C.EventStreamProvider_click = new W.EventStreamProvider("click"); | 5860 C.Geolocation_methods = W.Geolocation.prototype; |
| 6197 C.EventStreamProvider_error = new W.EventStreamProvider("error"); | |
| 6198 C.EventStreamProvider_load = new W.EventStreamProvider("load"); | |
| 6199 C.HttpRequest_methods = W.HttpRequest.prototype; | |
| 6200 C.JSArray_methods = J.JSArray.prototype; | 5861 C.JSArray_methods = J.JSArray.prototype; |
| 6201 C.JSInt_methods = J.JSInt.prototype; | 5862 C.JSInt_methods = J.JSInt.prototype; |
| 6202 C.JSNumber_methods = J.JSNumber.prototype; | 5863 C.JSNumber_methods = J.JSNumber.prototype; |
| 6203 C.JSString_methods = J.JSString.prototype; | 5864 C.JSString_methods = J.JSString.prototype; |
| 6204 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" &&
"system" in os) | 5865 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" &&
"system" in os) |
| 6205 || (typeof navigator == "object" | 5866 || (typeof navigator == "object" |
| 6206 && navigator.userAgent.indexOf('Chrome') != -1)) | 5867 && navigator.userAgent.indexOf('Chrome') != -1)) |
| 6207 ? function(x) { return x.$dartCachedLength || x.length; } | 5868 ? function(x) { return x.$dartCachedLength || x.length; } |
| 6208 : function(x) { return x.length; }; | 5869 : function(x) { return x.length; }; |
| 6209 ; | 5870 ; |
| 6210 Isolate.makeConstantList = function(list) { | 5871 Isolate.makeConstantList = function(list) { |
| 6211 list.immutable$list = true; | 5872 list.immutable$list = true; |
| 6212 list.fixed$length = true; | 5873 list.fixed$length = true; |
| 6213 return list; | 5874 return list; |
| 6214 }; | 5875 }; |
| 6215 C.List_empty = Isolate.makeConstantList([]); | 5876 C.List_empty = Isolate.makeConstantList([]); |
| 6216 C.NodeList_methods = W.NodeList.prototype; | |
| 6217 C._ZoneSpecification_eDx = new P._ZoneSpecification(P._rootHandleUncaughtError$c
losure, P._rootRun$closure, P._rootRunUnary$closure, P._rootRegisterCallback$clo
sure, P._rootRegisterUnaryCallback$closure, P._rootScheduleMicrotask$closure, P.
_rootCreateTimer$closure, P._rootCreatePeriodicTimer$closure, P._rootFork$closur
e); | |
| 6218 C.List_empty0 = H.setRuntimeTypeInfo(Isolate.makeConstantList([]), [P.Symbol]); | |
| 6219 C.Map_empty = H.setRuntimeTypeInfo(new H.ConstantStringMap(0, {}, C.List_empty0)
, [P.Symbol, null]); | |
| 6220 C._CustomizedZone_WYN = new P._CustomizedZone(null, C._ZoneSpecification_eDx, C.
Map_empty); | |
| 6221 C._ZoneSpecification_eLJ = new P._ZoneSpecification(null, null, null, null, null
, null, null, null, null); | |
| 6222 $.lazyPort = null; | 5877 $.lazyPort = null; |
| 6223 $.ReceivePortImpl__nextFreeId = 1; | 5878 $.ReceivePortImpl__nextFreeId = 1; |
| 6224 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; | 5879 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; |
| 6225 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; | 5880 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; |
| 6226 $.interceptorsByTag = null; | 5881 $.printToZone = null; |
| 6227 $.leafTags = null; | |
| 6228 $.interceptorToTag = null; | |
| 6229 $._callbacksAreEnqueued = false; | 5882 $._callbacksAreEnqueued = false; |
| 6230 $.Zone__current = C._CustomizedZone_WYN; | 5883 $.Zone__current = C.C__RootZone; |
| 6231 $.Expando__keyCount = 0; | 5884 $.Expando__keyCount = 0; |
| 6232 $.Device__isOpera = null; | 5885 $.Device__isOpera = null; |
| 6233 $.Device__isWebKit = null; | 5886 $.Device__isWebKit = null; |
| 6234 $.wordList = null; | |
| 6235 J.$$dom_addEventListener$3$x = function(receiver, a0, a1, a2) { | |
| 6236 return J.getInterceptor$x(receiver).$$dom_addEventListener$3(receiver, a0, a1,
a2); | |
| 6237 }; | |
| 6238 J.$$dom_removeEventListener$3$x = function(receiver, a0, a1, a2) { | |
| 6239 return J.getInterceptor$x(receiver).$$dom_removeEventListener$3(receiver, a0,
a1, a2); | |
| 6240 }; | |
| 6241 J.$eq = function(receiver, a0) { | 5887 J.$eq = function(receiver, a0) { |
| 6242 if (receiver == null) | 5888 if (receiver == null) |
| 6243 return a0 == null; | 5889 return a0 == null; |
| 6244 if (typeof receiver != "object") | 5890 if (typeof receiver != "object") |
| 6245 return a0 != null && receiver === a0; | 5891 return a0 != null && receiver === a0; |
| 6246 return J.getInterceptor(receiver).$eq(receiver, a0); | 5892 return J.getInterceptor(receiver).$eq(receiver, a0); |
| 6247 }; | 5893 }; |
| 6248 J.$ge$n = function(receiver, a0) { | 5894 J.$ge$n = function(receiver, a0) { |
| 6249 if (typeof receiver == "number" && typeof a0 == "number") | 5895 if (typeof receiver == "number" && typeof a0 == "number") |
| 6250 return receiver >= a0; | 5896 return receiver >= a0; |
| 6251 return J.getInterceptor$n(receiver).$ge(receiver, a0); | 5897 return J.getInterceptor$n(receiver).$ge(receiver, a0); |
| 6252 }; | 5898 }; |
| 6253 J.$index$asx = function(receiver, a0) { | 5899 J.$index$asx = function(receiver, a0) { |
| 6254 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde
xable(receiver, receiver[init.dispatchPropertyName])) | 5900 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde
xable(receiver, receiver[init.dispatchPropertyName])) |
| 6255 if (a0 >>> 0 === a0 && a0 < receiver.length) | 5901 if (a0 >>> 0 === a0 && a0 < receiver.length) |
| 6256 return receiver[a0]; | 5902 return receiver[a0]; |
| 6257 return J.getInterceptor$asx(receiver).$index(receiver, a0); | 5903 return J.getInterceptor$asx(receiver).$index(receiver, a0); |
| 6258 }; | 5904 }; |
| 6259 J.$indexSet$ax = function(receiver, a0, a1) { | 5905 J.$indexSet$ax = function(receiver, a0, a1) { |
| 6260 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.
dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r
eceiver.length) | 5906 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.
dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r
eceiver.length) |
| 6261 return receiver[a0] = a1; | 5907 return receiver[a0] = a1; |
| 6262 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); | 5908 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); |
| 6263 }; | 5909 }; |
| 6264 J._replaceChild$2$x = function(receiver, a0, a1) { | 5910 J.add$1$ax = function(receiver, a0) { |
| 6265 return J.getInterceptor$x(receiver)._replaceChild$2(receiver, a0, a1); | 5911 return J.getInterceptor$ax(receiver).add$1(receiver, a0); |
| 6266 }; | |
| 6267 J.elementAt$1$ax = function(receiver, a0) { | |
| 6268 return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0); | |
| 6269 }; | 5912 }; |
| 6270 J.forEach$1$ax = function(receiver, a0) { | 5913 J.forEach$1$ax = function(receiver, a0) { |
| 6271 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); | 5914 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); |
| 6272 }; | 5915 }; |
| 6273 J.get$children$x = function(receiver) { | 5916 J.get$code$x = function(receiver) { |
| 6274 return J.getInterceptor$x(receiver).get$children(receiver); | 5917 return J.getInterceptor$x(receiver).get$code(receiver); |
| 5918 }; |
| 5919 J.get$coords$x = function(receiver) { |
| 5920 return J.getInterceptor$x(receiver).get$coords(receiver); |
| 5921 }; |
| 5922 J.get$error$x = function(receiver) { |
| 5923 return J.getInterceptor$x(receiver).get$error(receiver); |
| 6275 }; | 5924 }; |
| 6276 J.get$hashCode$ = function(receiver) { | 5925 J.get$hashCode$ = function(receiver) { |
| 6277 return J.getInterceptor(receiver).get$hashCode(receiver); | 5926 return J.getInterceptor(receiver).get$hashCode(receiver); |
| 6278 }; | 5927 }; |
| 6279 J.get$iterator$ax = function(receiver) { | 5928 J.get$iterator$ax = function(receiver) { |
| 6280 return J.getInterceptor$ax(receiver).get$iterator(receiver); | 5929 return J.getInterceptor$ax(receiver).get$iterator(receiver); |
| 6281 }; | 5930 }; |
| 5931 J.get$latitude$x = function(receiver) { |
| 5932 return J.getInterceptor$x(receiver).get$latitude(receiver); |
| 5933 }; |
| 6282 J.get$length$asx = function(receiver) { | 5934 J.get$length$asx = function(receiver) { |
| 6283 return J.getInterceptor$asx(receiver).get$length(receiver); | 5935 return J.getInterceptor$asx(receiver).get$length(receiver); |
| 6284 }; | 5936 }; |
| 6285 J.get$responseText$x = function(receiver) { | 5937 J.get$longitude$x = function(receiver) { |
| 6286 return J.getInterceptor$x(receiver).get$responseText(receiver); | 5938 return J.getInterceptor$x(receiver).get$longitude(receiver); |
| 6287 }; | 5939 }; |
| 6288 J.map$1$ax = function(receiver, a0) { | 5940 J.getCurrentPosition$0$x = function(receiver) { |
| 6289 return J.getInterceptor$ax(receiver).map$1(receiver, a0); | 5941 return J.getInterceptor$x(receiver).getCurrentPosition$0(receiver); |
| 6290 }; | 5942 }; |
| 6291 J.replaceWith$1$x = function(receiver, a0) { | 5943 J.removeLast$0$ax = function(receiver) { |
| 6292 return J.getInterceptor$x(receiver).replaceWith$1(receiver, a0); | 5944 return J.getInterceptor$ax(receiver).removeLast$0(receiver); |
| 6293 }; | |
| 6294 J.send$2$x = function(receiver, a0, a1) { | |
| 6295 return J.getInterceptor$x(receiver).send$2(receiver, a0, a1); | |
| 6296 }; | 5945 }; |
| 6297 J.toString$0 = function(receiver) { | 5946 J.toString$0 = function(receiver) { |
| 6298 return J.getInterceptor(receiver).toString$0(receiver); | 5947 return J.getInterceptor(receiver).toString$0(receiver); |
| 6299 }; | 5948 }; |
| 6300 $.mapTypeToInterceptor = []; | 5949 J.watchPosition$0$x = function(receiver) { |
| 5950 return J.getInterceptor$x(receiver).watchPosition$0(receiver); |
| 5951 }; |
| 6301 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { | 5952 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { |
| 6302 return function() { return this; }(); | 5953 return function() { return this; }(); |
| 6303 }); | 5954 }); |
| 6304 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function()
{ | 5955 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function()
{ |
| 6305 return $.get$globalThis().window; | 5956 return $.get$globalThis().window; |
| 6306 }); | 5957 }); |
| 6307 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function()
{ | 5958 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function()
{ |
| 6308 return $.get$globalThis().Worker; | 5959 return $.get$globalThis().Worker; |
| 6309 }); | 5960 }); |
| 6310 Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$gl
obalPostMessageDefined", function() { | 5961 Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$gl
obalPostMessageDefined", function() { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6351 }); | 6002 }); |
| 6352 Isolate.$lazy($, "_toStringList", "IterableMixinWorkaround__toStringList", "get$
IterableMixinWorkaround__toStringList", function() { | 6003 Isolate.$lazy($, "_toStringList", "IterableMixinWorkaround__toStringList", "get$
IterableMixinWorkaround__toStringList", function() { |
| 6353 return P.List_List(null, null); | 6004 return P.List_List(null, null); |
| 6354 }); | 6005 }); |
| 6355 Isolate.$lazy($, "_stackTraceExpando", "_stackTraceExpando", "get$_stackTraceExp
ando", function() { | 6006 Isolate.$lazy($, "_stackTraceExpando", "_stackTraceExpando", "get$_stackTraceExp
ando", function() { |
| 6356 return new P.Expando("asynchronous error"); | 6007 return new P.Expando("asynchronous error"); |
| 6357 }); | 6008 }); |
| 6358 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu
nction() { | 6009 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu
nction() { |
| 6359 return P.ListQueue$(null, {func: "void_", void: true}); | 6010 return P.ListQueue$(null, {func: "void_", void: true}); |
| 6360 }); | 6011 }); |
| 6361 Isolate.$lazy($, "_toStringList", "ListMixin__toStringList", "get$ListMixin__toS
tringList", function() { | 6012 Isolate.$lazy($, "_toStringVisiting", "_toStringVisiting", "get$_toStringVisitin
g", function() { |
| 6362 return P.List_List(null, null); | 6013 return P.HashSet_HashSet$identity(null); |
| 6363 }); | 6014 }); |
| 6364 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList"
, function() { | 6015 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList"
, function() { |
| 6365 return P.List_List(null, null); | 6016 return P.List_List(null, null); |
| 6366 }); | 6017 }); |
| 6367 // Native classes | 6018 // Native classes |
| 6368 H.defineNativeMethods("DOMError|FileError|MediaError|MediaKeyError|Navigator|Nav
igatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList", J.Intercepto
r); | 6019 J.Interceptor["%"] = "Navigator|NavigatorUserMediaError|SVGAnimatedNumberList"; |
| 6369 | |
| 6370 H.defineNativeMethods("HTMLAppletElement|HTMLAreaElement|HTMLAudioElement|HTMLBR
Element|HTMLBaseElement|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HT
MLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDeta
ilsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElemen
t|HTMLFieldSetElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLH
RElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HT
MLImageElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElemen
t|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMediaElement|HTMLMenuEle
ment|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObject
Element|HTMLOptGroupElement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphEle
ment|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLSc
riptElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement
|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataC
ellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLT
ableSectionElement|HTMLTemplateElement|HTMLTextAreaElement|HTMLTitleElement|HTML
TrackElement|HTMLUListElement|HTMLUnknownElement|HTMLVideoElement", W.HtmlElemen
t); | |
| 6371 | |
| 6372 H.defineNativeMethodsNonleaf("HTMLElement", W.HtmlElement); | |
| 6373 | |
| 6374 H.defineNativeMethods("HTMLAnchorElement", W.AnchorElement); | |
| 6375 | |
| 6376 H.defineNativeMethods("CDATASection|CharacterData|Comment|ProcessingInstruction|
Text", W.CharacterData); | |
| 6377 | |
| 6378 H.defineNativeMethods("DOMException", W.DomException); | |
| 6379 | |
| 6380 H.defineNativeMethodsNonleaf("Element", W.Element); | |
| 6381 | |
| 6382 H.defineNativeMethods("AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEve
nt|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrientati
onEvent|ErrorEvent|HashChangeEvent|IDBVersionChangeEvent|MIDIConnectionEvent|MID
IMessageEvent|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStream
Event|MediaStreamTrackEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEve
nt|OverflowEvent|PageTransitionEvent|PopStateEvent|RTCDTMFToneChangeEvent|RTCDat
aChannelEvent|RTCIceCandidateEvent|SecurityPolicyViolationEvent|SpeechInputEvent
|SpeechRecognitionError|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent
|TrackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransit
ionEvent", W.Event); | |
| 6383 | |
| 6384 H.defineNativeMethodsNonleaf("Event", W.Event); | |
| 6385 | |
| 6386 H.defineNativeMethodsNonleaf("EventTarget", W.EventTarget); | |
| 6387 | |
| 6388 H.defineNativeMethods("HTMLFormElement", W.FormElement); | |
| 6389 | |
| 6390 H.defineNativeMethods("HTMLCollection|HTMLFormControlsCollection|HTMLOptionsColl
ection", W.HtmlCollection); | |
| 6391 | |
| 6392 H.defineNativeMethods("XMLHttpRequest", W.HttpRequest); | |
| 6393 | |
| 6394 H.defineNativeMethods("HTMLInputElement", W.InputElement); | |
| 6395 | |
| 6396 H.defineNativeMethods("DragEvent|MSPointerEvent|MouseEvent|MouseScrollEvent|Mous
eWheelEvent|PointerEvent|WheelEvent", W.MouseEvent); | |
| 6397 | |
| 6398 H.defineNativeMethods("Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDo
cument|Notation|SVGDocument|ShadowRoot", W.Node); | |
| 6399 | |
| 6400 H.defineNativeMethodsNonleaf("Node", W.Node); | |
| 6401 | |
| 6402 H.defineNativeMethods("NodeList|RadioNodeList", W.NodeList); | |
| 6403 | |
| 6404 H.defineNativeMethods("ProgressEvent|ResourceProgressEvent|XMLHttpRequestProgres
sEvent", W.ProgressEvent); | |
| 6405 | |
| 6406 H.defineNativeMethods("HTMLSelectElement", W.SelectElement); | |
| 6407 | |
| 6408 H.defineNativeMethods("CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomEvent|Te
xtEvent|TouchEvent", W.UIEvent); | |
| 6409 | |
| 6410 H.defineNativeMethodsNonleaf("UIEvent", W.UIEvent); | |
| 6411 | |
| 6412 H.defineNativeMethods("DOMWindow|Window", W.Window); | |
| 6413 | |
| 6414 H.defineNativeMethodsNonleaf("XMLHttpRequestEventTarget", W.XmlHttpRequestEventT
arget); | |
| 6415 | |
| 6416 H.defineNativeMethods("SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphElement|SVGA
ltGlyphItemElement|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElem
ent|SVGAnimateTransformElement|SVGAnimationElement|SVGCircleElement|SVGClipPathE
lement|SVGComponentTransferFunctionElement|SVGCursorElement|SVGDefsElement|SVGDe
scElement|SVGElement|SVGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement
|SVGFEComponentTransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|
SVGFEDiffuseLightingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement
|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SV
GFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVG
FEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|S
VGFEPointLightElement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETi
leElement|SVGFETurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElem
ent|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFon
tFaceUriElement|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefE
lement|SVGGradientElement|SVGGraphicsElement|SVGHKernElement|SVGImageElement|SVG
LineElement|SVGLinearGradientElement|SVGMPathElement|SVGMarkerElement|SVGMaskEle
ment|SVGMetadataElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement|
SVGPolygonElement|SVGPolylineElement|SVGRadialGradientElement|SVGRectElement|SVG
SVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStyleElement|SVGSwit
chElement|SVGSymbolElement|SVGTRefElement|SVGTSpanElement|SVGTextContentElement|
SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGTitleElement|SVGU
seElement|SVGVKernElement|SVGViewElement", P.SvgElement); | |
| 6417 | |
| 6418 H.defineNativeMethodsExtended("ArrayBufferView", P.TypedData, [P.TypedData_ListM
ixin, P.TypedData_ListMixin_FixedLengthListMixin]); | |
| 6419 | |
| 6420 H.defineNativeMethodsNonleaf("Uint8Array", P.Uint8List); | |
| 6421 | 6020 |
| 6422 | 6021 |
| 6423 init.functionAliases = {}; | 6022 init.functionAliases = {}; |
| 6424 ; | 6023 ; |
| 6425 init.metadata = []; | 6024 init.metadata = []; |
| 6426 $ = null; | 6025 $ = null; |
| 6427 Isolate = Isolate.$finishIsolateConstructor(Isolate); | 6026 Isolate = Isolate.$finishIsolateConstructor(Isolate); |
| 6428 $ = new Isolate(); | 6027 $ = new Isolate(); |
| 6429 function convertToFastObject(properties) { | 6028 function convertToFastObject(properties) { |
| 6430 function MyClass() {}; | 6029 function MyClass() {}; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6485 } | 6084 } |
| 6486 callback(event.target); | 6085 callback(event.target); |
| 6487 } | 6086 } |
| 6488 for (var i = 0; i < scripts.length; ++i) { | 6087 for (var i = 0; i < scripts.length; ++i) { |
| 6489 scripts[i].addEventListener("load", onLoad, false); | 6088 scripts[i].addEventListener("load", onLoad, false); |
| 6490 } | 6089 } |
| 6491 })(function(currentScript) { | 6090 })(function(currentScript) { |
| 6492 init.currentScript = currentScript; | 6091 init.currentScript = currentScript; |
| 6493 | 6092 |
| 6494 if (typeof dartMainRunner === "function") { | 6093 if (typeof dartMainRunner === "function") { |
| 6495 dartMainRunner(function() { H.startRootIsolate(O.main$closure); }); | 6094 dartMainRunner(function() { H.startRootIsolate(E.main$closure); }); |
| 6496 } else { | 6095 } else { |
| 6497 H.startRootIsolate(O.main$closure); | 6096 H.startRootIsolate(E.main$closure); |
| 6498 } | 6097 } |
| 6499 }); | 6098 }); |
| 6500 // END invoke [main]. | 6099 // END invoke [main]. |
| 6501 function init() { | 6100 function init() { |
| 6502 Isolate.$isolateProperties = {}; | 6101 Isolate.$isolateProperties = {}; |
| 6503 function generateAccessor(field, accessors, cls) { | 6102 function generateAccessor(field, accessors, cls) { |
| 6504 var len = field.length; | 6103 var len = field.length; |
| 6505 var code = field.charCodeAt(len - 1); | 6104 var code = field.charCodeAt(len - 1); |
| 6506 var reflectable = false; | 6105 var reflectable = false; |
| 6507 if (code == 45) { | 6106 if (code == 45) { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6644 var globalObject = isolateProperties; | 6243 var globalObject = isolateProperties; |
| 6645 if (desc instanceof Array) { | 6244 if (desc instanceof Array) { |
| 6646 globalObject = desc[0] || isolateProperties; | 6245 globalObject = desc[0] || isolateProperties; |
| 6647 desc = desc[1]; | 6246 desc = desc[1]; |
| 6648 } | 6247 } |
| 6649 allClasses[cls] = constructor; | 6248 allClasses[cls] = constructor; |
| 6650 globalObject[cls] = constructor; | 6249 globalObject[cls] = constructor; |
| 6651 } | 6250 } |
| 6652 constructors = null; | 6251 constructors = null; |
| 6653 var finishedClasses = {}; | 6252 var finishedClasses = {}; |
| 6253 init.interceptorsByTag = {}; |
| 6254 init.leafTags = {}; |
| 6654 function finishClass(cls) { | 6255 function finishClass(cls) { |
| 6655 var hasOwnProperty = Object.prototype.hasOwnProperty; | 6256 var hasOwnProperty = Object.prototype.hasOwnProperty; |
| 6656 if (hasOwnProperty.call(finishedClasses, cls)) | 6257 if (hasOwnProperty.call(finishedClasses, cls)) |
| 6657 return; | 6258 return; |
| 6658 finishedClasses[cls] = true; | 6259 finishedClasses[cls] = true; |
| 6659 var superclass = pendingClasses[cls]; | 6260 var superclass = pendingClasses[cls]; |
| 6660 if (!superclass || typeof superclass != "string") | 6261 if (!superclass || typeof superclass != "string") |
| 6661 return; | 6262 return; |
| 6662 finishClass(superclass); | 6263 finishClass(superclass); |
| 6663 var constructor = allClasses[cls]; | 6264 var constructor = allClasses[cls]; |
| 6664 var superConstructor = allClasses[superclass]; | 6265 var superConstructor = allClasses[superclass]; |
| 6665 if (!superConstructor) | 6266 if (!superConstructor) |
| 6666 superConstructor = existingIsolateProperties[superclass]; | 6267 superConstructor = existingIsolateProperties[superclass]; |
| 6667 prototype = inheritFrom(constructor, superConstructor); | 6268 var prototype = inheritFrom(constructor, superConstructor); |
| 6269 if (hasOwnProperty.call(prototype, "%")) { |
| 6270 var nativeSpec = prototype["%"].split(";"); |
| 6271 if (nativeSpec[0]) { |
| 6272 var tags = nativeSpec[0].split("|"); |
| 6273 for (var i = 0; i < tags.length; i++) { |
| 6274 init.interceptorsByTag[tags[i]] = constructor; |
| 6275 init.leafTags[tags[i]] = true; |
| 6276 } |
| 6277 } |
| 6278 if (nativeSpec[1]) { |
| 6279 tags = nativeSpec[1].split("|"); |
| 6280 if (nativeSpec[2]) { |
| 6281 var subclasses = nativeSpec[2].split("|"); |
| 6282 for (var i = 0; i < subclasses.length; i++) { |
| 6283 var subclass = allClasses[subclasses[i]]; |
| 6284 subclass.$nativeSuperclassTag = tags[0]; |
| 6285 } |
| 6286 } |
| 6287 for (i = 0; i < tags.length; i++) { |
| 6288 init.interceptorsByTag[tags[i]] = constructor; |
| 6289 init.leafTags[tags[i]] = false; |
| 6290 } |
| 6291 } |
| 6292 } |
| 6668 } | 6293 } |
| 6669 for (var cls in pendingClasses) | 6294 for (var cls in pendingClasses) |
| 6670 finishClass(cls); | 6295 finishClass(cls); |
| 6671 }; | 6296 }; |
| 6672 Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyVal
ue) { | 6297 Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyVal
ue) { |
| 6673 var sentinelUndefined = {}; | 6298 var sentinelUndefined = {}; |
| 6674 var sentinelInProgress = {}; | 6299 var sentinelInProgress = {}; |
| 6675 prototype[fieldName] = sentinelUndefined; | 6300 prototype[fieldName] = sentinelUndefined; |
| 6676 prototype[getterName] = function() { | 6301 prototype[getterName] = function() { |
| 6677 var result = $[fieldName]; | 6302 var result = $[fieldName]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6714 Isolate.prototype = oldIsolate.prototype; | 6339 Isolate.prototype = oldIsolate.prototype; |
| 6715 Isolate.prototype.constructor = Isolate; | 6340 Isolate.prototype.constructor = Isolate; |
| 6716 Isolate.$isolateProperties = isolateProperties; | 6341 Isolate.$isolateProperties = isolateProperties; |
| 6717 Isolate.$finishClasses = oldIsolate.$finishClasses; | 6342 Isolate.$finishClasses = oldIsolate.$finishClasses; |
| 6718 Isolate.makeConstantList = oldIsolate.makeConstantList; | 6343 Isolate.makeConstantList = oldIsolate.makeConstantList; |
| 6719 return Isolate; | 6344 return Isolate; |
| 6720 }; | 6345 }; |
| 6721 } | 6346 } |
| 6722 })() | 6347 })() |
| 6723 | 6348 |
| 6724 //# sourceMappingURL=portmanteaux_simple.dart.js.map | 6349 //# sourceMappingURL=trip_meter.dart.js.map |
| 6725 //@ sourceMappingURL=portmanteaux_simple.dart.js.map | 6350 //@ sourceMappingURL=trip_meter.dart.js.map |
| OLD | NEW |