(function(definition){if(typeof exports==="object"){module.exports=definition();}else if(typeof define==="function"&&define.amd){define(definition);}else{splint=definition();}})(function(){return function(){if(typeof Math.imul == "undefined" || (Math.imul(0xffffffff,5) == 0)) { Math.imul = function (a, b) { var ah = (a >>> 16) & 0xffff; var al = a & 0xffff; var bh = (b >>> 16) & 0xffff; var bl = b & 0xffff; // the shift by 0 fixes the sign on the high part // the final |0 converts the unsigned value into a signed value return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0)|0); } } var g,aa=this; function m(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"== b&&"undefined"==typeof a.call)return"object";return b}var ba="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function n(a,b){var c=a.split("."),d=aa;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b};function da(a,b){for(var c in a)b.call(void 0,a[c],c,a)};function ea(a,b){null!=a&&this.append.apply(this,arguments)}g=ea.prototype;g.bb="";g.set=function(a){this.bb=""+a};g.append=function(a,b,c){this.bb+=a;if(null!=b)for(var d=1;db?1:a>>16&65535)*d+c*(b>>>16&65535)<<16>>>0)|0};function hc(a){a=gc(a|0,-862048943);return gc(a<<15|a>>>-15,461845907)}function ic(a,b){var c=(a|0)^(b|0);return gc(c<<13|c>>>-13,5)+-430675100|0}function jc(a,b){var c=(a|0)^b,c=gc(c^c>>>16,-2048144789),c=gc(c^c>>>13,-1028477387);return c^c>>>16} function kc(a){var b;a:{b=1;for(var c=0;;)if(b>2)}function ya(a,b){return b instanceof a} function uc(a,b){if(a.Ga===b.Ga)return 0;var c=Ba(a.la);if(p(c?b.la:c))return-1;if(p(a.la)){if(Ba(b.la))return 1;c=ga(a.la,b.la);return 0===c?ga(a.name,b.name):c}return ga(a.name,b.name)}F;function mc(a,b,c,d,e){this.la=a;this.name=b;this.Ga=c;this.qb=d;this.ma=e;this.o=2154168321;this.C=4096}g=mc.prototype;g.toString=function(){return this.Ga};g.equiv=function(a){return this.B(null,a)};g.B=function(a,b){return b instanceof mc?this.Ga===b.Ga:!1}; g.call=function(){function a(a,b,c){return F.c?F.c(b,this,c):F.call(null,b,this,c)}function b(a,b){return F.a?F.a(b,this):F.call(null,b,this)}var c=null,c=function(c,e,f){switch(arguments.length){case 2:return b.call(this,0,e);case 3:return a.call(this,0,e,f)}throw Error("Invalid arity: "+arguments.length);};c.a=b;c.c=a;return c}();g.apply=function(a,b){return this.call.apply(this,[this].concat(Fa(b)))};g.b=function(a){return F.a?F.a(a,this):F.call(null,a,this)}; g.a=function(a,b){return F.c?F.c(a,this,b):F.call(null,a,this,b)};g.M=function(){return this.ma};g.O=function(a,b){return new mc(this.la,this.name,this.Ga,this.qb,b)};g.L=function(){var a=this.qb;return null!=a?a:this.qb=a=tc(kc(this.name),rc(this.la))};g.I=function(a,b){return Kb(b,this.Ga)}; var vc=function vc(b){for(var c=[],d=arguments.length,e=0;;)if(ea?0:a}; g.jb=function(){var a=Ha(this);return 0d)c=1;else if(0===c)c=0;else a:for(d=0;;){var e=nc(U.a(a,d),U.a(b,d));if(0===e&&d+1b};Sd.f=function(a,b,c){for(;;)if(a>b)if(O(c))a=b,b=L(c),c=O(c);else return b>L(c);else return!1};Sd.u=function(a){var b=L(a),c=O(a);a=L(c);c=O(c);return Sd.f(b,a,c)};Sd.i=2; var Td=function Td(b){for(var c=[],d=arguments.length,e=0;;)if(e=b};Td.f=function(a,b,c){for(;;)if(a>=b)if(O(c))a=b,b=L(c),c=O(c);else return b>=L(c);else return!1};Td.u=function(a){var b=L(a),c=O(a);a=L(c);c=O(c);return Td.f(b,a,c)};Td.i=2;Ud; function Ud(a,b){return(a%b+b)%b}function Vd(a,b){var c=(a-a%b)/b;return 0<=c?Math.floor(c):Math.ceil(c)}function Wd(a){a-=a>>1&1431655765;a=(a&858993459)+(a>>2&858993459);return 16843009*(a+(a>>4)&252645135)>>24}function Xd(a){var b=1;for(a=K(a);;)if(a&&0a?0:a-1>>>5<<5}function Of(a,b,c){for(;;){if(0===b)return c;var d=Lf(a);d.g[0]=c;c=d;b-=5}}var Pf=function Pf(b,c,d,e){var f=Mf(d),h=b.j-1>>>c&31;5===c?f.g[h]=e:(d=d.g[h],b=null!=d?Pf(b,c-5,d,e):Of(null,c-5,e),f.g[h]=b);return f}; function Qf(a,b){throw Error([w("No item "),w(a),w(" in vector of length "),w(b)].join(""));}function Rf(a,b){if(b>=Nf(a))return a.ga;for(var c=a.root,d=a.shift;;)if(0>>d&31],d=e;else return c.g}function Sf(a,b){return 0<=b&&b>>c&31;b=Tf(b,c-5,d.g[k],e,f);h.g[k]=b}return h},Uf=function Uf(b,c,d){var e=b.j-2>>>c&31;if(5=this.j)return new J(this.ga,0);var a;a:{a=this.root;for(var b=this.shift;;)if(0this.j-Nf(this)){for(var c=this.ga.length,d=Array(c+1),e=0;;)if(e>>5>1<b)return new Y(null,b,5,Ce,a,null);for(var c=32,d=(new Y(null,32,5,Ce,a.slice(0,32),null)).rb(null);;)if(cb||this.end<=this.start+b?Qf(b,this.end-this.start):C.a(this.ta,this.start+b)};g.na=function(a,b,c){return 0>b||this.end<=this.start+b?c:C.c(this.ta,this.start+b,c)}; g.lb=function(a,b,c){var d=this.start+b;a=this.l;c=V.c(this.ta,d,c);b=this.start;var e=this.end,d=d+1,d=e>d?e:d;return eg.D?eg.D(a,c,b,d,null):eg.call(null,a,c,b,d,null)};g.M=function(){return this.l};g.U=function(){return this.end-this.start};g.Xa=function(){return C.a(this.ta,this.end-1)};g.Ya=function(){if(this.start===this.end)throw Error("Can't pop empty vector");var a=this.l,b=this.ta,c=this.start,d=this.end-1;return eg.D?eg.D(a,b,c,d,null):eg.call(null,a,b,c,d,null)}; g.jb=function(){return this.start!==this.end?new Vc(this,this.end-this.start-1,null):null};g.L=function(){var a=this.w;return null!=a?a:this.w=a=Dc(this)};g.B=function(a,b){return Ic(this,b)};g.S=function(){return Jc(cd,this.l)};g.Z=function(a,b){return Oc(this,b)};g.$=function(a,b,c){return Pc(this,b,c)};g.Ja=function(a,b,c){if("number"===typeof b)return kb(this,b,c);throw Error("Subvec's key for assoc must be a number.");}; g.N=function(){var a=this;return function(b){return function d(e){return e===a.end?null:Q(C.a(a.ta,e),new X(null,function(){return function(){return d(e+1)}}(b),null,null))}}(this)(a.start)};g.O=function(a,b){return eg.D?eg.D(b,this.ta,this.start,this.end,this.w):eg.call(null,b,this.ta,this.start,this.end,this.w)};g.R=function(a,b){var c=this.l,d=kb(this.ta,this.end,b),e=this.start,f=this.end+1;return eg.D?eg.D(c,d,e,f,null):eg.call(null,c,d,e,f,null)}; g.call=function(){var a=null,a=function(a,c,d){switch(arguments.length){case 2:return this.K(null,c);case 3:return this.na(null,c,d)}throw Error("Invalid arity: "+arguments.length);};a.a=function(a,c){return this.K(null,c)};a.c=function(a,c,d){return this.na(null,c,d)};return a}();g.apply=function(a,b){return this.call.apply(this,[this].concat(Fa(b)))};g.b=function(a){return this.K(null,a)};g.a=function(a,b){return this.na(null,a,b)};fg.prototype[Ea]=function(){return zc(this)}; function eg(a,b,c,d,e){for(;;)if(b instanceof fg)c=b.start+c,d=b.start+d,b=b.ta;else{var f=T(b);if(0>c||0>d||c>f||d>f)throw Error("Index out of bounds");return new fg(a,b,c,d,e)}}var dg=function dg(b){for(var c=[],d=arguments.length,e=0;;)if(e>>c&31;if(5===c)b=e;else{var h=d.g[f];b=null!=h?hg(b,c-5,h,e):Of(b.root.T,c-5,e)}d.g[f]=b;return d};function Yf(a,b,c,d){this.j=a;this.shift=b;this.root=c;this.ga=d;this.C=88;this.o=275}g=Yf.prototype; g.kb=function(a,b){if(this.root.T){if(32>this.j-Nf(this))this.ga[this.j&31]=b;else{var c=new Kf(this.root.T,this.ga),d=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null];d[0]=b;this.ga=d;if(this.j>>>5>1<>>a&31,q=f(a-5,l.g[t]);l.g[t]=q}return l}}(this).call(null,d.shift,d.root),d.root=a),this;if(b===d.j)return Pb(this,c);throw Error([w("Index "),w(b),w(" out of bounds for TransientVector of length"),w(d.j)].join(""));}throw Error("assoc! after persistent!");}; g.U=function(){if(this.root.T)return this.j;throw Error("count after persistent!");};g.K=function(a,b){if(this.root.T)return Sf(this,b)[b&31];throw Error("nth after persistent!");};g.na=function(a,b,c){return 0<=b&&b=c)return new qa(this.l,this.j-1,d,null);D.a(b,this.g[e])||(d[f]=this.g[e],d[f+1]=this.g[e+1],f+=2);e+=2}}else return this}; g.Ja=function(a,b,c){a=tg(this.g,b);if(-1===a){if(this.jb?4:2*(b+1));zd(this.g,0,c,0,2*b);return new Pg(a,this.W,c)};g.Gb=function(){return Fg.b?Fg.b(this.g):Fg.call(null,this.g)};g.nb=function(a,b){return Mg(this.g,a,b)};g.fb=function(a,b,c,d){var e=1<<(b>>>a&31);if(0===(this.W&e))return d;var f=Wd(this.W&e-1),e=this.g[2*f],f=this.g[2*f+1];return null==e?f.fb(a+5,b,c,d):Ig(c,e)?f:d}; g.za=function(a,b,c,d,e,f){var h=1<<(c>>>b&31),k=Wd(this.W&h-1);if(0===(this.W&h)){var l=Wd(this.W);if(2*l>>b&31]=Qg.za(a,b+5,c,d,e,f);for(e=d=0;;)if(32>d)0!== (this.W>>>d&1)&&(k[d]=null!=this.g[e]?Qg.za(a,b+5,sc(this.g[e]),this.g[e],this.g[e+1],f):this.g[e+1],e+=2),d+=1;else break;return new Ng(a,l+1,k)}b=Array(2*(l+4));zd(this.g,0,b,0,2*k);b[2*k]=d;b[2*k+1]=e;zd(this.g,2*k,b,2*(k+1),2*(l-k));f.A=!0;a=this.mb(a);a.g=b;a.W|=h;return a}l=this.g[2*k];h=this.g[2*k+1];if(null==l)return l=h.za(a,b+5,c,d,e,f),l===h?this:Lg(this,a,2*k+1,l);if(Ig(d,l))return e===h?this:Lg(this,a,2*k+1,e);f.A=!0;f=b+5;d=Hg.sa?Hg.sa(a,f,l,h,c,d,e):Hg.call(null,a,f,l,h,c,d,e);e=2* k;k=2*k+1;a=this.mb(a);a.g[e]=null;a.g[k]=d;return a}; g.ya=function(a,b,c,d,e){var f=1<<(b>>>a&31),h=Wd(this.W&f-1);if(0===(this.W&f)){var k=Wd(this.W);if(16<=k){h=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null];h[b>>>a&31]=Qg.ya(a+5,b,c,d,e);for(d=c=0;;)if(32>c)0!==(this.W>>>c&1)&&(h[c]=null!=this.g[d]?Qg.ya(a+5,sc(this.g[d]),this.g[d],this.g[d+1],e):this.g[d+1],d+=2),c+=1;else break;return new Ng(null,k+1,h)}a=Array(2*(k+1));zd(this.g, 0,a,0,2*h);a[2*h]=c;a[2*h+1]=d;zd(this.g,2*h,a,2*(h+1),2*(k-h));e.A=!0;return new Pg(null,this.W|f,a)}var l=this.g[2*h],f=this.g[2*h+1];if(null==l)return k=f.ya(a+5,b,c,d,e),k===f?this:new Pg(null,this.W,Jg(this.g,2*h+1,k));if(Ig(c,l))return d===f?this:new Pg(null,this.W,Jg(this.g,2*h+1,d));e.A=!0;e=this.W;k=this.g;a+=5;a=Hg.da?Hg.da(a,l,f,b,c,d):Hg.call(null,a,l,f,b,c,d);c=2*h;h=2*h+1;d=Fa(k);d[c]=null;d[h]=a;return new Pg(null,e,d)}; g.Hb=function(a,b,c){var d=1<<(b>>>a&31);if(0===(this.W&d))return this;var e=Wd(this.W&d-1),f=this.g[2*e],h=this.g[2*e+1];return null==f?(a=h.Hb(a+5,b,c),a===h?this:null!=a?new Pg(null,this.W,Jg(this.g,2*e+1,a)):this.W===d?null:new Pg(null,this.W^d,Kg(this.g,e))):Ig(c,f)?new Pg(null,this.W^d,Kg(this.g,e)):this};g.Da=!0;g.xa=function(){return new Og(this.g,0,null,null)};var Qg=new Pg(null,0,[]);function Rg(a,b,c){this.g=a;this.s=b;this.Aa=c} Rg.prototype.V=function(){for(var a=this.g.length;;){if(null!=this.Aa&&this.Aa.V())return!0;if(this.s>>a&31];return null!=e?e.fb(a+5,b,c,d):d};g.za=function(a,b,c,d,e,f){var h=c>>>b&31,k=this.g[h];if(null==k)return a=Lg(this,a,h,Qg.za(a,b+5,c,d,e,f)),a.j+=1,a;b=k.za(a,b+5,c,d,e,f);return b===k?this:Lg(this,a,h,b)}; g.ya=function(a,b,c,d,e){var f=b>>>a&31,h=this.g[f];if(null==h)return new Ng(null,this.j+1,Jg(this.g,f,Qg.ya(a+5,b,c,d,e)));a=h.ya(a+5,b,c,d,e);return a===h?this:new Ng(null,this.j,Jg(this.g,f,a))}; g.Hb=function(a,b,c){var d=b>>>a&31,e=this.g[d];if(null!=e){a=e.Hb(a+5,b,c);if(a===e)d=this;else if(null==a)if(8>=this.j)a:{e=this.g;a=e.length;b=Array(2*(this.j-1));c=0;for(var f=1,h=0;;)if(ca?d:Ig(c,this.g[a])?this.g[a+1]:d}; g.za=function(a,b,c,d,e,f){if(c===this.Za){b=Sg(this.g,this.j,d);if(-1===b){if(this.g.length>2*this.j)return b=2*this.j,c=2*this.j+1,a=this.mb(a),a.g[b]=d,a.g[c]=e,f.A=!0,a.j+=1,a;c=this.g.length;b=Array(c+2);zd(this.g,0,b,0,c);b[c]=d;b[c+1]=e;f.A=!0;d=this.j+1;a===this.T?(this.g=b,this.j=d,a=this):a=new Tg(this.T,this.Za,d,b);return a}return this.g[b+1]===e?this:Lg(this,a,b+1,e)}return(new Pg(a,1<<(this.Za>>>b&31),[null,this,null,null])).za(a,b,c,d,e,f)}; g.ya=function(a,b,c,d,e){return b===this.Za?(a=Sg(this.g,this.j,c),-1===a?(a=2*this.j,b=Array(a+2),zd(this.g,0,b,0,a),b[a]=c,b[a+1]=d,e.A=!0,new Tg(null,this.Za,this.j+1,b)):D.a(this.g[a],d)?this:new Tg(null,this.Za,this.j,Jg(this.g,a+1,d))):(new Pg(null,1<<(this.Za>>>a&31),[null,this])).ya(a,b,c,d,e)};g.Hb=function(a,b,c){a=Sg(this.g,this.j,c);return-1===a?this:1===this.j?null:new Tg(null,this.Za,this.j-1,Kg(this.g,Vd(a,2)))};g.Da=!0;g.xa=function(){return new Og(this.g,0,null,null)}; var Hg=function Hg(b){for(var c=[],d=arguments.length,e=0;;)if(ethis.j?T(O(this))+1:this.j};g.L=function(){var a=this.w;return null!=a?a:this.w=a=Dc(this)}; g.B=function(a,b){return Ic(this,b)};g.S=function(){return Jc(N,this.l)};g.Z=function(a,b){return $c.a(b,this)};g.$=function(a,b,c){return $c.c(b,c,this)};g.X=function(){return kd(this.stack)};g.ca=function(){var a=L(this.stack),a=Yg(this.Mb?a.right:a.left,O(this.stack),this.Mb);return null!=a?new Zg(null,a,this.Mb,this.j-1,null):N};g.N=function(){return this};g.O=function(a,b){return new Zg(b,this.stack,this.Mb,this.j,this.w)};g.R=function(a,b){return Q(b,this)};Zg.prototype[Ea]=function(){return zc(this)}; function $g(a,b,c){return new Zg(null,Yg(a,null,b),b,c,null)}Z;ah;function bh(a,b,c,d){return c instanceof Z?c.left instanceof Z?new Z(c.key,c.A,c.left.Ia(),new ah(a,b,c.right,d,null),null):c.right instanceof Z?new Z(c.right.key,c.right.A,new ah(c.key,c.A,c.left,c.right.left,null),new ah(a,b,c.right.right,d,null),null):new ah(a,b,c,d,null):new ah(a,b,c,d,null)} function ch(a,b,c,d){return d instanceof Z?d.right instanceof Z?new Z(d.key,d.A,new ah(a,b,c,d.left,null),d.right.Ia(),null):d.left instanceof Z?new Z(d.left.key,d.left.A,new ah(a,b,c,d.left.left,null),new ah(d.key,d.A,d.left.right,d.right,null),null):new ah(a,b,c,d,null):new ah(a,b,c,d,null)} function dh(a,b,c,d){if(c instanceof Z)return new Z(a,b,c.Ia(),d,null);if(d instanceof ah)return ch(a,b,c,d.Jb());if(d instanceof Z&&d.left instanceof ah)return new Z(d.left.key,d.left.A,new ah(a,b,c,d.left.left,null),ch(d.key,d.A,d.left.right,d.right.Jb()),null);throw Error("red-black tree invariant violation");} var eh=function eh(b,c,d){d=null!=b.left?eh(b.left,c,d):d;if(Mc(d))return P.b?P.b(d):P.call(null,d);var e=b.key,f=b.A;d=c.c?c.c(d,e,f):c.call(null,d,e,f);if(Mc(d))return P.b?P.b(d):P.call(null,d);b=null!=b.right?eh(b.right,c,d):d;return Mc(b)?P.b?P.b(b):P.call(null,b):b};function ah(a,b,c,d,e){this.key=a;this.A=b;this.left=c;this.right=d;this.w=e;this.o=32402207;this.C=0}g=ah.prototype;g.jc=function(a){return a.lc(this)};g.Jb=function(){return new Z(this.key,this.A,this.left,this.right,null)}; g.Ia=function(){return this};g.ic=function(a){return a.kc(this)};g.replace=function(a,b,c,d){return new ah(a,b,c,d,null)};g.kc=function(a){return new ah(a.key,a.A,this,a.right,null)};g.lc=function(a){return new ah(a.key,a.A,a.left,this,null)};g.nb=function(a,b){return eh(this,a,b)};g.G=function(a,b){return C.c(this,b,null)};g.F=function(a,b,c){return C.c(this,b,c)};g.K=function(a,b){return 0===b?this.key:1===b?this.A:null};g.na=function(a,b,c){return 0===b?this.key:1===b?this.A:c}; g.lb=function(a,b,c){return(new Y(null,2,5,Ce,[this.key,this.A],null)).lb(null,b,c)};g.M=function(){return null};g.U=function(){return 2};g.Db=function(){return this.key};g.Eb=function(){return this.A};g.Xa=function(){return this.A};g.Ya=function(){return new Y(null,1,5,Ce,[this.key],null)};g.L=function(){var a=this.w;return null!=a?a:this.w=a=Dc(this)};g.B=function(a,b){return Ic(this,b)};g.S=function(){return cd};g.Z=function(a,b){return Oc(this,b)};g.$=function(a,b,c){return Pc(this,b,c)}; g.Ja=function(a,b,c){return V.c(new Y(null,2,5,Ce,[this.key,this.A],null),b,c)};g.N=function(){return Na(Na(N,this.A),this.key)};g.O=function(a,b){return Jc(new Y(null,2,5,Ce,[this.key,this.A],null),b)};g.R=function(a,b){return new Y(null,3,5,Ce,[this.key,this.A,b],null)}; g.call=function(){var a=null,a=function(a,c,d){switch(arguments.length){case 2:return this.G(null,c);case 3:return this.F(null,c,d)}throw Error("Invalid arity: "+arguments.length);};a.a=function(a,c){return this.G(null,c)};a.c=function(a,c,d){return this.F(null,c,d)};return a}();g.apply=function(a,b){return this.call.apply(this,[this].concat(Fa(b)))};g.b=function(a){return this.G(null,a)};g.a=function(a,b){return this.F(null,a,b)};ah.prototype[Ea]=function(){return zc(this)}; function Z(a,b,c,d,e){this.key=a;this.A=b;this.left=c;this.right=d;this.w=e;this.o=32402207;this.C=0}g=Z.prototype;g.jc=function(a){return new Z(this.key,this.A,this.left,a,null)};g.Jb=function(){throw Error("red-black tree invariant violation");};g.Ia=function(){return new ah(this.key,this.A,this.left,this.right,null)};g.ic=function(a){return new Z(this.key,this.A,a,this.right,null)};g.replace=function(a,b,c,d){return new Z(a,b,c,d,null)}; g.kc=function(a){return this.left instanceof Z?new Z(this.key,this.A,this.left.Ia(),new ah(a.key,a.A,this.right,a.right,null),null):this.right instanceof Z?new Z(this.right.key,this.right.A,new ah(this.key,this.A,this.left,this.right.left,null),new ah(a.key,a.A,this.right.right,a.right,null),null):new ah(a.key,a.A,this,a.right,null)}; g.lc=function(a){return this.right instanceof Z?new Z(this.key,this.A,new ah(a.key,a.A,a.left,this.left,null),this.right.Ia(),null):this.left instanceof Z?new Z(this.left.key,this.left.A,new ah(a.key,a.A,a.left,this.left.left,null),new ah(this.key,this.A,this.left.right,this.right,null),null):new ah(a.key,a.A,a.left,this,null)};g.nb=function(a,b){return eh(this,a,b)};g.G=function(a,b){return C.c(this,b,null)};g.F=function(a,b,c){return C.c(this,b,c)}; g.K=function(a,b){return 0===b?this.key:1===b?this.A:null};g.na=function(a,b,c){return 0===b?this.key:1===b?this.A:c};g.lb=function(a,b,c){return(new Y(null,2,5,Ce,[this.key,this.A],null)).lb(null,b,c)};g.M=function(){return null};g.U=function(){return 2};g.Db=function(){return this.key};g.Eb=function(){return this.A};g.Xa=function(){return this.A};g.Ya=function(){return new Y(null,1,5,Ce,[this.key],null)};g.L=function(){var a=this.w;return null!=a?a:this.w=a=Dc(this)}; g.B=function(a,b){return Ic(this,b)};g.S=function(){return cd};g.Z=function(a,b){return Oc(this,b)};g.$=function(a,b,c){return Pc(this,b,c)};g.Ja=function(a,b,c){return V.c(new Y(null,2,5,Ce,[this.key,this.A],null),b,c)};g.N=function(){return Na(Na(N,this.A),this.key)};g.O=function(a,b){return Jc(new Y(null,2,5,Ce,[this.key,this.A],null),b)};g.R=function(a,b){return new Y(null,3,5,Ce,[this.key,this.A,b],null)}; g.call=function(){var a=null,a=function(a,c,d){switch(arguments.length){case 2:return this.G(null,c);case 3:return this.F(null,c,d)}throw Error("Invalid arity: "+arguments.length);};a.a=function(a,c){return this.G(null,c)};a.c=function(a,c,d){return this.F(null,c,d)};return a}();g.apply=function(a,b){return this.call.apply(this,[this].concat(Fa(b)))};g.b=function(a){return this.G(null,a)};g.a=function(a,b){return this.F(null,a,b)};Z.prototype[Ea]=function(){return zc(this)}; var fh=function fh(b,c,d,e,f){if(null==c)return new Z(d,e,null,null,null);var h;h=c.key;h=b.a?b.a(d,h):b.call(null,d,h);if(0===h)return f[0]=c,null;if(0>h)return b=fh(b,c.left,d,e,f),null!=b?c.ic(b):null;b=fh(b,c.right,d,e,f);return null!=b?c.jc(b):null},gh=function gh(b,c){if(null==b)return c;if(null==c)return b;if(b instanceof Z){if(c instanceof Z){var d=gh(b.right,c.left);return d instanceof Z?new Z(d.key,d.A,new Z(b.key,b.A,b.left,d.left,null),new Z(c.key,c.A,d.right,c.right,null),null):new Z(b.key, b.A,b.left,new Z(c.key,c.A,d,c.right,null),null)}return new Z(b.key,b.A,b.left,gh(b.right,c),null)}if(c instanceof Z)return new Z(c.key,c.A,gh(b,c.left),c.right,null);d=gh(b.right,c.left);return d instanceof Z?new Z(d.key,d.A,new ah(b.key,b.A,b.left,d.left,null),new ah(c.key,c.A,d.right,c.right,null),null):dh(b.key,b.A,b.left,new ah(c.key,c.A,d,c.right,null))},hh=function hh(b,c,d,e){if(null!=c){var f;f=c.key;f=b.a?b.a(d,f):b.call(null,d,f);if(0===f)return e[0]=c,gh(c.left,c.right);if(0>f)return b= hh(b,c.left,d,e),null!=b||null!=e[0]?c.left instanceof ah?dh(c.key,c.A,b,c.right):new Z(c.key,c.A,b,c.right,null):null;b=hh(b,c.right,d,e);if(null!=b||null!=e[0])if(c.right instanceof ah)if(e=c.key,d=c.A,c=c.left,b instanceof Z)c=new Z(e,d,c,b.Ia(),null);else if(c instanceof ah)c=bh(e,d,c.Jb(),b);else if(c instanceof Z&&c.right instanceof ah)c=new Z(c.right.key,c.right.A,bh(c.key,c.A,c.left.Jb(),c.right.left),new ah(e,d,c.right.right,b,null),null);else throw Error("red-black tree invariant violation"); else c=new Z(c.key,c.A,c.left,b,null);else c=null;return c}return null},ih=function ih(b,c,d,e){var f=c.key,h=b.a?b.a(d,f):b.call(null,d,f);return 0===h?c.replace(f,e,c.left,c.right):0>h?c.replace(f,c.A,ih(b,c.left,d,e),c.right):c.replace(f,c.A,c.left,ih(b,c.right,d,e))};Zd;function jh(a,b,c,d,e){this.oa=a;this.Ca=b;this.j=c;this.l=d;this.w=e;this.o=418776847;this.C=8192}g=jh.prototype; g.forEach=function(a){for(var b=K(this),c=null,d=0,e=0;;)if(ed?c.left:c.right}else return null}g.has=function(a){return Ed(this,a)};g.G=function(a,b){return Va.c(this,b,null)};g.F=function(a,b,c){a=kh(this,b);return null!=a?a.A:c};g.sb=function(a,b,c){return null!=this.Ca?eh(this.Ca,b,c):c};g.M=function(){return this.l};g.U=function(){return this.j}; g.jb=function(){return 0e?(a=R.a(a,d),d=d.left):d=d.right:0(a.b?a.b(c):a.call(null,c))?b:c}; Hh.f=function(a,b,c,d){return A.c(function(b,c){return Hh.c(a,b,c)},Hh.c(a,b,c),d)};Hh.u=function(a){var b=L(a),c=O(a);a=L(c);var d=O(c),c=L(d),d=O(d);return Hh.f(b,a,c,d)};Hh.i=3;function Ih(a){this.g=a}Ih.prototype.add=function(a){return this.g.push(a)};Ih.prototype.size=function(){return this.g.length};Ih.prototype.clear=function(){return this.g=[]}; var Jh=function Jh(b){for(var c=[],d=arguments.length,e=0;;)if(ethis.end}; Ph.prototype.next=function(){var a=this.s;this.s+=this.step;return a};function Qh(a,b,c,d,e){this.l=a;this.start=b;this.end=c;this.step=d;this.w=e;this.o=32375006;this.C=8192}g=Qh.prototype;g.toString=function(){return fc(this)};g.equiv=function(a){return this.B(null,a)};g.K=function(a,b){if(bthis.end&&0===this.step)return this.start;throw Error("Index out of bounds");}; g.na=function(a,b,c){return bthis.end&&0===this.step?this.start:c};g.Da=!0;g.xa=function(){return new Ph(this.start,this.end,this.step)};g.M=function(){return this.l};g.ha=function(){return 0this.end?new Qh(this.l,this.start+this.step,this.end,this.step,null):null}; g.U=function(){return Ba(Ab(this))?0:Math.ceil((this.end-this.start)/this.step)};g.L=function(){var a=this.w;return null!=a?a:this.w=a=Dc(this)};g.B=function(a,b){return Ic(this,b)};g.S=function(){return Jc(N,this.l)};g.Z=function(a,b){return Oc(this,b)};g.$=function(a,b,c){for(a=this.start;;)if(0this.end){c=b.a?b.a(c,a):b.call(null,c,a);if(Mc(c))return P.b?P.b(c):P.call(null,c);a+=this.step}else return c};g.X=function(){return null==Ab(this)?null:this.start}; g.ca=function(){return null!=Ab(this)?new Qh(this.l,this.start+this.step,this.end,this.step,null):N};g.N=function(){return 0this.step?this.start>this.end?this:null:this.start===this.end?null:this};g.O=function(a,b){return new Qh(b,this.start,this.end,this.step,this.w)};g.R=function(a,b){return Q(b,this)};Qh.prototype[Ea]=function(){return zc(this)}; var Rh=function Rh(b){for(var c=[],d=arguments.length,e=0;;)if(ena)return Kb(a,"#");Kb(a,c);if(0===wa.b(f))K(h)&&Kb(a,function(){var a=Zh.b(f);return p(a)?a:"..."}());else{if(K(h)){var l=L(h);b.c?b.c(l,a,f):b.call(null,l,a,f)}for(var t=O(h),q=wa.b(f)-1;;)if(!t||null!=q&&0===q){K(t)&&0===q&&(Kb(a,d),Kb(a,function(){var a=Zh.b(f);return p(a)?a:"..."}()));break}else{Kb(a,d);var v=L(t);c=a;h=f;b.c?b.c(v,c,h):b.call(null,v,c,h);var x=O(t);c=q-1;t=x;q=c}}return Kb(a,e)}finally{na=k}} function $h(a,b){for(var c=K(b),d=null,e=0,f=0;;)if(fa.bb.length)a=a.append("0");else{a=a.toString();break a}a=qj(a);return p(a)?a:0}(),t=(D.a(t,"-")?-1:1)*(60*function(){var a=qj(q);return p(a)?a:0}()+function(){var a=qj(v);return p(a)?a:0}());return new Y(null,8,5,Ce,[x,rj(1,y,12,"timestamp month field must be in range 1..12"),rj(1,a,function(){var a;a=0===Ud(x,4);p(a)&&(a=Ba(0===Ud(x,100)),a=p(a)?a:0===Ud(x,400));return oj.a?oj.a(y, a):oj.call(null,y,a)}(),"timestamp day field must be in range 1..last day in month"),rj(0,b,23,"timestamp hour field must be in range 0..23"),rj(0,c,59,"timestamp minute field must be in range 0..59"),rj(0,B,D.a(c,59)?60:59,"timestamp second field must be in range 0..60"),rj(0,E,999,"timestamp millisecond field must be in range 0..999"),t],null)} var tj,uj=new qa(null,4,["inst",function(a){var b;if("string"===typeof a)if(b=sj(a),p(b)){a=U.c(b,0,null);var c=U.c(b,1,null),d=U.c(b,2,null),e=U.c(b,3,null),f=U.c(b,4,null),h=U.c(b,5,null),k=U.c(b,6,null);b=U.c(b,7,null);b=new Date(Date.UTC(a,c-1,d,e,f,h,k)-6E4*b)}else b=Ii(I([[w("Unrecognized date/time syntax: "),w(a)].join("")],0));else b=Ii(I(["Instance literal expects a string for its timestamp."],0));return b},"uuid",function(a){return"string"===typeof a?new wi(a,null):Ii(I(["UUID literal expects a string as its representation."], 0))},"queue",function(a){return ud(a)?Gf.a(lg,a):Ii(I(["Queue literal expects a vector for its elements."],0))},"js",function(a){if(ud(a)){var b=[];a=K(a);for(var c=null,d=0,e=0;;)if(ea.ua))for(var l=K(Ij(function(){return function(a){return a.va}}(e,f,h,k,l,b,c,d),l)),t=null,q=0,v=0;;)if(va.ua))for(e=K(Ij(function(){return function(a){return a.va}}(e,f,h,k,q,l,t,b,c,d),q)),f=null,k=h=0;;)if(k=T(b)&&Ve(function(b){return Ed(a,b)},b)});n("splint.notEquals",Ae);n("splint.gt",Sd);n("splint.gte",Td);n("splint.lt",Qd);n("splint.lte",Rd);n("splint.compare",nc);n("splint.truth",function(a){return p(a)?!0:!1});n("splint.isNull",function(a){return D.a(a,null)});n("splint.argVec",function(a){a=Array.prototype.slice.call(a);return Kd.b?Kd.b(a):Kd.call(null,a)}); n("splint.partial",af);n("splint.comp",$e);n("splint.complement",Ze);var ak=function ak(b){for(var c=[],d=arguments.length,e=0;;)if(e