Your IP : 216.73.216.240
"use strict";function getViewerConfiguration(){return{appContainer:document.body,mainContainer:document.getElementById("viewerContainer"),viewerContainer:document.getElementById("viewer"),eventBus:null,toolbar:{container:document.getElementById("toolbarViewer"),numPages:document.getElementById("numPages"),pageNumber:document.getElementById("pageNumber"),scaleSelectContainer:document.getElementById("scaleSelectContainer"),scaleSelect:document.getElementById("scaleSelect"),customScaleOption:document.getElementById("customScaleOption"),previous:document.getElementById("previous"),next:document.getElementById("next"),firstPage:document.getElementById("firstPage"),lastPage:document.getElementById("lastPage"),zoomIn:document.getElementById("zoomIn"),zoomOut:document.getElementById("zoomOut"),viewFind:document.getElementById("viewFind"),openFile:document.getElementById("openFile"),print:document.getElementById("print"),presentationModeButton:document.getElementById("presentationMode"),download:document.getElementById("download"),viewBookmark:document.getElementById("viewBookmark")},secondaryToolbar:{toolbar:document.getElementById("secondaryToolbar"),toggleButton:document.getElementById("secondaryToolbarToggle"),presentationModeButton:document.getElementById("secondaryPresentationMode"),openFile:document.getElementById("secondaryOpenFile"),print:document.getElementById("secondaryPrint"),download:document.getElementById("secondaryDownload"),viewBookmark:document.getElementById("secondaryViewBookmark"),firstPage:document.getElementById("firstPage"),lastPage:document.getElementById("lastPage"),pageRotateCw:document.getElementById("pageRotateCw"),pageRotateCcw:document.getElementById("pageRotateCcw"),documentPropertiesButton:document.getElementById("documentProperties"),toggleHandTool:document.getElementById("toggleHandTool")},fullscreen:{contextFirstPage:document.getElementById("contextFirstPage"),contextLastPage:document.getElementById("contextLastPage"),contextPageRotateCw:document.getElementById("contextPageRotateCw"),contextPageRotateCcw:document.getElementById("contextPageRotateCcw")},sidebar:{mainContainer:document.getElementById("mainContainer"),outerContainer:document.getElementById("outerContainer"),toggleButton:document.getElementById("sidebarToggle"),thumbnailButton:document.getElementById("viewThumbnail"),outlineButton:document.getElementById("viewOutline"),attachmentsButton:document.getElementById("viewAttachments"),thumbnailView:document.getElementById("thumbnailView"),outlineView:document.getElementById("outlineView"),attachmentsView:document.getElementById("attachmentsView")},findBar:{bar:document.getElementById("findbar"),toggleButton:document.getElementById("viewFind"),findField:document.getElementById("findInput"),highlightAllCheckbox:document.getElementById("findHighlightAll"),caseSensitiveCheckbox:document.getElementById("findMatchCase"),findMsg:document.getElementById("findMsg"),findResultsCount:document.getElementById("findResultsCount"),findStatusIcon:document.getElementById("findStatusIcon"),findPreviousButton:document.getElementById("findPrevious"),findNextButton:document.getElementById("findNext")},passwordOverlay:{overlayName:"passwordOverlay",container:document.getElementById("passwordOverlay"),label:document.getElementById("passwordText"),input:document.getElementById("password"),submitButton:document.getElementById("passwordSubmit"),cancelButton:document.getElementById("passwordCancel")},documentProperties:{overlayName:"documentPropertiesOverlay",container:document.getElementById("documentPropertiesOverlay"),closeButton:document.getElementById("documentPropertiesClose"),fields:{fileName:document.getElementById("fileNameField"),fileSize:document.getElementById("fileSizeField"),title:document.getElementById("titleField"),author:document.getElementById("authorField"),subject:document.getElementById("subjectField"),keywords:document.getElementById("keywordsField"),creationDate:document.getElementById("creationDateField"),modificationDate:document.getElementById("modificationDateField"),creator:document.getElementById("creatorField"),producer:document.getElementById("producerField"),version:document.getElementById("versionField"),pageCount:document.getElementById("pageCountField")}},errorWrapper:{container:document.getElementById("errorWrapper"),errorMessage:document.getElementById("errorMessage"),closeButton:document.getElementById("errorClose"),errorMoreInfo:document.getElementById("errorMoreInfo"),moreInfoButton:document.getElementById("errorShowMore"),lessInfoButton:document.getElementById("errorShowLess")},printContainer:document.getElementById("printContainer"),openFileInputName:"fileInput"}}function webViewerLoad(){var e=getViewerConfiguration();window.PDFViewerApplication=pdfjsWebLibs.pdfjsWebApp.PDFViewerApplication,pdfjsWebLibs.pdfjsWebApp.PDFViewerApplication.run(e)}"undefined"==typeof PDFJS&&(("undefined"!=typeof window?window:this).PDFJS={}),function(){function e(e,t){return new n(this.slice(e,t))}function t(e,t){arguments.length<2&&(t=0);for(var n=0,i=e.length;i>n;++n,++t)this[t]=255&e[n]}function n(n){var i,r,a;if("number"==typeof n)for(i=[],r=0;n>r;++r)i[r]=0;else if("slice"in n)i=n.slice(0);else for(i=[],r=0,a=n.length;a>r;++r)i[r]=n[r];return i.subarray=e,i.buffer=i,i.byteLength=i.length,i.set=t,"object"==typeof n&&n.buffer&&(i.buffer=n.buffer),i}return"undefined"!=typeof Uint8Array?("undefined"==typeof Uint8Array.prototype.subarray&&(Uint8Array.prototype.subarray=function(e,t){return new Uint8Array(this.slice(e,t))},Float32Array.prototype.subarray=function(e,t){return new Float32Array(this.slice(e,t))}),void("undefined"==typeof Float64Array&&(window.Float64Array=Float32Array))):(window.Uint8Array=n,window.Int8Array=n,window.Uint32Array=n,window.Int32Array=n,window.Uint16Array=n,window.Float32Array=n,void(window.Float64Array=n))}(),function(){window.URL||(window.URL=window.webkitURL)}(),function(){if("undefined"!=typeof Object.defineProperty){var e=!0;try{Object.defineProperty(new Image,"id",{value:"test"});var t=function(){};t.prototype={get id(){}},Object.defineProperty(new t,"id",{value:"",configurable:!0,enumerable:!0,writable:!1})}catch(n){e=!1}if(e)return}Object.defineProperty=function(e,t,n){delete e[t],"get"in n&&e.__defineGetter__(t,n.get),"set"in n&&e.__defineSetter__(t,n.set),"value"in n&&(e.__defineSetter__(t,function(e){return this.__defineGetter__(t,function(){return e}),e}),e[t]=n.value)}}(),function(){var e=XMLHttpRequest.prototype,t=new XMLHttpRequest;return"overrideMimeType"in t||Object.defineProperty(e,"overrideMimeType",{value:function(e){}}),"responseType"in t?void 0:(PDFJS.disableWorker=!0,Object.defineProperty(e,"responseType",{get:function(){return this._responseType||"text"},set:function(e){"text"!==e&&"arraybuffer"!==e||(this._responseType=e,"arraybuffer"===e&&"function"==typeof this.overrideMimeType&&this.overrideMimeType("text/plain; charset=x-user-defined"))}}),"undefined"!=typeof VBArray?void Object.defineProperty(e,"response",{get:function(){return"arraybuffer"===this.responseType?new Uint8Array(new VBArray(this.responseBody).toArray()):this.responseText}}):void Object.defineProperty(e,"response",{get:function(){if("arraybuffer"!==this.responseType)return this.responseText;var e,t=this.responseText,n=t.length,i=new Uint8Array(n);for(e=0;n>e;++e)i[e]=255&t.charCodeAt(e);return i.buffer}}))}(),function(){if(!("btoa"in window)){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";window.btoa=function(t){var n,i,r="";for(n=0,i=t.length;i>n;n+=3){var a=255&t.charCodeAt(n),s=255&t.charCodeAt(n+1),o=255&t.charCodeAt(n+2),l=a>>2,c=(3&a)<<4|s>>4,h=i>n+1?(15&s)<<2|o>>6:64,u=i>n+2?63&o:64;r+=e.charAt(l)+e.charAt(c)+e.charAt(h)+e.charAt(u)}return r}}}(),function(){if(!("atob"in window)){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";window.atob=function(t){if(t=t.replace(/=+$/,""),t.length%4===1)throw new Error("bad atob input");for(var n,i,r=0,a=0,s="";i=t.charAt(a++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i=e.indexOf(i);return s}}}(),function(){"undefined"==typeof Function.prototype.bind&&(Function.prototype.bind=function(e){var t=this,n=Array.prototype.slice.call(arguments,1),i=function(){var i=n.concat(Array.prototype.slice.call(arguments));return t.apply(e,i)};return i})}(),function(){var e=document.createElement("div");"dataset"in e||Object.defineProperty(HTMLElement.prototype,"dataset",{get:function(){if(this._dataset)return this._dataset;for(var e={},t=0,n=this.attributes.length;n>t;t++){var i=this.attributes[t];if("data-"===i.name.substring(0,5)){var r=i.name.substring(5).replace(/\-([a-z])/g,function(e,t){return t.toUpperCase()});e[r]=i.value}}return Object.defineProperty(this,"_dataset",{value:e,writable:!1,enumerable:!1}),e},enumerable:!0})}(),function(){function e(e,t,n,i){var r=e.className||"",a=r.split(/\s+/g);""===a[0]&&a.shift();var s=a.indexOf(t);return 0>s&&n&&a.push(t),s>=0&&i&&a.splice(s,1),e.className=a.join(" "),s>=0}var t=document.createElement("div");if(!("classList"in t)){var n={add:function(t){e(this.element,t,!0,!1)},contains:function(t){return e(this.element,t,!1,!1)},remove:function(t){e(this.element,t,!1,!0)},toggle:function(t){e(this.element,t,!0,!0)}};Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){if(this._classList)return this._classList;var e=Object.create(n,{element:{value:this,writable:!1,enumerable:!0}});return Object.defineProperty(this,"_classList",{value:e,writable:!1,enumerable:!1}),e},enumerable:!0})}}(),function(){"console"in window?"bind"in console.log||(console.log=function(e){return function(t){return e(t)}}(console.log),console.error=function(e){return function(t){return e(t)}}(console.error),console.warn=function(e){return function(t){return e(t)}}(console.warn)):window.console={log:function(){},error:function(){},warn:function(){}}}(),function(){function e(e){t(e.target)&&e.stopPropagation()}function t(e){return e.disabled||e.parentNode&&t(e.parentNode)}-1!==navigator.userAgent.indexOf("Opera")&&document.addEventListener("click",e,!0)}(),function(){navigator.userAgent.indexOf("Trident")>=0&&(PDFJS.disableCreateObjectURL=!0)}(),function(){"language"in navigator||(PDFJS.locale=navigator.userLanguage||"en-US")}(),function(){var e=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,t=/Android\s[0-2][^\d]/,n=t.test(navigator.userAgent),i=/Chrome\/(39|40)\./.test(navigator.userAgent);(e||n||i)&&(PDFJS.disableRange=!0,PDFJS.disableStream=!0)}(),function(){(!history.pushState||navigator.userAgent.indexOf("Android 2.")>=0)&&(PDFJS.disableHistory=!0)}(),function(){if(window.CanvasPixelArray)"function"!=typeof window.CanvasPixelArray.prototype.set&&(window.CanvasPixelArray.prototype.set=function(e){for(var t=0,n=this.length;n>t;t++)this[t]=e[t]});else{var e,t=!1;if(navigator.userAgent.indexOf("Chrom")>=0?(e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./),t=e&&parseInt(e[2])<21):navigator.userAgent.indexOf("Android")>=0?t=/Android\s[0-4][^\d]/g.test(navigator.userAgent):navigator.userAgent.indexOf("Safari")>=0&&(e=navigator.userAgent.match(/Version\/([0-9]+)\.([0-9]+)\.([0-9]+) Safari\//),t=e&&parseInt(e[1])<6),t){var n=window.CanvasRenderingContext2D.prototype,i=n.createImageData;n.createImageData=function(e,t){var n=i.call(this,e,t);return n.data.set=function(e){for(var t=0,n=this.length;n>t;t++)this[t]=e[t]},n},n=null}}}(),function(){function e(e){window.setTimeout(e,20)}var t=/(iPad|iPhone|iPod)/g.test(navigator.userAgent);return t?void(window.requestAnimationFrame=e):void("requestAnimationFrame"in window||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e))}(),function(){var e=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),t=/Android/g.test(navigator.userAgent);(e||t)&&(PDFJS.maxCanvasPixels=5242880)}(),function(){var e=navigator.userAgent.indexOf("Trident")>=0&&window.parent!==window;e&&(PDFJS.disableFullscreen=!0)}(),function(){"currentScript"in document||Object.defineProperty(document,"currentScript",{get:function(){var e=document.getElementsByTagName("script");return e[e.length-1]},enumerable:!0,configurable:!0})}(),document.webL10n=function(e,t,n){function i(){return t.querySelectorAll('link[type="application/l10n"]')}function r(){var e=t.querySelector('script[type="application/l10n"]');return e?JSON.parse(e.innerHTML):null}function a(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}function s(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),i={};if(n)try{i=JSON.parse(n)}catch(r){console.warn("could not parse arguments for #"+t)}return{id:t,args:i}}function o(e){var n=t.createEvent("Event");n.initEvent("localized",!0,!1),n.language=e,t.dispatchEvent(n)}function l(e,t,n){t=t||function(e){},n=n||function(){console.warn(e+" not found.")};var i=new XMLHttpRequest;i.open("GET",e,x),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=utf-8"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||0===i.status?t(i.responseText):n())},i.onerror=n,i.ontimeout=n;try{i.send(null)}catch(r){n()}}function c(e,t,n,i){function r(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function a(e,n){function i(e,n,i){function l(){for(;;){if(!p.length)return void i();var e=p.shift();if(!h.test(e)){if(n){if(b=u.exec(e)){g=b[1].toLowerCase(),v="*"!==g&&g!==t&&g!==m;continue}if(v)continue;if(b=d.exec(e))return void a(s+b[1],l)}var c=e.match(f);c&&3==c.length&&(o[c[1]]=r(c[2]))}}}var p=e.replace(c,"").split(/[\r\n]+/),g="*",m=t.split("-",1)[0],v=!1,b="";l()}function a(e,t){l(e,function(e){i(e,!1,t)},null)}var o={},c=/^\s*|\s*$/,h=/^\s*#|^\s*$/,u=/^\s*\[(.*)\]\s*$/,d=/^\s*@import\s+url\((.*)\)\s*$/i,f=/^([^=\s]*)\s*=\s*(.+)$/;i(e,!0,function(){n(o)})}var s=e.replace(/[^\/]*$/,"")||"./";l(e,function(e){A+=e,a(e,function(e){for(var t in e){var i,r,a=t.lastIndexOf(".");a>0?(i=t.substring(0,a),r=t.substr(a+1)):(i=t,r=y),w[i]||(w[i]={}),w[i][r]=e[t]}n&&n()})},i)}function h(e,t){function n(e){var t=e.href;this.load=function(e,n){c(t,e,n,function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),S="",n()})}}e&&(e=e.toLowerCase()),t=t||function(){},u(),S=e;var a=i(),s=a.length;if(0===s){var l=r();if(l&&l.locales&&l.default_locale){if(console.log("using the embedded JSON directory, early way out"),w=l.locales[e],!w){var h=l.default_locale.toLowerCase();for(var d in l.locales){if(d=d.toLowerCase(),d===e){w=l.locales[e];break}d===h&&(w=l.locales[h])}}t()}else console.log("no resource to load, early way out");return o(e),void(C="complete")}var f=null,p=0;f=function(){p++,p>=s&&(t(),o(e),C="complete")};for(var g=0;s>g;g++){var m=new n(a[g]);m.load(e,f)}}function u(){w={},A="",S=""}function d(e){function t(e,t){return-1!==t.indexOf(e)}function n(e,t,n){return e>=t&&n>=e}var i={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3},r={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10===0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10===0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1e6===0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20===0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},a=i[e.replace(/-.*$/,"")];return a in r?r[a]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}function f(e,t,n){var i=w[e];if(!i){if(console.warn("#"+e+" is undefined."),!n)return null;i=n}var r={};for(var a in i){var s=i[a];s=p(s,t,e,a),s=g(s,t,e),r[a]=s}return r}function p(e,t,n,i){var r=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,a=r.exec(e);if(!a||!a.length)return e;var s,o=a[1],l=a[2];if(t&&l in t?s=t[l]:l in w&&(s=w[l]),o in P){var c=P[o];e=c(e,s,n,i)}return e}function g(e,t,n){var i=/\{\{\s*(.+?)\s*\}\}/g;return e.replace(i,function(e,i){return t&&i in t?t[i]:i in w?w[i]:(console.log("argument {{"+i+"}} for #"+n+" is undefined."),e)})}function m(e){var n=s(e);if(n.id){var i=f(n.id,n.args);if(!i)return void console.warn("#"+n.id+" is undefined.");if(i[y]){if(0===v(e))e[y]=i[y];else{for(var r=e.childNodes,a=!1,o=0,l=r.length;l>o;o++)3===r[o].nodeType&&/\S/.test(r[o].nodeValue)&&(a?r[o].nodeValue="":(r[o].nodeValue=i[y],a=!0));if(!a){var c=t.createTextNode(i[y]);e.insertBefore(c,e.firstChild)}}delete i[y]}for(var h in i)e[h]=i[h]}}function v(e){if(e.children)return e.children.length;if("undefined"!=typeof e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}function b(e){e=e||t.documentElement;for(var n=a(e),i=n.length,r=0;i>r;r++)m(n[r]);m(e)}var w={},A="",y="textContent",S="",P={},C="loading",x=!0;return P.plural=function(e,t,n,i){var r=parseFloat(t);if(isNaN(r))return e;if(i!=y)return e;P._pluralRules||(P._pluralRules=d(S));var a="["+P._pluralRules(r)+"]";return 0===r&&n+"[zero]"in w?e=w[n+"[zero]"][i]:1==r&&n+"[one]"in w?e=w[n+"[one]"][i]:2==r&&n+"[two]"in w?e=w[n+"[two]"][i]:n+a in w?e=w[n+a][i]:n+"[other]"in w&&(e=w[n+"[other]"][i]),e},{get:function(e,t,n){var i=e.lastIndexOf("."),r=y;i>0&&(r=e.substr(i+1),e=e.substring(0,i));var a;n&&(a={},a[r]=n);var s=f(e,t,a);return s&&r in s?s[r]:"{{"+e+"}}"},getData:function(){return w},getText:function(){return A},getLanguage:function(){return S},setLanguage:function(e,t){h(e,function(){t&&t(),b()})},getDirection:function(){var e=["ar","he","fa","ps","ur"],t=S.split("-",1)[0];return e.indexOf(t)>=0?"rtl":"ltr"},translate:b,getReadyState:function(){return C},ready:function(n){n&&("complete"==C||"interactive"==C?e.setTimeout(function(){n()}):t.addEventListener&&t.addEventListener("localized",function i(){t.removeEventListener("localized",i),n()}))}}}(window,document),function(e,t){"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",["exports"],t):t("undefined"!=typeof exports?exports:e.pdfjsDistBuildPdf={})}(this,function(e){var t="1.5.222",n="d20002b",i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:null,r={};(function(){!function(e,t){t(e.pdfjsSharedUtil={})}(this,function(e){function t(e){J=e}function n(){return J}function i(e){J>=q.infos&&console.log("Info: "+e)}function r(e){J>=q.warnings&&console.log("Warning: "+e)}function a(e){console.log("Deprecated API usage: "+e)}function s(e){throw J>=q.errors&&(console.log("Error: "+e),console.log(o())),new Error(e)}function o(){try{throw new Error}catch(e){return e.stack?e.stack.split("\n").slice(2).join("\n"):""}}function l(e,t){e||s(t)}function c(e,t){try{var n=new URL(e);if(!n.origin||"null"===n.origin)return!1}catch(i){return!1}var r=new URL(t,n);return n.origin===r.origin}function h(e,t){if(!e||"string"!=typeof e)return!1;var n=/^[a-z][a-z0-9+\-.]*(?=:)/i.exec(e);if(!n)return t;switch(n=n[0].toLowerCase()){case"http":case"https":case"ftp":case"mailto":case"tel":return!0;default:return!1}}function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}function d(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}}function f(e){return"string"!=typeof e?(r("The argument for removeNullCharacters must be a string."),e):e.replace(se,"")}function p(e){l(null!==e&&"object"==typeof e&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,n=8192;if(n>t)return String.fromCharCode.apply(null,e);for(var i=[],r=0;t>r;r+=n){var a=Math.min(r+n,t),s=e.subarray(r,a);i.push(String.fromCharCode.apply(null,s))}return i.join("")}function g(e){l("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),i=0;t>i;++i)n[i]=255&e.charCodeAt(i);return n}function m(e){return void 0!==e.length?e.length:(l(void 0!==e.byteLength),e.byteLength)}function v(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,n,i,r=0,a=e.length;for(t=0;a>t;t++)n=e[t],i=m(n),r+=i;var s=0,o=new Uint8Array(r);for(t=0;a>t;t++)n=e[t],n instanceof Uint8Array||(n="string"==typeof n?g(n):new Uint8Array(n)),i=n.byteLength,o.set(n,s),s+=i;return o}function b(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function w(e){for(var t=1,n=0;e>t;)t<<=1,n++;return n}function A(e,t){return e[t]<<24>>24}function y(e,t){return e[t]<<8|e[t+1]}function S(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function P(){var e=new Uint8Array(2);e[0]=1;var t=new Uint16Array(e.buffer);return 1===t[0]}function C(){try{return new Function(""),!0}catch(e){return!1}}function x(e){var t,n=e.length,i=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;n>t;t+=2)i.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));else for(t=0;n>t;++t){var r=ue[e.charCodeAt(t)];i.push(r?String.fromCharCode(r):e.charAt(t))}return i.join("")}function k(e){return decodeURIComponent(escape(e))}function L(e){return unescape(encodeURIComponent(e))}function _(e){for(var t in e)return!1;return!0}function T(e){return"boolean"==typeof e}function E(e){return"number"==typeof e&&(0|e)===e}function I(e){return"number"==typeof e}function D(e){return"string"==typeof e}function F(e){return e instanceof Array}function R(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength}function M(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}function B(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackIndex=1,this.postMessageTransfers=!0;var i=this.callbacksCapabilities=Object.create(null),r=this.actionHandler=Object.create(null);this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===this.sourceName)if(t.isReply){var a=t.callbackId;if(t.callbackId in i){var o=i[a];delete i[a],"error"in t?o.reject(t.error):o.resolve(t.data)}else s("Cannot resolve callback "+a)}else if(t.action in r){var l=r[t.action];if(t.callbackId){var c=this.sourceName,h=t.sourceName;Promise.resolve().then(function(){return l[0].call(l[1],t.data)}).then(function(e){n.postMessage({sourceName:c,targetName:h,isReply:!0,callbackId:t.callbackId,data:e})},function(e){e instanceof Error&&(e+=""),n.postMessage({sourceName:c,targetName:h,isReply:!0,callbackId:t.callbackId,error:e})})}else l[0].call(l[1],t.data)}else s("Unknown action from worker: "+t.action)}.bind(this),n.addEventListener("message",this._onComObjOnMessage)}function O(e,t,n){var i=new Image;i.onload=function(){n.resolve(e,i)},i.onerror=function(){n.resolve(e,null),r("Error during JPEG image loading")},i.src=t}var j="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,N=[.001,0,0,.001,0,0],U={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},V={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},W={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},H={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},z={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},G={UNKNOWN:0,FLATE:1,LZW:2,DCT:3,JPX:4,JBIG:5,A85:6,AHX:7,CCF:8,RL:9},X={UNKNOWN:0,TYPE1:1,TYPE1C:2,CIDFONTTYPE0:3,CIDFONTTYPE0C:4,TRUETYPE:5,CIDFONTTYPE2:6,TYPE3:7,OPENTYPE:8,TYPE0:9,MMTYPE1:10},q={errors:0,warnings:1,infos:5},Y={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},J=q.warnings,Q={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"},K={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},Z=function(){function e(e,t){this.name="PasswordException",this.message=e,this.code=t}return e.prototype=new Error,e.constructor=e,e}(),$=function(){function e(e,t){this.name="UnknownErrorException",this.message=e,this.details=t}return e.prototype=new Error,e.constructor=e,e}(),ee=function(){function e(e){this.name="InvalidPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),te=function(){function e(e){this.name="MissingPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}(),ne=function(){function e(e,t){this.name="UnexpectedResponseException",this.message=e,this.status=t}return e.prototype=new Error,e.constructor=e,e}(),ie=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="NotImplementedException",e.constructor=e,e}(),re=function(){function e(e,t){this.begin=e,this.end=t,this.message="Missing data ["+e+", "+t+")"}return e.prototype=new Error,e.prototype.name="MissingDataException",e.constructor=e,e}(),ae=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="XRefParseException",e.constructor=e,e}(),se=/\x00/g,oe=function(){function e(e,t){this.buffer=e,this.byteLength=e.length,this.length=void 0===t?this.byteLength>>2:t,n(this.length)}function t(e){return{get:function(){var t=this.buffer,n=e<<2;return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},set:function(t){var n=this.buffer,i=e<<2;n[i]=255&t,n[i+1]=t>>8&255,n[i+2]=t>>16&255,n[i+3]=t>>>24&255}}}function n(n){for(;n>i;)Object.defineProperty(e.prototype,i,t(i)),i++}e.prototype=Object.create(null);var i=0;return e}();e.Uint32ArrayView=oe;var le=[1,0,0,1,0,0],ce=function(){function e(){}var t=["rgb(",0,",",0,",",0,")"];e.makeCssRgb=function(e,n,i){return t[1]=e,t[3]=n,t[5]=i,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],i=e[0]*t[1]+e[1]*t[3]+t[5];return[n,i]},e.applyInverseTransform=function(e,t){var n=t[0]*t[3]-t[1]*t[2],i=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,r=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n;return[i,r]},e.getAxialAlignedBoundingBox=function(t,n){var i=e.applyTransform(t,n),r=e.applyTransform(t.slice(2,4),n),a=e.applyTransform([t[0],t[3]],n),s=e.applyTransform([t[2],t[1]],n);return[Math.min(i[0],r[0],a[0],s[0]),Math.min(i[1],r[1],a[1],s[1]),Math.max(i[0],r[0],a[0],s[0]),Math.max(i[1],r[1],a[1],s[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],i=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],s=(n+a)/2,o=Math.sqrt((n+a)*(n+a)-4*(n*a-r*i))/2,l=s+o||1,c=s-o||1;return[Math.sqrt(l),Math.sqrt(c)]},e.normalizeRect=function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},e.intersect=function(t,n){function i(e,t){return e-t}var r=[t[0],t[2],n[0],n[2]].sort(i),a=[t[1],t[3],n[1],n[3]].sort(i),s=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),r[0]===t[0]&&r[1]===n[0]||r[0]===n[0]&&r[1]===t[0]?(s[0]=r[1],s[2]=r[2],a[0]===t[1]&&a[1]===n[1]||a[0]===n[1]&&a[1]===t[1]?(s[1]=a[1],s[3]=a[2],s):!1):!1},e.sign=function(e){return 0>e?-1:1};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"];return e.toRoman=function(e,t){l(E(e)&&e>0,"The number should be a positive integer.");for(var i,r=[];e>=1e3;)e-=1e3,r.push("M");i=e/100|0,e%=100,r.push(n[i]),i=e/10|0,e%=10,r.push(n[10+i]),r.push(n[20+e]);var a=r.join("");return t?a.toLowerCase():a},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){for(;e&&!e.has(t);)e=e.get("Parent");
return e?e.get(t):null},e.inherit=function(e,t,n){e.prototype=Object.create(t.prototype),e.prototype.constructor=e;for(var i in n)e.prototype[i]=n[i]},e.loadScript=function(e,t){var n=document.createElement("script"),i=!1;n.setAttribute("src",e),t&&(n.onload=function(){i||t(),i=!0}),document.getElementsByTagName("head")[0].appendChild(n)},e}(),he=function(){function e(e,t,n,i,r,a){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=i,this.offsetY=r;var s,o,l,c,h=(e[2]+e[0])/2,u=(e[3]+e[1])/2;switch(n%=360,n=0>n?n+360:n){case 180:s=-1,o=0,l=0,c=1;break;case 90:s=0,o=1,l=1,c=0;break;case 270:s=0,o=-1,l=-1,c=0;break;default:s=1,o=0,l=0,c=-1}a&&(l=-l,c=-c);var d,f,p,g;0===s?(d=Math.abs(u-e[1])*t+i,f=Math.abs(h-e[0])*t+r,p=Math.abs(e[3]-e[1])*t,g=Math.abs(e[2]-e[0])*t):(d=Math.abs(h-e[0])*t+i,f=Math.abs(u-e[1])*t+r,p=Math.abs(e[2]-e[0])*t,g=Math.abs(e[3]-e[1])*t),this.transform=[s*t,o*t,l*t,c*t,d-s*t*h-l*t*u,f-o*t*h-c*t*u],this.width=p,this.height=g,this.fontScale=t}return e.prototype={clone:function(t){t=t||{};var n="scale"in t?t.scale:this.scale,i="rotation"in t?t.rotation:this.rotation;return new e(this.viewBox.slice(),n,i,this.offsetX,this.offsetY,t.dontFlip)},convertToViewportPoint:function(e,t){return ce.applyTransform([e,t],this.transform)},convertToViewportRectangle:function(e){var t=ce.applyTransform([e[0],e[1]],this.transform),n=ce.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]},convertToPdfPoint:function(e,t){return ce.applyInverseTransform([e,t],this.transform)}},e}(),ue=[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];!function(){function e(e){this._status=t,this._handlers=[];try{e.call(this,this._resolve.bind(this),this._reject.bind(this))}catch(n){this._reject(n)}}if(j.Promise)return"function"!=typeof j.Promise.all&&(j.Promise.all=function(e){var t,n,i=0,r=[],a=new j.Promise(function(e,i){t=e,n=i});return e.forEach(function(e,a){i++,e.then(function(e){r[a]=e,i--,0===i&&t(r)},n)}),0===i&&t(r),a}),"function"!=typeof j.Promise.resolve&&(j.Promise.resolve=function(e){return new j.Promise(function(t){t(e)})}),"function"!=typeof j.Promise.reject&&(j.Promise.reject=function(e){return new j.Promise(function(t,n){n(e)})}),void("function"!=typeof j.Promise.prototype["catch"]&&(j.Promise.prototype["catch"]=function(e){return j.Promise.prototype.then(void 0,e)}));var t=0,n=1,i=2,a=500,s={handlers:[],running:!1,unhandledRejections:[],pendingRejectionCheck:!1,scheduleHandlers:function(e){e._status!==t&&(this.handlers=this.handlers.concat(e._handlers),e._handlers=[],this.running||(this.running=!0,setTimeout(this.runHandlers.bind(this),0)))},runHandlers:function(){for(var e=1,t=Date.now()+e;this.handlers.length>0;){var r=this.handlers.shift(),a=r.thisPromise._status,s=r.thisPromise._value;try{a===n?"function"==typeof r.onResolve&&(s=r.onResolve(s)):"function"==typeof r.onReject&&(s=r.onReject(s),a=n,r.thisPromise._unhandledRejection&&this.removeUnhandeledRejection(r.thisPromise))}catch(o){a=i,s=o}if(r.nextPromise._updateStatus(a,s),Date.now()>=t)break}return this.handlers.length>0?void setTimeout(this.runHandlers.bind(this),0):void(this.running=!1)},addUnhandledRejection:function(e){this.unhandledRejections.push({promise:e,time:Date.now()}),this.scheduleRejectionCheck()},removeUnhandeledRejection:function(e){e._unhandledRejection=!1;for(var t=0;t<this.unhandledRejections.length;t++)this.unhandledRejections[t].promise===e&&(this.unhandledRejections.splice(t),t--)},scheduleRejectionCheck:function(){this.pendingRejectionCheck||(this.pendingRejectionCheck=!0,setTimeout(function(){this.pendingRejectionCheck=!1;for(var e=Date.now(),t=0;t<this.unhandledRejections.length;t++)if(e-this.unhandledRejections[t].time>a){var n=this.unhandledRejections[t].promise._value,i="Unhandled rejection: "+n;n.stack&&(i+="\n"+n.stack),r(i),this.unhandledRejections.splice(t),t--}this.unhandledRejections.length&&this.scheduleRejectionCheck()}.bind(this),a))}};e.all=function(t){function n(e){s._status!==i&&(l=[],a(e))}var r,a,s=new e(function(e,t){r=e,a=t}),o=t.length,l=[];if(0===o)return r(l),s;for(var c=0,h=t.length;h>c;++c){var u=t[c],d=function(e){return function(t){s._status!==i&&(l[e]=t,o--,0===o&&r(l))}}(c);e.isPromise(u)?u.then(d,n):d(u)}return s},e.isPromise=function(e){return e&&"function"==typeof e.then},e.resolve=function(t){return new e(function(e){e(t)})},e.reject=function(t){return new e(function(e,n){n(t)})},e.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(t,r){if(this._status!==n&&this._status!==i){if(t===n&&e.isPromise(r))return void r.then(this._updateStatus.bind(this,n),this._updateStatus.bind(this,i));this._status=t,this._value=r,t===i&&0===this._handlers.length&&(this._unhandledRejection=!0,s.addUnhandledRejection(this)),s.scheduleHandlers(this)}},_resolve:function(e){this._updateStatus(n,e)},_reject:function(e){this._updateStatus(i,e)},then:function(t,n){var i=new e(function(e,t){this.resolve=e,this.reject=t});return this._handlers.push({thisPromise:this,onResolve:t,onReject:n,nextPromise:i}),s.scheduleHandlers(this),i},"catch":function(e){return this.then(void 0,e)}},j.Promise=e}();var de=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}return t.prototype={time:function(e){this.enabled&&(e in this.started&&r("Timer is already running for "+e),this.started[e]=Date.now())},timeEnd:function(e){this.enabled&&(e in this.started||r("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,i=this.times,r="",a=0;for(t=0,n=i.length;n>t;++t){var s=i[t].name;s.length>a&&(a=s.length)}for(t=0,n=i.length;n>t;++t){var o=i[t],l=o.end-o.start;r+=e(o.name," ",a)+" "+l+"ms\n"}return r}},t}(),fe=function(e,t){if("undefined"!=typeof Blob)return new Blob([e],{type:t});var n=new MozBlobBuilder;return n.append(e),n.getBlob(t)},pe=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function(t,n,i){if(!i&&"undefined"!=typeof URL&&URL.createObjectURL){var r=fe(t,n);return URL.createObjectURL(r)}for(var a="data:"+n+";base64,",s=0,o=t.length;o>s;s+=3){var l=255&t[s],c=255&t[s+1],h=255&t[s+2],u=l>>2,d=(3&l)<<4|c>>4,f=o>s+1?(15&c)<<2|h>>6:64,p=o>s+2?63&h:64;a+=e[u]+e[d]+e[f]+e[p]}return a}}();B.prototype={on:function(e,t,n){var i=this.actionHandler;i[e]&&s('There is already an actionName called "'+e+'"'),i[e]=[t,n]},send:function(e,t,n){var i={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t};this.postMessage(i,n)},sendWithPromise:function(e,t,n){var i=this.callbackIndex++,r={sourceName:this.sourceName,targetName:this.targetName,action:e,data:t,callbackId:i},a=M();this.callbacksCapabilities[i]=a;try{this.postMessage(r,n)}catch(s){a.reject(s)}return a.promise},postMessage:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)},destroy:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}},function(e){function t(e){return void 0!==d[e]}function n(){o.call(this),this._isInvalid=!0}function i(e){return""==e&&n.call(this),e.toLowerCase()}function r(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function a(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function s(e,s,o){function l(e){w.push(e)}var c=s||"scheme start",h=0,u="",v=!1,b=!1,w=[];e:for(;(e[h-1]!=p||0==h)&&!this._isInvalid;){var A=e[h];switch(c){case"scheme start":if(!A||!g.test(A)){if(s){l("Invalid scheme.");break e}u="",c="no scheme";continue}u+=A.toLowerCase(),c="scheme";break;case"scheme":if(A&&m.test(A))u+=A.toLowerCase();else{if(":"!=A){if(s){if(p==A)break e;l("Code point not allowed in scheme: "+A);break e}u="",h=0,c="no scheme";continue}if(this._scheme=u,u="",s)break e;t(this._scheme)&&(this._isRelative=!0),c="file"==this._scheme?"relative":this._isRelative&&o&&o._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==A?(this._query="?",c="query"):"#"==A?(this._fragment="#",c="fragment"):p!=A&&" "!=A&&"\n"!=A&&"\r"!=A&&(this._schemeData+=r(A));break;case"no scheme":if(o&&t(o._scheme)){c="relative";continue}l("Missing scheme."),n.call(this);break;case"relative or authority":if("/"!=A||"/"!=e[h+1]){l("Expected /, got: "+A),c="relative";continue}c="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=o._scheme),p==A){this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query=o._query,this._username=o._username,this._password=o._password;break e}if("/"==A||"\\"==A)"\\"==A&&l("\\ is an invalid code point."),c="relative slash";else if("?"==A)this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query="?",this._username=o._username,this._password=o._password,c="query";else{if("#"!=A){var y=e[h+1],S=e[h+2];("file"!=this._scheme||!g.test(A)||":"!=y&&"|"!=y||p!=S&&"/"!=S&&"\\"!=S&&"?"!=S&&"#"!=S)&&(this._host=o._host,this._port=o._port,this._username=o._username,this._password=o._password,this._path=o._path.slice(),this._path.pop()),c="relative path";continue}this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query=o._query,this._fragment="#",this._username=o._username,this._password=o._password,c="fragment"}break;case"relative slash":if("/"!=A&&"\\"!=A){"file"!=this._scheme&&(this._host=o._host,this._port=o._port,this._username=o._username,this._password=o._password),c="relative path";continue}"\\"==A&&l("\\ is an invalid code point."),c="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=A){l("Expected '/', got: "+A),c="authority ignore slashes";continue}c="authority second slash";break;case"authority second slash":if(c="authority ignore slashes","/"!=A){l("Expected '/', got: "+A);continue}break;case"authority ignore slashes":if("/"!=A&&"\\"!=A){c="authority";continue}l("Expected authority, got: "+A);break;case"authority":if("@"==A){v&&(l("@ already seen."),u+="%40"),v=!0;for(var P=0;P<u.length;P++){var C=u[P];if(" "!=C&&"\n"!=C&&"\r"!=C)if(":"!=C||null!==this._password){var x=r(C);null!==this._password?this._password+=x:this._username+=x}else this._password="";else l("Invalid whitespace in authority.")}u=""}else{if(p==A||"/"==A||"\\"==A||"?"==A||"#"==A){h-=u.length,u="",c="host";continue}u+=A}break;case"file host":if(p==A||"/"==A||"\\"==A||"?"==A||"#"==A){2!=u.length||!g.test(u[0])||":"!=u[1]&&"|"!=u[1]?0==u.length?c="relative path start":(this._host=i.call(this,u),u="",c="relative path start"):c="relative path";continue}" "==A||"\n"==A||"\r"==A?l("Invalid whitespace in file host."):u+=A;break;case"host":case"hostname":if(":"!=A||b){if(p==A||"/"==A||"\\"==A||"?"==A||"#"==A){if(this._host=i.call(this,u),u="",c="relative path start",s)break e;continue}" "!=A&&"\n"!=A&&"\r"!=A?("["==A?b=!0:"]"==A&&(b=!1),u+=A):l("Invalid code point in host/hostname: "+A)}else if(this._host=i.call(this,u),u="",c="port","hostname"==s)break e;break;case"port":if(/[0-9]/.test(A))u+=A;else{if(p==A||"/"==A||"\\"==A||"?"==A||"#"==A||s){if(""!=u){var k=parseInt(u,10);k!=d[this._scheme]&&(this._port=k+""),u=""}if(s)break e;c="relative path start";continue}" "==A||"\n"==A||"\r"==A?l("Invalid code point in port: "+A):n.call(this)}break;case"relative path start":if("\\"==A&&l("'\\' not allowed in path."),c="relative path","/"!=A&&"\\"!=A)continue;break;case"relative path":if(p!=A&&"/"!=A&&"\\"!=A&&(s||"?"!=A&&"#"!=A))" "!=A&&"\n"!=A&&"\r"!=A&&(u+=r(A));else{"\\"==A&&l("\\ not allowed in relative path.");var L;(L=f[u.toLowerCase()])&&(u=L),".."==u?(this._path.pop(),"/"!=A&&"\\"!=A&&this._path.push("")):"."==u&&"/"!=A&&"\\"!=A?this._path.push(""):"."!=u&&("file"==this._scheme&&0==this._path.length&&2==u.length&&g.test(u[0])&&"|"==u[1]&&(u=u[0]+":"),this._path.push(u)),u="","?"==A?(this._query="?",c="query"):"#"==A&&(this._fragment="#",c="fragment")}break;case"query":s||"#"!=A?p!=A&&" "!=A&&"\n"!=A&&"\r"!=A&&(this._query+=a(A)):(this._fragment="#",c="fragment");break;case"fragment":p!=A&&" "!=A&&"\n"!=A&&"\r"!=A&&(this._fragment+=A)}h++}}function o(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function l(e,t){void 0===t||t instanceof l||(t=new l(String(t))),this._url=e,o.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");s.call(this,n,null,t)}var c=!1;try{if("function"==typeof URL&&"object"==typeof URL.prototype&&"origin"in URL.prototype){var h=new URL("b","http://a");h.pathname="c%20d",c="http://a/c%20d"===h.href}}catch(u){}if(!c){var d=Object.create(null);d.ftp=21,d.file=0,d.gopher=70,d.http=80,d.https=443,d.ws=80,d.wss=443;var f=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var p=void 0,g=/[a-zA-Z]/,m=/[a-zA-Z0-9\+\-\.]/;l.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""==this._username&&null==this._password||(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){o.call(this),s.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||s.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],s.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),s.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),s.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var v=e.URL;v&&(l.createObjectURL=function(e){return v.createObjectURL.apply(v,arguments)},l.revokeObjectURL=function(e){v.revokeObjectURL(e)}),e.URL=l}}(j),e.FONT_IDENTITY_MATRIX=N,e.IDENTITY_MATRIX=le,e.OPS=Y,e.VERBOSITY_LEVELS=q,e.UNSUPPORTED_FEATURES=Q,e.AnnotationBorderStyleType=z,e.AnnotationFlag=H,e.AnnotationType=W,e.FontType=X,e.ImageKind=V,e.InvalidPDFException=ee,e.MessageHandler=B,e.MissingDataException=re,e.MissingPDFException=te,e.NotImplementedException=ie,e.PageViewport=he,e.PasswordException=Z,e.PasswordResponses=K,e.StatTimer=de,e.StreamType=G,e.TextRenderingMode=U,e.UnexpectedResponseException=ne,e.UnknownErrorException=$,e.Util=ce,e.XRefParseException=ae,e.arrayByteLength=m,e.arraysToBytes=v,e.assert=l,e.bytesToString=p,e.createBlob=fe,e.createPromiseCapability=M,e.createObjectURL=pe,e.deprecated=a,e.error=s,e.getLookupTableFactory=d,e.getVerbosityLevel=n,e.globalScope=j,e.info=i,e.isArray=F,e.isArrayBuffer=R,e.isBool=T,e.isEmptyObj=_,e.isInt=E,e.isNum=I,e.isString=D,e.isSameOrigin=c,e.isValidUrl=h,e.isLittleEndian=P,e.isEvalSupported=C,e.loadJpegStream=O,e.log2=w,e.readInt8=A,e.readUint16=y,e.readUint32=S,e.removeNullCharacters=f,e.setVerbosityLevel=t,e.shadow=u,e.string32=b,e.stringToBytes=g,e.stringToPDFString=x,e.stringToUTF8String=k,e.utf8StringToString=L,e.warn=r}),function(e,t){t(e.pdfjsDisplayDOMUtils={},e.pdfjsSharedUtil)}(this,function(e,t){function n(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d"),n=t.createImageData(1,1);return"undefined"!=typeof n.data.buffer}function i(e,t){var n=t&&t.url;if(e.href=e.title=n?o(n):"",n){var i=t.target;"undefined"==typeof i&&(i=a("externalLinkTarget")),e.target=u[i];var r=t.rel;"undefined"==typeof r&&(r=a("externalLinkRel")),e.rel=r}}function r(e){var t=e.indexOf("#"),n=e.indexOf("?"),i=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",i)+1,i)}function a(e){var n=t.globalScope.PDFJS;switch(e){case"pdfBug":return n?n.pdfBug:!1;case"disableAutoFetch":return n?n.disableAutoFetch:!1;case"disableStream":return n?n.disableStream:!1;case"disableRange":return n?n.disableRange:!1;case"disableFontFace":return n?n.disableFontFace:!1;case"disableCreateObjectURL":return n?n.disableCreateObjectURL:!1;case"disableWebGL":return n?n.disableWebGL:!0;case"cMapUrl":return n?n.cMapUrl:null;case"cMapPacked":return n?n.cMapPacked:!1;case"postMessageTransfers":return n?n.postMessageTransfers:!0;case"workerSrc":return n?n.workerSrc:null;case"disableWorker":return n?n.disableWorker:!1;case"maxImageSize":return n?n.maxImageSize:-1;case"imageResourcesPath":return n?n.imageResourcesPath:"";case"isEvalSupported":return n?n.isEvalSupported:!0;case"externalLinkTarget":if(!n)return h.NONE;switch(n.externalLinkTarget){case h.NONE:case h.SELF:case h.BLANK:case h.PARENT:case h.TOP:return n.externalLinkTarget}return l("PDFJS.externalLinkTarget is invalid: "+n.externalLinkTarget),n.externalLinkTarget=h.NONE,h.NONE;case"externalLinkRel":return n?n.externalLinkRel:"noreferrer";case"enableStats":return!(!n||!n.enableStats);default:throw new Error("Unknown default setting: "+e)}}function s(){var e=a("externalLinkTarget");switch(e){case h.NONE:return!1;case h.SELF:case h.BLANK:case h.PARENT:case h.TOP:return!0}}var o=t.removeNullCharacters,l=t.warn,c=function(){function e(){}var t=["ms","Moz","Webkit","O"],n=Object.create(null);return e.getProp=function(e,i){if(1===arguments.length&&"string"==typeof n[e])return n[e];i=i||document.documentElement;var r,a,s=i.style;if("string"==typeof s[e])return n[e]=e;a=e.charAt(0).toUpperCase()+e.slice(1);for(var o=0,l=t.length;l>o;o++)if(r=t[o]+a,"string"==typeof s[r])return n[e]=r;return n[e]="undefined"},e.setProp=function(e,t,n){var i=this.getProp(e);"undefined"!==i&&(t.style[i]=n)},e}(),h={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},u=["","_self","_blank","_parent","_top"];e.CustomStyle=c,e.addLinkAttributes=i,e.isExternalLinkTargetSet=s,e.getFilenameFromUrl=r,e.LinkTarget=h,e.hasCanvasTypedArrays=n,e.getDefaultSetting=a}),function(e,t){t(e.pdfjsDisplayFontLoader={},e.pdfjsSharedUtil)}(this,function(e,t){function n(e){this.docId=e,this.styleElement=null,this.nativeFontFaces=[],this.loadTestFontId=0,this.loadingContext={requests:[],nextRequestId:0}}var i=t.assert,r=t.bytesToString,a=t.string32,s=t.shadow,o=t.warn;n.prototype={insertRule:function(e){var t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_"+this.docId,document.documentElement.getElementsByTagName("head")[0].appendChild(t));var n=t.sheet;n.insertRule(e,n.cssRules.length)},clear:function(){var e=this.styleElement;e&&(e.parentNode.removeChild(e),e=this.styleElement=null),this.nativeFontFaces.forEach(function(e){document.fonts["delete"](e)}),this.nativeFontFaces.length=0},get loadTestFont(){return s(this,"loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))},addNativeFontFace:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)},bind:function(e,t){for(var i=[],r=[],a=[],s=function(e){return e.loaded["catch"](function(t){o('Failed to load font "'+e.family+'": '+t)})},l=0,c=e.length;c>l;l++){var h=e[l];if(!h.attached&&h.loading!==!1)if(h.attached=!0,n.isFontLoadingAPISupported){var u=h.createNativeFontFace();u&&(this.addNativeFontFace(u),a.push(s(u)))}else{var d=h.createFontFaceRule();d&&(this.insertRule(d),i.push(d),r.push(h))}}var f=this.queueLoadingCallback(t);n.isFontLoadingAPISupported?Promise.all(a).then(function(){f.complete()}):i.length>0&&!n.isSyncFontLoadingSupported?this.prepareFontLoadEvent(i,r,f):f.complete()},queueLoadingCallback:function(e){function t(){for(i(!a.end,"completeRequest() cannot be called twice"),a.end=Date.now();n.requests.length>0&&n.requests[0].end;){var e=n.requests.shift();setTimeout(e.callback,0)}}var n=this.loadingContext,r="pdfjs-font-loading-"+n.nextRequestId++,a={id:r,complete:t,callback:e,started:Date.now()};return n.requests.push(a),a},prepareFontLoadEvent:function(e,t,n){function i(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function r(e,t,n,i){var r=e.substr(0,t),a=e.substr(t+n);return r+i+a}function s(e,t){if(d++,d>30)return o("Load test font never loaded."),void t();u.font="30px "+e,u.fillText(".",0,20);var n=u.getImageData(0,0,1,1);return n.data[3]>0?void t():void setTimeout(s.bind(null,e,t))}var l,c,h=document.createElement("canvas");h.width=1,h.height=1;var u=h.getContext("2d"),d=0,f="lt"+Date.now()+this.loadTestFontId++,p=this.loadTestFont,g=976;p=r(p,g,f.length,f);var m=16,v=1482184792,b=i(p,m);for(l=0,c=f.length-3;c>l;l+=4)b=b-v+i(f,l)|0;l<f.length&&(b=b-v+i(f+"XXX",l)|0),p=r(p,m,4,a(b));var w="url(data:font/opentype;base64,"+btoa(p)+");",A='@font-face { font-family:"'+f+'";src:'+w+"}";this.insertRule(A);var y=[];for(l=0,c=t.length;c>l;l++)y.push(t[l].loadedName);y.push(f);var S=document.createElement("div");for(S.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;"),l=0,c=y.length;c>l;++l){var P=document.createElement("span");P.textContent="Hi",P.style.fontFamily=y[l],S.appendChild(P)}document.body.appendChild(S),s(f,function(){document.body.removeChild(S),n.complete()})}},n.isFontLoadingAPISupported="undefined"!=typeof document&&!!document.fonts,Object.defineProperty(n,"isSyncFontLoadingSupported",{get:function(){if("undefined"==typeof navigator)return s(n,"isSyncFontLoadingSupported",!0);var e=!1,t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);return t&&t[1]>=14&&(e=!0),s(n,"isSyncFontLoadingSupported",e)},enumerable:!0,configurable:!0});var l={get value(){return s(this,"value",t.isEvalSupported())}},c=function(){function e(e,t){this.compiledGlyphs=Object.create(null);for(var n in e)this[n]=e[n];this.options=t}return e.prototype={createNativeFontFace:function(){if(!this.data)return null;if(this.options.disableFontFace)return this.disableFontFace=!0,null;var e=new FontFace(this.loadedName,this.data,{});return this.options.fontRegistry&&this.options.fontRegistry.registerFont(this),e},createFontFaceRule:function(){if(!this.data)return null;if(this.options.disableFontFace)return this.disableFontFace=!0,null;var e=r(new Uint8Array(this.data)),t=this.loadedName,n="url(data:"+this.mimetype+";base64,"+btoa(e)+");",i='@font-face { font-family:"'+t+'";src:'+n+"}";return this.options.fontRegistry&&this.options.fontRegistry.registerFont(this,n),i},getPathGenerator:function(e,t){if(!(t in this.compiledGlyphs)){var n,i,r,a=e.get(this.loadedName+"_path_"+t);if(this.options.isEvalSupported&&l.value){var s,o="";for(i=0,r=a.length;r>i;i++)n=a[i],s=void 0!==n.args?n.args.join(","):"",o+="c."+n.cmd+"("+s+");\n";this.compiledGlyphs[t]=new Function("c","size",o)}else this.compiledGlyphs[t]=function(e,t){for(i=0,r=a.length;r>i;i++)n=a[i],"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}return this.compiledGlyphs[t]}},e}();e.FontFaceObject=c,e.FontLoader=n}),function(e,t){t(e.pdfjsDisplayMetadata={},e.pdfjsSharedUtil)}(this,function(e,t){function n(e){return e.replace(/>\\376\\377([^<]+)/g,function(e,t){for(var n=t.replace(/\\([0-3])([0-7])([0-7])/g,function(e,t,n,i){return String.fromCharCode(64*t+8*n+1*i)}),i="",r=0;r<n.length;r+=2){var a=256*n.charCodeAt(r)+n.charCodeAt(r+1);i+="&#x"+(65536+a).toString(16).substring(1)+";"}return">"+i})}function i(e){if("string"==typeof e){e=n(e);var t=new DOMParser;e=t.parseFromString(e,"application/xml")}else e instanceof Document||r("Metadata: Invalid metadata object");this.metaDocument=e,this.metadata=Object.create(null),this.parse()}var r=t.error;i.prototype={parse:function(){var e=this.metaDocument,t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var n=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===n&&t.hasChildNodes()){var i,r,a,s,o,l,c,h=t.childNodes;for(s=0,l=h.length;l>s;s++)if(i=h[s],"rdf:description"===i.nodeName.toLowerCase())for(o=0,c=i.childNodes.length;c>o;o++)"#text"!==i.childNodes[o].nodeName.toLowerCase()&&(r=i.childNodes[o],a=r.nodeName.toLowerCase(),this.metadata[a]=r.textContent.trim())}},get:function(e){return this.metadata[e]||null},has:function(e){return"undefined"!=typeof this.metadata[e]}},e.Metadata=i}),function(e,t){t(e.pdfjsDisplaySVG={},e.pdfjsSharedUtil)}(this,function(e,t){var n=t.FONT_IDENTITY_MATRIX,i=t.IDENTITY_MATRIX,r=t.ImageKind,a=t.OPS,s=t.Util,o=t.isNum,l=t.isArray,c=t.warn,h=t.createObjectURL,u={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},d=function(){function e(e,t,n){for(var i=-1,r=t;n>r;r++){var a=255&(i^e[r]),s=o[a];i=i>>>8^s}return-1^i}function t(t,n,i,r){var a=r,s=n.length;i[a]=s>>24&255,i[a+1]=s>>16&255,i[a+2]=s>>8&255,i[a+3]=255&s,a+=4,i[a]=255&t.charCodeAt(0),i[a+1]=255&t.charCodeAt(1),i[a+2]=255&t.charCodeAt(2),i[a+3]=255&t.charCodeAt(3),a+=4,i.set(n,a),a+=n.length;var o=e(i,r+4,a);i[a]=o>>24&255,i[a+1]=o>>16&255,i[a+2]=o>>8&255,i[a+3]=255&o}function n(e,t,n){for(var i=1,r=0,a=t;n>a;++a)i=(i+(255&e[a]))%65521,r=(r+i)%65521;return r<<16|i}function i(e,i,o){var l,c,u,d=e.width,f=e.height,p=e.data;switch(i){case r.GRAYSCALE_1BPP:c=0,l=1,u=d+7>>3;break;case r.RGB_24BPP:c=2,l=8,u=3*d;break;case r.RGBA_32BPP:c=6,l=8,u=4*d;break;default:throw new Error("invalid format")}var g,m,v=new Uint8Array((1+u)*f),b=0,w=0;for(g=0;f>g;++g)v[b++]=0,v.set(p.subarray(w,w+u),b),w+=u,b+=u;if(i===r.GRAYSCALE_1BPP)for(b=0,g=0;f>g;g++)for(b++,m=0;u>m;m++)v[b++]^=255;var A=new Uint8Array([d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f,l,c,0,0,0]),y=v.length,S=65535,P=Math.ceil(y/S),C=new Uint8Array(2+y+5*P+4),x=0;C[x++]=120,C[x++]=156;for(var k=0;y>S;)C[x++]=0,C[x++]=255,C[x++]=255,C[x++]=0,C[x++]=0,C.set(v.subarray(k,k+S),x),x+=S,k+=S,y-=S;C[x++]=1,C[x++]=255&y,C[x++]=y>>8&255,C[x++]=65535&~y&255,C[x++]=(65535&~y)>>8&255,C.set(v.subarray(k),x),x+=v.length-k;var L=n(v,0,v.length);C[x++]=L>>24&255,C[x++]=L>>16&255,C[x++]=L>>8&255,C[x++]=255&L;var _=a.length+3*s+A.length+C.length,T=new Uint8Array(_),E=0;return T.set(a,E),E+=a.length,t("IHDR",A,T,E),E+=s+A.length,t("IDATA",C,T,E),E+=s+C.length,t("IEND",new Uint8Array(0),T,E),h(T,"image/png",o)}for(var a=new Uint8Array([137,80,78,71,13,10,26,10]),s=12,o=new Int32Array(256),l=0;256>l;l++){for(var c=l,u=0;8>u;u++)c=1&c?3988292384^c>>1&2147483647:c>>1&2147483647;o[l]=c}return function(e,t){var n=void 0===e.kind?r.GRAYSCALE_1BPP:e.kind;return i(e,n,t)}}(),f=function(){function e(){this.fontSizeScale=1,this.fontWeight=u.fontWeight,this.fontSize=0,this.textMatrix=i,this.fontMatrix=n,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=u.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.clipId="",this.pendingClip=!1,this.maskId=""}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),p=function(){function e(e,t){var n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg:svg");return i.setAttributeNS(null,"version","1.1"),i.setAttributeNS(null,"width",e+"px"),i.setAttributeNS(null,"height",t+"px"),i.setAttributeNS(null,"viewBox","0 0 "+e+" "+t),i}function t(e){for(var t=[],n=[],i=e.length,r=0;i>r;r++)"save"!==e[r].fn?"restore"===e[r].fn?t=n.pop():t.push(e[r]):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t[t.length-1].items);return t}function r(e){if(e===(0|e))return e.toString();var t=e.toFixed(10),n=t.length-1;if("0"!==t[n])return t;do n--;while("0"===t[n]);return t.substr(0,"."===t[n]?n:n+1)}function p(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale("+r(e[0])+" "+r(e[3])+")";if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate("+r(t)+")"}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate("+r(e[4])+" "+r(e[5])+")";return"matrix("+r(e[0])+" "+r(e[1])+" "+r(e[2])+" "+r(e[3])+" "+r(e[4])+" "+r(e[5])+")"}function g(e,t,n){this.current=new f,this.transformMatrix=i,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n}var m="http://www.w3.org/2000/svg",v="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/1999/xlink",w=["butt","round","square"],A=["miter","round","bevel"],y=0,S=0;return g.prototype={save:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()},restore:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.tgrp=document.createElementNS(m,"svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix)),this.pgrp.appendChild(this.tgrp)},group:function(e){this.save(),this.executeOpTree(e),this.restore()},loadDependencies:function(e){for(var t=e.fnArray,n=t.length,i=e.argsArray,r=this,s=0;n>s;s++)if(a.dependency===t[s])for(var o=i[s],l=0,c=o.length;c>l;l++){var h,u=o[l],d="g_"===u.substring(0,2);h=d?new Promise(function(e){r.commonObjs.get(u,e)}):new Promise(function(e){r.objs.get(u,e)}),this.current.dependencies.push(h)}return Promise.all(this.current.dependencies)},transform:function(e,t,n,i,r,a){var o=[e,t,n,i,r,a];this.transformMatrix=s.transform(this.transformMatrix,o),
this.tgrp=document.createElementNS(m,"svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix))},getSVG:function(t,n){return this.svg=e(n.width,n.height),this.viewport=n,this.loadDependencies(t).then(function(){this.transformMatrix=i,this.pgrp=document.createElementNS(m,"svg:g"),this.pgrp.setAttributeNS(null,"transform",p(n.transform)),this.tgrp=document.createElementNS(m,"svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix)),this.defs=document.createElementNS(m,"svg:defs"),this.pgrp.appendChild(this.defs),this.pgrp.appendChild(this.tgrp),this.svg.appendChild(this.pgrp);var e=this.convertOpList(t);return this.executeOpTree(e),this.svg}.bind(this))},convertOpList:function(e){var n=e.argsArray,i=e.fnArray,r=i.length,s=[],o=[];for(var l in a)s[a[l]]=l;for(var c=0;r>c;c++){var h=i[c];o.push({fnId:h,fn:s[h],args:n[c]})}return t(o)},executeOpTree:function(e){for(var t=e.length,n=0;t>n;n++){var i=e[n].fn,r=e[n].fnId,s=e[n].args;switch(0|r){case a.beginText:this.beginText();break;case a.setLeading:this.setLeading(s);break;case a.setLeadingMoveText:this.setLeadingMoveText(s[0],s[1]);break;case a.setFont:this.setFont(s);break;case a.showText:this.showText(s[0]);break;case a.showSpacedText:this.showText(s[0]);break;case a.endText:this.endText();break;case a.moveText:this.moveText(s[0],s[1]);break;case a.setCharSpacing:this.setCharSpacing(s[0]);break;case a.setWordSpacing:this.setWordSpacing(s[0]);break;case a.setHScale:this.setHScale(s[0]);break;case a.setTextMatrix:this.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]);break;case a.setLineWidth:this.setLineWidth(s[0]);break;case a.setLineJoin:this.setLineJoin(s[0]);break;case a.setLineCap:this.setLineCap(s[0]);break;case a.setMiterLimit:this.setMiterLimit(s[0]);break;case a.setFillRGBColor:this.setFillRGBColor(s[0],s[1],s[2]);break;case a.setStrokeRGBColor:this.setStrokeRGBColor(s[0],s[1],s[2]);break;case a.setDash:this.setDash(s[0],s[1]);break;case a.setGState:this.setGState(s[0]);break;case a.fill:this.fill();break;case a.eoFill:this.eoFill();break;case a.stroke:this.stroke();break;case a.fillStroke:this.fillStroke();break;case a.eoFillStroke:this.eoFillStroke();break;case a.clip:this.clip("nonzero");break;case a.eoClip:this.clip("evenodd");break;case a.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case a.paintJpegXObject:this.paintJpegXObject(s[0],s[1],s[2]);break;case a.paintImageXObject:this.paintImageXObject(s[0]);break;case a.paintInlineImageXObject:this.paintInlineImageXObject(s[0]);break;case a.paintImageMaskXObject:this.paintImageMaskXObject(s[0]);break;case a.paintFormXObjectBegin:this.paintFormXObjectBegin(s[0],s[1]);break;case a.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case a.closePath:this.closePath();break;case a.closeStroke:this.closeStroke();break;case a.closeFillStroke:this.closeFillStroke();break;case a.nextLine:this.nextLine();break;case a.transform:this.transform(s[0],s[1],s[2],s[3],s[4],s[5]);break;case a.constructPath:this.constructPath(s[0],s[1]);break;case a.endPath:this.endPath();break;case 92:this.group(e[n].items);break;default:c("Unimplemented method "+i)}}},setWordSpacing:function(e){this.current.wordSpacing=e},setCharSpacing:function(e){this.current.charSpacing=e},nextLine:function(){this.moveText(0,this.current.leading)},setTextMatrix:function(e,t,n,i,a,s){var o=this.current;this.current.textMatrix=this.current.lineMatrix=[e,t,n,i,a,s],this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,o.xcoords=[],o.tspan=document.createElementNS(m,"svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size",r(o.fontSize)+"px"),o.tspan.setAttributeNS(null,"y",r(-o.y)),o.txtElement=document.createElementNS(m,"svg:text"),o.txtElement.appendChild(o.tspan)},beginText:function(){this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.current.textMatrix=i,this.current.lineMatrix=i,this.current.tspan=document.createElementNS(m,"svg:tspan"),this.current.txtElement=document.createElementNS(m,"svg:text"),this.current.txtgrp=document.createElementNS(m,"svg:g"),this.current.xcoords=[]},moveText:function(e,t){var n=this.current;this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t,n.xcoords=[],n.tspan=document.createElementNS(m,"svg:tspan"),n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size",r(n.fontSize)+"px"),n.tspan.setAttributeNS(null,"y",r(-n.y))},showText:function(e){var t=this.current,n=t.font,i=t.fontSize;if(0!==i){var a,s=t.charSpacing,l=t.wordSpacing,c=t.fontDirection,h=t.textHScale*c,d=e.length,f=n.vertical,g=i*t.fontMatrix[0],m=0;for(a=0;d>a;++a){var b=e[a];if(null!==b)if(o(b))m+=-b*i*.001;else{t.xcoords.push(t.x+m*h);var w=b.width,A=b.fontChar,y=w*g+s*c;m+=y,t.tspan.textContent+=A}else m+=c*l}f?t.y-=m*h:t.x+=m*h,t.tspan.setAttributeNS(null,"x",t.xcoords.map(r).join(" ")),t.tspan.setAttributeNS(null,"y",r(-t.y)),t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size",r(t.fontSize)+"px"),t.fontStyle!==u.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==u.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight),t.fillColor!==u.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.txtElement.setAttributeNS(null,"transform",p(t.textMatrix)+" scale(1, -1)"),t.txtElement.setAttributeNS(v,"xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this.tgrp.appendChild(t.txtElement)}},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},addFontStyle:function(e){this.cssStyle||(this.cssStyle=document.createElementNS(m,"svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=h(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'+e.loadedName+'"; src: url('+t+"); }\n"},setFont:function(e){var t=this.current,i=this.commonObjs.get(e[0]),a=e[1];this.current.font=i,this.embedFonts&&i.data&&!this.embeddedFonts[i.loadedName]&&(this.addFontStyle(i),this.embeddedFonts[i.loadedName]=i),t.fontMatrix=i.fontMatrix?i.fontMatrix:n;var s=i.black?i.bold?"bolder":"bold":i.bold?"bold":"normal",o=i.italic?"italic":"normal";0>a?(a=-a,t.fontDirection=-1):t.fontDirection=1,t.fontSize=a,t.fontFamily=i.loadedName,t.fontWeight=s,t.fontStyle=o,t.tspan=document.createElementNS(m,"svg:tspan"),t.tspan.setAttributeNS(null,"y",r(-t.y)),t.xcoords=[]},endText:function(){this.current.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp),this.tgrp=document.createElementNS(m,"svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix))},setLineWidth:function(e){this.current.lineWidth=e},setLineCap:function(e){this.current.lineCap=w[e]},setLineJoin:function(e){this.current.lineJoin=A[e]},setMiterLimit:function(e){this.current.miterLimit=e},setStrokeRGBColor:function(e,t,n){var i=s.makeCssRgb(e,t,n);this.current.strokeColor=i},setFillRGBColor:function(e,t,n){var i=s.makeCssRgb(e,t,n);this.current.fillColor=i,this.current.tspan=document.createElementNS(m,"svg:tspan"),this.current.xcoords=[]},setDash:function(e,t){this.current.dashArray=e,this.current.dashPhase=t},constructPath:function(e,t){var n=this.current,i=n.x,s=n.y;n.path=document.createElementNS(m,"svg:path");for(var o=[],l=e.length,c=0,h=0;l>c;c++)switch(0|e[c]){case a.rectangle:i=t[h++],s=t[h++];var u=t[h++],d=t[h++],f=i+u,p=s+d;o.push("M",r(i),r(s),"L",r(f),r(s),"L",r(f),r(p),"L",r(i),r(p),"Z");break;case a.moveTo:i=t[h++],s=t[h++],o.push("M",r(i),r(s));break;case a.lineTo:i=t[h++],s=t[h++],o.push("L",r(i),r(s));break;case a.curveTo:i=t[h+4],s=t[h+5],o.push("C",r(t[h]),r(t[h+1]),r(t[h+2]),r(t[h+3]),r(i),r(s)),h+=6;break;case a.curveTo2:i=t[h+2],s=t[h+3],o.push("C",r(i),r(s),r(t[h]),r(t[h+1]),r(t[h+2]),r(t[h+3])),h+=4;break;case a.curveTo3:i=t[h+2],s=t[h+3],o.push("C",r(t[h]),r(t[h+1]),r(i),r(s),r(i),r(s)),h+=4;break;case a.closePath:o.push("Z")}n.path.setAttributeNS(null,"d",o.join(" ")),n.path.setAttributeNS(null,"stroke-miterlimit",r(n.miterLimit)),n.path.setAttributeNS(null,"stroke-linecap",n.lineCap),n.path.setAttributeNS(null,"stroke-linejoin",n.lineJoin),n.path.setAttributeNS(null,"stroke-width",r(n.lineWidth)+"px"),n.path.setAttributeNS(null,"stroke-dasharray",n.dashArray.map(r).join(" ")),n.path.setAttributeNS(null,"stroke-dashoffset",r(n.dashPhase)+"px"),n.path.setAttributeNS(null,"fill","none"),this.tgrp.appendChild(n.path),n.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp),n.element=n.path,n.setCurrentPoint(i,s)},endPath:function(){var e=this.current;e.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp),this.tgrp=document.createElementNS(m,"svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix))},clip:function(e){var t=this.current;t.clipId="clippath"+y,y++,this.clippath=document.createElementNS(m,"svg:clipPath"),this.clippath.setAttributeNS(null,"id",t.clipId);var n=t.element.cloneNode();"evenodd"===e?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.clippath.setAttributeNS(null,"transform",p(this.transformMatrix)),this.clippath.appendChild(n),this.defs.appendChild(this.clippath),t.pendingClip=!0,this.cgrp=document.createElementNS(m,"svg:g"),this.cgrp.setAttributeNS(null,"clip-path","url(#"+t.clipId+")"),this.pgrp.appendChild(this.cgrp)},closePath:function(){var e=this.current,t=e.path.getAttributeNS(null,"d");t+="Z",e.path.setAttributeNS(null,"d",t)},setLeading:function(e){this.current.leading=-e},setTextRise:function(e){this.current.textRise=e},setHScale:function(e){this.current.textHScale=e/100},setGState:function(e){for(var t=0,n=e.length;n>t;t++){var i=e[t],r=i[0],a=i[1];switch(r){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":break;case"FL":break;case"Font":this.setFont(a);break;case"CA":break;case"ca":break;case"BM":break;case"SMask":}}},fill:function(){var e=this.current;e.element.setAttributeNS(null,"fill",e.fillColor)},stroke:function(){var e=this.current;e.element.setAttributeNS(null,"stroke",e.strokeColor),e.element.setAttributeNS(null,"fill","none")},eoFill:function(){var e=this.current;e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-rule","evenodd")},fillStroke:function(){this.stroke(),this.fill()},eoFillStroke:function(){this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()},closeStroke:function(){this.closePath(),this.stroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},paintSolidColorImageMask:function(){var e=this.current,t=document.createElementNS(m,"svg:rect");t.setAttributeNS(null,"x","0"),t.setAttributeNS(null,"y","0"),t.setAttributeNS(null,"width","1px"),t.setAttributeNS(null,"height","1px"),t.setAttributeNS(null,"fill",e.fillColor),this.tgrp.appendChild(t)},paintJpegXObject:function(e,t,n){var i=this.current,a=this.objs.get(e),s=document.createElementNS(m,"svg:image");s.setAttributeNS(b,"xlink:href",a.src),s.setAttributeNS(null,"width",a.width+"px"),s.setAttributeNS(null,"height",a.height+"px"),s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y",r(-n)),s.setAttributeNS(null,"transform","scale("+r(1/t)+" "+r(-1/n)+")"),this.tgrp.appendChild(s),i.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp)},paintImageXObject:function(e){var t=this.objs.get(e);return t?void this.paintInlineImageXObject(t):void c("Dependent image isn't ready yet")},paintInlineImageXObject:function(e,t){var n=this.current,i=e.width,a=e.height,s=d(e,this.forceDataSchema),o=document.createElementNS(m,"svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",r(i)),o.setAttributeNS(null,"height",r(a)),n.element=o,this.clip("nonzero");var l=document.createElementNS(m,"svg:image");l.setAttributeNS(b,"xlink:href",s),l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y",r(-a)),l.setAttributeNS(null,"width",r(i)+"px"),l.setAttributeNS(null,"height",r(a)+"px"),l.setAttributeNS(null,"transform","scale("+r(1/i)+" "+r(-1/a)+")"),t?t.appendChild(l):this.tgrp.appendChild(l),n.pendingClip?(this.cgrp.appendChild(this.tgrp),this.pgrp.appendChild(this.cgrp)):this.pgrp.appendChild(this.tgrp)},paintImageMaskXObject:function(e){var t=this.current,n=e.width,i=e.height,a=t.fillColor;t.maskId="mask"+S++;var s=document.createElementNS(m,"svg:mask");s.setAttributeNS(null,"id",t.maskId);var o=document.createElementNS(m,"svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",r(n)),o.setAttributeNS(null,"height",r(i)),o.setAttributeNS(null,"fill",a),o.setAttributeNS(null,"mask","url(#"+t.maskId+")"),this.defs.appendChild(s),this.tgrp.appendChild(o),this.paintInlineImageXObject(e,s)},paintFormXObjectBegin:function(e,t){if(this.save(),l(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),l(t)&&4===t.length){var n=t[2]-t[0],i=t[3]-t[1],a=document.createElementNS(m,"svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",r(n)),a.setAttributeNS(null,"height",r(i)),this.current.element=a,this.clip("nonzero"),this.endPath()}},paintFormXObjectEnd:function(){this.restore()}},g}();e.SVGGraphics=p}),function(e,t){t(e.pdfjsDisplayAnnotationLayer={},e.pdfjsSharedUtil,e.pdfjsDisplayDOMUtils)}(this,function(e,t,n){function i(){}var r=t.AnnotationBorderStyleType,a=t.AnnotationType,s=t.Util,o=n.addLinkAttributes,l=n.LinkTarget,c=n.getFilenameFromUrl,h=t.warn,u=n.CustomStyle,d=n.getDefaultSetting;i.prototype={create:function(e){var t=e.data.annotationType;switch(t){case a.LINK:return new p(e);case a.TEXT:return new g(e);case a.WIDGET:return new m(e);case a.POPUP:return new v(e);case a.HIGHLIGHT:return new w(e);case a.UNDERLINE:return new A(e);case a.SQUIGGLY:return new y(e);case a.STRIKEOUT:return new S(e);case a.FILEATTACHMENT:return new P(e);default:return new f(e)}}};var f=function(){function e(e,t){this.isRenderable=t||!1,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,t&&(this.container=this._createContainer())}return e.prototype={_createContainer:function(){var e=this.data,t=this.page,n=this.viewport,i=document.createElement("section"),a=e.rect[2]-e.rect[0],o=e.rect[3]-e.rect[1];i.setAttribute("data-annotation-id",e.id);var l=s.normalizeRect([e.rect[0],t.view[3]-e.rect[1]+t.view[1],e.rect[2],t.view[3]-e.rect[3]+t.view[1]]);if(u.setProp("transform",i,"matrix("+n.transform.join(",")+")"),u.setProp("transformOrigin",i,-l[0]+"px "+-l[1]+"px"),e.borderStyle.width>0){i.style.borderWidth=e.borderStyle.width+"px",e.borderStyle.style!==r.UNDERLINE&&(a-=2*e.borderStyle.width,o-=2*e.borderStyle.width);var c=e.borderStyle.horizontalCornerRadius,d=e.borderStyle.verticalCornerRadius;if(c>0||d>0){var f=c+"px / "+d+"px";u.setProp("borderRadius",i,f)}switch(e.borderStyle.style){case r.SOLID:i.style.borderStyle="solid";break;case r.DASHED:i.style.borderStyle="dashed";break;case r.BEVELED:h("Unimplemented border style: beveled");break;case r.INSET:h("Unimplemented border style: inset");break;case r.UNDERLINE:i.style.borderBottomStyle="solid"}e.color?i.style.borderColor=s.makeCssRgb(0|e.color[0],0|e.color[1],0|e.color[2]):i.style.borderWidth=0}return i.style.left=l[0]+"px",i.style.top=l[1]+"px",i.style.width=a+"px",i.style.height=o+"px",i},_createPopup:function(e,t,n){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var i=new b({container:e,trigger:t,color:n.color,title:n.title,contents:n.contents,hideWrapper:!0}),r=i.render();r.style.left=e.style.width,e.appendChild(r)},render:function(){throw new Error("Abstract method AnnotationElement.render called")}},e}(),p=function(){function e(e){f.call(this,e,!0)}return s.inherit(e,f,{render:function(){this.container.className="linkAnnotation";var e=document.createElement("a");return o(e,{url:this.data.url,target:this.data.newWindow?l.BLANK:void 0}),this.data.url||(this.data.action?this._bindNamedAction(e,this.data.action):this._bindLink(e,this.data.dest||null)),this.container.appendChild(e),this.container},_bindLink:function(e,t){var n=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&n.linkService.navigateTo(t),!1},t&&(e.className="internalLink")},_bindNamedAction:function(e,t){var n=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return n.linkService.executeNamedAction(t),!1},e.className="internalLink"}}),e}(),g=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);f.call(this,e,t)}return s.inherit(e,f,{render:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}),e}(),m=function(){function e(e){var t=!e.data.hasAppearance&&!!e.data.fieldValue;f.call(this,e,t)}return s.inherit(e,f,{render:function(){var e=document.createElement("div");e.textContent=this.data.fieldValue;var t=this.data.textAlignment;e.style.textAlign=["left","center","right"][t],e.style.verticalAlign="middle",e.style.display="table-cell";var n=this.data.fontRefName?this.page.commonObjs.getData(this.data.fontRefName):null;return this._setTextStyle(e,n),this.container.appendChild(e),this.container},_setTextStyle:function(e,t){var n=e.style;if(n.fontSize=this.data.fontSize+"px",n.direction=this.data.fontDirection<0?"rtl":"ltr",t){n.fontWeight=t.black?t.bold?"900":"bold":t.bold?"bold":"normal",n.fontStyle=t.italic?"italic":"normal";var i=t.loadedName?'"'+t.loadedName+'", ':"",r=t.fallbackName||"Helvetica, sans-serif";n.fontFamily=i+r}}}),e}(),v=function(){function e(e){var t=!(!e.data.title&&!e.data.contents);f.call(this,e,t)}return s.inherit(e,f,{render:function(){this.container.className="popupAnnotation";var e='[data-annotation-id="'+this.data.parentId+'"]',t=this.layer.querySelector(e);if(!t)return this.container;var n=new b({container:this.container,trigger:t,color:this.data.color,title:this.data.title,contents:this.data.contents}),i=parseFloat(t.style.left),r=parseFloat(t.style.width);return u.setProp("transformOrigin",this.container,-(i+r)+"px -"+t.style.top),this.container.style.left=i+r+"px",this.container.appendChild(n.render()),this.container}}),e}(),b=function(){function e(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}var t=.7;return e.prototype={render:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var n=document.createElement("div");n.className="popup";var i=this.color;if(i){var r=t*(255-i[0])+i[0],a=t*(255-i[1])+i[1],o=t*(255-i[2])+i[2];n.style.backgroundColor=s.makeCssRgb(0|r,0|a,0|o)}var l=this._formatContents(this.contents),c=document.createElement("h1");return c.textContent=this.title,this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),n.addEventListener("click",this._hide.bind(this,!0)),n.appendChild(c),n.appendChild(l),e.appendChild(n),e},_formatContents:function(e){for(var t=document.createElement("p"),n=e.split(/(?:\r\n?|\n)/),i=0,r=n.length;r>i;++i){var a=n[i];t.appendChild(document.createTextNode(a)),r-1>i&&t.appendChild(document.createElement("br"))}return t},_toggle:function(){this.pinned?this._hide(!0):this._show(!0)},_show:function(e){e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)},_hide:function(e){e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}},e}(),w=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);f.call(this,e,t)}return s.inherit(e,f,{render:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),A=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);f.call(this,e,t)}return s.inherit(e,f,{render:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),y=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);f.call(this,e,t)}return s.inherit(e,f,{render:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),S=function(){function e(e){var t=!!(e.data.hasPopup||e.data.title||e.data.contents);f.call(this,e,t)}return s.inherit(e,f,{render:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),e}(),P=function(){function e(e){f.call(this,e,!0),this.filename=c(e.data.file.filename),this.content=e.data.file.content}return s.inherit(e,f,{render:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container},_download:function(){return this.downloadManager?void this.downloadManager.downloadData(this.content,this.filename,""):void h("Download cannot be started due to unavailable download manager")}}),e}(),C=function(){return{render:function(e){for(var t=new i,n=0,r=e.annotations.length;r>n;n++){var a=e.annotations[n];if(a){var s={data:a,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||d("imageResourcesPath")},o=t.create(s);o.isRenderable&&e.div.appendChild(o.render())}}},update:function(e){for(var t=0,n=e.annotations.length;n>t;t++){var i=e.annotations[t],r=e.div.querySelector('[data-annotation-id="'+i.id+'"]');r&&u.setProp("transform",r,"matrix("+e.viewport.transform.join(",")+")")}e.div.removeAttribute("hidden")}}}();e.AnnotationLayer=C}),function(e,t){t(e.pdfjsDisplayTextLayer={},e.pdfjsSharedUtil,e.pdfjsDisplayDOMUtils)}(this,function(e,t,n){var i=t.Util,r=t.createPromiseCapability,a=n.CustomStyle,s=n.getDefaultSetting,o=(t.PageViewport,function(){function e(e){return!h.test(e)}function t(t,n,r,a){var o=a[r.fontName],l=document.createElement("div");if(t.push(l),e(r.str))return void(l.dataset.isWhitespace=!0);var c=i.transform(n.transform,r.transform),h=Math.atan2(c[1],c[0]);o.vertical&&(h+=Math.PI/2);var u=Math.sqrt(c[2]*c[2]+c[3]*c[3]),d=u;o.ascent?d=o.ascent*d:o.descent&&(d=(1+o.descent)*d);var f,p;0===h?(f=c[4],p=c[5]-d):(f=c[4]+d*Math.sin(h),p=c[5]-d*Math.cos(h)),l.style.left=f+"px",l.style.top=p+"px",l.style.fontSize=u+"px",l.style.fontFamily=o.fontFamily,l.textContent=r.str,s("pdfBug")&&(l.dataset.fontName=r.fontName),0!==h&&(l.dataset.angle=h*(180/Math.PI)),r.str.length>1&&(o.vertical?l.dataset.canvasWidth=r.height*n.scale:l.dataset.canvasWidth=r.width*n.scale)}function n(e){if(!e._canceled){var t=e._container,n=e._textDivs,i=e._capability,r=n.length;if(r>c)return void i.resolve();var s=document.createElement("canvas");s.mozOpaque=!0;for(var o,l,h=s.getContext("2d",{alpha:!1}),u=0;r>u;u++){var d=n[u];if(void 0===d.dataset.isWhitespace){var f=d.style.fontSize,p=d.style.fontFamily;f===o&&p===l||(h.font=f+" "+p,o=f,l=p);var g=h.measureText(d.textContent).width;t.appendChild(d);var m;if(void 0!==d.dataset.canvasWidth&&g>0){var v=d.dataset.canvasWidth/g;m="scaleX("+v+")"}else m="";var b=d.dataset.angle;b&&(m="rotate("+b+"deg) "+m),m&&a.setProp("transform",d,m)}}i.resolve()}}function o(e,t,n,i){this._textContent=e,this._container=t,this._viewport=n,i=i||[],this._textDivs=i,this._canceled=!1,this._capability=r(),this._renderTimer=null}function l(e){var t=new o(e.textContent,e.container,e.viewport,e.textDivs);return t._render(e.timeout),t}var c=1e5,h=/\S/;return o.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject("canceled")},_render:function(e){for(var i=this._textContent.items,r=this._textContent.styles,a=this._textDivs,s=this._viewport,o=0,l=i.length;l>o;o++)t(a,s,i[o],r);if(e){var c=this;this._renderTimer=setTimeout(function(){n(c),c._renderTimer=null},e)}else n(this)}},l}());e.renderTextLayer=o}),function(e,t){t(e.pdfjsDisplayWebGL={},e.pdfjsSharedUtil,e.pdfjsDisplayDOMUtils)}(this,function(e,t,n){var i=t.shadow,r=n.getDefaultSetting,a=function(){function e(e,t,n){var i=e.createShader(n);e.shaderSource(i,t),e.compileShader(i);var r=e.getShaderParameter(i,e.COMPILE_STATUS);if(!r){var a=e.getShaderInfoLog(i);throw new Error("Error during shader compilation: "+a)}return i}function t(t,n){return e(t,n,t.VERTEX_SHADER)}function n(t,n){return e(t,n,t.FRAGMENT_SHADER)}function a(e,t){for(var n=e.createProgram(),i=0,r=t.length;r>i;++i)e.attachShader(n,t[i]);e.linkProgram(n);var a=e.getProgramParameter(n,e.LINK_STATUS);if(!a){var s=e.getProgramInfoLog(n);throw new Error("Error during program linking: "+s)}return n}function s(e,t,n){e.activeTexture(n);var i=e.createTexture();return e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),i}function o(){f||(p=document.createElement("canvas"),f=p.getContext("webgl",{premultipliedalpha:!1}))}function l(){var e,i;o(),e=p,p=null,i=f,f=null;var r=t(i,g),s=n(i,m),l=a(i,[r,s]);i.useProgram(l);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(l,"u_resolution"),c.positionLocation=i.getAttribLocation(l,"a_position"),c.backdropLocation=i.getUniformLocation(l,"u_backdrop"),c.subtypeLocation=i.getUniformLocation(l,"u_subtype");var h=i.getAttribLocation(l,"a_texCoord"),u=i.getUniformLocation(l,"u_image"),d=i.getUniformLocation(l,"u_mask"),b=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,b),i.bufferData(i.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(h),i.vertexAttribPointer(h,2,i.FLOAT,!1,0,0),i.uniform1i(u,0),i.uniform1i(d,1),v=c}function c(e,t,n){var i=e.width,r=e.height;v||l();var a=v,o=a.canvas,c=a.gl;o.width=i,o.height=r,c.viewport(0,0,c.drawingBufferWidth,c.drawingBufferHeight),c.uniform2f(a.resolutionLocation,i,r),n.backdrop?c.uniform4f(a.resolutionLocation,n.backdrop[0],n.backdrop[1],n.backdrop[2],1):c.uniform4f(a.resolutionLocation,0,0,0,0),c.uniform1i(a.subtypeLocation,"Luminosity"===n.subtype?1:0);var h=s(c,e,c.TEXTURE0),u=s(c,t,c.TEXTURE1),d=c.createBuffer();return c.bindBuffer(c.ARRAY_BUFFER,d),c.bufferData(c.ARRAY_BUFFER,new Float32Array([0,0,i,0,0,r,0,r,i,0,i,r]),c.STATIC_DRAW),c.enableVertexAttribArray(a.positionLocation),c.vertexAttribPointer(a.positionLocation,2,c.FLOAT,!1,0,0),c.clearColor(0,0,0,0),c.enable(c.BLEND),c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),c.clear(c.COLOR_BUFFER_BIT),c.drawArrays(c.TRIANGLES,0,6),c.flush(),c.deleteTexture(h),c.deleteTexture(u),c.deleteBuffer(d),o}function h(){var e,i;o(),e=p,p=null,i=f,f=null;var r=t(i,b),s=n(i,w),l=a(i,[r,s]);i.useProgram(l);var c={};c.gl=i,c.canvas=e,c.resolutionLocation=i.getUniformLocation(l,"u_resolution"),c.scaleLocation=i.getUniformLocation(l,"u_scale"),c.offsetLocation=i.getUniformLocation(l,"u_offset"),c.positionLocation=i.getAttribLocation(l,"a_position"),c.colorLocation=i.getAttribLocation(l,"a_color"),A=c}function u(e,t,n,i,r){A||h();var a=A,s=a.canvas,o=a.gl;s.width=e,s.height=t,o.viewport(0,0,o.drawingBufferWidth,o.drawingBufferHeight),o.uniform2f(a.resolutionLocation,e,t);var l,c,u,d=0;for(l=0,c=i.length;c>l;l++)switch(i[l].type){case"lattice":u=i[l].coords.length/i[l].verticesPerRow|0,d+=(u-1)*(i[l].verticesPerRow-1)*6;break;case"triangles":d+=i[l].coords.length}var f=new Float32Array(2*d),p=new Uint8Array(3*d),g=r.coords,m=r.colors,v=0,b=0;for(l=0,c=i.length;c>l;l++){var w=i[l],y=w.coords,S=w.colors;switch(w.type){case"lattice":var P=w.verticesPerRow;u=y.length/P|0;for(var C=1;u>C;C++)for(var x=C*P+1,k=1;P>k;k++,x++)f[v]=g[y[x-P-1]],f[v+1]=g[y[x-P-1]+1],f[v+2]=g[y[x-P]],f[v+3]=g[y[x-P]+1],f[v+4]=g[y[x-1]],f[v+5]=g[y[x-1]+1],p[b]=m[S[x-P-1]],p[b+1]=m[S[x-P-1]+1],p[b+2]=m[S[x-P-1]+2],p[b+3]=m[S[x-P]],p[b+4]=m[S[x-P]+1],p[b+5]=m[S[x-P]+2],p[b+6]=m[S[x-1]],p[b+7]=m[S[x-1]+1],p[b+8]=m[S[x-1]+2],f[v+6]=f[v+2],f[v+7]=f[v+3],f[v+8]=f[v+4],f[v+9]=f[v+5],f[v+10]=g[y[x]],f[v+11]=g[y[x]+1],p[b+9]=p[b+3],p[b+10]=p[b+4],p[b+11]=p[b+5],p[b+12]=p[b+6],p[b+13]=p[b+7],p[b+14]=p[b+8],p[b+15]=m[S[x]],p[b+16]=m[S[x]+1],p[b+17]=m[S[x]+2],v+=12,b+=18;break;case"triangles":for(var L=0,_=y.length;_>L;L++)f[v]=g[y[L]],f[v+1]=g[y[L]+1],p[b]=m[S[L]],p[b+1]=m[S[L]+1],p[b+2]=m[S[L]+2],v+=2,b+=3}}n?o.clearColor(n[0]/255,n[1]/255,n[2]/255,1):o.clearColor(0,0,0,0),o.clear(o.COLOR_BUFFER_BIT);var T=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,T),o.bufferData(o.ARRAY_BUFFER,f,o.STATIC_DRAW),o.enableVertexAttribArray(a.positionLocation),o.vertexAttribPointer(a.positionLocation,2,o.FLOAT,!1,0,0);var E=o.createBuffer();return o.bindBuffer(o.ARRAY_BUFFER,E),o.bufferData(o.ARRAY_BUFFER,p,o.STATIC_DRAW),o.enableVertexAttribArray(a.colorLocation),o.vertexAttribPointer(a.colorLocation,3,o.UNSIGNED_BYTE,!1,0,0),o.uniform2f(a.scaleLocation,r.scaleX,r.scaleY),o.uniform2f(a.offsetLocation,r.offsetX,r.offsetY),o.drawArrays(o.TRIANGLES,0,d),o.flush(),o.deleteBuffer(T),o.deleteBuffer(E),s}function d(){v&&v.canvas&&(v.canvas.width=0,v.canvas.height=0),A&&A.canvas&&(A.canvas.width=0,A.canvas.height=0),v=null,A=null}var f,p,g=" attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } ",m=" precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ",v=null,b=" attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } ",w=" precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ",A=null;
return{get isEnabled(){if(r("disableWebGL"))return!1;var e=!1;try{o(),e=!!f}catch(t){}return i(this,"isEnabled",e)},composeSMask:c,drawFigures:u,clear:d}}();e.WebGLUtils=a}),function(e,t){t(e.pdfjsDisplayPatternHelper={},e.pdfjsSharedUtil,e.pdfjsDisplayWebGL)}(this,function(e,t,n){function i(e){var t=c[e[0]];return t||o("Unknown IR type: "+e[0]),t.fromIR(e)}var r=t.Util,a=t.info,s=t.isArray,o=t.error,l=n.WebGLUtils,c={};c.RadialAxial={fromIR:function(e){var t=e[1],n=e[2],i=e[3],r=e[4],a=e[5],s=e[6];return{type:"Pattern",getPattern:function(e){var o;"axial"===t?o=e.createLinearGradient(i[0],i[1],r[0],r[1]):"radial"===t&&(o=e.createRadialGradient(i[0],i[1],a,r[0],r[1],s));for(var l=0,c=n.length;c>l;++l){var h=n[l];o.addColorStop(h[0],h[1])}return o}}}};var h=function(){function e(e,t,n,i,r,a,s,o){var l,c=t.coords,h=t.colors,u=e.data,d=4*e.width;c[n+1]>c[i+1]&&(l=n,n=i,i=l,l=a,a=s,s=l),c[i+1]>c[r+1]&&(l=i,i=r,r=l,l=s,s=o,o=l),c[n+1]>c[i+1]&&(l=n,n=i,i=l,l=a,a=s,s=l);var f=(c[n]+t.offsetX)*t.scaleX,p=(c[n+1]+t.offsetY)*t.scaleY,g=(c[i]+t.offsetX)*t.scaleX,m=(c[i+1]+t.offsetY)*t.scaleY,v=(c[r]+t.offsetX)*t.scaleX,b=(c[r+1]+t.offsetY)*t.scaleY;if(!(p>=b))for(var w,A,y,S,P,C,x,k,L,_=h[a],T=h[a+1],E=h[a+2],I=h[s],D=h[s+1],F=h[s+2],R=h[o],M=h[o+1],B=h[o+2],O=Math.round(p),j=Math.round(b),N=O;j>=N;N++){m>N?(L=p>N?0:p===m?1:(p-N)/(p-m),w=f-(f-g)*L,A=_-(_-I)*L,y=T-(T-D)*L,S=E-(E-F)*L):(L=N>b?1:m===b?0:(m-N)/(m-b),w=g-(g-v)*L,A=I-(I-R)*L,y=D-(D-M)*L,S=F-(F-B)*L),L=p>N?0:N>b?1:(p-N)/(p-b),P=f-(f-v)*L,C=_-(_-R)*L,x=T-(T-M)*L,k=E-(E-B)*L;for(var U=Math.round(Math.min(w,P)),V=Math.round(Math.max(w,P)),W=d*N+4*U,H=U;V>=H;H++)L=(w-H)/(w-P),L=0>L?0:L>1?1:L,u[W++]=A-(A-C)*L|0,u[W++]=y-(y-x)*L|0,u[W++]=S-(S-k)*L|0,u[W++]=255}}function t(t,n,i){var r,a,s=n.coords,l=n.colors;switch(n.type){case"lattice":var c=n.verticesPerRow,h=Math.floor(s.length/c)-1,u=c-1;for(r=0;h>r;r++)for(var d=r*c,f=0;u>f;f++,d++)e(t,i,s[d],s[d+1],s[d+c],l[d],l[d+1],l[d+c]),e(t,i,s[d+c+1],s[d+1],s[d+c],l[d+c+1],l[d+1],l[d+c]);break;case"triangles":for(r=0,a=s.length;a>r;r+=3)e(t,i,s[r],s[r+1],s[r+2],l[r],l[r+1],l[r+2]);break;default:o("illigal figure")}}function n(e,n,i,r,a,s,o){var c,h,u,d,f=1.1,p=3e3,g=2,m=Math.floor(e[0]),v=Math.floor(e[1]),b=Math.ceil(e[2])-m,w=Math.ceil(e[3])-v,A=Math.min(Math.ceil(Math.abs(b*n[0]*f)),p),y=Math.min(Math.ceil(Math.abs(w*n[1]*f)),p),S=b/A,P=w/y,C={coords:i,colors:r,offsetX:-m,offsetY:-v,scaleX:1/S,scaleY:1/P},x=A+2*g,k=y+2*g;if(l.isEnabled)c=l.drawFigures(A,y,s,a,C),h=o.getCanvas("mesh",x,k,!1),h.context.drawImage(c,g,g),c=h.canvas;else{h=o.getCanvas("mesh",x,k,!1);var L=h.context,_=L.createImageData(A,y);if(s){var T=_.data;for(u=0,d=T.length;d>u;u+=4)T[u]=s[0],T[u+1]=s[1],T[u+2]=s[2],T[u+3]=255}for(u=0;u<a.length;u++)t(_,a[u],C);L.putImageData(_,g,g),c=h.canvas}return{canvas:c,offsetX:m-g*S,offsetY:v-g*P,scaleX:S,scaleY:P}}return n}();c.Mesh={fromIR:function(e){var t=e[2],n=e[3],i=e[4],a=e[5],s=e[6],o=e[8];return{type:"Pattern",getPattern:function(e,l,c){var u;if(c)u=r.singularValueDecompose2dScale(e.mozCurrentTransform);else if(u=r.singularValueDecompose2dScale(l.baseTransform),s){var d=r.singularValueDecompose2dScale(s);u=[u[0]*d[0],u[1]*d[1]]}var f=h(a,u,t,n,i,c?null:o,l.cachedCanvases);return c||(e.setTransform.apply(e,l.baseTransform),s&&e.transform.apply(e,s)),e.translate(f.offsetX,f.offsetY),e.scale(f.scaleX,f.scaleY),e.createPattern(f.canvas,"no-repeat")}}}},c.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var u=function(){function e(e,t,n,i,r){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=i,this.baseTransform=r,this.type="Pattern",this.ctx=n}var t={COLORED:1,UNCOLORED:2},n=3e3;return e.prototype={createPatternCanvas:function(e){var t=this.operatorList,i=this.bbox,s=this.xstep,o=this.ystep,l=this.paintType,c=this.tilingType,h=this.color,u=this.canvasGraphicsFactory;a("TilingType: "+c);var d=i[0],f=i[1],p=i[2],g=i[3],m=[d,f],v=[d+s,f+o],b=v[0]-m[0],w=v[1]-m[1],A=r.singularValueDecompose2dScale(this.matrix),y=r.singularValueDecompose2dScale(this.baseTransform),S=[A[0]*y[0],A[1]*y[1]];b=Math.min(Math.ceil(Math.abs(b*S[0])),n),w=Math.min(Math.ceil(Math.abs(w*S[1])),n);var P=e.cachedCanvases.getCanvas("pattern",b,w,!0),C=P.context,x=u.createCanvasGraphics(C);x.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(C,l,h),this.setScale(b,w,s,o),this.transformToScale(x);var k=[1,0,0,1,-m[0],-m[1]];return x.transform.apply(x,k),this.clipBbox(x,i,d,f,p,g),x.executeOperatorList(t),P.canvas},setScale:function(e,t,n,i){this.scale=[e/n,t/i]},transformToScale:function(e){var t=this.scale,n=[t[0],0,0,t[1],0,0];e.transform.apply(e,n)},scaleToContext:function(){var e=this.scale;this.ctx.scale(1/e[0],1/e[1])},clipBbox:function(e,t,n,i,r,a){if(t&&s(t)&&4===t.length){var o=r-n,l=a-i;e.ctx.rect(n,i,o,l),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(e,n,i){switch(n){case t.COLORED:var a=this.ctx;e.fillStyle=a.fillStyle,e.strokeStyle=a.strokeStyle;break;case t.UNCOLORED:var s=r.makeCssRgb(i[0],i[1],i[2]);e.fillStyle=s,e.strokeStyle=s;break;default:o("Unsupported paint type: "+n)}},getPattern:function(e,t){var n=this.createPatternCanvas(t);return e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix),this.scaleToContext(),e.createPattern(n,"repeat")}},e}();e.getShadingPatternFromIR=i,e.TilingPattern=u}),function(e,t){t(e.pdfjsDisplayCanvas={},e.pdfjsSharedUtil,e.pdfjsDisplayDOMUtils,e.pdfjsDisplayPatternHelper,e.pdfjsDisplayWebGL)}(this,function(e,t,n,i,r){function a(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function s(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],s=e[5],o=t*r-n*i,l=n*i-t*r;return[r/o,n/l,i/l,t/o,(r*a-i*s)/l,(n*a-t*s)/o]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){var n=this._transformMatrix;n[0]=n[0]*e,n[1]=n[1]*e,n[2]=n[2]*t,n[3]=n[3]*t,this._originalScale(e,t)},e.transform=function(t,n,i,r,a,s){var o=this._transformMatrix;this._transformMatrix=[o[0]*t+o[2]*n,o[1]*t+o[3]*n,o[0]*i+o[2]*r,o[1]*i+o[3]*r,o[0]*a+o[2]*s+o[4],o[1]*a+o[3]*s+o[5]],e._originalTransform(t,n,i,r,a,s)},e.setTransform=function(t,n,i,r,a,s){this._transformMatrix=[t,n,i,r,a,s],e._originalSetTransform(t,n,i,r,a,s)},e.rotate=function(e){var t=Math.cos(e),n=Math.sin(e),i=this._transformMatrix;this._transformMatrix=[i[0]*t+i[2]*n,i[1]*t+i[3]*n,i[0]*-n+i[2]*t,i[1]*-n+i[3]*t,i[4],i[5]],this._originalRotate(e)})}function o(e){var t,n,i,r,a=1e3,s=e.width,o=e.height,l=s+1,c=new Uint8Array(l*(o+1)),h=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),u=s+7&-8,d=e.data,f=new Uint8Array(u*o),p=0;for(t=0,r=d.length;r>t;t++)for(var g=128,m=d[t];g>0;)f[p++]=m&g?0:255,g>>=1;var v=0;for(p=0,0!==f[p]&&(c[0]=1,++v),n=1;s>n;n++)f[p]!==f[p+1]&&(c[n]=f[p]?2:1,++v),p++;for(0!==f[p]&&(c[n]=2,++v),t=1;o>t;t++){p=t*u,i=t*l,f[p-u]!==f[p]&&(c[i]=f[p]?1:8,++v);var b=(f[p]?4:0)+(f[p-u]?8:0);for(n=1;s>n;n++)b=(b>>2)+(f[p+1]?4:0)+(f[p-u+1]?8:0),h[b]&&(c[i+n]=h[b],++v),p++;if(f[p-u]!==f[p]&&(c[i+n]=f[p]?2:4,++v),v>a)return null}for(p=u*(o-1),i=t*l,0!==f[p]&&(c[i]=8,++v),n=1;s>n;n++)f[p]!==f[p+1]&&(c[i+n]=f[p]?4:8,++v),p++;if(0!==f[p]&&(c[i+n]=4,++v),v>a)return null;var w=new Int32Array([0,l,-1,0,-l,0,0,0,1]),A=[];for(t=0;v&&o>=t;t++){for(var y=t*l,S=y+s;S>y&&!c[y];)y++;if(y!==S){var P,C=[y%l,t],x=c[y],k=y;do{var L=w[x];do y+=L;while(!c[y]);P=c[y],5!==P&&10!==P?(x=P,c[y]=0):(x=P&51*x>>4,c[y]&=x>>2|x<<2),C.push(y%l),C.push(y/l|0),--v}while(k!==y);A.push(C),--t}}var _=function(e){e.save(),e.scale(1/s,-1/o),e.translate(0,-o),e.beginPath();for(var t=0,n=A.length;n>t;t++){var i=A[t];e.moveTo(i[0],i[1]);for(var r=2,a=i.length;a>r;r+=2)e.lineTo(i[r],i[r+1])}e.fill(),e.beginPath(),e.restore()};return _}var l=t.FONT_IDENTITY_MATRIX,c=t.IDENTITY_MATRIX,h=t.ImageKind,u=t.OPS,d=t.TextRenderingMode,f=t.Uint32ArrayView,p=t.Util,g=t.assert,m=t.info,v=t.isNum,b=t.isArray,w=t.isLittleEndian,A=t.error,y=t.shadow,S=t.warn,P=i.TilingPattern,C=i.getShadingPatternFromIR,x=r.WebGLUtils,k=n.hasCanvasTypedArrays,L=16,_=100,T=4096,E=.65,I=!0,D=1e3,F=16,R={get value(){return y(R,"value",k())}},M={get value(){return y(M,"value",w())}},B=function(){function e(){this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,n,i){var r;if(void 0!==this.cache[e])r=this.cache[e],r.canvas.width=t,r.canvas.height=n,r.context.setTransform(1,0,0,1,0,0);else{var o=a(t,n),l=o.getContext("2d");i&&s(l),this.cache[e]=r={canvas:o,context:l}}return r},clear:function(){for(var e in this.cache){var t=this.cache[e];t.canvas.width=0,t.canvas.height=0,delete this.cache[e]}}},e}(),O=function(){function e(e){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=c,this.textMatrixScale=1,this.fontMatrix=l,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=d.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.old=e}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),j=function(){function e(e,t,n,i){this.ctx=e,this.current=new O,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new B,e&&s(e),this.cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);var n,i,r,a,s,o=t.height,l=t.width,c=o%F,u=(o-c)/F,d=0===c?u:u+1,p=e.createImageData(l,F),g=0,m=t.data,v=p.data;if(t.kind===h.GRAYSCALE_1BPP){var b=m.byteLength,w=R.value?new Uint32Array(v.buffer):new f(v),y=w.length,S=l+7>>3,P=4294967295,C=M.value||!R.value?4278190080:255;for(i=0;d>i;i++){for(a=u>i?F:c,n=0,r=0;a>r;r++){for(var x=b-g,k=0,L=x>S?l:8*x-7,_=-8&L,T=0,E=0;_>k;k+=8)E=m[g++],w[n++]=128&E?P:C,w[n++]=64&E?P:C,w[n++]=32&E?P:C,w[n++]=16&E?P:C,w[n++]=8&E?P:C,w[n++]=4&E?P:C,w[n++]=2&E?P:C,w[n++]=1&E?P:C;for(;L>k;k++)0===T&&(E=m[g++],T=128),w[n++]=E&T?P:C,T>>=1}for(;y>n;)w[n++]=0;e.putImageData(p,0,i*F)}}else if(t.kind===h.RGBA_32BPP){for(r=0,s=l*F*4,i=0;u>i;i++)v.set(m.subarray(g,g+s)),g+=s,e.putImageData(p,0,r),r+=F;d>i&&(s=l*c*4,v.set(m.subarray(g,g+s)),e.putImageData(p,0,r))}else if(t.kind===h.RGB_24BPP)for(a=F,s=l*a,i=0;d>i;i++){for(i>=u&&(a=c,s=l*a),n=0,r=s;r--;)v[n++]=m[g++],v[n++]=m[g++],v[n++]=m[g++],v[n++]=255;e.putImageData(p,0,i*F)}else A("bad image kind: "+t.kind)}function n(e,t){for(var n=t.height,i=t.width,r=n%F,a=(n-r)/F,s=0===r?a:a+1,o=e.createImageData(i,F),l=0,c=t.data,h=o.data,u=0;s>u;u++){for(var d=a>u?F:r,f=3,p=0;d>p;p++)for(var g=0,m=0;i>m;m++){if(!g){var v=c[l++];g=128}h[f]=v&g?0:255,f+=4,g>>=1}e.putImageData(o,0,u*F)}}function i(e,t){for(var n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],i=0,r=n.length;r>i;i++){var a=n[i];void 0!==e[a]&&(t[a]=e[a])}void 0!==e.setLineDash?(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset):void 0!==e.mozDashOffset&&(t.mozDash=e.mozDash,t.mozDashOffset=e.mozDashOffset)}function r(e,t,n,i){for(var r=e.length,a=3;r>a;a+=4){var s=e[a];if(0===s)e[a-3]=t,e[a-2]=n,e[a-1]=i;else if(255>s){var o=255-s;e[a-3]=e[a-3]*s+t*o>>8,e[a-2]=e[a-2]*s+n*o>>8,e[a-1]=e[a-1]*s+i*o>>8}}}function a(e,t,n){for(var i=e.length,r=1/255,a=3;i>a;a+=4){var s=n?n[e[a]]:e[a];t[a]=t[a]*s*r|0}}function w(e,t,n){for(var i=e.length,r=3;i>r;r+=4){var a=77*e[r-3]+152*e[r-2]+28*e[r-1];t[r]=n?t[r]*n[a>>8]>>8:t[r]*a>>16}}function k(e,t,n,i,s,o,l){var c,h=!!o,u=h?o[0]:0,d=h?o[1]:0,f=h?o[2]:0;c="Luminosity"===s?w:a;for(var p=1048576,g=Math.min(i,Math.ceil(p/n)),m=0;i>m;m+=g){var v=Math.min(g,i-m),b=e.getImageData(0,m,n,v),A=t.getImageData(0,m,n,v);h&&r(b.data,u,d,f),c(b.data,A.data,l),e.putImageData(A,0,m)}}function j(e,t,n){var i=t.canvas,r=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var a=t.backdrop||null;if(!t.transferMap&&x.isEnabled){var s=x.composeSMask(n.canvas,i,{subtype:t.subtype,backdrop:a});return e.setTransform(1,0,0,1,0,0),void e.drawImage(s,t.offsetX,t.offsetY)}k(r,n,i.width,i.height,t.subtype,a,t.transferMap),e.drawImage(i,0,0)}var N=15,U=10,V=["butt","round","square"],W=["miter","round","bevel"],H={},z={};e.prototype={beginDrawing:function(e,t,n){var i=this.ctx.canvas.width,r=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle="rgb(255, 255, 255)",this.ctx.fillRect(0,0,i,r),this.ctx.restore(),n){var a=this.cachedCanvases.getCanvas("transparent",i,r,!0);this.compositeCtx=this.ctx,this.transparentCanvas=a.canvas,this.ctx=a.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,t.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,n,i){var r=e.argsArray,a=e.fnArray,s=t||0,o=r.length;if(o===s)return s;for(var l,c=o-s>U&&"function"==typeof n,h=c?Date.now()+N:0,d=0,f=this.commonObjs,p=this.objs;;){if(void 0!==i&&s===i.nextBreakPoint)return i.breakIt(s,n),s;if(l=a[s],l!==u.dependency)this[l].apply(this,r[s]);else for(var g=r[s],m=0,v=g.length;v>m;m++){var b=g[m],w="g"===b[0]&&"_"===b[1],A=w?f:p;if(!A.isResolved(b))return A.get(b,n),s}if(s++,s===o)return s;if(c&&++d>U){if(Date.now()>h)return n(),s;d=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),x.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=V[e]},setLineJoin:function(e){this.ctx.lineJoin=W[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var n=this.ctx;void 0!==n.setLineDash?(n.setLineDash(e),n.lineDashOffset=t):(n.mozDash=e,n.mozDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,n=e.length;n>t;t++){var i=e[t],r=i[0],a=i[1];switch(r){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a[0],a[1]);break;case"CA":this.current.strokeAlpha=i[1];break;case"ca":this.current.fillAlpha=i[1],this.ctx.globalAlpha=i[1];break;case"BM":if(a&&a.name&&"Normal"!==a.name){var s=a.name.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()}).substring(1);this.ctx.globalCompositeOperation=s,this.ctx.globalCompositeOperation!==s&&S('globalCompositeOperation "'+s+'" is not supported')}else this.ctx.globalCompositeOperation="source-over";break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=a?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,n=e.canvas.height,r="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(r,t,n,!0),s=this.ctx,o=s.mozCurrentTransform;this.ctx.save();var l=a.context;l.scale(1/e.scaleX,1/e.scaleY),l.translate(-e.offsetX,-e.offsetY),l.transform.apply(l,o),e.startTransformInverse=l.mozCurrentTransformInverse,i(s,l),this.ctx=l,this.setGState([["BM","Normal"],["ca",1],["CA",1]]),this.groupStack.push(s),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),j(this.ctx,this.current.activeSMask,e),this.ctx.restore(),this.ctx.save(),i(e,this.ctx),this.current.resumeSMaskCtx=e;var t=p.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),j(this.ctx,this.current.activeSMask,e),this.ctx.restore(),i(e,this.ctx);var t=p.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this.cachedGetSinglePixelWidth=null)},transform:function(e,t,n,i,r,a){this.ctx.transform(e,t,n,i,r,a),this.cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var n=this.ctx,i=this.current,r=i.x,a=i.y,s=0,o=0,l=e.length;l>s;s++)switch(0|e[s]){case u.rectangle:r=t[o++],a=t[o++];var c=t[o++],h=t[o++];0===c&&(c=this.getSinglePixelWidth()),0===h&&(h=this.getSinglePixelWidth());var d=r+c,f=a+h;this.ctx.moveTo(r,a),this.ctx.lineTo(d,a),this.ctx.lineTo(d,f),this.ctx.lineTo(r,f),this.ctx.lineTo(r,a),this.ctx.closePath();break;case u.moveTo:r=t[o++],a=t[o++],n.moveTo(r,a);break;case u.lineTo:r=t[o++],a=t[o++],n.lineTo(r,a);break;case u.curveTo:r=t[o+4],a=t[o+5],n.bezierCurveTo(t[o],t[o+1],t[o+2],t[o+3],r,a),o+=6;break;case u.curveTo2:n.bezierCurveTo(r,a,t[o],t[o+1],t[o+2],t[o+3]),r=t[o+2],a=t[o+3],o+=4;break;case u.curveTo3:r=t[o+2],a=t[o+3],n.bezierCurveTo(t[o],t[o+1],r,a,r,a),o+=4;break;case u.closePath:n.closePath()}i.setCurrentPoint(r,a)},closePath:function(){this.ctx.closePath()},stroke:function(e){e="undefined"!=typeof e?e:!0;var t=this.ctx,n=this.current.strokeColor;t.lineWidth=Math.max(this.getSinglePixelWidth()*E,this.current.lineWidth),t.globalAlpha=this.current.strokeAlpha,n&&n.hasOwnProperty("type")&&"Pattern"===n.type?(t.save(),t.strokeStyle=n.getPattern(t,this),t.stroke(),t.restore()):t.stroke(),e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e="undefined"!=typeof e?e:!0;var t=this.ctx,n=this.current.fillColor,i=this.current.patternFill,r=!1;i&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=n.getPattern(t,this),r=!0),this.pendingEOFill?(void 0!==t.mozFillRule?(t.mozFillRule="evenodd",t.fill(),t.mozFillRule="nonzero"):t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),r&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=H},eoClip:function(){this.pendingClip=z},beginText:function(){this.current.textMatrix=c,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0===e)return void t.beginPath();t.save(),t.beginPath();for(var n=0;n<e.length;n++){var i=e[n];t.setTransform.apply(t,i.transform),t.translate(i.x,i.y),i.addToPath(t,i.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var n=this.commonObjs.get(e),i=this.current;if(n||A("Can't find font for "+e),i.fontMatrix=n.fontMatrix?n.fontMatrix:l,0!==i.fontMatrix[0]&&0!==i.fontMatrix[3]||S("Invalid font matrix for font "+e),0>t?(t=-t,i.fontDirection=-1):i.fontDirection=1,this.current.font=n,this.current.fontSize=t,!n.isType3Font){var r=n.loadedName||"sans-serif",a=n.black?n.bold?"900":"bold":n.bold?"bold":"normal",s=n.italic?"italic":"normal",o='"'+r+'", '+n.fallbackName,c=L>t?L:t>_?_:t;this.current.fontSizeScale=t/c;var h=s+" "+a+" "+c+"px "+o;this.ctx.font=h}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,n,i,r,a){this.current.textMatrix=[e,t,n,i,r,a],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,n){var i,r=this.ctx,a=this.current,s=a.font,o=a.textRenderingMode,l=a.fontSize/a.fontSizeScale,c=o&d.FILL_STROKE_MASK,h=!!(o&d.ADD_TO_PATH_FLAG);if((s.disableFontFace||h)&&(i=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace?(r.save(),r.translate(t,n),r.beginPath(),i(r,l),c!==d.FILL&&c!==d.FILL_STROKE||r.fill(),c!==d.STROKE&&c!==d.FILL_STROKE||r.stroke(),r.restore()):(c!==d.FILL&&c!==d.FILL_STROKE||r.fillText(e,t,n),c!==d.STROKE&&c!==d.FILL_STROKE||r.strokeText(e,t,n)),h){var u=this.pendingTextPaths||(this.pendingTextPaths=[]);u.push({transform:r.mozCurrentTransform,x:t,y:n,fontSize:l,addToPath:i})}},get isFontSubpixelAAEnabled(){var e=document.createElement("canvas").getContext("2d");e.scale(1.5,1),e.fillText("I",0,10);for(var t=e.getImageData(0,0,10,10).data,n=!1,i=3;i<t.length;i+=4)if(t[i]>0&&t[i]<255){n=!0;break}return y(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);var i=t.fontSize;if(0!==i){var r=this.ctx,a=t.fontSizeScale,s=t.charSpacing,o=t.wordSpacing,l=t.fontDirection,c=t.textHScale*l,h=e.length,u=n.vertical,f=u?1:-1,p=n.defaultVMetrics,g=i*t.fontMatrix[0],m=t.textRenderingMode===d.FILL&&!n.disableFontFace;r.save(),r.transform.apply(r,t.textMatrix),r.translate(t.x,t.y+t.textRise),t.patternFill&&(r.fillStyle=t.fillColor.getPattern(r,this)),l>0?r.scale(c,-1):r.scale(c,1);var b=t.lineWidth,w=t.textMatrixScale;if(0===w||0===b){var A=t.textRenderingMode&d.FILL_STROKE_MASK;A!==d.STROKE&&A!==d.FILL_STROKE||(this.cachedGetSinglePixelWidth=null,b=this.getSinglePixelWidth()*E)}else b/=w;1!==a&&(r.scale(a,a),b/=a),r.lineWidth=b;var y,S=0;for(y=0;h>y;++y){var P=e[y];if(v(P))S+=f*P*i/1e3;else{var C,x,k,L,_=!1,T=(P.isSpace?o:0)+s,I=P.fontChar,D=P.accent,F=P.width;if(u){var R,M,B;R=P.vmetric||p,M=P.vmetric?R[1]:.5*F,M=-M*g,B=R[2]*g,F=R?-R[0]:F,C=M/a,x=(S+B)/a}else C=S/a,x=0;if(n.remeasure&&F>0){var O=1e3*r.measureText(I).width/i*a;if(O>F&&this.isFontSubpixelAAEnabled){var j=F/O;_=!0,r.save(),r.scale(j,1),C/=j}else F!==O&&(C+=(F-O)/2e3*i/a)}(P.isInFont||n.missingFile)&&(m&&!D?r.fillText(I,C,x):(this.paintChar(I,C,x),D&&(k=C+D.offset.x/a,L=x-D.offset.y/a,this.paintChar(D.fontChar,k,L))));var N=F*g+T*l;S+=N,_&&r.restore()}}u?t.y-=S*c:t.x+=S*c,r.restore()}},showType3Text:function(e){var t,n,i,r,a=this.ctx,s=this.current,o=s.font,c=s.fontSize,h=s.fontDirection,u=o.vertical?1:-1,f=s.charSpacing,g=s.wordSpacing,m=s.textHScale*h,b=s.fontMatrix||l,w=e.length,A=s.textRenderingMode===d.INVISIBLE;if(!A&&0!==c){for(this.cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,s.textMatrix),a.translate(s.x,s.y),a.scale(m,h),t=0;w>t;++t)if(n=e[t],v(n))r=u*n*c/1e3,this.ctx.translate(r,0),s.x+=r*m;else{var y=(n.isSpace?g:0)+f,P=o.charProcOperatorList[n.operatorListId];if(P){this.processingType3=n,this.save(),a.scale(c,c),a.transform.apply(a,b),this.executeOperatorList(P),this.restore();var C=p.applyTransform([n.width,0],b);i=C[0]*c+y,a.translate(i,0),s.x+=i*m}else S('Type3 character "'+n.operatorListId+'" is not available')}a.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,n,i,r,a){this.ctx.rect(n,i,r-n,a-i),this.clip(),this.endPath()},getColorN_Pattern:function(t){var n;if("TilingPattern"===t[0]){var i=t[1],r=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a=this,s={createCanvasGraphics:function(t){return new e(t,a.commonObjs,a.objs)}};n=new P(t,i,this.ctx,s,r)}else n=C(t);return n},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,n){var i=p.makeCssRgb(e,t,n);this.ctx.strokeStyle=i,this.current.strokeColor=i},setFillRGBColor:function(e,t,n){var i=p.makeCssRgb(e,t,n);this.ctx.fillStyle=i,this.current.fillColor=i,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var n=C(e);t.fillStyle=n.getPattern(t,this,!0);var i=t.mozCurrentTransformInverse;if(i){var r=t.canvas,a=r.width,s=r.height,o=p.applyTransform([0,0],i),l=p.applyTransform([0,s],i),c=p.applyTransform([a,0],i),h=p.applyTransform([a,s],i),u=Math.min(o[0],l[0],c[0],h[0]),d=Math.min(o[1],l[1],c[1],h[1]),f=Math.max(o[0],l[0],c[0],h[0]),g=Math.max(o[1],l[1],c[1],h[1]);this.ctx.fillRect(u,d,f-u,g-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){A("Should not call beginInlineImage")},beginImageData:function(){A("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),b(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,b(t)&&4===t.length){var n=t[2]-t[0],i=t[3]-t[1];this.ctx.rect(t[0],t[1],n,i),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||m("TODO: Support non-isolated groups."),e.knockout&&S("Knockout groups not supported.");var n=t.mozCurrentTransform;e.matrix&&t.transform.apply(t,e.matrix),g(e.bbox,"Bounding box is required.");var r=p.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),a=[0,0,t.canvas.width,t.canvas.height];r=p.intersect(r,a)||[0,0,0,0];var s=Math.floor(r[0]),o=Math.floor(r[1]),l=Math.max(Math.ceil(r[2])-s,1),c=Math.max(Math.ceil(r[3])-o,1),h=1,u=1;l>T&&(h=l/T,l=T),c>T&&(u=c/T,c=T);var d="groupAt"+this.groupLevel;e.smask&&(d+="_smask_"+this.smaskCounter++%2);var f=this.cachedCanvases.getCanvas(d,l,c,!0),v=f.context;v.scale(1/h,1/u),v.translate(-s,-o),v.transform.apply(v,n),e.smask?this.smaskStack.push({canvas:f.canvas,context:v,offsetX:s,offsetY:o,scaleX:h,scaleY:u,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(s,o),t.scale(h,u)),i(t,v),this.ctx=v,this.setGState([["BM","Normal"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.current=new O,this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,n){if(this.save(),b(e)&&4===e.length){var i=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],i,r),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,n)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,n){var i=this.objs.get(e);if(!i)return void S("Dependent image isn't ready yet");this.save();var r=this.ctx;if(r.scale(1/t,-1/n),r.drawImage(i,0,0,i.width,i.height,0,-n,t,n),this.imageLayer){var a=r.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/a[0],height:n/a[3]})}this.restore()},paintImageMaskXObject:function(e){var t=this.ctx,i=e.width,r=e.height,a=this.current.fillColor,s=this.current.patternFill,l=this.processingType3;if(I&&l&&void 0===l.compiled&&(D>=i&&D>=r?l.compiled=o({data:e.data,width:i,height:r}):l.compiled=null),l&&l.compiled)return void l.compiled(t);var c=this.cachedCanvases.getCanvas("maskCanvas",i,r),h=c.context;h.save(),n(h,e),h.globalCompositeOperation="source-in",h.fillStyle=s?a.getPattern(h,this):a,h.fillRect(0,0,i,r),h.restore(),this.paintInlineImageXObject(c.canvas)},paintImageMaskXObjectRepeat:function(e,t,i,r){var a=e.width,s=e.height,o=this.current.fillColor,l=this.current.patternFill,c=this.cachedCanvases.getCanvas("maskCanvas",a,s),h=c.context;h.save(),n(h,e),h.globalCompositeOperation="source-in",h.fillStyle=l?o.getPattern(h,this):o,h.fillRect(0,0,a,s),h.restore();for(var u=this.ctx,d=0,f=r.length;f>d;d+=2)u.save(),u.transform(t,0,0,i,r[d],r[d+1]),u.scale(1,-1),u.drawImage(c.canvas,0,0,a,s,0,-1,1,1),u.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,i=this.current.fillColor,r=this.current.patternFill,a=0,s=e.length;s>a;a++){var o=e[a],l=o.width,c=o.height,h=this.cachedCanvases.getCanvas("maskCanvas",l,c),u=h.context;u.save(),n(u,o),u.globalCompositeOperation="source-in",u.fillStyle=r?i.getPattern(u,this):i,u.fillRect(0,0,l,c),u.restore(),t.save(),t.transform.apply(t,o.transform),t.scale(1,-1),t.drawImage(h.canvas,0,0,l,c,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=this.objs.get(e);return t?void this.paintInlineImageXObject(t):void S("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,n,i){var r=this.objs.get(e);if(!r)return void S("Dependent image isn't ready yet");for(var a=r.width,s=r.height,o=[],l=0,c=i.length;c>l;l+=2)o.push({transform:[t,0,0,n,i[l],i[l+1]],x:0,y:0,w:a,h:s});this.paintInlineImageXObjectGroup(r,o)},paintInlineImageXObject:function(e){var n=e.width,i=e.height,r=this.ctx;this.save(),r.scale(1/n,-1/i);var a,s,o=r.mozCurrentTransformInverse,l=o[0],c=o[1],h=Math.max(Math.sqrt(l*l+c*c),1),u=o[2],d=o[3],f=Math.max(Math.sqrt(u*u+d*d),1);if(e instanceof HTMLElement||!e.data)a=e;else{s=this.cachedCanvases.getCanvas("inlineImage",n,i);var p=s.context;t(p,e),a=s.canvas}for(var g=n,m=i,v="prescale1";h>2&&g>1||f>2&&m>1;){var b=g,w=m;h>2&&g>1&&(b=Math.ceil(g/2),
h/=g/b),f>2&&m>1&&(w=Math.ceil(m/2),f/=m/w),s=this.cachedCanvases.getCanvas(v,b,w),p=s.context,p.clearRect(0,0,b,w),p.drawImage(a,0,0,g,m,0,0,b,w),a=s.canvas,g=b,m=w,v="prescale1"===v?"prescale2":"prescale1"}if(r.drawImage(a,0,0,g,m,0,-i,n,i),this.imageLayer){var A=this.getCanvasPosition(0,-i);this.imageLayer.appendImage({imgData:e,left:A[0],top:A[1],width:n/o[0],height:i/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,n){var i=this.ctx,r=e.width,a=e.height,s=this.cachedCanvases.getCanvas("inlineImage",r,a),o=s.context;t(o,e);for(var l=0,c=n.length;c>l;l++){var h=n[l];if(i.save(),i.transform.apply(i,h.transform),i.scale(1,-1),i.drawImage(s.canvas,h.x,h.y,h.w,h.h,0,-1,1,1),this.imageLayer){var u=this.getCanvasPosition(h.x,h.y);this.imageLayer.appendImage({imgData:e,left:u[0],top:u[1],width:r,height:a})}i.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){S("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===z?void 0!==e.mozFillRule?(e.mozFillRule="evenodd",e.clip(),e.mozFillRule="nonzero"):e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this.cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this.cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this.cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}};for(var G in u)e.prototype[u[G]]=e.prototype[G];return e}();e.CanvasGraphics=j,e.createScratchCanvas=a}),function(e,t){t(e.pdfjsDisplayAPI={},e.pdfjsSharedUtil,e.pdfjsDisplayFontLoader,e.pdfjsDisplayCanvas,e.pdfjsDisplayMetadata,e.pdfjsDisplayDOMUtils)}(this,function(e,r,a,s,o,l,c){function h(e,t,n,i){var r=new X;arguments.length>1&&x("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument"),t&&(t instanceof q||(t=Object.create(t),t.length=e.length,t.initialData=e.initialData,t.abort||(t.abort=function(){})),e=Object.create(e),e.range=t),r.onPassword=n||null,r.onProgress=i||null;var a;"string"==typeof e?a={url:e}:_(e)?a={data:e}:e instanceof q?a={range:e}:("object"!=typeof e&&C("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object"),e.url||e.data||e.range||C("Invalid parameter object: need either .data, .range or .url"),a=e);var s={},o=null,l=null;for(var c in a)if("url"!==c||"undefined"==typeof window)if("range"!==c)if("worker"!==c)if("data"!==c||a[c]instanceof Uint8Array)s[c]=a[c];else{var h=a[c];"string"==typeof h?s[c]=I(h):"object"!=typeof h||null===h||isNaN(h.length)?_(h)?s[c]=new Uint8Array(h):C("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property."):s[c]=new Uint8Array(h)}else l=a[c];else o=a[c];else s[c]=new URL(a[c],window.location).href;s.rangeChunkSize=s.rangeChunkSize||U,l||(l=new Q,r._worker=l);var d=r.docId;return l.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");return u(l,s,o,d).then(function(e){if(r.destroyed)throw new Error("Loading aborted");var t=new p(d,e,l.port),n=new K(t,r,o);r._transport=n,t.send("Ready",null)})})["catch"](r._capability.reject),r}function u(e,t,n,i){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(t.disableAutoFetch=N("disableAutoFetch"),t.disableStream=N("disableStream"),t.chunkedViewerLoading=!!n,n&&(t.length=n.length,t.initialData=n.initialData),e.messageHandler.sendWithPromise("GetDocRequest",{docId:i,source:t,disableRange:N("disableRange"),maxImageSize:N("maxImageSize"),cMapUrl:N("cMapUrl"),cMapPacked:N("cMapPacked"),disableFontFace:N("disableFontFace"),disableCreateObjectURL:N("disableCreateObjectURL"),postMessageTransfers:N("postMessageTransfers")&&!W}).then(function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t}))}var d,f=r.InvalidPDFException,p=r.MessageHandler,g=r.MissingPDFException,m=r.PageViewport,v=r.PasswordResponses,b=r.PasswordException,w=r.StatTimer,A=r.UnexpectedResponseException,y=r.UnknownErrorException,S=r.Util,P=r.createPromiseCapability,C=r.error,x=r.deprecated,k=r.getVerbosityLevel,L=r.info,_=r.isArrayBuffer,T=r.isSameOrigin,E=r.loadJpegStream,I=r.stringToBytes,D=r.globalScope,F=r.warn,R=a.FontFaceObject,M=a.FontLoader,B=s.CanvasGraphics,O=s.createScratchCanvas,j=o.Metadata,N=l.getDefaultSetting,U=65536,V=!1,W=!1,H=!1;"undefined"==typeof window&&(V=!0,"undefined"==typeof require.ensure&&(require.ensure=require("node-ensure")),H=!0),"undefined"!=typeof __webpack_require__&&(H=!0),"undefined"!=typeof requirejs&&requirejs.toUrl&&(d=requirejs.toUrl("pdfjs-dist/build/pdf.worker.js"));var z="undefined"!=typeof requirejs&&requirejs.load,G=H?function(e){require.ensure([],function(){var t=require("./pdf.worker.js");e(t.WorkerMessageHandler)})}:z?function(e){requirejs(["pdfjs-dist/build/pdf.worker"],function(t){e(t.WorkerMessageHandler)})}:null,X=function(){function e(){this._capability=P(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}var t=0;return e.prototype={get promise(){return this._capability.promise},destroy:function(){this.destroyed=!0;var e=this._transport?this._transport.destroy():Promise.resolve();return e.then(function(){this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}.bind(this))},then:function(e,t){return this.promise.then.apply(this.promise,arguments)}},e}(),q=function(){function e(e,t){this.length=e,this.initialData=t,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._readyCapability=P()}return e.prototype={addRangeListener:function(e){this._rangeListeners.push(e)},addProgressListener:function(e){this._progressListeners.push(e)},addProgressiveReadListener:function(e){this._progressiveReadListeners.push(e)},onDataRange:function(e,t){for(var n=this._rangeListeners,i=0,r=n.length;r>i;++i)n[i](e,t)},onDataProgress:function(e){this._readyCapability.promise.then(function(){for(var t=this._progressListeners,n=0,i=t.length;i>n;++n)t[n](e)}.bind(this))},onDataProgressiveRead:function(e){this._readyCapability.promise.then(function(){for(var t=this._progressiveReadListeners,n=0,i=t.length;i>n;++n)t[n](e)}.bind(this))},transportReady:function(){this._readyCapability.resolve()},requestDataRange:function(e,t){throw new Error("Abstract method PDFDataRangeTransport.requestDataRange")},abort:function(){}},e}(),Y=function(){function e(e,t,n){this.pdfInfo=e,this.transport=t,this.loadingTask=n}return e.prototype={get numPages(){return this.pdfInfo.numPages},get fingerprint(){return this.pdfInfo.fingerprint},getPage:function(e){return this.transport.getPage(e)},getPageIndex:function(e){return this.transport.getPageIndex(e)},getDestinations:function(){return this.transport.getDestinations()},getDestination:function(e){return this.transport.getDestination(e)},getPageLabels:function(){return this.transport.getPageLabels()},getAttachments:function(){return this.transport.getAttachments()},getJavaScript:function(){return this.transport.getJavaScript()},getOutline:function(){return this.transport.getOutline()},getMetadata:function(){return this.transport.getMetadata()},getData:function(){return this.transport.getData()},getDownloadInfo:function(){return this.transport.downloadInfoCapability.promise},getStats:function(){return this.transport.getStats()},cleanup:function(){this.transport.startCleanup()},destroy:function(){return this.loadingTask.destroy()}},e}(),J=function(){function e(e,t,n){this.pageIndex=e,this.pageInfo=t,this.transport=n,this.stats=new w,this.stats.enabled=N("enableStats"),this.commonObjs=n.commonObjs,this.objs=new Z,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return e.prototype={get pageNumber(){return this.pageIndex+1},get rotate(){return this.pageInfo.rotate},get ref(){return this.pageInfo.ref},get view(){return this.pageInfo.view},getViewport:function(e,t){return arguments.length<2&&(t=this.rotate),new m(this.view,e,t,0,0)},getAnnotations:function(e){var t=e&&e.intent||null;return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this.transport.getAnnotations(this.pageIndex,t),this.annotationsIntent=t),this.annotationsPromise},render:function(e){function t(e){var t=r.renderTasks.indexOf(a);t>=0&&r.renderTasks.splice(t,1),o.cleanupAfterRender&&(o.pendingCleanup=!0),o._tryCleanup(),e?a.capability.reject(e):a.capability.resolve(),n.timeEnd("Rendering"),n.timeEnd("Overall")}var n=this.stats;n.time("Overall"),this.pendingCleanup=!1;var i="print"===e.intent?"print":"display";this.intentStates[i]||(this.intentStates[i]=Object.create(null));var r=this.intentStates[i];r.displayReadyCapability||(r.receivingOperatorList=!0,r.displayReadyCapability=P(),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.stats.time("Page Request"),this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageNumber-1,intent:i}));var a=new ee(t,e,this.objs,this.commonObjs,r.operatorList,this.pageNumber);a.useRequestAnimationFrame="print"!==i,r.renderTasks||(r.renderTasks=[]),r.renderTasks.push(a);var s=a.task;e.continueCallback&&(x("render is used with continueCallback parameter"),s.onContinue=e.continueCallback);var o=this;return r.displayReadyCapability.promise.then(function(e){return o.pendingCleanup?void t():(n.time("Rendering"),a.initalizeGraphics(e),void a.operatorListChanged())},function(e){t(e)}),s},getOperatorList:function(){function e(){if(i.operatorList.lastChunk){i.opListReadCapability.resolve(i.operatorList);var e=i.renderTasks.indexOf(n);e>=0&&i.renderTasks.splice(e,1)}}var t="oplist";this.intentStates[t]||(this.intentStates[t]=Object.create(null));var n,i=this.intentStates[t];return i.opListReadCapability||(n={},n.operatorListChanged=e,i.receivingOperatorList=!0,i.opListReadCapability=P(),i.renderTasks=[],i.renderTasks.push(n),i.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this.transport.messageHandler.send("RenderPageRequest",{pageIndex:this.pageIndex,intent:t})),i.opListReadCapability.promise},getTextContent:function(e){var t=e&&e.normalizeWhitespace||!1;return this.transport.messageHandler.sendWithPromise("GetTextContent",{pageIndex:this.pageNumber-1,normalizeWhitespace:t})},_destroy:function(){this.destroyed=!0,this.transport.pageCache[this.pageIndex]=null;var e=[];return Object.keys(this.intentStates).forEach(function(t){if("oplist"!==t){var n=this.intentStates[t];n.renderTasks.forEach(function(t){var n=t.capability.promise["catch"](function(){});e.push(n),t.cancel()})}},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(e)},destroy:function(){x("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(e){var t=this.intentStates[e];return 0!==t.renderTasks.length||t.receivingOperatorList},this)&&(Object.keys(this.intentStates).forEach(function(e){delete this.intentStates[e]},this),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1)},_startRenderPage:function(e,t){var n=this.intentStates[t];n.displayReadyCapability&&n.displayReadyCapability.resolve(e)},_renderPageChunk:function(e,t){var n,i,r=this.intentStates[t];for(n=0,i=e.length;i>n;n++)r.operatorList.fnArray.push(e.fnArray[n]),r.operatorList.argsArray.push(e.argsArray[n]);for(r.operatorList.lastChunk=e.lastChunk,n=0;n<r.renderTasks.length;n++)r.renderTasks[n].operatorListChanged();e.lastChunk&&(r.receivingOperatorList=!1,this._tryCleanup())}},e}(),Q=function(){function e(){return"undefined"!=typeof d?d:N("workerSrc")?N("workerSrc"):i?i.replace(/\.js$/i,".worker.js"):void C("No PDFJS.workerSrc specified")}function t(){if(!a){a=P();var t=G||function(t){S.loadScript(e(),function(){t(window.pdfjsDistBuildPdfWorker.WorkerMessageHandler)})};t(a.resolve)}return a.promise}function n(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}function r(e){this.name=e,this.destroyed=!1,this._readyCapability=P(),this._port=null,this._webWorker=null,this._messageHandler=null,this._initialize()}var a,s=0;return r.prototype={get promise(){return this._readyCapability.promise},get port(){return this._port},get messageHandler(){return this._messageHandler},_initialize:function(){if(!V&&!N("disableWorker")&&"undefined"!=typeof Worker){var t=e();try{T(window.location.href,t)||(t=n(new URL(t,window.location).href));var i=new Worker(t),r=new p("main","worker",i),a=function(){i.removeEventListener("error",s),r.destroy(),i.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()}.bind(this),s=function(e){this._webWorker||a()}.bind(this);i.addEventListener("error",s),r.on("test",function(e){if(i.removeEventListener("error",s),this.destroyed)return void a();var t=e&&e.supportTypedArray;t?(this._messageHandler=r,this._port=i,this._webWorker=i,e.supportTransfers||(W=!0),this._readyCapability.resolve(),r.send("configure",{verbosity:k()})):(this._setupFakeWorker(),r.destroy(),i.terminate())}.bind(this)),r.on("console_log",function(e){console.log.apply(console,e)}),r.on("console_error",function(e){console.error.apply(console,e)}),r.on("ready",function(e){if(i.removeEventListener("error",s),this.destroyed)return void a();try{o()}catch(t){this._setupFakeWorker()}}.bind(this));var o=function(){var e=N("postMessageTransfers")&&!W,t=new Uint8Array([e?255:0]);try{r.send("test",t,[t.buffer])}catch(n){L("Cannot use postMessage transfers"),t[0]=0,r.send("test",t)}};return void o()}catch(l){L("The worker has been disabled.")}}this._setupFakeWorker()},_setupFakeWorker:function(){V||N("disableWorker")||(F("Setting up fake worker."),V=!0),t().then(function(e){if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));var t={_listeners:[],postMessage:function(e){var t={data:e};this._listeners.forEach(function(e){e.call(this,t)},this)},addEventListener:function(e,t){this._listeners.push(t)},removeEventListener:function(e,t){var n=this._listeners.indexOf(t);this._listeners.splice(n,1)},terminate:function(){}};this._port=t;var n="fake"+s++,i=new p(n+"_worker",n,t);e.setup(i,t);var r=new p(n,n+"_worker",t);this._messageHandler=r,this._readyCapability.resolve()}.bind(this))},destroy:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},r}(),K=function(){function e(e,t,n){this.messageHandler=e,this.loadingTask=t,this.pdfDataRangeTransport=n,this.commonObjs=new Z,this.fontLoader=new M(t.docId),this.destroyed=!1,this.destroyCapability=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=P(),this.setupMessageHandler()}return e.prototype={destroy:function(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=P();var e=[];this.pageCache.forEach(function(t){t&&e.push(t._destroy())}),this.pageCache=[],this.pagePromises=[];var t=this,n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then(function(){t.fontLoader.clear(),t.pdfDataRangeTransport&&(t.pdfDataRangeTransport.abort(),t.pdfDataRangeTransport=null),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise},setupMessageHandler:function(){function e(e){t.send("UpdatePassword",e)}var t=this.messageHandler,n=this.pdfDataRangeTransport;n&&(n.addRangeListener(function(e,n){t.send("OnDataRange",{begin:e,chunk:n})}),n.addProgressListener(function(e){t.send("OnDataProgress",{loaded:e})}),n.addProgressiveReadListener(function(e){t.send("OnDataRange",{chunk:e})}),t.on("RequestDataRange",function(e){n.requestDataRange(e.begin,e.end)},this)),t.on("GetDoc",function(e){var t=e.pdfInfo;this.numPages=e.pdfInfo.numPages;var n=this.loadingTask,i=new Y(t,this,n);this.pdfDocument=i,n._capability.resolve(i)},this),t.on("NeedPassword",function(t){var n=this.loadingTask;return n.onPassword?n.onPassword(e,v.NEED_PASSWORD):void n._capability.reject(new b(t.message,t.code))},this),t.on("IncorrectPassword",function(t){var n=this.loadingTask;return n.onPassword?n.onPassword(e,v.INCORRECT_PASSWORD):void n._capability.reject(new b(t.message,t.code))},this),t.on("InvalidPDF",function(e){this.loadingTask._capability.reject(new f(e.message))},this),t.on("MissingPDF",function(e){this.loadingTask._capability.reject(new g(e.message))},this),t.on("UnexpectedResponse",function(e){this.loadingTask._capability.reject(new A(e.message,e.status))},this),t.on("UnknownError",function(e){this.loadingTask._capability.reject(new y(e.message,e.details))},this),t.on("DataLoaded",function(e){this.downloadInfoCapability.resolve(e)},this),t.on("PDFManagerReady",function(e){this.pdfDataRangeTransport&&this.pdfDataRangeTransport.transportReady()},this),t.on("StartRenderPage",function(e){if(!this.destroyed){var t=this.pageCache[e.pageIndex];t.stats.timeEnd("Page Request"),t._startRenderPage(e.transparency,e.intent)}},this),t.on("RenderPageChunk",function(e){if(!this.destroyed){var t=this.pageCache[e.pageIndex];t._renderPageChunk(e.operatorList,e.intent)}},this),t.on("commonobj",function(e){if(!this.destroyed){var t=e[0],n=e[1];if(!this.commonObjs.hasData(t))switch(n){case"Font":var i=e[2];if("error"in i){var r=i.error;F("Error during font loading: "+r),this.commonObjs.resolve(t,r);break}var a=null;N("pdfBug")&&D.FontInspector&&D.FontInspector.enabled&&(a={registerFont:function(e,t){D.FontInspector.fontAdded(e,t)}});var s=new R(i,{isEvalSuported:N("isEvalSupported"),disableFontFace:N("disableFontFace"),fontRegistry:a});this.fontLoader.bind([s],function(e){this.commonObjs.resolve(t,s)}.bind(this));break;case"FontPath":this.commonObjs.resolve(t,e[2]);break;default:C("Got unknown common object type "+n)}}},this),t.on("obj",function(e){if(!this.destroyed){var t,n=e[0],i=e[1],r=e[2],a=this.pageCache[i];if(!a.objs.hasData(n))switch(r){case"JpegStream":t=e[3],E(n,t,a.objs);break;case"Image":t=e[3],a.objs.resolve(n,t);var s=8e6;t&&"data"in t&&t.data.length>s&&(a.cleanupAfterRender=!0);break;default:C("Got unknown object type "+r)}}},this),t.on("DocProgress",function(e){if(!this.destroyed){var t=this.loadingTask;t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}},this),t.on("PageError",function(e){if(!this.destroyed){var t=this.pageCache[e.pageNum-1],n=t.intentStates[e.intent];if(n.displayReadyCapability?n.displayReadyCapability.reject(e.error):C(e.error),n.operatorList){n.operatorList.lastChunk=!0;for(var i=0;i<n.renderTasks.length;i++)n.renderTasks[i].operatorListChanged()}}},this),t.on("UnsupportedFeature",function(e){if(!this.destroyed){var t=e.featureId,n=this.loadingTask;n.onUnsupportedFeature&&n.onUnsupportedFeature(t),te.notify(t)}},this),t.on("JpegDecode",function(e){if(this.destroyed)return Promise.reject("Worker was terminated");var t=e[0],n=e[1];return 3!==n&&1!==n?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise(function(e,i){var r=new Image;r.onload=function(){var t=r.width,i=r.height,a=t*i,s=4*a,o=new Uint8Array(a*n),l=O(t,i),c=l.getContext("2d");c.drawImage(r,0,0);var h,u,d=c.getImageData(0,0,t,i).data;if(3===n)for(h=0,u=0;s>h;h+=4,u+=3)o[u]=d[h],o[u+1]=d[h+1],o[u+2]=d[h+2];else if(1===n)for(h=0,u=0;s>h;h+=4,u++)o[u]=d[h];e({data:o,width:t,height:i})},r.onerror=function(){i(new Error("JpegDecode failed to load image"))},r.src=t})},this)},getData:function(){return this.messageHandler.sendWithPromise("GetData",null)},getPage:function(e,t){if(0>=e||e>this.numPages||(0|e)!==e)return Promise.reject(new Error("Invalid page request"));var n=e-1;if(n in this.pagePromises)return this.pagePromises[n];var i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(e){if(this.destroyed)throw new Error("Transport destroyed");var t=new J(n,e,this);return this.pageCache[n]=t,t}.bind(this));return this.pagePromises[n]=i,i},getPageIndex:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e})},getAnnotations:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})},getDestinations:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)},getDestination:function(e){return this.messageHandler.sendWithPromise("GetDestination",{id:e})},getPageLabels:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)},getAttachments:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)},getJavaScript:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)},getOutline:function(){return this.messageHandler.sendWithPromise("GetOutline",null)},getMetadata:function(){return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){return{info:e[0],metadata:e[1]?new j(e[1]):null}})},getStats:function(){return this.messageHandler.sendWithPromise("GetStats",null)},startCleanup:function(){this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var e=0,t=this.pageCache.length;t>e;e++){var n=this.pageCache[e];n&&n.cleanup()}this.commonObjs.clear(),this.fontLoader.clear()}.bind(this))}},e}(),Z=function(){function e(){this.objs=Object.create(null)}return e.prototype={ensureObj:function(e){if(this.objs[e])return this.objs[e];var t={capability:P(),data:null,resolved:!1};return this.objs[e]=t,t},get:function(e,t){if(t)return this.ensureObj(e).capability.promise.then(t),null;var n=this.objs[e];return n&&n.resolved||C("Requesting object that isn't resolved yet "+e),n.data},resolve:function(e,t){var n=this.ensureObj(e);n.resolved=!0,n.data=t,n.capability.resolve(t)},isResolved:function(e){var t=this.objs;return t[e]?t[e].resolved:!1},hasData:function(e){return this.isResolved(e)},getData:function(e){var t=this.objs;return t[e]&&t[e].resolved?t[e].data:null},clear:function(){this.objs=Object.create(null)}},e}(),$=function(){function e(e){this._internalRenderTask=e,this.onContinue=null}return e.prototype={get promise(){return this._internalRenderTask.capability.promise},cancel:function(){this._internalRenderTask.cancel()},then:function(e,t){return this.promise.then.apply(this.promise,arguments)}},e}(),ee=function(){function e(e,t,n,i,r,a){this.callback=e,this.params=t,this.objs=n,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=r,this.pageNumber=a,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this.useRequestAnimationFrame=!1,this.cancelled=!1,this.capability=P(),this.task=new $(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this)}return e.prototype={initalizeGraphics:function(e){if(!this.cancelled){N("pdfBug")&&D.StepperManager&&D.StepperManager.enabled&&(this.stepper=D.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var t=this.params;this.gfx=new B(t.canvasContext,this.commonObjs,this.objs,t.imageLayer),this.gfx.beginDrawing(t.transform,t.viewport,e),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}},cancel:function(){this.running=!1,this.cancelled=!0,this.callback("cancelled")},operatorListChanged:function(){return this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),void(this.running||this._continue())):void(this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound))},_continue:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue.call(this.task,this._scheduleNextBound):this._scheduleNext())},_scheduleNext:function(){this.useRequestAnimationFrame&&"undefined"!=typeof window?window.requestAnimationFrame(this._nextBound):Promise.resolve(void 0).then(this._nextBound)},_next:function(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this.callback())))}},e}(),te=function(){var e=[];return{listen:function(t){x("Global UnsupportedManager.listen is used: use PDFDocumentLoadingTask.onUnsupportedFeature instead"),e.push(t)},notify:function(t){for(var n=0,i=e.length;i>n;n++)e[n](t)}}}();"undefined"!=typeof t&&(e.version=t),"undefined"!=typeof n&&(e.build=n),e.getDocument=h,e.PDFDataRangeTransport=q,e.PDFWorker=Q,e.PDFDocumentProxy=Y,e.PDFPageProxy=J,e._UnsupportedManager=te}),function(e,t){t(e.pdfjsDisplayGlobal={},e.pdfjsSharedUtil,e.pdfjsDisplayDOMUtils,e.pdfjsDisplayAPI,e.pdfjsDisplayAnnotationLayer,e.pdfjsDisplayTextLayer,e.pdfjsDisplayMetadata,e.pdfjsDisplaySVG)}(this,function(e,i,r,a,s,o,l,c){var h=i.globalScope,u=i.deprecated,d=i.warn,f=r.LinkTarget,p="undefined"==typeof window;h.PDFJS||(h.PDFJS={});var g=h.PDFJS;"undefined"!=typeof t&&(g.version=t),"undefined"!=typeof n&&(g.build=n),g.pdfBug=!1,void 0!==g.verbosity&&i.setVerbosityLevel(g.verbosity),delete g.verbosity,Object.defineProperty(g,"verbosity",{get:function(){return i.getVerbosityLevel()},set:function(e){i.setVerbosityLevel(e)},enumerable:!0,configurable:!0}),g.VERBOSITY_LEVELS=i.VERBOSITY_LEVELS,g.OPS=i.OPS,g.UNSUPPORTED_FEATURES=i.UNSUPPORTED_FEATURES,g.isValidUrl=i.isValidUrl,g.shadow=i.shadow,g.createBlob=i.createBlob,g.createObjectURL=function(e,t){return i.createObjectURL(e,t,g.disableCreateObjectURL)},Object.defineProperty(g,"isLittleEndian",{configurable:!0,get:function(){var e=i.isLittleEndian();return i.shadow(g,"isLittleEndian",e)}}),g.removeNullCharacters=i.removeNullCharacters,g.PasswordResponses=i.PasswordResponses,g.PasswordException=i.PasswordException,g.UnknownErrorException=i.UnknownErrorException,g.InvalidPDFException=i.InvalidPDFException,g.MissingPDFException=i.MissingPDFException,g.UnexpectedResponseException=i.UnexpectedResponseException,g.Util=i.Util,g.PageViewport=i.PageViewport,g.createPromiseCapability=i.createPromiseCapability,g.maxImageSize=void 0===g.maxImageSize?-1:g.maxImageSize,g.cMapUrl=void 0===g.cMapUrl?null:g.cMapUrl,g.cMapPacked=void 0===g.cMapPacked?!1:g.cMapPacked,g.disableFontFace=void 0===g.disableFontFace?!1:g.disableFontFace,g.imageResourcesPath=void 0===g.imageResourcesPath?"":g.imageResourcesPath,g.disableWorker=void 0===g.disableWorker?!1:g.disableWorker,g.workerSrc=void 0===g.workerSrc?null:g.workerSrc,g.disableRange=void 0===g.disableRange?!1:g.disableRange,g.disableStream=void 0===g.disableStream?!1:g.disableStream,g.disableAutoFetch=void 0===g.disableAutoFetch?!1:g.disableAutoFetch,g.pdfBug=void 0===g.pdfBug?!1:g.pdfBug,g.postMessageTransfers=void 0===g.postMessageTransfers?!0:g.postMessageTransfers,g.disableCreateObjectURL=void 0===g.disableCreateObjectURL?!1:g.disableCreateObjectURL,g.disableWebGL=void 0===g.disableWebGL?!0:g.disableWebGL,g.externalLinkTarget=void 0===g.externalLinkTarget?f.NONE:g.externalLinkTarget,g.externalLinkRel=void 0===g.externalLinkRel?"noreferrer":g.externalLinkRel,g.isEvalSupported=void 0===g.isEvalSupported?!0:g.isEvalSupported;var m=g.openExternalLinksInNewWindow;delete g.openExternalLinksInNewWindow,Object.defineProperty(g,"openExternalLinksInNewWindow",{get:function(){return g.externalLinkTarget===f.BLANK},set:function(e){return e&&u('PDFJS.openExternalLinksInNewWindow, please use "PDFJS.externalLinkTarget = PDFJS.LinkTarget.BLANK" instead.'),g.externalLinkTarget!==f.NONE?void d("PDFJS.externalLinkTarget is already initialized"):void(g.externalLinkTarget=e?f.BLANK:f.NONE)},enumerable:!0,configurable:!0}),m&&(g.openExternalLinksInNewWindow=m),g.getDocument=a.getDocument,g.PDFDataRangeTransport=a.PDFDataRangeTransport,g.PDFWorker=a.PDFWorker,Object.defineProperty(g,"hasCanvasTypedArrays",{configurable:!0,get:function(){var e=r.hasCanvasTypedArrays();return i.shadow(g,"hasCanvasTypedArrays",e)}}),g.CustomStyle=r.CustomStyle,g.LinkTarget=f,g.addLinkAttributes=r.addLinkAttributes,g.getFilenameFromUrl=r.getFilenameFromUrl,g.isExternalLinkTargetSet=r.isExternalLinkTargetSet,g.AnnotationLayer=s.AnnotationLayer,g.renderTextLayer=o.renderTextLayer,g.Metadata=l.Metadata,g.SVGGraphics=c.SVGGraphics,g.UnsupportedManager=a._UnsupportedManager,e.globalScope=h,e.isWorker=p,e.PDFJS=h.PDFJS})}).call(r),e.PDFJS=r.pdfjsDisplayGlobal.PDFJS,e.build=r.pdfjsDisplayAPI.build,e.version=r.pdfjsDisplayAPI.version,e.getDocument=r.pdfjsDisplayAPI.getDocument,e.PDFDataRangeTransport=r.pdfjsDisplayAPI.PDFDataRangeTransport,e.PDFWorker=r.pdfjsDisplayAPI.PDFWorker,e.renderTextLayer=r.pdfjsDisplayTextLayer.renderTextLayer,e.AnnotationLayer=r.pdfjsDisplayAnnotationLayer.AnnotationLayer,e.CustomStyle=r.pdfjsDisplayDOMUtils.CustomStyle,e.PasswordResponses=r.pdfjsSharedUtil.PasswordResponses,e.InvalidPDFException=r.pdfjsSharedUtil.InvalidPDFException,e.MissingPDFException=r.pdfjsSharedUtil.MissingPDFException,e.SVGGraphics=r.pdfjsDisplaySVG.SVGGraphics,e.UnexpectedResponseException=r.pdfjsSharedUtil.UnexpectedResponseException,e.OPS=r.pdfjsSharedUtil.OPS,e.UNSUPPORTED_FEATURES=r.pdfjsSharedUtil.UNSUPPORTED_FEATURES,e.isValidUrl=r.pdfjsSharedUtil.isValidUrl,e.createObjectURL=r.pdfjsSharedUtil.createObjectURL,e.removeNullCharacters=r.pdfjsSharedUtil.removeNullCharacters,e.shadow=r.pdfjsSharedUtil.shadow,e.createBlob=r.pdfjsSharedUtil.createBlob,e.getFilenameFromUrl=r.pdfjsDisplayDOMUtils.getFilenameFromUrl,e.addLinkAttributes=r.pdfjsDisplayDOMUtils.addLinkAttributes});var DEFAULT_URL="compressed.tracemonkey-pldi-09.pdf",pdfjsWebLibs={pdfjsWebPDFJS:window.pdfjsDistBuildPdf};(function(){!function(e,t){t(e.pdfjsWebGrabToPan={})}(this,function(e){function t(e){this.element=e.element,this.document=e.element.ownerDocument,"function"==typeof e.ignoreTarget&&(this.ignoreTarget=e.ignoreTarget),this.onActiveChanged=e.onActiveChanged,this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.toggle=this.toggle.bind(this),this._onmousedown=this._onmousedown.bind(this),this._onmousemove=this._onmousemove.bind(this),this._endPan=this._endPan.bind(this);var t=this.overlay=document.createElement("div");t.className="grab-to-pan-grabbing"}function n(e){return"buttons"in e&&r?!(1|e.buttons):s||o?0===e.which:void 0}t.prototype={CSS_CLASS_GRAB:"grab-to-pan-grab",activate:function(){this.active||(this.active=!0,this.element.addEventListener("mousedown",this._onmousedown,!0),this.element.classList.add(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!0))},deactivate:function(){this.active&&(this.active=!1,this.element.removeEventListener("mousedown",this._onmousedown,!0),this._endPan(),this.element.classList.remove(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!1))},toggle:function(){this.active?this.deactivate():this.activate()},ignoreTarget:function(e){return e[i]("a[href], a[href] *, input, textarea, button, button *, select, option")},_onmousedown:function(e){if(0===e.button&&!this.ignoreTarget(e.target)){if(e.originalTarget)try{e.originalTarget.tagName}catch(t){return}this.scrollLeftStart=this.element.scrollLeft,this.scrollTopStart=this.element.scrollTop,this.clientXStart=e.clientX,this.clientYStart=e.clientY,this.document.addEventListener("mousemove",this._onmousemove,!0),this.document.addEventListener("mouseup",this._endPan,!0),this.element.addEventListener("scroll",this._endPan,!0),e.preventDefault(),e.stopPropagation(),this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING);
var n=document.activeElement;n&&!n.contains(e.target)&&n.blur()}},_onmousemove:function(e){if(this.element.removeEventListener("scroll",this._endPan,!0),n(e))return void this._endPan();var t=e.clientX-this.clientXStart,i=e.clientY-this.clientYStart;this.element.scrollTop=this.scrollTopStart-i,this.element.scrollLeft=this.scrollLeftStart-t,this.overlay.parentNode||document.body.appendChild(this.overlay)},_endPan:function(){this.element.removeEventListener("scroll",this._endPan,!0),this.document.removeEventListener("mousemove",this._onmousemove,!0),this.document.removeEventListener("mouseup",this._endPan,!0),this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)}};var i;["webkitM","mozM","msM","oM","m"].some(function(e){var t=e+"atches";return t in document.documentElement&&(i=t),t+="Selector",t in document.documentElement&&(i=t),i});var r=!document.documentMode||document.documentMode>9,a=window.chrome,s=a&&(a.webstore||a.app),o=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);e.GrabToPan=t}),function(e,t){t(e.pdfjsWebMozPrintCallbackPolyfill={})}(this,function(e){function t(e){var t=document.createEvent("CustomEvent");t.initCustomEvent(e,!1,!1,"custom"),window.dispatchEvent(t)}function n(){if(a)if(r(),++s<a.length){var e=a[s];"function"==typeof e.mozPrintCallback?e.mozPrintCallback({context:e.getContext("2d"),abort:i,done:n}):n()}else r(),o.call(window),setTimeout(i,20)}function i(){a&&(a=null,r(),t("afterprint"))}function r(){var e=document.getElementById("mozPrintCallback-shim");if(a&&a.length){var t=Math.round(100*s/a.length),n=e.querySelector("progress"),r=e.querySelector(".relative-progress");n.value=t,r.textContent=t+"%",e.removeAttribute("hidden"),e.onclick=i}else e.setAttribute("hidden","")}if(!("mozPrintCallback"in document.createElement("canvas"))){HTMLCanvasElement.prototype.mozPrintCallback=void 0;var a,s,o=window.print;window.print=function(){if(a)return void console.warn("Ignored window.print() because of a pending print job.");try{t("beforeprint")}finally{a=document.querySelectorAll("canvas"),s=-1,n()}};var l=!!document.attachEvent;if(window.addEventListener("keydown",function(e){if(80===e.keyCode&&(e.ctrlKey||e.metaKey)&&!e.altKey&&(!e.shiftKey||window.chrome||window.opera)){if(window.print(),l)return;return e.preventDefault(),void(e.stopImmediatePropagation?e.stopImmediatePropagation():e.stopPropagation())}27===e.keyCode&&a&&i()},!0),l&&document.attachEvent("onkeydown",function(e){return e=e||window.event,80===e.keyCode&&e.ctrlKey?(e.keyCode=0,!1):void 0}),"onbeforeprint"in window){var c=function(e){"custom"!==e.detail&&e.stopImmediatePropagation&&e.stopImmediatePropagation()};window.addEventListener("beforeprint",c,!1),window.addEventListener("afterprint",c,!1)}}}),function(e,t){t(e.pdfjsWebOverlayManager={})}(this,function(e){var t={overlays:{},active:null,register:function(e,t,n,i){return new Promise(function(r){var a;if(!(e&&t&&(a=t.parentNode)))throw new Error("Not enough parameters.");if(this.overlays[e])throw new Error("The overlay is already registered.");this.overlays[e]={element:t,container:a,callerCloseMethod:n||null,canForceClose:i||!1},r()}.bind(this))},unregister:function(e){return new Promise(function(t){if(!this.overlays[e])throw new Error("The overlay does not exist.");if(this.active===e)throw new Error("The overlay cannot be removed while it is active.");delete this.overlays[e],t()}.bind(this))},open:function(e){return new Promise(function(t){if(!this.overlays[e])throw new Error("The overlay does not exist.");if(this.active){if(!this.overlays[e].canForceClose)throw this.active===e?new Error("The overlay is already active."):new Error("Another overlay is currently active.");this._closeThroughCaller()}this.active=e,this.overlays[this.active].element.classList.remove("hidden"),this.overlays[this.active].container.classList.remove("hidden"),window.addEventListener("keydown",this._keyDown),t()}.bind(this))},close:function(e){return new Promise(function(t){if(!this.overlays[e])throw new Error("The overlay does not exist.");if(!this.active)throw new Error("The overlay is currently not active.");if(this.active!==e)throw new Error("Another overlay is currently active.");this.overlays[this.active].container.classList.add("hidden"),this.overlays[this.active].element.classList.add("hidden"),this.active=null,window.removeEventListener("keydown",this._keyDown),t()}.bind(this))},_keyDown:function(e){var n=t;n.active&&27===e.keyCode&&(n._closeThroughCaller(),e.preventDefault())},_closeThroughCaller:function(){this.overlays[this.active].callerCloseMethod&&this.overlays[this.active].callerCloseMethod(),this.active&&this.close(this.active)}};e.OverlayManager=t}),function(e,t){t(e.pdfjsWebPDFPresentationMode={})}(this,function(e){var t=1500,n=3e3,i="pdfPresentationMode",r="pdfPresentationModeControls",a=function(){function e(e){this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,this.pdfViewer=e.pdfViewer,this.eventBus=e.eventBus;var t=e.contextMenuItems||null;this.active=!1,this.args=null,this.contextMenuOpen=!1,this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0,t&&(t.contextFirstPage.addEventListener("click",function(e){this.contextMenuOpen=!1,this.eventBus.dispatch("firstpage")}.bind(this)),t.contextLastPage.addEventListener("click",function(e){this.contextMenuOpen=!1,this.eventBus.dispatch("lastpage")}.bind(this)),t.contextPageRotateCw.addEventListener("click",function(e){this.contextMenuOpen=!1,this.eventBus.dispatch("rotatecw")}.bind(this)),t.contextPageRotateCcw.addEventListener("click",function(e){this.contextMenuOpen=!1,this.eventBus.dispatch("rotateccw")}.bind(this)))}return e.prototype={request:function(){if(this.switchInProgress||this.active||!this.viewer.hasChildNodes())return!1;if(this._addFullscreenChangeListeners(),this._setSwitchInProgress(),this._notifyStateChange(),this.container.requestFullscreen)this.container.requestFullscreen();else if(this.container.mozRequestFullScreen)this.container.mozRequestFullScreen();else if(this.container.webkitRequestFullscreen)this.container.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);else{if(!this.container.msRequestFullscreen)return!1;this.container.msRequestFullscreen()}return this.args={page:this.pdfViewer.currentPageNumber,previousScale:this.pdfViewer.currentScaleValue},!0},mouseScroll:function(e){if(this.active){var t=50,n=120,i={UP:-1,DOWN:1},r=(new Date).getTime(),a=this.mouseScrollTimeStamp;if(!(r>a&&t>r-a)&&((this.mouseScrollDelta>0&&0>e||this.mouseScrollDelta<0&&e>0)&&this._resetMouseScrollState(),this.mouseScrollDelta+=e,Math.abs(this.mouseScrollDelta)>=n)){var s=this.mouseScrollDelta>0?i.UP:i.DOWN,o=this.pdfViewer.currentPageNumber;if(this._resetMouseScrollState(),1===o&&s===i.UP||o===this.pdfViewer.pagesCount&&s===i.DOWN)return;this.pdfViewer.currentPageNumber=o+s,this.mouseScrollTimeStamp=r}}},get isFullscreen(){return!!(document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement)},_notifyStateChange:function(){this.eventBus.dispatch("presentationmodechanged",{source:this,active:this.active,switchInProgress:!!this.switchInProgress})},_setSwitchInProgress:function(){this.switchInProgress&&clearTimeout(this.switchInProgress),this.switchInProgress=setTimeout(function(){this._removeFullscreenChangeListeners(),delete this.switchInProgress,this._notifyStateChange()}.bind(this),t)},_resetSwitchInProgress:function(){this.switchInProgress&&(clearTimeout(this.switchInProgress),delete this.switchInProgress)},_enter:function(){this.active=!0,this._resetSwitchInProgress(),this._notifyStateChange(),this.container.classList.add(i),setTimeout(function(){this.pdfViewer.currentPageNumber=this.args.page,this.pdfViewer.currentScaleValue="page-fit"}.bind(this),0),this._addWindowListeners(),this._showControls(),this.contextMenuOpen=!1,this.container.setAttribute("contextmenu","viewerContextMenu"),window.getSelection().removeAllRanges()},_exit:function(){var e=this.pdfViewer.currentPageNumber;this.container.classList.remove(i),setTimeout(function(){this.active=!1,this._removeFullscreenChangeListeners(),this._notifyStateChange(),this.pdfViewer.currentScaleValue=this.args.previousScale,this.pdfViewer.currentPageNumber=e,this.args=null}.bind(this),0),this._removeWindowListeners(),this._hideControls(),this._resetMouseScrollState(),this.container.removeAttribute("contextmenu"),this.contextMenuOpen=!1},_mouseDown:function(e){if(this.contextMenuOpen)return this.contextMenuOpen=!1,void e.preventDefault();if(0===e.button){var t=e.target.href&&e.target.classList.contains("internalLink");t||(e.preventDefault(),this.pdfViewer.currentPageNumber+=e.shiftKey?-1:1)}},_contextMenu:function(){this.contextMenuOpen=!0},_showControls:function(){this.controlsTimeout?clearTimeout(this.controlsTimeout):this.container.classList.add(r),this.controlsTimeout=setTimeout(function(){this.container.classList.remove(r),delete this.controlsTimeout}.bind(this),n)},_hideControls:function(){this.controlsTimeout&&(clearTimeout(this.controlsTimeout),this.container.classList.remove(r),delete this.controlsTimeout)},_resetMouseScrollState:function(){this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0},_addWindowListeners:function(){this.showControlsBind=this._showControls.bind(this),this.mouseDownBind=this._mouseDown.bind(this),this.resetMouseScrollStateBind=this._resetMouseScrollState.bind(this),this.contextMenuBind=this._contextMenu.bind(this),window.addEventListener("mousemove",this.showControlsBind),window.addEventListener("mousedown",this.mouseDownBind),window.addEventListener("keydown",this.resetMouseScrollStateBind),window.addEventListener("contextmenu",this.contextMenuBind)},_removeWindowListeners:function(){window.removeEventListener("mousemove",this.showControlsBind),window.removeEventListener("mousedown",this.mouseDownBind),window.removeEventListener("keydown",this.resetMouseScrollStateBind),window.removeEventListener("contextmenu",this.contextMenuBind),delete this.showControlsBind,delete this.mouseDownBind,delete this.resetMouseScrollStateBind,delete this.contextMenuBind},_fullscreenChange:function(){this.isFullscreen?this._enter():this._exit()},_addFullscreenChangeListeners:function(){this.fullscreenChangeBind=this._fullscreenChange.bind(this),window.addEventListener("fullscreenchange",this.fullscreenChangeBind),window.addEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.addEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.addEventListener("MSFullscreenChange",this.fullscreenChangeBind)},_removeFullscreenChangeListeners:function(){window.removeEventListener("fullscreenchange",this.fullscreenChangeBind),window.removeEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("MSFullscreenChange",this.fullscreenChangeBind),delete this.fullscreenChangeBind}},e}();e.PDFPresentationMode=a}),function(e,t){t(e.pdfjsWebPDFRenderingQueue={})}(this,function(e){var t=3e4,n={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},i=function(){function e(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return e.prototype={setViewer:function(e){this.pdfViewer=e},setThumbnailViewer:function(e){this.pdfThumbnailViewer=e},isHighestPriority:function(e){return this.highestPriorityPage===e.renderingId},renderHighestPriority:function(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),t))},getHighestPriority:function(e,t,n){var i=e.views,r=i.length;if(0===r)return!1;for(var a=0;r>a;++a){var s=i[a].view;if(!this.isViewFinished(s))return s}if(n){var o=e.last.id;if(t[o]&&!this.isViewFinished(t[o]))return t[o]}else{var l=e.first.id-2;if(t[l]&&!this.isViewFinished(t[l]))return t[l]}return null},isViewFinished:function(e){return e.renderingState===n.FINISHED},renderView:function(e){var t=e.renderingState;switch(t){case n.FINISHED:return!1;case n.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case n.RUNNING:this.highestPriorityPage=e.renderingId;break;case n.INITIAL:this.highestPriorityPage=e.renderingId;var i=function(){this.renderHighestPriority()}.bind(this);e.draw().then(i,i)}return!0}},e}();e.RenderingStates=n,e.PDFRenderingQueue=i}),function(e,t){t(e.pdfjsWebPreferences={})}(this,function(e){var t={showPreviousViewOnLoad:!0,defaultZoomValue:"",sidebarViewOnLoad:0,enableHandToolOnLoad:!1,enableWebGL:!1,pdfBugEnabled:!1,disableRange:!1,disableStream:!1,disableAutoFetch:!1,disableFontFace:!1,disableTextLayer:!1,useOnlyCssZoom:!1,externalLinkTarget:0},n={prefs:Object.create(t),isInitializedPromiseResolved:!1,initializedPromise:null,initialize:function(){return this.initializedPromise=this._readFromStorage(t).then(function(e){this.isInitializedPromiseResolved=!0,e&&(this.prefs=e)}.bind(this))},_writeToStorage:function(e){return Promise.resolve()},_readFromStorage:function(e){return Promise.resolve()},reset:function(){return this.initializedPromise.then(function(){return this.prefs=Object.create(t),this._writeToStorage(t)}.bind(this))},reload:function(){return this.initializedPromise.then(function(){this._readFromStorage(t).then(function(e){e&&(this.prefs=e)}.bind(this))}.bind(this))},set:function(e,n){return this.initializedPromise.then(function(){if(void 0===t[e])throw new Error("preferencesSet: '"+e+"' is undefined.");if(void 0===n)throw new Error("preferencesSet: no value is specified.");var i=typeof n,r=typeof t[e];if(i!==r){if("number"!==i||"string"!==r)throw new Error("Preferences_set: '"+n+"' is a \""+i+'", expected "'+r+'".');n=n.toString()}else if("number"===i&&(0|n)!==n)throw new Error("Preferences_set: '"+n+'\' must be an "integer".');return this.prefs[e]=n,this._writeToStorage(this.prefs)}.bind(this))},get:function(e){return this.initializedPromise.then(function(){var n=t[e];if(void 0===n)throw new Error("preferencesGet: '"+e+"' is undefined.");var i=this.prefs[e];return void 0!==i?i:n}.bind(this))}};n._writeToStorage=function(e){return new Promise(function(t){localStorage.setItem("pdfjs.preferences",JSON.stringify(e)),t()})},n._readFromStorage=function(e){return new Promise(function(e){var t=JSON.parse(localStorage.getItem("pdfjs.preferences"));e(t)})},e.Preferences=n}),function(e,t){t(e.pdfjsWebViewHistory={})}(this,function(e){var t=20,n=function(){function e(e,n){this.fingerprint=e,this.cacheSize=n||t,this.isInitializedPromiseResolved=!1,this.initializedPromise=this._readFromStorage().then(function(e){this.isInitializedPromiseResolved=!0;var t=JSON.parse(e||"{}");"files"in t||(t.files=[]),t.files.length>=this.cacheSize&&t.files.shift();for(var n,i=0,r=t.files.length;r>i;i++){var a=t.files[i];if(a.fingerprint===this.fingerprint){n=i;break}}"number"!=typeof n&&(n=t.files.push({fingerprint:this.fingerprint})-1),this.file=t.files[n],this.database=t}.bind(this))}return e.prototype={_writeToStorage:function(){return new Promise(function(e){var t=JSON.stringify(this.database);localStorage.setItem("database",t),e()}.bind(this))},_readFromStorage:function(){return new Promise(function(e){e(localStorage.getItem("database"))})},set:function(e,t){return this.isInitializedPromiseResolved?(this.file[e]=t,this._writeToStorage()):void 0},setMultiple:function(e){if(this.isInitializedPromiseResolved){for(var t in e)this.file[t]=e[t];return this._writeToStorage()}},get:function(e,t){return this.isInitializedPromiseResolved?this.file[e]||t:t}},e}();e.ViewHistory=n}),function(e,t){t(e.pdfjsWebDownloadManager={},e.pdfjsWebPDFJS)}(this,function(e,t){function n(e,t){var n=document.createElement("a");if(n.click)n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).appendChild(n),n.click(),n.parentNode.removeChild(n);else{if(window.top===window&&e.split("#")[0]===window.location.href.split("#")[0]){var i=-1===e.indexOf("?")?"?":"&";e=e.replace(/#|$/,i+"$&")}window.open(e,"_parent")}}function i(){}i.prototype={downloadUrl:function(e,i){t.isValidUrl(e,!0)&&n(e+"#pdfjs.action=download",i)},downloadData:function(e,i,r){if(navigator.msSaveBlob)return navigator.msSaveBlob(new Blob([e],{type:r}),i);var a=t.createObjectURL(e,r,t.PDFJS.disableCreateObjectURL);n(a,i)},download:function(e,t,i){if(!URL)return void this.downloadUrl(t,i);if(navigator.msSaveBlob)return void(navigator.msSaveBlob(e,i)||this.downloadUrl(t,i));var r=URL.createObjectURL(e);n(r,i)}},e.DownloadManager=i}),function(e,t){t(e.pdfjsWebHandTool={},e.pdfjsWebGrabToPan,e.pdfjsWebPreferences)}(this,function(e,t,n){var i=t.GrabToPan,r=n.Preferences,a=function(){function e(e){this.container=e.container,this.eventBus=e.eventBus,this.wasActive=!1,this.handTool=new i({element:this.container,onActiveChanged:function(e){this.eventBus.dispatch("handtoolchanged",{isActive:e})}.bind(this)}),this.eventBus.on("togglehandtool",this.toggle.bind(this)),this.eventBus.on("localized",function(e){r.get("enableHandToolOnLoad").then(function(e){e&&this.handTool.activate()}.bind(this),function(e){})}.bind(this)),this.eventBus.on("presentationmodechanged",function(e){e.switchInProgress||(e.active?this.enterPresentationMode():this.exitPresentationMode())}.bind(this))}return e.prototype={get isActive(){return!!this.handTool.active},toggle:function(){this.handTool.toggle()},enterPresentationMode:function(){this.isActive&&(this.wasActive=!0,this.handTool.deactivate())},exitPresentationMode:function(){this.wasActive&&(this.wasActive=!1,this.handTool.activate())}},e}();e.HandTool=a}),function(e,t){t(e.pdfjsWebPDFAttachmentViewer={},e.pdfjsWebPDFJS)}(this,function(e,t){var n=function(){function e(e){this.attachments=null,this.container=e.container,this.eventBus=e.eventBus,this.downloadManager=e.downloadManager}return e.prototype={reset:function(){this.attachments=null;for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},_dispatchEvent:function(e){this.eventBus.dispatch("attachmentsloaded",{source:this,attachmentsCount:e})},_bindLink:function(e,t,n){e.onclick=function(e){return this.downloadManager.downloadData(t,n,""),!1}.bind(this)},render:function(e){var n=e&&e.attachments||null,i=0;if(this.attachments&&this.reset(),this.attachments=n,!n)return void this._dispatchEvent(i);var r=Object.keys(n).sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())});i=r.length;for(var a=0;i>a;a++){var s=n[r[a]],o=t.getFilenameFromUrl(s.filename),l=document.createElement("div");l.className="attachmentsItem";var c=document.createElement("button");this._bindLink(c,s.content,o),c.textContent=t.removeNullCharacters(o),l.appendChild(c),this.container.appendChild(l)}this._dispatchEvent(i)}},e}();e.PDFAttachmentViewer=n}),function(e,t){t(e.pdfjsWebPDFOutlineViewer={},e.pdfjsWebPDFJS)}(this,function(e,t){var n="–",i=function(){function e(e){this.outline=null,this.lastToggleIsShow=!0,this.container=e.container,this.linkService=e.linkService,this.eventBus=e.eventBus}return e.prototype={reset:function(){this.outline=null,this.lastToggleIsShow=!0;for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},_dispatchEvent:function(e){this.eventBus.dispatch("outlineloaded",{source:this,outlineCount:e})},_bindLink:function(e,n){if(n.url)return void t.addLinkAttributes(e,{url:n.url});var i=this.linkService;e.href=i.getDestinationHash(n.dest),e.onclick=function(e){return i.navigateTo(n.dest),!1}},_setStyles:function(e,t){var n="";t.bold&&(n+="font-weight: bold;"),t.italic&&(n+="font-style: italic;"),n&&e.setAttribute("style",n)},_addToggleButton:function(e){var t=document.createElement("div");t.className="outlineItemToggler",t.onclick=function(n){if(n.stopPropagation(),t.classList.toggle("outlineItemsHidden"),n.shiftKey){var i=!t.classList.contains("outlineItemsHidden");this._toggleOutlineItem(e,i)}}.bind(this),e.insertBefore(t,e.firstChild)},_toggleOutlineItem:function(e,t){this.lastToggleIsShow=t;for(var n=e.querySelectorAll(".outlineItemToggler"),i=0,r=n.length;r>i;++i)n[i].classList[t?"remove":"add"]("outlineItemsHidden")},toggleOutlineTree:function(){this.outline&&this._toggleOutlineItem(this.container,!this.lastToggleIsShow)},render:function(e){var i=e&&e.outline||null,r=0;if(this.outline&&this.reset(),this.outline=i,!i)return void this._dispatchEvent(r);for(var a=document.createDocumentFragment(),s=[{parent:a,items:this.outline}],o=!1;s.length>0;)for(var l=s.shift(),c=0,h=l.items.length;h>c;c++){var u=l.items[c],d=document.createElement("div");d.className="outlineItem";var f=document.createElement("a");if(this._bindLink(f,u),this._setStyles(f,u),f.textContent=t.removeNullCharacters(u.title)||n,d.appendChild(f),u.items.length>0){o=!0,this._addToggleButton(d);var p=document.createElement("div");p.className="outlineItems",d.appendChild(p),s.push({parent:p,items:u.items})}l.parent.appendChild(d),r++}o&&this.container.classList.add("outlineWithDeepNesting"),this.container.appendChild(a),this._dispatchEvent(r)}},e}();e.PDFOutlineViewer=i}),function(e,t){t(e.pdfjsWebPDFSidebar={},e.pdfjsWebPDFRenderingQueue)}(this,function(e,t){var n=t.RenderingStates,i={NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3},r=function(){function e(e){this.isOpen=!1,this.active=i.THUMBS,this.isInitialViewSet=!1,this.onToggled=null,this.pdfViewer=e.pdfViewer,this.pdfThumbnailViewer=e.pdfThumbnailViewer,this.pdfOutlineViewer=e.pdfOutlineViewer,this.mainContainer=e.mainContainer,this.outerContainer=e.outerContainer,this.eventBus=e.eventBus,this.toggleButton=e.toggleButton,this.thumbnailButton=e.thumbnailButton,this.outlineButton=e.outlineButton,this.attachmentsButton=e.attachmentsButton,this.thumbnailView=e.thumbnailView,this.outlineView=e.outlineView,this.attachmentsView=e.attachmentsView,this._addEventListeners()}return e.prototype={reset:function(){this.isInitialViewSet=!1,this.close(),this.switchView(i.THUMBS),this.outlineButton.disabled=!1,this.attachmentsButton.disabled=!1},get visibleView(){return this.isOpen?this.active:i.NONE},get isThumbnailViewVisible(){return this.isOpen&&this.active===i.THUMBS},get isOutlineViewVisible(){return this.isOpen&&this.active===i.OUTLINE},get isAttachmentsViewVisible(){return this.isOpen&&this.active===i.ATTACHMENTS},setInitialView:function(e){if(!this.isInitialViewSet){if(this.isInitialViewSet=!0,this.isOpen&&e===i.NONE)return void this._dispatchEvent();var t=e===this.visibleView;this.switchView(e,!0),t&&this._dispatchEvent()}},switchView:function(e,t){if(e===i.NONE)return void this.close();var n=e!==this.active,r=!1;switch(e){case i.THUMBS:this.thumbnailButton.classList.add("toggled"),this.outlineButton.classList.remove("toggled"),this.attachmentsButton.classList.remove("toggled"),this.thumbnailView.classList.remove("hidden"),this.outlineView.classList.add("hidden"),this.attachmentsView.classList.add("hidden"),this.isOpen&&n&&(this._updateThumbnailViewer(),r=!0);break;case i.OUTLINE:if(this.outlineButton.disabled)return;this.thumbnailButton.classList.remove("toggled"),this.outlineButton.classList.add("toggled"),this.attachmentsButton.classList.remove("toggled"),this.thumbnailView.classList.add("hidden"),this.outlineView.classList.remove("hidden"),this.attachmentsView.classList.add("hidden");break;case i.ATTACHMENTS:if(this.attachmentsButton.disabled)return;this.thumbnailButton.classList.remove("toggled"),this.outlineButton.classList.remove("toggled"),this.attachmentsButton.classList.add("toggled"),this.thumbnailView.classList.add("hidden"),this.outlineView.classList.add("hidden"),this.attachmentsView.classList.remove("hidden");break;default:return void console.error('PDFSidebar_switchView: "'+e+'" is an unsupported value.')}return this.active=0|e,t&&!this.isOpen?void this.open():(r&&this._forceRendering(),void(n&&this._dispatchEvent()))},open:function(){this.isOpen||(this.isOpen=!0,this.toggleButton.classList.add("toggled"),this.outerContainer.classList.add("sidebarMoving"),this.outerContainer.classList.add("sidebarOpen"),this.active===i.THUMBS&&this._updateThumbnailViewer(),this._forceRendering(),this._dispatchEvent())},close:function(){this.isOpen&&(this.isOpen=!1,this.toggleButton.classList.remove("toggled"),this.outerContainer.classList.add("sidebarMoving"),this.outerContainer.classList.remove("sidebarOpen"),this._forceRendering(),this._dispatchEvent())},toggle:function(){this.isOpen?this.close():this.open()},_dispatchEvent:function(){this.eventBus.dispatch("sidebarviewchanged",{source:this,view:this.visibleView})},_forceRendering:function(){this.onToggled?this.onToggled():(this.pdfViewer.forceRendering(),this.pdfThumbnailViewer.forceRendering())},_updateThumbnailViewer:function(){for(var e=this.pdfViewer,t=this.pdfThumbnailViewer,i=e.pagesCount,r=0;i>r;r++){var a=e.getPageView(r);if(a&&a.renderingState===n.FINISHED){var s=t.getThumbnail(r);s.setImage(a)}}t.scrollThumbnailIntoView(e.currentPageNumber)},_addEventListeners:function(){var e=this;e.mainContainer.addEventListener("transitionend",function(t){t.target===this&&e.outerContainer.classList.remove("sidebarMoving")}),e.thumbnailButton.addEventListener("click",function(){e.switchView(i.THUMBS)}),e.outlineButton.addEventListener("click",function(){e.switchView(i.OUTLINE)}),e.outlineButton.addEventListener("dblclick",function(){e.pdfOutlineViewer.toggleOutlineTree()}),e.attachmentsButton.addEventListener("click",function(){e.switchView(i.ATTACHMENTS)}),e.eventBus.on("outlineloaded",function(t){var n=t.outlineCount;e.outlineButton.disabled=!n,n||e.active!==i.OUTLINE||e.switchView(i.THUMBS)}),e.eventBus.on("attachmentsloaded",function(t){var n=t.attachmentsCount;e.attachmentsButton.disabled=!n,n||e.active!==i.ATTACHMENTS||e.switchView(i.THUMBS)}),e.eventBus.on("presentationmodechanged",function(t){t.active||t.switchInProgress||!e.isThumbnailViewVisible||e._updateThumbnailViewer()})}},e}();e.SidebarView=i,e.PDFSidebar=r}),function(e,t){t(e.pdfjsWebUIUtils={},e.pdfjsWebPDFJS)}(this,function(e,t){function n(e){var t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,i=t/n;return{sx:i,sy:i,scaled:1!==i}}function i(e,t,n){var i=e.offsetParent;if(!i)return void console.error("offsetParent is not set -- cannot scroll");for(var r=n||!1,a=e.offsetTop+e.clientTop,s=e.offsetLeft+e.clientLeft;i.clientHeight===i.scrollHeight||r&&"hidden"===getComputedStyle(i).overflow;)if(i.dataset._scaleY&&(a/=i.dataset._scaleY,s/=i.dataset._scaleX),a+=i.offsetTop,s+=i.offsetLeft,i=i.offsetParent,!i)return;t&&(void 0!==t.top&&(a+=t.top),void 0!==t.left&&(s+=t.left,i.scrollLeft=s)),i.scrollTop=a}function r(e,t){var n=function(n){r||(r=window.requestAnimationFrame(function(){r=null;var n=e.scrollTop,a=i.lastY;n!==a&&(i.down=n>a),i.lastY=n,t(i)}))},i={down:!0,lastY:e.scrollTop,_eventHandler:n},r=null;return e.addEventListener("scroll",n,!0),i}function a(e){for(var t=e.split("&"),n={},i=0,r=t.length;r>i;++i){var a=t[i].split("="),s=a[0].toLowerCase(),o=a.length>1?a[1]:null;n[decodeURIComponent(s)]=decodeURIComponent(o)}return n}function s(e,t){var n=0,i=e.length-1;if(0===e.length||!t(e[i]))return e.length;if(t(e[n]))return n;for(;i>n;){var r=n+i>>1,a=e[r];t(a)?i=r:n=r+1}return n}function o(e){if(Math.floor(e)===e)return[e,1];var t=1/e,n=8;if(t>n)return[1,n];if(Math.floor(t)===t)return[1,t];for(var i=e>1?t:e,r=0,a=1,s=1,o=1;;){var l=r+s,c=a+o;if(c>n)break;l/c>=i?(s=l,o=c):(r=l,a=c)}return s/o-i>i-r/a?i===e?[r,a]:[a,r]:i===e?[s,o]:[o,s]}function l(e,t){var n=e%t;return 0===n?e:Math.round(e-n+t)}function c(e,t,n){function i(e){var t=e.div,n=t.offsetTop+t.clientTop+t.clientHeight;return n>f}for(var r,a,o,l,c,h,u,d,f=e.scrollTop,p=f+e.clientHeight,g=e.scrollLeft,m=g+e.clientWidth,v=[],b=0===t.length?0:s(t,i),w=b,A=t.length;A>w&&(r=t[w],a=r.div,o=a.offsetTop+a.clientTop,l=a.clientHeight,!(o>p));w++)u=a.offsetLeft+a.clientLeft,d=a.clientWidth,g>u+d||u>m||(c=Math.max(0,f-o)+Math.max(0,o+l-p),h=100*(l-c)/l|0,v.push({id:r.id,x:u,y:o,view:r,percent:h}));var y=v[0],S=v[v.length-1];return n&&v.sort(function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id}),{first:y,last:S,views:v}}function h(e){e.preventDefault()}function u(e){var t=/^(?:([^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,n=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=t.exec(e),r=n.exec(i[1])||n.exec(i[2])||n.exec(i[3]);if(r&&(r=r[0],-1!==r.indexOf("%")))try{r=n.exec(decodeURIComponent(r))[0]}catch(a){}return r||"document.pdf"}var d=96/72,f="auto",p=1,g=0,m=1.25,v=40,b=5,w=document.mozL10n||document.webL10n,A=t.PDFJS;A.disableFullscreen=void 0===A.disableFullscreen?!1:A.disableFullscreen,A.useOnlyCssZoom=void 0===A.useOnlyCssZoom?!1:A.useOnlyCssZoom,A.maxCanvasPixels=void 0===A.maxCanvasPixels?16777216:A.maxCanvasPixels,A.disableHistory=void 0===A.disableHistory?!1:A.disableHistory,A.disableTextLayer=void 0===A.disableTextLayer?!1:A.disableTextLayer,A.ignoreCurrentPositionOnZoom=void 0===A.ignoreCurrentPositionOnZoom?!1:A.ignoreCurrentPositionOnZoom,A.locale=void 0===A.locale?navigator.language:A.locale;var y=function(){function e(){this._listeners=Object.create(null)}return e.prototype={on:function(e,t){var n=this._listeners[e];n||(n=[],this._listeners[e]=n),n.push(t)},off:function(e,t){var n,i=this._listeners[e];!i||(n=i.indexOf(t))<0||i.splice(n,1)},dispatch:function(e){var t=this._listeners[e];if(t&&0!==t.length){var n=Array.prototype.slice.call(arguments,1);t.slice(0).forEach(function(e){e.apply(null,n)})}}},e}(),S=function(){function e(e,t,n){return Math.min(Math.max(e,t),n)}function t(e,t){this.visible=!0,this.div=document.querySelector(e+" .progress"),this.bar=this.div.parentNode,this.height=t.height||100,this.width=t.width||100,this.units=t.units||"%",this.div.style.height=this.height+this.units,this.percent=0}return t.prototype={updateBar:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var e=this.width*this._percent/100;this.div.style.width=e+this.units},get percent(){return this._percent},set percent(t){this._indeterminate=isNaN(t),this._percent=e(t,0,100),this.updateBar()},setWidth:function(e){if(e){var t=e.parentNode,n=t.offsetWidth-e.offsetWidth;n>0&&this.bar.setAttribute("style","width: calc(100% - "+n+"px);")}},hide:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))},show:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},t}();e.CSS_UNITS=d,e.DEFAULT_SCALE_VALUE=f,e.DEFAULT_SCALE=p,e.UNKNOWN_SCALE=g,e.MAX_AUTO_SCALE=m,e.SCROLLBAR_PADDING=v,e.VERTICAL_PADDING=b,e.mozL10n=w,e.EventBus=y,e.ProgressBar=S,e.getPDFFileNameFromURL=u,e.noContextMenuHandler=h,e.parseQueryString=a,e.getVisibleElements=c,e.roundToDivide=l,e.approximateFraction=o,e.getOutputScale=n,e.scrollIntoView=i,e.watchScroll=r,e.binarySearchFirstItem=s}),function(e,t){t(e.pdfjsWebDOMEvents={},e.pdfjsWebUIUtils)}(this,function(e,t){function n(e){e.on("documentload",function(){var e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),e.on("pagerendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)}),e.on("textlayerrendered",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)}),e.on("pagechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("pagechange",!0,!0,window,0),t.updateInProgress=e.updateInProgress,
t.pageNumber=e.pageNumber,t.previousPageNumber=e.previousPageNumber,e.source.container.dispatchEvent(t)}),e.on("pagesinit",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)}),e.on("pagesloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)}),e.on("scalechange",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("scalechange",!0,!0,window,0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)}),e.on("updateviewarea",function(e){var t=document.createEvent("UIEvents");t.initUIEvent("updateviewarea",!0,!0,window,0),t.location=e.location,e.source.container.dispatchEvent(t)}),e.on("find",function(e){if(e.source!==window){var t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}}),e.on("attachmentsloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)}),e.on("sidebarviewchanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)}),e.on("pagemode",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)}),e.on("namedaction",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)}),e.on("presentationmodechanged",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)}),e.on("outlineloaded",function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)})}function i(){return a?a:(a=new r,n(a),a)}var r=t.EventBus,a=null;e.attachDOMEventsToEventBus=n,e.getGlobalEventBus=i}),function(e,t){t(e.pdfjsWebPasswordPrompt={},e.pdfjsWebUIUtils,e.pdfjsWebOverlayManager,e.pdfjsWebPDFJS)}(this,function(e,t,n,i){var r=t.mozL10n,a=n.OverlayManager,s=function(){function e(e){this.overlayName=e.overlayName,this.container=e.container,this.label=e.label,this.input=e.input,this.submitButton=e.submitButton,this.cancelButton=e.cancelButton,this.updateCallback=null,this.reason=null,this.submitButton.addEventListener("click",this.verify.bind(this)),this.cancelButton.addEventListener("click",this.close.bind(this)),this.input.addEventListener("keydown",function(e){13===e.keyCode&&this.verify()}.bind(this)),a.register(this.overlayName,this.container,this.close.bind(this),!0)}return e.prototype={open:function(){a.open(this.overlayName).then(function(){this.input.type="password",this.input.focus();var e=r.get("password_label",null,"Enter the password to open this PDF file.");this.reason===i.PasswordResponses.INCORRECT_PASSWORD&&(e=r.get("password_invalid",null,"Invalid password. Please try again.")),this.label.textContent=e}.bind(this))},close:function(){a.close(this.overlayName).then(function(){this.input.value="",this.input.type=""}.bind(this))},verify:function(){var e=this.input.value;return e&&e.length>0?(this.close(),this.updateCallback(e)):void 0},setUpdateCallback:function(e,t){this.updateCallback=e,this.reason=t}},e}();e.PasswordPrompt=s}),function(e,t){t(e.pdfjsWebPDFDocumentProperties={},e.pdfjsWebUIUtils,e.pdfjsWebOverlayManager)}(this,function(e,t,n){var i=t.getPDFFileNameFromURL,r=t.mozL10n,a=n.OverlayManager,s=function(){function e(e){this.fields=e.fields,this.overlayName=e.overlayName,this.container=e.container,this.rawFileSize=0,this.url=null,this.pdfDocument=null,e.closeButton&&e.closeButton.addEventListener("click",this.close.bind(this)),this.dataAvailablePromise=new Promise(function(e){this.resolveDataAvailable=e}.bind(this)),a.register(this.overlayName,this.container,this.close.bind(this))}return e.prototype={open:function(){Promise.all([a.open(this.overlayName),this.dataAvailablePromise]).then(function(){this._getProperties()}.bind(this))},close:function(){a.close(this.overlayName)},setFileSize:function(e){e>0&&(this.rawFileSize=e)},setDocumentAndUrl:function(e,t){this.pdfDocument=e,this.url=t,this.resolveDataAvailable()},_getProperties:function(){a.active&&(this.pdfDocument.getDownloadInfo().then(function(e){e.length!==this.rawFileSize&&(this.setFileSize(e.length),this._updateUI(this.fields.fileSize,this._parseFileSize()))}.bind(this)),this.pdfDocument.getMetadata().then(function(e){var t={fileName:i(this.url),fileSize:this._parseFileSize(),title:e.info.Title,author:e.info.Author,subject:e.info.Subject,keywords:e.info.Keywords,creationDate:this._parseDate(e.info.CreationDate),modificationDate:this._parseDate(e.info.ModDate),creator:e.info.Creator,producer:e.info.Producer,version:e.info.PDFFormatVersion,pageCount:this.pdfDocument.numPages};for(var n in t)this._updateUI(this.fields[n],t[n])}.bind(this)))},_updateUI:function(e,t){e&&void 0!==t&&""!==t&&(e.textContent=t)},_parseFileSize:function(){var e=this.rawFileSize,t=e/1024;return t?1024>t?r.get("document_properties_kb",{size_kb:(+t.toPrecision(3)).toLocaleString(),size_b:e.toLocaleString()},"{{size_kb}} KB ({{size_b}} bytes)"):r.get("document_properties_mb",{size_mb:(+(t/1024).toPrecision(3)).toLocaleString(),size_b:e.toLocaleString()},"{{size_mb}} MB ({{size_b}} bytes)"):void 0},_parseDate:function(e){var t=e;if(void 0===t)return"";"D:"===t.substring(0,2)&&(t=t.substring(2));var n=parseInt(t.substring(0,4),10),i=parseInt(t.substring(4,6),10)-1,a=parseInt(t.substring(6,8),10),s=parseInt(t.substring(8,10),10),o=parseInt(t.substring(10,12),10),l=parseInt(t.substring(12,14),10),c=t.substring(14,15),h=parseInt(t.substring(15,17),10),u=parseInt(t.substring(18,20),10);"-"===c?(s+=h,o+=u):"+"===c&&(s-=h,o-=u);var d=new Date(Date.UTC(n,i,a,s,o,l)),f=d.toLocaleDateString(),p=d.toLocaleTimeString();return r.get("document_properties_date_string",{date:f,time:p},"{{date}}, {{time}}")}},e}();e.PDFDocumentProperties=s}),function(e,t){t(e.pdfjsWebPDFFindController={},e.pdfjsWebUIUtils)}(this,function(e,t,n){var i=t.scrollIntoView,r={FIND_FOUND:0,FIND_NOTFOUND:1,FIND_WRAPPED:2,FIND_PENDING:3},a=-50,s=-400,o={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},l=function(){function e(e){this.pdfViewer=e.pdfViewer||null,this.onUpdateResultsCount=null,this.onUpdateState=null,this.reset();var t=Object.keys(o).join("");this.normalizationRegex=new RegExp("["+t+"]","g")}return e.prototype={reset:function(){this.startedTextExtraction=!1,this.extractTextPromises=[],this.pendingFindMatches=Object.create(null),this.active=!1,this.pageContents=[],this.pageMatches=[],this.matchCount=0,this.selected={pageIdx:-1,matchIdx:-1},this.offset={pageIdx:null,matchIdx:null},this.pagesToSearch=null,this.resumePageIdx=null,this.state=null,this.dirtyMatch=!1,this.findTimeout=null,this.firstPagePromise=new Promise(function(e){this.resolveFirstPage=e}.bind(this))},normalize:function(e){return e.replace(this.normalizationRegex,function(e){return o[e]})},calcFindMatch:function(e){var t=this.normalize(this.pageContents[e]),n=this.normalize(this.state.query),i=this.state.caseSensitive,r=n.length;if(0!==r){i||(t=t.toLowerCase(),n=n.toLowerCase());for(var a=[],s=-r;;){if(s=t.indexOf(n,s+r),-1===s)break;a.push(s)}this.pageMatches[e]=a,this.updatePage(e),this.resumePageIdx===e&&(this.resumePageIdx=null,this.nextPageMatch()),a.length>0&&(this.matchCount+=a.length,this.updateUIResultsCount())}},extractText:function(){function e(n){r.pdfViewer.getPageTextContent(n).then(function(i){for(var a=i.items,s=[],o=0,l=a.length;l>o;o++)s.push(a[o].str);r.pageContents.push(s.join("")),t[n](n),n+1<r.pdfViewer.pagesCount&&e(n+1)})}if(!this.startedTextExtraction){this.startedTextExtraction=!0,this.pageContents=[];for(var t=[],n=this.pdfViewer.pagesCount,i=0;n>i;i++)this.extractTextPromises.push(new Promise(function(e){t.push(e)}));var r=this;e(0)}},executeCommand:function(e,t){null!==this.state&&"findagain"===e||(this.dirtyMatch=!0),this.state=t,this.updateUIState(r.FIND_PENDING),this.firstPagePromise.then(function(){this.extractText(),clearTimeout(this.findTimeout),"find"===e?this.findTimeout=setTimeout(this.nextMatch.bind(this),250):this.nextMatch()}.bind(this))},updatePage:function(e){this.selected.pageIdx===e&&this.pdfViewer.scrollPageIntoView(e+1);var t=this.pdfViewer.getPageView(e);t.textLayer&&t.textLayer.updateMatches()},nextMatch:function(){var e=this.state.findPrevious,t=this.pdfViewer.currentPageNumber-1,n=this.pdfViewer.pagesCount;if(this.active=!0,this.dirtyMatch){this.dirtyMatch=!1,this.selected.pageIdx=this.selected.matchIdx=-1,this.offset.pageIdx=t,this.offset.matchIdx=null,this.hadMatch=!1,this.resumePageIdx=null,this.pageMatches=[],this.matchCount=0;for(var i=this,a=0;n>a;a++)this.updatePage(a),a in this.pendingFindMatches||(this.pendingFindMatches[a]=!0,this.extractTextPromises[a].then(function(e){delete i.pendingFindMatches[e],i.calcFindMatch(e)}))}if(""===this.state.query)return void this.updateUIState(r.FIND_FOUND);if(!this.resumePageIdx){var s=this.offset;if(this.pagesToSearch=n,null!==s.matchIdx){var o=this.pageMatches[s.pageIdx].length;if(!e&&s.matchIdx+1<o||e&&s.matchIdx>0)return this.hadMatch=!0,s.matchIdx=e?s.matchIdx-1:s.matchIdx+1,void this.updateMatch(!0);this.advanceOffsetPage(e)}this.nextPageMatch()}},matchesReady:function(e){var t=this.offset,n=e.length,i=this.state.findPrevious;return n?(this.hadMatch=!0,t.matchIdx=i?n-1:0,this.updateMatch(!0),!0):(this.advanceOffsetPage(i),t.wrapped&&(t.matchIdx=null,this.pagesToSearch<0)?(this.updateMatch(!1),!0):!1)},updateMatchPosition:function(e,t,n,r,o){if(this.selected.matchIdx===t&&this.selected.pageIdx===e){var l={top:a,left:s};i(n[r],l,!0)}},nextPageMatch:function(){null!==this.resumePageIdx&&console.error("There can only be one pending page.");do{var e=this.offset.pageIdx,t=this.pageMatches[e];if(!t){this.resumePageIdx=e;break}}while(!this.matchesReady(t))},advanceOffsetPage:function(e){var t=this.offset,n=this.extractTextPromises.length;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this.pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)},updateMatch:function(e){var t=r.FIND_NOTFOUND,n=this.offset.wrapped;if(this.offset.wrapped=!1,e){var i=this.selected.pageIdx;this.selected.pageIdx=this.offset.pageIdx,this.selected.matchIdx=this.offset.matchIdx,t=n?r.FIND_WRAPPED:r.FIND_FOUND,-1!==i&&i!==this.selected.pageIdx&&this.updatePage(i)}this.updateUIState(t,this.state.findPrevious),-1!==this.selected.pageIdx&&this.updatePage(this.selected.pageIdx)},updateUIResultsCount:function(){this.onUpdateResultsCount&&this.onUpdateResultsCount(this.matchCount)},updateUIState:function(e,t){this.onUpdateState&&this.onUpdateState(e,t,this.matchCount)}},e}();e.FindStates=r,e.PDFFindController=l}),function(e,t){t(e.pdfjsWebPDFThumbnailView={},e.pdfjsWebUIUtils,e.pdfjsWebPDFRenderingQueue)}(this,function(e,t,n){var i=t.mozL10n,r=t.getOutputScale,a=n.RenderingStates,s=98,o=1,l=function(){function e(e,n){var i=t.tempImageCache;i||(i=document.createElement("canvas"),t.tempImageCache=i),i.width=e,i.height=n,i.mozOpaque=!0;var r=i.getContext("2d",{alpha:!1});return r.save(),r.fillStyle="rgb(255, 255, 255)",r.fillRect(0,0,e,n),r.restore(),i}function t(e){var t=e.container,n=e.id,r=e.defaultViewport,l=e.linkService,c=e.renderingQueue,h=e.disableCanvasToImageConversion||!1;this.id=n,this.renderingId="thumbnail"+n,this.pdfPage=null,this.rotation=0,this.viewport=r,this.pdfPageRotate=r.rotation,this.linkService=l,this.renderingQueue=c,this.resume=null,this.renderingState=a.INITIAL,this.disableCanvasToImageConversion=h,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasWidth=s,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth;var u=document.createElement("a");u.href=l.getAnchorUrl("#page="+n),u.title=i.get("thumb_page_title",{page:n},"Page {{page}}"),u.onclick=function(){return l.page=n,!1};var d=document.createElement("div");d.id="thumbnailContainer"+n,d.className="thumbnail",this.div=d,1===n&&d.classList.add("selected");var f=document.createElement("div");f.className="thumbnailSelectionRing";var p=2*o;f.style.width=this.canvasWidth+p+"px",f.style.height=this.canvasHeight+p+"px",this.ring=f,d.appendChild(f),u.appendChild(d),t.appendChild(u)}return t.prototype={setPdfPage:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport(1,t),this.reset()},reset:function(){this.renderTask&&this.renderTask.cancel(),this.resume=null,this.renderingState=a.INITIAL,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth,this.div.removeAttribute("data-loaded");for(var e=this.ring,t=e.childNodes,n=t.length-1;n>=0;n--)e.removeChild(t[n]);var i=2*o;e.style.width=this.canvasWidth+i+"px",e.style.height=this.canvasHeight+i+"px",this.canvas&&(this.canvas.width=0,this.canvas.height=0,delete this.canvas),this.image&&(this.image.removeAttribute("src"),delete this.image)},update:function(e){"undefined"!=typeof e&&(this.rotation=e);var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:1,rotation:t}),this.reset()},_getPageDrawContext:function(e){var t=document.createElement("canvas");this.canvas=t,t.mozOpaque=!0;var n=t.getContext("2d",{alpha:!1}),i=r(n);return t.width=this.canvasWidth*i.sx|0,t.height=this.canvasHeight*i.sy|0,t.style.width=this.canvasWidth+"px",t.style.height=this.canvasHeight+"px",!e&&i.scaled&&n.scale(i.sx,i.sy),n},_convertCanvasToImage:function(){if(this.canvas&&this.renderingState===a.FINISHED){var e=this.renderingId,t="thumbnailImage",n=i.get("thumb_page_canvas",{page:this.id},"Thumbnail of Page {{page}}");if(this.disableCanvasToImageConversion)return this.canvas.id=e,this.canvas.className=t,this.canvas.setAttribute("aria-label",n),this.div.setAttribute("data-loaded",!0),void this.ring.appendChild(this.canvas);var r=document.createElement("img");r.id=e,r.className=t,r.setAttribute("aria-label",n),r.style.width=this.canvasWidth+"px",r.style.height=this.canvasHeight+"px",r.src=this.canvas.toDataURL(),this.image=r,this.div.setAttribute("data-loaded",!0),this.ring.appendChild(r),this.canvas.width=0,this.canvas.height=0,delete this.canvas}},draw:function(){function e(e){return h===r.renderTask&&(r.renderTask=null),"cancelled"===e?void n(e):(r.renderingState=a.FINISHED,r._convertCanvasToImage(),void(e?n(e):t(void 0)))}if(this.renderingState!==a.INITIAL)return console.error("Must be in new state before drawing"),Promise.resolve(void 0);this.renderingState=a.RUNNING;var t,n,i=new Promise(function(e,i){t=e,n=i}),r=this,s=this._getPageDrawContext(),o=this.viewport.clone({scale:this.scale}),l=function(e){return r.renderingQueue.isHighestPriority(r)?void e():(r.renderingState=a.PAUSED,void(r.resume=function(){r.renderingState=a.RUNNING,e()}))},c={canvasContext:s,viewport:o},h=this.renderTask=this.pdfPage.render(c);return h.onContinue=l,h.promise.then(function(){e(null)},function(t){e(t)}),i},setImage:function(t){if(this.renderingState===a.INITIAL){var n=t.canvas;if(n){this.pdfPage||this.setPdfPage(t.pdfPage),this.renderingState=a.FINISHED;var i=this._getPageDrawContext(!0),r=i.canvas;if(n.width<=2*r.width)return i.drawImage(n,0,0,n.width,n.height,0,0,r.width,r.height),void this._convertCanvasToImage();for(var s=3,o=r.width<<s,l=r.height<<s,c=e(o,l),h=c.getContext("2d");o>n.width||l>n.height;)o>>=1,l>>=1;for(h.drawImage(n,0,0,n.width,n.height,0,0,o,l);o>2*r.width;)h.drawImage(c,0,0,o,l,0,0,o>>1,l>>1),o>>=1,l>>=1;i.drawImage(c,0,0,o,l,0,0,r.width,r.height),this._convertCanvasToImage()}}}},t}();l.tempImageCache=null,e.PDFThumbnailView=l}),function(e,t){t(e.pdfjsWebSecondaryToolbar={},e.pdfjsWebUIUtils)}(this,function(e,t){var n=t.SCROLLBAR_PADDING,i=t.mozL10n,r={opened:!1,previousContainerHeight:null,newContainerHeight:null,initialize:function(e,t){this.eventBus=t,this.toolbar=e.toolbar,this.buttonContainer=this.toolbar.firstElementChild,this.toggleButton=e.toggleButton,this.presentationModeButton=e.presentationModeButton,this.openFile=e.openFile,this.print=e.print,this.download=e.download,this.viewBookmark=e.viewBookmark,this.firstPage=e.firstPage,this.lastPage=e.lastPage,this.pageRotateCw=e.pageRotateCw,this.pageRotateCcw=e.pageRotateCcw,this.toggleHandTool=e.toggleHandTool,this.documentPropertiesButton=e.documentPropertiesButton;var n=[{element:this.toggleButton,handler:this.toggle},{element:this.presentationModeButton,handler:this.presentationModeClick},{element:this.openFile,handler:this.openFileClick},{element:this.print,handler:this.printClick},{element:this.download,handler:this.downloadClick},{element:this.viewBookmark,handler:this.viewBookmarkClick},{element:this.firstPage,handler:this.firstPageClick},{element:this.lastPage,handler:this.lastPageClick},{element:this.pageRotateCw,handler:this.pageRotateCwClick},{element:this.pageRotateCcw,handler:this.pageRotateCcwClick},{element:this.toggleHandTool,handler:this.toggleHandToolClick},{element:this.documentPropertiesButton,handler:this.documentPropertiesClick}];for(var r in n){var a=n[r].element;a&&a.addEventListener("click",n[r].handler.bind(this))}var s=!1;this.eventBus.on("handtoolchanged",function(e){s!==e.isActive&&(s=e.isActive,s?(this.toggleHandTool.title=i.get("hand_tool_disable.title",null,"Disable hand tool"),this.toggleHandTool.firstElementChild.textContent=i.get("hand_tool_disable_label",null,"Disable hand tool")):(this.toggleHandTool.title=i.get("hand_tool_enable.title",null,"Enable hand tool"),this.toggleHandTool.firstElementChild.textContent=i.get("hand_tool_enable_label",null,"Enable hand tool")))}.bind(this))},presentationModeClick:function(e){this.eventBus.dispatch("presentationmode"),this.close()},openFileClick:function(e){this.eventBus.dispatch("openfile"),this.close()},printClick:function(e){this.eventBus.dispatch("print"),this.close()},downloadClick:function(e){this.eventBus.dispatch("download"),this.close()},viewBookmarkClick:function(e){this.close()},firstPageClick:function(e){this.eventBus.dispatch("firstpage"),this.close()},lastPageClick:function(e){this.eventBus.dispatch("lastpage"),this.close()},pageRotateCwClick:function(e){this.eventBus.dispatch("rotatecw")},pageRotateCcwClick:function(e){this.eventBus.dispatch("rotateccw")},toggleHandToolClick:function(e){this.eventBus.dispatch("togglehandtool"),this.close()},documentPropertiesClick:function(e){this.eventBus.dispatch("documentproperties"),this.close()},setMaxHeight:function(e){e&&this.buttonContainer&&(this.newContainerHeight=e.clientHeight,this.previousContainerHeight!==this.newContainerHeight&&(this.buttonContainer.setAttribute("style","max-height: "+(this.newContainerHeight-n)+"px;"),this.previousContainerHeight=this.newContainerHeight))},open:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.toolbar.classList.remove("hidden"))},close:function(e){this.opened&&(e&&!this.toolbar.contains(e)||(this.opened=!1,this.toolbar.classList.add("hidden"),this.toggleButton.classList.remove("toggled")))},toggle:function(){this.opened?this.close():this.open()}};e.SecondaryToolbar=r}),function(e,t){t(e.pdfjsWebPDFFindBar={},e.pdfjsWebUIUtils,e.pdfjsWebPDFFindController)}(this,function(e,t,n){var i=t.mozL10n,r=n.FindStates,a=function(){function e(e){if(this.opened=!1,this.bar=e.bar||null,this.toggleButton=e.toggleButton||null,this.findField=e.findField||null,this.highlightAll=e.highlightAllCheckbox||null,this.caseSensitive=e.caseSensitiveCheckbox||null,this.findMsg=e.findMsg||null,this.findResultsCount=e.findResultsCount||null,this.findStatusIcon=e.findStatusIcon||null,this.findPreviousButton=e.findPreviousButton||null,this.findNextButton=e.findNextButton||null,this.findController=e.findController||null,this.eventBus=e.eventBus,null===this.findController)throw new Error("PDFFindBar cannot be used without a PDFFindController instance.");var t=this;this.toggleButton.addEventListener("click",function(){t.toggle()}),this.findField.addEventListener("input",function(){t.dispatchEvent("")}),this.bar.addEventListener("keydown",function(e){switch(e.keyCode){case 13:e.target===t.findField&&t.dispatchEvent("again",e.shiftKey);break;case 27:t.close()}}),this.findPreviousButton.addEventListener("click",function(){t.dispatchEvent("again",!0)}),this.findNextButton.addEventListener("click",function(){t.dispatchEvent("again",!1)}),this.highlightAll.addEventListener("click",function(){t.dispatchEvent("highlightallchange")}),this.caseSensitive.addEventListener("click",function(){t.dispatchEvent("casesensitivitychange")})}return e.prototype={reset:function(){this.updateUIState()},dispatchEvent:function(e,t){this.eventBus.dispatch("find",{source:this,type:e,query:this.findField.value,caseSensitive:this.caseSensitive.checked,highlightAll:this.highlightAll.checked,findPrevious:t})},updateUIState:function(e,t,n){var a=!1,s="",o="";switch(e){case r.FIND_FOUND:break;case r.FIND_PENDING:o="pending";break;case r.FIND_NOTFOUND:s=i.get("find_not_found",null,"Phrase not found"),a=!0;break;case r.FIND_WRAPPED:s=t?i.get("find_reached_top",null,"Reached top of document, continued from bottom"):i.get("find_reached_bottom",null,"Reached end of document, continued from top")}a?this.findField.classList.add("notFound"):this.findField.classList.remove("notFound"),this.findField.setAttribute("data-status",o),this.findMsg.textContent=s,this.updateResultsCount(n)},updateResultsCount:function(e){if(this.findResultsCount){if(!e)return void this.findResultsCount.classList.add("hidden");this.findResultsCount.textContent=e.toLocaleString(),this.findResultsCount.classList.remove("hidden")}},open:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden")),this.findField.select(),this.findField.focus()},close:function(){this.opened&&(this.opened=!1,this.toggleButton.classList.remove("toggled"),this.bar.classList.add("hidden"),this.findController.active=!1)},toggle:function(){this.opened?this.close():this.open()}},e}();e.PDFFindBar=a}),function(e,t){t(e.pdfjsWebPDFHistory={},e.pdfjsWebDOMEvents)}(this,function(e,t){function n(e){this.linkService=e.linkService,this.eventBus=e.eventBus||t.getGlobalEventBus(),this.initialized=!1,this.initialDestination=null,this.initialBookmark=null}n.prototype={initialize:function(e){function t(){a.previousHash=window.location.hash.slice(1),a._pushToHistory({hash:a.previousHash},!1,!0),a._updatePreviousBookmark()}function n(e,t){function n(){window.removeEventListener("popstate",n),window.addEventListener("popstate",i),a._pushToHistory(e,!1,!0),history.forward()}function i(){window.removeEventListener("popstate",i),a.allowHashChange=!0,a.historyUnlocked=!0,t()}a.historyUnlocked=!1,a.allowHashChange=!1,window.addEventListener("popstate",n),history.back()}function i(){var e=a._getPreviousParams(null,!0);if(e){var t=!a.current.dest&&a.current.hash!==a.previousHash;a._pushToHistory(e,!1,t),a._updatePreviousBookmark()}window.removeEventListener("beforeunload",i,!1)}this.initialized=!0,this.reInitialized=!1,this.allowHashChange=!0,this.historyUnlocked=!0,this.isViewerInPresentationMode=!1,this.previousHash=window.location.hash.substring(1),this.currentBookmark="",this.currentPage=0,this.updatePreviousBookmark=!1,this.previousBookmark="",this.previousPage=0,this.nextHashParam="",this.fingerprint=e,this.currentUid=this.uid=0,this.current={};var r=window.history.state;this._isStateObjectDefined(r)?(r.target.dest?this.initialDestination=r.target.dest:this.initialBookmark=r.target.hash,this.currentUid=r.uid,this.uid=r.uid+1,this.current=r.target):(r&&r.fingerprint&&this.fingerprint!==r.fingerprint&&(this.reInitialized=!0),this._pushOrReplaceState({fingerprint:this.fingerprint},!0));var a=this;window.addEventListener("popstate",function(e){if(a.historyUnlocked){if(e.state)return void a._goTo(e.state);if(0===a.uid){var i=a.previousHash&&a.currentBookmark&&a.previousHash!==a.currentBookmark?{hash:a.currentBookmark,page:a.currentPage}:{page:1};n(i,function(){t()})}else t()}},!1),window.addEventListener("beforeunload",i,!1),window.addEventListener("pageshow",function(e){window.addEventListener("beforeunload",i,!1)},!1),a.eventBus.on("presentationmodechanged",function(e){a.isViewerInPresentationMode=e.active})},clearHistoryState:function(){this._pushOrReplaceState(null,!0)},_isStateObjectDefined:function(e){return!!(e&&e.uid>=0&&e.fingerprint&&this.fingerprint===e.fingerprint&&e.target&&e.target.hash)},_pushOrReplaceState:function(e,t){t?window.history.replaceState(e,"",document.URL):window.history.pushState(e,"",document.URL)},get isHashChangeUnlocked(){return this.initialized?this.allowHashChange:!0},_updatePreviousBookmark:function(){this.updatePreviousBookmark&&this.currentBookmark&&this.currentPage&&(this.previousBookmark=this.currentBookmark,this.previousPage=this.currentPage,this.updatePreviousBookmark=!1)},updateCurrentBookmark:function(e,t){this.initialized&&(this.currentBookmark=e.substring(1),this.currentPage=0|t,this._updatePreviousBookmark())},updateNextHashParam:function(e){this.initialized&&(this.nextHashParam=e)},push:function(e,t){if(this.initialized&&this.historyUnlocked){if(e.dest&&!e.hash&&(e.hash=this.current.hash&&this.current.dest&&this.current.dest===e.dest?this.current.hash:this.linkService.getDestinationHash(e.dest).split("#")[1]),e.page&&(e.page|=0),t){var n=window.history.state.target;return n||(this._pushToHistory(e,!1),this.previousHash=window.location.hash.substring(1)),this.updatePreviousBookmark=!this.nextHashParam,void(n&&this._updatePreviousBookmark())}if(this.nextHashParam){if(this.nextHashParam===e.hash)return this.nextHashParam=null,void(this.updatePreviousBookmark=!0);this.nextHashParam=null}e.hash?this.current.hash?this.current.hash!==e.hash?this._pushToHistory(e,!0):(!this.current.page&&e.page&&this._pushToHistory(e,!1,!0),this.updatePreviousBookmark=!0):this._pushToHistory(e,!0):this.current.page&&e.page&&this.current.page!==e.page&&this._pushToHistory(e,!0)}},_getPreviousParams:function(e,t){if(!this.currentBookmark||!this.currentPage)return null;if(this.updatePreviousBookmark&&(this.updatePreviousBookmark=!1),this.uid>0&&(!this.previousBookmark||!this.previousPage))return null;if(!this.current.dest&&!e||t){if(this.previousBookmark===this.currentBookmark)return null}else{if(!this.current.page&&!e)return null;if(this.previousPage===this.currentPage)return null}var n={hash:this.currentBookmark,page:this.currentPage};return this.isViewerInPresentationMode&&(n.hash=null),n},_stateObj:function(e){return{fingerprint:this.fingerprint,uid:this.uid,target:e}},_pushToHistory:function(e,t,n){if(this.initialized){if(!e.hash&&e.page&&(e.hash="page="+e.page),t&&!n){var i=this._getPreviousParams();if(i){var r=!this.current.dest&&this.current.hash!==this.previousHash;this._pushToHistory(i,!1,r)}}this._pushOrReplaceState(this._stateObj(e),n||0===this.uid),this.currentUid=this.uid++,this.current=e,this.updatePreviousBookmark=!0}},_goTo:function(e){if(this.initialized&&this.historyUnlocked&&this._isStateObjectDefined(e)){if(!this.reInitialized&&e.uid<this.currentUid){var t=this._getPreviousParams(!0);if(t)return this._pushToHistory(this.current,!1),this._pushToHistory(t,!1),this.currentUid=e.uid,void window.history.back()}this.historyUnlocked=!1,e.target.dest?this.linkService.navigateTo(e.target.dest):this.linkService.setHash(e.target.hash),this.currentUid=e.uid,e.uid>this.uid&&(this.uid=e.uid),this.current=e.target,this.updatePreviousBookmark=!0;var n=window.location.hash.substring(1);this.previousHash!==n&&(this.allowHashChange=!1),this.previousHash=n,this.historyUnlocked=!0}},back:function(){this.go(-1)},forward:function(){this.go(1)},go:function(e){if(this.initialized&&this.historyUnlocked){var t=window.history.state;-1===e&&t&&t.uid>0?window.history.back():1===e&&t&&t.uid<this.uid-1&&window.history.forward()}}},e.PDFHistory=n}),function(e,t){t(e.pdfjsWebPDFLinkService={},e.pdfjsWebUIUtils,e.pdfjsWebDOMEvents)}(this,function(e,t,n){var i=t.parseQueryString,r=function(){function e(e){e=e||{},this.eventBus=e.eventBus||n.getGlobalEventBus(),this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return e.prototype={setDocument:function(e,t){this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)},setViewer:function(e){this.pdfViewer=e},setHistory:function(e){this.pdfHistory=e},get pagesCount(){return this.pdfDocument.numPages},get page(){return this.pdfViewer.currentPageNumber},set page(e){this.pdfViewer.currentPageNumber=e},navigateTo:function(e){var t,n="",i=this,r=function(t){var a=t instanceof Object?i._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;a?(a>i.pagesCount&&(a=i.pagesCount),i.pdfViewer.scrollPageIntoView(a,e),i.pdfHistory&&i.pdfHistory.push({dest:e,hash:n,page:a})):i.pdfDocument.getPageIndex(t).then(function(e){var n=e+1,a=t.num+" "+t.gen+" R";i._pagesRefCache[a]=n,r(t)})};"string"==typeof e?(n=e,t=this.pdfDocument.getDestination(e)):t=Promise.resolve(e),t.then(function(t){e=t,t instanceof Array&&r(t[0])})},getDestinationHash:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(e instanceof Array){var t=e[0],n=t instanceof Object?this._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;if(n){var i=this.getAnchorUrl("#page="+n),r=e[1];if("object"==typeof r&&"name"in r&&"XYZ"===r.name){var a=e[4]||this.pdfViewer.currentScaleValue,s=parseFloat(a);s&&(a=100*s),i+="&zoom="+a,(e[2]||e[3])&&(i+=","+(e[2]||0)+","+(e[3]||0))}return i}}return this.getAnchorUrl("")},getAnchorUrl:function(e){return(this.baseUrl||"")+e},setHash:function(e){if(e.indexOf("=")>=0){var t=i(e);if("nameddest"in t)return this.pdfHistory&&this.pdfHistory.updateNextHashParam(t.nameddest),void this.navigateTo(t.nameddest);var n,r;if("page"in t&&(n=0|t.page||1),"zoom"in t){var a=t.zoom.split(","),s=a[0],o=parseFloat(s);-1===s.indexOf("Fit")?r=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,o?o/100:s]:"Fit"===s||"FitB"===s?r=[null,{name:s}]:"FitH"===s||"FitBH"===s||"FitV"===s||"FitBV"===s?r=[null,{name:s},a.length>1?0|a[1]:null]:"FitR"===s?5!==a.length?console.error("PDFLinkService_setHash: Not enough parameters for 'FitR'."):r=[null,{name:s},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error("PDFLinkService_setHash: '"+s+"' is not a valid zoom value.")}r?this.pdfViewer.scrollPageIntoView(n||this.page,r):n&&(this.page=n),"pagemode"in t&&this.eventBus.dispatch("pagemode",{source:this,mode:t.pagemode})}else/^\d+$/.test(e)?this.page=e:(this.pdfHistory&&this.pdfHistory.updateNextHashParam(unescape(e)),this.navigateTo(unescape(e)))},executeNamedAction:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page++;break;case"PrevPage":this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})},cachePageRef:function(e,t){var n=t.num+" "+t.gen+" R";this._pagesRefCache[n]=e}},e}(),a=function(){function e(){}return e.prototype={get page(){return 0},set page(e){},navigateTo:function(e){},getDestinationHash:function(e){return"#"},getAnchorUrl:function(e){return"#"},setHash:function(e){},executeNamedAction:function(e){},cachePageRef:function(e,t){}},e}();e.PDFLinkService=r,e.SimpleLinkService=a;
}),function(e,t){t(e.pdfjsWebPDFPageView={},e.pdfjsWebUIUtils,e.pdfjsWebPDFRenderingQueue,e.pdfjsWebDOMEvents,e.pdfjsWebPDFJS)}(this,function(e,t,n,i,r){var a=t.CSS_UNITS,s=t.DEFAULT_SCALE,o=t.getOutputScale,l=t.approximateFraction,c=t.roundToDivide,h=n.RenderingStates,u=200,d=function(){function e(e){var t=e.container,n=e.id,r=e.scale,a=e.defaultViewport,o=e.renderingQueue,l=e.textLayerFactory,c=e.annotationLayerFactory;this.id=n,this.renderingId="page"+n,this.rotation=0,this.scale=r||s,this.viewport=a,this.pdfPageRotate=a.rotation,this.hasRestrictedScaling=!1,this.eventBus=e.eventBus||i.getGlobalEventBus(),this.renderingQueue=o,this.textLayerFactory=l,this.annotationLayerFactory=c,this.renderingState=h.INITIAL,this.resume=null,this.onBeforeDraw=null,this.onAfterDraw=null,this.textLayer=null,this.zoomLayer=null,this.annotationLayer=null;var u=document.createElement("div");u.id="pageContainer"+this.id,u.className="page",u.style.width=Math.floor(this.viewport.width)+"px",u.style.height=Math.floor(this.viewport.height)+"px",u.setAttribute("data-page-number",this.id),this.div=u,t.appendChild(u)}return e.prototype={setPdfPage:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport(this.scale*a,t),this.stats=e.stats,this.reset()},destroy:function(){this.zoomLayer=null,this.reset(),this.pdfPage&&this.pdfPage.cleanup()},reset:function(e,t){this.renderTask&&this.renderTask.cancel(),this.resume=null,this.renderingState=h.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var i=n.childNodes,r=e&&this.zoomLayer||null,a=t&&this.annotationLayer&&this.annotationLayer.div||null,s=i.length-1;s>=0;s--){var o=i[s];r!==o&&a!==o&&n.removeChild(o)}n.removeAttribute("data-loaded"),a?this.annotationLayer.hide():this.annotationLayer=null,this.canvas&&!r&&(this.canvas.width=0,this.canvas.height=0,delete this.canvas),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)},update:function(e,t){this.scale=e||this.scale,"undefined"!=typeof t&&(this.rotation=t);var n=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:this.scale*a,rotation:n});var i=!1;if(this.canvas&&r.PDFJS.maxCanvasPixels>0){var s=this.outputScale;this.viewport.width*this.viewport.height;(Math.floor(this.viewport.width)*s.sx|0)*(Math.floor(this.viewport.height)*s.sy|0)>r.PDFJS.maxCanvasPixels&&(i=!0)}if(this.canvas){if(r.PDFJS.useOnlyCssZoom||this.hasRestrictedScaling&&i)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0});this.zoomLayer||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)},updatePosition:function(){this.textLayer&&this.textLayer.render(u)},cssTransform:function(e,t){var n=r.CustomStyle,i=this.viewport.width,a=this.viewport.height,s=this.div;e.style.width=e.parentNode.style.width=s.style.width=Math.floor(i)+"px",e.style.height=e.parentNode.style.height=s.style.height=Math.floor(a)+"px";var o=this.viewport.rotation-e._viewport.rotation,l=Math.abs(o),c=1,h=1;90!==l&&270!==l||(c=a/i,h=i/a);var u="rotate("+o+"deg) scale("+c+","+h+")";if(n.setProp("transform",e,u),this.textLayer){var d=this.textLayer.viewport,f=this.viewport.rotation-d.rotation,p=Math.abs(f),g=i/d.width;90!==p&&270!==p||(g=i/d.height);var m,v,b=this.textLayer.textLayerDiv;switch(p){case 0:m=v=0;break;case 90:m=0,v="-"+b.style.height;break;case 180:m="-"+b.style.width,v="-"+b.style.height;break;case 270:m="-"+b.style.width,v=0;break;default:console.error("Bad rotation value.")}n.setProp("transform",b,"rotate("+p+"deg) scale("+g+", "+g+") translate("+m+", "+v+")"),n.setProp("transformOrigin",b,"0% 0%")}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")},get width(){return this.viewport.width},get height(){return this.viewport.height},getPagePoint:function(e,t){return this.viewport.convertToPdfPoint(e,t)},draw:function(){function e(e){if(E===k.renderTask&&(k.renderTask=null),"cancelled"===e)return void C(e);if(k.renderingState=h.FINISHED,f&&(k.canvas.removeAttribute("hidden"),f=!1),k.loadingIconDiv&&(i.removeChild(k.loadingIconDiv),delete k.loadingIconDiv),k.zoomLayer){var n=k.zoomLayer.firstChild;n.width=0,n.height=0,i.removeChild(k.zoomLayer),k.zoomLayer=null}k.error=e,k.stats=t.stats,k.onAfterDraw&&k.onAfterDraw(),k.eventBus.dispatch("pagerendered",{source:k,pageNumber:k.id,cssTransform:!1}),e?C(e):P(void 0)}this.renderingState!==h.INITIAL&&console.error("Must be in new state before drawing"),this.renderingState=h.RUNNING;var t=this.pdfPage,n=this.viewport,i=this.div,s=document.createElement("div");s.style.width=i.style.width,s.style.height=i.style.height,s.classList.add("canvasWrapper");var d=document.createElement("canvas");d.id="page"+this.id,d.setAttribute("hidden","hidden");var f=!0;s.appendChild(d),this.annotationLayer&&this.annotationLayer.div?i.insertBefore(s,this.annotationLayer.div):i.appendChild(s),this.canvas=d,d.mozOpaque=!0;var p=d.getContext("2d",{alpha:!1}),g=o(p);if(this.outputScale=g,r.PDFJS.useOnlyCssZoom){var m=n.clone({scale:a});g.sx*=m.width/n.width,g.sy*=m.height/n.height,g.scaled=!0}if(r.PDFJS.maxCanvasPixels>0){var v=n.width*n.height,b=Math.sqrt(r.PDFJS.maxCanvasPixels/v);g.sx>b||g.sy>b?(g.sx=b,g.sy=b,g.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var w=l(g.sx),A=l(g.sy);d.width=c(n.width*g.sx,w[0]),d.height=c(n.height*g.sy,A[0]),d.style.width=c(n.width,w[1])+"px",d.style.height=c(n.height,A[1])+"px",d._viewport=n;var y=null,S=null;this.textLayerFactory&&(y=document.createElement("div"),y.className="textLayer",y.style.width=s.style.width,y.style.height=s.style.height,this.annotationLayer&&this.annotationLayer.div?i.insertBefore(y,this.annotationLayer.div):i.appendChild(y),S=this.textLayerFactory.createTextLayerBuilder(y,this.id-1,this.viewport)),this.textLayer=S;var P,C,x=new Promise(function(e,t){P=e,C=t}),k=this,L=null;this.renderingQueue&&(L=function(e){return k.renderingQueue.isHighestPriority(k)?(f&&(k.canvas.removeAttribute("hidden"),f=!1),void e()):(k.renderingState=h.PAUSED,void(k.resume=function(){k.renderingState=h.RUNNING,e()}))});var _=g.scaled?[g.sx,0,0,g.sy,0,0]:null,T={canvasContext:p,transform:_,viewport:this.viewport},E=this.renderTask=this.pdfPage.render(T);return E.onContinue=L,this.renderTask.promise.then(function(){e(null),S&&k.pdfPage.getTextContent({normalizeWhitespace:!0}).then(function(e){S.setTextContent(e),S.render(u)})},function(t){e(t)}),this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(i,this.pdfPage)),this.annotationLayer.render(this.viewport,"display")),i.setAttribute("data-loaded",!0),k.onBeforeDraw&&k.onBeforeDraw(),x},beforePrint:function(e){var t=r.CustomStyle,n=this.pdfPage,i=n.getViewport(1),a=2,s=document.createElement("canvas");s.width=Math.floor(i.width)*a,s.height=Math.floor(i.height)*a,s.style.width=100*a+"%";var o="scale("+1/a+", "+1/a+")";t.setProp("transform",s,o),t.setProp("transformOrigin",s,"0% 0%");var l=document.createElement("div");l.appendChild(s),e.appendChild(l),s.mozPrintCallback=function(e){var t=e.context;t.save(),t.fillStyle="rgb(255, 255, 255)",t.fillRect(0,0,s.width,s.height),t.restore(),t._transformMatrix=[a,0,0,a,0,0],t.scale(a,a);var r={canvasContext:t,viewport:i,intent:"print"};n.render(r).promise.then(function(){e.done()},function(t){console.error(t),"abort"in e?e.abort():e.done()})}}},e}();e.PDFPageView=d}),function(e,t){t(e.pdfjsWebPDFThumbnailViewer={},e.pdfjsWebUIUtils,e.pdfjsWebPDFThumbnailView)}(this,function(e,t,n){var i=t.watchScroll,r=t.getVisibleElements,a=t.scrollIntoView,s=n.PDFThumbnailView,o=-19,l=function(){function e(e){this.container=e.container,this.renderingQueue=e.renderingQueue,this.linkService=e.linkService,this.scroll=i(this.container,this._scrollUpdated.bind(this)),this._resetView()}return e.prototype={_scrollUpdated:function(){this.renderingQueue.renderHighestPriority()},getThumbnail:function(e){return this.thumbnails[e]},_getVisibleThumbs:function(){return r(this.container,this.thumbnails)},scrollThumbnailIntoView:function(e){var t=document.querySelector(".thumbnail.selected");t&&t.classList.remove("selected");var n=document.getElementById("thumbnailContainer"+e);n&&n.classList.add("selected");var i=this._getVisibleThumbs(),r=i.views.length;if(r>0){var s=i.first.id,l=r>1?i.last.id:s;(s>=e||e>=l)&&a(n,{top:o})}},get pagesRotation(){return this._pagesRotation},set pagesRotation(e){this._pagesRotation=e;for(var t=0,n=this.thumbnails.length;n>t;t++){var i=this.thumbnails[t];i.update(e)}},cleanup:function(){var e=s.tempImageCache;e&&(e.width=0,e.height=0),s.tempImageCache=null},_resetView:function(){this.thumbnails=[],this._pagesRotation=0,this._pagesRequests=[]},setDocument:function(e){if(this.pdfDocument){for(var t=this.container;t.hasChildNodes();)t.removeChild(t.lastChild);this._resetView()}return this.pdfDocument=e,e?e.getPage(1).then(function(t){for(var n=e.numPages,i=t.getViewport(1),r=1;n>=r;++r){var a=new s({container:this.container,id:r,defaultViewport:i.clone(),linkService:this.linkService,renderingQueue:this.renderingQueue,disableCanvasToImageConversion:!1});this.thumbnails.push(a)}}.bind(this)):Promise.resolve()},_ensurePdfPageLoaded:function(e){if(e.pdfPage)return Promise.resolve(e.pdfPage);var t=e.id;if(this._pagesRequests[t])return this._pagesRequests[t];var n=this.pdfDocument.getPage(t).then(function(n){return e.setPdfPage(n),this._pagesRequests[t]=null,n}.bind(this));return this._pagesRequests[t]=n,n},forceRendering:function(){var e=this._getVisibleThumbs(),t=this.renderingQueue.getHighestPriority(e,this.thumbnails,this.scroll.down);return t?(this._ensurePdfPageLoaded(t).then(function(){this.renderingQueue.renderView(t)}.bind(this)),!0):!1}},e}();e.PDFThumbnailViewer=l}),function(e,t){t(e.pdfjsWebTextLayerBuilder={},e.pdfjsWebDOMEvents,e.pdfjsWebPDFJS)}(this,function(e,t,n){function i(){}var r=function(){function e(e){this.textLayerDiv=e.textLayerDiv,this.eventBus=e.eventBus||t.getGlobalEventBus(),this.renderingDone=!1,this.divContentDone=!1,this.pageIdx=e.pageIndex,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=e.viewport,this.textDivs=[],this.findController=e.findController||null,this.textLayerRenderTask=null,this._bindMouse()}return e.prototype={_finishRendering:function(){this.renderingDone=!0;var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e),this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber})},render:function(e){if(this.divContentDone&&!this.renderingDone){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.textDivs=[];var t=document.createDocumentFragment();this.textLayerRenderTask=n.renderTextLayer({textContent:this.textContent,container:t,viewport:this.viewport,textDivs:this.textDivs,timeout:e}),this.textLayerRenderTask.promise.then(function(){this.textLayerDiv.appendChild(t),this._finishRendering(),this.updateMatches()}.bind(this),function(e){})}},setTextContent:function(e){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.textContent=e,this.divContentDone=!0},convertMatches:function(e){for(var t=0,n=0,i=this.textContent.items,r=i.length-1,a=null===this.findController?0:this.findController.state.query.length,s=[],o=0,l=e.length;l>o;o++){for(var c=e[o];t!==r&&c>=n+i[t].str.length;)n+=i[t].str.length,t++;t===i.length&&console.error("Could not find a matching mapping");var h={begin:{divIdx:t,offset:c-n}};for(c+=a;t!==r&&c>n+i[t].str.length;)n+=i[t].str.length,t++;h.end={divIdx:t,offset:c-n},s.push(h)}return s},renderMatches:function(e){function t(e,t){var i=e.divIdx;r[i].textContent="",n(i,0,e.offset,t)}function n(e,t,n,a){var s=r[e],o=i[e].str.substring(t,n),l=document.createTextNode(o);if(a){var c=document.createElement("span");return c.className=a,c.appendChild(l),void s.appendChild(c)}s.appendChild(l)}if(0!==e.length){var i=this.textContent.items,r=this.textDivs,a=null,s=this.pageIdx,o=null===this.findController?!1:s===this.findController.selected.pageIdx,l=null===this.findController?-1:this.findController.selected.matchIdx,c=null===this.findController?!1:this.findController.state.highlightAll,h={divIdx:-1,offset:void 0},u=l,d=u+1;if(c)u=0,d=e.length;else if(!o)return;for(var f=u;d>f;f++){var p=e[f],g=p.begin,m=p.end,v=o&&f===l,b=v?" selected":"";if(this.findController&&this.findController.updateMatchPosition(s,f,r,g.divIdx,m.divIdx),a&&g.divIdx===a.divIdx?n(a.divIdx,a.offset,g.offset):(null!==a&&n(a.divIdx,a.offset,h.offset),t(g)),g.divIdx===m.divIdx)n(g.divIdx,g.offset,m.offset,"highlight"+b);else{n(g.divIdx,g.offset,h.offset,"highlight begin"+b);for(var w=g.divIdx+1,A=m.divIdx;A>w;w++)r[w].className="highlight middle"+b;t(m,"highlight end"+b)}a=m}a&&n(a.divIdx,a.offset,h.offset)}},updateMatches:function(){if(this.renderingDone){for(var e=this.matches,t=this.textDivs,n=this.textContent.items,i=-1,r=0,a=e.length;a>r;r++){for(var s=e[r],o=Math.max(i,s.begin.divIdx),l=o,c=s.end.divIdx;c>=l;l++){var h=t[l];h.textContent=n[l].str,h.className=""}i=s.end.divIdx+1}null!==this.findController&&this.findController.active&&(this.matches=this.convertMatches(null===this.findController?[]:this.findController.pageMatches[this.pageIdx]||[]),this.renderMatches(this.matches))}},_bindMouse:function(){var e=this.textLayerDiv;e.addEventListener("mousedown",function(t){var n=e.querySelector(".endOfContent");if(n){var i=t.target!==e;if(i=i&&"none"!==window.getComputedStyle(n).getPropertyValue("-moz-user-select")){var r=e.getBoundingClientRect(),a=Math.max(0,(t.pageY-r.top)/r.height);n.style.top=(100*a).toFixed(2)+"%"}n.classList.add("active")}}),e.addEventListener("mouseup",function(t){var n=e.querySelector(".endOfContent");n&&(n.style.top="",n.classList.remove("active"))})}},e}();i.prototype={createTextLayerBuilder:function(e,t,n){return new r({textLayerDiv:e,pageIndex:t,viewport:n})}},e.TextLayerBuilder=r,e.DefaultTextLayerFactory=i}),function(e,t){t(e.pdfjsWebAnnotationLayerBuilder={},e.pdfjsWebUIUtils,e.pdfjsWebPDFLinkService,e.pdfjsWebPDFJS)}(this,function(e,t,n,i){function r(){}var a=t.mozL10n,s=n.SimpleLinkService,o=function(){function e(e){this.pageDiv=e.pageDiv,this.pdfPage=e.pdfPage,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.div=null}return e.prototype={render:function(e,t){var n=this,r={intent:void 0===t?"display":t};this.pdfPage.getAnnotations(r).then(function(t){if(e=e.clone({dontFlip:!0}),r={viewport:e,div:n.div,annotations:t,page:n.pdfPage,linkService:n.linkService,downloadManager:n.downloadManager},n.div)i.AnnotationLayer.update(r);else{if(0===t.length)return;n.div=document.createElement("div"),n.div.className="annotationLayer",n.pageDiv.appendChild(n.div),r.div=n.div,i.AnnotationLayer.render(r),"undefined"!=typeof a&&a.translate(n.div)}})},hide:function(){this.div&&this.div.setAttribute("hidden","true")}},e}();r.prototype={createAnnotationLayerBuilder:function(e,t){return new o({pageDiv:e,pdfPage:t,linkService:new s})}},e.AnnotationLayerBuilder=o,e.DefaultAnnotationLayerFactory=r}),function(e,t){t(e.pdfjsWebPDFViewer={},e.pdfjsWebUIUtils,e.pdfjsWebPDFPageView,e.pdfjsWebPDFRenderingQueue,e.pdfjsWebTextLayerBuilder,e.pdfjsWebAnnotationLayerBuilder,e.pdfjsWebPDFLinkService,e.pdfjsWebDOMEvents,e.pdfjsWebPDFJS)}(this,function(e,t,n,i,r,a,s,o,l){var c=t.UNKNOWN_SCALE,h=t.SCROLLBAR_PADDING,u=t.VERTICAL_PADDING,d=t.MAX_AUTO_SCALE,f=t.CSS_UNITS,p=t.DEFAULT_SCALE,g=t.DEFAULT_SCALE_VALUE,m=t.scrollIntoView,v=t.watchScroll,b=t.getVisibleElements,w=n.PDFPageView,A=i.RenderingStates,y=i.PDFRenderingQueue,S=r.TextLayerBuilder,P=a.AnnotationLayerBuilder,C=s.SimpleLinkService,x={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},k=10,L=function(){function e(e){var t=[];this.push=function(n){var i=t.indexOf(n);i>=0&&t.splice(i,1),t.push(n),t.length>e&&t.shift().destroy()},this.resize=function(n){for(e=n;t.length>e;)t.shift().destroy()}}function t(e,t){return t===e?!0:Math.abs(t-e)<1e-15}function n(e){this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,this.eventBus=e.eventBus||o.getGlobalEventBus(),this.linkService=e.linkService||new C,this.downloadManager=e.downloadManager||null,this.removePageBorders=e.removePageBorders||!1,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new y,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=v(this.container,this._scrollUpdate.bind(this)),this.updateInProgress=!1,this.presentationModeState=x.UNKNOWN,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders")}return n.prototype={get pagesCount(){return this._pages.length},getPageView:function(e){return this._pages[e]},get currentPageNumber(){return this._currentPageNumber},set currentPageNumber(e){if(!this.pdfDocument)return void(this._currentPageNumber=e);var t;return e>0&&e<=this.pagesCount?(t={source:this,updateInProgress:this.updateInProgress,pageNumber:e,previousPageNumber:this._currentPageNumber},this.eventBus.dispatch("pagechanging",t),this._currentPageNumber=e,this.eventBus.dispatch("pagechange",t),void(this.updateInProgress||this.scrollPageIntoView(e))):(t={source:this,updateInProgress:this.updateInProgress,pageNumber:this._currentPageNumber,previousPageNumber:e},this.eventBus.dispatch("pagechanging",t),void this.eventBus.dispatch("pagechange",t))},get currentScale(){return this._currentScale!==c?this._currentScale:p},set currentScale(e){if(isNaN(e))throw new Error("Invalid numeric scale");return this.pdfDocument?void this._setScale(e,!1):(this._currentScale=e,void(this._currentScaleValue=e!==c?e.toString():null))},get currentScaleValue(){return this._currentScaleValue},set currentScaleValue(e){return this.pdfDocument?void this._setScale(e,!1):(this._currentScale=isNaN(e)?c:e,void(this._currentScaleValue=e))},get pagesRotation(){return this._pagesRotation},set pagesRotation(e){this._pagesRotation=e;for(var t=0,n=this._pages.length;n>t;t++){var i=this._pages[t];i.update(i.scale,e)}this._setScale(this._currentScaleValue,!0),this.defaultRenderingQueue&&this.update()},setDocument:function(e){if(this.pdfDocument&&this._resetView(),this.pdfDocument=e,e){var t,n=e.numPages,i=this,r=new Promise(function(e){t=e});this.pagesPromise=r,r.then(function(){i.eventBus.dispatch("pagesloaded",{source:i,pagesCount:n})});var a=!1,s=null,o=new Promise(function(e){s=e});this.onePageRendered=o;var c=function(e){e.onBeforeDraw=function(){i._buffer.push(this)},e.onAfterDraw=function(){a||(a=!0,s())}},h=e.getPage(1);return this.firstPagePromise=h,h.then(function(r){for(var a=this.currentScale,s=r.getViewport(a*f),h=1;n>=h;++h){var u=null;l.PDFJS.disableTextLayer||(u=this);var d=new w({container:this.viewer,eventBus:this.eventBus,id:h,scale:a,defaultViewport:s.clone(),renderingQueue:this.renderingQueue,textLayerFactory:u,annotationLayerFactory:this});c(d),this._pages.push(d)}var p=this.linkService;o.then(function(){if(l.PDFJS.disableAutoFetch)t();else for(var r=n,a=1;n>=a;++a)e.getPage(a).then(function(e,n){var a=i._pages[e-1];a.pdfPage||a.setPdfPage(n),p.cachePageRef(e,n.ref),r--,r||t()}.bind(null,a))}),i.eventBus.dispatch("pagesinit",{source:i}),this.defaultRenderingQueue&&this.update(),this.findController&&this.findController.resolveFirstPage()}.bind(this))}},_resetView:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=c,this._currentScaleValue=null,this._buffer=new e(k),this._location=null,this._pagesRotation=0,this._pagesRequests=[];for(var t=this.viewer;t.hasChildNodes();)t.removeChild(t.lastChild)},_scrollUpdate:function(){if(0!==this.pagesCount){this.update();for(var e=0,t=this._pages.length;t>e;e++)this._pages[e].updatePosition()}},_setScaleDispatchEvent:function(e,t,n){var i={source:this,scale:e,presetValue:n?t:void 0};this.eventBus.dispatch("scalechanging",i),this.eventBus.dispatch("scalechange",i)},_setScaleUpdatePages:function(e,n,i,r){if(this._currentScaleValue=n,t(this._currentScale,e))return void(r&&this._setScaleDispatchEvent(e,n,!0));for(var a=0,s=this._pages.length;s>a;a++)this._pages[a].update(e);if(this._currentScale=e,!i){var o,c=this._currentPageNumber;!this._location||l.PDFJS.ignoreCurrentPositionOnZoom||this.isInPresentationMode||this.isChangingPresentationMode||(c=this._location.pageNumber,o=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView(c,o)}this._setScaleDispatchEvent(e,n,r),this.defaultRenderingQueue&&this.update()},_setScale:function(e,t){var n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var r=this.isInPresentationMode||this.removePageBorders?0:h,a=this.isInPresentationMode||this.removePageBorders?0:u,s=(this.container.clientWidth-r)/i.width*i.scale,o=(this.container.clientHeight-a)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=s;break;case"page-height":n=o;break;case"page-fit":n=Math.min(s,o);break;case"auto":var l=i.width>i.height,c=l?Math.min(o,s):s;n=Math.min(d,c);break;default:return void console.error("pdfViewSetScale: '"+e+"' is an unknown zoom value.")}this._setScaleUpdatePages(n,e,t,!0)}},scrollPageIntoView:function(e,t){if(this.pdfDocument){var n=this._pages[e-1];if(this.isInPresentationMode){if(this._currentPageNumber!==n.id)return void(this.currentPageNumber=n.id);t=null,this._setScale(this._currentScaleValue,!0)}if(!t)return void m(n.div);var i,r,a=0,s=0,o=0,l=0,d=n.rotation%180!==0,p=(d?n.height:n.width)/n.scale/f,v=(d?n.width:n.height)/n.scale/f,b=0;switch(t[1].name){case"XYZ":a=t[2],s=t[3],b=t[4],a=null!==a?a:0,s=null!==s?s:v;break;case"Fit":case"FitB":b="page-fit";break;case"FitH":case"FitBH":s=t[2],b="page-width",null===s&&this._location&&(a=this._location.left,s=this._location.top);break;case"FitV":case"FitBV":a=t[2],o=p,l=v,b="page-height";break;case"FitR":a=t[2],s=t[3],o=t[4]-a,l=t[5]-s;var w=this.removePageBorders?0:h,A=this.removePageBorders?0:u;i=(this.container.clientWidth-w)/o/f,r=(this.container.clientHeight-A)/l/f,b=Math.min(Math.abs(i),Math.abs(r));break;default:return}if(b&&b!==this._currentScale?this.currentScaleValue=b:this._currentScale===c&&(this.currentScaleValue=g),"page-fit"===b&&!t[4])return void m(n.div);var y=[n.viewport.convertToViewportPoint(a,s),n.viewport.convertToViewportPoint(a+o,s+l)],S=Math.min(y[0][0],y[1][0]),P=Math.min(y[0][1],y[1][1]);m(n.div,{left:S,top:P})}},_updateLocation:function(e){var t=this._currentScale,n=this._currentScaleValue,i=parseFloat(n)===t?Math.round(1e4*t)/100:n,r=e.id,a="#page="+r;a+="&zoom="+i;var s=this._pages[r-1],o=this.container,l=s.getPagePoint(o.scrollLeft-e.x,o.scrollTop-e.y),c=Math.round(l[0]),h=Math.round(l[1]);a+=","+c+","+h,this._location={pageNumber:r,scale:i,top:h,left:c,pdfOpenParams:a}},update:function(){var e=this._getVisiblePages(),t=e.views;if(0!==t.length){this.updateInProgress=!0;var n=Math.max(k,2*t.length+1);this._buffer.resize(n),this.renderingQueue.renderHighestPriority(e);for(var i=this._currentPageNumber,r=e.first,a=0,s=t.length,o=!1;s>a;++a){var l=t[a];if(l.percent<100)break;if(l.id===i){o=!0;break}}o||(i=t[0].id),this.isInPresentationMode||(this.currentPageNumber=i),this._updateLocation(r),this.updateInProgress=!1,this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}},containsElement:function(e){return this.container.contains(e)},focus:function(){this.container.focus()},get isInPresentationMode(){return this.presentationModeState===x.FULLSCREEN},get isChangingPresentationMode(){return this.presentationModeState===x.CHANGING},get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth},_getVisiblePages:function(){if(this.isInPresentationMode){var e=[],t=this._pages[this._currentPageNumber-1];return e.push({id:t.id,view:t}),{first:t,last:t,views:e}}return b(this.container,this._pages,!0)},cleanup:function(){for(var e=0,t=this._pages.length;t>e;e++)this._pages[e]&&this._pages[e].renderingState!==A.FINISHED&&this._pages[e].reset()},_ensurePdfPageLoaded:function(e){if(e.pdfPage)return Promise.resolve(e.pdfPage);var t=e.id;if(this._pagesRequests[t])return this._pagesRequests[t];var n=this.pdfDocument.getPage(t).then(function(n){return e.setPdfPage(n),this._pagesRequests[t]=null,n}.bind(this));return this._pagesRequests[t]=n,n},forceRendering:function(e){var t=e||this._getVisiblePages(),n=this.renderingQueue.getHighestPriority(t,this._pages,this.scroll.down);return n?(this._ensurePdfPageLoaded(n).then(function(){this.renderingQueue.renderView(n)}.bind(this)),!0):!1},getPageTextContent:function(e){return this.pdfDocument.getPage(e+1).then(function(e){return e.getTextContent({normalizeWhitespace:!0})})},createTextLayerBuilder:function(e,t,n){return new S({textLayerDiv:e,eventBus:this.eventBus,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController})},createAnnotationLayerBuilder:function(e,t){return new P({pageDiv:e,pdfPage:t,linkService:this.linkService,downloadManager:this.downloadManager})},setFindController:function(e){this.findController=e}},n}();e.PresentationModeState=x,e.PDFViewer=L}),function(e,t){t(e.pdfjsWebApp={},e.pdfjsWebUIUtils,e.pdfjsWebDownloadManager,e.pdfjsWebPDFHistory,e.pdfjsWebPreferences,e.pdfjsWebPDFSidebar,e.pdfjsWebViewHistory,e.pdfjsWebPDFThumbnailViewer,e.pdfjsWebSecondaryToolbar,e.pdfjsWebPasswordPrompt,e.pdfjsWebPDFPresentationMode,e.pdfjsWebPDFDocumentProperties,e.pdfjsWebHandTool,e.pdfjsWebPDFViewer,e.pdfjsWebPDFRenderingQueue,e.pdfjsWebPDFLinkService,e.pdfjsWebPDFOutlineViewer,e.pdfjsWebOverlayManager,e.pdfjsWebPDFAttachmentViewer,e.pdfjsWebPDFFindController,e.pdfjsWebPDFFindBar,e.pdfjsWebDOMEvents,e.pdfjsWebPDFJS)}(this,function(e,t,n,i,r,a,s,o,l,c,h,u,d,f,p,g,m,v,b,w,A,y,S){function P(e){e.imageResourcesPath="./images/",e.workerSrc="../build/pdf.worker.js",e.cMapUrl="../web/cmaps/",e.cMapPacked=!0}function C(e){try{var t=new URL(window.location.href).origin||"null";if(Me.indexOf(t)>=0)return;var n=new URL(e,window.location.href).origin;if(n!==t)throw new Error("file origin does not match viewer's")}catch(i){var r=i&&i.message,a=ne.get("loading_error",null,"An error occurred while loading the PDF."),s={message:r};throw Re.error(a,s),i}}function x(){var e=document.location.search.substring(1),t=ie(e),n="file"in t?t.file:DEFAULT_URL;C(n);var i=Re.appConfig,r=document.createElement("input");r.id=i.openFileInputName,r.className="fileInput",r.setAttribute("type","file"),r.oncontextmenu=te,document.body.appendChild(r),window.File&&window.FileReader&&window.FileList&&window.Blob?r.value=null:(i.toolbar.openFile.setAttribute("hidden","true"),i.secondaryToolbar.openFile.setAttribute("hidden","true"));var a=S.PDFJS;if(Re.preferencePdfBugEnabled){var s=document.location.hash.substring(1),o=ie(s);if("disableworker"in o&&(a.disableWorker="true"===o.disableworker),"disablerange"in o&&(a.disableRange="true"===o.disablerange),"disablestream"in o&&(a.disableStream="true"===o.disablestream),"disableautofetch"in o&&(a.disableAutoFetch="true"===o.disableautofetch),"disablefontface"in o&&(a.disableFontFace="true"===o.disablefontface),"disablehistory"in o&&(a.disableHistory="true"===o.disablehistory),"webgl"in o&&(a.disableWebGL="true"!==o.webgl),"useonlycsszoom"in o&&(a.useOnlyCssZoom="true"===o.useonlycsszoom),"verbosity"in o&&(a.verbosity=0|o.verbosity),"ignorecurrentpositiononzoom"in o&&(a.ignoreCurrentPositionOnZoom="true"===o.ignorecurrentpositiononzoom),"locale"in o&&(a.locale=o.locale),"textlayer"in o)switch(o.textlayer){case"off":a.disableTextLayer=!0;break;case"visible":case"shadow":case"hover":var l=i.viewerContainer;l.classList.add("textLayer-"+o.textlayer)}if("pdfbug"in o){a.pdfBug=!0;var c=o.pdfbug,h=c.split(",");PDFBug.enable(h),PDFBug.init(S,i.mainContainer)}}if(ne.setLanguage(a.locale),Re.supportsPrinting||(i.toolbar.print.classList.add("hidden"),i.secondaryToolbar.print.classList.add("hidden")),Re.supportsFullscreen||(i.toolbar.presentationModeButton.classList.add("hidden"),i.secondaryToolbar.presentationModeButton.classList.add("hidden")),Re.supportsIntegratedFind&&i.toolbar.viewFind.classList.add("hidden"),i.toolbar.scaleSelect.oncontextmenu=te,i.sidebar.mainContainer.addEventListener("transitionend",function(e){e.target===this&&Re.eventBus.dispatch("resize")},!0),i.sidebar.toggleButton.addEventListener("click",function(){Re.pdfSidebar.toggle()}),i.toolbar.previous.addEventListener("click",function(){Re.page--}),i.toolbar.next.addEventListener("click",function(){Re.page++}),i.toolbar.zoomIn.addEventListener("click",function(){Re.zoomIn()}),i.toolbar.zoomOut.addEventListener("click",function(){Re.zoomOut()}),i.toolbar.pageNumber.addEventListener("click",function(){this.select()}),i.toolbar.pageNumber.addEventListener("change",function(){Re.page=0|this.value,this.value!==(0|this.value).toString()&&(this.value=Re.page)}),i.toolbar.scaleSelect.addEventListener("change",function(){"custom"!==this.value&&(Re.pdfViewer.currentScaleValue=this.value)}),i.toolbar.presentationModeButton.addEventListener("click",function(e){Re.eventBus.dispatch("presentationmode")}),i.toolbar.openFile.addEventListener("click",function(e){Re.eventBus.dispatch("openfile")}),i.toolbar.print.addEventListener("click",function(e){Re.eventBus.dispatch("print")}),i.toolbar.download.addEventListener("click",function(e){Re.eventBus.dispatch("download")}),n&&0===n.lastIndexOf("file:",0)){Re.setTitleUsingUrl(n);var u=new XMLHttpRequest;u.onload=function(){Re.open(new Uint8Array(u.response))};try{u.open("GET",n),u.responseType="arraybuffer",u.send()}catch(d){Re.error(ne.get("loading_error",null,"An error occurred while loading the PDF."),d)}}else n&&Re.open(n)}function k(e){var t=e.pageNumber,n=t-1,i=Re.pdfViewer.getPageView(n);if(Re.pdfSidebar.isThumbnailViewVisible){var r=Re.pdfThumbnailViewer.getThumbnail(n);r.setImage(i)}if(S.PDFJS.pdfBug&&Stats.enabled&&i.stats&&Stats.add(t,i.stats),i.error&&Re.error(ne.get("rendering_error",null,"An error occurred while rendering the page."),i.error),t===Re.page){var a=Re.appConfig.toolbar.pageNumber;a.classList.remove(Ie)}}function L(e){var t=e.pageNumber-1;Re.pdfViewer.getPageView(t)}function _(e){if(Re.initialized){var t,n=e.mode;switch(n){case"thumbs":t=se.THUMBS;break;case"bookmarks":case"outline":t=se.OUTLINE;break;case"attachments":t=se.ATTACHMENTS;break;case"none":t=se.NONE;break;default:return void console.error('Invalid "pagemode" hash parameter: '+n)}Re.pdfSidebar.switchView(t,!0)}}function T(e){if(Re.initialized){var t=e.action;switch(t){case"GoToPage":Re.appConfig.toolbar.pageNumber.focus();break;case"Find":Re.supportsIntegratedFind||Re.findBar.toggle()}}}function E(e){var t=e.active,n=e.switchInProgress;Re.pdfViewer.presentationModeState=n?ge.CHANGING:t?ge.FULLSCREEN:ge.NORMAL}function I(e){if(Re.initialized){Re.pdfRenderingQueue.isThumbnailViewEnabled=Re.pdfSidebar.isThumbnailViewVisible;var t=Re.store;t&&Re.isInitialViewSet&&t.initializedPromise.then(function(){t.set("sidebarView",e.view)["catch"](function(){})})}}function D(e){if(Re.initialized){var t=e.location,n=Re.store;n&&n.initializedPromise.then(function(){n.setMultiple({exists:!0,page:t.pageNumber,zoom:t.scale,scrollLeft:t.left,scrollTop:t.top})["catch"](function(){})});var i=Re.pdfLinkService.getAnchorUrl(t.pdfOpenParams);Re.appConfig.toolbar.viewBookmark.href=i,Re.appConfig.secondaryToolbar.viewBookmark.href=i,Re.pdfHistory.updateCurrentBookmark(t.pdfOpenParams,t.pageNumber);var r=Re.appConfig.toolbar.pageNumber,a=Re.pdfViewer.getPageView(Re.page-1);a.renderingState===ve.FINISHED?r.classList.remove(Ie):r.classList.add(Ie)}}function F(){if(Re.initialized){var e=Re.pdfViewer.currentScaleValue;
"auto"===e||"page-fit"===e||"page-width"===e?Re.pdfViewer.currentScaleValue=e:e||(Re.pdfViewer.currentScaleValue=Z),Re.pdfViewer.update()}he.setMaxHeight(Re.appConfig.mainContainer)}function R(e){if(Re.pdfHistory.isHashChangeUnlocked){var t=e.hash;if(!t)return;Re.isInitialViewSet?Re.pdfLinkService.setHash(t):Re.initialBookmark=t}}function M(e){var t=e.fileInput.files[0];if(!S.PDFJS.disableCreateObjectURL&&"undefined"!=typeof URL&&URL.createObjectURL)Re.open(URL.createObjectURL(t));else{var n=new FileReader;n.onload=function(e){var t=e.target.result,n=new Uint8Array(t);Re.open(n)},n.readAsArrayBuffer(t)}Re.setTitleUsingUrl(t.name);var i=Re.appConfig;i.toolbar.viewBookmark.setAttribute("hidden","true"),i.secondaryToolbar.viewBookmark.setAttribute("hidden","true"),i.toolbar.download.setAttribute("hidden","true"),i.secondaryToolbar.download.setAttribute("hidden","true")}function B(e){for(var t=Re.appConfig.toolbar.scaleSelect.options,n=!1,i=0,r=t.length;r>i;i++){var a=t[i];a.value===e?(a.selected=!0,n=!0):a.selected=!1}return n}function O(){document.getElementsByTagName("html")[0].dir=ne.getDirection(),Re.animationStartedPromise.then(function(){var e=Re.appConfig.toolbar.scaleSelectContainer;if(0===e.clientWidth&&e.setAttribute("style","display: inherit;"),e.clientWidth>0){var t=Re.appConfig.toolbar.scaleSelect;t.setAttribute("style","min-width: inherit;");var n=t.clientWidth+Te;t.setAttribute("style","min-width: "+(n+Ee)+"px;"),e.setAttribute("style","min-width: "+n+"px; max-width: "+n+"px;")}he.setMaxHeight(Re.appConfig.mainContainer)})}function j(){Re.requestPresentationMode()}function N(){var e=Re.appConfig.openFileInputName;document.getElementById(e).click()}function U(){window.print()}function V(){Re.download()}function W(){Re.pdfDocument&&(Re.page=1)}function H(){Re.pdfDocument&&(Re.page=Re.pagesCount)}function z(){Re.rotatePages(90)}function G(){Re.rotatePages(-90)}function X(){Re.pdfDocumentProperties.open()}function q(e){Re.findController.executeCommand("find"+e.type,{query:e.query,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious})}function Y(e){var t=Re.appConfig;t.toolbar.zoomOut.disabled=e.scale===Le,t.toolbar.zoomIn.disabled=e.scale===_e;var n=B(e.presetValue||""+e.scale);if(!n){var i=t.toolbar.customScaleOption,r=Math.round(1e4*e.scale)/100;i.textContent=ne.get("page_scale_percent",{scale:r},"{{scale}}%"),i.selected=!0}Re.initialized&&Re.pdfViewer.update()}function J(e){var t=e.pageNumber;e.previousPageNumber!==t&&(Re.appConfig.toolbar.pageNumber.value=t,Re.pdfSidebar.isThumbnailViewVisible&&Re.pdfThumbnailViewer.scrollThumbnailIntoView(t));var n=Re.pagesCount;if(Re.appConfig.toolbar.previous.disabled=1>=t,Re.appConfig.toolbar.next.disabled=t>=n,Re.appConfig.toolbar.firstPage.disabled=1>=t,Re.appConfig.toolbar.lastPage.disabled=t>=n,S.PDFJS.pdfBug&&Stats.enabled){var i=Re.pdfViewer.getPageView(t-1);i.stats&&Stats.add(t,i.stats)}}function Q(e){var t=40,n="DOMMouseScroll"===e.type?-e.detail:e.wheelDelta/t,i=0>n?"zoomOut":"zoomIn",r=Re.pdfViewer;if(r.isInPresentationMode)e.preventDefault(),Re.scrollPresentationMode(n*t);else if(e.ctrlKey||e.metaKey){var a=Re.supportedMouseWheelZoomModifierKeys;if(e.ctrlKey&&!a.ctrlKey||e.metaKey&&!a.metaKey)return;if(e.preventDefault(),Oe)return;var s=r.currentScale;Re[i](Math.abs(n));var o=r.currentScale;if(s!==o){var l=o/s-1,c=r.container.getBoundingClientRect(),h=e.clientX-c.left,u=e.clientY-c.top;r.container.scrollLeft+=h*l,r.container.scrollTop+=u*l}}else Oe=!0,clearTimeout(Be),Be=setTimeout(function(){Oe=!1},1e3)}var K=t.UNKNOWN_SCALE,Z=t.DEFAULT_SCALE_VALUE,$=t.ProgressBar,ee=t.getPDFFileNameFromURL,te=t.noContextMenuHandler,ne=t.mozL10n,ie=t.parseQueryString,re=i.PDFHistory,ae=r.Preferences,se=a.SidebarView,oe=a.PDFSidebar,le=s.ViewHistory,ce=o.PDFThumbnailViewer,he=l.SecondaryToolbar,ue=c.PasswordPrompt,de=h.PDFPresentationMode,fe=u.PDFDocumentProperties,pe=d.HandTool,ge=f.PresentationModeState,me=f.PDFViewer,ve=p.RenderingStates,be=p.PDFRenderingQueue,we=g.PDFLinkService,Ae=m.PDFOutlineViewer,ye=v.OverlayManager,Se=b.PDFAttachmentViewer,Pe=w.PDFFindController,Ce=A.PDFFindBar,xe=y.getGlobalEventBus,ke=1.1,Le=.25,_e=10,Te=8,Ee=22,Ie="visiblePageIsLoading",De=5e3,Fe={updateFindControlState:function(e){},initPassiveLoading:function(e){},fallback:function(e,t){},reportTelemetry:function(e){},createDownloadManager:function(){return new n.DownloadManager},supportsIntegratedFind:!1,supportsDocumentFonts:!0,supportsDocumentColors:!0,supportedMouseWheelZoomModifierKeys:{ctrlKey:!0,metaKey:!0}},Re={initialBookmark:document.location.hash.substring(1),initialDestination:null,initialized:!1,fellback:!1,appConfig:null,pdfDocument:null,pdfLoadingTask:null,printing:!1,pdfViewer:null,pdfThumbnailViewer:null,pdfRenderingQueue:null,pdfPresentationMode:null,pdfDocumentProperties:null,pdfLinkService:null,pdfHistory:null,pdfSidebar:null,pdfOutlineViewer:null,pdfAttachmentViewer:null,store:null,downloadManager:null,eventBus:null,pageRotation:0,isInitialViewSet:!1,animationStartedPromise:null,preferenceSidebarViewOnLoad:se.NONE,preferencePdfBugEnabled:!1,preferenceShowPreviousViewOnLoad:!0,preferenceDefaultZoomValue:"",isViewerEmbedded:window.parent!==window,url:"",externalServices:Fe,initialize:function(e){P(S.PDFJS),this.appConfig=e;var t=e.eventBus||xe();this.eventBus=t,this.bindEvents();var n=new be;n.onIdle=this.cleanup.bind(this),this.pdfRenderingQueue=n;var i=new we({eventBus:t});this.pdfLinkService=i;var r=this.externalServices.createDownloadManager();this.downloadManager=r;var a=e.mainContainer,s=e.viewerContainer;this.pdfViewer=new me({container:a,viewer:s,eventBus:t,renderingQueue:n,linkService:i,downloadManager:r}),n.setViewer(this.pdfViewer),i.setViewer(this.pdfViewer);var o=e.sidebar.thumbnailView;this.pdfThumbnailViewer=new ce({container:o,renderingQueue:n,linkService:i}),n.setThumbnailViewer(this.pdfThumbnailViewer),ae.initialize(),this.preferences=ae,this.pdfHistory=new re({linkService:i,eventBus:this.eventBus}),i.setHistory(this.pdfHistory),this.findController=new Pe({pdfViewer:this.pdfViewer}),this.findController.onUpdateResultsCount=function(e){this.supportsIntegratedFind||this.findBar.updateResultsCount(e)}.bind(this),this.findController.onUpdateState=function(e,t,n){this.supportsIntegratedFind?this.externalServices.updateFindControlState({result:e,findPrevious:t}):this.findBar.updateUIState(e,t,n)}.bind(this),this.pdfViewer.setFindController(this.findController);var l=Object.create(e.findBar);l.findController=this.findController,l.eventBus=this.eventBus,this.findBar=new Ce(l),this.overlayManager=ye,this.handTool=new pe({container:a,eventBus:this.eventBus}),this.pdfDocumentProperties=new fe(e.documentProperties),he.initialize(e.secondaryToolbar,t),this.secondaryToolbar=he,this.supportsFullscreen&&(this.pdfPresentationMode=new de({container:a,viewer:s,pdfViewer:this.pdfViewer,eventBus:this.eventBus,contextMenuItems:e.fullscreen})),this.passwordPrompt=new ue(e.passwordOverlay),this.pdfOutlineViewer=new Ae({container:e.sidebar.outlineView,eventBus:this.eventBus,linkService:i}),this.pdfAttachmentViewer=new Se({container:e.sidebar.attachmentsView,eventBus:this.eventBus,downloadManager:r});var c=Object.create(e.sidebar);c.pdfViewer=this.pdfViewer,c.pdfThumbnailViewer=this.pdfThumbnailViewer,c.pdfOutlineViewer=this.pdfOutlineViewer,c.eventBus=this.eventBus,this.pdfSidebar=new oe(c),this.pdfSidebar.onToggled=this.forceRendering.bind(this);var h=this,u=S.PDFJS,d=Promise.all([ae.get("enableWebGL").then(function(e){u.disableWebGL=!e}),ae.get("sidebarViewOnLoad").then(function(e){h.preferenceSidebarViewOnLoad=e}),ae.get("pdfBugEnabled").then(function(e){h.preferencePdfBugEnabled=e}),ae.get("showPreviousViewOnLoad").then(function(e){h.preferenceShowPreviousViewOnLoad=e}),ae.get("defaultZoomValue").then(function(e){h.preferenceDefaultZoomValue=e}),ae.get("disableTextLayer").then(function(e){u.disableTextLayer!==!0&&(u.disableTextLayer=e)}),ae.get("disableRange").then(function(e){u.disableRange!==!0&&(u.disableRange=e)}),ae.get("disableStream").then(function(e){u.disableStream!==!0&&(u.disableStream=e)}),ae.get("disableAutoFetch").then(function(e){u.disableAutoFetch=e}),ae.get("disableFontFace").then(function(e){u.disableFontFace!==!0&&(u.disableFontFace=e)}),ae.get("useOnlyCssZoom").then(function(e){u.useOnlyCssZoom=e}),ae.get("externalLinkTarget").then(function(e){u.isExternalLinkTargetSet()||(u.externalLinkTarget=e)})])["catch"](function(e){});return d.then(function(){h.isViewerEmbedded&&!u.isExternalLinkTargetSet()&&(u.externalLinkTarget=u.LinkTarget.TOP),h.initialized=!0})},run:function(e){this.initialize(e).then(x)},zoomIn:function(e){var t=this.pdfViewer.currentScale;do t=(t*ke).toFixed(2),t=Math.ceil(10*t)/10,t=Math.min(_e,t);while(--e>0&&_e>t);this.pdfViewer.currentScaleValue=t},zoomOut:function(e){var t=this.pdfViewer.currentScale;do t=(t/ke).toFixed(2),t=Math.floor(10*t)/10,t=Math.max(Le,t);while(--e>0&&t>Le);this.pdfViewer.currentScaleValue=t},get pagesCount(){return this.pdfDocument.numPages},set page(e){this.pdfLinkService.page=e},get page(){return this.pdfLinkService.page},get supportsPrinting(){var e=document.createElement("canvas"),t="mozPrintCallback"in e;return S.shadow(this,"supportsPrinting",t)},get supportsFullscreen(){var e=document.documentElement,t=!!(e.requestFullscreen||e.mozRequestFullScreen||e.webkitRequestFullScreen||e.msRequestFullscreen);return document.fullscreenEnabled!==!1&&document.mozFullScreenEnabled!==!1&&document.webkitFullscreenEnabled!==!1&&document.msFullscreenEnabled!==!1||(t=!1),t&&S.PDFJS.disableFullscreen===!0&&(t=!1),S.shadow(this,"supportsFullscreen",t)},get supportsIntegratedFind(){return this.externalServices.supportsIntegratedFind},get supportsDocumentFonts(){return this.externalServices.supportsDocumentFonts},get supportsDocumentColors(){return this.externalServices.supportsDocumentColors},get loadingBar(){var e=new $("#loadingBar",{});return S.shadow(this,"loadingBar",e)},get supportedMouseWheelZoomModifierKeys(){return this.externalServices.supportedMouseWheelZoomModifierKeys},setTitleUsingUrl:function(e){this.url=e;try{this.setTitle(decodeURIComponent(S.getFilenameFromUrl(e))||e)}catch(t){this.setTitle(e)}},setTitle:function(e){this.isViewerEmbedded||(document.title=e)},close:function(){var e=this.appConfig.errorWrapper.container;if(e.setAttribute("hidden","true"),!this.pdfLoadingTask)return Promise.resolve();var t=this.pdfLoadingTask.destroy();return this.pdfLoadingTask=null,this.pdfDocument&&(this.pdfDocument=null,this.pdfThumbnailViewer.setDocument(null),this.pdfViewer.setDocument(null),this.pdfLinkService.setDocument(null,null)),this.store=null,this.isInitialViewSet=!1,this.pdfSidebar.reset(),this.pdfOutlineViewer.reset(),this.pdfAttachmentViewer.reset(),this.findController.reset(),this.findBar.reset(),"undefined"!=typeof PDFBug&&PDFBug.cleanup(),t},open:function(e,t){var n=0;if((arguments.length>2||"number"==typeof t)&&(console.warn("Call of open() with obsolete signature."),"number"==typeof t&&(n=t),t=arguments[4]||null,arguments[3]&&"object"==typeof arguments[3]&&(t=Object.create(t),t.range=arguments[3]),"string"==typeof arguments[2]&&(t=Object.create(t),t.password=arguments[2])),this.pdfLoadingTask)return this.close().then(function(){return ae.reload(),this.open(e,t)}.bind(this));var i=Object.create(null);if("string"==typeof e?(this.setTitleUsingUrl(e),i.url=e):e&&"byteLength"in e?i.data=e:e.url&&e.originalUrl&&(this.setTitleUsingUrl(e.originalUrl),i.url=e.url),t)for(var r in t)i[r]=t[r];var a=this;a.downloadComplete=!1;var s=S.getDocument(i);this.pdfLoadingTask=s,s.onPassword=function(e,t){a.passwordPrompt.setUpdateCallback(e,t),a.passwordPrompt.open()},s.onProgress=function(e){a.progress(e.loaded/e.total)},s.onUnsupportedFeature=this.fallback.bind(this);var o=s.promise.then(function(e){a.load(e,n)},function(e){var t=e&&e.message,n=ne.get("loading_error",null,"An error occurred while loading the PDF.");e instanceof S.InvalidPDFException?n=ne.get("invalid_file_error",null,"Invalid or corrupted PDF file."):e instanceof S.MissingPDFException?n=ne.get("missing_file_error",null,"Missing PDF file."):e instanceof S.UnexpectedResponseException&&(n=ne.get("unexpected_response_error",null,"Unexpected server response."));var i={message:t};throw a.error(n,i),new Error(n)});return t&&t.length&&Re.pdfDocumentProperties.setFileSize(t.length),o},download:function(){function e(){i.downloadUrl(t,n)}var t=this.url.split("#")[0],n=ee(t),i=this.downloadManager;return i.onerror=function(e){Re.error("PDF failed to download.")},this.pdfDocument&&this.downloadComplete?void this.pdfDocument.getData().then(function(e){var r=S.createBlob(e,"application/pdf");i.download(r,t,n)},e).then(null,e):void e()},fallback:function(e){},error:function(e,t){var n=ne.get("error_version_info",{version:S.version||"?",build:S.build||"?"},"PDF.js v{{version}} (build: {{build}})")+"\n";t&&(n+=ne.get("error_message",{message:t.message},"Message: {{message}}"),t.stack?n+="\n"+ne.get("error_stack",{stack:t.stack},"Stack: {{stack}}"):(t.filename&&(n+="\n"+ne.get("error_file",{file:t.filename},"File: {{file}}")),t.lineNumber&&(n+="\n"+ne.get("error_line",{line:t.lineNumber},"Line: {{line}}"))));var i=this.appConfig.errorWrapper,r=i.container;r.removeAttribute("hidden");var a=i.errorMessage;a.textContent=e;var s=i.closeButton;s.onclick=function(){r.setAttribute("hidden","true")};var o=i.errorMoreInfo,l=i.moreInfoButton,c=i.lessInfoButton;l.onclick=function(){o.removeAttribute("hidden"),l.setAttribute("hidden","true"),c.removeAttribute("hidden"),o.style.height=o.scrollHeight+"px"},c.onclick=function(){o.setAttribute("hidden","true"),l.removeAttribute("hidden"),c.setAttribute("hidden","true")},l.oncontextmenu=te,c.oncontextmenu=te,s.oncontextmenu=te,l.removeAttribute("hidden"),c.setAttribute("hidden","true"),o.value=n},progress:function(e){var t=Math.round(100*e);(t>this.loadingBar.percent||isNaN(t))&&(this.loadingBar.percent=t,S.PDFJS.disableAutoFetch&&t&&(this.disableAutoFetchLoadingBarTimeout&&(clearTimeout(this.disableAutoFetchLoadingBarTimeout),this.disableAutoFetchLoadingBarTimeout=null),this.loadingBar.show(),this.disableAutoFetchLoadingBarTimeout=setTimeout(function(){this.loadingBar.hide(),this.disableAutoFetchLoadingBarTimeout=null}.bind(this),De)))},load:function(e,t){var n=this;t=t||K,this.pdfDocument=e,this.pdfDocumentProperties.setDocumentAndUrl(e,this.url);var i=e.getDownloadInfo().then(function(){n.downloadComplete=!0,n.loadingBar.hide()}),r=e.numPages,a=this.appConfig.toolbar;a.numPages.textContent=ne.get("page_of",{pageCount:r},"of {{pageCount}}"),a.pageNumber.max=r;var s=this.documentFingerprint=e.fingerprint,o=this.store=new le(s),l=null;this.pdfLinkService.setDocument(e,l);var c=this.pdfViewer;c.currentScale=t,c.setDocument(e);var h=c.firstPagePromise,u=c.pagesPromise;c.onePageRendered;this.pageRotation=0,this.pdfThumbnailViewer.setDocument(e),h.then(function(e){i.then(function(){n.eventBus.dispatch("documentload",{source:n})}),n.loadingBar.setWidth(n.appConfig.viewerContainer),S.PDFJS.disableHistory||n.isViewerEmbedded||(n.preferenceShowPreviousViewOnLoad||n.pdfHistory.clearHistoryState(),n.pdfHistory.initialize(n.documentFingerprint),n.pdfHistory.initialDestination?n.initialDestination=n.pdfHistory.initialDestination:n.pdfHistory.initialBookmark&&(n.initialBookmark=n.pdfHistory.initialBookmark));var r={destination:n.initialDestination,bookmark:n.initialBookmark,hash:null};o.initializedPromise.then(function(){var e=null,i=null;if(n.preferenceShowPreviousViewOnLoad&&o.get("exists",!1)){var a=o.get("page","1"),s=n.preferenceDefaultZoomValue||o.get("zoom",Z),l=o.get("scrollLeft","0"),c=o.get("scrollTop","0");e="page="+a+"&zoom="+s+","+l+","+c,i=o.get("sidebarView",se.NONE)}else n.preferenceDefaultZoomValue&&(e="page=1&zoom="+n.preferenceDefaultZoomValue);n.setInitialView(e,{scale:t,sidebarView:i}),r.hash=e,n.isViewerEmbedded||n.pdfViewer.focus()},function(e){console.error(e),n.setInitialView(null,{scale:t})}),u.then(function(){(r.destination||r.bookmark||r.hash)&&(n.hasEqualPageSizes||(n.initialDestination=r.destination,n.initialBookmark=r.bookmark,n.pdfViewer.currentScaleValue=n.pdfViewer.currentScaleValue,n.setInitialView(r.hash)))})}),u.then(function(){n.supportsPrinting&&e.getJavaScript().then(function(e){e.length&&(console.warn("Warning: JavaScript is not supported"),n.fallback(S.UNSUPPORTED_FEATURES.javaScript));for(var t=/\bprint\s*\(/,i=0,r=e.length;r>i;i++){var a=e[i];if(a&&t.test(a))return void setTimeout(function(){window.print()})}})});var d=[u,this.animationStartedPromise];Promise.all(d).then(function(){e.getOutline().then(function(e){n.pdfOutlineViewer.render({outline:e})}),e.getAttachments().then(function(e){n.pdfAttachmentViewer.render({attachments:e})})}),e.getMetadata().then(function(t){var i=t.info,r=t.metadata;n.documentInfo=i,n.metadata=r,console.log("PDF "+e.fingerprint+" ["+i.PDFFormatVersion+" "+(i.Producer||"-").trim()+" / "+(i.Creator||"-").trim()+"] (PDF.js: "+(S.version||"-")+(S.PDFJS.disableWebGL?"":" [WebGL]")+")");var a;if(r&&r.has("dc:title")){var s=r.get("dc:title");"Untitled"!==s&&(a=s)}!a&&i&&i.Title&&(a=i.Title),a&&n.setTitle(a+" - "+document.title),i.IsAcroFormPresent&&(console.warn("Warning: AcroForm/XFA is not supported"),n.fallback(S.UNSUPPORTED_FEATURES.forms))})},setInitialView:function(e,t){var n=t&&t.scale,i=t&&t.sidebarView;this.isInitialViewSet=!0,this.appConfig.toolbar.pageNumber.value=this.pdfViewer.currentPageNumber,this.pdfSidebar.setInitialView(this.preferenceSidebarViewOnLoad||0|i),this.initialDestination?(this.pdfLinkService.navigateTo(this.initialDestination),this.initialDestination=null):this.initialBookmark?(this.pdfLinkService.setHash(this.initialBookmark),this.pdfHistory.push({hash:this.initialBookmark},!0),this.initialBookmark=null):e?this.pdfLinkService.setHash(e):n&&(this.pdfViewer.currentScaleValue=n,this.page=1),this.pdfViewer.currentScaleValue||(this.pdfViewer.currentScaleValue=Z)},cleanup:function(){this.pdfDocument&&(this.pdfViewer.cleanup(),this.pdfThumbnailViewer.cleanup(),this.pdfDocument.cleanup())},forceRendering:function(){this.pdfRenderingQueue.printing=this.printing,this.pdfRenderingQueue.isThumbnailViewEnabled=this.pdfSidebar.isThumbnailViewVisible,this.pdfRenderingQueue.renderHighestPriority()},beforePrint:function(){if(!this.supportsPrinting){var e=ne.get("printing_not_supported",null,"Warning: Printing is not fully supported by this browser.");return void this.error(e)}var t,n,i=!1;if(this.pdfDocument&&this.pagesCount){for(t=0,n=this.pagesCount;n>t;++t)if(!this.pdfViewer.getPageView(t).pdfPage){i=!0;break}}else i=!0;if(i){var r=ne.get("printing_not_ready",null,"Warning: The PDF is not fully loaded for printing.");return void window.alert(r)}this.printing=!0,this.forceRendering();var a=this.appConfig.printContainer,s=document.querySelector("body");s.setAttribute("data-mozPrintCallback",!0),this.hasEqualPageSizes||console.warn("Not all pages have the same size. The printed result may be incorrect!"),this.pageStyleSheet=document.createElement("style");var o=this.pdfViewer.getPageView(0).pdfPage.getViewport(1);for(this.pageStyleSheet.textContent="@supports ((size:A4) and (size:1pt 1pt)) {@page { size: "+o.width+"pt "+o.height+"pt;}}",s.appendChild(this.pageStyleSheet),t=0,n=this.pagesCount;n>t;++t)this.pdfViewer.getPageView(t).beforePrint(a)},get hasEqualPageSizes(){for(var e=this.pdfViewer.getPageView(0),t=1,n=this.pagesCount;n>t;++t){var i=this.pdfViewer.getPageView(t);if(i.width!==e.width||i.height!==e.height)return!1}return!0},afterPrint:function(){for(var e=this.appConfig.printContainer;e.hasChildNodes();)e.removeChild(e.lastChild);this.pageStyleSheet&&this.pageStyleSheet.parentNode&&(this.pageStyleSheet.parentNode.removeChild(this.pageStyleSheet),this.pageStyleSheet=null),this.printing=!1,this.forceRendering()},rotatePages:function(e){var t=this.page;this.pageRotation=(this.pageRotation+360+e)%360,this.pdfViewer.pagesRotation=this.pageRotation,this.pdfThumbnailViewer.pagesRotation=this.pageRotation,this.forceRendering(),this.pdfViewer.scrollPageIntoView(t)},requestPresentationMode:function(){this.pdfPresentationMode&&this.pdfPresentationMode.request()},scrollPresentationMode:function(e){this.pdfPresentationMode&&this.pdfPresentationMode.mouseScroll(e)},bindEvents:function(){var e=this.eventBus;e.on("resize",F),e.on("localized",O),e.on("hashchange",R),e.on("beforeprint",this.beforePrint.bind(this)),e.on("afterprint",this.afterPrint.bind(this)),e.on("pagerendered",k),e.on("textlayerrendered",L),e.on("updateviewarea",D),e.on("pagechanging",J),e.on("scalechanging",Y),e.on("sidebarviewchanged",I),e.on("pagemode",_),e.on("namedaction",T),e.on("presentationmodechanged",E),e.on("presentationmode",j),e.on("openfile",N),e.on("print",U),e.on("download",V),e.on("firstpage",W),e.on("lastpage",H),e.on("rotatecw",z),e.on("rotateccw",G),e.on("documentproperties",X),e.on("find",q),e.on("fileinputchange",M)}},Me=["null","http://mozilla.github.io","https://mozilla.github.io"];window.addEventListener("resize",function(e){Re.eventBus.dispatch("resize")}),window.addEventListener("hashchange",function(e){var t=document.location.hash.substring(1);Re.eventBus.dispatch("hashchange",{hash:t})}),window.addEventListener("change",function(e){var t=e.target.files;t&&0!==t.length&&Re.eventBus.dispatch("fileinputchange",{fileInput:e.target})},!0),window.addEventListener("localized",function(e){Re.eventBus.dispatch("localized")});var Be,Oe=!1;window.addEventListener("DOMMouseScroll",Q),window.addEventListener("mousewheel",Q),window.addEventListener("click",function(e){if(he.opened){var t=Re.appConfig;(Re.pdfViewer.containsElement(e.target)||t.toolbar.container.contains(e.target)&&e.target!==t.secondaryToolbar.toggleButton)&&he.close()}},!0),window.addEventListener("keydown",function(e){if(!ye.active){var t=!1,n=(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0),i=Re.pdfViewer,r=i&&i.isInPresentationMode;if(1===n||8===n||5===n||12===n)switch(e.keyCode){case 70:Re.supportsIntegratedFind||(Re.findBar.open(),t=!0);break;case 71:if(!Re.supportsIntegratedFind){var a=Re.findController.state;a&&Re.findController.executeCommand("findagain",{query:a.query,caseSensitive:a.caseSensitive,highlightAll:a.highlightAll,findPrevious:5===n||12===n}),t=!0}break;case 61:case 107:case 187:case 171:r||Re.zoomIn(),t=!0;break;case 173:case 109:case 189:r||Re.zoomOut(),t=!0;break;case 48:case 96:r||(setTimeout(function(){i.currentScaleValue=Z}),t=!1)}if(1===n||8===n)switch(e.keyCode){case 83:Re.download(),t=!0}if(3===n||10===n)switch(e.keyCode){case 80:Re.requestPresentationMode(),t=!0;break;case 71:Re.appConfig.toolbar.pageNumber.select(),t=!0}if(t)return void e.preventDefault();var s=document.activeElement||document.querySelector(":focus"),o=s&&s.tagName.toUpperCase();if("INPUT"!==o&&"TEXTAREA"!==o&&"SELECT"!==o||27===e.keyCode){var l=!1;if(0===n)switch(e.keyCode){case 38:case 33:case 8:if(!r&&"page-fit"!==i.currentScaleValue)break;case 37:if(i.isHorizontalScrollbarEnabled)break;case 75:case 80:Re.page--,t=!0;break;case 27:he.opened&&(he.close(),t=!0),!Re.supportsIntegratedFind&&Re.findBar.opened&&(Re.findBar.close(),t=!0);break;case 40:case 34:case 32:if(!r&&"page-fit"!==i.currentScaleValue)break;case 39:if(i.isHorizontalScrollbarEnabled)break;case 74:case 78:Re.page++,t=!0;break;case 36:(r||Re.page>1)&&(Re.page=1,t=!0,l=!0);break;case 35:(r||Re.pdfDocument&&Re.page<Re.pagesCount)&&(Re.page=Re.pagesCount,t=!0,l=!0);break;case 72:r||Re.handTool.toggle();break;case 82:Re.rotatePages(90)}if(4===n)switch(e.keyCode){case 32:if(!r&&"page-fit"!==i.currentScaleValue)break;Re.page--,t=!0;break;case 82:Re.rotatePages(-90)}if(t||r||(e.keyCode>=33&&e.keyCode<=40||32===e.keyCode&&"BUTTON"!==o)&&(l=!0),2===n)switch(e.keyCode){case 37:r&&(Re.pdfHistory.back(),t=!0);break;case 39:r&&(Re.pdfHistory.forward(),t=!0)}l&&!i.containsElement(s)&&i.focus(),t&&e.preventDefault()}}}),window.addEventListener("beforeprint",function(e){Re.eventBus.dispatch("beforeprint")}),window.addEventListener("afterprint",function(e){Re.eventBus.dispatch("afterprint")}),function(){Re.animationStartedPromise=new Promise(function(e){window.requestAnimationFrame(e)})}(),e.PDFViewerApplication=Re,e.DefaultExernalServices=Fe})}).call(pdfjsWebLibs),document.addEventListener("DOMContentLoaded",webViewerLoad,!0);