!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=t():e["pdfjs-dist/build/pdf"]=e.pdfjsDistBuildPdf=t()}(this,function(){returnfunction(e){functiont(n){if(r[n])returnr[n].exports;vari=r[n]={i:n,l:!1,exports:{}};returne[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}varr={};returnt.m=e,t.c=r,t.i=function(e){returne},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){varr=e&&e.__esModule?function(){returne.default}:function(){returne};returnt.d(r,"a",r),r},t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(e,t,r){"use strict";(function(e){functionn(e){le=e}functioni(){returnle}functiona(e){le>=ae.infos&&console.log("Info: "+e)}functiono(e){le>=ae.warnings&&console.log("Warning: "+e)}functions(e){console.log("Deprecated API usage: "+e)}functionl(e){throwle>=ae.errors&&(console.log("Error: "+e),console.log(c())),newError(e)}functionc(){try{thrownewError}catch(e){returne.stack?e.stack.split("\n").slice(2).join("\n"):""}}functionu(e,t){e||l(t)}functiond(e,t){try{varr=newURL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}varn=newURL(t,r);returnr.origin===n.origin}functionh(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionf(e,t){if(!e)returnnull;try{varr=t?newURL(e,t):newURL(e);if(h(r))returnr}catch(e){}returnnull}functionp(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}functionm(e){vart;returnfunction(){returne&&(t=Object.create(null),e(t),e=null),t}}functiong(e){return"string"!=typeofe?(o("The argument for removeNullCharacters must be a string."),e):e.replace(ye,"")}functionv(e){u(null!==e&&"object"===(void0===e?"undefined":H(e))&&void0!==e.length,"Invalid argument for bytesToString");vart=e.length;if(t<8192)returnString.fromCharCode.apply(null,e);for(varr=[],n=0;n<t;n+=8192){vari=Math.min(n+8192,t),a=e.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}returnr.join("")}functionb(e){u("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,r=newUint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);returnr}functiony(e){returnvoid0!==e.length?e.length:(u(void0!==e.byteLength),e.byteLength)}function_(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,r,n,i=0,a=e.length;for(t=0;t<a;t++)r=e[t],n=y(r),i+=n;varo=0,s=newUint8Array(i);for(t=0;t<a;t++)r=e[t],rinstanceofUint8Array||(r="string"==typeofr?b(r):newUint8Array(r)),n=r.byteLength,s.set(r,o),o+=n;returns}functionA(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionS(e){for(vart=1,r=0;e>t;)t<<=1,r++;returnr}functionw(e,t){returne[t]<<24>>24}functionP(e,t){returne[t]<<8|e[t+1]}functionC(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionx(){vare=newUint8Array(4);returne[0]=1,1===newUint32Array(e.buffer,0,1)[0]}functionk(){try{returnnewFunction(""),!0}catch(e){return!1}}functionT(e){vart,r=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)n.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<r;++t){vari=we[e.charCodeAt(t)];n.push(i?String.fromCharCode(i):e.charAt(t))}returnn.join("")}functionR(e){returndecodeURIComponent(escape(e))}functionE(e){returnunescape(encodeURIComponent(e))}functionI(e){for(vartine)return!1;return!0}functionL(e){return"boolean"==typeofe}functionO(e){return"number"==typeofe&&(0|e)===e}functionj(e){return"number"==typeofe}functionD(e){return"string"==typeofe}functionF(e){returneinstanceofArray}functionN(e){return"object"===(void0===e?"undefined":H(e))&&null!==e&&void0!==e.byteLength}functionM(e){return32===e||9===e||13===e||10===e}functionW(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"===("undefined"==typeofproce
void0!==t.type)thrownewRangeError("Invalid type is specified");this._writableStreamController=new_e(this,t,i,o),this._writableStreamController.__startSteps()}returnie(e,[{key:"abort",value:function(e){return!1===a(this)?Promise.reject(B("abort")):!0===o(this)?Promise.reject(newTypeError("Cannot abort a stream that already has a writer")):s(this,e)}},{key:"getWriter",value:function(){if(!1===a(this))throwB("getWriter");returni(this)}},{key:"locked",get:function(){if(!1===a(this))throwB("locked");returno(this)}}]),e}();e.exports={AcquireWritableStreamDefaultWriter:i,IsWritableStream:a,IsWritableStreamLocked:o,WritableStream:be,WritableStreamAbort:s,WritableStreamDefaultControllerError:q,WritableStreamDefaultWriterCloseWithErrorPropagation:C,WritableStreamDefaultWriterRelease:R,WritableStreamDefaultWriterWrite:E,WritableStreamCloseQueuedOrInFlight:g};varye=function(){functione(t){if(n(this,e),!1===a(t))thrownewTypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===o(t))thrownewTypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;varr=t._state;if("writable"===r)!1===g(t)&&!0===t._backpressure?K(this):$(this),X(this);elseif("erroring"===r)Z(this,t._storedError),this._readyPromise.catch(function(){}),X(this);elseif("closed"===r)$(this),Y(this);else{de("errored"===r,"state must be errored");vari=t._storedError;Z(this,i),this._readyPromise.catch(function(){}),H(this,i),this._closedPromise.catch(function(){})}}returnie(e,[{key:"abort",value:function(e){return!1===S(this)?Promise.reject(z("abort")):void0===this._ownerWritableStream?Promise.reject(G("abort")):w(this,e)}},{key:"close",value:function(){if(!1===S(this))returnPromise.reject(z("close"));vare=this._ownerWritableStream;returnvoid0===e?Promise.reject(G("close")):!0===g(e)?Promise.reject(newTypeError("cannot close an already-closing stream")):P(this)}},{key:"releaseLock",value:function(){if(!1===S(this))throwz("releaseLock");vare=this._ownerWritableStream;void0!==e&&(de(void0!==e._writer),R(this))}},{key:"write",value:function(e){return!1===S(this)?Promise.reject(z("write")):void0===this._ownerWritableStream?Promise.reject(G("write to")):E(this,e)}},{key:"closed",get:function(){return!1===S(this)?Promise.reject(z("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(!1===S(this))throwz("desiredSize");if(void0===this._ownerWritableStream)throwG("desiredSize");returnT(this)}},{key:"ready",get:function(){return!1===S(this)?Promise.reject(z("ready")):this._readyPromise}}]),e}(),_e=function(){functione(t,r,i,o){if(n(this,e),!1===a(t))thrownewTypeError("WritableStreamDefaultController can only be constructed with a WritableStream instance");if(void0!==t._writableStreamController)thrownewTypeError("WritableStreamDefaultController instances can only be created by the WritableStream constructor");this._controlledWritableStream=t,this._underlyingSink=r,this._queue=void0,this._queueTotalSize=void0,ve(this),this._started=!1;vars=le(i,o);this._strategySize=s.size,this._strategyHWM=s.highWaterMark,A(t,U(this))}returnie(e,[{key:"error",value:function(e){if(!1===D(this))thrownewTypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&q(this,e)}},{key:"__abortSteps",value:function(e){returnse(this._underlyingSink,"abort",[e])}},{key:"__errorSteps",value:function(){ve(this)}},{key:"__startSteps",value:function(){vare=this,t=oe(this._underlyingSink,"start",[this]),r=this._controlledWritableStream;Promise.resolve(t).then(function(){de("writable"===r._state||"erroring"===r._state),e._started=!0,F(e)},function(t){de("writable"===r._state||"erroring"===r._state),e._started=!0,c(r,t)}).catch(he)}}]),e}()},function(e,t,r){varn=r(0),i=n.IsFiniteNonNegativeNumber,a=r(1),o=a.assert;t.DequeueValue=function(e){o("_queue"ine&&"_queueTotalSize"ine,"Spec-levelfailure:DequeueValueshouldonlybeusedon
t.WritableStream=a.WritableStream,t.WritableStreamAbort=a.WritableStreamAbort,t.WritableStreamDefaultControllerError=a.WritableStreamDefaultControllerError,t.WritableStreamDefaultWriterCloseWithErrorPropagation=a.WritableStreamDefaultWriterCloseWithErrorPropagation,t.WritableStreamDefaultWriterRelease=a.WritableStreamDefaultWriterRelease,t.WritableStreamDefaultWriterWrite=a.WritableStreamDefaultWriterWrite},function(e,t,r){functionn(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e){if(!0===e._errored)thrownewTypeError("TransformStream is already errored");if(!0===e._readableClosed)thrownewTypeError("Readable side is already closed");s(e)}functiona(e,t){if(!0===e._errored)thrownewTypeError("TransformStream is already errored");if(!0===e._readableClosed)thrownewTypeError("Readable side is already closed");varr=e._readableController;try{R(r,t)}catch(t){throwe._readableClosed=!0,l(e,t),e._storedError}!0==I(r)<=0&&!1===e._backpressure&&d(e,!0)}functiono(e,t){if(!0===e._errored)thrownewTypeError("TransformStream is already errored");c(e,t)}functions(e){_(!1===e._errored),_(!1===e._readableClosed);try{T(e._readableController)}catch(e){_(!1)}e._readableClosed=!0}functionl(e,t){!1===e._errored&&c(e,t)}functionc(e,t){_(!1===e._errored),e._errored=!0,e._storedError=t,!1===e._writableDone&&j(e._writableController,t),!1===e._readableClosed&&E(e._readableController,t)}functionu(e){return_(void0!==e._backpressureChangePromise,"_backpressureChangePromise should have been initialized"),!1===e._backpressure?Promise.resolve():(_(!0===e._backpressure,"_backpressure should have been initialized"),e._backpressureChangePromise)}functiond(e,t){_(e._backpressure!==t,"TransformStreamSetBackpressure() should be called only when backpressure is changed"),void0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(t),e._backpressureChangePromise=newPromise(function(t){e._backpressureChangePromise_resolve=t}),e._backpressureChangePromise.then(function(e){_(e!==t,"_backpressureChangePromise should be fulfilled only when backpressure is changed")}),e._backpressure=t}functionh(e,t){returna(t._controlledTransformStream,e),Promise.resolve()}functionf(e,t){_(!1===e._errored),_(!1===e._transforming),_(!1===e._backpressure),e._transforming=!0;varr=e._transformer,n=e._transformStreamController;returnw(r,"transform",[t,n],h,[t,n]).then(function(){returne._transforming=!1,u(e)},function(t){returnl(e,t),Promise.reject(t)})}functionp(e){return!!C(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}functionm(e){return!!C(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}functiong(e){returnnewTypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}functionv(e){returnnewTypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}varb=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}(),y=r(1),_=y.assert,A=r(0),S=A.InvokeOrNoop,w=A.PromiseInvokeOrPerformFallback,P=A.PromiseInvokeOrNoop,C=A.typeIsObject,x=r(4),k=x.ReadableStream,T=x.ReadableStreamDefaultControllerClose,R=x.ReadableStreamDefaultControllerEnqueue,E=x.ReadableStreamDefaultControllerError,I=x.ReadableStreamDefaultControllerGetDesiredSize,L=r(2),O=L.WritableStream,j=L.WritableStreamDefaultControllerError,D=function(){functione(t,r){n(this,e),this._transformStream=t,this._startPromise=r}returnb(e,[{key:"start",value:function(e){vart=this._transformStream;returnt._writableController=e,this._startPromise.then(function(){returnu(t)})}},{key:"write",value:function(e){returnf(this._transformStream,e)}},{key:"abort",value:function(){vare=this._transformStream;e._writableDone=!0,c(e,newTypeError("Writable side aborted"))}},{key:"close",value:function(){vare=this._transformStream;return_(
c="relative";continue}l("Missing scheme."),n.call(this);break;case"relative or authority":if("/"!==_||"/"!==t[u+1]){l("Expected /, got: "+_),c="relative";continue}c="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!==this._scheme&&(this._scheme=s._scheme),_===p){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;breake}if("/"===_||"\\"===_)"\\"===_&&l("\\ is an invalid code point."),c="relative slash";elseif("?"===_)this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query="?",this._username=s._username,this._password=s._password,c="query";else{if("#"!==_){varA=t[u+1],S=t[u+2];("file"!==this._scheme||!m.test(_)||":"!==A&&"|"!==A||S!==p&&"/"!==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()),c="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,c="fragment"}break;case"relative slash":if("/"!==_&&"\\"!==_){"file"!==this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password),c="relative path";continue}"\\"===_&&l("\\ is an invalid code point."),c="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==_){l("Expected '/', got: "+_),c="authority ignore slashes";continue}c="authority second slash";break;case"authority second slash":if(c="authority ignore slashes","/"!==_){l("Expected '/', got: "+_);continue}break;case"authority ignore slashes":if("/"!==_&&"\\"!==_){c="authority";continue}l("Expected authority, got: "+_);break;case"authority":if("@"===_){v&&(l("@ already seen."),d+="%40"),v=!0;for(varw=0;w<d.length;w++){varP=d[w];if("\t"!==P&&"\n"!==P&&"\r"!==P)if(":"!==P||null!==this._password){varC=a(P);null!==this._password?this._password+=C:this._username+=C}elsethis._password="";elsel("Invalid whitespace in authority.")}d=""}else{if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_){u-=d.length,d="",c="host";continue}d+=_}break;case"file host":if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_){2!==d.length||!m.test(d[0])||":"!==d[1]&&"|"!==d[1]?0===d.length?c="relative path start":(this._host=i.call(this,d),d="",c="relative path start"):c="relative path";continue}"\t"===_||"\n"===_||"\r"===_?l("Invalid whitespace in file host."):d+=_;break;case"host":case"hostname":if(":"!==_||b){if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_){if(this._host=i.call(this,d),d="",c="relative path start",r)breake;continue}"\t"!==_&&"\n"!==_&&"\r"!==_?("["===_?b=!0:"]"===_&&(b=!1),d+=_):l("Invalid code point in host/hostname: "+_)}elseif(this._host=i.call(this,d),d="",c="port","hostname"===r)breake;break;case"port":if(/[0-9]/.test(_))d+=_;else{if(_===p||"/"===_||"\\"===_||"?"===_||"#"===_||r){if(""!==d){varx=parseInt(d,10);x!==h[this._scheme]&&(this._port=x+""),d=""}if(r)breake;c="relative path start";continue}"\t"===_||"\n"===_||"\r"===_?l("Invalid code point in port: "+_):n.call(this)}break;case"relative path start":if("\\"===_&&l("'\\' not allowed in path."),c="relative path","/"!==_&&"\\"!==_)continue;break;case"relative path":if(_!==p&&"/"!==_&&"\\"!==_&&(r||"?"!==_&&"#"!==_))"\t"!==_&&"\n"!==_&&"\r"!==_&&(d+=a(_));else{"\\"===_&&l("\\ not allowed in relative path.");vark;(k=f[d.toLowerCase()])&&(d=k),".."===d?(this._path.pop(),"/"!==_&&"\\"!==_&&this._path.push("")):"."===d&&"/"!==_&&"\\"!==_?this._path.push(""):"."!==d&&("file"===this._scheme&&0===this._path.length&&2===d.length&&m.test(d[0])&&"|"===d[1]&&(d=d[0]+":"),this._path.push(d)),d="","?"===_?(this._query="?",c="query"):"#"===_&&(this._fragment="#",c="fragment")}break;case"query":r||"#"!==_?_!==p&&"\t"!==_&&"\n"!==_&&"\r"!==_&&(this._query+=o(_)):(this._fragment="#",c="fragment");break;case"fragment":_!==p&&"\t"!==_&&"\n"!==_&&"\r"!==_&&(this._fragment+=_)}u++}}functionl(){this._scheme="",this._schem