pdfviewer
Version:
PDF Viewer using Mozila PDF JS.
2 lines • 624 kB
JavaScript
!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};e[n].call(i.exports,i,i.exports,t);i.loaded=!0;return i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,o){for(var a,s,u=0,l=[];u<r.length;u++){s=r[u];i[s]&&l.push.apply(l,i[s]);i[s]=0}for(a in o)if(Object.prototype.hasOwnProperty.call(o,a)){var c=o[a];switch(typeof c){case"object":e[a]=function(t){var n=t.slice(1),r=t[0];return function(t,i,o){e[r].apply(this,[t,i,o].concat(n))}}(c);break;case"function":e[a]=c;break;default:e[a]=e[c]}}n&&n(r,o);for(;l.length;)l.shift().call(null,t)};var r={},i={0:0};t.e=function(e,n){if(0===i[e])return n.call(null,t);if(void 0!==i[e])i[e].push(n);else{i[e]=[n];var r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript";o.charset="utf-8";o.async=!0;o.src=t.p+""+e+"."+({}[e]||e)+".js";r.appendChild(o)}};t.m=e;t.c=r;t.p="";return t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,i){r.apply(this,[e,t,i].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){n(1);var r=n(78);window.pdfjsDistBuildPdf=r;window.pdfjsDistBuildPdf.PDFJS.workerSrc="./index.worker.js";window.pdfjsDistBuildPdf.PDFJS.cMapUrl="./cmaps/";n(132);n(133);n(134)},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){(function(t,r,i){!function(t,n){e.exports=n()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};e[r].call(i.exports,i,i.exports,t);i.l=!0;return i.exports}var n={};t.m=e;t.c=n;t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})};t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};t.d(n,"a",n);return n};t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};t.p="";return t(t.s=65)}([function(e,n,r){"use strict";function i(e){se=e}function o(){return se}function a(e){se>=ie.infos&&console.log("Info: "+e)}function s(e){se>=ie.warnings&&console.log("Warning: "+e)}function u(e){console.log("Deprecated API usage: "+e)}function l(e){throw new Error(e)}function c(e,t){e||l(t)}function h(e,t){try{var n=new URL(e);if(!n.origin||"null"===n.origin)return!1}catch(e){return!1}var r=new URL(t,n);return n.origin===r.origin}function f(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function d(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(f(n))return n}catch(e){}return null}function p(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1});return n}function g(e){var t;return function(){if(e){t=Object.create(null);e(t);e=null}return t}}function v(e){if("string"!=typeof e){s("The argument for removeNullCharacters must be a string.");return e}return e.replace(_e,"")}function m(e){c(null!==e&&"object"===("undefined"==typeof e?"undefined":G(e))&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,n=8192;if(t<n)return String.fromCharCode.apply(null,e);for(var r=[],i=0;i<t;i+=n){var o=Math.min(i+n,t),a=e.subarray(i,o);r.push(String.fromCharCode.apply(null,a))}return r.join("")}function b(e){c("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),r=0;r<t;++r)n[r]=255&e.charCodeAt(r);return n}function y(e){if(void 0!==e.length)return e.length;c(void 0!==e.byteLength);return e.byteLength}function _(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,n,r,i=0,o=e.length;for(t=0;t<o;t++){n=e[t];r=y(n);i+=r}var a=0,s=new Uint8Array(i);for(t=0;t<o;t++){n=e[t];n instanceof Uint8Array||(n="string"==typeof n?b(n):new Uint8Array(n));r=n.byteLength;s.set(n,a);a+=r}return s}function w(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function S(e){for(var t=1,n=0;e>t;){t<<=1;n++}return n}function A(e,t){return e[t]<<24>>24}function P(e,t){return e[t]<<8|e[t+1]}function k(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function x(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}function E(){try{new Function("");return!0}catch(e){return!1}}function C(e){var t,n=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<n;t+=2)r.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));else for(t=0;t<n;++t){var i=Pe[e.charCodeAt(t)];r.push(i?String.fromCharCode(i):e.charAt(t))}return r.join("")}function R(e){return decodeURIComponent(escape(e))}function T(e){return unescape(encodeURIComponent(e))}function L(e){for(var t in e)return!1;return!0}function I(e){return"boolean"==typeof e}function O(e){return"number"==typeof e}function D(e){return"string"==typeof e}function F(e){return"object"===("undefined"==typeof e?"undefined":G(e))&&null!==e&&void 0!==e.byteLength}function j(e){return 32===e||9===e||13===e||10===e}function N(){return"object"===("undefined"==typeof t?"undefined":G(t))&&t+""=="[object process]"}function M(){var e={};e.promise=new Promise(function(t,n){e.resolve=t;e.reject=n});return e}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e?new Promise(function(r,i){r(e.apply(n,t))}):Promise.resolve(void 0)}function U(e){if("object"!==("undefined"==typeof e?"undefined":G(e)))return e;switch(e.name){case"AbortException":return new ye(e.message);case"MissingPDFException":return new de(e.message);case"UnexpectedResponseException":return new pe(e.message,e.status);default:return new he(e.message,e.details)}}function q(e){return!(e instanceof Error)||e instanceof ye||e instanceof de||e instanceof pe||e instanceof he?e:new he(e.message,e.toString())}function z(e,t,n){t?e.resolve():e.reject(n)}function W(e){return Promise.resolve(e).catch(function(){})}function V(e,t,n){var r=this;this.sourceName=e;this.targetName=t;this.comObj=n;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),o=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===r.sourceName)if(t.stream)r._processStreamMessage(t);else if(t.isReply){var a=t.callbackId;if(!(t.callbackId in i))throw new Error("Cannot resolve callback "+a);var s=i[a];delete i[a];"error"in t?s.reject(U(t.error)):s.resolve(t.data)}else{if(!(t.action in o))throw new Error("Unknown action from worker: "+t.action);var u=o[t.action];if(t.callbackId){var l=r.sourceName,c=t.sourceName;Promise.resolve().then(function(){return u[0].call(u[1],t.data)}).then(function(e){n.postMessage({sourceName:l,targetName:c,isReply:!0,callbackId:t.callbackId,data:e})},function(e){n.postMessage({sourceName:l,targetName:c,isReply:!0,callbackId:t.callbackId,error:q(e)})})}else t.streamId?r._createStreamSink(t):u[0].call(u[1],t.data)}};n.addEventListener("message",this._onComObjOnMessage)}function H(e,t,n){var r=new Image;r.onload=function(){n.resolve(e,r)};r.onerror=function(){n.resolve(e,null);s("Error during JPEG image loading")};r.src=t}Object.defineProperty(n,"__esModule",{value:!0});n.unreachable=n.warn=n.utf8StringToString=n.stringToUTF8String=n.stringToPDFString=n.stringToBytes=n.string32=n.shadow=n.setVerbosityLevel=n.ReadableStream=n.removeNullCharacters=n.readUint32=n.readUint16=n.readInt8=n.log2=n.loadJpegStream=n.isEvalSupported=n.isLittleEndian=n.createValidAbsoluteUrl=n.isSameOrigin=n.isNodeJS=n.isSpace=n.isString=n.isNum=n.isEmptyObj=n.isBool=n.isArrayBuffer=n.info=n.getVerbosityLevel=n.getLookupTableFactory=n.deprecated=n.createObjectURL=n.createPromiseCapability=n.createBlob=n.bytesToString=n.assert=n.arraysToBytes=n.arrayByteLength=n.FormatError=n.XRefParseException=n.Util=n.UnknownErrorException=n.UnexpectedResponseException=n.TextRenderingMode=n.StreamType=n.StatTimer=n.PasswordResponses=n.PasswordException=n.PageViewport=n.NotImplementedException=n.NativeImageDecoding=n.MissingPDFException=n.MissingDataException=n.MessageHandler=n.InvalidPDFException=n.AbortException=n.CMapCompressionType=n.ImageKind=n.FontType=n.AnnotationType=n.AnnotationFlag=n.AnnotationFieldFlag=n.AnnotationBorderStyleType=n.UNSUPPORTED_FEATURES=n.VERBOSITY_LEVELS=n.OPS=n.IDENTITY_MATRIX=n.FONT_IDENTITY_MATRIX=void 0;var G="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(66);var Y=r(98),X=[.001,0,0,.001,0,0],Z={NONE:"none",DECODE:"decode",DISPLAY:"display"},J={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},Q={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},K={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},$={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},ee={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},te={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},ne={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},re={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},ie={errors:0,warnings:1,infos:5},oe={NONE:0,BINARY:1,STREAM:2},ae={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},se=ie.warnings,ue={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},le={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},ce=function(){function e(e,t){this.name="PasswordException";this.message=e;this.code=t}e.prototype=new Error;e.constructor=e;return e}(),he=function(){function e(e,t){this.name="UnknownErrorException";this.message=e;this.details=t}e.prototype=new Error;e.constructor=e;return e}(),fe=function(){function e(e){this.name="InvalidPDFException";this.message=e}e.prototype=new Error;e.constructor=e;return e}(),de=function(){function e(e){this.name="MissingPDFException";this.message=e}e.prototype=new Error;e.constructor=e;return e}(),pe=function(){function e(e,t){this.name="UnexpectedResponseException";this.message=e;this.status=t}e.prototype=new Error;e.constructor=e;return e}(),ge=function(){function e(e){this.message=e}e.prototype=new Error;e.prototype.name="NotImplementedException";e.constructor=e;return e}(),ve=function(){function e(e,t){this.begin=e;this.end=t;this.message="Missing data ["+e+", "+t+")"}e.prototype=new Error;e.prototype.name="MissingDataException";e.constructor=e;return e}(),me=function(){function e(e){this.message=e}e.prototype=new Error;e.prototype.name="XRefParseException";e.constructor=e;return e}(),be=function(){function e(e){this.message=e}e.prototype=new Error;e.prototype.name="FormatError";e.constructor=e;return e}(),ye=function(){function e(e){this.name="AbortException";this.message=e}e.prototype=new Error;e.constructor=e;return e}(),_e=/\x00/g,we=[1,0,0,1,0,0],Se=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];e.makeCssRgb=function(e,n,r){t[1]=e;t[3]=n;t[5]=r;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){var n=e[0]*t[0]+e[1]*t[2]+t[4],r=e[0]*t[1]+e[1]*t[3]+t[5];return[n,r]};e.applyInverseTransform=function(e,t){var n=t[0]*t[3]-t[1]*t[2],r=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,i=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n;return[r,i]};e.getAxialAlignedBoundingBox=function(t,n){var r=e.applyTransform(t,n),i=e.applyTransform(t.slice(2,4),n),o=e.applyTransform([t[0],t[3]],n),a=e.applyTransform([t[2],t[1]],n);return[Math.min(r[0],i[0],o[0],a[0]),Math.min(r[1],i[1],o[1],a[1]),Math.max(r[0],i[0],o[0],a[0]),Math.max(r[1],i[1],o[1],a[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]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],o=e[2]*t[1]+e[3]*t[3],a=(n+o)/2,s=Math.sqrt((n+o)*(n+o)-4*(n*o-i*r))/2,u=a+s||1,l=a-s||1;return[Math.sqrt(u),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,n){function r(e,t){return e-t}var i=[t[0],t[2],n[0],n[2]].sort(r),o=[t[1],t[3],n[1],n[3]].sort(r),a=[];t=e.normalizeRect(t);n=e.normalizeRect(n);if(!(i[0]===t[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===t[0]))return!1;a[0]=i[1];a[2]=i[2];if(!(o[0]===t[1]&&o[1]===n[1]||o[0]===n[1]&&o[1]===t[1]))return!1;a[1]=o[1];a[3]=o[2];return a};var n=["","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){c(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,i=[];e>=1e3;){e-=1e3;i.push("M")}r=e/100|0;e%=100;i.push(n[r]);r=e/10|0;e%=10;i.push(n[10+r]);i.push(n[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 n in t)e[n]=t[n]};e.getInheritableProperty=function(e,t,n){for(;e&&!e.has(t);)e=e.get("Parent");return e?n?e.getArray(t):e.get(t):null};e.inherit=function(e,t,n){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;for(var r in n)e.prototype[r]=n[r]};e.loadScript=function(e,t){var n=document.createElement("script"),r=!1;n.setAttribute("src",e);t&&(n.onload=function(){r||t();r=!0});document.getElementsByTagName("head")[0].appendChild(n)};return e}(),Ae=function(){function e(e,t,n,r,i,o){this.viewBox=e;this.scale=t;this.rotation=n;this.offsetX=r;this.offsetY=i;var a,s,u,l,c=(e[2]+e[0])/2,h=(e[3]+e[1])/2;n%=360;n=n<0?n+360:n;switch(n){case 180:a=-1;s=0;u=0;l=1;break;case 90:a=0;s=1;u=1;l=0;break;case 270:a=0;s=-1;u=-1;l=0;break;default:a=1;s=0;u=0;l=-1}if(o){u=-u;l=-l}var f,d,p,g;if(0===a){f=Math.abs(h-e[1])*t+r;d=Math.abs(c-e[0])*t+i;p=Math.abs(e[3]-e[1])*t;g=Math.abs(e[2]-e[0])*t}else{f=Math.abs(c-e[0])*t+r;d=Math.abs(h-e[1])*t+i;p=Math.abs(e[2]-e[0])*t;g=Math.abs(e[3]-e[1])*t}this.transform=[a*t,s*t,u*t,l*t,f-a*t*c-u*t*h,d-s*t*c-l*t*h];this.width=p;this.height=g;this.fontScale=t}e.prototype={clone:function(t){t=t||{};var n="scale"in t?t.scale:this.scale,r="rotation"in t?t.rotation:this.rotation;return new e(this.viewBox.slice(),n,r,this.offsetX,this.offsetY,t.dontFlip)},convertToViewportPoint:function(e,t){return Se.applyTransform([e,t],this.transform)},convertToViewportRectangle:function(e){var t=Se.applyTransform([e[0],e[1]],this.transform),n=Se.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]},convertToPdfPoint:function(e,t){return Se.applyInverseTransform([e,t],this.transform)}};return e}(),Pe=[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],ke=function(){function e(e,t,n){for(;e.length<n;)e+=t;return e}function t(){this.started=Object.create(null);this.times=[];this.enabled=!0}t.prototype={time:function(e){if(this.enabled){e in this.started&&s("Timer is already running for "+e);this.started[e]=Date.now()}},timeEnd:function(e){if(this.enabled){e in this.started||s("Timer has not been started for "+e);this.times.push({name:e,start:this.started[e],end:Date.now()});delete this.started[e]}},toString:function(){var t,n,r=this.times,i="",o=0;for(t=0,n=r.length;t<n;++t){var a=r[t].name;a.length>o&&(o=a.length)}for(t=0,n=r.length;t<n;++t){var s=r[t],u=s.end-s.start;i+=e(s.name," ",o)+" "+u+"ms\n"}return i}};return t}(),xe=function(e,t){if("undefined"!=typeof Blob)return new Blob([e],{type:t});throw new Error('The "Blob" constructor is not supported.')},Ee=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r&&URL.createObjectURL){var i=xe(t,n);return URL.createObjectURL(i)}for(var o="data:"+n+";base64,",a=0,s=t.length;a<s;a+=3){var u=255&t[a],l=255&t[a+1],c=255&t[a+2],h=u>>2,f=(3&u)<<4|l>>4,d=a+1<s?(15&l)<<2|c>>6:64,p=a+2<s?63&c:64;o+=e[h]+e[f]+e[d]+e[p]}return o}}();V.prototype={on:function(e,t,n){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'+e+'"');r[e]=[t,n]},send:function(e,t,n){var r={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t};this.postMessage(r,n)},sendWithPromise:function(e,t,n){var r=this.callbackId++,i={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t,callbackId:r},o=M();this.callbacksCapabilities[r]=o;try{this.postMessage(i,n)}catch(e){o.reject(e)}return o.promise},sendWithStream:function(e,t,n,r){var i=this,o=this.streamId++,a=this.sourceName,s=this.targetName;return new Y.ReadableStream({start:function(n){var r=M();i.streamControllers[o]={controller:n,startCall:r,isClosed:!1};i.postMessage({sourceName:a,targetName:s,action:e,streamId:o,data:t,desiredSize:n.desiredSize});return r.promise},pull:function(e){var t=M();i.streamControllers[o].pullCall=t;i.postMessage({sourceName:a,targetName:s,stream:"pull",streamId:o,desiredSize:e.desiredSize});return t.promise},cancel:function(e){var t=M();i.streamControllers[o].cancelCall=t;i.streamControllers[o].isClosed=!0;i.postMessage({sourceName:a,targetName:s,stream:"cancel",reason:e,streamId:o});return t.promise}},n)},_createStreamSink:function(e){var t=this,n=this,r=this.actionHandler[e.action],i=e.streamId,o=e.desiredSize,a=this.sourceName,s=e.sourceName,u=M(),l=function(e){var n=e.stream,r=e.chunk,o=e.transfers,u=e.success,l=e.reason;t.postMessage({sourceName:a,targetName:s,stream:n,streamId:i,chunk:r,success:u,reason:l},o)},c={enqueue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments[2];if(!this.isCancelled){var r=this.desiredSize;this.desiredSize-=t;if(r>0&&this.desiredSize<=0){this.sinkCapability=M();this.ready=this.sinkCapability.promise}l({stream:"enqueue",chunk:e,transfers:n})}},close:function(){if(!this.isCancelled){this.isCancelled=!0;l({stream:"close"});delete n.streamSinks[i]}},error:function(e){if(!this.isCancelled){this.isCancelled=!0;l({stream:"error",reason:e})}},sinkCapability:u,onPull:null,onCancel:null,isCancelled:!1,desiredSize:o,ready:null};c.sinkCapability.resolve();c.ready=c.sinkCapability.promise;this.streamSinks[i]=c;B(r[0],[e.data,c],r[1]).then(function(){l({stream:"start_complete",success:!0})},function(e){l({stream:"start_complete",success:!1,reason:e})})},_processStreamMessage:function(e){var t=this,n=this.sourceName,r=e.sourceName,i=e.streamId,o=function(e){var o=e.stream,a=e.success,s=e.reason;t.comObj.postMessage({sourceName:n,targetName:r,stream:o,success:a,streamId:i,reason:s})},a=function(){Promise.all([t.streamControllers[e.streamId].startCall,t.streamControllers[e.streamId].pullCall,t.streamControllers[e.streamId].cancelCall].map(function(e){return e&&W(e.promise)})).then(function(){delete t.streamControllers[e.streamId]})};switch(e.stream){case"start_complete":z(this.streamControllers[e.streamId].startCall,e.success,U(e.reason));break;case"pull_complete":z(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;B(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":c(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":c(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();a();break;case"error":c(this.streamControllers[e.streamId],"error should have stream controller");this.streamControllers[e.streamId].controller.error(U(e.reason));a();break;case"cancel_complete":z(this.streamControllers[e.streamId].cancelCall,e.success,U(e.reason));a();break;case"cancel":if(!this.streamSinks[e.streamId])break;B(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)}};n.FONT_IDENTITY_MATRIX=X;n.IDENTITY_MATRIX=we;n.OPS=ae;n.VERBOSITY_LEVELS=ie;n.UNSUPPORTED_FEATURES=ue;n.AnnotationBorderStyleType=te;n.AnnotationFieldFlag=ee;n.AnnotationFlag=$;n.AnnotationType=K;n.FontType=re;n.ImageKind=Q;n.CMapCompressionType=oe;n.AbortException=ye;n.InvalidPDFException=fe;n.MessageHandler=V;n.MissingDataException=ve;n.MissingPDFException=de;n.NativeImageDecoding=Z;n.NotImplementedException=ge;n.PageViewport=Ae;n.PasswordException=ce;n.PasswordResponses=le;n.StatTimer=ke;n.StreamType=ne;n.TextRenderingMode=J;n.UnexpectedResponseException=pe;n.UnknownErrorException=he;n.Util=Se;n.XRefParseException=me;n.FormatError=be;n.arrayByteLength=y;n.arraysToBytes=_;n.assert=c;n.bytesToString=m;n.createBlob=xe;n.createPromiseCapability=M;n.createObjectURL=Ee;n.deprecated=u;n.getLookupTableFactory=g;n.getVerbosityLevel=o;n.info=a;n.isArrayBuffer=F;n.isBool=I;n.isEmptyObj=L;n.isNum=O;n.isString=D;n.isSpace=j;n.isNodeJS=N;n.isSameOrigin=h;n.createValidAbsoluteUrl=d;n.isLittleEndian=x;n.isEvalSupported=E;n.loadJpegStream=H;n.log2=S;n.readInt8=A;n.readUint16=P;n.readUint32=k;n.removeNullCharacters=v;n.ReadableStream=Y.ReadableStream;n.setVerbosityLevel=i;n.shadow=p;n.string32=w;n.stringToBytes=b;n.stringToPDFString=C;n.stringToUTF8String=R;n.utf8StringToString=T;n.warn=s;n.unreachable=l},function(e,t,n){"use strict";var r=n(48)("wks"),i=n(13),o=n(2).Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},function(e,t,n){"use strict";var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,n){"use strict";var r="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};e.exports=function(e){return"object"===("undefined"==typeof e?"undefined":r(e))?null!==e:"function"==typeof e}},function(e,t,n){"use strict";var r=n(11),i=n(21);e.exports=n(6)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){e[t]=n;return e}},function(e,t,n){"use strict";var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,n){"use strict";e.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";var r=n(20),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){var n=t&&t.url;e.href=e.title=n?(0,h.removeNullCharacters)(n):"";if(n){var r=t.target;"undefined"==typeof r&&(r=s("externalLinkTarget"));e.target=P[r];var i=t.rel;"undefined"==typeof i&&(i=s("externalLinkRel"));e.rel=i}}function a(e){var t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)}function s(e){var t=d.default.PDFJS;switch(e){case"pdfBug":return!!t&&t.pdfBug;case"disableAutoFetch":return!!t&&t.disableAutoFetch;case"disableStream":return!!t&&t.disableStream;case"disableRange":return!!t&&t.disableRange;case"disableFontFace":return!!t&&t.disableFontFace;case"disableCreateObjectURL":return!!t&&t.disableCreateObjectURL;case"disableWebGL":return!t||t.disableWebGL;case"cMapUrl":return t?t.cMapUrl:null;case"cMapPacked":return!!t&&t.cMapPacked;case"postMessageTransfers":return!t||t.postMessageTransfers;case"workerPort":return t?t.workerPort:null;case"workerSrc":return t?t.workerSrc:null;case"disableWorker":return!!t&&t.disableWorker;case"maxImageSize":return t?t.maxImageSize:-1;case"imageResourcesPath":return t?t.imageResourcesPath:"";case"isEvalSupported":return!t||t.isEvalSupported;case"externalLinkTarget":if(!t)return A.NONE;switch(t.externalLinkTarget){case A.NONE:case A.SELF:case A.BLANK:case A.PARENT:case A.TOP:return t.externalLinkTarget}(0,h.warn)("PDFJS.externalLinkTarget is invalid: "+t.externalLinkTarget);t.externalLinkTarget=A.NONE;return A.NONE;case"externalLinkRel":return t?t.externalLinkRel:p;case"enableStats":return!(!t||!t.enableStats);case"pdfjsNext":return!(!t||!t.pdfjsNext);default:throw new Error("Unknown default setting: "+e)}}function u(){var e=s("externalLinkTarget");switch(e){case A.NONE:return!1;case A.SELF:case A.BLANK:case A.PARENT:case A.TOP:return!0}}function l(e,t){(0,h.deprecated)("isValidUrl(), please use createValidAbsoluteUrl() instead.");var n=t?"http://example.com":null;return null!==(0,h.createValidAbsoluteUrl)(e,n)}Object.defineProperty(t,"__esModule",{value:!0});t.SimpleXMLParser=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.getDefaultSetting=t.LinkTarget=t.getFilenameFromUrl=t.isValidUrl=t.isExternalLinkTargetSet=t.addLinkAttributes=t.RenderingCancelledException=t.CustomStyle=void 0;var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(t,n,r){n&&e(t.prototype,n);r&&e(t,r);return t}}(),h=n(0),f=n(17),d=r(f),p="noopener noreferrer nofollow",g="http://www.w3.org/2000/svg",v=function(){function e(){i(this,e)}c(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("invalid canvas size");var n=document.createElement("canvas"),r=n.getContext("2d");n.width=e;n.height=t;return{canvas:n,context:r}}},{key:"reset",value:function(e,t,n){if(!e.canvas)throw new Error("canvas is not specified");if(t<=0||n<=0)throw new Error("invalid canvas size");e.canvas.width=t;e.canvas.height=n}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("canvas is not specified");e.canvas.width=0;e.canvas.height=0;e.canvas=null;e.context=null}}]);return e}(),m=function(){function e(t){var n=t.baseUrl,r=void 0===n?null:n,o=t.isCompressed,a=void 0!==o&&o;i(this,e);this.baseUrl=r;this.isCompressed=a}c(e,[{key:"fetch",value:function(e){var t=this,n=e.name;return this.baseUrl?n?new Promise(function(e,r){var i=t.baseUrl+n+(t.isCompressed?".bcmap":""),o=new XMLHttpRequest;o.open("GET",i,!0);t.isCompressed&&(o.responseType="arraybuffer");o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE){if(200===o.status||0===o.status){var n=void 0;t.isCompressed&&o.response?n=new Uint8Array(o.response):!t.isCompressed&&o.responseText&&(n=(0,h.stringToBytes)(o.responseText));if(n){e({cMapData:n,compressionType:t.isCompressed?h.CMapCompressionType.BINARY:h.CMapCompressionType.NONE});return}}r(new Error("Unable to load "+(t.isCompressed?"binary ":"")+"CMap at: "+i))}};o.send(null)}):Promise.reject(new Error("CMap name must be specified.")):Promise.reject(new Error('CMap baseUrl must be specified, see "PDFJS.cMapUrl" (and also "PDFJS.cMapPacked").'))}}]);return e}(),b=function(){function e(){i(this,e)}c(e,[{key:"create",value:function(e,t){(0,h.assert)(e>0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(g,"svg:svg");n.setAttribute("version","1.1");n.setAttribute("width",e+"px");n.setAttribute("height",t+"px");n.setAttribute("preserveAspectRatio","none");n.setAttribute("viewBox","0 0 "+e+" "+t);return n}},{key:"createElement",value:function(e){(0,h.assert)("string"==typeof e,"Invalid SVG element type");return document.createElementNS(g,e)}}]);return e}(),y=function(){function e(t,n){i(this,e);this.nodeName=t;this.nodeValue=n;Object.defineProperty(this,"parentNode",{value:null,writable:!0})}c(e,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[e+1]}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}}]);return e}(),_=function(){function e(){i(this,e)}c(e,[{key:"parseFromString",
value:function(e){var t=this,n=[];e=e.replace(/<\?[\s\S]*?\?>|<!--[\s\S]*?-->/g,"").trim();e=e.replace(/<!DOCTYPE[^>\[]+(\[[^\]]+)?[^>]+>/g,"").trim();e=e.replace(/>([^<][\s\S]*?)</g,function(e,r){var i=n.length,o=new y("#text",t._decodeXML(r));n.push(o);return 0===o.textContent.trim().length?"><":">"+i+",<"});e=e.replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g,function(e,t){var r=n.length,i=new y("#text",t);n.push(i);return r+","});var r=/<([\w\:]+)((?:[\s\w:=]|'[^']*'|"[^"]*")*)(?:\/>|>([\d,]*)<\/[^>]+>)/g,i=void 0;do{i=n.length;e=e.replace(r,function(e,t,r,i){var o=n.length,a=new y(t),s=[];if(i){i=i.split(",");i.pop();i.forEach(function(e){var t=n[+e];t.parentNode=a;s.push(t)})}a.childNodes=s;n.push(a);return o+","})}while(i<n.length);return{documentElement:n.pop()}}},{key:"_decodeXML",value:function(e){return e.indexOf("&")<0?e:e.replace(/&(#(x[0-9a-f]+|\d+)|\w+);/gi,function(e,t,n){if(n){n="x"===n[0]?parseInt(n.substring(1),16):+n;return String.fromCharCode(n)}switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'"}return"&"+t+";"})}}]);return e}(),w=function(){function e(){}var t=["ms","Moz","Webkit","O"],n=Object.create(null);e.getProp=function(e,r){if(1===arguments.length&&"string"==typeof n[e])return n[e];r=r||document.documentElement;var i,o,a=r.style;if("string"==typeof a[e])return n[e]=e;o=e.charAt(0).toUpperCase()+e.slice(1);for(var s=0,u=t.length;s<u;s++){i=t[s]+o;if("string"==typeof a[i])return n[e]=i}return n[e]="undefined"};e.setProp=function(e,t,n){var r=this.getProp(e);"undefined"!==r&&(t.style[r]=n)};return e}(),S=function e(){function e(e,t){this.message=e;this.type=t}e.prototype=new Error;e.prototype.name="RenderingCancelledException";e.constructor=e;return e}(),A={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},P=["","_self","_blank","_parent","_top"];t.CustomStyle=w;t.RenderingCancelledException=S;t.addLinkAttributes=o;t.isExternalLinkTargetSet=u;t.isValidUrl=l;t.getFilenameFromUrl=a;t.LinkTarget=A;t.getDefaultSetting=s;t.DEFAULT_LINK_REL=p;t.DOMCanvasFactory=v;t.DOMCMapReaderFactory=m;t.DOMSVGFactory=b;t.SimpleXMLParser=_},function(e,t,n){"use strict";var r=n(8),i=n(40),o=n(28),a=Object.defineProperty;t.f=n(6)?Object.defineProperty:function(e,t,n){r(e);t=o(t,!0);r(n);if(i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");"value"in n&&(e[t]=n.value);return e}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(5),a=n(13)("src"),s="toString",u=Function[s],l=(""+u).split(s);n(19).inspectSource=function(e){return u.call(e)};(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t));if(e[t]!==n){u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t))));if(e===r)e[t]=n;else if(s)e[t]?e[t]=n:i(e,t,n);else{delete e[t];i(e,t,n)}}})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(e,t,n){"use strict";var r=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+i).toString(36))}},function(e,t,n){"use strict";var r=n(29);e.exports=function(e,t,n){r(e);if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(46);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";e.exports="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof r&&r.Math===Math?r:"undefined"!=typeof self&&self.Math===Math?self:{}},function(e,t,n){"use strict";var r=n(2),i=n(19),o=n(4),a=n(12),s=n(14),u="prototype",l=function e(t,n,l){var c,h,f,d,p=t&e.F,g=t&e.G,v=t&e.S,m=t&e.P,b=t&e.B,y=g?r:v?r[n]||(r[n]={}):(r[n]||{})[u],_=g?i:i[n]||(i[n]={}),w=_[u]||(_[u]={});g&&(l=n);for(c in l){h=!p&&y&&void 0!==y[c];f=(h?y:l)[c];d=b&&h?s(f,r):m&&"function"==typeof f?s(Function.call,f):f;y&&a(y,c,f,t&e.U);_[c]!=f&&o(_,c,d);m&&w[c]!=f&&(w[c]=f)}};r.core=i;l.F=1;l.G=2;l.S=4;l.P=8;l.B=16;l.W=32;l.U=64;l.R=128;e.exports=l},function(e,t,n){"use strict";var r=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r=n(30),i=n(46);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(20),i=Math.max,o=Math.min;e.exports=function(e,t){e=r(e);return e<0?i(e+t,0):o(e,t)}},function(e,t,n){"use strict";var r=n(11).f,i=n(5),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,n){"use strict";var r=n(48)("keys"),i=n(13);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(31),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var r=n(45),i=n(33);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(14),i=n(30),o=n(15),a=n(9),s=n(73);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,h=6==e,f=5==e||h,d=t||s;return function(t,s,p){for(var g,v,m=o(t),b=i(m),y=r(s,p,3),_=a(b.length),w=0,S=n?d(t,_):u?d(t,0):void 0;_>w;w++)if(f||w in b){g=b[w];v=y(g,w,m);if(e)if(n)S[w]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:S.push(g)}else if(c)return!1}return h?-1:l||c?c:S}}},function(e,t,n){"use strict";var r="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=n(13)("meta"),o=n(3),a=n(5),s=n(11).f,u=0,l=Object.isExtensible||function(){return!0},c=!n(7)(function(){return l(Object.preventExtensions({}))}),h=function(e){s(e,i,{value:{i:"O"+ ++u,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==("undefined"==typeof e?"undefined":r(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";h(e)}return e[i].i},d=function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;h(e)}return e[i].w},p=function(e){c&&g.NEED&&l(e)&&!a(e,i)&&h(e);return e},g=e.exports={KEY:i,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,n){"use strict";var r=n(14),i=n(90),o=n(50),a=n(8),s=n(9),u=n(53),l={},c={},h=e.exports=function(e,t,n,h,f){var d,p,g,v,m=f?function(){return e}:u(e),b=r(n,h,t?2:1),y=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m))for(d=s(e.length);d>y;y++){v=t?b(a(p=e[y])[0],p[1]):b(e[y]);if(v===l||v===c)return v}else for(g=m.call(e);!(p=g.next()).done;){v=i(g,b,p.value,t);if(v===l||v===c)return v}};h.BREAK=l;h.RETURN=c},function(e,t,n){"use strict";function r(e){var t=e.getResponseHeader,n=e.isHttp,r=e.rangeChunkSize,i=e.disableRange;(0,a.assert)(r>0);var o={allowRangeRequests:!1,suggestedLength:void 0};if(i||!n)return o;if("bytes"!==t("Accept-Ranges"))return o;var s=t("Content-Encoding")||"identity";if("identity"!==s)return o;var u=parseInt(t("Content-Length"),10);if(!Number.isInteger(u))return o;o.suggestedLength=u;if(u<=2*r)return o;o.allowRangeRequests=!0;return o}function i(e,t){return 404===e||0===e&&/^file:/.test(t)?new a.MissingPDFException('Missing PDF "'+t+'".'):new a.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function o(e){return 200===e||206===e}Object.defineProperty(t,"__esModule",{value:!0});t.validateResponseStatus=t.validateRangeRequestCapabilities=t.createResponseStatusError=void 0;var a=n(0);t.createResponseStatusError=i;t.validateRangeRequestCapabilities=r;t.validateResponseStatus=o},function(e,t,n){"use strict";e.exports=!n(6)&&!n(7)(function(){return 7!=Object.defineProperty(n(41)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(3),i=n(2).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){"use strict";for(var r,i=n(2),o=n(4),a=n(13),s=a("typed_array"),u=a("view"),l=!(!i.ArrayBuffer||!i.DataView),c=l,h=0,f=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<f;)if(r=i[d[h++]]){o(r.prototype,s,!0);o(r.prototype,u,!0)}else c=!1;e.exports={ABV:l,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,n){"use strict";var r=n(20),i=n(9);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){"use strict";var r=n(45),i=n(33).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(5),i=n(24),o=n(47)(!1),a=n(32)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){"use strict";e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(24),i=n(9),o=n(25);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n)for(;l>c;){s=u[c++];if(s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(2),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){"use strict";var r=n(15),i=n(25),o=n(9);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(16),i=n(1)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(8),i=n(71),o=n(33),a=n(32)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(41)("iframe"),r=o.length,i="<",a=">";t.style.display="none";n(72).appendChild(t);t.src="javascript:";e=t.contentWindow.document;e.open();e.write(i+"script"+a+"document.F=Object"+i+"/script"+a);e.close();l=e.F;for(;r--;)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;if(null!==e){s[u]=r(e);n=new s;s[u]=null;n[a]=e}else n=l();return void 0===t?n:i(n,t)}},function(e,t,n){"use strict";var r=n(5),i=n(15),o=n(32)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){e=i(e);return r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(34),i=n(1)("iterator"),o=n(16);e.exports=n(19).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(77),i=n(78),o=n(16),a=n(24);e.exports=n(79)(Array,"Array",function(e,t){this._t=a(e);this._i=0;this._k=t},function(){var e=this._t,t=this._k,n=this._i++;if(!e||n>=e.length){this._t=void 0;return i(1)}return"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values");o.Arguments=o.Array;r("keys");r("values");r("entries")},function(e,t,n){"use strict";var r=n(1)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0};Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}};o[r]=function(){return a};e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(57),i=n(21),o=n(24),a=n(28),s=n(5),u=n(40),l=Object.getOwnPropertyDescriptor;t.f=n(6)?l:function(e,t){e=o(e);t=a(t,!0);if(u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){E=e}function s(e,t,n,r){var i=new T;arguments.length>1&&(0,f.deprecated)("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument");if(t){if(!(t instanceof L)){t=Object.create(t);t.length=e.length;t.initialData=e.initialData;t.abort||(t.abort=function(){})}e=Object.create(e);e.range=t}i.onPassword=n||null;i.onProgress=r||null;var o;if("string"==typeof e)o={url:e};else if((0,f.isArrayBuffer)(e))o={data:e};else if(e instanceof L)o={range:e};else{if("object"!==("undefined"==typeof e?"undefined":h(e)))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");o=e}var a={},s=null,l=null,c=d.DOMCMapReaderFactory;for(var p in o)if("url"!==p||"undefined"==typeof window)if("range"!==p)if("worker"!==p)if("data"!==p||o[p]instanceof Uint8Array)"CMapReaderFactory"!==p?a[p]=o[p]:c=o[p];else{var g=o[p];if("string"==typeof g)a[p]=(0,f.stringToBytes)(g);else if("object"!==("undefined"==typeof g?"undefined":h(g))||null===g||isNaN(g.length)){if(!(0,f.isArrayBuffer)(g))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");a[p]=new Uint8Array(g)}else a[p]=new Uint8Array(g)}else l=o[p];else s=o[p];else a[p]=new URL(o[p],window.location).href;a.rangeChunkSize=a.rangeChunkSize||_;a.ignoreErrors=a.stopAtErrors!==!0;void 0!==a.disableNativeImageDecoder&&(0,f.deprecated)("parameter disableNativeImageDecoder, use nativeImageDecoderSupport instead");a.nativeImageDecoderSupport=a.nativeImageDecoderSupport||(a.disableNativeImageDecoder===!0?f.NativeImageDecoding.NONE:f.NativeImageDecoding.DECODE);if(a.nativeImageDecoderSupport!==f.NativeImageDecoding.DECODE&&a.nativeImageDecoderSupport!==f.NativeImageDecoding.NONE&&a.nativeImageDecoderSupport!==f.NativeImageDecoding.DISPLAY){(0,f.warn)("Invalid parameter nativeImageDecoderSupport: need a state of enum {NativeImageDecoding}");a.nativeImageDecoderSupport=f.NativeImageDecoding.DECODE}if(!l){var v=(0,d.getDefaultSetting)("workerPort");l=v?F.fromPort(v):new F;i._worker=l}var m=i.docId;l.promise.then(function(){if(i.destroyed)throw new Error("Loading aborted");return u(l,a,s,m).then(function(e){if(i.destroyed)throw new Error("Loading aborted");var t=void 0;s?t=new y.PDFDataTransportStream(a,s):a.data||(t=new E({source:a,disableRange:(0,d.getDefaultSetting)("disableRange")}));var n=new f.MessageHandler(m,e,l.port);n.postMessageTransfers=l.postMessageTransfers;var r=new j(n,i,t,c);i._transport=r;n.send("Ready",null)})}).catch(i._capability.reject);return i}function u(e,t,n,r){if(e.destroyed)return Promise.reject(new Error("Worker was destroyed"));var i="1.9.648";t.disableAutoFetch=(0,d.getDefaultSetting)("disableAutoFetch");t.disableStream=(0,d.getDefaultSetting)("disableStream");t.chunkedViewerLoading=!!n;if(n){t.length=n.length;t.initialData=n.initialData}return e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:i,source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:(0,d.getDefaultSetting)("maxImageSize"),disableFontFace:(0,d.getDefaultSetting)("disableFontFace"),disableCreateObjectURL:(0,d.getDefaultSetting)("disableCreateObjectURL"),postMessageTransfers:(0,d.getDefaultSetting)("postMessageTransfers")&&!S,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:(0,d.getDefaultSetting)("isEvalSupported")}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})}Object.defineProperty(t,"__esModule",{value:!0});t.build=t.version=t._UnsupportedManager=t.setPDFNetworkStreamClass=t.PDFPageProxy=t.PDFDocumentProxy=t.PDFWorker=t.PDFDataRangeTransport=t.LoopbackPort=t.getDocument=void 0;var l,c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(e,r.key,r)}}return function(t,n,r){n&&e(t.prototype,n);r&&e(t,r);return t}}(),h="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},f=r(0),d=r(10),p=r(101),g=r(102),v=r(17),m=i(v),b=r(61),y=r(1