UNPKG

@logseq/nbb-logseq

Version:

Nbb with additional libraries like datascript included

107 lines 52.1 kB
import { $APP, shadow$provide, $jscomp } from "./nbb_core.js"; const shadow_esm_import = function(x) { return import(x) }; var fP,Ywa,gP,hP,iP,Zwa,$wa,jP,kP,mP,oP,qP,axa,pP,tP,uP,exa,vP,wP,xP,yP,zP,BP,EP,FP,fxa,gxa,DP,hxa,CP,AP,GP,HP,ixa,IP,JP,jxa,kxa,lxa,KP,nxa,MP,NP,OP,PP,QP,RP,SP,TP,UP,VP,WP,XP,YP,ZP,$P,aQ,bQ,cQ,dQ,eQ,oxa,fQ,gQ,pxa,iQ,qxa,rxa,sxa,hQ,jQ,txa,uxa,vxa,kQ,lQ,nQ,oQ,qQ,rQ,sQ,tQ,wxa,uQ,wQ,xQ,yQ,zQ,xxa,yxa,AQ,zxa,Axa,Bxa,Cxa,Dxa,Exa,CQ,DQ,Fxa,Gxa,Hxa,Ixa,Jxa,Kxa,Lxa,Mxa,Nxa,Oxa,Pxa,Qxa,Rxa,Sxa,Txa,Uxa,Vxa,Wxa,EQ,Xxa,Yxa;fP=function(a,b){return $APP.da[a]=b}; Ywa=function(a,b){b&=63;if(0==b)return a;var c=a.La;return 32>b?$APP.ra(a.yb>>>b|c<<32-b,c>>>b):32==b?$APP.ra(c,0):$APP.ra(c>>>b-32,0)};gP=function(a){if(null!=a&&null!=a.ba)a=a.ba(a);else{var b=gP[$APP.fa(null==a?null:a)];if(null!=b)a=b.h?b.h(a):b.call(null,a);else if(b=gP._,null!=b)a=b.h?b.h(a):b.call(null,a);else throw $APP.Db("ICloneable.-clone",a);}return a}; hP=function(a,b){if("-"==a.charAt(0))return $APP.ta(hP(a.substring(1),b));var c=parseInt(a,b||10);if(9007199254740991>=c)return new $APP.qa(c%4294967296|0,c/4294967296|0);if(0==a.length)throw Error("number format error: empty string");if(0<=a.indexOf("-"))throw Error('number format error: interior "-" character: '+a);b=b||10;if(2>b||36<b)throw Error("radix out of range: "+b);c=$APP.va(Math.pow(b,8));for(var d=$APP.ua,e=0;e<a.length;e+=8){var f=Math.min(8,a.length-e),g=parseInt(a.substring(e,e+f), b);8>f?(f=$APP.va(Math.pow(b,f)),d=d.multiply(f).add($APP.va(g))):(d=d.multiply(c),d=d.add($APP.va(g)))}return d};iP=function(){return Math.round(15*Math.random()).toString(16)};Zwa=function(a,b){if(3<a.length){if(b)return!0;b=a.charAt(1);return"~"===a.charAt(0)?":"===b||"$"===b||"#"===b:!1}return!1};$wa=function(a){var b=Math.floor(a/44);a=String.fromCharCode(a%44+48);return 0===b?"^"+a:"^"+String.fromCharCode(b+48)+a};jP=function(){this.vj=this.Ne=this.idx=0;this.cache={}}; kP=function(){this.idx=0;this.cache=[]};mP=function(a,b){if(null==a)return null==b;if(a===b)return!0;if("object"===typeof a){if(lP(a)){if(lP(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!mP(a[c],b[c]))return!1;return!0}return!1}if(a.Dd)return a.Dd(b);if(null!=b&&"object"===typeof b){if(b.Dd)return b.Dd(a);c=0;var d=nP(b).length,e;for(e in a)if(a.hasOwnProperty(e)&&(c++,!b.hasOwnProperty(e)||!mP(a[e],b[e])))return!1;return c===d}}return!1}; oP=function(a,b){return a^b+2654435769+(a<<6)+(a>>2)};qP=function(a){var b=0;if(null!=a.forEach)a.forEach(function(g,m){b=(b+(pP(m)^pP(g)))%4503599627370496});else for(var c=nP(a),d=0;d<c.length;d++){var e=c[d],f=a[e];b=(b+(pP(e)^pP(f)))%4503599627370496}return b};axa=function(a){var b=0;if(lP(a))for(var c=0;c<a.length;c++)b=oP(b,pP(a[c]));else a.forEach&&a.forEach(function(d){b=oP(b,pP(d))});return b}; pP=function(a){if(null==a)return 0;switch(typeof a){case "number":return a;case "boolean":return!0===a?1:0;case "string":var b=rP[a];if(null!=b)a=b;else{for(var c=b=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;sP++;256<=sP&&(rP={},sP=1);a=rP[a]=b}return a;case "function":return b=a.transit$hashCode$,b||(b=bxa,"undefined"!=typeof Object.defineProperty?Object.defineProperty(a,"transit$hashCode$",{value:b,enumerable:!1}):a.transit$hashCode$=b,bxa++),b;default:return a instanceof Date?a.valueOf(): lP(a)?axa(a):a.Ud?a.Ud():qP(a)}};tP=function(a,b){this.tag=a;this.rep=b;this.pb=-1};uP=function(a,b){return new tP(a,b)};exa=function(a){if("number"===typeof a||a instanceof $APP.qa)return a;a=hP(a,10);var b;(b=0<a.compare(cxa))||(b=0>a.compare(dxa));return b?a:$APP.xa(a)};vP=function(a){this.Yb=a;this.pb=-1};wP=function(a){this.Yb=a;this.pb=-1}; xP=function(a,b,c){var d="";c=c||b+1;for(var e=8*(7-b),f=(new $APP.qa(255,0)).shiftLeft(e);b<c;b++,e-=8,f=Ywa(f,8)){var g=Ywa(a.and(f),e).toString(16);1==g.length&&(g="0"+g);d+=g}return d};yP=function(a,b){this.high=a;this.low=b;this.pb=-1};zP=function(a,b){this.entries=a;this.type=b||0;this.idx=0};BP=function(a,b){this.map=a;this.type=b||0;this.keys=AP(this.map);this.idx=0;this.Se=null;this.He=0}; EP=function(a,b){if(a instanceof CP&&(b instanceof DP||b instanceof CP)){if(a.size!==b.size)return!1;for(var c in a.map)for(var d=a.map[c],e=0;e<d.length;e+=2)if(!mP(d[e+1],b.get(d[e])))return!1;return!0}if(a instanceof DP&&(b instanceof DP||b instanceof CP)){if(a.size!==b.size)return!1;a=a.xb;for(e=0;e<a.length;e+=2)if(!mP(a[e+1],b.get(a[e])))return!1;return!0}if(null!=b&&"object"===typeof b&&(e=nP(b),c=e.length,a.size===c)){for(d=0;d<c;d++){var f=e[d];if(!a.has(f)||!mP(b[f],a.get(f)))return!1}return!0}return!1}; FP=function(a){return null==a?"null":"array"===$APP.fa(a)?"["+a.toString()+"]":"string"===$APP.fa(a)?'"'+a+'"':a.toString()};fxa=function(a){var b=0,c="TransitMap {";a.forEach(function(d,e){c+=FP(e)+" \x3d\x3e "+FP(d);b<a.size-1&&(c+=", ");b++});return c+"}"};gxa=function(a){var b=0,c="TransitSet {";a.forEach(function(d){c+=FP(d);b<a.size-1&&(c+=", ");b++});return c+"}"};DP=function(a){this.xb=a;this.qb=null;this.pb=-1;this.size=a.length/2;this.di=0}; hxa=function(a){if(a.qb)throw Error("Invalid operation, already converted");if(8>a.size)return!1;a.di++;return 32<a.di?(a.qb=GP(a.xb,!1,!0),a.xb=[],!0):!1};CP=function(a,b,c){this.map=b||{};this.lf=a||[];this.size=c||0;this.pb=-1};AP=function(a){return null!=a.lf?a.lf:nP(a.map)}; GP=function(a,b,c){a=a||[];b=!1===b?b:!0;if((!0!==c||!c)&&64>=a.length){if(b){var d=a;a=[];for(b=0;b<d.length;b+=2){var e=!1;for(c=0;c<a.length;c+=2)if(mP(a[c],d[b])){a[c+1]=d[b+1];e=!0;break}e||(a.push(d[b]),a.push(d[b+1]))}}return new DP(a)}d={};e=[];var f=0;for(b=0;b<a.length;b+=2){c=pP(a[b]);var g=d[c];if(null==g)e.push(c),d[c]=[a[b],a[b+1]],f++;else{var m=!0;for(c=0;c<g.length;c+=2)if(mP(g[c],a[b])){g[c+1]=a[b+1];m=!1;break}m&&(g.push(a[b]),g.push(a[b+1]),f++)}}return new CP(e,d,f)}; HP=function(a){this.map=a;this.size=a.size};ixa=function(a){a=a||[];for(var b={},c=[],d=0,e=0;e<a.length;e++){var f=pP(a[e]),g=b[f];if(null==g)c.push(f),b[f]=[a[e],a[e]],d++;else{f=!0;for(var m=0;m<g.length;m+=2)if(mP(g[m],a[e])){f=!1;break}f&&(g.push(a[e]),g.push(a[e]),d++)}}return new HP(new CP(c,b,d))};IP=function(a){this.Oc=a}; JP=function(a){this.options=a||{};this.jc={};for(var b in this.Tf.jc)this.jc[b]=this.Tf.jc[b];for(b in this.options.handlers){a:{switch(b){case "_":case "s":case "?":case "i":case "d":case "b":case "'":case "array":case "map":a=!0;break a}a=!1}if(a)throw Error('Cannot override handler for ground type "'+b+'"');this.jc[b]=this.options.handlers[b]}this.Sg=null!=this.options.preferStrings?this.options.preferStrings:this.Tf.Sg;this.Th=null!=this.options.preferBuffers?this.options.preferBuffers:this.Tf.Th; this.Ih=this.options.defaultHandler||this.Tf.Ih;this.Jd=this.options.mapBuilder;this.mf=this.options.arrayBuilder}; jxa=function(a,b,c,d,e){if(e){var f=[];for(e=0;e<b.length;e++)f.push(a.decode(b[e],c,d,!1));return f}f=c&&c.idx;if(2===b.length&&"string"===typeof b[0]&&(e=a.decode(b[0],c,!1,!1))&&e instanceof IP)return b=b[1],f=a.jc[e.Oc],null!=f?f=f(a.decode(b,c,d,!0),a):uP(e.Oc,a.decode(b,c,d,!1));c&&f!=c.idx&&(c.idx=f);if(a.mf){if(32>=b.length&&a.mf.fromArray){f=[];for(e=0;e<b.length;e++)f.push(a.decode(b[e],c,d,!1));return a.mf.fromArray(f,b)}f=a.mf.init(b);for(e=0;e<b.length;e++)f=a.mf.add(f,a.decode(b[e], c,d,!1),b);return a.mf.finalize(f,b)}f=[];for(e=0;e<b.length;e++)f.push(a.decode(b[e],c,d,!1));return f};kxa=function(a,b){if("~"===b.charAt(0)){var c=b.charAt(1);if("~"===c||"^"===c||"`"===c)return b.substring(1);if("#"===c)return new IP(b.substring(2));var d=a.jc[c];return null==d?a.Ih(c,b.substring(2)):d(b.substring(2),a)}return b};lxa=function(a){this.Jj=new JP(a)};KP=function(a,b){this.zk=a;this.options=b||{};this.cache=this.options.cache?this.options.cache:new kP}; nxa=function(a){if(null==a)return"null";if(a===String)return"string";if(a===Boolean)return"boolean";if(a===Number)return"number";if(a===Array)return"array";if(a===Object)return"map";var b=a[LP];null==b&&("undefined"!=typeof Object.defineProperty?(b=++mxa,Object.defineProperty(a,LP,{value:b,enumerable:!1})):a[LP]=b=++mxa);return b};MP=function(a,b){a=a.toString();for(var c=a.length;c<b;c++)a="0"+a;return a};NP=function(){};OP=function(){};PP=function(){};QP=function(){};RP=function(){};SP=function(){}; TP=function(){};UP=function(){};VP=function(){};WP=function(){};XP=function(){};YP=function(){};ZP=function(){};$P=function(){};aQ=function(){};bQ=function(){};cQ=function(){};dQ=function(){}; eQ=function(){this.jc={};this.set(null,new NP);this.set(String,new OP);this.set(Number,new PP);this.set($APP.qa,new QP);this.set(Boolean,new RP);this.set(Array,new SP);this.set(Object,new TP);this.set(Date,new VP);this.set(yP,new WP);this.set(vP,new XP);this.set(wP,new YP);this.set(tP,new ZP);this.set(HP,new $P);this.set(DP,new aQ);this.set(CP,new bQ);"undefined"!=typeof $APP.Nu.Buffer&&this.set($APP.Nu.Buffer,new cQ);"undefined"!=typeof Uint8Array&&this.set(Uint8Array,new dQ)}; oxa=function(a){this.be=a||{};this.Sg=null!=this.be.preferStrings?this.be.preferStrings:!0;this.Li=this.be.objectBuilder||null;this.transform=this.be.transform||null;this.jc=new eQ;if(a=this.be.handlers){if(lP(a)||!a.forEach)throw Error('transit writer "handlers" option must be a map');var b=this;a.forEach(function(c,d){if(void 0!==d)b.jc.set(d,c);else throw Error("Cannot create handler for JavaScript undefined");})}this.Wf=this.be.handlerForForeign;this.Zg=this.be.unpack||function(c){return c instanceof DP&&null===c.qb?c.xb:!1};this.lg=this.be&&this.be.verbose||!1};fQ=function(a,b){var c=a.jc.get(null==b?null:b.constructor);return null!=c?c:(b=b&&b.transitTag)?a.jc.get(b):null};gQ=function(a,b,c,d,e){a=a+b+c;return e?e.write(a,d):a};pxa=function(a,b,c){var d=[];if(lP(b))for(var e=0;e<b.length;e++)d.push(hQ(a,b[e],!1,c));else b.forEach(function(f){d.push(hQ(a,f,!1,c))});return d};iQ=function(a,b){return"string"!==typeof b?(a=fQ(a,b))&&1===a.tag(b).length:!0}; qxa=function(a,b){var c=a.Zg(b),d=!0;if(c){for(b=0;b<c.length&&(d=iQ(a,c[b]),d);b+=2);return d}if(b.keys){c=b.keys();var e=null;if(c.next){for(e=c.next();!e.done;){d=iQ(a,e.value);if(!d)break;e=c.next()}return d}}if(b.forEach)return b.forEach(function(f,g){d=d&&iQ(a,g)}),d;throw Error("Cannot walk keys of object type "+(null==b?null:b.constructor).name);}; rxa=function(a){if(a.constructor.transit$isObject)return!0;var b=a.constructor.toString();b=b.substr(9);b=b.substr(0,b.indexOf("("));b="Object"==b;"undefined"!=typeof Object.defineProperty?Object.defineProperty(a.constructor,"transit$isObject",{value:b,enumerable:!1}):a.constructor.transit$isObject=b;return b}; sxa=function(a,b,c){var d=null,e=null,f=null;d=null;var g=0;if(b.constructor===Object||null!=b.forEach||a.Wf&&rxa(b)){if(a.lg){if(null!=b.forEach)if(qxa(a,b)){var m={};b.forEach(function(r,n){m[hQ(a,n,!0,!1)]=hQ(a,r,!1,c)})}else{d=a.Zg(b);e=[];f=gQ("~#","cmap","",!0,c);if(d)for(;g<d.length;g+=2)e.push(hQ(a,d[g],!1,!1)),e.push(hQ(a,d[g+1],!1,c));else b.forEach(function(r,n){e.push(hQ(a,n,!1,!1));e.push(hQ(a,r,!1,c))});m={};m[f]=e}else for(d=nP(b),m={};g<d.length;g++)m[hQ(a,d[g],!0,!1)]=hQ(a,b[d[g]], !1,c);return m}if(null!=b.forEach){if(qxa(a,b)){d=a.Zg(b);m=["^ "];if(d)for(;g<d.length;g+=2)m.push(hQ(a,d[g],!0,c)),m.push(hQ(a,d[g+1],!1,c));else b.forEach(function(r,n){m.push(hQ(a,n,!0,c));m.push(hQ(a,r,!1,c))});return m}d=a.Zg(b);e=[];f=gQ("~#","cmap","",!0,c);if(d)for(;g<d.length;g+=2)e.push(hQ(a,d[g],!1,c)),e.push(hQ(a,d[g+1],!1,c));else b.forEach(function(r,n){e.push(hQ(a,n,!1,c));e.push(hQ(a,r,!1,c))});return[f,e]}m=["^ "];for(d=nP(b);g<d.length;g++)m.push(hQ(a,d[g],!0,c)),m.push(hQ(a,b[d[g]], !1,c));return m}if(null!=a.Li)return a.Li(b,function(r){return hQ(a,r,!0,c)},function(r){return hQ(a,r,!1,c)});g=(null==b?null:b.constructor).name;d=Error("Cannot write "+g);d.data={Da:b,type:g};throw d;}; hQ=function(a,b,c,d){null!==a.transform&&(b=a.transform(b));var e=fQ(a,b)||(a.Wf?a.Wf(b,a.jc):null),f=e?e.tag(b):null,g=e?e.rep(b):null;if(null!=e&&null!=f)switch(f){case "_":return c?gQ("~","_","",c,d):null;case "s":return 0<g.length?(a=g.charAt(0),a="~"===a||"^"===a||"`"===a?"~"+g:g):a=g,gQ("","",a,c,d);case "?":return c?gQ("~","?",g.toString()[0],c,d):g;case "i":return Infinity===g?gQ("~","z","INF",c,d):-Infinity===g?gQ("~","z","-INF",c,d):isNaN(g)?gQ("~","z","NaN",c,d):c||"string"===typeof g|| g instanceof $APP.qa?gQ("~","i",g.toString(),c,d):g;case "d":return c?gQ(g.Ik,"d",g,c,d):g;case "b":return gQ("~","b",g,c,d);case "'":return a.lg?(c={},b=gQ("~#","'","",!0,d),c[b]=hQ(a,g,!1,d),d=c):d=[gQ("~#","'","",!0,d),hQ(a,g,!1,d)],d;case "array":return pxa(a,g,d);case "map":return sxa(a,g,d);default:a:{if(1===f.length){if("string"===typeof g){d=gQ("~",f,g,c,d);break a}if(c||a.Sg){(a=a.lg&&e.getVerboseHandler())?(f=a.tag(b),g=a.stringRep(b,a)):g=e.stringRep(b,e);if(null!==g){d=gQ("~",f,g,c,d); break a}d=Error('Tag "'+f+'" cannot be encoded as string');d.data={tag:f,rep:g,Da:b};throw d;}}c=f;b=g;a.lg?(e={},e[gQ("~#",c,"",!0,d)]=hQ(a,b,!1,d),d=e):d=[gQ("~#",c,"",!0,d),hQ(a,b,!1,d)]}return d}else throw d=(null==b?null:b.constructor).name,a=Error("Cannot write "+d),a.data={Da:b,type:d},a;};jQ=function(a,b){this.Bf=a;this.options=b||{};this.cache=!1===this.options.cache?null:this.options.cache?this.options.cache:new jP}; txa=function(a,b){if("json"===a||"json-verbose"===a||null==a)return a=new lxa(b),new KP(a,b);throw Error("Cannot create reader of type "+a);};uxa=function(a,b){if("json"===a||"json-verbose"===a||null==a)return"json-verbose"===a&&(null==b&&(b={}),b.verbose=!0),a=new oxa(b),new jQ(a,b);b=Error('Type must be "json"');b.data={type:a};throw b;}; vxa=function(a,b){for(var c=$APP.u($APP.Ha(b)),d=null,e=0,f=0;;)if(f<e){var g=d.ea(null,f);a[g]=$APP.Ma(b,g);f+=1}else if(c=$APP.u(c))d=c,$APP.Pe(d)?(c=$APP.hd(d),f=$APP.id(d),d=c,e=$APP.me(c),c=f):(c=$APP.v(d),a[c]=$APP.Ma(b,c),c=$APP.y(d),d=null,e=0),f=0;else break;return a};kQ=function(){};lQ=function(){};$APP.mQ=function(a,b){return a.read(b)};nQ=function(){};oQ=function(){};$APP.pQ=function(){};qQ=function(){};rQ=function(){};sQ=function(){};tQ=function(){}; wxa=function(a,b){this.value=a;this.K=b};uQ=function(){};$APP.vQ=function(a,b){return a.write(b)};wQ=function(a){return a};xQ=function(a,b){return uP(a,b)};yQ=function(a){return exa(a)};zQ=function(a){if(null!=a&&(a.I&131072||$APP.Cd===a.pf)){var b=a.W(null);return null!=b?new wxa(a.X(null,null),b):a}return a};$APP.Nd.prototype.ba=fP(21,function(){return new $APP.Nd(this.H,this.T,this.K)});$APP.qe.prototype.ba=fP(20,function(){return new $APP.qe(this.Ef,this.T,this.K)}); $APP.E.prototype.ba=fP(19,function(){return new $APP.E(this.K,this.first,this.$b,this.count,this.D)});$APP.tg.prototype.ba=fP(18,function(){return new $APP.tg(this.K)});$APP.xg.prototype.ba=fP(17,function(){return new $APP.xg(this.K,this.first,this.$b,this.D)});$APP.J.prototype.ba=fP(16,function(){return new $APP.J(this.K,this.O,this.shift,this.root,this.nc,this.D)});$APP.ri.prototype.ba=fP(15,function(){return new $APP.ri(this.K,this.v,this.start,this.end,this.D)}); $APP.yi.prototype.ba=fP(14,function(){return new $APP.yi(this.K,this.count,this.Mc,this.dd,this.D)});$APP.k.prototype.ba=fP(13,function(){return new $APP.k(this.K,this.O,this.H,this.D)});$APP.jj.prototype.ba=fP(12,function(){return new $APP.jj(this.K,this.O,this.root,this.cc,this.kc,this.D)});$APP.rj.prototype.ba=fP(11,function(){return new $APP.rj(this.Lc,this.Od,this.O,this.K,this.D)});$APP.Bj.prototype.ba=fP(10,function(){return new $APP.Bj(this.K,this.se,this.D)}); $APP.Ej.prototype.ba=fP(9,function(){return new $APP.Ej(this.K,this.nd,this.D)});$APP.Nj.prototype.ba=fP(8,function(){return new $APP.Nj(this.K,this.start,this.end,this.step,this.Vb,this.Qd,this.D)});$APP.Oj.prototype.ba=fP(7,function(){return new $APP.Oj(this.K,this.start,this.end,this.step,this.Vb,this.Qd,this.D)});$APP.hm.prototype.ba=fP(6,function(){return new $APP.hm(this.fe,this.form,this.A,this.o,this.D)}); $APP.Go.prototype.ba=fP(5,function(){return new $APP.Go(this.ue,this.re,this.A,this.o,this.D)});$APP.yp.prototype.ba=fP(4,function(){return new $APP.yp(this.Ab,this.deref,this.Lb,this.Mb,this.Nb,this.quote,this.ia,this.lb,this.Hb,this.Ib,this.Jb,this.zb,this.Db,this.Bb,this.source,this.Kb,this.Gb,this.Eb,this.Cb,this.A,this.o,this.D)});$APP.Pp.prototype.ba=fP(3,function(){return new $APP.Pp(this.f,this.stack,this.A,this.o,this.D)}); $APP.Lr.prototype.ba=fP(2,function(){return new $APP.Lr(this.Qe,this.type,this.lb,this.Bc,this.Pg)});$APP.Ns.prototype.ba=fP(1,function(){return new $APP.Ns(this.Fb,this.body,this.gd,this.od,this.md,this.hd,this.A,this.o,this.D)});$APP.qa.prototype.pb=fP(0,function(){return this.yb^this.La});xxa=new $APP.t(null,"write-meta","write-meta",-1711397117,null);yxa=new $APP.t(null,"from-rep","from-rep",911750077,null);AQ=new $APP.t(null,"str-rep-fn","str-rep-fn",-1179615016,null); zxa=new $APP.t(null,"ListHandler","ListHandler",-856350412,null);$APP.BQ=new $APP.G(null,"handlers","handlers",79528781);Axa=new $APP.t("cognitect.transit","integer","cognitect.transit/integer",-1862495722,null);Bxa=new $APP.t("cognitect.transit","write-meta","cognitect.transit/write-meta",-859929338,null);Cxa=new $APP.G(null,"arrayBuilder","arrayBuilder",1446317421);Dxa=new $APP.G(null,"mapBuilder","mapBuilder",-278083754);Exa=new $APP.G(null,"preferStrings","preferStrings",-1532249482); CQ=new $APP.t(null,"tag-fn","tag-fn",242055482,null);DQ=new $APP.t(null,"rep-fn","rep-fn",-1724891035,null);Fxa=new $APP.t(null,"rep","rep",413710963,null);Gxa=new $APP.t("cognitect.transit","ListHandler","cognitect.transit/ListHandler",397689651,null);Hxa=new $APP.t(null,"tagged-value","tagged-value",-110559503,null);Ixa=new $APP.t(null,"write-handler","write-handler",-692059351,null);Jxa=new $APP.G(null,"map-builder","map-builder",-1843343288); Kxa=new $APP.t("cognitect.transit","reader","cognitect.transit/reader",1051062779,null);Lxa=new $APP.G(null,"prefer-strings","prefer-strings",1254507185);Mxa=new $APP.t("cognitect.transit","read-handler","cognitect.transit/read-handler",-523561611,null);Nxa=new $APP.G(null,"array-builder","array-builder",1275998041);Oxa=new $APP.t(null,"read-handler","read-handler",1426618230,null);Pxa=new $APP.G(null,"prefer-buffers","prefer-buffers",377042081); Qxa=new $APP.t("cognitect.transit","write-handler","cognitect.transit/write-handler",-2147442390,null);Rxa=new $APP.t("cognitect.transit","write","cognitect.transit/write",432992816,null);Sxa=new $APP.t("cognitect.transit","writer","cognitect.transit/writer",-92501676,null);Txa=new $APP.t("cognitect.transit","read","cognitect.transit/read",-553970069,null);Uxa=new $APP.t("cognitect.transit","tagged-value","cognitect.transit/tagged-value",1403542766,null);Vxa=new $APP.t(null,"w","w",1994700528,null); Wxa=new $APP.G(null,"preferBuffers","preferBuffers",1843176451);EQ=new $APP.t(null,"verbose-handler-fn","verbose-handler-fn",547340594,null);Xxa=new $APP.t(null,"integer","integer",1035809817,null);Yxa=new $APP.t(null,"write","write",-217117641,null);var nP="undefined"!=typeof Object.keys?function(a){return Object.keys(a)}:function(a){return $APP.Ha(a)},lP="undefined"!=typeof Array.isArray?function(a){return Array.isArray(a)}:function(a){return"array"===$APP.fa(a)};jP.prototype.write=function(a,b){return Zwa(a,b)?(4096===this.vj?(this.clear(),this.Ne=0,this.cache={}):1936===this.idx&&this.clear(),b=this.cache[a],null==b?(this.cache[a]=[$wa(this.idx),this.Ne],this.idx++,a):b[1]!=this.Ne?(b[1]=this.Ne,b[0]=$wa(this.idx),this.idx++,a):b[0]):a};jP.prototype.clear=function(){this.idx=0;this.Ne++};kP.prototype.write=function(a){1936==this.idx&&(this.idx=0);this.cache[this.idx]=a;this.idx++;return a}; kP.prototype.read=function(a){return this.cache[2===a.length?a.charCodeAt(1)-48:44*(a.charCodeAt(1)-48)+(a.charCodeAt(2)-48)]};kP.prototype.clear=function(){this.idx=0};var bxa=1,rP={},sP=0;var FQ="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";tP.prototype.toString=function(){return"[TaggedValue: "+this.tag+", "+this.rep+"]"};tP.prototype.equiv=function(a){return mP(this,a)};tP.prototype.equiv=tP.prototype.equiv;tP.prototype.Dd=function(a){return a instanceof tP?this.tag===a.tag&&mP(this.rep,a.rep):!1};tP.prototype.Ud=function(){-1===this.pb&&(this.pb=oP(pP(this.tag),pP(this.rep)));return this.pb};var cxa=hP("9007199254740991"),dxa=hP("-9007199254740991"); $APP.qa.prototype.equiv=function(a){return mP(this,a)};$APP.qa.prototype.equiv=$APP.qa.prototype.equiv;$APP.qa.prototype.Dd=function(a){return a instanceof $APP.qa&&this.equals(a)};$APP.qa.prototype.Ud=function(){return this.yb};vP.prototype.toString=function(){return":"+this.Yb};vP.prototype.namespace=function(){var a=this.Yb.indexOf("/");return-1!=a?this.Yb.substring(0,a):null};vP.prototype.name=function(){var a=this.Yb.indexOf("/");return-1!=a?this.Yb.substring(a+1,this.Yb.length):this.Yb}; vP.prototype.equiv=function(a){return mP(this,a)};vP.prototype.equiv=vP.prototype.equiv;vP.prototype.Dd=function(a){return a instanceof vP&&this.Yb==a.Yb};vP.prototype.Ud=function(){-1===this.pb&&(this.pb=pP(this.Yb));return this.pb};wP.prototype.namespace=function(){var a=this.Yb.indexOf("/");return-1!=a?this.Yb.substring(0,a):null};wP.prototype.name=function(){var a=this.Yb.indexOf("/");return-1!=a?this.Yb.substring(a+1,this.Yb.length):this.Yb};wP.prototype.toString=function(){return this.Yb}; wP.prototype.equiv=function(a){return mP(this,a)};wP.prototype.equiv=wP.prototype.equiv;wP.prototype.Dd=function(a){return a instanceof wP&&this.Yb==a.Yb};wP.prototype.Ud=function(){-1===this.pb&&(this.pb=pP(this.Yb));return this.pb};yP.prototype.toString=function(){var a=this.high,b=this.low;var c=xP(a,0,4)+"-";c+=xP(a,4,6)+"-";c+=xP(a,6,8)+"-";c+=xP(b,0,2)+"-";return c+=xP(b,2,8)};yP.prototype.equiv=function(a){return mP(this,a)};yP.prototype.equiv=yP.prototype.equiv; yP.prototype.Dd=function(a){return a instanceof yP&&this.high.equals(a.high)&&this.low.equals(a.low)};yP.prototype.Ud=function(){-1===this.pb&&(this.pb=pP(this.toString()));return this.pb};Date.prototype.Dd=function(a){return a instanceof Date?this.valueOf()===a.valueOf():!1};Date.prototype.Ud=function(){return this.valueOf()}; zP.prototype.next=function(){if(this.idx<this.entries.length){var a={value:0===this.type?this.entries[this.idx]:1===this.type?this.entries[this.idx+1]:[this.entries[this.idx],this.entries[this.idx+1]],done:!1};this.idx+=2;return a}return{value:null,done:!0}};zP.prototype.next=zP.prototype.next;zP.prototype[FQ]=function(){return this}; BP.prototype.next=function(){if(this.idx<this.map.size){null!=this.Se&&this.He<this.Se.length||(this.Se=this.map.map[this.keys[this.idx]],this.He=0);var a={value:0===this.type?this.Se[this.He]:1===this.type?this.Se[this.He+1]:[this.Se[this.He],this.Se[this.He+1]],done:!1};this.idx++;this.He+=2;return a}return{value:null,done:!0}};BP.prototype.next=BP.prototype.next;BP.prototype[FQ]=function(){return this};DP.prototype.toString=function(){return fxa(this)};DP.prototype.inspect=function(){return this.toString()}; DP.prototype.clear=function(){this.pb=-1;this.qb?this.qb.clear():this.xb=[];this.size=0};DP.prototype.clear=DP.prototype.clear;DP.prototype.keys=function(){return this.qb?this.qb.keys():new zP(this.xb,0)};DP.prototype.keys=DP.prototype.keys;DP.prototype.bf=function(){if(this.qb)return this.qb.bf();for(var a=[],b=0,c=0;c<this.xb.length;b++,c+=2)a[b]=this.xb[c];return a};DP.prototype.keySet=DP.prototype.bf;DP.prototype.entries=function(){return this.qb?this.qb.entries():new zP(this.xb,2)}; DP.prototype.entries=DP.prototype.entries;DP.prototype.values=function(){return this.qb?this.qb.values():new zP(this.xb,1)};DP.prototype.values=DP.prototype.values;DP.prototype.forEach=function(a){if(this.qb)this.qb.forEach(a);else for(var b=0;b<this.xb.length;b+=2)a(this.xb[b+1],this.xb[b])};DP.prototype.forEach=DP.prototype.forEach; DP.prototype.get=function(a,b){if(this.qb)return this.qb.get(a);if(hxa(this))return this.get(a);for(var c=0;c<this.xb.length;c+=2)if(mP(this.xb[c],a))return this.xb[c+1];return b};DP.prototype.get=DP.prototype.get;DP.prototype.has=function(a){if(this.qb)return this.qb.has(a);if(hxa(this))return this.has(a);for(var b=0;b<this.xb.length;b+=2)if(mP(this.xb[b],a))return!0;return!1};DP.prototype.has=DP.prototype.has; DP.prototype.set=function(a,b){this.pb=-1;if(this.qb)this.qb.set(a,b),this.size=this.qb.size;else{for(var c=0;c<this.xb.length;c+=2)if(mP(this.xb[c],a)){this.xb[c+1]=b;return}this.xb.push(a);this.xb.push(b);this.size++;32<this.size&&(this.qb=GP(this.xb,!1,!0),this.xb=null)}};DP.prototype.set=DP.prototype.set; DP.prototype["delete"]=function(a){this.pb=-1;if(this.qb)return a=this.qb.delete(a),this.size=this.qb.size,a;for(var b=0;b<this.xb.length;b+=2)if(mP(this.xb[b],a))return a=this.xb[b+1],this.xb.splice(b,2),this.size--,a};DP.prototype.clone=function(){var a=GP();this.forEach(function(b,c){a.set(c,b)});return a};DP.prototype.clone=DP.prototype.clone;DP.prototype[FQ]=function(){return this.entries()};DP.prototype.Ud=function(){if(this.qb)return this.qb.Ud();-1===this.pb&&(this.pb=qP(this));return this.pb}; DP.prototype.Dd=function(a){return this.qb?EP(this.qb,a):EP(this,a)};CP.prototype.toString=function(){return fxa(this)};CP.prototype.inspect=function(){return this.toString()};CP.prototype.clear=function(){this.pb=-1;this.map={};this.lf=[];this.size=0};CP.prototype.clear=CP.prototype.clear;CP.prototype["delete"]=function(a){this.pb=-1;this.lf=null;for(var b=pP(a),c=this.map[b],d=0;d<c.length;d+=2)if(mP(a,c[d]))return a=c[d+1],c.splice(d,2),0===c.length&&delete this.map[b],this.size--,a}; CP.prototype.entries=function(){return new BP(this,2)};CP.prototype.entries=CP.prototype.entries;CP.prototype.forEach=function(a){for(var b=AP(this),c=0;c<b.length;c++)for(var d=this.map[b[c]],e=0;e<d.length;e+=2)a(d[e+1],d[e],this)};CP.prototype.forEach=CP.prototype.forEach;CP.prototype.get=function(a,b){var c=pP(a);c=this.map[c];if(null!=c)for(b=0;b<c.length;b+=2){if(mP(a,c[b]))return c[b+1]}else return b};CP.prototype.get=CP.prototype.get; CP.prototype.has=function(a){var b=pP(a);b=this.map[b];if(null!=b)for(var c=0;c<b.length;c+=2)if(mP(a,b[c]))return!0;return!1};CP.prototype.has=CP.prototype.has;CP.prototype.keys=function(){return new BP(this,0)};CP.prototype.keys=CP.prototype.keys;CP.prototype.bf=function(){for(var a=AP(this),b=[],c=0;c<a.length;c++)for(var d=this.map[a[c]],e=0;e<d.length;e+=2)b.push(d[e]);return b};CP.prototype.keySet=CP.prototype.bf; CP.prototype.set=function(a,b){this.pb=-1;var c=pP(a),d=this.map[c];if(null==d)this.lf&&this.lf.push(c),this.map[c]=[a,b],this.size++;else{c=!0;for(var e=0;e<d.length;e+=2)if(mP(b,d[e])){c=!1;d[e]=b;break}c&&(d.push(a),d.push(b),this.size++)}};CP.prototype.set=CP.prototype.set;CP.prototype.values=function(){return new BP(this,1)};CP.prototype.values=CP.prototype.values;CP.prototype.clone=function(){var a=GP();this.forEach(function(b,c){a.set(c,b)});return a};CP.prototype.clone=CP.prototype.clone; CP.prototype[FQ]=function(){return this.entries()};CP.prototype.Ud=function(){-1===this.pb&&(this.pb=qP(this));return this.pb};CP.prototype.Dd=function(a){return EP(this,a)};HP.prototype.toString=function(){return gxa(this)};HP.prototype.inspect=function(){return this.toString()};HP.prototype.add=function(a){this.map.set(a,a);this.size=this.map.size};HP.prototype.add=HP.prototype.add;HP.prototype.clear=function(){this.map=new CP;this.size=0};HP.prototype.clear=HP.prototype.clear; HP.prototype["delete"]=function(a){a=this.map.delete(a);this.size=this.map.size;return a};HP.prototype.entries=function(){return this.map.entries()};HP.prototype.entries=HP.prototype.entries;HP.prototype.forEach=function(a){var b=this;this.map.forEach(function(c,d){a(d,b)})};HP.prototype.forEach=HP.prototype.forEach;HP.prototype.has=function(a){return this.map.has(a)};HP.prototype.has=HP.prototype.has;HP.prototype.keys=function(){return this.map.keys()};HP.prototype.keys=HP.prototype.keys; HP.prototype.bf=function(){return this.map.bf()};HP.prototype.keySet=HP.prototype.bf;HP.prototype.values=function(){return this.map.values()};HP.prototype.values=HP.prototype.values;HP.prototype.clone=function(){var a=ixa();this.forEach(function(b){a.add(b)});return a};HP.prototype.clone=HP.prototype.clone;HP.prototype[FQ]=function(){return this.values()};HP.prototype.Dd=function(a){if(a instanceof HP){if(this.size===a.size)return mP(this.map,a.map)}else return!1};HP.prototype.Ud=function(){return pP(this.map)};JP.prototype.Tf={jc:{_:function(){return null},"?":function(a){return"t"===a},b:function(a,b){if(b&&!1===b.Th||"undefined"==typeof $APP.Nu.Buffer)if("undefined"!=typeof Uint8Array){if("undefined"!=typeof atob)var c=atob(a);else{a=String(a).replace(/=+$/,"");if(1==a.length%4)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");b=0;for(var d,e=0,f="";d=a.charAt(e++);~d&&(c=b%4?64*c+d:d,b++%4)?f+=String.fromCharCode(255&c>>(-2*b&6)):0)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(d); c=f}a=c.length;b=new Uint8Array(a);for(d=0;d<a;d++)b[d]=c.charCodeAt(d);c=b}else c=uP("b",a);else c=new $APP.Nu.Buffer(a,"base64");return c},i:function(a){return exa(a)},n:function(a){return uP("n",a)},d:function(a){return parseFloat(a)},f:function(a){return uP("f",a)},c:function(a){return a},":":function(a){return new vP(a)},$:function(a){return new wP(a)},r:function(a){return uP("r",a)},z:function(a){a:switch(a){case "-INF":a=-Infinity;break a;case "INF":a=Infinity;break a;case "NaN":a=NaN;break a; default:throw Error("Invalid special double value "+a);}return a},"'":function(a){return a},m:function(a){a="number"===typeof a?a:parseInt(a,10);return new Date(a)},t:function(a){return new Date(a)},u:function(a){a=a.replace(/-/g,"");var b,c;var d=b=0;for(c=24;8>d;d+=2,c-=8)b|=parseInt(a.substring(d,d+2),16)<<c;var e=0;d=8;for(c=24;16>d;d+=2,c-=8)e|=parseInt(a.substring(d,d+2),16)<<c;var f=$APP.ra(e,b);b=0;d=16;for(c=24;24>d;d+=2,c-=8)b|=parseInt(a.substring(d,d+2),16)<<c;e=0;for(c=d=24;32>d;d+=2, c-=8)e|=parseInt(a.substring(d,d+2),16)<<c;return new yP(f,$APP.ra(e,b))},set:function(a){return ixa(a)},list:function(a){return uP("list",a)},link:function(a){return uP("link",a)},cmap:function(a){return GP(a,!1)}},Ih:function(a,b){return uP(a,b)},Sg:!0,Th:!0}; JP.prototype.decode=function(a,b,c,d){if(null==a)return null;switch(typeof a){case "string":return Zwa(a,c)?(a=kxa(this,a),b&&b.write(a,c),b=a):b="^"===a.charAt(0)&&" "!==a.charAt(1)?b.read(a,c):kxa(this,a),b;case "object":if(lP(a))if("^ "===a[0])if(this.Jd)if(17>a.length&&this.Jd.fromArray){d=[];for(c=1;c<a.length;c+=2)d.push(this.decode(a[c],b,!0,!1)),d.push(this.decode(a[c+1],b,!1,!1));b=this.Jd.fromArray(d,a)}else{d=this.Jd.init(a);for(c=1;c<a.length;c+=2)d=this.Jd.add(d,this.decode(a[c],b,!0, !1),this.decode(a[c+1],b,!1,!1),a);b=this.Jd.finalize(d,a)}else{d=[];for(c=1;c<a.length;c+=2)d.push(this.decode(a[c],b,!0,!1)),d.push(this.decode(a[c+1],b,!1,!1));b=GP(d,!1)}else b=jxa(this,a,b,c,d);else{c=nP(a);var e=c[0];if((d=1==c.length?this.decode(e,b,!1,!1):null)&&d instanceof IP)a=a[e],c=this.jc[d.Oc],b=null!=c?c(this.decode(a,b,!1,!0),this):uP(d.Oc,this.decode(a,b,!1,!1));else if(this.Jd)if(16>c.length&&this.Jd.fromArray){var f=[];for(d=0;d<c.length;d++)e=c[d],f.push(this.decode(e,b,!0,!1)), f.push(this.decode(a[e],b,!1,!1));b=this.Jd.fromArray(f,a)}else{f=this.Jd.init(a);for(d=0;d<c.length;d++)e=c[d],f=this.Jd.add(f,this.decode(e,b,!0,!1),this.decode(a[e],b,!1,!1),a);b=this.Jd.finalize(f,a)}else{f=[];for(d=0;d<c.length;d++)e=c[d],f.push(this.decode(e,b,!0,!1)),f.push(this.decode(a[e],b,!1,!1));b=GP(f,!1)}}return b}return a};JP.prototype.decode=JP.prototype.decode;KP.prototype.read=function(a){var b=this.cache;a=this.zk.Jj.decode(JSON.parse(a),b);this.cache.clear();return a};KP.prototype.read=KP.prototype.read;var mxa=0,Zxa=(8|3&Math.round(14*Math.random())).toString(16),LP="transit$guid$"+(iP()+iP()+iP()+iP()+iP()+iP()+iP()+iP()+"-"+iP()+iP()+iP()+iP()+"-4"+iP()+iP()+iP()+"-"+Zxa+iP()+iP()+iP()+"-"+iP()+iP()+iP()+iP()+iP()+iP()+iP()+iP()+iP()+iP()+iP()+iP());NP.prototype.tag=function(){return"_"};NP.prototype.rep=function(){return null};NP.prototype.stringRep=function(){return"null"};OP.prototype.tag=function(){return"s"};OP.prototype.rep=function(a){return a};OP.prototype.stringRep=function(a){return a}; PP.prototype.tag=function(){return"i"};PP.prototype.rep=function(a){return a};PP.prototype.stringRep=function(a){return a.toString()};QP.prototype.tag=function(){return"i"};QP.prototype.rep=function(a){return a.toString()};QP.prototype.stringRep=function(a){return a.toString()};RP.prototype.tag=function(){return"?"};RP.prototype.rep=function(a){return a};RP.prototype.stringRep=function(a){return a.toString()};SP.prototype.tag=function(){return"array"};SP.prototype.rep=function(a){return a}; SP.prototype.stringRep=function(){return null};TP.prototype.tag=function(){return"map"};TP.prototype.rep=function(a){return a};TP.prototype.stringRep=function(){return null};UP.prototype.tag=function(){return"t"};UP.prototype.rep=function(a){return a.getUTCFullYear()+"-"+MP(a.getUTCMonth()+1,2)+"-"+MP(a.getUTCDate(),2)+"T"+MP(a.getUTCHours(),2)+":"+MP(a.getUTCMinutes(),2)+":"+MP(a.getUTCSeconds(),2)+"."+MP(a.getUTCMilliseconds(),3)+"Z"};UP.prototype.stringRep=function(a,b){return b.rep(a)}; VP.prototype.tag=function(){return"m"};VP.prototype.rep=function(a){return a.valueOf()};VP.prototype.stringRep=function(a){return a.valueOf().toString()};VP.prototype.getVerboseHandler=function(){return new UP};WP.prototype.tag=function(){return"u"};WP.prototype.rep=function(a){return a.toString()};WP.prototype.stringRep=function(a){return a.toString()};XP.prototype.tag=function(){return":"};XP.prototype.rep=function(a){return a.Yb};XP.prototype.stringRep=function(a,b){return b.rep(a)}; YP.prototype.tag=function(){return"$"};YP.prototype.rep=function(a){return a.Yb};YP.prototype.stringRep=function(a,b){return b.rep(a)};ZP.prototype.tag=function(a){return a.tag};ZP.prototype.rep=function(a){return a.rep};ZP.prototype.stringRep=function(){return null};$P.prototype.tag=function(){return"set"};$P.prototype.rep=function(a){var b=[];a.forEach(function(c){b.push(c)});return uP("array",b)};$P.prototype.stringRep=function(){return null};aQ.prototype.tag=function(){return"map"}; aQ.prototype.rep=function(a){return a};aQ.prototype.stringRep=function(){return null};bQ.prototype.tag=function(){return"map"};bQ.prototype.rep=function(a){return a};bQ.prototype.stringRep=function(){return null};cQ.prototype.tag=function(){return"b"};cQ.prototype.rep=function(a){return a.toString("base64")};cQ.prototype.stringRep=function(){return null};dQ.prototype.tag=function(){return"b"}; dQ.prototype.rep=function(a){for(var b,c=0,d=a.length,e="",f;c<d;)f=a.subarray(c,Math.min(c+32768,d)),e+=String.fromCharCode.apply(null,f),c+=32768;if("undefined"!=typeof btoa)b=btoa(e);else{a=String(e);d=0;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d";for(f="";a.charAt(d|0)||(e="\x3d",d%1);f+=e.charAt(63&b>>8-d%1*8)){c=a.charCodeAt(d+=.75);if(255<c)throw Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");b=b<<8|c}b=f}return b}; dQ.prototype.stringRep=function(){return null};eQ.prototype.get=function(a){a="string"===typeof a?this.jc[a]:this.jc[nxa(a)];return null!=a?a:this.jc["default"]};eQ.prototype.get=eQ.prototype.get;eQ.prototype.set=function(a,b){var c;if(c="string"===typeof a)a:{switch(a){case "null":case "string":case "boolean":case "number":case "array":case "map":c=!1;break a}c=!0}c?this.jc[a]=b:this.jc[nxa(a)]=b};jQ.prototype.Pj=function(){return this.Bf};jQ.prototype.marshaller=jQ.prototype.Pj; jQ.prototype.write=function(a,b){var c=b||{};b=c.asMapKey||!1;var d=this.Bf.lg?!1:this.cache;if(!1===c.marshalTop)a=hQ(this.Bf,a,b,d);else{c=this.Bf;var e=JSON,f=e.stringify,g=hQ;var m=fQ(c,a)||(c.Wf?c.Wf(a,c.jc):null);if(null!=m)a=1===m.tag(a).length?uP("'",a):a;else throw b=(null==a?null:a.constructor).name,d=Error("Cannot write "+b),d.data={Da:a,type:b},d;a=f.call(e,g(c,a,b,d))}null!=this.cache&&this.cache.clear();return a};jQ.prototype.write=jQ.prototype.write; jQ.prototype.register=function(a,b){this.Bf.jc.set(a,b)};jQ.prototype.register=jQ.prototype.register;var $xa={},aya={},GQ;$APP.bl.prototype.R=function(a,b){return b instanceof $APP.bl?this.ge===b.ge:b instanceof yP?this.ge===b.toString():!1};$APP.bl.prototype.Rd=$APP.Cd;$APP.bl.prototype.rd=function(a,b){if(b instanceof $APP.bl||b instanceof yP)return $APP.ff(this.toString(),b.toString());throw Error(["Cannot compare ",$APP.p.h(this)," to ",$APP.p.h(b)].join(""));};yP.prototype.Rd=$APP.Cd; yP.prototype.rd=function(a,b){if(b instanceof $APP.bl||b instanceof yP)return $APP.ff(this.toString(),b.toString());throw Error(["Cannot compare ",$APP.p.h(this)," to ",$APP.p.h(b)].join(""));};$APP.qa.prototype.R=function(a,b){return this.equiv(b)};yP.prototype.R=function(a,b){return b instanceof $APP.bl?b.R(null,this):this.equiv(b)};tP.prototype.R=function(a,b){return this.equiv(b)};$APP.qa.prototype.Hf=$APP.Cd;$APP.qa.prototype.Y=function(){return pP(this)};yP.prototype.Hf=$APP.Cd; yP.prototype.Y=function(){return $APP.Dd(this.toString())};tP.prototype.Hf=$APP.Cd;tP.prototype.Y=function(){return pP(this)};yP.prototype.vh=$APP.Cd;yP.prototype.Ia=$APP.Cd;yP.prototype.V=function(a,b){return $APP.Qc(b,['#uuid "',$APP.p.h(this.toString()),'"'].join(""))};kQ.prototype.init=function(){return $APP.Yc($APP.ah)};kQ.prototype.add=function(a,b,c){return $APP.Li.j(a,b,c)};kQ.prototype.finalize=function(a){return $APP.$c(a)}; kQ.prototype.fromArray=function(a){return $APP.Hi.j?$APP.Hi.j(a,!0,!0):$APP.Hi.call(null,a,!0,!0)};lQ.prototype.init=function(){return $APP.Yc($APP.Xh)};lQ.prototype.add=function(a,b){return $APP.Wh.g(a,b)};lQ.prototype.finalize=function(a){return $APP.$c(a)};lQ.prototype.fromArray=function(a){return $APP.hi.g?$APP.hi.g(a,!0):$APP.hi.call(null,a,!0)}; $APP.HQ=function HQ(a){switch(arguments.length){case 1:return HQ.h(arguments[0]);case 2:return HQ.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.p.h(arguments.length)].join(""));}};$APP.HQ.h=function(a){return $APP.HQ.g(a,null)}; $APP.HQ.g=function(a,b){return txa($APP.Hj(a),vxa({handlers:$APP.Ow($APP.Hm.l($APP.C([new $APP.k(null,6,["$",function(c){return $APP.ok.h(c)},":",function(c){return $APP.fk.h(c)},"set",function(c){return $APP.Ji.g($APP.Cj,c)},"list",function(c){return $APP.Ji.g($APP.Qd,c.reverse())},"cmap",function(c){for(var d=0,e=$APP.Yc($APP.ah);;)if(d<c.length){var f=d+2;e=$APP.Li.j(e,c[d],c[d+1]);d=f}else return $APP.$c(e)},"with-meta",function(c){return $APP.Ce(c[0],c[1])}],null),$APP.Im.g($APP.BQ.h(b),$APP.Gn)]))), defaultHandler:$APP.Gn.h($APP.BQ.h(b)),mapBuilder:new kQ,arrayBuilder:new lQ,preferStrings:!1,preferBuffers:!1},$APP.Ow($APP.Ht($APP.Im.g(b,$APP.BQ),new $APP.k(null,4,[Nxa,Cxa,Jxa,Dxa,Lxa,Exa,Pxa,Wxa],null)))))};$APP.HQ.B=2;nQ.prototype.tag=function(){return":"};nQ.prototype.rep=function(a){return a.S};nQ.prototype.stringRep=function(a){return a.S};oQ.prototype.tag=function(){return"$"};oQ.prototype.rep=function(a){return a.Oc};oQ.prototype.stringRep=function(a){return a.Oc}; $APP.pQ.prototype.tag=function(){return"list"};$APP.pQ.prototype.rep=function(a){var b=[];a=$APP.u(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.ea(null,e);b.push(f);e+=1}else if(a=$APP.u(a))c=a,$APP.Pe(c)?(a=$APP.hd(c),e=$APP.id(c),c=a,d=$APP.me(a),a=e):(a=$APP.v(c),b.push(a),a=$APP.y(c),c=null,d=0),e=0;else break;return uP("array",b)};$APP.pQ.prototype.stringRep=function(){return null};qQ.prototype.tag=function(){return"map"};qQ.prototype.rep=function(a){return a};qQ.prototype.stringRep=function(){return null}; rQ.prototype.tag=function(){return"set"};rQ.prototype.rep=function(a){var b=[];a=$APP.u(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.ea(null,e);b.push(f);e+=1}else if(a=$APP.u(a))c=a,$APP.Pe(c)?(a=$APP.hd(c),e=$APP.id(c),c=a,d=$APP.me(a),a=e):(a=$APP.v(c),b.push(a),a=$APP.y(c),c=null,d=0),e=0;else break;return uP("array",b)};rQ.prototype.stringRep=function(){return null};sQ.prototype.tag=function(){return"array"}; sQ.prototype.rep=function(a){var b=[];a=$APP.u(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.ea(null,e);b.push(f);e+=1}else if(a=$APP.u(a))c=a,$APP.Pe(c)?(a=$APP.hd(c),e=$APP.id(c),c=a,d=$APP.me(a),a=e):(a=$APP.v(c),b.push(a),a=$APP.y(c),c=null,d=0),e=0;else break;return b};sQ.prototype.stringRep=function(){return null};tQ.prototype.tag=function(){return"u"};tQ.prototype.rep=function(a){return a.ge};tQ.prototype.stringRep=function(a){return this.rep(a)};uQ.prototype.tag=function(){return"with-meta"}; uQ.prototype.rep=function(a){return uP("array",[a.value,a.K])};uQ.prototype.stringRep=function(){return null};$APP.IQ=function IQ(a){switch(arguments.length){case 1:return IQ.h(arguments[0]);case 2:return IQ.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.p.h(arguments.length)].join(""));}};$APP.IQ.h=function(a){return $APP.IQ.g(a,null)}; $APP.IQ.g=function(a,b){var c=new $APP.pQ,d=new qQ,e=new rQ,f=new sQ,g=$APP.Hm.l($APP.C([$APP.kj([$APP.jj,$APP.xg,$APP.k,$APP.aj,$APP.yi,$APP.Nd,$APP.G,$APP.qj,$APP.tg,$APP.Hg,$APP.ri,$APP.xi,$APP.ej,$APP.vj,wxa,$APP.Fi,$APP.J,$APP.E,$APP.qe,$APP.Bj,$APP.rj,$APP.tj,$APP.ni,$APP.Ej,$APP.Mg,$APP.t,$APP.bl,$APP.Oj,$APP.nj,$APP.pj],[d,c,d,c,c,c,new nQ,f,c,c,f,c,c,c,new uQ,c,f,c,c,e,d,c,c,e,c,new oQ,new tQ,c,c,f]),"undefined"!==typeof $APP.dh&&"undefined"!==typeof $APP.eh&&"undefined"!==typeof $APP.uk? $APP.$g([$APP.uk,c]):null,"undefined"!==typeof $APP.dh&&"undefined"!==typeof $APP.eh&&"undefined"!==typeof $APP.Ph?$APP.$g([$APP.Ph,c]):null,"undefined"!==typeof $APP.dh&&"undefined"!==typeof $APP.eh&&"undefined"!==typeof $APP.df?$APP.$g([$APP.df,f]):null,$APP.BQ.h(b)]));return uxa($APP.Hj(a),vxa({objectBuilder:function(m,r,n){return $APP.tf(function(w,x,z){w.push(r.h?r.h(x):r.call(null,x),n.h?n.h(z):n.call(null,z));return w},["^ "],m)},handlers:function(){var m=gP(g);m.forEach=function(r){for(var n= $APP.u(this),w=null,x=0,z=0;;)if(z<x){var F=w.ea(null,z),M=$APP.B.j(F,0,null);F=$APP.B.j(F,1,null);$APP.A.g($APP.Gn,M)?r.g?r.g(F,"default"):r.call(null,F,"default"):r.g?r.g(F,M):r.call(null,F,M);z+=1}else if(n=$APP.u(n))$APP.Pe(n)?(w=$APP.hd(n),n=$APP.id(n),M=w,x=$APP.me(w),w=M):(w=$APP.v(n),M=$APP.B.j(w,0,null),F=$APP.B.j(w,1,null),$APP.A.g($APP.Gn,M)?r.g?r.g(F,"default"):r.call(null,F,"default"):r.g?r.g(F,M):r.call(null,F,M),n=$APP.y(n),w=null,x=0),z=0;else return null};return m}(),unpack:function(m){return m instanceof $APP.k?m.H:!1}},$APP.Ow($APP.Im.g(b,$APP.BQ))))};$APP.IQ.B=2;$APP.JQ=function JQ(a){switch(arguments.length){case 2:return JQ.g(arguments[0],arguments[1]);case 3:return JQ.j(arguments[0],arguments[1],arguments[2]);case 4:return JQ.G(arguments[0],arguments[1],arguments[2],arguments[3]);default:throw Error(["Invalid arity: ",$APP.p.h(arguments.length)].join(""));}};$APP.JQ.g=function(a,b){return $APP.JQ.G(a,b,null,null)};$APP.JQ.j=function(a,b,c){return $APP.JQ.G(a,b,c,null)}; $APP.JQ.G=function(a,b,c,d){a=$APP.Ae(a)?a:$APP.Bh(a);b=$APP.Ae(b)?b:$APP.Bh(b);c=$APP.Ae(c)?c:$APP.Bh(c);d=$APP.Ae(d)?d:$APP.Bh(d);if("undefined"===typeof $xa||"undefined"===typeof aya||"undefined"===typeof GQ)GQ=function(e,f,g,m,r){this.Yg=e;this.Ug=f;this.jg=g;this.mg=m;this.Sj=r;this.I=393216;this.M=0},GQ.prototype.X=function(e,f){return new GQ(this.Yg,this.Ug,this.jg,this.mg,f)},GQ.prototype.W=function(){return this.Sj},GQ.prototype.tag=function(e){return this.Yg.h?this.Yg.h(e):this.Yg.call(null, e)},GQ.prototype.rep=function(e){return this.Ug.h?this.Ug.h(e):this.Ug.call(null,e)},GQ.prototype.stringRep=function(e){return $APP.l(this.jg)?this.jg.h?this.jg.h(e):this.jg.call(null,e):null},GQ.prototype.getVerboseHandler=function(){return $APP.l(this.mg)?this.mg.C?this.mg.C():this.mg.call(null):null},GQ.Jc=!0,GQ.rc="cognitect.transit/t_cognitect$transit33331",GQ.Qc=function(e){return $APP.Qc(e,"cognitect.transit/t_cognitect$transit33331")};return new GQ(a,b,c,d,$APP.ah)};$APP.JQ.B=4;var KQ=$APP.mu($APP.DG),bya=$APP.kj([Ixa,Hxa,Yxa,$APP.Dz,zxa,xxa,Xxa,Oxa,$APP.fy,$APP.Ix],[function(){var a=new $APP.Ld(function(){return $APP.JQ},Qxa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.NI,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.DG,Ixa,"cognitect/transit.cljs",20,new $APP.k(null,6,[$APP.ky,!1,$APP.Xs,4,$APP.$K,4,$APP.qK,new $APP.J(null,3,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[CQ,DQ],null),new $APP.J(null,3,5,$APP.K,[CQ,DQ,AQ],null),new $APP.J(null,4,5,$APP.K,[CQ,DQ,AQ,EQ],null)], null),$APP.Y,$APP.N(new $APP.J(null,2,5,$APP.K,[CQ,DQ],null),new $APP.J(null,3,5,$APP.K,[CQ,DQ,AQ],null),new $APP.J(null,4,5,$APP.K,[CQ,DQ,AQ,EQ],null)),$APP.tD,$APP.N(null,null,null)],null),1,309,309,$APP.N(new $APP.J(null,2,5,$APP.K,[CQ,DQ],null),new $APP.J(null,3,5,$APP.K,[CQ,DQ,AQ],null),new $APP.J(null,4,5,$APP.K,[CQ,DQ,AQ,EQ],null)),"Creates a transit write handler whose tag, rep,\n stringRep, and verboseWriteHandler methods\n invoke the provided fns.",$APP.l($APP.JQ)?$APP.JQ.J:null])), b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a=new $APP.Ld(function(){return xQ},Uxa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.DG,Hxa,"cognitect/transit.cljs",19,1,332,332,$APP.N(new $APP.J(null,2,5,$APP.K,[$APP.tG,Fxa],null)),"Construct a tagged value. tag must be a string and rep can\n be any transit encodeable value.", $APP.l(xQ)?xQ.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a=new $APP.Ld(function(){return $APP.vQ},Rxa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.DG,Yxa,"cognitect/transit.cljs",12,1,294,294,$APP.N(new $APP.J(null,2,5,$APP.K,[Vxa, $APP.aI],null)),"Encode an object into a transit string given a transit writer.",$APP.l($APP.vQ)?$APP.vQ.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a=new $APP.Ld(function(){return $APP.mQ},Txa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD], [$APP.DG,$APP.Dz,"cognitect/transit.cljs",11,1,146,146,$APP.N(new $APP.J(null,2,5,$APP.K,[$APP.bI,$APP.cG],null)),"Read a transit encoded string into ClojureScript values given a\n transit reader.",$APP.l($APP.mQ)?$APP.mQ.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a=new $APP.Ld(function(){return $APP.pQ}, Gxa,new $APP.k(null,8,[$APP.U,$APP.DG,$APP.Z,null,$APP.Pm,"cognitect/transit.cljs",$APP.Qm,164,$APP.In,19,$APP.R,zxa,$APP.AD,$APP.l($APP.pQ)?$APP.pQ.J:null,$APP.Y,$APP.Qd],null)),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a=new $APP.Ld(function(){return zQ},Bxa,$APP.kj([$APP.U,$APP.R,$APP.Pm, $APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.DG,xxa,"cognitect/transit.cljs",17,1,432,432,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.hI],null)),"For :transform. Will write any metadata present on the value.",$APP.l(zQ)?zQ.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a= new $APP.Ld(function(){return yQ},Axa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.DG,Xxa,"cognitect/transit.cljs",14,1,343,343,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.eI],null)),"Construct a transit integer value. Returns JavaScript number if\n in the 53bit integer range, a goog.math.Long instance if above. s\n may be a string or a JavaScript number.",$APP.l(yQ)?yQ.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null, 4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a=new $APP.Ld(function(){return wQ},Mxa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.DG,Oxa,"cognitect/transit.cljs",19,1,299,299,$APP.N(new $APP.J(null,1,5,$APP.K,[yxa],null)),"Construct a read handler. Implemented as identity, exists primarily\n for API compatiblity with transit-clj", $APP.l(wQ)?wQ.J:null])),b=$APP.q(a);a=$APP.De(a);var c=$APP.l(null)?null:$APP.R.h(a),d=new $APP.k(null,4,[$APP.U,KQ,$APP.R,c,$APP.Y,$APP.Y.h(a),$APP.Z,$APP.Z.h(a)],null);return $APP.l($APP.ar.h(a))?$APP.iu(c,b,d):$APP.l($APP.rq.h(a))?$APP.ju(c,b,d):$APP.hu(c,b,d)}(),function(){var a=new $APP.Ld(function(){return $APP.HQ},Kxa,$APP.kj([$APP.U,$APP.R,$APP.Pm,$APP.Jx,$APP.NI,$APP.In,$APP.Qm,$APP.qM,$APP.Y,$APP.Z,$APP.AD],[$APP.DG,$APP.fy,"cognitect/transit.cljs",13,new $APP.k(null,6,[$APP.ky,!1,$APP.Xs, 2,$APP.$K,2,$APP.qK,new $APP.J(null,2,5,$APP.K,[new $APP.J(null,1,5,$APP.K,[$APP.FC],null),new $APP.J(null,2,5,$APP.K,[$APP.FC,$APP.cF],null)],null),$APP.Y,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.FC],null),new $APP.J(null,2,5,$APP.K,[$APP.FC,$APP.cF],null)),$APP.tD,$APP.N(null,null)],null),1,106,106,$APP.N(new $APP.J(null,1,5,$APP.K,[$APP.FC],null),new $APP.J(null,2,5,$APP.K,[$APP.FC,$APP.cF],null)),"Return a tran