pdfjs-dist
Version:
Generic build of Mozilla's PDF.js library.
1 lines • 125 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("pdfjs-dist/image_decoders/pdf.image_decoders",[],e):"object"==typeof exports?exports["pdfjs-dist/image_decoders/pdf.image_decoders"]=e():t["pdfjs-dist/image_decoders/pdf.image_decoders"]=t.pdfjsImageDecoders=e()}(this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setVerbosityLevel=e.getVerbosityLevel=e.JpxImage=e.JpegImage=e.Jbig2mage=void 0;var r=n(1),i=n(113),o=n(116),s=n(117);e.Jbig2mage=i.Jbig2mage,e.JpegImage=o.JpegImage,e.JpxImage=s.JpxImage,e.getVerbosityLevel=r.getVerbosityLevel,e.setVerbosityLevel=r.setVerbosityLevel},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unreachable=e.warn=e.utf8StringToString=e.stringToUTF8String=e.stringToPDFString=e.stringToBytes=e.string32=e.shadow=e.setVerbosityLevel=e.URL=e.ReadableStream=e.removeNullCharacters=e.readUint32=e.readUint16=e.readInt8=e.log2=e.isEvalSupported=e.isLittleEndian=e.createValidAbsoluteUrl=e.isSameOrigin=e.isSpace=e.isString=e.isNum=e.isEmptyObj=e.isBool=e.isArrayBuffer=e.info=e.getVerbosityLevel=e.getLookupTableFactory=e.getInheritableProperty=e.deprecated=e.createObjectURL=e.createPromiseCapability=e.bytesToString=e.assert=e.arraysToBytes=e.arrayByteLength=e.FormatError=e.XRefParseException=e.toRomanNumerals=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.StreamType=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.NativeImageDecoding=e.MissingPDFException=e.MissingDataException=e.InvalidPDFException=e.AbortException=e.CMapCompressionType=e.ImageKind=e.FontType=e.AnnotationType=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationBorderStyleType=e.UNSUPPORTED_FEATURES=e.VerbosityLevel=e.OPS=e.IDENTITY_MATRIX=e.FONT_IDENTITY_MATRIX=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n(2);var i=n(111),o=n(112),s={ERRORS:0,WARNINGS:1,INFOS:5},a=s.WARNINGS;function c(t){a>=s.WARNINGS&&console.log("Warning: "+t)}function u(t){throw new Error(t)}function f(t,e){t||u(e)}var l=function(){function t(t,e){this.name="PasswordException",this.message=t,this.code=e}return t.prototype=new Error,t.constructor=t,t}(),h=function(){function t(t,e){this.name="UnknownErrorException",this.message=t,this.details=e}return t.prototype=new Error,t.constructor=t,t}(),d=function(){function t(t){this.name="InvalidPDFException",this.message=t}return t.prototype=new Error,t.constructor=t,t}(),p=function(){function t(t){this.name="MissingPDFException",this.message=t}return t.prototype=new Error,t.constructor=t,t}(),m=function(){function t(t,e){this.name="UnexpectedResponseException",this.message=t,this.status=e}return t.prototype=new Error,t.constructor=t,t}(),v=function(){function t(t,e){this.begin=t,this.end=e,this.message="Missing data ["+t+", "+e+")"}return t.prototype=new Error,t.prototype.name="MissingDataException",t.constructor=t,t}(),g=function(){function t(t){this.message=t}return t.prototype=new Error,t.prototype.name="XRefParseException",t.constructor=t,t}(),y=function(){function t(t){this.message=t}return t.prototype=new Error,t.prototype.name="FormatError",t.constructor=t,t}(),b=function(){function t(t){this.name="AbortException",this.message=t}return t.prototype=new Error,t.constructor=t,t}(),w=/\x00/g;function x(t){f("string"==typeof t,"Invalid argument for stringToBytes");for(var e=t.length,n=new Uint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);return n}function S(t){return void 0!==t.length?t.length:(f(void 0!==t.byteLength),t.byteLength)}var P=function(){function t(){}var e=["rgb(",0,",",0,",",0,")"];return t.makeCssRgb=function(t,n,r){return e[1]=t,e[3]=n,e[5]=r,e.join("")},t.transform=function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]},t.applyTransform=function(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]},t.applyInverseTransform=function(t,e){var n=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/n,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/n]},t.getAxialAlignedBoundingBox=function(e,n){var r=t.applyTransform(e,n),i=t.applyTransform(e.slice(2,4),n),o=t.applyTransform([e[0],e[3]],n),s=t.applyTransform([e[2],e[1]],n);return[Math.min(r[0],i[0],o[0],s[0]),Math.min(r[1],i[1],o[1],s[1]),Math.max(r[0],i[0],o[0],s[0]),Math.max(r[1],i[1],o[1],s[1])]},t.inverseTransform=function(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]},t.apply3dTransform=function(t,e){return[t[0]*e[0]+t[1]*e[1]+t[2]*e[2],t[3]*e[0]+t[4]*e[1]+t[5]*e[2],t[6]*e[0]+t[7]*e[1]+t[8]*e[2]]},t.singularValueDecompose2dScale=function(t){var e=[t[0],t[2],t[1],t[3]],n=t[0]*e[0]+t[1]*e[2],r=t[0]*e[1]+t[1]*e[3],i=t[2]*e[0]+t[3]*e[2],o=t[2]*e[1]+t[3]*e[3],s=(n+o)/2,a=Math.sqrt((n+o)*(n+o)-4*(n*o-i*r))/2,c=s+a||1,u=s-a||1;return[Math.sqrt(c),Math.sqrt(u)]},t.normalizeRect=function(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e},t.intersect=function(e,n){function r(t,e){return t-e}var i=[e[0],e[2],n[0],n[2]].sort(r),o=[e[1],e[3],n[1],n[3]].sort(r),s=[];return e=t.normalizeRect(e),n=t.normalizeRect(n),(i[0]===e[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===e[0])&&(s[0]=i[1],s[2]=i[2],(o[0]===e[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===e[1])&&(s[1]=o[1],s[3]=o[2],s))},t}(),T=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];var C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];var k,I=(k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(t,e){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&o.URL.createObjectURL){var n=new Blob([t],{type:e});return o.URL.createObjectURL(n)}for(var r="data:"+e+";base64,",i=0,s=t.length;i<s;i+=3){var a=255&t[i],c=255&t[i+1],u=255&t[i+2];r+=k[a>>2]+k[(3&a)<<4|c>>4]+k[i+1<s?(15&c)<<2|u>>6:64]+k[i+2<s?63&u:64]}return r});e.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],e.IDENTITY_MATRIX=[1,0,0,1,0,0],e.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},e.VerbosityLevel=s,e.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},e.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},e.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},e.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},e.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},e.FontType={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},e.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},e.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},e.AbortException=b,e.InvalidPDFException=d,e.MissingDataException=v,e.MissingPDFException=p,e.NativeImageDecoding={NONE:"none",DECODE:"decode",DISPLAY:"display"},e.PasswordException=l,e.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},e.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},e.StreamType={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},e.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},e.UnexpectedResponseException=m,e.UnknownErrorException=h,e.Util=P,e.toRomanNumerals=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f(Number.isInteger(t)&&t>0,"The number should be a positive integer.");for(var n=void 0,r=[];t>=1e3;)t-=1e3,r.push("M");n=t/100|0,t%=100,r.push(T[n]),n=t/10|0,t%=10,r.push(T[10+n]),r.push(T[20+t]);var i=r.join("");return e?i.toLowerCase():i},e.XRefParseException=g,e.FormatError=y,e.arrayByteLength=S,e.arraysToBytes=function(t){if(1===t.length&&t[0]instanceof Uint8Array)return t[0];var e,n,r,i=0,o=t.length;for(e=0;e<o;e++)i+=r=S(n=t[e]);var s=0,a=new Uint8Array(i);for(e=0;e<o;e++)(n=t[e])instanceof Uint8Array||(n="string"==typeof n?x(n):new Uint8Array(n)),r=n.byteLength,a.set(n,s),s+=r;return a},e.assert=f,e.bytesToString=function(t){f(null!==t&&"object"===(void 0===t?"undefined":r(t))&&void 0!==t.length,"Invalid argument for bytesToString");var e=t.length;if(e<8192)return String.fromCharCode.apply(null,t);for(var n=[],i=0;i<e;i+=8192){var o=Math.min(i+8192,e),s=t.subarray(i,o);n.push(String.fromCharCode.apply(null,s))}return n.join("")},e.createPromiseCapability=function(){var t={};return t.promise=new Promise(function(e,n){t.resolve=e,t.reject=n}),t},e.createObjectURL=I,e.deprecated=function(t){console.log("Deprecated API usage: "+t)},e.getInheritableProperty=function(t){for(var e=t.dict,n=t.key,r=t.getArray,i=void 0!==r&&r,o=t.stopWhenFound,s=void 0===o||o,a=0,u=void 0;e;){var f=i?e.getArray(n):e.get(n);if(void 0!==f){if(s)return f;u||(u=[]),u.push(f)}if(++a>100){c('getInheritableProperty: maximum loop count exceeded for "'+n+'"');break}e=e.get("Parent")}return u},e.getLookupTableFactory=function(t){var e;return function(){return t&&(e=Object.create(null),t(e),t=null),e}},e.getVerbosityLevel=function(){return a},e.info=function(t){a>=s.INFOS&&console.log("Info: "+t)},e.isArrayBuffer=function(t){return"object"===(void 0===t?"undefined":r(t))&&null!==t&&void 0!==t.byteLength},e.isBool=function(t){return"boolean"==typeof t},e.isEmptyObj=function(t){for(var e in t)return!1;return!0},e.isNum=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSpace=function(t){return 32===t||9===t||13===t||10===t},e.isSameOrigin=function(t,e){try{var n=new o.URL(t);if(!n.origin||"null"===n.origin)return!1}catch(t){return!1}var r=new o.URL(e,n);return n.origin===r.origin},e.createValidAbsoluteUrl=function(t,e){if(!t)return null;try{var n=e?new o.URL(t,e):new o.URL(t);if(function(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(t){}return null},e.isLittleEndian=function(){var t=new Uint8Array(4);return t[0]=1,1===new Uint32Array(t.buffer,0,1)[0]},e.isEvalSupported=function(){try{return new Function(""),!0}catch(t){return!1}},e.log2=function(t){return t<=0?0:Math.ceil(Math.log2(t))},e.readInt8=function(t,e){return t[e]<<24>>24},e.readUint16=function(t,e){return t[e]<<8|t[e+1]},e.readUint32=function(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0},e.removeNullCharacters=function(t){return"string"!=typeof t?(c("The argument for removeNullCharacters must be a string."),t):t.replace(w,"")},e.ReadableStream=i.ReadableStream,e.URL=o.URL,e.setVerbosityLevel=function(t){Number.isInteger(t)&&(a=t)},e.shadow=function(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n},e.string32=function(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)},e.stringToBytes=x,e.stringToPDFString=function(t){var e,n=t.length,r=[];if("þ"===t[0]&&"ÿ"===t[1])for(e=2;e<n;e+=2)r.push(String.fromCharCode(t.charCodeAt(e)<<8|t.charCodeAt(e+1)));else for(e=0;e<n;++e){var i=C[t.charCodeAt(e)];r.push(i?String.fromCharCode(i):t.charAt(e))}return r.join("")},e.stringToUTF8String=function(t){return decodeURIComponent(escape(t))},e.utf8StringToString=function(t){return unescape(encodeURIComponent(t))},e.warn=c,e.unreachable=u},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(3);if(!i._pdfjsCompatibilityChecked){i._pdfjsCompatibilityChecked=!0;var o=n(4),s="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document));!i.btoa&&o()&&(i.btoa=function(t){return Buffer.from(t,"binary").toString("base64")}),!i.atob&&o()&&(i.atob=function(t){return Buffer.from(t,"base64").toString("binary")}),s&&("currentScript"in document||Object.defineProperty(document,"currentScript",{get:function(){var t=document.getElementsByTagName("script");return t[t.length-1]},enumerable:!0,configurable:!0})),s&&void 0===Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(s&&!o()&&!1!==document.createElement("div").classList.toggle("test",0)){var t=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e){if(arguments.length>1){var n=!!arguments[1];return this[n?"add":"remove"](e),n}return t(e)}}}(),String.prototype.includes||n(5),Array.prototype.includes||n(33),Object.assign||n(42),Math.log2||(Math.log2=n(52)),Number.isNaN||(Number.isNaN=n(54)),Number.isInteger||(Number.isInteger=n(56)),i.WeakMap||(i.WeakMap=n(59)),String.codePointAt||(String.codePointAt=n(96)),String.fromCodePoint||(String.fromCodePoint=n(99)),i.Symbol||n(101),Object.values||(Object.values=n(108))}},function(t,e,n){"use strict";t.exports="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:{}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){return"object"===("undefined"==typeof process?"undefined":r(process))&&process+""=="[object process]"}},function(t,e,n){"use strict";n(6),t.exports=n(9).String.includes},function(t,e,n){"use strict";var r=n(7),i=n(25);r(r.P+r.F*n(32)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(8),i=n(9),o=n(10),s=n(20),a=n(23),c=function t(e,n,c){var u,f,l,h,d=e&t.F,p=e&t.G,m=e&t.P,v=e&t.B,g=p?r:e&t.S?r[n]||(r[n]={}):(r[n]||{}).prototype,y=p?i:i[n]||(i[n]={}),b=y.prototype||(y.prototype={});for(u in p&&(c=n),c)l=((f=!d&&g&&void 0!==g[u])?g:c)[u],h=v&&f?a(l,r):m&&"function"==typeof l?a(Function.call,l):l,g&&s(g,u,l,e&t.U),y[u]!=l&&o(y,u,h),m&&b[u]!=l&&(b[u]=l)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){"use strict";var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,n){"use strict";var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e,n){"use strict";var r=n(11),i=n(19);t.exports=n(15)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var r=n(12),i=n(14),o=n(18),s=Object.defineProperty;e.f=n(15)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":r(t))?null!==t:"function"==typeof t}},function(t,e,n){"use strict";t.exports=!n(15)&&!n(16)(function(){return 7!=Object.defineProperty(n(17)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var r=n(13),i=n(8).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(8),i=n(10),o=n(21),s=n(22)("src"),a=Function.toString,c=(""+a).split("toString");n(9).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,s)||i(n,s,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e,n){"use strict";var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,n){"use strict";var r=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+i).toString(36))}},function(t,e,n){"use strict";var r=n(24);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(26),i=n(31);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){"use strict";var r=n(13),i=n(27),o=n(28)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){"use strict";var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(29)("wks"),i=n(22),o=n(8).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";var r=n(9),i=n(8),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(30)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){"use strict";t.exports=!1},function(t,e,n){"use strict";t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(28)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){"use strict";n(34),t.exports=n(9).Array.includes},function(t,e,n){"use strict";var r=n(7),i=n(35)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(41)("includes")},function(t,e,n){"use strict";var r=n(36),i=n(38),o=n(40);t.exports=function(t){return function(e,n,s){var a,c=r(e),u=i(c.length),f=o(s,u);if(t&&n!=n){for(;u>f;)if((a=c[f++])!=a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(37),i=n(31);t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";var r=n(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(39),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:r)(t)}},function(t,e,n){"use strict";var r=n(39),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){"use strict";var r=n(28)("unscopables"),i=Array.prototype;void 0==i[r]&&n(10)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){"use strict";n(43),t.exports=n(9).Object.assign},function(t,e,n){"use strict";var r=n(7);r(r.S+r.F,"Object",{assign:n(44)})},function(t,e,n){"use strict";var r=n(45),i=n(49),o=n(50),s=n(51),a=n(37),c=Object.assign;t.exports=!c||n(16)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=s(t),c=arguments.length,u=1,f=i.f,l=o.f;c>u;)for(var h,d=a(arguments[u++]),p=f?r(d).concat(f(d)):r(d),m=p.length,v=0;m>v;)l.call(d,h=p[v++])&&(n[h]=d[h]);return n}:c},function(t,e,n){"use strict";var r=n(46),i=n(48);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){"use strict";var r=n(21),i=n(36),o=n(35)(!1),s=n(47)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){"use strict";var r=n(29)("keys"),i=n(22);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){"use strict";t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(31);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";n(53),t.exports=n(9).Math.log2},function(t,e,n){"use strict";var r=n(7);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){"use strict";n(55),t.exports=n(9).Number.isNaN},function(t,e,n){"use strict";var r=n(7);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){"use strict";n(57),t.exports=n(9).Number.isInteger},function(t,e,n){"use strict";var r=n(7);r(r.S,"Number",{isInteger:n(58)})},function(t,e,n){"use strict";var r=n(13),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){"use strict";n(60),n(62),n(73),n(92),n(94),t.exports=n(9).WeakMap},function(t,e,n){"use strict";var r=n(61),i={};i[n(28)("toStringTag")]="z",i+""!="[object z]"&&n(20)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){"use strict";var r=n(27),i=n(28)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){"use strict";for(var r=n(63),i=n(45),o=n(20),s=n(8),a=n(10),c=n(65),u=n(28),f=u("iterator"),l=u("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),m=0;m<p.length;m++){var v,g=p[m],y=d[g],b=s[g],w=b&&b.prototype;if(w&&(w[f]||a(w,f,h),w[l]||a(w,l,g),c[g]=h,y))for(v in r)w[v]||o(w,v,r[v],!0)}},function(t,e,n){"use strict";var r=n(41),i=n(64),o=n(65),s=n(36);t.exports=n(66)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";var r=n(30),i=n(7),o=n(20),s=n(10),a=n(65),c=n(67),u=n(71),f=n(72),l=n(28)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,m,v,g){c(n,e,p);var y,b,w,x=function(t){if(!h&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",P="values"==m,T=!1,C=t.prototype,k=C[l]||C["@@iterator"]||m&&C[m],I=k||x(m),O=m?P?x("entries"):I:void 0,L="Array"==e&&C.entries||k;if(L&&(w=f(L.call(new t)))!==Object.prototype&&w.next&&(u(w,S,!0),r||"function"==typeof w[l]||s(w,l,d)),P&&k&&"values"!==k.name&&(T=!0,I=function(){return k.call(this)}),r&&!g||!h&&!T&&C[l]||s(C,l,I),a[e]=I,a[S]=d,m)if(y={values:P?I:x("values"),keys:v?I:x("keys"),entries:O},g)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(h||T),e,y);return y}},function(t,e,n){"use strict";var r=n(68),i=n(19),o=n(71),s={};n(10)(s,n(28)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(12),i=n(69),o=n(48),s=n(47)("IE_PROTO"),a=function(){},c=function(){var t,e=n(17)("iframe"),r=o.length;for(e.style.display="none",n(70).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){"use strict";var r=n(11),i=n(12),o=n(45);t.exports=n(15)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,c=0;a>c;)r.f(t,n=s[c++],e[n]);return t}},function(t,e,n){"use strict";var r=n(8).document;t.exports=r&&r.documentElement},function(t,e,n){"use strict";var r=n(11).f,i=n(21),o=n(28)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(21),i=n(51),o=n(47)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){"use strict";var r,i=n(74)(0),o=n(20),s=n(78),a=n(44),c=n(79),u=n(13),f=n(16),l=n(86),h=s.getWeak,d=Object.isExtensible,p=c.ufstore,m={},v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(u(t)){var e=h(t);return!0===e?p(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},y=t.exports=n(87)("WeakMap",v,g,c,!0,!0);f(function(){return 7!=(new y).set((Object.freeze||Object)(m),7).get(m)})&&(a((r=c.getConstructor(v,"WeakMap")).prototype,g),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];o(e,t,function(e,i){if(u(e)&&!d(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(23),i=n(37),o=n(51),s=n(38),a=n(75);t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,f=4==t,l=6==t,h=5==t||l,d=e||a;return function(e,a,p){for(var m,v,g=o(e),y=i(g),b=r(a,p,3),w=s(y.length),x=0,S=n?d(e,w):c?d(e,0):void 0;w>x;x++)if((h||x in y)&&(v=b(m=y[x],x,g),t))if(n)S[x]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:S.push(m)}else if(f)return!1;return l?-1:u||f?f:S}}},function(t,e,n){"use strict";var r=n(76);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(13),i=n(77),o=n(28)("species");t.exports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(27);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(22)("meta"),o=n(13),s=n(21),a=n(11).f,c=0,u=Object.isExtensible||function(){return!0},f=!n(16)(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,i,{value:{i:"O"+ ++c,w:{}}})},h=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==(void 0===t?"undefined":r(t))?t:("string"==typeof t?"S":"P")+t;if(!s(t,i)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[i].i},getWeak:function(t,e){if(!s(t,i)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[i].w},onFreeze:function(t){return f&&h.NEED&&u(t)&&!s(t,i)&&l(t),t}}},function(t,e,n){"use strict";var r=n(80),i=n(78).getWeak,o=n(12),s=n(13),a=n(81),c=n(82),u=n(74),f=n(21),l=n(86),h=u(5),d=u(6),p=0,m=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return h(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var u=t(function(t,r){a(t,u,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=r&&c(r,n,t[o],t)});return r(u.prototype,{delete:function(t){if(!s(t))return!1;var n=i(t);return!0===n?m(l(this,e)).delete(t):n&&f(n,this._i)&&delete n[this._i]},has:function(t){if(!s(t))return!1;var n=i(t);return!0===n?m(l(this,e)).has(t):n&&f(n,this._i)}}),u},def:function(t,e,n){var r=i(o(e),!0);return!0===r?m(t).set(e,n):r[t._i]=n,t},ufstore:m}},function(t,e,n){"use strict";var r=n(20);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r=n(23),i=n(83),o=n(84),s=n(12),a=n(38),c=n(85),u={},f={},l=t.exports=function(t,e,n,l,h){var d,p,m,v,g=h?function(){return t}:c(t),y=r(n,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=a(t.length);d>b;b++)if((v=e?y(s(p=t[b])[0],p[1]):y(t[b]))===u||v===f)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=i(m,y,p.value,e))===u||v===f)return v};l.BREAK=u,l.RETURN=f},function(t,e,n){"use strict";var r=n(12);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(65),i=n(28)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(61),i=n(28)("iterator"),o=n(65);t.exports=n(9).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";var r=n(8),i=n(7),o=n(20),s=n(80),a=n(78),c=n(82),u=n(81),f=n(13),l=n(16),h=n(88),d=n(71),p=n(89);t.exports=function(t,e,n,m,v,g){var y=r[t],b=y,w=v?"set":"add",x=b&&b.prototype,S={},P=function(t){var e=x[t];o(x,t,"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(g||x.forEach&&!l(function(){(new b).entries().next()}))){var T=new b,C=T[w](g?{}:-0,1)!=T,k=l(function(){T.has(1)}),I=h(function(t){new b(t)}),O=!g&&l(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});I||((b=e(function(e,n){u(e,b,t);var r=p(new y,e,b);return void 0!=n&&c(n,v,r[w],r),r})).prototype=x,x.constructor=b),(k||O)&&(P("delete"),P("has"),v&&P("get")),(O||C)&&P(w),g&&x.clear&&delete x.clear}else b=m.getConstructor(e,t,v,w),s(b.prototype,n),a.NEED=!0;return d(b,t),S[t]=b,i(i.G+i.W+i.F*(b!=y),S),g||m.setStrong(b,t,v),b}},function(t,e,n){"use strict";var r=n(28)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(13),i=n(90).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(13),i=n(12),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(23)(Function.call,n(91).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){"use strict";var r=n(50),i=n(19),o=n(36),s=n(18),a=n(21),c=n(14),u=Object.getOwnPropertyDescriptor;e.f=n(15)?u:function(t,e){if(t=o(t),e=s(e,!0),c)try{return u(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";n(93)("WeakMap")},function(t,e,n){"use strict";var r=n(7);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){"use strict";n(95)("WeakMap")},function(t,e,n){"use strict";var r=n(7),i=n(24),o=n(23),s=n(82);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,a,c=arguments[1];return i(this),(e=void 0!==c)&&i(c),void 0==t?new this:(n=[],e?(r=0,a=o(c,arguments[2],2),s(t,!1,function(t){n.push(a(t,r++))})):s(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";n(97),t.exports=n(9).String.codePointAt},function(t,e,n){"use strict";var r=n(7),i=n(98)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(39),i=n(31);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";n(100),t.exports=n(9).String.fromCodePoint},function(t,e,n){"use strict";var r=n(7),i=n(40),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";n(102),n(60),t.exports=n(9).Symbol},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(8),o=n(21),s=n(15),a=n(7),c=n(20),u=n(78).KEY,f=n(16),l=n(29),h=n(71),d=n(22),p=n(28),m=n(103),v=n(104),g=n(105),y=n(77),b=n(12),w=n(13),x=n(36),S=n(18),P=n(19),T=n(68),C=n(106),k=n(91),I=n(11),O=n(45),L=k.f,E=I.f,A=C.f,M=i.Symbol,_=i.JSON,D=_&&_.stringify,R=p("_hidden"),B=p("toPrimitive"),U={}.propertyIsEnumerable,N=l("symbol-registry"),F=l("symbols"),j=l("op-symbols"),z=Object.prototype,H="function"==typeof M,X=i.QObject,Y=!X||!X.prototype||!X.prototype.findChild,W=s&&f(function(){return 7!=T(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=L(z,e);r&&delete z[e],E(t,e,n),r&&t!==z&&E(z,e,r)}:E,q=function(t){var e=F[t]=T(M.prototype);return e._k=t,e},V=H&&"symbol"==r(M.iterator)?function(t){return"symbol"==(void 0===t?"undefined":r(t))}:function(t){return t instanceof M},G=function(t,e,n){return t===z&&G(j,e,n),b(t),e=S(e,!0),b(n),o(F,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=T(n,{enumerable:P(0,!1)})):(o(t,R)||E(t,R,P(1,{})),t[R][e]=!0),W(t,e,n)):E(t,e,n)},J=function(t,e){b(t);for(var n,r=g(e=x(e)),i=0,o=r.length;o>i;)G(t,n=r[i++],e[n]);return t},K=function(t){var e=U.call(this,t=S(t,!0));return!(this===z&&o(F,t)&&!o(j,t))&&(!(e||!o(this,t)||!o(F,t)||o(this,R)&&this[R][t])||e)},Q=function(t,e){if(t=x(t),e=S(e,!0),t!==z||!o(F,e)||o(j,e)){var n=L(t,e);return!n||!o(F,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=A(x(t)),r=[],i=0;n.length>i;)o(F,e=n[i++])||e==R||e==u||r.push(e);return r},$=function(t){for(var e,n=t===z,r=A(n?j:x(t)),i=[],s=0;r.length>s;)!o(F,e=r[s++])||n&&!o(z,e)||i.push(F[e]);return i};H||(c((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0);return s&&Y&&W(z,t,{configurable:!0,set:function e(n){this===z&&e.call(j,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),W(this,t,P(1,n))}}),q(t)}).prototype,"toString",function(){return this._k}),k.f=Q,I.f=G,n(107).f=C.f=Z,n(50).f=K,n(49).f=$,s&&!n(30)&&c(z,"propertyIsEnumerable",K,!0),m.f=function(t){return q(p(t))}),a(a.G+a.W+a.F*!H,{Symbol:M});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)p(tt[et++]);for(var nt=O(p.store),rt=0;nt.length>rt;)v(nt[rt++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=M(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!H,"Object",{create:function(t,e){return void 0===e?T(t):J(T(t),e)},defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),_&&a(a.S+a.F*(!H||f(function(){var t=M();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(w(e)||void 0!==t)&&!V(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,D.apply(_,r)}}),M.prototype[B]||n(10)(M.prototype,B,M.prototype.valueOf),h(M,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,e,n){"use strict";e.f=n(28)},function(t,e,n){"use strict";var r=n(8),i=n(9),o=n(30),s=n(103),a=n(11).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){"use strict";var r=n(45),i=n(49),o=n(50);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),c=o.f,u=0;a.length>u;)c.call(t,s=a[u++])&&e.push(s);return e}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(36),o=n(107).f,s={}.toString,a="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==s.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(i(t))}},function(t,e,n){"use strict";var r=n(46),i=n(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){"use strict";n(109),t.exports=n(9).Object.values},function(t,e,n){"use strict";var r=n(7),i=n(110)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(45),i=n(36),o=n(50).f;t.exports=function(t){return function(e){for(var n,s=i(e),a=r(s),c=a.length,u=0,f=[];c>u;)o.call(s,n=a[u++])&&f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){"use strict";var r=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(t){t.close()}}),r=!0}catch(t){}if(r)e.ReadableStream=ReadableStream;else{e.ReadableStream=function t(){throw function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),new Error("The current image decoders are synchronous, hence `ReadableStream` shouldn't need to be polyfilled for the IMAGE_DECODERS build target.")}}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var i=!1;try{if("function"==typeof URL&&"object"===r(URL.prototype)&&"origin"in URL.prototype){var o=new URL("b","http://a");o.pathname="c%20d",i="http://a/c%20d"===o.href}}catch(t){}if(i)e.URL=URL;else{e.URL=function t(){throw function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),new Error("The current image decoders doesn't utilize the `URL` constructor, hence it shouldn't need to be polyfilled for the IMAGE_DECODERS build target.")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Jbig2Image=void 0;var r=n(1),i=n(114),o=n(115),s=function(){function t(t){this.message="JBIG2 error: "+t}return t.prototype=new Error,t.prototype.name="Jbig2Error",t.constructor=t,t}(),a=function(){function t(){}function e(t,e,n){this.data=t,this.start=e,this.end=n}function n(t,e,n){var r=t.getContexts(e),i=1;function o(t){for(var e=0,o=0;o<t;o++){var s=n.readBit(r,i);i=i<256?i<<1|s:511&(i<<1|s)|256,e=e<<1|s}return e>>>0}var s=o(1),a=o(1)?o(1)?o(1)?o(1)?o(1)?o(32)+4436:o(12)+340:o(8)+84:o(6)+20:o(4)+4:o(2);return 0===s?a:a>0?-a:null}function a(t,e,n){for(var r=t.getContexts("IAID"),i=1,o=0;o<n;o++){i=i<<1|e.readBit(r,i)}return n<31?i&(1<<n)-1:2147483647&i}t.prototype={getContexts:function(t){return t in this?this[t]:this[t]=new Int8Array(65536)}},e.prototype={get decoder(){var t=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",t)},get contextCache(){var e=new t;return(0,r.shadow)(this,"contextCache",e)}};var c=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],u=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],f=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],l=[39717,1941,229,405],h=[32,8];function d(t,e,n,r,i,o,s,a){if(t)return A(new O(a.data,a.start,a.end),e,n,!1);if(0===r&&!o&&!i&&4===s.length&&3===s[0].x&&-1===s[0].y&&-3===s[1].x&&-1===s[1].y&&2===s[2].x&&-2===s[2].y&&-2===s[3].x&&-2===s[3].y)return function(t,e,n){var r,i,o,s,a,c,u,f=n.decoder,l=n.contextCache.getContexts("GB"),h=[];for(i=0;i<e;i++)for(a=h[i]=new Uint8Array(t),c=i<1?a:h[i-1],r=(u=i<2?a:h[i-2])[0]<<13|u[1]<<12|u[2]<<11|c[0]<<7|c[1]<<6|c[2]<<5|c[3]<<4,o=0;o<t;o++)a[o]=s=f.readBit(l,r),r=(31735&r)<<1|(o+3<t?u[o+3]<<11:0)|(o+4<t?c[o+4]<<4:0)|s;return h}(e,n,a);var c=!!o,f=u[r].concat(s);f.sort(function(t,e){return t.y-e.y||t.x-e.x});var h,d,p=f.length,m=new Int8Array(p),v=new Int8Array(p),g=[],y=0,b=0,w=0,x=0;for(d=0;d<p;d++)m[d]=f[d].x,v[d]=f[d].y,b=Math.min(b,f[d].x),w=Math.max(w,f[d].x),x=Math.min(x,f[d].y),d<p-1&&f[d].y===f[d+1].y&&f[d].x===f[d+1].x-1?y|=1<<p-1-d:g.push(d);var S=g.length,P=new Int8Array(S),T=new Int8Array(S),C=new Uint16Array(S);for(h=0;h<S;h++)d=g[h],P[h]=f[d].x,T[h]=f[d].y,C[h]=1<<p-1-d;for(var k,I,L,E,M,_=-b,D=-x,R=e-w,B=l[r],U=new Uint8Array(e),N=[],F=a.decoder,j=a.contextCache.getContexts("GB"),z=0,H=0,X=0;X<n;X++){if(i)if(z^=F.readBit(j,B)){N.push(U);continue}for(U=new Uint8Array(U),N.push(U),k=0;k<e;k++)if(c&&o[X][k])U[k]=0;else{if(k>=_&&k<R&&X>=D)for(H=H<<1&y,d=0;d<S;d++)I=X+T[d],L=k+P[d],(E=N[I][L])&&(H|=E=C[d]);else for(H=0,M=p-1,d=0;d<p;d++,M--)(L=k+m[d])>=0&&L<e&&(I=X+v[d])>=0&&(E=N[I][L])&&(H|=E<<M);var Y=F.readBit(j,H);U[k]=Y}}return N}function p(t,e,n,r,i,o,a,c,u){var l=f[n].coding;0===n&&(l=l.concat([c[0]]));var d,p=l.length,m=new Int32Array(p),v=new Int32Array(p);for(d=0;d<p;d++)m[d]=l[d].x,v[d]=l[d].y;var g=f[n].reference;0===n&&(g=g.concat([c[1]]));var y=g.length,b=new Int32Array(y),w=new Int32Array(y);for(d=0;d<y;d++)b[d]=g[d].x,w[d]=g[d].y;for(var x=r[0].length,S=r.length,P=h[n],T=[],C=u.decoder,k=u.contextCache.getContexts("GR"),I=0,O=0;O<e;O++){if(a)if(I^=C.readBit(k,P))throw new s("prediction is not supported");var L=new Uint8Array(t);T.push(L);for(var E=0;E<t;E++){var A,M,_=0;for(d=0;d<p;d++)A=O+v[d],M=E+m[d],A<0||M<0||M>=t?_<<=1:_=_<<1|T[A][M];for(d=0;d<y;d++)A=O+w[d]-o,M=E+b[d]-i,A<0||A>=S||M<0||M>=x?_<<=1:_=_<<1|r[A][M];var D=C.readBit(k,_);L[E]=D}}return T}function m(t,e,r,i,o,c,u,f,l,h,d,m,v,g,y,b,w,x,S){if(t&&e)throw new s("refinement with Huffman is not supported");var P,T,C=[];for(P=0;P<i;P++){if(T=new Uint8Array(r),o)for(var k=0;k<r;k++)T[k]=o;C.push(T)}var I=w.decoder,O=w.contextCache,L=t?-g.tableDeltaT.decode(S):-n(O,"IADT",I),E=0;for(P=0;P<c;){L+=t?g.tableDeltaT.decode(S):n(O,"IADT",I);for(var A=E+=t?g.tableFirstS.decode(S):n(O,"IAFS",I);;){var M=0;u>1&&(M=t?S.readBits(x):n(O,"IAIT",I));var _=u*L+M,D=t?g.symbolIDTable.decode(S):a(O,I,l),R=e&&(t?S.readBit():n(O,"IARI",I)),B=f[D],U=B[0].length,N=B.length;if(R){var F=n(O,"IARDW",I),j=n(O,"IARDH",I);B=p(U+=F,N+=j,y,B,(F>>1)+n(O,"IARDX",I),(j>>1)+n(O,"IARDY",I),!1,b,w)}var z,H,X,Y=_-(1&m?0:N-1),W=A-(2&m?U-1:0);if(h){for(z=0;z