diff --git a/.config/dictionaries/project.dic b/.config/dictionaries/project.dic index 3be0d2bdf05..9f828686e0c 100644 --- a/.config/dictionaries/project.dic +++ b/.config/dictionaries/project.dic @@ -74,6 +74,7 @@ Cunego Cupertino dalek damian-molinski +daos DAPPLICATION dashmap dbeaver diff --git a/.vscode/launch.recommended.json b/.vscode/launch.recommended.json index 1230be7f0ca..8ff219cda2d 100644 --- a/.vscode/launch.recommended.json +++ b/.vscode/launch.recommended.json @@ -24,6 +24,7 @@ "--dart-define", "SENTRY_DSN=REPLACE_WITH_SENTRY_DSN_URL", // flutter_rust_bridge: https://cjycode.com/flutter_rust_bridge/manual/miscellaneous/web-cross-origin#when-flutter-run + // drift: https://drift.simonbinder.eu/platforms/web/#additional-headers "--web-header", "Cross-Origin-Opener-Policy=same-origin", "--web-header", diff --git a/catalyst_voices/.gitignore b/catalyst_voices/.gitignore index c0fc6e9c0b4..38c5cec6f57 100644 --- a/catalyst_voices/.gitignore +++ b/catalyst_voices/.gitignore @@ -10,6 +10,7 @@ devtools_options.yaml *.openapi.dart *.gen.dart *.swagger.*.dart +*.drift.dart # Un-ignore generated files in public packages !**/packages/libs/**/*.g.dart diff --git a/catalyst_voices/Earthfile b/catalyst_voices/Earthfile index 09140fb8c9e..4041d2ff52c 100644 --- a/catalyst_voices/Earthfile +++ b/catalyst_voices/Earthfile @@ -53,9 +53,9 @@ code-generator: RUN melos build_runner IF [ $save_locally = true ] - RUN find . \( -name "*.g.dart" -o -name "*.freezed.dart" -o -name "*.chopper.dart" -o -name "*.swagger.dart" -o -name "*.openapi.dart" -o -name "*.gen.dart" -o -name "catalyst_voices_localizations*.dart" -o -name "cat_gateway.*.swagger.*" \) + RUN find . \( -name "*.g.dart" -o -name "*.freezed.dart" -o -name "*.chopper.dart" -o -name "*.swagger.dart" -o -name "*.openapi.dart" -o -name "*.gen.dart" -o -name "catalyst_voices_localizations*.dart" -o -name "cat_gateway.*.swagger.*" -o -name "*.drift.dart" \) - FOR generated_file IN $(find . \( -name "*.g.dart" -o -name "*.freezed.dart" -o -name "*.chopper.dart" -o -name "*.swagger.dart" -o -name "*.openapi.dart" -o -name "*.gen.dart" -o -name "catalyst_voices_localizations*.dart" -o -name "cat_gateway_api.*.swagger.*" \)) + FOR generated_file IN $(find . \( -name "*.g.dart" -o -name "*.freezed.dart" -o -name "*.chopper.dart" -o -name "*.swagger.dart" -o -name "*.openapi.dart" -o -name "*.gen.dart" -o -name "catalyst_voices_localizations*.dart" -o -name "cat_gateway_api.*.swagger.*" -o -name "*.drift.dart" \)) SAVE ARTIFACT $generated_file AS LOCAL $generated_file END ELSE diff --git a/catalyst_voices/apps/voices/web/drift_worker.js b/catalyst_voices/apps/voices/web/drift_worker.js new file mode 100644 index 00000000000..b42cf9d0334 --- /dev/null +++ b/catalyst_voices/apps/voices/web/drift_worker.js @@ -0,0 +1,13580 @@ +(function dartProgram(){function copyProperties(a,b){var s=Object.keys(a) +for(var r=0;r=0)return true +if(typeof version=="function"&&version.length==0){var q=version() +if(/^\d+\.\d+\.\d+\.\d+$/.test(q))return true}}catch(p){}return false}() +function inherit(a,b){a.prototype.constructor=a +a.prototype["$i"+a.name]=a +if(b!=null){if(z){Object.setPrototypeOf(a.prototype,b.prototype) +return}var s=Object.create(b.prototype) +copyProperties(a.prototype,s) +a.prototype=s}}function inheritMany(a,b){for(var s=0;s4294967295)throw A.a(A.X(a,0,4294967295,"length",null)) +return J.ur(new Array(a),b)}, +q9(a,b){if(a<0)throw A.a(A.K("Length must be a non-negative integer: "+a,null)) +return A.d(new Array(a),b.h("w<0>"))}, +q7(a,b){if(a<0)throw A.a(A.K("Length must be a non-negative integer: "+a,null)) +return A.d(new Array(a),b.h("w<0>"))}, +ur(a,b){var s=A.d(a,b.h("w<0>")) +s.$flags=1 +return s}, +us(a,b){return J.tP(a,b)}, +qa(a){if(a<256)switch(a){case 9:case 10:case 11:case 12:case 13:case 32:case 133:case 160:return!0 +default:return!1}switch(a){case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8232:case 8233:case 8239:case 8287:case 12288:case 65279:return!0 +default:return!1}}, +ut(a,b){var s,r +for(s=a.length;b0;b=s){s=b-1 +r=a.charCodeAt(s) +if(r!==32&&r!==13&&!J.qa(r))break}return b}, +cT(a){if(typeof a=="number"){if(Math.floor(a)==a)return J.eo.prototype +return J.hg.prototype}if(typeof a=="string")return J.bZ.prototype +if(a==null)return J.ep.prototype +if(typeof a=="boolean")return J.hf.prototype +if(Array.isArray(a))return J.w.prototype +if(typeof a!="object"){if(typeof a=="function")return J.bu.prototype +if(typeof a=="symbol")return J.d5.prototype +if(typeof a=="bigint")return J.aP.prototype +return a}if(a instanceof A.e)return a +return J.oj(a)}, +V(a){if(typeof a=="string")return J.bZ.prototype +if(a==null)return a +if(Array.isArray(a))return J.w.prototype +if(typeof a!="object"){if(typeof a=="function")return J.bu.prototype +if(typeof a=="symbol")return J.d5.prototype +if(typeof a=="bigint")return J.aP.prototype +return a}if(a instanceof A.e)return a +return J.oj(a)}, +aM(a){if(a==null)return a +if(Array.isArray(a))return J.w.prototype +if(typeof a!="object"){if(typeof a=="function")return J.bu.prototype +if(typeof a=="symbol")return J.d5.prototype +if(typeof a=="bigint")return J.aP.prototype +return a}if(a instanceof A.e)return a +return J.oj(a)}, +xl(a){if(typeof a=="number")return J.d4.prototype +if(typeof a=="string")return J.bZ.prototype +if(a==null)return a +if(!(a instanceof A.e))return J.cD.prototype +return a}, +fz(a){if(typeof a=="string")return J.bZ.prototype +if(a==null)return a +if(!(a instanceof A.e))return J.cD.prototype +return a}, +rN(a){if(a==null)return a +if(typeof a!="object"){if(typeof a=="function")return J.bu.prototype +if(typeof a=="symbol")return J.d5.prototype +if(typeof a=="bigint")return J.aP.prototype +return a}if(a instanceof A.e)return a +return J.oj(a)}, +a4(a,b){if(a==null)return b==null +if(typeof a!="object")return b!=null&&a===b +return J.cT(a).W(a,b)}, +aO(a,b){if(typeof b==="number")if(Array.isArray(a)||typeof a=="string"||A.rR(a,a[v.dispatchPropertyName]))if(b>>>0===b&&b>>0===b&&b").b(a))return new A.eZ(a,b.h("@<0>").H(c).h("eZ<1,2>")) +return new A.cn(a,b.h("@<0>").H(c).h("cn<1,2>"))}, +uv(a){return new A.c_("Field '"+a+"' has not been initialized.")}, +ok(a){var s,r=a^48 +if(r<=9)return r +s=a|32 +if(97<=s&&s<=102)return s-87 +return-1}, +c9(a,b){a=a+b&536870911 +a=a+((a&524287)<<10)&536870911 +return a^a>>>6}, +oV(a){a=a+((a&67108863)<<3)&536870911 +a^=a>>>11 +return a+((a&16383)<<15)&536870911}, +cR(a,b,c){return a}, +pw(a){var s,r +for(s=$.cU.length,r=0;rc)A.B(A.X(b,0,c,"start",null))}return new A.cB(a,b,c,d.h("cB<0>"))}, +es(a,b,c,d){if(t.Q.b(a))return new A.cs(a,b,c.h("@<0>").H(d).h("cs<1,2>")) +return new A.aA(a,b,c.h("@<0>").H(d).h("aA<1,2>"))}, +oW(a,b,c){var s="takeCount" +A.bV(b,s) +A.ab(b,s) +if(t.Q.b(a))return new A.eg(a,b,c.h("eg<0>")) +return new A.cC(a,b,c.h("cC<0>"))}, +qs(a,b,c){var s="count" +if(t.Q.b(a)){A.bV(b,s) +A.ab(b,s) +return new A.d0(a,b,c.h("d0<0>"))}A.bV(b,s) +A.ab(b,s) +return new A.bD(a,b,c.h("bD<0>"))}, +up(a,b,c){return new A.cr(a,b,c.h("cr<0>"))}, +am(){return new A.b4("No element")}, +q6(){return new A.b4("Too few elements")}, +ce:function ce(){}, +fR:function fR(a,b){this.a=a +this.$ti=b}, +cn:function cn(a,b){this.a=a +this.$ti=b}, +eZ:function eZ(a,b){this.a=a +this.$ti=b}, +eU:function eU(){}, +ai:function ai(a,b){this.a=a +this.$ti=b}, +c_:function c_(a){this.a=a}, +eb:function eb(a){this.a=a}, +or:function or(){}, +kL:function kL(){}, +u:function u(){}, +P:function P(){}, +cB:function cB(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.$ti=d}, +b0:function b0(a,b,c){var _=this +_.a=a +_.b=b +_.c=0 +_.d=null +_.$ti=c}, +aA:function aA(a,b,c){this.a=a +this.b=b +this.$ti=c}, +cs:function cs(a,b,c){this.a=a +this.b=b +this.$ti=c}, +b2:function b2(a,b,c){var _=this +_.a=null +_.b=a +_.c=b +_.$ti=c}, +E:function E(a,b,c){this.a=a +this.b=b +this.$ti=c}, +aU:function aU(a,b,c){this.a=a +this.b=b +this.$ti=c}, +eO:function eO(a,b){this.a=a +this.b=b}, +ei:function ei(a,b,c){this.a=a +this.b=b +this.$ti=c}, +h5:function h5(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=null +_.$ti=d}, +cC:function cC(a,b,c){this.a=a +this.b=b +this.$ti=c}, +eg:function eg(a,b,c){this.a=a +this.b=b +this.$ti=c}, +hM:function hM(a,b,c){this.a=a +this.b=b +this.$ti=c}, +bD:function bD(a,b,c){this.a=a +this.b=b +this.$ti=c}, +d0:function d0(a,b,c){this.a=a +this.b=b +this.$ti=c}, +hG:function hG(a,b){this.a=a +this.b=b}, +eC:function eC(a,b,c){this.a=a +this.b=b +this.$ti=c}, +hH:function hH(a,b){this.a=a +this.b=b +this.c=!1}, +ct:function ct(a){this.$ti=a}, +h2:function h2(){}, +eP:function eP(a,b){this.a=a +this.$ti=b}, +i3:function i3(a,b){this.a=a +this.$ti=b}, +bt:function bt(a,b,c){this.a=a +this.b=b +this.$ti=c}, +cr:function cr(a,b,c){this.a=a +this.b=b +this.$ti=c}, +em:function em(a,b){this.a=a +this.b=b +this.c=-1}, +ej:function ej(){}, +hQ:function hQ(){}, +dm:function dm(){}, +eB:function eB(a,b){this.a=a +this.$ti=b}, +hL:function hL(a){this.a=a}, +fu:function fu(){}, +t_(a){var s=v.mangledGlobalNames[a] +if(s!=null)return s +return"minified:"+a}, +rR(a,b){var s +if(b!=null){s=b.x +if(s!=null)return s}return t.aU.b(a)}, +v(a){var s +if(typeof a=="string")return a +if(typeof a=="number"){if(a!==0)return""+a}else if(!0===a)return"true" +else if(!1===a)return"false" +else if(a==null)return"null" +s=J.aW(a) +return s}, +eA(a){var s,r=$.qg +if(r==null)r=$.qg=Symbol("identityHashCode") +s=a[r] +if(s==null){s=Math.random()*0x3fffffff|0 +a[r]=s}return s}, +qh(a,b){var s,r,q,p,o,n=null,m=/^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(a) +if(m==null)return n +s=m[3] +if(b==null){if(s!=null)return parseInt(a,10) +if(m[2]!=null)return parseInt(a,16) +return n}if(b<2||b>36)throw A.a(A.X(b,2,36,"radix",n)) +if(b===10&&s!=null)return parseInt(a,10) +if(b<10||s==null){r=b<=10?47+b:86+b +q=m[1] +for(p=q.length,o=0;or)return n}return parseInt(a,b)}, +kz(a){return A.uD(a)}, +uD(a){var s,r,q,p +if(a instanceof A.e)return A.aK(A.aE(a),null) +s=J.cT(a) +if(s===B.aH||s===B.aK||t.ak.b(a)){r=B.a2(a) +if(r!=="Object"&&r!=="")return r +q=a.constructor +if(typeof q=="function"){p=q.name +if(typeof p=="string"&&p!=="Object"&&p!=="")return p}}return A.aK(A.aE(a),null)}, +qi(a){if(a==null||typeof a=="number"||A.bQ(a))return J.aW(a) +if(typeof a=="string")return JSON.stringify(a) +if(a instanceof A.co)return a.j(0) +if(a instanceof A.fd)return a.fQ(!0) +return"Instance of '"+A.kz(a)+"'"}, +uE(){if(!!self.location)return self.location.href +return null}, +qf(a){var s,r,q,p,o=a.length +if(o<=500)return String.fromCharCode.apply(null,a) +for(s="",r=0;r65535)return A.uN(a)}return A.qf(a)}, +uO(a,b,c){var s,r,q,p +if(c<=500&&b===0&&c===a.length)return String.fromCharCode.apply(null,a) +for(s=b,r="";s>>0,s&1023|56320)}}throw A.a(A.X(a,0,1114111,null,null))}, +aT(a){if(a.date===void 0)a.date=new Date(a.a) +return a.date}, +uM(a){return a.c?A.aT(a).getUTCFullYear()+0:A.aT(a).getFullYear()+0}, +uK(a){return a.c?A.aT(a).getUTCMonth()+1:A.aT(a).getMonth()+1}, +uG(a){return a.c?A.aT(a).getUTCDate()+0:A.aT(a).getDate()+0}, +uH(a){return a.c?A.aT(a).getUTCHours()+0:A.aT(a).getHours()+0}, +uJ(a){return a.c?A.aT(a).getUTCMinutes()+0:A.aT(a).getMinutes()+0}, +uL(a){return a.c?A.aT(a).getUTCSeconds()+0:A.aT(a).getSeconds()+0}, +uI(a){return a.c?A.aT(a).getUTCMilliseconds()+0:A.aT(a).getMilliseconds()+0}, +uF(a){var s=a.$thrownJsError +if(s==null)return null +return A.R(s)}, +kA(a,b){var s +if(a.$thrownJsError==null){s=A.a(a) +a.$thrownJsError=s +s.stack=b.j(0)}}, +e_(a,b){var s,r="index" +if(!A.bn(b))return new A.aX(!0,b,r,null) +s=J.ae(a) +if(b<0||b>=s)return A.hb(b,s,a,null,r) +return A.kE(b,r)}, +xf(a,b,c){if(a>c)return A.X(a,0,c,"start",null) +if(b!=null)if(bc)return A.X(b,a,c,"end",null) +return new A.aX(!0,b,"end",null)}, +dX(a){return new A.aX(!0,a,null,null)}, +a(a){return A.rP(new Error(),a)}, +rP(a,b){var s +if(b==null)b=new A.bF() +a.dartException=b +s=A.xU +if("defineProperty" in Object){Object.defineProperty(a,"message",{get:s}) +a.name=""}else a.toString=s +return a}, +xU(){return J.aW(this.dartException)}, +B(a){throw A.a(a)}, +iZ(a,b){throw A.rP(b,a)}, +z(a,b,c){var s +if(b==null)b=0 +if(c==null)c=0 +s=Error() +A.iZ(A.w6(a,b,c),s)}, +w6(a,b,c){var s,r,q,p,o,n,m,l,k +if(typeof b=="string")s=b +else{r="[]=;add;removeWhere;retainWhere;removeRange;setRange;setInt8;setInt16;setInt32;setUint8;setUint16;setUint32;setFloat32;setFloat64".split(";") +q=r.length +p=b +if(p>q){c=p/q|0 +p%=q}s=r[p]}o=typeof c=="string"?c:"modify;remove from;add to".split(";")[c] +n=t.j.b(a)?"list":"ByteData" +m=a.$flags|0 +l="a " +if((m&4)!==0)k="constant " +else if((m&2)!==0){k="unmodifiable " +l="an "}else k=(m&1)!==0?"fixed-length ":"" +return new A.eL("'"+s+"': Cannot "+o+" "+l+k+n)}, +W(a){throw A.a(A.az(a))}, +bG(a){var s,r,q,p,o,n +a=A.rZ(a.replace(String({}),"$receiver$")) +s=a.match(/\\\$[a-zA-Z]+\\\$/g) +if(s==null)s=A.d([],t.s) +r=s.indexOf("\\$arguments\\$") +q=s.indexOf("\\$argumentsExpr\\$") +p=s.indexOf("\\$expr\\$") +o=s.indexOf("\\$method\\$") +n=s.indexOf("\\$receiver\\$") +return new A.ln(a.replace(new RegExp("\\\\\\$arguments\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$argumentsExpr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$expr\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$method\\\\\\$","g"),"((?:x|[^x])*)").replace(new RegExp("\\\\\\$receiver\\\\\\$","g"),"((?:x|[^x])*)"),r,q,p,o,n)}, +lo(a){return function($expr$){var $argumentsExpr$="$arguments$" +try{$expr$.$method$($argumentsExpr$)}catch(s){return s.message}}(a)}, +qB(a){return function($expr$){try{$expr$.$method$}catch(s){return s.message}}(a)}, +oO(a,b){var s=b==null,r=s?null:b.method +return new A.hi(a,r,s?null:b.receiver)}, +F(a){if(a==null)return new A.hw(a) +if(a instanceof A.eh)return A.ck(a,a.a) +if(typeof a!=="object")return a +if("dartException" in a)return A.ck(a,a.dartException) +return A.wN(a)}, +ck(a,b){if(t.C.b(b))if(b.$thrownJsError==null)b.$thrownJsError=a +return b}, +wN(a){var s,r,q,p,o,n,m,l,k,j,i,h,g +if(!("message" in a))return a +s=a.message +if("number" in a&&typeof a.number=="number"){r=a.number +q=r&65535 +if((B.b.O(r,16)&8191)===10)switch(q){case 438:return A.ck(a,A.oO(A.v(s)+" (Error "+q+")",null)) +case 445:case 5007:A.v(s) +return A.ck(a,new A.ew())}}if(a instanceof TypeError){p=$.t6() +o=$.t7() +n=$.t8() +m=$.t9() +l=$.tc() +k=$.td() +j=$.tb() +$.ta() +i=$.tf() +h=$.te() +g=p.ar(s) +if(g!=null)return A.ck(a,A.oO(s,g)) +else{g=o.ar(s) +if(g!=null){g.method="call" +return A.ck(a,A.oO(s,g))}else if(n.ar(s)!=null||m.ar(s)!=null||l.ar(s)!=null||k.ar(s)!=null||j.ar(s)!=null||m.ar(s)!=null||i.ar(s)!=null||h.ar(s)!=null)return A.ck(a,new A.ew())}return A.ck(a,new A.hP(typeof s=="string"?s:""))}if(a instanceof RangeError){if(typeof s=="string"&&s.indexOf("call stack")!==-1)return new A.eG() +s=function(b){try{return String(b)}catch(f){}return null}(a) +return A.ck(a,new A.aX(!1,null,null,typeof s=="string"?s.replace(/^RangeError:\s*/,""):s))}if(typeof InternalError=="function"&&a instanceof InternalError)if(typeof s=="string"&&s==="too much recursion")return new A.eG() +return a}, +R(a){var s +if(a instanceof A.eh)return a.b +if(a==null)return new A.fh(a) +s=a.$cachedTrace +if(s!=null)return s +s=new A.fh(a) +if(typeof a==="object")a.$cachedTrace=s +return s}, +py(a){if(a==null)return J.ay(a) +if(typeof a=="object")return A.eA(a) +return J.ay(a)}, +xh(a,b){var s,r,q,p=a.length +for(s=0;s=0 +else if(b instanceof A.cv){s=B.a.L(a,c) +return b.b.test(s)}else return!J.oC(b,B.a.L(a,c)).gF(0)}, +pt(a){if(a.indexOf("$",0)>=0)return a.replace(/\$/g,"$$$$") +return a}, +xQ(a,b,c,d){var s=b.fe(a,d) +if(s==null)return a +return A.pB(a,s.b.index,s.gbB(),c)}, +rZ(a){if(/[[\]{}()*+?.\\^$|]/.test(a))return a.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&") +return a}, +bd(a,b,c){var s +if(typeof b=="string")return A.xP(a,b,c) +if(b instanceof A.cv){s=b.gfq() +s.lastIndex=0 +return a.replace(s,A.pt(c))}return A.xO(a,b,c)}, +xO(a,b,c){var s,r,q,p +for(s=J.oC(b,a),s=s.gt(s),r=0,q="";s.k();){p=s.gm() +q=q+a.substring(r,p.gcs())+c +r=p.gbB()}s=q+a.substring(r) +return s.charCodeAt(0)==0?s:s}, +xP(a,b,c){var s,r,q +if(b===""){if(a==="")return c +s=a.length +r=""+c +for(q=0;q=0)return a.split(b).join(c) +return a.replace(new RegExp(A.rZ(b),"g"),A.pt(c))}, +xR(a,b,c,d){var s,r,q,p +if(typeof b=="string"){s=a.indexOf(b,d) +if(s<0)return a +return A.pB(a,s,s+b.length,c)}if(b instanceof A.cv)return d===0?a.replace(b.b,A.pt(c)):A.xQ(a,b,c,d) +r=J.tM(b,a,d) +q=r.gt(r) +if(!q.k())return a +p=q.gm() +return B.a.aM(a,p.gcs(),p.gbB(),c)}, +pB(a,b,c,d){return a.substring(0,b)+d+a.substring(c)}, +ak:function ak(a,b){this.a=a +this.b=b}, +cL:function cL(a,b){this.a=a +this.b=b}, +ec:function ec(){}, +ed:function ed(a,b,c){this.a=a +this.b=b +this.$ti=c}, +cK:function cK(a,b){this.a=a +this.$ti=b}, +it:function it(a,b,c){var _=this +_.a=a +_.b=b +_.c=0 +_.d=null +_.$ti=c}, +kc:function kc(){}, +en:function en(a,b){this.a=a +this.$ti=b}, +ln:function ln(a,b,c,d,e,f){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f}, +ew:function ew(){}, +hi:function hi(a,b,c){this.a=a +this.b=b +this.c=c}, +hP:function hP(a){this.a=a}, +hw:function hw(a){this.a=a}, +eh:function eh(a,b){this.a=a +this.b=b}, +fh:function fh(a){this.a=a +this.b=null}, +co:function co(){}, +ji:function ji(){}, +jj:function jj(){}, +ld:function ld(){}, +l3:function l3(){}, +e7:function e7(a,b){this.a=a +this.b=b}, +ie:function ie(a){this.a=a}, +hD:function hD(a){this.a=a}, +bv:function bv(a){var _=this +_.a=0 +_.f=_.e=_.d=_.c=_.b=null +_.r=0 +_.$ti=a}, +kk:function kk(a){this.a=a}, +kj:function kj(a){this.a=a}, +kn:function kn(a,b){var _=this +_.a=a +_.b=b +_.d=_.c=null}, +ba:function ba(a,b){this.a=a +this.$ti=b}, +hl:function hl(a,b){var _=this +_.a=a +_.b=b +_.d=_.c=null}, +ol:function ol(a){this.a=a}, +om:function om(a){this.a=a}, +on:function on(a){this.a=a}, +fd:function fd(){}, +iz:function iz(){}, +cv:function cv(a,b){var _=this +_.a=a +_.b=b +_.d=_.c=null}, +dE:function dE(a){this.b=a}, +i4:function i4(a,b,c){this.a=a +this.b=b +this.c=c}, +lZ:function lZ(a,b,c){var _=this +_.a=a +_.b=b +_.c=c +_.d=null}, +dl:function dl(a,b){this.a=a +this.c=b}, +iH:function iH(a,b,c){this.a=a +this.b=b +this.c=c}, +nF:function nF(a,b,c){var _=this +_.a=a +_.b=b +_.c=c +_.d=null}, +xT(a){A.iZ(new A.c_("Field '"+a+"' has been assigned during initialization."),new Error())}, +G(){A.iZ(new A.c_("Field '' has not been initialized."),new Error())}, +pD(){A.iZ(new A.c_("Field '' has already been initialized."),new Error())}, +ox(){A.iZ(new A.c_("Field '' has been assigned during initialization."),new Error())}, +mf(a){var s=new A.me(a) +return s.b=s}, +me:function me(a){this.a=a +this.b=null}, +w3(a){return a}, +iR(a,b,c){}, +iS(a){var s,r,q +if(t.aP.b(a))return a +s=J.V(a) +r=A.b1(s.gl(a),null,!1,t.z) +for(q=0;q>>0!==a||a>=c)throw A.a(A.e_(b,a))}, +ci(a,b,c){var s +if(!(a>>>0!==a))s=b>>>0!==b||a>b||b>c +else s=!0 +if(s)throw A.a(A.xf(a,b,c)) +return b}, +cw:function cw(){}, +eu:function eu(){}, +iO:function iO(a){this.a=a}, +cx:function cx(){}, +d7:function d7(){}, +c2:function c2(){}, +aS:function aS(){}, +hn:function hn(){}, +ho:function ho(){}, +hp:function hp(){}, +d6:function d6(){}, +hq:function hq(){}, +hr:function hr(){}, +hs:function hs(){}, +ev:function ev(){}, +by:function by(){}, +f8:function f8(){}, +f9:function f9(){}, +fa:function fa(){}, +fb:function fb(){}, +qp(a,b){var s=b.c +return s==null?b.c=A.pd(a,b.x,!0):s}, +oR(a,b){var s=b.c +return s==null?b.c=A.fn(a,"D",[b.x]):s}, +qq(a){var s=a.w +if(s===6||s===7||s===8)return A.qq(a.x) +return s===12||s===13}, +uR(a){return a.as}, +av(a){return A.iN(v.typeUniverse,a,!1)}, +xt(a,b){var s,r,q,p,o +if(a==null)return null +s=b.y +r=a.Q +if(r==null)r=a.Q=new Map() +q=b.as +p=r.get(q) +if(p!=null)return p +o=A.bR(v.typeUniverse,a.x,s,0) +r.set(q,o) +return o}, +bR(a1,a2,a3,a4){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a,a0=a2.w +switch(a0){case 5:case 1:case 2:case 3:case 4:return a2 +case 6:s=a2.x +r=A.bR(a1,s,a3,a4) +if(r===s)return a2 +return A.r4(a1,r,!0) +case 7:s=a2.x +r=A.bR(a1,s,a3,a4) +if(r===s)return a2 +return A.pd(a1,r,!0) +case 8:s=a2.x +r=A.bR(a1,s,a3,a4) +if(r===s)return a2 +return A.r2(a1,r,!0) +case 9:q=a2.y +p=A.dU(a1,q,a3,a4) +if(p===q)return a2 +return A.fn(a1,a2.x,p) +case 10:o=a2.x +n=A.bR(a1,o,a3,a4) +m=a2.y +l=A.dU(a1,m,a3,a4) +if(n===o&&l===m)return a2 +return A.pb(a1,n,l) +case 11:k=a2.x +j=a2.y +i=A.dU(a1,j,a3,a4) +if(i===j)return a2 +return A.r3(a1,k,i) +case 12:h=a2.x +g=A.bR(a1,h,a3,a4) +f=a2.y +e=A.wK(a1,f,a3,a4) +if(g===h&&e===f)return a2 +return A.r1(a1,g,e) +case 13:d=a2.y +a4+=d.length +c=A.dU(a1,d,a3,a4) +o=a2.x +n=A.bR(a1,o,a3,a4) +if(c===d&&n===o)return a2 +return A.pc(a1,n,c,!0) +case 14:b=a2.x +if(b") +for(r=1;r=0)p+=" "+r[q];++q}return p+"})"}, +rs(a3,a4,a5){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1=", ",a2=null +if(a5!=null){s=a5.length +if(a4==null)a4=A.d([],t.s) +else a2=a4.length +r=a4.length +for(q=s;q>0;--q)a4.push("T"+(r+q)) +for(p=t.X,o=t._,n="<",m="",q=0;q0){a+=a0+"[" +for(a0="",q=0;q0){a+=a0+"{" +for(a0="",q=0;q "+b}, +aK(a,b){var s,r,q,p,o,n,m=a.w +if(m===5)return"erased" +if(m===2)return"dynamic" +if(m===3)return"void" +if(m===1)return"Never" +if(m===4)return"any" +if(m===6)return A.aK(a.x,b) +if(m===7){s=a.x +r=A.aK(s,b) +q=s.w +return(q===12||q===13?"("+r+")":r)+"?"}if(m===8)return"FutureOr<"+A.aK(a.x,b)+">" +if(m===9){p=A.wM(a.x) +o=a.y +return o.length>0?p+("<"+A.rB(o,b)+">"):p}if(m===11)return A.wy(a,b) +if(m===12)return A.rs(a,b,null) +if(m===13)return A.rs(a.x,b,a.y) +if(m===14){n=a.x +return b[b.length-1-n]}return"?"}, +wM(a){var s=v.mangledGlobalNames[a] +if(s!=null)return s +return"minified:"+a}, +vD(a,b){var s=a.tR[b] +for(;typeof s=="string";)s=a.tR[s] +return s}, +vC(a,b){var s,r,q,p,o,n=a.eT,m=n[b] +if(m==null)return A.iN(a,b,!1) +else if(typeof m=="number"){s=m +r=A.fo(a,5,"#") +q=A.nT(s) +for(p=0;p0)p+="<"+A.fm(c)+">" +s=a.eC.get(p) +if(s!=null)return s +r=new A.b3(null,null) +r.w=9 +r.x=b +r.y=c +if(c.length>0)r.c=c[0] +r.as=p +q=A.bM(a,r) +a.eC.set(p,q) +return q}, +pb(a,b,c){var s,r,q,p,o,n +if(b.w===10){s=b.x +r=b.y.concat(c)}else{r=c +s=b}q=s.as+(";<"+A.fm(r)+">") +p=a.eC.get(q) +if(p!=null)return p +o=new A.b3(null,null) +o.w=10 +o.x=s +o.y=r +o.as=q +n=A.bM(a,o) +a.eC.set(q,n) +return n}, +r3(a,b,c){var s,r,q="+"+(b+"("+A.fm(c)+")"),p=a.eC.get(q) +if(p!=null)return p +s=new A.b3(null,null) +s.w=11 +s.x=b +s.y=c +s.as=q +r=A.bM(a,s) +a.eC.set(q,r) +return r}, +r1(a,b,c){var s,r,q,p,o,n=b.as,m=c.a,l=m.length,k=c.b,j=k.length,i=c.c,h=i.length,g="("+A.fm(m) +if(j>0){s=l>0?",":"" +g+=s+"["+A.fm(k)+"]"}if(h>0){s=l>0?",":"" +g+=s+"{"+A.vu(i)+"}"}r=n+(g+")") +q=a.eC.get(r) +if(q!=null)return q +p=new A.b3(null,null) +p.w=12 +p.x=b +p.y=c +p.as=r +o=A.bM(a,p) +a.eC.set(r,o) +return o}, +pc(a,b,c,d){var s,r=b.as+("<"+A.fm(c)+">"),q=a.eC.get(r) +if(q!=null)return q +s=A.vw(a,b,c,r,d) +a.eC.set(r,s) +return s}, +vw(a,b,c,d,e){var s,r,q,p,o,n,m,l +if(e){s=c.length +r=A.nT(s) +for(q=0,p=0;p0){n=A.bR(a,b,r,0) +m=A.dU(a,c,r,0) +return A.pc(a,n,m,c!==m)}}l=new A.b3(null,null) +l.w=13 +l.x=b +l.y=c +l.as=d +return A.bM(a,l)}, +qW(a,b,c,d){return{u:a,e:b,r:c,s:[],p:0,n:d}}, +qY(a){var s,r,q,p,o,n,m,l=a.r,k=a.s +for(s=l.length,r=0;r=48&&q<=57)r=A.vl(r+1,q,l,k) +else if((((q|32)>>>0)-97&65535)<26||q===95||q===36||q===124)r=A.qX(a,r,l,k,!1) +else if(q===46)r=A.qX(a,r,l,k,!0) +else{++r +switch(q){case 44:break +case 58:k.push(!1) +break +case 33:k.push(!0) +break +case 59:k.push(A.ch(a.u,a.e,k.pop())) +break +case 94:k.push(A.vz(a.u,k.pop())) +break +case 35:k.push(A.fo(a.u,5,"#")) +break +case 64:k.push(A.fo(a.u,2,"@")) +break +case 126:k.push(A.fo(a.u,3,"~")) +break +case 60:k.push(a.p) +a.p=k.length +break +case 62:A.vn(a,k) +break +case 38:A.vm(a,k) +break +case 42:p=a.u +k.push(A.r4(p,A.ch(p,a.e,k.pop()),a.n)) +break +case 63:p=a.u +k.push(A.pd(p,A.ch(p,a.e,k.pop()),a.n)) +break +case 47:p=a.u +k.push(A.r2(p,A.ch(p,a.e,k.pop()),a.n)) +break +case 40:k.push(-3) +k.push(a.p) +a.p=k.length +break +case 41:A.vk(a,k) +break +case 91:k.push(a.p) +a.p=k.length +break +case 93:o=k.splice(a.p) +A.qZ(a.u,a.e,o) +a.p=k.pop() +k.push(o) +k.push(-1) +break +case 123:k.push(a.p) +a.p=k.length +break +case 125:o=k.splice(a.p) +A.vp(a.u,a.e,o) +a.p=k.pop() +k.push(o) +k.push(-2) +break +case 43:n=l.indexOf("(",r) +k.push(l.substring(r,n)) +k.push(-4) +k.push(a.p) +a.p=k.length +r=n+1 +break +default:throw"Bad character "+q}}}m=k.pop() +return A.ch(a.u,a.e,m)}, +vl(a,b,c,d){var s,r,q=b-48 +for(s=c.length;a=48&&r<=57))break +q=q*10+(r-48)}d.push(q) +return a}, +qX(a,b,c,d,e){var s,r,q,p,o,n,m=b+1 +for(s=c.length;m>>0)-97&65535)<26||r===95||r===36||r===124))q=r>=48&&r<=57 +else q=!0 +if(!q)break}}p=c.substring(b,m) +if(e){s=a.u +o=a.e +if(o.w===10)o=o.x +n=A.vD(s,o.x)[p] +if(n==null)A.B('No "'+p+'" in "'+A.uR(o)+'"') +d.push(A.fp(s,o,n))}else d.push(p) +return m}, +vn(a,b){var s,r=a.u,q=A.qV(a,b),p=b.pop() +if(typeof p=="string")b.push(A.fn(r,p,q)) +else{s=A.ch(r,a.e,p) +switch(s.w){case 12:b.push(A.pc(r,s,q,a.n)) +break +default:b.push(A.pb(r,s,q)) +break}}}, +vk(a,b){var s,r,q,p=a.u,o=b.pop(),n=null,m=null +if(typeof o=="number")switch(o){case-1:n=b.pop() +break +case-2:m=b.pop() +break +default:b.push(o) +break}else b.push(o) +s=A.qV(a,b) +o=b.pop() +switch(o){case-3:o=b.pop() +if(n==null)n=p.sEA +if(m==null)m=p.sEA +r=A.ch(p,a.e,o) +q=new A.im() +q.a=s +q.b=n +q.c=m +b.push(A.r1(p,r,q)) +return +case-4:b.push(A.r3(p,b.pop(),s)) +return +default:throw A.a(A.e4("Unexpected state under `()`: "+A.v(o)))}}, +vm(a,b){var s=b.pop() +if(0===s){b.push(A.fo(a.u,1,"0&")) +return}if(1===s){b.push(A.fo(a.u,4,"1&")) +return}throw A.a(A.e4("Unexpected extended operation "+A.v(s)))}, +qV(a,b){var s=b.splice(a.p) +A.qZ(a.u,a.e,s) +a.p=b.pop() +return s}, +ch(a,b,c){if(typeof c=="string")return A.fn(a,c,a.sEA) +else if(typeof c=="number"){b.toString +return A.vo(a,b,c)}else return c}, +qZ(a,b,c){var s,r=c.length +for(s=0;sn)return!1 +m=n-o +l=s.b +k=r.b +j=l.length +i=k.length +if(o+j=d)return!1 +a1=f[b] +b+=3 +if(a00?new Array(q):v.typeUniverse.sEA +for(o=0;o0?new Array(a):v.typeUniverse.sEA}, +b3:function b3(a,b){var _=this +_.a=a +_.b=b +_.r=_.f=_.d=_.c=null +_.w=0 +_.as=_.Q=_.z=_.y=_.x=null}, +im:function im(){this.c=this.b=this.a=null}, +nL:function nL(a){this.a=a}, +ii:function ii(){}, +fl:function fl(a){this.a=a}, +v6(){var s,r,q={} +if(self.scheduleImmediate!=null)return A.wQ() +if(self.MutationObserver!=null&&self.document!=null){s=self.document.createElement("div") +r=self.document.createElement("span") +q.a=null +new self.MutationObserver(A.cj(new A.m0(q),1)).observe(s,{childList:true}) +return new A.m_(q,s,r)}else if(self.setImmediate!=null)return A.wR() +return A.wS()}, +v7(a){self.scheduleImmediate(A.cj(new A.m1(a),0))}, +v8(a){self.setImmediate(A.cj(new A.m2(a),0))}, +v9(a){A.oX(B.A,a)}, +oX(a,b){var s=B.b.I(a.a,1000) +return A.vr(s<0?0:s,b)}, +vr(a,b){var s=new A.iK() +s.hY(a,b) +return s}, +vs(a,b){var s=new A.iK() +s.hZ(a,b) +return s}, +o(a){return new A.i5(new A.k($.j,a.h("k<0>")),a.h("i5<0>"))}, +n(a,b){a.$2(0,null) +b.b=!0 +return b.a}, +c(a,b){A.vV(a,b)}, +m(a,b){b.P(a)}, +l(a,b){b.bA(A.F(a),A.R(a))}, +vV(a,b){var s,r,q=new A.nV(b),p=new A.nW(b) +if(a instanceof A.k)a.fO(q,p,t.z) +else{s=t.z +if(a instanceof A.k)a.bJ(q,p,s) +else{r=new A.k($.j,t.eI) +r.a=8 +r.c=a +r.fO(q,p,s)}}}, +p(a){var s=function(b,c){return function(d,e){while(true){try{b(d,e) +break}catch(r){e=r +d=c}}}}(a,1) +return $.j.d6(new A.oc(s),t.H,t.S,t.z)}, +r0(a,b,c){return 0}, +oD(a){var s +if(t.C.b(a)){s=a.gbm() +if(s!=null)return s}return B.x}, +un(a,b){var s=new A.k($.j,b.h("k<0>")) +A.qv(B.A,new A.k5(a,s)) +return s}, +k4(a,b){var s,r,q,p,o,n=null +try{n=a.$0()}catch(p){s=A.F(p) +r=A.R(p) +q=new A.k($.j,b.h("k<0>")) +s=s +r=r +o=A.iU(s,r) +if(o!=null){s=o.a +r=o.b}q.aP(s,r) +return q}return b.h("D<0>").b(n)?n:A.f3(n,b)}, +b_(a,b){var s=a==null?b.a(a):a,r=new A.k($.j,b.h("k<0>")) +r.b1(s) +return r}, +q2(a,b,c){var s=A.o4(a,b),r=new A.k($.j,c.h("k<0>")) +r.aP(s.a,s.b) +return r}, +q1(a,b){var s,r=!b.b(null) +if(r)throw A.a(A.ah(null,"computation","The type parameter is not nullable")) +s=new A.k($.j,b.h("k<0>")) +A.qv(a,new A.k3(null,s,b)) +return s}, +oI(a,b){var s,r,q,p,o,n,m,l,k={},j=null,i=!1,h=new A.k($.j,b.h("k>")) +k.a=null +k.b=0 +k.c=k.d=null +s=new A.k7(k,j,i,h) +try{for(n=J.M(a),m=t.P;n.k();){r=n.gm() +q=k.b +r.bJ(new A.k6(k,q,h,b,j,i),s,m);++k.b}n=k.b +if(n===0){n=h +n.br(A.d([],b.h("w<0>"))) +return n}k.a=A.b1(n,null,!1,b.h("0?"))}catch(l){p=A.F(l) +o=A.R(l) +if(k.b===0||i)return A.q2(p,o,b.h("q<0>")) +else{k.d=p +k.c=o}}return h}, +pi(a,b,c){var s=A.iU(b,c) +if(s!=null){b=s.a +c=s.b}a.X(b,c)}, +iU(a,b){var s,r,q,p=$.j +if(p===B.d)return null +s=p.h4(a,b) +if(s==null)return null +r=s.a +q=s.b +if(t.C.b(r))A.kA(r,q) +return s}, +o4(a,b){var s +if($.j!==B.d){s=A.iU(a,b) +if(s!=null)return s}if(b==null)if(t.C.b(a)){b=a.gbm() +if(b==null){A.kA(a,B.x) +b=B.x}}else b=B.x +else if(t.C.b(a))A.kA(a,b) +return new A.bf(a,b)}, +vh(a,b,c){var s=new A.k(b,c.h("k<0>")) +s.a=8 +s.c=a +return s}, +f3(a,b){var s=new A.k($.j,b.h("k<0>")) +s.a=8 +s.c=a +return s}, +p7(a,b){var s,r +for(;s=a.a,(s&4)!==0;)a=a.c +if(a===b){b.aP(new A.aX(!0,a,null,"Cannot complete a future with itself"),A.oT()) +return}s|=b.a&1 +a.a=s +if((s&24)!==0){r=b.cG() +b.cw(a) +A.dz(b,r)}else{r=b.c +b.fH(a) +a.dY(r)}}, +vi(a,b){var s,r,q={},p=q.a=a +for(;s=p.a,(s&4)!==0;){p=p.c +q.a=p}if(p===b){b.aP(new A.aX(!0,p,null,"Cannot complete a future with itself"),A.oT()) +return}if((s&24)===0){r=b.c +b.fH(p) +q.a.dY(r) +return}if((s&16)===0&&b.c==null){b.cw(p) +return}b.a^=2 +b.b.aZ(new A.mx(q,b))}, +dz(a,b){var s,r,q,p,o,n,m,l,k,j,i,h,g={},f=g.a=a +for(;!0;){s={} +r=f.a +q=(r&16)===0 +p=!q +if(b==null){if(p&&(r&1)===0){r=f.c +f.b.c5(r.a,r.b)}return}s.a=b +o=b.a +for(f=b;o!=null;f=o,o=n){f.a=null +A.dz(g.a,f) +s.a=o +n=o.a}r=g.a +m=r.c +s.b=p +s.c=m +if(q){l=f.c +l=(l&1)!==0||(l&15)===8}else l=!0 +if(l){k=f.b.b +if(p){f=r.b +f=!(f===k||f.gba()===k.gba())}else f=!1 +if(f){f=g.a +r=f.c +f.b.c5(r.a,r.b) +return}j=$.j +if(j!==k)$.j=k +else j=null +f=s.a.c +if((f&15)===8)new A.mE(s,g,p).$0() +else if(q){if((f&1)!==0)new A.mD(s,m).$0()}else if((f&2)!==0)new A.mC(g,s).$0() +if(j!=null)$.j=j +f=s.c +if(f instanceof A.k){r=s.a.$ti +r=r.h("D<2>").b(f)||!r.y[1].b(f)}else r=!1 +if(r){i=s.a.b +if((f.a&24)!==0){h=i.c +i.c=null +b=i.cH(h) +i.a=f.a&30|i.a&1 +i.c=f.c +g.a=f +continue}else A.p7(f,i) +return}}i=s.a.b +h=i.c +i.c=null +b=i.cH(h) +f=s.b +r=s.c +if(!f){i.a=8 +i.c=r}else{i.a=i.a&1|16 +i.c=r}g.a=i +f=i}}, +wA(a,b){if(t.w.b(a))return b.d6(a,t.z,t.K,t.l) +if(t.bI.b(a))return b.bd(a,t.z,t.K) +throw A.a(A.ah(a,"onError",u.c))}, +ws(){var s,r +for(s=$.dT;s!=null;s=$.dT){$.fw=null +r=s.b +$.dT=r +if(r==null)$.fv=null +s.a.$0()}}, +wJ(){$.pl=!0 +try{A.ws()}finally{$.fw=null +$.pl=!1 +if($.dT!=null)$.pG().$1(A.rJ())}}, +rD(a){var s=new A.i6(a),r=$.fv +if(r==null){$.dT=$.fv=s +if(!$.pl)$.pG().$1(A.rJ())}else $.fv=r.b=s}, +wI(a){var s,r,q,p=$.dT +if(p==null){A.rD(a) +$.fw=$.fv +return}s=new A.i6(a) +r=$.fw +if(r==null){s.b=p +$.dT=$.fw=s}else{q=r.b +s.b=q +$.fw=r.b=s +if(q==null)$.fv=s}}, +ow(a){var s,r=null,q=$.j +if(B.d===q){A.o9(r,r,B.d,a) +return}if(B.d===q.ge2().a)s=B.d.gba()===q.gba() +else s=!1 +if(s){A.o9(r,r,q,q.au(a,t.H)) +return}s=$.j +s.aZ(s.cS(a))}, +y9(a){return new A.dL(A.cR(a,"stream",t.K))}, +eJ(a,b,c,d){var s=null +return c?new A.dP(b,s,s,a,d.h("dP<0>")):new A.dt(b,s,s,a,d.h("dt<0>"))}, +iW(a){var s,r,q +if(a==null)return +try{a.$0()}catch(q){s=A.F(q) +r=A.R(q) +$.j.c5(s,r)}}, +vg(a,b,c,d,e,f){var s=$.j,r=e?1:0,q=c!=null?32:0,p=A.ib(s,b,f),o=A.ic(s,c),n=d==null?A.rI():d +return new A.cf(a,p,o,s.au(n,t.H),s,r|q,f.h("cf<0>"))}, +ib(a,b,c){var s=b==null?A.wT():b +return a.bd(s,t.H,c)}, +ic(a,b){if(b==null)b=A.wU() +if(t.da.b(b))return a.d6(b,t.z,t.K,t.l) +if(t.d5.b(b))return a.bd(b,t.z,t.K) +throw A.a(A.K("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.",null))}, +wt(a){}, +wv(a,b){$.j.c5(a,b)}, +wu(){}, +wG(a,b,c){var s,r,q,p +try{b.$1(a.$0())}catch(p){s=A.F(p) +r=A.R(p) +q=A.iU(s,r) +if(q!=null)c.$2(q.a,q.b) +else c.$2(s,r)}}, +w0(a,b,c,d){var s=a.J(),r=$.cl() +if(s!==r)s.aj(new A.nY(b,c,d)) +else b.X(c,d)}, +w1(a,b){return new A.nX(a,b)}, +rl(a,b,c){var s=a.J(),r=$.cl() +if(s!==r)s.aj(new A.nZ(b,c)) +else b.b2(c)}, +vq(a,b,c){return new A.dJ(new A.nE(null,null,a,c,b),b.h("@<0>").H(c).h("dJ<1,2>"))}, +qv(a,b){var s=$.j +if(s===B.d)return s.ej(a,b) +return s.ej(a,s.cS(b))}, +wE(a,b,c,d,e){A.fx(d,e)}, +fx(a,b){A.wI(new A.o5(a,b))}, +o6(a,b,c,d){var s,r=$.j +if(r===c)return d.$0() +$.j=c +s=r +try{r=d.$0() +return r}finally{$.j=s}}, +o8(a,b,c,d,e){var s,r=$.j +if(r===c)return d.$1(e) +$.j=c +s=r +try{r=d.$1(e) +return r}finally{$.j=s}}, +o7(a,b,c,d,e,f){var s,r=$.j +if(r===c)return d.$2(e,f) +$.j=c +s=r +try{r=d.$2(e,f) +return r}finally{$.j=s}}, +rz(a,b,c,d){return d}, +rA(a,b,c,d){return d}, +ry(a,b,c,d){return d}, +wD(a,b,c,d,e){return null}, +o9(a,b,c,d){var s,r +if(B.d!==c){s=B.d.gba() +r=c.gba() +d=s!==r?c.cS(d):c.eg(d,t.H)}A.rD(d)}, +wC(a,b,c,d,e){return A.oX(d,B.d!==c?c.eg(e,t.H):e)}, +wB(a,b,c,d,e){var s +if(B.d!==c)e=c.fX(e,t.H,t.aF) +s=B.b.I(d.a,1000) +return A.vs(s<0?0:s,e)}, +wF(a,b,c,d){A.pz(d)}, +wx(a){$.j.hj(a)}, +rx(a,b,c,d,e){var s,r,q +$.rX=A.wV() +if(d==null)d=B.bJ +if(e==null)s=c.gfm() +else{r=t.X +s=A.uo(e,r,r)}r=new A.id(c.gfE(),c.gfG(),c.gfF(),c.gfA(),c.gfB(),c.gfz(),c.gfd(),c.ge2(),c.gfa(),c.gf9(),c.gft(),c.gfg(),c.gdS(),c,s) +q=d.a +if(q!=null)r.as=new A.au(r,q) +return r}, +xK(a,b,c){return A.wH(a,b,null,c)}, +wH(a,b,c,d){return $.j.h8(c,b).bf(a,d)}, +m0:function m0(a){this.a=a}, +m_:function m_(a,b,c){this.a=a +this.b=b +this.c=c}, +m1:function m1(a){this.a=a}, +m2:function m2(a){this.a=a}, +iK:function iK(){this.c=0}, +nK:function nK(a,b){this.a=a +this.b=b}, +nJ:function nJ(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +i5:function i5(a,b){this.a=a +this.b=!1 +this.$ti=b}, +nV:function nV(a){this.a=a}, +nW:function nW(a){this.a=a}, +oc:function oc(a){this.a=a}, +iI:function iI(a){var _=this +_.a=a +_.e=_.d=_.c=_.b=null}, +dO:function dO(a,b){this.a=a +this.$ti=b}, +bf:function bf(a,b){this.a=a +this.b=b}, +eT:function eT(a,b){this.a=a +this.$ti=b}, +cF:function cF(a,b,c,d,e,f,g){var _=this +_.ay=0 +_.CW=_.ch=null +_.w=a +_.a=b +_.b=c +_.c=d +_.d=e +_.e=f +_.r=_.f=null +_.$ti=g}, +cE:function cE(){}, +fk:function fk(a,b,c){var _=this +_.a=a +_.b=b +_.c=0 +_.r=_.f=_.e=_.d=null +_.$ti=c}, +nG:function nG(a,b){this.a=a +this.b=b}, +nI:function nI(a,b,c){this.a=a +this.b=b +this.c=c}, +nH:function nH(a){this.a=a}, +k5:function k5(a,b){this.a=a +this.b=b}, +k3:function k3(a,b,c){this.a=a +this.b=b +this.c=c}, +k7:function k7(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +k6:function k6(a,b,c,d,e,f){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f}, +du:function du(){}, +a6:function a6(a,b){this.a=a +this.$ti=b}, +a9:function a9(a,b){this.a=a +this.$ti=b}, +cg:function cg(a,b,c,d,e){var _=this +_.a=null +_.b=a +_.c=b +_.d=c +_.e=d +_.$ti=e}, +k:function k(a,b){var _=this +_.a=0 +_.b=a +_.c=null +_.$ti=b}, +mu:function mu(a,b){this.a=a +this.b=b}, +mB:function mB(a,b){this.a=a +this.b=b}, +my:function my(a){this.a=a}, +mz:function mz(a){this.a=a}, +mA:function mA(a,b,c){this.a=a +this.b=b +this.c=c}, +mx:function mx(a,b){this.a=a +this.b=b}, +mw:function mw(a,b){this.a=a +this.b=b}, +mv:function mv(a,b,c){this.a=a +this.b=b +this.c=c}, +mE:function mE(a,b,c){this.a=a +this.b=b +this.c=c}, +mF:function mF(a){this.a=a}, +mD:function mD(a,b){this.a=a +this.b=b}, +mC:function mC(a,b){this.a=a +this.b=b}, +i6:function i6(a){this.a=a +this.b=null}, +Y:function Y(){}, +la:function la(a,b){this.a=a +this.b=b}, +lb:function lb(a,b){this.a=a +this.b=b}, +l8:function l8(a){this.a=a}, +l9:function l9(a,b,c){this.a=a +this.b=b +this.c=c}, +l6:function l6(a,b){this.a=a +this.b=b}, +l7:function l7(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +l4:function l4(a,b){this.a=a +this.b=b}, +l5:function l5(a,b,c){this.a=a +this.b=b +this.c=c}, +hK:function hK(){}, +cM:function cM(){}, +nD:function nD(a){this.a=a}, +nC:function nC(a){this.a=a}, +iJ:function iJ(){}, +i7:function i7(){}, +dt:function dt(a,b,c,d,e){var _=this +_.a=null +_.b=0 +_.c=null +_.d=a +_.e=b +_.f=c +_.r=d +_.$ti=e}, +dP:function dP(a,b,c,d,e){var _=this +_.a=null +_.b=0 +_.c=null +_.d=a +_.e=b +_.f=c +_.r=d +_.$ti=e}, +ap:function ap(a,b){this.a=a +this.$ti=b}, +cf:function cf(a,b,c,d,e,f,g){var _=this +_.w=a +_.a=b +_.b=c +_.c=d +_.d=e +_.e=f +_.r=_.f=null +_.$ti=g}, +dM:function dM(a){this.a=a}, +ag:function ag(){}, +md:function md(a,b,c){this.a=a +this.b=b +this.c=c}, +mc:function mc(a){this.a=a}, +dK:function dK(){}, +ih:function ih(){}, +dv:function dv(a){this.b=a +this.a=null}, +eX:function eX(a,b){this.b=a +this.c=b +this.a=null}, +mn:function mn(){}, +fc:function fc(){this.a=0 +this.c=this.b=null}, +ns:function ns(a,b){this.a=a +this.b=b}, +eY:function eY(a){this.a=1 +this.b=a +this.c=null}, +dL:function dL(a){this.a=null +this.b=a +this.c=!1}, +nY:function nY(a,b,c){this.a=a +this.b=b +this.c=c}, +nX:function nX(a,b){this.a=a +this.b=b}, +nZ:function nZ(a,b){this.a=a +this.b=b}, +f2:function f2(){}, +dx:function dx(a,b,c,d,e,f,g){var _=this +_.w=a +_.x=null +_.a=b +_.b=c +_.c=d +_.d=e +_.e=f +_.r=_.f=null +_.$ti=g}, +f7:function f7(a,b,c){this.b=a +this.a=b +this.$ti=c}, +f_:function f_(a){this.a=a}, +dI:function dI(a,b,c,d,e,f){var _=this +_.w=$ +_.x=null +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.r=_.f=null +_.$ti=f}, +fj:function fj(){}, +eS:function eS(a,b,c){this.a=a +this.b=b +this.$ti=c}, +dA:function dA(a,b,c,d,e){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.$ti=e}, +dJ:function dJ(a,b){this.a=a +this.$ti=b}, +nE:function nE(a,b,c,d,e){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e}, +au:function au(a,b){this.a=a +this.b=b}, +iQ:function iQ(a,b,c,d,e,f,g,h,i,j,k,l,m){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f +_.r=g +_.w=h +_.x=i +_.y=j +_.z=k +_.Q=l +_.as=m}, +dR:function dR(a){this.a=a}, +iP:function iP(){}, +id:function id(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e +_.f=f +_.r=g +_.w=h +_.x=i +_.y=j +_.z=k +_.Q=l +_.as=m +_.at=null +_.ax=n +_.ay=o}, +mk:function mk(a,b,c){this.a=a +this.b=b +this.c=c}, +mm:function mm(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +mj:function mj(a,b){this.a=a +this.b=b}, +ml:function ml(a,b,c){this.a=a +this.b=b +this.c=c}, +o5:function o5(a,b){this.a=a +this.b=b}, +iD:function iD(){}, +nx:function nx(a,b,c){this.a=a +this.b=b +this.c=c}, +nz:function nz(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +nw:function nw(a,b){this.a=a +this.b=b}, +ny:function ny(a,b,c){this.a=a +this.b=b +this.c=c}, +q4(a,b){return new A.cI(a.h("@<0>").H(b).h("cI<1,2>"))}, +qU(a,b){var s=a[b] +return s===a?null:s}, +p9(a,b,c){if(c==null)a[b]=a +else a[b]=c}, +p8(){var s=Object.create(null) +A.p9(s,"",s) +delete s[""] +return s}, +uw(a,b){return new A.bv(a.h("@<0>").H(b).h("bv<1,2>"))}, +ko(a,b,c){return A.xh(a,new A.bv(b.h("@<0>").H(c).h("bv<1,2>")))}, +a2(a,b){return new A.bv(a.h("@<0>").H(b).h("bv<1,2>"))}, +oP(a){return new A.f5(a.h("f5<0>"))}, +pa(){var s=Object.create(null) +s[""]=s +delete s[""] +return s}, +iu(a,b,c){var s=new A.dD(a,b,c.h("dD<0>")) +s.c=a.e +return s}, +uo(a,b,c){var s=A.q4(b,c) +a.aa(0,new A.ka(s,b,c)) +return s}, +oQ(a){var s,r={} +if(A.pw(a))return"{...}" +s=new A.ax("") +try{$.cU.push(a) +s.a+="{" +r.a=!0 +a.aa(0,new A.kt(r,s)) +s.a+="}"}finally{$.cU.pop()}r=s.a +return r.charCodeAt(0)==0?r:r}, +cI:function cI(a){var _=this +_.a=0 +_.e=_.d=_.c=_.b=null +_.$ti=a}, +mG:function mG(a){this.a=a}, +dB:function dB(a){var _=this +_.a=0 +_.e=_.d=_.c=_.b=null +_.$ti=a}, +cJ:function cJ(a,b){this.a=a +this.$ti=b}, +io:function io(a,b,c){var _=this +_.a=a +_.b=b +_.c=0 +_.d=null +_.$ti=c}, +f5:function f5(a){var _=this +_.a=0 +_.f=_.e=_.d=_.c=_.b=null +_.r=0 +_.$ti=a}, +nr:function nr(a){this.a=a +this.c=this.b=null}, +dD:function dD(a,b,c){var _=this +_.a=a +_.b=b +_.d=_.c=null +_.$ti=c}, +ka:function ka(a,b,c){this.a=a +this.b=b +this.c=c}, +er:function er(a){var _=this +_.b=_.a=0 +_.c=null +_.$ti=a}, +iv:function iv(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=null +_.d=c +_.e=!1 +_.$ti=d}, +aF:function aF(){}, +x:function x(){}, +T:function T(){}, +ks:function ks(a){this.a=a}, +kt:function kt(a,b){this.a=a +this.b=b}, +f6:function f6(a,b){this.a=a +this.$ti=b}, +iw:function iw(a,b,c){var _=this +_.a=a +_.b=b +_.c=null +_.$ti=c}, +di:function di(){}, +ff:function ff(){}, +vQ(a,b,c){var s,r,q,p,o=c-b +if(o<=4096)s=$.tp() +else s=new Uint8Array(o) +for(r=J.V(a),q=0;q=16)return null +r=r*16+o}n=h-1 +i[h]=r +for(;s=16)return null +r=r*16+o}m=n-1 +i[n]=r}if(j===1&&i[0]===0)return $.b9() +l=A.aJ(j,i) +return new A.a7(l===0?!1:c,i,l)}, +qS(a,b){var s,r,q,p,o +if(a==="")return null +s=$.ti().a9(a) +if(s==null)return null +r=s.b +q=r[1]==="-" +p=r[4] +o=r[3] +if(p!=null)return A.vd(p,q) +if(o!=null)return A.ve(o,2,q) +return null}, +aJ(a,b){while(!0){if(!(a>0&&b[a-1]===0))break;--a}return a}, +p4(a,b,c,d){var s,r=new Uint16Array(d),q=c-b +for(s=0;s>>0)+(o>>>4)-1075 +m=new Uint16Array(4) +m[0]=(r[1]<<8>>>0)+r[0] +m[1]=(r[3]<<8>>>0)+r[2] +m[2]=(r[5]<<8>>>0)+r[4] +m[3]=o&15|16 +l=new A.a7(!1,m,4) +if(n<0)k=l.bl(0,-n) +else k=n>0?l.b0(0,n):l +if(s)return k.aB(0) +return k}, +p5(a,b,c,d){var s,r,q +if(b===0)return 0 +if(c===0&&d===a)return b +for(s=b-1,r=d.$flags|0;s>=0;--s){q=a[s] +r&2&&A.z(d) +d[s+c]=q}for(s=c-1;s>=0;--s){r&2&&A.z(d) +d[s]=0}return b+c}, +qQ(a,b,c,d){var s,r,q,p,o,n=B.b.I(c,16),m=B.b.aA(c,16),l=16-m,k=B.b.b0(1,l)-1 +for(s=b-1,r=d.$flags|0,q=0;s>=0;--s){p=a[s] +o=B.b.bl(p,l) +r&2&&A.z(d) +d[s+n+1]=(o|q)>>>0 +q=B.b.b0((p&k)>>>0,m)}r&2&&A.z(d) +d[n]=q}, +qL(a,b,c,d){var s,r,q,p,o=B.b.I(c,16) +if(B.b.aA(c,16)===0)return A.p5(a,b,o,d) +s=b+o+1 +A.qQ(a,b,c,d) +for(r=d.$flags|0,q=o;--q,q>=0;){r&2&&A.z(d) +d[q]=0}p=s-1 +return d[p]===0?p:s}, +vf(a,b,c,d){var s,r,q,p,o=B.b.I(c,16),n=B.b.aA(c,16),m=16-n,l=B.b.b0(1,n)-1,k=B.b.bl(a[o],n),j=b-o-1 +for(s=d.$flags|0,r=0;r>>0,m) +s&2&&A.z(d) +d[r]=(p|k)>>>0 +k=B.b.bl(q,n)}s&2&&A.z(d) +d[j]=k}, +m9(a,b,c,d){var s,r=b-d +if(r===0)for(s=b-1;s>=0;--s){r=a[s]-c[s] +if(r!==0)return r}return r}, +vb(a,b,c,d,e){var s,r,q +for(s=e.$flags|0,r=0,q=0;q=0;e=o,c=q){q=c+1 +p=a*b[c]+d[e]+r +o=e+1 +s&2&&A.z(d) +d[e]=p&65535 +r=B.b.I(p,65536)}for(;r!==0;e=o){n=d[e]+r +o=e+1 +s&2&&A.z(d) +d[e]=n&65535 +r=B.b.I(n,65536)}}, +vc(a,b,c){var s,r=b[c] +if(r===a)return 65535 +s=B.b.eY((r<<16|b[c-1])>>>0,a) +if(s>65535)return 65535 +return s}, +ue(a){throw A.a(A.ah(a,"object","Expandos are not allowed on strings, numbers, bools, records or null"))}, +aN(a,b){var s=A.qh(a,b) +if(s!=null)return s +throw A.a(A.aj(a,null,null))}, +ud(a,b){a=A.a(a) +a.stack=b.j(0) +throw a +throw A.a("unreachable")}, +b1(a,b,c,d){var s,r=c?J.q9(a,d):J.q8(a,d) +if(a!==0&&b!=null)for(s=0;s")) +for(s=J.M(a);s.k();)r.push(s.gm()) +r.$flags=1 +return r}, +aw(a,b,c){var s +if(b)return A.qb(a,c) +s=A.qb(a,c) +s.$flags=1 +return s}, +qb(a,b){var s,r +if(Array.isArray(a))return A.d(a.slice(0),b.h("w<0>")) +s=A.d([],b.h("w<0>")) +for(r=J.M(a);r.k();)s.push(r.gm()) +return s}, +aG(a,b){var s=A.uy(a,!1,b) +s.$flags=3 +return s}, +qu(a,b,c){var s,r,q,p,o +A.ab(b,"start") +s=c==null +r=!s +if(r){q=c-b +if(q<0)throw A.a(A.X(c,b,null,"end",null)) +if(q===0)return""}if(Array.isArray(a)){p=a +o=p.length +if(s)c=o +return A.qj(b>0||c0)a=J.e3(a,b) +return A.qj(A.aw(a,!0,t.S))}, +qt(a){return A.aB(a)}, +uU(a,b,c){var s=a.length +if(b>=s)return"" +return A.uO(a,b,c==null||c>s?s:c)}, +J(a,b,c,d,e){return new A.cv(a,A.oM(a,d,b,e,c,!1))}, +oU(a,b,c){var s=J.M(b) +if(!s.k())return a +if(c.length===0){do a+=A.v(s.gm()) +while(s.k())}else{a+=A.v(s.gm()) +for(;s.k();)a=a+c+A.v(s.gm())}return a}, +eM(){var s,r,q=A.uE() +if(q==null)throw A.a(A.a3("'Uri.base' is not supported")) +s=$.qG +if(s!=null&&q===$.qF)return s +r=A.bm(q) +$.qG=r +$.qF=q +return r}, +vO(a,b,c,d){var s,r,q,p,o,n="0123456789ABCDEF" +if(c===B.j){s=$.tm() +s=s.b.test(b)}else s=!1 +if(s)return b +r=B.i.a5(b) +for(s=r.length,q=0,p="";q>>4]&1<<(o&15))!==0)p+=A.aB(o) +else p=d&&o===32?p+"+":p+"%"+n[o>>>4&15]+n[o&15]}return p.charCodeAt(0)==0?p:p}, +oT(){return A.R(new Error())}, +u9(a){var s=Math.abs(a),r=a<0?"-":"" +if(s>=1000)return""+a +if(s>=100)return r+"0"+s +if(s>=10)return r+"00"+s +return r+"000"+s}, +pV(a){if(a>=100)return""+a +if(a>=10)return"0"+a +return"00"+a}, +fW(a){if(a>=10)return""+a +return"0"+a}, +pW(a,b){return new A.bp(a+1000*b)}, +oF(a,b){var s,r,q +for(s=a.length,r=0;rc)throw A.a(A.X(a,b,c,d,null)) +return a}, +uQ(a,b,c,d){if(0>a||a>=d)A.B(A.hb(a,d,b,null,c)) +return a}, +bb(a,b,c){if(0>a||a>c)throw A.a(A.X(a,0,c,"start",null)) +if(b!=null){if(a>b||b>c)throw A.a(A.X(b,a,c,"end",null)) +return b}return c}, +ab(a,b){if(a<0)throw A.a(A.X(a,0,null,b,null)) +return a}, +q5(a,b){var s=b.b +return new A.el(s,!0,a,null,"Index out of range")}, +hb(a,b,c,d,e){return new A.el(b,!0,a,e,"Index out of range")}, +a3(a){return new A.eL(a)}, +qC(a){return new A.hO(a)}, +C(a){return new A.b4(a)}, +az(a){return new A.fS(a)}, +jU(a){return new A.ik(a)}, +aj(a,b,c){return new A.bs(a,b,c)}, +uq(a,b,c){var s,r +if(A.pw(a)){if(b==="("&&c===")")return"(...)" +return b+"..."+c}s=A.d([],t.s) +$.cU.push(a) +try{A.wr(a,s)}finally{$.cU.pop()}r=A.oU(b,s,", ")+c +return r.charCodeAt(0)==0?r:r}, +oL(a,b,c){var s,r +if(A.pw(a))return b+"..."+c +s=new A.ax(b) +$.cU.push(a) +try{r=s +r.a=A.oU(r.a,a,", ")}finally{$.cU.pop()}s.a+=c +r=s.a +return r.charCodeAt(0)==0?r:r}, +wr(a,b){var s,r,q,p,o,n,m,l=a.gt(a),k=0,j=0 +while(!0){if(!(k<80||j<3))break +if(!l.k())return +s=A.v(l.gm()) +b.push(s) +k+=s.length+2;++j}if(!l.k()){if(j<=5)return +r=b.pop() +q=b.pop()}else{p=l.gm();++j +if(!l.k()){if(j<=4){b.push(A.v(p)) +return}r=A.v(p) +q=b.pop() +k+=r.length+2}else{o=l.gm();++j +for(;l.k();p=o,o=n){n=l.gm();++j +if(j>100){while(!0){if(!(k>75&&j>3))break +k-=b.pop().length+2;--j}b.push("...") +return}}q=A.v(p) +r=A.v(o) +k+=r.length+q.length+4}}if(j>b.length+2){k+=5 +m="..."}else m=null +while(!0){if(!(k>80&&b.length>3))break +k-=b.pop().length+2 +if(m==null){k+=5 +m="..."}}if(m!=null)b.push(m) +b.push(q) +b.push(r)}, +ex(a,b,c,d){var s +if(B.f===c){s=J.ay(a) +b=J.ay(b) +return A.oV(A.c9(A.c9($.oA(),s),b))}if(B.f===d){s=J.ay(a) +b=J.ay(b) +c=J.ay(c) +return A.oV(A.c9(A.c9(A.c9($.oA(),s),b),c))}s=J.ay(a) +b=J.ay(b) +c=J.ay(c) +d=J.ay(d) +d=A.oV(A.c9(A.c9(A.c9(A.c9($.oA(),s),b),c),d)) +return d}, +xI(a){var s=A.v(a),r=$.rX +if(r==null)A.pz(s) +else r.$1(s)}, +qE(a){var s,r=null,q=new A.ax(""),p=A.d([-1],t.t) +A.v2(r,r,r,q,p) +p.push(q.a.length) +q.a+="," +A.v1(B.p,B.aq.jW(a),q) +s=q.a +return new A.hT(s.charCodeAt(0)==0?s:s,p,r).geO()}, +bm(a5){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1,a2,a3=null,a4=a5.length +if(a4>=5){s=((a5.charCodeAt(4)^58)*3|a5.charCodeAt(0)^100|a5.charCodeAt(1)^97|a5.charCodeAt(2)^116|a5.charCodeAt(3)^97)>>>0 +if(s===0)return A.qD(a4=14)r[7]=a4 +q=r[1] +if(q>=0)if(A.rC(a5,0,q,20,r)===20)r[7]=q +p=r[2]+1 +o=r[3] +n=r[4] +m=r[5] +l=r[6] +if(lq+3)){i=o>0 +if(!(i&&o+1===n)){if(!B.a.E(a5,"\\",n))if(p>0)h=B.a.E(a5,"\\",p-1)||B.a.E(a5,"\\",p-2) +else h=!1 +else h=!0 +if(!h){if(!(mn+2&&B.a.E(a5,"/..",m-3) +else h=!0 +if(!h)if(q===4){if(B.a.E(a5,"file",0)){if(p<=0){if(!B.a.E(a5,"/",n)){g="file:///" +s=3}else{g="file://" +s=2}a5=g+B.a.n(a5,n,a4) +m+=s +l+=s +a4=a5.length +p=7 +o=7 +n=7}else if(n===m){++l +f=m+1 +a5=B.a.aM(a5,n,m,"/");++a4 +m=f}j="file"}else if(B.a.E(a5,"http",0)){if(i&&o+3===n&&B.a.E(a5,"80",o+1)){l-=3 +e=n-3 +m-=3 +a5=B.a.aM(a5,o,n,"") +a4-=3 +n=e}j="http"}}else if(q===5&&B.a.E(a5,"https",0)){if(i&&o+4===n&&B.a.E(a5,"443",o+1)){l-=4 +e=n-4 +m-=4 +a5=B.a.aM(a5,o,n,"") +a4-=3 +n=e}j="https"}k=!h}}}}if(k)return new A.b6(a40)j=A.nP(a5,0,q) +else{if(q===0)A.dQ(a5,0,"Invalid empty scheme") +j=""}d=a3 +if(p>0){c=q+3 +b=c9)k.$2("invalid character",s)}else{if(q===3)k.$2(m,s) +o=A.aN(B.a.n(a,r,s),null) +if(o>255)k.$2(l,r) +n=q+1 +j[q]=o +r=s+1 +q=n}}if(q!==3)k.$2(m,c) +o=A.aN(B.a.n(a,r,c),null) +if(o>255)k.$2(l,r) +j[q]=o +return j}, +qH(a,b,a0){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e=null,d=new A.lt(a),c=new A.lu(d,a) +if(a.length<2)d.$2("address is too short",e) +s=A.d([],t.t) +for(r=b,q=r,p=!1,o=!1;r>>0) +s.push((k[2]<<8|k[3])>>>0)}if(p){if(s.length>7)d.$2("an address with a wildcard must have less than 7 parts",e)}else if(s.length!==8)d.$2("an address without a wildcard must contain exactly 8 parts",e) +j=new Uint8Array(16) +for(l=s.length,i=9-l,r=0,h=0;r")),r=r.h("P.E");s.k();){q=s.d +if(q==null)q=r.a(q) +if(B.a.K(q,A.J('["*/:<>?\\\\|]',!0,!1,!1,!1)))if(b)throw A.a(A.K("Illegal character in path",null)) +else throw A.a(A.a3("Illegal character in path: "+q))}}, +vG(a,b){var s,r="Illegal drive letter " +if(!(65<=a&&a<=90))s=97<=a&&a<=122 +else s=!0 +if(s)return +if(b)throw A.a(A.K(r+A.qt(a),null)) +else throw A.a(A.a3(r+A.qt(a)))}, +vJ(a,b){var s=null,r=A.d(a.split("/"),t.s) +if(B.a.u(a,"/"))return A.al(s,s,r,"file") +else return A.al(s,s,r,s)}, +vK(a,b){var s,r,q,p,o="\\",n=null,m="file" +if(B.a.u(a,"\\\\?\\"))if(B.a.E(a,"UNC\\",4))a=B.a.aM(a,0,7,o) +else{a=B.a.L(a,4) +if(a.length<3||a.charCodeAt(1)!==58||a.charCodeAt(2)!==92)throw A.a(A.ah(a,"path","Windows paths with \\\\?\\ prefix must be absolute"))}else a=A.bd(a,"/",o) +s=a.length +if(s>1&&a.charCodeAt(1)===58){A.vG(a.charCodeAt(0),!0) +if(s===2||a.charCodeAt(2)!==92)throw A.a(A.ah(a,"path","Windows paths with drive letter must be absolute")) +r=A.d(a.split(o),t.s) +A.nM(r,!0,1) +return A.al(n,n,r,m)}if(B.a.u(a,o))if(B.a.E(a,o,1)){q=B.a.aV(a,o,2) +s=q<0 +p=s?B.a.L(a,2):B.a.n(a,2,q) +r=A.d((s?"":B.a.L(a,q+1)).split(o),t.s) +A.nM(r,!0,0) +return A.al(p,n,r,m)}else{r=A.d(a.split(o),t.s) +A.nM(r,!0,0) +return A.al(n,n,r,m)}else{r=A.d(a.split(o),t.s) +A.nM(r,!0,0) +return A.al(n,n,r,n)}}, +nO(a,b){if(a!=null&&a===A.r7(b))return null +return a}, +rb(a,b,c,d){var s,r,q,p,o,n +if(a==null)return null +if(b===c)return"" +if(a.charCodeAt(b)===91){s=c-1 +if(a.charCodeAt(s)!==93)A.dQ(a,b,"Missing end `]` to match `[` in host") +r=b+1 +q=A.vH(a,r,s) +if(q=b&&q=b&&s>>4]&1<<(p&15))!==0){if(q&&65<=p&&90>=p){if(i==null)i=new A.ax("") +if(r>>4]&1<<(o&15))!==0){if(p&&65<=o&&90>=o){if(q==null)q=new A.ax("") +if(r>>4]&1<<(o&15))!==0)A.dQ(a,s,"Invalid character") +else{j=1 +if((o&64512)===55296&&s+1>>4]&1<<(q&15))!==0))A.dQ(a,s,"Illegal scheme character") +if(65<=q&&q<=90)r=!0}a=B.a.n(a,b,c) +return A.vE(r?a.toLowerCase():a)}, +vE(a){if(a==="http")return"http" +if(a==="file")return"file" +if(a==="https")return"https" +if(a==="package")return"package" +return a}, +re(a,b,c){if(a==null)return"" +return A.fs(a,b,c,B.aM,!1,!1)}, +rc(a,b,c,d,e,f){var s,r=e==="file",q=r||f +if(a==null){if(d==null)return r?"/":"" +s=new A.E(d,new A.nN(),A.Q(d).h("E<1,i>")).aq(0,"/")}else if(d!=null)throw A.a(A.K("Both path and pathSegments specified",null)) +else s=A.fs(a,b,c,B.a6,!0,!0) +if(s.length===0){if(r)return"/"}else if(q&&!B.a.u(s,"/"))s="/"+s +return A.vL(s,e,f)}, +vL(a,b,c){var s=b.length===0 +if(s&&!c&&!B.a.u(a,"/")&&!B.a.u(a,"\\"))return A.pg(a,!s||c) +return A.cN(a)}, +rd(a,b,c,d){if(a!=null)return A.fs(a,b,c,B.p,!0,!1) +return null}, +ra(a,b,c){if(a==null)return null +return A.fs(a,b,c,B.p,!0,!1)}, +pf(a,b,c){var s,r,q,p,o,n=b+2 +if(n>=a.length)return"%" +s=a.charCodeAt(b+1) +r=a.charCodeAt(n) +q=A.ok(s) +p=A.ok(r) +if(q<0||p<0)return"%" +o=q*16+p +if(o<127&&(B.ac[B.b.O(o,4)]&1<<(o&15))!==0)return A.aB(c&&65<=o&&90>=o?(o|32)>>>0:o) +if(s>=97||r>=97)return B.a.n(a,b,b+3).toUpperCase() +return null}, +pe(a){var s,r,q,p,o,n="0123456789ABCDEF" +if(a<128){s=new Uint8Array(3) +s[0]=37 +s[1]=n.charCodeAt(a>>>4) +s[2]=n.charCodeAt(a&15)}else{if(a>2047)if(a>65535){r=240 +q=4}else{r=224 +q=3}else{r=192 +q=2}s=new Uint8Array(3*q) +for(p=0;--q,q>=0;r=128){o=B.b.ji(a,6*q)&63|r +s[p]=37 +s[p+1]=n.charCodeAt(o>>>4) +s[p+2]=n.charCodeAt(o&15) +p+=3}}return A.qu(s,0,null)}, +fs(a,b,c,d,e,f){var s=A.rg(a,b,c,d,e,f) +return s==null?B.a.n(a,b,c):s}, +rg(a,b,c,d,e,f){var s,r,q,p,o,n,m,l,k,j,i=null +for(s=!e,r=b,q=r,p=i;r>>4]&1<<(o&15))!==0)++r +else{n=1 +if(o===37){m=A.pf(a,r,!1) +if(m==null){r+=3 +continue}if("%"===m)m="%25" +else n=3}else if(o===92&&f)m="/" +else if(s&&o<=93&&(B.a7[o>>>4]&1<<(o&15))!==0){A.dQ(a,r,"Invalid character") +n=i +m=n}else{if((o&64512)===55296){l=r+1 +if(l=2&&A.r9(a.charCodeAt(0)))for(s=1;s127||(B.a5[r>>>4]&1<<(r&15))===0)break}return a}, +vN(a,b){if(a.kn("package")&&a.c==null)return A.rE(b,0,b.length) +return-1}, +vI(a,b){var s,r,q +for(s=0,r=0;r<2;++r){q=a.charCodeAt(b+r) +if(48<=q&&q<=57)s=s*16+q-48 +else{q|=32 +if(97<=q&&q<=102)s=s*16+q-87 +else throw A.a(A.K("Invalid URL encoding",null))}}return s}, +ph(a,b,c,d,e){var s,r,q,p,o=b +while(!0){if(!(o127)throw A.a(A.K("Illegal percent encoding in URI",null)) +if(r===37){if(o+3>q)throw A.a(A.K("Truncated URI",null)) +p.push(A.vI(a,o+1)) +o+=2}else p.push(r)}}return d.cV(p)}, +r9(a){var s=a|32 +return 97<=s&&s<=122}, +v2(a,b,c,d,e){d.a=d.a}, +qD(a,b,c){var s,r,q,p,o,n,m,l,k="Invalid MIME type",j=A.d([b-1],t.t) +for(s=a.length,r=b,q=-1,p=null;rb)throw A.a(A.aj(k,a,r)) +for(;p!==44;){j.push(r);++r +for(o=-1;r=0)j.push(o) +else{n=B.c.gC(j) +if(p!==44||r!==n+7||!B.a.E(a,"base64",n+1))throw A.a(A.aj("Expecting '='",a,r)) +break}}j.push(r) +m=r+1 +if((j.length&1)===1)a=B.ar.ks(a,m,s) +else{l=A.rg(a,m,s,B.p,!0,!1) +if(l!=null)a=B.a.aM(a,m,s,l)}return new A.hT(a,j,c)}, +v1(a,b,c){var s,r,q,p,o,n="0123456789ABCDEF" +for(s=b.length,r=0,q=0;q>>4]&1<<(p&15))!==0){o=A.aB(p) +c.a+=o}else{o=A.aB(37) +c.a+=o +o=A.aB(n.charCodeAt(p>>>4)) +c.a+=o +o=A.aB(n.charCodeAt(p&15)) +c.a+=o}}if((r&4294967040)!==0)for(q=0;q255)throw A.a(A.ah(p,"non-byte value",null))}}, +w5(){var s,r,q,p,o,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",m=".",l=":",k="/",j="\\",i="?",h="#",g="/\\",f=J.q7(22,t.p) +for(s=0;s<22;++s)f[s]=new Uint8Array(96) +r=new A.o_(f) +q=new A.o0() +p=new A.o1() +o=r.$2(0,225) +q.$3(o,n,1) +q.$3(o,m,14) +q.$3(o,l,34) +q.$3(o,k,3) +q.$3(o,j,227) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(14,225) +q.$3(o,n,1) +q.$3(o,m,15) +q.$3(o,l,34) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(15,225) +q.$3(o,n,1) +q.$3(o,"%",225) +q.$3(o,l,34) +q.$3(o,k,9) +q.$3(o,j,233) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(1,225) +q.$3(o,n,1) +q.$3(o,l,34) +q.$3(o,k,10) +q.$3(o,j,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(2,235) +q.$3(o,n,139) +q.$3(o,k,131) +q.$3(o,j,131) +q.$3(o,m,146) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(3,235) +q.$3(o,n,11) +q.$3(o,k,68) +q.$3(o,j,68) +q.$3(o,m,18) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(4,229) +q.$3(o,n,5) +p.$3(o,"AZ",229) +q.$3(o,l,102) +q.$3(o,"@",68) +q.$3(o,"[",232) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(5,229) +q.$3(o,n,5) +p.$3(o,"AZ",229) +q.$3(o,l,102) +q.$3(o,"@",68) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(6,231) +p.$3(o,"19",7) +q.$3(o,"@",68) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(7,231) +p.$3(o,"09",7) +q.$3(o,"@",68) +q.$3(o,k,138) +q.$3(o,j,138) +q.$3(o,i,172) +q.$3(o,h,205) +q.$3(r.$2(8,8),"]",5) +o=r.$2(9,235) +q.$3(o,n,11) +q.$3(o,m,16) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(16,235) +q.$3(o,n,11) +q.$3(o,m,17) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(17,235) +q.$3(o,n,11) +q.$3(o,k,9) +q.$3(o,j,233) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(10,235) +q.$3(o,n,11) +q.$3(o,m,18) +q.$3(o,k,10) +q.$3(o,j,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(18,235) +q.$3(o,n,11) +q.$3(o,m,19) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(19,235) +q.$3(o,n,11) +q.$3(o,g,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(11,235) +q.$3(o,n,11) +q.$3(o,k,10) +q.$3(o,j,234) +q.$3(o,i,172) +q.$3(o,h,205) +o=r.$2(12,236) +q.$3(o,n,12) +q.$3(o,i,12) +q.$3(o,h,205) +o=r.$2(13,237) +q.$3(o,n,13) +q.$3(o,i,13) +p.$3(r.$2(20,245),"az",21) +o=r.$2(21,245) +p.$3(o,"az",21) +p.$3(o,"09",21) +q.$3(o,"+-.",21) +return f}, +rC(a,b,c,d,e){var s,r,q,p,o=$.tA() +for(s=b;s95?31:q] +d=p&31 +e[p>>>5]=s}return d}, +r_(a){if(a.b===7&&B.a.u(a.a,"package")&&a.c<=0)return A.rE(a.a,a.e,a.f) +return-1}, +rE(a,b,c){var s,r,q +for(s=b,r=0;s=1)return a.$1(b) +return a.$0()}, +vX(a,b,c,d){if(d>=2)return a.$2(b,c) +if(d===1)return a.$1(b) +return a.$0()}, +vY(a,b,c,d,e){if(e>=3)return a.$3(b,c,d) +if(e===2)return a.$2(b,c) +if(e===1)return a.$1(b) +return a.$0()}, +vZ(a,b,c,d,e,f){if(f>=4)return a.$4(b,c,d,e) +if(f===3)return a.$3(b,c,d) +if(f===2)return a.$2(b,c) +if(f===1)return a.$1(b) +return a.$0()}, +w_(a,b,c,d,e,f,g){if(g>=5)return a.$5(b,c,d,e,f) +if(g===4)return a.$4(b,c,d,e) +if(g===3)return a.$3(b,c,d) +if(g===2)return a.$2(b,c) +if(g===1)return a.$1(b) +return a.$0()}, +rw(a){return a==null||A.bQ(a)||typeof a=="number"||typeof a=="string"||t.gj.b(a)||t.p.b(a)||t.go.b(a)||t.dQ.b(a)||t.h7.b(a)||t.an.b(a)||t.bv.b(a)||t.h4.b(a)||t.gN.b(a)||t.dI.b(a)||t.fd.b(a)}, +xw(a){if(A.rw(a))return a +return new A.op(new A.dB(t.hg)).$1(a)}, +cQ(a,b,c){return a[b].apply(a,c)}, +dY(a,b){var s,r +if(b==null)return new a() +if(b instanceof Array)switch(b.length){case 0:return new a() +case 1:return new a(b[0]) +case 2:return new a(b[0],b[1]) +case 3:return new a(b[0],b[1],b[2]) +case 4:return new a(b[0],b[1],b[2],b[3])}s=[null] +B.c.aH(s,b) +r=a.bind.apply(a,s) +String(r) +return new r()}, +a_(a,b){var s=new A.k($.j,b.h("k<0>")),r=new A.a6(s,b.h("a6<0>")) +a.then(A.cj(new A.ot(r),1),A.cj(new A.ou(r),1)) +return s}, +rv(a){return a==null||typeof a==="boolean"||typeof a==="number"||typeof a==="string"||a instanceof Int8Array||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int16Array||a instanceof Uint16Array||a instanceof Int32Array||a instanceof Uint32Array||a instanceof Float32Array||a instanceof Float64Array||a instanceof ArrayBuffer||a instanceof DataView}, +rK(a){if(A.rv(a))return a +return new A.of(new A.dB(t.hg)).$1(a)}, +op:function op(a){this.a=a}, +ot:function ot(a){this.a=a}, +ou:function ou(a){this.a=a}, +of:function of(a){this.a=a}, +hv:function hv(a){this.a=a}, +rS(a,b){return Math.max(a,b)}, +xM(a){return Math.sqrt(a)}, +xL(a){return Math.sin(a)}, +xc(a){return Math.cos(a)}, +xS(a){return Math.tan(a)}, +wO(a){return Math.acos(a)}, +wP(a){return Math.asin(a)}, +x8(a){return Math.atan(a)}, +np:function np(a){this.a=a}, +d_:function d_(){}, +fX:function fX(){}, +hm:function hm(){}, +hu:function hu(){}, +hR:function hR(){}, +ua(a,b){var s=new A.ef(a,b,A.a2(t.S,t.aR),A.eJ(null,null,!0,t.al),new A.a6(new A.k($.j,t.D),t.h)) +s.hR(a,!1,b) +return s}, +ef:function ef(a,b,c,d,e){var _=this +_.a=a +_.c=b +_.d=0 +_.e=c +_.f=d +_.r=!1 +_.w=e}, +jJ:function jJ(a){this.a=a}, +jK:function jK(a,b){this.a=a +this.b=b}, +iy:function iy(a,b){this.a=a +this.b=b}, +fT:function fT(){}, +h0:function h0(a){this.a=a}, +h_:function h_(){}, +jL:function jL(a){this.a=a}, +jM:function jM(a){this.a=a}, +c1:function c1(){}, +ao:function ao(a,b){this.a=a +this.b=b}, +bc:function bc(a,b){this.a=a +this.b=b}, +aH:function aH(a){this.a=a}, +bq:function bq(a,b,c){this.a=a +this.b=b +this.c=c}, +bo:function bo(a){this.a=a}, +d8:function d8(a,b){this.a=a +this.b=b}, +cA:function cA(a,b){this.a=a +this.b=b}, +bY:function bY(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +c4:function c4(a){this.a=a}, +bh:function bh(a,b){this.a=a +this.b=b}, +c3:function c3(a,b){this.a=a +this.b=b}, +c6:function c6(a,b){this.a=a +this.b=b}, +bX:function bX(a,b){this.a=a +this.b=b}, +c7:function c7(a){this.a=a}, +c5:function c5(a,b){this.a=a +this.b=b}, +bA:function bA(a){this.a=a}, +bC:function bC(a){this.a=a}, +uS(a,b,c){var s=null,r=t.S,q=A.d([],t.t) +r=new A.kM(a,!1,!0,A.a2(r,t.x),A.a2(r,t.g1),q,new A.fk(s,s,t.dn),A.oP(t.gw),new A.a6(new A.k($.j,t.D),t.h),A.eJ(s,s,!1,t.bw)) +r.hT(a,!1,!0) +return r}, +kM:function kM(a,b,c,d,e,f,g,h,i,j){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.f=_.e=0 +_.r=e +_.w=f +_.x=g +_.y=!1 +_.z=h +_.Q=i +_.as=j}, +kR:function kR(a){this.a=a}, +kS:function kS(a,b){this.a=a +this.b=b}, +kT:function kT(a,b){this.a=a +this.b=b}, +kN:function kN(a,b){this.a=a +this.b=b}, +kO:function kO(a,b){this.a=a +this.b=b}, +kQ:function kQ(a,b){this.a=a +this.b=b}, +kP:function kP(a){this.a=a}, +fe:function fe(a,b,c){this.a=a +this.b=b +this.c=c}, +i2:function i2(){}, +lV:function lV(a,b){this.a=a +this.b=b}, +lW:function lW(a,b){this.a=a +this.b=b}, +lT:function lT(){}, +lP:function lP(a,b){this.a=a +this.b=b}, +lQ:function lQ(){}, +lR:function lR(){}, +lO:function lO(){}, +lU:function lU(){}, +lS:function lS(){}, +dn:function dn(a,b){this.a=a +this.b=b}, +bE:function bE(a,b){this.a=a +this.b=b}, +xJ(a,b){var s,r,q={} +q.a=s +q.a=null +s=new A.bW(new A.a9(new A.k($.j,b.h("k<0>")),b.h("a9<0>")),A.d([],t.bT),b.h("bW<0>")) +q.a=s +r=t.X +A.xK(new A.ov(q,a,b),A.ko([B.ai,s],r,r),t.H) +return q.a}, +pp(){var s=$.j.i(0,B.ai) +if(s instanceof A.bW&&s.c)throw A.a(B.a_)}, +ov:function ov(a,b,c){this.a=a +this.b=b +this.c=c}, +bW:function bW(a,b,c){var _=this +_.a=a +_.b=b +_.c=!1 +_.$ti=c}, +e8:function e8(){}, +an:function an(){}, +e6:function e6(a,b){this.a=a +this.b=b}, +cY:function cY(a,b){this.a=a +this.b=b}, +rq(a){return"SAVEPOINT s"+a}, +ro(a){return"RELEASE s"+a}, +rp(a){return"ROLLBACK TO s"+a}, +jz:function jz(){}, +kB:function kB(){}, +lm:function lm(){}, +ku:function ku(){}, +jD:function jD(){}, +ht:function ht(){}, +jS:function jS(){}, +i8:function i8(){}, +m3:function m3(a,b,c){this.a=a +this.b=b +this.c=c}, +m8:function m8(a,b,c){this.a=a +this.b=b +this.c=c}, +m6:function m6(a,b,c){this.a=a +this.b=b +this.c=c}, +m7:function m7(a,b,c){this.a=a +this.b=b +this.c=c}, +m5:function m5(a,b,c){this.a=a +this.b=b +this.c=c}, +m4:function m4(a,b){this.a=a +this.b=b}, +iL:function iL(){}, +fi:function fi(a,b,c,d,e,f,g,h,i){var _=this +_.y=a +_.z=null +_.Q=b +_.as=c +_.at=d +_.ax=e +_.ay=f +_.ch=g +_.e=h +_.a=i +_.b=0 +_.d=_.c=!1}, +nA:function nA(a){this.a=a}, +nB:function nB(a){this.a=a}, +fY:function fY(){}, +jI:function jI(a,b){this.a=a +this.b=b}, +jH:function jH(a){this.a=a}, +i9:function i9(a,b){var _=this +_.e=a +_.a=b +_.b=0 +_.d=_.c=!1}, +f1:function f1(a,b,c){var _=this +_.e=a +_.f=null +_.r=b +_.a=c +_.b=0 +_.d=_.c=!1}, +mr:function mr(a,b){this.a=a +this.b=b}, +qm(a,b){var s,r,q,p=A.a2(t.N,t.S) +for(s=a.length,r=0;r3)throw A.a("Expected two or three arguments to regexp") +s=a.i(0,0) +q=a.i(0,1) +if(s==null||q==null)return null +if(typeof s!="string"||typeof q!="string")throw A.a("Expected two strings as parameters to regexp") +if(g===3){p=a.i(0,2) +if(A.bn(p)){k=(p&1)===1 +j=(p&2)!==2 +i=(p&4)===4 +h=(p&8)===8}}r=null +try{o=k +n=j +m=i +r=A.J(s,n,h,o,m)}catch(l){if(A.F(l) instanceof A.bs)throw A.a("Invalid regex") +else throw l}o=r.b +return o.test(q)}, +w4(a){var s,r,q=a.a.b +if(q<2||q>3)throw A.a("Expected 2 or 3 arguments to moor_contains") +s=a.i(0,0) +r=a.i(0,1) +if(typeof s!="string"||typeof r!="string")throw A.a("First two args to contains must be strings") +return q===3&&a.i(0,2)===1?J.tQ(s,r):B.a.K(s.toLowerCase(),r.toLowerCase())}, +jT:function jT(){}, +oa:function oa(a){this.a=a}, +hj:function hj(a){var _=this +_.a=$ +_.b=!1 +_.d=null +_.e=a}, +kl:function kl(a,b){this.a=a +this.b=b}, +km:function km(a,b){this.a=a +this.b=b}, +bi:function bi(){this.a=null}, +kp:function kp(a,b,c,d,e){var _=this +_.a=a +_.b=b +_.c=c +_.d=d +_.e=e}, +kq:function kq(a,b,c){this.a=a +this.b=b +this.c=c}, +kr:function kr(a,b){this.a=a +this.b=b}, +v5(a,b,c){var s=null,r=new A.hJ(t.a7),q=t.X,p=A.eJ(s,s,!1,q),o=A.eJ(s,s,!1,q),n=A.q3(new A.ap(o,A.t(o).h("ap<1>")),new A.dM(p),!0,q) +r.a=n +q=A.q3(new A.ap(p,A.t(p).h("ap<1>")),new A.dM(o),!0,q) +r.b=q +a.onmessage=A.aV(new A.lL(b,r,c)) +n=n.b +n===$&&A.G() +new A.ap(n,A.t(n).h("ap<1>")).eC(new A.lM(c,a),new A.lN(b,a)) +return q}, +lL:function lL(a,b,c){this.a=a +this.b=b +this.c=c}, +lM:function lM(a,b){this.a=a +this.b=b}, +lN:function lN(a,b){this.a=a +this.b=b}, +jE:function jE(a,b,c){var _=this +_.a=a +_.b=b +_.c=c +_.d=null}, +jG:function jG(a){this.a=a}, +jF:function jF(a,b){this.a=a +this.b=b}, +ql(a){var s +$label0$0:{if(a<=0){s=B.u +break $label0$0}if(1===a){s=B.b_ +break $label0$0}if(2===a){s=B.b0 +break $label0$0}if(a>2){s=B.v +break $label0$0}s=A.B(A.e4(null))}return s}, +qk(a){if("v" in a)return A.ql(A.h(A.r(a.v))) +else return B.u}, +oY(a){var s,r,q,p,o,n,m,l,k,j,i=A.ad(a.type),h=a.payload +$label0$0:{if("Error"===i){s=new A.ds(A.ad(t.m.a(h))) +break $label0$0}if("ServeDriftDatabase"===i){s=t.m +s.a(h) +r=A.qk(h) +q=A.bm(A.ad(h.sqlite)) +s=s.a(h.port) +p=A.oF(B.aU,A.ad(h.storage)) +o=A.ad(h.database) +n=t.A.a(h.initPort) +m=r.c +l=m<2||A.bN(h.migrations) +s=new A.dh(q,s,p,o,n,r,l,m<3||A.bN(h.new_serialization)) +break $label0$0}if("StartFileSystemServer"===i){s=new A.eH(t.m.a(h)) +break $label0$0}if("RequestCompatibilityCheck"===i){s=new A.df(A.ad(h)) +break $label0$0}if("DedicatedWorkerCompatibilityResult"===i){t.m.a(h) +k=A.d([],t.L) +if("existing" in h)B.c.aH(k,A.pY(t.c.a(h.existing))) +s=A.bN(h.supportsNestedWorkers) +q=A.bN(h.canAccessOpfs) +p=A.bN(h.supportsSharedArrayBuffers) +o=A.bN(h.supportsIndexedDb) +n=A.bN(h.indexedDbExists) +m=A.bN(h.opfsExists) +m=new A.ee(s,q,p,o,k,A.qk(h),n,m) +s=m +break $label0$0}if("SharedWorkerCompatibilityResult"===i){s=t.c +s.a(h) +j=B.c.b7(h,t.y) +if(h.length>5){k=A.pY(s.a(h[5])) +r=h.length>6?A.ql(A.h(A.r(h[6]))):B.u}else{k=B.C +r=B.u}s=j.a +q=J.V(s) +p=j.$ti.y[1] +s=new A.c8(p.a(q.i(s,0)),p.a(q.i(s,1)),p.a(q.i(s,2)),k,r,p.a(q.i(s,3)),p.a(q.i(s,4))) +break $label0$0}if("DeleteDatabase"===i){s=h==null?t.K.a(h):h +t.c.a(s) +q=$.pF().i(0,A.ad(s[0])) +q.toString +s=new A.fZ(new A.ak(q,A.ad(s[1]))) +break $label0$0}s=A.B(A.K("Unknown type "+i,null))}return s}, +pY(a){var s,r,q=A.d([],t.L),p=B.c.b7(a,t.m),o=p.$ti +p=new A.b0(p,p.gl(0),o.h("b0")) +o=o.h("x.E") +for(;p.k();){s=p.d +if(s==null)s=o.a(s) +r=$.pF().i(0,A.ad(s.l)) +r.toString +q.push(new A.ak(r,A.ad(s.n)))}return q}, +pX(a){var s,r,q,p,o=A.d([],t.W) +for(s=a.length,r=0;r"))) +for(;i.k();){l=i.gm() +if(J.a4(l.name,a)){q=!0 +s=1 +break $async$outer}}q=!1 +s=1 +break +case 8:k=n.open(a,1) +k.onupgradeneeded=A.aV(new A.od(g,k)) +s=10 +return A.c(A.jl(k,i),$async$dZ) +case 10:j=c +if(g.a==null)g.a=!0 +j.close() +s=g.a===!1?11:12 +break +case 11:s=13 +return A.c(A.jl(n.deleteDatabase(a),t.X),$async$dZ) +case 13:case 12:p=2 +s=6 +break +case 4:p=3 +f=o +s=6 +break +case 3:s=2 +break +case 6:i=g.a +q=i===!0 +s=1 +break +case 1:return A.m(q,r) +case 2:return A.l(o,r)}}) +return A.n($async$dZ,r)}, +og(a){var s=0,r=A.o(t.H),q,p +var $async$og=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:q=t.m +p=q.a(self) +s="indexedDB" in p?2:3 +break +case 2:s=4 +return A.c(A.jl(q.a(p.indexedDB).deleteDatabase(a),t.X),$async$og) +case 4:case 3:return A.m(null,r)}}) +return A.n($async$og,r)}, +e0(){var s=0,r=A.o(t.u),q,p=2,o,n=[],m,l,k,j,i,h,g,f,e +var $async$e0=A.p(function(a,b){if(a===1){o=b +s=p}while(true)switch(s){case 0:f=A.pn() +if(f==null){q=B.r +s=1 +break}i=t.m +s=3 +return A.c(A.a_(f.getDirectory(),i),$async$e0) +case 3:m=b +p=5 +s=8 +return A.c(A.a_(m.getDirectoryHandle("drift_db"),i),$async$e0) +case 8:m=b +p=2 +s=7 +break +case 5:p=4 +e=o +q=B.r +s=1 +break +s=7 +break +case 4:s=2 +break +case 7:i=m +g=t.cO +if(!(self.Symbol.asyncIterator in i))A.B(A.K("Target object does not implement the async iterable interface",null)) +l=new A.f7(new A.os(),new A.e5(i,g),g.h("f7")) +k=A.d([],t.s) +i=new A.dL(A.cR(l,"stream",t.K)) +p=9 +case 12:s=14 +return A.c(i.k(),$async$e0) +case 14:if(!b){s=13 +break}j=i.gm() +if(J.a4(j.kind,"directory"))J.oB(k,j.name) +s=12 +break +case 13:n.push(11) +s=10 +break +case 9:n=[2] +case 10:p=2 +s=15 +return A.c(i.J(),$async$e0) +case 15:s=n.pop() +break +case 11:q=k +s=1 +break +case 1:return A.m(q,r) +case 2:return A.l(o,r)}}) +return A.n($async$e0,r)}, +fy(a){return A.xe(a)}, +xe(a){var s=0,r=A.o(t.H),q,p=2,o,n,m,l,k,j +var $async$fy=A.p(function(b,c){if(b===1){o=c +s=p}while(true)switch(s){case 0:k=A.pn() +if(k==null){s=1 +break}m=t.m +s=3 +return A.c(A.a_(k.getDirectory(),m),$async$fy) +case 3:n=c +p=5 +s=8 +return A.c(A.a_(n.getDirectoryHandle("drift_db"),m),$async$fy) +case 8:n=c +s=9 +return A.c(A.a_(n.removeEntry(a,{recursive:!0}),t.X),$async$fy) +case 9:p=2 +s=7 +break +case 5:p=4 +j=o +s=7 +break +case 4:s=2 +break +case 7:case 1:return A.m(q,r) +case 2:return A.l(o,r)}}) +return A.n($async$fy,r)}, +jl(a,b){var s=new A.k($.j,b.h("k<0>")),r=new A.a9(s,b.h("a9<0>")) +A.aC(a,"success",new A.jo(r,a,b),!1) +A.aC(a,"error",new A.jp(r,a),!1) +A.aC(a,"blocked",new A.jq(r,a),!1) +return s}, +od:function od(a,b){this.a=a +this.b=b}, +os:function os(){}, +h1:function h1(a,b){this.a=a +this.b=b}, +jR:function jR(a,b){this.a=a +this.b=b}, +jO:function jO(a){this.a=a}, +jN:function jN(a){this.a=a}, +jP:function jP(a,b,c){this.a=a +this.b=b +this.c=c}, +jQ:function jQ(a,b,c){this.a=a +this.b=b +this.c=c}, +mg:function mg(a,b){this.a=a +this.b=b}, +dg:function dg(a,b,c){var _=this +_.a=a +_.b=b +_.c=0 +_.d=c}, +kK:function kK(a){this.a=a}, +lx:function lx(a,b){this.a=a +this.b=b}, +jo:function jo(a,b,c){this.a=a +this.b=b +this.c=c}, +jp:function jp(a,b){this.a=a +this.b=b}, +jq:function jq(a,b){this.a=a +this.b=b}, +kU:function kU(a,b){this.a=a +this.b=null +this.c=b}, +kZ:function kZ(a){this.a=a}, +kV:function kV(a,b){this.a=a +this.b=b}, +kY:function kY(a,b,c){this.a=a +this.b=b +this.c=c}, +kW:function kW(a){this.a=a}, +kX:function kX(a,b,c){this.a=a +this.b=b +this.c=c}, +cc:function cc(a,b){this.a=a +this.b=b}, +bL:function bL(a,b){this.a=a +this.b=b}, +hZ:function hZ(a,b,c,d,e){var _=this +_.e=a +_.f=null +_.r=b +_.w=c +_.x=d +_.a=e +_.b=0 +_.d=_.c=!1}, +nU:function nU(a,b,c,d,e,f,g){var _=this +_.Q=a +_.as=b +_.at=c +_.b=null +_.d=_.c=!1 +_.e=d +_.f=e +_.r=f +_.x=g +_.y=$ +_.a=!1}, +ju(a,b){if(a==null)a="." +return new A.fU(b,a)}, +pm(a){return a}, +rF(a,b){var s,r,q,p,o,n,m,l +for(s=b.length,r=1;r=1;s=q){q=s-1 +if(b[q]!=null)break}p=new A.ax("") +o=""+(a+"(") +p.a=o +n=A.Q(b) +m=n.h("cB<1>") +l=new A.cB(b,0,s,m) +l.hU(b,0,s,n.c) +m=o+new A.E(l,new A.ob(),m.h("E")).aq(0,", ") +p.a=m +p.a=m+("): part "+(r-1)+" was null, but part "+r+" was not.") +throw A.a(A.K(p.j(0),null))}}, +fU:function fU(a,b){this.a=a +this.b=b}, +jv:function jv(){}, +jw:function jw(){}, +ob:function ob(){}, +dG:function dG(a){this.a=a}, +dH:function dH(a){this.a=a}, +kg:function kg(){}, +d9(a,b){var s,r,q,p,o,n=b.hA(a) +b.ab(a) +if(n!=null)a=B.a.L(a,n.length) +s=t.s +r=A.d([],s) +q=A.d([],s) +s=a.length +if(s!==0&&b.D(a.charCodeAt(0))){q.push(a[0]) +p=1}else{q.push("") +p=0}for(o=p;o")),r=new A.a9(s,b.h("a9<0>")) +A.aC(a,"success",new A.jm(r,a,b),!1) +A.aC(a,"error",new A.jn(r,a),!1) +return s}, +u8(a,b){var s=new A.k($.j,b.h("k<0>")),r=new A.a9(s,b.h("a9<0>")) +A.aC(a,"success",new A.jr(r,a,b),!1) +A.aC(a,"error",new A.js(r,a),!1) +A.aC(a,"blocked",new A.jt(r,a),!1) +return s}, +cH:function cH(a,b){var _=this +_.c=_.b=_.a=null +_.d=a +_.$ti=b}, +mh:function mh(a,b){this.a=a +this.b=b}, +mi:function mi(a,b){this.a=a +this.b=b}, +jm:function jm(a,b,c){this.a=a +this.b=b +this.c=c}, +jn:function jn(a,b){this.a=a +this.b=b}, +jr:function jr(a,b,c){this.a=a +this.b=b +this.c=c}, +js:function js(a,b){this.a=a +this.b=b}, +jt:function jt(a,b){this.a=a +this.b=b}, +lD(a,b){var s=0,r=A.o(t.g9),q,p,o,n,m,l +var $async$lD=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:l={} +b.aa(0,new A.lF(l)) +p=t.m +s=3 +return A.c(A.a_(self.WebAssembly.instantiateStreaming(a,l),p),$async$lD) +case 3:o=d +n=o.instance.exports +if("_initialize" in n)t.g.a(n._initialize).call() +m=t.N +p=new A.i0(A.a2(m,t.g),A.a2(m,p)) +p.hV(o.instance) +q=p +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$lD,r)}, +i0:function i0(a,b){this.a=a +this.b=b}, +lF:function lF(a){this.a=a}, +lE:function lE(a){this.a=a}, +lH(a){var s=0,r=A.o(t.ab),q,p,o +var $async$lH=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:p=a.ghb()?new self.URL(a.j(0)):new self.URL(a.j(0),A.eM().j(0)) +o=A +s=3 +return A.c(A.a_(self.fetch(p,null),t.m),$async$lH) +case 3:q=o.lG(c) +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$lH,r)}, +lG(a){var s=0,r=A.o(t.ab),q,p,o +var $async$lG=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:p=A +o=A +s=3 +return A.c(A.lw(a),$async$lG) +case 3:q=new p.i1(new o.lI(c)) +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$lG,r)}, +i1:function i1(a){this.a=a}, +dr:function dr(a,b,c,d,e){var _=this +_.d=a +_.e=b +_.r=c +_.b=d +_.a=e}, +i_:function i_(a,b){this.a=a +this.b=b +this.c=0}, +qo(a){var s +if(!J.a4(a.byteLength,8))throw A.a(A.K("Must be 8 in length",null)) +s=self.Int32Array +return new A.kJ(t.ha.a(A.dY(s,[a])))}, +uz(a){return B.h}, +uA(a){var s=a.b +return new A.S(s.getInt32(0,!1),s.getInt32(4,!1),s.getInt32(8,!1))}, +uB(a){var s=a.b +return new A.aR(B.j.cV(A.oS(a.a,16,s.getInt32(12,!1))),s.getInt32(0,!1),s.getInt32(4,!1),s.getInt32(8,!1))}, +kJ:function kJ(a){this.b=a}, +bj:function bj(a,b,c){this.a=a +this.b=b +this.c=c}, +ac:function ac(a,b,c,d,e){var _=this +_.c=a +_.d=b +_.a=c +_.b=d +_.$ti=e}, +bx:function bx(){}, +aZ:function aZ(){}, +S:function S(a,b,c){this.a=a +this.b=b +this.c=c}, +aR:function aR(a,b,c,d){var _=this +_.d=a +_.a=b +_.b=c +_.c=d}, +hX(a){var s=0,r=A.o(t.ei),q,p,o,n,m,l,k,j,i +var $async$hX=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:k=t.m +s=3 +return A.c(A.a_(A.pA().getDirectory(),k),$async$hX) +case 3:j=c +i=$.fE().aO(0,a.root) +p=i.length,o=0 +case 4:if(!(o")),A.xW(),r.h("aA<1,a1>")),t.a))}if(!B.a.K(a,q))return new A.bg(A.aG(A.d([A.qA(a)],t.J),t.a)) +return new A.bg(A.aG(new A.E(A.d(a.split(q),t.s),A.xV(),t.fe),t.a))}, +bg:function bg(a){this.a=a}, +jc:function jc(){}, +jh:function jh(){}, +jg:function jg(){}, +je:function je(){}, +jf:function jf(a){this.a=a}, +jd:function jd(a){this.a=a}, +um(a){return A.q0(a)}, +q0(a){return A.h8(a,new A.k2(a))}, +ul(a){return A.ui(a)}, +ui(a){return A.h8(a,new A.k0(a))}, +uf(a){return A.h8(a,new A.jY(a))}, +uj(a){return A.ug(a)}, +ug(a){return A.h8(a,new A.jZ(a))}, +uk(a){return A.uh(a)}, +uh(a){return A.h8(a,new A.k_(a))}, +h9(a){if(B.a.K(a,$.t1()))return A.bm(a) +else if(B.a.K(a,$.t2()))return A.r6(a,!0) +else if(B.a.u(a,"/"))return A.r6(a,!1) +if(B.a.K(a,"\\"))return $.tL().ht(a) +return A.bm(a)}, +h8(a,b){var s,r +try{s=b.$0() +return s}catch(r){if(A.F(r) instanceof A.bs)return new A.bl(A.al(null,"unparsed",null,null),a) +else throw r}}, +N:function N(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.d=d}, +k2:function k2(a){this.a=a}, +k0:function k0(a){this.a=a}, +k1:function k1(a){this.a=a}, +jY:function jY(a){this.a=a}, +jZ:function jZ(a){this.a=a}, +k_:function k_(a){this.a=a}, +hk:function hk(a){this.a=a +this.b=$}, +qz(a){if(t.a.b(a))return a +if(a instanceof A.bg)return a.hs() +return new A.hk(new A.li(a))}, +qA(a){var s,r,q +try{if(a.length===0){r=A.qw(A.d([],t.e),null) +return r}if(B.a.K(a,$.tE())){r=A.uY(a) +return r}if(B.a.K(a,"\tat ")){r=A.uX(a) +return r}if(B.a.K(a,$.tu())||B.a.K(a,$.ts())){r=A.uW(a) +return r}if(B.a.K(a,u.q)){r=A.u2(a).hs() +return r}if(B.a.K(a,$.tx())){r=A.qx(a) +return r}r=A.qy(a) +return r}catch(q){r=A.F(q) +if(r instanceof A.bs){s=r +throw A.a(A.aj(s.a+"\nStack trace:\n"+a,null,null))}else throw q}}, +v_(a){return A.qy(a)}, +qy(a){var s=A.aG(A.v0(a),t.B) +return new A.a1(s)}, +v0(a){var s,r=B.a.eN(a),q=$.pJ(),p=t.U,o=new A.aU(A.d(A.bd(r,q,"").split("\n"),t.s),new A.lj(),p) +if(!o.gt(0).k())return A.d([],t.e) +r=A.oW(o,o.gl(0)-1,p.h("f.E")) +r=A.es(r,A.xk(),A.t(r).h("f.E"),t.B) +s=A.aw(r,!0,A.t(r).h("f.E")) +if(!J.tR(o.gC(0),".da"))B.c.v(s,A.q0(o.gC(0))) +return s}, +uY(a){var s=A.b5(A.d(a.split("\n"),t.s),1,null,t.N).hM(0,new A.lh()),r=t.B +r=A.aG(A.es(s,A.rM(),s.$ti.h("f.E"),r),r) +return new A.a1(r)}, +uX(a){var s=A.aG(new A.aA(new A.aU(A.d(a.split("\n"),t.s),new A.lg(),t.U),A.rM(),t.M),t.B) +return new A.a1(s)}, +uW(a){var s=A.aG(new A.aA(new A.aU(A.d(B.a.eN(a).split("\n"),t.s),new A.le(),t.U),A.xi(),t.M),t.B) +return new A.a1(s)}, +uZ(a){return A.qx(a)}, +qx(a){var s=a.length===0?A.d([],t.e):new A.aA(new A.aU(A.d(B.a.eN(a).split("\n"),t.s),new A.lf(),t.U),A.xj(),t.M) +s=A.aG(s,t.B) +return new A.a1(s)}, +qw(a,b){var s=A.aG(a,t.B) +return new A.a1(s)}, +a1:function a1(a){this.a=a}, +li:function li(a){this.a=a}, +lj:function lj(){}, +lh:function lh(){}, +lg:function lg(){}, +le:function le(){}, +lf:function lf(){}, +ll:function ll(){}, +lk:function lk(a){this.a=a}, +bl:function bl(a,b){this.a=a +this.w=b}, +ea:function ea(a){var _=this +_.b=_.a=$ +_.c=null +_.d=!1 +_.$ti=a}, +eW:function eW(a,b,c){this.a=a +this.b=b +this.$ti=c}, +eV:function eV(a,b){this.b=a +this.a=b}, +q3(a,b,c,d){var s,r={} +r.a=a +s=new A.ek(d.h("ek<0>")) +s.hS(b,!0,r,d) +return s}, +ek:function ek(a){var _=this +_.b=_.a=$ +_.c=null +_.d=!1 +_.$ti=a}, +k9:function k9(a,b){this.a=a +this.b=b}, +k8:function k8(a){this.a=a}, +f4:function f4(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.e=_.d=!1 +_.r=_.f=null +_.w=d}, +hJ:function hJ(a){this.b=this.a=$ +this.$ti=a}, +eI:function eI(){}, +bH:function bH(){}, +ir:function ir(){}, +bI:function bI(a,b){this.a=a +this.b=b}, +aC(a,b,c,d){var s +if(c==null)s=null +else{s=A.rG(new A.mp(c),t.m) +s=s==null?null:A.aV(s)}s=new A.ij(a,b,s,!1) +s.e4() +return s}, +rG(a,b){var s=$.j +if(s===B.d)return a +return s.eh(a,b)}, +oG:function oG(a,b){this.a=a +this.$ti=b}, +f0:function f0(a,b,c,d){var _=this +_.a=a +_.b=b +_.c=c +_.$ti=d}, +ij:function ij(a,b,c,d){var _=this +_.a=0 +_.b=a +_.c=b +_.d=c +_.e=d}, +mp:function mp(a){this.a=a}, +mq:function mq(a){this.a=a}, +pz(a){if(typeof dartPrint=="function"){dartPrint(a) +return}if(typeof console=="object"&&typeof console.log!="undefined"){console.log(a) +return}if(typeof print=="function"){print(a) +return}throw"Unable to print message: "+String(a)}, +ux(a){return a}, +kh(a,b){var s,r,q,p,o,n +if(b.length===0)return!1 +s=b.split(".") +r=t.m.a(self) +for(q=s.length,p=t.A,o=0;o=65&&a<=90))s=a>=97&&a<=122 +else s=!0 +return s}, +rL(a,b){var s,r,q=null,p=a.length,o=b+2 +if(p0)throw A.a(A.jU("BigInt value exceeds the range of 64 bits")) +return a}, +oJ(a,b){var s,r +for(s=b,r=0;r<16;++r)s+=A.aB("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012346789".charCodeAt(a.hg(61))) +return s.charCodeAt(0)==0?s:s}, +hz(a){var s=0,r=A.o(t.dI),q +var $async$hz=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:s=3 +return A.c(A.a_(a.arrayBuffer(),t.o),$async$hz) +case 3:q=c +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$hz,r)}, +qr(a,b,c){var s=self.DataView,r=[a] +r.push(b) +r.push(c) +return t.gT.a(A.dY(s,r))}, +oS(a,b,c){var s=self.Uint8Array,r=[a] +r.push(b) +r.push(c) +return t.Z.a(A.dY(s,r))}, +u_(a,b){self.Atomics.notify(a,b,1/0)}, +pA(){var s=self.navigator +if("storage" in s)return s.storage +return null}, +jV(a,b,c){return a.read(b,c)}, +oH(a,b,c){return a.write(b,c)}, +q_(a,b){return A.a_(a.removeEntry(b,{recursive:!1}),t.X)}, +xy(){var s=t.m.a(self) +if(A.kh(s,"DedicatedWorkerGlobalScope"))new A.jE(s,new A.bi(),new A.h1(A.a2(t.N,t.fE),null)).T() +else if(A.kh(s,"SharedWorkerGlobalScope"))new A.kU(s,new A.h1(A.a2(t.N,t.fE),null)).T()}},B={} +var w=[A,J,B] +var $={} +A.oN.prototype={} +J.he.prototype={ +W(a,b){return a===b}, +gB(a){return A.eA(a)}, +j(a){return"Instance of '"+A.kz(a)+"'"}, +gV(a){return A.bS(A.pk(this))}} +J.hf.prototype={ +j(a){return String(a)}, +gB(a){return a?519018:218159}, +gV(a){return A.bS(t.y)}, +$iL:1, +$iU:1} +J.ep.prototype={ +W(a,b){return null==b}, +j(a){return"null"}, +gB(a){return 0}, +$iL:1, +$iH:1} +J.eq.prototype={$iA:1} +J.c0.prototype={ +gB(a){return 0}, +j(a){return String(a)}} +J.hy.prototype={} +J.cD.prototype={} +J.bu.prototype={ +j(a){var s=a[$.e1()] +if(s==null)return this.hN(a) +return"JavaScript function for "+J.aW(s)}} +J.aP.prototype={ +gB(a){return 0}, +j(a){return String(a)}} +J.d5.prototype={ +gB(a){return 0}, +j(a){return String(a)}} +J.w.prototype={ +b7(a,b){return new A.ai(a,A.Q(a).h("@<1>").H(b).h("ai<1,2>"))}, +v(a,b){a.$flags&1&&A.z(a,29) +a.push(b)}, +d7(a,b){var s +a.$flags&1&&A.z(a,"removeAt",1) +s=a.length +if(b>=s)throw A.a(A.kE(b,null)) +return a.splice(b,1)[0]}, +d_(a,b,c){var s +a.$flags&1&&A.z(a,"insert",2) +s=a.length +if(b>s)throw A.a(A.kE(b,null)) +a.splice(b,0,c)}, +ew(a,b,c){var s,r +a.$flags&1&&A.z(a,"insertAll",2) +A.qn(b,0,a.length,"index") +if(!t.Q.b(c))c=J.j3(c) +s=J.ae(c) +a.length=a.length+s +r=b+s +this.N(a,r,a.length,a,b) +this.ae(a,b,r,c)}, +hm(a){a.$flags&1&&A.z(a,"removeLast",1) +if(a.length===0)throw A.a(A.e_(a,-1)) +return a.pop()}, +A(a,b){var s +a.$flags&1&&A.z(a,"remove",1) +for(s=0;s").H(c).h("E<1,2>"))}, +aq(a,b){var s,r=A.b1(a.length,"",!1,t.N) +for(s=0;ss)throw A.a(A.X(b,0,s,"start",null)) +if(cs)throw A.a(A.X(c,b,s,"end",null)) +if(b===c)return A.d([],A.Q(a)) +return A.d(a.slice(b,c),A.Q(a))}, +cq(a,b,c){A.bb(b,c,a.length) +return A.b5(a,b,c,A.Q(a).c)}, +gG(a){if(a.length>0)return a[0] +throw A.a(A.am())}, +gC(a){var s=a.length +if(s>0)return a[s-1] +throw A.a(A.am())}, +N(a,b,c,d,e){var s,r,q,p,o +a.$flags&2&&A.z(a,5) +A.bb(b,c,a.length) +s=c-b +if(s===0)return +A.ab(e,"skipCount") +if(t.j.b(d)){r=d +q=e}else{r=J.e3(d,e).az(0,!1) +q=0}p=J.V(r) +if(q+s>p.gl(r))throw A.a(A.q6()) +if(q=0;--o)a[b+o]=p.i(r,q+o) +else for(o=0;o0){a[0]=q +a[1]=r}return}p=0 +if(A.Q(a).c.b(null))for(o=0;o0)this.j3(a,p)}, +hH(a){return this.hI(a,null)}, +j3(a,b){var s,r=a.length +for(;s=r-1,r>0;r=s)if(a[s]===null){a[s]=void 0;--b +if(b===0)break}}, +d2(a,b){var s,r=a.length,q=r-1 +if(q<0)return-1 +q>=r +for(s=q;s>=0;--s)if(J.a4(a[s],b))return s +return-1}, +gF(a){return a.length===0}, +j(a){return A.oL(a,"[","]")}, +az(a,b){var s=A.d(a.slice(0),A.Q(a)) +return s}, +cl(a){return this.az(a,!0)}, +gt(a){return new J.fH(a,a.length,A.Q(a).h("fH<1>"))}, +gB(a){return A.eA(a)}, +gl(a){return a.length}, +i(a,b){if(!(b>=0&&b=0&&b=p){r.d=null +return!1}r.d=q[s] +r.c=s+1 +return!0}} +J.d4.prototype={ +ah(a,b){var s +if(ab)return 1 +else if(a===b){if(a===0){s=this.gez(b) +if(this.gez(a)===s)return 0 +if(this.gez(a))return-1 +return 1}return 0}else if(isNaN(a)){if(isNaN(b))return 0 +return 1}else return-1}, +gez(a){return a===0?1/a<0:a<0}, +kQ(a){var s +if(a>=-2147483648&&a<=2147483647)return a|0 +if(isFinite(a)){s=a<0?Math.ceil(a):Math.floor(a) +return s+0}throw A.a(A.a3(""+a+".toInt()"))}, +jN(a){var s,r +if(a>=0){if(a<=2147483647){s=a|0 +return a===s?s:s+1}}else if(a>=-2147483648)return a|0 +r=Math.ceil(a) +if(isFinite(r))return r +throw A.a(A.a3(""+a+".ceil()"))}, +j(a){if(a===0&&1/a<0)return"-0.0" +else return""+a}, +gB(a){var s,r,q,p,o=a|0 +if(a===o)return o&536870911 +s=Math.abs(a) +r=Math.log(s)/0.6931471805599453|0 +q=Math.pow(2,r) +p=s<1?s/q:q/s +return((p*9007199254740992|0)+(p*3542243181176521|0))*599197+r*1259&536870911}, +aA(a,b){var s=a%b +if(s===0)return 0 +if(s>0)return s +return s+b}, +eY(a,b){if((a|0)===a)if(b>=1||b<-1)return a/b|0 +return this.fM(a,b)}, +I(a,b){return(a|0)===a?a/b|0:this.fM(a,b)}, +fM(a,b){var s=a/b +if(s>=-2147483648&&s<=2147483647)return s|0 +if(s>0){if(s!==1/0)return Math.floor(s)}else if(s>-1/0)return Math.ceil(s) +throw A.a(A.a3("Result of truncating division is "+A.v(s)+": "+A.v(a)+" ~/ "+b))}, +b0(a,b){if(b<0)throw A.a(A.dX(b)) +return b>31?0:a<>>0}, +bl(a,b){var s +if(b<0)throw A.a(A.dX(b)) +if(a>0)s=this.e3(a,b) +else{s=b>31?31:b +s=a>>s>>>0}return s}, +O(a,b){var s +if(a>0)s=this.e3(a,b) +else{s=b>31?31:b +s=a>>s>>>0}return s}, +ji(a,b){if(0>b)throw A.a(A.dX(b)) +return this.e3(a,b)}, +e3(a,b){return b>31?0:a>>>b}, +gV(a){return A.bS(t.E)}, +$iI:1, +$ib7:1} +J.eo.prototype={ +gfY(a){var s,r=a<0?-a-1:a,q=r +for(s=32;q>=4294967296;){q=this.I(q,4294967296) +s+=32}return s-Math.clz32(q)}, +gV(a){return A.bS(t.S)}, +$iL:1, +$ib:1} +J.hg.prototype={ +gV(a){return A.bS(t.i)}, +$iL:1} +J.bZ.prototype={ +jP(a,b){if(b<0)throw A.a(A.e_(a,b)) +if(b>=a.length)A.B(A.e_(a,b)) +return a.charCodeAt(b)}, +cO(a,b,c){var s=b.length +if(c>s)throw A.a(A.X(c,0,s,null,null)) +return new A.iH(b,a,c)}, +ee(a,b){return this.cO(a,b,0)}, +he(a,b,c){var s,r,q=null +if(c<0||c>b.length)throw A.a(A.X(c,0,b.length,q,q)) +s=a.length +if(c+s>b.length)return q +for(r=0;rr)return!1 +return b===this.L(a,r-s)}, +hp(a,b,c){A.qn(0,0,a.length,"startIndex") +return A.xR(a,b,c,0)}, +aO(a,b){var s,r +if(typeof b=="string")return A.d(a.split(b),t.s) +else{if(b instanceof A.cv){s=b.gfp() +s.lastIndex=0 +r=s.exec("").length-2===0}else r=!1 +if(r)return A.d(a.split(b.b),t.s) +else return this.ig(a,b)}}, +aM(a,b,c,d){var s=A.bb(b,c,a.length) +return A.pB(a,b,s,d)}, +ig(a,b){var s,r,q,p,o,n,m=A.d([],t.s) +for(s=J.oC(b,a),s=s.gt(s),r=0,q=1;s.k();){p=s.gm() +o=p.gcs() +n=p.gbB() +q=n-o +if(q===0&&r===o)continue +m.push(this.n(a,r,o)) +r=n}if(r0)m.push(this.L(a,r)) +return m}, +E(a,b,c){var s +if(c<0||c>a.length)throw A.a(A.X(c,0,a.length,null,null)) +if(typeof b=="string"){s=c+b.length +if(s>a.length)return!1 +return b===a.substring(c,s)}return J.tU(b,a,c)!=null}, +u(a,b){return this.E(a,b,0)}, +n(a,b,c){return a.substring(b,A.bb(b,c,a.length))}, +L(a,b){return this.n(a,b,null)}, +eN(a){var s,r,q,p=a.trim(),o=p.length +if(o===0)return p +if(p.charCodeAt(0)===133){s=J.ut(p,1) +if(s===o)return""}else s=0 +r=o-1 +q=p.charCodeAt(r)===133?J.uu(p,r):o +if(s===0&&q===o)return p +return p.substring(s,q)}, +bK(a,b){var s,r +if(0>=b)return"" +if(b===1||a.length===0)return a +if(b!==b>>>0)throw A.a(B.aC) +for(s=a,r="";!0;){if((b&1)===1)r=s+r +b=b>>>1 +if(b===0)break +s+=s}return r}, +kx(a,b,c){var s=b-a.length +if(s<=0)return a +return this.bK(c,s)+a}, +hh(a,b){var s=b-a.length +if(s<=0)return a +return a+this.bK(" ",s)}, +aV(a,b,c){var s +if(c<0||c>a.length)throw A.a(A.X(c,0,a.length,null,null)) +s=a.indexOf(b,c) +return s}, +ki(a,b){return this.aV(a,b,0)}, +hd(a,b,c){var s,r +if(c==null)c=a.length +else if(c<0||c>a.length)throw A.a(A.X(c,0,a.length,null,null)) +s=b.length +r=a.length +if(c+s>r)c=r-s +return a.lastIndexOf(b,c)}, +d2(a,b){return this.hd(a,b,null)}, +K(a,b){return A.xN(a,b,0)}, +ah(a,b){var s +if(a===b)s=0 +else s=a>6}r=r+((r&67108863)<<3)&536870911 +r^=r>>11 +return r+((r&16383)<<15)&536870911}, +gV(a){return A.bS(t.N)}, +gl(a){return a.length}, +i(a,b){if(!(b>=0&&b"))}, +gl(a){return J.ae(this.gan())}, +gF(a){return J.j0(this.gan())}, +Y(a,b){var s=A.t(this) +return A.e9(J.e3(this.gan(),b),s.c,s.y[1])}, +ai(a,b){var s=A.t(this) +return A.e9(J.j2(this.gan(),b),s.c,s.y[1])}, +M(a,b){return A.t(this).y[1].a(J.fF(this.gan(),b))}, +gG(a){return A.t(this).y[1].a(J.fG(this.gan()))}, +gC(a){return A.t(this).y[1].a(J.j1(this.gan()))}, +j(a){return J.aW(this.gan())}} +A.fR.prototype={ +k(){return this.a.k()}, +gm(){return this.$ti.y[1].a(this.a.gm())}} +A.cn.prototype={ +gan(){return this.a}} +A.eZ.prototype={$iu:1} +A.eU.prototype={ +i(a,b){return this.$ti.y[1].a(J.aO(this.a,b))}, +q(a,b,c){J.pK(this.a,b,this.$ti.c.a(c))}, +cq(a,b,c){var s=this.$ti +return A.e9(J.tT(this.a,b,c),s.c,s.y[1])}, +N(a,b,c,d,e){var s=this.$ti +J.tV(this.a,b,c,A.e9(d,s.y[1],s.c),e)}, +ae(a,b,c,d){return this.N(0,b,c,d,0)}, +$iu:1, +$iq:1} +A.ai.prototype={ +b7(a,b){return new A.ai(this.a,this.$ti.h("@<1>").H(b).h("ai<1,2>"))}, +gan(){return this.a}} +A.c_.prototype={ +j(a){return"LateInitializationError: "+this.a}} +A.eb.prototype={ +gl(a){return this.a.length}, +i(a,b){return this.a.charCodeAt(b)}} +A.or.prototype={ +$0(){return A.b_(null,t.H)}, +$S:2} +A.kL.prototype={} +A.u.prototype={} +A.P.prototype={ +gt(a){var s=this +return new A.b0(s,s.gl(s),A.t(s).h("b0"))}, +gF(a){return this.gl(this)===0}, +gG(a){if(this.gl(this)===0)throw A.a(A.am()) +return this.M(0,0)}, +gC(a){var s=this +if(s.gl(s)===0)throw A.a(A.am()) +return s.M(0,s.gl(s)-1)}, +aq(a,b){var s,r,q,p=this,o=p.gl(p) +if(b.length!==0){if(o===0)return"" +s=A.v(p.M(0,0)) +if(o!==p.gl(p))throw A.a(A.az(p)) +for(r=s,q=1;q").H(c).h("E<1,2>"))}, +kg(a,b,c){var s,r,q=this,p=q.gl(q) +for(s=b,r=0;rs)throw A.a(A.X(r,0,s,"start",null))}}, +gio(){var s=J.ae(this.a),r=this.c +if(r==null||r>s)return s +return r}, +gjn(){var s=J.ae(this.a),r=this.b +if(r>s)return s +return r}, +gl(a){var s,r=J.ae(this.a),q=this.b +if(q>=r)return 0 +s=this.c +if(s==null||s>=r)return r-q +return s-q}, +M(a,b){var s=this,r=s.gjn()+b +if(b<0||r>=s.gio())throw A.a(A.hb(b,s.gl(0),s,null,"index")) +return J.fF(s.a,r)}, +Y(a,b){var s,r,q=this +A.ab(b,"count") +s=q.b+b +r=q.c +if(r!=null&&s>=r)return new A.ct(q.$ti.h("ct<1>")) +return A.b5(q.a,s,r,q.$ti.c)}, +ai(a,b){var s,r,q,p=this +A.ab(b,"count") +s=p.c +r=p.b +q=r+b +if(s==null)return A.b5(p.a,r,q,p.$ti.c) +else{if(s=o){r.d=null +return!1}r.d=p.M(q,s);++r.c +return!0}} +A.aA.prototype={ +gt(a){return new A.b2(J.M(this.a),this.b,A.t(this).h("b2<1,2>"))}, +gl(a){return J.ae(this.a)}, +gF(a){return J.j0(this.a)}, +gG(a){return this.b.$1(J.fG(this.a))}, +gC(a){return this.b.$1(J.j1(this.a))}, +M(a,b){return this.b.$1(J.fF(this.a,b))}} +A.cs.prototype={$iu:1} +A.b2.prototype={ +k(){var s=this,r=s.b +if(r.k()){s.a=s.c.$1(r.gm()) +return!0}s.a=null +return!1}, +gm(){var s=this.a +return s==null?this.$ti.y[1].a(s):s}} +A.E.prototype={ +gl(a){return J.ae(this.a)}, +M(a,b){return this.b.$1(J.fF(this.a,b))}} +A.aU.prototype={ +gt(a){return new A.eO(J.M(this.a),this.b)}, +bc(a,b,c){return new A.aA(this,b,this.$ti.h("@<1>").H(c).h("aA<1,2>"))}} +A.eO.prototype={ +k(){var s,r +for(s=this.a,r=this.b;s.k();)if(r.$1(s.gm()))return!0 +return!1}, +gm(){return this.a.gm()}} +A.ei.prototype={ +gt(a){return new A.h5(J.M(this.a),this.b,B.a1,this.$ti.h("h5<1,2>"))}} +A.h5.prototype={ +gm(){var s=this.d +return s==null?this.$ti.y[1].a(s):s}, +k(){var s,r,q=this,p=q.c +if(p==null)return!1 +for(s=q.a,r=q.b;!p.k();){q.d=null +if(s.k()){q.c=null +p=J.M(r.$1(s.gm())) +q.c=p}else return!1}q.d=q.c.gm() +return!0}} +A.cC.prototype={ +gt(a){return new A.hM(J.M(this.a),this.b,A.t(this).h("hM<1>"))}} +A.eg.prototype={ +gl(a){var s=J.ae(this.a),r=this.b +if(s>r)return r +return s}, +$iu:1} +A.hM.prototype={ +k(){if(--this.b>=0)return this.a.k() +this.b=-1 +return!1}, +gm(){if(this.b<0){this.$ti.c.a(null) +return null}return this.a.gm()}} +A.bD.prototype={ +Y(a,b){A.bV(b,"count") +A.ab(b,"count") +return new A.bD(this.a,this.b+b,A.t(this).h("bD<1>"))}, +gt(a){return new A.hG(J.M(this.a),this.b)}} +A.d0.prototype={ +gl(a){var s=J.ae(this.a)-this.b +if(s>=0)return s +return 0}, +Y(a,b){A.bV(b,"count") +A.ab(b,"count") +return new A.d0(this.a,this.b+b,this.$ti)}, +$iu:1} +A.hG.prototype={ +k(){var s,r +for(s=this.a,r=0;r"))}, +Y(a,b){A.ab(b,"count") +return this}, +ai(a,b){A.ab(b,"count") +return this}} +A.h2.prototype={ +k(){return!1}, +gm(){throw A.a(A.am())}} +A.eP.prototype={ +gt(a){return new A.i3(J.M(this.a),this.$ti.h("i3<1>"))}} +A.i3.prototype={ +k(){var s,r +for(s=this.a,r=this.$ti.c;s.k();)if(r.b(s.gm()))return!0 +return!1}, +gm(){return this.$ti.c.a(this.a.gm())}} +A.bt.prototype={ +gl(a){return J.ae(this.a)}, +gF(a){return J.j0(this.a)}, +gG(a){return new A.ak(this.b,J.fG(this.a))}, +M(a,b){return new A.ak(b+this.b,J.fF(this.a,b))}, +ai(a,b){A.bV(b,"count") +A.ab(b,"count") +return new A.bt(J.j2(this.a,b),this.b,A.t(this).h("bt<1>"))}, +Y(a,b){A.bV(b,"count") +A.ab(b,"count") +return new A.bt(J.e3(this.a,b),b+this.b,A.t(this).h("bt<1>"))}, +gt(a){return new A.em(J.M(this.a),this.b)}} +A.cr.prototype={ +gC(a){var s,r=this.a,q=J.V(r),p=q.gl(r) +if(p<=0)throw A.a(A.am()) +s=q.gC(r) +if(p!==q.gl(r))throw A.a(A.az(this)) +return new A.ak(p-1+this.b,s)}, +ai(a,b){A.bV(b,"count") +A.ab(b,"count") +return new A.cr(J.j2(this.a,b),this.b,this.$ti)}, +Y(a,b){A.bV(b,"count") +A.ab(b,"count") +return new A.cr(J.e3(this.a,b),this.b+b,this.$ti)}, +$iu:1} +A.em.prototype={ +k(){if(++this.c>=0&&this.a.k())return!0 +this.c=-2 +return!1}, +gm(){var s=this.c +return s>=0?new A.ak(this.b+s,this.a.gm()):A.B(A.am())}} +A.ej.prototype={} +A.hQ.prototype={ +q(a,b,c){throw A.a(A.a3("Cannot modify an unmodifiable list"))}, +N(a,b,c,d,e){throw A.a(A.a3("Cannot modify an unmodifiable list"))}, +ae(a,b,c,d){return this.N(0,b,c,d,0)}} +A.dm.prototype={} +A.eB.prototype={ +gl(a){return J.ae(this.a)}, +M(a,b){var s=this.a,r=J.V(s) +return r.M(s,r.gl(s)-1-b)}} +A.hL.prototype={ +gB(a){var s=this._hashCode +if(s!=null)return s +s=664597*B.a.gB(this.a)&536870911 +this._hashCode=s +return s}, +j(a){return'Symbol("'+this.a+'")'}, +W(a,b){if(b==null)return!1 +return b instanceof A.hL&&this.a===b.a}} +A.fu.prototype={} +A.ak.prototype={$r:"+(1,2)",$s:1} +A.cL.prototype={$r:"+file,outFlags(1,2)",$s:2} +A.ec.prototype={ +j(a){return A.oQ(this)}, +gem(){return new A.dO(this.jX(),A.t(this).h("dO>"))}, +jX(){var s=this +return function(){var r=0,q=1,p,o,n,m +return function $async$gem(a,b,c){if(b===1){p=c +r=q}while(true)switch(r){case 0:o=s.ga_(),o=o.gt(o),n=A.t(s).h("bw<1,2>") +case 2:if(!o.k()){r=3 +break}m=o.gm() +r=4 +return a.b=new A.bw(m,s.i(0,m),n),1 +case 4:r=2 +break +case 3:return 0 +case 1:return a.c=p,3}}}}, +$iaa:1} +A.ed.prototype={ +gl(a){return this.b.length}, +gfl(){var s=this.$keys +if(s==null){s=Object.keys(this.a) +this.$keys=s}return s}, +a4(a){if(typeof a!="string")return!1 +if("__proto__"===a)return!1 +return this.a.hasOwnProperty(a)}, +i(a,b){if(!this.a4(b))return null +return this.b[this.a[b]]}, +aa(a,b){var s,r,q=this.gfl(),p=this.b +for(s=q.length,r=0;r"))}, +gaN(){return new A.cK(this.b,this.$ti.h("cK<2>"))}} +A.cK.prototype={ +gl(a){return this.a.length}, +gF(a){return 0===this.a.length}, +gt(a){var s=this.a +return new A.it(s,s.length,this.$ti.h("it<1>"))}} +A.it.prototype={ +gm(){var s=this.d +return s==null?this.$ti.c.a(s):s}, +k(){var s=this,r=s.c +if(r>=s.b){s.d=null +return!1}s.d=s.a[r] +s.c=r+1 +return!0}} +A.kc.prototype={ +W(a,b){if(b==null)return!1 +return b instanceof A.en&&this.a.W(0,b.a)&&A.pu(this)===A.pu(b)}, +gB(a){return A.ex(this.a,A.pu(this),B.f,B.f)}, +j(a){var s=B.c.aq([A.bS(this.$ti.c)],", ") +return this.a.j(0)+" with "+("<"+s+">")}} +A.en.prototype={ +$2(a,b){return this.a.$1$2(a,b,this.$ti.y[0])}, +$4(a,b,c,d){return this.a.$1$4(a,b,c,d,this.$ti.y[0])}, +$S(){return A.xt(A.oe(this.a),this.$ti)}} +A.ln.prototype={ +ar(a){var s,r,q=this,p=new RegExp(q.a).exec(a) +if(p==null)return null +s=Object.create(null) +r=q.b +if(r!==-1)s.arguments=p[r+1] +r=q.c +if(r!==-1)s.argumentsExpr=p[r+1] +r=q.d +if(r!==-1)s.expr=p[r+1] +r=q.e +if(r!==-1)s.method=p[r+1] +r=q.f +if(r!==-1)s.receiver=p[r+1] +return s}} +A.ew.prototype={ +j(a){return"Null check operator used on a null value"}} +A.hi.prototype={ +j(a){var s,r=this,q="NoSuchMethodError: method not found: '",p=r.b +if(p==null)return"NoSuchMethodError: "+r.a +s=r.c +if(s==null)return q+p+"' ("+r.a+")" +return q+p+"' on '"+s+"' ("+r.a+")"}} +A.hP.prototype={ +j(a){var s=this.a +return s.length===0?"Error":"Error: "+s}} +A.hw.prototype={ +j(a){return"Throw of null ('"+(this.a===null?"null":"undefined")+"' from JavaScript)"}, +$ia5:1} +A.eh.prototype={} +A.fh.prototype={ +j(a){var s,r=this.b +if(r!=null)return r +r=this.a +s=r!==null&&typeof r==="object"?r.stack:null +return this.b=s==null?"":s}, +$ia0:1} +A.co.prototype={ +j(a){var s=this.constructor,r=s==null?null:s.name +return"Closure '"+A.t_(r==null?"unknown":r)+"'"}, +gkT(){return this}, +$C:"$1", +$R:1, +$D:null} +A.ji.prototype={$C:"$0",$R:0} +A.jj.prototype={$C:"$2",$R:2} +A.ld.prototype={} +A.l3.prototype={ +j(a){var s=this.$static_name +if(s==null)return"Closure of unknown static method" +return"Closure '"+A.t_(s)+"'"}} +A.e7.prototype={ +W(a,b){if(b==null)return!1 +if(this===b)return!0 +if(!(b instanceof A.e7))return!1 +return this.$_target===b.$_target&&this.a===b.a}, +gB(a){return(A.py(this.a)^A.eA(this.$_target))>>>0}, +j(a){return"Closure '"+this.$_name+"' of "+("Instance of '"+A.kz(this.a)+"'")}} +A.ie.prototype={ +j(a){return"Reading static variable '"+this.a+"' during its initialization"}} +A.hD.prototype={ +j(a){return"RuntimeError: "+this.a}} +A.bv.prototype={ +gl(a){return this.a}, +gF(a){return this.a===0}, +ga_(){return new A.ba(this,A.t(this).h("ba<1>"))}, +gaN(){var s=A.t(this) +return A.es(new A.ba(this,s.h("ba<1>")),new A.kk(this),s.c,s.y[1])}, +a4(a){var s,r +if(typeof a=="string"){s=this.b +if(s==null)return!1 +return s[a]!=null}else if(typeof a=="number"&&(a&0x3fffffff)===a){r=this.c +if(r==null)return!1 +return r[a]!=null}else return this.kj(a)}, +kj(a){var s=this.d +if(s==null)return!1 +return this.d1(s[this.d0(a)],a)>=0}, +aH(a,b){b.aa(0,new A.kj(this))}, +i(a,b){var s,r,q,p,o=null +if(typeof b=="string"){s=this.b +if(s==null)return o +r=s[b] +q=r==null?o:r.b +return q}else if(typeof b=="number"&&(b&0x3fffffff)===b){p=this.c +if(p==null)return o +r=p[b] +q=r==null?o:r.b +return q}else return this.kk(b)}, +kk(a){var s,r,q=this.d +if(q==null)return null +s=q[this.d0(a)] +r=this.d1(s,a) +if(r<0)return null +return s[r].b}, +q(a,b,c){var s,r,q=this +if(typeof b=="string"){s=q.b +q.eZ(s==null?q.b=q.dW():s,b,c)}else if(typeof b=="number"&&(b&0x3fffffff)===b){r=q.c +q.eZ(r==null?q.c=q.dW():r,b,c)}else q.km(b,c)}, +km(a,b){var s,r,q,p=this,o=p.d +if(o==null)o=p.d=p.dW() +s=p.d0(a) +r=o[s] +if(r==null)o[s]=[p.dq(a,b)] +else{q=p.d1(r,a) +if(q>=0)r[q].b=b +else r.push(p.dq(a,b))}}, +hk(a,b){var s,r,q=this +if(q.a4(a)){s=q.i(0,a) +return s==null?A.t(q).y[1].a(s):s}r=b.$0() +q.q(0,a,r) +return r}, +A(a,b){var s=this +if(typeof b=="string")return s.f_(s.b,b) +else if(typeof b=="number"&&(b&0x3fffffff)===b)return s.f_(s.c,b) +else return s.kl(b)}, +kl(a){var s,r,q,p,o=this,n=o.d +if(n==null)return null +s=o.d0(a) +r=n[s] +q=o.d1(r,a) +if(q<0)return null +p=r.splice(q,1)[0] +o.f0(p) +if(r.length===0)delete n[s] +return p.b}, +c2(a){var s=this +if(s.a>0){s.b=s.c=s.d=s.e=s.f=null +s.a=0 +s.dn()}}, +aa(a,b){var s=this,r=s.e,q=s.r +for(;r!=null;){b.$2(r.a,r.b) +if(q!==s.r)throw A.a(A.az(s)) +r=r.c}}, +eZ(a,b,c){var s=a[b] +if(s==null)a[b]=this.dq(b,c) +else s.b=c}, +f_(a,b){var s +if(a==null)return null +s=a[b] +if(s==null)return null +this.f0(s) +delete a[b] +return s.b}, +dn(){this.r=this.r+1&1073741823}, +dq(a,b){var s,r=this,q=new A.kn(a,b) +if(r.e==null)r.e=r.f=q +else{s=r.f +s.toString +q.d=s +r.f=s.c=q}++r.a +r.dn() +return q}, +f0(a){var s=this,r=a.d,q=a.c +if(r==null)s.e=q +else r.c=q +if(q==null)s.f=r +else q.d=r;--s.a +s.dn()}, +d0(a){return J.ay(a)&1073741823}, +d1(a,b){var s,r +if(a==null)return-1 +s=a.length +for(r=0;r"]=s +delete s[""] +return s}} +A.kk.prototype={ +$1(a){var s=this.a,r=s.i(0,a) +return r==null?A.t(s).y[1].a(r):r}, +$S(){return A.t(this.a).h("2(1)")}} +A.kj.prototype={ +$2(a,b){this.a.q(0,a,b)}, +$S(){return A.t(this.a).h("~(1,2)")}} +A.kn.prototype={} +A.ba.prototype={ +gl(a){return this.a.a}, +gF(a){return this.a.a===0}, +gt(a){var s=this.a,r=new A.hl(s,s.r) +r.c=s.e +return r}} +A.hl.prototype={ +gm(){return this.d}, +k(){var s,r=this,q=r.a +if(r.b!==q.r)throw A.a(A.az(q)) +s=r.c +if(s==null){r.d=null +return!1}else{r.d=s.a +r.c=s.c +return!0}}} +A.ol.prototype={ +$1(a){return this.a(a)}, +$S:88} +A.om.prototype={ +$2(a,b){return this.a(a,b)}, +$S:53} +A.on.prototype={ +$1(a){return this.a(a)}, +$S:77} +A.fd.prototype={ +j(a){return this.fQ(!1)}, +fQ(a){var s,r,q,p,o,n=this.iq(),m=this.fi(),l=(a?""+"Record ":"")+"(" +for(s=n.length,r="",q=0;q0;){--q;--s +j[q]=r[s]}}return A.aG(j,k)}} +A.iz.prototype={ +fi(){return[this.a,this.b]}, +W(a,b){if(b==null)return!1 +return b instanceof A.iz&&this.$s===b.$s&&J.a4(this.a,b.a)&&J.a4(this.b,b.b)}, +gB(a){return A.ex(this.$s,this.a,this.b,B.f)}} +A.cv.prototype={ +j(a){return"RegExp/"+this.a+"/"+this.b.flags}, +gfq(){var s=this,r=s.c +if(r!=null)return r +r=s.b +return s.c=A.oM(s.a,r.multiline,!r.ignoreCase,r.unicode,r.dotAll,!0)}, +gfp(){var s=this,r=s.d +if(r!=null)return r +r=s.b +return s.d=A.oM(s.a+"|()",r.multiline,!r.ignoreCase,r.unicode,r.dotAll,!0)}, +a9(a){var s=this.b.exec(a) +if(s==null)return null +return new A.dE(s)}, +cO(a,b,c){var s=b.length +if(c>s)throw A.a(A.X(c,0,s,null,null)) +return new A.i4(this,b,c)}, +ee(a,b){return this.cO(0,b,0)}, +fe(a,b){var s,r=this.gfq() +r.lastIndex=b +s=r.exec(a) +if(s==null)return null +return new A.dE(s)}, +ip(a,b){var s,r=this.gfp() +r.lastIndex=b +s=r.exec(a) +if(s==null)return null +if(s.pop()!=null)return null +return new A.dE(s)}, +he(a,b,c){if(c<0||c>b.length)throw A.a(A.X(c,0,b.length,null,null)) +return this.ip(b,c)}} +A.dE.prototype={ +gcs(){return this.b.index}, +gbB(){var s=this.b +return s.index+s[0].length}, +i(a,b){return this.b[b]}, +aL(a){var s,r=this.b.groups +if(r!=null){s=r[a] +if(s!=null||a in r)return s}throw A.a(A.ah(a,"name","Not a capture group name"))}, +$iet:1, +$ihA:1} +A.i4.prototype={ +gt(a){return new A.lZ(this.a,this.b,this.c)}} +A.lZ.prototype={ +gm(){var s=this.d +return s==null?t.cz.a(s):s}, +k(){var s,r,q,p,o,n,m=this,l=m.b +if(l==null)return!1 +s=m.c +r=l.length +if(s<=r){q=m.a +p=q.fe(l,s) +if(p!=null){m.d=p +o=p.gbB() +if(p.b.index===o){s=!1 +if(q.b.unicode){q=m.c +n=q+1 +if(n=55296&&r<=56319){s=l.charCodeAt(n) +s=s>=56320&&s<=57343}}}o=(s?o+1:o)+1}m.c=o +return!0}}m.b=m.d=null +return!1}} +A.dl.prototype={ +gbB(){return this.a+this.c.length}, +i(a,b){if(b!==0)A.B(A.kE(b,null)) +return this.c}, +$iet:1, +gcs(){return this.a}} +A.iH.prototype={ +gt(a){return new A.nF(this.a,this.b,this.c)}, +gG(a){var s=this.b,r=this.a.indexOf(s,this.c) +if(r>=0)return new A.dl(r,s) +throw A.a(A.am())}} +A.nF.prototype={ +k(){var s,r,q=this,p=q.c,o=q.b,n=o.length,m=q.a,l=m.length +if(p+n>l){q.d=null +return!1}s=m.indexOf(o,p) +if(s<0){q.c=l+1 +q.d=null +return!1}r=s+n +q.d=new A.dl(s,o) +q.c=r===q.c?r+1:r +return!0}, +gm(){var s=this.d +s.toString +return s}} +A.me.prototype={ +ag(){var s=this.b +if(s===this)throw A.a(A.uv(this.a)) +return s}} +A.cw.prototype={ +gV(a){return B.b9}, +fW(a,b,c){A.iR(a,b,c) +return c==null?new Uint8Array(a,b):new Uint8Array(a,b,c)}, +jJ(a,b,c){var s +A.iR(a,b,c) +s=new DataView(a,b) +return s}, +fV(a){return this.jJ(a,0,null)}, +$iL:1, +$icw:1, +$ifQ:1} +A.eu.prototype={ +gaI(a){if(((a.$flags|0)&2)!==0)return new A.iO(a.buffer) +else return a.buffer}, +iC(a,b,c,d){var s=A.X(b,0,c,d,null) +throw A.a(s)}, +f7(a,b,c,d){if(b>>>0!==b||b>c)this.iC(a,b,c,d)}} +A.iO.prototype={ +fW(a,b,c){var s=A.bz(this.a,b,c) +s.$flags=3 +return s}, +fV(a){var s=A.qc(this.a,0,null) +s.$flags=3 +return s}, +$ifQ:1} +A.cx.prototype={ +gV(a){return B.ba}, +$iL:1, +$icx:1, +$ioE:1} +A.d7.prototype={ +gl(a){return a.length}, +fI(a,b,c,d,e){var s,r,q=a.length +this.f7(a,b,q,"start") +this.f7(a,c,q,"end") +if(b>c)throw A.a(A.X(b,0,c,null,null)) +s=c-b +if(e<0)throw A.a(A.K(e,null)) +r=d.length +if(r-e0){s=Date.now()-r.c +if(s>(p+1)*o)p=B.b.eY(s,o)}q.c=p +r.d.$1(q)}, +$S:6} +A.i5.prototype={ +P(a){var s,r=this +if(a==null)a=r.$ti.c.a(a) +if(!r.b)r.a.b1(a) +else{s=r.a +if(r.$ti.h("D<1>").b(a))s.f6(a) +else s.br(a)}}, +bA(a,b){var s=this.a +if(this.b)s.X(a,b) +else s.aP(a,b)}} +A.nV.prototype={ +$1(a){return this.a.$2(0,a)}, +$S:16} +A.nW.prototype={ +$2(a,b){this.a.$2(1,new A.eh(a,b))}, +$S:43} +A.oc.prototype={ +$2(a,b){this.a(a,b)}, +$S:49} +A.iI.prototype={ +gm(){return this.b}, +j5(a,b){var s,r,q +a=a +b=b +s=this.a +for(;!0;)try{r=s(this,a,b) +return r}catch(q){b=q +a=1}}, +k(){var s,r,q,p,o=this,n=null,m=0 +for(;!0;){s=o.d +if(s!=null)try{if(s.k()){o.b=s.gm() +return!0}else o.d=null}catch(r){n=r +m=1 +o.d=null}q=o.j5(m,n) +if(1===q)return!0 +if(0===q){o.b=null +p=o.e +if(p==null||p.length===0){o.a=A.r0 +return!1}o.a=p.pop() +m=0 +n=null +continue}if(2===q){m=0 +n=null +continue}if(3===q){n=o.c +o.c=null +p=o.e +if(p==null||p.length===0){o.b=null +o.a=A.r0 +throw n +return!1}o.a=p.pop() +m=1 +continue}throw A.a(A.C("sync*"))}return!1}, +kU(a){var s,r,q=this +if(a instanceof A.dO){s=a.a() +r=q.e +if(r==null)r=q.e=[] +r.push(q.a) +q.a=s +return 2}else{q.d=J.M(a) +return 2}}} +A.dO.prototype={ +gt(a){return new A.iI(this.a())}} +A.bf.prototype={ +j(a){return A.v(this.a)}, +$iO:1, +gbm(){return this.b}} +A.eT.prototype={} +A.cF.prototype={ +al(){}, +am(){}} +A.cE.prototype={ +gbN(){return this.c<4}, +fC(a){var s=a.CW,r=a.ch +if(s==null)this.d=r +else s.ch=r +if(r==null)this.e=s +else r.CW=s +a.CW=a +a.ch=a}, +fK(a,b,c,d){var s,r,q,p,o,n,m,l,k,j=this +if((j.c&4)!==0){s=$.j +r=new A.eY(s) +A.ow(r.gfs()) +if(c!=null)r.c=s.au(c,t.H) +return r}s=A.t(j) +r=$.j +q=d?1:0 +p=b!=null?32:0 +o=A.ib(r,a,s.c) +n=A.ic(r,b) +m=c==null?A.rI():c +l=new A.cF(j,o,n,r.au(m,t.H),r,q|p,s.h("cF<1>")) +l.CW=l +l.ch=l +l.ay=j.c&1 +k=j.e +j.e=l +l.ch=null +l.CW=k +if(k==null)j.d=l +else k.ch=l +if(j.d===l)A.iW(j.a) +return l}, +fu(a){var s,r=this +A.t(r).h("cF<1>").a(a) +if(a.ch===a)return null +s=a.ay +if((s&2)!==0)a.ay=s|4 +else{r.fC(a) +if((r.c&2)===0&&r.d==null)r.du()}return null}, +fv(a){}, +fw(a){}, +bL(){if((this.c&4)!==0)return new A.b4("Cannot add new events after calling close") +return new A.b4("Cannot add new events while doing an addStream")}, +v(a,b){if(!this.gbN())throw A.a(this.bL()) +this.b3(b)}, +a3(a,b){var s +if(!this.gbN())throw A.a(this.bL()) +s=A.o4(a,b) +this.b5(s.a,s.b)}, +p(){var s,r,q=this +if((q.c&4)!==0){s=q.r +s.toString +return s}if(!q.gbN())throw A.a(q.bL()) +q.c|=4 +r=q.r +if(r==null)r=q.r=new A.k($.j,t.D) +q.b4() +return r}, +dK(a){var s,r,q,p=this,o=p.c +if((o&2)!==0)throw A.a(A.C(u.o)) +s=p.d +if(s==null)return +r=o&1 +p.c=o^3 +for(;s!=null;){o=s.ay +if((o&1)===r){s.ay=o|2 +a.$1(s) +o=s.ay^=1 +q=s.ch +if((o&4)!==0)p.fC(s) +s.ay&=4294967293 +s=q}else s=s.ch}p.c&=4294967293 +if(p.d==null)p.du()}, +du(){if((this.c&4)!==0){var s=this.r +if((s.a&30)===0)s.b1(null)}A.iW(this.b)}, +$iaf:1} +A.fk.prototype={ +gbN(){return A.cE.prototype.gbN.call(this)&&(this.c&2)===0}, +bL(){if((this.c&2)!==0)return new A.b4(u.o) +return this.hP()}, +b3(a){var s=this,r=s.d +if(r==null)return +if(r===s.e){s.c|=2 +r.bq(a) +s.c&=4294967293 +if(s.d==null)s.du() +return}s.dK(new A.nG(s,a))}, +b5(a,b){if(this.d==null)return +this.dK(new A.nI(this,a,b))}, +b4(){var s=this +if(s.d!=null)s.dK(new A.nH(s)) +else s.r.b1(null)}} +A.nG.prototype={ +$1(a){a.bq(this.b)}, +$S(){return this.a.$ti.h("~(ag<1>)")}} +A.nI.prototype={ +$1(a){a.bo(this.b,this.c)}, +$S(){return this.a.$ti.h("~(ag<1>)")}} +A.nH.prototype={ +$1(a){a.cz()}, +$S(){return this.a.$ti.h("~(ag<1>)")}} +A.k5.prototype={ +$0(){var s,r,q,p=null +try{p=this.a.$0()}catch(q){s=A.F(q) +r=A.R(q) +A.pi(this.b,s,r) +return}this.b.b2(p)}, +$S:0} +A.k3.prototype={ +$0(){this.c.a(null) +this.b.b2(null)}, +$S:0} +A.k7.prototype={ +$2(a,b){var s=this,r=s.a,q=--r.b +if(r.a!=null){r.a=null +r.d=a +r.c=b +if(q===0||s.c)s.d.X(a,b)}else if(q===0&&!s.c){q=r.d +q.toString +r=r.c +r.toString +s.d.X(q,r)}}, +$S:7} +A.k6.prototype={ +$1(a){var s,r,q,p,o,n,m=this,l=m.a,k=--l.b,j=l.a +if(j!=null){J.pK(j,m.b,a) +if(J.a4(k,0)){l=m.d +s=A.d([],l.h("w<0>")) +for(q=j,p=q.length,o=0;o")) +r=b==null?1:3 +this.cv(new A.cg(s,r,a,b,this.$ti.h("@<1>").H(c).h("cg<1,2>"))) +return s}, +bI(a,b){return this.bJ(a,null,b)}, +fO(a,b,c){var s=new A.k($.j,c.h("k<0>")) +this.cv(new A.cg(s,19,a,b,this.$ti.h("@<1>").H(c).h("cg<1,2>"))) +return s}, +aj(a){var s=this.$ti,r=$.j,q=new A.k(r,s) +if(r!==B.d)a=r.au(a,t.z) +this.cv(new A.cg(q,8,a,null,s.h("cg<1,1>"))) +return q}, +jg(a){this.a=this.a&1|16 +this.c=a}, +cw(a){this.a=a.a&30|this.a&1 +this.c=a.c}, +cv(a){var s=this,r=s.a +if(r<=3){a.a=s.c +s.c=a}else{if((r&4)!==0){r=s.c +if((r.a&24)===0){r.cv(a) +return}s.cw(r)}s.b.aZ(new A.mu(s,a))}}, +dY(a){var s,r,q,p,o,n=this,m={} +m.a=a +if(a==null)return +s=n.a +if(s<=3){r=n.c +n.c=a +if(r!=null){q=a.a +for(p=a;q!=null;p=q,q=o)o=q.a +p.a=r}}else{if((s&4)!==0){s=n.c +if((s.a&24)===0){s.dY(a) +return}n.cw(s)}m.a=n.cH(a) +n.b.aZ(new A.mB(m,n))}}, +cG(){var s=this.c +this.c=null +return this.cH(s)}, +cH(a){var s,r,q +for(s=a,r=null;s!=null;r=s,s=q){q=s.a +s.a=r}return r}, +f5(a){var s,r,q,p=this +p.a^=2 +try{a.bJ(new A.my(p),new A.mz(p),t.P)}catch(q){s=A.F(q) +r=A.R(q) +A.ow(new A.mA(p,s,r))}}, +b2(a){var s,r=this,q=r.$ti +if(q.h("D<1>").b(a))if(q.b(a))A.p7(a,r) +else r.f5(a) +else{s=r.cG() +r.a=8 +r.c=a +A.dz(r,s)}}, +br(a){var s=this,r=s.cG() +s.a=8 +s.c=a +A.dz(s,r)}, +X(a,b){var s=this.cG() +this.jg(new A.bf(a,b)) +A.dz(this,s)}, +b1(a){if(this.$ti.h("D<1>").b(a)){this.f6(a) +return}this.f4(a)}, +f4(a){this.a^=2 +this.b.aZ(new A.mw(this,a))}, +f6(a){if(this.$ti.b(a)){A.vi(a,this) +return}this.f5(a)}, +aP(a,b){this.a^=2 +this.b.aZ(new A.mv(this,a,b))}, +$iD:1} +A.mu.prototype={ +$0(){A.dz(this.a,this.b)}, +$S:0} +A.mB.prototype={ +$0(){A.dz(this.b,this.a.a)}, +$S:0} +A.my.prototype={ +$1(a){var s,r,q,p=this.a +p.a^=2 +try{p.br(p.$ti.c.a(a))}catch(q){s=A.F(q) +r=A.R(q) +p.X(s,r)}}, +$S:36} +A.mz.prototype={ +$2(a,b){this.a.X(a,b)}, +$S:74} +A.mA.prototype={ +$0(){this.a.X(this.b,this.c)}, +$S:0} +A.mx.prototype={ +$0(){A.p7(this.a.a,this.b)}, +$S:0} +A.mw.prototype={ +$0(){this.a.br(this.b)}, +$S:0} +A.mv.prototype={ +$0(){this.a.X(this.b,this.c)}, +$S:0} +A.mE.prototype={ +$0(){var s,r,q,p,o,n,m,l=this,k=null +try{q=l.a.a +k=q.b.b.bf(q.d,t.z)}catch(p){s=A.F(p) +r=A.R(p) +if(l.c&&l.b.a.c.a===s){q=l.a +q.c=l.b.a.c}else{q=s +o=r +if(o==null)o=A.oD(q) +n=l.a +n.c=new A.bf(q,o) +q=n}q.b=!0 +return}if(k instanceof A.k&&(k.a&24)!==0){if((k.a&16)!==0){q=l.a +q.c=k.c +q.b=!0}return}if(k instanceof A.k){m=l.b.a +q=l.a +q.c=k.bI(new A.mF(m),t.z) +q.b=!1}}, +$S:0} +A.mF.prototype={ +$1(a){return this.a}, +$S:76} +A.mD.prototype={ +$0(){var s,r,q,p,o,n +try{q=this.a +p=q.a +o=p.$ti +q.c=p.b.b.bg(p.d,this.b,o.h("2/"),o.c)}catch(n){s=A.F(n) +r=A.R(n) +q=s +p=r +if(p==null)p=A.oD(q) +o=this.a +o.c=new A.bf(q,p) +o.b=!0}}, +$S:0} +A.mC.prototype={ +$0(){var s,r,q,p,o,n,m,l=this +try{s=l.a.a.c +p=l.b +if(p.a.kr(s)&&p.a.e!=null){p.c=p.a.kh(s) +p.b=!1}}catch(o){r=A.F(o) +q=A.R(o) +p=l.a.a.c +if(p.a===r){n=l.b +n.c=p +p=n}else{p=r +n=q +if(n==null)n=A.oD(p) +m=l.b +m.c=new A.bf(p,n) +p=m}p.b=!0}}, +$S:0} +A.i6.prototype={} +A.Y.prototype={ +gl(a){var s={},r=new A.k($.j,t.gR) +s.a=0 +this.R(new A.la(s,this),!0,new A.lb(s,r),r.gdB()) +return r}, +gG(a){var s=new A.k($.j,A.t(this).h("k")),r=this.R(null,!0,new A.l8(s),s.gdB()) +r.ca(new A.l9(this,r,s)) +return s}, +kf(a,b){var s=new A.k($.j,A.t(this).h("k")),r=this.R(null,!0,new A.l6(null,s),s.gdB()) +r.ca(new A.l7(this,b,r,s)) +return s}} +A.la.prototype={ +$1(a){++this.a.a}, +$S(){return A.t(this.b).h("~(Y.T)")}} +A.lb.prototype={ +$0(){this.b.b2(this.a.a)}, +$S:0} +A.l8.prototype={ +$0(){var s,r,q,p +try{q=A.am() +throw A.a(q)}catch(p){s=A.F(p) +r=A.R(p) +A.pi(this.a,s,r)}}, +$S:0} +A.l9.prototype={ +$1(a){A.rl(this.b,this.c,a)}, +$S(){return A.t(this.a).h("~(Y.T)")}} +A.l6.prototype={ +$0(){var s,r,q,p +try{q=A.am() +throw A.a(q)}catch(p){s=A.F(p) +r=A.R(p) +A.pi(this.b,s,r)}}, +$S:0} +A.l7.prototype={ +$1(a){var s=this.c,r=this.d +A.wG(new A.l4(this.b,a),new A.l5(s,r,a),A.w1(s,r))}, +$S(){return A.t(this.a).h("~(Y.T)")}} +A.l4.prototype={ +$0(){return this.a.$1(this.b)}, +$S:35} +A.l5.prototype={ +$1(a){if(a)A.rl(this.a,this.b,this.c)}, +$S:81} +A.hK.prototype={} +A.cM.prototype={ +giU(){if((this.b&8)===0)return this.a +return this.a.ge7()}, +dH(){var s,r=this +if((r.b&8)===0){s=r.a +return s==null?r.a=new A.fc():s}s=r.a.ge7() +return s}, +gaS(){var s=this.a +return(this.b&8)!==0?s.ge7():s}, +ds(){if((this.b&4)!==0)return new A.b4("Cannot add event after closing") +return new A.b4("Cannot add event while adding a stream")}, +fc(){var s=this.c +if(s==null)s=this.c=(this.b&2)!==0?$.cl():new A.k($.j,t.D) +return s}, +v(a,b){var s=this,r=s.b +if(r>=4)throw A.a(s.ds()) +if((r&1)!==0)s.b3(b) +else if((r&3)===0)s.dH().v(0,new A.dv(b))}, +a3(a,b){var s,r,q=this +if(q.b>=4)throw A.a(q.ds()) +s=A.o4(a,b) +a=s.a +b=s.b +r=q.b +if((r&1)!==0)q.b5(a,b) +else if((r&3)===0)q.dH().v(0,new A.eX(a,b))}, +jH(a){return this.a3(a,null)}, +p(){var s=this,r=s.b +if((r&4)!==0)return s.fc() +if(r>=4)throw A.a(s.ds()) +r=s.b=r|4 +if((r&1)!==0)s.b4() +else if((r&3)===0)s.dH().v(0,B.z) +return s.fc()}, +fK(a,b,c,d){var s,r,q,p,o=this +if((o.b&3)!==0)throw A.a(A.C("Stream has already been listened to.")) +s=A.vg(o,a,b,c,d,A.t(o).c) +r=o.giU() +q=o.b|=1 +if((q&8)!==0){p=o.a +p.se7(s) +p.be()}else o.a=s +s.jh(r) +s.dL(new A.nD(o)) +return s}, +fu(a){var s,r,q,p,o,n,m,l=this,k=null +if((l.b&8)!==0)k=l.a.J() +l.a=null +l.b=l.b&4294967286|2 +s=l.r +if(s!=null)if(k==null)try{r=s.$0() +if(r instanceof A.k)k=r}catch(o){q=A.F(o) +p=A.R(o) +n=new A.k($.j,t.D) +n.aP(q,p) +k=n}else k=k.aj(s) +m=new A.nC(l) +if(k!=null)k=k.aj(m) +else m.$0() +return k}, +fv(a){if((this.b&8)!==0)this.a.bE() +A.iW(this.e)}, +fw(a){if((this.b&8)!==0)this.a.be() +A.iW(this.f)}, +$iaf:1} +A.nD.prototype={ +$0(){A.iW(this.a.d)}, +$S:0} +A.nC.prototype={ +$0(){var s=this.a.c +if(s!=null&&(s.a&30)===0)s.b1(null)}, +$S:0} +A.iJ.prototype={ +b3(a){this.gaS().bq(a)}, +b5(a,b){this.gaS().bo(a,b)}, +b4(){this.gaS().cz()}} +A.i7.prototype={ +b3(a){this.gaS().bp(new A.dv(a))}, +b5(a,b){this.gaS().bp(new A.eX(a,b))}, +b4(){this.gaS().bp(B.z)}} +A.dt.prototype={} +A.dP.prototype={} +A.ap.prototype={ +gB(a){return(A.eA(this.a)^892482866)>>>0}, +W(a,b){if(b==null)return!1 +if(this===b)return!0 +return b instanceof A.ap&&b.a===this.a}} +A.cf.prototype={ +cD(){return this.w.fu(this)}, +al(){this.w.fv(this)}, +am(){this.w.fw(this)}} +A.dM.prototype={ +v(a,b){this.a.v(0,b)}, +a3(a,b){this.a.a3(a,b)}, +p(){return this.a.p()}, +$iaf:1} +A.ag.prototype={ +jh(a){var s=this +if(a==null)return +s.r=a +if(a.c!=null){s.e=(s.e|128)>>>0 +a.cr(s)}}, +ca(a){this.a=A.ib(this.d,a,A.t(this).h("ag.T"))}, +eG(a){var s=this +s.e=(s.e&4294967263)>>>0 +s.b=A.ic(s.d,a)}, +bE(){var s,r,q=this,p=q.e +if((p&8)!==0)return +s=(p+256|4)>>>0 +q.e=s +if(p<256){r=q.r +if(r!=null)if(r.a===1)r.a=3}if((p&4)===0&&(s&64)===0)q.dL(q.gbO())}, +be(){var s=this,r=s.e +if((r&8)!==0)return +if(r>=256){r=s.e=r-256 +if(r<256)if((r&128)!==0&&s.r.c!=null)s.r.cr(s) +else{r=(r&4294967291)>>>0 +s.e=r +if((r&64)===0)s.dL(s.gbP())}}}, +J(){var s=this,r=(s.e&4294967279)>>>0 +s.e=r +if((r&8)===0)s.dv() +r=s.f +return r==null?$.cl():r}, +dv(){var s,r=this,q=r.e=(r.e|8)>>>0 +if((q&128)!==0){s=r.r +if(s.a===1)s.a=3}if((q&64)===0)r.r=null +r.f=r.cD()}, +bq(a){var s=this.e +if((s&8)!==0)return +if(s<64)this.b3(a) +else this.bp(new A.dv(a))}, +bo(a,b){var s +if(t.C.b(a))A.kA(a,b) +s=this.e +if((s&8)!==0)return +if(s<64)this.b5(a,b) +else this.bp(new A.eX(a,b))}, +cz(){var s=this,r=s.e +if((r&8)!==0)return +r=(r|2)>>>0 +s.e=r +if(r<64)s.b4() +else s.bp(B.z)}, +al(){}, +am(){}, +cD(){return null}, +bp(a){var s,r=this,q=r.r +if(q==null)q=r.r=new A.fc() +q.v(0,a) +s=r.e +if((s&128)===0){s=(s|128)>>>0 +r.e=s +if(s<256)q.cr(r)}}, +b3(a){var s=this,r=s.e +s.e=(r|64)>>>0 +s.d.ck(s.a,a,A.t(s).h("ag.T")) +s.e=(s.e&4294967231)>>>0 +s.dw((r&4)!==0)}, +b5(a,b){var s,r=this,q=r.e,p=new A.md(r,a,b) +if((q&1)!==0){r.e=(q|16)>>>0 +r.dv() +s=r.f +if(s!=null&&s!==$.cl())s.aj(p) +else p.$0()}else{p.$0() +r.dw((q&4)!==0)}}, +b4(){var s,r=this,q=new A.mc(r) +r.dv() +r.e=(r.e|16)>>>0 +s=r.f +if(s!=null&&s!==$.cl())s.aj(q) +else q.$0()}, +dL(a){var s=this,r=s.e +s.e=(r|64)>>>0 +a.$0() +s.e=(s.e&4294967231)>>>0 +s.dw((r&4)!==0)}, +dw(a){var s,r,q=this,p=q.e +if((p&128)!==0&&q.r.c==null){p=q.e=(p&4294967167)>>>0 +s=!1 +if((p&4)!==0)if(p<256){s=q.r +s=s==null?null:s.c==null +s=s!==!1}if(s){p=(p&4294967291)>>>0 +q.e=p}}for(;!0;a=r){if((p&8)!==0){q.r=null +return}r=(p&4)!==0 +if(a===r)break +q.e=(p^64)>>>0 +if(r)q.al() +else q.am() +p=(q.e&4294967231)>>>0 +q.e=p}if((p&128)!==0&&p<256)q.r.cr(q)}} +A.md.prototype={ +$0(){var s,r,q,p=this.a,o=p.e +if((o&8)!==0&&(o&16)===0)return +p.e=(o|64)>>>0 +s=p.b +o=this.b +r=t.K +q=p.d +if(t.da.b(s))q.hr(s,o,this.c,r,t.l) +else q.ck(s,o,r) +p.e=(p.e&4294967231)>>>0}, +$S:0} +A.mc.prototype={ +$0(){var s=this.a,r=s.e +if((r&16)===0)return +s.e=(r|74)>>>0 +s.d.cj(s.c) +s.e=(s.e&4294967231)>>>0}, +$S:0} +A.dK.prototype={ +R(a,b,c,d){return this.a.fK(a,d,c,b===!0)}, +aW(a,b,c){return this.R(a,null,b,c)}, +kq(a){return this.R(a,null,null,null)}, +eC(a,b){return this.R(a,null,b,null)}} +A.ih.prototype={ +gc9(){return this.a}, +sc9(a){return this.a=a}} +A.dv.prototype={ +eI(a){a.b3(this.b)}} +A.eX.prototype={ +eI(a){a.b5(this.b,this.c)}} +A.mn.prototype={ +eI(a){a.b4()}, +gc9(){return null}, +sc9(a){throw A.a(A.C("No events after a done."))}} +A.fc.prototype={ +cr(a){var s=this,r=s.a +if(r===1)return +if(r>=1){s.a=1 +return}A.ow(new A.ns(s,a)) +s.a=1}, +v(a,b){var s=this,r=s.c +if(r==null)s.b=s.c=b +else{r.sc9(b) +s.c=b}}} +A.ns.prototype={ +$0(){var s,r,q=this.a,p=q.a +q.a=0 +if(p===3)return +s=q.b +r=s.gc9() +q.b=r +if(r==null)q.c=null +s.eI(this.b)}, +$S:0} +A.eY.prototype={ +ca(a){}, +eG(a){}, +bE(){var s=this.a +if(s>=0)this.a=s+2}, +be(){var s=this,r=s.a-2 +if(r<0)return +if(r===0){s.a=1 +A.ow(s.gfs())}else s.a=r}, +J(){this.a=-1 +this.c=null +return $.cl()}, +iQ(){var s,r=this,q=r.a-1 +if(q===0){r.a=-1 +s=r.c +if(s!=null){r.c=null +r.b.cj(s)}}else r.a=q}} +A.dL.prototype={ +gm(){if(this.c)return this.b +return null}, +k(){var s,r=this,q=r.a +if(q!=null){if(r.c){s=new A.k($.j,t.k) +r.b=s +r.c=!1 +q.be() +return s}throw A.a(A.C("Already waiting for next."))}return r.iB()}, +iB(){var s,r,q=this,p=q.b +if(p!=null){s=new A.k($.j,t.k) +q.b=s +r=p.R(q.giK(),!0,q.giM(),q.giO()) +if(q.b!=null)q.a=r +return s}return $.t3()}, +J(){var s=this,r=s.a,q=s.b +s.b=null +if(r!=null){s.a=null +if(!s.c)q.b1(!1) +else s.c=!1 +return r.J()}return $.cl()}, +iL(a){var s,r,q=this +if(q.a==null)return +s=q.b +q.b=a +q.c=!0 +s.b2(!0) +if(q.c){r=q.a +if(r!=null)r.bE()}}, +iP(a,b){var s=this,r=s.a,q=s.b +s.b=s.a=null +if(r!=null)q.X(a,b) +else q.aP(a,b)}, +iN(){var s=this,r=s.a,q=s.b +s.b=s.a=null +if(r!=null)q.br(!1) +else q.f4(!1)}} +A.nY.prototype={ +$0(){return this.a.X(this.b,this.c)}, +$S:0} +A.nX.prototype={ +$2(a,b){A.w0(this.a,this.b,a,b)}, +$S:7} +A.nZ.prototype={ +$0(){return this.a.b2(this.b)}, +$S:0} +A.f2.prototype={ +R(a,b,c,d){var s=this.$ti,r=$.j,q=b===!0?1:0,p=d!=null?32:0,o=A.ib(r,a,s.y[1]),n=A.ic(r,d) +s=new A.dx(this,o,n,r.au(c,t.H),r,q|p,s.h("dx<1,2>")) +s.x=this.a.aW(s.gdM(),s.gdO(),s.gdQ()) +return s}, +aW(a,b,c){return this.R(a,null,b,c)}} +A.dx.prototype={ +bq(a){if((this.e&2)!==0)return +this.dm(a)}, +bo(a,b){if((this.e&2)!==0)return +this.bn(a,b)}, +al(){var s=this.x +if(s!=null)s.bE()}, +am(){var s=this.x +if(s!=null)s.be()}, +cD(){var s=this.x +if(s!=null){this.x=null +return s.J()}return null}, +dN(a){this.w.iv(a,this)}, +dR(a,b){this.bo(a,b)}, +dP(){this.cz()}} +A.f7.prototype={ +iv(a,b){var s,r,q,p,o,n,m=null +try{m=this.b.$1(a)}catch(q){s=A.F(q) +r=A.R(q) +p=s +o=r +n=A.iU(p,o) +if(n!=null){p=n.a +o=n.b}b.bo(p,o) +return}b.bq(m)}} +A.f_.prototype={ +v(a,b){var s=this.a +if((s.e&2)!==0)A.B(A.C("Stream is already closed")) +s.dm(b)}, +a3(a,b){var s=this.a +if((s.e&2)!==0)A.B(A.C("Stream is already closed")) +s.bn(a,b)}, +p(){var s=this.a +if((s.e&2)!==0)A.B(A.C("Stream is already closed")) +s.eX()}, +$iaf:1} +A.dI.prototype={ +al(){var s=this.x +if(s!=null)s.bE()}, +am(){var s=this.x +if(s!=null)s.be()}, +cD(){var s=this.x +if(s!=null){this.x=null +return s.J()}return null}, +dN(a){var s,r,q,p +try{q=this.w +q===$&&A.G() +q.v(0,a)}catch(p){s=A.F(p) +r=A.R(p) +if((this.e&2)!==0)A.B(A.C("Stream is already closed")) +this.bn(s,r)}}, +dR(a,b){var s,r,q,p,o=this,n="Stream is already closed" +try{q=o.w +q===$&&A.G() +q.a3(a,b)}catch(p){s=A.F(p) +r=A.R(p) +if(s===a){if((o.e&2)!==0)A.B(A.C(n)) +o.bn(a,b)}else{if((o.e&2)!==0)A.B(A.C(n)) +o.bn(s,r)}}}, +dP(){var s,r,q,p,o=this +try{o.x=null +q=o.w +q===$&&A.G() +q.p()}catch(p){s=A.F(p) +r=A.R(p) +if((o.e&2)!==0)A.B(A.C("Stream is already closed")) +o.bn(s,r)}}} +A.fj.prototype={ +ef(a){return new A.eS(this.a,a,this.$ti.h("eS<1,2>"))}} +A.eS.prototype={ +R(a,b,c,d){var s=this.$ti,r=$.j,q=b===!0?1:0,p=d!=null?32:0,o=A.ib(r,a,s.y[1]),n=A.ic(r,d),m=new A.dI(o,n,r.au(c,t.H),r,q|p,s.h("dI<1,2>")) +m.w=this.a.$1(new A.f_(m)) +m.x=this.b.aW(m.gdM(),m.gdO(),m.gdQ()) +return m}, +aW(a,b,c){return this.R(a,null,b,c)}} +A.dA.prototype={ +v(a,b){var s,r=this.d +if(r==null)throw A.a(A.C("Sink is closed")) +this.$ti.y[1].a(b) +s=r.a +if((s.e&2)!==0)A.B(A.C("Stream is already closed")) +s.dm(b)}, +a3(a,b){var s=this.d +if(s==null)throw A.a(A.C("Sink is closed")) +s.a3(a,b)}, +p(){var s=this.d +if(s==null)return +this.d=null +this.c.$1(s)}, +$iaf:1} +A.dJ.prototype={ +ef(a){return this.hQ(a)}} +A.nE.prototype={ +$1(a){var s=this +return new A.dA(s.a,s.b,s.c,a,s.e.h("@<0>").H(s.d).h("dA<1,2>"))}, +$S(){return this.e.h("@<0>").H(this.d).h("dA<1,2>(af<2>)")}} +A.au.prototype={} +A.iQ.prototype={$ip0:1} +A.dR.prototype={$iZ:1} +A.iP.prototype={ +bQ(a,b,c){var s,r,q,p,o,n,m,l,k=this.gdS(),j=k.a +if(j===B.d){A.fx(b,c) +return}s=k.b +r=j.ga1() +m=j.ghi() +m.toString +q=m +p=$.j +try{$.j=q +s.$5(j,r,a,b,c) +$.j=p}catch(l){o=A.F(l) +n=A.R(l) +$.j=p +m=b===o?c:n +q.bQ(j,o,m)}}, +$iy:1} +A.id.prototype={ +gf3(){var s=this.at +return s==null?this.at=new A.dR(this):s}, +ga1(){return this.ax.gf3()}, +gba(){return this.as.a}, +cj(a){var s,r,q +try{this.bf(a,t.H)}catch(q){s=A.F(q) +r=A.R(q) +this.bQ(this,s,r)}}, +ck(a,b,c){var s,r,q +try{this.bg(a,b,t.H,c)}catch(q){s=A.F(q) +r=A.R(q) +this.bQ(this,s,r)}}, +hr(a,b,c,d,e){var s,r,q +try{this.eL(a,b,c,t.H,d,e)}catch(q){s=A.F(q) +r=A.R(q) +this.bQ(this,s,r)}}, +eg(a,b){return new A.mk(this,this.au(a,b),b)}, +fX(a,b,c){return new A.mm(this,this.bd(a,b,c),c,b)}, +cS(a){return new A.mj(this,this.au(a,t.H))}, +eh(a,b){return new A.ml(this,this.bd(a,t.H,b),b)}, +i(a,b){var s,r=this.ay,q=r.i(0,b) +if(q!=null||r.a4(b))return q +s=this.ax.i(0,b) +if(s!=null)r.q(0,b,s) +return s}, +c5(a,b){this.bQ(this,a,b)}, +h8(a,b){var s=this.Q,r=s.a +return s.b.$5(r,r.ga1(),this,a,b)}, +bf(a){var s=this.a,r=s.a +return s.b.$4(r,r.ga1(),this,a)}, +bg(a,b){var s=this.b,r=s.a +return s.b.$5(r,r.ga1(),this,a,b)}, +eL(a,b,c){var s=this.c,r=s.a +return s.b.$6(r,r.ga1(),this,a,b,c)}, +au(a){var s=this.d,r=s.a +return s.b.$4(r,r.ga1(),this,a)}, +bd(a){var s=this.e,r=s.a +return s.b.$4(r,r.ga1(),this,a)}, +d6(a){var s=this.f,r=s.a +return s.b.$4(r,r.ga1(),this,a)}, +h4(a,b){var s=this.r,r=s.a +if(r===B.d)return null +return s.b.$5(r,r.ga1(),this,a,b)}, +aZ(a){var s=this.w,r=s.a +return s.b.$4(r,r.ga1(),this,a)}, +ej(a,b){var s=this.x,r=s.a +return s.b.$5(r,r.ga1(),this,a,b)}, +hj(a){var s=this.z,r=s.a +return s.b.$4(r,r.ga1(),this,a)}, +gfE(){return this.a}, +gfG(){return this.b}, +gfF(){return this.c}, +gfA(){return this.d}, +gfB(){return this.e}, +gfz(){return this.f}, +gfd(){return this.r}, +ge2(){return this.w}, +gfa(){return this.x}, +gf9(){return this.y}, +gft(){return this.z}, +gfg(){return this.Q}, +gdS(){return this.as}, +ghi(){return this.ax}, +gfm(){return this.ay}} +A.mk.prototype={ +$0(){return this.a.bf(this.b,this.c)}, +$S(){return this.c.h("0()")}} +A.mm.prototype={ +$1(a){var s=this +return s.a.bg(s.b,a,s.d,s.c)}, +$S(){return this.d.h("@<0>").H(this.c).h("1(2)")}} +A.mj.prototype={ +$0(){return this.a.cj(this.b)}, +$S:0} +A.ml.prototype={ +$1(a){return this.a.ck(this.b,a,this.c)}, +$S(){return this.c.h("~(0)")}} +A.o5.prototype={ +$0(){A.pZ(this.a,this.b)}, +$S:0} +A.iD.prototype={ +gfE(){return B.bD}, +gfG(){return B.bF}, +gfF(){return B.bE}, +gfA(){return B.bC}, +gfB(){return B.bx}, +gfz(){return B.bI}, +gfd(){return B.bz}, +ge2(){return B.bG}, +gfa(){return B.by}, +gf9(){return B.bH}, +gft(){return B.bB}, +gfg(){return B.bA}, +gdS(){return B.bw}, +ghi(){return null}, +gfm(){return $.tl()}, +gf3(){var s=$.nv +return s==null?$.nv=new A.dR(this):s}, +ga1(){var s=$.nv +return s==null?$.nv=new A.dR(this):s}, +gba(){return this}, +cj(a){var s,r,q +try{if(B.d===$.j){a.$0() +return}A.o6(null,null,this,a)}catch(q){s=A.F(q) +r=A.R(q) +A.fx(s,r)}}, +ck(a,b){var s,r,q +try{if(B.d===$.j){a.$1(b) +return}A.o8(null,null,this,a,b)}catch(q){s=A.F(q) +r=A.R(q) +A.fx(s,r)}}, +hr(a,b,c){var s,r,q +try{if(B.d===$.j){a.$2(b,c) +return}A.o7(null,null,this,a,b,c)}catch(q){s=A.F(q) +r=A.R(q) +A.fx(s,r)}}, +eg(a,b){return new A.nx(this,a,b)}, +fX(a,b,c){return new A.nz(this,a,c,b)}, +cS(a){return new A.nw(this,a)}, +eh(a,b){return new A.ny(this,a,b)}, +i(a,b){return null}, +c5(a,b){A.fx(a,b)}, +h8(a,b){return A.rx(null,null,this,a,b)}, +bf(a){if($.j===B.d)return a.$0() +return A.o6(null,null,this,a)}, +bg(a,b){if($.j===B.d)return a.$1(b) +return A.o8(null,null,this,a,b)}, +eL(a,b,c){if($.j===B.d)return a.$2(b,c) +return A.o7(null,null,this,a,b,c)}, +au(a){return a}, +bd(a){return a}, +d6(a){return a}, +h4(a,b){return null}, +aZ(a){A.o9(null,null,this,a)}, +ej(a,b){return A.oX(a,b)}, +hj(a){A.pz(a)}} +A.nx.prototype={ +$0(){return this.a.bf(this.b,this.c)}, +$S(){return this.c.h("0()")}} +A.nz.prototype={ +$1(a){var s=this +return s.a.bg(s.b,a,s.d,s.c)}, +$S(){return this.d.h("@<0>").H(this.c).h("1(2)")}} +A.nw.prototype={ +$0(){return this.a.cj(this.b)}, +$S:0} +A.ny.prototype={ +$1(a){return this.a.ck(this.b,a,this.c)}, +$S(){return this.c.h("~(0)")}} +A.cI.prototype={ +gl(a){return this.a}, +gF(a){return this.a===0}, +ga_(){return new A.cJ(this,A.t(this).h("cJ<1>"))}, +gaN(){var s=A.t(this) +return A.es(new A.cJ(this,s.h("cJ<1>")),new A.mG(this),s.c,s.y[1])}, +a4(a){var s,r +if(typeof a=="string"&&a!=="__proto__"){s=this.b +return s==null?!1:s[a]!=null}else if(typeof a=="number"&&(a&1073741823)===a){r=this.c +return r==null?!1:r[a]!=null}else return this.ib(a)}, +ib(a){var s=this.d +if(s==null)return!1 +return this.aQ(this.fh(s,a),a)>=0}, +i(a,b){var s,r,q +if(typeof b=="string"&&b!=="__proto__"){s=this.b +r=s==null?null:A.qU(s,b) +return r}else if(typeof b=="number"&&(b&1073741823)===b){q=this.c +r=q==null?null:A.qU(q,b) +return r}else return this.it(b)}, +it(a){var s,r,q=this.d +if(q==null)return null +s=this.fh(q,a) +r=this.aQ(s,a) +return r<0?null:s[r+1]}, +q(a,b,c){var s,r,q=this +if(typeof b=="string"&&b!=="__proto__"){s=q.b +q.f2(s==null?q.b=A.p8():s,b,c)}else if(typeof b=="number"&&(b&1073741823)===b){r=q.c +q.f2(r==null?q.c=A.p8():r,b,c)}else q.jf(b,c)}, +jf(a,b){var s,r,q,p=this,o=p.d +if(o==null)o=p.d=A.p8() +s=p.dC(a) +r=o[s] +if(r==null){A.p9(o,s,[a,b]);++p.a +p.e=null}else{q=p.aQ(r,a) +if(q>=0)r[q+1]=b +else{r.push(a,b);++p.a +p.e=null}}}, +aa(a,b){var s,r,q,p,o,n=this,m=n.f8() +for(s=m.length,r=A.t(n).y[1],q=0;q"))}} +A.io.prototype={ +gm(){var s=this.d +return s==null?this.$ti.c.a(s):s}, +k(){var s=this,r=s.b,q=s.c,p=s.a +if(r!==p.e)throw A.a(A.az(p)) +else if(q>=r.length){s.d=null +return!1}else{s.d=r[q] +s.c=q+1 +return!0}}} +A.f5.prototype={ +gt(a){var s=this,r=new A.dD(s,s.r,s.$ti.h("dD<1>")) +r.c=s.e +return r}, +gl(a){return this.a}, +gF(a){return this.a===0}, +K(a,b){var s,r +if(b!=="__proto__"){s=this.b +if(s==null)return!1 +return s[b]!=null}else{r=this.ia(b) +return r}}, +ia(a){var s=this.d +if(s==null)return!1 +return this.aQ(s[B.a.gB(a)&1073741823],a)>=0}, +gG(a){var s=this.e +if(s==null)throw A.a(A.C("No elements")) +return s.a}, +gC(a){var s=this.f +if(s==null)throw A.a(A.C("No elements")) +return s.a}, +v(a,b){var s,r,q=this +if(typeof b=="string"&&b!=="__proto__"){s=q.b +return q.f1(s==null?q.b=A.pa():s,b)}else if(typeof b=="number"&&(b&1073741823)===b){r=q.c +return q.f1(r==null?q.c=A.pa():r,b)}else return q.i_(b)}, +i_(a){var s,r,q=this,p=q.d +if(p==null)p=q.d=A.pa() +s=J.ay(a)&1073741823 +r=p[s] +if(r==null)p[s]=[q.dX(a)] +else{if(q.aQ(r,a)>=0)return!1 +r.push(q.dX(a))}return!0}, +A(a,b){var s +if(typeof b=="string"&&b!=="__proto__")return this.j2(this.b,b) +else{s=this.j1(b) +return s}}, +j1(a){var s,r,q,p,o=this.d +if(o==null)return!1 +s=J.ay(a)&1073741823 +r=o[s] +q=this.aQ(r,a) +if(q<0)return!1 +p=r.splice(q,1)[0] +if(0===r.length)delete o[s] +this.fS(p) +return!0}, +f1(a,b){if(a[b]!=null)return!1 +a[b]=this.dX(b) +return!0}, +j2(a,b){var s +if(a==null)return!1 +s=a[b] +if(s==null)return!1 +this.fS(s) +delete a[b] +return!0}, +fo(){this.r=this.r+1&1073741823}, +dX(a){var s,r=this,q=new A.nr(a) +if(r.e==null)r.e=r.f=q +else{s=r.f +s.toString +q.c=s +r.f=s.b=q}++r.a +r.fo() +return q}, +fS(a){var s=this,r=a.c,q=a.b +if(r==null)s.e=q +else r.b=q +if(q==null)s.f=r +else q.c=r;--s.a +s.fo()}, +aQ(a,b){var s,r +if(a==null)return-1 +s=a.length +for(r=0;r"))}, +gl(a){return this.b}, +gG(a){var s +if(this.b===0)throw A.a(A.C("No such element")) +s=this.c +s.toString +return s}, +gC(a){var s +if(this.b===0)throw A.a(A.C("No such element")) +s=this.c.c +s.toString +return s}, +gF(a){return this.b===0}, +dT(a,b,c){var s,r,q=this +if(b.a!=null)throw A.a(A.C("LinkedListEntry is already in a LinkedList"));++q.a +b.a=q +s=q.b +if(s===0){b.b=b +q.c=b.c=b +q.b=s+1 +return}r=a.c +r.toString +b.c=r +b.b=a +a.c=r.b=b +q.b=s+1}, +e5(a){var s,r,q=this;++q.a +s=a.b +s.c=a.c +a.c.b=s +r=--q.b +a.a=a.b=a.c=null +if(r===0)q.c=null +else if(a===q.c)q.c=s}} +A.iv.prototype={ +gm(){var s=this.c +return s==null?this.$ti.c.a(s):s}, +k(){var s=this,r=s.a +if(s.b!==r.a)throw A.a(A.az(s)) +if(r.b!==0)r=s.e&&s.d===r.gG(0) +else r=!0 +if(r){s.c=null +return!1}s.e=!0 +r=s.d +s.c=r +s.d=r.b +return!0}} +A.aF.prototype={ +gce(){var s=this.a +if(s==null||this===s.gG(0))return null +return this.c}} +A.x.prototype={ +gt(a){return new A.b0(a,this.gl(a),A.aE(a).h("b0"))}, +M(a,b){return this.i(a,b)}, +gF(a){return this.gl(a)===0}, +gG(a){if(this.gl(a)===0)throw A.a(A.am()) +return this.i(a,0)}, +gC(a){if(this.gl(a)===0)throw A.a(A.am()) +return this.i(a,this.gl(a)-1)}, +bc(a,b,c){return new A.E(a,b,A.aE(a).h("@").H(c).h("E<1,2>"))}, +Y(a,b){return A.b5(a,b,null,A.aE(a).h("x.E"))}, +ai(a,b){return A.b5(a,0,A.cR(b,"count",t.S),A.aE(a).h("x.E"))}, +az(a,b){var s,r,q,p,o=this +if(o.gF(a)){s=J.q9(0,A.aE(a).h("x.E")) +return s}r=o.i(a,0) +q=A.b1(o.gl(a),r,!0,A.aE(a).h("x.E")) +for(p=1;p").H(b).h("ai<1,2>"))}, +a0(a,b,c){var s=this.gl(a) +A.bb(b,c,s) +return A.aw(this.cq(a,b,c),!0,A.aE(a).h("x.E"))}, +cq(a,b,c){A.bb(b,c,this.gl(a)) +return A.b5(a,b,c,A.aE(a).h("x.E"))}, +eo(a,b,c,d){var s +A.bb(b,c,this.gl(a)) +for(s=b;s").b(d)){r=e +q=d}else{q=J.e3(d,e).az(0,!1) +r=0}p=J.V(q) +if(r+s>p.gl(q))throw A.a(A.q6()) +if(r=0;--o)this.q(a,b+o,p.i(q,r+o)) +else for(o=0;o"))}, +gl(a){return J.ae(this.ga_())}, +gF(a){return J.j0(this.ga_())}, +gaN(){return new A.f6(this,A.t(this).h("f6"))}, +j(a){return A.oQ(this)}, +$iaa:1} +A.ks.prototype={ +$1(a){var s=this.a,r=s.i(0,a) +if(r==null)r=A.t(s).h("T.V").a(r) +return new A.bw(a,r,A.t(s).h("bw"))}, +$S(){return A.t(this.a).h("bw(T.K)")}} +A.kt.prototype={ +$2(a,b){var s,r=this.a +if(!r.a)this.b.a+=", " +r.a=!1 +r=this.b +s=A.v(a) +s=r.a+=s +r.a=s+": " +s=A.v(b) +r.a+=s}, +$S:44} +A.f6.prototype={ +gl(a){var s=this.a +return s.gl(s)}, +gF(a){var s=this.a +return s.gF(s)}, +gG(a){var s=this.a +s=s.i(0,J.fG(s.ga_())) +return s==null?this.$ti.y[1].a(s):s}, +gC(a){var s=this.a +s=s.i(0,J.j1(s.ga_())) +return s==null?this.$ti.y[1].a(s):s}, +gt(a){var s=this.a +return new A.iw(J.M(s.ga_()),s,this.$ti.h("iw<1,2>"))}} +A.iw.prototype={ +k(){var s=this,r=s.a +if(r.k()){s.c=s.b.i(0,r.gm()) +return!0}s.c=null +return!1}, +gm(){var s=this.c +return s==null?this.$ti.y[1].a(s):s}} +A.di.prototype={ +gF(a){return this.a===0}, +bc(a,b,c){return new A.cs(this,b,this.$ti.h("@<1>").H(c).h("cs<1,2>"))}, +j(a){return A.oL(this,"{","}")}, +ai(a,b){return A.oW(this,b,this.$ti.c)}, +Y(a,b){return A.qs(this,b,this.$ti.c)}, +gG(a){var s,r=A.iu(this,this.r,this.$ti.c) +if(!r.k())throw A.a(A.am()) +s=r.d +return s==null?r.$ti.c.a(s):s}, +gC(a){var s,r,q=A.iu(this,this.r,this.$ti.c) +if(!q.k())throw A.a(A.am()) +s=q.$ti.c +do{r=q.d +if(r==null)r=s.a(r)}while(q.k()) +return r}, +M(a,b){var s,r,q,p=this +A.ab(b,"index") +s=A.iu(p,p.r,p.$ti.c) +for(r=b;s.k();){if(r===0){q=s.d +return q==null?s.$ti.c.a(q):q}--r}throw A.a(A.hb(b,b-r,p,null,"index"))}, +$iu:1, +$if:1} +A.ff.prototype={} +A.nR.prototype={ +$0(){var s,r +try{s=new TextDecoder("utf-8",{fatal:true}) +return s}catch(r){}return null}, +$S:26} +A.nQ.prototype={ +$0(){var s,r +try{s=new TextDecoder("utf-8",{fatal:false}) +return s}catch(r){}return null}, +$S:26} +A.fI.prototype={ +jW(a){return B.ap.a5(a)}} +A.iM.prototype={ +a5(a){var s,r,q,p=A.bb(0,null,a.length),o=new Uint8Array(p) +for(s=~this.a,r=0;r=0){g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(f) +if(g===k)continue +k=g}else{if(f===-1){if(o<0){e=p==null?null:p.a.length +if(e==null)e=0 +o=e+(r-q) +n=r}++m +if(k===61)continue}k=g}if(f!==-2){if(p==null){p=new A.ax("") +e=p}else e=p +e.a+=B.a.n(a0,q,r) +d=A.aB(k) +e.a+=d +q=l +continue}}throw A.a(A.aj("Invalid base64 data",a0,r))}if(p!=null){e=B.a.n(a0,q,a2) +e=p.a+=e +d=e.length +if(o>=0)A.pM(a0,n,a2,o,m,d) +else{c=B.b.aA(d-1,4)+1 +if(c===1)throw A.a(A.aj(a,a0,a2)) +for(;c<4;){e+="=" +p.a=e;++c}}e=p.a +return B.a.aM(a0,a1,a2,e.charCodeAt(0)==0?e:e)}b=a2-a1 +if(o>=0)A.pM(a0,n,a2,o,m,b) +else{c=B.b.aA(b,4) +if(c===1)throw A.a(A.aj(a,a0,a2)) +if(c>1)a0=B.a.aM(a0,a2,a2,c===2?"==":"=")}return a0}} +A.fN.prototype={} +A.cp.prototype={} +A.cq.prototype={} +A.h3.prototype={} +A.hU.prototype={ +cV(a){return new A.ft(!1).dD(a,0,null,!0)}} +A.hV.prototype={ +a5(a){var s,r,q=A.bb(0,null,a.length) +if(q===0)return new Uint8Array(0) +s=new Uint8Array(q*3) +r=new A.nS(s) +if(r.is(a,0,q)!==q)r.ea() +return B.e.a0(s,0,r.b)}} +A.nS.prototype={ +ea(){var s=this,r=s.c,q=s.b,p=s.b=q+1 +r.$flags&2&&A.z(r) +r[q]=239 +q=s.b=p+1 +r[p]=191 +s.b=q+1 +r[q]=189}, +ju(a,b){var s,r,q,p,o=this +if((b&64512)===56320){s=65536+((a&1023)<<10)|b&1023 +r=o.c +q=o.b +p=o.b=q+1 +r.$flags&2&&A.z(r) +r[q]=s>>>18|240 +q=o.b=p+1 +r[p]=s>>>12&63|128 +p=o.b=q+1 +r[q]=s>>>6&63|128 +o.b=p+1 +r[p]=s&63|128 +return!0}else{o.ea() +return!1}}, +is(a,b,c){var s,r,q,p,o,n,m,l,k=this +if(b!==c&&(a.charCodeAt(c-1)&64512)===55296)--c +for(s=k.c,r=s.$flags|0,q=s.length,p=b;p=q)break +k.b=n+1 +r&2&&A.z(s) +s[n]=o}else{n=o&64512 +if(n===55296){if(k.b+4>q)break +m=p+1 +if(k.ju(o,a.charCodeAt(m)))p=m}else if(n===56320){if(k.b+3>q)break +k.ea()}else if(o<=2047){n=k.b +l=n+1 +if(l>=q)break +k.b=l +r&2&&A.z(s) +s[n]=o>>>6|192 +k.b=l+1 +s[l]=o&63|128}else{n=k.b +if(n+2>=q)break +l=k.b=n+1 +r&2&&A.z(s) +s[n]=o>>>12|224 +n=k.b=l+1 +s[l]=o>>>6&63|128 +k.b=n+1 +s[n]=o&63|128}}}return p}} +A.ft.prototype={ +dD(a,b,c,d){var s,r,q,p,o,n,m=this,l=A.bb(b,c,J.ae(a)) +if(b===l)return"" +if(a instanceof Uint8Array){s=a +r=s +q=0}else{r=A.vQ(a,b,l) +l-=b +q=b +b=0}if(d&&l-b>=15){p=m.a +o=A.vP(p,r,b,l) +if(o!=null){if(!p)return o +if(o.indexOf("\ufffd")<0)return o}}o=m.dF(r,b,l,d) +p=m.b +if((p&1)!==0){n=A.vR(p) +m.b=0 +throw A.a(A.aj(n,a,q+m.c))}return o}, +dF(a,b,c,d){var s,r,q=this +if(c-b>1000){s=B.b.I(b+c,2) +r=q.dF(a,b,s,!1) +if((q.b&1)!==0)return r +return r+q.dF(a,s,c,d)}return q.jS(a,b,c,d)}, +jS(a,b,c,d){var s,r,q,p,o,n,m,l=this,k=65533,j=l.b,i=l.c,h=new A.ax(""),g=b+1,f=a[b] +$label0$0:for(s=l.a;!0;){for(;!0;g=p){r="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE".charCodeAt(f)&31 +i=j<=32?f&61694>>>r:(f&63|i<<6)>>>0 +j=" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA".charCodeAt(j+r) +if(j===0){q=A.aB(i) +h.a+=q +if(g===c)break $label0$0 +break}else if((j&1)!==0){if(s)switch(j){case 69:case 67:q=A.aB(k) +h.a+=q +break +case 65:q=A.aB(k) +h.a+=q;--g +break +default:q=A.aB(k) +q=h.a+=q +h.a=q+A.aB(k) +break}else{l.b=j +l.c=g-1 +return""}j=0}if(g===c)break $label0$0 +p=g+1 +f=a[g]}p=g+1 +f=a[g] +if(f<128){while(!0){if(!(p=128){o=n-1 +p=n +break}p=n}if(o-g<20)for(m=g;m32)if(s){s=A.aB(k) +h.a+=s}else{l.b=77 +l.c=c +return""}l.b=j +l.c=i +s=h.a +return s.charCodeAt(0)==0?s:s}} +A.a7.prototype={ +aB(a){var s,r,q=this,p=q.c +if(p===0)return q +s=!q.a +r=q.b +p=A.aJ(p,r) +return new A.a7(p===0?!1:s,r,p)}, +il(a){var s,r,q,p,o,n,m=this.c +if(m===0)return $.b9() +s=m+a +r=this.b +q=new Uint16Array(s) +for(p=m-1;p>=0;--p)q[p+a]=r[p] +o=this.a +n=A.aJ(s,q) +return new A.a7(n===0?!1:o,q,n)}, +im(a){var s,r,q,p,o,n,m,l=this,k=l.c +if(k===0)return $.b9() +s=k-a +if(s<=0)return l.a?$.pI():$.b9() +r=l.b +q=new Uint16Array(s) +for(p=a;p>>0!==0)return l.dl(0,$.fD()) +for(k=0;k=0)return q.cu(b,r) +return b.cu(q,!r)}, +dl(a,b){var s,r,q=this,p=q.c +if(p===0)return b.aB(0) +s=b.c +if(s===0)return q +r=q.a +if(r!==b.a)return q.dr(b,r) +if(A.m9(q.b,p,b.b,s)>=0)return q.cu(b,r) +return b.cu(q,!r)}, +bK(a,b){var s,r,q,p,o,n,m,l=this.c,k=b.c +if(l===0||k===0)return $.b9() +s=l+k +r=this.b +q=b.b +p=new Uint16Array(s) +for(o=0;o0?p.aB(0):p}, +j0(a){var s,r,q,p=this +if(p.c0)q=q.bl(0,$.p3.ag()) +return p.a&&q.c>0?q.aB(0):q}, +fb(a){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c=this,b=c.c +if(b===$.qN&&a.c===$.qP&&c.b===$.qM&&a.b===$.qO)return +s=a.b +r=a.c +q=16-B.b.gfY(s[r-1]) +if(q>0){p=new Uint16Array(r+5) +o=A.qL(s,r,q,p) +n=new Uint16Array(b+5) +m=A.qL(c.b,b,q,n)}else{n=A.p4(c.b,0,b,b+2) +o=r +p=s +m=b}l=p[o-1] +k=m-o +j=new Uint16Array(m) +i=A.p5(p,o,k,j) +h=m+1 +g=n.$flags|0 +if(A.m9(n,m,j,i)>=0){g&2&&A.z(n) +n[m]=1 +A.ia(n,h,j,i,n)}else{g&2&&A.z(n) +n[m]=0}f=new Uint16Array(o+2) +f[o]=1 +A.ia(f,o+1,p,o,f) +e=m-1 +for(;k>0;){d=A.vc(l,n,e);--k +A.qR(d,f,0,n,k,o) +if(n[e]1;){q=$.pH() +if(q.c===0)A.B(B.at) +p=r.j0(q).j(0) +s.push(p) +o=p.length +if(o===1)s.push("000") +if(o===2)s.push("00") +if(o===3)s.push("0") +r=r.ik(q)}s.push(B.b.j(r.b[0])) +if(m)s.push("-") +return new A.eB(s,t.bJ).c6(0)}} +A.ma.prototype={ +$2(a,b){a=a+b&536870911 +a=a+((a&524287)<<10)&536870911 +return a^a>>>6}, +$S:4} +A.mb.prototype={ +$1(a){a=a+((a&67108863)<<3)&536870911 +a^=a>>>11 +return a+((a&16383)<<15)&536870911}, +$S:13} +A.il.prototype={ +h2(a){var s=this.a +if(s!=null)s.unregister(a)}} +A.fV.prototype={ +W(a,b){if(b==null)return!1 +return b instanceof A.fV&&this.a===b.a&&this.b===b.b&&this.c===b.c}, +gB(a){return A.ex(this.a,this.b,B.f,B.f)}, +ah(a,b){var s=B.b.ah(this.a,b.a) +if(s!==0)return s +return B.b.ah(this.b,b.b)}, +j(a){var s=this,r=A.u9(A.uM(s)),q=A.fW(A.uK(s)),p=A.fW(A.uG(s)),o=A.fW(A.uH(s)),n=A.fW(A.uJ(s)),m=A.fW(A.uL(s)),l=A.pV(A.uI(s)),k=s.b,j=k===0?"":A.pV(k) +k=r+"-"+q +if(s.c)return k+"-"+p+" "+o+":"+n+":"+m+"."+l+j+"Z" +else return k+"-"+p+" "+o+":"+n+":"+m+"."+l+j}} +A.bp.prototype={ +W(a,b){if(b==null)return!1 +return b instanceof A.bp&&this.a===b.a}, +gB(a){return B.b.gB(this.a)}, +ah(a,b){return B.b.ah(this.a,b.a)}, +j(a){var s,r,q,p,o,n=this.a,m=B.b.I(n,36e8),l=n%36e8 +if(n<0){m=0-m +n=0-l +s="-"}else{n=l +s=""}r=B.b.I(n,6e7) +n%=6e7 +q=r<10?"0":"" +p=B.b.I(n,1e6) +o=p<10?"0":"" +return s+m+":"+q+r+":"+o+p+"."+B.a.kx(B.b.j(n%1e6),6,"0")}} +A.mo.prototype={ +j(a){return this.af()}} +A.O.prototype={ +gbm(){return A.uF(this)}} +A.fK.prototype={ +j(a){var s=this.a +if(s!=null)return"Assertion failed: "+A.h4(s) +return"Assertion failed"}} +A.bF.prototype={} +A.aX.prototype={ +gdJ(){return"Invalid argument"+(!this.a?"(s)":"")}, +gdI(){return""}, +j(a){var s=this,r=s.c,q=r==null?"":" ("+r+")",p=s.d,o=p==null?"":": "+A.v(p),n=s.gdJ()+q+o +if(!s.a)return n +return n+s.gdI()+": "+A.h4(s.gey())}, +gey(){return this.b}} +A.dc.prototype={ +gey(){return this.b}, +gdJ(){return"RangeError"}, +gdI(){var s,r=this.e,q=this.f +if(r==null)s=q!=null?": Not less than or equal to "+A.v(q):"" +else if(q==null)s=": Not greater than or equal to "+A.v(r) +else if(q>r)s=": Not in inclusive range "+A.v(r)+".."+A.v(q) +else s=qe.length +else s=!1 +if(s)f=null +if(f==null){if(e.length>78)e=B.a.n(e,0,75)+"..." +return g+"\n"+e}for(r=1,q=0,p=!1,o=0;o1?g+(" (at line "+r+", character "+(f-q+1)+")\n"):g+(" (at character "+(f+1)+")\n") +m=e.length +for(o=f;o78){k="..." +if(f-q<75){j=q+75 +i=q}else{if(m-f<75){i=m-75 +j=m +k=""}else{i=f-36 +j=f+36}l="..."}}else{j=m +i=q +k=""}return g+l+B.a.n(e,i,j)+k+"\n"+B.a.bK(" ",f-i+l.length)+"^\n"}else return f!=null?g+(" (at offset "+A.v(f)+")"):g}, +$ia5:1} +A.hd.prototype={ +gbm(){return null}, +j(a){return"IntegerDivisionByZeroException"}, +$iO:1, +$ia5:1} +A.f.prototype={ +b7(a,b){return A.e9(this,A.t(this).h("f.E"),b)}, +bc(a,b,c){return A.es(this,b,A.t(this).h("f.E"),c)}, +az(a,b){return A.aw(this,b,A.t(this).h("f.E"))}, +cl(a){return this.az(0,!0)}, +gl(a){var s,r=this.gt(this) +for(s=0;r.k();)++s +return s}, +gF(a){return!this.gt(this).k()}, +ai(a,b){return A.oW(this,b,A.t(this).h("f.E"))}, +Y(a,b){return A.qs(this,b,A.t(this).h("f.E"))}, +hG(a,b){return new A.eC(this,b,A.t(this).h("eC"))}, +gG(a){var s=this.gt(this) +if(!s.k())throw A.a(A.am()) +return s.gm()}, +gC(a){var s,r=this.gt(this) +if(!r.k())throw A.a(A.am()) +do s=r.gm() +while(r.k()) +return s}, +M(a,b){var s,r +A.ab(b,"index") +s=this.gt(this) +for(r=b;s.k();){if(r===0)return s.gm();--r}throw A.a(A.hb(b,b-r,this,null,"index"))}, +j(a){return A.uq(this,"(",")")}} +A.bw.prototype={ +j(a){return"MapEntry("+A.v(this.a)+": "+A.v(this.b)+")"}} +A.H.prototype={ +gB(a){return A.e.prototype.gB.call(this,0)}, +j(a){return"null"}} +A.e.prototype={$ie:1, +W(a,b){return this===b}, +gB(a){return A.eA(this)}, +j(a){return"Instance of '"+A.kz(this)+"'"}, +gV(a){return A.xn(this)}, +toString(){return this.j(this)}} +A.dN.prototype={ +j(a){return this.a}, +$ia0:1} +A.ax.prototype={ +gl(a){return this.a.length}, +j(a){var s=this.a +return s.charCodeAt(0)==0?s:s}} +A.ls.prototype={ +$2(a,b){throw A.a(A.aj("Illegal IPv4 address, "+a,this.a,b))}, +$S:54} +A.lt.prototype={ +$2(a,b){throw A.a(A.aj("Illegal IPv6 address, "+a,this.a,b))}, +$S:61} +A.lu.prototype={ +$2(a,b){var s +if(b-a>4)this.a.$2("an IPv6 part can only contain a maximum of 4 hex digits",a) +s=A.aN(B.a.n(this.b,a,b),16) +if(s<0||s>65535)this.a.$2("each part must be in the range of `0x0..0xFFFF`",a) +return s}, +$S:4} +A.fq.prototype={ +gfN(){var s,r,q,p,o=this,n=o.w +if(n===$){s=o.a +r=s.length!==0?""+s+":":"" +q=o.c +p=q==null +if(!p||s==="file"){s=r+"//" +r=o.b +if(r.length!==0)s=s+r+"@" +if(!p)s+=q +r=o.d +if(r!=null)s=s+":"+A.v(r)}else s=r +s+=o.e +r=o.f +if(r!=null)s=s+"?"+r +r=o.r +if(r!=null)s=s+"#"+r +n!==$&&A.ox() +n=o.w=s.charCodeAt(0)==0?s:s}return n}, +gky(){var s,r,q=this,p=q.x +if(p===$){s=q.e +if(s.length!==0&&s.charCodeAt(0)===47)s=B.a.L(s,1) +r=s.length===0?B.r:A.aG(new A.E(A.d(s.split("/"),t.s),A.xb(),t.do),t.N) +q.x!==$&&A.ox() +p=q.x=r}return p}, +gB(a){var s,r=this,q=r.y +if(q===$){s=B.a.gB(r.gfN()) +r.y!==$&&A.ox() +r.y=s +q=s}return q}, +geP(){return this.b}, +gbb(){var s=this.c +if(s==null)return"" +if(B.a.u(s,"["))return B.a.n(s,1,s.length-1) +return s}, +gcd(){var s=this.d +return s==null?A.r7(this.a):s}, +gcf(){var s=this.f +return s==null?"":s}, +gcY(){var s=this.r +return s==null?"":s}, +kn(a){var s=this.a +if(a.length!==s.length)return!1 +return A.w2(a,s,0)>=0}, +ho(a){var s,r,q,p,o,n,m,l=this +a=A.nP(a,0,a.length) +s=a==="file" +r=l.b +q=l.d +if(a!==l.a)q=A.nO(q,a) +p=l.c +if(!(p!=null))p=r.length!==0||q!=null||s?"":null +o=l.e +if(!s)n=p!=null&&o.length!==0 +else n=!0 +if(n&&!B.a.u(o,"/"))o="/"+o +m=o +return A.fr(a,r,p,q,m,l.f,l.r)}, +ghb(){if(this.a!==""){var s=this.r +s=(s==null?"":s)===""}else s=!1 +return s}, +fn(a,b){var s,r,q,p,o,n,m +for(s=0,r=0;B.a.E(b,"../",r);){r+=3;++s}q=B.a.d2(a,"/") +while(!0){if(!(q>0&&s>0))break +p=B.a.hd(a,"/",q-1) +if(p<0)break +o=q-p +n=o!==2 +m=!1 +if(!n||o===3)if(a.charCodeAt(p+1)===46)n=!n||a.charCodeAt(p+2)===46 +else n=m +else n=m +if(n)break;--s +q=p}return B.a.aM(a,q+1,null,B.a.L(b,r-3*s))}, +hq(a){return this.cg(A.bm(a))}, +cg(a){var s,r,q,p,o,n,m,l,k,j,i,h=this +if(a.gZ().length!==0)return a +else{s=h.a +if(a.ger()){r=a.ho(s) +return r}else{q=h.b +p=h.c +o=h.d +n=h.e +if(a.gh9())m=a.gcZ()?a.gcf():h.f +else{l=A.vN(h,n) +if(l>0){k=B.a.n(n,0,l) +n=a.geq()?k+A.cN(a.gac()):k+A.cN(h.fn(B.a.L(n,k.length),a.gac()))}else if(a.geq())n=A.cN(a.gac()) +else if(n.length===0)if(p==null)n=s.length===0?a.gac():A.cN(a.gac()) +else n=A.cN("/"+a.gac()) +else{j=h.fn(n,a.gac()) +r=s.length===0 +if(!r||p!=null||B.a.u(n,"/"))n=A.cN(j) +else n=A.pg(j,!r||p!=null)}m=a.gcZ()?a.gcf():null}}}i=a.ges()?a.gcY():null +return A.fr(s,q,p,o,n,m,i)}, +ger(){return this.c!=null}, +gcZ(){return this.f!=null}, +ges(){return this.r!=null}, +gh9(){return this.e.length===0}, +geq(){return B.a.u(this.e,"/")}, +eM(){var s,r=this,q=r.a +if(q!==""&&q!=="file")throw A.a(A.a3("Cannot extract a file path from a "+q+" URI")) +q=r.f +if((q==null?"":q)!=="")throw A.a(A.a3(u.y)) +q=r.r +if((q==null?"":q)!=="")throw A.a(A.a3(u.l)) +if(r.c!=null&&r.gbb()!=="")A.B(A.a3(u.j)) +s=r.gky() +A.vF(s,!1) +q=A.oU(B.a.u(r.e,"/")?""+"/":"",s,"/") +q=q.charCodeAt(0)==0?q:q +return q}, +j(a){return this.gfN()}, +W(a,b){var s,r,q,p=this +if(b==null)return!1 +if(p===b)return!0 +s=!1 +if(t.dD.b(b))if(p.a===b.gZ())if(p.c!=null===b.ger())if(p.b===b.geP())if(p.gbb()===b.gbb())if(p.gcd()===b.gcd())if(p.e===b.gac()){r=p.f +q=r==null +if(!q===b.gcZ()){if(q)r="" +if(r===b.gcf()){r=p.r +q=r==null +if(!q===b.ges()){s=q?"":r +s=s===b.gcY()}}}}return s}, +$ihS:1, +gZ(){return this.a}, +gac(){return this.e}} +A.nN.prototype={ +$1(a){return A.vO(B.aO,a,B.j,!1)}, +$S:9} +A.hT.prototype={ +geO(){var s,r,q,p,o=this,n=null,m=o.c +if(m==null){m=o.a +s=o.b[0]+1 +r=B.a.aV(m,"?",s) +q=m.length +if(r>=0){p=A.fs(m,r+1,q,B.p,!1,!1) +q=r}else p=n +m=o.c=new A.ig("data","",n,n,A.fs(m,s,q,B.a6,!1,!1),p,n)}return m}, +j(a){var s=this.a +return this.b[0]===-1?"data:"+s:s}} +A.o_.prototype={ +$2(a,b){var s=this.a[a] +B.e.eo(s,0,96,b) +return s}, +$S:75} +A.o0.prototype={ +$3(a,b,c){var s,r,q +for(s=b.length,r=a.$flags|0,q=0;q>>0]=c}}, +$S:25} +A.b6.prototype={ +ger(){return this.c>0}, +geu(){return this.c>0&&this.d+10&&this.r>=this.a.length}, +gZ(){var s=this.w +return s==null?this.w=this.i9():s}, +i9(){var s,r=this,q=r.b +if(q<=0)return"" +s=q===4 +if(s&&B.a.u(r.a,"http"))return"http" +if(q===5&&B.a.u(r.a,"https"))return"https" +if(s&&B.a.u(r.a,"file"))return"file" +if(q===7&&B.a.u(r.a,"package"))return"package" +return B.a.n(r.a,0,q)}, +geP(){var s=this.c,r=this.b+3 +return s>r?B.a.n(this.a,r,s-1):""}, +gbb(){var s=this.c +return s>0?B.a.n(this.a,s,this.d):""}, +gcd(){var s,r=this +if(r.geu())return A.aN(B.a.n(r.a,r.d+1,r.e),null) +s=r.b +if(s===4&&B.a.u(r.a,"http"))return 80 +if(s===5&&B.a.u(r.a,"https"))return 443 +return 0}, +gac(){return B.a.n(this.a,this.e,this.f)}, +gcf(){var s=this.f,r=this.r +return s=q.length)return s +return new A.b6(B.a.n(q,0,r),s.b,s.c,s.d,s.e,s.f,r,s.w)}, +ho(a){var s,r,q,p,o,n,m,l,k,j,i,h=this,g=null +a=A.nP(a,0,a.length) +s=!(h.b===a.length&&B.a.u(h.a,a)) +r=a==="file" +q=h.c +p=q>0?B.a.n(h.a,h.b+3,q):"" +o=h.geu()?h.gcd():g +if(s)o=A.nO(o,a) +q=h.c +if(q>0)n=B.a.n(h.a,q,h.d) +else n=p.length!==0||o!=null||r?"":g +q=h.a +m=h.f +l=B.a.n(q,h.e,m) +if(!r)k=n!=null&&l.length!==0 +else k=!0 +if(k&&!B.a.u(l,"/"))l="/"+l +k=h.r +j=m0)return b +s=b.c +if(s>0){r=a.b +if(r<=0)return b +q=r===4 +if(q&&B.a.u(a.a,"file"))p=b.e!==b.f +else if(q&&B.a.u(a.a,"http"))p=!b.fk("80") +else p=!(r===5&&B.a.u(a.a,"https"))||!b.fk("443") +if(p){o=r+1 +return new A.b6(B.a.n(a.a,0,o)+B.a.L(b.a,c+1),r,s+o,b.d+o,b.e+o,b.f+o,b.r+o,a.w)}else return this.fP().cg(b)}n=b.e +c=b.f +if(n===c){s=b.r +if(c0?l:m +o=k-n +return new A.b6(B.a.n(a.a,0,k)+B.a.L(s,n),a.b,a.c,a.d,m,c+o,b.r+o,a.w)}j=a.e +i=a.f +if(j===i&&a.c>0){for(;B.a.E(s,"../",n);)n+=3 +o=j-n+1 +return new A.b6(B.a.n(a.a,0,j)+"/"+B.a.L(s,n),a.b,a.c,a.d,j,c+o,b.r+o,a.w)}h=a.a +l=A.r_(this) +if(l>=0)g=l +else for(g=j;B.a.E(h,"../",g);)g+=3 +f=0 +while(!0){e=n+3 +if(!(e<=c&&B.a.E(s,"../",n)))break;++f +n=e}for(d="";i>g;){--i +if(h.charCodeAt(i)===47){if(f===0){d="/" +break}--f +d="/"}}if(i===g&&a.b<=0&&!B.a.E(h,"/",j)){n-=f*3 +d=""}o=i-n+d.length +return new A.b6(B.a.n(h,0,i)+d+B.a.L(s,n),a.b,a.c,a.d,j,c+o,b.r+o,a.w)}, +eM(){var s,r=this,q=r.b +if(q>=0){s=!(q===4&&B.a.u(r.a,"file")) +q=s}else q=!1 +if(q)throw A.a(A.a3("Cannot extract a file path from a "+r.gZ()+" URI")) +q=r.f +s=r.a +if(q0?s.gbb():r,n=s.geu()?s.gcd():r,m=s.a,l=s.f,k=B.a.n(m,s.e,l),j=s.r +l=l864e13)A.B(A.X(r,-864e13,864e13,"millisecondsSinceEpoch",null)) +A.cR(!0,"isUtc",t.y) +return new A.fV(r,0,!0)}if(a instanceof RegExp)throw A.a(A.K("structured clone of RegExp",null)) +if(typeof Promise!="undefined"&&a instanceof Promise)return A.a_(a,t.X) +q=Object.getPrototypeOf(a) +if(q===Object.prototype||q===null){p=t.X +o=A.a2(p,p) +s.q(0,a,o) +n=Object.keys(a) +m=[] +for(s=J.aM(n),p=s.gt(n);p.k();)m.push(A.rK(p.gm())) +for(l=0;l4294967296)throw A.a(new A.dc(k,k,!1,k,k,"max must be in range 0 < max \u2264 2^32, was "+a)) +if(a>255)if(a>65535)s=a>16777215?4:3 +else s=2 +else s=1 +r=this.a +r.$flags&2&&A.z(r,11) +r.setUint32(0,0,!1) +q=4-s +p=A.h(Math.pow(256,s)) +for(o=a-1,n=(a&o)===0;!0;){crypto.getRandomValues(J.cW(B.aW.gaI(r),q,s)) +m=r.getUint32(0,!1) +if(n)return(m&o)>>>0 +l=m%a +if(m-l+a>>0)&2147483647 +r^=r>>>6}r=r+(r<<3>>>0)&2147483647 +r^=r>>>11 +return r+(r<<15>>>0)&2147483647}} +A.hu.prototype={} +A.hR.prototype={} +A.ef.prototype={ +hR(a,b,c){var s=this.a.a +s===$&&A.G() +s.eC(this.gix(),new A.jJ(this))}, +hf(){return this.d++}, +p(){var s=0,r=A.o(t.H),q,p=this,o +var $async$p=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:if(p.r||(p.w.a.a&30)!==0){s=1 +break}p.r=!0 +o=p.a.b +o===$&&A.G() +o.p() +s=3 +return A.c(p.w.a,$async$p) +case 3:case 1:return A.m(q,r)}}) +return A.n($async$p,r)}, +iy(a){var s,r=this +if(r.c){a.toString +a=B.a0.ek(a)}if(a instanceof A.bc){s=r.e.A(0,a.a) +if(s!=null)s.a.P(a.b)}else if(a instanceof A.bq){s=r.e.A(0,a.a) +if(s!=null)s.h_(new A.h0(a.b),a.c)}else if(a instanceof A.ao)r.f.v(0,a) +else if(a instanceof A.bo){s=r.e.A(0,a.a) +if(s!=null)s.fZ(B.a_)}}, +bw(a){var s,r,q=this +if(q.r||(q.w.a.a&30)!==0)throw A.a(A.C("Tried to send "+a.j(0)+" over isolate channel, but the connection was closed!")) +s=q.a.b +s===$&&A.G() +r=q.c?B.a0.dk(a):a +s.a.v(0,r)}, +kG(a,b,c){var s,r=this +if(r.r||(r.w.a.a&30)!==0)return +s=a.a +if(b instanceof A.e8)r.bw(new A.bo(s)) +else r.bw(new A.bq(s,b,c))}, +hD(a){var s=this.f +new A.ap(s,A.t(s).h("ap<1>")).kq(new A.jK(this,a))}} +A.jJ.prototype={ +$0(){var s,r,q,p,o +for(s=this.a,r=s.e,q=r.gaN(),p=A.t(q),q=new A.b2(J.M(q.a),q.b,p.h("b2<1,2>")),p=p.y[1];q.k();){o=q.a;(o==null?p.a(o):o).fZ(B.as)}r.c2(0) +s.w.aU()}, +$S:0} +A.jK.prototype={ +$1(a){return this.hx(a)}, +hx(a){var s=0,r=A.o(t.H),q,p=2,o,n=this,m,l,k,j,i,h +var $async$$1=A.p(function(b,c){if(b===1){o=c +s=p}while(true)switch(s){case 0:i=null +p=4 +k=n.b.$1(a) +s=7 +return A.c(t.cG.b(k)?k:A.f3(k,t.O),$async$$1) +case 7:i=c +p=2 +s=6 +break +case 4:p=3 +h=o +m=A.F(h) +l=A.R(h) +k=n.a.kG(a,m,l) +q=k +s=1 +break +s=6 +break +case 3:s=2 +break +case 6:k=n.a +if(!(k.r||(k.w.a.a&30)!==0))k.bw(new A.bc(a.a,i)) +case 1:return A.m(q,r) +case 2:return A.l(o,r)}}) +return A.n($async$$1,r)}, +$S:79} +A.iy.prototype={ +h_(a,b){var s +if(b==null)s=this.b +else{s=A.d([],t.J) +if(b instanceof A.bg)B.c.aH(s,b.a) +else s.push(A.qz(b)) +s.push(A.qz(this.b)) +s=new A.bg(A.aG(s,t.a))}this.a.bA(a,s)}, +fZ(a){return this.h_(a,null)}} +A.fT.prototype={ +j(a){return"Channel was closed before receiving a response"}, +$ia5:1} +A.h0.prototype={ +j(a){return J.aW(this.a)}, +$ia5:1} +A.h_.prototype={ +dk(a){var s,r +if(a instanceof A.ao)return[0,a.a,this.h3(a.b)] +else if(a instanceof A.bq){s=J.aW(a.b) +r=a.c +r=r==null?null:r.j(0) +return[2,a.a,s,r]}else if(a instanceof A.bc)return[1,a.a,this.h3(a.b)] +else if(a instanceof A.bo)return A.d([3,a.a],t.t) +else return null}, +ek(a){var s,r,q,p +if(!t.j.b(a))throw A.a(B.aF) +s=J.V(a) +r=A.h(s.i(a,0)) +q=A.h(s.i(a,1)) +switch(r){case 0:return new A.ao(q,t.ah.a(this.h1(s.i(a,2)))) +case 2:p=A.vT(s.i(a,3)) +s=s.i(a,2) +if(s==null)s=t.K.a(s) +return new A.bq(q,s,p!=null?new A.dN(p):null) +case 1:return new A.bc(q,t.O.a(this.h1(s.i(a,2)))) +case 3:return new A.bo(q)}throw A.a(B.aG)}, +h3(a){var s,r,q,p,o,n,m,l,k,j,i,h,g,f +if(a==null)return a +if(a instanceof A.d8)return a.a +else if(a instanceof A.bY){s=a.a +r=a.b +q=[] +for(p=a.c,o=p.length,n=0;n")),g=g.h("P.E");s.k();){a8=s.d +h.push(this.dE(a8==null?g.a(a8):a8))}l.push(new A.cY(i,h))}f=J.j1(a7.a) +$label1$2:{if(f==null){s=a6 +break $label1$2}A.h(f) +s=f +break $label1$2}return new A.bh(new A.e6(n,l),s) +case 5:return new A.c6(B.ab[q.$1(1)],p.$1(2)) +case 6:return new A.bX(q.$1(1),p.$1(2)) +case 13:s.toString +return new A.c7(A.oF(B.ad,A.ad(J.aO(s,1)))) +case 7:return new A.c5(new A.ey(p.$1(1),q.$1(2)),q.$1(3)) +case 8:e=A.d([],t.be) +s=t.j +k=1 +while(!0){m=a7.a +m.toString +if(!(k")).kf(0,new A.kP(r))}, +jU(a,b){var s,r,q +for(s=this.z,s=A.iu(s,s.r,s.$ti.c),r=s.$ti.c;s.k();){q=s.d +if(q==null)q=r.a(q) +if(q!==b)q.bw(new A.ao(q.d++,a))}}} +A.kR.prototype={ +$1(a){var s=this.a +s.i6() +s.as.p()}, +$S:85} +A.kS.prototype={ +$1(a){return this.a.iA(this.b,a)}, +$S:87} +A.kT.prototype={ +$1(a){return this.a.z.A(0,this.b)}, +$S:23} +A.kN.prototype={ +$0(){var s=this.b +return this.a.aE(s.a,s.b,s.c,s.d)}, +$S:92} +A.kO.prototype={ +$0(){return this.a.r.A(0,this.b.a)}, +$S:108} +A.kQ.prototype={ +$0(){var s,r=this.b +if(r==null)return this.a.w.length===0 +else{s=this.a.w +return s.length!==0&&B.c.gG(s)===r}}, +$S:35} +A.kP.prototype={ +$1(a){return this.a.$0()}, +$S:23} +A.fe.prototype={ +cP(a,b){return this.jL(a,b)}, +jL(a,b){var s=0,r=A.o(t.H),q=1,p,o=[],n=this,m,l,k,j,i +var $async$cP=A.p(function(c,d){if(c===1){p=d +s=q}while(true)switch(s){case 0:j=n.a +i=j.dZ(a,!0) +q=2 +m=n.b +l=m.hf() +k=new A.k($.j,t.D) +m.e.q(0,l,new A.iy(new A.a6(k,t.h),A.oT())) +m.bw(new A.ao(l,new A.c5(b,i))) +s=5 +return A.c(k,$async$cP) +case 5:o.push(4) +s=3 +break +case 2:o=[1] +case 3:q=1 +j.cF(i) +s=o.pop() +break +case 4:return A.m(null,r) +case 1:return A.l(p,r)}}) +return A.n($async$cP,r)}} +A.i2.prototype={ +dk(a){var s,r,q +$label0$0:{if(a instanceof A.ao){s=new A.ak(0,{i:a.a,p:this.jc(a.b)}) +break $label0$0}if(a instanceof A.bc){s=new A.ak(1,{i:a.a,p:this.jd(a.b)}) +break $label0$0}if(a instanceof A.bq){r=a.c +q=J.aW(a.b) +s=r==null?null:r.j(0) +s=new A.ak(2,[a.a,q,s]) +break $label0$0}if(a instanceof A.bo){s=new A.ak(3,a.a) +break $label0$0}s=null}return A.d([s.a,s.b],t.f)}, +ek(a){var s,r,q,p,o,n,m=null,l="Pattern matching error",k={} +k.a=null +s=a.length===2 +if(s){r=a[0] +q=k.a=a[1]}else{q=m +r=q}if(!s)throw A.a(A.C(l)) +r=A.h(A.r(r)) +$label0$0:{if(0===r){s=new A.lV(k,this).$0() +break $label0$0}if(1===r){s=new A.lW(k,this).$0() +break $label0$0}if(2===r){t.c.a(q) +s=q.length===3 +p=m +o=m +if(s){n=q[0] +p=q[1] +o=q[2]}else n=m +if(!s)A.B(A.C(l)) +n=A.h(A.r(n)) +A.ad(p) +s=new A.bq(n,p,o!=null?new A.dN(A.ad(o)):m) +break $label0$0}if(3===r){s=new A.bo(A.h(A.r(q))) +break $label0$0}s=A.B(A.K("Unknown message tag "+r,m))}return s}, +jc(a){var s,r,q,p,o,n,m,l,k,j,i,h=null +$label0$0:{s=h +if(a==null)break $label0$0 +if(a instanceof A.bY){s=a.a +r=a.b +q=[] +for(p=a.c,o=p.length,n=0;n") +q=new A.bA(A.aw(new A.E(s,new A.lO(),q),!0,q.h("P.E"))) +s=q +break $label0$0}s=A.B(A.K("Unknown request tag "+r,m))}return s}, +jd(a){var s,r +$label0$0:{s=null +if(a==null)break $label0$0 +if(a instanceof A.aH){r=a.a +s=A.bQ(r)?r:A.h(r) +break $label0$0}if(a instanceof A.bC){s=this.je(a) +break $label0$0}}return s}, +je(a){var s,r,q,p=a.a,o=J.V(p) +if(o.gF(p)){p=self +return{c:new p.Array(),r:new p.Array()}}else{s=J.cX(o.gG(p).ga_(),new A.lU(),t.N).cl(0) +r=A.d([],t.fk) +for(p=o.gt(p);p.k();){q=[] +for(o=J.M(p.gm().gaN());o.k();)q.push(this.e9(o.gm())) +r.push(q)}return{c:s,r:r}}}, +ij(a){var s,r,q,p,o,n,m,l,k,j +if(a==null)return null +else if(typeof a==="boolean")return new A.aH(A.bN(a)) +else if(typeof a==="number")return new A.aH(A.h(A.r(a))) +else{t.m.a(a) +s=a.c +s=t.u.b(s)?s:new A.ai(s,A.Q(s).h("ai<1,i>")) +r=t.N +s=J.cX(s,new A.lS(),r) +q=A.aw(s,!0,s.$ti.h("P.E")) +p=A.d([],t.d) +s=a.r +s=J.M(t.e9.b(s)?s:new A.ai(s,A.Q(s).h("ai<1,w>"))) +o=t.X +for(;s.k();){n=s.gm() +m=A.a2(r,o) +n=A.up(n,0,o) +l=J.M(n.a) +n=n.b +k=new A.em(l,n) +for(;k.k();){j=k.c +j=j>=0?new A.ak(n+j,l.gm()):A.B(A.am()) +m.q(0,q[j.a],this.e8(j.b))}p.push(m)}return new A.bC(p)}}, +e9(a){var s +$label0$0:{if(a==null){s=null +break $label0$0}if(A.bn(a)){s=a +break $label0$0}if(A.bQ(a)){s=a +break $label0$0}if(typeof a=="string"){s=a +break $label0$0}if(typeof a=="number"){s=A.d([15,a],t.n) +break $label0$0}if(a instanceof A.a7){s=A.d([14,a.j(0)],t.f) +break $label0$0}if(t.I.b(a)){s=new Uint8Array(A.iS(a)) +break $label0$0}s=A.B(A.K("Unknown db value: "+A.v(a),null))}return s}, +e8(a){var s,r,q,p=null +if(a!=null)if(typeof a==="number")return A.h(A.r(a)) +else if(typeof a==="boolean")return A.bN(a) +else if(typeof a==="string")return A.ad(a) +else if(A.kh(a,"Uint8Array"))return t.Z.a(a) +else{t.c.a(a) +s=a.length===2 +if(s){r=a[0] +q=a[1]}else{q=p +r=q}if(!s)throw A.a(A.C("Pattern matching error")) +if(r==14)return A.p6(A.ad(q),p) +else return A.r(q)}else return p}} +A.lV.prototype={ +$0(){var s=t.m.a(this.a.a) +return new A.ao(s.i,this.b.ii(s.p))}, +$S:109} +A.lW.prototype={ +$0(){var s=t.m.a(this.a.a) +return new A.bc(s.i,this.b.ij(s.p))}, +$S:115} +A.lT.prototype={ +$1(a){return a}, +$S:9} +A.lP.prototype={ +$0(){var s,r,q,p,o,n,m=this.b,l=J.V(m),k=t.c,j=k.a(l.i(m,1)),i=t.u.b(j)?j:new A.ai(j,A.Q(j).h("ai<1,i>")) +i=J.cX(i,new A.lQ(),t.N) +s=A.aw(i,!0,i.$ti.h("P.E")) +i=l.gl(m) +r=A.d([],t.g7) +for(i=l.Y(m,2).ai(0,i-3),k=A.e9(i,i.$ti.h("f.E"),k),k=A.es(k,new A.lR(),A.t(k).h("f.E"),t.ee),i=A.t(k),k=new A.b2(J.M(k.a),k.b,i.h("b2<1,2>")),q=this.a.gjs(),i=i.y[1];k.k();){p=k.a +if(p==null)p=i.a(p) +o=J.V(p) +n=A.h(A.r(o.i(p,0))) +p=o.Y(p,1) +o=p.$ti.h("E") +r.push(new A.cY(n,A.aw(new A.E(p,q,o),!0,o.h("P.E"))))}m=l.i(m,l.gl(m)-1) +m=m==null?null:A.h(A.r(m)) +return new A.bh(new A.e6(s,r),m)}, +$S:38} +A.lQ.prototype={ +$1(a){return a}, +$S:9} +A.lR.prototype={ +$1(a){return a}, +$S:40} +A.lO.prototype={ +$1(a){var s,r,q +t.c.a(a) +s=a.length===2 +if(s){r=a[0] +q=a[1]}else{r=null +q=null}if(!s)throw A.a(A.C("Pattern matching error")) +A.ad(r) +return new A.bE(q==null?null:B.a8[A.h(A.r(q))],r)}, +$S:41} +A.lU.prototype={ +$1(a){return a}, +$S:9} +A.lS.prototype={ +$1(a){return a}, +$S:9} +A.dn.prototype={ +af(){return"UpdateKind."+this.b}} +A.bE.prototype={ +gB(a){return A.ex(this.a,this.b,B.f,B.f)}, +W(a,b){if(b==null)return!1 +return b instanceof A.bE&&b.a==this.a&&b.b===this.b}, +j(a){return"TableUpdate("+this.b+", kind: "+A.v(this.a)+")"}} +A.ov.prototype={ +$0(){return this.a.a.a.P(A.k4(this.b,this.c))}, +$S:0} +A.bW.prototype={ +J(){var s,r +if(this.c)return +for(s=this.b,r=0;!1;++r)s[r].$0() +this.c=!0}} +A.e8.prototype={ +j(a){return"Operation was cancelled"}, +$ia5:1} +A.an.prototype={ +p(){var s=0,r=A.o(t.H) +var $async$p=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:return A.m(null,r)}}) +return A.n($async$p,r)}} +A.e6.prototype={ +gB(a){return A.ex(B.o.ha(this.a),B.o.ha(this.b),B.f,B.f)}, +W(a,b){if(b==null)return!1 +return b instanceof A.e6&&B.o.en(b.a,this.a)&&B.o.en(b.b,this.b)}, +j(a){return"BatchedStatements("+A.v(this.a)+", "+A.v(this.b)+")"}} +A.cY.prototype={ +gB(a){return A.ex(this.a,B.o,B.f,B.f)}, +W(a,b){if(b==null)return!1 +return b instanceof A.cY&&b.a===this.a&&B.o.en(b.b,this.b)}, +j(a){return"ArgumentsForBatchedStatement("+this.a+", "+A.v(this.b)+")"}} +A.jz.prototype={} +A.kB.prototype={} +A.lm.prototype={} +A.ku.prototype={} +A.jD.prototype={} +A.ht.prototype={} +A.jS.prototype={} +A.i8.prototype={ +geA(){return!1}, +gc7(){return!1}, +fL(a,b,c){if(this.geA()||this.b>0)return this.a.ct(new A.m3(b,a,c),c) +else return a.$0()}, +by(a,b){return this.fL(a,!0,b)}, +cB(a,b){this.gc7()}, +ad(a,b){return this.kN(a,b)}, +kN(a,b){var s=0,r=A.o(t.aS),q,p=this,o +var $async$ad=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:s=3 +return A.c(p.by(new A.m8(p,a,b),t.aj),$async$ad) +case 3:o=d.gjK(0) +q=A.aw(o,!0,o.$ti.h("P.E")) +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$ad,r)}, +ci(a,b){return this.by(new A.m6(this,a,b),t.S)}, +aw(a,b){return this.by(new A.m7(this,a,b),t.S)}, +a8(a,b){return this.by(new A.m5(this,b,a),t.H)}, +kJ(a){return this.a8(a,null)}, +av(a){return this.by(new A.m4(this,a),t.H)}, +cQ(){return new A.f1(this,new A.a6(new A.k($.j,t.D),t.h),new A.bi())}, +cR(){return this.aT(this)}} +A.m3.prototype={ +$0(){return this.hz(this.c)}, +hz(a){var s=0,r=A.o(a),q,p=this +var $async$$0=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:if(p.a)A.pp() +s=3 +return A.c(p.b.$0(),$async$$0) +case 3:q=c +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$$0,r)}, +$S(){return this.c.h("D<0>()")}} +A.m8.prototype={ +$0(){var s=this.a,r=this.b,q=this.c +s.cB(r,q) +return s.gaK().ad(r,q)}, +$S:42} +A.m6.prototype={ +$0(){var s=this.a,r=this.b,q=this.c +s.cB(r,q) +return s.gaK().d9(r,q)}, +$S:22} +A.m7.prototype={ +$0(){var s=this.a,r=this.b,q=this.c +s.cB(r,q) +return s.gaK().aw(r,q)}, +$S:22} +A.m5.prototype={ +$0(){var s,r,q=this.b +if(q==null)q=B.t +s=this.a +r=this.c +s.cB(r,q) +return s.gaK().a8(r,q)}, +$S:2} +A.m4.prototype={ +$0(){var s=this.a +s.gc7() +return s.gaK().av(this.b)}, +$S:2} +A.iL.prototype={ +i5(){this.c=!0 +if(this.d)throw A.a(A.C("A transaction was used after being closed. Please check that you're awaiting all database operations inside a `transaction` block."))}, +aT(a){throw A.a(A.a3("Nested transactions aren't supported."))}, +gao(){return B.m}, +gc7(){return!1}, +geA(){return!0}, +$ihN:1} +A.fi.prototype={ +ap(a){var s,r,q=this +q.i5() +s=q.z +if(s==null){s=q.z=new A.a6(new A.k($.j,t.k),t.co) +r=q.as;++r.b +r.fL(new A.nA(q),!1,t.P).aj(new A.nB(r))}return s.a}, +gaK(){return this.e.e}, +aT(a){var s=this.at+1 +return new A.fi(this.y,new A.a6(new A.k($.j,t.D),t.h),a,s,A.rq(s),A.ro(s),A.rp(s),this.e,new A.bi())}, +bj(){var s=0,r=A.o(t.H),q,p=this +var $async$bj=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:if(!p.c){s=1 +break}s=3 +return A.c(p.a8(p.ay,B.t),$async$bj) +case 3:p.e1() +case 1:return A.m(q,r)}}) +return A.n($async$bj,r)}, +bG(){var s=0,r=A.o(t.H),q,p=2,o,n=[],m=this +var $async$bG=A.p(function(a,b){if(a===1){o=b +s=p}while(true)switch(s){case 0:if(!m.c){s=1 +break}p=3 +s=6 +return A.c(m.a8(m.ch,B.t),$async$bG) +case 6:n.push(5) +s=4 +break +case 3:n=[2] +case 4:p=2 +m.e1() +s=n.pop() +break +case 5:case 1:return A.m(q,r) +case 2:return A.l(o,r)}}) +return A.n($async$bG,r)}, +e1(){var s=this +if(s.at===0)s.e.e.a=!1 +s.Q.aU() +s.d=!0}} +A.nA.prototype={ +$0(){var s=0,r=A.o(t.P),q=1,p,o=this,n,m,l,k,j +var $async$$0=A.p(function(a,b){if(a===1){p=b +s=q}while(true)switch(s){case 0:q=3 +A.pp() +l=o.a +s=6 +return A.c(l.kJ(l.ax),$async$$0) +case 6:l.e.e.a=!0 +l.z.P(!0) +q=1 +s=5 +break +case 3:q=2 +j=p +n=A.F(j) +m=A.R(j) +l=o.a +l.z.bA(n,m) +l.e1() +s=5 +break +case 2:s=1 +break +case 5:s=7 +return A.c(o.a.Q.a,$async$$0) +case 7:return A.m(null,r) +case 1:return A.l(p,r)}}) +return A.n($async$$0,r)}, +$S:20} +A.nB.prototype={ +$0(){return this.a.b--}, +$S:45} +A.fY.prototype={ +gaK(){return this.e}, +gao(){return B.m}, +ap(a){return this.x.ct(new A.jI(this,a),t.y)}, +bu(a){return this.j8(a)}, +j8(a){var s=0,r=A.o(t.H),q=this,p,o,n,m +var $async$bu=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:n=q.e +m=n.y +m===$&&A.G() +p=a.c +s=m instanceof A.ht?2:4 +break +case 2:o=p +s=3 +break +case 4:s=m instanceof A.fg?5:7 +break +case 5:s=8 +return A.c(A.b_(m.a.gkS(),t.S),$async$bu) +case 8:o=c +s=6 +break +case 7:throw A.a(A.jU("Invalid delegate: "+n.j(0)+". The versionDelegate getter must not subclass DBVersionDelegate directly")) +case 6:case 3:if(o===0)o=null +s=9 +return A.c(a.cP(new A.i9(q,new A.bi()),new A.ey(o,p)),$async$bu) +case 9:s=m instanceof A.fg&&o!==p?10:11 +break +case 10:m.a.h5("PRAGMA user_version = "+p+";") +s=12 +return A.c(A.b_(null,t.H),$async$bu) +case 12:case 11:return A.m(null,r)}}) +return A.n($async$bu,r)}, +aT(a){var s=$.j +return new A.fi(B.aA,new A.a6(new A.k(s,t.D),t.h),a,0,"BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION",this,new A.bi())}, +p(){return this.x.ct(new A.jH(this),t.H)}, +gc7(){return this.r}, +geA(){return this.w}} +A.jI.prototype={ +$0(){var s=0,r=A.o(t.y),q,p=2,o,n=this,m,l,k,j,i,h,g,f,e +var $async$$0=A.p(function(a,b){if(a===1){o=b +s=p}while(true)switch(s){case 0:f=n.a +if(f.d){q=A.q2(new A.b4("Can't re-open a database after closing it. Please create a new database connection and open that instead."),null,t.y) +s=1 +break}k=f.f +if(k!=null)A.pZ(k.a,k.b) +j=f.e +i=t.y +h=A.b_(j.d,i) +s=3 +return A.c(t.bF.b(h)?h:A.f3(h,i),$async$$0) +case 3:if(b){q=f.c=!0 +s=1 +break}i=n.b +s=4 +return A.c(j.cc(i),$async$$0) +case 4:f.c=!0 +p=6 +s=9 +return A.c(f.bu(i),$async$$0) +case 9:q=!0 +s=1 +break +p=2 +s=8 +break +case 6:p=5 +e=o +m=A.F(e) +l=A.R(e) +f.f=new A.ak(m,l) +throw e +s=8 +break +case 5:s=2 +break +case 8:case 1:return A.m(q,r) +case 2:return A.l(o,r)}}) +return A.n($async$$0,r)}, +$S:46} +A.jH.prototype={ +$0(){var s=this.a +if(s.c&&!s.d){s.d=!0 +s.c=!1 +return s.e.p()}else return A.b_(null,t.H)}, +$S:2} +A.i9.prototype={ +aT(a){return this.e.aT(a)}, +ap(a){this.c=!0 +return A.b_(!0,t.y)}, +gaK(){return this.e.e}, +gc7(){return!1}, +gao(){return B.m}} +A.f1.prototype={ +gao(){return this.e.gao()}, +ap(a){var s,r,q,p=this,o=p.f +if(o!=null)return o.a +else{p.c=!0 +s=new A.k($.j,t.k) +r=new A.a6(s,t.co) +p.f=r +q=p.e;++q.b +q.by(new A.mr(p,r),t.P) +return s}}, +gaK(){return this.e.gaK()}, +aT(a){return this.e.aT(a)}, +p(){this.r.aU() +return A.b_(null,t.H)}} +A.mr.prototype={ +$0(){var s=0,r=A.o(t.P),q=this,p +var $async$$0=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:q.b.P(!0) +p=q.a +s=2 +return A.c(p.r.a,$async$$0) +case 2:--p.e.b +return A.m(null,r)}}) +return A.n($async$$0,r)}, +$S:20} +A.db.prototype={ +gjK(a){var s=this.b +return new A.E(s,new A.kD(this),A.Q(s).h("E<1,aa>"))}} +A.kD.prototype={ +$1(a){var s,r,q,p,o,n,m,l=A.a2(t.N,t.z) +for(s=this.a,r=s.a,q=r.length,s=s.c,p=J.V(a),o=0;o")).gG(0)).a7() +q.q(0,a,s)}return new A.ak(s,A.h(A.r(o.call(null,r)))===0)}} +A.fg.prototype={} +A.ky.prototype={ +jV(){var s,r,q,p,o,n +for(s=this.b,r=s.gaN(),q=A.t(r),r=new A.b2(J.M(r.a),r.b,q.h("b2<1,2>")),q=q.y[1];r.k();){p=r.a +if(p==null)p=q.a(p) +o=p.c +if(!o.d){n=$.e2().a +if(n!=null)n.unregister(p) +if(!o.d){o.d=!0 +if(!o.c){n=o.b +A.h(A.r(n.c.id.call(null,n.b))) +o.c=!0}n=o.b +n.b9() +A.h(A.r(n.c.to.call(null,n.b)))}p=p.b +if(!p.r)B.c.A(p.c.d,o)}}s.c2(0)}} +A.jT.prototype={ +$1(a){return Date.now()}, +$S:48} +A.oa.prototype={ +$1(a){var s=a.i(0,0) +if(typeof s=="number")return this.a.$1(s) +else return null}, +$S:37} +A.hj.prototype={ +gih(){var s=this.a +s===$&&A.G() +return s}, +gao(){if(this.b){var s=this.a +s===$&&A.G() +s=B.m!==s.gao()}else s=!1 +if(s)throw A.a(A.jU("LazyDatabase created with "+B.m.j(0)+", but underlying database is "+this.gih().gao().j(0)+".")) +return B.m}, +i1(){var s,r,q=this +if(q.b)return A.b_(null,t.H) +else{s=q.d +if(s!=null)return s.a +else{s=new A.k($.j,t.D) +r=q.d=new A.a6(s,t.h) +A.k4(q.e,t.x).bJ(new A.kl(q,r),r.gjQ(),t.P) +return s}}}, +cQ(){var s=this.a +s===$&&A.G() +return s.cQ()}, +cR(){var s=this.a +s===$&&A.G() +return s.cR()}, +ap(a){return this.i1().bI(new A.km(this,a),t.y)}, +av(a){var s=this.a +s===$&&A.G() +return s.av(a)}, +a8(a,b){var s=this.a +s===$&&A.G() +return s.a8(a,b)}, +ci(a,b){var s=this.a +s===$&&A.G() +return s.ci(a,b)}, +aw(a,b){var s=this.a +s===$&&A.G() +return s.aw(a,b)}, +ad(a,b){var s=this.a +s===$&&A.G() +return s.ad(a,b)}, +p(){if(this.b){var s=this.a +s===$&&A.G() +return s.p()}else return A.b_(null,t.H)}} +A.kl.prototype={ +$1(a){var s=this.a +s.a!==$&&A.pD() +s.a=a +s.b=!0 +this.b.aU()}, +$S:50} +A.km.prototype={ +$1(a){var s=this.a.a +s===$&&A.G() +return s.ap(this.b)}, +$S:51} +A.bi.prototype={ +ct(a,b){var s=this.a,r=new A.k($.j,t.D) +this.a=r +r=new A.kp(this,a,new A.a6(r,t.h),r,b) +if(s!=null)return s.bI(new A.kr(r,b),b) +else return r.$0()}} +A.kp.prototype={ +$0(){var s=this +return A.k4(s.b,s.e).aj(new A.kq(s.a,s.c,s.d))}, +$S(){return this.e.h("D<0>()")}} +A.kq.prototype={ +$0(){this.b.aU() +var s=this.a +if(s.a===this.c)s.a=null}, +$S:6} +A.kr.prototype={ +$1(a){return this.a.$0()}, +$S(){return this.b.h("D<0>(~)")}} +A.lL.prototype={ +$1(a){var s,r=this,q=a.data +if(r.a&&J.a4(q,"_disconnect")){s=r.b.a +s===$&&A.G() +s=s.a +s===$&&A.G() +s.p()}else{s=r.b.a +if(r.c){s===$&&A.G() +s=s.a +s===$&&A.G() +s.v(0,B.a4.ek(t.c.a(q)))}else{s===$&&A.G() +s=s.a +s===$&&A.G() +s.v(0,A.rK(q))}}}, +$S:10} +A.lM.prototype={ +$1(a){var s=this.b +if(this.a)s.postMessage(B.a4.dk(t.fJ.a(a))) +else s.postMessage(A.xw(a))}, +$S:8} +A.lN.prototype={ +$0(){if(this.a)this.b.postMessage("_disconnect") +this.b.close()}, +$S:0} +A.jE.prototype={ +T(){A.aC(this.a,"message",new A.jG(this),!1)}, +ak(a){return this.iz(a)}, +iz(a6){var s=0,r=A.o(t.H),q=1,p,o=this,n,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1,a2,a3,a4,a5 +var $async$ak=A.p(function(a7,a8){if(a7===1){p=a8 +s=q}while(true)switch(s){case 0:a3={} +k=a6 instanceof A.df +j=k?a6.a:null +s=k?3:4 +break +case 3:a3.a=a3.b=!1 +s=5 +return A.c(o.b.ct(new A.jF(a3,o),t.P),$async$ak) +case 5:i=o.c.a.i(0,j) +h=A.d([],t.L) +g=!1 +s=a3.b?6:7 +break +case 6:a5=J +s=8 +return A.c(A.e0(),$async$ak) +case 8:k=a5.M(a8) +case 9:if(!k.k()){s=10 +break}f=k.gm() +h.push(new A.ak(B.G,f)) +if(f===j)g=!0 +s=9 +break +case 10:case 7:s=i!=null?11:13 +break +case 11:k=i.a +e=k===B.w||k===B.F +g=k===B.al||k===B.am +s=12 +break +case 13:a5=a3.a +if(a5){s=14 +break}else a8=a5 +s=15 +break +case 14:s=16 +return A.c(A.dZ(j),$async$ak) +case 16:case 15:e=a8 +case 12:k=t.m.a(self) +d="Worker" in k +f=a3.b +c=a3.a +new A.ee(d,f,"SharedArrayBuffer" in k,c,h,B.v,e,g).di(o.a) +s=2 +break +case 4:if(a6 instanceof A.dh){o.c.eU(a6) +s=2 +break}k=a6 instanceof A.eH +b=k?a6.a:null +s=k?17:18 +break +case 17:s=19 +return A.c(A.hX(b),$async$ak) +case 19:a=a8 +o.a.postMessage(!0) +s=20 +return A.c(a.T(),$async$ak) +case 20:s=2 +break +case 18:n=null +m=null +a0=a6 instanceof A.fZ +if(a0){a1=a6.a +n=a1.a +m=a1.b}s=a0?21:22 +break +case 21:q=24 +case 27:switch(n){case B.an:s=29 +break +case B.G:s=30 +break +default:s=28 +break}break +case 29:s=31 +return A.c(A.og(m),$async$ak) +case 31:s=28 +break +case 30:s=32 +return A.c(A.fy(m),$async$ak) +case 32:s=28 +break +case 28:a6.di(o.a) +q=1 +s=26 +break +case 24:q=23 +a4=p +l=A.F(a4) +new A.ds(J.aW(l)).di(o.a) +s=26 +break +case 23:s=1 +break +case 26:s=2 +break +case 22:s=2 +break +case 2:return A.m(null,r) +case 1:return A.l(p,r)}}) +return A.n($async$ak,r)}} +A.jG.prototype={ +$1(a){this.a.ak(A.oY(t.m.a(a.data)))}, +$S:1} +A.jF.prototype={ +$0(){var s=0,r=A.o(t.P),q=this,p,o,n,m,l +var $async$$0=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:o=q.b +n=o.d +m=q.a +s=n!=null?2:4 +break +case 2:m.b=n.b +m.a=n.a +s=3 +break +case 4:l=m +s=5 +return A.c(A.cS(),$async$$0) +case 5:l.b=b +s=6 +return A.c(A.iX(),$async$$0) +case 6:p=b +m.a=p +o.d=new A.lx(p,m.b) +case 3:return A.m(null,r)}}) +return A.n($async$$0,r)}, +$S:20} +A.da.prototype={ +af(){return"ProtocolVersion."+this.b}} +A.lz.prototype={ +dj(a){this.aC(new A.lC(a))}, +eT(a){this.aC(new A.lB(a))}, +di(a){this.aC(new A.lA(a))}} +A.lC.prototype={ +$2(a,b){var s=b==null?B.B:b +this.a.postMessage(a,s)}, +$S:19} +A.lB.prototype={ +$2(a,b){var s=b==null?B.B:b +this.a.postMessage(a,s)}, +$S:19} +A.lA.prototype={ +$2(a,b){var s=b==null?B.B:b +this.a.postMessage(a,s)}, +$S:19} +A.jk.prototype={} +A.c8.prototype={ +aC(a){var s=this +A.dS(a,"SharedWorkerCompatibilityResult",A.d([s.e,s.f,s.r,s.c,s.d,A.pX(s.a),s.b.c],t.f),null)}} +A.ds.prototype={ +aC(a){A.dS(a,"Error",this.a,null)}, +j(a){return"Error in worker: "+this.a}, +$ia5:1} +A.dh.prototype={ +aC(a){var s,r,q=this,p={} +p.sqlite=q.a.j(0) +s=q.b +p.port=s +p.storage=q.c.b +p.database=q.d +r=q.e +p.initPort=r +p.migrations=q.r +p.new_serialization=q.w +p.v=q.f.c +s=A.d([s],t.W) +if(r!=null)s.push(r) +A.dS(a,"ServeDriftDatabase",p,s)}} +A.df.prototype={ +aC(a){A.dS(a,"RequestCompatibilityCheck",this.a,null)}} +A.ee.prototype={ +aC(a){var s=this,r={} +r.supportsNestedWorkers=s.e +r.canAccessOpfs=s.f +r.supportsIndexedDb=s.w +r.supportsSharedArrayBuffers=s.r +r.indexedDbExists=s.c +r.opfsExists=s.d +r.existing=A.pX(s.a) +r.v=s.b.c +A.dS(a,"DedicatedWorkerCompatibilityResult",r,null)}} +A.eH.prototype={ +aC(a){A.dS(a,"StartFileSystemServer",this.a,null)}} +A.fZ.prototype={ +aC(a){var s=this.a +A.dS(a,"DeleteDatabase",A.d([s.a.b,s.b],t.s),null)}} +A.od.prototype={ +$1(a){this.b.transaction.abort() +this.a.a=!1}, +$S:10} +A.os.prototype={ +$1(a){return t.m.a(a[1])}, +$S:55} +A.h1.prototype={ +eU(a){var s=a.w +this.a.hk(a.d,new A.jR(this,a)).hB(A.v5(a.b,a.f.c>=1,s),!s)}, +aX(a,b,c,d,e){return this.kv(a,b,c,d,e)}, +kv(a,b,c,d,a0){var s=0,r=A.o(t.x),q,p=this,o,n,m,l,k,j,i,h,g,f,e +var $async$aX=A.p(function(a1,a2){if(a1===1)return A.l(a2,r) +while(true)switch(s){case 0:s=3 +return A.c(A.lH(d),$async$aX) +case 3:f=a2 +e=null +case 4:switch(a0.a){case 0:s=6 +break +case 1:s=7 +break +case 3:s=8 +break +case 2:s=9 +break +case 4:s=10 +break +default:s=11 +break}break +case 6:s=12 +return A.c(A.l0("drift_db/"+a),$async$aX) +case 12:o=a2 +e=o.gb8() +s=5 +break +case 7:s=13 +return A.c(p.cA(a),$async$aX) +case 13:o=a2 +e=o.gb8() +s=5 +break +case 8:case 9:s=14 +return A.c(A.hc(a),$async$aX) +case 14:o=a2 +e=o.gb8() +s=5 +break +case 10:o=A.oK(null) +s=5 +break +case 11:o=null +case 5:s=c!=null&&o.cm("/database",0)===0?15:16 +break +case 15:n=c.$0() +s=17 +return A.c(t.eY.b(n)?n:A.f3(n,t.aD),$async$aX) +case 17:m=a2 +if(m!=null){l=o.aY(new A.eE("/database"),4).a +l.bi(m,0) +l.cn()}case 16:n=f.a +n=n.b +k=n.c1(B.i.a5(o.a),1) +j=n.c.e +i=j.a +j.q(0,i,o) +h=A.h(A.r(n.y.call(null,k,i,1))) +if(h===0)A.B(A.C("could not register vfs")) +n=$.t0() +n.a.set(o,h) +n=A.uw(t.N,t.eT) +g=new A.hZ(new A.nU(f,"/database",null,p.b,!0,b,new A.ky(n)),!1,!0,new A.bi(),new A.bi()) +if(e!=null){q=A.tZ(g,new A.mg(e,g)) +s=1 +break}else{q=g +s=1 +break}case 1:return A.m(q,r)}}) +return A.n($async$aX,r)}, +cA(a){return this.iG(a)}, +iG(a){var s=0,r=A.o(t.aT),q,p,o,n,m,l,k,j,i +var $async$cA=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:k=self +j=new k.SharedArrayBuffer(8) +i=k.Int32Array +i=t.ha.a(A.dY(i,[j])) +k.Atomics.store(i,0,-1) +i={clientVersion:1,root:"drift_db/"+a,synchronizationBuffer:j,communicationBuffer:new k.SharedArrayBuffer(67584)} +p=new k.Worker(A.eM().j(0)) +new A.eH(i).dj(p) +s=3 +return A.c(new A.f0(p,"message",!1,t.fF).gG(0),$async$cA) +case 3:o=A.qo(i.synchronizationBuffer) +i=i.communicationBuffer +n=A.qr(i,65536,2048) +k=k.Uint8Array +k=t.Z.a(A.dY(k,[i])) +m=A.ju("/",$.cV()) +l=$.fB() +q=new A.dr(o,new A.bj(i,n,k),m,l,"dart-sqlite3-vfs") +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$cA,r)}} +A.jR.prototype={ +$0(){var s=this.b,r=s.e,q=r!=null?new A.jO(r):null,p=this.a,o=A.uS(new A.hj(new A.jP(p,s,q)),!1,!0),n=new A.k($.j,t.D),m=new A.dg(s.c,o,new A.a9(n,t.F)) +n.aj(new A.jQ(p,s,m)) +return m}, +$S:56} +A.jO.prototype={ +$0(){var s=new A.k($.j,t.fX),r=this.a +r.postMessage(!0) +r.onmessage=A.aV(new A.jN(new A.a6(s,t.fu))) +return s}, +$S:57} +A.jN.prototype={ +$1(a){var s=t.dE.a(a.data),r=s==null?null:s +this.a.P(r)}, +$S:10} +A.jP.prototype={ +$0(){var s=this.b +return this.a.aX(s.d,s.r,this.c,s.a,s.c)}, +$S:58} +A.jQ.prototype={ +$0(){this.a.a.A(0,this.b.d) +this.c.b.hE()}, +$S:6} +A.mg.prototype={ +c3(a){return this.jO(a)}, +jO(a){var s=0,r=A.o(t.H),q=this,p +var $async$c3=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:s=2 +return A.c(a.p(),$async$c3) +case 2:s=q.b===a?3:4 +break +case 3:p=q.a.$0() +s=5 +return A.c(p instanceof A.k?p:A.f3(p,t.H),$async$c3) +case 5:case 4:return A.m(null,r)}}) +return A.n($async$c3,r)}} +A.dg.prototype={ +hB(a,b){var s,r,q;++this.c +s=t.X +s=A.vq(new A.kK(this),s,s).gjM().$1(a.ghK()) +r=a.$ti +q=new A.ea(r.h("ea<1>")) +q.b=new A.eV(q,a.ghF()) +q.a=new A.eW(s,q,r.h("eW<1>")) +this.b.hC(q,b)}} +A.kK.prototype={ +$1(a){var s=this.a +if(--s.c===0)s.d.aU() +s=a.a +if((s.e&2)!==0)A.B(A.C("Stream is already closed")) +s.eX()}, +$S:59} +A.lx.prototype={} +A.jo.prototype={ +$1(a){this.a.P(this.c.a(this.b.result))}, +$S:1} +A.jp.prototype={ +$1(a){var s=this.b.error +if(s==null)s=a +this.a.aJ(s)}, +$S:1} +A.jq.prototype={ +$1(a){var s=this.b.error +if(s==null)s=a +this.a.aJ(s)}, +$S:1} +A.kU.prototype={ +T(){A.aC(this.a,"connect",new A.kZ(this),!1)}, +dV(a){return this.iJ(a)}, +iJ(a){var s=0,r=A.o(t.H),q=this,p,o +var $async$dV=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:p=a.ports +o=J.aO(t.cl.b(p)?p:new A.ai(p,A.Q(p).h("ai<1,A>")),0) +o.start() +A.aC(o,"message",new A.kV(q,o),!1) +return A.m(null,r)}}) +return A.n($async$dV,r)}, +cC(a,b){return this.iH(a,b)}, +iH(a,b){var s=0,r=A.o(t.H),q=1,p,o=this,n,m,l,k,j,i,h,g +var $async$cC=A.p(function(c,d){if(c===1){p=d +s=q}while(true)switch(s){case 0:q=3 +n=A.oY(t.m.a(b.data)) +m=n +l=null +i=m instanceof A.df +if(i)l=m.a +s=i?7:8 +break +case 7:s=9 +return A.c(o.bX(l),$async$cC) +case 9:k=d +k.eT(a) +s=6 +break +case 8:if(m instanceof A.dh&&B.w===m.c){o.c.eU(n) +s=6 +break}if(m instanceof A.dh){i=o.b +i.toString +n.dj(i) +s=6 +break}i=A.K("Unknown message",null) +throw A.a(i) +case 6:q=1 +s=5 +break +case 3:q=2 +g=p +j=A.F(g) +new A.ds(J.aW(j)).eT(a) +a.close() +s=5 +break +case 2:s=1 +break +case 5:return A.m(null,r) +case 1:return A.l(p,r)}}) +return A.n($async$cC,r)}, +bX(a){return this.jm(a)}, +jm(a){var s=0,r=A.o(t.fM),q,p=this,o,n,m,l,k,j,i,h,g,f,e,d,c +var $async$bX=A.p(function(b,a0){if(b===1)return A.l(a0,r) +while(true)switch(s){case 0:l={} +k=t.m.a(self) +j="Worker" in k +s=3 +return A.c(A.iX(),$async$bX) +case 3:i=a0 +s=!j?4:6 +break +case 4:l=p.c.a.i(0,a) +if(l==null)o=null +else{l=l.a +l=l===B.w||l===B.F +o=l}h=A +g=!1 +f=!1 +e=i +d=B.C +c=B.v +s=o==null?7:9 +break +case 7:s=10 +return A.c(A.dZ(a),$async$bX) +case 10:s=8 +break +case 9:a0=o +case 8:q=new h.c8(g,f,e,d,c,a0,!1) +s=1 +break +s=5 +break +case 6:n=p.b +if(n==null)n=p.b=new k.Worker(A.eM().j(0)) +new A.df(a).dj(n) +k=new A.k($.j,t.a9) +l.a=l.b=null +m=new A.kY(l,new A.a6(k,t.bi),i) +l.b=A.aC(n,"message",new A.kW(m),!1) +l.a=A.aC(n,"error",new A.kX(p,m,n),!1) +q=k +s=1 +break +case 5:case 1:return A.m(q,r)}}) +return A.n($async$bX,r)}} +A.kZ.prototype={ +$1(a){return this.a.dV(a)}, +$S:1} +A.kV.prototype={ +$1(a){return this.a.cC(this.b,a)}, +$S:1} +A.kY.prototype={ +$4(a,b,c,d){var s,r=this.b +if((r.a.a&30)===0){r.P(new A.c8(!0,a,this.c,d,B.v,c,b)) +r=this.a +s=r.b +if(s!=null)s.J() +r=r.a +if(r!=null)r.J()}}, +$S:60} +A.kW.prototype={ +$1(a){var s=t.ed.a(A.oY(t.m.a(a.data))) +this.a.$4(s.f,s.d,s.c,s.a)}, +$S:1} +A.kX.prototype={ +$1(a){this.b.$4(!1,!1,!1,B.C) +this.c.terminate() +this.a.b=null}, +$S:1} +A.cc.prototype={ +af(){return"WasmStorageImplementation."+this.b}} +A.bL.prototype={ +af(){return"WebStorageApi."+this.b}} +A.hZ.prototype={} +A.nU.prototype={ +kw(){var s=this.Q.cc(this.as) +return s}, +bt(){var s=0,r=A.o(t.H),q +var $async$bt=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:q=A.f3(null,t.H) +s=2 +return A.c(q,$async$bt) +case 2:return A.m(null,r)}}) +return A.n($async$bt,r)}, +bv(a,b){return this.ja(a,b)}, +ja(a,b){var s=0,r=A.o(t.z),q=this +var $async$bv=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:q.kP(a,b) +s=!q.a?2:3 +break +case 2:s=4 +return A.c(q.bt(),$async$bv) +case 4:case 3:return A.m(null,r)}}) +return A.n($async$bv,r)}, +a8(a,b){return this.kK(a,b)}, +kK(a,b){var s=0,r=A.o(t.H),q=this +var $async$a8=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:s=2 +return A.c(q.bv(a,b),$async$a8) +case 2:return A.m(null,r)}}) +return A.n($async$a8,r)}, +aw(a,b){return this.kL(a,b)}, +kL(a,b){var s=0,r=A.o(t.S),q,p=this,o,n +var $async$aw=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:s=3 +return A.c(p.bv(a,b),$async$aw) +case 3:o=p.b.b +n=t.b.a(o.a.x2.call(null,o.b)) +q=A.h(self.Number(n)) +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$aw,r)}, +d9(a,b){return this.kO(a,b)}, +kO(a,b){var s=0,r=A.o(t.S),q,p=this,o +var $async$d9=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:s=3 +return A.c(p.bv(a,b),$async$d9) +case 3:o=p.b.b +q=A.h(A.r(o.a.x1.call(null,o.b))) +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$d9,r)}, +av(a){return this.kI(a)}, +kI(a){var s=0,r=A.o(t.H),q=this +var $async$av=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:q.kH(a) +s=!q.a?2:3 +break +case 2:s=4 +return A.c(q.bt(),$async$av) +case 4:case 3:return A.m(null,r)}}) +return A.n($async$av,r)}, +p(){var s=0,r=A.o(t.H),q=this +var $async$p=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:s=2 +return A.c(q.hO(),$async$p) +case 2:q.b.a7() +s=3 +return A.c(q.bt(),$async$p) +case 3:return A.m(null,r)}}) +return A.n($async$p,r)}} +A.fU.prototype={ +fT(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var s +A.rF("absolute",A.d([a,b,c,d,e,f,g,h,i,j,k,l,m,n,o],t.d4)) +s=this.a +s=s.S(a)>0&&!s.ab(a) +if(s)return a +s=this.b +return this.hc(0,s==null?A.ps():s,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)}, +aG(a){var s=null +return this.fT(a,s,s,s,s,s,s,s,s,s,s,s,s,s,s)}, +hc(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var s=A.d([b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q],t.d4) +A.rF("join",s) +return this.kp(new A.eP(s,t.eJ))}, +ko(a,b,c){var s=null +return this.hc(0,b,c,s,s,s,s,s,s,s,s,s,s,s,s,s,s)}, +kp(a){var s,r,q,p,o,n,m,l,k +for(s=a.gt(0),r=new A.eO(s,new A.jv()),q=this.a,p=!1,o=!1,n="";r.k();){m=s.gm() +if(q.ab(m)&&o){l=A.d9(m,q) +k=n.charCodeAt(0)==0?n:n +n=B.a.n(k,0,q.bH(k,!0)) +l.b=n +if(q.c8(n))l.e[0]=q.gbk() +n=""+l.j(0)}else if(q.S(m)>0){o=!q.ab(m) +n=""+m}else{if(!(m.length!==0&&q.ei(m[0])))if(p)n+=q.gbk() +n+=m}p=q.c8(m)}return n.charCodeAt(0)==0?n:n}, +aO(a,b){var s=A.d9(b,this.a),r=s.d,q=A.Q(r).h("aU<1>") +q=A.aw(new A.aU(r,new A.jw(),q),!0,q.h("f.E")) +s.d=q +r=s.b +if(r!=null)B.c.d_(q,0,r) +return s.d}, +bD(a){var s +if(!this.iI(a))return a +s=A.d9(a,this.a) +s.eF() +return s.j(0)}, +iI(a){var s,r,q,p,o,n,m,l,k=this.a,j=k.S(a) +if(j!==0){if(k===$.fC())for(s=0;s0)return o.bD(a) +if(m.S(a)<=0||m.ab(a))a=o.aG(a) +if(m.S(a)<=0&&m.S(b)>0)throw A.a(A.qe(n+a+'" from "'+b+'".')) +s=A.d9(b,m) +s.eF() +r=A.d9(a,m) +r.eF() +q=s.d +if(q.length!==0&&q[0]===".")return r.j(0) +q=s.b +p=r.b +if(q!=p)q=q==null||p==null||!m.eH(q,p) +else q=!1 +if(q)return r.j(0) +while(!0){q=s.d +if(q.length!==0){p=r.d +q=p.length!==0&&m.eH(q[0],p[0])}else q=!1 +if(!q)break +B.c.d7(s.d,0) +B.c.d7(s.e,1) +B.c.d7(r.d,0) +B.c.d7(r.e,1)}q=s.d +p=q.length +if(p!==0&&q[0]==="..")throw A.a(A.qe(n+a+'" from "'+b+'".')) +q=t.N +B.c.ew(r.d,0,A.b1(p,"..",!1,q)) +p=r.e +p[0]="" +B.c.ew(p,1,A.b1(s.d.length,m.gbk(),!1,q)) +m=r.d +q=m.length +if(q===0)return"." +if(q>1&&J.a4(B.c.gC(m),".")){B.c.hm(r.d) +m=r.e +m.pop() +m.pop() +m.push("")}r.b="" +r.hn() +return r.j(0)}, +kE(a){return this.eK(a,null)}, +iD(a,b){var s,r,q,p,o,n,m,l,k=this +a=a +b=b +r=k.a +q=r.S(a)>0 +p=r.S(b)>0 +if(q&&!p){b=k.aG(b) +if(r.ab(a))a=k.aG(a)}else if(p&&!q){a=k.aG(a) +if(r.ab(b))b=k.aG(b)}else if(p&&q){o=r.ab(b) +n=r.ab(a) +if(o&&!n)b=k.aG(b) +else if(n&&!o)a=k.aG(a)}m=k.iE(a,b) +if(m!==B.n)return m +s=null +try{s=k.eK(b,a)}catch(l){if(A.F(l) instanceof A.ez)return B.k +else throw l}if(r.S(s)>0)return B.k +if(J.a4(s,"."))return B.X +if(J.a4(s,".."))return B.k +return J.ae(s)>=3&&J.tW(s,"..")&&r.D(J.tO(s,2))?B.k:B.Y}, +iE(a,b){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e=this +if(a===".")a="" +s=e.a +r=s.S(a) +q=s.S(b) +if(r!==q)return B.k +for(p=0;pq.aO(0,s).length?s:r}} +A.jv.prototype={ +$1(a){return a!==""}, +$S:3} +A.jw.prototype={ +$1(a){return a.length!==0}, +$S:3} +A.ob.prototype={ +$1(a){return a==null?"null":'"'+a+'"'}, +$S:62} +A.dG.prototype={ +j(a){return this.a}} +A.dH.prototype={ +j(a){return this.a}} +A.kg.prototype={ +hA(a){var s=this.S(a) +if(s>0)return B.a.n(a,0,s) +return this.ab(a)?a[0]:null}, +hl(a){var s,r=null,q=a.length +if(q===0)return A.al(r,r,r,r) +s=A.ju(r,this).aO(0,a) +if(this.D(a.charCodeAt(q-1)))B.c.v(s,"") +return A.al(r,r,s,r)}, +cT(a,b){return a===b}, +eH(a,b){return a===b}} +A.kw.prototype={ +gev(){var s=this.d +if(s.length!==0)s=J.a4(B.c.gC(s),"")||!J.a4(B.c.gC(this.e),"") +else s=!1 +return s}, +hn(){var s,r,q=this +while(!0){s=q.d +if(!(s.length!==0&&J.a4(B.c.gC(s),"")))break +B.c.hm(q.d) +q.e.pop()}s=q.e +r=s.length +if(r!==0)s[r-1]=""}, +eF(){var s,r,q,p,o,n=this,m=A.d([],t.s) +for(s=n.d,r=s.length,q=0,p=0;p0){s=B.a.aV(a,"\\",s+1) +if(s>0)return s}return r}if(r<3)return 0 +if(!A.rQ(a.charCodeAt(0)))return 0 +if(a.charCodeAt(1)!==58)return 0 +r=a.charCodeAt(2) +if(!(r===47||r===92))return 0 +return 3}, +S(a){return this.bH(a,!1)}, +ab(a){return this.S(a)===1}, +d4(a){var s,r +if(a.gZ()!==""&&a.gZ()!=="file")throw A.a(A.K("Uri "+a.j(0)+" must have scheme 'file:'.",null)) +s=a.gac() +if(a.gbb()===""){if(s.length>=3&&B.a.u(s,"/")&&A.rL(s,1)!=null)s=B.a.hp(s,"/","")}else s="\\\\"+a.gbb()+s +r=A.bd(s,"/","\\") +return A.ph(r,0,r.length,B.j,!1)}, +ed(a){var s,r,q=A.d9(a,this),p=q.b +p.toString +if(B.a.u(p,"\\\\")){s=new A.aU(A.d(p.split("\\"),t.s),new A.lY(),t.U) +B.c.d_(q.d,0,s.gC(0)) +if(q.gev())B.c.v(q.d,"") +return A.al(s.gG(0),null,q.d,"file")}else{if(q.d.length===0||q.gev())B.c.v(q.d,"") +p=q.d +r=q.b +r.toString +r=A.bd(r,"/","") +B.c.d_(p,0,A.bd(r,"\\","")) +return A.al(null,null,q.d,"file")}}, +cT(a,b){var s +if(a===b)return!0 +if(a===47)return b===92 +if(a===92)return b===47 +if((a^b)!==32)return!1 +s=a|32 +return s>=97&&s<=122}, +eH(a,b){var s,r +if(a===b)return!0 +s=a.length +if(s!==b.length)return!1 +for(r=0;r")).aq(0,", ")}return q.charCodeAt(0)==0?q:q}, +$ia5:1} +A.l2.prototype={ +$1(a){if(t.p.b(a))return"blob ("+a.length+" bytes)" +else return J.aW(a)}, +$S:63} +A.cm.prototype={} +A.kF.prototype={} +A.hI.prototype={} +A.kG.prototype={} +A.kI.prototype={} +A.kH.prototype={} +A.dd.prototype={} +A.de.prototype={} +A.h7.prototype={ +a7(){var s,r,q,p,o,n,m +for(s=this.d,r=s.length,q=0;q255)A.B(A.ah(e,"functionName","Must not exceed 255 bytes when utf-8 encoded")) +s=new Uint8Array(A.iS(l)) +r=c?526337:2049 +q=m.a +p=q.c1(s,1) +m=A.cQ(q.w,"call",[null,m.b,p,a.a,r,q.c.kD(new A.hB(new A.jC(d),n,n))]) +o=A.h(m) +q.e.call(null,p) +if(o!==0)A.iY(this,o,n,n,n)}, +a6(a,b,c,d){return this.h0(a,b,!0,c,d)}, +a7(){var s,r,q,p,o=this +if(o.r)return +$.e2().h2(o) +o.r=!0 +s=o.b +r=s.a +q=r.c +q.r=null +p=s.b +r.Q.call(null,p,-1) +q.w=null +s=r.kc +if(s!=null)s.call(null,p,-1) +q.x=null +s=r.kd +if(s!=null)s.call(null,p,-1) +o.c.a7()}, +h5(a){var s,r,q,p,o=this,n=B.t +if(J.ae(n)===0){if(o.r)A.B(A.C("This database has already been closed")) +r=o.b +q=r.a +s=q.c1(B.i.a5(a),1) +p=A.h(A.cQ(q.dx,"call",[null,r.b,s,0,0,0])) +q.e.call(null,s) +if(p!==0)A.iY(o,p,"executing",a,n)}else{s=o.d5(a,!0) +try{s.h6(new A.cu(n))}finally{s.a7()}}}, +iV(a,b,c,a0,a1){var s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d=this +if(d.r)A.B(A.C("This database has already been closed")) +s=B.i.a5(a) +r=d.b +q=r.a +p=q.bz(s) +o=q.d +n=A.h(A.r(o.call(null,4))) +o=A.h(A.r(o.call(null,4))) +m=new A.lK(r,p,n,o) +l=A.d([],t.bb) +k=new A.jB(m,l) +for(r=s.length,q=q.b,j=0;j."))}return s}, +dt(a){$label0$0:{this.i2(a.a) +break $label0$0}}, +a7(){var s,r=this.c +if(!r.d){$.e2().h2(this) +r.a7() +s=this.b +if(!s.r)B.c.A(s.c.d,r)}}, +eS(a){var s=this +if(s.c.d)A.B(A.C(u.D)) +s.bS() +s.dt(a) +return s.jb()}, +h6(a){var s=this +if(s.c.d)A.B(A.C(u.D)) +s.bS() +s.dt(a) +s.ff()}} +A.ha.prototype={ +cm(a,b){return this.d.a4(a)?1:0}, +dc(a,b){this.d.A(0,a)}, +dd(a){return $.fE().bD("/"+a)}, +aY(a,b){var s,r=a.a +if(r==null)r=A.oJ(this.b,"/") +s=this.d +if(!s.a4(r))if((b&4)!==0)s.q(0,r,new A.bI(new Uint8Array(0),0)) +else throw A.a(A.ca(14)) +return new A.cL(new A.ip(this,r,(b&8)!==0),0)}, +df(a){}} +A.ip.prototype={ +eJ(a,b){var s,r=this.a.d.i(0,this.b) +if(r==null||r.b<=b)return 0 +s=Math.min(a.length,r.b-b) +B.e.N(a,0,s,J.cW(B.e.gaI(r.a),0,r.b),b) +return s}, +da(){return this.d>=2?1:0}, +cn(){if(this.c)this.a.d.A(0,this.b)}, +co(){return this.a.d.i(0,this.b).b}, +de(a){this.d=a}, +dg(a){}, +cp(a){var s=this.a.d,r=this.b,q=s.i(0,r) +if(q==null){s.q(0,r,new A.bI(new Uint8Array(0),0)) +s.i(0,r).sl(0,a)}else q.sl(0,a)}, +dh(a){this.d=a}, +bi(a,b){var s,r=this.a.d,q=this.b,p=r.i(0,q) +if(p==null){p=new A.bI(new Uint8Array(0),0) +r.q(0,q,p)}s=b+a.length +if(s>p.b)p.sl(0,s) +p.ae(0,b,s,a)}} +A.jx.prototype={ +i4(){var s,r,q,p,o=A.a2(t.N,t.S) +for(s=this.a,r=s.length,q=0;q")).R(a,b,c,d)}, +aW(a,b,c){return this.R(a,null,b,c)}} +A.j4.prototype={ +$0(){var s,r=this,q=r.c.next(),p=r.a +p.a=q +s=r.d +A.a_(q,t.m).bJ(new A.j6(p,r.b,s,r),s.gfU(),t.P)}, +$S:0} +A.j6.prototype={ +$1(a){var s,r,q=this,p=a.done +if(p==null)p=null +s=a.value +r=q.c +if(p===!0){r.p() +q.a.a=null}else{r.v(0,s==null?q.b.$ti.c.a(s):s) +q.a.a=null +p=r.b +if(!((p&1)!==0?(r.gaS().e&4)!==0:(p&2)===0))q.d.$0()}}, +$S:10} +A.j5.prototype={ +$0(){var s,r +if(this.a.a==null){s=this.b +r=s.b +s=!((r&1)!==0?(s.gaS().e&4)!==0:(r&2)===0)}else s=!1 +if(s)this.c.$0()}, +$S:0} +A.cH.prototype={ +J(){var s=0,r=A.o(t.H),q=this,p +var $async$J=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:p=q.b +if(p!=null)p.J() +p=q.c +if(p!=null)p.J() +q.c=q.b=null +return A.m(null,r)}}) +return A.n($async$J,r)}, +gm(){var s=this.a +return s==null?A.B(A.C("Await moveNext() first")):s}, +k(){var s,r,q=this,p=q.a +if(p!=null)p.continue() +p=new A.k($.j,t.k) +s=new A.a9(p,t.fa) +r=q.d +q.b=A.aC(r,"success",new A.mh(q,s),!1) +q.c=A.aC(r,"error",new A.mi(q,s),!1) +return p}} +A.mh.prototype={ +$1(a){var s,r=this.a +r.J() +s=r.$ti.h("1?").a(r.d.result) +r.a=s +this.b.P(s!=null)}, +$S:1} +A.mi.prototype={ +$1(a){var s=this.a +s.J() +s=s.d.error +if(s==null)s=a +this.b.aJ(s)}, +$S:1} +A.jm.prototype={ +$1(a){this.a.P(this.c.a(this.b.result))}, +$S:1} +A.jn.prototype={ +$1(a){var s=this.b.error +if(s==null)s=a +this.a.aJ(s)}, +$S:1} +A.jr.prototype={ +$1(a){this.a.P(this.c.a(this.b.result))}, +$S:1} +A.js.prototype={ +$1(a){var s=this.b.error +if(s==null)s=a +this.a.aJ(s)}, +$S:1} +A.jt.prototype={ +$1(a){var s=this.b.error +if(s==null)s=a +this.a.aJ(s)}, +$S:1} +A.i0.prototype={ +hV(a){var s,r,q,p,o,n,m=self,l=m.Object.keys(a.exports) +l=B.c.gt(l) +s=this.b +r=t.m +q=this.a +p=t.g +for(;l.k();){o=A.ad(l.gm()) +n=a.exports[o] +if(typeof n==="function")q.q(0,o,p.a(n)) +else if(n instanceof m.WebAssembly.Global)s.q(0,o,r.a(n))}}} +A.lF.prototype={ +$2(a,b){var s={} +this.a[a]=s +b.aa(0,new A.lE(s))}, +$S:66} +A.lE.prototype={ +$2(a,b){this.a[a]=b}, +$S:67} +A.i1.prototype={} +A.dr.prototype={ +j7(a,b){var s,r,q=this.e +q.hu(b) +s=this.d.b +r=self +r.Atomics.store(s,1,-1) +r.Atomics.store(s,0,a.a) +A.u_(s,0) +r.Atomics.wait(s,1,-1) +s=r.Atomics.load(s,1) +if(s!==0)throw A.a(A.ca(s)) +return a.d.$1(q)}, +a2(a,b){var s=t.cb +return this.j7(a,b,s,s)}, +cm(a,b){return this.a2(B.I,new A.aR(a,b,0,0)).a}, +dc(a,b){this.a2(B.H,new A.aR(a,b,0,0))}, +dd(a){var s=this.r.aG(a) +if($.j_().iD("/",s)!==B.Y)throw A.a(B.aj) +return s}, +aY(a,b){var s=a.a,r=this.a2(B.T,new A.aR(s==null?A.oJ(this.b,"/"):s,b,0,0)) +return new A.cL(new A.i_(this,r.b),r.a)}, +df(a){this.a2(B.N,new A.S(B.b.I(a.a,1000),0,0))}, +p(){this.a2(B.J,B.h)}} +A.i_.prototype={ +geQ(){return 2048}, +eJ(a,b){var s,r,q,p,o,n,m,l,k,j=a.length +for(s=this.a,r=this.b,q=s.e.a,p=t.Z,o=0;j>0;){n=Math.min(65536,j) +j-=n +m=s.a2(B.R,new A.S(r,b+o,n)).a +l=self.Uint8Array +k=[q] +k.push(0) +k.push(m) +A.hh(a,"set",p.a(A.dY(l,k)),o,null,null) +o+=m +if(m0;){o=Math.min(65536,n) +A.hh(r,"set",o===n&&p===0?a:J.cW(B.e.gaI(a),a.byteOffset+p,o),0,null,null) +s.a2(B.M,new A.S(q,b+p,o)) +p+=o +n-=o}}} +A.kJ.prototype={} +A.bj.prototype={ +hu(a){var s,r +if(!(a instanceof A.aZ))if(a instanceof A.S){s=this.b +s.$flags&2&&A.z(s,8) +s.setInt32(0,a.a,!1) +s.setInt32(4,a.b,!1) +s.setInt32(8,a.c,!1) +if(a instanceof A.aR){r=B.i.a5(a.d) +s.setInt32(12,r.length,!1) +B.e.b_(this.c,16,r)}}else throw A.a(A.a3("Message "+a.j(0)))}} +A.ac.prototype={ +af(){return"WorkerOperation."+this.b}, +kC(a){return this.c.$1(a)}} +A.bx.prototype={} +A.aZ.prototype={} +A.S.prototype={} +A.aR.prototype={} +A.iA.prototype={} +A.eN.prototype={ +bT(a,b){return this.j4(a,b)}, +fD(a){return this.bT(a,!1)}, +j4(a,b){var s=0,r=A.o(t.eg),q,p=this,o,n,m,l,k,j,i,h,g +var $async$bT=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:j=$.fE() +i=j.eK(a,"/") +h=j.aO(0,i) +g=h.length +j=g>=1 +o=null +if(j){n=g-1 +m=B.c.a0(h,0,n) +o=h[n]}else m=null +if(!j)throw A.a(A.C("Pattern matching error")) +l=p.c +j=m.length,n=t.m,k=0 +case 3:if(!(k") +l=A.aw(new A.ba(j,m),!0,m.h("f.E")) +B.c.hH(l) +s=3 +return A.c(A.oI(new A.E(l,new A.j8(new A.j9(q,o,a),b),A.Q(l).h("E<1,D<~>>")),t.H),$async$b6) +case 3:s=b.c!==n.length?4:5 +break +case 4:k=new A.cH(p.objectStore("files").openCursor(a),t.V) +s=6 +return A.c(k.k(),$async$b6) +case 6:s=7 +return A.c(A.aY(k.gm().update({name:n.name,length:b.c}),t.X),$async$b6) +case 7:case 5:return A.m(null,r)}}) +return A.n($async$b6,r)}, +bh(a,b,c){return this.kR(0,b,c)}, +kR(a,b,c){var s=0,r=A.o(t.H),q=this,p,o,n,m,l,k +var $async$bh=A.p(function(d,e){if(d===1)return A.l(e,r) +while(true)switch(s){case 0:k=q.a +k.toString +p=k.transaction($.oy(),"readwrite") +o=p.objectStore("files") +n=p.objectStore("blocks") +s=2 +return A.c(q.e0(p,b),$async$bh) +case 2:m=e +s=m.length>c?3:4 +break +case 3:s=5 +return A.c(A.aY(n.delete(q.iX(b,B.b.I(c,4096)*4096+1)),t.X),$async$bh) +case 5:case 4:l=new A.cH(o.openCursor(b),t.V) +s=6 +return A.c(l.k(),$async$bh) +case 6:s=7 +return A.c(A.aY(l.gm().update({name:m.name,length:c}),t.X),$async$bh) +case 7:return A.m(null,r)}}) +return A.n($async$bh,r)}, +cW(a){return this.jT(a)}, +jT(a){var s=0,r=A.o(t.H),q=this,p,o,n +var $async$cW=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:n=q.a +n.toString +p=n.transaction(A.d(["files","blocks"],t.s),"readwrite") +o=q.e_(a,9007199254740992,0) +n=t.X +s=2 +return A.c(A.oI(A.d([A.aY(p.objectStore("blocks").delete(o),n),A.aY(p.objectStore("files").delete(a),n)],t.fG),t.H),$async$cW) +case 2:return A.m(null,r)}}) +return A.n($async$cW,r)}} +A.ja.prototype={ +$1(a){var s=t.m.a(this.a.result) +if(J.a4(a.oldVersion,0)){s.createObjectStore("files",{autoIncrement:!0}).createIndex("fileName","name",{unique:!0}) +s.createObjectStore("blocks")}}, +$S:10} +A.j7.prototype={ +$1(a){if(a==null)throw A.a(A.ah(this.a,"fileId","File not found in database")) +else return a}, +$S:69} +A.jb.prototype={ +$0(){var s=0,r=A.o(t.H),q=this,p,o +var $async$$0=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:p=q.a +s=A.kh(p.value,"Blob")?2:4 +break +case 2:s=5 +return A.c(A.hz(t.m.a(p.value)),$async$$0) +case 5:s=3 +break +case 4:b=t.o.a(p.value) +case 3:o=b +B.e.b_(q.b,q.c,J.cW(o,0,q.d)) +return A.m(null,r)}}) +return A.n($async$$0,r)}, +$S:2} +A.j9.prototype={ +hw(a,b){var s=0,r=A.o(t.H),q=this,p,o,n,m,l,k +var $async$$2=A.p(function(c,d){if(c===1)return A.l(d,r) +while(true)switch(s){case 0:p=q.b +o=self +n=q.c +m=t.n +s=2 +return A.c(A.aY(p.openCursor(o.IDBKeyRange.only(A.d([n,a],m))),t.A),$async$$2) +case 2:l=d +k=q.a.c?new o.Blob(A.d([b],t.as)):t.o.a(B.e.gaI(b)) +o=t.X +s=l==null?3:5 +break +case 3:s=6 +return A.c(A.aY(p.put(k,A.d([n,a],m)),o),$async$$2) +case 6:s=4 +break +case 5:s=7 +return A.c(A.aY(l.update(k),o),$async$$2) +case 7:case 4:return A.m(null,r)}}) +return A.n($async$$2,r)}, +$2(a,b){return this.hw(a,b)}, +$S:70} +A.j8.prototype={ +$1(a){var s=this.b.b.i(0,a) +s.toString +return this.a.$2(a,s)}, +$S:71} +A.ms.prototype={ +jq(a,b,c){B.e.b_(this.b.hk(a,new A.mt(this,a)),b,c)}, +jI(a,b){var s,r,q,p,o,n,m,l +for(s=b.length,r=0;rp)B.e.b_(s,0,J.cW(B.e.gaI(r),r.byteOffset+p,Math.min(4096,q-p))) +return s}, +$S:72} +A.ix.prototype={} +A.d3.prototype={ +bY(a){var s=this +if(s.e||s.d.a==null)A.B(A.ca(10)) +if(a.ex(s.w)){s.fJ() +return a.d.a}else return A.b_(null,t.H)}, +fJ(){var s,r,q=this +if(q.f==null&&!q.w.gF(0)){s=q.w +r=q.f=s.gG(0) +s.A(0,r) +r.d.P(A.un(r.gd8(),t.H).aj(new A.kb(q)))}}, +p(){var s=0,r=A.o(t.H),q,p=this,o,n +var $async$p=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:if(!p.e){o=p.bY(new A.dy(p.d.gb8(),new A.a9(new A.k($.j,t.D),t.F))) +p.e=!0 +q=o +s=1 +break}else{n=p.w +if(!n.gF(0)){q=n.gC(0).d.a +s=1 +break}}case 1:return A.m(q,r)}}) +return A.n($async$p,r)}, +bs(a){return this.ir(a)}, +ir(a){var s=0,r=A.o(t.S),q,p=this,o,n +var $async$bs=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:n=p.y +s=n.a4(a)?3:5 +break +case 3:n=n.i(0,a) +n.toString +q=n +s=1 +break +s=4 +break +case 5:s=6 +return A.c(p.d.cX(a),$async$bs) +case 6:o=c +o.toString +n.q(0,a,o) +q=o +s=1 +break +case 4:case 1:return A.m(q,r)}}) +return A.n($async$bs,r)}, +bR(){var s=0,r=A.o(t.H),q=this,p,o,n,m,l,k,j,i,h,g +var $async$bR=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:h=q.d +s=2 +return A.c(h.d3(),$async$bR) +case 2:g=b +q.y.aH(0,g) +p=g.gem(),p=p.gt(p),o=q.r.d +case 3:if(!p.k()){s=4 +break}n=p.gm() +m=n.a +l=n.b +k=new A.bI(new Uint8Array(0),0) +s=5 +return A.c(h.bF(l),$async$bR) +case 5:j=b +n=j.length +k.sl(0,n) +i=k.b +if(n>i)A.B(A.X(n,0,i,null,null)) +B.e.N(k.a,0,n,j,0) +o.q(0,m,k) +s=3 +break +case 4:return A.m(null,r)}}) +return A.n($async$bR,r)}, +cm(a,b){return this.r.d.a4(a)?1:0}, +dc(a,b){var s=this +s.r.d.A(0,a) +if(!s.x.A(0,a))s.bY(new A.dw(s,a,new A.a9(new A.k($.j,t.D),t.F)))}, +dd(a){return $.fE().bD("/"+a)}, +aY(a,b){var s,r,q,p=this,o=a.a +if(o==null)o=A.oJ(p.b,"/") +s=p.r +r=s.d.a4(o)?1:0 +q=s.aY(new A.eE(o),b) +if(r===0)if((b&8)!==0)p.x.v(0,o) +else p.bY(new A.cG(p,o,new A.a9(new A.k($.j,t.D),t.F))) +return new A.cL(new A.iq(p,q.a,o),0)}, +df(a){}} +A.kb.prototype={ +$0(){var s=this.a +s.f=null +s.fJ()}, +$S:6} +A.iq.prototype={ +eR(a,b){this.b.eR(a,b)}, +geQ(){return 0}, +da(){return this.b.d>=2?1:0}, +cn(){}, +co(){return this.b.co()}, +de(a){this.b.d=a +return null}, +dg(a){}, +cp(a){var s=this,r=s.a +if(r.e||r.d.a==null)A.B(A.ca(10)) +s.b.cp(a) +if(!r.x.K(0,s.c))r.bY(new A.dy(new A.mH(s,a),new A.a9(new A.k($.j,t.D),t.F)))}, +dh(a){this.b.d=a +return null}, +bi(a,b){var s,r,q,p,o,n,m=this,l=m.a +if(l.e||l.d.a==null)A.B(A.ca(10)) +s=m.c +if(l.x.K(0,s)){m.b.bi(a,b) +return}r=l.r.d.i(0,s) +if(r==null)r=new A.bI(new Uint8Array(0),0) +q=J.cW(B.e.gaI(r.a),0,r.b) +m.b.bi(a,b) +p=new Uint8Array(a.length) +B.e.b_(p,0,a) +o=A.d([],t.gQ) +n=$.j +o.push(new A.ix(b,p)) +l.bY(new A.cO(l,s,q,o,new A.a9(new A.k(n,t.D),t.F)))}, +$idp:1} +A.mH.prototype={ +$0(){var s=0,r=A.o(t.H),q,p=this,o,n,m +var $async$$0=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:o=p.a +n=o.a +m=n.d +s=3 +return A.c(n.bs(o.c),$async$$0) +case 3:q=m.bh(0,b,p.b) +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$$0,r)}, +$S:2} +A.aq.prototype={ +ex(a){a.dT(a.c,this,!1) +return!0}} +A.dy.prototype={ +U(){return this.w.$0()}} +A.dw.prototype={ +ex(a){var s,r,q,p +if(!a.gF(0)){s=a.gC(0) +for(r=this.x;s!=null;)if(s instanceof A.dw)if(s.x===r)return!1 +else s=s.gce() +else if(s instanceof A.cO){q=s.gce() +if(s.x===r){p=s.a +p.toString +p.e5(A.t(s).h("aF.E").a(s))}s=q}else if(s instanceof A.cG){if(s.x===r){r=s.a +r.toString +r.e5(A.t(s).h("aF.E").a(s)) +return!1}s=s.gce()}else break}a.dT(a.c,this,!1) +return!0}, +U(){var s=0,r=A.o(t.H),q=this,p,o,n +var $async$U=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:p=q.w +o=q.x +s=2 +return A.c(p.bs(o),$async$U) +case 2:n=b +p.y.A(0,o) +s=3 +return A.c(p.d.cW(n),$async$U) +case 3:return A.m(null,r)}}) +return A.n($async$U,r)}} +A.cG.prototype={ +U(){var s=0,r=A.o(t.H),q=this,p,o,n,m +var $async$U=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:p=q.w +o=q.x +n=p.y +m=o +s=2 +return A.c(p.d.cU(o),$async$U) +case 2:n.q(0,m,b) +return A.m(null,r)}}) +return A.n($async$U,r)}} +A.cO.prototype={ +ex(a){var s,r=a.b===0?null:a.gC(0) +for(s=this.x;r!=null;)if(r instanceof A.cO)if(r.x===s){B.c.aH(r.z,this.z) +return!1}else r=r.gce() +else if(r instanceof A.cG){if(r.x===s)break +r=r.gce()}else break +a.dT(a.c,this,!1) +return!0}, +U(){var s=0,r=A.o(t.H),q=this,p,o,n,m,l,k +var $async$U=A.p(function(a,b){if(a===1)return A.l(b,r) +while(true)switch(s){case 0:m=q.y +l=new A.ms(m,A.a2(t.S,t.p),m.length) +for(m=q.z,p=m.length,o=0;o")),r=r.y[1];s.k();){q=s.a +if(q==null)q=r.a(q) +q.close()}}} +A.l_.prototype={ +hy(a){var s=0,r=A.o(t.m),q,p=this,o,n +var $async$$1=A.p(function(b,c){if(b===1)return A.l(c,r) +while(true)switch(s){case 0:o=t.m +n=A +s=4 +return A.c(A.a_(p.a.getFileHandle(a,{create:!0}),o),$async$$1) +case 4:s=3 +return A.c(n.a_(c.createSyncAccessHandle(),o),$async$$1) +case 3:q=c +s=1 +break +case 1:return A.m(q,r)}}) +return A.n($async$$1,r)}, +$1(a){return this.hy(a)}, +$S:73} +A.iG.prototype={ +eJ(a,b){return A.jV(this.c,a,{at:b})}, +da(){return this.e>=2?1:0}, +cn(){var s=this +s.c.flush() +if(s.d)s.a.dU(s.b,!1)}, +co(){return this.c.getSize()}, +de(a){this.e=a}, +dg(a){this.c.flush()}, +cp(a){this.c.truncate(a)}, +dh(a){this.e=a}, +bi(a,b){if(A.oH(this.c,a,{at:b})q.c)throw A.a(A.ca(14)) +s=A.bz(q.d.buffer,0,null) +r=q.e +B.e.b_(s,r,p) +s.$flags&2&&A.z(s) +s[r+o]=0}, +$S:0} +A.nj.prototype={ +$3(a,b,c){return A.aL(new A.mX(this.b,c,b,this.a.d.e.i(0,a)))}, +$S:28} +A.mX.prototype={ +$0(){var s=this,r=A.bz(s.a.buffer,s.b,s.c),q=s.d +if(q!=null)A.pN(r,q.b) +else return A.pN(r,null)}, +$S:0} +A.nk.prototype={ +$2(a,b){var s=this.a.d.e.i(0,a) +s.toString +return A.aL(new A.mW(s,b))}, +$S:4} +A.mW.prototype={ +$0(){this.a.df(A.pW(this.b,0))}, +$S:0} +A.nl.prototype={ +$2(a,b){var s +this.a.d.e.i(0,a).toString +s=Date.now() +s=self.BigInt(s) +A.hh(A.qc(this.b.buffer,0,null),"setBigInt64",b,s,!0,null)}, +$S:78} +A.nm.prototype={ +$1(a){return this.a.d.f.i(0,a).geQ()}, +$S:13} +A.nn.prototype={ +$1(a){var s=this.a,r=s.d.f.i(0,a) +r.toString +return A.aL(new A.mV(s,r,a))}, +$S:13} +A.mV.prototype={ +$0(){this.b.cn() +this.a.d.f.A(0,this.c)}, +$S:0} +A.no.prototype={ +$4(a,b,c,d){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mU(s,this.b,b,c,d))}, +$S:30} +A.mU.prototype={ +$0(){var s=this +s.a.eR(A.bz(s.b.buffer,s.c,s.d),A.h(self.Number(s.e)))}, +$S:0} +A.n0.prototype={ +$4(a,b,c,d){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mT(s,this.b,b,c,d))}, +$S:30} +A.mT.prototype={ +$0(){var s=this +s.a.bi(A.bz(s.b.buffer,s.c,s.d),A.h(self.Number(s.e)))}, +$S:0} +A.n1.prototype={ +$2(a,b){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mS(s,b))}, +$S:80} +A.mS.prototype={ +$0(){return this.a.cp(A.h(self.Number(this.b)))}, +$S:0} +A.n2.prototype={ +$2(a,b){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mR(s,b))}, +$S:4} +A.mR.prototype={ +$0(){return this.a.dg(this.b)}, +$S:0} +A.n3.prototype={ +$2(a,b){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mQ(s,this.b,b))}, +$S:4} +A.mQ.prototype={ +$0(){var s=this.a.co(),r=A.cy(this.b.buffer,0,null),q=B.b.O(this.c,2) +r.$flags&2&&A.z(r) +r[q]=s}, +$S:0} +A.n4.prototype={ +$2(a,b){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mL(s,b))}, +$S:4} +A.mL.prototype={ +$0(){return this.a.de(this.b)}, +$S:0} +A.n5.prototype={ +$2(a,b){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mK(s,b))}, +$S:4} +A.mK.prototype={ +$0(){return this.a.dh(this.b)}, +$S:0} +A.n6.prototype={ +$2(a,b){var s=this.a.d.f.i(0,a) +s.toString +return A.aL(new A.mJ(s,this.b,b))}, +$S:4} +A.mJ.prototype={ +$0(){var s=this.a.da(),r=A.cy(this.b.buffer,0,null),q=B.b.O(this.c,2) +r.$flags&2&&A.z(r) +r[q]=s}, +$S:0} +A.n7.prototype={ +$3(a,b,c){var s=this.a,r=s.a +r===$&&A.G() +r=s.d.b.i(0,A.h(A.r(r.xr.call(null,a)))).a +s=s.a +r.$2(new A.cb(s,a),new A.dq(s,b,c))}, +$S:21} +A.n8.prototype={ +$3(a,b,c){var s=this.a,r=s.a +r===$&&A.G() +r=s.d.b.i(0,A.h(A.r(r.xr.call(null,a)))).b +s=s.a +r.$2(new A.cb(s,a),new A.dq(s,b,c))}, +$S:21} +A.n9.prototype={ +$3(a,b,c){var s=this.a,r=s.a +r===$&&A.G() +s.d.b.i(0,A.h(A.r(r.xr.call(null,a)))).toString +s=s.a +null.$2(new A.cb(s,a),new A.dq(s,b,c))}, +$S:21} +A.nb.prototype={ +$1(a){var s=this.a,r=s.a +r===$&&A.G() +s.d.b.i(0,A.h(A.r(r.xr.call(null,a)))).c.$1(new A.cb(s.a,a))}, +$S:12} +A.nc.prototype={ +$1(a){var s=this.a,r=s.a +r===$&&A.G() +s.d.b.i(0,A.h(A.r(r.xr.call(null,a)))).toString +null.$1(new A.cb(s.a,a))}, +$S:12} +A.nd.prototype={ +$1(a){this.a.d.b.A(0,a)}, +$S:12} +A.ne.prototype={ +$5(a,b,c,d,e){var s=this.b,r=A.oZ(s,c,b),q=A.oZ(s,e,d) +this.a.d.b.i(0,a).toString +return null.$2(r,q)}, +$S:27} +A.nf.prototype={ +$5(a,b,c,d,e){A.cd(this.b,d,null)}, +$S:82} +A.ng.prototype={ +$1(a){return null}, +$S:24} +A.nh.prototype={ +$1(a){}, +$S:12} +A.jy.prototype={ +kD(a){var s=this.a++ +this.b.q(0,s,a) +return s}} +A.hB.prototype={} +A.bg.prototype={ +hs(){var s=this.a +return A.qw(new A.ei(s,new A.jh(),A.Q(s).h("ei<1,N>")),null)}, +j(a){var s=this.a,r=A.Q(s) +return new A.E(s,new A.jf(new A.E(s,new A.jg(),r.h("E<1,b>")).ep(0,0,B.y)),r.h("E<1,i>")).aq(0,u.q)}, +$ia0:1} +A.jc.prototype={ +$1(a){return a.length!==0}, +$S:3} +A.jh.prototype={ +$1(a){return a.gc4()}, +$S:83} +A.jg.prototype={ +$1(a){var s=a.gc4() +return new A.E(s,new A.je(),A.Q(s).h("E<1,b>")).ep(0,0,B.y)}, +$S:84} +A.je.prototype={ +$1(a){return a.gbC().length}, +$S:32} +A.jf.prototype={ +$1(a){var s=a.gc4() +return new A.E(s,new A.jd(this.a),A.Q(s).h("E<1,i>")).c6(0)}, +$S:86} +A.jd.prototype={ +$1(a){return B.a.hh(a.gbC(),this.a)+" "+A.v(a.geD())+"\n"}, +$S:33} +A.N.prototype={ +geB(){var s=this.a +if(s.gZ()==="data")return"data:..." +return $.j_().kA(s)}, +gbC(){var s,r=this,q=r.b +if(q==null)return r.geB() +s=r.c +if(s==null)return r.geB()+" "+A.v(q) +return r.geB()+" "+A.v(q)+":"+A.v(s)}, +j(a){return this.gbC()+" in "+A.v(this.d)}, +geD(){return this.d}} +A.k2.prototype={ +$0(){var s,r,q,p,o,n,m,l=null,k=this.a +if(k==="...")return new A.N(A.al(l,l,l,l),l,l,"...") +s=$.tH().a9(k) +if(s==null)return new A.bl(A.al(l,"unparsed",l,l),k) +k=s.b +r=k[1] +r.toString +q=$.tq() +r=A.bd(r,q,"") +p=A.bd(r,"","") +r=k[2] +q=r +q.toString +if(B.a.u(q,"1?A.aN(n[1],l):l +return new A.N(o,m,k>2?A.aN(n[2],l):l,p)}, +$S:11} +A.k0.prototype={ +$0(){var s,r,q,p,o,n="",m=this.a,l=$.tG().a9(m) +if(l!=null){s=l.aL("member") +m=l.aL("uri") +m.toString +r=A.h9(m) +m=l.aL("index") +m.toString +q=l.aL("offset") +q.toString +p=A.aN(q,16) +if(!(s==null))m=s +return new A.N(r,1,p+1,m)}l=$.tC().a9(m) +if(l!=null){m=new A.k1(m) +q=l.b +o=q[2] +if(o!=null){o=o +o.toString +q=q[1] +q.toString +q=A.bd(q,"",n) +q=A.bd(q,"Anonymous function",n) +return m.$2(o,A.bd(q,"(anonymous function)",n))}else{q=q[3] +q.toString +return m.$2(q,n)}}return new A.bl(A.al(null,"unparsed",null,null),m)}, +$S:11} +A.k1.prototype={ +$2(a,b){var s,r,q,p,o,n=null,m=$.tB(),l=m.a9(a) +for(;l!=null;a=s){s=l.b[1] +s.toString +l=m.a9(s)}if(a==="native")return new A.N(A.bm("native"),n,n,b) +r=$.tD().a9(a) +if(r==null)return new A.bl(A.al(n,"unparsed",n,n),this.a) +m=r.b +s=m[1] +s.toString +q=A.h9(s) +s=m[2] +s.toString +p=A.aN(s,n) +o=m[3] +return new A.N(q,p,o!=null?A.aN(o,n):n,b)}, +$S:89} +A.jY.prototype={ +$0(){var s,r,q,p,o=null,n=this.a,m=$.tr().a9(n) +if(m==null)return new A.bl(A.al(o,"unparsed",o,o),n) +n=m.b +s=n[1] +s.toString +r=A.bd(s,"/<","") +s=n[2] +s.toString +q=A.h9(s) +n=n[3] +n.toString +p=A.aN(n,o) +return new A.N(q,p,o,r.length===0||r==="anonymous"?"":r)}, +$S:11} +A.jZ.prototype={ +$0(){var s,r,q,p,o,n,m,l,k=null,j=this.a,i=$.tt().a9(j) +if(i!=null){s=i.b +r=s[3] +q=r +q.toString +if(B.a.K(q," line "))return A.uf(j) +j=r +j.toString +p=A.h9(j) +o=s[1] +if(o!=null){j=s[2] +j.toString +o+=B.c.c6(A.b1(B.a.ee("/",j).gl(0),".",!1,t.N)) +if(o==="")o="" +o=B.a.hp(o,$.ty(),"")}else o="" +j=s[4] +if(j==="")n=k +else{j=j +j.toString +n=A.aN(j,k)}j=s[5] +if(j==null||j==="")m=k +else{j=j +j.toString +m=A.aN(j,k)}return new A.N(p,n,m,o)}i=$.tv().a9(j) +if(i!=null){j=i.aL("member") +j.toString +s=i.aL("uri") +s.toString +p=A.h9(s) +s=i.aL("index") +s.toString +r=i.aL("offset") +r.toString +l=A.aN(r,16) +if(!(j.length!==0))j=s +return new A.N(p,1,l+1,j)}i=$.tz().a9(j) +if(i!=null){j=i.aL("member") +j.toString +return new A.N(A.al(k,"wasm code",k,k),k,k,j)}return new A.bl(A.al(k,"unparsed",k,k),j)}, +$S:11} +A.k_.prototype={ +$0(){var s,r,q,p,o=null,n=this.a,m=$.tw().a9(n) +if(m==null)throw A.a(A.aj("Couldn't parse package:stack_trace stack trace line '"+n+"'.",o,o)) +n=m.b +s=n[1] +if(s==="data:...")r=A.qE("") +else{s=s +s.toString +r=A.bm(s)}if(r.gZ()===""){s=$.j_() +r=s.ht(s.fT(s.a.d4(A.pm(r)),o,o,o,o,o,o,o,o,o,o,o,o,o,o))}s=n[2] +if(s==null)q=o +else{s=s +s.toString +q=A.aN(s,o)}s=n[3] +if(s==null)p=o +else{s=s +s.toString +p=A.aN(s,o)}return new A.N(r,q,p,n[4])}, +$S:11} +A.hk.prototype={ +gfR(){var s,r=this,q=r.b +if(q===$){s=r.a.$0() +r.b!==$&&A.ox() +r.b=s +q=s}return q}, +gc4(){return this.gfR().gc4()}, +j(a){return this.gfR().j(0)}, +$ia0:1, +$ia1:1} +A.a1.prototype={ +j(a){var s=this.a,r=A.Q(s) +return new A.E(s,new A.lk(new A.E(s,new A.ll(),r.h("E<1,b>")).ep(0,0,B.y)),r.h("E<1,i>")).c6(0)}, +$ia0:1, +gc4(){return this.a}} +A.li.prototype={ +$0(){return A.qA(this.a.j(0))}, +$S:90} +A.lj.prototype={ +$1(a){return a.length!==0}, +$S:3} +A.lh.prototype={ +$1(a){return!B.a.u(a,$.tF())}, +$S:3} +A.lg.prototype={ +$1(a){return a!=="\tat "}, +$S:3} +A.le.prototype={ +$1(a){return a.length!==0&&a!=="[native code]"}, +$S:3} +A.lf.prototype={ +$1(a){return!B.a.u(a,"=====")}, +$S:3} +A.ll.prototype={ +$1(a){return a.gbC().length}, +$S:32} +A.lk.prototype={ +$1(a){if(a instanceof A.bl)return a.j(0)+"\n" +return B.a.hh(a.gbC(),this.a)+" "+A.v(a.geD())+"\n"}, +$S:33} +A.bl.prototype={ +j(a){return this.w}, +$iN:1, +gbC(){return"unparsed"}, +geD(){return this.w}} +A.ea.prototype={} +A.eW.prototype={ +R(a,b,c,d){var s,r=this.b +if(r.d){a=null +d=null}s=this.a.R(a,b,c,d) +if(!r.d)r.c=s +return s}, +aW(a,b,c){return this.R(a,null,b,c)}, +eC(a,b){return this.R(a,null,b,null)}} +A.eV.prototype={ +p(){var s,r=this.hL(),q=this.b +q.d=!0 +s=q.c +if(s!=null){s.ca(null) +s.eG(null)}return r}} +A.ek.prototype={ +ghK(){var s=this.b +s===$&&A.G() +return new A.ap(s,A.t(s).h("ap<1>"))}, +ghF(){var s=this.a +s===$&&A.G() +return s}, +hS(a,b,c,d){var s=this,r=$.j +s.a!==$&&A.pD() +s.a=new A.f4(a,s,new A.a6(new A.k(r,t.D),t.h),!0) +r=A.eJ(null,new A.k9(c,s),!0,d) +s.b!==$&&A.pD() +s.b=r}, +iR(){var s,r +this.d=!0 +s=this.c +if(s!=null)s.J() +r=this.b +r===$&&A.G() +r.p()}} +A.k9.prototype={ +$0(){var s,r,q=this.b +if(q.d)return +s=this.a.a +r=q.b +r===$&&A.G() +q.c=s.aW(r.gjG(r),new A.k8(q),r.gfU())}, +$S:0} +A.k8.prototype={ +$0(){var s=this.a,r=s.a +r===$&&A.G() +r.iS() +s=s.b +s===$&&A.G() +s.p()}, +$S:0} +A.f4.prototype={ +v(a,b){if(this.e)throw A.a(A.C("Cannot add event after closing.")) +if(this.d)return +this.a.a.v(0,b)}, +a3(a,b){if(this.e)throw A.a(A.C("Cannot add event after closing.")) +if(this.d)return +this.iu(a,b)}, +iu(a,b){this.a.a.a3(a,b) +return}, +p(){var s=this +if(s.e)return s.c.a +s.e=!0 +if(!s.d){s.b.iR() +s.c.P(s.a.a.p())}return s.c.a}, +iS(){this.d=!0 +var s=this.c +if((s.a.a&30)===0)s.aU() +return}, +$iaf:1} +A.hJ.prototype={} +A.eI.prototype={} +A.bH.prototype={ +gl(a){return this.b}, +i(a,b){if(b>=this.b)throw A.a(A.q5(b,this)) +return this.a[b]}, +q(a,b,c){var s +if(b>=this.b)throw A.a(A.q5(b,this)) +s=this.a +s.$flags&2&&A.z(s) +s[b]=c}, +sl(a,b){var s,r,q,p,o=this,n=o.b +if(bn){if(n===0)p=new Uint8Array(b) +else p=o.ic(b) +B.e.ae(p,0,o.b,o.a) +o.a=p}}o.b=b}, +ic(a){var s=this.a.length*2 +if(a!=null&&ss)throw A.a(A.X(c,0,s,null,null)) +s=this.a +if(A.t(this).h("bH").b(d))B.e.N(s,b,c,d.a,e) +else B.e.N(s,b,c,d,e)}, +ae(a,b,c,d){return this.N(0,b,c,d,0)}} +A.ir.prototype={} +A.bI.prototype={} +A.oG.prototype={} +A.f0.prototype={ +R(a,b,c,d){return A.aC(this.a,this.b,a,!1)}, +aW(a,b,c){return this.R(a,null,b,c)}} +A.ij.prototype={ +J(){var s=this,r=A.b_(null,t.H) +if(s.b==null)return r +s.e6() +s.d=s.b=null +return r}, +ca(a){var s,r=this +if(r.b==null)throw A.a(A.C("Subscription has been canceled.")) +r.e6() +if(a==null)s=null +else{s=A.rG(new A.mq(a),t.m) +s=s==null?null:A.aV(s)}r.d=s +r.e4()}, +eG(a){}, +bE(){if(this.b==null)return;++this.a +this.e6()}, +be(){var s=this +if(s.b==null||s.a<=0)return;--s.a +s.e4()}, +e4(){var s=this,r=s.d +if(r!=null&&s.a<=0)s.b.addEventListener(s.c,r,!1)}, +e6(){var s=this.d +if(s!=null)this.b.removeEventListener(this.c,s,!1)}} +A.mp.prototype={ +$1(a){return this.a.$1(a)}, +$S:1} +A.mq.prototype={ +$1(a){return this.a.$1(a)}, +$S:1};(function aliases(){var s=J.c0.prototype +s.hN=s.j +s=A.cE.prototype +s.hP=s.bL +s=A.ag.prototype +s.dm=s.bq +s.bn=s.bo +s.eX=s.cz +s=A.fj.prototype +s.hQ=s.ef +s=A.x.prototype +s.eW=s.N +s=A.f.prototype +s.hM=s.hG +s=A.d_.prototype +s.hL=s.p +s=A.eD.prototype +s.hO=s.p})();(function installTearOffs(){var s=hunkHelpers._static_2,r=hunkHelpers._static_1,q=hunkHelpers._static_0,p=hunkHelpers.installStaticTearOff,o=hunkHelpers._instance_0u,n=hunkHelpers.installInstanceTearOff,m=hunkHelpers._instance_2u,l=hunkHelpers._instance_1i,k=hunkHelpers._instance_1u +s(J,"wg","us",91) +r(A,"wQ","v7",17) +r(A,"wR","v8",17) +r(A,"wS","v9",17) +q(A,"rJ","wJ",0) +r(A,"wT","wt",16) +s(A,"wU","wv",7) +q(A,"rI","wu",0) +p(A,"x_",5,null,["$5"],["wE"],93,0) +p(A,"x4",4,null,["$1$4","$4"],["o6",function(a,b,c,d){return A.o6(a,b,c,d,t.z)}],94,0) +p(A,"x6",5,null,["$2$5","$5"],["o8",function(a,b,c,d,e){var i=t.z +return A.o8(a,b,c,d,e,i,i)}],95,0) +p(A,"x5",6,null,["$3$6","$6"],["o7",function(a,b,c,d,e,f){var i=t.z +return A.o7(a,b,c,d,e,f,i,i,i)}],96,0) +p(A,"x2",4,null,["$1$4","$4"],["rz",function(a,b,c,d){return A.rz(a,b,c,d,t.z)}],97,0) +p(A,"x3",4,null,["$2$4","$4"],["rA",function(a,b,c,d){var i=t.z +return A.rA(a,b,c,d,i,i)}],98,0) +p(A,"x1",4,null,["$3$4","$4"],["ry",function(a,b,c,d){var i=t.z +return A.ry(a,b,c,d,i,i,i)}],99,0) +p(A,"wY",5,null,["$5"],["wD"],100,0) +p(A,"x7",4,null,["$4"],["o9"],101,0) +p(A,"wX",5,null,["$5"],["wC"],102,0) +p(A,"wW",5,null,["$5"],["wB"],103,0) +p(A,"x0",4,null,["$4"],["wF"],104,0) +r(A,"wV","wx",105) +p(A,"wZ",5,null,["$5"],["rx"],106,0) +var j +o(j=A.cF.prototype,"gbO","al",0) +o(j,"gbP","am",0) +n(A.du.prototype,"gjQ",0,1,null,["$2","$1"],["bA","aJ"],31,0,0) +m(A.k.prototype,"gdB","X",7) +l(j=A.cM.prototype,"gjG","v",8) +n(j,"gfU",0,1,null,["$2","$1"],["a3","jH"],31,0,0) +o(j=A.cf.prototype,"gbO","al",0) +o(j,"gbP","am",0) +o(j=A.ag.prototype,"gbO","al",0) +o(j,"gbP","am",0) +o(A.eY.prototype,"gfs","iQ",0) +k(j=A.dL.prototype,"giK","iL",8) +m(j,"giO","iP",7) +o(j,"giM","iN",0) +o(j=A.dx.prototype,"gbO","al",0) +o(j,"gbP","am",0) +k(j,"gdM","dN",8) +m(j,"gdQ","dR",39) +o(j,"gdO","dP",0) +o(j=A.dI.prototype,"gbO","al",0) +o(j,"gbP","am",0) +k(j,"gdM","dN",8) +m(j,"gdQ","dR",7) +o(j,"gdO","dP",0) +k(A.dJ.prototype,"gjM","ef","Y<2>(e?)") +r(A,"xb","v4",9) +p(A,"xE",2,null,["$1$2","$2"],["rS",function(a,b){return A.rS(a,b,t.E)}],107,0) +r(A,"xG","xM",5) +r(A,"xF","xL",5) +r(A,"xD","xc",5) +r(A,"xH","xS",5) +r(A,"xA","wO",5) +r(A,"xB","wP",5) +r(A,"xC","x8",5) +k(A.ef.prototype,"gix","iy",8) +k(A.h_.prototype,"gie","dE",14) +k(A.i2.prototype,"gjs","e8",14) +r(A,"zc","rq",18) +r(A,"za","ro",18) +r(A,"zb","rp",18) +r(A,"rU","ww",37) +r(A,"rV","wz",110) +r(A,"rT","w4",111) +o(A.dr.prototype,"gb8","p",0) +r(A,"bU","uz",112) +r(A,"b8","uA",113) +r(A,"pC","uB",114) +k(A.eN.prototype,"giZ","j_",68) +o(A.fL.prototype,"gb8","p",0) +o(A.d3.prototype,"gb8","p",2) +o(A.dy.prototype,"gd8","U",0) +o(A.dw.prototype,"gd8","U",2) +o(A.cG.prototype,"gd8","U",2) +o(A.cO.prototype,"gd8","U",2) +o(A.dj.prototype,"gb8","p",0) +r(A,"xk","um",15) +r(A,"rM","ul",15) +r(A,"xi","uj",15) +r(A,"xj","uk",15) +r(A,"xW","v_",29) +r(A,"xV","uZ",29)})();(function inheritance(){var s=hunkHelpers.mixin,r=hunkHelpers.inherit,q=hunkHelpers.inheritMany +r(A.e,null) +q(A.e,[A.oN,J.he,J.fH,A.f,A.fR,A.O,A.x,A.co,A.kL,A.b0,A.b2,A.eO,A.h5,A.hM,A.hG,A.hH,A.h2,A.i3,A.em,A.ej,A.hQ,A.hL,A.fd,A.ec,A.it,A.ln,A.hw,A.eh,A.fh,A.T,A.kn,A.hl,A.cv,A.dE,A.lZ,A.dl,A.nF,A.me,A.iO,A.b3,A.im,A.nL,A.iK,A.i5,A.iI,A.bf,A.Y,A.ag,A.cE,A.du,A.cg,A.k,A.i6,A.hK,A.cM,A.iJ,A.i7,A.dM,A.ih,A.mn,A.fc,A.eY,A.dL,A.f_,A.dA,A.au,A.iQ,A.dR,A.iP,A.io,A.di,A.nr,A.dD,A.iv,A.aF,A.iw,A.cp,A.cq,A.nS,A.ft,A.a7,A.il,A.fV,A.bp,A.mo,A.hx,A.eG,A.ik,A.bs,A.hd,A.bw,A.H,A.dN,A.ax,A.fq,A.hT,A.b6,A.h6,A.hv,A.np,A.d_,A.fX,A.hm,A.hu,A.hR,A.ef,A.iy,A.fT,A.h0,A.h_,A.c1,A.aH,A.bY,A.c4,A.bh,A.c6,A.bX,A.c7,A.c5,A.bA,A.bC,A.kM,A.fe,A.i2,A.bE,A.bW,A.e8,A.an,A.e6,A.cY,A.kB,A.lm,A.jD,A.db,A.kC,A.ey,A.ky,A.bi,A.jE,A.lz,A.h1,A.dg,A.lx,A.kU,A.fU,A.dG,A.dH,A.lc,A.kw,A.ez,A.eF,A.cm,A.kF,A.hI,A.kG,A.kI,A.kH,A.dd,A.de,A.br,A.jA,A.l1,A.cZ,A.bJ,A.fO,A.jx,A.iE,A.nu,A.cu,A.aI,A.eE,A.cH,A.i0,A.kJ,A.bj,A.bx,A.iA,A.eN,A.dF,A.fL,A.ms,A.ix,A.iq,A.hY,A.mI,A.jy,A.hB,A.bg,A.N,A.hk,A.a1,A.bl,A.eI,A.f4,A.hJ,A.oG,A.ij]) +q(J.he,[J.hf,J.ep,J.eq,J.aP,J.d5,J.d4,J.bZ]) +q(J.eq,[J.c0,J.w,A.cw,A.eu]) +q(J.c0,[J.hy,J.cD,J.bu]) +r(J.ki,J.w) +q(J.d4,[J.eo,J.hg]) +q(A.f,[A.ce,A.u,A.aA,A.aU,A.ei,A.cC,A.bD,A.eC,A.eP,A.bt,A.cK,A.i4,A.iH,A.dO,A.er]) +q(A.ce,[A.cn,A.fu]) +r(A.eZ,A.cn) +r(A.eU,A.fu) +r(A.ai,A.eU) +q(A.O,[A.c_,A.bF,A.hi,A.hP,A.ie,A.hD,A.ii,A.fK,A.aX,A.eL,A.hO,A.b4,A.fS]) +q(A.x,[A.dm,A.hW,A.dq,A.bH]) +r(A.eb,A.dm) +q(A.co,[A.ji,A.kc,A.jj,A.ld,A.kk,A.ol,A.on,A.m0,A.m_,A.nV,A.nG,A.nI,A.nH,A.k6,A.my,A.mF,A.la,A.l9,A.l7,A.l5,A.nE,A.mm,A.ml,A.nz,A.ny,A.mG,A.ks,A.mb,A.nN,A.o0,A.o1,A.op,A.ot,A.ou,A.of,A.jK,A.jL,A.jM,A.kR,A.kS,A.kT,A.kP,A.lT,A.lQ,A.lR,A.lO,A.lU,A.lS,A.kD,A.jT,A.oa,A.kl,A.km,A.kr,A.lL,A.lM,A.jG,A.od,A.os,A.jN,A.kK,A.jo,A.jp,A.jq,A.kZ,A.kV,A.kY,A.kW,A.kX,A.jv,A.jw,A.ob,A.lY,A.l2,A.oi,A.j6,A.mh,A.mi,A.jm,A.jn,A.jr,A.js,A.jt,A.ja,A.j7,A.j8,A.l_,A.mY,A.mZ,A.n_,A.na,A.ni,A.nj,A.nm,A.nn,A.no,A.n0,A.n7,A.n8,A.n9,A.nb,A.nc,A.nd,A.ne,A.nf,A.ng,A.nh,A.jc,A.jh,A.jg,A.je,A.jf,A.jd,A.lj,A.lh,A.lg,A.le,A.lf,A.ll,A.lk,A.mp,A.mq]) +q(A.ji,[A.or,A.m1,A.m2,A.nK,A.nJ,A.k5,A.k3,A.mu,A.mB,A.mA,A.mx,A.mw,A.mv,A.mE,A.mD,A.mC,A.lb,A.l8,A.l6,A.l4,A.nD,A.nC,A.md,A.mc,A.ns,A.nY,A.nZ,A.mk,A.mj,A.o5,A.nx,A.nw,A.nR,A.nQ,A.jJ,A.kN,A.kO,A.kQ,A.lV,A.lW,A.lP,A.ov,A.m3,A.m8,A.m6,A.m7,A.m5,A.m4,A.nA,A.nB,A.jI,A.jH,A.mr,A.kp,A.kq,A.lN,A.jF,A.jR,A.jO,A.jP,A.jQ,A.jB,A.j4,A.j5,A.jb,A.mt,A.kb,A.mH,A.mP,A.mO,A.mN,A.mM,A.mX,A.mW,A.mV,A.mU,A.mT,A.mS,A.mR,A.mQ,A.mL,A.mK,A.mJ,A.k2,A.k0,A.jY,A.jZ,A.k_,A.li,A.k9,A.k8]) +q(A.u,[A.P,A.ct,A.ba,A.cJ,A.f6]) +q(A.P,[A.cB,A.E,A.eB]) +r(A.cs,A.aA) +r(A.eg,A.cC) +r(A.d0,A.bD) +r(A.cr,A.bt) +r(A.iz,A.fd) +q(A.iz,[A.ak,A.cL]) +r(A.ed,A.ec) +r(A.en,A.kc) +r(A.ew,A.bF) +q(A.ld,[A.l3,A.e7]) +q(A.T,[A.bv,A.cI]) +q(A.jj,[A.kj,A.om,A.nW,A.oc,A.k7,A.mz,A.nX,A.ka,A.kt,A.ma,A.ls,A.lt,A.lu,A.o_,A.lC,A.lB,A.lA,A.jC,A.lF,A.lE,A.j9,A.nk,A.nl,A.n1,A.n2,A.n3,A.n4,A.n5,A.n6,A.k1]) +q(A.eu,[A.cx,A.d7]) +q(A.d7,[A.f8,A.fa]) +r(A.f9,A.f8) +r(A.c2,A.f9) +r(A.fb,A.fa) +r(A.aS,A.fb) +q(A.c2,[A.hn,A.ho]) +q(A.aS,[A.hp,A.d6,A.hq,A.hr,A.hs,A.ev,A.by]) +r(A.fl,A.ii) +q(A.Y,[A.dK,A.f2,A.eS,A.e5,A.eW,A.f0]) +r(A.ap,A.dK) +r(A.eT,A.ap) +q(A.ag,[A.cf,A.dx,A.dI]) +r(A.cF,A.cf) +r(A.fk,A.cE) +q(A.du,[A.a6,A.a9]) +q(A.cM,[A.dt,A.dP]) +q(A.ih,[A.dv,A.eX]) +r(A.f7,A.f2) +r(A.fj,A.hK) +r(A.dJ,A.fj) +q(A.iP,[A.id,A.iD]) +r(A.dB,A.cI) +r(A.ff,A.di) +r(A.f5,A.ff) +q(A.cp,[A.h3,A.fM]) +q(A.h3,[A.fI,A.hU]) +q(A.cq,[A.iM,A.fN,A.hV]) +r(A.fJ,A.iM) +q(A.aX,[A.dc,A.el]) +r(A.ig,A.fq) +q(A.c1,[A.ao,A.bc,A.bq,A.bo]) +q(A.mo,[A.d8,A.cA,A.c3,A.dn,A.cz,A.da,A.cc,A.bL,A.kv,A.ac,A.d1]) +r(A.jz,A.kB) +r(A.ku,A.lm) +q(A.jD,[A.ht,A.jS]) +q(A.an,[A.i8,A.dC,A.hj]) +q(A.i8,[A.iL,A.fY,A.i9,A.f1]) +r(A.fi,A.iL) +r(A.is,A.dC) +r(A.eD,A.jz) +r(A.fg,A.jS) +q(A.lz,[A.jk,A.ds,A.dh,A.df,A.eH,A.fZ]) +q(A.jk,[A.c8,A.ee]) +r(A.mg,A.kC) +r(A.hZ,A.fY) +r(A.nU,A.eD) +r(A.kg,A.lc) +q(A.kg,[A.kx,A.lv,A.lX]) +q(A.br,[A.h7,A.d2]) +r(A.dk,A.cZ) +r(A.fP,A.bJ) +q(A.fP,[A.ha,A.dr,A.d3,A.dj]) +q(A.fO,[A.ip,A.i_,A.iG]) +r(A.iB,A.jx) +r(A.iC,A.iB) +r(A.hC,A.iC) +r(A.iF,A.iE) +r(A.bk,A.iF) +r(A.lI,A.kF) +r(A.ly,A.kG) +r(A.lK,A.kI) +r(A.lJ,A.kH) +r(A.cb,A.dd) +r(A.bK,A.de) +r(A.i1,A.l1) +q(A.bx,[A.aZ,A.S]) +r(A.aR,A.S) +r(A.aq,A.aF) +q(A.aq,[A.dy,A.dw,A.cG,A.cO]) +q(A.eI,[A.ea,A.ek]) +r(A.eV,A.d_) +r(A.ir,A.bH) +r(A.bI,A.ir) +s(A.dm,A.hQ) +s(A.fu,A.x) +s(A.f8,A.x) +s(A.f9,A.ej) +s(A.fa,A.x) +s(A.fb,A.ej) +s(A.dt,A.i7) +s(A.dP,A.iJ) +s(A.iB,A.x) +s(A.iC,A.hu) +s(A.iE,A.hR) +s(A.iF,A.T)})() +var v={typeUniverse:{eC:new Map(),tR:{},eT:{},tPV:{},sEA:[]},mangledGlobalNames:{b:"int",I:"double",b7:"num",i:"String",U:"bool",H:"Null",q:"List",e:"Object",aa:"Map"},mangledNames:{},types:["~()","~(A)","D<~>()","U(i)","b(b,b)","I(b7)","H()","~(e,a0)","~(e?)","i(i)","H(A)","N()","H(b)","b(b)","e?(e?)","N(i)","~(@)","~(~())","i(b)","~(A?,q?)","D()","H(b,b,b)","D()","U(~)","b?(b)","~(at,i,b)","@()","b(b,b,b,b,b)","b(b,b,b)","a1(i)","b(b,b,b,aP)","~(e[a0?])","b(N)","i(N)","b(b,b,b,b)","U()","H(@)","b7?(q)","bh()","~(@,a0)","q(w)","bE(e?)","D()","H(@,a0)","~(e?,e?)","b()","D()","aa(q)","b(q)","~(b,@)","H(an)","D(~)","H(~())","@(@,i)","~(i,b)","A(w)","dg()","D()","D()","~(af)","~(U,U,U,q<+(bL,i)>)","~(i,b?)","i(i?)","i(e?)","~(dd,q)","~(br)","~(i,aa)","~(i,e?)","~(dF)","A(A?)","D<~>(b,at)","D<~>(b)","at()","D(i)","H(e,a0)","at(@,@)","k<@>(@)","@(i)","H(b,b)","D<~>(ao)","b(b,aP)","H(U)","H(b,b,b,b,aP)","q(a1)","b(a1)","H(~)","i(a1)","bB?/(ao)","@(@)","N(i,i)","a1()","b(@,@)","D()","~(y?,Z?,y,e,a0)","0^(y?,Z?,y,0^())","0^(y?,Z?,y,0^(1^),1^)","0^(y?,Z?,y,0^(1^,2^),1^,2^)","0^()(y,Z,y,0^())","0^(1^)(y,Z,y,0^(1^))","0^(1^,2^)(y,Z,y,0^(1^,2^))","bf?(y,Z,y,e,a0?)","~(y?,Z?,y,~())","eK(y,Z,y,bp,~())","eK(y,Z,y,bp,~(eK))","~(y,Z,y,i)","~(i)","y(y?,Z?,y,p0?,aa?)","0^(0^,0^)","bW<@>?()","ao()","U?(q)","U(q<@>)","aZ(bj)","S(bj)","aR(bj)","bc()","~(@,@)"],interceptorsByTag:null,leafTags:null,arrayRti:Symbol("$ti"),rttc:{"2;":(a,b)=>c=>c instanceof A.ak&&a.b(c.a)&&b.b(c.b),"2;file,outFlags":(a,b)=>c=>c instanceof A.cL&&a.b(c.a)&&b.b(c.b)}} +A.vB(v.typeUniverse,JSON.parse('{"bu":"c0","hy":"c0","cD":"c0","w":{"q":["1"],"u":["1"],"A":[],"f":["1"],"ar":["1"]},"hf":{"U":[],"L":[]},"ep":{"H":[],"L":[]},"eq":{"A":[]},"c0":{"A":[]},"ki":{"w":["1"],"q":["1"],"u":["1"],"A":[],"f":["1"],"ar":["1"]},"d4":{"I":[],"b7":[]},"eo":{"I":[],"b":[],"b7":[],"L":[]},"hg":{"I":[],"b7":[],"L":[]},"bZ":{"i":[],"ar":["@"],"L":[]},"ce":{"f":["2"]},"cn":{"ce":["1","2"],"f":["2"],"f.E":"2"},"eZ":{"cn":["1","2"],"ce":["1","2"],"u":["2"],"f":["2"],"f.E":"2"},"eU":{"x":["2"],"q":["2"],"ce":["1","2"],"u":["2"],"f":["2"]},"ai":{"eU":["1","2"],"x":["2"],"q":["2"],"ce":["1","2"],"u":["2"],"f":["2"],"x.E":"2","f.E":"2"},"c_":{"O":[]},"eb":{"x":["b"],"q":["b"],"u":["b"],"f":["b"],"x.E":"b"},"u":{"f":["1"]},"P":{"u":["1"],"f":["1"]},"cB":{"P":["1"],"u":["1"],"f":["1"],"f.E":"1","P.E":"1"},"aA":{"f":["2"],"f.E":"2"},"cs":{"aA":["1","2"],"u":["2"],"f":["2"],"f.E":"2"},"E":{"P":["2"],"u":["2"],"f":["2"],"f.E":"2","P.E":"2"},"aU":{"f":["1"],"f.E":"1"},"ei":{"f":["2"],"f.E":"2"},"cC":{"f":["1"],"f.E":"1"},"eg":{"cC":["1"],"u":["1"],"f":["1"],"f.E":"1"},"bD":{"f":["1"],"f.E":"1"},"d0":{"bD":["1"],"u":["1"],"f":["1"],"f.E":"1"},"eC":{"f":["1"],"f.E":"1"},"ct":{"u":["1"],"f":["1"],"f.E":"1"},"eP":{"f":["1"],"f.E":"1"},"bt":{"f":["+(b,1)"],"f.E":"+(b,1)"},"cr":{"bt":["1"],"u":["+(b,1)"],"f":["+(b,1)"],"f.E":"+(b,1)"},"dm":{"x":["1"],"q":["1"],"u":["1"],"f":["1"]},"eB":{"P":["1"],"u":["1"],"f":["1"],"f.E":"1","P.E":"1"},"ec":{"aa":["1","2"]},"ed":{"ec":["1","2"],"aa":["1","2"]},"cK":{"f":["1"],"f.E":"1"},"ew":{"bF":[],"O":[]},"hi":{"O":[]},"hP":{"O":[]},"hw":{"a5":[]},"fh":{"a0":[]},"ie":{"O":[]},"hD":{"O":[]},"bv":{"T":["1","2"],"aa":["1","2"],"T.V":"2","T.K":"1"},"ba":{"u":["1"],"f":["1"],"f.E":"1"},"dE":{"hA":[],"et":[]},"i4":{"f":["hA"],"f.E":"hA"},"dl":{"et":[]},"iH":{"f":["et"],"f.E":"et"},"cw":{"A":[],"fQ":[],"L":[]},"cx":{"oE":[],"A":[],"L":[]},"d6":{"aS":[],"ke":[],"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"],"L":[],"x.E":"b"},"by":{"aS":[],"at":[],"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"],"L":[],"x.E":"b"},"eu":{"A":[]},"iO":{"fQ":[]},"d7":{"aQ":["1"],"A":[],"ar":["1"]},"c2":{"x":["I"],"q":["I"],"aQ":["I"],"u":["I"],"A":[],"ar":["I"],"f":["I"]},"aS":{"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"]},"hn":{"c2":[],"jW":[],"x":["I"],"q":["I"],"aQ":["I"],"u":["I"],"A":[],"ar":["I"],"f":["I"],"L":[],"x.E":"I"},"ho":{"c2":[],"jX":[],"x":["I"],"q":["I"],"aQ":["I"],"u":["I"],"A":[],"ar":["I"],"f":["I"],"L":[],"x.E":"I"},"hp":{"aS":[],"kd":[],"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"],"L":[],"x.E":"b"},"hq":{"aS":[],"kf":[],"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"],"L":[],"x.E":"b"},"hr":{"aS":[],"lp":[],"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"],"L":[],"x.E":"b"},"hs":{"aS":[],"lq":[],"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"],"L":[],"x.E":"b"},"ev":{"aS":[],"lr":[],"x":["b"],"q":["b"],"aQ":["b"],"u":["b"],"A":[],"ar":["b"],"f":["b"],"L":[],"x.E":"b"},"ii":{"O":[]},"fl":{"bF":[],"O":[]},"bf":{"O":[]},"k":{"D":["1"]},"ag":{"ag.T":"1"},"dA":{"af":["1"]},"dO":{"f":["1"],"f.E":"1"},"eT":{"ap":["1"],"dK":["1"],"Y":["1"],"Y.T":"1"},"cF":{"cf":["1"],"ag":["1"],"ag.T":"1"},"cE":{"af":["1"]},"fk":{"cE":["1"],"af":["1"]},"a6":{"du":["1"]},"a9":{"du":["1"]},"cM":{"af":["1"]},"dt":{"cM":["1"],"af":["1"]},"dP":{"cM":["1"],"af":["1"]},"ap":{"dK":["1"],"Y":["1"],"Y.T":"1"},"cf":{"ag":["1"],"ag.T":"1"},"dM":{"af":["1"]},"dK":{"Y":["1"]},"f2":{"Y":["2"]},"dx":{"ag":["2"],"ag.T":"2"},"f7":{"f2":["1","2"],"Y":["2"],"Y.T":"2"},"f_":{"af":["1"]},"dI":{"ag":["2"],"ag.T":"2"},"eS":{"Y":["2"],"Y.T":"2"},"dJ":{"fj":["1","2"]},"iQ":{"p0":[]},"dR":{"Z":[]},"iP":{"y":[]},"id":{"y":[]},"iD":{"y":[]},"cI":{"T":["1","2"],"aa":["1","2"],"T.V":"2","T.K":"1"},"dB":{"cI":["1","2"],"T":["1","2"],"aa":["1","2"],"T.V":"2","T.K":"1"},"cJ":{"u":["1"],"f":["1"],"f.E":"1"},"f5":{"ff":["1"],"di":["1"],"u":["1"],"f":["1"]},"er":{"f":["1"],"f.E":"1"},"x":{"q":["1"],"u":["1"],"f":["1"]},"T":{"aa":["1","2"]},"f6":{"u":["2"],"f":["2"],"f.E":"2"},"di":{"u":["1"],"f":["1"]},"ff":{"di":["1"],"u":["1"],"f":["1"]},"fI":{"cp":["i","q"]},"iM":{"cq":["i","q"]},"fJ":{"cq":["i","q"]},"fM":{"cp":["q","i"]},"fN":{"cq":["q","i"]},"h3":{"cp":["i","q"]},"hU":{"cp":["i","q"]},"hV":{"cq":["i","q"]},"I":{"b7":[]},"b":{"b7":[]},"q":{"u":["1"],"f":["1"]},"hA":{"et":[]},"fK":{"O":[]},"bF":{"O":[]},"aX":{"O":[]},"dc":{"O":[]},"el":{"O":[]},"eL":{"O":[]},"hO":{"O":[]},"b4":{"O":[]},"fS":{"O":[]},"hx":{"O":[]},"eG":{"O":[]},"ik":{"a5":[]},"bs":{"a5":[]},"hd":{"a5":[],"O":[]},"dN":{"a0":[]},"fq":{"hS":[]},"b6":{"hS":[]},"ig":{"hS":[]},"hv":{"a5":[]},"d_":{"af":["1"]},"fT":{"a5":[]},"h0":{"a5":[]},"ao":{"c1":[]},"bc":{"c1":[]},"bh":{"as":[]},"bA":{"as":[]},"aH":{"bB":[]},"bq":{"c1":[]},"bo":{"c1":[]},"d8":{"as":[]},"bY":{"as":[]},"c4":{"as":[]},"c6":{"as":[]},"bX":{"as":[]},"c7":{"as":[]},"c5":{"as":[]},"bC":{"bB":[]},"e8":{"a5":[]},"i8":{"an":[]},"iL":{"hN":[],"an":[]},"fi":{"hN":[],"an":[]},"fY":{"an":[]},"i9":{"an":[]},"f1":{"an":[]},"dC":{"an":[]},"is":{"hN":[],"an":[]},"hj":{"an":[]},"ds":{"a5":[]},"hZ":{"an":[]},"ez":{"a5":[]},"eF":{"a5":[]},"h7":{"br":[]},"hW":{"x":["e?"],"q":["e?"],"u":["e?"],"f":["e?"],"x.E":"e?"},"d2":{"br":[]},"dk":{"cZ":[]},"ha":{"bJ":[]},"ip":{"dp":[]},"bk":{"T":["i","@"],"aa":["i","@"],"T.V":"@","T.K":"i"},"hC":{"x":["bk"],"q":["bk"],"u":["bk"],"f":["bk"],"x.E":"bk"},"aI":{"a5":[]},"fP":{"bJ":[]},"fO":{"dp":[]},"bK":{"de":[]},"cb":{"dd":[]},"dq":{"x":["bK"],"q":["bK"],"u":["bK"],"f":["bK"],"x.E":"bK"},"e5":{"Y":["1"],"Y.T":"1"},"dr":{"bJ":[]},"i_":{"dp":[]},"aZ":{"bx":[]},"S":{"bx":[]},"aR":{"S":[],"bx":[]},"d3":{"bJ":[]},"aq":{"aF":["aq"]},"iq":{"dp":[]},"dy":{"aq":[],"aF":["aq"],"aF.E":"aq"},"dw":{"aq":[],"aF":["aq"],"aF.E":"aq"},"cG":{"aq":[],"aF":["aq"],"aF.E":"aq"},"cO":{"aq":[],"aF":["aq"],"aF.E":"aq"},"dj":{"bJ":[]},"iG":{"dp":[]},"bg":{"a0":[]},"hk":{"a1":[],"a0":[]},"a1":{"a0":[]},"bl":{"N":[]},"ea":{"eI":["1"]},"eW":{"Y":["1"],"Y.T":"1"},"eV":{"af":["1"]},"ek":{"eI":["1"]},"f4":{"af":["1"]},"bI":{"bH":["b"],"x":["b"],"q":["b"],"u":["b"],"f":["b"],"x.E":"b","bH.E":"b"},"bH":{"x":["1"],"q":["1"],"u":["1"],"f":["1"]},"ir":{"bH":["b"],"x":["b"],"q":["b"],"u":["b"],"f":["b"]},"f0":{"Y":["1"],"Y.T":"1"},"kf":{"q":["b"],"u":["b"],"f":["b"]},"at":{"q":["b"],"u":["b"],"f":["b"]},"lr":{"q":["b"],"u":["b"],"f":["b"]},"kd":{"q":["b"],"u":["b"],"f":["b"]},"lp":{"q":["b"],"u":["b"],"f":["b"]},"ke":{"q":["b"],"u":["b"],"f":["b"]},"lq":{"q":["b"],"u":["b"],"f":["b"]},"jW":{"q":["I"],"u":["I"],"f":["I"]},"jX":{"q":["I"],"u":["I"],"f":["I"]}}')) +A.vA(v.typeUniverse,JSON.parse('{"eO":1,"hG":1,"hH":1,"h2":1,"em":1,"ej":1,"hQ":1,"dm":1,"fu":2,"hl":1,"d7":1,"af":1,"iI":1,"hK":2,"iJ":1,"i7":1,"dM":1,"ih":1,"dv":1,"fc":1,"eY":1,"dL":1,"f_":1,"au":1,"h6":1,"d_":1,"fX":1,"hm":1,"hu":1,"hR":2,"eD":1,"tY":1,"hI":1,"eV":1,"f4":1,"ij":1}')) +var u={q:"===== asynchronous gap ===========================\n",l:"Cannot extract a file path from a URI with a fragment component",y:"Cannot extract a file path from a URI with a query component",j:"Cannot extract a non-Windows file path from a file URI with an authority",o:"Cannot fire new event. Controller is already firing an event",c:"Error handler must accept one Object or one Object and a StackTrace as arguments, and return a value of the returned future's type",D:"Tried to operate on a released prepared statement"} +var t=(function rtii(){var s=A.av +return{b9:s("tY"),cO:s("e5>"),dI:s("fQ"),fd:s("oE"),g1:s("bW<@>"),eT:s("cZ"),ed:s("ee"),gw:s("ef"),Q:s("u<@>"),q:s("aZ"),C:s("O"),g8:s("a5"),ez:s("d1"),G:s("S"),h4:s("jW"),gN:s("jX"),B:s("N"),b8:s("y4"),bF:s("D"),cG:s("D"),eY:s("D"),bd:s("d3"),dQ:s("kd"),an:s("ke"),gj:s("kf"),dP:s("f"),g7:s("w"),cf:s("w"),eV:s("w"),e:s("w"),fG:s("w>"),fk:s("w>"),W:s("w"),gP:s("w>"),gz:s("w>"),d:s("w>"),dZ:s("w"),as:s("w"),f:s("w"),L:s("w<+(bL,i)>"),bb:s("w"),s:s("w"),be:s("w"),J:s("w"),gQ:s("w"),n:s("w"),gn:s("w<@>"),t:s("w"),c:s("w"),d4:s("w"),r:s("w"),Y:s("w"),bT:s("w<~()>"),aP:s("ar<@>"),T:s("ep"),m:s("A"),b:s("aP"),g:s("bu"),aU:s("aQ<@>"),au:s("er"),e9:s("q>"),cl:s("q"),aS:s("q>"),u:s("q"),j:s("q<@>"),I:s("q"),ee:s("q"),dY:s("aa"),g6:s("aa"),cv:s("aa"),M:s("aA"),fe:s("E"),do:s("E"),fJ:s("c1"),cb:s("bx"),eN:s("aR"),o:s("cw"),gT:s("cx"),ha:s("d6"),aV:s("c2"),eB:s("aS"),Z:s("by"),bw:s("bA"),P:s("H"),K:s("e"),x:s("an"),aj:s("db"),fl:s("y8"),bQ:s("+()"),e1:s("+(A?,A)"),cz:s("hA"),gy:s("hB"),al:s("ao"),cc:s("bB"),bJ:s("eB"),fE:s("dg"),fM:s("c8"),gW:s("dj"),l:s("a0"),a7:s("hJ"),N:s("i"),aF:s("eK"),a:s("a1"),v:s("hN"),dm:s("L"),eK:s("bF"),h7:s("lp"),bv:s("lq"),go:s("lr"),p:s("at"),ak:s("cD"),dD:s("hS"),ei:s("eN"),fL:s("bJ"),ga:s("dp"),h2:s("hY"),g9:s("i0"),ab:s("i1"),aT:s("dr"),U:s("aU"),eJ:s("eP"),R:s("ac"),dx:s("ac"),b0:s("ac"),bi:s("a6"),co:s("a6"),fu:s("a6"),h:s("a6<~>"),V:s("cH"),fF:s("f0"),et:s("k"),a9:s("k"),k:s("k"),eI:s("k<@>"),gR:s("k"),fX:s("k"),D:s("k<~>"),hg:s("dB"),cT:s("dF"),aR:s("iy"),eg:s("iA"),dn:s("fk<~>"),eC:s("a9"),fa:s("a9"),F:s("a9<~>"),y:s("U"),i:s("I"),z:s("@"),bI:s("@(e)"),w:s("@(e,a0)"),S:s("b"),aw:s("0&*"),_:s("e*"),eH:s("D?"),A:s("A?"),dE:s("by?"),X:s("e?"),ah:s("as?"),O:s("bB?"),fN:s("bI?"),aD:s("at?"),h6:s("b?"),E:s("b7"),H:s("~"),d5:s("~(e)"),da:s("~(e,a0)")}})();(function constants(){var s=hunkHelpers.makeConstList +B.aH=J.he.prototype +B.c=J.w.prototype +B.b=J.eo.prototype +B.aI=J.d4.prototype +B.a=J.bZ.prototype +B.aJ=J.bu.prototype +B.aK=J.eq.prototype +B.aW=A.cx.prototype +B.e=A.by.prototype +B.ah=J.hy.prototype +B.E=J.cD.prototype +B.ao=new A.cm(0) +B.l=new A.cm(1) +B.q=new A.cm(2) +B.Z=new A.cm(3) +B.bK=new A.cm(-1) +B.ap=new A.fJ(127) +B.y=new A.en(A.xE(),A.av("en")) +B.aq=new A.fI() +B.bL=new A.fN() +B.ar=new A.fM() +B.a_=new A.e8() +B.as=new A.fT() +B.bM=new A.fX() +B.a0=new A.h_() +B.a1=new A.h2() +B.h=new A.aZ() +B.at=new A.hd() +B.a2=function getTagFallback(o) { + var s = Object.prototype.toString.call(o); + return s.substring(8, s.length - 1); +} +B.au=function() { + var toStringFunction = Object.prototype.toString; + function getTag(o) { + var s = toStringFunction.call(o); + return s.substring(8, s.length - 1); + } + function getUnknownTag(object, tag) { + if (/^HTML[A-Z].*Element$/.test(tag)) { + var name = toStringFunction.call(object); + if (name == "[object Object]") return null; + return "HTMLElement"; + } + } + function getUnknownTagGenericBrowser(object, tag) { + if (object instanceof HTMLElement) return "HTMLElement"; + return getUnknownTag(object, tag); + } + function prototypeForTag(tag) { + if (typeof window == "undefined") return null; + if (typeof window[tag] == "undefined") return null; + var constructor = window[tag]; + if (typeof constructor != "function") return null; + return constructor.prototype; + } + function discriminator(tag) { return null; } + var isBrowser = typeof HTMLElement == "function"; + return { + getTag: getTag, + getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, + prototypeForTag: prototypeForTag, + discriminator: discriminator }; +} +B.az=function(getTagFallback) { + return function(hooks) { + if (typeof navigator != "object") return hooks; + var userAgent = navigator.userAgent; + if (typeof userAgent != "string") return hooks; + if (userAgent.indexOf("DumpRenderTree") >= 0) return hooks; + if (userAgent.indexOf("Chrome") >= 0) { + function confirm(p) { + return typeof window == "object" && window[p] && window[p].name == p; + } + if (confirm("Window") && confirm("HTMLElement")) return hooks; + } + hooks.getTag = getTagFallback; + }; +} +B.av=function(hooks) { + if (typeof dartExperimentalFixupGetTag != "function") return hooks; + hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); +} +B.ay=function(hooks) { + if (typeof navigator != "object") return hooks; + var userAgent = navigator.userAgent; + if (typeof userAgent != "string") return hooks; + if (userAgent.indexOf("Firefox") == -1) return hooks; + var getTag = hooks.getTag; + var quickMap = { + "BeforeUnloadEvent": "Event", + "DataTransfer": "Clipboard", + "GeoGeolocation": "Geolocation", + "Location": "!Location", + "WorkerMessageEvent": "MessageEvent", + "XMLDocument": "!Document"}; + function getTagFirefox(o) { + var tag = getTag(o); + return quickMap[tag] || tag; + } + hooks.getTag = getTagFirefox; +} +B.ax=function(hooks) { + if (typeof navigator != "object") return hooks; + var userAgent = navigator.userAgent; + if (typeof userAgent != "string") return hooks; + if (userAgent.indexOf("Trident/") == -1) return hooks; + var getTag = hooks.getTag; + var quickMap = { + "BeforeUnloadEvent": "Event", + "DataTransfer": "Clipboard", + "HTMLDDElement": "HTMLElement", + "HTMLDTElement": "HTMLElement", + "HTMLPhraseElement": "HTMLElement", + "Position": "Geoposition" + }; + function getTagIE(o) { + var tag = getTag(o); + var newTag = quickMap[tag]; + if (newTag) return newTag; + if (tag == "Object") { + if (window.DataView && (o instanceof window.DataView)) return "DataView"; + } + return tag; + } + function prototypeForTagIE(tag) { + var constructor = window[tag]; + if (constructor == null) return null; + return constructor.prototype; + } + hooks.getTag = getTagIE; + hooks.prototypeForTag = prototypeForTagIE; +} +B.aw=function(hooks) { + var getTag = hooks.getTag; + var prototypeForTag = hooks.prototypeForTag; + function getTagFixed(o) { + var tag = getTag(o); + if (tag == "Document") { + if (!!o.xmlVersion) return "!Document"; + return "!HTMLDocument"; + } + return tag; + } + function prototypeForTagFixed(tag) { + if (tag == "Document") return null; + return prototypeForTag(tag); + } + hooks.getTag = getTagFixed; + hooks.prototypeForTag = prototypeForTagFixed; +} +B.a3=function(hooks) { return hooks; } + +B.o=new A.hm() +B.aA=new A.ku() +B.aB=new A.ht() +B.aC=new A.hx() +B.f=new A.kL() +B.j=new A.hU() +B.i=new A.hV() +B.a4=new A.i2() +B.z=new A.mn() +B.d=new A.iD() +B.A=new A.bp(0) +B.aF=new A.bs("Cannot read message",null,null) +B.aG=new A.bs("Unknown tag",null,null) +B.aL=A.d(s([11]),t.t) +B.aM=A.d(s([0,0,32722,12287,65534,34815,65534,18431]),t.t) +B.p=A.d(s([0,0,65490,45055,65535,34815,65534,18431]),t.t) +B.aN=A.d(s([0,0,32754,11263,65534,34815,65534,18431]),t.t) +B.a5=A.d(s([0,0,26624,1023,65534,2047,65534,2047]),t.t) +B.aO=A.d(s([0,0,32722,12287,65535,34815,65534,18431]),t.t) +B.a6=A.d(s([0,0,65490,12287,65535,34815,65534,18431]),t.t) +B.a7=A.d(s([0,0,32776,33792,1,10240,0,0]),t.t) +B.G=new A.bL(0,"opfs") +B.an=new A.bL(1,"indexedDb") +B.aP=A.d(s([B.G,B.an]),A.av("w")) +B.bl=new A.dn(0,"insert") +B.bm=new A.dn(1,"update") +B.bn=new A.dn(2,"delete") +B.a8=A.d(s([B.bl,B.bm,B.bn]),A.av("w")) +B.I=new A.ac(A.pC(),A.b8(),0,"xAccess",t.b0) +B.H=new A.ac(A.pC(),A.bU(),1,"xDelete",A.av("ac")) +B.T=new A.ac(A.pC(),A.b8(),2,"xOpen",t.b0) +B.R=new A.ac(A.b8(),A.b8(),3,"xRead",t.dx) +B.M=new A.ac(A.b8(),A.bU(),4,"xWrite",t.R) +B.N=new A.ac(A.b8(),A.bU(),5,"xSleep",t.R) +B.O=new A.ac(A.b8(),A.bU(),6,"xClose",t.R) +B.S=new A.ac(A.b8(),A.b8(),7,"xFileSize",t.dx) +B.P=new A.ac(A.b8(),A.bU(),8,"xSync",t.R) +B.Q=new A.ac(A.b8(),A.bU(),9,"xTruncate",t.R) +B.K=new A.ac(A.b8(),A.bU(),10,"xLock",t.R) +B.L=new A.ac(A.b8(),A.bU(),11,"xUnlock",t.R) +B.J=new A.ac(A.bU(),A.bU(),12,"stopServer",A.av("ac")) +B.aQ=A.d(s([B.I,B.H,B.T,B.R,B.M,B.N,B.O,B.S,B.P,B.Q,B.K,B.L,B.J]),A.av("w>")) +B.B=A.d(s([]),t.W) +B.aR=A.d(s([]),t.gz) +B.aS=A.d(s([]),t.f) +B.r=A.d(s([]),t.s) +B.t=A.d(s([]),t.c) +B.C=A.d(s([]),t.L) +B.al=new A.cc(0,"opfsShared") +B.am=new A.cc(1,"opfsLocks") +B.w=new A.cc(2,"sharedIndexedDb") +B.F=new A.cc(3,"unsafeIndexedDb") +B.bu=new A.cc(4,"inMemory") +B.aU=A.d(s([B.al,B.am,B.w,B.F,B.bu]),A.av("w")) +B.b5=new A.cA(0,"custom") +B.b6=new A.cA(1,"deleteOrUpdate") +B.b7=new A.cA(2,"insert") +B.b8=new A.cA(3,"select") +B.a9=A.d(s([B.b5,B.b6,B.b7,B.b8]),A.av("w")) +B.aE=new A.d1("/database",0,"database") +B.aD=new A.d1("/database-journal",1,"journal") +B.aa=A.d(s([B.aE,B.aD]),A.av("w")) +B.ae=new A.c3(0,"beginTransaction") +B.aX=new A.c3(1,"commit") +B.aY=new A.c3(2,"rollback") +B.af=new A.c3(3,"startExclusive") +B.ag=new A.c3(4,"endExclusive") +B.ab=A.d(s([B.ae,B.aX,B.aY,B.af,B.ag]),A.av("w")) +B.ac=A.d(s([0,0,24576,1023,65534,34815,65534,18431]),t.t) +B.m=new A.cz(0,"sqlite") +B.b2=new A.cz(1,"mysql") +B.b3=new A.cz(2,"postgres") +B.b4=new A.cz(3,"mariadb") +B.ad=A.d(s([B.m,B.b2,B.b3,B.b4]),A.av("w")) +B.aZ={} +B.aV=new A.ed(B.aZ,[],A.av("ed")) +B.D=new A.d8(0,"terminateAll") +B.bN=new A.kv(2,"readWriteCreate") +B.u=new A.da(0,0,"legacy") +B.b_=new A.da(1,1,"v1") +B.b0=new A.da(2,2,"v2") +B.v=new A.da(3,3,"v3") +B.aT=A.d(s([]),t.d) +B.b1=new A.bC(B.aT) +B.ai=new A.hL("drift.runtime.cancellation") +B.b9=A.be("fQ") +B.ba=A.be("oE") +B.bb=A.be("jW") +B.bc=A.be("jX") +B.bd=A.be("kd") +B.be=A.be("ke") +B.bf=A.be("kf") +B.bg=A.be("e") +B.bh=A.be("lp") +B.bi=A.be("lq") +B.bj=A.be("lr") +B.bk=A.be("at") +B.bo=new A.aI(10) +B.bp=new A.aI(12) +B.aj=new A.aI(14) +B.bq=new A.aI(2570) +B.br=new A.aI(3850) +B.bs=new A.aI(522) +B.ak=new A.aI(778) +B.bt=new A.aI(8) +B.U=new A.dG("above root") +B.V=new A.dG("at root") +B.bv=new A.dG("reaches root") +B.W=new A.dG("below root") +B.k=new A.dH("different") +B.X=new A.dH("equal") +B.n=new A.dH("inconclusive") +B.Y=new A.dH("within") +B.x=new A.dN("") +B.bw=new A.au(B.d,A.x_()) +B.bx=new A.au(B.d,A.x3()) +B.by=new A.au(B.d,A.wX()) +B.bz=new A.au(B.d,A.wY()) +B.bA=new A.au(B.d,A.wZ()) +B.bB=new A.au(B.d,A.x0()) +B.bC=new A.au(B.d,A.x2()) +B.bD=new A.au(B.d,A.x4()) +B.bE=new A.au(B.d,A.x5()) +B.bF=new A.au(B.d,A.x6()) +B.bG=new A.au(B.d,A.x7()) +B.bH=new A.au(B.d,A.wW()) +B.bI=new A.au(B.d,A.x1()) +B.bJ=new A.iQ(null,null,null,null,null,null,null,null,null,null,null,null,null)})();(function staticFields(){$.nq=null +$.cU=A.d([],t.f) +$.rX=null +$.qg=null +$.pS=null +$.pR=null +$.rO=null +$.rH=null +$.rY=null +$.oh=null +$.oo=null +$.pv=null +$.nt=A.d([],A.av("w?>")) +$.dT=null +$.fv=null +$.fw=null +$.pl=!1 +$.j=B.d +$.nv=null +$.qM=null +$.qN=null +$.qO=null +$.qP=null +$.p1=A.mf("_lastQuoRemDigits") +$.p2=A.mf("_lastQuoRemUsed") +$.eR=A.mf("_lastRemUsed") +$.p3=A.mf("_lastRem_nsh") +$.qF="" +$.qG=null +$.rn=null +$.o2=null})();(function lazyInitializers(){var s=hunkHelpers.lazyFinal,r=hunkHelpers.lazy +s($,"y_","e1",()=>A.xm("_$dart_dartClosure")) +s($,"ze","tK",()=>B.d.bf(new A.or(),A.av("D<~>"))) +s($,"ye","t6",()=>A.bG(A.lo({ +toString:function(){return"$receiver$"}}))) +s($,"yf","t7",()=>A.bG(A.lo({$method$:null, +toString:function(){return"$receiver$"}}))) +s($,"yg","t8",()=>A.bG(A.lo(null))) +s($,"yh","t9",()=>A.bG(function(){var $argumentsExpr$="$arguments$" +try{null.$method$($argumentsExpr$)}catch(q){return q.message}}())) +s($,"yk","tc",()=>A.bG(A.lo(void 0))) +s($,"yl","td",()=>A.bG(function(){var $argumentsExpr$="$arguments$" +try{(void 0).$method$($argumentsExpr$)}catch(q){return q.message}}())) +s($,"yj","tb",()=>A.bG(A.qB(null))) +s($,"yi","ta",()=>A.bG(function(){try{null.$method$}catch(q){return q.message}}())) +s($,"yn","tf",()=>A.bG(A.qB(void 0))) +s($,"ym","te",()=>A.bG(function(){try{(void 0).$method$}catch(q){return q.message}}())) +s($,"yp","pG",()=>A.v6()) +s($,"y6","cl",()=>$.tK()) +s($,"y5","t3",()=>A.vh(!1,B.d,t.y)) +s($,"yz","tl",()=>{var q=t.z +return A.q4(q,q)}) +s($,"yD","tp",()=>A.qd(4096)) +s($,"yB","tn",()=>new A.nR().$0()) +s($,"yC","to",()=>new A.nQ().$0()) +s($,"yq","tg",()=>A.uC(A.iS(A.d([-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-1,-2,-2,-2,-2,-2,62,-2,62,-2,63,52,53,54,55,56,57,58,59,60,61,-2,-2,-2,-1,-2,-2,-2,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-2,-2,-2,-2,63,-2,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-2,-2,-2,-2,-2],t.t)))) +s($,"yx","b9",()=>A.eQ(0)) +s($,"yv","fD",()=>A.eQ(1)) +s($,"yw","tj",()=>A.eQ(2)) +s($,"yt","pI",()=>$.fD().aB(0)) +s($,"yr","pH",()=>A.eQ(1e4)) +r($,"yu","ti",()=>A.J("^\\s*([+-]?)((0x[a-f0-9]+)|(\\d+)|([a-z0-9]+))\\s*$",!1,!1,!1,!1)) +s($,"ys","th",()=>A.qd(8)) +s($,"yy","tk",()=>typeof FinalizationRegistry=="function"?FinalizationRegistry:null) +s($,"yA","tm",()=>A.J("^[\\-\\.0-9A-Z_a-z~]*$",!0,!1,!1,!1)) +s($,"yW","oA",()=>A.py(B.bg)) +s($,"yZ","tA",()=>A.w5()) +s($,"y7","t4",()=>{var q=new A.np(new DataView(new ArrayBuffer(A.w3(8)))) +q.hX() +return q}) +s($,"yo","pF",()=>A.uc(B.aP,A.av("bL"))) +s($,"zi","tL",()=>A.ju(null,$.fC())) +s($,"zg","fE",()=>A.ju(null,$.cV())) +s($,"z8","j_",()=>new A.fU($.pE(),null)) +s($,"yb","t5",()=>new A.kx(A.J("/",!0,!1,!1,!1),A.J("[^/]$",!0,!1,!1,!1),A.J("^/",!0,!1,!1,!1))) +s($,"yd","fC",()=>new A.lX(A.J("[/\\\\]",!0,!1,!1,!1),A.J("[^/\\\\]$",!0,!1,!1,!1),A.J("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])",!0,!1,!1,!1),A.J("^[/\\\\](?![/\\\\])",!0,!1,!1,!1))) +s($,"yc","cV",()=>new A.lv(A.J("/",!0,!1,!1,!1),A.J("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$",!0,!1,!1,!1),A.J("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*",!0,!1,!1,!1),A.J("^/",!0,!1,!1,!1))) +s($,"ya","pE",()=>A.uV()) +s($,"z7","tJ",()=>A.pP("-9223372036854775808")) +s($,"z6","tI",()=>A.pP("9223372036854775807")) +s($,"zd","e2",()=>{var q=$.tk() +q=q==null?null:new q(A.cj(A.xX(new A.oi(),A.av("br")),1)) +return new A.il(q,A.av("il
"))}) +s($,"xZ","fB",()=>$.t4()) +s($,"xY","oy",()=>A.ux(A.d(["files","blocks"],t.s))) +s($,"y1","oz",()=>{var q,p,o=A.a2(t.N,t.ez) +for(q=0;q<2;++q){p=B.aa[q] +o.q(0,p.c,p)}return o}) +s($,"y0","t0",()=>new A.h6(new WeakMap())) +s($,"z5","tH",()=>A.J("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$",!0,!1,!1,!1)) +s($,"z0","tC",()=>A.J("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$",!0,!1,!1,!1)) +s($,"z1","tD",()=>A.J("^(.*?):(\\d+)(?::(\\d+))?$|native$",!0,!1,!1,!1)) +s($,"z4","tG",()=>A.J("^\\s*at (?:(?.+) )?(?:\\(?(?:(?\\S+):wasm-function\\[(?\\d+)\\]\\:0x(?[0-9a-fA-F]+))\\)?)$",!0,!1,!1,!1)) +s($,"z_","tB",()=>A.J("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$",!0,!1,!1,!1)) +s($,"yP","tr",()=>A.J("(\\S+)@(\\S+) line (\\d+) >.* (Function|eval):\\d+:\\d+",!0,!1,!1,!1)) +s($,"yR","tt",()=>A.J("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$",!0,!1,!1,!1)) +s($,"yT","tv",()=>A.J("^(?.*?)@(?:(?\\S+).*?:wasm-function\\[(?\\d+)\\]:0x(?[0-9a-fA-F]+))$",!0,!1,!1,!1)) +s($,"yY","tz",()=>A.J("^.*?wasm-function\\[(?.*)\\]@\\[wasm code\\]$",!0,!1,!1,!1)) +s($,"yU","tw",()=>A.J("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$",!0,!1,!1,!1)) +s($,"yO","tq",()=>A.J("<(|[^>]+)_async_body>",!0,!1,!1,!1)) +s($,"yX","ty",()=>A.J("^\\.",!0,!1,!1,!1)) +s($,"y2","t1",()=>A.J("^[a-zA-Z][-+.a-zA-Z\\d]*://",!0,!1,!1,!1)) +s($,"y3","t2",()=>A.J("^([a-zA-Z]:[\\\\/]|\\\\\\\\)",!0,!1,!1,!1)) +s($,"z2","tE",()=>A.J("\\n ?at ",!0,!1,!1,!1)) +s($,"z3","tF",()=>A.J(" ?at ",!0,!1,!1,!1)) +s($,"yQ","ts",()=>A.J("@\\S+ line \\d+ >.* (Function|eval):\\d+:\\d+",!0,!1,!1,!1)) +s($,"yS","tu",()=>A.J("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$",!0,!1,!0,!1)) +s($,"yV","tx",()=>A.J("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$",!0,!1,!0,!1)) +s($,"zh","pJ",()=>A.J("^\\n?$",!0,!1,!0,!1))})();(function nativeSupport(){!function(){var s=function(a){var m={} +m[a]=1 +return Object.keys(hunkHelpers.convertToFastObject(m))[0]} +v.getIsolateTag=function(a){return s("___dart_"+a+v.isolateTag)} +var r="___dart_isolate_tags_" +var q=Object[r]||(Object[r]=Object.create(null)) +var p="_ZxYxX" +for(var o=0;;o++){var n=s(p+"_"+o+"_") +if(!(n in q)){q[n]=1 +v.isolateTag=n +break}}v.dispatchPropertyName=v.getIsolateTag("dispatch_record")}() +hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer:A.cw,ArrayBufferView:A.eu,DataView:A.cx,Float32Array:A.hn,Float64Array:A.ho,Int16Array:A.hp,Int32Array:A.d6,Int8Array:A.hq,Uint16Array:A.hr,Uint32Array:A.hs,Uint8ClampedArray:A.ev,CanvasPixelArray:A.ev,Uint8Array:A.by}) +hunkHelpers.setOrUpdateLeafTags({ArrayBuffer:true,ArrayBufferView:false,DataView:true,Float32Array:true,Float64Array:true,Int16Array:true,Int32Array:true,Int8Array:true,Uint16Array:true,Uint32Array:true,Uint8ClampedArray:true,CanvasPixelArray:true,Uint8Array:false}) +A.d7.$nativeSuperclassTag="ArrayBufferView" +A.f8.$nativeSuperclassTag="ArrayBufferView" +A.f9.$nativeSuperclassTag="ArrayBufferView" +A.c2.$nativeSuperclassTag="ArrayBufferView" +A.fa.$nativeSuperclassTag="ArrayBufferView" +A.fb.$nativeSuperclassTag="ArrayBufferView" +A.aS.$nativeSuperclassTag="ArrayBufferView"})() +Function.prototype.$0=function(){return this()} +Function.prototype.$1=function(a){return this(a)} +Function.prototype.$2=function(a,b){return this(a,b)} +Function.prototype.$1$1=function(a){return this(a)} +Function.prototype.$3=function(a,b,c){return this(a,b,c)} +Function.prototype.$4=function(a,b,c,d){return this(a,b,c,d)} +Function.prototype.$3$1=function(a){return this(a)} +Function.prototype.$2$1=function(a){return this(a)} +Function.prototype.$3$3=function(a,b,c){return this(a,b,c)} +Function.prototype.$2$2=function(a,b){return this(a,b)} +Function.prototype.$2$3=function(a,b,c){return this(a,b,c)} +Function.prototype.$1$2=function(a,b){return this(a,b)} +Function.prototype.$5=function(a,b,c,d,e){return this(a,b,c,d,e)} +Function.prototype.$6=function(a,b,c,d,e,f){return this(a,b,c,d,e,f)} +Function.prototype.$1$0=function(){return this()} +convertAllToFastObject(w) +convertToFastObject($);(function(a){if(typeof document==="undefined"){a(null) +return}if(typeof document.currentScript!="undefined"){a(document.currentScript) +return}var s=document.scripts +function onLoad(b){for(var q=0;q data; + + const SignedDocumentContent(this.data); -extension type const SignedDocumentDataPayload(Map data) - implements Object {} + @override + List get props => [data]; +} +// List of types and metadata fields is here +// https://input-output-hk.github.io/catalyst-libs/branch/feat_signed_object/architecture/08_concepts/signed_doc/types/ enum SignedDocumentType { proposalDocument(uuid: '7808d2ba-d511-40af-84e8-c0d1625fdfdc'), - proposalTemplate(uuid: '0ce8ab38-9258-4fbc-a62e-7faa6e58318f'); + proposalTemplate(uuid: '0ce8ab38-9258-4fbc-a62e-7faa6e58318f'), + unknown(uuid: ''); final String uuid; + static String toJson(SignedDocumentType type) => type.uuid; + + static SignedDocumentType fromJson(String data) { + return SignedDocumentType.values.firstWhere( + (element) => element.uuid == data, + orElse: () => SignedDocumentType.unknown, + ); + } + const SignedDocumentType({ required this.uuid, }); @@ -20,17 +35,17 @@ enum SignedDocumentType { final class SignedDocumentData extends Equatable { final SignedDocumentMetadata metadata; - final SignedDocumentDataPayload payload; + final SignedDocumentContent content; const SignedDocumentData({ required this.metadata, - required this.payload, + required this.content, }); @override List get props => [ metadata, - payload, + content, ]; } diff --git a/catalyst_voices/packages/internal/catalyst_voices_models/lib/src/hi_lo/uuid_hi_lo.dart b/catalyst_voices/packages/internal/catalyst_voices_models/lib/src/hi_lo/uuid_hi_lo.dart index 80e842a66c1..6a7354e2540 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_models/lib/src/hi_lo/uuid_hi_lo.dart +++ b/catalyst_voices/packages/internal/catalyst_voices_models/lib/src/hi_lo/uuid_hi_lo.dart @@ -1,5 +1,5 @@ import 'package:catalyst_voices_models/src/hi_lo/hi_lo.dart'; -import 'package:convert/convert.dart'; +import 'package:flutter/foundation.dart'; import 'package:uuid/parsing.dart'; import 'package:uuid/validation.dart'; @@ -23,8 +23,8 @@ final class UuidHiLo extends HiLo { } final bytes = UuidParsing.parseHexToBytes(sanitized); - final high = BigInt.parse(hex.encode(bytes.sublist(0, 8)), radix: 16); - final low = BigInt.parse(hex.encode(bytes.sublist(8, 16)), radix: 16); + final high = BigInt.from(ByteData.sublistView(bytes, 0, 8).getInt64(0)); + final low = BigInt.from(ByteData.sublistView(bytes, 8, 16).getInt64(0)); return UuidHiLo( high: high, @@ -32,21 +32,22 @@ final class UuidHiLo extends HiLo { ); } - String get _fullHex => _highHex + _lowHex; - - String get _highHex => high.toRadixString(16).padLeft(16, '0'); - - String get _lowHex => low.toRadixString(16).padLeft(16, '0'); - /// Version is always 13th digit of uuid. int get _version { - final source = String.fromCharCode(_highHex.codeUnitAt(12)); + final source = String.fromCharCode(uuid.codeUnitAt(14)); return int.parse(source); } String get uuid { - final fullHex = _fullHex; - final bytes = UuidParsing.parseHexToBytes(fullHex); + // Convert BigInt back to bytes + final highBytes = ByteData(8)..setInt64(0, high.toInt()); + final lowBytes = ByteData(8)..setInt64(0, low.toInt()); + + // Merge them into a single byte array + final bytes = Uint8List.fromList([ + ...highBytes.buffer.asUint8List(), + ...lowBytes.buffer.asUint8List(), + ]); return UuidParsing.unparse(bytes); } @@ -57,8 +58,10 @@ final class UuidHiLo extends HiLo { throw StateError('uuid version is not v7'); } - final msTimestamp = (high >> 16).toInt(); + // Get the first 48 bits (high >> 16) + final timestampMillis = (high.toInt() >> 16) & 0xFFFFFFFFFFFF; - return DateTime.fromMillisecondsSinceEpoch(msTimestamp); + // Convert milliseconds since Unix epoch (1970-01-01) + return DateTime.fromMillisecondsSinceEpoch(timestampMillis); } } diff --git a/catalyst_voices/packages/internal/catalyst_voices_models/test/hi_lo/uuid_hi_lo_test.dart b/catalyst_voices/packages/internal/catalyst_voices_models/test/hi_lo/uuid_hi_lo_test.dart index 3883a908312..cf2ee53148a 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_models/test/hi_lo/uuid_hi_lo_test.dart +++ b/catalyst_voices/packages/internal/catalyst_voices_models/test/hi_lo/uuid_hi_lo_test.dart @@ -3,6 +3,11 @@ import 'package:test/test.dart'; import 'package:uuid/data.dart'; import 'package:uuid/uuid.dart'; +final _bigIntMinValue64 = BigInt.parse('-9223372036854775808'); +final _bigIntMaxValue64 = BigInt.parse('9223372036854775807'); +const _bigInt64Reason = 'BigInt value exceeds the range of 64 bits. ' + 'SQLite BigInt has 64 bit limit'; + void main() { group(UuidHiLo, () { test('dashed uuid produces UuidHiLo and reconstructs correctly', () { @@ -85,5 +90,25 @@ void main() { // Then expect(extract, throwsA(isA())); }); + + test('high and low does not exceeds 64 bits', () { + // Given + final uuid = const Uuid().v7(); + + // When + final hiLo = UuidHiLo.from(uuid); + + // Then + expect( + hiLo.high > _bigIntMinValue64 && hiLo.high < _bigIntMaxValue64, + isTrue, + reason: _bigInt64Reason, + ); + expect( + hiLo.low > _bigIntMinValue64 && hiLo.low < _bigIntMaxValue64, + isTrue, + reason: _bigInt64Reason, + ); + }); }); } diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/.gitignore b/catalyst_voices/packages/internal/catalyst_voices_repositories/.gitignore index 526da158458..1f27cbcb974 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_repositories/.gitignore +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/.gitignore @@ -4,4 +4,4 @@ .dart_tool/ .packages build/ -pubspec.lock \ No newline at end of file +pubspec.lock diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/README.md b/catalyst_voices/packages/internal/catalyst_voices_repositories/README.md index 90add939367..aeb040cfa63 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_repositories/README.md +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/README.md @@ -30,3 +30,52 @@ If you are running the command on a **Linux** platform, you can omit this flag. In this way it's possible to locally generate the code using the same version of OpenAPI specs defined in the backend code and developers have full control of what should be committed. + +## Database + +### Drift + +Files have to be generated with build runner command. + +```bash +dart run build_runner build +``` + +or melos + +```bash +melos build_runner_repository +``` + +Build migration test files with + +```bash +melos db-make-migration +``` + +#### Web + +Use same port while building for db to be restored. `--web-port=5555` + +Additional headers + +* `Cross-Origin-Opener-Policy`: Needs to be set to `same-origin`. +* `Cross-Origin-Embedder-Policy`: Needs to be set to `require-corp`. + +Read more [here](https://drift.simonbinder.eu/platforms/web/#additional-headers). + +Drift requires **driftWorker** and **driftWorker** + +Those files can be compiles by hand or downloaded from + +* [sqlite3Wasm](https://github.com/simolus3/sqlite3.dart/releases) +* [driftWorker](https://github.com/simolus3/drift/releases). + +`sqlite3.wasm` file needs to be served with a `Content-Type` of `application/wasm` since browsers +will reject the module otherwise. + +Read more [here](https://drift.simonbinder.eu/platforms/web/#prerequisites). + +#### Native + +TODO diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/build.yaml b/catalyst_voices/packages/internal/catalyst_voices_repositories/build.yaml index 42a96ff5318..a9da4fe0ed5 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_repositories/build.yaml +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/build.yaml @@ -24,3 +24,41 @@ targets: json_serializable: options: explicit_to_json: true + drift_dev: + # disable drift's default builder, we're using the modular setup instead. + enabled: false + drift_dev:analyzer: + enabled: true + # Drift build options, as per https://drift.simonbinder.eu/docs/advanced-features/builder_options/ + options: &options + # Use ISO 8601 string instead of a unix timestamp + store_date_time_values_as_text: true + # Potentially turn this on if gradual updates will be needed. + data_class_to_companions: false + # Can not turn this on because of cat-gateway endpoints generation + fatal_warnings: false + # We're not using it right now + generate_manager: false + sql: + dialect: sqlite + options: + # Note that these options are used for static analysis only and don't have an + # impact on the actual sqlite version at runtime. + # https://drift.simonbinder.eu/generation_options/?h=dialect#assumed-sql-environment + version: "3.45" + # See modules here https://drift.simonbinder.eu/generation_options/?h=dialect#multi-dialect-code-generation + modules: + - json1 + + # To use the make-migrations command + databases: + catalyst_database: lib/src/database/catalyst_database.dart + + # The directory where the test files are stored: + test_dir: test/src/database/migration/ + # The directory where the schema files are stored: + schema_dir: drift_schemas/ + drift_dev:modular: + enabled: true + # We use yaml anchors to give the two builders the same options + options: *options diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/catalyst_voices_repositories.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/catalyst_voices_repositories.dart index 275c4e6557c..06ee627d824 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/catalyst_voices_repositories.dart +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/catalyst_voices_repositories.dart @@ -1,5 +1,6 @@ export 'campaign/campaign_repository.dart' show CampaignRepository; export 'config/config_repository.dart' show ConfigRepository; +export 'database/database.dart'; export 'document/document_repository.dart' show DocumentRepository; export 'proposal/proposal_repository.dart' show ProposalRepository; export 'transaction/transaction_config_repository.dart'; diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/catalyst_database.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/catalyst_database.dart new file mode 100644 index 00000000000..db8194d2d6c --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/catalyst_database.dart @@ -0,0 +1,107 @@ +import 'package:catalyst_voices_repositories/src/database/catalyst_database.drift.dart'; +import 'package:catalyst_voices_repositories/src/database/catalyst_database_config.dart'; +import 'package:catalyst_voices_repositories/src/database/dao/documents_dao.dart'; +import 'package:catalyst_voices_repositories/src/database/dao/drafts_dao.dart'; +import 'package:catalyst_voices_repositories/src/database/migration/drift_migration_strategy.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents.drift.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents_metadata.dart'; +import 'package:catalyst_voices_repositories/src/database/table/drafts.dart'; +import 'package:catalyst_voices_repositories/src/database/table/drafts.drift.dart'; +import 'package:drift/drift.dart'; +import 'package:drift_flutter/drift_flutter.dart'; +import 'package:flutter/foundation.dart'; +import 'package:synchronized/synchronized.dart'; + +/// Database interface which expose only publicly accessible functions and +/// classes. +/// +/// Its implementation agnostic. +abstract interface class CatalystDatabase { + /// Returns drift implementation of [CatalystDatabase]. Implementation + /// itself is not public. + factory CatalystDatabase.drift({ + required CatalystDriftDatabaseConfig config, + }) = DriftCatalystDatabase.withConfig; + + /// Contains all operations related to [DocumentEntity] which is db specific. + /// Do not confuse it with other documents. + DocumentsDao get documentsDao; + + /// Contains all operations related to [DraftEntity] which is db specific. + /// Do not confuse it with other documents / drafts. + DraftsDao get draftsDao; + + /// Removes all data from this db. + Future clear(); +} + +@DriftDatabase( + tables: [ + Documents, + DocumentsMetadata, + Drafts, + ], + daos: [ + DriftDocumentsDao, + DriftDraftsDao, + ], + queries: {}, + views: [], + include: {}, +) +class DriftCatalystDatabase extends $DriftCatalystDatabase + implements CatalystDatabase { + final _clearLock = Lock(); + + @visibleForTesting + DriftCatalystDatabase(super.connection); + + DriftCatalystDatabase.withConfig({ + required CatalystDriftDatabaseConfig config, + }) : this( + driftDatabase( + name: config.name, + web: DriftWebOptions( + sqlite3Wasm: config.web.sqlite3Wasm, + driftWorker: config.web.driftWorker, + ), + + // TODO(damian-molinski): Native not supported yet + native: null, + ), + ); + + @override + DocumentsDao get documentsDao => driftDocumentsDao; + + @override + DraftsDao get draftsDao => driftDraftsDao; + + @override + int get schemaVersion => 1; + + @override + MigrationStrategy get migration { + return DriftMigrationStrategy( + database: this, + destructiveFallback: destructiveFallback, + ); + } + + @override + Future clear() { + return _clearLock.synchronized(() async { + try { + await customStatement('PRAGMA foreign_keys = OFF'); + await transaction(() async { + for (final table in allTables) { + await delete(table).go(); + } + }); + } finally { + await customStatement('PRAGMA foreign_keys = ON'); + } + }); + } +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/catalyst_database_config.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/catalyst_database_config.dart new file mode 100644 index 00000000000..880d366d5a5 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/catalyst_database_config.dart @@ -0,0 +1,38 @@ +import 'package:equatable/equatable.dart'; + +abstract base class CatalystDatabaseConfig extends Equatable { + final String name; + + const CatalystDatabaseConfig({ + required this.name, + }); + + @override + List get props => [name]; +} + +final class CatalystDriftDatabaseConfig extends CatalystDatabaseConfig { + final CatalystDriftDatabaseWebConfig web; + + const CatalystDriftDatabaseConfig({ + required super.name, + required this.web, + }); + + @override + List get props => [...super.props, web]; +} + +/// See README to learn more about sqlite3Wasm / driftWorker. +final class CatalystDriftDatabaseWebConfig extends Equatable { + final Uri sqlite3Wasm; + final Uri driftWorker; + + const CatalystDriftDatabaseWebConfig({ + required this.sqlite3Wasm, + required this.driftWorker, + }); + + @override + List get props => [sqlite3Wasm, driftWorker]; +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_dao.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_dao.dart new file mode 100644 index 00000000000..5a011961935 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/documents_dao.dart @@ -0,0 +1,127 @@ +import 'package:catalyst_voices_repositories/src/database/catalyst_database.dart'; +import 'package:catalyst_voices_repositories/src/database/dao/documents_dao.drift.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents.drift.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents_metadata.dart'; +import 'package:catalyst_voices_repositories/src/database/typedefs.dart'; +import 'package:drift/drift.dart'; +import 'package:flutter/foundation.dart'; + +/// Exposes only public operation on documents, and related, tables. +abstract interface class DocumentsDao { + /// Similar to [queryAll] but emits when new records are inserted or deleted. + Stream> watchAll(); + + /// Returns all entities. If same document have different versions + /// all will be returned. + Future> queryAll(); + + /// Counts all documents. + Future countAll(); + + /// Counts unique documents. All versions of same document are counted as 1. + Future countDocuments(); + + @visibleForTesting + Future countDocumentsMetadata(); + + /// Inserts all documents and metadata. On conflicts ignores duplicates. + Future saveAll( + Iterable documentsWithMetadata, + ); + + /// Deletes all documents. Cascades to metadata. + Future deleteAll(); +} + +@DriftAccessor( + tables: [ + Documents, + DocumentsMetadata, + ], +) +class DriftDocumentsDao extends DatabaseAccessor + with $DriftDocumentsDaoMixin + implements DocumentsDao { + DriftDocumentsDao(super.attachedDatabase); + + @override + Stream> watchAll() { + return select(documents).watch(); + } + + @override + Future> queryAll() { + return select(documents).get(); + } + + @override + Future countAll() { + return documents.count().getSingle(); + } + + @override + Future countDocuments() { + final count = documents.idHi.count(distinct: true); + + final select = selectOnly(documents) + ..addColumns([ + documents.idHi, + documents.idLo, + count, + ]); + + return select + .map((row) => row.read(count)) + .get() + .then((count) => count.firstOrNull ?? 0); + } + + @override + Future countDocumentsMetadata() { + final count = documentsMetadata.verHi.count(distinct: true); + + final select = selectOnly(documentsMetadata) + ..addColumns([ + documentsMetadata.verHi, + documentsMetadata.verLo, + count, + ]); + + return select + .map((row) => row.read(count)) + .get() + .then((count) => count.firstOrNull ?? 0); + } + + @override + Future saveAll( + Iterable documentsWithMetadata, + ) async { + final documents = documentsWithMetadata.map((e) => e.document); + final metadata = documentsWithMetadata.expand((e) => e.metadata); + + await batch((batch) { + batch + ..insertAll( + this.documents, + documents, + mode: InsertMode.insertOrIgnore, + ) + ..insertAll( + documentsMetadata, + metadata, + mode: InsertMode.insertOrIgnore, + ); + }); + } + + @override + Future deleteAll() async { + final count = await delete(documents).go(); + + if (kDebugMode) { + debugPrint('DocumentsDao: Deleted $count rows'); + } + } +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/drafts_dao.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/drafts_dao.dart new file mode 100644 index 00000000000..95564779c86 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/dao/drafts_dao.dart @@ -0,0 +1,49 @@ +import 'package:catalyst_voices_repositories/src/database/catalyst_database.dart'; +import 'package:catalyst_voices_repositories/src/database/dao/drafts_dao.drift.dart'; +import 'package:catalyst_voices_repositories/src/database/table/drafts.dart'; +import 'package:catalyst_voices_repositories/src/database/table/drafts.drift.dart'; +import 'package:drift/drift.dart'; + +/// Exposes only public operation on drafts, and related, tables. +abstract interface class DraftsDao { + /// Returns all drafts + Future> queryAll(); + + /// Counts unique drafts. All versions of same document are counted as 1. + Future countAll(); + + /// Inserts all drafts. On conflicts updates. + Future saveAll(Iterable drafts); +} + +@DriftAccessor( + tables: [ + Drafts, + ], +) +class DriftDraftsDao extends DatabaseAccessor + with $DriftDraftsDaoMixin + implements DraftsDao { + DriftDraftsDao(super.attachedDatabase); + + @override + Future> queryAll() { + return select(drafts).get(); + } + + @override + Future countAll() { + return drafts.count().getSingle(); + } + + @override + Future saveAll(Iterable drafts) async { + await batch((batch) { + batch.insertAll( + this.drafts, + drafts, + mode: InsertMode.insertOrReplace, + ); + }); + } +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/database.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/database.dart new file mode 100644 index 00000000000..22e6026d48e --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/database.dart @@ -0,0 +1,8 @@ +export 'catalyst_database.dart' show CatalystDatabase; +export 'catalyst_database_config.dart'; +export 'dao/documents_dao.dart' show DocumentsDao; +export 'dao/drafts_dao.dart' show DraftsDao; +export 'table/documents.drift.dart' show DocumentEntity; +export 'table/documents_metadata.drift.dart' show DocumentMetadataEntity; +export 'table/drafts.drift.dart' show DraftEntity; +export 'typedefs.dart'; diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/drift_migration_strategy.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/drift_migration_strategy.dart new file mode 100644 index 00000000000..f4655a678f7 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/migration/drift_migration_strategy.dart @@ -0,0 +1,23 @@ +import 'package:drift/drift.dart'; + +final class DriftMigrationStrategy extends MigrationStrategy { + DriftMigrationStrategy({ + required GeneratedDatabase database, + required MigrationStrategy destructiveFallback, + }) : super( + onCreate: (m) async { + await m.createAll(); + }, + onUpgrade: (m, from, to) async { + await database.customStatement('PRAGMA foreign_keys = OFF'); + + /// Provide non destructive migration when schema changes + await destructiveFallback.onUpgrade(m, from, to); + + await database.customStatement('PRAGMA foreign_keys = ON;'); + }, + beforeOpen: (details) async { + await database.customStatement('PRAGMA foreign_keys = ON'); + }, + ); +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/converter/document_converters.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/converter/document_converters.dart new file mode 100644 index 00000000000..1bd098ccc32 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/converter/document_converters.dart @@ -0,0 +1,47 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; +import 'package:catalyst_voices_repositories/src/dto/document/signed_document_data_dto.dart'; +import 'package:drift/drift.dart'; + +typedef DocumentContentJsonBConverter + = JsonTypeConverter2; + +typedef DocumentMetadataJsonBConverter + = JsonTypeConverter2; + +abstract final class DocumentConverters { + /// Converts [SignedDocumentType] to String for text column. + static const TypeConverter type = + _DocumentTypeConverter(); + + /// Converts [SignedDocumentContent] into json for bloc column. + /// Required for jsonb queries. + static final DocumentContentJsonBConverter content = TypeConverter.jsonb( + fromJson: (json) => SignedDocumentContent(json! as Map), + toJson: (content) => content.data, + ); + + /// Converts [SignedDocumentMetadata] into json for bloc column. + /// Required for jsonb queries. + static final DocumentMetadataJsonBConverter metadata = TypeConverter.jsonb( + fromJson: (json) => + SignedDocumentMetadataDto.fromJson(json! as Map) + .toModel(), + toJson: (metadata) => + SignedDocumentMetadataDto.fromModel(metadata).toJson(), + ); +} + +final class _DocumentTypeConverter + extends TypeConverter { + const _DocumentTypeConverter(); + + @override + SignedDocumentType fromSql(String fromDb) { + return SignedDocumentType.fromJson(fromDb); + } + + @override + String toSql(SignedDocumentType value) { + return SignedDocumentType.toJson(value); + } +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/documents.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/documents.dart new file mode 100644 index 00000000000..95b58aef3f0 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/documents.dart @@ -0,0 +1,25 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; +import 'package:catalyst_voices_repositories/src/database/table/mixin/document_table_mixin.dart'; +import 'package:catalyst_voices_repositories/src/database/table/mixin/id_table_mixin.dart'; +import 'package:catalyst_voices_repositories/src/database/table/mixin/ver_table_mixin.dart'; +import 'package:drift/drift.dart'; + +/// This table stores a record of each document (including its content and +/// related metadata). +/// +/// Its representation of [SignedDocumentData] class. +@TableIndex(name: 'idx_doc_type', columns: {#type}) +@TableIndex(name: 'idx_unique_ver', columns: {#verHi, #verLo}, unique: true) +@DataClassName('DocumentEntity') +class Documents extends Table + with IdHiLoTableMixin, VerHiLoTableMixin, DocumentTableMixin { + DateTimeColumn get createdAt => dateTime()(); + + @override + Set>? get primaryKey => { + idHi, + idLo, + verHi, + verLo, + }; +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/documents_metadata.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/documents_metadata.dart new file mode 100644 index 00000000000..48c0d09491b --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/documents_metadata.dart @@ -0,0 +1,42 @@ +import 'package:catalyst_voices_repositories/src/database/table/documents.drift.dart'; +import 'package:catalyst_voices_repositories/src/database/table/mixin/ver_table_mixin.dart'; +import 'package:drift/drift.dart'; + +/// Syntax sugar num to working with [DocumentsMetadata] queries +/// so keys names are strongly defined here. +/// +/// Add new fields as needed. +enum DocumentMetadataFieldKey { + title, +} + +/// This table breaks out metadata into a key-value structure for each +/// document version, enabling more granular or indexed queries +@TableIndex( + name: 'idx_doc_metadata_key_value', + columns: {#fieldKey, #fieldValue}, +) +@DataClassName('DocumentMetadataEntity') +class DocumentsMetadata extends Table with VerHiLoTableMixin { + /// e.g. 'category', 'title', 'description' + TextColumn get fieldKey => textEnum()(); + + /// The actual value (for category, title, description, etc.) + TextColumn get fieldValue => text()(); + + @override + List get customConstraints => [ + /// Referring with two columns throws a + /// "SqliteException(1): foreign key mismatch" + /// But when doing it explicitly it no longer complains + // ignore: lines_longer_than_80_chars + 'FOREIGN KEY("ver_hi", "ver_lo") REFERENCES "${$DocumentsTable.$name}"("ver_hi", "ver_lo") ON DELETE CASCADE ON UPDATE CASCADE', + ]; + + @override + Set get primaryKey => { + verHi, + verLo, + fieldKey, + }; +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/drafts.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/drafts.dart new file mode 100644 index 00000000000..b19121fd519 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/drafts.dart @@ -0,0 +1,30 @@ +import 'package:catalyst_voices_repositories/src/database/table/documents_metadata.dart'; +import 'package:catalyst_voices_repositories/src/database/table/mixin/document_table_mixin.dart'; +import 'package:catalyst_voices_repositories/src/database/table/mixin/id_table_mixin.dart'; +import 'package:catalyst_voices_repositories/src/database/table/mixin/ver_table_mixin.dart'; +import 'package:drift/drift.dart'; + +/// This table holds in-progress (draft) versions of documents that are not yet +/// been made public or submitted. +/// +/// [content] will be encrypted in future but we still need to be able to +/// search for drafts against fields like [title] for example. +/// +/// In future we may need to delete [title] or add more columns for search +/// purposes. If there will be too many requirements we may introduce +/// DraftsMetadata table, similar to [DocumentsMetadata]. +@TableIndex(name: 'idx_draft_type', columns: {#type}) +@DataClassName('DraftEntity') +class Drafts extends Table + with IdHiLoTableMixin, VerHiLoTableMixin, DocumentTableMixin { + /// not encrypted title for search + TextColumn get title => text()(); + + @override + Set>? get primaryKey => { + idHi, + idLo, + verHi, + verLo, + }; +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/document_table_mixin.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/document_table_mixin.dart new file mode 100644 index 00000000000..d76d431f010 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/document_table_mixin.dart @@ -0,0 +1,18 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; +import 'package:catalyst_voices_repositories/src/database/table/converter/document_converters.dart'; +import 'package:drift/drift.dart'; + +mixin DocumentTableMixin on Table { + /// Refers to [SignedDocumentType] uuid. + TextColumn get type => text().map(DocumentConverters.type)(); + + /// Encoded version of [SignedDocumentData.content] + /// + /// Uses jsonb + BlobColumn get content => blob().map(DocumentConverters.content)(); + + /// Encoded version of [SignedDocumentData.metadata] + /// + /// Uses jsonb + BlobColumn get metadata => blob().map(DocumentConverters.metadata)(); +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/id_table_mixin.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/id_table_mixin.dart new file mode 100644 index 00000000000..48937e49339 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/id_table_mixin.dart @@ -0,0 +1,11 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; +import 'package:drift/drift.dart'; + +/// Commonly used pattern for representing uuid as id. +/// +/// See [UuidHiLo]. +mixin IdHiLoTableMixin on Table { + Int64Column get idHi => int64()(); + + Int64Column get idLo => int64()(); +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/ver_table_mixin.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/ver_table_mixin.dart new file mode 100644 index 00000000000..e0db6b3f6ea --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/table/mixin/ver_table_mixin.dart @@ -0,0 +1,11 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; +import 'package:drift/drift.dart'; + +/// Commonly used pattern for representing uuid as ver. +/// +/// See [UuidHiLo]. +mixin VerHiLoTableMixin on Table { + Int64Column get verHi => int64()(); + + Int64Column get verLo => int64()(); +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/typedefs.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/typedefs.dart new file mode 100644 index 00000000000..ee69d75993d --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/database/typedefs.dart @@ -0,0 +1,8 @@ +import 'package:catalyst_voices_repositories/src/database/table/documents.drift.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents_metadata.drift.dart'; + +/// Each document has list of metadata rows +typedef DocumentEntityWithMetadata = ({ + DocumentEntity document, + List metadata, +}); diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart index 4911016232a..c456aaa304c 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/document/document_repository.dart @@ -67,7 +67,7 @@ final class DocumentRepositoryImpl implements DocumentRepository { version: signedDocumentData.metadata.version, ); - final data = DocumentDataDto.fromJson(signedDocumentData.payload.data); + final data = DocumentDataDto.fromJson(signedDocumentData.content.data); final schema = template.schema; final document = DocumentDto.fromJsonSchema(data, schema).toModel(); @@ -96,7 +96,7 @@ final class DocumentRepositoryImpl implements DocumentRepository { version: signedDocumentData.metadata.version, ); - final json = signedDocumentData.payload.data; + final json = signedDocumentData.content.data; final schema = DocumentSchemaDto.fromJson(json).toModel(); return ProposalTemplate( @@ -130,11 +130,11 @@ final class DocumentRepositoryImpl implements DocumentRepository { template: template, ); - final payload = SignedDocumentDataPayload(signedDocument); + final content = SignedDocumentContent(signedDocument); return SignedDocumentData( metadata: metadata, - payload: payload, + content: content, ); } } diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/signed_document_data_dto.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/signed_document_data_dto.dart new file mode 100644 index 00000000000..21cb3e3b59d --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/lib/src/dto/document/signed_document_data_dto.dart @@ -0,0 +1,140 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'signed_document_data_dto.g.dart'; + +@JsonSerializable() +final class SignedDocumentRefDto { + final String id; + final String? version; + + SignedDocumentRefDto({ + required this.id, + this.version, + }); + + SignedDocumentRefDto.fromModel(SignedDocumentRef data) + : this( + id: data.id, + version: data.version, + ); + + factory SignedDocumentRefDto.fromJson(Map json) { + return _$SignedDocumentRefDtoFromJson(json); + } + + Map toJson() => _$SignedDocumentRefDtoToJson(this); + + SignedDocumentRef toModel() { + return SignedDocumentRef( + id: id, + version: version, + ); + } +} + +@JsonSerializable() +final class SecuredSignedDocumentRefDto { + final SignedDocumentRefDto ref; + final String hash; + + SecuredSignedDocumentRefDto({ + required this.ref, + required this.hash, + }); + + SecuredSignedDocumentRefDto.fromModel(SecuredSignedDocumentRef data) + : this( + ref: SignedDocumentRefDto.fromModel(data.ref), + hash: data.hash, + ); + + factory SecuredSignedDocumentRefDto.fromJson(Map json) { + return _$SecuredSignedDocumentRefDtoFromJson(json); + } + + Map toJson() => _$SecuredSignedDocumentRefDtoToJson(this); + + SecuredSignedDocumentRef toModel() { + return SecuredSignedDocumentRef( + ref: ref.toModel(), + hash: hash, + ); + } +} + +@JsonSerializable() +final class SignedDocumentMetadataDto { + @JsonKey( + toJson: SignedDocumentType.toJson, + fromJson: SignedDocumentType.fromJson, + ) + final SignedDocumentType type; + final String id; + final String version; + final SignedDocumentRefDto? ref; + final SecuredSignedDocumentRefDto? refHash; + final SignedDocumentRefDto? template; + final String? brandId; + final String? campaignId; + final String? electionId; + final String? categoryId; + + SignedDocumentMetadataDto({ + required this.type, + required this.id, + required this.version, + this.ref, + this.refHash, + this.template, + this.brandId, + this.campaignId, + this.electionId, + this.categoryId, + }); + + SignedDocumentMetadataDto.fromModel(SignedDocumentMetadata data) + : this( + type: data.type, + id: data.id, + version: data.version, + ref: data.ref?.toDto(), + refHash: data.refHash?.toDto(), + template: data.template?.toDto(), + brandId: data.brandId, + campaignId: data.campaignId, + electionId: data.electionId, + categoryId: data.categoryId, + ); + + factory SignedDocumentMetadataDto.fromJson(Map json) { + return _$SignedDocumentMetadataDtoFromJson(json); + } + + Map toJson() => _$SignedDocumentMetadataDtoToJson(this); + + SignedDocumentMetadata toModel() { + return SignedDocumentMetadata( + type: type, + id: id, + version: version, + ref: ref?.toModel(), + refHash: refHash?.toModel(), + template: template?.toModel(), + brandId: brandId, + campaignId: campaignId, + electionId: electionId, + categoryId: categoryId, + ); + } +} + +extension _SignedDocumentRefExt on SignedDocumentRef { + SignedDocumentRefDto toDto() => SignedDocumentRefDto.fromModel(this); +} + +extension _SecuredSignedDocumentRefExt on SecuredSignedDocumentRef { + SecuredSignedDocumentRefDto toDto() { + return SecuredSignedDocumentRefDto.fromModel(this); + } +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/pubspec.yaml b/catalyst_voices/packages/internal/catalyst_voices_repositories/pubspec.yaml index fe2c8aa4251..883618e2b10 100644 --- a/catalyst_voices/packages/internal/catalyst_voices_repositories/pubspec.yaml +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/pubspec.yaml @@ -18,6 +18,8 @@ dependencies: path: ../catalyst_voices_shared chopper: ^8.0.3 collection: ^1.19.0 + drift: ^2.24.0 + drift_flutter: ^0.2.4 equatable: ^2.0.7 flutter: sdk: flutter @@ -32,6 +34,7 @@ dev_dependencies: build_runner: ^2.4.12 catalyst_analysis: ^3.0.0 chopper_generator: ^8.0.3 + drift_dev: ^2.24.0 flutter_test: sdk: flutter json_serializable: ^6.7.1 diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/catalyst_database_test.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/catalyst_database_test.dart new file mode 100644 index 00000000000..3e380adb5d6 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/catalyst_database_test.dart @@ -0,0 +1,52 @@ +import 'package:catalyst_voices_repositories/src/database/catalyst_database.dart'; +import 'package:drift/drift.dart'; +import 'package:drift/native.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'test_factories.dart'; + +void main() { + late DriftCatalystDatabase database; + + setUp(() { + final inMemory = DatabaseConnection(NativeDatabase.memory()); + database = DriftCatalystDatabase(inMemory); + }); + + tearDown(() async { + await database.close(); + }); + + group(DriftCatalystDatabase, () { + test( + 'clear removes all documents and drafts', + () async { + // Given + final drafts = List.generate(5, (index) => DraftFactory.build()); + final documents = List.generate( + 5, + (index) => DocumentWithMetadataFactory.build(), + ); + + // When + await database.documentsDao.saveAll(documents); + await database.draftsDao.saveAll(drafts); + + // Then + final draftsCountBefore = await database.draftsDao.countAll(); + final documentsCountBefore = await database.documentsDao.countAll(); + + expect(draftsCountBefore, drafts.length); + expect(documentsCountBefore, documents.length); + + await database.clear(); + + final draftsCountAfter = await database.draftsDao.countAll(); + final documentsCountAfter = await database.documentsDao.countAll(); + + expect(draftsCountAfter, isZero); + expect(documentsCountAfter, isZero); + }, + ); + }); +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/dao/documents_dao_test.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/dao/documents_dao_test.dart new file mode 100644 index 00000000000..4af4e3b5628 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/dao/documents_dao_test.dart @@ -0,0 +1,176 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart'; +import 'package:catalyst_voices_repositories/src/database/catalyst_database.dart'; +import 'package:catalyst_voices_repositories/src/database/database.dart'; +import 'package:drift/drift.dart'; +import 'package:drift/native.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:uuid/uuid.dart'; + +import '../test_factories.dart'; + +void main() { + late DriftCatalystDatabase database; + + setUp(() { + final inMemory = DatabaseConnection(NativeDatabase.memory()); + database = DriftCatalystDatabase(inMemory); + }); + + tearDown(() async { + await database.close(); + }); + + group(DocumentsDao, () { + group('save all', () { + test('documents can be queried back correctly', () async { + // Given + final documentsWithMetadata = List.generate( + 10, + (index) => DocumentWithMetadataFactory.build(), + ); + final expectedDocuments = documentsWithMetadata.map((e) => e.document); + + // When + await database.documentsDao.saveAll(documentsWithMetadata); + + // Then + final documents = await database.documentsDao.queryAll(); + + expect(documents, expectedDocuments); + }); + + test('conflicting documents are ignored', () async { + // Given + final documentsWithMetadata = List.generate( + 20, + (index) => DocumentWithMetadataFactory.build(), + ); + + final expectedDocuments = documentsWithMetadata.map((e) => e.document); + + // When + final firstBatch = documentsWithMetadata.sublist(0, 10); + final secondBatch = documentsWithMetadata.sublist(5); + + await database.documentsDao.saveAll(firstBatch); + await database.documentsDao.saveAll(secondBatch); + + // Then + final documents = await database.documentsDao.queryAll(); + + expect(documents, expectedDocuments); + }); + }); + + group('watch all', () { + test('emits data when new entities are saved', () async { + // Given + final documentsWithMetadata = List.generate( + 1, + (index) => DocumentWithMetadataFactory.build(), + ); + + final expectedDocuments = + documentsWithMetadata.map((e) => e.document).toList(); + + // When + final documentsStream = database.documentsDao.watchAll(); + + await database.documentsDao.saveAll(documentsWithMetadata); + + // Then + expect( + documentsStream, + emitsInOrder([ + // later we inserting documents + equals(expectedDocuments), + ]), + ); + }); + }); + + group('count', () { + test('document returns expected number', () async { + // Given + final documentsWithMetadata = List.generate( + 20, + (index) => DocumentWithMetadataFactory.build(), + ); + + // When + await database.documentsDao.saveAll(documentsWithMetadata); + + // Then + final count = await database.documentsDao.countDocuments(); + + expect(count, documentsWithMetadata.length); + }); + + test('two versions of same document will be counted as one', () async { + // Given + final id = const Uuid().v7(); + final documentsWithMetadata = List.generate( + 2, + (index) { + final metadata = SignedDocumentMetadata( + type: SignedDocumentType.proposalDocument, + id: id, + version: const Uuid().v7(), + ); + return DocumentWithMetadataFactory.build(metadata: metadata); + }, + ); + + // When + await database.documentsDao.saveAll(documentsWithMetadata); + + // Then + final count = await database.documentsDao.countDocuments(); + + expect(count, 1); + }); + }); + + group('delete all', () { + test('removes all documents', () async { + // Given + final documentsWithMetadata = List.generate( + 5, + (index) => DocumentWithMetadataFactory.build(), + ); + + // When + await database.documentsDao.saveAll(documentsWithMetadata); + + // Then + final countBefore = await database.documentsDao.countDocuments(); + expect(countBefore, isNonZero); + + await database.documentsDao.deleteAll(); + + final countAfter = await database.documentsDao.countDocuments(); + expect(countAfter, isZero); + }); + + test('cascades metadata', () async { + // Given + final documentsWithMetadata = List.generate( + 5, + (index) => DocumentWithMetadataFactory.build(), + ); + + // When + await database.documentsDao.saveAll(documentsWithMetadata); + + // Then + final before = await database.documentsDao.countDocumentsMetadata(); + expect(before, isNonZero); + + await database.documentsDao.deleteAll(); + + final after = await database.documentsDao.countDocumentsMetadata(); + expect(after, isZero); + }); + }); + }); +} diff --git a/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/test_factories.dart b/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/test_factories.dart new file mode 100644 index 00000000000..5d2a2e3c8d9 --- /dev/null +++ b/catalyst_voices/packages/internal/catalyst_voices_repositories/test/src/database/test_factories.dart @@ -0,0 +1,113 @@ +import 'package:catalyst_voices_models/catalyst_voices_models.dart' + hide Document; +import 'package:catalyst_voices_repositories/src/database/database.dart'; +import 'package:catalyst_voices_repositories/src/database/table/documents_metadata.dart'; +import 'package:uuid/uuid.dart'; + +abstract final class DocumentWithMetadataFactory { + static DocumentEntityWithMetadata build({ + SignedDocumentContent? content, + SignedDocumentMetadata? metadata, + DateTime? createdAt, + }) { + final document = DocumentFactory.build( + content: content, + metadata: metadata, + createdAt: createdAt, + ); + + final documentMetadata = DocumentMetadataFieldKey.values.map((fieldKey) { + return switch (fieldKey) { + DocumentMetadataFieldKey.title => DocumentMetadataFactory.build( + ver: document.metadata.version, + fieldKey: fieldKey, + // This should come from document.metadata + fieldValue: 'Document[${document.metadata.version}] title', + ), + }; + }).toList(); + + return (document: document, metadata: documentMetadata); + } +} + +abstract final class DocumentFactory { + static DocumentEntity build({ + SignedDocumentContent? content, + SignedDocumentMetadata? metadata, + DateTime? createdAt, + }) { + content ??= const SignedDocumentContent({}); + + metadata ??= SignedDocumentMetadata( + type: SignedDocumentType.proposalDocument, + id: const Uuid().v7(), + version: const Uuid().v7(), + ); + + final id = UuidHiLo.from(metadata.id); + final ver = UuidHiLo.from(metadata.version); + + return DocumentEntity( + idHi: id.high, + idLo: id.low, + verHi: ver.high, + verLo: ver.low, + type: metadata.type, + content: content, + metadata: metadata, + createdAt: createdAt ?? DateTime.timestamp(), + ); + } +} + +abstract final class DocumentMetadataFactory { + static DocumentMetadataEntity build({ + String? ver, + required DocumentMetadataFieldKey fieldKey, + required String fieldValue, + }) { + ver ??= const Uuid().v7(); + + final verHiLo = UuidHiLo.from(ver); + + return DocumentMetadataEntity( + verHi: verHiLo.high, + verLo: verHiLo.low, + fieldKey: fieldKey, + fieldValue: fieldValue, + ); + } +} + +abstract final class DraftFactory { + static DraftEntity build({ + SignedDocumentContent? content, + SignedDocumentMetadata? metadata, + String? title, + }) { + content ??= const SignedDocumentContent({}); + + metadata ??= SignedDocumentMetadata( + type: SignedDocumentType.proposalDocument, + id: const Uuid().v7(), + version: const Uuid().v7(), + ); + + title ??= 'Draft[${metadata.id}] title'; + + final id = UuidHiLo.from(metadata.id); + final ver = UuidHiLo.from(metadata.version); + + return DraftEntity( + idHi: id.high, + idLo: id.low, + verHi: ver.high, + verLo: ver.low, + type: metadata.type, + content: content, + metadata: metadata, + title: title, + ); + } +}