2 lines
838 KiB
JavaScript
2 lines
838 KiB
JavaScript
|
$wnd.web3d.runAsyncCallback12('function B6l(){}\nfunction C6l(){}\nfunction jzk(a){this.a=a}\nfunction kzk(a){this.a=a}\nfunction lzk(a){this.a=a}\nfunction mzk(a){this.a=a}\nfunction nzk(a){this.a=a}\nfunction ozk(a){this.a=a}\nfunction pzk(a){this.a=a}\nfunction qzk(a){this.a=a}\nfunction rzk(a){this.a=a}\nfunction dum(a){this.a=a}\nfunction fum(a){this.a=a}\nfunction gum(a){this.a=a}\nfunction eum(a,b){this.a=a;this.b=b}\nfunction hum(a,b){this.a=a;this.b=b}\nfunction izk(a,b){this.a=a;this.b=b}\nfunction ezk(a,b){gzk(a.n,b)}\nfunction gzk(a,b){BMc(a.a,b+\'%\')}\nfunction azk(a){!!a.e||a.f.rb.click()}\nfunction D6l(){D6l=muc;z6l=new B6l}\nfunction E6l(){E6l=muc;A6l=new C6l}\nfunction _tm(a,b){if(!a.b){return}dzk(a.b,b)}\nfunction Wyk(a,b){(b.a[L1m]|0)==13&&Syk(a,false)}\nfunction Yyk(a){xMc(a.a,F5n);qMc(a.a,Lyn);a.c=false}\nfunction Xyk(a){xMc(a.a,F5n);qMc(a.a,x1m);a.c=true}\nfunction Zyk(a){xMc(a.a,F5n);qMc(a.a,\'hover\')}\nfunction $yk(a){a.c||(xMc(a.a,F5n),qMc(a.a,Lyn))}\nfunction _yk(a){var b;b=a.k;ZQl(a.J,\'pdf.png\',b)}\nfunction Uyk(a,b){var c;c=b.rb;bzk(a,c.files.item(0))}\nfunction dzk(a,b){a.j.rb.setAttribute(Pen,b);a.k=b}\nfunction bum(a,b){if(b>0&&b<=a.a.numPages){a.c=b;return true}return false}\nfunction Vtm(a,b){var c;c={};c[\'canvasContext\']=b;c[\'viewport\']=a;return c}\nfunction Wtm(a,b){var c;if(b.lengthComputable){c=b.loaded/b.total*100;ezk(a.b,c)}return null}\nfunction Vyk(a,b){var c;c=b.dataTransfer.files;bzk(a,c.item(0));b.stopPropagation();b.preventDefault()}\nfunction Ztm(a,b){var c;c=$wnd.window.pdfjsLib.getDocument(b);c.promise.then(nuc(fum.prototype.bj,fum,[a]))}\nfunction Tyk(a,b,c,d){var e;e=new YOj(c,null,24,24);GMc(e.rb,d,true);oem(e.rb,lKn,new qgm(e,a));qJj(b,e,b.rb);return e}\nfunction hzk(a){this.b=a;RIj.call(this);GMc(this.rb,\'progressBar\',true);this.a=new RIj;OIj(this,this.a);BMc(this.a,\'0%\')}\nfunction czk(a){bum(a.e,1);Ryk(a);if(a.e.a.numPages==1){qMc(a.d,WMn);qMc(a.o,WMn);AMc(a.i,false)}else{dwl(a.a,\'\'+a.e.c)}kQj(a.D,false)}\nfunction Ytm(a,b){var c,d,e;d=b.getViewport((e={},e[Gbn]=2,e));c=b.render(Vtm(d,a.getContext(s1m)));a.width=d.width;a.height=d.height;return c.promise}\nfunction cum(a,b){var c;this.b=b;c=new $wnd.FileReader;c.onprogress=nuc(dum.prototype.$i,dum,[this]);c.addEventListener(ELn,new eum(this,c));!!a&&c.readAsDataURL(a)}\nfunction aum(a){var b;if(a.c>1){bum(a,a.c-1);b=(red(),ned).createElement(L2m);a.a.getPage(a.c).then(nuc(gum.prototype.bj,gum,[b])).then(nuc(hum.prototype.bj,hum,[a,b]))}}\nfunction $tm(a){var b;if(a.c<a.a.numPages){bum(a,a.c+1);b=(red(),ned).createElement(L2m);a.a.getPage(a.c).then(nuc(gum.prototype.bj,gum,[b])).then(nuc(hum.prototype.bj,hum,[a,b]))}}\nfunction Xtm(a,b){var c;a.a=b;czk(a.b.n.b);c=(red(),ned).createElement(L2m);a.a.getPage(a.c).then(nuc(gum.prototype.bj,gum,[c])).then(nuc(hum.prototype.bj,hum,[a,c]));return null}\nfunction Syk(b,c){var d,e,f;try{e=Pfd((f=b.a.D.c.rb[p1m],f==null?null:\'\'+f),10);bum(b.e,e)||c||dwl(b.a,\'\'+b.e.c)}catch(a){a=Etc(a);if(ff(a,193)){d=a;Pwj(\'page nr not exists: \'+d.g)}else throw Ftc(a)}}\nfunction bzk(a,b){var c;DJj(a.g);rMc(a.g,\'withPdf\');a.b=new GJj;qMc(a.b,G5n);a.n=new hzk(a);CJj(a.g,a.n);c=new CSj(hmm(a.J.lb,\'PdfLoadText\'));GMc(c.rb,\'pdfDialogText\',true);GMc(c.rb,\'loadText\',true);CJj(a.b,a.n);CJj(a.b,c);CJj(a.g,a.b);a.e=new cum(b,a)}\nfunction Ryk(a){var b,c,d;DJj(a.g);qMc(a.g,\'withPdf\');d=new GJj;GMc(d.rb,\'pdfPreview\',true);a.j=new qfm(\'\');qMc(a.j,\'previewImage\');a.d=Tyk(a,d,(GKj(),ZJj),\'leftBtn\');CJj(d,a.j);a.o=Tyk(a,d,(HKj(),$Jj),\'rightBtn\');a.i=new GJj;qMc(a.i,\'pdfPageText\');a.a=new nwl(3,a.J);dwl(a.a,\'1\');qMc(a.a,\'curPageField\');c=new CSj(hmm(a.J.lb,BVn));CJj(a.i,c);CJj(a.i,a.a);b=new CSj(hmm(a.J.lb,\'of\')+\' \'+a.e.a.numPages);CJj(a.i,b);CJj(a.g,d);CJj(a.g,a.i);hvl(a.a,new kzk(a));ivl(a.a,new lzk(a));JMc(a.a.D.c,new mzk(a),(Klk(),Klk(),Jlk));JMc(a.a.D.c,new nzk(a),(yJm(),yJm(),xJm));JMc(a.a.D.c,new ozk(a),(BKm(),BKm(),AKm));JMc(a.a.D.c,new pzk(a),(yKm(),yKm(),xKm))}\nfunction fzk(a,b){var c,d,e,f,g;sQj.call(this,a,b,false,true);this.f=(c=new b1k,JMc(c,new
|