PageSourceSearch

https://szerzi.hu/common-7105328f.e9eba65af48ae36f.js

js szerzi.hu collected 2026-10-04 13:25:15 UTC 108,825 bytes, 1 lines download raw bytes

1(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[3300],{36501:function(De,Be,Ee){De.exports=function(q){var v={};function O(y){if(v[y])return v[y].exports;var M=v[y]={i:y,l:!1,exports:{}};return q[y].call(M.exports,M,M.exports,O),M.l=!0,M.exports}return O.m=q,O.c=v,O.d=function(y,M,G){O.o(y,M)||Object.defineProperty(y,M,{enumerable:!0,get:G})},O.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},O.t=function(y,M){if(1&M&&(y=O(y)),8&M||4&M&&"object"==typeof y&&y&&y.__esModule)return y;var G=Object.create(null);if(O.r(G),Object.defineProperty(G,"default",{enumerable:!0,value:y}),2&M&&"string"!=typeof y)for(var D in y)O.d(G,D,function(z){return y[z]}.bind(null,D));return G},O.n=function(y){var M=y&&y.__esModule?function(){return y.default}:function(){return y};return O.d(M,"a",M),M},O.o=function(y,M){return Object.prototype.hasOwnProperty.call(y,M)},O.p="",O(O.s=0)}([function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),Object.defineProperty(v,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return y.AnnotationLayerBuilder}}),Object.defineProperty(v,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return y.DefaultAnnotationLayerFactory}}),Object.defineProperty(v,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return M.DefaultTextLayerFactory}}),Object.defineProperty(v,"TextLayerBuilder",{enumerable:!0,get:function(){return M.TextLayerBuilder}}),Object.defineProperty(v,"EventBus",{enumerable:!0,get:function(){return G.EventBus}}),Object.defineProperty(v,"NullL10n",{enumerable:!0,get:function(){return G.NullL10n}}),Object.defineProperty(v,"ProgressBar",{enumerable:!0,get:function(){return G.ProgressBar}}),Object.defineProperty(v,"PDFLinkService",{enumerable:!0,get:function(){return D.PDFLinkService}}),Object.defineProperty(v,"SimpleLinkService",{enumerable:!0,get:function(){return D.SimpleLinkService}}),Object.defineProperty(v,"DownloadManager",{enumerable:!0,get:function(){return z.DownloadManager}}),Object.defineProperty(v,"GenericL10n",{enumerable:!0,get:function(){return H.GenericL10n}}),Object.defineProperty(v,"PDFFindController",{enumerable:!0,get:function(){return V.PDFFindController}}),Object.defineProperty(v,"PDFHistory",{enumerable:!0,get:function(){return B.PDFHistory}}),Object.defineProperty(v,"PDFPageView",{enumerable:!0,get:function(){return w.PDFPageView}}),Object.defineProperty(v,"PDFSinglePageViewer",{enumerable:!0,get:function(){return o.PDFSinglePageViewer}}),Object.defineProperty(v,"PDFViewer",{enumerable:!0,get:function(){return u.PDFViewer}});var y=O(1),M=O(8),G=O(3),D=O(7),z=O(9),H=O(11),V=O(13),B=O(15),w=O(16),o=O(18),u=O(20)},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DefaultAnnotationLayerFactory=v.AnnotationLayerBuilder=void 0;var y=O(2),M=O(3),G=O(7);function D(w,o){if(!(w instanceof o))throw new TypeError("Cannot call a class as a function")}function z(w,o){for(var u=0;u<o.length;u++){var p=o[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,p.key,p)}}function H(w,o,u){return o&&z(w.prototype,o),u&&z(w,u),w}var V=function(){function w(o){var u=o.pageDiv,p=o.pdfPage,h=o.linkService,b=o.downloadManager,c=o.imageResourcesPath,i=void 0===c?"":c,e=o.renderInteractiveForms,t=void 0!==e&&e,r=o.l10n,n=void 0===r?M.NullL10n:r;D(this,w),this.pageDiv=u,this.pdfPage=p,this.linkService=h,this.downloadManager=b,this.imageResourcesPath=i,this.renderInteractiveForms=t,this.l10n=n,this.div=null,this._cancelled=!1}return H(w,[{key:"render",value:function(u){var p=this;this.pdfPage.getAnnotations({intent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display"}).then(function(b){if(!p._cancelled){var c={viewport:u.clone({dontFlip:!0}),div:p.div,annotations:b,page:p.pdfPage,imageResourcesPath:p.imageResourcesPath,renderInteractiveForms:p.renderInteractiveForms,linkService:p.linkService,downloadManager:p.downloadManager};if(p.div)y.AnnotationLayer.update(c);else{if(0===b.length)return;p.div=document.createElement("div"),p.div.className="annotationLayer",p.pageDiv.appendChild(p.div),c.div=p.div,y.AnnotationLayer.render(c),p.l10n.translate(p.div)}}})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){!this.div||this.div.setAttribute("hidden","true")}}]),w}();v.AnnotationLayerBuilder=V;var B=function(){function w(){D(this,w)}return H(w,[{key:"createAnnotationLayerBuilder",value:function(u,p){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:M.NullL10n;return new V({pageDiv:u,pdfPage:p,imageResourcesPath:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",renderInteractiveForms:arguments.length>3&&void 0!==arguments[3]&&arguments[3],linkService:new G.SimpleLinkService,l10n:c})}}]),w}();v.DefaultAnnotationLayerFactory=B},function(q,v,O){"use strict";var y;y=typeof window<"u"&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:Ee(75601),q.exports=y},function(q,v,O){"use strict";
1Object.defineProperty(v,"__esModule",{value:!0}),v.isValidRotation=function oe(d){return Number.isInteger(d)&&d%90==0},v.isValidScrollMode=function ie(d){return Number.isInteger(d)&&Object.values(m).includes(d)&&d!==m.UNKNOWN},v.isValidSpreadMode=function we(d){return Number.isInteger(d)&&Object.values(L).includes(d)&&d!==L.UNKNOWN},v.isPortraitOrientation=function _e(d){return d.width<=d.height},v.clamp=Ie,v.getPDFFileNameFromURL=function ee(d){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof d)return T;if(J(d))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),T;var S=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,x=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(d),F=S.exec(x[1])||S.exec(x[2])||S.exec(x[3]);if(F&&(F=F[0]).includes("%"))try{F=S.exec(decodeURIComponent(F))[0]}catch{}return F||T},v.noContextMenuHandler=function ne(d){d.preventDefault()},v.parseQueryString=function E(d){for(var T=d.split("&"),C=Object.create(null),S=0,x=T.length;S<x;++S){var F=T[S].split("="),Q=F[0].toLowerCase(),X=F.length>1?F[1]:null;C[decodeURIComponent(Q)]=decodeURIComponent(X)}return C},v.backtrackBeforeAllVisibleElements=$,v.getVisibleElements=function Y(d,T){var C=arguments.length>2&&void 0!==arguments[2]&&arguments[2],S=arguments.length>3&&void 0!==arguments[3]&&arguments[3],x=d.scrollTop,F=x+d.clientHeight,Q=d.scrollLeft,X=Q+d.clientWidth;function K(he){var le=he.div;return le.offsetTop+le.clientTop+le.clientHeight>x}function re(he){var le=he.div;return le.offsetLeft+le.clientLeft+le.clientWidth>Q}var te=[],se=T.length,ve=0===se?0:I(T,S?re:K);ve>0&&ve<se&&!S&&(ve=$(ve,T,x));for(var Se=S?X:-1,Le=ve;Le<se;Le++){var ke=T[Le],ce=ke.div,pe=ce.offsetLeft+ce.clientLeft,ye=ce.offsetTop+ce.clientTop,Te=ce.clientWidth,Ce=ce.clientHeight,Me=pe+Te,be=ye+Ce;if(-1===Se)be>=F&&(Se=be);else if((S?pe:ye)>Se)break;if(!(be<=x||ye>=F||Me<=Q||pe>=X)){var Ae=Math.max(0,x-ye)+Math.max(0,be-F),Oe=Math.max(0,Q-pe)+Math.max(0,Me-X);te.push({id:ke.id,x:pe,y:ye,view:ke,percent:(Ce-Ae)*(Te-Oe)*100/Ce/Te|0})}}var Ve=te[0],Fe=te[te.length-1];return C&&te.sort(function(he,le){var de=he.percent-le.percent;return Math.abs(de)>.001?-de:he.id-le.id}),{first:Ve,last:Fe,views:te}},v.roundToDivide=function U(d,T){var C=d%T;return 0===C?d:Math.round(d-C+T)},v.getPageSizeInches=function W(d){var C=d.userUnit,S=d.rotate,x=function V(d,T){return function p(d){if(Array.isArray(d))return d}(d)||function u(d,T){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(d)){var C=[],S=!0,x=!1,F=void 0;try{for(var X,Q=d[Symbol.iterator]();!(S=(X=Q.next()).done)&&(C.push(X.value),!T||C.length!==T);S=!0);}catch(K){x=!0,F=K}finally{try{!S&&null!=Q.return&&Q.return()}finally{if(x)throw F}}return C}}(d,T)||function w(d,T){if(d){if("string"==typeof d)return o(d,T);var C=Object.prototype.toString.call(d).slice(8,-1);if("Object"===C&&d.constructor&&(C=d.constructor.name),"Map"===C||"Set"===C)return Array.from(d);if("Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return o(d,T)}}(d,T)||function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d.view,4),re=S%180!=0,te=(x[2]-x[0])/72*C,se=(x[3]-x[1])/72*C;return{width:re?se:te,height:re?te:se}},v.approximateFraction=function A(d){if(Math.floor(d)===d)return[d,1];var T=1/d;if(T>8)return[1,8];if(Math.floor(T)===T)return[1,T];for(var S=d>1?T:d,x=0,F=1,Q=1,X=1;;){var K=x+Q,re=F+X;if(re>8)break;S<=K/re?(Q=K,X=re):(x=K,F=re)}return S-x/F<Q/X-S?S===d?[x,F]:[F,x]:S===d?[Q,X]:[X,Q]},v.getOutputScale=function R(d){var S=(window.devicePixelRatio||1)/(d.webkitBackingStorePixelRatio||d.mozBackingStorePixelRatio||d.msBackingStorePixelRatio||d.oBackingStorePixelRatio||d.backingStorePixelRatio||1);return{sx:S,sy:S,scaled:1!==S}},v.scrollIntoView=function f(d,T){var C=arguments.length>2&&void 0!==arguments[2]&&arguments[2],S=d.offsetParent;if(S){for(var x=d.offsetTop+d.clientTop,F=d.offsetLeft+d.clientLeft;S.clientHeight===S.scrollHeight&&S.clientWidth===S.scrollWidth||C&&"hidden"===getComputedStyle(S).overflow;)if(S.dataset._scaleY&&(x/=S.dataset._scaleY,F/=S.dataset._scaleX),x+=S.offsetTop,F+=S.offsetLeft,!(S=S.offsetParent))return;T&&(void 0!==T.top&&(x+=T.top),void 0!==T.left&&(S.scrollLeft=F+=T.left)),S.scrollTop=x}else console.error("offsetParent is not set -- cannot scroll")},v.watchScroll=function Z(d,T){var C=function(Q){x||(x=window.requestAnimationFrame(function(){x=null;var K=d.scrollLeft,re=S.lastX;K!==re&&(S.right=K>re),S.lastX=K;var te=d.scrollTop,se=S.lastY;te!==se&&(S.down=te>se),S.lastY=te,T(S)}))},S={right:!0,down:!0,lastX:d.scrollLeft,lastY:d.scrollTop,_eventHandler:C},x=null;return d.addEventListener("scroll",C,!0),S},v.binarySearchFirstItem=I,v.normalizeWheelEventDelta=function ae(d){var T=Math.sqrt(d.deltaX*d.deltaX+d.deltaY*d.deltaY),C=Math.atan2(d.deltaY,d.deltaX);-.25*Math.PI<C&&C<.75*Math.PI&&(T=-T);return 0===d.deltaMode?T/=900:1===d.deltaMode&&(T/=30),T},v.waitOnEventOrTimeout=function me(d){var T=d.target,C=d.name,S=d.delay,x=void 0===S?0:S;return new Promise(function(F,Q){if("object"!==H(T)||!C||"string"!=typeof C||!(Number.isInteger(x)&&x>
1=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function X(se){T instanceof Pe?T._off(C,K):T.removeEventListener(C,K),te&&clearTimeout(te),F(se)}var K=X.bind(null,ue.EVENT);T instanceof Pe?T._on(C,K):T.addEventListener(C,K);var re=X.bind(null,ue.TIMEOUT),te=setTimeout(re,x)})},v.moveToEndOfArray=function Re(d,T){for(var C=[],S=d.length,x=0,F=0;F<S;++F)T(d[F])?C.push(d[F]):(d[x]=d[F],++x);for(var Q=0;x<S;++Q,++x)d[x]=C[Q]},v.WaitOnType=v.animationStarted=v.ProgressBar=v.EventBus=v.NullL10n=v.SpreadMode=v.ScrollMode=v.TextLayerMode=v.RendererType=v.PresentationModeState=v.VERTICAL_PADDING=v.SCROLLBAR_PADDING=v.MAX_AUTO_SCALE=v.UNKNOWN_SCALE=v.MAX_SCALE=v.MIN_SCALE=v.DEFAULT_SCALE=v.DEFAULT_SCALE_VALUE=v.CSS_UNITS=v.AutoPrintRegExp=void 0;var y=function M(d){return d&&d.__esModule?d:{default:d}}(O(4));function G(d,T){if(!(d instanceof T))throw new TypeError("Cannot call a class as a function")}function D(d,T){for(var C=0;C<T.length;C++){var S=T[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(d,S.key,S)}}function z(d,T,C){return T&&D(d.prototype,T),C&&D(d,C),d}function H(d){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(C){return typeof C}:function(C){return C&&"function"==typeof Symbol&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C})(d)}function o(d,T){(null==T||T>d.length)&&(T=d.length);for(var C=0,S=new Array(T);C<T;C++)S[C]=d[C];return S}function h(d,T,C,S,x,F,Q){try{var X=d[F](Q),K=X.value}catch(re){return void C(re)}X.done?T(K):Promise.resolve(K).then(S,x)}function b(d){return function(){var T=this,C=arguments;return new Promise(function(S,x){var F=d.apply(T,C);function Q(K){h(F,S,x,Q,X,"next",K)}function X(K){h(F,S,x,Q,X,"throw",K)}Q(void 0)})}}v.CSS_UNITS=96/72,v.DEFAULT_SCALE_VALUE="auto",v.DEFAULT_SCALE=1,v.MIN_SCALE=.1,v.MAX_SCALE=10,v.UNKNOWN_SCALE=0,v.MAX_AUTO_SCALE=1.25,v.SCROLLBAR_PADDING=40,v.VERTICAL_PADDING=5,v.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},v.RendererType={CANVAS:"canvas",SVG:"svg"},v.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};var m={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};v.ScrollMode=m;var L={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function N(d,T){return T?d.replace(/\{\{\s*(\w+)\s*\}\}/g,function(C,S){return S in T?T[S]:"{{"+S+"}}"}):d}function I(d,T){var C=0,S=d.length-1;if(S<0||!T(d[S]))return d.length;if(T(d[C]))return C;for(;C<S;){var x=C+S>>1;T(d[x])?S=x:C=x+1}return C}function $(d,T,C){if(d<2)return d;var S=T[d].div,x=S.offsetTop+S.clientTop;x>=C&&(x=(S=T[d-1].div).offsetTop+S.clientTop);for(var F=d-2;F>=0&&!((S=T[F].div).offsetTop+S.clientTop+S.clientHeight<=x);--F)d=F;return d}function J(d){for(var T=0,C=d.length;T<C&&""===d[T].trim();)T++;return"data:"===d.substring(T,T+5).toLowerCase()}v.SpreadMode=L,v.AutoPrintRegExp=/\bprint\s*\(/,v.NullL10n={getLanguage:function(){return b(y.default.mark(function T(){return y.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return","en-us");case 1:case"end":return S.stop()}},T)}))()},getDirection:function(){return b(y.default.mark(function T(){return y.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return","ltr");case 1:case"end":return S.stop()}},T)}))()},get:function(T,C,S){return b(y.default.mark(function x(){return y.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return Q.abrupt("return",N(S,C));case 1:case"end":return Q.stop()}},x)}))()},translate:function(T){return b(y.default.mark(function C(){return y.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:case"end":return x.stop()}},C)}))()}};var ue={EVENT:"event",TIMEOUT:"timeout"};v.WaitOnType=ue;var fe=new Promise(function(d){window.requestAnimationFrame(d)});v.animationStarted=fe;var Pe=function(){function d(T){G(this,d),this._listeners=Object.create(null)}return z(d,[{key:"on",value:function(C,S){this._on(C,S,{external:!0})}},{key:"off",value:function(C,S){this._off(C,S,{external:!0})}},{key:"dispatch",value:function(C){var S=this._listeners[C];if(S&&0!==S.length){var F,x=Array.prototype.slice.call(arguments,1
1);S.slice(0).forEach(function(Q){var X=Q.listener;if(Q.external)return F||(F=[]),void F.push(X);X.apply(null,x)}),F&&(F.forEach(function(Q){Q.apply(null,x)}),F=null)}}},{key:"_on",value:function(C,S){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,F=this._listeners[C];F||(this._listeners[C]=F=[]),F.push({listener:S,external:!0===(x&&x.external)})}},{key:"_off",value:function(C,S){var F=this._listeners[C];if(F)for(var Q=0,X=F.length;Q<X;Q++)if(F[Q].listener===S)return void F.splice(Q,1)}}]),d}();function Ie(d,T,C){return Math.min(Math.max(d,T),C)}v.EventBus=Pe;var Ne=function(){function d(T){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=C.height,x=C.width,F=C.units;G(this,d),this.visible=!0,this.div=document.querySelector(T+" .progress"),this.bar=this.div.parentNode,this.height=S||100,this.width=x||100,this.units=F||"%",this.div.style.height=this.height+this.units,this.percent=0}return z(d,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate"),this.div.style.width=this.width*this._percent/100+this.units}},{key:"setWidth",value:function(C){if(C){var x=C.parentNode.offsetWidth-C.offsetWidth;x>0&&(this.bar.style.width="calc(100% - ".concat(x,"px)"))}}},{key:"hide",value:function(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(C){this._indeterminate=isNaN(C),this._percent=Ie(C,0,100),this._updateBar()}}]),d}();v.ProgressBar=Ne},function(q,v,O){"use strict";q.exports=O(5)},function(q,v,O){"use strict";(function(y){function M(D){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(D)}var G=function(D){var V,z=Object.prototype,H=z.hasOwnProperty,B="function"==typeof Symbol?Symbol:{},w=B.iterator||"@@iterator",o=B.asyncIterator||"@@asyncIterator",u=B.toStringTag||"@@toStringTag";function p(E,I,A,U){var $=Object.create((I&&I.prototype instanceof r?I:r).prototype),Y=new R(U||[]);return $._invoke=function L(E,I,A){var U=b;return function($,Y){if(U===i)throw new Error("Generator is already running");if(U===e){if("throw"===$)throw Y;return Z()}for(A.method=$,A.arg=Y;;){var ne=A.delegate;if(ne){var J=P(ne,A);if(J){if(J===t)continue;return J}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if(U===b)throw U=e,A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);U=i;var ee=h(E,I,A);if("normal"===ee.type){if(U=A.done?e:c,ee.arg===t)continue;return{value:ee.arg,done:A.done}}"throw"===ee.type&&(U=e,A.method="throw",A.arg=ee.arg)}}}(E,A,Y),$}function h(E,I,A){try{return{type:"normal",arg:E.call(I,A)}}catch(U){return{type:"throw",arg:U}}}D.wrap=p;var b="suspendedStart",c="suspendedYield",i="executing",e="completed",t={};function r(){}function n(){}function a(){}var s={};s[w]=function(){return this};var g=Object.getPrototypeOf,_=g&&g(g(f([])));_&&_!==z&&H.call(_,w)&&(s=_);var k=a.prototype=r.prototype=Object.create(s);function l(E){["next","throw","return"].forEach(function(I){E[I]=function(A){return this._invoke(I,A)}})}function m(E,I){function A($,Y,ne,J){var ee=h(E[$],E,Y);if("throw"!==ee.type){var ae=ee.arg,oe=ae.value;return oe&&"object"===M(oe)&&H.call(oe,"__await")?I.resolve(oe.__await).then(function(ie){A("next",ie,ne,J)},function(ie){A("throw",ie,ne,J)}):I.resolve(oe).then(function(ie){ae.value=ie,ne(ae)},function(ie){return A("throw",ie,ne,J)})}J(ee.arg)}var U;this._invoke=function W($,Y){function ne(){return new I(function(J,ee){A($,Y,J,ee)})}return U=U?U.then(ne,ne):ne()}}function P(E,I){var A=E.iterator[I.method];if(A===V){if(I.delegate=null,"throw"===I.method){if(E.iterator.return&&
vendor: 4,659 bytes, line 1
1(I.method="return",I.arg=V,P(E,I),"throw"===I.method))return t;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return t}var U=h(A,E.iterator,I.arg);if("throw"===U.type)return I.method="throw",I.arg=U.arg,I.delegate=null,t;var W=U.arg;return W?W.done?(I[E.resultName]=W.value,I.next=E.nextLoc,"return"!==I.method&&(I.method="next",I.arg=V),I.delegate=null,t):W:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,t)}function N(E){var I={tryLoc:E[0]};1 in E&&(I.catchLoc=E[1]),2 in E&&(I.finallyLoc=E[2],I.afterLoc=E[3]),this.tryEntries.push(I)}function j(E){var I=E.completion||{};I.type="normal",delete I.arg,E.completion=I}function R(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(N,this),this.reset(!0)}function f(E){if(E){var I=E[w];if(I)return I.call(E);if("function"==typeof E.next)return E;if(!isNaN(E.length)){var A=-1,U=function W(){for(;++A<E.length;)if(H.call(E,A))return W.value=E[A],W.done=!1,W;return W.value=V,W.done=!0,W};return U.next=U}}return{next:Z}}function Z(){return{value:V,done:!0}}return n.prototype=k.constructor=a,a.constructor=n,a[u]=n.displayName="GeneratorFunction",D.isGeneratorFunction=function(E){var I="function"==typeof E&&E.constructor;return!!I&&(I===n||"GeneratorFunction"===(I.displayName||I.name))},D.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,a):(E.__proto__=a,u in E||(E[u]="GeneratorFunction")),E.prototype=Object.create(k),E},D.awrap=function(E){return{__await:E}},l(m.prototype),m.prototype[o]=function(){return this},D.AsyncIterator=m,D.async=function(E,I,A,U,W){void 0===W&&(W=Promise);var $=new m(p(E,I,A,U),W);return D.isGeneratorFunction(I)?$:$.next().then(function(Y){return Y.done?Y.value:$.next()})},l(k),k[u]="Generator",k[w]=function(){return this},k.toString=function(){return"[object Generator]"},D.keys=function(E){var I=[];for(var A in E)I.push(A);return I.reverse(),function U(){for(;I.length;){var W=I.pop();if(W in E)return U.value=W,U.done=!1,U}return U.done=!0,U}},D.values=f,R.prototype={constructor:R,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=V,this.done=!1,this.delegate=null,this.method="next",this.arg=V,this.tryEntries.forEach(j),!I)for(var A in this)"t"===A.charAt(0)&&H.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=V)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if("throw"===A.type)throw A.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var A=this;function U(ee,ae){return Y.type="throw",Y.arg=I,A.next=ee,ae&&(A.method="next",A.arg=V),!!ae}for(var W=this.tryEntries.length-1;W>=0;--W){var $=this.tryEntries[W],Y=$.completion;if("root"===$.tryLoc)return U("end");if($.tryLoc<=this.prev){var ne=H.call($,"catchLoc"),J=H.call($,"finallyLoc");if(ne&&J){if(this.prev<$.catchLoc)return U($.catchLoc,!0);if(this.prev<$.finallyLoc)return U($.finallyLoc)}else if(ne){if(this.prev<$.catchLoc)return U($.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return U($.finallyLoc)}}}},abrupt:function(I,A){for(var U=this.tryEntries.length-1;U>=0;--U){var W=this.tryEntries[U];if(W.tryLoc<=this.prev&&H.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var $=W;break}}$&&("break"===I||"continue"===I)&&$.tryLoc<=A&&A<=$.finallyLoc&&($=null);var Y=$?$.completion:{};return Y.type=I,Y.arg=A,$?(this.method="next",this.next=$.finallyLoc,t):this.complete(Y)},complete:function(I,A){if("throw"===I.type)throw I.arg;return"break"===I.type||"continue"===I.type?this.next=I.arg:"return"===I.type?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):"normal"===I.type&&A&&(this.next=A),t},finish:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var U=this.tryEntries[A];if(U.finallyLoc===I)return this.complete(U.completion,U.afterLoc),j(U),t}},catch:function(I){for(var A=this.tryEntries.length-1;A>=0;--A){var U=this.tryEntries[A];if(U.tryLoc===I){var W=U.completion;if("throw"===W.type){var $=W.arg;j(U)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(I,A,U){return this.delegate={iterator:f(I),resultName:A,nextLoc:U},"next"===this.method&&(this.arg=V),t}},D}("object"===M(y)?y.exports:{});try{regeneratorRuntime=G}catch{Function("r","regeneratorRuntime = r")(G)}}).call(this,O(6)(q))},function(q,v,O){"use strict";q.exports=function(y){return y.webpackPolyfill||(y.deprecate=function(){},y.paths=[],y.children||(y.children=[]),Object.defineProperty(y,"loaded",{enumerable:!0,get:function(){return y.l}}),Object.defineProperty(y,"id",{enumerable:!0,get:function(){return y.i}}),y.webpackPolyfill=1),y}},function(q,v,O){"use strict";
1Object.defineProperty(v,"__esModule",{value:!0}),v.SimpleLinkService=v.PDFLinkService=void 0;var y=O(3);function M(w){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(w)}function G(w,o){if(!(w instanceof o))throw new TypeError("Cannot call a class as a function")}function D(w,o){for(var u=0;u<o.length;u++){var p=o[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,p.key,p)}}function z(w,o,u){return o&&D(w.prototype,o),u&&D(w,u),w}var H=function(){function w(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=o.eventBus,p=o.externalLinkTarget,h=void 0===p?null:p,b=o.externalLinkRel,c=void 0===b?null:b,i=o.externalLinkEnabled,e=void 0===i||i,t=o.ignoreDestinationZoom,r=void 0!==t&&t;G(this,w),this.eventBus=u,this.externalLinkTarget=h,this.externalLinkRel=c,this.externalLinkEnabled=e,this._ignoreDestinationZoom=r,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return z(w,[{key:"setDocument",value:function(u){this.baseUrl=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.pdfDocument=u,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(u){this.pdfViewer=u}},{key:"setHistory",value:function(u){this.pdfHistory=u}},{key:"navigateTo",value:function(u){var p=this,h=function b(c){var r,i=c.namedDest,e=c.explicitDest,t=e[0];if(t instanceof Object){if(null===(r=p._cachedPageNumber(t)))return void p.pdfDocument.getPageIndex(t).then(function(n){p.cachePageRef(n+1,t),b({namedDest:i,explicitDest:e})}).catch(function(){console.error('PDFLinkService.navigateTo: "'.concat(t,'" is not ')+'a valid page reference, for dest="'.concat(u,'".'))})}else{if(!Number.isInteger(t))return void console.error('PDFLinkService.navigateTo: "'.concat(t,'" is not ')+'a valid destination reference, for dest="'.concat(u,'".'));r=t+1}!r||r<1||r>p.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(r,'" is not ')+'a valid page number, for dest="'.concat(u,'".')):(p.pdfHistory&&(p.pdfHistory.pushCurrentPosition(),p.pdfHistory.push({namedDest:i,explicitDest:e,pageNumber:r})),p.pdfViewer.scrollPageIntoView({pageNumber:r,destArray:e,ignoreDestinationZoom:p._ignoreDestinationZoom}))};new Promise(function(b,c){"string"!=typeof u?b({namedDest:"",explicitDest:u}):p.pdfDocument.getDestination(u).then(function(i){b({namedDest:u,explicitDest:i})})}).then(function(b){Array.isArray(b.explicitDest)?h(b):console.error('PDFLinkService.navigateTo: "'.concat(b.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(u,'".'))})}},{key:"getDestinationHash",value:function(u){if("string"==typeof u)return this.getAnchorUrl("#"+escape(u));if(Array.isArray(u)){var p=JSON.stringify(u);return this.getAnchorUrl("#"+escape(p))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(u){return(this.baseUrl||"")+u}},{key:"setHash",value:function(u){var p,h;if(u.includes("=")){var b=(0,y.parseQueryString)(u);if("search"in b&&this.eventBus.dispatch("findfromurlhash",{source:this,query:b.search.replace(/"/g,""),phraseSearch:"true"===b.phrase}),"page"in b&&(p=0|b.page||1),"zoom"in b){var c=b.zoom.split(","),i=c[0],e=parseFloat(i);i.includes("Fit")?"Fit"===i||"FitB"===i?h=[null,{name:i}]:"FitH"===i||"FitBH"===i||"FitV"===i||"FitBV"===i?h=[null,{name:i},c.length>1?0|c[1]:null]:"FitR"===i?5!==c.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):h=[null,{name:i},0|c[1],0|c[2],0|c[3],0|c[4]]:console.error('PDFLinkService.setHash: "'.concat(i,'" is not ')+"a valid zoom value."):h=[null,{name:"XYZ"},c.length>1?0|c[1]:null,c.length>2?0|c[2]:null,e?e/100:i]}h?this.pdfViewer.scrollPageIntoView({pageNumber:p||this.page,destArray:h,allowNegativeOffset:!0}):p&&(this.page=p),"pagemode"in b&&this.eventBus.dispatch("pagemode",{source:this,mode:b.pagemode}),"nameddest"in b&&this.navigateTo(b.nameddest)}else{h=unescape(u);try{h=JSON.parse(h),Array.isArray(h)||(h=h.toString())}catch{}
1if("string"==typeof h||function V(w){if(!Array.isArray(w))return!1;var o=w.length;if(o<2)return!1;var u=w[0];if(!("object"===M(u)&&Number.isInteger(u.num)&&Number.isInteger(u.gen)||Number.isInteger(u)&&u>=0))return!1;var p=w[1];if("object"!==M(p)||"string"!=typeof p.name)return!1;var h=!0;switch(p.name){case"XYZ":if(5!==o)return!1;break;case"Fit":case"FitB":return 2===o;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==o)return!1;break;case"FitR":if(6!==o)return!1;h=!1;break;default:return!1}for(var b=2;b<o;b++){var c=w[b];if(!("number"==typeof c||h&&null===c))return!1}return!0}(h))return void this.navigateTo(h);console.error('PDFLinkService.setHash: "'.concat(unescape(u),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(u){switch(u){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:u})}},{key:"cachePageRef",value:function(u,p){if(p){var h=0===p.gen?"".concat(p.num,"R"):"".concat(p.num,"R").concat(p.gen);this._pagesRefCache[h]=u}}},{key:"_cachedPageNumber",value:function(u){var p=0===u.gen?"".concat(u.num,"R"):"".concat(u.num,"R").concat(u.gen);return this._pagesRefCache&&this._pagesRefCache[p]||null}},{key:"isPageVisible",value:function(u){return this.pdfViewer.isPageVisible(u)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(u){this.pdfViewer.currentPageNumber=u}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(u){this.pdfViewer.pagesRotation=u}}]),w}();v.PDFLinkService=H,v.SimpleLinkService=function(){function w(){G(this,w),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return z(w,[{key:"navigateTo",value:function(u){}},{key:"getDestinationHash",value:function(u){return"#"}},{key:"getAnchorUrl",value:function(u){return"#"}},{key:"setHash",value:function(u){}},{key:"executeNamedAction",value:function(u){}},{key:"cachePageRef",value:function(u,p){}},{key:"isPageVisible",value:function(u){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(u){}},{key:"rotation",get:function(){return 0},set:function(u){}}]),w}()},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DefaultTextLayerFactory=v.TextLayerBuilder=void 0;var y=O(2);function M(B,w){if(!(B instanceof w))throw new TypeError("Cannot call a class as a function")}function G(B,w){for(var o=0;o<w.length;o++){var u=w[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(B,u.key,u)}}function D(B,w,o){return w&&G(B.prototype,w),o&&G(B,o),B}var H=function(){function B(w){var o=w.textLayerDiv,u=w.eventBus,p=w.pageIndex,h=w.viewport,b=w.findController,c=void 0===b?null:b,i=w.enhanceTextSelection,e=void 0!==i&&i;M(this,B),this.textLayerDiv=o,this.eventBus=u,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=p,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=h,this.textDivs=[],this.findController=c,this.textLayerRenderTask=null,this.enhanceTextSelection=e,this._onUpdateTextLayerMatches=null,this._bindMouse()}return D(B,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var o=document.createElement("div");o.className="endOfContent",this.textLayerDiv.appendChild(o)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var o=this,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var p=document.createDocumentFragment();this.textLayerRenderTask=(0,y.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:p,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:u,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){o.textLayerDiv.appendChild(p),o._finishRendering(),o._updateMatches()},function(h){}
1),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(h){(h.pageIndex===o.pageIdx||-1===h.pageIndex)&&o._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(o){this.cancel(),this.textContentStream=o}},{key:"setTextContent",value:function(o){this.cancel(),this.textContent=o}},{key:"_convertMatches",value:function(o,u){if(!o)return[];for(var h=this.textContentItemsStr,b=0,c=0,i=h.length-1,e=this.findController.state.query.length,t=[],r=0,n=o.length;r<n;r++){for(var a=o[r];b!==i&&a>=c+h[b].length;)c+=h[b].length,b++;b===h.length&&console.error("Could not find a matching mapping");var s={begin:{divIdx:b,offset:a-c}};for(a+=u?u[r]:e;b!==i&&a>c+h[b].length;)c+=h[b].length,b++;s.end={divIdx:b,offset:a-c},t.push(s)}return t}},{key:"_renderMatches",value:function(o){if(0!==o.length){var u=this.findController,p=this.pageIdx,h=this.textContentItemsStr,b=this.textDivs,c=p===u.selected.pageIdx,i=u.selected.matchIdx,t=null,r={divIdx:-1,offset:void 0},s=i,g=s+1;if(u.state.highlightAll)s=0,g=o.length;else if(!c)return;for(var _=s;_<g;_++){var k=o[_],l=k.begin,m=k.end,L=c&&_===i,P=L?" selected":"";if(L&&u.scrollMatchIntoView({element:b[l.divIdx],pageIndex:p,matchIndex:i}),t&&l.divIdx===t.divIdx?a(t.divIdx,t.offset,l.offset):(null!==t&&a(t.divIdx,t.offset,r.offset),n(l)),l.divIdx===m.divIdx)a(l.divIdx,l.offset,m.offset,"highlight"+P);else{a(l.divIdx,l.offset,r.offset,"highlight begin"+P);for(var N=l.divIdx+1,j=m.divIdx;N<j;N++)b[N].className="highlight middle"+P;n(m,"highlight end"+P)}t=m}t&&a(t.divIdx,t.offset,r.offset)}function n(R,f){var Z=R.divIdx;b[Z].textContent="",a(Z,0,R.offset,f)}function a(R,f,Z,E){var I=b[R],A=h[R].substring(f,Z),U=document.createTextNode(A);if(E){var W=document.createElement("span");return W.className=E,W.appendChild(U),void I.appendChild(W)}I.appendChild(U)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var o=this.findController,u=this.matches,p=this.pageIdx,h=this.textContentItemsStr,b=this.textDivs,c=-1,i=0,e=u.length;i<e;i++){for(var t=u[i],n=Math.max(c,t.begin.divIdx),a=t.end.divIdx;n<=a;n++){var s=b[n];s.textContent=h[n],s.className=""}c=t.end.divIdx+1}o&&o.highlightMatches&&(this.matches=this._convertMatches(o.pageMatches[p]||null,o.pageMatchesLength[p]||null),this._renderMatches(this.matches))}}},{key:"_bindMouse",value:function(){var o=this,u=this.textLayerDiv,p=null;u.addEventListener("mousedown",function(h){if(o.enhanceTextSelection&&o.textLayerRenderTask)return o.textLayerRenderTask.expandTextDivs(!0),void(p&&(clearTimeout(p),p=null));var b=u.querySelector(".endOfContent");if(b){var c=h.target!==u;if(c=c&&"none"!==window.getComputedStyle(b).getPropertyValue("-moz-user-select")){var i=u.getBoundingClientRect(),e=Math.max(0,(h.pageY-i.top)/i.height);b.style.top=(100*e).toFixed(2)+"%"}b.classList.add("active")}}),u.addEventListener("mouseup",function(){if(o.enhanceTextSelection&&o.textLayerRenderTask)p=setTimeout(function(){o.textLayerRenderTask&&o.textLayerRenderTask.expandTextDivs(!1),p=null},300);else{var h=u.querySelector(".endOfContent");!h||(h.style.top="",h.classList.remove("active"))}})}}]),B}();v.TextLayerBuilder=H;var V=function(){function B(){M(this,B)}return D(B,[{key:"createTextLayerBuilder",value:function(o,u,p){return new H({textLayerDiv:o,pageIndex:u,viewport:p,enhanceTextSelection:arguments.length>3&&void 0!==arguments[3]&&arguments[3],eventBus:arguments.length>4?arguments[4]:void 0})}}]),B}();v.DefaultTextLayerFactory=V},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DownloadManager=void 0;var y=O(2);function D(w,o){for(var u=0;u<o.length;u++){var p=o[u];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,p.key,p)}}var H=O(10).viewerCompatibilityParams.disableCreateObjectURL||!1;function V(w,o){var u=document.createElement("a");if(!u.click)throw new Error('DownloadManager: "a.click()" is not supported.');u.href=w,u.target="_parent","download"in u&&(u.download=o),(document.body||document.documentElement).appendChild(u),u.click(),u.remove()}v.DownloadManager=function(){function w(o){var u=o.disableCreateObjectURL,p=void 0===u?H:u;(function G(w,o){if(!(w instanceof o))throw new TypeError("Cannot call a class as a function")})(this,w),this.disableCreateObjectURL=p}return function z(w,o,u){return o&&D(w.prototype,o),u&&D(w,u),w}(w,[{key:"downloadUrl",value:function(u,p){!(0,y.createValidAbsoluteUrl)(u,"http://example.com")||V(u+"#pdfjs.action=download",p)}},{key:"downloadData",value:function(u,p,h){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([u],{type:h}),p):V((0,y.createObjectURL)(u,h,this.disableCreateObjectURL),p)}},{key:"download",value:function(u,p,h){navigator.msSaveBlob?navigator.msSaveBlob(u,h)||this.downloadUrl(p,h):this.disableCreateObjectURL?this.downloadUrl(p,h):V(URL.createObjectURL(u),h)}}]),w}()},function(q,v,O){"use strict";
1Object.defineProperty(v,"__esModule",{value:!0}),v.viewerCompatibilityParams=void 0;var y=Object.create(null),M=typeof navigator<"u"&&navigator.userAgent||"",G=typeof navigator<"u"&&navigator.platform||"",D=typeof navigator<"u"&&navigator.maxTouchPoints||1,z=/Android/.test(M),H=/Trident/.test(M),V=/\b(iPad|iPhone|iPod)(?=;)/.test(M)||"MacIntel"===G&&D>1,B=/CriOS/.test(M);(H||B)&&(y.disableCreateObjectURL=!0),(V||z)&&(y.maxCanvasPixels=5242880);var w=Object.freeze(y);v.viewerCompatibilityParams=w},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.GenericL10n=void 0;var y=function M(o){return o&&o.__esModule?o:{default:o}}(O(4));function G(o,u,p,h,b,c,i){try{var e=o[c](i),t=e.value}catch(r){return void p(r)}e.done?u(t):Promise.resolve(t).then(h,b)}function D(o){return function(){var u=this,p=arguments;return new Promise(function(h,b){var c=o.apply(u,p);function i(t){G(c,h,b,i,e,"next",t)}function e(t){G(c,h,b,i,e,"throw",t)}i(void 0)})}}function H(o,u){for(var p=0;p<u.length;p++){var h=u[p];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(o,h.key,h)}}O(12);var B=document.webL10n,w=function(){function o(u){(function z(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")})(this,o),this._lang=u,this._ready=new Promise(function(p,h){B.setLanguage(u,function(){p(B)})})}return function V(o,u,p){return u&&H(o.prototype,u),p&&H(o,p),o}(o,[{key:"getLanguage",value:(u=D(y.default.mark(function h(){return y.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this._ready;case 2:return i.abrupt("return",i.sent.getLanguage());case 4:case"end":return i.stop()}},h,this)})),function p(){return u.apply(this,arguments)})},{key:"getDirection",value:function(){var u=D(y.default.mark(function h(){return y.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this._ready;case 2:return i.abrupt("return",i.sent.getDirection());case 4:case"end":return i.stop()}},h,this)}));return function p(){return u.apply(this,arguments)}}()},{key:"get",value:function(){var u=D(y.default.mark(function h(b,c,i){return y.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._ready;case 2:return r.abrupt("return",r.sent.get(b,c,i));case 4:case"end":return r.stop()}},h,this)}));return function p(h,b,c){return u.apply(this,arguments)}}()},{key:"translate",value:function(){var u=D(y.default.mark(function h(b){return y.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.translate(b));case 4:case"end":return e.stop()}},h,this)}));return function p(h){return u.apply(this,arguments)}}()}]),o;var u}();v.GenericL10n=w},function(q,v,O){"use strict";document.webL10n=function(y,M,G){var D={},z="",H="textContent",V="",B={},w="loading";function c(l,m,L){m=m||function(j){},L=L||function(){};var P=new XMLHttpRequest;P.open("GET",l,true),P.overrideMimeType&&P.overrideMimeType("text/plain; charset=utf-8"),P.onreadystatechange=function(){4==P.readyState&&(200==P.status||0===P.status?m(P.responseText):L())},P.onerror=L,P.ontimeout=L;try{P.send(null)}catch{L()}}function i(l,m,L,P){var N=l.replace(/[^\/]*$/,"")||"./";function j(f){return f.lastIndexOf("\\")<0?f:f.replace(/\\\\/g,"\\").replace(/\\n
vendor: 6,336 bytes, line 1
1/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}c(l,function(f){z+=f,function R(f,Z){var E={},I=/^\s*|\s*$/,A=/^\s*#|^\s*$/,U=/^\s*\[(.*)\]\s*$/,W=/^\s*@import\s+url\((.*)\)\s*$/i,$=/^([^=\s]*)\s*=\s*(.+)$/;function Y(J,ee,ae){var oe=J.replace(I,"").split(/[\r\n]+/),ie="*",we=m.split("-",1)[0],_e=!1,ue="";!function me(){for(;;){if(!oe.length)return void ae();var fe=oe.shift();if(!A.test(fe)){if(ee){if(ue=U.exec(fe)){ie=ue[1].toLowerCase(),_e="*"!==ie&&ie!==m&&ie!==we;continue}if(_e)continue;if(ue=W.exec(fe))return void ne(N+ue[1],me)}var ge=fe.match($);ge&&3==ge.length&&(E[ge[1]]=j(ge[2]))}}}()}function ne(J,ee){c(J,function(ae){Y(ae,!1,ee)},function(){console.warn(J+" not found."),ee()})}Y(f,!0,function(){Z(E)})}(f,function(Z){for(var E in Z){var I,A,U=E.lastIndexOf(".");U>0?(I=E.substring(0,U),A=E.substring(U+1)):(I=E,A=H),D[I]||(D[I]={}),D[I][A]=Z[E]}L&&L()})},P)}function e(l,m){l&&(l=l.toLowerCase()),m=m||function(){},function t(){D={},z="",V=""}(),V=l;var L=function u(){return M.querySelectorAll('link[type="application/l10n"]')}(),P=L.length;if(0!==P){var f,Z=0;f=function(){++Z>=P&&(m(),w="complete")};for(var I=0;I<P;I++)new E(L[I]).load(l,f)}else{var N=function p(){var l=M.querySelector('script[type="application/l10n"]');return l?JSON.parse(l.innerHTML):null}();if(N&&N.locales&&N.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(D=N.locales[l])){var j=N.default_locale.toLowerCase();for(var R in N.locales){if((R=R.toLowerCase())===l){D=N.locales[l];break}R===j&&(D=N.locales[j])}}m()}else console.log("no resource to load, early way out");w="complete"}function E(U){var W=U.href;this.load=function($,Y){i(W,$,Y,function(){console.warn(W+" not found."),console.warn('"'+$+'" resource not found'),V="",Y()})}}}function n(l,m,L){var P=D[l];if(!P){if(console.warn("#"+l+" is undefined."),!L)return null;P=L}var N={};for(var j in P){var R=P[j];R=s(R=a(R,m,l,j),m,l),N[j]=R}return N}function a(l,m,L,P){var j=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(l);if(!j||!j.length)return l;var Z,R=j[1],f=j[2];return m&&f in m?Z=m[f]:f in D&&(Z=D[f]),R in B&&(l=(0,B[R])(l,Z,L,P)),l}function s(l,m,L){return l.replace(/\{\{\s*(.+?)\s*\}\}/g,function(N,j){return m&&j in m?m[j]:j in D?D[j]:(console.log("argument {{"+j+"}} for #"+L+" is undefined."),N)})}function g(l){var m=function b(l){if(!l)return{};var m=l.getAttribute("data-l10n-id"),L=l.getAttribute("data-l10n-args"),P={};if(L)try{P=JSON.parse(L)}catch{console.warn("could not parse arguments for #"+m)}return{id:m,args:P}}(l);if(m.id){var L=n(m.id,m.args);if(!L)return void console.warn("#"+m.id+" is undefined.");if(L[H]){if(0===function _(l){if(l.children)return l.children.length;if(typeof l.childElementCount<"u")return l.childElementCount;for(var m=0,L=0;L<l.childNodes.length;L++)m+=1===l.nodeType?1:0;return m}(l))l[H]=L[H];else{for(var P=l.childNodes,N=!1,j=0,R=P.length;j<R;j++)3===P[j].nodeType&&/\S/.test(P[j].nodeValue)&&(N?P[j].nodeValue="":(P[j].nodeValue=L[H],N=!0));if(!N){var f=M.createTextNode(L[H]);l.insertBefore(f,l.firstChild)}}delete L[H]}for(var Z in L)l[Z]=L[Z]}}return B.plural=function(l,m,L,P){var N=parseFloat(m);if(isNaN(N)||P!=H)return l;B._pluralRules||(B._pluralRules=function r(l){function L(R,f){return-1!==f.indexOf(R)}function P(R,f,Z){return f<=R&&R<=Z}var N={0:function(f){return"other"},1:function(f){return P(f%100,3,10)?"few":0===f?"zero":P(f%100,11,99)?"many":2==f?"two":1==f?"one":"other"},2:function(f){return 0!==f&&f%10==0?"many":2==f?"two":1==f?"one":"other"},3:function(f){return 1==f?"one":"other"},4:function(f){return P(f,0,1)?"one":"other"},5:function(f){return P(f,0,2)&&2!=f?"one":"other"},6:function(f){return 0===f?"zero":f%10==1&&f%100!=11?"one":"other"},7:function(f){return 2==f?"two":1==f?"one":"other"},8:function(f){return P(f,3,6)?"few":P(f,7,10)?"many":2==f?"two":1==f?"one":"other"},9:function(f){return 0===f||1!=f&&P(f%100,1,19)?"few":1==f?"one":"other"},10:function(f){return P(f%10,2,9)&&!P(f%100,11,19)?"few":f%10!=1||P(f%100,11,19)?"other":"one"},11:function(f){return P(f%10,2,4)&&!P(f%100,12,14)?"few":f%10==0||P(f%10,5,9)||P(f%100,11,14)?"many":f%10==1&&f%100!=11?"one":"other"},12:function(f){return P(f,2,4)?"few":1==f?"one":"other"},13:function(f){return P(f%10,2,4)&&!P(f%100,12,14)?"few":1!=f&&P(f%10,0,1)||P(f%10,5,9)||P(f%100,12,14)?"many":1==f?"one":"other"},14:function(f){return P(f%100,3,4)?"few":f%100==2?"two":f%100==1?"one":"other"},15:function(f){return 0===f||P(f%100,2,10)?"few":P(f%100,11,19)?"many":1==f?"one":"other"},16:function(f){return f%10==1&&11!=f?"one":"other"},17:function(f){return 3==f?"few":0===f?"zero":6==f?"many":2==f?"two":1==f?"one":"other"},18:function(f){return 0===f?"zero":P(f,0,2)&&0!==f&&2!=f?"one":"other"},19:function(f){return P(f,2,10)?"few":P(f,0,1)?"one":"other"},20:function(f){return!P(f%10,3,4)&&f%10!=9||P(f%100,10,19)||P(f%100,70,79)||P(f%100,90,99)?f%1e6==0&&0!==f?"many":f%10!=2||L(f%100,[12,72,92])?f%10!=1||L(f%100,[11,71,91])?"other":"one":"two":"few"},21:function(f){return 0===f?"zero":1==f?"one":"other"},22:function(f){return P(f,0,1)||P(f,11,99)?"one":"other"},23:function(f){return P(f%10,1,2)||f%20==0?"one":"other"},24:function(f){return P(f,3,10)||P(f,13,19)?"few":L(f,[2,12])?"two":L(f,[1,11])?"one":"other"}},j={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}[l.replace(/-.*$/,"")];
1return j in N?N[j]:(console.warn("plural form unknown for ["+l+"]"),function(){return"other"})}(V));var j="["+B._pluralRules(N)+"]";return 0===N&&L+"[zero]"in D?l=D[L+"[zero]"][P]:1==N&&L+"[one]"in D?l=D[L+"[one]"][P]:2==N&&L+"[two]"in D?l=D[L+"[two]"][P]:L+j in D?l=D[L+j][P]:L+"[other]"in D&&(l=D[L+"[other]"][P]),l},{get:function(m,L,P){var R,N=m.lastIndexOf("."),j=H;N>0&&(j=m.substring(N+1),m=m.substring(0,N)),P&&((R={})[j]=P);var f=n(m,L,R);return f&&j in f?f[j]:"{{"+m+"}}"},getData:function(){return D},getText:function(){return z},getLanguage:function(){return V},setLanguage:function(m,L){e(m,function(){L&&L()})},getDirection:function(){var L=V.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(L)>=0?"rtl":"ltr"},translate:function k(l){for(var m=function h(l){return l?l.querySelectorAll("*[data-l10n-id]"):[]}(l=l||M.documentElement),L=m.length,P=0;P<L;P++)g(m[P]);g(l)},getReadyState:function(){return w},ready:function(m){m&&("complete"==w||"interactive"==w?y.setTimeout(function(){m()}):M.addEventListener&&M.addEventListener("localized",function L(){M.removeEventListener("localized",L),m()}))}}}(window,document)},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.PDFFindController=v.FindState=void 0;var y=O(2),M=O(14),G=O(3);function z(c,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(c,t.key,t)}}var V={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};v.FindState=V;var u={"\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},p=null;function h(c){if(!p){var i=Object.keys(u).join("");p=new RegExp("[".concat(i,"]"),"g")}return c.replace(p,function(e){return u[e]})}var b=function(){function c(i){var e=i.linkService,t=i.eventBus;(function D(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")})(this,c),this._linkService=e,this._eventBus=t,this._reset(),t._on("findbarclose",this._onFindBarClose.bind(this))}return function H(c,i,e){return i&&z(c.prototype,i),e&&z(c,e),c}(c,[{key:"setDocument",value:function(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(e,t){var r=this;if(t){var n=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(e,t))&&(this._dirtyMatch=!0),this._state=t,"findhighlightallchange"!==e&&this._updateUIState(V.PENDING),this._firstPageCapability.promise.then(function(){if(r._pdfDocument&&(!n||r._pdfDocument===n)){r._extractText();var a=!r._highlightMatches,s=!!r._findTimeout;r._findTimeout&&(clearTimeout(r._findTimeout),r._findTimeout=null),"find"===e?r._findTimeout=setTimeout(function(){r._nextMatch(),r._findTimeout=null},250):r._dirtyMatch?r._nextMatch():"findagain"===e?(r._nextMatch(),a&&r._state.highlightAll&&r._updateAllPages()):"findhighlightallchange"===e?(s?r._nextMatch():r._highlightMatches=!0,r._updateAllPages()):r._nextMatch()}})}}},{key:"scrollMatchIntoView",value:function(e){var t=e.element,r=void 0===t?null:t,n=e.pageIndex,a=void 0===n?-1:n,s=e.matchIndex,g=void 0===s?-1:s;if(this._scrollMatches&&r){if(-1===g||g!==this._selected.matchIdx)return;if(-1===a||a!==this._selected.pageIdx)return;this._scrollMatches=!1,(0,G.scrollIntoView)(r,{top:-50,left:-400},!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,y.createPromiseCapability)()}},{key:"_shouldDirtyMatch",value:function(e,t){if(t.query!==this._state.query)return!0;switch(e){case"findagain":var r=this._selected.pageIdx+1,n=this._linkService;return r>=1&&r<=n.pagesCount&&r!==n.page&&!n.isPageVisible(r);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,r){function n(g){var _=e[g];if(g<e.length-1&&_.match===e[g+1].match)return _.skipped=!0,!0;for(var l=g-1;l>=0;l--){var m=e[l];if(!m.skipped){if(m.match+m.matchLength<_.match)break;if(m.match+m.matchLength>=_.match+_.matchLength)return _.skipped=!0,!0}}return!1}e.sort(function(g,_){return g.match===_.match?g.matchLength-_.matchLength:g.match-_.match});for(var a=0,s=e.length;a<s;a++)n(a)||(t.push(e[a].match),r.push(e[a].matchLength))}},{key:"_isEntireWord",value:function(e,t,r){if(t>0){var n=e.charCodeAt(t),a=e.charCodeAt(t-1);if((0,M.getCharacterType)(n)===(0,M.getCharacterType)(a))return!1}var s=t+r-1;
1if(s<e.length-1){var g=e.charCodeAt(s),_=e.charCodeAt(s+1);if((0,M.getCharacterType)(g)===(0,M.getCharacterType)(_))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(e,t,r,n){for(var a=[],s=e.length,g=-s;-1!==(g=r.indexOf(e,g+s));)n&&!this._isEntireWord(r,g,s)||a.push(g);this._pageMatches[t]=a}},{key:"_calculateWordMatch",value:function(e,t,r,n){for(var a=[],s=e.match(/\S+/g),g=0,_=s.length;g<_;g++)for(var k=s[g],l=k.length,m=-l;-1!==(m=r.indexOf(k,m+l));)n&&!this._isEntireWord(r,m,l)||a.push({match:m,matchLength:l,skipped:!1});this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(a,this._pageMatches[t],this._pageMatchesLength[t])}},{key:"_calculateMatch",value:function(e){var t=this._pageContents[e],r=this._query,n=this._state,s=n.entireWord,g=n.phraseSearch;if(0!==r.length){n.caseSensitive||(t=t.toLowerCase(),r=r.toLowerCase()),g?this._calculatePhraseMatch(r,e,t,s):this._calculateWordMatch(r,e,t,s),this._state.highlightAll&&this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());var _=this._pageMatches[e].length;_>0&&(this._matchesCountTotal+=_,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),r=function(g,_){var k=(0,y.createPromiseCapability)();e._extractTextPromises[g]=k.promise,t=t.then(function(){return e._pdfDocument.getPage(g+1).then(function(l){return l.getTextContent({normalizeWhitespace:!0})}).then(function(l){for(var m=l.items,L=[],P=0,N=m.length;P<N;P++)L.push(m[P].str);e._pageContents[g]=h(L.join("")),k.resolve(g)},function(l){console.error("Unable to get text content for page ".concat(g+1),l),e._pageContents[g]="",k.resolve(g)})})},n=0,a=this._linkService.pagesCount;n<a;n++)r(n)}},{key:"_updatePage",value:function(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var e=this,t=this._state.findPrevious,r=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=r,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var a=0;a<n;a++)!0!==this._pendingFindMatches[a]&&(this._pendingFindMatches[a]=!0,this._extractTextPromises[a].then(function(_){delete e._pendingFindMatches[_],e._calculateMatch(_)}))}if(""!==this._query){if(!this._resumePageIdx){var s=this._offset;if(this._pagesToSearch=n,null!==s.matchIdx){if(!t&&s.matchIdx+1<this._pageMatches[s.pageIdx].length||t&&s.matchIdx>0)return s.matchIdx=t?s.matchIdx-1:s.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(V.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,r=e.length,n=this._state.findPrevious;return r?(t.matchIdx=n?r-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(n),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,r=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=r||t.pageIdx<0)&&(t.pageIdx=e?r-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=V.NOT_FOUND,r=this._offset.wrapped;if(this._offset.wrapped=!1,e){var n=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchI
1dx,t=r?V.WRAPPED:V.FOUND,-1!==n&&n!==this._selected.pageIdx&&this._updatePage(n)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,r=this._pdfDocument;this._firstPageCapability.promise.then(function(){!t._pdfDocument||r&&t._pdfDocument!==r||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(V.FOUND),t._highlightMatches=!1,t._updateAllPages())})}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,r=e.matchIdx,n=0,a=this._matchesCountTotal;if(-1!==r){for(var s=0;s<t;s++)n+=this._pageMatches[s]&&this._pageMatches[s].length||0;n+=r+1}return(n<1||n>a)&&(n=a=0),{current:n,total:a}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount()})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=h(this._state.query)),this._normalizedQuery}}]),c}();v.PDFFindController=b},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.getCharacterType=function p(h){return function M(h){return h<11904}(h)?function G(h){return 0==(65408&h)}(h)?function H(h){return 32===h||9===h||13===h||10===h}(h)?y.SPACE:function D(h){return h>=97&&h<=122||h>=65&&h<=90}(h)||function z(h){return h>=48&&h<=57}(h)||95===h?y.ALPHA_LETTER:y.PUNCT:function u(h){return 3584==(65408&h)}(h)?y.THAI_LETTER:160===h?y.SPACE:y.ALPHA_LETTER:function V(h){return h>=13312&&h<=40959||h>=63744&&h<=64255}(h)?y.HAN_LETTER:function B(h){return h>=12448&&h<=12543}(h)?y.KATAKANA_LETTER:function w(h){return h>=12352&&h<=12447}(h)?y.HIRAGANA_LETTER:function o(h){return h>=65376&&h<=65439}(h)?y.HALFWIDTH_KATAKANA_LETTER:y.ALPHA_LETTER},v.CharacterType=void 0;var y={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};v.CharacterType=y},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isDestHashesEqual=e,v.isDestArraysEqual=t,v.PDFHistory=void 0;var y=O(3);function M(r){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(r)}function G(r,n){return function B(r){if(Array.isArray(r))return r}(r)||function V(r,n){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(r)){var a=[],s=!0,g=!1,_=void 0;try{for(var l,k=r[Symbol.iterator]();!(s=(l=k.next()).done)&&(a.push(l.value),!n||a.length!==n);s=!0);}catch(m){g=!0,_=m}finally{try{!s&&null!=k.return&&k.return()}finally{if(g)throw _}}return a}}(r,n)||function z(r,n){if(r){if("string"==typeof r)return H(r,n);var a=Object.prototype.toString.call(r).slice(8,-1);if("Object"===a&&r.constructor&&(a=r.constructor.name),"Map"===a||"Set"===a)return Array.from(r);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return H(r,n)}}(r,n)||function D(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(r,n){(null==n||n>r.length)&&(n=r.length);for(var a=0,s=new Array(n);a<n;a++)s[a]=r[a];return s}function o(r,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function c(){return document.location.hash}var i=function(){function r(n){var a=this,s=n.linkService,g=n.eventBus;(function w(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")})(this,r),this.linkService=s,this.eventBus=g,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",function(_){a._isViewerInPresentationMode=_.active||_.switchInProgress}),this.eventBus._on("pagesinit",function(){a._isPagesLoaded=!1;a.eventBus._on("pagesloaded",function k(l){a.eventBus._off("pagesloaded",k),a._isPagesLoaded=!!l.pagesCount})})}return function u(r,n,a){return n&&o(r.prototype,n),a&&o(r,a),r}(r,[{key:"initialize",value:function(a){var s=a.fingerprint,g=a.resetHistory,_=void 0!==g&&g,k=a.updateUrl,l=void 0!==k&&k;if(s&&"string"==typeof s){this._initialized&&this.reset();var m=""!==this._fingerprint&&this._fingerprint!==s;this._fingerprint=s,this._updateUrl=!0===l,this._initialized=!0,this._bindEvents();var L=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=c(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(L,!0)||_){var P=this._parseCurrentHash(!0),N=P.hash,j=P.page,R=P.rotation;return!N||m||_?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:N,page:j,rotation:R},!0)}var f=L.destination;this._updateInternalState(f,L.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==f.rotation&&(this._initialRotation=f.rotation),f.dest?(this._initialBookmark=JSON.stringify(f.dest),this._destination.page=null):f.hash?this._initialBookmark=f.hash:f.page&&(this._initialBookmark="page=".concat(f.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(a){var s=this,g=a.namedDest,_=void 0===g?null:g,k=a.explicitDest,l=a.pageNumber;if(this._initialized){if(_&&"string"!=typeof _)return void console.error("PDFHistory.push: "+'"'.concat(_,'" is not a valid namedDest parameter.'));if(!Array.isArray(k))return void console.error("PDFHistory.push: "+'"'.concat(k,'" is not a valid explicitDest parameter.'));if(!(Number.isInteger(l)&&l>0&&l<=this.linkService.pagesCount)&&(null!==l||this._destination))return void console.error("PDFHistory.push: "+'"'.concat(l,'" is not a valid pageNumber parameter.'));var m=_||JSON.stringify(k);if(m){var L=!1;if(this._destination&&(e(this._destination.hash,m)||t(this._destination.dest,k))){if(this._destination.page)return;L=!0}
1this._popStateInProgress&&!L||(this._pushOrReplaceState({dest:k,hash:m,page:l,rotation:this.linkService.rotation},L),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){s._popStateInProgress=!1})))}}}},{key:"pushCurrentPosition",value:function(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var a=window.history.state;this._isValidState(a)&&a.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var a=window.history.state;this._isValidState(a)&&a.uid<this._maxUid&&window.history.forward()}}},{key:"_pushOrReplaceState",value:function(a){var k,g=arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this._destination,_={fingerprint:this._fingerprint,uid:g?this._uid:this._uid+1,destination:a};if(this._updateInternalState(a,_.uid),this._updateUrl&&a&&a.hash){var l=document.location.href.split("#")[0];l.startsWith("file://")||(k="".concat(l,"#").concat(a.hash))}g?window.history.replaceState(_,"",k):(this._maxUid=this._uid,window.history.pushState(_,"",k))}},{key:"_tryPushCurrentPosition",value:function(){if(this._position){var s=this._position;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&((s=Object.assign(Object.create(null),this._position)).temporary=!0),!this._destination)return void this._pushOrReplaceState(s);if(this._destination.temporary)return void this._pushOrReplaceState(s,!0);if(this._destination.hash!==s.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var g=!1;if(this._destination.page>=s.first&&this._destination.page<=s.page){if(this._destination.dest||!this._destination.first)return;g=!0}this._pushOrReplaceState(s,g)}}}},{key:"_isValidState",value:function(a){if(!a)return!1;if(a.fingerprint!==this._fingerprint){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return!1;if("string"!=typeof a.fingerprint||a.fingerprint.length!==this._fingerprint.length)return!1;var k=G(performance.getEntriesByType("navigation"),1)[0];if(!k||"reload"!==k.type)return!1}return!(!Number.isInteger(a.uid)||a.uid<0||null===a.destination||"object"!==M(a.destination))}},{key:"_updateInternalState",value:function(a,s){var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),g&&a&&a.temporary&&delete a.temporary,this._destination=a,this._uid=s,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=unescape(c()).substring(1),g=(0,y.parseQueryString)(s),_=g.nameddest||"",k=0|g.page;return(!(Number.isInteger(k)&&k>0&&k<=this.linkService.pagesCount)||a&&_.length>0)&&(k=null),{hash:s,page:k,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(a){var s=this,g=a.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(g.pageNumber):g.pdfOpenParams.substring(1),page:this.linkService.page,first:g.pageNumber,rotation:g.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){s._popStateInProgress||s._tryPushCurrentPosition(!0),s._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(a){var s=this,g=a.state,_=c(),k=this._currentHash!==_;if(this._currentHash=_,g){if(this._isValidState(g)){this._popStateInProgress=!0,k&&(this._blockHashChange++,(0,y.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){s._blockHashChange--}));var N=g.destination;this._updateInternalState(N,g.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,y.isValidRotation)(N.rotation)&&(this.linkService.rotation=N.rotation),N.dest?this.linkService.navigateTo(N.dest):N.hash?this.linkService.setHash(N.hash):N.page&&(this.linkService.page=N.page),Promise.resolve().then(function(){s._popStateInProgress=!1})}}else{this._uid++;var l=this._parseCurrentHash();this._pushOrReplaceState({hash:l.hash,page:l.page,rotation:l.rotation},!0)}}},{key:"_pageHide",value:function(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}]),r}();function e(r,n){return"string"==typeof r&&"string"==typeof n&&(r===n||(0,y.parseQueryString)(r).nameddest===n)}function t(r,n){function a(_,k){if(M(_)!==M(k)||Array.isArray(_)||Array.isArray(k))return!1;if(null!==_&&"object"===M(_)&&null!==k){if(Object.keys(_).length!==Object.keys(k).length)return!1;for(var l in _)if(!a(_[l],k[l]))return!1;return!0}return _===k||Number.isNaN(_)&&Number.isNaN(k)}if(!Array.isArray(r)||!Array.isArray(n)||r.length!==n.length)return!1;for(var s=0,g=r.length;s<g;s++)if(!a(r[s],n[s]))return!1;return!0}v.PDFHistory=i},function(q,v,O){"use strict";
1Object.defineProperty(v,"__esModule",{value:!0}),v.PDFPageView=void 0;var y=function H(b){return b&&b.__esModule?b:{default:b}}(O(4)),M=O(3),G=O(2),D=O(17);function V(b,c,i,e,t,r,n){try{var a=b[r](n),s=a.value}catch(g){return void i(g)}a.done?c(s):Promise.resolve(s).then(e,t)}function o(b,c){for(var i=0;i<c.length;i++){var e=c[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(b,e.key,e)}}var p=O(10).viewerCompatibilityParams.maxCanvasPixels||16777216,h=function(){function b(c){!function w(b,c){if(!(b instanceof c))throw new TypeError("Cannot call a class as a function")}(this,b);var i=c.container,e=c.defaultViewport;this.id=c.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=c.scale||M.DEFAULT_SCALE,this.viewport=e,this.pdfPageRotate=e.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(c.textLayerMode)?c.textLayerMode:M.TextLayerMode.ENABLE,this.imageResourcesPath=c.imageResourcesPath||"",this.renderInteractiveForms=c.renderInteractiveForms||!1,this.useOnlyCssZoom=c.useOnlyCssZoom||!1,this.maxCanvasPixels=c.maxCanvasPixels||p,this.eventBus=c.eventBus,this.renderingQueue=c.renderingQueue,this.textLayerFactory=c.textLayerFactory,this.annotationLayerFactory=c.annotationLayerFactory,this.renderer=c.renderer||M.RendererType.CANVAS,this.enableWebGL=c.enableWebGL||!1,this.l10n=c.l10n||M.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=D.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var t=document.createElement("div");t.className="page",t.style.width=Math.floor(this.viewport.width)+"px",t.style.height=Math.floor(this.viewport.height)+"px",t.setAttribute("data-page-number",this.id),this.div=t,i.appendChild(t)}return function u(b,c,i){return c&&o(b.prototype,c),i&&o(b,i),b}(b,[{key:"setPdfPage",value:function(i){this.pdfPage=i,this.pdfPageRotate=i.rotate,this.viewport=i.getViewport({scale:this.scale*M.CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.stats=i.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_resetZoomLayer",value:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var e=this.zoomLayer.firstChild;this.paintedViewportMap.delete(e),e.width=0,e.height=0,i&&this.zoomL
1ayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(e),this.renderingState=D.RenderingStates.INITIAL;var t=this.div;t.style.width=Math.floor(this.viewport.width)+"px",t.style.height=Math.floor(this.viewport.height)+"px";for(var r=t.childNodes,n=i&&this.zoomLayer||null,a=e&&this.annotationLayer&&this.annotationLayer.div||null,s=r.length-1;s>=0;s--){var g=r[s];n===g||a===g||t.removeChild(g)}t.removeAttribute("data-loaded"),a?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),n||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",t.appendChild(this.loadingIconDiv)}},{key:"update",value:function(i,e){if(this.scale=i||this.scale,typeof e<"u"&&(this.rotation=e),this.viewport=this.viewport.clone({scale:this.scale*M.CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var r=!1;if(this.canvas&&this.maxCanvasPixels>0){var n=this.outputScale;(Math.floor(this.viewport.width)*n.sx|0)*(Math.floor(this.viewport.height)*n.sy|0)>this.maxCanvasPixels&&(r=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&r)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});!this.zoomLayer&&!this.canvas.hasAttribute("hidden")&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!i&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(i){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=this.viewport.width,r=this.viewport.height,n=this.div;i.style.width=i.parentNode.style.width=n.style.width=Math.floor(t)+"px",i.style.height=i.parentNode.style.height=n.style.height=Math.floor(r)+"px";var a=this.viewport.rotation-this.paintedViewportMap.get(i).rotation,s=Math.abs(a),g=1,_=1;if((90===s||270===s)&&(g=r/t,_=t/r),i.style.transform="rotate("+a+"deg) scale("+g+","+_+")",this.textLayer){var l=this.textLayer.viewport,L=Math.abs(this.viewport.rotation-l.rotation),P=t/l.width;(90===L||270===L)&&(P=t/l.height);var j,R,N=this.textLayer.textLayerDiv;switch(L){case 0:j=R=0;break;case 90:j=0,R="-"+N.style.height;break;case 180:j="-"+N.style.width,R="-"+N.style.height;break;case 270:j="-"+N.style.width,R=0;break;default:console.error("Bad rotation value.")}N.style.transform="rotate("+L+"deg) scale("+P+", "+P+") translate("+j+", "+R+")",N.style.transformOrigin="0% 0%"}e&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(i,e){return this.viewport.convertToPdfPoint(i,e)}},{key:"draw",value:function(){var i=this;this.renderingState!==D.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var e=this.div,t=this.pdfPage;if(!t)return this.renderingState=D.RenderingStates.FINISHED,this.loadingIconDiv&&(e.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=D.RenderingStates.RUNNING;var r=document.createElement("div");r.style.width=e.style.width,r.style.height=e.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?e.insertBefore(r,this.annotationLayer.div):e.appendChild(r);var n=null;if(this.textLayerMode!==M.TextLayerMode.DISABLE&&this.textLayerFactory){var a=document.createElement("div");a.className="textLayer",a.style.width=r.style.width,a.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?e.insertBefore(a,this.annotationLayer.div):e.appendChild(a),n=this.textLayerFactory.createTextLayerBuilder(a,this.id-1,this.viewport,this.textLayerMode===M.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=n;var s=null;this.renderingQueue&&(s=function(m){if(!i.renderingQueue.isHighestPriority(i))return i.renderingState=D.RenderingStates.PAUSED,void(i.resume=function(){i.renderingState=D.RenderingStates.RUNNING,m()});m()});var g=function(){var l=function B(b){return function(){var c=this,i=arguments;return new Promise(function(e,t){var r=b.apply(c,i);function n(s){V(r,e,t,n,a,"next",s)}function a(s){V(r,e,t,n,a,"throw",s)}n(void 0)})}}(y.default.mark(function m(L){return y.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(_===i.paintTask&&(i.paintTask=null),!(L instanceof G.RenderingCancelledException)){N.next=4;break}return i.error=null,N.abrupt("return");case 4:if(i.renderingState=D.RenderingStates.FINISHED,i.loadingIconDiv&&(e.removeChild(i.loadingIconDiv),delete i.loadingIconDiv),i._resetZoomLayer(!0),i.error=L,i.stats=t.stats,i.eventBus.dispatch("pagerendered",{source:i,pageNumber:i.id,cssTransform:!1,timestamp:performance.now()}),!L){N.next=12;break}throw L;case 12:case"end":return N.stop()}},m)}));return function(L){return l.apply(this,arguments)}}(),_=this.renderer===M.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);_.onRenderContinue=s,this.paintTask=_;var k=_.promise.then(function(){return g(null).then(function(){if(n){var l=t.streamTextContent({normalizeWhitespace:!0});n.setTextContentStream(l),n.render()}})},function(l){return g(l)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(e,t,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),k}},{key:"paintOnCanvas",value:function(i){var e=(0,G.createPromiseCapability)(),t={promise:e.promise,onRenderContinue:function(Z){Z()}
1,cancel:function(){R.cancel()}},r=this.viewport,n=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(function(f){n.setAttribute("aria-label",f)}),n.setAttribute("hidden","hidden");var a=!0,s=function(){a&&(n.removeAttribute("hidden"),a=!1)};i.appendChild(n),this.canvas=n,n.mozOpaque=!0;var g=n.getContext("2d",{alpha:!1}),_=(0,M.getOutputScale)(g);if(this.outputScale=_,this.useOnlyCssZoom){var k=r.clone({scale:M.CSS_UNITS});_.sx*=k.width/r.width,_.sy*=k.height/r.height,_.scaled=!0}if(this.maxCanvasPixels>0){var m=Math.sqrt(this.maxCanvasPixels/(r.width*r.height));_.sx>m||_.sy>m?(_.sx=m,_.sy=m,_.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var L=(0,M.approximateFraction)(_.sx),P=(0,M.approximateFraction)(_.sy);n.width=(0,M.roundToDivide)(r.width*_.sx,L[0]),n.height=(0,M.roundToDivide)(r.height*_.sy,P[0]),n.style.width=(0,M.roundToDivide)(r.width,L[1])+"px",n.style.height=(0,M.roundToDivide)(r.height,P[1])+"px",this.paintedViewportMap.set(n,r);var R=this.pdfPage.render({canvasContext:g,transform:_.scaled?[_.sx,0,0,_.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms});return R.onContinue=function(f){s(),t.onRenderContinue?t.onRenderContinue(f):f()},R.promise.then(function(){s(),e.resolve(void 0)},function(f){s(),e.reject(f)}),t}},{key:"paintOnSvg",value:function(i){var e=this,t=!1,r=function(){if(t)throw new G.RenderingCancelledException("Rendering cancelled, page ".concat(e.id),"svg")},n=this.pdfPage,a=this.viewport.clone({scale:M.CSS_UNITS});return{promise:n.getOperatorList().then(function(g){return r(),new G.SVGGraphics(n.commonObjs,n.objs).getSVG(g,a).then(function(k){r(),e.svg=k,e.paintedViewportMap.set(k,a),k.style.width=i.style.width,k.style.height=i.style.height,e.renderingState=D.RenderingStates.FINISHED,i.appendChild(k)})}),onRenderContinue:function(_){_()},cancel:function(){t=!0}}}},{key:"setPageLabel",value:function(i){this.pageLabel="string"==typeof i?i:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}]),b}();v.PDFPageView=h},function(q,v,O){"use strict";function M(V,B){for(var w=0;w<B.length;w++){var o=B[w];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(V,o.key,o)}}Object.defineProperty(v,"__esModule",{value:!0}),v.PDFRenderingQueue=v.RenderingStates=void 0;var z={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};v.RenderingStates=z,v.PDFRenderingQueue=function(){function V(){(function y(V,B){if(!(V instanceof B))throw new TypeError("Cannot call a class as a function")})(this,V),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return function G(V,B,w){return B&&M(V.prototype,B),w&&M(V,w),V}(V,[{key:"setViewer",value:function(w){this.pdfViewer=w}},{key:"setThumbnailViewer",value:function(w){this.pdfThumbnailViewer=w}},{key:"isHighestPriority",value:function(w){return this.highestPriorityPage===w.renderingId}},{key:"renderHighestPriority",value:function(w){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(w)&&(this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}},{key:"getHighestPriority",value:function(w,o,u){var p=w.views,h=p.length;if(0===h)return null;for(var b=0;b<h;++b){var c=p[b].view;if(!this.isViewFinished(c))return c}if(u){var i=w.last.id;if(o[i]&&!this.isViewFinished(o[i]))return o[i]}else{var e=w.first.id-2;if(o[e]&&!this.isViewFinished(o[e]))return o[e]}return null}},{key:"isViewFinished",value:function(w){return w.renderingState===z.FINISHED}},{key:"renderView",value:function(w){var o=this;switch(w.renderingState){case z.FINISHED:return!1;case z.PAUSED:this.highestPriorityPage=w.renderingId,w.resume();break;case z.RUNNING:this.highestPriorityPage=w.renderingId;break;case z.INITIAL:this.highestPriorityPage=w.renderingId,w.draw().finally(function(){o.renderHighestPriority()}).catch(function(u){console.error('renderView: "'.concat(u,'"'))})}return!0}}]),V}()},function(q,v,O){"use strict";
1Object.defineProperty(v,"__esModule",{value:!0}),v.PDFSinglePageViewer=void 0;var y=O(19),M=O(2);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function V(e,t,r){return(V=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(a,s,g){var _=function B(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(a,s);if(_){var k=Object.getOwnPropertyDescriptor(_,s);return k.get?k.get.call(g):k.value}})(e,t,r||e)}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n})(e,t)}function u(e){var t=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var a,n=c(e);if(t){var s=c(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return p(this,a)}}function p(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(e)}v.PDFSinglePageViewer=function(e){w(r,e);var t=u(r);function r(n){var a;return function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(a=t.call(this,n)).eventBus._on("pagesinit",function(s){a._ensurePageViewVisible()}),a}return function H(e,t,r){return t&&z(e.prototype,t),r&&z(e,r),e}(r,[{key:"_resetView",value:function(){V(c(r.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var a=this._pages[this._currentPageNumber-1],s=this._pages[this._previousPageNumber-1],g=this.viewer.childNodes;switch(g.length){case 0:this.viewer.appendChild(a.div);break;case 1:if(g[0]!==s.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(a===s)break;this._shadowViewer.appendChild(s.div),this.viewer.appendChild(a.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),V(c(r.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(a){var s=this,g=a.pageDiv,_=a.pageSpot,k=void 0===_?null:_,l=a.pageNumber,m=void 0===l?null:l;m&&this._setCurrentPageNumber(m);var L=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),V(c(r.prototype),"_scrollIntoView",this).call(this,{pageDiv:g,pageSpot:k,pageNumber:m}),this._updateScrollDown=function(){s.scroll.down=L,s._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(a){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,M.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,M.shadow)(this,"_isScrollModeHorizontal",!1)}}]),r}(y.BaseViewer)},function(q,v,O){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.BaseViewer=void 0;var y=O(3),M=O(17),G=O(1),D=O(2),z=O(16),H=O(7),V=O(8);function w(c,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(c,t.key,t)}}function p(c){var i=[];this.push=function(e){var t=i.indexOf(e);t>=0&&i.splice(t,1),i.push(e),i.length>c&&i.shift().destroy()},this.resize=function(e,t){if(c=e,t){for(var r=new Set,n=0,a=t.length;n<a;++n)r.add(t[n].id);(0,y.moveToEndOfArray)(i,function(s){return r.has(s.id)})}for(;i.length>c;)i.shift().destroy()}}function h(c,i){return i===c||Math.abs(i-c)<1e-15}var b=function(){function c(i){var e=this;if(function B(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")}(this,c),this.constructor===c)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=i.container,this.viewer=i.viewer||i.container.firstElementChild,this.eventBus=i.eventBus,this.linkService=i.linkService||new H.SimpleLinkService,this.downloadManager=i.downloadManager||null,this.findController=i.findController||null,this.removePageBorders=i.removePageBorders||!1,this.textLayerMode=Number.isInteger(i.textLayerMode)?i.textLayerMode:y.TextLayerMode.ENABLE,this.imageResourcesPath=i.imageResourcesPath||"",this.renderInteractiveForms=i.renderInteractiveForms||!1,this.enablePrintAutoRotate=i.enablePrintAutoRotate||!1,this.renderer=i.renderer||y.RendererType.CANVAS,this.enableWebGL=i.enableWebGL||!1,this.useOnlyCssZoom=i.useOnlyCssZoom||!1,this.maxCanvasPixels=i.maxCanvasPixels,this.l10n=i.l10n||y.NullL10n,this.defaultRenderingQueue=!i.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new M.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=i.renderingQueue,this.scroll=(0,y.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=y.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(function(){e.eventBus.dispatch("baseviewerinit",{source:e})})}
1return function o(c,i,e){return i&&w(c.prototype,i),e&&w(c,e),c}(c,[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):0<e&&e<=this.pagesCount&&(this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels&&this._pageLabels[e-1]}),t&&this._resetCurrentPageView(),!0)}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,e){var r=e.numPages,n=e.getPage(1);this._pagesCapability.promise.then(function(){t.eventBus.dispatch("pagesloaded",{source:t,pagesCount:r})}),this._onBeforeDraw=function(a){var s=t._pages[a.pageNumber-1];!s||t._buffer.push(s)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(a){a.cssTransform||t._onePageRenderedCapability.settled||(t._onePageRenderedCapability.resolve(),t.eventBus._off("pagerendered",t._onAfterDraw),t._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),n.then(function(a){t._firstPageCapability.resolve(a);for(var s=t.currentScale,g=a.getViewport({scale:s*y.CSS_UNITS}),_=t.textLayerMode!==y.TextLayerMode.DISABLE?t:null,k=1;k<=r;++k){var l=new z.PDFPageView({container:t._viewerElement,eventBus:t.eventBus,id:k,scale:s,defaultViewport:g.clone(),renderingQueue:t.renderingQueue,textLayerFactory:_,textLayerMode:t.textLayerMode,annotationLayerFactory:t,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,renderer:t.renderer,enableWebGL:t.enableWebGL,useOnlyCssZoom:t.useOnlyCssZoom,maxCanvasPixels:t.maxCanvasPixels,l10n:t.l10n});t._pages.push(l)}var m=t._pages[0];m&&(m.setPdfPage(a),t.linkService.cachePageRef(1,a.ref)),t._spreadMode!==y.SpreadMode.NONE&&t._updateSpreadMode(),t._onePageRenderedOrForceFetch().then(function(){if(t.findController&&t.findController.setDocument(e),e.loadingParams.disableAutoFetch||r>7500)t._pagesCapability.resolve();else{var L=r-1;if(L<=0)t._pagesCapability.resolve();else for(var P=function(R){e.getPage(R).then(function(f){var Z=t._pages[R-1];Z.pdfPage||Z.setPdfPage(f),t.linkService.cachePageRef(R,f.ref),0==--L&&t._pagesCapability.resolve()},function(f){console.error("Unable to get page ".concat(R," to initialize viewer"),f),0==--L&&t._pagesCapability.resolve()})},N=2;N<=r;++N)P(N)}}),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()}).catch(function(a){console.error("Unable to initialize viewer",a)})}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var t=0,r=this._pages.length;t<r;t++)this._pages[t].setPageLabel(this._pageLabels&&this._pageLabels[t])}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=y.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new p(10),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,D.createPromiseCapability)(),this._onePageRenderedCapability=(0,D.createPromiseCapability)(),this._pagesCapability=(0,D.createPromiseCapability)(),this._scrollMode=y.ScrollMode.VERTICAL,this._spreadMode=y.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(e){var r=e.pageSpot;(0,y.scrollIntoView)(e.pageDiv,void 0===r?null:r)}},{key:"_setScaleUpdatePages",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),h(this._currentScale,e))n&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var a=0,s=this._pages.length;a<s;a++)this._pages[a].update(e);if(this._currentScale=e,!r){var _,g=this._currentPageNumber;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(g=this._location.pageNumber,_=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:g,destArray:_,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:n?t:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=parseFloat(e);
1if(r>0)this._setScaleUpdatePages(r,e,t,!1);else{var n=this._pages[this._currentPageNumber-1];if(!n)return;var a=this.isInPresentationMode||this.removePageBorders,s=a?0:y.SCROLLBAR_PADDING,g=a?0:y.VERTICAL_PADDING;if(!a&&this._isScrollModeHorizontal){var _=[g,s];s=_[0],g=_[1]}var k=(this.container.clientWidth-s)/n.width*n.scale,l=(this.container.clientHeight-g)/n.height*n.scale;switch(e){case"page-actual":r=1;break;case"page-width":r=k;break;case"page-height":r=l;break;case"page-fit":r=Math.min(k,l);break;case"auto":var m=(0,y.isPortraitOrientation)(n)?k:Math.min(l,k);r=Math.min(y.MAX_AUTO_SCALE,m);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(r,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this._scrollIntoView({pageDiv:this._pages[this._currentPageNumber-1].div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,r=e.destArray,n=void 0===r?null:r,a=e.allowNegativeOffset,s=void 0!==a&&a,g=e.ignoreDestinationZoom,_=void 0!==g&&g;if(this.pdfDocument){var k=Number.isInteger(t)&&this._pages[t-1];if(!k)return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'));if(this.isInPresentationMode||!n)return void this._setCurrentPageNumber(t,!0);var j,l=0,m=0,L=0,P=0,R=k.rotation%180!=0,f=(R?k.height:k.width)/k.scale/y.CSS_UNITS,Z=(R?k.width:k.height)/k.scale/y.CSS_UNITS,E=0;switch(n[1].name){case"XYZ":E=n[4],l=null!==(l=n[2])?l:0,m=null!==(m=n[3])?m:Z;break;case"Fit":case"FitB":E="page-fit";break;case"FitH":case"FitBH":E="page-width",null===(m=n[2])&&this._location&&(l=this._location.left,m=this._location.top);break;case"FitV":case"FitBV":l=n[2],L=f,P=Z,E="page-height";break;case"FitR":L=n[4]-(l=n[2]),j=(this.container.clientHeight-(this.removePageBorders?0:y.VERTICAL_PADDING))/(P=n[5]-(m=n[3]))/y.CSS_UNITS,E=Math.min(Math.abs((this.container.clientWidth-(this.removePageBorders?0:y.SCROLLBAR_PADDING))/L/y.CSS_UNITS),Math.abs(j));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(n[1].name,'" is not a valid destination type.'))}if(_||(E&&E!==this._currentScale?this.currentScaleValue=E:this._currentScale===y.UNKNOWN_SCALE&&(this.currentScaleValue=y.DEFAULT_SCALE_VALUE)),"page-fit"===E&&!n[4])return void this._scrollIntoView({pageDiv:k.div,pageNumber:t});var U=[k.viewport.convertToViewportPoint(l,m),k.viewport.convertToViewportPoint(l+L,m+P)],W=Math.min(U[0][0],U[1][0]),$=Math.min(U[0][1],U[1][1]);s||(W=Math.max(W,0),$=Math.max($,0)),this._scrollIntoView({pageDiv:k.div,pageSpot:{left:W,top:$},pageNumber:t})}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,r=this._currentScaleValue,n=parseFloat(r)===t?Math.round(1e4*t)/100:r,a=e.id,s="#page="+a;s+="&zoom="+n;var _=this.container,k=this._pages[a-1].getPagePoint(_.scrollLeft-e.x,_.scrollTop-e.y),l=Math.round(k[0]),m=Math.round(k[1]);this._location={pageNumber:a,scale:n,top:m,left:l,rotation:this._pagesRotation,pdfOpenParams:s+=","+l+","+m}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,r=t.length;if(0!==r){var n=Math.max(10,2*r+1);this._buffer.resize(n,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],t=e.div,r={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:r,last:r,views:[r]}}},{key:"_getVisiblePages",value:function(){return(0,y.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some(function(t){return t.id===e}))}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].renderingState!==M.RenderingStates.FINISHED&&this._pages[e].reset()}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._pages.length;e<t;e++)this._pages[e]&&this._pages[e].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);var r=this.pdfDocument.getPage(e.id).then(function(n){return e.pdfPage||e.setPdfPage(n),t._pagesRequests.delete(e),n}).catch(function(n){console.error("Unable to get page for page view",n),t._pagesRequests.delete(e)});return this._pagesRequests.set(e,r),r}},{key:"forceRendering",value:function(e){var t=this,r=e||this._getVisiblePages(),a=this.renderingQueue.getHighestPriority(r,this._pages,this._isScrollModeHorizontal?this.scroll.right:this.scroll.down);return!!a&&(this._ensurePdfPageLoaded(a).then(function(){t.renderingQueue.renderView(a)}),!0)}},{key:"createTextLayerBuilder",value:function(e,t,r){return new V.TextLayerBuilder({textLayerDiv
1:e,eventBus:arguments.length>4?arguments[4]:void 0,pageIndex:t,viewport:r,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&arguments.length>3&&void 0!==arguments[3]&&arguments[3]})}},{key:"createAnnotationLayerBuilder",value:function(e,t){return new G.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",renderInteractiveForms:arguments.length>3&&void 0!==arguments[3]&&arguments[3],linkService:this.linkService,downloadManager:this.downloadManager,l10n:arguments.length>4&&void 0!==arguments[4]?arguments[4]:y.NullL10n})}},{key:"getPagesOverview",value:function(){var e=this._pages.map(function(r){var n=r.pdfPage.getViewport({scale:1});return{width:n.width,height:n.height,rotation:n.rotation}});if(!this.enablePrintAutoRotate)return e;var t=(0,y.isPortraitOrientation)(e[0]);return e.map(function(r){return t===(0,y.isPortraitOrientation)(r)?r:{width:r.height,height:r.width,rotation:(r.rotation+90)%360}})}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,r=this.viewer;r.classList.toggle("scrollHorizontal",t===y.ScrollMode.HORIZONTAL),r.classList.toggle("scrollWrapped",t===y.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,r=this._pages;if(t.textContent="",this._spreadMode===y.SpreadMode.NONE)for(var n=0,a=r.length;n<a;++n)t.appendChild(r[n].div);else for(var s=this._spreadMode-1,g=null,_=0,k=r.length;_<k;++_)null===g?((g=document.createElement("div")).className="spread",t.appendChild(g)):_%2===s&&(g=g.cloneNode(!1),t.appendChild(g)),g.appendChild(r[_].div);!e||(this._setCurrentPageNumber(e,!0),this.update())}}},{key:"pagesCount",get:function(){return this._pages.length}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every(function(e){return e&&e.pdfPage})}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(e,'" is not a valid page.'))}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(e){if(this.pdfDocument){var t=0|e;if(this._pageLabels){var r=this._pageLabels.indexOf(e);r>=0&&(t=r+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==y.UNKNOWN_SCALE?this._currentScale:y.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){!this.pdfDocument||this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,y.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,r=0,n=this._pages.length;r<n;r++){var a=this._pages[r];a.update(a.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===y.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===y.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===y.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,r=this._pages.length;t<r;++t){var n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!(0,y.isValidScrollMode)(e))throw new Error("Invalid scroll mode: ".concat(e));this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!(0,y.isValidSpreadMode)(e))throw new Error("Invalid spread mode: ".concat(e));this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}}]),c}();v.BaseViewer=b},function(q,v,O){"use strict";
1Object.defineProperty(v,"__esModule",{value:!0}),v.PDFViewer=void 0;var y=O(19),M=O(2);function G(n){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(s){return typeof s}:function(s){return s&&"function"==typeof Symbol&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(n)}function D(n,a){var s;if(typeof Symbol>"u"||null==n[Symbol.iterator]){if(Array.isArray(n)||(s=function z(n,a){if(n){if("string"==typeof n)return H(n,a);var s=Object.prototype.toString.call(n).slice(8,-1);if("Object"===s&&n.constructor&&(s=n.constructor.name),"Map"===s||"Set"===s)return Array.from(n);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return H(n,a)}}(n))||a&&n&&"number"==typeof n.length){s&&(n=s);var g=0,_=function(){};return{s:_,n:function(){return g>=n.length?{done:!0}:{done:!1,value:n[g++]}},e:function(P){throw P},f:_}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m,k=!0,l=!1;return{s:function(){s=n[Symbol.iterator]()},n:function(){var P=s.next();return k=P.done,P},e:function(P){l=!0,m=P},f:function(){try{!k&&null!=s.return&&s.return()}finally{if(l)throw m}}}}function H(n,a){(null==a||a>n.length)&&(a=n.length);for(var s=0,g=new Array(a);s<a;s++)g[s]=n[s];return g}function V(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")}function B(n,a){for(var s=0;s<a.length;s++){var g=a[s];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}function o(n,a,s){return(o=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(_,k,l){var m=function u(n,a){for(;!Object.prototype.hasOwnProperty.call(n,a)&&null!==(n=t(n)););return n}(_,k);if(m){var L=Object.getOwnPropertyDescriptor(m,k);return L.get?L.get.call(l):L.value}})(n,a,s||n)}function p(n,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),a&&h(n,a)}function h(n,a){return(h=Object.setPrototypeOf||function(g,_){return g.__proto__=_,g})(n,a)}function b(n){var a=function e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var _,g=t(n);if(a){var k=t(this).constructor;_=Reflect.construct(g,arguments,k)}else _=g.apply(this,arguments);return c(this,_)}}function c(n,a){return!a||"object"!==G(a)&&"function"!=typeof a?function i(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):a}function t(n){return(t=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)})(n)}var r=function(n){p(s,n);var a=b(s);function s(){return V(this,s),a.apply(this,arguments)}return function w(n,a,s){return a&&B(n.prototype,a),s&&B(n,s),n}(s,[{key:"_scrollIntoView",value:function(_){var k=_.pageDiv,l=_.pageSpot,m=void 0===l?null:l,L=_.pageNumber,P=void 0===L?null:L;if(!m&&!this.isInPresentationMode){var N=k.offsetLeft+k.clientLeft,R=this.container,f=R.scrollLeft;(this._isScrollModeHorizontal||N<f||N+k.clientWidth>f+R.clientWidth)&&(m={left:0,top:0})}o(t(s.prototype),"_scrollIntoView",this).call(this,{pageDiv:k,pageSpot:m,pageNumber:P})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():o(t(s.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(_){if(!this.isInPresentationMode){var L,k=this._currentPageNumber,l=!1,m=D(_);try{for(m.s();!(L=m.n()).done;){var P=L.value;if(P.percent<100)break;if(P.id===k){l=!0;break}}}catch(N){m.e(N)}finally{m.f()}l||(k=_[0].id),this._setCurrentPageNumber(k)}}},{key:"_viewerElement",get:function(){return(0,M.shadow)(this,"_viewerElement",this.viewer)}}]),s}(y.BaseViewer);v.PDFViewer=r}])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.