!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],e):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=e():t["pdfjs-dist/build/pdf"]=t.pdfjsDistBuildPdf=e()}(this,function(){returnfunction(t){functione(r){if(n[r])returnn[r].exports;vari=n[r]={i:r,l:!1,exports:{}};returnt[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}varn={};returne.m=t,e.c=n,e.i=function(t){returnt},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=14)}([function(t,e,n){"use strict";(function(t){functionr(t){nt=t}functioni(){returnnt}functiona(t){nt>=$.infos&&console.log("Info: "+t)}functions(t){nt>=$.warnings&&console.log("Warning: "+t)}functiono(t){console.log("Deprecated API usage: "+t)}functionc(t){thrownt>=$.errors&&(console.log("Error: "+t),console.log(l())),newError(t)}functionl(){try{thrownewError}catch(t){returnt.stack?t.stack.split("\n").slice(2).join("\n"):""}}functionh(t,e){t||c(e)}functionu(t,e){try{varn=newURL(t);if(!n.origin||"null"===n.origin)return!1}catch(t){return!1}varr=newURL(e,n);returnn.origin===r.origin}functiond(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionf(t,e){if(!t)returnnull;try{varn=e?newURL(t,e):newURL(t);if(d(n))returnn}catch(t){}returnnull}functionp(t,e,n){returnObject.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}functiong(t){vare;returnfunction(){returnt&&(e=Object.create(null),t(e),t=null),e}}functionm(t){return"string"!=typeoft?(s("The argument for removeNullCharacters must be a string."),t):t.replace(ft,"")}functionA(t){h(null!==t&&"object"==typeoft&&void0!==t.length,"Invalid argument for bytesToString");vare=t.length;if(e<8192)returnString.fromCharCode.apply(null,t);for(varn=[],r=0;r<e;r+=8192){vari=Math.min(r+8192,e),a=t.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}returnn.join("")}functionv(t){h("string"==typeoft,"Invalid argument for stringToBytes");for(vare=t.length,n=newUint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);returnn}functionb(t){returnvoid0!==t.length?t.length:(h(void0!==t.byteLength),t.byteLength)}functiony(t){if(1===t.length&&t[0]instanceofUint8Array)returnt[0];vare,n,r,i=0,a=t.length;for(e=0;e<a;e++)n=t[e],r=b(n),i+=r;vars=0,o=newUint8Array(i);for(e=0;e<a;e++)n=t[e],ninstanceofUint8Array||(n="string"==typeofn?v(n):newUint8Array(n)),r=n.byteLength,o.set(n,s),s+=r;returno}functionx(t){returnString.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}functionS(t){for(vare=1,n=0;t>e;)e<<=1,n++;returnn}functionw(t,e){returnt[e]<<24>>24}functionk(t,e){returnt[e]<<8|t[e+1]}function_(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}functionC(){vart=newUint8Array(2);returnt[0]=1,1===newUint16Array(t.buffer)[0]}functionT(){try{returnnewFunction(""),!0}catch(t){return!1}}functionP(t){vare,n=t.length,r=[];if("þ"===t[0]&&"ÿ"===t[1])for(e=2;e<n;e+=2)r.push(String.fromCharCode(t.charCodeAt(e)<<8|t.charCodeAt(e+1)));elsefor(e=0;e<n;++e){vari=vt[t.charCodeAt(e)];r.push(i?String.fromCharCode(i):t.charAt(e))}returnr.join("")}functionL(t){returndecodeURIComponent(escape(t))}functionE(t){returnunescape(encodeURIComponent(t))}functionR(t){for(vareint)return!1;return!0}functionI(t){return"boolean"==typeoft}functionF(t){return"number"==typeoft&&(0|t)===t}functionO(t){return"number"==typeoft}functionM(t){return"string"==typeoft}functionD(t){returntinstanceofArray}functionN(t){return"object"==typeoft&&null!==t&&void0!==t.byteLength}functionj(t){return32===t||9===t||13===t||10===t}functionU(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"==typeofprocess&&process+""=="[object process]")}functionB(){vart={};returnt
vare=!!(t.data.hasPopup||t.data.title||t.data.contents);m.call(this,t,e)}returnl.inherit(t,m,{render:function(){returnthis.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),L=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);m.call(this,t,e)}returnl.inherit(t,m,{render:function(){returnthis.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),E=function(){functiont(t){m.call(this,t,!0);vare=this.data.file;this.filename=d(e.filename),this.content=e.content,this.linkService.onFileAttachmentAnnotation({id:c(e.filename),filename:e.filename,content:e.content})}returnl.inherit(t,m,{render:function(){this.container.className="fileAttachmentAnnotation";vart=document.createElement("div");returnt.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container},_download:function(){if(!this.downloadManager)returnvoidf("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}),t}(),R=function(){return{render:function(t){for(vare=newr,n=0,i=t.annotations.length;n<i;n++){vara=t.annotations[n];if(a){vars=e.create({data:a,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||g("imageResourcesPath"),renderInteractiveForms:t.renderInteractiveForms||!1});s.isRenderable&&t.div.appendChild(s.render())}}},update:function(t){for(vare=0,n=t.annotations.length;e<n;e++){varr=t.annotations[e],i=t.div.querySelector('[data-annotation-id="'+r.id+'"]');i&&p.setProp("transform",i,"matrix("+t.viewport.transform.join(",")+")")}t.div.removeAttribute("hidden")}}}();e.AnnotationLayer=R},function(t,e,n){"use strict";functionr(t,e,n,r){vara=newV;arguments.length>1&&S("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument"),e&&(einstanceofq||(e=Object.create(e),e.length=t.length,e.initialData=t.initialData,e.abort||(e.abort=function(){})),t=Object.create(t),t.range=e),a.onPassword=n||null,a.onProgress=r||null;vars;"string"==typeoft?s={url:t}:T(t)?s={data:t}:tinstanceofq?s={range:t}:("object"!=typeoft&&x("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object"),t.url||t.data||t.range||x("Invalid parameter object: need either .data, .range or .url"),s=t);varo={},c=null,l=null;for(varhins)if("url"!==h||"undefined"==typeofwindow)if("range"!==h)if("worker"!==h)if("data"!==h||s[h]instanceofUint8Array)o[h]=s[h];else{varu=s[h];"string"==typeofu?o[h]=E(u):"object"!=typeofu||null===u||isNaN(u.length)?T(u)?o[h]=newUint8Array(u):x("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property."):o[h]=newUint8Array(u)}elsel=s[h];elsec=s[h];elseo[h]=newURL(s[h],window.location).href;o.rangeChunkSize=o.rangeChunkSize||B,o.disableNativeImageDecoder=o.disableNativeImageDecoder===!0;varf=o.CMapReaderFactory||U;if(!l){varp=N("workerPort");l=p?newK(null,p):newK,a._worker=l}varg=a.docId;returnl.promise.then(function(){if(a.destroyed)thrownewError("Loading aborted");returni(l,o,c,g).then(function(t){if(a.destroyed)thrownewError("Loading aborted");vare=newd(g,t,l.port),n=newZ(e,a,c,f);a._transport=n,e.send("Ready",null)})}).catch(a._capability.reject),a}functioni(t,e,n,r){returnt.destroyed?Promise.reject(newError("Worker was destroyed")):(e.disableAutoFetch=N("disableAutoFetch"),e.disableStream=N("disableStream"),e.chunkedViewerLoading=!!n,n&&(e.length=n.length,e.initialData=n.initialData),t.messageHandler.sendWithPromise("GetDocRequest",{docId:r,source:e,disableRange:N("disableRange"),maxImageSize:N("maxImageSize"),disableFontFace
Object.defineProperty(m,"isLittleEndian",{configurable:!0,get:function(){vart=r.isLittleEndian();returnr.shadow(m,"isLittleEndian",t)}}),m.removeNullCharacters=r.removeNullCharacters,m.PasswordResponses=r.PasswordResponses,m.PasswordException=r.PasswordException,m.UnknownErrorException=r.UnknownErrorException,m.InvalidPDFException=r.InvalidPDFException,m.MissingPDFException=r.MissingPDFException,m.UnexpectedResponseException=r.UnexpectedResponseException,m.Util=r.Util,m.PageViewport=r.PageViewport,m.createPromiseCapability=r.createPromiseCapability,m.maxImageSize=void0===m.maxImageSize?-1:m.maxImageSize,m.cMapUrl=void0===m.cMapUrl?null:m.cMapUrl,m.cMapPacked=void0!==m.cMapPacked&&m.cMapPacked,m.disableFontFace=void0!==m.disableFontFace&&m.disableFontFace,m.imageResourcesPath=void0===m.imageResourcesPath?"":m.imageResourcesPath,m.disableWorker=void0!==m.disableWorker&&m.disableWorker,m.workerSrc=void0===m.workerSrc?null:m.workerSrc,m.workerPort=void0===m.workerPort?null:m.workerPort,m.disableRange=void0!==m.disableRange&&m.disableRange,m.disableStream=void0!==m.disableStream&&m.disableStream,m.disableAutoFetch=void0!==m.disableAutoFetch&&m.disableAutoFetch,m.pdfBug=void0!==m.pdfBug&&m.pdfBug,m.postMessageTransfers=void0===m.postMessageTransfers||m.postMessageTransfers,m.disableCreateObjectURL=void0!==m.disableCreateObjectURL&&m.disableCreateObjectURL,m.disableWebGL=void0===m.disableWebGL||m.disableWebGL,m.externalLinkTarget=void0===m.externalLinkTarget?f.NONE:m.externalLinkTarget,m.externalLinkRel=void0===m.externalLinkRel?p:m.externalLinkRel,m.isEvalSupported=void0===m.isEvalSupported||m.isEvalSupported;varA=m.openExternalLinksInNewWindow;deletem.openExternalLinksInNewWindow,Object.defineProperty(m,"openExternalLinksInNewWindow",{get:function(){returnm.externalLinkTarget===f.BLANK},set:function(t){if(t&&u('PDFJS.openExternalLinksInNewWindow, please use "PDFJS.externalLinkTarget = PDFJS.LinkTarget.BLANK" instead.'),m.externalLinkTarget!==f.NONE)returnvoidd("PDFJS.externalLinkTarget is already initialized");m.externalLinkTarget=t?f.BLANK:f.NONE},enumerable:!0,configurable:!0}),A&&(m.openExternalLinksInNewWindow=A),m.getDocument=a.getDocument,m.PDFDataRangeTransport=a.PDFDataRangeTransport,m.PDFWorker=a.PDFWorker,Object.defineProperty(m,"hasCanvasTypedArrays",{configurable:!0,get:function(){vart=i.hasCanvasTypedArrays();returnr.shadow(m,"hasCanvasTypedArrays",t)}}),m.CustomStyle=i.CustomStyle,m.LinkTarget=f,m.addLinkAttributes=i.addLinkAttributes,m.getFilenameFromUrl=i.getFilenameFromUrl,m.isExternalLinkTargetSet=i.isExternalLinkTargetSet,m.AnnotationLayer=s.AnnotationLayer,m.renderTextLayer=o.renderTextLayer,m.Metadata=c.Metadata,m.SVGGraphics=l.SVGGraphics,m.UnsupportedManager=a._UnsupportedManager,e.globalScope=h,e.isWorker=g,e.PDFJS=h.PDFJS},function(t,e,n){"use strict";functionr(t){t.mozCurrentTransform||(t._originalSave=t.save,t._originalRestore=t.restore,t._originalRotate=t.rotate,t._originalScale=t.scale,t._originalTranslate=t.translate,t._originalTransform=t.transform,t._originalSetTransform=t.setTransform,t._transformMatrix=t._transformMatrix||[1,0,0,1,0,0],t._transformStack=[],Object.defineProperty(t,"mozCurrentTransform",{get:function(){returnthis._transformMatrix}}),Object.defineProperty(t,"mozCurrentTransformInverse",{get:function(){vart=this._transformMatrix,e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],s=t[5],o=e*i-n*r,c=n*r-e*i;return[i/o,n/c,r/c,e/o,(i*a-r*s)/c,(n*a-e*s)/o]}}),t.save=function(){vart=this._transformMatrix;this._transformStack.push(t),this._transformMatrix=t.slice(0,6),this._originalSave()},t.restore=function(){vart=this._transformStack.pop();t&&(this._transformMatrix=t,this._originalRestore())},t.translate=function(t,e){varn=this._transformMatrix;n[4]=n[0]*t+n[2]*e+n[4],n[5]=n[1]*t+n[3]*e+n[5],this._originalTranslate(t,e)},t.scale=function(t,e){varn=this._transformMatrix;n[0]=n[0]*t,n[1]=n[1]*t,n[2]=n[2]*e,n[3]=n[3]*e,this._originalScale(t,e)},t.transform=function(e,n,r,i,a,s){varo=this._transformMatrix;this._transformMatrix=[o[0]*e+o[2]*n,o[1]*e+o[3]*n,o[0]*r+o[2]*
returnatob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};Object.defineProperty(r.prototype,"loadTestFont",{get:function(){returnc(this,"loadTestFont",h())},configurable:!0}),r.prototype.addNativeFontFace=function(t){this.nativeFontFaces.push(t),document.fonts.add(t)},r.prototype.bind=function(t,e){for(varn=[],i=[],a=[],s=r.isFontLoadingAPISupported&&!r.isSyncFontLoadingSupported,o=0,c=t.length;o<c;o++){varh=t[o];if(!h.attached&&h.loading!==!1)if(h.attached=!0,s){varu=h.createNativeFontFace();u&&(this.addNativeFontFace(u),a.push(function(t){returnt.loaded.catch(function(e){l('Failed to load font "'+t.family+'": '+e)})}(u)))}else{vard=h.createFontFaceRule();d&&(this.insertRule(d),n.push(d),i.push(h))}}varf=this.queueLoadingCallback(e);s?Promise.all(a).then(function(){f.complete()}):n.length>0&&!r.isSyncFontLoadingSupported?this.prepareFontLoadEvent(n,i,f):f.complete()},r.prototype.queueLoadingCallback=function(t){functione(){for(a(!i.end,"completeRequest() cannot be called twice"),i.end=Date.now();n.requests.length>0&&n.requests[0].end;){vart=n.requests.shift();setTimeout(t.callback,0)}}varn=this.loadingContext,r="pdfjs-font-loading-"+n.nextRequestId++,i={id:r,complete:e,callback:t,started:Date.now()};returnn.requests.push(i),i},r.prototype.prepareFontLoadEvent=function(t,e,n){functionr(t,e){returnt.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}functioni(t,e,n,r){returnt.substr(0,e)+r+t.substr(e+n)}functiona(t,e){return++d>30?(l("Load test font never loaded."),voide()):(u.font="30px "+t,u.fillText(".",0,20),u.getImageData(0,0,1,1).data[3]>0?voide():voidsetTimeout(a.bind(null,t,e)))}vars,c,h=document.createElement("canvas");h.width=1,h.height=1;varu=h.getContext("2d"),d=0,f="lt"+Date.now()+this.loadTestFontId++,p=this.loadTestFont;p=i(p,976,f.length,f);varg=r(p,16);for(s=0,c=f.length-3;s<c;s+=4)g=g-1482184792+r(f,s)|0;s<f.length&&(g=g-1482184792+r(f+"XXX",s)|0),p=i(p,16,4,o(g));varm="url(data:font/opentype;base64,"+btoa(p)+");",A='@font-face { font-family:"'+f+'";src:'+m+"}";this.insertRule(A);varv=[];for(s=0,c=e.length;s<c;s++)v.push(e[s].loadedName);v.push(f);varb=document.createElement("div");for(b.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;"),s=0,c=v.length;s<c;++s){vary=document.createElement("span");y.textContent="Hi",y.style.fontFamily=v[s],b.appendChild(y)}document.body.appendChild(b),a(f,function(){document.body.removeChild(b),n.complete()})},r.isFontLoadingAPISupported="undefined"!=typeofdocument&&!!document.fonts;varu=function(){if("undefined"==typeofnaviga