/*! * * Spread.Sheets Library 11.2.2 * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * us.sales@grapecity.com * http://www.grapecity.com/en/licensing/grapecity/ * * */ !function(a){"object"==typeof module&&"object"==typeof module.exports?module.exports=a(require("@grapecity/spread-sheets")):"function"==typeof define&&define.amd?define(["@grapecity/spread-sheets"],a):"object"==typeof exports?exports.Spread=a(require("@grapecity/spread-sheets")):a(GC)}(function(a){a=a||{},a.Spread=a.Spread||{},a.Spread.Sheets=a.Spread.Sheets||{},a.Spread.Sheets.PDF=function(a){var b={};function c(d){if(b[d])return b[d].exports;var e=b[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,c),e.loaded=!0,e.exports}return c.m=a,c.c=b,c.p="/assets/",c(0)}([function(a,b,c){!function(){"use strict";var b=c(1);b.SR={},b.SR.en=c(16),a.exports=b}()},function(a,b,c){!function(){"use strict";var b,d,e,f=c(2),g=c(3),h=g.GC$,i=g.Workbook,j=g.Rect,k=c(4),l={},m=k.uQa,n=k.tQa,o=c(5),p=c(14),q=c(15),r=null,s=function(){return f.C(l.SR)()},t={fileIOError:0,fontError:1};l.ErrorCode=t,b=q,d=function(a){h.inherit(b,a);function b(a,b,c){this.xn={},this.OC=a,this.H3=b,this.f3=c}var c={initBuild:function(){var a=this,b=a.f3;b.clear()},initContainer:function(a,b){var c=this,d=c.f3.getContext(),e={width:a.width,height:a.height};d.addPage(b,e)},processHeader:function(a,b,c,d,e,f,g,h){var i=this,j=i.f3.getContext(),k=h.marginLeft,l=h.marginHeader;j.save(),j.translate(k,l),i.Pma(j,a,b,c,d,e,f,g),j.restore()},processBody:function(a,b,c,d,e){var f,g,h,i,k,l,m,n,o,p=this,q=p.f3.getContext(),r=e.marginLeft,s=e.marginTop,t=e.contentWidth,u=e.bodyContentHeight,v=e.showBorder,w=e.centering,x=e.sheetPaginator,y=1;1!==w&&3!==w||(r+=(t-b-2*y)/2),2!==w&&3!==w||(s+=(u-c-2*y)/2),q.save(),q.translate(r,s),f=0,g=0,h=b,i=c,v&&(q.save(),q.beginPath(),q.lineWidth=y,q.fillStyle="black",q.strokeRect(0,0,b,c),q.restore(),f+=1,g+=1,h-=2,i-=2),k=x.horizontalZoomFactor(),l=x.verticalZoomFactor(),q.scale(k,l),m=h/k,n=i/l,o=a.options.sheetAreaOffset,v||(m+=o.left,n+=o.top),p._l(a,q,new j(f,g,m,n),d,!v),p.Qma(a,q,new j(f,g,m,n),d),q.restore()},processFooter:function(a,b,c,d,e,f,g,h){var i=this,j=i.f3.getContext(),k=h.marginLeft,l=h.paperHeight,m=h.marginFooter;j.save(),j.translate(k,l-m-b),i.Rma(j,a,b,c,d,e,f,g),j.restore()},processBlackAndWhite:function(){},clearAfterBuild:function(){},dispose:function(){var a,b=this;b.bt&&(b.bt.no(),b.bt=r),b.bwa&&(b.bwa.no(),b.bwa=r),a=b.OC,a&&(a.destroy(),b.OC=r),b.H3=r,b.xn={},b.f3=r}};return h.extend(b.prototype,c),b}(n),e=function(a){h.inherit(c,a);function c(a,b){var c=this;c.Sma=a,c.i6=b,c.ad()}var e={ad:function(){var a=this,c=new o;c.info(a.i6),c.fontsManager(b),a.Yn=c,a.Tma=c.Uma(new p)},Vma:function(){var a=this,b=a.Yn,c=a.Tma;c.on("finish",function(){var b=c.toBlob("application/pdf");a.Sma(b),a.dispose()}),b.end()},print:function(a,b){var c=this,e=c.prepareContext(a,b),f=new d(e.workbook,e.paginator,c);c.M3=f,f.onBuildCompleted=function(){c.Vma()},f.build()},dispose:function(){var a=this;a.callback=r,a.Yn&&a.Yn.dispose(),a.Yn=r,a.M3&&a.M3.dispose(),a.M3=r,a.Tma=r},clear:function(){this.ad()},getContext:function(){return this.Yn}};return h.extend(c.prototype,e),c}(m),l.PDFFontsManager=b,i.prototype.savePDF=function(a,b,c,d){var f,g,h;a||(a=function(a){}),b||(b=function(a){}),f=this,g=new e(a,c);try{g.print(f,d)}catch(a){g.dispose(),h={},"Not a supported font format or standard PDF font."===a.message?(h.errorCode=t.fontError,h.errorMessage=s().Exp_FontError):(h.errorCode=t.fileIOError,h.errorMessage=s().Exp_FileIOError),b(h)}},a.exports=l}()},function(b,c){b.exports=a.Spread.Common},function(b,c){b.exports=a.Spread.Sheets},function(b,c){b.exports=a.Spread.Sheets.Print},function(a,b,c){!function(){"use strict";var b=c(3),d=b.GC$,e=d.extend,f=b.Ul.fp,g=b.To,h=g.No,i=g.Ko,j=c(2).pc,k=c(6),l=null,m=void 0,n="normal",o="bold",p="italic",q="boldItalic",r="Times";function s(a){return 72*a/96}function t(a){return 180*a/Math.PI}function u(a,b,c,d){return{x:a+c*Math.cos(d),y:b+c*Math.sin(d)}}function v(a){return"bold"===a||"bolder"===a||parseInt(a)>=600?o:n}function w(a,b,c,d,e){var f=u(a,b,c,d),g=u(a,b,c,e),h=e-d<=Math.PI?"0":"1";return["M",s(f.x),s(f.y),"A",s(c),s(c),0,h,1,s(g.x),s(g.y)].join(" ")}function x(a){var b,c=a;return"rgb"===a.substr(0,3)&&(b=j.ec(a),c=[b.r,b.g,b.b]),{color:c,opacity:b?b.a/255:1}}function y(){var a=new Date,b=60*a.getTimezoneOffset()*1e3;return new Date(a.getTime()-b)}function z(a){return h(a,1).fontSize}function A(){var a,b,c=this;c.Wma=[],c.Xma=document.createElement("canvas"),Object.defineProperty(c,"font",{set:function(a){c.textfont=a},get:function(){return c.textfont}}),a=new k({autoFirstPage:!1}),b=a.info,b.Producer="GrapeCity Pdf Library JS",b.CreationDate=y(),c.Yma=a}e(A.prototype,{Uma:function(a){var b=this.Yma;return b.pipe(a)},info:function(a){if(a){var b=this.Yma,c=b.info;c.Creator=a.creator,c.Title=a.title,c.Author=a.author,c.Keywords=a.keywords,c.Subject=a.subject}},fontsManager:function(a){this.Zma=a},end:function(){var a=this,b=a.Yma;b.end()},addPage:function(a,b,c){var d=this.Yma,e={top:s(a.top),left:s(a.left),bottom:s(a.bottom),right:s(a.right)};d.addPage({margins:e,size:[s(b.width),s(b.height)],layout:c})},save:function(){var a=this,b=a.Yma;a.Wma.push({fillStyle:a.fillStyle,font:a.font,strokeStyle:a.strokeStyle,lineWidth:a.lineWidth,textBaseline:a.textBaseline}),b.save()},restore:function(){var a=this,b=a.Yma,c=a.Wma.pop();a.fillStyle=c.fillStyle,a.font=c.font,a.strokeStyle=c.strokeStyle,a.lineWidth=c.lineWidth,a.textBaseline=c.textBaseline,b.restore()},translate:function(a,b){var c=this.Yma;c.translate(s(a),s(b))},scale:function(a,b){var c=this.Yma;c.scale(a,b,{})},rect:function(a,b,c,d){var e=this.Yma;e.rect(s(a),s(b),s(c),s(d))},clip:function(){var a=this.Yma;a.clip()},fill:function(){var a=this.Yma,b=this.getFillColor();a.fillColor(b.color,b.opacity),a.fill()},getFillColor:function(){var a=this.fillStyle,b={color:a};return"string"==typeof a&&(b=x(a)),b},fillRect:function(a,b,c,d){this.rect(a,b,c,d),this.fill()},stroke:function(){var a,b=this.Yma;b.lineWidth(s(this.lineWidth||1)),a=this.getStrokeColor(),b.strokeColor(a.color,a.opacity),b.stroke()},getStrokeColor:function(){var a=this.strokeStyle,b={color:a};return"string"==typeof a&&(b=x(a)),b},strokeRect:function(a,b,c,d){this.rect(a,b,c,d),this.stroke()},fillText:function(a,b,c){var d,e,f,g=this,h=this.Yma,i=g.Qm(g.font);h.font(i),h.fontSize(s(z(g.font))),d=g.Moa(a,b,c),e=g.getFillColor(),h.fillColor(e.color,e.opacity),f=h.fontAscender(),null!==f&&void 0!==f&&(f<600?h.fontAscender(600):f>683&&h.fontAscender(683)),h.text(a,s(d.x),s(d.y),{lineBreak:!1})},Qm:function(a){var b,c,d,e,f,g=this,h=g.Yma,j=g.Zma,k=i(a),l=k.fontStyle,m=v(k.fontWeight),s=k.fontFamily;return c=m!==n&&l!==n?q:m!==n?o:l!==n?p:n,d=j.getFont(s.replace(/\"/g,"")),d&&d[c]||(b=j.fallbackFont(a),b&&(e={},d&&(e=d),e[c]=b,j.registerFont(s,e),d=j.getFont(s)),d||(d=j.getFont(r))),b=d[c]||d[n]||d[o]||d[p]||d[q],"string"==typeof b?b:(f=s+"-"+c,h.registerFont(f,b),f)},Moa:function(a,b,c){var d,e,g,h=this,i=h.measureText(a).width,j=f(this.font),k=z(this.font),l=k>8?Math.floor((k-8)/5+2):1,m=j/2-k/2+l-1,n=0,o=h.textBaseline;switch(o){case"bottom":case"ideographic":n=j;break;case"alphabetic":n=j-m;break;case"middle":n=j/2;break;case"hanging":n=m;break;case"top":}return d=this.textAlign,e=b,g=c-n+m,d&&("center"===d?e=b-i/2:"right"===d&&(e=b-i)),{x:e,y:g}},rotate:function(a){var b=this.Yma;b.rotate(t(a))},arc:function(a,b,c,d,e){var f=this.Yma,g;(e-d)/(2*Math.PI)===1?(g=w(a,b,c,d,d+Math.PI),f.path(g),g=w(a,b,c,d+Math.PI,e),f.path(g)):(g=w(a,b,c,d,e),f.path(g))},beginPath:function(){this.Yma.initVector()},closePath:function(){this.Yma.closePath()},moveTo:function(a,b){this.Yma.moveTo(s(a),s(b))},lineTo:function(a,b){this.Yma.lineTo(s(a),s(b))},bezierCurveTo:function(a,b,c,d,e,f){this.Yma.bezierCurveTo(a,b,c,d,e,f)},drawImage:function(a,b,c,d,e,f,g,h,i){var j,k,l,n,o,p,q=this,r=q.Yma,t=q.Xma,u=d||a.width,v=e||a.height;d===m?(j=b,k=c,l=h,n=i):f===m?(j=b,k=c,l=d,n=e):(j=f,k=g,l=h,n=i),t.width=u,t.height=v,o=t.getContext("2d"),o.clearRect(0,0,t.width,t.height),o.drawImage(a,b,c,u,v,0,0,u,v),p=t.toDataURL(),r.image(p,s(j),s(k),{width:s(l),height:s(n)})},createLinearGradient:function(a,b,c,d){var e=this,f=e.Yma,g=f.linearGradient(s(a),s(b),s(c),s(d));return g.addColorStop=function(a,b){var c=x(b);this.stop(a,c.color,c.opacity)},g},measureText:function(a){var b=this,c=b.Xma,d=c.getContext("2d");return d.font=b.font,d.measureText(a)},dispose:function(){var a=this;a.Wma=l,a.Xma=l,a.Yma=l}}),a.exports=A}()},function(a,b,c){var d;(function(b,c,e){!function(b){var c;a.exports=b()}(function(){var a,c,f;return function a(b,c,e){var f,g;function h(g,i){var j,k,l;if(!c[g]){if(!b[g]){if(j="function"==typeof d&&d,!i&&j)return d(g,!0);if(f)return f(g,!0);throw k=Error("Cannot find module '"+g+"'"),k.code="MODULE_NOT_FOUND",k}l=c[g]={exports:{}},b[g][0].call(l.exports,function(a){var c=b[g][1][a];return h(c?c:a)},l,l.exports,a,b,c,e)}return c[g].exports}for(f="function"==typeof d&&d,g=0;g>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},a.prototype.readInt32=function(){var a;return a=this.readUInt32(),a>=2147483648?a-4294967296:a},a.prototype.writeInt32=function(a){return a<0&&(a+=4294967296),this.writeUInt32(a)},a.prototype.readUInt16=function(){var a,b;return a=this.readByte()<<8,b=this.readByte(),a|b},a.prototype.writeUInt16=function(a){return this.writeByte(a>>8&255),this.writeByte(255&a)},a.prototype.readInt16=function(){var a;return a=this.readUInt16(),a>=32768?a-65536:a},a.prototype.writeInt16=function(a){return a<0&&(a+=65536),this.writeUInt16(a)},a.prototype.readString=function(a){var b,c,d;for(c=[],b=d=0;0<=a?da;b=0<=a?++d:--d)c[b]=String.fromCharCode(this.readByte());return c.join("")},a.prototype.writeString=function(a){var b,c,d,e;for(e=[],b=c=0,d=a.length;0<=d?cd;b=0<=d?++c:--c)e.push(this.writeByte(a.charCodeAt(b)));return e},a.prototype.stringAt=function(a,b){return this.pos=a,this.readString(b)},a.prototype.readShort=function(){return this.readInt16()},a.prototype.writeShort=function(a){return this.writeInt16(a)},a.prototype.readLongLong=function(){var a,b,c,d,e,f,g,h;return a=this.readByte(),b=this.readByte(),c=this.readByte(),d=this.readByte(),e=this.readByte(),f=this.readByte(),g=this.readByte(),h=this.readByte(),128&a?(72057594037927940*(255^a)+281474976710656*(255^b)+1099511627776*(255^c)+4294967296*(255^d)+16777216*(255^e)+65536*(255^f)+256*(255^g)+(255^h)+1)*-1:72057594037927940*a+281474976710656*b+1099511627776*c+4294967296*d+16777216*e+65536*f+256*g+h},a.prototype.writeLongLong=function(a){var b,c;return b=Math.floor(a/4294967296),c=4294967295&a,this.writeByte(b>>24&255),this.writeByte(b>>16&255),this.writeByte(b>>8&255),this.writeByte(255&b),this.writeByte(c>>24&255),this.writeByte(c>>16&255),this.writeByte(c>>8&255),this.writeByte(255&c)},a.prototype.readInt=function(){return this.readInt32()},a.prototype.writeInt=function(a){return this.writeInt32(a)},a.prototype.slice=function(a,b){return this.data.slice(a,b)},a.prototype.read=function(a){var b,c,d;for(b=[],c=d=0;0<=a?da;c=0<=a?++d:--d)b.push(this.readByte());return b},a.prototype.write=function(a){var b,c,d,e;for(e=[],c=0,d=a.length;cg;d=0<=g?++f:--f)c=b.charCodeAt(d),c=a[c]||c,e.push(c.toString(16));return e},c.prototype.glyphsForString=function(a){var b,c,d,e,f;for(c=[],d=e=0,f=a.length;0<=f?ef;d=0<=f?++e:--e)b=a.charCodeAt(d),c.push(this.characterToGlyph(b));return c},c.prototype.characterToGlyph=function(c){return b[a[c]||c]||".notdef"},c.prototype.widthOfGlyph=function(a){return this.glyphWidths[a]||0},c.prototype.getKernPair=function(a,b){return this.kernPairs[a+"\0"+b]||0},c.prototype.advancesForGlyphs=function(a){var b,c,d,e,f,g;for(b=[],c=f=0,g=a.length;f>8,e=0,this.font.post.isFixedPitch&&(e|=1),1<=d&&d<=7&&(e|=2),e|=4,10===d&&(e|=8),this.font.head.macStyle.italic&&(e|=64),j=function(){var a,b;for(b=[],g=a=0;a<6;g=++a)b.push(String.fromCharCode(26*Math.random()+65));return b}().join(""),i=j+"+"+this.font.postscriptName,a=this.font.bbox,c=this.document.ref({Type:"FontDescriptor",FontName:i,Flags:e,FontBBox:[a.minX*this.scale,a.minY*this.scale,a.maxX*this.scale,a.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0}),h?c.data.FontFile3=f:c.data.FontFile2=f,c.end(),b=this.document.ref({Type:"Font",Subtype:h?"CIDFontType0":"CIDFontType2",BaseFont:i,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:c,W:[0,this.widths]}),b.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:i,Encoding:"Identity-H",DescendantFonts:[b],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()},b=function(){var a,b,c;return b=1<=arguments.length?i.call(arguments,0):[],c=function(){var c,d,e;for(e=[],c=0,d=b.length;c65535&&(f-=65536,d.push(b(f>>>10&1023|55296)),f=56320|1023&f),d.push(b(f));e.push("<"+d.join(" ")+">")}return a.end("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n1 beginbfrange\n<0000> <"+b(e.length-1)+"> ["+e.join(" ")+"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"),a},c}(e),b.exports=d},{"../font":3,"../object":18}],6:[function(a,b,c){var d,e,f,g,h={}.hasOwnProperty,i=function(a,b){for(var c in b)h.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.$ma=b.prototype,a};d=a("./afm"),e=a("../font"),g=a("fs"),f=function(a){var b;i(c,a);function c(a,c,e){var f;this.document=a,this.name=c,this.id=e,this.font=new d(b[this.name]()),f=this.font,this.ascender=f.ascender,this.descender=f.descender,this.bbox=f.bbox,this.lineGap=f.lineGap}return c.prototype.embed=function(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()},c.prototype.encode=function(a){var b,c,d,e,f,g,h,i;for(c=this.font.encodeText(a),e=this.font.glyphsForString(""+a),b=this.font.advancesForGlyphs(e),g=[],f=h=0,i=e.length;hH;j=0<=H?++E:--E)d.push(0,1),j+2!==this.stops.length&&a.push(this.stops[j+1][0]),e=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[j+0][1],C1:this.stops[j+1][1],N:1}),C.push(e),e.end();if(1===C.length?e=C[0]:(e=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:C,Bounds:a,Encode:d}),e.end()),this.id="Sh"+ ++this.doc.mna,l=this.doc.fna.slice(),m=l[0],n=l[1],q=l[2],t=l[3],u=l[4],v=l[5],I=this.transform,o=I[0],p=I[1],r=I[2],s=I[3],b=I[4],c=I[5],l[0]=m*o+q*p,l[1]=n*o+t*p,l[2]=m*r+q*s,l[3]=n*r+t*s,l[4]=m*b+q*c+u,l[5]=n*b+t*c+v,A=this.shader(e),A.end(),x=this.doc.ref({Type:"Pattern",PatternType:2,Shading:A,Matrix:function(){var a,b,c;for(c=[],a=0,b=l.length;a=0));)g+=this.data.readUInt16BE(g);if(f.call(a,e)<0)throw"Invalid JPEG.";g+=2,this.bits=this.data[g++],this.height=this.data.readUInt16BE(g),g+=2,this.width=this.data.readUInt16BE(g),g+=2,d=this.data[g++],this.colorSpace=function(){switch(d){case 1:return"DeviceGray";case 3:return"DeviceRGB";case 4:return"DeviceCMYK"}}(),this.obj=null}return b.prototype.embed=function(a){if(!this.obj)return this.obj=a.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null},b}(),b.exports=d},{fs:59}],10:[function(a,b,c){(function(c){var d,e,f;f=a("zlib"),d=a("png-js"),e=function(){function a(a,b){this.label=b,this.image=new d(a),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}return a.prototype.embed=function(a){var b,d,e,f,g,h,i,j;if(this.document=a,!this.obj){if(this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"}),this.image.hasAlphaChannel||(e=this.document.ref({Predictor:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width}),this.obj.data.DecodeParms=e,e.end()),0===this.image.palette.length?this.obj.data.ColorSpace=this.image.colorSpace:(d=this.document.ref(),d.end(new c(this.image.palette)),this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,d]),this.image.transparency.grayscale)return g=this.image.transparency.greyscale,this.obj.data.Mask=[g,g];if(this.image.transparency.rgb){for(f=this.image.transparency.rgb,b=[],i=0,j=f.length;ithis.lineWidth+this.continuedX)for(i=h,f={};l.length;){for(g=l.length;k>this.spaceLeft;)k=this.wordWidth(l.slice(0,--g));if(f.required=gthis.maxY||f>this.maxY)&&this.nextSection(),c="",g=0,h=0,e=0,i=this.document.y,d=function(a){return function(){return b.textWidth=g+a.wordSpacing*(h-1),b.wordCount=h,b.lineWidth=a.lineWidth,i=a.document.y,a.emit("line",c,b,a),e++}}(this),this.emit("sectionStart",b,this),this.eachWord(a,function(a){return function(e,f,i,j){var k,l;if((null==j||j.required)&&(a.emit("firstLine",b,a),a.spaceLeft=a.lineWidth),f<=a.spaceLeft&&(c+=e,g+=f,h++),i.required||f>a.spaceLeft){if(i.required&&a.emit("lastLine",b,a),k=a.document.currentLineHeight(!0),null!=a.height&&a.ellipsis&&a.document.y+2*k>a.maxY&&a.column>=a.columns){for(a.ellipsis===!0&&(a.ellipsis="\u2026"),c=c.replace(/\s+$/,""),g=a.wordWidth(c+a.ellipsis);g>a.lineWidth;)c=c.slice(0,-1).replace(/\s+$/,""),g=a.wordWidth(c+a.ellipsis);c+=a.ellipsis}return d(),a.document.y+k>a.maxY&&(l=a.nextSection(),!l)?(h=0,c="",!1):i.required?(f>a.spaceLeft&&(c=e,g=f,h=1,d()),a.spaceLeft=a.lineWidth,c="",g=0,h=0):(a.spaceLeft=a.lineWidth-f,c=e,g=f,h=1)}return a.spaceLeft-=f}}(this)),h>0&&(this.emit("lastLine",b,this),d()),this.emit("sectionEnd",b,this),b.continued===!0?(e>1&&(this.continuedX=0),this.continuedX+=b.textWidth,this.document.y=i):this.document.x=this.startX},b.prototype.nextSection=function(a){var b;if(this.emit("sectionEnd",a,this),++this.column>this.columns){if(null!=this.height)return!1;this.document.addPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document.pna&&(b=this.document).fillColor.apply(b,this.document.pna),this.emit("pageBreak",a,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",a,this);return this.emit("sectionStart",a,this),!0},b}(d),b.exports=f},{events:164,linebreak:173}],12:[function(a,b,c){b.exports={annotate:function(a,b,c,d,e){var f,g,h;e.Type="Annot",e.Rect=this.qna(a,b,c,d),e.Border=[0,0,0],"Link"!==e.Subtype&&null==e.C&&(e.C=this.lna(e.color||[0,0,0])),delete e.color,"string"==typeof e.Dest&&(e.Dest=new String(e.Dest));for(f in e)h=e[f],e[f[0].toUpperCase()+f.slice(1)]=h;return g=this.ref(e),this.page.annotations.push(g),g.end(),this},note:function(a,b,c,d,e,f){return null==f&&(f={}),f.Subtype="Text",f.Contents=new String(e),f.Name="Comment",null==f.color&&(f.color=[243,223,92]),this.annotate(a,b,c,d,f); },link:function(a,b,c,d,e,f){return null==f&&(f={}),f.Subtype="Link",f.A=this.ref({S:"URI",URI:new String(e)}),f.A.end(),this.annotate(a,b,c,d,f)},rna:function(a,b,c,d,e){var f,g,h,i,j;return null==e&&(e={}),j=this.qna(a,b,c,d),f=j[0],h=j[1],g=j[2],i=j[3],e.QuadPoints=[f,i,g,i,f,h,g,h],e.Contents=new String,this.annotate(a,b,c,d,e)},highlight:function(a,b,c,d,e){return null==e&&(e={}),e.Subtype="Highlight",null==e.color&&(e.color=[241,238,148]),this.rna(a,b,c,d,e)},underline:function(a,b,c,d,e){return null==e&&(e={}),e.Subtype="Underline",this.rna(a,b,c,d,e)},strike:function(a,b,c,d,e){return null==e&&(e={}),e.Subtype="StrikeOut",this.rna(a,b,c,d,e)},lineAnnotation:function(a,b,c,d,e){return null==e&&(e={}),e.Subtype="Line",e.Contents=new String,e.L=[a,this.page.height-b,c,this.page.height-d],this.annotate(a,b,c,d,e)},rectAnnotation:function(a,b,c,d,e){return null==e&&(e={}),e.Subtype="Square",e.Contents=new String,this.annotate(a,b,c,d,e)},ellipseAnnotation:function(a,b,c,d,e){return null==e&&(e={}),e.Subtype="Circle",e.Contents=new String,this.annotate(a,b,c,d,e)},textAnnotation:function(a,b,c,d,e,f){return null==f&&(f={}),f.Subtype="FreeText",f.Contents=new String(e),f.DA=new String,this.annotate(a,b,c,d,f)},qna:function(a,b,c,d){var e,f,g,h,i,j,k,l,m;return l=b,b+=d,k=a+c,m=this.fna,e=m[0],f=m[1],g=m[2],h=m[3],i=m[4],j=m[5],a=e*a+g*b+i,b=f*a+h*b+j,k=e*k+g*l+i,l=f*k+h*l+j,[a,b,k,l]}}},{}],13:[function(a,b,c){var d,e,f,g,h;h=a("../gradient"),d=h.PDFGradient,e=h.PDFLinearGradient,f=h.PDFRadialGradient,b.exports={initColor:function(){return this.sna={},this.nna=0,this.mna=0},lna:function(a){var b,c;return a instanceof d?a:("string"==typeof a&&("#"===a.charAt(0)?(4===a.length&&(a=a.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3")),b=parseInt(a.slice(1),16),a=[b>>16,b>>8&255,255&b]):g[a]&&(a=g[a])),Array.isArray(a)?(3===a.length?a=function(){var b,d,e;for(e=[],b=0,d=a.length;bh?(n=i,j=i/m):(j=g,n=g*m),"center"===f.align?b=b+i/2-n/2:"right"===f.align&&(b=b+i-n),"center"===f.valign?e=e+g/2-j/2:"bottom"===f.valign&&(e=e+g-j)),this.y===e&&(this.y+=j),this.save(),this.transform(n,0,0,-j,b,e+j),this.addContent("/"+l.label+" Do"),this.restore(),this}}}).call(this,{isBuffer:a("../../node_modules/is-buffer/index.js")})},{"../../node_modules/is-buffer/index.js":168,"../image":8}],16:[function(a,b,c){var d;d=a("../line_wrapper"),b.exports={initText:function(){return this.x=0,this.y=0,this.zna=0},lineGap:function(a){return this.zna=a,this},moveDown:function(a){return null==a&&(a=1),this.y+=this.currentLineHeight(!0)*a+this.zna,this},moveUp:function(a){return null==a&&(a=1),this.y-=this.currentLineHeight(!0)*a+this.zna,this},_text:function(a,b,c,e,f){var g,h,i,j,k;if(e=this.T3(b,c,e),a=""+a,e.wordSpacing&&(a=a.replace(/\s{2,}/g," ")),e.width)h=this.Ana,h||(h=new d(this,e),h.on("line",f)),this.Ana=e.continued?h:null,this.Bna=e.continued?e:null,h.wrap(a,e);else for(k=a.split("\n"),i=0,j=k.length;i "+-b)),o=a}}(this),l=function(a){return function(b){if(e(b),h.length>0)return a.addContent("["+h.join(" ")+"] TJ"),h.length=0}}(this),n=E=0,G=t.length;E127){k=!0;break}return k&&(o=f(new c("\ufeff"+o,"utf16le")).toString("binary")),"("+o+")"}if(c.isBuffer(h))return"<"+h.toString("hex")+">";if(h instanceof e)return""+h;if(h instanceof Date)return"(D:"+d(h.getUTCFullYear(),4)+d(h.getUTCMonth()+1,2)+d(h.getUTCDate(),2)+d(h.getUTCHours(),2)+d(h.getUTCMinutes(),2)+d(h.getUTCSeconds(),2)+"Z)";if(Array.isArray(h))return l=function(){var a,b,c;for(c=[],a=0,b=h.length;a>"),n.join("\n")}return""+h},g}(),b.exports=d,e=a("./reference")}).call(this,a("buffer").Buffer)},{"./reference":21,buffer:60}],19:[function(a,b,c){var d;d=function(){var a,b;function c(c,d){var e;this.document=c,null==d&&(d={}),this.size=d.size||"letter",this.layout=d.layout||"portrait","number"==typeof d.margin?this.margins={top:d.margin,left:d.margin,bottom:d.margin,right:d.margin}:this.margins=d.margins||a,e=Array.isArray(this.size)?this.size:b[this.size.toUpperCase()],this.width=e["portrait"===this.layout?0:1],this.height=e["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),Object.defineProperties(this,{fonts:{get:function(a){return function(){var b;return null!=(b=a.resources.data).Font?b.Font:b.Font={}}}(this)},xobjects:{get:function(a){return function(){var b;return null!=(b=a.resources.data).XObject?b.XObject:b.XObject={}}}(this)},ext_gstates:{get:function(a){return function(){var b;return null!=(b=a.resources.data).ExtGState?b.ExtGState:b.ExtGState={}}}(this)},patterns:{get:function(a){return function(){var b;return null!=(b=a.resources.data).Pattern?b.Pattern:b.Pattern={}}}(this)},annotations:{get:function(a){return function(){var b;return null!=(b=a.dictionary.data).Annots?b.Annots:b.Annots=[]}}(this)}}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document.al.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources})}return c.prototype.maxY=function(){return this.height-this.margins.bottom},c.prototype.write=function(a){return this.content.write(a)},c.prototype.end=function(){return this.dictionary.end(),this.resources.end(),this.content.end()},a={top:72,left:72,bottom:72,right:72},b={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},c}(),b.exports=d},{}],20:[function(a,b,c){var d;d=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n;function o(){}return o.apply=function(b,c){var d;return d=g(c),a(d,b)},f={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},g=function(a){var b,c,d,e,g,h,i,j,k;for(i=[],b=[],e="",g=!1,h=0,j=0,k=a.length;j0&&(b[b.length]=+e),i[i.length]={cmd:d,args:b},b=[],e="",g=!1),d=c;else if(" "===c||","===c||"-"===c&&e.length>0&&"e"!==e[e.length-1]||"."===c&&g){if(0===e.length)continue;b.length===h?(i[i.length]={cmd:d,args:b},b=[+e],"M"===d&&(d="L"),"m"===d&&(d="l")):b[b.length]=+e,g="."===c,e="-"===c||"."===c?c:""}else e+=c,"."===c&&(g=!0);return e.length>0&&(b.length===h?(i[i.length]={cmd:d,args:b},b=[+e],"M"===d&&(d="L"),"m"===d&&(d="l")):b[b.length]=+e),i[i.length]={cmd:d,args:b},i},c=d=h=i=m=n=0,a=function(a,b){var e,f,g,k,l;for(c=d=h=i=m=n=0,f=g=0,k=a.length;g1&&(s=Math.sqrt(s),c*=s,d*=s),l=p/c,m=x/c,n=-x/d,o=p/d,E=l*j+m*k,H=n*j+o*k,F=l*a+m*b,I=n*a+o*b,q=(F-E)*(F-E)+(I-H)*(I-H),w=1/q-.25,w<0&&(w=0),v=Math.sqrt(w),f===e&&(v=-v),G=.5*(E+F)-v*(I-H),J=.5*(H+I)+v*(F-E),z=Math.atan2(H-J,E-G),A=Math.atan2(I-J,F-G),D=A-z,D<0&&1===f?D+=2*Math.PI:D>0&&0===f&&(D-=2*Math.PI),u=Math.ceil(Math.abs(D/(.5*Math.PI+.001))),t=[],r=K=0;0<=u?Ku;r=0<=u?++K:--K)B=z+r*D/u,C=z+(r+1)*D/u,t[r]=[G,J,B,C,c,d,x,p];return t},k=function(a,b,c,d,f,g,h,i){var j,k,l,m,n,o,p,q,r,s,t,u;return j=i*f,k=-h*g,l=h*f,m=i*g,o=.5*(d-c),n=8/3*Math.sin(.5*o)*Math.sin(.5*o)/Math.sin(o),p=e(a+Math.cos(c)-n*Math.sin(c)),s=e(b+Math.sin(c)+n*Math.cos(c)),r=e(a+Math.cos(d)),u=e(b+Math.sin(d)),q=e(r+n*Math.sin(d)),t=e(u-n*Math.cos(d)),[j*p+k*s,l*p+m*s,j*q+k*t,l*q+m*t,j*r+k*u,l*r+m*u]},e=function(a){return Math.abs(Math.round(a)-a)<1e-13?Math.round(a):a},o}(),b.exports=d},{}],21:[function(a,b,c){(function(c){var d,e,f,g,h=function(a,b){return function(){return a.apply(b,arguments)}},i={}.hasOwnProperty,j=function(a,b){for(var c in b)i.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.$ma=b.prototype,a};g=a("zlib"),f=a("stream"),e=function(a){j(b,a);function b(a,c,d){this.document=a,this.id=c,this.data=null!=d?d:{},this.finalize=h(this.finalize,this),b.$ma.constructor.call(this,{decodeStrings:!1}),this.gen=0,this.deflate=null,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.chunks=[]}return b.prototype.initDeflate=function(){return this.data.Filter="FlateDecode",this.deflate=g.createDeflate(),this.deflate.on("data",function(a){return function(b){return a.chunks.push(b),a.data.Length+=b.length}}(this)),this.deflate.on("end",this.finalize)},b.prototype.ena=function(a,b,d){var e;return c.isBuffer(a)||(a=new c(a+"\n","binary")),this.uncompressedLength+=a.length,null==(e=this.data).Length&&(e.Length=0),this.compress?(this.deflate||this.initDeflate(),this.deflate.write(a)):(this.chunks.push(a),this.data.Length+=a.length),d()},b.prototype.end=function(a){return b.$ma.end.apply(this,arguments),this.deflate?this.deflate.end():this.finalize()},b.prototype.finalize=function(){var a,b,c,e;if(this.offset=this.document.UP,this.document.ena(""+this.id+" "+this.gen+" obj"),this.document.ena(d.convert(this.data)),this.chunks.length){for(this.document.ena("stream"),e=this.chunks,b=0,c=e.length;b=0&&(h=e.indexOf("\n",g+1),e=e.substring(h+1)),this.stack=e))},e.inherits(h.AssertionError,Error);function i(a,b){return e.isUndefined(b)?""+b:e.isNumber(b)&&!isFinite(b)?""+b:e.isFunction(b)||e.isRegExp(b)?""+b:b}function j(a,b){return e.isString(a)?a.length=0;k--)if(h[k]!=i[k])return!1;for(k=h.length-1;k>=0;k--)if(j=h[k],!n(a[j],b[j]))return!1;return!0}h.notDeepEqual=function a(b,c,d){n(b,c)&&l(b,c,d,"notDeepEqual",h.notDeepEqual)},h.strictEqual=function a(b,c,d){b!==c&&l(b,c,d,"===",h.strictEqual)},h.notStrictEqual=function a(b,c,d){b===c&&l(b,c,d,"!==",h.notStrictEqual)};function q(a,b){return!(!a||!b)&&("[object RegExp]"==Object.prototype.toString.call(b)?b.test(a):a instanceof b||b.call({},a)===!0)}function r(a,b,c,d){var f;e.isString(c)&&(d=c,c=null);try{b()}catch(a){f=a}if(d=(c&&c.name?" ("+c.name+").":".")+(d?" "+d:"."),a&&!f&&l(f,c,"Missing expected exception"+d),!a&&q(f,c)&&l(f,c,"Got unwanted exception"+d),a&&f&&c&&!q(f,c)||!a&&f)throw f}h.throws=function(a,b,c){r.apply(this,[!0].concat(f.call(arguments)))},h.doesNotThrow=function(a,b){r.apply(this,[!1].concat(f.call(arguments)))},h.ifError=function(a){if(a)throw a},d=Object.keys||function(a){var b,c=[];for(b in a)g.call(a,b)&&c.push(b);return c}},{"util/":224}],23:[function(a,b,c){b.exports={default:a("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":62}],24:[function(a,b,c){b.exports={default:a("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":63}],25:[function(a,b,c){b.exports={default:a("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":64}],26:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":65}],27:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":66}],28:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/define-properties"),__esModule:!0}},{"core-js/library/fn/object/define-properties":67}],29:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":68}],30:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/freeze"),__esModule:!0}},{"core-js/library/fn/object/freeze":69}],31:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/get-own-property-descriptor"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-descriptor":70}],32:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":71}],33:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":72}],34:[function(a,b,c){b.exports={default:a("core-js/library/fn/object/set-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/set-prototype-of":73}],35:[function(a,b,c){b.exports={default:a("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":74}],36:[function(a,b,c){b.exports={default:a("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":75}],37:[function(a,b,c){"use strict";c.__esModule=!0,c.default=function(a,b){ if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}},{}],38:[function(a,b,c){"use strict";var d,e;c.__esModule=!0,d=a("../core-js/object/define-property"),e=f(d);function f(a){return a&&a.__esModule?a:{default:a}}c.default=function(){function a(a,b){var c,d;for(c=0;c0)throw Error("Invalid string. Length must be a multiple of 4");for(h="="===a[k-2]?2:"="===a[k-1]?1:0,i=new f(3*k/4-h),d=h>0?k-4:k,j=0,b=0,c=0;b>16&255,i[j++]=g>>8&255,i[j++]=255&g;return 2===h?(g=e[a.charCodeAt(b)]<<2|e[a.charCodeAt(b+1)]>>4,i[j++]=255&g):1===h&&(g=e[a.charCodeAt(b)]<<10|e[a.charCodeAt(b+1)]<<4|e[a.charCodeAt(b+2)]>>2,i[j++]=g>>8&255,i[j++]=255&g),i}function i(a){return d[a>>18&63]+d[a>>12&63]+d[a>>6&63]+d[63&a]}function j(a,b,c){var d,e,f=[];for(e=b;ee?e:c+k));return 1===g?(b=a[f-1],h+=d[b>>2],h+=d[b<<4&63],h+="=="):2===g&&(b=(a[f-2]<<8)+a[f-1],h+=d[b>>10],h+=d[b>>4&63],h+=d[b<<2&63],h+="="),i.push(h),i.join("")}},{}],46:[function(a,b,c){var d=4096,e=2*d+32,f=2*d-1,g=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function h(a){this.buf_=new Uint8Array(e),this.input_=a,this.reset()}h.READ_SIZE=d,h.IBUF_MASK=f,h.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var a=0;a<4;a++)this.val_|=this.buf_[this.pos_]<<8*a,++this.pos_;return this.bit_end_pos_>0},h.prototype.readMoreInput=function(){var a,b,c;if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{if(a=this.buf_ptr_,b=this.input_.read(this.buf_,a,d),b<0)throw Error("Unexpected end of input");if(b=8;)this.val_>>>=8,this.val_|=this.buf_[this.pos_&f]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},h.prototype.readBits=function(a){32-this.bit_pos_>>this.bit_pos_&g[a];return this.bit_pos_+=a,b},b.exports=h},{}],47:[function(a,b,c){var d=0,e=1,f=2,g=3;c.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),c.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],48:[function(a,b,c){var d=a("./streams").BrotliInput,e=a("./streams").BrotliOutput,f=a("./bit_reader"),g=a("./dictionary"),h=a("./huffman").HuffmanCode,i=a("./huffman").BrotliBuildHuffmanTable,j=a("./context"),k=a("./prefix"),l=a("./transform"),m=8,n=16,o=256,p=704,q=26,r=6,s=2,t=8,u=255,v=1080,w=18,x=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),y=16,z=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),A=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),B=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function C(a){var b;return 0===a.readBits(1)?16:(b=a.readBits(3),b>0?17+b:(b=a.readBits(3),b>0?8+b:17))}function D(a){if(a.readBits(1)){var b=a.readBits(3);return 0===b?1:a.readBits(b)+(1<1&&0===e)throw Error("Invalid size byte");g.meta_block_length|=e<<8*d}}else for(d=0;d4&&0===f)throw Error("Invalid size nibble");g.meta_block_length|=f<<4*d}return++g.meta_block_length,g.input_end||g.is_metadata||(g.is_uncompressed=a.readBits(1)),g}function G(a,b,c){var d,e=b;return c.fillBitWindow(),b+=c.val_>>>c.bit_pos_&u,d=a[b].bits-t,d>0&&(c.bit_pos_+=t,b+=a[b].value,b+=c.val_>>>c.bit_pos_&(1<0;)if(f=0,d.readMoreInput(),d.fillBitWindow(),f+=d.val_>>>d.bit_pos_&31,d.bit_pos_+=v[f].bits,g=255&v[f].value,g>g);else{if(j=g-14,o=0,g===n&&(o=r),t!==o&&(s=0,t=o),k=s,s>0&&(s-=2,s<<=j),s+=d.readBits(j)+3,l=s-k,q+l>b)throw Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(p=0;p0;++f)q=x[f],r=0,d.fillBitWindow(),r+=d.val_>>>d.bit_pos_&15,d.bit_pos_+=p[r].bits,s=p[r].value,m[q]=s,0!==s&&(n-=32>>s,++o);if(1!==o&&0!==n)throw Error("[ReadHuffmanCode] invalid num_codes or space");H(m,a,v,d)}if(u=i(b,c,t,v,a),0===u)throw Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return u}function J(a,b,c){var d=G(a,b,c),e=k.kBlockLengthPrefixCode[d].nbits;return k.kBlockLengthPrefixCode[d].offset+c.readBits(e)}function K(a,b,c){var d;return a>>5]),this.htrees=new Uint32Array(b)}N.prototype.decode=function(a){var b,c,d=0;for(b=0;b=a)throw Error("[DecodeContextMap] i >= context_map_size");g[e]=0,++e}else g[e]=i-l,++e;return b.readBits(1)&&M(g,a),k}function P(a,b,c,d,e,f,g){var h,i=2*c,j=c,k=G(b,c*v,g);h=0===k?e[i+(1&f[j])]:1===k?e[i+(f[j]-1&1)]+1:k-2,h>=a&&(h-=a),d[c]=h,e[i+(1&f[j])]=h,++f[j]}function Q(a,b,c,d,e,g){var h,i,j,k=e+1,l=c&e,m=g.pos_&f.IBUF_MASK;if(b<8||g.bit_pos_+(b<<3)0;)g.readMoreInput(),d[l++]=g.readBits(8),l===k&&(a.write(d,k),l=0);else{if(g.bit_end_pos_<32)throw Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;g.bit_pos_<32;)d[l]=g.val_>>>g.bit_pos_,g.bit_pos_+=8,++l,--b;if(h=g.bit_end_pos_-g.bit_pos_>>3,m+h>f.IBUF_MASK){for(i=f.IBUF_MASK+1-m,j=0;j=k)for(a.write(d,k),l-=k,j=0;j=k;){if(h=k-l,g.input_.read(d,l,h)0;--x)Qa.readMoreInput(),Qa.readBits(8);else if(0!==x)if(z)Qa.bit_pos_=Qa.bit_pos_+7&-8,Q(b,x,Ga,m,i,Qa),Ga+=x;else{for(c=0;c<3;++c)E[c]=D(Qa)+1,E[c]>=2&&(I(E[c]+2,t,c*v,Qa),I(q,u,c*v,Qa),A[c]=J(u,c*v,Qa),L[c]=1);for(Qa.readMoreInput(),M=Qa.readBits(2),S=y+(Qa.readBits(4)<0;){for(Qa.readMoreInput(),0===A[1]&&(P(E[1],t,1,B,H,L,Qa),A[1]=J(u,v,Qa),ha=Oa[1].htrees[B[1]]),--A[1],la=G(Oa[1].codes,ha,Qa),ma=la>>6,ma>=2?(ma-=2,ra=-1):ra=0,na=k.kInsertRangeLut[ma]+(la>>3&7),oa=k.kCopyRangeLut[ma]+(7&la),pa=k.kInsertLengthPrefixCode[na].offset+Qa.readBits(k.kInsertLengthPrefixCode[na].nbits),qa=k.kCopyLengthPrefixCode[oa].offset+Qa.readBits(k.kCopyLengthPrefixCode[oa].nbits),ua=0;ua4?3:qa-2),da=Y[ca+ta],ra=G(Oa[2].codes,Oa[2].htrees[da],Qa),ra>=S&&(ra-=S,xa=ra&T,ra>>=M,wa=(ra>>1)+1,ya=(2+(1&ra)<Ja){if(!(qa>=g.minDictionaryWordLength&&qa<=g.maxDictionaryWordLength))throw Error("Invalid backward reference. pos: "+Ga+" distance: "+sa+" len: "+qa+" bytes left: "+x);if(ya=g.offsetsByLength[qa],za=sa-Ja-1,Aa=g.sizeBitsByLength[qa],Ba=(1<>Aa,ya+=Ca*qa,!(Da=n)for(b.write(m,e),Fa=0;Fa0&&(Ka[3&La]=sa,++La),qa>x)throw Error("Invalid backward reference. pos: "+Ga+" distance: "+sa+" len: "+qa+" bytes left: "+x);for(ua=0;ua>=1;return(a&c-1)+c}function g(a,b,c,e,f){do e-=c,a[b+e]=new d(f.bits,f.value);while(e>0)}function h(a,b,c){for(var d=1<0;--v[l])k=new d(255&l,65535&x[m++]),g(a,b+n,o,s,k),n=f(n,l);for(q=t-1,p=-1,l=c+1,o=2;l<=e;++l,o<<=1)for(;v[l]>0;--v[l])(n&q)!==p&&(b+=s,r=h(v,l,c),s=1<>c),o,s,k),n=f(n,l);return t}},{}],52:[function(a,b,c){function d(a,b){this.offset=a,this.nbits=b}c.kBlockLengthPrefixCode=[new d(1,2),new d(5,2),new d(9,2),new d(13,2),new d(17,3),new d(25,3),new d(33,3),new d(41,3),new d(49,4),new d(65,4),new d(81,4),new d(97,4),new d(113,5),new d(145,5),new d(177,5),new d(209,5),new d(241,6),new d(305,6),new d(369,7),new d(497,8),new d(753,9),new d(1265,10),new d(2289,11),new d(4337,12),new d(8433,13),new d(16625,24)],c.kInsertLengthPrefixCode=[new d(0,0),new d(1,0),new d(2,0),new d(3,0),new d(4,0),new d(5,0),new d(6,1),new d(8,1),new d(10,2),new d(14,2),new d(18,3),new d(26,3),new d(34,4),new d(50,4),new d(66,5),new d(98,5),new d(130,6),new d(194,7),new d(322,8),new d(578,9),new d(1090,10),new d(2114,12),new d(6210,14),new d(22594,24)],c.kCopyLengthPrefixCode=[new d(2,0),new d(3,0),new d(4,0),new d(5,0),new d(6,0),new d(7,0),new d(8,0),new d(9,0),new d(10,1),new d(12,1),new d(14,2),new d(18,2),new d(22,3),new d(30,3),new d(38,4),new d(54,4),new d(70,5),new d(102,5),new d(134,6),new d(198,7),new d(326,8),new d(582,9),new d(1094,10),new d(2118,24)],c.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],c.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],53:[function(a,b,c){function d(a){this.buffer=a,this.pos=0}d.prototype.read=function(a,b,c){this.pos+c>this.buffer.length&&(c=this.buffer.length-this.pos);for(var d=0;dthis.buffer.length)throw Error("Output buffer is not large enough");return this.buffer.set(a.subarray(0,b),this.pos),this.pos+=b,b},c.BrotliOutput=e},{}],54:[function(a,b,c){var d,e=a("./dictionary"),f=0,g=1,h=2,i=3,j=4,k=5,l=6,m=7,n=8,o=9,p=10,q=11,r=12,s=13,t=14,u=15,v=16,w=17,x=18,y=19,z=20;function A(a,b,c){var d;for(this.prefix=new Uint8Array(a.length),this.transform=b,this.suffix=new Uint8Array(c.length),d=0;d'),new A("",f,"\n"),new A("",i,""),new A("",f,"]"),new A("",f," for "),new A("",t,""),new A("",h,""),new A("",f," a "),new A("",f," that "),new A(" ",p,""),new A("",f,". "),new A(".",f,""),new A(" ",f,", "),new A("",u,""),new A("",f," with "),new A("",f,"'"),new A("",f," from "),new A("",f," by "),new A("",v,""),new A("",w,""),new A(" the ",f,""),new A("",j,""),new A("",f,". The "),new A("",q,""),new A("",f," on "),new A("",f," as "),new A("",f," is "),new A("",m,""),new A("",g,"ing "),new A("",f,"\n\t"),new A("",f,":"),new A(" ",f,". "),new A("",f,"ed "),new A("",z,""),new A("",x,""),new A("",l,""),new A("",f,"("),new A("",p,", "),new A("",n,""),new A("",f," at "),new A("",f,"ly "),new A(" the ",f," of "),new A("",k,""),new A("",o,""),new A(" ",p,", "),new A("",p,'"'),new A(".",f,"("),new A("",q," "),new A("",p,'">'),new A("",f,'="'),new A(" ",f,"."),new A(".com/",f,""),new A(" the ",f," of the "),new A("",p,"'"),new A("",f,". This "),new A("",f,","),new A(".",f," "),new A("",p,"("),new A("",p,"."),new A("",f," not "),new A(" ",f,'="'),new A("",f,"er "),new A(" ",q," "),new A("",f,"al "),new A(" ",q,""),new A("",f,"='"),new A("",q,'"'),new A("",p,". "),new A(" ",f,"("),new A("",f,"ful "),new A(" ",p,". "),new A("",f,"ive "),new A("",f,"less "),new A("",q,"'"),new A("",f,"est "),new A(" ",p,"."),new A("",q,'">'),new A(" ",f,"='"),new A("",p,","),new A("",f,"ize "),new A("",q,"."),new A("\xc2\xa0",f,""),new A(" ",f,","),new A("",p,'="'),new A("",q,'="'),new A("",f,"ous "),new A("",q,", "),new A("",p,"='"),new A(" ",p,","),new A(" ",q,'="'),new A(" ",q,", "),new A("",q,","),new A("",q,"("),new A("",q,". "),new A(" ",q,"."),new A("",q,"='"),new A(" ",q,". "),new A(" ",p,'="'),new A(" ",q,"='"),new A(" ",p,"='")],c.kTransforms=d,c.kNumTransforms=d.length;function B(a,b){return a[b]<192?(a[b]>=97&&a[b]<=122&&(a[b]^=32),1):a[b]<224?(a[b+1]^=32,2):(a[b+2]^=5,3)}c.transformDictionaryWord=function(a,b,c,f,g){var h,i,j,k,l=d[g].prefix,m=d[g].suffix,n=d[g].transform,s=nf&&(s=f),i=0;i0;)j=B(a,h),h+=j,f-=j;for(k=0;kc.UNZIP)throw new TypeError("Bad argument");this.mode=a,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}k.prototype.init=function(a,b,d,e,f){var j;switch(this.windowBits=a,this.level=b,this.memLevel=d,this.strategy=e,this.mode!==c.GZIP&&this.mode!==c.GUNZIP||(this.windowBits+=16),this.mode===c.UNZIP&&(this.windowBits+=32),this.mode!==c.DEFLATERAW&&this.mode!==c.INFLATERAW||(this.windowBits=-this.windowBits),this.strm=new g,this.mode){case c.DEFLATE:case c.GZIP:case c.DEFLATERAW:j=h.deflateInit2(this.strm,this.level,c.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case c.INFLATE:case c.GUNZIP:case c.INFLATERAW:case c.UNZIP:j=i.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}return j!==c.Z_OK?void this._error(j):(this.write_in_progress=!1,void(this.init_done=!0))},k.prototype.params=function(){throw Error("deflateParams Not supported")},k.prototype.Ina=function(){if(!this.init_done)throw Error("write before init");if(this.mode===c.NONE)throw Error("already finalized");if(this.write_in_progress)throw Error("write already in progress");if(this.pending_close)throw Error("close is pending")},k.prototype.write=function(a,c,d,e,f,g,h){this.Ina(),this.write_in_progress=!0;var i=this;return b.nextTick(function(){i.write_in_progress=!1;var b=i.ena(a,c,d,e,f,g,h);i.callback(b[0],b[1]),i.pending_close&&i.close()}),this};function l(a,b){for(var c=0;cc.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+a.chunkSize);if(a.windowBits&&(a.windowBitsc.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+a.windowBits);if(a.level&&(a.levelc.Z_MAX_LEVEL))throw Error("Invalid compression level: "+a.level);if(a.memLevel&&(a.memLevelc.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+a.memLevel);if(a.strategy&&a.strategy!=c.Z_FILTERED&&a.strategy!=c.Z_HUFFMAN_ONLY&&a.strategy!=c.Z_RLE&&a.strategy!=c.Z_FIXED&&a.strategy!=c.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+a.strategy);if(a.dictionary&&!d.isBuffer(a.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this.Nna=new f.Zlib(b),g=this,this.Ona=!1,this.Nna.onerror=function(a,b){g.Nna=null,g.Ona=!0;var d=Error(a);d.errno=b,d.code=c.codes[b],g.emit("error",d)},h=c.Z_DEFAULT_COMPRESSION,"number"==typeof a.level&&(h=a.level),i=c.Z_DEFAULT_STRATEGY,"number"==typeof a.strategy&&(i=a.strategy),this.Nna.init(a.windowBits||c.Z_DEFAULT_WINDOWBITS,h,a.memLevel||c.Z_DEFAULT_MEMLEVEL,i,a.dictionary),this.wI=new d(this.Lna),this.UP=0,this.Pna=!1,this.aN=h,this.Qna=i,this.once("end",this.close)}g.inherits(r,e),r.prototype.params=function(a,d,e){if(ac.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+a);if(d!=c.Z_FILTERED&&d!=c.Z_HUFFMAN_ONLY&&d!=c.Z_RLE&&d!=c.Z_FIXED&&d!=c.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+d);if(this.aN!==a||this.Qna!==d){var g=this;this.flush(f.Z_SYNC_FLUSH,function(){g.Nna.params(a,d),g.Ona||(g.aN=a,g.Qna=d,e&&e())})}else b.nextTick(e)},r.prototype.reset=function(){return this.Nna.reset()},r.prototype.Rna=function(a){this.Sna(new d(0),"",a)},r.prototype.flush=function(a,c){var e,g=this.Tna;("function"==typeof a||void 0===a&&!c)&&(c=a,a=f.Z_FULL_FLUSH),g.ended?c&&b.nextTick(c):g.ending?c&&this.once("end",c):g.needDrain?(e=this,this.once("drain",function(){e.flush(c)})):(this.Mna=a,this.write(new d(0),"",c))},r.prototype.close=function(a){if(a&&b.nextTick(a),!this.Pna){this.Pna=!0,this.Nna.close();var c=this;b.nextTick(function(){c.emit("close")})}},r.prototype.Sna=function(a,b,c){var e,g,h=this.Tna,i=h.ending||h.ended,j=i&&(!a||h.length===a.length);return null!==!a||d.isBuffer(a)?(j?e=f.Z_FINISH:(e=this.Mna,a.length>=h.length&&(this.Mna=this.Kna.flush||f.Z_NO_FLUSH)),g=this,void this.Jna(a,e,c)):c(Error("invalid input"))},r.prototype.Jna=function(a,b,c){var e,f,g,i,j,k,l=a&&a.length,m=this.Lna-this.UP,n=0,o=this,p="function"==typeof c;if(!p){e=[],f=0,this.on("error",function(a){g=a});do i=this.Nna.writeSync(b,a,n,l,this.wI,this.UP,m);while(!this.Ona&&q(i[0],i[1]));if(this.Ona)throw g;return j=d.concat(e,f),this.close(),j}k=this.Nna.write(b,a,n,l,this.wI,this.UP,m),k.buffer=a,k.callback=q;function q(g,i){var j,k,r;if(!o.Ona)return j=m-i,h(j>=0,"have should not go down"),j>0&&(k=o.wI.slice(o.UP,o.UP+j),o.UP+=j,p?o.push(k):(e.push(k),f+=k.length)),(0===i||o.UP>=o.Lna)&&(m=o.Lna,o.UP=0,o.wI=new d(o.Lna)),0===i?(n+=l-g,l=g,!p||(r=o.Nna.write(b,a,n,l,o.wI,o.UP,o.Lna),r.callback=q,void(r.buffer=a))):!!p&&void c()}},g.inherits(k,r),g.inherits(l,r),g.inherits(m,r),g.inherits(n,r),g.inherits(o,r),g.inherits(p,r),g.inherits(q,r)}).call(this,a("_process"),a("buffer").Buffer)},{"./binding":57,_process:188,_stream_transform:197,assert:22,buffer:60,util:224}],59:[function(a,b,c){arguments[4][56][0].apply(c,arguments)},{dup:56}],60:[function(a,c,d){(function(b){"use strict";var c,e,f=a("base64-js"),g=a("ieee754"),h=a("isarray");d.Buffer=l,d.SlowBuffer=v,d.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:i(),d.kMaxLength=j();function i(){try{var a=new Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(a){return!1}}function j(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function k(a,b){if(j()=j())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j().toString(16)+" bytes");return 0|a}function v(a){return+a!=a&&(a=0),l.alloc(+a)}l.isBuffer=function a(b){return!(null==b||!b.Q6)},l.compare=function a(b,c){var d,e,f,g;if(!l.isBuffer(b)||!l.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(b===c)return 0;for(d=b.length,e=c.length,f=0,g=Math.min(d,e);f>>1;case"base64":return _(a).length;default:if(d)return Y(a).length;b=(""+b).toLowerCase(),d=!0}}l.byteLength=w;function x(a,b,c){var d=!1;if((void 0===b||b<0)&&(b=0),b>this.length)return"";if((void 0===c||c>this.length)&&(c=this.length),c<=0)return"";if(c>>>=0,b>>>=0,c<=b)return"";for(a||(a="utf8");;)switch(a){case"hex":return M(this,b,c);case"utf8":case"utf-8":return I(this,b,c);case"ascii":return K(this,b,c);case"latin1":case"binary":return L(this,b,c);case"base64":return H(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}l.prototype.Q6=!0;function y(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}l.prototype.swap16=function a(){var b,c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(b=0;b0&&(b=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(b+=" ... ")),""},l.prototype.compare=function a(b,c,d,e,f){var g,h,i,j,k,m;if(!l.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(void 0===c&&(c=0),void 0===d&&(d=b?b.length:0),void 0===e&&(e=0),void 0===f&&(f=this.length),c<0||d>b.length||e<0||f>this.length)throw new RangeError("out of range index");if(e>=f&&c>=d)return 0;if(e>=f)return-1;if(c>=d)return 1;if(c>>>=0,d>>>=0,e>>>=0,f>>>=0,this===b)return 0;for(g=f-e,h=d-c,i=Math.min(g,h),j=this.slice(e,f),k=b.slice(c,d),m=0;m2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,isNaN(c)&&(c=e?0:a.length-1),c<0&&(c=a.length+c),c>=a.length){if(e)return-1;c=a.length-1}else if(c<0){if(!e)return-1;c=0}if("string"==typeof b&&(b=l.from(b,d)),l.isBuffer(b))return 0===b.length?-1:A(a,b,c,d,e);if("number"==typeof b)return b=255&b,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):A(a,[b],c,d,e);throw new TypeError("val must be string, number or Buffer")}function A(a,b,c,d,e){var f,g,h,i,j=1,k=a.length,l=b.length;if(void 0!==d&&(d=(d+"").toLowerCase(),"ucs2"===d||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return-1;j=2,k/=2,l/=2,c/=2}function m(a,b){return 1===j?a[b]:a.readUInt16BE(b*j)}if(e)for(g=-1,f=c;fk&&(c=k-l),f=c;f>=0;f--){for(h=!0,i=0;ie&&(d=e)):d=e,f=b.length,f%2!==0)throw new TypeError("Invalid hex string");for(d>f/2&&(d=f/2),g=0;gf)&&(d=f),b.length>0&&(d<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");for(e||(e="utf8"),g=!1;;)switch(e){case"hex":return B(this,b,c,d);case"utf8":case"utf-8":return C(this,b,c,d);case"ascii":return D(this,b,c,d);case"latin1":case"binary":return E(this,b,c,d);case"base64":return F(this,b,c,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c,d);default:if(g)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),g=!0}},l.prototype.toJSON=function a(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(a,b,c){return 0===b&&c===a.length?f.fromByteArray(a):f.fromByteArray(a.slice(b,c))}function I(a,b,c){var d,e,f,g,h,i,j,k,l;for(c=Math.min(a.length,c),d=[],e=b;e239?4:f>223?3:f>191?2:1,e+h<=c)switch(h){case 1:f<128&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(l<55296||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&l<1114112&&(g=l))}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return J(d)}c=4096;function J(a){var b,d,e=a.length;if(e<=c)return String.fromCharCode.apply(String,a);for(b="",d=0;df)&&(c=f),d="",e=b;eg&&(b=g),c<0?(c+=g,c<0&&(c=0)):c>g&&(c=g),cc)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function a(b,c,d){var e,f,g;for(b=0|b,c=0|c,d||O(b,c,this.length),e=this[b],f=1,g=0;++g0&&(f*=256);)e+=this[b+--c]*f;return e},l.prototype.readUInt8=function a(b,c){return c||O(b,1,this.length),this[b]},l.prototype.readUInt16LE=function a(b,c){return c||O(b,2,this.length),this[b]|this[b+1]<<8},l.prototype.readUInt16BE=function a(b,c){return c||O(b,2,this.length),this[b]<<8|this[b+1]},l.prototype.readUInt32LE=function a(b,c){return c||O(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},l.prototype.readUInt32BE=function a(b,c){return c||O(b,4,this.length),16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])},l.prototype.readIntLE=function a(b,c,d){var e,f,g;for(b=0|b,c=0|c,d||O(b,c,this.length),e=this[b],f=1,g=0;++g=f&&(e-=Math.pow(2,8*c)),e},l.prototype.readIntBE=function a(b,c,d){var e,f,g;for(b=0|b,c=0|c,d||O(b,c,this.length),e=c,f=1,g=this[b+--e];e>0&&(f*=256);)g+=this[b+--e]*f;return f*=128,g>=f&&(g-=Math.pow(2,8*c)),g},l.prototype.readInt8=function a(b,c){return c||O(b,1,this.length),128&this[b]?(255-this[b]+1)*-1:this[b]},l.prototype.readInt16LE=function a(b,c){c||O(b,2,this.length);var d=this[b]|this[b+1]<<8;return 32768&d?4294901760|d:d},l.prototype.readInt16BE=function a(b,c){c||O(b,2,this.length);var d=this[b+1]|this[b]<<8;return 32768&d?4294901760|d:d},l.prototype.readInt32LE=function a(b,c){return c||O(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},l.prototype.readInt32BE=function a(b,c){return c||O(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},l.prototype.readFloatLE=function a(b,c){return c||O(b,4,this.length),g.read(this,b,!0,23,4)},l.prototype.readFloatBE=function a(b,c){return c||O(b,4,this.length),g.read(this,b,!1,23,4)},l.prototype.readDoubleLE=function a(b,c){return c||O(b,8,this.length),g.read(this,b,!0,52,8)},l.prototype.readDoubleBE=function a(b,c){return c||O(b,8,this.length),g.read(this,b,!1,52,8)};function P(a,b,c,d,e,f){if(!l.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>e||ba.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function a(b,c,d,e){var f,g,h;for(b=+b,c=0|c,d=0|d,e||(f=Math.pow(2,8*d)-1,P(this,b,c,d,f,0)),g=1,h=0,this[c]=255&b;++h=0&&(h*=256);)this[c+g]=b/h&255;return c+d},l.prototype.writeUInt8=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,1,255,0),l.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),this[c]=255&b,c+1};function Q(a,b,c,d){b<0&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}l.prototype.writeUInt16LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):Q(this,b,c,!0),c+2},l.prototype.writeUInt16BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):Q(this,b,c,!1),c+2};function R(a,b,c,d){b<0&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}l.prototype.writeUInt32LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[c+3]=b>>>24,this[c+2]=b>>>16,this[c+1]=b>>>8,this[c]=255&b):R(this,b,c,!0),c+4},l.prototype.writeUInt32BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):R(this,b,c,!1),c+4},l.prototype.writeIntLE=function a(b,c,d,e){var f,g,h,i;for(b=+b,c=0|c,e||(f=Math.pow(2,8*d-1),P(this,b,c,d,f-1,-f)), g=0,h=1,i=0,this[c]=255&b;++g>0)-i&255;return c+d},l.prototype.writeIntBE=function a(b,c,d,e){var f,g,h,i;for(b=+b,c=0|c,e||(f=Math.pow(2,8*d-1),P(this,b,c,d,f-1,-f)),g=d-1,h=1,i=0,this[c+g]=255&b;--g>=0&&(h*=256);)b<0&&0===i&&0!==this[c+g+1]&&(i=1),this[c+g]=(b/h>>0)-i&255;return c+d},l.prototype.writeInt8=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,1,127,-128),l.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),b<0&&(b=255+b+1),this[c]=255&b,c+1},l.prototype.writeInt16LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):Q(this,b,c,!0),c+2},l.prototype.writeInt16BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):Q(this,b,c,!1),c+2},l.prototype.writeInt32LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8,this[c+2]=b>>>16,this[c+3]=b>>>24):R(this,b,c,!0),c+4},l.prototype.writeInt32BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):R(this,b,c,!1),c+4};function S(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function T(a,b,c,d,e){return e||S(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),g.write(a,b,c,d,23,4),c+4}l.prototype.writeFloatLE=function a(b,c,d){return T(this,b,c,!0,d)},l.prototype.writeFloatBE=function a(b,c,d){return T(this,b,c,!1,d)};function U(a,b,c,d,e){return e||S(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),g.write(a,b,c,d,52,8),c+8}l.prototype.writeDoubleLE=function a(b,c,d){return U(this,b,c,!0,d)},l.prototype.writeDoubleBE=function a(b,c,d){return U(this,b,c,!1,d)},l.prototype.copy=function a(b,c,d,e){var f,g;if(d||(d=0),e||0===e||(e=this.length),c>=b.length&&(c=b.length),c||(c=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");if(e>this.length&&(e=this.length),b.length-c=0;--g)b[g+c]=this[g+d];else if(f<1e3||!l.TYPED_ARRAY_SUPPORT)for(g=0;g>>=0,d=void 0===d?this.length:d>>>0,b||(b=0),"number"==typeof b)for(g=c;g55295&&c<57344){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,c<128){if((b-=1)<0)break;f.push(c)}else if(c<2048){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function Z(a){var b,c=[];for(b=0;b>8,e=c%256,g.push(e),g.push(d);return g}function _(a){return f.toByteArray(V(a))}function aa(a,b,c,d){for(var e=0;e=b.length||e>=a.length);++e)b[e+c]=a[e];return e}function ba(a){return a!==a}}).call(this,void 0!==b?b:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":45,ieee754:166,isarray:169}],61:[function(a,b,c){(function(a){var c=function(){"use strict";function b(c,d,e,f){var h,i,j,k;"object"==typeof d&&(e=d.depth,f=d.prototype,h=d.filter,d=d.circular),i=[],j=[],k=void 0!==a,void 0===d&&(d=!0),void 0===e&&(e=1/0);function l(c,e){var h,m,n,o,p;if(null===c)return null;if(0==e)return c;if("object"!=typeof c)return c;if(b.Vna(c))h=[];else if(b.Wna(c))h=RegExp(c.source,g(c)),c.lastIndex&&(h.lastIndex=c.lastIndex);else if(b.Xna(c))h=new Date(c.getTime());else{if(k&&a.isBuffer(c))return h=new a(c.length),c.copy(h),h;void 0===f?(m=Object.getPrototypeOf(c),h=Object.create(m)):(h=Object.create(f),m=f)}if(d){if(n=i.indexOf(c),n!=-1)return j[n];i.push(c),j.push(h)}for(o in c)m&&(p=Object.getOwnPropertyDescriptor(m,o)),p&&null==p.set||(h[o]=l(c[o],e-1));return h}return l(c,e)}b.clonePrototype=function a(b){if(null===b)return null;var c=function(){};return c.prototype=b,new c};function c(a){return Object.prototype.toString.call(a)}b.Yna=c;function d(a){return"object"==typeof a&&"[object Date]"===c(a)}b.Xna=d;function e(a){return"object"==typeof a&&"[object Array]"===c(a)}b.Vna=e;function f(a){return"object"==typeof a&&"[object RegExp]"===c(a)}b.Wna=f;function g(a){var b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),b}return b.Zna=g,b}();"object"==typeof b&&b.exports&&(b.exports=c)}).call(this,a("buffer").Buffer)},{buffer:60}],62:[function(a,b,c){a("../../modules/es6.string.iterator"),a("../../modules/es6.array.from"),b.exports=a("../../modules/_core").Array.from},{"../../modules/_core":82,"../../modules/es6.array.from":143,"../../modules/es6.string.iterator":155}],63:[function(a,b,c){a("../modules/web.dom.iterable"),a("../modules/es6.string.iterator"),b.exports=a("../modules/core.get-iterator")},{"../modules/core.get-iterator":141,"../modules/es6.string.iterator":155,"../modules/web.dom.iterable":159}],64:[function(a,b,c){a("../modules/web.dom.iterable"),a("../modules/es6.string.iterator"),b.exports=a("../modules/core.is-iterable")},{"../modules/core.is-iterable":142,"../modules/es6.string.iterator":155,"../modules/web.dom.iterable":159}],65:[function(a,b,c){a("../../modules/es6.object.assign"),b.exports=a("../../modules/_core").Object.assign},{"../../modules/_core":82,"../../modules/es6.object.assign":145}],66:[function(a,b,c){a("../../modules/es6.object.create");var d=a("../../modules/_core").Object;b.exports=function a(b,c){return d.create(b,c)}},{"../../modules/_core":82,"../../modules/es6.object.create":146}],67:[function(a,b,c){a("../../modules/es6.object.define-properties");var d=a("../../modules/_core").Object;b.exports=function a(b,c){return d.defineProperties(b,c)}},{"../../modules/_core":82,"../../modules/es6.object.define-properties":147}],68:[function(a,b,c){a("../../modules/es6.object.define-property");var d=a("../../modules/_core").Object;b.exports=function a(b,c,e){return d.defineProperty(b,c,e)}},{"../../modules/_core":82,"../../modules/es6.object.define-property":148}],69:[function(a,b,c){a("../../modules/es6.object.freeze"),b.exports=a("../../modules/_core").Object.freeze},{"../../modules/_core":82,"../../modules/es6.object.freeze":149}],70:[function(a,b,c){a("../../modules/es6.object.get-own-property-descriptor");var d=a("../../modules/_core").Object;b.exports=function a(b,c){return d.getOwnPropertyDescriptor(b,c)}},{"../../modules/_core":82,"../../modules/es6.object.get-own-property-descriptor":150}],71:[function(a,b,c){a("../../modules/es6.object.get-prototype-of"),b.exports=a("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":82,"../../modules/es6.object.get-prototype-of":151}],72:[function(a,b,c){a("../../modules/es6.object.keys"),b.exports=a("../../modules/_core").Object.keys},{"../../modules/_core":82,"../../modules/es6.object.keys":152}],73:[function(a,b,c){a("../../modules/es6.object.set-prototype-of"),b.exports=a("../../modules/_core").Object.setPrototypeOf},{"../../modules/_core":82,"../../modules/es6.object.set-prototype-of":153}],74:[function(a,b,c){a("../../modules/es6.symbol"),a("../../modules/es6.object.to-string"),a("../../modules/es7.symbol.async-iterator"),a("../../modules/es7.symbol.observable"),b.exports=a("../../modules/_core").Symbol},{"../../modules/_core":82,"../../modules/es6.object.to-string":154,"../../modules/es6.symbol":156,"../../modules/es7.symbol.async-iterator":157,"../../modules/es7.symbol.observable":158}],75:[function(a,b,c){a("../../modules/es6.string.iterator"),a("../../modules/web.dom.iterable"),b.exports=a("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":138,"../../modules/es6.string.iterator":155,"../../modules/web.dom.iterable":159}],76:[function(a,b,c){b.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},{}],77:[function(a,b,c){b.exports=function(){}},{}],78:[function(a,b,c){var d=a("./_is-object");b.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":100}],79:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_to-length"),f=a("./_to-index");b.exports=function(a){return function(b,c,g){var h=d(b),i=e(h.length),j=f(g,i),k;if(a&&c!=c){for(;i>j;)if(k=h[j++],k!=k)return!0}else for(;i>j;j++)if((a||j in h)&&h[j]===c)return a||j||0;return!a&&-1}}},{"./_to-index":130,"./_to-iobject":132,"./_to-length":133}],80:[function(a,b,c){var d=a("./_cof"),e=a("./_wks")("toStringTag"),f="Arguments"==d(function(){return arguments}()),g=function(a,b){try{return a[b]}catch(a){}};b.exports=function(a){var b,c,h;return void 0===a?"Undefined":null===a?"Null":"string"==typeof(c=g(b=Object(a),e))?c:f?d(b):"Object"==(h=d(b))&&"function"==typeof b.callee?"Arguments":h}},{"./_cof":81,"./_wks":139}],81:[function(a,b,c){var d={}.toString;b.exports=function(a){return d.call(a).slice(8,-1)}},{}],82:[function(a,b,c){var d=b.exports={version:"2.4.0"};"number"==typeof __e&&(__e=d)},{}],83:[function(a,b,c){"use strict";var d=a("./_object-dp"),e=a("./_property-desc");b.exports=function(a,b,c){b in a?d.f(a,b,e(0,c)):a[b]=c}},{"./_object-dp":112,"./_property-desc":123}],84:[function(a,b,c){var d=a("./_a-function");b.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},{"./_a-function":76}],85:[function(a,b,c){b.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}},{}],86:[function(a,b,c){b.exports=!a("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":91}],87:[function(a,b,c){var d=a("./_is-object"),e=a("./_global").document,f=d(e)&&d(e.createElement);b.exports=function(a){return f?e.createElement(a):{}}},{"./_global":92,"./_is-object":100}],88:[function(a,b,c){b.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],89:[function(a,b,c){var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie");b.exports=function(a){var b,c,g,h,i=d(a),j=e.f;if(j)for(b=j(a),c=f.f,g=0;b.length>g;)c.call(a,h=b[g++])&&i.push(h);return i}},{"./_object-gops":117,"./_object-keys":120,"./_object-pie":121}],90:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_ctx"),g=a("./_hide"),h="prototype",i=function(a,b,c){var j=a&i.F,k=a&i.G,l=a&i.S,m=a&i.P,n=a&i.B,o=a&i.W,p=k?e:e[b]||(e[b]={}),q=p[h],r=k?d:l?d[b]:(d[b]||{})[h],s,t,u;k&&(c=b);for(s in c)t=!j&&r&&void 0!==r[s],t&&s in p||(u=t?r[s]:c[s],p[s]=k&&"function"!=typeof r[s]?c[s]:n&&t?f(u,d):o&&r[s]==u?function(a){var b=function(b,c,d){if(this instanceof a){switch(arguments.length){case 0:return new a;case 1:return new a(b);case 2:return new a(b,c)}return new a(b,c,d)}return a.apply(this,arguments)};return b[h]=a[h],b}(u):m&&"function"==typeof u?f(Function.call,u):u,m&&((p.virtual||(p.virtual={}))[s]=u,a&i.R&&q&&!q[s]&&g(q,s,u)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,b.exports=i},{"./_core":82,"./_ctx":84,"./_global":92,"./_hide":94}],91:[function(a,b,c){b.exports=function(a){try{return!!a()}catch(a){return!0}}},{}],92:[function(a,b,c){var d=b.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=d)},{}],93:[function(a,b,c){var d={}.hasOwnProperty;b.exports=function(a,b){return d.call(a,b)}},{}],94:[function(a,b,c){var d=a("./_object-dp"),e=a("./_property-desc");b.exports=a("./_descriptors")?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},{"./_descriptors":86,"./_object-dp":112,"./_property-desc":123}],95:[function(a,b,c){b.exports=a("./_global").document&&document.documentElement},{"./_global":92}],96:[function(a,b,c){b.exports=!a("./_descriptors")&&!a("./_fails")(function(){return 7!=Object.defineProperty(a("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":86,"./_dom-create":87,"./_fails":91}],97:[function(a,b,c){var d=a("./_cof");b.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)}},{"./_cof":81}],98:[function(a,b,c){var d=a("./_iterators"),e=a("./_wks")("iterator"),f=Array.prototype;b.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},{"./_iterators":106,"./_wks":139}],99:[function(a,b,c){var d=a("./_cof");b.exports=Array.isArray||function a(b){return"Array"==d(b)}},{"./_cof":81}],100:[function(a,b,c){b.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},{}],101:[function(a,b,c){var d=a("./_an-object");b.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(b){var f=a.return;throw void 0!==f&&d(f.call(a)),b}}},{"./_an-object":78}],102:[function(a,b,c){"use strict";var d=a("./_object-create"),e=a("./_property-desc"),f=a("./_set-to-string-tag"),g={};a("./_hide")(g,a("./_wks")("iterator"),function(){return this}),b.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+" Iterator")}},{"./_hide":94,"./_object-create":111,"./_property-desc":123,"./_set-to-string-tag":126,"./_wks":139}],103:[function(a,b,c){"use strict";var d=a("./_library"),e=a("./_export"),f=a("./_redefine"),g=a("./_hide"),h=a("./_has"),i=a("./_iterators"),j=a("./_iter-create"),k=a("./_set-to-string-tag"),l=a("./_object-gpo"),m=a("./_wks")("iterator"),n=!([].keys&&"next"in[].keys()),o="@@iterator",p="keys",q="values",r=function(){return this};b.exports=function(a,b,c,s,t,u,v){var w,x,y,z,A,B,C,D,E,F,G,H;if(j(c,b,s),w=function(a){if(!n&&a in A)return A[a];switch(a){case p:return function b(){return new c(this,a)};case q:return function b(){return new c(this,a)}}return function b(){return new c(this,a)}},x=b+" Iterator",y=t==q,z=!1,A=a.prototype,B=A[m]||A[o]||t&&A[t],C=B||w(t),D=t?y?w("entries"):C:void 0,E="Array"==b?A.entries||B:B,E&&(H=l(E.call(new a)),H!==Object.prototype&&(k(H,x,!0),d||h(H,m)||g(H,m,r))),y&&B&&B.name!==q&&(z=!0,C=function a(){return B.call(this)}),d&&!v||!n&&!z&&A[m]||g(A,m,C),i[b]=C,i[x]=r,t)if(F={values:y?C:w(q),keys:u?C:w(p),entries:D},v)for(G in F)G in A||f(A,G,F[G]);else e(e.P+e.F*(n||z),b,F);return F}},{"./_export":90,"./_has":93,"./_hide":94,"./_iter-create":102,"./_iterators":106,"./_library":108,"./_object-gpo":118,"./_redefine":124,"./_set-to-string-tag":126,"./_wks":139}],104:[function(a,b,c){var d,e=a("./_wks")("iterator"),f=!1;try{d=[7][e](),d.return=function(){f=!0},Array.from(d,function(){throw 2})}catch(a){}b.exports=function(a,b){var c,d,g;if(!b&&!f)return!1;c=!1;try{d=[7],g=d[e](),g.next=function(){return{done:c=!0}},d[e]=function(){return g},a(d)}catch(a){}return c}},{"./_wks":139}],105:[function(a,b,c){b.exports=function(a,b){return{value:b,done:!!a}}},{}],106:[function(a,b,c){b.exports={}},{}],107:[function(a,b,c){var d=a("./_object-keys"),e=a("./_to-iobject");b.exports=function(a,b){for(var c=e(a),f=d(c),g=f.length,h=0,i;g>h;)if(c[i=f[h++]]===b)return i}},{"./_object-keys":120,"./_to-iobject":132}],108:[function(a,b,c){b.exports=!0},{}],109:[function(a,b,c){var d=a("./_uid")("meta"),e=a("./_is-object"),f=a("./_has"),g=a("./_object-dp").f,h=0,i=Object.isExtensible||function(){return!0},j=!a("./_fails")(function(){return i(Object.preventExtensions({}))}),k=function(a){g(a,d,{value:{i:"O"+ ++h,w:{}}})},l=function(a,b){if(!e(a))return"symbol"==typeof a?a:("string"==typeof a?"S":"P")+a;if(!f(a,d)){if(!i(a))return"F";if(!b)return"E";k(a)}return a[d].i},m=function(a,b){if(!f(a,d)){if(!i(a))return!0;if(!b)return!1;k(a)}return a[d].w},n=function(a){return j&&o.NEED&&i(a)&&!f(a,d)&&k(a),a},o=b.exports={KEY:d,NEED:!1,fastKey:l,getWeak:m,onFreeze:n}},{"./_fails":91,"./_has":93,"./_is-object":100,"./_object-dp":112,"./_uid":136}],110:[function(a,b,c){"use strict";var d=a("./_object-keys"),e=a("./_object-gops"),f=a("./_object-pie"),g=a("./_to-object"),h=a("./_iobject"),i=Object.assign;b.exports=!i||a("./_fails")(function(){var a={},b={},c=Symbol(),d="abcdefghijklmnopqrst";return a[c]=7,d.split("").forEach(function(a){b[a]=a}),7!=i({},a)[c]||Object.keys(i({},b)).join("")!=d})?function a(b,c){for(var i,j,k,l,m,n=g(b),o=arguments.length,p=1,q=e.f,r=f.f;o>p;)for(i=h(arguments[p++]),j=q?d(i).concat(q(i)):d(i),k=j.length,l=0;k>l;)r.call(i,m=j[l++])&&(n[m]=i[m]);return n}:i},{"./_fails":91,"./_iobject":97,"./_object-gops":117,"./_object-keys":120,"./_object-pie":121,"./_to-object":134}],111:[function(a,b,c){var d=a("./_an-object"),e=a("./_object-dps"),f=a("./_enum-bug-keys"),g=a("./_shared-key")("IE_PROTO"),h=function(){},i="prototype",j=function(){var b=a("./_dom-create")("iframe"),c=f.length,d="<",e=">",g;for(b.style.display="none",a("./_html").appendChild(b),b.src="javascript:",g=b.contentWindow.document,g.open(),g.write(d+"script"+e+"document.F=Object"+d+"/script"+e),g.close(),j=g.F;c--;)delete j[i][f[c]];return j()};b.exports=Object.create||function a(b,c){var f;return null!==b?(h[i]=d(b),f=new h,h[i]=null,f[g]=b):f=j(),void 0===c?f:e(f,c)}},{"./_an-object":78,"./_dom-create":87,"./_enum-bug-keys":88,"./_html":95,"./_object-dps":113,"./_shared-key":127}],112:[function(a,b,c){var d=a("./_an-object"),e=a("./_ie8-dom-define"),f=a("./_to-primitive"),g=Object.defineProperty;c.f=a("./_descriptors")?Object.defineProperty:function a(b,c,h){if(d(b),c=f(c,!0),d(h),e)try{return g(b,c,h)}catch(a){}if("get"in h||"set"in h)throw TypeError("Accessors not supported!");return"value"in h&&(b[c]=h.value),b}},{"./_an-object":78,"./_descriptors":86,"./_ie8-dom-define":96,"./_to-primitive":135}],113:[function(a,b,c){var d=a("./_object-dp"),e=a("./_an-object"),f=a("./_object-keys");b.exports=a("./_descriptors")?Object.defineProperties:function a(b,c){e(b);for(var g=f(c),h=g.length,i=0,j;h>i;)d.f(b,j=g[i++],c[j]);return b}},{"./_an-object":78,"./_descriptors":86,"./_object-dp":112,"./_object-keys":120}],114:[function(a,b,c){var d=a("./_object-pie"),e=a("./_property-desc"),f=a("./_to-iobject"),g=a("./_to-primitive"),h=a("./_has"),i=a("./_ie8-dom-define"),j=Object.getOwnPropertyDescriptor;c.f=a("./_descriptors")?j:function a(b,c){if(b=f(b),c=g(c,!0),i)try{return j(b,c)}catch(a){}if(h(b,c))return e(!d.f.call(b,c),b[c])}},{"./_descriptors":86,"./_has":93,"./_ie8-dom-define":96,"./_object-pie":121,"./_property-desc":123,"./_to-iobject":132,"./_to-primitive":135}],115:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopn").f,f={}.toString,g="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(a){try{return e(a)}catch(a){return g.slice()}};b.exports.f=function a(b){return g&&"[object Window]"==f.call(b)?h(b):e(d(b))}},{"./_object-gopn":116,"./_to-iobject":132}],116:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function a(b){return d(b,e)}},{"./_enum-bug-keys":88,"./_object-keys-internal":119}],117:[function(a,b,c){c.f=Object.getOwnPropertySymbols},{}],118:[function(a,b,c){var d=a("./_has"),e=a("./_to-object"),f=a("./_shared-key")("IE_PROTO"),g=Object.prototype;b.exports=Object.getPrototypeOf||function(a){return a=e(a),d(a,f)?a[f]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},{"./_has":93,"./_shared-key":127,"./_to-object":134}],119:[function(a,b,c){var d=a("./_has"),e=a("./_to-iobject"),f=a("./_array-includes")(!1),g=a("./_shared-key")("IE_PROTO");b.exports=function(a,b){var c=e(a),h=0,i=[],j;for(j in c)j!=g&&d(c,j)&&i.push(j);for(;b.length>h;)d(c,j=b[h++])&&(~f(i,j)||i.push(j));return i}},{"./_array-includes":79,"./_has":93,"./_shared-key":127,"./_to-iobject":132}],120:[function(a,b,c){var d=a("./_object-keys-internal"),e=a("./_enum-bug-keys");b.exports=Object.keys||function a(b){return d(b,e)}},{"./_enum-bug-keys":88,"./_object-keys-internal":119}],121:[function(a,b,c){c.f={}.propertyIsEnumerable},{}],122:[function(a,b,c){var d=a("./_export"),e=a("./_core"),f=a("./_fails");b.exports=function(a,b){var c=(e.Object||{})[a]||Object[a],g={};g[a]=b(c),d(d.S+d.F*f(function(){c(1)}),"Object",g)}},{"./_core":82,"./_export":90,"./_fails":91}],123:[function(a,b,c){b.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},{}],124:[function(a,b,c){b.exports=a("./_hide")},{"./_hide":94}],125:[function(a,b,c){var d=a("./_is-object"),e=a("./_an-object"),f=function(a,b){if(e(a),!d(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};b.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c,d){try{d=a("./_ctx")(Function.call,a("./_object-gopd").f(Object.prototype,"__proto__").set,2),d(b,[]),c=!(b instanceof Array)}catch(a){c=!0}return function a(b,e){return f(b,e),c?b.__proto__=e:d(b,e),b}}({},!1):void 0),check:f}},{"./_an-object":78,"./_ctx":84,"./_is-object":100,"./_object-gopd":114}],126:[function(a,b,c){var d=a("./_object-dp").f,e=a("./_has"),f=a("./_wks")("toStringTag");b.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},{"./_has":93,"./_object-dp":112,"./_wks":139}],127:[function(a,b,c){var d=a("./_shared")("keys"),e=a("./_uid");b.exports=function(a){return d[a]||(d[a]=e(a))}},{"./_shared":128,"./_uid":136}],128:[function(a,b,c){var d=a("./_global"),e="__core-js_shared__",f=d[e]||(d[e]={});b.exports=function(a){return f[a]||(f[a]={})}},{"./_global":92}],129:[function(a,b,c){var d=a("./_to-integer"),e=a("./_defined");b.exports=function(a){return function(b,c){var f=e(b)+"",g=d(c),h=f.length,i,j;return g<0||g>=h?a?"":void 0:(i=f.charCodeAt(g),i<55296||i>56319||g+1===h||(j=f.charCodeAt(g+1))<56320||j>57343?a?f.charAt(g):i:a?f.slice(g,g+2):(i-55296<<10)+(j-56320)+65536)}}},{"./_defined":85,"./_to-integer":131}],130:[function(a,b,c){var d=a("./_to-integer"),e=Math.max,f=Math.min;b.exports=function(a,b){return a=d(a),a<0?e(a+b,0):f(a,b)}},{"./_to-integer":131}],131:[function(a,b,c){var d=Math.ceil,e=Math.floor;b.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)}},{}],132:[function(a,b,c){var d=a("./_iobject"),e=a("./_defined");b.exports=function(a){return d(e(a))}},{"./_defined":85,"./_iobject":97}],133:[function(a,b,c){var d=a("./_to-integer"),e=Math.min;b.exports=function(a){return a>0?e(d(a),9007199254740991):0}},{"./_to-integer":131}],134:[function(a,b,c){var d=a("./_defined");b.exports=function(a){return Object(d(a))}},{"./_defined":85}],135:[function(a,b,c){var d=a("./_is-object");b.exports=function(a,b){if(!d(a))return a;var c,e;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;if("function"==typeof(c=a.valueOf)&&!d(e=c.call(a)))return e;if(!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":100}],136:[function(a,b,c){var d=0,e=Math.random();b.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))}},{}],137:[function(a,b,c){var d=a("./_global"),e=a("./_core"),f=a("./_library"),g=a("./_wks-ext"),h=a("./_object-dp").f;b.exports=function(a){var b=e.Symbol||(e.Symbol=f?{}:d.Symbol||{});"_"==a.charAt(0)||a in b||h(b,a,{value:g.f(a)})}},{"./_core":82,"./_global":92,"./_library":108,"./_object-dp":112,"./_wks-ext":138}],138:[function(a,b,c){c.f=a("./_wks")},{"./_wks":139}],139:[function(a,b,c){var d=a("./_shared")("wks"),e=a("./_uid"),f=a("./_global").Symbol,g="function"==typeof f,h=b.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))};h.store=d},{"./_global":92,"./_shared":128,"./_uid":136}],140:[function(a,b,c){var d=a("./_classof"),e=a("./_wks")("iterator"),f=a("./_iterators");b.exports=a("./_core").getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},{"./_classof":80,"./_core":82,"./_iterators":106,"./_wks":139}],141:[function(a,b,c){var d=a("./_an-object"),e=a("./core.get-iterator-method");b.exports=a("./_core").getIterator=function(a){var b=e(a);if("function"!=typeof b)throw TypeError(a+" is not iterable!");return d(b.call(a))}},{"./_an-object":78,"./_core":82,"./core.get-iterator-method":140}],142:[function(a,b,c){var d=a("./_classof"),e=a("./_wks")("iterator"),f=a("./_iterators");b.exports=a("./_core").isIterable=function(a){var b=Object(a);return void 0!==b[e]||"@@iterator"in b||f.hasOwnProperty(d(b))}},{"./_classof":80,"./_core":82,"./_iterators":106,"./_wks":139}],143:[function(a,b,c){"use strict";var d=a("./_ctx"),e=a("./_export"),f=a("./_to-object"),g=a("./_iter-call"),h=a("./_is-array-iter"),i=a("./_to-length"),j=a("./_create-property"),k=a("./core.get-iterator-method");e(e.S+e.F*!a("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function a(b){var c=f(b),e="function"==typeof this?this:Array,l=arguments.length,m=l>1?arguments[1]:void 0,n=void 0!==m,o=0,p=k(c),q,r,s,t;if(n&&(m=d(m,l>2?arguments[2]:void 0,2)),void 0==p||e==Array&&h(p))for(q=i(c.length),r=new e(q);q>o;o++)j(r,o,n?m(c[o],o):c[o]);else for(t=p.call(c),r=new e;!(s=t.next()).done;o++)j(r,o,n?g(t,m,[s.value,o],!0):s.value);return r.length=o,r}})},{"./_create-property":83,"./_ctx":84,"./_export":90,"./_is-array-iter":98,"./_iter-call":101,"./_iter-detect":104,"./_to-length":133,"./_to-object":134,"./core.get-iterator-method":140}],144:[function(a,b,c){"use strict";var d=a("./_add-to-unscopables"),e=a("./_iter-step"),f=a("./_iterators"),g=a("./_to-iobject");b.exports=a("./_iter-define")(Array,"Array",function(a,b){this.$na=g(a),this._na=0,this.aoa=b},function(){var a=this.$na,b=this.aoa,c=this._na++;return!a||c>=a.length?(this.$na=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},{"./_add-to-unscopables":77,"./_iter-define":103,"./_iter-step":105,"./_iterators":106,"./_to-iobject":132}],145:[function(a,b,c){var d=a("./_export");d(d.S+d.F,"Object",{assign:a("./_object-assign")})},{"./_export":90,"./_object-assign":110}],146:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{create:a("./_object-create")})},{"./_export":90,"./_object-create":111}],147:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperties:a("./_object-dps")})},{"./_descriptors":86,"./_export":90,"./_object-dps":113}],148:[function(a,b,c){var d=a("./_export");d(d.S+d.F*!a("./_descriptors"),"Object",{defineProperty:a("./_object-dp").f})},{"./_descriptors":86,"./_export":90,"./_object-dp":112}],149:[function(a,b,c){var d=a("./_is-object"),e=a("./_meta").onFreeze;a("./_object-sap")("freeze",function(a){return function b(c){return a&&d(c)?a(e(c)):c}})},{"./_is-object":100,"./_meta":109,"./_object-sap":122}],150:[function(a,b,c){var d=a("./_to-iobject"),e=a("./_object-gopd").f;a("./_object-sap")("getOwnPropertyDescriptor",function(){return function a(b,c){return e(d(b),c)}})},{"./_object-gopd":114,"./_object-sap":122,"./_to-iobject":132}],151:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-gpo");a("./_object-sap")("getPrototypeOf",function(){return function a(b){return e(d(b))}})},{"./_object-gpo":118,"./_object-sap":122,"./_to-object":134}],152:[function(a,b,c){var d=a("./_to-object"),e=a("./_object-keys");a("./_object-sap")("keys",function(){return function a(b){return e(d(b))}})},{"./_object-keys":120,"./_object-sap":122,"./_to-object":134}],153:[function(a,b,c){var d=a("./_export");d(d.S,"Object",{setPrototypeOf:a("./_set-proto").set})},{"./_export":90,"./_set-proto":125}],154:[function(a,b,c){arguments[4][56][0].apply(c,arguments)},{dup:56}],155:[function(a,b,c){"use strict";var d=a("./_string-at")(!0);a("./_iter-define")(String,"String",function(a){this.$na=a+"",this._na=0},function(){var a=this.$na,b=this._na,c;return b>=a.length?{value:void 0,done:!0}:(c=d(a,b),this._na+=c.length,{value:c,done:!1})})},{"./_iter-define":103,"./_string-at":129}],156:[function(a,b,c){"use strict";var d,e,f=a("./_global"),g=a("./_has"),h=a("./_descriptors"),i=a("./_export"),j=a("./_redefine"),k=a("./_meta").KEY,l=a("./_fails"),m=a("./_shared"),n=a("./_set-to-string-tag"),o=a("./_uid"),p=a("./_wks"),q=a("./_wks-ext"),r=a("./_wks-define"),s=a("./_keyof"),t=a("./_enum-keys"),u=a("./_is-array"),v=a("./_an-object"),w=a("./_to-iobject"),x=a("./_to-primitive"),y=a("./_property-desc"),z=a("./_object-create"),A=a("./_object-gopn-ext"),B=a("./_object-gopd"),C=a("./_object-dp"),D=a("./_object-keys"),E=B.f,F=C.f,G=A.f,H=f.Symbol,I=f.JSON,J=I&&I.stringify,K="prototype",L=p("_hidden"),M=p("toPrimitive"),N={}.propertyIsEnumerable,O=m("symbol-registry"),P=m("symbols"),Q=m("op-symbols"),R=Object[K],S="function"==typeof H,T=f.QObject,U=!T||!T[K]||!T[K].findChild,V=h&&l(function(){return 7!=z(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=E(R,b);d&&delete R[b],F(a,b,c),d&&a!==R&&F(R,b,d)}:F,W=function(a){var b=P[a]=z(H[K]);return b.aoa=a,b},X=S&&"symbol"==typeof H.iterator?function(a){return"symbol"==typeof a}:function(a){return a instanceof H},Y=function a(b,c,d){return b===R&&Y(Q,c,d),v(b),c=x(c,!0),v(d),g(P,c)?(d.enumerable?(g(b,L)&&b[L][c]&&(b[L][c]=!1),d=z(d,{enumerable:y(0,!1)})):(g(b,L)||F(b,L,y(1,{})),b[L][c]=!0),V(b,c,d)):F(b,c,d)},Z=function a(b,c){v(b);for(var d=t(c=w(c)),e=0,f=d.length,g;f>e;)Y(b,g=d[e++],c[g]);return b},$=function a(b,c){return void 0===c?z(b):Z(z(b),c)},_=function a(b){var c=N.call(this,b=x(b,!0));return!(this===R&&g(P,b)&&!g(Q,b))&&(!(c||!g(this,b)||!g(P,b)||g(this,L)&&this[L][b])||c)},aa=function a(b,c){if(b=w(b),c=x(c,!0),b!==R||!g(P,c)||g(Q,c)){var d=E(b,c);return!d||!g(P,c)||g(b,L)&&b[L][c]||(d.enumerable=!0),d}},ba=function a(b){for(var c=G(w(b)),d=[],e=0,f;c.length>e;)g(P,f=c[e++])||f==L||f==k||d.push(f);return d},ca=function a(b){for(var c=b===R,d=G(c?Q:w(b)),e=[],f=0,h;d.length>f;)!g(P,h=d[f++])||c&&!g(R,h)||e.push(P[h]);return e};for(S||(H=function a(){var b,c;if(this instanceof H)throw TypeError("Symbol is not a constructor!");return b=o(arguments.length>0?arguments[0]:void 0),c=function(a){this===R&&c.call(Q,a),g(this,L)&&g(this[L],b)&&(this[L][b]=!1),V(this,b,y(1,a))},h&&U&&V(R,b,{configurable:!0,set:c}),W(b)},j(H[K],"toString",function a(){return this.aoa}),B.f=aa,C.f=Y,a("./_object-gopn").f=A.f=ba,a("./_object-pie").f=_,a("./_object-gops").f=ca,h&&!a("./_library")&&j(R,"propertyIsEnumerable",_,!0),q.f=function(a){return W(p(a))}),i(i.G+i.W+i.F*!S,{Symbol:H}),d="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), e=0;d.length>e;)p(d[e++]);for(d=D(p.store),e=0;d.length>e;)r(d[e++]);i(i.S+i.F*!S,"Symbol",{for:function(a){return g(O,a+="")?O[a]:O[a]=H(a)},keyFor:function a(b){if(X(b))return s(O,b);throw TypeError(b+" is not a symbol!")},useSetter:function(){U=!0},useSimple:function(){U=!1}}),i(i.S+i.F*!S,"Object",{create:$,defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:aa,getOwnPropertyNames:ba,getOwnPropertySymbols:ca}),I&&i(i.S+i.F*(!S||l(function(){var a=H();return"[null]"!=J([a])||"{}"!=J({a:a})||"{}"!=J(Object(a))})),"JSON",{stringify:function a(b){if(void 0!==b&&!X(b)){for(var c=[b],d=1,e,f;arguments.length>d;)c.push(arguments[d++]);return e=c[1],"function"==typeof e&&(f=e),!f&&u(e)||(e=function(a,b){if(f&&(b=f.call(this,a,b)),!X(b))return b}),c[1]=e,J.apply(I,c)}}}),H[K][M]||a("./_hide")(H[K],M,H[K].valueOf),n(H,"Symbol"),n(Math,"Math",!0),n(f.JSON,"JSON",!0)},{"./_an-object":78,"./_descriptors":86,"./_enum-keys":89,"./_export":90,"./_fails":91,"./_global":92,"./_has":93,"./_hide":94,"./_is-array":99,"./_keyof":107,"./_library":108,"./_meta":109,"./_object-create":111,"./_object-dp":112,"./_object-gopd":114,"./_object-gopn":116,"./_object-gopn-ext":115,"./_object-gops":117,"./_object-keys":120,"./_object-pie":121,"./_property-desc":123,"./_redefine":124,"./_set-to-string-tag":126,"./_shared":128,"./_to-iobject":132,"./_to-primitive":135,"./_uid":136,"./_wks":139,"./_wks-define":137,"./_wks-ext":138}],157:[function(a,b,c){a("./_wks-define")("asyncIterator")},{"./_wks-define":137}],158:[function(a,b,c){a("./_wks-define")("observable")},{"./_wks-define":137}],159:[function(a,b,c){var d,e,f,g,h,i,j,k,l;for(a("./es6.array.iterator"),d=a("./_global"),e=a("./_hide"),f=a("./_iterators"),g=a("./_wks")("toStringTag"),h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],i=0;i<5;i++)j=h[i],k=d[j],l=k&&k.prototype,l&&!l[g]&&e(l,g,j),f[j]=f.Array},{"./_global":92,"./_hide":94,"./_iterators":106,"./_wks":139,"./es6.array.iterator":144}],160:[function(a,b,c){(function(a){function b(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}c.isArray=b;function d(a){return"boolean"==typeof a}c.isBoolean=d;function e(a){return null===a}c.isNull=e;function f(a){return null==a}c.isNullOrUndefined=f;function g(a){return"number"==typeof a}c.isNumber=g;function h(a){return"string"==typeof a}c.isString=h;function i(a){return"symbol"==typeof a}c.isSymbol=i;function j(a){return void 0===a}c.isUndefined=j;function k(a){return"[object RegExp]"===q(a)}c.isRegExp=k;function l(a){return"object"==typeof a&&null!==a}c.isObject=l;function m(a){return"[object Date]"===q(a)}c.isDate=m;function n(a){return"[object Error]"===q(a)||a instanceof Error}c.isError=n;function o(a){return"function"==typeof a}c.isFunction=o;function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a}c.isPrimitive=p,c.isBuffer=a.isBuffer;function q(a){return Object.prototype.toString.call(a)}}).call(this,{isBuffer:a("../../is-buffer/index.js")})},{"../../is-buffer/index.js":168}],161:[function(a,b,c){var d=Array.prototype.slice,e=a("./lib/keys.js"),f=a("./lib/is_arguments.js"),g=b.exports=function(a,b,c){return c||(c={}),a===b||(a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():!a||!b||"object"!=typeof a&&"object"!=typeof b?c.strict?a===b:a==b:j(a,b,c))};function h(a){return null===a||void 0===a}function i(a){return!(!a||"object"!=typeof a||"number"!=typeof a.length)&&("function"==typeof a.copy&&"function"==typeof a.slice&&!(a.length>0&&"number"!=typeof a[0]))}function j(a,b,c){var j,k,l,m;if(h(a)||h(b))return!1;if(a.prototype!==b.prototype)return!1;if(f(a))return!!f(b)&&(a=d.call(a),b=d.call(b),g(a,b,c));if(i(a)){if(!i(b))return!1;if(a.length!==b.length)return!1;for(j=0;j=0;j--)if(l[j]!=m[j])return!1;for(j=l.length-1;j>=0;j--)if(k=l[j],!g(a[k],b[k],c))return!1;return typeof a==typeof b}},{"./lib/is_arguments.js":162,"./lib/keys.js":163}],162:[function(a,b,c){var d="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();c=b.exports=d?e:f,c.supported=e;function e(a){return"[object Arguments]"==Object.prototype.toString.call(a)}c.unsupported=f;function f(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Object.prototype.hasOwnProperty.call(a,"callee")&&!Object.prototype.propertyIsEnumerable.call(a,"callee")||!1}},{}],163:[function(a,b,c){c=b.exports="function"==typeof Object.keys?Object.keys:d,c.shim=d;function d(a){var b,c=[];for(b in a)c.push(b);return c}},{}],164:[function(a,b,c){function d(){this.boa=this.boa||{},this.coa=this.coa||void 0}b.exports=d,d.EventEmitter=d,d.prototype.boa=void 0,d.prototype.coa=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this.coa=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j,k;if(this.boa||(this.boa={}),"error"===a&&(!this.boa.error||g(this.boa.error)&&!this.boa.error.length))throw b=arguments[1],b instanceof Error?b:(k=Error('Uncaught, unspecified "error" event. ('+b+")"),k.context=b,k);if(c=this.boa[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),c.apply(this,f)}else if(g(c))for(f=Array.prototype.slice.call(arguments,1),j=c.slice(),d=j.length,i=0;i0&&this.boa[a].length>c&&(this.boa[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this.boa[a].length),"function"==typeof console.trace&&console.trace())),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){if(!e(b))throw TypeError("listener must be a function");var c=!1;function d(){this.removeListener(a,d),c||(c=!0,b.apply(this,arguments))}return d.listener=b,this.on(a,d),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this.boa||!this.boa[a])return this;if(c=this.boa[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this.boa[a],this.boa.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(d<0)return this;1===c.length?(c.length=0,delete this.boa[a]):c.splice(d,1),this.boa.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this.boa)return this;if(!this.boa.removeListener)return 0===arguments.length?this.boa={}:this.boa[a]&&delete this.boa[a],this;if(0===arguments.length){for(b in this.boa)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this.boa={},this}if(c=this.boa[a],e(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this.boa[a],this},d.prototype.listeners=function(a){var b;return b=this.boa&&this.boa[a]?e(this.boa[a])?[this.boa[a]]:this.boa[a].slice():[]},d.prototype.listenerCount=function(a){if(this.boa){var b=this.boa[a];if(e(b))return 1;if(b)return b.length}return 0},d.listenerCount=function(a,b){return a.listenerCount(b)};function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}},{}],165:[function(a,b,c){(function(c,d){"use strict";var e,f,g,h,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,Za,$a,_a,ab,bb,cb,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,ob,pb,qb,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb,Wb,Xb,Yb,Zb,$b,_b,ac,bc,cc,dc,ec,fc,gc,hc,ic,jc,kc,lc,mc,nc,oc,pc,qc,rc,sc,tc,uc,vc,wc,xc,yc,zc,Ac,Bc,Cc,Dc,Ec,Fc,Gc,Hc,Ic,Jc,Kc,Lc,Mc,Nc,Oc,Pc,Qc,Rc,Sc,Tc,Uc,Vc,Wc,Xc,Yc,Zc,$c,_c,ad,bd,cd,dd,ed,fd,gd,hd,id,jd,kd,ld,md,nd,od,pd,qd,rd,sd,td,ud,vd,wd,xd,yd,zd,Ad,Bd,Cd,Dd,Ed,Fd,Gd,Hd,Id,Jd,Kd,Ld,Md,Nd,Od,Pd,Qd,Rd,Sd,Td,Ud,Vd,Wd,Xd,Yd,Zd,$d,_d,ae,be,ce,de,ee,fe,ge,he,ie,je,ke,le,me,ne,oe,pe,qe,re,se,te,ue,ve,we,xe,ye,ze,Ae,Be,Ce,De,Ee,Fe,Ge,He,Ie,Je,Ke,Le,Me,Ne,Oe,Pe,Qe,Re,Se,Te,Ue,Ve,We,Xe,Ye,Ze,$e,_e,af,bf,cf,df,ef,ff,gf,hf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,wf,xf,yf,zf,Af,Bf,Cf,Df,Ef,Ff,Gf,Hf,If,Jf,Kf,Lf,Mf,Nf,Of,Pf,Qf,Rf,Sf,Tf,Uf,Vf,Wf,Xf,Yf,Zf,$f,_f,ag,bg,cg,dg,eg,fg,gg,hg,ig,jg,kg,lg,mg,ng,og,pg,qg,rg,sg,tg,ug,vg,wg,xg,yg,zg,Ag,Bg,Cg,Dg,Eg,Fg,Gg,Hg,Ig,Jg,Kg,Lg,Mg,Ng,Og,Pg,Qg;function Rg(a){return a&&"object"==typeof a&&"default"in a?a.default:a}e=Rg(a("restructure")),f=Rg(a("babel-runtime/core-js/object/get-own-property-descriptor")),g=Rg(a("babel-runtime/core-js/get-iterator")),h=Rg(a("babel-runtime/core-js/object/freeze")),j=Rg(a("babel-runtime/core-js/object/keys")),k=Rg(a("babel-runtime/helpers/typeof")),l=Rg(a("babel-runtime/core-js/object/define-property")),m=Rg(a("babel-runtime/helpers/classCallCheck")),n=Rg(a("babel-runtime/helpers/createClass")),o=Rg(a("babel-runtime/core-js/object/get-prototype-of")),p=Rg(a("babel-runtime/helpers/possibleConstructorReturn")),q=Rg(a("babel-runtime/helpers/inherits")),r=a("restructure/src/utils"),s=Rg(a("babel-runtime/core-js/object/define-properties")),t=Rg(a("deep-equal")),u=Rg(a("babel-runtime/helpers/get")),v=Rg(a("babel-runtime/core-js/object/assign")),w=Rg(a("babel-runtime/helpers/toConsumableArray")),x=Rg(a("unicode-properties")),y=Rg(a("babel-runtime/helpers/slicedToArray")),z=Rg(a("unicode-trie")),A=Rg(a("clone")),B=Rg(a("tiny-inflate")),C=Rg(a("brotli/decompress")),D={},D.logErrors=!1,E=[],D.registerFormat=function(a){E.push(a)},D.openSync=function(a,b){var c=fs.readFileSync(a);return D.create(c,b)},D.open=function(a,b,c){"function"==typeof b&&(c=b,b=null),fs.readFile(a,function(a,d){if(a)return c(a);try{var e=D.create(d,b)}catch(a){return c(a)}return c(null,e)})},D.create=function(a,b){var c,d,f;for(c=0;c>1},searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,endCode:new e.LazyArray(e.uint16,"segCount"),reservedPad:new e.Reserved(e.uint16),startCode:new e.LazyArray(e.uint16,"segCount"),idDelta:new e.LazyArray(e.int16,"segCount"),idRangeOffset:new e.LazyArray(e.uint16,"segCount"),glyphIndexArray:new e.LazyArray(e.uint16,function(a){return(a.length-a.doa)/2})},6:{length:e.uint16,language:e.uint16,firstCode:e.uint16,entryCount:e.uint16,glyphIndices:new e.LazyArray(e.uint16,"entryCount")},8:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint16,is32:new e.LazyArray(e.uint8,8192),nGroups:e.uint32,groups:new e.LazyArray(G,"nGroups")},10:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,firstCode:e.uint32,entryCount:e.uint32,glyphIndices:new e.LazyArray(e.uint16,"numChars")},12:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(G,"nGroups")},13:{reserved:new e.Reserved(e.uint16),length:e.uint32,language:e.uint32,nGroups:e.uint32,groups:new e.LazyArray(G,"nGroups")},14:{length:e.uint32,numRecords:e.uint32,varSelectors:new e.LazyArray(L,"numRecords")}}),N=new e.Struct({platformID:e.uint16,encodingID:e.uint16,table:new e.Pointer(e.uint32,M,{type:"parent",lazy:!0})}),O=new e.Struct({version:e.uint16,numSubtables:e.uint16,tables:new e.Array(N,"numSubtables")}),P=new e.Struct({version:e.int32,revision:e.int32,checkSumAdjustment:e.uint32,magicNumber:e.uint32,flags:e.uint16,unitsPerEm:e.uint16,created:new e.Array(e.int32,2),modified:new e.Array(e.int32,2),xMin:e.int16,yMin:e.int16,xMax:e.int16,yMax:e.int16,macStyle:new e.Bitfield(e.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:e.uint16,fontDirectionHint:e.int16,indexToLocFormat:e.int16,glyphDataFormat:e.int16}),Q=new e.Struct({version:e.int32,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceWidthMax:e.uint16,minLeftSideBearing:e.int16,minRightSideBearing:e.int16,xMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),R=new e.Struct({advance:e.uint16,bearing:e.int16}),S=new e.Struct({metrics:new e.LazyArray(R,function(a){return a.parent.hhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(a){return a.parent.maxp.numGlyphs-a.parent.hhea.numberOfMetrics})}),T=new e.Struct({version:e.int32,numGlyphs:e.uint16,maxPoints:e.uint16,maxContours:e.uint16,maxComponentPoints:e.uint16,maxComponentContours:e.uint16,maxZones:e.uint16,maxTwilightPoints:e.uint16,maxStorage:e.uint16,maxFunctionDefs:e.uint16,maxInstructionDefs:e.uint16,maxStackElements:e.uint16,maxSizeOfInstructions:e.uint16,maxComponentElements:e.uint16,maxComponentDepth:e.uint16}),U=new e.Struct({platformID:e.uint16,encodingID:e.uint16,languageID:e.uint16,nameID:e.uint16,length:e.uint16,string:new e.Pointer(e.uint16,new e.String("length",function(a){return Y[a.platformID][a.encodingID]}),{type:"parent",relativeTo:"parent.stringOffset",allowNull:!1})}),V=new e.Struct({length:e.uint16,tag:new e.Pointer(e.uint16,new e.String("length","utf16be"),{type:"parent",relativeTo:"stringOffset"})}),W=new e.VersionedStruct(e.uint16,{0:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(U,"count")},1:{count:e.uint16,stringOffset:e.uint16,records:new e.Array(U,"count"),langTagCount:e.uint16,langTags:new e.Array(V,"langTagCount")}}),X=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"],Y=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccyrillic","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"ucs-4"]],Z=[[],{0:"English",59:"Pashto",1:"French",60:"Kurdish",2:"German",61:"Kashmiri",3:"Italian",62:"Sindhi",4:"Dutch",63:"Tibetan",5:"Swedish",64:"Nepali",6:"Spanish",65:"Sanskrit",7:"Danish",66:"Marathi",8:"Portuguese",67:"Bengali",9:"Norwegian",68:"Assamese",10:"Hebrew",69:"Gujarati",11:"Japanese",70:"Punjabi",12:"Arabic",71:"Oriya",13:"Finnish",72:"Malayalam",14:"Greek",73:"Kannada",15:"Icelandic",74:"Tamil",16:"Maltese",75:"Telugu",17:"Turkish",76:"Sinhalese",18:"Croatian",77:"Burmese",19:"Chinese (Traditional)",78:"Khmer",20:"Urdu",79:"Lao",21:"Hindi",80:"Vietnamese",22:"Thai",81:"Indonesian",23:"Korean",82:"Tagalong",24:"Lithuanian",83:"Malay (Roman script)",25:"Polish",84:"Malay (Arabic script)",26:"Hungarian",85:"Amharic",27:"Estonian",86:"Tigrinya",28:"Latvian",87:"Galla",29:"Sami",88:"Somali",30:"Faroese",89:"Swahili",31:"Farsi/Persian",90:"Kinyarwanda/Ruanda",32:"Russian",91:"Rundi",33:"Chinese (Simplified)",92:"Nyanja/Chewa",34:"Flemish",93:"Malagasy",35:"Irish Gaelic",94:"Esperanto",36:"Albanian",128:"Welsh",37:"Romanian",129:"Basque",38:"Czech",130:"Catalan",39:"Slovak",131:"Latin",40:"Slovenian",132:"Quenchua",41:"Yiddish",133:"Guarani",42:"Serbian",134:"Aymara",43:"Macedonian",135:"Tatar",44:"Bulgarian",136:"Uighur",45:"Ukrainian",137:"Dzongkha",46:"Byelorussian",138:"Javanese (Roman script)",47:"Uzbek",139:"Sundanese (Roman script)",48:"Kazakh",140:"Galician",49:"Azerbaijani (Cyrillic script)",141:"Afrikaans",50:"Azerbaijani (Arabic script)",142:"Breton",51:"Armenian",143:"Inuktitut",52:"Georgian",144:"Scottish Gaelic",53:"Moldavian",145:"Manx Gaelic",54:"Kirghiz",146:"Irish Gaelic (with dot above)",55:"Tajiki",147:"Tongan",56:"Turkmen",148:"Greek (polytonic)",57:"Mongolian (Mongolian script)",149:"Greenlandic",58:"Mongolian (Cyrillic script)",150:"Azerbaijani (Roman script)"},[],{1078:"Afrikaans",1107:"Khmer",1052:"Albanian",1158:"K'iche",1156:"Alsatian",1159:"Kinyarwanda",1118:"Amharic",1089:"Kiswahili",5121:"Arabic",1111:"Konkani",15361:"Arabic",1042:"Korean",3073:"Arabic",1088:"Kyrgyz",2049:"Arabic",1108:"Lao",11265:"Arabic",1062:"Latvian",13313:"Arabic",1063:"Lithuanian",12289:"Arabic",2094:"Lower Sorbian",4097:"Arabic",1134:"Luxembourgish",6145:"Arabic",1071:"Macedonian (FYROM)",8193:"Arabic",2110:"Malay",16385:"Arabic",1086:"Malay",1025:"Arabic",1100:"Malayalam",10241:"Arabic",1082:"Maltese",7169:"Arabic",1153:"Maori",14337:"Arabic",1146:"Mapudungun",9217:"Arabic",1102:"Marathi",1067:"Armenian",1148:"Mohawk",1101:"Assamese",1104:"Mongolian (Cyrillic)",2092:"Azeri (Cyrillic)",2128:"Mongolian (Traditional)",1068:"Azeri (Latin)",1121:"Nepali",1133:"Bashkir",1044:"Norwegian (Bokmal)",1069:"Basque",2068:"Norwegian (Nynorsk)",1059:"Belarusian",1154:"Occitan",2117:"Bengali",1096:"Odia (formerly Oriya)",1093:"Bengali",1123:"Pashto",8218:"Bosnian (Cyrillic)",1045:"Polish",5146:"Bosnian (Latin)",1046:"Portuguese",1150:"Breton",2070:"Portuguese",1026:"Bulgarian",1094:"Punjabi",1027:"Catalan",1131:"Quechua",3076:"Chinese",2155:"Quechua",5124:"Chinese",3179:"Quechua",2052:"Chinese",1048:"Romanian",4100:"Chinese",1047:"Romansh",1028:"Chinese",1049:"Russian",1155:"Corsican",9275:"Sami (Inari)",1050:"Croatian",4155:"Sami (Lule)",4122:"Croatian (Latin)",5179:"Sami (Lule)",1029:"Czech",3131:"Sami (Northern)",1030:"Danish",1083:"Sami (Northern)",1164:"Dari",2107:"Sami (Northern)",1125:"Divehi",8251:"Sami (Skolt)",2067:"Dutch",6203:"Sami (Southern)",1043:"Dutch",7227:"Sami (Southern)",3081:"English",1103:"Sanskrit",10249:"English",7194:"Serbian (Cyrillic)",4105:"English",3098:"Serbian (Cyrillic)",9225:"English",6170:"Serbian (Latin)",16393:"English",2074:"Serbian (Latin)",6153:"English",1132:"Sesotho sa Leboa",8201:"English",1074:"Setswana",17417:"English",1115:"Sinhala",5129:"English",1051:"Slovak",13321:"English",1060:"Slovenian",18441:"English",11274:"Spanish",7177:"English",16394:"Spanish",11273:"English",13322:"Spanish",2057:"English",9226:"Spanish",1033:"English",5130:"Spanish",12297:"English",7178:"Spanish",1061:"Estonian",12298:"Spanish",1080:"Faroese",17418:"Spanish",1124:"Filipino",4106:"Spanish",1035:"Finnish",18442:"Spanish",2060:"French",2058:"Spanish",3084:"French",19466:"Spanish",1036:"French",6154:"Spanish",5132:"French",15370:"Spanish",6156:"French",10250:"Spanish",4108:"French",20490:"Spanish",1122:"Frisian",3082:"Spanish (Modern Sort)",1110:"Galician",1034:"Spanish (Traditional Sort)",1079:"Georgian",21514:"Spanish",3079:"German",14346:"Spanish",1031:"German",8202:"Spanish",5127:"German",2077:"Sweden",4103:"German",1053:"Swedish",2055:"German",1114:"Syriac",1032:"Greek",1064:"Tajik (Cyrillic)",1135:"Greenlandic",2143:"Tamazight (Latin)",1095:"Gujarati",1097:"Tamil",1128:"Hausa (Latin)",1092:"Tatar",1037:"Hebrew",1098:"Telugu",1081:"Hindi",1054:"Thai",1038:"Hungarian",1105:"Tibetan",1039:"Icelandic",1055:"Turkish",1136:"Igbo",1090:"Turkmen",1057:"Indonesian",1152:"Uighur",1117:"Inuktitut",1058:"Ukrainian",2141:"Inuktitut (Latin)",1070:"Upper Sorbian",2108:"Irish",1056:"Urdu",1076:"isiXhosa",2115:"Uzbek (Cyrillic)",1077:"isiZulu",1091:"Uzbek (Latin)",1040:"Italian",1066:"Vietnamese",2064:"Italian",1106:"Welsh",1041:"Japanese",1160:"Wolof",1099:"Kannada",1157:"Yakut",1087:"Kazakh",1144:"Yi",1130:"Yoruba"}],W.process=function(a){var b,c,d,e,f,h,i={},j=!0,k=!1,l=void 0;try{for(b=g(this.records);!(j=(c=b.next()).done);j=!0)d=c.value,e=Z[d.platformID][d.languageID],null==e&&null!=this.langTags&&d.languageID>=32768&&(e=this.langTags[d.languageID-32768].tag),null==e&&(e=d.platformID+"-"+d.languageID),d.nameID>=256?(null==i.fontFeatures&&(i.fontFeatures={}),f=null!=i.fontFeatures[e]?i.fontFeatures[e]:i.fontFeatures[e]={},f[d.nameID]=d.string):(h=X[d.nameID]||d.nameID,null==i[h]&&(i[h]={}),i[h][e]=d.string)}catch(a){k=!0,l=a}finally{try{!j&&b.return&&b.return()}finally{if(k)throw l}}this.records=i},W.preEncode=function(){var a,c,e;if(!Array.isArray(this.records)){this.version=0,a=[];for(c in this.records)e=this.records[c],"fontFeatures"!==c&&(a.push({platformID:3,encodingID:1,languageID:1033,nameID:X.indexOf(c),length:d.byteLength(e.English,"utf16le"),string:e.English}),"postscriptName"===c&&a.push({platformID:1,encodingID:0,languageID:0,nameID:X.indexOf(c),length:e.English.length,string:e.English}));this.records=a,this.count=a.length,this.stringOffset=b.exports.size(this,null,!1)}},$=new e.VersionedStruct(e.uint16,{header:{xAvgCharWidth:e.int16,usWeightClass:e.uint16,usWidthClass:e.uint16,fsType:new e.Bitfield(e.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:e.int16,ySubscriptYSize:e.int16,ySubscriptXOffset:e.int16,ySubscriptYOffset:e.int16,ySuperscriptXSize:e.int16,ySuperscriptYSize:e.int16,ySuperscriptXOffset:e.int16,ySuperscriptYOffset:e.int16,yStrikeoutSize:e.int16,yStrikeoutPosition:e.int16,sFamilyClass:e.int16,panose:new e.Array(e.uint8,10),ulCharRange:new e.Array(e.uint32,4),vendorID:new e.String(4),fsSelection:new e.Bitfield(e.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:e.uint16,usLastCharIndex:e.uint16},0:{},1:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2)},2:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16},5:{typoAscender:e.int16,typoDescender:e.int16,typoLineGap:e.int16,winAscent:e.uint16,winDescent:e.uint16,codePageRange:new e.Array(e.uint32,2),xHeight:e.int16,capHeight:e.int16,defaultChar:e.uint16,breakChar:e.uint16,maxContent:e.uint16,usLowerOpticalPointSize:e.uint16,usUpperOpticalPointSize:e.uint16}}),_=$.versions,_[3]=_[4]=_[2],aa=new e.VersionedStruct(e.fixed32,{header:{italicAngle:e.fixed32,underlinePosition:e.int16,underlineThickness:e.int16,isFixedPitch:e.uint32,minMemType42:e.uint32,maxMemType42:e.uint32,minMemType1:e.uint32,maxMemType1:e.uint32},1:{},2:{numberOfGlyphs:e.uint16,glyphNameIndex:new e.Array(e.uint16,"numberOfGlyphs"),names:new e.Array(new e.String(e.uint8))},2.5:{numberOfGlyphs:e.uint16,offsets:new e.Array(e.uint8,"numberOfGlyphs")},3:{},4:{map:new e.Array(e.uint32,function(a){return a.parent.maxp.numGlyphs})}}),ba=new e.Struct({controlValues:new e.Array(e.int16)}),ca=new e.Struct({instructions:new e.Array(e.uint8)}),da=new e.VersionedStruct("head.indexToLocFormat",{0:{offsets:new e.Array(e.uint16)},1:{offsets:new e.Array(e.uint32)}}),da.process=function(){if(0===this.version)for(var a=0;a65535?1:0,0===this.version))for(var a=0;a>>=1},ea=new e.Struct({controlValueProgram:new e.Array(e.uint8)}),fa=new e.Array(new e.Buffer),ga=function(){function a(b){m(this,a),this.type=b}return n(a,[{key:"decode",value:function a(b,c){var d,f,g,h,i,j,k,l,m=b.readUInt16BE();if(0===m)return[];if(d=b.readUInt8(),f=void 0,1===d)f=e.uint8;else if(2===d)f=e.uint16;else if(3===d)f=e.uint24;else{if(4!==d)throw Error("Bad offset size in CFFIndex: "+d+" "+b.pos);f=e.uint32}for(g=[],h=b.pos+(m+1)*d-1,i=f.decode(b),j=0;j>4,f===ha)break;if(d+=ia[f],g=15&e,g===ha)break;d+=ia[g]}return parseFloat(d)}return null}},{key:"size",value:function a(b){if(b.forceLarge&&(b=32768),(0|b)!==b){var c=""+b;return 1+Math.ceil((c.length+1)/2)}return-107<=b&&b<=107?1:108<=b&&b<=1131||-1131<=b&&b<=-108?2:-32768<=b&&b<=32767?3:5}},{key:"encode",value:function a(b,c){var d,e,f,g,h,i,j=+c;if(c.forceLarge)return b.writeUInt8(29),b.writeInt32BE(j);if((0|j)===j)return-107<=j&&j<=107?b.writeUInt8(j+139):108<=j&&j<=1131?(j-=108,b.writeUInt8((j>>8)+247),b.writeUInt8(255&j)):-1131<=j&&j<=-108?(j=-j-108,b.writeUInt8((j>>8)+251),b.writeUInt8(255&j)):-32768<=j&&j<=32767?(b.writeUInt8(28),b.writeInt16BE(j)):(b.writeUInt8(29),b.writeInt32BE(j));for(b.writeUInt8(30),d=""+j,e=0;e>1,bc[f+1].first))return c[f].fd;d=f+1}default:throw Error("Unknown FDSelect version: "+this.topDict.FDSelect.version)}}},{key:"privateDictForGlyph",value:function a(b){if(this.topDict.FDSelect){var c=this.fdForGlyph(b);return this.topDict.FDArray[c]?this.topDict.FDArray[c].Private:null}return this.topDict.Private}},{key:"topDict",get:function a(){return this.topDictIndex[0]}},{key:"postscriptName",get:function a(){return this.nameIndex[0]}},{key:"fullName",get:function a(){return this.string(this.topDict.FullName)}},{key:"familyName",get:function a(){return this.string(this.topDict.FamilyName)}}],[{key:"decode",value:function b(c){return new a(c)}}]),a}(),Na=new e.Struct({glyphIndex:e.uint16,vertOriginY:e.int16}),Oa=new e.Struct({majorVersion:e.uint16,minorVersion:e.uint16,defaultVertOriginY:e.int16,numVertOriginYMetrics:e.uint16,metrics:new e.Array(Na,"numVertOriginYMetrics")}),Pa=new e.Struct({height:e.uint8,width:e.uint8,horiBearingX:e.int8,horiBearingY:e.int8,horiAdvance:e.uint8,vertBearingX:e.int8,vertBearingY:e.int8,vertAdvance:e.uint8}),Qa=new e.Struct({height:e.uint8,width:e.uint8,bearingX:e.int8,bearingY:e.int8,advance:e.uint8}),Ra=new e.Struct({glyph:e.uint16,xOffset:e.int8,yOffset:e.int8}),Sa=function a(){m(this,a)},Ta=function a(){m(this,a)},Ua=new e.VersionedStruct("version",{1:{metrics:Qa,data:Sa},2:{metrics:Qa,data:Ta},5:{data:Ta},6:{metrics:Pa,data:Sa},7:{metrics:Pa,data:Ta},8:{metrics:Qa,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(Ra,"numComponents")},9:{metrics:Pa,pad:new e.Reserved(e.uint8),numComponents:e.uint16,components:new e.Array(Ra,"numComponents")},17:{metrics:Qa,dataLen:e.uint32,data:new e.Buffer("dataLen")},18:{metrics:Pa,dataLen:e.uint32,data:new e.Buffer("dataLen")},19:{dataLen:e.uint32,data:new e.Buffer("dataLen")}}),Va=new e.Struct({ascender:e.int8,descender:e.int8,widthMax:e.uint8,caretSlopeNumerator:e.int8,caretSlopeDenominator:e.int8,caretOffset:e.int8,minOriginSB:e.int8,minAdvanceSB:e.int8,maxBeforeBL:e.int8,minAfterBL:e.int8,pad:new e.Reserved(e.int8,2)}),Wa=new e.Struct({glyphCode:e.uint16,offset:e.uint16}),Xa=new e.VersionedStruct(e.uint16,{header:{imageFormat:e.uint16,imageDataOffset:e.uint32},1:{offsetArray:new e.Array(e.uint32,function(a){return a.parent.lastGlyphIndex-a.parent.firstGlyphIndex+1})},2:{imageSize:e.uint32,bigMetrics:Pa},3:{offsetArray:new e.Array(e.uint16,function(a){return a.parent.lastGlyphIndex-a.parent.firstGlyphIndex+1})},4:{numGlyphs:e.uint32,glyphArray:new e.Array(Wa,function(a){return a.numGlyphs+1})},5:{imageSize:e.uint32,bigMetrics:Pa,numGlyphs:e.uint32,glyphCodeArray:new e.Array(e.uint16,"numGlyphs")}}),Ya=new e.Struct({firstGlyphIndex:e.uint16,lastGlyphIndex:e.uint16,subtable:new e.Pointer(e.uint32,Xa)}),Za=new e.Struct({indexSubTableArray:new e.Pointer(e.uint32,new e.Array(Ya,1),{type:"parent"}),indexTablesSize:e.uint32,numberOfIndexSubTables:e.uint32,colorRef:e.uint32,hori:Va,vert:Va,startGlyphIndex:e.uint16,endGlyphIndex:e.uint16,ppemX:e.uint8,ppemY:e.uint8,bitDepth:e.uint8,flags:new e.Bitfield(e.uint8,["horizontal","vertical"])}),$a=new e.Struct({version:e.uint32,numSizes:e.uint32,sizes:new e.Array(Za,"numSizes")}),_a=new e.Struct({ppem:e.uint16,resolution:e.uint16,imageOffsets:new e.Array(new e.Pointer(e.uint32,"void"),function(a){return a.parent.parent.maxp.numGlyphs+1})}),ab=new e.Struct({version:e.uint16,flags:new e.Bitfield(e.uint16,["renderOutlines"]),numImgTables:e.uint32,imageTables:new e.Array(new e.Pointer(e.uint32,_a),"numImgTables")}),bb=new e.Struct({gid:e.uint16,paletteIndex:e.uint16}),cb=new e.Struct({gid:e.uint16,firstLayerIndex:e.uint16,numLayers:e.uint16}),db=new e.Struct({version:e.uint16,numBaseGlyphRecords:e.uint16,baseGlyphRecord:new e.Pointer(e.uint32,new e.Array(cb,"numBaseGlyphRecords")),layerRecords:new e.Pointer(e.uint32,new e.Array(bb,"numLayerRecords"),{lazy:!0}),numLayerRecords:e.uint16}),eb=new e.Struct({blue:e.uint8,green:e.uint8,red:e.uint8,alpha:e.uint8}),fb=new e.Struct({version:e.uint16,numPaletteEntries:e.uint16,numPalettes:e.uint16,numColorRecords:e.uint16,colorRecords:new e.Pointer(e.uint32,new e.Array(eb,"numColorRecords")),colorRecordIndices:new e.Array(e.uint16,"numPalettes")}),gb=new e.Struct({reserved:new e.Reserved(e.uint16),reqFeatureIndex:e.uint16,featureCount:e.uint16,featureIndexes:new e.Array(e.uint16,"featureCount")}),hb=new e.Struct({tag:new e.String(4),langSys:new e.Pointer(e.uint16,gb,{type:"parent"})}),ib=new e.Struct({defaultLangSys:new e.Pointer(e.uint16,gb),count:e.uint16,langSysRecords:new e.Array(hb,"count")}),jb=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,ib,{type:"parent"})}),kb=new e.Array(jb,e.uint16),lb=new e.Struct({featureParams:e.uint16,lookupCount:e.uint16,lookupListIndexes:new e.Array(e.uint16,"lookupCount")}),mb=new e.Struct({tag:new e.String(4),feature:new e.Pointer(e.uint16,lb,{type:"parent"})}),nb=new e.Array(mb,e.uint16),ob=new e.Bitfield(e.uint16,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet",null,"markAttachmentType"]);function Tg(a){var b=new e.Struct({lookupType:e.uint16,flags:ob,subTableCount:e.uint16,subTables:new e.Array(new e.Pointer(e.uint16,a),"subTableCount"),markFilteringSet:e.uint16});return new e.LazyArray(new e.Pointer(e.uint16,b),e.uint16)}pb=new e.Struct({start:e.uint16,end:e.uint16,startCoverageIndex:e.uint16}),qb=new e.VersionedStruct(e.uint16,{1:{glyphCount:e.uint16,glyphs:new e.Array(e.uint16,"glyphCount")},2:{rangeCount:e.uint16,rangeRecords:new e.Array(pb,"rangeCount")}}),rb=new e.Struct({start:e.uint16,end:e.uint16,class:e.uint16}),sb=new e.VersionedStruct(e.uint16,{1:{startGlyph:e.uint16,glyphCount:e.uint16,classValueArray:new e.Array(e.uint16,"glyphCount")},2:{classRangeCount:e.uint16,classRangeRecord:new e.Array(rb,"classRangeCount")}}),tb=new e.Struct({startSize:e.uint16,endSize:e.uint16,deltaFormat:e.uint16}),ub=new e.Struct({sequenceIndex:e.uint16,lookupListIndex:e.uint16}),vb=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,input:new e.Array(e.uint16,function(a){return a.glyphCount-1}),lookupRecords:new e.Array(ub,"lookupCount")}),wb=new e.Array(new e.Pointer(e.uint16,vb),e.uint16),xb=new e.Struct({glyphCount:e.uint16,lookupCount:e.uint16,classes:new e.Array(e.uint16,function(a){return a.glyphCount-1}),lookupRecords:new e.Array(ub,"lookupCount")}),yb=new e.Array(new e.Pointer(e.uint16,xb),e.uint16),zb=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,qb),ruleSetCount:e.uint16,ruleSets:new e.Array(new e.Pointer(e.uint16,wb),"ruleSetCount")},2:{coverage:new e.Pointer(e.uint16,qb),classDef:new e.Pointer(e.uint16,sb),classSetCnt:e.uint16,classSet:new e.Array(new e.Pointer(e.uint16,yb),"classSetCnt")},3:{glyphCount:e.uint16,lookupCount:e.uint16,coverages:new e.Array(new e.Pointer(e.uint16,qb),"glyphCount"),lookupRecords:new e.Array(ub,"lookupCount")}}),Ab=new e.Struct({backtrackGlyphCount:e.uint16,backtrack:new e.Array(e.uint16,"backtrackGlyphCount"),inputGlyphCount:e.uint16,input:new e.Array(e.uint16,function(a){return a.inputGlyphCount-1}),lookaheadGlyphCount:e.uint16,lookahead:new e.Array(e.uint16,"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(ub,"lookupCount")}),Bb=new e.Array(new e.Pointer(e.uint16,Ab),e.uint16),Cb=new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,qb),chainCount:e.uint16,chainRuleSets:new e.Array(new e.Pointer(e.uint16,Bb),"chainCount")},2:{coverage:new e.Pointer(e.uint16,qb),backtrackClassDef:new e.Pointer(e.uint16,sb),inputClassDef:new e.Pointer(e.uint16,sb),lookaheadClassDef:new e.Pointer(e.uint16,sb),chainCount:e.uint16,chainClassSet:new e.Array(new e.Pointer(e.uint16,Bb),"chainCount")},3:{backtrackGlyphCount:e.uint16,backtrackCoverage:new e.Array(new e.Pointer(e.uint16,qb),"backtrackGlyphCount"),inputGlyphCount:e.uint16,inputCoverage:new e.Array(new e.Pointer(e.uint16,qb),"inputGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,qb),"lookaheadGlyphCount"),lookupCount:e.uint16,lookupRecords:new e.Array(ub,"lookupCount")}}),Db=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{coordinate:e.int16,referenceGlyph:e.uint16,baseCoordPoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,tb)}}),Eb=new e.Struct({defaultIndex:e.uint16,baseCoordCount:e.uint16,baseCoords:new e.Array(new e.Pointer(e.uint16,Db),"baseCoordCount")}),Fb=new e.Struct({tag:new e.String(4),minCoord:new e.Pointer(e.uint16,Db,{type:"parent"}),maxCoord:new e.Pointer(e.uint16,Db,{type:"parent"})}),Gb=new e.Struct({minCoord:new e.Pointer(e.uint16,Db),maxCoord:new e.Pointer(e.uint16,Db),featMinMaxCount:e.uint16,featMinMaxRecords:new e.Array(Fb,"featMinMaxCount")}),Hb=new e.Struct({tag:new e.String(4),minMax:new e.Pointer(e.uint16,Gb,{type:"parent"})}),Ib=new e.Struct({baseValues:new e.Pointer(e.uint16,Eb),defaultMinMax:new e.Pointer(e.uint16,Gb),baseLangSysCount:e.uint16,baseLangSysRecords:new e.Array(Hb,"baseLangSysCount")}),Jb=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,Ib,{type:"parent"})}),Kb=new e.Array(Jb,e.uint16),Lb=new e.Array(new e.String(4),e.uint16),Mb=new e.Struct({baseTagList:new e.Pointer(e.uint16,Lb),baseScriptList:new e.Pointer(e.uint16,Kb)}),Nb=new e.Struct({version:e.uint32,horizAxis:new e.Pointer(e.uint16,Mb),vertAxis:new e.Pointer(e.uint16,Mb)}),Ob=new e.Array(e.uint16,e.uint16),Pb=new e.Struct({coverage:new e.Pointer(e.uint16,qb),glyphCount:e.uint16,attachPoints:new e.Array(new e.Pointer(e.uint16,Ob),"glyphCount")}),Qb=new e.VersionedStruct(e.uint16,{1:{coordinate:e.int16},2:{caretValuePoint:e.uint16},3:{coordinate:e.int16,deviceTable:new e.Pointer(e.uint16,tb)}}),Rb=new e.Array(new e.Pointer(e.uint16,Qb),e.uint16),Sb=new e.Struct({coverage:new e.Pointer(e.uint16,qb),ligGlyphCount:e.uint16,ligGlyphs:new e.Array(new e.Pointer(e.uint16,Rb),"ligGlyphCount")}),Tb=new e.Struct({markSetTableFormat:e.uint16,markSetCount:e.uint16,coverage:new e.Array(new e.Pointer(e.uint32,qb),"markSetCount")}),Ub=new e.VersionedStruct(e.uint32,{65536:{glyphClassDef:new e.Pointer(e.uint16,sb),attachList:new e.Pointer(e.uint16,Pb),ligCaretList:new e.Pointer(e.uint16,Sb),markAttachClassDef:new e.Pointer(e.uint16,sb)},65538:{glyphClassDef:new e.Pointer(e.uint16,sb),attachList:new e.Pointer(e.uint16,Pb),ligCaretList:new e.Pointer(e.uint16,Sb),markAttachClassDef:new e.Pointer(e.uint16,sb),markGlyphSetsDef:new e.Pointer(e.uint16,Tb)}}),Vb=new e.Bitfield(e.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),Wb={xPlacement:e.int16,yPlacement:e.int16,xAdvance:e.int16,yAdvance:e.int16,xPlaDevice:new e.Pointer(e.uint16,tb,{type:"global",relativeTo:"rel"}),yPlaDevice:new e.Pointer(e.uint16,tb,{type:"global",relativeTo:"rel"}),xAdvDevice:new e.Pointer(e.uint16,tb,{type:"global",relativeTo:"rel"}),yAdvDevice:new e.Pointer(e.uint16,tb,{type:"global",relativeTo:"rel"})},Xb=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?"valueFormat":arguments[0];m(this,a),this.key=b}return n(a,[{key:"buildStruct",value:function a(b){for(var c,d,f,g=b;!g[this.key]&&g.parent;)g=g.parent;if(g[this.key]){c={},c.rel=function(){return g.eoa},d=g[this.key];for(f in d)d[f]&&(c[f]=Wb[f]);return new e.Struct(c)}}},{key:"size",value:function a(b,c){return this.buildStruct(c).size(b,c)}},{key:"decode",value:function a(b,c){var d=this.buildStruct(c).decode(b,c);return delete d.rel,d}}]),a}(),Yb=new e.Struct({secondGlyph:e.uint16,value1:new Xb("valueFormat1"),value2:new Xb("valueFormat2")}),Zb=new e.Array(Yb,e.uint16),$b=new e.Struct({value1:new Xb("valueFormat1"),value2:new Xb("valueFormat2")}),_b=new e.VersionedStruct(e.uint16,{1:{xCoordinate:e.int16,yCoordinate:e.int16},2:{xCoordinate:e.int16,yCoordinate:e.int16,anchorPoint:e.uint16},3:{xCoordinate:e.int16,yCoordinate:e.int16,xDeviceTable:new e.Pointer(e.uint16,tb),yDeviceTable:new e.Pointer(e.uint16,tb)}}),ac=new e.Struct({entryAnchor:new e.Pointer(e.uint16,_b,{type:"parent"}),exitAnchor:new e.Pointer(e.uint16,_b,{type:"parent"})}),bc=new e.Struct({class:e.uint16,markAnchor:new e.Pointer(e.uint16,_b,{type:"parent"})}),cc=new e.Array(bc,e.uint16),dc=new e.Array(new e.Pointer(e.uint16,_b),function(a){return a.parent.classCount}),ec=new e.Array(dc,e.uint16),fc=new e.Array(new e.Pointer(e.uint16,_b),function(a){return a.parent.parent.classCount}),gc=new e.Array(fc,e.uint16),hc=new e.Array(new e.Pointer(e.uint16,gc),e.uint16),ic=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,qb),valueFormat:Vb,value:new Xb},2:{coverage:new e.Pointer(e.uint16,qb),valueFormat:Vb,valueCount:e.uint16,values:new e.LazyArray(new Xb,"valueCount")}}),2:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,qb),valueFormat1:Vb,valueFormat2:Vb,pairSetCount:e.uint16,pairSets:new e.LazyArray(new e.Pointer(e.uint16,Zb),"pairSetCount")},2:{coverage:new e.Pointer(e.uint16,qb),valueFormat1:Vb,valueFormat2:Vb,classDef1:new e.Pointer(e.uint16,sb),classDef2:new e.Pointer(e.uint16,sb),class1Count:e.uint16,class2Count:e.uint16,classRecords:new e.LazyArray(new e.LazyArray($b,"class2Count"),"class1Count")}}),3:{format:e.uint16,coverage:new e.Pointer(e.uint16,qb),entryExitCount:e.uint16,entryExitRecords:new e.Array(ac,"entryExitCount")},4:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,qb),baseCoverage:new e.Pointer(e.uint16,qb),classCount:e.uint16,markArray:new e.Pointer(e.uint16,cc),baseArray:new e.Pointer(e.uint16,ec)},5:{format:e.uint16,markCoverage:new e.Pointer(e.uint16,qb), ligatureCoverage:new e.Pointer(e.uint16,qb),classCount:e.uint16,markArray:new e.Pointer(e.uint16,cc),ligatureArray:new e.Pointer(e.uint16,hc)},6:{format:e.uint16,mark1Coverage:new e.Pointer(e.uint16,qb),mark2Coverage:new e.Pointer(e.uint16,qb),classCount:e.uint16,mark1Array:new e.Pointer(e.uint16,cc),mark2Array:new e.Pointer(e.uint16,ec)},7:zb,8:Cb,9:{posFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,ic)}}),ic.versions[9].extension.type=ic,jc=new e.Struct({version:e.int32,scriptList:new e.Pointer(e.uint16,kb),featureList:new e.Pointer(e.uint16,nb),lookupList:new e.Pointer(e.uint16,new Tg(ic))}),kc=new e.Array(e.uint16,e.uint16),lc=kc,mc=new e.Struct({glyph:e.uint16,compCount:e.uint16,components:new e.Array(e.uint16,function(a){return a.compCount-1})}),nc=new e.Array(new e.Pointer(e.uint16,mc),e.uint16),oc=new e.VersionedStruct("lookupType",{1:new e.VersionedStruct(e.uint16,{1:{coverage:new e.Pointer(e.uint16,qb),deltaGlyphID:e.int16},2:{coverage:new e.Pointer(e.uint16,qb),glyphCount:e.uint16,substitute:new e.LazyArray(e.uint16,"glyphCount")}}),2:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,qb),count:e.uint16,sequences:new e.LazyArray(new e.Pointer(e.uint16,kc),"count")},3:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,qb),count:e.uint16,alternateSet:new e.LazyArray(new e.Pointer(e.uint16,lc),"count")},4:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,qb),count:e.uint16,ligatureSets:new e.LazyArray(new e.Pointer(e.uint16,nc),"count")},5:zb,6:Cb,7:{substFormat:e.uint16,lookupType:e.uint16,extension:new e.Pointer(e.uint32,oc)},8:{substFormat:e.uint16,coverage:new e.Pointer(e.uint16,qb),backtrackCoverage:new e.Array(new e.Pointer(e.uint16,qb),"backtrackGlyphCount"),lookaheadGlyphCount:e.uint16,lookaheadCoverage:new e.Array(new e.Pointer(e.uint16,qb),"lookaheadGlyphCount"),glyphCount:e.uint16,substitutes:new e.Array(e.uint16,"glyphCount")}}),oc.versions[7].extension.type=oc,pc=new e.Struct({version:e.int32,scriptList:new e.Pointer(e.uint16,kb),featureList:new e.Pointer(e.uint16,nb),lookupList:new e.Pointer(e.uint16,new Tg(oc))}),qc=new e.Array(e.uint16,e.uint16),rc=new e.Struct({shrinkageEnableGSUB:new e.Pointer(e.uint16,qc),shrinkageDisableGSUB:new e.Pointer(e.uint16,qc),shrinkageEnableGPOS:new e.Pointer(e.uint16,qc),shrinkageDisableGPOS:new e.Pointer(e.uint16,qc),shrinkageJstfMax:new e.Pointer(e.uint16,new Tg(ic)),extensionEnableGSUB:new e.Pointer(e.uint16,qc),extensionDisableGSUB:new e.Pointer(e.uint16,qc),extensionEnableGPOS:new e.Pointer(e.uint16,qc),extensionDisableGPOS:new e.Pointer(e.uint16,qc),extensionJstfMax:new e.Pointer(e.uint16,new Tg(ic))}),sc=new e.Array(new e.Pointer(e.uint16,rc),e.uint16),tc=new e.Struct({tag:new e.String(4),jstfLangSys:new e.Pointer(e.uint16,sc)}),uc=new e.Struct({extenderGlyphs:new e.Pointer(e.uint16,new e.Array(e.uint16,e.uint16)),defaultLangSys:new e.Pointer(e.uint16,sc),langSysCount:e.uint16,langSysRecords:new e.Array(tc,"langSysCount")}),vc=new e.Struct({tag:new e.String(4),script:new e.Pointer(e.uint16,uc,{type:"parent"})}),wc=new e.Struct({version:e.uint32,scriptCount:e.uint16,scriptList:new e.Array(vc,"scriptCount")}),xc=new e.Struct({format:e.uint32,length:e.uint32,offset:e.uint32}),yc=new e.Struct({reserved:new e.Reserved(e.uint16,2),cbSignature:e.uint32,signature:new e.Buffer("cbSignature")}),zc=new e.Struct({ulVersion:e.uint32,usNumSigs:e.uint16,usFlag:e.uint16,signatures:new e.Array(xc,"usNumSigs"),signatureBlocks:new e.Array(yc,"usNumSigs")}),Ac=new e.Struct({rangeMaxPPEM:e.uint16,rangeGaspBehavior:new e.Bitfield(e.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),Bc=new e.Struct({version:e.uint16,numRanges:e.uint16,gaspRanges:new e.Array(Ac,"numRanges")}),Cc=new e.Struct({pixelSize:e.uint8,maximumWidth:e.uint8,widths:new e.Array(e.uint8,function(a){return a.parent.parent.maxp.numGlyphs})}),Dc=new e.Struct({version:e.uint16,numRecords:e.int16,sizeDeviceRecord:e.int32,records:new e.Array(Cc,"numRecords")}),Ec=new e.Struct({left:e.uint16,right:e.uint16,value:e.int16}),Fc=new e.Struct({firstGlyph:e.uint16,nGlyphs:e.uint16,offsets:new e.Array(e.uint16,"nGlyphs"),max:function a(b){return b.offsets.length&&Math.max.apply(Math,b.offsets)}}),Gc=new e.Struct({off:function a(b){return b.eoa-b.parent.parent.eoa},len:function a(b){return((b.parent.leftTable.max-b.off)/b.parent.rowWidth+1)*(b.parent.rowWidth/2)},values:new e.LazyArray(e.int16,"len")}),Hc=new e.VersionedStruct("format",{0:{nPairs:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16,pairs:new e.Array(Ec,"nPairs")},2:{rowWidth:e.uint16,leftTable:new e.Pointer(e.uint16,Fc,{type:"parent"}),rightTable:new e.Pointer(e.uint16,Fc,{type:"parent"}),array:new e.Pointer(e.uint16,Gc,{type:"parent"})},3:{glyphCount:e.uint16,kernValueCount:e.uint8,leftClassCount:e.uint8,rightClassCount:e.uint8,flags:e.uint8,kernValue:new e.Array(e.int16,"kernValueCount"),leftClass:new e.Array(e.uint8,"glyphCount"),rightClass:new e.Array(e.uint8,"glyphCount"),kernIndex:new e.Array(e.uint8,function(a){return a.leftClassCount*a.rightClassCount})}}),Ic=new e.VersionedStruct("version",{0:{subVersion:e.uint16,length:e.uint16,format:e.uint8,coverage:new e.Bitfield(e.uint8,["horizontal","minimum","crossStream","override"]),subtable:Hc,padding:new e.Reserved(e.uint8,function(a){return a.length-a.doa})},1:{length:e.uint32,coverage:new e.Bitfield(e.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:e.uint8,tupleIndex:e.uint16,subtable:Hc,padding:new e.Reserved(e.uint8,function(a){return a.length-a.doa})}}),Jc=new e.VersionedStruct(e.uint16,{0:{nTables:e.uint16,tables:new e.Array(Ic,"nTables")},1:{reserved:new e.Reserved(e.uint16),nTables:e.uint32,tables:new e.Array(Ic,"nTables")}}),Kc=new e.Struct({version:e.uint16,numGlyphs:e.uint16,yPels:new e.Array(e.uint8,"numGlyphs")}),Lc=new e.Struct({version:e.uint16,fontNumber:e.uint32,pitch:e.uint16,xHeight:e.uint16,style:e.uint16,typeFamily:e.uint16,capHeight:e.uint16,symbolSet:e.uint16,typeface:new e.String(16),characterComplement:new e.String(8),fileName:new e.String(6),strokeWeight:new e.String(1),widthType:new e.String(1),serifStyle:e.uint8,reserved:new e.Reserved(e.uint8)}),Mc=new e.Struct({bCharSet:e.uint8,xRatio:e.uint8,yStartRatio:e.uint8,yEndRatio:e.uint8}),Nc=new e.Struct({yPelHeight:e.uint16,yMax:e.int16,yMin:e.int16}),Oc=new e.Struct({recs:e.uint16,startsz:e.uint8,endsz:e.uint8,entries:new e.Array(Nc,"recs")}),Pc=new e.Struct({version:e.uint16,numRecs:e.uint16,numRatios:e.uint16,ratioRanges:new e.Array(Mc,"numRatios"),offsets:new e.Array(e.uint16,"numRatios"),groups:new e.Array(Oc,"numRecs")}),Qc=new e.Struct({version:e.uint16,ascent:e.int16,descent:e.int16,lineGap:e.int16,advanceHeightMax:e.int16,minTopSideBearing:e.int16,minBottomSideBearing:e.int16,yMaxExtent:e.int16,caretSlopeRise:e.int16,caretSlopeRun:e.int16,caretOffset:e.int16,reserved:new e.Reserved(e.int16,4),metricDataFormat:e.int16,numberOfMetrics:e.uint16}),Rc=new e.Struct({advance:e.uint16,bearing:e.int16}),Sc=new e.Struct({metrics:new e.LazyArray(Rc,function(a){return a.parent.vhea.numberOfMetrics}),bearings:new e.LazyArray(e.int16,function(a){return a.parent.maxp.numGlyphs-a.parent.vhea.numberOfMetrics})}),Tc=new e.Fixed(16,"BE",14),Uc=new e.Struct({fromCoord:Tc,toCoord:Tc}),Vc=new e.Struct({pairCount:e.uint16,correspondence:new e.Array(Uc,"pairCount")}),Wc=new e.Struct({version:e.fixed32,axisCount:e.uint32,segment:new e.Array(Vc,"axisCount")}),Xc=function(){function a(b,c,d){m(this,a),this.type=b,this.stream=c,this.parent=d,this.base=this.stream.pos,this._items=[]}return n(a,[{key:"getItem",value:function a(b){if(null==this._items[b]){var c=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*b,this._items[b]=this.type.decode(this.stream,this.parent),this.stream.pos=c}return this._items[b]}},{key:"inspect",value:function a(){return"[UnboundedArray "+this.type.constructor.name+"]"}}]),a}(),Yc=function(a){q(b,a);function b(a){return m(this,b),p(this,(b.__proto__||o(b)).call(this,a,0))}return n(b,[{key:"decode",value:function a(b,c){return new Xc(this.type,b,c)}}]),b}(e.Array),Zc=function a(){var b,c,d,f,g=arguments.length<=0||void 0===arguments[0]?e.uint16:arguments[0],h=function(){function a(b){m(this,a),this.type=b}return n(a,[{key:"decode",value:function a(b,c){return c=c.parent.parent,this.type.decode(b,c)}},{key:"size",value:function a(b,c){return c=c.parent.parent,this.type.size(b,c)}},{key:"encode",value:function a(b,c,d){return d=d.parent.parent,this.type.encode(b,c,d)}}]),a}();return g=new h(g),b=new e.Struct({unitSize:e.uint16,nUnits:e.uint16,searchRange:e.uint16,entrySelector:e.uint16,rangeShift:e.uint16}),c=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,value:g}),d=new e.Struct({lastGlyph:e.uint16,firstGlyph:e.uint16,values:new e.Pointer(e.uint16,new e.Array(g,function(a){return a.lastGlyph-a.firstGlyph+1}),{type:"parent"})}),f=new e.Struct({glyph:e.uint16,value:g}),new e.VersionedStruct(e.uint16,{0:{values:new Yc(g)},2:{binarySearchHeader:b,segments:new e.Array(c,function(a){return a.binarySearchHeader.nUnits})},4:{binarySearchHeader:b,segments:new e.Array(d,function(a){return a.binarySearchHeader.nUnits})},6:{binarySearchHeader:b,segments:new e.Array(f,function(a){return a.binarySearchHeader.nUnits})},8:{firstGlyph:e.uint16,count:e.uint16,values:new e.Array(g,"count")}})};function Ug(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=arguments.length<=1||void 0===arguments[1]?e.uint16:arguments[1],c=v({newState:e.uint16,flags:e.uint16},a),d=new e.Struct(c),f=new Yc(new e.Array(e.uint16,function(a){return a.nClasses})),g=new e.Struct({nClasses:e.uint32,classTable:new e.Pointer(e.uint32,new Zc(b)),stateArray:new e.Pointer(e.uint32,f),entryTable:new e.Pointer(e.uint32,new Yc(d))});return g}function Vg(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=arguments.length<=1||void 0===arguments[1]?e.uint16:arguments[1],c=new e.Struct({version:function a(){return 8},firstGlyph:e.uint16,values:new e.Array(e.uint8,e.uint16)}),d=v({newStateOffset:e.uint16,newState:function a(b){return(b.newStateOffset-(b.parent.stateArray.base-b.parent.eoa))/b.parent.nClasses},flags:e.uint16},a),f=new e.Struct(d),g=new Yc(new e.Array(e.uint8,function(a){return a.nClasses})),h=new e.Struct({nClasses:e.uint16,classTable:new e.Pointer(e.uint16,c),stateArray:new e.Pointer(e.uint16,g),entryTable:new e.Pointer(e.uint16,new Yc(f))});return h}$c=new e.VersionedStruct("format",{0:{deltas:new e.Array(e.int16,32)},1:{deltas:new e.Array(e.int16,32),mappingData:new Zc(e.uint16)},2:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32)},3:{standardGlyph:e.uint16,controlPoints:new e.Array(e.uint16,32),mappingData:new Zc(e.uint16)}}),_c=new e.Struct({version:e.fixed32,format:e.uint16,defaultBaseline:e.uint16,subtable:$c}),ad=new e.Struct({setting:e.uint16,nameIndex:e.int16,name:function a(){return this.parent.parent.parent.name.records.fontFeatures.English[this.nameIndex]}}),bd=new e.Struct({feature:e.uint16,nSettings:e.uint16,settingTable:new e.Pointer(e.uint32,new e.Array(ad,"nSettings"),{type:"parent"}),featureFlags:new e.Bitfield(e.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:e.uint8,nameIndex:e.int16,name:function a(){return this.parent.parent.name.records.fontFeatures.English[this.nameIndex]}}),cd=new e.Struct({version:e.fixed32,featureNameCount:e.uint16,reserved1:new e.Reserved(e.uint16),reserved2:new e.Reserved(e.uint32),featureNames:new e.Array(bd,"featureNameCount")});function Wg(){var a=this.parent.parent.name.records.fontFeatures;return a&&a.English&&a.English[this.nameID]}dd=new e.Struct({axisTag:new e.String(4),minValue:e.fixed32,defaultValue:e.fixed32,maxValue:e.fixed32,flags:e.uint16,nameID:e.uint16,name:Wg}),ed=new e.Struct({nameID:e.uint16,name:Wg,flags:e.uint16,coord:new e.Array(e.fixed32,function(a){return a.parent.axisCount})}),fd=new e.Struct({version:e.fixed32,offsetToData:e.uint16,countSizePairs:e.uint16,axisCount:e.uint16,axisSize:e.uint16,instanceCount:e.uint16,instanceSize:e.uint16,axis:new e.Array(dd,"axisCount"),instance:new e.Array(ed,"instanceCount")}),gd=new e.Fixed(16,"BE",14),hd=new e.Struct({version:e.uint16,reserved:new e.Reserved(e.uint16),axisCount:e.uint16,globalCoordCount:e.uint16,globalCoords:new e.Pointer(e.uint32,new e.Array(new e.Array(gd,"axisCount"),"globalCoordCount")),glyphCount:e.uint16,flags:e.uint16,offsetToData:e.uint32}),hd.process=function(a){var b,c=1===this.flags?e.uint32:e.uint16,d=new e.Pointer(c,"void",{relativeTo:"offsetToData",allowNull:!1});if(this.offsets=new e.Array(d,this.glyphCount+1).decode(a,this),0===this.flags)for(b=0;b>1,bm.endCode.get(e)))return f=m.idRangeOffset.get(e),g=void 0,0===f?g=b+m.idDelta.get(e):(h=f/2+(b-m.startCode.get(e))-(m.segCount-e),g=m.glyphIndexArray.get(h)||0,0!==g&&(g+=m.idDelta.get(e))),65535&g;c=e+1}return 0;case 8:throw Error("TODO: cmap format 8");case 6:case 10:return m.glyphIndices.get(b-m.firstCode)||0;case 12:case 13:for(i=0,j=m.nGroups-1;i<=j;)if(k=i+j>>1,l=m.groups.get(k),bl.endCharCode))return 12===m.version?l.glyphID+(b-l.startCharCode):l.glyphID;i=k+1}return 0;case 14:throw Error("TODO: cmap format 14");default:throw Error("Unknown cmap format "+m.version)}}},{key:"getCharacterSet",value:function a(){var b,c,d,e,f,h,i,j,k,l,m,n,o;if(this.foa)return this.foa;switch(b=this.cmap,b.version){case 0:return this.foa=Xg(0,b.codeMap.length);case 4:for(c=[],d=b.endCode.toArray(),e=0;e=i.leftTable.firstGlyph&&b=i.rightTable.firstGlyph&&c=i.glyphCount||c>=i.glyphCount)return 0;h=i.kernValue[i.kernIndex[i.leftClass[b]*i.rightClassCount+i.rightClass[c]]];break;default:throw Error("Unsupported kerning sub-table format "+f.format)}f.coverage.override?s=h:s+=h}}catch(a){u=!0,v=a}finally{try{!t&&d.return&&d.return()}finally{if(u)throw v}}return s}}]),a}(),Hd=function(){function a(b){m(this,a),this.font=b}return n(a,[{key:"positionGlyphs",value:function a(b,c){var d,e,f=0,g=0;for(d=0;d1&&(o.minX+=(n.codePoints.length-1)*o.width/n.codePoints.length),f=-c[d].xAdvance,g=0,h=this.font.unitsPerEm/16,i=d+1;i<=e;i++)if(j=b[i],k=j.cbox,l=c[i],m=this.getCombiningClass(j.codePoints[0]),"Not_Reordered"!==m){switch(l.xOffset=l.yOffset=0,m){case"Double_Above":case"Double_Below":l.xOffset+=o.minX-k.width/2-k.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":l.xOffset+=o.minX-k.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":l.xOffset+=o.maxX-k.width-k.minX;break;default:l.xOffset+=o.minX+(o.width-k.width)/2-k.minX}switch(m){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==m&&"Attached_Below"!==m||(o.minY+=h),l.yOffset=-o.minY-k.maxY,o.minY+=k.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==m&&"Attached_Above_Right"!==m||(o.maxY+=h),l.yOffset=o.maxY-k.minY,o.maxY+=k.height}l.xAdvance=l.yAdvance=0,l.xOffset+=f,l.yOffset+=g}else f-=l.xAdvance,g-=l.yAdvance}},{key:"getCombiningClass",value:function a(b){var c=x.getCombiningClass(b);if(3584===(b&-256))if("Not_Reordered"===c)switch(b){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===b)return"Below_Right";switch(c){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return c}}]),a}(),Id=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?1/0:arguments[0],c=arguments.length<=1||void 0===arguments[1]?1/0:arguments[1],d=arguments.length<=2||void 0===arguments[2]?-(1/0):arguments[2],e=arguments.length<=3||void 0===arguments[3]?-(1/0):arguments[3];m(this,a),this.minX=b,this.minY=c,this.maxX=d,this.maxY=e}return n(a,[{key:"addPoint",value:function a(b,c){bthis.maxX&&(this.maxX=b),c>this.maxY&&(this.maxY=c)}},{key:"copy",value:function b(){return new a(this.minX,this.minY,this.maxX,this.maxY)}},{key:"width",get:function a(){return this.maxX-this.minX}},{key:"height",get:function a(){return this.maxY-this.minY}}]),a}(),Jd=function(){function a(b,c){m(this,a),this.glyphs=b,this.positions=c}return n(a,[{key:"advanceWidth",get:function a(){var b,c,d,e=0,f=!0,h=!1,i=void 0;try{for(b=g(this.positions);!(f=(c=b.next()).done);f=!0)d=c.value,e+=d.xAdvance}catch(a){h=!0,i=a}finally{try{!f&&b.return&&b.return()}finally{if(h)throw i}}return e}},{key:"advanceHeight",get:function a(){var b,c,d,e=0,f=!0,h=!1,i=void 0;try{for(b=g(this.positions);!(f=(c=b.next()).done);f=!0)d=c.value,e+=d.yAdvance}catch(a){h=!0,i=a}finally{try{!f&&b.return&&b.return()}finally{if(h)throw i}}return e}},{key:"bbox",get:function a(){var b,c,d,e,f=new Id,g=0,h=0;for(b=0;b>1,f=this.table.segments[e],65535===f.firstGlyph)return null;if(bf.lastGlyph))return 2===this.table.version?f.value:f.values[b-f.firstGlyph];c=e+1}}return null;case 6:for(g=0,h=this.table.binarySearchHeader.nUnits-1;g<=h;){if(e=g+h>>1,f=this.table.segments[e],65535===f.glyph)return null;if(bf.glyph))return f.value;g=e+1}}return null;case 8:return this.table.values[b-this.table.firstGlyph];default:throw Error("Unknown lookup table format: "+this.table.version)}}}]),a}(),Vd=0,Wd=0,Xd=1,Yd=2,Zd=16384,$d=function(){function a(b){m(this,a),this.stateTable=b,this.lookupTable=new Ud(b.classTable)}return n(a,[{key:"process",value:function a(b,c,d){for(var e,f,g,h,i,j,k=Vd,l=c?b.length-1:0,m=c?-1:1;1===m&&l<=b.length||m===-1&&l>=-1;)e=null,f=Xd,g=!0,l===b.length||l===-1?f=Wd:(e=b[l],65535===e.id?f=Yd:(f=this.lookupTable.lookup(e.id),null==f&&(f=Xd))),h=this.stateTable.stateArray.getItem(k),i=h[f],j=this.stateTable.entryTable.getItem(i),f!==Wd&&f!==Yd&&(d(e,j,l),g=!(j.flags&Zd)),k=j.newState,g&&(l+=m);return b}}]),a}(),_d=32768,ae=8192,be=15,ce=32768,de=32768,ee=8192,fe=2147483648,ge=1073741824,he=1073741823,ie=4194304,je=2048,ke=1024,le=992,me=31,ne=function(){function a(b){m(this,a),this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=b,this.morx=b.morx}return n(a,[{key:"process",value:function a(b){var c,d,e,f,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],w=!0,x=!1,y=void 0;try{for(c=g(this.morx.chains);!(w=(d=c.next()).done);w=!0){e=d.value,f=e.defaultFlags,h=!0,i=!1,j=void 0;try{for(k=g(e.features);!(h=(l=k.next()).done);h=!0)m=l.value,n=void 0,(n=v[m.featureType])&&n[m.featureSetting]&&(f&=m.disableFlags,f|=m.enableFlags)}catch(a){i=!0,j=a}finally{try{!h&&k.return&&k.return()}finally{if(i)throw j}}o=!0,p=!1,q=void 0;try{for(r=g(e.subtables);!(o=(s=r.next()).done);o=!0)t=s.value,t.subFeatureFlags&f&&this.processSubtable(t,b)}catch(a){p=!0,q=a}finally{try{!o&&r.return&&r.return()}finally{if(p)throw q}}}}catch(a){x=!0,y=a}finally{try{!w&&c.return&&c.return()}finally{if(x)throw y}}for(u=b.length-1;u>=0;)65535===b[u].id&&b.splice(u,1),u--;return b}},{key:"processSubtable",value:function a(b,c){var d,e,f;return this.subtable=b,this.glyphs=c,4===this.subtable.type?void this.processNoncontextualSubstitutions(this.subtable,this.glyphs):(this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null,d=new $d(this.subtable.table.stateTable),e=this.getProcessor(),f=!!(this.subtable.coverage&ie),d.process(this.glyphs,f,e))}},{key:"getProcessor",value:function a(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw Error("Invalid morx subtable type: "+this.subtable.type)}}},{key:"processIndicRearragement",value:function a(b,c,d){c.flags&_d&&(this.firstGlyph=d),c.flags&ae&&(this.lastGlyph=d),dh(this.glyphs,c.flags&be,this.firstGlyph,this.lastGlyph)}},{key:"processContextualSubstitution",value:function a(b,c,d){var e,f,g,h,i,j=this.subtable.table.substitutionTable.items;65535!==c.markIndex&&(e=j.getItem(c.markIndex),f=new Ud(e),b=this.glyphs[this.markedGlyph],g=f.lookup(b.id),g&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(g,b.codePoints))),65535!==c.currentIndex&&(h=j.getItem(c.currentIndex),i=new Ud(h),b=this.glyphs[d],g=i.lookup(b.id),g&&(this.glyphs[d]=this.font.getGlyph(g,b.codePoints))),c.flags&ce&&(this.markedGlyph=d)}},{key:"processLigature",value:function a(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(c.flags&de&&this.ligatureStack.push(d),c.flags&ee){for(f=this.subtable.table.ligatureActions,g=this.subtable.table.components,h=this.subtable.table.ligatureList,i=c.action,j=!1,k=0,l=[],m=[];!j;)o=this.ligatureStack.pop(),(n=l).unshift.apply(n,w(this.glyphs[o].codePoints)),p=f.getItem(i++),j=!!(p&fe),q=!!(p&ge),r=(p&he)<<2>>2,r+=this.glyphs[o].id,s=g.getItem(r),k+=s,j||q?(t=h.getItem(k),this.glyphs[o]=this.font.getGlyph(t,l),m.push(o),k=0,l=[]):this.glyphs[o]=this.font.getGlyph(65535);(e=this.ligatureStack).push.apply(e,m)}}},{key:"processNoncontextualSubstitutions",value:function a(b,c,d){var e,f,g=new Ud(b.table.lookupTable);for(d=0;d>>5,f=!!(c.flags&ke),this._insertGlyphs(this.markedIndex,c.markedInsertIndex,e,f)),65535!==c.currentInsertIndex&&(g=(c.flags&le)>>>5,h=!!(c.flags&je),this._insertGlyphs(d,c.currentInsertIndex,g,h))}},{key:"getSupportedFeatures",value:function a(){var b,c,d,e,f,h,i,j,k,l=[],m=!0,n=!1,o=void 0;try{for(b=g(this.morx.chains);!(m=(c=b.next()).done);m=!0){d=c.value,e=!0,f=!1,h=void 0;try{for(i=g(d.features);!(e=(j=i.next()).done);e=!0)k=j.value,l.push([k.featureType,k.featureSetting])}catch(a){f=!0,h=a}finally{try{!e&&i.return&&i.return()}finally{if(f)throw h}}}}catch(a){n=!0,o=a}finally{try{!m&&b.return&&b.return()}finally{if(n)throw o}}return l}}]),a}();function ch(a,b,c){var d,e=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],f=!(arguments.length<=4||void 0===arguments[4])&&arguments[4],g=a.splice(c[0]-(c[1]-1),c[1]);return f&&g.reverse(),d=a.splice.apply(a,[b[0],b[1]].concat(w(g))),e&&d.reverse(),a.splice.apply(a,[c[0]-(b[1]-1),0].concat(w(d))),a}function dh(a,b,c,d){var e=d-c+1;switch(b){case 0:return a;case 1:return ch(a,[c,1],[d,0]);case 2:return ch(a,[c,0],[d,1]);case 3:return ch(a,[c,1],[d,1]);case 4:return ch(a,[c,2],[d,0]);case 5:return ch(a,[c,2],[d,0],!0,!1);case 6:return ch(a,[c,0],[d,2]);case 7:return ch(a,[c,0],[d,2],!1,!0);case 8:return ch(a,[c,1],[d,2]);case 9:return ch(a,[c,1],[d,2],!1,!0);case 10:return ch(a,[c,2],[d,1]);case 11:return ch(a,[c,2],[d,1],!0,!1);case 12:return ch(a,[c,2],[d,2]);case 13:return ch(a,[c,2],[d,2],!0,!1);case 14:return ch(a,[c,2],[d,2],!1,!0);case 15:return ch(a,[c,2],[d,2],!0,!0);default:throw Error("Unknown verb: "+b)}}oe=function(){function a(b){m(this,a),this.morxProcessor=new ne(b)}return n(a,[{key:"substitute",value:function a(b,c,d,e){var f="rtl"===$g(d);return f&&b.reverse(),this.morxProcessor.process(b,_g(c)),b}},{key:"getAvailableFeatures",value:function a(b,c){return bh(this.morxProcessor.getSupportedFeatures())}}]),a}(),pe=function(){function a(b,c,d){m(this,a),this.font=b,this.script=c,this.language=d,this.direction=$g(c),this.stages=[],this.globalFeatures={},this.allFeatures={}}return n(a,[{key:"_addFeatures",value:function a(b){var c,d,e,f=this.stages[this.stages.length-1],h=!0,i=!1,j=void 0;try{for(c=g(b);!(h=(d=c.next()).done);h=!0)e=d.value,this.allFeatures[e]||(f.push(e),this.allFeatures[e]=!0)}catch(a){i=!0,j=a}finally{try{!h&&c.return&&c.return()}finally{if(i)throw j}}}},{key:"_addGlobal",value:function a(b){var c,d,e,f=!0,h=!1,i=void 0;try{for(c=g(b);!(f=(d=c.next()).done);f=!0)e=d.value,this.globalFeatures[e]=!0}catch(a){h=!0,i=a}finally{try{!f&&c.return&&c.return()}finally{if(h)throw i}}}},{key:"add",value:function a(b){var c,d=arguments.length<=1||void 0===arguments[1]||arguments[1];if(0===this.stages.length&&this.stages.push([]),"string"==typeof b&&(b=[b]),Array.isArray(b))this._addFeatures(b),d&&this._addGlobal(b);else{if("object"!==(void 0===b?"undefined":k(b)))throw Error("Unsupported argument to ShapingPlan#add");c=(b.global||[]).concat(b.local||[]),this._addFeatures(c),b.global&&this._addGlobal(b.global)}}},{key:"addStage",value:function a(b,c){"function"==typeof b?this.stages.push(b,[]):(this.stages.push([]),this.add(b,c))}},{key:"assignGlobalFeatures",value:function a(b){var c,d,e,f,h=!0,i=!1,j=void 0;try{for(c=g(b);!(h=(d=c.next()).done);h=!0){e=d.value;for(f in this.globalFeatures)e.features[f]=!0}}catch(a){i=!0,j=a}finally{try{!h&&c.return&&c.return()}finally{if(i)throw j}}}},{key:"process",value:function a(b,c,d){var e,f,h,i,j,k;b.selectScript(this.script,this.language),e=!0,f=!1,h=void 0;try{for(i=g(this.stages);!(e=(j=i.next()).done);e=!0)k=j.value,"function"==typeof k?k(c,d):k.length>0&&b.applyFeatures(k,c,d)}catch(a){f=!0,h=a}finally{try{!e&&i.return&&i.return()}finally{if(f)throw h}}}}]),a}(),qe=["ccmp","locl","rlig","mark","mkmk"],re=["frac","numr","dnom"],se=["calt","clig","liga","rclt","curs","kern"],te={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},ue=function(){function a(){m(this,a)}return n(a,null,[{key:"plan",value:function a(b,c,d){this.planPreprocessing(b),this.planFeatures(b),this.planPostprocessing(b,d),b.assignGlobalFeatures(c),this.assignFeatures(b,c)}},{key:"planPreprocessing",value:function a(b){b.add({global:te[b.direction],local:re})}},{key:"planFeatures",value:function a(b){}},{key:"planPostprocessing",value:function a(b,c){b.add([].concat(qe,se,w(c)))}},{key:"assignFeatures",value:function a(b,c){for(var d,e,f,g=0;g=0&&x.isDigit(c[e].codePoints[0]);)c[e].features.numr=!0,c[e].features.frac=!0,e--;for(;f1,this.features={},Array.isArray(f))for(c=0;cPe&&(i=gh(c,m,j.features),i.features.tjmo=!0,h.push(i)),a.splice.apply(a,[b,1].concat(h)),b+h.length-1):b}function ih(a,b,c){var d,e,f,g,h,i=a[b],j=a[b].codePoints[0],k=fh(j),l=a[b-1].codePoints[0],m=fh(l),n=void 0,o=void 0,p=void 0,q=void 0;return m===jf&&k===hf?(n=l,q=i):(k===gf?(o=a[b-1],p=i):(o=a[b-2],p=a[b-1],q=i),d=o.codePoints[0],e=p.codePoints[0],bf(d)&&cf(e)&&(n=Ke+((d-Ne)*Re+(e-Oe))*Se)),f=q&&q.codePoints[0]||Pe,null!=n&&(f===Pe||df(f))&&(g=n+(f-Pe),c.hasGlyphForCodePoint(g))?(h=m===gf?3:2,a.splice(b-h+1,h,gh(c,g,i.features)),b-h+1):(o&&(o.features.ljmo=!0),p&&(p.features.vjmo=!0),q&&(q.features.tjmo=!0),m===jf?(hh(a,b-1,c),b+1):b)}function jh(a){switch(fh(a)){case jf:case kf:return 1;case gf:return 2;case hf:return 3}}function kh(a,b,c){var d,e,f=a[b],g=a[b].codePoints[0];if(0!==c.glyphForCodePoint(g).advanceWidth)return d=a[b-1].codePoints[0],e=jh(d),a.splice(b,1),a.splice(b-e,0,f)}function lh(a,b,c){var d,e,f=a[b],g=a[b].codePoints[0];return c.hasGlyphForCodePoint(We)&&(d=gh(c,We,f.features),e=0===c.glyphForCodePoint(g).advanceWidth?b:b+1,a.splice(e,0,d),b++),b}sf={arab:He,mong:He,syrc:He,"nko ":He,phag:He,mand:He,mani:He,phlp:He,hang:Je,latn:ue,DFLT:ue};function mh(a){var b=sf[a];return b?b:ue}tf=function(){function a(b,c){m(this,a),this.glyphs=b,this.reset(c)}return n(a,[{key:"reset",value:function a(){var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.flags=b,this.index=0}},{key:"shouldIgnore",value:function a(b,c){return c.ignoreMarks&&b.isMark||c.ignoreBaseGlyphs&&!b.isMark||c.ignoreLigatures&&b.isLigature}},{key:"move",value:function a(b){for(this.index+=b;0<=this.index&&this.indexthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}},{key:"next",value:function a(){return this.move(1)}},{key:"prev",value:function a(){return this.move(-1)}},{key:"peek",value:function a(){var b=arguments.length<=0||void 0===arguments[0]?1:arguments[0],c=this.index,d=this.increment(b);return this.index=c,d}},{key:"peekIndex",value:function a(){var b,c=arguments.length<=0||void 0===arguments[0]?1:arguments[0],d=this.index;return this.increment(c),b=this.index,this.index=d,b}},{key:"increment",value:function a(){var b=arguments.length<=0||void 0===arguments[0]?1:arguments[0],c=b<0?-1:1;for(b=Math.abs(b);b--;)this.move(c);return this.glyphs[this.index]}},{key:"cur",get:function a(){return this.glyphs[this.index]||null}}]),a}(),uf=["DFLT","dflt","latn"],vf=function(){function a(b,c){m(this,a),this.font=b,this.table=c,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1}return n(a,[{key:"findScript",value:function a(b){var c,d,e,f,h,i,j,k,l,m,n,o;if(null==this.table.scriptList)return null;Array.isArray(b)||(b=[b]),c=!0,d=!1,e=void 0;try{for(f=g(this.table.scriptList);!(c=(h=f.next()).done);c=!0){i=h.value,j=!0,k=!1,l=void 0;try{for(m=g(b);!(j=(n=m.next()).done);j=!0)if(o=n.value,i.tag===o)return i}catch(a){k=!0,l=a}finally{try{!j&&m.return&&m.return()}finally{if(k)throw l}}}}catch(a){d=!0,e=a}finally{try{!c&&f.return&&f.return()}finally{if(d)throw e}}return null}},{key:"selectScript",value:function a(b,c){var d,e,f,h,i,j,k,l,m,n,o,p,q,r=!1,s=void 0;if(!this.script||b!==this.scriptTag){if(s=this.findScript(b),b&&(s=this.findScript(b)),s||(s=this.findScript(uf)),!s)return;this.scriptTag=s.tag,this.script=s.script,this.direction=$g(b),this.language=null,r=!0}if(!c&&c!==this.langugeTag){d=!0,e=!1,f=void 0;try{for(h=g(this.script.langSysRecords);!(d=(i=h.next()).done);d=!0)if(j=i.value,j.tag===c){this.language=j.langSys,this.langugeTag=j.tag,r=!0;break}}catch(a){e=!0,f=a}finally{try{!d&&h.return&&h.return()}finally{if(e)throw f}}}if(this.language||(this.language=this.script.defaultLangSys),r&&(this.features={},this.language)){k=!0,l=!1,m=void 0;try{for(n=g(this.language.featureIndexes);!(k=(o=n.next()).done);k=!0)p=o.value,q=this.table.featureList[p],this.features[q.tag]=q.feature}catch(a){l=!0,m=a}finally{try{!k&&n.return&&n.return()}finally{if(l)throw m}}}}},{key:"lookupsForFeatures",value:function a(){var b,c,d,e,f,h,i,j,k,l,m=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],n=arguments[1],o=[],p=!0,q=!1,r=void 0;try{for(b=g(m);!(p=(c=b.next()).done);p=!0)if(d=c.value,e=this.features[d]){f=!0,h=!1,i=void 0;try{for(j=g(e.lookupListIndexes);!(f=(k=j.next()).done);f=!0)l=k.value,n&&n.indexOf(l)!==-1||o.push({feature:d,index:l,lookup:this.table.lookupList.get(l)})}catch(a){h=!0,i=a}finally{try{!f&&j.return&&j.return()}finally{if(h)throw i}}}}catch(a){q=!0,r=a}finally{try{!p&&b.return&&b.return()}finally{if(q)throw r}}return o.sort(function(a,b){return a.index-b.index}),o}},{key:"applyFeatures",value:function a(b,c,d){var e=this.lookupsForFeatures(b);this.applyLookups(e,c,d)}},{key:"applyLookups",value:function a(b,c,d){var e,f,h,i,j,k,l,m,n,o,p,q,r,s,t;this.glyphs=c,this.positions=d,this.glyphIterator=new tf(c),e=!0,f=!1,h=void 0;try{for(i=g(b);!(e=(j=i.next()).done);e=!0)for(k=j.value,l=k.feature,m=k.lookup,this.glyphIterator.reset(m.flags);this.glyphIterator.index=0})}},{key:"getClassID",value:function a(b,c){var d,e,f,h,i,j,k,l,m,n,o,p,q;switch(c.version){case 1:d=c.startGlyph,e=!0,f=!1,h=void 0;try{for(i=g(c.classValueArray);!(e=(j=i.next()).done);e=!0)if(k=j.value,b===d++)return k}catch(a){f=!0,h=a}finally{try{!e&&i.return&&i.return()}finally{if(f)throw h}}break;case 2:l=!0,m=!1,n=void 0;try{for(o=g(c.classRangeRecord);!(l=(p=o.next()).done);l=!0)if(q=p.value,q.start<=b&&b<=q.end)return q.class}catch(a){m=!0,n=a}finally{try{!l&&o.return&&o.return()}finally{if(m)throw n}}}return-1}},{key:"classSequenceMatches",value:function a(b,c,d){var e=this;return this.match(b,c,function(a,b){return a===e.getClassID(b,d)})}},{key:"applyContext",value:function a(b){var c,d,e,f,h,i,j,k,l,m,n,o,p,q;switch(b.version){case 1:if(c=this.coverageIndex(b.coverage),c===-1)return;d=b.ruleSets[c],e=!0,f=!1,h=void 0;try{for(i=g(d);!(e=(j=i.next()).done);e=!0)if(k=j.value,this.sequenceMatches(1,k.input))return this.applyLookupList(k.lookupRecords)}catch(a){f=!0,h=a}finally{try{!e&&i.return&&i.return()}finally{if(f)throw h}}break;case 2:if(this.coverageIndex(b.coverage)===-1)return;if(c=this.getClassID(this.glyphIterator.cur.id,b.classDef),c===-1)return;d=b.classSet[c],l=!0,m=!1,n=void 0;try{for(o=g(d);!(l=(p=o.next()).done);l=!0)if(q=p.value,this.classSequenceMatches(1,q.classes,b.classDef))return this.applyLookupList(q.lookupRecords)}catch(a){m=!0,n=a}finally{try{!l&&o.return&&o.return()}finally{if(m)throw n}}break;case 3:if(this.coverageSequenceMatches(0,b.coverages))return this.applyLookupList(b.lookupRecords)}}},{key:"applyChainingContext",value:function a(b){var c,d,e,f,h,i,j,k,l,m,n,o,p,q,r;switch(b.version){case 1:if(c=this.coverageIndex(b.coverage),c===-1)return;d=b.chainRuleSets[c],e=!0,f=!1,h=void 0;try{for(i=g(d);!(e=(j=i.next()).done);e=!0)if(k=j.value,this.sequenceMatches(-k.backtrack.length,k.backtrack)&&this.sequenceMatches(1,k.input)&&this.sequenceMatches(1+k.input.length,k.lookahead))return this.applyLookupList(k.lookupRecords)}catch(a){f=!0,h=a}finally{try{!e&&i.return&&i.return()}finally{if(f)throw h}}break;case 2:if(this.coverageIndex(b.coverage)===-1)return;if(c=this.getClassID(this.glyphIterator.cur.id,b.inputClassDef),c===-1)return;l=b.chainClassSet[c],m=!0,n=!1,o=void 0;try{for(p=g(l);!(m=(q=p.next()).done);m=!0)if(r=q.value,this.classSequenceMatches(-r.backtrack.length,r.backtrack,b.backtrackClassDef)&&this.classSequenceMatches(1,r.input,b.inputClassDef)&&this.classSequenceMatches(1+r.input.length,r.lookahead,b.lookaheadClassDef))return this.applyLookupList(r.lookupRecords)}catch(a){n=!0,o=a}finally{try{!m&&p.return&&p.return()}finally{if(n)throw o}}break;case 3:if(this.coverageSequenceMatches(-b.backtrackGlyphCount,b.backtrackCoverage)&&this.coverageSequenceMatches(0,b.inputCoverage)&&this.coverageSequenceMatches(b.inputGlyphCount,b.lookaheadCoverage))return this.applyLookupList(b.lookupRecords)}}}]),a}(),wf=function(a){q(b,a);function b(){return m(this,b),p(this,(b.__proto__||o(b)).apply(this,arguments))}return n(b,[{key:"applyLookup",value:function a(b,c){var d,e,f,h,i,j,l,m,n,o,p,q,r,s,t,u,v,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q=this;switch(b){case 1:if(d=this.coverageIndex(c.coverage),d===-1)return!1;switch(e=this.glyphIterator.cur,c.version){case 1:e.id=e.id+c.deltaGlyphID&65535;break;case 2:e.id=c.substitute.get(d)}return!0;case 2:return f=this.coverageIndex(c.coverage),f!==-1&&(h=function(){var a,b,d,e=c.sequences.get(f);return Q.glyphIterator.cur.id=e[0],b=Q.glyphIterator.cur.features,d=e.slice(1).map(function(a){return new Ie(a,(void 0),b)}),(a=Q.glyphs).splice.apply(a,[Q.glyphIterator.index+1,0].concat(w(d))),{v:!0}}(),"object"===(void 0===h?"undefined":k(h)))&&h.v;case 3:return i=this.coverageIndex(c.coverage),i!==-1&&(j=0,this.glyphIterator.cur.id=c.alternateSet.get(i)[j],!0);case 4:if(l=this.coverageIndex(c.coverage),l===-1)return!1;m=!0,n=!1,o=void 0;try{for(p=g(c.ligatureSets.get(l));!(m=(q=p.next()).done);m=!0)if(r=q.value,s=this.sequenceMatchIndices(1,r.components)){t=this.glyphIterator.cur,u=t.codePoints.slice(),v=!0,x=!1,y=void 0;try{for(z=g(s);!(v=(A=z.next()).done);v=!0)B=A.value,u.push.apply(u,w(this.glyphs[B].codePoints))}catch(a){x=!0,y=a}finally{try{!v&&z.return&&z.return()}finally{if(x)throw y}}C=new Ie(r.glyph,u),C.features=t.features,C.ligatureID=C.isMark?0:this.ligatureID++,D=t.ligatureID,E=t.codePoints.length,F=E,G=this.glyphIterator.index+1,H=!0,I=!1,J=void 0;try{for(K=g(s);!(H=(L=K.next()).done);H=!0){if(M=L.value,C.isMark)G=M;else for(;G=0;P--)this.glyphs.splice(s[P],1);return this.glyphs[this.glyphIterator.index]=C,!0}}catch(a){n=!0,o=a}finally{try{!m&&p.return&&p.return()}finally{if(n)throw o}}return!1;case 5:return this.applyContext(c),!1;case 6:return this.applyChainingContext(c), !1;case 7:return this.applyLookup(c.lookupType,c.extension),!1;default:throw Error("GSUB lookupType "+b+" is not supported")}}}]),b}(vf),xf=function(a){q(b,a);function b(){return m(this,b),p(this,(b.__proto__||o(b)).apply(this,arguments))}return n(b,[{key:"applyPositionValue",value:function a(b,c){var d=this.positions[this.glyphIterator.peekIndex(b)];null!=c.xAdvance&&(d.xAdvance+=c.xAdvance),null!=c.yAdvance&&(d.yAdvance+=c.yAdvance),null!=c.xPlacement&&(d.xOffset+=c.xPlacement),null!=c.yPlacement&&(d.yOffset+=c.yPlacement)}},{key:"applyLookup",value:function a(b,c){var d,e,f,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V;switch(b){case 1:if(d=this.coverageIndex(c.coverage),d===-1)return!1;switch(c.version){case 1:this.applyPositionValue(0,c.value);break;case 2:this.applyPositionValue(0,c.values.get(d))}return!0;case 2:if(e=this.glyphIterator.peek(),!e)return!1;if(f=this.coverageIndex(c.coverage),f===-1)return!1;switch(c.version){case 1:h=c.pairSets.get(f),i=!0,j=!1,k=void 0;try{for(l=g(h);!(i=(m=l.next()).done);i=!0)if(n=m.value,n.secondGlyph===e.id)return this.applyPositionValue(0,n.value1),this.applyPositionValue(1,n.value2),!0}catch(a){j=!0,k=a}finally{try{!i&&l.return&&l.return()}finally{if(j)throw k}}return!1;case 2:return o=this.getClassID(this.glyphIterator.cur.id,c.classDef1),p=this.getClassID(e.id,c.classDef2),o!==-1&&p!==-1&&(q=c.classRecords.get(o).get(p),this.applyPositionValue(0,q.value1),this.applyPositionValue(1,q.value2),!0)}case 3:if(r=this.glyphIterator.peekIndex(),s=this.glyphs[r],!s)return!1;if(t=c.entryExitRecords[this.coverageIndex(c.coverage)],!t||!t.exitAnchor)return!1;if(u=c.entryExitRecords[this.coverageIndex(c.coverage,s.id)],!u||!u.entryAnchor)return!1;switch(v=this.getAnchor(u.entryAnchor),w=this.getAnchor(t.exitAnchor),x=this.positions[this.glyphIterator.index],y=this.positions[r],this.direction){case"ltr":x.xAdvance=w.x+x.xOffset,z=v.x+y.xOffset,y.xAdvance-=z,y.xOffset-=z;break;case"rtl":z=w.x+x.xOffset,x.xAdvance-=z,x.xOffset-=z,y.xAdvance=v.x+y.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=r,x.yOffset=v.y-w.y):(s.cursiveAttachment=this.glyphIterator.index,x.yOffset=w.y-v.y),!0;case 4:if(A=this.coverageIndex(c.markCoverage),A===-1)return!1;for(B=this.glyphIterator.index;--B>=0&&this.glyphs[B].isMark;);return!(B<0)&&(C=this.coverageIndex(c.baseCoverage,this.glyphs[B].id),C!==-1&&(D=c.markArray[A],E=c.baseArray[C][D.class],this.applyAnchor(D,E,B),!0));case 5:if(F=this.coverageIndex(c.markCoverage),F===-1)return!1;for(G=this.glyphIterator.index;--G>=0&&this.glyphs[G].isMark;);return!(G<0)&&(H=this.coverageIndex(c.ligatureCoverage,this.glyphs[G].id),H!==-1&&(I=c.ligatureArray[H],J=this.glyphIterator.cur,K=this.glyphs[G],L=K.ligatureID&&K.ligatureID===J.ligatureID&&null!=J.ligatureComponent?Math.min(J.ligatureComponent,K.codePoints.length)-1:K.codePoints.length-1,M=c.markArray[F],N=I[L][M.class],this.applyAnchor(M,N,G),!0));case 6:return O=this.coverageIndex(c.mark1Coverage),O!==-1&&(P=this.glyphIterator.peekIndex(-1),Q=this.glyphs[P],!(!Q||!Q.isMark)&&(R=this.glyphIterator.cur,S=!1,R.ligatureID===Q.ligatureID?R.ligatureID?R.ligatureComponent===Q.ligatureComponent&&(S=!0):S=!0:(R.ligatureID&&!R.ligatureComponent||Q.ligatureID&&!Q.ligatureComponent)&&(S=!0),!!S&&(T=this.coverageIndex(c.mark2Coverage,Q.id),T!==-1&&(U=c.mark1Array[O],V=c.mark2Array[T][U.class],this.applyAnchor(U,V,P),!0))));case 7:return this.applyContext(c),!1;case 8:return this.applyChainingContext(c),!1;case 9:return this.applyLookup(c.lookupType,c.extension),!1;default:throw Error("Unsupported GPOS table: "+b)}}},{key:"applyAnchor",value:function a(b,c,d){var e=this.getAnchor(c),f=this.getAnchor(b.markAnchor),g=this.positions[d],h=this.positions[this.glyphIterator.index];return h.xOffset=e.x-f.x,h.yOffset=e.y-f.y,this.glyphIterator.cur.markAttachment=d}},{key:"getAnchor",value:function a(b){return{x:b.xCoordinate,y:b.yCoordinate}}},{key:"applyFeatures",value:function a(c,d,e){u(b.prototype.__proto__||o(b.prototype),"applyFeatures",this).call(this,c,d,e);for(var f=0;f1}return n(a,[{key:"_getPath",value:function a(){return new Bf}},{key:"_getCBox",value:function a(){return this.path.cbox}},{key:"_getBBox",value:function a(){return this.path.bbox}},{key:"_getTableMetrics",value:function a(b){var c,d;return this.id0?(g=Math.abs(i.typoAscender-i.typoDescender),h=i.typoAscender-b.maxY):(j=this.MC.hhea,g=Math.abs(j.ascent-j.descent),h=j.ascent-b.maxY)),this.ioa={advanceWidth:d,advanceHeight:g,leftBearing:e,topBearing:h})}},{key:"_getName",value:function a(){var b,c=this.MC.post;if(!c)return null;switch(c.version){case 1:return Ff[this.id];case 2:return b=c.glyphNameIndex[this.id],b0?this._decodeSimple(d,b):d.numberOfContours<0&&this._decodeComposite(d,b,c),d)}},{key:"_decodeSimple",value:function a(b,c){var d,f,g,h,i,j,k,l,m,n,o,p;for(b.points=[],d=new e.Array(e.uint16,b.numberOfContours).decode(c),f=new e.Array(e.uint8,e.uint16).decode(c),g=[],h=d[d.length-1]+1;g.length=0,0,0),b.points.push(m);for(n=0,l=0;l>1,c.length=0},r=function a(){for(var r,t,u,v,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa;s.pos1&&(void 0!==e&&null!==e||(e=c.shift()+n.nominalWidthX)),h+=c.shift(),b.moveTo(g,h);break;case 5:for(;c.length>=2;)g+=c.shift(),h+=c.shift(),b.lineTo(g,h);break;case 6:case 7:for(t=6===r;c.length>=1;)t?g+=c.shift():h+=c.shift(),b.lineTo(g,h),t=!t;break;case 8:for(;c.length>0;)u=g+c.shift(),v=h+c.shift(),y=u+c.shift(),z=v+c.shift(),g=y+c.shift(),h=z+c.shift(),b.bezierCurveTo(u,v,y,z,g,h);break;case 10:A=c.pop()+p,B=o[A],B&&(k[A]=!0,C=s.pos,D=x,s.pos=B.offset,x=B.offset+B.length,a(),s.pos=C,x=D);break;case 11:return;case 14:c.length>0&&(void 0!==e&&null!==e||(e=c.shift()+n.nominalWidthX)),b.closePath();break;case 19:case 20:q(),s.pos+=f+7>>3;break;case 21:c.length>2&&(void 0!==e&&null!==e||(e=c.shift()+n.nominalWidthX),E=!0),g+=c.shift(),h+=c.shift(),b.moveTo(g,h);break;case 22:c.length>1&&(void 0!==e&&null!==e||(e=c.shift()+n.nominalWidthX)),g+=c.shift(),b.moveTo(g,h);break;case 24:for(;c.length>=8;)u=g+c.shift(),v=h+c.shift(),y=u+c.shift(),z=v+c.shift(),g=y+c.shift(),h=z+c.shift(),b.bezierCurveTo(u,v,y,z,g,h);g+=c.shift(),h+=c.shift(),b.lineTo(g,h);break;case 25:for(;c.length>=8;)g+=c.shift(),h+=c.shift(),b.lineTo(g,h);u=g+c.shift(),v=h+c.shift(),y=u+c.shift(),z=v+c.shift(),g=y+c.shift(),h=z+c.shift(),b.bezierCurveTo(u,v,y,z,g,h);break;case 26:for(c.length%2&&(g+=c.shift());c.length>=4;)u=g,v=h+c.shift(),y=u+c.shift(),z=v+c.shift(),g=y,h=z+c.shift(),b.bezierCurveTo(u,v,y,z,g,h);break;case 27:for(c.length%2&&(h+=c.shift());c.length>=4;)u=g+c.shift(),v=h,y=u+c.shift(),z=v+c.shift(),g=y+c.shift(),h=z,b.bezierCurveTo(u,v,y,z,g,h);break;case 28:c.push(s.readInt16BE());break;case 29:A=c.pop()+m,B=l[A],B&&(j[A]=!0,C=s.pos,D=x,s.pos=B.offset,x=B.offset+B.length,a(),s.pos=C,x=D);break;case 30:case 31:for(t=31===r;c.length>=4;)t?(u=g+c.shift(),v=h,y=u+c.shift(),z=v+c.shift(),h=z+c.shift(),g=y+(1===c.length?c.shift():0)):(u=g,v=h+c.shift(),y=u+c.shift(),z=v+c.shift(),g=y+c.shift(),h=z+(1===c.length?c.shift():0)),b.bezierCurveTo(u,v,y,z,g,h),t=!t;break;case 12:switch(r=s.readUInt8()){case 3:F=c.pop(),G=c.pop(),c.push(F&&G?1:0);break;case 4:F=c.pop(),G=c.pop(),c.push(F||G?1:0);break;case 5:F=c.pop(),c.push(F?0:1);break;case 9:F=c.pop(),c.push(Math.abs(F));break;case 10:F=c.pop(),G=c.pop(),c.push(F+G);break;case 11:F=c.pop(),G=c.pop(),c.push(F-G);break;case 12:F=c.pop(),G=c.pop(),c.push(F/G);break;case 14:F=c.pop(),c.push(-F);break;case 15:F=c.pop(),G=c.pop(),c.push(F===G?1:0);break;case 18:c.pop();break;case 20:H=c.pop(),I=c.pop(),d[I]=H;break;case 21:I=c.pop(),c.push(d[I]||0);break;case 22:J=c.pop(),K=c.pop(),L=c.pop(),M=c.pop(),c.push(L<=M?J:K);break;case 23:c.push(Math.random());break;case 24:F=c.pop(),G=c.pop(),c.push(F*G);break;case 26:F=c.pop(),c.push(Math.sqrt(F));break;case 27:F=c.pop(),c.push(F,F);break;case 28:F=c.pop(),G=c.pop(),c.push(G,F);break;case 29:I=c.pop(),I<0?I=0:I>c.length-1&&(I=c.length-1),c.push(c[I]);break;case 30:if(N=c.pop(),O=c.pop(),O>=0)for(;O>0;){for(P=c[N-1],Q=N-2;Q>=0;Q--)c[Q+1]=c[Q];c[0]=P,O--}else for(;O<0;){for(P=c[0],R=0;R<=N;R++)c[R]=c[R+1];c[N-1]=P,O++}break;case 34:u=g+c.shift(),v=h,y=u+c.shift(),z=v+c.shift(),S=y+c.shift(),T=z,U=S+c.shift(),V=T,W=U+c.shift(),X=V,Y=W+c.shift(),Z=X,g=Y,h=Z,b.bezierCurveTo(u,v,y,z,S,T),b.bezierCurveTo(U,V,W,X,Y,Z);break;case 35:for($=[],_=[0,1,2,3,4,5],aa=0;aa<_.length;aa++)i=_[aa],g+=c.shift(),h+=c.shift(),$.push(g,h);b.bezierCurveTo.apply(b,w($.slice(0,6))),b.bezierCurveTo.apply(b,w($.slice(6))),c.shift();break;case 36:u=g+c.shift(),v=h+c.shift(),y=u+c.shift(),z=v+c.shift(),S=y+c.shift(),T=z,U=S+c.shift(),V=T,W=U+c.shift(),X=V+c.shift(),Y=W+c.shift(),Z=X,g=Y,h=Z,b.bezierCurveTo(u,v,y,z,S,T),b.bezierCurveTo(U,V,W,X,Y,Z);break;case 37:for(ba=g,ca=h,$=[],da=[0,1,2,3,4],ea=0;eaMath.abs(h-ca)?(g+=c.shift(),h=ca):(g=ba,h+=c.shift()),$.push(g,h),b.bezierCurveTo.apply(b,w($.slice(0,6))),b.bezierCurveTo.apply(b,w($.slice(6)));break;default:throw Error("Unknown op: 12 "+r)}break;default:throw Error("Unknown op: "+r)}else r<247?c.push(r-139):r<251?(fa=s.readUInt8(),c.push(256*(r-247)+fa+108)):r<255?(fa=s.readUInt8(),c.push(256*-(r-251)-fa-108)):c.push(s.readInt32BE()/65536)},r(),b}}]),b}(Hf),Zf=new e.Struct({originX:e.uint16,originY:e.uint16,type:new e.String(4),data:new e.Buffer(function(a){return a.parent.buflen-a.doa})}),$f=function(a){q(b,a);function b(){return m(this,b),p(this,(b.__proto__||o(b)).apply(this,arguments))}return n(b,[{key:"getImageForSize",value:function a(b){var c,d,e,f,g;for(c=0;c=b));c++);return e=d.imageOffsets,f=e[this.id],g=e[this.id+1],f===g?null:(this.MC.stream.pos=f,Zf.decode(this.MC.stream,{buflen:g-f}))}},{key:"render",value:function a(c,d){var e,f=this.getImageForSize(d);null!=f&&(e=d/this.MC.unitsPerEm,c.image(f.data,{height:d,x:f.originX,y:(this.bbox.minY-f.originY)*e})),this.MC.sbix.flags.renderOutlines&&u(b.prototype.__proto__||o(b.prototype),"render",this).call(this,c,d)}}]),b}(Xf),_f=function a(b,c){m(this,a),this.glyph=b,this.color=c},ag=function(a){q(b,a);function b(){return m(this,b),p(this,(b.__proto__||o(b)).apply(this,arguments))}return n(b,[{key:"_getBBox",value:function a(){var b,c,d,e=new Id;for(b=0;b>1,c=j.baseGlyphRecord[b],this.idc.gid)){d=c;break}k=b+1}if(null==d)return e=this.MC._getBaseGlyph(this.id),f={red:0,green:0,blue:0,alpha:255},[new _f(e,f)];for(g=[],h=d.firstLayerIndex;h=1&&i[c]=d.glyphCount)&&(e=d.offsets[b],e!==d.offsets[b+1])))for(f=this.font.stream,f.pos=e,g=f.readUInt16BE(),h=e+f.readUInt16BE(),g&bg&&(i=f.pos,f.pos=h,j=this.decodePoints(),f.pos=i),g&=cg,k=0;k=d.globalCoordCount)throw Error("Invalid gvar table");n=d.globalCoords[m&gg]}if(m&eg){for(p=[],q=0;qj)throw Error("Bad point run length");for(f=d&hg?i.readUInt16:i.readUInt8,g=0,h=0;hb)throw Error("Bad delta run length");if(c&jg)h+=d;else for(e=c&kg?g.readInt16BE:g.readInt8,f=0;f0||g[f]>0&&c[f]<0)return 0;if(0===(b&eg))i*=Math.abs(g[f]);else{if(g[f]e[f])return 0;i=g[f]g)){for(i=e,j=e,e++;e<=g;)d[e]&&(this.deltaInterpolate(j+1,e-1,j,e,c,b),j=e),e++;j===i?this.deltaShift(f,g,j,c,b):(this.deltaInterpolate(j+1,g,j,i,c,b),i>0&&this.deltaInterpolate(f,i-1,j,i,c,b)),e=g+1}}}},{key:"deltaInterpolate",value:function a(b,c,d,e,f,g){var h,i,j,k,l,m,n,o,p,q,r;if(!(b>c))for(h=["x","y"],i=0;if[e][j]&&(k=d,d=e,e=k),l=f[d][j],m=f[e][j],n=g[d][j],o=g[e][j],p=l===m?0:(o-n)/(m-l),q=b;q<=c;q++)r=f[q][j],r<=l?r+=n-l:r>=m?r+=o-m:r=n+(r-l)*p,g[q][j]=r}},{key:"deltaShift",value:function a(b,c,d,e,f){var g,h=f[d].x-e[d].x,i=f[d].y-e[d].y;if(0!==h||0!==i)for(g=b;g<=c;g++)g!==d&&(f[g].x+=h,f[g].y+=i)}}]),a}(),ng=function(){function a(b){m(this,a),this.font=b,this.glyphs=[],this.mapping={},this.includeGlyph(0)}return n(a,[{key:"includeGlyph",value:function a(b){return"object"===(void 0===b?"undefined":k(b))&&(b=b.id),null==this.mapping[b]&&(this.glyphs.push(b),this.mapping[b]=this.glyphs.length-1),this.mapping[b]}},{key:"encodeStream",value:function a(){var b=this,d=new e.EncodeStream;return c.nextTick(function(){return b.encode(d),d.end()}),d}}]), a}(),og=function(a){q(b,a);function b(){return m(this,b),p(this,(b.__proto__||o(b)).apply(this,arguments))}return n(b,[{key:"_addGlyph",value:function a(b){var c,e,f,h,i,j,k,l=this.font.getGlyph(b)._decode(),m=this.font.loca.offsets[b],n=this.font.loca.offsets[b+1],o=this.font._getTableStream("glyf");if(o.pos+=m,c=o.readBuffer(n-m),l&&l.numberOfContours<0){c=new d(c),e=!0,f=!1,h=void 0;try{for(i=g(l.components);!(e=(j=i.next()).done);e=!0)k=j.value,b=this.includeGlyph(k.glyphID),c.writeUInt16BE(b,k.pos)}catch(a){f=!0,h=a}finally{try{!e&&i.return&&i.return()}finally{if(f)throw h}}}return this.glyf.push(c),this.loca.offsets.push(this.offset),b255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},d=v({},this.cff.topDict),d.Private=null,d.charset=c,d.Encoding=null,d.CharStrings=this.charstrings,e=["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"],f=0;f0&&l(this,c,{get:this._getTable.bind(this,d)});e&&(this.joa=new mg(this,e))}return n(a,[{key:"_getTable",value:function a(b){if(!(b.tag in this.noa))try{this.noa[b.tag]=this._decodeTable(b)}catch(a){D.logErrors&&(console.error("Error decoding table "+b.tag),console.error(a.stack))}return this.noa[b.tag]}},{key:"_getTableStream",value:function a(b){var c=this.directory.tables[b];return c?(this.stream.pos=c.offset,this.stream):null}},{key:"_decodeDirectory",value:function a(){return this.directory=Ed.decode(this.stream,{eoa:0})}},{key:"_decodeTable",value:function a(b){var c=this.stream.pos,d=this._getTableStream(b.tag),e=Cd[b.tag].decode(d,this,b.length);return this.stream.pos=c,e}},{key:"getName",value:function a(b){var c=arguments.length<=1||void 0===arguments[1]?"English":arguments[1],d=this.name.records[b];return d?d[c]:null}},{key:"hasGlyphForCodePoint",value:function a(b){return!!this._cmapProcessor.lookup(b)}},{key:"glyphForCodePoint",value:function a(b){return this.getGlyph(this._cmapProcessor.lookup(b),[b])}},{key:"glyphsForString",value:function a(b){for(var c,d,e=[],f=b.length,g=0;g>>6&3},transformed:function a(b){return"glyf"===b.tag||"loca"===b.tag?0===b.transformVersion:0!==b.transformVersion},transformLength:new e.Optional(wg,function(a){return a.transformed})}),zg=new e.Struct({tag:new e.String(4),flavor:e.uint32,length:e.uint32,numTables:e.uint16,reserved:new e.Reserved(e.uint16),totalSfntSize:e.uint32,totalCompressedSize:e.uint32,majorVersion:e.uint16,minorVersion:e.uint16,metaOffset:e.uint32,metaLength:e.uint32,metaOrigLength:e.uint32,privOffset:e.uint32,privLength:e.uint32,tables:new e.Array(yg,"numTables")}),zg.process=function(){var a,b,c={};for(a=0;a0){for(g=[],h=0,i=0;i>7),g&=127,g<10?(e=0,f=qh(g,((14&g)<<7)+b.readUInt8())):g<20?(e=qh(g,((g-10&14)<<7)+b.readUInt8()),f=0):g<84?(i=g-20,j=b.readUInt8(),e=qh(g,1+(48&i)+(j>>4)),f=qh(g>>1,1+((12&i)<<2)+(15&j))):g<120?(i=g-84,e=qh(g,1+(i/12<<8)+b.readUInt8()),f=qh(g>>1,1+(i%12>>2<<8)+b.readUInt8())):g<124?(j=b.readUInt8(),k=b.readUInt8(),e=qh(g,(j<<4)+(k>>4)),f=qh(g>>1,((15&k)<<8)+b.readUInt8())):(e=qh(g,b.readUInt16BE()),f=qh(g>>1,b.readUInt16BE())),m+=e,l+=f,n.push(new Vf(h,(!1),m,l));return n}Hg=new e.VersionedStruct(e.uint32,{65536:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts")},131072:{numFonts:e.uint32,offsets:new e.Array(e.uint32,"numFonts"),dsigTag:e.uint32,dsigLength:e.uint32,dsigOffset:e.uint32}}),Ig=function(){n(a,null,[{key:"probe",value:function a(b){return"ttcf"===b.toString("ascii",0,4)}}]);function a(b){if(m(this,a),this.stream=b,"ttcf"!==b.readString(4))throw Error("Not a TrueType collection");this.header=Hg.decode(b)}return n(a,[{key:"getFont",value:function a(b){var c,d,f,h,i,j=!0,k=!1,l=void 0;try{for(c=g(this.header.offsets);!(j=(d=c.next()).done);j=!0)if(f=d.value,h=new e.DecodeStream(this.stream.buffer),h.pos=f,i=new rg(h),i.postscriptName===b)return i}catch(a){k=!0,l=a}finally{try{!j&&c.return&&c.return()}finally{if(k)throw l}}return null}},{key:"fonts",get:function a(){var b,c,d,f,h=[],i=!0,j=!1,k=void 0;try{for(b=g(this.header.offsets);!(i=(c=b.next()).done);i=!0)d=c.value,f=new e.DecodeStream(this.stream.buffer),f.pos=d,h.push(new rg(f))}catch(a){j=!0,k=a}finally{try{!i&&b.return&&b.return()}finally{if(j)throw k}}return h}}]),a}(),Jg=new e.String(e.uint8),Kg=new e.Struct({len:e.uint32,buf:new e.Buffer("len")}),Lg=new e.Struct({id:e.uint16,nameOffset:e.int16,attr:e.uint8,dataOffset:e.uint24,handle:e.uint32}),Mg=new e.Struct({name:new e.String(4),maxTypeIndex:e.uint16,refList:new e.Pointer(e.uint16,new e.Array(Lg,function(a){return a.maxTypeIndex+1}),{type:"parent"})}),Ng=new e.Struct({length:e.uint16,types:new e.Array(Mg,function(a){return a.length+1})}),Og=new e.Struct({reserved:new e.Reserved(e.uint8,24),typeList:new e.Pointer(e.uint16,Ng),nameListOffset:new e.Pointer(e.uint16,"void")}),Pg=new e.Struct({dataOffset:e.uint32,map:new e.Pointer(e.uint32,Og),dataLength:e.uint32,mapLength:e.uint32}),Qg=function(){n(a,null,[{key:"probe",value:function a(b){var c,d,f,h,i,j,k,l=new e.DecodeStream(b);try{c=Pg.decode(l)}catch(a){return!1}d=!0,f=!1,h=void 0;try{for(i=g(c.map.typeList.types);!(d=(j=i.next()).done);d=!0)if(k=j.value,"sfnt"===k.name)return!0}catch(a){f=!0,h=a}finally{try{!d&&i.return&&i.return()}finally{if(f)throw h}}return!1}}]);function a(b){var c,d,e,f,h,i,j,k,l,n,o,p;m(this,a),this.stream=b,this.header=Pg.decode(this.stream),c=!0,d=!1,e=void 0;try{for(f=g(this.header.map.typeList.types);!(c=(h=f.next()).done);c=!0){i=h.value,j=!0,k=!1,l=void 0;try{for(n=g(i.refList);!(j=(o=n.next()).done);j=!0)p=o.value,p.nameOffset>=0?(this.stream.pos=p.nameOffset+this.header.map.nameListOffset,p.name=Jg.decode(this.stream)):p.name=null}catch(a){k=!0,l=a}finally{try{!j&&n.return&&n.return()}finally{if(k)throw l}}"sfnt"===i.name&&(this.sfnt=i)}}catch(a){d=!0,e=a}finally{try{!c&&f.return&&f.return()}finally{if(d)throw e}}}return n(a,[{key:"getFont",value:function a(b){var c,d,f,h,i,j,k,l,m;if(!this.sfnt)return null;c=!0,d=!1,f=void 0;try{for(h=g(this.sfnt.refList);!(c=(i=h.next()).done);c=!0)if(j=i.value,k=this.header.dataOffset+j.dataOffset+4,l=new e.DecodeStream(this.stream.buffer.slice(k)),m=new rg(l),m.postscriptName===b)return m}catch(a){d=!0,f=a}finally{try{!c&&h.return&&h.return()}finally{if(d)throw f}}return null}},{key:"fonts",get:function a(){var b,c,d,f,h,i=[],j=!0,k=!1,l=void 0;try{for(b=g(this.sfnt.refList);!(j=(c=b.next()).done);j=!0)d=c.value,f=this.header.dataOffset+d.dataOffset+4,h=new e.DecodeStream(this.stream.buffer.slice(f)),i.push(new rg(h))}catch(a){k=!0,l=a}finally{try{!j&&b.return&&b.return()}finally{if(k)throw l}}return i}}]),a}(),D.registerFormat(rg),D.registerFormat(ug),D.registerFormat(Ag),D.registerFormat(Ig),D.registerFormat(Qg),b.exports=D}).call(this,a("_process"),a("buffer").Buffer)},{_process:188,"babel-runtime/core-js/get-iterator":24,"babel-runtime/core-js/object/assign":26,"babel-runtime/core-js/object/define-properties":28,"babel-runtime/core-js/object/define-property":29,"babel-runtime/core-js/object/freeze":30,"babel-runtime/core-js/object/get-own-property-descriptor":31,"babel-runtime/core-js/object/get-prototype-of":32,"babel-runtime/core-js/object/keys":33,"babel-runtime/helpers/classCallCheck":37,"babel-runtime/helpers/createClass":38,"babel-runtime/helpers/get":39,"babel-runtime/helpers/inherits":40,"babel-runtime/helpers/possibleConstructorReturn":41,"babel-runtime/helpers/slicedToArray":42,"babel-runtime/helpers/toConsumableArray":43,"babel-runtime/helpers/typeof":44,"brotli/decompress":55,buffer:60,clone:61,"deep-equal":161,restructure:199,"restructure/src/utils":215,"tiny-inflate":218,"unicode-properties":220,"unicode-trie":221}],166:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],167:[function(a,b,c){"function"==typeof Object.create?b.exports=function a(b,c){b.super_=c,b.prototype=Object.create(c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function a(b,c){b.super_=c;var d=function(){};d.prototype=c.prototype,b.prototype=new d,b.prototype.constructor=b}},{}],168:[function(a,b,c){b.exports=function(a){return null!=a&&(d(a)||e(a)||!!a.Q6)};function d(a){return!!a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}function e(a){return"function"==typeof a.readFloatLE&&"function"==typeof a.slice&&d(a.slice(0,0))}},{}],169:[function(a,b,c){var d={}.toString;b.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)}},{}],170:[function(a,b,c){var d,e=[].slice;d=function(){var a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q;m=11,o=5,n=m-o,l=65536>>m,f=1<>o,j=1024>>o,g=k+j,q=g,p=32,d=q+p,b=1<1114111?this.errorValue:a<55296||a>56319&&a<=65535?(e=(this.data[a>>o]<>o)]<>m)],e=this.data[e+(a>>o&h)],e=(e<=this.string.length)return this.lastPos>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=d},{}],177:[function(a,b,c){"use strict";b.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],178:[function(a,b,c){"use strict";function d(){var a,b,c,d=[];for(b=0;b<256;b++){for(a=b,c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;d[b]=a}return d}var e=d();function f(a,b,c,d){var f,g=e,h=d+c;for(a^=-1,f=d;f>>8^g[255&(a^b[f])];return a^-1}b.exports=f},{}],179:[function(a,b,c){"use strict";var d,e=a("../utils/common"),f=a("./trees"),g=a("./adler32"),h=a("./crc32"),i=a("./messages"),j=0,k=1,l=3,m=4,n=5,o=0,p=1,q=-2,r=-3,s=-5,t=-1,u=1,v=2,w=3,x=4,y=0,z=2,A=8,B=9,C=15,D=8,E=29,F=256,G=F+1+E,H=30,I=19,J=2*G+1,K=15,L=3,M=258,N=M+L+1,O=32,P=42,Q=69,R=73,S=91,T=103,U=113,V=666,W=1,X=2,Y=3,Z=4,$=3;function _(a,b){return a.msg=i[b],b}function aa(a){return(a<<1)-(a>4?9:0)}function ba(a){for(var b=a.length;--b>=0;)a[b]=0}function ca(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(e.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function da(a,b){f.K6(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,ca(a.strm)}function ea(a,b){a.pending_buf[a.pending++]=b}function fa(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function ga(a,b,c,d){var f=a.avail_in;return f>d&&(f=d),0===f?0:(a.avail_in-=f,e.arraySet(b,a.input,a.next_in,f,c),1===a.state.wrap?a.adler=g(a.adler,b,f,c):2===a.state.wrap&&(a.adler=h(a.adler,b,f,c)),a.next_in+=f,a.total_in+=f,f)}function ha(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-N?a.strstart-(a.w_size-N):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+M,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&fg){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!==--e);return g<=a.lookahead?g:a.lookahead}function ia(a){var b,c,d,f,g,h=a.w_size;do{if(f=a.window_size-a.lookahead-a.strstart,a.strstart>=h+(h-N)){e.arraySet(a.window,a.window,h,h,0),a.match_start-=h,a.strstart-=h,a.block_start-=h,c=a.hash_size,b=c;do d=a.head[--b],a.head[b]=d>=h?d-h:0;while(--c);c=h,b=c;do d=a.prev[--b],a.prev[b]=d>=h?d-h:0;while(--c);f+=h}if(0===a.strm.avail_in)break;if(c=ga(a.strm,a.window,a.strstart+a.lookahead,f),a.lookahead+=c,a.lookahead+a.insert>=L)for(g=a.strstart-a.insert,a.ins_h=a.window[g],a.ins_h=(a.ins_h<a.pending_buf_size-5&&(d=a.pending_buf_size-5);;){if(a.lookahead<=1){if(ia(a),0===a.lookahead&&b===j)return W;if(0===a.lookahead)break}if(a.strstart+=a.lookahead,a.lookahead=0,c=a.block_start+d,(0===a.strstart||a.strstart>=c)&&(a.lookahead=a.strstart-c,a.strstart=c,da(a,!1),0===a.strm.avail_out))return W;if(a.strstart-a.block_start>=a.w_size-N&&(da(a,!1),0===a.strm.avail_out))return W}return a.insert=0,b===m?(da(a,!0),0===a.strm.avail_out?Y:Z):a.strstart>a.block_start&&(da(a,!1),0===a.strm.avail_out)?W:W}function ka(a,b){for(var c,d;;){if(a.lookahead=L&&(a.ins_h=(a.ins_h<=L)if(d=f.L6(a,a.strstart-a.match_start,a.match_length-L),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=L){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<=L&&(a.ins_h=(a.ins_h<4096)&&(a.match_length=L-1)),a.prev_length>=L&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-L,d=f.L6(a,a.strstart-1-a.prev_match,a.prev_length-L),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<=L&&a.strstart>0&&(e=a.strstart-1,d=h[e],d===h[++e]&&d===h[++e]&&d===h[++e])){g=a.strstart+M;do;while(d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&ea.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=L?(c=f.L6(a,1,a.match_length-L),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=f.L6(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(da(a,!1),0===a.strm.avail_out))return W}return a.insert=0,b===m?(da(a,!0),0===a.strm.avail_out?Y:Z):a.last_lit&&(da(a,!1),0===a.strm.avail_out)?W:X}function na(a,b){for(var c;;){if(0===a.lookahead&&(ia(a),0===a.lookahead)){if(b===j)return W;break}if(a.match_length=0,c=f.L6(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(da(a,!1),0===a.strm.avail_out))return W}return a.insert=0,b===m?(da(a,!0),0===a.strm.avail_out?Y:Z):a.last_lit&&(da(a,!1),0===a.strm.avail_out)?W:X}function oa(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e}d=[new oa(0,0,0,0,ja),new oa(4,4,8,4,ka),new oa(4,5,16,8,ka),new oa(4,6,32,32,ka),new oa(4,4,16,16,la),new oa(8,16,32,32,la),new oa(8,16,128,128,la),new oa(8,32,128,256,la),new oa(32,128,258,1024,la),new oa(32,258,258,4096,la)];function pa(a){a.window_size=2*a.w_size,ba(a.head),a.max_lazy_match=d[a.level].max_lazy,a.good_match=d[a.level].good_length,a.nice_match=d[a.level].nice_length,a.max_chain_length=d[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=L-1,a.match_available=0,a.ins_h=0}function qa(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(2*J),this.dyn_dtree=new e.Buf16(2*(2*H+1)),this.bl_tree=new e.Buf16(2*(2*I+1)),ba(this.dyn_ltree),ba(this.dyn_dtree),ba(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(K+1),this.heap=new e.Buf16(2*G+1),ba(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*G+1),ba(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ra(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=z,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?P:U,a.adler=2===b.wrap?0:1,b.last_flush=j,f.M6(b),o):_(a,q)}function sa(a){var b=ra(a);return b===o&&pa(a.state),b}function ta(a,b){return a&&a.state?2!==a.state.wrap?q:(a.state.gzhead=b,o):q}function ua(a,b,c,d,f,g){var h,i;return a?(h=1,b===t&&(b=6),d<0?(h=0,d=-d):d>15&&(h=2,d-=16),f<1||f>B||c!==A||d<8||d>15||b<0||b>9||g<0||g>x?_(a,q):(8===d&&(d=9),i=new qa,a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=d,i.w_size=1<n||b<0)return a?_(a,q):q;if(e=a.state,!a.output||!a.input&&0!==a.avail_in||e.status===V&&b!==m)return _(a,0===a.avail_out?s:q);if(e.strm=a,c=e.last_flush,e.last_flush=b,e.status===P&&(2===e.wrap?(a.adler=0,ea(e,31),ea(e,139),ea(e,8),e.gzhead?(ea(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),ea(e,255&e.gzhead.time),ea(e,e.gzhead.time>>8&255),ea(e,e.gzhead.time>>16&255),ea(e,e.gzhead.time>>24&255),ea(e,9===e.level?2:e.strategy>=v||e.level<2?4:0),ea(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(ea(e,255&e.gzhead.extra.length),ea(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(a.adler=h(a.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=Q):(ea(e,0),ea(e,0),ea(e,0),ea(e,0),ea(e,0),ea(e,9===e.level?2:e.strategy>=v||e.level<2?4:0),ea(e,$),e.status=U)):(r=A+(e.w_bits-8<<4)<<8,t=-1,t=e.strategy>=v||e.level<2?0:e.level<6?1:6===e.level?2:3,r|=t<<6,0!==e.strstart&&(r|=O),r+=31-r%31,e.status=U,fa(e,r),0!==e.strstart&&(fa(e,a.adler>>>16),fa(e,65535&a.adler)),a.adler=1)),e.status===Q)if(e.gzhead.extra){for(g=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),ca(a),g=e.pending,e.pending!==e.pending_buf_size));)ea(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=R)}else e.status=R;if(e.status===R)if(e.gzhead.name){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),ca(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindexg&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.gzindex=0,e.status=S)}else e.status=S;if(e.status===S)if(e.gzhead.comment){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),ca(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindexg&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.status=T)}else e.status=T;if(e.status===T&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&ca(a),e.pending+2<=e.pending_buf_size&&(ea(e,255&a.adler),ea(e,a.adler>>8&255),a.adler=0,e.status=U)):e.status=U),0!==e.pending){if(ca(a),0===a.avail_out)return e.last_flush=-1,o}else if(0===a.avail_in&&aa(b)<=aa(c)&&b!==m)return _(a,s);if(e.status===V&&0!==a.avail_in)return _(a,s);if(0!==a.avail_in||0!==e.lookahead||b!==j&&e.status!==V){if(u=e.strategy===v?na(e,b):e.strategy===w?ma(e,b):d[e.level].func(e,b),u!==Y&&u!==Z||(e.status=V),u===W||u===Y)return 0===a.avail_out&&(e.last_flush=-1),o;if(u===X&&(b===k?f.N6(e):b!==n&&(f.O6(e,0,0,!1),b===l&&(ba(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),ca(a),0===a.avail_out))return e.last_flush=-1,o}return b!==m?o:e.wrap<=0?p:(2===e.wrap?(ea(e,255&a.adler),ea(e,a.adler>>8&255),ea(e,a.adler>>16&255),ea(e,a.adler>>24&255),ea(e,255&a.total_in),ea(e,a.total_in>>8&255),ea(e,a.total_in>>16&255),ea(e,a.total_in>>24&255)):(fa(e,a.adler>>>16),fa(e,65535&a.adler)),ca(a),e.wrap>0&&(e.wrap=-e.wrap),0!==e.pending?o:p)}function xa(a){var b;return a&&a.state?(b=a.state.status,b!==P&&b!==Q&&b!==R&&b!==S&&b!==T&&b!==U&&b!==V?_(a,q):(a.state=null,b===U?_(a,r):o)):q}function ya(a,b){var c,d,f,h,i,j,k,l,m=b.length;if(!a||!a.state)return q;if(c=a.state,h=c.wrap,2===h||1===h&&c.status!==P||c.lookahead)return q;for(1===h&&(a.adler=g(a.adler,b,m,0)),c.wrap=0,m>=c.w_size&&(0===h&&(ba(c.head),c.strstart=0,c.block_start=0,c.insert=0),l=new e.Buf8(c.w_size),e.arraySet(l,b,m-c.w_size,c.w_size,0),b=l,m=c.w_size),i=a.avail_in,j=a.next_in,k=a.input,a.avail_in=m,a.next_in=0,a.input=b,ia(c);c.lookahead>=L;){d=c.strstart,f=c.lookahead-(L-1);do c.ins_h=(c.ins_h<>>24,y>>>=g,z-=g,g=f>>>16&255,0===g)q[p++]=65535&f;else{if(!(16&g)){if(0===(64&g)){f=A[(65535&f)+(y&(1<>>=g,z-=g),z<15&&(y+=n[m++]<>>24,y>>>=g,z-=g,g=f>>>16&255,!(16&g)){if(0===(64&g)){f=B[(65535&f)+(y&(1<t){b.msg="invalid distance too far back",l.mode=d;break a}if(y>>>=g,z-=g,g=p-r,i>g){if(g=i-g,g>v&&l.sane){b.msg="invalid distance too far back",l.mode=d;break a}if(j=0,k=x,0===w){if(j+=u-g,g2;)q[p++]=k[j++],q[p++]=k[j++],q[p++]=k[j++],h-=3;h&&(q[p++]=k[j++],h>1&&(q[p++]=k[j++]))}else{j=p-i;do q[p++]=q[j++],q[p++]=q[j++],q[p++]=q[j++],h-=3;while(h>2);h&&(q[p++]=q[j++],h>1&&(q[p++]=q[j++]))}break}}break}}while(m>3,m-=h,z-=h<<3,y&=(1<>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function ia(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ja(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=z,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new g.Buf32(da),b.distcode=b.distdyn=new g.Buf32(ea),b.sane=1,b.back=-1,r):u}function ka(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,ja(a)):u}function la(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15)?u:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,ka(a))):u}function ma(a,b){var c,d;return a?(d=new ia,a.state=d,d.window=null,c=la(a,b),c!==r&&(a.state=null),c):u}function na(a){return ma(a,ga)}d=!0;function oa(a){if(d){var b;for(e=new g.Buf32(512),f=new g.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(k(m,a.lens,0,288,e,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;k(n,a.lens,0,32,f,0,a.work,{bits:5}),d=!1}a.lencode=e,a.lenbits=9,a.distcode=f,a.distbits=5}function pa(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<=f.wsize?(g.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>d&&(e=d),g.arraySet(f.window,b,c-d,e,f.wnext),d-=e,d?(g.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whave>>8&255,c.check=i(c.check,Ba,2,0),ga=0,ia=0,c.mode=A;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&ga)<<8)+(ga>>8))%31){a.msg="incorrect header check",c.mode=aa;break}if((15&ga)!==y){a.msg="unknown compression method",c.mode=aa;break}if(ga>>>=4,ia-=4,wa=(15&ga)+8,0===c.wbits)c.wbits=wa;else if(wa>c.wbits){a.msg="invalid window size",c.mode=aa;break}c.dmax=1<>8&1),512&c.flags&&(Ba[0]=255&ga,Ba[1]=ga>>>8&255,c.check=i(c.check,Ba,2,0)),ga=0,ia=0,c.mode=B;case B:for(;ia<32;){if(0===ea)break a;ea--,ga+=d[f++]<>>8&255,Ba[2]=ga>>>16&255,Ba[3]=ga>>>24&255,c.check=i(c.check,Ba,4,0)),ga=0,ia=0,c.mode=C;case C:for(;ia<16;){if(0===ea)break a;ea--,ga+=d[f++]<>8),512&c.flags&&(Ba[0]=255&ga,Ba[1]=ga>>>8&255,c.check=i(c.check,Ba,2,0)),ga=0,ia=0,c.mode=D;case D:if(1024&c.flags){for(;ia<16;){if(0===ea)break a;ea--,ga+=d[f++]<>>8&255,c.check=i(c.check,Ba,2,0)),ga=0,ia=0}else c.head&&(c.head.extra=null);c.mode=E;case E:if(1024&c.flags&&(la=c.length,la>ea&&(la=ea),la&&(c.head&&(wa=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),g.arraySet(c.head.extra,d,f,la,wa)),512&c.flags&&(c.check=i(c.check,d,la,f)),ea-=la,f+=la,c.length-=la),c.length))break a;c.length=0,c.mode=F;case F:if(2048&c.flags){if(0===ea)break a;la=0;do wa=d[f+la++],c.head&&wa&&c.length<65536&&(c.head.name+=String.fromCharCode(wa));while(wa&&la>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=K;break;case I:for(;ia<32;){if(0===ea)break a;ea--,ga+=d[f++]<>>=7&ia,ia-=7&ia,c.mode=Z;break}for(;ia<3;){if(0===ea)break a;ea--,ga+=d[f++]<>>=1,ia-=1,3&ga){case 0:c.mode=M;break;case 1:if(oa(c),c.mode=S,b===q){ga>>>=2,ia-=2;break a}break;case 2:c.mode=P;break;case 3:a.msg="invalid block type",c.mode=aa}ga>>>=2,ia-=2;break;case M:for(ga>>>=7&ia,ia-=7&ia;ia<32;){if(0===ea)break a;ea--,ga+=d[f++]<>>16^65535)){a.msg="invalid stored block lengths",c.mode=aa;break}if(c.length=65535&ga,ga=0,ia=0,c.mode=N,b===q)break a;case N:c.mode=O;case O:if(la=c.length){if(la>ea&&(la=ea),la>fa&&(la=fa),0===la)break a;g.arraySet(e,d,f,la,da),ea-=la,f+=la,fa-=la,da+=la,c.length-=la;break}c.mode=K;break;case P:for(;ia<14;){if(0===ea)break a;ea--,ga+=d[f++]<>>=5,ia-=5,c.ndist=(31&ga)+1,ga>>>=5,ia-=5,c.ncode=(15&ga)+4,ga>>>=4,ia-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=aa;break}c.have=0,c.mode=Q;case Q:for(;c.have>>=3,ia-=3}for(;c.have<19;)c.lens[Ca[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,ya={bits:c.lenbits},xa=k(l,c.lens,0,19,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid code lengths set",c.mode=aa;break}c.have=0,c.mode=R;case R:for(;c.have>>24,ra=Aa>>>16&255,sa=65535&Aa,!(qa<=ia);){if(0===ea)break a;ea--,ga+=d[f++]<>>=qa,ia-=qa,c.lens[c.have++]=sa;else{if(16===sa){for(za=qa+2;ia>>=qa,ia-=qa,0===c.have){a.msg="invalid bit length repeat",c.mode=aa;break}wa=c.lens[c.have-1],la=3+(3&ga),ga>>>=2,ia-=2}else if(17===sa){for(za=qa+3;ia>>=qa,ia-=qa,wa=0,la=3+(7&ga),ga>>>=3,ia-=3}else{for(za=qa+7;ia>>=qa,ia-=qa,wa=0,la=11+(127&ga),ga>>>=7,ia-=7}if(c.have+la>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=aa;break}for(;la--;)c.lens[c.have++]=wa}}if(c.mode===aa)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=aa;break}if(c.lenbits=9,ya={bits:c.lenbits},xa=k(m,c.lens,0,c.nlen,c.lencode,0,c.work,ya),c.lenbits=ya.bits,xa){a.msg="invalid literal/lengths set",c.mode=aa;break}if(c.distbits=6,c.distcode=c.distdyn,ya={bits:c.distbits},xa=k(n,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,ya),c.distbits=ya.bits,xa){a.msg="invalid distances set",c.mode=aa;break}if(c.mode=S,b===q)break a;case S:c.mode=T;case T:if(ea>=6&&fa>=258){a.next_out=da,a.avail_out=fa,a.next_in=f,a.avail_in=ea,c.hold=ga,c.bits=ia,j(a,ka),da=a.next_out,e=a.output,fa=a.avail_out,f=a.next_in,d=a.input,ea=a.avail_in,ga=c.hold,ia=c.bits,c.mode===K&&(c.back=-1);break}for(c.back=0;Aa=c.lencode[ga&(1<>>24,ra=Aa>>>16&255,sa=65535&Aa,!(qa<=ia);){if(0===ea)break a;ea--,ga+=d[f++]<>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(ta+qa<=ia);){if(0===ea)break a;ea--,ga+=d[f++]<>>=ta,ia-=ta,c.back+=ta}if(ga>>>=qa,ia-=qa,c.back+=qa,c.length=sa,0===ra){c.mode=Y;break}if(32&ra){c.back=-1,c.mode=K;break}if(64&ra){a.msg="invalid literal/length code",c.mode=aa;break}c.extra=15&ra,c.mode=U;case U:if(c.extra){for(za=c.extra;ia>>=c.extra,ia-=c.extra,c.back+=c.extra} c.was=c.length,c.mode=V;case V:for(;Aa=c.distcode[ga&(1<>>24,ra=Aa>>>16&255,sa=65535&Aa,!(qa<=ia);){if(0===ea)break a;ea--,ga+=d[f++]<>ta)],qa=Aa>>>24,ra=Aa>>>16&255,sa=65535&Aa,!(ta+qa<=ia);){if(0===ea)break a;ea--,ga+=d[f++]<>>=ta,ia-=ta,c.back+=ta}if(ga>>>=qa,ia-=qa,c.back+=qa,64&ra){a.msg="invalid distance code",c.mode=aa;break}c.offset=sa,c.extra=15&ra,c.mode=W;case W:if(c.extra){for(za=c.extra;ia>>=c.extra,ia-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=aa;break}c.mode=X;case X:if(0===fa)break a;if(la=ka-fa,c.offset>la){if(la=c.offset-la,la>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=aa;break}la>c.wnext?(la-=c.wnext,ma=c.wsize-la):ma=c.wnext-la,la>c.length&&(la=c.length),na=c.window}else na=e,ma=da-c.offset,la=c.length;la>fa&&(la=fa),fa-=la,c.length-=la;do e[da++]=na[ma++];while(--la);0===c.length&&(c.mode=T);break;case Y:if(0===fa)break a;e[da++]=c.length,fa--,c.mode=T;break;case Z:if(c.wrap){for(;ia<32;){if(0===ea)break a;ea--,ga|=d[f++]<=1&&0===R[I];I--);if(J>I&&(J=I),0===I)return q[r++]=20971520,q[r++]=20971520,t.bits=1,0;for(H=1;H0&&(b===h||1!==I))return-1;for(S[1]=0,F=1;Ff||b===j&&N>g)return 1;for(D=0;;){D++,A=F-L,s[G]z?(B=T[U+s[G]],C=P[Q+s[G]]):(B=96,C=0),u=1<>L)+v]=A<<24|B<<16|C|0;while(0!==v);for(u=1<>=1;if(0!==u?(O&=u-1,O+=u):O=0,G++,0===--R[F]){if(F===I)break;F=c[o+s[G]]}if(F>J&&(O&x)!==w){for(0===L&&(L=J),y+=H,K=F-L,M=1<f||b===j&&N>g)return 1;w=O&x,q[w]=J<<24|K<<16|y-r|0}}return 0!==O&&(q[y+O]=F-L<<24|64<<16|0),t.bits=J,0}},{"../utils/common":175}],183:[function(a,b,c){"use strict";b.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],184:[function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K=a("../utils/common"),L=4,M=0,N=1,O=2;function P(a){for(var b=a.length;--b>=0;)a[b]=0}d=0,e=1,f=2,g=3,h=258,i=29,j=256,k=j+1+i,l=30,m=19,n=2*k+1,o=15,p=16,q=7,r=256,s=16,t=17,u=18,v=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=512,A=Array(2*(k+2)),P(A),B=Array(2*l),P(B),C=Array(z),P(C),D=Array(h-g+1),P(D),E=Array(i),P(E),F=Array(l),P(F);function Q(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function R(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function S(a){return a<256?C[a]:C[256+(a>>>7)]}function T(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function U(a,b,c){a.bi_valid>p-c?(a.bi_buf|=b<>p-a.bi_valid,a.bi_valid+=c-p):(a.bi_buf|=b<>>=1,c<<=1;while(--b>0);return c>>>1}function X(a){16===a.bi_valid?(T(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function Y(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,p=b.stat_desc.extra_base,q=b.stat_desc.max_length,r=0;for(f=0;f<=o;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;cq&&(f=q,r++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=p&&(g=m[d-p]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==r){do{for(f=q-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[q]--,r-=2}while(r>0);for(f=q;0!==f;f--)for(d=a.bl_count[f];0!==d;)e=a.heap[--c],e>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function Z(a,b,c){var d,e,f,g=Array(o+1),h=0;for(d=1;d<=o;d++)g[d]=h=h+c[d-1]<<1;for(e=0;e<=b;e++)f=a[2*e+1],0!==f&&(a[2*e]=W(g[f]++,f))}function $(){var a,b,c,d,e=Array(o+1),f=0;for(c=0;c>=7;c8?T(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function ba(a,b,c,d){aa(a),d&&(T(a,c),T(a,~c)),K.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function ca(a,b,c,d){var e=2*b,f=2*c;return a[e]>1;c>=1;c--)da(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],da(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,da(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],Y(a,b),Z(f,j,a.bl_count)}function ga(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;d<=c;d++)e=g,g=b[2*(d+1)+1],++h=3&&0===a.bl_tree[2*y[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function ja(a,b,c,d){var e;for(U(a,b-257,5),U(a,c-1,5),U(a,d-4,4),e=0;e>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return M;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return N;for(b=32;b0?(a.strm.data_type===O&&(a.strm.data_type=ka(a)),fa(a,a.l_desc),fa(a,a.d_desc),i=ia(a),g=a.opt_len+3+7>>>3,h=a.static_len+3+7>>>3,h<=g&&(g=h)):g=h=c+5,c+4<=g&&b!==-1?ma(a,b,c,d):a.strategy===L||h===g?(U(a,(e<<1)+(d?1:0),3),ea(a,A,B)):(U(a,(f<<1)+(d?1:0),3),ja(a,a.l_desc.max_code+1,a.d_desc.max_code+1,i+1),ea(a,a.dyn_ltree,a.dyn_dtree)),_(a),d&&aa(a)}function pa(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(D[c]+j+1)]++,a.dyn_dtree[2*S(b)]++),a.last_lit===a.lit_bufsize-1}c.M6=la,c.O6=ma,c.K6=oa,c.L6=pa,c.N6=na},{"../utils/common":175}],185:[function(a,b,c){"use strict";function d(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}b.exports=d},{}],186:[function(a,b,c){(function(c){(function(){var d,e,f;e=a("fs"),f=a("zlib"),b.exports=d=function(){a.decode=function(b,c){return e.readFile(b,function(b,d){var e;return e=new a(d),e.decode(function(a){return c(a)})})},a.load=function(b){var c;return c=e.readFileSync(b),new a(c)};function a(a){var b,d,e,f,g,h,i,j,k,l,m;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){switch(b=this.readUInt32(),h=function(){var a,b;for(b=[],e=a=0;a<4;e=++a)b.push(String.fromCharCode(this.data[this.pos++]));return b}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(b);break;case"IDAT":for(e=k=0;k0)for(e=l=0;0<=i?li;e=0<=i?++l:--l)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(b)[0];break;case 2:this.transparency.rgb=this.read(b)}break;case"tEXt":j=this.read(b),f=j.indexOf(0),g=String.fromCharCode.apply(String,j.slice(0,f)),this.text[g]=String.fromCharCode.apply(String,j.slice(f+1));break;case"IEND":return this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(m=this.colorType)||6===m,d=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*d,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new c(this.imgData));default:this.pos+=b}if(this.pos+=4,this.pos>this.data.length)throw Error("Incomplete or corrupt PNG file")}}return a.prototype.read=function(a){var b,c,d;for(d=[],b=c=0;0<=a?ca;b=0<=a?++c:--c)d.push(this.data[this.pos++]);return d},a.prototype.readUInt32=function(){var a,b,c,d;return a=this.data[this.pos++]<<24,b=this.data[this.pos++]<<16,c=this.data[this.pos++]<<8,d=this.data[this.pos++],a|b|c|d},a.prototype.readUInt16=function(){var a,b;return a=this.data[this.pos++]<<8,b=this.data[this.pos++],a|b},a.prototype.decodePixels=function(a){var b=this;return f.inflate(this.imgData,function(d,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B;if(d)throw d;for(q=b.pixelBitlength/8,u=q*b.width,r=new c(u*b.height),k=e.length,t=0,s=0,g=0;s1)for(b=1;b0?b.ended&&!e?(f=Error("stream.push() after EOF"),a.emit("error",f)):b.endEmitted&&e?(f=Error("stream.unshift() after end event"),a.emit("error",f)):(!b.decoder||e||d||(c=b.decoder.write(c),g=!b.objectMode&&0===c.length),e||(b.reading=!1),g||(b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&x(a))),z(a,b)):e||(b.reading=!1),s(b)}function s(a){return!a.ended&&(a.needReadable||a.length=o?a=o:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function u(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:a<=0?0:(a>b.highWaterMark&&(b.highWaterMark=t(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}q.prototype.read=function(a){var b,c,d,e;return l("read",a),b=this.uoa,c=a,("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended)?(l("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?H(this):x(this),null):(a=u(a,b),0===a&&b.ended?(0===b.length&&H(this),null):(d=b.needReadable,l("need readable",d),(0===b.length||b.length-a0?G(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&H(this),null!==e&&this.emit("data",e),e))};function v(a,b){var c=null;return f.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function w(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,x(a)}}function x(a){var b=a.uoa;b.needReadable=!1,b.emittedReadable||(l("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?d(y,a):y(a))}function y(a){l("emit readable"),a.emit("readable"),F(a)}function z(a,b){b.readingMore||(b.readingMore=!0,d(A,a,b))}function A(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=k)c=l?j.join(""):1===j.length?j[0]:f.concat(j,k),j.length=0;else if(a0)throw Error("endReadable called on non-empty stream");b.endEmitted||(b.ended=!0,d(I,b,a))}function I(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function J(a,b){for(var c=0,d=a.length;c-1?e:d,g=a("buffer").Buffer,o.WritableState=n,h=a("core-util-is"),h.inherits=a("inherits"),i={deprecate:a("util-deprecate")},function(){try{j=a("stream")}catch(a){}finally{j||(j=a("events").EventEmitter)}}(),g=a("buffer").Buffer,h.inherits(o,j);function l(){}function m(a,b,c){this.chunk=a,this.encoding=b,this.callback=c,this.next=null}function n(b,c){var d,e,f;k=k||a("./_stream_duplex"),b=b||{},this.objectMode=!!b.objectMode,c instanceof k&&(this.objectMode=this.objectMode||!!b.writableObjectMode),d=b.highWaterMark,e=this.objectMode?16:16384,this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,f=b.decodeStrings===!1,this.decodeStrings=!f,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){w(c,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new E(this),this.corkedRequestsFree.next=new E(this)}n.prototype.getBuffer=function a(){for(var b=this.bufferedRequest,c=[];b;)c.push(b),b=b.next;return c},function(){try{Object.defineProperty(n.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();function o(b){return k=k||a("./_stream_duplex"),this instanceof o||this instanceof k?(this.Tna=new n(b,this),this.writable=!0,b&&("function"==typeof b.write&&(this.ena=b.write), "function"==typeof b.writev&&(this.xoa=b.writev)),void j.call(this)):new o(b)}o.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))};function p(a,b){var c=Error("write after end");a.emit("error",c),d(b,c)}function q(a,b,c,e){var f,h=!0;return g.isBuffer(c)||"string"==typeof c||null===c||void 0===c||b.objectMode||(f=new TypeError("Invalid non-string/buffer chunk"),a.emit("error",f),d(e,f),h=!1),h}o.prototype.write=function(a,b,c){var d=this.Tna,e=!1;return"function"==typeof b&&(c=b,b=null),g.isBuffer(a)?b="buffer":b||(b=d.defaultEncoding),"function"!=typeof c&&(c=l),d.ended?p(this,c):q(this,d,a,c)&&(d.pendingcb++,e=s(this,d,a,b,c)),e},o.prototype.cork=function(){var a=this.Tna;a.corked++},o.prototype.uncork=function(){var a=this.Tna;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||z(this,a))},o.prototype.setDefaultEncoding=function a(b){if("string"==typeof b&&(b=b.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((b+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+b);this.Tna.defaultEncoding=b};function r(a,b,c){return a.objectMode||a.decodeStrings===!1||"string"!=typeof b||(b=new g(b,c)),b}function s(a,b,c,d,e){var f,h,i;return c=r(b,c,d),g.isBuffer(c)&&(d="buffer"),f=b.objectMode?1:c.length,b.length+=f,h=b.length>>16&255,b[1]=a>>>8&255,b[2]=255&a,this.writeBuffer(b)},e.prototype.writeUInt24LE=function(a){var b;return b=new c(3),b[0]=255&a,b[1]=a>>>8&255,b[2]=a>>>16&255,this.writeBuffer(b)},e.prototype.writeInt24BE=function(a){return a>=0?this.writeUInt24BE(a):this.writeUInt24BE(a+16777215+1)},e.prototype.writeInt24LE=function(a){return a>=0?this.writeUInt24LE(a):this.writeUInt24LE(a+16777215+1)},e.prototype.fill=function(a,b){var d;return d=new c(b),d.fill(a),this.writeBuffer(d)},e.prototype.end=function(){return this.push(null)},e}(g.Readable),b.exports=e}).call(this)}).call(this,a("buffer").Buffer)},{"./DecodeStream":204,buffer:60,stream:216}],206:[function(a,b,c){(function(){var a;a=function(){function a(a,b){this.type=a,this.options=null!=b?b:[]}return a.prototype.decode=function(a){var b;return b=this.type.decode(a),this.options[b]||b},a.prototype.size=function(){return this.type.size()},a.prototype.encode=function(a,b){var c;if(c=this.options.indexOf(b),c===-1)throw Error("Unknown option in enum: "+b);return this.type.encode(a,c)},a}(),b.exports=a}).call(this)},{}],207:[function(a,b,c){(function(){var c,d,e,f,g,h,i={}.hasOwnProperty,j=function(a,b){for(var c in b)i.call(b,c)&&(a[c]=b[c]);function d(){this.constructor=a}return d.prototype=b.prototype,a.prototype=new d,a.$ma=b.prototype,a};c=a("./Array"),f=a("./Number").Number,h=a("./utils"),g=a("util").inspect,e=function(a){j(b,a);function b(){return b.$ma.constructor.apply(this,arguments)}return b.prototype.decode=function(a,b){var c,e,g;return e=a.pos,c=h.resolveLength(this.length,a,b),this.length instanceof f&&(b={parent:b,eoa:e,doa:0,yoa:c}),g=new d(this.type,c,a,b),a.pos+=c*this.type.size(null,b),g},b.prototype.size=function(a,c){return a instanceof d&&(a=a.toArray()),b.$ma.size.call(this,a,c)},b.prototype.encode=function(a,c,e){return c instanceof d&&(c=c.toArray()),b.$ma.encode.call(this,a,c,e)},b}(c),d=function(){function a(a,b,c,d){this.type=a,this.length=b,this.stream=c,this.ctx=d,this.base=this.stream.pos,this.items=[]}return a.prototype.get=function(a){var b;if(!(a<0||a>=this.length))return null==this.items[a]&&(b=this.stream.pos,this.stream.pos=this.base+this.type.size(null,this.ctx)*a,this.items[a]=this.type.decode(this.stream,this.ctx),this.stream.pos=b),this.items[a]},a.prototype.toArray=function(){var a,b,c,d;for(d=[],a=b=0,c=this.length;b>1),b.$ma.constructor.call(this,"Int"+a,c),this.zoa=1<=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length,a.copy(this.charBuffer,this.charReceived,0,b),this.charReceived+=b,this.charReceived=55296&&c<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return f;break}this.charLength+=this.surrogateSize,f=""}return this.detectIncompleteChar(a),d=a.length,this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,d),d-=this.charReceived),f+=a.toString(this.encoding,0,d),d=f.length-1,c=f.charCodeAt(d),c>=55296&&c<=56319?(e=this.surrogateSize,this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),a.copy(this.charBuffer,0,0,e),f.substring(0,d)):f},d.prototype.detectIncompleteChar=function(a){for(var b,c=a.length>=3?3:a.length;c>0;c--){if(b=a[a.length-c],1==c&&b>>5==6){this.charLength=2;break}if(c<=2&&b>>4==14){this.charLength=3;break}if(c<=3&&b>>3==30){this.charLength=4;break}}this.charReceived=c},d.prototype.end=function(a){var b,c,d,e="";return a&&a.length&&(e=this.write(a)),this.charReceived&&(b=this.charReceived,c=this.charBuffer,d=this.encoding,e+=c.slice(0,b).toString(d)),e};function h(a){return a.toString(this.encoding)}function i(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function j(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}},{buffer:60}],218:[function(a,b,c){var d,e,f,g,h,i,j,k,l,m,n=0,o=-3;function p(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function q(a,b){this.source=a,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=b,this.destLen=0,this.ltree=new p,this.dtree=new p}d=new p,e=new p,f=new Uint8Array(30),g=new Uint16Array(30),h=new Uint8Array(30),i=new Uint16Array(30),j=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),k=new p,l=new Uint8Array(320);function r(a,b,c,d){var e,f;for(e=0;e>>=1,b}function v(a,b,c){if(!b)return c;for(;a.bitcount<24;)a.tag|=a.source[a.sourceIndex++]<>>16-b;return a.tag>>>=b,a.bitcount-=b,d+c}function w(a,b){for(var c,d,e,f;a.bitcount<24;)a.tag|=a.source[a.sourceIndex++]<>>=1,++e,c+=b.table[e],d-=b.table[e];while(d>=0);return a.tag=f,a.bitcount-=e,b.trans[c+d]}function x(a,b,c){var d,e,f,g,h,i,m=v(a,5,257),n=v(a,5,1),o=v(a,4,4);for(d=0;d<19;++d)l[d]=0;for(d=0;d8;)a.sourceIndex--,a.bitcount-=8;if(b=a.source[a.sourceIndex+1],b=256*b+a.source[a.sourceIndex],c=a.source[a.sourceIndex+3],c=256*c+a.source[a.sourceIndex+2],b!==(65535&~c))return o;for(a.sourceIndex+=4,d=b;d;--d)a.dest[a.destLen++]=a.source[a.sourceIndex++];return a.bitcount=0,n}function A(a,b){var c,f,g,h=new q(a,b);do{switch(c=u(h),f=v(h,2,0)){case 0:g=z(h);break;case 1:g=y(h,d,e);break;case 2:x(h,h.ltree,h.dtree),g=y(h,h.ltree,h.dtree);break;default:g=o}if(g!==n)throw Error("Data error")}while(!c);return h.destLen>f&e]},c.getCombiningClass=function(a){var b;return b=w.get(a),t.combiningClasses[b>>i&h]},c.getScript=function(a){var b;return b=w.get(a),t.scripts[b>>q&p]},c.getEastAsianWidth=function(a){var b;return b=w.get(a),t.eaw[b>>l&k]},c.getNumericValue=function(a){var b,c,d,e,f;if(f=w.get(a),d=f&n,0===d)return null;if(d<=50)return d-1;if(d<480)return e=(d>>4)-12,b=(15&d)+1,e/b;if(d<768){for(f=(d>>5)-14,c=(31&d)+2;c>0;)f*=10,c--;return f}for(f=(d>>2)-191,c=(3&d)+1;c>0;)f*=60,c--;return f},c.isAlphabetic=function(a){var b;return"Lu"===(b=c.getCategory(a))||"Ll"===b||"Lt"===b||"Lm"===b||"Lo"===b||"Nl"===b},c.isDigit=function(a){return"Nd"===c.getCategory(a)},c.isPunctuation=function(a){var b;return"Pc"===(b=c.getCategory(a))||"Pd"===b||"Pe"===b||"Pf"===b||"Pi"===b||"Po"===b||"Ps"===b},c.isLowerCase=function(a){return"Ll"===c.getCategory(a)},c.isUpperCase=function(a){return"Lu"===c.getCategory(a)},c.isTitleCase=function(a){return"Lt"===c.getCategory(a)},c.isWhiteSpace=function(a){var b;return"Zs"===(b=c.getCategory(a))||"Zl"===b||"Zp"===b},c.isBaseForm=function(a){var b;return"Nd"===(b=c.getCategory(a))||"No"===b||"Nl"===b||"Lu"===b||"Ll"===b||"Lt"===b||"Lm"===b||"Lo"===b||"Me"===b||"Mc"===b},c.isMark=function(a){var b;return"Mn"===(b=c.getCategory(a))||"Me"===b||"Mc"===b}}).call(this,a("buffer").Buffer)},{"./data.json":219,buffer:60,"unicode-trie":221}],221:[function(a,b,c){var d,e;e=a("tiny-inflate"),d=function(){var a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q;m=11,o=5,n=m-o,l=65536>>m,f=1<>o,j=1024>>o,g=k+j,q=g,p=32,d=q+p,b=1<1114111?this.errorValue:a<55296||a>56319&&a<=65535?(e=(this.data[a>>o]<>o)]<>m)],e=this.data[e+(a>>o&h)],e=(e<=e)return a;switch(a){case"%s":return d[c++]+"";case"%d":return+d[c++];case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),g=d[c];c=3&&(c.depth=arguments[2]),arguments.length>=4&&(c.colors=arguments[3]),t(b)?c.showHidden=b:b&&d.Ia(c,b),z(c.showHidden)&&(c.showHidden=!1),z(c.depth)&&(c.depth=2),z(c.colors)&&(c.colors=!1),z(c.customInspect)&&(c.customInspect=!0),c.colors&&(c.stylize=j),m(c,a,c.depth)}d.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function j(a,b){var c=i.styles[b];return c?"\x1b["+i.colors[c][0]+"m"+a+"\x1b["+i.colors[c][1]+"m":a}function k(a,b){return a}function l(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function m(a,b,c){var e,f,g,h,i,j,k,t,u,v;if(a.customInspect&&b&&E(b.inspect)&&b.inspect!==d.inspect&&(!b.constructor||b.constructor.prototype!==b))return e=b.inspect(c,a),x(e)||(e=m(a,e,c)),e;if(f=n(a,b))return f;if(g=Object.keys(b),h=l(g),a.showHidden&&(g=Object.getOwnPropertyNames(b)),D(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return o(b);if(0===g.length){if(E(b))return i=b.name?": "+b.name:"",a.stylize("[Function"+i+"]","special");if(A(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(C(b))return a.stylize(Date.prototype.toString.call(b),"date");if(D(b))return o(b)}return j="",k=!1,t=["{","}"],s(b)&&(k=!0,t=["[","]"]),E(b)&&(u=b.name?": "+b.name:"",j=" [Function"+u+"]"),A(b)&&(j=" "+RegExp.prototype.toString.call(b)),C(b)&&(j=" "+Date.prototype.toUTCString.call(b)),D(b)&&(j=" "+o(b)),0!==g.length||k&&0!=b.length?c<0?A(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special"):(a.seen.push(b),v=k?p(a,b,c,h,g):g.map(function(d){return q(a,b,c,h,d,k)}),a.seen.pop(),r(v,j,t)):t[0]+j+t[1]}function n(a,b){if(z(b))return a.stylize("undefined","undefined");if(x(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return w(b)?a.stylize(""+b,"number"):t(b)?a.stylize(""+b,"boolean"):u(b)?a.stylize("null","null"):void 0}function o(a){return"["+Error.prototype.toString.call(a)+"]"}function p(a,b,c,d,e){var f,g,h=[];for(f=0,g=b.length;f-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),z(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function r(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function s(a){return Array.isArray(a)}d.isArray=s;function t(a){return"boolean"==typeof a}d.isBoolean=t;function u(a){return null===a}d.isNull=u;function v(a){return null==a}d.isNullOrUndefined=v;function w(a){return"number"==typeof a}d.isNumber=w;function x(a){return"string"==typeof a}d.isString=x;function y(a){return"symbol"==typeof a}d.isSymbol=y;function z(a){return void 0===a}d.isUndefined=z;function A(a){return B(a)&&"[object RegExp]"===G(a)}d.isRegExp=A;function B(a){return"object"==typeof a&&null!==a}d.isObject=B;function C(a){return B(a)&&"[object Date]"===G(a)}d.isDate=C;function D(a){return B(a)&&("[object Error]"===G(a)||a instanceof Error)}d.isError=D;function E(a){return"function"==typeof a}d.isFunction=E;function F(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a}d.isPrimitive=F,d.isBuffer=a("./support/isBuffer");function G(a){return Object.prototype.toString.call(a)}function H(a){return a<10?"0"+a.toString(10):a.toString(10)}g=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var a=new Date,b=[H(a.getHours()),H(a.getMinutes()),H(a.getSeconds())].join(":");return[a.getDate(),g[a.getMonth()],b].join(" ")}d.log=function(){console.log("%s - %s",I(),d.format.apply(d,arguments))},d.inherits=a("inherits"),d.Ia=function(a,b){var c,d;if(!b||!B(b))return a;for(c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a};function J(a,b){return Object.prototype.hasOwnProperty.call(a,b)}}).call(this,a("_process"),void 0!==b?b:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":223,_process:188,inherits:167}]},{},[2])(2)})}).call(b,function(){return this}(),c(7).Buffer,c(11).setImmediate)},function(a,b,c){(function(a){"use strict";var d,e,f=c(8),g=c(9),h=c(10);b.Buffer=l,b.SlowBuffer=v,b.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==a.TYPED_ARRAY_SUPPORT?a.TYPED_ARRAY_SUPPORT:i(),b.kMaxLength=j();function i(){try{var a=new Uint8Array(1);return a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===a.foo()&&"function"==typeof a.subarray&&0===a.subarray(1,1).byteLength}catch(a){return!1}}function j(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function k(a,b){if(j()=j())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j().toString(16)+" bytes");return 0|a}function v(a){return+a!=a&&(a=0),l.alloc(+a)}l.isBuffer=function a(b){return!(null==b||!b.Q6)},l.compare=function a(b,c){var d,e,f,g;if(!l.isBuffer(b)||!l.isBuffer(c))throw new TypeError("Arguments must be Buffers");if(b===c)return 0;for(d=b.length,e=c.length,f=0,g=Math.min(d,e);f>>1;case"base64":return _(a).length;default:if(d)return Y(a).length;b=(""+b).toLowerCase(),d=!0}}l.byteLength=w;function x(a,b,c){var d=!1;if((void 0===b||b<0)&&(b=0),b>this.length)return"";if((void 0===c||c>this.length)&&(c=this.length),c<=0)return"";if(c>>>=0,b>>>=0,c<=b)return"";for(a||(a="utf8");;)switch(a){case"hex":return M(this,b,c);case"utf8":case"utf-8":return I(this,b,c);case"ascii":return K(this,b,c);case"latin1":case"binary":return L(this,b,c);case"base64":return H(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}l.prototype.Q6=!0;function y(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}l.prototype.swap16=function a(){var b,c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(b=0;b0&&(c=this.toString("hex",0,d).match(/.{2}/g).join(" "),this.length>d&&(c+=" ... ")),""},l.prototype.compare=function a(b,c,d,e,f){var g,h,i,j,k,m;if(!l.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(void 0===c&&(c=0),void 0===d&&(d=b?b.length:0),void 0===e&&(e=0),void 0===f&&(f=this.length),c<0||d>b.length||e<0||f>this.length)throw new RangeError("out of range index");if(e>=f&&c>=d)return 0;if(e>=f)return-1;if(c>=d)return 1;if(c>>>=0,d>>>=0,e>>>=0,f>>>=0,this===b)return 0;for(g=f-e,h=d-c,i=Math.min(g,h),j=this.slice(e,f),k=b.slice(c,d),m=0;m2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,isNaN(c)&&(c=e?0:a.length-1),c<0&&(c=a.length+c),c>=a.length){if(e)return-1;c=a.length-1}else if(c<0){if(!e)return-1;c=0}if("string"==typeof b&&(b=l.from(b,d)),l.isBuffer(b))return 0===b.length?-1:A(a,b,c,d,e);if("number"==typeof b)return b=255&b,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):A(a,[b],c,d,e);throw new TypeError("val must be string, number or Buffer")}function A(a,b,c,d,e){var f,g,h,i,j=1,k=a.length,l=b.length;if(void 0!==d&&(d=(d+"").toLowerCase(),"ucs2"===d||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(a.length<2||b.length<2)return-1;j=2,k/=2,l/=2,c/=2}function m(a,b){return 1===j?a[b]:a.readUInt16BE(b*j)}if(e)for(g=-1,f=c;fk&&(c=k-l),f=c;f>=0;f--){for(h=!0,i=0;ie&&(d=e)):d=e,f=b.length,f%2!==0)throw new TypeError("Invalid hex string");for(d>f/2&&(d=f/2),g=0;gf)&&(d=f),b.length>0&&(d<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");for(e||(e="utf8"),g=!1;;)switch(e){case"hex":return B(this,b,c,d);case"utf8":case"utf-8":return C(this,b,c,d);case"ascii":return D(this,b,c,d);case"latin1":case"binary":return E(this,b,c,d);case"base64":return F(this,b,c,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c,d);default:if(g)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),g=!0}},l.prototype.toJSON=function a(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(a,b,c){return 0===b&&c===a.length?f.fromByteArray(a):f.fromByteArray(a.slice(b,c))}function I(a,b,c){var d,e,f,g,h,i,j,k,l;for(c=Math.min(a.length,c),d=[],e=b;e239?4:f>223?3:f>191?2:1,e+h<=c)switch(h){case 1:f<128&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(l<55296||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&l<1114112&&(g=l))}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return J(d)}d=4096;function J(a){var b,c,e=a.length;if(e<=d)return String.fromCharCode.apply(String,a);for(b="",c=0;cf)&&(c=f),d="",e=b;eg&&(b=g),c<0?(c+=g,c<0&&(c=0)):c>g&&(c=g),cc)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function a(b,c,d){var e,f,g;for(b=0|b,c=0|c,d||O(b,c,this.length),e=this[b],f=1,g=0;++g0&&(f*=256);)e+=this[b+--c]*f;return e},l.prototype.readUInt8=function a(b,c){return c||O(b,1,this.length),this[b]},l.prototype.readUInt16LE=function a(b,c){return c||O(b,2,this.length),this[b]|this[b+1]<<8},l.prototype.readUInt16BE=function a(b,c){return c||O(b,2,this.length),this[b]<<8|this[b+1]},l.prototype.readUInt32LE=function a(b,c){return c||O(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},l.prototype.readUInt32BE=function a(b,c){return c||O(b,4,this.length),16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])},l.prototype.readIntLE=function a(b,c,d){var e,f,g;for(b=0|b,c=0|c,d||O(b,c,this.length),e=this[b],f=1,g=0;++g=f&&(e-=Math.pow(2,8*c)),e},l.prototype.readIntBE=function a(b,c,d){var e,f,g;for(b=0|b,c=0|c,d||O(b,c,this.length),e=c,f=1,g=this[b+--e];e>0&&(f*=256);)g+=this[b+--e]*f;return f*=128,g>=f&&(g-=Math.pow(2,8*c)),g},l.prototype.readInt8=function a(b,c){return c||O(b,1,this.length),128&this[b]?(255-this[b]+1)*-1:this[b]},l.prototype.readInt16LE=function a(b,c){c||O(b,2,this.length);var d=this[b]|this[b+1]<<8;return 32768&d?4294901760|d:d},l.prototype.readInt16BE=function a(b,c){c||O(b,2,this.length);var d=this[b+1]|this[b]<<8;return 32768&d?4294901760|d:d},l.prototype.readInt32LE=function a(b,c){return c||O(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},l.prototype.readInt32BE=function a(b,c){return c||O(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},l.prototype.readFloatLE=function a(b,c){return c||O(b,4,this.length),g.read(this,b,!0,23,4)},l.prototype.readFloatBE=function a(b,c){return c||O(b,4,this.length),g.read(this,b,!1,23,4)},l.prototype.readDoubleLE=function a(b,c){return c||O(b,8,this.length),g.read(this,b,!0,52,8)},l.prototype.readDoubleBE=function a(b,c){return c||O(b,8,this.length),g.read(this,b,!1,52,8)};function P(a,b,c,d,e,f){if(!l.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>e||ba.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function a(b,c,d,e){var f,g,h;for(b=+b,c=0|c,d=0|d,e||(f=Math.pow(2,8*d)-1,P(this,b,c,d,f,0)),g=1,h=0,this[c]=255&b;++h=0&&(h*=256);)this[c+g]=b/h&255;return c+d},l.prototype.writeUInt8=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,1,255,0),l.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),this[c]=255&b,c+1};function Q(a,b,c,d){b<0&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}l.prototype.writeUInt16LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):Q(this,b,c,!0),c+2},l.prototype.writeUInt16BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):Q(this,b,c,!1),c+2};function R(a,b,c,d){b<0&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}l.prototype.writeUInt32LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[c+3]=b>>>24,this[c+2]=b>>>16,this[c+1]=b>>>8,this[c]=255&b):R(this,b,c,!0),c+4},l.prototype.writeUInt32BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):R(this,b,c,!1),c+4},l.prototype.writeIntLE=function a(b,c,d,e){var f,g,h,i;for(b=+b,c=0|c,e||(f=Math.pow(2,8*d-1),P(this,b,c,d,f-1,-f)),g=0,h=1,i=0,this[c]=255&b;++g>0)-i&255;return c+d},l.prototype.writeIntBE=function a(b,c,d,e){var f,g,h,i;for(b=+b,c=0|c,e||(f=Math.pow(2,8*d-1),P(this,b,c,d,f-1,-f)),g=d-1,h=1,i=0,this[c+g]=255&b;--g>=0&&(h*=256);)b<0&&0===i&&0!==this[c+g+1]&&(i=1),this[c+g]=(b/h>>0)-i&255;return c+d},l.prototype.writeInt8=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,1,127,-128),l.TYPED_ARRAY_SUPPORT||(b=Math.floor(b)),b<0&&(b=255+b+1),this[c]=255&b,c+1},l.prototype.writeInt16LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8):Q(this,b,c,!0),c+2},l.prototype.writeInt16BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>8,this[c+1]=255&b):Q(this,b,c,!1),c+2},l.prototype.writeInt32LE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[c]=255&b,this[c+1]=b>>>8,this[c+2]=b>>>16,this[c+3]=b>>>24):R(this,b,c,!0),c+4},l.prototype.writeInt32BE=function a(b,c,d){return b=+b,c=0|c,d||P(this,b,c,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),l.TYPED_ARRAY_SUPPORT?(this[c]=b>>>24,this[c+1]=b>>>16,this[c+2]=b>>>8,this[c+3]=255&b):R(this,b,c,!1),c+4};function S(a,b,c,d,e,f){if(c+d>a.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function T(a,b,c,d,e){return e||S(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),g.write(a,b,c,d,23,4),c+4}l.prototype.writeFloatLE=function a(b,c,d){return T(this,b,c,!0,d)},l.prototype.writeFloatBE=function a(b,c,d){return T(this,b,c,!1,d)};function U(a,b,c,d,e){return e||S(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),g.write(a,b,c,d,52,8),c+8}l.prototype.writeDoubleLE=function a(b,c,d){return U(this,b,c,!0,d)},l.prototype.writeDoubleBE=function a(b,c,d){return U(this,b,c,!1,d)},l.prototype.copy=function a(b,c,d,e){var f,g;if(d||(d=0),e||0===e||(e=this.length),c>=b.length&&(c=b.length),c||(c=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");if(e>this.length&&(e=this.length),b.length-c=0;--g)b[g+c]=this[g+d];else if(f<1e3||!l.TYPED_ARRAY_SUPPORT)for(g=0;g>>=0,d=void 0===d?this.length:d>>>0,b||(b=0),"number"==typeof b)for(g=c;g55295&&c<57344){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,c<128){if((b-=1)<0)break;f.push(c)}else if(c<2048){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function Z(a){var b,c=[];for(b=0;b>8,e=c%256,g.push(e),g.push(d);return g}function _(a){return f.toByteArray(V(a))}function aa(a,b,c,d){for(var e=0;e=b.length||e>=a.length);++e)b[e+c]=a[e];return e}function ba(a){return a!==a}}).call(b,function(){return this}())},function(a,b){"use strict";var c,d,e,f,g,h;for(b.byteLength=j,b.toByteArray=k,b.fromByteArray=n,c=[],d=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,h=f.length;g0)throw Error("Invalid string. Length must be a multiple of 4");return"="===a[b-2]?2:"="===a[b-1]?1:0}function j(a){return 3*a.length/4-i(a)}function k(a){var b,c,f=a.length,g=i(a),h=new e(3*f/4-g),j=g>0?f-4:f,k=0;for(b=0;b>16&255,h[k++]=c>>8&255,h[k++]=255&c;return 2===g?(c=d[a.charCodeAt(b)]<<2|d[a.charCodeAt(b+1)]>>4,h[k++]=255&c):1===g&&(c=d[a.charCodeAt(b)]<<10|d[a.charCodeAt(b+1)]<<4|d[a.charCodeAt(b+2)]>>2,h[k++]=c>>8&255,h[k++]=255&c),h}function l(a){return c[a>>18&63]+c[a>>12&63]+c[a>>6&63]+c[63&a]}function m(a,b,c){var d,e,f=[];for(e=b;ee?e:d+j));return 1===g?(b=a[f-1],h+=c[b>>2],h+=c[b<<4&63],h+="=="):2===g&&(b=(a[f-2]<<8)+a[f-1],h+=c[b>>10],h+=c[b>>4&63],h+=c[b<<2&63],h+="="),i.push(h),i.join("")}},function(a,b){b.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},b.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256, j-=8);a[c+n-o]|=128*p}},function(a,b){var c={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==c.call(a)}},function(a,b,c){var d=Function.prototype.apply;b.setTimeout=function(){return new e(d.call(setTimeout,window,arguments),clearTimeout)},b.setInterval=function(){return new e(d.call(setInterval,window,arguments),clearInterval)},b.clearTimeout=b.clearInterval=function(a){a&&a.close()};function e(a,b){this.yn=a,this.Coa=b}e.prototype.unref=e.prototype.ref=function(){},e.prototype.close=function(){this.Coa.call(window,this.yn)},b.enroll=function(a,b){clearTimeout(a.Doa),a.Eoa=b},b.unenroll=function(a){clearTimeout(a.Doa),a.Eoa=-1},b.Foa=b.active=function(a){clearTimeout(a.Doa);var b=a.Eoa;b>=0&&(a.Doa=setTimeout(function b(){a._onTimeout&&a._onTimeout()},b))},c(12),b.setImmediate=setImmediate,b.clearImmediate=clearImmediate},function(a,b,c){(function(a,b){!function(a,c){"use strict";var d,e,f,g,h,i;function j(a){var b,c,f;for("function"!=typeof a&&(a=Function(""+a)),b=Array(arguments.length-1),c=0;c1)for(b=1;b0?a>>>0:0;else if("string"===e)"base64"===b&&(a=D(a)),f=j.byteLength(a,b);else{if("object"!==e||null===a)throw new TypeError("must start with number, buffer, array or string");"Buffer"===a.type&&i(a.data)&&(a=a.data),f=+a.length>0?Math.floor(+a.length):0}if(this.length>d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");if(j.TYPED_ARRAY_SUPPORT?g=j.P6(new Uint8Array(f)):(g=this,g.length=f,g.Q6=!0),j.TYPED_ARRAY_SUPPORT&&"number"==typeof a.byteLength)g.R6(a);else if(F(a))if(j.isBuffer(a))for(h=0;h>>1;break;case"utf8":case"utf-8":c=H(a).length;break;case"base64":c=K(a).length;break;default:c=a.length}return c},j.prototype.length=void 0,j.prototype.parent=void 0,j.prototype.toString=function(a,b,c){var d=!1;if(b>>>=0,c=void 0===c||c===1/0?this.length:c>>>0,a||(a="utf8"),b<0&&(b=0),c>this.length&&(c=this.length),c<=b)return"";for(;;)switch(a){case"hex":return u(this,b,c);case"utf8":case"utf-8":return r(this,b,c);case"ascii":return s(this,b,c);case"binary":return t(this,b,c);case"base64":return q(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}},j.prototype.equals=function(a){if(!j.isBuffer(a))throw new TypeError("Argument must be a Buffer");return 0===j.compare(this,a)},j.prototype.inspect=function(){var a="",b=c.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},j.prototype.compare=function(a){if(!j.isBuffer(a))throw new TypeError("Argument must be a Buffer");return j.compare(this,a)},j.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},j.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)};function k(a,b,c,d){var e,f,g,h;if(c=+c||0,e=a.length-c,d?(d=+d,d>e&&(d=e)):d=e,f=b.length,f%2!==0)throw Error("Invalid hex string");for(d>f/2&&(d=f/2),g=0;gf&&(c=f)):c=f,d=((d||"utf8")+"").toLowerCase()){case"hex":g=k(this,a,b,c);break;case"utf8":case"utf-8":g=l(this,a,b,c);break;case"ascii":g=m(this,a,b,c);break;case"binary":g=n(this,a,b,c);break;case"base64":g=o(this,a,b,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":g=p(this,a,b,c);break;default:throw new TypeError("Unknown encoding: "+d)}return g},j.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(a,b,c){return 0===b&&c===a.length?g.fromByteArray(a):g.fromByteArray(a.slice(b,c))}function r(a,b,c){var d,e="",f="";for(c=Math.min(a.length,c),d=b;df)&&(c=f),d="",e=b;ef&&(a=f),b<0?(b+=f,b<0&&(b=0)):b>f&&(b=f),bc)throw new RangeError("Trying to access beyond buffer length")}j.prototype.readUInt8=function(a,b){return b||w(a,1,this.length),this[a]},j.prototype.readUInt16LE=function(a,b){return b||w(a,2,this.length),this[a]|this[a+1]<<8},j.prototype.readUInt16BE=function(a,b){return b||w(a,2,this.length),this[a]<<8|this[a+1]},j.prototype.readUInt32LE=function(a,b){return b||w(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},j.prototype.readUInt32BE=function(a,b){return b||w(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},j.prototype.readInt8=function(a,b){return b||w(a,1,this.length),128&this[a]?(255-this[a]+1)*-1:this[a]},j.prototype.readInt16LE=function(a,b){b||w(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},j.prototype.readInt16BE=function(a,b){b||w(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},j.prototype.readInt32LE=function(a,b){return b||w(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},j.prototype.readInt32BE=function(a,b){return b||w(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},j.prototype.readFloatLE=function(a,b){return b||w(a,4,this.length),h.read(this,a,!0,23,4)},j.prototype.readFloatBE=function(a,b){return b||w(a,4,this.length),h.read(this,a,!1,23,4)},j.prototype.readDoubleLE=function(a,b){return b||w(a,8,this.length),h.read(this,a,!0,52,8)},j.prototype.readDoubleBE=function(a,b){return b||w(a,8,this.length),h.read(this,a,!1,52,8)};function x(a,b,c,d,e,f){if(!j.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||ba.length)throw new TypeError("index out of range")}j.prototype.writeUInt8=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,1,255,0),j.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=a,b+1};function y(a,b,c,d){b<0&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);e>>8*(d?e:1-e)}j.prototype.writeUInt16LE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):y(this,a,b,!0),b+2},j.prototype.writeUInt16BE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,2,65535,0),j.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):y(this,a,b,!1),b+2};function z(a,b,c,d){b<0&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);e>>8*(d?e:3-e)&255}j.prototype.writeUInt32LE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a):z(this,a,b,!0),b+4},j.prototype.writeUInt32BE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,4,4294967295,0),j.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):z(this,a,b,!1),b+4},j.prototype.writeInt8=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,1,127,-128),j.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[b]=a,b+1},j.prototype.writeInt16LE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):y(this,a,b,!0),b+2},j.prototype.writeInt16BE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,2,32767,-32768),j.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):y(this,a,b,!1),b+2},j.prototype.writeInt32LE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,4,2147483647,-2147483648),j.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):z(this,a,b,!0),b+4},j.prototype.writeInt32BE=function(a,b,c){return a=+a,b>>>=0,c||x(this,a,b,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),j.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):z(this,a,b,!1),b+4};function A(a,b,c,d,e,f){if(b>e||ba.length)throw new TypeError("index out of range")}function B(a,b,c,d,e){return e||A(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),h.write(a,b,c,d,23,4),c+4}j.prototype.writeFloatLE=function(a,b,c){return B(this,a,b,!0,c)},j.prototype.writeFloatBE=function(a,b,c){return B(this,a,b,!1,c)};function C(a,b,c,d,e){return e||A(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),h.write(a,b,c,d,52,8),c+8}j.prototype.writeDoubleLE=function(a,b,c){return C(this,a,b,!0,c)},j.prototype.writeDoubleBE=function(a,b,c){return C(this,a,b,!1,c)},j.prototype.copy=function(a,b,c,d){var e,f,g=this;if(c||(c=0),d||0===d||(d=this.length),b||(b=0),d!==c&&0!==a.length&&0!==g.length){if(d=a.length)throw new TypeError("targetStart out of bounds");if(c<0||c>=g.length)throw new TypeError("sourceStart out of bounds");if(d<0||d>g.length)throw new TypeError("sourceEnd out of bounds");if(d>this.length&&(d=this.length),a.length-b=this.length)throw new TypeError("start out of bounds");if(c<0||c>this.length)throw new TypeError("end out of bounds");if("number"==typeof a)for(d=b;d=55296&&c<=57343&&b++,e=encodeURIComponent(a.slice(d,b+1)).substr(1).split("%"),f=0;f>8,d=b%256,f.push(d),f.push(c);return f}function K(a){return g.toByteArray(a)}function L(a,b,c,d){for(var e=0;e=b.length||e>=a.length);e++)b[e+c]=a[e];return e}function M(a){try{return decodeURIComponent(a)}catch(a){return String.fromCharCode(65533)}}},{"base64-js":4,ieee754:5,"is-array":6}],4:[function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(a){"use strict";var b="undefined"!=typeof Uint8Array?Uint8Array:Array,c="+".charCodeAt(0),e="/".charCodeAt(0),f="0".charCodeAt(0),g="a".charCodeAt(0),h="A".charCodeAt(0);function i(a){var b=a.charCodeAt(0);return b===c?62:b===e?63:b0)throw Error("Invalid string. Length must be a multiple of 4");j=a.length,g="="===a.charAt(j-2)?2:"="===a.charAt(j-1)?1:0,h=new b(3*a.length/4-g),e=g>0?a.length-4:a.length,k=0;function l(a){h[k++]=a}for(c=0,d=0;c>16),l((65280&f)>>8),l(255&f);return 2===g?(f=i(a.charAt(c))<<2|i(a.charAt(c+1))>>4,l(255&f)):1===g&&(f=i(a.charAt(c))<<10|i(a.charAt(c+1))<<4|i(a.charAt(c+2))>>2,l(f>>8&255),l(255&f)),h}function k(a){var b,c=a.length%3,e="",f,g;function h(a){return d.charAt(a)}function i(a){return h(a>>18&63)+h(a>>12&63)+h(a>>6&63)+h(63&a)}for(b=0,g=a.length-c;b>2),e+=h(f<<4&63),e+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],e+=h(f>>10),e+=h(f>>4&63),e+=h(f<<2&63),e+="="}return e}a.toByteArray=j,a.fromByteArray=k}(void 0===c?this.base64js={}:c)},{}],5:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],6:[function(a,b,c){var d=Array.isArray,e=Object.prototype.toString;b.exports=d||function(a){return!!a&&"[object Array]"==e.call(a)}},{}],7:[function(a,b,c){function d(){this.boa=this.boa||{},this.coa=this.coa||void 0}b.exports=d,d.EventEmitter=d,d.prototype.boa=void 0,d.prototype.coa=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this.coa=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this.boa||(this.boa={}),"error"===a&&(!this.boa.error||g(this.boa.error)&&!this.boa.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this.boa[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,f=Array(d-1),i=1;i0&&this.boa[a].length>c&&(this.boa[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this.boa[a].length),"function"==typeof console.trace&&console.trace())),this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){if(!e(b))throw TypeError("listener must be a function");var c=!1;function d(){this.removeListener(a,d),c||(c=!0,b.apply(this,arguments))}return d.listener=b,this.on(a,d),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this.boa||!this.boa[a])return this;if(c=this.boa[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this.boa[a],this.boa.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-- >0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(d<0)return this;1===c.length?(c.length=0,delete this.boa[a]):c.splice(d,1),this.boa.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this.boa)return this;if(!this.boa.removeListener)return 0===arguments.length?this.boa={}:this.boa[a]&&delete this.boa[a],this;if(0===arguments.length){for(b in this.boa)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this.boa={},this}if(c=this.boa[a],e(c))this.removeListener(a,c);else for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this.boa[a],this},d.prototype.listeners=function(a){var b;return b=this.boa&&this.boa[a]?e(this.boa[a])?[this.boa[a]]:this.boa[a].slice():[]},d.listenerCount=function(a,b){var c;return c=a.boa&&a.boa[b]?e(a.boa[b])?1:a.boa[b].length:0};function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}},{}],8:[function(a,b,c){"function"==typeof Object.create?b.exports=function a(b,c){b.super_=c,b.prototype=Object.create(c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}})}:b.exports=function a(b,c){b.super_=c;var d=function(){};d.prototype=c.prototype,b.prototype=new d,b.prototype.constructor=b}},{}],9:[function(a,b,c){b.exports=Array.isArray||function(a){return"[object Array]"==Object.prototype.toString.call(a)}},{}],10:[function(a,b,c){var d=b.exports={};d.nextTick=function(){var a,b,c,d="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.MutationObserver,f="undefined"!=typeof window&&window.postMessage&&window.addEventListener;return d?function(a){return window.setImmediate(a)}:(a=[],e?(b=document.createElement("div"),c=new MutationObserver(function(){var b=a.slice();a.length=0,b.forEach(function(a){a()})}),c.observe(b,{attributes:!0}),function c(d){a.length||b.setAttribute("yes","no"),a.push(d)}):f?(window.addEventListener("message",function(b){var c,d=b.source;d!==window&&null!==d||"process-tick"!==b.data||(b.stopPropagation(),a.length>0&&(c=a.shift())())},!0),function b(c){a.push(c),window.postMessage("process-tick","*")}):function a(b){setTimeout(b,0)})}(),d.title="browser",d.browser=!0,d.env={},d.argv=[];function e(){}d.on=e,d.addListener=e,d.once=e,d.off=e,d.removeListener=e,d.removeAllListeners=e,d.emit=e,d.binding=function(a){throw Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(a){throw Error("process.chdir is not supported")}},{}],11:[function(a,b,c){b.exports=a("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":12}],12:[function(a,b,c){(function(c){var d,e,f,g;b.exports=h,d=Object.keys||function(a){var b,c=[];for(b in a)c.push(b);return c},e=a("core-util-is"),e.inherits=a("inherits"),f=a("./_stream_readable"),g=a("./_stream_writable"),e.inherits(h,f),j(d(g.prototype),function(a){h.prototype[a]||(h.prototype[a]=g.prototype[a])});function h(a){return this instanceof h?(f.call(this,a),g.call(this,a),a&&a.readable===!1&&(this.readable=!1),a&&a.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,a&&a.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",i)):new h(a)}function i(){this.allowHalfOpen||this.Tna.ended||c.nextTick(this.end.bind(this))}function j(a,b){for(var c=0,d=a.length;c0?b.ended&&!e?(f=Error("stream.push() after EOF"),a.emit("error",f)):b.endEmitted&&e?(f=Error("stream.unshift() after end event"),a.emit("error",f)):(!b.decoder||e||d||(c=b.decoder.write(c)),b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):(b.reading=!1,b.buffer.push(c)),b.needReadable&&s(a),u(a,b)):e||(b.reading=!1),n(b)}function n(a){return!a.ended&&(a.needReadable||a.length=j)a=j;else{a--;for(var b=1;b<32;b<<=1)a|=a>>b;a++}return a}function p(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:a<=0?0:(a>b.highWaterMark&&(b.highWaterMark=o(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}l.prototype.read=function(a){var b,c,d,e=this.uoa;return e.calledRead=!0,b=a,("number"!=typeof a||a>0)&&(e.emittedReadable=!1),0===a&&e.needReadable&&(e.length>=e.highWaterMark||e.ended)?(s(this),null):(a=p(a,e),0===a&&e.ended?(c=null,e.length>0&&e.decoder&&(c=A(a,e),e.length-=c.length),0===e.length&&B(this),c):(d=e.needReadable,e.length-a<=e.highWaterMark&&(d=!0),(e.ended||e.reading)&&(d=!1),d&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this.bha(e.highWaterMark),e.sync=!1),d&&!e.reading&&(a=p(b,e)),c=a>0?A(a,e):null,null===c&&(e.needReadable=!0,a=0),e.length-=a,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&B(this),c))};function q(a,b){var c=null;return e.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function r(a,b){if(b.decoder&&!b.ended){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,b.length>0?s(a):B(a)}function s(a){var b=a.uoa;b.needReadable=!1,b.emittedReadable||(b.emittedReadable=!0,b.sync?c.nextTick(function(){t(a)}):t(a))}function t(a){a.emit("readable")}function u(a,b){b.readingMore||(b.readingMore=!0,c.nextTick(function(){v(a,b)}))}function v(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length0)return;return 0===c.pipesCount?(c.flowing=!1,void(f.listenerCount(a,"data")>0&&z(a))):void(c.ranOut=!0)}function y(){this.uoa.ranOut&&(this.uoa.ranOut=!1,x(this))}l.prototype.unpipe=function(a){var b,c,d,e=this.uoa;if(0===e.pipesCount)return this;if(1===e.pipesCount)return a&&a!==e.pipes?this:(a||(a=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",y),e.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){for(b=e.pipes,c=e.pipesCount,e.pipes=null,e.pipesCount=0,this.removeListener("readable",y),e.flowing=!1,d=0;d=k)c=l?j.join(""):e.concat(j,k),j.length=0;else if(a0)throw Error("endReadable called on non-empty stream");!b.endEmitted&&b.calledRead&&(b.ended=!0,c.nextTick(function(){b.endEmitted||0!==b.length||(b.endEmitted=!0,a.readable=!1,a.emit("end"))}))}function C(a,b){for(var c=0,d=a.length;c=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length,a.copy(this.charBuffer,this.charReceived,0,b),this.charReceived+=b,this.charReceived=55296&&c<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return f;break}this.charLength+=this.surrogateSize,f=""}return this.detectIncompleteChar(a),d=a.length,this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,d),d-=this.charReceived),f+=a.toString(this.encoding,0,d),d=f.length-1,c=f.charCodeAt(d),c>=55296&&c<=56319?(e=this.surrogateSize,this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),a.copy(this.charBuffer,0,0,e),f.substring(0,d)):f},d.prototype.detectIncompleteChar=function(a){for(var b,c=a.length>=3?3:a.length;c>0;c--){if(b=a[a.length-c],1==c&&b>>5==6){this.charLength=2;break}if(c<=2&&b>>4==14){this.charLength=3;break}if(c<=3&&b>>3==30){this.charLength=4;break}}this.charReceived=c},d.prototype.end=function(a){var b,c,d,e="";return a&&a.length&&(e=this.write(a)),this.charReceived&&(b=this.charReceived,c=this.charBuffer,d=this.encoding,e+=c.slice(0,b).toString(d)),e};function h(a){return a.toString(this.encoding)}function i(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function j(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}},{buffer:3}],24:[function(a,b,c){b.exports=function a(b){return b&&"object"==typeof b&&"function"==typeof b.copy&&"function"==typeof b.fill&&"function"==typeof b.readUInt8}},{}],25:[function(a,c,d){(function(b,c){var e,f,g,h=/%[sdj%]/g;d.format=function(a){var b,c,d,e,f,g;if(!x(a)){for(b=[],c=0;c=e)return a;switch(a){case"%s":return d[c++]+"";case"%d":return+d[c++];case"%j":try{return JSON.stringify(d[c++])}catch(a){return"[Circular]"}default:return a}}),g=d[c];c=3&&(c.depth=arguments[2]),arguments.length>=4&&(c.colors=arguments[3]),t(b)?c.showHidden=b:b&&d.Ia(c,b),z(c.showHidden)&&(c.showHidden=!1),z(c.depth)&&(c.depth=2),z(c.colors)&&(c.colors=!1),z(c.customInspect)&&(c.customInspect=!0),c.colors&&(c.stylize=j),m(c,a,c.depth)}d.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function j(a,b){var c=i.styles[b];return c?"\x1b["+i.colors[c][0]+"m"+a+"\x1b["+i.colors[c][1]+"m":a}function k(a,b){return a}function l(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function m(a,b,c){var e,f,g,h,i,j,k,t,u,v;if(a.customInspect&&b&&E(b.inspect)&&b.inspect!==d.inspect&&(!b.constructor||b.constructor.prototype!==b))return e=b.inspect(c,a),x(e)||(e=m(a,e,c)),e;if(f=n(a,b))return f;if(g=Object.keys(b),h=l(g),a.showHidden&&(g=Object.getOwnPropertyNames(b)),D(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return o(b);if(0===g.length){if(E(b))return i=b.name?": "+b.name:"",a.stylize("[Function"+i+"]","special");if(A(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(C(b))return a.stylize(Date.prototype.toString.call(b),"date");if(D(b))return o(b)}return j="",k=!1,t=["{","}"],s(b)&&(k=!0,t=["[","]"]),E(b)&&(u=b.name?": "+b.name:"",j=" [Function"+u+"]"),A(b)&&(j=" "+RegExp.prototype.toString.call(b)),C(b)&&(j=" "+Date.prototype.toUTCString.call(b)),D(b)&&(j=" "+o(b)),0!==g.length||k&&0!=b.length?c<0?A(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special"):(a.seen.push(b),v=k?p(a,b,c,h,g):g.map(function(d){return q(a,b,c,h,d,k)}),a.seen.pop(),r(v,j,t)):t[0]+j+t[1]}function n(a,b){if(z(b))return a.stylize("undefined","undefined");if(x(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return w(b)?a.stylize(""+b,"number"):t(b)?a.stylize(""+b,"boolean"):u(b)?a.stylize("null","null"):void 0}function o(a){return"["+Error.prototype.toString.call(a)+"]"}function p(a,b,c,d,e){var f,g,h=[];for(f=0,g=b.length;f-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),z(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function r(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function s(a){return Array.isArray(a)}d.isArray=s;function t(a){return"boolean"==typeof a}d.isBoolean=t;function u(a){return null===a}d.isNull=u;function v(a){return null==a}d.isNullOrUndefined=v;function w(a){return"number"==typeof a}d.isNumber=w;function x(a){return"string"==typeof a}d.isString=x;function y(a){return"symbol"==typeof a}d.isSymbol=y;function z(a){return void 0===a}d.isUndefined=z;function A(a){return B(a)&&"[object RegExp]"===G(a)}d.isRegExp=A;function B(a){return"object"==typeof a&&null!==a}d.isObject=B;function C(a){return B(a)&&"[object Date]"===G(a)}d.isDate=C;function D(a){return B(a)&&("[object Error]"===G(a)||a instanceof Error)}d.isError=D;function E(a){return"function"==typeof a}d.isFunction=E;function F(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a}d.isPrimitive=F,d.isBuffer=a("./support/isBuffer");function G(a){return Object.prototype.toString.call(a)}function H(a){return a<10?"0"+a.toString(10):a.toString(10)}g=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var a=new Date,b=[H(a.getHours()),H(a.getMinutes()),H(a.getSeconds())].join(":");return[a.getDate(),g[a.getMonth()],b].join(" ")}d.log=function(){console.log("%s - %s",I(),d.format.apply(d,arguments))},d.inherits=a("inherits"),d.Ia=function(a,b){var c,d;if(!b||!B(b))return a;for(c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a};function J(a,b){return Object.prototype.hasOwnProperty.call(a,b)}}).call(this,a("_process"),void 0!==b?b:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":24,_process:10,inherits:8}]},{},[2])(2)})}).call(b,function(){return this}(),c(7).Buffer)},function(a,b){!function(){"use strict";var b,c;function d(a){var b,c=window.atob(a),d=c.length,e=new Uint8Array(d);for(b=0;b