!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=13)}([function(e,t,r){"use strict";functionn(e){se=e}functioni(){returnse}functiona(e){se>=ie.infos&&console.log("Info: "+e)}functiono(e){se>=ie.warnings&&console.log("Warning: "+e)}functions(e){console.log("Deprecated API usage: "+e)}functionl(e){thrownewError(e)}functionc(e,t){e||l(t)}functionu(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}functiond(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionh(e,t){if(!e)returnnull;try{varr=t?newURL(e,t):newURL(e);if(d(r))returnr}catch(e){}returnnull}functionf(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}functionp(e){vart;returnfunction(){returne&&(t=Object.create(null),e(t),e=null),t}}functionm(e){return"string"!=typeofe?(o("The argument for removeNullCharacters must be a string."),e):e.replace(ye,"")}functiong(e){c(null!==e&&"object"===(void0===e?"undefined":X(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("")}functionv(e){c("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}functionb(e){returnvoid0!==e.length?e.length:(c(void0!==e.byteLength),e.byteLength)}functiony(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=b(r),i+=n;varo=0,s=newUint8Array(i);for(t=0;t<a;t++)r=e[t],rinstanceofUint8Array||(r="string"==typeofr?v(r):newUint8Array(r)),n=r.byteLength,s.set(r,o),o+=n;returns}function_(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionA(e){for(vart=1,r=0;e>t;)t<<=1,r++;returnr}functionS(e,t){returne[t]<<24>>24}functionw(e,t){returne[t]<<8|e[t+1]}functionP(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionC(){vare=newUint8Array(4);returne[0]=1,1===newUint32Array(e.buffer,0,1)[0]}functionx(){try{returnnewFunction(""),!0}catch(e){return!1}}functionk(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("")}functionT(e){returndecodeURIComponent(escape(e))}functionR(e){returnunescape(encodeURIComponent(e))}functionE(e){for(vartine)return!1;return!0}functionI(e){return"boolean"==typeofe}functionL(e){return"number"==typeofe&&(0|e)===e}functionO(e){return"number"==typeofe}functionj(e){return"string"==typeofe}functionD(e){returneinstanceofArray}functionF(e){return"object"===(void0===e?"undefined":X(e))&&null!==e&&void0!==e.byteLength}functionN(e){return32===e||9===e||13===e||10===e}functionM(){return"object"===("undefined"==typeofprocess?"undefined":X(process))&&process+""=="[object process]"}functionW(){vare={};returne.promise=newPromise(function(t,r){e.resolve=t,e.reject=r}),e}functionU(e,t){varr=arguments.length>2&&void0!==arguments[2]?a
;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-level failure: DequeueValue should only be used on containers with [[queue]] and [[queueTotalSize]]."),o(e._queue.l
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_(!1===e._transforming),e._writableDone=!0,P(e._transformer,"flush",[e._transfor