v;k=1<=v?++x:--x)this.renderNextFrame();return u.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},m.prototype.finishRendering=function(){var y,k,x,v,E,A,R,F,P,V,p3,h3,J3,I3,Y3,q4;for(F=0,I3=this.imageParts,E=0,P=I3.length;E=this.frames.length))return y=this.frames[this.nextFrame++],x=this.freeWorkers.shift(),k=this.getTask(y),this.log("starting frame "+(k.index+1)+" of "+this.frames.length),this.activeWorkers.push(x),x.postMessage(k)},m.prototype.getContextData=function(y){return y.getImageData(0,0,this.options.width,this.options.height).data},m.prototype.getImageData=function(y){var k;return this._canvas==null&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),k=this._canvas.getContext("2d"),k.setFill=this.options.background,k.fillRect(0,0,this.options.width,this.options.height),k.drawImage(y,0,0),this.getContextData(k)},m.prototype.getTask=function(y){var k,x;if(k=this.frames.indexOf(y),x={index:k,last:k===this.frames.length-1,delay:y.delay,transparent:y.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:f.name==="chrome"},y.data!=null)x.data=y.data;else if(y.context!=null)x.data=this.getContextData(y.context);else if(y.image!=null)x.data=this.getImageData(y.image);else throw new Error("Invalid frame");return x},m.prototype.log=function(){var y;if(y=1<=arguments.length?p.call(arguments,0):[],!!this.options.debug)return console.log.apply(console,y)},m}(a),i.exports=l},{"./browser.coffee":2,events:1}]},{},[3])(3)})});var $M=Q((qG,Hr)=>{N();(function(){var n=function(v,E){for(var A=0,R=k(0,v.length-1,!0),F=0;FE[F][1])return!1}return!0},o=.95047,i=1,s=1.08883,a=4*o/(o+15*i+3*s),l=9*i/(o+15*i+3*s),f=.008856,d=903.3,C=function(v){return v>f?Math.pow(v,1/3):7.787*v+16/116},u=function(v){return Math.pow(v,3)>f?Math.pow(v,3):(116*v-16)/d},p={CIEXYZ:{},CIExyY:{},CIELAB:{},CIELCH:{},CIELUV:{},CIELCHuv:{},sRGB:{},hex:{}};p.CIEXYZ.sRGB=function(x){var v=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],E=function(V){var p3=.055;return V<=.0031308?12.92*V:1.055*Math.pow(V,1/2.4)-.055},A=E(n(v[0],x)),R=E(n(v[1],x)),F=E(n(v[2],x));return[A,R,F]},p.sRGB.CIEXYZ=function(x){var v=x[0],E=x[1],A=x[2],R=function(I3){var Y3=.055;return I3>.04045?Math.pow((I3+Y3)/(1+Y3),2.4):I3/12.92},F=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],P=[R(v),R(E),R(A)],V=n(F[0],P),p3=n(F[1],P),h3=n(F[2],P);return[V,p3,h3]},p.CIEXYZ.CIExyY=function(x){var v=x[0],E=x[1],A=x[2],R=v+E+A;return R===0?[0,0,E]:[v/R,E/R,E]},p.CIExyY.CIEXYZ=function(x){var v=x[0],E=x[1],A=x[2];if(E===0)return[0,0,0];var R=v*A/E,F=(1-v-E)*A/E;return[R,A,F]},p.CIEXYZ.CIELAB=function(x){var v=x[0],E=x[1],A=x[2],R=C(v/o),F=C(E/i),P=C(A/s),V=116*F-16,p3=500*(R-F),h3=200*(F-P);return[V,p3,h3]},p.CIELAB.CIEXYZ=function(x){var v=x[0],E=x[1],A=x[2],R=(v+16)/116,F=R-A/200,P=E/500+R,V=o*u(P),p3=i*u(R),h3=s*u(F);return[V,p3,h3]},p.CIEXYZ.CIELUV=function(x){var v=x[0],E=x[1],A=x[2],R=4*v/(v+15*E+3*A),F=9*E/(v+15*E+3*A),P=116*C(E/i)-16;if(P===0)return[0,0,0];var V=13*P*(R-a),p3=13*P*(F-l);return[P,V,p3]},p.CIELUV.CIEXYZ=function(x){var v=x[0],E=x[1],A=x[2];if(v===0)return[0,0,0];var R=u((v+16)/116),F=E/(13*v)+a,P=A/(13*v)+l,V=R*i,p3=0-9*V*F/((F-4)*P-F*P),h3=(9*V-15*P*V-P*p3)/(3*P);return[p3,V,h3]};var g=function(v){var E=v[0],A=v[1],R=v[2],F=Math.pow(Math.pow(A,2)+Math.pow(R,2),1/2),P=Math.atan2(R,A),V=P*360/2/Math.PI;return V<0&&(V=360+V),[E,F,V]};p.CIELAB.CIELCH=g,p.CIELUV.CIELCHuv=g;var _=function(v){var E=v[0],A=v[1],R=v[2],F=R/360*2*Math.PI,P=Math.cos(F)*A,V=Math.sin(F)*A;return[E,P,V]};p.CIELCH.CIELAB=_,p.CIELCHuv.CIELUV=_;var M=function(v){v=v.map(function(R){return e(R,3)});for(var E=0;E1)throw new Error("Illegal sRGB value")}return v.map(function(R){return Math.round(R*255)})};p.sRGB.hex=function(x){var v="#";x=M(x);for(var E=0;EF;R?P++:P--)A.push(P);return A}})()});var YM=Q((HG,KM)=>{N();var j=j||{};j.Geometry=function(){};j.Geometry.intersectLineLine=function(n,e){var r=(n.intercept-e.intercept)/(e.slope-n.slope),o=n.slope*r+n.intercept;return{x:r,y:o}};j.Geometry.distanceFromOrigin=function(n){return Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))};j.Geometry.distanceLineFromOrigin=function(n){return Math.abs(n.intercept)/Math.sqrt(Math.pow(n.slope,2)+1)};j.Geometry.perpendicularThroughPoint=function(n,e){var r=-1/n.slope,o=e.y-r*e.x;return{slope:r,intercept:o}};j.Geometry.angleFromOrigin=function(n){return Math.atan2(n.y,n.x)};j.Geometry.normalizeAngle=function(n){var e=2*Math.PI;return(n%e+e)%e};j.Geometry.lengthOfRayUntilIntersect=function(n,e){return e.intercept/(Math.sin(n)-e.slope*Math.cos(n))};j.Hsluv=function(){};j.Hsluv.getBounds=function(n){for(var e=[],r=Math.pow(n+16,3)/1560896,o=r>j.Hsluv.epsilon?r:n/j.Hsluv.kappa,i=0;i<3;)for(var s=i++,a=j.Hsluv.m[s][0],l=j.Hsluv.m[s][1],f=j.Hsluv.m[s][2],d=0;d<2;){var C=d++,u=(284517*a-94839*f)*o,p=(838422*f+769860*l+731718*a)*n*o-769860*C*n,g=(632260*f-126452*l)*o+126452*C;e.push({slope:u/g,intercept:p/g})}return e};j.Hsluv.maxSafeChromaForL=function(n){for(var e=j.Hsluv.getBounds(n),r=1/0,o=0;o=0&&(i=Math.min(i,l))}return i};j.Hsluv.dotProduct=function(n,e){for(var r=0,o=0,i=n.length;o.04045?Math.pow((n+.055)/1.055,2.4):n/12.92};j.Hsluv.xyzToRgb=function(n){return[j.Hsluv.fromLinear(j.Hsluv.dotProduct(j.Hsluv.m[0],n)),j.Hsluv.fromLinear(j.Hsluv.dotProduct(j.Hsluv.m[1],n)),j.Hsluv.fromLinear(j.Hsluv.dotProduct(j.Hsluv.m[2],n))]};j.Hsluv.rgbToXyz=function(n){var e=[j.Hsluv.toLinear(n[0]),j.Hsluv.toLinear(n[1]),j.Hsluv.toLinear(n[2])];return[j.Hsluv.dotProduct(j.Hsluv.minv[0],e),j.Hsluv.dotProduct(j.Hsluv.minv[1],e),j.Hsluv.dotProduct(j.Hsluv.minv[2],e)]};j.Hsluv.yToL=function(n){return n<=j.Hsluv.epsilon?n/j.Hsluv.refY*j.Hsluv.kappa:116*Math.pow(n/j.Hsluv.refY,.3333333333333333)-16};j.Hsluv.lToY=function(n){return n<=8?j.Hsluv.refY*n/j.Hsluv.kappa:j.Hsluv.refY*Math.pow((n+16)/116,3)};j.Hsluv.xyzToLuv=function(n){var e=n[0],r=n[1],o=n[2],i=e+15*r+3*o,s=4*e,a=9*r;i!=0?(s/=i,a/=i):(s=NaN,a=NaN);var l=j.Hsluv.yToL(r);if(l==0)return[0,0,0];var f=13*l*(s-j.Hsluv.refU),d=13*l*(a-j.Hsluv.refV);return[l,f,d]};j.Hsluv.luvToXyz=function(n){var e=n[0],r=n[1],o=n[2];if(e==0)return[0,0,0];var i=r/(13*e)+j.Hsluv.refU,s=o/(13*e)+j.Hsluv.refV,a=j.Hsluv.lToY(e),l=0-9*a*i/((i-4)*s-i*s),f=(9*a-15*s*a-s*l)/(3*s);return[l,a,f]};j.Hsluv.luvToLch=function(n){var e=n[0],r=n[1],o=n[2],i=Math.sqrt(r*r+o*o),s;if(i<1e-8)s=0;else{var a=Math.atan2(o,r);s=a*180/Math.PI,s<0&&(s=360+s)}return[e,i,s]};j.Hsluv.lchToLuv=function(n){var e=n[0],r=n[1],o=n[2],i=o/360*2*Math.PI,s=Math.cos(i)*r,a=Math.sin(i)*r;return[e,s,a]};j.Hsluv.hsluvToLch=function(n){var e=n[0],r=n[1],o=n[2];if(o>99.9999999)return[100,0,e];if(o<1e-8)return[0,0,e];var i=j.Hsluv.maxChromaForLH(o,e),s=i/100*r;return[o,s,e]};j.Hsluv.lchToHsluv=function(n){var e=n[0],r=n[1],o=n[2];if(e>99.9999999)return[o,0,100];if(e<1e-8)return[o,0,0];var i=j.Hsluv.maxChromaForLH(e,o),s=r/i*100;return[o,s,e]};j.Hsluv.hpluvToLch=function(n){var e=n[0],r=n[1],o=n[2];if(o>99.9999999)return[100,0,e];if(o<1e-8)return[0,0,e];var i=j.Hsluv.maxSafeChromaForL(o),s=i/100*r;return[o,s,e]};j.Hsluv.lchToHpluv=function(n){var e=n[0],r=n[1],o=n[2];if(e>99.9999999)return[o,0,100];if(e<1e-8)return[o,0,0];var i=j.Hsluv.maxSafeChromaForL(e),s=r/i*100;return[o,s,e]};j.Hsluv.rgbToHex=function(n){for(var e="#",r=0;r<3;){var o=r++,i=n[o],s=Math.round(i*255),a=s%16,l=(s-a)/16|0;e+=j.Hsluv.hexChars.charAt(l)+j.Hsluv.hexChars.charAt(a)}return e};j.Hsluv.hexToRgb=function(n){n=n.toLowerCase();for(var e=[],r=0;r<3;){var o=r++,i=j.Hsluv.hexChars.indexOf(n.charAt(o*2+1)),s=j.Hsluv.hexChars.indexOf(n.charAt(o*2+2)),a=i*16+s;e.push(a/255)}return e};j.Hsluv.lchToRgb=function(n){return j.Hsluv.xyzToRgb(j.Hsluv.luvToXyz(j.Hsluv.lchToLuv(n)))};j.Hsluv.rgbToLch=function(n){return j.Hsluv.luvToLch(j.Hsluv.xyzToLuv(j.Hsluv.rgbToXyz(n)))};j.Hsluv.hsluvToRgb=function(n){return j.Hsluv.lchToRgb(j.Hsluv.hsluvToLch(n))};j.Hsluv.rgbToHsluv=function(n){return j.Hsluv.lchToHsluv(j.Hsluv.rgbToLch(n))};j.Hsluv.hpluvToRgb=function(n){return j.Hsluv.lchToRgb(j.Hsluv.hpluvToLch(n))};j.Hsluv.rgbToHpluv=function(n){return j.Hsluv.lchToHpluv(j.Hsluv.rgbToLch(n))};j.Hsluv.hsluvToHex=function(n){return j.Hsluv.rgbToHex(j.Hsluv.hsluvToRgb(n))};j.Hsluv.hpluvToHex=function(n){return j.Hsluv.rgbToHex(j.Hsluv.hpluvToRgb(n))};j.Hsluv.hexToHsluv=function(n){return j.Hsluv.rgbToHsluv(j.Hsluv.hexToRgb(n))};j.Hsluv.hexToHpluv=function(n){return j.Hsluv.rgbToHpluv(j.Hsluv.hexToRgb(n))};j.Hsluv.m=[[3.240969941904521,-1.537383177570093,-.498610760293],[-.96924363628087,1.87596750150772,.041555057407175],[.055630079696993,-.20397695888897,1.056971514242878]];j.Hsluv.minv=[[.41239079926595,.35758433938387,.18048078840183],[.21263900587151,.71516867876775,.072192315360733],[.019330818715591,.11919477979462,.95053215224966]];j.Hsluv.refY=1;j.Hsluv.refU=.19783000664283;j.Hsluv.refV=.46831999493879;j.Hsluv.kappa=903.2962962;j.Hsluv.epsilon=.0088564516;j.Hsluv.hexChars="0123456789abcdef";var VD={hsluvToRgb:j.Hsluv.hsluvToRgb,rgbToHsluv:j.Hsluv.rgbToHsluv,hpluvToRgb:j.Hsluv.hpluvToRgb,rgbToHpluv:j.Hsluv.rgbToHpluv,hsluvToHex:j.Hsluv.hsluvToHex,hexToHsluv:j.Hsluv.hexToHsluv,hpluvToHex:j.Hsluv.hpluvToHex,hexToHpluv:j.Hsluv.hexToHpluv,lchToHpluv:j.Hsluv.lchToHpluv,hpluvToLch:j.Hsluv.hpluvToLch,lchToHsluv:j.Hsluv.lchToHsluv,hsluvToLch:j.Hsluv.hsluvToLch,lchToLuv:j.Hsluv.lchToLuv,luvToLch:j.Hsluv.luvToLch,xyzToLuv:j.Hsluv.xyzToLuv,luvToXyz:j.Hsluv.luvToXyz,xyzToRgb:j.Hsluv.xyzToRgb,rgbToXyz:j.Hsluv.rgbToXyz,lchToRgb:j.Hsluv.lchToRgb,rgbToLch:j.Hsluv.rgbToLch};KM.exports=VD});var fL=Q((Pz,lL)=>{N();"use strict";function rF(){throw new Error("fingerprinting not supported in the browser")}lL.exports={createHash:rF}});var Td=Q((Bz,dL)=>{N();"use strict";var oF=fL();function iF(n){return n.charAt(0).toUpperCase()+n.slice(1)}function sF(n,e){return n===e?0:n=0)return-2;r=o}return r}function fF(n,e){var r={},o,i;for(o=0;o-1&&(r+="abcdefghijklmnopqrstuvwxyz"),e.indexOf("A")>-1&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),e.indexOf("#")>-1&&(r+="0123456789"),e.indexOf("!")>-1&&(r+="~`!@#$%^&*()_+-={}[]:\";'<>?,./|\\");for(var o=[],i=0;i0&&e[r].index>1].index;)n=e[r],e[r]=e[o],e[o]=n,r=o};Rd.prototype.pop=function(){var n=this._items,e=n.length-1|0,r=n[0];if(!r||r.index>this._index)return null;if(this._index++,!e)return n.pop(),r;n[0]=n.pop();for(var o=e>>1,i=0,s,a,l,f,d,C,u;i=f.index));)n[l]=f,n[i]=d,i=l;return r};function d3(n,e){this.buf=n,this.pos=e|0}d3.prototype.isValid=function(){return this.pos<=this.buf.length};d3.prototype.getValue=function(){return this.buf.slice(0,this.pos)};d3.prototype.readBoolean=function(){return!!this.buf[this.pos++]};d3.prototype.skipBoolean=function(){this.pos++};d3.prototype.writeBoolean=function(n){this.buf[this.pos++]=!!n};d3.prototype.readInt=d3.prototype.readLong=function(){var n=0,e=0,r=this.buf,o,i,s,a;do o=r[this.pos++],i=o&128,n|=(o&127)<>1^-(n&1)};d3.prototype.skipInt=d3.prototype.skipLong=function(){for(var n=this.buf;n[this.pos++]&128;);};d3.prototype.writeInt=d3.prototype.writeLong=function(n){var e=this.buf,r,o;if(n>=-1073741824&&n<1073741824){o=n>=0?n<<1:~n<<1|1;do e[this.pos]=o&127,o>>=7;while(o&&(e[this.pos++]|=128))}else{r=n>=0?n*2:-n*2-1;do e[this.pos]=r&127,r/=128;while(r>=1&&(e[this.pos++]|=128))}this.pos++};d3.prototype.readFloat=function(){var n=this.buf,e=this.pos;if(this.pos+=4,!(this.pos>n.length))return this.buf.readFloatLE(e)};d3.prototype.skipFloat=function(){this.pos+=4};d3.prototype.writeFloat=function(n){var e=this.buf,r=this.pos;if(this.pos+=4,!(this.pos>e.length))return this.buf.writeFloatLE(n,r)};d3.prototype.readDouble=function(){var n=this.buf,e=this.pos;if(this.pos+=8,!(this.pos>n.length))return this.buf.readDoubleLE(e)};d3.prototype.skipDouble=function(){this.pos+=8};d3.prototype.writeDouble=function(n){var e=this.buf,r=this.pos;if(this.pos+=8,!(this.pos>e.length))return this.buf.writeDoubleLE(n,r)};d3.prototype.readFixed=function(n){var e=this.pos;if(this.pos+=n,!(this.pos>this.buf.length)){var r=new T(n);return this.buf.copy(r,0,e,e+n),r}};d3.prototype.skipFixed=function(n){this.pos+=n};d3.prototype.writeFixed=function(n,e){e=e||n.length;var r=this.pos;this.pos+=e,!(this.pos>this.buf.length)&&n.copy(this.buf,r,0,e)};d3.prototype.readBytes=function(){return this.readFixed(this.readLong())};d3.prototype.skipBytes=function(){var n=this.readLong();this.pos+=n};d3.prototype.writeBytes=function(n){var e=n.length;this.writeLong(e),this.writeFixed(n,e)};d3.prototype.readString=function(){var n=this.readLong(),e=this.pos,r=this.buf;if(this.pos+=n,!(this.pos>r.length))return this.buf.utf8Slice(e,e+n)};d3.prototype.skipString=function(){var n=this.readLong();this.pos+=n};d3.prototype.writeString=function(n){var e=T.byteLength(n);this.writeLong(e);var r=this.pos;this.pos+=e,!(this.pos>this.buf.length)&&this.buf.utf8Write(n,r,e)};d3.prototype.writeBinary=function(n,e){var r=this.pos;this.pos+=e,!(this.pos>this.buf.length)&&this.buf.write(n,r,e,"binary")};d3.prototype.matchBoolean=function(n){return this.buf[this.pos++]-n.buf[n.pos++]};d3.prototype.matchInt=d3.prototype.matchLong=function(n){var e=this.readLong(),r=n.readLong();return e===r?0:e>1;s&128;)s=i[this.pos++],e|=(s&127)<=8&&(o-=8,n[r++]=e,e>>=8);return n[r]=e,a&&jd(n,8),n};d3.prototype.packLongBytes=function(n){var e=(n[7]&128)>>7,r=this.buf,o=1,i=0,s=3,a;e?(jd(n,8),a=1):a=0;for(var l=[n.readUIntLE(0,3),n.readUIntLE(3,3),n.readUIntLE(6,2)];s&&!l[--s];);for(;i7;)r[this.pos++]=a&127|128,a>>=7,o-=7;a|=l[s]<>=7;while(a&&(r[this.pos++]|=128));this.pos++,e&&jd(n,8)};function jd(n,e){for(;e--;)n[e]=~n[e]}dL.exports={abstractFunction:CF,capitalize:iF,compare:sF,getHash:aF,toMap:fF,singleIndexOf:lF,hasDuplicates:dF,Lcg:U5,OrderedQueue:Rd,Tap:d3}});var uL=Q((Oz,CL)=>{N();"use strict";CL.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var to=Q((Zz,pL)=>{N();"use strict";var cL=typeof Symbol!="undefined"&&Symbol,uF=uL();pL.exports=function(){return typeof cL!="function"||typeof Symbol!="function"||typeof cL("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:uF()}});var mL=Q((Uz,hL)=>{N();"use strict";var cF="Function.prototype.bind called on incompatible ",Wd=Array.prototype.slice,pF=Object.prototype.toString,hF="[object Function]";hL.exports=function(e){var r=this;if(typeof r!="function"||pF.call(r)!==hF)throw new TypeError(cF+r);for(var o=Wd.call(arguments,1),i,s=function(){if(this instanceof i){var C=r.apply(this,o.concat(Wd.call(arguments)));return Object(C)===C?C:this}else return r.apply(e,o.concat(Wd.call(arguments)))},a=Math.max(0,r.length-o.length),l=[],f=0;f{N();"use strict";var mF=mL();yL.exports=Function.prototype.bind||mF});var kL=Q((Gz,gL)=>{N();"use strict";var yF=no();gL.exports=yF.call(Function.call,Object.prototype.hasOwnProperty)});var so=Q((zz,LL)=>{N();"use strict";var g3,he=SyntaxError,xL=Function,A9=TypeError,Id=function(n){try{return xL('"use strict"; return ('+n+").constructor;")()}catch(e){}},V5=Object.getOwnPropertyDescriptor;if(V5)try{V5({},"")}catch(n){V5=null}var Dd=function(){throw new A9},gF=V5?function(){try{return arguments.callee,Dd}catch(n){try{return V5(arguments,"callee").get}catch(e){return Dd}}}():Dd,R9=to()(),O1=Object.getPrototypeOf||function(n){return n.__proto__},j9={},kF=typeof Uint8Array=="undefined"?g3:O1(Uint8Array),T9={"%AggregateError%":typeof AggregateError=="undefined"?g3:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?g3:ArrayBuffer,"%ArrayIteratorPrototype%":R9?O1([][Symbol.iterator]()):g3,"%AsyncFromSyncIteratorPrototype%":g3,"%AsyncFunction%":j9,"%AsyncGenerator%":j9,"%AsyncGeneratorFunction%":j9,"%AsyncIteratorPrototype%":j9,"%Atomics%":typeof Atomics=="undefined"?g3:Atomics,"%BigInt%":typeof BigInt=="undefined"?g3:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?g3:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?g3:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?g3:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?g3:FinalizationRegistry,"%Function%":xL,"%GeneratorFunction%":j9,"%Int8Array%":typeof Int8Array=="undefined"?g3:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?g3:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?g3:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R9?O1(O1([][Symbol.iterator]())):g3,"%JSON%":typeof JSON=="object"?JSON:g3,"%Map%":typeof Map=="undefined"?g3:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!R9?g3:O1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?g3:Promise,"%Proxy%":typeof Proxy=="undefined"?g3:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?g3:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?g3:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!R9?g3:O1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?g3:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R9?O1(""[Symbol.iterator]()):g3,"%Symbol%":R9?Symbol:g3,"%SyntaxError%":he,"%ThrowTypeError%":gF,"%TypedArray%":kF,"%TypeError%":A9,"%Uint8Array%":typeof Uint8Array=="undefined"?g3:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?g3:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?g3:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?g3:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?g3:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?g3:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?g3:WeakSet},xF=function n(e){var r;if(e==="%AsyncFunction%")r=Id("async function () {}");else if(e==="%GeneratorFunction%")r=Id("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Id("async function* () {}");else if(e==="%AsyncGenerator%"){var o=n("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=n("%AsyncGenerator%");i&&(r=O1(i.prototype))}return T9[e]=r,r},vL={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ro=no(),oo=kL(),vF=ro.call(Function.call,Array.prototype.concat),MF=ro.call(Function.apply,Array.prototype.splice),ML=ro.call(Function.call,String.prototype.replace),io=ro.call(Function.call,String.prototype.slice),LF=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_F=/\\(\\)?/g,NF=function(e){var r=io(e,0,1),o=io(e,-1);if(r==="%"&&o!=="%")throw new he("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new he("invalid intrinsic syntax, expected opening `%`");var i=[];return ML(e,LF,function(s,a,l,f){i[i.length]=l?ML(f,_F,"$1"):a||s}),i},wF=function(e,r){var o=e,i;if(oo(vL,o)&&(i=vL[o],o="%"+i[0]+"%"),oo(T9,o)){var s=T9[o];if(s===j9&&(s=xF(o)),typeof s=="undefined"&&!r)throw new A9("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:o,value:s}}throw new he("intrinsic "+e+" does not exist!")};LL.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new A9("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new A9('"allowMissing" argument must be a boolean');var o=NF(e),i=o.length>0?o[0]:"",s=wF("%"+i+"%",r),a=s.name,l=s.value,f=!1,d=s.alias;d&&(i=d[0],MF(o,vF([0,1],d)));for(var C=1,u=!0;C=o.length){var M=V5(l,p);u=!!M,u&&"get"in M&&!("originalValue"in M.get)?l=M.get:l=l[p]}else u=oo(l,p),l=l[p];u&&!f&&(T9[a]=l)}}return l}});var SL=Q((qz,ao)=>{N();"use strict";var Fd=no(),W9=so(),_L=W9("%Function.prototype.apply%"),NL=W9("%Function.prototype.call%"),wL=W9("%Reflect.apply%",!0)||Fd.call(NL,_L),bL=W9("%Object.getOwnPropertyDescriptor%",!0),G5=W9("%Object.defineProperty%",!0),bF=W9("%Math.max%");if(G5)try{G5({},"a",{value:1})}catch(n){G5=null}ao.exports=function(e){var r=wL(Fd,NL,arguments);if(bL&&G5){var o=bL(r,"length");o.configurable&&G5(r,"length",{value:1+bF(0,e.length-(arguments.length-1))})}return r};var EL=function(){return wL(Fd,_L,arguments)};G5?G5(ao.exports,"apply",{value:EL}):ao.exports.apply=EL});var lo=Q((Hz,jL)=>{N();"use strict";var AL=so(),RL=SL(),EF=RL(AL("String.prototype.indexOf"));jL.exports=function(e,r){var o=AL(e,!!r);return typeof o=="function"&&EF(e,".prototype.")>-1?RL(o):o}});var IL=Q(($z,WL)=>{N();"use strict";var SF=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",AF=lo(),Pd=AF("Object.prototype.toString"),fo=function(e){return SF&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Pd(e)==="[object Arguments]"},TL=function(e){return fo(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Pd(e)!=="[object Array]"&&Pd(e.callee)==="[object Function]"},RF=function(){return fo(arguments)}();fo.isLegacyArguments=TL;WL.exports=RF?fo:TL});var PL=Q((Kz,FL)=>{N();"use strict";var jF=Object.prototype.toString,TF=Function.prototype.toString,WF=/^\s*(?:function)?\*/,DL=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Bd=Object.getPrototypeOf,IF=function(){if(!DL)return!1;try{return Function("return function*() {}")()}catch(n){}},Od;FL.exports=function(e){if(typeof e!="function")return!1;if(WF.test(TF.call(e)))return!0;if(!DL){var r=jF.call(e);return r==="[object GeneratorFunction]"}if(!Bd)return!1;if(typeof Od=="undefined"){var o=IF();Od=o?Bd(o):!1}return Bd(e)===Od}});var Zd=Q((Yz,BL)=>{N();var DF=Object.prototype.hasOwnProperty,FF=Object.prototype.toString;BL.exports=function(e,r,o){if(FF.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var s=0;s{N();"use strict";var Ud=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];OL.exports=function(){for(var e=[],r=0;r{N();"use strict";var PF=so(),Co=PF("%Object.getOwnPropertyDescriptor%");if(Co)try{Co([],"length")}catch(n){Co=null}ZL.exports=Co});var Hd=Q((Qz,qL)=>{N();"use strict";var UL=Zd(),BF=Vd(),zd=lo(),OF=zd("Object.prototype.toString"),ZF=to()(),VL=ZF&&typeof Symbol.toStringTag=="symbol",GL=BF(),UF=zd("Array.prototype.indexOf",!0)||function(e,r){for(var o=0;o-1}return uo?GF(e):!1}});var JL=Q((eq,XL)=>{N();"use strict";var HL=Zd(),zF=Vd(),$L=lo(),qF=$L("Object.prototype.toString"),HF=to()(),KL=HF&&typeof Symbol.toStringTag=="symbol",$F=zF(),KF=$L("String.prototype.slice"),YL={},$d=Gd(),Kd=Object.getPrototypeOf;KL&&$d&&Kd&&HL($F,function(n){if(typeof window[n]=="function"){var e=new window[n];if(!(Symbol.toStringTag in e))throw new EvalError("this engine has support for Symbol.toStringTag, but "+n+" does not have the property! Please report this.");var r=Kd(e),o=$d(r,Symbol.toStringTag);if(!o){var i=Kd(r);o=$d(i,Symbol.toStringTag)}YL[n]=o.get}});var YF=function(e){var r=!1;return HL(YL,function(o,i){if(!r)try{var s=o.call(e);s===i&&(r=s)}catch(a){}}),r},XF=Hd();XL.exports=function(e){return XF(e)?KL?YF(e):KF(qF(e),8,-1):!1}});var u_=Q(u3=>{N();"use strict";var JF=IL(),QF=PL(),J0=JL(),QL=Hd();function I9(n){return n.call.bind(n)}var e_=typeof BigInt!="undefined",t_=typeof Symbol!="undefined",P0=I9(Object.prototype.toString),eP=I9(Number.prototype.valueOf),tP=I9(String.prototype.valueOf),nP=I9(Boolean.prototype.valueOf);e_&&(n_=I9(BigInt.prototype.valueOf));var n_;t_&&(r_=I9(Symbol.prototype.valueOf));var r_;function me(n,e){if(typeof n!="object")return!1;try{return e(n),!0}catch(r){return!1}}u3.isArgumentsObject=JF;u3.isGeneratorFunction=QF;u3.isTypedArray=QL;function rP(n){return typeof Promise!="undefined"&&n instanceof Promise||n!==null&&typeof n=="object"&&typeof n.then=="function"&&typeof n.catch=="function"}u3.isPromise=rP;function oP(n){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(n):QL(n)||i_(n)}u3.isArrayBufferView=oP;function iP(n){return J0(n)==="Uint8Array"}u3.isUint8Array=iP;function sP(n){return J0(n)==="Uint8ClampedArray"}u3.isUint8ClampedArray=sP;function aP(n){return J0(n)==="Uint16Array"}u3.isUint16Array=aP;function lP(n){return J0(n)==="Uint32Array"}u3.isUint32Array=lP;function fP(n){return J0(n)==="Int8Array"}u3.isInt8Array=fP;function dP(n){return J0(n)==="Int16Array"}u3.isInt16Array=dP;function CP(n){return J0(n)==="Int32Array"}u3.isInt32Array=CP;function uP(n){return J0(n)==="Float32Array"}u3.isFloat32Array=uP;function cP(n){return J0(n)==="Float64Array"}u3.isFloat64Array=cP;function pP(n){return J0(n)==="BigInt64Array"}u3.isBigInt64Array=pP;function hP(n){return J0(n)==="BigUint64Array"}u3.isBigUint64Array=hP;function co(n){return P0(n)==="[object Map]"}co.working=typeof Map!="undefined"&&co(new Map);function mP(n){return typeof Map=="undefined"?!1:co.working?co(n):n instanceof Map}u3.isMap=mP;function po(n){return P0(n)==="[object Set]"}po.working=typeof Set!="undefined"&&po(new Set);function yP(n){return typeof Set=="undefined"?!1:po.working?po(n):n instanceof Set}u3.isSet=yP;function ho(n){return P0(n)==="[object WeakMap]"}ho.working=typeof WeakMap!="undefined"&&ho(new WeakMap);function gP(n){return typeof WeakMap=="undefined"?!1:ho.working?ho(n):n instanceof WeakMap}u3.isWeakMap=gP;function Yd(n){return P0(n)==="[object WeakSet]"}Yd.working=typeof WeakSet!="undefined"&&Yd(new WeakSet);function kP(n){return Yd(n)}u3.isWeakSet=kP;function mo(n){return P0(n)==="[object ArrayBuffer]"}mo.working=typeof ArrayBuffer!="undefined"&&mo(new ArrayBuffer);function o_(n){return typeof ArrayBuffer=="undefined"?!1:mo.working?mo(n):n instanceof ArrayBuffer}u3.isArrayBuffer=o_;function yo(n){return P0(n)==="[object DataView]"}yo.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&yo(new DataView(new ArrayBuffer(1),0,1));function i_(n){return typeof DataView=="undefined"?!1:yo.working?yo(n):n instanceof DataView}u3.isDataView=i_;var Xd=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ye(n){return P0(n)==="[object SharedArrayBuffer]"}function s_(n){return typeof Xd=="undefined"?!1:(typeof ye.working=="undefined"&&(ye.working=ye(new Xd)),ye.working?ye(n):n instanceof Xd)}u3.isSharedArrayBuffer=s_;function xP(n){return P0(n)==="[object AsyncFunction]"}u3.isAsyncFunction=xP;function vP(n){return P0(n)==="[object Map Iterator]"}u3.isMapIterator=vP;function MP(n){return P0(n)==="[object Set Iterator]"}u3.isSetIterator=MP;function LP(n){return P0(n)==="[object Generator]"}u3.isGeneratorObject=LP;function _P(n){return P0(n)==="[object WebAssembly.Module]"}u3.isWebAssemblyCompiledModule=_P;function a_(n){return me(n,eP)}u3.isNumberObject=a_;function l_(n){return me(n,tP)}u3.isStringObject=l_;function f_(n){return me(n,nP)}u3.isBooleanObject=f_;function d_(n){return e_&&me(n,n_)}u3.isBigIntObject=d_;function C_(n){return t_&&me(n,r_)}u3.isSymbolObject=C_;function NP(n){return a_(n)||l_(n)||f_(n)||d_(n)||C_(n)}u3.isBoxedPrimitive=NP;function wP(n){return typeof Uint8Array!="undefined"&&(o_(n)||s_(n))}u3.isAnyArrayBuffer=wP;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(n){Object.defineProperty(u3,n,{enumerable:!1,value:function(){throw new Error(n+" is not supported in userland")}})})});var p_=Q((nq,c_)=>{N();c_.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var h_=Q((rq,Jd)=>{N();typeof Object.create=="function"?Jd.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Jd.exports=function(e,r){if(r){e.super_=r;var o=function(){};o.prototype=r.prototype,e.prototype=new o,e.prototype.constructor=e}}});var oC=Q(c3=>{N();var m_=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),o={},i=0;i=i)return l;switch(l){case"%s":return String(o[r++]);case"%d":return Number(o[r++]);case"%j":try{return JSON.stringify(o[r++])}catch(f){return"[Circular]"}default:return l}}),a=o[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),tC(e)?r.showHidden=e:e&&c3._extend(r,e),z5(r.showHidden)&&(r.showHidden=!1),z5(r.depth)&&(r.depth=2),z5(r.colors)&&(r.colors=!1),z5(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=EP),xo(r,n,r.depth)}c3.inspect=Z1;Z1.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Z1.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function EP(n,e){var r=Z1.styles[e];return r?"["+Z1.colors[r][0]+"m"+n+"["+Z1.colors[r][1]+"m":n}function SP(n,e){return n}function AP(n){var e={};return n.forEach(function(r,o){e[r]=!0}),e}function xo(n,e,r){if(n.customInspect&&e&&_o(e.inspect)&&e.inspect!==c3.inspect&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(r,n);return Mo(o)||(o=xo(n,o,r)),o}var i=RP(n,e);if(i)return i;var s=Object.keys(e),a=AP(s);if(n.showHidden&&(s=Object.getOwnPropertyNames(e)),ke(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return Qd(e);if(s.length===0){if(_o(e)){var l=e.name?": "+e.name:"";return n.stylize("[Function"+l+"]","special")}if(ge(e))return n.stylize(RegExp.prototype.toString.call(e),"regexp");if(Lo(e))return n.stylize(Date.prototype.toString.call(e),"date");if(ke(e))return Qd(e)}var f="",d=!1,C=["{","}"];if(g_(e)&&(d=!0,C=["[","]"]),_o(e)){var u=e.name?": "+e.name:"";f=" [Function"+u+"]"}if(ge(e)&&(f=" "+RegExp.prototype.toString.call(e)),Lo(e)&&(f=" "+Date.prototype.toUTCString.call(e)),ke(e)&&(f=" "+Qd(e)),s.length===0&&(!d||e.length==0))return C[0]+f+C[1];if(r<0)return ge(e)?n.stylize(RegExp.prototype.toString.call(e),"regexp"):n.stylize("[Object]","special");n.seen.push(e);var p;return d?p=jP(n,e,r,a,s):p=s.map(function(g){return eC(n,e,r,a,g,d)}),n.seen.pop(),TP(p,f,C)}function RP(n,e){if(z5(e))return n.stylize("undefined","undefined");if(Mo(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,"string")}if(k_(e))return n.stylize(""+e,"number");if(tC(e))return n.stylize(""+e,"boolean");if(vo(e))return n.stylize("null","null")}function Qd(n){return"["+Error.prototype.toString.call(n)+"]"}function jP(n,e,r,o,i){for(var s=[],a=0,l=e.length;a-1&&(s?l=l.split(`
+`).map(function(d){return" "+d}).join(`
`).substr(2):l=`
`+l.split(`
-`).map(function(C){return" "+C}).join(`
-`))):l=e.stylize("[Circular]","special")),A1(s)){if(a&&i.match(/^\d+$/))return l;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+l}function Nw(e,n,r){var o=0,i=e.reduce(function(a,s){return o++,s.indexOf(`
-`)>=0&&o++,a+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(n===""?"":n+`
- `)+" "+e.join(`,
- `)+" "+r[1]:r[0]+n+" "+e.join(", ")+" "+r[1]}o3.types=Ah();function Bh(e){return Array.isArray(e)}o3.isArray=Bh;function qi(e){return typeof e=="boolean"}o3.isBoolean=qi;function Ye(e){return e===null}o3.isNull=Ye;function bw(e){return e==null}o3.isNullOrUndefined=bw;function Ph(e){return typeof e=="number"}o3.isNumber=Ph;function Je(e){return typeof e=="string"}o3.isString=Je;function ww(e){return typeof e=="symbol"}o3.isSymbol=ww;function A1(e){return e===void 0}o3.isUndefined=A1;function Q9(e){return n6(e)&&Yi(e)==="[object RegExp]"}o3.isRegExp=Q9;o3.types.isRegExp=Q9;function n6(e){return typeof e=="object"&&e!==null}o3.isObject=n6;function Xe(e){return n6(e)&&Yi(e)==="[object Date]"}o3.isDate=Xe;o3.types.isDate=Xe;function e7(e){return n6(e)&&(Yi(e)==="[object Error]"||e instanceof Error)}o3.isError=e7;o3.types.isNativeError=e7;function Ke(e){return typeof e=="function"}o3.isFunction=Ke;function Ew(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}o3.isPrimitive=Ew;o3.isBuffer=Th();function Yi(e){return Object.prototype.toString.call(e)}function Ji(e){return e<10?"0"+e.toString(10):e.toString(10)}var Sw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jw(){var e=new Date,n=[Ji(e.getHours()),Ji(e.getMinutes()),Ji(e.getSeconds())].join(":");return[e.getDate(),Sw[e.getMonth()],n].join(" ")}o3.log=function(){console.log("%s - %s",jw(),o3.format.apply(o3,arguments))};o3.inherits=Fh();o3._extend=function(e,n){if(!n||!n6(n))return e;for(var r=Object.keys(n),o=r.length;o--;)e[r[o]]=n[r[o]];return e};function Zh(e,n){return Object.prototype.hasOwnProperty.call(e,n)}var R1=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;o3.promisify=function(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type Function');if(R1&&n[R1]){var r=n[R1];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,R1,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var o,i,a=new Promise(function(f,C){o=f,i=C}),s=[],l=0;l{N();"use strict";var c3=bi(),Oh=p7(),z3=Xi(),r6=c3.Tap,l3=z3.format,Qe={array:A2,boolean:Q0,bytes:y2,double:u0,enum:g2,error:B3,fixed:x2,float:t0,int:e0,long:t2,map:v2,null:Q2,record:B3,request:B3,string:n0,union:C2},Ki=/^[A-Za-z_][A-Za-z0-9_]*$/,f2=new c3.Lcg,R0=new r6(new Oh.SlowBuffer(1024)),h3=[],t7=null;function T1(e,n){if(e instanceof K)return e;n=F1(e,n);var r;if(typeof e=="string"){if(n.namespace&&!~e.indexOf(".")&&!ea(e)&&(e=n.namespace+"."+e),r=n.registry[e],r)return r;if(ea(e))return r=n.registry[e]=T1({type:e},n),r;throw new Error(l3("undefined type name: %s",e))}if(n.typeHook&&(r=n.typeHook(e,n))){if(!(r instanceof K))throw new Error(l3("invalid typehook return value: %j",r));return r}if(e.logicalType&&!t7){var o=n.logicalTypes[e.logicalType];if(o){var i={};Object.keys(n.registry).forEach(function(a){i[a]=n.registry[a]});try{return new o(e,n)}catch(a){if(n.assertLogicalTypes)throw a;t7=null,n.registry=i}}}return e instanceof Array?r=new C2(e,n):r=function(a){var s=Qe[a];if(s===void 0)throw new Error(l3("unknown type: %j",a));return new s(e,n)}(e.type),r}function K(e){var n=this._name,r=t7||this;if(t7=null,!(e===void 0||n===void 0)){var o=e[n];if(o!==void 0)throw new Error(l3("duplicate type name: %s",n));e[n]=r}}K.__reset=function(e){R0.buf=new Oh.SlowBuffer(e)};K.prototype.createResolver=function(e,n){if(!(e instanceof K))throw new Error(l3("not a type: %j",e));if(e instanceof d2&&!(this instanceof d2))return this.createResolver(e._underlyingType,n);n=n||{},n.registry=n.registry||{};var r,o;if(this instanceof B3&&e instanceof B3&&(o=this._name+":"+e._name,r=n.registry[o],r))return r;if(r=new Uh(this),o&&(n.registry[o]=r),e instanceof C2){var i=e._types.map(function(a){return this.createResolver(a,n)},this);r._read=function(a){var s=a.readLong(),l=i[s];if(l===void 0)throw new Error(l3("invalid union index: %s",s));return i[s]._read(a)}}else this._updateResolver(r,e,n);if(!r._read)throw new Error(l3("cannot read %s as %s",e,this));return r};K.prototype.decode=function(e,n,r){var o=new r6(e);o.pos=n|0;var i=zh(this,o,r);return o.isValid()?{value:i,offset:o.pos}:{value:void 0,offset:-1}};K.prototype.encode=function(e,n,r){var o=new r6(n);return o.pos=r|0,this._write(o,e),o.isValid()?o.pos:n.length-o.pos};K.prototype.fromBuffer=function(e,n,r){var o=new r6(e),i=zh(this,o,n,r);if(!o.isValid())throw new Error("truncated buffer");if(!r&&o.pos",this.constructor.name);var e=JSON.parse(this.getSchema(!0));return typeof e=="object"&&(e.type=void 0),l3("<%s %j>",this.constructor.name,e)};K.prototype._check=c3.abstractFunction;K.prototype._copy=c3.abstractFunction;K.prototype._match=c3.abstractFunction;K.prototype._read=c3.abstractFunction;K.prototype._skip=c3.abstractFunction;K.prototype._updateResolver=c3.abstractFunction;K.prototype._write=c3.abstractFunction;K.prototype.compare=c3.abstractFunction;K.prototype.random=c3.abstractFunction;function S3(){K.call(this)}z3.inherits(S3,K);S3.prototype._updateResolver=function(e,n){n.constructor===this.constructor&&(e._read=this._read)};S3.prototype._copy=function(e){return this._check(e,b3),e};S3.prototype.compare=c3.compare;function Q2(){S3.call(this)}z3.inherits(Q2,S3);Q2.prototype._check=function(e,n){var r=e===null;return!r&&n&&n(h3.slice(),e,this),r};Q2.prototype._read=function(){return null};Q2.prototype._skip=function(){};Q2.prototype._write=function(e,n){n!==null&&b3(null,n,this)};Q2.prototype._match=function(){return 0};Q2.prototype.compare=Q2.prototype._match;Q2.prototype.random=Q2.prototype._read;Q2.prototype.toJSON=function(){return"null"};function Q0(){S3.call(this)}z3.inherits(Q0,S3);Q0.prototype._check=function(e,n){var r=typeof e=="boolean";return!r&&n&&n(h3.slice(),e,this),r};Q0.prototype._read=function(e){return e.readBoolean()};Q0.prototype._skip=function(e){e.skipBoolean()};Q0.prototype._write=function(e,n){typeof n!="boolean"&&b3(null,n,this),e.writeBoolean(n)};Q0.prototype._match=function(e,n){return e.matchBoolean(n)};Q0.prototype.random=function(){return f2.nextBoolean()};Q0.prototype.toJSON=function(){return"boolean"};function e0(){S3.call(this)}z3.inherits(e0,S3);e0.prototype._check=function(e,n){var r=e===(e|0);return!r&&n&&n(h3.slice(),e,this),r};e0.prototype._read=function(e){return e.readInt()};e0.prototype._skip=function(e){e.skipInt()};e0.prototype._write=function(e,n){n!==(n|0)&&b3(null,n,this),e.writeInt(n)};e0.prototype._match=function(e,n){return e.matchInt(n)};e0.prototype.random=function(){return f2.nextInt(1e3)|0};e0.prototype.toJSON=function(){return"int"};function t2(){S3.call(this)}z3.inherits(t2,S3);t2.prototype._check=function(e,n){var r=typeof e=="number"&&e%1==0&&na(e);return!r&&n&&n(h3.slice(),e,this),r};t2.prototype._read=function(e){var n=e.readLong();if(!na(n))throw new Error("potential precision loss");return n};t2.prototype._skip=function(e){e.skipLong()};t2.prototype._write=function(e,n){(typeof n!="number"||n%1||!na(n))&&b3(null,n,this),e.writeLong(n)};t2.prototype._match=function(e,n){return e.matchLong(n)};t2.prototype._updateResolver=function(e,n){(n instanceof t2||n instanceof e0)&&(e._read=n._read)};t2.prototype.random=function(){return f2.nextInt()};t2.prototype.toJSON=function(){return"long"};t2.using=function(e,n){e=e||{};var r={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},o=new I2(n);return Object.keys(r).forEach(function(i){if(e[i]===void 0)throw new Error(l3("missing method implementation: %s",i));o[r[i]]=e[i]}),o};function t0(){S3.call(this)}z3.inherits(t0,S3);t0.prototype._check=function(e,n){var r=typeof e=="number";return!r&&n&&n(h3.slice(),e,this),r};t0.prototype._read=function(e){return e.readFloat()};t0.prototype._skip=function(e){e.skipFloat()};t0.prototype._write=function(e,n){typeof n!="number"&&b3(null,n,this),e.writeFloat(n)};t0.prototype._match=function(e,n){return e.matchFloat(n)};t0.prototype._updateResolver=function(e,n){(n instanceof t0||n instanceof t2||n instanceof e0)&&(e._read=n._read)};t0.prototype.random=function(){return f2.nextFloat(1e3)};t0.prototype.toJSON=function(){return"float"};function u0(){S3.call(this)}z3.inherits(u0,S3);u0.prototype._check=function(e,n){var r=typeof e=="number";return!r&&n&&n(h3.slice(),e,this),r};u0.prototype._read=function(e){return e.readDouble()};u0.prototype._skip=function(e){e.skipDouble()};u0.prototype._write=function(e,n){typeof n!="number"&&b3(null,n,this),e.writeDouble(n)};u0.prototype._match=function(e,n){return e.matchDouble(n)};u0.prototype._updateResolver=function(e,n){(n instanceof u0||n instanceof t0||n instanceof t2||n instanceof e0)&&(e._read=n._read)};u0.prototype.random=function(){return f2.nextFloat()};u0.prototype.toJSON=function(){return"double"};function n0(){S3.call(this)}z3.inherits(n0,S3);n0.prototype._check=function(e,n){var r=typeof e=="string";return!r&&n&&n(h3.slice(),e,this),r};n0.prototype._read=function(e){return e.readString()};n0.prototype._skip=function(e){e.skipString()};n0.prototype._write=function(e,n){typeof n!="string"&&b3(null,n,this),e.writeString(n)};n0.prototype._match=function(e,n){return e.matchString(n)};n0.prototype._updateResolver=function(e,n){(n instanceof n0||n instanceof y2)&&(e._read=this._read)};n0.prototype.random=function(){return f2.nextString(f2.nextInt(32))};n0.prototype.toJSON=function(){return"string"};function y2(){S3.call(this)}z3.inherits(y2,S3);y2.prototype._check=function(e,n){var r=R.isBuffer(e);return!r&&n&&n(h3.slice(),e,this),r};y2.prototype._read=function(e){return e.readBytes()};y2.prototype._skip=function(e){e.skipBytes()};y2.prototype._write=function(e,n){R.isBuffer(n)||b3(null,n,this),e.writeBytes(n)};y2.prototype._match=function(e,n){return e.matchBytes(n)};y2.prototype._updateResolver=n0.prototype._updateResolver;y2.prototype._copy=function(e,n){var r;switch((n&&n.coerce)|0){case 3:return this._check(e,b3),e.toString("binary");case 2:if(typeof e!="string")throw new Error(l3("cannot coerce to buffer: %j",e));return r=new R(e,"binary"),this._check(r,b3),r;case 1:if(!e||e.type!=="Buffer"||!(e.data instanceof Array))throw new Error(l3("cannot coerce to buffer: %j",e));return r=new R(e.data),this._check(r,b3),r;default:return this._check(e,b3),new R(e)}};y2.prototype.compare=R.compare;y2.prototype.random=function(){return f2.nextBuffer(f2.nextInt(32))};y2.prototype.toJSON=function(){return"bytes"};function C2(e,n){if(!(e instanceof Array))throw new Error(l3("non-array union schema: %j",e));if(!e.length)throw new Error("empty union");n=F1(e,n),K.call(this),this._types=e.map(function(r){return T1(r,n)}),this._indices={},this._types.forEach(function(r,o){if(r instanceof C2)throw new Error("unions cannot be directly nested");var i=r._name||Qi(r);if(this._indices[i]!==void 0)throw new Error(l3("duplicate union name: %j",i));this._indices[i]=o},this),this._constructors=this._types.map(function(r){var o=r._name||Qi(r);if(o==="null")return null;var i;return~o.indexOf(".")?i="this['"+o+"'] = val;":i="this."+o+" = val;",new Function("val",i)})}z3.inherits(C2,K);C2.prototype._check=function(e,n){var r=!1;if(e===null)r=this._indices.null!==void 0;else if(typeof e=="object"){var o=Object.keys(e);if(o.length===1){var i=o[0],a=this._indices[i];if(a!==void 0)return h3.push(i),r=this._types[a]._check(e[i],n),h3.pop(),r}}return!r&&n&&n(h3.slice(),e,this),r};C2.prototype._read=function(e){var n=e.readLong(),r=this._constructors[n];if(r)return new r(this._types[n]._read(e));if(r===null)return null;throw new Error(l3("invalid union index: %s",n))};C2.prototype._skip=function(e){this._types[e.readLong()]._skip(e)};C2.prototype._write=function(e,n){var r,o,i;n===null?(r=this._indices.null,r===void 0&&b3(null,n,this),e.writeLong(r)):(o=Object.keys(n),o.length===1&&(i=o[0],r=this._indices[i]),r===void 0&&b3(null,n,this),e.writeLong(r),this._types[r]._write(e,n[i]))};C2.prototype._match=function(e,n){var r=e.readLong(),o=n.readLong();return r===o?this._types[r]._match(e,n):r=0&&o++,s+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(e===""?"":e+`
+ `)+" "+n.join(`,
+ `)+" "+r[1]:r[0]+e+" "+n.join(", ")+" "+r[1]}c3.types=u_();function g_(n){return Array.isArray(n)}c3.isArray=g_;function tC(n){return typeof n=="boolean"}c3.isBoolean=tC;function vo(n){return n===null}c3.isNull=vo;function WP(n){return n==null}c3.isNullOrUndefined=WP;function k_(n){return typeof n=="number"}c3.isNumber=k_;function Mo(n){return typeof n=="string"}c3.isString=Mo;function IP(n){return typeof n=="symbol"}c3.isSymbol=IP;function z5(n){return n===void 0}c3.isUndefined=z5;function ge(n){return D9(n)&&nC(n)==="[object RegExp]"}c3.isRegExp=ge;c3.types.isRegExp=ge;function D9(n){return typeof n=="object"&&n!==null}c3.isObject=D9;function Lo(n){return D9(n)&&nC(n)==="[object Date]"}c3.isDate=Lo;c3.types.isDate=Lo;function ke(n){return D9(n)&&(nC(n)==="[object Error]"||n instanceof Error)}c3.isError=ke;c3.types.isNativeError=ke;function _o(n){return typeof n=="function"}c3.isFunction=_o;function DP(n){return n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||typeof n=="symbol"||typeof n=="undefined"}c3.isPrimitive=DP;c3.isBuffer=p_();function nC(n){return Object.prototype.toString.call(n)}function rC(n){return n<10?"0"+n.toString(10):n.toString(10)}var FP=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function PP(){var n=new Date,e=[rC(n.getHours()),rC(n.getMinutes()),rC(n.getSeconds())].join(":");return[n.getDate(),FP[n.getMonth()],e].join(" ")}c3.log=function(){console.log("%s - %s",PP(),c3.format.apply(c3,arguments))};c3.inherits=h_();c3._extend=function(n,e){if(!e||!D9(e))return n;for(var r=Object.keys(e),o=r.length;o--;)n[r[o]]=e[r[o]];return n};function x_(n,e){return Object.prototype.hasOwnProperty.call(n,e)}var q5=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;c3.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(q5&&e[q5]){var r=e[q5];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,q5,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var o,i,s=new Promise(function(f,d){o=f,i=d}),a=[],l=0;l{N();"use strict";var b3=Td(),v_=Re(),C2=oC(),F9=b3.Tap,m3=C2.format,No={array:u0,boolean:z4,bytes:J2,double:Q0,enum:Q2,error:i2,fixed:e0,float:Z0,int:O0,long:A2,map:t0,null:B0,record:i2,request:i2,string:U0,union:O2},iC=/^[A-Za-z_][A-Za-z0-9_]*$/,B2=new b3.Lcg,v4=new F9(new v_.SlowBuffer(1024)),E3=[],xe=null;function H5(n,e){if(n instanceof o3)return n;e=$5(n,e);var r;if(typeof n=="string"){if(e.namespace&&!~n.indexOf(".")&&!aC(n)&&(n=e.namespace+"."+n),r=e.registry[n],r)return r;if(aC(n))return r=e.registry[n]=H5({type:n},e),r;throw new Error(m3("undefined type name: %s",n))}if(e.typeHook&&(r=e.typeHook(n,e))){if(!(r instanceof o3))throw new Error(m3("invalid typehook return value: %j",r));return r}if(n.logicalType&&!xe){var o=e.logicalTypes[n.logicalType];if(o){var i={};Object.keys(e.registry).forEach(function(s){i[s]=e.registry[s]});try{return new o(n,e)}catch(s){if(e.assertLogicalTypes)throw s;xe=null,e.registry=i}}}return n instanceof Array?r=new O2(n,e):r=function(s){var a=No[s];if(a===void 0)throw new Error(m3("unknown type: %j",s));return new a(n,e)}(n.type),r}function o3(n){var e=this._name,r=xe||this;if(xe=null,!(n===void 0||e===void 0)){var o=n[e];if(o!==void 0)throw new Error(m3("duplicate type name: %s",e));n[e]=r}}o3.__reset=function(n){v4.buf=new v_.SlowBuffer(n)};o3.prototype.createResolver=function(n,e){if(!(n instanceof o3))throw new Error(m3("not a type: %j",n));if(n instanceof Z2&&!(this instanceof Z2))return this.createResolver(n._underlyingType,e);e=e||{},e.registry=e.registry||{};var r,o;if(this instanceof i2&&n instanceof i2&&(o=this._name+":"+n._name,r=e.registry[o],r))return r;if(r=new M_(this),o&&(e.registry[o]=r),n instanceof O2){var i=n._types.map(function(s){return this.createResolver(s,e)},this);r._read=function(s){var a=s.readLong(),l=i[a];if(l===void 0)throw new Error(m3("invalid union index: %s",a));return i[a]._read(s)}}else this._updateResolver(r,n,e);if(!r._read)throw new Error(m3("cannot read %s as %s",n,this));return r};o3.prototype.decode=function(n,e,r){var o=new F9(n);o.pos=e|0;var i=L_(this,o,r);return o.isValid()?{value:i,offset:o.pos}:{value:void 0,offset:-1}};o3.prototype.encode=function(n,e,r){var o=new F9(e);return o.pos=r|0,this._write(o,n),o.isValid()?o.pos:e.length-o.pos};o3.prototype.fromBuffer=function(n,e,r){var o=new F9(n),i=L_(this,o,e,r);if(!o.isValid())throw new Error("truncated buffer");if(!r&&o.pos",this.constructor.name);var n=JSON.parse(this.getSchema(!0));return typeof n=="object"&&(n.type=void 0),m3("<%s %j>",this.constructor.name,n)};o3.prototype._check=b3.abstractFunction;o3.prototype._copy=b3.abstractFunction;o3.prototype._match=b3.abstractFunction;o3.prototype._read=b3.abstractFunction;o3.prototype._skip=b3.abstractFunction;o3.prototype._updateResolver=b3.abstractFunction;o3.prototype._write=b3.abstractFunction;o3.prototype.compare=b3.abstractFunction;o3.prototype.random=b3.abstractFunction;function z3(){o3.call(this)}C2.inherits(z3,o3);z3.prototype._updateResolver=function(n,e){e.constructor===this.constructor&&(n._read=this._read)};z3.prototype._copy=function(n){return this._check(n,O3),n};z3.prototype.compare=b3.compare;function B0(){z3.call(this)}C2.inherits(B0,z3);B0.prototype._check=function(n,e){var r=n===null;return!r&&e&&e(E3.slice(),n,this),r};B0.prototype._read=function(){return null};B0.prototype._skip=function(){};B0.prototype._write=function(n,e){e!==null&&O3(null,e,this)};B0.prototype._match=function(){return 0};B0.prototype.compare=B0.prototype._match;B0.prototype.random=B0.prototype._read;B0.prototype.toJSON=function(){return"null"};function z4(){z3.call(this)}C2.inherits(z4,z3);z4.prototype._check=function(n,e){var r=typeof n=="boolean";return!r&&e&&e(E3.slice(),n,this),r};z4.prototype._read=function(n){return n.readBoolean()};z4.prototype._skip=function(n){n.skipBoolean()};z4.prototype._write=function(n,e){typeof e!="boolean"&&O3(null,e,this),n.writeBoolean(e)};z4.prototype._match=function(n,e){return n.matchBoolean(e)};z4.prototype.random=function(){return B2.nextBoolean()};z4.prototype.toJSON=function(){return"boolean"};function O0(){z3.call(this)}C2.inherits(O0,z3);O0.prototype._check=function(n,e){var r=n===(n|0);return!r&&e&&e(E3.slice(),n,this),r};O0.prototype._read=function(n){return n.readInt()};O0.prototype._skip=function(n){n.skipInt()};O0.prototype._write=function(n,e){e!==(e|0)&&O3(null,e,this),n.writeInt(e)};O0.prototype._match=function(n,e){return n.matchInt(e)};O0.prototype.random=function(){return B2.nextInt(1e3)|0};O0.prototype.toJSON=function(){return"int"};function A2(){z3.call(this)}C2.inherits(A2,z3);A2.prototype._check=function(n,e){var r=typeof n=="number"&&n%1==0&&fC(n);return!r&&e&&e(E3.slice(),n,this),r};A2.prototype._read=function(n){var e=n.readLong();if(!fC(e))throw new Error("potential precision loss");return e};A2.prototype._skip=function(n){n.skipLong()};A2.prototype._write=function(n,e){(typeof e!="number"||e%1||!fC(e))&&O3(null,e,this),n.writeLong(e)};A2.prototype._match=function(n,e){return n.matchLong(e)};A2.prototype._updateResolver=function(n,e){(e instanceof A2||e instanceof O0)&&(n._read=e._read)};A2.prototype.random=function(){return B2.nextInt()};A2.prototype.toJSON=function(){return"long"};A2.using=function(n,e){n=n||{};var r={toBuffer:"_toBuffer",fromBuffer:"_fromBuffer",fromJSON:"_fromJSON",toJSON:"_toJSON",isValid:"_isValid",compare:"compare"},o=new M0(e);return Object.keys(r).forEach(function(i){if(n[i]===void 0)throw new Error(m3("missing method implementation: %s",i));o[r[i]]=n[i]}),o};function Z0(){z3.call(this)}C2.inherits(Z0,z3);Z0.prototype._check=function(n,e){var r=typeof n=="number";return!r&&e&&e(E3.slice(),n,this),r};Z0.prototype._read=function(n){return n.readFloat()};Z0.prototype._skip=function(n){n.skipFloat()};Z0.prototype._write=function(n,e){typeof e!="number"&&O3(null,e,this),n.writeFloat(e)};Z0.prototype._match=function(n,e){return n.matchFloat(e)};Z0.prototype._updateResolver=function(n,e){(e instanceof Z0||e instanceof A2||e instanceof O0)&&(n._read=e._read)};Z0.prototype.random=function(){return B2.nextFloat(1e3)};Z0.prototype.toJSON=function(){return"float"};function Q0(){z3.call(this)}C2.inherits(Q0,z3);Q0.prototype._check=function(n,e){var r=typeof n=="number";return!r&&e&&e(E3.slice(),n,this),r};Q0.prototype._read=function(n){return n.readDouble()};Q0.prototype._skip=function(n){n.skipDouble()};Q0.prototype._write=function(n,e){typeof e!="number"&&O3(null,e,this),n.writeDouble(e)};Q0.prototype._match=function(n,e){return n.matchDouble(e)};Q0.prototype._updateResolver=function(n,e){(e instanceof Q0||e instanceof Z0||e instanceof A2||e instanceof O0)&&(n._read=e._read)};Q0.prototype.random=function(){return B2.nextFloat()};Q0.prototype.toJSON=function(){return"double"};function U0(){z3.call(this)}C2.inherits(U0,z3);U0.prototype._check=function(n,e){var r=typeof n=="string";return!r&&e&&e(E3.slice(),n,this),r};U0.prototype._read=function(n){return n.readString()};U0.prototype._skip=function(n){n.skipString()};U0.prototype._write=function(n,e){typeof e!="string"&&O3(null,e,this),n.writeString(e)};U0.prototype._match=function(n,e){return n.matchString(e)};U0.prototype._updateResolver=function(n,e){(e instanceof U0||e instanceof J2)&&(n._read=this._read)};U0.prototype.random=function(){return B2.nextString(B2.nextInt(32))};U0.prototype.toJSON=function(){return"string"};function J2(){z3.call(this)}C2.inherits(J2,z3);J2.prototype._check=function(n,e){var r=T.isBuffer(n);return!r&&e&&e(E3.slice(),n,this),r};J2.prototype._read=function(n){return n.readBytes()};J2.prototype._skip=function(n){n.skipBytes()};J2.prototype._write=function(n,e){T.isBuffer(e)||O3(null,e,this),n.writeBytes(e)};J2.prototype._match=function(n,e){return n.matchBytes(e)};J2.prototype._updateResolver=U0.prototype._updateResolver;J2.prototype._copy=function(n,e){var r;switch((e&&e.coerce)|0){case 3:return this._check(n,O3),n.toString("binary");case 2:if(typeof n!="string")throw new Error(m3("cannot coerce to buffer: %j",n));return r=new T(n,"binary"),this._check(r,O3),r;case 1:if(!n||n.type!=="Buffer"||!(n.data instanceof Array))throw new Error(m3("cannot coerce to buffer: %j",n));return r=new T(n.data),this._check(r,O3),r;default:return this._check(n,O3),new T(n)}};J2.prototype.compare=T.compare;J2.prototype.random=function(){return B2.nextBuffer(B2.nextInt(32))};J2.prototype.toJSON=function(){return"bytes"};function O2(n,e){if(!(n instanceof Array))throw new Error(m3("non-array union schema: %j",n));if(!n.length)throw new Error("empty union");e=$5(n,e),o3.call(this),this._types=n.map(function(r){return H5(r,e)}),this._indices={},this._types.forEach(function(r,o){if(r instanceof O2)throw new Error("unions cannot be directly nested");var i=r._name||sC(r);if(this._indices[i]!==void 0)throw new Error(m3("duplicate union name: %j",i));this._indices[i]=o},this),this._constructors=this._types.map(function(r){var o=r._name||sC(r);if(o==="null")return null;var i;return~o.indexOf(".")?i="this['"+o+"'] = val;":i="this."+o+" = val;",new Function("val",i)})}C2.inherits(O2,o3);O2.prototype._check=function(n,e){var r=!1;if(n===null)r=this._indices.null!==void 0;else if(typeof n=="object"){var o=Object.keys(n);if(o.length===1){var i=o[0],s=this._indices[i];if(s!==void 0)return E3.push(i),r=this._types[s]._check(n[i],e),E3.pop(),r}}return!r&&e&&e(E3.slice(),n,this),r};O2.prototype._read=function(n){var e=n.readLong(),r=this._constructors[e];if(r)return new r(this._types[e]._read(n));if(r===null)return null;throw new Error(m3("invalid union index: %s",e))};O2.prototype._skip=function(n){this._types[n.readLong()]._skip(n)};O2.prototype._write=function(n,e){var r,o,i;e===null?(r=this._indices.null,r===void 0&&O3(null,e,this),n.writeLong(r)):(o=Object.keys(e),o.length===1&&(i=o[0],r=this._indices[i]),r===void 0&&O3(null,e,this),n.writeLong(r),this._types[r]._write(n,e[i]))};O2.prototype._match=function(n,e){var r=n.readLong(),o=e.readLong();return r===o?this._types[r]._match(n,e):r1)throw new Error(l3("multiple matches for %s",p.name));if(y.length)c=y[0],l[c]={resolver:p._type.createResolver(a[c]._type,r),name:p._name},s.push(p._name);else{if(p.getDefault()===void 0)throw new Error(l3("no match for default-less %s",p.name));s.push("undefined")}}var b=-1;for(f=i.length;f&&l[i[--f]._name]===void 0;)b=f;var L=V4(this._name),k=[L],m=[this._constructor],g=" return function read"+L+`(tap,lazy) {
-`;for(f=0;f=b?" ":" ",l[c]===void 0?(k.push("t"+f),m.push(p._type),g+="t"+f+`._skip(tap);
-`):(k.push("t"+f),m.push(l[c].resolver),g+="var "+l[c].name+" = ",g+="t"+f+`._read(tap);
-`);~b&&(g+=` }
-`),g+=" return new "+L+"("+s.join()+`);
-};`,e._read=new Function(k.join(),g).apply(void 0,m)};B3.prototype._match=function(e,n){var r=this._fields,o,i,a,s,l;for(o=0,i=r.length;o",this._name)};function Uh(e){this._readerType=e,this._items=null,this._read=null,this._size=0,this._symbols=null,this._values=null}Uh.prototype.inspect=function(){return""};function zh(e,n,r,o){if(r){if(r._readerType!==e)throw new Error("invalid resolver");return r._read(n,o)}else return e._read(n)}function F1(e,n){if(e===null)throw new Error('invalid type: null (did you mean "null"?)');return n=n||{},n.registry=n.registry||{},n.namespace=e.namespace||n.namespace,n.logicalTypes=n.logicalTypes||{},n}function et(e,n,r){n=e.namespace||n,r=r||"name";var o=e[r];if(!o)throw new Error(l3("missing %s property in schema: %j",r,e));return{name:i(o),aliases:e.aliases?e.aliases.map(i):[]};function i(a){!~a.indexOf(".")&&n&&(a=n+"."+a);var s=V4(a);if(ea(s))throw new Error(l3("cannot rename primitive type: %j",s));return a.split(".").forEach(function(l){if(!Ki.test(l))throw new Error(l3("invalid name: %j",a))}),a}}function V4(e){var n=e.split(".");return n[n.length-1]}function tt(e){var n=[e._name],r=e._aliases,o,i;for(o=0,i=r.length;o=-9007199254740990&&e<=9007199254740990}function b3(e,n,r){throw new Error(l3("invalid %s: %j",r,n))}Hh.exports={createType:T1,resolveNames:et,stringify:Gh,types:function(){var e={Type:K,LogicalType:d2},n=Object.keys(Qe),r,o,i;for(r=0,o=n.length;r{N();(function(e,n){typeof ra=="object"&&typeof oa!="undefined"?oa.exports=n():typeof define=="function"&&define.amd?define("underscore",n):(e=typeof globalThis!="undefined"?globalThis:e||self,function(){var r=e._,o=e._=n();o.noConflict=function(){return e._=r,o}}())})(ra,function(){var e="1.13.1",n=typeof self=="object"&&self.self===self&&self||typeof window=="object"&&window.global===window&&window||Function("return this")()||{},r=Array.prototype,o=Object.prototype,i=typeof Symbol!="undefined"?Symbol.prototype:null,a=r.push,s=r.slice,l=o.toString,f=o.hasOwnProperty,C=typeof ArrayBuffer!="undefined",p=typeof DataView!="undefined",c=Array.isArray,u=Object.keys,y=Object.create,b=C&&ArrayBuffer.isView,L=isNaN,k=isFinite,m=!{toString:null}.propertyIsEnumerable("toString"),g=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function v(d,h){return h=h==null?d.length-1:+h,function(){for(var M=Math.max(arguments.length-h,0),_=Array(M),S=0;S=0&&M<=x}}function xa(d){return function(h){return h==null?void 0:h[d]}}var i7=xa("byteLength"),qm=ga(i7),Ym=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function Jm(d){return b?b(d)&&!o7(d):qm(d)&&Ym.test(l.call(d))}var va=C?Jm:ya(!1),M2=xa("length");function Xm(d){for(var h={},M=d.length,_=0;_":">",'"':""","'":"'","`":"`"},ck=Pa(Za),hk=ja(Za),mk=Pa(hk),kk=d3.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Nt=/(.)^/,yk={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},gk=/\\|'|\r|\n|\u2028|\u2029/g;function xk(d){return"\\"+yk[d]}var vk=/^\s*(\w|\$)+\s*$/;function Mk(d,h,M){!h&&M&&(h=M),h=Aa({},h,d3.templateSettings);var _=RegExp([(h.escape||Nt).source,(h.interpolate||Nt).source,(h.evaluate||Nt).source].join("|")+"|$","g"),S=0,w="__p+='";d.replace(_,function(J,H3,u2,ss,ls){return w+=d.slice(S,ls).replace(gk,xk),S=ls+J.length,H3?w+=`'+
-((__t=(`+H3+`))==null?'':_.escape(__t))+
-'`:u2?w+=`'+
-((__t=(`+u2+`))==null?'':__t)+
-'`:ss&&(w+=`';
-`+ss+`
-__p+='`),J}),w+=`';
-`;var D=h.variable;if(D){if(!vk.test(D))throw new Error("variable is not a bare identifier: "+D)}else w=`with(obj||{}){
-`+w+`}
-`,D="obj";w=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
-`+w+`return __p;
-`;var O;try{O=new Function(D,"_",w)}catch(J){throw J.source=w,J}var Q=function(J){return O.call(this,J,d3)};return Q.source="function("+D+`){
-`+w+"}",Q}function Lk(d,h,M){h=C6(h);var _=h.length;if(!_)return p2(M)?M.call(d):M;for(var S=0;S<_;S++){var w=d==null?void 0:d[h[S]];w===void 0&&(w=M,S=_),d=p2(w)?w.call(d):w}return d}var _k=0;function Nk(d){var h=++_k+"";return d?d+h:h}function bk(d){var h=d3(d);return h._chain=!0,h}function Oa(d,h,M,_,S){if(!(_ instanceof h))return d.apply(M,S);var w=Ra(d.prototype),D=d.apply(w,S);return E(D)?D:w}var B1=v(function(d,h){var M=B1.placeholder,_=function(){for(var S=0,w=h.length,D=Array(w),O=0;O1)J4(O,h-1,M,_),S=_.length;else for(var Q=0,J=O.length;Qh?(_&&(clearTimeout(_),_=null),O=H3,D=d.apply(S,w),_||(S=w=null)):!_&&M.trailing!==!1&&(_=setTimeout(Q,u2)),D};return J.cancel=function(){clearTimeout(_),O=0,_=S=w=null},J}function Wk(d,h,M){var _,S,w,D,O,Q=function(){var H3=u6()-S;h>H3?_=setTimeout(Q,h-H3):(_=null,M||(D=d.apply(O,w)),_||(w=O=null))},J=v(function(H3){return O=this,w=H3,S=u6(),_||(_=setTimeout(Q,h),M&&(D=d.apply(O,w))),D});return J.cancel=function(){clearTimeout(_),_=w=O=null},J}function Ak(d,h){return B1(h,d)}function bt(d){return function(){return!d.apply(this,arguments)}}function Rk(){var d=arguments,h=d.length-1;return function(){for(var M=h,_=d[h].apply(this,arguments);M--;)_=d[M].call(this,_);return _}}function Tk(d,h){return function(){if(--d<1)return h.apply(this,arguments)}}function Ga(d,h){var M;return function(){return--d>0&&(M=h.apply(this,arguments)),d<=1&&(h=null),M}}var Fk=B1(Ga,2);function Ha(d,h,M){h=L2(h,M);for(var _=G3(d),S,w=0,D=_.length;w0?0:S-1;w>=0&&w0?D=w>=0?w:Math.max(w+O,D):O=w>=0?Math.min(w+1,O):w+O+1;else if(M&&w&&O)return w=M(_,S),_[w]===S?w:-1;if(S!==S)return w=h(s.call(_,D,O),ka),w>=0?w+D:-1;for(w=d>0?D:O-1;w>=0&&w0?0:O-1;for(w||(S=M[D?D[Q]:Q],Q+=d);Q>=0&&Q=3;return h(M,p6(_,w,4),S,D)}}var St=Xa(1),Ka=Xa(-1);function P1(d,h,M){var _=[];return h=L2(h,M),F0(d,function(S,w,D){h(S,w,D)&&_.push(S)}),_}function Bk(d,h,M){return P1(d,bt(L2(h)),M)}function Qa(d,h,M){h=L2(h,M);for(var _=!_2(d)&&G3(d),S=(_||d).length,w=0;w=0}var Pk=v(function(d,h,M){var _,S;return p2(h)?S=h:(h=C6(h),_=h.slice(0,-1),h=h[h.length-1]),X4(d,function(w){var D=S;if(!D){if(_&&_.length&&(w=xt(w,_)),w==null)return;D=w[h]}return D==null?D:D.apply(w,M)})});function jt(d,h){return X4(d,Mt(h))}function Zk(d,h){return P1(d,d6(h))}function ts(d,h,M){var _=-1/0,S=-1/0,w,D;if(h==null||typeof h=="number"&&typeof d[0]!="object"&&d!=null){d=_2(d)?d:Y4(d);for(var O=0,Q=d.length;O_&&(_=w)}else h=L2(h,M),F0(d,function(J,H3,u2){D=h(J,H3,u2),(D>S||D===-1/0&&_===-1/0)&&(_=J,S=D)});return _}function Ok(d,h,M){var _=1/0,S=1/0,w,D;if(h==null||typeof h=="number"&&typeof d[0]!="object"&&d!=null){d=_2(d)?d:Y4(d);for(var O=0,Q=d.length;OO||D===void 0)return 1;if(D1&&(_=p6(_,h[1])),h=f6(d)):(_=Xk,h=J4(h,!1,!1),d=Object(d));for(var S=0,w=h.length;S1&&(_=h[1])):(h=X4(J4(h,!1,!1),String),M=function(S,w){return!D0(h,w)}),rs(d,M,_)});function os(d,h,M){return s.call(d,0,Math.max(0,d.length-(h==null||M?1:h)))}function Wt(d,h,M){return d==null||d.length<1?h==null||M?void 0:[]:h==null||M?d[0]:os(d,d.length-h)}function l7(d,h,M){return s.call(d,h==null||M?1:h)}function Qk(d,h,M){return d==null||d.length<1?h==null||M?void 0:[]:h==null||M?d[d.length-1]:l7(d,Math.max(0,d.length-h))}function ey(d){return P1(d,Boolean)}function ty(d,h){return J4(d,h,!1)}var is=v(function(d,h){return h=J4(h,!0,!0),P1(d,function(M){return!D0(h,M)})}),ny=v(function(d,h){return is(d,h)});function At(d,h,M,_){I(h)||(_=M,M=h,h=!1),M!=null&&(M=L2(M,_));for(var S=[],w=[],D=0,O=M2(d);D{N();var U=$h(),qh=Xi(),Yh="Validator API is deprecated. Please use the type API instead.";o6=qh.deprecate(o6,Yh);n7=qh.deprecate(n7,Yh);var $4={PrimitiveTypes:["null","boolean","int","long","float","double","bytes","string"],ComplexTypes:["record","enum","array","map","union","fixed"]};$4.Types=$4.PrimitiveTypes.concat($4.ComplexTypes);var M3=function(e){return new Error("InvalidSchemaError: "+e)},Rw=function(e){return new Error("InvalidProtocolError: "+e)},P3=function(e){return new Error("ValidationError: "+e)},Tw=function(e){return new Error("ProtocolValidationError: "+e)};function Jh(e,n,r){function o(i,a,s){if(!U.isString(i))throw new M3("Record name must be string");if(!U.isNull(a)&&!U.isUndefined(a)&&!U.isString(a))throw new M3("Record namespace must be string or null");if(!U.isArray(s))throw new M3("Record name must be string")}o(e,n,r),this.name=e,this.namespace=n,this.fields=r}function D1(e,n){var r=null;if(U.isString(e))r=e;else if(U.isObject(e))U.isString(e.namespace)&&(n=e.namespace),U.isString(e.name)?r=e.name:U.isString(e.type)&&(r=e.type);else throw new M3("unable to determine fully qualified type name from schema "+JSON.stringify(e)+" in namespace "+n);if(!U.isString(r))throw new M3("unable to determine type name from schema "+JSON.stringify(e)+" in namespace "+n);return r.indexOf(".")!==-1||U.contains($4.PrimitiveTypes,r)?r:U.isString(n)?n+"."+r:r}function Xh(e,n){this.branchNames=function(){return U.map(e,function(o){return D1(o,n)})};function r(o){if(!U.isArray(o)||U.isEmpty(o))throw new M3("Union must have at least 1 branch")}r(e),this.typeSchemas=e,this.namespace=n}function Kh(e){function n(r){if(!U.isArray(r))throw new M3("Enum must have array of symbols, got "+JSON.stringify(r));if(!U.all(r,function(o){return U.isString(o)}))throw new M3("Enum symbols must be strings, got "+JSON.stringify(r))}n(e),this.symbols=e}function Qh(e){function n(r){if(U.isNull(r)||U.isUndefined(r))throw new M3('Array "items" schema should not be null or undefined')}n(e),this.itemSchema=e}function em(e){function n(r){if(U.isNull(r)||U.isUndefined(r))throw new M3('Map "values" schema should not be null or undefined')}n(e),this.valueSchema=e}function Fw(e,n){function r(o,i){if(!U.isString(o))throw new M3("Field name must be string")}this.name=e,this.schema=n}function tm(e){function n(r){if(!U.isString(r))throw new M3("Primitive type name must be a string");if(!U.contains($4.PrimitiveTypes,r))throw new M3("Primitive type must be one of: "+JSON.stringify($4.PrimitiveTypes)+"; got "+r)}n(e),this.type=e}function o6(e,n,r){this.validate=function(L){return o(this.schema,L)};var o=function(L,k){if(L instanceof Jh)return i(L,k);if(L instanceof Xh)return a(L,k);if(L instanceof Kh)return s(L,k);if(L instanceof Qh)return l(L,k);if(L instanceof em)return f(L,k);if(L instanceof tm)return C(L,k);throw new M3("validation not yet implemented: "+JSON.stringify(L))},i=function(L,k){if(!U.isObject(k)||U.isArray(k))throw new P3("Expected record Javascript type to be non-array object, got "+JSON.stringify(k));var m=U.pluck(L.fields,"name").sort(),g=U.keys(k).sort();if(!U.isEqual(m,g))throw new P3("Expected record fields "+JSON.stringify(m)+"; got "+JSON.stringify(g));return U.all(L.fields,function(x){return o(x.schema,k[x.name])})},a=function(L,k){if(U.isObject(k)){if(U.isArray(k))throw new P3("Expected union Javascript type to be non-array object (or null), got "+JSON.stringify(k));if(U.size(k)!==1)throw new P3("Expected union Javascript object to be object with exactly 1 key (or null), got "+JSON.stringify(k));var m=U.keys(k)[0];if(m==="")throw new P3("Expected union Javascript object to contain non-empty string branch, got "+JSON.stringify(k));if(U.contains(L.branchNames(),m))return!0;throw new P3("Expected union branch to be one of "+JSON.stringify(L.branchNames())+"; got "+JSON.stringify(m))}else if(U.isNull(k)){if(U.contains(L.branchNames(),"null"))return!0;throw new P3("Expected union branch to be one of "+JSON.stringify(L.branchNames())+"; got "+JSON.stringify(k))}else throw new P3("Expected union Javascript object to be non-array object of size 1 or null, got "+JSON.stringify(k))},s=function(L,k){if(U.isString(k)){if(U.contains(L.symbols,k))return!0;throw new P3("Expected enum value to be one of "+JSON.stringify(L.symbols)+"; got "+JSON.stringify(k))}else throw new P3("Expected enum Javascript object to be string, got "+JSON.stringify(k))},l=function(L,k){if(U.isArray(k))return U.all(k,function(m){return o(L.itemSchema,m)});throw new P3("Expected array Javascript object to be array, got "+JSON.stringify(k))},f=function(L,k){if(U.isObject(k)&&!U.isArray(k))return U.all(k,function(m){return o(L.valueSchema,m)});throw U.isArray(k)?new P3("Expected map Javascript object to be non-array object, got array "+JSON.stringify(k)):new P3("Expected map Javascript object to be non-array object, got "+JSON.stringify(k))},C=function(L,k){switch(L.type){case"null":if(U.isNull(k)||U.isUndefined(k))return!0;throw new P3("Expected Javascript null or undefined for Avro null, got "+JSON.stringify(k));case"boolean":if(U.isBoolean(k))return!0;throw new P3("Expected Javascript boolean for Avro boolean, got "+JSON.stringify(k));case"int":if(U.isNumber(k)&&Math.floor(k)===k&&Math.abs(k)<=Math.pow(2,31))return!0;throw new P3("Expected Javascript int32 number for Avro int, got "+JSON.stringify(k));case"long":if(U.isNumber(k)&&Math.floor(k)===k&&Math.abs(k)<=Math.pow(2,63))return!0;throw new P3("Expected Javascript int64 number for Avro long, got "+JSON.stringify(k));case"float":if(U.isNumber(k))return!0;throw new P3("Expected Javascript float number for Avro float, got "+JSON.stringify(k));case"double":if(U.isNumber(k))return!0;throw new P3("Expected Javascript double number for Avro double, got "+JSON.stringify(k));case"bytes":throw new M3("not yet implemented: "+L.type);case"string":if(U.isString(k))return!0;throw new P3("Expected Javascript string for Avro string, got "+JSON.stringify(k));default:throw new M3("unrecognized primitive type: "+L.type)}},p=r||{},c=function(L,k){if(U.has(p,L)){if(!U.isEqual(p[L],k))throw new M3("conflicting definitions for type "+L+": "+JSON.stringify(p[L])+" and "+JSON.stringify(k))}else p[L]=k},u=function(L){return U.has(p,L)?p[L]:null},y=function(L,k){if(U.contains($4.PrimitiveTypes,L))return new tm(L);if(U.isNull(u(D1(L,k))))throw new M3("unknown type name: "+JSON.stringify(L)+"; known type names are "+JSON.stringify(U.keys(p)));return u(D1(L,k))},b=function(L,k,m){if(U.isNull(L)||U.isUndefined(L))throw new M3("schema is null, in parentSchema: "+JSON.stringify(k));if(U.isString(L))return y(L,m);if(U.isObject(L)&&!U.isArray(L))if(L.type==="record"){var g=new Jh(L.name,L.namespace,U.map(L.fields,function(E){return new Fw(E.name,b(E.type,L,L.namespace||m))}));return c(D1(L,m),g),g}else if(L.type==="enum")if(U.has(L,"symbols")){var x=new Kh(L.symbols);return c(D1(L,m),x),x}else throw new M3("enum must specify symbols, got "+JSON.stringify(L));else if(L.type==="array"){if(U.has(L,"items"))return new Qh(b(L.items,L,m));throw new M3('array must specify "items" schema, got '+JSON.stringify(L))}else if(L.type==="map"){if(U.has(L,"values"))return new em(b(L.values,L,m));throw new M3('map must specify "values" schema, got '+JSON.stringify(L))}else{if(U.has(L,"type")&&U.contains($4.PrimitiveTypes,L.type))return y(L.type,m);throw new M3("not yet implemented: "+L.type)}else if(U.isArray(L)){if(U.isEmpty(L))throw new M3("unions must have at least 1 branch");var v=U.map(L,function(E){return b(E,L,m)});return new Xh(v,m)}else throw new M3("unexpected Javascript type for schema: "+typeof L)};this.rawSchema=e,this.schema=b(e,null,n)}o6.validate=function(e,n){return new o6(e).validate(n)};function n7(e){this.validate=function(o,i){var a=D1(o,e.namespace);if(!U.has(n,a))throw new Tw("Protocol does not contain definition for type "+JSON.stringify(a)+' (fully qualified from input "'+o+'"); known types are '+JSON.stringify(U.keys(n)));return n[a].validate(i)};var n={},r=function(o){var i={};if(!U.has(o,"protocol")||!U.isString(o.protocol))throw new Rw('Protocol must contain a "protocol" attribute with a string value');U.isArray(o.types)&&U.each(o.types,function(a){var s=new o6(a,o.namespace,i),l=D1(a,o.namespace);n[l]=s})};r(e)}n7.validate=function(e,n,r){return new n7(e).validate(n,r)};typeof nt!="undefined"&&(nt.Validator=o6,nt.ProtocolValidator=n7)});var aa=Y((WT,im)=>{N();"use strict";var ia=bi().Tap,rm=Vh(),om=nm();function Dw(e,n){var r;if(typeof e=="string")try{r=JSON.parse(e)}catch(o){}return r===void 0&&(r=e),rm.createType(r,n)}ia.prototype.readString=function(){var e=this.readLong(),n=this.pos,r=this.buf;if(this.pos+=e,!(this.pos>r.length))return this.buf.slice(n,n+e).toString()};ia.prototype.writeString=function(e){var n=R.byteLength(e);this.writeLong(n);var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.write(e,r)};ia.prototype.writeBinary=function(e,n){var r=this.pos;this.pos+=n,!(this.pos>this.buf.length)&&this.buf.write(e,r,n,"binary")};im.exports={parse:Dw,types:rm.types,Validator:om.Validator,ProtocolValidator:om.ProtocolValidator}});N();var B2=q(a3()),Zm=q(VC());N();N();N();N();N();var cd=q(ud()),{__extends:hd,__assign:nv,__rest:S8,__decorate:BE,__param:PE,__metadata:ZE,__awaiter:md,__generator:kd,__exportStar:OE,__createBinding:UE,__values:j8,__read:h9,__spread:zE,__spreadArrays:GE,__spreadArray:po,__await:HE,__asyncGenerator:VE,__asyncDelegator:$E,__asyncValues:qE,__makeTemplateObject:YE,__importStar:JE,__importDefault:XE,__classPrivateFieldGet:KE,__classPrivateFieldSet:QE}=cd.default;N();var rv=function(e){for(var n=[],r=0,o=0;o>6|192,n[r++]=i&63|128):(i&64512)==55296&&o+1>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=i&63|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=i&63|128)}return n},ov=function(e){for(var n=[],r=0,o=0;r191&&i<224){var a=e[r++];n[o++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){var a=e[r++],s=e[r++],l=e[r++],f=((i&7)<<18|(a&63)<<12|(s&63)<<6|l&63)-65536;n[o++]=String.fromCharCode(55296+(f>>10)),n[o++]=String.fromCharCode(56320+(f&1023))}else{var a=e[r++],s=e[r++];n[o++]=String.fromCharCode((i&15)<<12|(a&63)<<6|s&63)}}return n.join("")},iv={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray:function(e,n){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var r=n?this.byteToCharMapWebSafe_:this.byteToCharMap_,o=[],i=0;i>2,c=(a&3)<<4|l>>4,u=(l&15)<<2|C>>6,y=C&63;f||(y=64,s||(u=64)),o.push(r[p],r[c],r[u],r[y])}return o.join("")},encodeString:function(e,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(e):this.encodeByteArray(rv(e),n)},decodeString:function(e,n){return this.HAS_NATIVE_SUPPORT&&!n?atob(e):ov(this.decodeStringToByteArray(e,n))},decodeStringToByteArray:function(e,n){this.init_();for(var r=n?this.charToByteMapWebSafe_:this.charToByteMap_,o=[],i=0;i