!function(t,e){"use strict";"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",["exports"],e):e("undefined"!=typeofexports?exports:t.pdfjsDistBuildPdf={})}(this,function(t){"use strict";vare="1.7.264",n="1a2f3f95",i="undefined"!=typeofdocument&&document.currentScript?document.currentScript.src:null,r={};(function(){!function(t,e){e(t.pdfjsSharedUtil={})}(this,function(t){functione(t){Z=t}functionn(){returnZ}functioni(t){Z>=Q.infos&&console.log("Info: "+t)}functionr(t){Z>=Q.warnings&&console.log("Warning: "+t)}functiona(t){console.log("Deprecated API usage: "+t)}functions(t){throwZ>=Q.errors&&(console.log("Error: "+t),console.log(o())),newError(t)}functiono(){try{thrownewError}catch(t){returnt.stack?t.stack.split("\n").slice(2).join("\n"):""}}functionc(t,e){t||s(e)}functionl(t,e){try{varn=newURL(t);if(!n.origin||"null"===n.origin)return!1}catch(t){return!1}vari=newURL(e,n);returnn.origin===i.origin}functionh(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionu(t,e){if(!t)returnnull;try{varn=e?newURL(t,e):newURL(t);if(h(n))returnn}catch(t){}returnnull}functiond(t,e,n){returnObject.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}functionf(t){vare;returnfunction(){returnt&&(e=Object.create(null),t(e),t=null),e}}functionp(t){return"string"!=typeoft?(r("The argument for removeNullCharacters must be a string."),t):t.replace(lt,"")}functiong(t){c(null!==t&&"object"==typeoft&&void0!==t.length,"Invalid argument for bytesToString");vare=t.length,n=8192;if(e<n)returnString.fromCharCode.apply(null,t);for(vari=[],r=0;r<e;r+=n){vara=Math.min(r+n,e),s=t.subarray(r,a);i.push(String.fromCharCode.apply(null,s))}returni.join("")}functionm(t){c("string"==typeoft,"Invalid argument for stringToBytes");for(vare=t.length,n=newUint8Array(e),i=0;i<e;++i)n[i]=255&t.charCodeAt(i);returnn}functionA(t){returnvoid0!==t.length?t.length:(c(void0!==t.byteLength),t.byteLength)}functionv(t){if(1===t.length&&t[0]instanceofUint8Array)returnt[0];vare,n,i,r=0,a=t.length;for(e=0;e<a;e++)n=t[e],i=A(n),r+=i;vars=0,o=newUint8Array(r);for(e=0;e<a;e++)n=t[e],ninstanceofUint8Array||(n="string"==typeofn?m(n):newUint8Array(n)),i=n.byteLength,o.set(n,s),s+=i;returno}functionb(t){returnString.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}functiony(t){for(vare=1,n=0;t>e;)e<<=1,n++;returnn}functionx(t,e){returnt[e]<<24>>24}functionS(t,e){returnt[e]<<8|t[e+1]}functionk(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function_(){vart=newUint8Array(2);t[0]=1;vare=newUint16Array(t.buffer);return1===e[0]}functionC(){try{returnnewFunction(""),!0}catch(t){return!1}}functionw(t){vare,n=t.length,i=[];if("þ"===t[0]&&"ÿ"===t[1])for(e=2;e<n;e+=2)i.push(String.fromCharCode(t.charCodeAt(e)<<8|t.charCodeAt(e+1)));elsefor(e=0;e<n;++e){varr=pt[t.charCodeAt(e)];i.push(r?String.fromCharCode(r):t.charAt(e))}returni.join("")}functionT(t){returndecodeURIComponent(escape(t))}functionL(t){returnunescape(encodeURIComponent(t))}functionP(t){for(vareint)return!1;return!0}functionE(t){return"boolean"==typeoft}functionR(t){return"number"==typeoft&&(0|t)===t}functionI(t){return"number"==typeoft}functionD(t){return"string"==typeoft}functionj(t){returntinstanceofArray}functionO(t){return"object"==typeoft&&null!==t&&void0!==t.byteLength}functionF(t){return32===t||9===t||13===t||10===t}functionM(){vart={};returnt.promise=newPromise(function(e,n){t.resolve=e,t.reject=n}),t}functionN(t,e,n){this.sourceName=t,this.targetName=e,this.comObj=n,this.callbackIndex=1,this.postMessageTransfers=!0;vari=this.callbacksCapabilities=Object.create(null),r=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(t){vare=t.data;if(e.targetName===this.sourceName)if(e.isReply){vara=e.callbackId;if(e.callbackIdini){varo=i[a];deletei[a],"error"ine?o.reject(e.error):o.resolve(e.data)}elses("Cannot resolve callback "+a)}elseif(e.actioninr){varc=r[e.a
return"undefined"!=typeofn.data.buffer};varm={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},A=["","_self","_blank","_parent","_top"];t.CustomStyle=g,t.addLinkAttributes=i,t.isExternalLinkTargetSet=s,t.isValidUrl=o,t.getFilenameFromUrl=r,t.LinkTarget=m,t.hasCanvasTypedArrays=p,t.getDefaultSetting=a,t.DEFAULT_LINK_REL=f,t.DOMCanvasFactory=n}),function(t,e){e(t.pdfjsDisplayFontLoader={},t.pdfjsSharedUtil)}(this,function(t,e){functionn(t){this.docId=t,this.styleElement=null,this.nativeFontFaces=[],this.loadTestFontId=0,this.loadingContext={requests:[],nextRequestId:0}}vari=e.assert,r=e.bytesToString,a=e.string32,s=e.shadow,o=e.warn;n.prototype={insertRule:function(t){vare=this.styleElement;e||(e=this.styleElement=document.createElement("style"),e.id="PDFJS_FONT_STYLE_TAG_"+this.docId,document.documentElement.getElementsByTagName("head")[0].appendChild(e));varn=e.sheet;n.insertRule(t,n.cssRules.length)},clear:function(){vart=this.styleElement;t&&(t.parentNode&&t.parentNode.removeChild(t),t=this.styleElement=null),this.nativeFontFaces.forEach(function(t){document.fonts.delete(t)}),this.nativeFontFaces.length=0}};varc=function(){returnatob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAF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z6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};Object.defineProperty(n.prototype,"loadTestFont",{get:function(){returns(this,"loadTestFont",c())},configurable:!0}),n.prototype.addNativeFontFace=function(t){this.nativeFontFaces.push(t),document.fonts.add(t)},n.prototype.bind=function(t,e){for(vari=[],r=[],a=[],s=function(t){returnt.loaded.catch(function(e){o('Failed to load font "'+t.family+'": '+e)})},c=n.isFontLoadingAPISupported&&!n.isSyncFontLoadingSupported,l=0,h=t.length;l<h;l++){varu=t[l];if(!u.attached&&u.loading!==!1)if(u.attached=!0,c){vard=u.createNativeFontFace();d&&(this.addNativeFontFace(d),a.push(s(d)))}else{varf=u.createFontFaceRule();f&&(this.insertRule(f),i.push(f),r.push(u))}}varp=this.queueLoadingCallback(e);c?Promise.all(a).then(function(){p.complete()}):i.length>0&&!n.isSyncFontLoadingSupported?this.prepareFontLoadEvent(i,r,p):p.complete()},n.prototype.queueLoadingCallback=function(t){functione(){for(i(!a.end,"completeRequest() cannot be called twice"),a.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++,a={id:r,complete:e,callback:t,started:Date.now()};returnn.requests.push(a),a},n.prototype.prepareFontLoadEvent=function(t,e,n){functioni(t,e){returnt.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|255&t.charCodeAt(e+3)}functionr(t,e,n,i){varr=t.substr(0,e),a=t.substr(e+n);returnr+i+a}functions(
s.displayReadyCapability||(s.receivingOperatorList=!0,s.displayReadyCapability=S(),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1,intent:i,renderInteractiveForms:r}));varo=newet(e,t,this.objs,this.commonObjs,s.operatorList,this.pageNumber,a);o.useRequestAnimationFrame="print"!==i,s.renderTasks||(s.renderTasks=[]),s.renderTasks.push(o);varc=o.task;t.continueCallback&&(_("render is used with continueCallback parameter"),c.onContinue=t.continueCallback);varl=this;returns.displayReadyCapability.promise.then(function(t){returnl.pendingCleanup?voide():(n.time("Rendering"),o.initializeGraphics(t),voido.operatorListChanged())},function(t){e(t)}),c},getOperatorList:function(){functiont(){if(i.operatorList.lastChunk){i.opListReadCapability.resolve(i.operatorList);vart=i.renderTasks.indexOf(n);t>=0&&i.renderTasks.splice(t,1)}}vare="oplist";this.intentStates[e]||(this.intentStates[e]=Object.create(null));varn,i=this.intentStates[e];returni.opListReadCapability||(n={},n.operatorListChanged=t,i.receivingOperatorList=!0,i.opListReadCapability=S(),i.renderTasks=[],i.renderTasks.push(n),i.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageIndex,intent:e})),i.opListReadCapability.promise},getTextContent:function(t){returnthis.transport.messageHandler.sendWithPromise("GetTextContent",{pageIndex:this.pageNumber-1,normalizeWhitespace:!(!t||t.normalizeWhitespace!==!0),combineTextItems:!t||t.disableCombineTextItems!==!0})},_destroy:function(){this.destroyed=!0,this.transport.pageCache[this.pageIndex]=null;vart=[];returnObject.keys(this.intentStates).forEach(function(e){if("oplist"!==e){varn=this.intentStates[e];n.renderTasks.forEach(function(e){varn=e.capability.promise.catch(function(){});t.push(n),e.cancel()})}},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)},destroy:function(){_("page destroy method, use cleanup() instead"),this.cleanup()},cleanup:function(){this.pendingCleanup=!0,this._tryCleanup()},_tryCleanup:function(){this.pendingCleanup&&!Object.keys(this.intentStates).some(function(t){vare=this.intentStates[t];return0!==e.renderTasks.length||e.receivingOperatorList},this)&&(Object.keys(this.intentStates).forEach(function(t){deletethis.intentStates[t]},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1)},_startRenderPage:function(t,e){varn=this.intentStates[e];n.displayReadyCapability&&n.displayReadyCapability.resolve(t)},_renderPageChunk:function(t,e){varn,i,r=this.intentStates[e];for(n=0,i=t.length;n<i;n++)r.operatorList.fnArray.push(t.fnArray[n]),r.operatorList.argsArray.push(t.argsArray[n]);for(r.operatorList.lastChunk=t.lastChunk,n=0;n<r.renderTasks.length;n++)r.renderTasks[n].operatorListChanged();t.lastChunk&&(r.receivingOperatorList=!1,this._tryCleanup())}},t}(),K=function(){functiont(){return"undefined"!=typeofd?d:U("workerSrc")?U("workerSrc"):i?i.replace(/\.js$/i,".worker.js"):voidk("No PDFJS.workerSrc specified")}functione(){if(s)returns.promise;s=S();vare=H||function(e){x.loadScript(t(),function(){e(window.pdfjsDistBuildPdfWorker.WorkerMessageHandler)})};returne(s.resolve),s.promise}functionn(t){this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void0)}functionr(t){vare="importScripts('"+t+"');";returnURL.createObjectURL(newBlob([e]))}functiona(t){this.name=t,this.destroyed=!1,this._readyCapability=S(),this._port=null,this._webWorker=null,this._messageHandler=null,this._initialize()}vars,o=0;returnn.prototype={postMessage:function(t,e){functionn(t){if("object"!=typeoft||null===t)returnt;if(i.has(t))returni.get(t);varr,a;if((a=t.buffer)&&P(a)){vars=e&&e.indexOf(a)>=0;returnr=t===a?t:s?newt.constructor(a,t.byteOffset,t.byteLength):newt.constructor(t),i.set(t,r),r}r=L(t)?[]:{},i.set(t,r);for(varoint){for(varc,l=t;!(c=Object.getOwnPropertyDescriptor(l,o));)l=Object.getPrototypeOf(l);"undefined"!=typ