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 (function($){function dart(){this.x=0}var A=new dart |
3 // dartPrint(message) - if this function is defined it is called | 3 delete A.x |
4 // instead of the Dart [print] method. | 4 var B=new dart |
5 // dartMainRunner(main) - if this function is defined, the Dart [main] | 5 delete B.x |
6 // method will not be invoked directly. | 6 var C=new dart |
7 // Instead, a closure that will invoke [main] is | 7 delete C.x |
8 // passed to [dartMainRunner]. | 8 var D=new dart |
9 (function($) { | 9 delete D.x |
10 var A = {}; | 10 var E=new dart |
11 delete A.x; | 11 delete E.x |
12 var B = {}; | 12 var F=new dart |
13 delete B.x; | 13 delete F.x |
14 var C = {}; | 14 var G=new dart |
15 delete C.x; | 15 delete G.x |
16 var D = {}; | 16 var H=new dart |
17 delete D.x; | 17 delete H.x |
18 var E = {}; | 18 var J=new dart |
19 delete E.x; | 19 delete J.x |
20 var F = {}; | 20 var K=new dart |
21 delete F.x; | 21 delete K.x |
22 var G = {}; | 22 var L=new dart |
23 delete G.x; | 23 delete L.x |
24 var H = {}; | 24 var M=new dart |
25 delete H.x; | 25 delete M.x |
26 var J = {}; | 26 var N=new dart |
27 delete J.x; | 27 delete N.x |
28 var K = {}; | 28 var O=new dart |
29 delete K.x; | 29 delete O.x |
30 var L = {}; | 30 var P=new dart |
31 delete L.x; | 31 delete P.x |
32 var M = {}; | 32 var Q=new dart |
33 delete M.x; | 33 delete Q.x |
34 var N = {}; | 34 var R=new dart |
35 delete N.x; | 35 delete R.x |
36 var O = {}; | 36 var S=new dart |
37 delete O.x; | 37 delete S.x |
38 var P = {}; | 38 var T=new dart |
39 delete P.x; | 39 delete T.x |
40 var Q = {}; | 40 var U=new dart |
41 delete Q.x; | 41 delete U.x |
42 var R = {}; | 42 var V=new dart |
43 delete R.x; | 43 delete V.x |
44 var S = {}; | 44 var W=new dart |
45 delete S.x; | 45 delete W.x |
46 var T = {}; | 46 var X=new dart |
47 delete T.x; | 47 delete X.x |
48 var U = {}; | 48 var Y=new dart |
49 delete U.x; | 49 delete Y.x |
50 var V = {}; | 50 var Z=new dart |
51 delete V.x; | 51 delete Z.x |
52 var W = {}; | 52 function I(){} |
53 delete W.x; | 53 init() |
54 var X = {}; | 54 $=I.p |
55 delete X.x; | 55 var $$={} |
56 var Y = {}; | 56 ;(function(a){"use strict" |
57 delete Y.x; | 57 function map(b){b={x:b} |
58 var Z = {}; | 58 delete b.x |
59 delete Z.x; | 59 return b}function processStatics(a3){for(var h in a3){if(!u.call(a3,h))continue |
60 function Isolate() {} | 60 if(h==="^")continue |
61 init(); | 61 var g=a3[h] |
62 | 62 var f=h.substring(0,1) |
63 $ = Isolate.$isolateProperties; | 63 var e |
64 var $$ = {}; | 64 if(f==="+"){v[e]=h.substring(1) |
65 | 65 var d=a3[h] |
66 // Native classes | 66 if(d>0)a3[e].$reflectable=d |
67 // Method closures | 67 if(g&&g.length)init.typeInformation[e]=g}else if(f==="@"){h=h.substring(1) |
68 $$.BoundClosure$i0 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,
__js_helper$_name", | 68 $[h]["@"]=g}else if(f==="*"){n[e].$defaultValues=g |
69 call$0: function() { | 69 var c=a3.$methodsWithOptionalArguments |
70 return this.__js_helper$_target.call(this._self, this._receiver); | 70 if(!c){a3.$methodsWithOptionalArguments=c={}}c[h]=e}else if(typeof g==="function
"){n[e=h]=g |
| 71 i.push(h) |
| 72 init.globalFunctions[h]=g}else if(g.constructor===Array){addStubs(n,g,h,true,a3,
i)}else{e=h |
| 73 var b={} |
| 74 var a0 |
| 75 for(var a1 in g){if(!u.call(g,a1))continue |
| 76 f=a1.substring(0,1) |
| 77 if(a1==="static"){processStatics(init.statics[h]=g[a1])}else if(f==="+"){w[a0]=a
1.substring(1) |
| 78 var d=g[a1] |
| 79 if(d>0)g[a0].$reflectable=d}else if(f==="@"&&a1!=="@"){b[a1.substring(1)]["@"]=g
[a1]}else if(f==="*"){b[a0].$defaultValues=g[a1] |
| 80 var c=b.$methodsWithOptionalArguments |
| 81 if(!c){b.$methodsWithOptionalArguments=c={}}c[a1]=a0}else{var a2=g[a1] |
| 82 if(a1!=="^"&&a2!=null&&a2.constructor===Array&&a1!=="<>"){addStubs(b,a2,a1,false
,g,[])}else{b[a0=a1]=a2}}}$$[h]=[n,b] |
| 83 j.push(h)}}}function addStubs(b3,b4,b5,b6,b7,b8){var h,g=[b7[b5]=b3[b5]=h=b4[0]] |
| 84 h.$stubName=b5 |
| 85 b8.push(b5) |
| 86 for(var f=0;f<b4.length;f+=2){h=b4[f+1] |
| 87 if(typeof h!="function")break |
| 88 h.$stubName=b4[f+2] |
| 89 g.push(h) |
| 90 if(h.$stubName){b7[h.$stubName]=b3[h.$stubName]=h |
| 91 b8.push(h.$stubName)}}for(var e=0;e<g.length;f++,e++){g[e].$callName=b4[f+1]}var
d=b4[++f] |
| 92 b4=b4.slice(++f) |
| 93 var c=b4[0] |
| 94 var b=c>>1 |
| 95 var a0=(c&1)===1 |
| 96 var a1=c===3 |
| 97 var a2=c===1 |
| 98 var a3=b4[1] |
| 99 var a4=a3>>1 |
| 100 var a5=(a3&1)===1 |
| 101 var a6=b+a4!=g[0].length |
| 102 var a7=b4[2] |
| 103 var a8=2*a4+b+3 |
| 104 var a9=b4.length>a8 |
| 105 if(d){h=tearOff(g,b4,b6,b5,a6) |
| 106 b3[b5].$getter=h |
| 107 h.$getterStub=true |
| 108 if(b6)init.globalFunctions[b5]=h |
| 109 b7[d]=b3[d]=h |
| 110 g.push(h) |
| 111 if(d)b8.push(d) |
| 112 h.$stubName=d |
| 113 h.$callName=null |
| 114 if(a6)init.interceptedNames[d]=true}if(a9){for(var e=0;e<g.length;e++){g[e].$ref
lectable=1 |
| 115 g[e].$reflectionInfo=b4}var b0=b6?init.mangledGlobalNames:init.mangledNames |
| 116 var b1=b4[a8] |
| 117 var b2=b1 |
| 118 if(d)b0[d]=b2 |
| 119 if(a1){b2+="="}else if(!a2){b2+=":"+b+":"+a4}b0[b5]=b2 |
| 120 g[0].$reflectionName=b2 |
| 121 g[0].$metadataIndex=a8+1 |
| 122 if(a4)b3[b1+"*"]=g[0]}}function tearOffGetterNoCsp(b,c,d,e){return e?new Functio
n("funcs","reflectionInfo","name","H","c","return function tearOff_"+d+z+++"(x)
{"+"if (c === null) c = H.qm("+"this, funcs, reflectionInfo, false, [x], name);"
+"return new c(this, funcs[0], x, name);"+"}")(b,c,d,H,null):new Function("funcs
","reflectionInfo","name","H","c","return function tearOff_"+d+z+++"() {"+"if (c
=== null) c = H.qm("+"this, funcs, reflectionInfo, false, [], name);"+"return n
ew c(this, funcs[0], null, name);"+"}")(b,c,d,H,null)}function tearOffGetterCsp(
b,c,d,e){var h=null |
| 123 return e?function(f){if(h===null)h=H.qm(this,b,c,false,[f],d) |
| 124 return new h(this,b[0],f,d)}:function(){if(h===null)h=H.qm(this,b,c,false,[],d) |
| 125 return new h(this,b[0],null,d)}}function tearOff(b,c,d,e,f){var h |
| 126 return d?function(){if(h===void 0)h=H.qm(this,b,c,true,[],e).prototype |
| 127 return h}:y(b,c,e,f)}var z=0 |
| 128 var y=typeof dart_precompiled=="function"?tearOffGetterCsp:tearOffGetterNoCsp |
| 129 if(!init.libraries)init.libraries=[] |
| 130 if(!init.mangledNames)init.mangledNames=map() |
| 131 if(!init.mangledGlobalNames)init.mangledGlobalNames=map() |
| 132 if(!init.statics)init.statics=map() |
| 133 if(!init.typeInformation)init.typeInformation=map() |
| 134 if(!init.globalFunctions)init.globalFunctions=map() |
| 135 if(!init.interceptedNames)init.interceptedNames=map() |
| 136 var x=init.libraries |
| 137 var w=init.mangledNames |
| 138 var v=init.mangledGlobalNames |
| 139 var u=Object.prototype.hasOwnProperty |
| 140 var t=a.length |
| 141 for(var s=0;s<t;s++){var r=a[s] |
| 142 var q=r[0] |
| 143 var p=r[1] |
| 144 var o=r[2] |
| 145 var n=r[3] |
| 146 var m=r[4] |
| 147 var l=!!r[5] |
| 148 var k=m&&m["^"] |
| 149 var j=[] |
| 150 var i=[] |
| 151 processStatics(m) |
| 152 x.push([q,p,j,i,o,k,l,n])}})([["_foreign_helper","dart:_foreign_helper",,H,{ |
| 153 "^":"", |
| 154 FK:{ |
| 155 "^":"a;tT"}}],["_interceptors","dart:_interceptors",,J,{ |
| 156 "^":"", |
| 157 x:function(a){return void 0}, |
| 158 Qu:function(a,b,c,d){return{i:a,p:b,e:c,x:d}}, |
| 159 ks:function(a){var z,y,x,w |
| 160 z=a[init.dispatchPropertyName] |
| 161 if(z==null)if($.Bv==null){H.XD() |
| 162 z=a[init.dispatchPropertyName]}if(z!=null){y=z.p |
| 163 if(!1===y)return z.i |
| 164 if(!0===y)return a |
| 165 x=Object.getPrototypeOf(a) |
| 166 if(y===x)return z.i |
| 167 if(z.e===x)throw H.b(P.SY("Return interceptor for "+H.d(y(a,z))))}w=H.w3(a) |
| 168 if(w==null){y=Object.getPrototypeOf(a) |
| 169 if(y==null||y===Object.prototype)return C.ZQ |
| 170 else return C.vB}return w}, |
| 171 Gv:{ |
| 172 "^":"a;", |
| 173 n:function(a,b){return a===b}, |
| 174 giO:function(a){return H.eQ(a)}, |
| 175 bu:function(a){return H.a5(a)}, |
| 176 "%":"DOMError|FileError|MediaError|MediaKeyError|Navigator|NavigatorUserMediaErr
or|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedString"}, |
| 177 kn:{ |
| 178 "^":"Gv;", |
| 179 bu:function(a){return String(a)}, |
| 180 giO:function(a){return a?519018:218159}, |
| 181 $isa2:true}, |
| 182 YE:{ |
| 183 "^":"Gv;", |
| 184 n:function(a,b){return null==b}, |
| 185 bu:function(a){return"null"}, |
| 186 giO:function(a){return 0}}, |
| 187 Ue:{ |
| 188 "^":"Gv;", |
| 189 giO:function(a){return 0}}, |
| 190 iC:{ |
| 191 "^":"Ue;"}, |
| 192 is:{ |
| 193 "^":"Ue;"}, |
| 194 Q:{ |
| 195 "^":"Gv;", |
| 196 Rz:function(a,b){var z |
| 197 if(!!a.fixed$length)H.vh(P.f("remove")) |
| 198 for(z=0;z<a.length;++z)if(J.de(a[z],b)){a.splice(z,1) |
| 199 return!0}return!1}, |
| 200 aN:function(a,b){return H.bQ(a,b)}, |
| 201 Zv:function(a,b){if(b<0||b>=a.length)return H.e(a,b) |
| 202 return a[b]}, |
| 203 tg:function(a,b){var z |
| 204 for(z=0;z<a.length;++z)if(J.de(a[z],b))return!0 |
| 205 return!1}, |
| 206 gl0:function(a){return a.length===0}, |
| 207 bu:function(a){return H.mx(a,"[","]")}, |
| 208 tt:function(a,b){var z |
| 209 if(b)return H.VM(a.slice(),[H.Kp(a,0)]) |
| 210 else{z=H.VM(a.slice(),[H.Kp(a,0)]) |
| 211 z.fixed$length=init |
| 212 return z}}, |
| 213 br:function(a){return this.tt(a,!0)}, |
| 214 gA:function(a){return new H.a7(a,a.length,0,null)}, |
| 215 giO:function(a){return H.eQ(a)}, |
| 216 gB:function(a){return a.length}, |
| 217 sB:function(a,b){if(b<0)throw H.b(P.N(b)) |
| 218 if(!!a.fixed$length)H.vh(P.f("set length")) |
| 219 a.length=b}, |
| 220 t:function(a,b){if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 221 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 222 return a[b]}, |
| 223 u:function(a,b,c){if(!!a.immutable$list)H.vh(P.f("indexed set")) |
| 224 if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 225 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 226 a[b]=c}, |
| 227 $isQ:true, |
| 228 $iszM:true, |
| 229 $aszM:null}, |
| 230 P:{ |
| 231 "^":"Gv;", |
| 232 gkZ:function(a){return isFinite(a)}, |
| 233 JV:function(a,b){return a%b}, |
| 234 yu:function(a){var z |
| 235 if(a>=-2147483648&&a<=2147483647)return a|0 |
| 236 if(isFinite(a)){z=a<0?Math.ceil(a):Math.floor(a) |
| 237 return z+0}throw H.b(P.f(''+a))}, |
| 238 bu:function(a){if(a===0&&1/a<0)return"-0.0" |
| 239 else return""+a}, |
| 240 giO:function(a){return a&0x1FFFFFFF}, |
| 241 g:function(a,b){return a+b}, |
| 242 cU:function(a,b){return(a|0)===a?a/b|0:this.yu(a/b)}, |
| 243 GG:function(a,b){var z |
| 244 if(a>0)z=b>31?0:a>>>b |
| 245 else{z=b>31?31:b |
| 246 z=a>>z>>>0}return z}, |
| 247 C:function(a,b){if(typeof b!=="number")throw H.b(P.u(b)) |
| 248 return a<b}, |
| 249 F:function(a,b){if(typeof b!=="number")throw H.b(P.u(b)) |
| 250 return a>=b}, |
| 251 $islf:true, |
| 252 static:{"^":"SA,yc"}}, |
| 253 im:{ |
| 254 "^":"P;", |
| 255 $islf:true, |
| 256 $isKN:true}, |
| 257 VA:{ |
| 258 "^":"P;", |
| 259 $islf:true}, |
| 260 O:{ |
| 261 "^":"Gv;", |
| 262 j:function(a,b){if(b<0)throw H.b(P.N(b)) |
| 263 if(b>=a.length)throw H.b(P.N(b)) |
| 264 return a.charCodeAt(b)}, |
| 265 g:function(a,b){if(typeof b!=="string")throw H.b(P.u(b)) |
| 266 return a+b}, |
| 267 Nj:function(a,b,c){if(c==null)c=a.length |
| 268 if(typeof c!=="number"||Math.floor(c)!==c)H.vh(P.u(c)) |
| 269 if(b<0)throw H.b(P.N(b)) |
| 270 if(typeof c!=="number")return H.s(c) |
| 271 if(b>c)throw H.b(P.N(b)) |
| 272 if(c>a.length)throw H.b(P.N(c)) |
| 273 return a.substring(b,c)}, |
| 274 yn:function(a,b){return this.Nj(a,b,null)}, |
| 275 bS:function(a){var z,y,x,w,v |
| 276 z=a.trim() |
| 277 y=z.length |
| 278 if(y===0)return z |
| 279 if(this.j(z,0)===133){x=J.mm(z,1) |
| 280 if(x===y)return""}else x=0 |
| 281 w=y-1 |
| 282 v=this.j(z,w)===133?J.r9(z,w):y |
| 283 if(x===0&&v===y)return z |
| 284 return z.substring(x,v)}, |
| 285 gl0:function(a){return a.length===0}, |
| 286 bu:function(a){return a}, |
| 287 giO:function(a){var z,y,x |
| 288 for(z=a.length,y=0,x=0;x<z;++x){y=536870911&y+a.charCodeAt(x) |
| 289 y=536870911&y+((524287&y)<<10>>>0) |
| 290 y^=y>>6}y=536870911&y+((67108863&y)<<3>>>0) |
| 291 y^=y>>11 |
| 292 return 536870911&y+((16383&y)<<15>>>0)}, |
| 293 gB:function(a){return a.length}, |
| 294 t:function(a,b){if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 295 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 296 return a[b]}, |
| 297 $isqU:true, |
| 298 static:{Ga:function(a){if(a<256)switch(a){case 9:case 10:case 11:case 12:case 13
:case 32:case 133:case 160:return!0 |
| 299 default:return!1}switch(a){case 5760:case 6158:case 8192:case 8193:case 8194:cas
e 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:cas
e 8232:case 8233:case 8239:case 8287:case 12288:case 65279:return!0 |
| 300 default:return!1}},mm:function(a,b){var z,y |
| 301 for(z=a.length;b<z;){if(b>=z)H.vh(P.N(b)) |
| 302 y=a.charCodeAt(b) |
| 303 if(y!==32&&y!==13&&!J.Ga(y))break;++b}return b},r9:function(a,b){var z,y,x |
| 304 for(z=a.length;b>0;b=y){y=b-1 |
| 305 if(y>=z)H.vh(P.N(y)) |
| 306 x=a.charCodeAt(y) |
| 307 if(x!==32&&x!==13&&!J.Ga(x))break}return b}}}}],["_isolate_helper","dart:_isolat
e_helper",,H,{ |
| 308 "^":"", |
| 309 zd:function(a,b){var z=a.vV(b) |
| 310 init.globalState.Xz.bL() |
| 311 return z}, |
| 312 ox:function(){--init.globalState.Xz.GL}, |
| 313 Rq:function(a,b){var z,y,x,w,v,u |
| 314 z={} |
| 315 z.a=b |
| 316 b=b |
| 317 z.a=b |
| 318 if(b==null){b=[] |
| 319 z.a=b |
| 320 y=b}else y=b |
| 321 if(!J.x(y).$iszM)throw H.b(P.u("Arguments to main must be a List: "+H.d(y))) |
| 322 y=new H.O2(0,0,1,null,null,null,null,null,null,null,null,null,a) |
| 323 y.i6(a) |
| 324 init.globalState=y |
| 325 if(init.globalState.EF===!0)return |
| 326 y=init.globalState.Hg++ |
| 327 x=P.L5(null,null,null,P.KN,H.yo) |
| 328 w=P.Ls(null,null,null,P.KN) |
| 329 v=new H.yo(0,null,!1) |
| 330 u=new H.aX(y,x,w,new I(),v,P.N3(),P.N3(),!1,[],P.Ls(null,null,null,null),null,nu
ll,!1,!1) |
| 331 w.h(0,0) |
| 332 u.aU(0,v) |
| 333 init.globalState.yc=u |
| 334 init.globalState.N0=u |
| 335 y=H.N7() |
| 336 x=H.KT(y,[y]).BD(a) |
| 337 if(x)u.vV(new H.PK(z,a)) |
| 338 else{y=H.KT(y,[y,y]).BD(a) |
| 339 if(y)u.vV(new H.JO(z,a)) |
| 340 else u.vV(a)}init.globalState.Xz.bL()}, |
| 341 Td:function(){var z=init.currentScript |
| 342 if(z!=null)return String(z.src) |
| 343 if(typeof version=="function"&&typeof os=="object"&&"system" in os)return H.mf() |
| 344 if(typeof version=="function"&&typeof system=="function")return thisFilename() |
| 345 if(init.globalState.EF===!0)return H.mf() |
| 346 return}, |
| 347 mf:function(){var z,y |
| 348 z=new Error().stack |
| 349 if(z==null){z=function(){try{throw new Error()}catch(x){return x.stack}}() |
| 350 if(z==null)throw H.b(P.f("No stack trace"))}y=z.match(new RegExp("^ *at [^(]*\\(
(.*):[0-9]*:[0-9]*\\)$","m")) |
| 351 if(y!=null)return y[1] |
| 352 y=z.match(new RegExp("^[^@]*@(.*):[0-9]*$","m")) |
| 353 if(y!=null)return y[1] |
| 354 throw H.b(P.f("Cannot extract URI from \""+H.d(z)+"\""))}, |
| 355 Mg:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l,k,j,i |
| 356 z=H.Hh(b.data) |
| 357 y=J.U6(z) |
| 358 switch(y.t(z,"command")){case"start":init.globalState.oL=y.t(z,"id") |
| 359 x=y.t(z,"functionName") |
| 360 w=x==null?init.globalState.w2:init.globalFunctions[x]() |
| 361 v=y.t(z,"args") |
| 362 u=H.Hh(y.t(z,"msg")) |
| 363 t=y.t(z,"isSpawnUri") |
| 364 s=y.t(z,"startPaused") |
| 365 r=H.Hh(y.t(z,"replyTo")) |
| 366 y=init.globalState.Hg++ |
| 367 q=P.L5(null,null,null,P.KN,H.yo) |
| 368 p=P.Ls(null,null,null,P.KN) |
| 369 o=new H.yo(0,null,!1) |
| 370 n=new H.aX(y,q,p,new I(),o,P.N3(),P.N3(),!1,[],P.Ls(null,null,null,null),null,nu
ll,!1,!1) |
| 371 p.h(0,0) |
| 372 n.aU(0,o) |
| 373 init.globalState.Xz.Rk.NZ(new H.IY(n,new H.jl(w,v,u,t,s,r),"worker-start")) |
| 374 init.globalState.N0=n |
| 375 init.globalState.Xz.bL() |
| 376 break |
| 377 case"spawn-worker":q=y.t(z,"functionName") |
| 378 m=y.t(z,"uri") |
| 379 p=y.t(z,"args") |
| 380 o=y.t(z,"msg") |
| 381 l=y.t(z,"isSpawnUri") |
| 382 k=y.t(z,"startPaused") |
| 383 y=y.t(z,"replyPort") |
| 384 if(m==null)m=$.Rs() |
| 385 j=new Worker(m) |
| 386 j.onmessage=function(c,d){return function(e){c(d,e)}}(H.Mg,j) |
| 387 i=init.globalState.Y7++ |
| 388 $.p6().u(0,j,i) |
| 389 init.globalState.XC.u(0,i,j) |
| 390 j.postMessage(H.I4(P.EF(["command","start","id",i,"replyTo",H.I4(y),"args",p,"ms
g",H.I4(o),"isSpawnUri",l,"startPaused",k,"functionName",q],null,null))) |
| 391 break |
| 392 case"message":if(y.t(z,"port")!=null)J.jV(y.t(z,"port"),y.t(z,"msg")) |
| 393 init.globalState.Xz.bL() |
| 394 break |
| 395 case"close":init.globalState.XC.Rz(0,$.p6().t(0,a)) |
| 396 a.terminate() |
| 397 init.globalState.Xz.bL() |
| 398 break |
| 399 case"log":H.VL(y.t(z,"msg")) |
| 400 break |
| 401 case"print":if(init.globalState.EF===!0){y=init.globalState.vd |
| 402 q=H.I4(P.EF(["command","print","msg",z],null,null)) |
| 403 y.toString |
| 404 self.postMessage(q)}else P.JS(y.t(z,"msg")) |
| 405 break |
| 406 case"error":throw H.b(y.t(z,"msg"))}}, |
| 407 VL:function(a){var z,y,x,w |
| 408 if(init.globalState.EF===!0){y=init.globalState.vd |
| 409 x=H.I4(P.EF(["command","log","msg",a],null,null)) |
| 410 y.toString |
| 411 self.postMessage(x)}else try{$.jk().console.log(a)}catch(w){H.Ru(w) |
| 412 z=new H.XO(w,null) |
| 413 throw H.b(P.FM(z))}}, |
| 414 Z7:function(a,b,c,d,e,f){var z,y,x,w |
| 415 z=init.globalState.N0 |
| 416 y=z.jO |
| 417 $.te=$.te+("_"+y) |
| 418 $.eb=$.eb+("_"+y) |
| 419 y=z.EE |
| 420 x=init.globalState.N0.jO |
| 421 w=z.Qy |
| 422 J.jV(f,["spawned",new H.JM(y,x),w,z.PX]) |
| 423 x=new H.vK(a,b,c,d) |
| 424 if(e===!0){z.v8(w,w) |
| 425 init.globalState.Xz.Rk.NZ(new H.IY(z,x,"start isolate"))}else x.$0()}, |
| 426 I4:function(a){var z |
| 427 if(init.globalState.ji===!0){z=new H.Bj(0,new H.X1()) |
| 428 z.iq=new H.fP(null) |
| 429 return z.h7(a)}else{z=new H.NO(new H.X1()) |
| 430 z.iq=new H.fP(null) |
| 431 return z.h7(a)}}, |
| 432 Hh:function(a){if(init.globalState.ji===!0)return new H.II(null).QS(a) |
| 433 else return a}, |
| 434 vM:function(a){return a==null||typeof a==="string"||typeof a==="number"||typeof
a==="boolean"}, |
| 435 uu:function(a){return a==null||typeof a==="string"||typeof a==="number"||typeof
a==="boolean"}, |
| 436 PK:{ |
| 437 "^":"Tp:9;a,b", |
| 438 $0:function(){this.b.$1(this.a.a)}}, |
| 439 JO:{ |
| 440 "^":"Tp:9;a,c", |
| 441 $0:function(){this.c.$2(this.a.a,null)}}, |
| 442 O2:{ |
| 443 "^":"a;Hg,oL,Y7,N0,yc,Xz,Ai,EF,ji,i2,vd,XC,w2", |
| 444 i6:function(a){var z,y,x,w |
| 445 z=$.C5()==null |
| 446 y=$.vy() |
| 447 x=z&&$.Iz()===!0 |
| 448 this.EF=x |
| 449 if(!x)y=y!=null&&$.Rs()!=null |
| 450 else y=!0 |
| 451 this.ji=y |
| 452 this.Ai=z&&!x |
| 453 y=H.IY |
| 454 x=H.VM(new P.Sw(null,0,0,0),[y]) |
| 455 x.Eo(null,y) |
| 456 this.Xz=new H.cC(x,0) |
| 457 this.i2=P.L5(null,null,null,P.KN,H.aX) |
| 458 this.XC=P.L5(null,null,null,P.KN,null) |
| 459 if(this.EF===!0){z=new H.JH() |
| 460 this.vd=z |
| 461 w=function(b,c){return function(d){b(c,d)}}(H.Mg,z) |
| 462 $.jk().onmessage=w |
| 463 $.jk().dartPrint=function(b){}}}}, |
| 464 aX:{ |
| 465 "^":"a;jO,Gx,fW,En<,EE<,Qy,PX,UF,C9,lJ,Jp,M2,mf,pa", |
| 466 v8:function(a,b){if(!this.Qy.n(0,a))return |
| 467 if(this.lJ.h(0,b)&&!this.UF)this.UF=!0 |
| 468 this.PC()}, |
| 469 cK:function(a){var z,y,x,w,v,u |
| 470 if(!this.UF)return |
| 471 z=this.lJ |
| 472 z.Rz(0,a) |
| 473 if(z.X5===0){for(z=this.C9;y=z.length,y!==0;){if(0>=y)return H.e(z,0) |
| 474 x=z.pop() |
| 475 y=init.globalState.Xz.Rk |
| 476 w=y.av |
| 477 v=y.v5 |
| 478 u=v.length |
| 479 w=(w-1&u-1)>>>0 |
| 480 y.av=w |
| 481 if(w<0||w>=u)return H.e(v,w) |
| 482 v[w]=x |
| 483 if(w===y.HV)y.VW();++y.qT}this.UF=!1}this.PC()}, |
| 484 iK:function(a){var z=this.Jp |
| 485 if(z==null){z=[] |
| 486 this.Jp=z}if(J.kE(z,a))return |
| 487 this.Jp.push(a)}, |
| 488 Hh:function(a){var z=this.Jp |
| 489 if(z==null)return |
| 490 J.V1(z,a)}, |
| 491 MZ:function(a,b){if(!this.PX.n(0,a))return |
| 492 this.pa=b}, |
| 493 Wq:function(a,b){var z,y |
| 494 z=J.x(b) |
| 495 if(!z.n(b,0))y=z.n(b,1)&&!this.mf |
| 496 else y=!0 |
| 497 if(y){J.jV(a,null) |
| 498 return}y=new H.NY(a) |
| 499 if(z.n(b,2)){init.globalState.Xz.Rk.NZ(new H.IY(this,y,"ping")) |
| 500 return}z=this.M2 |
| 501 if(z==null){z=H.VM(new P.Sw(null,0,0,0),[null]) |
| 502 z.Eo(null,null) |
| 503 this.M2=z}z.NZ(y)}, |
| 504 bc:function(a,b){var z,y |
| 505 if(!this.PX.n(0,a))return |
| 506 z=J.x(b) |
| 507 if(!z.n(b,0))y=z.n(b,1)&&!this.mf |
| 508 else y=!0 |
| 509 if(y){this.Dm() |
| 510 return}if(z.n(b,2)){z=init.globalState.Xz |
| 511 y=this.gIm() |
| 512 z.Rk.NZ(new H.IY(this,y,"kill")) |
| 513 return}z=this.M2 |
| 514 if(z==null){z=H.VM(new P.Sw(null,0,0,0),[null]) |
| 515 z.Eo(null,null) |
| 516 this.M2=z}z.NZ(this.gIm())}, |
| 517 vV:function(a){var z,y,x |
| 518 z=init.globalState.N0 |
| 519 init.globalState.N0=this |
| 520 $=this.En |
| 521 y=null |
| 522 this.mf=!0 |
| 523 try{y=a.$0()}finally{this.mf=!1 |
| 524 init.globalState.N0=z |
| 525 if(z!=null)$=z.gEn() |
| 526 if(this.M2!=null)for(;x=this.M2,!x.gl0(x);)this.M2.Ux().$0()}return y}, |
| 527 hV:function(a){return this.Gx.t(0,a)}, |
| 528 aU:function(a,b){var z=this.Gx |
| 529 if(z.x4(0,a))throw H.b(P.FM("Registry: ports must be registered only once.")) |
| 530 z.u(0,a,b)}, |
| 531 PC:function(){if(this.Gx.X5-this.fW.X5>0||this.UF)init.globalState.i2.u(0,this.j
O,this) |
| 532 else this.Dm()}, |
| 533 Dm:[function(){var z,y,x |
| 534 z=this.M2 |
| 535 if(z!=null)z.V1(0) |
| 536 for(z=this.Gx,y=z.gUQ(z),x=y.l6,y=H.VM(new H.MH(null,x.gA(x),y.T6),[H.Kp(y,0),H.
Kp(y,1)]);y.G();)y.lo.pr() |
| 537 if(z.X5>0){z.lX=null |
| 538 z.H9=null |
| 539 z.OB=null |
| 540 z.OX=null |
| 541 z.vv=null |
| 542 z.X5=0 |
| 543 z.zN=z.zN+1&67108863}z=this.fW |
| 544 if(z.X5>0){z.lX=null |
| 545 z.H9=null |
| 546 z.OB=null |
| 547 z.OX=null |
| 548 z.vv=null |
| 549 z.X5=0 |
| 550 z.zN=z.zN+1&67108863}init.globalState.i2.Rz(0,this.jO) |
| 551 z=this.Jp |
| 552 if(z!=null){for(z=new H.a7(z,z.length,0,null);z.G();)J.jV(z.lo,null) |
| 553 this.Jp=null}},"$0","gIm",0,0,1]}, |
| 554 NY:{ |
| 555 "^":"Tp:1;a", |
| 556 $0:function(){J.jV(this.a,null)}}, |
| 557 cC:{ |
| 558 "^":"a;Rk,GL", |
| 559 mj:function(){var z=this.Rk |
| 560 if(z.av===z.HV)return |
| 561 return z.Ux()}, |
| 562 xB:function(){var z,y,x |
| 563 z=this.mj() |
| 564 if(z==null){if(init.globalState.yc!=null&&init.globalState.i2.x4(0,init.globalSt
ate.yc.jO)&&init.globalState.Ai===!0&&init.globalState.yc.Gx.X5===0)H.vh(P.FM("P
rogram exited with open ReceivePorts.")) |
| 565 y=init.globalState |
| 566 if(y.EF===!0&&y.i2.X5===0&&y.Xz.GL===0){y=y.vd |
| 567 x=H.I4(P.EF(["command","close"],null,null)) |
| 568 y.toString |
| 569 self.postMessage(x)}return!1}z.VU() |
| 570 return!0}, |
| 571 Wu:function(){if($.C5()!=null)new H.RA(this).$0() |
| 572 else for(;this.xB(););}, |
| 573 bL:function(){var z,y,x,w,v |
| 574 if(init.globalState.EF!==!0)this.Wu() |
| 575 else try{this.Wu()}catch(x){w=H.Ru(x) |
| 576 z=w |
| 577 y=new H.XO(x,null) |
| 578 w=init.globalState.vd |
| 579 v=H.I4(P.EF(["command","error","msg",H.d(z)+"\n"+H.d(y)],null,null)) |
| 580 w.toString |
| 581 self.postMessage(v)}}}, |
| 582 RA:{ |
| 583 "^":"Tp:1;a", |
| 584 $0:function(){if(!this.a.xB())return |
| 585 P.rT(C.ny,this)}}, |
| 586 IY:{ |
| 587 "^":"a;od,i3,G1", |
| 588 VU:function(){var z=this.od |
| 589 if(z.UF){z.C9.push(this) |
| 590 return}z.vV(this.i3)}}, |
| 591 JH:{ |
| 592 "^":"a;"}, |
| 593 jl:{ |
| 594 "^":"Tp:9;a,b,c,d,e,f", |
| 595 $0:function(){H.Z7(this.a,this.b,this.c,this.d,this.e,this.f)}}, |
| 596 vK:{ |
| 597 "^":"Tp:1;a,b,c,d", |
| 598 $0:function(){var z,y,x |
| 599 if(this.d!==!0)this.a.$1(this.c) |
| 600 else{z=this.a |
| 601 y=H.N7() |
| 602 x=H.KT(y,[y,y]).BD(z) |
| 603 if(x)z.$2(this.b,this.c) |
| 604 else{y=H.KT(y,[y]).BD(z) |
| 605 if(y)z.$1(this.b) |
| 606 else z.$0()}}}}, |
| 607 Iy:{ |
| 608 "^":"a;", |
| 609 $isbC:true, |
| 610 $isIU:true}, |
| 611 JM:{ |
| 612 "^":"Iy;JE,Jz", |
| 613 wR:function(a,b){var z,y,x,w,v |
| 614 z={} |
| 615 y=this.Jz |
| 616 x=init.globalState.i2.t(0,y) |
| 617 if(x==null)return |
| 618 w=this.JE |
| 619 if(w.gKS())return |
| 620 v=init.globalState.N0!=null&&init.globalState.N0.jO!==y |
| 621 z.a=b |
| 622 if(v)z.a=H.I4(b) |
| 623 if(x.gEE()===w){z=z.a |
| 624 y=J.U6(z) |
| 625 switch(y.t(z,0)){case"pause":x.v8(y.t(z,1),y.t(z,2)) |
| 626 break |
| 627 case"resume":x.cK(y.t(z,1)) |
| 628 break |
| 629 case"add-ondone":x.iK(y.t(z,1)) |
| 630 break |
| 631 case"remove-ondone":x.Hh(y.t(z,1)) |
| 632 break |
| 633 case"set-errors-fatal":x.MZ(y.t(z,1),y.t(z,2)) |
| 634 break |
| 635 case"ping":x.Wq(y.t(z,1),y.t(z,2)) |
| 636 break |
| 637 case"kill":x.bc(y.t(z,1),y.t(z,2)) |
| 638 break}return}y=init.globalState.Xz |
| 639 w="receive "+H.d(b) |
| 640 y.Rk.NZ(new H.IY(x,new H.Ua(z,this,v),w))}, |
| 641 n:function(a,b){if(b==null)return!1 |
| 642 return!!J.x(b).$isJM&&J.de(this.JE,b.JE)}, |
| 643 giO:function(a){return this.JE.gx6()}, |
| 644 $isJM:true, |
| 645 $isbC:true, |
| 646 $isIU:true}, |
| 647 Ua:{ |
| 648 "^":"Tp:9;a,b,c", |
| 649 $0:function(){var z,y |
| 650 z=this.b.JE |
| 651 if(!z.gKS()){if(this.c){y=this.a |
| 652 y.a=H.Hh(y.a)}z.FL(this.a.a)}}}, |
| 653 ns:{ |
| 654 "^":"Iy;Ws,bv,Jz", |
| 655 wR:function(a,b){var z,y |
| 656 z=H.I4(P.EF(["command","message","port",this,"msg",b],null,null)) |
| 657 if(init.globalState.EF===!0){init.globalState.vd.toString |
| 658 self.postMessage(z)}else{y=init.globalState.XC.t(0,this.Ws) |
| 659 if(y!=null)y.postMessage(z)}}, |
| 660 n:function(a,b){if(b==null)return!1 |
| 661 return!!J.x(b).$isns&&J.de(this.Ws,b.Ws)&&J.de(this.Jz,b.Jz)&&J.de(this.bv,b.bv)
}, |
| 662 giO:function(a){var z,y,x |
| 663 z=this.Ws |
| 664 if(typeof z!=="number")return z.O() |
| 665 y=this.Jz |
| 666 if(typeof y!=="number")return y.O() |
| 667 x=this.bv |
| 668 if(typeof x!=="number")return H.s(x) |
| 669 return(z<<16^y<<8^x)>>>0}, |
| 670 $isns:true, |
| 671 $isbC:true, |
| 672 $isIU:true}, |
| 673 yo:{ |
| 674 "^":"a;x6<,Sy,KS<", |
| 675 aV:function(a){return this.Sy.$1(a)}, |
| 676 pr:function(){this.KS=!0 |
| 677 this.Sy=null}, |
| 678 FL:function(a){if(this.KS)return |
| 679 this.aV(a)}, |
| 680 static:{"^":"ty"}}, |
| 681 Bj:{ |
| 682 "^":"Tf;CN,iq", |
| 683 aC:function(a){if(!!a.$isJM)return["sendport",init.globalState.oL,a.Jz,a.JE.gx6(
)] |
| 684 if(!!a.$isns)return["sendport",a.Ws,a.Jz,a.bv] |
| 685 throw H.b("Illegal underlying port "+a.bu(0))}, |
| 686 yf:function(a){if(!!a.$isku)return["capability",a.x6] |
| 687 throw H.b("Capability not serializable: "+a.bu(0))}}, |
| 688 NO:{ |
| 689 "^":"oo;iq", |
| 690 aC:function(a){if(!!a.$isJM)return new H.JM(a.JE,a.Jz) |
| 691 if(!!a.$isns)return new H.ns(a.Ws,a.bv,a.Jz) |
| 692 throw H.b("Illegal underlying port "+a.bu(0))}, |
| 693 yf:function(a){if(!!a.$isku)return new H.ku(a.x6) |
| 694 throw H.b("Capability not serializable: "+a.bu(0))}}, |
| 695 II:{ |
| 696 "^":"iY;RZ", |
| 697 Vf:function(a){var z,y,x,w,v,u |
| 698 z=J.U6(a) |
| 699 y=z.t(a,1) |
| 700 x=z.t(a,2) |
| 701 w=z.t(a,3) |
| 702 if(J.de(y,init.globalState.oL)){v=init.globalState.i2.t(0,x) |
| 703 if(v==null)return |
| 704 u=v.hV(w) |
| 705 if(u==null)return |
| 706 return new H.JM(u,x)}else return new H.ns(y,w,x)}, |
| 707 Op:function(a){return new H.ku(J.UQ(a,1))}}, |
| 708 fP:{ |
| 709 "^":"a;kw", |
| 710 t:function(a,b){return b.__MessageTraverser__attached_info__}, |
| 711 u:function(a,b,c){this.kw.push(b) |
| 712 b.__MessageTraverser__attached_info__=c}, |
| 713 CH:function(a){this.kw=[]}, |
| 714 F4:function(){var z,y,x |
| 715 for(z=this.kw.length,y=0;y<z;++y){x=this.kw |
| 716 if(y>=x.length)return H.e(x,y) |
| 717 x[y].__MessageTraverser__attached_info__=null}this.kw=null}}, |
| 718 X1:{ |
| 719 "^":"a;", |
| 720 t:function(a,b){return}, |
| 721 u:function(a,b,c){}, |
| 722 CH:function(a){}, |
| 723 F4:function(){}}, |
| 724 HU:{ |
| 725 "^":"a;", |
| 726 h7:function(a){var z |
| 727 if(H.vM(a))return this.Pq(a) |
| 728 this.iq.CH(0) |
| 729 z=null |
| 730 try{z=this.I8(a)}finally{this.iq.F4()}return z}, |
| 731 I8:function(a){var z |
| 732 if(a==null||typeof a==="string"||typeof a==="number"||typeof a==="boolean")retur
n this.Pq(a) |
| 733 z=J.x(a) |
| 734 if(!!z.$iszM)return this.wb(a) |
| 735 if(!!z.$isZ0)return this.w5(a) |
| 736 if(!!z.$isbC)return this.aC(a) |
| 737 if(!!z.$isIU)return this.yf(a) |
| 738 return this.N1(a)}, |
| 739 N1:function(a){throw H.b("Message serialization: Illegal value "+H.d(a)+" passed
")}}, |
| 740 oo:{ |
| 741 "^":"HU;", |
| 742 Pq:function(a){return a}, |
| 743 wb:function(a){var z,y,x |
| 744 z=this.iq.t(0,a) |
| 745 if(z!=null)return z |
| 746 y=J.q8(a) |
| 747 z=Array(y) |
| 748 z.fixed$length=init |
| 749 this.iq.u(0,a,z) |
| 750 for(x=0;x<y;++x){if(x>=a.length)return H.e(a,x) |
| 751 z[x]=this.I8(a[x])}return z}, |
| 752 w5:function(a){var z,y |
| 753 z={} |
| 754 y=this.iq.t(0,a) |
| 755 z.a=y |
| 756 if(y!=null)return y |
| 757 y=P.L5(null,null,null,null,null) |
| 758 z.a=y |
| 759 this.iq.u(0,a,y) |
| 760 J.kH(a,new H.OW(z,this)) |
| 761 return z.a}, |
| 762 aC:function(a){return H.vh(P.SY(null))}, |
| 763 yf:function(a){return H.vh(P.SY(null))}}, |
| 764 OW:{ |
| 765 "^":"Tp:10;a,b", |
| 766 $2:function(a,b){var z=this.b |
| 767 J.kW(this.a.a,z.I8(a),z.I8(b))}}, |
| 768 Tf:{ |
| 769 "^":"HU;", |
| 770 Pq:function(a){return a}, |
| 771 wb:function(a){var z,y |
| 772 z=this.iq.t(0,a) |
| 773 if(z!=null)return["ref",z] |
| 774 y=this.CN++ |
| 775 this.iq.u(0,a,y) |
| 776 return["list",y,this.mE(a)]}, |
| 777 w5:function(a){var z,y,x |
| 778 z=this.iq.t(0,a) |
| 779 if(z!=null)return["ref",z] |
| 780 y=this.CN++ |
| 781 this.iq.u(0,a,y) |
| 782 x=J.RE(a) |
| 783 return["map",y,this.mE(J.qA(x.gvc(a))),this.mE(J.qA(x.gUQ(a)))]}, |
| 784 mE:function(a){var z,y,x,w |
| 785 z=J.q8(a) |
| 786 y=[] |
| 787 C.Nm.sB(y,z) |
| 788 for(x=0;x<z;++x){if(x>=a.length)return H.e(a,x) |
| 789 w=this.I8(a[x]) |
| 790 if(x>=y.length)return H.e(y,x) |
| 791 y[x]=w}return y}, |
| 792 aC:function(a){return H.vh(P.SY(null))}, |
| 793 yf:function(a){return H.vh(P.SY(null))}}, |
| 794 iY:{ |
| 795 "^":"a;", |
| 796 QS:function(a){if(H.uu(a))return a |
| 797 this.RZ=P.Py(null,null,null,null,null) |
| 798 return this.XE(a)}, |
| 799 XE:function(a){var z,y |
| 800 if(a==null||typeof a==="string"||typeof a==="number"||typeof a==="boolean")retur
n a |
| 801 z=J.U6(a) |
| 802 switch(z.t(a,0)){case"ref":y=z.t(a,1) |
| 803 return this.RZ.t(0,y) |
| 804 case"list":return this.Dj(a) |
| 805 case"map":return this.tv(a) |
| 806 case"sendport":return this.Vf(a) |
| 807 case"capability":return this.Op(a) |
| 808 default:return this.PR(a)}}, |
| 809 Dj:function(a){var z,y,x,w,v |
| 810 z=J.U6(a) |
| 811 y=z.t(a,1) |
| 812 x=z.t(a,2) |
| 813 this.RZ.u(0,y,x) |
| 814 z=J.U6(x) |
| 815 w=z.gB(x) |
| 816 if(typeof w!=="number")return H.s(w) |
| 817 v=0 |
| 818 for(;v<w;++v)z.u(x,v,this.XE(z.t(x,v))) |
| 819 return x}, |
| 820 tv:function(a){var z,y,x,w,v,u,t,s |
| 821 z=P.L5(null,null,null,null,null) |
| 822 y=J.U6(a) |
| 823 x=y.t(a,1) |
| 824 this.RZ.u(0,x,z) |
| 825 w=y.t(a,2) |
| 826 v=y.t(a,3) |
| 827 y=J.U6(w) |
| 828 u=y.gB(w) |
| 829 if(typeof u!=="number")return H.s(u) |
| 830 t=J.U6(v) |
| 831 s=0 |
| 832 for(;s<u;++s)z.u(0,this.XE(y.t(w,s)),this.XE(t.t(v,s))) |
| 833 return z}, |
| 834 PR:function(a){throw H.b("Unexpected serialized object")}}, |
| 835 yH:{ |
| 836 "^":"a;Kf,zu,p9", |
| 837 Qa:function(a,b){var z,y |
| 838 if(a===0)z=$.jk().setTimeout==null||init.globalState.EF===!0 |
| 839 else z=!1 |
| 840 if(z){this.p9=1 |
| 841 z=init.globalState.Xz |
| 842 y=init.globalState.N0 |
| 843 z.Rk.NZ(new H.IY(y,new H.FA(this,b),"timer")) |
| 844 this.zu=!0}else{z=$.jk() |
| 845 if(z.setTimeout!=null){++init.globalState.Xz.GL |
| 846 this.p9=z.setTimeout(H.tR(new H.Av(this,b),0),a)}else throw H.b(P.f("Timer great
er than 0."))}}, |
| 847 static:{cy:function(a,b){var z=new H.yH(!0,!1,null) |
| 848 z.Qa(a,b) |
| 849 return z}}}, |
| 850 FA:{ |
| 851 "^":"Tp:1;a,b", |
| 852 $0:function(){this.a.p9=null |
| 853 this.b.$0()}}, |
| 854 Av:{ |
| 855 "^":"Tp:1;c,d", |
| 856 $0:function(){this.c.p9=null |
| 857 H.ox() |
| 858 this.d.$0()}}, |
| 859 ku:{ |
| 860 "^":"a;x6<", |
| 861 giO:function(a){var z=this.x6 |
| 862 if(typeof z!=="number")return z.m() |
| 863 z=C.CD.GG(z,0)^C.CD.cU(z,4294967296) |
| 864 z=(~z>>>0)+(z<<15>>>0)&4294967295 |
| 865 z=((z^z>>>12)>>>0)*5&4294967295 |
| 866 z=((z^z>>>4)>>>0)*2057&4294967295 |
| 867 return(z^z>>>16)>>>0}, |
| 868 n:function(a,b){var z,y |
| 869 if(b==null)return!1 |
| 870 if(b===this)return!0 |
| 871 if(!!J.x(b).$isku){z=this.x6 |
| 872 y=b.x6 |
| 873 return z==null?y==null:z===y}return!1}, |
| 874 $isku:true, |
| 875 $isIU:true}}],["_js_helper","dart:_js_helper",,H,{ |
| 876 "^":"", |
| 877 wV:function(a,b){var z |
| 878 if(b!=null){z=b.x |
| 879 if(z!=null)return z}return!!J.x(a).$isXj}, |
| 880 d:function(a){var z |
| 881 if(typeof a==="string")return a |
| 882 if(typeof a==="number"){if(a!==0)return""+a}else if(!0===a)return"true" |
| 883 else if(!1===a)return"false" |
| 884 else if(a==null)return"null" |
| 885 z=J.AG(a) |
| 886 if(typeof z!=="string")throw H.b(P.u(a)) |
| 887 return z}, |
| 888 eQ:function(a){var z=a.$identityHash |
| 889 if(z==null){z=Math.random()*0x3fffffff|0 |
| 890 a.$identityHash=z}return z}, |
| 891 lh:function(a){var z,y |
| 892 z=C.w2(J.x(a)) |
| 893 if(z==="Object"){y=String(a.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1] |
| 894 if(typeof y==="string")z=/^\w+$/.test(y)?y:z}if(z.length>1&&C.xB.j(z,0)===36)z=C
.xB.yn(z,1) |
| 895 return(z+H.ia(H.oX(a),0,null)).replace(/[^<,> ]+/g,function(b){return init.mangl
edGlobalNames[b]||b})}, |
| 896 a5:function(a){return"Instance of '"+H.lh(a)+"'"}, |
| 897 Lw:function(a){var z |
| 898 if(0<=a){if(a<=65535)return String.fromCharCode(a) |
| 899 if(a<=1114111){z=a-65536 |
| 900 return String.fromCharCode((55296|C.jn.GG(z,10))>>>0,56320|z&1023)}}throw H.b(P.
TE(a,0,1114111))}, |
| 901 VK:function(a,b){if(a==null||typeof a==="boolean"||typeof a==="number"||typeof a
==="string")throw H.b(P.u(a)) |
| 902 return a[b]}, |
| 903 aw:function(a,b,c){if(a==null||typeof a==="boolean"||typeof a==="number"||typeof
a==="string")throw H.b(P.u(a)) |
| 904 a[b]=c}, |
| 905 s:function(a){throw H.b(P.u(a))}, |
| 906 e:function(a,b){if(a==null)J.q8(a) |
| 907 if(typeof b!=="number"||Math.floor(b)!==b)H.s(b) |
| 908 throw H.b(P.N(b))}, |
| 909 b:function(a){var z |
| 910 if(a==null)a=new P.LK() |
| 911 z=new Error() |
| 912 z.dartException=a |
| 913 if("defineProperty" in Object){Object.defineProperty(z,"message",{get:H.Ju}) |
| 914 z.name=""}else z.toString=H.Ju |
| 915 return z}, |
| 916 Ju:function(){return J.AG(this.dartException)}, |
| 917 vh:function(a){throw H.b(a)}, |
| 918 Ru:function(a){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 919 z=new H.Am(a) |
| 920 if(a==null)return |
| 921 if(typeof a!=="object")return a |
| 922 if("dartException" in a)return z.$1(a.dartException) |
| 923 else if(!("message" in a))return a |
| 924 y=a.message |
| 925 if("number" in a&&typeof a.number=="number"){x=a.number |
| 926 w=x&65535 |
| 927 if((C.jn.GG(x,16)&8191)===10)switch(w){case 438:return z.$1(H.T3(H.d(y)+" (Error
"+w+")",null)) |
| 928 case 445:case 5007:v=H.d(y)+" (Error "+w+")" |
| 929 return z.$1(new H.W0(v,null))}}if(a instanceof TypeError){v=$.WD() |
| 930 u=$.OI() |
| 931 t=$.PH() |
| 932 s=$.D1() |
| 933 r=$.rx() |
| 934 q=$.Y9() |
| 935 p=$.zO() |
| 936 $.Bi() |
| 937 o=$.eA() |
| 938 n=$.ko() |
| 939 m=v.qS(y) |
| 940 if(m!=null)return z.$1(H.T3(y,m)) |
| 941 else{m=u.qS(y) |
| 942 if(m!=null){m.method="call" |
| 943 return z.$1(H.T3(y,m))}else{m=t.qS(y) |
| 944 if(m==null){m=s.qS(y) |
| 945 if(m==null){m=r.qS(y) |
| 946 if(m==null){m=q.qS(y) |
| 947 if(m==null){m=p.qS(y) |
| 948 if(m==null){m=s.qS(y) |
| 949 if(m==null){m=o.qS(y) |
| 950 if(m==null){m=n.qS(y) |
| 951 v=m!=null}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0 |
| 952 if(v){v=m==null?null:m.method |
| 953 return z.$1(new H.W0(y,v))}}}v=typeof y==="string"?y:"" |
| 954 return z.$1(new H.vV(v))}if(a instanceof RangeError){if(typeof y==="string"&&y.i
ndexOf("call stack")!==-1)return new P.VS() |
| 955 return z.$1(new P.AT(null))}if(typeof InternalError=="function"&&a instanceof In
ternalError)if(typeof y==="string"&&y==="too much recursion")return new P.VS() |
| 956 return a}, |
| 957 CU:function(a){if(a==null||typeof a!='object')return J.v1(a) |
| 958 else return H.eQ(a)}, |
| 959 B7:function(a,b){var z,y,x,w |
| 960 z=a.length |
| 961 for(y=0;y<z;y=w){x=y+1 |
| 962 w=x+1 |
| 963 b.u(0,a[y],a[x])}return b}, |
| 964 ft:function(a,b,c,d,e,f,g){var z=J.x(c) |
| 965 if(z.n(c,0))return H.zd(b,new H.dr(a)) |
| 966 else if(z.n(c,1))return H.zd(b,new H.TL(a,d)) |
| 967 else if(z.n(c,2))return H.zd(b,new H.KX(a,d,e)) |
| 968 else if(z.n(c,3))return H.zd(b,new H.uZ(a,d,e,f)) |
| 969 else if(z.n(c,4))return H.zd(b,new H.OQ(a,d,e,f,g)) |
| 970 else throw H.b(P.FM("Unsupported number of arguments for wrapped closure"))}, |
| 971 tR:function(a,b){var z |
| 972 if(a==null)return |
| 973 z=a.$identity |
| 974 if(!!z)return z |
| 975 z=function(c,d,e,f){return function(g,h,i,j){return f(c,e,d,g,h,i,j)}}(a,b,init.
globalState.N0,H.ft) |
| 976 a.$identity=z |
| 977 return z}, |
| 978 iA:function(a,b,c,d,e,f){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 979 z=b[0] |
| 980 z.$stubName |
| 981 y=z.$callName |
| 982 z.$reflectionInfo=c |
| 983 x=H.zh(z).AM |
| 984 w=d?Object.create(new H.Bp().constructor.prototype):Object.create(new H.v(null,n
ull,null,null).constructor.prototype) |
| 985 w.$initialize=w.constructor |
| 986 if(d)v=function(){this.$initialize()} |
| 987 else if(typeof dart_precompiled=="function"){u=function(g,h,i,j){this.$initializ
e(g,h,i,j)} |
| 988 v=u}else{u=$.yj |
| 989 $.yj=J.WB(u,1) |
| 990 u=new Function("a","b","c","d","this.$initialize(a,b,c,d);"+u) |
| 991 v=u}w.constructor=v |
| 992 v.prototype=w |
| 993 u=!d |
| 994 if(u){t=e.length==1&&!0 |
| 995 s=H.bx(a,z,t) |
| 996 s.$reflectionInfo=c}else{w.$name=f |
| 997 s=z |
| 998 t=!1}if(typeof x=="number")r=function(g){return function(){return init.metadata[
g]}}(x) |
| 999 else if(u&&typeof x=="function"){q=t?H.yS:H.DV |
| 1000 r=function(g,h){return function(){return g.apply({$receiver:h(this)},arguments)}
}(x,q)}else throw H.b("Error in reflectionInfo.") |
| 1001 w.$signature=r |
| 1002 w[y]=s |
| 1003 for(u=b.length,p=1;p<u;++p){o=b[p] |
| 1004 n=o.$callName |
| 1005 if(n!=null){m=d?o:H.bx(a,o,t) |
| 1006 w[n]=m}}w["call*"]=s |
| 1007 return v}, |
| 1008 vq:function(a,b,c,d){var z=H.DV |
| 1009 switch(b?-1:a){case 0:return function(e,f){return function(){return f(this)[e]()
}}(c,z) |
| 1010 case 1:return function(e,f){return function(g){return f(this)[e](g)}}(c,z) |
| 1011 case 2:return function(e,f){return function(g,h){return f(this)[e](g,h)}}(c,z) |
| 1012 case 3:return function(e,f){return function(g,h,i){return f(this)[e](g,h,i)}}(c,
z) |
| 1013 case 4:return function(e,f){return function(g,h,i,j){return f(this)[e](g,h,i,j)}
}(c,z) |
| 1014 case 5:return function(e,f){return function(g,h,i,j,k){return f(this)[e](g,h,i,j
,k)}}(c,z) |
| 1015 default:return function(e,f){return function(){return e.apply(f(this),arguments)
}}(d,z)}}, |
| 1016 bx:function(a,b,c){var z,y,x,w,v,u |
| 1017 if(c)return H.Hf(a,b) |
| 1018 z=b.$stubName |
| 1019 y=b.length |
| 1020 x=a[z] |
| 1021 w=b==null?x==null:b===x |
| 1022 if(typeof dart_precompiled=="function"||!w||y>=27)return H.vq(y,!w,z,b) |
| 1023 if(y===0){w=$.mJ |
| 1024 if(w==null){w=H.E2("self") |
| 1025 $.mJ=w}w="return function(){return this."+H.d(w)+"."+H.d(z)+"();" |
| 1026 v=$.yj |
| 1027 $.yj=J.WB(v,1) |
| 1028 return new Function(w+H.d(v)+"}")()}u="abcdefghijklmnopqrstuvwxyz".split("").spl
ice(0,y).join(",") |
| 1029 w="return function("+u+"){return this." |
| 1030 v=$.mJ |
| 1031 if(v==null){v=H.E2("self") |
| 1032 $.mJ=v}v=w+H.d(v)+"."+H.d(z)+"("+u+");" |
| 1033 w=$.yj |
| 1034 $.yj=J.WB(w,1) |
| 1035 return new Function(v+H.d(w)+"}")()}, |
| 1036 Z4:function(a,b,c,d){var z,y |
| 1037 z=H.DV |
| 1038 y=H.yS |
| 1039 switch(b?-1:a){case 0:throw H.b(H.Ef("Intercepted function with no arguments.")) |
| 1040 case 1:return function(e,f,g){return function(){return f(this)[e](g(this))}}(c,z
,y) |
| 1041 case 2:return function(e,f,g){return function(h){return f(this)[e](g(this),h)}}(
c,z,y) |
| 1042 case 3:return function(e,f,g){return function(h,i){return f(this)[e](g(this),h,i
)}}(c,z,y) |
| 1043 case 4:return function(e,f,g){return function(h,i,j){return f(this)[e](g(this),h
,i,j)}}(c,z,y) |
| 1044 case 5:return function(e,f,g){return function(h,i,j,k){return f(this)[e](g(this)
,h,i,j,k)}}(c,z,y) |
| 1045 case 6:return function(e,f,g){return function(h,i,j,k,l){return f(this)[e](g(thi
s),h,i,j,k,l)}}(c,z,y) |
| 1046 default:return function(e,f,g,h){return function(){h=[g(this)] |
| 1047 Array.prototype.push.apply(h,arguments) |
| 1048 return e.apply(f(this),h)}}(d,z,y)}}, |
| 1049 Hf:function(a,b){var z,y,x,w,v,u,t,s |
| 1050 z=H.oN() |
| 1051 y=$.P4 |
| 1052 if(y==null){y=H.E2("receiver") |
| 1053 $.P4=y}x=b.$stubName |
| 1054 w=b.length |
| 1055 v=typeof dart_precompiled=="function" |
| 1056 u=a[x] |
| 1057 t=b==null?u==null:b===u |
| 1058 if(v||!t||w>=28)return H.Z4(w,!t,x,b) |
| 1059 if(w===1){y="return function(){return this."+H.d(z)+"."+H.d(x)+"(this."+H.d(y)+"
);" |
| 1060 t=$.yj |
| 1061 $.yj=J.WB(t,1) |
| 1062 return new Function(y+H.d(t)+"}")()}s="abcdefghijklmnopqrstuvwxyz".split("").spl
ice(0,w-1).join(",") |
| 1063 y="return function("+s+"){return this."+H.d(z)+"."+H.d(x)+"(this."+H.d(y)+", "+s
+");" |
| 1064 t=$.yj |
| 1065 $.yj=J.WB(t,1) |
| 1066 return new Function(y+H.d(t)+"}")()}, |
| 1067 qm:function(a,b,c,d,e,f){b.fixed$length=init |
| 1068 c.fixed$length=init |
| 1069 return H.iA(a,b,c,!!d,e,f)}, |
| 1070 SE:function(a,b){var z=J.U6(b) |
| 1071 throw H.b(H.aq(H.lh(a),z.Nj(b,3,z.gB(b))))}, |
| 1072 Go:function(a,b){var z |
| 1073 if(a!=null)z=typeof a==="object"&&J.x(a)[b] |
| 1074 else z=!0 |
| 1075 if(z)return a |
| 1076 H.SE(a,b)}, |
| 1077 ag:function(a){throw H.b(P.Gz("Cyclic initialization for static "+H.d(a)))}, |
| 1078 KT:function(a,b,c){return new H.tD(a,b,c,null)}, |
| 1079 N7:function(){return C.KZ}, |
| 1080 VM:function(a,b){if(a!=null)a.$builtinTypeInfo=b |
| 1081 return a}, |
| 1082 oX:function(a){if(a==null)return |
| 1083 return a.$builtinTypeInfo}, |
| 1084 IM:function(a,b){return H.Z9(a["$as"+H.d(b)],H.oX(a))}, |
| 1085 ip:function(a,b,c){var z=H.IM(a,b) |
| 1086 return z==null?null:z[c]}, |
| 1087 Kp:function(a,b){var z=H.oX(a) |
| 1088 return z==null?null:z[b]}, |
| 1089 Ko:function(a,b){if(a==null)return"dynamic" |
| 1090 else if(typeof a==="object"&&a!==null&&a.constructor===Array)return a[0].builtin
$cls+H.ia(a,1,b) |
| 1091 else if(typeof a=="function")return a.builtin$cls |
| 1092 else if(typeof a==="number"&&Math.floor(a)===a)return C.jn.bu(a) |
| 1093 else return}, |
| 1094 ia:function(a,b,c){var z,y,x,w,v,u |
| 1095 if(a==null)return"" |
| 1096 z=P.p9("") |
| 1097 for(y=b,x=!0,w=!0;y<a.length;++y){if(x)x=!1 |
| 1098 else z.vM+=", " |
| 1099 v=a[y] |
| 1100 if(v!=null)w=!1 |
| 1101 u=H.Ko(v,c) |
| 1102 z.vM+=typeof u==="string"?u:H.d(u)}return w?"":"<"+H.d(z)+">"}, |
| 1103 Z9:function(a,b){if(typeof a==="object"&&a!==null&&a.constructor===Array)b=a |
| 1104 else if(typeof a=="function"){a=H.ml(a,null,b) |
| 1105 if(typeof a==="object"&&a!==null&&a.constructor===Array)b=a |
| 1106 else if(typeof a=="function")b=H.ml(a,null,b)}return b}, |
| 1107 hv:function(a,b){var z,y |
| 1108 if(a==null||b==null)return!0 |
| 1109 z=a.length |
| 1110 for(y=0;y<z;++y)if(!H.t1(a[y],b[y]))return!1 |
| 1111 return!0}, |
| 1112 IG:function(a,b,c){return H.ml(a,b,H.IM(b,c))}, |
| 1113 t1:function(a,b){var z,y,x,w,v,u,t |
| 1114 if(a===b)return!0 |
| 1115 if(a==null||b==null)return!0 |
| 1116 if("func" in b){if(!("func" in a)){if("$is_"+H.d(b.func) in a)return!0 |
| 1117 z=a.$signature |
| 1118 if(z==null)return!1 |
| 1119 a=z.apply(a,null)}return H.Ly(a,b)}if(b.builtin$cls==="EH"&&"func" in a)return!0 |
| 1120 y=typeof a==="object"&&a!==null&&a.constructor===Array |
| 1121 x=y?a[0]:a |
| 1122 w=typeof b==="object"&&b!==null&&b.constructor===Array |
| 1123 v=w?b[0]:b |
| 1124 u=H.Ko(v,null) |
| 1125 if(v!==x){if(!("$is"+H.d(u) in x))return!1 |
| 1126 t=x["$as"+H.d(H.Ko(v,null))]}else t=null |
| 1127 if(!y&&t==null||!w)return!0 |
| 1128 y=y?a.slice(1):null |
| 1129 w=w?b.slice(1):null |
| 1130 return H.hv(H.Z9(t,y),w)}, |
| 1131 Hc:function(a,b,c){var z,y,x,w,v |
| 1132 if(b==null&&a==null)return!0 |
| 1133 if(b==null)return c |
| 1134 if(a==null)return!1 |
| 1135 z=a.length |
| 1136 y=b.length |
| 1137 if(c){if(z<y)return!1}else if(z!==y)return!1 |
| 1138 for(x=0;x<y;++x){w=a[x] |
| 1139 v=b[x] |
| 1140 if(!(H.t1(w,v)||H.t1(v,w)))return!1}return!0}, |
| 1141 Vt:function(a,b){var z,y,x,w,v,u |
| 1142 if(b==null)return!0 |
| 1143 if(a==null)return!1 |
| 1144 z=Object.getOwnPropertyNames(b) |
| 1145 z.fixed$length=init |
| 1146 y=z |
| 1147 for(z=y.length,x=0;x<z;++x){w=y[x] |
| 1148 if(!Object.hasOwnProperty.call(a,w))return!1 |
| 1149 v=b[w] |
| 1150 u=a[w] |
| 1151 if(!(H.t1(v,u)||H.t1(u,v)))return!1}return!0}, |
| 1152 Ly:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l |
| 1153 if(!("func" in a))return!1 |
| 1154 if("void" in a){if(!("void" in b)&&"ret" in b)return!1}else if(!("void" in b)){z
=a.ret |
| 1155 y=b.ret |
| 1156 if(!(H.t1(z,y)||H.t1(y,z)))return!1}x=a.args |
| 1157 w=b.args |
| 1158 v=a.opt |
| 1159 u=b.opt |
| 1160 t=x!=null?x.length:0 |
| 1161 s=w!=null?w.length:0 |
| 1162 r=v!=null?v.length:0 |
| 1163 q=u!=null?u.length:0 |
| 1164 if(t>s)return!1 |
| 1165 if(t+r<s+q)return!1 |
| 1166 if(t===s){if(!H.Hc(x,w,!1))return!1 |
| 1167 if(!H.Hc(v,u,!0))return!1}else{for(p=0;p<t;++p){o=x[p] |
| 1168 n=w[p] |
| 1169 if(!(H.t1(o,n)||H.t1(n,o)))return!1}for(m=p,l=0;m<s;++l,++m){o=v[l] |
| 1170 n=w[m] |
| 1171 if(!(H.t1(o,n)||H.t1(n,o)))return!1}for(m=0;m<q;++l,++m){o=v[l] |
| 1172 n=u[m] |
| 1173 if(!(H.t1(o,n)||H.t1(n,o)))return!1}}return H.Vt(a.named,b.named)}, |
| 1174 ml:function(a,b,c){return a.apply(b,c)}, |
| 1175 or:function(a){var z=$.NF |
| 1176 return"Instance of "+(z==null?"<Unknown>":z.$1(a))}, |
| 1177 wz:function(a){return H.eQ(a)}, |
| 1178 iw:function(a,b,c){Object.defineProperty(a,b,{value:c,enumerable:false,writable:
true,configurable:true})}, |
| 1179 w3:function(a){var z,y,x,w,v,u |
| 1180 z=$.NF.$1(a) |
| 1181 y=$.nw[z] |
| 1182 if(y!=null){Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerabl
e:false,writable:true,configurable:true}) |
| 1183 return y.i}x=$.vv[z] |
| 1184 if(x!=null)return x |
| 1185 w=init.interceptorsByTag[z] |
| 1186 if(w==null){z=$.TX.$2(a,z) |
| 1187 if(z!=null){y=$.nw[z] |
| 1188 if(y!=null){Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerabl
e:false,writable:true,configurable:true}) |
| 1189 return y.i}x=$.vv[z] |
| 1190 if(x!=null)return x |
| 1191 w=init.interceptorsByTag[z]}}if(w==null)return |
| 1192 x=w.prototype |
| 1193 v=z[0] |
| 1194 if(v==="!"){y=H.Va(x) |
| 1195 $.nw[z]=y |
| 1196 Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerable:false,writ
able:true,configurable:true}) |
| 1197 return y.i}if(v==="~"){$.vv[z]=x |
| 1198 return x}if(v==="-"){u=H.Va(x) |
| 1199 Object.defineProperty(Object.getPrototypeOf(a),init.dispatchPropertyName,{value:
u,enumerable:false,writable:true,configurable:true}) |
| 1200 return u.i}if(v==="+")return H.Lc(a,x) |
| 1201 if(v==="*")throw H.b(P.SY(z)) |
| 1202 if(init.leafTags[z]===true){u=H.Va(x) |
| 1203 Object.defineProperty(Object.getPrototypeOf(a),init.dispatchPropertyName,{value:
u,enumerable:false,writable:true,configurable:true}) |
| 1204 return u.i}else return H.Lc(a,x)}, |
| 1205 Lc:function(a,b){var z,y |
| 1206 z=Object.getPrototypeOf(a) |
| 1207 y=J.Qu(b,z,null,null) |
| 1208 Object.defineProperty(z,init.dispatchPropertyName,{value:y,enumerable:false,writ
able:true,configurable:true}) |
| 1209 return b}, |
| 1210 Va:function(a){return J.Qu(a,!1,null,!!a.$isXj)}, |
| 1211 ow:function(a,b,c){var z=b.prototype |
| 1212 if(init.leafTags[a]===true)return J.Qu(z,!1,null,!!z.$isXj) |
| 1213 else return J.Qu(z,c,null,null)}, |
| 1214 XD:function(){if(!0===$.Bv)return |
| 1215 $.Bv=!0 |
| 1216 H.Z1()}, |
| 1217 Z1:function(){var z,y,x,w,v,u,t,s |
| 1218 $.nw=Object.create(null) |
| 1219 $.vv=Object.create(null) |
| 1220 H.kO() |
| 1221 z=init.interceptorsByTag |
| 1222 y=Object.getOwnPropertyNames(z) |
| 1223 if(typeof window!="undefined"){window |
| 1224 x=function(){} |
| 1225 for(w=0;w<y.length;++w){v=y[w] |
| 1226 u=$.x7.$1(v) |
| 1227 if(u!=null){t=H.ow(v,z[v],u) |
| 1228 if(t!=null){Object.defineProperty(u,init.dispatchPropertyName,{value:t,enumerabl
e:false,writable:true,configurable:true}) |
| 1229 x.prototype=u}}}}for(w=0;w<y.length;++w){v=y[w] |
| 1230 if(/^[A-Za-z_]/.test(v)){s=z[v] |
| 1231 z["!"+v]=s |
| 1232 z["~"+v]=s |
| 1233 z["-"+v]=s |
| 1234 z["+"+v]=s |
| 1235 z["*"+v]=s}}}, |
| 1236 kO:function(){var z,y,x,w,v,u,t |
| 1237 z=C.MA() |
| 1238 z=H.ud(C.Mc,H.ud(C.hQ,H.ud(C.XQ,H.ud(C.XQ,H.ud(C.M1,H.ud(C.lR,H.ud(C.ur(C.w2),z)
)))))) |
| 1239 if(typeof dartNativeDispatchHooksTransformer!="undefined"){y=dartNativeDispatchH
ooksTransformer |
| 1240 if(typeof y=="function")y=[y] |
| 1241 if(y.constructor==Array)for(x=0;x<y.length;++x){w=y[x] |
| 1242 if(typeof w=="function")z=w(z)||z}}v=z.getTag |
| 1243 u=z.getUnknownTag |
| 1244 t=z.prototypeForTag |
| 1245 $.NF=new H.dC(v) |
| 1246 $.TX=new H.wN(u) |
| 1247 $.x7=new H.VX(t)}, |
| 1248 ud:function(a,b){return a(b)||b}, |
| 1249 FD:{ |
| 1250 "^":"a;mr,Rn,XZ,Rv,hG,Mo,AM,NE", |
| 1251 static:{"^":"t4,FV,Oc,pv",zh:function(a){var z,y,x |
| 1252 z=a.$reflectionInfo |
| 1253 if(z==null)return |
| 1254 z.fixed$length=init |
| 1255 z=z |
| 1256 y=z[0] |
| 1257 x=z[1] |
| 1258 return new H.FD(a,z,(y&1)===1,y>>1,x>>1,(x&1)===1,z[2],null)}}}, |
| 1259 Zr:{ |
| 1260 "^":"a;bT,rq,Xs,Fa,Ga,cR", |
| 1261 qS:function(a){var z,y,x |
| 1262 z=new RegExp(this.bT).exec(a) |
| 1263 if(z==null)return |
| 1264 y={} |
| 1265 x=this.rq |
| 1266 if(x!==-1)y.arguments=z[x+1] |
| 1267 x=this.Xs |
| 1268 if(x!==-1)y.argumentsExpr=z[x+1] |
| 1269 x=this.Fa |
| 1270 if(x!==-1)y.expr=z[x+1] |
| 1271 x=this.Ga |
| 1272 if(x!==-1)y.method=z[x+1] |
| 1273 x=this.cR |
| 1274 if(x!==-1)y.receiver=z[x+1] |
| 1275 return y}, |
| 1276 static:{"^":"lm,k1,Re,fN,qi,rZ,BX,tt,dt,A7",cM:function(a){var z,y,x,w,v,u |
| 1277 a=a.replace(String({}),'$receiver$').replace(new RegExp("[[\\]{}()*+?.\\\\^$|]",
'g'),'\\$&') |
| 1278 z=a.match(/\\\$[a-zA-Z]+\\\$/g) |
| 1279 if(z==null)z=[] |
| 1280 y=z.indexOf("\\$arguments\\$") |
| 1281 x=z.indexOf("\\$argumentsExpr\\$") |
| 1282 w=z.indexOf("\\$expr\\$") |
| 1283 v=z.indexOf("\\$method\\$") |
| 1284 u=z.indexOf("\\$receiver\\$") |
| 1285 return new H.Zr(a.replace('\\$arguments\\$','((?:x|[^x])*)').replace('\\$argumen
tsExpr\\$','((?:x|[^x])*)').replace('\\$expr\\$','((?:x|[^x])*)').replace('\\$me
thod\\$','((?:x|[^x])*)').replace('\\$receiver\\$','((?:x|[^x])*)'),y,x,w,v,u)},
S7:function(a){return function($expr$){var $argumentsExpr$='$arguments$' |
| 1286 try{$expr$.$method$($argumentsExpr$)}catch(z){return z.message}}(a)},Mj:function
(a){return function($expr$){try{$expr$.$method$}catch(z){return z.message}}(a)}}
}, |
| 1287 W0:{ |
| 1288 "^":"Ge;V7,Ga", |
| 1289 bu:function(a){var z=this.Ga |
| 1290 if(z==null)return"NullError: "+H.d(this.V7) |
| 1291 return"NullError: Cannot call \""+H.d(z)+"\" on null"}, |
| 1292 $isGe:true}, |
| 1293 az:{ |
| 1294 "^":"Ge;V7,Ga,cR", |
| 1295 bu:function(a){var z,y |
| 1296 z=this.Ga |
| 1297 if(z==null)return"NoSuchMethodError: "+H.d(this.V7) |
| 1298 y=this.cR |
| 1299 if(y==null)return"NoSuchMethodError: Cannot call \""+H.d(z)+"\" ("+H.d(this.V7)+
")" |
| 1300 return"NoSuchMethodError: Cannot call \""+H.d(z)+"\" on \""+H.d(y)+"\" ("+H.d(th
is.V7)+")"}, |
| 1301 $isGe:true, |
| 1302 static:{T3:function(a,b){var z,y |
| 1303 z=b==null |
| 1304 y=z?null:b.method |
| 1305 z=z?null:b.receiver |
| 1306 return new H.az(a,y,z)}}}, |
| 1307 vV:{ |
| 1308 "^":"Ge;V7", |
| 1309 bu:function(a){var z=this.V7 |
| 1310 return C.xB.gl0(z)?"Error":"Error: "+z}}, |
| 1311 Am:{ |
| 1312 "^":"Tp:11;a", |
| 1313 $1:function(a){if(!!J.x(a).$isGe)if(a.$thrownJsError==null)a.$thrownJsError=this
.a |
| 1314 return a}}, |
| 1315 XO:{ |
| 1316 "^":"a;lA,ui", |
| 1317 bu:function(a){var z,y |
| 1318 z=this.ui |
| 1319 if(z!=null)return z |
| 1320 z=this.lA |
| 1321 y=typeof z==="object"?z.stack:null |
| 1322 z=y==null?"":y |
| 1323 this.ui=z |
| 1324 return z}}, |
| 1325 dr:{ |
| 1326 "^":"Tp:9;a", |
| 1327 $0:function(){return this.a.$0()}}, |
| 1328 TL:{ |
| 1329 "^":"Tp:9;b,c", |
| 1330 $0:function(){return this.b.$1(this.c)}}, |
| 1331 KX:{ |
| 1332 "^":"Tp:9;d,e,f", |
| 1333 $0:function(){return this.d.$2(this.e,this.f)}}, |
| 1334 uZ:{ |
| 1335 "^":"Tp:9;UI,bK,Gq,Rm", |
| 1336 $0:function(){return this.UI.$3(this.bK,this.Gq,this.Rm)}}, |
| 1337 OQ:{ |
| 1338 "^":"Tp:9;w3,HZ,mG,xC,cj", |
| 1339 $0:function(){return this.w3.$4(this.HZ,this.mG,this.xC,this.cj)}}, |
| 1340 Tp:{ |
| 1341 "^":"a;", |
| 1342 bu:function(a){return"Closure"}, |
| 1343 gKu:function(){return this}}, |
| 1344 Bp:{ |
| 1345 "^":"Tp;"}, |
| 1346 v:{ |
| 1347 "^":"Bp;nw,jm,cR,RA", |
| 1348 n:function(a,b){if(b==null)return!1 |
| 1349 if(this===b)return!0 |
| 1350 if(!J.x(b).$isv)return!1 |
| 1351 return this.nw===b.nw&&this.jm===b.jm&&this.cR===b.cR}, |
| 1352 giO:function(a){var z,y |
| 1353 z=this.cR |
| 1354 if(z==null)y=H.eQ(this.nw) |
| 1355 else y=typeof z!=="object"?J.v1(z):H.eQ(z) |
| 1356 z=H.eQ(this.jm) |
| 1357 if(typeof y!=="number")return y.w() |
| 1358 return(y^z)>>>0}, |
| 1359 $isv:true, |
| 1360 static:{"^":"mJ,P4",DV:function(a){return a.nw},yS:function(a){return a.cR},oN:f
unction(){var z=$.mJ |
| 1361 if(z==null){z=H.E2("self") |
| 1362 $.mJ=z}return z},E2:function(a){var z,y,x,w,v |
| 1363 z=new H.v("self","target","receiver","name") |
| 1364 y=Object.getOwnPropertyNames(z) |
| 1365 y.fixed$length=init |
| 1366 x=y |
| 1367 for(y=x.length,w=0;w<y;++w){v=x[w] |
| 1368 if(z[v]===a)return v}}}}, |
| 1369 Pe:{ |
| 1370 "^":"Ge;G1", |
| 1371 bu:function(a){return this.G1}, |
| 1372 $isGe:true, |
| 1373 static:{aq:function(a,b){return new H.Pe("CastError: Casting value of type "+H.d
(a)+" to incompatible type "+H.d(b))}}}, |
| 1374 Eq:{ |
| 1375 "^":"Ge;G1", |
| 1376 bu:function(a){return"RuntimeError: "+H.d(this.G1)}, |
| 1377 static:{Ef:function(a){return new H.Eq(a)}}}, |
| 1378 lb:{ |
| 1379 "^":"a;"}, |
| 1380 tD:{ |
| 1381 "^":"lb;dw,Iq,is,p6", |
| 1382 BD:function(a){var z=this.rP(a) |
| 1383 return z==null?!1:H.Ly(z,this.za())}, |
| 1384 rP:function(a){var z=J.x(a) |
| 1385 return"$signature" in z?z.$signature():null}, |
| 1386 za:function(){var z,y,x,w,v,u,t |
| 1387 z={func:"dynafunc"} |
| 1388 y=this.dw |
| 1389 x=J.x(y) |
| 1390 if(!!x.$isnr)z.void=true |
| 1391 else if(!x.$ishJ)z.ret=y.za() |
| 1392 y=this.Iq |
| 1393 if(y!=null&&y.length!==0)z.args=H.Dz(y) |
| 1394 y=this.is |
| 1395 if(y!=null&&y.length!==0)z.opt=H.Dz(y) |
| 1396 y=this.p6 |
| 1397 if(y!=null){w={} |
| 1398 v=H.kU(y) |
| 1399 for(x=v.length,u=0;u<x;++u){t=v[u] |
| 1400 w[t]=y[t].za()}z.named=w}return z}, |
| 1401 bu:function(a){var z,y,x,w,v,u,t,s |
| 1402 z=this.Iq |
| 1403 if(z!=null)for(y=z.length,x="(",w=!1,v=0;v<y;++v,w=!0){u=z[v] |
| 1404 if(w)x+=", " |
| 1405 x+=H.d(u)}else{x="(" |
| 1406 w=!1}z=this.is |
| 1407 if(z!=null&&z.length!==0){x=(w?x+", ":x)+"[" |
| 1408 for(y=z.length,w=!1,v=0;v<y;++v,w=!0){u=z[v] |
| 1409 if(w)x+=", " |
| 1410 x+=H.d(u)}x+="]"}else{z=this.p6 |
| 1411 if(z!=null){x=(w?x+", ":x)+"{" |
| 1412 t=H.kU(z) |
| 1413 for(y=t.length,w=!1,v=0;v<y;++v,w=!0){s=t[v] |
| 1414 if(w)x+=", " |
| 1415 x+=H.d(z[s].za())+" "+s}x+="}"}}return x+(") -> "+H.d(this.dw))}, |
| 1416 static:{"^":"UA",Dz:function(a){var z,y,x |
| 1417 a=a |
| 1418 z=[] |
| 1419 for(y=a.length,x=0;x<y;++x)z.push(a[x].za()) |
| 1420 return z}}}, |
| 1421 hJ:{ |
| 1422 "^":"lb;", |
| 1423 bu:function(a){return"dynamic"}, |
| 1424 za:function(){return}, |
| 1425 $ishJ:true}, |
| 1426 dC:{ |
| 1427 "^":"Tp:11;a", |
| 1428 $1:function(a){return this.a(a)}}, |
| 1429 wN:{ |
| 1430 "^":"Tp:12;b", |
| 1431 $2:function(a,b){return this.b(a,b)}}, |
| 1432 VX:{ |
| 1433 "^":"Tp:8;c", |
| 1434 $1:function(a){return this.c(a)}}}],["dart._internal","dart:_internal",,H,{ |
| 1435 "^":"", |
| 1436 bQ:function(a,b){var z |
| 1437 for(z=new H.a7(a,a.length,0,null);z.G();)b.$1(z.lo)}, |
| 1438 mx:function(a,b,c){var z,y,x,w |
| 1439 for(y=0;x=$.RM(),y<x.length;++y){x=x[y] |
| 1440 w=a |
| 1441 if(x==null?w==null:x===w)return H.d(b)+"..."+H.d(c)}z=P.p9("") |
| 1442 try{$.RM().push(a) |
| 1443 z.KF(b) |
| 1444 z.We(a,", ") |
| 1445 z.KF(c)}finally{x=$.RM() |
| 1446 if(0>=x.length)return H.e(x,0) |
| 1447 x.pop()}return z.gvM()}, |
| 1448 qG:function(a,b,c,d,e){var z |
| 1449 if(b<0||b>a.length)H.vh(P.TE(b,0,a.length)) |
| 1450 if(c<b||c>a.length)H.vh(P.TE(c,b,a.length)) |
| 1451 z=c-b |
| 1452 if(z===0)return |
| 1453 if(e+z>d.length)throw H.b(H.ar()) |
| 1454 H.Gj(d,e,a,b,z)}, |
| 1455 ar:function(){return new P.lj("Too few elements")}, |
| 1456 Gj:function(a,b,c,d,e){var z,y,x,w |
| 1457 if(b<d)for(z=b+e-1,y=d+e-1,x=a.length;z>=b;--z,--y){if(z>=x)return H.e(a,z) |
| 1458 C.Nm.u(c,y,a[z])}else for(x=b+e,w=a.length,y=d,z=b;z<x;++z,++y){if(z>=w)return H
.e(a,z) |
| 1459 C.Nm.u(c,y,a[z])}}, |
| 1460 Fv:function(a){return a.gfN()}, |
| 1461 a7:{ |
| 1462 "^":"a;l6,SW,G7,lo", |
| 1463 gl:function(){return this.lo}, |
| 1464 G:function(){var z,y,x,w |
| 1465 z=this.l6 |
| 1466 y=J.U6(z) |
| 1467 x=y.gB(z) |
| 1468 if(this.SW!==x)throw H.b(P.a4(z)) |
| 1469 w=this.G7 |
| 1470 if(w>=x){this.lo=null |
| 1471 return!1}this.lo=y.Zv(z,w);++this.G7 |
| 1472 return!0}}, |
| 1473 i1:{ |
| 1474 "^":"mW;l6,T6", |
| 1475 gA:function(a){var z=this.l6 |
| 1476 z=new H.MH(null,z.gA(z),this.T6) |
| 1477 z.$builtinTypeInfo=this.$builtinTypeInfo |
| 1478 return z}, |
| 1479 gB:function(a){var z=this.l6 |
| 1480 return z.gB(z)}, |
| 1481 gl0:function(a){var z=this.l6 |
| 1482 return z.gl0(z)}, |
| 1483 $asmW:function(a,b){return[b]}, |
| 1484 static:{K1:function(a,b,c,d){return H.VM(new H.xy(a,b),[c,d])}}}, |
| 1485 xy:{ |
| 1486 "^":"i1;l6,T6"}, |
| 1487 MH:{ |
| 1488 "^":"An;lo,OI,T6", |
| 1489 mb:function(a){return this.T6.$1(a)}, |
| 1490 G:function(){var z=this.OI |
| 1491 if(z.G()){this.lo=this.mb(z.gl()) |
| 1492 return!0}this.lo=null |
| 1493 return!1}, |
| 1494 gl:function(){return this.lo}}, |
| 1495 SU:{ |
| 1496 "^":"a;"}}],["dart._js_names","dart:_js_names",,H,{ |
| 1497 "^":"", |
| 1498 kU:function(a){var z=H.VM(function(b,c){var y=[] |
| 1499 for(var x in b){if(c.call(b,x))y.push(x)}return y}(a,Object.prototype.hasOwnProp
erty),[null]) |
| 1500 z.fixed$length=init |
| 1501 return z}}],["dart.async","dart:async",,P,{ |
| 1502 "^":"", |
| 1503 Oj:function(){if($.jk().scheduleImmediate!=null)return P.Sx() |
| 1504 return P.K7()}, |
| 1505 ZV:[function(a){++init.globalState.Xz.GL |
| 1506 $.jk().scheduleImmediate(H.tR(new P.C6(a),0))},"$1","Sx",2,0,0], |
| 1507 Bz:[function(a){P.jL(C.ny,a)},"$1","K7",2,0,0], |
| 1508 VH:function(a,b){var z=H.N7() |
| 1509 z=H.KT(z,[z,z]).BD(a) |
| 1510 if(z){b.toString |
| 1511 return a}else{b.toString |
| 1512 return a}}, |
| 1513 Cx:function(){var z=$.S6 |
| 1514 for(;z!=null;){z.Ki() |
| 1515 z=z.aw |
| 1516 $.S6=z}$.k8=null}, |
| 1517 BG:[function(){var z |
| 1518 try{P.Cx()}catch(z){H.Ru(z) |
| 1519 $.ej().$1(P.qZ()) |
| 1520 $.S6=$.S6.aw |
| 1521 throw z}},"$0","qZ",0,0,1], |
| 1522 IA:function(a){var z,y |
| 1523 z=$.k8 |
| 1524 if(z==null){z=new P.OM(a,null) |
| 1525 $.k8=z |
| 1526 $.S6=z |
| 1527 $.ej().$1(P.qZ())}else{y=new P.OM(a,null) |
| 1528 z.aw=y |
| 1529 $.k8=y}}, |
| 1530 FE:function(a,b,c){var z,y,x,w |
| 1531 try{b.$1(a.$0())}catch(x){w=H.Ru(x) |
| 1532 z=w |
| 1533 y=new H.XO(x,null) |
| 1534 c.$2(z,y)}}, |
| 1535 NX:function(a,b,c,d){a.ed() |
| 1536 b.K5(c,d)}, |
| 1537 TB:function(a,b){return new P.uR(a,b)}, |
| 1538 Bb:function(a,b,c){a.ed() |
| 1539 b.rX(c)}, |
| 1540 rT:function(a,b){var z=$.X3 |
| 1541 if(z===C.NU){z.toString |
| 1542 return P.h8(z,null,z,a,b)}return P.h8(z,null,z,a,z.xi(b,!0))}, |
| 1543 jL:function(a,b){var z=C.jn.cU(a.Fq,1000) |
| 1544 return H.cy(z<0?0:z,b)}, |
| 1545 PJ:function(a){var z=$.X3 |
| 1546 $.X3=a |
| 1547 return z}, |
| 1548 L2:function(a,b,c,d,e){P.T8(a,null,a,new P.pK(d,e))}, |
| 1549 T8:function(a,b,c,d){var z,y |
| 1550 if($.X3===c)return d.$0() |
| 1551 z=P.PJ(c) |
| 1552 try{y=d.$0() |
| 1553 return y}finally{$.X3=z}}, |
| 1554 V7:function(a,b,c,d,e){var z,y |
| 1555 if($.X3===c)return d.$1(e) |
| 1556 z=P.PJ(c) |
| 1557 try{y=d.$1(e) |
| 1558 return y}finally{$.X3=z}}, |
| 1559 Qx:function(a,b,c,d,e,f){var z,y |
| 1560 if($.X3===c)return d.$2(e,f) |
| 1561 z=P.PJ(c) |
| 1562 try{y=d.$2(e,f) |
| 1563 return y}finally{$.X3=z}}, |
| 1564 Tk:function(a,b,c,d){P.IA(C.NU!==c?c.ce(d):d)}, |
| 1565 h8:function(a,b,c,d,e){return P.jL(d,C.NU!==c?c.ce(e):e)}, |
| 1566 C6:{ |
| 1567 "^":"Tp:9;a", |
| 1568 $0:function(){H.ox() |
| 1569 this.a.$0()}}, |
| 1570 Ca:{ |
| 1571 "^":"a;kc>,I4<", |
| 1572 $isGe:true}, |
| 1573 Pf:{ |
| 1574 "^":"a;"}, |
| 1575 Zf:{ |
| 1576 "^":"Pf;MM", |
| 1577 w0:[function(a,b){var z |
| 1578 if(a==null)throw H.b(P.u("Error must not be null")) |
| 1579 z=this.MM |
| 1580 if(z.Gv!==0)throw H.b(P.w("Future already completed")) |
| 1581 z.CG(a,b)},function(a){return this.w0(a,null)},"pm","$2","$1","gYJ",2,2,13,14]}, |
| 1582 vs:{ |
| 1583 "^":"a;Gv,Lj<,jk,BQ<,OY,As,qV,o4", |
| 1584 gcg:function(){return this.Gv>=4}, |
| 1585 gWj:function(){return this.Gv===4}, |
| 1586 gNm:function(){return this.Gv===8}, |
| 1587 swG:function(a){if(a)this.Gv=2 |
| 1588 else this.Gv=0}, |
| 1589 Rx:function(a,b){var z,y |
| 1590 z=$.X3 |
| 1591 z.toString |
| 1592 y=H.VM(new P.vs(0,z,null,null,a,null,P.VH(b,z),null),[null]) |
| 1593 this.au(y) |
| 1594 return y}, |
| 1595 ml:function(a){return this.Rx(a,null)}, |
| 1596 gDL:function(){return this.jk}, |
| 1597 gcG:function(){return this.jk}, |
| 1598 Am:function(a){this.Gv=4 |
| 1599 this.jk=a}, |
| 1600 E6:function(a,b){this.Gv=8 |
| 1601 this.jk=new P.Ca(a,b)}, |
| 1602 au:function(a){var z |
| 1603 if(this.Gv>=4){z=this.Lj |
| 1604 z.toString |
| 1605 P.Tk(z,null,z,new P.da(this,a))}else{a.BQ=this.jk |
| 1606 this.jk=a}}, |
| 1607 L3:function(){var z,y,x |
| 1608 z=this.jk |
| 1609 this.jk=null |
| 1610 for(y=null;z!=null;y=z,z=x){x=z.gBQ() |
| 1611 z.BQ=y}return y}, |
| 1612 rX:function(a){var z,y |
| 1613 z=J.x(a) |
| 1614 if(!!z.$isb8)if(!!z.$isvs)P.A9(a,this) |
| 1615 else P.k3(a,this) |
| 1616 else{y=this.L3() |
| 1617 this.Am(a) |
| 1618 P.HZ(this,y)}}, |
| 1619 R8:function(a){var z=this.L3() |
| 1620 this.Am(a) |
| 1621 P.HZ(this,z)}, |
| 1622 K5:[function(a,b){var z=this.L3() |
| 1623 this.E6(a,b) |
| 1624 P.HZ(this,z)},function(a){return this.K5(a,null)},"Lp","$2","$1","gbY",2,2,15,14
], |
| 1625 OH:function(a){var z |
| 1626 if(this.Gv!==0)H.vh(P.w("Future already completed")) |
| 1627 this.Gv=1 |
| 1628 z=this.Lj |
| 1629 z.toString |
| 1630 P.Tk(z,null,z,new P.rH(this,a))}, |
| 1631 CG:function(a,b){var z |
| 1632 if(this.Gv!==0)H.vh(P.w("Future already completed")) |
| 1633 this.Gv=1 |
| 1634 z=this.Lj |
| 1635 z.toString |
| 1636 P.Tk(z,null,z,new P.ZL(this,a,b))}, |
| 1637 $isvs:true, |
| 1638 $isb8:true, |
| 1639 static:{"^":"Gn,Ry,cp,UX,NK",Dt:function(a){return H.VM(new P.vs(0,$.X3,null,nul
l,null,null,null,null),[a])},k3:function(a,b){b.Gv=2 |
| 1640 a.Rx(new P.pV(b),new P.U7(b))},A9:function(a,b){b.Gv=2 |
| 1641 if(a.Gv>=4)P.HZ(a,b) |
| 1642 else a.au(b)},yE:function(a,b){var z |
| 1643 do{z=b.gBQ() |
| 1644 b.BQ=null |
| 1645 P.HZ(a,b) |
| 1646 if(z!=null){b=z |
| 1647 continue}else break}while(!0)},HZ:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o |
| 1648 z={} |
| 1649 z.e=a |
| 1650 for(y=a;!0;){x={} |
| 1651 if(!y.gcg())return |
| 1652 w=z.e.gNm() |
| 1653 if(w&&b==null){v=z.e.gcG() |
| 1654 y=z.e.gLj() |
| 1655 x=J.w8(v) |
| 1656 u=v.gI4() |
| 1657 y.toString |
| 1658 P.L2(y,null,y,x,u) |
| 1659 return}if(b==null)return |
| 1660 if(b.BQ!=null){P.yE(z.e,b) |
| 1661 return}x.b=!0 |
| 1662 t=z.e.gWj()?z.e.gDL():null |
| 1663 x.c=t |
| 1664 x.d=!1 |
| 1665 y=!w |
| 1666 if(y){u=b.Gv===2 |
| 1667 if((u?null:b.OY)==null){s=(u?null:b.o4)!=null |
| 1668 u=s}else u=!0}else u=!0 |
| 1669 if(u){r=b.Lj |
| 1670 if(w){u=z.e.gLj() |
| 1671 u.toString |
| 1672 r.toString |
| 1673 u=r==null?u!=null:r!==u}else u=!1 |
| 1674 if(u){v=z.e.gcG() |
| 1675 y=z.e.gLj() |
| 1676 x=J.w8(v) |
| 1677 u=v.gI4() |
| 1678 y.toString |
| 1679 P.L2(y,null,y,x,u) |
| 1680 return}q=$.X3 |
| 1681 if(q==null?r!=null:q!==r)$.X3=r |
| 1682 else q=null |
| 1683 if(y){if((b.Gv===2?null:b.OY)!=null)x.b=new P.rq(x,b,t,r).$0()}else new P.RW(z,x
,b,r).$0() |
| 1684 if((b.Gv===2?null:b.o4)!=null)new P.RT(z,x,w,b,r).$0() |
| 1685 if(q!=null)$.X3=q |
| 1686 if(x.d)return |
| 1687 if(x.b===!0){y=x.c |
| 1688 y=(t==null?y!=null:t!==y)&&!!J.x(y).$isb8}else y=!1 |
| 1689 if(y){p=x.c |
| 1690 if(!!J.x(p).$isvs)if(p.Gv>=4){b.Gv=2 |
| 1691 z.e=p |
| 1692 y=p |
| 1693 continue}else P.A9(p,b) |
| 1694 else P.k3(p,b) |
| 1695 return}}if(x.b===!0){o=b.L3() |
| 1696 y=x.c |
| 1697 b.Gv=4 |
| 1698 b.jk=y}else{o=b.L3() |
| 1699 v=x.c |
| 1700 y=J.w8(v) |
| 1701 x=v.gI4() |
| 1702 b.Gv=8 |
| 1703 b.jk=new P.Ca(y,x)}z.e=b |
| 1704 y=b |
| 1705 b=o}}}}, |
| 1706 da:{ |
| 1707 "^":"Tp:9;a,b", |
| 1708 $0:function(){P.HZ(this.a,this.b)}}, |
| 1709 pV:{ |
| 1710 "^":"Tp:11;a", |
| 1711 $1:function(a){this.a.R8(a)}}, |
| 1712 U7:{ |
| 1713 "^":"Tp:16;b", |
| 1714 $2:function(a,b){this.b.K5(a,b)}, |
| 1715 $1:function(a){return this.$2(a,null)}}, |
| 1716 eX:{ |
| 1717 "^":"Tp:9;a,b", |
| 1718 $0:function(){P.A9(this.b,this.a)}}, |
| 1719 rH:{ |
| 1720 "^":"Tp:9;c,d", |
| 1721 $0:function(){this.c.R8(this.d)}}, |
| 1722 ZL:{ |
| 1723 "^":"Tp:9;a,b,c", |
| 1724 $0:function(){this.a.K5(this.b,this.c)}}, |
| 1725 rq:{ |
| 1726 "^":"Tp:17;b,d,e,f", |
| 1727 $0:function(){var z,y,x,w,v |
| 1728 try{x=this.f |
| 1729 w=this.d |
| 1730 w=w.Gv===2?null:w.OY |
| 1731 x.toString |
| 1732 this.b.c=P.V7(x,null,x,w,this.e) |
| 1733 return!0}catch(v){x=H.Ru(v) |
| 1734 z=x |
| 1735 y=new H.XO(v,null) |
| 1736 this.b.c=new P.Ca(z,y) |
| 1737 return!1}}}, |
| 1738 RW:{ |
| 1739 "^":"Tp:1;c,b,UI,bK", |
| 1740 $0:function(){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 1741 z=this.c.e.gcG() |
| 1742 r=this.UI |
| 1743 y=r.Gv===2?null:r.As |
| 1744 x=!0 |
| 1745 if(y!=null)try{q=this.bK |
| 1746 p=J.w8(z) |
| 1747 q.toString |
| 1748 x=P.V7(q,null,q,y,p)}catch(o){r=H.Ru(o) |
| 1749 w=r |
| 1750 v=new H.XO(o,null) |
| 1751 r=J.w8(z) |
| 1752 q=w |
| 1753 n=(r==null?q==null:r===q)?z:new P.Ca(w,v) |
| 1754 r=this.b |
| 1755 r.c=n |
| 1756 r.b=!1 |
| 1757 return}u=r.Gv===2?null:r.qV |
| 1758 if(x===!0&&u!=null){try{r=u |
| 1759 q=H.N7() |
| 1760 q=H.KT(q,[q,q]).BD(r) |
| 1761 p=this.bK |
| 1762 m=this.b |
| 1763 if(q){r=J.w8(z) |
| 1764 q=z.gI4() |
| 1765 p.toString |
| 1766 m.c=P.Qx(p,null,p,u,r,q)}else{r=J.w8(z) |
| 1767 p.toString |
| 1768 m.c=P.V7(p,null,p,u,r)}}catch(o){r=H.Ru(o) |
| 1769 t=r |
| 1770 s=new H.XO(o,null) |
| 1771 r=J.w8(z) |
| 1772 q=t |
| 1773 n=(r==null?q==null:r===q)?z:new P.Ca(t,s) |
| 1774 r=this.b |
| 1775 r.c=n |
| 1776 r.b=!1 |
| 1777 return}this.b.b=!0}else{r=this.b |
| 1778 r.c=z |
| 1779 r.b=!1}}}, |
| 1780 RT:{ |
| 1781 "^":"Tp:1;c,b,Gq,Rm,w3", |
| 1782 $0:function(){var z,y,x,w,v,u |
| 1783 z={} |
| 1784 z.a=null |
| 1785 try{w=this.w3 |
| 1786 v=this.Rm |
| 1787 v=v.Gv===2?null:v.o4 |
| 1788 w.toString |
| 1789 z.a=P.T8(w,null,w,v)}catch(u){w=H.Ru(u) |
| 1790 y=w |
| 1791 x=new H.XO(u,null) |
| 1792 if(this.Gq){w=J.w8(this.c.e.gcG()) |
| 1793 v=y |
| 1794 v=w==null?v==null:w===v |
| 1795 w=v}else w=!1 |
| 1796 v=this.b |
| 1797 if(w)v.c=this.c.e.gcG() |
| 1798 else v.c=new P.Ca(y,x) |
| 1799 v.b=!1}if(!!J.x(z.a).$isb8){w=this.Rm |
| 1800 w.swG(!0) |
| 1801 this.b.d=!0 |
| 1802 z.a.Rx(new P.jZ(this.c,w),new P.FZ(z,w))}}}, |
| 1803 jZ:{ |
| 1804 "^":"Tp:11;c,HZ", |
| 1805 $1:function(a){P.HZ(this.c.e,this.HZ)}}, |
| 1806 FZ:{ |
| 1807 "^":"Tp:16;a,mG", |
| 1808 $2:function(a,b){var z,y |
| 1809 z=this.a |
| 1810 if(!J.x(z.a).$isvs){y=P.Dt(null) |
| 1811 z.a=y |
| 1812 y.E6(a,b)}P.HZ(z.a,this.mG)}, |
| 1813 $1:function(a){return this.$2(a,null)}}, |
| 1814 OM:{ |
| 1815 "^":"a;FR,aw", |
| 1816 Ki:function(){return this.FR.$0()}}, |
| 1817 qh:{ |
| 1818 "^":"a;", |
| 1819 aN:function(a,b){var z,y |
| 1820 z={} |
| 1821 y=P.Dt(null) |
| 1822 z.a=null |
| 1823 z.a=this.KR(new P.lz(z,this,b,y),!0,new P.M4(y),y.gbY()) |
| 1824 return y}, |
| 1825 gB:function(a){var z,y |
| 1826 z={} |
| 1827 y=P.Dt(P.KN) |
| 1828 z.a=0 |
| 1829 this.KR(new P.B5(z),!0,new P.PI(z,y),y.gbY()) |
| 1830 return y}, |
| 1831 gl0:function(a){var z,y |
| 1832 z={} |
| 1833 y=P.Dt(P.a2) |
| 1834 z.a=null |
| 1835 z.a=this.KR(new P.j4(z,y),!0,new P.i9(y),y.gbY()) |
| 1836 return y}}, |
| 1837 lz:{ |
| 1838 "^":"Tp;a,b,c,d", |
| 1839 $1:function(a){P.FE(new P.Rl(this.c,a),new P.Jb(),P.TB(this.a.a,this.d))}, |
| 1840 $signature:function(){return H.IG(function(a){return{func:"Lf",args:[a]}},this.b
,"qh")}}, |
| 1841 Rl:{ |
| 1842 "^":"Tp:9;e,f", |
| 1843 $0:function(){return this.e.$1(this.f)}}, |
| 1844 Jb:{ |
| 1845 "^":"Tp:11;", |
| 1846 $1:function(a){}}, |
| 1847 M4:{ |
| 1848 "^":"Tp:9;UI", |
| 1849 $0:function(){this.UI.rX(null)}}, |
| 1850 B5:{ |
| 1851 "^":"Tp:11;a", |
| 1852 $1:function(a){++this.a.a}}, |
| 1853 PI:{ |
| 1854 "^":"Tp:9;a,b", |
| 1855 $0:function(){this.b.rX(this.a.a)}}, |
| 1856 j4:{ |
| 1857 "^":"Tp:11;a,b", |
| 1858 $1:function(a){P.Bb(this.a.a,this.b,!1)}}, |
| 1859 i9:{ |
| 1860 "^":"Tp:9;c", |
| 1861 $0:function(){this.c.rX(!0)}}, |
| 1862 MO:{ |
| 1863 "^":"a;"}, |
| 1864 nP:{ |
| 1865 "^":"a;"}, |
| 1866 dR:{ |
| 1867 "^":"Tp:9;a,b,c", |
| 1868 $0:function(){return this.a.K5(this.b,this.c)}}, |
| 1869 uR:{ |
| 1870 "^":"Tp:18;a,b", |
| 1871 $2:function(a,b){return P.NX(this.a,this.b,a,b)}}, |
| 1872 QX:{ |
| 1873 "^":"Tp:9;a,b", |
| 1874 $0:function(){return this.a.rX(this.b)}}, |
| 1875 fZ:{ |
| 1876 "^":"a;", |
| 1877 bH:function(a){var z,y,x,w |
| 1878 try{x=this.Gr(a) |
| 1879 return x}catch(w){x=H.Ru(w) |
| 1880 z=x |
| 1881 y=new H.XO(w,null) |
| 1882 return this.hk(z,y)}}, |
| 1883 m1:function(a,b){var z,y,x,w |
| 1884 try{x=this.FI(a,b) |
| 1885 return x}catch(w){x=H.Ru(w) |
| 1886 z=x |
| 1887 y=new H.XO(w,null) |
| 1888 return this.hk(z,y)}}, |
| 1889 xi:function(a,b){var z=this.Al(a) |
| 1890 if(b)return new P.TF(this,z) |
| 1891 else return new P.K5(this,z)}, |
| 1892 ce:function(a){return this.xi(a,!0)}, |
| 1893 oj:function(a,b){var z=this.wY(a) |
| 1894 if(b)return new P.Cg(this,z) |
| 1895 else return new P.Hs(this,z)}}, |
| 1896 TF:{ |
| 1897 "^":"Tp:9;a,b", |
| 1898 $0:function(){return this.a.bH(this.b)}}, |
| 1899 K5:{ |
| 1900 "^":"Tp:9;c,d", |
| 1901 $0:function(){return this.c.Gr(this.d)}}, |
| 1902 Cg:{ |
| 1903 "^":"Tp:11;a,b", |
| 1904 $1:function(a){return this.a.m1(this.b,a)}}, |
| 1905 Hs:{ |
| 1906 "^":"Tp:11;c,d", |
| 1907 $1:function(a){return this.c.FI(this.d,a)}}, |
| 1908 pK:{ |
| 1909 "^":"Tp:9;a,b", |
| 1910 $0:function(){P.IA(new P.eM(this.a,this.b))}}, |
| 1911 eM:{ |
| 1912 "^":"Tp:9;c,d", |
| 1913 $0:function(){var z,y |
| 1914 z=this.c |
| 1915 P.JS("Uncaught Error: "+H.d(z)) |
| 1916 y=this.d |
| 1917 if(y==null&&!!J.x(z).$isGe)y=z.gI4() |
| 1918 if(y!=null)P.JS("Stack Trace: \n"+H.d(y)+"\n") |
| 1919 throw H.b(z)}}, |
| 1920 R8:{ |
| 1921 "^":"fZ;", |
| 1922 t:function(a,b){return}, |
| 1923 hk:function(a,b){return P.L2(this,null,this,a,b)}, |
| 1924 Gr:function(a){return P.T8(this,null,this,a)}, |
| 1925 FI:function(a,b){return P.V7(this,null,this,a,b)}, |
| 1926 Al:function(a){return a}, |
| 1927 wY:function(a){return a}}}],["dart.collection","dart:collection",,P,{ |
| 1928 "^":"", |
| 1929 EF:function(a,b,c){return H.B7(a,H.VM(new P.YB(0,null,null,null,null,null,0),[b,
c]))}, |
| 1930 cV:function(a,b){return H.VM(new P.YB(0,null,null,null,null,null,0),[a,b])}, |
| 1931 jB:function(){var z=Object.create(null) |
| 1932 z["<non-identifier-key>"]=z |
| 1933 delete z["<non-identifier-key>"] |
| 1934 return z}, |
| 1935 Ou:[function(a,b){return J.de(a,b)},"$2","iv",4,0,2], |
| 1936 T9:[function(a){return J.v1(a)},"$1","py",2,0,3], |
| 1937 Py:function(a,b,c,d,e){return H.VM(new P.k6(0,null,null,null,null),[d,e])}, |
| 1938 yv:function(a){return H.VM(new P.YO(0,null,null,null,null),[a])}, |
| 1939 FO:function(a){var z,y |
| 1940 if($.xb().tg(0,a))return"(...)" |
| 1941 $.xb().h(0,a) |
| 1942 z=[] |
| 1943 try{P.Vr(a,z)}finally{$.xb().Rz(0,a)}y=P.p9("(") |
| 1944 y.We(z,", ") |
| 1945 y.KF(")") |
| 1946 return y.vM}, |
| 1947 Vr:function(a,b){var z,y,x,w,v,u,t,s,r,q,p |
| 1948 z=a.gA(a) |
| 1949 y=0 |
| 1950 x=0 |
| 1951 while(!0){if(!(y<80||x<3))break |
| 1952 if(!z.G())return |
| 1953 w=H.d(z.gl()) |
| 1954 b.push(w) |
| 1955 y+=w.length+2;++x}if(!z.G()){if(x<=5)return |
| 1956 if(0>=b.length)return H.e(b,0) |
| 1957 v=b.pop() |
| 1958 if(0>=b.length)return H.e(b,0) |
| 1959 u=b.pop()}else{t=z.gl();++x |
| 1960 if(!z.G()){if(x<=4){b.push(H.d(t)) |
| 1961 return}v=H.d(t) |
| 1962 if(0>=b.length)return H.e(b,0) |
| 1963 u=b.pop() |
| 1964 y+=v.length+2}else{s=z.gl();++x |
| 1965 for(;z.G();t=s,s=r){r=z.gl();++x |
| 1966 if(x>100){while(!0){if(!(y>75&&x>3))break |
| 1967 if(0>=b.length)return H.e(b,0) |
| 1968 q=J.q8(b.pop()) |
| 1969 if(typeof q!=="number")return q.g() |
| 1970 y-=q+2;--x}b.push("...") |
| 1971 return}}u=H.d(t) |
| 1972 v=H.d(s) |
| 1973 y+=v.length+u.length+4}}if(x>b.length+2){y+=5 |
| 1974 p="..."}else p=null |
| 1975 while(!0){if(!(y>80&&b.length>3))break |
| 1976 if(0>=b.length)return H.e(b,0) |
| 1977 q=J.q8(b.pop()) |
| 1978 if(typeof q!=="number")return q.g() |
| 1979 y-=q+2 |
| 1980 if(p==null){y+=5 |
| 1981 p="..."}}if(p!=null)b.push(p) |
| 1982 b.push(u) |
| 1983 b.push(v)}, |
| 1984 L5:function(a,b,c,d,e){return H.VM(new P.YB(0,null,null,null,null,null,0),[d,e])
}, |
| 1985 Ls:function(a,b,c,d){return H.VM(new P.b6(0,null,null,null,null,null,0),[d])}, |
| 1986 vW:function(a){var z,y,x,w,v |
| 1987 z={} |
| 1988 for(x=0;w=$.tw(),x<w.length;++x){w=w[x] |
| 1989 v=a |
| 1990 if(w==null?v==null:w===v)return"{...}"}y=P.p9("") |
| 1991 try{$.tw().push(a) |
| 1992 y.KF("{") |
| 1993 z.a=!0 |
| 1994 J.kH(a,new P.LG(z,y)) |
| 1995 y.KF("}")}finally{z=$.tw() |
| 1996 if(0>=z.length)return H.e(z,0) |
| 1997 z.pop()}return y.gvM()}, |
| 1998 k6:{ |
| 1999 "^":"a;X5,vv,OX,OB,wV", |
| 2000 gB:function(a){return this.X5}, |
| 2001 gl0:function(a){return this.X5===0}, |
| 2002 gvc:function(a){return H.VM(new P.fG(this),[H.Kp(this,0)])}, |
| 2003 gUQ:function(a){return H.K1(H.VM(new P.fG(this),[H.Kp(this,0)]),new P.oi(this),H
.Kp(this,0),H.Kp(this,1))}, |
| 2004 t:function(a,b){var z,y,x,w |
| 2005 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2006 if(z==null)y=null |
| 2007 else{x=z[b] |
| 2008 y=x===z?null:x}return y}else if(typeof b==="number"&&(b&0x3ffffff)===b){w=this.O
X |
| 2009 if(w==null)y=null |
| 2010 else{x=w[b] |
| 2011 y=x===w?null:x}return y}else return this.Dl(b)}, |
| 2012 Dl:function(a){var z,y,x |
| 2013 z=this.OB |
| 2014 if(z==null)return |
| 2015 y=z[this.nm(a)] |
| 2016 x=this.aH(y,a) |
| 2017 return x<0?null:y[x+1]}, |
| 2018 u:function(a,b,c){var z,y |
| 2019 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2020 if(z==null){z=P.a0() |
| 2021 this.vv=z}this.dg(z,b,c)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.
OX |
| 2022 if(y==null){y=P.a0() |
| 2023 this.OX=y}this.dg(y,b,c)}else this.ms(b,c)}, |
| 2024 ms:function(a,b){var z,y,x,w |
| 2025 z=this.OB |
| 2026 if(z==null){z=P.a0() |
| 2027 this.OB=z}y=this.nm(a) |
| 2028 x=z[y] |
| 2029 if(x==null){P.cW(z,y,[a,b]);++this.X5 |
| 2030 this.wV=null}else{w=this.aH(x,a) |
| 2031 if(w>=0)x[w+1]=b |
| 2032 else{x.push(a,b);++this.X5 |
| 2033 this.wV=null}}}, |
| 2034 aN:function(a,b){var z,y,x,w |
| 2035 z=this.Ig() |
| 2036 for(y=z.length,x=0;x<y;++x){w=z[x] |
| 2037 b.$2(w,this.t(0,w)) |
| 2038 if(z!==this.wV)throw H.b(P.a4(this))}}, |
| 2039 Ig:function(){var z,y,x,w,v,u,t,s,r,q,p,o |
| 2040 z=this.wV |
| 2041 if(z!=null)return z |
| 2042 y=Array(this.X5) |
| 2043 y.fixed$length=init |
| 2044 x=this.vv |
| 2045 if(x!=null){w=Object.getOwnPropertyNames(x) |
| 2046 v=w.length |
| 2047 for(u=0,t=0;t<v;++t){y[u]=w[t];++u}}else u=0 |
| 2048 s=this.OX |
| 2049 if(s!=null){w=Object.getOwnPropertyNames(s) |
| 2050 v=w.length |
| 2051 for(t=0;t<v;++t){y[u]=+w[t];++u}}r=this.OB |
| 2052 if(r!=null){w=Object.getOwnPropertyNames(r) |
| 2053 v=w.length |
| 2054 for(t=0;t<v;++t){q=r[w[t]] |
| 2055 p=q.length |
| 2056 for(o=0;o<p;o+=2){y[u]=q[o];++u}}}this.wV=y |
| 2057 return y}, |
| 2058 dg:function(a,b,c){if(a[b]==null){++this.X5 |
| 2059 this.wV=null}P.cW(a,b,c)}, |
| 2060 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2061 aH:function(a,b){var z,y |
| 2062 if(a==null)return-1 |
| 2063 z=a.length |
| 2064 for(y=0;y<z;y+=2)if(J.de(a[y],b))return y |
| 2065 return-1}, |
| 2066 $isZ0:true, |
| 2067 $asZ0:null, |
| 2068 static:{cW:function(a,b,c){if(c==null)a[b]=a |
| 2069 else a[b]=c},a0:function(){var z=Object.create(null) |
| 2070 P.cW(z,"<non-identifier-key>",z) |
| 2071 delete z["<non-identifier-key>"] |
| 2072 return z}}}, |
| 2073 oi:{ |
| 2074 "^":"Tp:11;a", |
| 2075 $1:function(a){return this.a.t(0,a)}}, |
| 2076 fG:{ |
| 2077 "^":"mW;Fb", |
| 2078 gB:function(a){return this.Fb.X5}, |
| 2079 gl0:function(a){return this.Fb.X5===0}, |
| 2080 gA:function(a){var z=this.Fb |
| 2081 return new P.EQ(z,z.Ig(),0,null)}, |
| 2082 aN:function(a,b){var z,y,x,w |
| 2083 z=this.Fb |
| 2084 y=z.Ig() |
| 2085 for(x=y.length,w=0;w<x;++w){b.$1(y[w]) |
| 2086 if(y!==z.wV)throw H.b(P.a4(z))}}}, |
| 2087 EQ:{ |
| 2088 "^":"a;Fb,wV,zi,fD", |
| 2089 gl:function(){return this.fD}, |
| 2090 G:function(){var z,y,x |
| 2091 z=this.wV |
| 2092 y=this.zi |
| 2093 x=this.Fb |
| 2094 if(z!==x.wV)throw H.b(P.a4(x)) |
| 2095 else if(y>=z.length){this.fD=null |
| 2096 return!1}else{this.fD=z[y] |
| 2097 this.zi=y+1 |
| 2098 return!0}}}, |
| 2099 YB:{ |
| 2100 "^":"a;X5,vv,OX,OB,H9,lX,zN", |
| 2101 gB:function(a){return this.X5}, |
| 2102 gl0:function(a){return this.X5===0}, |
| 2103 gvc:function(a){return H.VM(new P.i5(this),[H.Kp(this,0)])}, |
| 2104 gUQ:function(a){return H.K1(H.VM(new P.i5(this),[H.Kp(this,0)]),new P.a1(this),H
.Kp(this,0),H.Kp(this,1))}, |
| 2105 x4:function(a,b){var z |
| 2106 if((b&0x3ffffff)===b){z=this.OX |
| 2107 if(z==null)return!1 |
| 2108 return z[b]!=null}else return this.Zt(b)}, |
| 2109 Zt:function(a){var z=this.OB |
| 2110 if(z==null)return!1 |
| 2111 return this.aH(z[this.nm(a)],a)>=0}, |
| 2112 t:function(a,b){var z,y,x |
| 2113 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2114 if(z==null)return |
| 2115 y=z[b] |
| 2116 return y==null?null:y.gcA()}else if(typeof b==="number"&&(b&0x3ffffff)===b){x=th
is.OX |
| 2117 if(x==null)return |
| 2118 y=x[b] |
| 2119 return y==null?null:y.gcA()}else return this.Dl(b)}, |
| 2120 Dl:function(a){var z,y,x |
| 2121 z=this.OB |
| 2122 if(z==null)return |
| 2123 y=z[this.nm(a)] |
| 2124 x=this.aH(y,a) |
| 2125 if(x<0)return |
| 2126 return y[x].gcA()}, |
| 2127 u:function(a,b,c){var z,y |
| 2128 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2129 if(z==null){z=P.Qs() |
| 2130 this.vv=z}this.dg(z,b,c)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.
OX |
| 2131 if(y==null){y=P.Qs() |
| 2132 this.OX=y}this.dg(y,b,c)}else this.ms(b,c)}, |
| 2133 ms:function(a,b){var z,y,x,w |
| 2134 z=this.OB |
| 2135 if(z==null){z=P.Qs() |
| 2136 this.OB=z}y=this.nm(a) |
| 2137 x=z[y] |
| 2138 if(x==null)z[y]=[this.pE(a,b)] |
| 2139 else{w=this.aH(x,a) |
| 2140 if(w>=0)x[w].scA(b) |
| 2141 else x.push(this.pE(a,b))}}, |
| 2142 Rz:function(a,b){if(typeof b==="string"&&b!=="__proto__")return this.Nv(this.vv,
b) |
| 2143 else if(typeof b==="number"&&(b&0x3ffffff)===b)return this.Nv(this.OX,b) |
| 2144 else return this.bB(b)}, |
| 2145 bB:function(a){var z,y,x,w |
| 2146 z=this.OB |
| 2147 if(z==null)return |
| 2148 y=z[this.nm(a)] |
| 2149 x=this.aH(y,a) |
| 2150 if(x<0)return |
| 2151 w=y.splice(x,1)[0] |
| 2152 this.Vb(w) |
| 2153 return w.gcA()}, |
| 2154 aN:function(a,b){var z,y |
| 2155 z=this.H9 |
| 2156 y=this.zN |
| 2157 for(;z!=null;){b.$2(z.gkh(z),z.cA) |
| 2158 if(y!==this.zN)throw H.b(P.a4(this)) |
| 2159 z=z.DG}}, |
| 2160 dg:function(a,b,c){var z=a[b] |
| 2161 if(z==null)a[b]=this.pE(b,c) |
| 2162 else z.scA(c)}, |
| 2163 Nv:function(a,b){var z |
| 2164 if(a==null)return |
| 2165 z=a[b] |
| 2166 if(z==null)return |
| 2167 this.Vb(z) |
| 2168 delete a[b] |
| 2169 return z.gcA()}, |
| 2170 pE:function(a,b){var z,y |
| 2171 z=new P.db(a,b,null,null) |
| 2172 if(this.H9==null){this.lX=z |
| 2173 this.H9=z}else{y=this.lX |
| 2174 z.zQ=y |
| 2175 y.sDG(z) |
| 2176 this.lX=z}++this.X5 |
| 2177 this.zN=this.zN+1&67108863 |
| 2178 return z}, |
| 2179 Vb:function(a){var z,y |
| 2180 z=a.gzQ() |
| 2181 y=a.gDG() |
| 2182 if(z==null)this.H9=y |
| 2183 else z.sDG(y) |
| 2184 if(y==null)this.lX=z |
| 2185 else y.szQ(z);--this.X5 |
| 2186 this.zN=this.zN+1&67108863}, |
| 2187 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2188 aH:function(a,b){var z,y |
| 2189 if(a==null)return-1 |
| 2190 z=a.length |
| 2191 for(y=0;y<z;++y)if(J.de(J.up(a[y]),b))return y |
| 2192 return-1}, |
| 2193 bu:function(a){return P.vW(this)}, |
| 2194 $isZ0:true, |
| 2195 $asZ0:null, |
| 2196 static:{Qs:function(){var z=Object.create(null) |
| 2197 z["<non-identifier-key>"]=z |
| 2198 delete z["<non-identifier-key>"] |
| 2199 return z}}}, |
| 2200 a1:{ |
| 2201 "^":"Tp:11;a", |
| 2202 $1:function(a){return this.a.t(0,a)}}, |
| 2203 db:{ |
| 2204 "^":"a;kh>,cA@,DG@,zQ@"}, |
| 2205 i5:{ |
| 2206 "^":"mW;Fb", |
| 2207 gB:function(a){return this.Fb.X5}, |
| 2208 gl0:function(a){return this.Fb.X5===0}, |
| 2209 gA:function(a){var z,y |
| 2210 z=this.Fb |
| 2211 y=new P.N6(z,z.zN,null,null) |
| 2212 y.zq=z.H9 |
| 2213 return y}, |
| 2214 aN:function(a,b){var z,y,x |
| 2215 z=this.Fb |
| 2216 y=z.H9 |
| 2217 x=z.zN |
| 2218 for(;y!=null;){b.$1(y.gkh(y)) |
| 2219 if(x!==z.zN)throw H.b(P.a4(z)) |
| 2220 y=y.DG}}}, |
| 2221 N6:{ |
| 2222 "^":"a;Fb,zN,zq,fD", |
| 2223 gl:function(){return this.fD}, |
| 2224 G:function(){var z=this.Fb |
| 2225 if(this.zN!==z.zN)throw H.b(P.a4(z)) |
| 2226 else{z=this.zq |
| 2227 if(z==null){this.fD=null |
| 2228 return!1}else{this.fD=z.gkh(z) |
| 2229 this.zq=this.zq.gDG() |
| 2230 return!0}}}}, |
| 2231 jg:{ |
| 2232 "^":"u3;", |
| 2233 gA:function(a){return new P.oz(this,this.Zl(),0,null)}, |
| 2234 gB:function(a){return this.X5}, |
| 2235 gl0:function(a){return this.X5===0}, |
| 2236 tg:function(a,b){var z,y |
| 2237 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2238 return z==null?!1:z[b]!=null}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=t
his.OX |
| 2239 return y==null?!1:y[b]!=null}else return this.bk(b)}, |
| 2240 bk:function(a){var z=this.OB |
| 2241 if(z==null)return!1 |
| 2242 return this.aH(z[this.nm(a)],a)>=0}, |
| 2243 hV:function(a){var z |
| 2244 if(!(typeof a==="string"&&a!=="__proto__"))z=typeof a==="number"&&(a&0x3ffffff)=
==a |
| 2245 else z=!0 |
| 2246 if(z)return this.tg(0,a)?a:null |
| 2247 return this.AD(a)}, |
| 2248 AD:function(a){var z,y,x |
| 2249 z=this.OB |
| 2250 if(z==null)return |
| 2251 y=z[this.nm(a)] |
| 2252 x=this.aH(y,a) |
| 2253 if(x<0)return |
| 2254 return J.UQ(y,x)}, |
| 2255 h:function(a,b){return this.NZ(b)}, |
| 2256 NZ:function(a){var z,y,x |
| 2257 z=this.OB |
| 2258 if(z==null){z=P.jB() |
| 2259 this.OB=z}y=this.nm(a) |
| 2260 x=z[y] |
| 2261 if(x==null)z[y]=[a] |
| 2262 else{if(this.aH(x,a)>=0)return!1 |
| 2263 x.push(a)}++this.X5 |
| 2264 this.DM=null |
| 2265 return!0}, |
| 2266 Rz:function(a,b){return this.bB(b)}, |
| 2267 bB:function(a){var z,y,x |
| 2268 z=this.OB |
| 2269 if(z==null)return!1 |
| 2270 y=z[this.nm(a)] |
| 2271 x=this.aH(y,a) |
| 2272 if(x<0)return!1;--this.X5 |
| 2273 this.DM=null |
| 2274 y.splice(x,1) |
| 2275 return!0}, |
| 2276 Zl:function(){var z,y,x,w,v,u,t,s,r,q,p,o |
| 2277 z=this.DM |
| 2278 if(z!=null)return z |
| 2279 y=Array(this.X5) |
| 2280 y.fixed$length=init |
| 2281 x=this.vv |
| 2282 if(x!=null){w=Object.getOwnPropertyNames(x) |
| 2283 v=w.length |
| 2284 for(u=0,t=0;t<v;++t){y[u]=w[t];++u}}else u=0 |
| 2285 s=this.OX |
| 2286 if(s!=null){w=Object.getOwnPropertyNames(s) |
| 2287 v=w.length |
| 2288 for(t=0;t<v;++t){y[u]=+w[t];++u}}r=this.OB |
| 2289 if(r!=null){w=Object.getOwnPropertyNames(r) |
| 2290 v=w.length |
| 2291 for(t=0;t<v;++t){q=r[w[t]] |
| 2292 p=q.length |
| 2293 for(o=0;o<p;++o){y[u]=q[o];++u}}}this.DM=y |
| 2294 return y}, |
| 2295 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2296 aH:function(a,b){var z,y |
| 2297 if(a==null)return-1 |
| 2298 z=a.length |
| 2299 for(y=0;y<z;++y)if(J.de(a[y],b))return y |
| 2300 return-1}}, |
| 2301 YO:{ |
| 2302 "^":"jg;X5,vv,OX,OB,DM", |
| 2303 nm:function(a){return H.CU(a)&0x3ffffff}, |
| 2304 aH:function(a,b){var z,y,x |
| 2305 if(a==null)return-1 |
| 2306 z=a.length |
| 2307 for(y=0;y<z;++y){x=a[y] |
| 2308 if(x==null?b==null:x===b)return y}return-1}}, |
| 2309 oz:{ |
| 2310 "^":"a;O2,DM,zi,fD", |
| 2311 gl:function(){return this.fD}, |
| 2312 G:function(){var z,y,x |
| 2313 z=this.DM |
| 2314 y=this.zi |
| 2315 x=this.O2 |
| 2316 if(z!==x.DM)throw H.b(P.a4(x)) |
| 2317 else if(y>=z.length){this.fD=null |
| 2318 return!1}else{this.fD=z[y] |
| 2319 this.zi=y+1 |
| 2320 return!0}}}, |
| 2321 b6:{ |
| 2322 "^":"u3;X5,vv,OX,OB,H9,lX,zN", |
| 2323 gA:function(a){var z=new P.zQ(this,this.zN,null,null) |
| 2324 z.zq=this.H9 |
| 2325 return z}, |
| 2326 gB:function(a){return this.X5}, |
| 2327 gl0:function(a){return this.X5===0}, |
| 2328 tg:function(a,b){var z,y |
| 2329 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2330 if(z==null)return!1 |
| 2331 return z[b]!=null}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.OX |
| 2332 if(y==null)return!1 |
| 2333 return y[b]!=null}else return this.bk(b)}, |
| 2334 bk:function(a){var z=this.OB |
| 2335 if(z==null)return!1 |
| 2336 return this.aH(z[this.nm(a)],a)>=0}, |
| 2337 hV:function(a){var z |
| 2338 if(!(typeof a==="string"&&a!=="__proto__"))z=typeof a==="number"&&(a&0x3ffffff)=
==a |
| 2339 else z=!0 |
| 2340 if(z)return this.tg(0,a)?a:null |
| 2341 else return this.AD(a)}, |
| 2342 AD:function(a){var z,y,x |
| 2343 z=this.OB |
| 2344 if(z==null)return |
| 2345 y=z[this.nm(a)] |
| 2346 x=this.aH(y,a) |
| 2347 if(x<0)return |
| 2348 return J.UQ(y,x).gGc()}, |
| 2349 aN:function(a,b){var z,y |
| 2350 z=this.H9 |
| 2351 y=this.zN |
| 2352 for(;z!=null;){b.$1(z.gGc()) |
| 2353 if(y!==this.zN)throw H.b(P.a4(this)) |
| 2354 z=z.DG}}, |
| 2355 h:function(a,b){var z,y |
| 2356 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2357 if(z==null){z=P.T2() |
| 2358 this.vv=z}return this.jn(z,b)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=
this.OX |
| 2359 if(y==null){y=P.T2() |
| 2360 this.OX=y}return this.jn(y,b)}else return this.NZ(b)}, |
| 2361 NZ:function(a){var z,y,x |
| 2362 z=this.OB |
| 2363 if(z==null){z=P.T2() |
| 2364 this.OB=z}y=this.nm(a) |
| 2365 x=z[y] |
| 2366 if(x==null)z[y]=[this.xf(a)] |
| 2367 else{if(this.aH(x,a)>=0)return!1 |
| 2368 x.push(this.xf(a))}return!0}, |
| 2369 Rz:function(a,b){if(typeof b==="string"&&b!=="__proto__")return this.Nv(this.vv,
b) |
| 2370 else if(typeof b==="number"&&(b&0x3ffffff)===b)return this.Nv(this.OX,b) |
| 2371 else return this.bB(b)}, |
| 2372 bB:function(a){var z,y,x |
| 2373 z=this.OB |
| 2374 if(z==null)return!1 |
| 2375 y=z[this.nm(a)] |
| 2376 x=this.aH(y,a) |
| 2377 if(x<0)return!1 |
| 2378 this.Vb(y.splice(x,1)[0]) |
| 2379 return!0}, |
| 2380 jn:function(a,b){if(a[b]!=null)return!1 |
| 2381 a[b]=this.xf(b) |
| 2382 return!0}, |
| 2383 Nv:function(a,b){var z |
| 2384 if(a==null)return!1 |
| 2385 z=a[b] |
| 2386 if(z==null)return!1 |
| 2387 this.Vb(z) |
| 2388 delete a[b] |
| 2389 return!0}, |
| 2390 xf:function(a){var z,y |
| 2391 z=new P.tj(a,null,null) |
| 2392 if(this.H9==null){this.lX=z |
| 2393 this.H9=z}else{y=this.lX |
| 2394 z.zQ=y |
| 2395 y.sDG(z) |
| 2396 this.lX=z}++this.X5 |
| 2397 this.zN=this.zN+1&67108863 |
| 2398 return z}, |
| 2399 Vb:function(a){var z,y |
| 2400 z=a.gzQ() |
| 2401 y=a.gDG() |
| 2402 if(z==null)this.H9=y |
| 2403 else z.sDG(y) |
| 2404 if(y==null)this.lX=z |
| 2405 else y.szQ(z);--this.X5 |
| 2406 this.zN=this.zN+1&67108863}, |
| 2407 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2408 aH:function(a,b){var z,y |
| 2409 if(a==null)return-1 |
| 2410 z=a.length |
| 2411 for(y=0;y<z;++y)if(J.de(a[y].gGc(),b))return y |
| 2412 return-1}, |
| 2413 static:{T2:function(){var z=Object.create(null) |
| 2414 z["<non-identifier-key>"]=z |
| 2415 delete z["<non-identifier-key>"] |
| 2416 return z}}}, |
| 2417 tj:{ |
| 2418 "^":"a;Gc<,DG@,zQ@"}, |
| 2419 zQ:{ |
| 2420 "^":"a;O2,zN,zq,fD", |
| 2421 gl:function(){return this.fD}, |
| 2422 G:function(){var z=this.O2 |
| 2423 if(this.zN!==z.zN)throw H.b(P.a4(z)) |
| 2424 else{z=this.zq |
| 2425 if(z==null){this.fD=null |
| 2426 return!1}else{this.fD=z.gGc() |
| 2427 this.zq=this.zq.gDG() |
| 2428 return!0}}}}, |
| 2429 u3:{ |
| 2430 "^":"mW;", |
| 2431 bu:function(a){return H.mx(this,"{","}")}}, |
| 2432 mW:{ |
| 2433 "^":"a;", |
| 2434 aN:function(a,b){var z |
| 2435 for(z=this.gA(this);z.G();)b.$1(z.gl())}, |
| 2436 tt:function(a,b){return P.F(this,b,H.ip(this,"mW",0))}, |
| 2437 br:function(a){return this.tt(a,!0)}, |
| 2438 gB:function(a){var z,y |
| 2439 z=this.gA(this) |
| 2440 for(y=0;z.G();)++y |
| 2441 return y}, |
| 2442 gl0:function(a){return!this.gA(this).G()}, |
| 2443 Zv:function(a,b){var z,y,x |
| 2444 if(b<0)throw H.b(P.N(b)) |
| 2445 for(z=this.gA(this),y=b;z.G();){x=z.gl() |
| 2446 if(y===0)return x;--y}throw H.b(P.N(b))}, |
| 2447 bu:function(a){return P.FO(this)}}, |
| 2448 lG:{ |
| 2449 "^":"a;", |
| 2450 gA:function(a){return new H.a7(a,this.gB(a),0,null)}, |
| 2451 Zv:function(a,b){return this.t(a,b)}, |
| 2452 aN:function(a,b){var z,y,x |
| 2453 z=this.gB(a) |
| 2454 for(y=a.length,x=0;x<z;++x){if(x>=y)return H.e(a,x) |
| 2455 b.$1(a[x]) |
| 2456 if(z!==y)throw H.b(P.a4(a))}}, |
| 2457 gl0:function(a){return this.gB(a)===0}, |
| 2458 bu:function(a){var z |
| 2459 if($.xb().tg(0,a))return"[...]" |
| 2460 z=P.p9("") |
| 2461 try{$.xb().h(0,a) |
| 2462 z.KF("[") |
| 2463 z.We(a,", ") |
| 2464 z.KF("]")}finally{$.xb().Rz(0,a)}return z.gvM()}, |
| 2465 $iszM:true, |
| 2466 $aszM:null}, |
| 2467 LG:{ |
| 2468 "^":"Tp:10;a,b", |
| 2469 $2:function(a,b){var z=this.a |
| 2470 if(!z.a)this.b.KF(", ") |
| 2471 z.a=!1 |
| 2472 z=this.b |
| 2473 z.KF(a) |
| 2474 z.KF(": ") |
| 2475 z.KF(b)}}, |
| 2476 Sw:{ |
| 2477 "^":"mW;v5,av,HV,qT", |
| 2478 gA:function(a){return new P.o0(this,this.HV,this.qT,this.av,null)}, |
| 2479 aN:function(a,b){var z,y,x |
| 2480 z=this.qT |
| 2481 for(y=this.av;y!==this.HV;y=(y+1&this.v5.length-1)>>>0){x=this.v5 |
| 2482 if(y<0||y>=x.length)return H.e(x,y) |
| 2483 b.$1(x[y]) |
| 2484 if(z!==this.qT)H.vh(P.a4(this))}}, |
| 2485 gl0:function(a){return this.av===this.HV}, |
| 2486 gB:function(a){return(this.HV-this.av&this.v5.length-1)>>>0}, |
| 2487 V1:function(a){var z,y,x,w,v |
| 2488 z=this.av |
| 2489 y=this.HV |
| 2490 if(z!==y){for(x=this.v5,w=x.length,v=w-1;z!==y;z=(z+1&v)>>>0){if(z<0||z>=w)retur
n H.e(x,z) |
| 2491 x[z]=null}this.HV=0 |
| 2492 this.av=0;++this.qT}}, |
| 2493 bu:function(a){return H.mx(this,"{","}")}, |
| 2494 Ux:function(){var z,y,x,w |
| 2495 z=this.av |
| 2496 if(z===this.HV)throw H.b(P.w("No elements"));++this.qT |
| 2497 y=this.v5 |
| 2498 x=y.length |
| 2499 if(z>=x)return H.e(y,z) |
| 2500 w=y[z] |
| 2501 y[z]=null |
| 2502 this.av=(z+1&x-1)>>>0 |
| 2503 return w}, |
| 2504 NZ:function(a){var z,y,x |
| 2505 z=this.v5 |
| 2506 y=this.HV |
| 2507 x=z.length |
| 2508 if(y>=x)return H.e(z,y) |
| 2509 z[y]=a |
| 2510 x=(y+1&x-1)>>>0 |
| 2511 this.HV=x |
| 2512 if(this.av===x)this.VW();++this.qT}, |
| 2513 VW:function(){var z,y,x,w |
| 2514 z=Array(this.v5.length*2) |
| 2515 z.fixed$length=init |
| 2516 y=H.VM(z,[H.Kp(this,0)]) |
| 2517 z=this.v5 |
| 2518 x=this.av |
| 2519 w=z.length-x |
| 2520 H.qG(y,0,w,z,x) |
| 2521 z=this.av |
| 2522 x=this.v5 |
| 2523 H.qG(y,w,w+z,x,0) |
| 2524 this.av=0 |
| 2525 this.HV=this.v5.length |
| 2526 this.v5=y}, |
| 2527 Eo:function(a,b){var z=Array(8) |
| 2528 z.fixed$length=init |
| 2529 this.v5=H.VM(z,[b])}, |
| 2530 static:{"^":"TN"}}, |
| 2531 o0:{ |
| 2532 "^":"a;Lz,dP,qT,Dc,fD", |
| 2533 gl:function(){return this.fD}, |
| 2534 G:function(){var z,y,x |
| 2535 z=this.Lz |
| 2536 if(this.qT!==z.qT)H.vh(P.a4(z)) |
| 2537 y=this.Dc |
| 2538 if(y===this.dP){this.fD=null |
| 2539 return!1}z=z.v5 |
| 2540 x=z.length |
| 2541 if(y>=x)return H.e(z,y) |
| 2542 this.fD=z[y] |
| 2543 this.Dc=(y+1&x-1)>>>0 |
| 2544 return!0}}}],["dart.convert","dart:convert",,P,{ |
| 2545 "^":"", |
| 2546 VQ:function(a,b){var z=new P.JC() |
| 2547 return z.$2(null,new P.f1(z).$1(a))}, |
| 2548 BS:function(a,b){var z,y,x,w |
| 2549 x=a |
| 2550 if(typeof x!=="string")throw H.b(P.u(a)) |
| 2551 z=null |
| 2552 try{z=JSON.parse(a)}catch(w){x=H.Ru(w) |
| 2553 y=x |
| 2554 throw H.b(P.rr(String(y)))}return P.VQ(z,b)}, |
| 2555 tp:[function(a){return a.Lt()},"$1","DY",2,0,4], |
| 2556 JC:{ |
| 2557 "^":"Tp:10;", |
| 2558 $2:function(a,b){return b}}, |
| 2559 f1:{ |
| 2560 "^":"Tp:11;a", |
| 2561 $1:function(a){var z,y,x,w,v,u,t |
| 2562 if(a==null||typeof a!="object")return a |
| 2563 if(Object.getPrototypeOf(a)===Array.prototype){z=a |
| 2564 for(y=this.a,x=0;x<z.length;++x)z[x]=y.$2(x,this.$1(z[x])) |
| 2565 return z}w=Object.keys(a) |
| 2566 v=P.cV(null,null) |
| 2567 for(y=this.a,x=0;x<w.length;++x){u=w[x] |
| 2568 v.u(0,u,y.$2(u,this.$1(a[u])))}t=a.__proto__ |
| 2569 if(typeof t!=="undefined"&&t!==Object.prototype)v.u(0,"__proto__",y.$2("__proto_
_",this.$1(t))) |
| 2570 return v}}, |
| 2571 Uk:{ |
| 2572 "^":"a;"}, |
| 2573 wI:{ |
| 2574 "^":"a;"}, |
| 2575 Ud:{ |
| 2576 "^":"Ge;Ct,FN", |
| 2577 bu:function(a){if(this.FN!=null)return"Converting object to an encodable object
failed." |
| 2578 else return"Converting object did not return an encodable object."}, |
| 2579 static:{Gy:function(a,b){return new P.Ud(a,b)}}}, |
| 2580 K8:{ |
| 2581 "^":"Ud;Ct,FN", |
| 2582 bu:function(a){return"Cyclic error in JSON stringify"}, |
| 2583 static:{bc:function(a){return new P.K8(a,null)}}}, |
| 2584 by:{ |
| 2585 "^":"Uk;N5,iY", |
| 2586 pW:function(a,b){return P.BS(a,this.gHe().N5)}, |
| 2587 kV:function(a){return this.pW(a,null)}, |
| 2588 CE:function(a,b){var z=this.gZE() |
| 2589 return P.TC(a,z.uD,z.UM)}, |
| 2590 KP:function(a){return this.CE(a,null)}, |
| 2591 gZE:function(){return C.cb}, |
| 2592 gHe:function(){return C.A3}}, |
| 2593 oj:{ |
| 2594 "^":"wI;UM,uD"}, |
| 2595 QM:{ |
| 2596 "^":"wI;N5"}, |
| 2597 Sh:{ |
| 2598 "^":"a;iY,GQ,bV", |
| 2599 Wt:function(a){return this.iY.$1(a)}, |
| 2600 Ip:function(a){var z,y,x,w,v,u,t |
| 2601 z=J.U6(a) |
| 2602 y=z.gB(a) |
| 2603 if(typeof y!=="number")return H.s(y) |
| 2604 x=this.GQ |
| 2605 w=0 |
| 2606 v=0 |
| 2607 for(;v<y;++v){u=z.j(a,v) |
| 2608 if(u>92)continue |
| 2609 if(u<32){if(v>w){t=C.xB.Nj(a,w,v) |
| 2610 x.vM+=t}w=v+1 |
| 2611 t=H.Lw(92) |
| 2612 x.vM+=t |
| 2613 switch(u){case 8:t=H.Lw(98) |
| 2614 x.vM+=t |
| 2615 break |
| 2616 case 9:t=H.Lw(116) |
| 2617 x.vM+=t |
| 2618 break |
| 2619 case 10:t=H.Lw(110) |
| 2620 x.vM+=t |
| 2621 break |
| 2622 case 12:t=H.Lw(102) |
| 2623 x.vM+=t |
| 2624 break |
| 2625 case 13:t=H.Lw(114) |
| 2626 x.vM+=t |
| 2627 break |
| 2628 default:t=H.Lw(117) |
| 2629 x.vM+=t |
| 2630 t=H.Lw(48) |
| 2631 x.vM+=t |
| 2632 t=H.Lw(48) |
| 2633 x.vM+=t |
| 2634 t=u>>>4&15 |
| 2635 t=H.Lw(t<10?48+t:87+t) |
| 2636 x.vM+=t |
| 2637 t=u&15 |
| 2638 t=H.Lw(t<10?48+t:87+t) |
| 2639 x.vM+=t |
| 2640 break}}else if(u===34||u===92){if(v>w){t=C.xB.Nj(a,w,v) |
| 2641 x.vM+=t}w=v+1 |
| 2642 t=H.Lw(92) |
| 2643 x.vM+=t |
| 2644 t=H.Lw(u) |
| 2645 x.vM+=t}}if(w===0)x.vM+=typeof a==="string"?a:H.d(a) |
| 2646 else if(w<y){z=z.Nj(a,w,y) |
| 2647 x.vM+=z}}, |
| 2648 Dx:function(a){var z,y,x,w |
| 2649 for(z=this.bV,y=z.length,x=0;x<y;++x){w=z[x] |
| 2650 if(a==null?w==null:a===w)throw H.b(P.bc(a))}z.push(a)}, |
| 2651 C7:function(a){var z,y,x,w |
| 2652 if(!this.Jc(a)){this.Dx(a) |
| 2653 try{z=this.Wt(a) |
| 2654 if(!this.Jc(z)){x=P.Gy(a,null) |
| 2655 throw H.b(x)}x=this.bV |
| 2656 if(0>=x.length)return H.e(x,0) |
| 2657 x.pop()}catch(w){x=H.Ru(w) |
| 2658 y=x |
| 2659 throw H.b(P.Gy(a,y))}}}, |
| 2660 Jc:function(a){var z,y,x,w,v,u |
| 2661 if(typeof a==="number"){if(!C.CD.gkZ(a))return!1 |
| 2662 this.GQ.KF(C.CD.bu(a)) |
| 2663 return!0}else if(a===!0){this.GQ.KF("true") |
| 2664 return!0}else if(a===!1){this.GQ.KF("false") |
| 2665 return!0}else if(a==null){this.GQ.KF("null") |
| 2666 return!0}else if(typeof a==="string"){z=this.GQ |
| 2667 z.KF("\"") |
| 2668 this.Ip(a) |
| 2669 z.KF("\"") |
| 2670 return!0}else{z=J.x(a) |
| 2671 if(!!z.$iszM){this.Dx(a) |
| 2672 y=this.GQ |
| 2673 y.KF("[") |
| 2674 if(z.gB(a)>0){if(0>=a.length)return H.e(a,0) |
| 2675 this.C7(a[0]) |
| 2676 for(x=1;x<a.length;++x){y.vM+="," |
| 2677 this.C7(a[x])}}y.KF("]") |
| 2678 this.Ei(a) |
| 2679 return!0}else if(!!z.$isZ0){this.Dx(a) |
| 2680 y=this.GQ |
| 2681 y.KF("{") |
| 2682 for(w=J.GP(z.gvc(a)),v="\"";w.G();v=",\""){u=w.gl() |
| 2683 y.vM+=v |
| 2684 this.Ip(u) |
| 2685 y.vM+="\":" |
| 2686 this.C7(z.t(a,u))}y.KF("}") |
| 2687 this.Ei(a) |
| 2688 return!0}else return!1}}, |
| 2689 Ei:function(a){var z=this.bV |
| 2690 if(0>=z.length)return H.e(z,0) |
| 2691 z.pop()}, |
| 2692 static:{"^":"Gs,TM,Ta,Jy,No,HV,dH,WF,KQ,i6,mr,YM,PB,QV",xl:function(a,b,c){retur
n new P.Sh(b,a,[])},TC:function(a,b,c){var z |
| 2693 b=P.DY() |
| 2694 z=P.p9("") |
| 2695 P.xl(z,b,c).C7(a) |
| 2696 return z.vM}}}}],["dart.core","dart:core",,P,{ |
| 2697 "^":"", |
| 2698 Hp:function(a){return H.Fv(a)}, |
| 2699 hl:function(a){var z,y,x,w,v |
| 2700 if(typeof a==="number"||typeof a==="boolean"||null==a)return J.AG(a) |
| 2701 if(typeof a==="string"){z=new P.Rn("") |
| 2702 z.vM="\"" |
| 2703 for(y=a.length,x=0,w="\"";x<y;++x){v=C.xB.j(a,x) |
| 2704 if(v<=31)if(v===10)w=z.vM+="\\n" |
| 2705 else if(v===13)w=z.vM+="\\r" |
| 2706 else if(v===9)w=z.vM+="\\t" |
| 2707 else{w=z.vM+="\\x" |
| 2708 if(v<16)z.vM=w+"0" |
| 2709 else{z.vM=w+"1" |
| 2710 v-=16}w=H.Lw(v<10?48+v:87+v) |
| 2711 w=z.vM+=w}else if(v===92)w=z.vM+="\\\\" |
| 2712 else if(v===34)w=z.vM+="\\\"" |
| 2713 else{w=H.Lw(v) |
| 2714 w=z.vM+=w}}y=w+"\"" |
| 2715 z.vM=y |
| 2716 return y}return"Instance of '"+H.lh(a)+"'"}, |
| 2717 FM:function(a){return new P.HG(a)}, |
| 2718 ad:[function(a,b){return a==null?b==null:a===b},"$2","n0",4,0,5], |
| 2719 xv:[function(a){return H.CU(a)},"$1","J2",2,0,6], |
| 2720 F:function(a,b,c){var z,y |
| 2721 z=H.VM([],[c]) |
| 2722 for(y=a.gA(a);y.G();)z.push(y.gl()) |
| 2723 if(b)return z |
| 2724 z.fixed$length=init |
| 2725 return z}, |
| 2726 JS:function(a){var z=H.d(a) |
| 2727 H.qw(z)}, |
| 2728 CL:{ |
| 2729 "^":"Tp:19;a", |
| 2730 $2:function(a,b){var z=this.a |
| 2731 if(z.b>0)z.a.KF(", ") |
| 2732 z.a.KF(P.Hp(a))}}, |
| 2733 a2:{ |
| 2734 "^":"a;", |
| 2735 $isa2:true}, |
| 2736 "+bool":0, |
| 2737 Vf:{ |
| 2738 "^":"lf;"}, |
| 2739 "+double":0, |
| 2740 a6:{ |
| 2741 "^":"a;Fq", |
| 2742 g:function(a,b){return P.k5(0,0,C.jn.g(this.Fq,b.gFq()),0,0,0)}, |
| 2743 C:function(a,b){return C.jn.C(this.Fq,b.gFq())}, |
| 2744 F:function(a,b){return C.jn.F(this.Fq,b.gFq())}, |
| 2745 n:function(a,b){if(b==null)return!1 |
| 2746 if(!J.x(b).$isa6)return!1 |
| 2747 return this.Fq===b.Fq}, |
| 2748 giO:function(a){return this.Fq&0x1FFFFFFF}, |
| 2749 bu:function(a){var z,y,x,w,v |
| 2750 z=new P.DW() |
| 2751 y=this.Fq |
| 2752 if(y<0)return"-"+P.k5(0,0,-y,0,0,0).bu(0) |
| 2753 x=z.$1(C.jn.JV(C.jn.cU(y,60000000),60)) |
| 2754 w=z.$1(C.jn.JV(C.jn.cU(y,1000000),60)) |
| 2755 v=new P.P7().$1(C.jn.JV(y,1000000)) |
| 2756 return""+C.jn.cU(y,3600000000)+":"+H.d(x)+":"+H.d(w)+"."+H.d(v)}, |
| 2757 $isa6:true, |
| 2758 static:{"^":"Wt,S4,dk,Lo,zj,b2,q9,Ie,Do,Cv,kT,IJ,D9,Vk,S8,rG",k5:function(a,b,c,
d,e,f){return new P.a6(a*86400000000+b*3600000000+e*60000000+f*1000000+d*1000+c)
}}}, |
| 2759 P7:{ |
| 2760 "^":"Tp:20;", |
| 2761 $1:function(a){if(a>=100000)return""+a |
| 2762 if(a>=10000)return"0"+a |
| 2763 if(a>=1000)return"00"+a |
| 2764 if(a>=100)return"000"+a |
| 2765 if(a>=10)return"0000"+a |
| 2766 return"00000"+a}}, |
| 2767 DW:{ |
| 2768 "^":"Tp:20;", |
| 2769 $1:function(a){if(a>=10)return""+a |
| 2770 return"0"+a}}, |
| 2771 Ge:{ |
| 2772 "^":"a;", |
| 2773 gI4:function(){return new H.XO(this.$thrownJsError,null)}, |
| 2774 $isGe:true}, |
| 2775 LK:{ |
| 2776 "^":"Ge;", |
| 2777 bu:function(a){return"Throw of null."}}, |
| 2778 AT:{ |
| 2779 "^":"Ge;G1", |
| 2780 bu:function(a){var z=this.G1 |
| 2781 if(z!=null)return"Illegal argument(s): "+H.d(z) |
| 2782 return"Illegal argument(s)"}, |
| 2783 static:{u:function(a){return new P.AT(a)}}}, |
| 2784 bJ:{ |
| 2785 "^":"AT;G1", |
| 2786 bu:function(a){return"RangeError: "+H.d(this.G1)}, |
| 2787 static:{C3:function(a){return new P.bJ(a)},N:function(a){return new P.bJ("value
"+H.d(a))},TE:function(a,b,c){return new P.bJ("value "+H.d(a)+" not in range "+b
+".."+H.d(c))}}}, |
| 2788 ub:{ |
| 2789 "^":"Ge;G1", |
| 2790 bu:function(a){return"Unsupported operation: "+this.G1}, |
| 2791 static:{f:function(a){return new P.ub(a)}}}, |
| 2792 ds:{ |
| 2793 "^":"Ge;G1", |
| 2794 bu:function(a){var z=this.G1 |
| 2795 return z!=null?"UnimplementedError: "+H.d(z):"UnimplementedError"}, |
| 2796 $isGe:true, |
| 2797 static:{SY:function(a){return new P.ds(a)}}}, |
| 2798 lj:{ |
| 2799 "^":"Ge;G1", |
| 2800 bu:function(a){return"Bad state: "+this.G1}, |
| 2801 static:{w:function(a){return new P.lj(a)}}}, |
| 2802 UV:{ |
| 2803 "^":"Ge;YA", |
| 2804 bu:function(a){var z=this.YA |
| 2805 if(z==null)return"Concurrent modification during iteration." |
| 2806 return"Concurrent modification during iteration: "+H.d(P.hl(z))+"."}, |
| 2807 static:{a4:function(a){return new P.UV(a)}}}, |
| 2808 VS:{ |
| 2809 "^":"a;", |
| 2810 bu:function(a){return"Stack Overflow"}, |
| 2811 gI4:function(){return}, |
| 2812 $isGe:true}, |
| 2813 t7:{ |
| 2814 "^":"Ge;Wo", |
| 2815 bu:function(a){return"Reading static variable '"+this.Wo+"' during its initializ
ation"}, |
| 2816 static:{Gz:function(a){return new P.t7(a)}}}, |
| 2817 HG:{ |
| 2818 "^":"a;G1", |
| 2819 bu:function(a){var z=this.G1 |
| 2820 if(z==null)return"Exception" |
| 2821 return"Exception: "+H.d(z)}}, |
| 2822 aE:{ |
| 2823 "^":"a;G1", |
| 2824 bu:function(a){return"FormatException: "+this.G1}, |
| 2825 static:{rr:function(a){return new P.aE(a)}}}, |
| 2826 kM:{ |
| 2827 "^":"a;oc", |
| 2828 bu:function(a){return"Expando:"+H.d(this.oc)}, |
| 2829 t:function(a,b){var z=H.VK(b,"expando$values") |
| 2830 return z==null?null:H.VK(z,this.J4())}, |
| 2831 u:function(a,b,c){var z=H.VK(b,"expando$values") |
| 2832 if(z==null){z=new P.a() |
| 2833 H.aw(b,"expando$values",z)}H.aw(z,this.J4(),c)}, |
| 2834 J4:function(){var z,y |
| 2835 z=H.VK(this,"expando$key") |
| 2836 if(z==null){y=$.Ss |
| 2837 $.Ss=y+1 |
| 2838 z="expando$key$"+y |
| 2839 H.aw(this,"expando$key",z)}return z}, |
| 2840 static:{"^":"bZ,rl,Ss"}}, |
| 2841 EH:{ |
| 2842 "^":"a;"}, |
| 2843 KN:{ |
| 2844 "^":"lf;", |
| 2845 $isKN:true}, |
| 2846 "+int":0, |
| 2847 An:{ |
| 2848 "^":"a;"}, |
| 2849 zM:{ |
| 2850 "^":"a;", |
| 2851 $iszM:true, |
| 2852 $aszM:null}, |
| 2853 "+List":0, |
| 2854 c8:{ |
| 2855 "^":"a;", |
| 2856 bu:function(a){return"null"}}, |
| 2857 "+Null":0, |
| 2858 lf:{ |
| 2859 "^":"a;", |
| 2860 $islf:true}, |
| 2861 "+num":0, |
| 2862 a:{ |
| 2863 "^":";", |
| 2864 n:function(a,b){return this===b}, |
| 2865 giO:function(a){return H.eQ(this)}, |
| 2866 bu:function(a){return H.a5(this)}}, |
| 2867 mE:{ |
| 2868 "^":"a;"}, |
| 2869 qU:{ |
| 2870 "^":"a;", |
| 2871 $isqU:true}, |
| 2872 "+String":0, |
| 2873 Rn:{ |
| 2874 "^":"a;vM<", |
| 2875 gB:function(a){return this.vM.length}, |
| 2876 gl0:function(a){return this.vM.length===0}, |
| 2877 KF:function(a){this.vM+=typeof a==="string"?a:H.d(a)}, |
| 2878 We:function(a,b){var z,y |
| 2879 z=J.GP(a) |
| 2880 if(!z.G())return |
| 2881 if(b.length===0)do{y=z.gl() |
| 2882 this.vM+=typeof y==="string"?y:H.d(y)}while(z.G()) |
| 2883 else{this.KF(z.gl()) |
| 2884 for(;z.G();){this.vM+=b |
| 2885 y=z.gl() |
| 2886 this.vM+=typeof y==="string"?y:H.d(y)}}}, |
| 2887 bu:function(a){return this.vM}, |
| 2888 PD:function(a){this.vM=a}, |
| 2889 static:{p9:function(a){var z=new P.Rn("") |
| 2890 z.PD(a) |
| 2891 return z}}}, |
| 2892 wv:{ |
| 2893 "^":"a;"}}],["dart.dom.html","dart:html",,W,{ |
| 2894 "^":"", |
| 2895 Kn:function(a,b,c){return W.lt(a,null,null,b,null,null,null,c).ml(new W.Kx())}, |
| 2896 lt:function(a,b,c,d,e,f,g,h){var z,y,x |
| 2897 z=W.zU |
| 2898 y=H.VM(new P.Zf(P.Dt(z)),[z]) |
| 2899 x=new XMLHttpRequest() |
| 2900 C.W3.eo(x,"GET",a,!0) |
| 2901 z=H.VM(new W.RO(x,C.fK.Ph,!1),[null]) |
| 2902 H.VM(new W.xC(0,z.uv,z.Ph,W.VF(new W.bU(y,x)),z.Sg),[H.Kp(z,0)]).Zz() |
| 2903 z=H.VM(new W.RO(x,C.MD.Ph,!1),[null]) |
| 2904 H.VM(new W.xC(0,z.uv,z.Ph,W.VF(y.gYJ()),z.Sg),[H.Kp(z,0)]).Zz() |
| 2905 x.send() |
| 2906 return y.MM}, |
| 2907 qc:function(a){var z |
| 2908 if(a==null)return |
| 2909 if("setInterval" in a){z=W.P1(a) |
| 2910 if(!!J.x(z).$isD0)return z |
| 2911 return}else return a}, |
| 2912 VF:function(a){var z=$.X3 |
| 2913 if(z===C.NU)return a |
| 2914 if(a==null)return |
| 2915 return z.oj(a,!0)}, |
| 2916 qE:{ |
| 2917 "^":"cv;", |
| 2918 "%":"HTMLAppletElement|HTMLBRElement|HTMLCanvasElement|HTMLContentElement|HTMLDL
istElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirector
yElement|HTMLDivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLHR
Element|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTM
LImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMapElement|HT
MLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement
|HTMLOListElement|HTMLObjectElement|HTMLOutputElement|HTMLParagraphElement|HTMLP
aramElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElemen
t|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLTableCaptionElement|HT
MLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement
|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemp
lateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElemen
t;HTMLElement"}, |
| 2919 Gh:{ |
| 2920 "^":"qE;N:target=", |
| 2921 bu:function(a){return a.toString()}, |
| 2922 "%":"HTMLAnchorElement"}, |
| 2923 fY:{ |
| 2924 "^":"qE;N:target=", |
| 2925 bu:function(a){return a.toString()}, |
| 2926 "%":"HTMLAreaElement"}, |
| 2927 nB:{ |
| 2928 "^":"qE;N:target=", |
| 2929 "%":"HTMLBaseElement"}, |
| 2930 QP:{ |
| 2931 "^":"qE;", |
| 2932 $isD0:true, |
| 2933 "%":"HTMLBodyElement"}, |
| 2934 IF:{ |
| 2935 "^":"qE;lz:disabled}", |
| 2936 "%":"HTMLButtonElement"}, |
| 2937 nx:{ |
| 2938 "^":"KV;B:length=", |
| 2939 "%":"CDATASection|Comment|Text;CharacterData"}, |
| 2940 Nh:{ |
| 2941 "^":"Gv;", |
| 2942 bu:function(a){return a.toString()}, |
| 2943 "%":"DOMException"}, |
| 2944 cv:{ |
| 2945 "^":"KV;", |
| 2946 bu:function(a){return a.localName}, |
| 2947 gVl:function(a){return H.VM(new W.Cq(a,C.T1.Ph,!1),[null])}, |
| 2948 gLm:function(a){return H.VM(new W.Cq(a,C.io.Ph,!1),[null])}, |
| 2949 $isD0:true, |
| 2950 "%":";Element"}, |
| 2951 hY:{ |
| 2952 "^":"ea;kc:error=", |
| 2953 "%":"ErrorEvent"}, |
| 2954 ea:{ |
| 2955 "^":"Gv;", |
| 2956 gN:function(a){return W.qc(a.target)}, |
| 2957 "%":"AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnloadEve
nt|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrientati
onEvent|HashChangeEvent|IDBVersionChangeEvent|InstallEvent|InstallPhaseEvent|MID
IConnectionEvent|MIDIMessageEvent|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNee
dedEvent|MediaStreamEvent|MediaStreamTrackEvent|MessageEvent|MutationEvent|Offli
neAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|RTCDTMFTo
neChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|SecurityPolicyViolationEv
ent|SpeechInputEvent|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|Tr
ackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransition
Event;Event"}, |
| 2958 D0:{ |
| 2959 "^":"Gv;", |
| 2960 On:function(a,b,c,d){return a.addEventListener(b,H.tR(c,1),d)}, |
| 2961 Y9:function(a,b,c,d){return a.removeEventListener(b,H.tR(c,1),d)}, |
| 2962 $isD0:true, |
| 2963 "%":";EventTarget"}, |
| 2964 as:{ |
| 2965 "^":"qE;lz:disabled}", |
| 2966 "%":"HTMLFieldSetElement"}, |
| 2967 Yu:{ |
| 2968 "^":"qE;B:length=,N:target=", |
| 2969 "%":"HTMLFormElement"}, |
| 2970 zU:{ |
| 2971 "^":"wa;il:responseText=", |
| 2972 Vs:function(a,b,c,d,e,f){return a.open(b,c,d,f,e)}, |
| 2973 eo:function(a,b,c,d){return a.open(b,c,d)}, |
| 2974 wR:function(a,b){return a.send(b)}, |
| 2975 "%":"XMLHttpRequest"}, |
| 2976 wa:{ |
| 2977 "^":"D0;", |
| 2978 "%":";XMLHttpRequestEventTarget"}, |
| 2979 Mi:{ |
| 2980 "^":"qE;lz:disabled}", |
| 2981 $isMi:true, |
| 2982 $isD0:true, |
| 2983 "%":"HTMLInputElement"}, |
| 2984 In:{ |
| 2985 "^":"qE;lz:disabled}", |
| 2986 "%":"HTMLKeygenElement"}, |
| 2987 Og:{ |
| 2988 "^":"qE;lz:disabled}", |
| 2989 "%":"HTMLLinkElement"}, |
| 2990 El:{ |
| 2991 "^":"qE;kc:error=", |
| 2992 "%":"HTMLAudioElement|HTMLMediaElement|HTMLVideoElement"}, |
| 2993 Aj:{ |
| 2994 "^":"w6;", |
| 2995 "%":"DragEvent|MSPointerEvent|MouseEvent|MouseScrollEvent|MouseWheelEvent|Pointe
rEvent|WheelEvent"}, |
| 2996 KV:{ |
| 2997 "^":"D0;", |
| 2998 bu:function(a){var z=a.nodeValue |
| 2999 return z==null?J.Gv.prototype.bu.call(this,a):z}, |
| 3000 "%":"Attr|Document|DocumentFragment|DocumentType|HTMLDocument|Notation|ShadowRoo
t|XMLDocument;Node"}, |
| 3001 l9:{ |
| 3002 "^":"qE;lz:disabled}", |
| 3003 "%":"HTMLOptGroupElement"}, |
| 3004 Ql:{ |
| 3005 "^":"qE;lz:disabled}", |
| 3006 "%":"HTMLOptionElement"}, |
| 3007 nC:{ |
| 3008 "^":"nx;N:target=", |
| 3009 "%":"ProcessingInstruction"}, |
| 3010 ew:{ |
| 3011 "^":"ea;", |
| 3012 "%":"ProgressEvent|ResourceProgressEvent|XMLHttpRequestProgressEvent"}, |
| 3013 lp:{ |
| 3014 "^":"qE;lz:disabled},B:length=", |
| 3015 "%":"HTMLSelectElement"}, |
| 3016 HN:{ |
| 3017 "^":"ea;kc:error=", |
| 3018 "%":"SpeechRecognitionError"}, |
| 3019 As:{ |
| 3020 "^":"Gv;", |
| 3021 t:function(a,b){return a.getItem(b)}, |
| 3022 u:function(a,b,c){a.setItem(b,c)}, |
| 3023 aN:function(a,b){var z,y |
| 3024 for(z=0;!0;++z){y=a.key(z) |
| 3025 if(y==null)return |
| 3026 b.$2(y,a.getItem(y))}}, |
| 3027 gvc:function(a){var z=[] |
| 3028 this.aN(a,new W.cX(z)) |
| 3029 return z}, |
| 3030 gUQ:function(a){var z=[] |
| 3031 this.aN(a,new W.DE(z)) |
| 3032 return z}, |
| 3033 gB:function(a){return a.length}, |
| 3034 gl0:function(a){return a.key(0)==null}, |
| 3035 $isZ0:true, |
| 3036 $asZ0:function(){return[P.qU,P.qU]}, |
| 3037 "%":"Storage"}, |
| 3038 fq:{ |
| 3039 "^":"qE;lz:disabled}", |
| 3040 "%":"HTMLStyleElement"}, |
| 3041 FB:{ |
| 3042 "^":"qE;lz:disabled}", |
| 3043 "%":"HTMLTextAreaElement"}, |
| 3044 w6:{ |
| 3045 "^":"ea;", |
| 3046 "%":"CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomEvent|TextEvent|TouchEvent
;UIEvent"}, |
| 3047 Oi:{ |
| 3048 "^":"D0;", |
| 3049 bu:function(a){return a.toString()}, |
| 3050 $isD0:true, |
| 3051 "%":"DOMWindow|Window"}, |
| 3052 Nf:{ |
| 3053 "^":"qE;", |
| 3054 $isD0:true, |
| 3055 "%":"HTMLFrameSetElement"}, |
| 3056 Kx:{ |
| 3057 "^":"Tp:11;", |
| 3058 $1:function(a){return J.CA(a)}}, |
| 3059 hH:{ |
| 3060 "^":"Tp:10;a", |
| 3061 $2:function(a,b){this.a.setRequestHeader(a,b)}}, |
| 3062 bU:{ |
| 3063 "^":"Tp:11;b,c", |
| 3064 $1:function(a){var z,y,x |
| 3065 z=this.c |
| 3066 y=z.status |
| 3067 if(typeof y!=="number")return y.F() |
| 3068 y=y>=200&&y<300||y===0||y===304 |
| 3069 x=this.b |
| 3070 if(y){y=x.MM |
| 3071 if(y.Gv!==0)H.vh(P.w("Future already completed")) |
| 3072 y.OH(z)}else x.pm(a)}}, |
| 3073 cX:{ |
| 3074 "^":"Tp:10;a", |
| 3075 $2:function(a,b){return this.a.push(a)}}, |
| 3076 DE:{ |
| 3077 "^":"Tp:10;a", |
| 3078 $2:function(a,b){return this.a.push(b)}}, |
| 3079 Fk:{ |
| 3080 "^":"a;Ph"}, |
| 3081 RO:{ |
| 3082 "^":"qh;uv,Ph,Sg", |
| 3083 KR:function(a,b,c,d){var z=new W.xC(0,this.uv,this.Ph,W.VF(a),this.Sg) |
| 3084 z.$builtinTypeInfo=this.$builtinTypeInfo |
| 3085 z.Zz() |
| 3086 return z}}, |
| 3087 Cq:{ |
| 3088 "^":"RO;uv,Ph,Sg"}, |
| 3089 xC:{ |
| 3090 "^":"MO;VP,uv,Ph,u7,Sg", |
| 3091 ed:function(){if(this.uv==null)return |
| 3092 this.Ns() |
| 3093 this.uv=null |
| 3094 this.u7=null |
| 3095 return}, |
| 3096 Zz:function(){var z=this.u7 |
| 3097 if(z!=null&&this.VP<=0)J.qV(this.uv,this.Ph,z,this.Sg)}, |
| 3098 Ns:function(){var z=this.u7 |
| 3099 if(z!=null)J.GJ(this.uv,this.Ph,z,this.Sg)}}, |
| 3100 dW:{ |
| 3101 "^":"a;Ui", |
| 3102 $isD0:true, |
| 3103 static:{P1:function(a){if(a===window)return a |
| 3104 else return new W.dW(a)}}}}],["dart.dom.svg","dart:svg",,P,{ |
| 3105 "^":"", |
| 3106 Y0:{ |
| 3107 "^":"zp;N:target=", |
| 3108 "%":"SVGAElement"}, |
| 3109 zp:{ |
| 3110 "^":"d5;", |
| 3111 "%":"SVGAltGlyphElement|SVGCircleElement|SVGClipPathElement|SVGDefsElement|SVGEl
lipseElement|SVGForeignObjectElement|SVGGElement|SVGGeometryElement|SVGImageElem
ent|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolylineElement|SVGRectEl
ement|SVGSVGElement|SVGSwitchElement|SVGTSpanElement|SVGTextContentElement|SVGTe
xtElement|SVGTextPathElement|SVGTextPositioningElement|SVGUseElement;SVGGraphics
Element"}, |
| 3112 Lx:{ |
| 3113 "^":"d5;lz:disabled}", |
| 3114 "%":"SVGStyleElement"}, |
| 3115 d5:{ |
| 3116 "^":"cv;", |
| 3117 gVl:function(a){return H.VM(new W.Cq(a,C.T1.Ph,!1),[null])}, |
| 3118 gLm:function(a){return H.VM(new W.Cq(a,C.io.Ph,!1),[null])}, |
| 3119 $isD0:true, |
| 3120 "%":"SVGAltGlyphDefElement|SVGAltGlyphItemElement|SVGAnimateElement|SVGAnimateMo
tionElement|SVGAnimateTransformElement|SVGAnimationElement|SVGComponentTransferF
unctionElement|SVGCursorElement|SVGDescElement|SVGDiscardElement|SVGFEBlendEleme
nt|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFECompositeElement|S
VGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDisplacementMapElemen
t|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAEl
ement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurEle
ment|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyEl
ement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpecularLightingElement|SVG
FESpotLightElement|SVGFETileElement|SVGFETurbulenceElement|SVGFilterElement|SVGF
ontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SV
GFontFaceSrcElement|SVGFontFaceUriElement|SVGGlyphElement|SVGGlyphRefElement|SVG
GradientElement|SVGHKernElement|SVGLinearGradientElement|SVGMPathElement|SVGMark
erElement|SVGMaskElement|SVGMetadataElement|SVGMissingGlyphElement|SVGPatternEle
ment|SVGRadialGradientElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGS
ymbolElement|SVGTitleElement|SVGVKernElement|SVGViewElement;SVGElement"}}],["dar
t.isolate","dart:isolate",,P,{ |
| 3121 "^":"", |
| 3122 IU:{ |
| 3123 "^":"a;", |
| 3124 $isIU:true, |
| 3125 static:{N3:function(){return new H.ku((Math.random()*0x100000000>>>0)+(Math.rand
om()*0x100000000>>>0)*4294967296)}}}}],["dart.math","dart:math",,P,{ |
| 3126 "^":"", |
| 3127 mg:{ |
| 3128 "^":"a;", |
| 3129 j1:function(a){if(typeof a!=="number")return a.E() |
| 3130 if(a<=0||a>4294967296)throw H.b(P.C3("max must be in range 0 < max \u2264 2^32,
was "+a)) |
| 3131 return Math.random()*a>>>0}}}],["dart.typed_data.implementation","dart:_native_t
yped_data",,H,{ |
| 3132 "^":"", |
| 3133 ET:{ |
| 3134 "^":"Gv;", |
| 3135 J2:function(a,b,c){var z=J.Wx(b) |
| 3136 if(z.C(b,0)||z.F(b,c))throw H.b(P.TE(b,0,c)) |
| 3137 else throw H.b(P.u("Invalid list index "+H.d(b)))}, |
| 3138 "%":";ArrayBufferView;b0|Ob|GV|Pg"}, |
| 3139 V6:{ |
| 3140 "^":"Pg;", |
| 3141 gB:function(a){return a.length}, |
| 3142 t:function(a,b){var z=a.length |
| 3143 if(b>>>0!==b||b>=z)this.J2(a,b,z) |
| 3144 return a[b]}, |
| 3145 u:function(a,b,c){var z=a.length |
| 3146 if(b>>>0!==b||b>=z)this.J2(a,b,z) |
| 3147 a[b]=c}, |
| 3148 $iszM:true, |
| 3149 $aszM:function(){return[P.KN]}, |
| 3150 "%":";Uint8Array"}, |
| 3151 b0:{ |
| 3152 "^":"ET;", |
| 3153 gB:function(a){return a.length}, |
| 3154 $isXj:true}, |
| 3155 Pg:{ |
| 3156 "^":"GV;", |
| 3157 $iszM:true, |
| 3158 $aszM:function(){return[P.KN]}}, |
| 3159 Ob:{ |
| 3160 "^":"b0+lG;", |
| 3161 $iszM:true, |
| 3162 $aszM:function(){return[P.KN]}}, |
| 3163 GV:{ |
| 3164 "^":"Ob+SU;"}}],["dart2js._js_primitives","dart:_js_primitives",,H,{ |
| 3165 "^":"", |
| 3166 qw:function(a){if(typeof dartPrint=="function"){dartPrint(a) |
| 3167 return}if(typeof console=="object"&&typeof console.log=="function"){console.log(
a) |
| 3168 return}if(typeof window=="object")return |
| 3169 if(typeof print=="function"){print(a) |
| 3170 return}throw"Unable to print message: "+String(a)}}],["","file:///Users/kathyw/S
pot/one-hour-codelab/web/6-piratebadge/piratebadge.dart",,A,{ |
| 3171 "^":"", |
| 3172 Iq:[function(){var z,y,x,w |
| 3173 z=document.querySelector("#inputName") |
| 3174 y=J.q0(z) |
| 3175 H.VM(new W.xC(0,y.uv,y.Ph,W.VF(A.qC()),y.Sg),[H.Kp(y,0)]).Zz() |
| 3176 y=document.querySelector("#generateButton") |
| 3177 $.Tn=y |
| 3178 y=J.Vg(y) |
| 3179 H.VM(new W.xC(0,y.uv,y.Ph,W.VF(A.OL()),y.Sg),[H.Kp(y,0)]).Zz() |
| 3180 $.xR=document.querySelector("#badgeName") |
| 3181 y=W.Kn("piratenames.json",null,null).ml(A.Wz()).ml(new A.em(z)) |
| 3182 x=$.X3 |
| 3183 w=P.VH(new A.Lb(),x) |
| 3184 x.toString |
| 3185 y.au(H.VM(new P.vs(0,x,null,null,null,null,w,null),[null]))},"$0","eE",0,0,1], |
| 3186 zL:[function(a){var z,y,x |
| 3187 z=H.Go(J.l2(a),"$isMi").value |
| 3188 A.C4(A.ly(null,z)) |
| 3189 y=J.Q7(z) |
| 3190 x=$.Tn |
| 3191 if(y.length===0){J.lo(x,!1) |
| 3192 x.textContent="Aye! Gimme a name!"}else{J.lo(x,!0) |
| 3193 x.textContent="Arrr! Write yer name!"}},"$1","qC",2,0,7], |
| 3194 KL:[function(a){A.C4(A.ly(null,null))},"$1","OL",2,0,7], |
| 3195 C4:function(a){var z |
| 3196 if(a==null)return |
| 3197 z=$.xR |
| 3198 z.textContent=J.FN(a.TK)===!0?"":H.d(a.TK)+" the "+H.d(a.Fj) |
| 3199 window.localStorage.setItem("pirateName",C.xr.KP(P.EF(["f",a.TK,"a",a.Fj],null,n
ull)))}, |
| 3200 dK:function(){var z,y |
| 3201 z=window.localStorage.getItem("pirateName") |
| 3202 if(z!=null){y=new A.QQ(null,null) |
| 3203 y.yZ(z) |
| 3204 return y}else return}, |
| 3205 em:{ |
| 3206 "^":"Tp:11;a", |
| 3207 $1:function(a){J.lo(this.a,!1) |
| 3208 J.lo($.Tn,!1) |
| 3209 A.C4(A.dK())}}, |
| 3210 Lb:{ |
| 3211 "^":"Tp:11;", |
| 3212 $1:function(a){P.JS("Error initializing pirate names: "+H.d(a)) |
| 3213 $.xR.textContent="Arrr! No names."}}, |
| 3214 QQ:{ |
| 3215 "^":"a;TK,Fj", |
| 3216 bu:function(a){return J.FN(this.TK)===!0?"":H.d(this.TK)+" the "+H.d(this.Fj)}, |
| 3217 iF:function(a,b){var z |
| 3218 if(b==null){z=$.Ck() |
| 3219 this.TK=J.UQ(z,$.VY().j1(J.q8(z)))}else this.TK=b |
| 3220 z=$.eg() |
| 3221 this.Fj=J.UQ(z,$.VY().j1(J.q8(z)))}, |
| 3222 yZ:function(a){var z,y |
| 3223 z=C.xr.kV(a) |
| 3224 y=J.U6(z) |
| 3225 this.TK=y.t(z,"f") |
| 3226 this.Fj=y.t(z,"a")}, |
| 3227 static:{"^":"dy,XR,mT",ly:function(a,b){var z=new A.QQ(null,null) |
| 3228 z.iF(a,b) |
| 3229 return z},CE:[function(a){var z,y |
| 3230 z=C.xr.kV(a) |
| 3231 y=J.U6(z) |
| 3232 $.XR=y.t(z,"names") |
| 3233 $.mT=y.t(z,"appellations")},"$1","Wz",2,0,8]}}},1],]) |
| 3234 I.$finishClasses($$,$,null) |
| 3235 $$=null |
| 3236 P.qU.$isqU=true |
| 3237 P.qU.$isa=true |
| 3238 P.KN.$isKN=true |
| 3239 P.KN.$isa=true |
| 3240 P.lf.$isa=true |
| 3241 P.a6.$isa=true |
| 3242 P.a.$isa=true |
| 3243 W.zU.$isa=true |
| 3244 W.ew.$isea=true |
| 3245 W.ew.$isa=true |
| 3246 P.a2.$isa2=true |
| 3247 P.a2.$isa=true |
| 3248 W.Aj.$isea=true |
| 3249 W.Aj.$isa=true |
| 3250 W.ea.$isea=true |
| 3251 W.ea.$isa=true |
| 3252 H.yo.$isa=true |
| 3253 H.IY.$isa=true |
| 3254 H.aX.$isa=true |
| 3255 P.wv.$iswv=true |
| 3256 P.wv.$isa=true |
| 3257 P.mE.$ismE=true |
| 3258 P.mE.$isa=true |
| 3259 P.nP.$isnP=true |
| 3260 P.nP.$isa=true |
| 3261 P.EH.$isEH=true |
| 3262 P.EH.$isa=true |
| 3263 J.Qc=function(a){if(typeof a=="number")return J.P.prototype |
| 3264 if(typeof a=="string")return J.O.prototype |
| 3265 if(a==null)return a |
| 3266 if(!(a instanceof P.a))return J.is.prototype |
| 3267 return a} |
| 3268 J.RE=function(a){if(a==null)return a |
| 3269 if(typeof a!="object")return a |
| 3270 if(a instanceof P.a)return a |
| 3271 return J.ks(a)} |
| 3272 J.U6=function(a){if(typeof a=="string")return J.O.prototype |
| 3273 if(a==null)return a |
| 3274 if(a.constructor==Array)return J.Q.prototype |
| 3275 if(typeof a!="object")return a |
| 3276 if(a instanceof P.a)return a |
| 3277 return J.ks(a)} |
| 3278 J.Wx=function(a){if(typeof a=="number")return J.P.prototype |
| 3279 if(a==null)return a |
| 3280 if(!(a instanceof P.a))return J.is.prototype |
| 3281 return a} |
| 3282 J.rY=function(a){if(typeof a=="string")return J.O.prototype |
| 3283 if(a==null)return a |
| 3284 if(!(a instanceof P.a))return J.is.prototype |
| 3285 return a} |
| 3286 J.w1=function(a){if(a==null)return a |
| 3287 if(a.constructor==Array)return J.Q.prototype |
| 3288 if(typeof a!="object")return a |
| 3289 if(a instanceof P.a)return a |
| 3290 return J.ks(a)} |
| 3291 J.x=function(a){if(typeof a=="number"){if(Math.floor(a)==a)return J.im.prototype |
| 3292 return J.VA.prototype}if(typeof a=="string")return J.O.prototype |
| 3293 if(a==null)return J.YE.prototype |
| 3294 if(typeof a=="boolean")return J.kn.prototype |
| 3295 if(a.constructor==Array)return J.Q.prototype |
| 3296 if(typeof a!="object")return a |
| 3297 if(a instanceof P.a)return a |
| 3298 return J.ks(a)} |
| 3299 J.AG=function(a){return J.x(a).bu(a)} |
| 3300 J.CA=function(a){return J.RE(a).gil(a)} |
| 3301 J.FN=function(a){return J.U6(a).gl0(a)} |
| 3302 J.GJ=function(a,b,c,d){return J.RE(a).Y9(a,b,c,d)} |
| 3303 J.GP=function(a){return J.w1(a).gA(a)} |
| 3304 J.Q7=function(a){return J.rY(a).bS(a)} |
| 3305 J.UQ=function(a,b){if(a.constructor==Array||typeof a=="string"||H.wV(a,a[init.di
spatchPropertyName]))if(b>>>0===b&&b<a.length)return a[b] |
| 3306 return J.U6(a).t(a,b)} |
| 3307 J.V1=function(a,b){return J.w1(a).Rz(a,b)} |
| 3308 J.Vg=function(a){return J.RE(a).gVl(a)} |
| 3309 J.WB=function(a,b){if(typeof a=="number"&&typeof b=="number")return a+b |
| 3310 return J.Qc(a).g(a,b)} |
| 3311 J.de=function(a,b){if(a==null)return b==null |
| 3312 if(typeof a!="object")return b!=null&&a===b |
| 3313 return J.x(a).n(a,b)} |
| 3314 J.jV=function(a,b){return J.RE(a).wR(a,b)} |
| 3315 J.kE=function(a,b){return J.U6(a).tg(a,b)} |
| 3316 J.kH=function(a,b){return J.w1(a).aN(a,b)} |
| 3317 J.kW=function(a,b,c){if((a.constructor==Array||H.wV(a,a[init.dispatchPropertyNam
e]))&&!a.immutable$list&&b>>>0===b&&b<a.length)return a[b]=c |
| 3318 return J.w1(a).u(a,b,c)} |
| 3319 J.l2=function(a){return J.RE(a).gN(a)} |
| 3320 J.lo=function(a,b){return J.RE(a).slz(a,b)} |
| 3321 J.q0=function(a){return J.RE(a).gLm(a)} |
| 3322 J.q8=function(a){return J.U6(a).gB(a)} |
| 3323 J.qA=function(a){return J.w1(a).br(a)} |
| 3324 J.qV=function(a,b,c,d){return J.RE(a).On(a,b,c,d)} |
| 3325 J.up=function(a){return J.RE(a).gkh(a)} |
| 3326 J.v1=function(a){return J.x(a).giO(a)} |
| 3327 J.w8=function(a){return J.RE(a).gkc(a)} |
| 3328 C.W3=W.zU.prototype |
| 3329 C.Nm=J.Q.prototype |
| 3330 C.jn=J.im.prototype |
| 3331 C.CD=J.P.prototype |
| 3332 C.xB=J.O.prototype |
| 3333 C.ZQ=J.iC.prototype |
| 3334 C.vB=J.is.prototype |
| 3335 C.KZ=new H.hJ() |
| 3336 C.pr=new P.mg() |
| 3337 C.NU=new P.R8() |
| 3338 C.ny=new P.a6(0) |
| 3339 C.T1=new W.Fk("click") |
| 3340 C.MD=new W.Fk("error") |
| 3341 C.io=new W.Fk("input") |
| 3342 C.fK=new W.Fk("load") |
| 3343 C.Mc=function(hooks) { |
| 3344 if (typeof dartExperimentalFixupGetTag != "function") return hooks; |
| 3345 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); |
| 3346 } |
| 3347 C.lR=function(hooks) { |
| 3348 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
| 3349 if (userAgent.indexOf("Firefox") == -1) return hooks; |
| 3350 var getTag = hooks.getTag; |
| 3351 var quickMap = { |
| 3352 "BeforeUnloadEvent": "Event", |
| 3353 "DataTransfer": "Clipboard", |
| 3354 "GeoGeolocation": "Geolocation", |
| 3355 "Location": "!Location", |
| 3356 "WorkerMessageEvent": "MessageEvent", |
| 3357 "XMLDocument": "!Document"}; |
| 3358 function getTagFirefox(o) { |
| 3359 var tag = getTag(o); |
| 3360 return quickMap[tag] || tag; |
71 } | 3361 } |
72 }]; | 3362 hooks.getTag = getTagFirefox; |
73 | |
74 $$.BoundClosure$1 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
75 call$1: function(p0) { | |
76 return this.__js_helper$_target.call(this._self, p0); | |
77 }, | |
78 $is_args1: true | |
79 }]; | |
80 | |
81 $$.BoundClosure$2 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
82 call$2: function(p0, p1) { | |
83 return this.__js_helper$_target.call(this._self, p0, p1); | |
84 }, | |
85 call$1: function(p0) { | |
86 return this.call$2(p0, null); | |
87 }, | |
88 $is_args2: true, | |
89 $is_args1: true | |
90 }]; | |
91 | |
92 $$.BoundClosure$0 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
93 call$0: function() { | |
94 return this.__js_helper$_target.call(this._self); | |
95 } | |
96 }]; | |
97 | |
98 $$.Closure$2 = [H, {"": "Closure;call$2,$name", $is_args2: true}]; | |
99 | |
100 $$.Closure$0 = [H, {"": "Closure;call$0,$name"}]; | |
101 | |
102 $$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; | |
103 | |
104 $$.Closure$1 = [H, {"": "Closure;call$1,$name", $is_args1: true}]; | |
105 | |
106 $$.Closure$21 = [P, {"": "Closure;call$2,$name", | |
107 call$1: function(p0) { | |
108 return this.call$2(p0, null); | |
109 }, | |
110 $is_args2: true, | |
111 $is_args1: true | |
112 }]; | |
113 | |
114 (function (reflectionData) { | |
115 function map(x){x={x:x};delete x.x;return x} | |
116 if (!init.libraries) init.libraries = []; | |
117 if (!init.mangledNames) init.mangledNames = map(); | |
118 if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); | |
119 if (!init.statics) init.statics = map(); | |
120 if (!init.interfaces) init.interfaces = map(); | |
121 if (!init.globalFunctions) init.globalFunctions = map(); | |
122 var libraries = init.libraries; | |
123 var mangledNames = init.mangledNames; | |
124 var mangledGlobalNames = init.mangledGlobalNames; | |
125 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
126 var length = reflectionData.length; | |
127 for (var i = 0; i < length; i++) { | |
128 var data = reflectionData[i]; | |
129 var name = data[0]; | |
130 var uri = data[1]; | |
131 var metadata = data[2]; | |
132 var globalObject = data[3]; | |
133 var descriptor = data[4]; | |
134 var isRoot = !!data[5]; | |
135 var fields = descriptor && descriptor[""]; | |
136 var classes = []; | |
137 var functions = []; | |
138 function processStatics(descriptor) { | |
139 for (var property in descriptor) { | |
140 if (!hasOwnProperty.call(descriptor, property)) continue; | |
141 if (property === "") continue; | |
142 var element = descriptor[property]; | |
143 var firstChar = property.substring(0, 1); | |
144 var previousProperty; | |
145 if (firstChar === "+") { | |
146 mangledGlobalNames[previousProperty] = property.substring(1); | |
147 if (descriptor[property] == 1) descriptor[previousProperty].$reflectab
le = 1; | |
148 if (element && element.length) init.interfaces[previousProperty] = ele
ment; | |
149 } else if (firstChar === "@") { | |
150 property = property.substring(1); | |
151 $[property]["@"] = element; | |
152 } else if (firstChar === "*") { | |
153 globalObject[previousProperty].$defaultValues = element; | |
154 var optionalMethods = descriptor.$methodsWithOptionalArguments; | |
155 if (!optionalMethods) { | |
156 descriptor.$methodsWithOptionalArguments = optionalMethods = {} | |
157 } | |
158 optionalMethods[property] = previousProperty; | |
159 } else if (typeof element === "function") { | |
160 globalObject[previousProperty = property] = element; | |
161 functions.push(property); | |
162 init.globalFunctions[property] = element; | |
163 } else { | |
164 previousProperty = property; | |
165 var newDesc = {}; | |
166 var previousProp; | |
167 for (var prop in element) { | |
168 if (!hasOwnProperty.call(element, prop)) continue; | |
169 firstChar = prop.substring(0, 1); | |
170 if (prop === "static") { | |
171 processStatics(init.statics[property] = element[prop]); | |
172 } else if (firstChar === "+") { | |
173 mangledNames[previousProp] = prop.substring(1); | |
174 if (element[prop] == 1) element[previousProp].$reflectable = 1; | |
175 } else if (firstChar === "@" && prop !== "@") { | |
176 newDesc[prop.substring(1)]["@"] = element[prop]; | |
177 } else if (firstChar === "*") { | |
178 newDesc[previousProp].$defaultValues = element[prop]; | |
179 var optionalMethods = newDesc.$methodsWithOptionalArguments; | |
180 if (!optionalMethods) { | |
181 newDesc.$methodsWithOptionalArguments = optionalMethods={} | |
182 } | |
183 optionalMethods[prop] = previousProp; | |
184 } else { | |
185 newDesc[previousProp = prop] = element[prop]; | |
186 } | |
187 } | |
188 $$[property] = [globalObject, newDesc]; | |
189 classes.push(property); | |
190 } | |
191 } | |
192 } | |
193 processStatics(descriptor); | |
194 libraries.push([name, uri, classes, functions, metadata, fields, isRoot, | |
195 globalObject]); | |
196 } | |
197 })([ | |
198 ["_foreign_helper", "dart:_foreign_helper", , H, { | |
199 JS_CONST: {"": "Object;code"}}], | |
200 ["_interceptors", "dart:_interceptors", , J, { | |
201 getInterceptor: function(object) { | |
202 return void 0; | |
203 }, | |
204 | |
205 makeDispatchRecord: function(interceptor, proto, extension, indexability) { | |
206 return {i: interceptor, p: proto, e: extension, x: indexability}; | |
207 }, | |
208 | |
209 getNativeInterceptor: function(object) { | |
210 var record, proto, objectProto; | |
211 record = object[init.dispatchPropertyName]; | |
212 if (record == null) | |
213 if ($.initNativeDispatchFlag == null) { | |
214 H.initNativeDispatch(); | |
215 record = object[init.dispatchPropertyName]; | |
216 } | |
217 if (record != null) { | |
218 proto = record.p; | |
219 if (false === proto) | |
220 return record.i; | |
221 if (true === proto) | |
222 return object; | |
223 objectProto = Object.getPrototypeOf(object); | |
224 if (proto === objectProto) | |
225 return record.i; | |
226 if (record.e === objectProto) | |
227 return proto(object, record); | |
228 } | |
229 record = H.lookupDispatchRecord(object); | |
230 if (record == null) | |
231 return C.C_UnknownJavaScriptObject; | |
232 Object.defineProperty(Object.getPrototypeOf(object), init.dispatchPropertyName
, {value: record, enumerable: false, writable: true, configurable: true}); | |
233 return J.getNativeInterceptor(object); | |
234 }, | |
235 | |
236 Interceptor: {"": "Object;", | |
237 $eq: function(receiver, other) { | |
238 return receiver === other; | |
239 }, | |
240 get$hashCode: function(receiver) { | |
241 return H.Primitives_objectHashCode(receiver); | |
242 }, | |
243 toString$0: function(receiver) { | |
244 return H.Primitives_objectToString(receiver); | |
245 } | |
246 }, | |
247 | |
248 JSBool: {"": "bool/Interceptor;", | |
249 toString$0: function(receiver) { | |
250 return String(receiver); | |
251 }, | |
252 get$hashCode: function(receiver) { | |
253 return receiver ? 519018 : 218159; | |
254 }, | |
255 $isbool: true | |
256 }, | |
257 | |
258 JSNull: {"": "Interceptor;", | |
259 $eq: function(receiver, other) { | |
260 return null == other; | |
261 }, | |
262 toString$0: function(receiver) { | |
263 return "null"; | |
264 }, | |
265 get$hashCode: function(receiver) { | |
266 return 0; | |
267 } | |
268 }, | |
269 | |
270 JavaScriptObject: {"": "Interceptor;", | |
271 get$hashCode: function(_) { | |
272 return 0; | |
273 } | |
274 }, | |
275 | |
276 PlainJavaScriptObject: {"": "JavaScriptObject;"}, | |
277 | |
278 UnknownJavaScriptObject: {"": "JavaScriptObject;"}, | |
279 | |
280 JSArray: {"": "List/Interceptor;", | |
281 forEach$1: function(receiver, f) { | |
282 return H.IterableMixinWorkaround_forEach(receiver, f); | |
283 }, | |
284 elementAt$1: function(receiver, index) { | |
285 if (index < 0 || index >= receiver.length) | |
286 throw H.ioore(receiver, index); | |
287 return receiver[index]; | |
288 }, | |
289 get$isEmpty: function(receiver) { | |
290 return receiver.length === 0; | |
291 }, | |
292 toString$0: function(receiver) { | |
293 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); | |
294 }, | |
295 toList$1$growable: function(receiver, growable) { | |
296 return P.List_List$from(receiver, growable, H.getRuntimeTypeArgument(receive
r, "JSArray", 0)); | |
297 }, | |
298 toList$0: function($receiver) { | |
299 return this.toList$1$growable($receiver, true); | |
300 }, | |
301 get$iterator: function(receiver) { | |
302 return new H.ListIterator(receiver, receiver.length, 0, null); | |
303 }, | |
304 get$hashCode: function(receiver) { | |
305 return H.Primitives_objectHashCode(receiver); | |
306 }, | |
307 get$length: function(receiver) { | |
308 return receiver.length; | |
309 }, | |
310 $index: function(receiver, index) { | |
311 if (typeof index !== "number" || Math.floor(index) !== index) | |
312 throw H.wrapException(new P.ArgumentError(index)); | |
313 if (index >= receiver.length || index < 0) | |
314 throw H.wrapException(P.RangeError$value(index)); | |
315 return receiver[index]; | |
316 }, | |
317 $indexSet: function(receiver, index, value) { | |
318 if (!!receiver.immutable$list) | |
319 H.throwExpression(P.UnsupportedError$("indexed set")); | |
320 if (typeof index !== "number" || Math.floor(index) !== index) | |
321 throw H.wrapException(new P.ArgumentError(index)); | |
322 if (index >= receiver.length || index < 0) | |
323 throw H.wrapException(P.RangeError$value(index)); | |
324 receiver[index] = value; | |
325 }, | |
326 $isList: true, | |
327 $asList: null, | |
328 $isList: true, | |
329 $isEfficientLength: true | |
330 }, | |
331 | |
332 JSMutableArray: {"": "JSArray;", $isJSMutableArray: true, | |
333 $asJSArray: function() { | |
334 return [null]; | |
335 }, | |
336 $asList: function() { | |
337 return [null]; | |
338 } | |
339 }, | |
340 | |
341 JSFixedArray: {"": "JSMutableArray;"}, | |
342 | |
343 JSExtendableArray: {"": "JSMutableArray;"}, | |
344 | |
345 JSNumber: {"": "num/Interceptor;", | |
346 remainder$1: function(receiver, b) { | |
347 return receiver % b; | |
348 }, | |
349 toInt$0: function(receiver) { | |
350 var t1; | |
351 if (receiver >= -2147483648 && receiver <= 2147483647) | |
352 return receiver | 0; | |
353 if (isFinite(receiver)) { | |
354 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); | |
355 return t1 + 0; | |
356 } | |
357 throw H.wrapException(P.UnsupportedError$('' + receiver)); | |
358 }, | |
359 toString$0: function(receiver) { | |
360 if (receiver === 0 && 1 / receiver < 0) | |
361 return "-0.0"; | |
362 else | |
363 return "" + receiver; | |
364 }, | |
365 get$hashCode: function(receiver) { | |
366 return receiver & 0x1FFFFFFF; | |
367 }, | |
368 $tdiv: function(receiver, other) { | |
369 if ((receiver | 0) === receiver && (other | 0) === other && 0 !== other && -
1 !== other) | |
370 return receiver / other | 0; | |
371 else | |
372 return this._slowTdiv$1(receiver, other); | |
373 }, | |
374 _slowTdiv$1: function(receiver, other) { | |
375 return this.toInt$0(receiver / other); | |
376 }, | |
377 $shr: function(receiver, other) { | |
378 if (other < 0) | |
379 throw H.wrapException(new P.ArgumentError(other)); | |
380 if (receiver > 0) { | |
381 if (other > 31) | |
382 return 0; | |
383 return receiver >>> other; | |
384 } | |
385 if (other > 31) | |
386 other = 31; | |
387 return receiver >> other >>> 0; | |
388 }, | |
389 $lt: function(receiver, other) { | |
390 if (typeof other !== "number") | |
391 throw H.wrapException(new P.ArgumentError(other)); | |
392 return receiver < other; | |
393 }, | |
394 $gt: function(receiver, other) { | |
395 if (typeof other !== "number") | |
396 throw H.wrapException(new P.ArgumentError(other)); | |
397 return receiver > other; | |
398 }, | |
399 $ge: function(receiver, other) { | |
400 if (typeof other !== "number") | |
401 throw H.wrapException(new P.ArgumentError(other)); | |
402 return receiver >= other; | |
403 }, | |
404 $isnum: true, | |
405 static: { | |
406 "": "JSNumber__MIN_INT32,JSNumber__MAX_INT32", | |
407 } | 3363 } |
408 | 3364 C.w2=function getTagFallback(o) { |
409 }, | 3365 var constructor = o.constructor; |
410 | 3366 if (typeof constructor == "function") { |
411 JSInt: {"": "int/JSNumber;", $isdouble: true, $isnum: true, $isint: true}, | 3367 var name = constructor.name; |
412 | 3368 if (typeof name == "string" && |
413 JSDouble: {"": "double/JSNumber;", $isdouble: true, $isnum: true}, | 3369 name.length > 2 && |
414 | 3370 name !== "Object" && |
415 JSString: {"": "String/Interceptor;", | 3371 name !== "Function.prototype") { |
416 codeUnitAt$1: function(receiver, index) { | 3372 return name; |
417 if (index < 0) | |
418 throw H.wrapException(P.RangeError$value(index)); | |
419 if (index >= receiver.length) | |
420 throw H.wrapException(P.RangeError$value(index)); | |
421 return receiver.charCodeAt(index); | |
422 }, | |
423 substring$2: function(receiver, startIndex, endIndex) { | |
424 if (endIndex == null) | |
425 endIndex = receiver.length; | |
426 if (typeof endIndex !== "number") | |
427 H.throwExpression(P.ArgumentError$(endIndex)); | |
428 if (startIndex < 0) | |
429 throw H.wrapException(P.RangeError$value(startIndex)); | |
430 if (typeof endIndex !== "number") | |
431 throw H.iae(endIndex); | |
432 if (startIndex > endIndex) | |
433 throw H.wrapException(P.RangeError$value(startIndex)); | |
434 if (endIndex > receiver.length) | |
435 throw H.wrapException(P.RangeError$value(endIndex)); | |
436 return receiver.substring(startIndex, endIndex); | |
437 }, | |
438 substring$1: function($receiver, startIndex) { | |
439 return this.substring$2($receiver, startIndex, null); | |
440 }, | |
441 trim$0: function(receiver) { | |
442 var endIndex, startIndex, codeUnit, endIndex0, endIndex1; | |
443 for (endIndex = receiver.length, startIndex = 0; startIndex < endIndex;) { | |
444 if (startIndex >= endIndex) | |
445 H.throwExpression(P.RangeError$value(startIndex)); | |
446 codeUnit = receiver.charCodeAt(startIndex); | |
447 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni
t)) | |
448 ++startIndex; | |
449 else | |
450 break; | |
451 } | |
452 if (startIndex === endIndex) | |
453 return ""; | |
454 for (endIndex0 = endIndex; true; endIndex0 = endIndex1) { | |
455 endIndex1 = endIndex0 - 1; | |
456 if (endIndex1 < 0) | |
457 H.throwExpression(P.RangeError$value(endIndex1)); | |
458 if (endIndex1 >= endIndex) | |
459 H.throwExpression(P.RangeError$value(endIndex1)); | |
460 codeUnit = receiver.charCodeAt(endIndex1); | |
461 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni
t)) | |
462 ; | |
463 else | |
464 break; | |
465 } | |
466 if (startIndex === 0 && endIndex0 === endIndex) | |
467 return receiver; | |
468 return receiver.substring(startIndex, endIndex0); | |
469 }, | |
470 get$isEmpty: function(receiver) { | |
471 return receiver.length === 0; | |
472 }, | |
473 toString$0: function(receiver) { | |
474 return receiver; | |
475 }, | |
476 get$hashCode: function(receiver) { | |
477 var t1, hash, i; | |
478 for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { | |
479 hash = 536870911 & hash + receiver.charCodeAt(i); | |
480 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); | |
481 hash ^= hash >> 6; | |
482 } | |
483 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); | |
484 hash ^= hash >> 11; | |
485 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); | |
486 }, | |
487 get$length: function(receiver) { | |
488 return receiver.length; | |
489 }, | |
490 $index: function(receiver, index) { | |
491 if (typeof index !== "number" || Math.floor(index) !== index) | |
492 throw H.wrapException(new P.ArgumentError(index)); | |
493 if (index >= receiver.length || index < 0) | |
494 throw H.wrapException(P.RangeError$value(index)); | |
495 return receiver[index]; | |
496 }, | |
497 $isString: true, | |
498 static: { | |
499 JSString__isWhitespace: function(codeUnit) { | |
500 if (codeUnit < 256) | |
501 switch (codeUnit) { | |
502 case 9: | |
503 case 10: | |
504 case 11: | |
505 case 12: | |
506 case 13: | |
507 case 32: | |
508 case 133: | |
509 case 160: | |
510 return true; | |
511 default: | |
512 return false; | |
513 } | |
514 switch (codeUnit) { | |
515 case 5760: | |
516 case 6158: | |
517 case 8192: | |
518 case 8193: | |
519 case 8194: | |
520 case 8195: | |
521 case 8196: | |
522 case 8197: | |
523 case 8198: | |
524 case 8199: | |
525 case 8200: | |
526 case 8201: | |
527 case 8202: | |
528 case 8232: | |
529 case 8233: | |
530 case 8239: | |
531 case 8287: | |
532 case 12288: | |
533 case 65279: | |
534 return true; | |
535 default: | |
536 return false; | |
537 } | |
538 }} | |
539 | |
540 }}], | |
541 ["_isolate_helper", "dart:_isolate_helper", , H, { | |
542 _callInIsolate: function(isolate, $function) { | |
543 var result = isolate.eval$1($function); | |
544 $globalState.topEventLoop.run$0(); | |
545 return result; | |
546 }, | |
547 | |
548 startRootIsolate: function(entry) { | |
549 var rootContext, t1; | |
550 $globalState = H._Manager$(entry); | |
551 if ($globalState.isWorker === true) | |
552 return; | |
553 rootContext = H._IsolateContext$(); | |
554 $globalState.rootContext = rootContext; | |
555 $globalState.currentContext = rootContext; | |
556 t1 = J.getInterceptor(entry); | |
557 if (!!t1.$is_args1) | |
558 rootContext.eval$1(new H.startRootIsolate_closure(entry)); | |
559 else if (!!t1.$is_args2) | |
560 rootContext.eval$1(new H.startRootIsolate_closure0(entry)); | |
561 else | |
562 rootContext.eval$1(entry); | |
563 $globalState.topEventLoop.run$0(); | |
564 }, | |
565 | |
566 IsolateNatives_computeThisScript: function() { | |
567 var currentScript = init.currentScript; | |
568 if (currentScript != null) | |
569 return String(currentScript.src); | |
570 if (typeof version == "function" && typeof os == "object" && "system" in os) | |
571 return H.IsolateNatives_computeThisScriptD8(); | |
572 if (typeof version == "function" && typeof system == "function") | |
573 return thisFilename(); | |
574 return; | |
575 }, | |
576 | |
577 IsolateNatives_computeThisScriptD8: function() { | |
578 var stack, matches; | |
579 stack = new Error().stack; | |
580 if (stack == null) { | |
581 stack = (function() {try { throw new Error() } catch(e) { return e.stack }})
(); | |
582 if (stack == null) | |
583 throw H.wrapException(P.UnsupportedError$("No stack trace")); | |
584 } | |
585 matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"))
; | |
586 if (matches != null) | |
587 return matches[1]; | |
588 matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m")); | |
589 if (matches != null) | |
590 return matches[1]; | |
591 throw H.wrapException(P.UnsupportedError$("Cannot extract URI from \"" + stack
+ "\"")); | |
592 }, | |
593 | |
594 IsolateNatives__processWorkerMessage: function(sender, e) { | |
595 var msg, t1, functionName, entryPoint, args, message, isSpawnUri, replyTo, con
text, t2; | |
596 msg = H._deserializeMessage(e.data); | |
597 t1 = J.getInterceptor$asx(msg); | |
598 switch (t1.$index(msg, "command")) { | |
599 case "start": | |
600 $globalState.currentManagerId = t1.$index(msg, "id"); | |
601 functionName = t1.$index(msg, "functionName"); | |
602 entryPoint = functionName == null ? $globalState.entry : init.globalFuncti
ons[functionName]; | |
603 args = t1.$index(msg, "args"); | |
604 message = H._deserializeMessage(t1.$index(msg, "msg")); | |
605 isSpawnUri = t1.$index(msg, "isSpawnUri"); | |
606 replyTo = H._deserializeMessage(t1.$index(msg, "replyTo")); | |
607 context = H._IsolateContext$(); | |
608 $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H
.IsolateNatives__processWorkerMessage_closure(entryPoint, args, message, isSpawn
Uri, replyTo), "worker-start")); | |
609 $globalState.currentContext = context; | |
610 $globalState.topEventLoop.run$0(); | |
611 break; | |
612 case "spawn-worker": | |
613 H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(ms
g, "uri"), t1.$index(msg, "args"), t1.$index(msg, "msg"), t1.$index(msg, "isSpaw
nUri"), t1.$index(msg, "replyPort")); | |
614 break; | |
615 case "message": | |
616 if (t1.$index(msg, "port") != null) | |
617 J.send$1$x(t1.$index(msg, "port"), t1.$index(msg, "msg")); | |
618 $globalState.topEventLoop.run$0(); | |
619 break; | |
620 case "close": | |
621 t1 = $globalState.managers; | |
622 t2 = $.get$IsolateNatives_workerIds(); | |
623 t1.remove$1(t1, t2.$index(t2, sender)); | |
624 sender.terminate(); | |
625 $globalState.topEventLoop.run$0(); | |
626 break; | |
627 case "log": | |
628 H.IsolateNatives__log(t1.$index(msg, "msg")); | |
629 break; | |
630 case "print": | |
631 if ($globalState.isWorker === true) { | |
632 t1 = $globalState.mainManager; | |
633 t2 = H._serializeMessage(H.fillLiteralMap(["command", "print", "msg", ms
g], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | |
634 t1.toString; | |
635 self.postMessage(t2); | |
636 } else | |
637 P.print(t1.$index(msg, "msg")); | |
638 break; | |
639 case "error": | |
640 throw H.wrapException(t1.$index(msg, "msg")); | |
641 default: | |
642 } | |
643 }, | |
644 | |
645 IsolateNatives__log: function(msg) { | |
646 var trace, t1, t2, exception; | |
647 if ($globalState.isWorker === true) { | |
648 t1 = $globalState.mainManager; | |
649 t2 = H._serializeMessage(H.fillLiteralMap(["command", "log", "msg", msg], P.
LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | |
650 t1.toString; | |
651 self.postMessage(t2); | |
652 } else | |
653 try { | |
654 $.get$globalThis().console.log(msg); | |
655 } catch (exception) { | |
656 H.unwrapException(exception); | |
657 trace = new H._StackTrace(exception, null); | |
658 throw H.wrapException(P.Exception_Exception(trace)); | |
659 } | |
660 | |
661 }, | |
662 | |
663 IsolateNatives__startIsolate: function(topLevel, args, message, isSpawnUri, repl
yTo) { | |
664 var t1; | |
665 H.Primitives_initializeStatics($globalState.currentContext.id); | |
666 $.lazyPort = H.ReceivePortImpl$(); | |
667 t1 = $.lazyPort; | |
668 t1.toString; | |
669 J.send$1$x(replyTo, ["spawned", new H._NativeJsSendPort(t1, $globalState.curre
ntContext.id)]); | |
670 if (isSpawnUri !== true) | |
671 topLevel.call$1(message); | |
672 else { | |
673 t1 = J.getInterceptor(topLevel); | |
674 if (!!t1.$is_args2) | |
675 topLevel.call$2(args, message); | |
676 else if (!!t1.$is_args1) | |
677 topLevel.call$1(args); | |
678 else | |
679 topLevel.call$0(); | |
680 } | |
681 }, | |
682 | |
683 IsolateNatives__spawnWorker: function(functionName, uri, args, message, isSpawnU
ri, replyPort) { | |
684 var worker, t1, workerId; | |
685 if (uri == null) | |
686 uri = $.get$IsolateNatives_thisScript(); | |
687 worker = new Worker(uri); | |
688 worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(worker, e); }; | |
689 t1 = $globalState; | |
690 workerId = t1.nextManagerId; | |
691 t1.nextManagerId = workerId + 1; | |
692 t1 = $.get$IsolateNatives_workerIds(); | |
693 t1.$indexSet(t1, worker, workerId); | |
694 t1 = $globalState.managers; | |
695 t1.$indexSet(t1, workerId, worker); | |
696 worker.postMessage(H._serializeMessage(H.fillLiteralMap(["command", "start", "
id", workerId, "replyTo", H._serializeMessage(replyPort), "args", args, "msg", H
._serializeMessage(message), "isSpawnUri", isSpawnUri, "functionName", functionN
ame], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)))); | |
697 }, | |
698 | |
699 _waitForPendingPorts: function(message, callback) { | |
700 var finder = H._PendingSendPortFinder$(); | |
701 finder.traverse$1(message); | |
702 P.Future_wait(finder.ports).then$1(new H._waitForPendingPorts_closure(callback
)); | |
703 }, | |
704 | |
705 _serializeMessage: function(message) { | |
706 var t1; | |
707 if ($globalState.supportsWorkers === true) { | |
708 t1 = new H._JsSerializer(0, new H._MessageTraverserVisitedMap()); | |
709 t1._visited = new H._JsVisitedMap(null); | |
710 return t1.traverse$1(message); | |
711 } else { | |
712 t1 = new H._JsCopier(new H._MessageTraverserVisitedMap()); | |
713 t1._visited = new H._JsVisitedMap(null); | |
714 return t1.traverse$1(message); | |
715 } | |
716 }, | |
717 | |
718 _deserializeMessage: function(message) { | |
719 if ($globalState.supportsWorkers === true) | |
720 return new H._JsDeserializer(null).deserialize$1(message); | |
721 else | |
722 return message; | |
723 }, | |
724 | |
725 _MessageTraverser_isPrimitive: function(x) { | |
726 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | |
727 }, | |
728 | |
729 _Deserializer_isPrimitive: function(x) { | |
730 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | |
731 }, | |
732 | |
733 startRootIsolate_closure: {"": "Closure;entry_0", | |
734 call$0: function() { | |
735 this.entry_0.call$1([]); | |
736 } | |
737 }, | |
738 | |
739 startRootIsolate_closure0: {"": "Closure;entry_1", | |
740 call$0: function() { | |
741 this.entry_1.call$2([], null); | |
742 } | |
743 }, | |
744 | |
745 _Manager: {"": "Object;nextIsolateId,currentManagerId,nextManagerId,currentConte
xt,rootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,ma
inManager,managers,entry", | |
746 _nativeDetectEnvironment$0: function() { | |
747 var t1, t2; | |
748 t1 = $.get$globalWindow() == null; | |
749 t2 = $.get$globalWorker(); | |
750 this.isWorker = t1 && $.get$globalPostMessageDefined() === true; | |
751 if (this.isWorker !== true) | |
752 t2 = t2 != null && $.get$IsolateNatives_thisScript() != null; | |
753 else | |
754 t2 = true; | |
755 this.supportsWorkers = t2; | |
756 this.fromCommandLine = t1 && this.isWorker !== true; | |
757 }, | |
758 _nativeInitWorkerMessageHandler$0: function() { | |
759 var $function = function (e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(this.mainManager, e); }; | |
760 $.get$globalThis().onmessage = $function; | |
761 $.get$globalThis().dartPrint = function (object) {}; | |
762 }, | |
763 _Manager$1: function(entry) { | |
764 this._nativeDetectEnvironment$0(); | |
765 this.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0)
; | |
766 this.isolates = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, H._
IsolateContext); | |
767 this.managers = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, nul
l); | |
768 if (this.isWorker === true) { | |
769 this.mainManager = new H._MainManagerStub(); | |
770 this._nativeInitWorkerMessageHandler$0(); | |
771 } | |
772 }, | |
773 static: { | |
774 _Manager$: function(entry) { | |
775 var t1 = new H._Manager(0, 0, 1, null, null, null, null, null, null, null, nul
l, null, entry); | |
776 t1._Manager$1(entry); | |
777 return t1; | |
778 }} | |
779 | |
780 }, | |
781 | |
782 _IsolateContext: {"": "Object;id,ports,isolateStatics<", | |
783 eval$1: function(code) { | |
784 var old, result; | |
785 old = $globalState.currentContext; | |
786 $globalState.currentContext = this; | |
787 $ = this.isolateStatics; | |
788 result = null; | |
789 try { | |
790 result = code.call$0(); | |
791 } finally { | |
792 $globalState.currentContext = old; | |
793 if (old != null) | |
794 $ = old.get$isolateStatics(); | |
795 } | |
796 return result; | |
797 }, | |
798 lookup$1: function(portId) { | |
799 var t1 = this.ports; | |
800 return t1.$index(t1, portId); | |
801 }, | |
802 register$2: function(_, portId, port) { | |
803 var t1 = this.ports; | |
804 if (t1.containsKey$1(t1, portId)) | |
805 throw H.wrapException(P.Exception_Exception("Registry: ports must be regis
tered only once.")); | |
806 t1 = this.ports; | |
807 t1.$indexSet(t1, portId, port); | |
808 t1 = $globalState.isolates; | |
809 t1.$indexSet(t1, this.id, this); | |
810 }, | |
811 unregister$1: function(portId) { | |
812 var t1 = this.ports; | |
813 t1.remove$1(t1, portId); | |
814 if (this.ports._collection$_length === 0) { | |
815 t1 = $globalState.isolates; | |
816 t1.remove$1(t1, this.id); | |
817 } | |
818 }, | |
819 _IsolateContext$0: function() { | |
820 var t1, t2; | |
821 t1 = $globalState; | |
822 t2 = t1.nextIsolateId; | |
823 t1.nextIsolateId = t2 + 1; | |
824 this.id = t2; | |
825 this.ports = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, P.Rece
ivePort); | |
826 this.isolateStatics = new Isolate(); | |
827 }, | |
828 static: { | |
829 _IsolateContext$: function() { | |
830 var t1 = new H._IsolateContext(null, null, null); | |
831 t1._IsolateContext$0(); | |
832 return t1; | |
833 }} | |
834 | |
835 }, | |
836 | |
837 _EventLoop: {"": "Object;events,activeTimerCount", | |
838 dequeue$0: function() { | |
839 var t1 = this.events; | |
840 if (t1._head === t1._tail) | |
841 return; | |
842 return t1.removeFirst$0(); | |
843 }, | |
844 checkOpenReceivePortsFromCommandLine$0: function() { | |
845 if ($globalState.rootContext != null) { | |
846 var t1 = $globalState.isolates; | |
847 t1 = t1.containsKey$1(t1, $globalState.rootContext.id) && $globalState.fro
mCommandLine === true && $globalState.rootContext.ports._collection$_length ===
0; | |
848 } else | |
849 t1 = false; | |
850 if (t1) | |
851 throw H.wrapException(P.Exception_Exception("Program exited with open Rece
ivePorts.")); | |
852 }, | |
853 runIteration$0: function() { | |
854 var $event, t1, t2; | |
855 $event = this.dequeue$0(); | |
856 if ($event == null) { | |
857 this.checkOpenReceivePortsFromCommandLine$0(); | |
858 t1 = $globalState; | |
859 if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.to
pEventLoop.activeTimerCount === 0) { | |
860 t1 = t1.mainManager; | |
861 t2 = H._serializeMessage(H.fillLiteralMap(["command", "close"], P.Linked
HashMap_LinkedHashMap(null, null, null, null, null))); | |
862 t1.toString; | |
863 self.postMessage(t2); | |
864 } | |
865 return false; | |
866 } | |
867 $event.process$0(); | |
868 return true; | |
869 }, | |
870 _runHelper$0: function() { | |
871 if ($.get$globalWindow() != null) | |
872 new H._EventLoop__runHelper_next(this).call$0(); | |
873 else | |
874 for (; this.runIteration$0();) | |
875 ; | |
876 }, | |
877 run$0: function() { | |
878 var e, trace, exception, t1, t2; | |
879 if ($globalState.isWorker !== true) | |
880 this._runHelper$0(); | |
881 else | |
882 try { | |
883 this._runHelper$0(); | |
884 } catch (exception) { | |
885 t1 = H.unwrapException(exception); | |
886 e = t1; | |
887 trace = new H._StackTrace(exception, null); | |
888 t1 = $globalState.mainManager; | |
889 t2 = H._serializeMessage(H.fillLiteralMap(["command", "error", "msg", H.
S(e) + "\n" + H.S(trace)], P.LinkedHashMap_LinkedHashMap(null, null, null, null,
null))); | |
890 t1.toString; | |
891 self.postMessage(t2); | |
892 } | |
893 | |
894 } | |
895 }, | |
896 | |
897 _EventLoop__runHelper_next: {"": "Closure;this_0", | |
898 call$0: function() { | |
899 if (!this.this_0.runIteration$0()) | |
900 return; | |
901 P.Timer_Timer(C.Duration_0, this); | |
902 } | |
903 }, | |
904 | |
905 _IsolateEvent: {"": "Object;isolate,fn,message", | |
906 process$0: function() { | |
907 this.isolate.eval$1(this.fn); | |
908 } | |
909 }, | |
910 | |
911 _MainManagerStub: {"": "Object;"}, | |
912 | |
913 IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,args_1,
message_2,isSpawnUri_3,replyTo_4", | |
914 call$0: function() { | |
915 H.IsolateNatives__startIsolate(this.entryPoint_0, this.args_1, this.message_
2, this.isSpawnUri_3, this.replyTo_4); | |
916 } | |
917 }, | |
918 | |
919 _BaseSendPort: {"": "Object;", $isSendPort: true}, | |
920 | |
921 _NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId", | |
922 send$2: function(_, message, replyTo) { | |
923 H._waitForPendingPorts(message, new H._NativeJsSendPort_send_closure(this, m
essage)); | |
924 }, | |
925 send$1: function($receiver, message) { | |
926 return this.send$2($receiver, message, null); | |
927 }, | |
928 $eq: function(_, other) { | |
929 var t1; | |
930 if (other == null) | |
931 return false; | |
932 t1 = J.getInterceptor(other); | |
933 return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendP
ort && J.$eq(this._receivePort, other._receivePort); | |
934 }, | |
935 get$hashCode: function(_) { | |
936 return this._receivePort.get$_id(); | |
937 }, | |
938 $is_NativeJsSendPort: true, | |
939 $isSendPort: true | |
940 }, | |
941 | |
942 _NativeJsSendPort_send_closure: {"": "Closure;this_1,message_2", | |
943 call$0: function() { | |
944 var t1, t2, t3, t4, isolate, shouldSerialize, msg; | |
945 t1 = {}; | |
946 t2 = $globalState.isolates; | |
947 t3 = this.this_1; | |
948 t4 = t3._isolateId; | |
949 isolate = t2.$index(t2, t4); | |
950 if (isolate == null) | |
951 return; | |
952 if ((t3._receivePort.get$_controller()._state & 4) !== 0) | |
953 return; | |
954 shouldSerialize = $globalState.currentContext != null && $globalState.curren
tContext.id !== t4; | |
955 msg = this.message_2; | |
956 t1.msg_0 = msg; | |
957 if (shouldSerialize) | |
958 t1.msg_0 = H._serializeMessage(t1.msg_0); | |
959 t2 = $globalState.topEventLoop; | |
960 t4 = "receive " + H.S(msg); | |
961 t2.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__
closure(t1, t3, shouldSerialize), t4)); | |
962 } | |
963 }, | |
964 | |
965 _NativeJsSendPort_send__closure: {"": "Closure;box_0,this_3,shouldSerialize_4", | |
966 call$0: function() { | |
967 var t1, t2; | |
968 t1 = this.this_3._receivePort; | |
969 if ((t1.get$_controller()._state & 4) === 0) { | |
970 if (this.shouldSerialize_4) { | |
971 t2 = this.box_0; | |
972 t2.msg_0 = H._deserializeMessage(t2.msg_0); | |
973 } | |
974 t1 = t1.get$_controller(); | |
975 t2 = this.box_0.msg_0; | |
976 if (t1._state >= 4) | |
977 H.throwExpression(t1._badEventState$0()); | |
978 t1._async$_add$1(t2); | |
979 } | 3373 } |
980 } | 3374 } |
981 }, | 3375 var s = Object.prototype.toString.call(o); |
| 3376 return s.substring(8, s.length - 1); |
| 3377 } |
| 3378 C.XQ=function(hooks) { return hooks; } |
982 | 3379 |
983 _WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId", | 3380 C.ur=function(getTagFallback) { |
984 send$2: function(_, message, replyTo) { | 3381 return function(hooks) { |
985 H._waitForPendingPorts(message, new H._WorkerSendPort_send_closure(this, mes
sage)); | 3382 if (typeof navigator != "object") return hooks; |
986 }, | 3383 var ua = navigator.userAgent; |
987 send$1: function($receiver, message) { | 3384 if (ua.indexOf("DumpRenderTree") >= 0) return hooks; |
988 return this.send$2($receiver, message, null); | 3385 if (ua.indexOf("Chrome") >= 0) { |
989 }, | 3386 function confirm(p) { |
990 $eq: function(_, other) { | 3387 return typeof window == "object" && window[p] && window[p].name == p; |
991 var t1; | 3388 } |
992 if (other == null) | 3389 if (confirm("Window") && confirm("HTMLElement")) return hooks; |
993 return false; | 3390 } |
994 t1 = J.getInterceptor(other); | 3391 hooks.getTag = getTagFallback; |
995 if (typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort) | 3392 }; |
996 t1 = J.$eq(this._workerId, other._workerId) && J.$eq(this._isolateId, othe
r._isolateId) && J.$eq(this._receivePortId, other._receivePortId); | 3393 } |
997 else | 3394 C.MA=function() { |
998 t1 = false; | 3395 function typeNameInChrome(o) { |
999 return t1; | 3396 var name = o.constructor.name; |
1000 }, | 3397 if (name) return name; |
1001 get$hashCode: function(_) { | 3398 var s = Object.prototype.toString.call(o); |
1002 var t1, t2, t3; | 3399 return s.substring(8, s.length - 1); |
1003 t1 = this._workerId; | 3400 } |
1004 if (typeof t1 !== "number") | 3401 function getUnknownTag(object, tag) { |
1005 throw t1.$shl(); | 3402 if (/^HTML[A-Z].*Element$/.test(tag)) { |
1006 t2 = this._isolateId; | 3403 var name = Object.prototype.toString.call(object); |
1007 if (typeof t2 !== "number") | 3404 if (name == "[object Object]") return null; |
1008 throw t2.$shl(); | 3405 return "HTMLElement"; |
1009 t3 = this._receivePortId; | |
1010 if (typeof t3 !== "number") | |
1011 throw H.iae(t3); | |
1012 return (t1 << 16 ^ t2 << 8 ^ t3) >>> 0; | |
1013 }, | |
1014 $is_WorkerSendPort: true, | |
1015 $isSendPort: true | |
1016 }, | |
1017 | |
1018 _WorkerSendPort_send_closure: {"": "Closure;this_0,message_1", | |
1019 call$0: function() { | |
1020 var t1, workerMessage, t2, manager; | |
1021 t1 = this.this_0; | |
1022 workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message",
"port", t1, "msg", this.message_1], P.LinkedHashMap_LinkedHashMap(null, null, nu
ll, null, null))); | |
1023 if ($globalState.isWorker === true) { | |
1024 $globalState.mainManager.toString; | |
1025 self.postMessage(workerMessage); | |
1026 } else { | |
1027 t2 = $globalState.managers; | |
1028 manager = t2.$index(t2, t1._workerId); | |
1029 if (manager != null) | |
1030 manager.postMessage(workerMessage); | |
1031 } | 3406 } |
1032 } | 3407 } |
1033 }, | 3408 function getUnknownTagGenericBrowser(object, tag) { |
| 3409 if (object instanceof HTMLElement) return "HTMLElement"; |
| 3410 return getUnknownTag(object, tag); |
| 3411 } |
| 3412 function prototypeForTag(tag) { |
| 3413 if (typeof window == "undefined") return null; |
| 3414 if (typeof window[tag] == "undefined") return null; |
| 3415 var constructor = window[tag]; |
| 3416 if (typeof constructor != "function") return null; |
| 3417 return constructor.prototype; |
| 3418 } |
| 3419 function discriminator(tag) { return null; } |
| 3420 var isBrowser = typeof navigator == "object"; |
| 3421 return { |
| 3422 getTag: typeNameInChrome, |
| 3423 getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, |
| 3424 prototypeForTag: prototypeForTag, |
| 3425 discriminator: discriminator }; |
| 3426 } |
| 3427 C.M1=function(hooks) { |
| 3428 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
| 3429 if (userAgent.indexOf("Trident/") == -1) return hooks; |
| 3430 var getTag = hooks.getTag; |
| 3431 var quickMap = { |
| 3432 "BeforeUnloadEvent": "Event", |
| 3433 "DataTransfer": "Clipboard", |
| 3434 "HTMLDDElement": "HTMLElement", |
| 3435 "HTMLDTElement": "HTMLElement", |
| 3436 "HTMLPhraseElement": "HTMLElement", |
| 3437 "Position": "Geoposition" |
| 3438 }; |
| 3439 function getTagIE(o) { |
| 3440 var tag = getTag(o); |
| 3441 var newTag = quickMap[tag]; |
| 3442 if (newTag) return newTag; |
| 3443 if (tag == "Object") { |
| 3444 if (window.DataView && (o instanceof window.DataView)) return "DataView"; |
| 3445 } |
| 3446 return tag; |
| 3447 } |
| 3448 function prototypeForTagIE(tag) { |
| 3449 var constructor = window[tag]; |
| 3450 if (constructor == null) return null; |
| 3451 return constructor.prototype; |
| 3452 } |
| 3453 hooks.getTag = getTagIE; |
| 3454 hooks.prototypeForTag = prototypeForTagIE; |
| 3455 } |
| 3456 C.hQ=function(hooks) { |
| 3457 var getTag = hooks.getTag; |
| 3458 var prototypeForTag = hooks.prototypeForTag; |
| 3459 function getTagFixed(o) { |
| 3460 var tag = getTag(o); |
| 3461 if (tag == "Document") { |
| 3462 if (!!o.xmlVersion) return "!Document"; |
| 3463 return "!HTMLDocument"; |
| 3464 } |
| 3465 return tag; |
| 3466 } |
| 3467 function prototypeForTagFixed(tag) { |
| 3468 if (tag == "Document") return null; |
| 3469 return prototypeForTag(tag); |
| 3470 } |
| 3471 hooks.getTag = getTagFixed; |
| 3472 hooks.prototypeForTag = prototypeForTagFixed; |
| 3473 } |
| 3474 C.xr=new P.by(null,null) |
| 3475 C.A3=new P.QM(null) |
| 3476 C.cb=new P.oj(null,null) |
| 3477 $.libraries_to_load = {} |
| 3478 $.te="$cachedFunction" |
| 3479 $.eb="$cachedInvocation" |
| 3480 $.yj=0 |
| 3481 $.mJ=null |
| 3482 $.P4=null |
| 3483 $.UA=!1 |
| 3484 $.NF=null |
| 3485 $.TX=null |
| 3486 $.x7=null |
| 3487 $.nw=null |
| 3488 $.vv=null |
| 3489 $.Bv=null |
| 3490 $.oK=null |
| 3491 $.S6=null |
| 3492 $.k8=null |
| 3493 $.X3=C.NU |
| 3494 $.Ss=0 |
| 3495 $.Qz=null |
| 3496 $.PN=null |
| 3497 $.Tn=null |
| 3498 $.xR=null |
| 3499 I.$lazy($,"globalThis","DX","jk",function(){return function(){return this}()}) |
| 3500 I.$lazy($,"globalWindow","cO","C5",function(){return $.jk().window}) |
| 3501 I.$lazy($,"globalWorker","u9","vy",function(){return $.jk().Worker}) |
| 3502 I.$lazy($,"globalPostMessageDefined","Wd","Iz",function(){return $.jk().postMess
age!==void 0}) |
| 3503 I.$lazy($,"thisScript","Kb","Rs",function(){return H.Td()}) |
| 3504 I.$lazy($,"workerIds","rS","p6",function(){return new P.kM(null)}) |
| 3505 I.$lazy($,"noSuchMethodPattern","lm","WD",function(){return H.cM(H.S7({toString:
function(){return"$receiver$"}}))}) |
| 3506 I.$lazy($,"notClosurePattern","k1","OI",function(){return H.cM(H.S7({$method$:nu
ll,toString:function(){return"$receiver$"}}))}) |
| 3507 I.$lazy($,"nullCallPattern","Re","PH",function(){return H.cM(H.S7(null))}) |
| 3508 I.$lazy($,"nullLiteralCallPattern","fN","D1",function(){return H.cM(function(){v
ar $argumentsExpr$='$arguments$' |
| 3509 try{null.$method$($argumentsExpr$)}catch(z){return z.message}}())}) |
| 3510 I.$lazy($,"undefinedCallPattern","qi","rx",function(){return H.cM(H.S7(void 0))}
) |
| 3511 I.$lazy($,"undefinedLiteralCallPattern","rZ","Y9",function(){return H.cM(functio
n(){var $argumentsExpr$='$arguments$' |
| 3512 try{(void 0).$method$($argumentsExpr$)}catch(z){return z.message}}())}) |
| 3513 I.$lazy($,"nullPropertyPattern","BX","zO",function(){return H.cM(H.Mj(null))}) |
| 3514 I.$lazy($,"nullLiteralPropertyPattern","tt","Bi",function(){return H.cM(function
(){try{null.$method$}catch(z){return z.message}}())}) |
| 3515 I.$lazy($,"undefinedPropertyPattern","dt","eA",function(){return H.cM(H.Mj(void
0))}) |
| 3516 I.$lazy($,"undefinedLiteralPropertyPattern","A7","ko",function(){return H.cM(fun
ction(){try{(void 0).$method$}catch(z){return z.message}}())}) |
| 3517 I.$lazy($,"_toStringList","Ml","RM",function(){return[]}) |
| 3518 I.$lazy($,"scheduleImmediateClosure","lI","ej",function(){return P.Oj()}) |
| 3519 I.$lazy($,"_toStringVisiting","xg","xb",function(){return P.yv(null)}) |
| 3520 I.$lazy($,"_toStringList","yu","tw",function(){return[]}) |
| 3521 I.$lazy($,"indexGen","dy","VY",function(){return C.pr}) |
| 3522 I.$lazy($,"names","XR","Ck",function(){return[]}) |
| 3523 I.$lazy($,"appellations","mT","eg",function(){return[]}) |
1034 | 3524 |
1035 ReceivePortImpl: {"": "Stream;_id<,_controller<", | 3525 init.functionAliases={} |
1036 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | 3526 init.metadata=[{func:"n9",void:true,args:[{func:"X0",void:true}]},{func:"X0",voi
d:true},{func:"Gl",ret:P.a2,args:[null,null]},{func:"bX",ret:P.KN,args:[null]},{
func:"uJ",ret:P.a,args:[null]},{func:"E0",ret:P.a2,args:[P.a,P.a]},{func:"ZY",re
t:P.KN,args:[P.a]},{func:"WW",void:true,args:[W.ea]},{func:"uO",args:[P.qU]},{fu
nc:"NT"},{func:"bh",args:[null,null]},{func:"aB",args:[null]},{func:"TS",args:[n
ull,P.qU]},{func:"uu",void:true,args:[P.a],opt:[P.mE]},,{func:"Vx",void:true,arg
s:[null],opt:[P.mE]},{func:"BG",args:[null],opt:[null]},{func:"Uf",ret:P.a2},{fu
nc:"bb",args:[null,P.mE]},{func:"lv",args:[P.wv,null]},{func:"Pt",ret:P.qU,args:
[P.KN]},];$=null |
1037 var t1 = this._controller; | 3527 I = I.$finishIsolateConstructor(I) |
1038 t1.toString; | 3528 $=new I() |
1039 t1 = new P._ControllerStream(t1); | |
1040 H.setRuntimeTypeInfo(t1, [null]); | |
1041 return t1.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDon
e, onError); | |
1042 }, | |
1043 close$0: function(_) { | |
1044 var t1 = this._controller; | |
1045 if ((t1._state & 4) !== 0) | |
1046 return; | |
1047 t1.close$0(t1); | |
1048 $globalState.currentContext.unregister$1(this._id); | |
1049 }, | |
1050 get$close: function(_receiver) { | |
1051 return new H.BoundClosure$i0(this, H.ReceivePortImpl.prototype.close$0, _rec
eiver, "close$0"); | |
1052 }, | |
1053 ReceivePortImpl$0: function() { | |
1054 this._controller = P.StreamController_StreamController(this.get$close(this),
null, null, null, true, null); | |
1055 var t1 = $globalState.currentContext; | |
1056 t1.register$2(t1, this._id, this); | |
1057 }, | |
1058 static: { | |
1059 "": "ReceivePortImpl__nextFreeId", | |
1060 ReceivePortImpl$: function() { | |
1061 var t1 = $.ReceivePortImpl__nextFreeId; | |
1062 $.ReceivePortImpl__nextFreeId = t1 + 1; | |
1063 t1 = new H.ReceivePortImpl(t1, null); | |
1064 t1.ReceivePortImpl$0(); | |
1065 return t1; | |
1066 }} | |
1067 | |
1068 }, | |
1069 | |
1070 _waitForPendingPorts_closure: {"": "Closure;callback_0", | |
1071 call$1: function(_) { | |
1072 return this.callback_0.call$0(); | |
1073 }, | |
1074 $is_args1: true | |
1075 }, | |
1076 | |
1077 _PendingSendPortFinder: {"": "_MessageTraverser;ports,_visited", | |
1078 visitPrimitive$1: function(x) { | |
1079 }, | |
1080 visitList$1: function(list) { | |
1081 var t1 = this._visited; | |
1082 if (t1.$index(t1, list) != null) | |
1083 return; | |
1084 t1 = this._visited; | |
1085 t1.$indexSet(t1, list, true); | |
1086 J.forEach$1$ax(list, this.get$_dispatch()); | |
1087 }, | |
1088 visitMap$1: function(map) { | |
1089 var t1 = this._visited; | |
1090 if (t1.$index(t1, map) != null) | |
1091 return; | |
1092 t1 = this._visited; | |
1093 t1.$indexSet(t1, map, true); | |
1094 J.forEach$1$ax(J.get$values$x(map), this.get$_dispatch()); | |
1095 }, | |
1096 visitSendPort$1: function(port) { | |
1097 }, | |
1098 _PendingSendPortFinder$0: function() { | |
1099 this._visited = new H._JsVisitedMap(null); | |
1100 }, | |
1101 static: { | |
1102 _PendingSendPortFinder$: function() { | |
1103 var t1 = new H._PendingSendPortFinder([], new H._MessageTraverserVisitedMap())
; | |
1104 t1._PendingSendPortFinder$0(); | |
1105 return t1; | |
1106 }} | |
1107 | |
1108 }, | |
1109 | |
1110 _JsSerializer: {"": "_Serializer;_nextFreeRefId,_visited", | |
1111 visitSendPort$1: function(x) { | |
1112 if (!!x.$is_NativeJsSendPort) | |
1113 return ["sendport", $globalState.currentManagerId, x._isolateId, x._receiv
ePort.get$_id()]; | |
1114 if (!!x.$is_WorkerSendPort) | |
1115 return ["sendport", x._workerId, x._isolateId, x._receivePortId]; | |
1116 throw H.wrapException("Illegal underlying port " + H.S(x)); | |
1117 } | |
1118 }, | |
1119 | |
1120 _JsCopier: {"": "_Copier;_visited", | |
1121 visitSendPort$1: function(x) { | |
1122 if (!!x.$is_NativeJsSendPort) | |
1123 return new H._NativeJsSendPort(x._receivePort, x._isolateId); | |
1124 if (!!x.$is_WorkerSendPort) | |
1125 return new H._WorkerSendPort(x._workerId, x._receivePortId, x._isolateId); | |
1126 throw H.wrapException("Illegal underlying port " + H.S(x)); | |
1127 } | |
1128 }, | |
1129 | |
1130 _JsDeserializer: {"": "_Deserializer;_deserialized", | |
1131 deserializeSendPort$1: function(list) { | |
1132 var t1, managerId, isolateId, receivePortId, isolate, receivePort; | |
1133 t1 = J.getInterceptor$asx(list); | |
1134 managerId = t1.$index(list, 1); | |
1135 isolateId = t1.$index(list, 2); | |
1136 receivePortId = t1.$index(list, 3); | |
1137 if (J.$eq(managerId, $globalState.currentManagerId)) { | |
1138 t1 = $globalState.isolates; | |
1139 isolate = t1.$index(t1, isolateId); | |
1140 if (isolate == null) | |
1141 return; | |
1142 receivePort = isolate.lookup$1(receivePortId); | |
1143 if (receivePort == null) | |
1144 return; | |
1145 return new H._NativeJsSendPort(receivePort, isolateId); | |
1146 } else | |
1147 return new H._WorkerSendPort(managerId, receivePortId, isolateId); | |
1148 } | |
1149 }, | |
1150 | |
1151 _JsVisitedMap: {"": "Object;tagged", | |
1152 $index: function(_, object) { | |
1153 return object.__MessageTraverser__attached_info__; | |
1154 }, | |
1155 $indexSet: function(_, object, info) { | |
1156 this.tagged.push(object); | |
1157 object.__MessageTraverser__attached_info__ = info; | |
1158 }, | |
1159 reset$0: function(_) { | |
1160 this.tagged = P.List_List(null, null); | |
1161 }, | |
1162 cleanup$0: function() { | |
1163 var $length, i, t1; | |
1164 for ($length = this.tagged.length, i = 0; i < $length; ++i) { | |
1165 t1 = this.tagged; | |
1166 if (i >= t1.length) | |
1167 throw H.ioore(t1, i); | |
1168 t1[i].__MessageTraverser__attached_info__ = null; | |
1169 } | |
1170 this.tagged = null; | |
1171 } | |
1172 }, | |
1173 | |
1174 _MessageTraverserVisitedMap: {"": "Object;", | |
1175 $index: function(_, object) { | |
1176 return; | |
1177 }, | |
1178 $indexSet: function(_, object, info) { | |
1179 }, | |
1180 reset$0: function(_) { | |
1181 }, | |
1182 cleanup$0: function() { | |
1183 } | |
1184 }, | |
1185 | |
1186 _MessageTraverser: {"": "Object;", | |
1187 traverse$1: function(x) { | |
1188 var result, t1; | |
1189 if (H._MessageTraverser_isPrimitive(x)) | |
1190 return this.visitPrimitive$1(x); | |
1191 t1 = this._visited; | |
1192 t1.reset$0(t1); | |
1193 result = null; | |
1194 try { | |
1195 result = this._dispatch$1(x); | |
1196 } finally { | |
1197 this._visited.cleanup$0(); | |
1198 } | |
1199 return result; | |
1200 }, | |
1201 _dispatch$1: function(x) { | |
1202 var t1; | |
1203 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") | |
1204 return this.visitPrimitive$1(x); | |
1205 t1 = J.getInterceptor(x); | |
1206 if (typeof x === "object" && x !== null && (x.constructor === Array || !!t1.
$isList)) | |
1207 return this.visitList$1(x); | |
1208 if (typeof x === "object" && x !== null && !!t1.$isMap) | |
1209 return this.visitMap$1(x); | |
1210 if (typeof x === "object" && x !== null && !!t1.$isSendPort) | |
1211 return this.visitSendPort$1(x); | |
1212 return this.visitObject$1(x); | |
1213 }, | |
1214 get$_dispatch: function() { | |
1215 return new H.BoundClosure$1(this, H._MessageTraverser.prototype._dispatch$1,
null, "_dispatch$1"); | |
1216 }, | |
1217 visitObject$1: function(x) { | |
1218 throw H.wrapException("Message serialization: Illegal value " + H.S(x) + " p
assed"); | |
1219 } | |
1220 }, | |
1221 | |
1222 _Copier: {"": "_MessageTraverser;", | |
1223 visitPrimitive$1: function(x) { | |
1224 return x; | |
1225 }, | |
1226 visitList$1: function(list) { | |
1227 var t1, copy, len, t2, i, t3; | |
1228 t1 = this._visited; | |
1229 copy = t1.$index(t1, list); | |
1230 if (copy != null) | |
1231 return copy; | |
1232 t1 = J.getInterceptor$asx(list); | |
1233 len = t1.get$length(list); | |
1234 copy = P.List_List(len, null); | |
1235 t2 = this._visited; | |
1236 t2.$indexSet(t2, list, copy); | |
1237 for (t2 = copy.length, i = 0; i < len; ++i) { | |
1238 t3 = this._dispatch$1(t1.$index(list, i)); | |
1239 if (i >= t2) | |
1240 throw H.ioore(copy, i); | |
1241 copy[i] = t3; | |
1242 } | |
1243 return copy; | |
1244 }, | |
1245 visitMap$1: function(map) { | |
1246 var t1, t2; | |
1247 t1 = {}; | |
1248 t2 = this._visited; | |
1249 t1.copy_0 = t2.$index(t2, map); | |
1250 t2 = t1.copy_0; | |
1251 if (t2 != null) | |
1252 return t2; | |
1253 t1.copy_0 = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | |
1254 t2 = this._visited; | |
1255 t2.$indexSet(t2, map, t1.copy_0); | |
1256 J.forEach$1$ax(map, new H._Copier_visitMap_closure(t1, this)); | |
1257 return t1.copy_0; | |
1258 } | |
1259 }, | |
1260 | |
1261 _Copier_visitMap_closure: {"": "Closure;box_0,this_1", | |
1262 call$2: function(key, val) { | |
1263 var t1 = this.this_1; | |
1264 J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val)); | |
1265 }, | |
1266 $is_args2: true | |
1267 }, | |
1268 | |
1269 _Serializer: {"": "_MessageTraverser;", | |
1270 visitPrimitive$1: function(x) { | |
1271 return x; | |
1272 }, | |
1273 visitList$1: function(list) { | |
1274 var t1, copyId, id; | |
1275 t1 = this._visited; | |
1276 copyId = t1.$index(t1, list); | |
1277 if (copyId != null) | |
1278 return ["ref", copyId]; | |
1279 id = this._nextFreeRefId; | |
1280 this._nextFreeRefId = id + 1; | |
1281 t1 = this._visited; | |
1282 t1.$indexSet(t1, list, id); | |
1283 return ["list", id, this._serializeList$1(list)]; | |
1284 }, | |
1285 visitMap$1: function(map) { | |
1286 var t1, copyId, id; | |
1287 t1 = this._visited; | |
1288 copyId = t1.$index(t1, map); | |
1289 if (copyId != null) | |
1290 return ["ref", copyId]; | |
1291 id = this._nextFreeRefId; | |
1292 this._nextFreeRefId = id + 1; | |
1293 t1 = this._visited; | |
1294 t1.$indexSet(t1, map, id); | |
1295 t1 = J.getInterceptor$x(map); | |
1296 return ["map", id, this._serializeList$1(J.toList$0$ax(t1.get$keys(map))), t
his._serializeList$1(J.toList$0$ax(t1.get$values(map)))]; | |
1297 }, | |
1298 _serializeList$1: function(list) { | |
1299 var t1, len, result, t2, i, t3; | |
1300 t1 = J.getInterceptor$asx(list); | |
1301 len = t1.get$length(list); | |
1302 result = P.List_List(len, null); | |
1303 for (t2 = result.length, i = 0; i < len; ++i) { | |
1304 t3 = this._dispatch$1(t1.$index(list, i)); | |
1305 if (i >= t2) | |
1306 throw H.ioore(result, i); | |
1307 result[i] = t3; | |
1308 } | |
1309 return result; | |
1310 } | |
1311 }, | |
1312 | |
1313 _Deserializer: {"": "Object;", | |
1314 deserialize$1: function(x) { | |
1315 if (H._Deserializer_isPrimitive(x)) | |
1316 return x; | |
1317 this._deserialized = P.HashMap_HashMap(null, null, null, null, null); | |
1318 return this._deserializeHelper$1(x); | |
1319 }, | |
1320 _deserializeHelper$1: function(x) { | |
1321 var t1, id; | |
1322 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") | |
1323 return x; | |
1324 t1 = J.getInterceptor$asx(x); | |
1325 switch (t1.$index(x, 0)) { | |
1326 case "ref": | |
1327 id = t1.$index(x, 1); | |
1328 t1 = this._deserialized; | |
1329 return t1.$index(t1, id); | |
1330 case "list": | |
1331 return this._deserializeList$1(x); | |
1332 case "map": | |
1333 return this._deserializeMap$1(x); | |
1334 case "sendport": | |
1335 return this.deserializeSendPort$1(x); | |
1336 default: | |
1337 return this.deserializeObject$1(x); | |
1338 } | |
1339 }, | |
1340 _deserializeList$1: function(x) { | |
1341 var t1, id, dartList, len, i; | |
1342 t1 = J.getInterceptor$asx(x); | |
1343 id = t1.$index(x, 1); | |
1344 dartList = t1.$index(x, 2); | |
1345 t1 = this._deserialized; | |
1346 t1.$indexSet(t1, id, dartList); | |
1347 t1 = J.getInterceptor$asx(dartList); | |
1348 len = t1.get$length(dartList); | |
1349 if (typeof len !== "number") | |
1350 throw H.iae(len); | |
1351 i = 0; | |
1352 for (; i < len; ++i) | |
1353 t1.$indexSet(dartList, i, this._deserializeHelper$1(t1.$index(dartList, i)
)); | |
1354 return dartList; | |
1355 }, | |
1356 _deserializeMap$1: function(x) { | |
1357 var result, t1, id, t2, keys, values, len, i; | |
1358 result = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | |
1359 t1 = J.getInterceptor$asx(x); | |
1360 id = t1.$index(x, 1); | |
1361 t2 = this._deserialized; | |
1362 t2.$indexSet(t2, id, result); | |
1363 keys = t1.$index(x, 2); | |
1364 values = t1.$index(x, 3); | |
1365 t1 = J.getInterceptor$asx(keys); | |
1366 len = t1.get$length(keys); | |
1367 if (typeof len !== "number") | |
1368 throw H.iae(len); | |
1369 t2 = J.getInterceptor$asx(values); | |
1370 i = 0; | |
1371 for (; i < len; ++i) | |
1372 result.$indexSet(result, this._deserializeHelper$1(t1.$index(keys, i)), th
is._deserializeHelper$1(t2.$index(values, i))); | |
1373 return result; | |
1374 }, | |
1375 deserializeObject$1: function(x) { | |
1376 throw H.wrapException("Unexpected serialized object"); | |
1377 } | |
1378 }, | |
1379 | |
1380 TimerImpl: {"": "Object;_once,_inEventLoop,_handle", | |
1381 TimerImpl$2: function(milliseconds, callback) { | |
1382 var t1, t2; | |
1383 if (milliseconds === 0) | |
1384 t1 = $.get$globalThis().setTimeout == null || $globalState.isWorker === tr
ue; | |
1385 else | |
1386 t1 = false; | |
1387 if (t1) { | |
1388 this._handle = 1; | |
1389 t1 = $globalState.topEventLoop; | |
1390 t2 = $globalState.currentContext; | |
1391 t1.events._add$1(new H._IsolateEvent(t2, new H.TimerImpl_internalCallback(
this, callback), "timer")); | |
1392 this._inEventLoop = true; | |
1393 } else if ($.get$globalThis().setTimeout != null) { | |
1394 t1 = $globalState.topEventLoop; | |
1395 t1.activeTimerCount = t1.activeTimerCount + 1; | |
1396 this._handle = $.get$globalThis().setTimeout(H.convertDartClosureToJS(new
H.TimerImpl_internalCallback0(this, callback), 0), milliseconds); | |
1397 } else | |
1398 throw H.wrapException(P.UnsupportedError$("Timer greater than 0.")); | |
1399 }, | |
1400 static: { | |
1401 TimerImpl$: function(milliseconds, callback) { | |
1402 var t1 = new H.TimerImpl(true, false, null); | |
1403 t1.TimerImpl$2(milliseconds, callback); | |
1404 return t1; | |
1405 }} | |
1406 | |
1407 }, | |
1408 | |
1409 TimerImpl_internalCallback: {"": "Closure;this_0,callback_1", | |
1410 call$0: function() { | |
1411 this.this_0._handle = null; | |
1412 this.callback_1.call$0(); | |
1413 } | |
1414 }, | |
1415 | |
1416 TimerImpl_internalCallback0: {"": "Closure;this_2,callback_3", | |
1417 call$0: function() { | |
1418 this.this_2._handle = null; | |
1419 var t1 = $globalState.topEventLoop; | |
1420 t1.activeTimerCount = t1.activeTimerCount - 1; | |
1421 this.callback_3.call$0(); | |
1422 } | |
1423 }}], | |
1424 ["_js_helper", "dart:_js_helper", , H, { | |
1425 isJsIndexable: function(object, record) { | |
1426 var result, t1; | |
1427 if (record != null) { | |
1428 result = record.x; | |
1429 if (result != null) | |
1430 return result; | |
1431 } | |
1432 t1 = J.getInterceptor(object); | |
1433 return typeof object === "object" && object !== null && !!t1.$isJavaScriptInde
xingBehavior; | |
1434 }, | |
1435 | |
1436 S: function(value) { | |
1437 var res; | |
1438 if (typeof value === "string") | |
1439 return value; | |
1440 if (typeof value === "number") { | |
1441 if (value !== 0) | |
1442 return "" + value; | |
1443 } else if (true === value) | |
1444 return "true"; | |
1445 else if (false === value) | |
1446 return "false"; | |
1447 else if (value == null) | |
1448 return "null"; | |
1449 res = J.toString$0(value); | |
1450 if (typeof res !== "string") | |
1451 throw H.wrapException(P.ArgumentError$(value)); | |
1452 return res; | |
1453 }, | |
1454 | |
1455 Primitives_initializeStatics: function(id) { | |
1456 $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheName +
("_" + H.S(id)); | |
1457 $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName + ("_"
+ H.S(id)); | |
1458 }, | |
1459 | |
1460 Primitives_objectHashCode: function(object) { | |
1461 var hash = object.$identityHash; | |
1462 if (hash == null) { | |
1463 hash = Math.random() * 0x3fffffff | 0; | |
1464 object.$identityHash = hash; | |
1465 } | |
1466 return hash; | |
1467 }, | |
1468 | |
1469 Primitives_objectTypeName: function(object) { | |
1470 var $name, decompiled, t1; | |
1471 $name = H.constructorNameFallback(J.getInterceptor(object)); | |
1472 if (J.$eq($name, "Object")) { | |
1473 decompiled = String(object.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1
]; | |
1474 if (typeof decompiled === "string") | |
1475 $name = decompiled; | |
1476 } | |
1477 t1 = J.getInterceptor$s($name); | |
1478 if (t1.codeUnitAt$1($name, 0) === 36) | |
1479 $name = t1.substring$1($name, 1); | |
1480 t1 = H.getRuntimeTypeInfo(object); | |
1481 return H.S($name) + H.joinArguments(t1, 0); | |
1482 }, | |
1483 | |
1484 Primitives_objectToString: function(object) { | |
1485 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | |
1486 }, | |
1487 | |
1488 Primitives_newFixedList: function($length) { | |
1489 var result = new Array($length); | |
1490 result.fixed$length = true; | |
1491 return result; | |
1492 }, | |
1493 | |
1494 Primitives__fromCharCodeApply: function(array) { | |
1495 var end, t1, result, i, subarray, t2; | |
1496 end = array.length; | |
1497 for (t1 = end <= 500, result = "", i = 0; i < end; i += 500) { | |
1498 if (t1) | |
1499 subarray = array; | |
1500 else { | |
1501 t2 = i + 500; | |
1502 t2 = t2 < end ? t2 : end; | |
1503 subarray = array.slice(i, t2); | |
1504 } | |
1505 result += String.fromCharCode.apply(null, subarray); | |
1506 } | |
1507 return result; | |
1508 }, | |
1509 | |
1510 Primitives_stringFromCodePoints: function(codePoints) { | |
1511 var a, t1, i; | |
1512 a = []; | |
1513 for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveN
ext$0();) { | |
1514 i = t1._current; | |
1515 if (typeof i !== "number" || Math.floor(i) !== i) | |
1516 throw H.wrapException(new P.ArgumentError(i)); | |
1517 if (i <= 65535) | |
1518 a.push(i); | |
1519 else if (i <= 1114111) { | |
1520 a.push(55296 + (C.JSInt_methods.$shr(i - 65536, 10) & 1023)); | |
1521 a.push(56320 + (i & 1023)); | |
1522 } else | |
1523 throw H.wrapException(new P.ArgumentError(i)); | |
1524 } | |
1525 return H.Primitives__fromCharCodeApply(a); | |
1526 }, | |
1527 | |
1528 Primitives_stringFromCharCodes: function(charCodes) { | |
1529 var t1, i; | |
1530 for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNex
t$0();) { | |
1531 i = t1._current; | |
1532 if (typeof i !== "number" || Math.floor(i) !== i) | |
1533 throw H.wrapException(new P.ArgumentError(i)); | |
1534 if (i < 0) | |
1535 throw H.wrapException(new P.ArgumentError(i)); | |
1536 if (i > 65535) | |
1537 return H.Primitives_stringFromCodePoints(charCodes); | |
1538 } | |
1539 return H.Primitives__fromCharCodeApply(charCodes); | |
1540 }, | |
1541 | |
1542 Primitives_getProperty: function(object, key) { | |
1543 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | |
1544 throw H.wrapException(new P.ArgumentError(object)); | |
1545 return object[key]; | |
1546 }, | |
1547 | |
1548 Primitives_setProperty: function(object, key, value) { | |
1549 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | |
1550 throw H.wrapException(new P.ArgumentError(object)); | |
1551 object[key] = value; | |
1552 }, | |
1553 | |
1554 iae: function(argument) { | |
1555 throw H.wrapException(P.ArgumentError$(argument)); | |
1556 }, | |
1557 | |
1558 ioore: function(receiver, index) { | |
1559 if (receiver == null) | |
1560 J.get$length$asx(receiver); | |
1561 if (typeof index !== "number" || Math.floor(index) !== index) | |
1562 H.iae(index); | |
1563 throw H.wrapException(P.RangeError$value(index)); | |
1564 }, | |
1565 | |
1566 wrapException: function(ex) { | |
1567 var wrapper; | |
1568 if (ex == null) | |
1569 ex = new P.NullThrownError(); | |
1570 wrapper = new Error(); | |
1571 wrapper.dartException = ex; | |
1572 if ("defineProperty" in Object) { | |
1573 Object.defineProperty(wrapper, "message", { get: H.toStringWrapper$closure.c
all$0 }); | |
1574 wrapper.name = ""; | |
1575 } else | |
1576 wrapper.toString = H.toStringWrapper$closure.call$0; | |
1577 return wrapper; | |
1578 }, | |
1579 | |
1580 toStringWrapper: function() { | |
1581 return J.toString$0(this.dartException); | |
1582 }, | |
1583 | |
1584 throwExpression: function(ex) { | |
1585 throw H.wrapException(ex); | |
1586 }, | |
1587 | |
1588 unwrapException: function(ex) { | |
1589 var t1, message, number, ieErrorCode, t2, t3, t4, nullLiteralCall, t5, t6, t7,
t8, t9, match; | |
1590 t1 = new H.unwrapException_saveStackTrace(ex); | |
1591 if (ex == null) | |
1592 return; | |
1593 if (typeof ex !== "object") | |
1594 return ex; | |
1595 if ("dartException" in ex) | |
1596 return t1.call$1(ex.dartException); | |
1597 else if (!("message" in ex)) | |
1598 return ex; | |
1599 message = ex.message; | |
1600 if ("number" in ex && typeof ex.number == "number") { | |
1601 number = ex.number; | |
1602 ieErrorCode = number & 65535; | |
1603 if ((C.JSInt_methods.$shr(number, 16) & 8191) === 10) | |
1604 switch (ieErrorCode) { | |
1605 case 438: | |
1606 return t1.call$1(H.JsNoSuchMethodError$(H.S(message) + " (Error " + ie
ErrorCode + ")", null)); | |
1607 case 445: | |
1608 case 5007: | |
1609 t2 = H.S(message) + " (Error " + ieErrorCode + ")"; | |
1610 return t1.call$1(new H.NullError(t2, null)); | |
1611 default: | |
1612 } | |
1613 } | |
1614 if (ex instanceof TypeError) { | |
1615 t2 = $.get$TypeErrorDecoder_noSuchMethodPattern(); | |
1616 t3 = $.get$TypeErrorDecoder_notClosurePattern(); | |
1617 t4 = $.get$TypeErrorDecoder_nullCallPattern(); | |
1618 nullLiteralCall = $.get$TypeErrorDecoder_nullLiteralCallPattern(); | |
1619 t5 = $.get$TypeErrorDecoder_undefinedCallPattern(); | |
1620 t6 = $.get$TypeErrorDecoder_undefinedLiteralCallPattern(); | |
1621 t7 = $.get$TypeErrorDecoder_nullPropertyPattern(); | |
1622 $.get$TypeErrorDecoder_nullLiteralPropertyPattern(); | |
1623 t8 = $.get$TypeErrorDecoder_undefinedPropertyPattern(); | |
1624 t9 = $.get$TypeErrorDecoder_undefinedLiteralPropertyPattern(); | |
1625 match = t2.matchTypeError$1(message); | |
1626 if (match != null) | |
1627 return t1.call$1(H.JsNoSuchMethodError$(message, match)); | |
1628 else { | |
1629 match = t3.matchTypeError$1(message); | |
1630 if (match != null) { | |
1631 match.method = "call"; | |
1632 return t1.call$1(H.JsNoSuchMethodError$(message, match)); | |
1633 } else { | |
1634 match = t4.matchTypeError$1(message); | |
1635 if (match == null) { | |
1636 match = nullLiteralCall.matchTypeError$1(message); | |
1637 if (match == null) { | |
1638 match = t5.matchTypeError$1(message); | |
1639 if (match == null) { | |
1640 match = t6.matchTypeError$1(message); | |
1641 if (match == null) { | |
1642 match = t7.matchTypeError$1(message); | |
1643 if (match == null) { | |
1644 match = nullLiteralCall.matchTypeError$1(message); | |
1645 if (match == null) { | |
1646 match = t8.matchTypeError$1(message); | |
1647 if (match == null) { | |
1648 match = t9.matchTypeError$1(message); | |
1649 t2 = match != null; | |
1650 } else | |
1651 t2 = true; | |
1652 } else | |
1653 t2 = true; | |
1654 } else | |
1655 t2 = true; | |
1656 } else | |
1657 t2 = true; | |
1658 } else | |
1659 t2 = true; | |
1660 } else | |
1661 t2 = true; | |
1662 } else | |
1663 t2 = true; | |
1664 if (t2) { | |
1665 t2 = match == null ? null : match.method; | |
1666 return t1.call$1(new H.NullError(message, t2)); | |
1667 } | |
1668 } | |
1669 } | |
1670 t2 = typeof message === "string" ? message : ""; | |
1671 return t1.call$1(new H.UnknownJsTypeError(t2)); | |
1672 } | |
1673 if (ex instanceof RangeError) { | |
1674 if (typeof message === "string" && message.indexOf("call stack") !== -1) | |
1675 return new P.StackOverflowError(); | |
1676 return t1.call$1(new P.ArgumentError(null)); | |
1677 } | |
1678 if (typeof InternalError == "function" && ex instanceof InternalError) | |
1679 if (typeof message === "string" && message === "too much recursion") | |
1680 return new P.StackOverflowError(); | |
1681 return ex; | |
1682 }, | |
1683 | |
1684 objectHashCode: function(object) { | |
1685 if (object == null || typeof object != 'object') | |
1686 return J.get$hashCode$(object); | |
1687 else | |
1688 return H.Primitives_objectHashCode(object); | |
1689 }, | |
1690 | |
1691 fillLiteralMap: function(keyValuePairs, result) { | |
1692 var $length, index, index0, index1; | |
1693 $length = keyValuePairs.length; | |
1694 for (index = 0; index < $length; index = index1) { | |
1695 index0 = index + 1; | |
1696 index1 = index0 + 1; | |
1697 result.$indexSet(result, keyValuePairs[index], keyValuePairs[index0]); | |
1698 } | |
1699 return result; | |
1700 }, | |
1701 | |
1702 invokeClosure: function(closure, isolate, numberOfArguments, arg1, arg2, arg3, a
rg4) { | |
1703 var t1 = J.getInterceptor(numberOfArguments); | |
1704 if (t1.$eq(numberOfArguments, 0)) | |
1705 return H._callInIsolate(isolate, new H.invokeClosure_closure(closure)); | |
1706 else if (t1.$eq(numberOfArguments, 1)) | |
1707 return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, arg1)
); | |
1708 else if (t1.$eq(numberOfArguments, 2)) | |
1709 return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, arg1,
arg2)); | |
1710 else if (t1.$eq(numberOfArguments, 3)) | |
1711 return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, arg1,
arg2, arg3)); | |
1712 else if (t1.$eq(numberOfArguments, 4)) | |
1713 return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, arg1,
arg2, arg3, arg4)); | |
1714 else | |
1715 throw H.wrapException(P.Exception_Exception("Unsupported number of arguments
for wrapped closure")); | |
1716 }, | |
1717 | |
1718 convertDartClosureToJS: function(closure, arity) { | |
1719 var $function; | |
1720 if (closure == null) | |
1721 return; | |
1722 $function = closure.$identity; | |
1723 if (!!$function) | |
1724 return $function; | |
1725 $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); | |
1726 closure.$identity = $function; | |
1727 return $function; | |
1728 }, | |
1729 | |
1730 propertyTypeCastError: function(value, property) { | |
1731 var t1 = J.getInterceptor$asx(property); | |
1732 throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeName(v
alue), t1.substring$2(property, 3, t1.get$length(property)))); | |
1733 }, | |
1734 | |
1735 interceptedTypeCast: function(value, property) { | |
1736 var t1; | |
1737 if (value != null) | |
1738 t1 = typeof value === "object" && J.getInterceptor(value)[property]; | |
1739 else | |
1740 t1 = true; | |
1741 if (t1) | |
1742 return value; | |
1743 H.propertyTypeCastError(value, property); | |
1744 }, | |
1745 | |
1746 throwCyclicInit: function(staticName) { | |
1747 throw H.wrapException(P.CyclicInitializationError$("Cyclic initialization for
static " + H.S(staticName))); | |
1748 }, | |
1749 | |
1750 setRuntimeTypeInfo: function(target, typeInfo) { | |
1751 if (target != null) | |
1752 target.$builtinTypeInfo = typeInfo; | |
1753 return target; | |
1754 }, | |
1755 | |
1756 getRuntimeTypeInfo: function(target) { | |
1757 if (target == null) | |
1758 return; | |
1759 return target.$builtinTypeInfo; | |
1760 }, | |
1761 | |
1762 getRuntimeTypeArguments: function(target, substitutionName) { | |
1763 return H.substitute(target["$as" + H.S(substitutionName)], H.getRuntimeTypeInf
o(target)); | |
1764 }, | |
1765 | |
1766 getRuntimeTypeArgument: function(target, substitutionName, index) { | |
1767 var $arguments = H.getRuntimeTypeArguments(target, substitutionName); | |
1768 return $arguments == null ? null : $arguments[index]; | |
1769 }, | |
1770 | |
1771 runtimeTypeToString: function(type) { | |
1772 if (type == null) | |
1773 return "dynamic"; | |
1774 else if (typeof type === "object" && type !== null && type.constructor === Arr
ay) | |
1775 return type[0].builtin$cls + H.joinArguments(type, 1); | |
1776 else if (typeof type == "function") | |
1777 return type.builtin$cls; | |
1778 else if (typeof type === "number" && Math.floor(type) === type) | |
1779 return C.JSInt_methods.toString$0(type); | |
1780 else | |
1781 return; | |
1782 }, | |
1783 | |
1784 joinArguments: function(types, startIndex) { | |
1785 var buffer, index, firstArgument, allDynamic, argument, str; | |
1786 if (types == null) | |
1787 return ""; | |
1788 buffer = P.StringBuffer$(""); | |
1789 for (index = startIndex, firstArgument = true, allDynamic = true; index < type
s.length; ++index) { | |
1790 if (firstArgument) | |
1791 firstArgument = false; | |
1792 else | |
1793 buffer._contents = buffer._contents + ", "; | |
1794 argument = types[index]; | |
1795 if (argument != null) | |
1796 allDynamic = false; | |
1797 str = H.runtimeTypeToString(argument); | |
1798 str = typeof str === "string" ? str : str; | |
1799 buffer._contents = buffer._contents + str; | |
1800 } | |
1801 return allDynamic ? "" : "<" + H.S(buffer) + ">"; | |
1802 }, | |
1803 | |
1804 substitute: function(substitution, $arguments) { | |
1805 if (typeof substitution === "object" && substitution !== null && substitution.
constructor === Array) | |
1806 $arguments = substitution; | |
1807 else if (typeof substitution == "function") { | |
1808 substitution = H.invokeOn(substitution, null, $arguments); | |
1809 if (typeof substitution === "object" && substitution !== null && substitutio
n.constructor === Array) | |
1810 $arguments = substitution; | |
1811 else if (typeof substitution == "function") | |
1812 $arguments = H.invokeOn(substitution, null, $arguments); | |
1813 } | |
1814 return $arguments; | |
1815 }, | |
1816 | |
1817 computeSignature: function(signature, context, contextName) { | |
1818 return H.invokeOn(signature, context, H.getRuntimeTypeArguments(context, conte
xtName)); | |
1819 }, | |
1820 | |
1821 invokeOn: function($function, receiver, $arguments) { | |
1822 return $function.apply(receiver, $arguments); | |
1823 }, | |
1824 | |
1825 typeNameInChrome: function(obj) { | |
1826 return obj.constructor.name; | |
1827 }, | |
1828 | |
1829 typeNameInSafari: function(obj) { | |
1830 return H.constructorNameFallback(obj); | |
1831 }, | |
1832 | |
1833 typeNameInOpera: function(obj) { | |
1834 return H.constructorNameFallback(obj); | |
1835 }, | |
1836 | |
1837 typeNameInFirefox: function(obj) { | |
1838 var $name = H.constructorNameFallback(obj); | |
1839 if ($name === "BeforeUnloadEvent") | |
1840 return "Event"; | |
1841 if ($name === "DataTransfer") | |
1842 return "Clipboard"; | |
1843 if ($name === "GeoGeolocation") | |
1844 return "Geolocation"; | |
1845 if ($name === "WorkerMessageEvent") | |
1846 return "MessageEvent"; | |
1847 if ($name === "XMLDocument") | |
1848 return "Document"; | |
1849 return $name; | |
1850 }, | |
1851 | |
1852 typeNameInIE: function(obj) { | |
1853 var $name = H.constructorNameFallback(obj); | |
1854 if ($name === "Document") { | |
1855 if (!!obj.xmlVersion) | |
1856 return "Document"; | |
1857 return "HTMLDocument"; | |
1858 } | |
1859 if ($name === "BeforeUnloadEvent") | |
1860 return "Event"; | |
1861 if ($name === "DataTransfer") | |
1862 return "Clipboard"; | |
1863 if ($name === "HTMLDDElement") | |
1864 return "HTMLElement"; | |
1865 if ($name === "HTMLDTElement") | |
1866 return "HTMLElement"; | |
1867 if ($name === "HTMLPhraseElement") | |
1868 return "HTMLElement"; | |
1869 if ($name === "Position") | |
1870 return "Geoposition"; | |
1871 if ($name === "Object") | |
1872 if (window.DataView && obj instanceof window.DataView) | |
1873 return "DataView"; | |
1874 return $name; | |
1875 }, | |
1876 | |
1877 constructorNameFallback: function(object) { | |
1878 var $constructor, $name, t1, string; | |
1879 if (object == null) | |
1880 return "Null"; | |
1881 $constructor = object.constructor; | |
1882 if (typeof $constructor === "function") { | |
1883 $name = $constructor.builtin$cls; | |
1884 if ($name != null) | |
1885 return $name; | |
1886 $name = $constructor.name; | |
1887 if (typeof $name === "string") | |
1888 t1 = $name !== "" && $name !== "Object" && $name !== "Function.prototype"; | |
1889 else | |
1890 t1 = false; | |
1891 if (t1) | |
1892 return $name; | |
1893 } | |
1894 string = Object.prototype.toString.call(object); | |
1895 return string.substring(8, string.length - 1); | |
1896 }, | |
1897 | |
1898 alternateTag: function(object, tag) { | |
1899 if (!!/^HTML[A-Z].*Element$/.test(tag)) { | |
1900 if (Object.prototype.toString.call(object) === "[object Object]") | |
1901 return; | |
1902 return "HTMLElement"; | |
1903 } | |
1904 return; | |
1905 }, | |
1906 | |
1907 getFunctionForTypeNameOf: function() { | |
1908 var getTagFunction = H.getBaseFunctionForTypeNameOf(); | |
1909 if (typeof dartExperimentalFixupGetTag == "function") | |
1910 return H.applyExperimentalFixup(dartExperimentalFixupGetTag, getTagFunction)
; | |
1911 return getTagFunction; | |
1912 }, | |
1913 | |
1914 getBaseFunctionForTypeNameOf: function() { | |
1915 if (typeof navigator !== "object") | |
1916 return H.typeNameInChrome$closure; | |
1917 var userAgent = navigator.userAgent; | |
1918 if (userAgent.indexOf("Chrome") !== -1 || userAgent.indexOf("DumpRenderTree")
!== -1) | |
1919 return H.typeNameInChrome$closure; | |
1920 else if (userAgent.indexOf("Firefox") !== -1) | |
1921 return H.typeNameInFirefox$closure; | |
1922 else if (userAgent.indexOf("Trident/") !== -1) | |
1923 return H.typeNameInIE$closure; | |
1924 else if (userAgent.indexOf("Opera") !== -1) | |
1925 return H.typeNameInOpera$closure; | |
1926 else if (userAgent.indexOf("AppleWebKit") !== -1) | |
1927 return H.typeNameInSafari$closure; | |
1928 else | |
1929 return H.constructorNameFallback$closure; | |
1930 }, | |
1931 | |
1932 applyExperimentalFixup: function(fixupJSFunction, originalGetTagDartFunction) { | |
1933 return new H.applyExperimentalFixup_newGetTagDartFunction(fixupJSFunction((fun
ction(invoke, closure){return function(arg){ return invoke(closure, arg); };})(H
.callDartFunctionWith1Arg$closure.call$2, originalGetTagDartFunction))); | |
1934 }, | |
1935 | |
1936 callDartFunctionWith1Arg: function(fn, arg) { | |
1937 return fn.call$1(arg); | |
1938 }, | |
1939 | |
1940 toStringForNativeObject: function(obj) { | |
1941 return "Instance of " + $.get$getTypeNameOf().call$1(obj); | |
1942 }, | |
1943 | |
1944 hashCodeForNativeObject: function(object) { | |
1945 return H.Primitives_objectHashCode(object); | |
1946 }, | |
1947 | |
1948 defineProperty: function(obj, property, value) { | |
1949 Object.defineProperty(obj, property, {value: value, enumerable: false, writabl
e: true, configurable: true}); | |
1950 }, | |
1951 | |
1952 lookupInterceptor: function(hasOwnPropertyFunction, tag) { | |
1953 var map = init.interceptorsByTag; | |
1954 return hasOwnPropertyFunction.call(map, tag) ? map[tag] : null; | |
1955 }, | |
1956 | |
1957 lookupDispatchRecord: function(obj) { | |
1958 var hasOwnPropertyFunction, tag, interceptorClass, secondTag, interceptor; | |
1959 hasOwnPropertyFunction = Object.prototype.hasOwnProperty; | |
1960 tag = $.get$getTypeNameOf().call$1(obj); | |
1961 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, tag); | |
1962 if (interceptorClass == null) { | |
1963 secondTag = H.alternateTag(obj, tag); | |
1964 if (secondTag != null) | |
1965 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, secondTag); | |
1966 } | |
1967 if (interceptorClass == null) | |
1968 return; | |
1969 interceptor = interceptorClass.prototype; | |
1970 if (init.leafTags[tag] === true) | |
1971 return H.makeLeafDispatchRecord(interceptor); | |
1972 else | |
1973 return J.makeDispatchRecord(interceptor, Object.getPrototypeOf(obj), null, n
ull); | |
1974 }, | |
1975 | |
1976 makeLeafDispatchRecord: function(interceptor) { | |
1977 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScr
iptIndexingBehavior); | |
1978 }, | |
1979 | |
1980 makeDefaultDispatchRecord: function(tag, interceptorClass, proto) { | |
1981 var interceptor = interceptorClass.prototype; | |
1982 if (init.leafTags[tag] === true) | |
1983 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaS
criptIndexingBehavior); | |
1984 else | |
1985 return J.makeDispatchRecord(interceptor, proto, null, null); | |
1986 }, | |
1987 | |
1988 initNativeDispatch: function() { | |
1989 var context, map, tags, i, tag, proto, record; | |
1990 $.initNativeDispatchFlag = true; | |
1991 if (typeof window != "undefined") { | |
1992 context = window; | |
1993 map = init.interceptorsByTag; | |
1994 tags = Object.getOwnPropertyNames(map); | |
1995 for (i = 0; i < tags.length; ++i) { | |
1996 tag = tags[i]; | |
1997 if (typeof context[tag] == "function") { | |
1998 proto = context[tag].prototype; | |
1999 if (proto != null) { | |
2000 record = H.makeDefaultDispatchRecord(tag, map[tag], proto); | |
2001 if (record != null) | |
2002 Object.defineProperty(proto, init.dispatchPropertyName, {value: reco
rd, enumerable: false, writable: true, configurable: true}); | |
2003 } | |
2004 } | |
2005 } | |
2006 } | |
2007 }, | |
2008 | |
2009 TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,
_receiver", | |
2010 matchTypeError$1: function(message) { | |
2011 var match, result, t1; | |
2012 match = new RegExp(this._pattern).exec(message); | |
2013 if (match == null) | |
2014 return; | |
2015 result = {}; | |
2016 t1 = this._arguments; | |
2017 if (t1 !== -1) | |
2018 result.arguments = match[t1 + 1]; | |
2019 t1 = this._argumentsExpr; | |
2020 if (t1 !== -1) | |
2021 result.argumentsExpr = match[t1 + 1]; | |
2022 t1 = this._expr; | |
2023 if (t1 !== -1) | |
2024 result.expr = match[t1 + 1]; | |
2025 t1 = this._method; | |
2026 if (t1 !== -1) | |
2027 result.method = match[t1 + 1]; | |
2028 t1 = this._receiver; | |
2029 if (t1 !== -1) | |
2030 result.receiver = match[t1 + 1]; | |
2031 return result; | |
2032 }, | |
2033 static: { | |
2034 "": "TypeErrorDecoder_noSuchMethodPattern,TypeErrorDecoder_notClosurePattern,Typ
eErrorDecoder_nullCallPattern,TypeErrorDecoder_nullLiteralCallPattern,TypeErrorD
ecoder_undefinedCallPattern,TypeErrorDecoder_undefinedLiteralCallPattern,TypeErr
orDecoder_nullPropertyPattern,TypeErrorDecoder_nullLiteralPropertyPattern,TypeEr
rorDecoder_undefinedPropertyPattern,TypeErrorDecoder_undefinedLiteralPropertyPat
tern", | |
2035 TypeErrorDecoder_extractPattern: function(message) { | |
2036 var match, $arguments, argumentsExpr, expr, method, receiver; | |
2037 message = message.replace(String({}), '$receiver$').replace(new RegExp("[[\\]{
}()*+?.\\\\^$|]", 'g'), '\\$&'); | |
2038 match = message.match(/\\\$[a-zA-Z]+\\\$/g); | |
2039 if (match == null) | |
2040 match = []; | |
2041 $arguments = match.indexOf("\\$arguments\\$"); | |
2042 argumentsExpr = match.indexOf("\\$argumentsExpr\\$"); | |
2043 expr = match.indexOf("\\$expr\\$"); | |
2044 method = match.indexOf("\\$method\\$"); | |
2045 receiver = match.indexOf("\\$receiver\\$"); | |
2046 return new H.TypeErrorDecoder(message.replace('\\$arguments\\$', '((?:x|[^x])*
)').replace('\\$argumentsExpr\\$', '((?:x|[^x])*)').replace('\\$expr\\$', '((?:x
|[^x])*)').replace('\\$method\\$', '((?:x|[^x])*)').replace('\\$receiver\\$', '(
(?:x|[^x])*)'), $arguments, argumentsExpr, expr, method, receiver); | |
2047 }, | |
2048 | |
2049 TypeErrorDecoder_provokeCallErrorOn: function(expression) { | |
2050 return function($expr$) { | |
2051 var $argumentsExpr$ = '$arguments$' | |
2052 try { | |
2053 $expr$.$method$($argumentsExpr$); | |
2054 } catch (e) { | |
2055 return e.message; | |
2056 } | |
2057 }(expression); | |
2058 }, | |
2059 | |
2060 TypeErrorDecoder_provokeCallErrorOnNull: function() { | |
2061 return function() { | |
2062 var $argumentsExpr$ = '$arguments$' | |
2063 try { | |
2064 null.$method$($argumentsExpr$); | |
2065 } catch (e) { | |
2066 return e.message; | |
2067 } | |
2068 }(); | |
2069 }, | |
2070 | |
2071 TypeErrorDecoder_provokeCallErrorOnUndefined: function() { | |
2072 return function() { | |
2073 var $argumentsExpr$ = '$arguments$' | |
2074 try { | |
2075 (void 0).$method$($argumentsExpr$); | |
2076 } catch (e) { | |
2077 return e.message; | |
2078 } | |
2079 }(); | |
2080 }, | |
2081 | |
2082 TypeErrorDecoder_provokePropertyErrorOn: function(expression) { | |
2083 return function($expr$) { | |
2084 try { | |
2085 $expr$.$method$; | |
2086 } catch (e) { | |
2087 return e.message; | |
2088 } | |
2089 }(expression); | |
2090 }, | |
2091 | |
2092 TypeErrorDecoder_provokePropertyErrorOnNull: function() { | |
2093 return function() { | |
2094 try { | |
2095 null.$method$; | |
2096 } catch (e) { | |
2097 return e.message; | |
2098 } | |
2099 }(); | |
2100 }, | |
2101 | |
2102 TypeErrorDecoder_provokePropertyErrorOnUndefined: function() { | |
2103 return function() { | |
2104 try { | |
2105 (void 0).$method$; | |
2106 } catch (e) { | |
2107 return e.message; | |
2108 } | |
2109 }(); | |
2110 }} | |
2111 | |
2112 }, | |
2113 | |
2114 NullError: {"": "Error;_message,_method", | |
2115 toString$0: function(_) { | |
2116 var t1 = this._method; | |
2117 if (t1 == null) | |
2118 return "NullError: " + H.S(this._message); | |
2119 return "NullError: Cannot call \"" + H.S(t1) + "\" on null"; | |
2120 }, | |
2121 $isError: true | |
2122 }, | |
2123 | |
2124 JsNoSuchMethodError: {"": "Error;_message,_method,_receiver", | |
2125 toString$0: function(_) { | |
2126 var t1, t2; | |
2127 t1 = this._method; | |
2128 if (t1 == null) | |
2129 return "NoSuchMethodError: " + H.S(this._message); | |
2130 t2 = this._receiver; | |
2131 if (t2 == null) | |
2132 return "NoSuchMethodError: Cannot call \"" + t1 + "\" (" + H.S(this._messa
ge) + ")"; | |
2133 return "NoSuchMethodError: Cannot call \"" + t1 + "\" on \"" + t2 + "\" (" +
H.S(this._message) + ")"; | |
2134 }, | |
2135 $isError: true, | |
2136 static: { | |
2137 JsNoSuchMethodError$: function(_message, match) { | |
2138 var t1, t2; | |
2139 t1 = match == null; | |
2140 t2 = t1 ? null : match.method; | |
2141 t1 = t1 ? null : match.receiver; | |
2142 return new H.JsNoSuchMethodError(_message, t2, t1); | |
2143 }} | |
2144 | |
2145 }, | |
2146 | |
2147 UnknownJsTypeError: {"": "Error;_message", | |
2148 toString$0: function(_) { | |
2149 var t1 = this._message; | |
2150 return C.JSString_methods.get$isEmpty(t1) ? "Error" : "Error: " + t1; | |
2151 } | |
2152 }, | |
2153 | |
2154 unwrapException_saveStackTrace: {"": "Closure;ex_0", | |
2155 call$1: function(error) { | |
2156 var t1 = J.getInterceptor(error); | |
2157 if (typeof error === "object" && error !== null && !!t1.$isError) | |
2158 if (error.$thrownJsError == null) | |
2159 error.$thrownJsError = this.ex_0; | |
2160 return error; | |
2161 }, | |
2162 $is_args1: true | |
2163 }, | |
2164 | |
2165 _StackTrace: {"": "Object;_exception,_trace", | |
2166 toString$0: function(_) { | |
2167 var t1, trace; | |
2168 t1 = this._trace; | |
2169 if (t1 != null) | |
2170 return t1; | |
2171 t1 = this._exception; | |
2172 trace = typeof t1 === "object" ? t1.stack : null; | |
2173 t1 = trace == null ? "" : trace; | |
2174 this._trace = t1; | |
2175 return t1; | |
2176 } | |
2177 }, | |
2178 | |
2179 invokeClosure_closure: {"": "Closure;closure_0", | |
2180 call$0: function() { | |
2181 return this.closure_0.call$0(); | |
2182 } | |
2183 }, | |
2184 | |
2185 invokeClosure_closure0: {"": "Closure;closure_1,arg1_2", | |
2186 call$0: function() { | |
2187 return this.closure_1.call$1(this.arg1_2); | |
2188 } | |
2189 }, | |
2190 | |
2191 invokeClosure_closure1: {"": "Closure;closure_3,arg1_4,arg2_5", | |
2192 call$0: function() { | |
2193 return this.closure_3.call$2(this.arg1_4, this.arg2_5); | |
2194 } | |
2195 }, | |
2196 | |
2197 invokeClosure_closure2: {"": "Closure;closure_6,arg1_7,arg2_8,arg3_9", | |
2198 call$0: function() { | |
2199 return this.closure_6.call$3(this.arg1_7, this.arg2_8, this.arg3_9); | |
2200 } | |
2201 }, | |
2202 | |
2203 invokeClosure_closure3: {"": "Closure;closure_10,arg1_11,arg2_12,arg3_13,arg4_14
", | |
2204 call$0: function() { | |
2205 return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this
.arg4_14); | |
2206 } | |
2207 }, | |
2208 | |
2209 Closure: {"": "Object;", | |
2210 toString$0: function(_) { | |
2211 return "Closure"; | |
2212 } | |
2213 }, | |
2214 | |
2215 BoundClosure: {"": "Closure;_self,__js_helper$_target,_receiver,__js_helper$_nam
e", | |
2216 $eq: function(_, other) { | |
2217 var t1; | |
2218 if (other == null) | |
2219 return false; | |
2220 if (this === other) | |
2221 return true; | |
2222 t1 = J.getInterceptor(other); | |
2223 if (typeof other !== "object" || other === null || !t1.$isBoundClosure) | |
2224 return false; | |
2225 return this._self === other._self && this.__js_helper$_target === other.__js
_helper$_target && this._receiver === other._receiver; | |
2226 }, | |
2227 get$hashCode: function(_) { | |
2228 var t1, receiverHashCode; | |
2229 t1 = this._receiver; | |
2230 if (t1 == null) | |
2231 receiverHashCode = H.Primitives_objectHashCode(this._self); | |
2232 else | |
2233 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit
ives_objectHashCode(t1); | |
2234 return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_tar
get)) >>> 0; | |
2235 }, | |
2236 $isBoundClosure: true | |
2237 }, | |
2238 | |
2239 CastErrorImplementation: {"": "Error;message", | |
2240 toString$0: function(_) { | |
2241 return this.message; | |
2242 }, | |
2243 $isError: true, | |
2244 static: { | |
2245 CastErrorImplementation$: function(actualType, expectedType) { | |
2246 return new H.CastErrorImplementation("CastError: Casting value of type " + act
ualType + " to incompatible type " + H.S(expectedType)); | |
2247 }} | |
2248 | |
2249 }, | |
2250 | |
2251 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_
0", | |
2252 call$1: function(object) { | |
2253 return this.newGetTagJSFunction_0(object); | |
2254 }, | |
2255 $is_args1: true | |
2256 }}], | |
2257 ["dart._collection.dev", "dart:_collection-dev", , H, { | |
2258 Arrays_copy: function(src, srcStart, dst, dstStart, count) { | |
2259 var i, j, t1; | |
2260 if (srcStart < dstStart) | |
2261 for (i = srcStart + count - 1, j = dstStart + count - 1; i >= srcStart; --i,
--j) { | |
2262 if (i < 0 || i >= src.length) | |
2263 throw H.ioore(src, i); | |
2264 C.JSArray_methods.$indexSet(dst, j, src[i]); | |
2265 } | |
2266 else | |
2267 for (t1 = srcStart + count, j = dstStart, i = srcStart; i < t1; ++i, ++j) { | |
2268 if (i < 0 || i >= src.length) | |
2269 throw H.ioore(src, i); | |
2270 C.JSArray_methods.$indexSet(dst, j, src[i]); | |
2271 } | |
2272 }, | |
2273 | |
2274 IterableMixinWorkaround_forEach: function(iterable, f) { | |
2275 var t1; | |
2276 for (t1 = new H.ListIterator(iterable, iterable.length, 0, null); t1.moveNext$
0();) | |
2277 f.call$1(t1._current); | |
2278 }, | |
2279 | |
2280 IterableMixinWorkaround_toStringIterable: function(iterable, leftDelimiter, righ
tDelimiter) { | |
2281 var result, i, t1; | |
2282 for (i = 0; i < $.get$IterableMixinWorkaround__toStringList().length; ++i) { | |
2283 t1 = $.get$IterableMixinWorkaround__toStringList(); | |
2284 if (i >= t1.length) | |
2285 throw H.ioore(t1, i); | |
2286 if (t1[i] === iterable) | |
2287 return H.S(leftDelimiter) + "..." + H.S(rightDelimiter); | |
2288 } | |
2289 result = P.StringBuffer$(""); | |
2290 try { | |
2291 $.get$IterableMixinWorkaround__toStringList().push(iterable); | |
2292 result.write$1(leftDelimiter); | |
2293 result.writeAll$2(iterable, ", "); | |
2294 result.write$1(rightDelimiter); | |
2295 } finally { | |
2296 t1 = $.get$IterableMixinWorkaround__toStringList(); | |
2297 if (0 >= t1.length) | |
2298 throw H.ioore(t1, 0); | |
2299 t1.pop(); | |
2300 } | |
2301 return result.get$_contents(); | |
2302 }, | |
2303 | |
2304 IterableMixinWorkaround__rangeCheck: function(list, start, end) { | |
2305 if (start < 0 || start > list.length) | |
2306 throw H.wrapException(P.RangeError$range(start, 0, list.length)); | |
2307 if (end < start || end > list.length) | |
2308 throw H.wrapException(P.RangeError$range(end, start, list.length)); | |
2309 }, | |
2310 | |
2311 IterableMixinWorkaround_setRangeList: function(list, start, end, from, skipCount
) { | |
2312 var $length; | |
2313 H.IterableMixinWorkaround__rangeCheck(list, start, end); | |
2314 $length = end - start; | |
2315 if ($length === 0) | |
2316 return; | |
2317 if (skipCount < 0) | |
2318 throw H.wrapException(new P.ArgumentError(skipCount)); | |
2319 if (skipCount + $length > from.length) | |
2320 throw H.wrapException(P.StateError$("Not enough elements")); | |
2321 H.Arrays_copy(from, skipCount, list, start, $length); | |
2322 }, | |
2323 | |
2324 printToConsole: function(line) { | |
2325 if (typeof dartPrint == "function") { | |
2326 dartPrint(line); | |
2327 return; | |
2328 } | |
2329 if (typeof console == "object" && typeof console.log == "function") { | |
2330 console.log(line); | |
2331 return; | |
2332 } | |
2333 if (typeof window == "object") | |
2334 return; | |
2335 if (typeof print == "function") { | |
2336 print(line); | |
2337 return; | |
2338 } | |
2339 throw "Unable to print message: " + String(line); | |
2340 }, | |
2341 | |
2342 Symbol_getName: function(symbol) { | |
2343 return symbol.get$_name(); | |
2344 }, | |
2345 | |
2346 ListIterator: {"": "Object;_iterable,_length,_index,_current", | |
2347 get$current: function() { | |
2348 return this._current; | |
2349 }, | |
2350 moveNext$0: function() { | |
2351 var t1, t2, $length, t3; | |
2352 t1 = this._iterable; | |
2353 t2 = J.getInterceptor$asx(t1); | |
2354 $length = t2.get$length(t1); | |
2355 if (this._length !== $length) | |
2356 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
2357 t3 = this._index; | |
2358 if (t3 >= $length) { | |
2359 this._current = null; | |
2360 return false; | |
2361 } | |
2362 this._current = t2.elementAt$1(t1, t3); | |
2363 this._index = this._index + 1; | |
2364 return true; | |
2365 } | |
2366 }, | |
2367 | |
2368 MappedIterable: {"": "IterableBase;_iterable,_f", | |
2369 get$iterator: function(_) { | |
2370 var t1 = this._iterable; | |
2371 t1 = t1.get$iterator(t1); | |
2372 t1 = new H.MappedIterator(null, t1, this._f); | |
2373 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "MappedIterable", 0
), H.getRuntimeTypeArgument(this, "MappedIterable", 1)]); | |
2374 return t1; | |
2375 }, | |
2376 get$length: function(_) { | |
2377 var t1 = this._iterable; | |
2378 return t1.get$length(t1); | |
2379 }, | |
2380 get$isEmpty: function(_) { | |
2381 var t1 = this._iterable; | |
2382 return t1.get$isEmpty(t1); | |
2383 }, | |
2384 $asIterableBase: function($S, $T) { | |
2385 return [$T]; | |
2386 }, | |
2387 static: { | |
2388 MappedIterable_MappedIterable: function(iterable, $function, $S, $T) { | |
2389 var t1; | |
2390 if (!!iterable.$isEfficientLength) { | |
2391 t1 = new H.EfficientLengthMappedIterable(iterable, $function); | |
2392 H.setRuntimeTypeInfo(t1, [$S, $T]); | |
2393 return t1; | |
2394 } | |
2395 t1 = new H.MappedIterable(iterable, $function); | |
2396 H.setRuntimeTypeInfo(t1, [$S, $T]); | |
2397 return t1; | |
2398 }} | |
2399 | |
2400 }, | |
2401 | |
2402 EfficientLengthMappedIterable: {"": "MappedIterable;_iterable,_f", $asMappedIter
able: null, $isEfficientLength: true}, | |
2403 | |
2404 MappedIterator: {"": "Iterator;_current,_iterator,_f", | |
2405 _f$1: function(arg0) { | |
2406 return this._f.call$1(arg0); | |
2407 }, | |
2408 moveNext$0: function() { | |
2409 var t1 = this._iterator; | |
2410 if (t1.moveNext$0()) { | |
2411 this._current = this._f$1(t1.get$current()); | |
2412 return true; | |
2413 } | |
2414 this._current = null; | |
2415 return false; | |
2416 }, | |
2417 get$current: function() { | |
2418 return this._current; | |
2419 }, | |
2420 $asIterator: function($S, $T) { | |
2421 return [$T]; | |
2422 } | |
2423 }, | |
2424 | |
2425 FixedLengthListMixin: {"": "Object;"}}], | |
2426 ["dart.async", "dart:async", , P, { | |
2427 _attachStackTrace: function(o, st) { | |
2428 var t1; | |
2429 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | |
2430 return; | |
2431 t1 = $.get$_stackTraceExpando(); | |
2432 t1.$indexSet(t1, o, st); | |
2433 }, | |
2434 | |
2435 _invokeErrorHandler: function(errorHandler, error, stackTrace) { | |
2436 var t1 = J.getInterceptor(errorHandler); | |
2437 if (!!t1.$is_args2) | |
2438 return errorHandler.call$2(error, stackTrace); | |
2439 else | |
2440 return errorHandler.call$1(error); | |
2441 }, | |
2442 | |
2443 _registerErrorHandler: function(errorHandler, zone) { | |
2444 var t1 = J.getInterceptor(errorHandler); | |
2445 zone.toString; | |
2446 if (!!t1.$is_args2) | |
2447 return errorHandler; | |
2448 else | |
2449 return errorHandler; | |
2450 }, | |
2451 | |
2452 getAttachedStackTrace: function(o) { | |
2453 var t1; | |
2454 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | |
2455 return; | |
2456 t1 = $.get$_stackTraceExpando(); | |
2457 return t1.$index(t1, o); | |
2458 }, | |
2459 | |
2460 Future_wait: function(futures) { | |
2461 var t1, t2, t3, future, pos, t4, t5, result, completer; | |
2462 t1 = {}; | |
2463 t1.completer_0 = null; | |
2464 t1.values_1 = null; | |
2465 t2 = new P.Future_wait_handleError(t1); | |
2466 t1.remaining_2 = 0; | |
2467 for (t3 = new H.ListIterator(futures, futures.length, 0, null); t3.moveNext$0(
);) { | |
2468 future = t3._current; | |
2469 pos = t1.remaining_2; | |
2470 t1.remaining_2 = pos + 1; | |
2471 t4 = future.catchError$1(t2); | |
2472 t5 = $.Zone__current; | |
2473 t5.toString; | |
2474 result = new P._Future(0, t5, null, null, new P.Future_wait_closure(t1, pos)
, null, P._registerErrorHandler(null, t5), null); | |
2475 result.$builtinTypeInfo = [null]; | |
2476 t4._addListener$1(result); | |
2477 } | |
2478 t2 = t1.remaining_2; | |
2479 if (t2 === 0) | |
2480 return P._Future$immediate(C.List_empty, null); | |
2481 t1.values_1 = P.List_List(t2, null); | |
2482 t2 = J.JSArray; | |
2483 completer = new P._AsyncCompleter(P._Future$(t2)); | |
2484 H.setRuntimeTypeInfo(completer, [t2]); | |
2485 t1.completer_0 = completer; | |
2486 return t1.completer_0.future; | |
2487 }, | |
2488 | |
2489 _asyncRunCallback: function() { | |
2490 var callback, t1, exception, milliseconds; | |
2491 for (; t1 = $.get$_asyncCallbacks(), t1._head !== t1._tail;) { | |
2492 callback = $.get$_asyncCallbacks().removeFirst$0(); | |
2493 try { | |
2494 callback.call$0(); | |
2495 } catch (exception) { | |
2496 H.unwrapException(exception); | |
2497 milliseconds = C.JSNumber_methods.$tdiv(C.Duration_0._duration, 1000); | |
2498 H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, P._asyncRunCallback$clos
ure); | |
2499 throw exception; | |
2500 } | |
2501 | |
2502 } | |
2503 $._callbacksAreEnqueued = false; | |
2504 }, | |
2505 | |
2506 _scheduleAsyncCallback: function(callback) { | |
2507 $.get$_asyncCallbacks()._add$1(callback); | |
2508 if (!$._callbacksAreEnqueued) { | |
2509 P._createTimer(C.Duration_0, P._asyncRunCallback$closure); | |
2510 $._callbacksAreEnqueued = true; | |
2511 } | |
2512 }, | |
2513 | |
2514 scheduleMicrotask: function(callback) { | |
2515 var t1, t2; | |
2516 t1 = $.Zone__current; | |
2517 if (t1 === C.C__RootZone) { | |
2518 t1.toString; | |
2519 P._scheduleAsyncCallback(callback); | |
2520 return; | |
2521 } | |
2522 t2 = t1.bindCallback$2$runGuarded(callback, true); | |
2523 t1.toString; | |
2524 P._scheduleAsyncCallback(t2); | |
2525 }, | |
2526 | |
2527 StreamController_StreamController: function(onCancel, onListen, onPause, onResum
e, sync, $T) { | |
2528 var t1; | |
2529 if (sync) { | |
2530 t1 = new P._SyncStreamController(onListen, onPause, onResume, onCancel, null
, 0, null); | |
2531 H.setRuntimeTypeInfo(t1, [$T]); | |
2532 } else { | |
2533 t1 = new P._AsyncStreamController(onListen, onPause, onResume, onCancel, nul
l, 0, null); | |
2534 H.setRuntimeTypeInfo(t1, [$T]); | |
2535 } | |
2536 return t1; | |
2537 }, | |
2538 | |
2539 _runGuarded: function(notificationHandler) { | |
2540 var result, e, s, t1, t2, exception; | |
2541 if (notificationHandler == null) | |
2542 return; | |
2543 try { | |
2544 result = notificationHandler.call$0(); | |
2545 t1 = result; | |
2546 t2 = J.getInterceptor(t1); | |
2547 if (typeof t1 === "object" && t1 !== null && !!t2.$isFuture) | |
2548 return result; | |
2549 return; | |
2550 } catch (exception) { | |
2551 t1 = H.unwrapException(exception); | |
2552 e = t1; | |
2553 s = new H._StackTrace(exception, null); | |
2554 t1 = $.Zone__current; | |
2555 t2 = P._asyncError(e, s); | |
2556 t1.toString; | |
2557 P._rootHandleUncaughtError(t1, null, t1, t2, s); | |
2558 } | |
2559 | |
2560 }, | |
2561 | |
2562 _nullDataHandler: function(value) { | |
2563 }, | |
2564 | |
2565 _nullErrorHandler: function(error, stackTrace) { | |
2566 var t1 = $.Zone__current; | |
2567 t1.toString; | |
2568 P._rootHandleUncaughtError(t1, null, t1, error, stackTrace); | |
2569 }, | |
2570 | |
2571 _nullDoneHandler: function() { | |
2572 }, | |
2573 | |
2574 _asyncError: function(error, stackTrace) { | |
2575 if (stackTrace == null) | |
2576 return error; | |
2577 if (P.getAttachedStackTrace(error) != null) | |
2578 return error; | |
2579 P._attachStackTrace(error, stackTrace); | |
2580 return error; | |
2581 }, | |
2582 | |
2583 _runUserCode: function(userCode, onSuccess, onError) { | |
2584 var e, s, exception, t1; | |
2585 try { | |
2586 onSuccess.call$1(userCode.call$0()); | |
2587 } catch (exception) { | |
2588 t1 = H.unwrapException(exception); | |
2589 e = t1; | |
2590 s = new H._StackTrace(exception, null); | |
2591 onError.call$2(P._asyncError(e, s), s); | |
2592 } | |
2593 | |
2594 }, | |
2595 | |
2596 _cancelAndError: function(subscription, future, error, stackTrace) { | |
2597 var cancelFuture, t1; | |
2598 cancelFuture = subscription.cancel$0(); | |
2599 t1 = J.getInterceptor(cancelFuture); | |
2600 if (typeof cancelFuture === "object" && cancelFuture !== null && !!t1.$isFutur
e) | |
2601 cancelFuture.whenComplete$1(new P._cancelAndError_closure(future, error, sta
ckTrace)); | |
2602 else | |
2603 future._completeError$2(error, stackTrace); | |
2604 }, | |
2605 | |
2606 _cancelAndErrorClosure: function(subscription, future) { | |
2607 return new P._cancelAndErrorClosure_closure(subscription, future); | |
2608 }, | |
2609 | |
2610 _cancelAndValue: function(subscription, future, value) { | |
2611 var cancelFuture, t1; | |
2612 cancelFuture = subscription.cancel$0(); | |
2613 t1 = J.getInterceptor(cancelFuture); | |
2614 if (typeof cancelFuture === "object" && cancelFuture !== null && !!t1.$isFutur
e) | |
2615 cancelFuture.whenComplete$1(new P._cancelAndValue_closure(future, value)); | |
2616 else | |
2617 future._complete$1(value); | |
2618 }, | |
2619 | |
2620 Timer_Timer: function(duration, callback) { | |
2621 var t1, t2; | |
2622 t1 = $.Zone__current; | |
2623 if (t1 === C.C__RootZone) { | |
2624 t1.toString; | |
2625 return P._createTimer(duration, callback); | |
2626 } | |
2627 t2 = t1.bindCallback$2$runGuarded(callback, true); | |
2628 t1.toString; | |
2629 return P._createTimer(duration, t2); | |
2630 }, | |
2631 | |
2632 _createTimer: function(duration, callback) { | |
2633 var milliseconds = C.JSNumber_methods.$tdiv(duration._duration, 1000); | |
2634 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); | |
2635 }, | |
2636 | |
2637 _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) { | |
2638 P._rootRun($self, null, $self, new P._rootHandleUncaughtError_closure(error, s
tackTrace)); | |
2639 }, | |
2640 | |
2641 _rootRun: function($self, $parent, zone, f) { | |
2642 var old, t1, t2; | |
2643 t1 = $.Zone__current; | |
2644 t2 = zone; | |
2645 if (t1 == null ? t2 == null : t1 === t2) | |
2646 return f.call$0(); | |
2647 old = t1; | |
2648 try { | |
2649 $.Zone__current = zone; | |
2650 t1 = f.call$0(); | |
2651 return t1; | |
2652 } finally { | |
2653 $.Zone__current = old; | |
2654 } | |
2655 }, | |
2656 | |
2657 _rootRunUnary: function($self, $parent, zone, f, arg) { | |
2658 var old, t1, t2; | |
2659 t1 = $.Zone__current; | |
2660 t2 = zone; | |
2661 if (t1 == null ? t2 == null : t1 === t2) | |
2662 return f.call$1(arg); | |
2663 old = t1; | |
2664 try { | |
2665 $.Zone__current = zone; | |
2666 t1 = f.call$1(arg); | |
2667 return t1; | |
2668 } finally { | |
2669 $.Zone__current = old; | |
2670 } | |
2671 }, | |
2672 | |
2673 _AsyncError: {"": "Object;error>,stackTrace<", $isError: true}, | |
2674 | |
2675 Future: {"": "Object;", $isFuture: true}, | |
2676 | |
2677 Future_wait_handleError: {"": "Closure;box_0", | |
2678 call$1: function(error) { | |
2679 var t1 = this.box_0; | |
2680 if (t1.values_1 != null) { | |
2681 t1.values_1 = null; | |
2682 t1 = t1.completer_0.future; | |
2683 if (t1._state !== 0) | |
2684 H.throwExpression(P.StateError$("Future already completed")); | |
2685 t1._asyncCompleteError$2(error, null); | |
2686 } | |
2687 return; | |
2688 }, | |
2689 $is_args1: true | |
2690 }, | |
2691 | |
2692 Future_wait_closure: {"": "Closure;box_0,pos_1", | |
2693 call$1: function(value) { | |
2694 var t1, t2, t3; | |
2695 t1 = this.box_0; | |
2696 t2 = t1.values_1; | |
2697 if (t2 == null) | |
2698 return; | |
2699 t3 = this.pos_1; | |
2700 if (t3 < 0 || t3 >= t2.length) | |
2701 throw H.ioore(t2, t3); | |
2702 t2[t3] = value; | |
2703 t1.remaining_2 = t1.remaining_2 - 1; | |
2704 if (t1.remaining_2 === 0) { | |
2705 t2 = t1.completer_0; | |
2706 t1 = t1.values_1; | |
2707 t2 = t2.future; | |
2708 if (t2._state !== 0) | |
2709 H.throwExpression(P.StateError$("Future already completed")); | |
2710 t2._asyncComplete$1(t1); | |
2711 } | |
2712 }, | |
2713 $is_args1: true | |
2714 }, | |
2715 | |
2716 _Completer: {"": "Object;"}, | |
2717 | |
2718 _AsyncCompleter: {"": "_Completer;future", | |
2719 completeError$2: function(error, stackTrace) { | |
2720 var t1 = this.future; | |
2721 if (t1._state !== 0) | |
2722 throw H.wrapException(P.StateError$("Future already completed")); | |
2723 t1._asyncCompleteError$2(error, stackTrace); | |
2724 }, | |
2725 get$completeError: function() { | |
2726 return new P.BoundClosure$2(this, P._AsyncCompleter.prototype.completeError$
2, null, "completeError$2"); | |
2727 }, | |
2728 $as_Completer: null | |
2729 }, | |
2730 | |
2731 _Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCa
llback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback", | |
2732 get$_isComplete: function() { | |
2733 return this._state >= 4; | |
2734 }, | |
2735 get$_hasError: function() { | |
2736 return this._state === 8; | |
2737 }, | |
2738 set$_isChained: function(value) { | |
2739 if (value) | |
2740 this._state = 2; | |
2741 else | |
2742 this._state = 0; | |
2743 }, | |
2744 get$_onValue: function() { | |
2745 return this._state === 2 ? null : this._onValueCallback; | |
2746 }, | |
2747 _onValue$1: function(arg0) { | |
2748 return this.get$_onValue().call$1(arg0); | |
2749 }, | |
2750 get$_whenCompleteAction: function() { | |
2751 return this._state === 2 ? null : this._whenCompleteActionCallback; | |
2752 }, | |
2753 _whenCompleteAction$0: function() { | |
2754 return this.get$_whenCompleteAction().call$0(); | |
2755 }, | |
2756 then$2$onError: function(f, onError) { | |
2757 var result = P._Future$_then(f, onError, null); | |
2758 this._addListener$1(result); | |
2759 return result; | |
2760 }, | |
2761 then$1: function(f) { | |
2762 return this.then$2$onError(f, null); | |
2763 }, | |
2764 catchError$2$test: function(onError, test) { | |
2765 var result = P._Future$_catchError(onError, test, null); | |
2766 this._addListener$1(result); | |
2767 return result; | |
2768 }, | |
2769 catchError$1: function(onError) { | |
2770 return this.catchError$2$test(onError, null); | |
2771 }, | |
2772 whenComplete$1: function(action) { | |
2773 var result = P._Future$_whenComplete(action, H.getRuntimeTypeArgument(this,
"_Future", 0)); | |
2774 this._addListener$1(result); | |
2775 return result; | |
2776 }, | |
2777 get$_value: function() { | |
2778 return this._resultOrListeners; | |
2779 }, | |
2780 get$_error: function() { | |
2781 return this._resultOrListeners; | |
2782 }, | |
2783 _setValue$1: function(value) { | |
2784 this._state = 4; | |
2785 this._resultOrListeners = value; | |
2786 }, | |
2787 _setError$2: function(error, stackTrace) { | |
2788 this._state = 8; | |
2789 this._resultOrListeners = new P._AsyncError(error, stackTrace); | |
2790 }, | |
2791 _addListener$1: function(listener) { | |
2792 if (this._state >= 4) { | |
2793 this._zone.toString; | |
2794 P._scheduleAsyncCallback(new P._Future__addListener_closure(this, listener
)); | |
2795 } else { | |
2796 listener._nextListener = this._resultOrListeners; | |
2797 this._resultOrListeners = listener; | |
2798 } | |
2799 }, | |
2800 _removeListeners$0: function() { | |
2801 var current, prev, next; | |
2802 current = this._resultOrListeners; | |
2803 this._resultOrListeners = null; | |
2804 for (prev = null; current != null; prev = current, current = next) { | |
2805 next = current.get$_nextListener(); | |
2806 current.set$_nextListener(prev); | |
2807 } | |
2808 return prev; | |
2809 }, | |
2810 _complete$1: function(value) { | |
2811 var t1, listeners; | |
2812 t1 = J.getInterceptor(value); | |
2813 if (typeof value === "object" && value !== null && !!t1.$isFuture) { | |
2814 P._Future__chainFutures(value, this); | |
2815 return; | |
2816 } | |
2817 listeners = this._removeListeners$0(); | |
2818 this._setValue$1(value); | |
2819 P._Future__propagateToListeners(this, listeners); | |
2820 }, | |
2821 _completeError$2: function(error, stackTrace) { | |
2822 var listeners; | |
2823 if (stackTrace != null) | |
2824 P._attachStackTrace(error, stackTrace); | |
2825 listeners = this._state === 2 ? null : this._removeListeners$0(); | |
2826 this._setError$2(error, stackTrace); | |
2827 P._Future__propagateToListeners(this, listeners); | |
2828 }, | |
2829 get$_completeError: function() { | |
2830 return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null
, "_completeError$2"); | |
2831 }, | |
2832 _asyncComplete$1: function(value) { | |
2833 if (this._state !== 0) | |
2834 H.throwExpression(P.StateError$("Future already completed")); | |
2835 this._state = 1; | |
2836 this._zone.toString; | |
2837 P._scheduleAsyncCallback(new P._Future__asyncComplete_closure(this, value)); | |
2838 }, | |
2839 _asyncCompleteError$2: function(error, stackTrace) { | |
2840 if (this._state !== 0) | |
2841 H.throwExpression(P.StateError$("Future already completed")); | |
2842 this._state = 1; | |
2843 this._zone.toString; | |
2844 P._scheduleAsyncCallback(new P._Future__asyncCompleteError_closure(this, err
or, stackTrace)); | |
2845 }, | |
2846 _async$_Future$immediate$1: function(value, $T) { | |
2847 this._asyncComplete$1(value); | |
2848 }, | |
2849 $is_Future: true, | |
2850 $isFuture: true, | |
2851 static: { | |
2852 "": "_Future__INCOMPLETE,_Future__PENDING_COMPLETE,_Future__CHAINED,_Future__VAL
UE,_Future__ERROR", | |
2853 _Future$: function($T) { | |
2854 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | |
2855 H.setRuntimeTypeInfo(t1, [$T]); | |
2856 return t1; | |
2857 }, | |
2858 | |
2859 _Future$immediate: function(value, $T) { | |
2860 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | |
2861 H.setRuntimeTypeInfo(t1, [$T]); | |
2862 t1._async$_Future$immediate$1(value, $T); | |
2863 return t1; | |
2864 }, | |
2865 | |
2866 _Future$_then: function(onValueCallback, onErrorCallback, $T) { | |
2867 var t1 = $.Zone__current; | |
2868 t1.toString; | |
2869 t1 = new P._Future(0, t1, null, null, onValueCallback, null, P._registerErrorH
andler(onErrorCallback, t1), null); | |
2870 H.setRuntimeTypeInfo(t1, [$T]); | |
2871 return t1; | |
2872 }, | |
2873 | |
2874 _Future$_catchError: function(onErrorCallback, errorTestCallback, $T) { | |
2875 var t1, t2; | |
2876 t1 = $.Zone__current; | |
2877 t2 = P._registerErrorHandler(onErrorCallback, t1); | |
2878 t1.toString; | |
2879 t2 = new P._Future(0, t1, null, null, null, errorTestCallback, t2, null); | |
2880 H.setRuntimeTypeInfo(t2, [$T]); | |
2881 return t2; | |
2882 }, | |
2883 | |
2884 _Future$_whenComplete: function(whenCompleteActionCallback, $T) { | |
2885 var t1 = $.Zone__current; | |
2886 t1.toString; | |
2887 t1 = new P._Future(0, t1, null, null, null, null, null, whenCompleteActionCall
back); | |
2888 H.setRuntimeTypeInfo(t1, [$T]); | |
2889 return t1; | |
2890 }, | |
2891 | |
2892 _Future__chainFutures: function(source, target) { | |
2893 var t1; | |
2894 target._state = 2; | |
2895 t1 = J.getInterceptor(source); | |
2896 if (typeof source === "object" && source !== null && !!t1.$is_Future) | |
2897 if (source._state >= 4) | |
2898 P._Future__propagateToListeners(source, target); | |
2899 else | |
2900 source._addListener$1(target); | |
2901 else | |
2902 source.then$2$onError(new P._Future__chainFutures_closure(target), new P._Fu
ture__chainFutures_closure0(target)); | |
2903 }, | |
2904 | |
2905 _Future__propagateMultipleListeners: function(source, listeners) { | |
2906 var listeners0; | |
2907 do { | |
2908 listeners0 = listeners.get$_nextListener(); | |
2909 listeners.set$_nextListener(null); | |
2910 P._Future__propagateToListeners(source, listeners); | |
2911 if (listeners0 != null) { | |
2912 listeners = listeners0; | |
2913 continue; | |
2914 } else | |
2915 break; | |
2916 } while (true); | |
2917 }, | |
2918 | |
2919 _Future__propagateToListeners: function(source, listeners) { | |
2920 var t1, t2, hasError, asyncError, t3, t4, t5, chainSource, listeners0; | |
2921 t1 = {}; | |
2922 t1.source_4 = source; | |
2923 for (; true;) { | |
2924 t2 = {}; | |
2925 if (!t1.source_4.get$_isComplete()) | |
2926 return; | |
2927 hasError = t1.source_4.get$_hasError(); | |
2928 if (hasError && listeners == null) { | |
2929 t2 = t1.source_4; | |
2930 asyncError = t2.get$_error(); | |
2931 t2 = t2.get$_zone(); | |
2932 t3 = J.get$error$x(asyncError); | |
2933 t4 = asyncError.get$stackTrace(); | |
2934 t2.toString; | |
2935 P._rootHandleUncaughtError(t2, null, t2, t3, t4); | |
2936 return; | |
2937 } | |
2938 if (listeners == null) | |
2939 return; | |
2940 if (listeners._nextListener != null) { | |
2941 P._Future__propagateMultipleListeners(t1.source_4, listeners); | |
2942 return; | |
2943 } | |
2944 if (hasError) { | |
2945 t3 = t1.source_4.get$_zone(); | |
2946 t4 = listeners._zone; | |
2947 t3.toString; | |
2948 t4.toString; | |
2949 t3 = t4 == null ? t3 != null : t4 !== t3; | |
2950 } else | |
2951 t3 = false; | |
2952 if (t3) { | |
2953 t2 = t1.source_4; | |
2954 asyncError = t2.get$_error(); | |
2955 t2 = t2.get$_zone(); | |
2956 t3 = J.get$error$x(asyncError); | |
2957 t4 = asyncError.get$stackTrace(); | |
2958 t2.toString; | |
2959 P._rootHandleUncaughtError(t2, null, t2, t3, t4); | |
2960 return; | |
2961 } | |
2962 t3 = $.Zone__current; | |
2963 t4 = listeners._zone; | |
2964 if (t3 == null ? t4 != null : t3 !== t4) { | |
2965 t4.toString; | |
2966 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure(t1, l
isteners)); | |
2967 return; | |
2968 } | |
2969 t2.listenerHasValue_1 = null; | |
2970 t2.listenerValueOrError_2 = null; | |
2971 t2.isPropagationAborted_3 = false; | |
2972 t4.toString; | |
2973 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure0(t1, t2
, hasError, listeners)); | |
2974 if (t2.isPropagationAborted_3) | |
2975 return; | |
2976 t3 = t2.listenerHasValue_1 === true; | |
2977 if (t3) { | |
2978 t4 = t2.listenerValueOrError_2; | |
2979 t5 = J.getInterceptor(t4); | |
2980 t5 = typeof t4 === "object" && t4 !== null && !!t5.$isFuture; | |
2981 t4 = t5; | |
2982 } else | |
2983 t4 = false; | |
2984 if (t4) { | |
2985 chainSource = t2.listenerValueOrError_2; | |
2986 t2 = J.getInterceptor(chainSource); | |
2987 if (typeof chainSource === "object" && chainSource !== null && !!t2.$is_Fu
ture && chainSource._state >= 4) { | |
2988 listeners._state = 2; | |
2989 t1.source_4 = chainSource; | |
2990 continue; | |
2991 } | |
2992 P._Future__chainFutures(chainSource, listeners); | |
2993 return; | |
2994 } | |
2995 if (t3) { | |
2996 listeners0 = listeners._removeListeners$0(); | |
2997 t2 = t2.listenerValueOrError_2; | |
2998 listeners._state = 4; | |
2999 listeners._resultOrListeners = t2; | |
3000 } else { | |
3001 listeners0 = listeners._removeListeners$0(); | |
3002 asyncError = t2.listenerValueOrError_2; | |
3003 t2 = J.get$error$x(asyncError); | |
3004 t3 = asyncError.get$stackTrace(); | |
3005 listeners._state = 8; | |
3006 listeners._resultOrListeners = new P._AsyncError(t2, t3); | |
3007 } | |
3008 t1.source_4 = listeners; | |
3009 listeners = listeners0; | |
3010 } | |
3011 }} | |
3012 | |
3013 }, | |
3014 | |
3015 _Future__addListener_closure: {"": "Closure;this_0,listener_1", | |
3016 call$0: function() { | |
3017 P._Future__propagateToListeners(this.this_0, this.listener_1); | |
3018 } | |
3019 }, | |
3020 | |
3021 _Future__chainFutures_closure: {"": "Closure;target_0", | |
3022 call$1: function(value) { | |
3023 this.target_0._complete$1(value); | |
3024 }, | |
3025 $is_args1: true | |
3026 }, | |
3027 | |
3028 _Future__chainFutures_closure0: {"": "Closure;target_1", | |
3029 call$2: function(error, stackTrace) { | |
3030 this.target_1._completeError$2(error, stackTrace); | |
3031 }, | |
3032 call$1: function(error) { | |
3033 return this.call$2(error, null); | |
3034 }, | |
3035 $is_args2: true, | |
3036 $is_args1: true | |
3037 }, | |
3038 | |
3039 _Future__asyncComplete_closure: {"": "Closure;this_0,value_1", | |
3040 call$0: function() { | |
3041 this.this_0._complete$1(this.value_1); | |
3042 } | |
3043 }, | |
3044 | |
3045 _Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2", | |
3046 call$0: function() { | |
3047 this.this_0._completeError$2(this.error_1, this.stackTrace_2); | |
3048 } | |
3049 }, | |
3050 | |
3051 _Future__propagateToListeners_closure: {"": "Closure;box_2,listener_3", | |
3052 call$0: function() { | |
3053 P._Future__propagateToListeners(this.box_2.source_4, this.listener_3); | |
3054 } | |
3055 }, | |
3056 | |
3057 _Future__propagateToListeners_closure0: {"": "Closure;box_2,box_1,hasError_4,lis
tener_5", | |
3058 call$0: function() { | |
3059 var t1, value, asyncError, test, matchesTest, errorCallback, e, s, t2, t3, t
4, exception; | |
3060 t1 = {}; | |
3061 try { | |
3062 t2 = this.box_2; | |
3063 if (!this.hasError_4) { | |
3064 value = t2.source_4.get$_value(); | |
3065 t2 = this.listener_5; | |
3066 t3 = t2._state === 2 ? null : t2._onValueCallback; | |
3067 t4 = this.box_1; | |
3068 if (t3 != null) { | |
3069 t4.listenerValueOrError_2 = t2._onValue$1(value); | |
3070 t4.listenerHasValue_1 = true; | |
3071 } else { | |
3072 t4.listenerValueOrError_2 = value; | |
3073 t4.listenerHasValue_1 = true; | |
3074 } | |
3075 } else { | |
3076 asyncError = t2.source_4.get$_error(); | |
3077 t2 = this.listener_5; | |
3078 test = t2._state === 2 ? null : t2._errorTestCallback; | |
3079 matchesTest = true; | |
3080 if (test != null) | |
3081 matchesTest = test.call$1(J.get$error$x(asyncError)); | |
3082 if (matchesTest === true) | |
3083 t3 = (t2._state === 2 ? null : t2._onErrorCallback) != null; | |
3084 else | |
3085 t3 = false; | |
3086 if (t3) { | |
3087 errorCallback = t2._state === 2 ? null : t2._onErrorCallback; | |
3088 t2 = this.box_1; | |
3089 t2.listenerValueOrError_2 = P._invokeErrorHandler(errorCallback, J.get
$error$x(asyncError), asyncError.get$stackTrace()); | |
3090 t2.listenerHasValue_1 = true; | |
3091 } else { | |
3092 t2 = this.box_1; | |
3093 t2.listenerValueOrError_2 = asyncError; | |
3094 t2.listenerHasValue_1 = false; | |
3095 } | |
3096 } | |
3097 t2 = this.listener_5; | |
3098 if ((t2._state === 2 ? null : t2._whenCompleteActionCallback) != null) { | |
3099 t1.completeResult_0 = t2._whenCompleteAction$0(); | |
3100 t3 = t1.completeResult_0; | |
3101 t4 = J.getInterceptor(t3); | |
3102 if (typeof t3 === "object" && t3 !== null && !!t4.$isFuture) { | |
3103 t2.set$_isChained(true); | |
3104 t1.completeResult_0.then$2$onError(new P._Future__propagateToListeners
__closure(this.box_2, t2), new P._Future__propagateToListeners__closure0(t1, t2)
); | |
3105 this.box_1.isPropagationAborted_3 = true; | |
3106 } | |
3107 } | |
3108 } catch (exception) { | |
3109 t1 = H.unwrapException(exception); | |
3110 e = t1; | |
3111 s = new H._StackTrace(exception, null); | |
3112 if (this.hasError_4) { | |
3113 t1 = J.get$error$x(this.box_2.source_4.get$_error()); | |
3114 t2 = e; | |
3115 t2 = t1 == null ? t2 == null : t1 === t2; | |
3116 t1 = t2; | |
3117 } else | |
3118 t1 = false; | |
3119 t2 = this.box_1; | |
3120 if (t1) | |
3121 t2.listenerValueOrError_2 = this.box_2.source_4.get$_error(); | |
3122 else | |
3123 t2.listenerValueOrError_2 = new P._AsyncError(P._asyncError(e, s), s); | |
3124 this.box_1.listenerHasValue_1 = false; | |
3125 } | |
3126 | |
3127 } | |
3128 }, | |
3129 | |
3130 _Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6", | |
3131 call$1: function(ignored) { | |
3132 P._Future__propagateToListeners(this.box_2.source_4, this.listener_6); | |
3133 }, | |
3134 $is_args1: true | |
3135 }, | |
3136 | |
3137 _Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7", | |
3138 call$2: function(error, stackTrace) { | |
3139 var t1, t2, t3; | |
3140 t1 = this.box_0; | |
3141 t2 = t1.completeResult_0; | |
3142 t3 = J.getInterceptor(t2); | |
3143 if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) { | |
3144 t1.completeResult_0 = P._Future$(null); | |
3145 t1.completeResult_0._setError$2(error, stackTrace); | |
3146 } | |
3147 P._Future__propagateToListeners(t1.completeResult_0, this.listener_7); | |
3148 }, | |
3149 call$1: function(error) { | |
3150 return this.call$2(error, null); | |
3151 }, | |
3152 $is_args2: true, | |
3153 $is_args1: true | |
3154 }, | |
3155 | |
3156 Stream: {"": "Object;", | |
3157 forEach$1: function(_, action) { | |
3158 var t1, future; | |
3159 t1 = {}; | |
3160 future = P._Future$(null); | |
3161 t1.subscription_0 = null; | |
3162 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()); | |
3163 return future; | |
3164 }, | |
3165 get$length: function(_) { | |
3166 var t1, future; | |
3167 t1 = {}; | |
3168 future = P._Future$(J.JSInt); | |
3169 t1.count_0 = 0; | |
3170 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1),
true, new P.Stream_length_closure0(t1, future), future.get$_completeError()); | |
3171 return future; | |
3172 }, | |
3173 get$isEmpty: function(_) { | |
3174 var t1, future; | |
3175 t1 = {}; | |
3176 future = P._Future$(J.JSBool); | |
3177 t1.subscription_0 = null; | |
3178 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
isEmpty_closure(t1, future), true, new P.Stream_isEmpty_closure0(future), future
.get$_completeError()); | |
3179 return future; | |
3180 } | |
3181 }, | |
3182 | |
3183 Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3", | |
3184 call$1: function(element) { | |
3185 P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.
Stream_forEach__closure0(), P._cancelAndErrorClosure(this.box_0.subscription_0,
this.future_3)); | |
3186 }, | |
3187 $is_args1: true | |
3188 }, | |
3189 | |
3190 Stream_forEach__closure: {"": "Closure;action_4,element_5", | |
3191 call$0: function() { | |
3192 return this.action_4.call$1(this.element_5); | |
3193 } | |
3194 }, | |
3195 | |
3196 Stream_forEach__closure0: {"": "Closure;", | |
3197 call$1: function(_) { | |
3198 }, | |
3199 $is_args1: true | |
3200 }, | |
3201 | |
3202 Stream_forEach_closure0: {"": "Closure;future_6", | |
3203 call$0: function() { | |
3204 this.future_6._complete$1(null); | |
3205 } | |
3206 }, | |
3207 | |
3208 Stream_length_closure: {"": "Closure;box_0", | |
3209 call$1: function(_) { | |
3210 var t1 = this.box_0; | |
3211 t1.count_0 = t1.count_0 + 1; | |
3212 }, | |
3213 $is_args1: true | |
3214 }, | |
3215 | |
3216 Stream_length_closure0: {"": "Closure;box_0,future_1", | |
3217 call$0: function() { | |
3218 this.future_1._complete$1(this.box_0.count_0); | |
3219 } | |
3220 }, | |
3221 | |
3222 Stream_isEmpty_closure: {"": "Closure;box_0,future_1", | |
3223 call$1: function(_) { | |
3224 P._cancelAndValue(this.box_0.subscription_0, this.future_1, false); | |
3225 }, | |
3226 $is_args1: true | |
3227 }, | |
3228 | |
3229 Stream_isEmpty_closure0: {"": "Closure;future_2", | |
3230 call$0: function() { | |
3231 this.future_2._complete$1(true); | |
3232 } | |
3233 }, | |
3234 | |
3235 StreamSubscription: {"": "Object;"}, | |
3236 | |
3237 _StreamController: {"": "Object;", | |
3238 get$_pendingEvents: function() { | |
3239 if ((this._state & 8) === 0) | |
3240 return this._varData; | |
3241 return this._varData.get$varData(); | |
3242 }, | |
3243 _ensurePendingEvents$0: function() { | |
3244 if ((this._state & 8) === 0) { | |
3245 if (this._varData == null) | |
3246 this._varData = new P._StreamImplEvents(null, null, 0); | |
3247 return this._varData; | |
3248 } | |
3249 var t1 = this._varData.get$varData(); | |
3250 return t1; | |
3251 }, | |
3252 get$_subscription: function() { | |
3253 if ((this._state & 8) !== 0) | |
3254 return this._varData.get$varData(); | |
3255 return this._varData; | |
3256 }, | |
3257 _badEventState$0: function() { | |
3258 if ((this._state & 4) !== 0) | |
3259 return new P.StateError("Cannot add event after closing"); | |
3260 return new P.StateError("Cannot add event while adding a stream"); | |
3261 }, | |
3262 _ensureDoneFuture$0: function() { | |
3263 if (this._doneFuture == null) { | |
3264 this._doneFuture = P._Future$(null); | |
3265 if ((this._state & 2) !== 0) | |
3266 this._doneFuture._complete$1(null); | |
3267 } | |
3268 return this._doneFuture; | |
3269 }, | |
3270 close$0: function(_) { | |
3271 var t1 = this._state; | |
3272 if ((t1 & 4) !== 0) | |
3273 return this._doneFuture; | |
3274 if (t1 >= 4) | |
3275 throw H.wrapException(this._badEventState$0()); | |
3276 this._state = (t1 | 4) >>> 0; | |
3277 this._ensureDoneFuture$0(); | |
3278 t1 = this._state; | |
3279 if ((t1 & 1) !== 0) | |
3280 this._sendDone$0(); | |
3281 else if ((t1 & 3) === 0) { | |
3282 t1 = this._ensurePendingEvents$0(); | |
3283 t1.add$1(t1, C.C__DelayedDone); | |
3284 } | |
3285 return this._doneFuture; | |
3286 }, | |
3287 _async$_add$1: function(value) { | |
3288 var t1 = this._state; | |
3289 if ((t1 & 1) !== 0) | |
3290 this._sendData$1(value); | |
3291 else if ((t1 & 3) === 0) { | |
3292 t1 = this._ensurePendingEvents$0(); | |
3293 t1.add$1(t1, new P._DelayedData(value, null)); | |
3294 } | |
3295 }, | |
3296 _subscribe$1: function(cancelOnError) { | |
3297 var t1, t2, subscription, pendingEvents; | |
3298 if ((this._state & 3) !== 0) | |
3299 throw H.wrapException(P.StateError$("Stream has already been listened to."
)); | |
3300 t1 = $.Zone__current; | |
3301 t2 = cancelOnError ? 1 : 0; | |
3302 subscription = new P._ControllerSubscription(this, null, null, null, t1, t2,
null, null); | |
3303 H.setRuntimeTypeInfo(subscription, [null]); | |
3304 pendingEvents = this.get$_pendingEvents(); | |
3305 this._state = (this._state | 1) >>> 0; | |
3306 if ((this._state & 8) !== 0) | |
3307 this._varData.set$varData(subscription); | |
3308 else | |
3309 this._varData = subscription; | |
3310 subscription._setPendingEvents$1(pendingEvents); | |
3311 subscription._guardCallback$1(new P._StreamController__subscribe_closure(thi
s)); | |
3312 return subscription; | |
3313 }, | |
3314 _recordCancel$1: function(subscription) { | |
3315 var t1, future; | |
3316 if ((this._state & 8) !== 0) | |
3317 this._varData.cancel$0(); | |
3318 this._varData = null; | |
3319 this._state = (this._state & 4294967286 | 2) >>> 0; | |
3320 t1 = new P._StreamController__recordCancel_complete(this); | |
3321 future = P._runGuarded(this.get$_onCancel()); | |
3322 if (future != null) | |
3323 future = future.whenComplete$1(t1); | |
3324 else | |
3325 t1.call$0(); | |
3326 return future; | |
3327 } | |
3328 }, | |
3329 | |
3330 _StreamController__subscribe_closure: {"": "Closure;this_0", | |
3331 call$0: function() { | |
3332 P._runGuarded(this.this_0.get$_onListen()); | |
3333 } | |
3334 }, | |
3335 | |
3336 _StreamController__recordCancel_complete: {"": "Closure;this_0", | |
3337 call$0: function() { | |
3338 var t1 = this.this_0._doneFuture; | |
3339 if (t1 != null && t1._state === 0) | |
3340 t1._asyncComplete$1(null); | |
3341 } | |
3342 }, | |
3343 | |
3344 _SyncStreamControllerDispatch: {"": "Object;", | |
3345 _sendData$1: function(data) { | |
3346 this.get$_subscription()._async$_add$1(data); | |
3347 }, | |
3348 _sendDone$0: function() { | |
3349 this.get$_subscription()._close$0(); | |
3350 } | |
3351 }, | |
3352 | |
3353 _AsyncStreamControllerDispatch: {"": "Object;", | |
3354 _sendData$1: function(data) { | |
3355 this.get$_subscription()._addPending$1(new P._DelayedData(data, null)); | |
3356 }, | |
3357 _sendDone$0: function() { | |
3358 this.get$_subscription()._addPending$1(C.C__DelayedDone); | |
3359 } | |
3360 }, | |
3361 | |
3362 _AsyncStreamController: {"": "_StreamController__AsyncStreamControllerDispatch;_
onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | |
3363 | |
3364 _StreamController__AsyncStreamControllerDispatch: {"": "_StreamController+_Async
StreamControllerDispatch;"}, | |
3365 | |
3366 _SyncStreamController: {"": "_StreamController__SyncStreamControllerDispatch;_on
Listen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | |
3367 | |
3368 _StreamController__SyncStreamControllerDispatch: {"": "_StreamController+_SyncSt
reamControllerDispatch;"}, | |
3369 | |
3370 _ControllerStream: {"": "_StreamImpl;_async$_controller", | |
3371 _createSubscription$1: function(cancelOnError) { | |
3372 return this._async$_controller._subscribe$1(cancelOnError); | |
3373 }, | |
3374 get$hashCode: function(_) { | |
3375 return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>
> 0; | |
3376 }, | |
3377 $eq: function(_, other) { | |
3378 var t1; | |
3379 if (other == null) | |
3380 return false; | |
3381 if (this === other) | |
3382 return true; | |
3383 t1 = J.getInterceptor(other); | |
3384 if (typeof other !== "object" || other === null || !t1.$is_ControllerStream) | |
3385 return false; | |
3386 return other._async$_controller === this._async$_controller; | |
3387 }, | |
3388 $is_ControllerStream: true, | |
3389 $as_StreamImpl: null | |
3390 }, | |
3391 | |
3392 _ControllerSubscription: {"": "_BufferingStreamSubscription;_async$_controller,_
async$_onData,_onError,_onDone,_zone,_state,_cancelFuture,_pending", | |
3393 _onCancel$0: function() { | |
3394 return this._async$_controller._recordCancel$1(this); | |
3395 }, | |
3396 _onPause$0: function() { | |
3397 var t1, addState; | |
3398 t1 = this._async$_controller; | |
3399 if ((t1._state & 8) !== 0) { | |
3400 addState = t1._varData; | |
3401 addState.pause$0(addState); | |
3402 } | |
3403 P._runGuarded(t1.get$_onPause()); | |
3404 }, | |
3405 get$_onPause: function() { | |
3406 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onPau
se$0, null, "_onPause$0"); | |
3407 }, | |
3408 _onResume$0: function() { | |
3409 var t1 = this._async$_controller; | |
3410 if ((t1._state & 8) !== 0) | |
3411 t1._varData.resume$0(); | |
3412 P._runGuarded(t1.get$_onResume()); | |
3413 }, | |
3414 get$_onResume: function() { | |
3415 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onRes
ume$0, null, "_onResume$0"); | |
3416 }, | |
3417 $as_BufferingStreamSubscription: null | |
3418 }, | |
3419 | |
3420 _EventSink: {"": "Object;"}, | |
3421 | |
3422 _BufferingStreamSubscription: {"": "Object;_async$_onData,_onError,_onDone,_zone
<,_state,_cancelFuture,_pending", | |
3423 _setPendingEvents$1: function(pendingEvents) { | |
3424 if (pendingEvents == null) | |
3425 return; | |
3426 this._pending = pendingEvents; | |
3427 if (!pendingEvents.get$isEmpty(pendingEvents)) { | |
3428 this._state = (this._state | 64) >>> 0; | |
3429 this._pending.schedule$1(this); | |
3430 } | |
3431 }, | |
3432 onData$1: function(handleData) { | |
3433 $.Zone__current.toString; | |
3434 this._async$_onData = handleData; | |
3435 }, | |
3436 onError$1: function(_, handleError) { | |
3437 this._onError = P._registerErrorHandler(handleError, $.Zone__current); | |
3438 }, | |
3439 onDone$1: function(handleDone) { | |
3440 $.Zone__current.toString; | |
3441 this._onDone = handleDone; | |
3442 }, | |
3443 pause$1: function(_, resumeSignal) { | |
3444 var t1 = this._state; | |
3445 if ((t1 & 8) !== 0) | |
3446 return; | |
3447 this._state = (t1 + 128 | 4) >>> 0; | |
3448 if (t1 < 128 && this._pending != null) | |
3449 this._pending.cancelSchedule$0(); | |
3450 if ((t1 & 4) === 0 && (this._state & 32) === 0) | |
3451 this._guardCallback$1(this.get$_onPause()); | |
3452 }, | |
3453 pause$0: function($receiver) { | |
3454 return this.pause$1($receiver, null); | |
3455 }, | |
3456 resume$0: function() { | |
3457 var t1, t2; | |
3458 t1 = this._state; | |
3459 if ((t1 & 8) !== 0) | |
3460 return; | |
3461 if (t1 >= 128) { | |
3462 this._state = t1 - 128; | |
3463 t1 = this._state; | |
3464 if (t1 < 128) { | |
3465 if ((t1 & 64) !== 0) { | |
3466 t2 = this._pending; | |
3467 t2 = !t2.get$isEmpty(t2); | |
3468 } else | |
3469 t2 = false; | |
3470 if (t2) | |
3471 this._pending.schedule$1(this); | |
3472 else { | |
3473 this._state = (t1 & 4294967291) >>> 0; | |
3474 if ((this._state & 32) === 0) | |
3475 this._guardCallback$1(this.get$_onResume()); | |
3476 } | |
3477 } | |
3478 } | |
3479 }, | |
3480 cancel$0: function() { | |
3481 this._state = (this._state & 4294967279) >>> 0; | |
3482 if ((this._state & 8) !== 0) | |
3483 return this._cancelFuture; | |
3484 this._cancel$0(); | |
3485 return this._cancelFuture; | |
3486 }, | |
3487 get$_mayResumeInput: function() { | |
3488 if (this._state < 128) { | |
3489 var t1 = this._pending; | |
3490 t1 = t1 == null || t1.get$isEmpty(t1); | |
3491 } else | |
3492 t1 = false; | |
3493 return t1; | |
3494 }, | |
3495 _cancel$0: function() { | |
3496 this._state = (this._state | 8) >>> 0; | |
3497 if ((this._state & 64) !== 0) | |
3498 this._pending.cancelSchedule$0(); | |
3499 if ((this._state & 32) === 0) | |
3500 this._pending = null; | |
3501 this._cancelFuture = this._onCancel$0(); | |
3502 }, | |
3503 _async$_add$1: function(data) { | |
3504 var t1 = this._state; | |
3505 if ((t1 & 8) !== 0) | |
3506 return; | |
3507 if (t1 < 32) | |
3508 this._sendData$1(data); | |
3509 else | |
3510 this._addPending$1(new P._DelayedData(data, null)); | |
3511 }, | |
3512 _close$0: function() { | |
3513 var t1 = this._state; | |
3514 if ((t1 & 8) !== 0) | |
3515 return; | |
3516 this._state = (t1 | 2) >>> 0; | |
3517 if (this._state < 32) | |
3518 this._sendDone$0(); | |
3519 else | |
3520 this._addPending$1(C.C__DelayedDone); | |
3521 }, | |
3522 _onPause$0: function() { | |
3523 }, | |
3524 get$_onPause: function() { | |
3525 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onPause$0, null, "_onPause$0"); | |
3526 }, | |
3527 _onResume$0: function() { | |
3528 }, | |
3529 get$_onResume: function() { | |
3530 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onResume$0, null, "_onResume$0"); | |
3531 }, | |
3532 _onCancel$0: function() { | |
3533 }, | |
3534 _addPending$1: function($event) { | |
3535 var pending, t1; | |
3536 pending = this._pending; | |
3537 if (pending == null) { | |
3538 pending = new P._StreamImplEvents(null, null, 0); | |
3539 this._pending = pending; | |
3540 } | |
3541 pending.add$1(pending, $event); | |
3542 t1 = this._state; | |
3543 if ((t1 & 64) === 0) { | |
3544 this._state = (t1 | 64) >>> 0; | |
3545 if (this._state < 128) | |
3546 this._pending.schedule$1(this); | |
3547 } | |
3548 }, | |
3549 _sendData$1: function(data) { | |
3550 var t1 = this._state; | |
3551 this._state = (t1 | 32) >>> 0; | |
3552 this._zone.runUnaryGuarded$2(this._async$_onData, data); | |
3553 this._state = (this._state & 4294967263) >>> 0; | |
3554 this._checkState$1((t1 & 4) !== 0); | |
3555 }, | |
3556 _sendDone$0: function() { | |
3557 var t1, t2, t3; | |
3558 t1 = new P._BufferingStreamSubscription__sendDone_sendDone(this); | |
3559 this._cancel$0(); | |
3560 this._state = (this._state | 16) >>> 0; | |
3561 t2 = this._cancelFuture; | |
3562 t3 = J.getInterceptor(t2); | |
3563 if (typeof t2 === "object" && t2 !== null && !!t3.$isFuture) | |
3564 t2.whenComplete$1(t1); | |
3565 else | |
3566 t1.call$0(); | |
3567 }, | |
3568 _guardCallback$1: function(callback) { | |
3569 var t1 = this._state; | |
3570 this._state = (t1 | 32) >>> 0; | |
3571 callback.call$0(); | |
3572 this._state = (this._state & 4294967263) >>> 0; | |
3573 this._checkState$1((t1 & 4) !== 0); | |
3574 }, | |
3575 _checkState$1: function(wasInputPaused) { | |
3576 var t1, t2, isInputPaused; | |
3577 t1 = this._state; | |
3578 if ((t1 & 64) !== 0) { | |
3579 t2 = this._pending; | |
3580 t2 = t2.get$isEmpty(t2); | |
3581 } else | |
3582 t2 = false; | |
3583 if (t2) { | |
3584 this._state = (t1 & 4294967231) >>> 0; | |
3585 if ((this._state & 4) !== 0 && this.get$_mayResumeInput()) | |
3586 this._state = (this._state & 4294967291) >>> 0; | |
3587 } | |
3588 for (; true; wasInputPaused = isInputPaused) { | |
3589 t1 = this._state; | |
3590 if ((t1 & 8) !== 0) { | |
3591 this._pending = null; | |
3592 return; | |
3593 } | |
3594 isInputPaused = (t1 & 4) !== 0; | |
3595 if (wasInputPaused === isInputPaused) | |
3596 break; | |
3597 this._state = (t1 ^ 32) >>> 0; | |
3598 if (isInputPaused) | |
3599 this._onPause$0(); | |
3600 else | |
3601 this._onResume$0(); | |
3602 this._state = (this._state & 4294967263) >>> 0; | |
3603 } | |
3604 t1 = this._state; | |
3605 if ((t1 & 64) !== 0 && t1 < 128) | |
3606 this._pending.schedule$1(this); | |
3607 }, | |
3608 static: { | |
3609 "": "_BufferingStreamSubscription__STATE_CANCEL_ON_ERROR,_BufferingStreamSubscri
ption__STATE_CLOSED,_BufferingStreamSubscription__STATE_INPUT_PAUSED,_BufferingS
treamSubscription__STATE_CANCELED,_BufferingStreamSubscription__STATE_WAIT_FOR_C
ANCEL,_BufferingStreamSubscription__STATE_IN_CALLBACK,_BufferingStreamSubscripti
on__STATE_HAS_PENDING,_BufferingStreamSubscription__STATE_PAUSE_COUNT,_Buffering
StreamSubscription__STATE_PAUSE_COUNT_SHIFT", | |
3610 } | |
3611 | |
3612 }, | |
3613 | |
3614 _BufferingStreamSubscription__sendDone_sendDone: {"": "Closure;this_0", | |
3615 call$0: function() { | |
3616 var t1, t2; | |
3617 t1 = this.this_0; | |
3618 t2 = t1._state; | |
3619 if ((t2 & 16) === 0) | |
3620 return; | |
3621 t1._state = (t2 | 42) >>> 0; | |
3622 t1._zone.runGuarded$1(t1._onDone); | |
3623 t1._state = (t1._state & 4294967263) >>> 0; | |
3624 } | |
3625 }, | |
3626 | |
3627 _StreamImpl: {"": "Stream;", | |
3628 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
3629 var subscription = this._createSubscription$1(true === cancelOnError); | |
3630 subscription.onData$1(onData); | |
3631 subscription.onError$1(subscription, onError); | |
3632 subscription.onDone$1(onDone); | |
3633 return subscription; | |
3634 }, | |
3635 _createSubscription$1: function(cancelOnError) { | |
3636 var t1, t2; | |
3637 t1 = $.Zone__current; | |
3638 t2 = cancelOnError ? 1 : 0; | |
3639 return new P._BufferingStreamSubscription(null, null, null, t1, t2, null, nu
ll); | |
3640 }, | |
3641 $asStream: null | |
3642 }, | |
3643 | |
3644 _DelayedEvent: {"": "Object;next@"}, | |
3645 | |
3646 _DelayedData: {"": "_DelayedEvent;value,next", | |
3647 perform$1: function(dispatch) { | |
3648 dispatch._sendData$1(this.value); | |
3649 } | |
3650 }, | |
3651 | |
3652 _DelayedDone: {"": "Object;", | |
3653 perform$1: function(dispatch) { | |
3654 dispatch._sendDone$0(); | |
3655 }, | |
3656 get$next: function() { | |
3657 return; | |
3658 }, | |
3659 set$next: function(_) { | |
3660 throw H.wrapException(P.StateError$("No events after a done.")); | |
3661 } | |
3662 }, | |
3663 | |
3664 _PendingEvents: {"": "Object;", | |
3665 schedule$1: function(dispatch) { | |
3666 var t1 = this._state; | |
3667 if (t1 === 1) | |
3668 return; | |
3669 if (t1 >= 1) { | |
3670 this._state = 1; | |
3671 return; | |
3672 } | |
3673 P.scheduleMicrotask(new P._PendingEvents_schedule_closure(this, dispatch)); | |
3674 this._state = 1; | |
3675 }, | |
3676 cancelSchedule$0: function() { | |
3677 if (this._state === 1) | |
3678 this._state = 3; | |
3679 } | |
3680 }, | |
3681 | |
3682 _PendingEvents_schedule_closure: {"": "Closure;this_0,dispatch_1", | |
3683 call$0: function() { | |
3684 var t1, oldState; | |
3685 t1 = this.this_0; | |
3686 oldState = t1._state; | |
3687 t1._state = 0; | |
3688 if (oldState === 3) | |
3689 return; | |
3690 t1.handleNext$1(this.dispatch_1); | |
3691 } | |
3692 }, | |
3693 | |
3694 _StreamImplEvents: {"": "_PendingEvents;firstPendingEvent,lastPendingEvent,_stat
e", | |
3695 get$isEmpty: function(_) { | |
3696 return this.lastPendingEvent == null; | |
3697 }, | |
3698 add$1: function(_, $event) { | |
3699 var t1 = this.lastPendingEvent; | |
3700 if (t1 == null) { | |
3701 this.lastPendingEvent = $event; | |
3702 this.firstPendingEvent = $event; | |
3703 } else { | |
3704 t1.set$next($event); | |
3705 this.lastPendingEvent = $event; | |
3706 } | |
3707 }, | |
3708 handleNext$1: function(dispatch) { | |
3709 var $event = this.firstPendingEvent; | |
3710 this.firstPendingEvent = $event.get$next(); | |
3711 if (this.firstPendingEvent == null) | |
3712 this.lastPendingEvent = null; | |
3713 $event.perform$1(dispatch); | |
3714 } | |
3715 }, | |
3716 | |
3717 _cancelAndError_closure: {"": "Closure;future_0,error_1,stackTrace_2", | |
3718 call$0: function() { | |
3719 return this.future_0._completeError$2(this.error_1, this.stackTrace_2); | |
3720 } | |
3721 }, | |
3722 | |
3723 _cancelAndErrorClosure_closure: {"": "Closure;subscription_0,future_1", | |
3724 call$2: function(error, stackTrace) { | |
3725 return P._cancelAndError(this.subscription_0, this.future_1, error, stackTra
ce); | |
3726 }, | |
3727 $is_args2: true | |
3728 }, | |
3729 | |
3730 _cancelAndValue_closure: {"": "Closure;future_0,value_1", | |
3731 call$0: function() { | |
3732 return this.future_0._complete$1(this.value_1); | |
3733 } | |
3734 }, | |
3735 | |
3736 _BaseZone: {"": "Object;", | |
3737 runGuarded$1: function(f) { | |
3738 var e, s, t1, exception; | |
3739 try { | |
3740 t1 = this.run$1(f); | |
3741 return t1; | |
3742 } catch (exception) { | |
3743 t1 = H.unwrapException(exception); | |
3744 e = t1; | |
3745 s = new H._StackTrace(exception, null); | |
3746 return this.handleUncaughtError$2(e, s); | |
3747 } | |
3748 | |
3749 }, | |
3750 runUnaryGuarded$2: function(f, arg) { | |
3751 var e, s, t1, exception; | |
3752 try { | |
3753 t1 = this.runUnary$2(f, arg); | |
3754 return t1; | |
3755 } catch (exception) { | |
3756 t1 = H.unwrapException(exception); | |
3757 e = t1; | |
3758 s = new H._StackTrace(exception, null); | |
3759 return this.handleUncaughtError$2(e, s); | |
3760 } | |
3761 | |
3762 }, | |
3763 bindCallback$2$runGuarded: function(f, runGuarded) { | |
3764 var registered = this.registerCallback$1(f); | |
3765 if (runGuarded) | |
3766 return new P._BaseZone_bindCallback_closure(this, registered); | |
3767 else | |
3768 return new P._BaseZone_bindCallback_closure0(this, registered); | |
3769 }, | |
3770 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { | |
3771 var registered = this.registerUnaryCallback$1(f); | |
3772 if (runGuarded) | |
3773 return new P._BaseZone_bindUnaryCallback_closure(this, registered); | |
3774 else | |
3775 return new P._BaseZone_bindUnaryCallback_closure0(this, registered); | |
3776 } | |
3777 }, | |
3778 | |
3779 _BaseZone_bindCallback_closure: {"": "Closure;this_0,registered_1", | |
3780 call$0: function() { | |
3781 return this.this_0.runGuarded$1(this.registered_1); | |
3782 } | |
3783 }, | |
3784 | |
3785 _BaseZone_bindCallback_closure0: {"": "Closure;this_2,registered_3", | |
3786 call$0: function() { | |
3787 return this.this_2.run$1(this.registered_3); | |
3788 } | |
3789 }, | |
3790 | |
3791 _BaseZone_bindUnaryCallback_closure: {"": "Closure;this_0,registered_1", | |
3792 call$1: function(arg) { | |
3793 return this.this_0.runUnaryGuarded$2(this.registered_1, arg); | |
3794 }, | |
3795 $is_args1: true | |
3796 }, | |
3797 | |
3798 _BaseZone_bindUnaryCallback_closure0: {"": "Closure;this_2,registered_3", | |
3799 call$1: function(arg) { | |
3800 return this.this_2.runUnary$2(this.registered_3, arg); | |
3801 }, | |
3802 $is_args1: true | |
3803 }, | |
3804 | |
3805 _rootHandleUncaughtError_closure: {"": "Closure;error_0,stackTrace_1", | |
3806 call$0: function() { | |
3807 P._scheduleAsyncCallback(new P._rootHandleUncaughtError__closure(this.error_
0, this.stackTrace_1)); | |
3808 } | |
3809 }, | |
3810 | |
3811 _rootHandleUncaughtError__closure: {"": "Closure;error_2,stackTrace_3", | |
3812 call$0: function() { | |
3813 var t1, trace; | |
3814 t1 = this.error_2; | |
3815 P.print("Uncaught Error: " + H.S(t1)); | |
3816 trace = this.stackTrace_3; | |
3817 if (trace == null) | |
3818 trace = P.getAttachedStackTrace(t1); | |
3819 P._attachStackTrace(t1, null); | |
3820 if (trace != null) | |
3821 P.print("Stack Trace: \n" + H.S(trace) + "\n"); | |
3822 throw H.wrapException(t1); | |
3823 } | |
3824 }, | |
3825 | |
3826 _RootZone: {"": "_BaseZone;", | |
3827 $index: function(_, key) { | |
3828 return; | |
3829 }, | |
3830 handleUncaughtError$2: function(error, stackTrace) { | |
3831 return P._rootHandleUncaughtError(this, null, this, error, stackTrace); | |
3832 }, | |
3833 run$1: function(f) { | |
3834 return P._rootRun(this, null, this, f); | |
3835 }, | |
3836 runUnary$2: function(f, arg) { | |
3837 return P._rootRunUnary(this, null, this, f, arg); | |
3838 }, | |
3839 registerCallback$1: function(f) { | |
3840 return f; | |
3841 }, | |
3842 registerUnaryCallback$1: function(f) { | |
3843 return f; | |
3844 } | |
3845 }}], | |
3846 ["dart.collection", "dart:collection", , P, { | |
3847 _HashSet__newHashTable: function() { | |
3848 var table = Object.create(null); | |
3849 table["<non-identifier-key>"] = table; | |
3850 delete table["<non-identifier-key>"]; | |
3851 return table; | |
3852 }, | |
3853 | |
3854 _defaultEquals: function(a, b) { | |
3855 return J.$eq(a, b); | |
3856 }, | |
3857 | |
3858 _defaultHashCode: function(a) { | |
3859 return J.get$hashCode$(a); | |
3860 }, | |
3861 | |
3862 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { | |
3863 var t1 = new P._HashMap(0, null, null, null, null); | |
3864 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
3865 return t1; | |
3866 }, | |
3867 | |
3868 _iterableToString: function(iterable) { | |
3869 var parts, t1; | |
3870 t1 = $.get$_toStringVisiting(); | |
3871 if (t1.contains$1(t1, iterable)) | |
3872 return "(...)"; | |
3873 t1 = $.get$_toStringVisiting(); | |
3874 t1.add$1(t1, iterable); | |
3875 parts = []; | |
3876 try { | |
3877 P._iterablePartsToStrings(iterable, parts); | |
3878 } finally { | |
3879 t1 = $.get$_toStringVisiting(); | |
3880 t1.remove$1(t1, iterable); | |
3881 } | |
3882 t1 = P.StringBuffer$("("); | |
3883 t1.writeAll$2(parts, ", "); | |
3884 t1.write$1(")"); | |
3885 return t1._contents; | |
3886 }, | |
3887 | |
3888 _iterablePartsToStrings: function(iterable, parts) { | |
3889 var it, $length, count, next, ultimateString, penultimateString, penultimate,
ultimate, ultimate0, elision; | |
3890 it = iterable.get$iterator(iterable); | |
3891 $length = 0; | |
3892 count = 0; | |
3893 while (true) { | |
3894 if (!($length < 80 || count < 3)) | |
3895 break; | |
3896 if (!it.moveNext$0()) | |
3897 return; | |
3898 next = H.S(it.get$current()); | |
3899 parts.push(next); | |
3900 $length += next.length + 2; | |
3901 ++count; | |
3902 } | |
3903 if (!it.moveNext$0()) { | |
3904 if (count <= 5) | |
3905 return; | |
3906 if (0 >= parts.length) | |
3907 throw H.ioore(parts, 0); | |
3908 ultimateString = parts.pop(); | |
3909 if (0 >= parts.length) | |
3910 throw H.ioore(parts, 0); | |
3911 penultimateString = parts.pop(); | |
3912 } else { | |
3913 penultimate = it.get$current(); | |
3914 ++count; | |
3915 if (!it.moveNext$0()) { | |
3916 if (count <= 4) { | |
3917 parts.push(H.S(penultimate)); | |
3918 return; | |
3919 } | |
3920 ultimateString = H.S(penultimate); | |
3921 if (0 >= parts.length) | |
3922 throw H.ioore(parts, 0); | |
3923 penultimateString = parts.pop(); | |
3924 $length += ultimateString.length + 2; | |
3925 } else { | |
3926 ultimate = it.get$current(); | |
3927 ++count; | |
3928 for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { | |
3929 ultimate0 = it.get$current(); | |
3930 ++count; | |
3931 if (count > 100) { | |
3932 while (true) { | |
3933 if (!($length > 75 && count > 3)) | |
3934 break; | |
3935 if (0 >= parts.length) | |
3936 throw H.ioore(parts, 0); | |
3937 $length -= parts.pop().length + 2; | |
3938 --count; | |
3939 } | |
3940 parts.push("..."); | |
3941 return; | |
3942 } | |
3943 } | |
3944 penultimateString = H.S(penultimate); | |
3945 ultimateString = H.S(ultimate); | |
3946 $length += ultimateString.length + penultimateString.length + 4; | |
3947 } | |
3948 } | |
3949 if (count > parts.length + 2) { | |
3950 $length += 5; | |
3951 elision = "..."; | |
3952 } else | |
3953 elision = null; | |
3954 while (true) { | |
3955 if (!($length > 80 && parts.length > 3)) | |
3956 break; | |
3957 if (0 >= parts.length) | |
3958 throw H.ioore(parts, 0); | |
3959 $length -= parts.pop().length + 2; | |
3960 if (elision == null) { | |
3961 $length += 5; | |
3962 elision = "..."; | |
3963 } | |
3964 } | |
3965 if (elision != null) | |
3966 parts.push(elision); | |
3967 parts.push(penultimateString); | |
3968 parts.push(ultimateString); | |
3969 }, | |
3970 | |
3971 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { | |
3972 var t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); | |
3973 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
3974 return t1; | |
3975 }, | |
3976 | |
3977 Maps_mapToString: function(m) { | |
3978 var t1, result, i, t2; | |
3979 t1 = {}; | |
3980 for (i = 0; i < $.get$Maps__toStringList().length; ++i) { | |
3981 t2 = $.get$Maps__toStringList(); | |
3982 if (i >= t2.length) | |
3983 throw H.ioore(t2, i); | |
3984 if (t2[i] === m) | |
3985 return "{...}"; | |
3986 } | |
3987 result = P.StringBuffer$(""); | |
3988 try { | |
3989 $.get$Maps__toStringList().push(m); | |
3990 result.write$1("{"); | |
3991 t1.first_0 = true; | |
3992 J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); | |
3993 result.write$1("}"); | |
3994 } finally { | |
3995 t1 = $.get$Maps__toStringList(); | |
3996 if (0 >= t1.length) | |
3997 throw H.ioore(t1, 0); | |
3998 t1.pop(); | |
3999 } | |
4000 return result.get$_contents(); | |
4001 }, | |
4002 | |
4003 _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_keys", | |
4004 get$length: function(_) { | |
4005 return this._collection$_length; | |
4006 }, | |
4007 get$isEmpty: function(_) { | |
4008 return this._collection$_length === 0; | |
4009 }, | |
4010 get$keys: function(_) { | |
4011 var t1 = new P.HashMapKeyIterable(this); | |
4012 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | |
4013 return t1; | |
4014 }, | |
4015 get$values: function(_) { | |
4016 var t1 = new P.HashMapKeyIterable(this); | |
4017 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | |
4018 return H.MappedIterable_MappedIterable(t1, new P._HashMap_values_closure(thi
s), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); | |
4019 }, | |
4020 $index: function(_, key) { | |
4021 var strings, t1, entry, nums, rest, bucket, index; | |
4022 if (typeof key === "string" && key !== "__proto__") { | |
4023 strings = this._strings; | |
4024 if (strings == null) | |
4025 t1 = null; | |
4026 else { | |
4027 entry = strings[key]; | |
4028 t1 = entry === strings ? null : entry; | |
4029 } | |
4030 return t1; | |
4031 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4032 nums = this._nums; | |
4033 if (nums == null) | |
4034 t1 = null; | |
4035 else { | |
4036 entry = nums[key]; | |
4037 t1 = entry === nums ? null : entry; | |
4038 } | |
4039 return t1; | |
4040 } else { | |
4041 rest = this._rest; | |
4042 if (rest == null) | |
4043 return; | |
4044 bucket = rest[this._computeHashCode$1(key)]; | |
4045 index = this._findBucketIndex$2(bucket, key); | |
4046 return index < 0 ? null : bucket[index + 1]; | |
4047 } | |
4048 }, | |
4049 $indexSet: function(_, key, value) { | |
4050 var strings, nums, rest, hash, bucket, index; | |
4051 if (typeof key === "string" && key !== "__proto__") { | |
4052 strings = this._strings; | |
4053 if (strings == null) { | |
4054 strings = P._HashMap__newHashTable(); | |
4055 this._strings = strings; | |
4056 } | |
4057 this._addHashTableEntry$3(strings, key, value); | |
4058 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4059 nums = this._nums; | |
4060 if (nums == null) { | |
4061 nums = P._HashMap__newHashTable(); | |
4062 this._nums = nums; | |
4063 } | |
4064 this._addHashTableEntry$3(nums, key, value); | |
4065 } else { | |
4066 rest = this._rest; | |
4067 if (rest == null) { | |
4068 rest = P._HashMap__newHashTable(); | |
4069 this._rest = rest; | |
4070 } | |
4071 hash = this._computeHashCode$1(key); | |
4072 bucket = rest[hash]; | |
4073 if (bucket == null) { | |
4074 P._HashMap__setTableEntry(rest, hash, [key, value]); | |
4075 this._collection$_length = this._collection$_length + 1; | |
4076 this._keys = null; | |
4077 } else { | |
4078 index = this._findBucketIndex$2(bucket, key); | |
4079 if (index >= 0) | |
4080 bucket[index + 1] = value; | |
4081 else { | |
4082 bucket.push(key, value); | |
4083 this._collection$_length = this._collection$_length + 1; | |
4084 this._keys = null; | |
4085 } | |
4086 } | |
4087 } | |
4088 }, | |
4089 forEach$1: function(_, action) { | |
4090 var keys, $length, i, key; | |
4091 keys = this._computeKeys$0(); | |
4092 for ($length = keys.length, i = 0; i < $length; ++i) { | |
4093 key = keys[i]; | |
4094 action.call$2(key, this.$index(this, key)); | |
4095 if (keys !== this._keys) | |
4096 throw H.wrapException(P.ConcurrentModificationError$(this)); | |
4097 } | |
4098 }, | |
4099 _computeKeys$0: function() { | |
4100 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; | |
4101 t1 = this._keys; | |
4102 if (t1 != null) | |
4103 return t1; | |
4104 result = P.List_List(this._collection$_length, null); | |
4105 strings = this._strings; | |
4106 if (strings != null) { | |
4107 names = Object.getOwnPropertyNames(strings); | |
4108 entries = names.length; | |
4109 for (index = 0, i = 0; i < entries; ++i) { | |
4110 result[index] = names[i]; | |
4111 ++index; | |
4112 } | |
4113 } else | |
4114 index = 0; | |
4115 nums = this._nums; | |
4116 if (nums != null) { | |
4117 names = Object.getOwnPropertyNames(nums); | |
4118 entries = names.length; | |
4119 for (i = 0; i < entries; ++i) { | |
4120 result[index] = +names[i]; | |
4121 ++index; | |
4122 } | |
4123 } | |
4124 rest = this._rest; | |
4125 if (rest != null) { | |
4126 names = Object.getOwnPropertyNames(rest); | |
4127 entries = names.length; | |
4128 for (i = 0; i < entries; ++i) { | |
4129 bucket = rest[names[i]]; | |
4130 $length = bucket.length; | |
4131 for (i0 = 0; i0 < $length; i0 += 2) { | |
4132 result[index] = bucket[i0]; | |
4133 ++index; | |
4134 } | |
4135 } | |
4136 } | |
4137 this._keys = result; | |
4138 return result; | |
4139 }, | |
4140 _addHashTableEntry$3: function(table, key, value) { | |
4141 if (table[key] == null) { | |
4142 this._collection$_length = this._collection$_length + 1; | |
4143 this._keys = null; | |
4144 } | |
4145 P._HashMap__setTableEntry(table, key, value); | |
4146 }, | |
4147 _computeHashCode$1: function(key) { | |
4148 return J.get$hashCode$(key) & 0x3ffffff; | |
4149 }, | |
4150 _findBucketIndex$2: function(bucket, key) { | |
4151 var $length, i; | |
4152 if (bucket == null) | |
4153 return -1; | |
4154 $length = bucket.length; | |
4155 for (i = 0; i < $length; i += 2) | |
4156 if (J.$eq(bucket[i], key)) | |
4157 return i; | |
4158 return -1; | |
4159 }, | |
4160 $isMap: true, | |
4161 $asMap: null, | |
4162 static: { | |
4163 _HashMap__setTableEntry: function(table, key, value) { | |
4164 if (value == null) | |
4165 table[key] = table; | |
4166 else | |
4167 table[key] = value; | |
4168 }, | |
4169 | |
4170 _HashMap__newHashTable: function() { | |
4171 var table = Object.create(null); | |
4172 P._HashMap__setTableEntry(table, "<non-identifier-key>", table); | |
4173 delete table["<non-identifier-key>"]; | |
4174 return table; | |
4175 }} | |
4176 | |
4177 }, | |
4178 | |
4179 _HashMap_values_closure: {"": "Closure;this_0", | |
4180 call$1: function(each) { | |
4181 var t1 = this.this_0; | |
4182 return t1.$index(t1, each); | |
4183 }, | |
4184 $is_args1: true | |
4185 }, | |
4186 | |
4187 HashMapKeyIterable: {"": "IterableBase;_map", | |
4188 get$length: function(_) { | |
4189 return this._map._collection$_length; | |
4190 }, | |
4191 get$isEmpty: function(_) { | |
4192 return this._map._collection$_length === 0; | |
4193 }, | |
4194 get$iterator: function(_) { | |
4195 var t1 = this._map; | |
4196 return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); | |
4197 }, | |
4198 forEach$1: function(_, f) { | |
4199 var t1, keys, $length, i; | |
4200 t1 = this._map; | |
4201 keys = t1._computeKeys$0(); | |
4202 for ($length = keys.length, i = 0; i < $length; ++i) { | |
4203 f.call$1(keys[i]); | |
4204 if (keys !== t1._keys) | |
4205 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4206 } | |
4207 }, | |
4208 $asIterableBase: null, | |
4209 $isEfficientLength: true | |
4210 }, | |
4211 | |
4212 HashMapKeyIterator: {"": "Object;_map,_keys,_offset,_collection$_current", | |
4213 get$current: function() { | |
4214 return this._collection$_current; | |
4215 }, | |
4216 moveNext$0: function() { | |
4217 var keys, offset, t1; | |
4218 keys = this._keys; | |
4219 offset = this._offset; | |
4220 t1 = this._map; | |
4221 if (keys !== t1._keys) | |
4222 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4223 else if (offset >= keys.length) { | |
4224 this._collection$_current = null; | |
4225 return false; | |
4226 } else { | |
4227 this._collection$_current = keys[offset]; | |
4228 this._offset = offset + 1; | |
4229 return true; | |
4230 } | |
4231 } | |
4232 }, | |
4233 | |
4234 _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la
st,_modifications", | |
4235 get$length: function(_) { | |
4236 return this._collection$_length; | |
4237 }, | |
4238 get$isEmpty: function(_) { | |
4239 return this._collection$_length === 0; | |
4240 }, | |
4241 get$keys: function(_) { | |
4242 var t1 = new P.LinkedHashMapKeyIterable(this); | |
4243 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | |
4244 return t1; | |
4245 }, | |
4246 get$values: function(_) { | |
4247 var t1 = new P.LinkedHashMapKeyIterable(this); | |
4248 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | |
4249 return H.MappedIterable_MappedIterable(t1, new P._LinkedHashMap_values_closu
re(this), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); | |
4250 }, | |
4251 containsKey$1: function(_, key) { | |
4252 var nums, rest; | |
4253 if ((key & 0x3ffffff) === key) { | |
4254 nums = this._nums; | |
4255 if (nums == null) | |
4256 return false; | |
4257 return nums[key] != null; | |
4258 } else { | |
4259 rest = this._rest; | |
4260 if (rest == null) | |
4261 return false; | |
4262 return this._findBucketIndex$2(rest[this._computeHashCode$1(key)], key) >=
0; | |
4263 } | |
4264 }, | |
4265 $index: function(_, key) { | |
4266 var strings, cell, nums, rest, bucket, index; | |
4267 if (typeof key === "string" && key !== "__proto__") { | |
4268 strings = this._strings; | |
4269 if (strings == null) | |
4270 return; | |
4271 cell = strings[key]; | |
4272 return cell == null ? null : cell.get$_collection$_value(); | |
4273 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4274 nums = this._nums; | |
4275 if (nums == null) | |
4276 return; | |
4277 cell = nums[key]; | |
4278 return cell == null ? null : cell.get$_collection$_value(); | |
4279 } else { | |
4280 rest = this._rest; | |
4281 if (rest == null) | |
4282 return; | |
4283 bucket = rest[this._computeHashCode$1(key)]; | |
4284 index = this._findBucketIndex$2(bucket, key); | |
4285 if (index < 0) | |
4286 return; | |
4287 return bucket[index].get$_collection$_value(); | |
4288 } | |
4289 }, | |
4290 $indexSet: function(_, key, value) { | |
4291 var strings, nums, rest, hash, bucket, index; | |
4292 if (typeof key === "string" && key !== "__proto__") { | |
4293 strings = this._strings; | |
4294 if (strings == null) { | |
4295 strings = P._LinkedHashMap__newHashTable(); | |
4296 this._strings = strings; | |
4297 } | |
4298 this._addHashTableEntry$3(strings, key, value); | |
4299 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4300 nums = this._nums; | |
4301 if (nums == null) { | |
4302 nums = P._LinkedHashMap__newHashTable(); | |
4303 this._nums = nums; | |
4304 } | |
4305 this._addHashTableEntry$3(nums, key, value); | |
4306 } else { | |
4307 rest = this._rest; | |
4308 if (rest == null) { | |
4309 rest = P._LinkedHashMap__newHashTable(); | |
4310 this._rest = rest; | |
4311 } | |
4312 hash = this._computeHashCode$1(key); | |
4313 bucket = rest[hash]; | |
4314 if (bucket == null) | |
4315 rest[hash] = [this._newLinkedCell$2(key, value)]; | |
4316 else { | |
4317 index = this._findBucketIndex$2(bucket, key); | |
4318 if (index >= 0) | |
4319 bucket[index].set$_collection$_value(value); | |
4320 else | |
4321 bucket.push(this._newLinkedCell$2(key, value)); | |
4322 } | |
4323 } | |
4324 }, | |
4325 remove$1: function(_, key) { | |
4326 var rest, bucket, index, cell; | |
4327 if (typeof key === "string" && key !== "__proto__") | |
4328 return this._removeHashTableEntry$2(this._strings, key); | |
4329 else if (typeof key === "number" && (key & 0x3ffffff) === key) | |
4330 return this._removeHashTableEntry$2(this._nums, key); | |
4331 else { | |
4332 rest = this._rest; | |
4333 if (rest == null) | |
4334 return; | |
4335 bucket = rest[this._computeHashCode$1(key)]; | |
4336 index = this._findBucketIndex$2(bucket, key); | |
4337 if (index < 0) | |
4338 return; | |
4339 cell = bucket.splice(index, 1)[0]; | |
4340 this._unlinkCell$1(cell); | |
4341 return cell.get$_collection$_value(); | |
4342 } | |
4343 }, | |
4344 forEach$1: function(_, action) { | |
4345 var cell, modifications; | |
4346 cell = this._first; | |
4347 modifications = this._modifications; | |
4348 for (; cell != null;) { | |
4349 action.call$2(cell._key, cell._collection$_value); | |
4350 if (modifications !== this._modifications) | |
4351 throw H.wrapException(P.ConcurrentModificationError$(this)); | |
4352 cell = cell._next; | |
4353 } | |
4354 }, | |
4355 _addHashTableEntry$3: function(table, key, value) { | |
4356 var cell = table[key]; | |
4357 if (cell == null) | |
4358 table[key] = this._newLinkedCell$2(key, value); | |
4359 else | |
4360 cell.set$_collection$_value(value); | |
4361 }, | |
4362 _removeHashTableEntry$2: function(table, key) { | |
4363 var cell; | |
4364 if (table == null) | |
4365 return; | |
4366 cell = table[key]; | |
4367 if (cell == null) | |
4368 return; | |
4369 this._unlinkCell$1(cell); | |
4370 delete table[key]; | |
4371 return cell.get$_collection$_value(); | |
4372 }, | |
4373 _newLinkedCell$2: function(key, value) { | |
4374 var cell, last; | |
4375 cell = new P.LinkedHashMapCell(key, value, null, null); | |
4376 if (this._first == null) { | |
4377 this._last = cell; | |
4378 this._first = cell; | |
4379 } else { | |
4380 last = this._last; | |
4381 cell._previous = last; | |
4382 last._next = cell; | |
4383 this._last = cell; | |
4384 } | |
4385 this._collection$_length = this._collection$_length + 1; | |
4386 this._modifications = this._modifications + 1 & 67108863; | |
4387 return cell; | |
4388 }, | |
4389 _unlinkCell$1: function(cell) { | |
4390 var previous, next; | |
4391 previous = cell.get$_previous(); | |
4392 next = cell.get$_next(); | |
4393 if (previous == null) | |
4394 this._first = next; | |
4395 else | |
4396 previous._next = next; | |
4397 if (next == null) | |
4398 this._last = previous; | |
4399 else | |
4400 next._previous = previous; | |
4401 this._collection$_length = this._collection$_length - 1; | |
4402 this._modifications = this._modifications + 1 & 67108863; | |
4403 }, | |
4404 _computeHashCode$1: function(key) { | |
4405 return J.get$hashCode$(key) & 0x3ffffff; | |
4406 }, | |
4407 _findBucketIndex$2: function(bucket, key) { | |
4408 var $length, i; | |
4409 if (bucket == null) | |
4410 return -1; | |
4411 $length = bucket.length; | |
4412 for (i = 0; i < $length; ++i) | |
4413 if (J.$eq(J.get$_key$x(bucket[i]), key)) | |
4414 return i; | |
4415 return -1; | |
4416 }, | |
4417 toString$0: function(_) { | |
4418 return P.Maps_mapToString(this); | |
4419 }, | |
4420 $isMap: true, | |
4421 $asMap: null, | |
4422 static: { | |
4423 _LinkedHashMap__newHashTable: function() { | |
4424 var table = Object.create(null); | |
4425 table["<non-identifier-key>"] = table; | |
4426 delete table["<non-identifier-key>"]; | |
4427 return table; | |
4428 }} | |
4429 | |
4430 }, | |
4431 | |
4432 _LinkedHashMap_values_closure: {"": "Closure;this_0", | |
4433 call$1: function(each) { | |
4434 var t1 = this.this_0; | |
4435 return t1.$index(t1, each); | |
4436 }, | |
4437 $is_args1: true | |
4438 }, | |
4439 | |
4440 LinkedHashMapCell: {"": "Object;_key>,_collection$_value@,_next<,_previous<"}, | |
4441 | |
4442 LinkedHashMapKeyIterable: {"": "IterableBase;_map", | |
4443 get$length: function(_) { | |
4444 return this._map._collection$_length; | |
4445 }, | |
4446 get$isEmpty: function(_) { | |
4447 return this._map._collection$_length === 0; | |
4448 }, | |
4449 get$iterator: function(_) { | |
4450 var t1 = this._map; | |
4451 t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null); | |
4452 t1._cell = t1._map._first; | |
4453 return t1; | |
4454 }, | |
4455 forEach$1: function(_, f) { | |
4456 var t1, cell, modifications; | |
4457 t1 = this._map; | |
4458 cell = t1._first; | |
4459 modifications = t1._modifications; | |
4460 for (; cell != null;) { | |
4461 f.call$1(cell._key); | |
4462 if (modifications !== t1._modifications) | |
4463 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4464 cell = cell._next; | |
4465 } | |
4466 }, | |
4467 $asIterableBase: null, | |
4468 $isEfficientLength: true | |
4469 }, | |
4470 | |
4471 LinkedHashMapKeyIterator: {"": "Object;_map,_modifications,_cell,_collection$_cu
rrent", | |
4472 get$current: function() { | |
4473 return this._collection$_current; | |
4474 }, | |
4475 moveNext$0: function() { | |
4476 var t1 = this._map; | |
4477 if (this._modifications !== t1._modifications) | |
4478 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4479 else { | |
4480 t1 = this._cell; | |
4481 if (t1 == null) { | |
4482 this._collection$_current = null; | |
4483 return false; | |
4484 } else { | |
4485 this._collection$_current = t1._key; | |
4486 this._cell = this._cell._next; | |
4487 return true; | |
4488 } | |
4489 } | |
4490 } | |
4491 }, | |
4492 | |
4493 _HashSet: {"": "_HashSetBase;", | |
4494 get$iterator: function(_) { | |
4495 return new P.HashSetIterator(this, this._computeElements$0(), 0, null); | |
4496 }, | |
4497 get$length: function(_) { | |
4498 return this._collection$_length; | |
4499 }, | |
4500 get$isEmpty: function(_) { | |
4501 return this._collection$_length === 0; | |
4502 }, | |
4503 contains$1: function(_, object) { | |
4504 var strings, nums, rest; | |
4505 if (typeof object === "string" && object !== "__proto__") { | |
4506 strings = this._strings; | |
4507 return strings == null ? false : strings[object] != null; | |
4508 } else if (typeof object === "number" && (object & 0x3ffffff) === object) { | |
4509 nums = this._nums; | |
4510 return nums == null ? false : nums[object] != null; | |
4511 } else { | |
4512 rest = this._rest; | |
4513 if (rest == null) | |
4514 return false; | |
4515 return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], obje
ct) >= 0; | |
4516 } | |
4517 }, | |
4518 lookup$1: function(object) { | |
4519 var t1, rest, bucket, index; | |
4520 if (!(typeof object === "string" && object !== "__proto__")) | |
4521 t1 = typeof object === "number" && (object & 0x3ffffff) === object; | |
4522 else | |
4523 t1 = true; | |
4524 if (t1) | |
4525 return this.contains$1(this, object) ? object : null; | |
4526 rest = this._rest; | |
4527 if (rest == null) | |
4528 return; | |
4529 bucket = rest[this._computeHashCode$1(object)]; | |
4530 index = this._findBucketIndex$2(bucket, object); | |
4531 if (index < 0) | |
4532 return; | |
4533 return J.$index$asx(bucket, index); | |
4534 }, | |
4535 add$1: function(_, element) { | |
4536 var rest, hash, bucket; | |
4537 rest = this._rest; | |
4538 if (rest == null) { | |
4539 rest = P._HashSet__newHashTable(); | |
4540 this._rest = rest; | |
4541 } | |
4542 hash = this._computeHashCode$1(element); | |
4543 bucket = rest[hash]; | |
4544 if (bucket == null) | |
4545 rest[hash] = [element]; | |
4546 else { | |
4547 if (this._findBucketIndex$2(bucket, element) >= 0) | |
4548 return false; | |
4549 bucket.push(element); | |
4550 } | |
4551 this._collection$_length = this._collection$_length + 1; | |
4552 this._elements = null; | |
4553 return true; | |
4554 }, | |
4555 remove$1: function(_, object) { | |
4556 var rest, bucket, index; | |
4557 rest = this._rest; | |
4558 if (rest == null) | |
4559 return false; | |
4560 bucket = rest[this._computeHashCode$1(object)]; | |
4561 index = this._findBucketIndex$2(bucket, object); | |
4562 if (index < 0) | |
4563 return false; | |
4564 this._collection$_length = this._collection$_length - 1; | |
4565 this._elements = null; | |
4566 bucket.splice(index, 1); | |
4567 return true; | |
4568 }, | |
4569 _computeElements$0: function() { | |
4570 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; | |
4571 t1 = this._elements; | |
4572 if (t1 != null) | |
4573 return t1; | |
4574 result = P.List_List(this._collection$_length, null); | |
4575 strings = this._strings; | |
4576 if (strings != null) { | |
4577 names = Object.getOwnPropertyNames(strings); | |
4578 entries = names.length; | |
4579 for (index = 0, i = 0; i < entries; ++i) { | |
4580 result[index] = names[i]; | |
4581 ++index; | |
4582 } | |
4583 } else | |
4584 index = 0; | |
4585 nums = this._nums; | |
4586 if (nums != null) { | |
4587 names = Object.getOwnPropertyNames(nums); | |
4588 entries = names.length; | |
4589 for (i = 0; i < entries; ++i) { | |
4590 result[index] = +names[i]; | |
4591 ++index; | |
4592 } | |
4593 } | |
4594 rest = this._rest; | |
4595 if (rest != null) { | |
4596 names = Object.getOwnPropertyNames(rest); | |
4597 entries = names.length; | |
4598 for (i = 0; i < entries; ++i) { | |
4599 bucket = rest[names[i]]; | |
4600 $length = bucket.length; | |
4601 for (i0 = 0; i0 < $length; ++i0) { | |
4602 result[index] = bucket[i0]; | |
4603 ++index; | |
4604 } | |
4605 } | |
4606 } | |
4607 this._elements = result; | |
4608 return result; | |
4609 }, | |
4610 _computeHashCode$1: function(element) { | |
4611 return J.get$hashCode$(element) & 0x3ffffff; | |
4612 }, | |
4613 _findBucketIndex$2: function(bucket, element) { | |
4614 var $length, i; | |
4615 if (bucket == null) | |
4616 return -1; | |
4617 $length = bucket.length; | |
4618 for (i = 0; i < $length; ++i) | |
4619 if (J.$eq(bucket[i], element)) | |
4620 return i; | |
4621 return -1; | |
4622 }, | |
4623 $as_HashSetBase: null, | |
4624 $isEfficientLength: true | |
4625 }, | |
4626 | |
4627 _IdentityHashSet: {"": "_HashSet;_collection$_length,_strings,_nums,_rest,_eleme
nts", | |
4628 _computeHashCode$1: function(key) { | |
4629 return H.objectHashCode(key) & 0x3ffffff; | |
4630 }, | |
4631 _findBucketIndex$2: function(bucket, element) { | |
4632 var $length, i, t1; | |
4633 if (bucket == null) | |
4634 return -1; | |
4635 $length = bucket.length; | |
4636 for (i = 0; i < $length; ++i) { | |
4637 t1 = bucket[i]; | |
4638 if (t1 == null ? element == null : t1 === element) | |
4639 return i; | |
4640 } | |
4641 return -1; | |
4642 }, | |
4643 $as_HashSet: null | |
4644 }, | |
4645 | |
4646 HashSetIterator: {"": "Object;_set,_elements,_offset,_collection$_current", | |
4647 get$current: function() { | |
4648 return this._collection$_current; | |
4649 }, | |
4650 moveNext$0: function() { | |
4651 var elements, offset, t1; | |
4652 elements = this._elements; | |
4653 offset = this._offset; | |
4654 t1 = this._set; | |
4655 if (elements !== t1._elements) | |
4656 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4657 else if (offset >= elements.length) { | |
4658 this._collection$_current = null; | |
4659 return false; | |
4660 } else { | |
4661 this._collection$_current = elements[offset]; | |
4662 this._offset = offset + 1; | |
4663 return true; | |
4664 } | |
4665 } | |
4666 }, | |
4667 | |
4668 _HashSetBase: {"": "IterableBase;", | |
4669 toString$0: function(_) { | |
4670 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | |
4671 }, | |
4672 $asIterableBase: null, | |
4673 $isEfficientLength: true | |
4674 }, | |
4675 | |
4676 HashSet: {"": "Object;", $isEfficientLength: true, static: { | |
4677 HashSet_HashSet$identity: function($E) { | |
4678 var t1 = new P._IdentityHashSet(0, null, null, null, null); | |
4679 H.setRuntimeTypeInfo(t1, [$E]); | |
4680 return t1; | |
4681 }} | |
4682 }, | |
4683 | |
4684 IterableBase: {"": "Object;", | |
4685 forEach$1: function(_, f) { | |
4686 var t1; | |
4687 for (t1 = this.get$iterator(this); t1.moveNext$0();) | |
4688 f.call$1(t1.get$current()); | |
4689 }, | |
4690 toList$1$growable: function(_, growable) { | |
4691 return P.List_List$from(this, growable, H.getRuntimeTypeArgument(this, "Iter
ableBase", 0)); | |
4692 }, | |
4693 toList$0: function($receiver) { | |
4694 return this.toList$1$growable($receiver, true); | |
4695 }, | |
4696 get$length: function(_) { | |
4697 var it, count; | |
4698 it = this.get$iterator(this); | |
4699 for (count = 0; it.moveNext$0();) | |
4700 ++count; | |
4701 return count; | |
4702 }, | |
4703 get$isEmpty: function(_) { | |
4704 return !this.get$iterator(this).moveNext$0(); | |
4705 }, | |
4706 elementAt$1: function(_, index) { | |
4707 var t1, remaining, element; | |
4708 if (index < 0) | |
4709 throw H.wrapException(P.RangeError$value(index)); | |
4710 for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) { | |
4711 element = t1.get$current(); | |
4712 if (remaining === 0) | |
4713 return element; | |
4714 --remaining; | |
4715 } | |
4716 throw H.wrapException(P.RangeError$value(index)); | |
4717 }, | |
4718 toString$0: function(_) { | |
4719 return P._iterableToString(this); | |
4720 } | |
4721 }, | |
4722 | |
4723 ListMixin: {"": "Object;", | |
4724 get$iterator: function(receiver) { | |
4725 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); | |
4726 }, | |
4727 elementAt$1: function(receiver, index) { | |
4728 return this.$index(receiver, index); | |
4729 }, | |
4730 forEach$1: function(receiver, action) { | |
4731 var $length, i; | |
4732 $length = this.get$length(receiver); | |
4733 for (i = 0; i < $length; ++i) { | |
4734 action.call$1(this.$index(receiver, i)); | |
4735 if ($length !== this.get$length(receiver)) | |
4736 throw H.wrapException(P.ConcurrentModificationError$(receiver)); | |
4737 } | |
4738 }, | |
4739 get$isEmpty: function(receiver) { | |
4740 return this.get$length(receiver) === 0; | |
4741 }, | |
4742 toString$0: function(receiver) { | |
4743 var result, t1; | |
4744 t1 = $.get$_toStringVisiting(); | |
4745 if (t1.contains$1(t1, receiver)) | |
4746 return "[...]"; | |
4747 result = P.StringBuffer$(""); | |
4748 try { | |
4749 t1 = $.get$_toStringVisiting(); | |
4750 t1.add$1(t1, receiver); | |
4751 result.write$1("["); | |
4752 result.writeAll$2(receiver, ", "); | |
4753 result.write$1("]"); | |
4754 } finally { | |
4755 t1 = $.get$_toStringVisiting(); | |
4756 t1.remove$1(t1, receiver); | |
4757 } | |
4758 return result.get$_contents(); | |
4759 }, | |
4760 $isList: true, | |
4761 $asList: null, | |
4762 $isEfficientLength: true | |
4763 }, | |
4764 | |
4765 Maps_mapToString_closure: {"": "Closure;box_0,result_1", | |
4766 call$2: function(k, v) { | |
4767 var t1 = this.box_0; | |
4768 if (!t1.first_0) | |
4769 this.result_1.write$1(", "); | |
4770 t1.first_0 = false; | |
4771 t1 = this.result_1; | |
4772 t1.write$1(k); | |
4773 t1.write$1(": "); | |
4774 t1.write$1(v); | |
4775 }, | |
4776 $is_args2: true | |
4777 }, | |
4778 | |
4779 ListQueue: {"": "IterableBase;_table,_head,_tail,_modificationCount", | |
4780 get$iterator: function(_) { | |
4781 return P._ListQueueIterator$(this); | |
4782 }, | |
4783 forEach$1: function(_, action) { | |
4784 var modificationCount, i, t1; | |
4785 modificationCount = this._modificationCount; | |
4786 for (i = this._head; i !== this._tail; i = (i + 1 & this._table.length - 1)
>>> 0) { | |
4787 t1 = this._table; | |
4788 if (i < 0 || i >= t1.length) | |
4789 throw H.ioore(t1, i); | |
4790 action.call$1(t1[i]); | |
4791 if (modificationCount !== this._modificationCount) | |
4792 H.throwExpression(P.ConcurrentModificationError$(this)); | |
4793 } | |
4794 }, | |
4795 get$isEmpty: function(_) { | |
4796 return this._head === this._tail; | |
4797 }, | |
4798 get$length: function(_) { | |
4799 return (this._tail - this._head & this._table.length - 1) >>> 0; | |
4800 }, | |
4801 toString$0: function(_) { | |
4802 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | |
4803 }, | |
4804 removeFirst$0: function() { | |
4805 var t1, t2, t3, result; | |
4806 if (this._head === this._tail) | |
4807 throw H.wrapException(P.StateError$("No elements")); | |
4808 this._modificationCount = this._modificationCount + 1; | |
4809 t1 = this._table; | |
4810 t2 = this._head; | |
4811 t3 = t1.length; | |
4812 if (t2 < 0 || t2 >= t3) | |
4813 throw H.ioore(t1, t2); | |
4814 result = t1[t2]; | |
4815 this._head = (t2 + 1 & t3 - 1) >>> 0; | |
4816 return result; | |
4817 }, | |
4818 _add$1: function(element) { | |
4819 var t1, t2, t3; | |
4820 t1 = this._table; | |
4821 t2 = this._tail; | |
4822 t3 = t1.length; | |
4823 if (t2 < 0 || t2 >= t3) | |
4824 throw H.ioore(t1, t2); | |
4825 t1[t2] = element; | |
4826 this._tail = (t2 + 1 & t3 - 1) >>> 0; | |
4827 if (this._head === this._tail) | |
4828 this._grow$0(); | |
4829 this._modificationCount = this._modificationCount + 1; | |
4830 }, | |
4831 _grow$0: function() { | |
4832 var newTable, t1, t2, split; | |
4833 newTable = P.List_List(this._table.length * 2, H.getRuntimeTypeArgument(this
, "ListQueue", 0)); | |
4834 H.setRuntimeTypeInfo(newTable, [H.getRuntimeTypeArgument(this, "ListQueue",
0)]); | |
4835 t1 = this._table; | |
4836 t2 = this._head; | |
4837 split = t1.length - t2; | |
4838 H.IterableMixinWorkaround_setRangeList(newTable, 0, split, t1, t2); | |
4839 t1 = this._head; | |
4840 t2 = this._table; | |
4841 H.IterableMixinWorkaround_setRangeList(newTable, split, split + t1, t2, 0); | |
4842 this._head = 0; | |
4843 this._tail = this._table.length; | |
4844 this._table = newTable; | |
4845 }, | |
4846 ListQueue$1: function(initialCapacity, $E) { | |
4847 var t1 = P.List_List(8, $E); | |
4848 H.setRuntimeTypeInfo(t1, [$E]); | |
4849 this._table = t1; | |
4850 }, | |
4851 $asIterableBase: null, | |
4852 $isEfficientLength: true, | |
4853 static: { | |
4854 "": "ListQueue__INITIAL_CAPACITY", | |
4855 ListQueue$: function(initialCapacity, $E) { | |
4856 var t1 = new P.ListQueue(null, 0, 0, 0); | |
4857 H.setRuntimeTypeInfo(t1, [$E]); | |
4858 t1.ListQueue$1(initialCapacity, $E); | |
4859 return t1; | |
4860 }} | |
4861 | |
4862 }, | |
4863 | |
4864 _ListQueueIterator: {"": "Object;_queue,_end,_modificationCount,_position,_colle
ction$_current", | |
4865 get$current: function() { | |
4866 return this._collection$_current; | |
4867 }, | |
4868 moveNext$0: function() { | |
4869 var t1, t2, t3; | |
4870 t1 = this._queue; | |
4871 if (this._modificationCount !== t1._modificationCount) | |
4872 H.throwExpression(P.ConcurrentModificationError$(t1)); | |
4873 t2 = this._position; | |
4874 if (t2 === this._end) { | |
4875 this._collection$_current = null; | |
4876 return false; | |
4877 } | |
4878 t3 = t1._table; | |
4879 if (t2 < 0 || t2 >= t3.length) | |
4880 throw H.ioore(t3, t2); | |
4881 this._collection$_current = t3[t2]; | |
4882 this._position = (this._position + 1 & t1._table.length - 1) >>> 0; | |
4883 return true; | |
4884 }, | |
4885 static: { | |
4886 _ListQueueIterator$: function(queue) { | |
4887 return new P._ListQueueIterator(queue, queue._tail, queue._modificationCount,
queue._head, null); | |
4888 }} | |
4889 | |
4890 }}], | |
4891 ["dart.convert", "dart:convert", , P, { | |
4892 _convertJsonToDart: function(json, reviver) { | |
4893 var revive = new P._convertJsonToDart_closure(); | |
4894 return revive.call$2(null, new P._convertJsonToDart_walk(revive).call$1(json))
; | |
4895 }, | |
4896 | |
4897 _parseJson: function(source, reviver) { | |
4898 var parsed, e, t1, exception; | |
4899 t1 = source; | |
4900 if (typeof t1 !== "string") | |
4901 throw H.wrapException(new P.ArgumentError(source)); | |
4902 parsed = null; | |
4903 try { | |
4904 parsed = JSON.parse(source); | |
4905 } catch (exception) { | |
4906 t1 = H.unwrapException(exception); | |
4907 e = t1; | |
4908 throw H.wrapException(P.FormatException$(String(e))); | |
4909 } | |
4910 | |
4911 return P._convertJsonToDart(parsed, reviver); | |
4912 }, | |
4913 | |
4914 _convertJsonToDart_closure: {"": "Closure;", | |
4915 call$2: function(key, value) { | |
4916 return value; | |
4917 }, | |
4918 $is_args2: true | |
4919 }, | |
4920 | |
4921 _convertJsonToDart_walk: {"": "Closure;revive_0", | |
4922 call$1: function(e) { | |
4923 var list, t1, i, keys, map, key, proto; | |
4924 if (e == null || typeof e != "object") | |
4925 return e; | |
4926 if (Object.getPrototypeOf(e) === Array.prototype) { | |
4927 list = e; | |
4928 for (t1 = this.revive_0, i = 0; i < list.length; ++i) | |
4929 list[i] = t1.call$2(i, this.call$1(list[i])); | |
4930 return list; | |
4931 } | |
4932 keys = Object.keys(e); | |
4933 map = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, null, n
ull, null)); | |
4934 for (t1 = this.revive_0, i = 0; i < keys.length; ++i) { | |
4935 key = keys[i]; | |
4936 map.$indexSet(map, key, t1.call$2(key, this.call$1(e[key]))); | |
4937 } | |
4938 proto = e.__proto__; | |
4939 if (typeof proto !== "undefined" && proto !== Object.prototype) | |
4940 map.$indexSet(map, "__proto__", t1.call$2("__proto__", this.call$1(proto))
); | |
4941 return map; | |
4942 }, | |
4943 $is_args1: true | |
4944 }, | |
4945 | |
4946 Codec: {"": "Object;"}, | |
4947 | |
4948 Converter: {"": "Object;"}, | |
4949 | |
4950 JsonCodec: {"": "Codec;", | |
4951 decode$2$reviver: function(source, reviver) { | |
4952 return P._parseJson(source, C.JsonDecoder_null._reviver); | |
4953 }, | |
4954 decode$1: function(source) { | |
4955 return this.decode$2$reviver(source, null); | |
4956 } | |
4957 }, | |
4958 | |
4959 JsonDecoder: {"": "Converter;_reviver"}}], | |
4960 ["dart.core", "dart:core", , P, { | |
4961 _symbolToString: function(symbol) { | |
4962 return H.Symbol_getName(symbol); | |
4963 }, | |
4964 | |
4965 Error_safeToString: function(object) { | |
4966 var buffer, t1, i, codeUnit, t2, charCodes; | |
4967 if (typeof object === "number" && Math.floor(object) === object || typeof obje
ct === "number" || typeof object === "boolean" || null == object) | |
4968 return J.toString$0(object); | |
4969 if (typeof object === "string") { | |
4970 buffer = new P.StringBuffer(""); | |
4971 buffer._contents = "\""; | |
4972 for (t1 = object.length, i = 0; i < t1; ++i) { | |
4973 codeUnit = C.JSString_methods.codeUnitAt$1(object, i); | |
4974 if (codeUnit <= 31) | |
4975 if (codeUnit === 10) | |
4976 buffer._contents = buffer._contents + "\\n"; | |
4977 else if (codeUnit === 13) | |
4978 buffer._contents = buffer._contents + "\\r"; | |
4979 else if (codeUnit === 9) | |
4980 buffer._contents = buffer._contents + "\\t"; | |
4981 else { | |
4982 buffer._contents = buffer._contents + "\\x"; | |
4983 if (codeUnit < 16) | |
4984 buffer._contents = buffer._contents + "0"; | |
4985 else { | |
4986 buffer._contents = buffer._contents + "1"; | |
4987 codeUnit -= 16; | |
4988 } | |
4989 t2 = codeUnit < 10 ? 48 + codeUnit : 87 + codeUnit; | |
4990 charCodes = P.List_List$filled(1, t2, J.JSInt); | |
4991 charCodes.$builtinTypeInfo = [J.JSInt]; | |
4992 t2 = H.Primitives_stringFromCharCodes(charCodes); | |
4993 buffer._contents = buffer._contents + t2; | |
4994 } | |
4995 else if (codeUnit === 92) | |
4996 buffer._contents = buffer._contents + "\\\\"; | |
4997 else if (codeUnit === 34) | |
4998 buffer._contents = buffer._contents + "\\\""; | |
4999 else { | |
5000 charCodes = P.List_List$filled(1, codeUnit, J.JSInt); | |
5001 charCodes.$builtinTypeInfo = [J.JSInt]; | |
5002 t2 = H.Primitives_stringFromCharCodes(charCodes); | |
5003 buffer._contents = buffer._contents + t2; | |
5004 } | |
5005 } | |
5006 buffer._contents = buffer._contents + "\""; | |
5007 return buffer._contents; | |
5008 } | |
5009 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | |
5010 }, | |
5011 | |
5012 Exception_Exception: function(message) { | |
5013 return new P._ExceptionImplementation(message); | |
5014 }, | |
5015 | |
5016 identical: function(a, b) { | |
5017 return a == null ? b == null : a === b; | |
5018 }, | |
5019 | |
5020 identityHashCode: function(object) { | |
5021 return H.objectHashCode(object); | |
5022 }, | |
5023 | |
5024 List_List: function($length, $E) { | |
5025 if ($length == null) | |
5026 return new Array(0); | |
5027 if (typeof $length !== "number" || Math.floor($length) !== $length || $length
< 0) | |
5028 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + H.S($length) + ".")); | |
5029 return H.Primitives_newFixedList($length); | |
5030 }, | |
5031 | |
5032 List_List$filled: function($length, fill, $E) { | |
5033 var result, t1, i; | |
5034 if ($length < 0) | |
5035 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + $length + ".")); | |
5036 result = H.Primitives_newFixedList($length); | |
5037 if ($length !== 0 && true) | |
5038 for (t1 = result.length, i = 0; i < t1; ++i) | |
5039 result[i] = fill; | |
5040 return result; | |
5041 }, | |
5042 | |
5043 List_List$from: function(other, growable, $E) { | |
5044 var list, t1, $length, fixedList, t2, i, t3; | |
5045 list = P.List_List(null, $E); | |
5046 H.setRuntimeTypeInfo(list, [$E]); | |
5047 for (t1 = J.get$iterator$ax(other); t1.moveNext$0();) | |
5048 list.push(t1.get$current()); | |
5049 if (growable) | |
5050 return list; | |
5051 $length = list.length; | |
5052 fixedList = P.List_List($length, $E); | |
5053 H.setRuntimeTypeInfo(fixedList, [$E]); | |
5054 for (t1 = list.length, t2 = fixedList.length, i = 0; i < $length; ++i) { | |
5055 if (i >= t1) | |
5056 throw H.ioore(list, i); | |
5057 t3 = list[i]; | |
5058 if (i >= t2) | |
5059 throw H.ioore(fixedList, i); | |
5060 fixedList[i] = t3; | |
5061 } | |
5062 return fixedList; | |
5063 }, | |
5064 | |
5065 print: function(object) { | |
5066 var line = J.toString$0(object); | |
5067 H.printToConsole(line); | |
5068 }, | |
5069 | |
5070 NoSuchMethodError_toString_closure: {"": "Closure;box_0", | |
5071 call$2: function(key, value) { | |
5072 var t1 = this.box_0; | |
5073 if (t1.i_1 > 0) | |
5074 t1.sb_0.write$1(", "); | |
5075 t1.sb_0.write$1(P._symbolToString(key)); | |
5076 }, | |
5077 $is_args2: true | |
5078 }, | |
5079 | |
5080 Duration: {"": "Object;_duration", | |
5081 $lt: function(_, other) { | |
5082 return C.JSNumber_methods.$lt(this._duration, other.get$_duration()); | |
5083 }, | |
5084 $gt: function(_, other) { | |
5085 return C.JSNumber_methods.$gt(this._duration, other.get$_duration()); | |
5086 }, | |
5087 $ge: function(_, other) { | |
5088 return C.JSNumber_methods.$ge(this._duration, other.get$_duration()); | |
5089 }, | |
5090 $eq: function(_, other) { | |
5091 var t1; | |
5092 if (other == null) | |
5093 return false; | |
5094 t1 = J.getInterceptor(other); | |
5095 if (typeof other !== "object" || other === null || !t1.$isDuration) | |
5096 return false; | |
5097 return this._duration === other._duration; | |
5098 }, | |
5099 get$hashCode: function(_) { | |
5100 return this._duration & 0x1FFFFFFF; | |
5101 }, | |
5102 toString$0: function(_) { | |
5103 var t1, t2, twoDigitMinutes, twoDigitSeconds, sixDigitUs; | |
5104 t1 = new P.Duration_toString_twoDigits(); | |
5105 t2 = this._duration; | |
5106 if (t2 < 0) | |
5107 return "-" + H.S(P.Duration$(0, 0, -t2, 0, 0, 0)); | |
5108 twoDigitMinutes = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_method
s.$tdiv(t2, 60000000), 60)); | |
5109 twoDigitSeconds = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_method
s.$tdiv(t2, 1000000), 60)); | |
5110 sixDigitUs = new P.Duration_toString_sixDigits().call$1(C.JSNumber_methods.r
emainder$1(t2, 1000000)); | |
5111 return H.S(C.JSNumber_methods.$tdiv(t2, 3600000000)) + ":" + H.S(twoDigitMin
utes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs); | |
5112 }, | |
5113 $isDuration: true, | |
5114 static: { | |
5115 "": "Duration_MICROSECONDS_PER_MILLISECOND,Duration_MILLISECONDS_PER_SECOND,Dura
tion_SECONDS_PER_MINUTE,Duration_MINUTES_PER_HOUR,Duration_HOURS_PER_DAY,Duratio
n_MICROSECONDS_PER_SECOND,Duration_MICROSECONDS_PER_MINUTE,Duration_MICROSECONDS
_PER_HOUR,Duration_MICROSECONDS_PER_DAY,Duration_MILLISECONDS_PER_MINUTE,Duratio
n_MILLISECONDS_PER_HOUR,Duration_MILLISECONDS_PER_DAY,Duration_SECONDS_PER_HOUR,
Duration_SECONDS_PER_DAY,Duration_MINUTES_PER_DAY,Duration_ZERO", | |
5116 Duration$: function(days, hours, microseconds, milliseconds, minutes, seconds) { | |
5117 return new P.Duration(days * 86400000000 + hours * 3600000000 + minutes * 6000
0000 + seconds * 1000000 + milliseconds * 1000 + microseconds); | |
5118 }} | |
5119 | |
5120 }, | |
5121 | |
5122 Duration_toString_sixDigits: {"": "Closure;", | |
5123 call$1: function(n) { | |
5124 var t1 = J.getInterceptor$n(n); | |
5125 if (t1.$ge(n, 100000)) | |
5126 return H.S(n); | |
5127 if (t1.$ge(n, 10000)) | |
5128 return "0" + H.S(n); | |
5129 if (t1.$ge(n, 1000)) | |
5130 return "00" + H.S(n); | |
5131 if (t1.$ge(n, 100)) | |
5132 return "000" + H.S(n); | |
5133 if (t1.$gt(n, 10)) | |
5134 return "0000" + H.S(n); | |
5135 return "00000" + H.S(n); | |
5136 }, | |
5137 $is_args1: true | |
5138 }, | |
5139 | |
5140 Duration_toString_twoDigits: {"": "Closure;", | |
5141 call$1: function(n) { | |
5142 if (J.$ge$n(n, 10)) | |
5143 return H.S(n); | |
5144 return "0" + H.S(n); | |
5145 }, | |
5146 $is_args1: true | |
5147 }, | |
5148 | |
5149 Error: {"": "Object;", | |
5150 get$stackTrace: function() { | |
5151 return new H._StackTrace(this.$thrownJsError, null); | |
5152 }, | |
5153 $isError: true | |
5154 }, | |
5155 | |
5156 NullThrownError: {"": "Error;", | |
5157 toString$0: function(_) { | |
5158 return "Throw of null."; | |
5159 } | |
5160 }, | |
5161 | |
5162 ArgumentError: {"": "Error;message", | |
5163 toString$0: function(_) { | |
5164 var t1 = this.message; | |
5165 if (t1 != null) | |
5166 return "Illegal argument(s): " + H.S(t1); | |
5167 return "Illegal argument(s)"; | |
5168 }, | |
5169 static: { | |
5170 ArgumentError$: function(message) { | |
5171 return new P.ArgumentError(message); | |
5172 }} | |
5173 | |
5174 }, | |
5175 | |
5176 RangeError: {"": "ArgumentError;message", | |
5177 toString$0: function(_) { | |
5178 return "RangeError: " + H.S(this.message); | |
5179 }, | |
5180 static: { | |
5181 RangeError$value: function(value) { | |
5182 return new P.RangeError("value " + H.S(value)); | |
5183 }, | |
5184 | |
5185 RangeError$range: function(value, start, end) { | |
5186 return new P.RangeError("value " + H.S(value) + " not in range " + start + "..
" + H.S(end)); | |
5187 }} | |
5188 | |
5189 }, | |
5190 | |
5191 UnsupportedError: {"": "Error;message", | |
5192 toString$0: function(_) { | |
5193 return "Unsupported operation: " + this.message; | |
5194 }, | |
5195 static: { | |
5196 UnsupportedError$: function(message) { | |
5197 return new P.UnsupportedError(message); | |
5198 }} | |
5199 | |
5200 }, | |
5201 | |
5202 StateError: {"": "Error;message", | |
5203 toString$0: function(_) { | |
5204 return "Bad state: " + this.message; | |
5205 }, | |
5206 static: { | |
5207 StateError$: function(message) { | |
5208 return new P.StateError(message); | |
5209 }} | |
5210 | |
5211 }, | |
5212 | |
5213 ConcurrentModificationError: {"": "Error;modifiedObject", | |
5214 toString$0: function(_) { | |
5215 var t1 = this.modifiedObject; | |
5216 if (t1 == null) | |
5217 return "Concurrent modification during iteration."; | |
5218 return "Concurrent modification during iteration: " + P.Error_safeToString(t
1) + "."; | |
5219 }, | |
5220 static: { | |
5221 ConcurrentModificationError$: function(modifiedObject) { | |
5222 return new P.ConcurrentModificationError(modifiedObject); | |
5223 }} | |
5224 | |
5225 }, | |
5226 | |
5227 StackOverflowError: {"": "Object;", | |
5228 toString$0: function(_) { | |
5229 return "Stack Overflow"; | |
5230 }, | |
5231 get$stackTrace: function() { | |
5232 return; | |
5233 }, | |
5234 $isError: true | |
5235 }, | |
5236 | |
5237 CyclicInitializationError: {"": "Error;variableName", | |
5238 toString$0: function(_) { | |
5239 return "Reading static variable '" + this.variableName + "' during its initi
alization"; | |
5240 }, | |
5241 static: { | |
5242 CyclicInitializationError$: function(variableName) { | |
5243 return new P.CyclicInitializationError(variableName); | |
5244 }} | |
5245 | |
5246 }, | |
5247 | |
5248 _ExceptionImplementation: {"": "Object;message", | |
5249 toString$0: function(_) { | |
5250 var t1 = this.message; | |
5251 if (t1 == null) | |
5252 return "Exception"; | |
5253 return "Exception: " + H.S(t1); | |
5254 } | |
5255 }, | |
5256 | |
5257 FormatException: {"": "Object;message", | |
5258 toString$0: function(_) { | |
5259 return "FormatException: " + this.message; | |
5260 }, | |
5261 static: { | |
5262 FormatException$: function(message) { | |
5263 return new P.FormatException(message); | |
5264 }} | |
5265 | |
5266 }, | |
5267 | |
5268 Expando: {"": "Object;name", | |
5269 toString$0: function(_) { | |
5270 return "Expando:" + this.name; | |
5271 }, | |
5272 $index: function(_, object) { | |
5273 var values = H.Primitives_getProperty(object, "expando$values"); | |
5274 return values == null ? null : H.Primitives_getProperty(values, this._getKey
$0()); | |
5275 }, | |
5276 $indexSet: function(_, object, value) { | |
5277 var values = H.Primitives_getProperty(object, "expando$values"); | |
5278 if (values == null) { | |
5279 values = new P.Object(); | |
5280 H.Primitives_setProperty(object, "expando$values", values); | |
5281 } | |
5282 H.Primitives_setProperty(values, this._getKey$0(), value); | |
5283 }, | |
5284 _getKey$0: function() { | |
5285 var key, t1; | |
5286 key = H.Primitives_getProperty(this, "expando$key"); | |
5287 if (key == null) { | |
5288 t1 = $.Expando__keyCount; | |
5289 $.Expando__keyCount = t1 + 1; | |
5290 key = "expando$key$" + t1; | |
5291 H.Primitives_setProperty(this, "expando$key", key); | |
5292 } | |
5293 return key; | |
5294 }, | |
5295 static: { | |
5296 "": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount
", | |
5297 } | |
5298 | |
5299 }, | |
5300 | |
5301 Function: {"": "Object;"}, | |
5302 | |
5303 Iterator: {"": "Object;"}, | |
5304 | |
5305 Null: {"": "Object;", | |
5306 toString$0: function(_) { | |
5307 return "null"; | |
5308 } | |
5309 }, | |
5310 | |
5311 Object: {"": ";", | |
5312 $eq: function(_, other) { | |
5313 return this === other; | |
5314 }, | |
5315 get$hashCode: function(_) { | |
5316 return H.Primitives_objectHashCode(this); | |
5317 }, | |
5318 toString$0: function(_) { | |
5319 return H.Primitives_objectToString(this); | |
5320 } | |
5321 }, | |
5322 | |
5323 StackTrace: {"": "Object;"}, | |
5324 | |
5325 StringBuffer: {"": "Object;_contents<", | |
5326 get$length: function(_) { | |
5327 return this._contents.length; | |
5328 }, | |
5329 get$isEmpty: function(_) { | |
5330 return this._contents.length === 0; | |
5331 }, | |
5332 write$1: function(obj) { | |
5333 var str = typeof obj === "string" ? obj : H.S(obj); | |
5334 this._contents = this._contents + str; | |
5335 }, | |
5336 writeAll$2: function(objects, separator) { | |
5337 var iterator, str; | |
5338 iterator = J.get$iterator$ax(objects); | |
5339 if (!iterator.moveNext$0()) | |
5340 return; | |
5341 if (separator.length === 0) | |
5342 do { | |
5343 str = iterator.get$current(); | |
5344 str = typeof str === "string" ? str : H.S(str); | |
5345 this._contents = this._contents + str; | |
5346 } while (iterator.moveNext$0()); | |
5347 else { | |
5348 this.write$1(iterator.get$current()); | |
5349 for (; iterator.moveNext$0();) { | |
5350 this._contents = this._contents + separator; | |
5351 str = iterator.get$current(); | |
5352 str = typeof str === "string" ? str : H.S(str); | |
5353 this._contents = this._contents + str; | |
5354 } | |
5355 } | |
5356 }, | |
5357 toString$0: function(_) { | |
5358 return this._contents; | |
5359 }, | |
5360 StringBuffer$1: function($content) { | |
5361 this._contents = $content; | |
5362 }, | |
5363 static: { | |
5364 StringBuffer$: function($content) { | |
5365 var t1 = new P.StringBuffer(""); | |
5366 t1.StringBuffer$1($content); | |
5367 return t1; | |
5368 }} | |
5369 | |
5370 }, | |
5371 | |
5372 Symbol: {"": "Object;"}}], | |
5373 ["dart.dom.html", "dart:html", , W, { | |
5374 HttpRequest_getString: function(url, onProgress, withCredentials) { | |
5375 return W.HttpRequest_request(url, null, null, onProgress, null, null, null, wi
thCredentials).then$1(new W.HttpRequest_getString_closure()); | |
5376 }, | |
5377 | |
5378 HttpRequest_request: function(url, method, mimeType, onProgress, requestHeaders,
responseType, sendData, withCredentials) { | |
5379 var t1, completer, xhr, t2; | |
5380 t1 = W.HttpRequest; | |
5381 completer = new P._AsyncCompleter(P._Future$(t1)); | |
5382 H.setRuntimeTypeInfo(completer, [t1]); | |
5383 xhr = new XMLHttpRequest(); | |
5384 C.HttpRequest_methods.open$3$async(xhr, "GET", url, true); | |
5385 t1 = new W._EventStream(xhr, C.EventStreamProvider_load._eventType, false); | |
5386 H.setRuntimeTypeInfo(t1, [null]); | |
5387 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._wrapZone(
new W.HttpRequest_request_closure(completer, xhr)), t1._useCapture); | |
5388 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); | |
5389 t2._tryResume$0(); | |
5390 t2 = new W._EventStream(xhr, C.EventStreamProvider_error._eventType, false); | |
5391 H.setRuntimeTypeInfo(t2, [null]); | |
5392 t1 = completer.get$completeError(); | |
5393 t1 = new W._EventStreamSubscription(0, t2._target, t2._eventType, W._wrapZone(
t1), t2._useCapture); | |
5394 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(t2, "_EventStream", 0)]); | |
5395 t1._tryResume$0(); | |
5396 xhr.send(); | |
5397 return completer.future; | |
5398 }, | |
5399 | |
5400 _convertNativeToDart_EventTarget: function(e) { | |
5401 var $window, t1; | |
5402 if (e == null) | |
5403 return; | |
5404 if ("setInterval" in e) { | |
5405 $window = W._DOMWindowCrossFrame__createSafe(e); | |
5406 t1 = J.getInterceptor($window); | |
5407 if (typeof $window === "object" && $window !== null && !!t1.$isEventTarget) | |
5408 return $window; | |
5409 return; | |
5410 } else | |
5411 return e; | |
5412 }, | |
5413 | |
5414 _wrapZone: function(callback) { | |
5415 var t1 = $.Zone__current; | |
5416 if (t1 === C.C__RootZone) | |
5417 return callback; | |
5418 return t1.bindUnaryCallback$2$runGuarded(callback, true); | |
5419 }, | |
5420 | |
5421 HttpRequest_getString_closure: {"": "Closure;", | |
5422 call$1: function(xhr) { | |
5423 return J.get$responseText$x(xhr); | |
5424 }, | |
5425 $is_args1: true | |
5426 }, | |
5427 | |
5428 HttpRequest_request_closure0: {"": "Closure;xhr_0", | |
5429 call$2: function(header, value) { | |
5430 this.xhr_0.setRequestHeader(header, value); | |
5431 }, | |
5432 $is_args2: true | |
5433 }, | |
5434 | |
5435 HttpRequest_request_closure: {"": "Closure;completer_1,xhr_2", | |
5436 call$1: function(e) { | |
5437 var t1, t2, t3; | |
5438 t1 = this.xhr_2; | |
5439 t2 = t1.status; | |
5440 if (typeof t2 !== "number") | |
5441 throw t2.$ge(); | |
5442 t2 = t2 >= 200 && t2 < 300 || t2 === 0 || t2 === 304; | |
5443 t3 = this.completer_1; | |
5444 if (t2) { | |
5445 t2 = t3.future; | |
5446 if (t2._state !== 0) | |
5447 H.throwExpression(P.StateError$("Future already completed")); | |
5448 t2._asyncComplete$1(t1); | |
5449 } else { | |
5450 t1 = t3.future; | |
5451 if (t1._state !== 0) | |
5452 H.throwExpression(P.StateError$("Future already completed")); | |
5453 t1._asyncCompleteError$2(e, null); | |
5454 } | |
5455 }, | |
5456 $is_args1: true | |
5457 }, | |
5458 | |
5459 Storage_keys_closure: {"": "Closure;keys_0", | |
5460 call$2: function(k, v) { | |
5461 return this.keys_0.push(k); | |
5462 }, | |
5463 $is_args2: true | |
5464 }, | |
5465 | |
5466 Storage_values_closure: {"": "Closure;values_0", | |
5467 call$2: function(k, v) { | |
5468 return this.values_0.push(v); | |
5469 }, | |
5470 $is_args2: true | |
5471 }, | |
5472 | |
5473 _EventStream: {"": "Stream;_target,_eventType,_useCapture", | |
5474 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
5475 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W.
_wrapZone(onData), this._useCapture); | |
5476 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)]
); | |
5477 t1._tryResume$0(); | |
5478 return t1; | |
5479 }, | |
5480 $asStream: null | |
5481 }, | |
5482 | |
5483 _ElementEventStreamImpl: {"": "_EventStream;_target,_eventType,_useCapture", $as
_EventStream: null}, | |
5484 | |
5485 _EventStreamSubscription: {"": "StreamSubscription;_pauseCount,_target,_eventTyp
e,_onData,_useCapture", | |
5486 cancel$0: function() { | |
5487 if (this._target == null) | |
5488 return; | |
5489 this._unlisten$0(); | |
5490 this._target = null; | |
5491 this._onData = null; | |
5492 }, | |
5493 _tryResume$0: function() { | |
5494 var t1 = this._onData; | |
5495 if (t1 != null && this._pauseCount <= 0) | |
5496 J.addEventListener$3$x(this._target, this._eventType, t1, this._useCapture
); | |
5497 }, | |
5498 _unlisten$0: function() { | |
5499 var t1 = this._onData; | |
5500 if (t1 != null) | |
5501 J.removeEventListener$3$x(this._target, this._eventType, t1, this._useCapt
ure); | |
5502 }, | |
5503 $asStreamSubscription: null | |
5504 }, | |
5505 | |
5506 EventStreamProvider: {"": "Object;_eventType"}, | |
5507 | |
5508 _DOMWindowCrossFrame: {"": "Object;_window", $isEventTarget: true, static: { | |
5509 _DOMWindowCrossFrame__createSafe: function(w) { | |
5510 if (w === window) | |
5511 return w; | |
5512 else | |
5513 return new W._DOMWindowCrossFrame(w); | |
5514 }} | |
5515 }, | |
5516 | |
5517 HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseFont
Element|HTMLBodyElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HT
MLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTML
DivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement
|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElem
ent|HTMLImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMapEle
ment|HTMLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLMod
Element|HTMLOListElement|HTMLObjectElement|HTMLOutputElement|HTMLParagraphElemen
t|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScrip
tElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLTableCaptionEle
ment|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTable
Element|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|H
TMLTemplateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknow
nElement;HTMLElement"}, | |
5518 | |
5519 AnchorElement: {"": "HtmlElement;target=", | |
5520 toString$0: function(receiver) { | |
5521 return receiver.toString(); | |
5522 }, | |
5523 "%": "HTMLAnchorElement" | |
5524 }, | |
5525 | |
5526 AreaElement: {"": "HtmlElement;target=", "%": "HTMLAreaElement"}, | |
5527 | |
5528 BaseElement: {"": "HtmlElement;target=", "%": "HTMLBaseElement"}, | |
5529 | |
5530 ButtonElement: {"": "HtmlElement;disabled}", "%": "HTMLButtonElement"}, | |
5531 | |
5532 CharacterData: {"": "Node;length=", "%": "CDATASection|Comment|Text;CharacterDat
a"}, | |
5533 | |
5534 DomException: {"": "Interceptor;", | |
5535 toString$0: function(receiver) { | |
5536 return receiver.toString(); | |
5537 }, | |
5538 "%": "DOMException" | |
5539 }, | |
5540 | |
5541 Element: {"": "Node;", | |
5542 toString$0: function(receiver) { | |
5543 return receiver.localName; | |
5544 }, | |
5545 "%": ";Element" | |
5546 }, | |
5547 | |
5548 ErrorEvent: {"": "Event;error=", "%": "ErrorEvent"}, | |
5549 | |
5550 Event: {"": "Interceptor;", | |
5551 get$target: function(receiver) { | |
5552 return W._convertNativeToDart_EventTarget(receiver.target); | |
5553 }, | |
5554 "%": "AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnload
Event|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrient
ationEvent|HashChangeEvent|IDBVersionChangeEvent|MIDIConnectionEvent|MIDIMessage
Event|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStreamEvent|Me
diaStreamTrackEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEvent|Overf
lowEvent|PageTransitionEvent|PopStateEvent|RTCDTMFToneChangeEvent|RTCDataChannel
Event|RTCIceCandidateEvent|SecurityPolicyViolationEvent|SpeechInputEvent|SpeechR
ecognitionEvent|SpeechSynthesisEvent|StorageEvent|TrackEvent|TransitionEvent|Web
GLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent;Event" | |
5555 }, | |
5556 | |
5557 EventTarget: {"": "Interceptor;", | |
5558 addEventListener$3: function(receiver, type, listener, useCapture) { | |
5559 return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1)
, useCapture); | |
5560 }, | |
5561 removeEventListener$3: function(receiver, type, listener, useCapture) { | |
5562 return receiver.removeEventListener(type, H.convertDartClosureToJS(listener,
1), useCapture); | |
5563 }, | |
5564 $isEventTarget: true, | |
5565 "%": "MediaStream;EventTarget" | |
5566 }, | |
5567 | |
5568 FieldSetElement: {"": "HtmlElement;disabled}", "%": "HTMLFieldSetElement"}, | |
5569 | |
5570 FormElement: {"": "HtmlElement;length=,target=", "%": "HTMLFormElement"}, | |
5571 | |
5572 HttpRequest: {"": "XmlHttpRequestEventTarget;responseText=", | |
5573 open$5$async$password$user: function(receiver, method, url, async, password, u
ser) { | |
5574 return receiver.open(method, url, async, user, password); | |
5575 }, | |
5576 open$3$async: function($receiver, method, url, async) { | |
5577 return $receiver.open(method, url, async); | |
5578 }, | |
5579 send$1: function(receiver, data) { | |
5580 return receiver.send(data); | |
5581 }, | |
5582 "%": "XMLHttpRequest" | |
5583 }, | |
5584 | |
5585 InputElement: {"": "HtmlElement;disabled}", $isInputElement: true, $isEventTarge
t: true, "%": "HTMLInputElement"}, | |
5586 | |
5587 KeygenElement: {"": "HtmlElement;disabled}", "%": "HTMLKeygenElement"}, | |
5588 | |
5589 LinkElement: {"": "HtmlElement;disabled}", "%": "HTMLLinkElement"}, | |
5590 | |
5591 MediaElement: {"": "HtmlElement;error=", "%": "HTMLAudioElement|HTMLMediaElement
|HTMLVideoElement"}, | |
5592 | |
5593 MouseEvent: {"": "UIEvent;", "%": "DragEvent|MSPointerEvent|MouseEvent|MouseScro
llEvent|MouseWheelEvent|PointerEvent|WheelEvent"}, | |
5594 | |
5595 Node: {"": "EventTarget;", | |
5596 toString$0: function(receiver) { | |
5597 var t1 = receiver.nodeValue; | |
5598 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver)
: t1; | |
5599 }, | |
5600 "%": "Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDocument|Notation
|SVGDocument|ShadowRoot;Node" | |
5601 }, | |
5602 | |
5603 OptGroupElement: {"": "HtmlElement;disabled}", "%": "HTMLOptGroupElement"}, | |
5604 | |
5605 OptionElement: {"": "HtmlElement;disabled}", "%": "HTMLOptionElement"}, | |
5606 | |
5607 ProcessingInstruction: {"": "CharacterData;target=", "%": "ProcessingInstruction
"}, | |
5608 | |
5609 ProgressEvent: {"": "Event;", "%": "ProgressEvent|ResourceProgressEvent|XMLHttpR
equestProgressEvent"}, | |
5610 | |
5611 SelectElement: {"": "HtmlElement;disabled},length=", "%": "HTMLSelectElement"}, | |
5612 | |
5613 SpeechRecognitionError: {"": "Event;error=", "%": "SpeechRecognitionError"}, | |
5614 | |
5615 Storage: {"": "Interceptor;", | |
5616 $index: function(receiver, key) { | |
5617 return receiver.getItem(key); | |
5618 }, | |
5619 $indexSet: function(receiver, key, value) { | |
5620 receiver.setItem(key, value); | |
5621 }, | |
5622 forEach$1: function(receiver, f) { | |
5623 var i, key; | |
5624 for (i = 0; true; ++i) { | |
5625 key = receiver.key(i); | |
5626 if (key == null) | |
5627 return; | |
5628 f.call$2(key, receiver.getItem(key)); | |
5629 } | |
5630 }, | |
5631 get$keys: function(receiver) { | |
5632 var keys = []; | |
5633 this.forEach$1(receiver, new W.Storage_keys_closure(keys)); | |
5634 return keys; | |
5635 }, | |
5636 get$values: function(receiver) { | |
5637 var values = []; | |
5638 this.forEach$1(receiver, new W.Storage_values_closure(values)); | |
5639 return values; | |
5640 }, | |
5641 get$length: function(receiver) { | |
5642 return receiver.length; | |
5643 }, | |
5644 get$isEmpty: function(receiver) { | |
5645 return receiver.key(0) == null; | |
5646 }, | |
5647 $isMap: true, | |
5648 $asMap: function() { | |
5649 return [J.JSString, J.JSString]; | |
5650 }, | |
5651 "%": "Storage" | |
5652 }, | |
5653 | |
5654 StyleElement: {"": "HtmlElement;disabled}", "%": "HTMLStyleElement"}, | |
5655 | |
5656 TextAreaElement: {"": "HtmlElement;disabled}", "%": "HTMLTextAreaElement"}, | |
5657 | |
5658 UIEvent: {"": "Event;", "%": "CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomE
vent|TextEvent|TouchEvent;UIEvent"}, | |
5659 | |
5660 Window: {"": "EventTarget;", | |
5661 toString$0: function(receiver) { | |
5662 return receiver.toString(); | |
5663 }, | |
5664 $isEventTarget: true, | |
5665 "%": "DOMWindow|Window" | |
5666 }, | |
5667 | |
5668 XmlHttpRequestEventTarget: {"": "EventTarget;", "%": ";XMLHttpRequestEventTarget
"}}], | |
5669 ["dart.dom.svg", "dart:svg", , P, { | |
5670 AElement: {"": "GraphicsElement;target=", "%": "SVGAElement"}, | |
5671 | |
5672 GraphicsElement: {"": "SvgElement;", "%": "SVGAltGlyphElement|SVGCircleElement|S
VGClipPathElement|SVGDefsElement|SVGEllipseElement|SVGForeignObjectElement|SVGGE
lement|SVGImageElement|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolyli
neElement|SVGRectElement|SVGSVGElement|SVGSwitchElement|SVGTSpanElement|SVGTextC
ontentElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGUse
Element;SVGGraphicsElement"}, | |
5673 | |
5674 StyleElement0: {"": "SvgElement;disabled}", "%": "SVGStyleElement"}, | |
5675 | |
5676 SvgElement: {"": "Element;", "%": "SVGAltGlyphDefElement|SVGAltGlyphItemElement|
SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTrans
formElement|SVGAnimationElement|SVGComponentTransferFunctionElement|SVGCursorEle
ment|SVGDescElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTran
sferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightin
gElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowEle
ment|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVG
FEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGF
EMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightEleme
nt|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurb
ulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceForm
atElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVG
GlyphElement|SVGGlyphRefElement|SVGGradientElement|SVGHKernElement|SVGLinearGrad
ientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|S
VGMissingGlyphElement|SVGPatternElement|SVGRadialGradientElement|SVGScriptElemen
t|SVGSetElement|SVGStopElement|SVGSymbolElement|SVGTitleElement|SVGVKernElement|
SVGViewElement;SVGElement"}}], | |
5677 ["dart.isolate", "dart:isolate", , P, { | |
5678 ReceivePort: {"": "Object;"}}], | |
5679 ["dart.math", "dart:math", , P, { | |
5680 _Random: {"": "Object;", | |
5681 nextInt$1: function(max) { | |
5682 if (typeof max !== "number") | |
5683 throw max.$lt(); | |
5684 if (max < 0) | |
5685 throw H.wrapException(new P.ArgumentError("negative max: " + max)); | |
5686 if (max > 4294967295) | |
5687 max = 4294967295; | |
5688 return Math.random() * max >>> 0; | |
5689 } | |
5690 }}], | |
5691 ["dart.typed_data", "dart:typed_data", , P, { | |
5692 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null,
$isEfficientLength: true}, | |
5693 | |
5694 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL
istMixin;", $asList: null}, | |
5695 | |
5696 TypedData: {"": "Interceptor;", | |
5697 _invalidIndex$2: function(receiver, index, $length) { | |
5698 var t1 = J.getInterceptor$n(index); | |
5699 if (t1.$lt(index, 0) || t1.$ge(index, $length)) | |
5700 throw H.wrapException(P.RangeError$range(index, 0, $length)); | |
5701 else | |
5702 throw H.wrapException(P.ArgumentError$("Invalid list index " + H.S(index))
); | |
5703 }, | |
5704 "%": ";ArrayBufferView;TypedData_ListMixin|TypedData_ListMixin_FixedLengthList
Mixin" | |
5705 }, | |
5706 | |
5707 Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", | |
5708 get$length: function(receiver) { | |
5709 return C.JS_CONST_ZYJ(receiver); | |
5710 }, | |
5711 $index: function(receiver, index) { | |
5712 var t1 = C.JS_CONST_ZYJ(receiver); | |
5713 if (index >>> 0 != index || J.$ge$n(index, t1)) | |
5714 this._invalidIndex$2(receiver, index, t1); | |
5715 return receiver[index]; | |
5716 }, | |
5717 $indexSet: function(receiver, index, value) { | |
5718 var t1 = C.JS_CONST_ZYJ(receiver); | |
5719 if (index >>> 0 != index || J.$ge$n(index, t1)) | |
5720 this._invalidIndex$2(receiver, index, t1); | |
5721 receiver[index] = value; | |
5722 }, | |
5723 $asList: function() { | |
5724 return [J.JSInt]; | |
5725 }, | |
5726 $isList: true, | |
5727 $isEfficientLength: true, | |
5728 $isJavaScriptIndexingBehavior: true, | |
5729 "%": ";Uint8Array" | |
5730 }}], | |
5731 ["", "piratebadge.dart", , A, { | |
5732 main: function() { | |
5733 var inputField, t1, t2; | |
5734 inputField = document.querySelector("#inputName"); | |
5735 inputField.toString; | |
5736 t1 = new W._ElementEventStreamImpl(inputField, C.EventStreamProvider_input._ev
entType, false); | |
5737 H.setRuntimeTypeInfo(t1, [null]); | |
5738 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._wrapZone(
A.updateBadge$closure), t1._useCapture); | |
5739 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); | |
5740 t2._tryResume$0(); | |
5741 $.genButton = document.querySelector("#generateButton"); | |
5742 t2 = $.genButton; | |
5743 t2.toString; | |
5744 t2 = new W._ElementEventStreamImpl(t2, C.EventStreamProvider_click._eventType,
false); | |
5745 H.setRuntimeTypeInfo(t2, [null]); | |
5746 t1 = new W._EventStreamSubscription(0, t2._target, t2._eventType, W._wrapZone(
A.generateBadge$closure), t2._useCapture); | |
5747 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(t2, "_EventStream", 0)]); | |
5748 t1._tryResume$0(); | |
5749 $.badgeNameElement = document.querySelector("#badgeName"); | |
5750 A.PirateName_readyThePirates().then$1(new A.main_closure(inputField)).catchErr
or$1(new A.main_closure0()); | |
5751 }, | |
5752 | |
5753 updateBadge: function(e) { | |
5754 var inputName, t1, t2; | |
5755 inputName = H.interceptedTypeCast(J.get$target$x(e), "$isInputElement").value; | |
5756 A.setBadgeName(A.PirateName$(null, inputName)); | |
5757 t1 = J.trim$0$s(inputName); | |
5758 t2 = $.genButton; | |
5759 if (t1.length === 0) { | |
5760 J.set$disabled$x(t2, false); | |
5761 t2.textContent = "Aye! Gimme a name!"; | |
5762 } else { | |
5763 J.set$disabled$x(t2, true); | |
5764 t2.textContent = "Arrr! Write yer name!"; | |
5765 } | |
5766 }, | |
5767 | |
5768 generateBadge: function(e) { | |
5769 A.setBadgeName(A.PirateName$(null, null)); | |
5770 }, | |
5771 | |
5772 setBadgeName: function(newName) { | |
5773 var t1; | |
5774 if (newName == null) | |
5775 return; | |
5776 t1 = $.badgeNameElement; | |
5777 t1.textContent = J.get$isEmpty$asx(newName._firstName) === true ? "" : H.S(new
Name._firstName) + " the " + H.S(newName._appellation); | |
5778 window.localStorage.setItem("pirateName", "{ \"f\": \"" + H.S(newName._firstNa
me) + "\", \"a\": \"" + H.S(newName._appellation) + "\" } "); | |
5779 }, | |
5780 | |
5781 getBadgeNameFromStorage: function() { | |
5782 var storedName = window.localStorage.getItem("pirateName"); | |
5783 if (storedName != null) | |
5784 return A.PirateName$fromJSON(storedName); | |
5785 else | |
5786 return; | |
5787 }, | |
5788 | |
5789 main_closure: {"": "Closure;inputField_0", | |
5790 call$1: function(_) { | |
5791 J.set$disabled$x(this.inputField_0, false); | |
5792 J.set$disabled$x($.genButton, false); | |
5793 A.setBadgeName(A.getBadgeNameFromStorage()); | |
5794 }, | |
5795 $is_args1: true | |
5796 }, | |
5797 | |
5798 main_closure0: {"": "Closure;", | |
5799 call$1: function(arrr) { | |
5800 P.print("Error initializing pirate names: " + H.S(arrr)); | |
5801 $.badgeNameElement.textContent = "Arrr! No names."; | |
5802 }, | |
5803 $is_args1: true | |
5804 }, | |
5805 | |
5806 PirateName: {"": "Object;_firstName,_appellation", | |
5807 toString$0: function(_) { | |
5808 return J.get$isEmpty$asx(this._firstName) === true ? "" : H.S(this._firstNam
e) + " the " + H.S(this._appellation); | |
5809 }, | |
5810 PirateName$2$appellation$firstName: function(appellation, firstName) { | |
5811 if (firstName == null) | |
5812 this._firstName = J.$index$asx($.get$PirateName_names(), $.get$PirateName_
indexGen().nextInt$1(J.get$length$asx($.get$PirateName_names()))); | |
5813 else | |
5814 this._firstName = firstName; | |
5815 this._appellation = J.$index$asx($.get$PirateName_appellations(), $.get$Pira
teName_indexGen().nextInt$1(J.get$length$asx($.get$PirateName_appellations()))); | |
5816 }, | |
5817 PirateName$fromJSON$1: function(jsonString) { | |
5818 var storedName, t1; | |
5819 storedName = C.C_JsonCodec.decode$1(jsonString); | |
5820 t1 = J.getInterceptor$asx(storedName); | |
5821 this._firstName = t1.$index(storedName, "f"); | |
5822 this._appellation = t1.$index(storedName, "a"); | |
5823 }, | |
5824 static: { | |
5825 "": "PirateName_indexGen,PirateName_names,PirateName_appellations", | |
5826 PirateName$: function(appellation, firstName) { | |
5827 var t1 = new A.PirateName(null, null); | |
5828 t1.PirateName$2$appellation$firstName(appellation, firstName); | |
5829 return t1; | |
5830 }, | |
5831 | |
5832 PirateName$fromJSON: function(jsonString) { | |
5833 var t1 = new A.PirateName(null, null); | |
5834 t1.PirateName$fromJSON$1(jsonString); | |
5835 return t1; | |
5836 }, | |
5837 | |
5838 PirateName_readyThePirates: function() { | |
5839 return W.HttpRequest_getString("piratenames.json", null, null).then$1(A.Pirate
Name__parsePirateNamesFromJSON$closure); | |
5840 }, | |
5841 | |
5842 PirateName__parsePirateNamesFromJSON: function(jsonString) { | |
5843 var pirateNames, t1; | |
5844 pirateNames = C.C_JsonCodec.decode$1(jsonString); | |
5845 t1 = J.getInterceptor$asx(pirateNames); | |
5846 $.PirateName_names = t1.$index(pirateNames, "names"); | |
5847 $.PirateName_appellations = t1.$index(pirateNames, "appellations"); | |
5848 }} | |
5849 | |
5850 }}, | |
5851 1], | |
5852 ]); | |
5853 Isolate.$finishClasses($$, $, null); | |
5854 $$ = null; | |
5855 | |
5856 // Static function getters | |
5857 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat
ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo
rkerMessage, "IsolateNatives__processWorkerMessage$closure"); | |
5858 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H
.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); | |
5859 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo
sure$7(H.invokeClosure, "invokeClosure$closure"); | |
5860 init.globalFunctions.typeNameInChrome$closure = H.typeNameInChrome$closure = new
H.Closure$1(H.typeNameInChrome, "typeNameInChrome$closure"); | |
5861 init.globalFunctions.typeNameInSafari$closure = H.typeNameInSafari$closure = new
H.Closure$1(H.typeNameInSafari, "typeNameInSafari$closure"); | |
5862 init.globalFunctions.typeNameInOpera$closure = H.typeNameInOpera$closure = new H
.Closure$1(H.typeNameInOpera, "typeNameInOpera$closure"); | |
5863 init.globalFunctions.typeNameInFirefox$closure = H.typeNameInFirefox$closure = n
ew H.Closure$1(H.typeNameInFirefox, "typeNameInFirefox$closure"); | |
5864 init.globalFunctions.typeNameInIE$closure = H.typeNameInIE$closure = new H.Closu
re$1(H.typeNameInIE, "typeNameInIE$closure"); | |
5865 init.globalFunctions.constructorNameFallback$closure = H.constructorNameFallback
$closure = new H.Closure$1(H.constructorNameFallback, "constructorNameFallback$c
losure"); | |
5866 init.globalFunctions.callDartFunctionWith1Arg$closure = H.callDartFunctionWith1A
rg$closure = new H.Closure$2(H.callDartFunctionWith1Arg, "callDartFunctionWith1A
rg$closure"); | |
5867 init.globalFunctions._asyncRunCallback$closure = P._asyncRunCallback$closure = n
ew H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure"); | |
5868 init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new
H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure"); | |
5869 init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = n
ew P.Closure$21(P._nullErrorHandler, "_nullErrorHandler$closure"); | |
5870 init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new
H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure"); | |
5871 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C
losure$2(P._defaultEquals, "_defaultEquals$closure"); | |
5872 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new
H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); | |
5873 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P
.identical, "identical$closure"); | |
5874 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new
H.Closure$1(P.identityHashCode, "identityHashCode$closure"); | |
5875 init.globalFunctions.main$closure = A.main$closure = new H.Closure$0(A.main, "ma
in$closure"); | |
5876 init.globalFunctions.updateBadge$closure = A.updateBadge$closure = new H.Closure
$1(A.updateBadge, "updateBadge$closure"); | |
5877 init.globalFunctions.generateBadge$closure = A.generateBadge$closure = new H.Clo
sure$1(A.generateBadge, "generateBadge$closure"); | |
5878 init.globalFunctions.PirateName__parsePirateNamesFromJSON$closure = A.PirateName
__parsePirateNamesFromJSON$closure = new H.Closure$1(A.PirateName__parsePirateNa
mesFromJSON, "PirateName__parsePirateNamesFromJSON$closure"); | |
5879 // Runtime type support | |
5880 J.JSString.$isString = true; | |
5881 J.JSString.$isObject = true; | |
5882 J.JSInt.$isint = true; | |
5883 J.JSInt.$isObject = true; | |
5884 J.JSNumber.$isObject = true; | |
5885 P.Object.$isObject = true; | |
5886 P.Duration.$isObject = true; | |
5887 W.Event.$isEvent = true; | |
5888 W.Event.$isObject = true; | |
5889 W.MouseEvent.$isEvent = true; | |
5890 W.MouseEvent.$isObject = true; | |
5891 J.JSBool.$isbool = true; | |
5892 J.JSBool.$isObject = true; | |
5893 W.HttpRequest.$isObject = true; | |
5894 W.ProgressEvent.$isEvent = true; | |
5895 W.ProgressEvent.$isObject = true; | |
5896 P.ReceivePort.$isObject = true; | |
5897 H._IsolateEvent.$isObject = true; | |
5898 H._IsolateContext.$isObject = true; | |
5899 J.JSArray.$isObject = true; | |
5900 P.Symbol.$isSymbol = true; | |
5901 P.Symbol.$isObject = true; | |
5902 P.StackTrace.$isStackTrace = true; | |
5903 P.StackTrace.$isObject = true; | |
5904 P.Function.$isFunction = true; | |
5905 P.Function.$isObject = true; | |
5906 P._EventSink.$is_EventSink = true; | |
5907 P._EventSink.$isObject = true; | |
5908 P.Future.$isFuture = true; | |
5909 P.Future.$isObject = true; | |
5910 P.StreamSubscription.$isStreamSubscription = true; | |
5911 P.StreamSubscription.$isObject = true; | |
5912 // getInterceptor methods | |
5913 J.getInterceptor = function(receiver) { | |
5914 if (typeof receiver == "number") { | |
5915 if (Math.floor(receiver) == receiver) | |
5916 return J.JSInt.prototype; | |
5917 return J.JSDouble.prototype; | |
5918 } | |
5919 if (typeof receiver == "string") | |
5920 return J.JSString.prototype; | |
5921 if (receiver == null) | |
5922 return J.JSNull.prototype; | |
5923 if (typeof receiver == "boolean") | |
5924 return J.JSBool.prototype; | |
5925 if (receiver.constructor == Array) | |
5926 return J.JSArray.prototype; | |
5927 if (typeof receiver != "object") | |
5928 return receiver; | |
5929 if (receiver instanceof P.Object) | |
5930 return receiver; | |
5931 return J.getNativeInterceptor(receiver); | |
5932 }; | |
5933 J.getInterceptor$asx = function(receiver) { | |
5934 if (typeof receiver == "string") | |
5935 return J.JSString.prototype; | |
5936 if (receiver == null) | |
5937 return receiver; | |
5938 if (receiver.constructor == Array) | |
5939 return J.JSArray.prototype; | |
5940 if (typeof receiver != "object") | |
5941 return receiver; | |
5942 if (receiver instanceof P.Object) | |
5943 return receiver; | |
5944 return J.getNativeInterceptor(receiver); | |
5945 }; | |
5946 J.getInterceptor$ax = function(receiver) { | |
5947 if (receiver == null) | |
5948 return receiver; | |
5949 if (receiver.constructor == Array) | |
5950 return J.JSArray.prototype; | |
5951 if (typeof receiver != "object") | |
5952 return receiver; | |
5953 if (receiver instanceof P.Object) | |
5954 return receiver; | |
5955 return J.getNativeInterceptor(receiver); | |
5956 }; | |
5957 J.getInterceptor$n = function(receiver) { | |
5958 if (typeof receiver == "number") | |
5959 return J.JSNumber.prototype; | |
5960 if (receiver == null) | |
5961 return receiver; | |
5962 if (!(receiver instanceof P.Object)) | |
5963 return J.UnknownJavaScriptObject.prototype; | |
5964 return receiver; | |
5965 }; | |
5966 J.getInterceptor$s = function(receiver) { | |
5967 if (typeof receiver == "string") | |
5968 return J.JSString.prototype; | |
5969 if (receiver == null) | |
5970 return receiver; | |
5971 if (!(receiver instanceof P.Object)) | |
5972 return J.UnknownJavaScriptObject.prototype; | |
5973 return receiver; | |
5974 }; | |
5975 J.getInterceptor$x = function(receiver) { | |
5976 if (receiver == null) | |
5977 return receiver; | |
5978 if (typeof receiver != "object") | |
5979 return receiver; | |
5980 if (receiver instanceof P.Object) | |
5981 return receiver; | |
5982 return J.getNativeInterceptor(receiver); | |
5983 }; | |
5984 C.C_JsonCodec = new P.JsonCodec(); | |
5985 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); | |
5986 C.C__DelayedDone = new P._DelayedDone(); | |
5987 C.C__Random = new P._Random(); | |
5988 C.C__RootZone = new P._RootZone(); | |
5989 C.Duration_0 = new P.Duration(0); | |
5990 C.EventStreamProvider_click = new W.EventStreamProvider("click"); | |
5991 C.EventStreamProvider_error = new W.EventStreamProvider("error"); | |
5992 C.EventStreamProvider_input = new W.EventStreamProvider("input"); | |
5993 C.EventStreamProvider_load = new W.EventStreamProvider("load"); | |
5994 C.HttpRequest_methods = W.HttpRequest.prototype; | |
5995 C.JSArray_methods = J.JSArray.prototype; | |
5996 C.JSInt_methods = J.JSInt.prototype; | |
5997 C.JSNumber_methods = J.JSNumber.prototype; | |
5998 C.JSString_methods = J.JSString.prototype; | |
5999 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" &&
"system" in os) | |
6000 || (typeof navigator == "object" | |
6001 && navigator.userAgent.indexOf('Chrome') != -1)) | |
6002 ? function(x) { return x.$dartCachedLength || x.length; } | |
6003 : function(x) { return x.length; }; | |
6004 ; | |
6005 C.JsonDecoder_null = new P.JsonDecoder(null); | |
6006 Isolate.makeConstantList = function(list) { | |
6007 list.immutable$list = true; | |
6008 list.fixed$length = true; | |
6009 return list; | |
6010 }; | |
6011 C.List_empty = Isolate.makeConstantList([]); | |
6012 $.lazyPort = null; | |
6013 $.ReceivePortImpl__nextFreeId = 1; | |
6014 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; | |
6015 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; | |
6016 $.initNativeDispatchFlag = null; | |
6017 $.printToZone = null; | |
6018 $._callbacksAreEnqueued = false; | |
6019 $.Zone__current = C.C__RootZone; | |
6020 $.Expando__keyCount = 0; | |
6021 $.Device__isOpera = null; | |
6022 $.Device__isWebKit = null; | |
6023 $.genButton = null; | |
6024 $.badgeNameElement = null; | |
6025 J.$eq = function(receiver, a0) { | |
6026 if (receiver == null) | |
6027 return a0 == null; | |
6028 if (typeof receiver != "object") | |
6029 return a0 != null && receiver === a0; | |
6030 return J.getInterceptor(receiver).$eq(receiver, a0); | |
6031 }; | |
6032 J.$ge$n = function(receiver, a0) { | |
6033 if (typeof receiver == "number" && typeof a0 == "number") | |
6034 return receiver >= a0; | |
6035 return J.getInterceptor$n(receiver).$ge(receiver, a0); | |
6036 }; | |
6037 J.$index$asx = function(receiver, a0) { | |
6038 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde
xable(receiver, receiver[init.dispatchPropertyName])) | |
6039 if (a0 >>> 0 === a0 && a0 < receiver.length) | |
6040 return receiver[a0]; | |
6041 return J.getInterceptor$asx(receiver).$index(receiver, a0); | |
6042 }; | |
6043 J.$indexSet$ax = function(receiver, a0, a1) { | |
6044 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.
dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r
eceiver.length) | |
6045 return receiver[a0] = a1; | |
6046 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); | |
6047 }; | |
6048 J.addEventListener$3$x = function(receiver, a0, a1, a2) { | |
6049 return J.getInterceptor$x(receiver).addEventListener$3(receiver, a0, a1, a2); | |
6050 }; | |
6051 J.forEach$1$ax = function(receiver, a0) { | |
6052 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); | |
6053 }; | |
6054 J.get$_key$x = function(receiver) { | |
6055 return J.getInterceptor$x(receiver).get$_key(receiver); | |
6056 }; | |
6057 J.get$error$x = function(receiver) { | |
6058 return J.getInterceptor$x(receiver).get$error(receiver); | |
6059 }; | |
6060 J.get$hashCode$ = function(receiver) { | |
6061 return J.getInterceptor(receiver).get$hashCode(receiver); | |
6062 }; | |
6063 J.get$isEmpty$asx = function(receiver) { | |
6064 return J.getInterceptor$asx(receiver).get$isEmpty(receiver); | |
6065 }; | |
6066 J.get$iterator$ax = function(receiver) { | |
6067 return J.getInterceptor$ax(receiver).get$iterator(receiver); | |
6068 }; | |
6069 J.get$length$asx = function(receiver) { | |
6070 return J.getInterceptor$asx(receiver).get$length(receiver); | |
6071 }; | |
6072 J.get$responseText$x = function(receiver) { | |
6073 return J.getInterceptor$x(receiver).get$responseText(receiver); | |
6074 }; | |
6075 J.get$target$x = function(receiver) { | |
6076 return J.getInterceptor$x(receiver).get$target(receiver); | |
6077 }; | |
6078 J.get$values$x = function(receiver) { | |
6079 return J.getInterceptor$x(receiver).get$values(receiver); | |
6080 }; | |
6081 J.removeEventListener$3$x = function(receiver, a0, a1, a2) { | |
6082 return J.getInterceptor$x(receiver).removeEventListener$3(receiver, a0, a1, a2
); | |
6083 }; | |
6084 J.send$1$x = function(receiver, a0) { | |
6085 return J.getInterceptor$x(receiver).send$1(receiver, a0); | |
6086 }; | |
6087 J.set$disabled$x = function(receiver, value) { | |
6088 return J.getInterceptor$x(receiver).set$disabled(receiver, value); | |
6089 }; | |
6090 J.toList$0$ax = function(receiver) { | |
6091 return J.getInterceptor$ax(receiver).toList$0(receiver); | |
6092 }; | |
6093 J.toString$0 = function(receiver) { | |
6094 return J.getInterceptor(receiver).toString$0(receiver); | |
6095 }; | |
6096 J.trim$0$s = function(receiver) { | |
6097 return J.getInterceptor$s(receiver).trim$0(receiver); | |
6098 }; | |
6099 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { | |
6100 return function() { return this; }(); | |
6101 }); | |
6102 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function()
{ | |
6103 return $.get$globalThis().window; | |
6104 }); | |
6105 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function()
{ | |
6106 return $.get$globalThis().Worker; | |
6107 }); | |
6108 Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$gl
obalPostMessageDefined", function() { | |
6109 return $.get$globalThis().postMessage !== void 0; | |
6110 }); | |
6111 Isolate.$lazy($, "thisScript", "IsolateNatives_thisScript", "get$IsolateNatives_
thisScript", function() { | |
6112 return H.IsolateNatives_computeThisScript(); | |
6113 }); | |
6114 Isolate.$lazy($, "workerIds", "IsolateNatives_workerIds", "get$IsolateNatives_wo
rkerIds", function() { | |
6115 return new P.Expando(null); | |
6116 }); | |
6117 Isolate.$lazy($, "noSuchMethodPattern", "TypeErrorDecoder_noSuchMethodPattern",
"get$TypeErrorDecoder_noSuchMethodPattern", function() { | |
6118 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
({ toString: function() { return "$receiver$"; } })); | |
6119 }); | |
6120 Isolate.$lazy($, "notClosurePattern", "TypeErrorDecoder_notClosurePattern", "get
$TypeErrorDecoder_notClosurePattern", function() { | |
6121 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
({ $method$: null, toString: function() { return "$receiver$"; } })); | |
6122 }); | |
6123 Isolate.$lazy($, "nullCallPattern", "TypeErrorDecoder_nullCallPattern", "get$Typ
eErrorDecoder_nullCallPattern", function() { | |
6124 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
(null)); | |
6125 }); | |
6126 Isolate.$lazy($, "nullLiteralCallPattern", "TypeErrorDecoder_nullLiteralCallPatt
ern", "get$TypeErrorDecoder_nullLiteralCallPattern", function() { | |
6127 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
Null()); | |
6128 }); | |
6129 Isolate.$lazy($, "undefinedCallPattern", "TypeErrorDecoder_undefinedCallPattern"
, "get$TypeErrorDecoder_undefinedCallPattern", function() { | |
6130 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
(void 0)); | |
6131 }); | |
6132 Isolate.$lazy($, "undefinedLiteralCallPattern", "TypeErrorDecoder_undefinedLiter
alCallPattern", "get$TypeErrorDecoder_undefinedLiteralCallPattern", function() { | |
6133 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
Undefined()); | |
6134 }); | |
6135 Isolate.$lazy($, "nullPropertyPattern", "TypeErrorDecoder_nullPropertyPattern",
"get$TypeErrorDecoder_nullPropertyPattern", function() { | |
6136 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOn(null)); | |
6137 }); | |
6138 Isolate.$lazy($, "nullLiteralPropertyPattern", "TypeErrorDecoder_nullLiteralProp
ertyPattern", "get$TypeErrorDecoder_nullLiteralPropertyPattern", function() { | |
6139 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOnNull()); | |
6140 }); | |
6141 Isolate.$lazy($, "undefinedPropertyPattern", "TypeErrorDecoder_undefinedProperty
Pattern", "get$TypeErrorDecoder_undefinedPropertyPattern", function() { | |
6142 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOn(void 0)); | |
6143 }); | |
6144 Isolate.$lazy($, "undefinedLiteralPropertyPattern", "TypeErrorDecoder_undefinedL
iteralPropertyPattern", "get$TypeErrorDecoder_undefinedLiteralPropertyPattern",
function() { | |
6145 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOnUndefined()); | |
6146 }); | |
6147 Isolate.$lazy($, "getTypeNameOf", "getTypeNameOf", "get$getTypeNameOf", function
() { | |
6148 return H.getFunctionForTypeNameOf(); | |
6149 }); | |
6150 Isolate.$lazy($, "_toStringList", "IterableMixinWorkaround__toStringList", "get$
IterableMixinWorkaround__toStringList", function() { | |
6151 return P.List_List(null, null); | |
6152 }); | |
6153 Isolate.$lazy($, "_stackTraceExpando", "_stackTraceExpando", "get$_stackTraceExp
ando", function() { | |
6154 return new P.Expando("asynchronous error"); | |
6155 }); | |
6156 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu
nction() { | |
6157 return P.ListQueue$(null, {func: "void_", void: true}); | |
6158 }); | |
6159 Isolate.$lazy($, "_toStringVisiting", "_toStringVisiting", "get$_toStringVisitin
g", function() { | |
6160 return P.HashSet_HashSet$identity(null); | |
6161 }); | |
6162 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList"
, function() { | |
6163 return P.List_List(null, null); | |
6164 }); | |
6165 Isolate.$lazy($, "indexGen", "PirateName_indexGen", "get$PirateName_indexGen", f
unction() { | |
6166 return C.C__Random; | |
6167 }); | |
6168 Isolate.$lazy($, "names", "PirateName_names", "get$PirateName_names", function()
{ | |
6169 return []; | |
6170 }); | |
6171 Isolate.$lazy($, "appellations", "PirateName_appellations", "get$PirateName_appe
llations", function() { | |
6172 return []; | |
6173 }); | |
6174 // Native classes | |
6175 J.Interceptor["%"] = "DOMError|FileError|MediaError|MediaKeyError|Navigator|Navi
gatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedStri
ng"; | |
6176 | |
6177 | |
6178 init.functionAliases = {}; | |
6179 ; | |
6180 init.metadata = []; | |
6181 $ = null; | |
6182 Isolate = Isolate.$finishIsolateConstructor(Isolate); | |
6183 $ = new Isolate(); | |
6184 function convertToFastObject(properties) { | 3529 function convertToFastObject(properties) { |
6185 function MyClass() {}; | 3530 function MyClass() {}; |
6186 MyClass.prototype = properties; | 3531 MyClass.prototype = properties; |
6187 new MyClass(); | 3532 new MyClass(); |
6188 return properties; | 3533 return properties; |
6189 } | 3534 } |
6190 A = convertToFastObject(A); | 3535 A = convertToFastObject(A) |
6191 B = convertToFastObject(B); | 3536 B = convertToFastObject(B) |
6192 C = convertToFastObject(C); | 3537 C = convertToFastObject(C) |
6193 D = convertToFastObject(D); | 3538 D = convertToFastObject(D) |
6194 E = convertToFastObject(E); | 3539 E = convertToFastObject(E) |
6195 F = convertToFastObject(F); | 3540 F = convertToFastObject(F) |
6196 G = convertToFastObject(G); | 3541 G = convertToFastObject(G) |
6197 H = convertToFastObject(H); | 3542 H = convertToFastObject(H) |
6198 J = convertToFastObject(J); | 3543 J = convertToFastObject(J) |
6199 K = convertToFastObject(K); | 3544 K = convertToFastObject(K) |
6200 L = convertToFastObject(L); | 3545 L = convertToFastObject(L) |
6201 M = convertToFastObject(M); | 3546 M = convertToFastObject(M) |
6202 N = convertToFastObject(N); | 3547 N = convertToFastObject(N) |
6203 O = convertToFastObject(O); | 3548 O = convertToFastObject(O) |
6204 P = convertToFastObject(P); | 3549 P = convertToFastObject(P) |
6205 Q = convertToFastObject(Q); | 3550 Q = convertToFastObject(Q) |
6206 R = convertToFastObject(R); | 3551 R = convertToFastObject(R) |
6207 S = convertToFastObject(S); | 3552 S = convertToFastObject(S) |
6208 T = convertToFastObject(T); | 3553 T = convertToFastObject(T) |
6209 U = convertToFastObject(U); | 3554 U = convertToFastObject(U) |
6210 V = convertToFastObject(V); | 3555 V = convertToFastObject(V) |
6211 W = convertToFastObject(W); | 3556 W = convertToFastObject(W) |
6212 X = convertToFastObject(X); | 3557 X = convertToFastObject(X) |
6213 Y = convertToFastObject(Y); | 3558 Y = convertToFastObject(Y) |
6214 Z = convertToFastObject(Z); | 3559 Z = convertToFastObject(Z) |
6215 !function() { | 3560 !function(){function intern(a){var u={} |
6216 var objectProto = Object.prototype; | 3561 u[a]=1 |
6217 for (var i = 0;; i++) { | 3562 return Object.keys(convertToFastObject(u))[0]}init.getIsolateTag=function(a){ret
urn intern("___dart_"+a+init.isolateTag)} |
6218 var property = "___dart_dispatch_record_ZxYxX_0_"; | 3563 var z="___dart_isolate_tags_" |
6219 if (i > 0) | 3564 var y=Object[z]||(Object[z]=Object.create(null)) |
6220 property = rootProperty + "_" + i; | 3565 var x="_ZxYxX" |
6221 if (!(property in objectProto)) | 3566 for(var w=0;;w++){var v=intern(x+"_"+w+"_") |
6222 return init.dispatchPropertyName = property; | 3567 if(!(v in y)){y[v]=1 |
6223 } | 3568 init.isolateTag=v |
6224 }(); | 3569 break}}}() |
6225 // BEGIN invoke [main]. | 3570 init.dispatchPropertyName=init.getIsolateTag("dispatch_record") |
6226 ;(function (callback) { | 3571 ;(function (callback) { |
6227 if (typeof document === "undefined") { | 3572 if (typeof document === "undefined") { |
6228 callback(null); | 3573 callback(null); |
6229 return; | 3574 return; |
6230 } | 3575 } |
6231 if (document.currentScript) { | 3576 if (document.currentScript) { |
6232 callback(document.currentScript); | 3577 callback(document.currentScript); |
6233 return; | 3578 return; |
6234 } | 3579 } |
6235 | 3580 |
6236 var scripts = document.scripts; | 3581 var scripts = document.scripts; |
6237 function onLoad(event) { | 3582 function onLoad(event) { |
6238 for (var i = 0; i < scripts.length; ++i) { | 3583 for (var i = 0; i < scripts.length; ++i) { |
6239 scripts[i].removeEventListener("load", onLoad, false); | 3584 scripts[i].removeEventListener("load", onLoad, false); |
6240 } | 3585 } |
6241 callback(event.target); | 3586 callback(event.target); |
6242 } | 3587 } |
6243 for (var i = 0; i < scripts.length; ++i) { | 3588 for (var i = 0; i < scripts.length; ++i) { |
6244 scripts[i].addEventListener("load", onLoad, false); | 3589 scripts[i].addEventListener("load", onLoad, false); |
6245 } | 3590 } |
6246 })(function(currentScript) { | 3591 })(function(currentScript) { |
6247 init.currentScript = currentScript; | 3592 init.currentScript = currentScript; |
6248 | 3593 |
6249 if (typeof dartMainRunner === "function") { | 3594 if (typeof dartMainRunner === "function") { |
6250 dartMainRunner(function() { H.startRootIsolate(A.main$closure); }); | 3595 dartMainRunner((function(a){H.Rq(A.eE(),a)}), []); |
6251 } else { | 3596 } else { |
6252 H.startRootIsolate(A.main$closure); | 3597 (function(a){H.Rq(A.eE(),a)})([]); |
6253 } | 3598 } |
6254 }); | 3599 }) |
6255 // END invoke [main]. | 3600 function init(){I.p={} |
6256 function init() { | 3601 function generateAccessor(a,b,c){var y=a.split("-") |
6257 Isolate.$isolateProperties = {}; | 3602 var x=y[0] |
6258 function generateAccessor(field, accessors, cls) { | 3603 var w=x.length |
6259 var len = field.length; | 3604 var v=x.charCodeAt(w-1) |
6260 var code = field.charCodeAt(len - 1); | 3605 var u |
6261 var reflectable = false; | 3606 if(y.length>1)u=true |
6262 if (code == 45) { | 3607 else u=false |
6263 len--; | 3608 v=v>=60&&v<=64?v-59:v>=123&&v<=126?v-117:v>=37&&v<=43?v-27:0 |
6264 code = field.charCodeAt(len - 1); | 3609 if(v){var t=v&3 |
6265 field = field.substring(0, len); | 3610 var s=v>>2 |
6266 reflectable = true; | 3611 var r=x=x.substring(0,w-1) |
6267 } | 3612 var q=x.indexOf(":") |
6268 code = code >= 60 && code <= 64 ? code - 59 : code >= 123 && code <= 126 ? c
ode - 117 : code >= 37 && code <= 43 ? code - 27 : 0; | 3613 if(q>0){r=x.substring(0,q) |
6269 if (code) { | 3614 x=x.substring(q+1)}if(t){var p=t&2?"r":"" |
6270 var getterCode = code & 3; | 3615 var o=t&1?"this":"r" |
6271 var setterCode = code >> 2; | 3616 var n="return "+o+"."+x |
6272 var accessorName = field = field.substring(0, len - 1); | 3617 var m=c+".prototype.g"+r+"=" |
6273 var divider = field.indexOf(":"); | 3618 var l="function("+p+"){"+n+"}" |
6274 if (divider > 0) { | 3619 if(u)b.push(m+"$reflectable("+l+");\n") |
6275 accessorName = field.substring(0, divider); | 3620 else b.push(m+l+";\n")}if(s){var p=s&2?"r,v":"v" |
6276 field = field.substring(divider + 1); | 3621 var o=s&1?"this":"r" |
6277 } | 3622 var n=o+"."+x+"=v" |
6278 if (getterCode) { | 3623 var m=c+".prototype.s"+r+"=" |
6279 var args = getterCode & 2 ? "receiver" : ""; | 3624 var l="function("+p+"){"+n+"}" |
6280 var receiver = getterCode & 1 ? "this" : "receiver"; | 3625 if(u)b.push(m+"$reflectable("+l+");\n") |
6281 var body = "return " + receiver + "." + field; | 3626 else b.push(m+l+";\n")}}return x}I.p.$generateAccessor=generateAccessor |
6282 var property = cls + ".prototype.get$" + accessorName + "="; | 3627 function defineClass(a,b,c){var y=[] |
6283 var fn = "function(" + args + "){" + body + "}"; | 3628 var x="function "+b+"(" |
6284 if (reflectable) | 3629 var w="" |
6285 accessors.push(property + "$reflectable(" + fn + ");\n"); | 3630 for(var v=0;v<c.length;v++){if(v!=0)x+=", " |
6286 else | 3631 var u=generateAccessor(c[v],y,b) |
6287 accessors.push(property + fn + ";\n"); | 3632 var t="parameter_"+u |
6288 } | 3633 x+=t |
6289 if (setterCode) { | 3634 w+="this."+u+" = "+t+";\n"}x+=") {\n"+w+"}\n" |
6290 var args = setterCode & 2 ? "receiver, value" : "value"; | 3635 x+=b+".builtin$cls=\""+a+"\";\n" |
6291 var receiver = setterCode & 1 ? "this" : "receiver"; | 3636 x+="$desc=$collectedClasses."+b+";\n" |
6292 var body = receiver + "." + field + " = value"; | 3637 x+="if($desc instanceof Array) $desc = $desc[1];\n" |
6293 var property = cls + ".prototype.set$" + accessorName + "="; | 3638 x+=b+".prototype = $desc;\n" |
6294 var fn = "function(" + args + "){" + body + "}"; | 3639 if(typeof defineClass.name!="string"){x+=b+".name=\""+b+"\";\n"}x+=y.join("") |
6295 if (reflectable) | 3640 return x}var z=function(){function tmp(){}var y=Object.prototype.hasOwnProperty |
6296 accessors.push(property + "$reflectable(" + fn + ");\n"); | 3641 return function(a,b){tmp.prototype=b.prototype |
6297 else | 3642 var x=new tmp() |
6298 accessors.push(property + fn + ";\n"); | 3643 var w=a.prototype |
6299 } | 3644 for(var v in w)if(y.call(w,v))x[v]=w[v] |
6300 } | 3645 x.constructor=a |
6301 return field; | 3646 a.prototype=x |
6302 } | 3647 return x}}() |
6303 Isolate.$isolateProperties.$generateAccessor = generateAccessor; | 3648 I.$finishClasses=function(a,b,c){var y={} |
6304 function defineClass(name, cls, fields) { | 3649 if(!init.allClasses)init.allClasses={} |
6305 var accessors = []; | 3650 var x=init.allClasses |
6306 var str = "function " + cls + "("; | 3651 var w=Object.prototype.hasOwnProperty |
6307 var body = ""; | 3652 if(typeof dart_precompiled=="function"){var v=dart_precompiled(a)}else{var u="fu
nction $reflectable(fn){fn.$reflectable=1;return fn};\n"+"var $desc;\n" |
6308 for (var i = 0; i < fields.length; i++) { | 3653 var t=[]}for(var s in a){if(w.call(a,s)){var r=a[s] |
6309 if (i != 0) | 3654 if(r instanceof Array)r=r[1] |
6310 str += ", "; | 3655 var q=r["^"],p,o=s,n=q |
6311 var field = generateAccessor(fields[i], accessors, cls); | 3656 if(typeof q=="string"){var m=q.split("/") |
6312 var parameter = "parameter_" + field; | 3657 if(m.length==2){o=m[0] |
6313 str += parameter; | 3658 n=m[1]}}var l=n.split(";") |
6314 body += "this." + field + " = " + parameter + ";\n"; | 3659 n=l[1]==""?[]:l[1].split(",") |
6315 } | 3660 p=l[0] |
6316 str += ") {\n" + body + "}\n"; | 3661 m=p.split(":") |
6317 str += cls + ".builtin$cls=\"" + name + "\";\n"; | 3662 if(m.length==2){p=m[0] |
6318 str += "$desc=$collectedClasses." + cls + ";\n"; | 3663 var k=m[1] |
6319 str += "if($desc instanceof Array) $desc = $desc[1];\n"; | 3664 if(k)r.$signature=function(d){return function(){return init.metadata[d]}}(k)}if(
p&&p.indexOf("+")>0){l=p.split("+") |
6320 str += cls + ".prototype = $desc;\n"; | 3665 p=l[0] |
6321 if (typeof defineClass.name != "string") { | 3666 var j=a[l[1]] |
6322 str += cls + ".name=\"" + cls + "\";\n"; | 3667 if(j instanceof Array)j=j[1] |
6323 } | 3668 for(var i in j){if(w.call(j,i)&&!w.call(r,i))r[i]=j[i]}}if(typeof dart_precompil
ed!="function"){u+=defineClass(o,s,n) |
6324 str += accessors.join(""); | 3669 t.push(s)}if(p)y[s]=p}}if(typeof dart_precompiled!="function"){u+="return [\n "
+t.join(",\n ")+"\n]" |
6325 return str; | 3670 var v=new Function("$collectedClasses",u)(a) |
6326 } | 3671 u=null}for(var h=0;h<v.length;h++){var g=v[h] |
6327 var inheritFrom = function() { | 3672 var s=g.name |
6328 function tmp() { | 3673 var r=a[s] |
6329 } | 3674 var f=b |
6330 var hasOwnProperty = Object.prototype.hasOwnProperty; | 3675 if(r instanceof Array){f=r[0]||b |
6331 return function(constructor, superConstructor) { | 3676 r=r[1]}x[s]=g |
6332 tmp.prototype = superConstructor.prototype; | 3677 f[s]=g}v=null |
6333 var object = new tmp(); | 3678 var e={} |
6334 var properties = constructor.prototype; | 3679 init.interceptorsByTag=Object.create(null) |
6335 for (var member in properties) | 3680 init.leafTags={} |
6336 if (hasOwnProperty.call(properties, member)) | 3681 function finishClass(a9){var d=Object.prototype.hasOwnProperty |
6337 object[member] = properties[member]; | 3682 if(d.call(e,a9))return |
6338 object.constructor = constructor; | 3683 e[a9]=true |
6339 constructor.prototype = object; | 3684 var a0=y[a9] |
6340 return object; | 3685 if(!a0||typeof a0!="string")return |
6341 }; | 3686 finishClass(a0) |
6342 }(); | 3687 var a1=x[a9] |
6343 Isolate.$finishClasses = function(collectedClasses, isolateProperties, existin
gIsolateProperties) { | 3688 var a2=x[a0] |
6344 var pendingClasses = {}; | 3689 if(!a2)a2=c[a0] |
6345 if (!init.allClasses) | 3690 var a3=z(a1,a2) |
6346 init.allClasses = {}; | 3691 if(d.call(a3,"%")){var a4=a3["%"].split(";") |
6347 var allClasses = init.allClasses; | 3692 if(a4[0]){var a5=a4[0].split("|") |
6348 var hasOwnProperty = Object.prototype.hasOwnProperty; | 3693 for(var a6=0;a6<a5.length;a6++){init.interceptorsByTag[a5[a6]]=a1 |
6349 if (typeof dart_precompiled == "function") { | 3694 init.leafTags[a5[a6]]=true}}if(a4[1]){a5=a4[1].split("|") |
6350 var constructors = dart_precompiled(collectedClasses); | 3695 if(a4[2]){var a7=a4[2].split("|") |
6351 } else { | 3696 for(var a6=0;a6<a7.length;a6++){var a8=x[a7[a6]] |
6352 var combinedConstructorFunction = "function $reflectable(fn){fn.$reflectab
le=1;return fn};\n" + "var $desc;\n"; | 3697 a8.$nativeSuperclassTag=a5[0]}}for(a6=0;a6<a5.length;a6++){init.interceptorsByTa
g[a5[a6]]=a1 |
6353 var constructorsList = []; | 3698 init.leafTags[a5[a6]]=false}}}}for(var s in y)finishClass(s)} |
6354 } | 3699 I.$lazy=function(a,b,c,d,e){var y={} |
6355 for (var cls in collectedClasses) { | 3700 var x={} |
6356 if (hasOwnProperty.call(collectedClasses, cls)) { | 3701 a[c]=y |
6357 var desc = collectedClasses[cls]; | 3702 a[d]=function(){var w=$[c] |
6358 if (desc instanceof Array) | 3703 try{if(w===y){$[c]=x |
6359 desc = desc[1]; | 3704 try{w=$[c]=e()}finally{if(w===y)if($[c]===x)$[c]=null}}else{if(w===x)H.ag(b)}ret
urn w}finally{$[d]=function(){return this[c]}}}} |
6360 var classData = desc[""], supr, name = cls, fields = classData; | 3705 I.$finishIsolateConstructor=function(a){var y=a.p |
6361 if (typeof classData == "string") { | 3706 function Isolate(){var x=Object.prototype.hasOwnProperty |
6362 var split = classData.split("/"); | 3707 for(var w in y)if(x.call(y,w))this[w]=y[w] |
6363 if (split.length == 2) { | 3708 function ForceEfficientMap(){}ForceEfficientMap.prototype=this |
6364 name = split[0]; | 3709 new ForceEfficientMap()}Isolate.prototype=a.prototype |
6365 fields = split[1]; | 3710 Isolate.prototype.constructor=Isolate |
6366 } | 3711 Isolate.p=y |
6367 } | 3712 Isolate.$finishClasses=a.$finishClasses |
6368 var s = fields.split(";"); | 3713 return Isolate}} |
6369 fields = s[1] == "" ? [] : s[1].split(","); | |
6370 supr = s[0]; | |
6371 if (supr && supr.indexOf("+") > 0) { | |
6372 s = supr.split("+"); | |
6373 supr = s[0]; | |
6374 var mixin = collectedClasses[s[1]]; | |
6375 if (mixin instanceof Array) | |
6376 mixin = mixin[1]; | |
6377 for (var d in mixin) { | |
6378 if (hasOwnProperty.call(mixin, d) && !hasOwnProperty.call(desc, d)) | |
6379 desc[d] = mixin[d]; | |
6380 } | |
6381 } | |
6382 if (typeof dart_precompiled != "function") { | |
6383 combinedConstructorFunction += defineClass(name, cls, fields); | |
6384 constructorsList.push(cls); | |
6385 } | |
6386 if (supr) | |
6387 pendingClasses[cls] = supr; | |
6388 } | |
6389 } | |
6390 if (typeof dart_precompiled != "function") { | |
6391 combinedConstructorFunction += "return [\n " + constructorsList.join(",\n
") + "\n]"; | |
6392 var constructors = new Function("$collectedClasses", combinedConstructorFu
nction)(collectedClasses); | |
6393 combinedConstructorFunction = null; | |
6394 } | |
6395 for (var i = 0; i < constructors.length; i++) { | |
6396 var constructor = constructors[i]; | |
6397 var cls = constructor.name; | |
6398 var desc = collectedClasses[cls]; | |
6399 var globalObject = isolateProperties; | |
6400 if (desc instanceof Array) { | |
6401 globalObject = desc[0] || isolateProperties; | |
6402 desc = desc[1]; | |
6403 } | |
6404 allClasses[cls] = constructor; | |
6405 globalObject[cls] = constructor; | |
6406 } | |
6407 constructors = null; | |
6408 var finishedClasses = {}; | |
6409 init.interceptorsByTag = {}; | |
6410 init.leafTags = {}; | |
6411 function finishClass(cls) { | |
6412 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
6413 if (hasOwnProperty.call(finishedClasses, cls)) | |
6414 return; | |
6415 finishedClasses[cls] = true; | |
6416 var superclass = pendingClasses[cls]; | |
6417 if (!superclass || typeof superclass != "string") | |
6418 return; | |
6419 finishClass(superclass); | |
6420 var constructor = allClasses[cls]; | |
6421 var superConstructor = allClasses[superclass]; | |
6422 if (!superConstructor) | |
6423 superConstructor = existingIsolateProperties[superclass]; | |
6424 var prototype = inheritFrom(constructor, superConstructor); | |
6425 if (hasOwnProperty.call(prototype, "%")) { | |
6426 var nativeSpec = prototype["%"].split(";"); | |
6427 if (nativeSpec[0]) { | |
6428 var tags = nativeSpec[0].split("|"); | |
6429 for (var i = 0; i < tags.length; i++) { | |
6430 init.interceptorsByTag[tags[i]] = constructor; | |
6431 init.leafTags[tags[i]] = true; | |
6432 } | |
6433 } | |
6434 if (nativeSpec[1]) { | |
6435 tags = nativeSpec[1].split("|"); | |
6436 if (nativeSpec[2]) { | |
6437 var subclasses = nativeSpec[2].split("|"); | |
6438 for (var i = 0; i < subclasses.length; i++) { | |
6439 var subclass = allClasses[subclasses[i]]; | |
6440 subclass.$nativeSuperclassTag = tags[0]; | |
6441 } | |
6442 } | |
6443 for (i = 0; i < tags.length; i++) { | |
6444 init.interceptorsByTag[tags[i]] = constructor; | |
6445 init.leafTags[tags[i]] = false; | |
6446 } | |
6447 } | |
6448 } | |
6449 } | |
6450 for (var cls in pendingClasses) | |
6451 finishClass(cls); | |
6452 }; | |
6453 Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyVal
ue) { | |
6454 var sentinelUndefined = {}; | |
6455 var sentinelInProgress = {}; | |
6456 prototype[fieldName] = sentinelUndefined; | |
6457 prototype[getterName] = function() { | |
6458 var result = $[fieldName]; | |
6459 try { | |
6460 if (result === sentinelUndefined) { | |
6461 $[fieldName] = sentinelInProgress; | |
6462 try { | |
6463 result = $[fieldName] = lazyValue(); | |
6464 } finally { | |
6465 if (result === sentinelUndefined) { | |
6466 if ($[fieldName] === sentinelInProgress) { | |
6467 $[fieldName] = null; | |
6468 } | |
6469 } | |
6470 } | |
6471 } else { | |
6472 if (result === sentinelInProgress) | |
6473 H.throwCyclicInit(staticName); | |
6474 } | |
6475 return result; | |
6476 } finally { | |
6477 $[getterName] = function() { | |
6478 return this[fieldName]; | |
6479 }; | |
6480 } | |
6481 }; | |
6482 }; | |
6483 Isolate.$finishIsolateConstructor = function(oldIsolate) { | |
6484 var isolateProperties = oldIsolate.$isolateProperties; | |
6485 function Isolate() { | |
6486 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
6487 for (var staticName in isolateProperties) | |
6488 if (hasOwnProperty.call(isolateProperties, staticName)) | |
6489 this[staticName] = isolateProperties[staticName]; | |
6490 function ForceEfficientMap() { | |
6491 } | |
6492 ForceEfficientMap.prototype = this; | |
6493 new ForceEfficientMap(); | |
6494 } | |
6495 Isolate.prototype = oldIsolate.prototype; | |
6496 Isolate.prototype.constructor = Isolate; | |
6497 Isolate.$isolateProperties = isolateProperties; | |
6498 Isolate.$finishClasses = oldIsolate.$finishClasses; | |
6499 Isolate.makeConstantList = oldIsolate.makeConstantList; | |
6500 return Isolate; | |
6501 }; | |
6502 } | |
6503 })() | 3714 })() |
6504 | |
6505 //# sourceMappingURL=piratebadge.dart.js.map | |
6506 //@ sourceMappingURL=piratebadge.dart.js.map | |
OLD | NEW |