(self["webpackChunkfront"]=self["webpackChunkfront"]||[]).push([[752],{62506:function(module,__unused_webpack_exports,__webpack_require__){(function(e,t){module.exports=t(__webpack_require__(20144))})("undefined"!==typeof self&&self,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({0:function(e,t){},"00ee":function(e,t,r){var n=r("b622"),a=n("toStringTag"),i={};i[a]="z",e.exports="[object z]"===String(i)},"02c5":function(e,t,r){"use strict";(function(e,n){ /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */ r("99af"),r("cb29"),r("4160"),r("e260"),r("a15b"),r("d81d"),r("fb6a"),r("a9e3"),r("8ba4"),r("b680"),r("d3b7"),r("e6cf"),r("25f0"),r("3ca3"),r("2ca0"),r("cc71"),r("143c"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b"),r("ddb0");var a=r("448a"),i=r("278c"),o=r("6374"),s=r("970b"),l=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var c=r("dacc"),u=r("61a8"),d=r("eca3"),h=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=h;{var f={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},p="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/1999/xlink",v=["butt","round","square"],m=["miter","round","bevel"],b=function(){for(var t=new Uint8Array([137,80,78,71,13,10,26,10]),a=12,i=new Int32Array(256),o=0;o<256;o++){for(var s=o,l=0;l<8;l++)s=1&s?3988292384^s>>1&2147483647:s>>1&2147483647;i[o]=s}function u(e,t,r){for(var n=-1,a=t;a>>8^s}return-1^n}function h(e,t,r,n){var a=n,i=t.length;r[a]=i>>24&255,r[a+1]=i>>16&255,r[a+2]=i>>8&255,r[a+3]=255&i,a+=4,r[a]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(t,a),a+=t.length;var o=u(r,n+4,a);r[a]=o>>24&255,r[a+1]=o>>16&255,r[a+2]=o>>8&255,r[a+3]=255&o}function f(e,t,r){for(var n=1,a=0,i=t;i=8?t:n.from(t);var i=r(5).deflateSync(a,{level:9});return i instanceof Uint8Array?i:new Uint8Array(i)}catch(o){(0,c.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+o)}return g(t)}function g(e){var t=e.length,r=65535,n=Math.ceil(t/r),a=new Uint8Array(2+t+5*n+4),i=0;a[i++]=120,a[i++]=156;var o=0;while(t>r)a[i++]=0,a[i++]=255,a[i++]=255,a[i++]=0,a[i++]=0,a.set(e.subarray(o,o+r),i),i+=r,o+=r,t-=r;a[i++]=1,a[i++]=255&t,a[i++]=t>>8&255,a[i++]=255&~t,a[i++]=(65535&~t)>>8&255,a.set(e.subarray(o),i),i+=e.length-o;var s=f(e,0,e.length);return a[i++]=s>>24&255,a[i++]=s>>16&255,a[i++]=s>>8&255,a[i++]=255&s,a}function v(e,r,n,i){var o,s,l,u=e.width,d=e.height,f=e.data;switch(r){case c.ImageKind.GRAYSCALE_1BPP:s=0,o=1,l=u+7>>3;break;case c.ImageKind.RGB_24BPP:s=2,o=8,l=3*u;break;case c.ImageKind.RGBA_32BPP:s=6,o=8,l=4*u;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+l)*d),v=0,m=0,b=0;b>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,o,s,0,0,0]),k=p(g),x=t.length+3*a+_.length+k.length,S=new Uint8Array(x),A=0;return S.set(t,A),A+=t.length,h("IHDR",_,S,A),A+=a+_.length,h("IDATA",k,S,A),A+=a+k.length,h("IEND",new Uint8Array(0),S,A),(0,c.createObjectURL)(S,"image/png",n)}return function(e,t,r){var n=void 0===e.kind?c.ImageKind.GRAYSCALE_1BPP:e.kind;return v(e,n,t,r)}}(),y=function(){function e(){s(this,e),this.fontSizeScale=1,this.fontWeight=f.fontWeight,this.fontSize=0,this.textMatrix=c.IDENTITY_MATRIX,this.fontMatrix=c.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=c.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=f.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return l(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}();function x(e){var t,r=[],n=[],a=o(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;"save"!==i.fn?"restore"===i.fn?r=n.pop():r.push(i):(r.push({fnId:92,fn:"group",items:[]}),n.push(r),r=r[r.length-1].items)}}catch(s){a.e(s)}finally{a.f()}return r}function S(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10),r=t.length-1;if("0"!==t[r])return t;do{r--}while("0"===t[r]);return t.substring(0,"."===t[r]?r:r+1)}function A(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(S(e[0])," ").concat(S(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var t=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(S(t),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(S(e[4])," ").concat(S(e[5]),")");return"matrix(".concat(S(e[0])," ").concat(S(e[1])," ").concat(S(e[2])," ").concat(S(e[3])," ").concat(S(e[4])," ")+"".concat(S(e[5]),")")}var w=0,_=0,k=0;t.SVGGraphics=h=function(){function e(t,r,n){for(var a in s(this,e),this.svgFactory=new u.DOMSVGFactory,this.current=new y,this.transformMatrix=c.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[],c.OPS)this._operatorIdMapping[c.OPS[a]]=a}return l(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,n=e.argsArray,a=0,i=r.length;a0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=v[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=m[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,r){this.current.strokeColor=c.Util.makeCssRgb(e,t,r)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,r){this.current.fillColor=c.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,n=c.Util.inverseTransform(this.transformMatrix),a=c.Util.applyTransform([0,0],n),i=c.Util.applyTransform([0,r],n),o=c.Util.applyTransform([t,0],n),s=c.Util.applyTransform([t,r],n),l=Math.min(a[0],i[0],o[0],s[0]),u=Math.min(a[1],i[1],o[1],s[1]),d=Math.max(a[0],i[0],o[0],s[0]),h=Math.max(a[1],i[1],o[1],s[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",l),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",d-l),f.setAttributeNS(null,"height",h-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],n=e[3]||c.IDENTITY_MATRIX,o=i(e[4],4),s=o[0],l=o[1],u=o[2],d=o[3],h=e[5],f=e[6],p=e[7],g="shading".concat(k++),v=c.Util.applyTransform([s,l],n),m=i(v,2),b=m[0],y=m[1],w=c.Util.applyTransform([u,d],n),_=i(w,2),x=_[0],S=_[1],A=c.Util.singularValueDecompose2dScale(n),C=i(A,2),P=C[0],T=C[1],E=h*P,R=f*T,I=this.svgFactory.createElement("svg:pattern");I.setAttributeNS(null,"id",g),I.setAttributeNS(null,"patternUnits","userSpaceOnUse"),I.setAttributeNS(null,"width",E),I.setAttributeNS(null,"height",R),I.setAttributeNS(null,"x","".concat(b)),I.setAttributeNS(null,"y","".concat(y));var O=this.svg,L=this.transformMatrix,F=this.current.fillColor,M=this.current.strokeColor,D=this.svgFactory.create(x-b,S-y);if(this.svg=D,this.transformMatrix=n,2===p){var N,B=(N=c.Util).makeCssRgb.apply(N,a(t));this.current.fillColor=B,this.current.strokeColor=B}return this.executeOpTree(this.convertOpList(r)),this.svg=O,this.transformMatrix=L,this.current.fillColor=F,this.current.strokeColor=M,I.appendChild(D.childNodes[0]),this.defs.appendChild(I),"url(#".concat(g,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,r="shading".concat(k++),n=e[3];switch(e[1]){case"axial":var a=e[4],i=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",a[0]),t.setAttributeNS(null,"y1",a[1]),t.setAttributeNS(null,"x2",i[0]),t.setAttributeNS(null,"y2",i[1]);break;case"radial":var s=e[4],l=e[5],u=e[6],d=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",d),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",u);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var h,f=o(n);try{for(f.s();!(h=f.n()).done;){var p=h.value,g=this.svgFactory.createElement("svg:stop");g.setAttributeNS(null,"offset",p[0]),g.setAttributeNS(null,"stop-color",p[1]),t.appendChild(g)}}catch(v){f.e(v)}finally{f.f()}return this.defs.appendChild(t),"url(#".concat(r,")");case"Mesh":return(0,c.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r,n=this.current,a=n.x,i=n.y,s=[],l=0,u=o(e);try{for(u.s();!(r=u.n()).done;){var d=r.value;switch(0|d){case c.OPS.rectangle:a=t[l++],i=t[l++];var h=t[l++],f=t[l++],p=a+h,g=i+f;s.push("M",S(a),S(i),"L",S(p),S(i),"L",S(p),S(g),"L",S(a),S(g),"Z");break;case c.OPS.moveTo:a=t[l++],i=t[l++],s.push("M",S(a),S(i));break;case c.OPS.lineTo:a=t[l++],i=t[l++],s.push("L",S(a),S(i));break;case c.OPS.curveTo:a=t[l+4],i=t[l+5],s.push("C",S(t[l]),S(t[l+1]),S(t[l+2]),S(t[l+3]),S(a),S(i)),l+=6;break;case c.OPS.curveTo2:s.push("C",S(a),S(i),S(t[l]),S(t[l+1]),S(t[l+2]),S(t[l+3])),a=t[l+2],i=t[l+3],l+=4;break;case c.OPS.curveTo3:a=t[l+2],i=t[l+3],s.push("C",S(t[l]),S(t[l+1]),S(a),S(i),S(a),S(i)),l+=4;break;case c.OPS.closePath:s.push("Z");break}}}catch(v){u.e(v)}finally{u.f()}s=s.join(" "),n.path&&e.length>0&&e[0]!==c.OPS.rectangle&&e[0]!==c.OPS.moveTo?s=n.path.getAttributeNS(null,"d")+s:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",s),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(a,i)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(w++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",A(this.transformMatrix));var n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,r=o(e);try{for(r.s();!(t=r.n()).done;){var n=i(t.value,2),a=n[0],s=n[1];switch(a){case"LW":this.setLineWidth(s);break;case"LC":this.setLineCap(s);break;case"LJ":this.setLineJoin(s);break;case"ML":this.setMiterLimit(s);break;case"D":this.setDash(s[0],s[1]);break;case"RI":this.setRenderingIntent(s);break;case"FL":this.setFlatness(s);break;case"Font":this.setFont(s);break;case"CA":this.setStrokeAlpha(s);break;case"ca":this.setFillAlpha(s);break;default:(0,c.warn)("Unimplemented graphic state operator ".concat(a));break}}}catch(l){r.e(l)}finally{r.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",S(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",S(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(S).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",S(t*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintJpegXObject",value:function(e,t,r){var n=this.objs.get(e),a=this.svgFactory.createElement("svg:image");a.setAttributeNS(g,"xlink:href",n.src),a.setAttributeNS(null,"width",S(t)),a.setAttributeNS(null,"height",S(r)),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",S(-r)),a.setAttributeNS(null,"transform","scale(".concat(S(1/t)," ").concat(S(-1/r),")")),this._ensureTransformGroup().appendChild(a)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,c.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var r=e.width,n=e.height,a=b(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",S(r)),i.setAttributeNS(null,"height",S(n)),this.current.element=i,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS(g,"xlink:href",a),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",S(-n)),o.setAttributeNS(null,"width",S(r)+"px"),o.setAttributeNS(null,"height",S(n)+"px"),o.setAttributeNS(null,"transform","scale(".concat(S(1/r)," ").concat(S(-1/n),")")),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,n=e.height,a=t.fillColor;t.maskId="mask".concat(_++);var i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",S(r)),o.setAttributeNS(null,"height",S(n)),o.setAttributeNS(null,"fill",a),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(i),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,i)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",S(r)),a.setAttributeNS(null,"height",S(n)),this.current.element=a,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",A(e.transform)),t.appendChild(n),this.svg=n,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",A(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()}}).call(this,r("4362"),r("b639").Buffer)},"0366":function(e,t,r){var n=r("1c0b");e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},"0496":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("4160"),r("caad"),r("fb6a"),r("a434"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("07ac"),r("e6cf"),r("ac1f"),r("2532"),r("5319"),r("1276"),r("498a"),r("159b");var n=r("970b"),a=r("5bc3"),i=r("7037"),o=r("278c");r("96cf");var s=r("c973");Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=U,t.isValidScrollMode=j,t.isValidSpreadMode=q,t.isPortraitOrientation=z,t.getGlobalEventBus=K,t.clamp=Z,t.getPDFFileNameFromURL=N,t.noContextMenuHandler=M,t.parseQueryString=T,t.backtrackBeforeAllVisibleElements=L,t.getVisibleElements=F,t.roundToDivide=I,t.getPageSizeInches=O,t.approximateFraction=R,t.getOutputScale=A,t.scrollIntoView=C,t.watchScroll=P,t.binarySearchFirstItem=E,t.normalizeWheelEventDelta=B,t.waitOnEventOrTimeout=W,t.moveToEndOfArray=Q,t.WaitOnType=t.animationStarted=t.ProgressBar=t.EventBus=t.NullL10n=t.SpreadMode=t.ScrollMode=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=t.AutoPrintRegExp=void 0;var l=96/72;t.CSS_UNITS=l;var c="auto";t.DEFAULT_SCALE_VALUE=c;var u=1;t.DEFAULT_SCALE=u;var d=.1;t.MIN_SCALE=d;var h=10;t.MAX_SCALE=h;var f=0;t.UNKNOWN_SCALE=f;var p=1.25;t.MAX_AUTO_SCALE=p;var g=40;t.SCROLLBAR_PADDING=g;var v=5;t.VERTICAL_PADDING=v;var m={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};t.PresentationModeState=m;var b={CANVAS:"canvas",SVG:"svg"};t.RendererType=b;var y={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};t.TextLayerMode=y;var w={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};t.ScrollMode=w;var _={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=_;var k=/\bprint\s*\(/;function x(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,(function(e,r){return r in t?t[r]:"{{"+r+"}}"})):e}t.AutoPrintRegExp=k;var S={getLanguage:function(){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}}),e)})))()},getDirection:function(){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}}),e)})))()},get:function(e,t,r){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",x(r,t));case 1:case"end":return e.stop()}}),e)})))()},translate:function(e){return s(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}};function A(e){var t=window.devicePixelRatio||1,r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,n=t/r;return{sx:n,sy:n,scaled:1!==n}}function C(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.offsetParent;if(n){var a=e.offsetTop+e.clientTop,i=e.offsetLeft+e.clientLeft;while(n.clientHeight===n.scrollHeight&&n.clientWidth===n.scrollWidth||r&&"hidden"===getComputedStyle(n).overflow)if(n.dataset._scaleY&&(a/=n.dataset._scaleY,i/=n.dataset._scaleX),a+=n.offsetTop,i+=n.offsetLeft,n=n.offsetParent,!n)return;t&&(void 0!==t.top&&(a+=t.top),void 0!==t.left&&(i+=t.left,n.scrollLeft=i)),n.scrollTop=a}else console.error("offsetParent is not set -- cannot scroll")}function P(e,t){var r=function(r){a||(a=window.requestAnimationFrame((function(){a=null;var r=e.scrollLeft,i=n.lastX;r!==i&&(n.right=r>i),n.lastX=r;var o=e.scrollTop,s=n.lastY;o!==s&&(n.down=o>s),n.lastY=o,t(n)})))},n={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r},a=null;return e.addEventListener("scroll",r,!0),n}function T(e){for(var t=e.split("&"),r=Object.create(null),n=0,a=t.length;n1?i[1]:null;r[decodeURIComponent(o)]=decodeURIComponent(s)}return r}function E(e,t){var r=0,n=e.length-1;if(0===e.length||!t(e[n]))return e.length;if(t(e[r]))return r;while(r>1,i=e[a];t(i)?n=a:r=a+1}return r}function R(e){if(Math.floor(e)===e)return[e,1];var t=1/e,r=8;if(t>r)return[1,r];if(Math.floor(t)===t)return[1,t];var n,a=e>1?t:e,i=0,o=1,s=1,l=1;while(1){var c=i+s,u=o+l;if(u>r)break;a<=c/u?(s=c,l=u):(i=c,o=u)}return n=a-i/o=r&&(n=t[e-1].div,a=n.offsetTop+n.clientTop);for(var i=e-2;i>=0;--i){if(n=t[i].div,n.offsetTop+n.clientTop+n.clientHeight<=a)break;e=i}return e}function F(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.scrollTop,i=a+e.clientHeight,o=e.scrollLeft,s=o+e.clientWidth;function l(e){var t=e.div,r=t.offsetTop+t.clientTop+t.clientHeight;return r>a}function c(e){var t=e.div,r=t.offsetLeft+t.clientLeft+t.clientWidth;return r>o}var u=[],d=t.length,h=0===d?0:E(t,n?c:l);h>0&&h=i&&(f=k);else if((n?m:b)>f)break;if(!(k<=a||b>=i||_<=o||m>=s)){var x=Math.max(0,a-b)+Math.max(0,k-i),S=Math.max(0,o-m)+Math.max(0,_-s),A=(w-x)*(y-S)*100/w/y|0;u.push({id:g.id,x:m,y:b,view:g,percent:A})}}var C=u[0],P=u[u.length-1];return r&&u.sort((function(e,t){var r=e.percent-t.percent;return Math.abs(r)>.001?-r:e.id-t.id})),{first:C,last:P,views:u}}function M(e){e.preventDefault()}function D(e){var t=0,r=e.length;while(t1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!==typeof e)return t;if(D(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var r=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,n=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,a=r.exec(e),i=n.exec(a[1])||n.exec(a[2])||n.exec(a[3]);if(i&&(i=i[0],i.includes("%")))try{i=n.exec(decodeURIComponent(i))[0]}catch(o){}return i||t}function B(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),r=Math.atan2(e.deltaY,e.deltaX);-.25*Math.PI=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(n){t instanceof Y?t._off(r,s):t.removeEventListener(r,s),c&&clearTimeout(c),e(n)}var s=o.bind(null,V.EVENT);t instanceof Y?t._on(r,s):t.addEventListener(r,s);var l=o.bind(null,V.TIMEOUT),c=setTimeout(l,a)}))}t.WaitOnType=V;var H=new Promise((function(e){window.requestAnimationFrame(e)}));function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Object.create(null);if(t&&t.length>0){var n=t[0];for(var a in n){var i=n[a];if("source"!==a)r[a]=i;else if(i===window||i===document)return}}var o=document.createEvent("CustomEvent");o.initCustomEvent(e,!0,!0,r),document.dispatchEvent(o)}t.animationStarted=H;var Y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.dispatchToDOM,a=void 0!==r&&r;n(this,e),this._listeners=Object.create(null),this._dispatchToDOM=!0===a,a&&console.error("The `eventBusDispatchToDOM` option/preference is deprecated, add event listeners to the EventBus instance rather than the DOM.")}return a(e,[{key:"on",value:function(e,t){this._on(e,t,{external:!0})}},{key:"off",value:function(e,t){this._off(e,t,{external:!0})}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var r,n=Array.prototype.slice.call(arguments,1);t.slice(0).forEach((function(e){var t=e.listener,a=e.external;if(a)return r||(r=[]),void r.push(t);t.apply(null,n)})),r&&(r.forEach((function(e){e.apply(null,n)})),r=null),this._dispatchToDOM&&G(e,n)}else if(this._dispatchToDOM){var a=Array.prototype.slice.call(arguments,1);G(e,a)}}},{key:"_on",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this._listeners[e];n||(this._listeners[e]=n=[]),n.push({listener:t,external:!0===(r&&r.external)})}},{key:"_off",value:function(e,t){var r=this._listeners[e];if(r)for(var n=0,a=r.length;n0&&void 0!==arguments[0]&&arguments[0];return console.error("getGlobalEventBus is deprecated, use a manually created EventBus instance instead."),X||(X=new Y({dispatchToDOM:e})),X}function Z(e,t,r){return Math.min(Math.max(e,t),r)}var J=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.height,i=r.width,o=r.units;n(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=a||100,this.width=i||100,this.units=o||"%",this.div.style.height=this.height+this.units,this.percent=0}return a(e,[{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");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode,r=t.offsetWidth-e.offsetWidth;r>0&&(this.bar.style.width="calc(100% - ".concat(r,"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(e){this._indeterminate=isNaN(e),this._percent=Z(e,0,100),this._updateBar()}}]),e}();function Q(e,t){for(var r=[],n=e.length,a=0,i=0;i0&&void 0!==arguments[0]?arguments[0]:null,t=Object.create(null);for(var r in c){var a=c[r];if(e){if(0===(e&a.kind))continue;if(e===l.PREFERENCE){var i=a.value,o=n(i);if("boolean"===o||"string"===o||"number"===o&&Number.isInteger(i)){t[r]=i;continue}throw new Error("Invalid type for preference: ".concat(r))}}var s=u[r];t[r]=void 0!==s?s:a.compatibility||a.value}return t}},{key:"set",value:function(e,t){u[e]=t}},{key:"remove",value:function(e){delete u[e]}}]),e}();t.AppOptions=d},"0538":function(e,t,r){"use strict";var n=r("1c0b"),a=r("861d"),i=[].slice,o={},s=function(e,t,r){if(!(t in o)){for(var n=[],a=0;al&&(c=c.slice(0,l)),e?u+c:c+u)}};e.exports={start:s(!1),end:s(!0)}},"0cfb":function(e,t,r){var n=r("83ab"),a=r("d039"),i=r("cc12");e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,r){var n=r("d039"),a=r("b622"),i=r("c430"),o=a("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},1:function(e,t){},"10d1":function(e,t,r){"use strict";var n,a=r("da84"),i=r("e2cc"),o=r("f183"),s=r("6d61"),l=r("acac"),c=r("861d"),u=r("69f3").enforce,d=r("7f9a"),h=!a.ActiveXObject&&"ActiveXObject"in a,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,l);if(d&&h){n=l.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var v=g.prototype,m=v["delete"],b=v.has,y=v.get,w=v.set;i(v,{delete:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),m.call(this,e)||t.frozen["delete"](e)}return m.call(this,e)},has:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!f(e)){var r=u(this);r.frozen||(r.frozen=new n),b.call(this,e)?w.call(this,e,t):r.frozen.set(e,t)}else w.call(this,e,t);return this}})}},1148:function(e,t,r){"use strict";var n=r("a691"),a=r("1d80");e.exports="".repeat||function(e){var t=String(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},"11b0":function(e,t,r){function n(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r("a4d3"),r("e01a"),r("d28b"),r("a630"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),e.exports=n},1276:function(e,t,r){"use strict";var n=r("d784"),a=r("44e7"),i=r("825a"),o=r("1d80"),s=r("4840"),l=r("8aa5"),c=r("50c4"),u=r("14c3"),d=r("9263"),h=r("d039"),f=[].push,p=Math.min,g=4294967295,v=!h((function(){return!RegExp(g,"y")}));n("split",2,(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=String(o(this)),i=void 0===r?g:r>>>0;if(0===i)return[];if(void 0===e)return[n];if(!a(e))return t.call(n,e,i);var s,l,c,u=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,v=new RegExp(e.source,h+"g");while(s=d.call(v,n)){if(l=v.lastIndex,l>p&&(u.push(n.slice(p,s.index)),s.length>1&&s.index=i))break;v.lastIndex===s.index&&v.lastIndex++}return p===n.length?!c&&v.test("")||u.push(""):u.push(n.slice(p)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var a=o(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,a,r):n.call(String(a),t,r)},function(e,a){var o=r(n,e,this,a,n!==t);if(o.done)return o.value;var d=i(e),h=String(this),f=s(d,RegExp),m=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(v?"y":"g"),y=new f(v?d:"^(?:"+d.source+")",b),w=void 0===a?g:a>>>0;if(0===w)return[];if(0===h.length)return null===u(y,h)?[h]:[];var _=0,k=0,x=[];while(k0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t),this.renderingState=l.RenderingStates.INITIAL;var r=this.div;r.style.width=Math.floor(this.viewport.width)+"px",r.style.height=Math.floor(this.viewport.height)+"px";for(var n=r.childNodes,a=e&&this.zoomLayer||null,i=t&&this.annotationLayer&&this.annotationLayer.div||null,o=n.length-1;o>=0;o--){var s=n[o];a!==s&&i!==s&&r.removeChild(s)}r.removeAttribute("data-loaded"),i?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),a||(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",r.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){this.scale=e||this.scale,"undefined"!==typeof t&&(this.rotation=t);var r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*o.CSS_UNITS,rotation:r}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var n=!1;if(this.canvas&&this.maxCanvasPixels>0){var a=this.outputScale;(Math.floor(this.viewport.width)*a.sx|0)*(Math.floor(this.viewport.height)*a.sy|0)>this.maxCanvasPixels&&(n=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&n)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 e=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),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.viewport.width,n=this.viewport.height,a=this.div;e.style.width=e.parentNode.style.width=a.style.width=Math.floor(r)+"px",e.style.height=e.parentNode.style.height=a.style.height=Math.floor(n)+"px";var i=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,o=Math.abs(i),s=1,l=1;90!==o&&270!==o||(s=n/r,l=r/n);var c="rotate("+i+"deg) scale("+s+","+l+")";if(e.style.transform=c,this.textLayer){var u=this.textLayer.viewport,d=this.viewport.rotation-u.rotation,h=Math.abs(d),f=r/u.width;90!==h&&270!==h||(f=r/u.height);var p,g,v=this.textLayer.textLayerDiv;switch(h){case 0:p=g=0;break;case 90:p=0,g="-"+v.style.height;break;case 180:p="-"+v.style.width,g="-"+v.style.height;break;case 270:p="-"+v.style.width,g=0;break;default:console.error("Bad rotation value.");break}v.style.transform="rotate("+h+"deg) scale("+f+", "+f+") translate("+p+", "+g+")",v.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==l.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var t=this.div,r=this.pdfPage;if(!r)return this.renderingState=l.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=l.RenderingStates.RUNNING;var a=document.createElement("div");a.style.width=t.style.width,a.style.height=t.style.height,a.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(a,this.annotationLayer.div):t.appendChild(a);var i=null;if(this.textLayerMode!==o.TextLayerMode.DISABLE&&this.textLayerFactory){var c=document.createElement("div");c.className="textLayer",c.style.width=a.style.width,c.style.height=a.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore(c,this.annotationLayer.div):t.appendChild(c),i=this.textLayerFactory.createTextLayerBuilder(c,this.id-1,this.viewport,this.textLayerMode===o.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=i;var u=null;this.renderingQueue&&(u=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=l.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=l.RenderingStates.RUNNING,t()});t()});var d=function(){var a=n(regeneratorRuntime.mark((function n(a){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(h===e.paintTask&&(e.paintTask=null),!(a instanceof s.RenderingCancelledException)){n.next=4;break}return e.error=null,n.abrupt("return");case 4:if(e.renderingState=l.RenderingStates.FINISHED,e.loadingIconDiv&&(t.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=a,e.stats=r.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!a){n.next=12;break}throw a;case 12:case"end":return n.stop()}}),n)})));return function(e){return a.apply(this,arguments)}}(),h=this.renderer===o.RendererType.SVG?this.paintOnSvg(a):this.paintOnCanvas(a);h.onRenderContinue=u,this.paintTask=h;var f=h.promise.then((function(){return d(null).then((function(){if(i){var e=r.streamTextContent({normalizeWhitespace:!0});i.setTextContentStream(e),i.render()}}))}),(function(e){return d(e)}));return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,r,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),f}},{key:"paintOnCanvas",value:function(e){var t=(0,s.createPromiseCapability)(),r={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){b.cancel()}},n=this.viewport,a=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then((function(e){a.setAttribute("aria-label",e)})),a.setAttribute("hidden","hidden");var i=!0,l=function(){i&&(a.removeAttribute("hidden"),i=!1)};e.appendChild(a),this.canvas=a,a.mozOpaque=!0;var c=a.getContext("2d",{alpha:!1}),u=(0,o.getOutputScale)(c);if(this.outputScale=u,this.useOnlyCssZoom){var d=n.clone({scale:o.CSS_UNITS});u.sx*=d.width/n.width,u.sy*=d.height/n.height,u.scaled=!0}if(this.maxCanvasPixels>0){var h=n.width*n.height,f=Math.sqrt(this.maxCanvasPixels/h);u.sx>f||u.sy>f?(u.sx=f,u.sy=f,u.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,o.approximateFraction)(u.sx),g=(0,o.approximateFraction)(u.sy);a.width=(0,o.roundToDivide)(n.width*u.sx,p[0]),a.height=(0,o.roundToDivide)(n.height*u.sy,g[0]),a.style.width=(0,o.roundToDivide)(n.width,p[1])+"px",a.style.height=(0,o.roundToDivide)(n.height,g[1])+"px",this.paintedViewportMap.set(a,n);var v=u.scaled?[u.sx,0,0,u.sy,0,0]:null,m={canvasContext:c,transform:v,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},b=this.pdfPage.render(m);return b.onContinue=function(e){l(),r.onRenderContinue?r.onRenderContinue(e):e()},b.promise.then((function(){l(),t.resolve(void 0)}),(function(e){l(),t.reject(e)})),r}},{key:"paintOnSvg",value:function(e){var t=this,r=!1,n=function(){if(r)throw new s.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},a=this.pdfPage,i=this.viewport.clone({scale:o.CSS_UNITS}),c=a.getOperatorList().then((function(r){n();var o=new s.SVGGraphics(a.commonObjs,a.objs);return o.getSVG(r,i).then((function(r){n(),t.svg=r,t.paintedViewportMap.set(r,i),r.style.width=e.style.width,r.style.height=e.style.height,t.renderingState=l.RenderingStates.FINISHED,e.appendChild(r)}))}));return{promise:c,onRenderContinue:function(e){e()},cancel:function(){r=!0}}}},{key:"setPageLabel",value:function(e){this.pageLabel="string"===typeof e?e: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}}]),e}();t.PDFPageView=d},"130f":function(e,t,r){var n=r("23e7"),a=r("da84"),i=r("2cf4"),o=!a.setImmediate||!a.clearImmediate;n({global:!0,bind:!0,enumerable:!0,forced:o},{setImmediate:i.set,clearImmediate:i.clear})},"143c":function(e,t,r){var n=r("74e8");n("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"145e":function(e,t,r){"use strict";var n=r("7b0b"),a=r("23cb"),i=r("50c4"),o=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=i(r.length),l=a(e,s),c=a(t,s),u=arguments.length>2?arguments[2]:void 0,d=o((void 0===u?s:a(u,s))-c,s-l),h=1;c0)c in r?r[l]=r[c]:delete r[l],l+=h,c+=h;return r}},"14c3":function(e,t,r){var n=r("c6b6"),a=r("9263");e.exports=function(e,t){var r=e.exec;if("function"===typeof r){var i=r.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"159b":function(e,t,r){var n=r("da84"),a=r("fdbc"),i=r("17c2"),o=r("9112");for(var s in a){var l=n[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{o(c,"forEach",i)}catch(u){c.forEach=i}}},"16ba":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("caad"),r("e260"),r("a9e3"),r("8ba4"),r("cca6"),r("dca8"),r("d3b7"),r("e6cf"),r("3ca3"),r("ddb0"),r("96cf");var n=r("c973"),a=r("278c"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocumentProperties=void 0;var s=r("a3cd"),l=r("0496"),c="-",u=["en-us","en-lr","my"],d={"8.5x11":"Letter","8.5x14":"Legal"},h={"297x420":"A3","210x297":"A4"};function f(e,t,r){var n=t?e.width:e.height,a=t?e.height:e.width;return r["".concat(n,"x").concat(a)]}var p=function(){function e(t,r,n){var a=this,o=t.overlayName,s=t.fields,c=t.container,d=t.closeButton,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.NullL10n;i(this,e),this.overlayName=o,this.fields=s,this.container=c,this.overlayManager=r,this.l10n=h,this._reset(),d&&d.addEventListener("click",this.close.bind(this)),this.overlayManager.register(this.overlayName,this.container,this.close.bind(this)),n&&(n._on("pagechanging",(function(e){a._currentPageNumber=e.pageNumber})),n._on("rotationchanging",(function(e){a._pagesRotation=e.pagesRotation}))),this._isNonMetricLocale=!0,h.getLanguage().then((function(e){a._isNonMetricLocale=u.includes(e)}))}return o(e,[{key:"open",value:function(){var e=this,t=function(t){Object.defineProperty(e,"fieldData",{value:Object.freeze(t),writable:!1,enumerable:!0,configurable:!0})};Promise.all([this.overlayManager.open(this.overlayName),this._dataAvailableCapability.promise]).then((function(){var r=e._currentPageNumber,n=e._pagesRotation;e.fieldData&&r===e.fieldData["_currentPageNumber"]&&n===e.fieldData["_pagesRotation"]?e._updateUI():e.pdfDocument.getMetadata().then((function(t){var a=t.info,i=t.metadata,o=t.contentDispositionFilename;return Promise.all([a,i,o||(0,l.getPDFFileNameFromURL)(e.url||""),e._parseFileSize(e.maybeFileSize),e._parseDate(a.CreationDate),e._parseDate(a.ModDate),e.pdfDocument.getPage(r).then((function(t){return e._parsePageSize((0,l.getPageSizeInches)(t),n)})),e._parseLinearization(a.IsLinearized)])})).then((function(i){var o=a(i,8),s=o[0],l=(o[1],o[2]),c=o[3],u=o[4],d=o[5],h=o[6],f=o[7];return t({fileName:l,fileSize:c,title:s.Title,author:s.Author,subject:s.Subject,keywords:s.Keywords,creationDate:u,modificationDate:d,creator:s.Creator,producer:s.Producer,version:s.PDFFormatVersion,pageCount:e.pdfDocument.numPages,pageSize:h,linearized:f,_currentPageNumber:r,_pagesRotation:n}),e._updateUI(),e.pdfDocument.getDownloadInfo()})).then((function(t){var r=t.length;return e.maybeFileSize=r,e._parseFileSize(r)})).then((function(r){if(r!==e.fieldData["fileSize"]){var n=Object.assign(Object.create(null),e.fieldData);n["fileSize"]=r,t(n),e._updateUI()}}))}))}},{key:"close",value:function(){this.overlayManager.close(this.overlayName)}},{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pdfDocument&&(this._reset(),this._updateUI(!0)),e&&(this.pdfDocument=e,this.url=t,this._dataAvailableCapability.resolve())}},{key:"setFileSize",value:function(e){Number.isInteger(e)&&e>0&&(this.maybeFileSize=e)}},{key:"_reset",value:function(){this.pdfDocument=null,this.url=null,this.maybeFileSize=0,delete this.fieldData,this._dataAvailableCapability=(0,s.createPromiseCapability)(),this._currentPageNumber=1,this._pagesRotation=0}},{key:"_updateUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e&&this.fieldData){if(this.overlayManager.active===this.overlayName)for(var t in this.fields){var r=this.fieldData[t];this.fields[t].textContent=r||0===r?r:c}}else for(var n in this.fields)this.fields[n].textContent=c}},{key:"_parseFileSize",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:0,r=t/1024,r){e.next=6;break}return e.abrupt("return",void 0);case 6:if(!(r<1024)){e.next=8;break}return e.abrupt("return",this.l10n.get("document_properties_kb",{size_kb:(+r.toPrecision(3)).toLocaleString(),size_b:t.toLocaleString()},"{{size_kb}} KB ({{size_b}} bytes)"));case 8:return e.abrupt("return",this.l10n.get("document_properties_mb",{size_mb:(+(r/1024).toPrecision(3)).toLocaleString(),size_b:t.toLocaleString()},"{{size_mb}} MB ({{size_b}} bytes)"));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"_parsePageSize",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){var n,i,o,s,c,u,p,g=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",void 0);case 2:return r%180!==0&&(t={width:t.height,height:t.width}),n=(0,l.isPortraitOrientation)(t),i={width:Math.round(100*t.width)/100,height:Math.round(100*t.height)/100},o={width:Math.round(25.4*t.width*10)/10,height:Math.round(25.4*t.height*10)/10},s=null,c=f(i,n,d)||f(o,n,h),c||Number.isInteger(o.width)&&Number.isInteger(o.height)||(u={width:25.4*t.width,height:25.4*t.height},p={width:Math.round(o.width),height:Math.round(o.height)},Math.abs(u.width-p.width)<.1&&Math.abs(u.height-p.height)<.1&&(c=f(p,n,h),c&&(i={width:Math.round(p.width/25.4*100)/100,height:Math.round(p.height/25.4*100)/100},o=p))),c&&(s=this.l10n.get("document_properties_page_size_name_"+c.toLowerCase(),null,c)),e.abrupt("return",Promise.all([this._isNonMetricLocale?i:o,this.l10n.get("document_properties_page_size_unit_"+(this._isNonMetricLocale?"inches":"millimeters"),null,this._isNonMetricLocale?"in":"mm"),s,this.l10n.get("document_properties_page_size_orientation_"+(n?"portrait":"landscape"),null,n?"portrait":"landscape")]).then((function(e){var t=a(e,4),r=t[0],n=r.width,i=r.height,o=t[1],s=t[2],l=t[3];return g.l10n.get("document_properties_page_size_dimension_"+(s?"name_":"")+"string",{width:n.toLocaleString(),height:i.toLocaleString(),unit:o,name:s,orientation:l},"{{width}} × {{height}} {{unit}} ("+(s?"{{name}}, ":"")+"{{orientation}})")})));case 11:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"_parseDate",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=s.PDFDateString.toDateObject(t),r){e.next=3;break}return e.abrupt("return",void 0);case 3:return e.abrupt("return",this.l10n.get("document_properties_date_string",{date:r.toLocaleDateString(),time:r.toLocaleTimeString()},"{{date}}, {{time}}"));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_parseLinearization",value:function(e){return this.l10n.get("document_properties_linearized_"+(e?"yes":"no"),null,e?"Yes":"No")}}]),e}();t.PDFDocumentProperties=p},"170b":function(e,t,r){"use strict";var n=r("ebb5"),a=r("50c4"),i=r("23cb"),o=r("4840"),s=n.aTypedArray,l=n.exportTypedArrayMethod;l("subarray",(function(e,t){var r=s(this),n=r.length,l=i(e,n);return new(o(r,r.constructor))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,a((void 0===t?n:i(t,n))-l))}))},"17c2":function(e,t,r){"use strict";var n=r("b727").forEach,a=r("a640"),i=r("ae40"),o=a("forEach"),s=i("forEach");e.exports=o&&s?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,r){var n=r("f8cd");e.exports=function(e,t){var r=n(e);if(r%t)throw RangeError("Wrong offset");return r}},"18a5":function(e,t,r){"use strict";var n=r("23e7"),a=r("857a"),i=r("af03");n({target:"String",proto:!0,forced:i("anchor")},{anchor:function(e){return a(this,"a","name",e)}})},"19aa":function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},"1be4":function(e,t,r){var n=r("d066");e.exports=n("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,r){var n=r("b622"),a=n("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[a]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n={};n[a]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(l){}return r}},"1cdc":function(e,t,r){var n=r("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1db6":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAQAAABKmM6bAAAARElEQVR4AWMgDrzofXEGBbYxvBB7cQhJYPcLAZC6MCQhN4hWphfzoQJ9CPNUX5wACux/IYpsSTZQyB/VXrYXFS8YIWwAuoI/FPk23zUAAAAASUVORK5CYII="},"1dda":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=s,t.TilingPattern=void 0;var n=r("dacc"),a={};function i(e,t){if(t&&"undefined"!==typeof Path2D){var r=t[2]-t[0],n=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],r,n),e.clip(a)}}a.RadialAxial={fromIR:function(e){var t=e[1],r=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7];return{type:"Pattern",getPattern:function(e){var c;i(e,r),"axial"===t?c=e.createLinearGradient(a[0],a[1],o[0],o[1]):"radial"===t&&(c=e.createRadialGradient(a[0],a[1],s,o[0],o[1],l));for(var u=0,d=n.length;uc[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l),c[n+1]>c[a+1]&&(l=n,n=a,a=l,l=o,o=s,s=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l);var f=(c[r]+t.offsetX)*t.scaleX,p=(c[r+1]+t.offsetY)*t.scaleY,g=(c[n]+t.offsetX)*t.scaleX,v=(c[n+1]+t.offsetY)*t.scaleY,m=(c[a]+t.offsetX)*t.scaleX,b=(c[a+1]+t.offsetY)*t.scaleY;if(!(p>=b))for(var y,w,_,k,x,S,A,C,P=u[i],T=u[i+1],E=u[i+2],R=u[o],I=u[o+1],O=u[o+2],L=u[s],F=u[s+1],M=u[s+2],D=Math.round(p),N=Math.round(b),B=D;B<=N;B++){if(Bb?1:v===b?0:(v-B)/(v-b),y=g-(g-m)*j,w=R-(R-L)*j,_=I-(I-F)*j,k=O-(O-M)*j}var q=void 0;q=Bb?1:(p-B)/(p-b),x=f-(f-m)*q,S=P-(P-L)*q,A=T-(T-F)*q,C=E-(E-M)*q;for(var z=Math.round(Math.min(y,x)),V=Math.round(Math.max(y,x)),W=h*B+4*z,H=z;H<=V;H++){var G=(y-H)/(y-x);G<0?G=0:G>1&&(G=1),d[W++]=w-(w-S)*G|0,d[W++]=_-(_-A)*G|0,d[W++]=k-(k-C)*G|0,d[W++]=255}}}function t(t,r,n){var a,i,o=r.coords,s=r.colors;switch(r.type){case"lattice":var l=r.verticesPerRow,c=Math.floor(o.length/l)-1,u=l-1;for(a=0;a=a?i=a:n=i/e,{scale:n,size:i}},clipBbox:function(e,t,r,n,a,i){if(Array.isArray(t)&&4===t.length){var o=a-r,s=i-n;e.ctx.rect(r,n,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(t,r,a){var i=t.ctx,o=t.current;switch(r){case e.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,o.fillColor=s.fillStyle,o.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var l=n.Util.makeCssRgb(a[0],a[1],a[2]);i.fillStyle=l,i.strokeStyle=l,o.fillColor=l,o.strokeColor=l;break;default:throw new n.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},r}();t.TilingPattern=l},"1dde":function(e,t,r){var n=r("d039"),a=r("b622"),i=r("2d00"),o=a("species");e.exports=function(e){return i>=51||!n((function(){var t=[],r=t.constructor={};return r[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1de5":function(e,t,r){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"1fb5":function(e,t,r){"use strict";t.byteLength=u,t.toByteArray=h,t.fromByteArray=g;for(var n=[],a=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function u(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function d(e,t,r){return 3*(t+r)/4-r}function h(e){var t,r,n=c(e),o=n[0],s=n[1],l=new i(d(e,o,s)),u=0,h=s>0?o-4:o;for(r=0;r>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===s&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,a=[],i=t;il?l:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},"1fe2":function(e,t,r){"use strict";var n=r("6d61"),a=r("acac");n("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},2:function(e,t){},"219c":function(e,t,r){"use strict";var n=r("ebb5"),a=n.aTypedArray,i=n.exportTypedArrayMethod,o=[].sort;i("sort",(function(e){return o.call(a(this),e)}))},2236:function(e,t,r){var n=r("5a43");function a(e){if(Array.isArray(e))return n(e)}e.exports=a},2242:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAQAAABKmM6bAAAAR0lEQVQI12NgYHgx6YUSAyp4cebFyRc1L0RQhUDw0IukF+yoQiC45YXvCyZUIRAsQhVa/8IRWeP+FzEvWJFtLH8hgGwjmrsAP6JHRnPnejIAAAAASUVORK5CYII="},2266:function(e,t,r){var n=r("825a"),a=r("e95a"),i=r("50c4"),o=r("0366"),s=r("35a1"),l=r("9bdd"),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,r,u,d){var h,f,p,g,v,m,b,y=o(t,r,u?2:1);if(d)h=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(a(f)){for(p=0,g=i(e.length);g>p;p++)if(v=u?y(n(b=e[p])[0],b[1]):y(e[p]),v&&v instanceof c)return v;return new c(!1)}h=f.call(e)}m=h.next;while(!(b=m.call(h)).done)if(v=l(h,y,b.value,u),"object"==typeof v&&v&&v instanceof c)return v;return new c(!1)};u.stop=function(e){return new c(!0,e)}},"23cb":function(e,t,r){var n=r("a691"),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},"23dc":function(e,t,r){var n=r("d44e");n(Math,"Math",!0)},"23e7":function(e,t,r){var n=r("da84"),a=r("06cf").f,i=r("9112"),o=r("6eeb"),s=r("ce4e"),l=r("e893"),c=r("94ca");e.exports=function(e,t){var r,u,d,h,f,p,g=e.target,v=e.global,m=e.stat;if(u=v?n:m?n[g]||s(g,{}):(n[g]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=a(u,d),h=p&&p.value):h=u[d],r=c(v?d:g+(m?".":"#")+d,e.forced),!r&&void 0!==h){if(typeof f===typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),o(u,d,f,e)}}},"241c":function(e,t,r){var n=r("ca84"),a=r("7839"),i=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},"24fb":function(e,t,r){"use strict";function n(e,t){var r=e[1]||"",n=e[3];if(!n)return r;if(t&&"function"===typeof btoa){var i=a(n),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}function a(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(r," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"===typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var i=0;i1?arguments[1]:void 0)}})},"25a1":function(e,t,r){"use strict";var n=r("ebb5"),a=r("d58f").right,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("reduceRight",(function(e){return a(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},"25f0":function(e,t,r){"use strict";var n=r("6eeb"),a=r("825a"),i=r("d039"),o=r("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(u||d)&&n(RegExp.prototype,s,(function(){var e=a(this),t=String(e.source),r=e.flags,n=String(void 0===r&&e instanceof RegExp&&!("flags"in l)?o.call(e):r);return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,r){"use strict";var n=r("d066"),a=r("9bf2"),i=r("b622"),o=r("83ab"),s=i("species");e.exports=function(e){var t=n(e),r=a.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},"278c":function(e,t,r){var n=r("c135"),a=r("9b42"),i=r("6613"),o=r("c240");function s(e,t){return n(e)||a(e,t)||i(e,t)||o()}e.exports=s},2954:function(e,t,r){"use strict";var n=r("ebb5"),a=r("4840"),i=r("d039"),o=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod,c=[].slice,u=i((function(){new Int8Array(1).slice()}));l("slice",(function(e,t){var r=c.call(o(this),e,t),n=a(this,this.constructor),i=0,l=r.length,u=new(s(n))(l);while(l>i)u[i]=r[i++];return u}),u)},"2a8b":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */var n=r("6374"),a=r("970b"),i=r("5bc3"),o=r("8962"),s=r("36c6"),l=r("ed6d"),c=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var u=r("3b56"),d=r("a3cd"),h=function(e){l(r,e);var t=c(r);function r(){return a(this,r),t.apply(this,arguments)}return i(r,[{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,n=e.pageSpot,a=void 0===n?null:n,i=e.pageNumber,l=void 0===i?null:i;if(!a&&!this.isInPresentationMode){var c=t.offsetLeft+t.clientLeft,u=c+t.clientWidth,d=this.container,h=d.scrollLeft,f=d.clientWidth;(this._isScrollModeHorizontal||ch+f)&&(a={left:0,top:0})}o(s(r.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:a,pageNumber:l})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():o(s(r.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,r=this._currentPageNumber,a=!1,i=n(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.percent<100)break;if(o.id===r){a=!0;break}}}catch(s){i.e(s)}finally{i.f()}a||(r=e[0].id),this._setCurrentPageNumber(r)}}},{key:"_setDocumentViewerElement",get:function(){return(0,d.shadow)(this,"_setDocumentViewerElement",this.viewer)}}]),r}(u.BaseViewer);t.PDFViewer=h},"2b3d":function(e,t,r){"use strict";r("3ca3");var n,a=r("23e7"),i=r("83ab"),o=r("0d3b"),s=r("da84"),l=r("37e8"),c=r("6eeb"),u=r("19aa"),d=r("5135"),h=r("60da"),f=r("4df4"),p=r("6547").codeAt,g=r("5fb2"),v=r("d44e"),m=r("9861"),b=r("69f3"),y=s.URL,w=m.URLSearchParams,_=m.getState,k=b.set,x=b.getterFor("URL"),S=Math.floor,A=Math.pow,C="Invalid authority",P="Invalid scheme",T="Invalid host",E="Invalid port",R=/[A-Za-z]/,I=/[\d+-.A-Za-z]/,O=/\d/,L=/^(0x|0X)/,F=/^[0-7]+$/,M=/^\d+$/,D=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,q=function(e,t){var r,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(r=V(t.slice(1,-1)),!r)return T;e.host=r}else if(Q(e)){if(t=g(t),N.test(t))return T;if(r=z(t),null===r)return T;e.host=r}else{if(B.test(t))return T;for(r="",n=f(t),a=0;a4)return e;for(r=[],n=0;n1&&"0"==a.charAt(0)&&(i=L.test(a)?16:8,a=a.slice(8==i?1:2)),""===a)o=0;else{if(!(10==i?M:8==i?F:D).test(a))return e;o=parseInt(a,i)}r.push(o)}for(n=0;n=A(256,5-t))return null}else if(o>255)return null;for(s=r.pop(),n=0;n6)return;n=0;while(h()){if(a=null,n>0){if(!("."==h()&&n<4))return;d++}if(!O.test(h()))return;while(O.test(h())){if(i=parseInt(h(),10),null===a)a=i;else{if(0==a)return;a=10*a+i}if(a>255)return;d++}l[c]=256*l[c]+a,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,c++,u=c}}if(null!==u){o=c-u,c=7;while(0!=c&&o>0)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s}else if(8!=c)return;return l},W=function(e){for(var t=null,r=1,n=null,a=0,i=0;i<8;i++)0!==e[i]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=i),++a);return a>r&&(t=n,r=a),t},H=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",n=W(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},G={},Y=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),X=h({},Y,{"#":1,"?":1,"{":1,"}":1}),K=h({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var r=p(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(J,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var r;return 2==e.length&&R.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},re=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&te(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},ie=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},le={},ce={},ue={},de={},he={},fe={},pe={},ge={},ve={},me={},be={},ye={},we={},_e={},ke={},xe={},Se={},Ae={},Ce={},Pe=function(e,t,r,a){var i,o,s,l,c=r||oe,u=0,h="",p=!1,g=!1,v=!1;r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(j,""),i=f(t);while(u<=i.length){switch(o=i[u],c){case oe:if(!o||!R.test(o)){if(r)return P;c=le;continue}h+=o.toLowerCase(),c=se;break;case se:if(o&&(I.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(r)return P;h="",c=le,u=0;continue}if(r&&(Q(e)!=d(J,h)||"file"==h&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,r)return void(Q(e)&&J[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ye:Q(e)&&a&&a.scheme==e.scheme?c=ce:Q(e)?c=fe:"/"==i[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!a||a.cannotBeABaseURL&&"#"!=o)return P;if(a.cannotBeABaseURL&&"#"==o){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,c=Ce;break}c="file"==a.scheme?ye:de;continue;case ce:if("/"!=o||"/"!=i[u+1]){c=de;continue}c=pe,u++;break;case ue:if("/"==o){c=ge;break}c=xe;continue;case de:if(e.scheme=a.scheme,o==n)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==o||"\\"==o&&Q(e))c=he;else if("?"==o)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),c=xe;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}break;case he:if(!Q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,c=xe;continue}c=ge}else c=pe;break;case fe:if(c=pe,"/"!=o||"/"!=h.charAt(u+1))continue;u++;break;case pe:if("/"!=o&&"\\"!=o){c=ge;continue}break;case ge:if("@"==o){p&&(h="%40"+h),p=!0,s=f(h);for(var m=0;m65535)return E;e.port=Q(e)&&w===J[e.scheme]?null:w,h=""}if(r)return;c=ke;continue}return E}h+=o;break;case ye:if(e.scheme="file","/"==o||"\\"==o)c=we;else{if(!a||"file"!=a.scheme){c=xe;continue}if(o==n)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==o)e.host=a.host,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){re(i.slice(u).join(""))||(e.host=a.host,e.path=a.path.slice(),ne(e)),c=xe;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}}break;case we:if("/"==o||"\\"==o){c=_e;break}a&&"file"==a.scheme&&!re(i.slice(u).join(""))&&(te(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),c=xe;continue;case _e:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&te(h))c=xe;else if(""==h){if(e.host="",r)return;c=ke}else{if(l=q(e,h),l)return l;if("localhost"==e.host&&(e.host=""),r)return;h="",c=ke}continue}h+=o;break;case ke:if(Q(e)){if(c=xe,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=n&&(c=xe,"/"!=o))continue}else e.fragment="",c=Ce;else e.query="",c=Ae;break;case xe:if(o==n||"/"==o||"\\"==o&&Q(e)||!r&&("?"==o||"#"==o)){if(ie(h)?(ne(e),"/"==o||"\\"==o&&Q(e)||e.path.push("")):ae(h)?"/"==o||"\\"==o&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(o==n||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",c=Ae):"#"==o&&(e.fragment="",c=Ce)}else h+=Z(o,X);break;case Se:"?"==o?(e.query="",c=Ae):"#"==o?(e.fragment="",c=Ce):o!=n&&(e.path[0]+=Z(o,G));break;case Ae:r||"#"!=o?o!=n&&("'"==o&&Q(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,G)):(e.fragment="",c=Ce);break;case Ce:o!=n&&(e.fragment+=Z(o,Y));break}u++}},Te=function(e){var t,r,n=u(this,Te,"URL"),a=arguments.length>1?arguments[1]:void 0,o=String(e),s=k(n,{type:"URL"});if(void 0!==a)if(a instanceof Te)t=x(a);else if(r=Pe(t={},String(a)),r)throw TypeError(r);if(r=Pe(s,o,null,t),r)throw TypeError(r);var l=s.searchParams=new w,c=_(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},i||(n.href=Re.call(n),n.origin=Ie.call(n),n.protocol=Oe.call(n),n.username=Le.call(n),n.password=Fe.call(n),n.host=Me.call(n),n.hostname=De.call(n),n.port=Ne.call(n),n.pathname=Be.call(n),n.search=Ue.call(n),n.searchParams=je.call(n),n.hash=qe.call(n))},Ee=Te.prototype,Re=function(){var e=x(this),t=e.scheme,r=e.username,n=e.password,a=e.host,i=e.port,o=e.path,s=e.query,l=e.fragment,c=t+":";return null!==a?(c+="//",$(e)&&(c+=r+(n?":"+n:"")+"@"),c+=H(a),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Ie=function(){var e=x(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&Q(e)?t+"://"+H(e.host)+(null!==r?":"+r:""):"null"},Oe=function(){return x(this).scheme+":"},Le=function(){return x(this).username},Fe=function(){return x(this).password},Me=function(){var e=x(this),t=e.host,r=e.port;return null===t?"":null===r?H(t):H(t)+":"+r},De=function(){var e=x(this).host;return null===e?"":H(e)},Ne=function(){var e=x(this).port;return null===e?"":String(e)},Be=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=x(this).query;return e?"?"+e:""},je=function(){return x(this).searchParams},qe=function(){var e=x(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&l(Ee,{href:ze(Re,(function(e){var t=x(this),r=String(e),n=Pe(t,r);if(n)throw TypeError(n);_(t.searchParams).updateSearchParams(t.query)})),origin:ze(Ie),protocol:ze(Oe,(function(e){var t=x(this);Pe(t,String(e)+":",oe)})),username:ze(Le,(function(e){var t=x(this),r=f(String(e));if(!ee(t)){t.username="";for(var n=0;n1?arguments[1]:void 0,t.length)),n=String(e);return u?u.call(t,n,r):t.slice(r,r+n.length)===n}})},"2cf4":function(e,t,r){var n,a,i,o=r("da84"),s=r("d039"),l=r("c6b6"),c=r("0366"),u=r("1be4"),d=r("cc12"),h=r("1cdc"),f=o.location,p=o.setImmediate,g=o.clearImmediate,v=o.process,m=o.MessageChannel,b=o.Dispatch,y=0,w={},_="onreadystatechange",k=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){k(e)}},S=function(e){k(e.data)},A=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(p=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},g=function(e){delete w[e]},"process"==l(v)?n=function(e){v.nextTick(x(e))}:b&&b.now?n=function(e){b.now(x(e))}:m&&!h?(a=new m,i=a.port2,a.port1.onmessage=S,n=c(i.postMessage,i,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(A)||"file:"===f.protocol?n=_ in d("script")?function(e){u.appendChild(d("script"))[_]=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(x(e),0)}:(n=A,o.addEventListener("message",S,!1))),e.exports={set:p,clear:g}},"2d00":function(e,t,r){var n,a,i=r("da84"),o=r("342f"),s=i.process,l=s&&s.versions,c=l&&l.v8;c?(n=c.split("."),a=n[0]+n[1]):o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(a=n[1]))),e.exports=a&&+a},"2d0d":function(e,t,r){r("4ae1");var n=r("36c6"),a=r("6f8f"),i=r("6b58");function o(e){var t=a();return function(){var r,a=n(e);if(t){var o=n(this).constructor;r=Reflect.construct(a,arguments,o)}else r=a.apply(this,arguments);return i(this,r)}}e.exports=o},3:function(e,t){},"317c":function(e,t,r){"use strict";var n=r("a6d9"),a=r.n(n);a.a},3280:function(e,t,r){"use strict";var n=r("ebb5"),a=r("e58c"),i=n.aTypedArray,o=n.exportTypedArrayMethod;o("lastIndexOf",(function(e){return a.apply(i(this),arguments)}))},3410:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("7b0b"),o=r("e163"),s=r("e177"),l=a((function(){o(1)}));n({target:"Object",stat:!0,forced:l,sham:!s},{getPrototypeOf:function(e){return o(i(e))}})},"342f":function(e,t,r){var n=r("d066");e.exports=n("navigator","userAgent")||""},"345d":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("cc71");var n=r("6374"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFOutlineViewer=void 0;var o=r("a3cd"),s="–",l=function(){function e(t){var r=t.container,n=t.linkService,i=t.eventBus;a(this,e),this.container=r,this.linkService=n,this.eventBus=i,this.reset(),i._on("toggleoutlinetree",this.toggleOutlineTree.bind(this))}return i(e,[{key:"reset",value:function(){this.outline=null,this.lastToggleIsShow=!0,this.container.textContent="",this.container.classList.remove("outlineWithDeepNesting")}},{key:"_dispatchEvent",value:function(e){this.eventBus.dispatch("outlineloaded",{source:this,outlineCount:e})}},{key:"_bindLink",value:function(e,t){var r=t.url,n=t.newWindow,a=t.dest,i=this.linkService;r?(0,o.addLinkAttributes)(e,{url:r,target:n?o.LinkTarget.BLANK:i.externalLinkTarget,rel:i.externalLinkRel,enabled:i.externalLinkEnabled}):(e.href=i.getDestinationHash(a),e.onclick=function(){return a&&i.navigateTo(a),!1})}},{key:"_setStyles",value:function(e,t){var r=t.bold,n=t.italic;r&&(e.style.fontWeight="bold"),n&&(e.style.fontStyle="italic")}},{key:"_addToggleButton",value:function(e,t){var r=this,n=t.count,a=t.items,i=document.createElement("div");i.className="outlineItemToggler",n<0&&Math.abs(n)===a.length&&i.classList.add("outlineItemsHidden"),i.onclick=function(t){if(t.stopPropagation(),i.classList.toggle("outlineItemsHidden"),t.shiftKey){var n=!i.classList.contains("outlineItemsHidden");r._toggleOutlineItem(e,n)}},e.insertBefore(i,e.firstChild)}},{key:"_toggleOutlineItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.lastToggleIsShow=t;var r,a=n(e.querySelectorAll(".outlineItemToggler"));try{for(a.s();!(r=a.n()).done;){var i=r.value;i.classList.toggle("outlineItemsHidden",!t)}}catch(o){a.e(o)}finally{a.f()}}},{key:"toggleOutlineTree",value:function(){this.outline&&this._toggleOutlineItem(this.container,!this.lastToggleIsShow)}},{key:"render",value:function(e){var t=e.outline,r=0;if(this.outline&&this.reset(),this.outline=t||null,t){var a=document.createDocumentFragment(),i=[{parent:a,items:this.outline}],l=!1;while(i.length>0){var c,u=i.shift(),d=n(u.items);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=document.createElement("div");f.className="outlineItem";var p=document.createElement("a");if(this._bindLink(p,h),this._setStyles(p,h),p.textContent=(0,o.removeNullCharacters)(h.title)||s,f.appendChild(p),h.items.length>0){l=!0,this._addToggleButton(f,h);var g=document.createElement("div");g.className="outlineItems",f.appendChild(g),i.push({parent:g,items:h.items})}u.parent.appendChild(f),r++}}catch(v){d.e(v)}finally{d.f()}}l&&(this.container.classList.add("outlineWithDeepNesting"),this.lastToggleIsShow=0===a.querySelectorAll(".outlineItemsHidden").length),this.container.appendChild(a),this._dispatchEvent(r)}else this._dispatchEvent(r)}}]),e}();t.PDFOutlineViewer=l},"35a1":function(e,t,r){var n=r("f5df"),a=r("3f8c"),i=r("b622"),o=i("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[n(e)]}},3642:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */var n=r("970b"),a=r("5bc3"),i=r("8962"),o=r("36c6"),s=r("ed6d"),l=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var c=r("3b56"),u=r("a3cd"),d=function(e){s(r,e);var t=l(r);function r(e){var a;return n(this,r),a=t.call(this,e),a.eventBus._on("pagesinit",(function(e){a._ensurePageViewVisible()})),a}return a(r,[{key:"_resetView",value:function(){i(o(r.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var e=this._pages[this._currentPageNumber-1],t=this._pages[this._previousPageNumber-1],r=this.viewer.childNodes;switch(r.length){case 0:this.viewer.appendChild(e.div);break;case 1:if(r[0]!==t.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(e===t)break;this._shadowViewer.appendChild(t.div),this.viewer.appendChild(e.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(),i(o(r.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(e){var t=this,n=e.pageDiv,a=e.pageSpot,s=void 0===a?null:a,l=e.pageNumber,c=void 0===l?null:l;c&&this._setCurrentPageNumber(c);var u=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),i(o(r.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:s,pageNumber:c}),this._updateScrollDown=function(){t.scroll.down=u,t._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_setDocumentViewerElement",get:function(){return(0,u.shadow)(this,"_setDocumentViewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,u.shadow)(this,"_isScrollModeHorizontal",!1)}}]),r}(c.BaseViewer);t.PDFSinglePageViewer=d},"36c6":function(e,t,r){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}r("3410"),e.exports=n},"37e8":function(e,t,r){var n=r("83ab"),a=r("9bf2"),i=r("825a"),o=r("df75");e.exports=n?Object.defineProperties:function(e,t){i(e);var r,n=o(t),s=n.length,l=0;while(s>l)a.f(e,r=n[l++],t[r]);return e}},"38cf":function(e,t,r){var n=r("23e7"),a=r("1148");n({target:"String",proto:!0},{repeat:a})},"3a7b":function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").findIndex,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("findIndex",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},"3b56":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("a623"),r("c975"),r("e260"),r("d81d"),r("45fc"),r("a434"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("e6cf"),r("25f0"),r("6062"),r("3ca3"),r("10d1"),r("ddb0");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var i=r("0496"),o=r("ef24"),s=r("b3fd"),l=r("a3cd"),c=r("12b2"),u=r("8a38"),d=r("9e3b"),h=10;function f(e){var t=[];this.push=function(r){var n=t.indexOf(r);n>=0&&t.splice(n,1),t.push(r),t.length>e&&t.shift().destroy()},this.resize=function(r,n){if(e=r,n){for(var a=new Set,o=0,s=n.length;oe)t.shift().destroy()}}function p(e,t){return t===e||Math.abs(t-e)<1e-15}var g=function(){function e(t){var r=this;if(n(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.eventBus=t.eventBus||(0,i.getGlobalEventBus)(),this.linkService=t.linkService||new u.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:i.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||i.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||i.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new o.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,i.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=i.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then((function(){r.eventBus.dispatch("baseviewerinit",{source:r})}))}return a(e,[{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):07500)t._pagesCapability.resolve();else{var n=r-1;if(n<=0)t._pagesCapability.resolve();else for(var a=function(r){e.getPage(r).then((function(e){var a=t._pages[r-1];a.pdfPage||a.setPdfPage(e),t.linkService.cachePageRef(r,e.ref),0===--n&&t._pagesCapability.resolve()}),(function(e){console.error("Unable to get page ".concat(r," to initialize viewer"),e),0===--n&&t._pagesCapability.resolve()}))},i=2;i<=r;++i)a(i)}})),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()})).catch((function(e){console.error("Unable to initialize viewer",e)}))}}},{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;t2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),p(this._currentScale,e))n&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var a=0,i=this._pages.length;a1&&void 0!==arguments[1]&&arguments[1],r=parseFloat(e);if(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,o=a?0:i.SCROLLBAR_PADDING,s=a?0:i.VERTICAL_PADDING;if(!a&&this._isScrollModeHorizontal){var l=[s,o];o=l[0],s=l[1]}var c=(this.container.clientWidth-o)/n.width*n.scale,u=(this.container.clientHeight-s)/n.height*n.scale;switch(e){case"page-actual":r=1;break;case"page-width":r=c;break;case"page-height":r=u;break;case"page-fit":r=Math.min(c,u);break;case"auto":var d=(0,i.isPortraitOrientation)(n)?c:Math.min(u,c);r=Math.min(i.MAX_AUTO_SCALE,d);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);var e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,r=e.destArray,n=void 0===r?null:r,a=e.allowNegativeOffset,o=void 0!==a&&a,s=e.ignoreDestinationZoom,l=void 0!==s&&s;if(this.pdfDocument){var c=Number.isInteger(t)&&this._pages[t-1];if(c)if(!this.isInPresentationMode&&n){var u,d,h=0,f=0,p=0,g=0,v=c.rotation%180!==0,m=(v?c.height:c.width)/c.scale/i.CSS_UNITS,b=(v?c.width:c.height)/c.scale/i.CSS_UNITS,y=0;switch(n[1].name){case"XYZ":h=n[2],f=n[3],y=n[4],h=null!==h?h:0,f=null!==f?f:b;break;case"Fit":case"FitB":y="page-fit";break;case"FitH":case"FitBH":f=n[2],y="page-width",null===f&&this._location&&(h=this._location.left,f=this._location.top);break;case"FitV":case"FitBV":h=n[2],p=m,g=b,y="page-height";break;case"FitR":h=n[2],f=n[3],p=n[4]-h,g=n[5]-f;var w=this.removePageBorders?0:i.SCROLLBAR_PADDING,_=this.removePageBorders?0:i.VERTICAL_PADDING;u=(this.container.clientWidth-w)/p/i.CSS_UNITS,d=(this.container.clientHeight-_)/g/i.CSS_UNITS,y=Math.min(Math.abs(u),Math.abs(d));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(n[1].name,'" is not a valid destination type.'))}if(l||(y&&y!==this._currentScale?this.currentScaleValue=y:this._currentScale===i.UNKNOWN_SCALE&&(this.currentScaleValue=i.DEFAULT_SCALE_VALUE)),"page-fit"!==y||n[4]){var k=[c.viewport.convertToViewportPoint(h,f),c.viewport.convertToViewportPoint(h+p,f+g)],x=Math.min(k[0][0],k[1][0]),S=Math.min(k[0][1],k[1][1]);o||(x=Math.max(x,0),S=Math.max(S,0)),this._scrollIntoView({pageDiv:c.div,pageSpot:{left:x,top:S},pageNumber:t})}else this._scrollIntoView({pageDiv:c.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{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,i="#page="+a;i+="&zoom="+n;var o=this._pages[a-1],s=this.container,l=o.getPagePoint(s.scrollLeft-e.x,s.scrollTop-e.y),c=Math.round(l[0]),u=Math.round(l[1]);i+=","+c+","+u,this._location={pageNumber:a,scale:n,top:u,left:c,rotation:this._pagesRotation,pdfOpenParams:i}}},{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(h,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,i.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;e3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;return new d.TextLayerBuilder({textLayerDiv:e,eventBus:a,pageIndex:t,viewport:r,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&n})}},{key:"createAnnotationLayerBuilder",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],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.NullL10n;return new s.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:n,linkService:this.linkService,downloadManager:this.downloadManager,l10n:a})}},{key:"getPagesOverview",value:function(){var e=this._pages.map((function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}}));if(!this.enablePrintAutoRotate)return e;var t=(0,i.isPortraitOrientation)(e[0]);return e.map((function(e){return t===(0,i.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.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===i.ScrollMode.HORIZONTAL),r.classList.toggle("scrollWrapped",t===i.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===i.SpreadMode.NONE)for(var n=0,a=r.length;n=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!==i.UNKNOWN_SCALE?this._currentScale:i.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,i.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;rthis.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;t1?arguments[1]:void 0,1),r=this.length,n=o(e),s=a(n.length),c=0;if(s+t>r)throw RangeError("Wrong length");while(c=r.length?{value:void 0,done:!0}:(e=n(r,a),t.index+=e.length,{value:e,done:!1})}))},"3db6":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */Object.defineProperty(t,"__esModule",{value:!0}),t.getCharacterType=p,t.CharacterType=void 0;var n={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function a(e){return e<11904}function i(e){return 0===(65408&e)}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return e>=48&&e<=57}function l(e){return 32===e||9===e||13===e||10===e}function c(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}function u(e){return e>=12448&&e<=12543}function d(e){return e>=12352&&e<=12447}function h(e){return e>=65376&&e<=65439}function f(e){return 3584===(65408&e)}function p(e){return a(e)?i(e)?l(e)?n.SPACE:o(e)||s(e)||95===e?n.ALPHA_LETTER:n.PUNCT:f(e)?n.THAI_LETTER:160===e?n.SPACE:n.ALPHA_LETTER:c(e)?n.HAN_LETTER:u(e)?n.KATAKANA_LETTER:d(e)?n.HIRAGANA_LETTER:h(e)?n.HALFWIDTH_KATAKANA_LETTER:n.ALPHA_LETTER}t.CharacterType=n},"3f8c":function(e,t){e.exports={}},"3f9c":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("4160"),r("e260"),r("fb6a"),r("d3b7"),r("e6cf"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var o=r("dacc"),s=r("6634");function l(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function c(e){var t=new Headers;for(var r in e){var n=e[r];"undefined"!==typeof n&&t.append(r,n)}return t}var u=function(){function e(t){a(this,e),this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return i(e,[{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader),this._fullRequestReader=new d(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new h(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFFetchStream=u;var d=function(){function e(t){var r=this;a(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var n=t.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._headers=c(this._stream.httpHeaders);var i=n.url;fetch(i,l(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,i);r._reader=e.body.getReader(),r._headersCapability.resolve();var t=function(t){return e.headers.get(t)},n=(0,s.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),a=n.allowRangeRequests,l=n.suggestedLength;r._isRangeSupported=a,r._contentLength=l||r._contentLength,r._filename=(0,s.extractFilenameFromHeader)(t),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new o.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}return i(e,[{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,n=t.done,!n){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),a=new Uint8Array(r).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),h=function(){function e(t,r,n){var i=this;a(this,e),this._stream=t,this._reader=null,this._loaded=0;var u=t.source;this._withCredentials=u.withCredentials||!1,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!u.disableStream,"undefined"!==typeof AbortController&&(this._abortController=new AbortController),this._headers=c(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(n-1));var d=u.url;fetch(d,l(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,s.validateResponseStatus)(e.status))throw(0,s.createResponseStatusError)(e.status,d);i._readCapability.resolve(),i._reader=e.body.getReader()})),this.onProgress=null}return i(e,[{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,n=t.done,!n){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),a=new Uint8Array(r).buffer,e.abrupt("return",{value:a,done:!1});case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}()},"3fcc":function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").map,i=r("4840"),o=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("map",(function(e){return a(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(i(e,e.constructor)))(t)}))}))},4:function(e,t){},"408a":function(e,t,r){var n=r("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},4160:function(e,t,r){"use strict";var n=r("23e7"),a=r("17c2");n({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"428f":function(e,t,r){var n=r("da84");e.exports=n},4362:function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"448a":function(e,t,r){var n=r("2236"),a=r("11b0"),i=r("6613"),o=r("0676");function s(e){return n(e)||a(e)||i(e)||o()}e.exports=s},"44ad":function(e,t,r){var n=r("d039"),a=r("c6b6"),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,r){var n=r("b622"),a=r("7c73"),i=r("9bf2"),o=n("unscopables"),s=Array.prototype;void 0==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,r){var n=r("da84");e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},"44e7":function(e,t,r){var n=r("861d"),a=r("c6b6"),i=r("b622"),o=i("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==a(e))}},4519:function(e,t,r){e.exports=r.p+"3ce22e999d54bb9ca8150a59207f9d3e.cur"},"458c":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("4160"),r("e260"),r("fb6a"),r("d3b7"),r("ac1f"),r("5319"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b");var n=r("ed6d"),a=r("2d0d");r("96cf");var i=r("c973"),o=r("970b"),s=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var l=r("dacc"),c=r("6634"),u=r(6),d=r(7),h=r(8),f=r(9),p=/^file:\/\/\/[a-zA-Z]:\//;function g(e){var t=f.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?f.parse("file:///".concat(e)):(t.host||(t.protocol="file:"),t)}var v=function(){function e(t){o(this,e),this.source=t,this.url=g(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return s(e,[{key:"getFullReader",value:function(){return(0,l.assert)(!this._fullRequestReader),this._fullRequestReader=this.isFsUrl?new k(this):new w(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new x(this,e,t):new _(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFNodeStream=v;var m=function(){function e(t){o(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var r=t.source;this._contentLength=r.length,this._loaded=0,this._filename=null,this._disableRange=r.disableRange||!1,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!r.disableStream,this._isRangeSupported=!r.disableRange,this._readableStream=null,this._readCapability=(0,l.createPromiseCapability)(),this._headersCapability=(0,l.createPromiseCapability)()}return s(e,[{key:"read",value:function(){var e=i(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,l.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new l.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}(),b=function(){function e(t){o(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,l.createPromiseCapability)();var r=t.source;this._isStreamingSupported=!r.disableStream}return s(e,[{key:"read",value:function(){var e=i(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(t=this._readableStream.read(),null!==t){e.next=10;break}return this._readCapability=(0,l.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),e}();function y(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var w=function(e){n(r,e);var t=a(r);function r(e){var n;o(this,r),n=t.call(this,e);var a=function(t){if(404===t.statusCode){var r=new l.MissingPDFException('Missing PDF "'.concat(n._url,'".'));return n._storedError=r,void n._headersCapability.reject(r)}n._headersCapability.resolve(),n._setReadableStream(t);var a=function(e){return n._readableStream.headers[e.toLowerCase()]},i=(0,c.validateRangeRequestCapabilities)({getResponseHeader:a,isHttp:e.isHttp,rangeChunkSize:n._rangeChunkSize,disableRange:n._disableRange}),o=i.allowRangeRequests,s=i.suggestedLength;n._isRangeSupported=o,n._contentLength=s||n._contentLength,n._filename=(0,c.extractFilenameFromHeader)(a)};return n._request=null,"http:"===n._url.protocol?n._request=d.request(y(n._url,e.httpHeaders),a):n._request=h.request(y(n._url,e.httpHeaders),a),n._request.on("error",(function(e){n._storedError=e,n._headersCapability.reject(e)})),n._request.end(),n}return r}(m),_=function(e){n(r,e);var t=a(r);function r(e,n,a){var i;for(var s in o(this,r),i=t.call(this,e),i._httpHeaders={},e.httpHeaders){var c=e.httpHeaders[s];"undefined"!==typeof c&&(i._httpHeaders[s]=c)}i._httpHeaders["Range"]="bytes=".concat(n,"-").concat(a-1);var u=function(e){if(404!==e.statusCode)i._setReadableStream(e);else{var t=new l.MissingPDFException('Missing PDF "'.concat(i._url,'".'));i._storedError=t}};return i._request=null,"http:"===i._url.protocol?i._request=d.request(y(i._url,i._httpHeaders),u):i._request=h.request(y(i._url,i._httpHeaders),u),i._request.on("error",(function(e){i._storedError=e})),i._request.end(),i}return r}(b),k=function(e){n(r,e);var t=a(r);function r(e){var n;o(this,r),n=t.call(this,e);var a=decodeURIComponent(n._url.path);return p.test(n._url.href)&&(a=a.replace(/^\//,"")),u.lstat(a,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new l.MissingPDFException('Missing PDF "'.concat(a,'".'))),n._storedError=e,void n._headersCapability.reject(e);n._contentLength=t.size,n._setReadableStream(u.createReadStream(a)),n._headersCapability.resolve()})),n}return r}(m),x=function(e){n(r,e);var t=a(r);function r(e,n,a){var i;o(this,r),i=t.call(this,e);var s=decodeURIComponent(i._url.path);return p.test(i._url.href)&&(s=s.replace(/^\//,"")),i._setReadableStream(u.createReadStream(s,{start:n,end:a-1})),i}return r}(b)},"45fc":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").some,i=r("a640"),o=r("ae40"),s=i("some"),l=o("some");n({target:"Array",proto:!0,forced:!s||!l},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("50c4"),o=r("1d80"),s=r("8aa5"),l=r("14c3");n("match",1,(function(e,t,r){return[function(t){var r=o(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var o=a(e),c=String(this);if(!o.global)return l(o,c);var u=o.unicode;o.lastIndex=0;var d,h=[],f=0;while(null!==(d=l(o,c))){var p=String(d[0]);h[f]=p,""===p&&(o.lastIndex=s(c,i(o.lastIndex),u)),f++}return 0===f?null:h}]}))},4840:function(e,t,r){var n=r("825a"),a=r("1c0b"),i=r("b622"),o=i("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||void 0==(r=n(i)[o])?t:a(r)}},4930:function(e,t,r){var n=r("d039");e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"498a":function(e,t,r){"use strict";var n=r("23e7"),a=r("58a8").trim,i=r("c8d2");n({target:"String",proto:!0,forced:i("trim")},{trim:function(){return a(this)}})},"499e":function(e,t,r){"use strict";function n(e,t){for(var r=[],n={},a=0;ar.parts.length&&(n.parts.length=r.parts.length)}else{var o=[];for(a=0;a-1,r&&(t=t.replace(/y/g,"")));var s=o(k?new b(e,t):b(e,t),n?this:y,A);return x&&r&&p(s,{sticky:r}),s},C=function(e){e in A||s(A,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},P=l(b),T=0;while(P.length>T)C(P[T++]);y.constructor=A,A.prototype=y,h(a,"RegExp",A)}g("RegExp")},"4d64":function(e,t,r){var n=r("fc6a"),a=r("50c4"),i=r("23cb"),o=function(e){return function(t,r,o){var s,l=n(t),c=a(l.length),u=i(o,c);if(e&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4d90":function(e,t,r){"use strict";var n=r("23e7"),a=r("0ccb").start,i=r("9a0c");n({target:"String",proto:!0,forced:i},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").filter,i=r("1dde"),o=r("ae40"),s=i("filter"),l=o("filter");n({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,r){"use strict";var n=r("0366"),a=r("7b0b"),i=r("9bdd"),o=r("e95a"),s=r("50c4"),l=r("8418"),c=r("35a1");e.exports=function(e){var t,r,u,d,h,f,p=a(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,y=c(p),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),void 0==y||g==Array&&o(y))for(t=s(p.length),r=new g(t);t>w;w++)f=b?m(p[w],w):p[w],l(r,w,f);else for(d=y.call(p),h=d.next,r=new g;!(u=h.call(d)).done;w++)f=b?i(d,m,[u.value,w],!0):u.value,l(r,w,f);return r.length=w,r}},"4ec9":function(e,t,r){"use strict";var n=r("6d61"),a=r("6566");e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},5:function(e,t){},"50ba":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAAc0lEQVR4AWOgM3gx4cUZAnACwwupF8fwKQHKSoPMSserKA1iIduLTbiUAGXYYO6yw6nIlrDzJ6D6URbT+UARKfSgyMDmZHRF7AjnI5yMqcwBRZEN4dDvwx1FciDnYzoZu/NT8Uc3x4vNLzZiOBnT+ZhOBgAIx/kNQRV40AAAAABJRU5ErkJggg=="},"50c4":function(e,t,r){var n=r("a691"),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},5135:function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},"52f8":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},5319:function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("7b0b"),o=r("50c4"),s=r("a691"),l=r("1d80"),c=r("8aa5"),u=r("14c3"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,v=function(e){return void 0===e?e:String(e)};n("replace",2,(function(e,t,r,n){var m=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=n.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(r,n){var a=l(this),i=void 0==r?void 0:r[e];return void 0!==i?i.call(r,a,n):t.call(String(a),r,n)},function(e,n){if(!m&&b||"string"===typeof n&&-1===n.indexOf(y)){var i=r(t,e,this,n);if(i.done)return i.value}var l=a(e),f=String(this),p="function"===typeof n;p||(n=String(n));var g=l.global;if(g){var _=l.unicode;l.lastIndex=0}var k=[];while(1){var x=u(l,f);if(null===x)break;if(k.push(x),!g)break;var S=String(x[0]);""===S&&(l.lastIndex=c(f,o(l.lastIndex),_))}for(var A="",C=0,P=0;P=C&&(A+=f.slice(C,E)+F,C=E+T.length)}return A+f.slice(C)}];function w(e,r,n,a,o,s){var l=n+e.length,c=a.length,u=g;return void 0!==o&&(o=i(o),u=p),t.call(s,u,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var d=f(u/10);return 0===d?t:d<=c?void 0===a[d-1]?i.charAt(1):a[d-1]+i.charAt(1):t}s=a[u-1]}return void 0===s?"":s}))}}))},5377:function(e,t,r){var n=r("83ab"),a=r("9bf2"),i=r("ad6d"),o=r("9f7f").UNSUPPORTED_Y;n&&("g"!=/./g.flags||o)&&a.f(RegExp.prototype,"flags",{configurable:!0,get:i})},5692:function(e,t,r){var n=r("c430"),a=r("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,r){var n=r("d066"),a=r("241c"),i=r("7418"),o=r("825a");e.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),r=i.f;return r?t.concat(r(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,r){var n=r("1d80"),a=r("5899"),i="["+a+"]",o=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),l=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(o,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},"5a34":function(e,t,r){var n=r("44e7");e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a43":function(e,t){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=55296&&a<=56319&&r>1,e+=v(e/t);e>g*o>>1;n+=a)e=v(e/g);return v(n+(g+1)*e/(e+s))},_=function(e){var t=[];e=b(e);var r,s,l=e.length,h=u,f=0,g=c;for(r=0;r=h&&sv((n-f)/S))throw RangeError(p);for(f+=(x-h)*S,h=x,r=0;rn)throw RangeError(p);if(s==h){for(var A=f,C=a;;C+=a){var P=C<=g?i:C>=g+o?o:C-g;if(Au){var f,p=c(arguments[u++]),g=d?i(p).concat(d(p)):i(p),v=g.length,m=0;while(v>m)f=g[m++],n&&!h.call(p,f)||(r[f]=p[f])}return r}:u},"61a8":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("c975"),r("e260"),r("a15b"),r("baa5"),r("fb6a"),r("b0c0"),r("d3b7"),r("e6cf"),r("4d63"),r("ac1f"),r("25f0"),r("3ca3"),r("843c"),r("2ca0"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("ddb0"),r("2b3d");var n=r("6374"),a=r("ed6d"),i=r("2d0d");r("96cf");var o=r("c973"),s=r("970b"),l=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=b,t.getFilenameFromUrl=y,t.isFetchSupported=k,t.isValidFetchUrl=x,t.loadScript=S,t.deprecated=A,t.releaseImageResources=C,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var c=r("dacc"),u="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=u;var d="http://www.w3.org/2000/svg",h=function(){function e(){s(this,e)}return l(e,[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var r=document.createElement("canvas"),n=r.getContext("2d");return r.width=e,r.height=t,{canvas:r,context:n}}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}]),e}();t.DOMCanvasFactory=h;var f=function(){function e(t){var r=t.baseUrl,n=void 0===r?null:r,a=t.isCompressed,i=void 0!==a&&a;s(this,e),this.baseUrl=n,this.isCompressed=i}return l(e,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=o(regeneratorRuntime.mark((function e(t){var r,n,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(n=this.baseUrl+r+(this.isCompressed?".bcmap":""),a=this.isCompressed?c.CMapCompressionType.BINARY:c.CMapCompressionType.NONE,!k()||!x(n,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(n).then(function(){var e=o(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!i.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,r=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=c.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,r=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:r,compressionType:a});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){throw new Error("Unable to load ".concat(i.isCompressed?"binary ":"")+"CMap at: ".concat(n))})));case 9:return e.abrupt("return",new Promise((function(e,t){var r=new XMLHttpRequest;r.open("GET",n,!0),i.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){var n;if(200===r.status||0===r.status)if(i.isCompressed&&r.response?n=new Uint8Array(r.response):!i.isCompressed&&r.responseText&&(n=(0,c.stringToBytes)(r.responseText)),n)return void e({cMapData:n,compressionType:a});t(new Error(r.statusText))}},r.send(null)})).catch((function(e){throw new Error("Unable to load ".concat(i.isCompressed?"binary ":"")+"CMap at: ".concat(n))})));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}())}]),e}();t.DOMCMapReaderFactory=f;var p=function(){function e(){s(this,e)}return l(e,[{key:"create",value:function(e,t){(0,c.assert)(e>0&&t>0,"Invalid SVG dimensions");var r=document.createElementNS(d,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}},{key:"createElement",value:function(e){return(0,c.assert)("string"===typeof e,"Invalid SVG element type"),document.createElementNS(d,e)}}]),e}();t.DOMSVGFactory=p;var g=function(){function e(t){var r=t.viewBox,n=t.scale,a=t.rotation,i=t.offsetX,o=void 0===i?0:i,l=t.offsetY,c=void 0===l?0:l,u=t.dontFlip,d=void 0!==u&&u;s(this,e),this.viewBox=r,this.scale=n,this.rotation=a,this.offsetX=o,this.offsetY=c;var h,f,p,g,v,m,b,y,w=(r[2]+r[0])/2,_=(r[3]+r[1])/2;switch(a%=360,a=a<0?a+360:a,a){case 180:h=-1,f=0,p=0,g=1;break;case 90:h=0,f=1,p=1,g=0;break;case 270:h=0,f=-1,p=-1,g=0;break;default:h=1,f=0,p=0,g=-1;break}d&&(p=-p,g=-g),0===h?(v=Math.abs(_-r[1])*n+o,m=Math.abs(w-r[0])*n+c,b=Math.abs(r[3]-r[1])*n,y=Math.abs(r[2]-r[0])*n):(v=Math.abs(w-r[0])*n+o,m=Math.abs(_-r[1])*n+c,b=Math.abs(r[2]-r[0])*n,y=Math.abs(r[3]-r[1])*n),this.transform=[h*n,f*n,p*n,g*n,v-h*n*w-p*n*_,m-f*n*w-g*n*_],this.width=b,this.height=y}return l(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,a=t.rotation,i=void 0===a?this.rotation:a,o=t.offsetX,s=void 0===o?this.offsetX:o,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,d=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:i,offsetX:s,offsetY:c,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return c.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=c.Util.applyTransform([e[0],e[1]],this.transform),r=c.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(e,t){return c.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=g;var v=function(e){a(r,e);var t=i(r);function r(e,n){var a;return s(this,r),a=t.call(this,e),a.type=n,a}return r}(c.BaseException);t.RenderingCancelledException=v;var m={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,a=t.rel,i=t.enabled,o=void 0===i||i;(0,c.assert)(r&&"string"===typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var s=(0,c.removeNullCharacters)(r);o?e.href=e.title=s:(e.href="",e.title="Disabled: ".concat(s),e.onclick=function(){return!1});var l="";switch(n){case m.NONE:break;case m.SELF:l="_self";break;case m.BLANK:l="_blank";break;case m.PARENT:l="_parent";break;case m.TOP:l="_top";break}e.target=l,e.rel="string"===typeof a?a:u}function y(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)}t.LinkTarget=m;var w,_=function(){function e(){s(this,e),this.started=Object.create(null),this.times=[]}return l(e,[{key:"time",value:function(e){e in this.started&&(0,c.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,c.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],r=0,a=n(this.times);try{for(a.s();!(e=a.n()).done;){var i=e.value,o=i.name;o.length>r&&(r=o.length)}}catch(d){a.e(d)}finally{a.f()}var s,l=n(this.times);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.end-c.start;t.push("".concat(c.name.padEnd(r)," ").concat(u,"ms\n"))}}catch(d){l.e(d)}finally{l.f()}return t.join("")}}]),e}();function k(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function x(e,t){try{var r=t?new URL(e,t):new URL(e),n=r.protocol;return"http:"===n||"https:"===n}catch(a){return!1}}function S(e){return new Promise((function(t,r){var n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)}))}function A(e){console.log("Deprecated API usage: "+e)}function C(e){(0,c.assert)(e instanceof Image,"Invalid `img` parameter.");var t=e.src;"string"===typeof t&&t.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(t),e.removeAttribute("src")}t.StatTimer=_;var P=function(){function e(){s(this,e)}return l(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,c.isString)(e))return null;w||(w=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=w.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var a=parseInt(t[3],10);a=a>=1&&a<=31?a:1;var i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;var o=parseInt(t[5],10);o=o>=0&&o<=59?o:0;var s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;var l=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===l?(i+=u,o+=d):"+"===l&&(i-=u,o-=d),new Date(Date.UTC(r,n,a,i,o,s))}}]),e}();t.PDFDateString=P},"621a":function(e,t,r){"use strict";var n=r("da84"),a=r("83ab"),i=r("a981"),o=r("9112"),s=r("e2cc"),l=r("d039"),c=r("19aa"),u=r("a691"),d=r("50c4"),h=r("0b25"),f=r("77a7"),p=r("e163"),g=r("d2bb"),v=r("241c").f,m=r("9bf2").f,b=r("81d5"),y=r("d44e"),w=r("69f3"),_=w.get,k=w.set,x="ArrayBuffer",S="DataView",A="prototype",C="Wrong length",P="Wrong index",T=n[x],E=T,R=n[S],I=R&&R[A],O=Object.prototype,L=n.RangeError,F=f.pack,M=f.unpack,D=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},B=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},U=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},j=function(e){return F(e,23,4)},q=function(e){return F(e,52,8)},z=function(e,t){m(e[A],t,{get:function(){return _(this)[t]}})},V=function(e,t,r,n){var a=h(r),i=_(e);if(a+t>i.byteLength)throw L(P);var o=_(i.buffer).bytes,s=a+i.byteOffset,l=o.slice(s,s+t);return n?l:l.reverse()},W=function(e,t,r,n,a,i){var o=h(r),s=_(e);if(o+t>s.byteLength)throw L(P);for(var l=_(s.buffer).bytes,c=o+s.byteOffset,u=n(+a),d=0;dX;)(H=Y[X++])in E||o(E,H,T[H]);G.constructor=E}g&&p(I)!==O&&g(I,O);var K=new R(new E(2)),Z=I.setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||s(I,{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},{unsafe:!0})}else E=function(e){c(this,E,x);var t=h(e);k(this,{bytes:b.call(new Array(t),0),byteLength:t}),a||(this.byteLength=t)},R=function(e,t,r){c(this,R,S),c(e,E,S);var n=_(e).byteLength,i=u(t);if(i<0||i>n)throw L("Wrong offset");if(r=void 0===r?n-i:d(r),i+r>n)throw L(C);k(this,{buffer:e,byteLength:r,byteOffset:i}),a||(this.buffer=e,this.byteLength=r,this.byteOffset=i)},a&&(z(E,"byteLength"),z(R,"buffer"),z(R,"byteLength"),z(R,"byteOffset")),s(R[A],{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return U(V(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return U(V(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return M(V(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return M(V(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){W(this,1,e,D,t)},setUint8:function(e,t){W(this,1,e,D,t)},setInt16:function(e,t){W(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){W(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){W(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){W(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){W(this,4,e,j,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){W(this,8,e,q,t,arguments.length>2?arguments[2]:void 0)}});y(E,x),y(R,S),e.exports={ArrayBuffer:E,DataView:R}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6329:function(e,t,r){},6374:function(e,t,r){r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");var n=r("6613");function a(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}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 o,s=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==r["return"]||r["return"]()}finally{if(l)throw o}}}}e.exports=a},"649e":function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").some,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("some",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},6547:function(e,t,r){var n=r("a691"),a=r("1d80"),i=function(e){return function(t,r){var i,o,s=String(a(t)),l=n(r),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l),i<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},6566:function(e,t,r){"use strict";var n=r("9bf2").f,a=r("7c73"),i=r("e2cc"),o=r("0366"),s=r("19aa"),l=r("2266"),c=r("7dd0"),u=r("2626"),d=r("83ab"),h=r("f183").fastKey,f=r("69f3"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,r,c){var u=e((function(e,n){s(e,u,t),p(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=n&&l(n,e[c],e,r)})),f=g(t),v=function(e,t,r){var n,a,i=f(e),o=m(e,t);return o?o.value=r:(i.last=o={index:a=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},m=function(e,t){var r,n=f(e),a=h(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(u.prototype,{clear:function(){var e=this,t=f(e),r=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,r=f(t),n=m(t,e);if(n){var a=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=a),a&&(a.previous=i),r.first==n&&(r.first=a),r.last==n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){var t,r=f(this),n=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:r.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),i(u.prototype,r?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",a=g(t),i=g(n);c(e,t,(function(e,t){p(this,{type:n,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,r=e.last;while(r&&r.removed)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},"65f0":function(e,t,r){var n=r("861d"),a=r("e8b5"),i=r("b622"),o=i("species");e.exports=function(e,t){var r;return a(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!a(r.prototype)?n(r)&&(r=r[o],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},6613:function(e,t,r){r("a630"),r("fb6a"),r("b0c0"),r("d3b7"),r("25f0"),r("3ca3");var n=r("5a43");function a(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}e.exports=a},6634:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("caad"),r("a9e3"),r("8ba4"),r("2532"),r("2ca0"),Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=s,t.extractFilenameFromHeader=o,t.validateRangeRequestCapabilities=i,t.validateResponseStatus=l;var n=r("dacc"),a=r("9fbe");function i(e){var t=e.getResponseHeader,r=e.isHttp,a=e.rangeChunkSize,i=e.disableRange;(0,n.assert)(a>0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*a)return o;if(i||!r)return o;if("bytes"!==t("Accept-Ranges"))return o;var l=t("Content-Encoding")||"identity";return"identity"!==l||(o.allowRangeRequests=!0),o}function o(e){var t=e("Content-Disposition");if(t){var r=(0,a.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(n){}if(/\.pdf$/i.test(r))return r}return null}function s(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function l(e){return 200===e||206===e}},"69f3":function(e,t,r){var n,a,i,o=r("7f9a"),s=r("da84"),l=r("861d"),c=r("9112"),u=r("5135"),d=r("f772"),h=r("d012"),f=s.WeakMap,p=function(e){return i(e)?a(e):n(e,{})},g=function(e){return function(t){var r;if(!l(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(o){var v=new f,m=v.get,b=v.has,y=v.set;n=function(e,t){return y.call(v,e,t),t},a=function(e){return m.call(v,e)||{}},i=function(e){return b.call(v,e)}}else{var w=d("state");h[w]=!0,n=function(e,t){return c(e,w,t),t},a=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:n,get:a,has:i,enforce:p,getterFor:g}},"6aed":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("dca8");var n=Object.create(null),a="undefined"!==typeof navigator&&navigator.userAgent||"",i="undefined"!==typeof navigator&&navigator.platform||"",o="undefined"!==typeof navigator&&navigator.maxTouchPoints||1,s=/Android/.test(a),l=/\b(iPad|iPhone|iPod)(?=;)/.test(a)||"MacIntel"===i&&o>1;(function(){(l||s)&&(n.maxCanvasPixels=5242880)})(),t.viewerCompatibilityParams=Object.freeze(n)},"6b58":function(e,t,r){var n=r("7037"),a=r("3c96");function i(e,t){return!t||"object"!==n(t)&&"function"!==typeof t?a(e):t}e.exports=i},"6c57":function(e,t,r){var n=r("23e7"),a=r("da84");n({global:!0},{globalThis:a})},"6d61":function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),i=r("94ca"),o=r("6eeb"),s=r("f183"),l=r("2266"),c=r("19aa"),u=r("861d"),d=r("d039"),h=r("1c7e"),f=r("d44e"),p=r("7156");e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",b=a[e],y=b&&b.prototype,w=b,_={},k=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(i(e,"function"!=typeof b||!(v||y.forEach&&!d((function(){(new b).entries().next()})))))w=r.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(i(e,!0)){var x=new w,S=x[m](v?{}:-0,1)!=x,A=d((function(){x.has(1)})),C=h((function(e){new b(e)})),P=!v&&d((function(){var e=new b,t=5;while(t--)e[m](t,t);return!e.has(-0)}));C||(w=t((function(t,r){c(t,w,e);var n=p(new b,t,w);return void 0!=r&&l(r,n[m],n,g),n})),w.prototype=y,y.constructor=w),(A||P)&&(k("delete"),k("has"),g&&k("get")),(P||S)&&k(m),v&&y.clear&&delete y.clear}return _[e]=w,n({global:!0,forced:w!=b},_),f(w,e),v||r.setStrong(w,e,g),w}},"6d7c":function(e,t,r){("undefined"!==typeof window?window:{}).pdfjsWorker=r("80e2")},"6d96":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAQAAAD8x0bcAAAAXElEQVR4AWMAgRd9L6QZCIEXZ14cfZH2gp2AIjDc8MIWryIYBFlMUBHMYryK8FiMkMZjMUIKj8UICWwWE1a08YUdxdb1v5BBczimJRQGJsISTICwhNKkArYEDwAAaN/49eXnGYUAAAAASUVORK5CYII="},"6ea4":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("b64b");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFAttachmentViewer=void 0;var i=r("a3cd"),o=function(){function e(t){var r=t.container,a=t.eventBus,i=t.downloadManager;n(this,e),this.container=r,this.eventBus=a,this.downloadManager=i,this.reset(),this.eventBus._on("fileattachmentannotation",this._appendAttachment.bind(this))}return a(e,[{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.attachments=null,this.container.textContent="",e||(this._renderedCapability=(0,i.createPromiseCapability)())}},{key:"_dispatchEvent",value:function(e){this._renderedCapability.resolve(),this.eventBus.dispatch("attachmentsloaded",{source:this,attachmentsCount:e})}},{key:"_bindPdfLink",value:function(e,t,r){if(this.downloadManager.disableCreateObjectURL)throw new Error('bindPdfLink: Unsupported "disableCreateObjectURL" value.');var n;e.onclick=function(){var e;return n||(n=(0,i.createObjectURL)(t,"application/pdf")),e="?file="+encodeURIComponent(n+"#"+r),window.open(e),!1}}},{key:"_bindLink",value:function(e,t,r){var n=this;e.onclick=function(){return n.downloadManager.downloadData(t,r,""),!1}}},{key:"render",value:function(e){var t=e.attachments,r=e.keepRenderedCapability,n=void 0!==r&&r,a=0;if(this.attachments&&this.reset(!0===n),this.attachments=t||null,t){var o=Object.keys(t).sort((function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}));a=o.length;for(var s=0;su)r=l[u++],n&&!o.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}};e.exports={entries:s(!0),values:s(!1)}},"6f8f":function(e,t,r){function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}r("d3b7"),r("4ae1"),r("25f0"),e.exports=n},7:function(e,t){},7037:function(e,t,r){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),e.exports=n},7039:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("057f").f,o=a((function(){return!Object.getOwnPropertyNames(1)}));n({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:i})},7086:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordPrompt=void 0;var i=r("0496"),o=r("a3cd"),s=function(){function e(t,r){var a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.NullL10n;n(this,e),this.overlayName=t.overlayName,this.container=t.container,this.label=t.label,this.input=t.input,this.submitButton=t.submitButton,this.cancelButton=t.cancelButton,this.overlayManager=r,this.l10n=o,this.updateCallback=null,this.reason=null,this.submitButton.addEventListener("click",this.verify.bind(this)),this.cancelButton.addEventListener("click",this.close.bind(this)),this.input.addEventListener("keydown",(function(e){13===e.keyCode&&a.verify()})),this.overlayManager.register(this.overlayName,this.container,this.close.bind(this),!0)}return a(e,[{key:"open",value:function(){var e=this;this.overlayManager.open(this.overlayName).then((function(){var t;e.input.focus(),t=e.reason===o.PasswordResponses.INCORRECT_PASSWORD?e.l10n.get("password_invalid",null,"Invalid password. Please try again."):e.l10n.get("password_label",null,"Enter the password to open this PDF file."),t.then((function(t){e.label.textContent=t}))}))}},{key:"close",value:function(){var e=this;this.overlayManager.close(this.overlayName).then((function(){e.input.value=""}))}},{key:"verify",value:function(){var e=this.input.value;e&&e.length>0&&(this.close(),this.updateCallback(e))}},{key:"setUpdateCallback",value:function(e,t){this.updateCallback=e,this.reason=t}}]),e}();t.PasswordPrompt=s},7122:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("d3b7"),r("e6cf");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSidebar=t.SidebarView=void 0;var i=r("0496"),o=r("ef24"),s="pdfSidebarNotification",l={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};t.SidebarView=l;var c=function(){function e(t){var r=t.elements,a=t.pdfViewer,o=t.pdfThumbnailViewer,s=t.eventBus,c=t.l10n,u=void 0===c?i.NullL10n:c,d=t.disableNotification,h=void 0!==d&&d;n(this,e),this.isOpen=!1,this.active=l.THUMBS,this.isInitialViewSet=!1,this.onToggled=null,this.pdfViewer=a,this.pdfThumbnailViewer=o,this.outerContainer=r.outerContainer,this.viewerContainer=r.viewerContainer,this.toggleButton=r.toggleButton,this.thumbnailButton=r.thumbnailButton,this.outlineButton=r.outlineButton,this.attachmentsButton=r.attachmentsButton,this.thumbnailView=r.thumbnailView,this.outlineView=r.outlineView,this.attachmentsView=r.attachmentsView,this.eventBus=s,this.l10n=u,this._disableNotification=h,this._addEventListeners()}return a(e,[{key:"reset",value:function(){this.isInitialViewSet=!1,this._hideUINotification(null),this.switchView(l.THUMBS),this.outlineButton.disabled=!1,this.attachmentsButton.disabled=!1}},{key:"setInitialView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.NONE;this.isInitialViewSet||(this.isInitialViewSet=!0,e!==l.NONE&&e!==l.UNKNOWN&&this._switchView(e,!0)||this._dispatchEvent())}},{key:"switchView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._switchView(e,t)}},{key:"_switchView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e!==this.active,n=!1;switch(e){case l.NONE:return!!this.isOpen&&(this.close(),!0);case l.THUMBS:this.isOpen&&r&&(n=!0);break;case l.OUTLINE:if(this.outlineButton.disabled)return!1;break;case l.ATTACHMENTS:if(this.attachmentsButton.disabled)return!1;break;default:return console.error('PDFSidebar._switchView: "'.concat(e,'" is not a valid view.')),!1}return this.active=e,this.thumbnailButton.classList.toggle("toggled",e===l.THUMBS),this.outlineButton.classList.toggle("toggled",e===l.OUTLINE),this.attachmentsButton.classList.toggle("toggled",e===l.ATTACHMENTS),this.thumbnailView.classList.toggle("hidden",e!==l.THUMBS),this.outlineView.classList.toggle("hidden",e!==l.OUTLINE),this.attachmentsView.classList.toggle("hidden",e!==l.ATTACHMENTS),t&&!this.isOpen?(this.open(),!0):(n&&(this._updateThumbnailViewer(),this._forceRendering()),r&&this._dispatchEvent(),this._hideUINotification(this.active),r)}},{key:"open",value:function(){this.isOpen||(this.isOpen=!0,this.toggleButton.classList.add("toggled"),this.outerContainer.classList.add("sidebarMoving","sidebarOpen"),this.active===l.THUMBS&&this._updateThumbnailViewer(),this._forceRendering(),this._dispatchEvent(),this._hideUINotification(this.active))}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,this.toggleButton.classList.remove("toggled"),this.outerContainer.classList.add("sidebarMoving"),this.outerContainer.classList.remove("sidebarOpen"),this._forceRendering(),this._dispatchEvent())}},{key:"toggle",value:function(){this.isOpen?this.close():this.open()}},{key:"_dispatchEvent",value:function(){this.eventBus.dispatch("sidebarviewchanged",{source:this,view:this.visibleView})}},{key:"_forceRendering",value:function(){this.onToggled?this.onToggled():(this.pdfViewer.forceRendering(),this.pdfThumbnailViewer.forceRendering())}},{key:"_updateThumbnailViewer",value:function(){for(var e=this.pdfViewer,t=this.pdfThumbnailViewer,r=e.pagesCount,n=0;nr)a[r]=t[r++];return a},G=function(e,t){I(e,t,{get:function(){return E(this)[t]}})},Y=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=m(e))||"SharedArrayBuffer"==t},X=function(e,t){return z(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},K=function(e,t){return X(e,t=g(t,!0))?u(2,e[t]):O(e,t)},Z=function(e,t,r){return!(X(e,t=g(t,!0))&&b(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?I(e,t,r):(e[t]=r.value,e)};i?(N||(C.f=K,A.f=Z,G(j,"buffer"),G(j,"byteOffset"),G(j,"byteLength"),G(j,"length")),n({target:"Object",stat:!0,forced:!N},{getOwnPropertyDescriptor:K,defineProperty:Z}),e.exports=function(e,t,r){var i=e.match(/\d+$/)[0]/8,s=e+(r?"Clamped":"")+"Array",l="get"+e,u="set"+e,g=a[s],v=g,m=v&&v.prototype,A={},C=function(e,t){var r=E(e);return r.view[l](t*i+r.byteOffset,!0)},P=function(e,t,n){var a=E(e);r&&(n=(n=L(n))<0?0:n>255?255:255&n),a.view[u](t*i+a.byteOffset,n,!0)},O=function(e,t){I(e,t,{get:function(){return C(this,t)},set:function(e){return P(this,t,e)},enumerable:!0})};N?o&&(v=t((function(e,t,r,n){return c(e,v,s),T(function(){return b(t)?Y(t)?void 0!==n?new g(t,p(r,i),n):void 0!==r?new g(t,p(r,i)):new g(t):z(t)?H(v,t):k.call(v,t):new g(f(t))}(),e,v)})),w&&w(v,U),x(_(g),(function(e){e in v||d(v,e,g[e])})),v.prototype=m):(v=t((function(e,t,r,n){c(e,v,s);var a,o,l,u=0,d=0;if(b(t)){if(!Y(t))return z(t)?H(v,t):k.call(v,t);a=t,d=p(r,i);var g=t.byteLength;if(void 0===n){if(g%i)throw F(W);if(o=g-d,o<0)throw F(W)}else if(o=h(n)*i,o+d>g)throw F(W);l=o/i}else l=f(t),o=l*i,a=new M(o);R(e,{buffer:a,byteOffset:d,byteLength:o,length:l,view:new D(a)});while(u";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],n=t;function a(){while(n"!==e[n]&&"/"!==e[n])++n;var i=e.substring(t,n);a();while(n"!==e[n]&&"/"!==e[n]&&"?"!==e[n]){a();var o="",s="";while(n"!==e[r]&&"/"!==e[r])++r;var a=e.substring(t,r);n();var i=r;while(r"!==e[r+1]))++r;var o=e.substring(i,r);return{name:a,value:o,parsed:r-t}}},{key:"parseXml",value:function(e){var t=0;while(t",n),i<0)return void this.onError(u.UnterminatedElement);this.onEndElement(e.substring(n,i)),n=i+1;break;case"?":++n;var o=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+o.parsed,n+o.parsed+2))return void this.onError(u.UnterminatedXmlDeclaration);this.onPi(o.name,o.value),n+=o.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if(i=e.indexOf("--\x3e",n+3),i<0)return void this.onError(u.UnterminatedComment);this.onComment(e.substring(n+3,i)),n=i+3}else if("[CDATA["===e.substring(n+1,n+8)){if(i=e.indexOf("]]>",n+8),i<0)return void this.onError(u.UnterminatedCdat);this.onCdata(e.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(u.MalformedElement);var s=e.indexOf("[",n+8),l=!1;if(i=e.indexOf(">",n+8),i<0)return void this.onError(u.UnterminatedDoctypeDeclaration);if(s>0&&i>s){if(i=e.indexOf("]>",n+8),i<0)return void this.onError(u.UnterminatedDoctypeDeclaration);l=!0}var c=e.substring(n+8,i+(l?1:0));this.onDoctype(c),n=i+(l?2:1)}break;default:var d=this._parseContent(e,n);if(null===d)return void this.onError(u.MalformedElement);var h=!1;if("/>"===e.substring(n+d.parsed,n+d.parsed+2))h=!0;else if(">"!==e.substring(n+d.parsed,n+d.parsed+1))return void this.onError(u.UnterminatedElement);this.onBeginElement(d.name,d.attributes,h),n+=d.parsed+(h?2:1);break}}else{while(n0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}}]),e}(),g=function(e){o(r,e);var t=s(r);function r(){var e;return l(this,r),e=t.call(this),e._currentFragment=null,e._stack=null,e._errorCode=u.NoError,e}return c(r,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=u.NoError,this.parseXml(e),this._errorCode===u.NoError){var t=n(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return a(i(r.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!h(e)){var t=new p("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new p("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){var n=new p(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r=this.pagesCount,this.items.pageRotateCw.disabled=0===this.pagesCount,this.items.pageRotateCcw.disabled=0===this.pagesCount}},{key:"_bindClickListeners",value:function(){var e=this;this.toggleButton.addEventListener("click",this.toggle.bind(this));var t,r=n(this.buttons);try{var a=function(){var r=t.value,n=r.element,a=r.eventName,i=r.close,o=r.eventDetails;n.addEventListener("click",(function(t){if(null!==a){var r={source:e};for(var n in o)r[n]=o[n];e.eventBus.dispatch(a,r)}i&&e.close()}))};for(r.s();!(t=r.n()).done;)a()}catch(i){r.e(i)}finally{r.f()}}},{key:"_bindCursorToolsListener",value:function(e){this.eventBus._on("cursortoolchanged",(function(t){var r=t.tool;e.cursorSelectToolButton.classList.toggle("toggled",r===s.CursorTool.SELECT),e.cursorHandToolButton.classList.toggle("toggled",r===s.CursorTool.HAND)}))}},{key:"_bindScrollModeListener",value:function(e){var t=this;function r(t){var r=t.mode;e.scrollVerticalButton.classList.toggle("toggled",r===o.ScrollMode.VERTICAL),e.scrollHorizontalButton.classList.toggle("toggled",r===o.ScrollMode.HORIZONTAL),e.scrollWrappedButton.classList.toggle("toggled",r===o.ScrollMode.WRAPPED);var n=r===o.ScrollMode.HORIZONTAL;e.spreadNoneButton.disabled=n,e.spreadOddButton.disabled=n,e.spreadEvenButton.disabled=n}this.eventBus._on("scrollmodechanged",r),this.eventBus._on("secondarytoolbarreset",(function(e){e.source===t&&r({mode:o.ScrollMode.VERTICAL})}))}},{key:"_bindSpreadModeListener",value:function(e){var t=this;function r(t){var r=t.mode;e.spreadNoneButton.classList.toggle("toggled",r===o.SpreadMode.NONE),e.spreadOddButton.classList.toggle("toggled",r===o.SpreadMode.ODD),e.spreadEvenButton.classList.toggle("toggled",r===o.SpreadMode.EVEN)}this.eventBus._on("spreadmodechanged",r),this.eventBus._on("secondarytoolbarreset",(function(e){e.source===t&&r({mode:o.SpreadMode.NONE})}))}},{key:"open",value:function(){this.opened||(this.opened=!0,this._setMaxHeight(),this.toggleButton.classList.add("toggled"),this.toolbar.classList.remove("hidden"))}},{key:"close",value:function(){this.opened&&(this.opened=!1,this.toolbar.classList.add("hidden"),this.toggleButton.classList.remove("toggled"))}},{key:"toggle",value:function(){this.opened?this.close():this.open()}},{key:"_setMaxHeight",value:function(){this.opened&&(this.containerHeight=this.mainContainer.clientHeight,this.containerHeight!==this.previousContainerHeight&&(this.toolbarButtonContainer.style.maxHeight="".concat(this.containerHeight-o.SCROLLBAR_PADDING,"px"),this.previousContainerHeight=this.containerHeight))}},{key:"isOpen",get:function(){return this.opened}}]),e}();t.SecondaryToolbar=c},7637:function(e,t,r){e.exports=r.p+"ef50ac9e93aaebe3299791c79f277f8e.cur"},"77a7":function(e,t){var r=1/0,n=Math.abs,a=Math.pow,i=Math.floor,o=Math.log,s=Math.LN2,l=function(e,t,l){var c,u,d,h=new Array(l),f=8*l-t-1,p=(1<>1,v=23===t?a(2,-24)-a(2,-77):0,m=e<0||0===e&&1/e<0?1:0,b=0;for(e=n(e),e!=e||e===r?(u=e!=e?1:0,c=p):(c=i(o(e)/s),e*(d=a(2,-c))<1&&(c--,d*=2),e+=c+g>=1?v/d:v*a(2,1-g),e*d>=2&&(c++,d/=2),c+g>=p?(u=0,c=p):c+g>=1?(u=(e*d-1)*a(2,t),c+=g):(u=e*a(2,g-1)*a(2,t),c=0));t>=8;h[b++]=255&u,u/=256,t-=8);for(c=c<0;h[b++]=255&c,c/=256,f-=8);return h[--b]|=128*m,h},c=function(e,t){var n,i=e.length,o=8*i-t-1,s=(1<>1,c=o-7,u=i-1,d=e[u--],h=127&d;for(d>>=7;c>0;h=256*h+e[u],u--,c-=8);for(n=h&(1<<-c)-1,h>>=-c,c+=t;c>0;n=256*n+e[u],u--,c-=8);if(0===h)h=1-l;else{if(h===s)return n?NaN:d?-r:r;n+=a(2,t),h-=l}return(d?-1:1)*n*a(2,h-t)};e.exports={pack:l,unpack:c}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a15":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("cb29"),r("e260"),r("fb6a"),r("d3b7"),r("2ca0"),r("cc71"),r("143c"),r("5cc6"),r("fb2c"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7");var n=r("6374");Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var a=r("dacc"),i=r("1dda"),o=16,s=100,l=4096,c=.65,u=!0,d=1e3,h=16;function f(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=t*a-r*n,l=r*n-t*a;return[a/s,r/l,n/l,t/s,(a*i-n*o)/l,(r*i-t*o)/s]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var r=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){var r=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(t,r,n,a,i,o){var s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*r,s[1]*t+s[3]*r,s[0]*n+s[2]*a,s[1]*n+s[3]*a,s[0]*i+s[2]*o+s[4],s[1]*i+s[3]*o+s[5]],e._originalTransform(t,r,n,a,i,o)},e.setTransform=function(t,r,n,a,i,o){this._transformMatrix=[t,r,n,a,i,o],e._originalSetTransform(t,r,n,a,i,o)},e.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),n=this._transformMatrix;this._transformMatrix=[n[0]*t+n[2]*r,n[1]*t+n[3]*r,n[0]*-r+n[2]*t,n[1]*-r+n[3]*t,n[4],n[5]],this._originalRotate(e)})}var p=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,r,n){var a;return void 0!==this.cache[e]?(a=this.cache[e],this.canvasFactory.reset(a,t,r),a.context.setTransform(1,0,0,1,0,0)):(a=this.canvasFactory.create(t,r),this.cache[e]=a),n&&f(a.context),a},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}();function g(e){var t,r,n,a,i=1e3,o=e.width,s=e.height,l=o+1,c=new Uint8Array(l*(s+1)),u=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),d=o+7&-8,h=e.data,f=new Uint8Array(d*s),p=0;for(t=0,a=h.length;t0)f[p++]=v&g?0:255,g>>=1}var m=0;for(p=0,0!==f[p]&&(c[0]=1,++m),r=1;r>2)+(f[p+1]?4:0)+(f[p-d+1]?8:0),u[b]&&(c[n+r]=u[b],++m),p++;if(f[p-d]!==f[p]&&(c[n+r]=f[p]?2:4,++m),m>i)return null}for(p=d*(s-1),n=t*l,0!==f[p]&&(c[n]=8,++m),r=1;ri)return null;var y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),w=[];for(t=0;m&&t<=s;t++){var _=t*l,k=_+o;while(_>4,c[_]&=A>>2|A<<2),S.push(_%l),S.push(_/l|0),c[_]||--m}while(C!==_);w.push(S),--t}}var T=function(e){e.save(),e.scale(1/o,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,r=w.length;t>2),w=y.length,_=c+7>>3,k=4294967295,x=a.IsLittleEndianCached.value?4278190080:255;for(n=0;n_?c:8*S-7,P=-8&C,T=0,E=0;A>=1}while(r=d&&(o=u,s=c*o),r=0,i=s;i--;)m[r++]=v[g++],m[r++]=v[g++],m[r++]=v[g++],m[r++]=255;e.putImageData(p,0,n*h)}}}}function b(e,t){for(var r=t.height,n=t.width,a=r%h,i=(r-a)/h,o=0===a?i:i+1,s=e.createImageData(n,h),l=0,c=t.data,u=s.data,d=0;d>=1}e.putImageData(s,0,d*h)}}function y(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,a=r.length;n>8,e[i-2]=e[i-2]*o+r*s>>8,e[i-1]=e[i-1]*o+n*s>>8}}}function k(e,t,r){for(var n=e.length,a=1/255,i=3;i>8]>>8:t[a]*i>>16}}function S(e,t,r,n,a,i,o){var s,l=!!i,c=l?i[0]:0,u=l?i[1]:0,d=l?i[2]:0;s="Luminosity"===a?x:k;for(var h=1048576,f=Math.min(n,Math.ceil(h/r)),p=0;pt&&"function"===typeof o,p=f?Date.now()+e:0,g=0,v=this.commonObjs,m=this.objs;while(1){if(void 0!==s&&u===s.nextBreakPoint)return s.breakIt(u,o),u;if(h=c[u],h!==a.OPS.dependency)this[h].apply(this,l[u]);else{var b,y=n(l[u]);try{for(y.s();!(b=y.n()).done;){var w=b.value,_=w.startsWith("g_")?v:m;if(!_.has(w))return _.get(w,o),u}}catch(k){y.e(k)}finally{y.f()}}if(u++,u===d)return u;if(f&&++g>t){if(Date.now()>p)return o(),u;g=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=C[e]},setLineJoin:function(e){this.ctx.lineJoin=P[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=i?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,t,r,!0),i=this.ctx,o=i.mozCurrentTransform;this.ctx.save();var s=a.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,y(i,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),y(e,this.ctx),this.current.resumeSMaskCtx=e;var t=a.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),y(e,this.ctx);var t=a.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,a,i){this.ctx.transform(e,t,r,n,a,i),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,n=this.current,i=n.x,o=n.y,s=0,l=0,c=e.length;ss&&(d=s),this.current.fontSizeScale=t/d,this.ctx.font="".concat(c," ").concat(l," ").concat(d,"px ").concat(u)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,a,i){this.current.textMatrix=[e,t,r,n,a,i],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,n){var i,o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&a.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&a.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&l.data;if((l.disableFontFace||h||f)&&(i=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||f?(o.save(),o.translate(t,r),o.beginPath(),i(o,u),n&&o.setTransform.apply(o,n),d!==a.TextRenderingMode.FILL&&d!==a.TextRenderingMode.FILL_STROKE||o.fill(),d!==a.TextRenderingMode.STROKE&&d!==a.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(d!==a.TextRenderingMode.FILL&&d!==a.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),d!==a.TextRenderingMode.STROKE&&d!==a.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,r)),h){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:u,addToPath:i})}},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var r=t.getImageData(0,0,10,10).data,n=!1,i=3;i0&&r[i]<255){n=!0;break}return(0,a.shadow)(this,"isFontSubpixelAAEnabled",n)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var n=t.fontSize;if(0!==n){var i,o=this.ctx,s=t.fontSizeScale,l=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,f=e.length,p=r.vertical,g=p?1:-1,v=r.defaultVMetrics,m=n*t.fontMatrix[0],b=t.textRenderingMode===a.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(o.save(),t.patternFill){o.save();var y=t.fillColor.getPattern(o,this);i=o.mozCurrentTransform,o.restore(),o.fillStyle=y}o.transform.apply(o,t.textMatrix),o.translate(t.x,t.y+t.textRise),d>0?o.scale(h,-1):o.scale(h,1);var w=t.lineWidth,_=t.textMatrixScale;if(0===_||0===w){var k=t.textRenderingMode&a.TextRenderingMode.FILL_STROKE_MASK;k!==a.TextRenderingMode.STROKE&&k!==a.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,w=this.getSinglePixelWidth()*c)}else w/=_;1!==s&&(o.scale(s,s),w/=s),o.lineWidth=w;var x,S=0;for(x=0;x0){var U=1e3*o.measureText(D).width/n*s;if(Bl&&(d=c/l,c=l),u>l&&(h=u/l,u=l);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,c,u,!0),g=p.context;g.scale(1/d,1/h),g.translate(-o,-s),g.transform.apply(g,r),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:o,offsetY:s,scaleX:d,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,s),t.scale(d,h)),y(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),w(this.ctx),this.current=new v,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],a=e[3]-e[1];this.ctx.rect(e[0],e[1],n,a),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,r){var n=this.processingType3?this.commonObjs.get(e):this.objs.get(e);if(n){this.save();var i=this.ctx;if(i.scale(1/t,-1/r),i.drawImage(n,0,0,n.width,n.height,0,-r,t,r),this.imageLayer){var o=i.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/o[0],height:r/o[3]})}this.restore()}else(0,a.warn)("Dependent image isn't ready yet")},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,n=e.height,a=this.current.fillColor,i=this.current.patternFill,o=this.processingType3;if(u&&o&&void 0===o.compiled&&(o.compiled=r<=d&&n<=d?g({data:e.data,width:r,height:n}):null),o&&o.compiled)o.compiled(t);else{var s=this.cachedCanvases.getCanvas("maskCanvas",r,n),l=s.context;l.save(),b(l,e),l.globalCompositeOperation="source-in",l.fillStyle=i?a.getPattern(l,this):a,l.fillRect(0,0,r,n),l.restore(),this.paintInlineImageXObject(s.canvas)}},paintImageMaskXObjectRepeat:function(e,t,r,n){var a=e.width,i=e.height,o=this.current.fillColor,s=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",a,i),c=l.context;c.save(),b(c,e),c.globalCompositeOperation="source-in",c.fillStyle=s?o.getPattern(c,this):o,c.fillRect(0,0,a,i),c.restore();for(var u=this.ctx,d=0,h=n.length;d2&&p>1||h>2&&g>1){var b=p,y=g;c>2&&p>1&&(b=Math.ceil(p/2),c/=p/b),h>2&&g>1&&(y=Math.ceil(g/2),h/=g/y),i=this.cachedCanvases.getCanvas(v,b,y),f=i.context,f.clearRect(0,0,b,y),f.drawImage(a,0,0,p,g,0,0,b,y),a=i.canvas,p=b,g=y,v="prescale1"===v?"prescale2":"prescale1"}if(n.drawImage(a,0,0,p,g,0,-r,t,r),this.imageLayer){var w=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:w[0],top:w[1],width:t/o[0],height:r/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,t){var r=this.ctx,n=e.width,a=e.height,i=this.cachedCanvases.getCanvas("inlineImage",n,a),o=i.context;m(o,e);for(var s=0,l=t.length;s",h="<",f="prototype",p="script",g=u("IE_PROTO"),v=function(){},m=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),r="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=n?b(n):y();var e=o.length;while(e--)delete w[f][o[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(v[f]=a(e),r=new v,v[f]=null,r[g]=e):r=w(),void 0===t?r:i(r,t)}},"7db0":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").find,i=r("44d2"),o=r("ae40"),s="find",l=!0,c=o(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!c},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},"7dd0":function(e,t,r){"use strict";var n=r("23e7"),a=r("9ed3"),i=r("e163"),o=r("d2bb"),s=r("d44e"),l=r("9112"),c=r("6eeb"),u=r("b622"),d=r("c430"),h=r("3f8c"),f=r("ae93"),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,v=u("iterator"),m="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,r,u,f,_,k){a(r,t,u);var x,S,A,C=function(e){if(e===f&&I)return I;if(!g&&e in E)return E[e];switch(e){case m:return function(){return new r(this,e)};case b:return function(){return new r(this,e)};case y:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",T=!1,E=e.prototype,R=E[v]||E["@@iterator"]||f&&E[f],I=!g&&R||C(f),O="Array"==t&&E.entries||R;if(O&&(x=i(O.call(new e)),p!==Object.prototype&&x.next&&(d||i(x)===p||(o?o(x,p):"function"!=typeof x[v]&&l(x,v,w)),s(x,P,!0,!0),d&&(h[P]=w))),f==b&&R&&R.name!==b&&(T=!0,I=function(){return R.call(this)}),d&&!k||E[v]===I||l(E,v,I),h[t]=I,f)if(S={values:C(b),keys:_?I:C(m),entries:C(y)},k)for(A in S)(g||T||!(A in E))&&c(E,A,S[A]);else n({target:t,proto:!0,forced:g||T},S);return S}},"7ddb":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */function n(e){this.element=e.element,this.document=e.element.ownerDocument,"function"===typeof e.ignoreTarget&&(this.ignoreTarget=e.ignoreTarget),this.onActiveChanged=e.onActiveChanged,this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.toggle=this.toggle.bind(this),this._onmousedown=this._onmousedown.bind(this),this._onmousemove=this._onmousemove.bind(this),this._endPan=this._endPan.bind(this);var t=this.overlay=document.createElement("div");t.className="grab-to-pan-grabbing"}var a;r("45fc"),Object.defineProperty(t,"__esModule",{value:!0}),t.GrabToPan=n,n.prototype={CSS_CLASS_GRAB:"grab-to-pan-grab",activate:function(){this.active||(this.active=!0,this.element.addEventListener("mousedown",this._onmousedown,!0),this.element.classList.add(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!0))},deactivate:function(){this.active&&(this.active=!1,this.element.removeEventListener("mousedown",this._onmousedown,!0),this._endPan(),this.element.classList.remove(this.CSS_CLASS_GRAB),this.onActiveChanged&&this.onActiveChanged(!1))},toggle:function(){this.active?this.deactivate():this.activate()},ignoreTarget:function(e){return e[a]("a[href], a[href] *, input, textarea, button, button *, select, option")},_onmousedown:function(e){if(0===e.button&&!this.ignoreTarget(e.target)){if(e.originalTarget)try{e.originalTarget.tagName}catch(r){return}this.scrollLeftStart=this.element.scrollLeft,this.scrollTopStart=this.element.scrollTop,this.clientXStart=e.clientX,this.clientYStart=e.clientY,this.document.addEventListener("mousemove",this._onmousemove,!0),this.document.addEventListener("mouseup",this._endPan,!0),this.element.addEventListener("scroll",this._endPan,!0),e.preventDefault(),e.stopPropagation();var t=document.activeElement;t&&!t.contains(e.target)&&t.blur()}},_onmousemove:function(e){if(this.element.removeEventListener("scroll",this._endPan,!0),c(e))this._endPan();else{var t=e.clientX-this.clientXStart,r=e.clientY-this.clientYStart,n=this.scrollTopStart-r,a=this.scrollLeftStart-t;this.element.scrollTo?this.element.scrollTo({top:n,left:a,behavior:"instant"}):(this.element.scrollTop=n,this.element.scrollLeft=a),this.overlay.parentNode||document.body.appendChild(this.overlay)}},_endPan:function(){this.element.removeEventListener("scroll",this._endPan,!0),this.document.removeEventListener("mousemove",this._onmousemove,!0),this.document.removeEventListener("mouseup",this._endPan,!0),this.overlay.remove()}},["webkitM","mozM","msM","oM","m"].some((function(e){var t=e+"atches";return t in document.documentElement&&(a=t),t+="Selector",t in document.documentElement&&(a=t),a}));var i=!document.documentMode||document.documentMode>9,o=window.chrome,s=o&&(o.webstore||o.app),l=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);function c(e){return"buttons"in e&&i?!(1&e.buttons):!(!s&&!l)&&0===e.which}},"7f9a":function(e,t,r){var n=r("da84"),a=r("8925"),i=n.WeakMap;e.exports="function"===typeof i&&/native code/.test(a(i))},"7fc1":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("e260"),r("d3b7"),r("cfc3"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var i=r("dacc"),o=function(){function e(t){var r=t.enable,a=void 0!==r&&r;n(this,e),this._enabled=!0===a}return a(e,[{key:"composeSMask",value:function(e){var t=e.layer,r=e.mask,n=e.properties;return s.composeSMask(t,r,n)}},{key:"drawFigures",value:function(e){var t=e.width,r=e.height,n=e.backgroundColor,a=e.figures,i=e.context;return s.drawFigures(t,r,n,a,i)}},{key:"clear",value:function(){s.cleanup()}},{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=s.tryInitGL()),(0,i.shadow)(this,"isEnabled",e)}}]),e}();t.WebGLContext=o;var s=function(){function e(e,t,r){var n=e.createShader(r);e.shaderSource(n,t),e.compileShader(n);var a=e.getShaderParameter(n,e.COMPILE_STATUS);if(!a){var i=e.getShaderInfoLog(n);throw new Error("Error during shader compilation: "+i)}return n}function t(t,r){return e(t,r,t.VERTEX_SHADER)}function r(t,r){return e(t,r,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),n=0,a=t.length;n0){var o=n.first.id,c=a>1?n.last.id:o,u=!1;e<=o||e>=c?u=!0:n.views.some((function(t){return t.id===e&&(u=t.percent<100,!0)})),u&&(0,i.scrollIntoView)(t.div,{top:s})}this._currentPageNumber=e}else console.error('scrollThumbnailIntoView: Invalid "pageNumber" parameter.')}}},{key:"cleanup",value:function(){o.PDFThumbnailView.cleanup()}},{key:"_resetView",value:function(){this._thumbnails=[],this._currentPageNumber=1,this._pageLabels=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this.container.textContent=""}},{key:"setDocument",value:function(e){var t=this;this.pdfDocument&&(this._cancelRendering(),this._resetView()),this.pdfDocument=e,e&&e.getPage(1).then((function(r){for(var n=e.numPages,a=r.getViewport({scale:1}),i=1;i<=n;++i){var s=new o.PDFThumbnailView({container:t.container,id:i,defaultViewport:a.clone(),linkService:t.linkService,renderingQueue:t.renderingQueue,disableCanvasToImageConversion:!1,l10n:t.l10n});t._thumbnails.push(s)}var c=t._thumbnails[0];c&&c.setPdfPage(r);var u=t._thumbnails[t._currentPageNumber-1];u.div.classList.add(l)})).catch((function(e){console.error("Unable to initialize thumbnail viewer",e)}))}},{key:"_cancelRendering",value:function(){for(var e=0,t=this._thumbnails.length;e=n.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:x,sink:t,task:i,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then((function(e){C(i),o&&(0,n.info)("page=".concat(a+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){C(i),i.terminated||(x.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),t.error(e))}))}))}),this),x.on("GetTextContent",(function(e,t){var a=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},r.getPage(a).then((function(r){var i=new u("GetTextContent: page "+a);A(i);var o=f>=n.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:x,task:i,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then((function(){C(i),o&&(0,n.info)("page=".concat(a+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){C(i),i.terminated||t.error(e)}))}))})),x.on("FontFallback",(function(e){return r.fontFallback(e.id,x)})),x.on("Cleanup",(function(e){return r.cleanup()})),x.on("Terminate",(function(e){o=!0;var t=[];if(r){r.terminate(new n.AbortException("Worker was terminated."));var i=r.cleanup();t.push(i),r=null}else(0,a.clearPrimitiveCaches)();return d&&d(new n.AbortException("Worker was terminated.")),h.forEach((function(e){t.push(e.finished),e.terminate()})),Promise.all(t).then((function(){x.destroy(),x=null}))})),x.on("Ready",(function(t){R(e),e=null})),k},initializeFromPort:function(e){var t=new s.MessageHandler("worker","main",e);d.setup(t,e),t.send("ready",null)}};function h(e){return"function"===typeof e.postMessage&&"onmessage"in e}t.WorkerMessageHandler=d,"undefined"===typeof window&&!o.isNodeJS&&"undefined"!==typeof self&&h(self)&&d.initializeFromPort(self)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=Q,t.arraysToBytes=$,t.assert=M,t.bytesToString=Z,t.createPromiseCapability=me,t.getVerbosityLevel=I,t.info=O,t.isArrayBuffer=ge,t.isArrayEqual=ve,t.isBool=he,t.isEmptyObj=de,t.isNum=fe,t.isString=pe,t.isSameOrigin=D,t.createValidAbsoluteUrl=B,t.removeNullCharacters=K,t.setVerbosityLevel=R,t.shadow=U,t.string32=ee,t.stringToBytes=J,t.stringToPDFString=le,t.stringToUTF8String=ce,t.utf8StringToString=ue,t.warn=L,t.unreachable=F,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(3);var n=[1,0,0,1,0,0];t.IDENTITY_MATRIX=n;var a=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=a;var i={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NativeImageDecoding=i;var o={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=o;var s={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=s;var l={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=l;var c={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=c;var u={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=u;var d={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=d;var h={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=h;var m={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=m;var b={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=b;var w={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=w;var _={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=_;var k={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=k;var x={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=x;var S={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=S;var A={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=A;var C={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=C;var P={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.UNSUPPORTED_FEATURES=P;var T={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=T;var E=S.WARNINGS;function R(e){Number.isInteger(e)&&(E=e)}function I(){return E}function O(e){E>=S.INFOS&&console.log("Info: ".concat(e))}function L(e){E>=S.WARNINGS&&console.log("Warning: ".concat(e))}function F(e){throw new Error(e)}function M(e,t){e||F(t)}function D(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(a){return!1}var n=new URL(t,r);return r.origin===n.origin}function N(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function B(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(N(r))return r}catch(n){}return null}function U(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var j=function(){function e(t){this.constructor===e&&F("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=j;var q=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.code=n,a}return r}(j);t.PasswordException=q;var z=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.details=n,a}return r}(j);t.UnknownErrorException=z;var V=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.InvalidPDFException=V;var W=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.MissingPDFException=W;var H=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.status=n,a}return r}(j);t.UnexpectedResponseException=H;var G=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.FormatError=G;var Y=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(j);t.AbortException=Y;var X=/\x00/g;function K(e){return"string"!==typeof e?(L("The argument for removeNullCharacters must be a string."),e):e.replace(X,"")}function Z(e){M(null!==e&&"object"===y(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t>24&255,e>>16&255,e>>8&255,255&e)}function te(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var re={get value(){return U(this,"value",te())}};function ne(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=re;var ae={get value(){return U(this,"value",ne())}};t.IsEvalSupportedCached=ae;var ie=["rgb(",0,",",0,",",0,")"],oe=function(){function e(){p(this,e)}return f(e,null,[{key:"makeCssRgb",value:function(e,t,r){return ie[1]=e,ie[3]=t,ie[5]=r,ie.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],n=e[0]*t[1]+e[1]*t[3]+t[5];return[r,n]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],n=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,a=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[n,a]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),a=e.applyTransform(t.slice(2,4),r),i=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],a[0],i[0],o[0]),Math.min(n[1],a[1],i[1],o[1]),Math.max(n[0],a[0],i[0],o[0]),Math.max(n[1],a[1],i[1],o[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(r+i)/2,s=Math.sqrt((r+i)*(r+i)-4*(r*i-a*n))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var a=[t[0],t[2],r[0],r[2]].sort(n),i=[t[1],t[3],r[1],r[3]].sort(n),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}]),e}();t.Util=oe;var se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function le(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var a=new Blob([t],{type:r});return URL.createObjectURL(a)}for(var i="data:".concat(r,";base64,"),o=0,s=t.length;o>2,h=(3&l)<<4|c>>4,f=o+1>6:64,p=o+2=this.end?this.numChunks:Math.floor(t/this.chunkSize),a=r;a=t)&&!(t<=this.progressiveDataLength))for(var r=this.chunkSize,n=Math.floor(e/r),i=Math.floor((t-1)/r)+1,o=n;o=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),n=this.getByte();return(e<<24)+(t<<16)+(r<<8)+n}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,a=this.end;if(!e){a>this.progressiveDataLength&&this.ensureRange(n,a);var i=r.subarray(n,a);return t?new Uint8ClampedArray(i):i}var o=n+e;o>a&&(o=a),o>this.progressiveDataLength&&this.ensureRange(n,o),this.pos=o;var s=r.subarray(n,o);return t?new Uint8ClampedArray(s):s}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"skip",value:function(e){e||(e=1),this.pos+=e}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t,r){function n(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),n.prototype=Object.create(this),n.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,n=[],a=t;a0&&void 0!==arguments[0]?arguments[0]:[],r=[],n=d(t);try{for(n.s();!(e=n.n()).done;)for(var a=e.value,i=this.getBeginChunk(a.begin),o=this.getEndChunk(a.end),s=i;s=0&&n+1!==o&&(t.push({beginChunk:r,endChunk:n+1}),r=o),a+1===e.length&&t.push({beginChunk:r,endChunk:o+1}),n=o}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,a=r?this.progressiveDataLength:e.begin,i=a+t.byteLength,o=Math.floor(a/this.chunkSize),s=ic){(0,n.warn)('getInheritableProperty: maximum loop count exceeded for "'.concat(a,'"'));break}r=r.get("Parent")}return t}t.XRefParseException=s;var c=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,n.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");var r,a=[];while(e>=1e3)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(c[r]),r=e/10|0,e%=10,a.push(c[10+r]),a.push(c[20+e]);var i=a.join("");return t?i.toLowerCase():i}function d(e){return e<=0?0:Math.ceil(Math.log2(e))}function h(e,t){return e[t]<<24>>24}function f(e,t){return e[t]<<8|e[t+1]}function m(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function b(e){return 32===e||9===e||13===e||10===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var n=r(2),a=r(9),i=r(4),o=r(7),s=r(11),l=r(23),c=r(21),u=r(10),h=r(24),g=r(25),v=r(39),y=1,w=[0,0,612,792];function _(e,t){return"display"===t&&e.viewable||"print"===t&&e.printable}var k=function(){function e(t){var r=t.pdfManager,n=t.xref,a=t.pageIndex,i=t.pageDict,o=t.ref,s=t.fontCache,l=t.builtInCMapCache,c=t.pdfFunctionFactory;p(this,e),this.pdfManager=r,this.pageIndex=a,this.pageDict=i,this.xref=n,this.ref=o,this.fontCache=s,this.builtInCMapCache=l,this.pdfFunctionFactory=c,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null;var u={obj:0};this.idFactory={createObjId:function(){return"p".concat(a,"_").concat(++u.obj)},getDocId:function(){return"g_".concat(r.docId)}}}return f(e,[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,o.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&(0,i.isDict)(r[0])?i.Dict.merge(this.xref,r):r[0]:r}},{key:"_getBoundingBox",value:function(e){var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!==0&&t[3]-t[1]!==0)return t;(0,n.warn)("Empty /".concat(e," entry."))}return null}},{key:"getContentStream",value:function(){var e,t=this.content;if(Array.isArray(t)){var r,n=this.xref,a=[],o=d(t);try{for(o.s();!(r=o.n()).done;){var l=r.value;a.push(n.fetchIfRef(l))}}catch(c){o.e(c)}finally{o.f()}e=new s.StreamsSequenceStream(a)}else e=(0,i.isStream)(t)?t:new s.NullStream;return e}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){var r=new a.ObjectLoader(t.resources,e,t.xref);return r.load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,a=e.sink,i=e.task,o=e.intent,s=e.renderInteractiveForms,l=this.pdfManager.ensure(this,"getContentStream"),c=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),u=new g.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),f=Promise.all([l,c]),p=f.then((function(e){var n=m(e,1),s=n[0],l=new h.OperatorList(o,a,t.pageIndex);return r.send("StartRenderPage",{transparency:u.hasBlendModes(t.resources),pageIndex:t.pageIndex,intent:o}),u.getOperatorList({stream:s,task:i,resources:t.resources,operatorList:l}).then((function(){return l}))}));return Promise.all([p,this._parsedAnnotations]).then((function(e){var t=m(e,2),r=t[0],a=t[1];if(0===a.length)return r.flush(!0),{length:r.totalLength};var l,c=[],h=d(a);try{for(h.s();!(l=h.n()).done;){var f=l.value;_(f,o)&&c.push(f.getOperatorList(u,i,s))}}catch(p){h.e(p)}finally{h.f()}return Promise.all(c).then((function(e){r.addOp(n.OPS.beginAnnotations,[]);var t,a=d(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;r.addOpList(i)}}catch(p){a.e(p)}finally{a.f()}return r.addOp(n.OPS.endAnnotations,[]),r.flush(!0),{length:r.totalLength}}))}))}},{key:"extractTextContent",value:function(e){var t=this,r=e.handler,n=e.task,a=e.normalizeWhitespace,i=e.sink,o=e.combineTextItems,s=this.pdfManager.ensure(this,"getContentStream"),l=this.loadResources(["ExtGState","XObject","Font"]),c=Promise.all([s,l]);return c.then((function(e){var s=m(e,1),l=s[0],c=new g.PartialEvaluator({xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t.idFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,options:t.evaluatorOptions,pdfFunctionFactory:t.pdfFunctionFactory});return c.getTextContent({stream:l,task:n,resources:t.resources,normalizeWhitespace:a,combineTextItems:o,sink:i})}))}},{key:"getAnnotationsData",value:function(e){return this._parsedAnnotations.then((function(t){for(var r=[],n=0,a=t.length;n=360?e%=360:e<0&&(e=(e%360+360)%360),(0,n.shadow)(this,"rotate",e)}},{key:"annotations",get:function(){return(0,n.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then((function(){for(var t=e.annotations,r=[],a=0,i=t.length;a2&&void 0!==arguments[2]?arguments[2]:1024,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=t.length,i=e.peekBytes(r),o=i.length-a;if(o<=0)return!1;if(n){var s=a-1,l=i.length-1;while(l>=s){var c=0;while(c=a)return e.pos+=l-s,!0;l--}}else{var u=0;while(u<=o){var d=0;while(d=a)return e.pos+=u,!0;u++}}return!1}var R=function(){function e(t,r){var o;if(p(this,e),(0,i.isStream)(r))o=r;else{if(!(0,n.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");o=new s.Stream(r)}if(o.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=o,this.xref=new a.XRef(o,t),this.pdfFunctionFactory=new v.PDFFunctionFactory({xref:this.xref,isEvalSupported:t.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}return f(e,[{key:"parse",value:function(e){this.setup(e);var t=this.catalog.catDict.get("Version");(0,i.isName)(t)&&(this.pdfFormatVersion=t.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");var r=this.acroForm.get("Fields");Array.isArray(r)&&0!==r.length||this.xfa||(this.acroForm=null)}}catch(s){if(s instanceof o.MissingDataException)throw s;(0,n.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{var a=this.catalog.catDict.get("Collection");(0,i.isDict)(a)&&a.getKeys().length>0&&(this.collection=a)}catch(s){if(s instanceof o.MissingDataException)throw s;(0,n.info)("Cannot fetch Collection dictionary.")}}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),E(e,x)){e.moveStart();var t,r=12,n="";while((t=e.getByte())>32){if(n.length>=r)break;n+=String.fromCharCode(t)}this.pdfFormatVersion||(this.pdfFormatVersion=n.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"setup",value:function(e){this.xref.parse(e),this.catalog=new a.Catalog(this.pdfManager,this.xref)}},{key:"_getLinearizationPage",value:function(e){var t=this.catalog,r=this.linearization;(0,n.assert)(r&&r.pageFirst===e);var a=i.Ref.get(r.objectNumberFirst,0);return this.xref.fetchAsync(a).then((function(e){if((0,i.isDict)(e,"Page")||(0,i.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return a&&!t.pageKidsCountCache.has(a)&&t.pageKidsCountCache.put(a,1),[e,a];throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(r){return(0,n.info)(r),t.getPageDict(e)}))}},{key:"getPage",value:function(e){var t=this;if(void 0!==this._pagePromises[e])return this._pagePromises[e];var r=this.catalog,n=this.linearization,a=n&&n.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e);return this._pagePromises[e]=a.then((function(n){var a=m(n,2),i=a[0],o=a[1];return new k({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:i,ref:o,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,pdfFunctionFactory:t.pdfFunctionFactory})}))}},{key:"checkFirstPage",value:function(){var e=this;return this.getPage(0).catch(function(){var t=b(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(r instanceof o.XRefEntryException)){t.next=5;break}return e._pagePromises.length=0,t.next=4,e.cleanup();case 4:throw new o.XRefParseException;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:function(){var e=b(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.catalog?this.catalog.cleanup():(0,i.clearPrimitiveCaches)());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linearization",get:function(){var e=null;try{e=u.Linearization.create(this.stream)}catch(t){if(t instanceof o.MissingDataException)throw t;(0,n.info)(t)}return(0,n.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),E(e,A)&&(t=e.pos+6-e.start);else{var r=1024,a=S.length,i=!1,s=e.end;while(!i&&s>0)s-=r-a,s<0&&(s=0),e.pos=s,i=E(e,S,r,!0);if(i){var l;e.skip(9);do{l=e.getByte()}while((0,o.isWhiteSpace)(l));var c="";while(l>=32&&l<=57)c+=String.fromCharCode(l),l=e.getByte();t=parseInt(c,10),isNaN(t)&&(t=0)}}return(0,n.shadow)(this,"startXRef",t)}},{key:"numPages",get:function(){var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,n.shadow)(this,"numPages",t)}},{key:"documentInfo",get:function(){var e={Title:n.isString,Author:n.isString,Subject:n.isString,Keywords:n.isString,Creator:n.isString,Producer:n.isString,CreationDate:n.isString,ModDate:n.isString,Trapped:i.isName},t=this.pdfFormatVersion;"string"===typeof t&&T.test(t)||((0,n.warn)("Invalid PDF header version number: ".concat(t)),t=null);var r,a={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};try{r=this.xref.trailer.get("Info")}catch(f){if(f instanceof o.MissingDataException)throw f;(0,n.info)("The document information dictionary is invalid.")}if((0,i.isDict)(r)){var s,l=d(r.getKeys());try{for(l.s();!(s=l.n()).done;){var c=s.value,u=r.get(c);if(e[c])e[c](u)?a[c]="string"!==typeof u?u:(0,n.stringToPDFString)(u):(0,n.info)('Bad value in document info for "'.concat(c,'".'));else if("string"===typeof c){var h=void 0;if((0,n.isString)(u))h=(0,n.stringToPDFString)(u);else{if(!((0,i.isName)(u)||(0,n.isNum)(u)||(0,n.isBool)(u))){(0,n.info)('Unsupported value in document info for (custom) "'.concat(c,'".'));continue}h=u}a["Custom"]||(a["Custom"]=Object.create(null)),a["Custom"][c]=h}}}catch(f){l.e(f)}finally{l.f()}}return(0,n.shadow)(this,"documentInfo",a)}},{key:"fingerprint",get:function(){var e,t=this.xref.trailer.get("ID");e=Array.isArray(t)&&t[0]&&(0,n.isString)(t[0])&&t[0]!==P?(0,n.stringToBytes)(t[0]):(0,c.calculateMD5)(this.stream.getByteRange(0,C),0,C);for(var r=[],a=0,i=e.length;a0){var u=i.shift(),d=s.fetchIfRef(u.obj);if(null!==d){if(!d.has("Title"))throw new n.FormatError("Invalid outline item encountered.");var h={url:null,dest:null};e.parseDestDictionary({destDict:d,resultObj:h,docBaseUrl:this.pdfManager.docBaseUrl});var f=d.get("Title"),p=d.get("F")||0,g=d.getArray("C"),v=d.get("Count"),m=c;!Array.isArray(g)||3!==g.length||0===g[0]&&0===g[1]&&0===g[2]||(m=l.ColorSpace.singletons.rgb.getRgb(g,0));var b={dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,title:(0,n.stringToPDFString)(f),color:m,count:Number.isInteger(v)?v:void 0,bold:!!(2&p),italic:!!(1&p),items:[]};u.parent.items.push(b),t=d.getRaw("First"),(0,a.isRef)(t)&&!o.has(t)&&(i.push({obj:t,parent:b}),o.put(t)),t=d.getRaw("Next"),(0,a.isRef)(t)&&!o.has(t)&&(i.push({obj:t,parent:u.parent}),o.put(t))}}return r.items.length>0?r.items:null}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(0,a.isDict)(e))return null;var t=e.get("P");if(!(0,n.isNum)(t))return null;t+=Math.pow(2,32);var r=[];for(var i in n.PermissionFlag){var o=n.PermissionFlag[i];t&o&&r.push(o)}return r}},{key:"getDestination",value:function(e){var t=this._readDests();return t instanceof _||t instanceof a.Dict?c(t.get(e)||null):null}},{key:"_readDests",value:function(){var e=this.catDict.get("Names");return e&&e.has("Dests")?new _(e.getRaw("Dests"),this.xref):this.catDict.has("Dests")?this.catDict.get("Dests"):void 0}},{key:"_readPageLabels",value:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,i="",s=new k(e,this.xref),l=s.getAll(),c="",u=1,d=0,h=this.numPages;d=1))throw new n.FormatError("Invalid start in PageLabel dictionary.");u=v}else u=1}switch(r){case"D":c=u;break;case"R":case"r":c=(0,o.toRomanNumerals)(u,"r"===r);break;case"A":case"a":for(var m=26,b=65,y=97,w="a"===r?y:b,_=u-1,x=String.fromCharCode(w+_%m),S=[],A=0,C=_/m|0;A<=C;A++)S.push(x);c=S.join("");break;default:if(r)throw new n.FormatError('Invalid style "'.concat(r,'" in PageLabel dictionary.'));c=""}t[d]=i+c,u++}return t}},{key:"fontFallback",value:function(e,t){var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(r){var n,a=d(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i.loadedName===e)return void i.fallback(t)}}catch(o){a.e(o)}finally{a.f()}}))}},{key:"cleanup",value:function(){var e=this;(0,a.clearPrimitiveCaches)(),this.pageKidsCountCache.clear();var t=[];return this.fontCache.forEach((function(e){t.push(e)})),Promise.all(t).then((function(t){var r,n=d(t);try{for(n.s();!(r=n.n()).done;){var a=r.value.dict;delete a.translated}}catch(i){n.e(i)}finally{n.f()}e.fontCache.clear(),e.builtInCMapCache.clear()}))}},{key:"getPageDict",value:function(e){var t,r=(0,n.createPromiseCapability)(),i=[this.catDict.getRaw("Pages")],o=new a.RefSet,s=this.xref,l=this.pageKidsCountCache,c=0;function u(){var d=function(){var d=i.pop();if((0,a.isRef)(d))return t=l.get(d),t>0&&c+t=0){var h=d.objId;if(h&&!l.has(h)&&l.put(h,t),c+t<=e)return c+=t,"continue"}var f=d.get("Kids");if(!Array.isArray(f))return(0,a.isName)(d.get("Type"),"Page")||!d.has("Type")&&d.has("Contents")?c===e?(r.resolve([d,null]),{v:void 0}):(c++,"continue"):(r.reject(new n.FormatError("Page dictionary kids object is not an array.")),{v:void 0});for(var p=f.length-1;p>=0;p--)i.push(f[p])};while(i.length){var h=d();if("continue"!==h&&"object"===y(h))return h.v}r.reject(new Error("Page index ".concat(e," not found.")))}return u(),r.promise}},{key:"getPageIndex",value:function(e){var t=this.xref;function r(r){var i,o=0;return t.fetchAsync(r).then((function(t){if((0,a.isRefsEqual)(r,e)&&!(0,a.isDict)(t,"Page")&&(!(0,a.isDict)(t)||t.has("Type")||!t.has("Contents")))throw new n.FormatError("The reference does not point to a /Page dictionary.");if(!t)return null;if(!(0,a.isDict)(t))throw new n.FormatError("Node must be a dictionary.");return i=t.getRaw("Parent"),t.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(0,a.isDict)(e))throw new n.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;for(var s=[],l=!1,c=0,u=e.length;c0&&(0===r||t>=n[r-1])&&t<=e.numPages}));u&&(l=s);break;case"NumCopies":s>0&&(l=s);break;default:(0,n.assert)("boolean"===typeof s),l=s}void 0!==l?i[o]=l:(0,n.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}else(0,n.info)('Bad value in ViewerPreferences for "'.concat(o,'".'))}return(0,n.shadow)(this,"viewerPreferences",i)}},{key:"openAction",get:function(){var t=this.catDict.get("OpenAction"),r=null;if((0,a.isDict)(t)){var i=new a.Dict(this.xref);i.set("A",t);var o={url:null,dest:null,action:null};e.parseDestDictionary({destDict:i,resultObj:o}),Array.isArray(o.dest)?(r||(r=Object.create(null)),r.dest=o.dest):o.action&&(r||(r=Object.create(null)),r.action=o.action)}else Array.isArray(t)&&(r||(r=Object.create(null)),r.dest=t);return(0,n.shadow)(this,"openAction",r)}},{key:"attachments",get:function(){var e=this.catDict.get("Names"),t=null;if(e&&e.has("EmbeddedFiles")){var r=new _(e.getRaw("EmbeddedFiles"),this.xref),a=r.getAll();for(var i in a){var o=new x(a[i],this.xref);t||(t=Object.create(null)),t[(0,n.stringToPDFString)(i)]=o.serializable}}return(0,n.shadow)(this,"attachments",t)}},{key:"javaScript",get:function(){var e=this.catDict.get("Names"),t=null;function r(e){var r=e.get("S");if((0,a.isName)(r,"JavaScript")){var i=e.get("JS");if((0,a.isStream)(i))i=(0,n.bytesToString)(i.getBytes());else if(!(0,n.isString)(i))return;t||(t=[]),t.push((0,n.stringToPDFString)(i))}}if(e&&e.has("JavaScript")){var i=new _(e.getRaw("JavaScript"),this.xref),o=i.getAll();for(var s in o){var l=o[s];(0,a.isDict)(l)&&r(l)}}var c=this.catDict.get("OpenAction");return(0,a.isDict)(c)&&(0,a.isName)(c.get("S"),"JavaScript")&&r(c),(0,n.shadow)(this,"javaScript",t)}}],[{key:"parseDestDictionary",value:function(e){function t(e){return e.startsWith("www.")?"http://".concat(e):e}function r(e){try{return(0,n.stringToUTF8String)(e)}catch(t){return e}}var i=e.destDict;if((0,a.isDict)(i)){var o=e.resultObj;if("object"===y(o)){var s,l,c=e.docBaseUrl||null,u=i.get("A");if(!(0,a.isDict)(u)&&i.has("Dest")&&(u=i.get("Dest")),(0,a.isDict)(u)){var d=u.get("S");if(!(0,a.isName)(d))return void(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.");var h=d.name;switch(h){case"URI":s=u.get("URI"),(0,a.isName)(s)?s="/"+s.name:(0,n.isString)(s)&&(s=t(s));break;case"GoTo":l=u.get("D");break;case"Launch":case"GoToR":var f=u.get("F");(0,a.isDict)(f)?s=f.get("F")||null:(0,n.isString)(f)&&(s=f);var p=u.get("D");if(p&&((0,a.isName)(p)&&(p=p.name),(0,n.isString)(s))){var g=s.split("#")[0];(0,n.isString)(p)?s=g+"#"+p:Array.isArray(p)&&(s=g+"#"+JSON.stringify(p))}var v=u.get("NewWindow");(0,n.isBool)(v)&&(o.newWindow=v);break;case"Named":var m=u.get("N");(0,a.isName)(m)&&(o.action=m.name);break;case"JavaScript":var b,w=u.get("JS");if((0,a.isStream)(w)?b=(0,n.bytesToString)(w.getBytes()):(0,n.isString)(w)&&(b=w),b){var _=["app.launchURL","window.open"],k=new RegExp("^\\s*("+_.join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i"),x=k.exec((0,n.stringToPDFString)(b));if(x&&x[2]){s=x[2],"true"===x[3]&&"app.launchURL"===x[1]&&(o.newWindow=!0);break}}default:(0,n.warn)('parseDestDictionary: unsupported action type "'.concat(h,'".'));break}}else i.has("Dest")&&(l=i.get("Dest"));if((0,n.isString)(s)){s=r(s);var S=(0,n.createValidAbsoluteUrl)(s,c);S&&(o.url=S.href),o.unsafeUrl=s}l&&((0,a.isName)(l)&&(l=l.name),((0,n.isString)(l)||Array.isArray(l))&&(o.dest=l))}else(0,n.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}]),e}();t.Catalog=u;var h=function(){function e(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){var t,r,i;e?((0,n.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;try{r=t.get("Encrypt")}catch(u){if(u instanceof o.MissingDataException)throw u;(0,n.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(u,'".'))}if((0,a.isDict)(r)){var l=t.get("ID"),c=l&&l.length?l[0]:"";r.suppressEncryption=!0,this.encrypt=new s.CipherTransformFactory(r,c,this.pdfManager.password)}try{i=t.get("Root")}catch(u){if(u instanceof o.MissingDataException)throw u;(0,n.warn)('XRef.parse - Invalid "Root" reference: "'.concat(u,'".'))}if(!(0,a.isDict)(i)||!i.has("Pages")){if(!e)throw new o.XRefParseException;throw new n.FormatError("Invalid root reference")}this.root=i},processXRefTable:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,a.isCmd)(t,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(!(0,a.isDict)(r)&&r.dict&&(r=r.dict),!(0,a.isDict)(r))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r},readXRefTable:function(e){var t,r=e.lexer.stream,i=this.tableState;r.pos=i.streamPos,e.buf1=i.parserBuf1,e.buf2=i.parserBuf2;while(1){if(!("firstEntryNum"in i)||!("entryCount"in i)){if((0,a.isCmd)(t=e.getObj(),"trailer"))break;i.firstEntryNum=t,i.entryCount=e.getObj()}var o=i.firstEntryNum,s=i.entryCount;if(!Number.isInteger(o)||!Number.isInteger(s))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(var l=i.entryNum;l0){var u=c[0],d=c[1];if(!Number.isInteger(u)||!Number.isInteger(d))throw new n.FormatError("Invalid XRef range fields: ".concat(u,", ").concat(d));if(!Number.isInteger(o)||!Number.isInteger(s)||!Number.isInteger(l))throw new n.FormatError("Invalid XRef entry fields length: ".concat(u,", ").concat(d));for(t=a.entryNum;t=e.length)break;a+=String.fromCharCode(i),i=e[n]}return a}function d(e,t,r){var n=r.length,a=e.length,i=0;while(t=n)break;t++,i++}return i}var h=/^(\d+)\s+(\d+)\s+obj\b/,f=/\bendobj[\b\s]$/,p=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,g=25,v=new Uint8Array([116,114,97,105,108,101,114]),m=new Uint8Array([115,116,97,114,116,120,114,101,102]),b=new Uint8Array([111,98,106]),y=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var w=this.stream;w.pos=0;var _,k,x,S=w.getBytes(),A=w.start,C=S.length,P=[],T=[];while(A=C)break;E=S[A]}while(E!==t&&E!==r);else++A}for(_=0,k=T.length;_2&&void 0!==arguments[2]&&arguments[2],n=e.gen,s=e.num;if(t.gen!==n)throw new o.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var l=this.stream.makeSubStream(t.offset+this.stream.start),c=new i.Parser({lexer:new i.Lexer(l),xref:this,allowStreams:!0}),u=c.getObj(),d=c.getObj(),h=c.getObj();if(u!==s||d!==n||!(h instanceof a.Cmd))throw new o.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==h.cmd){if(h.cmd.startsWith("obj")&&(s=parseInt(h.cmd.substring(3),10),!Number.isNaN(s)))return s;throw new o.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!r?c.getObj(this.encrypt.createCipherTransform(s,n)):c.getObj(),(0,a.isStream)(t)||this._cacheMap.set(s,t),t},fetchCompressed:function(e,t){var r=t.offset,s=this.fetch(a.Ref.get(r,0));if(!(0,a.isStream)(s))throw new n.FormatError("bad ObjStm stream");var l=s.dict.get("First"),c=s.dict.get("N");if(!Number.isInteger(l)||!Number.isInteger(c))throw new n.FormatError("invalid first and n parameters for ObjStm stream");for(var u=new i.Parser({lexer:new i.Lexer(s),xref:this,allowStreams:!0}),d=new Array(c),h=0;h0){var o=t.fetchIfRef(i.shift());if((0,a.isDict)(o))if(o.has("Kids"))for(var s=o.get("Kids"),l=0,c=s.length;li)return(0,n.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var o=r.get("Kids");if(!Array.isArray(o))return null;var s=0,l=o.length-1;while(s<=l){var c=s+l>>1,u=t.fetchIfRef(o[c]),d=u.get("Limits");if(et.fetchIfRef(d[1]))){r=t.fetchIfRef(o[c]);break}s=c+1}}if(s>l)return null}var h=r.get(this._type);if(Array.isArray(h)){var f=0,p=h.length-2;while(f<=p){var g=f+p>>1,v=g+(1&g),m=t.fetchIfRef(h[v]);if(em))return t.fetchIfRef(h[v+1]);f=v+2}}(0,n.info)('Falling back to an exhaustive search, for key "'.concat(e,'", ')+'in "'.concat(this._type,'" tree.'));for(var b=0,y=h.length;b0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof i.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":var r=[];while(!(0,i.isCmd)(this.buf1,"]")&&!(0,i.isEOF)(this.buf1))r.push(this.getObj(e));if((0,i.isEOF)(this.buf1)){if(!this.recoveryMode)throw new a.FormatError("End of file inside array");return r}return this.shift(),r;case"<<":var n=new i.Dict(this.xref);while(!(0,i.isCmd)(this.buf1,">>")&&!(0,i.isEOF)(this.buf1))if((0,i.isName)(this.buf1)){var o=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;n.set(o,this.getObj(e))}else(0,a.info)("Malformed dictionary: key must be a name object"),this.shift();if((0,i.isEOF)(this.buf1)){if(!this.recoveryMode)throw new a.FormatError("End of file inside dictionary");return n}return(0,i.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(n,e):n:(this.shift(),n);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,i.isCmd)(this.buf2,"R")){var s=i.Ref.get(t,this.buf1);return this.shift(),this.shift(),s}return t}return"string"===typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){var t,r,n=69,i=73,s=32,l=10,c=13,u=10,d=0,h=e.pos,f=0;while(-1!==(t=e.getByte()))if(0===f)f=t===n?1:0;else if(1===f)f=t===i?2:0;else if((0,a.assert)(2===f),t===s||t===l||t===c){r=e.pos;for(var p=e.peekBytes(u),g=0,v=p.length;g127)){f=0;break}if(2===f)break}else f=0;-1===t&&((0,a.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,a.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var m=4;return e.skip(-m),t=e.peekByte(),e.skip(m),(0,o.isWhiteSpace)(t)||m--,e.pos-m-h}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){var t,r,n=e.pos,i=!1;while(-1!==(t=e.getByte()))if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:r=e.getUint16(),r>2?e.skip(r-2):e.skip(-2);break}if(i)break}var o=e.pos-n;return-1===t?((0,a.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-o),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),o)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){var t,r=126,n=62,i=e.pos;while(-1!==(t=e.getByte()))if(t===r){var s=e.pos;t=e.peekByte();while((0,o.isWhiteSpace)(t))e.skip(),t=e.peekByte();if(t===n){e.skip();break}if(e.pos>s){var l=e.peekBytes(2);if(69===l[0]&&73===l[1])break}}var c=e.pos-i;return-1===t?((0,a.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-c),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),c)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){var t,r=62,n=e.pos;while(-1!==(t=e.getByte()))if(t===r)break;var i=e.pos-n;return-1===t?((0,a.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-i),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),i)}},{key:"inlineStreamSkipEI",value:function(e){var t,r=69,n=73,a=0;while(-1!==(t=e.getByte()))if(0===a)a=t===r?1:0;else if(1===a)a=t===n?2:0;else if(2===a)break}},{key:"makeInlineImage",value:function(e){var t,r=this.lexer,n=r.stream,o=new i.Dict(this.xref);while(!(0,i.isCmd)(this.buf1,"ID")&&!(0,i.isEOF)(this.buf1)){if(!(0,i.isName)(this.buf1))throw new a.FormatError("Dictionary key must be a name object");var s=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;o.set(s,this.getObj(e))}-1!==r.beginInlineImagePos&&(t=n.pos-r.beginInlineImagePos);var l,c=o.get("Filter","F");if((0,i.isName)(c))l=c.name;else if(Array.isArray(c)){var u=this.xref.fetchIfRef(c[0]);(0,i.isName)(u)&&(l=u.name)}var f,p=n.pos;f="DCTDecode"===l||"DCT"===l?this.findDCTDecodeInlineStreamEnd(n):"ASCII85Decode"===l||"A85"===l?this.findASCII85DecodeInlineStreamEnd(n):"ASCIIHexDecode"===l||"AHx"===l?this.findASCIIHexDecodeInlineStreamEnd(n):this.findDefaultInlineStreamEnd(n);var v,m=n.makeSubStream(p,f,o);if(f=a)return r.pos+=s,r.pos-e;s++}r.pos+=o}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,n=r.stream;r.skipToNextLine();var s=n.pos-1,l=e.get("Length");if(Number.isInteger(l)||((0,a.info)('Bad length "'.concat(l,'" in stream')),l=0),n.pos=s+l,r.nextChar(),this.tryShift()&&(0,i.isCmd)(this.buf2,"endstream"))this.shift();else{var c=new Uint8Array([101,110,100,115,116,114,101,97,109]),u=this._findStreamLength(s,c);if(u<0){for(var d=1,h=1;h<=d;h++){var f=c.length-h,p=c.slice(0,f),g=this._findStreamLength(s,p);if(g>=0){var v=n.peekBytes(f+1)[f];if(!(0,o.isWhiteSpace)(v))break;(0,a.info)('Found "'.concat((0,a.bytesToString)(p),'" when ')+"searching for endstream command."),u=g;break}}if(u<0)throw new a.FormatError("Missing endstream command.")}l=u,r.nextChar(),this.shift(),this.shift()}return this.shift(),n=n.makeSubStream(s,l,e),t&&(n=t.createStream(n,l)),n=this.filter(n,e,l),n.dict=e,n}},{key:"filter",value:function(e,t,r){var n=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,i.isName)(n))return Array.isArray(o)&&(0,a.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,n.name,r,o);var s=r;if(Array.isArray(n))for(var l=n,c=o,u=0,d=l.length;u=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var y=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;p(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}return f(e,[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,n=0;if(45===e?(n=-1,e=this.nextChar(),45===e&&(e=this.nextChar())):43===e&&(n=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){if(10===r&&0===n&&((0,o.isWhiteSpace)(e)||-1===e))return(0,a.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new a.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}n=n||1;var i=e-48,s=0,l=1;while((e=this.nextChar())>=0)if(e>=48&&e<=57){var c=e-48;t?s=10*s+c:(0!==r&&(r*=10),i=10*i+c)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,a.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(e=this.peekChar(),43===e||45===e)l=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(i/=r),t&&(i*=Math.pow(10,l*s)),n*i}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;var n=this.nextChar();while(1){var i=!1;switch(0|n){case-1:(0,a.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0===--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(n=this.nextChar(),n){case-1:(0,a.warn)("Unterminated string"),t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(n));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var o=15&n;n=this.nextChar(),i=!0,n>=48&&n<=55&&(o=(o<<3)+(15&n),n=this.nextChar(),n>=48&&n<=55&&(i=!1,o=(o<<3)+(15&n))),r.push(String.fromCharCode(o));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(n));break}break;default:r.push(String.fromCharCode(n));break}if(t)break;i||(n=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;r.length=0;while((e=this.nextChar())>=0&&!m[e])if(35===e){if(e=this.nextChar(),m[e]){(0,a.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var n=b(e);if(-1!==n){t=e,e=this.nextChar();var o=b(e);if(-1===o){if((0,a.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),m[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(n<<4|o))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&(0,a.warn)("Name token is longer than allowed by the spec: ".concat(r.length)),i.Name.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){var t=5;this._hexStringNumWarn++!==t?this._hexStringNumWarn>t||(0,a.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,a.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,r,n=this.currentChar,i=!0;this._hexStringNumWarn=0;while(1){if(n<0){(0,a.warn)("Unterminated hex string");break}if(62===n){this.nextChar();break}if(1!==m[n]){if(i){if(t=b(n),-1===t){this._hexStringWarn(n),n=this.nextChar();continue}}else{if(r=b(n),-1===r){this._hexStringWarn(n),n=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}i=!i,n=this.nextChar()}else n=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){var e=!1,t=this.currentChar;while(1){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==m[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),i.Cmd.get("[");case 93:return this.nextChar(),i.Cmd.get("]");case 60:return t=this.nextChar(),60===t?(this.nextChar(),i.Cmd.get("<<")):this.getHexString();case 62:return t=this.nextChar(),62===t?(this.nextChar(),i.Cmd.get(">>")):i.Cmd.get(">");case 123:return this.nextChar(),i.Cmd.get("{");case 125:return this.nextChar(),i.Cmd.get("}");case 41:throw this.nextChar(),new a.FormatError("Illegal character: ".concat(t))}var r=String.fromCharCode(t),n=this.knownCommands,o=n&&void 0!==n[r];while((t=this.nextChar())>=0&&!m[t]){var s=r+String.fromCharCode(t);if(o&&void 0===n[s])break;if(128===r.length)throw new a.FormatError("Command token too long: ".concat(r.length));r=s,o=n&&void 0!==n[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),i.Cmd.get(r)))}},{key:"skipToNextLine",value:function(){var e=this.currentChar;while(e>=0){if(13===e){e=this.nextChar(),10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=y;var w=function(){function e(){p(this,e)}return f(e,null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.get(t);if(Number.isInteger(n)&&(r?n>=0:n>0))return n;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}function r(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var n=0;n0))throw new Error("Hint (".concat(n,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}var n,o,s=new v({lexer:new y(e),xref:null}),l=s.getObj(),c=s.getObj(),u=s.getObj(),d=s.getObj();if(!(Number.isInteger(l)&&Number.isInteger(c)&&(0,i.isCmd)(u,"obj")&&(0,i.isDict)(d)&&(0,a.isNum)(n=d.get("Linearized"))&&n>0))return null;if((o=t(d,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:o,hints:r(d),objectNumberFirst:t(d,"O"),endFirst:t(d,"E"),numPages:t(d,"N"),mainXRefEntriesOffset:t(d,"T"),pageFirst:d.has("P")?t(d,"P",!0):0}}}]),e}();t.Linearization=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var n=r(2),a=r(4),i=r(7),o=function(){function e(e,t,r,n){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+r||this.bytes.length,this.dict=n}return e.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){var e=this.getByte(),t=this.getByte(),r=this.getByte(),n=this.getByte();return(e<<24)+(t<<16)+(r<<8)+n},getBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,a=this.end;if(!e){var i=r.subarray(n,a);return t?new Uint8ClampedArray(i):i}var o=n+e;o>a&&(o=a),this.pos=o;var s=r.subarray(n,o);return t?new Uint8ClampedArray(s):s},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},getByteRange:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,r,n){return new e(this.bytes.buffer,t,r,n)}},e}();t.Stream=o;var s=function(){function e(e){var t=(0,n.stringToBytes)(e);o.call(this,t)}return e.prototype=o.prototype,e}();t.StringStream=s;var l=function(){var e=new Uint8Array(0);function t(t){if(this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=e,this.minBufferLength=512,t)while(this.minBufferLength1&&void 0!==arguments[1]&&arguments[1],n=this.pos;if(e){this.ensureBuffer(n+e),t=n+e;while(!this.eof&&this.bufferLengtha&&(t=a)}else{while(!this.eof)this.readBlock();t=this.bufferLength}this.pos=t;var i=this.buffer.subarray(n,t);return!r||i instanceof Uint8ClampedArray?i:new Uint8ClampedArray(i)},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},makeSubStream:function(e,t,r){var n=e+t;while(this.bufferLength<=n&&!this.eof)this.readBlock();return new o(this.buffer,e,t,r)},getByteRange:function(e,t){(0,n.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},t}();t.DecodeStream=l;var c=function(){function e(e){this.streams=e;for(var t=0,r=0,n=e.length;r>e,this.codeSize=a-=e,t},o.prototype.getCode=function(e){var t,r=this.str,a=e[0],i=e[1],o=this.codeSize,s=this.codeBuf;while(o>16,u=65535&l;if(c<1||o>c,this.codeSize=o-c,u},o.prototype.generateHuffmanTable=function(e){var t,r=e.length,n=0;for(t=0;tn&&(n=e[t]);for(var a=1<>=1;for(t=u;t>=1,0!==c){var u,d;if(1===c)u=a,d=i;else{if(2!==c)throw new n.FormatError("Unknown block type in flate stream");var h,f=this.getBits(5)+257,p=this.getBits(5)+1,g=this.getBits(4)+4,v=new Uint8Array(e.length);for(h=0;h0)k[h++]=w}u=this.generateHuffmanTable(k.subarray(0,f)),d=this.generateHuffmanTable(k.subarray(f,_))}o=this.buffer;var A=o?o.length:0,C=this.bufferLength;while(1){var P=this.getCode(u);if(P<256)C+1>=A&&(o=this.ensureBuffer(C+1),A=o.length),o[C++]=P;else{if(256===P)return void(this.bufferLength=C);P-=257,P=t[P];var T=P>>16;T>0&&(T=this.getBits(T)),s=(65535&P)+T,P=this.getCode(d),P=r[P],T=P>>16,T>0&&(T=this.getBits(T));var E=(65535&P)+T;C+s>=A&&(o=this.ensureBuffer(C+s),A=o.length);for(var R=0;R15))throw new n.FormatError("Unsupported predictor: ".concat(i));this.readBlock=2===i?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;var o=this.colors=r.get("Colors")||1,s=this.bits=r.get("BitsPerComponent")||8,c=this.columns=r.get("Columns")||1;return this.pixBytes=o*s+7>>3,this.rowBytes=c*o*s+7>>3,l.call(this,t),this}return e.prototype=Object.create(l.prototype),e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),n=this.bits,a=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o,s=0,l=0,c=0,u=0,d=t;if(1===n&&1===a)for(o=0;o>1,h^=h>>2,h^=h>>4,s=(1&h)<<7,r[d++]=h}else if(8===n){for(o=0;o>8&255,r[d++]=255&p}}else{var g=new Uint8Array(a+1),v=(1<>c-n)&v,c-=n,l=l<=8&&(r[b++]=l>>u-8&255,u-=8);u>0&&(r[b++]=(l<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),a=this.str.getBytes(e);if(this.eof=!a.length,!this.eof){var i=this.bufferLength,o=this.ensureBuffer(i+e),s=o.subarray(i-e,i);0===s.length&&(s=new Uint8Array(e));var l,c,u,d=i;switch(r){case 0:for(l=0;l>1)+a[l];for(;l>1)+a[l]&255,d++;break;case 4:for(l=0;l0,n=this.decrypt;e=n(e,!r);var a,i=this.bufferLength,o=e.length,s=this.ensureBuffer(i+o);for(a=0;a=0;--s)o[l+s]=255&u,u>>=8}}else this.eof=!0},e}();t.Ascii85Stream=p;var g=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=8e3,t=this.str.getBytes(e);if(t.length){for(var r=t.length+1>>1,n=this.ensureBuffer(this.bufferLength+r),a=this.bufferLength,i=this.firstDigit,o=0,s=t.length;o=48&&c<=57)l=15&c;else{if(!(c>=65&&c<=70||c>=97&&c<=102)){if(62===c){this.eof=!0;break}continue}l=9+(15&c)}i<0?i=l:(n[a++]=i<<4|l,i=-1)}i>=0&&this.eof&&(n[a++]=i<<4,i=-1),this.firstDigit=i,this.bufferLength=a}else this.eof=!0},e}();t.AsciiHexStream=g;var v=function(){function e(e,t){this.str=e,this.dict=e.dict,l.call(this,t)}return e.prototype=Object.create(l.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,n=e[0];if(n<128){if(t=this.ensureBuffer(r+n+1),t[r++]=e[1],n>0){var a=this.str.getBytes(n);t.set(a,r),r+=n}}else{n=257-n;var i=e[1];t=this.ensureBuffer(r+n+1);for(var o=0;o>>t&(1<0;if(y<256)p[0]=y,g=1;else{if(!(y>=258)){if(256===y){h=9,l=258,g=0;continue}this.eof=!0,delete this.lzwState;break}if(y=0;t--)p[t]=c[r],r=d[r];else p[g++]=p[0]}if(w&&(d[l]=f,u[l]=u[f]+1,c[l]=p[0],l++,h=l+s&l+s-1?h:0|Math.min(Math.log(l+s)/.6931471805599453+1,12)),f=y,v+=g,a1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"function"!==typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=e,this.eof=!1,this.encoding=t["K"]||0,this.eoline=t["EndOfLine"]||!1,this.byteAlign=t["EncodedByteAlign"]||!1,this.columns=t["Columns"]||1728,this.rows=t["Rows"]||0;var r,n=t["EndOfBlock"];null!==n&&void 0!==n||(n=!0),this.eoblock=n,this.black=t["BlackIs1"]||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;while(0===(r=this._lookBits(12)))this._eatBits(1);1===r&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return b.prototype={readNextChar:function(){if(this.eof)return-1;var e,h,f,p,g,v=this.refLine,m=this.codingLine,b=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var y,w,_;if(this.err=!1,this.nextLine2D){for(p=0;m[p]=64);do{w+=_=this._getWhiteCode()}while(_>=64)}else{do{y+=_=this._getWhiteCode()}while(_>=64);do{w+=_=this._getBlackCode()}while(_>=64)}this._addPixels(m[this.codingPos]+y,h),m[this.codingPos]0?--e:++e;while(v[e]<=m[this.codingPos]&&v[e]0?--e:++e;while(v[e]<=m[this.codingPos]&&v[e]0?--e:++e;while(v[e]<=m[this.codingPos]&&v[e]=64);else do{y+=_=this._getWhiteCode()}while(_>=64);this._addPixels(m[this.codingPos]+y,h),h^=1}}var k=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(y=this._lookBits(12),this.eoline)while(y!==t&&1!==y)this._eatBits(1),y=this._lookBits(12);else while(0===y)this._eatBits(1),y=this._lookBits(12);1===y?(this._eatBits(12),k=!0):y===t&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&k&&this.byteAlign){if(y=this._lookBits(12),1===y){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(p=0;p<4;++p)y=this._lookBits(12),1!==y&&(0,n.info)("bad rtc code: "+y),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){while(1){if(y=this._lookBits(13),y===t)return this.eof=!0,-1;if(y>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&y))}m[0]>0?this.outputBits=m[this.codingPos=0]:this.outputBits=m[this.codingPos=1],this.row++}if(this.outputBits>=8)g=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&m[this.codingPos]f?(g<<=f,1&this.codingPos||(g|=255>>8-f),this.outputBits-=f,f=0):(g<<=this.outputBits,1&this.codingPos||(g|=255>>8-this.outputBits),f-=this.outputBits,this.outputBits=0,m[this.codingPos]0&&(g<<=f,f=0))}while(f)}return this.black&&(g^=255),g},_addPixels:function(e,t){var r=this.codingLine,a=this.codingPos;e>r[a]&&(e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e),this.codingPos=a},_addPixelsNeg:function(e,t){var r=this.codingLine,a=this.codingPos;if(e>r[a])e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&a^t&&++a,r[a]=e;else if(e0&&e=i){var l=n[s-i];if(l[0]===o)return this._eatBits(o),[!0,l[1],!0]}}return[!1,0,!1]},_getTwoDimCode:function(){var e,r=0;if(this.eoblock){if(r=this._lookBits(7),e=h[r],e&&e[0]>0)return this._eatBits(e[0]),e[1]}else{var a=this._findTableCode(1,7,h);if(a[0]&&a[2])return a[1]}return(0,n.info)("Bad two dim code"),t},_getWhiteCode:function(){var e,r=0;if(this.eoblock){if(r=this._lookBits(12),r===t)return 1;if(e=r>>5===0?f[r]:p[r>>3],e[0]>0)return this._eatBits(e[0]),e[1]}else{var a=this._findTableCode(1,9,p);if(a[0])return a[1];if(a=this._findTableCode(11,12,f),a[0])return a[1]}return(0,n.info)("bad white code"),this._eatBits(1),1},_getBlackCode:function(){var e,r;if(this.eoblock){if(e=this._lookBits(13),e===t)return 1;if(r=e>>7===0?g[e]:e>>9===0&&e>>7!==0?v[(e>>1)-64]:m[e>>7],r[0]>0)return this._eatBits(r[0]),r[1]}else{var a=this._findTableCode(2,6,m);if(a[0])return a[1];if(a=this._findTableCode(7,12,v,64),a[0])return a[1];if(a=this._findTableCode(10,13,g),a[0])return a[1]}return(0,n.info)("bad black code"),this._eatBits(1),1},_lookBits:function(e){var r;while(this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|r,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e},_eatBits:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},b}();t.CCITTFaxDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var n=r(4),a=r(11),i=r(15),o=r(2),s=function(){function e(e,t,r,n){this.stream=e,this.maybeLength=t,this.dict=r,this.params=n,a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e=new i.Jbig2Image,t=[];if((0,n.isDict)(this.params)){var r=this.params.get("JBIG2Globals");if((0,n.isStream)(r)){var a=r.getBytes();t.push({data:a,start:0,end:a.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var o=e.parseChunks(t),s=o.length,l=0;l>>0}var o=i(1),s=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2);return 0===o?s:s>0?-s:null}function l(e,t,r){for(var n=e.getContexts("IAID"),a=1,i=0;i=L&&T=F)for(W=W<<1&w,g=0;g=0&&R=0&&(I=U[E][R],I&&(W|=I<=e?F<<=1:F=F<<1|S[O][L];for(h=0;h=k||L<0||L>=_?F<<=1:F=F<<1|n[O][L];var M=A.readBit(C,F);R[I]=M}}return S}function m(e,t,n,i,o,c,u,d,h,f,p,m){if(e&&t)throw new s("symbol refinement with Huffman is not supported");var y,w,_=[],k=0,x=(0,a.log2)(n.length+i),S=p.decoder,A=p.contextCache;e&&(y=M(1),w=[],x=Math.max(x,1));while(_.length1)R=b(e,t,P,k,0,O,1,n.concat(_),x,0,0,1,0,c,h,f,p,0,m);else{var L=l(A,S,x),F=r(A,"IARDX",S),D=r(A,"IARDY",S),N=L1&&(F=e?k.readBits(_):r(T,"IAIT",P));var M=c*E+F,D=e?m.symbolIDTable.decode(k):l(T,P,d),N=t&&(e?k.readBit():r(T,"IARI",P)),B=u[D],U=B[0].length,j=B.length;if(N){var q=r(T,"IARDW",P),z=r(T,"IARDH",P),V=r(T,"IARDX",P),W=r(T,"IARDY",P);U+=q,j+=z,B=v(U,j,b,B,(q>>1)+V,(z>>1)+W,!1,y,w)}var H,G,Y,X=M-(1&p?0:j-1),K=L-(2&p?U-1:0);if(h){for(H=0;H=0;y--)R=e?q(E,u,d,!0):g(!1,u,d,r,!1,b,T,m),z[y]=R;for(I=0;I=0;w--)L=z[w][I][O]^L,F|=L<>8,B=f+I*p-O*v>>8,N>=0&&N+A<=n&&B>=0&&B+C<=i)for(y=0;y=i))for(j=k[W],U=M[y],w=0;w=0&&V>5&7,d=[31&l],h=t+6;if(7===l){u=536870911&(0,a.readUint32)(e,h-1),h+=3;var f=u+7>>3;d[0]=e[h++];while(--f>0)d.push(e[h++])}else if(5===l||6===l)throw new s("invalid referred-to flags");r.retainBits=d;var p=4;r.number<=256?p=1:r.number<=65536&&(p=2);var g,v,m=[];for(g=0;g>>24&255,A[3]=y.height>>16&255,A[4]=y.height>>8&255,A[5]=255&y.height,g=h,v=e.length;g>2&3,h.huffmanDWSelector=f>>4&3,h.bitmapSizeSelector=f>>6&1,h.aggregationInstancesSelector=f>>7&1,h.bitmapCodingContextUsed=!!(256&f),h.bitmapCodingContextRetained=!!(512&f),h.template=f>>10&3,h.refinementTemplate=f>>12&1,u+=2,!h.huffman){for(o=0===h.template?4:1,n=[],i=0;i>2&3,p.stripSize=1<>4&3,p.transposed=!!(64&g),p.combinationOperator=g>>7&3,p.defaultPixelValue=g>>9&1,p.dsOffset=g<<17>>27,p.refinementTemplate=g>>15&1,p.huffman){var v=(0,a.readUint16)(c,u);u+=2,p.huffmanFS=3&v,p.huffmanDS=v>>2&3,p.huffmanDT=v>>4&3,p.huffmanRefinementDW=v>>6&3,p.huffmanRefinementDH=v>>8&3,p.huffmanRefinementDX=v>>10&3,p.huffmanRefinementDY=v>>12&3,p.huffmanRefinementSizeSelector=!!(16384&v)}if(p.refinement&&!p.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:(0,a.readInt8)(c,u),y:(0,a.readInt8)(c,u+1)}),u+=2;p.refinementAt=n}p.numberOfSymbolInstances=(0,a.readUint32)(c,u),u+=4,r=[p,l.referredTo,c,u,d];break;case 16:var m={},b=c[u++];m.mmr=!!(1&b),m.template=b>>1&3,m.patternWidth=c[u++],m.patternHeight=c[u++],m.maxPatternIndex=(0,a.readUint32)(c,u),u+=4,r=[m,l.number,c,u,d];break;case 22:case 23:var y={};y.info=x(c,u),u+=S;var w=c[u++];y.mmr=!!(1&w),y.template=w>>1&3,y.enableSkip=!!(8&w),y.combinationOperator=w>>4&7,y.defaultPixelValue=w>>7&1,y.gridWidth=(0,a.readUint32)(c,u),u+=4,y.gridHeight=(0,a.readUint32)(c,u),u+=4,y.gridOffsetX=4294967295&(0,a.readUint32)(c,u),u+=4,y.gridOffsetY=4294967295&(0,a.readUint32)(c,u),u+=4,y.gridVectorX=(0,a.readUint16)(c,u),u+=2,y.gridVectorY=(0,a.readUint16)(c,u),u+=2,r=[y,l.referredTo,c,u,d];break;case 38:case 39:var _={};_.info=x(c,u),u+=S;var k=c[u++];if(_.mmr=!!(1&k),_.template=k>>1&3,_.prediction=!!(8&k),!_.mmr){for(o=0===_.template?4:1,n=[],i=0;i>2&1,A.combinationOperator=C>>3&3,A.requiresBuffer=!!(32&C),A.combinationOperatorOverride=!!(64&C),r=[A];break;case 49:break;case 50:break;case 51:break;case 53:r=[l.number,c,u,d];break;case 62:break;default:throw new s("segment type ".concat(l.typeName,"(").concat(l.type,")")+" is not implemented")}var P="on"+l.typeName;P in t&&t[P].apply(t,r)}function C(e,t){for(var r=0,n=e.length;r>=1;return{imgData:f,width:u,height:d}}function E(){}function R(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}function I(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}function O(e,t){t||this.assignPrefixCodes(e),this.rootNode=new I(null);for(var r=0,n=e.length;r0&&this.rootNode.buildTree(a,a.prefixLength-1)}}function L(e,t,r){var n,i,o=e[t],s=4294967295&(0,a.readUint32)(e,t+1),l=4294967295&(0,a.readUint32)(e,t+5),c=new D(e,t+9,r),u=1+(o>>1&7),d=1+(o>>4&7),h=[],f=s;do{n=c.readBits(u),i=c.readBits(d),h.push(new R([f,n,i,0])),f+=1<>3,r=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var n=0,a=r.length;n>3,d=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,h=this.buffer,f=128>>(7&e.x),p=e.y*u+(e.x>>3);switch(d){case 0:for(r=0;r>=1,a||(a=128,i++);p+=u}break;case 2:for(r=0;r>=1,a||(a=128,i++);p+=u}break;default:throw new s("operator ".concat(d," is not supported"))}},onImmediateGenericRegion:function(e,r,n,a){var i=e.info,o=new t(r,n,a),s=g(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(i,s)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,n,a,i,o){var s,l;e.huffman&&(s=U(e,n,this.customTables),l=new D(a,i,o));var c=this.symbols;c||(this.symbols=c={});for(var u=[],d=0,h=n.length;d>t&1;if(t<=0)this.children[r]=new I(e);else{var n=this.children[r];n||(this.children[r]=n=new I(null)),n.buildTree(e,t-1)}},decodeNode:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new s("invalid Huffman data");return r.decodeNode(e)}},O.prototype={decode:function(e){return this.rootNode.decodeNode(e)},assignPrefixCodes:function(e){for(var t=e.length,r=0,n=0;n=32){var h=void 0,f=void 0,p=void 0;switch(d){case 32:if(0===u)throw new s("no previous value in symbol ID table");f=a.readBits(2)+3,h=i[u-1].prefixLength;break;case 33:f=a.readBits(3)+3,h=0;break;case 34:f=a.readBits(7)+11,h=0;break;default:throw new s("invalid code length in symbol ID table")}for(p=0;p>h&1,h--}if(n&&!c)for(var p=5,g=0;g=this.end)throw new s("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e},readBits:function(e){var t,r=0;for(t=e-1;t>=0;t--)r|=this.readBit()<=this.end?-1:this.data[this.position++]}},z.prototype={parseChunks:function(e){return P(e)},parse:function(e){var t=T(e),r=t.imgData,n=t.width,a=t.height;return this.width=n,this.height=a,r}},z}();t.Jbig2Image=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;var n=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],a=function(){function e(t,r,n){p(this,e),this.data=t,this.bp=r,this.dataEnd=n,this.chigh=t[r],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}return f(e,[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?e[t+1]>143?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,a=e[t]>>1,i=1&e[t],o=n[a],s=o.qe,l=this.a-s;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--}while(0===(32768&l));return this.a=l,e[t]=a<<1|i,r}}]),e}();t.ArithmeticDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var n=r(2),a=r(11),i=r(4),o=r(18),s=function(){function e(e,t,r,n){var i;while(-1!==(i=e.getByte()))if(255===i){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=r,this.params=n,a.DecodeStream.call(this,t)}return e.prototype=Object.create(a.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,n.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,n=t.length,a=new Int32Array(n),s=!1,l=(1<10*a){o=!1;break}break;case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:s=!0;break;case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:var c=r.getUint16();c>2?r.skip(c-2):r.skip(-2);break;case 255:r.skip(-1);break;case 217:s=!0;break}if(s)break}return r.pos=i,(0,n.shadow)(this,"maybeValidDimensions",o)},configurable:!0}),e.prototype.getIR=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,n.createObjectURL)(this.bytes,"image/jpeg",e)},e}();t.JpegStream=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var n=r(2),a=r(7),i=function(e){g(r,e);var t=v(r);function r(e){return p(this,r),t.call(this,"JPEG error: ".concat(e))}return r}(n.BaseException),o=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this,e),a.scanLines=n,a}return r}(n.BaseException),s=function(e){g(r,e);var t=v(r);function r(){return p(this,r),t.apply(this,arguments)}return r}(n.BaseException),l=function(){var e=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),t=4017,r=799,l=3406,c=2276,u=1567,d=3784,h=5793,f=2896;function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.decodeTransform,r=void 0===t?null:t,n=e.colorTransform,a=void 0===n?-1:n;this._decodeTransform=r,this._colorTransform=a}function g(e,t){var r,n,a=0,i=[],o=16;while(o>0&&!e[o-1])o--;i.push({children:[],index:0});var s,l=i[0];for(r=0;r0)l=i.pop();l.index++,i.push(l);while(i.length<=r)i.push(s={children:[],index:0}),l.children[l.index]=s.children,l=s;a++}r+19&&void 0!==arguments[9]&&arguments[9],m=l.mcusPerLine,b=l.progressive,w=r,k=0,x=0;function S(){if(x>0)return x--,k>>x&1;if(k=t[r++],255===k){var e=t[r++];if(e){if(220===e&&g){r+=2;var n=(0,a.readUint16)(t,r);if(r+=2,n>0&&n!==l.scanLines)throw new o("Found DNL marker (0xFFDC) while parsing scan data",n)}else if(217===e){if(g){var c=8*D;if(c>0&&c>>7}function A(e){var t=e;while(1){switch(t=t[S()],y(t)){case"number":return t;case"object":continue}throw new i("invalid huffman sequence")}}function C(e){var t=0;while(e>0)t=t<<1|S(),e--;return t}function P(e){if(1===e)return 1===S()?1:-1;var t=C(e);return t>=1<>4;if(0!==s){i+=l;var c=e[i];t.blockData[r+c]=P(s),i++}else{if(l<15)break;i+=16}}}function E(e,t){var r=A(e.huffmanTableDC),n=0===r?0:P(r)<0)I--;else{var n=d,a=h;while(n<=a){var i=A(t.huffmanTableAC),o=15&i,s=i>>4;if(0!==o){n+=s;var l=e[n];t.blockData[r+l]=P(o)*(1<>4,0===n)l<15?(I=C(l)+(1<=65488&&Q<=65495))break;r+=2}return G=_(t,r),G&&G.invalid&&((0,n.warn)("decodeScan - unexpected Scan data, current marker is: "+G.invalid),r=G.offset),r-w}function b(e,n,a){var o,s,p,g,v,m,b,y,w,_,k,x,S,A,C,P,T,E=e.quantizationTable,R=e.blockData;if(!E)throw new i("missing required Quantization Table.");for(var I=0;I<64;I+=8)w=R[n+I],_=R[n+I+1],k=R[n+I+2],x=R[n+I+3],S=R[n+I+4],A=R[n+I+5],C=R[n+I+6],P=R[n+I+7],w*=E[I],0!==(_|k|x|S|A|C|P)?(_*=E[I+1],k*=E[I+2],x*=E[I+3],S*=E[I+4],A*=E[I+5],C*=E[I+6],P*=E[I+7],o=h*w+128>>8,s=h*S+128>>8,p=k,g=C,v=f*(_-P)+128>>8,y=f*(_+P)+128>>8,m=x<<4,b=A<<4,o=o+s+1>>1,s=o-s,T=p*d+g*u+128>>8,p=p*u-g*d+128>>8,g=T,v=v+b+1>>1,b=v-b,y=y+m+1>>1,m=y-m,o=o+g+1>>1,g=o-g,s=s+p+1>>1,p=s-p,T=v*c+y*l+2048>>12,v=v*l-y*c+2048>>12,y=T,T=m*r+b*t+2048>>12,m=m*t-b*r+2048>>12,b=T,a[I]=o+y,a[I+7]=o-y,a[I+1]=s+b,a[I+6]=s-b,a[I+2]=p+m,a[I+5]=p-m,a[I+3]=g+v,a[I+4]=g-v):(T=h*w+512>>10,a[I]=T,a[I+1]=T,a[I+2]=T,a[I+3]=T,a[I+4]=T,a[I+5]=T,a[I+6]=T,a[I+7]=T);for(var O=0;O<8;++O)w=a[O],_=a[O+8],k=a[O+16],x=a[O+24],S=a[O+32],A=a[O+40],C=a[O+48],P=a[O+56],0!==(_|k|x|S|A|C|P)?(o=h*w+2048>>12,s=h*S+2048>>12,p=k,g=C,v=f*(_-P)+2048>>12,y=f*(_+P)+2048>>12,m=x,b=A,o=4112+(o+s+1>>1),s=o-s,T=p*d+g*u+2048>>12,p=p*u-g*d+2048>>12,g=T,v=v+b+1>>1,b=v-b,y=y+m+1>>1,m=y-m,o=o+g+1>>1,g=o-g,s=s+p+1>>1,p=s-p,T=v*c+y*l+2048>>12,v=v*l-y*c+2048>>12,y=T,T=m*r+b*t+2048>>12,m=m*t-b*r+2048>>12,b=T,w=o+y,P=o-y,_=s+b,C=s-b,k=p+m,A=p-m,x=g+v,S=g-v,w<16?w=0:w>=4080?w=255:w>>=4,_<16?_=0:_>=4080?_=255:_>>=4,k<16?k=0:k>=4080?k=255:k>>=4,x<16?x=0:x>=4080?x=255:x>>=4,S<16?S=0:S>=4080?S=255:S>>=4,A<16?A=0:A>=4080?A=255:A>>=4,C<16?C=0:C>=4080?C=255:C>>=4,P<16?P=0:P>=4080?P=255:P>>=4,R[n+O]=w,R[n+O+8]=_,R[n+O+16]=k,R[n+O+24]=x,R[n+O+32]=S,R[n+O+40]=A,R[n+O+48]=C,R[n+O+56]=P):(T=h*w+8192>>14,T=T<-2040?0:T>=2024?255:T+2056>>4,R[n+O]=T,R[n+O+8]=T,R[n+O+16]=T,R[n+O+24]=T,R[n+O+32]=T,R[n+O+40]=T,R[n+O+48]=T,R[n+O+56]=T)}function w(e,t){for(var r=t.blocksPerLine,n=t.blocksPerColumn,a=new Int16Array(64),i=0;i2&&void 0!==arguments[2]?arguments[2]:t,n=e.length-1,i=r=n)return null;var o=(0,a.readUint16)(e,t);if(o>=65472&&o<=65534)return{invalid:null,marker:o,offset:t};var s=(0,a.readUint16)(e,i);while(!(s>=65472&&s<=65534)){if(++i>=n)return null;s=(0,a.readUint16)(e,i)}return{invalid:o.toString(16),marker:s,offset:i}}return p.prototype={parse:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=r.dnlScanLines,c=void 0===l?null:l;function u(){var e=(0,a.readUint16)(t,p);p+=2;var r=p+e-2,i=_(t,r,p);i&&i.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+i.invalid),r=i.offset);var o=t.subarray(p,r);return p+=o.length,o}function d(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),n=0;n>4===0)for(P=0;P<64;P++)I=e[P],F[I]=t[p++];else{if(L>>4!==1)throw new i("DQT - invalid table spec");for(P=0;P<64;P++)I=e[P],F[I]=(0,a.readUint16)(t,p),p+=2}k[15&L]=F}break;case 65472:case 65473:case 65474:if(h)throw new i("Only single frame JPEGs supported");p+=2,h={},h.extended=65473===A,h.progressive=65474===A,h.precision=t[p++];var M=(0,a.readUint16)(t,p);p+=2,h.scanLines=c||M,h.samplesPerLine=(0,a.readUint16)(t,p),p+=2,h.components=[],h.componentIds={};var D,N=t[p++],B=0,U=0;for(C=0;C>4,q=15&t[p+1];B>4===0?S:x)[15&W]=g(H,Y)}break;case 65501:p+=2,f=(0,a.readUint16)(t,p),p+=2;break;case 65498:var X=1===++y&&!c;p+=2;var K,Z=t[p++],J=[];for(C=0;C>4],K.huffmanTableAC=x[15&$],J.push(K)}var ee=t[p++],te=t[p++],re=t[p++];try{var ne=m(t,p,h,J,f,ee,te,re>>4,15&re,X);p+=ne}catch(oe){if(oe instanceof o)return(0,n.warn)("".concat(oe.message," -- attempting to re-parse the JPEG image.")),this.parse(t,{dnlScanLines:oe.scanLines});if(oe instanceof s){(0,n.warn)("".concat(oe.message," -- ignoring the rest of the image data."));break e}throw oe}break;case 65500:p+=4;break;case 65535:255!==t[p]&&p--;break;default:var ae=_(t,p-2,p-3);if(ae&&ae.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+ae.invalid),p=ae.offset;break}if(p>=t.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new i("JpegImage.parse - unknown marker: "+A.toString(16))}A=(0,a.readUint16)(t,p),p+=2}for(this.width=h.samplesPerLine,this.height=h.scanLines,this.jfif=v,this.adobe=b,this.components=[],C=0;C2&&void 0!==arguments[2]&&arguments[2],g=this.width/e,v=this.height/t,m=0,b=this.components.length,y=e*t*b,w=new Uint8ClampedArray(y),_=new Uint32Array(e),k=4294967288;for(l=0;l>8)+x[u+1];return w},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform:1===this._colorTransform},_convertYccToRgb:function(e){for(var t,r,n,a=0,i=e.length;a4)throw new i("Unsupported color mode");var l=this._getLinearizedBlockData(t,r,s);if(1===this.numComponents&&a){for(var c=l.length,u=new Uint8ClampedArray(3*c),d=0,h=0;h0?Math.min(n.xcb,a.PPx-1):Math.min(n.xcb,a.PPx),a.ycb_=r>0?Math.min(n.ycb,a.PPy-1):Math.min(n.ycb,a.PPy),a}function c(e,t,r){var n=1<t.trx0?Math.ceil(t.trx1/n)-Math.floor(t.trx0/n):0,c=t.try1>t.try0?Math.ceil(t.try1/a)-Math.floor(t.try0/a):0,u=l*c;t.precinctParameters={precinctWidth:n,precinctHeight:a,numprecinctswide:l,numprecinctshigh:c,numprecincts:u,precinctWidthInSubband:o,precinctHeightInSubband:s}}function u(e,t,r){var n,a,i,o,s=r.xcb_,l=r.ycb_,c=1<>s,h=t.tby0>>l,f=t.tbx1+c-1>>s,p=t.tby1+u-1>>l,g=t.resolution.precinctParameters,v=[],m=[];for(a=h;aw.cbxMax&&(w.cbxMax=n),aw.cbyMax&&(w.cbyMax=a)):m[o]=w={cbxMin:n,cbyMin:a,cbxMax:n,cbyMax:a},i.precinct=w}}t.codeblockParameters={codeblockWidth:s,codeblockHeight:l,numcodeblockwide:f-d+1,numcodeblockhigh:p-h+1},t.codeblocks=v,t.precincts=m}function d(e,t,r){for(var n=[],a=e.subbands,i=0,o=a.length;ie.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;fe.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],r=t.precinctParameters.numprecincts;fe.codingStyleParameters.decompositionLevelsCount)){var i=e.resolutions[r],s=i.precinctParameters.numprecincts;if(!(a>=s)){for(;t=0;--v){var m=l.resolutions[v],b=g*m.precinctParameters.precinctWidth,y=g*m.precinctParameters.precinctHeight;d=Math.min(d,b),h=Math.min(h,y),f=Math.max(f,m.precinctParameters.numprecinctswide),p=Math.max(p,m.precinctParameters.numprecinctshigh),u[v]={width:b,height:y},g<<=1}r=Math.min(r,d),n=Math.min(n,h),a=Math.max(a,f),i=Math.max(i,p),o[s]={resolutions:u,minWidth:d,minHeight:h,maxNumWide:f,maxNumHigh:p}}return{components:o,minWidth:r,minHeight:n,maxNumWide:a,maxNumHigh:i}}function y(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],a=t.Csiz,i=0;i>>s&(1<0){var q=k.shift();w=q.codeblock,void 0===w["data"]&&(w.data=[]),w.data.push({data:t,start:r+o,end:r+o+q.dataLength,codingpasses:q.codingpasses}),o+=q.dataLength}}}return o}function _(e,t,r,n,a,o,s,l){for(var c=n.tbx0,u=n.tby0,d=n.tbx1-n.tbx0,h=n.codeblocks,f="H"===n.type.charAt(0)?1:0,p="H"===n.type.charAt(1)?t:0,g=0,v=h.length;g=o?F:F*(1<0?1-m:0));var P=b.subbands[x],T=e[P.type],I=f?1:Math.pow(2,h+T-C)*(1+A/2048),O=u+C-1;_(k,y,w,P,I,O,f,d)}g.push({width:y,height:w,items:k})}var L=p.calculate(g,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:L.width,height:L.height,items:L.items}}function x(e){for(var t=e.SIZ,r=e.components,n=t.Csiz,a=[],i=0,o=e.tiles.length;i>2);b[w++]=E+v>>u,b[w++]=E>>u,b[w++]=E+g>>u}else for(h=0;h>u,b[w++]=p-.34413*g-.71414*v>>u,b[w++]=p+1.772*g>>u;if(_)for(h=0,w=3;h>u}else for(s=0;s>u,w+=n}a.push(y)}return a}function S(e,t){for(var r=e.SIZ,n=r.Csiz,a=e.tiles[t],i=0;i>24&255,c>>16&255,c>>8&255,255&c);(0,n.warn)("Unsupported header type "+c+" ("+p+")");break}d&&(r+=u)}}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){var t=e.getByte();while(t>=0){var r=t;t=e.getByte();var n=r<<8|t;if(65361===n){e.skip(4);var a=e.getInt32()>>>0,i=e.getInt32()>>>0,s=e.getInt32()>>>0,l=e.getInt32()>>>0;e.skip(16);var c=e.getUint16();return this.width=a-s,this.height=i-l,this.componentsCount=c,void(this.bitsPerComponent=8)}}throw new o("No size marker found in JPX stream")},parseCodestream:function(e,t,i){var l={},c=!1;try{var u=t;while(u+1>5,p=[];while(h>3,E.mu=0):(E.epsilon=e[h]>>3,E.mu=(7&e[h])<<8|e[h+1],h+=2),p.push(E)}T.SPqcds=p,l.mainHeader?l.QCD=T:(l.currentTile.QCD=T,l.currentTile.QCC=[]);break;case 65373:b=(0,a.readUint16)(e,u);var R,I={};switch(h=u+2,l.SIZ.Csiz<257?R=e[h++]:(R=(0,a.readUint16)(e,h),h+=2),f=e[h++],31&f){case 0:g=8,v=!0;break;case 1:g=16,v=!1;break;case 2:g=16,v=!0;break;default:throw new Error("Invalid SQcd value "+f)}I.noQuantization=8===g,I.scalarExpounded=v,I.guardBits=f>>5,p=[];while(h>3,E.mu=0):(E.epsilon=e[h]>>3,E.mu=(7&e[h])<<8|e[h+1],h+=2),p.push(E);I.SPqcds=p,l.mainHeader?l.QCC[R]=I:l.currentTile.QCC[R]=I;break;case 65362:b=(0,a.readUint16)(e,u);var O={};h=u+2;var L=e[h++];O.entropyCoderWithCustomPrecincts=!!(1&L),O.sopMarkerUsed=!!(2&L),O.ephMarkerUsed=!!(4&L),O.progressionOrder=e[h++],O.layersCount=(0,a.readUint16)(e,h),h+=2,O.multipleComponentTransform=e[h++],O.decompositionLevelsCount=e[h++],O.xcb=2+(15&e[h++]),O.ycb=2+(15&e[h++]);var F=e[h++];if(O.selectiveArithmeticCodingBypass=!!(1&F),O.resetContextProbabilities=!!(2&F),O.terminationOnEachCodingPass=!!(4&F),O.verticallyStripe=!!(8&F),O.predictableTermination=!!(16&F),O.segmentationSymbolUsed=!!(32&F),O.reversibleTransformation=e[h++],O.entropyCoderWithCustomPrecincts){var M=[];while(h>4})}O.precinctsSizes=M}var N=[];if(O.selectiveArithmeticCodingBypass&&N.push("selectiveArithmeticCodingBypass"),O.resetContextProbabilities&&N.push("resetContextProbabilities"),O.terminationOnEachCodingPass&&N.push("terminationOnEachCodingPass"),O.verticallyStripe&&N.push("verticallyStripe"),O.predictableTermination&&N.push("predictableTermination"),N.length>0)throw c=!0,new Error("Unsupported COD options ("+N.join(", ")+")");l.mainHeader?l.COD=O:(l.currentTile.COD=O,l.currentTile.COC=[]);break;case 65424:b=(0,a.readUint16)(e,u),m={},m.index=(0,a.readUint16)(e,u+2),m.length=(0,a.readUint32)(e,u+4),m.dataEnd=m.length+u-2,m.partIndex=e[u+8],m.partsCount=e[u+9],l.mainHeader=!1,0===m.partIndex&&(m.COD=l.COD,m.COC=l.COC.slice(0),m.QCD=l.QCD,m.QCC=l.QCC.slice(0)),l.currentTile=m;break;case 65427:m=l.currentTile,0===m.partIndex&&(S(l,m.index),y(l)),b=m.dataEnd-u,w(l,e,u,b);break;case 65365:case 65367:case 65368:case 65380:b=(0,a.readUint16)(e,u);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+d.toString(16))}u+=b}}catch(B){if(c||this.failOnCorruptedImage)throw new o(B.message);(0,n.warn)("JPX: Trying to recover from: "+B.message)}this.tiles=x(l),this.width=l.SIZ.Xsiz-l.SIZ.XOsiz,this.height=l.SIZ.Ysiz-l.SIZ.YOsiz,this.componentsCount=l.SIZ.Csiz}};var A=function(){function e(e,t){var r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var n=0;n>=1,t>>=1,n++}n--,r=this.levels[n],r.items[r.index]=a,this.currentLevel=n,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return e--,e<0?(this.value=r,!1):(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),C=function(){function e(e,t,r){var n=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;ir)return this.currentLevel=n,this.propagateValues(),!1;e>>=1,t>>=1,n++}return this.currentLevel=n-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];while(--e>=0)t=this.levels[e],t.items[t.index]=r},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,e--,!(e<0)&&(this.currentLevel=e,t=this.levels[e],t.items[t.index]=r,!0)}},e}(),P=function(){var e=17,t=18,r=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),n=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),a=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function i(e,t,i,o,s){var l;this.width=e,this.height=t,l="HH"===i?a:"HL"===i?n:r,this.contextLabelTable=l;var c,u=e*t;this.neighborsSignificance=new Uint8Array(u),this.coefficentsSign=new Uint8Array(u),c=s>14?new Uint32Array(u):s>6?new Uint16Array(u):new Uint8Array(u),this.coefficentsMagnitude=c,this.processingFlags=new Uint8Array(u);var d=new Uint8Array(u);if(0!==o)for(var h=0;h0,l=t+10&&(n=r-i,s&&(a[n-1]+=16),l&&(a[n+1]+=16),a[n]+=4),e+1=r)break;if(o[g]&=u,!n[g]&&i[g]){var b=l[i[g]],y=e.readBit(s,b);if(y){var w=this.decodeSignBit(m,p,g);a[g]=w,n[g]=1,this.setNeighborsSignificance(m,p,g),o[g]|=h}c[g]++,o[g]|=d}}},decodeSignBit:function(e,t,r){var n,a,i,o,s,l,c=this.width,u=this.height,d=this.coefficentsMagnitude,h=this.coefficentsSign;o=t>0&&0!==d[r-1],t+10&&0!==d[r-c],e+1=0?(s=9+n,l=this.decoder.readBit(this.contexts,s)):(s=9-n,l=1^this.decoder.readBit(this.contexts,s)),l},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,r=this.width,n=this.height,a=this.coefficentsMagnitude,i=this.neighborsSignificance,o=this.contexts,s=this.bitsDecoded,l=this.processingFlags,c=1,u=2,d=r*n,h=4*r,f=0;f>1;t|=0;var l=-1.586134342059924,c=-.052980118572961,u=.882911075530934,d=.443506852043971,h=1.230174104914001,f=1/h;for(n=t-3,a=s+4;a--;n+=2)e[n]*=f;for(n=t-2,i=d*e[n-1],a=s+3;a--;n+=2){if(o=d*e[n+1],e[n]=h*e[n]-i-o,!a--)break;n+=2,i=d*e[n+1],e[n]=h*e[n]-i-o}for(n=t-1,i=u*e[n-1],a=s+2;a--;n+=2){if(o=u*e[n+1],e[n]-=i+o,!a--)break;n+=2,i=u*e[n+1],e[n]-=i+o}for(n=t,i=c*e[n-1],a=s+1;a--;n+=2){if(o=c*e[n+1],e[n]-=i+o,!a--)break;n+=2,i=c*e[n+1],e[n]-=i+o}if(0!==s)for(n=t+1,i=l*e[n-1],a=s;a--;n+=2){if(o=l*e[n+1],e[n]-=i+o,!a--)break;n+=2,i=l*e[n+1],e[n]-=i+o}},e}(),R=function(){function e(){T.call(this)}return e.prototype=Object.create(T.prototype),e.prototype.filter=function(e,t,r){var n,a,i=r>>1;for(t|=0,n=t,a=i+1;a--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,a=i;a--;n+=2)e[n]+=e[n-1]+e[n+1]>>1},e}();return t}();t.JpxImage=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var n=r(2),a=r(4),i=r(11),o=function(){function e(e){this.a=0,this.b=0;var t,r,n=new Uint8Array(256),a=0,i=e.length;for(t=0;t<256;++t)n[t]=t;for(t=0;t<256;++t)r=n[t],a=a+r+e[t%i]&255,n[t]=n[a],n[a]=r;this.s=n}return e.prototype={encryptBlock:function(e){var t,r,n,a=e.length,i=this.a,o=this.b,s=this.s,l=new Uint8Array(a);for(t=0;t>5&255,f[i++]=a>>13&255,f[i++]=a>>21&255,f[i++]=a>>>29&255,f[i++]=0,f[i++]=0,f[i++]=0;var p=new Int32Array(16);for(i=0;i>>32-x)|0,m=_}l=l+m|0,c=c+b|0,u=u+y|0,d=d+w|0}return new Uint8Array([255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255,255&d,d>>8&255,d>>16&255,d>>>24&255])}return r}();t.calculateMD5=s;var l=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<>>32-e,this.low=this.low<>>e|r<<32-e,this.high=r>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),c=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(t){return e(t,2)^e(t,13)^e(t,22)}function a(t){return e(t,6)^e(t,11)^e(t,25)}function i(t){return e(t,7)^e(t,18)^t>>>3}function o(t){return e(t,17)^e(t,19)^t>>>10}var s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function l(e,l,c){var u,d,h,f=1779033703,p=3144134277,g=1013904242,v=2773480762,m=1359893119,b=2600822924,y=528734635,w=1541459225,_=64*Math.ceil((c+9)/64),k=new Uint8Array(_);for(u=0;u>>29&255,k[u++]=c>>21&255,k[u++]=c>>13&255,k[u++]=c>>5&255,k[u++]=c<<3&255;var x=new Uint32Array(64);for(u=0;u<_;){for(d=0;d<16;++d)x[d]=k[u]<<24|k[u+1]<<16|k[u+2]<<8|k[u+3],u+=4;for(d=16;d<64;++d)x[d]=o(x[d-2])+x[d-7]+i(x[d-15])+x[d-16]|0;var S,A,C=f,P=p,T=g,E=v,R=m,I=b,O=y,L=w;for(d=0;d<64;++d)S=L+a(R)+t(R,I,O)+s[d]+x[d],A=n(C)+r(C,P,T),L=O,O=I,I=R,R=E+S|0,E=T,T=P,P=C,C=S+A|0;f=f+C|0,p=p+P|0,g=g+T|0,v=v+E|0,m=m+R|0,b=b+I|0,y=y+O|0,w=w+L|0}return new Uint8Array([f>>24&255,f>>16&255,f>>8&255,255&f,p>>24&255,p>>16&255,p>>8&255,255&p,g>>24&255,g>>16&255,g>>8&255,255&g,v>>24&255,v>>16&255,v>>8&255,255&v,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b,y>>24&255,y>>16&255,y>>8&255,255&y,w>>24&255,w>>16&255,w>>8&255,255&w])}return l}();t.calculateSHA256=c;var u=function(){function e(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.not(),a.and(n),e.xor(a)}function t(e,t,r,n,a){e.assign(t),e.and(r),a.assign(t),a.and(n),e.xor(a),a.assign(r),a.and(n),e.xor(a)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function a(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function i(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var o=[new l(1116352408,3609767458),new l(1899447441,602891725),new l(3049323471,3964484399),new l(3921009573,2173295548),new l(961987163,4081628472),new l(1508970993,3053834265),new l(2453635748,2937671579),new l(2870763221,3664609560),new l(3624381080,2734883394),new l(310598401,1164996542),new l(607225278,1323610764),new l(1426881987,3590304994),new l(1925078388,4068182383),new l(2162078206,991336113),new l(2614888103,633803317),new l(3248222580,3479774868),new l(3835390401,2666613458),new l(4022224774,944711139),new l(264347078,2341262773),new l(604807628,2007800933),new l(770255983,1495990901),new l(1249150122,1856431235),new l(1555081692,3175218132),new l(1996064986,2198950837),new l(2554220882,3999719339),new l(2821834349,766784016),new l(2952996808,2566594879),new l(3210313671,3203337956),new l(3336571891,1034457026),new l(3584528711,2466948901),new l(113926993,3758326383),new l(338241895,168717936),new l(666307205,1188179964),new l(773529912,1546045734),new l(1294757372,1522805485),new l(1396182291,2643833823),new l(1695183700,2343527390),new l(1986661051,1014477480),new l(2177026350,1206759142),new l(2456956037,344077627),new l(2730485921,1290863460),new l(2820302411,3158454273),new l(3259730800,3505952657),new l(3345764771,106217008),new l(3516065817,3606008344),new l(3600352804,1432725776),new l(4094571909,1467031594),new l(275423344,851169720),new l(430227734,3100823752),new l(506948616,1363258195),new l(659060556,3750685593),new l(883997877,3785050280),new l(958139571,3318307427),new l(1322822218,3812723403),new l(1537002063,2003034995),new l(1747873779,3602036899),new l(1955562222,1575990012),new l(2024104815,1125592928),new l(2227730452,2716904306),new l(2361852424,442776044),new l(2428436474,593698344),new l(2756734187,3733110249),new l(3204031479,2999351573),new l(3329325298,3815920427),new l(3391569614,3928383900),new l(3515267271,566280711),new l(3940187606,3454069534),new l(4118630271,4000239992),new l(116418474,1914138554),new l(174292421,2731055270),new l(289380356,3203993006),new l(460393269,320620315),new l(685471733,587496836),new l(852142971,1086792851),new l(1017036298,365543100),new l(1126000580,2618297676),new l(1288033470,3409855158),new l(1501505948,4234509866),new l(1607167915,987167468),new l(1816402316,1246189591)];function s(s,c,u,d){var h,f,p,g,v,m,b,y;d=!!d,d?(h=new l(3418070365,3238371032),f=new l(1654270250,914150663),p=new l(2438529370,812702999),g=new l(355462360,4144912697),v=new l(1731405415,4290775857),m=new l(2394180231,1750603025),b=new l(3675008525,1694076839),y=new l(1203062813,3204075428)):(h=new l(1779033703,4089235720),f=new l(3144134277,2227873595),p=new l(1013904242,4271175723),g=new l(2773480762,1595750129),v=new l(1359893119,2917565137),m=new l(2600822924,725511199),b=new l(528734635,4215389547),y=new l(1541459225,327033209));var w,_,k,x=128*Math.ceil((u+17)/128),S=new Uint8Array(x);for(w=0;w>>29&255,S[w++]=u>>21&255,S[w++]=u>>13&255,S[w++]=u>>5&255,S[w++]=u<<3&255;var A=new Array(80);for(w=0;w<80;w++)A[w]=new l(0,0);var C,P,T=new l(0,0),E=new l(0,0),R=new l(0,0),I=new l(0,0),O=new l(0,0),L=new l(0,0),F=new l(0,0),M=new l(0,0),D=new l(0,0),N=new l(0,0),B=new l(0,0),U=new l(0,0);for(w=0;w=1;--l){r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var c=0;c<16;++c)i[c]=this._inv_s[i[c]];for(var u=0,d=16*l;u<16;++u,++d)i[u]^=t[d];for(var h=0;h<16;h+=4){var f=this._mix[i[h]],p=this._mix[i[h+1]],g=this._mix[i[h+2]],v=this._mix[i[h+3]];r=f^p>>>8^p<<24^g>>>16^g<<16^v>>>24^v<<8,i[h]=r>>>24&255,i[h+1]=r>>16&255,i[h+2]=r>>8&255,i[h+3]=255&r}}r=i[13],i[13]=i[9],i[9]=i[5],i[5]=i[1],i[1]=r,r=i[14],n=i[10],i[14]=i[6],i[10]=i[2],i[6]=r,i[2]=n,r=i[15],n=i[11],a=i[7],i[15]=i[3],i[11]=r,i[7]=n,i[3]=a;for(var m=0;m<16;++m)i[m]=this._inv_s[i[m]],i[m]^=t[m];return i}},{key:"_encrypt",value:function(e,t){var r,n,a,i=this._s,o=new Uint8Array(16);o.set(e);for(var s=0;s<16;++s)o[s]^=t[s];for(var l=1;l=p;--f)if(d[f]!==h){h=0;break}u-=h,i[i.length-1]=d.subarray(0,16-h)}}for(var g=new Uint8Array(u),v=0,m=0,b=i.length;v2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,a=this.buffer,i=this.bufferPosition;if(r)this.iv=r;else{for(var o=0;i<16&&o=256&&(l=255&(27^l)));for(var d=0;d<4;++d)n[c]=a^=n[c-32],c++,n[c]=i^=n[c-32],c++,n[c]=o^=n[c-32],c++,n[c]=s^=n[c-32],c++}return n}}]),r}(m);t.AES256Cipher=y;var w=function(){function e(e,t){if(e.length!==t.length)return!1;for(var r=0;ro-32){var s=t.length+a.length+n.length,l=new Uint8Array(64*s),h=e(t,a);h=e(h,n);for(var f=0,p=0;f<64;f++,p+=s)l.set(h,p);var g=new b(a.subarray(0,16));i=g.encrypt(l,a.subarray(16,32));for(var v=0,m=0;m<16;m++)v*=1,v%=3,v+=(i[m]>>>0)%3,v%=3;0===v?a=c(i,0,i.length):1===v?a=d(i,0,i.length):2===v&&(a=u(i,0,i.length)),o++}return a.subarray(0,32)}function r(){}function n(e,t){if(e.length!==t.length)return!1;for(var r=0;r>8&255,p[g++]=i>>16&255,p[g++]=i>>>24&255,d=0,h=t.length;d=4&&!u&&(p[g++]=255,p[g++]=255,p[g++]=255,p[g++]=255);var v=s(p,0,g),m=c>>3;if(l>=3)for(d=0;d<50;++d)v=s(v,0,m);var b,y,w=v.subarray(0,m);if(l>=3){for(g=0;g<32;++g)p[g]=e[g];for(d=0,h=t.length;d>3;if(n>=3)for(i=0;i<50;++i)f=s(f,0,f.length);if(n>=3){h=r;var g,v=new Uint8Array(p);for(i=19;i>=0;i--){for(g=0;g=4){var O=e.get("CF");(0,a.isDict)(O)&&(O.suppressEncryption=!0),this.cf=O,this.stmf=e.get("StmF")||l,this.strf=e.get("StrF")||l,this.eff=e.get("EFF")||this.stmf}}function u(e,t,r,n){var a,i,o=new Uint8Array(r.length+9);for(a=0,i=r.length;a>8&255,o[a++]=e>>16&255,o[a++]=255&t,o[a++]=t>>8&255,n&&(o[a++]=115,o[a++]=65,o[a++]=108,o[a++]=84);var l=s(o,0,a);return l.subarray(0,Math.min(r.length+5,16))}function d(e,t,r,i,s){if(!(0,a.isName)(t))throw new n.FormatError("Invalid crypt filter name.");var l,c=e.get(t.name);if(null!==c&&void 0!==c&&(l=c.get("CFM")),!l||"None"===l.name)return function(){return new h};if("V2"===l.name)return function(){return new o(u(r,i,s,!1))};if("AESV2"===l.name)return function(){return new b(u(r,i,s,!0))};if("AESV3"===l.name)return function(){return new y(s)};throw new n.FormatError("Unknown crypto method")}return c.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new k(d(this.cf,this.stmf,e,t,this.encryptionKey),d(this.cf,this.strf,e,t,this.encryptionKey));var r=u(e,t,this.encryptionKey,!1),n=function(){return new o(r)};return new k(n,n)}},c}();t.CipherTransformFactory=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var n=r(2),a=r(4);function i(e,t,r,n,a,i,o){var s=3;o=1!==o?0:o;for(var l,c=r/a,u=n/i,d=0,h=new Uint16Array(a),f=r*s,p=0;ph&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var p=s<=8?new Uint8Array(h):new Uint16Array(h),g=0;g2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),(0,a.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,a.isDict)(r)){var o=r.get("ColorSpace");if((0,a.isDict)(o)){var s=o.get(e.name);if(s){if((0,a.isName)(s))return this.parseToIR(s,t,r,i);e=s;break}}}throw new n.FormatError("unrecognized colorspace ".concat(e.name))}if(Array.isArray(e)){var l,c,u,d,h,f,p=t.fetchIfRef(e[0]).name;switch(p){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return c=t.fetchIfRef(e[1]),d=c.getArray("WhitePoint"),h=c.getArray("BlackPoint"),f=c.get("Gamma"),["CalGrayCS",d,h,f];case"CalRGB":c=t.fetchIfRef(e[1]),d=c.getArray("WhitePoint"),h=c.getArray("BlackPoint"),f=c.getArray("Gamma");var g=c.getArray("Matrix");return["CalRGBCS",d,h,f,g];case"ICCBased":var v=t.fetchIfRef(e[1]),m=v.dict;if(l=m.get("N"),u=m.get("Alternate"),u){var b=this.parseToIR(u,t,r,i),y=this.fromIR(b,i);if(y.numComps===l)return b;(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===l)return"DeviceGrayCS";if(3===l)return"DeviceRgbCS";if(4===l)return"DeviceCmykCS";break;case"Pattern":var w=e[1]||null;return w&&(w=this.parseToIR(w,t,r,i)),["PatternCS",w];case"Indexed":case"I":var _=this.parseToIR(e[1],t,r,i),k=t.fetchIfRef(e[2])+1,x=t.fetchIfRef(e[3]);return(0,a.isStream)(x)&&(x=x.getBytes()),["IndexedCS",_,k,x];case"Separation":case"DeviceN":var S=t.fetchIfRef(e[1]);l=Array.isArray(S)?S.length:1,u=this.parseToIR(e[2],t,r,i);var A=i.create(t.fetchIfRef(e[3]));return["AlternateCS",l,u,A];case"Lab":c=t.fetchIfRef(e[1]),d=c.getArray("WhitePoint"),h=c.getArray("BlackPoint");var C=c.getArray("Range");return["LabCS",d,h,C];default:throw new n.FormatError('unimplemented color space object "'.concat(p,'"'))}}throw new n.FormatError('unrecognized color space object: "'.concat(e,'"'))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,n.warn)("The decode map is not the correct length"),!0;for(var r=0,a=e.length;r8?Math.pow((e+16)/116,3):e*c}function w(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var n=y(0),a=n,i=y(e[0]),o=n,s=y(e[1]),l=n,c=y(e[2]),u=(1-a)/(1-i),d=1-u,h=(1-o)/(1-s),f=1-h,p=(1-l)/(1-c),g=1-p;r[0]=t[0]*u+d,r[1]=t[1]*h+f,r[2]=t[2]*p+g}function _(r,n,a){if(1===r[0]&&1===r[2])return a[0]=n[0],a[1]=n[1],void(a[2]=n[2]);var o=a;u(e,n,o);var s=i;d(r,o,s),u(t,s,a)}function k(r,n,a){var o=a;u(e,n,o);var s=i;h(r,o,s),u(t,s,a)}function x(e,t,n,i,o,c){var d=b(0,1,t[n]*c),h=b(0,1,t[n+1]*c),f=b(0,1,t[n+2]*c),p=Math.pow(d,e.GR),g=Math.pow(h,e.GG),v=Math.pow(f,e.GB),y=e.MXA*p+e.MXB*g+e.MXC*v,x=e.MYA*p+e.MYB*g+e.MYC*v,S=e.MZA*p+e.MZB*g+e.MZC*v,A=s;A[0]=y,A[1]=x,A[2]=S;var C=l;_(e.whitePoint,A,C);var P=s;w(e.blackPoint,C,P);var T=l;k(a,P,T);var E=s;u(r,T,E),i[o]=255*m(E[0]),i[o+1]=255*m(E[1]),i[o+2]=255*m(E[2])}var S=function(e){g(r,e);var t=v(r);function r(e,a,i,o){var s;if(p(this,r),s=t.call(this,"CalRGB",3),!e)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");a=a||new Float32Array(3),i=i||new Float32Array([1,1,1]),o=o||new Float32Array([1,0,0,0,1,0,0,0,1]);var l=e[0],c=e[1],u=e[2];s.whitePoint=e;var d=a[0],h=a[1],f=a[2];if(s.blackPoint=a,s.GR=i[0],s.GG=i[1],s.GB=i[2],s.MXA=o[0],s.MYA=o[1],s.MZA=o[2],s.MXB=o[3],s.MYB=o[4],s.MZB=o[5],s.MXC=o[6],s.MYC=o[7],s.MZC=o[8],l<0||u<0||1!==c)throw new n.FormatError("Invalid WhitePoint components for ".concat(s.name)+", no fallback available");return(d<0||h<0||f<0)&&((0,n.info)("Invalid BlackPoint for ".concat(s.name," [").concat(d,", ").concat(h,", ").concat(f,"], ")+"falling back to default."),s.blackPoint=new Float32Array(3)),(s.GR<0||s.GG<0||s.GB<0)&&((0,n.info)("Invalid Gamma [".concat(s.GR,", ").concat(s.GG,", ").concat(s.GB,"] for ")+"".concat(s.name,", falling back to default.")),s.GR=s.GG=s.GB=1),s}return f(r,[{key:"getRgbItem",value:function(e,t,r,n){x(this,e,t,r,n,1)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=1/((1<=6/29?e*e*e:108/841*(e-4/29),t}function t(e,t,r,n){return r+e*(n-r)/t}function r(r,n,a,i,o,s){var l=n[a],c=n[a+1],u=n[a+2];!1!==i&&(l=t(l,i,0,100),c=t(c,i,r.amin,r.amax),u=t(u,i,r.bmin,r.bmax)),c>r.amax?c=r.amax:cr.bmax?u=r.bmax:uo.amax||o.bmin>o.bmax)&&((0,n.info)("Invalid Range, falling back to defaults"),o.amin=-100,o.amax=100,o.bmin=-100,o.bmax=100),o}return f(a,[{key:"getRgbItem",value:function(e,t,n,a){r(this,e,t,!1,n,a)}},{key:"getRgbBuffer",value:function(e,t,n,a,i,o,s){for(var l=(1<0)return null;for(var n=[],a=0,i=r.length/8;at[2]||ct[3])return null;n[a].push({x:l,y:c})}}return n}function _(e,t,r){var a=n.Util.getAxialAlignedBoundingBox(t,r),i=m(a,4),o=i[0],s=i[1],l=i[2],c=i[3];if(o===l||s===c)return[1,0,0,1,e[0],e[1]];var u=(e[2]-e[0])/(l-o),d=(e[3]-e[1])/(c-s);return[u,0,0,d,e[0]-o*u,e[1]-s*d]}t.AnnotationFactory=y;var k=function(){function e(t){p(this,e);var r=t.dict;this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype}}return f(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,n.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,n.AnnotationFlag.PRINT)&&!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.HIDDEN)}},{key:"setContents",value:function(e){this.contents=(0,n.stringToPDFString)(e||"")}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,n.isString)(e)?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){Array.isArray(e)&&4===e.length?this.rectangle=n.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){var t=new Uint8ClampedArray(3);if(Array.isArray(e))switch(e.length){case 0:this.color=null;break;case 1:o.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:o.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:o.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t;break}else this.color=t}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new x,(0,i.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,i.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var n=e.getArray("Border");Array.isArray(n)&&n.length>=3&&(this.borderStyle.setHorizontalCornerRadius(n[0]),this.borderStyle.setVerticalCornerRadius(n[1]),this.borderStyle.setWidth(n[2],this.rectangle),4===n.length&&this.borderStyle.setDashArray(n[3]))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if((0,i.isDict)(t)){var r=t.get("N");if((0,i.isStream)(r))this.appearance=r;else if((0,i.isDict)(r)){var n=e.get("AS");(0,i.isName)(n)&&r.has(n.name)&&(this.appearance=r.get(n.name))}}}},{key:"loadResources",value:function(e){return this.appearance.dict.getAsync("Resources").then((function(t){if(t){var r=new a.ObjectLoader(t,e,t.xref);return r.load().then((function(){return t}))}}))}},{key:"getOperatorList",value:function(e,t,r){var a=this;if(!this.appearance)return Promise.resolve(new h.OperatorList);var i=this.data,o=this.appearance.dict,s=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),l=o.getArray("BBox")||[0,0,1,1],c=o.getArray("Matrix")||[1,0,0,1,0,0],u=_(i.rect,l,c);return s.then((function(r){var o=new h.OperatorList;return o.addOp(n.OPS.beginAnnotation,[i.rect,u,c]),e.getOperatorList({stream:a.appearance,task:t,resources:r,operatorList:o}).then((function(){return o.addOp(n.OPS.endAnnotation,[]),a.appearance.reset(),o}))}))}},{key:"viewable",get:function(){return 0===this.flags||this._isViewable(this.flags)}},{key:"printable",get:function(){return 0!==this.flags&&this._isPrintable(this.flags)}}]),e}();t.Annotation=k;var x=function(){function e(){p(this,e),this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}return f(e,[{key:"setWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,i.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){var r=(t[2]-t[0])/2,a=(t[3]-t[1])/2;r>0&&a>0&&(e>r||e>a)&&((0,n.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(e){if((0,i.isName)(e))switch(e.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE;break;default:break}}},{key:"setDashArray",value:function(e){if(Array.isArray(e)&&e.length>0){var t,r=!0,n=!0,a=d(e);try{for(a.s();!(t=a.n()).done;){var i=t.value,o=+i>=0;if(!o){r=!1;break}i>0&&(n=!1)}}catch(s){a.e(s)}finally{a.f()}r&&!n?this.dashArray=e:this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}]),e}();t.AnnotationBorderStyle=x;var S=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e);var o=e.dict;if(o.has("IRT")){var s=o.getRaw("IRT");a.data.inReplyTo=(0,i.isRef)(s)?s.toString():null;var l=o.get("RT");a.data.replyType=(0,i.isName)(l)?l.name:n.AnnotationReplyType.REPLY}if(a.data.replyType===n.AnnotationReplyType.GROUP){var c=o.get("IRT");a.data.title=(0,n.stringToPDFString)(c.get("T")||""),a.setContents(c.get("Contents")),a.data.contents=a.contents,c.has("CreationDate")?(a.setCreationDate(c.get("CreationDate")),a.data.creationDate=a.creationDate):a.data.creationDate=null,c.has("M")?(a.setModificationDate(c.get("M")),a.data.modificationDate=a.modificationDate):a.data.modificationDate=null,a.data.hasPopup=c.has("Popup"),c.has("C")?(a.setColor(c.getArray("C")),a.data.color=a.color):a.data.color=null}else a.data.title=(0,n.stringToPDFString)(o.get("T")||""),a.setCreationDate(o.get("CreationDate")),a.data.creationDate=a.creationDate,a.data.hasPopup=o.has("Popup"),o.has("C")||(a.data.color=null);return a}return f(r,[{key:"setCreationDate",value:function(e){this.creationDate=(0,n.isString)(e)?e:null}}]),r}(k);t.MarkupAnnotation=S;var A=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e);var o=e.dict,s=a.data;s.annotationType=n.AnnotationType.WIDGET,s.fieldName=a._constructFieldName(o),s.fieldValue=(0,u.getInheritableProperty)({dict:o,key:"V",getArray:!0}),s.alternativeText=(0,n.stringToPDFString)(o.get("TU")||""),s.defaultAppearance=(0,u.getInheritableProperty)({dict:o,key:"DA"})||"";var l=(0,u.getInheritableProperty)({dict:o,key:"FT"});return s.fieldType=(0,i.isName)(l)?l.name:null,a.fieldResources=(0,u.getInheritableProperty)({dict:o,key:"DR"})||i.Dict.empty,s.fieldFlags=(0,u.getInheritableProperty)({dict:o,key:"Ff"}),(!Number.isInteger(s.fieldFlags)||s.fieldFlags<0)&&(s.fieldFlags=0),s.readOnly=a.hasFieldFlag(n.AnnotationFieldFlag.READONLY),"Sig"===s.fieldType&&(s.fieldValue=null,a.setFlags(n.AnnotationFlag.HIDDEN)),a}return f(r,[{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,n.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,n.stringToPDFString)(e.get("T")));var r=e;while(r.has("Parent")){if(r=r.get("Parent"),!(0,i.isDict)(r))break;r.has("T")&&t.unshift((0,n.stringToPDFString)(r.get("T")))}return t.join(".")}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getOperatorList",value:function(e,t,n){return n?Promise.resolve(new h.OperatorList):l(c(r.prototype),"getOperatorList",this).call(this,e,t,n)}}]),r}(k),C=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e);var i=e.dict;a.data.fieldValue=(0,n.stringToPDFString)(a.data.fieldValue||"");var o=(0,u.getInheritableProperty)({dict:i,key:"Q"});(!Number.isInteger(o)||o<0||o>2)&&(o=null),a.data.textAlignment=o;var s=(0,u.getInheritableProperty)({dict:i,key:"MaxLen"});return(!Number.isInteger(s)||s<0)&&(s=null),a.data.maxLen=s,a.data.multiLine=a.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE),a.data.comb=a.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!a.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!a.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!a.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&null!==a.data.maxLen,a}return f(r,[{key:"getOperatorList",value:function(e,t,a){if(a||this.appearance)return l(c(r.prototype),"getOperatorList",this).call(this,e,t,a);var i=new h.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(i);var o=new b.Stream((0,n.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:o,task:t,resources:this.fieldResources,operatorList:i}).then((function(){return i}))}}]),r}(A),P=function(e){g(r,e);var t=v(r);function r(e){var a;return p(this,r),a=t.call(this,e),a.data.checkBox=!a.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!a.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),a.data.radioButton=a.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!a.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),a.data.pushButton=a.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),a.data.checkBox?a._processCheckBox(e):a.data.radioButton?a._processRadioButton(e):a.data.pushButton?a._processPushButton(e):(0,n.warn)("Invalid field flags for button widget annotation"),a}return f(r,[{key:"_processCheckBox",value:function(e){(0,i.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);var t=e.dict.get("AP");if((0,i.isDict)(t)){var r=t.get("D");if((0,i.isDict)(r)){var n=r.getKeys(),a=2===n.length;a&&(this.data.exportValue="Off"===n[0]?n[1]:n[0])}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,i.isDict)(t)&&t.has("V")){var r=t.get("V");(0,i.isName)(r)&&(this.data.fieldValue=r.name)}var n=e.dict.get("AP");if((0,i.isDict)(n)){var a=n.get("N");if((0,i.isDict)(a)){var o,s=d(a.getKeys());try{for(s.s();!(o=s.n()).done;){var l=o.value;if("Off"!==l){this.data.buttonValue=l;break}}}catch(c){s.e(c)}finally{s.f()}}}}},{key:"_processPushButton",value:function(e){e.dict.has("A")?a.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl}):(0,n.warn)("Push buttons without action dictionaries are not supported")}}]),r}(A),T=function(e){g(r,e);var t=v(r);function r(e){var a;p(this,r),a=t.call(this,e),a.data.options=[];var i=(0,u.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(i))for(var o=e.xref,s=0,l=i.length;si&&(g=Math.max(g,b),y+=m+2*o,b=0,m=0),v.push({transform:w,x:b,y:y,w:_.width,h:_.height}),b+=_.width+2*o,m=Math.max(m,_.height)}var k=Math.max(g,b)+o,x=y+m+o,S=new Uint8ClampedArray(k*x*4),A=k<<2;for(p=0;p=0)C[E-4]=C[E],C[E-3]=C[E+1],C[E-2]=C[E+2],C[E-1]=C[E+3],C[E+P]=C[E+P-4],C[E+P+1]=C[E+P-3],C[E+P+2]=C[E+P-2],C[E+P+3]=C[E+P-1],E-=A}return s.splice(u,4*f,n.OPS.paintInlineImageXObjectGroup),l.splice(u,4*f,[{width:k,height:x,kind:n.ImageKind.RGBA_32BPP,data:S},v]),u+1})),e(r,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,(function(e,t){var r=e.fnArray,a=e.iCurr-3,i=(t-a)%4;switch(i){case 0:return r[t]===n.OPS.save;case 1:return r[t]===n.OPS.transform;case 2:return r[t]===n.OPS.paintImageMaskXObject;case 3:return r[t]===n.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(i))}),(function(e,r){var a,i=10,o=100,s=1e3,l=e.fnArray,c=e.argsArray,u=e.iCurr,d=u-3,h=u-2,f=u-1,p=Math.floor((r-d)/4);if(p=t(d,p,l,c),p=4&&a[s-4]===a[l]&&a[s-3]===a[c]&&a[s-2]===a[u]&&a[s-1]===a[d]&&i[s-4][0]===h&&i[s-4][1]===f&&(p++,g-=5);for(var v=g+4,m=1;m=n)break}a=(a||r)[e[t]],a&&!Array.isArray(a)?(o.iCurr=t,t++,!a.checkFn||(0,a.checkFn)(o)?(i=a,a=null):a=null):t++}this.state=a,this.match=i,this.lastProcessed=t}else this.lastProcessed=n},push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()},flush:function(){while(this.match){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}},reset:function(){this.state=null,this.match=null,this.lastProcessed=0}},a}(),i=function(){function e(e){this.queue=e}return e.prototype={push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t)},flush:function(){},reset:function(){}},e}(),o=function(){var e=1e3,t=e-5;function r(e,t,r){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=t&&"oplist"!==e?new a(this):new i(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=r,this.intent=e,this.weight=0,this._resolved=t?null:Promise.resolve()}return r.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp:function(r,a){this.optimizer.push(r,a),this.weight++,this._streamSink&&(this.weight>=e||this.weight>=t&&(r===n.OPS.restore||r===n.OPS.endText))&&this.flush()},addDependency:function(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(n.OPS.dependency,[e]))},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(e){Object.assign(this.dependencies,e.dependencies);for(var t=0,r=e.length;t0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},r}();t.OperatorList=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var n=r(2),a=r(26),i=r(4),o=r(27),s=r(30),l=r(7),c=r(33),u=r(32),h=r(36),f=r(10),p=r(37),g=r(22),v=r(11),m=r(31),y=r(38),w=r(39),_=r(17),k=r(41),x=r(42),S=r(24),A=r(43),C=function(){var e={forceDataSchema:!1,maxImageSize:-1,disableFontFace:!1,nativeImageDecoderSupport:n.NativeImageDecoding.DECODE,ignoreErrors:!1,isEvalSupported:!0};function t(t){var r=this,a=t.xref,i=t.handler,o=t.pageIndex,s=t.idFactory,l=t.fontCache,c=t.builtInCMapCache,u=t.options,d=void 0===u?null:u,h=t.pdfFunctionFactory;this.xref=a,this.handler=i,this.pageIndex=o,this.idFactory=s,this.fontCache=l,this.builtInCMapCache=c,this.options=d||e,this.pdfFunctionFactory=h,this.parsingType3Font=!1,this.fetchBuiltInCMap=function(){var e=b(regeneratorRuntime.mark((function e(t){var a,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r.builtInCMapCache.has(t)){e.next=2;break}return e.abrupt("return",r.builtInCMapCache.get(t));case 2:return a=r.handler.sendWithStream("FetchBuiltInCMap",{name:t}),i=a.getReader(),e.next=6,new Promise((function(e,t){function r(){i.read().then((function(t){var n=t.value,a=t.done;a||(e(n),r())}),t)}r()}));case 6:return o=e.sent,o.compressionType!==n.CMapCompressionType.NONE&&r.builtInCMapCache.set(t,o),e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}var r=20,f=100;function C(){this.reset()}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var r=0,a=e.length;r0&&void 0!==arguments[0]?arguments[0]:e,r=Object.create(this);return r.options=t,r},hasBlendModes:function(e){if(!(e instanceof i.Dict))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);var r=[e],a=this.xref;while(r.length){var o=r.shift(),s=o.get("ExtGState");if(s instanceof i.Dict)for(var c=s.getKeys(),u=0,d=c.length;um)){r.next=11;break}return(0,n.warn)("Image exceeded maximum allowed size and was removed."),r.abrupt("return",void 0);case 11:if(b=f.get("ImageMask","IM")||!1,!b){r.next=24;break}return k=f.get("Width","W"),S=f.get("Height","H"),C=k+7>>3,P=i.getBytes(C*S,!0),T=f.getArray("Decode","D"),y=A.PDFImage.createMask({imgArray:P,width:k,height:S,imageIsFromDecodeStream:i instanceof v.DecodeStream,inverseDecode:!!T&&T[0]>0}),y.cached=!!c,w=[y],l.addOp(n.OPS.paintImageMaskXObject,w),c&&(u[c]={fn:n.OPS.paintImageMaskXObject,args:w}),r.abrupt("return",void 0);case 24:if(E=f.get("SMask","SM")||!1,R=f.get("Mask")||!1,I=200,!s||E||R||i instanceof _.JpegStream||!(p+g0&&r.addOp(n.OPS.setGState,[l])}))},loadFont:function(e,r,a){var s=this;function l(){return Promise.resolve(new P("g_font_error",new o.ErrorFont("Font "+e+" is not available"),r))}var c,u=this.xref;if(r){if(!(0,i.isRef)(r))throw new n.FormatError('The "font" object should be a reference.');c=r}else{var d=a.get("Font");d&&(c=d.getRaw(e))}if(!c){var h='Font "'.concat(e||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,n.warn)("".concat(h,".")),l();this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.font}),(0,n.warn)("".concat(h," -- attempting to fallback to a default font.")),c=t.getFallbackFontDict()}if(this.fontCache.has(c))return this.fontCache.get(c);if(r=u.fetchIfRef(c),!(0,i.isDict)(r))return l();if(r.translated)return r.translated;var f,p,g=(0,n.createPromiseCapability)(),v=this.preEvaluateFont(r),m=v.descriptor,b=v.hash,y=(0,i.isRef)(c);if(y&&(f=c.toString()),b&&(0,i.isDict)(m)){m.fontAliases||(m.fontAliases=Object.create(null));var w=m.fontAliases;if(w[b]){var _=w[b].aliasRef;if(y&&_&&this.fontCache.has(_))return this.fontCache.putAlias(c,_),this.fontCache.get(c)}else w[b]={fontID:o.Font.getFontID()};y&&(w[b].aliasRef=c),f=w[b].fontID}y?this.fontCache.put(c,g.promise):(f||(f=this.idFactory.createObjId()),this.fontCache.put("id_".concat(f),g.promise)),(0,n.assert)(f,'The "fontID" must be defined.'),r.loadedName="".concat(this.idFactory.getDocId(),"_f").concat(f),r.translated=g.promise;try{p=this.translateFont(v)}catch(k){p=Promise.reject(k)}return p.then((function(e){if(void 0!==e.fontType){var t=u.stats.fontTypes;t[e.fontType]=!0}g.resolve(new P(r.loadedName,e,r))})).catch((function(e){s.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.font});try{var t=m&&m.get("FontFile3"),a=t&&t.get("Subtype"),i=(0,o.getFontType)(v.type,a&&a.name),l=u.stats.fontTypes;l[i]=!0}catch(c){}g.resolve(new P(r.loadedName,new o.ErrorFont(e instanceof Error?e.message:e),r))})),g.promise},buildPath:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.length-1;if(r||(r=[]),i<0||e.fnArray[i]!==n.OPS.constructPath)a&&((0,n.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(n.OPS.save,null)),e.addOp(n.OPS.constructPath,[[t],r]),a&&e.addOp(n.OPS.restore,null);else{var o=e.argsArray[i];o[0].push(t),Array.prototype.push.apply(o[1],r)}},parseColorSpace:function(e){var t=this,r=e.cs,a=e.resources;return new Promise((function(e){e(g.ColorSpace.parse(r,t.xref,a,t.pdfFunctionFactory))})).catch((function(e){if(e instanceof n.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.unknown}),(0,n.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))},handleColorN:function(e,t,r,a,o,s,l){var c=this;return b(regeneratorRuntime.mark((function u(){var d,f,p,g,v,m,b;return regeneratorRuntime.wrap((function(u){while(1)switch(u.prev=u.next){case 0:if(d=r[r.length-1],!(0,i.isName)(d)||!(f=o.get(d.name))){u.next=16;break}if(p=(0,i.isStream)(f)?f.dict:f,g=p.get("PatternType"),g!==F){u.next=9;break}return v=a.base?a.base.getRgb(r,0):null,u.abrupt("return",c.handleTilingType(t,v,s,f,p,e,l));case 9:if(g!==M){u.next=15;break}return m=p.get("Shading"),b=p.getArray("Matrix"),f=h.Pattern.parseShading(m,b,c.xref,s,c.handler,c.pdfFunctionFactory),e.addOp(t,f.getIR()),u.abrupt("return",void 0);case 15:throw new n.FormatError("Unknown PatternType: ".concat(g));case 16:throw new n.FormatError("Unknown PatternName: ".concat(d));case 17:case"end":return u.stop()}}),u)})))()},getOperatorList:function(e){var t=this,r=e.stream,a=e.task,o=e.resources,s=e.operatorList,l=e.initialState,c=void 0===l?null:l;if(o=o||i.Dict.empty,c=c||new R,!s)throw new Error('getOperatorList: missing "operatorList" parameter');var u=this,d=this.xref,f=!1,p=Object.create(null),v=o.get("XObject")||i.Dict.empty,m=o.get("Pattern")||i.Dict.empty,b=new T(c),y=new I(r,d,b),w=new C;function _(e){for(var t=0,r=y.savedStatesDepth;t0&&(t[3]*=r*b.fontMatrix[3])}var a=n.Util.transform(b.ctm,n.Util.transform(b.textMatrix,t));_.transform=a,e.vertical?(_.width=Math.sqrt(a[0]*a[0]+a[1]*a[1]),_.height=0,_.vertical=!0):(_.width=0,_.height=Math.sqrt(a[2]*a[2]+a[3]*a[3]),_.vertical=!1);var i=b.textLineMatrix[0],o=b.textLineMatrix[1],s=Math.sqrt(i*i+o*o);i=b.ctm[0],o=b.ctm[1];var l=Math.sqrt(i*i+o*o);_.textAdvanceScale=l*s,_.lastAdvanceWidth=0,_.lastAdvanceHeight=0;var c=e.spaceWidth/1e3*b.fontSize;return c?(_.spaceWidth=c,_.fakeSpaceMin=c*k,_.fakeMultiSpaceMin=c*x,_.fakeMultiSpaceMax=c*S,_.textRunBreakAllowed=!e.isMonospace):(_.spaceWidth=0,_.fakeSpaceMin=1/0,_.fakeMultiSpaceMin=1/0,_.fakeMultiSpaceMax=0,_.textRunBreakAllowed=!1),_.initialized=!0,_}function D(e){var t,r=0,n=e.length;while(r=32&&t<=127)r++;return r0&&j(f,r.str)}var p=0,g=0;if(t.vertical){var v=l*b.fontMatrix[0];g=v*b.fontSize+h,a+=g}else{var m=l*b.fontMatrix[0];p=(m*b.fontSize+h)*b.textHScale,n+=p}b.translateTextMatrix(p,g),r.str.push(u)}return t.vertical?(r.lastAdvanceHeight=a,r.height+=Math.abs(a)):(r.lastAdvanceWidth=n,r.width+=n),r}function j(e,t){if(!(e<_.fakeSpaceMin))if(e<_.fakeMultiSpaceMin)t.push(" ");else{var r=Math.round(e/_.spaceWidth);while(r-- >0)t.push(" ")}}function q(){_.initialized&&(_.vertical?_.height*=_.textAdvanceScale:_.width*=_.textAdvanceScale,w.items.push(N(_)),_.initialized=!1,_.str.length=0)}function z(){var e=w.items.length;e>0&&(g.enqueue(w,e),w.items=[],w.styles=Object.create(null))}var V=new C;return new Promise((function e(t,r){var s=function(n){z(),Promise.all([n,g.ready]).then((function(){try{e(t,r)}catch(n){r(n)}}),r)};a.ensureNotTerminated(),V.reset();var c,u={},h=[];while(!(c=V.check())){if(h.length=0,u.args=h,!F.read(u))break;b=l.state;var p,v,y=u.fn;switch(h=u.args,0|y){case n.OPS.setFont:var k=h[0].name,x=h[1];if(b.font&&k===b.fontName&&x===b.fontSize)break;return q(),b.fontName=k,b.fontSize=x,void s(B(k,null));case n.OPS.setTextRise:q(),b.textRise=h[0];break;case n.OPS.setHScale:q(),b.textHScale=h[0]/100;break;case n.OPS.setLeading:q(),b.leading=h[0];break;case n.OPS.moveText:var S=!!b.font&&0===(b.font.vertical?h[0]:h[1]);if(p=h[0]-h[1],f&&S&&_.initialized&&p>0&&p<=_.fakeMultiSpaceMax){b.translateTextLineMatrix(h[0],h[1]),_.width+=h[0]-_.lastAdvanceWidth,_.height+=h[1]-_.lastAdvanceHeight,v=h[0]-_.lastAdvanceWidth-(h[1]-_.lastAdvanceHeight),j(v,_.str);break}q(),b.translateTextLineMatrix(h[0],h[1]),b.textMatrix=b.textLineMatrix.slice();break;case n.OPS.setLeadingMoveText:q(),b.leading=-h[1],b.translateTextLineMatrix(h[0],h[1]),b.textMatrix=b.textLineMatrix.slice();break;case n.OPS.nextLine:q(),b.carriageReturn();break;case n.OPS.setTextMatrix:if(p=b.calcTextLineMatrixAdvance(h[0],h[1],h[2],h[3],h[4],h[5]),f&&null!==p&&_.initialized&&p.value>0&&p.value<=_.fakeMultiSpaceMax){b.translateTextLineMatrix(p.width,p.height),_.width+=p.width-_.lastAdvanceWidth,_.height+=p.height-_.lastAdvanceHeight,v=p.width-_.lastAdvanceWidth-(p.height-_.lastAdvanceHeight),j(v,_.str);break}q(),b.setTextMatrix(h[0],h[1],h[2],h[3],h[4],h[5]),b.setTextLineMatrix(h[0],h[1],h[2],h[3],h[4],h[5]);break;case n.OPS.setCharSpacing:b.charSpacing=h[0];break;case n.OPS.setWordSpacing:b.wordSpacing=h[0];break;case n.OPS.beginText:q(),b.textMatrix=n.IDENTITY_MATRIX.slice(),b.textLineMatrix=n.IDENTITY_MATRIX.slice();break;case n.OPS.showSpacedText:if(!l.state.font){A.ensureStateFont(l.state);continue}for(var C,P=h[0],E=0,I=P.length;E_.fakeMultiSpaceMax,D||(_.height+=C)):(p=-p,C=p*b.textHScale,b.translateTextMatrix(C,0),D=_.textRunBreakAllowed&&p>_.fakeMultiSpaceMax,D||(_.width+=C)),D?q():p>0&&j(p,_.str)}break;case n.OPS.showText:if(!l.state.font){A.ensureStateFont(l.state);continue}U(h[0]);break;case n.OPS.nextLineShowText:if(!l.state.font){A.ensureStateFont(l.state);continue}q(),b.carriageReturn(),U(h[0]);break;case n.OPS.nextLineSetSpacingShowText:if(!l.state.font){A.ensureStateFont(l.state);continue}q(),b.wordSpacing=h[0],b.charSpacing=h[1],b.carriageReturn(),U(h[2]);break;case n.OPS.paintXObject:q(),R||(R=o.get("XObject")||i.Dict.empty);var N=h[0].name;if(N&&void 0!==O[N])break;return void s(new Promise((function(e,t){if(!N)throw new n.FormatError("XObject must be referred to by name.");var r=R.get(N);if(r){if(!(0,i.isStream)(r))throw new n.FormatError("XObject should be a stream");var s=r.dict.get("Subtype");if(!(0,i.isName)(s))throw new n.FormatError("XObject should have a Name subtype");if("Form"!==s.name)return O[N]=!0,void e();var c=l.state.clone(),u=new T(c),h=r.dict.getArray("Matrix");Array.isArray(h)&&6===h.length&&u.transform(h),z();var p={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,g.enqueue(e,t)},get desiredSize(){return g.desiredSize},get ready(){return g.ready}};A.getTextContent({stream:r,task:a,resources:r.dict.get("Resources")||o,stateManager:u,normalizeWhitespace:d,combineTextItems:f,sink:p,seenStyles:m}).then((function(){p.enqueueInvoked||(O[N]=!0),e()}),t)}else e()})).catch((function(e){if(!(e instanceof n.AbortException)){if(!A.options.ignoreErrors)throw e;(0,n.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case n.OPS.setGState:q();var W=h[0],H=o.get("ExtGState");if(!(0,i.isDict)(H)||!(0,i.isName)(W))break;var G=H.get(W.name);if(!(0,i.isDict)(G))break;var Y=G.get("Font");if(Y)return b.fontName=null,b.fontSize=Y[1],void s(B(null,Y[0]));break}if(w.items.length>=g.desiredSize){c=!0;break}}c?s(L):(q(),z(),t())})).catch((function(e){if(!(e instanceof n.AbortException)){if(t.options.ignoreErrors)return(0,n.warn)('getTextContent - ignoring errors during "'.concat(a.name,'" ')+'task: "'.concat(e,'".')),q(),void z();throw e}}))},extractDataStructures:function(e,t,r){var a,l=this,c=this.xref,u=e.get("ToUnicode")||t.get("ToUnicode"),d=u?this.readToUnicode(u):Promise.resolve(void 0);if(r.composite){var h=e.get("CIDSystemInfo");(0,i.isDict)(h)&&(r.cidSystemInfo={registry:(0,n.stringToPDFString)(h.get("Registry")),ordering:(0,n.stringToPDFString)(h.get("Ordering")),supplement:h.get("Supplement")});var f=e.get("CIDToGIDMap");(0,i.isStream)(f)&&(a=f.getBytes())}var p,g=[],v=null;if(e.has("Encoding")){if(p=e.get("Encoding"),(0,i.isDict)(p)){if(v=p.get("BaseEncoding"),v=(0,i.isName)(v)?v.name:null,p.has("Differences"))for(var m=p.get("Differences"),b=0,y=0,w=m.length;y0,r.dict=e,d.then((function(e){return r.toUnicode=e,l.buildToUnicode(r)})).then((function(e){return r.toUnicode=e,a&&(r.cidToGidMap=l.readCidToGidMap(a,e)),r}))},_buildSimpleFontToUnicode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,n.assert)(!e.composite,"Must be a simple font.");var r=[],a=e.defaultEncoding.slice(),i=e.baseEncodingName,l=e.differences;for(var u in l){var d=l[u];".notdef"!==d&&(a[u]=d)}var h=(0,m.getGlyphsUnicode)();for(var f in a){var p=a[f];if(""!==p)if(void 0!==h[p])r[f]=String.fromCharCode(h[p]);else{var g=0;switch(p[0]){case"G":3===p.length&&(g=parseInt(p.substring(1),16));break;case"g":5===p.length&&(g=parseInt(p.substring(1),16));break;case"C":case"c":if(p.length>=3&&p.length<=4){var v=p.substring(1);if(t){g=parseInt(v,16);break}if(g=+v,Number.isNaN(g)&&Number.isInteger(parseInt(v,16)))return this._buildSimpleFontToUnicode(e,!0)}break;default:var b=(0,c.getUnicodeForGlyph)(p,h);-1!==b&&(g=b)}if(g>0&&Number.isInteger(g)){if(i&&g===+f){var y=(0,s.getEncoding)(i);if(y&&(p=y[f])){r[f]=String.fromCharCode(h[p]);continue}}r[f]=String.fromCodePoint(g)}}}return new o.ToUnicodeMap(r)},buildToUnicode:function(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof a.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){var t=e.cidSystemInfo.registry,r=e.cidSystemInfo.ordering,s=i.Name.get(t+"-"+r+"-UCS2");return a.CMapFactory.create({encoding:s,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(t){var r=e.cMap,a=[];return r.forEach((function(e,r){if(r>65535)throw new n.FormatError("Max size of CID is 65,535");var i=t.lookup(r);i&&(a[e]=String.fromCharCode((i.charCodeAt(0)<<8)+i.charCodeAt(1)))})),new o.ToUnicodeMap(a)}))}return Promise.resolve(new o.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=this,r=e;return(0,i.isName)(r)?a.CMapFactory.create({encoding:r,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){return e instanceof a.IdentityCMap?new o.IdentityToUnicodeMap(0,65535):new o.ToUnicodeMap(e.getMap())})):(0,i.isStream)(r)?a.CMapFactory.create({encoding:r,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){if(e instanceof a.IdentityCMap)return new o.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);return e.forEach((function(e,r){for(var n=[],a=0;a>1;(0!==i||t.has(o))&&(r[o]=i)}return r},extractWidths:function(e,t,r){var n,a,s,l,c,u,d,h,f=this.xref,p=[],g=0,v=[];if(r.composite){if(g=e.has("DW")?e.get("DW"):1e3,h=e.get("W"),h)for(a=0,s=h.length;ac&&(0,n.info)("Command ".concat(o,": expected [0, ").concat(c,"] args, ")+"but received ".concat(u," args."));else{if(u!==c){var d=this.nonProcessedArgs;while(u>c)d.push(r.shift()),u--;while(u=n.OPS.moveTo&&l<=n.OPS.endPath&&++this._numInvalidPathOPS>t)throw new n.FormatError("Invalid ".concat(h));(0,n.warn)("Skipping ".concat(h)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(l,r),e.fn=l,e.args=r,!0}if(a===i.EOF)return!1;if(null!==a&&(null===r&&(r=[]),r.push(a),r.length>33))throw new n.FormatError("Too many arguments")}},preprocessCommand:function(e,t){switch(0|e){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(t);break}}},r}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var n=r(2),a=r(4),i=r(10),o=r(7),s=r(11),l=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}return f(e,[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){while(e<=t)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){var n=r.length-1;while(e<=t)this._map[e++]=r,r=r.substring(0,n)+String.fromCharCode(r.charCodeAt(n)+1)}},{key:"mapBfRangeToArray",value:function(e,t,r){var n=r.length,a=0;while(e<=t&&a>>0;for(var s=a[i],l=0,c=s.length;l=u&&n<=d)return r.charcode=n,void(r.length=i+1)}}r.charcode=0,r.length=1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}]),e}();t.CMap=c;var u=function(e){g(r,e);var t=v(r);function r(e,n){var a;return p(this,r),a=t.call(this),a.vertical=e,a.addCodespaceRange(n,0,65535),a}return f(r,[{key:"mapCidRange",value:function(e,t,r){(0,n.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,n.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(e){return Number.isInteger(e)&&e<=65535?e:void 0}},{key:"contains",value:function(e){return Number.isInteger(e)&&e<=65535}},{key:"forEach",value:function(e){for(var t=0;t<=65535;t++)e(t,t)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,n.unreachable)("should not access .isIdentityCMap")}}]),r}(c);t.IdentityCMap=u;var d=function(){function e(e,t){for(var r=0,n=0;n<=t;n++)r=r<<8|e[n];return r>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function r(e,t,r){for(var n=0,a=r;a>=0;a--)n+=e[a]+t[a],e[a]=255&n,n>>=8}function a(e,t){for(var r=1,n=t;n>=0&&r>0;n--)r+=e[n],e[n]=255&r,r>>=8}var i=16,o=19;function s(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(o)}function l(n,o,l){return new Promise((function(c,u){var d=new s(n),h=d.readByte();o.vertical=!!(1&h);var f,p,g=null,v=new Uint8Array(i),m=new Uint8Array(i),b=new Uint8Array(i),y=new Uint8Array(i),w=new Uint8Array(i);while((p=d.readByte())>=0){var _=p>>5;if(7!==_){var k=!!(16&p),x=15&p;if(x+1>i)throw new Error("processBinaryCMap: Invalid dataSize.");var S,A=1,C=d.readNumber();switch(_){case 0:for(d.readHex(v,x),d.readHexNumber(m,x),r(m,v,x),o.addCodespaceRange(x+1,e(v,x),e(m,x)),S=1;S=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e,t=0;do{var r=this.readByte();if(r<0)throw new n.FormatError("unexpected EOF in bcmap");e=!(128&r),t=t<<7|127&r}while(!e);return t},readSigned:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber:function(e,t){var r,a=this.tmpBuf,i=0;do{var o=this.readByte();if(o<0)throw new n.FormatError("unexpected EOF in bcmap");r=!(128&o),a[i++]=127&o}while(!r);var s=t,l=0,c=0;while(s>=0){while(c<8&&a.length>0)l=a[--i]<>=8,c-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,n=0,a=0;a<=t;a++)n=(1&n)<<8|e[a],e[a]=n>>1^r},readString:function(){for(var e=this.readNumber(),t="",r=0;r>>0}function t(e){if(!(0,n.isString)(e))throw new n.FormatError("Malformed CMap: expected string.")}function r(e){if(!Number.isInteger(e))throw new n.FormatError("Malformed CMap: expected int.")}function h(r,n){while(1){var i=n.getObj();if((0,a.isEOF)(i))break;if((0,a.isCmd)(i,"endbfchar"))return;t(i);var o=e(i);i=n.getObj(),t(i);var s=i;r.mapOne(o,s)}}function f(r,i){while(1){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endbfrange"))return;t(o);var s=e(o);o=i.getObj(),t(o);var l=e(o);if(o=i.getObj(),Number.isInteger(o)||(0,n.isString)(o)){var c=Number.isInteger(o)?String.fromCharCode(o):o;r.mapBfRange(s,l,c)}else{if(!(0,a.isCmd)(o,"["))break;o=i.getObj();var u=[];while(!(0,a.isCmd)(o,"]")&&!(0,a.isEOF)(o))u.push(o),o=i.getObj();r.mapBfRangeToArray(s,l,u)}}throw new n.FormatError("Invalid bf range.")}function p(n,i){while(1){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endcidchar"))return;t(o);var s=e(o);o=i.getObj(),r(o);var l=o;n.mapOne(s,l)}}function g(n,i){while(1){var o=i.getObj();if((0,a.isEOF)(o))break;if((0,a.isCmd)(o,"endcidrange"))return;t(o);var s=e(o);o=i.getObj(),t(o);var l=e(o);o=i.getObj(),r(o);var c=o;n.mapCidRange(s,l,c)}}function v(t,r){while(1){var i=r.getObj();if((0,a.isEOF)(i))break;if((0,a.isCmd)(i,"endcodespacerange"))return;if(!(0,n.isString)(i))break;var o=e(i);if(i=r.getObj(),!(0,n.isString)(i))break;var s=e(i);t.addCodespaceRange(i.length,o,s)}throw new n.FormatError("Invalid codespace range.")}function m(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function y(e,t){var r=t.getObj();(0,a.isName)(r)&&(0,n.isString)(r.name)&&(e.name=r.name)}function w(e,t,r,i){var s,l;e:while(1)try{var c=t.getObj();if((0,a.isEOF)(c))break;if((0,a.isName)(c))"WMode"===c.name?m(e,t):"CMapName"===c.name&&y(e,t),s=c;else if((0,a.isCmd)(c))switch(c.cmd){case"endcmap":break e;case"usecmap":(0,a.isName)(s)&&(l=s.name);break;case"begincodespacerange":v(e,t);break;case"beginbfchar":h(e,t);break;case"begincidchar":p(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":g(e,t);break}}catch(u){if(u instanceof o.MissingDataException)throw u;(0,n.warn)("Invalid cMap data: "+u);continue}return!i&&l&&(i=l),i?_(e,r,i):Promise.resolve(e)}function _(e,t,r){return k(r,t).then((function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var r=e.useCMap.codespaceRanges,n=0;n0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}return e.prototype={get length(){return this._map.length},forEach:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has:function(e){return void 0!==this._map[e]},get:function(e){return this._map[e]},charCodeOf:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1},amend:function(e){for(var t in e)this._map[t]=e[t]}},e}();t.ToUnicodeMap=A;var C=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)},has:function(e){return this.firstChar<=e&&e<=this.lastChar},get:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,n.unreachable)("Should not call amend()")}},e}();t.IdentityToUnicodeMap=C;var P=function(){function e(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function t(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function r(e,t,r){var n,a;if(r instanceof Uint8Array)e.set(r,t);else if("string"===typeof r)for(n=0,a=r.length;nr)r<<=1,n++;var a=r*t;return{range:a,entry:n,rangeShift:t*e-a}};var i=12,o=16;return a.prototype={toArray:function(){var s=this.sfnt,l=this.tables,u=Object.keys(l);u.sort();var d,h,f,p,g,v=u.length,m=i+v*o,b=[m];for(d=0;d>>0;m+=y,b.push(m)}var w=new Uint8Array(m);for(d=0;d>>0}t(w,m+4,k),t(w,m+8,b[d]),t(w,m+12,l[g].length),m+=o}return w},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},a}(),T=function(){function e(e,t,r){var a;this.name=e,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.sizes=[],this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(r.flags&b.Serif),this.isSymbolicFont=!!(r.flags&b.Symbolic),this.isMonospace=!!(r.flags&b.FixedPitch);var i=r.type,o=r.subtype;this.type=i,this.subtype=o;var s="sans-serif";if(this.isMonospace?s="monospace":this.isSerifFont&&(s="serif"),this.fallbackName=s,this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.wideChars=r.wideChars,this.cMap=r.cMap,this.ascent=r.ascent/g,this.descent=r.descent/g,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.fallbackToUnicode=r.fallbackToUnicode||new A,this.toFontChar=[],"Type3"!==r.type){if(this.cidEncoding=r.cidEncoding,this.vertical=r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!t||t.isEmpty)return t&&(0,n.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont();var l=B(t,r),c=m(l,2);i=c[0],o=c[1],i===this.type&&o===this.subtype||(0,n.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(i,"/").concat(o,"."));try{var u;switch(i){case"MMType1":(0,n.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var d="Type1C"===o||"CIDFontType0C"===o?new O(t,r):new I(e,t,r);w(r),u=this.convert(e,d,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",u=this.checkAndRepair(e,t,r),this.isOpenType&&(w(r),i="OpenType");break;default:throw new n.FormatError("Font ".concat(i," is not supported"))}}catch(h){return(0,n.warn)(h),void this.fallbackToSystemFont()}this.data=u,this.fontType=k(i,o),this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.encoding=r.baseEncoding,this.seacMap=r.seacMap}else{for(a=0;a<256;a++)this.toFontChar[a]=this.differences[a]||r.defaultEncoding[a];this.fontType=n.FontType.TYPE3}}function t(e,t){return(e<<8)+t}function r(e,t,r){e[t+1]=r,e[t]=r>>>8}function f(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function T(e,t,r,n){return(e<<24)+(t<<16)+(r<<8)+n}function E(e){return String.fromCharCode(e>>8&255,255&e)}function R(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function L(e){var t=e.peekBytes(4);return 65536===(0,c.readUint32)(t,0)||"true"===(0,n.bytesToString)(t)}function F(e){var t=e.peekBytes(4);return"ttcf"===(0,n.bytesToString)(t)}function M(e){var t=e.peekBytes(4);return"OTTO"===(0,n.bytesToString)(t)}function D(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}function N(e){var t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}function B(e,t){var r,a,i=t.type,o=t.subtype,s=t.composite;return L(e)||F(e)?r=s?"CIDFontType2":"TrueType":M(e)?r=s?"CIDFontType2":"OpenType":D(e)?r=s?"CIDFontType0":"MMType1"===i?"MMType1":"Type1":N(e)?s?(r="CIDFontType0",a="CIDFontType0C"):(r="MMType1"===i?"MMType1":"Type1",a="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),r=i,a=o),[r,a]}function U(e,t,r){for(var n,a=[],i=0,o=e.length;il){if(o++,o>=p.length){(0,n.warn)("Ran out of space in font private use area.");break}s=p[o][0],l=p[o][1]}var d=s++;0===u&&(u=r),a[d]=u,i[c]=d}}return{toFontChar:i,charCodeToGlyphId:a,nextAvailableFontCharCode:s}}function q(e,t){var r=[];for(var n in e)e[n]>=t||r.push({fontCharCode:0|n,glyphId:e[n]});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var a=[],i=r.length,o=0;o65535?2:1,c="\0\0"+E(l)+"\0\0"+(0,n.string32)(4+8*l);for(r=s.length-1;r>=0;--r)if(s[r][0]<=65535)break;var u=r+1;s[r][0]<65535&&65535===s[r][1]&&(s[r][1]=65534);var d,h,f,p,g=s[r][1]<65535?1:0,v=u+g,m=P.getSearchParams(v,2),b="",y="",w="",_="",k="",x=0;for(r=0,a=u;r0&&(y+="ÿÿ",b+="ÿÿ",w+="\0",_+="\0\0");var T="\0\0"+E(2*v)+E(m.range)+E(m.entry)+E(m.rangeShift)+y+"\0\0"+b+w+_+k,R="",I="";if(l>1){for(c+="\0\0\n"+(0,n.string32)(4+8*l+4+T.length),R="",r=0,a=s.length;ri)return!1;t.getBytes(6);var o=t.getUint16();return 0!==o&&(e.data[8]=e.data[9]=0,!0)}function W(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var a=0,i=0,o=0,s=0,c=null,u=0;if(t){for(var d in t){d|=0,(c>d||!c)&&(c=d),u 123 are reserved for internal usage");s|=1<65535&&(u=65535)}else c=0,u=255;var f=e.bbox||[0,0,0,0],p=r.unitsPerEm||1/(e.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],v=e.ascentScaled?1:p/g,m=r.ascent||Math.round(v*(e.ascent||f[3])),b=r.descent||Math.round(v*(e.descent||f[1]));b>0&&e.descent>0&&f[1]<0&&(b=-b);var y=r.yMax||m,w=-r.yMin||-b;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(a)+(0,n.string32)(i)+(0,n.string32)(o)+(0,n.string32)(s)+"*21*"+E(e.italicAngle?1:0)+E(c||e.firstChar)+E(u||e.lastChar)+E(m)+E(b)+"\0d"+E(y)+E(w)+"\0\0\0\0\0\0\0\0"+E(e.xHeight)+E(e.capHeight)+E(0)+E(c||e.firstChar)+"\0"}function H(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,n.string32)(t)+"\0\0\0\0"+(0,n.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function G(e,t){t||(t=[[],[]]);var r,n,a,i,o,s=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],l=[];for(r=0,n=s.length;r0,p&&"CIDFontType2"===c&&this.cidEncoding.startsWith("Identity-")){var g=(0,s.getGlyphMapForStandardFonts)(),v=[];for(e in g)v[+e]=g[e];if(/Arial-?Black/i.test(a)){var m=(0,s.getSupplementalGlyphMapForArialBlack)();for(e in m)v[+e]=m[e]}else if(/Calibri/i.test(a)){var b=(0,s.getSupplementalGlyphMapForCalibri)();for(e in b)v[+e]=b[e]}var y=this.toUnicode instanceof C;y||this.toUnicode.forEach((function(e,t){v[+e]=t})),this.toFontChar=v,this.toUnicode=new A(v)}else if(/Symbol/i.test(d))this.toFontChar=U(o.SymbolSetEncoding,(0,i.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(d))/Wingdings/i.test(a)&&(0,n.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=U(o.ZapfDingbatsEncoding,(0,i.getDingbatsGlyphsUnicode)(),this.differences);else if(p)this.toFontChar=U(this.defaultEncoding,(0,i.getGlyphsUnicode)(),this.differences);else{var w=(0,i.getGlyphsUnicode)(),_=[];if(this.toUnicode.forEach((function(e,n){if(!r.composite){var a=r.differences[e]||r.defaultEncoding[e];t=(0,l.getUnicodeForGlyph)(a,w),-1!==t&&(n=t)}_[+e]=n})),this.composite&&this.toUnicode instanceof C&&/Verdana/i.test(a)){var x=(0,s.getGlyphMapForStandardFonts)();for(e in x)_[+e]=x[e]}this.toFontChar=_}this.loadedName=d.split("-")[0],this.fontType=k(c,u)},checkAndRepair:function(e,s,l){var c=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function u(e,t){var r=Object.create(null);r["OS/2"]=null,r["cmap"]=null,r["head"]=null,r["hhea"]=null,r["hmtx"]=null,r["maxp"]=null,r["name"]=null,r["post"]=null;for(var n=0;n>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,o=e.pos;e.pos=e.start?e.start:0,e.skip(a);var s=e.getBytes(i);return e.pos=o,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:r,length:i,offset:a,data:s}}function g(e){return{version:(0,n.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function m(e){var t=(0,n.bytesToString)(e.getBytes(4));(0,n.assert)("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),a=e.getUint16(),i=e.getInt32()>>>0,o=[],s=0;s>>0);var l={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:i,offsetTable:o};switch(r){case 1:return l;case 2:return l.dsigTag=e.getInt32()>>>0,l.dsigLength=e.getInt32()>>>0,l.dsigOffset=e.getInt32()>>>0,l}throw new n.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}function b(e,t){for(var r=m(e),a=r.numFonts,i=r.offsetTable,o=0;o>>0,p=!1;if((!s||s.platformId!==d||s.encodingId!==h)&&(0===d&&0===h||1===d&&0===h?p=!0:3!==d||1!==h||!a&&s?r&&3===d&&0===h&&(p=!0,c=!0):(p=!0,r||(c=!0)),p&&(s={platformId:d,encodingId:h,offset:f}),c))break}if(s&&(t.pos=o+s.offset),!s||-1===t.peekByte())return(0,n.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var g=t.getUint16();t.getUint16(),t.getUint16();var v,m,b=!1,y=[];if(0===g){for(v=0;v<256;v++){var w=t.getByte();w&&y.push({charCode:v,glyphId:w})}b=!0}else if(4===g){var _=t.getUint16()>>1;t.getBytes(6);var k,x=[];for(k=0;k<_;k++)x.push({end:t.getUint16()});for(t.getUint16(),k=0;k<_;k++)x[k].start=t.getUint16();for(k=0;k<_;k++)x[k].delta=t.getUint16();var S=0;for(k=0;k<_;k++){i=x[k];var A=t.getUint16();if(A){var C=(A>>1)-(_-k);i.offsetIndex=C,S=Math.max(S,C+i.end-i.start+1)}else i.offsetIndex=-1}var P=[];for(v=0;va&&((0,n.info)("The numOfMetrics ("+o+") should not be greater than the numGlyphs ("+a+")"),o=a,t.data[34]=(65280&o)>>8,t.data[35]=255&o);var s=a-o,l=s-(r.length-4*o>>1);if(l>0){var c=new Uint8Array(r.length+2*l);c.set(r.data),i&&(c[r.length]=r.data[2],c[r.length+1]=r.data[3]),r.data=c}}else r&&(r.data=null)}function S(e,t,n,a,i,o){var s={length:0,sizeOfInstructions:0};if(n-t<=12)return s;var l=e.subarray(t,n),c=f(l[0],l[1]);if(c<0)return c=-1,r(l,0,c),a.set(l,i),s.length=l.length,s;var u,d=10,h=0;for(u=0;ul.length?s:!o&&v>0?(a.set(l.subarray(0,g),i),a.set([0,0],i+g),a.set(l.subarray(m,S),i+g+2),S-=v,l.length-S>3&&(S=S+3&-4),s.length=S,s):l.length-S>3?(S=S+3&-4,a.set(l.subarray(0,S),i),s.length=S,s):(a.set(l,i),s.length=l.length,s)}function A(e,r,a){var i=e.data,o=T(i[0],i[1],i[2],i[3]);o>>16!==1&&((0,n.info)("Attempting to fix invalid version in head table: "+o),i[0]=0,i[1]=1,i[2]=0,i[3]=0);var s=t(i[50],i[51]);if(s<0||s>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+s);var l=r+1;if(a===l<<1)i[50]=0,i[51]=0;else{if(a!==l<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+s);i[50]=0,i[51]=1}}}function C(e,t,r,n,a,i,o){var s,l,c;n?(s=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},c=function(e,t,r){e[t]=r>>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},c=function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255});var u=i?r+1:r,d=s*(1+u),h=new Uint8Array(d);h.set(e.data.subarray(0,d)),e.data=h;var f,p,g=t.data,v=g.length,m=new Uint8Array(v),b=l(h,0),y=0,w=Object.create(null);for(c(h,0,y),f=0,p=s;fv&&(v+3&-4)===_&&(_=v),_>v&&(b=_);var k=S(g,b,_,m,y,a),x=k.length;0===x&&(w[f]=!0),k.sizeOfInstructions>o&&(o=k.sizeOfInstructions),y+=x,c(h,p,y),b=_}if(0===y){var A=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(f=0,p=s;fC+y?t.data=m.subarray(0,C+y):(t.data=new Uint8Array(C+y),t.data.set(m.subarray(0,y))),t.data.set(m.subarray(0,C),y),c(e.data,h.length-s,y+C)}else t.data=m.subarray(0,y);return{missingGlyphs:w,maxSizeOfInstructions:o}}function E(e,t,r){var a=(s.start?s.start:0)+e.offset;s.pos=a;var i,o=e.length,l=a+o,c=s.getInt32();s.getBytes(28);var u,d=!0;switch(c){case 65536:i=y;break;case 131072:var h=s.getUint16();if(h!==r){d=!1;break}var f=[];for(u=0;u=32768){d=!1;break}f.push(p)}if(!d)break;var g=[],v=[];while(s.posi)){s.pos=m;var b=v.name;if(v.encoding){for(var y="",w=0,_=v.length;w<_;w+=2)y+=String.fromCharCode(s.getUint16());r[1][b]=y}else r[0][b]=(0,n.bytesToString)(s.getBytes(v.length))}}}return r}var I,L,M,D,N=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function B(e,t){for(var r,a,i,o,s,l=e.data,c=0,u=0,d=0,h=[],f=[],p=[],g=t.tooComplexToFollowFunctions,v=!1,m=0,b=0,y=l.length;c0&&(c+=_-1)}}else(v||b)&&((0,n.warn)("TT: nested FDEFs not allowed"),g=!0),v=!0,d=c,o=h.pop(),t.functionsDefined[o]={data:l,i:c};else if(!v&&!b)if(o=h[h.length-1],isNaN(o))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(t.functionsUsed[o]=!0,o in t.functionsStackDeltas){var k=h.length+t.functionsStackDeltas[o];if(k<0)return(0,n.warn)("TT: CALL invalid functions stack delta."),void(t.hintsValid=!1);h.length=k}else if(o in t.functionsDefined&&!p.includes(o)){if(f.push({data:l,i:c,stackTop:h.length-1}),p.push(o),s=t.functionsDefined[o],!s)return(0,n.warn)("TT: CALL non-existent function"),void(t.hintsValid=!1);l=s.data,c=s.i}if(!v&&!b){var x=0;w<=142?x=N[w]:w>=192&&w<=223?x=-1:w>=224&&(x=-2),w>=113&&w<=117&&(a=h.pop(),isNaN(a)||(x=2*-a));while(x<0&&h.length>0)h.pop(),x++;while(x>0)h.push(NaN),x--}}t.tooComplexToFollowFunctions=g;var S=[l];c>l.length&&S.push(new Uint8Array(c-l.length)),d>u&&((0,n.warn)("TT: complementing a missing function tail"),S.push(new Uint8Array([34,45]))),q(e,S)}function U(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,n.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,a=e.functionsUsed.length;rt)return(0,n.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,n.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}function q(e,t){if(t.length>1){var r,n,a=0;for(r=0,n=t.length;r0||!(l.cMap instanceof d.IdentityCMap));if("OTTO"===I.version&&!Z||!L["head"]||!L["hhea"]||!L["maxp"]||!L["post"])return D=new h.Stream(L["CFF "].data),M=new O(D,l),w(l),this.convert(e,M,l);delete L["glyf"],delete L["loca"],delete L["fpgm"],delete L["prep"],delete L["cvt "],this.isOpenType=!0}if(!L["maxp"])throw new n.FormatError('Required "maxp" table is not found');s.pos=(s.start||0)+L["maxp"].offset;var J=s.getInt32(),Q=s.getUint16(),$=Q+1,ee=!0;$>65535&&(ee=!1,$=Q,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));var te=0,re=0;if(J>=65536&&L["maxp"].length>=22){s.pos+=8;var ne=s.getUint16();ne>2&&(L["maxp"].data[14]=0,L["maxp"].data[15]=2),s.pos+=4,te=s.getUint16(),s.pos+=4,re=s.getUint16()}L["maxp"].data[4]=$>>8,L["maxp"].data[5]=255&$;var ae=Y(L["fpgm"],L["prep"],L["cvt "],te);if(ae||(delete L["fpgm"],delete L["prep"],delete L["cvt "]),k(s,L["hhea"],L["hmtx"],$,ee),!L["head"])throw new n.FormatError('Required "head" table is not found');A(L["head"],Q,K?L["loca"].length:0);var ie=Object.create(null);if(K){var oe=t(L["head"].data[50],L["head"].data[51]),se=C(L["loca"],L["glyf"],Q,oe,ae,ee,re);ie=se.missingGlyphs,J>=65536&&L["maxp"].length>=22&&(L["maxp"].data[26]=se.maxSizeOfInstructions>>8,L["maxp"].data[27]=255&se.maxSizeOfInstructions)}if(!L["hhea"])throw new n.FormatError('Required "hhea" table is not found');0===L["hhea"].data[10]&&0===L["hhea"].data[11]&&(L["hhea"].data[10]=255,L["hhea"].data[11]=255);var le={unitsPerEm:t(L["head"].data[18],L["head"].data[19]),yMax:t(L["head"].data[42],L["head"].data[43]),yMin:f(L["head"].data[38],L["head"].data[39]),ascent:t(L["hhea"].data[4],L["hhea"].data[5]),descent:f(L["hhea"].data[6],L["hhea"].data[7])};this.ascent=le.ascent/le.unitsPerEm,this.descent=le.descent/le.unitsPerEm,L["post"]&&E(L["post"],l,Q),L["post"]={tag:"post",data:H(l)};var ce,ue=[];function de(e){return!ie[e]}if(l.composite){var he=l.cidToGidMap||[],fe=0===he.length;l.cMap.forEach((function(e,t){if(t>65535)throw new n.FormatError("Max size of CID is 65,535");var r=-1;fe?r=t:void 0!==he[t]&&(r=he[t]),r>=0&&r0&&de(Ce)&&(ue[ce]=Ce)}}}}else if(0===ge&&0===ve)for(var Pe=0;Pe=61440&&ce<=61695&&(ce&=255),ue[ce]=me[Te].glyphId}0===ue.length&&(ue[0]=0);var Ee=$-1;ee||(Ee=0);var Re=j(ue,de,Ee);if(this.toFontChar=Re.toFontChar,L["cmap"]={tag:"cmap",data:z(Re.charCodeToGlyphId,$)},L["OS/2"]&&V(L["OS/2"])||(L["OS/2"]={tag:"OS/2",data:W(l,Re.charCodeToGlyphId,le)}),!K)try{D=new h.Stream(L["CFF "].data);var Ie=new a.CFFParser(D,l,v);M=Ie.parse(),M.duplicateFirstGlyph();var Oe=new a.CFFCompiler(M);L["CFF "].data=Oe.compile()}catch(De){(0,n.warn)("Failed to compile font "+l.loadedName)}if(L["name"]){var Le=R(L["name"]);L["name"].data=G(e,Le)}else L["name"]={tag:"name",data:G(this.name)};var Fe=new P(I.version);for(var Me in L)Fe.addTable(Me,L[Me].data);return Fe.toArray()},convert:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&_(r,r.builtInEncoding);var a=1;t instanceof O&&(a=t.numGlyphs-1);var i=t.getGlyphMapping(r),s=j(i,t.hasGlyphId.bind(t),a);this.toFontChar=s.toFontChar;var l=t.numGlyphs;function c(e,t){var r=null;for(var n in e)t===e[n]&&(r||(r=[]),r.push(0|n));return r}function u(e,t){for(var r in e)if(t===e[r])return 0|r;return s.charCodeToGlyphId[s.nextAvailableFontCharCode]=t,s.nextAvailableFontCharCode++}var d=t.seacs;if(v&&d&&d.length){var h=r.fontMatrix||n.FONT_IDENTITY_MATRIX,f=t.getCharset(),p=Object.create(null);for(var g in d){g|=0;var m=d[g],b=o.StandardEncoding[m[2]],y=o.StandardEncoding[m[3]],w=f.indexOf(b),k=f.indexOf(y);if(!(w<0||k<0)){var x={x:m[0]*h[0]+m[1]*h[2]+h[4],y:m[0]*h[1]+m[1]*h[3]+h[5]},S=c(i,g);if(S)for(var A=0,C=S.length;A=0?n:0;else if(c)for(a in t)l[a]=t[a];else for(s=o.StandardEncoding,a=0;a=0?n:0;var u,d=e.differences;if(d)for(a in d){var h=d[a];if(n=r.indexOf(h),-1===n){u||(u=(0,i.getGlyphsUnicode)());var f=x(h,u);f!==h&&(n=r.indexOf(f))}l[a]=n>=0?n:0}return l}t.ErrorFont=E;var I=function(){function e(e,t,r){var n,a=e.length,i=t.length,o=a-i,s=r,l=!1;while(s=i){s+=n;while(s=0&&(i[o]=t)}return R(e,i,n)},hasGlyphId:function(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;var t=this.charstrings[e-1];return t.charstring.length>0},getSeacs:function(e){var t,r,n=[];for(t=0,r=e.length;t0;w--)y[w]-=y[w-1];v.setByName(b,y)}}o.topDict.privateDict=v;var _=new a.CFFIndex;for(c=0,u=n.length;c=t)throw new n.FormatError("Invalid CFF header");0!==r&&((0,n.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var a=e[0],i=e[1],o=e[2],s=e[3],l=new d(a,i,o,s);return{obj:l,endPos:o}},parseDict:function(e){var t=0;function r(){var r=e[t++];return 30===r?a():28===r?(r=e[t++],r=(r<<24|e[t++]<<16)>>16,r):29===r?(r=e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r=r<<8|e[t++],r):r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:((0,n.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}function a(){var r="",n=15,a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;while(t>4,l=15&o;if(s===n)break;if(r+=a[s],l===n)break;r+=a[l]}return parseFloat(r)}var i=[],o=[];t=0;var s=e.length;while(to)return!1;for(var l=r.stackSize,c=r.stack,u=a.length,d=0;d>16,d+=2,l++;else if(14===h){if(l>=4&&(l-=4,this.seacAnalysisEnabled))return r.seac=c.slice(l,l+4),!1;f=e[h]}else if(h>=32&&h<=246)c[l]=h-139,l++;else if(h>=247&&h<=254)c[l]=h<251?(h-247<<8)+a[d]+108:-(h-251<<8)-a[d]-108,d++,l++;else if(255===h)c[l]=(a[d]<<24|a[d+1]<<16|a[d+2]<<8|a[d+3])/65536,d+=4,l++;else if(19===h||20===h)r.hints+=l>>1,d+=r.hints+7>>3,l%=2,f=e[h];else{if(10===h||29===h){var g;if(g=10===h?i:s,!g)return f=e[h],(0,n.warn)("Missing subrsIndex for "+f.id),!1;var v=32768;g.count<1240?v=107:g.count<33900&&(v=1131);var m=c[--l]+v;if(m<0||m>=g.count||isNaN(m))return f=e[h],(0,n.warn)("Out of bounds subrIndex for "+f.id),!1;r.stackSize=l,r.callDepth++;var b=this.parseCharString(r,g.get(m),i,s);if(!b)return!1;r.callDepth--,l=r.stackSize;continue}if(11===h)return r.stackSize=l,!0;f=e[h]}if(f){if(f.stem&&(r.hints+=l>>1,3===h||23===h?r.hasVStems=!0:!r.hasVStems||1!==h&&18!==h||((0,n.warn)("CFF stem hints are in wrong order"),a[d-1]=1===h?3:23)),"min"in f&&!r.undefStack&&l=2&&f.stem?l%=2:l>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),l>0&&c[l-1]>=0&&(r.width=c[l-1])),"stackDelta"in f?("stackFn"in f&&f.stackFn(c,l),l+=f.stackDelta):f.stackClearing?l=0:f.resetStack?(l=0,r.undefStack=!1):f.undefStack&&(l=0,r.undefStack=!0,r.firstStackClearing=!1)}}return r.stackSize=l,!0},parseCharStrings:function(e){for(var t=e.charStrings,r=e.localSubrIndex,a=e.globalSubrIndex,i=e.fdSelect,o=e.fdArray,s=e.privateDict,l=[],c=[],u=t.count,d=0;d=o.length&&((0,n.warn)("Invalid fd index for glyph index."),p=!1),p&&(v=o[m].privateDict,g=v.subrsIndex)}else r&&(g=r);if(p&&(p=this.parseCharString(f,h,g,a)),null!==f.width){var b=v.getByName("nominalWidthX");c[d]=b+f.width}else{var y=v.getByName("defaultWidthX");c[d]=y}null!==f.seac&&(l[d]=f.seac),p||t.set(d,new Uint8Array([14]))}return{charStrings:t,seacs:l,widths:c}},emptyPrivateDictionary:function(e){var t=this.createDict(v,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],n=t[1];if(0===r||n>=this.bytes.length)this.emptyPrivateDictionary(e);else{var a=n+r,i=this.bytes.subarray(n,a),o=this.parseDict(i),s=this.createDict(v,o,e.strings);if(e.privateDict=s,s.getByName("Subrs")){var l=s.getByName("Subrs"),c=n+l;if(0===l||c>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(c);s.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,r,i){if(0===e)return new b(!0,m.ISO_ADOBE,a.ISOAdobeCharset);if(1===e)return new b(!0,m.EXPERT,a.ExpertCharset);if(2===e)return new b(!0,m.EXPERT_SUBSET,a.ExpertSubsetCharset);var o,s,l,c=this.bytes,u=e,d=c[e++],h=[".notdef"];switch(t-=1,d){case 0:for(l=0;l=65535)(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}},hasGlyphId:function(e){if(e<0||e>=this.charStrings.count)return!1;var t=this.charStrings.get(e);return t.length>0}},e}();t.CFF=u;var d=function(){function e(e,t,r,n){this.major=e,this.minor=t,this.hdrSize=r,this.offSize=n}return e}();t.CFFHeader=d;var h=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=l-1?s[e]:e-l<=this.strings.length?this.strings[e-l]:s[0]},getSID:function(e){var t=s.indexOf(e);return-1!==t?t:(t=this.strings.indexOf(e),-1!==t?t+l:-1)},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}();t.CFFStrings=h;var f=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(e){this.length+=e.length,this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}();t.CFFIndex=f;var p=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var a=0;a=this.fdSelect.length?-1:this.fdSelect[e]}},e}();t.CFFFDSelect=w;var _=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new n.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,r){if(!(e in this.offsets))throw new n.FormatError("Not tracking location of ".concat(e));for(var a=r.data,i=this.offsets[e],o=5,s=0,l=t.length;s>24&255,a[d]=p>>16&255,a[h]=p>>8&255,a[f]=255&p}}},e}(),k=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var a=this.compileNameIndex(e.names);if(t.add(a),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o=-107&&e<=107?t=[e+139]:e>=108&&e<=1131?(e-=108,t=[247+(e>>8),255&e]):e>=-1131&&e<=-108?(e=-e-108,t=[251+(e>>8),255&e]):t=e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],t},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new f,r=0,a=e.length;r"~"||"["===c||"]"===c||"("===c||")"===c||"{"===c||"}"===c||"<"===c||">"===c||"/"===c||"%"===c)&&(c="_"),s[l]=c}s=s.join(""),""===s&&(s="Bad_Font_Name"),t.add((0,n.stringToBytes)(s))}return this.compileIndex(t)},compileTopDicts:function(e,t,r){for(var n=[],a=new f,i=0,o=e.length;i>8&255,255&o]);else{var s=1+2*o;i=new Uint8Array(s),i[0]=0;for(var l=0,c=e.charset.length,u=!1,d=1;d>8&255,i[d+1]=255&h}}return this.compileTypedArray(i)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){var t,r,n=e.format;switch(n){case 0:for(t=new Uint8Array(1+e.fdSelect.length),t[0]=n,r=0;r>8&255,255&a,i];for(r=1;r>8&255,255&r,s),i=s)}var l=(o.length-3)/3;o[1]=l>>8&255,o[2]=255&l,o.push(r>>8&255,255&r),t=new Uint8Array(o);break}return this.compileTypedArray(t)},compileTypedArray:function(e){for(var t=[],r=0,n=e.length;r>8&255,255&n],s=1;for(a=0;a>8&255,255&l):3===i?o.push(l>>16&255,l>>8&255,255&l):o.push(l>>>24&255,l>>16&255,l>>8&255,255&l),r[a]&&(l+=r[a].length);for(a=0;a=65520&&e<=65535?0:e>=62976&&e<=63743?a()[e]||e:173===e?45:e}function o(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var n,a=e.length;if(7===a&&"n"===e[1]&&"i"===e[2])n=e.substring(3);else{if(!(a>=5&&a<=7))return-1;n=e.substring(1)}if(n===n.toUpperCase()&&(r=parseInt(n,16),r>=0))return r}return-1}var s=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function l(e){for(var t=0,r=s.length;t=n.begin&&e=t.begin&&e=t.begin&&e=0;n--)r+=e[n];return r}t.mapSpecialUnicodeValues=i,t.reverseIfRtl=d,t.getUnicodeRangeFor=l,t.getNormalizedUnicodes=u,t.getUnicodeForGlyph=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var n=r(2),a=r(28),i=r(31),o=r(30),s=r(11),l=function(){function e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function t(e,t){return e[t]<<8|e[t+1]}function r(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function l(r,a,i){var o,s,l,c=1===t(r,a+2)?e(r,a+8):e(r,a+16),u=t(r,a+c);if(4===u){t(r,a+c+2);var d=t(r,a+c+6)>>1;for(s=a+c+14,o=[],l=0;l>1;r>16,c=0,u=0;if(s+=10,l<0)do{o=e[s]<<8|e[s+1];var d,f,p=e[s+2]<<8|e[s+3];s+=4,1&o?(d=(e[s]<<24|e[s+1]<<16)>>16,f=(e[s+2]<<24|e[s+3]<<16)>>16,s+=4):(d=e[s++],f=e[s++]),2&o?(c=d,u=f):(c=0,u=0);var g=1,v=1,m=0,b=0;8&o?(g=v=(e[s]<<24|e[s+1]<<16)/1073741824,s+=2):64&o?(g=(e[s]<<24|e[s+1]<<16)/1073741824,v=(e[s+2]<<24|e[s+3]<<16)/1073741824,s+=4):128&o&&(g=(e[s]<<24|e[s+1]<<16)/1073741824,m=(e[s+2]<<24|e[s+3]<<16)/1073741824,b=(e[s+4]<<24|e[s+5]<<16)/1073741824,v=(e[s+6]<<24|e[s+7]<<16)/1073741824,s+=8);var y=r.glyphs[p];y&&(t.push({cmd:"save"}),t.push({cmd:"transform",args:[g,m,b,v,c,u]}),h(y,t,r),t.push({cmd:"restore"}))}while(32&o);else{var w,_,k=[];for(w=0;w0)A.push({flags:o})}for(w=0;w>16,s+=2;break;case 2:c-=e[s++];break;case 18:c+=e[s++];break}A[w].x=c}for(w=0;w>16,s+=2;break;case 4:u-=e[s++];break;case 36:u+=e[s++];break}A[w].y=u}var P=0;for(s=0;s>1,P=!0;break;case 3:u+=s.length>>1,P=!0;break;case 4:c+=s.pop(),h(l,c),P=!0;break;case 5:while(s.length>0)l+=s.shift(),c+=s.shift(),f(l,c);break;case 6:while(s.length>0){if(l+=s.shift(),f(l,c),0===s.length)break;c+=s.shift(),f(l,c)}break;case 7:while(s.length>0){if(c+=s.shift(),f(l,c),0===s.length)break;l+=s.shift(),f(l,c)}break;case 8:while(s.length>0)b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c);break;case 10:if(A=s.pop(),C=null,a.isCFFCIDFont){var E=a.fdSelect.getFDIndex(i);if(E>=0&&EMath.abs(c-L)?l+=s.shift():c+=s.shift(),p(b,w,y,_,l,c);break;default:throw new n.FormatError("unknown operator: 12 ".concat(T))}break;case 14:if(s.length>=4){var F=s.pop(),M=s.pop();c=s.pop(),l=s.pop(),t.push({cmd:"save"}),t.push({cmd:"translate",args:[l,c]});var D=d(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[F]]));m(a.glyphs[D.glyphId],t,a,D.glyphId),t.push({cmd:"restore"}),D=d(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[M]])),m(a.glyphs[D.glyphId],t,a,D.glyphId)}return;case 18:u+=s.length>>1,P=!0;break;case 19:u+=s.length>>1,v+=u+7>>3,P=!0;break;case 20:u+=s.length>>1,v+=u+7>>3,P=!0;break;case 21:c+=s.pop(),l+=s.pop(),h(l,c),P=!0;break;case 22:l+=s.pop(),h(l,c),P=!0;break;case 23:u+=s.length>>1,P=!0;break;case 24:while(s.length>2)b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c);l+=s.shift(),c+=s.shift(),f(l,c);break;case 25:while(s.length>6)l+=s.shift(),c+=s.shift(),f(l,c);b=l+s.shift(),w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+s.shift(),p(b,w,y,_,l,c);break;case 26:s.length%2&&(l+=s.shift());while(s.length>0)b=l,w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y,c=_+s.shift(),p(b,w,y,_,l,c);break;case 27:s.length%2&&(c+=s.shift());while(s.length>0)b=l+s.shift(),w=c,y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_,p(b,w,y,_,l,c);break;case 28:s.push((e[v]<<24|e[v+1]<<16)>>16),v+=2;break;case 29:A=s.pop()+a.gsubrsBias,C=a.gsubrs[A],C&&g(C);break;case 30:while(s.length>0){if(b=l,w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+(1===s.length?s.shift():0),p(b,w,y,_,l,c),0===s.length)break;b=l+s.shift(),w=c,y=b+s.shift(),_=w+s.shift(),c=_+s.shift(),l=y+(1===s.length?s.shift():0),p(b,w,y,_,l,c)}break;case 31:while(s.length>0){if(b=l+s.shift(),w=c,y=b+s.shift(),_=w+s.shift(),c=_+s.shift(),l=y+(1===s.length?s.shift():0),p(b,w,y,_,l,c),0===s.length)break;b=l,w=c+s.shift(),y=b+s.shift(),_=w+s.shift(),l=y+s.shift(),c=_+(1===s.length?s.shift():0),p(b,w,y,_,l,c)}break;default:if(T<32)throw new n.FormatError("unknown operator: ".concat(T));T<247?s.push(T-139):T<251?s.push(256*(T-247)+e[v++]+108):T<255?s.push(256*-(T-251)-e[v++]-108):(s.push((e[v]<<24|e[v+1]<<16|e[v+2]<<8|e[v+3])/65536),v+=4);break}P&&(s.length=0)}}g(e)}var b=[],y=function(){function e(t){p(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}return f(e,[{key:"getPathJs",value:function(e){var t=d(this.cmap,e),r=this.compiledGlyphs[t.glyphId];return r||(r=this.compileGlyph(this.glyphs[t.glyphId],t.glyphId),this.compiledGlyphs[t.glyphId]=r),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),r}},{key:"compileGlyph",value:function(e,t){if(!e||0===e.length||14===e[0])return b;var r=this.fontMatrix;if(this.isCFFCIDFont){var a=this.fdSelect.getFDIndex(t);if(a>=0&&an)return!0;for(var a=n-e,i=a;i>8&255,255&o):(o=65536*o|0,this.output.push(255,o>>24&255,o>>16&255,o>>8&255,255&o))}return this.output.push.apply(this.output,t),r?this.stack.splice(a,e):this.stack.length=0,!1}},t}(),c=function(){var e=55665,t=4330;function r(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function o(e,t,r){if(r>=e.length)return new Uint8Array(0);var n,a,i=0|t,o=52845,s=22719;for(n=0;n>8,i=(u+i)*o+s&65535}return c}function c(e,t,n){var a,i,o=0|t,s=52845,l=22719,c=e.length,u=c>>>1,d=new Uint8Array(u);for(a=0,i=0;a>8,o=(p+o)*s+l&65535}}}return Array.prototype.slice.call(d,n,i)}function u(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function d(t,n,a){if(n){var s=t.getBytes(),l=!(r(s[0])&&r(s[1])&&r(s[2])&&r(s[3]));t=new i.Stream(l?o(s,e,4):c(s,e,4))}this.seacAnalysisEnabled=!!a,this.stream=t,this.nextChar()}return d.prototype={readNumberArray:function(){this.getToken();var e=[];while(1){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){var e=this.getToken();return"true"===e?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){var e=!1,t=this.currentChar;while(1){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}if(u(t))return this.nextChar(),String.fromCharCode(t);var r="";do{r+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,a.isWhiteSpace)(t)&&!u(t));return r},readCharStrings:function(e,r){return-1===r?e:o(e,t,r)},extractFontProgram:function(e){var t=this.stream,r=[],n=[],a=Object.create(null);a["lenIV"]=4;var i,o,c,u,d,h={subrs:[],charstrings:[],properties:{privateData:a}};while(null!==(i=this.getToken()))if("/"===i)switch(i=this.getToken(),i){case"CharStrings":this.getToken(),this.getToken(),this.getToken(),this.getToken();while(1){if(i=this.getToken(),null===i||"end"===i)break;if("/"===i){var f=this.getToken();o=this.readInt(),this.getToken(),c=o>0?t.getBytes(o):new Uint8Array(0),u=h.properties.privateData["lenIV"],d=this.readCharStrings(c,u),this.nextChar(),i=this.getToken(),"noaccess"===i&&this.getToken(),n.push({glyph:f,encoded:d})}}break;case"Subrs":this.readInt(),this.getToken();while("dup"===this.getToken()){var p=this.readInt();o=this.readInt(),this.getToken(),c=o>0?t.getBytes(o):new Uint8Array(0),u=h.properties.privateData["lenIV"],d=this.readCharStrings(c,u),this.nextChar(),i=this.getToken(),"noaccess"===i&&this.getToken(),r[p]=d}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var g=this.readNumberArray();g.length>0&&g.length%2===0&&s&&(h.properties.privateData[i]=g);break;case"StemSnapH":case"StemSnapV":h.properties.privateData[i]=this.readNumberArray();break;case"StdHW":case"StdVW":h.properties.privateData[i]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":h.properties.privateData[i]=this.readNumber();break;case"ForceBold":h.properties.privateData[i]=this.readBoolean();break}for(var v=0;v-1&&void 0===e.widths[_]&&_>=e.firstChar&&_<=e.lastChar&&(e.widths[_]=m.width)}}return h},extractFontHeader:function(e){var t;while(null!==(t=this.getToken()))if("/"===t)switch(t=this.getToken(),t){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a,i=this.getToken();if(/^\d+$/.test(i)){a=[];var o=0|parseInt(i,10);this.getToken();for(var s=0;s=h||P<=0)(0,n.info)("Bad shading domain.");else{for(var E,R=new Float32Array(l.numComps),I=new Float32Array(1),O=0;O<=C;O++){I[0]=d+O*P,A(I,0,R,0),E=l.getRgb(R,0);var L=n.Util.makeCssRgb(E[0],E[1],E[2]);T.push([O/C,L])}var F="transparent";e.has("Background")&&(E=l.getRgb(e.get("Background"),0),F=n.Util.makeCssRgb(E[0],E[1],E[2])),p||(T.unshift([0,F]),T[1][0]+=c.SMALL_NUMBER),g||(T[T.length-1][0]-=c.SMALL_NUMBER,T.push([1,F])),this.colorStops=T}}return e.prototype={getIR:function(){var e,t,r,a,i,o=this.coordsArr,l=this.shadingType;l===s.AXIAL?(t=[o[0],o[1]],r=[o[2],o[3]],a=null,i=null,e="axial"):l===s.RADIAL?(t=[o[0],o[1]],r=[o[3],o[4]],a=o[2],i=o[5],e="radial"):(0,n.unreachable)("getPattern type unknown: ".concat(l));var c=this.matrix;if(c&&(t=n.Util.applyTransform(t,c),r=n.Util.applyTransform(r,c),l===s.RADIAL)){var u=n.Util.singularValueDecompose2dScale(c);a*=u[0],i*=u[1]}return["RadialAxial",e,this.bbox,this.colorStops,t,r,a,i]}},e}(),c.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var r=t.numComps;this.tmpCompsBuf=new Float32Array(r);var n=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(n):this.tmpCompsBuf}function t(e,t){var r=e.coords,a=e.colors,i=[],o=[],s=0;while(t.hasData){var l=t.readFlag(),c=t.readCoordinate(),u=t.readComponents();if(0===s){if(!(0<=l&&l<=2))throw new n.FormatError("Unknown type4 flag");switch(l){case 0:s=3;break;case 1:o.push(o[o.length-2],o[o.length-1]),s=1;break;case 2:o.push(o[o.length-3],o[o.length-1]),s=1;break}i.push(l)}o.push(r.length),r.push(c),a.push(u),s--,t.align()}e.figures.push({type:"triangles",coords:new Int32Array(o),colors:new Int32Array(o)})}function r(e,t,r){var n=e.coords,a=e.colors,i=[];while(t.hasData){var o=t.readCoordinate(),s=t.readComponents();i.push(n.length),n.push(o),a.push(s)}e.figures.push({type:"lattice",coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:r})}e.prototype={get hasData(){if(this.stream.end)return this.stream.pos0)return!0;var e=this.stream.getByte();return!(e<0)&&(this.buffer=e,this.bufferLength=8,!0)},readBits:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var n=this.stream.getByte();return this.buffer=n&(1<>r)>>>0}if(8===e&&0===r)return this.stream.getByte();while(r>r},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),n=this.context.decode,a=e<32?1/((1<s?s:t,r=r>l?l:r,n=n2&&void 0!==arguments[2]&&arguments[2],n="ltr";return r?n="ttb":t||(n="rtl"),{str:e,dir:n}}var h=[],f=[];function p(e,t,r){var p=!0,g=e.length;if(0===g||r)return d(e,p,r);h.length=g,f.length=g;var v,m,b=0;for(v=0;v=0;--P){if("ET"!==f[P])break;f[P]="EN"}for(P=v+1;P0&&(E=f[v-1]);var R=A;T+1I&&o(I)&&(L=I);for(I=O;I>=L;--I){var F=-1;for(v=0,m=_.length;v=0&&(u(h,F,v),F=-1):F<0&&(F=v);F>=0&&u(h,F,_.length)}for(v=0,m=h.length;v"!==M||(h[v]="")}return d(h.join(""),p)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var n=r(7),a=(0,n.getLookupTableFactory)((function(e){e["Courier"]=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e["Helvetica"]=(0,n.getLookupTableFactory)((function(e){e["space"]=278,e["exclam"]=278,e["quotedbl"]=355,e["numbersign"]=556,e["dollar"]=556,e["percent"]=889,e["ampersand"]=667,e["quoteright"]=222,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=389,e["plus"]=584,e["comma"]=278,e["hyphen"]=333,e["period"]=278,e["slash"]=278,e["zero"]=556,e["one"]=556,e["two"]=556,e["three"]=556,e["four"]=556,e["five"]=556,e["six"]=556,e["seven"]=556,e["eight"]=556,e["nine"]=556,e["colon"]=278,e["semicolon"]=278,e["less"]=584,e["equal"]=584,e["greater"]=584,e["question"]=556,e["at"]=1015,e["A"]=667,e["B"]=667,e["C"]=722,e["D"]=722,e["E"]=667,e["F"]=611,e["G"]=778,e["H"]=722,e["I"]=278,e["J"]=500,e["K"]=667,e["L"]=556,e["M"]=833,e["N"]=722,e["O"]=778,e["P"]=667,e["Q"]=778,e["R"]=722,e["S"]=667,e["T"]=611,e["U"]=722,e["V"]=667,e["W"]=944,e["X"]=667,e["Y"]=667,e["Z"]=611,e["bracketleft"]=278,e["backslash"]=278,e["bracketright"]=278,e["asciicircum"]=469,e["underscore"]=556,e["quoteleft"]=222,e["a"]=556,e["b"]=556,e["c"]=500,e["d"]=556,e["e"]=556,e["f"]=278,e["g"]=556,e["h"]=556,e["i"]=222,e["j"]=222,e["k"]=500,e["l"]=222,e["m"]=833,e["n"]=556,e["o"]=556,e["p"]=556,e["q"]=556,e["r"]=333,e["s"]=500,e["t"]=278,e["u"]=556,e["v"]=500,e["w"]=722,e["x"]=500,e["y"]=500,e["z"]=500,e["braceleft"]=334,e["bar"]=260,e["braceright"]=334,e["asciitilde"]=584,e["exclamdown"]=333,e["cent"]=556,e["sterling"]=556,e["fraction"]=167,e["yen"]=556,e["florin"]=556,e["section"]=556,e["currency"]=556,e["quotesingle"]=191,e["quotedblleft"]=333,e["guillemotleft"]=556,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=500,e["fl"]=500,e["endash"]=556,e["dagger"]=556,e["daggerdbl"]=556,e["periodcentered"]=278,e["paragraph"]=537,e["bullet"]=350,e["quotesinglbase"]=222,e["quotedblbase"]=333,e["quotedblright"]=333,e["guillemotright"]=556,e["ellipsis"]=1e3,e["perthousand"]=1e3,e["questiondown"]=611,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=1e3,e["AE"]=1e3,e["ordfeminine"]=370,e["Lslash"]=556,e["Oslash"]=778,e["OE"]=1e3,e["ordmasculine"]=365,e["ae"]=889,e["dotlessi"]=278,e["lslash"]=222,e["oslash"]=611,e["oe"]=944,e["germandbls"]=611,e["Idieresis"]=278,e["eacute"]=556,e["abreve"]=556,e["uhungarumlaut"]=556,e["ecaron"]=556,e["Ydieresis"]=667,e["divide"]=584,e["Yacute"]=667,e["Acircumflex"]=667,e["aacute"]=556,e["Ucircumflex"]=722,e["yacute"]=500,e["scommaaccent"]=500,e["ecircumflex"]=556,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=556,e["Uacute"]=722,e["uogonek"]=556,e["Edieresis"]=667,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=737,e["Emacron"]=667,e["ccaron"]=500,e["aring"]=556,e["Ncommaaccent"]=722,e["lacute"]=222,e["agrave"]=556,e["Tcommaaccent"]=611,e["Cacute"]=722,e["atilde"]=556,e["Edotaccent"]=667,e["scaron"]=500,e["scedilla"]=500,e["iacute"]=278,e["lozenge"]=471,e["Rcaron"]=722,e["Gcommaaccent"]=778,e["ucircumflex"]=556,e["acircumflex"]=556,e["Amacron"]=667,e["rcaron"]=333,e["ccedilla"]=500,e["Zdotaccent"]=611,e["Thorn"]=667,e["Omacron"]=778,e["Racute"]=722,e["Sacute"]=667,e["dcaron"]=643,e["Umacron"]=722,e["uring"]=556,e["threesuperior"]=333,e["Ograve"]=778,e["Agrave"]=667,e["Abreve"]=667,e["multiply"]=584,e["uacute"]=556,e["Tcaron"]=611,e["partialdiff"]=476,e["ydieresis"]=500,e["Nacute"]=722,e["icircumflex"]=278,e["Ecircumflex"]=667,e["adieresis"]=556,e["edieresis"]=556,e["cacute"]=500,e["nacute"]=556,e["umacron"]=556,e["Ncaron"]=722,e["Iacute"]=278,e["plusminus"]=584,e["brokenbar"]=260,e["registered"]=737,e["Gbreve"]=778,e["Idotaccent"]=278,e["summation"]=600,e["Egrave"]=667,e["racute"]=333,e["omacron"]=556,e["Zacute"]=611,e["Zcaron"]=611,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=722,e["lcommaaccent"]=222,e["tcaron"]=317,e["eogonek"]=556,e["Uogonek"]=722,e["Aacute"]=667,e["Adieresis"]=667,e["egrave"]=556,e["zacute"]=500,e["iogonek"]=222,e["Oacute"]=778,e["oacute"]=556,e["amacron"]=556,e["sacute"]=500,e["idieresis"]=278,e["Ocircumflex"]=778,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=556,e["twosuperior"]=333,e["Odieresis"]=778,e["mu"]=556,e["igrave"]=278,e["ohungarumlaut"]=556,e["Eogonek"]=667,e["dcroat"]=556,e["threequarters"]=834,e["Scedilla"]=667,e["lcaron"]=299,e["Kcommaaccent"]=667,e["Lacute"]=556,e["trademark"]=1e3,e["edotaccent"]=556,e["Igrave"]=278,e["Imacron"]=278,e["Lcaron"]=556,e["onehalf"]=834,e["lessequal"]=549,e["ocircumflex"]=556,e["ntilde"]=556,e["Uhungarumlaut"]=722,e["Eacute"]=667,e["emacron"]=556,e["gbreve"]=556,e["onequarter"]=834,e["Scaron"]=667,e["Scommaaccent"]=667,e["Ohungarumlaut"]=778,e["degree"]=400,e["ograve"]=556,e["Ccaron"]=722,e["ugrave"]=556,e["radical"]=453,e["Dcaron"]=722,e["rcommaaccent"]=333,e["Ntilde"]=722,e["otilde"]=556,e["Rcommaaccent"]=722,e["Lcommaaccent"]=556,e["Atilde"]=667,e["Aogonek"]=667,e["Aring"]=667,e["Otilde"]=778,e["zdotaccent"]=500,e["Ecaron"]=667,e["Iogonek"]=278,e["kcommaaccent"]=500,e["minus"]=584,e["Icircumflex"]=278,e["ncaron"]=556,e["tcommaaccent"]=278,e["logicalnot"]=584,e["odieresis"]=556,e["udieresis"]=556,e["notequal"]=549,e["gcommaaccent"]=556,e["eth"]=556,e["zcaron"]=500,e["ncommaaccent"]=556,e["onesuperior"]=333,e["imacron"]=278,e["Euro"]=556})),e["Helvetica-Bold"]=(0,n.getLookupTableFactory)((function(e){e["space"]=278,e["exclam"]=333,e["quotedbl"]=474,e["numbersign"]=556,e["dollar"]=556,e["percent"]=889,e["ampersand"]=722,e["quoteright"]=278,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=389,e["plus"]=584,e["comma"]=278,e["hyphen"]=333,e["period"]=278,e["slash"]=278,e["zero"]=556,e["one"]=556,e["two"]=556,e["three"]=556,e["four"]=556,e["five"]=556,e["six"]=556,e["seven"]=556,e["eight"]=556,e["nine"]=556,e["colon"]=333,e["semicolon"]=333,e["less"]=584,e["equal"]=584,e["greater"]=584,e["question"]=611,e["at"]=975,e["A"]=722,e["B"]=722,e["C"]=722,e["D"]=722,e["E"]=667,e["F"]=611,e["G"]=778,e["H"]=722,e["I"]=278,e["J"]=556,e["K"]=722,e["L"]=611,e["M"]=833,e["N"]=722,e["O"]=778,e["P"]=667,e["Q"]=778,e["R"]=722,e["S"]=667,e["T"]=611,e["U"]=722,e["V"]=667,e["W"]=944,e["X"]=667,e["Y"]=667,e["Z"]=611,e["bracketleft"]=333,e["backslash"]=278,e["bracketright"]=333,e["asciicircum"]=584,e["underscore"]=556,e["quoteleft"]=278,e["a"]=556,e["b"]=611,e["c"]=556,e["d"]=611,e["e"]=556,e["f"]=333,e["g"]=611,e["h"]=611,e["i"]=278,e["j"]=278,e["k"]=556,e["l"]=278,e["m"]=889,e["n"]=611,e["o"]=611,e["p"]=611,e["q"]=611,e["r"]=389,e["s"]=556,e["t"]=333,e["u"]=611,e["v"]=556,e["w"]=778,e["x"]=556,e["y"]=556,e["z"]=500,e["braceleft"]=389,e["bar"]=280,e["braceright"]=389,e["asciitilde"]=584,e["exclamdown"]=333,e["cent"]=556,e["sterling"]=556,e["fraction"]=167,e["yen"]=556,e["florin"]=556,e["section"]=556,e["currency"]=556,e["quotesingle"]=238,e["quotedblleft"]=500,e["guillemotleft"]=556,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=611,e["fl"]=611,e["endash"]=556,e["dagger"]=556,e["daggerdbl"]=556,e["periodcentered"]=278,e["paragraph"]=556,e["bullet"]=350,e["quotesinglbase"]=278,e["quotedblbase"]=500,e["quotedblright"]=500,e["guillemotright"]=556,e["ellipsis"]=1e3,e["perthousand"]=1e3,e["questiondown"]=611,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=1e3,e["AE"]=1e3,e["ordfeminine"]=370,e["Lslash"]=611,e["Oslash"]=778,e["OE"]=1e3,e["ordmasculine"]=365,e["ae"]=889,e["dotlessi"]=278,e["lslash"]=278,e["oslash"]=611,e["oe"]=944,e["germandbls"]=611,e["Idieresis"]=278,e["eacute"]=556,e["abreve"]=556,e["uhungarumlaut"]=611,e["ecaron"]=556,e["Ydieresis"]=667,e["divide"]=584,e["Yacute"]=667,e["Acircumflex"]=722,e["aacute"]=556,e["Ucircumflex"]=722,e["yacute"]=556,e["scommaaccent"]=556,e["ecircumflex"]=556,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=556,e["Uacute"]=722,e["uogonek"]=611,e["Edieresis"]=667,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=737,e["Emacron"]=667,e["ccaron"]=556,e["aring"]=556,e["Ncommaaccent"]=722,e["lacute"]=278,e["agrave"]=556,e["Tcommaaccent"]=611,e["Cacute"]=722,e["atilde"]=556,e["Edotaccent"]=667,e["scaron"]=556,e["scedilla"]=556,e["iacute"]=278,e["lozenge"]=494,e["Rcaron"]=722,e["Gcommaaccent"]=778,e["ucircumflex"]=611,e["acircumflex"]=556,e["Amacron"]=722,e["rcaron"]=389,e["ccedilla"]=556,e["Zdotaccent"]=611,e["Thorn"]=667,e["Omacron"]=778,e["Racute"]=722,e["Sacute"]=667,e["dcaron"]=743,e["Umacron"]=722,e["uring"]=611,e["threesuperior"]=333,e["Ograve"]=778,e["Agrave"]=722,e["Abreve"]=722,e["multiply"]=584,e["uacute"]=611,e["Tcaron"]=611,e["partialdiff"]=494,e["ydieresis"]=556,e["Nacute"]=722,e["icircumflex"]=278,e["Ecircumflex"]=667,e["adieresis"]=556,e["edieresis"]=556,e["cacute"]=556,e["nacute"]=611,e["umacron"]=611,e["Ncaron"]=722,e["Iacute"]=278,e["plusminus"]=584,e["brokenbar"]=280,e["registered"]=737,e["Gbreve"]=778,e["Idotaccent"]=278,e["summation"]=600,e["Egrave"]=667,e["racute"]=389,e["omacron"]=611,e["Zacute"]=611,e["Zcaron"]=611,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=722,e["lcommaaccent"]=278,e["tcaron"]=389,e["eogonek"]=556,e["Uogonek"]=722,e["Aacute"]=722,e["Adieresis"]=722,e["egrave"]=556,e["zacute"]=500,e["iogonek"]=278,e["Oacute"]=778,e["oacute"]=611,e["amacron"]=556,e["sacute"]=556,e["idieresis"]=278,e["Ocircumflex"]=778,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=611,e["twosuperior"]=333,e["Odieresis"]=778,e["mu"]=611,e["igrave"]=278,e["ohungarumlaut"]=611,e["Eogonek"]=667,e["dcroat"]=611,e["threequarters"]=834,e["Scedilla"]=667,e["lcaron"]=400,e["Kcommaaccent"]=722,e["Lacute"]=611,e["trademark"]=1e3,e["edotaccent"]=556,e["Igrave"]=278,e["Imacron"]=278,e["Lcaron"]=611,e["onehalf"]=834,e["lessequal"]=549,e["ocircumflex"]=611,e["ntilde"]=611,e["Uhungarumlaut"]=722,e["Eacute"]=667,e["emacron"]=556,e["gbreve"]=611,e["onequarter"]=834,e["Scaron"]=667,e["Scommaaccent"]=667,e["Ohungarumlaut"]=778,e["degree"]=400,e["ograve"]=611,e["Ccaron"]=722,e["ugrave"]=611,e["radical"]=549,e["Dcaron"]=722,e["rcommaaccent"]=389,e["Ntilde"]=722,e["otilde"]=611,e["Rcommaaccent"]=722,e["Lcommaaccent"]=611,e["Atilde"]=722,e["Aogonek"]=722,e["Aring"]=722,e["Otilde"]=778,e["zdotaccent"]=500,e["Ecaron"]=667,e["Iogonek"]=278,e["kcommaaccent"]=556,e["minus"]=584,e["Icircumflex"]=278,e["ncaron"]=611,e["tcommaaccent"]=333,e["logicalnot"]=584,e["odieresis"]=611,e["udieresis"]=611,e["notequal"]=549,e["gcommaaccent"]=611,e["eth"]=611,e["zcaron"]=500,e["ncommaaccent"]=611,e["onesuperior"]=333,e["imacron"]=278,e["Euro"]=556})),e["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)((function(e){e["space"]=278,e["exclam"]=333,e["quotedbl"]=474,e["numbersign"]=556,e["dollar"]=556,e["percent"]=889,e["ampersand"]=722,e["quoteright"]=278,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=389,e["plus"]=584,e["comma"]=278,e["hyphen"]=333,e["period"]=278,e["slash"]=278,e["zero"]=556,e["one"]=556,e["two"]=556,e["three"]=556,e["four"]=556,e["five"]=556,e["six"]=556,e["seven"]=556,e["eight"]=556,e["nine"]=556,e["colon"]=333,e["semicolon"]=333,e["less"]=584,e["equal"]=584,e["greater"]=584,e["question"]=611,e["at"]=975,e["A"]=722,e["B"]=722,e["C"]=722,e["D"]=722,e["E"]=667,e["F"]=611,e["G"]=778,e["H"]=722,e["I"]=278,e["J"]=556,e["K"]=722,e["L"]=611,e["M"]=833,e["N"]=722,e["O"]=778,e["P"]=667,e["Q"]=778,e["R"]=722,e["S"]=667,e["T"]=611,e["U"]=722,e["V"]=667,e["W"]=944,e["X"]=667,e["Y"]=667,e["Z"]=611,e["bracketleft"]=333,e["backslash"]=278,e["bracketright"]=333,e["asciicircum"]=584,e["underscore"]=556,e["quoteleft"]=278,e["a"]=556,e["b"]=611,e["c"]=556,e["d"]=611,e["e"]=556,e["f"]=333,e["g"]=611,e["h"]=611,e["i"]=278,e["j"]=278,e["k"]=556,e["l"]=278,e["m"]=889,e["n"]=611,e["o"]=611,e["p"]=611,e["q"]=611,e["r"]=389,e["s"]=556,e["t"]=333,e["u"]=611,e["v"]=556,e["w"]=778,e["x"]=556,e["y"]=556,e["z"]=500,e["braceleft"]=389,e["bar"]=280,e["braceright"]=389,e["asciitilde"]=584,e["exclamdown"]=333,e["cent"]=556,e["sterling"]=556,e["fraction"]=167,e["yen"]=556,e["florin"]=556,e["section"]=556,e["currency"]=556,e["quotesingle"]=238,e["quotedblleft"]=500,e["guillemotleft"]=556,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=611,e["fl"]=611,e["endash"]=556,e["dagger"]=556,e["daggerdbl"]=556,e["periodcentered"]=278,e["paragraph"]=556,e["bullet"]=350,e["quotesinglbase"]=278,e["quotedblbase"]=500,e["quotedblright"]=500,e["guillemotright"]=556,e["ellipsis"]=1e3,e["perthousand"]=1e3,e["questiondown"]=611,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=1e3,e["AE"]=1e3,e["ordfeminine"]=370,e["Lslash"]=611,e["Oslash"]=778,e["OE"]=1e3,e["ordmasculine"]=365,e["ae"]=889,e["dotlessi"]=278,e["lslash"]=278,e["oslash"]=611,e["oe"]=944,e["germandbls"]=611,e["Idieresis"]=278,e["eacute"]=556,e["abreve"]=556,e["uhungarumlaut"]=611,e["ecaron"]=556,e["Ydieresis"]=667,e["divide"]=584,e["Yacute"]=667,e["Acircumflex"]=722,e["aacute"]=556,e["Ucircumflex"]=722,e["yacute"]=556,e["scommaaccent"]=556,e["ecircumflex"]=556,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=556,e["Uacute"]=722,e["uogonek"]=611,e["Edieresis"]=667,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=737,e["Emacron"]=667,e["ccaron"]=556,e["aring"]=556,e["Ncommaaccent"]=722,e["lacute"]=278,e["agrave"]=556,e["Tcommaaccent"]=611,e["Cacute"]=722,e["atilde"]=556,e["Edotaccent"]=667,e["scaron"]=556,e["scedilla"]=556,e["iacute"]=278,e["lozenge"]=494,e["Rcaron"]=722,e["Gcommaaccent"]=778,e["ucircumflex"]=611,e["acircumflex"]=556,e["Amacron"]=722,e["rcaron"]=389,e["ccedilla"]=556,e["Zdotaccent"]=611,e["Thorn"]=667,e["Omacron"]=778,e["Racute"]=722,e["Sacute"]=667,e["dcaron"]=743,e["Umacron"]=722,e["uring"]=611,e["threesuperior"]=333,e["Ograve"]=778,e["Agrave"]=722,e["Abreve"]=722,e["multiply"]=584,e["uacute"]=611,e["Tcaron"]=611,e["partialdiff"]=494,e["ydieresis"]=556,e["Nacute"]=722,e["icircumflex"]=278,e["Ecircumflex"]=667,e["adieresis"]=556,e["edieresis"]=556,e["cacute"]=556,e["nacute"]=611,e["umacron"]=611,e["Ncaron"]=722,e["Iacute"]=278,e["plusminus"]=584,e["brokenbar"]=280,e["registered"]=737,e["Gbreve"]=778,e["Idotaccent"]=278,e["summation"]=600,e["Egrave"]=667,e["racute"]=389,e["omacron"]=611,e["Zacute"]=611,e["Zcaron"]=611,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=722,e["lcommaaccent"]=278,e["tcaron"]=389,e["eogonek"]=556,e["Uogonek"]=722,e["Aacute"]=722,e["Adieresis"]=722,e["egrave"]=556,e["zacute"]=500,e["iogonek"]=278,e["Oacute"]=778,e["oacute"]=611,e["amacron"]=556,e["sacute"]=556,e["idieresis"]=278,e["Ocircumflex"]=778,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=611,e["twosuperior"]=333,e["Odieresis"]=778,e["mu"]=611,e["igrave"]=278,e["ohungarumlaut"]=611,e["Eogonek"]=667,e["dcroat"]=611,e["threequarters"]=834,e["Scedilla"]=667,e["lcaron"]=400,e["Kcommaaccent"]=722,e["Lacute"]=611,e["trademark"]=1e3,e["edotaccent"]=556,e["Igrave"]=278,e["Imacron"]=278,e["Lcaron"]=611,e["onehalf"]=834,e["lessequal"]=549,e["ocircumflex"]=611,e["ntilde"]=611,e["Uhungarumlaut"]=722,e["Eacute"]=667,e["emacron"]=556,e["gbreve"]=611,e["onequarter"]=834,e["Scaron"]=667,e["Scommaaccent"]=667,e["Ohungarumlaut"]=778,e["degree"]=400,e["ograve"]=611,e["Ccaron"]=722,e["ugrave"]=611,e["radical"]=549,e["Dcaron"]=722,e["rcommaaccent"]=389,e["Ntilde"]=722,e["otilde"]=611,e["Rcommaaccent"]=722,e["Lcommaaccent"]=611,e["Atilde"]=722,e["Aogonek"]=722,e["Aring"]=722,e["Otilde"]=778,e["zdotaccent"]=500,e["Ecaron"]=667,e["Iogonek"]=278,e["kcommaaccent"]=556,e["minus"]=584,e["Icircumflex"]=278,e["ncaron"]=611,e["tcommaaccent"]=333,e["logicalnot"]=584,e["odieresis"]=611,e["udieresis"]=611,e["notequal"]=549,e["gcommaaccent"]=611,e["eth"]=611,e["zcaron"]=500,e["ncommaaccent"]=611,e["onesuperior"]=333,e["imacron"]=278,e["Euro"]=556})),e["Helvetica-Oblique"]=(0,n.getLookupTableFactory)((function(e){e["space"]=278,e["exclam"]=278,e["quotedbl"]=355,e["numbersign"]=556,e["dollar"]=556,e["percent"]=889,e["ampersand"]=667,e["quoteright"]=222,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=389,e["plus"]=584,e["comma"]=278,e["hyphen"]=333,e["period"]=278,e["slash"]=278,e["zero"]=556,e["one"]=556,e["two"]=556,e["three"]=556,e["four"]=556,e["five"]=556,e["six"]=556,e["seven"]=556,e["eight"]=556,e["nine"]=556,e["colon"]=278,e["semicolon"]=278,e["less"]=584,e["equal"]=584,e["greater"]=584,e["question"]=556,e["at"]=1015,e["A"]=667,e["B"]=667,e["C"]=722,e["D"]=722,e["E"]=667,e["F"]=611,e["G"]=778,e["H"]=722,e["I"]=278,e["J"]=500,e["K"]=667,e["L"]=556,e["M"]=833,e["N"]=722,e["O"]=778,e["P"]=667,e["Q"]=778,e["R"]=722,e["S"]=667,e["T"]=611,e["U"]=722,e["V"]=667,e["W"]=944,e["X"]=667,e["Y"]=667,e["Z"]=611,e["bracketleft"]=278,e["backslash"]=278,e["bracketright"]=278,e["asciicircum"]=469,e["underscore"]=556,e["quoteleft"]=222,e["a"]=556,e["b"]=556,e["c"]=500,e["d"]=556,e["e"]=556,e["f"]=278,e["g"]=556,e["h"]=556,e["i"]=222,e["j"]=222,e["k"]=500,e["l"]=222,e["m"]=833,e["n"]=556,e["o"]=556,e["p"]=556,e["q"]=556,e["r"]=333,e["s"]=500,e["t"]=278,e["u"]=556,e["v"]=500,e["w"]=722,e["x"]=500,e["y"]=500,e["z"]=500,e["braceleft"]=334,e["bar"]=260,e["braceright"]=334,e["asciitilde"]=584,e["exclamdown"]=333,e["cent"]=556,e["sterling"]=556,e["fraction"]=167,e["yen"]=556,e["florin"]=556,e["section"]=556,e["currency"]=556,e["quotesingle"]=191,e["quotedblleft"]=333,e["guillemotleft"]=556,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=500,e["fl"]=500,e["endash"]=556,e["dagger"]=556,e["daggerdbl"]=556,e["periodcentered"]=278,e["paragraph"]=537,e["bullet"]=350,e["quotesinglbase"]=222,e["quotedblbase"]=333,e["quotedblright"]=333,e["guillemotright"]=556,e["ellipsis"]=1e3,e["perthousand"]=1e3,e["questiondown"]=611,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=1e3,e["AE"]=1e3,e["ordfeminine"]=370,e["Lslash"]=556,e["Oslash"]=778,e["OE"]=1e3,e["ordmasculine"]=365,e["ae"]=889,e["dotlessi"]=278,e["lslash"]=222,e["oslash"]=611,e["oe"]=944,e["germandbls"]=611,e["Idieresis"]=278,e["eacute"]=556,e["abreve"]=556,e["uhungarumlaut"]=556,e["ecaron"]=556,e["Ydieresis"]=667,e["divide"]=584,e["Yacute"]=667,e["Acircumflex"]=667,e["aacute"]=556,e["Ucircumflex"]=722,e["yacute"]=500,e["scommaaccent"]=500,e["ecircumflex"]=556,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=556,e["Uacute"]=722,e["uogonek"]=556,e["Edieresis"]=667,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=737,e["Emacron"]=667,e["ccaron"]=500,e["aring"]=556,e["Ncommaaccent"]=722,e["lacute"]=222,e["agrave"]=556,e["Tcommaaccent"]=611,e["Cacute"]=722,e["atilde"]=556,e["Edotaccent"]=667,e["scaron"]=500,e["scedilla"]=500,e["iacute"]=278,e["lozenge"]=471,e["Rcaron"]=722,e["Gcommaaccent"]=778,e["ucircumflex"]=556,e["acircumflex"]=556,e["Amacron"]=667,e["rcaron"]=333,e["ccedilla"]=500,e["Zdotaccent"]=611,e["Thorn"]=667,e["Omacron"]=778,e["Racute"]=722,e["Sacute"]=667,e["dcaron"]=643,e["Umacron"]=722,e["uring"]=556,e["threesuperior"]=333,e["Ograve"]=778,e["Agrave"]=667,e["Abreve"]=667,e["multiply"]=584,e["uacute"]=556,e["Tcaron"]=611,e["partialdiff"]=476,e["ydieresis"]=500,e["Nacute"]=722,e["icircumflex"]=278,e["Ecircumflex"]=667,e["adieresis"]=556,e["edieresis"]=556,e["cacute"]=500,e["nacute"]=556,e["umacron"]=556,e["Ncaron"]=722,e["Iacute"]=278,e["plusminus"]=584,e["brokenbar"]=260,e["registered"]=737,e["Gbreve"]=778,e["Idotaccent"]=278,e["summation"]=600,e["Egrave"]=667,e["racute"]=333,e["omacron"]=556,e["Zacute"]=611,e["Zcaron"]=611,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=722,e["lcommaaccent"]=222,e["tcaron"]=317,e["eogonek"]=556,e["Uogonek"]=722,e["Aacute"]=667,e["Adieresis"]=667,e["egrave"]=556,e["zacute"]=500,e["iogonek"]=222,e["Oacute"]=778,e["oacute"]=556,e["amacron"]=556,e["sacute"]=500,e["idieresis"]=278,e["Ocircumflex"]=778,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=556,e["twosuperior"]=333,e["Odieresis"]=778,e["mu"]=556,e["igrave"]=278,e["ohungarumlaut"]=556,e["Eogonek"]=667,e["dcroat"]=556,e["threequarters"]=834,e["Scedilla"]=667,e["lcaron"]=299,e["Kcommaaccent"]=667,e["Lacute"]=556,e["trademark"]=1e3,e["edotaccent"]=556,e["Igrave"]=278,e["Imacron"]=278,e["Lcaron"]=556,e["onehalf"]=834,e["lessequal"]=549,e["ocircumflex"]=556,e["ntilde"]=556,e["Uhungarumlaut"]=722,e["Eacute"]=667,e["emacron"]=556,e["gbreve"]=556,e["onequarter"]=834,e["Scaron"]=667,e["Scommaaccent"]=667,e["Ohungarumlaut"]=778,e["degree"]=400,e["ograve"]=556,e["Ccaron"]=722,e["ugrave"]=556,e["radical"]=453,e["Dcaron"]=722,e["rcommaaccent"]=333,e["Ntilde"]=722,e["otilde"]=556,e["Rcommaaccent"]=722,e["Lcommaaccent"]=556,e["Atilde"]=667,e["Aogonek"]=667,e["Aring"]=667,e["Otilde"]=778,e["zdotaccent"]=500,e["Ecaron"]=667,e["Iogonek"]=278,e["kcommaaccent"]=500,e["minus"]=584,e["Icircumflex"]=278,e["ncaron"]=556,e["tcommaaccent"]=278,e["logicalnot"]=584,e["odieresis"]=556,e["udieresis"]=556,e["notequal"]=549,e["gcommaaccent"]=556,e["eth"]=556,e["zcaron"]=500,e["ncommaaccent"]=556,e["onesuperior"]=333,e["imacron"]=278,e["Euro"]=556})),e["Symbol"]=(0,n.getLookupTableFactory)((function(e){e["space"]=250,e["exclam"]=333,e["universal"]=713,e["numbersign"]=500,e["existential"]=549,e["percent"]=833,e["ampersand"]=778,e["suchthat"]=439,e["parenleft"]=333,e["parenright"]=333,e["asteriskmath"]=500,e["plus"]=549,e["comma"]=250,e["minus"]=549,e["period"]=250,e["slash"]=278,e["zero"]=500,e["one"]=500,e["two"]=500,e["three"]=500,e["four"]=500,e["five"]=500,e["six"]=500,e["seven"]=500,e["eight"]=500,e["nine"]=500,e["colon"]=278,e["semicolon"]=278,e["less"]=549,e["equal"]=549,e["greater"]=549,e["question"]=444,e["congruent"]=549,e["Alpha"]=722,e["Beta"]=667,e["Chi"]=722,e["Delta"]=612,e["Epsilon"]=611,e["Phi"]=763,e["Gamma"]=603,e["Eta"]=722,e["Iota"]=333,e["theta1"]=631,e["Kappa"]=722,e["Lambda"]=686,e["Mu"]=889,e["Nu"]=722,e["Omicron"]=722,e["Pi"]=768,e["Theta"]=741,e["Rho"]=556,e["Sigma"]=592,e["Tau"]=611,e["Upsilon"]=690,e["sigma1"]=439,e["Omega"]=768,e["Xi"]=645,e["Psi"]=795,e["Zeta"]=611,e["bracketleft"]=333,e["therefore"]=863,e["bracketright"]=333,e["perpendicular"]=658,e["underscore"]=500,e["radicalex"]=500,e["alpha"]=631,e["beta"]=549,e["chi"]=549,e["delta"]=494,e["epsilon"]=439,e["phi"]=521,e["gamma"]=411,e["eta"]=603,e["iota"]=329,e["phi1"]=603,e["kappa"]=549,e["lambda"]=549,e["mu"]=576,e["nu"]=521,e["omicron"]=549,e["pi"]=549,e["theta"]=521,e["rho"]=549,e["sigma"]=603,e["tau"]=439,e["upsilon"]=576,e["omega1"]=713,e["omega"]=686,e["xi"]=493,e["psi"]=686,e["zeta"]=494,e["braceleft"]=480,e["bar"]=200,e["braceright"]=480,e["similar"]=549,e["Euro"]=750,e["Upsilon1"]=620,e["minute"]=247,e["lessequal"]=549,e["fraction"]=167,e["infinity"]=713,e["florin"]=500,e["club"]=753,e["diamond"]=753,e["heart"]=753,e["spade"]=753,e["arrowboth"]=1042,e["arrowleft"]=987,e["arrowup"]=603,e["arrowright"]=987,e["arrowdown"]=603,e["degree"]=400,e["plusminus"]=549,e["second"]=411,e["greaterequal"]=549,e["multiply"]=549,e["proportional"]=713,e["partialdiff"]=494,e["bullet"]=460,e["divide"]=549,e["notequal"]=549,e["equivalence"]=549,e["approxequal"]=549,e["ellipsis"]=1e3,e["arrowvertex"]=603,e["arrowhorizex"]=1e3,e["carriagereturn"]=658,e["aleph"]=823,e["Ifraktur"]=686,e["Rfraktur"]=795,e["weierstrass"]=987,e["circlemultiply"]=768,e["circleplus"]=768,e["emptyset"]=823,e["intersection"]=768,e["union"]=768,e["propersuperset"]=713,e["reflexsuperset"]=713,e["notsubset"]=713,e["propersubset"]=713,e["reflexsubset"]=713,e["element"]=713,e["notelement"]=713,e["angle"]=768,e["gradient"]=713,e["registerserif"]=790,e["copyrightserif"]=790,e["trademarkserif"]=890,e["product"]=823,e["radical"]=549,e["dotmath"]=250,e["logicalnot"]=713,e["logicaland"]=603,e["logicalor"]=603,e["arrowdblboth"]=1042,e["arrowdblleft"]=987,e["arrowdblup"]=603,e["arrowdblright"]=987,e["arrowdbldown"]=603,e["lozenge"]=494,e["angleleft"]=329,e["registersans"]=790,e["copyrightsans"]=790,e["trademarksans"]=786,e["summation"]=713,e["parenlefttp"]=384,e["parenleftex"]=384,e["parenleftbt"]=384,e["bracketlefttp"]=384,e["bracketleftex"]=384,e["bracketleftbt"]=384,e["bracelefttp"]=494,e["braceleftmid"]=494,e["braceleftbt"]=494,e["braceex"]=494,e["angleright"]=329,e["integral"]=274,e["integraltp"]=686,e["integralex"]=686,e["integralbt"]=686,e["parenrighttp"]=384,e["parenrightex"]=384,e["parenrightbt"]=384,e["bracketrighttp"]=384,e["bracketrightex"]=384,e["bracketrightbt"]=384,e["bracerighttp"]=494,e["bracerightmid"]=494,e["bracerightbt"]=494,e["apple"]=790})),e["Times-Roman"]=(0,n.getLookupTableFactory)((function(e){e["space"]=250,e["exclam"]=333,e["quotedbl"]=408,e["numbersign"]=500,e["dollar"]=500,e["percent"]=833,e["ampersand"]=778,e["quoteright"]=333,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=500,e["plus"]=564,e["comma"]=250,e["hyphen"]=333,e["period"]=250,e["slash"]=278,e["zero"]=500,e["one"]=500,e["two"]=500,e["three"]=500,e["four"]=500,e["five"]=500,e["six"]=500,e["seven"]=500,e["eight"]=500,e["nine"]=500,e["colon"]=278,e["semicolon"]=278,e["less"]=564,e["equal"]=564,e["greater"]=564,e["question"]=444,e["at"]=921,e["A"]=722,e["B"]=667,e["C"]=667,e["D"]=722,e["E"]=611,e["F"]=556,e["G"]=722,e["H"]=722,e["I"]=333,e["J"]=389,e["K"]=722,e["L"]=611,e["M"]=889,e["N"]=722,e["O"]=722,e["P"]=556,e["Q"]=722,e["R"]=667,e["S"]=556,e["T"]=611,e["U"]=722,e["V"]=722,e["W"]=944,e["X"]=722,e["Y"]=722,e["Z"]=611,e["bracketleft"]=333,e["backslash"]=278,e["bracketright"]=333,e["asciicircum"]=469,e["underscore"]=500,e["quoteleft"]=333,e["a"]=444,e["b"]=500,e["c"]=444,e["d"]=500,e["e"]=444,e["f"]=333,e["g"]=500,e["h"]=500,e["i"]=278,e["j"]=278,e["k"]=500,e["l"]=278,e["m"]=778,e["n"]=500,e["o"]=500,e["p"]=500,e["q"]=500,e["r"]=333,e["s"]=389,e["t"]=278,e["u"]=500,e["v"]=500,e["w"]=722,e["x"]=500,e["y"]=500,e["z"]=444,e["braceleft"]=480,e["bar"]=200,e["braceright"]=480,e["asciitilde"]=541,e["exclamdown"]=333,e["cent"]=500,e["sterling"]=500,e["fraction"]=167,e["yen"]=500,e["florin"]=500,e["section"]=500,e["currency"]=500,e["quotesingle"]=180,e["quotedblleft"]=444,e["guillemotleft"]=500,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=556,e["fl"]=556,e["endash"]=500,e["dagger"]=500,e["daggerdbl"]=500,e["periodcentered"]=250,e["paragraph"]=453,e["bullet"]=350,e["quotesinglbase"]=333,e["quotedblbase"]=444,e["quotedblright"]=444,e["guillemotright"]=500,e["ellipsis"]=1e3,e["perthousand"]=1e3,e["questiondown"]=444,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=1e3,e["AE"]=889,e["ordfeminine"]=276,e["Lslash"]=611,e["Oslash"]=722,e["OE"]=889,e["ordmasculine"]=310,e["ae"]=667,e["dotlessi"]=278,e["lslash"]=278,e["oslash"]=500,e["oe"]=722,e["germandbls"]=500,e["Idieresis"]=333,e["eacute"]=444,e["abreve"]=444,e["uhungarumlaut"]=500,e["ecaron"]=444,e["Ydieresis"]=722,e["divide"]=564,e["Yacute"]=722,e["Acircumflex"]=722,e["aacute"]=444,e["Ucircumflex"]=722,e["yacute"]=500,e["scommaaccent"]=389,e["ecircumflex"]=444,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=444,e["Uacute"]=722,e["uogonek"]=500,e["Edieresis"]=611,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=760,e["Emacron"]=611,e["ccaron"]=444,e["aring"]=444,e["Ncommaaccent"]=722,e["lacute"]=278,e["agrave"]=444,e["Tcommaaccent"]=611,e["Cacute"]=667,e["atilde"]=444,e["Edotaccent"]=611,e["scaron"]=389,e["scedilla"]=389,e["iacute"]=278,e["lozenge"]=471,e["Rcaron"]=667,e["Gcommaaccent"]=722,e["ucircumflex"]=500,e["acircumflex"]=444,e["Amacron"]=722,e["rcaron"]=333,e["ccedilla"]=444,e["Zdotaccent"]=611,e["Thorn"]=556,e["Omacron"]=722,e["Racute"]=667,e["Sacute"]=556,e["dcaron"]=588,e["Umacron"]=722,e["uring"]=500,e["threesuperior"]=300,e["Ograve"]=722,e["Agrave"]=722,e["Abreve"]=722,e["multiply"]=564,e["uacute"]=500,e["Tcaron"]=611,e["partialdiff"]=476,e["ydieresis"]=500,e["Nacute"]=722,e["icircumflex"]=278,e["Ecircumflex"]=611,e["adieresis"]=444,e["edieresis"]=444,e["cacute"]=444,e["nacute"]=500,e["umacron"]=500,e["Ncaron"]=722,e["Iacute"]=333,e["plusminus"]=564,e["brokenbar"]=200,e["registered"]=760,e["Gbreve"]=722,e["Idotaccent"]=333,e["summation"]=600,e["Egrave"]=611,e["racute"]=333,e["omacron"]=500,e["Zacute"]=611,e["Zcaron"]=611,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=667,e["lcommaaccent"]=278,e["tcaron"]=326,e["eogonek"]=444,e["Uogonek"]=722,e["Aacute"]=722,e["Adieresis"]=722,e["egrave"]=444,e["zacute"]=444,e["iogonek"]=278,e["Oacute"]=722,e["oacute"]=500,e["amacron"]=444,e["sacute"]=389,e["idieresis"]=278,e["Ocircumflex"]=722,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=500,e["twosuperior"]=300,e["Odieresis"]=722,e["mu"]=500,e["igrave"]=278,e["ohungarumlaut"]=500,e["Eogonek"]=611,e["dcroat"]=500,e["threequarters"]=750,e["Scedilla"]=556,e["lcaron"]=344,e["Kcommaaccent"]=722,e["Lacute"]=611,e["trademark"]=980,e["edotaccent"]=444,e["Igrave"]=333,e["Imacron"]=333,e["Lcaron"]=611,e["onehalf"]=750,e["lessequal"]=549,e["ocircumflex"]=500,e["ntilde"]=500,e["Uhungarumlaut"]=722,e["Eacute"]=611,e["emacron"]=444,e["gbreve"]=500,e["onequarter"]=750,e["Scaron"]=556,e["Scommaaccent"]=556,e["Ohungarumlaut"]=722,e["degree"]=400,e["ograve"]=500,e["Ccaron"]=667,e["ugrave"]=500,e["radical"]=453,e["Dcaron"]=722,e["rcommaaccent"]=333,e["Ntilde"]=722,e["otilde"]=500,e["Rcommaaccent"]=667,e["Lcommaaccent"]=611,e["Atilde"]=722,e["Aogonek"]=722,e["Aring"]=722,e["Otilde"]=722,e["zdotaccent"]=444,e["Ecaron"]=611,e["Iogonek"]=333,e["kcommaaccent"]=500,e["minus"]=564,e["Icircumflex"]=333,e["ncaron"]=500,e["tcommaaccent"]=278,e["logicalnot"]=564,e["odieresis"]=500,e["udieresis"]=500,e["notequal"]=549,e["gcommaaccent"]=500,e["eth"]=500,e["zcaron"]=444,e["ncommaaccent"]=500,e["onesuperior"]=300,e["imacron"]=278,e["Euro"]=500})),e["Times-Bold"]=(0,n.getLookupTableFactory)((function(e){e["space"]=250,e["exclam"]=333,e["quotedbl"]=555,e["numbersign"]=500,e["dollar"]=500,e["percent"]=1e3,e["ampersand"]=833,e["quoteright"]=333,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=500,e["plus"]=570,e["comma"]=250,e["hyphen"]=333,e["period"]=250,e["slash"]=278,e["zero"]=500,e["one"]=500,e["two"]=500,e["three"]=500,e["four"]=500,e["five"]=500,e["six"]=500,e["seven"]=500,e["eight"]=500,e["nine"]=500,e["colon"]=333,e["semicolon"]=333,e["less"]=570,e["equal"]=570,e["greater"]=570,e["question"]=500,e["at"]=930,e["A"]=722,e["B"]=667,e["C"]=722,e["D"]=722,e["E"]=667,e["F"]=611,e["G"]=778,e["H"]=778,e["I"]=389,e["J"]=500,e["K"]=778,e["L"]=667,e["M"]=944,e["N"]=722,e["O"]=778,e["P"]=611,e["Q"]=778,e["R"]=722,e["S"]=556,e["T"]=667,e["U"]=722,e["V"]=722,e["W"]=1e3,e["X"]=722,e["Y"]=722,e["Z"]=667,e["bracketleft"]=333,e["backslash"]=278,e["bracketright"]=333,e["asciicircum"]=581,e["underscore"]=500,e["quoteleft"]=333,e["a"]=500,e["b"]=556,e["c"]=444,e["d"]=556,e["e"]=444,e["f"]=333,e["g"]=500,e["h"]=556,e["i"]=278,e["j"]=333,e["k"]=556,e["l"]=278,e["m"]=833,e["n"]=556,e["o"]=500,e["p"]=556,e["q"]=556,e["r"]=444,e["s"]=389,e["t"]=333,e["u"]=556,e["v"]=500,e["w"]=722,e["x"]=500,e["y"]=500,e["z"]=444,e["braceleft"]=394,e["bar"]=220,e["braceright"]=394,e["asciitilde"]=520,e["exclamdown"]=333,e["cent"]=500,e["sterling"]=500,e["fraction"]=167,e["yen"]=500,e["florin"]=500,e["section"]=500,e["currency"]=500,e["quotesingle"]=278,e["quotedblleft"]=500,e["guillemotleft"]=500,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=556,e["fl"]=556,e["endash"]=500,e["dagger"]=500,e["daggerdbl"]=500,e["periodcentered"]=250,e["paragraph"]=540,e["bullet"]=350,e["quotesinglbase"]=333,e["quotedblbase"]=500,e["quotedblright"]=500,e["guillemotright"]=500,e["ellipsis"]=1e3,e["perthousand"]=1e3,e["questiondown"]=500,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=1e3,e["AE"]=1e3,e["ordfeminine"]=300,e["Lslash"]=667,e["Oslash"]=778,e["OE"]=1e3,e["ordmasculine"]=330,e["ae"]=722,e["dotlessi"]=278,e["lslash"]=278,e["oslash"]=500,e["oe"]=722,e["germandbls"]=556,e["Idieresis"]=389,e["eacute"]=444,e["abreve"]=500,e["uhungarumlaut"]=556,e["ecaron"]=444,e["Ydieresis"]=722,e["divide"]=570,e["Yacute"]=722,e["Acircumflex"]=722,e["aacute"]=500,e["Ucircumflex"]=722,e["yacute"]=500,e["scommaaccent"]=389,e["ecircumflex"]=444,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=500,e["Uacute"]=722,e["uogonek"]=556,e["Edieresis"]=667,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=747,e["Emacron"]=667,e["ccaron"]=444,e["aring"]=500,e["Ncommaaccent"]=722,e["lacute"]=278,e["agrave"]=500,e["Tcommaaccent"]=667,e["Cacute"]=722,e["atilde"]=500,e["Edotaccent"]=667,e["scaron"]=389,e["scedilla"]=389,e["iacute"]=278,e["lozenge"]=494,e["Rcaron"]=722,e["Gcommaaccent"]=778,e["ucircumflex"]=556,e["acircumflex"]=500,e["Amacron"]=722,e["rcaron"]=444,e["ccedilla"]=444,e["Zdotaccent"]=667,e["Thorn"]=611,e["Omacron"]=778,e["Racute"]=722,e["Sacute"]=556,e["dcaron"]=672,e["Umacron"]=722,e["uring"]=556,e["threesuperior"]=300,e["Ograve"]=778,e["Agrave"]=722,e["Abreve"]=722,e["multiply"]=570,e["uacute"]=556,e["Tcaron"]=667,e["partialdiff"]=494,e["ydieresis"]=500,e["Nacute"]=722,e["icircumflex"]=278,e["Ecircumflex"]=667,e["adieresis"]=500,e["edieresis"]=444,e["cacute"]=444,e["nacute"]=556,e["umacron"]=556,e["Ncaron"]=722,e["Iacute"]=389,e["plusminus"]=570,e["brokenbar"]=220,e["registered"]=747,e["Gbreve"]=778,e["Idotaccent"]=389,e["summation"]=600,e["Egrave"]=667,e["racute"]=444,e["omacron"]=500,e["Zacute"]=667,e["Zcaron"]=667,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=722,e["lcommaaccent"]=278,e["tcaron"]=416,e["eogonek"]=444,e["Uogonek"]=722,e["Aacute"]=722,e["Adieresis"]=722,e["egrave"]=444,e["zacute"]=444,e["iogonek"]=278,e["Oacute"]=778,e["oacute"]=500,e["amacron"]=500,e["sacute"]=389,e["idieresis"]=278,e["Ocircumflex"]=778,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=556,e["twosuperior"]=300,e["Odieresis"]=778,e["mu"]=556,e["igrave"]=278,e["ohungarumlaut"]=500,e["Eogonek"]=667,e["dcroat"]=556,e["threequarters"]=750,e["Scedilla"]=556,e["lcaron"]=394,e["Kcommaaccent"]=778,e["Lacute"]=667,e["trademark"]=1e3,e["edotaccent"]=444,e["Igrave"]=389,e["Imacron"]=389,e["Lcaron"]=667,e["onehalf"]=750,e["lessequal"]=549,e["ocircumflex"]=500,e["ntilde"]=556,e["Uhungarumlaut"]=722,e["Eacute"]=667,e["emacron"]=444,e["gbreve"]=500,e["onequarter"]=750,e["Scaron"]=556,e["Scommaaccent"]=556,e["Ohungarumlaut"]=778,e["degree"]=400,e["ograve"]=500,e["Ccaron"]=722,e["ugrave"]=556,e["radical"]=549,e["Dcaron"]=722,e["rcommaaccent"]=444,e["Ntilde"]=722,e["otilde"]=500,e["Rcommaaccent"]=722,e["Lcommaaccent"]=667,e["Atilde"]=722,e["Aogonek"]=722,e["Aring"]=722,e["Otilde"]=778,e["zdotaccent"]=444,e["Ecaron"]=667,e["Iogonek"]=389,e["kcommaaccent"]=556,e["minus"]=570,e["Icircumflex"]=389,e["ncaron"]=556,e["tcommaaccent"]=333,e["logicalnot"]=570,e["odieresis"]=500,e["udieresis"]=556,e["notequal"]=549,e["gcommaaccent"]=500,e["eth"]=500,e["zcaron"]=444,e["ncommaaccent"]=556,e["onesuperior"]=300,e["imacron"]=278,e["Euro"]=500})),e["Times-BoldItalic"]=(0,n.getLookupTableFactory)((function(e){e["space"]=250,e["exclam"]=389,e["quotedbl"]=555,e["numbersign"]=500,e["dollar"]=500,e["percent"]=833,e["ampersand"]=778,e["quoteright"]=333,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=500,e["plus"]=570,e["comma"]=250,e["hyphen"]=333,e["period"]=250,e["slash"]=278,e["zero"]=500,e["one"]=500,e["two"]=500,e["three"]=500,e["four"]=500,e["five"]=500,e["six"]=500,e["seven"]=500,e["eight"]=500,e["nine"]=500,e["colon"]=333,e["semicolon"]=333,e["less"]=570,e["equal"]=570,e["greater"]=570,e["question"]=500,e["at"]=832,e["A"]=667,e["B"]=667,e["C"]=667,e["D"]=722,e["E"]=667,e["F"]=667,e["G"]=722,e["H"]=778,e["I"]=389,e["J"]=500,e["K"]=667,e["L"]=611,e["M"]=889,e["N"]=722,e["O"]=722,e["P"]=611,e["Q"]=722,e["R"]=667,e["S"]=556,e["T"]=611,e["U"]=722,e["V"]=667,e["W"]=889,e["X"]=667,e["Y"]=611,e["Z"]=611,e["bracketleft"]=333,e["backslash"]=278,e["bracketright"]=333,e["asciicircum"]=570,e["underscore"]=500,e["quoteleft"]=333,e["a"]=500,e["b"]=500,e["c"]=444,e["d"]=500,e["e"]=444,e["f"]=333,e["g"]=500,e["h"]=556,e["i"]=278,e["j"]=278,e["k"]=500,e["l"]=278,e["m"]=778,e["n"]=556,e["o"]=500,e["p"]=500,e["q"]=500,e["r"]=389,e["s"]=389,e["t"]=278,e["u"]=556,e["v"]=444,e["w"]=667,e["x"]=500,e["y"]=444,e["z"]=389,e["braceleft"]=348,e["bar"]=220,e["braceright"]=348,e["asciitilde"]=570,e["exclamdown"]=389,e["cent"]=500,e["sterling"]=500,e["fraction"]=167,e["yen"]=500,e["florin"]=500,e["section"]=500,e["currency"]=500,e["quotesingle"]=278,e["quotedblleft"]=500,e["guillemotleft"]=500,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=556,e["fl"]=556,e["endash"]=500,e["dagger"]=500,e["daggerdbl"]=500,e["periodcentered"]=250,e["paragraph"]=500,e["bullet"]=350,e["quotesinglbase"]=333,e["quotedblbase"]=500,e["quotedblright"]=500,e["guillemotright"]=500,e["ellipsis"]=1e3,e["perthousand"]=1e3,e["questiondown"]=500,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=1e3,e["AE"]=944,e["ordfeminine"]=266,e["Lslash"]=611,e["Oslash"]=722,e["OE"]=944,e["ordmasculine"]=300,e["ae"]=722,e["dotlessi"]=278,e["lslash"]=278,e["oslash"]=500,e["oe"]=722,e["germandbls"]=500,e["Idieresis"]=389,e["eacute"]=444,e["abreve"]=500,e["uhungarumlaut"]=556,e["ecaron"]=444,e["Ydieresis"]=611,e["divide"]=570,e["Yacute"]=611,e["Acircumflex"]=667,e["aacute"]=500,e["Ucircumflex"]=722,e["yacute"]=444,e["scommaaccent"]=389,e["ecircumflex"]=444,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=500,e["Uacute"]=722,e["uogonek"]=556,e["Edieresis"]=667,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=747,e["Emacron"]=667,e["ccaron"]=444,e["aring"]=500,e["Ncommaaccent"]=722,e["lacute"]=278,e["agrave"]=500,e["Tcommaaccent"]=611,e["Cacute"]=667,e["atilde"]=500,e["Edotaccent"]=667,e["scaron"]=389,e["scedilla"]=389,e["iacute"]=278,e["lozenge"]=494,e["Rcaron"]=667,e["Gcommaaccent"]=722,e["ucircumflex"]=556,e["acircumflex"]=500,e["Amacron"]=667,e["rcaron"]=389,e["ccedilla"]=444,e["Zdotaccent"]=611,e["Thorn"]=611,e["Omacron"]=722,e["Racute"]=667,e["Sacute"]=556,e["dcaron"]=608,e["Umacron"]=722,e["uring"]=556,e["threesuperior"]=300,e["Ograve"]=722,e["Agrave"]=667,e["Abreve"]=667,e["multiply"]=570,e["uacute"]=556,e["Tcaron"]=611,e["partialdiff"]=494,e["ydieresis"]=444,e["Nacute"]=722,e["icircumflex"]=278,e["Ecircumflex"]=667,e["adieresis"]=500,e["edieresis"]=444,e["cacute"]=444,e["nacute"]=556,e["umacron"]=556,e["Ncaron"]=722,e["Iacute"]=389,e["plusminus"]=570,e["brokenbar"]=220,e["registered"]=747,e["Gbreve"]=722,e["Idotaccent"]=389,e["summation"]=600,e["Egrave"]=667,e["racute"]=389,e["omacron"]=500,e["Zacute"]=611,e["Zcaron"]=611,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=667,e["lcommaaccent"]=278,e["tcaron"]=366,e["eogonek"]=444,e["Uogonek"]=722,e["Aacute"]=667,e["Adieresis"]=667,e["egrave"]=444,e["zacute"]=389,e["iogonek"]=278,e["Oacute"]=722,e["oacute"]=500,e["amacron"]=500,e["sacute"]=389,e["idieresis"]=278,e["Ocircumflex"]=722,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=500,e["twosuperior"]=300,e["Odieresis"]=722,e["mu"]=576,e["igrave"]=278,e["ohungarumlaut"]=500,e["Eogonek"]=667,e["dcroat"]=500,e["threequarters"]=750,e["Scedilla"]=556,e["lcaron"]=382,e["Kcommaaccent"]=667,e["Lacute"]=611,e["trademark"]=1e3,e["edotaccent"]=444,e["Igrave"]=389,e["Imacron"]=389,e["Lcaron"]=611,e["onehalf"]=750,e["lessequal"]=549,e["ocircumflex"]=500,e["ntilde"]=556,e["Uhungarumlaut"]=722,e["Eacute"]=667,e["emacron"]=444,e["gbreve"]=500,e["onequarter"]=750,e["Scaron"]=556,e["Scommaaccent"]=556,e["Ohungarumlaut"]=722,e["degree"]=400,e["ograve"]=500,e["Ccaron"]=667,e["ugrave"]=556,e["radical"]=549,e["Dcaron"]=722,e["rcommaaccent"]=389,e["Ntilde"]=722,e["otilde"]=500,e["Rcommaaccent"]=667,e["Lcommaaccent"]=611,e["Atilde"]=667,e["Aogonek"]=667,e["Aring"]=667,e["Otilde"]=722,e["zdotaccent"]=389,e["Ecaron"]=667,e["Iogonek"]=389,e["kcommaaccent"]=500,e["minus"]=606,e["Icircumflex"]=389,e["ncaron"]=556,e["tcommaaccent"]=278,e["logicalnot"]=606,e["odieresis"]=500,e["udieresis"]=556,e["notequal"]=549,e["gcommaaccent"]=500,e["eth"]=500,e["zcaron"]=389,e["ncommaaccent"]=556,e["onesuperior"]=300,e["imacron"]=278,e["Euro"]=500})),e["Times-Italic"]=(0,n.getLookupTableFactory)((function(e){e["space"]=250,e["exclam"]=333,e["quotedbl"]=420,e["numbersign"]=500,e["dollar"]=500,e["percent"]=833,e["ampersand"]=778,e["quoteright"]=333,e["parenleft"]=333,e["parenright"]=333,e["asterisk"]=500,e["plus"]=675,e["comma"]=250,e["hyphen"]=333,e["period"]=250,e["slash"]=278,e["zero"]=500,e["one"]=500,e["two"]=500,e["three"]=500,e["four"]=500,e["five"]=500,e["six"]=500,e["seven"]=500,e["eight"]=500,e["nine"]=500,e["colon"]=333,e["semicolon"]=333,e["less"]=675,e["equal"]=675,e["greater"]=675,e["question"]=500,e["at"]=920,e["A"]=611,e["B"]=611,e["C"]=667,e["D"]=722,e["E"]=611,e["F"]=611,e["G"]=722,e["H"]=722,e["I"]=333,e["J"]=444,e["K"]=667,e["L"]=556,e["M"]=833,e["N"]=667,e["O"]=722,e["P"]=611,e["Q"]=722,e["R"]=611,e["S"]=500,e["T"]=556,e["U"]=722,e["V"]=611,e["W"]=833,e["X"]=611,e["Y"]=556,e["Z"]=556,e["bracketleft"]=389,e["backslash"]=278,e["bracketright"]=389,e["asciicircum"]=422,e["underscore"]=500,e["quoteleft"]=333,e["a"]=500,e["b"]=500,e["c"]=444,e["d"]=500,e["e"]=444,e["f"]=278,e["g"]=500,e["h"]=500,e["i"]=278,e["j"]=278,e["k"]=444,e["l"]=278,e["m"]=722,e["n"]=500,e["o"]=500,e["p"]=500,e["q"]=500,e["r"]=389,e["s"]=389,e["t"]=278,e["u"]=500,e["v"]=444,e["w"]=667,e["x"]=444,e["y"]=444,e["z"]=389,e["braceleft"]=400,e["bar"]=275,e["braceright"]=400,e["asciitilde"]=541,e["exclamdown"]=389,e["cent"]=500,e["sterling"]=500,e["fraction"]=167,e["yen"]=500,e["florin"]=500,e["section"]=500,e["currency"]=500,e["quotesingle"]=214,e["quotedblleft"]=556,e["guillemotleft"]=500,e["guilsinglleft"]=333,e["guilsinglright"]=333,e["fi"]=500,e["fl"]=500,e["endash"]=500,e["dagger"]=500,e["daggerdbl"]=500,e["periodcentered"]=250,e["paragraph"]=523,e["bullet"]=350,e["quotesinglbase"]=333,e["quotedblbase"]=556,e["quotedblright"]=556,e["guillemotright"]=500,e["ellipsis"]=889,e["perthousand"]=1e3,e["questiondown"]=500,e["grave"]=333,e["acute"]=333,e["circumflex"]=333,e["tilde"]=333,e["macron"]=333,e["breve"]=333,e["dotaccent"]=333,e["dieresis"]=333,e["ring"]=333,e["cedilla"]=333,e["hungarumlaut"]=333,e["ogonek"]=333,e["caron"]=333,e["emdash"]=889,e["AE"]=889,e["ordfeminine"]=276,e["Lslash"]=556,e["Oslash"]=722,e["OE"]=944,e["ordmasculine"]=310,e["ae"]=667,e["dotlessi"]=278,e["lslash"]=278,e["oslash"]=500,e["oe"]=667,e["germandbls"]=500,e["Idieresis"]=333,e["eacute"]=444,e["abreve"]=500,e["uhungarumlaut"]=500,e["ecaron"]=444,e["Ydieresis"]=556,e["divide"]=675,e["Yacute"]=556,e["Acircumflex"]=611,e["aacute"]=500,e["Ucircumflex"]=722,e["yacute"]=444,e["scommaaccent"]=389,e["ecircumflex"]=444,e["Uring"]=722,e["Udieresis"]=722,e["aogonek"]=500,e["Uacute"]=722,e["uogonek"]=500,e["Edieresis"]=611,e["Dcroat"]=722,e["commaaccent"]=250,e["copyright"]=760,e["Emacron"]=611,e["ccaron"]=444,e["aring"]=500,e["Ncommaaccent"]=667,e["lacute"]=278,e["agrave"]=500,e["Tcommaaccent"]=556,e["Cacute"]=667,e["atilde"]=500,e["Edotaccent"]=611,e["scaron"]=389,e["scedilla"]=389,e["iacute"]=278,e["lozenge"]=471,e["Rcaron"]=611,e["Gcommaaccent"]=722,e["ucircumflex"]=500,e["acircumflex"]=500,e["Amacron"]=611,e["rcaron"]=389,e["ccedilla"]=444,e["Zdotaccent"]=556,e["Thorn"]=611,e["Omacron"]=722,e["Racute"]=611,e["Sacute"]=500,e["dcaron"]=544,e["Umacron"]=722,e["uring"]=500,e["threesuperior"]=300,e["Ograve"]=722,e["Agrave"]=611,e["Abreve"]=611,e["multiply"]=675,e["uacute"]=500,e["Tcaron"]=556,e["partialdiff"]=476,e["ydieresis"]=444,e["Nacute"]=667,e["icircumflex"]=278,e["Ecircumflex"]=611,e["adieresis"]=500,e["edieresis"]=444,e["cacute"]=444,e["nacute"]=500,e["umacron"]=500,e["Ncaron"]=667,e["Iacute"]=333,e["plusminus"]=675,e["brokenbar"]=275,e["registered"]=760,e["Gbreve"]=722,e["Idotaccent"]=333,e["summation"]=600,e["Egrave"]=611,e["racute"]=389,e["omacron"]=500,e["Zacute"]=556,e["Zcaron"]=556,e["greaterequal"]=549,e["Eth"]=722,e["Ccedilla"]=667,e["lcommaaccent"]=278,e["tcaron"]=300,e["eogonek"]=444,e["Uogonek"]=722,e["Aacute"]=611,e["Adieresis"]=611,e["egrave"]=444,e["zacute"]=389,e["iogonek"]=278,e["Oacute"]=722,e["oacute"]=500,e["amacron"]=500,e["sacute"]=389,e["idieresis"]=278,e["Ocircumflex"]=722,e["Ugrave"]=722,e["Delta"]=612,e["thorn"]=500,e["twosuperior"]=300,e["Odieresis"]=722,e["mu"]=500,e["igrave"]=278,e["ohungarumlaut"]=500,e["Eogonek"]=611,e["dcroat"]=500,e["threequarters"]=750,e["Scedilla"]=500,e["lcaron"]=300,e["Kcommaaccent"]=667,e["Lacute"]=556,e["trademark"]=980,e["edotaccent"]=444,e["Igrave"]=333,e["Imacron"]=333,e["Lcaron"]=611,e["onehalf"]=750,e["lessequal"]=549,e["ocircumflex"]=500,e["ntilde"]=500,e["Uhungarumlaut"]=722,e["Eacute"]=611,e["emacron"]=444,e["gbreve"]=500,e["onequarter"]=750,e["Scaron"]=500,e["Scommaaccent"]=500,e["Ohungarumlaut"]=722,e["degree"]=400,e["ograve"]=500,e["Ccaron"]=667,e["ugrave"]=500,e["radical"]=453,e["Dcaron"]=722,e["rcommaaccent"]=389,e["Ntilde"]=667,e["otilde"]=500,e["Rcommaaccent"]=611,e["Lcommaaccent"]=556,e["Atilde"]=611,e["Aogonek"]=611,e["Aring"]=611,e["Otilde"]=722,e["zdotaccent"]=389,e["Ecaron"]=611,e["Iogonek"]=333,e["kcommaaccent"]=444,e["minus"]=675,e["Icircumflex"]=333,e["ncaron"]=500,e["tcommaaccent"]=278,e["logicalnot"]=675,e["odieresis"]=500,e["udieresis"]=500,e["notequal"]=549,e["gcommaaccent"]=500,e["eth"]=500,e["zcaron"]=389,e["ncommaaccent"]=500,e["onesuperior"]=300,e["imacron"]=278,e["Euro"]=500})),e["ZapfDingbats"]=(0,n.getLookupTableFactory)((function(e){e["space"]=278,e["a1"]=974,e["a2"]=961,e["a202"]=974,e["a3"]=980,e["a4"]=719,e["a5"]=789,e["a119"]=790,e["a118"]=791,e["a117"]=690,e["a11"]=960,e["a12"]=939,e["a13"]=549,e["a14"]=855,e["a15"]=911,e["a16"]=933,e["a105"]=911,e["a17"]=945,e["a18"]=974,e["a19"]=755,e["a20"]=846,e["a21"]=762,e["a22"]=761,e["a23"]=571,e["a24"]=677,e["a25"]=763,e["a26"]=760,e["a27"]=759,e["a28"]=754,e["a6"]=494,e["a7"]=552,e["a8"]=537,e["a9"]=577,e["a10"]=692,e["a29"]=786,e["a30"]=788,e["a31"]=788,e["a32"]=790,e["a33"]=793,e["a34"]=794,e["a35"]=816,e["a36"]=823,e["a37"]=789,e["a38"]=841,e["a39"]=823,e["a40"]=833,e["a41"]=816,e["a42"]=831,e["a43"]=923,e["a44"]=744,e["a45"]=723,e["a46"]=749,e["a47"]=790,e["a48"]=792,e["a49"]=695,e["a50"]=776,e["a51"]=768,e["a52"]=792,e["a53"]=759,e["a54"]=707,e["a55"]=708,e["a56"]=682,e["a57"]=701,e["a58"]=826,e["a59"]=815,e["a60"]=789,e["a61"]=789,e["a62"]=707,e["a63"]=687,e["a64"]=696,e["a65"]=689,e["a66"]=786,e["a67"]=787,e["a68"]=713,e["a69"]=791,e["a70"]=785,e["a71"]=791,e["a72"]=873,e["a73"]=761,e["a74"]=762,e["a203"]=762,e["a75"]=759,e["a204"]=759,e["a76"]=892,e["a77"]=892,e["a78"]=788,e["a79"]=784,e["a81"]=438,e["a82"]=138,e["a83"]=277,e["a84"]=415,e["a97"]=392,e["a98"]=392,e["a99"]=668,e["a100"]=668,e["a89"]=390,e["a90"]=390,e["a93"]=317,e["a94"]=317,e["a91"]=276,e["a92"]=276,e["a205"]=509,e["a85"]=509,e["a206"]=410,e["a86"]=410,e["a87"]=234,e["a88"]=234,e["a95"]=334,e["a96"]=334,e["a101"]=732,e["a102"]=544,e["a103"]=544,e["a104"]=910,e["a106"]=667,e["a107"]=760,e["a108"]=760,e["a112"]=776,e["a111"]=595,e["a110"]=694,e["a109"]=626,e["a120"]=788,e["a121"]=788,e["a122"]=788,e["a123"]=788,e["a124"]=788,e["a125"]=788,e["a126"]=788,e["a127"]=788,e["a128"]=788,e["a129"]=788,e["a130"]=788,e["a131"]=788,e["a132"]=788,e["a133"]=788,e["a134"]=788,e["a135"]=788,e["a136"]=788,e["a137"]=788,e["a138"]=788,e["a139"]=788,e["a140"]=788,e["a141"]=788,e["a142"]=788,e["a143"]=788,e["a144"]=788,e["a145"]=788,e["a146"]=788,e["a147"]=788,e["a148"]=788,e["a149"]=788,e["a150"]=788,e["a151"]=788,e["a152"]=788,e["a153"]=788,e["a154"]=788,e["a155"]=788,e["a156"]=788,e["a157"]=788,e["a158"]=788,e["a159"]=788,e["a160"]=894,e["a161"]=838,e["a163"]=1016,e["a164"]=458,e["a196"]=748,e["a165"]=924,e["a192"]=748,e["a166"]=918,e["a167"]=927,e["a168"]=928,e["a169"]=928,e["a170"]=834,e["a171"]=873,e["a172"]=828,e["a173"]=924,e["a162"]=924,e["a174"]=917,e["a175"]=930,e["a176"]=931,e["a177"]=463,e["a178"]=883,e["a179"]=836,e["a193"]=836,e["a180"]=867,e["a199"]=867,e["a181"]=696,e["a200"]=696,e["a182"]=874,e["a201"]=874,e["a183"]=760,e["a184"]=946,e["a197"]=771,e["a185"]=865,e["a194"]=771,e["a198"]=888,e["a186"]=967,e["a195"]=888,e["a187"]=831,e["a188"]=873,e["a189"]=927,e["a190"]=970,e["a191"]=918}))}));t.getMetrics=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=c,t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=void 0;var n=r(2),a=r(4),i=r(40),o=function(){function e(t){var r=t.xref,n=t.isEvalSupported,a=void 0===n||n;p(this,e),this.xref=r,this.isEvalSupported=!1!==a}return f(e,[{key:"create",value:function(e){return l.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e})}},{key:"createFromArray",value:function(e){return l.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e})}}]),e}();function s(e){if(!Array.isArray(e))return null;for(var t=e.length,r=0;r>l)*u,c&=(1<r?e=r:e0&&(f=n[d-1]);var p=r[1];d>1,c=a.length>>1,u=new d(o),f=Object.create(null),p=8192,g=p,v=new Float32Array(c);return function(e,t,r,n){var a,o,s="",d=v;for(a=0;ay&&(o=y)),p[a]=o}g>0&&(g--,f[s]=p),r.set(p,n)}else r.set(h,n)}}}}();function c(e){var t;if("object"!==y(e))return!1;if((0,a.isDict)(e))t=e;else{if(!(0,a.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")}var u=function(){var e=100;function t(e){this.stack=e?Array.prototype.slice.call(e,0):[]}return t.prototype={push:function(t){if(this.stack.length>=e)throw new Error("PostScript function stack overflow.");this.stack.push(t)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(t){if(this.stack.length+t>=e)throw new Error("PostScript function stack overflow.");for(var r=this.stack,n=r.length-t,a=t-1;a>=0;a--,n++)r.push(r[n])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var r,n,a,i=this.stack,o=i.length-e,s=i.length-1,l=o+(t-Math.floor(t/e)*e);for(r=o,n=s;r0?i.push(r<>a);break;case"ceiling":r=i.pop(),i.push(Math.ceil(r));break;case"copy":r=i.pop(),i.copy(r);break;case"cos":r=i.pop(),i.push(Math.cos(r));break;case"cvi":r=0|i.pop(),i.push(r);break;case"cvr":break;case"div":a=i.pop(),r=i.pop(),i.push(r/a);break;case"dup":i.copy(1);break;case"eq":a=i.pop(),r=i.pop(),i.push(r===a);break;case"exch":i.roll(2,1);break;case"exp":a=i.pop(),r=i.pop(),i.push(Math.pow(r,a));break;case"false":i.push(!1);break;case"floor":r=i.pop(),i.push(Math.floor(r));break;case"ge":a=i.pop(),r=i.pop(),i.push(r>=a);break;case"gt":a=i.pop(),r=i.pop(),i.push(r>a);break;case"idiv":a=i.pop(),r=i.pop(),i.push(r/a|0);break;case"index":r=i.pop(),i.index(r);break;case"le":a=i.pop(),r=i.pop(),i.push(r<=a);break;case"ln":r=i.pop(),i.push(Math.log(r));break;case"log":r=i.pop(),i.push(Math.log(r)/Math.LN10);break;case"lt":a=i.pop(),r=i.pop(),i.push(r=t?new r(t):e.max<=t?e:new i(e,t)}function f(){}return e.prototype.visit=function(e){(0,n.unreachable)("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},r.prototype=Object.create(e.prototype),r.prototype.visit=function(e){e.visitLiteral(this)},a.prototype=Object.create(e.prototype),a.prototype.visit=function(e){e.visitBinaryOperation(this)},i.prototype=Object.create(e.prototype),i.prototype.visit=function(e){e.visitMin(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitVariable(this)},s.prototype=Object.create(e.prototype),s.prototype.visit=function(e){e.visitVariableDefinition(this)},l.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}},f.prototype={compile:function(e,n,a){var i,f,p,g,v,m,b,y,w,_,k=[],x=[],S=n.length>>1,A=a.length>>1,C=0;for(i=0;ie.min&&(o.unshift("Math.max(",n,", "),o.push(")")),i=0&&(t>=65&&t<=90||t>=97&&t<=122))r.push(String.fromCharCode(t));var n=r.join("");switch(n.toLowerCase()){case"if":return l.IF;case"ifelse":return l.IFELSE;default:return l.getOperator(n)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;t.length=0,t[0]=String.fromCharCode(e);while((e=this.nextChar())>=0){if(!(e>=48&&e<=57||45===e||46===e))break;t.push(String.fromCharCode(e))}var r=parseFloat(t.join(""));if(isNaN(r))throw new n.FormatError("Invalid floating point number: ".concat(r));return r}}]),e}();t.PostScriptLexer=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(2),a=3285377520,i=4294901760,o=65535,s=function(){function e(t){p(this,e),this.h1=t?4294967295&t:a,this.h2=t?4294967295&t:a}return f(e,[{key:"update",value:function(e){var t,r;if((0,n.isString)(e)){t=new Uint8Array(2*e.length),r=0;for(var a=0,s=e.length;a>>8,t[r++]=255&l)}}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e,r=t.byteLength}for(var c=r>>2,u=r-4*c,d=new Uint32Array(t.buffer,0,c),h=0,f=0,p=this.h1,g=this.h2,v=3432918353,m=461845907,b=v&o,y=m&o,w=0;w>>17,h=h*m&i|h*y&o,p^=h,p=p<<13|p>>>19,p=5*p+3864292196):(f=d[w],f=f*v&i|f*b&o,f=f<<15|f>>>17,f=f*m&i|f*y&o,g^=f,g=g<<13|g>>>19,g=5*g+3864292196);switch(h=0,u){case 3:h^=t[4*c+2]<<16;case 2:h^=t[4*c+1]<<8;case 1:h^=t[4*c],h=h*v&i|h*b&o,h=h<<15|h>>>17,h=h*m&i|h*y&o,1&c?p^=h:g^=h}this.h1=p,this.h2=g}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&i|36045*e&o,t=4283543511*t&i|(2950163797*(t<<16|e>>>16)&i)>>>16,e^=t>>>1,e=444984403*e&i|60499*e&o,t=3301882366*t&i|(3120437893*(t<<16|e>>>16)&i)>>>16,e^=t>>>1;var r=(e>>>0).toString(16),n=(t>>>0).toString(16);return r.padStart(8,"0")+n.padStart(8,"0")}}]),e}();t.MurmurHash3_64=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NativeImageDecoder=void 0;var n=r(22),a=r(17),i=r(11),o=function(){function e(t){var r=t.xref,n=t.resources,a=t.handler,i=t.forceDataSchema,o=void 0!==i&&i,s=t.pdfFunctionFactory;p(this,e),this.xref=r,this.resources=n,this.handler=a,this.forceDataSchema=o,this.pdfFunctionFactory=s}return f(e,[{key:"canDecode",value:function(t){return t instanceof a.JpegStream&&e.isDecodable(t,this.xref,this.resources,this.pdfFunctionFactory)&&t.maybeValidDimensions}},{key:"decode",value:function(e){var t=e.dict,r=t.get("ColorSpace","CS");return r=n.ColorSpace.parse(r,this.xref,this.resources,this.pdfFunctionFactory),this.handler.sendWithPromise("JpegDecode",[e.getIR(this.forceDataSchema),r.numComps]).then((function(e){var r=e.data;e.width,e.height;return new i.Stream(r,0,r.length,t)}))}}],[{key:"isSupported",value:function(e,t,r,a){var i=e.dict;if(i.has("DecodeParms")||i.has("DP"))return!1;var o=n.ColorSpace.parse(i.get("ColorSpace","CS"),t,r,a);return("DeviceGray"===o.name||"DeviceRGB"===o.name)&&o.isDefaultDecode(i.getArray("Decode","D"))}},{key:"isDecodable",value:function(e,t,r,a){var i=e.dict;if(i.has("DecodeParms")||i.has("DP"))return!1;var o=n.ColorSpace.parse(i.get("ColorSpace","CS"),t,r,a),s=i.get("BitsPerComponent","BPC")||1;return(1===o.numComps||3===o.numComps)&&o.isDefaultDecode(i.getArray("Decode","D"),s)}}]),e}();t.NativeImageDecoder=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var n=r(2),a=r(4),i=r(22),o=r(11),s=r(17),l=r(20),c=function(){function e(e,t){return t&&t.canDecode(e)?t.decode(e).catch((function(t){return(0,n.warn)("Native image decoding failed -- trying to recover: "+(t&&t.message)),e})):Promise.resolve(e)}function t(e,t,r,n){return e=t+e*r,e<0?e=0:e>n&&(e=n),e}function r(e,t,r,n,a,i){var o,s=a*i;o=t<=8?new Uint8Array(s):t<=16?new Uint16Array(s):new Uint32Array(s);var l,c,u,d,h=r/a,f=n/i,p=0,g=new Uint16Array(a),v=r;for(l=0;l0&&Number.isInteger(o.height)&&o.height>0&&(o.width!==_||o.height!==k)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),_=o.width,k=o.height),_<1||k<1)throw new n.FormatError("Invalid image width: ".concat(_," or height: ").concat(k));this.width=_,this.height=k,this.interpolate=b.get("Interpolate","I")||!1,this.imageMask=b.get("ImageMask","IM")||!1,this.matte=b.get("Matte")||!1;var x=o.bitsPerComponent;if(!x&&(x=b.get("BitsPerComponent","BPC"),!x)){if(!this.imageMask)throw new n.FormatError("Bits per component missing in image: ".concat(this.imageMask));x=1}if(this.bpc=x,!this.imageMask){var S=b.get("ColorSpace","CS");if(!S)switch((0,n.info)("JPX images (which do not require color spaces)"),o.numComps){case 1:S=a.Name.get("DeviceGray");break;case 3:S=a.Name.get("DeviceRGB");break;case 4:S=a.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(o.numComps," ")+"color components not supported.")}var A=u?r:null;this.colorSpace=i.ColorSpace.parse(S,t,A,m),this.numComps=this.colorSpace.numComps}if(this.decode=b.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,x)||v&&!i.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var C=(1<>3)*i,c=n.byteLength,u=l===c;if(!o||s&&!u)if(s)for(t=new Uint8ClampedArray(l),t.set(n),r=c;r>7&1,r[h+1]=c>>6&1,r[h+2]=c>>5&1,r[h+3]=c>>4&1,r[h+4]=c>>3&1,r[h+5]=c>>2&1,r[h+6]=c>>1&1,r[h+7]=1&c,h+=8;if(h>=1}}else{var m=0;for(c=0,h=0,l=o;h>b;y<0?y=0:y>d&&(y=d),r[h]=y,c&=(1<g[w+1]){m=255;break}}s[d]=m}}if(s)for(d=0,f=3,h=t*i;d0&&void 0!==arguments[0]&&arguments[0],r=this.drawWidth,a=this.drawHeight,i={width:r,height:a,kind:0,data:null},l=this.numComps,c=this.width,u=this.height,d=this.bpc,h=c*l*d+7>>3;if(!t){var f;if("DeviceGray"===this.colorSpace.name&&1===d?f=n.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==d||this.needsDecode||(f=n.ImageKind.RGB_24BPP),f&&!this.smask&&!this.mask&&r===c&&a===u){if(i.kind=f,e=this.getImageBytes(u*h),this.image instanceof o.DecodeStream)i.data=e;else{var p=new Uint8ClampedArray(e.length);p.set(e),i.data=p}if(this.needsDecode){(0,n.assert)(f===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var g=i.data,v=0,m=g.length;v>3,c=this.getImageBytes(o*l),u=this.getComponents(c);if(1!==s){this.needsDecode&&this.decodeBuffer(u),a=i*o;var d=255/((1<3&&void 0!==arguments[3]&&arguments[3];return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=r||this.height,this.image.forceRGB=!!n,this.image.getBytes(e,!0)}},c}();t.PDFImage=c},function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isNodeJS=void 0;var a="object"===("undefined"===typeof e?"undefined":y(e))&&e+""==="[object process]"&&!e.versions["nw"]&&!e.versions["electron"];r.isNodeJS=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(2),a={UNKNOWN:0,DATA:1,ERROR:2},i={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(e){if("object"!==y(e)||null===e)return e;switch(e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}var s=function(){function e(t,r,n){var i=this;p(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var r=t.callbackId,s=i.callbackCapabilities[r];if(!s)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===a.DATA)s.resolve(t.data);else{if(t.callback!==a.ERROR)throw new Error("Unexpected callback case");s.reject(o(t.reason))}}else{var l=i.actionHandler[t.action];if(!l)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var c=i.sourceName,u=t.sourceName;new Promise((function(e){e(l(t.data))})).then((function(e){n.postMessage({sourceName:c,targetName:u,callback:a.DATA,callbackId:t.callbackId,data:e})}),(function(e){n.postMessage({sourceName:c,targetName:u,callback:a.ERROR,callbackId:t.callbackId,reason:o(e)})}))}else t.streamId?i._createStreamSink(t):l(t.data)}},n.addEventListener("message",this._onComObjOnMessage)}return f(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var a=this.callbackId++,i=(0,n.createPromiseCapability)();this.callbackCapabilities[a]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:a,data:t},r)}catch(o){i.reject(o)}return i.promise}},{key:"sendWithStream",value:function(e,t,r,a){var s=this,l=this.streamId++,c=this.sourceName,u=this.targetName,d=this.comObj;return new ReadableStream({start:function(r){var i=(0,n.createPromiseCapability)();return s.streamControllers[l]={controller:r,startCall:i,pullCall:null,cancelCall:null,isClosed:!1},s._postMessage({sourceName:c,targetName:u,action:e,streamId:l,data:t,desiredSize:r.desiredSize},a),i.promise},pull:function(e){var t=(0,n.createPromiseCapability)();return s.streamControllers[l].pullCall=t,d.postMessage({sourceName:c,targetName:u,stream:i.PULL,streamId:l,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,n.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,n.createPromiseCapability)();return s.streamControllers[l].cancelCall=t,s.streamControllers[l].isClosed=!0,d.postMessage({sourceName:c,targetName:u,stream:i.CANCEL,streamId:l,reason:o(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],a=e.streamId,s=this.sourceName,l=e.sourceName,c=this.comObj,u={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var c=this.desiredSize;this.desiredSize-=r,c>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:s,targetName:l,stream:i.ENQUEUE,streamId:a,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.CLOSE,streamId:a}),delete t.streamSinks[a])},error:function(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:s,targetName:l,stream:i.ERROR,streamId:a,reason:o(e)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[a]=u,new Promise((function(t){t(r(e.data,u))})).then((function(){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,success:!0})}),(function(e){c.postMessage({sourceName:s,targetName:l,stream:i.START_COMPLETE,streamId:a,reason:o(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,a=e.sourceName,s=this.comObj;switch(e.stream){case i.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(o(e.reason));break;case i.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(o(e.reason));break;case i.PULL:if(!this.streamSinks[t]){s.postMessage({sourceName:r,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var l=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(l&&l())})).then((function(){s.postMessage({sourceName:r,targetName:a,stream:i.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:a,stream:i.PULL_COMPLETE,streamId:t,reason:o(e)})}));break;case i.ENQUEUE:if((0,n.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case i.CLOSE:if((0,n.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case i.ERROR:(0,n.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(o(e.reason)),this._deleteStreamController(t);break;case i.CANCEL:if(!this.streamSinks[t])break;var c=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(c&&c(o(e.reason)))})).then((function(){s.postMessage({sourceName:r,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:r,targetName:a,stream:i.CANCEL_COMPLETE,streamId:t,reason:o(e)})})),this.streamSinks[t].sinkCapability.reject(o(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=b(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var n=r(2),a=function(){function e(t){p(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}return f(e,[{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new o(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFWorkerStream=a;var i=function(){function e(t){var r=this;p(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var n=this._msgHandler.sendWithStream("GetReader");this._reader=n.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(e){r._isStreamingSupported=e.isStreamingSupported,r._isRangeSupported=e.isRangeSupported,r._contentLength=e.contentLength}))}return f(e,[{key:"read",value:function(){var e=b(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,n=t.done,!n){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader.cancel(e)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}}]),e}(),o=function(){function e(t,r,n){p(this,e),this._msgHandler=n,this.onProgress=null;var a=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=a.getReader()}return f(e,[{key:"read",value:function(){var e=b(regeneratorRuntime.mark((function e(){var t,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,n=t.done,!n){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._reader.cancel(e)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()}])}))}).call(this,r("4362"),r("62e4")(e))},8139:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("e260"),r("d81d"),r("b0c0"),r("d3b7"),r("e6cf"),r("820e"),r("25f0"),r("3ca3"),r("ddb0"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3"),o=r("7037");Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var s=r("dacc"),l={UNKNOWN:0,DATA:1,ERROR:2},c={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function u(e){if("object"!==o(e)||null===e)return e;switch(e.name){case"AbortException":return new s.AbortException(e.message);case"MissingPDFException":return new s.MissingPDFException(e.message);case"UnexpectedResponseException":return new s.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new s.UnknownErrorException(e.message,e.details);default:return new s.UnknownErrorException(e.message,e.toString())}}var d=function(){function e(t,r,n){var i=this;a(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var t=e.data;if(t.targetName===i.sourceName)if(t.stream)i._processStreamMessage(t);else if(t.callback){var r=t.callbackId,a=i.callbackCapabilities[r];if(!a)throw new Error("Cannot resolve callback ".concat(r));if(delete i.callbackCapabilities[r],t.callback===l.DATA)a.resolve(t.data);else{if(t.callback!==l.ERROR)throw new Error("Unexpected callback case");a.reject(u(t.reason))}}else{var o=i.actionHandler[t.action];if(!o)throw new Error("Unknown action from worker: ".concat(t.action));if(t.callbackId){var s=i.sourceName,c=t.sourceName;new Promise((function(e){e(o(t.data))})).then((function(e){n.postMessage({sourceName:s,targetName:c,callback:l.DATA,callbackId:t.callbackId,data:e})}),(function(e){n.postMessage({sourceName:s,targetName:c,callback:l.ERROR,callbackId:t.callbackId,reason:u(e)})}))}else t.streamId?i._createStreamSink(t):o(t.data)}},n.addEventListener("message",this._onComObjOnMessage)}return i(e,[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}},{key:"sendWithPromise",value:function(e,t,r){var n=this.callbackId++,a=(0,s.createPromiseCapability)();this.callbackCapabilities[n]=a;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(i){a.reject(i)}return a.promise}},{key:"sendWithStream",value:function(e,t,r,n){var a=this,i=this.streamId++,o=this.sourceName,l=this.targetName,d=this.comObj;return new ReadableStream({start:function(r){var c=(0,s.createPromiseCapability)();return a.streamControllers[i]={controller:r,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},a._postMessage({sourceName:o,targetName:l,action:e,streamId:i,data:t,desiredSize:r.desiredSize},n),c.promise},pull:function(e){var t=(0,s.createPromiseCapability)();return a.streamControllers[i].pullCall=t,d.postMessage({sourceName:o,targetName:l,stream:c.PULL,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,s.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,s.createPromiseCapability)();return a.streamControllers[i].cancelCall=t,a.streamControllers[i].isClosed=!0,d.postMessage({sourceName:o,targetName:l,stream:c.CANCEL,streamId:i,reason:u(e)}),t.promise}},r)}},{key:"_createStreamSink",value:function(e){var t=this,r=this.actionHandler[e.action],n=e.streamId,a=this.sourceName,i=e.sourceName,o=this.comObj,l={enqueue:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,s.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:a,targetName:i,stream:c.ENQUEUE,streamId:n,chunk:e},o)}},close:function(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:a,targetName:i,stream:c.CLOSE,streamId:n}),delete t.streamSinks[n])},error:function(e){(0,s.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:a,targetName:i,stream:c.ERROR,streamId:n,reason:u(e)}))},sinkCapability:(0,s.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,new Promise((function(t){t(r(e.data,l))})).then((function(){o.postMessage({sourceName:a,targetName:i,stream:c.START_COMPLETE,streamId:n,success:!0})}),(function(e){o.postMessage({sourceName:a,targetName:i,stream:c.START_COMPLETE,streamId:n,reason:u(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,a=this.comObj;switch(e.stream){case c.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(u(e.reason));break;case c.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(u(e.reason));break;case c.PULL:if(!this.streamSinks[t]){a.postMessage({sourceName:r,targetName:n,stream:c.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var i=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(i&&i())})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:c.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:c.PULL_COMPLETE,streamId:t,reason:u(e)})}));break;case c.ENQUEUE:if((0,s.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case c.CLOSE:if((0,s.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case c.ERROR:(0,s.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(u(e.reason)),this._deleteStreamController(t);break;case c.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(u(e.reason)),this._deleteStreamController(t);break;case c.CANCEL:if(!this.streamSinks[t])break;var o=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(o&&o(u(e.reason)))})).then((function(){a.postMessage({sourceName:r,targetName:n,stream:c.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:n,stream:c.CANCEL_COMPLETE,streamId:t,reason:u(e)})})),this.streamSinks[t].sinkCapability.reject(u(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=d},"81d5":function(e,t,r){"use strict";var n=r("7b0b"),a=r("23cb"),i=r("50c4");e.exports=function(e){var t=n(this),r=i(t.length),o=arguments.length,s=a(o>1?arguments[1]:void 0,r),l=o>2?arguments[2]:void 0,c=void 0===l?r:a(l,r);while(c>s)t[s++]=e;return t}},"820e":function(e,t,r){"use strict";var n=r("23e7"),a=r("1c0b"),i=r("f069"),o=r("e667"),s=r("2266");n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,l=r.reject,c=o((function(){var r=a(t.resolve),i=[],o=0,l=1;s(e,(function(e){var a=o++,s=!1;i.push(void 0),l++,r.call(t,e).then((function(e){s||(s=!0,i[a]={status:"fulfilled",value:e},--l||n(i))}),(function(e){s||(s=!0,i[a]={status:"rejected",reason:e},--l||n(i))}))})),--l||n(i)}));return c.error&&l(c.value),r.promise}})},"825a":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},"82f8":function(e,t,r){"use strict";var n=r("ebb5"),a=r("4d64").includes,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("includes",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},"83ab":function(e,t,r){var n=r("d039");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,r){"use strict";var n=r("c04e"),a=r("9bf2"),i=r("5c6c");e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},"841c":function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),i=r("1d80"),o=r("129f"),s=r("14c3");n("search",1,(function(e,t,r){return[function(t){var r=i(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var i=a(e),l=String(this),c=i.lastIndex;o(c,0)||(i.lastIndex=0);var u=s(i,l);return o(i.lastIndex,c)||(i.lastIndex=c),null===u?-1:u.index}]}))},"843c":function(e,t,r){"use strict";var n=r("23e7"),a=r("0ccb").end,i=r("9a0c");n({target:"String",proto:!0,forced:i},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"84c3":function(e,t,r){var n=r("74e8");n("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"857a":function(e,t,r){var n=r("1d80"),a=/"/g;e.exports=function(e,t,r,i){var o=String(n(e)),s="<"+t;return""!==r&&(s+=" "+r+'="'+String(i).replace(a,""")+'"'),s+">"+o+""}},"85c3":function(e,t,r){var n=r("9082");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("a18baa98",n,!0,{sourceMap:!1,shadowMode:!1})},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"872e":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("a9e3"),r("8ba4"),r("cca6"),r("dca8"),r("d3b7"),r("e6cf"),r("25f0"),r("96cf");var n=r("c973"),a=r("7037"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.BasePreferences=void 0;var s=null;function l(){return s||(s=Promise.resolve({cursorToolOnLoad:0,defaultZoomValue:"",disablePageLabels:!1,enablePrintAutoRotate:!1,enableWebGL:!1,eventBusDispatchToDOM:!1,externalLinkTarget:0,historyUpdateUrl:!1,ignoreDestinationZoom:!1,pdfBugEnabled:!1,renderer:"canvas",renderInteractiveForms:!1,sidebarViewOnLoad:-1,scrollModeOnLoad:-1,spreadModeOnLoad:-1,textLayerMode:1,useOnlyCssZoom:!1,viewOnLoad:0,disableAutoFetch:!1,disableFontFace:!1,disableRange:!1,disableStream:!1})),s}var c=function(){function e(){var t=this;if(i(this,e),this.constructor===e)throw new Error("Cannot initialize BasePreferences.");this.prefs=null,this._initializedPromise=l().then((function(e){return Object.defineProperty(t,"defaults",{value:Object.freeze(e),writable:!1,enumerable:!0,configurable:!1}),t.prefs=Object.assign(Object.create(null),e),t._readFromStorage(e)})).then((function(e){if(e)for(var r in e){var n=t.defaults[r],i=e[r];void 0!==n&&a(i)===a(n)&&(t.prefs[r]=i)}}))}return o(e,[{key:"_writeToStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw new Error("Not implemented: _writeToStorage");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_readFromStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:throw new Error("Not implemented: _readFromStorage");case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"reset",value:function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:return this.prefs=Object.assign(Object.create(null),this.defaults),e.abrupt("return",this._writeToStorage(this.defaults));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"set",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){var n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:if(n=this.defaults[t],void 0!==n){e.next=7;break}throw new Error('Set preference: "'.concat(t,'" is undefined.'));case 7:if(void 0!==r){e.next=9;break}throw new Error("Set preference: no value is specified.");case 9:if(i=a(r),o=a(n),i===o){e.next=19;break}if("number"!==i||"string"!==o){e.next=16;break}r=r.toString(),e.next=17;break;case 16:throw new Error('Set preference: "'.concat(r,'" is a ').concat(i,", ")+"expected a ".concat(o,"."));case 17:e.next=21;break;case 19:if("number"!==i||Number.isInteger(r)){e.next=21;break}throw new Error('Set preference: "'.concat(r,'" must be an integer.'));case 21:return this.prefs[t]=r,e.abrupt("return",this._writeToStorage(this.prefs));case 23:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"get",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:if(r=this.defaults[t],void 0!==r){e.next=7;break}throw new Error('Get preference: "'.concat(t,'" is undefined.'));case 7:if(n=this.prefs[t],void 0===n){e.next=10;break}return e.abrupt("return",n);case 10:return e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getAll",value:function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._initializedPromise;case 2:return e.abrupt("return",Object.assign(Object.create(null),this.defaults,this.prefs));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}();t.BasePreferences=c},8750:function(module,exports,__nested_webpack_require_1653429__){(function(Buffer,global,process,module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__nested_webpack_require_1653429__("a4d3"),__nested_webpack_require_1653429__("e01a"),__nested_webpack_require_1653429__("b636"),__nested_webpack_require_1653429__("d28b"),__nested_webpack_require_1653429__("944a"),__nested_webpack_require_1653429__("99af"),__nested_webpack_require_1653429__("a623"),__nested_webpack_require_1653429__("cb29"),__nested_webpack_require_1653429__("7db0"),__nested_webpack_require_1653429__("c740"),__nested_webpack_require_1653429__("4160"),__nested_webpack_require_1653429__("a630"),__nested_webpack_require_1653429__("caad"),__nested_webpack_require_1653429__("c975"),__nested_webpack_require_1653429__("e260"),__nested_webpack_require_1653429__("a15b"),__nested_webpack_require_1653429__("baa5"),__nested_webpack_require_1653429__("d81d"),__nested_webpack_require_1653429__("fb6a"),__nested_webpack_require_1653429__("45fc"),__nested_webpack_require_1653429__("a434"),__nested_webpack_require_1653429__("c19f"),__nested_webpack_require_1653429__("b0c0"),__nested_webpack_require_1653429__("6c57"),__nested_webpack_require_1653429__("0c47"),__nested_webpack_require_1653429__("4ec9"),__nested_webpack_require_1653429__("90d7"),__nested_webpack_require_1653429__("23dc"),__nested_webpack_require_1653429__("a9e3"),__nested_webpack_require_1653429__("8ba4"),__nested_webpack_require_1653429__("9129"),__nested_webpack_require_1653429__("b680"),__nested_webpack_require_1653429__("cca6"),__nested_webpack_require_1653429__("dca8"),__nested_webpack_require_1653429__("e439"),__nested_webpack_require_1653429__("7039"),__nested_webpack_require_1653429__("3410"),__nested_webpack_require_1653429__("c906"),__nested_webpack_require_1653429__("b64b"),__nested_webpack_require_1653429__("cee8"),__nested_webpack_require_1653429__("d3b7"),__nested_webpack_require_1653429__("07ac"),__nested_webpack_require_1653429__("e6cf"),__nested_webpack_require_1653429__("820e"),__nested_webpack_require_1653429__("a79d"),__nested_webpack_require_1653429__("5d41"),__nested_webpack_require_1653429__("4d63"),__nested_webpack_require_1653429__("ac1f"),__nested_webpack_require_1653429__("25f0"),__nested_webpack_require_1653429__("6062"),__nested_webpack_require_1653429__("f5b2"),__nested_webpack_require_1653429__("8a79"),__nested_webpack_require_1653429__("f6d6"),__nested_webpack_require_1653429__("2532"),__nested_webpack_require_1653429__("3ca3"),__nested_webpack_require_1653429__("466d"),__nested_webpack_require_1653429__("843c"),__nested_webpack_require_1653429__("4d90"),__nested_webpack_require_1653429__("38cf"),__nested_webpack_require_1653429__("5319"),__nested_webpack_require_1653429__("841c"),__nested_webpack_require_1653429__("1276"),__nested_webpack_require_1653429__("2ca0"),__nested_webpack_require_1653429__("498a"),__nested_webpack_require_1653429__("cc71"),__nested_webpack_require_1653429__("cfc3"),__nested_webpack_require_1653429__("4a9b"),__nested_webpack_require_1653429__("143c"),__nested_webpack_require_1653429__("5cc6"),__nested_webpack_require_1653429__("8a59"),__nested_webpack_require_1653429__("fb2c"),__nested_webpack_require_1653429__("9a8c"),__nested_webpack_require_1653429__("a975"),__nested_webpack_require_1653429__("735e"),__nested_webpack_require_1653429__("c1ac"),__nested_webpack_require_1653429__("d139"),__nested_webpack_require_1653429__("3a7b"),__nested_webpack_require_1653429__("d5d6"),__nested_webpack_require_1653429__("82f8"),__nested_webpack_require_1653429__("e91f"),__nested_webpack_require_1653429__("60bd"),__nested_webpack_require_1653429__("5f96"),__nested_webpack_require_1653429__("3280"),__nested_webpack_require_1653429__("3fcc"),__nested_webpack_require_1653429__("ca91"),__nested_webpack_require_1653429__("25a1"),__nested_webpack_require_1653429__("cd26"),__nested_webpack_require_1653429__("3c5d"),__nested_webpack_require_1653429__("2954"),__nested_webpack_require_1653429__("649e"),__nested_webpack_require_1653429__("219c"),__nested_webpack_require_1653429__("170b"),__nested_webpack_require_1653429__("b39a"),__nested_webpack_require_1653429__("72f7"),__nested_webpack_require_1653429__("10d1"),__nested_webpack_require_1653429__("1fe2"),__nested_webpack_require_1653429__("159b"),__nested_webpack_require_1653429__("ddb0"),__nested_webpack_require_1653429__("130f"),__nested_webpack_require_1653429__("2b3d"),__nested_webpack_require_1653429__("bf19");var _typeof2=__nested_webpack_require_1653429__("7037"); /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */(function(e,t){"object"===_typeof2(exports)&&"object"===_typeof2(module)?module.exports=t():(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=t,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(0,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===_typeof2(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n=r(1),a=r(190),i=r(205),o=r(206),s=r(194),l=r(207),c=r(199),u=r(196),d=r(48),h=d.isNodeJS;if(h){var f=r(208).PDFNodeStream;a.setPDFNetworkStreamFactory((function(e){return new f(e)}))}else{var p,g=r(211).PDFNetworkStream;s.isFetchSupported()&&(p=r(212).PDFFetchStream),a.setPDFNetworkStreamFactory((function(e){return p&&s.isValidFetchUrl(e.url)?new p(e):new g(e)}))}t.build=a.build,t.version=a.version,t.getDocument=a.getDocument,t.LoopbackPort=a.LoopbackPort,t.PDFDataRangeTransport=a.PDFDataRangeTransport,t.PDFWorker=a.PDFWorker,t.renderTextLayer=i.renderTextLayer,t.AnnotationLayer=o.AnnotationLayer,t.createPromiseCapability=n.createPromiseCapability,t.PasswordResponses=n.PasswordResponses,t.InvalidPDFException=n.InvalidPDFException,t.MissingPDFException=n.MissingPDFException,t.SVGGraphics=l.SVGGraphics,t.NativeImageDecoding=n.NativeImageDecoding,t.CMapCompressionType=n.CMapCompressionType,t.PermissionFlag=n.PermissionFlag,t.UnexpectedResponseException=n.UnexpectedResponseException,t.OPS=n.OPS,t.VerbosityLevel=n.VerbosityLevel,t.UNSUPPORTED_FEATURES=n.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=n.createValidAbsoluteUrl,t.createObjectURL=n.createObjectURL,t.removeNullCharacters=n.removeNullCharacters,t.shadow=n.shadow,t.Util=n.Util,t.RenderingCancelledException=s.RenderingCancelledException,t.getFilenameFromUrl=s.getFilenameFromUrl,t.LinkTarget=s.LinkTarget,t.addLinkAttributes=s.addLinkAttributes,t.loadScript=s.loadScript,t.PDFDateString=s.PDFDateString,t.GlobalWorkerOptions=c.GlobalWorkerOptions,t.apiCompatibilityParams=u.apiCompatibilityParams},function(e,t,r){"use strict";function n(e,t){for(var r=0;r=T.INFOS&&console.log("Info: ".concat(e))}function N(e){L>=T.WARNINGS&&console.log("Warning: ".concat(e))}function B(e){throw new Error(e)}function U(e,t){e||B(t)}function j(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(a){return!1}var n=new URL(t,r);return r.origin===n.origin}function q(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function z(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(q(r))return r}catch(n){}return null}function V(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var W=function(){function e(t){this.constructor===e&&B("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=W;var H=function(e){function t(e,r){var n;return o(this,t),n=s(this,c(t).call(this,e)),n.code=r,n}return u(t,e),t}(W);t.PasswordException=H;var G=function(e){function t(e,r){var n;return o(this,t),n=s(this,c(t).call(this,e)),n.details=r,n}return u(t,e),t}(W);t.UnknownErrorException=G;var Y=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.InvalidPDFException=Y;var X=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.MissingPDFException=X;var K=function(e){function t(e,r){var n;return o(this,t),n=s(this,c(t).call(this,e)),n.status=r,n}return u(t,e),t}(W);t.UnexpectedResponseException=K;var Z=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.FormatError=Z;var J=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),t}(W);t.AbortException=J;var Q=/\x00/g;function $(e){return"string"!==typeof e?(N("The argument for removeNullCharacters must be a string."),e):e.replace(Q,"")}function ee(e){U(null!==e&&"object"===i(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t>24&255,e>>16&255,e>>8&255,255&e)}function ie(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var oe={get value(){return V(this,"value",ie())}};function se(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=oe;var le={get value(){return V(this,"value",se())}};t.IsEvalSupportedCached=le;var ce=["rgb(",0,",",0,",",0,")"],ue=function(){function e(){o(this,e)}return a(e,null,[{key:"makeCssRgb",value:function(e,t,r){return ce[1]=e,ce[3]=t,ce[5]=r,ce.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],n=e[0]*t[1]+e[1]*t[3]+t[5];return[r,n]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],n=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,a=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[n,a]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),a=e.applyTransform(t.slice(2,4),r),i=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],a[0],i[0],o[0]),Math.min(n[1],a[1],i[1],o[1]),Math.max(n[0],a[0],i[0],o[0]),Math.max(n[1],a[1],i[1],o[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(r+i)/2,s=Math.sqrt((r+i)*(r+i)-4*(r*i-a*n))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var a=[t[0],t[2],r[0],r[2]].sort(n),i=[t[1],t[3],r[1],r[3]].sort(n),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}]),e}();t.Util=ue;var de=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function he(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var a=new Blob([t],{type:r});return URL.createObjectURL(a)}for(var i="data:".concat(r,";base64,"),o=0,s=t.length;o>2,h=(3&l)<<4|c>>4,f=o+1>6:64,p=o+21?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t})}}(),function(){if(o&&l){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,r,n){var a=void 0===n?[t,r]:[t,r,n];e.apply(this,a)},window.history.replaceState=function(e,r,n){var a=void 0===n?[e,r]:[e,r,n];t.apply(this,a)}}}(),function(){String.prototype.startsWith||r(49)}(),function(){String.prototype.endsWith||r(60)}(),function(){String.prototype.includes||r(62)}(),function(){Array.prototype.includes||r(64)}(),function(){Array.from||r(72)}(),function(){Object.assign||r(94)}(),function(){Math.log2||(Math.log2=r(97))}(),function(){Number.isNaN||(Number.isNaN=r(99))}(),function(){Number.isInteger||(Number.isInteger=r(101))}(),function(){globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=r(104))}(),function(){globalThis.URL=r(128)}(),function(){var e=!1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(t){}e||(globalThis.ReadableStream=r(135).ReadableStream)}(),function(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=r(136))}(),function(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=r(143))}(),function(){globalThis.WeakMap||(globalThis.WeakMap=r(145))}(),function(){globalThis.WeakSet||(globalThis.WeakSet=r(151))}(),function(){String.prototype.codePointAt||r(153)}(),function(){String.fromCodePoint||(String.fromCodePoint=r(155))}(),function(){globalThis.Symbol||r(157)}(),function(){String.prototype.padStart||r(180)}(),function(){String.prototype.padEnd||r(185)}(),function(){Object.values||(Object.values=r(187))}()}},function(e,t,r){r(4),e.exports=r(6)},function(e,t,r){var n=r(5),a=r(6);n({global:!0},{globalThis:a})},function(e,t,r){var n=r(6),a=r(7).f,i=r(21),o=r(24),s=r(25),l=r(35),c=r(47);e.exports=function(e,t){var r,u,d,h,f,p,g=e.target,v=e.global,m=e.stat;if(u=v?n:m?n[g]||s(g,{}):(n[g]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=a(u,d),h=p&&p.value):h=u[d],r=c(v?d:g+(m?".":"#")+d,e.forced),!r&&void 0!==h){if(_typeof2(f)===_typeof2(h))continue;l(f,h)}(e.sham||h&&h.sham)&&i(f,"sham",!0),o(u,d,f,e)}}},function(e,t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==("undefined"===typeof globalThis?"undefined":_typeof2(globalThis))&&globalThis)||r("object"==("undefined"===typeof window?"undefined":_typeof2(window))&&window)||r("object"==("undefined"===typeof self?"undefined":_typeof2(self))&&self)||r("object"==("undefined"===typeof global?"undefined":_typeof2(global))&&global)||Function("return this")()},function(e,t,r){var n=r(8),a=r(10),i=r(11),o=r(12),s=r(16),l=r(18),c=r(19),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(r){}if(l(e,t))return i(!a.f.call(e,t),e[t])}},function(e,t,r){var n=r(9);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!n.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(13),a=r(15);e.exports=function(e){return n(a(e))}},function(e,t,r){var n=r(9),a=r(14),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(17);e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"===_typeof2(e)?null!==e:"function"===typeof e}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(8),a=r(9),i=r(20);e.exports=!n&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(6),a=r(17),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(8),a=r(22),i=r(11);e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(8),a=r(19),i=r(23),o=r(16),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=o(t,!0),i(r),a)try{return s(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(17);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(6),a=r(21),i=r(18),o=r(25),s=r(26),l=r(28),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,r,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||a(r,"name",t),u(r).source=d.join("string"==typeof t?t:"")),e!==n?(l?!h&&e[t]&&(c=!0):delete e[t],c?e[t]=r:a(e,t,r)):c?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,r){var n=r(6),a=r(21);e.exports=function(e,t){try{a(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(27),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(6),a=r(25),i="__core-js_shared__",o=n[i]||a(i,{});e.exports=o},function(e,t,r){var n,a,i,o=r(29),s=r(6),l=r(17),c=r(21),u=r(18),d=r(30),h=r(34),f=s.WeakMap,p=function(e){return i(e)?a(e):n(e,{})},g=function(e){return function(t){var r;if(!l(t)||(r=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(o){var v=new f,m=v.get,b=v.has,y=v.set;n=function(e,t){return y.call(v,e,t),t},a=function(e){return m.call(v,e)||{}},i=function(e){return b.call(v,e)}}else{var w=d("state");h[w]=!0,n=function(e,t){return c(e,w,t),t},a=function(e){return u(e,w)?e[w]:{}},i=function(e){return u(e,w)}}e.exports={set:n,get:a,has:i,enforce:p,getterFor:g}},function(e,t,r){var n=r(6),a=r(26),i=n.WeakMap;e.exports="function"===typeof i&&/native code/.test(a(i))},function(e,t,r){var n=r(31),a=r(33),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t,r){var n=r(32),a=r(27);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(18),a=r(36),i=r(7),o=r(22);e.exports=function(e,t){for(var r=a(t),s=o.f,l=i.f,c=0;cl)n(s,r=t[l++])&&(~i(c,r)||c.push(r));return c}},function(e,t,r){var n=r(12),a=r(42),i=r(44),o=function(e){return function(t,r,o){var s,l=n(t),c=a(l.length),u=i(o,c);if(e&&r!=r){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,r){var n=r(43),a=Math.min;e.exports=function(e){return e>0?a(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(43),a=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?a(r+t,0):i(r,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(9),a=/#|\.prototype\./,i=function(e,t){var r=s[o(e)];return r==c||r!=l&&("function"==typeof t?n(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var a="object"===("undefined"===typeof process?"undefined":n(process))&&process+""==="[object process]"&&!process.versions["nw"]&&!process.versions["electron"];t.isNodeJS=a},function(e,t,r){r(50);var n=r(57);e.exports=n("String","startsWith")},function(e,t,r){"use strict";var n=r(5),a=r(7).f,i=r(42),o=r(51),s=r(15),l=r(56),c=r(32),u="".startsWith,d=Math.min,h=l("startsWith"),f=!c&&!h&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{startsWith:function(e){var t=String(s(this));o(e);var r=i(d(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return u?u.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){var n=r(52);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,r){var n=r(17),a=r(14),i=r(53),o=i("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==a(e))}},function(e,t,r){var n=r(6),a=r(31),i=r(18),o=r(33),s=r(54),l=r(55),c=a("wks"),u=n.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,r){var n=r(9);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t,r){var n=r(54);e.exports=n&&!Symbol.sham&&"symbol"==_typeof2(Symbol.iterator)},function(e,t,r){var n=r(53),a=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,"/./"[e](t)}catch(n){}}return!1}},function(e,t,r){var n=r(6),a=r(58),i=Function.call;e.exports=function(e,t,r){return a(i,n[e].prototype[t],r)}},function(e,t,r){var n=r(59);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){r(61);var n=r(57);e.exports=n("String","endsWith")},function(e,t,r){"use strict";var n=r(5),a=r(7).f,i=r(42),o=r(51),s=r(15),l=r(56),c=r(32),u="".endsWith,d=Math.min,h=l("endsWith"),f=!c&&!h&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{endsWith:function(e){var t=String(s(this));o(e);var r=arguments.length>1?arguments[1]:void 0,n=i(t.length),a=void 0===r?n:d(i(r),n),l=String(e);return u?u.call(t,l,a):t.slice(a-l.length,a)===l}})},function(e,t,r){r(63);var n=r(57);e.exports=n("String","includes")},function(e,t,r){"use strict";var n=r(5),a=r(51),i=r(15),o=r(56);n({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~String(i(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(65);var n=r(57);e.exports=n("Array","includes")},function(e,t,r){"use strict";var n=r(5),a=r(41).includes,i=r(66),o=r(71),s=o("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!s},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(e,t,r){var n=r(53),a=r(67),i=r(22),o=n("unscopables"),s=Array.prototype;void 0==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,r){var n,a=r(23),i=r(68),o=r(45),s=r(34),l=r(70),c=r(20),u=r(30),d=">",h="<",f="prototype",p="script",g=u("IE_PROTO"),v=function(){},m=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),r="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},w=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=n?b(n):y();var e=o.length;while(e--)delete w[f][o[e]];return w()};s[g]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(v[f]=a(e),r=new v,v[f]=null,r[g]=e):r=w(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(8),a=r(22),i=r(23),o=r(69);e.exports=n?Object.defineProperties:function(e,t){i(e);var r,n=o(t),s=n.length,l=0;while(s>l)a.f(e,r=n[l++],t[r]);return e}},function(e,t,r){var n=r(40),a=r(45);e.exports=Object.keys||function(e){return n(e,a)}},function(e,t,r){var n=r(37);e.exports=n("document","documentElement")},function(e,t,r){var n=r(8),a=r(9),i=r(18),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var r=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,d=i(t,1)?t[1]:void 0;return s[e]=!!r&&!a((function(){if(c&&!n)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,r.call(e,u,d)}))}},function(e,t,r){r(73),r(85);var n=r(38);e.exports=n.Array.from},function(e,t,r){"use strict";var n=r(74).charAt,a=r(28),i=r(75),o="String Iterator",s=a.set,l=a.getterFor(o);i(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=l(this),r=t.string,a=t.index;return a>=r.length?{value:void 0,done:!0}:(e=n(r,a),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(43),a=r(15),i=function(e){return function(t,r){var i,o,s=String(a(t)),l=n(r),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l),i<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536)}};e.exports={codeAt:i(!1),charAt:i(!0)}},function(e,t,r){"use strict";var n=r(5),a=r(76),i=r(78),o=r(83),s=r(81),l=r(21),c=r(24),u=r(53),d=r(32),h=r(82),f=r(77),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,v=u("iterator"),m="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,r,u,f,_,k){a(r,t,u);var x,S,A,C=function(e){if(e===f&&I)return I;if(!g&&e in E)return E[e];switch(e){case m:return function(){return new r(this,e)};case b:return function(){return new r(this,e)};case y:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",T=!1,E=e.prototype,R=E[v]||E["@@iterator"]||f&&E[f],I=!g&&R||C(f),O="Array"==t&&E.entries||R;if(O&&(x=i(O.call(new e)),p!==Object.prototype&&x.next&&(d||i(x)===p||(o?o(x,p):"function"!=typeof x[v]&&l(x,v,w)),s(x,P,!0,!0),d&&(h[P]=w))),f==b&&R&&R.name!==b&&(T=!0,I=function(){return R.call(this)}),d&&!k||E[v]===I||l(E,v,I),h[t]=I,f)if(S={values:C(b),keys:_?I:C(m),entries:C(y)},k)for(A in S)(g||T||!(A in E))&&c(E,A,S[A]);else n({target:t,proto:!0,forced:g||T},S);return S}},function(e,t,r){"use strict";var n=r(77).IteratorPrototype,a=r(67),i=r(11),o=r(81),s=r(82),l=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,c,!1,!0),s[c]=l,e}},function(e,t,r){"use strict";var n,a,i,o=r(78),s=r(21),l=r(18),c=r(53),u=r(32),d=c("iterator"),h=!1,f=function(){return this};[].keys&&(i=[].keys(),"next"in i?(a=o(o(i)),a!==Object.prototype&&(n=a)):h=!0),void 0==n&&(n={}),u||l(n,d)||s(n,d,f),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(e,t,r){var n=r(18),a=r(79),i=r(30),o=r(80),s=i("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,r){var n=r(15);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(9);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(22).f,a=r(18),i=r(53),o=i("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,r){var n=r(23),a=r(84);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},function(e,t,r){var n=r(17);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(5),a=r(86),i=r(93),o=!i((function(e){Array.from(e)}));n({target:"Array",stat:!0,forced:o},{from:a})},function(e,t,r){"use strict";var n=r(58),a=r(79),i=r(87),o=r(88),s=r(42),l=r(89),c=r(90);e.exports=function(e){var t,r,u,d,h,f,p=a(e),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,y=c(p),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),void 0==y||g==Array&&o(y))for(t=s(p.length),r=new g(t);t>w;w++)f=b?m(p[w],w):p[w],l(r,w,f);else for(d=y.call(p),h=d.next,r=new g;!(u=h.call(d)).done;w++)f=b?i(d,m,[u.value,w],!0):u.value,l(r,w,f);return r.length=w,r}},function(e,t,r){var n=r(23);e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(o){var i=e["return"];throw void 0!==i&&n(i.call(e)),o}}},function(e,t,r){var n=r(53),a=r(82),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},function(e,t,r){"use strict";var n=r(16),a=r(22),i=r(11);e.exports=function(e,t,r){var o=n(t);o in e?a.f(e,o,i(0,r)):e[o]=r}},function(e,t,r){var n=r(91),a=r(82),i=r(53),o=i("iterator");e.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[n(e)]}},function(e,t,r){var n=r(92),a=r(14),i=r(53),o=i("toStringTag"),s="Arguments"==a(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=Object(e),o))?r:s?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(53),a=n("toStringTag"),i={};i[a]="z",e.exports="[object z]"===String(i)},function(e,t,r){var n=r(53),a=n("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[a]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var n={};n[a]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(l){}return r}},function(e,t,r){r(95);var n=r(38);e.exports=n.Object.assign},function(e,t,r){var n=r(5),a=r(96);n({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(e,t,r){"use strict";var n=r(8),a=r(9),i=r(69),o=r(46),s=r(10),l=r(79),c=r(13),u=Object.assign,d=Object.defineProperty;e.exports=!u||a((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),a="abcdefghijklmnopqrst";return e[r]=7,a.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||i(u({},t)).join("")!=a}))?function(e,t){var r=l(e),a=arguments.length,u=1,d=o.f,h=s.f;while(a>u){var f,p=c(arguments[u++]),g=d?i(p).concat(d(p)):i(p),v=g.length,m=0;while(v>m)f=g[m++],n&&!h.call(p,f)||(r[f]=p[f])}return r}:u},function(e,t,r){r(98);var n=r(38);e.exports=n.Math.log2},function(e,t,r){var n=r(5),a=Math.log,i=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return a(e)/i}})},function(e,t,r){r(100);var n=r(38);e.exports=n.Number.isNaN},function(e,t,r){var n=r(5);n({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,r){r(102);var n=r(38);e.exports=n.Number.isInteger},function(e,t,r){var n=r(5),a=r(103);n({target:"Number",stat:!0},{isInteger:a})},function(e,t,r){var n=r(17),a=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&a(e)===e}},function(e,t,r){r(105),r(73),r(107),r(110),r(126),r(127);var n=r(38);e.exports=n.Promise},function(e,t,r){var n=r(92),a=r(24),i=r(106);n||a(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,r){"use strict";var n=r(92),a=r(91);e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},function(e,t,r){var n=r(6),a=r(108),i=r(109),o=r(21),s=r(53),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in a){var h=n[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{o(f,l,u)}catch(g){f[l]=u}if(f[c]||o(f,c,d),a[d])for(var p in i)if(f[p]!==i[p])try{o(f,p,i[p])}catch(g){f[p]=i[p]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){"use strict";var n=r(12),a=r(66),i=r(82),o=r(28),s=r(75),l="Array Iterator",c=o.set,u=o.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(e,t,r){"use strict";var n,a,i,o,s=r(5),l=r(32),c=r(6),u=r(37),d=r(111),h=r(24),f=r(112),p=r(81),g=r(113),v=r(17),m=r(59),b=r(114),y=r(14),w=r(26),_=r(115),k=r(93),x=r(116),S=r(117).set,A=r(120),C=r(121),P=r(123),T=r(122),E=r(124),R=r(28),I=r(47),O=r(53),L=r(125),F=O("species"),M="Promise",D=R.get,N=R.set,B=R.getterFor(M),U=d,j=c.TypeError,q=c.document,z=c.process,V=u("fetch"),W=T.f,H=W,G="process"==y(z),Y=!!(q&&q.createEvent&&c.dispatchEvent),X="unhandledrejection",K="rejectionhandled",Z=0,J=1,Q=2,$=1,ee=2,te=I(M,(function(){var e=w(U)!==String(U);if(!e){if(66===L)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!U.prototype["finally"])return!0;if(L>=51&&/native code/.test(U))return!1;var t=U.resolve(1),r=function(e){e((function(){}),(function(){}))},n=t.constructor={};return n[F]=r,!(t.then((function(){}))instanceof r)})),re=te||!k((function(e){U.all(e)["catch"]((function(){}))})),ne=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ae=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;A((function(){var a=t.value,i=t.state==J,o=0;while(n.length>o){var s,l,c,u=n[o++],d=i?u.ok:u.fail,h=u.resolve,f=u.reject,p=u.domain;try{d?(i||(t.rejection===ee&&le(e,t),t.rejection=$),!0===d?s=a:(p&&p.enter(),s=d(a),p&&(p.exit(),c=!0)),s===u.promise?f(j("Promise-chain cycle")):(l=ne(s))?l.call(s,h,f):h(s)):f(a)}catch(g){p&&!c&&p.exit(),f(g)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&oe(e,t)}))}},ie=function(e,t,r){var n,a;Y?(n=q.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(a=c["on"+e])?a(n):e===X&&P("Unhandled promise rejection",r)},oe=function(e,t){S.call(c,(function(){var r,n=t.value,a=se(t);if(a&&(r=E((function(){G?z.emit("unhandledRejection",n,e):ie(X,e,n)})),t.rejection=G||se(t)?ee:$,r.error))throw r.value}))},se=function(e){return e.rejection!==$&&!e.parent},le=function(e,t){S.call(c,(function(){G?z.emit("rejectionHandled",e):ie(K,e,t.value)}))},ce=function(e,t,r,n){return function(a){e(t,r,a,n)}},ue=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=Q,ae(e,t,!0))},de=function e(t,r,n,a){if(!r.done){r.done=!0,a&&(r=a);try{if(t===n)throw j("Promise can't be resolved itself");var i=ne(n);i?A((function(){var a={done:!1};try{i.call(n,ce(e,t,a,r),ce(ue,t,a,r))}catch(o){ue(t,a,o,r)}})):(r.value=n,r.state=J,ae(t,r,!1))}catch(o){ue(t,{done:!1},o,r)}}};te&&(U=function(e){b(this,U,M),m(e),n.call(this);var t=D(this);try{e(ce(de,this,t),ce(ue,this,t))}catch(r){ue(this,t,r)}},n=function(e){N(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},n.prototype=f(U.prototype,{then:function(e,t){var r=B(this),n=W(x(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=G?z.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=Z&&ae(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n,t=D(e);this.promise=e,this.resolve=ce(de,e,t),this.reject=ce(ue,e,t)},T.f=W=function(e){return e===U||e===i?new a(e):H(e)},l||"function"!=typeof d||(o=d.prototype.then,h(d.prototype,"then",(function(e,t){var r=this;return new U((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(U,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,M,!1,!0),g(M),i=u(M),s({target:M,stat:!0,forced:te},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:l||te},{resolve:function(e){return C(l&&this===i?U:this,e)}}),s({target:M,stat:!0,forced:re},{all:function(e){var t=this,r=W(t),n=r.resolve,a=r.reject,i=E((function(){var r=m(t.resolve),i=[],o=0,s=1;_(e,(function(e){var l=o++,c=!1;i.push(void 0),s++,r.call(t,e).then((function(e){c||(c=!0,i[l]=e,--s||n(i))}),a)})),--s||n(i)}));return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=W(t),n=r.reject,a=E((function(){var a=m(t.resolve);_(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}})},function(e,t,r){var n=r(6);e.exports=n.Promise},function(e,t,r){var n=r(24);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},function(e,t,r){"use strict";var n=r(37),a=r(22),i=r(53),o=r(8),s=i("species");e.exports=function(e){var t=n(e),r=a.f;o&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n=r(23),a=r(88),i=r(42),o=r(58),s=r(90),l=r(87),c=function(e,t){this.stopped=e,this.result=t},u=e.exports=function(e,t,r,u,d){var h,f,p,g,v,m,b,y=o(t,r,u?2:1);if(d)h=e;else{if(f=s(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(a(f)){for(p=0,g=i(e.length);g>p;p++)if(v=u?y(n(b=e[p])[0],b[1]):y(e[p]),v&&v instanceof c)return v;return new c(!1)}h=f.call(e)}m=h.next;while(!(b=m.call(h)).done)if(v=l(h,y,b.value,u),"object"==_typeof2(v)&&v&&v instanceof c)return v;return new c(!1)};u.stop=function(e){return new c(!0,e)}},function(e,t,r){var n=r(23),a=r(59),i=r(53),o=i("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||void 0==(r=n(i)[o])?t:a(r)}},function(e,t,r){var n,a,i,o=r(6),s=r(9),l=r(14),c=r(58),u=r(70),d=r(20),h=r(118),f=o.location,p=o.setImmediate,g=o.clearImmediate,v=o.process,m=o.MessageChannel,b=o.Dispatch,y=0,w={},_="onreadystatechange",k=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},x=function(e){return function(){k(e)}},S=function(e){k(e.data)},A=function(e){o.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(p=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},g=function(e){delete w[e]},"process"==l(v)?n=function(e){v.nextTick(x(e))}:b&&b.now?n=function(e){b.now(x(e))}:m&&!h?(a=new m,i=a.port2,a.port1.onmessage=S,n=c(i.postMessage,i,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(A)?n=_ in d("script")?function(e){u.appendChild(d("script"))[_]=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(x(e),0)}:(n=A,o.addEventListener("message",S,!1))),e.exports={set:p,clear:g}},function(e,t,r){var n=r(119);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(37);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n,a,i,o,s,l,c,u,d=r(6),h=r(7).f,f=r(14),p=r(117).set,g=r(118),v=d.MutationObserver||d.WebKitMutationObserver,m=d.process,b=d.Promise,y="process"==f(m),w=h(d,"queueMicrotask"),_=w&&w.value;_||(n=function(){var e,t;y&&(e=m.domain)&&e.exit();while(a){t=a.fn,a=a.next;try{t()}catch(r){throw a?o():i=void 0,r}}i=void 0,e&&e.enter()},y?o=function(){m.nextTick(n)}:v&&!g?(s=!0,l=document.createTextNode(""),new v(n).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),u=c.then,o=function(){u.call(c,n)}):o=function(){p.call(d,n)}),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},function(e,t,r){var n=r(23),a=r(17),i=r(122);e.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var r=i.f(e),o=r.resolve;return o(t),r.promise}},function(e,t,r){"use strict";var n=r(59),a=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new a(e)}},function(e,t,r){var n=r(6);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(e,t,r){var n,a,i=r(6),o=r(119),s=i.process,l=s&&s.versions,c=l&&l.v8;c?(n=c.split("."),a=n[0]+n[1]):o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(a=n[1]))),e.exports=a&&+a},function(e,t,r){"use strict";var n=r(5),a=r(59),i=r(122),o=r(124),s=r(115);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=i.f(t),n=r.resolve,l=r.reject,c=o((function(){var r=a(t.resolve),i=[],o=0,l=1;s(e,(function(e){var a=o++,s=!1;i.push(void 0),l++,r.call(t,e).then((function(e){s||(s=!0,i[a]={status:"fulfilled",value:e},--l||n(i))}),(function(e){s||(s=!0,i[a]={status:"rejected",reason:e},--l||n(i))}))})),--l||n(i)}));return c.error&&l(c.value),r.promise}})},function(e,t,r){"use strict";var n=r(5),a=r(32),i=r(111),o=r(9),s=r(37),l=r(116),c=r(121),u=r(24),d=!!i&&o((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=l(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),a||"function"!=typeof i||i.prototype["finally"]||u(i.prototype,"finally",s("Promise").prototype["finally"])},function(e,t,r){r(129),r(134),r(132);var n=r(38);e.exports=n.URL},function(e,t,r){"use strict";r(73);var n,a=r(5),i=r(8),o=r(130),s=r(6),l=r(68),c=r(24),u=r(114),d=r(18),h=r(96),f=r(86),p=r(74).codeAt,g=r(131),v=r(81),m=r(132),b=r(28),y=s.URL,w=m.URLSearchParams,_=m.getState,k=b.set,x=b.getterFor("URL"),S=Math.floor,A=Math.pow,C="Invalid authority",P="Invalid scheme",T="Invalid host",E="Invalid port",R=/[A-Za-z]/,I=/[\d+\-.A-Za-z]/,O=/\d/,L=/^(0x|0X)/,F=/^[0-7]+$/,M=/^\d+$/,D=/^[\dA-Fa-f]+$/,N=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,q=function(e,t){var r,n,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return T;if(r=V(t.slice(1,-1)),!r)return T;e.host=r}else if(Q(e)){if(t=g(t),N.test(t))return T;if(r=z(t),null===r)return T;e.host=r}else{if(B.test(t))return T;for(r="",n=f(t),a=0;a4)return e;for(r=[],n=0;n1&&"0"==a.charAt(0)&&(i=L.test(a)?16:8,a=a.slice(8==i?1:2)),""===a)o=0;else{if(!(10==i?M:8==i?F:D).test(a))return e;o=parseInt(a,i)}r.push(o)}for(n=0;n=A(256,5-t))return null}else if(o>255)return null;for(s=r.pop(),n=0;n6)return;n=0;while(h()){if(a=null,n>0){if(!("."==h()&&n<4))return;d++}if(!O.test(h()))return;while(O.test(h())){if(i=parseInt(h(),10),null===a)a=i;else{if(0==a)return;a=10*a+i}if(a>255)return;d++}l[c]=256*l[c]+a,n++,2!=n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,c++,u=c}}if(null!==u){o=c-u,c=7;while(0!=c&&o>0)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s}else if(8!=c)return;return l},W=function(e){for(var t=null,r=1,n=null,a=0,i=0;i<8;i++)0!==e[i]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=i),++a);return a>r&&(t=n,r=a),t},H=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==_typeof2(e)){for(t="",n=W(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=e[r].toString(16),r<7&&(t+=":")));return"["+t+"]"}return e},G={},Y=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),X=h({},Y,{"#":1,"?":1,"{":1,"}":1}),K=h({},X,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(e,t){var r=p(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(J,e.scheme)},$=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var r;return 2==e.length&&R.test(e.charAt(0))&&(":"==(r=e.charAt(1))||!t&&"|"==r)},re=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,r=t.length;!r||"file"==e.scheme&&1==r&&te(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},ie=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},se={},le={},ce={},ue={},de={},he={},fe={},pe={},ge={},ve={},me={},be={},ye={},we={},_e={},ke={},xe={},Se={},Ae={},Ce={},Pe=function(e,t,r,a){var i,o,s,l,c=r||oe,u=0,h="",p=!1,g=!1,v=!1;r||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(U,"")),t=t.replace(j,""),i=f(t);while(u<=i.length){switch(o=i[u],c){case oe:if(!o||!R.test(o)){if(r)return P;c=le;continue}h+=o.toLowerCase(),c=se;break;case se:if(o&&(I.test(o)||"+"==o||"-"==o||"."==o))h+=o.toLowerCase();else{if(":"!=o){if(r)return P;h="",c=le,u=0;continue}if(r&&(Q(e)!=d(J,h)||"file"==h&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,r)return void(Q(e)&&J[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ye:Q(e)&&a&&a.scheme==e.scheme?c=ce:Q(e)?c=fe:"/"==i[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!a||a.cannotBeABaseURL&&"#"!=o)return P;if(a.cannotBeABaseURL&&"#"==o){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,c=Ce;break}c="file"==a.scheme?ye:de;continue;case ce:if("/"!=o||"/"!=i[u+1]){c=de;continue}c=pe,u++;break;case ue:if("/"==o){c=ge;break}c=xe;continue;case de:if(e.scheme=a.scheme,o==n)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==o||"\\"==o&&Q(e))c=he;else if("?"==o)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),c=xe;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}break;case he:if(!Q(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,c=xe;continue}c=ge}else c=pe;break;case fe:if(c=pe,"/"!=o||"/"!=h.charAt(u+1))continue;u++;break;case pe:if("/"!=o&&"\\"!=o){c=ge;continue}break;case ge:if("@"==o){p&&(h="%40"+h),p=!0,s=f(h);for(var m=0;m65535)return E;e.port=Q(e)&&w===J[e.scheme]?null:w,h=""}if(r)return;c=ke;continue}return E}h+=o;break;case ye:if(e.scheme="file","/"==o||"\\"==o)c=we;else{if(!a||"file"!=a.scheme){c=xe;continue}if(o==n)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==o)e.host=a.host,e.path=a.path.slice(),e.query="",c=Ae;else{if("#"!=o){re(i.slice(u).join(""))||(e.host=a.host,e.path=a.path.slice(),ne(e)),c=xe;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",c=Ce}}break;case we:if("/"==o||"\\"==o){c=_e;break}a&&"file"==a.scheme&&!re(i.slice(u).join(""))&&(te(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),c=xe;continue;case _e:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!r&&te(h))c=xe;else if(""==h){if(e.host="",r)return;c=ke}else{if(l=q(e,h),l)return l;if("localhost"==e.host&&(e.host=""),r)return;h="",c=ke}continue}h+=o;break;case ke:if(Q(e)){if(c=xe,"/"!=o&&"\\"!=o)continue}else if(r||"?"!=o)if(r||"#"!=o){if(o!=n&&(c=xe,"/"!=o))continue}else e.fragment="",c=Ce;else e.query="",c=Ae;break;case xe:if(o==n||"/"==o||"\\"==o&&Q(e)||!r&&("?"==o||"#"==o)){if(ie(h)?(ne(e),"/"==o||"\\"==o&&Q(e)||e.path.push("")):ae(h)?"/"==o||"\\"==o&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(o==n||"?"==o||"#"==o))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==o?(e.query="",c=Ae):"#"==o&&(e.fragment="",c=Ce)}else h+=Z(o,X);break;case Se:"?"==o?(e.query="",c=Ae):"#"==o?(e.fragment="",c=Ce):o!=n&&(e.path[0]+=Z(o,G));break;case Ae:r||"#"!=o?o!=n&&("'"==o&&Q(e)?e.query+="%27":e.query+="#"==o?"%23":Z(o,G)):(e.fragment="",c=Ce);break;case Ce:o!=n&&(e.fragment+=Z(o,Y));break}u++}},Te=function(e){var t,r,n=u(this,Te,"URL"),a=arguments.length>1?arguments[1]:void 0,o=String(e),s=k(n,{type:"URL"});if(void 0!==a)if(a instanceof Te)t=x(a);else if(r=Pe(t={},String(a)),r)throw TypeError(r);if(r=Pe(s,o,null,t),r)throw TypeError(r);var l=s.searchParams=new w,c=_(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},i||(n.href=Re.call(n),n.origin=Ie.call(n),n.protocol=Oe.call(n),n.username=Le.call(n),n.password=Fe.call(n),n.host=Me.call(n),n.hostname=De.call(n),n.port=Ne.call(n),n.pathname=Be.call(n),n.search=Ue.call(n),n.searchParams=je.call(n),n.hash=qe.call(n))},Ee=Te.prototype,Re=function(){var e=x(this),t=e.scheme,r=e.username,n=e.password,a=e.host,i=e.port,o=e.path,s=e.query,l=e.fragment,c=t+":";return null!==a?(c+="//",$(e)&&(c+=r+(n?":"+n:"")+"@"),c+=H(a),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Ie=function(){var e=x(this),t=e.scheme,r=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(n){return"null"}return"file"!=t&&Q(e)?t+"://"+H(e.host)+(null!==r?":"+r:""):"null"},Oe=function(){return x(this).scheme+":"},Le=function(){return x(this).username},Fe=function(){return x(this).password},Me=function(){var e=x(this),t=e.host,r=e.port;return null===t?"":null===r?H(t):H(t)+":"+r},De=function(){var e=x(this).host;return null===e?"":H(e)},Ne=function(){var e=x(this).port;return null===e?"":String(e)},Be=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ue=function(){var e=x(this).query;return e?"?"+e:""},je=function(){return x(this).searchParams},qe=function(){var e=x(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&l(Ee,{href:ze(Re,(function(e){var t=x(this),r=String(e),n=Pe(t,r);if(n)throw TypeError(n);_(t.searchParams).updateSearchParams(t.query)})),origin:ze(Ie),protocol:ze(Oe,(function(e){var t=x(this);Pe(t,String(e)+":",oe)})),username:ze(Le,(function(e){var t=x(this),r=f(String(e));if(!ee(t)){t.username="";for(var n=0;n=55296&&a<=56319&&r>1,e+=v(e/t);e>g*o>>1;n+=a)e=v(e/g);return v(n+(g+1)*e/(e+s))},_=function(e){var t=[];e=b(e);var r,s,l=e.length,h=u,f=0,g=c;for(r=0;r=h&&sv((n-f)/S))throw RangeError(p);for(f+=(x-h)*S,h=x,r=0;rn)throw RangeError(p);if(s==h){for(var A=f,C=a;;C+=a){var P=C<=g?i:C>=g+o?o:C-g;if(A0?arguments[0]:void 0,u=this,f=[];if(P(u,{type:A,entries:f,updateURL:function(){},updateSearchParams:j}),void 0!==c)if(v(c))if(e=w(c),"function"===typeof e){t=e.call(c),r=t.next;while(!(n=r.call(t)).done){if(a=y(g(n.value)),i=a.next,(o=i.call(a)).done||(s=i.call(a)).done||!i.call(a).done)throw TypeError("Expected sequence with length 2");f.push({key:o.value+"",value:s.value+""})}}else for(l in c)h(c,l)&&f.push({key:l,value:c[l]+""});else U(f,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=V.prototype;s(W,{append:function(e,t){q(arguments.length,2);var r=T(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){q(arguments.length,1);var t=T(this),r=t.entries,n=e+"",a=0;while(ae.key){a.splice(t,0,e);break}t===r&&a.push(e)}n.updateURL()},forEach:function(e){var t,r=T(this).entries,n=f(e,arguments.length>1?arguments[1]:void 0,3),a=0;while(a1&&(t=arguments[1],v(t)&&(r=t.body,p(r)===A&&(n=t.headers?new x(t.headers):new x,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:b(0,String(r)),headers:b(0,n)}))),a.push(t)),k.apply(this,a)}}),e.exports={URLSearchParams:V,getState:T}},function(e,t,r){var n=r(23),a=r(90);e.exports=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},function(e,t,r){"use strict";var n=r(5);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,r){(function(e,r){r(t)})(0,(function(e){"use strict";var t="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?Symbol:function(e){return"Symbol("+e+")"};function r(){}var n=Number.isNaN||function(e){return e!==e},a=r;function i(e){return"object"===_typeof2(e)&&null!==e||"function"===typeof e}function o(e){return e.slice()}function s(e,t,r,n,a){new Uint8Array(e).set(new Uint8Array(r,n,a),t)}function l(e){return!1!==c(e)&&e!==1/0}function c(e){return"number"===typeof e&&(!n(e)&&!(e<0))}function u(e,t,r){if("function"!==typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function d(e,t,r,n){var a=e[t];if(void 0!==a){if("function"!==typeof a)throw new TypeError(a+" is not a method");switch(r){case 0:return function(){return f(a,e,n)};case 1:return function(t){var r=[t].concat(n);return f(a,e,r)}}}return function(){return x(void 0)}}function h(e,t,r){var n=e[t];if(void 0!==n)return u(n,e,r)}function f(e,t,r){try{return x(u(e,t,r))}catch(n){return S(n)}}function p(e){return e}function g(e){return!1}function v(e){if(e=Number(e),n(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function m(e){if(void 0===e)return function(){return 1};if("function"!==typeof e)throw new TypeError("size property of a queuing strategy must be a function");return function(t){return e(t)}}var b=Promise,y=Promise.prototype.then,w=Promise.resolve.bind(b),_=Promise.reject.bind(b);function k(e){return new b(e)}function x(e){return w(e)}function S(e){return _(e)}function A(e,t,r){return y.call(e,t,r)}function C(e,t,r){A(A(e,t,r),void 0,a)}function P(e,t){C(e,t)}function T(e,t){C(e,void 0,t)}function E(e,t,r){return A(e,t,r)}function R(e){A(e,void 0,a)}var I=16384,O=function(){function e(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.push=function(e){var t=this._back,r=t;t._elements.length===I-1&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size},e.prototype.shift=function(){var e=this._front,t=e,r=this._cursor,n=r+1,a=e._elements,i=a[r];return n===I&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),a[r]=void 0,i},e.prototype.forEach=function(e){var t=this._cursor,r=this._front,n=r._elements;while(t!==n.length||void 0!==r._next){if(t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length))break;e(n[t]),++t}},e.prototype.peek=function(){var e=this._front,t=this._cursor;return e._elements[t]},e}();function L(e,t,r){var n=null;!0===r&&(n=Object.prototype);var a=Object.create(n);return a.value=e,a.done=t,a}function F(e,t){e._forAuthorCode=!0,e._ownerReadableStream=t,t._reader=e,"readable"===t._state?B(e):"closed"===t._state?j(e):U(e,t._storedError)}function M(e,t){var r=e._ownerReadableStream;return Dr(r,t)}function D(e){"readable"===e._ownerReadableStream._state?q(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):z(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function N(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function B(e){e._closedPromise=k((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function U(e,t){B(e),q(e,t)}function j(e){B(e),V(e)}function q(e,t){R(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function z(e,t){U(e,t)}function V(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}var W=t("[[CancelSteps]]"),H=t("[[PullSteps]]");function G(e,t){void 0===t&&(t=!1);var r=new $(e);return r._forAuthorCode=t,r}function Y(e){var t=k((function(t,r){var n={_resolve:t,_reject:r};e._reader._readRequests.push(n)}));return t}function X(e,t,r){var n=e._reader,a=n._readRequests.shift();a._resolve(L(t,r,n._forAuthorCode))}function K(e){return e._reader._readRequests.length}function Z(e){var t=e._reader;return void 0!==t&&!!ee(t)}var J,Q,$=function(){function e(e){if(!1===Fr(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Mr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");F(this,e),this._readRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return ee(this)?this._closedPromise:S(re("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return ee(this)?void 0===this._ownerReadableStream?S(N("cancel")):M(this,e):S(re("cancel"))},e.prototype.read=function(){return ee(this)?void 0===this._ownerReadableStream?S(N("read from")):te(this):S(re("read"))},e.prototype.releaseLock=function(){if(!ee(this))throw re("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");D(this)}},e}();function ee(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function te(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?x(L(void 0,!0,e._forAuthorCode)):"errored"===t._state?S(t._storedError):t._readableStreamController[H]()}function re(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"===_typeof2(t.asyncIterator)&&(J={},J[t.asyncIterator]=function(){return this},Q=J,Object.defineProperty(Q,t.asyncIterator,{enumerable:!1}));var ne={next:function(){if(!1===ie(this))return S(oe("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?S(N("iterate")):E(te(e),(function(t){var r=t.done;r&&D(e);var n=t.value;return L(n,r,!0)}))},return:function(e){if(!1===ie(this))return S(oe("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return S(N("finish iterating"));if(t._readRequests.length>0)return S(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var r=M(t,e);return D(t),E(r,(function(){return L(e,!0,!0)}))}return D(t),x(L(e,!0,!0))}};function ae(e,t){void 0===t&&(t=!1);var r=G(e),n=Object.create(ne);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function ie(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function oe(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function se(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function le(e,t,r){if(r=Number(r),!l(r))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function ce(e){var t=e._queue.peek();return t.value}function ue(e){e._queue=new O,e._queueTotalSize=0}void 0!==Q&&Object.setPrototypeOf(ne,Q),Object.defineProperty(ne,"next",{enumerable:!1}),Object.defineProperty(ne,"return",{enumerable:!1});var de=t("[[AbortSteps]]"),he=t("[[ErrorSteps]]"),fe=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),ve(this);var r=t.size,n=t.highWaterMark,a=e.type;if(void 0!==a)throw new RangeError("Invalid type is specified");var i=m(r);void 0===n&&(n=1),n=v(n),Xe(this,e,n,i)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===me(this))throw ot("locked");return be(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===me(this)?S(ot("abort")):!0===be(this)?S(new TypeError("Cannot abort a stream that already has a writer")):ye(this,e)},e.prototype.close=function(){return!1===me(this)?S(ot("close")):!0===be(this)?S(new TypeError("Cannot close a stream that already has a writer")):!0===Ee(this)?S(new TypeError("Cannot close an already-closing stream")):we(this)},e.prototype.getWriter=function(){if(!1===me(this))throw ot("getWriter");return pe(this)},e}();function pe(e){return new Me(e)}function ge(e,t,r,n,a,i){void 0===a&&(a=1),void 0===i&&(i=function(){return 1});var o=Object.create(fe.prototype);ve(o);var s=Object.create(He.prototype);return Ye(o,s,e,t,r,n,a,i),o}function ve(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new O,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function me(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function be(e){return void 0!==e._writer}function ye(e,t){var r=e._state;if("closed"===r||"errored"===r)return x(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,t=void 0);var a=k((function(r,a){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:a,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=a,!1===n&&xe(e,t),a}function we(e){var t=e._state;if("closed"===t||"errored"===t)return S(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=k((function(t,r){var n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;return void 0!==n&&!0===e._backpressure&&"writable"===t&&_t(n),Ze(e._writableStreamController),r}function _e(e){var t=k((function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)}));return t}function ke(e,t){var r=e._state;"writable"!==r?Se(e):xe(e,t)}function xe(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;void 0!==n&&qe(n,t),!1===Re(e)&&!0===r._started&&Se(e)}function Se(e){e._state="errored",e._writableStreamController[he]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new O,void 0!==e._pendingAbortRequest){var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===r._wasAlreadyErroring)return r._reject(t),void Le(e);var n=e._writableStreamController[de](r._reason);C(n,(function(){r._resolve(),Le(e)}),(function(t){r._reject(t),Le(e)}))}else Le(e)}function Ae(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Ce(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,ke(e,t)}function Pe(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;void 0!==r&&pt(r)}function Te(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),ke(e,t)}function Ee(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Re(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function Ie(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Oe(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Le(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&ht(t,e._storedError)}function Fe(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(!0===t?yt(r):_t(r)),e._backpressure=t}var Me=function(){function e(e){if(!1===me(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===be(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)!1===Ee(e)&&!0===e._backpressure?gt(this):mt(this),ct(this);else if("erroring"===t)vt(this,e._storedError),ct(this);else if("closed"===t)mt(this),dt(this);else{var r=e._storedError;vt(this,r),ut(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===De(this)?S(st("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===De(this))throw st("desiredSize");if(void 0===this._ownerWritableStream)throw lt("desiredSize");return ze(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===De(this)?S(st("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===De(this)?S(st("abort")):void 0===this._ownerWritableStream?S(lt("abort")):Ne(this,e)},e.prototype.close=function(){if(!1===De(this))return S(st("close"));var e=this._ownerWritableStream;return void 0===e?S(lt("close")):!0===Ee(e)?S(new TypeError("Cannot close an already-closing stream")):Be(this)},e.prototype.releaseLock=function(){if(!1===De(this))throw st("releaseLock");var e=this._ownerWritableStream;void 0!==e&&Ve(this)},e.prototype.write=function(e){return!1===De(this)?S(st("write")):void 0===this._ownerWritableStream?S(lt("write to")):We(this,e)},e}();function De(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function Ne(e,t){var r=e._ownerWritableStream;return ye(r,t)}function Be(e){var t=e._ownerWritableStream;return we(t)}function Ue(e){var t=e._ownerWritableStream,r=t._state;return!0===Ee(t)||"closed"===r?x(void 0):"errored"===r?S(t._storedError):Be(e)}function je(e,t){"pending"===e._closedPromiseState?ht(e,t):ft(e,t)}function qe(e,t){"pending"===e._readyPromiseState?bt(e,t):wt(e,t)}function ze(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Qe(t._writableStreamController)}function Ve(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");qe(e,r),je(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function We(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,a=Je(n,t);if(r!==e._ownerWritableStream)return S(lt("write to"));var i=r._state;if("errored"===i)return S(r._storedError);if(!0===Ee(r)||"closed"===i)return S(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return S(r._storedError);var o=_e(r);return $e(n,t,a),o}var He=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===Ge(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t=this._controlledWritableStream._state;"writable"===t&&it(this,e)},e.prototype[de]=function(e){var t=this._abortAlgorithm(e);return Ke(this),t},e.prototype[he]=function(){ue(this)},e}();function Ge(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function Ye(e,t,r,n,a,i,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ue(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=a,t._abortAlgorithm=i;var l=at(t);Fe(e,l);var c=r(),u=x(c);C(u,(function(){t._started=!0,et(t)}),(function(r){t._started=!0,ke(e,r)}))}function Xe(e,t,r,n){var a=Object.create(He.prototype);function i(){return h(t,"start",[a])}var o=d(t,"write",1,[a]),s=d(t,"close",0,[]),l=d(t,"abort",1,[]);Ye(e,a,i,o,s,l,r,n)}function Ke(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Ze(e){le(e,"close",0),et(e)}function Je(e,t){try{return e._strategySizeAlgorithm(t)}catch(r){return tt(e,r),1}}function Qe(e){return e._strategyHWM-e._queueTotalSize}function $e(e,t,r){var n={chunk:t};try{le(e,n,r)}catch(o){return void tt(e,o)}var a=e._controlledWritableStream;if(!1===Ee(a)&&"writable"===a._state){var i=at(e);Fe(a,i)}et(e)}function et(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var r=t._state;if("erroring"!==r){if(0!==e._queue.length){var n=ce(e);"close"===n?rt(e):nt(e,n.chunk)}}else Se(t)}}function tt(e,t){"writable"===e._controlledWritableStream._state&&it(e,t)}function rt(e){var t=e._controlledWritableStream;Ie(t),se(e);var r=e._closeAlgorithm();Ke(e),C(r,(function(){Pe(t)}),(function(e){Te(t,e)}))}function nt(e,t){var r=e._controlledWritableStream;Oe(r);var n=e._writeAlgorithm(t);C(n,(function(){Ae(r);var t=r._state;if(se(e),!1===Ee(r)&&"writable"===t){var n=at(e);Fe(r,n)}et(e)}),(function(t){"writable"===r._state&&Ke(e),Ce(r,t)}))}function at(e){var t=Qe(e);return t<=0}function it(e,t){var r=e._controlledWritableStream;Ke(e),xe(r,t)}function ot(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function st(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function lt(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function ct(e){e._closedPromise=k((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function ut(e,t){ct(e),ht(e,t)}function dt(e){ct(e),pt(e)}function ht(e,t){R(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function ft(e,t){ut(e,t)}function pt(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function gt(e){e._readyPromise=k((function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function vt(e,t){gt(e),bt(e,t)}function mt(e){gt(e),_t(e)}function bt(e,t){R(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function yt(e){gt(e)}function wt(e,t){vt(e,t)}function _t(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function kt(e){if("object"!==_typeof2(e)||null===e)return!1;try{return"boolean"===typeof e.aborted}catch(J){return!1}}var xt="undefined"!==typeof DOMException?DOMException:void 0;function St(e){if("function"!==typeof e&&"object"!==_typeof2(e))return!1;try{return new e,!0}catch(J){return!1}}function At(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}var Ct=St(xt)?xt:At();function Pt(e,t,n,a,i,o){var s=G(e),l=pe(t);e._disturbed=!0;var c=!1,u=x(void 0);return k((function(d,h){var f;if(void 0!==o){if(f=function(){var r=new Ct("Aborted","AbortError"),n=[];!1===a&&n.push((function(){return"writable"===t._state?ye(t,r):x(void 0)})),!1===i&&n.push((function(){return"readable"===e._state?Dr(e,r):x(void 0)})),w((function(){return Promise.all(n.map((function(e){return e()})))}),!0,r)},!0===o.aborted)return void f();o.addEventListener("abort",f)}function p(){return k((function(e,t){function r(n){n?e():A(g(),r,t)}r(!1)}))}function g(){return!0===c?x(!0):A(l._readyPromise,(function(){return A(te(s),(function(e){var t=e.value,n=e.done;return!0===n||(u=A(We(l,t),void 0,r),!1)}))}))}if(b(e,s._closedPromise,(function(e){!1===a?w((function(){return ye(t,e)}),!0,e):_(!0,e)})),b(t,l._closedPromise,(function(t){!1===i?w((function(){return Dr(e,t)}),!0,t):_(!0,t)})),y(e,s._closedPromise,(function(){!1===n?w((function(){return Ue(l)})):_()})),!0===Ee(t)||"closed"===t._state){var v=new TypeError("the destination writable stream closed before all data could be piped to it");!1===i?w((function(){return Dr(e,v)}),!0,v):_(!0,v)}function m(){var e=u;return A(u,(function(){return e!==u?m():void 0}))}function b(e,t,r){"errored"===e._state?r(e._storedError):T(t,r)}function y(e,t,r){"closed"===e._state?r():P(t,r)}function w(e,r,n){function a(){C(e(),(function(){return S(r,n)}),(function(e){return S(!0,e)}))}!0!==c&&(c=!0,"writable"===t._state&&!1===Ee(t)?P(m(),a):a())}function _(e,r){!0!==c&&(c=!0,"writable"===t._state&&!1===Ee(t)?P(m(),(function(){return S(e,r)})):S(e,r))}function S(e,t){Ve(l),D(s),void 0!==o&&o.removeEventListener("abort",f),e?h(t):d(void 0)}R(p())}))}var Tt=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Et(this))throw qt("desiredSize");return Dt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Et(this))throw qt("close");if(!1===Bt(this))throw new TypeError("The stream is not in a state that permits close");Lt(this)},e.prototype.enqueue=function(e){if(!1===Et(this))throw qt("enqueue");if(!1===Bt(this))throw new TypeError("The stream is not in a state that permits enqueue");return Ft(this,e)},e.prototype.error=function(e){if(!1===Et(this))throw qt("error");Mt(this,e)},e.prototype[W]=function(e){ue(this);var t=this._cancelAlgorithm(e);return Ot(this),t},e.prototype[H]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=se(this);return!0===this._closeRequested&&0===this._queue.length?(Ot(this),Nr(e)):Rt(this),x(L(t,!1,e._reader._forAuthorCode))}var r=Y(e);return Rt(this),r},e}();function Et(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Rt(e){var t=It(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var r=e._pullAlgorithm();C(r,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Rt(e))}),(function(t){Mt(e,t)}))}else e._pullAgain=!0}function It(e){var t=e._controlledReadableStream;if(!1===Bt(e))return!1;if(!1===e._started)return!1;if(!0===Mr(t)&&K(t)>0)return!0;var r=Dt(e);return r>0}function Ot(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Lt(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Ot(e),Nr(t))}function Ft(e,t){var r=e._controlledReadableStream;if(!0===Mr(r)&&K(r)>0)X(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(a){throw Mt(e,a),a}try{le(e,t,n)}catch(i){throw Mt(e,i),i}}Rt(e)}function Mt(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(ue(e),Ot(e),Br(r,t))}function Dt(e){var t=e._controlledReadableStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function Nt(e){return!0!==It(e)}function Bt(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function Ut(e,t,r,n,a,i,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ue(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=a,e._readableStreamController=t;var s=r();C(x(s),(function(){t._started=!0,Rt(t)}),(function(e){Mt(t,e)}))}function jt(e,t,r,n){var a=Object.create(Tt.prototype);function i(){return h(t,"start",[a])}var o=d(t,"pull",0,[a]),s=d(t,"cancel",1,[]);Ut(e,a,i,o,s,r,n)}function qt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function zt(e,t){var r,n,a,i,s,l=G(e),c=!1,u=!1,d=!1,h=k((function(e){s=e}));function f(){if(!0===c)return x(void 0);c=!0;var e=E(te(l),(function(e){c=!1;var t=e.done;if(!0===t)return!1===u&&Lt(a._readableStreamController),void(!1===d&&Lt(i._readableStreamController));var r=e.value,n=r,o=r;!1===u&&Ft(a._readableStreamController,n),!1===d&&Ft(i._readableStreamController,o)}));return R(e),x(void 0)}function p(t){if(u=!0,r=t,!0===d){var a=o([r,n]),i=Dr(e,a);s(i)}return h}function g(t){if(d=!0,n=t,!0===u){var a=o([r,n]),i=Dr(e,a);s(i)}return h}function v(){}return a=Or(v,f,p),i=Or(v,f,g),T(l._closedPromise,(function(e){Mt(a._readableStreamController,e),Mt(i._readableStreamController,e)})),[a,i]}var Vt=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},Wt=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===Yt(this))throw wr("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===Yt(this))throw wr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");g(this._view.buffer),gr(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===Yt(this))throw wr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");g(e.buffer),vr(this._associatedReadableByteStreamController,e)},e}(),Ht=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===Gt(this))throw _r("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(Wt.prototype);yr(r,this,t),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Gt(this))throw _r("desiredSize");return pr(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Gt(this))throw _r("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");dr(this)},e.prototype.enqueue=function(e){if(!1===Gt(this))throw _r("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");g(e.buffer),hr(this,e)},e.prototype.error=function(e){if(!1===Gt(this))throw _r("error");fr(this,e)},e.prototype[W]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}ue(this);var r=this._cancelAlgorithm(e);return ur(this),r},e.prototype[H]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,tr(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(s){return S(s)}return x(L(r,!1,e._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var a=void 0;try{a=new ArrayBuffer(n)}catch(l){return S(l)}var i={buffer:a,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}var o=Y(e);return Xt(this),o},e}();function Gt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Yt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Xt(e){var t=cr(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var r=e._pullAlgorithm();C(r,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Xt(e))}),(function(t){fr(e,t)}))}else e._pullAgain=!0}function Kt(e){rr(e),e._pendingPullIntos=new O}function Zt(e,t){var r=!1;"closed"===e._state&&(r=!0);var n=Jt(t);"default"===t.readerType?X(e,n,r):Sr(e,n,r)}function Jt(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function Qt(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function $t(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,a=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+a,o=i-i%r,l=a,c=!1;o>n&&(l=o-t.bytesFilled,c=!0);var u=e._queue;while(l>0){var d=u.peek(),h=Math.min(l,d.byteLength),f=t.byteOffset+t.bytesFilled;s(t.buffer,f,d.buffer,d.byteOffset,h),d.byteLength===h?u.shift():(d.byteOffset+=h,d.byteLength-=h),e._queueTotalSize-=h,er(e,h,t),l-=h}return c}function er(e,t,r){rr(e),r.bytesFilled+=t}function tr(e){0===e._queueTotalSize&&!0===e._closeRequested?(ur(e),Nr(e._controlledReadableByteStream)):Xt(e)}function rr(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function nr(e){while(e._pendingPullIntos.length>0){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===$t(e,t)&&(lr(e),Zt(e._controlledReadableByteStream,t))}}function ar(e,t){var r=e._controlledReadableByteStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var a=t.constructor,i=p(t.buffer),o={buffer:i,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:a,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),xr(r);if("closed"===r._state){var s=new a(o.buffer,o.byteOffset,0);return x(L(s,!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===$t(e,o)){var l=Jt(o);return tr(e),x(L(l,!1,r._reader._forAuthorCode))}if(!0===e._closeRequested){var c=new TypeError("Insufficient bytes to fill elements in the given buffer");return fr(e,c),S(c)}}e._pendingPullIntos.push(o);var u=xr(r);return Xt(e),u}function ir(e,t){t.buffer=p(t.buffer);var r=e._controlledReadableByteStream;if(!0===Cr(r))while(Ar(r)>0){var n=lr(e);Zt(r,n)}}function or(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(er(e,t,r),!(r.bytesFilled0){var a=r.byteOffset+r.bytesFilled,i=r.buffer.slice(a-n,a);Qt(e,i,0,i.byteLength)}r.buffer=p(r.buffer),r.bytesFilled-=n,Zt(e._controlledReadableByteStream,r),nr(e)}}function sr(e,t){var r=e._pendingPullIntos.peek(),n=e._controlledReadableByteStream;if("closed"===n._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");ir(e,r)}else or(e,t,r);Xt(e)}function lr(e){var t=e._pendingPullIntos.shift();return rr(e),t}function cr(e){var t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===Z(t)&&K(t)>0)return!0;if(!0===Cr(t)&&Ar(t)>0)return!0;var r=pr(e);return r>0}function ur(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function dr(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos.peek();if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw fr(e,n),n}}ur(e),Nr(t)}}function hr(e,t){var r=e._controlledReadableByteStream,n=t.buffer,a=t.byteOffset,i=t.byteLength,o=p(n);if(!0===Z(r))if(0===K(r))Qt(e,o,a,i);else{var s=new Uint8Array(o,a,i);X(r,s,!1)}else!0===Cr(r)?(Qt(e,o,a,i),nr(e)):Qt(e,o,a,i);Xt(e)}function fr(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(Kt(e),ue(e),ur(e),Br(r,t))}function pr(e){var t=e._controlledReadableByteStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function gr(e,t){if(t=Number(t),!1===l(t))throw new RangeError("bytesWritten must be a finite");sr(e,t)}function vr(e,t){var r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,sr(e,t.byteLength)}function mr(e,t,r,n,a,i,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,ue(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=v(i),t._pullAlgorithm=n,t._cancelAlgorithm=a,t._autoAllocateChunkSize=o,t._pendingPullIntos=new O,e._readableStreamController=t;var s=r();C(x(s),(function(){t._started=!0,Xt(t)}),(function(e){fr(t,e)}))}function br(e,t,r){var n=Object.create(Ht.prototype);function a(){return h(t,"start",[n])}var i=d(t,"pull",0,[n]),o=d(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Vt(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");mr(e,n,a,i,o,r,s)}function yr(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function wr(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function _r(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function kr(e,t){void 0===t&&(t=!1);var r=new Pr(e);return r._forAuthorCode=t,r}function xr(e){var t=k((function(t,r){var n={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)}));return t}function Sr(e,t,r){var n=e._reader,a=n._readIntoRequests.shift();a._resolve(L(t,r,n._forAuthorCode))}function Ar(e){return e._reader._readIntoRequests.length}function Cr(e){var t=e._reader;return void 0!==t&&!!Tr(t)}var Pr=function(){function e(e){if(!Fr(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===Gt(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Mr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");F(this,e),this._readIntoRequests=new O}return Object.defineProperty(e.prototype,"closed",{get:function(){return Tr(this)?this._closedPromise:S(Rr("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Tr(this)?void 0===this._ownerReadableStream?S(N("cancel")):M(this,e):S(Rr("cancel"))},e.prototype.read=function(e){return Tr(this)?void 0===this._ownerReadableStream?S(N("read from")):ArrayBuffer.isView(e)?(g(e.buffer),0===e.byteLength?S(new TypeError("view must have non-zero byteLength")):Er(this,e)):S(new TypeError("view must be an array buffer view")):S(Rr("read"))},e.prototype.releaseLock=function(){if(!Tr(this))throw Rr("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");D(this)}},e}();function Tr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Er(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?S(r._storedError):ar(r._readableStreamController,t)}function Rr(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var Ir=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Lr(this);var r=t.size,n=t.highWaterMark,a=e.type,i=String(a);if("bytes"===i){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===n&&(n=0),n=v(n),br(this,e,n)}else{if(void 0!==a)throw new RangeError("Invalid type is specified");var o=m(r);void 0===n&&(n=1),n=v(n),jt(this,e,n,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Fr(this))throw Ur("locked");return Mr(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Fr(this)?S(Ur("cancel")):!0===Mr(this)?S(new TypeError("Cannot cancel a stream that already has a reader")):Dr(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===Fr(this))throw Ur("getReader");if(void 0===t)return G(this,!0);if(t=String(t),"byob"===t)return kr(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var r=e.writable,n=e.readable,a=void 0===t?{}:t,i=a.preventClose,o=a.preventAbort,s=a.preventCancel,l=a.signal;if(!1===Fr(this))throw Ur("pipeThrough");if(!1===me(r))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Fr(n))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(i=Boolean(i),o=Boolean(o),s=Boolean(s),void 0!==l&&!kt(l))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Mr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===be(r))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var c=Pt(this,r,i,o,s,l);return R(c),n},e.prototype.pipeTo=function(e,t){var r=void 0===t?{}:t,n=r.preventClose,a=r.preventAbort,i=r.preventCancel,o=r.signal;return!1===Fr(this)?S(Ur("pipeTo")):!1===me(e)?S(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(n=Boolean(n),a=Boolean(a),i=Boolean(i),void 0===o||kt(o)?!0===Mr(this)?S(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===be(e)?S(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Pt(this,e,n,a,i,o):S(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Fr(this))throw Ur("tee");var e=zt(this);return o(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,r=void 0!==t&&t;if(!1===Fr(this))throw Ur("getIterator");return ae(this,r)},e}();function Or(e,t,r,n,a){void 0===n&&(n=1),void 0===a&&(a=function(){return 1});var i=Object.create(Ir.prototype);Lr(i);var o=Object.create(Tt.prototype);return Ut(i,o,e,t,r,n,a),i}function Lr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Fr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Mr(e){return void 0!==e._reader}function Dr(e,t){if(e._disturbed=!0,"closed"===e._state)return x(void 0);if("errored"===e._state)return S(e._storedError);Nr(e);var n=e._readableStreamController[W](t);return E(n,r)}function Nr(e){e._state="closed";var t=e._reader;void 0!==t&&(ee(t)&&(t._readRequests.forEach((function(e){e._resolve(L(void 0,!0,t._forAuthorCode))})),t._readRequests=new O),V(t))}function Br(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(ee(r)?(r._readRequests.forEach((function(e){e._reject(t)})),r._readRequests=new O):(r._readIntoRequests.forEach((function(e){e._reject(t)})),r._readIntoRequests=new O),q(r,t))}function Ur(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"===_typeof2(t.asyncIterator)&&Object.defineProperty(Ir.prototype,t.asyncIterator,{value:Ir.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var jr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),qr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),zr=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={});var n=t.size,a=t.highWaterMark,i=r.size,o=r.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var l=m(n);void 0===a&&(a=1),a=v(a);var c=e.readableType;if(void 0!==c)throw new RangeError("Invalid readable type specified");var u,d=m(i);void 0===o&&(o=0),o=v(o);var f=k((function(e){u=e}));Vr(this,f,a,l,o,d),Jr(this,e);var p=h(e,"start",[this._transformStreamController]);u(p)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===Wr(this))throw cn("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===Wr(this))throw cn("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function Vr(e,t,r,n,a,i){function o(){return t}function s(t){return nn(e,t)}function l(t){return an(e,t)}function c(){return on(e)}function u(){return sn(e)}function d(t){return Gr(e,t),x(void 0)}e._writable=ge(o,s,c,l,r,n),e._readable=Or(o,u,d,a,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Yr(e,!0),e._transformStreamController=void 0}function Wr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Hr(e,t){Mt(e._readable._readableStreamController,t),Gr(e,t)}function Gr(e,t){Qr(e._transformStreamController),tt(e._writable._writableStreamController,t),!0===e._backpressure&&Yr(e,!1)}function Yr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=k((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}var Xr=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Kr(this))throw ln("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return Dt(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===Kr(this))throw ln("enqueue");$r(this,e)},e.prototype.error=function(e){if(!1===Kr(this))throw ln("error");en(this,e)},e.prototype.terminate=function(){if(!1===Kr(this))throw ln("terminate");rn(this)},e}();function Kr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Zr(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function Jr(e,t){var r=Object.create(Xr.prototype),n=function(e){try{return $r(r,e),x(void 0)}catch(t){return S(t)}},a=t.transform;if(void 0!==a){if("function"!==typeof a)throw new TypeError("transform is not a method");n=function(e){return f(a,t,[e,r])}}var i=d(t,"flush",0,[r]);Zr(e,r,n,i)}function Qr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function $r(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!1===Bt(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ft(n,t)}catch(i){throw Gr(r,i),r._readable._storedError}var a=Nt(n);a!==r._backpressure&&Yr(r,!0)}function en(e,t){Hr(e._controlledTransformStream,t)}function tn(e,t){var r=e._transformAlgorithm(t);return E(r,void 0,(function(t){throw Hr(e._controlledTransformStream,t),t}))}function rn(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;!0===Bt(r)&&Lt(r);var n=new TypeError("TransformStream terminated");Gr(t,n)}function nn(e,t){var r=e._transformStreamController;if(!0===e._backpressure){var n=e._backpressureChangePromise;return E(n,(function(){var n=e._writable,a=n._state;if("erroring"===a)throw n._storedError;return tn(r,t)}))}return tn(r,t)}function an(e,t){return Hr(e,t),x(void 0)}function on(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return Qr(r),E(n,(function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===Bt(e)&&Lt(e)}),(function(r){throw Hr(e,r),t._storedError}))}function sn(e){return Yr(e,!1),e._backpressureChangePromise}function ln(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function cn(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.ByteLengthQueuingStrategy=jr,e.CountQueuingStrategy=qr,e.ReadableStream=Ir,e.TransformStream=zr,e.WritableStream=fe,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,r){r(137),r(105),r(73),r(107);var n=r(38);e.exports=n.Map},function(e,t,r){"use strict";var n=r(138),a=r(142);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},function(e,t,r){"use strict";var n=r(5),a=r(6),i=r(47),o=r(24),s=r(139),l=r(115),c=r(114),u=r(17),d=r(9),h=r(93),f=r(81),p=r(141);e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",b=a[e],y=b&&b.prototype,w=b,_={},k=function(e){var t=y[e];o(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})};if(i(e,"function"!=typeof b||!(v||y.forEach&&!d((function(){(new b).entries().next()})))))w=r.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(i(e,!0)){var x=new w,S=x[m](v?{}:-0,1)!=x,A=d((function(){x.has(1)})),C=h((function(e){new b(e)})),P=!v&&d((function(){var e=new b,t=5;while(t--)e[m](t,t);return!e.has(-0)}));C||(w=t((function(t,r){c(t,w,e);var n=p(new b,t,w);return void 0!=r&&l(r,n[m],n,g),n})),w.prototype=y,y.constructor=w),(A||P)&&(k("delete"),k("has"),g&&k("get")),(P||S)&&k(m),v&&y.clear&&delete y.clear}return _[e]=w,n({global:!0,forced:w!=b},_),f(w,e),v||r.setStrong(w,e,g),w}},function(e,t,r){var n=r(34),a=r(17),i=r(18),o=r(22).f,s=r(33),l=r(140),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){o(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=function(e,t){if(!a(e))return"symbol"==_typeof2(e)?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!i(e,c)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},g=function(e){return l&&v.REQUIRED&&d(e)&&!i(e,c)&&h(e),e},v=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:g};n[c]=!0},function(e,t,r){var n=r(9);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){var n=r(17),a=r(83);e.exports=function(e,t,r){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(e,o),e}},function(e,t,r){"use strict";var n=r(22).f,a=r(67),i=r(112),o=r(58),s=r(114),l=r(115),c=r(75),u=r(113),d=r(8),h=r(139).fastKey,f=r(28),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,r,c){var u=e((function(e,n){s(e,u,t),p(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=n&&l(n,e[c],e,r)})),f=g(t),v=function(e,t,r){var n,a,i=f(e),o=m(e,t);return o?o.value=r:(i.last=o={index:a=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=o),n&&(n.next=o),d?i.size++:e.size++,"F"!==a&&(i.index[a]=o)),e},m=function(e,t){var r,n=f(e),a=h(t);if("F"!==a)return n.index[a];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(u.prototype,{clear:function(){var e=this,t=f(e),r=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,r=f(t),n=m(t,e);if(n){var a=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=a),a&&(a.previous=i),r.first==n&&(r.first=a),r.last==n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){var t,r=f(this),n=o(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:r.first){n(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),i(u.prototype,r?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,r){var n=t+" Iterator",a=g(t),i=g(n);c(e,t,(function(e,t){p(this,{type:n,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=i(this),t=e.kind,r=e.last;while(r&&r.removed)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(t)}}},function(e,t,r){r(144),r(105),r(73),r(107);var n=r(38);e.exports=n.Set},function(e,t,r){"use strict";var n=r(138),a=r(142);e.exports=n("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},function(e,t,r){r(105),r(146),r(107);var n=r(38);e.exports=n.WeakMap},function(e,t,r){"use strict";var n,a=r(6),i=r(112),o=r(139),s=r(138),l=r(147),c=r(17),u=r(28).enforce,d=r(29),h=!a.ActiveXObject&&"ActiveXObject"in a,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,l);if(d&&h){n=l.getConstructor(p,"WeakMap",!0),o.REQUIRED=!0;var v=g.prototype,m=v["delete"],b=v.has,y=v.get,w=v.set;i(v,{delete:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),m.call(this,e)||t.frozen["delete"](e)}return m.call(this,e)},has:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new n),b.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(c(e)&&!f(e)){var r=u(this);r.frozen||(r.frozen=new n),b.call(this,e)?w.call(this,e,t):r.frozen.set(e,t)}else w.call(this,e,t);return this}})}},function(e,t,r){"use strict";var n=r(112),a=r(139).getWeakData,i=r(23),o=r(17),s=r(114),l=r(115),c=r(148),u=r(18),d=r(28),h=d.set,f=d.getterFor,p=c.find,g=c.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,n){s(e,d,t),h(e,{type:t,id:v++,frozen:void 0}),void 0!=n&&l(n,e[c],e,r)})),p=f(t),g=function(e,t,r){var n=p(e),o=a(i(t),!0);return!0===o?m(n).set(t,r):o[n.id]=r,e};return n(d.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t)["delete"](e):r&&u(r,t.id)&&delete r[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t).has(e):r&&u(r,t.id)}}),n(d.prototype,r?{get:function(e){var t=p(this);if(o(e)){var r=a(e);return!0===r?m(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},function(e,t,r){var n=r(58),a=r(13),i=r(79),o=r(42),s=r(149),l=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,g,v){for(var m,b,y=i(f),w=a(y),_=n(p,g,3),k=o(w.length),x=0,S=v||s,A=t?S(f,k):r?S(f,0):void 0;k>x;x++)if((h||x in w)&&(m=w[x],b=_(m,x,y),e))if(t)A[x]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:l.call(A,m)}else if(u)return!1;return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,r){var n=r(17),a=r(150),i=r(53),o=i("species");e.exports=function(e,t){var r;return a(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!a(r.prototype)?n(r)&&(r=r[o],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},function(e,t,r){var n=r(14);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){r(105),r(152),r(107);var n=r(38);e.exports=n.WeakSet},function(e,t,r){"use strict";var n=r(138),a=r(147);n("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},function(e,t,r){r(154);var n=r(57);e.exports=n("String","codePointAt")},function(e,t,r){"use strict";var n=r(5),a=r(74).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},function(e,t,r){r(156);var n=r(38);e.exports=n.String.fromCodePoint},function(e,t,r){var n=r(5),a=r(44),i=String.fromCharCode,o=String.fromCodePoint,s=!!o&&1!=o.length;n({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,r=[],n=arguments.length,o=0;while(n>o){if(t=+arguments[o++],a(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},function(e,t,r){r(158),r(105),r(160),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179);var n=r(38);e.exports=n.Symbol},function(e,t,r){"use strict";var n=r(5),a=r(9),i=r(150),o=r(17),s=r(79),l=r(42),c=r(89),u=r(149),d=r(159),h=r(53),f=r(125),p=h("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=f>=51||!a((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=d("concat"),y=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)},w=!m||!b;n({target:"Array",proto:!0,forced:w},{concat:function(e){var t,r,n,a,i,o=s(this),d=u(o,0),h=0;for(t=-1,n=arguments.length;tg)throw TypeError(v);for(r=0;r=g)throw TypeError(v);c(d,h++,i)}return d.length=h,d}})},function(e,t,r){var n=r(9),a=r(53),i=r(125),o=a("species");e.exports=function(e){return i>=51||!n((function(){var t=[],r=t.constructor={};return r[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,r){"use strict";var n=r(5),a=r(6),i=r(37),o=r(32),s=r(8),l=r(54),c=r(55),u=r(9),d=r(18),h=r(150),f=r(17),p=r(23),g=r(79),v=r(12),m=r(16),b=r(11),y=r(67),w=r(69),_=r(39),k=r(161),x=r(46),S=r(7),A=r(22),C=r(10),P=r(21),T=r(24),E=r(31),R=r(30),I=r(34),O=r(33),L=r(53),F=r(162),M=r(163),D=r(81),N=r(28),B=r(148).forEach,U=R("hidden"),j="Symbol",q="prototype",z=L("toPrimitive"),V=N.set,W=N.getterFor(j),H=Object[q],G=a.Symbol,Y=i("JSON","stringify"),X=S.f,K=A.f,Z=k.f,J=C.f,Q=E("symbols"),$=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),re=E("wks"),ne=a.QObject,ae=!ne||!ne[q]||!ne[q].findChild,ie=s&&u((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=X(H,t);n&&delete H[t],K(e,t,r),n&&e!==H&&K(H,t,n)}:K,oe=function(e,t){var r=Q[e]=y(G[q]);return V(r,{type:j,tag:e,description:t}),s||(r.description=t),r},se=c?function(e){return"symbol"==_typeof2(e)}:function(e){return Object(e)instanceof G},le=function(e,t,r){e===H&&le($,t,r),p(e);var n=m(t,!0);return p(r),d(Q,n)?(r.enumerable?(d(e,U)&&e[U][n]&&(e[U][n]=!1),r=y(r,{enumerable:b(0,!1)})):(d(e,U)||K(e,U,b(1,{})),e[U][n]=!0),ie(e,n,r)):K(e,n,r)},ce=function(e,t){p(e);var r=v(t),n=w(r).concat(pe(r));return B(n,(function(t){s&&!de.call(r,t)||le(e,t,r[t])})),e},ue=function(e,t){return void 0===t?y(e):ce(y(e),t)},de=function(e){var t=m(e,!0),r=J.call(this,t);return!(this===H&&d(Q,t)&&!d($,t))&&(!(r||!d(this,t)||!d(Q,t)||d(this,U)&&this[U][t])||r)},he=function(e,t){var r=v(e),n=m(t,!0);if(r!==H||!d(Q,n)||d($,n)){var a=X(r,n);return!a||!d(Q,n)||d(r,U)&&r[U][n]||(a.enumerable=!0),a}},fe=function(e){var t=Z(v(e)),r=[];return B(t,(function(e){d(Q,e)||d(I,e)||r.push(e)})),r},pe=function(e){var t=e===H,r=Z(t?$:v(e)),n=[];return B(r,(function(e){!d(Q,e)||t&&!d(H,e)||n.push(Q[e])})),n};if(l||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),r=function e(r){this===H&&e.call($,r),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),ie(this,t,b(1,r))};return s&&ae&&ie(H,t,{configurable:!0,set:r}),oe(t,e)},T(G[q],"toString",(function(){return W(this).tag})),T(G,"withoutSetter",(function(e){return oe(O(e),e)})),C.f=de,A.f=le,S.f=he,_.f=k.f=fe,x.f=pe,F.f=function(e){return oe(L(e),e)},s&&(K(G[q],"description",{configurable:!0,get:function(){return W(this).description}}),o||T(H,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),B(w(re),(function(e){M(e)})),n({target:j,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var r=G(t);return ee[t]=r,te[r]=t,r},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),n({target:"Object",stat:!0,forced:u((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(g(e))}}),Y){var ge=!l||u((function(){var e=G();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));n({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,r){var n,a=[e],i=1;while(arguments.length>i)a.push(arguments[i++]);if(n=t,(f(t)||void 0!==e)&&!se(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!se(t))return t}),a[1]=t,Y.apply(null,a)}})}G[q][z]||P(G[q],z,G[q].valueOf),D(G,j),I[U]=!0},function(e,t,r){var n=r(12),a=r(39).f,i={}.toString,o="object"==("undefined"===typeof window?"undefined":_typeof2(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return a(e)}catch(t){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?s(e):a(n(e))}},function(e,t,r){var n=r(53);t.f=n},function(e,t,r){var n=r(38),a=r(18),i=r(162),o=r(22).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},function(e,t,r){var n=r(163);n("asyncIterator")},function(e,t,r){"use strict";var n=r(5),a=r(8),i=r(6),o=r(18),s=r(17),l=r(22).f,c=r(35),u=i.Symbol;if(a&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(d,e))return"";var r=g?t.slice(7,-1):t.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(e,t,r){var n=r(163);n("hasInstance")},function(e,t,r){var n=r(163);n("isConcatSpreadable")},function(e,t,r){var n=r(163);n("iterator")},function(e,t,r){var n=r(163);n("match")},function(e,t,r){var n=r(163);n("matchAll")},function(e,t,r){var n=r(163);n("replace")},function(e,t,r){var n=r(163);n("search")},function(e,t,r){var n=r(163);n("species")},function(e,t,r){var n=r(163);n("split")},function(e,t,r){var n=r(163);n("toPrimitive")},function(e,t,r){var n=r(163);n("toStringTag")},function(e,t,r){var n=r(163);n("unscopables")},function(e,t,r){var n=r(81);n(Math,"Math",!0)},function(e,t,r){var n=r(6),a=r(81);a(n.JSON,"JSON",!0)},function(e,t,r){r(181);var n=r(57);e.exports=n("String","padStart")},function(e,t,r){"use strict";var n=r(5),a=r(182).start,i=r(184);n({target:"String",proto:!0,forced:i},{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){var n=r(42),a=r(183),i=r(15),o=Math.ceil,s=function(e){return function(t,r,s){var l,c,u=String(i(t)),d=u.length,h=void 0===s?" ":String(s),f=n(r);return f<=d||""==h?u:(l=f-d,c=a.call(h,o(l/h.length)),c.length>l&&(c=c.slice(0,l)),e?u+c:c+u)}};e.exports={start:s(!1),end:s(!0)}},function(e,t,r){"use strict";var n=r(43),a=r(15);e.exports="".repeat||function(e){var t=String(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},function(e,t,r){var n=r(119);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(e,t,r){r(186);var n=r(57);e.exports=n("String","padEnd")},function(e,t,r){"use strict";var n=r(5),a=r(182).end,i=r(184);n({target:"String",proto:!0,forced:i},{padEnd:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){r(188);var n=r(38);e.exports=n.Object.values},function(e,t,r){var n=r(5),a=r(189).values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},function(e,t,r){var n=r(8),a=r(69),i=r(12),o=r(10).f,s=function(e){return function(t){var r,s=i(t),l=a(s),c=l.length,u=0,d=[];while(c>u)r=l[u++],n&&!o.call(s,r)||d.push(e?[r,s[r]]:s[r]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(191)),_util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(194),_font_loader=__w_pdfjs_require__(195),_api_compatibility=__w_pdfjs_require__(196),_canvas=__w_pdfjs_require__(197),_worker_options=__w_pdfjs_require__(199),_is_node=__w_pdfjs_require__(48),_message_handler=__w_pdfjs_require__(200),_metadata=__w_pdfjs_require__(201),_transport_stream=__w_pdfjs_require__(203),_webgl=__w_pdfjs_require__(204);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function asyncGeneratorStep(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){asyncGeneratorStep(i,n,a,o,s,"next",e)}function s(e){asyncGeneratorStep(i,n,a,o,s,"throw",e)}o(void 0)}))}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=this._rangeListeners[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;s(e,t)}}catch(l){n=!0,a=l}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw a}}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then((function(){var n=!0,a=!1,i=void 0;try{for(var o,s=r._progressListeners[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var l=o.value;l(e,t)}}catch(c){a=!0,i=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var r=!0,n=!1,a=void 0;try{for(var i,o=t._progressiveReadListeners[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;s(e)}}catch(l){n=!0,a=l}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw a}}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t=!0,r=!1,n=void 0;try{for(var a,i=e._progressiveDoneListeners[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value;o()}}catch(s){r=!0,n=s}finally{try{t||null==i["return"]||i["return"]()}finally{if(r)throw n}}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,r){_classCallCheck(this,e),this._pdfInfo=t,this._transport=r}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,n=void 0===r?this.rotate:r,a=e.offsetX,i=void 0===a?0:a,o=e.offsetY,s=void 0===o?0:o,l=e.dontFlip,c=void 0!==l&&l;if(arguments.length>1||"number"===typeof arguments[0])throw new Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:i,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(e){var t=this,r=e.canvasContext,n=e.viewport,a=e.intent,i=void 0===a?"display":a,o=e.enableWebGL,s=void 0!==o&&o,l=e.renderInteractiveForms,c=void 0!==l&&l,u=e.transform,d=void 0===u?null:u,h=e.imageLayer,f=void 0===h?null:h,p=e.canvasFactory,g=void 0===p?null:p,v=e.background,m=void 0===v?null:v;this._stats&&this._stats.time("Overall");var b="print"===i?"print":"display";this.pendingCleanup=!1,this.intentStates[b]||(this.intentStates[b]=Object.create(null));var y=this.intentStates[b];y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);var w=g||new _display_utils.DOMCanvasFactory,_=new _webgl.WebGLContext({enable:s});y.displayReadyCapability||(y.displayReadyCapability=(0,_util.createPromiseCapability)(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:b,renderInteractiveForms:!0===c}));var k=function(e){var r=y.renderTasks.indexOf(x);r>=0&&y.renderTasks.splice(r,1),(t.cleanupAfterRender||"print"===b)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(x.capability.reject(e),t._abortOperatorList({intentState:y,reason:e})):x.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},x=new InternalRenderTask({callback:k,params:{canvasContext:r,viewport:n,transform:d,imageLayer:f,background:m},objs:this.objs,commonObjs:this.commonObjs,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:w,webGLContext:_,useRequestAnimationFrame:"print"!==b,pdfBug:this._pdfBug});y.renderTasks||(y.renderTasks=[]),y.renderTasks.push(x);var S=x.task;return y.displayReadyCapability.promise.then((function(e){t.pendingCleanup?k():(t._stats&&t._stats.time("Rendering"),x.initializeGraphics(e),x.operatorListChanged())}))["catch"](k),S}},{key:"getOperatorList",value:function(){function e(){if(n.operatorList.lastChunk){n.opListReadCapability.resolve(n.operatorList);var e=n.renderTasks.indexOf(r);e>=0&&n.renderTasks.splice(e,1)}}var t="oplist";this.intentStates[t]||(this.intentStates[t]=Object.create(null));var r,n=this.intentStates[t];return n.opListReadCapability||(r={},r.operatorListChanged=e,n.opListReadCapability=(0,_util.createPromiseCapability)(),n.renderTasks=[],n.renderTasks.push(r),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:t})),n.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,r=void 0!==t&&t,n=e.disableCombineTextItems,a=void 0!==n&&n,i=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==a},{highWaterMark:i,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,r){function n(){a.read().then((function(t){var r,a=t.value,o=t.done;o?e(i):(Object.assign(i.styles,a.styles),(r=i.items).push.apply(r,_toConsumableArray(a.items)),n())}),r)}var a=t.getReader(),i={items:[],styles:Object.create(null)};n()}))}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach((function(r){var n=e.intentStates[r];e._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach((function(e){var r=e.capability.promise["catch"]((function(){}));t.push(r),e.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(t){var r=e.intentStates[t];return 0!==r.renderTasks.length||!r.operatorList.lastChunk})))&&(Object.keys(this.intentStates).forEach((function(t){delete e.intentStates[t]})),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var r=0,n=e.length;r0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var r=this;function n(e){if("object"!==_typeof(e)||null===e)return e;if(a.has(e))return a.get(e);var r,i;if((r=e.buffer)&&(0,_util.isArrayBuffer)(r)){var o=t&&t.includes(r);return i=o?new e.constructor(r,e.byteOffset,e.byteLength):new e.constructor(e),a.set(e,i),i}for(var s in i=Array.isArray(e)?[]:{},a.set(e,i),e){var l=void 0,c=e;while(!(l=Object.getOwnPropertyDescriptor(c,s)))c=Object.getPrototypeOf(c);if("undefined"!==typeof l.value)if("function"!==typeof l.value)i[s]=n(l.value);else if(e.hasOwnProperty&&e.hasOwnProperty(s))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[s]))}return i}if(this._defer){var a=new WeakMap,i={data:n(e)};this._deferred.then((function(){r._listeners.forEach((function(e){e.call(r,i)}))}))}else this._listeners.forEach((function(t){t.call(r,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"===typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref8=_asyncToGenerator(_regenerator["default"].mark((function _callee(){var mainWorkerMessageHandler,worker;return _regenerator["default"].wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref8.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=void 0===r?null:r,a=t.port,i=void 0===a?null:a,o=t.verbosity,s=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,e),i&&pdfWorkerPorts.has(i))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,i)return pdfWorkerPorts.set(i,this),void this._initializeFromPort(i);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),n=new _message_handler.MessageHandler("main","worker",r),a=function(){r.removeEventListener("error",i),n.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},i=function(){e._webWorker||a()};r.addEventListener("error",i),n.on("test",(function(t){r.removeEventListener("error",i),e.destroyed?a():t?(e._messageHandler=n,e._port=r,e._webWorker=r,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),n.destroy(),r.terminate())})),n.on("ready",(function(t){if(r.removeEventListener("error",i),e.destroyed)a();else try{o()}catch(n){e._setupFakeWorker()}}));var o=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{n.send("test",t,[t.buffer])}catch(r){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,n.send("test",t)}};return void o()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var r=new LoopbackPort;e._port=r;var n="fake"+nextFakeWorkerId++,a=new _message_handler.MessageHandler(n+"_worker",n,r);t.setup(a,r);var i=new _message_handler.MessageHandler(n,n+"_worker",r);e._messageHandler=i,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})}}))["catch"]((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts["delete"](this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,r,n,a){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=a,this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",(function(t,r){(0,_util.assert)(e._networkStream),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=function(){e._fullReader.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){r.error(e)}))},r.onCancel=function(t){e._fullReader.cancel(t)}})),t.on("ReaderHeadersReady",(function(t){var n=(0,_util.createPromiseCapability)(),a=e._fullReader;return a.headersReady.then((function(){a.isStreamingSupported&&a.isRangeSupported||(e._lastProgress&&r.onProgress&&r.onProgress(e._lastProgress),a.onProgress=function(e){r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),n.reject),n.promise})),t.on("GetRangeReader",(function(t,r){(0,_util.assert)(e._networkStream);var n=e._networkStream.getRangeReader(t.begin,t.end);n?(r.onPull=function(){n.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))}))["catch"]((function(e){r.error(e)}))},r.onCancel=function(e){n.cancel(e)}):r.close()})),t.on("GetDoc",(function(t){var n=t.pdfInfo;e._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break}r._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(t){e._passwordCapability.resolve({password:t})};try{r.onPassword(n,t.code)}catch(a){e._passwordCapability.reject(a)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){r.onProgress&&r.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){if(!e.destroyed){var r=e.pageCache[t.pageIndex];r._startRenderPage(t.transparency,t.intent)}})),t.on("commonobj",(function(r){if(!e.destroyed){var n=_slicedToArray(r,3),a=n[0],i=n[1],o=n[2];if(!e.commonObjs.has(a))switch(i){case"Font":var s=e._params;if("error"in o){var l=o.error;(0,_util.warn)("Error during font loading: ".concat(l)),e.commonObjs.resolve(a,l);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var u=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(u).then((function(){e.commonObjs.resolve(a,u)}),(function(r){t.sendWithPromise("FontFallback",{id:a})["finally"]((function(){e.commonObjs.resolve(a,u)}))}));break;case"FontPath":case"FontType3Res":e.commonObjs.resolve(a,o);break;default:throw new Error("Got unknown common object type ".concat(i))}}})),t.on("obj",(function(t){if(!e.destroyed){var r=_slicedToArray(t,4),n=r[0],a=r[1],i=r[2],o=r[3],s=e.pageCache[a];if(!s.objs.has(n))switch(i){case"JpegStream":return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=function(){t(new Error("Error during JPEG image loading")),(0,_display_utils.releaseImageResources)(r)},r.src=o})).then((function(e){s.objs.resolve(n,e)}));case"Image":s.objs.resolve(n,o);var l=8e6;o&&"data"in o&&o.data.length>l&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){e.destroyed||r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("JpegDecode",(function(t){if(e.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"===typeof document)return Promise.reject(new Error('"document" is not defined.'));var r=_slicedToArray(t,2),n=r[0],a=r[1];return 3!==a&&1!==a?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise((function(e,t){var r=new Image;r.onload=function(){var t=r.width,n=r.height,i=t*n,o=4*i,s=new Uint8ClampedArray(i*a),l=document.createElement("canvas");l.width=t,l.height=n;var c=l.getContext("2d");c.drawImage(r,0,0);var u=c.getImageData(0,0,t,n).data;if(3===a)for(var d=0,h=0;dthis._numPages)return Promise.reject(new Error("Invalid page request"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n}));return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e})["catch"]((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var t=0,r=e.pageCache.length;t1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var r=this._objs[e];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var r=this._ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)}},{key:"clear",value:function(){for(var e in this._objs){var t=this._objs[e].data;"undefined"!==typeof Image&&t instanceof Image&&(0,_display_utils.releaseImageResources)(t)}this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"then",value:function(e,t){throw new Error("Removed API method: RenderTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){function t(e){var r=e.callback,n=e.params,a=e.objs,i=e.commonObjs,o=e.operatorList,s=e.pageIndex,l=e.canvasFactory,c=e.webGLContext,u=e.useRequestAnimationFrame,d=void 0!==u&&u,h=e.pdfBug,f=void 0!==h&&h;_classCallCheck(this,t),this.callback=r,this.params=n,this.objs=a,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.webGLContext=c,this._pdfBug=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===d&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,a=r.viewport,i=r.transform,o=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:a,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e["delete"](this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound()["catch"](e.cancel.bind(e))})):Promise.resolve().then(this._nextBound)["catch"](this.cancel.bind(this))}},{key:"_next",value:function(){var t=_asyncToGenerator(_regenerator["default"].mark((function t(){return _regenerator["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e["delete"](this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));function r(){return t.apply(this,arguments)}return r}()}]),t}();return t}(),version="2.4.456";exports.version=version;var build="228a591c";exports.build=build},function(e,t,r){"use strict";e.exports=r(192)},function(e,t,r){"use strict";(function(e){function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var r=function(e){var r,n=Object.prototype,a=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),o=new E(n||[]);return i._invoke=A(e,r,o),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={};function v(){}function m(){}function b(){}var y={};y[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(R([])));_&&_!==n&&a.call(_,o)&&(y=_);var k=b.prototype=v.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function S(e,r){function n(i,o,s,l){var c=u(e[i],e,o);if("throw"!==c.type){var d=c.arg,h=d.value;return h&&"object"===t(h)&&a.call(h,"__await")?r.resolve(h.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):r.resolve(h).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var i;function o(e,t){function a(){return new r((function(r,a){n(e,t,r,a)}))}return i=i?i.then(a,a):a()}this._invoke=o}function A(e,t,r){var n=d;return function(a,i){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===a)throw i;return I()}r.method=a,r.arg=i;while(1){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var l=u(e,t,r);if("normal"===l.type){if(n=r.done?p:h,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=p,r.method="throw",r.arg=l.arg)}}}function C(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=r,C(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=u(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(e){if(e){var t=e[o];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){while(++n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=r}catch(n){Function("r","regeneratorRuntime = r")(r)}}).call(this,r(193)(e))},function(e,t,r){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=A,t.getFilenameFromUrl=C,t.isFetchSupported=E,t.isValidFetchUrl=R,t.loadScript=I,t.deprecated=O,t.releaseImageResources=L,t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var n=i(r(191)),a=r(1);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){h(i,n,a,o,s,"next",e)}function s(e){h(i,n,a,o,s,"throw",e)}o(void 0)}))}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r0&&t>0,"Invalid SVG dimensions");var r=document.createElementNS(b,"svg:svg");return r.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}},{key:"createElement",value:function(e){return(0,a.assert)("string"===typeof e,"Invalid SVG element type"),document.createElementNS(b,e)}}]),e}();t.DOMSVGFactory=_;var k=function(){function e(t){var r=t.viewBox,n=t.scale,a=t.rotation,i=t.offsetX,o=void 0===i?0:i,s=t.offsetY,l=void 0===s?0:s,c=t.dontFlip,u=void 0!==c&&c;p(this,e),this.viewBox=r,this.scale=n,this.rotation=a,this.offsetX=o,this.offsetY=l;var d,h,f,g,v,m,b,y,w=(r[2]+r[0])/2,_=(r[3]+r[1])/2;switch(a%=360,a=a<0?a+360:a,a){case 180:d=-1,h=0,f=0,g=1;break;case 90:d=0,h=1,f=1,g=0;break;case 270:d=0,h=-1,f=-1,g=0;break;default:d=1,h=0,f=0,g=-1;break}u&&(f=-f,g=-g),0===d?(v=Math.abs(_-r[1])*n+o,m=Math.abs(w-r[0])*n+l,b=Math.abs(r[3]-r[1])*n,y=Math.abs(r[2]-r[0])*n):(v=Math.abs(w-r[0])*n+o,m=Math.abs(_-r[1])*n+l,b=Math.abs(r[2]-r[0])*n,y=Math.abs(r[3]-r[1])*n),this.transform=[d*n,h*n,f*n,g*n,v-d*n*w-f*n*_,m-h*n*w-g*n*_],this.width=b,this.height=y}return v(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,a=t.rotation,i=void 0===a?this.rotation:a,o=t.offsetX,s=void 0===o?this.offsetX:o,l=t.offsetY,c=void 0===l?this.offsetY:l,u=t.dontFlip,d=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:i,offsetX:s,offsetY:c,dontFlip:d})}},{key:"convertToViewportPoint",value:function(e,t){return a.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=a.Util.applyTransform([e[0],e[1]],this.transform),r=a.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}},{key:"convertToPdfPoint",value:function(e,t){return a.Util.applyInverseTransform([e,t],this.transform)}}]),e}();t.PageViewport=k;var x=function(e){function t(e,r){var n;return p(this,t),n=s(this,c(t).call(this,e)),n.type=r,n}return u(t,e),t}(a.BaseException);t.RenderingCancelledException=x;var S={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.url,n=t.target,i=t.rel,o=t.enabled,s=void 0===o||o;(0,a.assert)(r&&"string"===typeof r,'addLinkAttributes: A valid "url" parameter must provided.');var l=(0,a.removeNullCharacters)(r);s?e.href=e.title=l:(e.href="",e.title="Disabled: ".concat(l),e.onclick=function(){return!1});var c="";switch(n){case S.NONE:break;case S.SELF:c="_self";break;case S.BLANK:c="_blank";break;case S.PARENT:c="_parent";break;case S.TOP:c="_top";break}e.target=c,e.rel="string"===typeof i?i:m}function C(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)}t.LinkTarget=S;var P,T=function(){function e(){p(this,e),this.started=Object.create(null),this.times=[]}return v(e,[{key:"time",value:function(e){e in this.started&&(0,a.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,a.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e=[],t=0,r=!0,n=!1,a=void 0;try{for(var i,o=this.times[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value,l=s.name;l.length>t&&(t=l.length)}}catch(v){n=!0,a=v}finally{try{r||null==o["return"]||o["return"]()}finally{if(n)throw a}}var c=!0,u=!1,d=void 0;try{for(var h,f=this.times[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var p=h.value,g=p.end-p.start;e.push("".concat(p.name.padEnd(t)," ").concat(g,"ms\n"))}}catch(v){u=!0,d=v}finally{try{c||null==f["return"]||f["return"]()}finally{if(u)throw d}}return e.join("")}}]),e}();function E(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function R(e,t){try{var r=t?new URL(e,t):new URL(e),n=r.protocol;return"http:"===n||"https:"===n}catch(a){return!1}}function I(e){return new Promise((function(t,r){var n=document.createElement("script");n.src=e,n.onload=t,n.onerror=function(){r(new Error("Cannot load script at: ".concat(n.src)))},(document.head||document.documentElement).appendChild(n)}))}function O(e){console.log("Deprecated API usage: "+e)}function L(e){(0,a.assert)(e instanceof Image,"Invalid `img` parameter.");var t=e.src;"string"===typeof t&&t.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(t),e.removeAttribute("src")}t.StatTimer=T;var F=function(){function e(){p(this,e)}return v(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,a.isString)(e))return null;P||(P=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=P.exec(e);if(!t)return null;var r=parseInt(t[1],10),n=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var l=parseInt(t[6],10);l=l>=0&&l<=59?l:0;var c=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===c?(o+=u,s+=d):"+"===c&&(o-=u,s-=d),new Date(Date.UTC(r,n,i,o,s,l))}}]),e}();t.PDFDateString=F},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n=i(r(191)),a=r(1);function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e,t){return!t||"object"!==o(t)&&"function"!==typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){h(i,n,a,o,s,"next",e)}function s(e){h(i,n,a,o,s,"throw",e)}o(void 0)}))}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r0&&r.requests[0].done){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:t,callback:e};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function i(e,t,r,n){var a=e.substring(0,t),i=e.substring(t+r);return a+n+i}var o,s,l=document.createElement("canvas");l.width=1,l.height=1;var c=l.getContext("2d"),u=0;function d(e,t){if(u++,u>30)return(0,a.warn)("Load test font never loaded."),void t();c.font="30px "+e,c.fillText(".",0,20);var r=c.getImageData(0,0,1,1);r.data[3]>0?t():setTimeout(d.bind(null,e,t))}var h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,p=976;f=i(f,p,h.length,h);var g=16,v=1482184792,m=n(f,g);for(o=0,s=h.length-3;o=14&&(e=!0)}return(0,a.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){var e=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,a.shadow)(this,"_loadTestFont",e())}}]),t}(b);var y=function(){function e(t,r){var n=r.isEvalSupported,a=void 0===n||n,i=r.disableFontFace,o=void 0!==i&&i,s=r.ignoreErrors,l=void 0!==s&&s,c=r.onUnsupportedFeature,u=void 0===c?null:c,d=r.fontRegistry,h=void 0===d?null:d;for(var f in p(this,e),this.compiledGlyphs=Object.create(null),t)this[f]=t[f];this.isEvalSupported=!1!==a,this.disableFontFace=!0===o,this.ignoreErrors=!0===l,this._onUnsupportedFeature=u,this.fontRegistry=h}return v(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,a.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(c){if(!this.ignoreErrors)throw c;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.font}),(0,a.warn)('getPathGenerator - ignoring character: "'.concat(c,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&a.IsEvalSupportedCached.value){for(var i,o="",s=0,l=r.length;s0)f[p++]=v&g?0:255,g>>=1}var m=0;for(p=0,0!==f[p]&&(c[0]=1,++m),r=1;r>2)+(f[p+1]?4:0)+(f[p-d+1]?8:0),u[b]&&(c[n+r]=u[b],++m),p++;if(f[p-d]!==f[p]&&(c[n+r]=f[p]?2:4,++m),m>i)return null}for(p=d*(s-1),n=t*l,0!==f[p]&&(c[n]=8,++m),r=1;ri)return null;var y=new Int32Array([0,l,-1,0,-l,0,0,0,1]),w=[];for(t=0;m&&t<=s;t++){var _=t*l,k=_+o;while(_>4,c[_]&=A>>2|A<<2),S.push(_%l),S.push(_/l|0),c[_]||--m}while(C!==_);w.push(S),--t}}var T=function(e){e.save(),e.scale(1/o,-1/s),e.translate(0,-s),e.beginPath();for(var t=0,r=w.length;t>2),w=y.length,_=c+7>>3,k=4294967295,x=n.IsLittleEndianCached.value?4278190080:255;for(a=0;a_?c:8*S-7,P=-8&C,T=0,E=0;A>=1}while(r=h&&(o=u,s=c*o),r=0,i=s;i--;)m[r++]=v[g++],m[r++]=v[g++],m[r++]=v[g++],m[r++]=255;e.putImageData(p,0,a*d)}}}}function m(e,t){for(var r=t.height,n=t.width,a=r%d,i=(r-a)/d,o=0===a?i:i+1,s=e.createImageData(n,d),l=0,c=t.data,u=s.data,h=0;h>=1}e.putImageData(s,0,h*d)}}function b(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],n=0,a=r.length;n>8,e[i-2]=e[i-2]*o+r*s>>8,e[i-1]=e[i-1]*o+n*s>>8}}}function _(e,t,r){for(var n=e.length,a=1/255,i=3;i>8]>>8:t[a]*i>>16}}function x(e,t,r,n,a,i,o){var s,l=!!i,c=l?i[0]:0,u=l?i[1]:0,d=l?i[2]:0;s="Luminosity"===a?k:_;for(var h=1048576,f=Math.min(n,Math.ceil(h/r)),p=0;pt&&"function"===typeof i,f=h?Date.now()+e:0,p=0,g=this.commonObjs,v=this.objs;while(1){if(void 0!==o&&c===o.nextBreakPoint)return o.breakIt(c,i),c;if(d=l[c],d!==n.OPS.dependency)this[d].apply(this,s[c]);else{var m=!0,b=!1,y=void 0;try{for(var w,_=s[c][Symbol.iterator]();!(m=(w=_.next()).done);m=!0){var k=w.value,x=k.startsWith("g_")?g:v;if(!x.has(k))return x.get(k,i),c}}catch(S){b=!0,y=S}finally{try{m||null==_["return"]||_["return"]()}finally{if(b)throw y}}}if(c++,c===u)return c;if(h&&++p>t){if(Date.now()>f)return i(),c;p=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=A[e]},setLineJoin:function(e){this.ctx.lineJoin=C[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var t=0,r=e.length;t0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=i?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,a=this.cachedCanvases.getCanvas(n,t,r,!0),i=this.ctx,o=i.mozCurrentTransform;this.ctx.save();var s=a.context;s.scale(1/e.scaleX,1/e.scaleY),s.translate(-e.offsetX,-e.offsetY),s.transform.apply(s,o),e.startTransformInverse=s.mozCurrentTransformInverse,b(i,s),this.ctx=s,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),S(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),b(e,this.ctx),this.current.resumeSMaskCtx=e;var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),S(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),b(e,this.ctx);var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(e,t,r,n,a,i){this.ctx.transform(e,t,r,n,a,i),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,a=this.current,i=a.x,o=a.y,s=0,l=0,c=e.length;so&&(d=o),this.current.fontSizeScale=t/d,this.ctx.font="".concat(c," ").concat(l," ").concat(d,"px ").concat(u)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,a,i){this.current.textMatrix=[e,t,r,n,a,i],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,a){var i,o=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,u=s.fontSize/s.fontSizeScale,d=c&n.TextRenderingMode.FILL_STROKE_MASK,h=!!(c&n.TextRenderingMode.ADD_TO_PATH_FLAG),f=s.patternFill&&l.data;if((l.disableFontFace||h||f)&&(i=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||f?(o.save(),o.translate(t,r),o.beginPath(),i(o,u),a&&o.setTransform.apply(o,a),d!==n.TextRenderingMode.FILL&&d!==n.TextRenderingMode.FILL_STROKE||o.fill(),d!==n.TextRenderingMode.STROKE&&d!==n.TextRenderingMode.FILL_STROKE||o.stroke(),o.restore()):(d!==n.TextRenderingMode.FILL&&d!==n.TextRenderingMode.FILL_STROKE||o.fillText(e,t,r),d!==n.TextRenderingMode.STROKE&&d!==n.TextRenderingMode.FILL_STROKE||o.strokeText(e,t,r)),h){var p=this.pendingTextPaths||(this.pendingTextPaths=[]);p.push({transform:o.mozCurrentTransform,x:t,y:r,fontSize:u,addToPath:i})}},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),t=e.context;t.scale(1.5,1),t.fillText("I",0,10);for(var r=t.getImageData(0,0,10,10).data,a=!1,i=3;i0&&r[i]<255){a=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",a)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var a=t.fontSize;if(0!==a){var i,o=this.ctx,s=t.fontSizeScale,c=t.charSpacing,u=t.wordSpacing,d=t.fontDirection,h=t.textHScale*d,f=e.length,p=r.vertical,g=p?1:-1,v=r.defaultVMetrics,m=a*t.fontMatrix[0],b=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(o.save(),t.patternFill){o.save();var y=t.fillColor.getPattern(o,this);i=o.mozCurrentTransform,o.restore(),o.fillStyle=y}o.transform.apply(o,t.textMatrix),o.translate(t.x,t.y+t.textRise),d>0?o.scale(h,-1):o.scale(h,1);var w=t.lineWidth,_=t.textMatrixScale;if(0===_||0===w){var k=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;k!==n.TextRenderingMode.STROKE&&k!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,w=this.getSinglePixelWidth()*l)}else w/=_;1!==s&&(o.scale(s,s),w/=s),o.lineWidth=w;var x,S=0;for(x=0;x0){var U=1e3*o.measureText(D).width/a*s;if(Bs&&(d=c/s,c=s),u>s&&(h=u/s,u=s);var f="groupAt"+this.groupLevel;e.smask&&(f+="_smask_"+this.smaskCounter++%2);var p=this.cachedCanvases.getCanvas(f,c,u,!0),g=p.context;g.scale(1/d,1/h),g.translate(-o,-l),g.transform.apply(g,r),e.smask?this.smaskStack.push({canvas:p.canvas,context:g,offsetX:o,offsetY:l,scaleX:d,scaleY:h,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,l),t.scale(d,h)),b(t,g),this.ctx=g,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),y(this.ctx),this.current=new g,Array.isArray(e)&&4===e.length){var n=e[2]-e[0],a=e[3]-e[1];this.ctx.rect(e[0],e[1],n,a),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintJpegXObject:function(e,t,r){var a=this.processingType3?this.commonObjs.get(e):this.objs.get(e);if(a){this.save();var i=this.ctx;if(i.scale(1/t,-1/r),i.drawImage(a,0,0,a.width,a.height,0,-r,t,r),this.imageLayer){var o=i.mozCurrentTransformInverse,s=this.getCanvasPosition(0,0);this.imageLayer.appendImage({objId:e,left:s[0],top:s[1],width:t/o[0],height:r/o[3]})}this.restore()}else(0,n.warn)("Dependent image isn't ready yet")},paintImageMaskXObject:function(e){var t=this.ctx,r=e.width,n=e.height,a=this.current.fillColor,i=this.current.patternFill,o=this.processingType3;if(c&&o&&void 0===o.compiled&&(o.compiled=r<=u&&n<=u?p({data:e.data,width:r,height:n}):null),o&&o.compiled)o.compiled(t);else{var s=this.cachedCanvases.getCanvas("maskCanvas",r,n),l=s.context;l.save(),m(l,e),l.globalCompositeOperation="source-in",l.fillStyle=i?a.getPattern(l,this):a,l.fillRect(0,0,r,n),l.restore(),this.paintInlineImageXObject(s.canvas)}},paintImageMaskXObjectRepeat:function(e,t,r,n){var a=e.width,i=e.height,o=this.current.fillColor,s=this.current.patternFill,l=this.cachedCanvases.getCanvas("maskCanvas",a,i),c=l.context;c.save(),m(c,e),c.globalCompositeOperation="source-in",c.fillStyle=s?o.getPattern(c,this):o,c.fillRect(0,0,a,i),c.restore();for(var u=this.ctx,d=0,h=n.length;d2&&p>1||h>2&&g>1){var b=p,y=g;c>2&&p>1&&(b=Math.ceil(p/2),c/=p/b),h>2&&g>1&&(y=Math.ceil(g/2),h/=g/y),i=this.cachedCanvases.getCanvas(m,b,y),f=i.context,f.clearRect(0,0,b,y),f.drawImage(a,0,0,p,g,0,0,b,y),a=i.canvas,p=b,g=y,m="prescale1"===m?"prescale2":"prescale1"}if(n.drawImage(a,0,0,p,g,0,-r,t,r),this.imageLayer){var w=this.getCanvasPosition(0,-r);this.imageLayer.appendImage({imgData:e,left:w[0],top:w[1],width:t/o[0],height:r/o[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,t){var r=this.ctx,n=e.width,a=e.height,i=this.cachedCanvases.getCanvas("inlineImage",n,a),o=i.context;v(o,e);for(var s=0,l=t.length;sc[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l),c[n+1]>c[a+1]&&(l=n,n=a,a=l,l=o,o=s,s=l),c[r+1]>c[n+1]&&(l=r,r=n,n=l,l=i,i=o,o=l);var f=(c[r]+t.offsetX)*t.scaleX,p=(c[r+1]+t.offsetY)*t.scaleY,g=(c[n]+t.offsetX)*t.scaleX,v=(c[n+1]+t.offsetY)*t.scaleY,m=(c[a]+t.offsetX)*t.scaleX,b=(c[a+1]+t.offsetY)*t.scaleY;if(!(p>=b))for(var y,w,_,k,x,S,A,C,P=u[i],T=u[i+1],E=u[i+2],R=u[o],I=u[o+1],O=u[o+2],L=u[s],F=u[s+1],M=u[s+2],D=Math.round(p),N=Math.round(b),B=D;B<=N;B++){if(Bb?1:v===b?0:(v-B)/(v-b),y=g-(g-m)*j,w=R-(R-L)*j,_=I-(I-F)*j,k=O-(O-M)*j}var q=void 0;q=Bb?1:(p-B)/(p-b),x=f-(f-m)*q,S=P-(P-L)*q,A=T-(T-F)*q,C=E-(E-M)*q;for(var z=Math.round(Math.min(y,x)),V=Math.round(Math.max(y,x)),W=h*B+4*z,H=z;H<=V;H++){var G=(y-H)/(y-x);G<0?G=0:G>1&&(G=1),d[W++]=w-(w-S)*G|0,d[W++]=_-(_-A)*G|0,d[W++]=k-(k-C)*G|0,d[W++]=255}}}function t(t,r,n){var a,i,o=r.coords,s=r.colors;switch(r.type){case"lattice":var l=r.verticesPerRow,c=Math.floor(o.length/l)-1,u=l-1;for(a=0;a=a?i=a:n=i/e,{scale:n,size:i}},clipBbox:function(e,t,r,n,a,i){if(Array.isArray(t)&&4===t.length){var o=a-r,s=i-n;e.ctx.rect(r,n,o,s),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(t,r,a){var i=t.ctx,o=t.current;switch(r){case e.COLORED:var s=this.ctx;i.fillStyle=s.fillStyle,i.strokeStyle=s.strokeStyle,o.fillColor=s.fillStyle,o.strokeColor=s.strokeStyle;break;case e.UNCOLORED:var l=n.Util.makeCssRgb(a[0],a[1],a[2]);i.fillStyle=l,i.strokeStyle=l,o.fillColor=l,o.strokeColor=l;break;default:throw new n.FormatError("Unsupported paint type: ".concat(r))}},getPattern:function(e,t){e=this.ctx,e.setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},r}();t.TilingPattern=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=i(r(191)),a=r(1);function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){o(i,n,a,s,l,"next",e)}function l(e){o(i,n,a,s,l,"throw",e)}s(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:i,targetName:o,stream:f.ENQUEUE,streamId:n,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:f.CLOSE,streamId:n}),delete t.streamSinks[n])},error:function(e){(0,a.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:i,targetName:o,stream:f.ERROR,streamId:n,reason:p(e)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,new Promise((function(t){t(r(e.data,l))})).then((function(){s.postMessage({sourceName:i,targetName:o,stream:f.START_COMPLETE,streamId:n,success:!0})}),(function(e){s.postMessage({sourceName:i,targetName:o,stream:f.START_COMPLETE,streamId:n,reason:p(e)})}))}},{key:"_processStreamMessage",value:function(e){var t=e.streamId,r=this.sourceName,n=e.sourceName,i=this.comObj;switch(e.stream){case f.START_COMPLETE:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(p(e.reason));break;case f.PULL_COMPLETE:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(p(e.reason));break;case f.PULL:if(!this.streamSinks[t]){i.postMessage({sourceName:r,targetName:n,stream:f.PULL_COMPLETE,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;var o=this.streamSinks[e.streamId].onPull;new Promise((function(e){e(o&&o())})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:f.PULL_COMPLETE,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:n,stream:f.PULL_COMPLETE,streamId:t,reason:p(e)})}));break;case f.ENQUEUE:if((0,a.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case f.CLOSE:if((0,a.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case f.ERROR:(0,a.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(p(e.reason)),this._deleteStreamController(t);break;case f.CANCEL_COMPLETE:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(p(e.reason)),this._deleteStreamController(t);break;case f.CANCEL:if(!this.streamSinks[t])break;var s=this.streamSinks[e.streamId].onCancel;new Promise((function(t){t(s&&s(p(e.reason)))})).then((function(){i.postMessage({sourceName:r,targetName:n,stream:f.CANCEL_COMPLETE,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:r,targetName:n,stream:f.CANCEL_COMPLETE,streamId:t,reason:p(e)})})),this.streamSinks[t].sinkCapability.reject(p(e.reason)),this.streamSinks[t].isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var e=s(n["default"].mark((function e(t){return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),e}();t.MessageHandler=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(1),a=r(202);function i(e,t){return l(e)||s(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function l(e){if(Array.isArray(e))return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),n="",a=0,i=r.length;a=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+n}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase()){t=t.firstChild;while(t&&"rdf:rdf"!==t.nodeName.toLowerCase())t=t.nextSibling}var r=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===r&&t.hasChildNodes())for(var n=t.childNodes,a=0,i=n.length;a";case"amp":return"&";case"quot":return'"'}return t.onResolveEntity(r)}))}},{key:"_parseContent",value:function(e,t){var r=[],n=t;function a(){while(n"!==e[n]&&"/"!==e[n])++n;var i=e.substring(t,n);a();while(n"!==e[n]&&"/"!==e[n]&&"?"!==e[n]){a();var o="",s="";while(n"!==e[r]&&"/"!==e[r])++r;var a=e.substring(t,r);n();var i=r;while(r"!==e[r+1]))++r;var o=e.substring(i,r);return{name:a,value:o,parsed:r-t}}},{key:"parseXml",value:function(e){var t=0;while(t",n),i<0)return void this.onError(b.UnterminatedElement);this.onEndElement(e.substring(n,i)),n=i+1;break;case"?":++n;var o=this._parseProcessingInstruction(e,n);if("?>"!==e.substring(n+o.parsed,n+o.parsed+2))return void this.onError(b.UnterminatedXmlDeclaration);this.onPi(o.name,o.value),n+=o.parsed+2;break;case"!":if("--"===e.substring(n+1,n+3)){if(i=e.indexOf("--\x3e",n+3),i<0)return void this.onError(b.UnterminatedComment);this.onComment(e.substring(n+3,i)),n=i+3}else if("[CDATA["===e.substring(n+1,n+8)){if(i=e.indexOf("]]>",n+8),i<0)return void this.onError(b.UnterminatedCdat);this.onCdata(e.substring(n+8,i)),n=i+3}else{if("DOCTYPE"!==e.substring(n+1,n+8))return void this.onError(b.MalformedElement);var s=e.indexOf("[",n+8),l=!1;if(i=e.indexOf(">",n+8),i<0)return void this.onError(b.UnterminatedDoctypeDeclaration);if(s>0&&i>s){if(i=e.indexOf("]>",n+8),i<0)return void this.onError(b.UnterminatedDoctypeDeclaration);l=!0}var c=e.substring(n+8,i+(l?1:0));this.onDoctype(c),n=i+(l?2:1)}break;default:var u=this._parseContent(e,n);if(null===u)return void this.onError(b.MalformedElement);var d=!1;if("/>"===e.substring(n+u.parsed,n+u.parsed+2))d=!0;else if(">"!==e.substring(n+u.parsed,n+u.parsed+1))return void this.onError(b.UnterminatedElement);this.onBeginElement(u.name,u.attributes,d),n+=u.parsed+(d?2:1);break}}else{while(n0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}}]),e}(),x=function(e){function t(){var e;return g(this,t),e=l(this,h(t).call(this)),e._currentFragment=null,e._stack=null,e._errorCode=b.NoError,e}return f(t,e),m(t,[{key:"parseFromString",value:function(e){if(this._currentFragment=[],this._stack=[],this._errorCode=b.NoError,this.parseXml(e),this._errorCode===b.NoError){var t=a(this._currentFragment,1),r=t[0];if(r)return{documentElement:r}}}},{key:"onResolveEntity",value:function(e){switch(e){case"apos":return"'"}return u(h(t.prototype),"onResolveEntity",this).call(this,e)}},{key:"onText",value:function(e){if(!w(e)){var t=new k("#text",e);this._currentFragment.push(t)}}},{key:"onCdata",value:function(e){var t=new k("#text",e);this._currentFragment.push(t)}},{key:"onBeginElement",value:function(e,t,r){var n=new k(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var r=0,n=t.childNodes.length;r0){var o=new Uint8Array(i).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){n._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){n._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){n._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){n._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return u(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,a.assert)(r)}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,a.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new h(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new f(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeReaders.slice(0);t.forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=d;var h=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l(this,e),this._stream=t,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var a=!0,i=!1,o=void 0;try{for(var s,c=this._queuedChunks[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var u=s.value;this._loaded+=u.byteLength}}catch(d){i=!0,o=d}finally{try{a||null==c["return"]||c["return"]()}finally{if(i)throw o}}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return u(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){var e=s(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),f=function(){function e(t,r,n){l(this,e),this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return u(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){var e=s(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var n=r(1);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r1&&(c.vertical?o.canvasWidth=t.height*e._viewport.scale:o.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(i,o),e._textContentStream&&e._layoutText(i),e._enhanceTextSelection){var p=1,g=0;0!==l&&(p=Math.cos(l),g=Math.sin(l));var v,m,b=(c.vertical?t.height:t.width)*e._viewport.scale,y=h;0!==l?(v=[p,g,-g,p,u,d],m=n.Util.getAxialAlignedBoundingBox([0,0,b,y],v)):m=[u,d,u+b,d+y],e._bounds.push({left:m[0],top:m[1],right:m[2],bottom:m[3],div:i,size:[b,y],m:v})}}function i(t){if(!t._canceled){var r=t._textDivs,n=t._capability,a=r.length;if(a>e)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var i=0;i0&&(n=n?Math.min(i,n):i)}return n},m=1+Math.min(Math.abs(h),Math.abs(f));l.paddingLeft=v(g,32,16)/m,l.paddingTop=v(g,48,16)/m,l.paddingRight=v(g,0,16)/m,l.paddingBottom=v(g,16,16)/m,e._textDivProperties.set(o,l)}else l.paddingLeft=t[i].left-a[i].left,l.paddingTop=t[i].top-a[i].top,l.paddingRight=a[i].right-t[i].right,l.paddingBottom=a[i].bottom-t[i].bottom,e._textDivProperties.set(o,l)}}function s(e,t,r){var n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));l(e,n);var a=new Array(r.length);return n.forEach((function(e){var t=e.index;a[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){var i=a[r],o=n[r];o.x1=t.top,o.y1=e-i.right,o.x2=t.bottom,o.y2=e-i.left,o.index=r,o.x1New=void 0,o.x2New=void 0})),l(t,n),n.forEach((function(e){var t=e.index;a[t].top=e.x1New,a[t].bottom=e.x2New})),a}function l(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];t.forEach((function(e){var t=0;while(t=0&&n[i].start>=e.y2)i--;var o,s,l=-1/0;for(o=t;o<=i;o++){var c;r=n[o],a=r.boundary,c=a.x2>e.x1?a.index>e.index?a.x1New:e.x1:void 0===a.x2New?(a.x2+e.x1)/2:a.x2New,c>l&&(l=c)}for(e.x1New=l,o=t;o<=i;o++)r=n[o],a=r.boundary,void 0===a.x2New?a.x2>e.x1?a.index>e.index&&(a.x2New=a.x2):a.x2New=l:a.x2New>l&&(a.x2New=Math.max(l,a.x2));var u=[],d=null;for(o=t;o<=i;o++){r=n[o],a=r.boundary;var h=a.x2>e.x2?a:e;d===h?u[u.length-1].end=r.end:(u.push({start:r.start,end:r.end,boundary:h}),d=h)}for(n[t].start=0&&n[s].start>=a.y1;s--)f=n[s].boundary===a;for(s=i+1;!f&&s0&&(t.scale=t.canvasWidth/s,r="scaleX(".concat(t.scale,")"))}0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,r=(0,n.createPromiseCapability)(),a=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),r.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var c=function e(){t._reader.read().then((function(n){var i=n.value,o=n.done;o?r.resolve():(Object.assign(a,i.styles),t._processItems(i.items,a),e())}),r.reject)};this._reader=this._textContentStream.getReader(),c()}r.promise.then((function(){a=null,e?t._renderTimer=setTimeout((function(){i(t),t._renderTimer=null}),e):i(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var t=[],r=[],n=0,a=this._textDivs.length;n0?(r.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),i.style.padding=r.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=s.originalTransform))}}}},u}();t.renderTextLayer=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var n=r(194),a=r(1);function i(e,t,r){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=o(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(r):a.value}},i(e,t,r||e)}function o(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=u(e),null===e)break;return e}function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}return g(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,i=document.createElement("section"),o=t.rect[2]-t.rect[0],s=t.rect[3]-t.rect[1];i.setAttribute("data-annotation-id",t.id);var l=a.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(i.style.transform="matrix(".concat(n.transform.join(","),")"),i.style.transformOrigin="-".concat(l[0],"px -").concat(l[1],"px"),!e&&t.borderStyle.width>0){i.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==a.AnnotationBorderStyleType.UNDERLINE&&(o-=2*t.borderStyle.width,s-=2*t.borderStyle.width);var c=t.borderStyle.horizontalCornerRadius,u=t.borderStyle.verticalCornerRadius;if(c>0||u>0){var d="".concat(c,"px / ").concat(u,"px");i.style.borderRadius=d}switch(t.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;case a.AnnotationBorderStyleType.BEVELED:(0,a.warn)("Unimplemented border style: beveled");break;case a.AnnotationBorderStyleType.INSET:(0,a.warn)("Unimplemented border style: inset");break;case a.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid";break;default:break}t.color?i.style.borderColor=a.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):i.style.borderWidth=0}return i.style.left="".concat(l[0],"px"),i.style.top="".concat(l[1],"px"),i.style.width="".concat(o,"px"),i.style.height="".concat(s,"px"),i}},{key:"_createPopup",value:function(e,t,r){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var n=new P({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),a=n.render();a.style.left=e.style.width,e.appendChild(a)}},{key:"render",value:function(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),b=function(e){function t(e){f(this,t);var r=!!(e.data.url||e.data.dest||e.data.action);return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,r=document.createElement("a");return e.url?(0,n.addLinkAttributes)(r,{url:e.url,target:e.newWindow?n.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),t}(m),y=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),t}(m),w=function(e){function t(){return f(this,t),l(this,u(t).apply(this,arguments))}return d(t,e),g(t,[{key:"render",value:function(){return this.container}}]),t}(m),_=function(e){function t(e){f(this,t);var r=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){var e=["left","center","right"];this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea"),t.textContent=this.data.fieldValue):(t=document.createElement("input"),t.type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{t=document.createElement("div"),t.textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var a=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(a=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,a)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(e,t){var r=e.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",t){var n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";var a=t.loadedName?'"'.concat(t.loadedName,'", '):"",i=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=a+i}}}]),t}(w),k=function(e){function t(e){return f(this,t),l(this,u(t).call(this,e,e.renderInteractiveForms))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(w),x=function(e){function t(e){return f(this,t),l(this,u(t).call(this,e,e.renderInteractiveForms))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),t}(w),S=function(e){function t(){return f(this,t),l(this,u(t).apply(this,arguments))}return d(t,e),g(t,[{key:"render",value:function(){var e=i(u(t.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),t}(b),A=function(e){function t(e){return f(this,t),l(this,u(t).call(this,e,e.renderInteractiveForms))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t=!0,r=!1,n=void 0;try{for(var a,i=this.data.options[Symbol.iterator]();!(t=(a=i.next()).done);t=!0){var o=a.value,s=document.createElement("option");s.textContent=o.displayValue,s.value=o.exportValue,this.data.fieldValue.includes(o.displayValue)&&s.setAttribute("selected",!0),e.appendChild(s)}}catch(l){r=!0,n=l}finally{try{t||null==i["return"]||i["return"]()}finally{if(r)throw n}}return this.container.appendChild(e),this.container}}]),t}(w),C=function(e){function t(e){f(this,t);var r=!(!e.data.title&&!e.data.contents);return l(this,u(t).call(this,e,r))}return d(t,e),g(t,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(t);if(!r)return this.container;var n=new P({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),a=parseFloat(r.style.left),i=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(a+i,"px -").concat(r.style.top),this.container.style.left="".concat(a+i,"px"),this.container.appendChild(n.render()),this.container}}]),t}(m),P=function(){function e(t){f(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return g(e,[{key:"render",value:function(){var e=.7,t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var r=document.createElement("div");r.className="popup";var i=this.color;if(i){var o=e*(255-i[0])+i[0],s=e*(255-i[1])+i[1],l=e*(255-i[2])+i[2];r.style.backgroundColor=a.Util.makeCssRgb(0|o,0|s,0|l)}var c=document.createElement("h1");c.textContent=this.title,r.appendChild(c);var u=n.PDFDateString.toDateObject(this.modificationDate);if(u){var d=document.createElement("span");d.textContent="{{date}}, {{time}}",d.dataset.l10nId="annotation_date_string",d.dataset.l10nArgs=JSON.stringify({date:u.toLocaleDateString(),time:u.toLocaleTimeString()}),r.appendChild(d)}var h=this._formatContents(this.contents);return r.appendChild(h),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),r.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(r),t}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/),n=0,a=r.length;n0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),T=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),E=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),n.appendChild(a),this.container.append(n),this._createPopup(this.container,a,e),this.container}}]),t}(m),R=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",a/2),i.setAttribute("y",a/2),i.setAttribute("width",t-a),i.setAttribute("height",r-a),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),t}(m),I=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",t/2),i.setAttribute("cy",r/2),i.setAttribute("rx",t/2-a/2),i.setAttribute("ry",r/2-a/2),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),t}(m),O=function(e){function t(e){var r;f(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=l(this,u(t).call(this,e,n,!0)),r.containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return d(t,e),g(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=[],i=!0,o=!1,s=void 0;try{for(var l,c=e.vertices[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value,d=u.x-e.rect[0],h=e.rect[3]-u.y;a.push(d+","+h)}}catch(p){o=!0,s=p}finally{try{i||null==c["return"]||c["return"]()}finally{if(o)throw s}}a=a.join(" ");var f=this.svgFactory.createElement(this.svgElementName);return f.setAttribute("points",a),f.setAttribute("stroke-width",e.borderStyle.width||1),f.setAttribute("stroke","transparent"),f.setAttribute("fill","none"),n.appendChild(f),this.container.append(n),this._createPopup(this.container,f,e),this.container}}]),t}(m),L=function(e){function t(e){var r;return f(this,t),r=l(this,u(t).call(this,e)),r.containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return d(t,e),t}(O),F=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),M=function(e){function t(e){var r;f(this,t);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return r=l(this,u(t).call(this,e,n,!0)),r.containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return d(t,e),g(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=!0,i=!1,o=void 0;try{for(var s,l=e.inkLists[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value,u=[],d=!0,h=!1,f=void 0;try{for(var p,g=c[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var v=p.value,m=v.x-e.rect[0],b=e.rect[3]-v.y;u.push("".concat(m,",").concat(b))}}catch(w){h=!0,f=w}finally{try{d||null==g["return"]||g["return"]()}finally{if(h)throw f}}u=u.join(" ");var y=this.svgFactory.createElement(this.svgElementName);y.setAttribute("points",u),y.setAttribute("stroke-width",e.borderStyle.width||1),y.setAttribute("stroke","transparent"),y.setAttribute("fill","none"),this._createPopup(this.container,y,e),n.appendChild(y)}}catch(w){i=!0,o=w}finally{try{a||null==l["return"]||l["return"]()}finally{if(i)throw o}}return this.container.append(n),this.container}}]),t}(m),D=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),N=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),B=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),U=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),j=function(e){function t(e){f(this,t);var r=!!(e.data.hasPopup||e.data.title||e.data.contents);return l(this,u(t).call(this,e,r,!0))}return d(t,e),g(t,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),t}(m),q=function(e){function t(e){var r;f(this,t),r=l(this,u(t).call(this,e,!0));var i=r.data.file,o=i.filename,s=i.content;return r.filename=(0,n.getFilenameFromUrl)(o),r.content=s,r.linkService.eventBus&&r.linkService.eventBus.dispatch("fileattachmentannotation",{source:c(r),id:(0,a.stringToPDFString)(o),filename:o,content:s}),r}return d(t,e),g(t,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,a.warn)("Download cannot be started due to unavailable download manager")}}]),t}(m),z=function(){function e(){f(this,e)}return g(e,null,[{key:"render",value:function(e){var t=[],r=[],i=!0,o=!1,s=void 0;try{for(var l,c=e.annotations[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;u&&(u.annotationType!==a.AnnotationType.POPUP?t.push(u):r.push(u))}}catch(g){o=!0,s=g}finally{try{i||null==c["return"]||c["return"]()}finally{if(o)throw s}}r.length&&t.push.apply(t,r);for(var d=0,h=t;d>1&2147483647:o>>1&2147483647;r[a]=o}function l(e,t,n){for(var a=-1,i=t;i>>8^s}return-1^a}function c(e,t,r,n){var a=n,i=t.length;r[a]=i>>24&255,r[a+1]=i>>16&255,r[a+2]=i>>8&255,r[a+3]=255&i,a+=4,r[a]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(t,a),a+=t.length;var o=l(r,n+4,a);r[a]=o>>24&255,r[a+1]=o>>16&255,r[a+2]=o>>8&255,r[a+3]=255&o}function u(e,t,r){for(var n=1,a=0,i=t;i=8?e:Buffer.from(e);var r=__nested_webpack_require_1653429__(0).deflateSync(t,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(a){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+a)}return h(e)}function h(e){var t=e.length,r=65535,n=Math.ceil(t/r),a=new Uint8Array(2+t+5*n+4),i=0;a[i++]=120,a[i++]=156;var o=0;while(t>r)a[i++]=0,a[i++]=255,a[i++]=255,a[i++]=0,a[i++]=0,a.set(e.subarray(o,o+r),i),i+=r,o+=r,t-=r;a[i++]=1,a[i++]=255&t,a[i++]=t>>8&255,a[i++]=255&~t,a[i++]=(65535&~t)>>8&255,a.set(e.subarray(o),i),i+=e.length-o;var s=u(e,0,e.length);return a[i++]=s>>24&255,a[i++]=s>>16&255,a[i++]=s>>8&255,a[i++]=255&s,a}function f(r,a,i,o){var s,l,u,h=r.width,f=r.height,p=r.data;switch(a){case n.ImageKind.GRAYSCALE_1BPP:l=0,s=1,u=h+7>>3;break;case n.ImageKind.RGB_24BPP:l=2,s=8,u=3*h;break;case n.ImageKind.RGBA_32BPP:l=6,s=8,u=4*h;break;default:throw new Error("invalid format")}for(var g=new Uint8Array((1+u)*f),v=0,m=0,b=0;b>24&255,h>>16&255,h>>8&255,255&h,f>>24&255,f>>16&255,f>>8&255,255&f,s,l,0,0,0]),k=d(g),x=e.length+3*t+_.length+k.length,S=new Uint8Array(x),A=0;return S.set(e,A),A+=e.length,c("IHDR",_,S,A),A+=t+_.length,c("IDATA",k,S,A),A+=t+k.length,c("IEND",new Uint8Array(0),S,A),(0,n.createObjectURL)(S,"image/png",i)}return function(e,t,r){var a=void 0===e.kind?n.ImageKind.GRAYSCALE_1BPP:e.kind;return f(e,a,t,r)}}(),P=function(){function e(){p(this,e),this.fontSizeScale=1,this.fontWeight=_.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=_.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return v(e,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}]),e}(),T=0,E=0,R=0;t.SVGGraphics=m=function(){function e(t,r,i){for(var o in p(this,e),this.svgFactory=new a.DOMSVGFactory,this.current=new P,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!i,this._operatorIdMapping=[],n.OPS)this._operatorIdMapping[n.OPS[o]]=o}return v(e,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,a=e.argsArray,i=0,o=r.length;i0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(e){this.current.lineCap=S[e]}},{key:"setLineJoin",value:function(e){this.current.lineJoin=A[e]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,t,r){this.current.strokeColor=n.Util.makeCssRgb(e,t,r)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,t,r){this.current.fillColor=n.Util.makeCssRgb(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,a=n.Util.inverseTransform(this.transformMatrix),i=n.Util.applyTransform([0,0],a),o=n.Util.applyTransform([0,r],a),s=n.Util.applyTransform([t,0],a),l=n.Util.applyTransform([t,r],a),c=Math.min(i[0],o[0],s[0],l[0]),u=Math.min(i[1],o[1],s[1],l[1]),d=Math.max(i[0],o[0],s[0],l[0]),h=Math.max(i[1],o[1],s[1],l[1]),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x",c),f.setAttributeNS(null,"y",u),f.setAttributeNS(null,"width",d-c),f.setAttributeNS(null,"height",h-u),f.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this._ensureTransformGroup().appendChild(f)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],a=e[3]||n.IDENTITY_MATRIX,i=u(e[4],4),s=i[0],l=i[1],c=i[2],d=i[3],h=e[5],f=e[6],p=e[7],g="shading".concat(R++),v=n.Util.applyTransform([s,l],a),m=u(v,2),b=m[0],y=m[1],w=n.Util.applyTransform([c,d],a),_=u(w,2),k=_[0],x=_[1],S=n.Util.singularValueDecompose2dScale(a),A=u(S,2),C=A[0],P=A[1],T=h*C,E=f*P,I=this.svgFactory.createElement("svg:pattern");I.setAttributeNS(null,"id",g),I.setAttributeNS(null,"patternUnits","userSpaceOnUse"),I.setAttributeNS(null,"width",T),I.setAttributeNS(null,"height",E),I.setAttributeNS(null,"x","".concat(b)),I.setAttributeNS(null,"y","".concat(y));var O=this.svg,L=this.transformMatrix,F=this.current.fillColor,M=this.current.strokeColor,D=this.svgFactory.create(k-b,x-y);if(this.svg=D,this.transformMatrix=a,2===p){var N=n.Util.makeCssRgb.apply(n.Util,o(t));this.current.fillColor=N,this.current.strokeColor=N}return this.executeOpTree(this.convertOpList(r)),this.svg=O,this.transformMatrix=L,this.current.fillColor=F,this.current.strokeColor=M,I.appendChild(D.childNodes[0]),this.defs.appendChild(I),"url(#".concat(g,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,r="shading".concat(R++),a=e[3];switch(e[1]){case"axial":var i=e[4],o=e[5];t=this.svgFactory.createElement("svg:linearGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",i[0]),t.setAttributeNS(null,"y1",i[1]),t.setAttributeNS(null,"x2",o[0]),t.setAttributeNS(null,"y2",o[1]);break;case"radial":var s=e[4],l=e[5],c=e[6],u=e[7];t=this.svgFactory.createElement("svg:radialGradient"),t.setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",l[0]),t.setAttributeNS(null,"cy",l[1]),t.setAttributeNS(null,"r",u),t.setAttributeNS(null,"fx",s[0]),t.setAttributeNS(null,"fy",s[1]),t.setAttributeNS(null,"fr",c);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var d=!0,h=!1,f=void 0;try{for(var p,g=a[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var v=p.value,m=this.svgFactory.createElement("svg:stop");m.setAttributeNS(null,"offset",v[0]),m.setAttributeNS(null,"stop-color",v[1]),t.appendChild(m)}}catch(b){h=!0,f=b}finally{try{d||null==g["return"]||g["return"]()}finally{if(h)throw f}}return this.defs.appendChild(t),"url(#".concat(r,")");case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r=this.current,a=r.x,i=r.y,o=[],s=0,l=!0,c=!1,u=void 0;try{for(var d,h=e[Symbol.iterator]();!(l=(d=h.next()).done);l=!0){var f=d.value;switch(0|f){case n.OPS.rectangle:a=t[s++],i=t[s++];var p=t[s++],g=t[s++],v=a+p,m=i+g;o.push("M",y(a),y(i),"L",y(v),y(i),"L",y(v),y(m),"L",y(a),y(m),"Z");break;case n.OPS.moveTo:a=t[s++],i=t[s++],o.push("M",y(a),y(i));break;case n.OPS.lineTo:a=t[s++],i=t[s++],o.push("L",y(a),y(i));break;case n.OPS.curveTo:a=t[s+4],i=t[s+5],o.push("C",y(t[s]),y(t[s+1]),y(t[s+2]),y(t[s+3]),y(a),y(i)),s+=6;break;case n.OPS.curveTo2:o.push("C",y(a),y(i),y(t[s]),y(t[s+1]),y(t[s+2]),y(t[s+3])),a=t[s+2],i=t[s+3],s+=4;break;case n.OPS.curveTo3:a=t[s+2],i=t[s+3],o.push("C",y(t[s]),y(t[s+1]),y(a),y(i),y(a),y(i)),s+=4;break;case n.OPS.closePath:o.push("Z");break}}}catch(b){c=!0,u=b}finally{try{l||null==h["return"]||h["return"]()}finally{if(c)throw u}}o=o.join(" "),r.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?o=r.path.getAttributeNS(null,"d")+o:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",o),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(a,i)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(T++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",w(this.transformMatrix));var n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t=!0,r=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=u(i.value,2),l=s[0],c=s[1];switch(l){case"LW":this.setLineWidth(c);break;case"LC":this.setLineCap(c);break;case"LJ":this.setLineJoin(c);break;case"ML":this.setMiterLimit(c);break;case"D":this.setDash(c[0],c[1]);break;case"RI":this.setRenderingIntent(c);break;case"FL":this.setFlatness(c);break;case"Font":this.setFont(c);break;case"CA":this.setStrokeAlpha(c);break;case"ca":this.setFillAlpha(c);break;default:(0,n.warn)("Unimplemented graphic state operator ".concat(l));break}}}catch(d){r=!0,a=d}finally{try{t||null==o["return"]||o["return"]()}finally{if(r)throw a}}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.current,n=r.dashArray;1!==t&&n.length>0&&(n=n.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",y(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",y(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",n.map(y).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",y(t*r.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}},{key:"paintJpegXObject",value:function(e,t,r){var n=this.objs.get(e),a=this.svgFactory.createElement("svg:image");a.setAttributeNS(x,"xlink:href",n.src),a.setAttributeNS(null,"width",y(t)),a.setAttributeNS(null,"height",y(r)),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",y(-r)),a.setAttributeNS(null,"transform","scale(".concat(y(1/t)," ").concat(y(-1/r),")")),this._ensureTransformGroup().appendChild(a)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,t){var r=e.width,n=e.height,a=C(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",y(r)),i.setAttributeNS(null,"height",y(n)),this.current.element=i,this.clip("nonzero");var o=this.svgFactory.createElement("svg:image");o.setAttributeNS(x,"xlink:href",a),o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y",y(-n)),o.setAttributeNS(null,"width",y(r)+"px"),o.setAttributeNS(null,"height",y(n)+"px"),o.setAttributeNS(null,"transform","scale(".concat(y(1/r)," ").concat(y(-1/n),")")),t?t.appendChild(o):this._ensureTransformGroup().appendChild(o)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,n=e.height,a=t.fillColor;t.maskId="mask".concat(E++);var i=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);var o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",y(r)),o.setAttributeNS(null,"height",y(n)),o.setAttributeNS(null,"fill",a),o.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(i),this._ensureTransformGroup().appendChild(o),this.paintInlineImageXObject(e,i)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x",t[0]),a.setAttributeNS(null,"y",t[1]),a.setAttributeNS(null,"width",y(r)),a.setAttributeNS(null,"height",y(n)),this.current.element=a,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var t=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;var n=this.svgFactory.createElement("svg:g");return n.setAttributeNS(null,"transform",w(e.transform)),t.appendChild(n),this.svg=n,t}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",w(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=o(r(191)),a=r(1),i=r(209);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function f(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){f(i,n,a,o,s,"next",e)}function s(e){f(i,n,a,o,s,"throw",e)}o(void 0)}))}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r0,"Range chunk size must be larger than zero");var o={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t("Content-Length"),10);if(!Number.isInteger(s))return o;if(o.suggestedLength=s,s<=2*a)return o;if(i||!r)return o;if("bytes"!==t("Accept-Ranges"))return o;var l=t("Content-Encoding")||"identity";return"identity"!==l||(o.allowRangeRequests=!0),o}function o(e){var t=e("Content-Disposition");if(t){var r=(0,a.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(n){}if(/\.pdf$/i.test(r))return r}return null}function s(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)}function l(e){return 200===e||206===e}},function(e,t,r){"use strict";function n(e,t){return o(e)||i(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function i(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}function o(e){if(Array.isArray(e))return e}function s(e){var t=!0,r=s("filename\\*","i").exec(e);if(r){r=r[1];var a=d(r);return a=unescape(a),a=h(a),a=f(a),c(a)}if(r=u(e),r){var i=f(r);return c(i)}if(r=s("filename","i").exec(e),r){r=r[1];var o=d(r);return o=f(o),c(o)}function s(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))return r;try{var n=new TextDecoder(e,{fatal:!0}),a=Array.from(r,(function(e){return 255&e.charCodeAt(0)}));r=n.decode(new Uint8Array(a)),t=!1}catch(i){if(/^utf-?8$/i.test(e))try{r=decodeURIComponent(escape(r)),t=!1}catch(o){}}}return r}function c(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function u(e){var t,r=[],a=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");while(null!==(t=a.exec(e))){var i=t,o=n(i,4),l=o[1],c=o[2],u=o[3];if(l=parseInt(l,10),l in r){if(0===l)break}else r[l]=[c,u]}for(var f=[],p=0;p=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===n.status&&this.isHttp)r.onError&&r.onError(n.status);else{var a=n.status||h,i=a===h&&r.expectedStatus===f;if(i||a===r.expectedStatus){var o=p(n);if(a===f){var s=n.getResponseHeader("Content-Range"),l=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);r.onDone({begin:parseInt(l[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}else r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),v=function(){function e(t){c(this,e),this._source=t,this._manager=new g(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return d(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader),this._fullRequestReader=new m(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new b(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNetworkStream=v;var m=function(){function e(t,r){c(this,e),this._manager=t;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return d(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,i.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),a=n.allowRangeRequests,o=n.suggestedLength;a&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=(0,i.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,r=(0,i.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){var e=l(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),b=function(){function e(t,r,n){c(this,e),this._manager=t;var a={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(r,n,a),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return d(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){var e=l(n["default"].mark((function e(){var t,r;return n["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,a.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=o(r(191)),a=r(1),i=r(209);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){s(i,n,a,o,l,"next",e)}function l(e){s(i,n,a,o,l,"throw",e)}o(void 0)}))}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=r.replace(n,"$1").trim());for(var h=0;h=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===n.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===n.status&&this.isHttp)r.onError&&r.onError(n.status);else{var a=n.status||l,i=a===l&&r.expectedStatus===c;if(i||a===r.expectedStatus){var o=u(n);if(a===c){var s=n.getResponseHeader("Content-Range"),d=/bytes (\d+)-(\d+)\/(\d+)/.exec(s);r.onDone({begin:parseInt(d[1],10),chunk:o})}else o?r.onDone({begin:0,chunk:o}):r.onError&&r.onError(n.status)}else r.onError&&r.onError(n.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}]),e}(),h=function(){function e(t){a(this,e),this._source=t,this._manager=new d(t.url,{httpHeaders:t.httpHeaders,withCredentials:t.withCredentials}),this._rangeChunkSize=t.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return i(e,[{key:"_onRangeRequestReaderClosed",value:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader),this._fullRequestReader=new f(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new p(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeRequestReaders.slice(0);t.forEach((function(t){t.cancel(e)}))}}]),e}();t.PDFNetworkStream=h;var f=function(){function e(t,r){a(this,e),this._manager=t;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=r.url,this._fullRequestId=t.requestFull(n),this._headersReceivedCapability=(0,o.createPromiseCapability)(),this._disableRange=r.disableRange||!1,this._contentLength=r.length,this._rangeChunkSize=r.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return i(e,[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,s.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),a=n.allowRangeRequests,i=n.suggestedLength;a&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){if(e)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,r=(0,s.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,o.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]),e}(),p=function(){function e(t,r,n){a(this,e),this._manager=t;var i={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(r,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return i(e,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(e){var t=e.chunk;if(this._requests.length>0){var r=this._requests.shift();r.resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,o.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},8925:function(e,t,r){var n=r("c6cd"),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),e.exports=n.inspectSource},8962:function(e,t,r){r("e439"),r("5d41");var n=r("9f70");function a(t,r,i){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=a=Reflect.get:e.exports=a=function(e,t,r){var a=n(e,t);if(a){var i=Object.getOwnPropertyDescriptor(a,t);return i.get?i.get.call(r):i.value}},a(t,r,i||t)}e.exports=a},8996:function(e,t,r){var n=r("e841");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("ae064984",n,!0,{sourceMap:!1,shadowMode:!1})},"8a38":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("caad"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("e6cf"),r("ac1f"),r("25f0"),r("2532"),r("5319"),r("841c"),r("1276");var n=r("7037"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var o=r("0496"),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.eventBus,n=t.externalLinkTarget,i=void 0===n?null:n,s=t.externalLinkRel,l=void 0===s?null:s,c=t.externalLinkEnabled,u=void 0===c||c,d=t.ignoreDestinationZoom,h=void 0!==d&&d;a(this,e),this.eventBus=r||(0,o.getGlobalEventBus)(),this.externalLinkTarget=i,this.externalLinkRel=l,this.externalLinkEnabled=u,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return i(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this,r=function r(n){var a,i=n.namedDest,o=n.explicitDest,s=o[0];if(s instanceof Object){if(a=t._cachedPageNumber(s),null===a)return void t.pdfDocument.getPageIndex(s).then((function(e){t.cachePageRef(e+1,s),r({namedDest:i,explicitDest:o})})).catch((function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))}))}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));a=s+1}!a||a<1||a>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(a,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:i,explicitDest:o,pageNumber:a})),t.pdfViewer.scrollPageIntoView({pageNumber:a,destArray:o,ignoreDestinationZoom:t._ignoreDestinationZoom}))};new Promise((function(r,n){"string"!==typeof e?r({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then((function(t){r({namedDest:e,explicitDest:t})}))})).then((function(t){Array.isArray(t.explicitDest)?r(t):console.error('PDFLinkService.navigateTo: "'.concat(t.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))}))}},{key:"getDestinationHash",value:function(e){if("string"===typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,r;if(e.includes("=")){var n=(0,o.parseQueryString)(e);if("search"in n&&this.eventBus.dispatch("findfromurlhash",{source:this,query:n["search"].replace(/"/g,""),phraseSearch:"true"===n["phrase"]}),"nameddest"in n)return void this.navigateTo(n.nameddest);if("page"in n&&(t=0|n.page||1),"zoom"in n){var a=n.zoom.split(","),i=a[0],s=parseFloat(i);i.includes("Fit")?"Fit"===i||"FitB"===i?r=[null,{name:i}]:"FitH"===i||"FitBH"===i||"FitV"===i||"FitBV"===i?r=[null,{name:i},a.length>1?0|a[1]:null]:"FitR"===i?5!==a.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):r=[null,{name:i},0|a[1],0|a[2],0|a[3],0|a[4]]:console.error('PDFLinkService.setHash: "'.concat(i,'" is not ')+"a valid zoom value."):r=[null,{name:"XYZ"},a.length>1?0|a[1]:null,a.length>2?0|a[2]:null,s?s/100:i]}r?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:r,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in n&&this.eventBus.dispatch("pagemode",{source:this,mode:n.pagemode})}else{r=unescape(e);try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch(c){}if("string"===typeof r||l(r))return void this.navigateTo(r);console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break;default:break}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){if(t){var r=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[r]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}();function l(e){if(!Array.isArray(e))return!1;var t=e.length;if(t<2)return!1;var r=e[0];if(("object"!==n(r)||!Number.isInteger(r.num)||!Number.isInteger(r.gen))&&!(Number.isInteger(r)&&r>=0))return!1;var a=e[1];if("object"!==n(a)||"string"!==typeof a.name)return!1;var i=!0;switch(a.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;i=!1;break;default:return!1}for(var o=2;o1?arguments[1]:void 0,n=i(t.length),a=void 0===r?n:d(i(r),n),l=String(e);return u?u.call(t,l,a):t.slice(a-l.length,a)===l}})},"8aa5":function(e,t,r){"use strict";var n=r("6547").charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},"8aa7":function(e,t,r){var n=r("da84"),a=r("d039"),i=r("1c7e"),o=r("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;e.exports=!o||!a((function(){l(1)}))||!a((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||a((function(){return 1!==new l(new s(2),1,void 0).length}))},"8b09":function(e,t,r){var n=r("74e8");n("Int16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},"8ba4":function(e,t,r){var n=r("23e7"),a=r("5e89");n({target:"Number",stat:!0},{isInteger:a})},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},9:function(e,t){},9082:function(e,t,r){var n=r("24fb"),a=r("1de5"),i=r("c2aa"),o=r("bdc3"),s=r("1db6"),l=r("2242"),c=r("7637"),u=r("4519"),d=r("50ba"),h=r("6d96");t=n(!1);var f=a(i),p=a(o),g=a(s),v=a(l),m=a(c),b=a(u),y=a(d),w=a(h);t.push([e.i,'.pdf-app .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}.pdf-app .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}.pdf-app .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}.pdf-app .textLayer .highlight.begin{border-radius:4px 0 0 4px}.pdf-app .textLayer .highlight.end{border-radius:0 4px 4px 0}.pdf-app .textLayer .highlight.middle{border-radius:0}.pdf-app .textLayer .highlight.selected{background-color:#006400}.pdf-app .textLayer ::-moz-selection{background:#00f}.pdf-app .textLayer ::selection{background:#00f}.pdf-app .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app .textLayer .endOfContent.active{top:0}.pdf-app .annotationLayer section{position:absolute}.pdf-app .annotationLayer .buttonWidgetAnnotation.pushButton>a,.pdf-app .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.pdf-app .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover,.pdf-app .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.pdf-app .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input,.pdf-app .annotationLayer .choiceWidgetAnnotation select,.pdf-app .annotationLayer .textWidgetAnnotation input,.pdf-app .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}.pdf-app .annotationLayer .choiceWidgetAnnotation select option{padding:0}.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.pdf-app .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled],.pdf-app .annotationLayer .choiceWidgetAnnotation select[disabled],.pdf-app .annotationLayer .textWidgetAnnotation input[disabled],.pdf-app .annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:hover,.pdf-app .annotationLayer .choiceWidgetAnnotation select:hover,.pdf-app .annotationLayer .textWidgetAnnotation input:hover,.pdf-app .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}.pdf-app .annotationLayer .choiceWidgetAnnotation select:focus,.pdf-app .annotationLayer .textWidgetAnnotation input:focus,.pdf-app .annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.pdf-app .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.pdf-app .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}.pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input,.pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}.pdf-app .annotationLayer .popupWrapper{position:absolute;width:20em}.pdf-app .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}.pdf-app .annotationLayer .popup>*{font-size:9px}.pdf-app .annotationLayer .popup h1{display:inline-block}.pdf-app .annotationLayer .popup span{display:inline-block;margin-left:5px}.pdf-app .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}.pdf-app .annotationLayer .caretAnnotation,.pdf-app .annotationLayer .circleAnnotation svg ellipse,.pdf-app .annotationLayer .fileAttachmentAnnotation,.pdf-app .annotationLayer .freeTextAnnotation,.pdf-app .annotationLayer .highlightAnnotation,.pdf-app .annotationLayer .inkAnnotation svg polyline,.pdf-app .annotationLayer .lineAnnotation svg line,.pdf-app .annotationLayer .polygonAnnotation svg polygon,.pdf-app .annotationLayer .polylineAnnotation svg polyline,.pdf-app .annotationLayer .squareAnnotation svg rect,.pdf-app .annotationLayer .squigglyAnnotation,.pdf-app .annotationLayer .stampAnnotation,.pdf-app .annotationLayer .strikeoutAnnotation,.pdf-app .annotationLayer .underlineAnnotation{cursor:pointer}.pdf-app .pdfViewer .canvasWrapper{overflow:hidden}.pdf-app .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px auto;position:relative;overflow:visible;border:9px solid transparent;background-clip:content-box;-o-border-image:url('+f+") 9 9 repeat;border-image:url("+f+") 9 9 repeat;background-color:#fff}.pdf-app .pdfViewer.removePageBorders .page{margin:0 auto 10px auto;border:none}.pdf-app .pdfViewer.singlePageView{display:inline-block}.pdf-app .pdfViewer.singlePageView .page{margin:0;border:none}.pdf-app .pdfViewer.scrollHorizontal,.pdf-app .pdfViewer.scrollWrapped,.pdf-app .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}.pdf-app .pdfViewer.scrollHorizontal,.pdf-app .spread{white-space:nowrap}.pdf-app .pdfViewer.removePageBorders,.pdf-app .pdfViewer.scrollHorizontal .spread,.pdf-app .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}.pdf-app .pdfViewer.scrollHorizontal .page,.pdf-app .pdfViewer.scrollHorizontal .spread,.pdf-app .pdfViewer.scrollWrapped .page,.pdf-app .pdfViewer.scrollWrapped .spread,.pdf-app .spread .page{display:inline-block;vertical-align:middle}.pdf-app .pdfViewer.scrollHorizontal .page,.pdf-app .pdfViewer.scrollWrapped .page,.pdf-app .spread .page{margin-left:-3.5px;margin-right:-3.5px}.pdf-app .pdfViewer.removePageBorders.scrollHorizontal .page,.pdf-app .pdfViewer.removePageBorders.scrollWrapped .page,.pdf-app .pdfViewer.removePageBorders .spread .page{margin-left:5px;margin-right:5px}.pdf-app .pdfViewer .page canvas{margin:0;display:block}.pdf-app .pdfViewer .page canvas[hidden]{display:none}.pdf-app .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url("+p+") 50% no-repeat}.pdf-app .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}.pdf-app .pdfPresentationMode .pdfViewer .page,.pdf-app .pdfPresentationMode .pdfViewer .spread{display:block}.pdf-app .pdfPresentationMode .pdfViewer .page,.pdf-app .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}.pdf-app .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}.pdf-app .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}.pdf-app .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}.pdf-app.dark{--pdf-app-background-color:#1d2636;--pdf-sidebar-content-color:rgba(36,54,78,0.5);--pdf-toolbar-sidebar-color:#24364e;--pdf-toolbar-color:#24364e;--pdf-loading-bar-color:#606c88;--pdf-loading-bar-secondary-color:#11ece5;--pdf-find-results-count-color:#d9d9d9;--pdf-find-results-count-font-color:#525252;--pdf-find-message-font-color:#a6b7d0;--pdf-not-found-color:#f66;--pdf-split-toolbar-button-separator-color:#fff;--pdf-toolbar-font-color:#d9d9d9;--pdf-button-hover-font-color:#11ece5;--pdf-button-toggled-color:#606c88;--pdf-horizontal-toolbar-separator-color:#fff;--pdf-input-color:#606c88;--pdf-input-font-color:#d9d9d9;--pdf-find-input-placeholder-font-color:#11ece5;--pdf-thumbnail-selection-ring-color:hsla(0,0%,100%,0.15);--pdf-thumbnail-selection-ring-selected-color:hsla(0,0%,100%,0.3);--pdf-error-wrapper-color:#f55;--pdf-error-more-info-color:#d9d9d9;--pdf-error-more-info-font-color:#000;--pdf-overlay-container-color:rgba(0,0,0,0.2);--pdf-overlay-container-dialog-color:#24364e;--pdf-overlay-container-dialog-font-color:#d9d9d9;--pdf-overlay-container-dialog-separator-color:#fff;--pdf-dialog-button-font-color:#d9d9d9;--pdf-dialog-button-color:#606c88}.pdf-app.light{--pdf-app-background-color:rgba(108,117,125,0.3);--pdf-sidebar-content-color:rgba(108,117,125,0.4);--pdf-toolbar-sidebar-color:rgba(108,117,125,0.7);--pdf-toolbar-color:#6c757d;--pdf-loading-bar-color:#3f4b5b;--pdf-loading-bar-secondary-color:#8dd0ff;--pdf-find-results-count-color:#3f4b5b;--pdf-find-results-count-font-color:hsla(0,0%,100%,0.87);--pdf-find-message-font-color:hsla(0,0%,100%,0.87);--pdf-not-found-color:brown;--pdf-split-toolbar-button-separator-color:#000;--pdf-toolbar-font-color:hsla(0,0%,100%,0.87);--pdf-button-hover-font-color:#8dd0ff;--pdf-button-toggled-color:#3f4b5b;--pdf-horizontal-toolbar-separator-color:#000;--pdf-input-color:#3f4b5b;--pdf-input-font-color:#d9d9d9;--pdf-find-input-placeholder-font-color:#8dd0ff;--pdf-thumbnail-selection-ring-color:rgba(108,117,125,0.7);--pdf-thumbnail-selection-ring-selected-color:#3f4b5b;--pdf-error-wrapper-color:#f55;--pdf-error-more-info-color:#d9d9d9;--pdf-error-more-info-font-color:#000;--pdf-overlay-container-color:rgba(108,117,125,0.7);--pdf-overlay-container-dialog-color:#6c757d;--pdf-overlay-container-dialog-font-color:#d9d9d9;--pdf-overlay-container-dialog-separator-color:#000;--pdf-dialog-button-font-color:#d9d9d9;--pdf-dialog-button-color:#3f4b5b}.pdf-app{background-color:#1d2636}.pdf-app #sidebarContent{background-color:rgba(36,54,78,.5)}.pdf-app #toolbarContainer,.pdf-app #toolbarSidebar,.pdf-app .findbar,.pdf-app .secondaryToolbar{background-color:#24364e}.pdf-app #loadingBar .progress{background-color:#606c88}.pdf-app #loadingBar .progress.indeterminate .glimmer{background:repeating-linear-gradient(135deg,transparent,#11ece5 5px,#11ece5 45px,transparent 55px,transparent 95px,transparent 100px)}.pdf-app #findInput::-moz-placeholder{color:#11ece5}.pdf-app #findInput:-ms-input-placeholder{color:#11ece5}.pdf-app #findInput::placeholder{color:#11ece5}.pdf-app .doorHanger:after,.pdf-app .doorHangerRight:after{border-bottom-color:#24364e}.pdf-app #findResultsCount{background-color:#d9d9d9;color:#525252}.pdf-app #findMsg{color:#a6b7d0}.pdf-app #findInput.notFound{background-color:#f66}.pdf-app .splitToolbarButtonSeparator{background-color:#fff}.pdf-app .dropdownToolbarButton,.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton,.vue-pdf-app-icon{color:#d9d9d9}.pdf-app .dialog .overlayButton{background-color:#606c88;color:#d9d9d9}.pdf-app .dropdownToolbarButton:hover,.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton:focus,.pdf-app .secondaryToolbarButton:hover,.pdf-app .toolbarButton:focus,.pdf-app .toolbarButton:hover,.vue-pdf-app-icon:hover{color:#11ece5}.pdf-app .dropdownToolbarButton>select{color:#d9d9d9;background:#24364e}.pdf-app .dropdownToolbarButton>select>option{background:#24364e}.pdf-app .horizontalToolbarSeparator,.pdf-app .verticalToolbarSeparator{background-color:#fff}.pdf-app .toolbarField{background-color:#606c88;color:#d9d9d9}.pdf-app .toolbarLabel{color:#d9d9d9}.pdf-app .thumbnail:hover>.thumbnailSelectionRing,.pdf-app a:focus>.thumbnail>.thumbnailSelectionRing{background-color:hsla(0,0%,100%,.15)}.pdf-app .thumbnail.selected>.thumbnailSelectionRing{background-color:hsla(0,0%,100%,.3)}.pdf-app .attachmentsItem>button,.pdf-app .outlineItem>a{color:#d9d9d9}.pdf-app .attachmentsItem>button:hover,.pdf-app .outlineItem>a:hover,.pdf-app .outlineItemToggler:hover,.pdf-app .outlineItemToggler:hover+a,.pdf-app .outlineItemToggler:hover~.outlineItems{background-color:#606c88}.pdf-app #errorWrapper{background-color:#f55}.pdf-app #errorMoreInfo{background-color:#d9d9d9;color:#000}.pdf-app #overlayContainer{background-color:rgba(0,0,0,.2)}.pdf-app #overlayContainer>.container>.dialog{background-color:#24364e;color:#d9d9d9}.pdf-app .dialog .separator{background-color:#fff}.pdf-app .secondaryToolbarButton.toggled,.pdf-app .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app .toolbarButton.toggled{background-color:#606c88}.pdf-app.light{background-color:rgba(108,117,125,.3)}.pdf-app.light #sidebarContent{background-color:rgba(108,117,125,.4)}.pdf-app.light #toolbarSidebar{background-color:rgba(108,117,125,.7)}.pdf-app.light #toolbarContainer,.pdf-app.light .findbar,.pdf-app.light .secondaryToolbar{background-color:#6c757d}.pdf-app.light #loadingBar .progress{background-color:#3f4b5b}.pdf-app.light #loadingBar .progress.indeterminate .glimmer{background:repeating-linear-gradient(135deg,transparent,#8dd0ff 5px,#8dd0ff 45px,transparent 55px,transparent 95px,transparent 100px)}.pdf-app.light #findInput::-moz-placeholder{color:#8dd0ff}.pdf-app.light #findInput:-ms-input-placeholder{color:#8dd0ff}.pdf-app.light #findInput::placeholder{color:#8dd0ff}.pdf-app.light .doorHanger:after,.pdf-app.light .doorHangerRight:after{border-bottom-color:#6c757d}.pdf-app.light #findResultsCount{background-color:#3f4b5b;color:hsla(0,0%,100%,.87)}.pdf-app.light #findMsg{color:hsla(0,0%,100%,.87)}.pdf-app.light #findInput.notFound{background-color:brown}.pdf-app.light .splitToolbarButtonSeparator{background-color:#000}.light .vue-pdf-app-icon,.pdf-app.light .dropdownToolbarButton,.pdf-app.light .overlayButton,.pdf-app.light .secondaryToolbarButton,.pdf-app.light .toolbarButton{color:hsla(0,0%,100%,.87)}.pdf-app.light .dialog .overlayButton{background-color:#3f4b5b;color:#d9d9d9}.light .vue-pdf-app-icon:hover,.pdf-app.light .dropdownToolbarButton:hover,.pdf-app.light .overlayButton,.pdf-app.light .secondaryToolbarButton:focus,.pdf-app.light .secondaryToolbarButton:hover,.pdf-app.light .toolbarButton:focus,.pdf-app.light .toolbarButton:hover{color:#8dd0ff}.pdf-app.light .dropdownToolbarButton>select{color:hsla(0,0%,100%,.87);background:#6c757d}.pdf-app.light .dropdownToolbarButton>select>option{background:#6c757d}.pdf-app.light .horizontalToolbarSeparator,.pdf-app.light .verticalToolbarSeparator{background-color:#000}.pdf-app.light .toolbarField{background-color:#3f4b5b;color:#d9d9d9}.pdf-app.light .toolbarLabel{color:hsla(0,0%,100%,.87)}.pdf-app.light .thumbnail:hover>.thumbnailSelectionRing,.pdf-app.light a:focus>.thumbnail>.thumbnailSelectionRing{background-color:rgba(108,117,125,.7)}.pdf-app.light .thumbnail.selected>.thumbnailSelectionRing{background-color:#3f4b5b}.pdf-app.light .attachmentsItem>button,.pdf-app.light .outlineItem>a{color:hsla(0,0%,100%,.87)}.pdf-app.light .attachmentsItem>button:hover,.pdf-app.light .outlineItem>a:hover,.pdf-app.light .outlineItemToggler:hover,.pdf-app.light .outlineItemToggler:hover+a,.pdf-app.light .outlineItemToggler:hover~.outlineItems{background-color:#3f4b5b}.pdf-app.light #errorWrapper{background-color:#f55}.pdf-app.light #errorMoreInfo{background-color:#d9d9d9;color:#000}.pdf-app.light #overlayContainer{background-color:rgba(108,117,125,.7)}.pdf-app.light #overlayContainer>.container>.dialog{background-color:#6c757d;color:#d9d9d9}.pdf-app.light .dialog .separator{background-color:#000}.pdf-app.light .secondaryToolbarButton.toggled,.pdf-app.light .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app.light .toolbarButton.toggled{background-color:#3f4b5b}.pdf-app[class]{background-color:var(--pdf-app-background-color)}.pdf-app[class] #sidebarContent{background-color:var(--pdf-sidebar-content-color)}.pdf-app[class] #toolbarSidebar{background-color:var(--pdf-toolbar-sidebar-color)}.pdf-app[class] #toolbarContainer,.pdf-app[class] .findbar,.pdf-app[class] .secondaryToolbar{background-color:var(--pdf-toolbar-color)}.pdf-app[class] #loadingBar .progress{background-color:var(--pdf-loading-bar-color)}.pdf-app[class] #loadingBar .progress.indeterminate .glimmer{background:repeating-linear-gradient(135deg,transparent,var(--pdf-loading-bar-secondary-color) 5px,var(--pdf-loading-bar-secondary-color) 45px,transparent 55px,transparent 95px,transparent 100px)}.pdf-app[class] #findInput::-moz-placeholder{color:var(--pdf-find-input-placeholder-font-color)}.pdf-app[class] #findInput:-ms-input-placeholder{color:var(--pdf-find-input-placeholder-font-color)}.pdf-app[class] #findInput::placeholder{color:var(--pdf-find-input-placeholder-font-color)}.pdf-app[class] .doorHanger:after,.pdf-app[class] .doorHangerRight:after{border-bottom-color:var(--pdf-toolbar-color)}.pdf-app[class] #findResultsCount{background-color:var(--pdf-find-results-count-color);color:var(--pdf-find-results-count-font-color)}.pdf-app[class] #findMsg{color:var(--pdf-find-message-font-color)}.pdf-app[class] #findInput.notFound{background-color:var(--pdf-not-found-color)}.pdf-app[class] .splitToolbarButtonSeparator{background-color:var(--pdf-split-toolbar-button-separator-color)}.pdf-app[class] .dropdownToolbarButton,.pdf-app[class] .overlayButton,.pdf-app[class] .secondaryToolbarButton,.pdf-app[class] .toolbarButton{color:var(--pdf-toolbar-font-color)}.vue-pdf-app-icon[class]{color:var(--pdf-toolbar-font-color)}.pdf-app[class] .dialog .overlayButton{background-color:var(--pdf-dialog-button-color);color:var(--pdf-dialog-button-font-color)}.pdf-app[class] .dropdownToolbarButton:hover,.pdf-app[class] .overlayButton,.pdf-app[class] .secondaryToolbarButton:focus,.pdf-app[class] .secondaryToolbarButton:hover,.pdf-app[class] .toolbarButton:focus,.pdf-app[class] .toolbarButton:hover,.vue-pdf-app-icon:hover[class]{color:var(--pdf-button-hover-font-color)}.pdf-app[class] .dropdownToolbarButton>select{color:var(--pdf-toolbar-font-color);background:var(--pdf-toolbar-color)}.pdf-app[class] .dropdownToolbarButton>select>option{background:var(--pdf-toolbar-color)}.pdf-app[class] .verticalToolbarSeparator{background-color:var(--pdf-split-toolbar-button-separator-color)}.pdf-app[class] .horizontalToolbarSeparator{background-color:var(--pdf-horizontal-toolbar-separator-color)}.pdf-app[class] .toolbarField{background-color:var(--pdf-input-color);color:var(--pdf-input-font-color)}.pdf-app[class] .toolbarLabel{color:var(--pdf-toolbar-font-color)}.pdf-app[class] .thumbnail:hover>.thumbnailSelectionRing,.pdf-app[class] a:focus>.thumbnail>.thumbnailSelectionRing{background-color:var(--pdf-thumbnail-selection-ring-color)}.pdf-app[class] .thumbnail.selected>.thumbnailSelectionRing{background-color:var(--pdf-thumbnail-selection-ring-selected-color)}.pdf-app[class] .attachmentsItem>button,.pdf-app[class] .outlineItem>a{color:var(--pdf-toolbar-font-color)}.pdf-app[class] .attachmentsItem>button:hover,.pdf-app[class] .outlineItem>a:hover,.pdf-app[class] .outlineItemToggler:hover,.pdf-app[class] .outlineItemToggler:hover+a,.pdf-app[class] .outlineItemToggler:hover~.outlineItems{background-color:var(--pdf-button-toggled-color)}.pdf-app[class] #errorWrapper{background-color:var(--pdf-error-wrapper-color)}.pdf-app[class] #errorMoreInfo{background-color:var(--pdf-error-more-info-color);color:var(--pdf-error-more-info-font-color)}.pdf-app[class] #overlayContainer{background-color:var(--pdf-overlay-container-color)}.pdf-app[class] #overlayContainer>.container>.dialog{background-color:var(--pdf-overlay-container-dialog-color);color:var(--pdf-overlay-container-dialog-font-color)}.pdf-app[class] .dialog .separator{background-color:var(--pdf-overlay-container-dialog-separator-color)}.pdf-app[class] .secondaryToolbarButton.toggled,.pdf-app[class] .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app[class] .toolbarButton.toggled{background-color:var(--pdf-button-toggled-color)}:root{--sidebar-width:200px;--sidebar-transition-duration:200ms;--sidebar-transition-timing-function:ease}.pdf-app{height:100%;overflow-x:hidden}.pdf-app *{padding:0;margin:0}.pdf-app #secondaryToolbar button,.pdf-app #sidebarContainer button,.pdf-app #toolbarContainer button{cursor:pointer}.pdf-app #sidebarContainer button[disabled]{cursor:no-drop}.pdf-app #viewBookmark{cursor:pointer}.pdf-app button,.pdf-app input,.pdf-app select{font:message-box;outline:none}.pdf-app .hidden,.pdf-app [hidden]{display:none!important}.pdf-app .pdfViewer.enablePermissions .textLayer>span{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important;cursor:not-allowed}.pdf-app #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0!important;overflow:hidden!important}.pdf-app #viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop{background-color:#000}.pdf-app #viewerContainer.pdfPresentationMode:-webkit-full-screen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;user-select:none}.pdf-app #viewerContainer.pdfPresentationMode:-ms-fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-ms-user-select:none;user-select:none}.pdf-app #viewerContainer.pdfPresentationMode:fullscreen{top:0;border-top:2px solid transparent;background-color:#000;width:100%;height:100%;overflow:hidden;cursor:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app .pdfPresentationMode:-webkit-full-screen a:not(.internalLink){display:none}.pdf-app .pdfPresentationMode:-ms-fullscreen a:not(.internalLink){display:none}.pdf-app .pdfPresentationMode:fullscreen a:not(.internalLink){display:none}.pdf-app .pdfPresentationMode:-webkit-full-screen .textLayer>span{cursor:none}.pdf-app .pdfPresentationMode:-ms-fullscreen .textLayer>span{cursor:none}.pdf-app .pdfPresentationMode:fullscreen .textLayer>span{cursor:none}.pdf-app .pdfPresentationMode.pdfPresentationModeControls .textLayer>span,.pdf-app .pdfPresentationMode.pdfPresentationModeControls>*{cursor:default}.pdf-app #outerContainer{width:100%;height:100%;position:relative}.pdf-app #sidebarContainer{position:absolute;top:32px;bottom:0;width:200px;width:var(--sidebar-width);visibility:hidden;z-index:100;transition-duration:.2s;transition-duration:var(--sidebar-transition-duration);transition-timing-function:ease;transition-timing-function:var(--sidebar-transition-timing-function)}html[dir=ltr] .pdf-app #sidebarContainer{transition-property:left;left:-200px;left:calc(0px - var(--sidebar-width))}html[dir=rtl] .pdf-app #sidebarContainer{transition-property:right;right:-200px;right:calc(0px - var(--sidebar-width))}.loadingInProgress #sidebarContainer{top:4px}.pdf-app #outerContainer.sidebarResizing #sidebarContainer{transition-duration:0s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app #outerContainer.sidebarMoving #sidebarContainer,.pdf-app #outerContainer.sidebarOpen #sidebarContainer{visibility:visible}html[dir=ltr] .pdf-app #outerContainer.sidebarOpen #sidebarContainer{left:0}html[dir=rtl] .pdf-app #outerContainer.sidebarOpen #sidebarContainer{right:0}.pdf-app #mainContainer{position:absolute;top:0;right:0;bottom:0;left:0}.pdf-app #sidebarContent{top:32px;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;width:100%}html[dir=ltr] .pdf-app #sidebarContent{left:0;box-shadow:inset -1px 0 0 rgba(0,0,0,.25)}html[dir=rtl] .pdf-app #sidebarContent{right:0;box-shadow:inset 1px 0 0 rgba(0,0,0,.25)}.pdf-app #viewerContainer{overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;top:32px;right:0;bottom:0;left:0;outline:none}.pdf-app #viewerContainer:not(.pdfPresentationMode){transition-duration:.2s;transition-duration:var(--sidebar-transition-duration);transition-timing-function:ease;transition-timing-function:var(--sidebar-transition-timing-function)}html[dir=ltr] .pdf-app #viewerContainer{box-shadow:inset 1px 0 0 hsla(0,0%,100%,.05)}html[dir=rtl] .pdf-app #viewerContainer{box-shadow:inset -1px 0 0 hsla(0,0%,100%,.05)}.pdf-app #outerContainer.sidebarResizing #viewerContainer{transition-duration:0s}html[dir=ltr] .pdf-app #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:left;left:200px;left:var(--sidebar-width)}html[dir=rtl] .pdf-app #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode){transition-property:right;right:200px;right:var(--sidebar-width)}.pdf-app .toolbar{position:relative;left:0;right:0;z-index:9999;cursor:default}.pdf-app #toolbarContainer{width:100%}.pdf-app #toolbarSidebar{width:100%;height:32px}html[dir=ltr] .pdf-app #toolbarSidebar{box-shadow:inset -1px 0 0 rgba(0,0,0,.25),inset 0 -1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 0 1px rgba(0,0,0,.1)}html[dir=rtl] .pdf-app #toolbarSidebar{box-shadow:inset 1px 0 0 rgba(0,0,0,.25),inset 0 1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 0 1px rgba(0,0,0,.1)}.pdf-app #sidebarResizer{position:absolute;top:0;bottom:0;width:6px;z-index:200;cursor:ew-resize}html[dir=ltr] .pdf-app #sidebarResizer{right:-6px}html[dir=rtl] .pdf-app #sidebarResizer{left:-6px}.pdf-app #toolbarContainer,.pdf-app .findbar,.pdf-app .secondaryToolbar{position:relative;height:32px}.pdf-app .findbar,.pdf-app .secondaryToolbar,html[dir=ltr] .pdf-app #toolbarContainer{box-shadow:inset 0 1px 1px rgba(0,0,0,.15),inset 0 -1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1)}.pdf-app .findbar,.pdf-app .secondaryToolbar,html[dir=rtl] .pdf-app #toolbarContainer{box-shadow:inset 0 1px 1px rgba(0,0,0,.15),inset 0 -1px 0 hsla(0,0%,100%,.05),0 1px 0 rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1)}.pdf-app #toolbarViewer{height:32px}.pdf-app #loadingBar{position:relative;width:100%;height:4px}.pdf-app #loadingBar .progress{position:absolute;top:0;left:0;width:0;height:100%;overflow:hidden;transition:width .2s}@-webkit-keyframes progressIndeterminate{0%{left:-142px}to{left:0}}@keyframes progressIndeterminate{0%{left:-142px}to{left:0}}.pdf-app #loadingBar .progress.indeterminate .glimmer{position:absolute;top:0;left:0;height:100%;width:calc(100% + 150px);-webkit-animation:progressIndeterminate .95s linear infinite;animation:progressIndeterminate .95s linear infinite}.pdf-app .findbar,.pdf-app .secondaryToolbar{top:32px;position:absolute;z-index:10000;height:auto;min-width:16px;padding:0 6px 0 6px;margin:4px 2px 4px 2px;font-size:12px;line-height:14px;text-align:left;cursor:default}.pdf-app .findbar{min-width:300px}.pdf-app .findbar>div{height:32px}.pdf-app .findbar.wrapContainers>div{clear:both}.pdf-app .findbar.wrapContainers>div#findbarMessageContainer{height:auto}html[dir=ltr] .pdf-app .findbar{left:68px}html[dir=rtl] .pdf-app .findbar{right:68px}.pdf-app .findbar label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app #findInput{width:200px}.pdf-app #findInput::-moz-placeholder{font-style:italic}.pdf-app #findInput:-ms-input-placeholder{font-style:italic}.pdf-app #findInput::placeholder{font-style:italic}.pdf-app #findInput[data-status=pending]{background-size:16px;background-image:url("+p+');background-repeat:no-repeat;background-position:100%}html[dir=rtl] .pdf-app #findInput[data-status=pending]{background-position:0}.pdf-app .secondaryToolbar{padding:6px;height:auto;z-index:30000}html[dir=ltr] .pdf-app .secondaryToolbar{right:4px}html[dir=rtl] .pdf-app .secondaryToolbar{left:4px}.pdf-app #secondaryToolbarButtonContainer{max-width:200px;max-height:400px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-bottom:-4px}.pdf-app #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,.pdf-app #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons{display:none!important}.pdf-app .doorHanger,.pdf-app .doorHangerRight{border:1px solid rgba(0,0,0,.5);border-radius:2px;box-shadow:0 1px 4px rgba(0,0,0,.3)}.pdf-app .doorHanger:after,.pdf-app .doorHanger:before,.pdf-app .doorHangerRight:after,.pdf-app .doorHangerRight:before{bottom:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.pdf-app .doorHanger:after,.pdf-app .doorHangerRight:after{border-width:8px}.pdf-app .doorHanger:before,.pdf-app .doorHangerRight:before{border-bottom-color:rgba(0,0,0,.5);border-width:9px}html[dir=ltr] .pdf-app .doorHanger:after,html[dir=rtl] .pdf-app .doorHangerRight:after{left:13px;margin-left:-8px}html[dir=ltr] .pdf-app .doorHanger:before,html[dir=rtl] .pdf-app .doorHangerRight:before{left:13px;margin-left:-9px}html[dir=ltr] .pdf-app .doorHangerRight:after,html[dir=rtl] .pdf-app .doorHanger:after{right:13px;margin-right:-8px}html[dir=ltr] .pdf-app .doorHangerRight:before,html[dir=rtl] .pdf-app .doorHanger:before{right:13px;margin-right:-9px}.pdf-app #findResultsCount{text-align:center;padding:3px 4px}.pdf-app #findMsg{font-style:italic}.pdf-app #findMsg:empty{display:none}.pdf-app #toolbarViewerMiddle{position:absolute;left:50%;transform:translateX(-50%)}html[dir=ltr] .pdf-app #toolbarViewerLeft,html[dir=rtl] .pdf-app #toolbarViewerRight{float:left}html[dir=ltr] .pdf-app #toolbarViewerRight,html[dir=rtl] .pdf-app #toolbarViewerLeft{float:right}html[dir=ltr] .pdf-app #toolbarViewerLeft>*,html[dir=ltr] .pdf-app #toolbarViewerMiddle>*,html[dir=ltr] .pdf-app #toolbarViewerRight>*,html[dir=ltr] .pdf-app .findbar *{position:relative;float:left}html[dir=rtl] .pdf-app #toolbarViewerLeft>*,html[dir=rtl] .pdf-app #toolbarViewerMiddle>*,html[dir=rtl] .pdf-app #toolbarViewerRight>*,html[dir=rtl] .pdf-app .findbar *{position:relative;float:right}html[dir=ltr] .pdf-app .splitToolbarButton{margin:3px 2px 4px 0;display:inline-block}html[dir=rtl] .pdf-app .splitToolbarButton{margin:3px 0 4px 2px;display:inline-block}html[dir=ltr] .pdf-app .splitToolbarButton>.toolbarButton{border-radius:0;float:left}html[dir=rtl] .pdf-app .splitToolbarButton>.toolbarButton{border-radius:0;float:right}.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton,.vue-pdf-app-icon{border:0 none;background:none}.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton{width:32px;height:25px}.pdf-app .toolbarButton>span{display:inline-block;width:0;height:0;overflow:hidden}.pdf-app .overlayButton[disabled],.pdf-app .secondaryToolbarButton[disabled],.pdf-app .toolbarButton[disabled]{opacity:.5}.pdf-app .splitToolbarButton.toggled .toolbarButton{margin:0}.pdf-app .splitToolbarButton>.toolbarButton{position:relative}html[dir=ltr] .pdf-app .splitToolbarButton>.toolbarButton:first-child,html[dir=rtl] .pdf-app .splitToolbarButton>.toolbarButton:last-child{position:relative;margin:0;margin-right:-1px;border-top-left-radius:2px;border-bottom-left-radius:2px;border-right-color:transparent}html[dir=ltr] .pdf-app .splitToolbarButton>.toolbarButton:last-child,html[dir=rtl] .pdf-app .splitToolbarButton>.toolbarButton:first-child{position:relative;margin:0;margin-left:-1px;border-top-right-radius:2px;border-bottom-right-radius:2px;border-left-color:transparent}.pdf-app .splitToolbarButtonSeparator{padding:8px 0;width:1px;z-index:99;display:inline-block;margin:5px 0}html[dir=ltr] .pdf-app .splitToolbarButtonSeparator{float:left}html[dir=rtl] .pdf-app .splitToolbarButtonSeparator{float:right}.pdf-app .splitToolbarButton.toggled>.splitToolbarButtonSeparator,.pdf-app .splitToolbarButton:hover>.splitToolbarButtonSeparator{padding:12px 0;margin:1px 0}.pdf-app .dropdownToolbarButton,.pdf-app .overlayButton,.pdf-app .secondaryToolbarButton,.pdf-app .toolbarButton{min-width:16px;padding:2px 6px 0;font-size:12px;line-height:14px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.pdf-app .findbar .toolbarButton,.vue-pdf-app-icon{cursor:pointer}.pdf-app .dialog .overlayButton{cursor:pointer;border-radius:2px}html[dir=ltr] .pdf-app .dropdownToolbarButton,html[dir=ltr] .pdf-app .overlayButton,html[dir=ltr] .pdf-app .toolbarButton{margin:3px 2px 4px 0}html[dir=rtl] .pdf-app .dropdownToolbarButton,html[dir=rtl] .pdf-app .overlayButton,html[dir=rtl] .pdf-app .toolbarButton{margin:3px 0 4px 2px}.pdf-app .dropdownToolbarButton select:hover{cursor:pointer}.pdf-app .secondaryToolbarButton.toggled,.pdf-app .splitToolbarButton.toggled>.toolbarButton.toggled,.pdf-app .toolbarButton.toggled{border-radius:3px}.pdf-app .dropdownToolbarButton{width:140px;padding:0;overflow:hidden}.pdf-app .dropdownToolbarButton:after{position:absolute;display:inline-block;top:6px}html[dir=ltr] .pdf-app .dropdownToolbarButton:after{right:0}html[dir=rtl] .pdf-app .dropdownToolbarButton:after{left:0}.pdf-app .dropdownToolbarButton>select{width:162px;height:23px;font-size:12px;margin:0;padding:3px 2px 2px;border:none}.pdf-app #customScaleOption{display:none}.pdf-app .toolbarButtonSpacer{width:30px;display:inline-block;height:1px}.pdf-app .secondaryToolbarButton.bookmark,.pdf-app .toolbarButton.bookmark{box-sizing:border-box;outline:none;padding-top:4px;text-decoration:none}.pdf-app .secondaryToolbarButton.bookmark{padding-top:5px}.pdf-app .bookmark[href="#"]{opacity:.5;pointer-events:none}.pdf-app .toolbarButton.pdfSidebarNotification:after{position:absolute;display:inline-block;top:1px;content:"";background-color:#70db55;height:9px;width:9px;border-radius:50%}html[dir=ltr] .pdf-app .toolbarButton.pdfSidebarNotification:after{left:17px}html[dir=rtl] .pdf-app .toolbarButton.pdfSidebarNotification:after{right:17px}.pdf-app .secondaryToolbarButton{position:relative;margin:0 0 4px 0;padding:3px 0 1px 0;height:auto;min-height:25px;width:auto;min-width:100%;white-space:normal}.pdf-app .secondaryToolbarButton>span{vertical-align:top}html[dir=ltr] .pdf-app .secondaryToolbarButton{padding-left:14px;text-align:left}html[dir=rtl] .pdf-app .secondaryToolbarButton{padding-right:14px;text-align:right}html[dir=ltr] .pdf-app .secondaryToolbarButton>span{padding-left:8px}html[dir=rtl] .pdf-app .secondaryToolbarButton>span{padding-right:8px}html[dir=rtl] .pdf-app .secondaryToolbarButton:before{float:right}.pdf-app .verticalToolbarSeparator{display:block;padding:8px 0;margin:8px 4px;width:1px}html[dir=ltr] .pdf-app .verticalToolbarSeparator{margin-left:2px}html[dir=rtl] .pdf-app .verticalToolbarSeparator{margin-right:2px}.pdf-app .horizontalToolbarSeparator{display:block;margin:0 0 4px 0;height:1px;width:100%}.pdf-app .toolbarField{padding:3px 6px;margin:4px 0 4px 0;border-radius:2px;border-width:1px;border-style:solid;border-color:rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);font-size:12px;line-height:14px;outline-style:none}.pdf-app .toolbarField[type=checkbox]{display:inline-block;margin:8px 0;cursor:pointer}.pdf-app .toolbarField[type=checkbox]+label{cursor:pointer}.pdf-app .toolbarField.pageNumber{-moz-appearance:textfield;min-width:16px;text-align:right;width:40px}.pdf-app .toolbarField.pageNumber.visiblePageIsLoading{background-image:url('+p+");background-repeat:no-repeat;background-position:1px;background-size:16px}.pdf-app .toolbarField.pageNumber::-webkit-inner-spin-button,.pdf-app .toolbarField.pageNumber::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pdf-app .toolbarLabel{min-width:16px;padding:3px 6px 3px 2px;margin:4px 2px 4px 0;border:1px solid transparent;border-radius:2px;font-size:12px;line-height:14px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.pdf-app #thumbnailView{position:absolute;width:calc(100% - 60px);top:0;bottom:0;padding:10px 30px 0;overflow:auto;-webkit-overflow-scrolling:touch}.pdf-app #thumbnailView>a:active,.pdf-app #thumbnailView>a:focus{outline:0}.pdf-app .thumbnail{margin:0 10px 5px 10px}html[dir=ltr] .pdf-app .thumbnail{float:left}html[dir=rtl] .pdf-app .thumbnail{float:right}.pdf-app #thumbnailView>a:last-of-type>.thumbnail{margin-bottom:10px}.pdf-app #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]){margin-bottom:9px}.pdf-app .thumbnail:not([data-loaded]){border:1px dashed hsla(0,0%,100%,.5);margin:-1px 9px 4px 9px}.pdf-app .thumbnailImage{border:1px solid transparent;box-shadow:0 0 0 1px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.3);opacity:.8;z-index:99;background-color:#fff;background-clip:content-box}.pdf-app .thumbnailSelectionRing{border-radius:2px;padding:7px}.pdf-app .thumbnail:hover>.thumbnailSelectionRing>.thumbnailImage,.pdf-app a:focus>.thumbnail>.thumbnailSelectionRing>.thumbnailImage{opacity:.9}.pdf-app #attachmentsView,.pdf-app #outlineView{position:absolute;width:calc(100% - 8px);top:0;bottom:0;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pdf-app #outlineView{padding:4px 4px 0}.pdf-app #attachmentsView{padding:3px 4px 0}html[dir=ltr] .pdf-app .outlineItem>.outlineItems,html[dir=ltr] .pdf-app .outlineWithDeepNesting>.outlineItem{margin-left:20px}html[dir=rtl] .pdf-app .outlineItem>.outlineItems,html[dir=rtl] .pdf-app .outlineWithDeepNesting>.outlineItem{margin-right:20px}.pdf-app .attachmentsItem>button,.pdf-app .outlineItem>a{text-decoration:none;display:inline-block;min-width:95%;min-width:calc(100% - 4px);height:auto;margin-bottom:1px;border-radius:2px;font-size:13px;line-height:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal}.pdf-app .attachmentsItem>button{border:0 none;background:none;cursor:pointer;width:100%}html[dir=ltr] .pdf-app .outlineItem>a{padding:2px 0 5px 4px}html[dir=ltr] .pdf-app .attachmentsItem>button{padding:2px 0 3px 7px;text-align:left}html[dir=rtl] .pdf-app .outlineItem>a{padding:2px 4px 5px 0}html[dir=rtl] .pdf-app .attachmentsItem>button{padding:2px 7px 3px 0;text-align:right}.pdf-app .outlineItemToggler{position:relative;height:0;width:0;color:hsla(0,0%,100%,.5)}.pdf-app .outlineItemToggler:before{content:url("+g+");display:inline-block;position:absolute}.pdf-app .outlineItemToggler.outlineItemsHidden:before{content:url("+v+")}html[dir=rtl] .pdf-app .outlineItemToggler.outlineItemsHidden:before{transform:scaleX(-1)}.pdf-app .outlineItemToggler.outlineItemsHidden~.outlineItems{display:none}html[dir=ltr] .pdf-app .outlineItemToggler{float:left}html[dir=rtl] .pdf-app .outlineItemToggler{float:right}html[dir=ltr] .pdf-app .outlineItemToggler:before{right:4px}html[dir=rtl] .pdf-app .outlineItemToggler:before{left:4px}.pdf-app .attachmentsItem>button:hover,.pdf-app .outlineItem>a:hover,.pdf-app .outlineItemToggler:hover,.pdf-app .outlineItemToggler:hover+a,.pdf-app .outlineItemToggler:hover~.outlineItems{border-radius:2px}.pdf-app .noResults{font-size:12px;color:hsla(0,0%,100%,.8);font-style:italic;cursor:default}.pdf-app ::-moz-selection{background:rgba(0,0,255,.3)}.pdf-app ::selection{background:rgba(0,0,255,.3)}.pdf-app #errorWrapper{color:#fff;left:0;position:absolute;right:0;z-index:1000;padding:3px;font-size:.8em}.loadingInProgress #errorWrapper{top:4px}.pdf-app #errorMessageLeft{float:left}.pdf-app #errorMessageRight{float:right}.pdf-app #errorMoreInfo{padding:3px;margin:3px;width:98%}.pdf-app .overlayButton{width:auto;margin:3px 4px 2px 4px!important;padding:2px 6px 3px 6px}.pdf-app #overlayContainer{display:table;position:absolute;width:100%;height:100%;z-index:40000}.pdf-app #overlayContainer>*{overflow:auto;-webkit-overflow-scrolling:touch}.pdf-app #overlayContainer>.container{display:table-cell;vertical-align:middle;text-align:center}.pdf-app #overlayContainer>.container>.dialog{display:inline-block;padding:15px;border-spacing:4px;font-size:12px;line-height:14px;border:1px solid rgba(0,0,0,.5);border-radius:4px}.pdf-app .dialog>.row{display:table-row}.pdf-app .dialog>.row>*{display:table-cell}.pdf-app .dialog .toolbarField{margin:5px 0}.pdf-app .dialog .separator{display:block;margin:4px 0 4px 0;height:1px;width:100%}.pdf-app .dialog .buttonRow{text-align:center;vertical-align:middle}.pdf-app .dialog :link{color:#fff}.pdf-app #passwordOverlay>.dialog{text-align:center}.pdf-app #passwordOverlay .toolbarField{width:200px}.pdf-app #documentPropertiesOverlay>.dialog{text-align:left}.pdf-app #documentPropertiesOverlay .row>*{min-width:100px}html[dir=ltr] .pdf-app #documentPropertiesOverlay .row>*{text-align:left}html[dir=rtl] .pdf-app #documentPropertiesOverlay .row>*{text-align:right}.pdf-app #documentPropertiesOverlay .row>span{width:125px;word-wrap:break-word}.pdf-app #documentPropertiesOverlay .row>p{max-width:225px;word-wrap:break-word}.pdf-app #documentPropertiesOverlay .buttonRow{margin-top:10px}.pdf-app .clearBoth{clear:both}.fileInput{display:none}.pdf-app #PDFBug{background:none repeat scroll 0 0 #fff;border:1px solid #666;position:fixed;top:32px;right:0;bottom:0;font-size:10px;padding:0;width:300px}.pdf-app #PDFBug .controls{background:#eee;border-bottom:1px solid #666;padding:3px}.pdf-app #PDFBug .panels{bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch;position:absolute;right:0;top:27px}.pdf-app #PDFBug .panels>div{padding:5px}.pdf-app #PDFBug button.active{font-weight:700}.pdf-app .debuggerShowText{background:none repeat scroll 0 0 #ff0;color:#00f}.pdf-app .debuggerHideText:hover{background:none repeat scroll 0 0 #ff0}.pdf-app #PDFBug .stats{font-family:courier;font-size:10px;white-space:pre}.pdf-app #PDFBug .stats .title{font-weight:700}.pdf-app #PDFBug table{font-size:10px}.pdf-app #viewer.textLayer-visible .textLayer{opacity:1}.pdf-app #viewer.textLayer-visible .canvasWrapper{background-color:#80ff80}.pdf-app #viewer.textLayer-visible .canvasWrapper canvas{mix-blend-mode:screen}.pdf-app #viewer.textLayer-visible .textLayer>span{background-color:rgba(255,255,0,.1);color:#000;border:1px solid rgba(255,0,0,.5);box-sizing:border-box}.pdf-app #viewer.textLayer-hover .textLayer>span:hover{background-color:#fff;color:#000}.pdf-app #viewer.textLayer-shadow .textLayer>span{background-color:hsla(0,0%,100%,.6);color:#000}.pdf-app .grab-to-pan-grab{cursor:url("+m+"),move!important;cursor:-webkit-grab!important;cursor:grab!important}.pdf-app .grab-to-pan-grab :not(input):not(textarea):not(button):not(select):not(:link){cursor:inherit!important}.grab-to-pan-grabbing,.pdf-app .grab-to-pan-grab:active{cursor:url("+b+"),move!important;cursor:-webkit-grabbing!important;cursor:grabbing!important;position:fixed;background:transparent;display:block;top:0;left:0;right:0;bottom:0;overflow:hidden;z-index:50000}@page{margin:0}#printContainer{display:none}@media screen and (-webkit-min-device-pixel-ratio:1.1),screen and (min-resolution:1.1dppx){.pdf-app .outlineItemToggler:before{transform:scale(.5);top:-1px;content:url("+y+")}.pdf-app .outlineItemToggler.outlineItemsHidden:before{content:url("+w+")}html[dir=rtl] .pdf-app .outlineItemToggler.outlineItemsHidden:before{transform:scaleX(-1) scale(.5)}}@media print{body{background:transparent none}.pdf-app #errorWrapper,.pdf-app #loadingBox,.pdf-app #secondaryToolbar,.pdf-app #sidebarContainer,.pdf-app .textLayer,.pdf-app .toolbar{display:none}.pdf-app #viewerContainer{overflow:visible}.pdf-app #mainContainer,.pdf-app #viewerContainer,.pdf-app .page,.pdf-app .page canvas{position:static;padding:0;margin:0}.pdf-app .page{float:left;display:none;border:none;box-shadow:none;background-clip:content-box;background-color:#fff}.pdf-app .page[data-loaded]{display:block}body[data-pdfjsprinting] #outerContainer{display:none}body[data-pdfjsprinting] #printContainer{display:block}#printContainer{height:100%}#printContainer>div{position:relative;top:0;left:0;width:1px;height:1px;overflow:visible;page-break-after:always;page-break-inside:avoid}#printContainer canvas,#printContainer img{display:block}}.pdf-app .visibleLargeView,.pdf-app .visibleMediumView,.pdf-app .visibleSmallView{display:none}@media (max-width:900px){.pdf-app #toolbarViewerMiddle{display:table;margin:auto;left:auto;position:inherit;transform:none}}@media (max-width:840px){html[dir=ltr] .pdf-app #outerContainer.sidebarOpen #viewerContainer{left:0!important}html[dir=rtl] .pdf-app #outerContainer.sidebarOpen #viewerContainer{right:0!important}.pdf-app #outerContainer .hiddenLargeView,.pdf-app #outerContainer .hiddenMediumView{display:inherit}.pdf-app #outerContainer .visibleLargeView,.pdf-app #outerContainer .visibleMediumView{display:none}}@media (max-width:770px){.pdf-app #outerContainer .hiddenLargeView{display:none}.pdf-app #outerContainer .visibleLargeView{display:inherit}}@media (max-width:700px){.pdf-app #outerContainer .hiddenMediumView{display:none}.pdf-app #outerContainer .visibleMediumView{display:inherit}}@media (max-width:640px){.pdf-app .hiddenSmallView,.pdf-app .hiddenSmallView *{display:none}.pdf-app .visibleSmallView{display:inherit}.pdf-app .toolbarButtonSpacer{width:0}html[dir=ltr] .pdf-app .findbar{left:38px}html[dir=rtl] .pdf-app .findbar{right:38px}}@media (max-width:535px){.pdf-app #scaleSelectContainer{display:none}}",""]),e.exports=t},"90d7":function(e,t,r){var n=r("23e7"),a=Math.log,i=Math.LN2;n({target:"Math",stat:!0},{log2:function(e){return a(e)/i}})},"90e3":function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},9112:function(e,t,r){var n=r("83ab"),a=r("9bf2"),i=r("5c6c");e.exports=n?function(e,t,r){return a.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},9129:function(e,t,r){var n=r("23e7");n({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},9152:function(e,t){t.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,l=(1<>1,u=-7,d=r?a-1:0,h=r?-1:1,f=e[t+d];for(d+=h,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=n;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),i-=c}return(f?-1:1)*o*Math.pow(2,i-n)},t.write=function(e,t,r,n,a,i){var o,s,l,c=8*i-a-1,u=(1<>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[r+f]=255&s,f+=p,s/=256,a-=8);for(o=o<0;e[r+f]=255&o,f+=p,o/=256,c-=8);e[r+f-p]|=128*g}},9263:function(e,t,r){"use strict";var n=r("ad6d"),a=r("9f7f"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=a.UNSUPPORTED_Y||a.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=l||u||c;d&&(s=function(e){var t,r,a,s,d=this,h=c&&d.sticky,f=n.call(d),p=d.source,g=0,v=e;return h&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),v=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",v=" "+v,g++),r=new RegExp("^(?:"+p+")",f)),u&&(r=new RegExp("^"+p+"$(?!\\s)",f)),l&&(t=d.lastIndex),a=i.call(h?r:d,v),h?a?(a.input=a.input.slice(g),a[0]=a[0].slice(g),a.index=d.lastIndex,d.lastIndex+=a[0].length):d.lastIndex=0:l&&a&&(d.lastIndex=d.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],r,(function(){for(s=1;s=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=n}catch(a){Function("r","regeneratorRuntime = r")(n)}},"970b":function(e,t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=r},"97fb":function(module,exports,__nested_webpack_require_2399881__){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */__nested_webpack_require_2399881__("4160"),__nested_webpack_require_2399881__("caad"),__nested_webpack_require_2399881__("c975"),__nested_webpack_require_2399881__("e260"),__nested_webpack_require_2399881__("45fc"),__nested_webpack_require_2399881__("a434"),__nested_webpack_require_2399881__("b0c0"),__nested_webpack_require_2399881__("6c57"),__nested_webpack_require_2399881__("a9e3"),__nested_webpack_require_2399881__("8ba4"),__nested_webpack_require_2399881__("cca6"),__nested_webpack_require_2399881__("e439"),__nested_webpack_require_2399881__("3410"),__nested_webpack_require_2399881__("b64b"),__nested_webpack_require_2399881__("d3b7"),__nested_webpack_require_2399881__("07ac"),__nested_webpack_require_2399881__("e6cf"),__nested_webpack_require_2399881__("a79d"),__nested_webpack_require_2399881__("ac1f"),__nested_webpack_require_2399881__("2532"),__nested_webpack_require_2399881__("3ca3"),__nested_webpack_require_2399881__("5319"),__nested_webpack_require_2399881__("5cc6"),__nested_webpack_require_2399881__("8a59"),__nested_webpack_require_2399881__("9a8c"),__nested_webpack_require_2399881__("a975"),__nested_webpack_require_2399881__("735e"),__nested_webpack_require_2399881__("c1ac"),__nested_webpack_require_2399881__("d139"),__nested_webpack_require_2399881__("3a7b"),__nested_webpack_require_2399881__("d5d6"),__nested_webpack_require_2399881__("82f8"),__nested_webpack_require_2399881__("e91f"),__nested_webpack_require_2399881__("60bd"),__nested_webpack_require_2399881__("5f96"),__nested_webpack_require_2399881__("3280"),__nested_webpack_require_2399881__("3fcc"),__nested_webpack_require_2399881__("ca91"),__nested_webpack_require_2399881__("25a1"),__nested_webpack_require_2399881__("cd26"),__nested_webpack_require_2399881__("3c5d"),__nested_webpack_require_2399881__("2954"),__nested_webpack_require_2399881__("649e"),__nested_webpack_require_2399881__("219c"),__nested_webpack_require_2399881__("170b"),__nested_webpack_require_2399881__("b39a"),__nested_webpack_require_2399881__("72f7"),__nested_webpack_require_2399881__("10d1"),__nested_webpack_require_2399881__("1fe2"),__nested_webpack_require_2399881__("159b"),__nested_webpack_require_2399881__("ddb0"),__nested_webpack_require_2399881__("2b3d");var _slicedToArray=__nested_webpack_require_2399881__("278c");__nested_webpack_require_2399881__("96cf");var _asyncToGenerator=__nested_webpack_require_2399881__("c973"),_toConsumableArray=__nested_webpack_require_2399881__("448a"),_createForOfIteratorHelper=__nested_webpack_require_2399881__("6374"),_classCallCheck=__nested_webpack_require_2399881__("970b"),_createClass=__nested_webpack_require_2399881__("5bc3"),_typeof=__nested_webpack_require_2399881__("7037");Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _util=__nested_webpack_require_2399881__("dacc"),_display_utils=__nested_webpack_require_2399881__("61a8"),_font_loader=__nested_webpack_require_2399881__("c225"),_api_compatibility=__nested_webpack_require_2399881__("b3d5"),_canvas=__nested_webpack_require_2399881__("7a15"),_worker_options=__nested_webpack_require_2399881__("52f8"),_is_node=__nested_webpack_require_2399881__("eca3"),_message_handler=__nested_webpack_require_2399881__("8139"),_metadata=__nested_webpack_require_2399881__("9974"),_transport_stream=__nested_webpack_require_2399881__("e02d"),_webgl=__nested_webpack_require_2399881__("7fc1"),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var t,r=new PDFDocumentLoadingTask;if("string"===typeof e)t={url:e};else if((0,_util.isArrayBuffer)(e))t={data:e};else if(e instanceof PDFDataRangeTransport)t={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=e}var n=Object.create(null),a=null,i=null;for(var o in t)if("url"!==o||"undefined"===typeof window)if("range"!==o)if("worker"!==o)if("data"!==o||t[o]instanceof Uint8Array)n[o]=t[o];else{var s=t[o];if("string"===typeof s)n[o]=(0,_util.stringToBytes)(s);else if("object"!==_typeof(s)||null===s||isNaN(s.length)){if(!(0,_util.isArrayBuffer)(s))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");n[o]=new Uint8Array(s)}else n[o]=new Uint8Array(s)}else i=t[o];else a=t[o];else n[o]=new URL(t[o],window.location).href;n.rangeChunkSize=n.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,n.CMapReaderFactory=n.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,n.ignoreErrors=!0!==n.stopAtErrors,n.pdfBug=!0===n.pdfBug;var l=Object.values(_util.NativeImageDecoding);if(void 0!==n.nativeImageDecoderSupport&&l.includes(n.nativeImageDecoderSupport)||(n.nativeImageDecoderSupport=_api_compatibility.apiCompatibilityParams.nativeImageDecoderSupport||_util.NativeImageDecoding.DECODE),Number.isInteger(n.maxImageSize)||(n.maxImageSize=-1),"boolean"!==typeof n.isEvalSupported&&(n.isEvalSupported=!0),"boolean"!==typeof n.disableFontFace&&(n.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!==typeof n.disableRange&&(n.disableRange=!1),"boolean"!==typeof n.disableStream&&(n.disableStream=!1),"boolean"!==typeof n.disableAutoFetch&&(n.disableAutoFetch=!1),"boolean"!==typeof n.disableCreateObjectURL&&(n.disableCreateObjectURL=_api_compatibility.apiCompatibilityParams.disableCreateObjectURL||!1),(0,_util.setVerbosityLevel)(n.verbosity),!i){var c={verbosity:n.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=c.port?PDFWorker.fromPort(c):new PDFWorker(c),r._worker=i}var u=r.docId;return i.promise.then((function(){if(r.destroyed)throw new Error("Loading aborted");return _fetchDocument(i,n,a,u).then((function(e){if(r.destroyed)throw new Error("Loading aborted");var t;a?t=new _transport_stream.PDFDataTransportStream({length:n.length,initialData:n.initialData,progressiveDone:n.progressiveDone,disableRange:n.disableRange,disableStream:n.disableStream},a):n.data||(t=createPDFNetworkStream({url:n.url,length:n.length,httpHeaders:n.httpHeaders,withCredentials:n.withCredentials,rangeChunkSize:n.rangeChunkSize,disableRange:n.disableRange,disableStream:n.disableStream}));var o=new _message_handler.MessageHandler(u,e,i.port);o.postMessageTransfers=i.postMessageTransfers;var s=new WorkerTransport(o,r,t,n);r._transport=s,o.send("Ready",null)}))})).catch(r._capability.reject),r}function _fetchDocument(e,t,r,n){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(r&&(t.length=r.length,t.initialData=r.initialData,t.progressiveDone=r.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:n,apiVersion:"2.4.456",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,disableCreateObjectURL:t.disableCreateObjectURL,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})))}var PDFDocumentLoadingTask=function(){var e=0,t=function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var e=this;this.destroyed=!0;var t=this._transport?this._transport.destroy():Promise.resolve();return t.then((function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))}},{key:"then",value:function(e,t){throw new Error("Removed API method: PDFDocumentLoadingTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._capability.promise}}]),t}();return t}(),PDFDataRangeTransport=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(e,[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(r=n.n()).done;){var a=r.value;a(e,t)}}catch(i){n.e(i)}finally{n.f()}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then((function(){var n,a=_createForOfIteratorHelper(r._progressListeners);try{for(a.s();!(n=a.n()).done;){var i=n.value;i(e,t)}}catch(o){a.e(o)}finally{a.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var r,n=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;){var a=r.value;a(e)}}catch(i){n.e(i)}finally{n.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,r=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(r.s();!(t=r.n()).done;){var n=t.value;n()}}catch(a){r.e(a)}finally{r.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),e}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function e(t,r){_classCallCheck(this,e),this._pdfInfo=t,this._transport=r}return _createClass(e,[{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]),e}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function e(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,n=void 0===r?this.rotate:r,a=e.offsetX,i=void 0===a?0:a,o=e.offsetY,s=void 0===o?0:o,l=e.dontFlip,c=void 0!==l&&l;if(arguments.length>1||"number"===typeof arguments[0])throw new Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:i,offsetY:s,dontFlip:c})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,r=void 0===t?null:t;return this.annotationsPromise&&this.annotationsIntent===r||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,r),this.annotationsIntent=r),this.annotationsPromise}},{key:"render",value:function(e){var t=this,r=e.canvasContext,n=e.viewport,a=e.intent,i=void 0===a?"display":a,o=e.enableWebGL,s=void 0!==o&&o,l=e.renderInteractiveForms,c=void 0!==l&&l,u=e.transform,d=void 0===u?null:u,h=e.imageLayer,f=void 0===h?null:h,p=e.canvasFactory,g=void 0===p?null:p,v=e.background,m=void 0===v?null:v;this._stats&&this._stats.time("Overall");var b="print"===i?"print":"display";this.pendingCleanup=!1,this.intentStates[b]||(this.intentStates[b]=Object.create(null));var y=this.intentStates[b];y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);var w=g||new _display_utils.DOMCanvasFactory,_=new _webgl.WebGLContext({enable:s});y.displayReadyCapability||(y.displayReadyCapability=(0,_util.createPromiseCapability)(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:b,renderInteractiveForms:!0===c}));var k=function(e){var r=y.renderTasks.indexOf(x);r>=0&&y.renderTasks.splice(r,1),(t.cleanupAfterRender||"print"===b)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(x.capability.reject(e),t._abortOperatorList({intentState:y,reason:e})):x.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},x=new InternalRenderTask({callback:k,params:{canvasContext:r,viewport:n,transform:d,imageLayer:f,background:m},objs:this.objs,commonObjs:this.commonObjs,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:w,webGLContext:_,useRequestAnimationFrame:"print"!==b,pdfBug:this._pdfBug});y.renderTasks||(y.renderTasks=[]),y.renderTasks.push(x);var S=x.task;return y.displayReadyCapability.promise.then((function(e){t.pendingCleanup?k():(t._stats&&t._stats.time("Rendering"),x.initializeGraphics(e),x.operatorListChanged())})).catch(k),S}},{key:"getOperatorList",value:function(){function e(){if(n.operatorList.lastChunk){n.opListReadCapability.resolve(n.operatorList);var e=n.renderTasks.indexOf(r);e>=0&&n.renderTasks.splice(e,1)}}var t="oplist";this.intentStates[t]||(this.intentStates[t]=Object.create(null));var r,n=this.intentStates[t];return n.opListReadCapability||(r={},r.operatorListChanged=e,n.opListReadCapability=(0,_util.createPromiseCapability)(),n.renderTasks=[],n.renderTasks.push(r),n.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:t})),n.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,r=void 0!==t&&t,n=e.disableCombineTextItems,a=void 0!==n&&n,i=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==a},{highWaterMark:i,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,r){function n(){a.read().then((function(t){var r,a=t.value,o=t.done;o?e(i):(Object.assign(i.styles,a.styles),(r=i.items).push.apply(r,_toConsumableArray(a.items)),n())}),r)}var a=t.getReader(),i={items:[],styles:Object.create(null)};n()}))}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach((function(r){var n=e.intentStates[r];e._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach((function(e){var r=e.capability.promise.catch((function(){}));t.push(r),e.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(t){var r=e.intentStates[t];return 0!==r.renderTasks.length||!r.operatorList.lastChunk})))&&(Object.keys(this.intentStates).forEach((function(t){delete e.intentStates[t]})),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0)}},{key:"_startRenderPage",value:function(e,t){var r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var r=0,n=e.length;r0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}return _createClass(e,[{key:"postMessage",value:function(e,t){var r=this;function n(e){if("object"!==_typeof(e)||null===e)return e;if(a.has(e))return a.get(e);var r,i;if((r=e.buffer)&&(0,_util.isArrayBuffer)(r)){var o=t&&t.includes(r);return i=o?new e.constructor(r,e.byteOffset,e.byteLength):new e.constructor(e),a.set(e,i),i}for(var s in i=Array.isArray(e)?[]:{},a.set(e,i),e){var l=void 0,c=e;while(!(l=Object.getOwnPropertyDescriptor(c,s)))c=Object.getPrototypeOf(c);if("undefined"!==typeof l.value)if("function"!==typeof l.value)i[s]=n(l.value);else if(e.hasOwnProperty&&e.hasOwnProperty(s))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(e[s]))}return i}if(this._defer){var a=new WeakMap,i={data:n(e)};this._deferred.then((function(){r._listeners.forEach((function(e){e.call(r,i)}))}))}else this._listeners.forEach((function(t){t.call(r,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var r=this._listeners.indexOf(t);this._listeners.splice(r,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),e}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="../pdf.worker.js";else if("object"===("undefined"===typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(t){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref8=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){var mainWorkerMessageHandler,worker;return regeneratorRuntime.wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context.stop()}}),_callee)})));return function(){return _ref8.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=void 0===r?null:r,a=t.port,i=void 0===a?null:a,o=t.verbosity,s=void 0===o?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,e),i&&pdfWorkerPorts.has(i))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,i)return pdfWorkerPorts.set(i,this),void this._initializeFromPort(i);this._initialize()}return _createClass(e,[{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),n=new _message_handler.MessageHandler("main","worker",r),a=function(){r.removeEventListener("error",i),n.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},i=function(){e._webWorker||a()};r.addEventListener("error",i),n.on("test",(function(t){r.removeEventListener("error",i),e.destroyed?a():t?(e._messageHandler=n,e._port=r,e._webWorker=r,t.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),n.destroy(),r.terminate())})),n.on("ready",(function(t){if(r.removeEventListener("error",i),e.destroyed)a();else try{o()}catch(n){e._setupFakeWorker()}}));var o=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{n.send("test",t,[t.buffer])}catch(r){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,n.send("test",t)}};return void o()}catch(s){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var r=new LoopbackPort;e._port=r;var n="fake"+nextFakeWorkerId++,a=new _message_handler.MessageHandler(n+"_worker",n,r);t.setup(a,r);var i=new _message_handler.MessageHandler(n,n+"_worker",r);e._messageHandler=i,e._readyCapability.resolve(),i.send("configure",{verbosity:e.verbosity})}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),e}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function e(t,r,n,a){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=a,this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(e,[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",(function(t,r){(0,_util.assert)(e._networkStream),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=function(){e._fullReader.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){r.error(e)}))},r.onCancel=function(t){e._fullReader.cancel(t)}})),t.on("ReaderHeadersReady",(function(t){var n=(0,_util.createPromiseCapability)(),a=e._fullReader;return a.headersReady.then((function(){a.isStreamingSupported&&a.isRangeSupported||(e._lastProgress&&r.onProgress&&r.onProgress(e._lastProgress),a.onProgress=function(e){r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:a.isStreamingSupported,isRangeSupported:a.isRangeSupported,contentLength:a.contentLength})}),n.reject),n.promise})),t.on("GetRangeReader",(function(t,r){(0,_util.assert)(e._networkStream);var n=e._networkStream.getRangeReader(t.begin,t.end);n?(r.onPull=function(){n.read().then((function(e){var t=e.value,n=e.done;n?r.close():((0,_util.assert)((0,_util.isArrayBuffer)(t)),r.enqueue(new Uint8Array(t),1,[t]))})).catch((function(e){r.error(e)}))},r.onCancel=function(e){n.cancel(e)}):r.close()})),t.on("GetDoc",(function(t){var n=t.pdfInfo;e._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break}r._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword){var n=function(t){e._passwordCapability.resolve({password:t})};try{r.onPassword(n,t.code)}catch(a){e._passwordCapability.reject(a)}}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(t){r.onProgress&&r.onProgress({loaded:t.length,total:t.length}),e.downloadInfoCapability.resolve(t)})),t.on("StartRenderPage",(function(t){if(!e.destroyed){var r=e.pageCache[t.pageIndex];r._startRenderPage(t.transparency,t.intent)}})),t.on("commonobj",(function(r){if(!e.destroyed){var n=_slicedToArray(r,3),a=n[0],i=n[1],o=n[2];if(!e.commonObjs.has(a))switch(i){case"Font":var s=e._params;if("error"in o){var l=o.error;(0,_util.warn)("Error during font loading: ".concat(l)),e.commonObjs.resolve(a,l);break}var c=null;s.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(c={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var u=new _font_loader.FontFaceObject(o,{isEvalSupported:s.isEvalSupported,disableFontFace:s.disableFontFace,ignoreErrors:s.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:c});e.fontLoader.bind(u).then((function(){e.commonObjs.resolve(a,u)}),(function(r){t.sendWithPromise("FontFallback",{id:a}).finally((function(){e.commonObjs.resolve(a,u)}))}));break;case"FontPath":case"FontType3Res":e.commonObjs.resolve(a,o);break;default:throw new Error("Got unknown common object type ".concat(i))}}})),t.on("obj",(function(t){if(!e.destroyed){var r=_slicedToArray(t,4),n=r[0],a=r[1],i=r[2],o=r[3],s=e.pageCache[a];if(!s.objs.has(n))switch(i){case"JpegStream":return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=function(){t(new Error("Error during JPEG image loading")),(0,_display_utils.releaseImageResources)(r)},r.src=o})).then((function(e){s.objs.resolve(n,e)}));case"Image":s.objs.resolve(n,o);var l=8e6;o&&"data"in o&&o.data.length>l&&(s.cleanupAfterRender=!0);break;default:throw new Error("Got unknown object type ".concat(i))}}})),t.on("DocProgress",(function(t){e.destroyed||r.onProgress&&r.onProgress({loaded:t.loaded,total:t.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("JpegDecode",(function(t){if(e.destroyed)return Promise.reject(new Error("Worker was destroyed"));if("undefined"===typeof document)return Promise.reject(new Error('"document" is not defined.'));var r=_slicedToArray(t,2),n=r[0],a=r[1];return 3!==a&&1!==a?Promise.reject(new Error("Only 3 components or 1 component can be returned")):new Promise((function(e,t){var r=new Image;r.onload=function(){var t=r.width,n=r.height,i=t*n,o=4*i,s=new Uint8ClampedArray(i*a),l=document.createElement("canvas");l.width=t,l.height=n;var c=l.getContext("2d");c.drawImage(r,0,0);var u=c.getImageData(0,0,t,n).data;if(3===a)for(var d=0,h=0;dthis._numPages)return Promise.reject(new Error("Invalid page request"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n}));return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!==typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var t=0,r=e.pageCache.length;t1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var r=this._objs[e];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var r=this._ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)}},{key:"clear",value:function(){for(var e in this._objs){var t=this._objs[e].data;"undefined"!==typeof Image&&t instanceof Image&&(0,_display_utils.releaseImageResources)(t)}this._objs=Object.create(null)}}]),e}(),RenderTask=function(){function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}return _createClass(e,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"then",value:function(e,t){throw new Error("Removed API method: RenderTask.then, use the `promise` getter instead.")}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),e}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){function t(e){var r=e.callback,n=e.params,a=e.objs,i=e.commonObjs,o=e.operatorList,s=e.pageIndex,l=e.canvasFactory,c=e.webGLContext,u=e.useRequestAnimationFrame,d=void 0!==u&&u,h=e.pdfBug,f=void 0!==h&&h;_classCallCheck(this,t),this.callback=r,this.params=n,this.objs=a,this.commonObjs=i,this.operatorListIdx=null,this.operatorList=o,this._pageIndex=s,this.canvasFactory=l,this.webGLContext=c,this._pdfBug=f,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===d&&"undefined"!==typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,a=r.viewport,i=r.transform,o=r.imageLayer,s=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,o),this.gfx.beginDrawing({transform:i,viewport:a,transparency:t,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound().catch(e.cancel.bind(e))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)})));function r(){return t.apply(this,arguments)}return r}()}]),t}();return t}(),version="2.4.456";exports.version=version;var build="228a591c";exports.build=build},9861:function(e,t,r){"use strict";r("e260");var n=r("23e7"),a=r("d066"),i=r("0d3b"),o=r("6eeb"),s=r("e2cc"),l=r("d44e"),c=r("9ed3"),u=r("69f3"),d=r("19aa"),h=r("5135"),f=r("0366"),p=r("f5df"),g=r("825a"),v=r("861d"),m=r("7c73"),b=r("5c6c"),y=r("9a1f"),w=r("35a1"),_=r("b622"),k=a("fetch"),x=a("Headers"),S=_("iterator"),A="URLSearchParams",C=A+"Iterator",P=u.set,T=u.getterFor(A),E=u.getterFor(C),R=/\+/g,I=Array(4),O=function(e){return I[e-1]||(I[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},L=function(e){try{return decodeURIComponent(e)}catch(t){return e}},F=function(e){var t=e.replace(R," "),r=4;try{return decodeURIComponent(t)}catch(n){while(r)t=t.replace(O(r--),L);return t}},M=/[!'()~]|%20/g,D={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},N=function(e){return D[e]},B=function(e){return encodeURIComponent(e).replace(M,N)},U=function(e,t){if(t){var r,n,a=t.split("&"),i=0;while(i0?arguments[0]:void 0,u=this,f=[];if(P(u,{type:A,entries:f,updateURL:function(){},updateSearchParams:j}),void 0!==c)if(v(c))if(e=w(c),"function"===typeof e){t=e.call(c),r=t.next;while(!(n=r.call(t)).done){if(a=y(g(n.value)),i=a.next,(o=i.call(a)).done||(s=i.call(a)).done||!i.call(a).done)throw TypeError("Expected sequence with length 2");f.push({key:o.value+"",value:s.value+""})}}else for(l in c)h(c,l)&&f.push({key:l,value:c[l]+""});else U(f,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=V.prototype;s(W,{append:function(e,t){q(arguments.length,2);var r=T(this);r.entries.push({key:e+"",value:t+""}),r.updateURL()},delete:function(e){q(arguments.length,1);var t=T(this),r=t.entries,n=e+"",a=0;while(ae.key){a.splice(t,0,e);break}t===r&&a.push(e)}n.updateURL()},forEach:function(e){var t,r=T(this).entries,n=f(e,arguments.length>1?arguments[1]:void 0,3),a=0;while(a1&&(t=arguments[1],v(t)&&(r=t.body,p(r)===A&&(n=t.headers?new x(t.headers):new x,n.has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:b(0,String(r)),headers:b(0,n)}))),a.push(t)),k.apply(this,a)}}),e.exports={URLSearchParams:V,getState:T}},9974:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("e260"),r("4ec9"),r("d3b7"),r("ac1f"),r("25f0"),r("3ca3"),r("5319"),r("498a"),r("ddb0");var n=r("278c"),a=r("6374"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var s=r("dacc"),l=r("74f1"),c=function(){function e(t){i(this,e),(0,s.assert)("string"===typeof t,"Metadata: input is not a string"),t=this._repair(t);var r=new l.SimpleXMLParser,n=r.parseFromString(t);this._metadataMap=new Map,n&&this._parse(n)}return o(e,[{key:"_repair",value:function(e){return e.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(e,t,r,n){return String.fromCharCode(64*t+8*r+1*n)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),n="",a=0,i=r.length;a=32&&o<127&&60!==o&&62!==o&&38!==o?String.fromCharCode(o):"&#x"+(65536+o).toString(16).substring(1)+";"}return">"+n}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase()){t=t.firstChild;while(t&&"rdf:rdf"!==t.nodeName.toLowerCase())t=t.nextSibling}var r=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===r&&t.hasChildNodes())for(var n=t.childNodes,a=0,i=n.length;a=51||!a((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=d("concat"),y=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)},w=!m||!b;n({target:"Array",proto:!0,forced:w},{concat:function(e){var t,r,n,a,i,o=s(this),d=u(o,0),h=0;for(t=-1,n=arguments.length;tg)throw TypeError(v);for(r=0;r=g)throw TypeError(v);c(d,h++,i)}return d.length=h,d}})},"9a0c":function(e,t,r){var n=r("342f");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},"9a1f":function(e,t,r){var n=r("825a"),a=r("35a1");e.exports=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},"9a29":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayManager=void 0;var o=function(){function e(){a(this,e),this._overlays={},this._active=null,this._keyDownBound=this._keyDown.bind(this)}return i(e,[{key:"register",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r){var n,a,i,o=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=o.length>2&&void 0!==o[2]?o[2]:null,a=o.length>3&&void 0!==o[3]&&o[3],t&&r&&(i=r.parentNode)){e.next=6;break}throw new Error("Not enough parameters.");case 6:if(!this._overlays[t]){e.next=8;break}throw new Error("The overlay is already registered.");case 8:this._overlays[t]={element:r,container:i,callerCloseMethod:n,canForceClose:a};case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"unregister",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this._overlays[t]){e.next=4;break}throw new Error("The overlay does not exist.");case 4:if(this._active!==t){e.next=6;break}throw new Error("The overlay cannot be removed while it is active.");case 6:delete this._overlays[t];case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"open",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this._overlays[t]){e.next=4;break}throw new Error("The overlay does not exist.");case 4:if(!this._active){e.next=14;break}if(!this._overlays[t].canForceClose){e.next=9;break}this._closeThroughCaller(),e.next=14;break;case 9:if(this._active!==t){e.next=13;break}throw new Error("The overlay is already active.");case 13:throw new Error("Another overlay is currently active.");case 14:this._active=t,this._overlays[this._active].element.classList.remove("hidden"),this._overlays[this._active].container.classList.remove("hidden"),window.addEventListener("keydown",this._keyDownBound);case 18:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"close",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this._overlays[t]){e.next=4;break}throw new Error("The overlay does not exist.");case 4:if(this._active){e.next=8;break}throw new Error("The overlay is currently not active.");case 8:if(this._active===t){e.next=10;break}throw new Error("Another overlay is currently active.");case 10:this._overlays[this._active].container.classList.add("hidden"),this._overlays[this._active].element.classList.add("hidden"),this._active=null,window.removeEventListener("keydown",this._keyDownBound);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_keyDown",value:function(e){this._active&&27===e.keyCode&&(this._closeThroughCaller(),e.preventDefault())}},{key:"_closeThroughCaller",value:function(){this._overlays[this._active].callerCloseMethod&&this._overlays[this._active].callerCloseMethod(),this._active&&this.close(this._active)}},{key:"active",get:function(){return this._active}}]),e}();t.OverlayManager=o},"9a8c":function(e,t,r){"use strict";var n=r("ebb5"),a=r("145e"),i=n.aTypedArray,o=n.exportTypedArrayMethod;o("copyWithin",(function(e,t){return a.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9b42":function(e,t,r){function n(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(r.push(o.value),t&&r.length===t)break}catch(l){a=!0,i=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(a)throw i}}return r}}r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),e.exports=n},"9bdd":function(e,t,r){var n=r("825a");e.exports=function(e,t,r,a){try{return a?t(n(r)[0],r[1]):t(r)}catch(o){var i=e["return"];throw void 0!==i&&n(i.call(e)),o}}},"9bf2":function(e,t,r){var n=r("83ab"),a=r("0cfb"),i=r("825a"),o=r("c04e"),s=Object.defineProperty;t.f=n?s:function(e,t,r){if(i(e),t=o(t,!0),i(r),a)try{return s(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},"9e3b":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("b680");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var i=r("0496"),o=r("a3cd"),s=300,l=function(){function e(t){var r=t.textLayerDiv,a=t.eventBus,o=t.pageIndex,s=t.viewport,l=t.findController,c=void 0===l?null:l,u=t.enhanceTextSelection,d=void 0!==u&&u;n(this,e),this.textLayerDiv=r,this.eventBus=a||(0,i.getGlobalEventBus)(),this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=s,this.textDivs=[],this.findController=c,this.textLayerRenderTask=null,this.enhanceTextSelection=d,this._onUpdateTextLayerMatches=null,this._bindMouse()}return a(e,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var r=document.createDocumentFragment();this.textLayerRenderTask=(0,o.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:r,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((function(){e.textLayerDiv.appendChild(r),e._finishRendering(),e._updateMatches()}),(function(e){})),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._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(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var r=this.findController,n=this.textContentItemsStr,a=0,i=0,o=n.length-1,s=r.state.query.length,l=[],c=0,u=e.length;c=i+n[a].length)i+=n[a].length,a++;a===n.length&&console.error("Could not find a matching mapping");var h={begin:{divIdx:a,offset:d-i}};d+=t?t[c]:s;while(a!==o&&d>i+n[a].length)i+=n[a].length,a++;h.end={divIdx:a,offset:d-i},l.push(h)}return l}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,r=this.pageIdx,n=this.textContentItemsStr,a=this.textDivs,i=r===t.selected.pageIdx,o=t.selected.matchIdx,s=t.state.highlightAll,l=null,c={divIdx:-1,offset:void 0},u=o,d=u+1;if(s)u=0,d=e.length;else if(!i)return;for(var h=u;h3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;return new l({textLayerDiv:e,pageIndex:t,viewport:r,enhanceTextSelection:n,eventBus:a})}}]),e}();t.DefaultTextLayerFactory=c},"9e56":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("d3b7"),r("e6cf"),r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,r("b87b");var o=document.webL10n,s=function(){function e(t){a(this,e),this._lang=t,this._ready=new Promise((function(e,r){o.setLanguage(t,(function(){e(o)}))}))}return i(e,[{key:"getLanguage",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getLanguage());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getDirection",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getDirection());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"get",value:function(){var e=n(regeneratorRuntime.mark((function e(t,r,n){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return a=e.sent,e.abrupt("return",a.get(t,r,n));case 4:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{key:"translate",value:function(){var e=n(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return r=e.sent,e.abrupt("return",r.translate(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();t.GenericL10n=s},"9ed3":function(e,t,r){"use strict";var n=r("ae93").IteratorPrototype,a=r("7c73"),i=r("5c6c"),o=r("d44e"),s=r("3f8c"),l=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=a(n,{next:i(1,r)}),o(e,c,!1,!0),s[c]=l,e}},"9eea":function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("a9e3"),r("8ba4"),r("9129"),r("cca6"),r("b64b"),r("d3b7"),r("e6cf"),r("ac1f"),r("1276"),r("2ca0");var n=r("7037"),a=r("278c"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=f,t.isDestArraysEqual=p,t.PDFHistory=void 0;var s=r("0496"),l=1e3,c=50,u=1e3;function d(){return document.location.hash}var h=function(){function e(t){var r=this,n=t.linkService,a=t.eventBus;i(this,e),this.linkService=n,this.eventBus=a||(0,s.getGlobalEventBus)(),this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",(function(e){r._isViewerInPresentationMode=e.active||e.switchInProgress})),this.eventBus._on("pagesinit",(function(){r._isPagesLoaded=!1;var e=function e(t){r.eventBus._off("pagesloaded",e),r._isPagesLoaded=!!t.pagesCount};r.eventBus._on("pagesloaded",e)}))}return o(e,[{key:"initialize",value:function(e){var t=e.fingerprint,r=e.resetHistory,n=void 0!==r&&r,a=e.updateUrl,i=void 0!==a&&a;if(t&&"string"===typeof t){this._initialized&&this.reset();var o=""!==this._fingerprint&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=!0===i,this._initialized=!0,this._bindEvents();var s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=d(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(s,!0)||n){var l=this._parseCurrentHash(),c=l.hash,u=l.page,h=l.rotation;return!c||o||n?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:c,page:u,rotation:h},!0)}var f=s.destination;this._updateInternalState(f,s.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(e){var t=this,r=e.namedDest,n=void 0===r?null:r,a=e.explicitDest,i=e.pageNumber;if(this._initialized)if(n&&"string"!==typeof n)console.error("PDFHistory.push: "+'"'.concat(n,'" is not a valid namedDest parameter.'));else if(Array.isArray(a))if(Number.isInteger(i)&&i>0&&i<=this.linkService.pagesCount||null===i&&!this._destination){var o=n||JSON.stringify(a);if(o){var s=!1;if(this._destination&&(f(this._destination.hash,o)||p(this._destination.dest,a))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:a,hash:o,page:i,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((function(){t._popStateInProgress=!1}))))}}else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(a,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid1&&void 0!==arguments[1]&&arguments[1],n=r||!this._destination,a={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,a.uid),this._updateUrl&&e&&e.hash){var i=document.location.href.split("#")[0];i.startsWith("file://")||(t="".concat(i,"#").concat(e.hash))}n?window.history.replaceState(a,"",t):(this._maxUid=this._uid,window.history.pushState(a,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(c<=0||this._numPositionUpdates<=c))){var r=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;r=!0}this._pushOrReplaceState(t,r)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!==typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var r=performance.getEntriesByType("navigation"),i=a(r,1),o=i[0];if(!o||"reload"!==o.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&(null!==e.destination&&"object"===n(e.destination))}},{key:"_updateInternalState",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),r&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=unescape(d()).substring(1),t=0|(0,s.parseQueryString)(e).page;return Number.isInteger(t)&&t>0&&t<=this.linkService.pagesCount||(t=null),{hash:e,page:t,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(e){var t=this,r=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(r.pageNumber):r.pdfOpenParams.substring(1),page:this.linkService.page,first:r.pageNumber,rotation:r.rotation},this._popStateInProgress||(c>0&&this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,u>0&&(this._updateViewareaTimeout=setTimeout((function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null}),u)))}},{key:"_popState",value:function(e){var t=this,r=e.state,n=d(),a=this._currentHash!==n;if(this._currentHash=n,r){if(this._isValidState(r)){this._popStateInProgress=!0,a&&(this._blockHashChange++,(0,s.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:l}).then((function(){t._blockHashChange--})));var i=r.destination;this._updateInternalState(i,r.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,s.isValidRotation)(i.rotation)&&(this.linkService.rotation=i.rotation),i.dest?this.linkService.navigateTo(i.dest):i.hash?this.linkService.setHash(i.hash):i.page&&(this.linkService.page=i.page),Promise.resolve().then((function(){t._popStateInProgress=!1}))}}else{this._uid++;var o=this._parseCurrentHash(),c=o.hash,u=o.page,h=o.rotation;this._pushOrReplaceState({hash:c,page:u,rotation:h},!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}}]),e}();function f(e,t){if("string"!==typeof e||"string"!==typeof t)return!1;if(e===t)return!0;var r=(0,s.parseQueryString)(e),n=r.nameddest;return n===t}function p(e,t){function r(e,t){if(n(e)!==n(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===n(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var a in e)if(!r(e[a],t[a]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var a=0,i=e.length;a1?arguments[1]:void 0,v=void 0!==g,m=i(f);if(void 0!=m&&!o(m)){d=m.call(f),h=d.next,f=[];while(!(u=h.call(d)).done)f.push(u.value)}for(v&&p>2&&(g=s(g,arguments[2],2)),r=a(f.length),c=new(l(this))(r),t=0;r>t;t++)c[t]=v?g(f[t],t):f[t];return c}},a15b:function(e,t,r){"use strict";var n=r("23e7"),a=r("44ad"),i=r("fc6a"),o=r("a640"),s=[].join,l=a!=Object,c=o("join",",");n({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},a176:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,"#sidebarContainer.zero-top[data-v-4aaa9b0d],#sidebarContent.zero-top[data-v-4aaa9b0d],#viewerContainer.zero-top[data-v-4aaa9b0d]{top:0}",""]),e.exports=t},a3cd:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */var n=r("dacc"),a=r("97fb"),i=r("a765"),o=r("ad4c"),s=r("61a8"),l=r("02c5"),c=r("52f8"),u=r("b3d5"),d=r("eca3"),h=d.isNodeJS;if(h){var f=r("458c").PDFNodeStream;a.setPDFNetworkStreamFactory((function(e){return new f(e)}))}else{var p,g=r("88cc").PDFNetworkStream;s.isFetchSupported()&&(p=r("3f9c").PDFFetchStream),a.setPDFNetworkStreamFactory((function(e){return p&&s.isValidFetchUrl(e.url)?new p(e):new g(e)}))}t.build=a.build,t.version=a.version,t.getDocument=a.getDocument,t.LoopbackPort=a.LoopbackPort,t.PDFDataRangeTransport=a.PDFDataRangeTransport,t.PDFWorker=a.PDFWorker,t.renderTextLayer=i.renderTextLayer,t.AnnotationLayer=o.AnnotationLayer,t.createPromiseCapability=n.createPromiseCapability,t.PasswordResponses=n.PasswordResponses,t.InvalidPDFException=n.InvalidPDFException,t.MissingPDFException=n.MissingPDFException,t.SVGGraphics=l.SVGGraphics,t.NativeImageDecoding=n.NativeImageDecoding,t.CMapCompressionType=n.CMapCompressionType,t.PermissionFlag=n.PermissionFlag,t.UnexpectedResponseException=n.UnexpectedResponseException,t.OPS=n.OPS,t.VerbosityLevel=n.VerbosityLevel,t.UNSUPPORTED_FEATURES=n.UNSUPPORTED_FEATURES,t.createValidAbsoluteUrl=n.createValidAbsoluteUrl,t.createObjectURL=n.createObjectURL,t.removeNullCharacters=n.removeNullCharacters,t.shadow=n.shadow,t.Util=n.Util,t.RenderingCancelledException=s.RenderingCancelledException,t.getFilenameFromUrl=s.getFilenameFromUrl,t.LinkTarget=s.LinkTarget,t.addLinkAttributes=s.addLinkAttributes,t.loadScript=s.loadScript,t.PDFDateString=s.PDFDateString,t.GlobalWorkerOptions=c.GlobalWorkerOptions,t.apiCompatibilityParams=u.apiCompatibilityParams},a434:function(e,t,r){"use strict";var n=r("23e7"),a=r("23cb"),i=r("a691"),o=r("50c4"),s=r("7b0b"),l=r("65f0"),c=r("8418"),u=r("1dde"),d=r("ae40"),h=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,v=9007199254740991,m="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!h||!f},{splice:function(e,t){var r,n,u,d,h,f,b=s(this),y=o(b.length),w=a(e,y),_=arguments.length;if(0===_?r=n=0:1===_?(r=0,n=y-w):(r=_-2,n=g(p(i(t),0),y-w)),y+r-n>v)throw TypeError(m);for(u=l(b,n),d=0;dy-n+r;d--)delete b[d-1]}else if(r>n)for(d=y-n;d>w;d--)h=d+n-1,f=d+r-1,h in b?b[f]=b[h]:delete b[f];for(d=0;di)a.push(arguments[i++]);if(n=t,(f(t)||void 0!==e)&&!se(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!se(t))return t}),a[1]=t,Y.apply(null,a)}})}G[q][z]||P(G[q],z,G[q].valueOf),D(G,j),I[U]=!0},a623:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").every,i=r("a640"),o=r("ae40"),s=i("every"),l=o("every");n({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,r){var n=r("23e7"),a=r("4df4"),i=r("1c7e"),o=!i((function(e){Array.from(e)}));n({target:"Array",stat:!0,forced:o},{from:a})},a640:function(e,t,r){"use strict";var n=r("d039");e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},a6d9:function(e,t,r){var n=r("a176");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("499e").default;a("ffab1974",n,!0,{sourceMap:!1,shadowMode:!1})},a765:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("4160"),r("e260"),r("a15b"),r("d81d"),r("a434"),r("6c57"),r("cca6"),r("d3b7"),r("e6cf"),r("a79d"),r("3ca3"),r("4a9b"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("10d1"),r("159b"),r("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var n=r("dacc"),a=function(){var e=1e5,t=/\S/;function r(e){return!t.test(e)}function a(e,t,a){var i=document.createElement("span"),o={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(e._textDivs.push(i),r(t.str))return o.isWhitespace=!0,void e._textDivProperties.set(i,o);var s=n.Util.transform(e._viewport.transform,t.transform),l=Math.atan2(s[1],s[0]),c=a[t.fontName];c.vertical&&(l+=Math.PI/2);var u,d,h=Math.sqrt(s[2]*s[2]+s[3]*s[3]),f=h;if(c.ascent?f=c.ascent*f:c.descent&&(f=(1+c.descent)*f),0===l?(u=s[4],d=s[5]-f):(u=s[4]+f*Math.sin(l),d=s[5]-f*Math.cos(l)),i.style.left="".concat(u,"px"),i.style.top="".concat(d,"px"),i.style.fontSize="".concat(h,"px"),i.style.fontFamily=c.fontFamily,i.textContent=t.str,e._fontInspectorEnabled&&(i.dataset.fontName=t.fontName),0!==l&&(o.angle=l*(180/Math.PI)),t.str.length>1&&(c.vertical?o.canvasWidth=t.height*e._viewport.scale:o.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(i,o),e._textContentStream&&e._layoutText(i),e._enhanceTextSelection){var p=1,g=0;0!==l&&(p=Math.cos(l),g=Math.sin(l));var v,m,b=(c.vertical?t.height:t.width)*e._viewport.scale,y=h;0!==l?(v=[p,g,-g,p,u,d],m=n.Util.getAxialAlignedBoundingBox([0,0,b,y],v)):m=[u,d,u+b,d+y],e._bounds.push({left:m[0],top:m[1],right:m[2],bottom:m[3],div:i,size:[b,y],m:v})}}function i(t){if(!t._canceled){var r=t._textDivs,n=t._capability,a=r.length;if(a>e)return t._renderingDone=!0,void n.resolve();if(!t._textContentStream)for(var i=0;i0&&(n=n?Math.min(i,n):i)}return n},m=1+Math.min(Math.abs(h),Math.abs(f));l.paddingLeft=v(g,32,16)/m,l.paddingTop=v(g,48,16)/m,l.paddingRight=v(g,0,16)/m,l.paddingBottom=v(g,16,16)/m,e._textDivProperties.set(o,l)}else l.paddingLeft=t[i].left-a[i].left,l.paddingTop=t[i].top-a[i].top,l.paddingRight=a[i].right-t[i].right,l.paddingBottom=a[i].bottom-t[i].bottom,e._textDivProperties.set(o,l)}}function s(e,t,r){var n=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));l(e,n);var a=new Array(r.length);return n.forEach((function(e){var t=e.index;a[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){var i=a[r],o=n[r];o.x1=t.top,o.y1=e-i.right,o.x2=t.bottom,o.y2=e-i.left,o.index=r,o.x1New=void 0,o.x2New=void 0})),l(t,n),n.forEach((function(e){var t=e.index;a[t].top=e.x1New,a[t].bottom=e.x2New})),a}function l(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));var r={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},n=[{start:-1/0,end:1/0,boundary:r}];t.forEach((function(e){var t=0;while(t=0&&n[i].start>=e.y2)i--;var o,s,l=-1/0;for(o=t;o<=i;o++){var c;r=n[o],a=r.boundary,c=a.x2>e.x1?a.index>e.index?a.x1New:e.x1:void 0===a.x2New?(a.x2+e.x1)/2:a.x2New,c>l&&(l=c)}for(e.x1New=l,o=t;o<=i;o++)r=n[o],a=r.boundary,void 0===a.x2New?a.x2>e.x1?a.index>e.index&&(a.x2New=a.x2):a.x2New=l:a.x2New>l&&(a.x2New=Math.max(l,a.x2));var u=[],d=null;for(o=t;o<=i;o++){r=n[o],a=r.boundary;var h=a.x2>e.x2?a:e;d===h?u[u.length-1].end=r.end:(u.push({start:r.start,end:r.end,boundary:h}),d=h)}for(n[t].start=0&&n[s].start>=a.y1;s--)f=n[s].boundary===a;for(s=i+1;!f&&s0&&(t.scale=t.canvasWidth/s,r="scaleX(".concat(t.scale,")"))}0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,r=(0,n.createPromiseCapability)(),a=Object.create(null),o=document.createElement("canvas");if(o.mozOpaque=!0,this._layoutTextCtx=o.getContext("2d",{alpha:!1}),this._textContent){var s=this._textContent.items,l=this._textContent.styles;this._processItems(s,l),r.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var c=function e(){t._reader.read().then((function(n){var i=n.value,o=n.done;o?r.resolve():(Object.assign(a,i.styles),t._processItems(i.items,a),e())}),r.reject)};this._reader=this._textContentStream.getReader(),c()}r.promise.then((function(){a=null,e?t._renderTimer=setTimeout((function(){i(t),t._renderTimer=null}),e):i(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(o(this),this._bounds=null);for(var t=[],r=[],n=0,a=this._textDivs.length;n0?(r.push("".concat(s.paddingTop,"px")),t.push("translateY(".concat(-s.paddingTop,"px)"))):r.push(0),s.paddingRight>0?r.push("".concat(s.paddingRight/s.scale,"px")):r.push(0),s.paddingBottom>0?r.push("".concat(s.paddingBottom,"px")):r.push(0),s.paddingLeft>0?(r.push("".concat(s.paddingLeft/s.scale,"px")),t.push("translateX(".concat(-s.paddingLeft/s.scale,"px)"))):r.push(0),i.style.padding=r.join(" "),t.length&&(i.style.transform=t.join(" "))):(i.style.padding=null,i.style.transform=s.originalTransform))}}}},u}();t.renderTextLayer=a},a79d:function(e,t,r){"use strict";var n=r("23e7"),a=r("c430"),i=r("fea9"),o=r("d039"),s=r("d066"),l=r("4840"),c=r("cdf9"),u=r("6eeb"),d=!!i&&o((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));n({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(e){var t=l(this,s("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),a||"function"!=typeof i||i.prototype["finally"]||u(i.prototype,"finally",s("Promise").prototype["finally"])},a975:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").every,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("every",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},a9e3:function(e,t,r){"use strict";var n=r("83ab"),a=r("da84"),i=r("94ca"),o=r("6eeb"),s=r("5135"),l=r("c6b6"),c=r("7156"),u=r("c04e"),d=r("d039"),h=r("7c73"),f=r("241c").f,p=r("06cf").f,g=r("9bf2").f,v=r("58a8").trim,m="Number",b=a[m],y=b.prototype,w=l(h(y))==m,_=function(e){var t,r,n,a,i,o,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=v(c),t=c.charCodeAt(0),43===t||45===t){if(r=c.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+c}for(i=c.slice(2),o=i.length,s=0;sa)return NaN;return parseInt(i,n)}return+c};if(i(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var k,x=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof x&&(w?d((function(){y.valueOf.call(r)})):l(r)!=m)?c(new b(_(t)),r,x):_(t)},S=n?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0;S.length>A;A++)s(b,k=S[A])&&!s(x,k)&&g(x,k,p(b,k));x.prototype=y,y.constructor=x,o(a,m,x)}},ab13:function(e,t,r){var n=r("b622"),a=n("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[a]=!1,"/./"[e](t)}catch(n){}}return!1}},ac1f:function(e,t,r){"use strict";var n=r("23e7"),a=r("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},acac:function(e,t,r){"use strict";var n=r("e2cc"),a=r("f183").getWeakData,i=r("825a"),o=r("861d"),s=r("19aa"),l=r("2266"),c=r("b727"),u=r("5135"),d=r("69f3"),h=d.set,f=d.getterFor,p=c.find,g=c.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},y=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};b.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,n){s(e,d,t),h(e,{type:t,id:v++,frozen:void 0}),void 0!=n&&l(n,e[c],e,r)})),p=f(t),g=function(e,t,r){var n=p(e),o=a(i(t),!0);return!0===o?m(n).set(t,r):o[n.id]=r,e};return n(d.prototype,{delete:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t)["delete"](e):r&&u(r,t.id)&&delete r[t.id]},has:function(e){var t=p(this);if(!o(e))return!1;var r=a(e);return!0===r?m(t).has(e):r&&u(r,t.id)}}),n(d.prototype,r?{get:function(e){var t=p(this);if(o(e)){var r=a(e);return!0===r?m(t).get(e):r?r[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},ad4c:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("caad"),r("a15b"),r("b0c0"),r("ac1f"),r("2532"),r("1276"),r("cc71");var n=r("3c96"),a=r("6374"),i=r("8962"),o=r("36c6"),s=r("ed6d"),l=r("2d0d"),c=r("970b"),u=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var d=r("61a8"),h=r("dacc"),f=function(){function e(){c(this,e)}return u(e,null,[{key:"create",value:function(e){var t=e.data.annotationType;switch(t){case h.AnnotationType.LINK:return new g(e);case h.AnnotationType.TEXT:return new v(e);case h.AnnotationType.WIDGET:var r=e.data.fieldType;switch(r){case"Tx":return new b(e);case"Btn":return e.data.radioButton?new w(e):e.data.checkBox?new y(e):new _(e);case"Ch":return new k(e)}return new m(e);case h.AnnotationType.POPUP:return new x(e);case h.AnnotationType.FREETEXT:return new A(e);case h.AnnotationType.LINE:return new C(e);case h.AnnotationType.SQUARE:return new P(e);case h.AnnotationType.CIRCLE:return new T(e);case h.AnnotationType.POLYLINE:return new E(e);case h.AnnotationType.CARET:return new I(e);case h.AnnotationType.INK:return new O(e);case h.AnnotationType.POLYGON:return new R(e);case h.AnnotationType.HIGHLIGHT:return new L(e);case h.AnnotationType.UNDERLINE:return new F(e);case h.AnnotationType.SQUIGGLY:return new M(e);case h.AnnotationType.STRIKEOUT:return new D(e);case h.AnnotationType.STAMP:return new N(e);case h.AnnotationType.FILEATTACHMENT:return new B(e);default:return new p(e)}}}]),e}(),p=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}return u(e,[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data,r=this.page,n=this.viewport,a=document.createElement("section"),i=t.rect[2]-t.rect[0],o=t.rect[3]-t.rect[1];a.setAttribute("data-annotation-id",t.id);var s=h.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(a.style.transform="matrix(".concat(n.transform.join(","),")"),a.style.transformOrigin="-".concat(s[0],"px -").concat(s[1],"px"),!e&&t.borderStyle.width>0){a.style.borderWidth="".concat(t.borderStyle.width,"px"),t.borderStyle.style!==h.AnnotationBorderStyleType.UNDERLINE&&(i-=2*t.borderStyle.width,o-=2*t.borderStyle.width);var l=t.borderStyle.horizontalCornerRadius,c=t.borderStyle.verticalCornerRadius;if(l>0||c>0){var u="".concat(l,"px / ").concat(c,"px");a.style.borderRadius=u}switch(t.borderStyle.style){case h.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case h.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case h.AnnotationBorderStyleType.BEVELED:(0,h.warn)("Unimplemented border style: beveled");break;case h.AnnotationBorderStyleType.INSET:(0,h.warn)("Unimplemented border style: inset");break;case h.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid";break;default:break}t.color?a.style.borderColor=h.Util.makeCssRgb(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left="".concat(s[0],"px"),a.style.top="".concat(s[1],"px"),a.style.width="".concat(i,"px"),a.style.height="".concat(o,"px"),a}},{key:"_createPopup",value:function(e,t,r){t||(t=document.createElement("div"),t.style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var n=new S({container:e,trigger:t,color:r.color,title:r.title,modificationDate:r.modificationDate,contents:r.contents,hideWrapper:!0}),a=n.render();a.style.left=e.style.width,e.appendChild(a)}},{key:"render",value:function(){(0,h.unreachable)("Abstract method `AnnotationElement.render` called")}}]),e}(),g=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.url||e.data.dest||e.data.action);return t.call(this,e,n)}return u(r,[{key:"render",value:function(){this.container.className="linkAnnotation";var e=this.data,t=this.linkService,r=document.createElement("a");return e.url?(0,d.addLinkAttributes)(r,{url:e.url,target:e.newWindow?d.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):this._bindLink(r,e.dest),this.container.appendChild(r),this.container}},{key:"_bindLink",value:function(e,t){var r=this;e.href=this.linkService.getDestinationHash(t),e.onclick=function(){return t&&r.linkService.navigateTo(t),!1},t&&(e.className="internalLink")}},{key:"_bindNamedAction",value:function(e,t){var r=this;e.href=this.linkService.getAnchorUrl(""),e.onclick=function(){return r.linkService.executeNamedAction(t),!1},e.className="internalLink"}}]),r}(p),v=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n)}return u(r,[{key:"render",value:function(){this.container.className="textAnnotation";var e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}}]),r}(p),m=function(e){s(r,e);var t=l(r);function r(){return c(this,r),t.apply(this,arguments)}return u(r,[{key:"render",value:function(){return this.container}}]),r}(p),b=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue;return t.call(this,e,n)}return u(r,[{key:"render",value:function(){var e=["left","center","right"];this.container.className="textWidgetAnnotation";var t=null;if(this.renderInteractiveForms){if(this.data.multiLine?(t=document.createElement("textarea"),t.textContent=this.data.fieldValue):(t=document.createElement("input"),t.type="text",t.setAttribute("value",this.data.fieldValue)),t.disabled=this.data.readOnly,null!==this.data.maxLen&&(t.maxLength=this.data.maxLen),this.data.comb){var r=this.data.rect[2]-this.data.rect[0],n=r/this.data.maxLen;t.classList.add("comb"),t.style.letterSpacing="calc(".concat(n,"px - 1ch)")}}else{t=document.createElement("div"),t.textContent=this.data.fieldValue,t.style.verticalAlign="middle",t.style.display="table-cell";var a=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(a=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(t,a)}return null!==this.data.textAlignment&&(t.style.textAlign=e[this.data.textAlignment]),this.container.appendChild(t),this.container}},{key:"_setTextStyle",value:function(e,t){var r=e.style;if(r.fontSize="".concat(this.data.fontSize,"px"),r.direction=this.data.fontDirection<0?"rtl":"ltr",t){var n="normal";t.black?n="900":t.bold&&(n="bold"),r.fontWeight=n,r.fontStyle=t.italic?"italic":"normal";var a=t.loadedName?'"'.concat(t.loadedName,'", '):"",i=t.fallbackName||"Helvetica, sans-serif";r.fontFamily=a+i}}}]),r}(m),y=function(e){s(r,e);var t=l(r);function r(e){return c(this,r),t.call(this,e,e.renderInteractiveForms)}return u(r,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="checkbox",this.data.fieldValue&&"Off"!==this.data.fieldValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),r}(m),w=function(e){s(r,e);var t=l(r);function r(e){return c(this,r),t.call(this,e,e.renderInteractiveForms)}return u(r,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var e=document.createElement("input");return e.disabled=this.data.readOnly,e.type="radio",e.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&e.setAttribute("checked",!0),this.container.appendChild(e),this.container}}]),r}(m),_=function(e){s(r,e);var t=l(r);function r(){return c(this,r),t.apply(this,arguments)}return u(r,[{key:"render",value:function(){var e=i(o(r.prototype),"render",this).call(this);return e.className="buttonWidgetAnnotation pushButton",e}}]),r}(g),k=function(e){s(r,e);var t=l(r);function r(e){return c(this,r),t.call(this,e,e.renderInteractiveForms)}return u(r,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t,r=a(this.data.options);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=document.createElement("option");i.textContent=n.displayValue,i.value=n.exportValue,this.data.fieldValue.includes(n.displayValue)&&i.setAttribute("selected",!0),e.appendChild(i)}}catch(o){r.e(o)}finally{r.f()}return this.container.appendChild(e),this.container}}]),r}(m),x=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!(!e.data.title&&!e.data.contents);return t.call(this,e,n)}return u(r,[{key:"render",value:function(){var e=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",e.includes(this.data.parentType))return this.container;var t='[data-annotation-id="'.concat(this.data.parentId,'"]'),r=this.layer.querySelector(t);if(!r)return this.container;var n=new S({container:this.container,trigger:r,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),a=parseFloat(r.style.left),i=parseFloat(r.style.width);return this.container.style.transformOrigin="-".concat(a+i,"px -").concat(r.style.top),this.container.style.left="".concat(a+i,"px"),this.container.appendChild(n.render()),this.container}}]),r}(p),S=function(){function e(t){c(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}return u(e,[{key:"render",value:function(){var e=.7,t=document.createElement("div");t.className="popupWrapper",this.hideElement=this.hideWrapper?t:this.container,this.hideElement.setAttribute("hidden",!0);var r=document.createElement("div");r.className="popup";var n=this.color;if(n){var a=e*(255-n[0])+n[0],i=e*(255-n[1])+n[1],o=e*(255-n[2])+n[2];r.style.backgroundColor=h.Util.makeCssRgb(0|a,0|i,0|o)}var s=document.createElement("h1");s.textContent=this.title,r.appendChild(s);var l=d.PDFDateString.toDateObject(this.modificationDate);if(l){var c=document.createElement("span");c.textContent="{{date}}, {{time}}",c.dataset.l10nId="annotation_date_string",c.dataset.l10nArgs=JSON.stringify({date:l.toLocaleDateString(),time:l.toLocaleTimeString()}),r.appendChild(c)}var u=this._formatContents(this.contents);return r.appendChild(u),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),r.addEventListener("click",this._hide.bind(this,!0)),t.appendChild(r),t}},{key:"_formatContents",value:function(e){for(var t=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/),n=0,a=r.length;n0&&void 0!==arguments[0]&&arguments[0];e&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),e}(),A=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),C=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){this.container.className="lineAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=this.svgFactory.createElement("svg:line");return a.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),a.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),a.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),a.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),a.setAttribute("stroke-width",e.borderStyle.width||1),a.setAttribute("stroke","transparent"),n.appendChild(a),this.container.append(n),this._createPopup(this.container,a,e),this.container}}]),r}(p),P=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){this.container.className="squareAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",a/2),i.setAttribute("y",a/2),i.setAttribute("width",t-a),i.setAttribute("height",r-a),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),r}(p),T=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){this.container.className="circleAnnotation";var e=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],n=this.svgFactory.create(t,r),a=e.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",t/2),i.setAttribute("cy",r/2),i.setAttribute("rx",t/2-a/2),i.setAttribute("ry",r/2-a/2),i.setAttribute("stroke-width",a||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),n.appendChild(i),this.container.append(n),this._createPopup(this.container,i,e),this.container}}]),r}(p),E=function(e){s(r,e);var t=l(r);function r(e){var n;c(this,r);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=t.call(this,e,a,!0),n.containerClassName="polylineAnnotation",n.svgElementName="svg:polyline",n}return u(r,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],i=this.svgFactory.create(r,n),o=[],s=a(t.vertices);try{for(s.s();!(e=s.n()).done;){var l=e.value,c=l.x-t.rect[0],u=t.rect[3]-l.y;o.push(c+","+u)}}catch(h){s.e(h)}finally{s.f()}o=o.join(" ");var d=this.svgFactory.createElement(this.svgElementName);return d.setAttribute("points",o),d.setAttribute("stroke-width",t.borderStyle.width||1),d.setAttribute("stroke","transparent"),d.setAttribute("fill","none"),i.appendChild(d),this.container.append(i),this._createPopup(this.container,d,t),this.container}}]),r}(p),R=function(e){s(r,e);var t=l(r);function r(e){var n;return c(this,r),n=t.call(this,e),n.containerClassName="polygonAnnotation",n.svgElementName="svg:polygon",n}return r}(E),I=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),O=function(e){s(r,e);var t=l(r);function r(e){var n;c(this,r);var a=!!(e.data.hasPopup||e.data.title||e.data.contents);return n=t.call(this,e,a,!0),n.containerClassName="inkAnnotation",n.svgElementName="svg:polyline",n}return u(r,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,t=this.data,r=t.rect[2]-t.rect[0],n=t.rect[3]-t.rect[1],i=this.svgFactory.create(r,n),o=a(t.inkLists);try{for(o.s();!(e=o.n()).done;){var s,l=e.value,c=[],u=a(l);try{for(u.s();!(s=u.n()).done;){var d=s.value,h=d.x-t.rect[0],f=t.rect[3]-d.y;c.push("".concat(h,",").concat(f))}}catch(g){u.e(g)}finally{u.f()}c=c.join(" ");var p=this.svgFactory.createElement(this.svgElementName);p.setAttribute("points",c),p.setAttribute("stroke-width",t.borderStyle.width||1),p.setAttribute("stroke","transparent"),p.setAttribute("fill","none"),this._createPopup(this.container,p,t),i.appendChild(p)}}catch(g){o.e(g)}finally{o.f()}return this.container.append(i),this.container}}]),r}(p),L=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),F=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),M=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),D=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),N=function(e){s(r,e);var t=l(r);function r(e){c(this,r);var n=!!(e.data.hasPopup||e.data.title||e.data.contents);return t.call(this,e,n,!0)}return u(r,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),r}(p),B=function(e){s(r,e);var t=l(r);function r(e){var a;c(this,r),a=t.call(this,e,!0);var i=a.data.file,o=i.filename,s=i.content;return a.filename=(0,d.getFilenameFromUrl)(o),a.content=s,a.linkService.eventBus&&a.linkService.eventBus.dispatch("fileattachmentannotation",{source:n(a),id:(0,h.stringToPDFString)(o),filename:o,content:s}),a}return u(r,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,h.warn)("Download cannot be started due to unavailable download manager")}}]),r}(p),U=function(){function e(){c(this,e)}return u(e,null,[{key:"render",value:function(e){var t,r=[],n=[],i=a(e.annotations);try{for(i.s();!(t=i.n()).done;){var o=t.value;o&&(o.annotationType!==h.AnnotationType.POPUP?r.push(o):n.push(o))}}catch(p){i.e(p)}finally{i.f()}n.length&&r.push.apply(r,n);for(var s=0,l=r;s3}))}},b041:function(e,t,r){"use strict";var n=r("00ee"),a=r("f5df");e.exports=n?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(e,t,r){var n=r("83ab"),a=r("9bf2").f,i=Function.prototype,o=i.toString,s=/^\s*function ([^ (]*)/,l="name";n&&!(l in i)&&a(i,l,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},b39a:function(e,t,r){"use strict";var n=r("da84"),a=r("ebb5"),i=r("d039"),o=n.Int8Array,s=a.aTypedArray,l=a.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,d=!!o&&i((function(){c.call(new o(1))})),h=i((function(){return[1,2].toLocaleString()!=new o([1,2]).toLocaleString()}))||!i((function(){o.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return c.apply(d?u.call(s(this)):s(this),arguments)}),h)},b3d5:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("dca8");var n=Object.create(null),a=r("eca3"),i=a.isNodeJS,o="undefined"!==typeof navigator&&navigator.userAgent||"",s=/Trident/.test(o),l=/CriOS/.test(o);(function(){(s||l)&&(n.disableCreateObjectURL=!0)})(),function(){i&&(n.disableFontFace=!0,n.nativeImageDecoderSupport="none")}(),t.apiCompatibilityParams=Object.freeze(n)},b3fd:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var i=r("a3cd"),o=r("0496"),s=r("8a38"),l=function(){function e(t){var r=t.pageDiv,a=t.pdfPage,i=t.linkService,s=t.downloadManager,l=t.imageResourcesPath,c=void 0===l?"":l,u=t.renderInteractiveForms,d=void 0!==u&&u,h=t.l10n,f=void 0===h?o.NullL10n:h;n(this,e),this.pageDiv=r,this.pdfPage=a,this.linkService=i,this.downloadManager=s,this.imageResourcesPath=c,this.renderInteractiveForms=d,this.l10n=f,this.div=null,this._cancelled=!1}return a(e,[{key:"render",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:r}).then((function(r){if(!t._cancelled){var n={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:r,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager};if(t.div)i.AnnotationLayer.update(n);else{if(0===r.length)return;t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),n.div=t.div,i.AnnotationLayer.render(n),t.l10n.translate(t.div)}}}))}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}();t.AnnotationLayerBuilder=l;var c=function(){function e(){n(this,e)}return a(e,[{key:"createAnnotationLayerBuilder",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],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.NullL10n;return new l({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:n,linkService:new s.SimpleLinkService,l10n:a})}}]),e}();t.DefaultAnnotationLayerFactory=c},b575:function(e,t,r){var n,a,i,o,s,l,c,u,d=r("da84"),h=r("06cf").f,f=r("c6b6"),p=r("2cf4").set,g=r("1cdc"),v=d.MutationObserver||d.WebKitMutationObserver,m=d.process,b=d.Promise,y="process"==f(m),w=h(d,"queueMicrotask"),_=w&&w.value;_||(n=function(){var e,t;y&&(e=m.domain)&&e.exit();while(a){t=a.fn,a=a.next;try{t()}catch(r){throw a?o():i=void 0,r}}i=void 0,e&&e.enter()},y?o=function(){m.nextTick(n)}:v&&!g?(s=!0,l=document.createTextNode(""),new v(n).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),u=c.then,o=function(){u.call(c,n)}):o=function(){p.call(d,n)}),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},b622:function(e,t,r){var n=r("da84"),a=r("5692"),i=r("5135"),o=r("90e3"),s=r("4930"),l=r("fdbf"),c=a("wks"),u=n.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},b636:function(e,t,r){var n=r("746f");n("asyncIterator")},b639:function(e,t,r){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var n=r("1fb5"),a=r("9152"),i=r("e3db");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(e).length;default:if(n)return Z(e).length;t=(""+t).toLowerCase(),n=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function k(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(e,t,r,n,a){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,a);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,a){var i,o=1,s=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(i=r;is&&(r=s-l),i=r;i>=0;i--){for(var d=!0,h=0;ha&&(n=a)):n=a;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var o=0;o239?4:c>223?3:c>191?2:1;if(a+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:i=e[a+1],128===(192&i)&&(l=(31&c)<<6|63&i,l>127&&(u=l));break;case 3:i=e[a+1],o=e[a+2],128===(192&i)&&128===(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:i=e[a+1],o=e[a+2],s=e[a+3],128===(192&i)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=d}return F(n)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:o(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return h(null,e,t,r)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,n,a){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var i=a-n,o=r-t,s=Math.min(i,o),l=this.slice(n,a),u=e.slice(t,r),d=0;da)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":return P(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function F(e){var t=e.length;if(t<=L)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var a="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,a,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function q(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-r,2);a>>8*(n?a:1-a)}function z(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-r,4);a>>8*(n?a:3-a)&255}function V(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function W(e,t,r,n,i){return i||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function H(e,t,r,n,i){return i||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(a*=256))n+=this[e+--t]*a;return n},c.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=this[e],a=1,i=0;while(++i=a&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=t,a=1,i=this[e+--n];while(n>0&&(a*=256))i+=this[e+--n]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var a=Math.pow(2,8*r)-1;j(this,e,t,r,a,0)}var i=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+i]=e/o&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}var i=0,o=1,s=0;this[t]=255&e;while(++i>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);j(this,e,t,r,a-1,-a)}var i=r-1,o=1,s=0;this[t+i]=255&e;while(--i>=0&&(o*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return H(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return H(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function J(e){for(var t=[],r=0;r>8,a=r%256,i.push(a),i.push(n)}return i}function $(e){return n.toByteArray(Y(e))}function ee(e,t,r,n){for(var a=0;a=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function te(e){return e!==e}}).call(this,r("c8ba"))},b64b:function(e,t,r){var n=r("23e7"),a=r("7b0b"),i=r("df75"),o=r("d039"),s=o((function(){i(1)}));n({target:"Object",stat:!0,forced:s},{keys:function(e){return i(a(e))}})},b680:function(e,t,r){"use strict";var n=r("23e7"),a=r("a691"),i=r("408a"),o=r("1148"),s=r("d039"),l=1..toFixed,c=Math.floor,u=function(e,t,r){return 0===t?r:t%2===1?u(e,t-1,r*e):u(e*e,t/2,r)},d=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t},h=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));n({target:"Number",proto:!0,forced:h},{toFixed:function(e){var t,r,n,s,l=i(this),h=a(e),f=[0,0,0,0,0,0],p="",g="0",v=function(e,t){var r=-1,n=t;while(++r<6)n+=e*f[r],f[r]=n%1e7,n=c(n/1e7)},m=function(e){var t=6,r=0;while(--t>=0)r+=f[t],f[t]=c(r/e),r=r%e*1e7},b=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var r=String(f[e]);t=""===t?r:t+o.call("0",7-r.length)+r}return t};if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(t=d(l*u(2,69,1))-69,r=t<0?l*u(2,-t,1):l/u(2,t,1),r*=4503599627370496,t=52-t,t>0){v(0,r),n=h;while(n>=7)v(1e7,0),n-=7;v(u(10,n,1),0),n=t-1;while(n>=23)m(1<<23),n-=23;m(1<0?(s=g.length,g=p+(s<=h?"0."+o.call("0",h-s)+g:g.slice(0,s-h)+"."+g.slice(s-h))):g=p+g,g}})},b727:function(e,t,r){var n=r("0366"),a=r("44ad"),i=r("7b0b"),o=r("50c4"),s=r("65f0"),l=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,g,v){for(var m,b,y=i(f),w=a(y),_=n(p,g,3),k=o(w.length),x=0,S=v||s,A=t?S(f,k):r?S(f,0):void 0;k>x;x++)if((h||x in w)&&(m=w[x],b=_(m,x,y),e))if(t)A[x]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:l.call(A,m)}else if(u)return!1;return d?-1:c||u?u:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},b781:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),r("2b3d");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var i=r("a3cd"),o=i.apiCompatibilityParams.disableCreateObjectURL||!1;function s(e,t){var r=document.createElement("a");if(!r.click)throw new Error('DownloadManager: "a.click()" is not supported.');r.href=e,r.target="_parent","download"in r&&(r.download=t),(document.body||document.documentElement).appendChild(r),r.click(),r.remove()}var l=function(){function e(t){var r=t.disableCreateObjectURL,a=void 0===r?o:r;n(this,e),this.disableCreateObjectURL=a}return a(e,[{key:"downloadUrl",value:function(e,t){(0,i.createValidAbsoluteUrl)(e,"http://example.com")&&s(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(e,t,r){if(navigator.msSaveBlob)navigator.msSaveBlob(new Blob([e],{type:r}),t);else{var n=(0,i.createObjectURL)(e,r,this.disableCreateObjectURL);s(n,t)}}},{key:"download",value:function(e,t,r){if(navigator.msSaveBlob)navigator.msSaveBlob(e,r)||this.downloadUrl(t,r);else if(this.disableCreateObjectURL)this.downloadUrl(t,r);else{var n=URL.createObjectURL(e);s(n,r)}}}]),e}();t.DownloadManager=l},b87b:function(e,t,r){"use strict";r("c975"),r("baa5"),r("ac1f"),r("466d"),r("5319"),r("1276"),document.webL10n=function(e,t,r){var n={},a="",i="textContent",o="",s={},l="loading",c=!0;function u(){return t.querySelectorAll('link[type="application/l10n"]')}function d(){var e=t.querySelector('script[type="application/l10n"]');return e?JSON.parse(e.innerHTML):null}function h(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}function f(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),r=e.getAttribute("data-l10n-args"),n={};if(r)try{n=JSON.parse(r)}catch(a){console.warn("could not parse arguments for #"+t)}return{id:t,args:n}}function p(e,t,r){t=t||function(e){},r=r||function(){};var n=new XMLHttpRequest;n.open("GET",e,c),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=utf-8"),n.onreadystatechange=function(){4==n.readyState&&(200==n.status||0===n.status?t(n.responseText):r())},n.onerror=r,n.ontimeout=r;try{n.send(null)}catch(a){r()}}function g(e,t,r,o){var s=e.replace(/[^\/]*$/,"")||"./";function l(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/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,"'")}function c(e,r){var n={},a=/^\s*|\s*$/,i=/^\s*#|^\s*$/,o=/^\s*\[(.*)\]\s*$/,c=/^\s*@import\s+url\((.*)\)\s*$/i,u=/^([^=\s]*)\s*=\s*(.+)$/;function d(e,r,d){var f=e.replace(a,"").split(/[\r\n]+/),p="*",g=t.split("-",1)[0],v=!1,m="";function b(){while(1){if(!f.length)return void d();var e=f.shift();if(!i.test(e)){if(r){if(m=o.exec(e),m){p=m[1].toLowerCase(),v="*"!==p&&p!==t&&p!==g;continue}if(v)continue;if(m=c.exec(e),m)return void h(s+m[1],b)}var a=e.match(u);a&&3==a.length&&(n[a[1]]=l(a[2]))}}}b()}function h(e,t){p(e,(function(e){d(e,!1,t)}),(function(){console.warn(e+" not found."),t()}))}d(e,!0,(function(){r(n)}))}p(e,(function(e){a+=e,c(e,(function(e){for(var t in e){var a,o,s=t.lastIndexOf(".");s>0?(a=t.substring(0,s),o=t.substring(s+1)):(a=t,o=i),n[a]||(n[a]={}),n[a][o]=e[t]}r&&r()}))}),o)}function v(e,t){e&&(e=e.toLowerCase()),t=t||function(){},m(),o=e;var r=u(),a=r.length;if(0!==a){var i=null,s=0;i=function(){s++,s>=a&&(t(),l="complete")};for(var c=0;c0&&(o=e.substring(a+1),e=e.substring(0,a)),r&&(n={},n[o]=r);var s=y(e,t,n);return s&&o in s?s[o]:"{{"+e+"}}"},getData:function(){return n},getText:function(){return a},getLanguage:function(){return o},setLanguage:function(e,t){v(e,(function(){t&&t()}))},getDirection:function(){var e=["ar","he","fa","ps","ur"],t=o.split("-",1)[0];return e.indexOf(t)>=0?"rtl":"ltr"},translate:S,getReadyState:function(){return l},ready:function(r){r&&("complete"==l||"interactive"==l?e.setTimeout((function(){r()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),r()})))}}}(window,document)},baa5:function(e,t,r){var n=r("23e7"),a=r("e58c");n({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},bb2f:function(e,t,r){var n=r("d039");e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bdc3:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' width='50px' height='50px' viewBox='-3 -3 54 54' xml:space='preserve'%3e %3cg%3e %3cpath d='M25 0 A 26 26 0 0 0 0 25' stroke='%23606c88' stroke-width='3' fill='transparent'%3e %3canimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'%3e %3c/animateTransform%3e %3c/path%3e %3cpath d='M25 8 A 18 18 0 0 0 8 25' stroke='%2311ece5' stroke-width='3' fill='transparent'%3e %3canimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1.5s' repeatCount='indefinite'%3e %3c/animateTransform%3e %3c/path%3e %3cpath d='M25 16 A 10 10 0 0 0 16 25' stroke='%23606c88' stroke-width='3' fill='transparent'%3e %3canimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.5s' repeatCount='indefinite'%3e %3c/animateTransform%3e %3c/path%3e %3c/g%3e %3c/svg%3e"},bf19:function(e,t,r){"use strict";var n=r("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},bfa5:function(e,t,r){"use strict";var n=r("8996"),a=r.n(n);a.a},c04e:function(e,t,r){var n=r("861d");e.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},c135:function(e,t){function r(e){if(Array.isArray(e))return e}e.exports=r},c19f:function(e,t,r){"use strict";var n=r("23e7"),a=r("da84"),i=r("621a"),o=r("2626"),s="ArrayBuffer",l=i[s],c=a[s];n({global:!0,forced:c!==l},{ArrayBuffer:l}),o(s)},c1ac:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").filter,i=r("4840"),o=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod;l("filter",(function(e){var t=a(o(this),e,arguments.length>1?arguments[1]:void 0),r=i(this,this.constructor),n=0,l=t.length,c=new(s(r))(l);while(l>n)c[n]=t[n++];return c}))},c225:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("4160"),r("e260"),r("a15b"),r("d3b7"),r("e6cf"),r("ac1f"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b");var n=r("ed6d"),a=r("2d0d");r("96cf");var i=r("c973"),o=r("970b"),s=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var l,c=r("dacc"),u=function(){function e(t){var r=t.docId,n=t.onUnsupportedFeature;o(this,e),this.constructor===e&&(0,c.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}return s(e,[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||(t=this.styleElement=document.createElement("style"),t.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(e){document.fonts.delete(e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var e=i(regeneratorRuntime.mark((function e(t){var r,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(r=t.createNativeFontFace(),!r){e.next=18;break}return this.addNativeFontFace(r),e.prev=7,e.next=10,r.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e["catch"](7),this._onUnsupportedFeature({featureId:c.UNSUPPORTED_FEATURES.font}),(0,c.warn)("Failed to load font '".concat(r.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(n=t.createFontFaceRule(),!n){e.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var r=a._queueLoadingCallback(e);a._prepareFontLoadEvent([n],[t],r)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_queueLoadingCallback",value:function(e){(0,c.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,r){(0,c.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!==typeof document&&!!document.fonts;return(0,c.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,c.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,c.unreachable)("Abstract method `_loadTestFont`.")}}]),e}();t.FontLoader=l,t.FontLoader=l=function(e){n(r,e);var t=a(r);function r(e){var n;return o(this,r),n=t.call(this,e),n.loadingContext={requests:[],nextRequestId:0},n.loadTestFontId=0,n}return s(r,[{key:"_queueLoadingCallback",value:function(e){function t(){(0,c.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;while(r.requests.length>0&&r.requests[0].done){var e=r.requests.shift();setTimeout(e.callback,0)}}var r=this.loadingContext,n={id:"pdfjs-font-loading-".concat(r.nextRequestId++),done:!1,complete:t,callback:e};return r.requests.push(n),n}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,r,n){var a=e.substring(0,t),i=e.substring(t+r);return a+n+i}var i,o,s=document.createElement("canvas");s.width=1,s.height=1;var l=s.getContext("2d"),u=0;function d(e,t){if(u++,u>30)return(0,c.warn)("Load test font never loaded."),void t();l.font="30px "+e,l.fillText(".",0,20);var r=l.getImageData(0,0,1,1);r.data[3]>0?t():setTimeout(d.bind(null,e,t))}var h="lt".concat(Date.now()).concat(this.loadTestFontId++),f=this._loadTestFont,p=976;f=a(f,p,h.length,h);var g=16,v=1482184792,m=n(f,g);for(i=0,o=h.length-3;i=14&&(e=!0)}return(0,c.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_loadTestFont",get:function(){var e=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,c.shadow)(this,"_loadTestFont",e())}}]),r}(u);var d=function(){function e(t,r){var n=r.isEvalSupported,a=void 0===n||n,i=r.disableFontFace,s=void 0!==i&&i,l=r.ignoreErrors,c=void 0!==l&&l,u=r.onUnsupportedFeature,d=void 0===u?null:u,h=r.fontRegistry,f=void 0===h?null:h;for(var p in o(this,e),this.compiledGlyphs=Object.create(null),t)this[p]=t[p];this.isEvalSupported=!1!==a,this.disableFontFace=!0===s,this.ignoreErrors=!0===c,this._onUnsupportedFeature=d,this.fontRegistry=f}return s(e,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var e=(0,c.bytesToString)(new Uint8Array(this.data)),t="url(data:".concat(this.mimetype,";base64,").concat(btoa(e),");"),r='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(t,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,t),r}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(l){if(!this.ignoreErrors)throw l;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:c.UNSUPPORTED_FEATURES.font}),(0,c.warn)('getPathGenerator - ignoring character: "'.concat(l,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&c.IsEvalSupportedCached.value){for(var a,i="",o=0,s=r.length;o1?arguments[1]:void 0)}}),i(s)},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},c8d2:function(e,t,r){var n=r("d039"),a=r("5899"),i="​…᠎";e.exports=function(e){return n((function(){return!!a[e]()||i[e]()!=i||a[e].name!==e}))}},c906:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("861d"),o=Object.isExtensible,s=a((function(){o(1)}));n({target:"Object",stat:!0,forced:s},{isExtensible:function(e){return!!i(e)&&(!o||o(e))}})},c973:function(e,t,r){function n(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var o=e.apply(t,r);function s(e){n(o,a,i,s,l,"next",e)}function l(e){n(o,a,i,s,l,"throw",e)}s(void 0)}))}}r("d3b7"),r("e6cf"),e.exports=a},c975:function(e,t,r){"use strict";var n=r("23e7"),a=r("4d64").indexOf,i=r("a640"),o=r("ae40"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,r){var n=r("5135"),a=r("fc6a"),i=r("4d64").indexOf,o=r("d012");e.exports=function(e,t){var r,s=a(e),l=0,c=[];for(r in s)!n(o,r)&&n(s,r)&&c.push(r);while(t.length>l)n(s,r=t[l++])&&(~i(c,r)||c.push(r));return c}},ca91:function(e,t,r){"use strict";var n=r("ebb5"),a=r("d58f").left,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("reduce",(function(e){return a(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},caad:function(e,t,r){"use strict";var n=r("23e7"),a=r("4d64").includes,i=r("44d2"),o=r("ae40"),s=o("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:!s},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cb29:function(e,t,r){var n=r("23e7"),a=r("81d5"),i=r("44d2");n({target:"Array",proto:!0},{fill:a}),i("fill")},cc12:function(e,t,r){var n=r("da84"),a=r("861d"),i=n.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},cc71:function(e,t,r){"use strict";var n=r("23e7"),a=r("857a"),i=r("af03");n({target:"String",proto:!0,forced:i("bold")},{bold:function(){return a(this,"b","","")}})},cca6:function(e,t,r){var n=r("23e7"),a=r("60da");n({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},cd26:function(e,t,r){"use strict";var n=r("ebb5"),a=n.aTypedArray,i=n.exportTypedArrayMethod,o=Math.floor;i("reverse",(function(){var e,t=this,r=a(t).length,n=o(r/2),i=0;while(i=t)return p(t,t,e.l10n),void n();var i=e.currentPage;p(i,t,e.l10n),l(e,e.pdfDocument,i+1,e.pagesOverview[i]).then(e.useRenderedPage.bind(e)).then((function(){r(n,a)}),a)};return new Promise(r)},useRenderedPage:function(e){this.throwIfInactive();var t=document.createElement("img");t.style.width=e.width,t.style.height=e.height;var r=this.scratchCanvas;"toBlob"in r&&!this.disableCreateObjectURL?r.toBlob((function(e){t.src=URL.createObjectURL(e)})):t.src=r.toDataURL();var n=document.createElement("div");return n.appendChild(t),this.printContainer.appendChild(n),new Promise((function(e,r){t.onload=e,t.onerror=r}))},performPrint:function(){var e=this;return this.throwIfInactive(),new Promise((function(t){setTimeout((function(){e.active?(d.call(window),setTimeout(t,20)):t()}),0)}))},get active(){return this===o},throwIfInactive:function(){if(!this.active)throw new Error("This print request was cancelled or completed.")}};var u,d=window.print;function h(e){var t=document.createEvent("CustomEvent");t.initCustomEvent(e,!1,!1,"custom"),window.dispatchEvent(t)}function f(){o&&(o.destroy(),h("afterprint"))}function p(e,t,r){var n=document.getElementById("printServiceOverlay"),a=Math.round(100*e/t),i=n.querySelector("progress"),o=n.querySelector(".relative-progress");i.value=a,r.get("print_progress_percent",{progress:a},a+"%").then((function(e){o.textContent=e}))}if(window.print=function(){if(o)console.warn("Ignored window.print() because of a pending print job.");else{v().then((function(){o&&s.open("printServiceOverlay")}));try{h("beforeprint")}finally{if(!o)return console.error("Expected print service to be initialized."),void v().then((function(){"printServiceOverlay"===s.active&&s.close("printServiceOverlay")}));var e=o;o.renderPages().then((function(){return e.performPrint()})).catch((function(){})).then((function(){e.active&&f()}))}}},window.addEventListener("keydown",(function(e){80!==e.keyCode||!e.ctrlKey&&!e.metaKey||e.altKey||e.shiftKey&&!window.chrome&&!window.opera||(window.print(),e.preventDefault(),e.stopImmediatePropagation?e.stopImmediatePropagation():e.stopPropagation())}),!0),"onbeforeprint"in window){var g=function(e){"custom"!==e.detail&&e.stopImmediatePropagation&&e.stopImmediatePropagation()};window.addEventListener("beforeprint",g),window.addEventListener("afterprint",g)}function v(){if(!u){if(s=a.PDFViewerApplication.overlayManager,!s)throw new Error("The overlay manager has not yet been initialized.");u=s.register("printServiceOverlay",document.getElementById("printServiceOverlay"),f,!0),document.getElementById("printCancel").onclick=f}return u}a.PDFPrintServiceFactory.instance={supportsPrinting:!0,createPrintService:function(e,t,r,n){if(o)throw new Error("The print service is created and active.");return o=new c(e,t,r,n),o}}},cee8:function(e,t,r){var n=r("23e7"),a=r("861d"),i=r("f183").onFreeze,o=r("bb2f"),s=r("d039"),l=Object.preventExtensions,c=s((function(){l(1)}));n({target:"Object",stat:!0,forced:c,sham:!o},{preventExtensions:function(e){return l&&a(e)?l(i(e)):e}})},cf01:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("e260"),r("d3b7"),r("e6cf"),r("25f0"),r("3ca3"),r("ddb0"),r("96cf");var n=r("c973"),a=r("6374"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.Toolbar=void 0;var s=r("0496"),l="visiblePageIsLoading",c=140,u=162,d=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.NullL10n;i(this,e),this.toolbar=t.container,this.eventBus=r,this.l10n=n,this.buttons=[{element:t.previous,eventName:"previouspage"},{element:t.next,eventName:"nextpage"},{element:t.zoomIn,eventName:"zoomin"},{element:t.zoomOut,eventName:"zoomout"},{element:t.openFile,eventName:"openfile"},{element:t.print,eventName:"print"},{element:t.presentationModeButton,eventName:"presentationmode"},{element:t.download,eventName:"download"},{element:t.viewBookmark,eventName:null}],this.items={numPages:t.numPages,pageNumber:t.pageNumber,scaleSelectContainer:t.scaleSelectContainer,scaleSelect:t.scaleSelect,customScaleOption:t.customScaleOption,previous:t.previous,next:t.next,zoomIn:t.zoomIn,zoomOut:t.zoomOut},this._wasLocalized=!1,this.reset(),this._bindListeners()}return o(e,[{key:"setPageNumber",value:function(e,t){this.pageNumber=e,this.pageLabel=t,this._updateUIState(!1)}},{key:"setPagesCount",value:function(e,t){this.pagesCount=e,this.hasPageLabels=t,this._updateUIState(!0)}},{key:"setPageScale",value:function(e,t){this.pageScaleValue=(e||t).toString(),this.pageScale=t,this._updateUIState(!1)}},{key:"reset",value:function(){this.pageNumber=0,this.pageLabel=null,this.hasPageLabels=!1,this.pagesCount=0,this.pageScaleValue=s.DEFAULT_SCALE_VALUE,this.pageScale=s.DEFAULT_SCALE,this._updateUIState(!0),this.updateLoadingIndicatorState()}},{key:"_bindListeners",value:function(){var e,t=this,r=this.items,n=r.pageNumber,i=r.scaleSelect,o=this,l=a(this.buttons);try{var c=function(){var r=e.value,n=r.element,a=r.eventName;n.addEventListener("click",(function(e){null!==a&&t.eventBus.dispatch(a,{source:t})}))};for(l.s();!(e=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}n.addEventListener("click",(function(){this.select()})),n.addEventListener("change",(function(){o.eventBus.dispatch("pagenumberchanged",{source:o,value:this.value})})),i.addEventListener("change",(function(){"custom"!==this.value&&o.eventBus.dispatch("scalechanged",{source:o,value:this.value})})),i.oncontextmenu=s.noContextMenuHandler,this.eventBus._on("localized",(function(){t._wasLocalized=!0,t._adjustScaleWidth(),t._updateUIState(!0)}))}},{key:"_updateUIState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._wasLocalized){var t=this.pageNumber,r=this.pagesCount,n=this.pageScaleValue,i=this.pageScale,o=this.items;e&&(this.hasPageLabels?o.pageNumber.type="text":(o.pageNumber.type="number",this.l10n.get("of_pages",{pagesCount:r},"of {{pagesCount}}").then((function(e){o.numPages.textContent=e}))),o.pageNumber.max=r),this.hasPageLabels?(o.pageNumber.value=this.pageLabel,this.l10n.get("page_of_pages",{pageNumber:t,pagesCount:r},"({{pageNumber}} of {{pagesCount}})").then((function(e){o.numPages.textContent=e}))):o.pageNumber.value=t,o.previous.disabled=t<=1,o.next.disabled=t>=r,o.zoomOut.disabled=i<=s.MIN_SCALE,o.zoomIn.disabled=i>=s.MAX_SCALE;var l=Math.round(1e4*i)/100;this.l10n.get("page_scale_percent",{scale:l},"{{scale}}%").then((function(e){var t,r=!1,i=a(o.scaleSelect.options);try{for(i.s();!(t=i.n()).done;){var s=t.value;s.value===n?(s.selected=!0,r=!0):s.selected=!1}}catch(l){i.e(l)}finally{i.f()}r||(o.customScaleOption.textContent=e,o.customScaleOption.selected=!0)}))}}},{key:"updateLoadingIndicatorState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.items.pageNumber;t.classList.toggle(l,e)}},{key:"_adjustScaleWidth",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r,n,i,o,l,d,h,f,p,g,v,m,b,y;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.items,r=this.l10n,n=Promise.all([r.get("page_scale_auto",null,"Automatic Zoom"),r.get("page_scale_actual",null,"Actual Size"),r.get("page_scale_fit",null,"Page Fit"),r.get("page_scale_width",null,"Page Width")]),i=document.createElement("canvas"),i.mozOpaque=!0,o=i.getContext("2d",{alpha:!1}),e.next=7,s.animationStarted;case 7:return l=getComputedStyle(t.scaleSelect),d=l.fontSize,h=l.fontFamily,o.font="".concat(d," ").concat(h),f=0,e.t0=a,e.next=13,n;case 13:e.t1=e.sent,p=(0,e.t0)(e.t1);try{for(p.s();!(g=p.n()).done;)v=g.value,m=o.measureText(v),b=m.width,b>f&&(f=b)}catch(w){p.e(w)}finally{p.f()}y=u-c,f+=1.5*y,f>c&&(t.scaleSelect.style.width="".concat(f+y,"px"),t.scaleSelectContainer.style.width="".concat(f,"px")),i.width=0,i.height=0,i=o=null;case 22:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}();t.Toolbar=d},cfc3:function(e,t,r){var n=r("74e8");n("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,r){var n=r("428f"),a=r("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e])||i(a[e]):n[e]&&n[e][t]||a[e]&&a[e][t]}},d139:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").find,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("find",(function(e){return a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},d1e7:function(e,t,r){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!n.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},d28b:function(e,t,r){var n=r("746f");n("iterator")},d2bb:function(e,t,r){var n=r("825a"),a=r("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return n(r),a(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},d3b7:function(e,t,r){var n=r("00ee"),a=r("6eeb"),i=r("b041");n||a(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,r){var n=r("9bf2").f,a=r("5135"),i=r("b622"),o=i("toStringTag");e.exports=function(e,t,r){e&&!a(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},d58f:function(e,t,r){var n=r("1c0b"),a=r("7b0b"),i=r("44ad"),o=r("50c4"),s=function(e){return function(t,r,s,l){n(r);var c=a(t),u=i(c),d=o(c.length),h=e?d-1:0,f=e?-1:1;if(s<2)while(1){if(h in u){l=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(l=r(l,u[h],h,c));return l}};e.exports={left:s(!1),right:s(!0)}},d5d6:function(e,t,r){"use strict";var n=r("ebb5"),a=r("b727").forEach,i=n.aTypedArray,o=n.exportTypedArrayMethod;o("forEach",(function(e){a(i(this),e,arguments.length>1?arguments[1]:void 0)}))},d784:function(e,t,r){"use strict";r("ac1f");var n=r("6eeb"),a=r("d039"),i=r("b622"),o=r("9263"),s=r("9112"),l=i("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=i("replace"),h=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,d){var p=i(e),g=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),v=g&&!a((function(){var t=!1,r=/a/;return"split"===e&&(r={},r.constructor={},r.constructor[l]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!g||!v||"replace"===e&&(!c||!u||h)||"split"===e&&!f){var m=/./[p],b=r(p,""[e],(function(e,t,r,n,a){return t.exec===o?g&&!a?{done:!0,value:m.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=b[0],w=b[1];n(String.prototype,e,y),n(RegExp.prototype,p,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},d81d:function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").map,i=r("1dde"),o=r("ae40"),s=i("map"),l=o("map");n({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},da3a:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("d3b7"),r("e6cf");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSidebarResizer=void 0;var i=r("0496"),o="--sidebar-width",s=200,l="sidebarResizing",c=function(){function e(t,r){var a=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.NullL10n;n(this,e),this.enabled=!1,this.isRTL=!1,this.sidebarOpen=!1,this.doc=document.documentElement,this._width=null,this._outerContainerWidth=null,this._boundEvents=Object.create(null),this.outerContainer=t.outerContainer,this.resizer=t.resizer,this.eventBus=r,this.l10n=l,"undefined"!==typeof CSS&&"function"===typeof CSS.supports&&CSS.supports(o,"calc(-1 * ".concat(s,"px)"))?(this.enabled=!0,this.resizer.classList.remove("hidden"),this.l10n.getDirection().then((function(e){a.isRTL="rtl"===e})),this._addEventListeners()):console.warn("PDFSidebarResizer: The browser does not support resizing of the sidebar.")}return a(e,[{key:"_updateWidth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.enabled)return!1;var t=(0,i.clamp)(e,s,Math.floor(this.outerContainerWidth/2));return t!==this._width&&(this._width=t,this.doc.style.setProperty(o,"".concat(t,"px")),!0)}},{key:"_mouseMove",value:function(e){var t=e.clientX;this.isRTL&&(t=this.outerContainerWidth-t),this._updateWidth(t)}},{key:"_mouseUp",value:function(e){this.outerContainer.classList.remove(l),this.eventBus.dispatch("resize",{source:this});var t=this._boundEvents;window.removeEventListener("mousemove",t.mouseMove),window.removeEventListener("mouseup",t.mouseUp)}},{key:"_addEventListeners",value:function(){var e=this;if(this.enabled){var t=this._boundEvents;t.mouseMove=this._mouseMove.bind(this),t.mouseUp=this._mouseUp.bind(this),this.resizer.addEventListener("mousedown",(function(r){0===r.button&&(e.outerContainer.classList.add(l),window.addEventListener("mousemove",t.mouseMove),window.addEventListener("mouseup",t.mouseUp))})),this.eventBus._on("sidebarviewchanged",(function(t){e.sidebarOpen=!(!t||!t.view)})),this.eventBus._on("resize",(function(t){if(t&&t.source===window&&(e._outerContainerWidth=null,e._width))if(e.sidebarOpen){e.outerContainer.classList.add(l);var r=e._updateWidth(e._width);Promise.resolve().then((function(){e.outerContainer.classList.remove(l),r&&e.eventBus.dispatch("resize",{source:e})}))}else e._updateWidth(e._width)}))}}},{key:"outerContainerWidth",get:function(){return this._outerContainerWidth||(this._outerContainerWidth=this.outerContainer.clientWidth),this._outerContainerWidth}}]),e}();t.PDFSidebarResizer=c},da84:function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r("c8ba"))},dacc:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("a623"),r("e260"),r("a15b"),r("fb6a"),r("b0c0"),r("a9e3"),r("8ba4"),r("d3b7"),r("e6cf"),r("ac1f"),r("3ca3"),r("5319"),r("5cc6"),r("fb2c"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("ddb0"),r("2b3d");var n=r("5bc3"),a=r("7037"),i=r("970b"),o=r("ed6d"),s=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=Q,t.arraysToBytes=$,t.assert=M,t.bytesToString=Z,t.createPromiseCapability=me,t.getVerbosityLevel=I,t.info=O,t.isArrayBuffer=ge,t.isArrayEqual=ve,t.isBool=he,t.isEmptyObj=de,t.isNum=fe,t.isString=pe,t.isSameOrigin=D,t.createValidAbsoluteUrl=B,t.removeNullCharacters=K,t.setVerbosityLevel=R,t.shadow=U,t.string32=ee,t.stringToBytes=J,t.stringToPDFString=le,t.stringToUTF8String=ce,t.utf8StringToString=ue,t.warn=L,t.unreachable=F,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.NativeImageDecoding=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r("6329");var l=[1,0,0,1,0,0];t.IDENTITY_MATRIX=l;var c=[.001,0,0,.001,0,0];t.FONT_IDENTITY_MATRIX=c;var u={NONE:"none",DECODE:"decode",DISPLAY:"display"};t.NativeImageDecoding=u;var d={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.PermissionFlag=d;var h={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.TextRenderingMode=h;var f={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.ImageKind=f;var p={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationType=p;var g={MARKED:"Marked",REVIEW:"Review"};t.AnnotationStateModelType=g;var v={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationMarkedState=v;var m={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReviewState=m;var b={GROUP:"Group",REPLY:"R"};t.AnnotationReplyType=b;var y={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFlag=y;var w={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationFieldFlag=w;var _={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationBorderStyleType=_;var k={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};t.StreamType=k;var x={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};t.FontType=x;var S={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=S;var A={NONE:0,BINARY:1,STREAM:2};t.CMapCompressionType=A;var C={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.OPS=C;var P={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};t.UNSUPPORTED_FEATURES=P;var T={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};t.PasswordResponses=T;var E=S.WARNINGS;function R(e){Number.isInteger(e)&&(E=e)}function I(){return E}function O(e){E>=S.INFOS&&console.log("Info: ".concat(e))}function L(e){E>=S.WARNINGS&&console.log("Warning: ".concat(e))}function F(e){throw new Error(e)}function M(e,t){e||F(t)}function D(e,t){var r;try{if(r=new URL(e),!r.origin||"null"===r.origin)return!1}catch(a){return!1}var n=new URL(t,r);return r.origin===n.origin}function N(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function B(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(N(r))return r}catch(n){}return null}function U(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var j=function(){function e(t){this.constructor===e&&F("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=j;var q=function(e){o(r,e);var t=s(r);function r(e,n){var a;return i(this,r),a=t.call(this,e),a.code=n,a}return r}(j);t.PasswordException=q;var z=function(e){o(r,e);var t=s(r);function r(e,n){var a;return i(this,r),a=t.call(this,e),a.details=n,a}return r}(j);t.UnknownErrorException=z;var V=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.InvalidPDFException=V;var W=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.MissingPDFException=W;var H=function(e){o(r,e);var t=s(r);function r(e,n){var a;return i(this,r),a=t.call(this,e),a.status=n,a}return r}(j);t.UnexpectedResponseException=H;var G=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.FormatError=G;var Y=function(e){o(r,e);var t=s(r);function r(){return i(this,r),t.apply(this,arguments)}return r}(j);t.AbortException=Y;var X=/\x00/g;function K(e){return"string"!==typeof e?(L("The argument for removeNullCharacters must be a string."),e):e.replace(X,"")}function Z(e){M(null!==e&&"object"===a(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t>24&255,e>>16&255,e>>8&255,255&e)}function te(){var e=new Uint8Array(4);e[0]=1;var t=new Uint32Array(e.buffer,0,1);return 1===t[0]}var re={get value(){return U(this,"value",te())}};function ne(){try{return new Function(""),!0}catch(e){return!1}}t.IsLittleEndianCached=re;var ae={get value(){return U(this,"value",ne())}};t.IsEvalSupportedCached=ae;var ie=["rgb(",0,",",0,",",0,")"],oe=function(){function e(){i(this,e)}return n(e,null,[{key:"makeCssRgb",value:function(e,t,r){return ie[1]=e,ie[3]=t,ie[5]=r,ie.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(e,t){var r=e[0]*t[0]+e[1]*t[2]+t[4],n=e[0]*t[1]+e[1]*t[3]+t[5];return[r,n]}},{key:"applyInverseTransform",value:function(e,t){var r=t[0]*t[3]-t[1]*t[2],n=(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,a=(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r;return[n,a]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),a=e.applyTransform(t.slice(2,4),r),i=e.applyTransform([t[0],t[3]],r),o=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],a[0],i[0],o[0]),Math.min(n[1],a[1],i[1],o[1]),Math.max(n[0],a[0],i[0],o[0]),Math.max(n[1],a[1],i[1],o[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],a=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],o=(r+i)/2,s=Math.sqrt((r+i)*(r+i)-4*(r*i-a*n))/2,l=o+s||1,c=o-s||1;return[Math.sqrt(l),Math.sqrt(c)]}},{key:"normalizeRect",value:function(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var a=[t[0],t[2],r[0],r[2]].sort(n),i=[t[1],t[3],r[1],r[3]].sort(n),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}]),e}();t.Util=oe;var se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function le(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;n2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var a=new Blob([t],{type:r});return URL.createObjectURL(a)}for(var i="data:".concat(r,";base64,"),o=0,s=t.length;o>2,h=(3&l)<<4|c>>4,f=o+1>6:64,p=o+2=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){r=t+1;break}}else-1===n&&(a=!1,n=t+1);return-1===n?"":e.slice(r,n)}function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!n;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,n="/"===o.charAt(0))}return t=r(a(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),o="/"===i(e,-1);return e=r(a(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var a=n(e.split("/")),i=n(r.split("/")),o=Math.min(a.length,i.length),s=o,l=0;l=1;--i)if(t=e.charCodeAt(i),47===t){if(!a){n=i;break}}else a=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,a=!0,i=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===n&&(a=!1,n=o+1),46===s?-1===t?t=o:1!==i&&(i=1):-1!==t&&(i=-1);else if(!a){r=o+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var i=function(e,t,r){return e.substr(t,r)}}).call(this,r("4362"))},e01a:function(e,t,r){"use strict";var n=r("23e7"),a=r("83ab"),i=r("da84"),o=r("5135"),s=r("861d"),l=r("9bf2").f,c=r("e893"),u=i.Symbol;if(a&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(o(d,e))return"";var r=g?t.slice(7,-1):t.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},e02d:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("4160"),r("c975"),r("e260"),r("fb6a"),r("45fc"),r("a434"),r("d3b7"),r("e6cf"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("159b"),r("96cf");var n=r("c973"),a=r("6374"),i=r("970b"),o=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var s=r("dacc"),l=function(){function e(t,r){var n=this;i(this,e),(0,s.assert)(r),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var a=t.initialData;if(a&&a.length>0){var o=new Uint8Array(a).buffer;this._queuedChunks.push(o)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){n._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){n._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){n._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){n._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}return o(e,[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,s.assert)(r)}}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}},{key:"getFullReader",value:function(){(0,s.assert)(!this._fullRequestReader);var e=this._queuedChunks;return this._queuedChunks=null,new c(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new u(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);var t=this._rangeReaders.slice(0);t.forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),e}();t.PDFDataTransportStream=l;var c=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i(this,e),this._stream=t,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var o,s=a(this._queuedChunks);try{for(s.s();!(o=s.n()).done;){var l=o.value;this._loaded+=l.byteLength}}catch(c){s.e(c)}finally{s.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}return o(e,[{key:"_enqueue",value:function(e){if(!this._done){if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.byteLength}}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,s.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]),e}(),u=function(){function e(t,r,n){i(this,e),this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return o(e,[{key:"_enqueue",value:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{var t=this._requests.shift();t.resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"read",value:function(){var e=n(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,s.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),e}()},e163:function(e,t,r){var n=r("5135"),a=r("7b0b"),i=r("f772"),o=r("e177"),s=i("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,r){var n=r("d039");e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e200:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("d3b7"),r("e6cf"),r("18a5");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFThumbnailView=void 0;var i=r("a3cd"),o=r("0496"),s=r("ef24"),l=3,c=1,u=98,d=function(){var e=null;return{getCanvas:function(t,r){var n=e;n||(n=document.createElement("canvas"),e=n),n.width=t,n.height=r,n.mozOpaque=!0;var a=n.getContext("2d",{alpha:!1});return a.save(),a.fillStyle="rgb(255, 255, 255)",a.fillRect(0,0,t,r),a.restore(),n},destroyCanvas:function(){var t=e;t&&(t.width=0,t.height=0),e=null}}}(),h=function(){function e(t){var r=t.container,a=t.id,i=t.defaultViewport,l=t.linkService,d=t.renderingQueue,h=t.disableCanvasToImageConversion,f=void 0!==h&&h,p=t.l10n,g=void 0===p?o.NullL10n:p;n(this,e),this.id=a,this.renderingId="thumbnail"+a,this.pageLabel=null,this.pdfPage=null,this.rotation=0,this.viewport=i,this.pdfPageRotate=i.rotation,this.linkService=l,this.renderingQueue=d,this.renderTask=null,this.renderingState=s.RenderingStates.INITIAL,this.resume=null,this.disableCanvasToImageConversion=f,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasWidth=u,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth,this.l10n=g;var v=document.createElement("a");v.href=l.getAnchorUrl("#page="+a),this._thumbPageTitle.then((function(e){v.title=e})),v.onclick=function(){return l.page=a,!1},this.anchor=v;var m=document.createElement("div");m.className="thumbnail",m.setAttribute("data-page-number",this.id),this.div=m;var b=document.createElement("div");b.className="thumbnailSelectionRing";var y=2*c;b.style.width=this.canvasWidth+y+"px",b.style.height=this.canvasHeight+y+"px",this.ring=b,m.appendChild(b),v.appendChild(m),r.appendChild(v)}return a(e,[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:1,rotation:t}),this.reset()}},{key:"reset",value:function(){this.cancelRendering(),this.renderingState=s.RenderingStates.INITIAL,this.pageWidth=this.viewport.width,this.pageHeight=this.viewport.height,this.pageRatio=this.pageWidth/this.pageHeight,this.canvasHeight=this.canvasWidth/this.pageRatio|0,this.scale=this.canvasWidth/this.pageWidth,this.div.removeAttribute("data-loaded");for(var e=this.ring,t=e.childNodes,r=t.length-1;r>=0;r--)e.removeChild(t[r]);var n=2*c;e.style.width=this.canvasWidth+n+"px",e.style.height=this.canvasHeight+n+"px",this.canvas&&(this.canvas.width=0,this.canvas.height=0,delete this.canvas),this.image&&(this.image.removeAttribute("src"),delete this.image)}},{key:"update",value:function(e){"undefined"!==typeof e&&(this.rotation=e);var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=this.viewport.clone({scale:1,rotation:t}),this.reset()}},{key:"cancelRendering",value:function(){this.renderTask&&(this.renderTask.cancel(),this.renderTask=null),this.resume=null}},{key:"_getPageDrawContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.createElement("canvas");this.canvas=t,t.mozOpaque=!0;var r=t.getContext("2d",{alpha:!1}),n=(0,o.getOutputScale)(r);return t.width=this.canvasWidth*n.sx|0,t.height=this.canvasHeight*n.sy|0,t.style.width=this.canvasWidth+"px",t.style.height=this.canvasHeight+"px",!e&&n.scaled&&r.scale(n.sx,n.sy),r}},{key:"_convertCanvasToImage",value:function(){var e=this;if(this.canvas&&this.renderingState===s.RenderingStates.FINISHED){var t="thumbnailImage";if(this.disableCanvasToImageConversion)return this.canvas.className=t,this._thumbPageCanvas.then((function(t){e.canvas.setAttribute("aria-label",t)})),this.div.setAttribute("data-loaded",!0),void this.ring.appendChild(this.canvas);var r=document.createElement("img");r.className=t,this._thumbPageCanvas.then((function(e){r.setAttribute("aria-label",e)})),r.style.width=this.canvasWidth+"px",r.style.height=this.canvasHeight+"px",r.src=this.canvas.toDataURL(),this.image=r,this.div.setAttribute("data-loaded",!0),this.ring.appendChild(r),this.canvas.width=0,this.canvas.height=0,delete this.canvas}}},{key:"draw",value:function(){var e=this;if(this.renderingState!==s.RenderingStates.INITIAL)return console.error("Must be in new state before drawing"),Promise.resolve(void 0);var t=this.pdfPage;if(!t)return this.renderingState=s.RenderingStates.FINISHED,Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=s.RenderingStates.RUNNING;var r=(0,i.createPromiseCapability)(),n=function(t){u===e.renderTask&&(e.renderTask=null),t instanceof i.RenderingCancelledException?r.resolve(void 0):(e.renderingState=s.RenderingStates.FINISHED,e._convertCanvasToImage(),t?r.reject(t):r.resolve(void 0))},a=this._getPageDrawContext(),o=this.viewport.clone({scale:this.scale}),l=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=s.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=s.RenderingStates.RUNNING,t()});t()},c={canvasContext:a,viewport:o},u=this.renderTask=t.render(c);return u.onContinue=l,u.promise.then((function(){n(null)}),(function(e){n(e)})),r.promise}},{key:"setImage",value:function(e){if(this.renderingState===s.RenderingStates.INITIAL){var t=e.canvas;if(t){this.pdfPage||this.setPdfPage(e.pdfPage),this.renderingState=s.RenderingStates.FINISHED;var r=this._getPageDrawContext(!0),n=r.canvas;if(t.width<=2*n.width)return r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height),void this._convertCanvasToImage();var a=n.width<t.width||i>t.height)a>>=1,i>>=1;c.drawImage(t,0,0,t.width,t.height,0,0,a,i);while(a>2*n.width)c.drawImage(o,0,0,a,i,0,0,a>>1,i>>1),a>>=1,i>>=1;r.drawImage(o,0,0,a,i,0,0,n.width,n.height),this._convertCanvasToImage()}}}},{key:"setPageLabel",value:function(e){var t=this;this.pageLabel="string"===typeof e?e:null,this._thumbPageTitle.then((function(e){t.anchor.title=e})),this.renderingState===s.RenderingStates.FINISHED&&this._thumbPageCanvas.then((function(e){t.image?t.image.setAttribute("aria-label",e):t.disableCanvasToImageConversion&&t.canvas&&t.canvas.setAttribute("aria-label",e)}))}},{key:"_thumbPageTitle",get:function(){return this.l10n.get("thumb_page_title",{page:null!==this.pageLabel?this.pageLabel:this.id},"Page {{page}}")}},{key:"_thumbPageCanvas",get:function(){return this.l10n.get("thumb_page_canvas",{page:null!==this.pageLabel?this.pageLabel:this.id},"Thumbnail of Page {{page}}")}}],[{key:"cleanup",value:function(){d.destroyCanvas()}}]),e}();t.PDFThumbnailView=h},e260:function(e,t,r){"use strict";var n=r("fc6a"),a=r("44d2"),i=r("3f8c"),o=r("69f3"),s=r("7dd0"),l="Array Iterator",c=o.set,u=o.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},e2c3:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3"),o=r("ed6d"),s=r("2d0d");Object.defineProperty(t,"__esModule",{value:!0}),t.GenericCom=void 0;var l=r("ead8"),c=r("872e"),u=r("b781"),d=r("9e56"),h={};t.GenericCom=h;var f=function(e){o(r,e);var t=s(r);function r(){return a(this,r),t.apply(this,arguments)}return i(r,[{key:"_writeToStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:localStorage.setItem("pdfjs.preferences",JSON.stringify(t));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_readFromStorage",value:function(){var e=n(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",JSON.parse(localStorage.getItem("pdfjs.preferences")));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),r}(c.BasePreferences),p=function(e){o(r,e);var t=s(r);function r(){return a(this,r),t.apply(this,arguments)}return i(r,null,[{key:"createDownloadManager",value:function(e){return new u.DownloadManager(e)}},{key:"createPreferences",value:function(){return new f}},{key:"createL10n",value:function(e){var t=e.locale,r=void 0===t?"en-US":t;return new d.GenericL10n(r)}}]),r}(l.DefaultExternalServices);l.PDFViewerApplication.externalServices=p},e2cc:function(e,t,r){var n=r("6eeb");e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},e2f6:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("d3b7"),r("e6cf");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindBar=void 0;var i=r("0496"),o=r("f39c"),s=1e3,l=function(){function e(t,r){var a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.NullL10n;n(this,e),this.opened=!1,this.bar=t.bar||null,this.toggleButton=t.toggleButton||null,this.findField=t.findField||null,this.highlightAll=t.highlightAllCheckbox||null,this.caseSensitive=t.caseSensitiveCheckbox||null,this.entireWord=t.entireWordCheckbox||null,this.findMsg=t.findMsg||null,this.findResultsCount=t.findResultsCount||null,this.findPreviousButton=t.findPreviousButton||null,this.findNextButton=t.findNextButton||null,this.eventBus=r||(0,i.getGlobalEventBus)(),this.l10n=o,this.toggleButton.addEventListener("click",(function(){a.toggle()})),this.findField.addEventListener("input",(function(){a.dispatchEvent("")})),this.bar.addEventListener("keydown",(function(e){switch(e.keyCode){case 13:e.target===a.findField&&a.dispatchEvent("again",e.shiftKey);break;case 27:a.close();break}})),this.findPreviousButton.addEventListener("click",(function(){a.dispatchEvent("again",!0)})),this.findNextButton.addEventListener("click",(function(){a.dispatchEvent("again",!1)})),this.highlightAll.addEventListener("click",(function(){a.dispatchEvent("highlightallchange")})),this.caseSensitive.addEventListener("click",(function(){a.dispatchEvent("casesensitivitychange")})),this.entireWord.addEventListener("click",(function(){a.dispatchEvent("entirewordchange")})),this.eventBus._on("resize",this._adjustWidth.bind(this))}return a(e,[{key:"reset",value:function(){this.updateUIState()}},{key:"dispatchEvent",value:function(e,t){this.eventBus.dispatch("find",{source:this,type:e,query:this.findField.value,phraseSearch:!0,caseSensitive:this.caseSensitive.checked,entireWord:this.entireWord.checked,highlightAll:this.highlightAll.checked,findPrevious:t})}},{key:"updateUIState",value:function(e,t,r){var n=this,a=!1,i="",s="";switch(e){case o.FindState.FOUND:break;case o.FindState.PENDING:s="pending";break;case o.FindState.NOT_FOUND:i=this.l10n.get("find_not_found",null,"Phrase not found"),a=!0;break;case o.FindState.WRAPPED:i=t?this.l10n.get("find_reached_top",null,"Reached top of document, continued from bottom"):this.l10n.get("find_reached_bottom",null,"Reached end of document, continued from top");break}this.findField.classList.toggle("notFound",a),this.findField.setAttribute("data-status",s),Promise.resolve(i).then((function(e){n.findMsg.textContent=e,n._adjustWidth()})),this.updateResultsCount(r)}},{key:"updateResultsCount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.current,n=void 0===r?0:r,a=t.total,i=void 0===a?0:a;if(this.findResultsCount){var o=s,l="";i>0&&(l=i>o?this.l10n.get("find_match_count_limit",{limit:o},"More than {{limit}} match"+(1!==o?"es":"")):this.l10n.get("find_match_count",{current:n,total:i},"{{current}} of {{total}} match"+(1!==i?"es":""))),Promise.resolve(l).then((function(t){e.findResultsCount.textContent=t,e.findResultsCount.classList.toggle("hidden",!i),e._adjustWidth()}))}}},{key:"open",value:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden")),this.findField.select(),this.findField.focus(),this._adjustWidth()}},{key:"close",value:function(){this.opened&&(this.opened=!1,this.toggleButton.classList.remove("toggled"),this.bar.classList.add("hidden"),this.eventBus.dispatch("findbarclose",{source:this}))}},{key:"toggle",value:function(){this.opened?this.close():this.open()}},{key:"_adjustWidth",value:function(){if(this.opened){this.bar.classList.remove("wrapContainers");var e=this.bar.clientHeight,t=this.bar.firstElementChild.clientHeight;e>t&&this.bar.classList.add("wrapContainers")}}}]),e}();t.PDFFindBar=l},e3db:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},e439:function(e,t,r){var n=r("23e7"),a=r("d039"),i=r("fc6a"),o=r("06cf").f,s=r("83ab"),l=a((function(){o(1)})),c=!s||l;n({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},e538:function(e,t,r){var n=r("b622");t.f=n},e553:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("96cf");var n=r("c973"),a=r("970b"),i=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHistory=void 0;var o=20,s=function(){function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;a(this,e),this.fingerprint=t,this.cacheSize=n,this._initializedPromise=this._readFromStorage().then((function(e){var t=JSON.parse(e||"{}");if("files"in t)while(t.files.length>=r.cacheSize)t.files.shift();else t.files=[];for(var n=-1,a=0,i=t.files.length;a1&&(o=l(o,a(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e6cf:function(e,t,r){"use strict";var n,a,i,o,s=r("23e7"),l=r("c430"),c=r("da84"),u=r("d066"),d=r("fea9"),h=r("6eeb"),f=r("e2cc"),p=r("d44e"),g=r("2626"),v=r("861d"),m=r("1c0b"),b=r("19aa"),y=r("c6b6"),w=r("8925"),_=r("2266"),k=r("1c7e"),x=r("4840"),S=r("2cf4").set,A=r("b575"),C=r("cdf9"),P=r("44de"),T=r("f069"),E=r("e667"),R=r("69f3"),I=r("94ca"),O=r("b622"),L=r("2d00"),F=O("species"),M="Promise",D=R.get,N=R.set,B=R.getterFor(M),U=d,j=c.TypeError,q=c.document,z=c.process,V=u("fetch"),W=T.f,H=W,G="process"==y(z),Y=!!(q&&q.createEvent&&c.dispatchEvent),X="unhandledrejection",K="rejectionhandled",Z=0,J=1,Q=2,$=1,ee=2,te=I(M,(function(){var e=w(U)!==String(U);if(!e){if(66===L)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!U.prototype["finally"])return!0;if(L>=51&&/native code/.test(U))return!1;var t=U.resolve(1),r=function(e){e((function(){}),(function(){}))},n=t.constructor={};return n[F]=r,!(t.then((function(){}))instanceof r)})),re=te||!k((function(e){U.all(e)["catch"]((function(){}))})),ne=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ae=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;A((function(){var a=t.value,i=t.state==J,o=0;while(n.length>o){var s,l,c,u=n[o++],d=i?u.ok:u.fail,h=u.resolve,f=u.reject,p=u.domain;try{d?(i||(t.rejection===ee&&le(e,t),t.rejection=$),!0===d?s=a:(p&&p.enter(),s=d(a),p&&(p.exit(),c=!0)),s===u.promise?f(j("Promise-chain cycle")):(l=ne(s))?l.call(s,h,f):h(s)):f(a)}catch(g){p&&!c&&p.exit(),f(g)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&oe(e,t)}))}},ie=function(e,t,r){var n,a;Y?(n=q.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},(a=c["on"+e])?a(n):e===X&&P("Unhandled promise rejection",r)},oe=function(e,t){S.call(c,(function(){var r,n=t.value,a=se(t);if(a&&(r=E((function(){G?z.emit("unhandledRejection",n,e):ie(X,e,n)})),t.rejection=G||se(t)?ee:$,r.error))throw r.value}))},se=function(e){return e.rejection!==$&&!e.parent},le=function(e,t){S.call(c,(function(){G?z.emit("rejectionHandled",e):ie(K,e,t.value)}))},ce=function(e,t,r,n){return function(a){e(t,r,a,n)}},ue=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=Q,ae(e,t,!0))},de=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw j("Promise can't be resolved itself");var a=ne(r);a?A((function(){var n={done:!1};try{a.call(r,ce(de,e,n,t),ce(ue,e,n,t))}catch(i){ue(e,n,i,t)}})):(t.value=r,t.state=J,ae(e,t,!1))}catch(i){ue(e,{done:!1},i,t)}}};te&&(U=function(e){b(this,U,M),m(e),n.call(this);var t=D(this);try{e(ce(de,this,t),ce(ue,this,t))}catch(r){ue(this,t,r)}},n=function(e){N(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},n.prototype=f(U.prototype,{then:function(e,t){var r=B(this),n=W(x(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=G?z.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=Z&&ae(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n,t=D(e);this.promise=e,this.resolve=ce(de,e,t),this.reject=ce(ue,e,t)},T.f=W=function(e){return e===U||e===i?new a(e):H(e)},l||"function"!=typeof d||(o=d.prototype.then,h(d.prototype,"then",(function(e,t){var r=this;return new U((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(U,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:U}),p(U,M,!1,!0),g(M),i=u(M),s({target:M,stat:!0,forced:te},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:l||te},{resolve:function(e){return C(l&&this===i?U:this,e)}}),s({target:M,stat:!0,forced:re},{all:function(e){var t=this,r=W(t),n=r.resolve,a=r.reject,i=E((function(){var r=m(t.resolve),i=[],o=0,s=1;_(e,(function(e){var l=o++,c=!1;i.push(void 0),s++,r.call(t,e).then((function(e){c||(c=!0,i[l]=e,--s||n(i))}),a)})),--s||n(i)}));return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=W(t),n=r.reject,a=E((function(){var a=m(t.resolve);_(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}})},e841:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,'html{content:""}@media (prefers-color-scheme:light){html{content:"light"}}@media (prefers-color-scheme:dark){html{content:"dark"}}',""]),e.exports=t},e893:function(e,t,r){var n=r("5135"),a=r("56ef"),i=r("06cf"),o=r("9bf2");e.exports=function(e,t){for(var r=a(t),s=o.f,l=i.f,c=0;c1?arguments[1]:void 0)}))},e95a:function(e,t,r){var n=r("b622"),a=r("3f8c"),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},ead8:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("99af"),r("caad"),r("e260"),r("a15b"),r("baa5"),r("45fc"),r("b0c0"),r("b680"),r("d3b7"),r("e6cf"),r("ac1f"),r("25f0"),r("2532"),r("3ca3"),r("5319"),r("841c"),r("1276"),r("5cc6"),r("9a8c"),r("a975"),r("735e"),r("c1ac"),r("d139"),r("3a7b"),r("d5d6"),r("82f8"),r("e91f"),r("60bd"),r("5f96"),r("3280"),r("3fcc"),r("ca91"),r("25a1"),r("cd26"),r("3c5d"),r("2954"),r("649e"),r("219c"),r("170b"),r("b39a"),r("72f7"),r("ddb0"),r("2b3d");var n=r("6374"),a=r("278c");r("96cf");var i=r("c973"),o=r("970b"),s=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPrintServiceFactory=t.DefaultExternalServices=t.PDFViewerApplication=void 0;var l=r("0496"),c=r("04d0"),u=r("a3cd"),d=r("6ee0"),h=r("ef24"),f=r("7122"),p=r("9a29"),g=r("7086"),v=r("6ea4"),m=r("16ba"),b=r("e2f6"),y=r("f39c"),w=r("9eea"),_=r("8a38"),k=r("345d"),x=r("fe36"),S=r("da3a"),A=r("80b1"),C=r("2a8b"),P=r("761b"),T=r("cf01"),E=r("e553"),R=1.1,I=5e3,O=1e4,L=1e3,F={UNKNOWN:-1,PREVIOUS:0,INITIAL:1},M=function(){function e(){throw o(this,e),new Error("Cannot initialize DefaultExternalServices.")}return s(e,null,[{key:"updateFindControlState",value:function(e){}},{key:"updateFindMatchesCount",value:function(e){}},{key:"initPassiveLoading",value:function(e){}},{key:"fallback",value:function(e,t){}},{key:"reportTelemetry",value:function(e){}},{key:"createDownloadManager",value:function(e){throw new Error("Not implemented: createDownloadManager")}},{key:"createPreferences",value:function(){throw new Error("Not implemented: createPreferences")}},{key:"createL10n",value:function(e){throw new Error("Not implemented: createL10n")}},{key:"supportsIntegratedFind",get:function(){return(0,u.shadow)(this,"supportsIntegratedFind",!1)}},{key:"supportsDocumentFonts",get:function(){return(0,u.shadow)(this,"supportsDocumentFonts",!0)}},{key:"supportedMouseWheelZoomModifierKeys",get:function(){return(0,u.shadow)(this,"supportedMouseWheelZoomModifierKeys",{ctrlKey:!0,metaKey:!0})}}]),e}();t.DefaultExternalServices=M;var D,N={initialBookmark:document.location.hash.substring(1),_initializedCapability:(0,u.createPromiseCapability)(),fellback:!1,appConfig:null,pdfDocument:null,pdfLoadingTask:null,printService:null,pdfViewer:null,pdfThumbnailViewer:null,pdfRenderingQueue:null,pdfPresentationMode:null,pdfDocumentProperties:null,pdfLinkService:null,pdfHistory:null,pdfSidebar:null,pdfSidebarResizer:null,pdfOutlineViewer:null,pdfAttachmentViewer:null,pdfCursorTools:null,store:null,downloadManager:null,overlayManager:null,preferences:null,toolbar:null,secondaryToolbar:null,eventBus:null,l10n:null,isInitialViewSet:!1,downloadComplete:!1,isViewerEmbedded:window.parent!==window,url:"",baseUrl:"",externalServices:M,_boundEvents:{},contentDispositionFilename:null,initialize:function(e){var t=this;return i(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.preferences=t.externalServices.createPreferences(),t.appConfig=e,r.next=4,t._readPreferences();case 4:return r.next=6,t._parseHashParameters();case 6:return r.next=8,t._initializeL10n();case 8:return t.isViewerEmbedded&&c.AppOptions.get("externalLinkTarget")===u.LinkTarget.NONE&&c.AppOptions.set("externalLinkTarget",u.LinkTarget.TOP),r.next=11,t._initializeViewerComponents();case 11:t.bindEvents(),t.bindWindowEvents(),n=e.appContainer||document.documentElement,t.l10n.translate(n).then((function(){t.eventBus.dispatch("localized",{source:t})})),t._initializedCapability.resolve();case 16:case"end":return r.stop()}}),r)})))()},_readPreferences:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!0!==c.AppOptions.get("disablePreferences")){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,e.preferences.getAll();case 5:for(n in r=t.sent,r)c.AppOptions.set(n,r[n]);t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](2),console.error('_readPreferences: "'.concat(t.t0.message,'".'));case 12:case"end":return t.stop()}}),t,null,[[2,9]])})))()},_parseHashParameters:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n,a,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(c.AppOptions.get("pdfBugEnabled")){t.next=2;break}return t.abrupt("return",void 0);case 2:if(r=document.location.hash.substring(1),r){t.next=5;break}return t.abrupt("return",void 0);case 5:if(n=(0,l.parseQueryString)(r),a=[],"disableworker"in n&&"true"===n["disableworker"]&&a.push(z()),"disablerange"in n&&c.AppOptions.set("disableRange","true"===n["disablerange"]),"disablestream"in n&&c.AppOptions.set("disableStream","true"===n["disablestream"]),"disableautofetch"in n&&c.AppOptions.set("disableAutoFetch","true"===n["disableautofetch"]),"disablefontface"in n&&c.AppOptions.set("disableFontFace","true"===n["disablefontface"]),"disablehistory"in n&&c.AppOptions.set("disableHistory","true"===n["disablehistory"]),"webgl"in n&&c.AppOptions.set("enableWebGL","true"===n["webgl"]),"verbosity"in n&&c.AppOptions.set("verbosity",0|n["verbosity"]),!("textlayer"in n)){t.next=23;break}t.t0=n["textlayer"],t.next="off"===t.t0?18:"visible"===t.t0||"shadow"===t.t0||"hover"===t.t0?20:23;break;case 18:return c.AppOptions.set("textLayerMode",l.TextLayerMode.DISABLE),t.abrupt("break",23);case 20:return i=e.appConfig.viewerContainer,i.classList.add("textLayer-"+n["textlayer"]),t.abrupt("break",23);case 23:return"pdfbug"in n&&(c.AppOptions.set("pdfBug",!0),o=n["pdfbug"].split(","),a.push(W(o))),"locale"in n&&c.AppOptions.set("locale",n["locale"]),t.abrupt("return",Promise.all(a).catch((function(e){console.error('_parseHashParameters: "'.concat(e.message,'".'))})));case 26:case"end":return t.stop()}}),t)})))()},_initializeL10n:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.l10n=e.externalServices.createL10n({locale:c.AppOptions.get("locale")}),t.next=3,e.l10n.getDirection();case 3:r=t.sent,document.getElementsByTagName("html")[0].dir=r;case 5:case"end":return t.stop()}}),t)})))()},_initializeViewerComponents:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n,a,i,o,s,u,E;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=e.appConfig,e.overlayManager=new p.OverlayManager,n=r.eventBus||new l.EventBus({dispatchToDOM:c.AppOptions.get("eventBusDispatchToDOM")}),e.eventBus=n,a=new h.PDFRenderingQueue,a.onIdle=e.cleanup.bind(e),e.pdfRenderingQueue=a,i=new _.PDFLinkService({eventBus:n,externalLinkTarget:c.AppOptions.get("externalLinkTarget"),externalLinkRel:c.AppOptions.get("externalLinkRel"),ignoreDestinationZoom:c.AppOptions.get("ignoreDestinationZoom")}),e.pdfLinkService=i,o=e.externalServices.createDownloadManager({disableCreateObjectURL:c.AppOptions.get("disableCreateObjectURL")}),e.downloadManager=o,s=new y.PDFFindController({linkService:i,eventBus:n}),e.findController=s,u=r.mainContainer,E=r.viewerContainer,e.pdfViewer=new C.PDFViewer({container:u,viewer:E,eventBus:n,renderingQueue:a,linkService:i,downloadManager:o,findController:s,renderer:c.AppOptions.get("renderer"),enableWebGL:c.AppOptions.get("enableWebGL"),l10n:e.l10n,textLayerMode:c.AppOptions.get("textLayerMode"),imageResourcesPath:c.AppOptions.get("imageResourcesPath"),renderInteractiveForms:c.AppOptions.get("renderInteractiveForms"),enablePrintAutoRotate:c.AppOptions.get("enablePrintAutoRotate"),useOnlyCssZoom:c.AppOptions.get("useOnlyCssZoom"),maxCanvasPixels:c.AppOptions.get("maxCanvasPixels")}),a.setViewer(e.pdfViewer),i.setViewer(e.pdfViewer),e.pdfThumbnailViewer=new A.PDFThumbnailViewer({container:r.sidebar.thumbnailView,renderingQueue:a,linkService:i,l10n:e.l10n}),a.setThumbnailViewer(e.pdfThumbnailViewer),e.pdfHistory=new w.PDFHistory({linkService:i,eventBus:n}),i.setHistory(e.pdfHistory),e.supportsIntegratedFind||(e.findBar=new b.PDFFindBar(r.findBar,n,e.l10n)),e.pdfDocumentProperties=new m.PDFDocumentProperties(r.documentProperties,e.overlayManager,n,e.l10n),e.pdfCursorTools=new d.PDFCursorTools({container:u,eventBus:n,cursorToolOnLoad:c.AppOptions.get("cursorToolOnLoad")}),e.toolbar=new T.Toolbar(r.toolbar,n,e.l10n),e.secondaryToolbar=new P.SecondaryToolbar(r.secondaryToolbar,u,n),e.supportsFullscreen&&(e.pdfPresentationMode=new x.PDFPresentationMode({container:u,pdfViewer:e.pdfViewer,eventBus:n,contextMenuItems:r.fullscreen})),e.passwordPrompt=new g.PasswordPrompt(r.passwordOverlay,e.overlayManager,e.l10n),e.pdfOutlineViewer=new k.PDFOutlineViewer({container:r.sidebar.outlineView,eventBus:n,linkService:i}),e.pdfAttachmentViewer=new v.PDFAttachmentViewer({container:r.sidebar.attachmentsView,eventBus:n,downloadManager:o}),e.pdfSidebar=new f.PDFSidebar({elements:r.sidebar,pdfViewer:e.pdfViewer,pdfThumbnailViewer:e.pdfThumbnailViewer,eventBus:n,l10n:e.l10n}),e.pdfSidebar.onToggled=e.forceRendering.bind(e),e.pdfSidebarResizer=new S.PDFSidebarResizer(r.sidebarResizer,n,e.l10n);case 34:case"end":return t.stop()}}),t)})))()},run:function(e){this.initialize(e).then(H)},get initialized(){return this._initializedCapability.settled},get initializedPromise(){return this._initializedCapability.promise},zoomIn:function(e){if(!this.pdfViewer.isInPresentationMode){var t=this.pdfViewer.currentScale;do{t=(t*R).toFixed(2),t=Math.ceil(10*t)/10,t=Math.min(l.MAX_SCALE,t)}while(--e>0&&t0&&t>l.MIN_SCALE);this.pdfViewer.currentScaleValue=t}},zoomReset:function(){this.pdfViewer.isInPresentationMode||(this.pdfViewer.currentScaleValue=l.DEFAULT_SCALE_VALUE)},get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0},set page(e){this.pdfViewer.currentPageNumber=e},get page(){return this.pdfViewer.currentPageNumber},get printing(){return!!this.printService},get supportsPrinting(){return Fe.instance.supportsPrinting},get supportsFullscreen(){var e,t=document.documentElement;return e=!!(t.requestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullScreen||t.msRequestFullscreen),!1!==document.fullscreenEnabled&&!1!==document.mozFullScreenEnabled&&!1!==document.webkitFullscreenEnabled&&!1!==document.msFullscreenEnabled||(e=!1),(0,u.shadow)(this,"supportsFullscreen",e)},get supportsIntegratedFind(){return this.externalServices.supportsIntegratedFind},get supportsDocumentFonts(){return this.externalServices.supportsDocumentFonts},get loadingBar(){var e=new l.ProgressBar("#loadingBar");return(0,u.shadow)(this,"loadingBar",e)},get supportedMouseWheelZoomModifierKeys(){return this.externalServices.supportedMouseWheelZoomModifierKeys},initPassiveLoading:function(){throw new Error("Not implemented: initPassiveLoading")},setTitleUsingUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.url=e,this.baseUrl=e.split("#")[0];var t=(0,l.getPDFFileNameFromURL)(e,"");if(!t)try{t=decodeURIComponent((0,u.getFilenameFromUrl)(e))||e}catch(r){t=e}this.setTitle(t)},setTitle:function(e){this.isViewerEmbedded||(document.title=e)},close:function(){var e=this;return i(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.appConfig.errorWrapper.container,r.setAttribute("hidden","true"),e.pdfLoadingTask){t.next=4;break}return t.abrupt("return",void 0);case 4:return n=e.pdfLoadingTask.destroy(),e.pdfLoadingTask=null,e.pdfDocument&&(e.pdfDocument=null,e.pdfThumbnailViewer.setDocument(null),e.pdfViewer.setDocument(null),e.pdfLinkService.setDocument(null),e.pdfDocumentProperties.setDocument(null)),e.store=null,e.isInitialViewSet=!1,e.downloadComplete=!1,e.url="",e.baseUrl="",e.contentDispositionFilename=null,e.pdfSidebar.reset(),e.pdfOutlineViewer.reset(),e.pdfAttachmentViewer.reset(),e.pdfHistory&&e.pdfHistory.reset(),e.findBar&&e.findBar.reset(),e.toolbar.reset(),e.secondaryToolbar.reset(),"undefined"!==typeof PDFBug&&PDFBug.cleanup(),t.abrupt("return",n);case 22:case"end":return t.stop()}}),t)})))()},open:function(e,t){var r=this;return i(regeneratorRuntime.mark((function n(){var a,i,o,s,l,d,h,f,p;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!r.pdfLoadingTask){n.next=3;break}return n.next=3,r.close();case 3:for(i in a=c.AppOptions.getAll(c.OptionKind.WORKER),a)u.GlobalWorkerOptions[i]=a[i];for(l in o=Object.create(null),"string"===typeof e?(r.setTitleUsingUrl(e),o.url=e):e&&"byteLength"in e?o.data=e:e.url&&e.originalUrl&&(r.setTitleUsingUrl(e.originalUrl),o.url=e.url),s=c.AppOptions.getAll(c.OptionKind.API),s)d=s[l],o[l]=d;if(t)for(h in t)f=t[h],"length"===h&&r.pdfDocumentProperties.setFileSize(f),o[h]=f;return p=(0,u.getDocument)(o),r.pdfLoadingTask=p,p.onPassword=function(e,t){r.pdfLinkService.externalLinkEnabled=!1,r.passwordPrompt.setUpdateCallback(e,t),r.passwordPrompt.open()},p.onProgress=function(e){var t=e.loaded,n=e.total;r.progress(t/n)},p.onUnsupportedFeature=r.fallback.bind(r),n.abrupt("return",p.promise.then((function(e){r.load(e)}),(function(e){if(p===r.pdfLoadingTask){var t,n=e&&e.message;return t=e instanceof u.InvalidPDFException?r.l10n.get("invalid_file_error",null,"Invalid or corrupted PDF file."):e instanceof u.MissingPDFException?r.l10n.get("missing_file_error",null,"Missing PDF file."):e instanceof u.UnexpectedResponseException?r.l10n.get("unexpected_response_error",null,"Unexpected server response."):r.l10n.get("loading_error",null,"An error occurred while loading the PDF."),t.then((function(e){throw r.error(e,{message:n}),new Error(e)}))}})));case 16:case"end":return n.stop()}}),n)})))()},download:function(){var e=this;function t(){a.downloadUrl(r,n)}var r=this.baseUrl,n=this.contentDispositionFilename||(0,l.getPDFFileNameFromURL)(this.url),a=this.downloadManager;a.onerror=function(t){e.error("PDF failed to download: ".concat(t))},this.pdfDocument&&this.downloadComplete?this.pdfDocument.getData().then((function(e){var t=new Blob([e],{type:"application/pdf"});a.download(t,r,n)})).catch(t):t()},fallback:function(e){this.fellback||(this.fellback=!0,this.externalServices.fallback({featureId:e,url:this.baseUrl},(function(e){e&&N.download()})))},error:function(e,t){var r=[this.l10n.get("error_version_info",{version:u.version||"?",build:u.build||"?"},"PDF.js v{{version}} (build: {{build}})")];t&&(r.push(this.l10n.get("error_message",{message:t.message},"Message: {{message}}")),t.stack?r.push(this.l10n.get("error_stack",{stack:t.stack},"Stack: {{stack}}")):(t.filename&&r.push(this.l10n.get("error_file",{file:t.filename},"File: {{file}}")),t.lineNumber&&r.push(this.l10n.get("error_line",{line:t.lineNumber},"Line: {{line}}"))));var n=this.appConfig.errorWrapper,a=n.container;a.removeAttribute("hidden");var i=n.errorMessage;i.textContent=e;var o=n.closeButton;o.onclick=function(){a.setAttribute("hidden","true")};var s=n.errorMoreInfo,c=n.moreInfoButton,d=n.lessInfoButton;c.onclick=function(){s.removeAttribute("hidden"),c.setAttribute("hidden","true"),d.removeAttribute("hidden"),s.style.height=s.scrollHeight+"px"},d.onclick=function(){s.setAttribute("hidden","true"),c.removeAttribute("hidden"),d.setAttribute("hidden","true")},c.oncontextmenu=l.noContextMenuHandler,d.oncontextmenu=l.noContextMenuHandler,o.oncontextmenu=l.noContextMenuHandler,c.removeAttribute("hidden"),d.setAttribute("hidden","true"),Promise.all(r).then((function(e){s.value=e.join("\n")}))},progress:function(e){var t=this;if(!this.downloadComplete){var r=Math.round(100*e);if(r>this.loadingBar.percent||isNaN(r)){this.loadingBar.percent=r;var n=this.pdfDocument?this.pdfDocument.loadingParams["disableAutoFetch"]:c.AppOptions.get("disableAutoFetch");n&&r&&(this.disableAutoFetchLoadingBarTimeout&&(clearTimeout(this.disableAutoFetchLoadingBarTimeout),this.disableAutoFetchLoadingBarTimeout=null),this.loadingBar.show(),this.disableAutoFetchLoadingBarTimeout=setTimeout((function(){t.loadingBar.hide(),t.disableAutoFetchLoadingBarTimeout=null}),I))}}},load:function(e){var t=this;this.pdfDocument=e,e.getDownloadInfo().then((function(){t.downloadComplete=!0,t.loadingBar.hide(),g.then((function(){t.eventBus.dispatch("documentloaded",{source:t})}))}));var r=e.getPageLayout().catch((function(){})),o=e.getPageMode().catch((function(){})),s=e.getOpenAction().catch((function(){}));this.toolbar.setPagesCount(e.numPages,!1),this.secondaryToolbar.setPagesCount(e.numPages);var d,h=this.store=new E.ViewHistory(e.fingerprint);d=null,this.pdfLinkService.setDocument(e,d),this.pdfDocumentProperties.setDocument(e,this.url);var p=this.pdfViewer;p.setDocument(e);var g=p.firstPagePromise,v=p.onePageRendered,m=p.pagesPromise,b=this.pdfThumbnailViewer;b.setDocument(e),g.then((function(n){t.loadingBar.setWidth(t.appConfig.viewerContainer);var u=h.getMultiple({page:null,zoom:l.DEFAULT_SCALE_VALUE,scrollLeft:"0",scrollTop:"0",rotation:null,sidebarView:f.SidebarView.UNKNOWN,scrollMode:l.ScrollMode.UNKNOWN,spreadMode:l.SpreadMode.UNKNOWN}).catch((function(){}));Promise.all([l.animationStarted,u,r,o,s]).then(function(){var r=i(regeneratorRuntime.mark((function r(n){var i,o,s,u,d,h,g,v,b,y,w,_,k,x;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=a(n,5),i[0],o=i[1],s=void 0===o?{}:o,u=i[2],d=i[3],h=i[4],g=c.AppOptions.get("viewOnLoad"),t._initializePdfHistory({fingerprint:e.fingerprint,viewOnLoad:g,initialDest:h&&h.dest}),v=t.initialBookmark,b=c.AppOptions.get("defaultZoomValue"),y=b?"zoom=".concat(b):null,w=null,_=c.AppOptions.get("sidebarViewOnLoad"),k=c.AppOptions.get("scrollModeOnLoad"),x=c.AppOptions.get("spreadModeOnLoad"),s.page&&g!==F.INITIAL&&(y="page=".concat(s.page,"&zoom=").concat(b||s.zoom,",")+"".concat(s.scrollLeft,",").concat(s.scrollTop),w=parseInt(s.rotation,10),_===f.SidebarView.UNKNOWN&&(_=0|s.sidebarView),k===l.ScrollMode.UNKNOWN&&(k=0|s.scrollMode),x===l.SpreadMode.UNKNOWN&&(x=0|s.spreadMode)),d&&_===f.SidebarView.UNKNOWN&&(_=Le(d)),u&&x===l.SpreadMode.UNKNOWN&&(x=Oe(u)),t.setInitialView(y,{rotation:w,sidebarView:_,scrollMode:k,spreadMode:x}),t.eventBus.dispatch("documentinit",{source:t}),t.isViewerEmbedded||p.focus(),r.next=18,Promise.race([m,new Promise((function(e){setTimeout(e,O)}))]);case 18:if(v||y){r.next=20;break}return r.abrupt("return");case 20:if(!p.hasEqualPageSizes){r.next=22;break}return r.abrupt("return");case 22:t.initialBookmark=v,p.currentScaleValue=p.currentScaleValue,t.setInitialView(y);case 25:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch((function(){t.setInitialView()})).then((function(){p.update()}))})),e.getPageLabels().then((function(r){if(r&&!c.AppOptions.get("disablePageLabels")){var n=r.length;if(n===t.pagesCount){var a=0;while(a1&&void 0!==arguments[1]?arguments[1]:{},n=r.rotation,a=r.sidebarView,i=r.scrollMode,o=r.spreadMode,s=function(e){(0,l.isValidRotation)(e)&&(t.pdfViewer.pagesRotation=e)},c=function(e,r){(0,l.isValidScrollMode)(e)&&(t.pdfViewer.scrollMode=e),(0,l.isValidSpreadMode)(r)&&(t.pdfViewer.spreadMode=r)};this.isInitialViewSet=!0,this.pdfSidebar.setInitialView(a),c(i,o),this.initialBookmark?(s(this.initialRotation),delete this.initialRotation,this.pdfLinkService.setHash(this.initialBookmark),this.initialBookmark=null):e&&(s(n),this.pdfLinkService.setHash(e)),this.toolbar.setPageNumber(this.pdfViewer.currentPageNumber,this.pdfViewer.currentPageLabel),this.secondaryToolbar.setPageNumber(this.pdfViewer.currentPageNumber),this.pdfViewer.currentScaleValue||(this.pdfViewer.currentScaleValue=l.DEFAULT_SCALE_VALUE)},cleanup:function(){this.pdfDocument&&(this.pdfViewer.cleanup(),this.pdfThumbnailViewer.cleanup(),this.pdfViewer.renderer!==l.RendererType.SVG&&this.pdfDocument.cleanup())},forceRendering:function(){this.pdfRenderingQueue.printing=this.printing,this.pdfRenderingQueue.isThumbnailViewEnabled=this.pdfSidebar.isThumbnailViewVisible,this.pdfRenderingQueue.renderHighestPriority()},beforePrint:function(){var e=this;if(!this.printService)if(this.supportsPrinting)if(this.pdfViewer.pageViewsReady){var t=this.pdfViewer.getPagesOverview(),r=this.appConfig.printContainer,n=Fe.instance.createPrintService(this.pdfDocument,t,r,this.l10n);this.printService=n,this.forceRendering(),n.layout(),this.externalServices.reportTelemetry({type:"print"})}else this.l10n.get("printing_not_ready",null,"Warning: The PDF is not fully loaded for printing.").then((function(e){window.alert(e)}));else this.l10n.get("printing_not_supported",null,"Warning: Printing is not fully supported by this browser.").then((function(t){e.error(t)}))},afterPrint:function(){this.printService&&(this.printService.destroy(),this.printService=null),this.forceRendering()},rotatePages:function(e){if(this.pdfDocument){var t=(this.pdfViewer.pagesRotation+360+e)%360;this.pdfViewer.pagesRotation=t}},requestPresentationMode:function(){this.pdfPresentationMode&&this.pdfPresentationMode.request()},bindEvents:function(){var e=this.eventBus,t=this._boundEvents;t.beforePrint=this.beforePrint.bind(this),t.afterPrint=this.afterPrint.bind(this),e._on("resize",ee),e._on("hashchange",te),e._on("beforeprint",t.beforePrint),e._on("afterprint",t.afterPrint),e._on("pagerendered",G),e._on("updateviewarea",J),e._on("pagechanging",Ae),e._on("scalechanging",xe),e._on("rotationchanging",Se),e._on("sidebarviewchanged",Z),e._on("pagemode",Y),e._on("namedaction",X),e._on("presentationmodechanged",K),e._on("presentationmode",re),e._on("print",ne),e._on("download",ae),e._on("firstpage",ie),e._on("lastpage",oe),e._on("nextpage",se),e._on("previouspage",le),e._on("zoomin",ce),e._on("zoomout",ue),e._on("zoomreset",de),e._on("pagenumberchanged",he),e._on("scalechanged",fe),e._on("rotatecw",pe),e._on("rotateccw",ge),e._on("switchscrollmode",ve),e._on("scrollmodechanged",Q),e._on("switchspreadmode",me),e._on("spreadmodechanged",$),e._on("documentproperties",be),e._on("find",ye),e._on("findfromurlhash",we),e._on("updatefindmatchescount",_e),e._on("updatefindcontrolstate",ke),e._on("fileinputchange",U),e._on("openfile",j)},bindWindowEvents:function(){var e=this.eventBus,t=this._boundEvents;t.windowResize=function(){e.dispatch("resize",{source:window})},t.windowHashChange=function(){e.dispatch("hashchange",{source:window,hash:document.location.hash.substring(1)})},t.windowBeforePrint=function(){e.dispatch("beforeprint",{source:window})},t.windowAfterPrint=function(){e.dispatch("afterprint",{source:window})},window.addEventListener("visibilitychange",Ce),window.addEventListener("wheel",Ee,{passive:!1}),window.addEventListener("click",Re),window.addEventListener("keydown",Ie),window.addEventListener("resize",t.windowResize),window.addEventListener("hashchange",t.windowHashChange),window.addEventListener("beforeprint",t.windowBeforePrint),window.addEventListener("afterprint",t.windowAfterPrint)},unbindEvents:function(){var e=this.eventBus,t=this._boundEvents;e._off("resize",ee),e._off("hashchange",te),e._off("beforeprint",t.beforePrint),e._off("afterprint",t.afterPrint),e._off("pagerendered",G),e._off("updateviewarea",J),e._off("pagechanging",Ae),e._off("scalechanging",xe),e._off("rotationchanging",Se),e._off("sidebarviewchanged",Z),e._off("pagemode",Y),e._off("namedaction",X),e._off("presentationmodechanged",K),e._off("presentationmode",re),e._off("print",ne),e._off("download",ae),e._off("firstpage",ie),e._off("lastpage",oe),e._off("nextpage",se),e._off("previouspage",le),e._off("zoomin",ce),e._off("zoomout",ue),e._off("zoomreset",de),e._off("pagenumberchanged",he),e._off("scalechanged",fe),e._off("rotatecw",pe),e._off("rotateccw",ge),e._off("switchscrollmode",ve),e._off("scrollmodechanged",Q),e._off("switchspreadmode",me),e._off("spreadmodechanged",$),e._off("documentproperties",be),e._off("find",ye),e._off("findfromurlhash",we),e._off("updatefindmatchescount",_e),e._off("updatefindcontrolstate",ke),e._off("fileinputchange",U),e._off("openfile",j),t.beforePrint=null,t.afterPrint=null},unbindWindowEvents:function(){var e=this._boundEvents;window.removeEventListener("visibilitychange",Ce),window.removeEventListener("wheel",Ee),window.removeEventListener("click",Re),window.removeEventListener("keydown",Ie),window.removeEventListener("resize",e.windowResize),window.removeEventListener("hashchange",e.windowHashChange),window.removeEventListener("beforeprint",e.windowBeforePrint),window.removeEventListener("afterprint",e.windowAfterPrint),e.windowResize=null,e.windowHashChange=null,e.windowBeforePrint=null,e.windowAfterPrint=null}};t.PDFViewerApplication=N;var B,U,j,q=["null","http://mozilla.github.io","https://mozilla.github.io"];function z(){return V.apply(this,arguments)}function V(){return V=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return u.GlobalWorkerOptions.workerSrc||(u.GlobalWorkerOptions.workerSrc=c.AppOptions.get("workerSrc")),e.abrupt("return",(0,u.loadScript)(u.PDFWorker.getWorkerSrc()));case 2:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function W(e){var t=N.appConfig;return(0,u.loadScript)(t.debuggerScriptPath).then((function(){PDFBug.enable(e),PDFBug.init({OPS:u.OPS},t.mainContainer)}))}function H(){var e,t=N.appConfig,r=document.location.search.substring(1),n=(0,l.parseQueryString)(r);e="file"in n?n.file:c.AppOptions.get("defaultUrl"),D(e);var a=document.createElement("input");a.id=t.openFileInputName,a.className="fileInput",a.setAttribute("type","file"),a.oncontextmenu=l.noContextMenuHandler,document.body.appendChild(a),window.File&&window.FileReader&&window.FileList&&window.Blob?a.value=null:(t.toolbar.openFile.setAttribute("hidden","true"),t.secondaryToolbar.openFileButton.setAttribute("hidden","true")),a.addEventListener("change",(function(e){var t=e.target.files;t&&0!==t.length&&N.eventBus.dispatch("fileinputchange",{source:this,fileInput:e.target})})),t.mainContainer.addEventListener("dragover",(function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"})),t.mainContainer.addEventListener("drop",(function(e){e.preventDefault();var t=e.dataTransfer.files;t&&0!==t.length&&N.eventBus.dispatch("fileinputchange",{source:this,fileInput:e.dataTransfer})})),N.supportsDocumentFonts||(c.AppOptions.set("disableFontFace",!0),N.l10n.get("web_fonts_disabled",null,"Web fonts are disabled: unable to use embedded PDF fonts.").then((function(e){console.warn(e)}))),N.supportsPrinting||(t.toolbar.print.classList.add("hidden"),t.secondaryToolbar.printButton.classList.add("hidden")),N.supportsFullscreen||(t.toolbar.presentationModeButton.classList.add("hidden"),t.secondaryToolbar.presentationModeButton.classList.add("hidden")),N.supportsIntegratedFind&&t.toolbar.viewFind.classList.add("hidden"),t.mainContainer.addEventListener("transitionend",(function(e){e.target===this&&N.eventBus.dispatch("resize",{source:this})}),!0);try{B(e)}catch(i){N.l10n.get("loading_error",null,"An error occurred while loading the PDF.").then((function(e){N.error(e,i)}))}}function G(e){var t=e.pageNumber,r=t-1,n=N.pdfViewer.getPageView(r);if(t===N.page&&N.toolbar.updateLoadingIndicatorState(!1),n){if(N.pdfSidebar.isThumbnailViewVisible){var a=N.pdfThumbnailViewer.getThumbnail(r);a.setImage(n)}"undefined"!==typeof Stats&&Stats.enabled&&n.stats&&Stats.add(t,n.stats),n.error&&N.l10n.get("rendering_error",null,"An error occurred while rendering the page.").then((function(e){N.error(e,n.error)})),N.externalServices.reportTelemetry({type:"pageInfo",timestamp:e.timestamp}),N.pdfDocument.getStats().then((function(e){N.externalServices.reportTelemetry({type:"documentStats",stats:e})}))}}function Y(e){var t,r=e.mode;switch(r){case"thumbs":t=f.SidebarView.THUMBS;break;case"bookmarks":case"outline":t=f.SidebarView.OUTLINE;break;case"attachments":t=f.SidebarView.ATTACHMENTS;break;case"none":t=f.SidebarView.NONE;break;default:return void console.error('Invalid "pagemode" hash parameter: '+r)}N.pdfSidebar.switchView(t,!0)}function X(e){var t=e.action;switch(t){case"GoToPage":N.appConfig.toolbar.pageNumber.select();break;case"Find":N.supportsIntegratedFind||N.findBar.toggle();break}}function K(e){var t=e.active,r=e.switchInProgress,n=l.PresentationModeState.NORMAL;r?n=l.PresentationModeState.CHANGING:t&&(n=l.PresentationModeState.FULLSCREEN),N.pdfViewer.presentationModeState=n}function Z(e){N.pdfRenderingQueue.isThumbnailViewEnabled=N.pdfSidebar.isThumbnailViewVisible;var t=N.store;t&&N.isInitialViewSet&&t.set("sidebarView",e.view).catch((function(){}))}function J(e){var t=e.location,r=N.store;r&&N.isInitialViewSet&&r.setMultiple({page:t.pageNumber,zoom:t.scale,scrollLeft:t.left,scrollTop:t.top,rotation:t.rotation}).catch((function(){}));var n=N.pdfLinkService.getAnchorUrl(t.pdfOpenParams);N.appConfig.toolbar.viewBookmark.href=n,N.appConfig.secondaryToolbar.viewBookmarkButton.href=n;var a=N.pdfViewer.getPageView(N.page-1),i=a.renderingState!==h.RenderingStates.FINISHED;N.toolbar.updateLoadingIndicatorState(i)}function Q(e){var t=N.store;t&&N.isInitialViewSet&&t.set("scrollMode",e.mode).catch((function(){}))}function $(e){var t=N.store;t&&N.isInitialViewSet&&t.set("spreadMode",e.mode).catch((function(){}))}function ee(){var e=N.pdfDocument,t=N.pdfViewer;if(e){var r=t.currentScaleValue;"auto"!==r&&"page-fit"!==r&&"page-width"!==r||(t.currentScaleValue=r),t.update()}}function te(e){var t=e.hash;t&&(N.isInitialViewSet?N.pdfHistory.popStateInProgress||N.pdfLinkService.setHash(t):N.initialBookmark=t)}function re(){N.requestPresentationMode()}function ne(){window.print()}function ae(){N.download()}function ie(){N.pdfDocument&&(N.page=1)}function oe(){N.pdfDocument&&(N.page=N.pagesCount)}function se(){N.page++}function le(){N.page--}function ce(){N.zoomIn()}function ue(){N.zoomOut()}function de(){N.zoomReset()}function he(e){var t=N.pdfViewer;""!==e.value&&(t.currentPageLabel=e.value),e.value!==t.currentPageNumber.toString()&&e.value!==t.currentPageLabel&&N.toolbar.setPageNumber(t.currentPageNumber,t.currentPageLabel)}function fe(e){N.pdfViewer.currentScaleValue=e.value}function pe(){N.rotatePages(90)}function ge(){N.rotatePages(-90)}function ve(e){N.pdfViewer.scrollMode=e.mode}function me(e){N.pdfViewer.spreadMode=e.mode}function be(){N.pdfDocumentProperties.open()}function ye(e){N.findController.executeCommand("find"+e.type,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,entireWord:e.entireWord,highlightAll:e.highlightAll,findPrevious:e.findPrevious})}function we(e){N.findController.executeCommand("find",{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:!1,entireWord:!1,highlightAll:!0,findPrevious:!1})}function _e(e){var t=e.matchesCount;N.supportsIntegratedFind?N.externalServices.updateFindMatchesCount(t):N.findBar.updateResultsCount(t)}function ke(e){var t=e.state,r=e.previous,n=e.matchesCount;N.supportsIntegratedFind?N.externalServices.updateFindControlState({result:t,findPrevious:r,matchesCount:n}):N.findBar.updateUIState(t,r,n)}function xe(e){N.toolbar.setPageScale(e.presetValue,e.scale),N.pdfViewer.update()}function Se(e){N.pdfThumbnailViewer.pagesRotation=e.pagesRotation,N.forceRendering(),N.pdfViewer.currentPageNumber=e.pageNumber}function Ae(e){var t=e.pageNumber;if(N.toolbar.setPageNumber(t,e.pageLabel||null),N.secondaryToolbar.setPageNumber(t),N.pdfSidebar.isThumbnailViewVisible&&N.pdfThumbnailViewer.scrollThumbnailIntoView(t),"undefined"!==typeof Stats&&Stats.enabled){var r=N.pdfViewer.getPageView(t-1);r&&r.stats&&Stats.add(t,r.stats)}}function Ce(e){"visible"===document.visibilityState&&Te()}D=function(e){if(void 0!==e)try{var t=new URL(window.location.href).origin||"null";if(q.includes(t))return;var r=new URL(e,window.location.href),n=r.origin,a=r.protocol;if(n!==t&&"blob:"!==a)throw new Error("file origin does not match viewer's")}catch(o){var i=o&&o.message;throw N.l10n.get("loading_error",null,"An error occurred while loading the PDF.").then((function(e){N.error(e,{message:i})})),o}},B=function(e){if(e&&0===e.lastIndexOf("file:",0)){N.setTitleUsingUrl(e);var t=new XMLHttpRequest;return t.onload=function(){N.open(new Uint8Array(t.response))},t.open("GET",e),t.responseType="arraybuffer",void t.send()}e&&N.open(e)},U=function(e){if(!N.pdfViewer||!N.pdfViewer.isInPresentationMode){var t=e.fileInput.files[0];if(URL.createObjectURL&&!c.AppOptions.get("disableCreateObjectURL")){var r=URL.createObjectURL(t);t.name&&(r={url:r,originalUrl:t.name}),N.open(r)}else{N.setTitleUsingUrl(t.name);var n=new FileReader;n.onload=function(e){var t=e.target.result;N.open(new Uint8Array(t))},n.readAsArrayBuffer(t)}var a=N.appConfig;a.toolbar.viewBookmark.setAttribute("hidden","true"),a.secondaryToolbar.viewBookmarkButton.setAttribute("hidden","true"),a.toolbar.download.setAttribute("hidden","true"),a.secondaryToolbar.downloadButton.setAttribute("hidden","true")}},j=function(e){var t=N.appConfig.openFileInputName;document.getElementById(t).click()};var Pe=null;function Te(){Pe&&clearTimeout(Pe),Pe=setTimeout((function(){Pe=null}),L)}function Ee(e){var t=N.pdfViewer,r=N.supportedMouseWheelZoomModifierKeys;if(!t.isInPresentationMode)if(e.ctrlKey&&r.ctrlKey||e.metaKey&&r.metaKey){if(e.preventDefault(),Pe||"hidden"===document.visibilityState)return;var n=t.currentScale,a=(0,l.normalizeWheelEventDelta)(e),i=3,o=a*i;o<0?N.zoomOut(-o):N.zoomIn(o);var s=t.currentScale;if(n!==s){var c=s/n-1,u=t.container.getBoundingClientRect(),d=e.clientX-u.left,h=e.clientY-u.top;t.container.scrollLeft+=d*c,t.container.scrollTop+=h*c}}else Te()}function Re(e){if(N.secondaryToolbar.isOpen){var t=N.appConfig;(N.pdfViewer.containsElement(e.target)||t.toolbar.container.contains(e.target)&&e.target!==t.secondaryToolbar.toggleButton)&&N.secondaryToolbar.close()}}function Ie(e){if(!N.overlayManager.active){var t=!1,r=!1,n=(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0),a=N.pdfViewer,i=a&&a.isInPresentationMode;if(1===n||8===n||5===n||12===n)switch(e.keyCode){case 70:N.supportsIntegratedFind||(N.findBar.open(),t=!0);break;case 71:if(!N.supportsIntegratedFind){var o=N.findController.state;o&&N.findController.executeCommand("findagain",{query:o.query,phraseSearch:o.phraseSearch,caseSensitive:o.caseSensitive,entireWord:o.entireWord,highlightAll:o.highlightAll,findPrevious:5===n||12===n}),t=!0}break;case 61:case 107:case 187:case 171:i||N.zoomIn(),t=!0;break;case 173:case 109:case 189:i||N.zoomOut(),t=!0;break;case 48:case 96:i||(setTimeout((function(){N.zoomReset()})),t=!1);break;case 38:(i||N.page>1)&&(N.page=1,t=!0,r=!0);break;case 40:(i||N.page1)&&(N.page=1,t=!0,r=!0);break;case 35:(i||N.page0?N.page1&&N.page--,t=!0)}if(4===n)switch(e.keyCode){case 13:case 32:if(!i&&"page-fit"!==a.currentScaleValue)break;N.page>1&&N.page--,t=!0;break;case 82:N.rotatePages(-90);break}t||i||(e.keyCode>=33&&e.keyCode<=40||32===e.keyCode&&"BUTTON"!==l)&&(r=!0),r&&!a.containsElement(s)&&a.focus(),t&&e.preventDefault()}}}function Oe(e){switch(e){case"SinglePage":case"OneColumn":return l.SpreadMode.NONE;case"TwoColumnLeft":case"TwoPageLeft":return l.SpreadMode.ODD;case"TwoColumnRight":case"TwoPageRight":return l.SpreadMode.EVEN}return l.SpreadMode.NONE}function Le(e){switch(e){case"UseNone":return f.SidebarView.NONE;case"UseThumbs":return f.SidebarView.THUMBS;case"UseOutlines":return f.SidebarView.OUTLINE;case"UseAttachments":return f.SidebarView.ATTACHMENTS;case"UseOC":}return f.SidebarView.NONE}var Fe={instance:{supportsPrinting:!1,createPrintService:function(){throw new Error("Not implemented: createPrintService")}}};t.PDFPrintServiceFactory=Fe},ebb5:function(e,t,r){"use strict";var n,a=r("a981"),i=r("83ab"),o=r("da84"),s=r("861d"),l=r("5135"),c=r("f5df"),u=r("9112"),d=r("6eeb"),h=r("9bf2").f,f=r("e163"),p=r("d2bb"),g=r("b622"),v=r("90e3"),m=o.Int8Array,b=m&&m.prototype,y=o.Uint8ClampedArray,w=y&&y.prototype,_=m&&f(m),k=b&&f(b),x=Object.prototype,S=x.isPrototypeOf,A=g("toStringTag"),C=v("TYPED_ARRAY_TAG"),P=a&&!!p&&"Opera"!==c(o.opera),T=!1,E={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R=function(e){var t=c(e);return"DataView"===t||l(E,t)},I=function(e){return s(e)&&l(E,c(e))},O=function(e){if(I(e))return e;throw TypeError("Target is not a typed array")},L=function(e){if(p){if(S.call(_,e))return e}else for(var t in E)if(l(E,n)){var r=o[t];if(r&&(e===r||S.call(r,e)))return e}throw TypeError("Target is not a typed array constructor")},F=function(e,t,r){if(i){if(r)for(var n in E){var a=o[n];a&&l(a.prototype,e)&&delete a.prototype[e]}k[e]&&!r||d(k,e,r?t:P&&b[e]||t)}},M=function(e,t,r){var n,a;if(i){if(p){if(r)for(n in E)a=o[n],a&&l(a,e)&&delete a[e];if(_[e]&&!r)return;try{return d(_,e,r?t:P&&m[e]||t)}catch(s){}}for(n in E)a=o[n],!a||a[e]&&!r||d(a,e,t)}};for(n in E)o[n]||(P=!1);if((!P||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},P))for(n in E)o[n]&&p(o[n],_);if((!P||!k||k===x)&&(k=_.prototype,P))for(n in E)o[n]&&p(o[n].prototype,k);if(P&&f(w)!==k&&p(w,k),i&&!l(k,A))for(n in T=!0,h(k,A,{get:function(){return s(this)?this[C]:void 0}}),E)o[n]&&u(o[n],C,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:T&&C,aTypedArray:O,aTypedArrayConstructor:L,exportTypedArrayMethod:F,exportTypedArrayStaticMethod:M,isView:R,isTypedArray:I,TypedArray:_,TypedArrayPrototype:k}},eca3:function(e,t,r){"use strict";(function(e){ /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */ var n=r("7037");Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var a="object"===("undefined"===typeof e?"undefined":n(e))&&e+""==="[object process]"&&!e.versions["nw"]&&!e.versions["electron"];t.isNodeJS=a}).call(this,r("4362"))},ed6d:function(e,t,r){var n=r("4a4b");function a(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&&n(e,t)}e.exports=a},ef24:function(e,t,r){"use strict"; /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */r("d3b7"),r("e6cf"),r("a79d");var n=r("970b"),a=r("5bc3");Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=t.RenderingStates=void 0;var i=3e4,o={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};t.RenderingStates=o;var s=function(){function e(){n(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return a(e,[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(e){return this.highestPriorityPage===e.renderingId}},{key:"renderHighestPriority",value:function(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),i))}},{key:"getHighestPriority",value:function(e,t,r){var n=e.views,a=n.length;if(0===a)return null;for(var i=0;i=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(t){var r=e[t],n=e[t+1];if(t=0;a--){var i=e[a];if(!i.skipped){if(i.match+i.matchLength=r.match+r.matchLength)return r.skipped=!0,!0}}return!1}e.sort((function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match}));for(var a=0,i=e.length;a0){var n=e.charCodeAt(t),a=e.charCodeAt(t-1);if((0,s.getCharacterType)(n)===(0,s.getCharacterType)(a))return!1}var i=t+r-1;if(i0&&(this._matchesCountTotal+=s,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),r=function(r,n){var a=(0,o.createPromiseCapability)();e._extractTextPromises[r]=a.promise,t=t.then((function(){return e._pdfDocument.getPage(r+1).then((function(e){return e.getTextContent({normalizeWhitespace:!0})})).then((function(t){for(var n=t.items,i=[],o=0,s=n.length;o0)return i.matchIdx=t?i.matchIdx-1:i.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(l.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],!e){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=l.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.matchIdx,t=r?l.WRAPPED:l.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(l.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 i=0;ia)&&(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=p(this._state.query)),this._normalizedQuery}}]),e}();t.PDFFindController=g},f5b2:function(e,t,r){"use strict";var n=r("23e7"),a=r("6547").codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})},f5df:function(e,t,r){var n=r("00ee"),a=r("c6b6"),i=r("b622"),o=i("toStringTag"),s="Arguments"==a(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=Object(e),o))?r:s?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},f6d6:function(e,t,r){var n=r("23e7"),a=r("23cb"),i=String.fromCharCode,o=String.fromCodePoint,s=!!o&&1!=o.length;n({target:"String",stat:!0,forced:s},{fromCodePoint:function(e){var t,r=[],n=arguments.length,o=0;while(n>o){if(t=+arguments[o++],a(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},f772:function(e,t,r){var n=r("5692"),a=r("90e3"),i=n("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},f8cd:function(e,t,r){var n=r("a691");e.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},fb15:function(e,t,r){"use strict";if(r.r(t),"undefined"!==typeof window){var n=window.document.currentScript,a=r("8875");n=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pdf-app",class:[e.localTheme],attrs:{id:"vuePdfApp"}},[r("script",{attrs:{type:"application/l10n"}},[e._v(" "+e._s(e.defaultLocale)+" ")]),r("div",{attrs:{id:"outerContainer"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar"),expression:"showElem('sidebar')"}],class:[e.isToolbarHidden],attrs:{id:"sidebarContainer"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isSidebarToolbarHidden,expression:"!isSidebarToolbarHidden"}],attrs:{id:"toolbarSidebar"}},[e._t("toolbar-sidebar-prepend",null,null,e.slotProps),r("div",{staticClass:"splitToolbarButton toggled"},[r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewThumbnail","viewThumbnail"),expression:"showElem('sidebar.viewThumbnail', 'viewThumbnail')"}],staticClass:"toolbarButton toggled vue-pdf-app-icon view-thumbnail",attrs:{id:"viewThumbnail",title:"Show Thumbnails",tabindex:"2","data-l10n-id":"thumbs"}},[r("span",{attrs:{"data-l10n-id":"thumbs_label"}},[e._v("Thumbnails")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewOutline","viewOutline"),expression:"showElem('sidebar.viewOutline', 'viewOutline')"}],staticClass:"toolbarButton vue-pdf-app-icon view-outline",attrs:{id:"viewOutline",title:"Show Document Outline (double-click to expand/collapse all items)",tabindex:"3","data-l10n-id":"document_outline"}},[r("span",{attrs:{"data-l10n-id":"document_outline_label"}},[e._v("Document Outline")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewAttachments","viewAttachments"),expression:"showElem('sidebar.viewAttachments', 'viewAttachments')"}],staticClass:"toolbarButton vue-pdf-app-icon view-attachments",attrs:{id:"viewAttachments",title:"Show Attachments",tabindex:"4","data-l10n-id":"attachments"}},[r("span",{attrs:{"data-l10n-id":"attachments_label"}},[e._v("Attachments")])])]),e._t("toolbar-sidebar-append",null,null,e.slotProps)],2),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar"),expression:"showElem('sidebar')"}],class:{"zero-top":e.isSidebarToolbarHidden},attrs:{id:"sidebarContent"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewThumbnail"),expression:"showElem('sidebar.viewThumbnail')"}],attrs:{id:"thumbnailView"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewOutline"),expression:"showElem('sidebar.viewOutline')"}],staticClass:"hidden",attrs:{id:"outlineView"}}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar.viewAttachments"),expression:"showElem('sidebar.viewAttachments')"}],staticClass:"hidden",attrs:{id:"attachmentsView"}})]),r("div",{staticClass:"hidden",attrs:{id:"sidebarResizer"}})]),r("div",{attrs:{id:"mainContainer"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.findbar","findbar"),expression:"showElem('toolbar.toolbarViewerLeft.findbar', 'findbar')"}],staticClass:"findbar hidden doorHanger",attrs:{id:"findbar"}},[e._m(0),e._m(1),e._m(2),e._m(3)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar"),expression:"showElem('secondaryToolbar')"}],staticClass:"secondaryToolbar hidden doorHangerRight",attrs:{id:"secondaryToolbar"}},[r("div",{attrs:{id:"secondaryToolbarButtonContainer"}},[e._t("secondary-toolbar-prepend",null,null,e.slotProps),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryPresentationMode"),expression:"showElem('secondaryToolbar.secondaryPresentationMode')"}],staticClass:"secondaryToolbarButton presentationMode visibleLargeView vue-pdf-app-icon presentation-mode",attrs:{id:"secondaryPresentationMode",title:"Switch to Presentation Mode",tabindex:"51","data-l10n-id":"presentation_mode"}},[r("span",{attrs:{"data-l10n-id":"presentation_mode_label"}},[e._v("Presentation Mode")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryOpenFile"),expression:"showElem('secondaryToolbar.secondaryOpenFile')"}],staticClass:"secondaryToolbarButton openFile visibleLargeView vue-pdf-app-icon open-file",attrs:{id:"secondaryOpenFile",title:"Open File",tabindex:"52","data-l10n-id":"open_file"},on:{"~click":function(t){return e.bindOpenHandler(t)}}},[r("span",{attrs:{"data-l10n-id":"open_file_label"}},[e._v("Open")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryPrint"),expression:"showElem('secondaryToolbar.secondaryPrint')"}],staticClass:"secondaryToolbarButton print visibleMediumView vue-pdf-app-icon print-button",attrs:{id:"secondaryPrint",title:"Print",tabindex:"53","data-l10n-id":"print"}},[r("span",{attrs:{"data-l10n-id":"print_label"}},[e._v("Print")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryDownload"),expression:"showElem('secondaryToolbar.secondaryDownload')"}],staticClass:"secondaryToolbarButton download visibleMediumView vue-pdf-app-icon download-button",attrs:{id:"secondaryDownload",title:"Download",tabindex:"54","data-l10n-id":"download"}},[r("span",{attrs:{"data-l10n-id":"download_label"}},[e._v("Download")])]),r("a",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.secondaryViewBookmark"),expression:"showElem('secondaryToolbar.secondaryViewBookmark')"}],staticClass:"secondaryToolbarButton bookmark visibleSmallView vue-pdf-app-icon bookmark-button",attrs:{href:"#",id:"secondaryViewBookmark",title:"Current view (copy or open in new window)",tabindex:"55","data-l10n-id":"bookmark"}},[r("span",{attrs:{"data-l10n-id":"bookmark_label"}},[e._v("Current View")])]),e.showElem("secondaryToolbar.secondaryPresentationMode")||e.showElem("secondaryToolbar.secondaryOpenFile")||e.showElem("secondaryToolbar.secondaryPrint")||e.showElem("secondaryToolbar.secondaryDownload")||e.showElem("secondaryToolbar.secondaryViewBookmark")?r("div",{staticClass:"horizontalToolbarSeparator visibleLargeView"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.firstPage","firstPage"),expression:"showElem('secondaryToolbar.firstPage', 'firstPage')"}],staticClass:"secondaryToolbarButton firstPage vue-pdf-app-icon first-page",attrs:{id:"firstPage",title:"Go to First Page",tabindex:"56","data-l10n-id":"first_page"}},[r("span",{attrs:{"data-l10n-id":"first_page_label"}},[e._v("Go to First Page")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.lastPage","lastPage"),expression:"showElem('secondaryToolbar.lastPage', 'lastPage')"}],staticClass:"secondaryToolbarButton lastPage vue-pdf-app-icon last-page",attrs:{id:"lastPage",title:"Go to Last Page",tabindex:"57","data-l10n-id":"last_page"}},[r("span",{attrs:{"data-l10n-id":"last_page_label"}},[e._v("Go to Last Page")])]),e.showElem("secondaryToolbar.lastPage","lastPage")||e.showElem("secondaryToolbar.firstPage","firstPage")?r("div",{staticClass:"horizontalToolbarSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.pageRotateCw","pageRotateCw"),expression:"showElem('secondaryToolbar.pageRotateCw', 'pageRotateCw')"}],staticClass:"secondaryToolbarButton rotateCw vue-pdf-app-icon rotate-clockwise",attrs:{id:"pageRotateCw",title:"Rotate Clockwise",tabindex:"58","data-l10n-id":"page_rotate_cw"}},[r("span",{attrs:{"data-l10n-id":"page_rotate_cw_label"}},[e._v("Rotate Clockwise")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.pageRotateCcw","pageRotateCcw"),expression:"\n showElem('secondaryToolbar.pageRotateCcw', 'pageRotateCcw')\n "}],staticClass:"secondaryToolbarButton rotateCcw vue-pdf-app-icon rotate-counter-clockwise",attrs:{id:"pageRotateCcw",title:"Rotate Counterclockwise",tabindex:"59","data-l10n-id":"page_rotate_ccw"}},[r("span",{attrs:{"data-l10n-id":"page_rotate_ccw_label"}},[e._v("Rotate Counterclockwise")])]),e.showElem("secondaryToolbar.pageRotateCcw","pageRotateCcw")||e.showElem("secondaryToolbar.pageRotateCw","pageRotateCw")?r("div",{staticClass:"horizontalToolbarSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.cursorSelectTool","cursorSelectTool"),expression:"\n showElem(\n 'secondaryToolbar.cursorSelectTool',\n 'cursorSelectTool'\n )\n "}],staticClass:"secondaryToolbarButton selectTool toggled vue-pdf-app-icon select-tool",attrs:{id:"cursorSelectTool",title:"Enable Text Selection Tool",tabindex:"60","data-l10n-id":"cursor_text_select_tool"}},[r("span",{attrs:{"data-l10n-id":"cursor_text_select_tool_label"}},[e._v("Text Selection Tool")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.cursorHandTool","cursorHandTool"),expression:"\n showElem('secondaryToolbar.cursorHandTool', 'cursorHandTool')\n "}],staticClass:"secondaryToolbarButton handTool vue-pdf-app-icon hand-tool",attrs:{id:"cursorHandTool",title:"Enable Hand Tool",tabindex:"61","data-l10n-id":"cursor_hand_tool"}},[r("span",{attrs:{"data-l10n-id":"cursor_hand_tool_label"}},[e._v("Hand Tool")])]),e.showElem("secondaryToolbar.cursorHandTool","cursorHandTool")||e.showElem("secondaryToolbar.cursorSelectTool","cursorSelectTool")?r("div",{staticClass:"horizontalToolbarSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.scrollVertical","scrollVertical"),expression:"\n showElem('secondaryToolbar.scrollVertical', 'scrollVertical')\n "}],staticClass:"secondaryToolbarButton scrollModeButtons scrollVertical toggled vue-pdf-app-icon scroll-vertical",attrs:{id:"scrollVertical",title:"Use Vertical Scrolling",tabindex:"62","data-l10n-id":"scroll_vertical"}},[r("span",{attrs:{"data-l10n-id":"scroll_vertical_label"}},[e._v("Vertical Scrolling")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.scrollHorizontal","scrollHorizontal"),expression:"\n showElem(\n 'secondaryToolbar.scrollHorizontal',\n 'scrollHorizontal'\n )\n "}],staticClass:"secondaryToolbarButton scrollModeButtons scrollHorizontal vue-pdf-app-icon scroll-horizontal",attrs:{id:"scrollHorizontal",title:"Use Horizontal Scrolling",tabindex:"63","data-l10n-id":"scroll_horizontal"}},[r("span",{attrs:{"data-l10n-id":"scroll_horizontal_label"}},[e._v("Horizontal Scrolling")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.scrollWrapped","scrollWrapped"),expression:"\n showElem('secondaryToolbar.scrollWrapped', 'scrollWrapped')\n "}],staticClass:"secondaryToolbarButton scrollModeButtons scrollWrapped vue-pdf-app-icon scroll-wrapped",attrs:{id:"scrollWrapped",title:"Use Wrapped Scrolling",tabindex:"64","data-l10n-id":"scroll_wrapped"}},[r("span",{attrs:{"data-l10n-id":"scroll_wrapped_label"}},[e._v("Wrapped Scrolling")])]),e.showElem("secondaryToolbar.scrollWrapped","scrollWrapped")||e.showElem("secondaryToolbar.scrollHorizontal","scrollHorizontal")||e.showElem("secondaryToolbar.scrollVertical","scrollVertical")?r("div",{staticClass:"horizontalToolbarSeparator scrollModeButtons"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.spreadNone","spreadNone"),expression:"showElem('secondaryToolbar.spreadNone', 'spreadNone')"}],staticClass:"secondaryToolbarButton spreadModeButtons spreadNone toggled vue-pdf-app-icon spread-none",attrs:{id:"spreadNone",title:"Do not join page spreads",tabindex:"65","data-l10n-id":"spread_none"}},[r("span",{attrs:{"data-l10n-id":"spread_none_label"}},[e._v("No Spreads")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.spreadOdd","spreadOdd"),expression:"showElem('secondaryToolbar.spreadOdd', 'spreadOdd')"}],staticClass:"secondaryToolbarButton spreadModeButtons vue-pdf-app-icon spread-odd",attrs:{id:"spreadOdd",title:"Join page spreads starting with odd-numbered pages",tabindex:"66","data-l10n-id":"spread_odd"}},[r("span",{attrs:{"data-l10n-id":"spread_odd_label"}},[e._v("Odd Spreads")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.spreadEven","spreadEven"),expression:"showElem('secondaryToolbar.spreadEven', 'spreadEven')"}],staticClass:"secondaryToolbarButton spreadModeButtons spreadEven vue-pdf-app-icon spread-even",attrs:{id:"spreadEven",title:"Join page spreads starting with even-numbered pages",tabindex:"67","data-l10n-id":"spread_even"}},[r("span",{attrs:{"data-l10n-id":"spread_even_label"}},[e._v("Even Spreads")])]),e.showElem("secondaryToolbar.spreadEven","spreadEven")||e.showElem("secondaryToolbar.spreadOdd","spreadOdd")||e.showElem("secondaryToolbar.spreadNone","spreadNone")?r("div",{staticClass:"horizontalToolbarSeparator spreadModeButtons"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar.documentProperties","documentProperties"),expression:"\n showElem(\n 'secondaryToolbar.documentProperties',\n 'documentProperties'\n )\n "}],staticClass:"secondaryToolbarButton documentProperties vue-pdf-app-icon document-properties",attrs:{id:"documentProperties",title:"Document Properties…",tabindex:"68","data-l10n-id":"document_properties"}},[r("span",{attrs:{"data-l10n-id":"document_properties_label"}},[e._v("Document Properties…")])]),e._t("secondary-toolbar-append",null,null,e.slotProps)],2)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar"),expression:"showElem('toolbar')"}],staticClass:"toolbar"},[r("div",{attrs:{id:"toolbarContainer"}},[r("div",{attrs:{id:"toolbarViewer"}},[r("div",{attrs:{id:"toolbarViewerLeft"}},[e._t("toolbar-left-prepend",null,null,e.slotProps),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("sidebar","sidebarToggle"),expression:"showElem('sidebar', 'sidebarToggle')"}],staticClass:"toolbarButton vue-pdf-app-icon sidebar-toggle",attrs:{id:"sidebarToggle",title:"Toggle Sidebar",tabindex:"11","data-l10n-id":"toggle_sidebar"}},[r("span",{attrs:{"data-l10n-id":"toggle_sidebar_label"}},[e._v("Toggle Sidebar")])]),e.showElem("sidebar")?r("div",{staticClass:"toolbarButtonSpacer"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.findbar","toggleFindbar"),expression:"\n showElem(\n 'toolbar.toolbarViewerLeft.findbar',\n 'toggleFindbar'\n )\n "}],staticClass:"toolbarButton vue-pdf-app-icon view-find",attrs:{id:"viewFind",title:"Find in Document",tabindex:"12","data-l10n-id":"findbar"}},[r("span",{attrs:{"data-l10n-id":"findbar_label"}},[e._v("Find")])]),r("div",{staticClass:"splitToolbarButton hiddenSmallView"},[r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.previous","previousPage"),expression:"\n showElem(\n 'toolbar.toolbarViewerLeft.previous',\n 'previousPage'\n )\n "}],staticClass:"toolbarButton pageUp vue-pdf-app-icon page-up",attrs:{title:"Previous Page",id:"previous",tabindex:"13","data-l10n-id":"previous"}},[r("span",{attrs:{"data-l10n-id":"previous_label"}},[e._v("Previous")])]),e.showElem("toolbar.toolbarViewerLeft.next","nextPage")&&e.showElem("toolbar.toolbarViewerLeft.previous","previousPage")?r("div",{staticClass:"splitToolbarButtonSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.next","nextPage"),expression:"\n showElem('toolbar.toolbarViewerLeft.next', 'nextPage')\n "}],staticClass:"toolbarButton pageDown vue-pdf-app-icon page-down",attrs:{title:"Next Page",id:"next",tabindex:"14","data-l10n-id":"next"}},[r("span",{attrs:{"data-l10n-id":"next_label"}},[e._v("Next")])])]),r("input",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.pageNumber","pageNumber"),expression:"\n showElem(\n 'toolbar.toolbarViewerLeft.pageNumber',\n 'pageNumber'\n )\n "}],staticClass:"toolbarField pageNumber",attrs:{type:"number",id:"pageNumber",title:"Page",value:"1",size:"4",min:"1",tabindex:"15","data-l10n-id":"page",autocomplete:"off"}}),r("span",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerLeft.pageNumber","numPages"),expression:"\n showElem('toolbar.toolbarViewerLeft.pageNumber', 'numPages')\n "}],staticClass:"toolbarLabel",attrs:{id:"numPages"}}),e._t("toolbar-left-append",null,null,e.slotProps)],2),r("div",{attrs:{id:"toolbarViewerRight"}},[e._t("toolbar-right-prepend",null,null,e.slotProps),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.presentationMode","presentationMode"),expression:"\n showElem(\n 'toolbar.toolbarViewerRight.presentationMode',\n 'presentationMode'\n )\n "}],staticClass:"toolbarButton presentationMode hiddenLargeView vue-pdf-app-icon presentation-mode",attrs:{id:"presentationMode",title:"Switch to Presentation Mode",tabindex:"31","data-l10n-id":"presentation_mode"}},[r("span",{attrs:{"data-l10n-id":"presentation_mode_label"}},[e._v("Presentation Mode")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.openFile","openFile"),expression:"\n showElem('toolbar.toolbarViewerRight.openFile', 'openFile')\n "}],staticClass:"toolbarButton openFile hiddenLargeView vue-pdf-app-icon open-file",attrs:{id:"openFile",title:"Open File",tabindex:"32","data-l10n-id":"open_file"},on:{"~click":function(t){return e.bindOpenHandler(t)}}},[r("span",{attrs:{"data-l10n-id":"open_file_label"}},[e._v("Open")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.print","print"),expression:"showElem('toolbar.toolbarViewerRight.print', 'print')"}],staticClass:"toolbarButton print hiddenMediumView vue-pdf-app-icon print-button",attrs:{id:"print",title:"Print",tabindex:"33","data-l10n-id":"print"}},[r("span",{attrs:{"data-l10n-id":"print_label"}},[e._v("Print")])]),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.download","download"),expression:"\n showElem('toolbar.toolbarViewerRight.download', 'download')\n "}],staticClass:"toolbarButton download hiddenMediumView vue-pdf-app-icon download-button",attrs:{id:"download",title:"Download",tabindex:"34","data-l10n-id":"download"}},[r("span",{attrs:{"data-l10n-id":"download_label"}},[e._v("Download")])]),r("a",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerRight.viewBookmark","viewBookmark"),expression:"\n showElem(\n 'toolbar.toolbarViewerRight.viewBookmark',\n 'viewBookmark'\n )\n "}],staticClass:"toolbarButton bookmark hiddenSmallView vue-pdf-app-icon bookmark-button",attrs:{href:"#",id:"viewBookmark",title:"Current view (copy or open in new window)",tabindex:"35","data-l10n-id":"bookmark"}},[r("span",{attrs:{"data-l10n-id":"bookmark_label"}},[e._v("Current View")])]),e.showElem("secondaryToolbar")?r("div",{staticClass:"verticalToolbarSeparator hiddenSmallView"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("secondaryToolbar"),expression:"showElem('secondaryToolbar')"}],staticClass:"toolbarButton vue-pdf-app-icon secondary-toolbar-toggle",attrs:{id:"secondaryToolbarToggle",title:"Tools",tabindex:"36","data-l10n-id":"tools"}},[r("span",{attrs:{"data-l10n-id":"tools_label"}},[e._v("Tools")])]),e._t("toolbar-right-append",null,null,e.slotProps)],2),r("div",{attrs:{id:"toolbarViewerMiddle"}},[e._t("toolbar-middle-prepend",null,null,e.slotProps),r("div",{staticClass:"splitToolbarButton"},[r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerMiddle.zoomOut","zoomOut"),expression:"\n showElem('toolbar.toolbarViewerMiddle.zoomOut', 'zoomOut')\n "}],staticClass:"toolbarButton zoomOut vue-pdf-app-icon zoom-out",attrs:{id:"zoomOut",title:"Zoom Out",tabindex:"21","data-l10n-id":"zoom_out"}},[r("span",{attrs:{"data-l10n-id":"zoom_out_label"}},[e._v("Zoom Out")])]),e.showElem("toolbar.toolbarViewerMiddle.zoomIn","zoomIn")&&e.showElem("toolbar.toolbarViewerMiddle.zoomOut","zoomOut")?r("div",{staticClass:"splitToolbarButtonSeparator"}):e._e(),r("button",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerMiddle.zoomIn","zoomIn"),expression:"\n showElem('toolbar.toolbarViewerMiddle.zoomIn', 'zoomIn')\n "}],staticClass:"toolbarButton zoomIn vue-pdf-app-icon zoom-in",attrs:{id:"zoomIn",title:"Zoom In",tabindex:"22","data-l10n-id":"zoom_in"}},[r("span",{attrs:{"data-l10n-id":"zoom_in_label"}},[e._v("Zoom In")])])]),r("span",{directives:[{name:"show",rawName:"v-show",value:e.showElem("toolbar.toolbarViewerMiddle.scaleSelectContainer"),expression:"\n showElem('toolbar.toolbarViewerMiddle.scaleSelectContainer')\n "}],staticClass:"dropdownToolbarButton vue-pdf-app-icon dropdown-toolbar-button",attrs:{id:"scaleSelectContainer"}},[r("select",{attrs:{id:"scaleSelect",title:"Zoom",tabindex:"23","data-l10n-id":"zoom"}},[r("option",{attrs:{id:"pageAutoOption",title:"",value:"auto",selected:"selected","data-l10n-id":"page_scale_auto"}},[e._v(" Automatic Zoom ")]),r("option",{attrs:{id:"pageActualOption",title:"",value:"page-actual","data-l10n-id":"page_scale_actual"}},[e._v(" Actual Size ")]),r("option",{attrs:{id:"pageFitOption",title:"",value:"page-fit","data-l10n-id":"page_scale_fit"}},[e._v(" Page Fit ")]),r("option",{attrs:{id:"pageWidthOption",title:"",value:"page-width","data-l10n-id":"page_scale_width"}},[e._v(" Page Width ")]),r("option",{attrs:{id:"customScaleOption",title:"",value:"custom",disabled:"disabled",hidden:"true"}}),r("option",{attrs:{"data-l10n-args":e.getScale(50),value:"0.5","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 50% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(75),value:"0.75","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 75% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(100),value:"1","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 100% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(125),value:"1.25","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 125% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(150),value:"1.5","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 150% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(200),value:"2","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 200% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(300),value:"3","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 300% ")]),r("option",{attrs:{"data-l10n-args":e.getScale(400),value:"4","data-l10n-id":"page_scale_percent",title:""}},[e._v(" 400% ")])])]),e._t("toolbar-middle-append",null,null,e.slotProps)],2)])])]),e._m(4),r("menu",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{type:"context",id:"viewerContextMenu"}},[r("menuitem",{attrs:{id:"contextFirstPage",label:"First Page","data-l10n-id":"first_page"}}),r("menuitem",{attrs:{id:"contextLastPage",label:"Last Page","data-l10n-id":"last_page"}}),r("menuitem",{attrs:{id:"contextPageRotateCw",label:"Rotate Clockwise","data-l10n-id":"page_rotate_cw"}}),r("menuitem",{attrs:{id:"contextPageRotateCcw",label:"Rotate Counter-Clockwise","data-l10n-id":"page_rotate_ccw"}})]),e._t("viewer-header",null,null,e.slotProps),e._t("viewer-prepend",null,null,e.slotProps),r("div",{class:[e.isToolbarHidden],attrs:{id:"viewerContainer",tabindex:"0"}},[r("div",{staticClass:"pdfViewer",attrs:{id:"viewer"}})]),e._t("viewer-append",null,null,e.slotProps),e._t("viewer-footer",null,null,e.slotProps),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showElem("errorWrapper"),expression:"showElem('errorWrapper')"}],attrs:{id:"errorWrapper",hidden:"true"}},[e._m(5),e._m(6),r("div",{staticClass:"clearBoth"}),r("textarea",{attrs:{id:"errorMoreInfo",hidden:"true",readonly:"readonly"}})])],2),e._m(7)]),e._t("footer",null,null,e.slotProps)],2)},s=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarInputContainer"}},[r("input",{staticClass:"toolbarField",attrs:{id:"findInput",title:"Find",placeholder:"Find in document…",tabindex:"91","data-l10n-id":"find_input"}}),r("div",{staticClass:"splitToolbarButton"},[r("button",{staticClass:"toolbarButton findPrevious vue-pdf-app-icon find-previous",attrs:{id:"findPrevious",title:"Find the previous occurrence of the phrase",tabindex:"92","data-l10n-id":"find_previous"}},[r("span",{attrs:{"data-l10n-id":"find_previous_label"}},[e._v("Previous")])]),r("div",{staticClass:"splitToolbarButtonSeparator"}),r("button",{staticClass:"toolbarButton findNext vue-pdf-app-icon find-next",attrs:{id:"findNext",title:"Find the next occurrence of the phrase",tabindex:"93","data-l10n-id":"find_next"}},[r("span",{attrs:{"data-l10n-id":"find_next_label"}},[e._v("Next")])])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarOptionsOneContainer"}},[r("input",{staticClass:"toolbarField",attrs:{type:"checkbox",id:"findHighlightAll",tabindex:"94"}}),r("label",{staticClass:"toolbarLabel",attrs:{for:"findHighlightAll","data-l10n-id":"find_highlight"}},[e._v("Highlight all")]),r("input",{staticClass:"toolbarField",attrs:{type:"checkbox",id:"findMatchCase",tabindex:"95"}}),r("label",{staticClass:"toolbarLabel",attrs:{for:"findMatchCase","data-l10n-id":"find_match_case_label"}},[e._v("Match case")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarOptionsTwoContainer"}},[r("input",{staticClass:"toolbarField",attrs:{type:"checkbox",id:"findEntireWord",tabindex:"96"}}),r("label",{staticClass:"toolbarLabel",attrs:{for:"findEntireWord","data-l10n-id":"find_entire_word_label"}},[e._v("Whole words")]),r("span",{staticClass:"toolbarLabel hidden",attrs:{id:"findResultsCount"}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"findbarMessageContainer"}},[r("span",{staticClass:"toolbarLabel",attrs:{id:"findMsg"}})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"loadingBar"}},[r("div",{staticClass:"progress"},[r("div",{staticClass:"glimmer"})])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"errorMessageLeft"}},[r("span",{attrs:{id:"errorMessage"}}),r("button",{attrs:{id:"errorShowMore","data-l10n-id":"error_more_info"}},[e._v(" More Information ")]),r("button",{attrs:{id:"errorShowLess","data-l10n-id":"error_less_info",hidden:"true"}},[e._v(" Less Information ")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"errorMessageRight"}},[r("button",{attrs:{id:"errorClose","data-l10n-id":"error_close"}},[e._v("Close")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"hidden",attrs:{id:"overlayContainer"}},[r("div",{staticClass:"container hidden",attrs:{id:"passwordOverlay"}},[r("div",{staticClass:"dialog"},[r("div",{staticClass:"row"},[r("p",{attrs:{id:"passwordText","data-l10n-id":"password_label"}},[e._v(" Enter the password to open this PDF file: ")])]),r("div",{staticClass:"row"},[r("input",{staticClass:"toolbarField",attrs:{type:"password",id:"password"}})]),r("div",{staticClass:"buttonRow"},[r("button",{staticClass:"overlayButton",attrs:{id:"passwordCancel"}},[r("span",{attrs:{"data-l10n-id":"password_cancel"}},[e._v("Cancel")])]),r("button",{staticClass:"overlayButton",attrs:{id:"passwordSubmit"}},[r("span",{attrs:{"data-l10n-id":"password_ok"}},[e._v("OK")])])])])]),r("div",{staticClass:"container hidden",attrs:{id:"documentPropertiesOverlay"}},[r("div",{staticClass:"dialog"},[r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_file_name"}},[e._v("File name:")]),r("p",{attrs:{id:"fileNameField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_file_size"}},[e._v("File size:")]),r("p",{attrs:{id:"fileSizeField"}},[e._v("-")])]),r("div",{staticClass:"separator"}),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_title"}},[e._v("Title:")]),r("p",{attrs:{id:"titleField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_author"}},[e._v("Author:")]),r("p",{attrs:{id:"authorField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_subject"}},[e._v("Subject:")]),r("p",{attrs:{id:"subjectField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_keywords"}},[e._v("Keywords:")]),r("p",{attrs:{id:"keywordsField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_creation_date"}},[e._v("Creation Date:")]),r("p",{attrs:{id:"creationDateField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_modification_date"}},[e._v("Modification Date:")]),r("p",{attrs:{id:"modificationDateField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_creator"}},[e._v("Creator:")]),r("p",{attrs:{id:"creatorField"}},[e._v("-")])]),r("div",{staticClass:"separator"}),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_producer"}},[e._v("PDF Producer:")]),r("p",{attrs:{id:"producerField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_version"}},[e._v("PDF Version:")]),r("p",{attrs:{id:"versionField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_page_count"}},[e._v("Page Count:")]),r("p",{attrs:{id:"pageCountField"}},[e._v("-")])]),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_page_size"}},[e._v("Page Size:")]),r("p",{attrs:{id:"pageSizeField"}},[e._v("-")])]),r("div",{staticClass:"separator"}),r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"document_properties_linearized"}},[e._v("Fast Web View:")]),r("p",{attrs:{id:"linearizedField"}},[e._v("-")])]),r("div",{staticClass:"buttonRow"},[r("button",{staticClass:"overlayButton",attrs:{id:"documentPropertiesClose"}},[r("span",{attrs:{"data-l10n-id":"document_properties_close"}},[e._v("Close")])])])])]),r("div",{staticClass:"container hidden",attrs:{id:"printServiceOverlay"}},[r("div",{staticClass:"dialog"},[r("div",{staticClass:"row"},[r("span",{attrs:{"data-l10n-id":"print_progress_message"}},[e._v("Preparing document for printing…")])]),r("div",{staticClass:"row"},[r("progress",{attrs:{value:"0",max:"100"}}),r("span",{staticClass:"relative-progress",attrs:{"data-l10n-id":"print_progress_percent","data-l10n-args":'{ "progress": 0 }'}},[e._v("0%")])]),r("div",{staticClass:"buttonRow"},[r("button",{staticClass:"overlayButton",attrs:{id:"printCancel"}},[r("span",{attrs:{"data-l10n-id":"print_progress_close"}},[e._v("Cancel")])])])])])])}];r("caad"),r("c19f"),r("a9e3"),r("d3b7"),r("ac1f"),r("5319"),r("96cf"),r("e6cf");function l(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){l(i,n,a,o,s,"next",e)}function s(e){l(i,n,a,o,s,"throw",e)}o(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}var k=r("8bbf"),x=r.n(k); /** * vue-class-component v7.2.5 * (c) 2015-present Evan You * @license MIT */ function S(e){return S="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e){return P(e)||T(e)||E()}function P(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach((function(e){if("constructor"!==e)if(B.indexOf(e)>-1)t[e]=r[e];else{var n=Object.getOwnPropertyDescriptor(r,e);void 0!==n.value?"function"===typeof n.value?(t.methods||(t.methods={}))[e]=n.value:(t.mixins||(t.mixins=[])).push({data:function(){return A({},e,n.value)}}):(n.get||n.set)&&((t.computed||(t.computed={}))[e]={get:n.get,set:n.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return N(this,e)}});var n=e.__decorators__;n&&(n.forEach((function(e){return e(t)})),delete e.__decorators__);var a=Object.getPrototypeOf(e.prototype),i=a instanceof x.a?a.constructor:x.a,o=i.extend(t);return q(o,e,i),R()&&I(o,e),o}var j={prototype:!0,arguments:!0,callee:!0,caller:!0};function q(e,t,r){Object.getOwnPropertyNames(t).forEach((function(n){if(!j[n]){var a=Object.getOwnPropertyDescriptor(e,n);if(!a||a.configurable){var i=Object.getOwnPropertyDescriptor(t,n);if(!F){if("cid"===n)return;var o=Object.getOwnPropertyDescriptor(r,n);if(!D(i.value)&&o&&o.value===i.value)return}0,Object.defineProperty(e,n,i)}}}))}function z(e){return"function"===typeof e?U(e):function(t){return U(t,e)}}z.registerHooks=function(e){B.push.apply(B,C(e))};var V=z;var W="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function H(e,t,r){if(W&&!Array.isArray(e)&&"function"!==typeof e&&"undefined"===typeof e.type){var n=Reflect.getMetadata("design:type",t,r);n!==Object&&(e.type=n)}}function G(e){return void 0===e&&(e={}),function(t,r){H(e,t,r),M((function(t,r){(t.props||(t.props={}))[r]=e}))(t,r)}}function Y(e,t){void 0===t&&(t={});var r=t.deep,n=void 0!==r&&r,a=t.immediate,i=void 0!==a&&a;return M((function(t,r){"object"!==typeof t.watch&&(t.watch=Object.create(null));var a=t.watch;"object"!==typeof a[e]||Array.isArray(a[e])?"undefined"===typeof a[e]&&(a[e]=[]):a[e]=[a[e]],a[e].push({handler:r,deep:n,immediate:i})}))}r("8750");var X=r("ead8"),K=r("04d0"),Z=(r("e2c3"),r("ced1"),r("6d7c"),r("85c3"),"pdfFileInput"),J=document.getElementById.bind(document),Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{appContainer:J("pdf"),mainContainer:J("viewerContainer"),viewerContainer:J("viewer"),eventBus:null,toolbar:{container:J("toolbarViewer"),numPages:J(e.numPages||"numPages"),pageNumber:J(e.pageNumber||"pageNumber"),scaleSelectContainer:J("scaleSelectContainer"),scaleSelect:J("scaleSelect"),customScaleOption:J("customScaleOption"),previous:J(e.previousPage||"previous"),next:J(e.nextPage||"next"),zoomIn:J(e.zoomIn||"zoomIn"),zoomOut:J(e.zoomOut||"zoomOut"),viewFind:J(e.toggleFindbar||"viewFind"),openFile:J(e.openFile||"openFile"),print:J(e.print||"print"),presentationModeButton:J(e.presentationMode||"presentationMode"),download:J(e.download||"download"),viewBookmark:J(e.viewBookmark||"viewBookmark")},secondaryToolbar:{toolbar:J("secondaryToolbar"),toggleButton:J("secondaryToolbarToggle"),toolbarButtonContainer:J("secondaryToolbarButtonContainer"),presentationModeButton:J("secondaryPresentationMode"),openFileButton:J("secondaryOpenFile"),printButton:J("secondaryPrint"),downloadButton:J("secondaryDownload"),viewBookmarkButton:J("secondaryViewBookmark"),firstPageButton:J(e.firstPage||"firstPage"),lastPageButton:J(e.lastPage||"lastPage"),pageRotateCwButton:J(e.pageRotateCw||"pageRotateCw"),pageRotateCcwButton:J(e.pageRotateCcw||"pageRotateCcw"),cursorSelectToolButton:J(e.cursorSelectTool||"cursorSelectTool"),cursorHandToolButton:J(e.cursorHandTool||"cursorHandTool"),scrollVerticalButton:J(e.scrollVertical||"scrollVertical"),scrollHorizontalButton:J(e.scrollHorizontal||"scrollHorizontal"),scrollWrappedButton:J(e.scrollWrapped||"scrollWrapped"),spreadNoneButton:J(e.spreadNone||"spreadNone"),spreadOddButton:J(e.spreadOdd||"spreadOdd"),spreadEvenButton:J(e.spreadEven||"spreadEven"),documentPropertiesButton:J(e.documentProperties||"documentProperties")},fullscreen:{contextFirstPage:J("contextFirstPage"),contextLastPage:J("contextLastPage"),contextPageRotateCw:J("contextPageRotateCw"),contextPageRotateCcw:J("contextPageRotateCcw")},sidebar:{outerContainer:J("outerContainer"),viewerContainer:J("viewerContainer"),toggleButton:J(e.sidebarToggle||"sidebarToggle"),thumbnailButton:J(e.viewThumbnail||"viewThumbnail"),outlineButton:J(e.viewOutline||"viewOutline"),attachmentsButton:J(e.viewAttachments||"viewAttachments"),thumbnailView:J("thumbnailView"),outlineView:J("outlineView"),attachmentsView:J("attachmentsView")},sidebarResizer:{outerContainer:J("outerContainer"),resizer:J("sidebarResizer")},findBar:{bar:J(e.findbar||"findbar"),toggleButton:J(e.toggleFindbar||"viewFind"),findField:J(e.findInput||"findInput"),highlightAllCheckbox:J(e.findHighlightAll||"findHighlightAll"),caseSensitiveCheckbox:J(e.findMatchCase||"findMatchCase"),entireWordCheckbox:J(e.findEntireWord||"findEntireWord"),findMsg:J(e.findMessage||"findMsg"),findResultsCount:J(e.findResultsCount||"findResultsCount"),findPreviousButton:J(e.findPrevious||"findPrevious"),findNextButton:J(e.findNext||"findNext")},passwordOverlay:{overlayName:"passwordOverlay",container:J("passwordOverlay"),label:J("passwordText"),input:J("password"),submitButton:J("passwordSubmit"),cancelButton:J("passwordCancel")},documentProperties:{overlayName:"documentPropertiesOverlay",container:J("documentPropertiesOverlay"),closeButton:J("documentPropertiesClose"),fields:{fileName:J("fileNameField"),fileSize:J("fileSizeField"),title:J("titleField"),author:J("authorField"),subject:J("subjectField"),keywords:J("keywordsField"),creationDate:J("creationDateField"),modificationDate:J("modificationDateField"),creator:J("creatorField"),producer:J("producerField"),version:J("versionField"),pageCount:J("pageCountField"),pageSize:J("pageSizeField"),linearized:J("linearizedField")}},errorWrapper:{container:J("errorWrapper"),errorMessage:J("errorMessage"),closeButton:J("errorClose"),errorMoreInfo:J("errorMoreInfo"),moreInfoButton:J("errorShowMore"),lessInfoButton:J("errorShowLess")},printContainer:J("printContainer"),openFileInputName:Z}},$={default_locale:"en",locales:{en:{annotation_date_string:{textContent:"{{date}}, {{time}}"},attachments_label:{textContent:"Attachments"},attachments:{title:"Show Attachments"},bookmark_label:{textContent:"Current View"},bookmark:{title:"Current view (copy or open in new window)"},cursor_hand_tool_label:{textContent:"Hand Tool"},cursor_hand_tool:{title:"Enable Hand Tool"},cursor_text_select_tool_label:{textContent:"Text Selection Tool"},cursor_text_select_tool:{title:"Enable Text Selection Tool"},document_outline_label:{textContent:"Document Outline"},document_outline:{title:"Show Document Outline (double-click to expand/collapse all items)"},document_properties_author:{textContent:"Author:"},document_properties_close:{textContent:"Close"},document_properties_creation_date:{textContent:"Creation Date:"},document_properties_creator:{textContent:"Creator:"},document_properties_date_string:{textContent:"{{date}}, {{time}}"},document_properties_file_name:{textContent:"File name:"},document_properties_file_size:{textContent:"File size:"},document_properties_kb:{textContent:"{{size_kb}} KB ({{size_b}} bytes)"},document_properties_keywords:{textContent:"Keywords:"},document_properties_label:{textContent:"Document Properties…"},document_properties_linearized_no:{textContent:"No"},document_properties_linearized_yes:{textContent:"Yes"},document_properties_linearized:{textContent:"Fast Web View:"},document_properties_mb:{textContent:"{{size_mb}} MB ({{size_b}} bytes)"},document_properties_modification_date:{textContent:"Modification Date:"},document_properties_page_count:{textContent:"Page Count:"},document_properties_page_size_dimension_name_string:{textContent:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})"},document_properties_page_size_dimension_string:{textContent:"{{width}} × {{height}} {{unit}} ({{orientation}})"},document_properties_page_size_name_a3:{textContent:"A3"},document_properties_page_size_name_a4:{textContent:"A4"},document_properties_page_size_name_legal:{textContent:"Legal"},document_properties_page_size_name_letter:{textContent:"Letter"},document_properties_page_size_orientation_landscape:{textContent:"landscape"},document_properties_page_size_orientation_portrait:{textContent:"portrait"},document_properties_page_size_unit_inches:{textContent:"in"},document_properties_page_size_unit_millimeters:{textContent:"mm"},document_properties_page_size:{textContent:"Page Size:"},document_properties_producer:{textContent:"PDF Producer:"},document_properties_subject:{textContent:"Subject:"},document_properties_title:{textContent:"Title:"},document_properties_version:{textContent:"PDF Version:"},document_properties:{title:"Document Properties…"},download_label:{textContent:"Download"},download:{title:"Download"},error_close:{textContent:"Close"},error_file:{textContent:"File: {{file}}"},error_less_info:{textContent:"Less Information"},error_line:{textContent:"Line: {{line}}"},error_message:{textContent:"Message: {{message}}"},error_more_info:{textContent:"More Information"},error_stack:{textContent:"Stack: {{stack}}"},error_version_info:{textContent:"PDF.js v{{version}} (build: {{build}})"},find_entire_word_label:{textContent:"Whole words"},find_highlight:{textContent:"Highlight all"},find_input:{placeholder:"Find in document…",title:"Find"},find_match_case_label:{textContent:"Match case"},"find_match_count_limit[few]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[many]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[one]":{textContent:"More than {{limit}} match"},"find_match_count_limit[other]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[two]":{textContent:"More than {{limit}} matches"},"find_match_count_limit[zero]":{textContent:"More than {{limit}} matches"},find_match_count_limit:{textContent:"{[ plural(limit) ]}"},"find_match_count[few]":{textContent:"{{current}} of {{total}} matches"},"find_match_count[many]":{textContent:"{{current}} of {{total}} matches"},"find_match_count[one]":{textContent:"{{current}} of {{total}} match"},"find_match_count[other]":{textContent:"{{current}} of {{total}} matches"},"find_match_count[two]":{textContent:"{{current}} of {{total}} matches"},find_match_count:{textContent:"{[ plural(total) ]}"},find_next_label:{textContent:"Next"},find_next:{title:"Find the next occurrence of the phrase"},find_not_found:{textContent:"Phrase not found"},find_previous_label:{textContent:"Previous"},find_previous:{title:"Find the previous occurrence of the phrase"},find_reached_bottom:{textContent:"Reached end of document, continued from top"},find_reached_top:{textContent:"Reached top of document, continued from bottom"},findbar_label:{textContent:"Find"},findbar:{title:"Find in Document"},first_page_label:{textContent:"Go to First Page"},first_page:{label:"Go to First Page",title:"Go to First Page"},invalid_file_error:{textContent:"Invalid or corrupted PDF file."},last_page_label:{textContent:"Go to Last Page"},last_page:{title:"Go to Last Page"},loading_error_indicator:{textContent:"Error"},loading_error:{textContent:"An error occurred while loading the PDF."},missing_file_error:{textContent:"Missing PDF file."},next_label:{textContent:"Next"},next:{title:"Next Page"},of_pages:{textContent:"of {{pagesCount}}"},open_file_label:{textContent:"Open"},open_file:{title:"Open File"},page_canvas:{textContent:"Page {{page}}"},page_of_pages:{textContent:"({{pageNumber}} of {{pagesCount}})"},page_rotate_ccw_label:{textContent:"Rotate Counterclockwise"},page_rotate_ccw:{label:"Rotate Counterclockwise",title:"Rotate Counterclockwise"},page_rotate_cw_label:{textContent:"Rotate Clockwise"},page_rotate_cw:{label:"Rotate Clockwise",title:"Rotate Clockwise"},page_scale_actual:{textContent:"Actual Size"},page_scale_auto:{textContent:"Automatic Zoom"},page_scale_fit:{textContent:"Page Fit"},page_scale_percent:{textContent:"{{scale}}%"},page_scale_width:{textContent:"Page Width"},page:{title:"Page"},password_cancel:{textContent:"Cancel"},password_invalid:{textContent:"Invalid password. Please try again."},password_label:{textContent:"Enter the password to open this PDF file."},password_ok:{textContent:"OK"},presentation_mode_label:{textContent:"Presentation Mode"},presentation_mode:{title:"Switch to Presentation Mode"},previous_label:{textContent:"Previous"},previous:{title:"Previous Page"},print_label:{textContent:"Print"},print_progress_close:{textContent:"Cancel"},print_progress_message:{textContent:"Preparing document for printing…"},print_progress_percent:{textContent:"{{progress}}%"},print:{title:"Print"},printing_not_ready:{textContent:"Warning: The PDF is not fully loaded for printing."},printing_not_supported:{textContent:"Warning: Printing is not fully supported by this browser."},rendering_error:{textContent:"An error occurred while rendering the page."},scroll_horizontal_label:{textContent:"Horizontal Scrolling"},scroll_horizontal:{title:"Use Horizontal Scrolling"},scroll_vertical_label:{textContent:"Vertical Scrolling"},scroll_vertical:{title:"Use Vertical Scrolling"},scroll_wrapped_label:{textContent:"Wrapped Scrolling"},scroll_wrapped:{title:"Use Wrapped Scrolling"},spread_even_label:{textContent:"Even Spreads"},spread_even:{title:"Join page spreads starting with even-numbered pages"},spread_none_label:{textContent:"No Spreads"},spread_none:{title:"Do not join page spreads"},spread_odd_label:{textContent:"Odd Spreads"},spread_odd:{title:"Join page spreads starting with odd-numbered pages"},text_annotation_type:{alt:"[{{type}} Annotation]"},thumb_page_canvas:{textContent:"Thumbnail of Page {{page}}"},thumb_page_title:{textContent:"Page {{page}}"},thumbs_label:{textContent:"Thumbnails"},thumbs:{title:"Show Thumbnails"},toggle_sidebar_label:{textContent:"Toggle Sidebar"},toggle_sidebar_notification:{title:"Toggle Sidebar (document contains outline/attachments)"},toggle_sidebar:{title:"Toggle Sidebar"},tools_label:{textContent:"Tools"},tools:{title:"Tools"},unexpected_response_error:{textContent:"Unexpected server response."},web_fonts_disabled:{textContent:"Web fonts are disabled: unable to use embedded PDF fonts."},zoom_in_label:{textContent:"Zoom In"},zoom_in:{title:"Zoom In"},zoom_out_label:{textContent:"Zoom Out"},zoom_out:{title:"Zoom Out"},zoom:{title:"Zoom"}}}},ee=(r("1276"),{sidebar:{viewThumbnail:!0,viewOutline:!0,viewAttachments:!0},secondaryToolbar:{secondaryPresentationMode:!0,secondaryOpenFile:!0,secondaryPrint:!0,secondaryDownload:!0,secondaryViewBookmark:!0,firstPage:!0,lastPage:!0,pageRotateCw:!0,pageRotateCcw:!0,cursorSelectTool:!0,cursorHandTool:!0,scrollVertical:!0,scrollHorizontal:!0,scrollWrapped:!0,spreadNone:!0,spreadOdd:!0,spreadEven:!0,documentProperties:!0},toolbar:{toolbarViewerLeft:{findbar:!0,previous:!0,next:!0,pageNumber:!0},toolbarViewerRight:{presentationMode:!0,openFile:!0,print:!0,download:!0,viewBookmark:!0},toolbarViewerMiddle:{zoomOut:!0,zoomIn:!0,scaleSelectContainer:!0}},errorWrapper:!0}),te=function(e,t){for(var r=t.split("."),n=e[r[0]],a=1;a *:not(#printContainer) {\n display: none !important; \n }\n }",document.head.appendChild(r),this.$once("hook:beforeDestroy",(function(){document.body.removeChild(t),document.head.removeChild(r)}))}},{key:"destroyPdf",value:function(){var e;this.clearCacheTimeout(),X["PDFViewerApplication"].unbindEvents(),X["PDFViewerApplication"].unbindWindowEvents(),null===(e=X["PDFViewerApplication"].pdfDocument)||void 0===e||e.destroy();var t=document.getElementById(Z);t&&t.remove(),window.print=window.__nativePrint__||window.print}},{key:"toggleTheme",value:function(){var e="dark"===this.localTheme?"light":"dark";this.$emit("update:theme",e),this.cacheTheme=e,window.localStorage.setItem(re,e)}},{key:"clearCacheTimeout",value:function(){var e,t=null===(e=X["PDFViewerApplication"].pdfRenderingQueue)||void 0===e?void 0:e.idleTimeout;clearTimeout(t)}},{key:"getScale",value:function(e){return'{ "scale": '.concat(e," }")}},{key:"showElem",value:function(e,t){return t&&this.idConfig?!this.idConfig[t]:!(!1===te(this.config,e))}},{key:"setDefaultPageScale",value:function(){this.pageScale&&K["AppOptions"].set("defaultZoomValue",this.pageScale)}},{key:"resetLoadingBar",value:function(){X["PDFViewerApplication"].loadingBar.show(),X["PDFViewerApplication"].loadingBar.percent=0}},{key:"pdfChangeHandler",value:function(){this.open()}},{key:"isSidebarToolbarHidden",get:function(){var e,t,r,n=(null===(e=this.idConfig)||void 0===e?void 0:e.viewAttachments)&&(null===(t=this.idConfig)||void 0===t?void 0:t.viewOutline)&&(null===(r=this.idConfig)||void 0===r?void 0:r.viewThumbnail);return n||!this.config.sidebar}},{key:"isToolbarHidden",get:function(){return!1===this.config.toolbar?"zero-top":""}},{key:"localTheme",get:function(){if(this.theme)return this.theme;if(this.cacheTheme)return this.cacheTheme;var e=window.getComputedStyle(document.documentElement).getPropertyValue("content").replace(/"/g,"");return["light","dark"].includes(e)?e:"dark"}},{key:"slotProps",get:function(){return{toggleTheme:this.toggleTheme,isSidebarHidden:this.isSidebarHidden,isFindbarHidden:this.isFindbarHidden}}}]),r}(x.a);_([G({required:!1,default:function(){return ee},type:Object})],ie.prototype,"config",void 0),_([G({required:!1,type:Boolean,default:function(){return!1}})],ie.prototype,"title",void 0),_([G({required:!1,type:[String,ArrayBuffer]})],ie.prototype,"pdf",void 0),_([G({required:!1,type:String})],ie.prototype,"theme",void 0),_([G({required:!1,type:String})],ie.prototype,"fileName",void 0),_([G({required:!1,type:Object})],ie.prototype,"idConfig",void 0),_([G({required:!1,type:[Number,String]})],ie.prototype,"pageScale",void 0),_([G({required:!1,type:Number})],ie.prototype,"pageNumber",void 0),_([Y("pdf")],ie.prototype,"pdfChangeHandler",null),ie=_([V],ie);var oe=ie,se=oe;r("bfa5"),r("317c");function le(e,t,r,n,a,i,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var ce=le(se,o,s,!1,null,"4aaa9b0d",null),ue=ce.exports;t["default"]=ue},fb2c:function(e,t,r){var n=r("74e8");n("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},fb6a:function(e,t,r){"use strict";var n=r("23e7"),a=r("861d"),i=r("e8b5"),o=r("23cb"),s=r("50c4"),l=r("fc6a"),c=r("8418"),u=r("b622"),d=r("1dde"),h=r("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),v=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var r,n,u,d=l(this),h=s(d.length),f=o(e,h),p=o(void 0===t?h:t,h);if(i(d)&&(r=d.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?a(r)&&(r=r[g],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return v.call(d,f,p);for(n=new(void 0===r?Array:r)(m(p-f,0)),u=0;fn&&r-n0&&t<0||this.mouseScrollDelta<0&&t>0)&&this._resetMouseScrollState(),this.mouseScrollDelta+=t,Math.abs(this.mouseScrollDelta)>=d)){var a=this.mouseScrollDelta;this._resetMouseScrollState();var o=a>0?this._goToPreviousPage():this._goToNextPage();o&&(this.mouseScrollTimeStamp=r)}}}},{key:"_goToPreviousPage",value:function(){var e=this.pdfViewer.currentPageNumber;return!(e<=1)&&(this.pdfViewer.currentPageNumber=e-1,!0)}},{key:"_goToNextPage",value:function(){var e=this.pdfViewer.currentPageNumber;return!(e>=this.pdfViewer.pagesCount)&&(this.pdfViewer.currentPageNumber=e+1,!0)}},{key:"_notifyStateChange",value:function(){this.eventBus.dispatch("presentationmodechanged",{source:this,active:this.active,switchInProgress:!!this.switchInProgress})}},{key:"_setSwitchInProgress",value:function(){var e=this;this.switchInProgress&&clearTimeout(this.switchInProgress),this.switchInProgress=setTimeout((function(){e._removeFullscreenChangeListeners(),delete e.switchInProgress,e._notifyStateChange()}),o)}},{key:"_resetSwitchInProgress",value:function(){this.switchInProgress&&(clearTimeout(this.switchInProgress),delete this.switchInProgress)}},{key:"_enter",value:function(){var e=this;this.active=!0,this._resetSwitchInProgress(),this._notifyStateChange(),this.container.classList.add(l),setTimeout((function(){e.pdfViewer.currentPageNumber=e.args.page,e.pdfViewer.currentScaleValue="page-fit"}),0),this._addWindowListeners(),this._showControls(),this.contextMenuOpen=!1,this.container.setAttribute("contextmenu","viewerContextMenu"),window.getSelection().removeAllRanges()}},{key:"_exit",value:function(){var e=this,t=this.pdfViewer.currentPageNumber;this.container.classList.remove(l),setTimeout((function(){e.active=!1,e._removeFullscreenChangeListeners(),e._notifyStateChange(),e.pdfViewer.currentScaleValue=e.args.previousScale,e.pdfViewer.currentPageNumber=t,e.args=null}),0),this._removeWindowListeners(),this._hideControls(),this._resetMouseScrollState(),this.container.removeAttribute("contextmenu"),this.contextMenuOpen=!1}},{key:"_mouseDown",value:function(e){if(this.contextMenuOpen)return this.contextMenuOpen=!1,void e.preventDefault();if(0===e.button){var t=e.target.href&&e.target.classList.contains("internalLink");t||(e.preventDefault(),e.shiftKey?this._goToPreviousPage():this._goToNextPage())}}},{key:"_contextMenu",value:function(){this.contextMenuOpen=!0}},{key:"_showControls",value:function(){var e=this;this.controlsTimeout?clearTimeout(this.controlsTimeout):this.container.classList.add(c),this.controlsTimeout=setTimeout((function(){e.container.classList.remove(c),delete e.controlsTimeout}),s)}},{key:"_hideControls",value:function(){this.controlsTimeout&&(clearTimeout(this.controlsTimeout),this.container.classList.remove(c),delete this.controlsTimeout)}},{key:"_resetMouseScrollState",value:function(){this.mouseScrollTimeStamp=0,this.mouseScrollDelta=0}},{key:"_touchSwipe",value:function(e){if(this.active)if(e.touches.length>1)this.touchSwipeState=null;else switch(e.type){case"touchstart":this.touchSwipeState={startX:e.touches[0].pageX,startY:e.touches[0].pageY,endX:e.touches[0].pageX,endY:e.touches[0].pageY};break;case"touchmove":if(null===this.touchSwipeState)return;this.touchSwipeState.endX=e.touches[0].pageX,this.touchSwipeState.endY=e.touches[0].pageY,e.preventDefault();break;case"touchend":if(null===this.touchSwipeState)return;var t=0,r=this.touchSwipeState.endX-this.touchSwipeState.startX,n=this.touchSwipeState.endY-this.touchSwipeState.startY,a=Math.abs(Math.atan2(n,r));Math.abs(r)>h&&(a<=f||a>=Math.PI-f)?t=r:Math.abs(n)>h&&Math.abs(a-Math.PI/2)<=f&&(t=n),t>0?this._goToPreviousPage():t<0&&this._goToNextPage();break}}},{key:"_addWindowListeners",value:function(){this.showControlsBind=this._showControls.bind(this),this.mouseDownBind=this._mouseDown.bind(this),this.mouseWheelBind=this._mouseWheel.bind(this),this.resetMouseScrollStateBind=this._resetMouseScrollState.bind(this),this.contextMenuBind=this._contextMenu.bind(this),this.touchSwipeBind=this._touchSwipe.bind(this),window.addEventListener("mousemove",this.showControlsBind),window.addEventListener("mousedown",this.mouseDownBind),window.addEventListener("wheel",this.mouseWheelBind),window.addEventListener("keydown",this.resetMouseScrollStateBind),window.addEventListener("contextmenu",this.contextMenuBind),window.addEventListener("touchstart",this.touchSwipeBind),window.addEventListener("touchmove",this.touchSwipeBind),window.addEventListener("touchend",this.touchSwipeBind)}},{key:"_removeWindowListeners",value:function(){window.removeEventListener("mousemove",this.showControlsBind),window.removeEventListener("mousedown",this.mouseDownBind),window.removeEventListener("wheel",this.mouseWheelBind),window.removeEventListener("keydown",this.resetMouseScrollStateBind),window.removeEventListener("contextmenu",this.contextMenuBind),window.removeEventListener("touchstart",this.touchSwipeBind),window.removeEventListener("touchmove",this.touchSwipeBind),window.removeEventListener("touchend",this.touchSwipeBind),delete this.showControlsBind,delete this.mouseDownBind,delete this.mouseWheelBind,delete this.resetMouseScrollStateBind,delete this.contextMenuBind,delete this.touchSwipeBind}},{key:"_fullscreenChange",value:function(){this.isFullscreen?this._enter():this._exit()}},{key:"_addFullscreenChangeListeners",value:function(){this.fullscreenChangeBind=this._fullscreenChange.bind(this),window.addEventListener("fullscreenchange",this.fullscreenChangeBind),window.addEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.addEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.addEventListener("MSFullscreenChange",this.fullscreenChangeBind)}},{key:"_removeFullscreenChangeListeners",value:function(){window.removeEventListener("fullscreenchange",this.fullscreenChangeBind),window.removeEventListener("mozfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("webkitfullscreenchange",this.fullscreenChangeBind),window.removeEventListener("MSFullscreenChange",this.fullscreenChangeBind),delete this.fullscreenChangeBind}},{key:"isFullscreen",get:function(){return!!(document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement)}}]),e}();t.PDFPresentationMode=p},fea9:function(e,t,r){var n=r("da84");e.exports=n.Promise}})["default"]}))},69430:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div")},a=[],i={name:"postpone",props:{comment:{type:String,default:""}},computed:{comment1:{get(){return this.comment},set(e){this.$emit("comm",e)}}}},o=i,s=r(43736),l=(0,s.Z)(o,n,a,!1,null,null,null),c=l.exports},94752:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Kr}});var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("work-task-ass-project",{attrs:{cards:e.$options.name,tabProj:e.tabProj,chatview:e.chatview,message:e.message,title:"Проект "+e.project.name},on:{listchangetab:function(t){e.tab="0"},createnewTask:e.createnewTask,allCard:e.allCard,comm:e.comm},scopedSlots:e._u([{key:"spisok",fn:function(){return[r("left-list",{attrs:{level:1},on:{confirmation:e.confirmation,rout:e.rout,showuserinfo:e.showuserinfo}}),r("v-tabs",{staticClass:"flex-grow-0",on:{change:e.changetabProject},model:{value:e.tabProj,callback:function(t){e.tabProj=t},expression:"tabProj"}},[r("v-tab",{staticClass:"pa-0 tabproject",attrs:{href:"#1"}},[r("MyIco",{attrs:{icons:"mdi-home-map-marker",size:"large"}})],1),r("v-tab",{staticClass:"pa-0 tabproject",attrs:{href:"#2"}},[r("MyIco",{attrs:{icons:"mdi-wallet-travel",size:"large"}})],1),r("v-col",{staticClass:"flex-grow-0"},[r("MyIco",{attrs:{size:"large",icons:"mdi-chart-gantt"},on:{click:e.gantviewer}})],1)],1),r("v-slide-x-reverse-transition",[r("v-card",{directives:[{name:"show",rawName:"v-show",value:e.gantview,expression:"gantview"}],staticClass:"gantPosition"},[r("Gant",{ref:"gantproject",attrs:{tasksOR:e.project.task},on:{saver:e.addTask,changegantview:function(t){e.gantview=!1}}})],1)],1)]},proxy:!0},{key:"informations",fn:function(){return[r("project-informationorder",{ref:"pifo",attrs:{chat:e.activedCh,chatview:e.chatview},on:{saveproject:e.saveproject,switch_mode:e.switch_mode,chatviewer:e.chatviewer,createtabchat:e.createtabchat,changestatus:e.changestatus}}),r("div",[r("v-dialog",{attrs:{width:"75vw"},model:{value:e.show_change_dialog,callback:function(t){e.show_change_dialog=t},expression:"show_change_dialog"}},[r("project-stepper-pattern",{on:{closes:function(t){e.show_change_dialog=!e.show_change_dialog},newproject:e.newproject,showuserinfo:e.showuserinfo}})],1)],1)]},proxy:!0},{key:"projdocs",fn:function(){return[r("ProjectDocks",{ref:"projectdoc",attrs:{documents:e.documents},on:{savedock:e.savedock}})]},proxy:!0},{key:"chat",fn:function(){return[r("mMessegeListRight",{ref:"mychat",staticClass:"box2",attrs:{chatplace:"rightchat",header:!1,chat:e.activedCh,waiter:e.waiter},on:{waiting:function(t){e.waiter=!0}}})]},proxy:!0},{key:"filess",fn:function(){return[r("filelist",{attrs:{statid:e.statid,files:e.project.project_files,level:1,status:e.project.status.id,currentid:e.project.id},on:{uploadfile:e.uploadfile,deletefile:e.deletefile,VisSwitcher:e.VisSwitcher}})]},proxy:!0},{key:"graphic",fn:function(){return[r("work-pie-chart",{attrs:{title:"Статусы задач в проекте",data:e.task_statuses_calc}})]},proxy:!0}])})},a=[],i=r(87941),o=r(56922),s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-col",{staticClass:"pa-0 flex-col d-flex fonback"},[r("v-tabs",{staticClass:"flex-grow-0 px-1 pl-2 pr-0 pt-2 ",attrs:{color:"transparent","background-color":"transparent"},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[e._l(e.docktype,(function(t,n){return r("v-tab",{key:n,staticClass:"relax_item mr-2 flex-col d-flex",attrs:{"active-class":"select_item",ripple:!1},on:{click:function(t){e.dialogtheme.title=n}}},[e._v(" "+e._s(n)+" ")])})),r("div",{staticClass:"ml-auto mt-auto pr-2 "},[r("v-btn",{attrs:{title:" новый",textbtn:"text-uppercase",color:"open_icons"},on:{click:function(t){e.docktype[e.dialogtheme.title].createnew?e.dialogger():e.dialogNo()}}},[e._v(" Создать ")]),r("v-btn",{staticClass:"ml-4",attrs:{title:"",textbtn:"text-uppercase",color:"primary"},on:{click:function(t){e.docktype[e.dialogtheme.title].createnew?e.uploader():e.dialogNo()}}},[e._v(" Загрузить ")])],1)],2),r("v-tabs-items",{staticClass:"flex-grow-1 flex-col d-flex bgtrans",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},e._l(e.docktype,(function(t,n){return r("v-tab-item",{key:"tabitem"+n,staticClass:"flex-grow-1"},[r("v-card",{staticClass:"flex-col d-flex",attrs:{color:"transparent pa-2",flat:""}},[r("v-data-table",{staticClass:"elevation-1 h-100",attrs:{height:"719","items-per-page":-1,headers:e.headers,items:t.data,"hide-default-footer":""},on:{"dblclick:row":e.clickRow},scopedSlots:e._u([{key:"item.approved",fn:function(t){var n=t.item;return[1==n.approved&&n.approver.id==e.getUser.id?r("span",[e._v("Требуется ваше участие")]):1==n.approved?r("span",[e._v("На утверждении")]):2==n.approved?r("span",[e._v("Отклонено")]):3==n.approved?r("span",[e._v("Утверждено")]):e._e()]}},{key:"item.accepters",fn:function(t){var n=t.item;return[n.accepters.length>0&&n.accepters[0].accepted>0?r("v-progress-linear",{attrs:{value:e.calculateaccepted(n.accepters)/n.accepters.length*100,height:"15","buffer-value":"100"}},[r("strong",[e._v(" "+e._s(e.calculateaccepted(n.accepters))+"/"+e._s(n.accepters.length)+" ")])]):e._e()]}}],null,!0)})],1)],1)})),1),r("v-dialog",{attrs:{width:"600"},model:{value:e.notbuilddock,callback:function(t){e.notbuilddock=t},expression:"notbuilddock"}},[r("v-card",{attrs:{elevation:"2",outlined:""}},[r("v-card-title",{staticClass:"pt-0 px-0"},[r("v-alert",{staticClass:"flex-grow-1",attrs:{border:"top",color:"red lighten-2",dark:""}},[e._v(" Документ "+e._s(e.dialogtheme.title)+" ")])],1),r("v-card-text",[r("div",[e._v(" К сожалению, "+e._s(e.docktype[e.dialogtheme.title].previous)+" проекта "+e._s(e.getProject().name)+" ")]),r("div",[r("strong",[e._v("НЕ УТРВЕЖДЕН"+e._s("Распоряжение"==e.docktype[e.dialogtheme.title].previous?"О":""))])]),r("div",[e._v(" Заполнение формы документа невозможно. ")]),r("div",[e._v(" вы можете скачать шаблон ")])]),r("v-card-actions")],1)],1),r("v-dialog",{attrs:{width:"600"},model:{value:e.uploaddialog,callback:function(t){e.uploaddialog=t},expression:"uploaddialog"}},[r("v-card",{attrs:{elevation:"2",outlined:""}},[r("v-card-title",[e._v(" Подгружаем файл ("+e._s(e.dialogtheme.title)+") ")]),r("v-card-text",[r("div",[e._v(" Для прикрепления документа, необходимо заполнить некоторые поля ")]),r("div",[r("v-text-field",{attrs:{label:"Номер документа","hide-details":"auto"},model:{value:e.docnumber,callback:function(t){e.docnumber=t},expression:"docnumber"}})],1),r("div",[r("v-file-input",{attrs:{"show-size":"","truncate-length":"15"},model:{value:e.chosenFile,callback:function(t){e.chosenFile=t},expression:"chosenFile"}})],1),r("div",[r("v-autocomplete",{attrs:{items:e.getprojectuniquePersons(),"return-object":"","item-text":"fullname",label:"Кто подписывал/будет подписывать"},scopedSlots:e._u([{key:"item",fn:function(t){return[r("v-list-item-content",[e._v(" "+e._s(t.item.fullname)+" ("+e._s(t.item.position.name)+") ")])]}}]),model:{value:e.dialogtheme.data.approver,callback:function(t){e.$set(e.dialogtheme.data,"approver",t)},expression:"dialogtheme.data.approver"}})],1),r("div",[r("v-select",{attrs:{items:e.Selectapprov,label:"Подписан или нет"},model:{value:e.Selectapprovmodel,callback:function(t){e.Selectapprovmodel=t},expression:"Selectapprovmodel"}})],1)]),r("v-card-actions",[r("v-btn",{attrs:{size:"small",color:"passiv_text"},on:{click:e.sendfile}},[e._v(" Загрузить ")])],1)],1)],1),r("v-dialog",{attrs:{fullscreen:"","hide-overlay":"",transition:"scale-transition","content-class":e.dialog?"flex-col d-flex":""},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[r("Cards",{attrs:{color:e.$vuetify.theme.dark?"auchdark":"auchlight"},scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-toolbar",{staticClass:"flex-grow-0 flex-col d-flex rounded",attrs:{dark:"",color:"main_theme",height:"35"}},[r("v-toolbar-title",{staticClass:"flex-grow-1 flex-col d-flex px-2"},[r("v-row",[r("v-col",{staticClass:"align-self-center inyand2--text",attrs:{xl:"3"}},[e._v(" "+e._s(e.dialogtheme.tophead)+" ")]),r("v-col",{staticClass:"align-self-center pl-0 inyand2--text font-weight-light body-2 flex-row",attrs:{xl:"4"}},[r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",light:!e.$vuetify.theme.dark,disabled:e.disableEdition},on:{click:e.saver}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"open_icons"}},[e._v(" mdi-content-save ")])],1)]}}])},[r("span",[e._v("Сохранить (недоступно после отправки на согласование или утверждение)")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",light:!e.$vuetify.theme.dark,disabled:e.disableEdition},on:{click:e.reeditabler}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-file-find ")])],1)]}}])},[r("span",[e._v("Режим просмотра/редактирования")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{disabled:"path"in e.dialogtheme.data&&!(null===e.dialogtheme.data.path)&&e.dialogtheme.data.path.length>0,icon:"",light:!e.$vuetify.theme.dark},on:{click:e.copydock}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-text-box-multiple-outline ")])],1)]}}])},[r("span",[e._v("Новый документ на основе этого")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",color:"primary"},on:{click:function(t){return e.dialogger()}}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-text-box-plus-outline ")])],1)]}}])},[r("span",[e._v("Новый документ")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[e.pathfile()?r("v-btn",e._g(e._b({attrs:{light:!e.$vuetify.theme.dark,icon:"",id:e.idConfig.download}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-file-download-outline ")])],1):r("v-btn",e._g(e._b({attrs:{disabled:"id"in e.dialogtheme.data==0,icon:"",light:!e.$vuetify.theme.dark},on:{click:function(t){return e.downloadacceptlist(!1)}}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-file-download-outline ")])],1)]}}])},[r("span",[e._v("Скачать")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",disabled:0==e.dialogtheme.data.accepters.length,light:!e.$vuetify.theme.dark},on:{click:function(t){return e.downloadacceptlist(!0)}}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-format-list-checks ")])],1)]}}])},[r("span",[e._v("Скачать лист согласования")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",light:!e.$vuetify.theme.dark,disabled:e.disableEdition||!("id"in e.dialogtheme.data)||e.dialogtheme.data.approved>0||e.dialogtheme.data.accepters.length>0&&e.dialogtheme.data.accepters[0].accepted>0},on:{click:e.deleter}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-delete-forever-outline ")])],1)]}}])},[r("span",[e._v("Удалить документ (недоступно после отправки на согласование или утверждение)")])]),e.pathfile()?r("pdf-toolbar",{ref:"pdftoolbar"}):e._e()],1),r("v-col",{staticClass:"align-self-center text-end"},[r("MyIco",{attrs:{size:"small",icons:"mdi-close-thick",color:"passiv_text"},on:{click:function(t){e.dialog=!1}}})],1)],1)],1)],1),r("Cards",{staticClass:"mt-3",scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-row",[r("v-col",{staticClass:"d-flex flex-col",attrs:{xl:"10"}},[r("v-row",{staticClass:"justify-center"},[r("v-col",{staticClass:"d-flex flex-col",attrs:{xl:e.pathfile()||["План-график","Отчет"].includes(e.dialogtheme.title)?12:["Итог"].includes(e.dialogtheme.title)?9:5}},["data"in e.dialogtheme&&"path"in e.dialogtheme.data&&null!==e.dialogtheme.data.path&&e.dialogtheme.data.path.length>0?r("Cards",{attrs:{color:"inyand"},scopedSlots:e._u([{key:"cards",fn:function(){return["pdf"==e.dialogtheme.data.path.substr(e.dialogtheme.data.path.length-3)?r("vue-pdf-app",{attrs:{config:e.config,pageScale:100,"id-config":e.idConfig,pdf:e.srcstring()},scopedSlots:e._u([{key:"viewer-prepend",fn:function(){return[r("div",{staticClass:"viewer-prepend"})]},proxy:!0}],null,!1,681282677)}):r("v-img",{attrs:{src:e.srcstring()}})]},proxy:!0}],null,!1,2867771683)}):r("Cards",{attrs:{color:"inyand",ma:"mr-0 mb-3"},scopedSlots:e._u([{key:"cards",fn:function(){return[r("Cards",{staticClass:"overflow-x-auto",attrs:{color:"inyand",height:"0",elevation:0},scopedSlots:e._u([{key:"cards",fn:function(){return[r("div",[["Приказ","Распоряжение"].includes(e.dialogtheme.title)?r("dockhead",{attrs:{title:e.dialogtheme.title.toUpperCase(),editable:e.editable}}):e._e(),"Приказ"==e.dialogtheme.title?r("order",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"План-график"==e.dialogtheme.title?r("planks",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"Распоряжение"==e.dialogtheme.title?r("disposition",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"Отчет"==e.dialogtheme.title?r("report",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):"Итог"==e.dialogtheme.title?r("final-report",{ref:"mydock",attrs:{editable:e.editable,dialogdata:e.dialogtheme.data,approver:e.dialogtheme.data.approver}}):e._e()],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)],1),r("v-col",{staticClass:"d-flex flex-col",attrs:{cols:"2"}},[r("Cards",{scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-row",{staticClass:"flex-grow-0"},[r("v-col",{staticClass:"d-flex flex-col pb-0"},[r("v-autocomplete",{staticClass:"inputext iconsh",attrs:{items:e.getprojectuniquePersons(),"item-text":"id",dense:"","return-object":"",disabled:e.disableEdition,label:0==e.dialogtheme.data.approved?"Утвердить с:":"Утверждает"},scopedSlots:e._u([{key:"selection",fn:function(t){return[r("v-list-item-content",[e._v(" "+e._s(t.item.fullname)+" ")])]}},{key:"item",fn:function(t){return[r("v-list-item-content",[e._v(" "+e._s(t.item.fullname)+" ("+e._s(t.item.position.name)+") ")])]}}]),model:{value:e.dialogtheme.data.approver,callback:function(t){e.$set(e.dialogtheme.data,"approver",t)},expression:"dialogtheme.data.approver"}})],1)],1),e.dialogtheme.data.approved>1?r("v-row",{staticClass:"flex-grow-0"},[r("v-col",[e._v(" "+e._s(e.approvertext(e.dialogtheme.data.approved))+" ")])],1):e._e(),e.dialogtheme.data.approved>1?r("v-row",{staticClass:"flex-grow-0"},[r("v-col",[e.dialogtheme.data.comment?r("v-menu",{attrs:{"close-on-content-click":!1,"nudge-width":200,left:"","offset-x":""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-list-item-subtitle",e._g(e._b({},"v-list-item-subtitle",a,!1),n),[r("v-icon",{attrs:{"x-small":""}},[e._v(" mdi-message-outline ")]),e._v(" "+e._s(e.dialogtheme.data.comment.length>30?e.dialogtheme.data.comment.substring(0,30)+"...":e.dialogtheme.data.comment)+" ")],1)]}}],null,!1,1992627740)},[r("v-card",[e._v(" "+e._s(e.dialogtheme.data.comment)+" ")])],1):e._e()],1)],1):e._e(),r("v-row",{staticClass:"flex-grow-0"},[r("v-col",{staticClass:"py-0"},[e._v(" "+e._s(e.dialogtheme.data.accepters.length&&"accepted"in e.dialogtheme.data.accepters[0]&&0!=e.dialogtheme.data.accepters[0].accepted?"Согласование":"Согласовать с:")+" ")]),e.dialogtheme.data.accepters.length&&"accepted"in e.dialogtheme.data.accepters[0]&&0!=e.dialogtheme.data.accepters[0].accepted?e._e():r("v-col",{staticClass:"py-0 text-end"},[r("SelectUserLite",{attrs:{selectedUs:e.dialogtheme.data.accepters,excludeUsers:null===e.dialogtheme.data.approver?[]:[e.dialogtheme.data.approver]}})],1)],1),r("v-row",[r("v-col",{staticClass:"d-flex flex-col py-0"},[r("InputText",{staticClass:"maxHi",scopedSlots:e._u([{key:"insert",fn:function(){return[e.dialogtheme.data.accepters.length?e.dialogtheme.data.accepters.length?r("div",{staticClass:"pa-0 pt-1"},e._l(e.dialogtheme.data.accepters,(function(t,n){return r("v-list",{key:"list"+n,staticClass:"pa-0 rounded-lg mb-2",attrs:{dense:""}},[r("v-list-item",[r("v-list-item-content",{staticClass:"pa-0"},[r("v-list-item-title",{staticClass:"pa-0"},[e._v(" "+e._s(t.fullname)+" ")]),r("v-list-item-subtitle",[r("strong",[e._v(" "+e._s(e.acceptortext(t.accepted))+" ")])]),t.comment?r("v-menu",{attrs:{"close-on-content-click":!1,"nudge-width":200,left:"","offset-x":""}},[r("v-card",[e._v(" "+e._s(t.comment)+" ")])],1):e._e()],1)],1)],1)})),1):e._e():r("div",[e._v(" Не выбраны ")])]},proxy:!0}])})],1)],1),r("v-row",{staticClass:"flex-grow-0 mb-0"},[r("v-col",{staticClass:"pb-0"},[e.dialogtheme.data.accepters.length&&0==e.dialogtheme.data.accepters[0].accepted?r("BtnsOut",{attrs:{title:"На согласование",block:!0},on:{click:function(t){return e.saver("toaccept")}}}):e._e()],1)],1),e.dialogtheme.data.approver&&"id"in e.dialogtheme.data.approver&&0==e.dialogtheme.data.approved?r("v-row",{staticClass:"flex-grow-0 my-0"},[r("v-col",{staticClass:"pb-0"},[r("BtnsOut",{attrs:{title:"На утверждение",block:!0},on:{click:function(t){return e.saver("toapprover")}}})],1)],1):e._e(),e.responser.view?r("v-row",{staticClass:"flex-grow-0 my-0"},[r("v-col",{staticClass:"py-0"},["approver"==e.responser.ta_model?r("v-textarea",{model:{value:e.dialogtheme.data.comment,callback:function(t){e.$set(e.dialogtheme.data,"comment",t)},expression:"dialogtheme.data.comment"}}):"accepters"==e.responser.ta_model?r("v-textarea",{model:{value:e.dialogtheme.data.accepters[e.responser.index].comment,callback:function(t){e.$set(e.dialogtheme.data.accepters[e.responser.index],"comment",t)},expression:"dialogtheme.data.accepters[responser.index].comment"}}):e._e()],1)],1):e._e(),e.responser.view?r("v-row",{staticClass:"flex-grow-0"},[r("v-col",{staticClass:"py-0"},[r("BtnsOut",{attrs:{title:"Принять"},on:{click:function(t){return e.confirmOrNot(3)}}})],1),r("v-col",{staticClass:"pt-0"},[r("BtnsOut",{attrs:{title:"Отклонить"},on:{click:function(t){return e.confirmOrNot(2)}}})],1)],1):e._e()]},proxy:!0}])})],1)],1)]},proxy:!0}])})]},proxy:!0}])})],1)],1)},l=[],c=r(62506),u=r.n(c),d=r(30381),h=r.n(d),f=r(20629),p=r(45296),g=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"flex-grow-1"},[r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.zoomOut,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-magnify-minus-cursor ")])],1)]}}])},[r("span",[e._v("Отдалить")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.zoomIn,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-magnify-plus-cursor ")])],1)]}}])},[r("span",[e._v("Приблизить")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.previousPage,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-step-backward ")])],1)]}}])},[r("span",[e._v("На предыдущую страницу")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.nextPage,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-step-forward ")])],1)]}}])},[r("span",[e._v("На следующую страницу")])]),r("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-btn",e._g(e._b({attrs:{icon:"",id:e.idConfig.presentationMode,color:"primary"}},"v-btn",a,!1),n),[r("v-icon",{attrs:{color:"btns"}},[e._v(" mdi-fullscreen ")])],1)]}}])},[r("span",[e._v("На весь экран")])])],1)},v=[],m={name:"pdf-toolbar",data(){return{idConfig:{zoomIn:"zoomInId",zoomOut:"zoomOutId",download:"downloadId",presentationMode:"presentationModeId",previousPage:"previousPage",nextPage:"nextPageId"},scale:100,page:1}}},b=m,y=r(43736),w=r(43453),_=r.n(w),k=r(16190),x=r(4324),S=r(82082),A=(0,y.Z)(b,g,v,!1,null,null,null),C=A.exports;_()(A,{VBtn:k.Z,VIcon:x.Z,VTooltip:S.Z});var P=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0"},[r("v-col",[r("v-row",{staticClass:"styck"}),r("v-row",{staticClass:"justify-space-between ma-0"},[r("v-col",{staticClass:" pa-0",attrs:{xl:"2"}},[e.editable?r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"pt-1 mb-2 inputext",attrs:{dense:"",value:e.formatDate(e.orderdock.orderdate),type:"date-local",placeholder:"дд.мм.гггг","hide-details":""},on:{input:function(t){return e.oninputnostore(t,["orderdock","orderdate"],e.orderdock.datestart)}}},"v-text-field",a,!1),n))]}}],null,!1,869261645),model:{value:e.picker0,callback:function(t){e.picker0=t},expression:"picker0"}},[r("v-date-picker",{attrs:{"first-day-of-week":1,max:e.orderdock.datestart},model:{value:e.orderdock.orderdate,callback:function(t){e.$set(e.orderdock,"orderdate",t)},expression:"orderdock.orderdate"}})],1):r("v-col",{staticClass:"text-nowrap px-0"},[e._v("от "+e._s(e.momentext(e.orderdock.orderdate))+" года")])],1),r("v-col",{staticClass:"text-end"},[e._v(" N ")]),r("v-col",{staticClass:"flex-grow-0 text-nowrap w-75 pa-0 align-self-center",attrs:{xl:"3"}},[e.editable?r("v-text-field",{attrs:{"hide-details":"auto",dense:""},model:{value:e.orderdock.docnumber,callback:function(t){e.$set(e.orderdock,"docnumber",t)},expression:"orderdock.docnumber"}}):r("span",[e._v(e._s(e.orderdock.docnumber))])],1)],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" Об организации Проекта "),r("br"),e._v(' "'+e._s(e.orderdock.longname)+'" ')])],1),r("v-row",[r("v-col",{staticClass:"px-0"},[r("p",{class:e.editable?"passiv_text--text":""},[e._v(' В целях контроля реализации направлений деятельности ФНС России в сфере "'+e._s(e.orderdock.info.project_sphere)+'", приказываю: ')])])],1),r("v-row",[r("v-col",{staticClass:"px-0"},[r("p",{class:e.editable?"passiv_text--text":""},[e._v(' 1.Провести Проект "'+e._s(e.orderdock.longname)+'" ')]),r("p",{class:e.editable?"passiv_text--text":""},[e._v(" 2. Установить период проведения Проекта "+e._s(e.momentext(e.orderdock.datestart))+" - "+e._s(e.momentext(e.orderdock.dateend))+" ")]),r("p",{class:e.editable?"passiv_text--text":""},[e._v(" 3. Назначить директором Проекта "+e._s(e.fullname(e.orderdock.users.find((function(e){return 1==e.role.id}))))+" ")]),r("p",{class:e.editable?"passiv_text--text":""},[e._v(" 4. Назначить руководителем Проекта "+e._s(e.fullname(e.orderdock.users.find((function(e){return 2==e.role.id}))))+", координатором Проекта "+e._s(e.fullname(e.orderdock.users.find((function(e){return 4==e.role.id}))))+" ")]),r("p",{},[e._v(" 5. Директору проекта утвердить паспорт проекта в срок не позднее "),e.editable?r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"pt-1 mb-2 inputext inpcent ma-0 align-self-start ",attrs:{dense:"",value:e.formatDate(e.orderdock.info.passport_last_date),type:"date-local",placeholder:"Введите дату утверждения паспорта","hide-details":""},on:{input:function(t){return e.oninputnostore(t,["orderdock","confirmation"],e.orderdock.datestart)}}},"v-text-field",a,!1),n))]}}],null,!1,3068018130),model:{value:e.picker,callback:function(t){e.picker=t},expression:"picker"}},[r("v-date-picker",{attrs:{"first-day-of-week":1,min:e.getProject.datestart},model:{value:e.orderdock.info.passport_last_date,callback:function(t){e.$set(e.orderdock.info,"passport_last_date",t)},expression:"orderdock.info.passport_last_date"}})],1):r("span",[e._v(e._s(e.momentext(e.orderdock.info.passport_last_date)))])],1),r("p",{},[e._v(" 6. Финансовое обеспечение расходных обязательств, связанных с реализацией настоящего приказа, осуществляется "+e._s(e.orderdock.info.financial_support)+" ")]),r("p",{},[e._v(" 7. Контроль за исполнением настоящего приказа возложить на "),e.editable?r("v-autocomplete",{staticClass:"inputext inpcent iconsh",attrs:{items:e.getprojectuniquePersons,"item-text":"fullname",dense:"","return-object":"",placeholder:"Выберите ответсвенное лицо"},model:{value:e.orderdock.info.controller,callback:function(t){e.$set(e.orderdock.info,"controller",t)},expression:"orderdock.info.controller"}}):r("span",[e._v(e._s("controller"in e.orderdock.info?e.orderdock.info.controller.fullname:""))])],1)])],1),r("v-row",{staticClass:"mt-0"},["approver"in e.orderdock?r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.orderdock.approver))+" "),r("br"),e._v(e._s(e.initial(e.orderdock.approver))+e._s(e.orderdock.approver.sn)+" ")]):r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.approver))+" "),r("br"),e._v(e._s(e.initial(e.approver))+e._s(e.approver&&"sn"in e.approver?e.approver.sn:"")+" ")])],1)],1)],1)},T=[],E=r(35241);const R=(0,f._p)("projectstate");var I={name:"Order",mixins:[E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{picker0:!1,picker:!1,orderdock:{orderdate:h()().format("YYYY-MM-DD"),users:[{role:{id:0},user:{id:0,fullname:""}}],info:{docnumber:""}}}},computed:{...R.mapGetters(["getProject","getprojectuniquePersons"])},mounted(){this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),"docnumber"in this.orderdock.info||(this.orderdock.docnumber=""),"id"in this.dialogdata&&(this.orderdock=this.dialogdata.vrersion),this.obcleaner()},watch:{dialogdata:function(e,t){console.log(e,t,"CHANGED"),"id"in e?(console.log("ИД ИН ВАЛ"),this.orderdock=e.vrersion):(this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.obcleaner(),console.log("НОВЫЯ ШТУКА",this.orderdock))}},methods:{obcleaner(){for(let e of["history","author","datachat","difficult","project_files","status","tasks","project_checkpoint"])delete this.orderdock[e];for(let e in this.orderdock.info)["criteria","dop_info","grounds","influence","interactions","result","risks","target"].includes(e)&&delete this.orderdock.info[e];console.log("НОВЫЯ ШТУКА",this.orderdock)},fullname(e){try{return`${e.user.fullname}`}catch(t){console.log(t)}},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e){if(e)return h()(e).locale("Ru").format("DD MMMM YYYY")},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},O=I,L=r(344),F=r(60266),M=r(71030),D=r(44568),N=r(11713),B=r(17808),U=(0,y.Z)(O,P,T,!1,null,null,null),j=U.exports;_()(U,{VAutocomplete:L.Z,VCol:F.Z,VDatePicker:M.Z,VMenu:D.Z,VRow:N.Z,VTextField:B.Z});var q=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"flex-grow-0 pt-4"},[r("v-col",[r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" МИНФИН РОССИИ ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" ФЕДЕРАЛЬНАЯ НАЛОГОВАЯ СЛУЖБА "),r("br"),e._v(" (ФНС России) ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.title.toUpperCase())+" ")])],1)],1)],1)},z=[],V={name:"Dockhead",props:{title:{type:String,default:"Приказ"},editable:{type:Boolean,default:!1}}},W=V,H=(0,y.Z)(W,q,z,!1,null,null,null),G=H.exports;_()(H,{VCol:F.Z,VRow:N.Z});var Y=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-menu",{attrs:{"close-on-content-click":!1,"nudge-width":250,"max-height":"350",left:"","offset-x":""},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("div",e._g(e._b({},"div",a,!1),n),[r("BtnsOut",{attrs:{widthi:97,icon:!0,title:e.selectedUs.length?"Изменить":"Добавить"},scopedSlots:e._u([{key:"icons",fn:function(){return[r("MyIco",{attrs:{size:"large",icons:"mdi-account-plus"}})]},proxy:!0}],null,!0)})],1)]}}])},[r("v-card",[r("v-card-title",{},[e._v(" На согласование ")]),r("v-card-text",[r("v-data-table",{staticClass:"elevation-1 menusH overflow-y-auto",attrs:{search:e.search,"hide-default-footer":"","custom-filter":e.filterme,dense:"",headers:e.headers,items:e.allusers,"item-key":"id","sort-by":"sn"},scopedSlots:e._u([{key:"header.involve",fn:function(){return[e.allusers.length?r("MyIco",{attrs:{size:"small",color:e.allusers.length==e.selectedUs.length&&e.selectedUs.length>0?"green":"primaryicons",icons:e.selectedUs.length>0&&(e.allusers.length==e.selectedUs.length||e.allusers[0].involve)?"mdi-minus-box-multiple-outline":"mdi-plus-box-multiple"},on:{click:function(t){return e.involvall()}}}):e._e()]},proxy:!0},{key:"top",fn:function(){return[r("v-text-field",{staticClass:"mx-4",attrs:{label:"Поиск"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})]},proxy:!0},{key:"item.involve",fn:function(t){var n=t.item;return[r("MyIco",{attrs:{size:"small",color:null!==n.involve?n.involve?"green":"primaryicons":"",icons:null!==n.involve?n.involve?"mdi-check":"mdi-plus":""},on:{click:function(t){return e.involving(n)}}})]}}],null,!0)})],1)],1)],1)},X=[],K=r(27114);const Z=(0,f._p)("projectstate");var J={data(){return{search:"",headers:[{text:"ФИО ",value:"fullname"},{text:"Должность",value:"position.name"},{text:"",value:"involve",sortable:!1}]}},props:{selectedUs:{type:Array,default:[]},excludeUsers:{type:Array,default:[]}},components:{MyIco:K.Z},computed:{allusers(){let e=[],t=[];this.excludeUsers.forEach((e=>{t.push(e.id)})),this.getprojectuniquePersons().forEach((t=>{let r=void 0!=this.selectedUs.find((e=>e.id==t.id));e.push(Object.assign({involve:r,accepted:0},t))}));let r=0;while(r{t.involve=e;let r=this.selectedUs.findIndex((e=>e.id==t.id));this.selectedUs.splice(r,1)})),e&&this.allusers.forEach((e=>{null!==e.involve&&this.selectedUs.push(e)}))},filterme(e,t,r){return null!=e&&null!=t&&"string"===typeof e&&-1!==e.toString().toLocaleUpperCase().indexOf(t.toLocaleUpperCase())},involving(e){if(null!==e.involve)if(e.involve=!e.involve,e.involve)this.selectedUs.push(e);else{let t=this.selectedUs.findIndex((t=>t.id==e.id));this.selectedUs.splice(t,1)}}}},Q=J,$=r(34145),ee=r(54886),te=r(50629),re=(0,y.Z)(Q,Y,X,!1,null,"1e7c37d2",null),ne=re.exports;_()(re,{VCard:$.Z,VCardText:ee.ZB,VCardTitle:ee.EB,VDataTable:te.Z,VMenu:D.Z,VTextField:B.Z});var ae=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 "},[r("v-col",{staticClass:"flex-col"},[r("v-row",{staticClass:"flex-grow-0 align-self-center py-5"},[e._v(" ПЛАН-ГРАФИК ПРОЕКТА ")]),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col"},[r("v-col",{staticClass:"pb-0"},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),"approver"in e.orderdock?r("v-col",{staticClass:"text-end py-0"},[e._v(" "+e._s(e.position(e.orderdock.approver))+" "),r("br"),e._v(e._s(e.initial(e.orderdock.approver))+e._s(e.orderdock.approver.sn)+" ")]):r("v-col",{staticClass:"text-end py-0"},[e._v(" "+e._s(e.approver&&"sn"in e.approver?e.position(e.approver):"_______________________")+" "),r("br"),e._v(e._s(e.initial(e.approver))+e._s(e.approver&&"sn"in e.approver?e.approver.sn:"_______________________")+" ")]),e.orderdock.orderdate?r("v-col",{staticClass:"py-0"},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate,e.format="DD MMMM YYYY"))+" г. ")]):e._e()],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("v-simple-table",{scopedSlots:e._u([{key:"default",fn:function(){return[r("tr",[r("th",{staticClass:"pa-1 text-center",attrs:{colspan:"9"}},[e._v(" "+e._s(e.orderdock.longname)+" ")])]),r("tr",[r("th",{staticClass:" pa-2",staticStyle:{width:"3%"},attrs:{rowspan:"2"}},[e._v("N п/п")]),r("th",{staticClass:" pa-2",staticStyle:{width:"15%"},attrs:{rowspan:"2"}},[e._v("Наименование задачи/контрольного события")]),r("th",{staticClass:" pa-2",staticStyle:{width:"8%"},attrs:{rowspan:"2"}},[e._v("Ответсвенный исполнитель")]),r("th",{staticClass:"pa-2",staticStyle:{width:"25%"},attrs:{rowspan:"2"}},[e._v("Ожидаемый результат реализации мероприятия")]),r("th",{staticClass:"pa-2",staticStyle:{width:"7%"},attrs:{rowspan:"2"}},[e._v("Начало")]),r("th",{staticClass:" pa-2",staticStyle:{width:"7%"},attrs:{rowspan:"2"}},[e._v("Окончание")]),r("th",{staticClass:" pa-2",staticStyle:{width:"10%"},attrs:{colspan:"2"}},[e._v("Объем ресурсного обеспечения")]),r("th",{staticClass:"pa-2",attrs:{rowspan:"2"}},[e._v("Примечание")])]),r("tr",[r("td",{staticClass:"text-center pa-1"},[e._v("единица измерения")]),r("td",{staticClass:" text-center pa-1"},[e._v("значение")])]),r("tr",[r("th",{staticClass:"font-weight-regular pa-1"}),e._l(8,(function(t){return r("th",{key:t,staticClass:"font-weight-regular pa-1"},[e._v(e._s(t+1))])}))],2),e._l(e.orderdock.tasks,(function(t,n){return r("tbody",{key:n},[r("tr",[r("td",{staticClass:"text-center"},[e._v(e._s(n+1))]),r("td",{staticClass:"font-weight-bold pa-1"},[e._v(" "+e._s(t.name)+" ")]),r("td",{staticClass:"r pa-1"},[e._v(" "+e._s(e.getPersonShortFromId(t.responsible.id)))]),r("td",[r("v-textarea",{staticClass:"text-center ",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"<Документ>":""},model:{value:e.orderdock.tasks[n].expected_result,callback:function(t){e.$set(e.orderdock.tasks[n],"expected_result",t)},expression:"orderdock.tasks[key].expected_result"}})],1),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.datestart)))]),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.dateend)))]),r("td",{staticClass:"pa-1"},[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].unit_measurement,callback:function(t){e.$set(e.orderdock.tasks[n],"unit_measurement",t)},expression:"orderdock.tasks[key].unit_measurement"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].meaning,callback:function(t){e.$set(e.orderdock.tasks[n],"meaning",t)},expression:"orderdock.tasks[key].meaning"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].remark,callback:function(t){e.$set(e.orderdock.tasks[n],"remark",t)},expression:"orderdock.tasks[key].remark"}})],1)]),e._l(t.task_work,(function(t,a){return r("tr",{key:a},[r("td",{staticClass:"px-1"},[e._v(e._s(n+1)+"."+e._s(a+1))]),r("td",{staticClass:"pa-1"},[e._v(e._s(t.name))]),r("td",{staticClass:"pa-1"},[e._v(e._s(e.getPersonShortFromId(t.responsible.id)))]),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"<Документ>":""},model:{value:e.orderdock.tasks[n].task_work[a].expected_result,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"expected_result",t)},expression:"orderdock.tasks[key].task_work[k].expected_result"}})],1),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.datestart)))]),r("td",{staticClass:"pa-1 text-center"},[e._v(e._s(e.momentext(t.dateend)))]),r("td",{staticClass:"pa-1",staticStyle:{"max-width":"0px"}},[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].task_work[a].unit_measurement,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"unit_measurement",t)},expression:"orderdock.tasks[key].task_work[k].unit_measurement"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].task_work[a].meaning,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"meaning",t)},expression:"orderdock.tasks[key].task_work[k].meaning"}})],1),r("td",[r("v-textarea",{staticClass:"text-center",attrs:{"auto-grow":"",rows:"1",dense:"",readonly:!e.editable,flat:"",solo:"","hide-details":"",placeholder:e.editable?"...":""},model:{value:e.orderdock.tasks[n].task_work[a].remark,callback:function(t){e.$set(e.orderdock.tasks[n].task_work[a],"remark",t)},expression:"orderdock.tasks[key].task_work[k].remark"}})],1)])}))],2)}))]},proxy:!0}])})],1)],1)],1)],1)},ie=[],oe=r(18241);const se=(0,f._p)("projectstate");var le={name:"Planks",mixins:[oe.Z,E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],approved:0,picker0:!1,picker:!1,orderdock:{orderdate:h()().format("YYYY-MM-DD"),...this.getProject},headers:[]}},computed:{...se.mapGetters(["getProject","getprojectuniquePersons"])},mounted(){this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),"docnumber"in this.orderdock.info||(this.orderdock.docnumber=""),"id"in this.dialogdata&&(this.orderdock=this.dialogdata.vrersion),this.obcleaner()},watch:{dialogdata:function(e,t){console.log(e,t,"CHANGED"),"id"in e?(console.log("!!!!!!!!!!!!!!"),this.orderdock=e.vrersion,this.approver=e.approver,this.approved=e.approved):(this.approved=0,this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.obcleaner(),console.log("НОВЫЯ ШТУКА",this.orderdock))}},methods:{obcleaner(){this.orderdock={longname:this.orderdock.longname,tasks:this.orderdock.tasks,orderdate:this.orderdock.orderdate},console.log("НОВЫЯ ШТУКА",this.orderdock)},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e,t="DD.MM.YYYY"){if(e)return h()(e).locale("Ru").format(t)},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},ce=le,ue=r(9449),de=r(92648),he=(0,y.Z)(ce,ae,ie,!1,null,null,null),fe=he.exports;_()(he,{VCol:F.Z,VRow:N.Z,VSimpleTable:ue.Z,VTextarea:de.Z});var pe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 "},[r("v-col",{staticClass:"flex-col "},[r("v-row",{staticClass:"align-self-center py-2"},[e._v(" ФНС России ")]),r("v-row",{staticClass:"flex-grow-0 align-self-center text-center py-2 font-weight-bold"},[e._v(" "+e._s(e.orderdock.longname)+" ")]),r("v-row",{staticClass:"flex-grow-0 align-self-center text-center py-2"},[e._v(" Отчет о статусе проекта "),r("br"),e._v(" на "),e._v(" "+e._s(e.momentext(e.orderdock.orderdate))+" ")]),r("v-row",{staticClass:"flex-grow-0 align-self-center text-center pb-5 pt-2"},[e._v(" Исполнение контрольных событий ")]),e.orderdock.tasks[0].length>0?r("v-row",{staticClass:"flex-grow-0 pl-3"}):e._e(),r("report-top-table",{attrs:{editable:e.editable,"disable-sort":"",headers:e.headerstop.headers,toptable:e.orderdock.tasks[0]},on:{changepicker:e.changepicker}},[e._v(" Статус исполнения контрольных событий")]),r("report-top-table",{staticClass:"mt-3",attrs:{"disable-sort":"",editable:e.editable,headers:e.headerstop.headersprognoz,toptable:e.orderdock.tasks[1]},on:{changepicker:e.changepicker}},[e._v(" Прогноз исполнения контрольных событий на ближайшие 3 месяца")]),r("report-bot-table",{attrs:{editable:e.editable,headers:e.headersbottom.headerRisk,items:e.problemsrisks},on:{remove:e.remove,addrows:e.addrows}},[e._v(" Прочие проблемы и риски ")]),r("hr"),r("report-bot-table",{attrs:{editable:e.editable,headers:e.headersbottom.headerPlanresult,items:e.planresult},on:{addrows:e.addrowsKR,remove:e.removeKR}},[e._v(" Ключевые результаты, не вошедшие в план ")])],1)],1)},ge=[],ve=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-card",{staticClass:"mt-3"},[r("v-card-title",[e._t("default"),r("v-spacer"),e.editable?r("v-btn",{staticClass:"mb-2",attrs:{color:"primary",dark:""},on:{click:function(t){return e.$emit("addrows","")}}},[e._v(" Добавить ")]):e._e()],2),r("v-data-table",{attrs:{"hide-default-footer":"",headers:e.headers,items:e.items},scopedSlots:e._u([{key:"item.index",fn:function(t){var r=t.item;return[e._v(" "+e._s(e.items.indexOf(r)+1)+" ")]}},{key:"item.problem",fn:function(t){return[r("v-edit-dialog",{attrs:{"return-value":t.item.name},on:{"update:returnValue":function(r){return e.$set(t.item,"name",r)},"update:return-value":function(r){return e.$set(t.item,"name",r)}},scopedSlots:e._u([e.editable?{key:"input",fn:function(){return[r("v-textarea",{attrs:{"auto-grow":"",rows:"3",label:"Изменение",counter:""},model:{value:t.item.problem,callback:function(r){e.$set(t.item,"problem",r)},expression:"props.item.problem"}})]},proxy:!0}:null],null,!0)},["problem"in t.item&&t.item.problem.length>0?r("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(t.item.problem))]):r("div",[e._v("Введите текст...")])])]}},{key:"item.comment",fn:function(t){return[r("v-edit-dialog",{attrs:{"return-value":t.item.name},on:{"update:returnValue":function(r){return e.$set(t.item,"name",r)},"update:return-value":function(r){return e.$set(t.item,"name",r)}},scopedSlots:e._u([e.editable?{key:"input",fn:function(){return[r("v-textarea",{attrs:{"auto-grow":"",rows:"3",label:"Изменение",counter:""},model:{value:t.item.comment,callback:function(r){e.$set(t.item,"comment",r)},expression:"props.item.comment"}})]},proxy:!0}:null],null,!0)},["comment"in t.item&&t.item.comment.length>0?r("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(t.item.comment))]):r("div",[e._v("Введите текст...")])])]}},e.editable?{key:"item.actions",fn:function(t){var n=t.item;return[r("v-icon",{attrs:{small:""},on:{click:function(t){e.$emit("remove",e.items.indexOf(n))}}},[e._v(" mdi-delete ")])]}}:null],null,!0)})],1)},me=[],be={name:"report-bot-table",props:{items:{type:Array,default:()=>[]},headers:{type:Array,default:()=>[]},editable:{type:Boolean,default:!1}}},ye=be,we=r(96401),_e=r(96669),ke=r(75352),xe=r(76656),Se=r(16325),Ae=r(67678),Ce=(0,Ae.Z)(we.Z,_e.Z).extend({name:"v-edit-dialog",props:{cancelText:{default:"Cancel"},large:Boolean,eager:Boolean,persistent:Boolean,saveText:{default:"Save"},transition:{type:String,default:"slide-x-reverse-transition"}},data(){return{isActive:!1}},watch:{isActive(e){e?(this.$emit("open"),setTimeout(this.focus,50)):this.$emit("close")}},methods:{cancel(){this.isActive=!1,this.$emit("cancel")},focus(){const e=this.$refs.content.querySelector("input");e&&e.focus()},genButton(e,t){return this.$createElement(xe.Z,{props:{text:!0,color:"primary",light:!0},on:{click:e}},t)},genActions(){return this.$createElement("div",{class:"v-small-dialog__actions"},[this.genButton(this.cancel,this.cancelText),this.genButton((()=>{this.save(this.returnValue),this.$emit("save")}),this.saveText)])},genContent(){return this.$createElement("div",{staticClass:"v-small-dialog__content",on:{keydown:e=>{e.keyCode===ke.Do.esc&&this.cancel(),e.keyCode===ke.Do.enter&&(this.save(this.returnValue),this.$emit("save"))}},ref:"content"},[this.$slots.input])}},render(e){return e(Se.Z,{staticClass:"v-small-dialog",class:this.themeClasses,props:{contentClass:"v-small-dialog__menu-content",transition:this.transition,origin:"top right",right:!0,value:this.isActive,closeOnClick:!this.persistent,closeOnContentClick:!1,eager:this.eager,light:this.light,dark:this.dark},on:{input:e=>this.isActive=e},scopedSlots:{activator:({on:t})=>e("div",{staticClass:"v-small-dialog__activator",on:t},[e("span",{staticClass:"v-small-dialog__activator__content"},this.$slots.default)])}},[this.genContent(),this.large?this.genActions():null])}}),Pe=r(13687),Te=(0,y.Z)(ye,ve,me,!1,null,null,null),Ee=Te.exports;_()(Te,{VBtn:k.Z,VCard:$.Z,VCardTitle:ee.EB,VDataTable:te.Z,VEditDialog:Ce,VIcon:x.Z,VSpacer:Pe.Z,VTextarea:de.Z});var Re=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-card",[r("v-card-title",[e._t("default"),r("v-spacer"),r("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],2),r("v-data-table",{staticClass:"elevation-2",attrs:{"hide-default-footer":"",headers:e.headers,items:e.toptable,"item-class":e.fontweight,dense:"",search:e.search},scopedSlots:e._u([{key:"item.dateend",fn:function(t){return[r("span",[e._v(" "+e._s(e.momentext(t.item.dateend,"DD.MM.YYYY")))])]}},{key:"item.planning",fn:function(t){return[r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,i=n.attrs;return[r("v-text-field",e._g(e._b({staticClass:"ma-0 align-self-center",attrs:{readonly:!e.editable,dense:"",value:e.formatDate(t.item.planning),type:"date-local",placeholder:"дд.мм.гггг",flat:"",solo:"","hide-details":""},on:{input:function(r){return t.item.planning=e.oninputnostore(r)}}},"v-text-field",i,!1),a))]}}],null,!0),model:{value:t.item.picker,callback:function(r){e.$set(t.item,"picker",r)},expression:"props.item.picker"}},[e.editable?r("v-date-picker",{attrs:{"first-day-of-week":1,min:e.momentext(new Date,"YYYY-MM-DD")},on:{change:function(r){return e.$emit("changepicker",t.item)}},model:{value:t.item.planning,callback:function(r){e.$set(t.item,"planning",r)},expression:"props.item.planning"}}):e._e()],1)]}},{key:"item.responsible",fn:function(t){return[e._v(" "+e._s(e.getPersonShortFromId(t.item.responsible.id))+" ")]}},{key:"item.comment",fn:function(t){return[r("span",{class:e.editable?"text--disabled":""},[e._v("(Статус - "+e._s(t.item.status.name)+")")]),r("v-edit-dialog",{attrs:{"return-value":t.item.name},on:{"update:returnValue":function(r){return e.$set(t.item,"name",r)},"update:return-value":function(r){return e.$set(t.item,"name",r)}},scopedSlots:e._u([e.editable?{key:"input",fn:function(){return[r("v-textarea",{attrs:{"auto-grow":"",rows:"3",label:"Изменение",counter:""},model:{value:t.item.comment.text,callback:function(r){e.$set(t.item.comment,"text",r)},expression:"props.item.comment.text"}})]},proxy:!0}:null],null,!0)},[r("div",{staticStyle:{"white-space":"pre-wrap"}},[e._v(" "+e._s(t.item.comment.text))])])]}}],null,!0)})],1)},Ie=[];const Oe=(0,f._p)("projectstate");var Le={name:"report-top-table",mixins:[oe.Z,E.Z],props:{toptable:{type:Array,default:()=>[]},headers:{type:Array,default:()=>[]},editable:{type:Boolean,default:!1}},data(){return{picker:!1,search:""}},computed:{...Oe.mapGetters(["getProject"])},methods:{oninputnostore(e){try{let t=this.formatDateRev(e);console.log(t);const r=h()(t);if(r.isValid())return t}catch(t){console.log(t)}},fontweight(e){return String(e.keyy).includes(".")?"":"font-weight-bold"}}},Fe=Le,Me=(0,y.Z)(Fe,Re,Ie,!1,null,null,null),De=Me.exports;_()(Me,{VCard:$.Z,VCardTitle:ee.EB,VDataTable:te.Z,VDatePicker:M.Z,VEditDialog:Ce,VMenu:D.Z,VSpacer:Pe.Z,VTextField:B.Z,VTextarea:de.Z});const Ne=(0,f._p)("projectstate");var Be={components:{reportTopTable:De,reportBotTable:Ee},name:"Report",mixins:[E.Z,oe.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{selectedtask:"",toptable:[],beforew:e=>this.isbefore(e.dateend)||5==e.status.id,afterew:e=>!this.isbefore(e.dateend)&&e.status.id<5,lastdock:null,approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],flagnew:!1,approved:0,orderdock:{orderdate:h()().format("YYYY-MM-DD"),confirmation:"",name:"",datestart:"",dateend:"",tasks:[[],[]],problemsrisks:[],planresult:[]},problemsrisks:[],planresult:[],dialog:!1}},mounted(){"id"in this.dialogdata?(this.approved=this.dialogdata.approved,this.orderdock=this.dialogdata.vrersion,this.orderdock.tasks.sort(((e,t)=>new Date(e.dateend)>new Date(t.dateend)?1:new Date(t.dateend)>new Date(e.dateend)?-1:0)),this.problemsrisks=this.orderdock.problemsrisks,this.planresult=this.orderdock.planresult,this.flagnew=!0):(console.log("ORDERDOCK"),this.problemsrisks=[],this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.tasks.sort(((e,t)=>new Date(e.dateend)>new Date(t.dateend)?1:new Date(t.dateend)>new Date(e.dateend)?-1:0)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),this.preparing(),this.toptablemaker(),this.obcleaner())},watch:{dialogdata:async function(e,t){console.log(e,t,"CHANGED"),"id"in e?(this.orderdock=e.vrersion,this.problemsrisks=this.orderdock.problemsrisks,this.planresult=this.orderdock.planresult,this.approver=e.approver,this.approved=e.approved):(this.orderdock={},this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.orderdock.tasks.sort(((e,t)=>new Date(e.dateend)>new Date(t.dateend)?1:new Date(t.dateend)>new Date(e.dateend)?-1:0)),this.problemsrisks=[],this.planresult=[],this.preparing(),this.toptablemaker(),this.obcleaner())}},computed:{...Ne.mapGetters(["getProject"]),planr(){return this.planresult.some((e=>e.length>0))},selectTasks(){return console.log(this.orderdock),["1"]},headerstop(){return{headers:[{text:"№",align:"start",value:"keyy",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Блок/контрольное событие",value:"name",cellClass:this.editable?"text--disabled":""},{text:"Плановый срок",value:"dateend",cellClass:this.editable?"text--disabled":"",width:"9%"},{text:"Факт/прогноз",value:"planning",width:"9%"},{text:"Ответсвенный",value:"responsible",cellClass:this.editable?"text--disabled":"",width:"15%"},{text:"Комментарий",value:"comment",width:"40%"}],headersprognoz:[{text:"№",align:"start",value:"keyy",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Блок/контрольное событие",value:"name",cellClass:this.editable?"text--disabled":""},{text:"Плановый срок",value:"dateend",cellClass:this.editable?"text--disabled":"",width:"9%"},{text:"Прогнозный срок",value:"planning",width:"9%"},{text:"Ответсвенный",value:"responsible",cellClass:this.editable?"text--disabled":"",width:"15%"},{text:"Комментарий",value:"comment",width:"40%"}]}},headersbottom(){let e={text:"Удаление",value:"actions",width:"5%"},t=[{text:"№",align:"start",value:"index",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Наименование проблемы/риска",value:"problem",cellClass:this.editable?"text--disabled":"",width:"45%"},{text:"Комментарий",value:"comment",cellClass:this.editable?"text--disabled":"",width:"45%"}],r=[{text:"№",align:"start",value:"index",cellClass:this.editable?"text--disabled":"",width:"5%"},{text:"Ключевые достигнутые результаты",value:"problem",cellClass:this.editable?"text--disabled":"",width:"45%"},{text:"Ключевые запланированные результаты",value:"comment",cellClass:this.editable?"text--disabled":"",width:"45%"}];return this.editable&&(t.push(e),r.push(e)),{headerRisk:t,headerPlanresult:r}}},methods:{obcleaner(){this.orderdock={longname:this.orderdock.longname,tasks:this.orderdock.tasks,orderdate:this.orderdock.orderdate},console.log("НОВЫЯ ШТУКА",this.orderdock)},preparing(){this.orderdock.tasks.forEach((e=>{let t=this.getProject.history.find((t=>7==t.action.id&&2==t.level&&null==t.work&&t.task==e.id));console.log(t),t=void 0==t?{text:"Не предоставлен",datet:""}:{text:t.comment,datet:t.crerateddate,author:t.author},e.comment=t;let r=this.getProject.history.find((t=>4==t.action.id&&2==t.level&&null==t.work&&t.task==e.id&&5==t.info.status.id&&t.info.status.id==e.status.id));console.log(r),r=void 0===r?h()(e.dateend).isAfter()?e.dateend:void 0:r.createdate.split(" ")[0],e["planning"]=r,console.log(e.planning,r,"planning",e.dateend),e.task_work.forEach((t=>{let r=this.getProject.history.find((e=>7==e.action.id&&3==e.level&&e.work==t.id));r=void 0==r?{text:"Не предоставлен",datet:""}:{text:r.comment,datet:r.creratedate,author:r.author},t.comment=r;let n=this.getProject.history.find((r=>4==r.action.id&&3==r.level&&r.work==t.id&&r.task==e.id&&5==r.info.status.id&&r.info.status.id==t.status.id));console.log(n,"planningw"),n=void 0===n?h()(t.dateend).isAfter()?t.dateend:void 0:n.createdate.split(" ")[0],t.planning=n}))}))},toptablemaker(){let e=[],t=[];this.orderdock.tasks.filter((e=>this.isbefore(e.dateend)||5==e.status.id||e.task_work.some(this.beforew))).forEach(((t,r)=>{e.push({...t,keyy:r+1,picker:!1}),t.task_work.filter((e=>this.isbefore(e.dateend)||5==e.status.id)).forEach(((t,n)=>{e.push({...t,keyy:`${r+1}.${n+1}`,picker:!1})}))})),this.orderdock.tasks.filter((e=>!this.isbefore(e.dateend)&&e.status.id<5||e.task_work.some(this.afterew))).forEach(((e,r)=>{t.push({...e,keyy:r+1,picker:!1}),e.task_work.filter((e=>this.thremonth(e.dateend)&&e.status.id<5)).forEach(((e,n)=>{t.push({...e,keyy:`${r+1}.${n+1}`,picker:!1})}))})),this.orderdock.tasks=[e,t]},changepicker(e){if("task_work"in e){let t=this.orderdock.tasks.findIndex((t=>t.id==e.id));this.orderdock.tasks[t].planning=e.planning;for(let r=0;r<2;r++)try{this.toptable[r][this.toptable[r].findIndex((t=>t.id==e.id&&"task_work"in t))].planning=e.planning}catch{}}else{let t=this.orderdock.tasks.findIndex((t=>t.id==e.parent.id)),r=this.orderdock.tasks[t].task_work.findIndex((t=>t.id==e.id));this.orderdock.tasks[t].task_work[r].planning=e.planning}},remove(e){this.problemsrisks.splice(e,1)},removeKR(e){this.planresult.splice(e,1)},addrows(){this.problemsrisks.push({problem:"",comment:""})},addrowsKR(){this.planresult.push({problem:"",comment:""})},thremonth(e){return!this.isbefore(e)&&h()().diff(h()(e),"days")<90},isbefore(e){return h()(e).isBefore()},position(e){try{return e.position.name}catch{return""}}}},Ue=Be,je=(0,y.Z)(Ue,pe,ge,!1,null,null,null),qe=je.exports;_()(je,{VCol:F.Z,VRow:N.Z});var ze=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 "},[r("v-col",{staticClass:"flex-col"},[r("v-row",{staticClass:"flex-grow-0 align-self-center text-center py-5"},[e._v(" ИТОГОВЫЙ ОТЧЕТ"),r("br"),e._v(" по проекту/этапу проекта ")]),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline"},[r("tr",[r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"20%"}},[e._v("Наименование проекта/этапа проекта")]),r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"80%"}},[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:"Наименование проекта в случае завершения всего проекта или наименование проекта и этапа проекта в случае завершения этапа проекта"},model:{value:e.orderdock.longname,callback:function(t){e.$set(e.orderdock,"longname",t)},expression:"orderdock.longname"}}):r("span",[e._v(e._s(e.orderdock.longname))])],1)]),e._l(["Директор","Руководитель"],(function(t,n){return r("tr",{key:t},[r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"20%"}},[e._v(e._s(t)+" проекта")]),r("td",{staticClass:"font-weight-regular pa-2",staticStyle:{width:"80%"}},[e._v(e._s(e.getProject.users.find((function(e){return e.role.id==n+1})).user.fullname))])])}))],2)])],1),"result"in e.orderdock&&e.orderdock.result.length>0?r("div",[r("h4",{staticClass:"my-3"},[e._v("Достижение результатов проекта/этапа проекта")]),r("v-data-table",{attrs:{headers:e.result_headers,items:e.orderdock.result,"disable-pagination":"","hide-default-footer":""},scopedSlots:e._u([{key:"item.index",fn:function(t){var r=t.index;return[e._v(" "+e._s(r+1)+" ")]}},{key:"item.status",fn:function(t){return[e.editable?r("v-select",{attrs:{items:e.result_select,placeholder:"Выберите...",dense:"",rules:[function(e){return!(null===e)||"Обязательно для заполнения"}]},on:{change:function(t){return e.changeresult("result")}},model:{value:t.item.status,callback:function(r){e.$set(t.item,"status",r)},expression:"props.item.status"}}):r("div",[e._v(e._s(t.item.status))])]}},{key:"item.comment",fn:function(t){return[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:'Для статусов, отличающихся от "Получен", привести комментарий, объясняющий недостижение результата ',dense:""},model:{value:t.item.comment,callback:function(r){e.$set(t.item,"comment",r)},expression:"props.item.comment"}}):r("div",[e._v(e._s(t.item.comment))])]}},{key:"footer",fn:function(){return[r("v-row",[r("v-col",[e._v("Итого достигнуто результатов:")]),r("v-col",{attrs:{cols:"3"}},[e.editable&&e.orderdock.result.filter((function(e){return"Получен частично"==e.status})).length>0?r("v-row",[r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.resultrules,type:"number"},model:{value:e.orderdock.result_description.result.count,callback:function(t){e.$set(e.orderdock.result_description.result,"count",t)},expression:"orderdock.result_description.result.count"}})],1),r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.percentrules,prefix:"(",type:"number",suffix:"%)"},model:{value:e.orderdock.result_description.result.percent,callback:function(t){e.$set(e.orderdock.result_description.result,"percent",t)},expression:"orderdock.result_description.result.percent"}})],1)],1):r("span",[e._v(e._s(e.orderdock.result_description.result.count)+"("+e._s(e.orderdock.result_description.result.percent)+"%)")])],1),r("v-col",[e.editable&&e.orderdock.result.filter((function(e){return"Получен частично"==e.status})).length>0?r("v-textarea",{attrs:{rows:"3",placeholder:"В случае частичного получения некоторых результатов, необходимо привести комментарий, как вычислялось итоговое количество и процент",dense:""},model:{value:e.orderdock.result_description.result.comment,callback:function(t){e.$set(e.orderdock.result_description.result,"comment",t)},expression:"orderdock.result_description.result.comment"}}):r("p",[e._v(e._s(e.orderdock.result_description.result.comment))])],1)],1)]},proxy:!0}],null,!0)})],1):e._e(),"criteria"in e.orderdock&&e.orderdock.criteria.length>0?r("div",[r("h4",{staticClass:"my-3"},[e._v("Достижение качества результатов проекта/этапа проекта")]),r("v-data-table",{attrs:{headers:e.success_headers,items:e.orderdock.criteria,"disable-pagination":"","hide-default-footer":""},scopedSlots:e._u([{key:"item.index",fn:function(t){var r=t.index;return[e._v(" "+e._s(r+1)+" ")]}},{key:"item.status",fn:function(t){return[e.editable?r("v-select",{attrs:{items:e.success_select,placeholder:"Выберите...",dense:"",rules:[function(e){return!(null===e)||"Обязательно для заполнения"}]},on:{change:function(t){return e.changeresult("criteria")}},model:{value:t.item.status,callback:function(r){e.$set(t.item,"status",r)},expression:"props.item.status"}}):r("div",[e._v(e._s(t.item.status))])]}},{key:"item.comment",fn:function(t){return[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:'Для статусов, отличающихся от "Достигнут", привести комментарий, объясняющий несоответствие критерию успеха ',dense:""},model:{value:t.item.comment,callback:function(r){e.$set(t.item,"comment",r)},expression:"props.item.comment"}}):r("div",[e._v(e._s(t.item.comment))])]}},{key:"footer",fn:function(){return[r("v-row",[r("v-col",[e._v("Итого достигнуто результатов:")]),r("v-col",{attrs:{cols:"3"}},[e.editable&&e.orderdock.criteria.filter((function(e){return"Достигнут частично"==e.status})).length>0?r("v-row",[r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.resultrules,type:"number"},model:{value:e.orderdock.result_description.criteria.count,callback:function(t){e.$set(e.orderdock.result_description.criteria,"count",t)},expression:"orderdock.result_description.criteria.count"}})],1),r("v-col",[r("v-text-field",{staticClass:"mt-0 pt-0",attrs:{dense:"",rules:e.rules.percentrules,prefix:"(",type:"number",suffix:"%)"},model:{value:e.orderdock.result_description.criteria.percent,callback:function(t){e.$set(e.orderdock.result_description.criteria,"percent",t)},expression:"orderdock.result_description.criteria.percent"}})],1)],1):r("span",[e._v(e._s(e.orderdock.result_description.criteria.count)+"("+e._s(e.orderdock.result_description.criteria.percent)+"%)")])],1),r("v-col",[e.editable&&e.orderdock.criteria.filter((function(e){return"Достигнут частично"==e.status})).length>0?r("v-textarea",{attrs:{rows:"3",placeholder:"В случае частичного недостижения некоторых критериев успеха, необходимо привести комментарий, как вычислялось итоговое количество и процент",dense:""},model:{value:e.orderdock.result_description.criteria.comment,callback:function(t){e.$set(e.orderdock.result_description.criteria,"comment",t)},expression:"orderdock.result_description.criteria.comment"}}):r("p",[e._v(e._s(e.orderdock.result_description.criteria.comment))])],1)],1)]},proxy:!0}],null,!0)})],1):e._e(),r("h4",{staticClass:"my-3"},[e._v("Соблюдение сроков проекта/этапа проекта")]),r("v-simple-table",{scopedSlots:e._u([{key:"default",fn:function(){return[r("thead",[r("tr",[r("th",{staticClass:"text-left"},[e._v(" Плановая длительность проекта/этапа проекта ")]),r("th",{staticClass:"text-left"},[e._v(" Фактическая длительность проекта/этапа проекта ")]),r("th",{staticClass:"text-left"},[e._v(" Отклонение ")])])]),r("tbody",[r("tr",[r("td",[e._v(e._s(e.momentedDay(e.orderdock.datestart)+" - "+e.momentedDay(e.orderdock.dateend)+"/("+e.momentdiff(e.orderdock.datestart,e.orderdock.dateend)+"д.)"))]),r("td",[r("v-row",[r("v-col",[r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"ma-0 align-self-center",attrs:{readonly:!e.editable,dense:"",value:e.formatDate(e.orderdock.srok.fact.datestart),type:"date-local",placeholder:"Факт начало",flat:"",solo:"","hide-details":""},on:{input:function(t){return e.orderdock.srok.fact.datestart=e.oninputnostore(t)}}},"v-text-field",a,!1),n))]}}]),model:{value:e.srokmenu[0],callback:function(t){e.$set(e.srokmenu,0,t)},expression:"srokmenu[0]"}},[e.editable?r("v-date-picker",{attrs:{"first-day-of-week":1},model:{value:e.orderdock.srok.fact.datestart,callback:function(t){e.$set(e.orderdock.srok.fact,"datestart",t)},expression:"orderdock.srok.fact.datestart"}}):e._e()],1)],1),r("v-col",[r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"ma-0 align-self-center",attrs:{readonly:!e.editable,dense:"",value:e.formatDate(e.orderdock.srok.fact.dateend),type:"date-local",placeholder:"Факт окончания",flat:"",solo:"","hide-details":""},on:{input:function(t){return e.orderdock.srok.fact.dateend=e.oninputnostore(t)}}},"v-text-field",a,!1),n))]}}]),model:{value:e.srokmenu[1],callback:function(t){e.$set(e.srokmenu,1,t)},expression:"srokmenu[1]"}},[e.editable?r("v-date-picker",{attrs:{"first-day-of-week":1},model:{value:e.orderdock.srok.fact.dateend,callback:function(t){e.$set(e.orderdock.srok.fact,"dateend",t)},expression:"orderdock.srok.fact.dateend"}}):e._e()],1)],1)],1),r("span",[e._v("("+e._s(e.momentdiff(e.orderdock.srok.fact.datestart,e.orderdock.srok.fact.dateend))+"д.)")])],1),r("td",[e._v(e._s((100*(e.momentdiff(e.orderdock.srok.fact.datestart,e.orderdock.srok.fact.dateend)-e.momentdiff(e.orderdock.datestart,e.orderdock.dateend))/e.momentdiff(e.orderdock.datestart,e.orderdock.dateend)).toFixed(2))+" %")])]),r("tr",[r("th",{attrs:{colspan:"3"}},[e._v(" Дополнительные комментарии к соблюдению сроков завершения проекта ")])]),r("tr",[r("td",{attrs:{colspan:"3"}},[e.editable?r("v-textarea",{attrs:{rows:"3",placeholder:"Указать дополнительные комментарии к соблюдению сроков завершения проекта в случае необходимост, например, указав зафиксированные сроки начала и завершения проекта или причины отклонения",dense:""},model:{value:e.orderdock.srok.comment,callback:function(t){e.$set(e.orderdock.srok,"comment",t)},expression:"orderdock.srok.comment"}}):e._e()],1)])])]},proxy:!0}])})],1)],1)},Ve=[];const We=(0,f._p)("projectstate");var He={name:"FinalReport",mixins:[oe.Z,E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{srokmenu:[!1,!1],approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],rules:{resultrules:[e=>e<=this.orderdock.result.length||"Количество полуенных результатов не может превышать их количество в паспорте",e=>e>=0||"Количество полуенных результатов не может быть меньше 0"],percentrules:[e=>e>=0&&e<=100||"Процент должен быть между значениями 0 и 100"]},approved:0,orderdock:{orderdate:h()().format("YYYY-MM-DD"),confirmation:"",...this.getProject,tabler:{docnumber:"",approvedtime:""},result:[],srok:{comment:"",fact:{datestart:"",dateend:""}}},result_select:["Получен","Не получен","Получен частично"],success_select:["Достигнут","Не достигнут","Достигнут частично"],result_headers:[{text:"№",align:"start",sortable:!1,value:"index"},{text:"Запланированные результаты",value:"name"},{text:"Окончательный статус",value:"status"},{text:"Комментарий",value:"comment"}],success_headers:[{text:"№",align:"start",sortable:!1,value:"index"},{text:"Установленные критерии успеха",value:"name"},{text:"Окончательный статус",value:"status"},{text:"Комментарий",value:"comment"}]}},mounted(){h().locales("ru"),"id"in this.dialogdata?(this.approved=this.dialogdata.approved,this.orderdock=this.dialogdata.vrersion):(this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:"",srok:{comment:"",fact:{datestart:this.getProject.datestart,dateend:this.getProject.dateend}}},this.getresultobj())},watch:{dialogdata:function(e,t){console.log(e,t,"CHANGED"),"id"in e?(this.orderdock=e.vrersion,this.approver=e.approver,this.approved=e.approved,this.orderdock["tabler"]={docnumber:e.docnumber}):(this.approved=0,this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:"",srok:{comment:"",fact:{datestart:this.getProject.datestart,dateend:this.getProject.dateend}}},this.getresultobj())}},computed:{...We.mapGetters(["getProject","getprojectuniquePersons"])},methods:{momentdiff(e,t){return h()(t).diff(h()(e),"days")},changeresult(e="result"){let t="result"==e?"Получен":"Достигнут";this.orderdock.result_description[e].count=this.orderdock[e].filter((e=>e.status==t)).length,this.orderdock.result_description[e].percent=100*this.orderdock.result_description[e].count/this.orderdock[e].length},oninputnostore(e){try{let t=this.formatDateRev(e);console.log(t);const r=h()(t);if(r.isValid())return t}catch(t){console.log(t)}},obcleaner(){for(let e in this.orderdock)["users","datestart","dateend","result","criteria","result_description","name","longname","info","srok"].includes(e)||delete this.orderdock[e];for(let e in this.orderdock.info)["criteria","result"].includes(e)||delete this.orderdock.info[e]},getresultobj(){console.log("ORDERDOCK"),console.log(this.orderdock);let e=[],t=[];this.orderdock.result_description={result:{count:0,percent:0,comment:""},criteria:{count:0,percent:0,comment:""}},this.orderdock.info.result.forEach((e=>t.push({name:e,status:null,comment:"",index:t.length+1}))),this.orderdock.info.criteria.forEach((t=>e.push({name:t,status:null,comment:"",index:e.length+1}))),this.orderdock.result=t,this.orderdock.criteria=e,this.obcleaner(),this.changeresult()},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e){if(e)return h()(e).locale("Ru").format("DD MMMM YYYY")},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},Ge=He,Ye=r(57135),Xe=(0,y.Z)(Ge,ze,Ve,!1,null,null,null),Ke=Xe.exports;_()(Xe,{VCol:F.Z,VDataTable:te.Z,VDatePicker:M.Z,VMenu:D.Z,VRow:N.Z,VSelect:Ye.Z,VSimpleTable:ue.Z,VTextField:B.Z,VTextarea:de.Z});var Ze=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-row",{staticClass:"ma-0 disposition"},[r("v-col",[r("v-row",{staticClass:"justify-space-between ma-0"},[r("v-col",{staticClass:" pa-0",attrs:{xl:"2"}},[e.editable?r("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,a=t.attrs;return[r("v-text-field",e._g(e._b({staticClass:"pt-1 mb-2 inputext",attrs:{dense:"",value:e.formatDate(e.orderdock.orderdate),type:"date-local",placeholder:"дд.мм.гггг","hide-details":""},on:{input:function(t){return e.oninputnostore(t,["orderdock","orderdate"],e.orderdock.datestart)}}},"v-text-field",a,!1),n))]}}],null,!1,869261645),model:{value:e.picker0,callback:function(t){e.picker0=t},expression:"picker0"}},[r("v-date-picker",{attrs:{"first-day-of-week":1,max:e.orderdock.datestart},model:{value:e.orderdock.orderdate,callback:function(t){e.$set(e.orderdock,"orderdate",t)},expression:"orderdock.orderdate"}})],1):r("v-col",{staticClass:"text-nowrap px-0"},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" года ")])],1),r("v-col",{staticClass:"text-end"},[e._v(" N ")]),r("v-col",{staticClass:"flex-grow-0 text-nowrap w-75 pa-0 align-self-center",attrs:{xl:"3"}},[e.editable?r("v-text-field",{attrs:{"hide-details":"auto",dense:""},model:{value:e.orderdock.docnumber,callback:function(t){e.$set(e.orderdock,"docnumber",t)},expression:"orderdock.docnumber"}}):r("span",[e._v(e._s(e.orderdock.docnumber))])],1)],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" Об утверждении"),r("br"),e._v(" Паспорта Проекта, плана контрольных событий Проекта и состава"),r("br"),e._v("Рабочей группы по реализации Проекта "),r("br"),e._v(' "'+e._s(e.orderdock.longname)+'" ')])],1),r("v-row",[r("v-col",{staticClass:"px-0"},[r("p",{staticClass:"test1 mb-0",class:e.editable?"passiv_text--text":""},[e._v(" В целях контроля реализации направлений деятельности ФНС России в сфере "+e._s(e.orderdock.info.project_sphere)+" ")])])],1),r("v-row",[r("v-col",{staticClass:"px-0",class:e.editable?"passiv_text--text":""},[r("p",{staticClass:"test1"},[e._v(" 1. Утвердить: ")]),r("p",{staticClass:"test1"},[e._v(" Паспорт Проекта согласно приложению № 1 к настоящему распоряжению; ")]),r("p",{staticClass:"test1"},[e._v(" План контрольных событий Проекта согласно приложению № 2 к настоящему распоряжению; ")]),r("p",{staticClass:"test1"},[e._v(" состав Рабочей группы по реализации Проекта согласно приложению № 3 к настоящему распоряжению. ")]),r("p",{staticClass:"test1"},[e._v(" 2. Контроль за исполнением настоящего распоряжения оставляю за собой. ")])])],1),"approver"in e.orderdock?r("v-row",{staticClass:"mt-0"},["approver"in e.orderdock?r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.orderdock.approver))+" "),r("br"),e._v(e._s(e.initial(e.orderdock.approver))+e._s(e.orderdock.approver.sn)+" ")]):r("v-col",{staticClass:"text-end pa-0"},[e._v(" "+e._s(e.position(e.approver))+" "),r("br"),e._v(e._s(e.initial(e.approver))+e._s(e.approver&&"sn"in e.approver?e.approver.sn:"")+" ")])],1):e._e(),r("v-row",{staticClass:"mt-5"},[r("v-col",{staticClass:"text-end",class:e.editable?"passiv_text--text":""},[e._v(" Приложение N 1 ")])],1),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col mt-4"},[r("v-col",{staticClass:"pb-0",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" распоряжением ФНС России ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" г. ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" N "+e._s(""==e.orderdock.docnumber||null===e.orderdock.docnumber?"__________________":e.orderdock.docnumber)+" ")])],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" ПАСПОРТ проекта ")])],1),r("v-row",[r("v-col",{staticClass:"pa-0"},[r("p",{staticClass:"test1 mb-0 mt-2",class:e.editable?"passiv_text--text":""},[e._v(" ОСНОВНЫЕ ПОЛОЖЕНИЯ ")])])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[e.generalposition.length>0?r("table",{staticClass:"inmpline"},e._l(e.generalposition,(function(t,n){return r("p-table",{key:n,attrs:{dat:t,editable:e.editable}},[e._v(e._s(t.text))])})),1):e._e()])],1),r("v-row",[r("v-col",{staticClass:"pa-0"},[r("p",{staticClass:"test1 mb-0 mt-2",class:e.editable?"passiv_text--text":""},[e._v(" СОДЕРЖАНИЕ ПРОЕКТА ")])])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline"},e._l(e.projectcontent,(function(t,n){return r("p-table",{key:n,attrs:{dat:t,editable:e.editable}},[e._v(e._s(t.text))])})),1)])],1),r("v-row",{staticClass:"mt-10"},[r("v-col",{staticClass:"text-end",class:e.editable?"passiv_text--text":""},[e._v(" Приложение N 2 ")])],1),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col mt-4"},[r("v-col",{staticClass:"pb-0",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" распоряжением ФНС России ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" г. ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" N "+e._s(""==e.orderdock.docnumber||null===e.orderdock.docnumber?"__________________":e.orderdock.docnumber)+" ")])],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" План контрольных событий проекта ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.orderdock.longname&&e.orderdock.longname.length>0?e.orderdock.longname:e.orderdock.name)+" ")])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline",class:e.editable?"passiv_text--text":""},[r("tr",[r("td",{staticClass:"font-weight-regular pa-2 w-7"},[e._v(" № ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Наименование задачи/контрольного события ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Ответственный исполнитель ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Дата решения/наступления контрольного события ")])]),r("tr",e._l(4,(function(t){return r("td",{key:t,staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(t)+" ")])})),0),e._l(e.taskworks,(function(t,n){return r("tr",{key:n},[r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(n+1)+" ")]),r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(t.longname&&t.longname.length>0?t.longname:t.name)+" ")]),r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(t.responsible.sn)+" ")]),r("td",{staticClass:"font-weight-regular pa-2",class:"task_work"in t?"font-weight-bold":""},[e._v(" "+e._s(e.momentext(t.dateend))+" ")])])}))],2)])],1),r("v-row",{staticClass:"mt-10"},[r("v-col",{staticClass:"text-end",class:e.editable?"passiv_text--text":""},[e._v(" Приложение N 3 ")])],1),r("v-row",{staticClass:"flex-grow-0 align-self-end text-end pb-5 flex-col mt-4"},[r("v-col",{staticClass:"pb-0",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.approvedtext[e.approved].toUpperCase())+" ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" распоряжением ФНС России ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" от "+e._s(e.momentext(e.orderdock.orderdate))+" г. ")]),r("v-col",{staticClass:"py-0",class:e.editable?"passiv_text--text":""},[e._v(" N "+e._s(""==e.orderdock.docnumber||null===e.orderdock.docnumber?"__________________":e.orderdock.docnumber)+" ")])],1),r("v-row",[r("v-col",{staticClass:"text-center pa-0",class:e.editable?"passiv_text--text":""},[e._v(" Состав рабочей группы по реализации проекта ")])],1),r("v-row",[r("v-col",{staticClass:"text-center",class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(e.orderdock.longname)+" ")])],1),r("v-row",[r("v-col",{staticClass:"planks flex-col"},[r("table",{staticClass:"inmpline",class:e.editable?"passiv_text--text":""},[r("tr",[r("td",{staticClass:"font-weight-regular pa-2 w-7"},[e._v(" № ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Наименование проектной роли ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Процент загрузки на проекте ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" ФИО должностного лица ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" Наименование подразделения и должности ")])]),e._l(e.sortedusers,(function(t,n){return r("tr",{key:n},[r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(n+1)+" ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s("role"in t?t.role.name:"")+" ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(t.percent)+" ")]),r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s("user"in t?t.user.fullname:t)+" ")]),"user"in t?r("td",{staticClass:"font-weight-regular pa-2"},[e._v(" "+e._s(t.user.organization.name)),r("br"),e._v(e._s(t.user.department.name)),r("br"),e._v(e._s(t.user.otdel.name)),r("br"),e._v(e._s(t.user.position.name)+" ")]):r("td")])}))],2)])],1)],1)],1)},Je=[],Qe=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("tr",[r("td",{staticClass:"font-weight-regular pa-2 w-50"},[r("p",{class:e.editable?"passiv_text--text":""},[e._t("default")],2)]),Array.isArray(e.dat.data)?r("td",{staticClass:"font-weight-regular pa-2"},e._l(e.dat.data,(function(t,n){return r("p",{key:n,class:e.editable?"passiv_text--text":""},[e._v(" "+e._s(t)+" ")])})),0):r("td",{staticClass:"font-weight-regular pa-2"},[r("p",{class:e.editable?"passiv_text--text":""},[e._v(e._s(e.dat.data))])])])},$e=[],et={name:"p-table",props:{dat:{type:Object,default:()=>{}},editable:{type:Boolean,default:!1}}},tt=et,rt=(0,y.Z)(tt,Qe,$e,!1,null,null,null),nt=rt.exports;const at=(0,f._p)("projectstate");var it={components:{pTable:nt},name:"disposition",mixins:[E.Z],props:{editable:{type:Boolean,default:!1},dialogdata:{type:Object,default:()=>({})},approver:{type:Object,default:()=>({position:{name:""}})}},data(){return{lastdock:null,approvedtext:["_______________________","На утверждении","Отклонено","Утверждено"],flagnew:!1,approved:0,picker0:!1,picker:!1,involveeRules:[e=>e&&e>0||"Значение должно быть больше 0",e=>e&&e<=100||"Значение должно быть меньше или равно 100"],orderdock:{orderdate:h()().format("YYYY-MM-DD"),confirmation:"",users:[{role:{id:0},user:{percent:0,organization:{name:""},department:{name:""},otdel:{name:""},position:{name:""}}}],info:{grounds:"",project_sphere:""},tasks:[]},generalposition:[],projectcontent:[],dialog:!1}},computed:{...at.mapGetters(["getProject","getprojectuniquePersons"]),taskworks(){let e=[];return this.orderdock.tasks.forEach((t=>{e.push(t),e.push(...t.task_work)})),e},sortedusers(){let e=this.orderdock.users,t=e.sort(((e,t)=>e.user.sn>t.user.sn?1:t.user.sn>e.user.sn?-1:0));return t.sort(((e,t)=>e.role.id>t.role.id?1:t.role.id>e.role.id?-1:0))},projectusersdepartments(){let e=this.orderdock.users.filter((e=>5==e.role.id)),t=new Set;return e.forEach((e=>t.add(e.user.department))),Array.from(t)}},mounted(){this.orderdock=JSON.parse(JSON.stringify(this.getProject)),this.orderdock.orderdate=h()().format("YYYY-MM-DD"),"docnumber"in this.orderdock.info||(this.orderdock.docnumber=""),"id"in this.dialogdata&&(this.orderdock=this.dialogdata.vrersion),this.obcleaner(),this.buildtables()},watch:{dialogdata:async function(e,t){console.log(e,t,"CHANGED"),"id"in e?(console.log("ИД ИН ВАЛ"),this.orderdock=e.vrersion,this.flagnew=!0):(this.orderdock={orderdate:h()().format("YYYY-MM-DD"),...JSON.parse(JSON.stringify(this.getProject)),docnumber:""},this.obcleaner(),console.log("НОВЫЯ ШТУКА",this.orderdock),this.buildtables())}},methods:{obcleaner(){for(let e of["history","author","datachat","difficult","project_files","status","project_checkpoint"])delete this.orderdock[e];console.log("НОВЫЯ ШТУКА",this.orderdock)},buildtables(){this.generalposition=[{text:"Наименование проекта",data:this.orderdock.longname},{text:"Краткое наименование проекта",data:this.orderdock.name},{text:"Директор",data:this.findrole(1)},{text:"Руководитель",data:this.findrole(2)},{text:"Координатор",data:this.findrole(4)},{text:"Секретарь",data:this.findrole(3)},{text:"Участники",data:this.departmentfilter()}],this.projectcontent=[{text:"Основание для инициации проекта",data:this.orderdock.info.grounds},{text:"Цель (цели) проекта",data:this.orderdock.info.target},{text:"Задачи проекта",data:this.orderdock.tasks.map((e=>e.name))},{text:"Результат (результаты) проекта",data:this.orderdock.info.result},{text:"Критерии успеха проекта",data:this.orderdock.info.criteria},{text:"Период реализации проекта",data:`${this.momentext(this.orderdock.datestart)} - ${this.momentext(this.orderdock.dateend)}`},{text:"Риски реализации проекта",data:this.orderdock.info.risks},{text:"Влияние результата проекта",data:this.orderdock.info.influence},{text:"Взаимосвязи с другими проектами и программами",data:this.orderdock.info.interactions},{text:"Дополнительная информация",data:this.orderdock.info.dop_info}]},addRows(e){this.orderdock[e].push("")},remove(e,t){this.orderdock[e].splice(t,1)},departmentfilter(){let e=new Set,t=this.orderdock.users.filter((e=>5==e.role.id));return t.forEach((t=>e.add(t.user.department.name))),console.log(Array.from(e),"DEPS"),Array.from(e)},findrole(e){try{return this.orderdock.users.find((t=>t.role.id==e)).user.fullname}catch(t){return"Не назначен"}},findpos(e){try{return this.orderdock.users.find((t=>t.role.id==e)).user}catch(t){return""}},getPersonShortFromId(e){let t={};this.getprojectuniquePersons.forEach((r=>{r.id==e&&(t=r)}));let r=t.givenName.split(" ");return`${t.sn} ${r[0][0]}.${r[1][0]}.`},position(e){try{return e.position.name}catch{return""}},initial(e){try{let t=e.givenName.split(" ");return`${t[0][0]}.${t[1][0]}. `}catch{return""}},momentext(e){if(e)return h()(e).locale("Ru").format("DD MMMM YYYY")},oninputnostore(e,t,r){let n=!1;r.length&&(n=!0,r=h()(r));try{let a=this.formatDateRev(e);const i=h()(a);i.isValid()&&n?i<=r&&(this[t[0]][t[1]]=a):i.isValid()&&!n&&(this[t[0]][t[1]]=a)}catch(a){console.log(a)}}}},ot=it,st=(0,y.Z)(ot,Ze,Je,!1,null,null,null),lt=st.exports;_()(st,{VCol:F.Z,VDatePicker:M.Z,VMenu:D.Z,VRow:N.Z,VTextField:B.Z});const ct=(0,f._p)("projectstate"),ut=(0,f._p)("auth");var dt={name:"ProjectDocks",components:{Dockhead:G,Order:j,SelectUserLite:ne,Planks:fe,Report:qe,FinalReport:Ke,disposition:lt,PdfToolbar:C,VuePdfApp:u()},props:{documents:{type:Array,default:()=>[]}},data(){return{config:{toolbar:!1},notbuilddock:!1,idConfig:{zoomIn:"zoomInId",zoomOut:"zoomOutId",download:"downloadId",presentationMode:"presentationModeId",previousPage:"previousPage",nextPage:"nextPageId"},chosenFile:null,Selectapprov:["Не подписан","Подписан"],Selectapprovmodel:null,disableEdition:!1,editable:!1,acceptormenu:!1,responser:{view:!1,ta_model:null,index:null},headers:[{text:"Номер",value:"docnumber"},{text:"Создан",value:"created"},{text:"Утвержден",value:"approved"},{text:"Согласование (реакции)",value:"accepters"}],dialog:!1,docktype:{"Приказ":{action:"order",data:[],previous:!1,createnew:!0,disabler:!1},"Распоряжение":{action:"passport",data:[],previous:!1,createnew:!0,disabler:!1},"План-график":{action:"plan_ks",data:[],previous:!1,createnew:!0,disabler:!1},"Отчет":{action:"report",data:[],previous:!1,createnew:!0,disabler:!1},"Итог":{action:"outcome",data:[],previous:!1,createnew:!0,disabler:!1},"Протокол":{action:"protocol",data:[],previous:!1,createnew:!0,disabler:!1}},tab:null,dialogtheme:{tophead:"",title:"Приказ",created:"",data:{approved:0,path:null,approver:{},comment:null,accepters:[{comment:""}]}},uploadPercentage:null,uploaddialog:!1,docnumber:""}},methods:{...ct.mapGetters(["getProject","getprojectuniquePersons"]),pathfile(){return"path"in this.dialogtheme.data&&!(null===this.dialogtheme.data.path)&&this.dialogtheme.data.path.length>0&&"pdf"==this.dialogtheme.data.path.substr(this.dialogtheme.data.path.length-3)},srcstring(){return`http://${p.Jx}/api${this.dialogtheme.data.path}`},async downloadacceptlist(e){let t=await p.be.get(`/project/downloaddock/${this.dialogtheme.data.id}/?confirmationmod=${e}`),r=document.createElement("a");r.href=`data:application/vnd.openxmlformats-officedocument.wordprocessingml.document;base64,${t.data}`,r.download=`${this.dialogtheme.title}${e?"__согласование__":""}.docx`,r.click(),r.remove()},idtonewdock(e){console.log(this.dialogtheme.data,"=================------idtonewdock-----===================="),this.dialogtheme.data.id=e.id;let t=Object.assign({vrersion:e.vrersion},this.dialogtheme.data);this.dialogtheme.data=t},uploader(){this.dialogtheme.data={accepters:[],approver:{},approved:0},this.uploaddialog=!0},async sendfile(){console.log("this.dialogtheme.data.approver",this.dialogtheme.data.approver);let e=new FormData;e.append("file",this.chosenFile),e.append("approver","id"in this.dialogtheme.data.approver?this.dialogtheme.data.approver.id:0),e.append("approved","Подписан"==this.Selectapprov?3:0),e.append("doctype",this.dialogtheme.title),e.append("docnumber",this.docnumber);let t=this.getProject().id,r=await p.rH.post(`/project/${t}/uploaddock`,e);"ok"==r.data.created&&(this.uploaddialog=!1,this.chosenFile=null,this.docnumber="",this.dialogtheme.data={approved:0,path:null,approver:{},comment:null,accepters:[{comment:""}]},this.$emit("savedock",["getprojectdocks",""]))},reeditabler(){this.canIedit()?(this.editable=!this.editable,this.dialogtheme.tophead=this.editable?"Редактирование документа":"Просмотр документа"):(this.editable=!1,this.dialogtheme.tophead="Просмотр документа")},canIedit(){return!(0!=this.dialogtheme.data.approved||(!this.dialogtheme.data.accepters.length||0!=this.dialogtheme.data.accepters[0].accepted)&&this.dialogtheme.data.accepters.length)},calculateaccepted(e){let t=0;return e.forEach((e=>{e.accepted>1&&t++})),t},needtoresponse(){let e=this.getUser.id;if(this.dialogtheme.data.approver&&1==this.dialogtheme.data.approved&&this.dialogtheme.data.approver.id==e)this.responser={view:!0,ta_model:"approver"};else{if(this.dialogtheme.data.accepters.length){let t=[...this.dialogtheme.data.accepters].findIndex((t=>t.id==e));if(t>-1&&1==this.dialogtheme.data.accepters[t].accepted)return void(this.responser={view:!0,ta_model:"accepters",index:t})}this.responser={view:!1,ta_model:null,index:null}}},acceptortext(e){return 0==e?"":1==e?"На согласовании":2==e?"Отклонено":"Согласовано"},approvertext(e){return 0==e?"":1==e?"На утверждении":2==e?"Отклонено":"Согласовано"},confirmOrNot(e){let t={id:this.dialogtheme.data.id};"approver"==this.responser.ta_model?(this.dialogtheme.data.approved=e,t["approved"]=e,t["comment"]=this.dialogtheme.data.comment,t["version"]=this.$refs.mydock.orderdock,t.version["approver"]=this.dialogtheme.data.approver,this.needtoresponse(),this.$emit("savedock",["approver_update",t])):"accepters"==this.responser.ta_model&&(this.dialogtheme.data.accepters[this.responser.index].accepted=e,t["accepters"]=this.dialogtheme.data.accepters[this.responser.index],console.log("conf",t),this.needtoresponse(),this.$emit("savedock",["acceptor_update",t]))},deleter(){this.$emit("savedock",["doc_deleter",{id:this.dialogtheme.data.id,path:this.dialogtheme.data.path}])},saver(e="justsave",t="project_savedock"){"toapprover"==e?(this.dialogtheme.data.approved=1,this.disableEdition=!this.canIedit(),this.editable=!1):"toaccept"==e&&(this.disableEdition=!this.canIedit(),this.dialogtheme.data.accepters.forEach((e=>e.accepted=1)),this.editable=!1),console.log("DIALOG",this.$refs.mydock.orderdock);let r={doctype__name:this.dialogtheme.title,version:null!==this.dialogtheme.data.path&&this.dialogtheme.data.path.length>0?{}:this.$refs.mydock.orderdock,approver:null!==this.dialogtheme.data.approver&&"id"in this.dialogtheme.data.approver?this.dialogtheme.data.approver.id:null,approved:this.dialogtheme.data.approved,comment:this.dialogtheme.data.comment,accepters:this.dialogtheme.data.accepters,actiontype:e};"Отчет"==this.dialogtheme.title&&(r.version.planresult=this.$refs.mydock.planresult,r.version.problemsrisks=this.$refs.mydock.problemsrisks),"id"in this.dialogtheme.data&&(r["id"]=this.dialogtheme.data.id),this.$emit("savedock",[t,r])},async copyrunview(e){let t=await p.be.get(`/getdock/${e}`);this.dialogtheme.data=t.data,this.disableEdition=!this.canIedit(),this.needtoresponse(),this.dialog=!0},copydock(){delete this.dialogtheme.data.id,this.saver("justsave","project__clonedock")},async clickRow(e,t){this.dialogtheme.title=t.item.doctype.name,this.dialogtheme.tophead=this.editable?"Редактирование документа":"Просмотр документа";let r=await p.be.get(`/getdock/${t.item.id}`);this.dialogtheme.data=r.data,console.log(this.dialogtheme.data),this.disableEdition=!this.canIedit(),this.needtoresponse(),this.dialog=!0},async dialogger(){this.dialogtheme.tophead="Создание нового документа",this.dialogtheme.data={accepters:[],approver:{},approved:0,path:null,comment:null},this.responser={view:!1,ta_model:null},this.editable=!0,this.disableEdition=!this.canIedit(),this.dialog=!0},dialogNo(){this.notbuilddock=!0}},computed:{...ut.mapGetters(["getUser"])},watch:{documents(e){console.log("sdddddd");for(let t in this.docktype)if(this.docktype[t].data=[],0!=this.docktype[t].previous){let r=e.findIndex((e=>e.doctype.name==this.docktype[t].previous&&3==e.approved));console.log("indx,this.docktype[key]",r,this.docktype[t]),r>=0?(this.docktype[t].createnew=null===e[r].path,this.docktype[t].disabler=!1):(console.log("key",t),this.docktype[t].createnew=!1,this.docktype[t].disabler=!0)}e.forEach((e=>{e.created=h()(e.created).locale("Ru").format("HH:mm:ss DD MMMM YYYY"),this.docktype[e.doctype.name].data.push(e)})),console.log(this.docktype)}}},ht=dt,ft=r(37359),pt=r(34061),gt=r(31625),vt=r(65495),mt=r(65808),bt=r(54525),yt=r(79500),wt=r(29592),_t=r(10626),kt=r(62165),xt=r(77771),St=r(45085),At=r(96313),Ct=r(97953),Pt=(0,y.Z)(ht,s,l,!1,null,null,null),Tt=Pt.exports;_()(Pt,{VAlert:ft.Z,VAutocomplete:L.Z,VBtn:k.Z,VCard:$.Z,VCardActions:ee.h7,VCardText:ee.ZB,VCardTitle:ee.EB,VCol:F.Z,VDataTable:te.Z,VDialog:pt.Z,VFileInput:gt.Z,VIcon:x.Z,VImg:vt.Z,VList:mt.Z,VListItem:bt.Z,VListItemContent:yt.km,VListItemSubtitle:yt.oZ,VListItemTitle:yt.V9,VMenu:D.Z,VProgressLinear:wt.Z,VRow:N.Z,VSelect:Ye.Z,VTab:_t.Z,VTabItem:kt.Z,VTabs:xt.Z,VTabsItems:St.Z,VTextField:B.Z,VTextarea:de.Z,VToolbar:At.Z,VToolbarTitle:Ct.qW,VTooltip:S.Z});var Et=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"divgant",attrs:{id:"gant"}},[r("div",{staticClass:"gantRef"},[r("DxGantt",{ref:e.ganttRef,attrs:{"start-date-range":e.startDateRange,"end-date-range":e.endDateRange,"first-day-of-week":1,"task-list-width":150,height:350,"scale-type":e.scale,"task-content-template":"taskContentTemplate","task-tooltip-content-template":"TooltipContentTemplate","on-custom-command":e.onCustomCommandClick,"on-context-menu-preparing":e.onContextMenuPreparing},on:{"task-dbl-click":e.onTaskDblClick},scopedSlots:e._u([{key:"TooltipContentTemplate",fn:function(t){var n=t.data;return[r("div",{staticClass:"custom-task-edit-tooltip pa-2"},[r("div",{staticClass:"custom-tooltip-title"},[e._v('"'+e._s(n.title)+'"')]),r("div",[e._v(" Дата начала: "+e._s(n.start.toLocaleDateString())+" ")]),r("div",[e._v("Дата окончания: "+e._s(n.end.toLocaleDateString()))])])]}},{key:"taskContentTemplate",fn:function(t){var n=t.data;return[r("div",{staticClass:"custom-task",class:e.getTaskColor(n.taskData.id),style:{width:n.taskSize.width+"px"}},[r("div",{staticClass:"custom-task-wrapper"},[r("div",{staticClass:"custom-task-row"},[e._v(" "+e._s(n.taskData.title)+" -- "+e._s(n&&"taskResources"in n&&n.taskResources.length?n.taskResources[0].text:""))])])])]}}])},[r("DxContextMenu",{attrs:{items:e.contextMenuItems}}),r("DxScaleTypeRange",{attrs:{min:"days",max:"years"}}),r("DxToolbar",[r("DxItem",{scopedSlots:e._u([{key:"default",fn:function(){return[r("v-btn",{staticClass:"mx-auto px-auto pl-1",attrs:{icon:"","x-small":"",color:"btns"},on:{click:function(t){return t.stopPropagation(),e.$emit("changegantview")}}},[r("v-icon",{attrs:{color:"primary"}},[e._v("mdi-close")])],1)]},proxy:!0}])}),r("DxItem",{attrs:{name:"undo"}}),r("DxItem",{attrs:{name:"redo"}}),r("DxItem",{attrs:{name:"separator"}}),r("DxItem",{attrs:{name:"collapseAll"}}),r("DxItem",{attrs:{name:"expandAll"}}),r("DxItem",{attrs:{name:"separator"}}),r("DxItem",{attrs:{name:"zoomIn"}}),r("DxItem",{attrs:{name:"zoomOut"}}),r("DxItem",{attrs:{name:"fullScreen"}}),r("DxItem",{attrs:{name:"separator"}}),r("DxItem",{scopedSlots:e._u([{key:"default",fn:function(){return[r("v-btn",{staticClass:"inyand--text",attrs:{"x-small":"",color:"btns"},on:{click:function(t){return t.stopPropagation(),e.createnewTask.apply(null,arguments)}}},[e._v(" Создать задачу")])]},proxy:!0}])})],1),r("DxTasks",{attrs:{"data-source":e.tasks}}),r("DxResources",{attrs:{"data-source":e.resources}}),r("DxResourceAssignments",{attrs:{"data-source":e.resourceAssignments}}),r("DxEditing",{attrs:{enabled:!1}}),e._v(" :allow-resource-adding = false :allow-resource-deleting = false "),r("DxColumn",{attrs:{"data-field":"title",caption:"",width:1}})],1)],1),r("v-dialog",{attrs:{"overlay-opacity":".1","max-width":"600px"},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[r("v-card",[r("v-card-title",[r("span",{staticClass:"text-h5"},[e._v(e._s(e.actionmethod.text))])]),r("v-card-text",[r("v-container",[r("v-row",[r("v-col",{attrs:{cols:"12"}},[r("v-text-field",{attrs:{label:"Краткое название",required:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),r("v-col",{attrs:{cols:"12"}},[r("v-text-field",{attrs:{label:"Название",required:""},model:{value:e.longname,callback:function(t){e.longname=t},expression:"longname"}})],1),r("v-col",{attrs:{cols:"12"}},[r("Datepiker",{attrs:{min:e.actionmethod.min,max:e.actionmethod.max,datestartstore:e.actionmethod.datestartstore,dateendstore:e.actionmethod.dateendstore}})],1),r("v-col",{attrs:{cols:"12"}},[r("div",[r("v-select",{attrs:{"item-text":"text","item-value":"id",items:e.resources,label:"Ответственный",required:"","return-object":""},on:{change:e.console},model:{value:e.responsible,callback:function(t){e.responsible=t},expression:"responsible"}}),r("v-row",{staticClass:"flex-grow-0 px-5"},[r("v-col",{staticClass:"pb-0 pt-2 d-flex"},[r("span",{staticClass:"caption"},[e._v("Сложность:")]),e._v(" "),r("v-rating",{staticClass:"pb-2",attrs:{color:"warning","empty-icon":"mdi-star-outline","full-icon":"mdi-star","half-icon":"mdi-star-half-full",hover:"",length:"5",size:"16"},model:{value:e.difficult,callback:function(t){e.difficult=t},expression:"difficult"}})],1)],1),r("v-textarea",{attrs:{rows:"5","no-resize":"",label:"Описание"},model:{value:e.description,callback:function(t){e.description=t},expression:"description"}})],1)])],1)],1)],1),r("v-card-actions",[r("v-spacer"),r("BtnsOut",{attrs:{title:"Отмена"},on:{click:function(t){e.dialog=!1}}}),r("BtnsOut",{attrs:{title:"Сохранить"},on:{click:e.saveit}})],1)],1)],1),r("v-dialog",{attrs:{"overlay-opacity":".1","max-width":"600px"},model:{value:e.deldialog,callback:function(t){e.deldialog=t},expression:"deldialog"}},[r("v-card",[r("v-card-title",[r("span",{staticClass:"text-h5"},[e._v(e._s(e.actionmethod.text))])]),r("v-card-text",[r("v-container",[r("v-row",[r("v-col",{attrs:{cols:"12"}},[e._v(' Вы уверены что хотите удалить "'+e._s(e.name)+'"? Также будут удалены все связанные объекты ')])],1)],1)],1),r("v-card-actions",[r("v-spacer"),r("BtnsOut",{attrs:{title:"Отмена"},on:{click:function(t){e.deldialog=!1}}}),r("BtnsOut",{attrs:{title:"Подтвердить"},on:{click:e.saveit}})],1)],1)],1)],1)},Rt=[],It=r(76811),Ot=r(23575),Lt=r(22233),Ft=r(24624),Mt=r(4646);const Dt="gantt",Nt=(0,f._p)("projectstate"),Bt=(0,f._p)("taskstate"),Ut=(0,f._p)("workstate");var jt={components:{DxScaleTypeRange:Mt.DxScaleTypeRange,Datepiker:It.Z,DxContextMenu:Mt.DxContextMenu,DxGantt:Mt.DxGantt,DxTasks:Mt.DxTasks,DxDependencies:Mt.DxDependencies,DxResources:Mt.DxResources,DxResourceAssignments:Mt.DxResourceAssignments,DxColumn:Mt.DxColumn,DxEditing:Mt.DxEditing,DxToolbar:Mt.DxToolbar,DxItem:Mt.DxItem},mixins:[Ot.Z],data(){return{scale:"year",selectedkey:"",ganttRef:Dt,actionmethod:{method:"addTask",text:"Создание задачи",dateendstore:"",datestartstore:"",min:"",max:"",level:"tasks"},dialog:!1,deldialog:!1,tasks:[],task:[{name:"edittask",text:"Редактировать задачу"},{name:"addwork",text:"Создать Работу"},{name:"deltask",text:"Удалить"}],work:[{name:"editwork",text:"Редактировать работу"},{name:"delwork",text:"Удалить"}],dialoginfo:{},contextMenuItems:[],resourceAssignments:[],disableContextMenu:!1}},created(){(0,Ft.EV)(Lt),(0,Ft.SP)(navigator.language)},mounted(){},computed:{name:{get(){return this[`get${this.actionmethod.level}`]().name},set(e){this[`set${this.actionmethod.level}name`](e)}},longname:{get(){return this[`get${this.actionmethod.level}`]().longname},set(e){console.log(this.actionmethod.level),this[`set${this.actionmethod.level}longname`](e)}},description:{get(){return this[`get${this.actionmethod.level}`]().description},set(e){this[`set${this.actionmethod.level}description`](e)}},difficult:{get(){return this[`get${this.actionmethod.level}`]().difficult},set(e){this[`set${this.actionmethod.level}difficult`](e)}},responsible:{get(){return this[`get${this.actionmethod.level}`]().responsible},set(e){this[`set${this.actionmethod.level}responsible`](e)}},gantt:function(){return this.scale=this.date_watch(this.getProjectdatestart(),this.getProjectdateend()),this.$refs[Dt].instance},resources:{get(){return this.getprojectuniqueusers().filter((e=>6!=e.role.id))}},tasksOR(){return this.getprojectTasks()},startDateRange(){let e=new Date(this.getProjectdatestart());this.tasks.length>0&&e!=this.tasks[0].start&&(this.tasks[0].start=e,this.gantt.refresh());let t=e;return this.tasks.forEach((r=>{t=r.start{this.tasks.push({id:`work-${n.id}`,title:n.name,parentId:`task-${e[r].id}`,start:new Date(n.datestart),end:new Date(n.dateend),status:n.status}),this.resourceAssignments.push({id:n.id+7e6,taskId:`work-${n.id}`,resourceId:n.responsible.id}),t++}))}}catch(t){}}},methods:{...Nt.mapGetters(["getprojectuniqueusers","getprojectTasks","getprojectWorks","getProjectdatestart","getProjectdateend","getprojectIdName","getProjectrp"]),...Bt.mapGetters(["getTaskdatestart","getTaskdateend","gettasks"]),...Bt.mapMutations(["setTaskdateend","setTaskdatestart","settasks","settasksresponsible","settasksname","settasksdescription","settaskslongname","settasksdifficult"]),...Ut.mapGetters(["getWorkdatestart","getWorkdateend","getworks"]),...Ut.mapMutations(["setWorkdateend","setWorkdatestart","setWorks","setworksresponsible","setworksname","setworksdescription","setworkslongname","setworksdifficult"]),createnewTask(){this.actionmethod={method:"addTask",level:"tasks",text:"Создание задачи",min:this.getProjectdatestart(),max:this.getProjectdateend(),datestartstore:"Taskdatestart",dateendstore:"Taskdateend"},this.settasks({name:"",parent:this.getprojectIdName().id,datestart:"",dateend:"",responsible:"",status:1,longname:"",difficult:0}),this.dialog=!0},console(e){console.log(e)},onTaskDblClick(e){e.cancel=!0,console.log(e.data,this.$route);let t=this.$route.path;if("parent"!=e.data.id.split("-")[0]){let r=e.data.id.split("-");if("task"==r[0])t+=`/${r[0]}/${r[1]}`;else{let n=e.data.parentId.split("-");t+=`/${n[0]}/${n[1]}/${r[0]}/${r[1]}`}this.$router.push(t)}},getTaskColor(e){let t=e.split("-")[1];const r=Number(t)%6;return`custom-task-color-${r}`},addwork(){let e=this.getprojectTasks();this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]);this.getprojectWorks();console.log(this.selectedkey),this.setWorks({name:"",parent:Number(this.selectedkey.id.split("-")[1]),datestart:"",dateend:"",responsible:"",status:1,longname:"",difficult:0}),this.actionmethod={method:"creatework",level:"works",text:"Создание работы",min:this.getTaskdatestart(),max:this.getTaskdateend(),datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.dialoginfo=this.getworks(),this.dialog=!0},editwork(){let e=this.getprojectTasks();this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.parentId.split("-")[1]&&"task"==this.selectedkey.parentId.split("-")[0]))]);let t=this.getprojectWorks();this.setWorks(t[t.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"work"==this.selectedkey.id.split("-")[0]))]),this.actionmethod={method:"editwork",level:"works",text:"Редактирование работы",min:this.getTaskdatestart(),max:this.getTaskdateend(),datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.dialog=!0,this.dialoginfo=this.getworks()},deltask(){let e=this.getprojectTasks();this.actionmethod={method:"deltask",level:"tasks",text:"Удаление задачи",datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.deldialog=!0,this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]),this.dialoginfo=this.gettasks()},delwork(){let e=this.getprojectWorks();this.setWorks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"work"==this.selectedkey.id.split("-")[0]))]),this.actionmethod={method:"delwork",level:"works",text:"Удаление работы",datestartstore:"Workdatestart",dateendstore:"Workdateend"},this.deldialog=!0,this.dialoginfo=this.getworks(),console.log(this.selectedkey)},edittask(){let e=this.getprojectTasks();console.log(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]),this.settasks(e[e.findIndex((e=>e.id==this.selectedkey.id.split("-")[1]&&"task"==this.selectedkey.id.split("-")[0]))]),this.actionmethod={method:"updatetask",level:"tasks",text:"Редактирование задачи",min:this.getProjectdatestart(),max:this.getProjectdateend(),datestartstore:"Taskdatestart",dateendstore:"Taskdateend"},this.dialoginfo=this.gettasks(),this.dialog=!0}}},qt=jt,zt=r(82118),Vt=r(73905),Wt=(0,y.Z)(qt,Et,Rt,!1,null,null,null),Ht=Wt.exports;_()(Wt,{VBtn:k.Z,VCard:$.Z,VCardActions:ee.h7,VCardText:ee.ZB,VCardTitle:ee.EB,VCol:F.Z,VContainer:zt.Z,VDialog:pt.Z,VIcon:x.Z,VRating:Vt.Z,VRow:N.Z,VSelect:Ye.Z,VSpacer:Pe.Z,VTextField:B.Z,VTextarea:de.Z});var Gt=r(31451),Yt=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-card-text",{staticClass:"text_card--text d-flex flex-col px-2",class:e.hf},[r("v-row",{class:e.hf},[e.getLoad()?r("v-col",{staticClass:"\r\n pa-0\r\n order-lg-0\r\n order-0\r\n ",class:e.position?"align-self-center":"align-self-end",attrs:{xl:"6",lg:"12",md:"2",sm:"6",cols:"12"}},[r("v-skeleton-loader",{staticClass:"pb-1",attrs:{type:"table-cell"}})],1):r("v-col",{staticClass:"\r\n pa-md-0\r\n pa-0\r\n order-lg-0\r\n order-0\r\n ",class:e.position?"align-self-center":"align-self-end",attrs:{xl:"6",lg:"12",md:"2",sm:"6",cols:"12"}},[e._v(" "+e._s(e.fieldname)+" ")]),e.getLoad()?r("v-col",{staticClass:"\r\n d-flex\r\n flex-col\r\n pa-0\r\n order-lg-1\r\n order-2\r\n \r\n ",class:e.end?"hi":"",attrs:{xl:"12",lg:"12",md:e.mod>0?8:10,sm:"12",cols:"12"}},["Срок"!=e.fieldname?r("v-skeleton-loader",{attrs:{height:e.end?120:22,type:"image"}}):r("div",{staticClass:"flex-row justify-space-between"},[r("v-skeleton-loader",{attrs:{height:"22",width:"107",type:"image"}}),r("v-skeleton-loader",{attrs:{height:"23",width:"107",type:"image"}})],1)],1):r("v-col",{staticClass:"\r\n d-flex\r\n flex-col\r\n pa-0\r\n order-lg-1\r\n order-2\r\n \r\n ",class:e.end?"hi":"",attrs:{xl:"12",lg:"12",md:e.mod>0?8:10,sm:"12",cols:"12"}},[e._t("field")],2),e.mod>0?r("v-col",{staticClass:"\r\n text-xl-end\r\n text-lg-start\r\n text-md-center\r\n text-sm-right\r\n text-start\r\n align-self-md-center\r\n align-self-end\r\n order-lg-0\r\n order-md-3\r\n order-sm-0\r\n order-1\r\n pr-0\r\n pl-0\r\n py-0\r\n ",attrs:{xl:"6",lg:"12",md:"2",sm:"6",cols:"12"}},[e._t("buttons")],2):e._e()],1)],1)},Xt=[];const Kt=(0,f._p)("globalstore");var Zt={name:"Col-Text",props:{fieldname:{type:String,default:"0"},mod:{type:Number,default:0},position:{type:Boolean,default:!1},hf:{type:String,default:"flex-grow-0"},end:{type:Boolean,default:!1}},methods:{...Kt.mapGetters(["getLoad"])}},Jt=Zt,Qt=r(84978),$t=(0,y.Z)(Jt,Yt,Xt,!1,null,null,null),er=$t.exports;_()($t,{VCardText:ee.ZB,VCol:F.Z,VRow:N.Z,VSkeletonLoader:Qt.Z});var tr=r(54355),rr=r(54417),nr=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Cards",{scopedSlots:e._u([{key:"cards",fn:function(){return[r("v-card-actions",[r("v-row",{staticClass:"pa-2"},e._l(e.btns_otchet,(function(e){return r("v-col",{key:e,staticClass:"pa-1 ",attrs:{lg:"6",sm:"6"}},[r("BtnsOut",{attrs:{outlined:!0,block:!0,title:e}})],1)})),1)],1)]},proxy:!0}])})},ar=[],ir=r(37505),or={name:"Cards-Buttons",components:{Cards:ir.Z},props:{btns_otchet:[]}},sr=or,lr=(0,y.Z)(sr,nr,ar,!1,null,null,null),cr=lr.exports;_()(lr,{VCardActions:ee.h7,VCol:F.Z,VRow:N.Z});var ur=r(53502),dr=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"d-flex flex-col flex-grow-1"},[r("div",[r("v-app-bar",{staticClass:"flex-grow-0 ma-0 px-4 mx-2",attrs:{color:"inyand",elevation:"1",dense:""}},[r("v-app-bar-nav-icon",[r("MyIco",{attrs:{icons:"mdi-pencil-box-outline",color:"btns",size:"x-large",tooltip:!0,text_tool:"Редактировать проект"},on:{click:function(t){return e.$emit("switch_mode")}}})],1),r("v-toolbar-title",{attrs:{color:"primary"}},[e._v("Проект")]),r("v-spacer"),[1,6].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-center"},[e.checkRP?r("MyIco",{attrs:{icons:"mdi-arrow-right-drop-circle-outline",color:"open_icons",tooltip:!0,text_tool:"Взять в работу"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:5})}}}):e._e()],1):e._e(),[5].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[e.checkRP?[r("v-col",{staticClass:"py-2 px-0"},[r("MyIco",{attrs:{icons:"mdi-arrow-right-bold-circle-outline",color:"open_icons",tooltip:!0,text_tool:"Отправить на согласование"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:2})}}})],1),r("v-col",{staticClass:"py-2 px-1"},[r("MyIco",{attrs:{icons:"mdi-pause-circle-outline",color:"paused",tooltip:!0,text_tool:"Приостановить работу"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:6})}}})],1)]:e._e(),!e.checkRP&&e.checkDIR?r("div",[r("v-col",{staticClass:"py-2 pr-1"},[r("MyIco",{attrs:{icons:"mdi-file-outline",color:"btns",tooltip:!0,cursor:!1,text_tool:"В работе"}})],1)],1):e._e()],2):e._e(),[2].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[e.checkDIR?[r("v-col",{staticClass:"py-2 px-0"},[r("MyIco",{attrs:{icons:"mdi-check",color:"open_icons",tooltip:!0,text_tool:"Утвердить"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:3})}}})],1),r("v-col",{staticClass:"py-2 px-1"},[r("MyIco",{attrs:{icons:"mdi-close",color:"close_icons",tooltip:!0,text_tool:"Отклонить"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:4})}}})],1)]:e._e()],2):e._e(),[3].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[r("v-col",{staticClass:"py-2 pr-1"},[e.checkDIR?r("MyIco",{attrs:{icons:"mdi-checkbox-marked-outline",color:"open_icons",tooltip:!0,text_tool:"Утвержден. Отправить на завершение"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:7})}}}):e._e()],1)],1):e._e(),[4].includes(e.getProject.status.id)?r("v-row",{staticClass:"flex-grow-0 align-self-end"},[r("v-col",{staticClass:"py-2 pr-1"},[e.checkRP?r("MyIco",{attrs:{icons:"mdi-arrow-right-drop-circle-outline",color:"open_icons",tooltip:!0,text_tool:"Взять в работу"},on:{click:function(t){return e.$emit("changestatus",{val:e.getProject,action:5})}}}):e._e()],1)],1):e._e(),r("MyIco",{attrs:{icons:"mdi-dots-horizontal",color:"btns",cursor:!1,tooltip:!0,text_tool:e.getProject.status.name}})],1)],1),r("v-row",{staticClass:"h-0 overflow-auto card-text ma-0 mt-2"},[r("v-col",{staticClass:"d-flex flex-col pt-2"},[r("row-pirow",{attrs:{title:"Название:",rowclass:"pb-0 mt-n2",myclass:"pt-2"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("v-textarea",{staticClass:"mt-0 ml-n3 pt-0 nameproject",attrs:{readonly:"",solo:"",value:e.getProject.longname,"auto-grow":"",rows:0,dense:"",flat:"","hide-details":""}})]},proxy:!0}])}),r("row-pirow",{staticClass:"mt-0",attrs:{title:"Краткое название:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("span",[e._v(e._s(e.getProject.name))])]},proxy:!0}])}),r("row-pirow",{staticClass:"mt-0",attrs:{title:"Период:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[e._v(" "+e._s(e.momentedDay(e.getProject.datestart)+" - "+e.momentedDay(e.getProject.dateend)+"/("+e.timediff(e.getProject.dateend)+")")+" ")]},proxy:!0}])}),r("period-info",{attrs:{srok:e.daycalc.fifteen}},[[e.prlin?r("v-progress-linear",{staticClass:"mt-2",staticStyle:{"pointer-events":"none"},attrs:{value:e.daycalc.progress,color:e.daycalc.color,rounded:"",height:"10"}}):e._e()]],2),r("row-pirow",{directives:[{name:"show",rawName:"v-show",value:!isNaN(e.workaccepted),expression:"!isNaN(workaccepted)"}],staticClass:"mt-0",attrs:{title:"Выполнено задач:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[e._v(" "+e._s(e.alltask[1]+"/"+e.alltask[0])+" ")]},proxy:!0}])}),r("v-row",{directives:[{name:"show",rawName:"v-show",value:!isNaN(e.workaccepted),expression:"!isNaN(workaccepted)"}],staticClass:"flex-grow-0 my-0"},[r("v-col",{staticClass:"align-self-center py-0"},[r("v-progress-linear",{staticClass:"mt-0",staticStyle:{"pointer-events":"none"},attrs:{rounded:"",height:"10"},model:{value:e.workaccepted,callback:function(t){e.workaccepted=t},expression:"workaccepted"}})],1),r("v-col",{staticClass:"text-end flex-grow-0 pl-0 py-1"},[r("strong",{staticClass:"ml-auto align-self-center body-2"},[e._v(" "+e._s(Math.ceil(e.workaccepted))+"% ")])])],1),r("row-pirow",{attrs:{title:"Сложность реализации:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("v-rating",{staticClass:" ml-n3 star",attrs:{color:"warning","empty-icon":"mdi-star-outline","full-icon":"mdi-star","half-icon":"mdi-star-half-full",hover:"",length:"5",readonly:"",size:"16",value:e.getProject.difficult}})]},proxy:!0}])}),r("v-divider",{staticClass:"mt-2 mb-1"}),r("row-pirow",{attrs:{title:"Статус:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("span",[e._v(e._s(e.getProject.status.name))])]},proxy:!0}])}),r("row-pirow",{attrs:{title:"Тип:"},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("span",[e._v(e._s(e.getProject.ptype.name))])]},proxy:!0}])}),r("v-divider",{staticClass:"my-1 mt-3"}),r("roles-single",{attrs:{show:!1},on:{showuserinfo:e.showuserinfo}}),r("v-divider",{staticClass:"mb-0 mt-3 bg_div"}),r("roles-many",{attrs:{roles:5,show:!1},on:{showuserinfo:e.showuserinfo}}),r("v-divider",{staticClass:"mb-n2 mt-5 bg_div"}),r("roles-many",{attrs:{show:!1},on:{showuserinfo:e.showuserinfo}}),r("v-divider",{staticClass:"mt-4 mb-2"}),r("row-pirow",{attrs:{title:"Чат:",rightcolUsed:!0},scopedSlots:e._u([{key:"leftcol",fn:function(){return[r("div",{staticClass:"d-flex"},[r("MyIco",{attrs:{size:"small",icons:"mdi-menu",tooltip:!0,text_tool:"Управление чатом"},on:{click:e.dialogger}}),r("span",{staticClass:"ml-4"},[e._v(e._s(Array.isArray(e.chat.users)?"Кол-во участников: "+e.chat.users.length:""))])],1)]},proxy:!0},{key:"rightcol",fn:function(){return["id"in e.chat?r("BtnsOut",{staticClass:"mr-1",attrs:{widthi:97,icon:!0,title:e.chatview?"Скрыть Чат":"Показать чат"},on:{click:function(t){return e.$emit("chatviewer")}},scopedSlots:e._u([{key:"icons",fn:function(){return[r("MyIco",{attrs:{size:"small",icons:e.chatview?"mdi-chevron-double-right":"mdi-chevron-double-left"}})]},proxy:!0}])}):r("BtnsOut",{attrs:{widthi:97,icon:!0,title:"Создать чат"},on:{click:function(t){return e.$emit("createtabchat")}},scopedSlots:e._u([{key:"icons",fn:function(){return[r("MyIco",{attrs:{size:"small",icons:"mdi-chat-outline"}})]},proxy:!0}],null,!1,1586076455)})]},proxy:!0}])}),r("v-divider",{staticClass:"mt-4 mb-3"}),r("exp-panel",{staticClass:"mb-3",attrs:{addremrow:e.addremrow,newproject:e.getProject}}),r("history-min-card",{attrs:{level:1,indx:0},on:{showuserinfo:e.showuserinfo}})],1),r("infousercard",{attrs:{dialogdetail:e.dialogdetail,person:e.person},on:{dialogdetailoff:function(t){e.dialogdetail=!1}}})],1)],1)},hr=[],fr=r(24563),pr=r(69617),gr=r(67761),vr=r(32112),mr=r(55322),br=r(71240),yr=r(60441),wr=r(70606),_r=r(17550);const{mapMutations:kr,mapActions:xr}=(0,f._p)("filterslogic"),Sr=(0,f._p)("projectstate");(0,f._p)("multifilter");var Ar={name:"project-informationorders",mixins:[pr.Z,oe.Z,fr.Z],components:{SelectUserMenu:Gt.Z,rowPirow:gr.Z,rolesSingle:vr.Z,rolesMany:br.Z,infousercard:yr.Z,periodInfo:mr.Z,historyMinCard:wr.Z,ExpPanel:_r.Z},data:()=>({rp:!1,dialogdetail:!1,person:{},addremrow:[{field:"target",text:"Цель (цели) проекта"},{field:"result",text:"Результат (результаты) проекта"},{field:"criteria",text:"Критерии успеха проекта"},{field:"risks",text:"Риски реализации проекта"},{field:"interactions",text:"Взаимосвязи с другими проектами и программами"}],info_helper:{project_sphere:{text:"Сфера",typearr:!1},grounds:{text:"Основания",typearr:!1},target:{text:"Цели",typearr:!0},financial_support:{text:"Финансирование",typearr:!1},result:{text:"Результаты",typearr:!0},criteria:{text:"Критерии успеха",typearr:!0},risks:{text:"Риски",typearr:!0},influence:{text:"Влияние результатов",typearr:!1},interactions:{text:"Взаимосвязь",typearr:!0}}}),props:{chat:{type:Object,default:()=>{}},chatview:{type:Boolean,default:!0}},methods:{...kr(["setFields"]),...xr(["clear","getFilters","addFilter","activefilters"]),...Sr.mapMutations(["setProjectType","setProjectStatus","setProjectname"]),userssearch(e){let t=this.respons(e);return void 0==t?"":" "},showuserinfo(e){this.person=this.searchUser(e,this.allpersons),this.dialogdetail=!0},setpn(e){this.setProjectname(e)},dialogger(){o.$.$emit("chatuserdialog",{place:"rightchat",chat:{id:this.chat.id,level:this.chat.level,parent:this.chat.parent}})}},computed:{...Sr.mapGetters(["getProject","getprojectuniquePersons","allpersons"]),todo(){return this.getProject},alltask(){let e=[],t=this.getProject.tasks.filter((e=>5==e.status.id));return e.push(this.getProject.tasks.length,t.length),e},workaccepted(){return 100*this.alltask[1]/this.alltask[0]},daycalc(){return this.calcdays(this.todo.datestart,this.todo.dateend,this.todo.status,6,7)},checkRP(){let e=!1;return this.getProject.users.filter((t=>{[2].includes(t.role.id)&&t.user.id==this.user&&(e=!0)})),e},checkDIR(){let e=!1;return this.getProject.users.filter((t=>{[1].includes(t.role.id)&&t.user.id==this.user&&(e=!0)})),e},prlin(){return 7!=this.todo.status.id},type1:{get(){return this.getProject.ptype.id},set(e){this.setProjectType(e)}},status1:{get(){return this.getProject.status.id},set(e){this.setProjectStatus(e)}}}},Cr=Ar,Pr=r(15100),Tr=r(42240),Er=r(20144),Rr=Er["default"].extend({name:"v-app-bar-nav-icon",functional:!0,render(e,{slots:t,listeners:r,props:n,data:a}){const i=Object.assign(a,{staticClass:`v-app-bar__nav-icon ${a.staticClass||""}`.trim(),props:{...n,icon:!0},on:r}),o=t().default;return e(k.Z,i,o||[e(Tr.Z,"$menu")])}}),Ir=r(99223),Or=(0,y.Z)(Cr,dr,hr,!1,null,null,null),Lr=Or.exports;_()(Or,{VAppBar:Pr.Z,VAppBarNavIcon:Rr,VCol:F.Z,VDivider:Ir.Z,VProgressLinear:wt.Z,VRating:Vt.Z,VRow:N.Z,VSpacer:Pe.Z,VTextarea:de.Z,VToolbarTitle:Ct.qW});var Fr=r(1313),Mr=r(81689),Dr=r(69430),Nr=r(43803);const Br=(0,f._p)("projectstate"),Ur=(0,f._p)("taskstate"),jr=(0,f._p)("workstate"),qr=(0,f._p)("globalstore"),zr=(0,f._p)("auth"),{mapMutations:Vr,mapActions:Wr}=(0,f._p)("filterslogic");var Hr={name:"project",mixins:[oe.Z,Fr.Z],components:{LeftList:i.Z,ProjectDocks:Tt,Gant:Ht,SelectUserMenu:Gt.Z,ColText:er,CardsButtons:cr,workPieChart:rr.Z,filelist:ur.Z,history:history,projectInformationorder:Lr,Datepiker:It.Z,mMessegeListRight:Nr.Z,WorkTaskAssProject:tr["default"],Postpone:Dr.Z,projectStepperPattern:Mr.Z},data:()=>({show_change_dialog:!1,statid:[1,3,4,5,6],message:{mes:"",show:!1},comment:"",tabProj:null,tasksaccepted:0,gantview:!1,show:!1,menu:null,waiter:!1,chatview:!0,task:{name:"",datestart:"",dateend:"",responsible:{id:""},status:{id:0,name:"",description:""}},activedCh:{},ws:null,documents:[],project:{id:0,name:"",status:{id:1},users:[],ptype:{id:0},datestart:"",tasks:[],author:{id:0}},selectdatafields:{},selectfields:{project__type:{name:"Тип",basefield:"ptype"},project__status:{name:"Статус",basefield:"status"}},userFields:[{text:"Директор",icons:"mdi-account-plus",model:"director",modelrole:1},{text:"Руководитель",icons:"mdi-account-plus",model:"rp",modelrole:2},{text:"Секретарь",icons:"mdi-account-plus",model:"secretary",modelrole:3},{text:"Координатор",icons:"mdi-account-plus",model:"coordinator",modelrole:4}],chalenge:{"ИСУП":[{name:"Карточка задания"},{name:"Всплывающее окно"},{name:"Все дер"}],"УКД":[{name:"Статистика по пользователем"}]}}),computed:{...Br.mapGetters(["getProject","getProjectwatchers","getProjectusers"]),...zr.mapGetters(["getUser"]),history(){return this.getProject.history},checkRP(){let e=!1;return this.projectPopoject.users.filter((t=>{[2].includes(t.role.id)&&t.user.id==this.getUser.id&&(console.log(t,"---------"),e=!0)})),e},task_statuses_calc(){return this.pie_statuses_calc(this.project.tasks)},projectPopoject(){let{name:e,dateend:t,datestart:r,status:n,description:a,comment:i,users:o}={...this.project};return{name:e,dateend:t,datestart:r,status:n,description:a,comment:i,users:o,type:"Проект:",role:"Руководитель проекта:"}}},methods:{...Br.mapMutations(["setProject","setProjectusers","clearProject"]),...Wr(["getFilters"]),...Vr(["setFields"]),...Ur.mapGetters(["gettasks"]),...jr.mapGetters(["getworks"]),...qr.mapGetters(["getLoad"]),...qr.mapMutations(["setLoad"]),newproject(e){console.log("nude",e),this.ws.send({action:"update",payload:e}),this.show_change_dialog=!1},rout(e){this.$router.push({path:`${this.$route.fullPath}/task/${e}`})},comm(e){this.comment=e},showuserinfo(e){this.$refs.pifo.showuserinfo(e)},idtonewdock(e){this.$refs.projectdoc.idtonewdock(e)},filerenew(e){e.forEach(((t,r)=>e[r].visible=t.visible.split(""))),this.project.project_files=e},takeprev(e){this.activedCh.lastmessage.length<20?(this.activedCh.lastmessage=e.res,this.activedCh.lastmessage=this.activedCh.lastmessage):this.activedCh.lastmessage=e.res.concat(this.activedCh.lastmessage),this.waiter=!1},messagedeleted(e){try{let t=this.activedCh.lastmessage.findIndex((t=>t.id==e.id));this.activedCh.lastmessage.splice(t,1)}catch{}},filedeleted(e){let t=this.project.project_files.findIndex((t=>t.id==e.id));this.project.project_files.splice(t,1)},createnewTask(){this.$refs.gantproject.createnewTask()},savedock(e){console.log("PROJECT_SAVEDOCK",e),this.ws.send({action:e[0],payload:e[1]})},VisSwitcher(e){this.ws.send({action:"updateFile",payload:{id:e.id,visible:e.visible.join("")}})},rebuild(){this.ws.send({action:"rebuild",payload:this.project.id})},chatviewer(){this.chatview=!this.chatview},createtabchat(){let e=this.getProject.name,t=1,r=this.getProject.id,n=new Set;this.getProject.users.forEach((e=>{e.role.id<5&&n.add(e.user.id)})),this.chatview=!0,o.$.$emit("supogrammchatcreate",{users:Array.from(n),name:e,level:t,parent:r})},async uploadfile(e){let t={project:this.getProject.id,visible:"1000"};e.append("info",JSON.stringify(t));let r=await p.be.post("/main/uploader",e,{headers:{"Content-Type":"multipart/form-data"}});"created"in r.data&&this.ws.send({action:"fileuploaded",payload:this.getProject.id})},changetabProject(e){"2"==e&&this.ws.send({action:"getprojectdocks",payload:""})},addTask(e){console.log(e,"!!!!!!!!!!!!!!!!!!!!!!!!!"),delete e.val.history,this.ws.send({action:e.am.method,payload:e.val})},clickRow(e,t){this.$router.push(`${this.$route.path}/task/${t.item.id}`)},build(e){e.project_files.forEach(((t,r)=>e.project_files[r].visible=t.visible.split(""))),this.project=e,console.log(this.project,"this.project _2load"),this.setProject(this.project),this.tasksaccepted=100*this.getProject.tasks.filter((e=>5==e.status.id)).length/this.getProject.tasks.length,this.setLoad(!1),"datachat"in e&&(this.activedCh=e.datachat,this.chatview="id"in this.activedCh,this.$refs.mychat.scrollbottom(this.activedCh.lastmessage[this.activedCh.lastmessage.length-1].id))},deluser(e,t){let r=this.getProject.users,n=r.findIndex((r=>r.user.id==e&&r.role.id==t));r.splice(n,1),this.setProjectusers(r)},newmessageincome(e){this.activedCh.lastmessage.push(e),this.$refs.mychat.scrollbottom(e.id)},saveproject(){console.log(this.getProject,"сюда"),this.ws.send({action:"update",payload:this.getProject})},changestatus(e){let t="workstatus",r={id:e.val.id,status:e.action},n=this.getProject;r["project_status_update"]=3==n.status.id,r["task_status_update"]=this.task.status.id<2,this.tab>0&&(r["work_status_update"]=this.work.status.id<2,t="assignmentstatus"),this.ws.send({action:t,payload:r})},switch_mode(){this.show_change_dialog=!this.show_change_dialog},async createtask(){let e=await p.be.get(`/createtask/?parent=${this.project.id}`);this.$router.push(`/task/${e.data.id}`)},buildDocspage(e){this.documents=e},closeDocdialog(e){this.$refs.projectdoc.dialog=!1},async opendoc(e){console.log("JOOOOOOOOOOO"),await this.$refs.projectdoc.copyrunview(e)},gantviewer(){this.gantview=!this.gantview,this.gantview&&this.$refs.gantproject.rebuild()},confirmation(e){this.project.tasks.forEach((e=>{e.menu=!1,e.action_confirm=!1})),this.ws.send({action:"confirmation",payload:e}),this.comment="",this.comment_up=""}},beforeDestroy(){console.log("destroy"),this.clearProject(),this.ws.stop()},mounted(){this.setLoad(!0),this.setFields({role:{module:"mult"},project__type:{module:"mult"}}),this.getFilters([{project__type:{sort:"id",filters:{},exclude:["projects"]}},{role:{name:"role",sort:"id"}}]),this.ws=new this.$pws,this.ws.start(this.$route.fullPath),this.ws.addEvent("onmessage",(e=>{const t=JSON.parse(e.data);if(console.log(t,"все данные"),"mess"in t&&(console.log(t.mess+" - сообщение"),this.message.mes=t.mess,this.message.show=!0),"action"in t)try{this[t.action](t.payload)}catch(r){console.log(r)}}))}},Gr=Hr,Yr=r(77394),Xr=(0,y.Z)(Gr,n,a,!1,null,null,null),Kr=Xr.exports;_()(Xr,{VCard:$.Z,VCol:F.Z,VDialog:pt.Z,VSlideXReverseTransition:Yr.Zy,VTab:_t.Z,VTabs:xt.Z})}}]); //# sourceMappingURL=752.0f32cc7f.js.map