1
|
"use strict";"undefined"==typeof PDFJS&&(("undefined"!=typeof window?window:this).PDFJS={}),function(){function subarray(start,end){return new TypedArray(this.slice(start,end))}function setArrayOffset(array,offset){arguments.length<2&&(offset=0);for(var i=0,n=array.length;n>i;++i,++offset)this[offset]=255&array[i]}function TypedArray(arg1){var result,i,n;if("number"==typeof arg1)for(result=[],i=0;arg1>i;++i)result[i]=0;else if("slice"in arg1)result=arg1.slice(0);else for(result=[],i=0,n=arg1.length;n>i;++i)result[i]=arg1[i];return result.subarray=subarray,result.buffer=result,result.byteLength=result.length,result.set=setArrayOffset,"object"==typeof arg1&&arg1.buffer&&(result.buffer=arg1.buffer),result}return"undefined"!=typeof Uint8Array?("undefined"==typeof Uint8Array.prototype.subarray&&(Uint8Array.prototype.subarray=function(start,end){return new Uint8Array(this.slice(start,end))},Float32Array.prototype.subarray=function(start,end){return new Float32Array(this.slice(start,end))}),void("undefined"==typeof Float64Array&&(window.Float64Array=Float32Array))):(window.Uint8Array=TypedArray,window.Int8Array=TypedArray,window.Uint32Array=TypedArray,window.Int32Array=TypedArray,window.Uint16Array=TypedArray,window.Float32Array=TypedArray,void(window.Float64Array=TypedArray))}(),function(){window.URL||(window.URL=window.webkitURL)}(),function(){if("undefined"!=typeof Object.defineProperty){var definePropertyPossible=!0;try{Object.defineProperty(new Image,"id",{value:"test"});var Test=function(){};Test.prototype={get id(){}},Object.defineProperty(new Test,"id",{value:"",configurable:!0,enumerable:!0,writable:!1})}catch(e){definePropertyPossible=!1}if(definePropertyPossible)return}Object.defineProperty=function(obj,name,def){delete obj[name],"get"in def&&obj.__defineGetter__(name,def.get),"set"in def&&obj.__defineSetter__(name,def.set),"value"in def&&(obj.__defineSetter__(name,function(value){return this.__defineGetter__(name,function(){return value}),value}),obj[name]=def.value)}}(),function(){function responseTypeSetter(){this.overrideMimeType("text/plain; charset=x-user-defined")}function responseGetter(){var i,text=this.responseText,n=text.length,result=new Uint8Array(n);for(i=0;n>i;++i)result[i]=255&text.charCodeAt(i);return result.buffer}var xhrPrototype=XMLHttpRequest.prototype,xhr=new XMLHttpRequest;if("overrideMimeType"in xhr||Object.defineProperty(xhrPrototype,"overrideMimeType",{value:function(){}}),!("responseType"in xhr)){if(PDFJS.disableWorker=!0,"undefined"!=typeof VBArray)return void Object.defineProperty(xhrPrototype,"response",{get:function(){return"arraybuffer"===this.responseType?new Uint8Array(new VBArray(this.responseBody).toArray()):this.responseText}});"function"==typeof xhr.overrideMimeType&&Object.defineProperty(xhrPrototype,"responseType",{set:responseTypeSetter}),Object.defineProperty(xhrPrototype,"response",{get:responseGetter})}}(),function(){if(!("btoa"in window)){var digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";window.btoa=function(chars){var i,n,buffer="";for(i=0,n=chars.length;n>i;i+=3){var b1=255&chars.charCodeAt(i),b2=255&chars.charCodeAt(i+1),b3=255&chars.charCodeAt(i+2),d1=b1>>2,d2=(3&b1)<<4|b2>>4,d3=n>i+1?(15&b2)<<2|b3>>6:64,d4=n>i+2?63&b3:64;buffer+=digits.charAt(d1)+digits.charAt(d2)+digits.charAt(d3)+digits.charAt(d4)}return buffer}}}(),function(){if(!("atob"in window)){var digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";window.atob=function(input){if(input=input.replace(/=+$/,""),input.length%4===1)throw new Error("bad atob input");for(var bs,buffer,bc=0,idx=0,output="";buffer=input.charAt(idx++);~buffer&&(bs=bc%4?64*bs+buffer:buffer,bc++%4)?output+=String.fromCharCode(255&bs>>(-2*bc&6)):0)buffer=digits.indexOf(buffer);return output}}}(),function(){"undefined"==typeof Function.prototype.bind&&(Function.prototype.bind=function(obj){var fn=this,headArgs=Array.prototype.slice.call(arguments,1),bound=function(){var args=headArgs.concat(Array.prototype.slice.call(arguments));return fn.apply(obj,args)};return bound})}(),function(){var div=document.createElement("div");"dataset"in div||Object.defineProperty(HTMLElement.prototype,"dataset",{get:function(){if(this._dataset)return this._dataset;for(var dataset={},j=0,jj=this.attributes.length;jj>j;j++){var attribute=this.attributes[j];if("data-"===attribute.name.substring(0,5)){var key=attribute.name.substring(5).replace(/\-([a-z])/g,function(all,ch){return ch.toUpperCase()});dataset[key]=attribute.value}}return Object.defineProperty(this,"_dataset",{value:dataset,writable:!1,enumerable:!1}),dataset},enumerable:!0})}(),function(){function changeList(element,itemName,add,remove){var s=element.className||"",list=s.split(/\s+/g);""===list[0]&&list.shift();var index=list.indexOf(itemName);return 0>index&&add&&list.push(itemName),index>=0&&remove&&list.splice(index,1),element.className=list.join(" "),index>=0}var div=document.createElement("div");if(!("classList"in div)){var classListPrototype={add:function(name){changeList(this.element,name,!0,!1)},contains:function(name){return changeList(this.element,name,!1,!1)},remove:function(name){changeList(this.element,name,!1,!0)},toggle:function(name){changeList(this.element,name,!0,!0)}};Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){if(this._classList)return this._classList;var classList=Object.create(classListPrototype,{element:{value:this,writable:!1,enumerable:!0}});return Object.defineProperty(this,"_classList",{value:classList,writable:!1,enumerable:!1}),classList},enumerable:!0})}}(),function(){"console"in window?"bind"in console.log||(console.log=function(fn){return function(msg){return fn(msg)}}(console.log),console.error=function(fn){return function(msg){return fn(msg)}}(console.error),console.warn=function(fn){return function(msg){return fn(msg)}}(console.warn)):window.console={log:function(){},error:function(){},warn:function(){}}}(),function(){function ignoreIfTargetDisabled(event){isDisabled(event.target)&&event.stopPropagation()}function isDisabled(node){return node.disabled||node.parentNode&&isDisabled(node.parentNode)}-1!==navigator.userAgent.indexOf("Opera")&&document.addEventListener("click",ignoreIfTargetDisabled,!0)}(),function(){navigator.userAgent.indexOf("Trident")>=0&&(PDFJS.disableCreateObjectURL=!0)}(),function(){function formatLocale(locale){var split=locale.split(/[-_]/);return split[0]=split[0].toLowerCase(),split.length>1&&(split[1]=split[1].toUpperCase()),split.join("-")}if(!("language"in navigator&&/^[a-z]+(-[A-Z]+)?$/.test(navigator.language))){var language=navigator.language||navigator.userLanguage||"en-US";PDFJS.locale=formatLocale(language)}}(),function(){var isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,regex=/Android\s[0-2][^\d]/,isOldAndroid=regex.test(navigator.userAgent);(isSafari||isOldAndroid)&&(PDFJS.disableRange=!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(arr){for(var i=0,ii=this.length;ii>i;i++)this[i]=arr[i]});else{var versionMatch,polyfill=!1;if(navigator.userAgent.indexOf("Chrom")>=0?(versionMatch=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./),polyfill=versionMatch&&parseInt(versionMatch[2])<21):navigator.userAgent.indexOf("Android")>=0?polyfill=/Android\s[0-4][^\d]/g.test(navigator.userAgent):navigator.userAgent.indexOf("Safari")>=0&&(versionMatch=navigator.userAgent.match(/Version\/([0-9]+)\.([0-9]+)\.([0-9]+) Safari\//),polyfill=versionMatch&&parseInt(versionMatch[1])<6),polyfill){var contextPrototype=window.CanvasRenderingContext2D.prototype;contextPrototype._createImageData=contextPrototype.createImageData,contextPrototype.createImageData=function(w,h){var imageData=this._createImageData(w,h);return imageData.data.set=function(arr){for(var i=0,ii=this.length;ii>i;i++)this[i]=arr[i]},imageData}}}}(),function(){function fakeRequestAnimationFrame(callback){window.setTimeout(callback,20)}var isIOS=/(iPad|iPhone|iPod)/g.test(navigator.userAgent);return isIOS?void(window.requestAnimationFrame=fakeRequestAnimationFrame):void("requestAnimationFrame"in window||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||fakeRequestAnimationFrame))}(),function(){var isIOS=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),isAndroid=/Android/g.test(navigator.userAgent);(isIOS||isAndroid)&&(PDFJS.maxCanvasPixels=5242880)}();
|