!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsDistBuildPdfWorker=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};e[a].call(i.exports,i,i.exports,t);i.l=!0;return i.exports}var r={};t.m=e;t.c=r;t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:a})};t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};t.d(r,"a",r);return r};t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};t.p="";return t(t.s=71)}([function(e,t,r){"use strict";function a(e){p>=m.warnings&&console.log("Warning: "+e)}function i(e){throw new Error(e)}function n(e,t){e||i(t)}function o(e){n("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),a=0;a2&&void 0!==arguments[2]?arguments[2]:null;return e?new Promise(function(a,i){a(e.apply(r,t))}):Promise.resolve(void 0)}function u(e){if("object"!==(void 0===e?"undefined":d(e)))return e;switch(e.name){case"AbortException":return new _(e.message);case"MissingPDFException":return new w(e.message);case"UnexpectedResponseException":return new k(e.message,e.status);default:return new v(e.message,e.details)}}function h(e,t,r){t?e.resolve():e.reject(r)}function f(e,t,r){var a=this;this.sourceName=e;this.targetName=t;this.comObj=r;this.callbackId=1;this.streamId=1;this.postMessageTransfers=!0;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);var i=this.callbacksCapabilities=Object.create(null),n=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===a.sourceName)if(t.stream)a._processStreamMessage(t);else if(t.isReply){var o=t.callbackId;if(!(t.callbackId in i))throw new Error("Cannot resolve callback "+o);var s=i[o];delete i[o];"error"in t?s.reject(u(t.error)):s.resolve(t.data)}else{if(!(t.action in n))throw new Error("Unknown action from worker: "+t.action);var c=n[t.action];if(t.callbackId){var l=a.sourceName,h=t.sourceName;Promise.resolve().then(function(){return c[0].call(c[1],t.data)}).then(function(e){r.postMessage({sourceName:l,targetName:h,isReply:!0,callbackId:t.callbackId,data:e})},function(e){r.postMessage({sourceName:l,targetName:h,isReply:!0,callbackId:t.callbackId,error:function(e){return!(e instanceof Error)||e instanceof _||e instanceof w||e instanceof k||e instanceof v?e:new v(e.message,e.toString())}(e)})})}else t.streamId?a._createStreamSink(t):c[0].call(c[1],t.data)}};r.addEventListener("message",this._onComObjOnMessage)}Object.defineProperty(t,"__esModule",{value:!0});t.unreachable=t.warn=t.utf8StringToString=t.stringToUTF8String=t.stringToPDFString=t.stringToBytes=t.string32=t.shadow=t.setVerbosityLevel=t.ReadableStream=t.removeNullCharacters=t.readUint32=t.readUint16=t.readInt8=t.log2=t.loadJpegStream=t.isEvalSupported=t.isLittleEndian=t.createValidAbsoluteUrl=t.isSameOrigin=t.isNodeJS=t.isSpace=t.isString=t.isNum=t.isEmptyObj=t.isBool=t.isArrayBuffer=t.info=t.getVerbosityLevel=t.getLookupTableFactory=t.deprecated=t.createObjectURL=t.createPromiseCapability=t.createBlob=t.bytesToString=t.assert=t.arraysToBytes=t.arrayByteLength=t.FormatError=t.XRefParseException=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PasswordResponses=t.PasswordException=t.PageViewport=t.NotImplementedException=t.NativeImageDecoding=t.MissingPDFException=t.MissingDataException=t.MessageHandler=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VERBOSITY_LEVELS=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=void 0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(73);var g=r(123),m={errors:0,warnings:1,infos:5},p=m.warnings,b=function(){function e(e,t){this.name="PasswordException";this.message=e;this.code=t}e.prototype=new Error;e.constructor=e;return e}(),v=function(){function e(e,t){this.name="UnknownErrorException";this.message=e;this.details=t}e.prototype=new Error;e.constructor=e;return e}(),y=function(){function e(e){this.name="InvalidPDFException";this.message=e}e.prototype=new Error;e.constructor=e;return e}(),w=function(){function e(e){this.name="MissingPDFException";this.message=e}e.prototype=new Error;e.constructor=e;return e}(),k=function(){function e(e,t){this.name="UnexpectedResponseException";this.message=e;this.status=t}e.prototype=new Error;e.constructor=e;return e}(),S=function(){function e(e){this.message=e}(e.prototype=new Error).name="NotImplementedException";e.constructor=e;return e}(),C=function(){function e(e,t){this.begin=e;this.end=t;this.message="Missing data ["+e+", "+t+")"}(e.prototype=new Error).name="MissingDataException";e.constructor=e;return e}(),x=function(){function e(e){this.message=e}(e.prototype=new Error).name="XRefParseException";e.constructor=e;return e}(),A=function(){function e(e){this.message=e}(e.prototype=new Error).name="FormatError";e.constructor=e;return e}(),_=function(){function e(e){this.name="AbortException";this.message=e}e.prototype=new Error;e.constructor=e;return e}(),P=/\x00/g,I=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];e.makeCssRgb=function(e,r,a){t[1]=e;t[3]=r;t[5]=a;return t.join("")};e.transform=function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]};e.applyTransform=function(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]};e.applyInverseTransform=function(e,t){var r=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]};e.getAxialAlignedBoundingBox=function(t,r){var a=e.applyTransform(t,r),i=e.applyTransform(t.slice(2,4),r),n=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(a[0],i[0],n[0],o[0]),Math.min(a[1],i[1],n[1],o[1]),Math.max(a[0],i[0],n[0],o[0]),Math.max(a[1],i[1],n[1],o[1])]};e.inverseTransform=function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]};e.apply3dTransform=function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]};e.singularValueDecompose2dScale=function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],a=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],o=(r+n)/2,s=Math.sqrt((r+n)*(r+n)-4*(r*n-i*a))/2,c=o+s||1,l=o-s||1;return[Math.sqrt(c),Math.sqrt(l)]};e.normalizeRect=function(e){var t=e.slice(0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}return t};e.intersect=function(t,r){function a(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(a),n=[t[1],t[3],r[1],r[3]].sort(a),o=[];t=e.normalizeRect(t);r=e.normalizeRect(r);if(!(i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0]))return!1;o[0]=i[1];o[2]=i[2];if(!(n[0]===t[1]&&n[1]===r[1]||n[0]===r[1]&&n[1]===t[1]))return!1;o[1]=n[1];o[3]=n[2];return o};var r=["","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"];e.toRoman=function(e,t){n(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var a,i=[];e>=1e3;){e-=1e3;i.push("M")}a=e/100|0;e%=100;i.push(r[a]);a=e/10|0;e%=10;i.push(r[10+a]);i.push(r[20+e]);var o=i.join("");return t?o.toLowerCase():o};e.appendToArray=function(e,t){Array.prototype.push.apply(e,t)};e.prependToArray=function(e,t){Array.prototype.unshift.apply(e,t)};e.extendObj=function(e,t){for(var r in t)e[r]=t[r]};e.getInheritableProperty=function(e,t,r){for(;e&&!e.has(t);)e=e.get("Parent");return e?r?e.getArray(t):e.get(t):null};e.inherit=function(e,t,r){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;for(var a in r)e.prototype[a]=r[a]};e.loadScript=function(e,t){var r=document.createElement("script"),a=!1;r.setAttribute("src",e);t&&(r.onload=function(){a||t();a=!0});document.getElementsByTagName("head")[0].appendChild(r)};return e}(),T=function(){function e(e,t,r,a,i,n){this.viewBox=e;this.scale=t;this.rotation=r;this.offsetX=a;this.offsetY=i;var o,s,c,l,u=(e[2]+e[0])/2,h=(e[3]+e[1])/2;switch(r=(r%=360)<0?r+360:r){case 180:o=-1;s=0;c=0;l=1;break;case 90:o=0;s=1;c=1;l=0;break;case 270:o=0;s=-1;c=-1;l=0;break;default:o=1;s=0;c=0;l=-1}if(n){c=-c;l=-l}var f,d,g,m;if(0===o){f=Math.abs(h-e[1])*t+a;d=Math.abs(u-e[0])*t+i;g=Math.abs(e[3]-e[1])*t;m=Math.abs(e[2]-e[0])*t}else{f=Math.abs(u-e[0])*t+a;d=Math.abs(h-e[1])*t+i;g=Math.abs(e[2]-e[0])*t;m=Math.abs(e[3]-e[1])*t}this.transform=[o*t,s*t,c*t,l*t,f-o*t*u-c*t*h,d-s*t*u-l*t*h];this.width=g;this.height=m;this.fontScale=t}e.prototype={clone:function(t){var r="scale"in(t=t||{})?t.scale:this.scale,a="rotation"in t?t.rotation:this.rotation;return new e(this.viewBox.slice(),r,a,this.offsetX,this.offsetY,t.dontFlip)},convertToViewportPoint:function(e,t){return I.applyTransform([e,t],this.transform)},convertToViewportRectangle:function(e){var t=I.applyTransform([e[0],e[1]],this.transform),r=I.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]},convertToPdfPoint:function(e,t){return I.applyInverseTransform([e,t],this.transform)}};return e}(),O=[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],E=function(e,t){if("undefined"!=typeof Blob)return new Blob([e],{type:t});throw new Error('The "Blob" constructor is not supported.')},F=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,r){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var a=E(t,r);return URL.createObjectURL(a)}for(var i="data:"+r+";base64,",n=0,o=t.length;n>2]+e[(3&s)<<4|c>>4]+e[n+1>6:64]+e[n+21&&void 0!==arguments[1]?arguments[1]:1,r=arguments[2];if(!this.isCancelled){var a=this.desiredSize;this.desiredSize-=t;if(a>0&&this.desiredSize<=0){this.sinkCapability=c();this.ready=this.sinkCapability.promise}u({stream:"enqueue",chunk:e,transfers:r})}},close:function(){if(!this.isCancelled){this.isCancelled=!0;u({stream:"close"});delete r.streamSinks[i]}},error:function(e){if(!this.isCancelled){this.isCancelled=!0;u({stream:"error",reason:e})}},sinkCapability:c(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:n,ready:null};h.sinkCapability.resolve();h.ready=h.sinkCapability.promise;this.streamSinks[i]=h;l(a[0],[e.data,h],a[1]).then(function(){u({stream:"start_complete",success:!0})},function(e){u({stream:"start_complete",success:!1,reason:e})})},_processStreamMessage:function(e){var t=this,r=this.sourceName,a=e.sourceName,i=e.streamId,o=function(e){var n=e.stream,o=e.success,s=e.reason;t.comObj.postMessage({sourceName:r,targetName:a,stream:n,success:o,streamId:i,reason:s})},s=function(){Promise.all([t.streamControllers[e.streamId].startCall,t.streamControllers[e.streamId].pullCall,t.streamControllers[e.streamId].cancelCall].map(function(e){return e&&function(e){return Promise.resolve(e).catch(function(){})}(e.promise)})).then(function(){delete t.streamControllers[e.streamId]})};switch(e.stream){case"start_complete":h(this.streamControllers[e.streamId].startCall,e.success,u(e.reason));break;case"pull_complete":h(this.streamControllers[e.streamId].pullCall,e.success,u(e.reason));break;case"pull":if(!this.streamSinks[e.streamId]){o({stream:"pull_complete",success:!0});break}this.streamSinks[e.streamId].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[e.streamId].sinkCapability.resolve();this.streamSinks[e.streamId].desiredSize=e.desiredSize;l(this.streamSinks[e.streamId].onPull).then(function(){o({stream:"pull_complete",success:!0})},function(e){o({stream:"pull_complete",success:!1,reason:e})});break;case"enqueue":n(this.streamControllers[e.streamId],"enqueue should have stream controller");this.streamControllers[e.streamId].isClosed||this.streamControllers[e.streamId].controller.enqueue(e.chunk);break;case"close":n(this.streamControllers[e.streamId],"close should have stream controller");if(this.streamControllers[e.streamId].isClosed)break;this.streamControllers[e.streamId].isClosed=!0;this.streamControllers[e.streamId].controller.close();s();break;case"error":n(this.streamControllers[e.streamId],"error should have stream controller");this.streamControllers[e.streamId].controller.error(u(e.reason));s();break;case"cancel_complete":h(this.streamControllers[e.streamId].cancelCall,e.success,u(e.reason));s();break;case"cancel":if(!this.streamSinks[e.streamId])break;l(this.streamSinks[e.streamId].onCancel,[u(e.reason)]).then(function(){o({stream:"cancel_complete",success:!0})},function(e){o({stream:"cancel_complete",success:!1,reason:e})});this.streamSinks[e.streamId].sinkCapability.reject(u(e.reason));this.streamSinks[e.streamId].isCancelled=!0;delete this.streamSinks[e.streamId];break;default:throw new Error("Unexpected stream case")}},postMessage:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)},destroy:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}};t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.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};t.VERBOSITY_LEVELS=m;t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.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};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.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};t.FontType={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};t.AbortException=_;t.InvalidPDFException=y;t.MessageHandler=f;t.MissingDataException=C;t.MissingPDFException=w;t.NativeImageDecoding={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NotImplementedException=S;t.PageViewport=T;t.PasswordException=b;t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.StreamType={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9};t.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};t.UnexpectedResponseException=k;t.UnknownErrorException=v;t.Util=I;t.XRefParseException=x;t.FormatError=A;t.arrayByteLength=s;t.arraysToBytes=function(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,r,a,i=0,n=e.length;for(t=0;t=m.infos&&console.log("Info: "+e)};t.isArrayBuffer=function(e){return"object"===(void 0===e?"undefined":d(e))&&null!==e&&void 0!==e.byteLength};t.isBool=function(e){return"boolean"==typeof e};t.isEmptyObj=function(e){for(var t in e)return!1;return!0};t.isNum=function(e){return"number"==typeof e};t.isString=function(e){return"string"==typeof e};t.isSpace=function(e){return 32===e||9===e||13===e||10===e};t.isNodeJS=function(){return"object"===("undefined"==typeof process?"undefined":d(process))&&process+""=="[object process]"};t.isSameOrigin=function(e,t){try{var r=new URL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}var a=new URL(t,r);return r.origin===a.origin};t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null};t.isLittleEndian=function(){var e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0]};t.isEvalSupported=function(){try{new Function("");return!0}catch(e){return!1}};t.loadJpegStream=function(e,t,r){var i=new Image;i.onload=function(){r.resolve(e,i)};i.onerror=function(){r.resolve(e,null);a("Error during JPEG image loading")};i.src=t};t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))};t.readInt8=function(e,t){return e[t]<<24>>24};t.readUint16=function(e,t){return e[t]<<8|e[t+1]};t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0};t.removeNullCharacters=function(e){if("string"!=typeof e){a("The argument for removeNullCharacters must be a string.");return e}return e.replace(P,"")};t.ReadableStream=g.ReadableStream;t.setVerbosityLevel=function(e){p=e};t.shadow=function(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1});return r};t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)};t.stringToBytes=o;t.stringToPDFString=function(e){var t,r=e.length,a=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t=this.bytes,r=this.pos,a=this.end;if(!e)return t.subarray(r,a);var i=r+e;i>a&&(i=a);this.pos=i;return t.subarray(r,i)},peekByte:function(){var e=this.getByte();this.pos--;return e},peekBytes:function(e){var t=this.getBytes(e);this.pos-=t.length;return t},skip:function(e){e||(e=1);this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,r,a){return new e(this.bytes.buffer,t,r,a)}};return e}(),o=function(){function e(e){var t=(0,a.stringToBytes)(e);n.call(this,t)}e.prototype=n.prototype;return e}(),s=function(){function e(e){this.pos=0;this.bufferLength=0;this.eof=!1;this.buffer=t;this.minBufferLength=512;if(e)for(;this.minBufferLengtha&&(t=a)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}this.pos=t;return this.buffer.subarray(r,t)},peekByte:function(){var e=this.getByte();this.pos--;return e},peekBytes:function(e){var t=this.getBytes(e);this.pos-=t.length;return t},makeSubStream:function(e,t,r){for(var a=e+t;this.bufferLength<=a&&!this.eof;)this.readBlock();return new n(this.buffer,e,t,r)},skip:function(e){e||(e=1);this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}};return e}(),c=function(){function e(e){this.streams=e;s.call(this,null)}(e.prototype=Object.create(s.prototype)).readBlock=function(){var e=this.streams;if(0!==e.length){var t=e.shift().getBytes(),r=this.bufferLength,a=r+t.length;this.ensureBuffer(a).set(t,r);this.bufferLength=a}else this.eof=!0};e.prototype.getBaseStreams=function(){for(var e=[],t=0,r=this.streams.length;t>e;this.codeSize=i-=e;return t};e.prototype.getCode=function(e){for(var t,r=this.str,i=e[0],n=e[1],o=this.codeSize,s=this.codeBuf;o>16,u=65535&c;if(l<1||o>l;this.codeSize=o-l;return u};e.prototype.generateHuffmanTable=function(e){var t,r=e.length,a=0;for(t=0;ta&&(a=e[t]);for(var i=1<>=1}for(t=u;t>=1)){var u,h;if(1===l){u=n;h=o}else{if(2!==l)throw new a.FormatError("Unknown block type in flate stream");var f,d=this.getBits(5)+257,g=this.getBits(5)+1,m=this.getBits(4)+4,p=new Uint8Array(t.length);for(f=0;f0;)S[f++]=w}u=this.generateHuffmanTable(S.subarray(0,d));h=this.generateHuffmanTable(S.subarray(d,k))}for(var A=(e=this.buffer)?e.length:0,_=this.bufferLength;;){var P=this.getCode(u);if(P<256){_+1>=A&&(A=(e=this.ensureBuffer(_+1)).length);e[_++]=P}else{if(256===P){this.bufferLength=_;return}var I=(P=r[P-=257])>>16;I>0&&(I=this.getBits(I));s=(65535&P)+I;P=this.getCode(h);(I=(P=i[P])>>16)>0&&(I=this.getBits(I));var T=(65535&P)+I;_+s>=A&&(A=(e=this.ensureBuffer(_+s)).length);for(var O=0;O15))throw new a.FormatError("Unsupported predictor: "+n);this.readBlock=2===n?this.readBlockTiff:this.readBlockPng;this.str=e;this.dict=e.dict;var o=this.colors=r.get("Colors")||1,c=this.bits=r.get("BitsPerComponent")||8,l=this.columns=r.get("Columns")||1;this.pixBytes=o*c+7>>3;this.rowBytes=l*o*c+7>>3;s.call(this,t);return this}(e.prototype=Object.create(s.prototype)).readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),a=this.bits,i=this.colors,n=this.str.getBytes(e);this.eof=!n.length;if(!this.eof){var o,s=0,c=0,l=0,u=0,h=t;if(1===a&&1===i)for(o=0;o>1;f^=f>>2;s=(1&(f^=f>>4))<<7;r[h++]=f}else if(8===a){for(o=0;o>8&255;r[h++]=255&g}}else{var m=new Uint8Array(i+1),p=(1<>l-a)&p;l-=a;c=c<=8){r[v++]=c>>u-8&255;u-=8}}u>0&&(r[v++]=(c<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}};e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),i=this.str.getBytes(e);this.eof=!i.length;if(!this.eof){var n=this.bufferLength,o=this.ensureBuffer(n+e),s=o.subarray(n-e,n);0===s.length&&(s=new Uint8Array(e));var c,l,u,h=n;switch(r){case 0:for(c=0;c>1)+i[c];for(;c>1)+i[c]&255;h++}break;case 4:for(c=0;c0;e=(0,this.decrypt)(e,!t);var r,a=this.bufferLength,i=e.length,n=this.ensureBuffer(a+i);for(r=0;r=0;--i){r[n+i]=255&s;s>>=8}}}else this.eof=!0};return e}(),d=function(){function e(e,t){this.str=e;this.dict=e.dict;this.firstDigit=-1;t&&(t*=.5);s.call(this,t)}(e.prototype=Object.create(s.prototype)).readBlock=function(){var e=this.str.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,r=this.ensureBuffer(this.bufferLength+t),a=this.bufferLength,i=this.firstDigit,n=0,o=e.length;n=48&&c<=57)s=15&c;else{if(!(c>=65&&c<=70||c>=97&&c<=102)){if(62===c){this.eof=!0;break}continue}s=9+(15&c)}if(i<0)i=s;else{r[a++]=i<<4|s;i=-1}}if(i>=0&&this.eof){r[a++]=i<<4;i=-1}this.firstDigit=i;this.bufferLength=a}else this.eof=!0};return e}(),g=function(){function e(e,t){this.str=e;this.dict=e.dict;s.call(this,t)}(e.prototype=Object.create(s.prototype)).readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,a=e[0];if(a<128){(t=this.ensureBuffer(r+a+1))[r++]=e[1];if(a>0){var i=this.str.getBytes(a);t.set(i,r);r+=a}}else{a=257-a;var n=e[1];t=this.ensureBuffer(r+a+1);for(var o=0;o>>t&(1<0;if(b<256){f[0]=b;d=1}else{if(!(b>=258)){if(256===b){u=9;o=258;d=0;continue}this.eof=!0;delete this.lzwState;break}if(b=0;t--){f[t]=s[r];r=l[r]}else f[d++]=f[0]}if(v){l[o]=h;c[o]=c[h]+1;s[o]=f[0];u=++o+n&o+n-1?u:0|Math.min(Math.log(o+n)/.6931471805599453+1,12)}h=b;if(a<(g+=d)){do{a+=512}while(ad&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){var m,p=o<=8?new Uint8Array(d):new Uint16Array(d);for(l=0;l255?255:i;r[a]=r[a+1]=r[a+2]=i},getRgbBuffer:function(e,t,r,a,i,n,o){for(var s=255/((1<255?255:i;r[a+1]=n<0?0:n>255?255:n;r[a+2]=o<0?0:o>255?255:o},getRgbBuffer:function(e,t,r,a,i,n,o){if(8!==n||0!==o)for(var s=255/((1<255?255:l<0?0:l;a[i+1]=u>255?255:u<0?0:u;a[i+2]=h>255?255:h<0?0:h}function t(){this.name="DeviceCMYK";this.numComps=4;this.defaultColor=new Float32Array(this.numComps);this.defaultColor[3]=1}t.prototype={getRgb:n.prototype.getRgb,getRgbItem:function(t,r,a,i){e(t,r,1,a,i)},getRgbBuffer:function(t,r,a,i,n,o,s){for(var c=1/((1<8?Math.pow((e+16)/116,3):e*m}function s(e,a,n,s,m,p){var b=i(0,1,a[n]*p),v=i(0,1,a[n+1]*p),y=i(0,1,a[n+2]*p),w=Math.pow(b,e.GR),k=Math.pow(v,e.GG),S=Math.pow(y,e.GB),C=e.MXA*w+e.MXB*k+e.MXC*S,x=e.MYA*w+e.MYB*k+e.MYC*S,A=e.MZA*w+e.MZB*k+e.MZC*S,_=d;_[0]=C;_[1]=x;_[2]=A;var P=g;!function(e,r,a){if(1!==e[0]||1!==e[2]){var i=a;t(c,r,i);var n=f;!function(e,t,r){r[0]=1*t[0]/e[0];r[1]=1*t[1]/e[1];r[2]=1*t[2]/e[2]}(e,i,n);t(l,n,a)}else{a[0]=r[0];a[1]=r[1];a[2]=r[2]}}(e.whitePoint,_,P);var I=d;!function(e,t,r){if(0!==e[0]||0!==e[1]||0!==e[2]){var a=o(0),i=(1-a)/(1-o(e[0])),n=1-i,s=(1-a)/(1-o(e[1])),c=1-s,l=(1-a)/(1-o(e[2])),u=1-l;r[0]=t[0]*i+n;r[1]=t[1]*s+c;r[2]=t[2]*l+u}else{r[0]=t[0];r[1]=t[1];r[2]=t[2]}}(e.blackPoint,P,I);var T=g;!function(e,r,a){var i=a;t(c,r,i);var n=f;!function(e,t,r){r[0]=.95047*t[0]/e[0];r[1]=1*t[1]/e[1];r[2]=1.08883*t[2]/e[2]}(e,i,n);t(l,n,a)}(h,I,T);var O=d;t(u,T,O);var E=r(O[0]),F=r(O[1]),R=r(O[2]);s[m]=Math.round(255*E);s[m+1]=Math.round(255*F);s[m+2]=Math.round(255*R)}var c=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),l=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),u=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),h=new Float32Array([1,1,1]),f=new Float32Array(3),d=new Float32Array(3),g=new Float32Array(3),m=Math.pow(24/116,3)/8;e.prototype={getRgb:n.prototype.getRgb,getRgbItem:function(e,t,r,a){s(this,e,t,r,a,1)},getRgbBuffer:function(e,t,r,a,i,n,o){for(var c=1/((1<this.amax||this.bmin>this.bmax){(0,a.info)("Invalid Range, falling back to defaults");this.amin=-100;this.amax=100;this.bmin=-100;this.bmax=100}}function t(e){return e>=6/29?e*e*e:108/841*(e-4/29)}function r(e,t,r,a){return r+e*(a-r)/t}function i(e,a,i,n,o,s){var c=a[i],l=a[i+1],u=a[i+2];if(!1!==n){c=r(c,n,0,100);l=r(l,n,e.amin,e.amax);u=r(u,n,e.bmin,e.bmax)}var h,f,d,g=(c+16)/116,m=g+(l=l>e.amax?e.amax:le.bmax?e.bmax:u=1?255:255*Math.sqrt(h)|0;o[s+1]=f<=0?0:f>=1?255:255*Math.sqrt(f)|0;o[s+2]=d<=0?0:d>=1?255:255*Math.sqrt(d)|0}e.prototype={getRgb:n.prototype.getRgb,getRgbItem:function(e,t,r,a){i(this,e,t,!1,r,a)},getRgbBuffer:function(e,t,r,a,n,o,s){for(var c=(1<y;y++)if((p=t?v(o(g=e[y])[0],g[1]):v(e[y]))===l||p===u)return p}else for(m=b.call(e);!(g=m.next()).done;)if((p=i(m,v,g.value,t))===l||p===u)return p};h.BREAK=l;h.RETURN=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Parser=t.Linearization=t.Lexer=void 0;var a=r(2),i=r(0),n=r(1),o=r(127),s=r(129),c=r(41),l=r(132),u=function(){function e(e,t,r,a){this.lexer=e;this.allowStreams=t;this.xref=r;this.recoveryMode=a||!1;this.imageCache=Object.create(null);this.refill()}e.prototype={refill:function(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()},shift:function(){if((0,n.isCmd)(this.buf2,"ID")){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}},tryShift:function(){try{this.shift();return!0}catch(e){if(e instanceof i.MissingDataException)throw e;return!1}},getObj:function(e){var t=this.buf1;this.shift();if(t instanceof n.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!(0,n.isCmd)(this.buf1,"]")&&!(0,n.isEOF)(this.buf1);)r.push(this.getObj(e));if((0,n.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside array");return r}this.shift();return r;case"<<":for(var a=new n.Dict(this.xref);!(0,n.isCmd)(this.buf1,">>")&&!(0,n.isEOF)(this.buf1);)if((0,n.isName)(this.buf1)){var o=this.buf1.name;this.shift();if((0,n.isEOF)(this.buf1))break;a.set(o,this.getObj(e))}else{(0,i.info)("Malformed dictionary: key must be a name object");this.shift()}if((0,n.isEOF)(this.buf1)){if(!this.recoveryMode)throw new i.FormatError("End of file inside dictionary");return a}if((0,n.isCmd)(this.buf2,"stream"))return this.allowStreams?this.makeStream(a,e):a;this.shift();return a;default:return t}if(Number.isInteger(t)){var s=t;if(Number.isInteger(this.buf1)&&(0,n.isCmd)(this.buf2,"R")){var c=new n.Ref(s,this.buf1);this.shift();this.shift();return c}return s}if((0,i.isString)(t)){var l=t;e&&(l=e.decryptString(l));return l}return t},findDefaultInlineStreamEnd:function(e){for(var t=e.pos,r=0,a=void 0,n=void 0;-1!==(a=e.getByte());)if(0===r)r=69===a?1:0;else if(1===r)r=73===a?2:0;else{(0,i.assert)(2===r);if(32===a||10===a||13===a){n=e.pos;for(var o=e.peekBytes(10),s=0,c=o.length;s127)){r=0;break}if(2===r)break}else r=0}if(-1===a){(0,i.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(n){(0,i.warn)('... trying to recover by using the last "EI" occurrence.');e.skip(-(e.pos-n))}}return e.pos-4-t},findDCTDecodeInlineStreamEnd:function(e){for(var t,r,a,n=e.pos,o=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:o=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(r=e.getUint16())>2?e.skip(r-2):e.skip(-2)}if(o)break}a=e.pos-n;if(-1===t){(0,i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");e.skip(-a);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return a},findASCII85DecodeInlineStreamEnd:function(e){for(var t,r,a=e.pos;-1!==(t=e.getByte());)if(126===t&&62===e.peekByte()){e.skip();break}r=e.pos-a;if(-1===t){(0,i.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-r);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return r},findASCIIHexDecodeInlineStreamEnd:function(e){for(var t,r,a=e.pos;-1!==(t=e.getByte())&&62!==t;);r=e.pos-a;if(-1===t){(0,i.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-r);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return r},inlineStreamSkipEI:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break},makeInlineImage:function(e){for(var t=this.lexer.stream,r=new n.Dict(this.xref);!(0,n.isCmd)(this.buf1,"ID")&&!(0,n.isEOF)(this.buf1);){if(!(0,n.isName)(this.buf1))throw new i.FormatError("Dictionary key must be a name object");var a=this.buf1.name;this.shift();if((0,n.isEOF)(this.buf1))break;r.set(a,this.getObj(e))}var o,s=r.get("Filter","F");if((0,n.isName)(s))o=s.name;else if(Array.isArray(s)){var c=this.xref.fetchIfRef(s[0]);(0,n.isName)(c)&&(o=c.name)}var l,u,h,f=t.pos;l="DCTDecode"===o||"DCT"===o?this.findDCTDecodeInlineStreamEnd(t):"ASCII85Decode"===o||"A85"===o?this.findASCII85DecodeInlineStreamEnd(t):"ASCIIHexDecode"===o||"AHx"===o?this.findASCIIHexDecodeInlineStreamEnd(t):this.findDefaultInlineStreamEnd(t);var d,g=t.makeSubStream(f,l,r);if(l<1e3){var m=g.getBytes();g.reset();var p=1,b=0;for(u=0,h=m.length;u=9){f=!0;break}c++}if(f){h+=c;a.pos+=c;break}h+=g;a.pos+=g}if(!f)throw new i.FormatError("Missing endstream");s=h;r.nextChar();this.shift();this.shift()}this.shift();a=a.makeSubStream(o,s,e);t&&(a=t.createStream(a,s));(a=this.filter(a,e,s)).dict=e;return a},filter:function(e,t,r){var a=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,n.isName)(a)){Array.isArray(o)&&(0,i.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name.");return this.makeFilter(e,a.name,r,o)}var s=r;if(Array.isArray(a))for(var c=a,l=o,u=0,h=c.length;u=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var r=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,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,0,2,0,0,0,0,0,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,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];e.prototype={nextChar:function(){return this.currentChar=this.stream.getByte()},peekChar:function(){return this.stream.peekByte()},getNumber:function(){var e=this.currentChar,t=!1,r=0,a=1;if(45===e){a=-1;45===(e=this.nextChar())&&(e=this.nextChar())}else 43===e&&(e=this.nextChar());if(46===e){r=10;e=this.nextChar()}if(10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(e<48||e>57)throw new i.FormatError("Invalid number: "+String.fromCharCode(e)+" (charCode "+e+")");for(var n=e-48,o=0,s=1;(e=this.nextChar())>=0;)if(48<=e&&e<=57){var c=e-48;if(t)o=10*o+c;else{0!==r&&(r*=10);n=10*n+c}}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,i.warn)("Badly formatted number");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e){s=45===e?-1:1;this.nextChar()}else if(e<48||e>57)break;t=!0}0!==r&&(n/=r);t&&(n*=Math.pow(10,s*o));return a*n},getString:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var a=this.nextChar();;){var n=!1;switch(0|a){case-1:(0,i.warn)("Unterminated string");t=!0;break;case 40:++e;r.push("(");break;case 41:if(0==--e){this.nextChar();t=!0}else r.push(")");break;case 92:switch(a=this.nextChar()){case-1:(0,i.warn)("Unterminated string");t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&a;n=!0;if((a=this.nextChar())>=48&&a<=55){o=(o<<3)+(15&a);if((a=this.nextChar())>=48&&a<=55){n=!1;o=(o<<3)+(15&a)}}r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(a))}break;default:r.push(String.fromCharCode(a))}if(t)break;n||(a=this.nextChar())}return r.join("")},getName:function(){var e,a,o=this.strBuf;o.length=0;for(;(e=this.nextChar())>=0&&!r[e];)if(35===e){e=this.nextChar();if(r[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");o.push("#");break}var s=t(e);if(-1!==s){a=e;var c=t(e=this.nextChar());if(-1===c){(0,i.warn)("Lexer_getName: Illegal digit ("+String.fromCharCode(e)+") in hexadecimal number.");o.push("#",String.fromCharCode(a));if(r[e])break;o.push(String.fromCharCode(e));continue}o.push(String.fromCharCode(s<<4|c))}else o.push("#",String.fromCharCode(e))}else o.push(String.fromCharCode(e));o.length>127&&(0,i.warn)("name token is longer than allowed by the spec: "+o.length);return n.Name.get(o.join(""))},getHexString:function(){var e=this.strBuf;e.length=0;for(var a,n,o=this.currentChar,s=!0;;){if(o<0){(0,i.warn)("Unterminated hex string");break}if(62===o){this.nextChar();break}if(1!==r[o]){if(s){if(-1===(a=t(o))){(0,i.warn)('Ignoring invalid character "'+o+'" in hex string');o=this.nextChar();continue}}else{if(-1===(n=t(o))){(0,i.warn)('Ignoring invalid character "'+o+'" in hex string');o=this.nextChar();continue}e.push(String.fromCharCode(a<<4|n))}s=!s;o=this.nextChar()}else o=this.nextChar()}return e.join("")},getObj:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==r[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return n.Cmd.get("[");case 93:this.nextChar();return n.Cmd.get("]");case 60:if(60===(t=this.nextChar())){this.nextChar();return n.Cmd.get("<<")}return this.getHexString();case 62:if(62===(t=this.nextChar())){this.nextChar();return n.Cmd.get(">>")}return n.Cmd.get(">");case 123:this.nextChar();return n.Cmd.get("{");case 125:this.nextChar();return n.Cmd.get("}");case 41:this.nextChar();throw new i.FormatError("Illegal character: "+t)}for(var a=String.fromCharCode(t),o=this.knownCommands,s=o&&void 0!==o[a];(t=this.nextChar())>=0&&!r[t];){var c=a+String.fromCharCode(t);if(s&&void 0===o[c])break;if(128===a.length)throw new i.FormatError("Command token too long: "+a.length);a=c;s=o&&void 0!==o[a]}return"true"===a||"false"!==a&&("null"===a?null:n.Cmd.get(a))},skipToNextLine:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}};return e}(),f={create:function(e){function t(e,t){var r=f.get(e);if(Number.isInteger(r)&&(t?r>=0:r>0))return r;throw new Error('The "'+e+'" parameter in the linearization dictionary is invalid.')}var r,a,o=new u(new h(e),!1,null),s=o.getObj(),c=o.getObj(),l=o.getObj(),f=o.getObj();if(!(Number.isInteger(s)&&Number.isInteger(c)&&(0,n.isCmd)(l,"obj")&&(0,n.isDict)(f)&&(0,i.isNum)(r=f.get("Linearized"))&&r>0))return null;if((a=t("L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:a,hints:function(){var e,t,r=f.get("H");if(Array.isArray(r)&&(2===(e=r.length)||4===e)){for(var a=0;a0))throw new Error("Hint ("+a+") in the linearization dictionary is invalid.");return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(),objectNumberFirst:t("O"),endFirst:t("E"),numPages:t("N"),mainXRefEntriesOffset:t("T"),pageFirst:f.has("P")?t("P",!0):0}}};t.Lexer=h;t.Linearization=f;t.Parser=u},function(e,t,r){"use strict";var a=r(3),i=r(5).document,n=a(i)&&a(i.createElement);e.exports=function(e){return n?i.createElement(e):{}}},function(e,t,r){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var a=r(18);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,r){"use strict";e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){"use strict";var a=r(32),i=Math.min;e.exports=function(e){return e>0?i(a(e),9007199254740991):0}},function(e,t,r){"use strict";var a=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:a)(e)}},function(e,t,r){"use strict";var a=r(47)("keys"),i=r(22);e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,r){"use strict";t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var a=r(18),i=r(4)("toStringTag"),n="Arguments"==a(function(){return arguments}());e.exports=function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:n?a(t):"Object"==(o=a(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,r){"use strict";var a=r(30);e.exports=function(e){return Object(a(e))}},function(e,t,r){"use strict";e.exports=function(e,t,r,a){if(!(e instanceof t)||void 0!==a&&a in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){"use strict";var a=r(16);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,a){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e;r=a});this.resolve=a(t);this.reject=a(r)}(e)}},function(e,t,r){"use strict";var a=r(10);e.exports=function(e,t,r){for(var i in t)a(e,i,t[i],r);return e}},function(e,t,r){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(22)("meta"),n=r(3),o=r(9),s=r(15).f,c=0,l=Object.isExtensible||function(){return!0},u=!r(14)(function(){return l(Object.preventExtensions({}))}),h=function(e){s(e,i,{value:{i:"O"+ ++c,w:{}}})},f=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!n(e))return"symbol"==(void 0===e?"undefined":a(e))?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";h(e)}return e[i].i},getWeak:function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;h(e)}return e[i].w},onFreeze:function(e){u&&f.NEED&&l(e)&&!o(e,i)&&h(e);return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.JpegStream=void 0;var a=r(0),i=r(2),n=r(1),o=r(131),s=function(){function e(e,t,r,a){for(var n=void 0;-1!==(n=e.getByte());)if(255===n){e.skip(-1);break}this.stream=e;this.maybeLength=t;this.dict=r;this.params=a;i.DecodeStream.call(this,t)}e.prototype=Object.create(i.DecodeStream.prototype);Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});e.prototype.ensureBuffer=function(e){};e.prototype.readBlock=function(){if(!this.eof){var e=new o.JpegImage,t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,a=t.length,i=new Int32Array(a),s=!1,c=(1<0&&void 0!==arguments[0]&&arguments[0];return(0,a.createObjectURL)(this.bytes,"image/jpeg",e)};return e}();t.JpegStream=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.OperatorList=void 0;var a=r(0),i=function(){function e(e,t,r,a,i){for(var n=e,o=0,s=t.length-1;o1e3){h=Math.max(h,g);m+=d+2;g=0;d=0}f.push({transform:p,x:g,y:m,w:b.width,h:b.height});g+=b.width+2;d=Math.max(d,b.height)}var v=Math.max(h,g)+1,y=m+d+1,w=new Uint8Array(v*y*4),k=v<<2;for(u=0;u=0;){S[A-4]=S[A];S[A-3]=S[A+1];S[A-2]=S[A+2];S[A-1]=S[A+3];S[A+C]=S[A+C-4];S[A+C+1]=S[A+C-3];S[A+C+2]=S[A+C-2];S[A+C+3]=S[A+C-1];A-=k}}r.splice(o,4*l,a.OPS.paintInlineImageXObjectGroup);i.splice(o,4*l,[{width:v,height:y,kind:a.ImageKind.RGBA_32BPP,data:w},f]);return o+1});e(r,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],null,function(e,t){var r=e.fnArray;switch((t-(e.iCurr-3))%4){case 0:return r[t]===a.OPS.save;case 1:return r[t]===a.OPS.transform;case 2:return r[t]===a.OPS.paintImageMaskXObject;case 3:return r[t]===a.OPS.restore}},function(e,t){var r=e.fnArray,i=e.argsArray,n=e.iCurr,o=n-3,s=n-2,c=n-1,l=Math.floor((t-o)/4);if((l=function(e,t,r,i){for(var n=e+2,o=0;o=4&&r[n-4]===r[o]&&r[n-3]===r[s]&&r[n-2]===r[c]&&r[n-1]===r[l]&&a[n-4][0]===u&&a[n-4][1]===h){f++;d-=5}for(var g=d+4,m=1;m=(a=e.length))break}if((i=(i||r)[e[t]])&&!Array.isArray(i)){o.iCurr=t;t++;if(!i.checkFn||(0,i.checkFn)(o)){n=i;i=null}else i=null}else t++}this.state=i;this.match=n;this.lastProcessed=t}else this.lastProcessed=a},push:function(e,t){this.queue.fnArray.push(e);this.queue.argsArray.push(t);this._optimize()},flush:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e);this.match=null;this.state=null;this._optimize()}},reset:function(){this.state=null;this.match=null;this.lastProcessed=0}};return t}(),n=function(){function e(e){this.queue=e}e.prototype={push:function(e,t){this.queue.fnArray.push(e);this.queue.argsArray.push(t)},flush:function(){}};return e}(),o=function(){function e(e,t,r){this.messageHandler=t;this.fnArray=[];this.argsArray=[];t&&"oplist"!==this.intent?this.optimizer=new i(this):this.optimizer=new n(this);this.dependencies=Object.create(null);this._totalLength=0;this.pageIndex=r;this.intent=e;this.weight=0}e.prototype={get length(){return this.argsArray.length},get totalLength(){return this._totalLength+this.length},addOp:function(e,t){this.optimizer.push(e,t);this.weight++;this.messageHandler&&(this.weight>=1e3?this.flush():this.weight>=995&&(e===a.OPS.restore||e===a.OPS.endText)&&this.flush())},addDependency:function(e){if(!(e in this.dependencies)){this.dependencies[e]=!0;this.addOp(a.OPS.dependency,[e])}},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(e){a.Util.extendObj(this.dependencies,e.dependencies);for(var t=0,r=e.length;tu;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){"use strict";var a=r(5),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,r){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){"use strict";var a=r(4)("unscopables"),i=Array.prototype;void 0==i[a]&&r(12)(i,a,{});e.exports=function(e){i[a][e]=!0}},function(e,t,r){"use strict";var a=r(35),i={};i[r(4)("toStringTag")]="z";i+""!="[object z]"&&r(10)(Object.prototype,"toString",function(){return"[object "+a(this)+"]"},!0)},function(e,t,r){"use strict";var a=r(52),i=r(6),n=r(10),o=r(12),s=r(9),c=r(19),l=r(92),u=r(24),h=r(95),f=r(4)("iterator"),d=!([].keys&&"next"in[].keys()),g=function(){return this};e.exports=function(e,t,r,m,p,b,v){l(r,t,m);var y,w,k,S=function(e){if(!d&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",x="values"==p,A=!1,_=e.prototype,P=_[f]||_["@@iterator"]||p&&_[p],I=!d&&P||S(p),T=p?x?S("entries"):I:void 0,O="Array"==t?_.entries||P:P;if(O&&(k=h(O.call(new e)))!==Object.prototype&&k.next){u(k,C,!0);a||s(k,f)||o(k,f,g)}if(x&&P&&"values"!==P.name){A=!0;I=function(){return P.call(this)}}a&&!v||!d&&!A&&_[f]||o(_,f,I);c[t]=I;c[C]=g;if(p){y={values:x?I:S("values"),keys:b?I:S("keys"),entries:T};if(v)for(w in y)w in _||n(_,w,y[w]);else i(i.P+i.F*(d||A),t,y)}return y}},function(e,t,r){"use strict";e.exports=!1},function(e,t,r){"use strict";var a=r(5).document;e.exports=a&&a.documentElement},function(e,t,r){"use strict";for(var a=r(96),i=r(23),n=r(10),o=r(5),s=r(12),c=r(19),l=r(4),u=l("iterator"),h=l("toStringTag"),f=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},g=i(d),m=0;mr;)t.push(arguments[r++]);b[++p]=function(){s("function"==typeof e?e:Function(e),t)};a(p);return p};d=function(e){delete b[e]};if("process"==r(18)(h))a=function(e){h.nextTick(o(v,e,1))};else if(m&&m.now)a=function(e){m.now(o(v,e,1))};else if(g){n=(i=new g).port2;i.port1.onmessage=y;a=o(n.postMessage,n,1)}else if(u.addEventListener&&"function"==typeof postMessage&&!u.importScripts){a=function(e){u.postMessage(e+"","*")};u.addEventListener("message",y,!1)}else a="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this);v.call(e)}}:function(e){setTimeout(o(v,e,1),0)}}e.exports={set:f,clear:d}},function(e,t,r){"use strict";e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){"use strict";var a=r(8),i=r(3),n=r(38);e.exports=function(e,t){a(e);if(i(t)&&t.constructor===e)return t;var r=n.f(e);(0,r.resolve)(t);return r.promise}},function(e,t,r){"use strict";var a=r(4)("iterator"),i=!1;try{var n=[7][a]();n.return=function(){i=!0};Array.from(n,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n=[7],o=n[a]();o.next=function(){return{done:r=!0}};n[a]=function(){return o};e(n)}catch(e){}return r}},function(e,t,r){"use strict";var a=r(11),i=r(29),n=r(36),o=r(31),s=r(109);e.exports=function(e,t){var r=1==e,c=2==e,l=3==e,u=4==e,h=6==e,f=5==e||h,d=t||s;return function(t,s,g){for(var m,p,b=n(t),v=i(b),y=a(s,g,3),w=o(v.length),k=0,S=r?d(t,w):c?d(t,0):void 0;w>k;k++)if(f||k in v){p=y(m=v[k],k,b);if(e)if(r)S[k]=p;else if(p)switch(e){case 3:return!0;case 5:return m;case 6:return k;case 2:S.push(m)}else if(u)return!1}return h?-1:l||u?u:S}}},function(e,t,r){"use strict";var a=r(3);e.exports=function(e,t){if(!a(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ChunkedStreamManager=t.ChunkedStream=void 0;var a=r(0),i=function(){function e(e,t,r){this.bytes=new Uint8Array(e);this.start=0;this.pos=0;this.end=e;this.chunkSize=t;this.loadedChunks=[];this.numChunksLoaded=0;this.numChunks=Math.ceil(e/t);this.manager=r;this.progressiveDataLength=0;this.lastSuccessfulEnsureByteChunk=-1}e.prototype={getMissingChunks:function(){for(var e=[],t=0,r=this.numChunks;t=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(a=r;a=t||t<=this.progressiveDataLength))for(var r=this.chunkSize,i=Math.floor(e/r),n=Math.floor((t-1)/r)+1,o=i;o=this.end)return-1;this.ensureByte(e);return this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t=this.bytes,r=this.pos,a=this.end;if(!e){this.ensureRange(r,a);return t.subarray(r,a)}var i=r+e;i>a&&(i=a);this.ensureRange(r,i);this.pos=i;return t.subarray(r,i)},peekByte:function(){var e=this.getByte();this.pos--;return e},peekBytes:function(e){var t=this.getBytes(e);this.pos-=t.length;return t},getByteRange:function(e,t){this.ensureRange(e,t);return this.bytes.subarray(e,t)},skip:function(e){e||(e=1);this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(e,t,r){function a(){}this.ensureRange(e,e+t);(a.prototype=Object.create(this)).getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,a=[],i=t;i=0&&a+1!==n){t.push({beginChunk:r,endChunk:a+1});r=n}i+1===e.length&&t.push({beginChunk:r,endChunk:n+1});a=n}return t},onProgress:function(e){var t=this.stream.numChunksLoaded*this.chunkSize+e.loaded;this.msgHandler.send("DocProgress",{loaded:t,total:this.length})},onReceiveData:function(e){var t=e.chunk,r=void 0===e.begin,i=r?this.progressiveDataLength:e.begin,n=i+t.byteLength,o=Math.floor(i/this.chunkSize),s=n0;){var l=a.shift(),h=s.fetchIfRef(l.obj);if(null!==h){if(!h.has("Title"))throw new n.FormatError("Invalid outline item");var f={url:null,dest:null};e.parseDestDictionary({destDict:h,resultObj:f,docBaseUrl:this.pdfManager.docBaseUrl});var d=h.get("Title"),g=h.get("F")||0,m=h.getArray("C"),p=c;!Array.isArray(m)||3!==m.length||0===m[0]&&0===m[1]&&0===m[2]||(p=u.ColorSpace.singletons.rgb.getRgb(m,0));var b={dest:f.dest,url:f.url,unsafeUrl:f.unsafeUrl,newWindow:f.newWindow,title:(0,n.stringToPDFString)(d),color:p,count:h.get("Count"),bold:!!(2&g),italic:!!(1&g),items:[]};l.parent.items.push(b);t=h.getRaw("First");if((0,o.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:b});i.put(t)}t=h.getRaw("Next");if((0,o.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:l.parent});i.put(t)}}}return r.items.length>0?r.items:null},get numPages(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new n.FormatError("page count in top level pages object is not an integer");return(0,n.shadow)(this,"numPages",e)},get destinations(){function e(e){return(0,o.isDict)(e)?e.get("D"):e}var t,r,a=this.xref,i={},s=this.catDict.get("Names");s&&s.has("Dests")?t=s.getRaw("Dests"):this.catDict.has("Dests")&&(r=this.catDict.get("Dests"));r&&(s=r).forEach(function(t,r){r&&(i[t]=e(r))});if(t){var c=new g(t,a).getAll();for(var l in c)i[l]=e(c[l])}return(0,n.shadow)(this,"destinations",i)},getDestination:function(e){function t(e){return(0,o.isDict)(e)?e.get("D"):e}var r,a,i=this.xref,n=null,s=this.catDict.get("Names");s&&s.has("Dests")?r=s.getRaw("Dests"):this.catDict.has("Dests")&&(a=this.catDict.get("Dests"));if(a){var c=a.get(e);c&&(n=t(c))}if(r){n=t(new g(r,i).get(e))}return n},get pageLabels(){var e=null;try{e=this.readPageLabels()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)},readPageLabels:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,a="",i=new m(e,this.xref).getAll(),s="",c=1,l=0,u=this.numPages;l=1))throw new n.FormatError("Invalid start in PageLabel dictionary.");c=p||1}switch(r){case"D":s=c;break;case"R":case"r":s=n.Util.toRoman(c,"r"===r);break;case"A":case"a":for(var b="a"===r?97:65,v=c-1,y=String.fromCharCode(b+v%26),w=[],k=0,S=v/26|0;k<=S;k++)w.push(y);s=w.join("");break;default:if(r)throw new n.FormatError('Invalid style "'+r+'" in PageLabel dictionary.')}t[l]=a+s;s="";c++}return t},get pageMode(){var e=this.catDict.get("PageMode"),t="UseNone";if((0,o.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,n.shadow)(this,"pageMode",t)},get attachments(){var e,t=this.xref,r=null,a=this.catDict.get("Names");a&&(e=a.getRaw("EmbeddedFiles"));if(e){var i=new g(e,t).getAll();for(var o in i){var s=new p(i[o],t);r||(r=Object.create(null));r[(0,n.stringToPDFString)(o)]=s.serializable}}return(0,n.shadow)(this,"attachments",r)},get javaScript(){function e(e){var t=e.get("S");if((0,o.isName)(t,"JavaScript")){var r=e.get("JS");if((0,o.isStream)(r))r=(0,n.bytesToString)(r.getBytes());else if(!(0,n.isString)(r))return;a||(a=[]);a.push((0,n.stringToPDFString)(r))}}var t=this.xref,r=this.catDict.get("Names"),a=null;if(r&&r.has("JavaScript")){var i=new g(r.getRaw("JavaScript"),t).getAll();for(var s in i){var c=i[s];(0,o.isDict)(c)&&e(c)}}var l=this.catDict.get("OpenAction");if((0,o.isDict)(l,"Action")){var u=l.get("S");if((0,o.isName)(u,"Named")){var h=l.get("N");if((0,o.isName)(h,"Print")){a||(a=[]);a.push("print({});")}}else e(l)}return(0,n.shadow)(this,"javaScript",a)},cleanup:function(){var e=this;this.pageKidsCountCache.clear();var t=[];this.fontCache.forEach(function(e){t.push(e)});return Promise.all(t).then(function(t){for(var r=0,a=t.length;r0&&s+r=0;d--)i.push(f[d])}}a.reject(new Error("Page index "+e+" not found."))}var r,a=(0,n.createPromiseCapability)(),i=[this.catDict.getRaw("Pages")],s=0,c=this.xref,l=this.pageKidsCountCache;t();return a.promise},getPageIndex:function(e){function t(i){return function(t){var a,i=0;return r.fetchAsync(t).then(function(r){if((0,o.isRefsEqual)(t,e)&&!(0,o.isDict)(r,"Page")&&(!(0,o.isDict)(r)||r.has("Type")||!r.has("Contents")))throw new n.FormatError("The reference does not point to a /Page Dict.");if(!r)return null;if(!(0,o.isDict)(r))throw new n.FormatError("node must be a Dict.");a=r.getRaw("Parent");return r.getAsync("Parent")}).then(function(e){if(!e)return null;if(!(0,o.isDict)(e))throw new n.FormatError("parent must be a Dict.");return e.getAsync("Kids")}).then(function(e){if(!e)return null;for(var s=[],c=!1,l=0;l0;){var u=l[0],h=l[1];if(!Number.isInteger(u)||!Number.isInteger(h))throw new n.FormatError("Invalid XRef range fields: "+u+", "+h);if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(c))throw new n.FormatError("Invalid XRef entry fields length: "+u+", "+h);for(t=a.entryNum;t=e.length);){n+=String.fromCharCode(o);o=e[t]}return n}function t(e,t,r){for(var a=r.length,i=e.length,n=0;t=a)break;t++;n++}return n}var r=10,a=13,i=60,c=/^(\d+)\s+(\d+)\s+obj\b/,l=new Uint8Array([116,114,97,105,108,101,114]),u=new Uint8Array([115,116,97,114,116,120,114,101,102]),h=new Uint8Array([101,110,100,111,98,106]),f=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var d=this.stream;d.pos=0;for(var g=d.getBytes(),m=d.start,p=g.length,b=[],v=[];m=p)break;y=g[m]}while(y!==r&&y!==a);else++m}var A,_;for(A=0,_=v.length;A<_;++A){this.startXRefQueue.push(v[A]);this.readXRef(!0)}var P;for(A=0,_=b.length;A<_;++A){d.pos=b[A];var I=new s.Parser(new s.Lexer(d),!0,this,!0),T=I.getObj();if((0,o.isCmd)(T,"trailer")){P=I.getObj();if((0,o.isDict)(P)&&P.has("ID"))return P}}if(P)return P;throw new n.InvalidPDFException("Invalid PDF structure")},readXRef:function(e){var t=this.stream,r=Object.create(null);try{for(;this.startXRefQueue.length;){var a=this.startXRefQueue[0];if(r[a]){(0,n.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift()}else{r[a]=!0;t.pos=a+t.start;var i,c=new s.Parser(new s.Lexer(t),!0,this),l=c.getObj();if((0,o.isCmd)(l,"xref")){i=this.processXRefTable(c);this.topDict||(this.topDict=i);l=i.get("XRefStm");if(Number.isInteger(l)){var u=l;if(!(u in this.xrefstms)){this.xrefstms[u]=1;this.startXRefQueue.push(u)}}}else{if(!Number.isInteger(l))throw new n.FormatError("Invalid XRef stream header");if(!Number.isInteger(c.getObj())||!(0,o.isCmd)(c.getObj(),"obj")||!(0,o.isStream)(l=c.getObj()))throw new n.FormatError("Invalid XRef stream");i=this.processXRefStream(l);this.topDict||(this.topDict=i);if(!i)throw new n.FormatError("Failed to read XRef stream")}l=i.get("Prev");Number.isInteger(l)?this.startXRefQueue.push(l):(0,o.isRef)(l)&&this.startXRefQueue.push(l.num);this.startXRefQueue.shift()}}return this.topDict}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.info)("(while reading XRef): "+e)}if(!e)throw new n.XRefParseException},getEntry:function(e){var t=this.entries[e];return t&&!t.free&&t.offset?t:null},fetchIfRef:function(e,t){return(0,o.isRef)(e)?this.fetch(e,t):e},fetch:function(e,t){if(!(0,o.isRef)(e))throw new Error("ref object is not a reference");var r=e.num;if(r in this.cache){var a=this.cache[r];a instanceof o.Dict&&!a.objId&&(a.objId=e.toString());return a}var i=this.getEntry(r);if(null===i)return this.cache[r]=null;i=i.uncompressed?this.fetchUncompressed(e,i,t):this.fetchCompressed(i,t);(0,o.isDict)(i)?i.objId=e.toString():(0,o.isStream)(i)&&(i.dict.objId=e.toString());return i},fetchUncompressed:function(e,t,r){var a=e.gen,i=e.num;if(t.gen!==a)throw new n.FormatError("inconsistent generation in XRef");var c=this.stream.makeSubStream(t.offset+this.stream.start),l=new s.Parser(new s.Lexer(c),!0,this),u=l.getObj(),h=l.getObj(),f=l.getObj();Number.isInteger(u)||(u=parseInt(u,10));Number.isInteger(h)||(h=parseInt(h,10));if(u!==i||h!==a||!(0,o.isCmd)(f))throw new n.FormatError("bad XRef entry");if("obj"!==f.cmd){if(0===f.cmd.indexOf("obj")){i=parseInt(f.cmd.substring(3),10);if(!Number.isNaN(i))return i}throw new n.FormatError("bad XRef entry")}t=this.encrypt&&!r?l.getObj(this.encrypt.createCipherTransform(i,a)):l.getObj();(0,o.isStream)(t)||(this.cache[i]=t);return t},fetchCompressed:function(e,t){var r=e.offset,a=this.fetch(new o.Ref(r,0));if(!(0,o.isStream)(a))throw new n.FormatError("bad ObjStm stream");var i=a.dict.get("First"),c=a.dict.get("N");if(!Number.isInteger(i)||!Number.isInteger(c))throw new n.FormatError("invalid first and n parameters for ObjStm stream");var l=new s.Parser(new s.Lexer(a),!1,this);l.allowStreams=!0;var u,h,f=[],d=[];for(u=0;u0;){var i,s,c=t.fetchIfRef(a.shift());if((0,o.isDict)(c))if(c.has("Kids")){var l=c.get("Kids");for(i=0,s=l.length;i10){(0,n.warn)('Search depth limit reached for "'+this._type+'" tree.');return null}var c=o.get("Kids");if(!Array.isArray(c))return null;t=0;r=c.length-1;for(;t<=r;){a=t+r>>1;var l=i.fetchIfRef(c[a]).get("Limits");if(ei.fetchIfRef(l[1]))){o=i.fetchIfRef(c[a]);break}t=a+1}}if(t>r)return null}var u=o.get(this._type);if(Array.isArray(u)){t=0;r=u.length-2;for(;t<=r;){a=t+r&-2;var h=i.fetchIfRef(u[a]);if(eh))return i.fetchIfRef(u[a+1]);t=a+2}}}return null}};return e}(),g=function(){function e(e,t){this.root=e;this.xref=t;this._type="Names"}n.Util.inherit(e,d,{});return e}(),m=function(){function e(e,t){this.root=e;this.xref=t;this._type="Nums"}n.Util.inherit(e,d,{});return e}(),p=function(){function e(e,t){if(e&&(0,o.isDict)(e)){this.xref=t;this.root=e;e.has("FS")&&(this.fs=e.get("FS"));this.description=e.has("Desc")?(0,n.stringToPDFString)(e.get("Desc")):"";e.has("RF")&&(0,n.warn)("Related file specifications are not supported");this.contentAvailable=!0;if(!e.has("EF")){this.contentAvailable=!1;(0,n.warn)("Non-embedded file specifications are not supported")}}}function t(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}e.prototype={get filename(){if(!this._filename&&this.root){var e=t(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=t(this.root.get("EF")));var e=null;if(this.contentRef){var r=this.xref.fetchIfRef(this.contentRef);r&&(0,o.isStream)(r)?e=r.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return e},get serializable(){return{filename:this.filename,content:this.content}}};return e}(),b=function(){function e(e){return(0,o.isRef)(e)||(0,o.isDict)(e)||Array.isArray(e)||(0,o.isStream)(e)}function t(t,r){if((0,o.isDict)(t)||(0,o.isStream)(t))for(var a=(0,o.isDict)(t)?t:t.dict,i=a.getKeys(),n=0,s=i.length;n>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}var t=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];e.prototype={byteIn:function(){var e=this.data,t=this.bp;if(255===e[t]){if(e[t+1]>143){this.clow+=65280;this.ct=8}else{t++;this.clow+=e[t]<<9;this.ct=7;this.bp=t}}else{t++;this.clow+=t65535){this.chigh+=this.clow>>16;this.clow&=65535}},readBit:function(e,r){var a,i=e[r]>>1,n=1&e[r],o=t[i],s=o.qe,c=this.a-s;if(this.chigh>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&c));this.a=c;e[r]=i<<1|n;return a}};return e}();t.ArithmeticDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.JpxImage=void 0;var a=r(0),i=r(64),n=function(){function e(e){this.message="JPX error: "+e}(e.prototype=new Error).name="JpxError";e.constructor=e;return e}(),o=function(){function e(){this.failOnCorruptedImage=!1}function t(e,t,r){var a=t.codingStyleParameters,i={};if(a.entropyCoderWithCustomPrecincts){i.PPx=a.precinctsSizes[r].PPx;i.PPy=a.precinctsSizes[r].PPy}else{i.PPx=15;i.PPy=15}i.xcb_=r>0?Math.min(a.xcb,i.PPx-1):Math.min(a.xcb,i.PPx);i.ycb_=r>0?Math.min(a.ycb,i.PPy-1):Math.min(a.ycb,i.PPy);return i}function r(e,t,r){var a=1<t.trx0?Math.ceil(t.trx1/a)-Math.floor(t.trx0/a):0,l=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,u=c*l;t.precinctParameters={precinctWidth:a,precinctHeight:i,numprecinctswide:c,numprecinctshigh:l,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function o(e,t,r){var a,i,n,o,s=r.xcb_,c=r.ycb_,l=1<>s,f=t.tby0>>c,d=t.tbx1+l-1>>s,g=t.tby1+u-1>>c,m=t.resolution.precinctParameters,p=[],b=[];for(i=f;iv.cbxMax&&(v.cbxMax=a);iv.cbyMax&&(v.cbyMax=i)}else b[o]=v={cbxMin:a,cbyMin:i,cbxMax:a,cbyMax:i};n.precinct=v}}t.codeblockParameters={codeblockWidth:s,codeblockHeight:c,numcodeblockwide:d-h+1,numcodeblockhigh:g-f+1};t.codeblocks=p;t.precincts=b}function s(e,t,r){for(var a=[],i=e.subbands,n=0,o=i.length;n=0;--p){var b=c.resolutions[p],v=m*b.precinctParameters.precinctWidth,y=m*b.precinctParameters.precinctHeight;h=Math.min(h,v);f=Math.min(f,y);d=Math.max(d,b.precinctParameters.numprecinctswide);g=Math.max(g,b.precinctParameters.numprecinctshigh);u[p]={width:v,height:y};m<<=1}r=Math.min(r,h);a=Math.min(a,f);i=Math.max(i,d);n=Math.max(n,g);o[s]={resolutions:u,minWidth:h,minHeight:f,maxNumWide:d,maxNumHigh:g}}return{components:o,minWidth:r,minHeight:a,maxNumWide:i,maxNumHigh:n}}function u(e){for(var a=e.SIZ,i=e.currentTile.index,u=e.tiles[i],h=a.Csiz,f=0;fe.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[h],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){var o=e.resolutions[r],c=o.precinctParameters.numprecincts;if(!(i>=c)){for(;t=o?B:B*(1<0?1-w:0)}var T=k.subbands[A],O=d[T.type];h(x,S,0,T,g?1:Math.pow(2,f+O-I)*(1+P/2048),l+I-1,g,u)}p.push({width:S,height:C,items:x})}var E=m.calculate(p,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:E.width,height:E.height,items:E.items}}var d={LL:0,LH:1,HL:1,HH:2};e.prototype={parse:function(e){if(65359!==(0,a.readUint16)(e,0))for(var t=0,r=e.length;t>24&255,s>>16&255,s>>8&255,255&s);(0,a.warn)("Unsupported header type "+s+" ("+f+")")}l&&(t+=c)}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){for(var t=e.getByte();t>=0;){if(65361===(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,o=e.getInt32()>>>0;e.skip(16);var s=e.getUint16();this.width=r-i;this.height=a-o;this.componentsCount=s;this.bitsPerComponent=8;return}}throw new n("No size marker found in JPX stream")},parseCodestream:function(e,t,r){var i={},o=!1;try{for(var s=t;s+1>5;d=[];for(;l>3;_.mu=0}else{_.epsilon=e[l]>>3;_.mu=(7&e[l])<<8|e[l+1];l+=2}d.push(_)}A.SPqcds=d;if(i.mainHeader)i.QCD=A;else{i.currentTile.QCD=A;i.currentTile.QCC=[]}break;case 65373:y=(0,a.readUint16)(e,s);var P={};l=s+2;var I;if(i.SIZ.Csiz<257)I=e[l++];else{I=(0,a.readUint16)(e,l);l+=2}switch(31&(h=e[l++])){case 0:p=8;b=!0;break;case 1:p=16;b=!1;break;case 2:p=16;b=!0;break;default:throw new Error("Invalid SQcd value "+h)}P.noQuantization=8===p;P.scalarExpounded=b;P.guardBits=h>>5;d=[];for(;l>3;_.mu=0}else{_.epsilon=e[l]>>3;_.mu=(7&e[l])<<8|e[l+1];l+=2}d.push(_)}P.SPqcds=d;i.mainHeader?i.QCC[I]=P:i.currentTile.QCC[I]=P;break;case 65362:y=(0,a.readUint16)(e,s);var T={};l=s+2;var O=e[l++];T.entropyCoderWithCustomPrecincts=!!(1&O);T.sopMarkerUsed=!!(2&O);T.ephMarkerUsed=!!(4&O);T.progressionOrder=e[l++];T.layersCount=(0,a.readUint16)(e,l);l+=2;T.multipleComponentTransform=e[l++];T.decompositionLevelsCount=e[l++];T.xcb=2+(15&e[l++]);T.ycb=2+(15&e[l++]);var E=e[l++];T.selectiveArithmeticCodingBypass=!!(1&E);T.resetContextProbabilities=!!(2&E);T.terminationOnEachCodingPass=!!(4&E);T.verticalyStripe=!!(8&E);T.predictableTermination=!!(16&E);T.segmentationSymbolUsed=!!(32&E);T.reversibleTransformation=e[l++];if(T.entropyCoderWithCustomPrecincts){for(var F=[];l>4})}T.precinctsSizes=F}var B=[];T.selectiveArithmeticCodingBypass&&B.push("selectiveArithmeticCodingBypass");T.resetContextProbabilities&&B.push("resetContextProbabilities");T.terminationOnEachCodingPass&&B.push("terminationOnEachCodingPass");T.verticalyStripe&&B.push("verticalyStripe");T.predictableTermination&&B.push("predictableTermination");if(B.length>0){o=!0;throw new Error("Unsupported COD options ("+B.join(", ")+")")}if(i.mainHeader)i.COD=T;else{i.currentTile.COD=T;i.currentTile.COC=[]}break;case 65424:y=(0,a.readUint16)(e,s);(v={}).index=(0,a.readUint16)(e,s+2);v.length=(0,a.readUint32)(e,s+4);v.dataEnd=v.length+s-2;v.partIndex=e[s+8];v.partsCount=e[s+9];i.mainHeader=!1;if(0===v.partIndex){v.COD=i.COD;v.COC=i.COC.slice(0);v.QCD=i.QCD;v.QCC=i.QCC.slice(0)}i.currentTile=v;break;case 65427:if(0===(v=i.currentTile).partIndex){!function(e,t){for(var r=e.SIZ.Csiz,a=e.tiles[t],i=0;i>>(f-=e)&(1<0;){var U=x.shift();void 0===(S=U.codeblock).data&&(S.data=[]);S.data.push({data:t,start:r+h,end:r+h+U.dataLength,codingpasses:U.codingpasses});h+=U.dataLength}}}}(i,e,s,y=v.dataEnd-s);break;case 65365:case 65367:case 65368:case 65380:y=(0,a.readUint16)(e,s);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+c.toString(16))}s+=y}}catch(e){if(o||this.failOnCorruptedImage)throw new n(e.message);(0,a.warn)("JPX: Trying to recover from: "+e.message)}this.tiles=function(e){for(var t=e.SIZ,r=e.components,a=t.Csiz,i=[],n=0,o=e.tiles.length;n>2);y[k++]=T+b>>u;y[k++]=T>>u;y[k++]=T+p>>u}else for(d=0;d>u;y[k++]=m-.34413*p-.71414*b>>u;y[k++]=m+1.772*p>>u}if(S)for(d=0,k=3;d>u}else for(s=0;s>u;k+=a}}i.push(w)}return i}(i);this.width=i.SIZ.Xsiz-i.SIZ.XOsiz;this.height=i.SIZ.Ysiz-i.SIZ.YOsiz;this.componentsCount=i.SIZ.Csiz}};var g=function(){function e(e,t){var r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;i>=1;t>>=1;a++}a--;(r=this.levels[a]).items[r.index]=i;this.currentLevel=a;delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];if(--e<0){this.value=r;return!1}this.currentLevel=e;(t=this.levels[e]).items[t.index]=r;return!0}};return e}(),m=function(){function e(e,t,r){var i=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var n=0;nr){this.currentLevel=a;this.propagateValues();return!1}e>>=1;t>>=1;a++}this.currentLevel=a-1;return!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1;this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=r},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];t.items[t.index]=255;if(--e<0)return!1;this.currentLevel=e;(t=this.levels[e]).items[t.index]=r;return!0}};return e}(),p=function(){function e(e,i,n,o,s){this.width=e;this.height=i;this.contextLabelTable="HH"===n?a:"HL"===n?r:t;var c=e*i;this.neighborsSignificance=new Uint8Array(c);this.coefficentsSign=new Uint8Array(c);this.coefficentsMagnitude=s>14?new Uint32Array(c):s>6?new Uint16Array(c):new Uint8Array(c);this.processingFlags=new Uint8Array(c);var l=new Uint8Array(c);if(0!==o)for(var u=0;u0,c=t+10){a=r-n;s&&(i[a-1]+=16);c&&(i[a+1]+=16);i[a]+=4}if(e+1=r)break;o[f]&=-2;if(!a[f]&&n[f]){var m=c[n[f]];if(e.readBit(s,m)){var p=this.decodeSignBit(g,h,f);i[f]=p;a[f]=1;this.setNeighborsSignificance(g,h,f);o[f]|=2}l[f]++;o[f]|=1}}},decodeSignBit:function(e,t,r){var a,i,n,o,s,c,l=this.width,u=this.height,h=this.coefficentsMagnitude,f=this.coefficentsSign;o=t>0&&0!==h[r-1];if(t+10&&0!==h[r-l];if(e+1=0){s=9+a;c=this.decoder.readBit(this.contexts,s)}else{s=9-a;c=1^this.decoder.readBit(this.contexts,s)}return c},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,r=this.width,a=this.height,i=this.coefficentsMagnitude,n=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,c=this.processingFlags,l=r*a,u=4*r,h=0;h>1,c=-1.586134342059924,l=-.052980118572961,u=.882911075530934,h=.443506852043971,f=1.230174104914001;a=(t|=0)-3;for(i=s+4;i--;a+=2)e[a]*=.8128930661159609;n=h*e[(a=t-2)-1];for(i=s+3;i--;a+=2){o=h*e[a+1];e[a]=f*e[a]-n-o;if(!i--)break;n=h*e[(a+=2)+1];e[a]=f*e[a]-n-o}n=u*e[(a=t-1)-1];for(i=s+2;i--;a+=2){o=u*e[a+1];e[a]-=n+o;if(!i--)break;n=u*e[(a+=2)+1];e[a]-=n+o}n=l*e[(a=t)-1];for(i=s+1;i--;a+=2){o=l*e[a+1];e[a]-=n+o;if(!i--)break;n=l*e[(a+=2)+1];e[a]-=n+o}if(0!==s){n=c*e[(a=t+1)-1];for(i=s;i--;a+=2){o=c*e[a+1];e[a]-=n+o;if(!i--)break;n=c*e[(a+=2)+1];e[a]-=n+o}}};return e}(),y=function(){function e(){b.call(this)}(e.prototype=Object.create(b.prototype)).filter=function(e,t,r){var a,i,n=r>>1;for(a=t|=0,i=n+1;i--;a+=2)e[a]-=e[a-1]+e[a+1]+2>>2;for(a=t+1,i=n;i--;a+=2)e[a]+=e[a-1]+e[a+1]>>1};return e}();return e}();t.JpxImage=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var a=r(0),i=r(1),n=r(2),o=function(){function e(e){this.a=0;this.b=0;var t,r,a=new Uint8Array(256),i=0,n=e.length;for(t=0;t<256;++t)a[t]=t;for(t=0;t<256;++t){i=i+(r=a[t])+e[t%n]&255;a[t]=a[i];a[i]=r}this.s=a}(e.prototype={encryptBlock:function(e){var t,r,a,i=e.length,n=this.a,o=this.b,s=this.s,c=new Uint8Array(i);for(t=0;t>5&255;d[n++]=i>>13&255;d[n++]=i>>21&255;d[n++]=i>>>29&255;d[n++]=0;d[n++]=0;d[n++]=0;var g=new Int32Array(16);for(n=0;n>>32-C)|0;b=k}c=c+b|0;l=l+v|0;u=u+y|0;h=h+w|0}return new Uint8Array([255&c,c>>8&255,c>>16&255,c>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&h,h>>8&255,h>>16&255,h>>>24&255])}}(),c=function(){function e(e,t){this.high=0|e;this.low=0|t}e.prototype={and:function(e){this.high&=e.high;this.low&=e.low},xor:function(e){this.high^=e.high;this.low^=e.low},or:function(e){this.high|=e.high;this.low|=e.low},shiftRight:function(e){if(e>=32){this.low=this.high>>>e-32|0;this.high=0}else{this.low=this.low>>>e|this.high<<32-e;this.high=this.high>>>e|0}},shiftLeft:function(e){if(e>=32){this.high=this.low<>>32-e;this.low=this.low<>>e|r<<32-e;this.high=r>>>e|t<<32-e},not:function(){this.high=~this.high;this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1);this.low=0|t;this.high=0|r},copyTo:function(e,t){e[t]=this.high>>>24&255;e[t+1]=this.high>>16&255;e[t+2]=this.high>>8&255;e[t+3]=255&this.high;e[t+4]=this.low>>>24&255;e[t+5]=this.low>>16&255;e[t+6]=this.low>>8&255;e[t+7]=255&this.low},assign:function(e){this.high=e.high;this.low=e.low}};return e}(),l=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function a(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function n(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}var s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(e,c,l){var u,h,f,d=1779033703,g=3144134277,m=1013904242,p=2773480762,b=1359893119,v=2600822924,y=528734635,w=1541459225,k=64*Math.ceil((l+9)/64),S=new Uint8Array(k);for(u=0;u>>29&255;S[u++]=l>>21&255;S[u++]=l>>13&255;S[u++]=l>>5&255;S[u++]=l<<3&255;var C=new Uint32Array(64);for(u=0;u>24&255,d>>16&255,d>>8&255,255&d,g>>24&255,g>>16&255,g>>8&255,255&g,m>>24&255,m>>16&255,m>>8&255,255&m,p>>24&255,p>>16&255,p>>8&255,255&p,b>>24&255,b>>16&255,b>>8&255,255&b,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,w>>24&255,w>>16&255,w>>8&255,255&w])}}(),u=function(){function e(e,t,r,a,i){e.assign(t);e.and(r);i.assign(t);i.not();i.and(a);e.xor(i)}function t(e,t,r,a,i){e.assign(t);e.and(r);i.assign(t);i.and(a);e.xor(i);i.assign(r);i.and(a);e.xor(i)}function r(e,t,r){e.assign(t);e.rotateRight(28);r.assign(t);r.rotateRight(34);e.xor(r);r.assign(t);r.rotateRight(39);e.xor(r)}function a(e,t,r){e.assign(t);e.rotateRight(14);r.assign(t);r.rotateRight(18);e.xor(r);r.assign(t);r.rotateRight(41);e.xor(r)}function i(e,t,r){e.assign(t);e.rotateRight(1);r.assign(t);r.rotateRight(8);e.xor(r);r.assign(t);r.shiftRight(7);e.xor(r)}function n(e,t,r){e.assign(t);e.rotateRight(19);r.assign(t);r.rotateRight(61);e.xor(r);r.assign(t);r.shiftRight(6);e.xor(r)}var o=[new c(1116352408,3609767458),new c(1899447441,602891725),new c(3049323471,3964484399),new c(3921009573,2173295548),new c(961987163,4081628472),new c(1508970993,3053834265),new c(2453635748,2937671579),new c(2870763221,3664609560),new c(3624381080,2734883394),new c(310598401,1164996542),new c(607225278,1323610764),new c(1426881987,3590304994),new c(1925078388,4068182383),new c(2162078206,991336113),new c(2614888103,633803317),new c(3248222580,3479774868),new c(3835390401,2666613458),new c(4022224774,944711139),new c(264347078,2341262773),new c(604807628,2007800933),new c(770255983,1495990901),new c(1249150122,1856431235),new c(1555081692,3175218132),new c(1996064986,2198950837),new c(2554220882,3999719339),new c(2821834349,766784016),new c(2952996808,2566594879),new c(3210313671,3203337956),new c(3336571891,1034457026),new c(3584528711,2466948901),new c(113926993,3758326383),new c(338241895,168717936),new c(666307205,1188179964),new c(773529912,1546045734),new c(1294757372,1522805485),new c(1396182291,2643833823),new c(1695183700,2343527390),new c(1986661051,1014477480),new c(2177026350,1206759142),new c(2456956037,344077627),new c(2730485921,1290863460),new c(2820302411,3158454273),new c(3259730800,3505952657),new c(3345764771,106217008),new c(3516065817,3606008344),new c(3600352804,1432725776),new c(4094571909,1467031594),new c(275423344,851169720),new c(430227734,3100823752),new c(506948616,1363258195),new c(659060556,3750685593),new c(883997877,3785050280),new c(958139571,3318307427),new c(1322822218,3812723403),new c(1537002063,2003034995),new c(1747873779,3602036899),new c(1955562222,1575990012),new c(2024104815,1125592928),new c(2227730452,2716904306),new c(2361852424,442776044),new c(2428436474,593698344),new c(2756734187,3733110249),new c(3204031479,2999351573),new c(3329325298,3815920427),new c(3391569614,3928383900),new c(3515267271,566280711),new c(3940187606,3454069534),new c(4118630271,4000239992),new c(116418474,1914138554),new c(174292421,2731055270),new c(289380356,3203993006),new c(460393269,320620315),new c(685471733,587496836),new c(852142971,1086792851),new c(1017036298,365543100),new c(1126000580,2618297676),new c(1288033470,3409855158),new c(1501505948,4234509866),new c(1607167915,987167468),new c(1816402316,1246189591)];return function(s,l,u,h){var f,d,g,m,p,b,v,y;if(h=!!h){f=new c(3418070365,3238371032);d=new c(1654270250,914150663);g=new c(2438529370,812702999);m=new c(355462360,4144912697);p=new c(1731405415,4290775857);b=new c(2394180231,1750603025);v=new c(3675008525,1694076839);y=new c(1203062813,3204075428)}else{f=new c(1779033703,4089235720);d=new c(3144134277,2227873595);g=new c(1013904242,4271175723);m=new c(2773480762,1595750129);p=new c(1359893119,2917565137);b=new c(2600822924,725511199);v=new c(528734635,4215389547);y=new c(1541459225,327033209)}var w,k,S,C=128*Math.ceil((u+17)/128),x=new Uint8Array(C);for(w=0;w>>29&255;x[w++]=u>>21&255;x[w++]=u>>13&255;x[w++]=u>>5&255;x[w++]=u<<3&255;var A=new Array(80);for(w=0;w<80;w++)A[w]=new c(0,0);var _,P=new c(0,0),I=new c(0,0),T=new c(0,0),O=new c(0,0),E=new c(0,0),F=new c(0,0),R=new c(0,0),B=new c(0,0),M=new c(0,0),D=new c(0,0),N=new c(0,0),L=new c(0,0);for(w=0;w=1;--a){s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];c=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=c;s=r[15];c=r[11];u=r[7];r[15]=r[3];r[11]=s;r[7]=c;r[3]=u;for(i=0;i<16;++i)r[i]=o[r[i]];for(i=0,n=16*a;i<16;++i,++n)r[i]^=t[n];for(i=0;i<16;i+=4){var h=l[r[i]],f=l[r[i+1]],d=l[r[i+2]],g=l[r[i+3]];s=h^f>>>8^f<<24^d>>>16^d<<16^g>>>24^g<<8;r[i]=s>>>24&255;r[i+1]=s>>16&255;r[i+2]=s>>8&255;r[i+3]=255&s}}s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];c=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=c;s=r[15];c=r[11];u=r[7];r[15]=r[3];r[11]=s;r[7]=c;r[3]=u;for(i=0;i<16;++i){r[i]=o[r[i]];r[i]^=t[i]}return r}function t(e,t){var r,a,i,o,l,u=new Uint8Array(16);u.set(e);for(o=0;o<16;++o)u[o]^=t[o];for(c=1;c<10;c++){for(o=0;o<16;++o)u[o]=n[u[o]];i=u[1];u[1]=u[5];u[5]=u[9];u[9]=u[13];u[13]=i;i=u[2];a=u[6];u[2]=u[10];u[6]=u[14];u[10]=i;u[14]=a;i=u[3];a=u[7];r=u[11];u[3]=u[15];u[7]=i;u[11]=a;u[15]=r;for(o=0;o<16;o+=4){var h=u[o+0],f=u[o+1],d=u[o+2],g=u[o+3];r=h^f^d^g;u[o+0]^=r^s[h^f];u[o+1]^=r^s[f^d];u[o+2]^=r^s[d^g];u[o+3]^=r^s[g^h]}for(o=0,l=16*c;o<16;++o,++l)u[o]^=t[l]}for(o=0;o<16;++o)u[o]=n[u[o]];i=u[1];u[1]=u[5];u[5]=u[9];u[9]=u[13];u[13]=i;i=u[2];a=u[6];u[2]=u[10];u[6]=u[14];u[10]=i;u[14]=a;i=u[3];a=u[7];r=u[11];u[3]=u[15];u[7]=i;u[11]=a;u[15]=r;for(o=0,l=160;o<16;++o,++l)u[o]^=t[l];return u}function r(e){this.key=function(e){var t=new Uint8Array(176);t.set(e);for(var r=16,a=1;r<176;++a){var o=t[r-3],s=t[r-2],c=t[r-1],l=t[r-4];o=n[o];s=n[s];c=n[c];l=n[l];o^=i[a];for(var u=0;u<4;++u){t[r]=o^=t[r-16];t[++r]=s^=t[r-16];t[++r]=c^=t[r-16];t[++r]=l^=t[r-16];r++}}return t}(e);this.buffer=new Uint8Array(16);this.bufferPosition=0}function a(t,r){var a,i,n,o=t.length,s=this.buffer,c=this.bufferPosition,l=[],u=this.iv;for(a=0;a=n;--a)if(d[a]!==g){g=0;break}f-=g;l[l.length-1]=d.subarray(0,16-g)}}var m=new Uint8Array(f);for(a=0,i=0,n=l.length;a=1;--a){s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];l=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=l;s=r[15];l=r[11];u=r[7];r[15]=r[3];r[11]=s;r[7]=l;r[3]=u;for(i=0;i<16;++i)r[i]=n[r[i]];for(i=0,o=16*a;i<16;++i,++o)r[i]^=t[o];for(i=0;i<16;i+=4){var h=c[r[i]],f=c[r[i+1]],d=c[r[i+2]],g=c[r[i+3]];s=h^f>>>8^f<<24^d>>>16^d<<16^g>>>24^g<<8;r[i]=s>>>24&255;r[i+1]=s>>16&255;r[i+2]=s>>8&255;r[i+3]=255&s}}s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];l=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=l;s=r[15];l=r[11];u=r[7];r[15]=r[3];r[11]=s;r[7]=l;r[3]=u;for(i=0;i<16;++i){r[i]=n[r[i]];r[i]^=t[i]}return r}function t(e,t){var r,a,n,s,c,l,u=new Uint8Array(16);u.set(e);for(c=0;c<16;++c)u[c]^=t[c];for(s=1;s<14;s++){for(c=0;c<16;++c)u[c]=i[u[c]];n=u[1];u[1]=u[5];u[5]=u[9];u[9]=u[13];u[13]=n;n=u[2];a=u[6];u[2]=u[10];u[6]=u[14];u[10]=n;u[14]=a;n=u[3];a=u[7];r=u[11];u[3]=u[15];u[7]=n;u[11]=a;u[15]=r;for(c=0;c<16;c+=4){var h=u[c+0],f=u[c+1],d=u[c+2],g=u[c+3];r=h^f^d^g;u[c+0]^=r^o[h^f];u[c+1]^=r^o[f^d];u[c+2]^=r^o[d^g];u[c+3]^=r^o[g^h]}for(c=0,l=16*s;c<16;++c,++l)u[c]^=t[l]}for(c=0;c<16;++c)u[c]=i[u[c]];n=u[1];u[1]=u[5];u[5]=u[9];u[9]=u[13];u[13]=n;n=u[2];a=u[6];u[2]=u[10];u[6]=u[14];u[10]=n;u[14]=a;n=u[3];a=u[7];r=u[11];u[3]=u[15];u[7]=n;u[11]=a;u[15]=r;for(c=0,l=224;c<16;++c,++l)u[c]^=t[l];return u}function r(e){this.key=function(e){var t=new Uint8Array(240),r=1;t.set(e);for(var a=32,n=1;a<240;++n){var o,s,c,l;if(a%32==16){o=i[o];s=i[s];c=i[c];l=i[l]}else if(a%32==0){o=t[a-3];s=t[a-2];c=t[a-1];l=t[a-4];o=i[o];s=i[s];c=i[c];l=i[l];o^=r;(r<<=1)>=256&&(r=255&(27^r))}for(var u=0;u<4;++u){t[a]=o^=t[a-32];t[++a]=s^=t[a-32];t[++a]=c^=t[a-32];t[++a]=l^=t[a-32];a++}}return t}(e);this.buffer=new Uint8Array(16);this.bufferPosition=0}function a(t,r){var a,i,n,o=t.length,s=this.buffer,c=this.bufferPosition,l=[],u=this.iv;for(a=0;a=n;--a)if(d[a]!==g){g=0;break}f-=g;l[l.length-1]=d.subarray(0,16-g)}}var m=new Uint8Array(f);for(a=0,i=0,n=l.length;ao-32;){var s=t.length+i.length+a.length,c=new Uint8Array(64*s),f=e(t,i);f=e(f,a);for(var g=0,m=0;g<64;g++,m+=s)c.set(f,m);n=new d(i.subarray(0,16)).encrypt(c,i.subarray(16,32));for(var p=0,b=0;b<16;b++){p*=1;p%=3;p+=(n[b]>>>0)%3;p%=3}0===p?i=l(n,0,n.length):1===p?i=h(n,0,n.length):2===p&&(i=u(n,0,n.length));o++}return i.subarray(0,32)}function r(){}function a(e,t){if(e.length!==t.length)return!1;for(var r=0;r>8&255;g[m++]=i>>16&255;g[m++]=i>>>24&255;for(h=0,f=e.length;h=4&&!u){g[m++]=255;g[m++]=255;g[m++]=255;g[m++]=255}var p=s(g,0,m),b=l>>3;if(n>=3)for(h=0;h<50;++h)p=s(p,0,b);var v,y=p.subarray(0,b);if(n>=3){for(m=0;m<32;++m)g[m]=c[m];for(h=0,f=e.length;h>3;if(r>=3)for(i=0;i<50;++i)h=s(h,0,h.length);var d;if(r>=3){d=t;var g,m=new Uint8Array(f);for(i=19;i>=0;i--){for(g=0;g=4){var R=t.get("CF");(0,i.isDict)(R)&&(R.suppressEncryption=!0);this.cf=R;this.stmf=t.get("StmF")||l;this.strf=t.get("StrF")||l;this.eff=t.get("EFF")||this.stmf}}function r(e,t,r,a){var i,n,o=new Uint8Array(r.length+9);for(i=0,n=r.length;i>8&255;o[i++]=e>>16&255;o[i++]=255&t;o[i++]=t>>8&255;if(a){o[i++]=115;o[i++]=65;o[i++]=108;o[i++]=84}return s(o,0,i).subarray(0,Math.min(r.length+5,16))}function n(e,t,n,s,c){if(!(0,i.isName)(t))throw new a.FormatError("Invalid crypt filter name.");var l,u=e.get(t.name);null!==u&&void 0!==u&&(l=u.get("CFM"));if(!l||"None"===l.name)return function(){return new f};if("V2"===l.name)return function(){return new o(r(n,s,c,!1))};if("AESV2"===l.name)return function(){return new d(r(n,s,c,!0))};if("AESV3"===l.name)return function(){return new g(c)};throw new a.FormatError("Unknown crypto method")}var c=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]),l=i.Name.get("Identity");t.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new b(n(this.cf,this.stmf,e,t,this.encryptionKey),n(this.cf,this.strf,e,t,this.encryptionKey));var a=r(e,t,this.encryptionKey,!1),i=function(){return new o(a)};return new b(i,i)}};return t}();t.AES128Cipher=d;t.AES256Cipher=g;t.ARCFourCipher=o;t.CipherTransformFactory=v;t.PDF17=m;t.PDF20=p;t.calculateMD5=s;t.calculateSHA256=l;t.calculateSHA384=h;t.calculateSHA512=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var a=r(0),i=r(137),n=r(21),o=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","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","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","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","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],s=function(){function e(e,t,r){this.bytes=e.getBytes();this.properties=t;this.seacAnalysisEnabled=!!r}var t=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],r=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];e.prototype={parse:function(){var e=this.properties,t=new c;this.cff=t;var r=this.parseHeader(),a=this.parseIndex(r.endPos),i=this.parseIndex(a.endPos),n=this.parseIndex(i.endPos),o=this.parseIndex(n.endPos),s=this.parseDict(i.obj.get(0)),l=this.createDict(d,s,t.strings);t.header=r.obj;t.names=this.parseNameIndex(a.obj);t.strings=this.parseStringIndex(n.obj);t.topDict=l;t.globalSubrIndex=o.obj;this.parsePrivateDict(t.topDict);t.isCIDFont=l.hasName("ROS");var u=l.getByName("CharStrings"),h=this.parseIndex(u).obj,f=l.getByName("FontMatrix");f&&(e.fontMatrix=f);var g=l.getByName("FontBBox");if(g){e.ascent=Math.max(g[3],g[1]);e.descent=Math.min(g[1],g[3]);e.ascentScaled=!0}var m,p;if(t.isCIDFont){for(var b=this.parseIndex(l.getByName("FDArray")).obj,v=0,y=b.count;v=t)throw new a.FormatError("Invalid CFF header");if(0!==r){(0,a.info)("cff data is shifted");e=e.subarray(r);this.bytes=e}var i=e[0],n=e[1],o=e[2],s=e[3];return{obj:new l(i,n,o,s),endPos:o}},parseDict:function(e){function t(){var t=e[r++];if(30===t)return function(){var t="",a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;for(;r>4,s=15&n;if(15===o)break;t+=a[o];if(15===s)break;t+=a[s]}return parseFloat(t)}();if(28===t)return t=((t=e[r++])<<24|e[r++]<<16)>>16;if(29===t)return t=(t=(t=(t=e[r++])<<8|e[r++])<<8|e[r++])<<8|e[r++];if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return 256*(t-247)+e[r++]+108;if(t>=251&&t<=254)return-256*(t-251)-e[r++]-108;(0,a.warn)('CFFParser_parseDict: "'+t+'" is a reserved command.');return NaN}var r=0,i=[],n=[];r=0;for(var o=e.length;r10)return!1;for(var s=e.stackSize,c=e.stack,l=i.length,u=0;u>16;u+=2;s++}else if(14===h){if(s>=4){s-=4;if(this.seacAnalysisEnabled){e.seac=c.slice(s,s+4);return!1}}f=t[h]}else if(h>=32&&h<=246){c[s]=h-139;s++}else if(h>=247&&h<=254){c[s]=h<251?(h-247<<8)+i[u]+108:-(h-251<<8)-i[u]-108;u++;s++}else if(255===h){c[s]=(i[u]<<24|i[u+1]<<16|i[u+2]<<8|i[u+3])/65536;u+=4;s++}else if(19===h||20===h){e.hints+=s>>1;u+=e.hints+7>>3;s%=2;f=t[h]}else{if(10===h||29===h){var g;if(!(g=10===h?n:o)){f=t[h];(0,a.warn)("Missing subrsIndex for "+f.id);return!1}var m=32768;g.count<1240?m=107:g.count<33900&&(m=1131);var p=c[--s]+m;if(p<0||p>=g.count||isNaN(p)){f=t[h];(0,a.warn)("Out of bounds subrIndex for "+f.id);return!1}e.stackSize=s;e.callDepth++;if(!this.parseCharString(e,g.get(p),n,o))return!1;e.callDepth--;s=e.stackSize;continue}if(11===h){e.stackSize=s;return!0}f=t[h]}if(f){f.stem&&(e.hints+=s>>1);if("min"in f&&!e.undefStack&&s=2&&f.stem?s%=2:s>1&&(0,a.warn)("Found too many parameters for stack-clearing command");s>0&&c[s-1]>=0&&(e.width=c[s-1])}if("stackDelta"in f){"stackFn"in f&&f.stackFn(c,s);s+=f.stackDelta}else if(f.stackClearing)s=0;else if(f.resetStack){s=0;e.undefStack=!1}else if(f.undefStack){s=0;e.undefStack=!0;e.firstStackClearing=!1}}}e.stackSize=s;return!0},parseCharStrings:function(e){for(var t=e.charStrings,r=e.localSubrIndex,i=e.globalSubrIndex,n=e.fdSelect,o=e.fdArray,s=e.privateDict,c=[],l=[],u=t.count,h=0;h=o.length){(0,a.warn)("Invalid fd index for glyph index.");g=!1}g&&(m=(p=o[b].privateDict).subrsIndex)}else r&&(m=r);g&&(g=this.parseCharString(d,f,m,i));if(null!==d.width){var v=p.getByName("nominalWidthX");l[h]=v+d.width}else{var y=p.getByName("defaultWidthX");l[h]=y}null!==d.seac&&(c[h]=d.seac);g||t.set(h,new Uint8Array([14]))}return{charStrings:t,seacs:c,widths:l}},emptyPrivateDictionary:function(e){var t=this.createDict(g,[],e.strings);e.setByKey(18,[0,0]);e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],a=t[1];if(0===r||a>=this.bytes.length)this.emptyPrivateDictionary(e);else{var i=a+r,n=this.bytes.subarray(a,i),o=this.parseDict(n),s=this.createDict(g,o,e.strings);e.privateDict=s;if(s.getByName("Subrs")){var c=s.getByName("Subrs"),l=a+c;if(0===c||l>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(l);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,r,n){if(0===e)return new p(!0,m.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new p(!0,m.EXPERT,i.ExpertCharset);if(2===e)return new p(!0,m.EXPERT_SUBSET,i.ExpertSubsetCharset);var o,s,c,l=this.bytes,u=e,h=l[e++],f=[".notdef"];t-=1;switch(h){case 0:for(c=0;c=0&&e<=390?o[e]:e-391<=this.strings.length?this.strings[e-391]:o[0]},add:function(e){this.strings.push(e)},get count(){return this.strings.length}};return e}(),h=function(){function e(){this.objects=[];this.length=0}e.prototype={add:function(e){this.length+=e.length;this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length;this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}};return e}(),f=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap;this.nameToKeyMap=e.nameToKeyMap;this.defaults=e.defaults;this.types=e.types;this.opcodes=e.opcodes;this.order=e.order;this.strings=t;this.values=Object.create(null)}e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var i=0;i=this.fdSelect.length?-1:this.fdSelect[e]}};return e}(),y=function(){function e(){this.offsets=Object.create(null)}e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new a.FormatError("Already tracking location of "+e);this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,r){if(!(e in this.offsets))throw new a.FormatError("Not tracking location of "+e);for(var i=r.data,n=this.offsets[e],o=0,s=t.length;o>24&255;i[u]=d>>16&255;i[h]=d>>8&255;i[f]=255&d}}};return e}(),w=function(){function e(e){this.cff=e}e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e);this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var i=this.compileNameIndex(e.names);t.add(i);if(e.isCIDFont&&e.topDict.hasName("FontMatrix")){var n=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new h,r=0,i=e.length;r"~"||"["===l||"]"===l||"("===l||")"===l||"{"===l||"}"===l||"<"===l||">"===l||"/"===l||"%"===l)&&(l="_");s[c]=l}""===(s=s.join(""))&&(s="Bad_Font_Name");t.add((0,a.stringToBytes)(s))}return this.compileIndex(t)},compileTopDicts:function(e,t,r){for(var a=[],i=new h,n=0,o=e.length;n>8&255,255&a],o=1;for(i=0;i>8&255,255&c):3===s?n.push(c>>16&255,c>>8&255,255&c):n.push(c>>>24&255,c>>16&255,c>>8&255,255&c);r[i]&&(c+=r[i].length)}for(i=0;i=65520&&e<=65535?0:e>=62976&&e<=63743?i()[e]||e:173===e?45:e};t.reverseIfRtl=function(e){var t=e.length;if(t<=1||!function(e){var t=n[13];return e>=t.begin&&e=(t=n[11]).begin&&e=0;a--)r+=e[a];return r};t.getUnicodeRangeFor=function(e){for(var t=0,r=n.length;t=a.begin&&e=5&&i<=7))return-1;a=e.substr(1)}if(a===a.toUpperCase()&&(r=parseInt(a,16))>=0)return r}return-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=t.isPDFFunction=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r>c)*u;l&=(1<r?e=r:e0&&(f=n[u-1]);var d=i[1];u>1,u=a.length>>1,h=new f(o),g=Object.create(null),m=8192,p=new Float32Array(u);return function(e,t,r,a){var n,o,s="",c=p;for(n=0;n(y=i[2*n+1])&&(o=y);d[n]=o}if(m>0){m--;g[s]=d}r.set(d,a)}else r.set(f,a)}}},h=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}e.prototype={push:function(e){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(e)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(e){if(this.stack.length+e>=100)throw new Error("PostScript function stack overflow.");for(var t=this.stack,r=t.length-e,a=e-1;a>=0;a--,r++)t.push(t[r])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var r,a,i,n=this.stack,o=n.length-e,s=n.length-1,c=o+(t-Math.floor(t/e)*e);for(r=o,a=s;r0?i.push(r<>a);break;case"ceiling":r=i.pop();i.push(Math.ceil(r));break;case"copy":r=i.pop();i.copy(r);break;case"cos":r=i.pop();i.push(Math.cos(r));break;case"cvi":r=0|i.pop();i.push(r);break;case"cvr":break;case"div":a=i.pop();r=i.pop();i.push(r/a);break;case"dup":i.copy(1);break;case"eq":a=i.pop();r=i.pop();i.push(r===a);break;case"exch":i.roll(2,1);break;case"exp":a=i.pop();r=i.pop();i.push(Math.pow(r,a));break;case"false":i.push(!1);break;case"floor":r=i.pop();i.push(Math.floor(r));break;case"ge":a=i.pop();r=i.pop();i.push(r>=a);break;case"gt":a=i.pop();r=i.pop();i.push(r>a);break;case"idiv":a=i.pop();r=i.pop();i.push(r/a|0);break;case"index":r=i.pop();i.index(r);break;case"le":a=i.pop();r=i.pop();i.push(r<=a);break;case"ln":r=i.pop();i.push(Math.log(r));break;case"log":r=i.pop();i.push(Math.log(r)/Math.LN10);break;case"lt":a=i.pop();r=i.pop();i.push(r=t?new r(t):e.max<=t?e:new i(e,t)}function d(){}e.prototype.visit=function(e){(0,n.unreachable)("abstract method")};(t.prototype=Object.create(e.prototype)).visit=function(e){e.visitArgument(this)};(r.prototype=Object.create(e.prototype)).visit=function(e){e.visitLiteral(this)};(a.prototype=Object.create(e.prototype)).visit=function(e){e.visitBinaryOperation(this)};(i.prototype=Object.create(e.prototype)).visit=function(e){e.visitMin(this)};(o.prototype=Object.create(e.prototype)).visit=function(e){e.visitVariable(this)};(s.prototype=Object.create(e.prototype)).visit=function(e){e.visitVariableDefinition(this)};c.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("(");e.arg1.visit(this);this.parts.push(" ",e.op," ");e.arg2.visit(this);this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var ");e.variable.visit(this);this.parts.push(" = ");e.arg.visit(this);this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min(");e.arg.visit(this);this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}};d.prototype={compile:function(e,a,i){var n,d,g,m,p,b,v,y,w,k,S=[],C=[],x=a.length>>1,A=i.length>>1,_=0;for(n=0;ne.min){o.unshift("Math.max(",a,", ");o.push(")")}if(n=0,l=n.indexOf("CriOS")>=0,u=n.indexOf("Trident")>=0,h=/\b(iPad|iPhone|iPod)(?=;)/.test(n),f=/Safari\//.test(n)&&!/(Chrome\/|Android\s)/.test(n),d="object"===("undefined"==typeof window?"undefined":a(window))&&"object"===("undefined"==typeof document?"undefined":a(document));"undefined"==typeof PDFJS&&(i.PDFJS={});PDFJS.compatibilityChecked=!0;i.URL||(i.URL=i.webkitURL);!function(){if("undefined"!=typeof XMLHttpRequest){var e=XMLHttpRequest.prototype,t=new XMLHttpRequest;"overrideMimeType"in t||Object.defineProperty(e,"overrideMimeType",{value:function(e){}});if(!("responseType"in t)){Object.defineProperty(e,"responseType",{get:function(){return this._responseType||"text"},set:function(e){if("text"===e||"arraybuffer"===e){this._responseType=e;"arraybuffer"===e&&"function"==typeof this.overrideMimeType&&this.overrideMimeType("text/plain; charset=x-user-defined")}}});Object.defineProperty(e,"response",{get:function(){if("arraybuffer"!==this.responseType)return this.responseText;var e,t=this.responseText,r=t.length,a=new Uint8Array(r);for(e=0;e32&&t<127&&-1===[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function o(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function s(a,i,s){function c(e){y.push(e)}var l=i||"scheme start",u=0,h="",b=!1,v=!1,y=[];e:for(;(a[u-1]!==g||0===u)&&!this._isInvalid;){var w=a[u];switch(l){case"scheme start":if(!w||!m.test(w)){if(i){c("Invalid scheme.");break e}h="";l="no scheme";continue}h+=w.toLowerCase();l="scheme";break;case"scheme":if(w&&p.test(w))h+=w.toLowerCase();else{if(":"!==w){if(i){if(w===g)break e;c("Code point not allowed in scheme: "+w);break e}h="";u=0;l="no scheme";continue}this._scheme=h;h="";if(i)break e;e(this._scheme)&&(this._isRelative=!0);l="file"===this._scheme?"relative":this._isRelative&&s&&s._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":if("?"===w){this._query="?";l="query"}else if("#"===w){this._fragment="#";l="fragment"}else w!==g&&"\t"!==w&&"\n"!==w&&"\r"!==w&&(this._schemeData+=n(w));break;case"no scheme":if(s&&e(s._scheme)){l="relative";continue}c("Missing scheme.");t.call(this);break;case"relative or authority":if("/"!==w||"/"!==a[u+1]){c("Expected /, got: "+w);l="relative";continue}l="authority ignore slashes";break;case"relative":this._isRelative=!0;"file"!==this._scheme&&(this._scheme=s._scheme);if(w===g){this._host=s._host;this._port=s._port;this._path=s._path.slice();this._query=s._query;this._username=s._username;this._password=s._password;break e}if("/"===w||"\\"===w){"\\"===w&&c("\\ is an invalid code point.");l="relative slash"}else if("?"===w){this._host=s._host;this._port=s._port;this._path=s._path.slice();this._query="?";this._username=s._username;this._password=s._password;l="query"}else{if("#"!==w){var k=a[u+1],S=a[u+2];if("file"!==this._scheme||!m.test(w)||":"!==k&&"|"!==k||S!==g&&"/"!==S&&"\\"!==S&&"?"!==S&&"#"!==S){this._host=s._host;this._port=s._port;this._username=s._username;this._password=s._password;this._path=s._path.slice();this._path.pop()}l="relative path";continue}this._host=s._host;this._port=s._port;this._path=s._path.slice();this._query=s._query;this._fragment="#";this._username=s._username;this._password=s._password;l="fragment"}break;case"relative slash":if("/"!==w&&"\\"!==w){if("file"!==this._scheme){this._host=s._host;this._port=s._port;this._username=s._username;this._password=s._password}l="relative path";continue}"\\"===w&&c("\\ is an invalid code point.");l="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==w){c("Expected '/', got: "+w);l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":l="authority ignore slashes";if("/"!==w){c("Expected '/', got: "+w);continue}break;case"authority ignore slashes":if("/"!==w&&"\\"!==w){l="authority";continue}c("Expected authority, got: "+w);break;case"authority":if("@"===w){if(b){c("@ already seen.");h+="%40"}b=!0;for(var C=0;Cl;)n.call(o,r=s[l++])&&u.push(e?[r,o[r]]:o[r]);return u}}},function(e,t,r){"use strict";var a=r(9),i=r(17),n=r(46)(!1),o=r(33)("IE_PROTO");e.exports=function(e,t){var r,s=i(e),c=0,l=[];for(r in s)r!=o&&a(s,r)&&l.push(r);for(;t.length>c;)a(s,r=t[c++])&&(~n(l,r)||l.push(r));return l}},function(e,t,r){"use strict";var a=r(32),i=Math.max,n=Math.min;e.exports=function(e,t){return(e=a(e))<0?i(e+t,0):n(e,t)}},function(e,t,r){"use strict";r(81);e.exports=r(7).Array.includes},function(e,t,r){"use strict";var a=r(6),i=r(46)(!0);a(a.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}});r(49)("includes")},function(e,t,r){"use strict";r(83);e.exports=r(7).Math.log2},function(e,t,r){"use strict";var a=r(6);a(a.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,r){"use strict";r(85);e.exports=r(7).Number.isNaN},function(e,t,r){"use strict";var a=r(6);a(a.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,r){"use strict";r(87);e.exports=r(7).Number.isInteger},function(e,t,r){"use strict";var a=r(6);a(a.S,"Number",{isInteger:r(88)})},function(e,t,r){"use strict";var a=r(3),i=Math.floor;e.exports=function(e){return!a(e)&&isFinite(e)&&i(e)===e}},function(e,t,r){"use strict";r(50);r(90);r(54);r(98);r(105);r(106);e.exports=r(7).Promise},function(e,t,r){"use strict";var a=r(91)(!0);r(51)(String,"String",function(e){this._t=String(e);this._i=0},function(){var e,t=this._t,r=this._i;if(r>=t.length)return{value:void 0,done:!0};e=a(t,r);this._i+=e.length;return{value:e,done:!1}})},function(e,t,r){"use strict";var a=r(32),i=r(30);e.exports=function(e){return function(t,r){var n,o,s=String(i(t)),c=a(r),l=s.length;return c<0||c>=l?e?"":void 0:(n=s.charCodeAt(c))<55296||n>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):n:e?s.slice(c,c+2):o-56320+(n-55296<<10)+65536}}},function(e,t,r){"use strict";var a=r(93),i=r(28),n=r(24),o={};r(12)(o,r(4)("iterator"),function(){return this});e.exports=function(e,t,r){e.prototype=a(o,{next:i(1,r)});n(e,t+" Iterator")}},function(e,t,r){"use strict";var a=r(8),i=r(94),n=r(48),o=r(33)("IE_PROTO"),s=function(){},c=function(){var e,t=r(27)("iframe"),a=n.length;t.style.display="none";r(53).appendChild(t);t.src="javascript:";(e=t.contentWindow.document).open();e.write("