PageSourceSearch

https://szerzi.hu/common-199fc7f6.377930bc6ea82ff6.js

js szerzi.hu collected 2026-10-04 13:25:53 UTC 365,932 bytes, 1 lines download raw bytes

1(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[8227],{75601:function(module,__unused_webpack_exports,__webpack_require__){var e;e=function(){return function(b){var o={};function e(t){if(o[t])return o[t].exports;var a=o[t]={i:t,l:!1,exports:{}};return b[t].call(a.exports,a,a.exports,e),a.l=!0,a.exports}return e.m=b,e.c=o,e.d=function(t,a,l){e.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:l})},e.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,a){if(1&a&&(t=e(t)),8&a||4&a&&"object"==typeof t&&t&&t.__esModule)return t;var l=Object.create(null);if(e.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:t}),2&a&&"string"!=typeof t)for(var y in t)e.d(l,y,function(x){return t[x]}.bind(null,y));return l},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},e.p="",e(e.s=0)}([function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"addLinkAttributes",{enumerable:!0,get:function(){return t.addLinkAttributes}}),Object.defineProperty(o,"getFilenameFromUrl",{enumerable:!0,get:function(){return t.getFilenameFromUrl}}),Object.defineProperty(o,"LinkTarget",{enumerable:!0,get:function(){return t.LinkTarget}}),Object.defineProperty(o,"loadScript",{enumerable:!0,get:function(){return t.loadScript}}),Object.defineProperty(o,"PDFDateString",{enumerable:!0,get:function(){return t.PDFDateString}}),Object.defineProperty(o,"RenderingCancelledException",{enumerable:!0,get:function(){return t.RenderingCancelledException}}),Object.defineProperty(o,"build",{enumerable:!0,get:function(){return a.build}}),Object.defineProperty(o,"getDocument",{enumerable:!0,get:function(){return a.getDocument}}),Object.defineProperty(o,"LoopbackPort",{enumerable:!0,get:function(){return a.LoopbackPort}}),Object.defineProperty(o,"PDFDataRangeTransport",{enumerable:!0,get:function(){return a.PDFDataRangeTransport}}),Object.defineProperty(o,"PDFWorker",{enumerable:!0,get:function(){return a.PDFWorker}}),Object.defineProperty(o,"version",{enumerable:!0,get:function(){return a.version}}),Object.defineProperty(o,"CMapCompressionType",{enumerable:!0,get:function(){return l.CMapCompressionType}}),Object.defineProperty(o,"createObjectURL",{enumerable:!0,get:function(){return l.createObjectURL}}),Object.defineProperty(o,"createPromiseCapability",{enumerable:!0,get:function(){return l.createPromiseCapability}}),Object.defineProperty(o,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return l.createValidAbsoluteUrl}}),Object.defineProperty(o,"InvalidPDFException",{enumerable:!0,get:function(){return l.InvalidPDFException}}),Object.defineProperty(o,"MissingPDFException",{enumerable:!0,get:function(){return l.MissingPDFException}}),Object.defineProperty(o,"OPS",{enumerable:!0,get:function(){return l.OPS}}),Object.defineProperty(o,"PasswordResponses",{enumerable:!0,get:function(){return l.PasswordResponses}}),Object.defineProperty(o,"PermissionFlag",{enumerable:!0,get:function(){return l.PermissionFlag}}),Object.defineProperty(o,"removeNullCharacters",{enumerable:!0,get:function(){return l.removeNullCharacters}}),Object.defineProperty(o,"shadow",{enumerable:!0,get:function(){return l.shadow}}),Object.defineProperty(o,"UnexpectedResponseException",{enumerable:!0,get:function(){return l.UnexpectedResponseException}}),Object.defineProperty(o,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return l.UNSUPPORTED_FEATURES}}),Object.defineProperty(o,"Util",{enumerable:!0,get:function(){return l.Util}}),Object.defineProperty(o,"VerbosityLevel",{enumerable:!0,get:function(){return l.VerbosityLevel}}),Object.defineProperty(o,"AnnotationLayer",{enumerable:!0,get:function(){return y.AnnotationLayer}}),Object.defineProperty(o,"apiCompatibilityParams",{enumerable:!0,get:function(){return x.apiCompatibilityParams}}),Object.defineProperty(o,"GlobalWorkerOptions",{enumerable:!0,get:function(){return E.GlobalWorkerOptions}}),Object.defineProperty(o,"renderTextLayer",{enumerable:!0,get:function(){return O.renderTextLayer}}),Object.defineProperty(o,"SVGGraphics",{enumerable:!0,get:function(){return w.SVGGraphics}});var t=e(1),a=e(198),l=e(5),y=e(209),x=e(200),E=e(203),O=e(210),w=e(211);if(e(7).isNodeJS){var ee=e(212).PDFNodeStream;(0,a.setPDFNetworkStreamFactory)(function(h){return new ee(h)})}else{var T,X=e(215).PDFNetworkStream;(0,t.isFetchSupported)()&&(T=e(216).PDFFetchStream),(0,a.setPDFNetworkStreamFactory)(function(h){return T&&(0,t.isValidFetchUrl)(h.url)?new T(h):new X(h)})}},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.addLinkAttributes=function K(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=s.url,m=s.target,z=s.rel,_=s.enabled,J=void 0===_||_;(0,a.assert)(f&&"string"==typeof f,'addLinkAttributes: A valid "url" parameter must provided.');var $=(0,a.removeNullCharacters)(f);J?i.href=i.title=$:(i.href="",i.title="Disabled: ".concat($),i.onclick=function(){return!1});var q="";switch(m){case B.NONE:break;case B.SELF:q="_self";break;case B.BLANK:q="_blank";break;case B.PARENT:q="_parent";break;case B.TOP:q="_top"}i.target=q,i.rel="string"==typeof z?z:n},o.getFilenameFromUrl=function te(i){var s=i.indexOf("#"),f=i.indexOf("?"),m=Math.min(s>0?s:i.length,f>0?f:i.length);return i.substring(i.lastIndexOf("/",m)+1,m)},o.isFetchSupported=j,o.isValidFetchUrl=Q,o.loadScript=function I(i){return new Promise(function(s,f){var m=document.createElement("script");m.src=i,m.onload=s,m.onerror=function(){f(new Error("Cannot load script at: ".concat(m.src)))},(document.head||document.documentElement).appendChild(m)})},o.deprecated=function R(i){console.log("Deprecated API usage: "+i)},o.PDFDateString=o.StatTimer=o.DOMSVGFactory=o.DOMCMapReaderFactory=o.DOMCanvasFactory=o.DEFAULT_LINK_REL=o.LinkTarget=
1o.RenderingCancelledException=o.PageViewport=void 0;var t=function l(i){return i&&i.__esModule?i:{default:i}}(e(2)),a=e(5);function y(i,s){var f;if(typeof Symbol>"u"||null==i[Symbol.iterator]){if(Array.isArray(i)||(f=function x(i,s){if(i){if("string"==typeof i)return E(i,s);var f=Object.prototype.toString.call(i).slice(8,-1);if("Object"===f&&i.constructor&&(f=i.constructor.name),"Map"===f||"Set"===f)return Array.from(i);if("Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return E(i,s)}}(i))||s&&i&&"number"==typeof i.length){f&&(i=f);var m=0,z=function(){};return{s:z,n:function(){return m>=i.length?{done:!0}:{done:!1,value:i[m++]}},e:function(L){throw L},f:z}}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 $,_=!0,J=!1;return{s:function(){f=i[Symbol.iterator]()},n:function(){var L=f.next();return _=L.done,L},e:function(L){J=!0,$=L},f:function(){try{!_&&null!=f.return&&f.return()}finally{if(J)throw $}}}}function E(i,s){(null==s||s>i.length)&&(s=i.length);for(var f=0,m=new Array(s);f<s;f++)m[f]=i[f];return m}function O(i){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"==typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(i)}function D(i,s){return(D=Object.setPrototypeOf||function(m,z){return m.__proto__=z,m})(i,s)}function U(i,s){return!s||"object"!==O(s)&&"function"!=typeof s?function V(i){if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(i):s}function X(i){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)})(i)}function T(i,s,f,m,z,_,J){try{var $=i[_](J),q=$.value}catch(L){return void f(L)}$.done?s(q):Promise.resolve(q).then(m,z)}function h(i){return function(){var s=this,f=arguments;return new Promise(function(m,z){var _=i.apply(s,f);function J(q){T(_,m,z,J,$,"next",q)}function $(q){T(_,m,z,J,$,"throw",q)}J(void 0)})}}function S(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function u(i,s){for(var f=0;f<s.length;f++){var m=s[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,m.key,m)}}function v(i,s,f){return s&&u(i.prototype,s),f&&u(i,f),i}var n="noopener noreferrer nofollow";o.DEFAULT_LINK_REL=n;var d="http://www.w3.org/2000/svg";o.DOMCanvasFactory=function(){function i(){S(this,i)}return v(i,[{key:"create",value:function(f,m){if(f<=0||m<=0)throw new Error("Invalid canvas size");var z=document.createElement("canvas"),_=z.getContext("2d");return z.width=f,z.height=m,{canvas:z,context:_}}},{key:"reset",value:function(f,m,z){if(!f.canvas)throw new Error("Canvas is not specified");if(m<=0||z<=0)throw new Error("Invalid canvas size");f.canvas.width=m,f.canvas.height=z}},{key:"destroy",value:function(f){if(!f.canvas)throw new Error("Canvas is not specified");f.canvas.width=0,f.canvas.height=0,f.canvas=null,f.context=null}}]),i}();var k=function(){function i(s){var f=s.baseUrl,m=void 0===f?null:f,z=s.isCompressed,_=void 0!==z&&z;S(this,i),this.baseUrl=m,this.isCompressed=_}return v(i,[{key:"fetch",value:function(s){function f(m){return s.apply(this,arguments)}return f.toString=function(){return s.toString()},f}(function(){var s=h(t.default.mark(function f(m){var _,J,$,z=this;return t.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(_=m.name,this.baseUrl){L.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(_){L.next=5;break}throw new Error("CMap name must be specified.");case 5:if(J=this.baseUrl+_+(this.isCompressed?".bcmap":""),$=this.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE,!j()||!Q(J,document.baseURI)){L.next=9;break}return L.abrupt("return",fetch(J).then(function(){var W=h(t.default.mark(function A(F){var N;return t.default.wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(F.ok){ie.next=2;break}throw new Error(F.statusText);case 2:if(!z.isCompressed){ie.next=10;break}return ie.t0=Uint8Array,ie.next=6,F.arrayBuffer();case 6:ie.t1=ie.sent,N=new ie.t0(ie.t1),ie.next=15;break;case 10:return ie.t2=a.stringToBytes,ie.next=13,F.text();case 13:ie.t3=ie.sent,N=(0,ie.t2)(ie.t3);case 15:return ie.abrupt("return",{cMapData:N,compressionType:$});case 16:case"end":return ie.stop()}},A)}));return function(A){return W.apply(this,arguments)}}()).catch(function(W){throw new Error("Unable to load ".concat(z.isCompressed?"binary ":"")+"CMap at: ".concat(J))}));case 9:return L.abrupt("return",new Promise(function(W,A){var F=new XMLHttpRequest;F.open("GET",J,!0),z.isCompressed&&(F.responseType="arraybuffer"),F.onreadystatechange=function(){if(F.readyState===XMLHttpRequest.DONE){var N;if((200===F.status||0===F.status)&&(z.isCompressed&&F.response?N=new Uint8Array(F.response):!z.isCompressed&&F.responseText&&(N=(0,a.stringToBytes)(F.responseText)),N))return void W({cMapData:N,compressionType:$});A(new Error(F.statusText))}},F.send(null)}
1).catch(function(W){throw new Error("Unable to load ".concat(z.isCompressed?"binary ":"")+"CMap at: ".concat(J))}));case 10:case"end":return L.stop()}},f,this)}));return function(f){return s.apply(this,arguments)}}())}]),i}();o.DOMCMapReaderFactory=k,o.DOMSVGFactory=function(){function i(){S(this,i)}return v(i,[{key:"create",value:function(f,m){(0,a.assert)(f>0&&m>0,"Invalid SVG dimensions");var z=document.createElementNS(d,"svg:svg");return z.setAttribute("version","1.1"),z.setAttribute("width",f+"px"),z.setAttribute("height",m+"px"),z.setAttribute("preserveAspectRatio","none"),z.setAttribute("viewBox","0 0 "+f+" "+m),z}},{key:"createElement",value:function(f){return(0,a.assert)("string"==typeof f,"Invalid SVG element type"),document.createElementNS(d,f)}}]),i}();var G=function(){function i(s){var f=s.viewBox,m=s.scale,z=s.rotation,_=s.offsetX,J=void 0===_?0:_,$=s.offsetY,q=void 0===$?0:$,L=s.dontFlip,W=void 0!==L&&L;S(this,i),this.viewBox=f,this.scale=m,this.rotation=z,this.offsetX=J,this.offsetY=q;var N,re,ie,ce,ve,de,Te,Oe,A=(f[2]+f[0])/2,F=(f[3]+f[1])/2;switch(z=(z%=360)<0?z+360:z){case 180:N=-1,re=0,ie=0,ce=1;break;case 90:N=0,re=1,ie=1,ce=0;break;case 270:N=0,re=-1,ie=-1,ce=0;break;case 0:N=1,re=0,ie=0,ce=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}W&&(ie=-ie,ce=-ce),0===N?(ve=Math.abs(F-f[1])*m+J,de=Math.abs(A-f[0])*m+q,Te=Math.abs(f[3]-f[1])*m,Oe=Math.abs(f[2]-f[0])*m):(ve=Math.abs(A-f[0])*m+J,de=Math.abs(F-f[1])*m+q,Te=Math.abs(f[2]-f[0])*m,Oe=Math.abs(f[3]-f[1])*m),this.transform=[N*m,re*m,ie*m,ce*m,ve-N*m*A-ie*m*F,de-re*m*A-ce*m*F],this.width=Te,this.height=Oe}return v(i,[{key:"clone",value:function(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},m=f.scale,z=void 0===m?this.scale:m,_=f.rotation,J=void 0===_?this.rotation:_,$=f.offsetX,q=void 0===$?this.offsetX:$,L=f.offsetY,W=void 0===L?this.offsetY:L,A=f.dontFlip,F=void 0!==A&&A;return new i({viewBox:this.viewBox.slice(),scale:z,rotation:J,offsetX:q,offsetY:W,dontFlip:F})}},{key:"convertToViewportPoint",value:function(f,m){return a.Util.applyTransform([f,m],this.transform)}},{key:"convertToViewportRectangle",value:function(f){var m=a.Util.applyTransform([f[0],f[1]],this.transform),z=a.Util.applyTransform([f[2],f[3]],this.transform);return[m[0],m[1],z[0],z[1]]}},{key:"convertToPdfPoint",value:function(f,m){return a.Util.applyInverseTransform([f,m],this.transform)}}]),i}();o.PageViewport=G,o.RenderingCancelledException=function(i){!function w(i,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&D(i,s)}(f,i);var s=function Y(i){var s=function ee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var z,m=X(i);if(s){var _=X(this).constructor;z=Reflect.construct(m,arguments,_)}else z=m.apply(this,arguments);return U(this,z)}}(f);function f(m,z){var _;return S(this,f),(_=s.call(this,m)).type=z,_}return f}(a.BaseException);var C,B={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function j(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype&&typeof ReadableStream<"u"}function Q(i,s){try{var m=(s?new URL(i,s):new URL(i)).protocol;return"http:"===m||"https:"===m}catch{return!1}}o.LinkTarget=B,o.StatTimer=function(){function i(){S(this,i),this.started=Object.create(null),this.times=[]}return v(i,[{key:"time",value:function(f){f in this.started&&(0,a.warn)("Timer is already running for ".concat(f)),this.started[f]=Date.now()}},{key:"timeEnd",value:function(f){f in this.started||(0,a.warn)("Timer has not been started for ".concat(f)),this.times.push({name:f,start:this.started[f],end:Date.now()}),delete this.started[f]}},{key:"toString",value:function(){var _,f=[],m=0,z=y(this.times);try{for(z.s();!(_=z.n()).done;){var $=_.value.name;$.length>m&&(m=$.length)}}catch(F){z.e(F)}finally{z.f()}var L,q=y(this.times);try{for(q.s();!(L=q.n()).done;){var W=L.value,A=W.end-W.start;f.push("".concat(W.name.padEnd(m)," ").concat(A,"ms\n"))}}catch(F){q.e(F)}finally{q.f()}return f.join("")}}]),i}(),o.PDFDateString=function(){function i(){S(this,i)}return v(i,null,[{key:"toDateObject",value:function(f){if(!f||!(0,a.isString)(f))return null;C||(C=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var m=C.exec(f);
1if(!m)return null;var z=parseInt(m[1],10),_=parseInt(m[2],10);_=_>=1&&_<=12?_-1:0;var J=parseInt(m[3],10);J=J>=1&&J<=31?J:1;var $=parseInt(m[4],10);$=$>=0&&$<=23?$:0;var q=parseInt(m[5],10);q=q>=0&&q<=59?q:0;var L=parseInt(m[6],10);L=L>=0&&L<=59?L:0;var W=m[7]||"Z",A=parseInt(m[8],10);A=A>=0&&A<=23?A:0;var F=parseInt(m[9],10)||0;return F=F>=0&&F<=59?F:0,"-"===W?($+=A,q+=F):"+"===W&&($-=A,q-=F),new Date(Date.UTC(z,_,J,$,q,L))}}]),i}()},function(b,o,e){"use strict";b.exports=e(3)},function(b,o,e){"use strict";(function(t){function a(y){return(a="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})(y)}var l=function(y){var O,x=Object.prototype,E=x.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},D=w.iterator||"@@iterator",Y=w.asyncIterator||"@@asyncIterator",U=w.toStringTag||"@@toStringTag";function V(C,p,i,s){var m=Object.create((p&&p.prototype instanceof v?p:v).prototype),z=new Q(s||[]);return m._invoke=function K(C,p,i){var s=X;return function(m,z){if(s===h)throw new Error("Generator is already running");if(s===S){if("throw"===m)throw z;return R()}for(i.method=m,i.arg=z;;){var _=i.delegate;if(_){var J=te(_,i);if(J){if(J===u)continue;return J}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===X)throw s=S,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=h;var $=ee(C,p,i);if("normal"===$.type){if(s=i.done?S:T,$.arg===u)continue;return{value:$.arg,done:i.done}}"throw"===$.type&&(s=S,i.method="throw",i.arg=$.arg)}}}(C,i,z),m}function ee(C,p,i){try{return{type:"normal",arg:C.call(p,i)}}catch(s){return{type:"throw",arg:s}}}y.wrap=V;var X="suspendedStart",T="suspendedYield",h="executing",S="completed",u={};function v(){}function n(){}function d(){}var g={};g[D]=function(){return this};var k=Object.getPrototypeOf,M=k&&k(k(I([])));M&&M!==x&&E.call(M,D)&&(g=M);var G=d.prototype=v.prototype=Object.create(g);function P(C){["next","throw","return"].forEach(function(p){C[p]=function(i){return this._invoke(p,i)}})}function B(C,p){function i(m,z,_,J){var $=ee(C[m],C,z);if("throw"!==$.type){var q=$.arg,L=q.value;return L&&"object"===a(L)&&E.call(L,"__await")?p.resolve(L.__await).then(function(W){i("next",W,_,J)},function(W){i("throw",W,_,J)}):p.resolve(L).then(function(W){q.value=W,_(q)},function(W){return i("throw",W,_,J)})}J($.arg)}var s;this._invoke=function f(m,z){function _(){return new p(function(J,$){i(m,z,J,$)})}return s=s?s.then(_,_):_()}}function te(C,p){var i=C.iterator[p.method];if(i===O){if(p.delegate=null,"throw"===p.method){if(C.iterator.return&&(p.method="return",p.arg=O,te(C,p),"throw"===p.method))return u;p.method="throw",p.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var s=ee(i,C.iterator,p.arg);if("throw"===s.type)return p.method="throw",p.arg=s.arg,p.delegate=null,u;var f=s.arg;return f?f.done?(p[C.resultName]=f.value,p.next=C.nextLoc,"return"!==p.method&&(p.method="next",p.arg=O),p.delegate=null,u):f:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,u)}function ne(C){var p={tryLoc:C[0]};1 in C&&(p.catchLoc=C[1]),2 in C&&(p.finallyLoc=C[2],p.afterLoc=C[3]),this.tryEntries.push(p)}function j(C){var p=C.completion||{};p.type="normal",delete p.arg,C.completion=p}function Q(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(ne,this),this.reset(!0)}function I(C){if(C){var p=C[D];if(p)return p.call(C);if("function"==typeof C.next)return C;if(!isNaN(C.length)){var i=-1,s=function f(){for(;++i<C.length;)if(E.call(C,i))return f.value=C[i],f.done=!1,f;return f.value=O,f.done=!0,f};return s.next=s}}return{next:R}}function R(){return{value:O,done:!0}}return n.prototype=G.constructor=d,d.constructor=n,d[U]=n.displayName="GeneratorFunction",y.isGeneratorFunction=function(C){var p="function"==typeof C&&C.constructor;return!!p&&(p===n||"GeneratorFunction"===(p.displayName||p.name))},y.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,d):(C.__proto__=d,U in C||(C[U]="GeneratorFunction")),C.prototype=Object.create(G),C},y.awrap=function(C){return{__await:C}},P(B.prototype),B.prototype[Y]=function(){return this},y.AsyncIterator=B,y.async=function(C,p,i,s,f){void 0===f&&(f=Promise);var m=new B(V(C,p,i,s),f);return y.isGeneratorFunction(p)?m:m.next().then(function(z){return z.done?z.value:m.next()})},P(G),G[U]="Generator",G[D]=function(){return this},G.toString=function(){return"[object Generator]"},y.keys=function(C){var p=[];for(var i in C)p.push(i);return p.reverse(),function s(){for(;p.length;){var f=p.pop();if(f in C)return s.value=f,s.done=!1,s}return s.done=!0,s}},y.values=I,Q.prototype={constructor:Q,reset:function(p){if(this.prev=0,this.next=0,this.sent=this._sent=O,this.done=!1,this.delegate=null,this.method="next",this.arg=O,this.tryEntries.forEac
1h(j),!p)for(var i in this)"t"===i.charAt(0)&&E.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=O)},stop:function(){this.done=!0;var i=this.tryEntries[0].completion;if("throw"===i.type)throw i.arg;return this.rval},dispatchException:function(p){if(this.done)throw p;var i=this;function s($,q){return z.type="throw",z.arg=p,i.next=$,q&&(i.method="next",i.arg=O),!!q}for(var f=this.tryEntries.length-1;f>=0;--f){var m=this.tryEntries[f],z=m.completion;if("root"===m.tryLoc)return s("end");if(m.tryLoc<=this.prev){var _=E.call(m,"catchLoc"),J=E.call(m,"finallyLoc");if(_&&J){if(this.prev<m.catchLoc)return s(m.catchLoc,!0);if(this.prev<m.finallyLoc)return s(m.finallyLoc)}else if(_){if(this.prev<m.catchLoc)return s(m.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<m.finallyLoc)return s(m.finallyLoc)}}}},abrupt:function(p,i){for(var s=this.tryEntries.length-1;s>=0;--s){var f=this.tryEntries[s];if(f.tryLoc<=this.prev&&E.call(f,"finallyLoc")&&this.prev<f.finallyLoc){var m=f;break}}m&&("break"===p||"continue"===p)&&m.tryLoc<=i&&i<=m.finallyLoc&&(m=null);var z=m?m.completion:{};return z.type=p,z.arg=i,m?(this.method="next",this.next=m.finallyLoc,u):this.complete(z)},complete:function(p,i){if("throw"===p.type)throw p.arg;return"break"===p.type||"continue"===p.type?this.next=p.arg:"return"===p.type?(this.rval=this.arg=p.arg,this.method="return",this.next="end"):"normal"===p.type&&i&&(this.next=i),u},finish:function(p){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.finallyLoc===p)return this.complete(s.completion,s.afterLoc),j(s),u}},catch:function(p){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.tryLoc===p){var f=s.completion;if("throw"===f.type){var m=f.arg;j(s)}return m}}throw new Error("illegal catch attempt")},delegateYield:function(p,i,s){return this.delegate={iterator:I(p),resultName:i,nextLoc:s},"next"===this.method&&(this.arg=O),u}},y}("object"===a(t)?t.exports:{});try{regeneratorRuntime=l}catch{Function("r","regeneratorRuntime = r")(l)}}).call(this,e(4)(b))},function(b,o,e){"use strict";b.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(b,o,e){"use strict";function t(se,pe){for(var ae=0;ae<pe.length;ae++){var ue=pe[ae];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(se,ue.key,ue)}}function l(se){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ae){return typeof ae}:function(ae){return ae&&"function"==typeof Symbol&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae})(se)}function y(se,pe){if(!(se instanceof pe))throw new TypeError("Cannot call a class as a function")}function x(se,pe){if("function"!=typeof pe&&null!==pe)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(pe&&pe.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),pe&&E(se,pe)}function E(se,pe){return(E=Object.setPrototypeOf||function(ue,we){return ue.__proto__=we,ue})(se,pe)}function O(se){var pe=function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var we,ue=U(se);if(pe){var We=U(this).constructor;we=Reflect.construct(ue,arguments,We)}else we=ue.apply(this,arguments);return w(this,we)}}function w(se,pe){return!pe||"object"!==l(pe)&&"function"!=typeof pe?function D(se){if(void 0===se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se}(se):pe}function U(se){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(ae){return ae.__proto__||Object.getPrototypeOf(ae)})(se)}Object.defineProperty(o,"__esModule",{value:!0}),o.arrayByteLength=de,o.arraysToBytes=function Te(se){var pe=se.length;if(1===pe&&se[0]instanceof Uint8Array)return se[0];for(var ae=0,ue=0;ue<pe;ue++)ae+=de(se[ue]);for(var we=0,We=new Uint8Array(ae),Ve=0;Ve<pe;Ve++){var Ke=se[Ve];Ke instanceof Uint8Array||(Ke="string"==typeof Ke?ve(Ke):new Uint8Array(Ke));var Ze=Ke.byteLength;We.set(Ke,we),we+=Ze}return We},o.assert=s,o.bytesToString=function ce(se){s(null!==se&&"object"===l(se)&&void 0!==se.length,"Invalid argument for bytesToString");var pe=se.length;if(pe<8192)return String.fromCharCode.apply(null,se);for(var ue=[],we=0;we<pe;we+=8192){var We=Math.min(we+8192,pe),Ve=se.subarray(we,We);ue.push(String.fromCharCode.apply(null,Ve))}return ue.join("")},o.createPromiseCapability=function Je(){var se=Object.create(null),pe=!1;return Object.defineProperty(se,"settled",{get:function(){return pe}}),se.promise=new Promise(function(ae,ue){se.resolve=function(we){pe=!0,ae(we)},se.reject=function(we){pe=!0,ue(we)}}),se},o.getVerbosityLevel=function R(){return Q},o.info=function C(se){Q>=B.INFOS&&console.log("Info: ".concat(se))},o.isArrayBuffer=function Me(se){return"object"===l(se)&&null!==se&&void 0!==se.byteLength},o.isArrayEqual=function Xe(se,pe){return se.length===pe.length&&se.every(function(ae,ue){return ae===pe[ue]})},o.isBool=function Se(se){return"boolean"==typeof se},o.isEmptyObj=function Ce(se){for(var pe in se)return!1;return!0},o.isNum=function ke(se){return"number"==typeof se},o.isString=function Fe(se){return"string"==typeof se},o.isSameOrigin=function f(se,pe){var ae;try{if(!(ae=new URL(se)).origin||"null"===ae.origin)return!1}catch{return!1}var ue=new URL(pe,ae);return ae.origin===ue.origin},o.createValidAbsoluteUrl=function z(se,pe){if(!se)return null;try{var ae=pe?new URL(se,pe):new URL(se);if(function m(se){if(!se)return!1;switch(se.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(ae))return ae}catch{}return null},o.removeNullCharacters=function ie(se){return"string"!=typeof se?(p("The argument for removeNullCharacters must be a string."),se):se.replace(re,"")},o.setVerbosityLevel=function I(se){Number.isInteger(se)&&(Q=se)},o.shadow=_,o.string32=function Oe(se){return String.fromCharCode(se>>24&255,se>>16&255,se>>8&255,255&se)},o.stringToBytes=ve,o.stringToPDFString=function ye(se){var pe=se.length,ae=[];if("\xfe"===se[0]&&"\xff"===se[1])for(var ue=2;ue<pe;
1ue+=2)ae.push(String.fromCharCode(se.charCodeAt(ue)<<8|se.charCodeAt(ue+1)));else if("\xff"===se[0]&&"\xfe"===se[1])for(var we=2;we<pe;we+=2)ae.push(String.fromCharCode(se.charCodeAt(we+1)<<8|se.charCodeAt(we)));else for(var We=0;We<pe;++We){var Ve=Re[se.charCodeAt(We)];ae.push(Ve?String.fromCharCode(Ve):se.charAt(We))}return ae.join("")},o.stringToUTF8String=function xe(se){return decodeURIComponent(escape(se))},o.utf8StringToString=function Le(se){return unescape(encodeURIComponent(se))},o.warn=p,o.unreachable=i,o.IsEvalSupportedCached=o.IsLittleEndianCached=o.createObjectURL=o.FormatError=o.Util=o.UnknownErrorException=o.UnexpectedResponseException=o.TextRenderingMode=o.StreamType=o.PermissionFlag=o.PasswordResponses=o.PasswordException=o.MissingPDFException=o.InvalidPDFException=o.AbortException=o.CMapCompressionType=o.ImageKind=o.FontType=o.AnnotationType=o.AnnotationStateModelType=o.AnnotationReviewState=o.AnnotationReplyType=o.AnnotationMarkedState=o.AnnotationFlag=o.AnnotationFieldFlag=o.AnnotationBorderStyleType=o.UNSUPPORTED_FEATURES=o.VerbosityLevel=o.OPS=o.IDENTITY_MATRIX=o.FONT_IDENTITY_MATRIX=o.BaseException=void 0,e(6),o.IDENTITY_MATRIX=[1,0,0,1,0,0],o.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],o.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},o.TextRenderingMode={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},o.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},o.AnnotationType={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},o.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},o.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},o.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},o.AnnotationReplyType={GROUP:"Group",REPLY:"R"},o.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},o.AnnotationFieldFlag={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},o.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},o.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},o.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var B={ERRORS:0,WARNINGS:1,INFOS:5};o.VerbosityLevel=B,o.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},o.OPS={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},o.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath"},o.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var Q=B.WARNINGS;function p(se){Q>=B.WARNINGS&&console.log("Warning: ".concat(se))}function i(se){throw new Error(se)}function s(se,pe){se||i(pe)}function _(se,pe,ae){return Object.defineProperty(se,pe,{value:ae,enumerable:!0,configurable:!0,writable:!1}),ae}var J=function(){function pe(ae){this.constructor===pe&&i("Cannot initialize BaseException."),this.message=ae,this.name=this.constructor.name}return pe.prototype=new Error,pe.constructor=pe,pe}();o.BaseException=J;var $=function(se){x(ae,se);var pe=O(ae);function ae(ue,we){var We;return y(this,ae),(We=pe.call(this,ue)).code=we,We}return ae}(J);o.PasswordException=$;var q=function(se){x(ae,se);var pe=O(ae);function ae(ue,we){var We;return y(this,ae),(We=pe.call(this,ue)).details=we,We}return ae}(J);o.UnknownErrorException=q;var L=function(se){x(ae,se);var pe=O(ae);function ae(){return y(this,ae),pe.apply(this,arguments)}return ae}(J);o.InvalidPDFException=L;var W=function(se){x(ae,se);var pe=O(ae);function ae(){return y(this,ae),pe.apply(this,arguments)}return ae}(J);o.MissingPDFException=W;var A=function(se){x(ae,se);var pe=O(ae);function ae(ue,we){var We;return y(this,ae),(We=pe.call(this,ue)).status=we,We}return ae}(J);o.UnexpectedResponseException=A;var F=function(se){x(ae,se);var pe=O(ae);function ae(){return y(this,ae),pe.apply(this,arguments)}return ae}(J);o.FormatError=F;var N=function(se){x(ae,se);var pe=O(ae);function ae(){return y(this,ae),pe.apply(this,arguments)}return ae}(J);o.AbortException=N;var re=/\x00/g;
1function ve(se){s("string"==typeof se,"Invalid argument for stringToBytes");for(var pe=se.length,ae=new Uint8Array(pe),ue=0;ue<pe;++ue)ae[ue]=255&se.charCodeAt(ue);return ae}function de(se){return void 0!==se.length?se.length:(s(void 0!==se.byteLength,"arrayByteLength - invalid argument."),se.byteLength)}o.IsLittleEndianCached={get value(){return _(this,"value",function Ue(){var se=new Uint8Array(4);return se[0]=1,1===new Uint32Array(se.buffer,0,1)[0]}())}},o.IsEvalSupportedCached={get value(){return _(this,"value",function Ne(){try{return new Function(""),!0}catch{return!1}}())}};var ze=["rgb(",0,",",0,",",0,")"],De=function(){function se(){y(this,se)}return function a(se,pe,ae){pe&&t(se.prototype,pe),ae&&t(se,ae)}(se,null,[{key:"makeCssRgb",value:function(ae,ue,we){return ze[1]=ae,ze[3]=ue,ze[5]=we,ze.join("")}},{key:"transform",value:function(ae,ue){return[ae[0]*ue[0]+ae[2]*ue[1],ae[1]*ue[0]+ae[3]*ue[1],ae[0]*ue[2]+ae[2]*ue[3],ae[1]*ue[2]+ae[3]*ue[3],ae[0]*ue[4]+ae[2]*ue[5]+ae[4],ae[1]*ue[4]+ae[3]*ue[5]+ae[5]]}},{key:"applyTransform",value:function(ae,ue){return[ae[0]*ue[0]+ae[1]*ue[2]+ue[4],ae[0]*ue[1]+ae[1]*ue[3]+ue[5]]}},{key:"applyInverseTransform",value:function(ae,ue){var we=ue[0]*ue[3]-ue[1]*ue[2];return[(ae[0]*ue[3]-ae[1]*ue[2]+ue[2]*ue[5]-ue[4]*ue[3])/we,(-ae[0]*ue[1]+ae[1]*ue[0]+ue[4]*ue[1]-ue[5]*ue[0])/we]}},{key:"getAxialAlignedBoundingBox",value:function(ae,ue){var we=se.applyTransform(ae,ue),We=se.applyTransform(ae.slice(2,4),ue),Ve=se.applyTransform([ae[0],ae[3]],ue),Ke=se.applyTransform([ae[2],ae[1]],ue);return[Math.min(we[0],We[0],Ve[0],Ke[0]),Math.min(we[1],We[1],Ve[1],Ke[1]),Math.max(we[0],We[0],Ve[0],Ke[0]),Math.max(we[1],We[1],Ve[1],Ke[1])]}},{key:"inverseTransform",value:function(ae){var ue=ae[0]*ae[3]-ae[1]*ae[2];return[ae[3]/ue,-ae[1]/ue,-ae[2]/ue,ae[0]/ue,(ae[2]*ae[5]-ae[4]*ae[3])/ue,(ae[4]*ae[1]-ae[5]*ae[0])/ue]}},{key:"apply3dTransform",value:function(ae,ue){return[ae[0]*ue[0]+ae[1]*ue[1]+ae[2]*ue[2],ae[3]*ue[0]+ae[4]*ue[1]+ae[5]*ue[2],ae[6]*ue[0]+ae[7]*ue[1]+ae[8]*ue[2]]}},{key:"singularValueDecompose2dScale",value:function(ae){var ue=[ae[0],ae[2],ae[1],ae[3]],we=ae[0]*ue[0]+ae[1]*ue[2],Ke=ae[2]*ue[1]+ae[3]*ue[3],Ze=(we+Ke)/2,lt=Math.sqrt((we+Ke)*(we+Ke)-4*(we*Ke-(ae[2]*ue[0]+ae[3]*ue[2])*(ae[0]*ue[1]+ae[1]*ue[3])))/2,gt=Ze-lt||1;return[Math.sqrt(Ze+lt||1),Math.sqrt(gt)]}},{key:"normalizeRect",value:function(ae){var ue=ae.slice(0);return ae[0]>ae[2]&&(ue[0]=ae[2],ue[2]=ae[0]),ae[1]>ae[3]&&(ue[1]=ae[3],ue[3]=ae[1]),ue}},{key:"intersect",value:function(ae,ue){function we(Ze,lt){return Ze-lt}var We=[ae[0],ae[2],ue[0],ue[2]].sort(we),Ve=[ae[1],ae[3],ue[1],ue[3]].sort(we),Ke=[];return ae=se.normalizeRect(ae),ue=se.normalizeRect(ue),We[0]===ae[0]&&We[1]===ue[0]||We[0]===ue[0]&&We[1]===ae[0]?(Ke[0]=We[1],Ke[2]=We[2],Ve[0]===ae[1]&&Ve[1]===ue[1]||Ve[0]===ue[1]&&Ve[1]===ae[1]?(Ke[1]=Ve[1],Ke[3]=Ve[2],Ke):null):null}}]),se}();o.Util=De;var pe,Re=[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],je=(pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(ue,we){var We=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!We&&URL.createObjectURL){var Ve=new Blob([ue],{type:we});return URL.createObjectURL(Ve)}for(var Ke="data:".concat(we,";base64,"),Ze=0,lt=ue.length;Ze<lt;Ze+=3){var pt=255&ue[Ze],gt=255&ue[Ze+1],dt=255&ue[Ze+2],yt=pt>>2,xt=(3&pt)<<4|gt>>4,ft=Ze+1<lt?(15&gt)<<2|dt>>6:64,wt=Ze+2<lt?63&dt:64;Ke+=pe[yt]+pe[xt]+pe[ft]+pe[wt]}return Ke});o.createObjectURL=je},function(b,o,e){"use strict";var t=e(7);function a(E){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(E)}if(typeof globalThis>"u"||!globalThis._pdfjsCompatibilityChecked){(typeof globalThis>"u"||globalThis.Math!==Math)&&(globalThis=e(8)),globalThis._pdfjsCompatibilityChecked=!0;var l="object"===(typeof window>"u"?"undefined":a(window))&&"object"===(typeof document>"u"?"undefined":a(document)),y=typeof navigator<"u"&&navigator.userAgent||"",x=/Trident/.test(y);globalThis.btoa||!t.isNodeJS||(globalThis.btoa=function(O){return Buffer.from(O,"binary").toString("base64")}),globalThis.atob||!t.isNodeJS||(globalThis.atob=function(O){return Buffer.from(O,"base64").toString("binary")}),!l||typeof Element.prototype.remove<"u"||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),function(){if(l&&!t.isNodeJS){var O=document.createElement("div");if(O.classList.add("testOne","testTwo"),!0!==O.classList.contains("testOne")||!0!==O.classList.contains("testTwo")){var w=DOMTokenList.prototype.add,D=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var Y=arguments.length,U=new Array(Y),V=0;V<Y;V++)U[V]=arguments[V];for(var ee=0,X=U;ee<X.length;ee++){var T=X[ee];w.call(this,T)}},DOMTokenList.prototype.remove=function(){for(var Y=arguments.length,U=new Array(Y),V=0;V<Y;V++)U[V]=arguments[V];for(var ee=0,X=U;ee<X.length;ee++){var T=X[ee];D.call(this,T)}}}}}(),l&&!t.isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(w){var D=arguments.length>1?!!arguments[1]:!this.contains(w);return this[D?"add":"remove"](w),D}),function(){if(l&&x){var O=window.history.pushState,w=window.history.replaceState;window.history.pushState=function(D,Y,U){O.apply(this,void 0===U?[D,Y]:[D,Y,U])},window.history.replaceState=function(D,Y,U){w.apply(this,void 0===U?[D,Y]:[D,Y,U])}}}(),String.prototype.startsWith||e(53),String.prototype.endsWith||e(64),Str
1ing.prototype.includes||e(66),Array.prototype.includes||e(68),Array.from||e(76),Object.assign||e(98),Math.log2||(Math.log2=e(101)),Number.isNaN||(Number.isNaN=e(103)),Number.isInteger||(Number.isInteger=e(105)),Uint8Array.prototype.slice||e(108),globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=e(113)),globalThis.URL=e(136),function(){var O=!1;if(typeof ReadableStream<"u")try{new ReadableStream({start:function(D){D.close()}}),O=!0}catch{}O||(globalThis.ReadableStream=e(143).ReadableStream)}(),globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=e(144)),globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=e(151)),globalThis.WeakMap||(globalThis.WeakMap=e(153)),globalThis.WeakSet||(globalThis.WeakSet=e(159)),String.prototype.codePointAt||e(161),String.fromCodePoint||(String.fromCodePoint=e(163)),globalThis.Symbol||e(165),String.prototype.padStart||e(188),String.prototype.padEnd||e(193),Object.values||(Object.values=e(195))}},function(b,o,e){"use strict";function t(l){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(l)}Object.defineProperty(o,"__esModule",{value:!0}),o.isNodeJS=void 0;var a="object"===(typeof process>"u"?"undefined":t(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;o.isNodeJS=a},function(b,o,e){e(9),b.exports=e(11)},function(b,o,e){e(10)({global:!0},{globalThis:e(11)})},function(b,o,e){var t=e(11),a=e(12).f,l=e(26),y=e(29),x=e(30),E=e(40),O=e(52);b.exports=function(w,D){var X,T,h,S,u,Y=w.target,U=w.global,V=w.stat;if(X=U?t:V?t[Y]||x(Y,{}):(t[Y]||{}).prototype)for(T in D){if(S=D[T],h=w.noTargetGet?(u=a(X,T))&&u.value:X[T],!O(U?T:Y+(V?".":"#")+T,w.forced)&&void 0!==h){if(typeof S==typeof h)continue;E(S,h)}(w.sham||h&&h.sham)&&l(S,"sham",!0),y(X,T,S,w)}}},function(b,o){var e=function(t){return t&&t.Math==Math&&t};b.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||Function("return this")()},function(b,o,e){var t=e(13),a=e(15),l=e(16),y=e(17),x=e(21),E=e(23),O=e(24),w=Object.getOwnPropertyDescriptor;o.f=t?w:function(Y,U){if(Y=y(Y),U=x(U,!0),O)try{return w(Y,U)}catch{}if(E(Y,U))return l(!a.f.call(Y,U),Y[U])}},function(b,o,e){var t=e(14);b.exports=!t(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(b,o){b.exports=function(e){try{return!!e()}catch{return!0}}},function(b,o,e){"use strict";var t={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!t.call({1:2},1);o.f=l?function(x){var E=a(this,x);return!!E&&E.enumerable}:t},function(b,o){b.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(b,o,e){var t=e(18),a=e(20);b.exports=function(l){return t(a(l))}},function(b,o,e){var t=e(14),a=e(19),l="".split;b.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(y){return"String"==a(y)?l.call(y,""):Object(y)}:Object},function(b,o){var e={}.toString;b.exports=function(t){return e.call(t).slice(8,-1)}},function(b,o){b.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(b,o,e){var t=e(22);b.exports=function(a,l){if(!t(a))return a;var y,x;if(l&&"function"==typeof(y=a.toString)&&!t(x=y.call(a))||"function"==typeof(y=a.valueOf)&&!t(x=y.call(a))||!l&&"function"==typeof(y=a.toString)&&!t(x=y.call(a)))return x;throw TypeError("Can't convert object to primitive value")}},function(b,o){b.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(b,o){var e={}.hasOwnProperty;b.exports=function(t,a){return e.call(t,a)}},function(b,o,e){var t=e(13),a=e(14),l=e(25);b.exports=!t&&!a(function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a})},function(b,o,e){var t=e(11),a=e(22),l=t.document,y=a(l)&&a(l.createElement);b.exports=function(x){return y?l.createElement(x):{}}},function(b,o,e){var t=e(13),a=e(27),l=e(16);b.exports=t?function(y,x,E){return a.f(y,x,l(1,E))}:function(y,x,E){return y[x]=E,y}},function(b,o,e){var t=e(13),a=e(24),l=e(28),y=e(21),x=Object.defineProperty;o.f=t?x:function(O,w,D){if(l(O),w=y(w,!0),l(D),a)try{return x(O,w,D)}catch{}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(O[w]=D.value),O}},function(b,o,e){var t=e(22);
vendor: 4,568 bytes, line 1
1b.exports=function(a){if(!t(a))throw TypeError(String(a)+" is not an object");return a}},function(b,o,e){var t=e(11),a=e(26),l=e(23),y=e(30),x=e(31),E=e(33),O=E.get,w=E.enforce,D=String(String).split("String");(b.exports=function(Y,U,V,ee){var X=!!ee&&!!ee.unsafe,T=!!ee&&!!ee.enumerable,h=!!ee&&!!ee.noTargetGet;"function"==typeof V&&("string"==typeof U&&!l(V,"name")&&a(V,"name",U),w(V).source=D.join("string"==typeof U?U:"")),Y!==t?(X?!h&&Y[U]&&(T=!0):delete Y[U],T?Y[U]=V:a(Y,U,V)):T?Y[U]=V:y(U,V)})(Function.prototype,"toString",function(){return"function"==typeof this&&O(this).source||x(this)})},function(b,o,e){var t=e(11),a=e(26);b.exports=function(l,y){try{a(t,l,y)}catch{t[l]=y}return y}},function(b,o,e){var t=e(32),a=Function.toString;"function"!=typeof t.inspectSource&&(t.inspectSource=function(l){return a.call(l)}),b.exports=t.inspectSource},function(b,o,e){var t=e(11),a=e(30),l="__core-js_shared__",y=t[l]||a(l,{});b.exports=y},function(b,o,e){var D,Y,U,t=e(34),a=e(11),l=e(22),y=e(26),x=e(23),E=e(35),O=e(39);if(t){var X=new(0,a.WeakMap),T=X.get,h=X.has,S=X.set;D=function(v,n){return S.call(X,v,n),n},Y=function(v){return T.call(X,v)||{}},U=function(v){return h.call(X,v)}}else{var u=E("state");O[u]=!0,D=function(v,n){return y(v,u,n),n},Y=function(v){return x(v,u)?v[u]:{}},U=function(v){return x(v,u)}}b.exports={set:D,get:Y,has:U,enforce:function(v){return U(v)?Y(v):D(v,{})},getterFor:function(v){return function(n){var d;if(!l(n)||(d=Y(n)).type!==v)throw TypeError("Incompatible receiver, "+v+" required");return d}}}},function(b,o,e){var t=e(11),a=e(31),l=t.WeakMap;b.exports="function"==typeof l&&/native code/.test(a(l))},function(b,o,e){var t=e(36),a=e(38),l=t("keys");b.exports=function(y){return l[y]||(l[y]=a(y))}},function(b,o,e){var t=e(37),a=e(32);(b.exports=function(l,y){return a[l]||(a[l]=void 0!==y?y:{})})("versions",[]).push({version:"3.6.5",mode:t?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(b,o){b.exports=!1},function(b,o){var e=0,t=Math.random();b.exports=function(a){return"Symbol("+String(void 0===a?"":a)+")_"+(++e+t).toString(36)}},function(b,o){b.exports={}},function(b,o,e){var t=e(23),a=e(41),l=e(12),y=e(27);b.exports=function(x,E){for(var O=a(E),w=y.f,D=l.f,Y=0;Y<O.length;Y++){var U=O[Y];t(x,U)||w(x,U,D(E,U))}}},function(b,o,e){var t=e(42),a=e(44),l=e(51),y=e(28);b.exports=t("Reflect","ownKeys")||function(E){var O=a.f(y(E)),w=l.f;return w?O.concat(w(E)):O}},function(b,o,e){var t=e(43),a=e(11),l=function(y){return"function"==typeof y?y:void 0};b.exports=function(y,x){return arguments.length<2?l(t[y])||l(a[y]):t[y]&&t[y][x]||a[y]&&a[y][x]}},function(b,o,e){var t=e(11);b.exports=t},function(b,o,e){var t=e(45),l=e(50).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(x){return t(x,l)}},function(b,o,e){var t=e(23),a=e(17),l=e(46).indexOf,y=e(39);b.exports=function(x,E){var Y,O=a(x),w=0,D=[];for(Y in O)!t(y,Y)&&t(O,Y)&&D.push(Y);for(;E.length>w;)t(O,Y=E[w++])&&(~l(D,Y)||D.push(Y));return D}},function(b,o,e){var t=e(17),a=e(47),l=e(49),y=function(x){return function(E,O,w){var V,D=t(E),Y=a(D.length),U=l(w,Y);if(x&&O!=O){for(;Y>U;)if((V=D[U++])!=V)return!0}else for(;Y>U;U++)if((x||U in D)&&D[U]===O)return x||U||0;return!x&&-1}};b.exports={includes:y(!0),indexOf:y(!1)}},function(b,o,e){var t=e(48),a=Math.min;b.exports=function(l){return l>0?a(t(l),9007199254740991):0}},function(b,o){var e=Math.ceil,t=Math.floor;b.exports=function(a){return isNaN(a=+a)?0:(a>0?t:e)(a)}},function(b,o,e){var t=e(48),a=Math.max,l=Math.min;b.exports=function(y,x){var E=t(y);return E<0?a(E+x,0):l(E,x)}},function(b,o){b.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(b,o){o.f=Object.getOwnPropertySymbols},function(b,o,e){var t=e(14),a=/#|\.prototype\./,l=function(w,D){var Y=x[y(w)];return Y==O||Y!=E&&("function"==typeof D?t(D):!!D)},y=l.normalize=function(w){return String(w).replace(a,".").toLowerCase()},x=l.data={},E=l.NATIVE="N",O=l.POLYFILL="P";b.exports=l},function(b,o,e){e(54);var t=e(61);b.exports=t("String","startsWith")},function(b,o,e){"use strict";var V,t=e(10),a=e(12).f,l=e(47),y=e(55),x=e(20),E=e(60),O=e(37),w="".startsWith,D=Math.min,Y=E("startsWith");t({target:"String",proto:!0,forced:!(!O&&!Y&&(V=a(String.prototype,"startsWith"),V&&!V.writable)||Y)},{startsWith:function(ee){var X=String(x(this));y(ee);var T=l(D(arguments.length>1?arguments[1]:void 0,X.length)),h=String(ee);return w?w.call(X,h,T):X.slice(T,T+h.length)===h}})},function(b,o,e){var t=e(56);
1b.exports=function(a){if(t(a))throw TypeError("The method doesn't accept regular expressions");return a}},function(b,o,e){var t=e(22),a=e(19),y=e(57)("match");b.exports=function(x){var E;return t(x)&&(void 0!==(E=x[y])?!!E:"RegExp"==a(x))}},function(b,o,e){var t=e(11),a=e(36),l=e(23),y=e(38),x=e(58),E=e(59),O=a("wks"),w=t.Symbol,D=E?w:w&&w.withoutSetter||y;b.exports=function(Y){return l(O,Y)||(O[Y]=x&&l(w,Y)?w[Y]:D("Symbol."+Y)),O[Y]}},function(b,o,e){var t=e(14);b.exports=!!Object.getOwnPropertySymbols&&!t(function(){return!String(Symbol())})},function(b,o,e){var t=e(58);b.exports=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(b,o,e){var a=e(57)("match");b.exports=function(l){var y=/./;try{"/./"[l](y)}catch{try{return y[a]=!1,"/./"[l](y)}catch{}}return!1}},function(b,o,e){var t=e(11),a=e(62),l=Function.call;b.exports=function(y,x,E){return a(l,t[y].prototype[x],E)}},function(b,o,e){var t=e(63);b.exports=function(a,l,y){if(t(a),void 0===l)return a;switch(y){case 0:return function(){return a.call(l)};case 1:return function(x){return a.call(l,x)};case 2:return function(x,E){return a.call(l,x,E)};case 3:return function(x,E,O){return a.call(l,x,E,O)}}return function(){return a.apply(l,arguments)}}},function(b,o){b.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(b,o,e){e(65);var t=e(61);b.exports=t("String","endsWith")},function(b,o,e){"use strict";var V,t=e(10),a=e(12).f,l=e(47),y=e(55),x=e(20),E=e(60),O=e(37),w="".endsWith,D=Math.min,Y=E("endsWith");t({target:"String",proto:!0,forced:!(!O&&!Y&&(V=a(String.prototype,"endsWith"),V&&!V.writable)||Y)},{endsWith:function(ee){var X=String(x(this));y(ee);var T=arguments.length>1?arguments[1]:void 0,h=l(X.length),S=void 0===T?h:D(l(T),h),u=String(ee);return w?w.call(X,u,S):X.slice(S-u.length,S)===u}})},function(b,o,e){e(67);var t=e(61);b.exports=t("String","includes")},function(b,o,e){"use strict";var t=e(10),a=e(55),l=e(20);t({target:"String",proto:!0,forced:!e(60)("includes")},{includes:function(E){return!!~String(l(this)).indexOf(a(E),arguments.length>1?arguments[1]:void 0)}})},function(b,o,e){e(69);var t=e(61);b.exports=t("Array","includes")},function(b,o,e){"use strict";var t=e(10),a=e(46).includes,l=e(70);t({target:"Array",proto:!0,forced:!e(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(O){return a(this,O,arguments.length>1?arguments[1]:void 0)}}),l("includes")},function(b,o,e){var t=e(57),a=e(71),l=e(27),y=t("unscopables"),x=Array.prototype;null==x[y]&&l.f(x,y,{configurable:!0,value:a(null)}),b.exports=function(E){x[y][E]=!0}},function(b,o,e){var S,t=e(28),a=e(72),l=e(50),y=e(39),x=e(74),E=e(25),O=e(35),Y="prototype",U="script",V=O("IE_PROTO"),ee=function(){},X=function(v){return"<"+U+">"+v+"</"+U+">"},u=function(){try{S=document.domain&&new ActiveXObject("htmlfile")}catch{}u=S?function(v){v.write(X("")),v.close();var n=v.parentWindow.Object;return v=null,n}(S):function(){var d,v=E("iframe");return v.style.display="none",x.appendChild(v),v.src=String("javascript:"),(d=v.contentWindow.document).open(),d.write(X("document.F=Object")),d.close(),d.F}();for(var v=l.length;v--;)delete u[Y][l[v]];return u()};y[V]=!0,b.exports=Object.create||function(n,d){var g;return null!==n?(ee[Y]=t(n),g=new ee,ee[Y]=null,g[V]=n):g=u(),void 0===d?g:a(g,d)}},function(b,o,e){var t=e(13),a=e(27),l=e(28),y=e(73);b.exports=t?Object.defineProperties:function(E,O){l(E);for(var U,w=y(O),D=w.length,Y=0;D>Y;)a.f(E,U=w[Y++],O[U]);return E}},function(b,o,e){var t=e(45),a=e(50);b.exports=Object.keys||function(y){return t(y,a)}},function(b,o,e){var t=e(42);b.exports=t("document","documentElement")},function(b,o,e){var t=e(13),a=e(14),l=e(23),y=Object.defineProperty,x={},E=function(O){throw O};b.exports=function(O,w){if(l(x,O))return x[O];w||(w={});var D=[][O],Y=!!l(w,"ACCESSORS")&&w.ACCESSORS,U=l(w,0)?w[0]:E,V=l(w,1)?w[1]:void 0;return x[O]=!!D&&!a(function(){if(Y&&!t)return!0;var ee={length:-1};Y?y(ee,1,{enumerable:!0,get:E}):ee[1]=1,D.call(ee,U,V)})}},function(b,o,e){e(77),e(89);var t=e(43);b.exports=t.Array.from},function(b,o,e){"use strict";var t=e(78).charAt,a=e(33),l=e(79),y="String Iterator",x=a.set,E=a.getterFor(y);l(String,"String",function(O){x(this,{type:y,string:String(O),index:0})},function(){var U,w=E(this),D=w.string,Y=w.index;return Y>=D.length?{value:void 0,done:!0}:(U=t(D,Y),w.index+=U.length,{value:U,done:!1})})},function(b,o,e){var t=e(48),a=e(20),l=function(y){return function(x,E){var Y,U,O=String(a(x)),w=t(E),D=O.length;return w<0||w>=D?y?"":void 0:(Y=O.charCodeAt(w))<55296||Y>56319||w+1===D||(U=O.charCodeAt(w+1))<56320||U>57343?y?O.charAt(w):Y:y?O.slice(w,w+2):U-56320+(Y-55296<<10)+65536}};b.exports={codeAt:l(!1),charAt:l(!0)}},function(b,o,e){"use strict";var t=e(10),a=e(80),l=e(82),y=e(87),x=e(85),E=e(26),O=e(29),w=e(57),D=e(37),Y=e(86),U=e(81),V=U.IteratorPrototype,ee=U.BUGGY_SAFARI_ITERATORS,X=w("iterator"),T="keys",h="values",S="entries",u=function(){return this};b.exports=function(v,n,d,g,k,M,G){a(d,n,g);var I,R,C,P=function(p){if(p===k&&j)return j;if(!ee&&p in te)return te[p];switch(p){case T:case h:case S:return function(){return new d(this,p)}}return function(){return new d(this)}},B=n+" Iterator",K=!1,te=v.prototype,ne=te[X]||te["@@iterator"]||k&&te[k],j=!ee&&ne||P(k),Q="Array"==n&&te.entries||ne;if(Q&&(I=l(Q.call(new v)),V!==Object.prototype&&I.next&&(!D&&l(I)!==V&&(y?y(I,V):"function"!=typeof I[X]&&E(I,X,u)),x(I,B,!0,!0),D&&(Y[B]=u))),k==h&&ne&&ne.name!==h&&(K=!0,j=function(){return ne.call(this)}),(!D||G)&&te[X]!==j&&E(te,X,j),Y[n]=j,k)if(R={values:P(h),keys:M?j:P(T),entries:P(S)},G)for(C in R)(ee||K||!(C in te))&&O(te,C,R[C]);else t({target:n,proto:!0,forced:ee||K},R);return R}},function(b,o,e){"use strict";var t=e(81).IteratorPrototype,a=e(71),l=e(16),y=e(85),x=e(86),E=function(){return this};b.exports=function(O,w,D){var Y=w+" Iterator";return O.prototype=a(t,{next:l(1,D)}),y(O,Y,!1,!0),x[Y]=E,O}},function(b,o,e){"use strict";var D,Y,U,t=e(82),a=e(26),l=e(23),y=e(57),x=e(37),E=y("iterator"),O=!1;[].keys&&("next"in(U=[].keys())?(Y=t(t(U)))!==Object.prototype&&(D=Y):O=!0),null==D&&(D={}),!x&&!l(D,E)&&a(D,E,function(){return this}),b.exports={IteratorPrototype:D,BUGGY_SAFARI_ITERATORS:O}},function(b,o,e){var t=e(23),a=e(83),l=e(35),y=e(84),x=l("IE_PROTO"),E=Object.prototype;b.exports=y?Object.getPrototypeOf:function(O){return O=a(O),t(O,x)?O[x]:"function"==typeof O.constructor&&O instanceof O.constructor?O.constructor.prototype:O instanceof Object?E:null}},function(b,o,e){var t=e(20);b.exports=function(a){return Object(t(a))}},function(b,o,e){var t=e(14);b.exports=!t(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},function(b,o,e){var t=e(27).f,a=e(23),y=e(57)("toStringTag");b.exports=function(x,E,O){x&&!a(x=O?x:x.prototype,y)&&t(x,y,{configurable:!0,value:E})}},function(b,o){b.exports={}},function(b,o,e){var t=e(28),a=e(88);
vendor: 7,568 bytes, line 1
1b.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x,l=!1,y={};try{(x=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(y,[]),l=y instanceof Array}catch{}return function(O,w){return t(O),a(w),l?x.call(O,w):O.__proto__=w,O}}():void 0)},function(b,o,e){var t=e(22);b.exports=function(a){if(!t(a)&&null!==a)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},function(b,o,e){var t=e(10),a=e(90);t({target:"Array",stat:!0,forced:!e(97)(function(x){Array.from(x)})},{from:a})},function(b,o,e){"use strict";var t=e(62),a=e(83),l=e(91),y=e(92),x=e(47),E=e(93),O=e(94);b.exports=function(D){var S,u,v,n,d,g,Y=a(D),U="function"==typeof this?this:Array,V=arguments.length,ee=V>1?arguments[1]:void 0,X=void 0!==ee,T=O(Y),h=0;if(X&&(ee=t(ee,V>2?arguments[2]:void 0,2)),null==T||U==Array&&y(T))for(u=new U(S=x(Y.length));S>h;h++)g=X?ee(Y[h],h):Y[h],E(u,h,g);else for(d=(n=T.call(Y)).next,u=new U;!(v=d.call(n)).done;h++)g=X?l(n,ee,[v.value,h],!0):v.value,E(u,h,g);return u.length=h,u}},function(b,o,e){var t=e(28);b.exports=function(a,l,y,x){try{return x?l(t(y)[0],y[1]):l(y)}catch(O){var E=a.return;throw void 0!==E&&t(E.call(a)),O}}},function(b,o,e){var t=e(57),a=e(86),l=t("iterator"),y=Array.prototype;b.exports=function(x){return void 0!==x&&(a.Array===x||y[l]===x)}},function(b,o,e){"use strict";var t=e(21),a=e(27),l=e(16);b.exports=function(y,x,E){var O=t(x);O in y?a.f(y,O,l(0,E)):y[O]=E}},function(b,o,e){var t=e(95),a=e(86),y=e(57)("iterator");b.exports=function(x){if(null!=x)return x[y]||x["@@iterator"]||a[t(x)]}},function(b,o,e){var t=e(96),a=e(19),y=e(57)("toStringTag"),x="Arguments"==a(function(){return arguments}());b.exports=t?a:function(O){var w,D,Y;return void 0===O?"Undefined":null===O?"Null":"string"==typeof(D=function(O,w){try{return O[w]}catch{}}(w=Object(O),y))?D:x?a(w):"Object"==(Y=a(w))&&"function"==typeof w.callee?"Arguments":Y}},function(b,o,e){var l={};l[e(57)("toStringTag")]="z",b.exports="[object z]"===String(l)},function(b,o,e){var a=e(57)("iterator"),l=!1;try{var y=0,x={next:function(){return{done:!!y++}},return:function(){l=!0}};x[a]=function(){return this},Array.from(x,function(){throw 2})}catch{}b.exports=function(E,O){if(!O&&!l)return!1;var w=!1;try{var D={};D[a]=function(){return{next:function(){return{done:w=!0}}}},E(D)}catch{}return w}},function(b,o,e){e(99);var t=e(43);b.exports=t.Object.assign},function(b,o,e){var t=e(10),a=e(100);t({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},function(b,o,e){"use strict";var t=e(13),a=e(14),l=e(73),y=e(51),x=e(15),E=e(83),O=e(18),w=Object.assign,D=Object.defineProperty;b.exports=!w||a(function(){if(t&&1!==w({b:1},w(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var Y={},U={},V=Symbol(),ee="abcdefghijklmnopqrst";return Y[V]=7,ee.split("").forEach(function(X){U[X]=X}),7!=w({},Y)[V]||l(w({},U)).join("")!=ee})?function(U,V){for(var ee=E(U),X=arguments.length,T=1,h=y.f,S=x.f;X>T;)for(var g,u=O(arguments[T++]),v=h?l(u).concat(h(u)):l(u),n=v.length,d=0;n>d;)g=v[d++],(!t||S.call(u,g))&&(ee[g]=u[g]);return ee}:w},function(b,o,e){e(102);var t=e(43);b.exports=t.Math.log2},function(b,o,e){var t=e(10),a=Math.log,l=Math.LN2;t({target:"Math",stat:!0},{log2:function(x){return a(x)/l}})},function(b,o,e){e(104);var t=e(43);b.exports=t.Number.isNaN},function(b,o,e){e(10)({target:"Number",stat:!0},{isNaN:function(l){return l!=l}})},function(b,o,e){e(106);var t=e(43);b.exports=t.Number.isInteger},function(b,o,e){e(10)({target:"Number",stat:!0},{isInteger:e(107)})},function(b,o,e){var t=e(22),a=Math.floor;b.exports=function(y){return!t(y)&&isFinite(y)&&a(y)===y}},function(b,o,e){e(109)},function(b,o,e){"use strict";var t=e(110),a=e(112),l=e(14),y=t.aTypedArray,x=t.aTypedArrayConstructor,O=[].slice;(0,t.exportTypedArrayMethod)("slice",function(Y,U){for(var V=O.call(y(this),Y,U),ee=a(this,this.constructor),X=0,T=V.length,h=new(x(ee))(T);T>X;)h[X]=V[X++];return h},l(function(){new Int8Array(1).slice()}))},function(b,o,e){"use strict";var P,t=e(111),a=e(13),l=e(11),y=e(22),x=e(23),E=e(95),O=e(26),w=e(29),D=e(27).f,Y=e(82),U=e(87),V=e(57),ee=e(38),X=l.Int8Array,T=X&&X.prototype,h=l.Uint8ClampedArray,S=h&&h.prototype,u=X&&Y(X),v=T&&Y(T),n=Object.prototype,d=n.isPrototypeOf,g=V("toStringTag"),k=ee("TYPED_ARRAY_TAG"),M=t&&!!U&&"Opera"!==E(l.opera),G=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te=function(R){return y(R)&&x(B,E(R))};for(P in B)l[P]||(M=!1);if((!M||"function"!=typeof u||u===Function.prototype)&&(u=function(){throw TypeError("Incorrect invocation")},M))for(P in B)l[P]&&U(l[P],u);if((!M||!v||v===n)&&(v=u.prototype,M))for(P in B)l[P]&&U(l[P].prototype,v);if(M&&Y(S)!==v&&U(S,v),a&&!x(v,g))for(P in G=!0,D(v,g,{get:function(){return y(this)?this[k]:void 0}}),B)l[P]&&O(l[P],k,P);b.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:G&&k,aTypedArray:function(R){if(te(R))return R;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(R){if(U){if(d.call(u,R))return R}else for(var C in B)if(x(B,P)){var p=l[C];if(p&&(R===p||d.call(p,R)))return R}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(R,C,p){if(a){if(p)for(var i in B){var s=l[i];s&&x(s.prototype,R)&&delete s.prototype[R]}(!v[R]||p)&&w(v,R,p?C:M&&T[R]||C)}},exportTypedArrayStaticMethod:function(R,C,p){var i,s;if(a){if(U){if(p)for(i in B)(s=l[i])&&x(s,R)&&delete s[R];if(u[R]&&!p)return;try{return w(u,R,p?C:M&&X[R]||C)}catch{}}for(i in B)(s=l[i])&&(!s[R]||p)&&w(s,R,C)}},isView:function(C){var p=E(C);return"DataView"===p||x(B,p)},isTypedArray:te,TypedArray:u,TypedArrayPrototype:v}},function(b,o){b.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},function(b,o,e){var t=e(28),a=e(63),y=e(57)("species");b.exports=function(x,E){var w,O=t(x).constructor;return void 0===O||null==(w=t(O)[y])?E:a(w)}},function(b,o,e){e(114),e(77),e(116),e(119),e(134),e(135);var t=e(43);b.exports=t.Promise},function(b,o,e){var t=e(96),a=e(29),l=e(115);t||a(Object.prototype,"toString",l,{unsafe:!0})},function(b,o,e){"use strict";var t=e(96),a=e(95);b.exports=t?{}.toString:function(){return"[object "+a(this)+"]"}},function(b,o,e){var t=e(11),a=e(117),l=e(118),y=e(26),x=e(57),E=x("iterator"),O=x("toStringTag"),w=l.values;for(var D in a){var Y=t[D],U=Y&&Y.prototype;if(U){if(U[E]!==w)try{y(U,E,w)}catch{U[E]=w}if(U[O]||y(U,O,D),a[D])for(var V in l)if(U[V]!==l[V])try{y(U,V,l[V])}catch{U[V]=l[V]}}}},function(b,o){b.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(b,o,e){"use strict";var t=e(17),a=e(70),l=e(86),y=e(33),x=e(79),E="Array Iterator",O=y.set,w=y.getterFor(E);b.exports=x(Array,"Array",function(D,Y){O(this,{type:E,target:t(D),index:0,kind:Y})},function(){var D=w(this),Y=D.target,U=D.kind,V=D.index++;return!Y||V>=Y.length?(D.target=void 0,{value:void 0,done:!0}):"keys"==U?{value:V,done:!1}:"values"==U?{value:Y[V],done:!1}:{value:[V,Y[V]],done:!1}},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")},function(b,o,e){"use strict";
vendor: 4,384 bytes, line 1
1var F,N,re,ie,t=e(10),a=e(37),l=e(11),y=e(42),x=e(120),E=e(29),O=e(121),w=e(85),D=e(122),Y=e(22),U=e(63),V=e(123),ee=e(19),X=e(31),T=e(124),h=e(97),S=e(112),u=e(125).set,v=e(128),n=e(129),d=e(131),g=e(130),k=e(132),M=e(33),G=e(52),P=e(57),B=e(133),K=P("species"),te="Promise",ne=M.get,j=M.set,Q=M.getterFor(te),I=x,R=l.TypeError,C=l.document,p=l.process,i=y("fetch"),s=g.f,f=s,m="process"==ee(p),z=!!(C&&C.createEvent&&l.dispatchEvent),_="unhandledrejection",ce=G(te,function(){if(X(I)===String(I)&&(66===B||!m&&"function"!=typeof PromiseRejectionEvent)||a&&!I.prototype.finally)return!0;if(B>=51&&/native code/.test(I))return!1;var ye=I.resolve(1),xe=function(Ce){Ce(function(){},function(){})};return(ye.constructor={})[K]=xe,!(ye.then(function(){})instanceof xe)}),ve=ce||!h(function(Re){I.all(Re).catch(function(){})}),de=function(Re){var ye;return!(!Y(Re)||"function"!=typeof(ye=Re.then))&&ye},Te=function(Re,ye,xe){if(!ye.notified){ye.notified=!0;var Le=ye.reactions;v(function(){for(var Ce=ye.value,Se=1==ye.state,ke=0;Le.length>ke;){var se,pe,ae,Fe=Le[ke++],Me=Se?Fe.ok:Fe.fail,Xe=Fe.resolve,Je=Fe.reject,je=Fe.domain;try{Me?(Se||(2===ye.rejection&&Ne(Re,ye),ye.rejection=1),!0===Me?se=Ce:(je&&je.enter(),se=Me(Ce),je&&(je.exit(),ae=!0)),se===Fe.promise?Je(R("Promise-chain cycle")):(pe=de(se))?pe.call(se,Xe,Je):Xe(se)):Je(Ce)}catch(ue){je&&!ae&&je.exit(),Je(ue)}}ye.reactions=[],ye.notified=!1,xe&&!ye.rejection&&Ue(Re,ye)})}},Oe=function(Re,ye,xe){var Le,Ce;z?((Le=C.createEvent("Event")).promise=ye,Le.reason=xe,Le.initEvent(Re,!1,!0),l.dispatchEvent(Le)):Le={promise:ye,reason:xe},(Ce=l["on"+Re])?Ce(Le):Re===_&&d("Unhandled promise rejection",xe)},Ue=function(Re,ye){u.call(l,function(){var Ce,xe=ye.value;if(He(ye)&&(Ce=k(function(){m?p.emit("unhandledRejection",xe,Re):Oe(_,Re,xe)}),ye.rejection=m||He(ye)?2:1,Ce.error))throw Ce.value})},He=function(Re){return 1!==Re.rejection&&!Re.parent},Ne=function(Re,ye){u.call(l,function(){m?p.emit("rejectionHandled",Re):Oe("rejectionhandled",Re,ye.value)})},Be=function(Re,ye,xe,Le){return function(Ce){Re(ye,xe,Ce,Le)}},ze=function(Re,ye,xe,Le){ye.done||(ye.done=!0,Le&&(ye=Le),ye.value=xe,ye.state=2,Te(Re,ye,!0))},De=function(Re,ye,xe,Le){if(!ye.done){ye.done=!0,Le&&(ye=Le);try{if(Re===xe)throw R("Promise can't be resolved itself");var Ce=de(xe);Ce?v(function(){var Se={done:!1};try{Ce.call(xe,Be(De,Re,Se,ye),Be(ze,Re,Se,ye))}catch(ke){ze(Re,Se,ke,ye)}}):(ye.value=xe,ye.state=1,Te(Re,ye,!1))}catch(Se){ze(Re,{done:!1},Se,ye)}}};ce&&(I=function(ye){V(this,I,te),U(ye),F.call(this);var xe=ne(this);try{ye(Be(De,this,xe),Be(ze,this,xe))}catch(Le){ze(this,xe,Le)}},(F=function(ye){j(this,{type:te,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=O(I.prototype,{then:function(ye,xe){var Le=Q(this),Ce=s(S(this,I));return Ce.ok="function"!=typeof ye||ye,Ce.fail="function"==typeof xe&&xe,Ce.domain=m?p.domain:void 0,Le.parent=!0,Le.reactions.push(Ce),0!=Le.state&&Te(this,Le,!1),Ce.promise},catch:function(Re){return this.then(void 0,Re)}}),N=function(){var Re=new F,ye=ne(Re);this.promise=Re,this.resolve=Be(De,Re,ye),this.reject=Be(ze,Re,ye)},g.f=s=function(Re){return Re===I||Re===re?new N(Re):f(Re)},!a&&"function"==typeof x&&(ie=x.prototype.then,E(x.prototype,"then",function(ye,xe){var Le=this;return new I(function(Ce,Se){ie.call(Le,Ce,Se)}).then(ye,xe)},{unsafe:!0}),"function"==typeof i&&t({global:!0,enumerable:!0,forced:!0},{fetch:function(ye){return n(I,i.apply(l,arguments))}}))),t({global:!0,wrap:!0,forced:ce},{Promise:I}),w(I,te,!1,!0),D(te),re=y(te),t({target:te,stat:!0,forced:ce},{reject:function(ye){var xe=s(this);return xe.reject.call(void 0,ye),xe.promise}}),t({target:te,stat:!0,forced:a||ce},{resolve:function(ye){return n(a&&this===re?I:this,ye)}}),t({target:te,stat:!0,forced:ve},{all:function(ye){var xe=this,Le=s(xe),Ce=Le.resolve,Se=Le.reject,ke=k(function(){var Fe=U(xe.resolve),Me=[],Xe=0,Je=1;T(ye,function(je){var se=Xe++,pe=!1;Me.push(void 0),Je++,Fe.call(xe,je).then(function(ae){pe||(pe=!0,Me[se]=ae,--Je||Ce(Me))},Se)}),--Je||Ce(Me)});return ke.error&&Se(ke.value),Le.promise},race:function(ye){var xe=this,Le=s(xe),Ce=Le.reject,Se=k(function(){var ke=U(xe.resolve);T(ye,function(Fe){ke.call(xe,Fe).then(Le.resolve,Ce)})});return Se.error&&Ce(Se.value),Le.promise}})},function(b,o,e){var t=e(11);b.exports=t.Promise},function(b,o,e){var t=e(29);
vendor: 1,794 bytes, line 1
1b.exports=function(a,l,y){for(var x in l)t(a,x,l[x],y);return a}},function(b,o,e){"use strict";var t=e(42),a=e(27),l=e(57),y=e(13),x=l("species");b.exports=function(E){var O=t(E);y&&O&&!O[x]&&(0,a.f)(O,x,{configurable:!0,get:function(){return this}})}},function(b,o){b.exports=function(e,t,a){if(!(e instanceof t))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return e}},function(b,o,e){var t=e(28),a=e(92),l=e(47),y=e(62),x=e(94),E=e(91),O=function(D,Y){this.stopped=D,this.result=Y};(b.exports=function(D,Y,U,V,ee){var T,h,S,u,v,n,d,X=y(Y,U,V?2:1);if(ee)T=D;else{if("function"!=typeof(h=x(D)))throw TypeError("Target is not iterable");if(a(h)){for(S=0,u=l(D.length);u>S;S++)if((v=V?X(t(d=D[S])[0],d[1]):X(D[S]))&&v instanceof O)return v;return new O(!1)}T=h.call(D)}for(n=T.next;!(d=n.call(T)).done;)if("object"==typeof(v=E(T,X,d.value,V))&&v&&v instanceof O)return v;return new O(!1)}).stop=function(D){return new O(!0,D)}},function(b,o,e){var S,u,v,t=e(11),a=e(14),l=e(19),y=e(62),x=e(74),E=e(25),O=e(126),w=t.location,D=t.setImmediate,Y=t.clearImmediate,U=t.process,V=t.MessageChannel,ee=t.Dispatch,X=0,T={},h="onreadystatechange",n=function(M){if(T.hasOwnProperty(M)){var G=T[M];delete T[M],G()}},d=function(M){return function(){n(M)}},g=function(M){n(M.data)},k=function(M){t.postMessage(M+"",w.protocol+"//"+w.host)};(!D||!Y)&&(D=function(G){for(var P=[],B=1;arguments.length>B;)P.push(arguments[B++]);return T[++X]=function(){("function"==typeof G?G:Function(G)).apply(void 0,P)},S(X),X},Y=function(G){delete T[G]},"process"==l(U)?S=function(M){U.nextTick(d(M))}:ee&&ee.now?S=function(M){ee.now(d(M))}:V&&!O?(v=(u=new V).port2,u.port1.onmessage=g,S=y(v.postMessage,v,1)):!t.addEventListener||"function"!=typeof postMessage||t.importScripts||a(k)||"file:"===w.protocol?S=h in 
vendor: 7,473 bytes, line 1
1E("script")?function(M){x.appendChild(E("script"))[h]=function(){x.removeChild(this),n(M)}}:function(M){setTimeout(d(M),0)}:(S=k,t.addEventListener("message",g,!1))),b.exports={set:D,clear:Y}},function(b,o,e){var t=e(127);b.exports=/(iphone|ipod|ipad).*applewebkit/i.test(t)},function(b,o,e){var t=e(42);b.exports=t("navigator","userAgent")||""},function(b,o,e){var V,ee,X,T,h,S,u,v,t=e(11),a=e(12).f,l=e(19),y=e(125).set,x=e(126),E=t.MutationObserver||t.WebKitMutationObserver,O=t.process,w=t.Promise,D="process"==l(O),Y=a(t,"queueMicrotask"),U=Y&&Y.value;U||(V=function(){var n,d;for(D&&(n=O.domain)&&n.exit();ee;){d=ee.fn,ee=ee.next;try{d()}catch(g){throw ee?T():X=void 0,g}}X=void 0,n&&n.enter()},D?T=function(){O.nextTick(V)}:E&&!x?(h=!0,S=document.createTextNode(""),new E(V).observe(S,{characterData:!0}),T=function(){S.data=h=!h}):w&&w.resolve?(u=w.resolve(void 0),v=u.then,T=function(){v.call(u,V)}):T=function(){y.call(t,V)}),b.exports=U||function(n){var d={fn:n,next:void 0};X&&(X.next=d),ee||(ee=d,T()),X=d}},function(b,o,e){var t=e(28),a=e(22),l=e(130);b.exports=function(y,x){if(t(y),a(x)&&x.constructor===y)return x;var E=l.f(y);return(0,E.resolve)(x),E.promise}},function(b,o,e){"use strict";var t=e(63),a=function(l){var y,x;this.promise=new l(function(E,O){if(void 0!==y||void 0!==x)throw TypeError("Bad Promise constructor");y=E,x=O}),this.resolve=t(y),this.reject=t(x)};b.exports.f=function(l){return new a(l)}},function(b,o,e){var t=e(11);b.exports=function(a,l){var y=t.console;y&&y.error&&(1===arguments.length?y.error(a):y.error(a,l))}},function(b,o){b.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},function(b,o,e){var E,O,t=e(11),a=e(127),l=t.process,y=l&&l.versions,x=y&&y.v8;x?O=(E=x.split("."))[0]+E[1]:a&&(!(E=a.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=a.match(/Chrome\/(\d+)/))&&(O=E[1]),b.exports=O&&+O},function(b,o,e){"use strict";var t=e(10),a=e(63),l=e(130),y=e(132),x=e(124);t({target:"Promise",stat:!0},{allSettled:function(O){var w=this,D=l.f(w),Y=D.resolve,U=D.reject,V=y(function(){var ee=a(w.resolve),X=[],T=0,h=1;x(O,function(S){var u=T++,v=!1;X.push(void 0),h++,ee.call(w,S).then(function(n){v||(v=!0,X[u]={status:"fulfilled",value:n},--h||Y(X))},function(n){v||(v=!0,X[u]={status:"rejected",reason:n},--h||Y(X))})}),--h||Y(X)});return V.error&&U(V.value),D.promise}})},function(b,o,e){"use strict";var t=e(10),a=e(37),l=e(120),y=e(14),x=e(42),E=e(112),O=e(129),w=e(29);t({target:"Promise",proto:!0,real:!0,forced:!!l&&y(function(){l.prototype.finally.call({then:function(){}},function(){})})},{finally:function(Y){var U=E(this,x("Promise")),V="function"==typeof Y;return this.then(V?function(ee){return O(U,Y()).then(function(){return ee})}:Y,V?function(ee){return O(U,Y()).then(function(){throw ee})}:Y)}}),!a&&"function"==typeof l&&!l.prototype.finally&&w(l.prototype,"finally",x("Promise").prototype.finally)},function(b,o,e){e(137),e(142),e(140);var t=e(43);b.exports=t.URL},function(b,o,e){"use strict";e(77);var s,t=e(10),a=e(13),l=e(138),y=e(11),x=e(72),E=e(29),O=e(123),w=e(23),D=e(100),Y=e(90),U=e(78).codeAt,V=e(139),ee=e(85),X=e(140),T=e(33),h=y.URL,S=X.URLSearchParams,u=X.getState,v=T.set,n=T.getterFor("URL"),d=Math.floor,g=Math.pow,M="Invalid scheme",G="Invalid host",P="Invalid port",B=/[A-Za-z]/,K=/[\d+-.A-Za-z]/,te=/\d/,ne=/^(0x|0X)/,j=/^[0-7]+$/,Q=/^\d+$/,I=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,C=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,p=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,i=/[\u0009\u000A\u000D]/g,f=function(Z,he){var fe,ge,be;if("["==he.charAt(0)){if("]"!=he.charAt(he.length-1)||!(fe=z(he.slice(1,-1))))return G;Z.host=fe}else if(N(Z)){if(he=V(he),R.test(he)||null===(fe=m(he)))return G;Z.host=fe}else{if(C.test(he))return G;for(fe="",ge=Y(he),be=0;be<ge.length;be++)fe+=A(ge[be],$);Z.host=fe}},m=function(Z){var fe,ge,be,Ge,Ee,$e,_e,he=Z.split(".");if(he.length&&""==he[he.length-1]&&he.pop(),(fe=he.length)>4)return Z;for(ge=[],be=0;be<fe;be++){if(""==(Ge=he[be]))return Z;if(Ee=10,Ge.length>1&&"0"==Ge.charAt(0)&&(Ee=ne.test(Ge)?16:8,Ge=Ge.slice(8==Ee?1:2)),""===Ge)$e=0;else{if(!(10==Ee?Q:8==Ee?j:I).test(Ge))return Z;$e=parseInt(Ge,Ee)}ge.push($e)}for(be=0;be<fe;be++)if($e=ge[be],be==fe-1){if($e>=g(256,5-fe))return null}else if($e>255)return null;for(_e=ge.pop(),be=0;be<ge.length;be++)_e+=ge[be]*g(256,3-be);return _e},z=function(Z){var Ge,Ee,$e,_e,tt,ot,me,he=[0,0,0,0,0,0,0,0],fe=0,ge=null,be=0,et=function(){return Z.charAt(be)};if(":"==et()){if(":"!=Z.charAt(1))return;be+=2,ge=++fe}for(;et();){if(8==fe)return;if(":"!=et()){for(Ge=Ee=0;Ee<4&&I.test(et());)Ge=16*Ge+parseInt(et(),16),be++,Ee++;if("."==et()){if(0==Ee||(be-=Ee,fe>6))return;for($e=0;et();){if(_e=null,$e>0){if(!("."==et()&&$e<4))return;be++}if(!te.test(et()))return;for(;te.test(et());){if(tt=parseInt(et(),10),null===_e)_e=tt;else{if(0==_e)return;_e=10*_e+tt}if(_e>255)return;be++}he[fe]=256*he[fe]+_e,(2==++$e||4==$e)&&fe++}if(4!=$e)return;break}if(":"==et()){if(be++,!et())return}else if(et())return;he[fe++]=Ge}else{if(null!==ge)return;be++,ge=++fe}}if(null!==ge)for(ot=fe-ge,fe=7;0!=fe&&ot>0;)me=he[fe],he[fe--]=he[ge+ot-1],he[ge+--ot]=me;else if(8!=fe)return;return he},J=function(Z){var he,fe,ge,be;if("number"==typeof Z){for(he=[],fe=0;fe<4;fe++)he.unshift(Z%256),Z=d(Z/256);return he.join(".")}if("object"==typeof Z){for(he="",ge=function(Z){for(var he=null,fe=1,ge=null,be=0,Ge=0;Ge<8;Ge++)0!==Z[Ge]?(be>fe&&(he=ge,fe=be),ge=null,be=0):(null===ge&&(ge=Ge),++be);return be>fe&&(he=ge,fe=be),he}(Z),fe=0;fe<8;fe++)be&&0===Z[fe]||(be&&(be=!1),ge===fe?(he+=fe?":":"::",be=!0):(he+=Z[fe].toString(16),fe<7&&(he+=":")));return"["+he+"]"}return Z},$={},q=D({},$,{" ":1,'"':1,"<":1,">":1,"`":1}),L=D({},q,{"#":1,"?":1,"{":1,"}":1}),W=D({},L,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),A=function(Z,he){var fe=U(Z,0);return fe>32&&fe<127&&!w(he,Z)?Z:encodeURIComponent(Z)},F={ftp:21,file:null,http:80,https:443,ws:80,wss:443},N=function(Z){return w(F,Z.scheme)},re=function(Z){return""!=Z.username||""!=Z.password},ie=function(Z){return!Z.host||Z.cannotBeABaseURL||"file"==Z.scheme},ce=function(Z,he){var fe;return 2==Z.length&&B.test(Z.charAt(0))&&(":"==(fe=Z.charAt(1))||!he&&"|"==fe)},ve=function(Z){var he;return Z.length>1&&ce(Z.slice(0,2))&&(2==Z.length||"/"===(he=Z.charAt(2))||"\\"===he||"?"===he||"#"===he)},de=function(Z){var he=Z.path,fe=he.length;fe&&("file"!=Z.scheme||1!=fe||!ce(he[0],!0))&&he.pop()},Te=function(Z){return"."===Z||"%2e"===Z.toLowerCase()},Oe=function(Z){return".."===(Z=Z.toLowerCase())||"%2e."===Z||".%2e"===Z||"%2e%2e"===Z},Ue={},He={},Ne={},Be={},ze={},De={},Re={},ye={},xe={},Le={},Ce={},Se={},ke={},Fe={},Me={},Xe={},Je={},je={},se={},pe={},ae={},ue=function(Z,he,fe,ge){var ot,me,et,ct,be=fe||Ue,Ge=0,Ee="",$e=!1,_e=!1,tt=!1;for(fe||(Z.scheme="",Z.username="",Z.password="",Z.host=null,Z.port=null,Z.path=[],Z.query=null,Z.fragment=null,Z.cannotBeABaseURL=!1,he=he.replace(p,"")),he=he.replace(i,""),ot=Y(he);Ge<=ot.length;){switch(me=ot[Ge],be){case Ue:if(!me||!B.test(me)){if(fe)return M;be=Ne;continue}Ee+=me.toLowerCase(),be=He;break;case He:if(me&&(K.test(me)||"+"==me||"-"==me||"."==me))Ee+=me.toLowerCase();else{if(":"!=me){if(fe)return M;Ee="",be=Ne,Ge=0;continue}if(fe&&(N(Z)!=w(F,Ee)||"file"==Ee&&(re(Z)||null!==Z.port)||"file"==Z.scheme&&!Z.host))return;if(Z.scheme=Ee,fe)return void(N(Z)&&F[Z.scheme]==Z.port&&(Z.port=null));Ee="","file"==Z.scheme?be=Fe:N(Z)&&ge&&ge.scheme==Z.scheme?be=Be:N(Z
vendor: 7,609 bytes, line 1
1)?be=ye:"/"==ot[Ge+1]?(be=ze,Ge++):(Z.cannotBeABaseURL=!0,Z.path.push(""),be=se)}break;case Ne:if(!ge||ge.cannotBeABaseURL&&"#"!=me)return M;if(ge.cannotBeABaseURL&&"#"==me){Z.scheme=ge.scheme,Z.path=ge.path.slice(),Z.query=ge.query,Z.fragment="",Z.cannotBeABaseURL=!0,be=ae;break}be="file"==ge.scheme?Fe:De;continue;case Be:if("/"!=me||"/"!=ot[Ge+1]){be=De;continue}be=xe,Ge++;break;case ze:if("/"==me){be=Le;break}be=je;continue;case De:if(Z.scheme=ge.scheme,me==s)Z.username=ge.username,Z.password=ge.password,Z.host=ge.host,Z.port=ge.port,Z.path=ge.path.slice(),Z.query=ge.query;else if("/"==me||"\\"==me&&N(Z))be=Re;else if("?"==me)Z.username=ge.username,Z.password=ge.password,Z.host=ge.host,Z.port=ge.port,Z.path=ge.path.slice(),Z.query="",be=pe;else{if("#"!=me){Z.username=ge.username,Z.password=ge.password,Z.host=ge.host,Z.port=ge.port,Z.path=ge.path.slice(),Z.path.pop(),be=je;continue}Z.username=ge.username,Z.password=ge.password,Z.host=ge.host,Z.port=ge.port,Z.path=ge.path.slice(),Z.query=ge.query,Z.fragment="",be=ae}break;case Re:if(!N(Z)||"/"!=me&&"\\"!=me){if("/"!=me){Z.username=ge.username,Z.password=ge.password,Z.host=ge.host,Z.port=ge.port,be=je;continue}be=Le}else be=xe;break;case ye:if(be=xe,"/"!=me||"/"!=Ee.charAt(Ge+1))continue;Ge++;break;case xe:if("/"!=me&&"\\"!=me){be=Le;continue}break;case Le:if("@"==me){$e&&(Ee="%40"+Ee),$e=!0,et=Y(Ee);for(var Ut=0;Ut<et.length;Ut++){var Qt=et[Ut];if(":"!=Qt||tt){var Ot=A(Qt,W);tt?Z.password+=Ot:Z.username+=Ot}else tt=!0}Ee=""}else if(me==s||"/"==me||"?"==me||"#"==me||"\\"==me&&N(Z)){if($e&&""==Ee)return"Invalid authority";Ge-=Y(Ee).length+1,Ee="",be=Ce}else Ee+=me;break;case Ce:case Se:if(fe&&"file"==Z.scheme){be=Xe;continue}if(":"!=me||_e){if(me==s||"/"==me||"?"==me||"#"==me||"\\"==me&&N(Z)){if(N(Z)&&""==Ee)return G;if(fe&&""==Ee&&(re(Z)||null!==Z.port))return;if(ct=f(Z,Ee))return ct;if(Ee="",be=Je,fe)return;continue}"["==me?_e=!0:"]"==me&&(_e=!1),Ee+=me}else{if(""==Ee)return G;if(ct=f(Z,Ee))return ct;if(Ee="",be=ke,fe==Se)return}break;case ke:if(!te.test(me)){if(me==s||"/"==me||"?"==me||"#"==me||"\\"==me&&N(Z)||fe){if(""!=Ee){var It=parseInt(Ee,10);if(It>65535)return P;Z.port=N(Z)&&It===F[Z.scheme]?null:It,Ee=""}if(fe)return;be=Je;continue}return P}Ee+=me;break;case Fe:if(Z.scheme="file","/"==me||"\\"==me)be=Me;else{if(!ge||"file"!=ge.scheme){be=je;continue}if(me==s)Z.host=ge.host,Z.path=ge.path.slice(),Z.query=ge.query;else if("?"==me)Z.host=ge.host,Z.path=ge.path.slice(),Z.query="",be=pe;else{if("#"!=me){ve(ot.slice(Ge).join(""))||(Z.host=ge.host,Z.path=ge.path.slice(),de(Z)),be=je;continue}Z.host=ge.host,Z.path=ge.path.slice(),Z.query=ge.query,Z.fragment="",be=ae}}break;case Me:if("/"==me||"\\"==me){be=Xe;break}ge&&"file"==ge.scheme&&!ve(ot.slice(Ge).join(""))&&(ce(ge.path[0],!0)?Z.path.push(ge.path[0]):Z.host=ge.host),be=je;continue;case Xe:if(me==s||"/"==me||"\\"==me||"?"==me||"#"==me){if(!fe&&ce(Ee))be=je;else if(""==Ee){if(Z.host="",fe)return;be=Je}else{if(ct=f(Z,Ee))return ct;if("localhost"==Z.host&&(Z.host=""),fe)return;Ee="",be=Je}continue}Ee+=me;break;case Je:if(N(Z)){if(be=je,"/"!=me&&"\\"!=me)continue}else if(fe||"?"!=me)if(fe||"#"!=me){if(me!=s&&(be=je,"/"!=me))continue}else Z.fragment="",be=ae;else Z.query="",be=pe;break;case je:if(me==s||"/"==me||"\\"==me&&N(Z)||!fe&&("?"==me||"#"==me)){if(Oe(Ee)?(de(Z),"/"!=me&&!("\\"==me&&N(Z))&&Z.path.push("")):Te(Ee)?"/"!=me&&!("\\"==me&&N(Z))&&Z.path.push(""):("file"==Z.scheme&&!Z.path.length&&ce(Ee)&&(Z.host&&(Z.host=""),Ee=Ee.charAt(0)+":"),Z.path.push(Ee)),Ee="","file"==Z.scheme&&(me==s||"?"==me||"#"==me))for(;Z.path.length>1&&""===Z.path[0];)Z.path.shift();"?"==me?(Z.query="",be=pe):"#"==me&&(Z.fragment="",be=ae)}else Ee+=A(me,L);break;case se:"?"==me?(Z.query="",be=pe):"#"==me?(Z.fragment="",be=ae):me!=s&&(Z.path[0]+=A(me,$));break;case pe:fe||"#"!=me?me!=s&&("'"==me&&N(Z)?Z.query+="%27":Z.query+="#"==me?"%23":A(me,$)):(Z.fragment="",be=ae);break;case ae:me!=s&&(Z.fragment+=A(me,q))}Ge++}},we=function(he){var Ee,$e,fe=O(this,we,"URL"),ge=arguments.length>1?arguments[1]:void 0,be=String(he),Ge=v(fe,{type:"URL"});if(void 0!==ge)if(ge instanceof we)Ee=n(ge);else if($e=ue(Ee={},String(ge)))throw TypeError($e);if($e=ue(Ge,be,null,Ee))throw TypeError($e);var _e=Ge.searchParams=new S,tt=u(_e);tt.updateSearchParams(Ge.query),tt.updateURL=function(){Ge.query=String(_e)||null},a||(fe.href=Ve.call(fe),fe.origin=Ke.call(fe),fe.protocol=Ze.call(fe),fe.username=lt.call(fe),fe.password=pt.call(fe),fe.host=gt.call(fe),fe.hostname=dt.call(fe),fe.port=yt.call(fe),fe.pathname=xt.call(fe),fe.search=ft.call(fe),fe.searchParams=wt.call(fe),fe.hash=Nt.call(fe))},We=we.prototype,Ve=function(){var Z=n(this),he=Z.scheme,fe=Z.username,ge=Z.password,be=Z.host,Ge=Z.port,Ee=Z.path,$e=Z.query,_e=Z.fragment,tt=he+":";return null!==be?(tt+="//",re(Z)&&(tt+=fe+(ge?":"+ge:"")+"@"),tt+=J(be),null!==Ge&&(tt+=":"+Ge)):"file"==he&&(tt+="//"),tt+=Z.cannotBeABaseURL?Ee[0]:Ee.length?"/"+Ee.join("/"):"",null!==$e&&(tt+="?"+$e),null!==_e&&(tt+="#"+_e),tt},Ke=function(){var Z=n(this),he=Z.scheme,fe=Z.port;if("blob"==he)try{return new URL(he.path[0]).origin}catch{return"null"}return"file"!=he&&N(Z)?he+"://"+J(Z.host)+(null!==fe?":"+fe:""):"null"},Ze=function(){return n(this).scheme+":"},lt=function(){return n(this).username},pt=function(){return n(this).password},gt=function(){var Z=n(this),he=Z.host,fe=Z.port;return null===he?"":null===fe?J(he):J(he)+":"+fe},dt=function(){var Z=n(this).host;return null===Z?"":J(Z)},yt=function(){var Z=n(this).port;return null===Z?"":String(Z)},xt=function(){var Z=n(this),he=Z.path;return Z.cannotBeABaseURL?he[0]:he.length?"/"+he.join("/"):""},ft=function(){var Z=n(this).query;return Z?"?"+Z:""},wt=function(){return n(this).searchParams},Nt=function(){var Z=n(this).fragment;return Z?"#"+Z:""},st=function(Z,he){return{get:Z,set:he,configurable:!0,enumerable:!0}};if(a&&x(We,{href:st(Ve,function(Z){var he=n(this),fe=String(Z),ge=ue(he,fe);if(ge)throw TypeError(ge);u(he.searchParams).updateSearchParams(he.query)}),origin:st(Ke),protocol:st(Ze,function(Z){var he=n(this);ue(he,String(Z)+":",Ue)}),username:st(lt,function(Z){var he=n(this),fe=Y(String(Z));if(!ie(he)){he.username="";for(var ge=0;ge<fe.length;ge++)he.username+=A(fe[ge],W)}}),password:st(pt,function(Z){var he=n(this),fe=Y(String(Z));if(!ie(he)){he.password="";for(var ge=0;ge<fe.length;ge++)he.password+=A(fe[ge],W)}}),host:st(gt,function(Z){var he=n(this);he.cannotBeABaseURL||ue(he,String(Z),Ce)}),hostname:st(dt,function(Z){var he=n(this);he.cannotBeABaseURL||ue(he,String(Z),Se)}),port:st(yt,function(Z){var he=n(this);ie(he)||(""==(Z=String(Z))?he.port=null:ue(he,Z,ke))}),pathname:st(xt,function(Z){var he=n(this);he.cannotBeABaseURL||(he.path=[],ue(he,Z+"",Je))}),search:st(ft,function(Z){var he=n(this);""==(Z=String(Z))?he.query=null:("?"==Z.charAt(0)&&(Z=Z.slice(1)),he.query="",ue(he,Z,pe)),u(he.searchParams).updateSearchParams(he.query)}),searchParams:st(wt),hash:st(Nt,function(Z){var he=n(this);""!=(Z=String(Z))?("#"==Z.charAt(0)&&(Z=Z.slice(1)),he.fragment="",ue(he,Z,ae)):he.fragment=null})}),E(We,"toJSON",function(){return Ve.call(this)},{enumerable:!0}),E(We,"toString",function(){return Ve.call(this)},{enumerable:!0}),h){var jt=h.createObjectURL,Wt=h.revokeObjectURL;jt&&E(we,"createObjectURL",function(he){return jt.apply(h,arguments)}),Wt&&E(we,"revokeObjectURL",function(he){return Wt.apply(h,arguments)})}ee(we,"URL"),t({global:!0,forced:!l,sham:!a},{URL:we})},function(b,o,e){var t=e(14),a=e(57),l=e(37),y=a("iterator");b.exports=!t(function(){var x=new URL("b?a=1&b=2&c=3","http://a"),E=x.searchParams,O="";
vendor: 4,136 bytes, line 1
1return x.pathname="c%20d",E.forEach(function(w,D){E.delete("b"),O+=D+w}),l&&!x.toJSON||!E.sort||"http://a/c%20d?a=1&c=3"!==x.href||"3"!==E.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!E[y]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==O||"x"!==new URL("http://x",void 0).host})},function(b,o,e){"use strict";var t=2147483647,Y=/[^\0-\u007E]/,U=/[.\u3002\uFF0E\uFF61]/g,V="Overflow: input needs wider integers to process",X=Math.floor,T=String.fromCharCode,S=function(n){return n+22+75*(n<26)},u=function(n,d,g){var k=0;for(n=g?X(n/700):n>>1,n+=X(n/d);n>455;k+=36)n=X(n/35);return X(k+36*n/(n+38))},v=function(n){var d=[];n=function(n){for(var d=[],g=0,k=n.length;g<k;){var M=n.charCodeAt(g++);if(M>=55296&&M<=56319&&g<k){var G=n.charCodeAt(g++);56320==(64512&G)?d.push(((1023&M)<<10)+(1023&G)+65536):(d.push(M),g--)}else d.push(M)}return d}(n);var P,B,g=n.length,k=128,M=0,G=72;for(P=0;P<n.length;P++)(B=n[P])<128&&d.push(T(B));var K=d.length,te=K;for(K&&d.push("-");te<g;){var ne=t;for(P=0;P<n.length;P++)(B=n[P])>=k&&B<ne&&(ne=B);var j=te+1;if(ne-k>X((t-M)/j))throw RangeError(V);for(M+=(ne-k)*j,k=ne,P=0;P<n.length;P++){if((B=n[P])<k&&++M>t)throw RangeError(V);if(B==k){for(var Q=M,I=36;;I+=36){var R=I<=G?1:I>=G+26?26:I-G;if(Q<R)break;var C=Q-R,p=36-R;d.push(T(S(R+C%p))),Q=X(C/p)}d.push(T(S(Q))),G=u(M,j,te==K),M=0,++te}}++M,++k}return d.join("")};b.exports=function(n){var k,M,d=[],g=n.toLowerCase().replace(U,".").split(".");for(k=0;k<g.length;k++)d.push(Y.test(M=g[k])?"xn--"+v(M):M);return d.join(".")}},function(b,o,e){"use strict";e(118);var t=e(10),a=e(42),l=e(138),y=e(29),x=e(121),E=e(85),O=e(80),w=e(33),D=e(123),Y=e(23),U=e(62),V=e(95),ee=e(28),X=e(22),T=e(71),h=e(16),S=e(141),u=e(94),v=e(57),n=a("fetch"),d=a("Headers"),g=v("iterator"),k="URLSearchParams",M=k+"Iterator",G=w.set,P=w.getterFor(k),B=w.getterFor(M),K=/\+/g,te=Array(4),ne=function(J){return te[J-1]||(te[J-1]=RegExp("((?:%[\\da-f]{2}){"+J+"})","gi"))},j=function(J){try{return decodeURIComponent(J)}catch{return J}},Q=function(J){var $=J.replace(K," "),q=4;try{return decodeURIComponent($)}catch{for(;q;)$=$.replace(ne(q--),j);return $}},I=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},C=function(J){return R[J]},p=function(J){return encodeURIComponent(J).replace(I,C)},i=function(J,$){if($)for(var W,A,q=$.split("&"),L=0;L<q.length;)(W=q[L++]).length&&(A=W.split("="),J.push({key:Q(A.shift()),value:Q(A.join("="))}))},s=function(J){this.entries.length=0,i(this.entries,J)},f=function(J,$){if(J<$)throw TypeError("Not enough arguments")},m=O(function($,q){G(this,{type:M,iterator:S(P($).entries),kind:q})},"Iterator",function(){var $=B(this),q=$.kind,L=$.iterator.next(),W=L.value;return L.done||(L.value="keys"===q?W.key:"values"===q?W.value:[W.key,W.value]),L}),z=function(){D(this,z,k);var W,A,F,N,re,ie,ce,ve,de,$=arguments.length>0?arguments[0]:void 0,q=this,L=[];if(G(q,{type:k,entries:L,updateURL:function(){},updateSearchParams:s}),void 0!==$)if(X($))if("function"==typeof(W=u($)))for(F=(A=W.call($)).next;!(N=F.call(A)).done;){if((ce=(ie=(re=S(ee(N.value))).next).call(re)).done||(ve=ie.call(re)).done||!ie.call(re).done)throw TypeError("Expected sequence with length 2");L.push({key:ce.value+"",value:ve.value+""})}else for(de in $)Y($,de)&&L.push({key:de,value:$[de]+""});else i(L,"string"==typeof $?"?"===$.charAt(0)?$.slice(1):$:$+"")},_=z.prototype;x(_,{append:function($,q){f(arguments.length,2);var L=P(this);L.entries.push({key:$+"",value:q+""}),L.updateURL()},delete:function(J){f(arguments.length,1);for(var $=P(this),q=$.entries,L=J+"",W=0;W<q.length;)q[W].key===L?q.splice(W,1):W++;$.updateURL()},get:function($){f(arguments.length,1);for(var q=P(this).entries,L=$+"",W=0;W<q.length;W++)if(q[W].key===L)return q[W].value;return null},getAll:function($){f(arguments.length,1);for(var q=P(this).entries,L=$+"",W=[],A=0;A<q.length;A++)q[A].key===L&&W.push(q[A].value);return W},has:function($){f(arguments.length,1);
1for(var q=P(this).entries,L=$+"",W=0;W<q.length;)if(q[W++].key===L)return!0;return!1},set:function($,q){f(arguments.length,1);for(var ie,L=P(this),W=L.entries,A=!1,F=$+"",N=q+"",re=0;re<W.length;re++)(ie=W[re]).key===F&&(A?W.splice(re--,1):(A=!0,ie.value=N));A||W.push({key:F,value:N}),L.updateURL()},sort:function(){var W,A,F,$=P(this),q=$.entries,L=q.slice();for(q.length=0,F=0;F<L.length;F++){for(W=L[F],A=0;A<F;A++)if(q[A].key>W.key){q.splice(A,0,W);break}A===F&&q.push(W)}$.updateURL()},forEach:function($){for(var A,q=P(this).entries,L=U($,arguments.length>1?arguments[1]:void 0,3),W=0;W<q.length;)L((A=q[W++]).value,A.key,this)},keys:function(){return new m(this,"keys")},values:function(){return new m(this,"values")},entries:function(){return new m(this,"entries")}},{enumerable:!0}),y(_,g,_.entries),y(_,"toString",function(){for(var W,$=P(this).entries,q=[],L=0;L<$.length;)W=$[L++],q.push(p(W.key)+"="+p(W.value));return q.join("&")},{enumerable:!0}),E(z,k),t({global:!0,forced:!l},{URLSearchParams:z}),!l&&"function"==typeof n&&"function"==typeof d&&t({global:!0,enumerable:!0,forced:!0},{fetch:function($){var L,W,A,q=[$];return arguments.length>1&&(X(L=arguments[1])&&V(W=L.body)===k&&((A=L.headers?new d(L.headers):new d).has("content-type")||A.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),L=T(L,{body:h(0,String(W)),headers:h(0,A)})),q.push(L)),n.apply(this,q)}}),b.exports={URLSearchParams:z,getState:P}},function(b,o,e){var t=e(28),a=e(94);b.exports=function(l){var y=a(l);if("function"!=typeof y)throw TypeError(String(l)+" is not iterable");return t(y.call(l))}},function(b,o,e){"use strict";e(10)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(b,o,e){!function(t){"use strict";var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(r){return"Symbol("+r+")"};function l(){}var y=Number.isNaN||function(r){return r!=r},x=l;function E(r){return"object"==typeof r&&null!==r||"function"==typeof r}function O(r){return r.slice()}function w(r,c,H,oe,le){new Uint8Array(r).set(new Uint8Array(H,oe,le),c)}function D(r){return!(!1===function Y(r){return!("number"!=typeof r||y(r)||r<0)}(r)||r===1/0)}function U(r,c,H){if("function"!=typeof r)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(r,c,H)}function V(r,c,H,oe){var le=r[c];if(void 0!==le){if("function"!=typeof le)throw new TypeError(le+" is not a method");switch(H){case 0:return function(){return X(le,r,oe)};case 1:return function(Ae){var Pe=[Ae].concat(oe);return X(le,r,Pe)}}}return function(){return M(void 0)}}function ee(r,c,H){var oe=r[c];if(void 0!==oe)return U(oe,r,H)}function X(r,c,H){try{return M(U(r,c,H))}catch(oe){return G(oe)}}function S(r){if(r=Number(r),y(r)||r<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return r}function u(r){if(void 0===r)return function(){return 1};if("function"!=typeof r)throw new TypeError("size property of a queuing strategy must be a function");return function(c){return r(c)}}var v=Promise,n=Promise.prototype.then,d=Promise.resolve.bind(v),g=Promise.reject.bind(v);function k(r){return new v(r)}function M(r){return d(r)}function G(r){return g(r)}function P(r,c,H){return n.call(r,c,H)}function B(r,c,H){P(P(r,c,H),void 0,x)}function K(r,c){B(r,c)}function te(r,c){B(r,void 0,c)}function ne(r,c,H){return P(r,c,H)}function j(r){P(r,void 0,x)}var I=function(){function r(){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(r.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),r.prototype.push=function(c){var H=this._back,oe=H;16383===H._elements.length&&(oe={_elements:[],_next:void 0}),H._elements.push(c),oe!==H&&(this._back=oe,H._next=oe),++this._size},r.prototype.shift=function(){var c=this._front,H=c,oe=this._cursor,le=oe+1,Ae=c._elements,Pe=Ae[oe];return 16384===le&&(H=c._next,le=0),--this._size,this._cursor=le,c!==H&&(this._front=H),Ae[oe]=void 0,Pe},r.prototype.forEach=function(c){for(var H=this._cursor,oe=this._front,le=oe._elements;!(H===le.length&&void 0===oe._next||H===le.length&&(oe=oe._next,le=oe._elements,H=0,0===le.length));)c(le[H]),++H},r.prototype.peek=function(){return this._front._elements[this._cursor]},r}();function R(r,c,H){var oe=null;
vendor: 6,104 bytes, line 1
1!0===H&&(oe=Object.prototype);var le=Object.create(oe);return le.value=r,le.done=c,le}function C(r,c){r._forAuthorCode=!0,r._ownerReadableStream=c,c._reader=r,"readable"===c._state?f(r):"closed"===c._state?function z(r){f(r),$(r)}(r):m(r,c._storedError)}function p(r,c){return Tt(r._ownerReadableStream,c)}function i(r){"readable"===r._ownerReadableStream._state?_(r,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function J(r,c){m(r,c)}(r,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),r._ownerReadableStream._reader=void 0,r._ownerReadableStream=void 0}function s(r){return new TypeError("Cannot "+r+" a stream using a released reader")}function f(r){r._closedPromise=k(function(c,H){r._closedPromise_resolve=c,r._closedPromise_reject=H})}function m(r,c){f(r),_(r,c)}function _(r,c){j(r._closedPromise),r._closedPromise_reject(c),r._closedPromise_resolve=void 0,r._closedPromise_reject=void 0}function $(r){r._closedPromise_resolve(void 0),r._closedPromise_resolve=void 0,r._closedPromise_reject=void 0}var q=a("[[CancelSteps]]"),L=a("[[PullSteps]]");function W(r,c){void 0===c&&(c=!1);var H=new ie(r);return H._forAuthorCode=c,H}function A(r){return k(function(H,oe){r._reader._readRequests.push({_resolve:H,_reject:oe})})}function F(r,c,H){var oe=r._reader;oe._readRequests.shift()._resolve(R(c,H,oe._forAuthorCode))}function N(r){return r._reader._readRequests.length}function re(r){var c=r._reader;return!(void 0===c||!ce(c))}var Te,Oe,ie=function(){function r(c){if(!1===vt(c))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===St(c))throw new TypeError("This stream has already been locked for exclusive reading by another reader");C(this,c),this._readRequests=new I}return Object.defineProperty(r.prototype,"closed",{get:function(){return ce(this)?this._closedPromise:G(de("closed"))},enumerable:!0,configurable:!0}),r.prototype.cancel=function(c){return ce(this)?void 0===this._ownerReadableStream?G(s("cancel")):p(this,c):G(de("cancel"))},r.prototype.read=function(){return ce(this)?void 0===this._ownerReadableStream?G(s("read from")):ve(this):G(de("read"))},r.prototype.releaseLock=function(){if(!ce(this))throw de("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");i(this)}},r}();function ce(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_readRequests"))}function ve(r){var c=r._ownerReadableStream;return c._disturbed=!0,"closed"===c._state?M(R(void 0,!0,r._forAuthorCode)):"errored"===c._state?G(c._storedError):c._readableStreamController[L]()}function de(r){return new TypeError("ReadableStreamDefaultReader.prototype."+r+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof a.asyncIterator&&((Te={})[a.asyncIterator]=function(){return this},Oe=Te,Object.defineProperty(Oe,a.asyncIterator,{enumerable:!1}));var Ue={next:function(){if(!1===Ne(this))return G(Be("next"));var r=this._asyncIteratorReader;return void 0===r._ownerReadableStream?G(s("iterate")):ne(ve(r),function(c){var H=c.done;return H&&i(r),R(c.value,H,!0)})},return:function(r){if(!1===Ne(this))return G(Be("next"));var c=this._asyncIteratorReader;if(void 0===c._ownerReadableStream)return G(s("finish iterating"));if(c._readRequests.length>0)return G(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var H=p(c,r);return i(c),ne(H,function(){return R(r,!0,!0)})}return i(c),M(R(r,!0,!0))}};function Ne(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_asyncIteratorReader"))}function Be(r){return new TypeError("ReadableStreamAsyncIterator."+r+" can only be used on a ReadableSteamAsyncIterator")}function ze(r){var c=r._queue.shift();return r._queueTotalSize-=c.size,r._queueTotalSize<0&&(r._queueTotalSize=0),c.value}function De(r,c,H){if(!D(H=Number(H)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");r._queue.push({value:c,size:H}),r._queueTotalSize+=H}function ye(r){r._queue=new I,r._queueTotalSize=0}void 0!==Oe&&Object.setPrototypeOf(Ue,Oe),Object.defineProperty(Ue,"next",{enumerable:!1}),Object.defineProperty(Ue,"return",{enumerable:!1});var xe=a("[[AbortSteps]]"),Le=a("[[ErrorSteps]]"),Ce=function(){function r(c,H){void 0===c&&(c={}),void 0===H&&(H={}),Fe(this);var oe=H.size,le=H.highWaterMark;if(void 0!==c.type)throw new RangeError("Invalid type is specified");var Pe=u(oe);void 0===le&&(le=1),function Ee(r,c,H,oe){var le=Object.create(ge.prototype);function Ae(){return ee(c,"start",[le])}var Pe=V(c,"write",1,[le]),Ie=V(c,"close",0,[]),Ye=V(c,"abort",1,[]);Ge(r,le,Ae,Pe,Ie,Ye,H,oe)}(this,c,le=S(le),Pe)}return Object.defineProperty(r.prototype,"locked",{get:function(){if(!1===Me(this))throw Jt("locked");return Xe(this)},enumerable:!0,configurable:!0}),r.prototype.abort=function(c){return!1===Me(this)?G(Jt("abort")):!0===Xe(this)?G(new TypeError("Cannot abort a stream that already has a writer")):Je(this,c)},r.prototype.close=function(){return!1===Me(this)?G(Jt("close")):!0===Xe(this)?G(new TypeError("Cannot close a stream that already has a writer")):!0===Ze(this)?G(new TypeError("Cannot close an already-closing stream")):je(this)},r.prototype.getWriter=function(){if(!1===Me(this))throw Jt("getWriter");return Se(this)},r}();function Se(r){return new xt(r)}function Fe(r){r._state="writable",r._storedError=void 0,r._writer=void 0,r._writableStreamController=void 0,r._writeRequests=new I,r._inFlightWriteRequest=void 0,r._closeRequest=void 0,r._inFlightCloseRequest=void 0,r._pendingAbortRequest=void 0,r._backpressure=!1}function Me(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_writableStreamController"))}function Xe(r){return void 0!==r._writer}function Je(r,c){var H=r._state;if("closed"===H||"errored"===H)return M(void 0);if(void 0!==r._pendingAbortRequest)return r._pendingAbortRequest._promise;var oe=!1;
1"erroring"===H&&(oe=!0,c=void 0);var le=k(function(Ae,Pe){r._pendingAbortRequest={_promise:void 0,_resolve:Ae,_reject:Pe,_reason:c,_wasAlreadyErroring:oe}});return r._pendingAbortRequest._promise=le,!1===oe&&ae(r,c),le}function je(r){var c=r._state;if("closed"===c||"errored"===c)return G(new TypeError("The stream (in "+c+" state) is not in the writable state and cannot be closed"));var H=k(function(le,Ae){r._closeRequest={_resolve:le,_reject:Ae}}),oe=r._writer;return void 0!==oe&&!0===r._backpressure&&"writable"===c&&pr(oe),function _e(r){De(r,"close",0),et(r)}(r._writableStreamController),H}function pe(r,c){"writable"!==r._state?ue(r):ae(r,c)}function ae(r,c){var H=r._writableStreamController;r._state="erroring",r._storedError=c;var oe=r._writer;void 0!==oe&&Wt(oe,c),!1===function lt(r){return!(void 0===r._inFlightWriteRequest&&void 0===r._inFlightCloseRequest)}(r)&&!0===H._started&&ue(r)}function ue(r){r._state="errored",r._writableStreamController[Le]();var c=r._storedError;if(r._writeRequests.forEach(function(le){le._reject(c)}),r._writeRequests=new I,void 0!==r._pendingAbortRequest){var H=r._pendingAbortRequest;if(r._pendingAbortRequest=void 0,!0===H._wasAlreadyErroring)return H._reject(c),void dt(r);B(r._writableStreamController[xe](H._reason),function(){H._resolve(),dt(r)},function(le){H._reject(le),dt(r)})}else dt(r)}function Ze(r){return!(void 0===r._closeRequest&&void 0===r._inFlightCloseRequest)}function dt(r){void 0!==r._closeRequest&&(r._closeRequest._reject(r._storedError),r._closeRequest=void 0);var c=r._writer;void 0!==c&&dr(c,r._storedError)}function yt(r,c){var H=r._writer;void 0!==H&&c!==r._backpressure&&(!0===c?function qr(r){qt(r)}(H):pr(H)),r._backpressure=c}var xt=function(){function r(c){if(!1===Me(c))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===Xe(c))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=c,c._writer=this;var H=c._state;if("writable"===H)!1===Ze(c)&&!0===c._backpressure?qt(this):kr(this),Zt(this);else if("erroring"===H)vr(this,c._storedError),Zt(this);else if("closed"===H)kr(this),function Jr(r){Zt(r),Tr(r)}(this);else{var oe=c._storedError;vr(this,oe),Pr(this,oe)}}return Object.defineProperty(r.prototype,"closed",{get:function(){return!1===ft(this)?G(Ct("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"desiredSize",{get:function(){if(!1===ft(this))throw Ct("desiredSize");if(void 0===this._ownerWritableStream)throw Gt("desiredSize");return function Z(r){var c=r._ownerWritableStream,H=c._state;return"errored"===H||"erroring"===H?null:"closed"===H?0:ot(c._writableStreamController)}(this)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ready",{get:function(){return!1===ft(this)?G(Ct("ready")):this._readyPromise},enumerable:!0,configurable:!0}),r.prototype.abort=function(c){return!1===ft(this)?G(Ct("abort")):void 0===this._ownerWritableStream?G(Gt("abort")):function wt(r,c){return Je(r._ownerWritableStream,c)}(this,c)},r.prototype.close=function(){if(!1===ft(this))return G(Ct("close"));var c=this._ownerWritableStream;return void 0===c?G(Gt("close")):!0===Ze(c)?G(new TypeError("Cannot close an already-closing stream")):Nt(this)},r.prototype.releaseLock=function(){if(!1===ft(this))throw Ct("releaseLock");void 0!==this._ownerWritableStream&&he(this)},r.prototype.write=function(c){return!1===ft(this)?G(Ct("write")):void 0===this._ownerWritableStream?G(Gt("write to")):fe(this,c)},r}();function ft(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_ownerWritableStream"))}function Nt(r){return je(r._ownerWritableStream)}function jt(r,c){"pending"===r._closedPromiseState?dr(r,c):function Zr(r,c){Pr(r,c)}(r,c)}function Wt(r,c){"pending"===r._readyPromiseState?Er(r,c):function _r(r,c){vr(r,c)}(r,c)}function he(r){var c=r._ownerWritableStream,H=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Wt(r,H),jt(r,H),c._writer=void 0,r._ownerWritableStream=void 0}function fe(r,c){var H=r._ownerWritableStream,oe=H._writableStreamController,le=function tt(r,c){try{return r._strategySizeAlgorithm(c)}catch(H){return ct(r,H),1}}(oe,c);if(H!==r._ownerWritableStream)return G(Gt("write to"));var Ae=H._state;if("errored"===Ae)return G(H._storedError);
1if(!0===Ze(H)||"closed"===Ae)return G(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===Ae)return G(H._storedError);var Pe=function se(r){return k(function(H,oe){r._writeRequests.push({_resolve:H,_reject:oe})})}(H);return function me(r,c,H){var oe={chunk:c};try{De(r,oe,H)}catch(Pe){return void ct(r,Pe)}var le=r._controlledWritableStream;!1===Ze(le)&&"writable"===le._state&&yt(le,Ot(r)),et(r)}(oe,c,le),Pe}var ge=function(){function r(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return r.prototype.error=function(c){if(!1===function be(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_controlledWritableStream"))}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&It(this,c)},r.prototype[xe]=function(c){var H=this._abortAlgorithm(c);return $e(this),H},r.prototype[Le]=function(){ye(this)},r}();function Ge(r,c,H,oe,le,Ae,Pe,Ie){c._controlledWritableStream=r,r._writableStreamController=c,c._queue=void 0,c._queueTotalSize=void 0,ye(c),c._started=!1,c._strategySizeAlgorithm=Ie,c._strategyHWM=Pe,c._writeAlgorithm=oe,c._closeAlgorithm=le,c._abortAlgorithm=Ae;var Ye=Ot(c);yt(r,Ye),B(M(H()),function(){c._started=!0,et(c)},function(nt){c._started=!0,pe(r,nt)})}function $e(r){r._writeAlgorithm=void 0,r._closeAlgorithm=void 0,r._abortAlgorithm=void 0,r._strategySizeAlgorithm=void 0}function ot(r){return r._strategyHWM-r._queueTotalSize}function et(r){var c=r._controlledWritableStream;if(!1!==r._started&&void 0===c._inFlightWriteRequest){if("erroring"===c._state)return void ue(c);if(0!==r._queue.length){var oe=function Re(r){return r._queue.peek().value}(r);"close"===oe?function Ut(r){var c=r._controlledWritableStream;(function pt(r){r._inFlightCloseRequest=r._closeRequest,r._closeRequest=void 0})(c),ze(r);var H=r._closeAlgorithm();$e(r),B(H,function(){!function Ve(r){r._inFlightCloseRequest._resolve(void 0),r._inFlightCloseRequest=void 0,"erroring"===r._state&&(r._storedError=void 0,void 0!==r._pendingAbortRequest&&(r._pendingAbortRequest._resolve(),r._pendingAbortRequest=void 0)),r._state="closed";var H=r._writer;void 0!==H&&Tr(H)}(c)},function(oe){!function Ke(r,c){r._inFlightCloseRequest._reject(c),r._inFlightCloseRequest=void 0,void 0!==r._pendingAbortRequest&&(r._pendingAbortRequest._reject(c),r._pendingAbortRequest=void 0),pe(r,c)}(c,oe)})}(r):function Qt(r,c){var H=r._controlledWritableStream;(function gt(r){r._inFlightWriteRequest=r._writeRequests.shift()})(H),B(r._writeAlgorithm(c),function(){!function we(r){r._inFlightWriteRequest._resolve(void 0),r._inFlightWriteRequest=void 0}(H);var le=H._state;if(ze(r),!1===Ze(H)&&"writable"===le){var Ae=Ot(r);yt(H,Ae)}et(r)},function(le){"writable"===H._state&&$e(r),function We(r,c){r._inFlightWriteRequest._reject(c),r._inFlightWriteRequest=void 0,pe(r,c)}(H,le)})}(r,oe.chunk)}}}function ct(r,c){"writable"===r._controlledWritableStream._state&&It(r,c)}function Ot(r){return ot(r)<=0}function It(r,c){var H=r._controlledWritableStream;$e(r),ae(H,c)}function Jt(r){return new TypeError("WritableStream.prototype."+r+" can only be used on a WritableStream")}function Ct(r){return new TypeError("WritableStreamDefaultWriter.prototype."+r+" can only be used on a WritableStreamDefaultWriter")}function Gt(r){return new TypeError("Cannot "+r+" a stream using a released writer")}function Zt(r){r._closedPromise=k(function(c,H){r._closedPromise_resolve=c,r._closedPromise_reject=H,r._closedPromiseState="pending"})}function Pr(r,c){Zt(r),dr(r,c)}function dr(r,c){j(r._closedPromise),r._closedPromise_reject(c),r._closedPromise_resolve=void 0,r._closedPromise_reject=void 0,r._closedPromiseState="rejected"}function Tr(r){r._closedPromise_resolve(void 0),r._closedPromise_resolve=void 0,r._closedPromise_reject=void 0,r._closedPromiseState="resolved"}function qt(r){r._readyPromise=k(function(c,H){r._readyPromise_resolve=c,r._readyPromise_reject=H}),r._readyPromiseState="pending"}function vr(r,c){qt(r),Er(r,c)}function kr(r){qt(r),pr(r)}function Er(r,c){j(r._readyPromise),r._readyPromise_reject(c),r._readyPromise_resolve=void 0,r._readyPromise_reject=void 0,r._readyPromiseState="rejected"}function pr(r){r._readyPromise_resolve(void 0),r._readyPromise_resolve=void 0,r._readyPromise_reject=void 0,r._readyPromiseState="fulfilled"}function xr(r){if("object"!=typeof r||null===r)return!1;try{return"boolean"==typeof r.aborted}catch{return!1}}var wr=typeof DOMException<"u"?DOMException:void 0;var rn=function en(r){if("function"!=typeof r&&"object"!=typeof r)return!1;try{return new r,!0}catch{return!1}}(wr)?wr:function tn(){var r=function(H,oe){this.message=H||"",this.name=oe||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return r.prototype=Object.create(Error.prototype),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0}),r}();function Or(r,c,H,oe,le,Ae){var Pe=W(r),Ie=Se(c);r._disturbed=!0;
vendor: 25,137 bytes, line 1
1var Ye=!1,qe=M(void 0);return k(function(rt,nt){var at;if(void 0!==Ae){if(at=function(){var Qe=new rn("Aborted","AbortError"),it=[];!1===oe&&it.push(function(){return"writable"===c._state?Je(c,Qe):M(void 0)}),!1===le&&it.push(function(){return"readable"===r._state?Tt(r,Qe):M(void 0)}),Rt(function(){return Promise.all(it.map(function(ht){return ht()}))},!0,Qe)},!0===Ae.aborted)return void at();Ae.addEventListener("abort",at)}if(mt(r,Pe._closedPromise,function(Qe){!1===oe?Rt(function(){return Je(c,Qe)},!0,Qe):Mt(!0,Qe)}),mt(c,Ie._closedPromise,function(Qe){!1===le?Rt(function(){return Tt(r,Qe)},!0,Qe):Mt(!0,Qe)}),function Et(Qe,it,ht){"closed"===Qe._state?ht():K(it,ht)}(r,Pe._closedPromise,function(){!1===H?Rt(function(){return function st(r){var c=r._ownerWritableStream,H=c._state;return!0===Ze(c)||"closed"===H?M(void 0):"errored"===H?G(c._storedError):Nt(r)}(Ie)}):Mt()}),!0===Ze(c)||"closed"===c._state){var At=new TypeError("the destination writable stream closed before all data could be piped to it");!1===le?Rt(function(){return Tt(r,At)},!0,At):Mt(!0,At)}function ut(){var Qe=qe;return P(qe,function(){return Qe!==qe?ut():void 0})}function mt(Qe,it,ht){"errored"===Qe._state?ht(Qe._storedError):te(it,ht)}function Rt(Qe,it,ht){function hr(){B(Qe(),function(){return Dt(it,ht)},function(Gn){return Dt(!0,Gn)})}!0!==Ye&&(Ye=!0,"writable"===c._state&&!1===Ze(c)?K(ut(),hr):hr())}function Mt(Qe,it){!0!==Ye&&(Ye=!0,"writable"===c._state&&!1===Ze(c)?K(ut(),function(){return Dt(Qe,it)}):Dt(Qe,it))}function Dt(Qe,it){he(Ie),i(Pe),void 0!==Ae&&Ae.removeEventListener("abort",at),Qe?nt(it):rt(void 0)}j(function $t(){return k(function(Qe,it){!function ht(hr){hr?Qe():P(function Kt(){return!0===Ye?M(!0):P(Ie._readyPromise,function(){return P(ve(Pe),function(Qe){return!0===Qe.done||(qe=P(fe(Ie,Qe.value),void 0,l),!1)})})}(),ht,it)}(!1)})}())})}var Ir=function(){function r(){throw new TypeError}return Object.defineProperty(r.prototype,"desiredSize",{get:function(){if(!1===_t(this))throw rr("desiredSize");return gr(this)},enumerable:!0,configurable:!0}),r.prototype.close=function(){if(!1===_t(this))throw rr("close");if(!1===Ft(this))throw new TypeError("The stream is not in a state that permits close");zt(this)},r.prototype.enqueue=function(c){if(!1===_t(this))throw rr("enqueue");if(!1===Ft(this))throw new TypeError("The stream is not in a state that permits enqueue");return tr(this,c)},r.prototype.error=function(c){if(!1===_t(this))throw rr("error");bt(this,c)},r.prototype[q]=function(c){ye(this);var H=this._cancelAlgorithm(c);return er(this),H},r.prototype[L]=function(){var c=this._controlledReadableStream;if(this._queue.length>0){var H=ze(this);return!0===this._closeRequested&&0===this._queue.length?(er(this),Vt(c)):Bt(this),M(R(H,!1,c._reader._forAuthorCode))}var oe=A(c);return Bt(this),oe},r}();function _t(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_controlledReadableStream"))}function Bt(r){if(!1!==Fr(r)){if(!0===r._pulling)return void(r._pullAgain=!0);r._pulling=!0,B(r._pullAlgorithm(),function(){r._pulling=!1,!0===r._pullAgain&&(r._pullAgain=!1,Bt(r))},function(oe){bt(r,oe)})}}function Fr(r){var c=r._controlledReadableStream;return!1!==Ft(r)&&!1!==r._started&&(!0===St(c)&&N(c)>0||gr(r)>0)}function er(r){r._pullAlgorithm=void 0,r._cancelAlgorithm=void 0,r._strategySizeAlgorithm=void 0}function zt(r){var c=r._controlledReadableStream;r._closeRequested=!0,0===r._queue.length&&(er(r),Vt(c))}function tr(r,c){var H=r._controlledReadableStream;if(!0===St(H)&&N(H)>0)F(H,c,!1);else{var oe=void 0;try{oe=r._strategySizeAlgorithm(c)}catch(le){throw bt(r,le),le}try{De(r,c,oe)}catch(le){throw bt(r,le),le}}Bt(r)}function bt(r,c){var H=r._controlledReadableStream;"readable"===H._state&&(ye(r),er(r),Yr(H,c))}function gr(r){var H=r._controlledReadableStream._state;return"errored"===H?null:"closed"===H?0:r._strategyHWM-r._queueTotalSize}function Ft(r){return!1===r._closeRequested&&"readable"===r._controlledReadableStream._state}function Lr(r,c,H,oe,le,Ae,Pe){c._controlledReadableStream=r,c._queue=void 0,c._queueTotalSize=void 0,ye(c),c._started=!1,c._closeRequested=!1,c._pullAgain=!1,c._pulling=!1,c._strategySizeAlgorithm=Pe,c._strategyHWM=Ae,c._pullAlgorithm=oe,c._cancelAlgorithm=le,r._readableStreamController=c,B(M(H()),function(){c._started=!0,Bt(c)},function(Ye){bt(c,Ye)})}function rr(r){return new TypeError("ReadableStreamDefaultController.prototype."+r+" can only be used on a ReadableStreamDefaultController")}var sn=Number.isInteger||function(r){return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r},un=function(){function r(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(r.prototype,"view",{get:function(){if(!1===mr(this))throw Ar("view");return this._view},enumerable:!0,configurable:!0}),r.prototype.respond=function(c){if(!1===mr(this))throw Ar("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");(function mn(r,c){if(!1===D(c=Number(c)))throw new RangeError("bytesWritten must be a finite");Gr(r,c)})(this._associatedReadableByteStreamController,c)},r.prototype.respondWithNewView=function(c){if(!1===mr(this))throw Ar("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(c))throw new TypeError("You can only respond with array buffer views");(function yn(r,c){var H=r._pendingPullIntos.peek();if(H.byteOffset+H.bytesFilled!==c.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(H.byteLength!==c.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");H.buffer=c.buffer,Gr(r,c.byteLength)})(this._associatedReadableByteStreamController,c)},r}(),ln=function(){function r(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(r.prototype,"byobRequest",{get:function(){if(!1===Lt(this))throw Xt("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var c=this._pendingPullIntos.peek(),H=new Uint8Array(c.buffer,c.byteOffset+c.bytesFilled,c.byteLength-c.bytesFilled),oe=Object.create(un.prototype);(function An(r,c,H){r._associatedReadableByteStreamController=c,r._view=H})(oe,this,H),this._byobRequest=oe}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"desiredSize",{get:function(){if(!1===Lt(this))throw Xt("desiredSize");return Br(this)},enumerable:!0,configurable:!0}),r.prototype.close=function(){if(!1===Lt(this))throw Xt("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var c=this._controlledReadableByteStream._state;if("readable"!==c)throw new TypeError("The stream (in "+c+" state) is not in the readable state and cannot be closed");!function pn(r){var c=r._controlledReadableByteStream;if(r._queueTotalSize>0)r._closeRequested=!0;else{if(r._pendingPullIntos.length>0&&r._pendingPullIntos.peek().bytesFilled>0){var oe=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ht(r,oe),oe}ar(r),Vt(c)}}(this)},r.prototype.enqueue=function(c){if(!1===Lt(this))throw Xt("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var H=this._controlledReadableByteStream._state;if("readable"!==H)throw new TypeError("The stream (in "+H+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(c))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");(function gn(r,c){var H=r._controlledReadableByteStream,le=c.byteOffset,Ae=c.byteLength,Pe=c.buffer;!0===re(H)?0===N(H)?nr(r,Pe,le,Ae):F(H,new Uint8Array(Pe,le,Ae),!1):!0===Rr(H)?(nr(r,Pe,le,Ae),Ur(r)):nr(r,Pe,le,Ae),Pt(r)})(this,c)},r.prototype.error=function(c){if(!1===Lt(this))throw Xt("error");Ht(this,c)},r.prototype[q]=function(c){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),ye(this);var oe=this._cancelAlgorithm(c);return ar(this),oe},r.prototype[L]=function(){var c=this._controlledReadableByteStream;if(this._queueTotalSize>0){var H=this._queue.shift();this._queueTotalSize-=H.byteLength,Wr(this);var oe=void 0;try{oe=new Uint8Array(H.buffer,H.byteOffset,H.byteLength)}catch(Ye){return G(Ye)}return M(R(oe,!1,c._reader._forAuthorCode))}var le=this._autoAllocateChunkSize;if(void 0!==le){var Ae=void 0;try{Ae=new ArrayBuffer(le)}catch(Ye){return G(Ye)}var Pe={buffer:Ae,byteOffset:0,byteLength:le,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Pe)}var Ie=A(c);return Pt(this),Ie},r}();function Lt(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_controlledReadableByteStream"))}function mr(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_associatedReadableByteStreamController"))}function Pt(r){if(!1!==function vn(r){var c=r._controlledReadableByteStream;return"readable"===c._state&&!0!==r._closeRequested&&!1!==r._started&&(!0===re(c)&&N(c)>0||!0===Rr(c)&&Hr(c)>0||Br(r)>0)}(r)){if(!0===r._pulling)return void(r._pullAgain=!0);r._pulling=!0,B(r._pullAlgorithm(),function(){r._pulling=!1,!0===r._pullAgain&&(r._pullAgain=!1,Pt(r))},function(oe){Ht(r,oe)})}}function yr(r,c){var H=!1;"closed"===r._state&&(H=!0);var oe=Mr(c);"default"===c.readerType?F(r,oe,H):function Cn(r,c,H){var oe=r._reader;oe._readIntoRequests.shift()._resolve(R(c,H,oe._forAuthorCode))}(r,oe,H)}function Mr(r){return new r.ctor(r.buffer,r.byteOffset,r.bytesFilled/r.elementSize)}function nr(r,c,H,oe){r._queue.push({buffer:c,byteOffset:H,byteLength:oe}),r._queueTotalSize+=oe}function Dr(r,c){var H=c.elementSize,oe=c.bytesFilled-c.bytesFilled%H,le=Math.min(r._queueTotalSize,c.byteLength-c.bytesFilled),Ae=c.bytesFilled+le,Pe=Ae-Ae%H,Ie=le,Ye=!1;Pe>oe&&(Ie=Pe-c.bytesFilled,Ye=!0);for(var qe=r._queue;Ie>0;){var rt=qe.peek(),nt=Math.min(Ie,rt.byteLength);w(c.buffer,c.byteOffset+c.bytesFilled,rt.buffer,rt.byteOffset,nt),rt.byteLength===nt?qe.shift():(rt.byteOffset+=nt,rt.byteLength-=nt),r._queueTotalSize-=nt,Nr(r,nt,c),Ie-=nt}return Ye}function Nr(r,c,H){br(r),H.bytesFilled+=c}function Wr(r){0===r._queueTotalSize&&!0===r._closeRequested?(ar(r),Vt(r._controlledReadableByteStream)):Pt(r)}function br(r){void 0!==r._byobRequest&&(r._byobRequest._associatedReadableByteStreamController=void 0,r._byobRequest._view=void 0,r._byobRequest=void 0)}function Ur(r){for(;r._pendingPullIntos.length>0;){if(0===r._queueTotalSize)return;var c=r._pendingPullIntos.peek();!0===Dr(r,c)&&(Sr(r),yr(r._controlledReadableByteStream,c))}}function Gr(r,c){var H=r._pendingPullIntos.peek();if("closed"===r._controlledReadableByteStream._state){if(0!==c)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function hn(r,c){c.buffer=c.buffer;var H=r._controlledReadableByteStream;if(!0===Rr(H))for(;Hr(H)>0;)yr(H,Sr(r))}(r,H)}else!function dn(r,c,H){if(H.bytesFilled+c>H.byteLength)throw new RangeError("bytesWritten out of range");if(Nr(r,c,H),!(H.bytesFilled<H.elementSize)){Sr(r);var oe=H.bytesFilled%H.elementSize;if(oe>0){var le=H.byteOffset+H.bytesFilled,Ae=H.buffer.slice(le-oe,le);nr(r,Ae,0,Ae.byteLength)}H.buffer=H.buffer,H.bytesFilled-=oe,yr(r._controlledReadableByteStream,H),Ur(r)}}(r,c,H);Pt(r)}function Sr(r){var c=r._pendingPullIntos.shift();return br(r),c}function ar(r){r._pullAlgorithm=void 0,r._cancelAlgorithm=void 0}function Ht(r,c){var H=r._controlledReadableByteStream;"readable"===H._state&&(function cn(r){br(r),r._pendingPullIntos=new I}(r),ye(r),ar(r),Yr(H,c))}function Br(r){var H=r._controlledReadableByteStream._state;return"errored"===H?null:"closed"===H?0:r._strategyHWM-r._queueTotalSize}function Sn(r,c,H){var oe=Object.create(ln.prototype);var Ae=V(c,"pull",0,[oe]),Pe=V(c,"cancel",1,[]),Ie=c.autoAllocateChunkSize;if(void 0!==Ie&&(Ie=Number(Ie),!1===sn(Ie)||Ie<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function bn(r,c,H,oe,le,Ae,Pe){c._controlledReadableByteStream=r,c._pullAgain=!1,c._pulling=!1,c._byobRequest=void 0,c._queue=c._queueTotalSize=void 0,ye(c),c._closeRequested=!1,c._started=!1,c._strategyHWM=S(Ae),c._pullAlgorithm=oe,c._cancelAlgorithm=le,c._autoAllocateChunkSize=Pe,c._pendingPullIntos=new I,r._readableStreamController=c,B(M(H()),function(){c._started=!0,Pt(c)},function(Ye){Ht(c,Ye)})}(r,oe,function le(){return ee(c,"start",[oe])},Ae,Pe,H,Ie)}function Ar(r){return new TypeError("ReadableStreamBYOBRequest.prototype."+r+" can only be used on a ReadableStreamBYOBRequest")}function Xt(r){return new TypeError("ReadableByteStreamController.prototype."+r+" can only be used on a ReadableByteStreamController")}function zr(r){return k(function(H,oe){r._reader._readIntoRequests.push({_resolve:H,_reject:oe})})}function Hr(r){return r._reader._readIntoRequests.length}function Rr(r){var c=r._reader;return!(void 0===c||!Yt(c))}var Pn=function(){function r(c){if(!vt(c))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===Lt(c._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(St(c))throw new TypeError("This stream has already been locked for exclusive reading by another reader");C(this,c),this._readIntoRequests=new I}return Object.defineProperty(r.prototype,"closed",{get:function(){return Yt(this)?this._closedPromise:G(ir("closed"))},enumerable:!0,configurable:!0}),r.prototype.cancel=function(c){return Yt(this)?void 0===this._ownerReadableStream?G(s("cancel")):p(this,c):G(ir("cancel"))},r.prototype.read=function(c){return Yt(this)?void 0===this._ownerReadableStream?G(s("read from")):ArrayBuffer.isView(c)?0===c.byteLength?G(new TypeError("view must have non-zero byteLength")):function Tn(r,c){var H=r._ownerReadableStream;return H._disturbed=!0,"errored"===H._state?G(H._storedError):function fn(r,c){var H=r._controlledReadableByteStream,oe=1;c.constructor!==DataView&&(oe=c.constructor.BYTES_PER_ELEMENT);var le=c.constructor,Pe={buffer:c.buffer,byteOffset:c.byteOffset,byteLength:c.byteLength,bytesFilled:0,elementSize:oe,ctor:le,readerType:"byob"};if(r._pendingPullIntos.length>0)return r._pendingPullIntos.push(Pe),zr(H);if("closed"===H._state)return M(R(new le(Pe.buffer,Pe.byteOffset,0),!0,H._reader._forAuthorCode));if(r._queueTotalSize>0){if(!0===Dr(r,Pe)){var Ye=Mr(Pe);return Wr(r),M(R(Ye,!1,H._reader._forAuthorCode))}if(!0===r._closeRequested){var qe=new TypeError("Insufficient bytes to fill elements in the given buffer");return Ht(r,qe),G(qe)}}r._pendingPullIntos.push(Pe);var rt=zr(H);return Pt(r),rt}(H._readableStreamController,c)}(this,c):G(new TypeError("view must be an array buffer view")):G(ir("read"))},r.prototype.releaseLock=function(){if(!Yt(this))throw ir("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");i(this)}},r}();function Yt(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_readIntoRequests"))}function ir(r){return new TypeError("ReadableStreamBYOBReader.prototype."+r+" can only be used on a ReadableStreamBYOBReader")}var or=function(){function r(c,H){void 0===c&&(c={}),void 0===H&&(H={}),Xr(this);var oe=H.size,le=H.highWaterMark,Ae=c.type;if("bytes"===String(Ae)){if(void 0!==oe)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===le&&(le=0),Sn(this,c,le=S(le))}else{if(void 0!==Ae)throw new RangeError("Invalid type is specified");var Ie=u(oe);void 0===le&&(le=1),function an(r,c,H,oe){var le=Object.create(Ir.prototype),Pe=V(c,"pull",0,[le]),Ie=V(c,"cancel",1,[]);Lr(r,le,function Ae(){return ee(c,"start",[le])},Pe,Ie,H,oe)}(this,c,le=S(le),Ie)}}return Object.defineProperty(r.prototype,"locked",{get:function(){if(!1===vt(this))throw kt("locked");return St(this)},enumerable:!0,configurable:!0}),r.prototype.cancel=function(c){return!1===vt(this)?G(kt("cancel")):!0===St(this)?G(new TypeError("Cannot cancel a stream that already has a reader")):Tt(this,c)},r.prototype.getReader=function(c){var H=(void 0===c?{}:c).mode;if(!1===vt(this))throw kt("getReader");if(void 0===H)return W(this,!0);if("byob"===(H=String(H)))return function Rn(r,c){void 0===c&&(c=!1);var H=new Pn(r);return H._forAuthorCode=c,H}(this,!0);throw new RangeError("Invalid mode is specified")},r.prototype.pipeThrough=function(c,H){var oe=c.writable,le=c.readable,Ae=void 0===H?{}:H,Pe=Ae.preventClose,Ie=Ae.preventAbort,Ye=Ae.preventCancel,qe=Ae.signal;if(!1===vt(this))throw kt("pipeThrough");if(!1===Me(oe))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===vt(le))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(Pe=Boolean(Pe),Ie=Boolean(Ie),Ye=Boolean(Ye),void 0!==qe&&!xr(qe))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===St(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===Xe(oe))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return j(Or(this,oe,Pe,Ie,Ye,qe)),le},r.prototype.pipeTo=function(c,H){var oe=void 0===H?{}:H,le=oe.preventClose,Ae=oe.preventAbort,Pe=oe.preventCancel,Ie=oe.signal;return!1===vt(this)?G(kt("pipeTo")):!1===Me(c)?G(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(le=Boolean(le),Ae=Boolean(Ae),Pe=Boolean(Pe),void 0===Ie||xr(Ie)?!0===St(this)?G(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===Xe(c)?G(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Or(this,c,le,Ae,Pe,Ie):G(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},r.prototype.tee=function(){if(!1===vt(this))throw kt("tee");return O(function on(r,c){var Pe,Ie,Ye,qe,rt,H=W(r),oe=!1,le=!1,Ae=!1,nt=k(function(ut){rt=ut});function at(){return!0===oe||(oe=!0,j(ne(ve(H),function(mt){if(oe=!1,!0===mt.done)return!1===le&&zt(Ye._readableStreamController),void(!1===Ae&&zt(qe._readableStreamController));var Rt=mt.value,Dt=Rt;!1===le&&tr(Ye._readableStreamController,Rt),!1===Ae&&tr(qe._readableStreamController,Dt)}))),M(void 0)}function At(){}return Ye=Cr(At,at,function $t(ut){if(le=!0,Pe=ut,!0===Ae){var mt=O([Pe,Ie]),Et=Tt(r,mt);rt(Et)}return nt}),qe=Cr(At,at,function Kt(ut){if(Ae=!0,Ie=ut,!0===le){var mt=O([Pe,Ie]),Et=Tt(r,mt);rt(Et)}return nt}),te(H._closedPromise,function(ut){bt(Ye._readableStreamController,ut),bt(qe._readableStreamController,ut)}),[Ye,qe]}(this))},r.prototype.getIterator=function(c){var H=(void 0===c?{}:c).preventCancel,oe=void 0!==H&&H;if(!1===vt(this))throw kt("getIterator");return function He(r,c){void 0===c&&(c=!1);var H=W(r),oe=Object.create(Ue);return oe._asyncIteratorReader=H,oe._preventCancel=Boolean(c),oe}(this,oe)},r}();function Cr(r,c,H,oe,le){void 0===oe&&(oe=1),void 0===le&&(le=function(){return 1});var Ae=Object.create(or.prototype);return Xr(Ae),Lr(Ae,Object.create(Ir.prototype),r,c,H,oe,le),Ae}function Xr(r){r._state="readable",r._reader=void 0,r._storedError=void 0,r._disturbed=!1}function vt(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_readableStreamController"))}function St(r){return void 0!==r._reader}function Tt(r,c){return r._disturbed=!0,"closed"===r._state?M(void 0):"errored"===r._state?G(r._storedError):(Vt(r),ne(r._readableStreamController[q](c),l))}function Vt(r){r._state="closed";var c=r._reader;void 0!==c&&(ce(c)&&(c._readRequests.forEach(function(H){H._resolve(R(void 0,!0,c._forAuthorCode))}),c._readRequests=new I),$(c))}function Yr(r,c){r._state="errored",r._storedError=c;var H=r._reader;void 0!==H&&(ce(H)?(H._readRequests.forEach(function(oe){oe._reject(c)}),H._readRequests=new I):(H._readIntoRequests.forEach(function(oe){oe._reject(c)}),H._readIntoRequests=new I),_(H,c))}function kt(r){return new TypeError("ReadableStream.prototype."+r+" can only be used on a ReadableStream")}"symbol"==typeof a.asyncIterator&&Object.defineProperty(or.prototype,a.asyncIterator,{value:or.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var kn=function(){function r(c){this.highWaterMark=c.highWaterMark}return r.prototype.size=function(c){return c.byteLength},r}(),En=function(){function r(c){this.highWaterMark=c.highWaterMark}return r.prototype.size=function(){return 1},r}(),xn=function(){function r(c,H,oe){void 0===c&&(c={}),void 0===H&&(H={}),void 0===oe&&(oe={});var le=H.size,Ae=H.highWaterMark,Pe=oe.size,Ie=oe.highWaterMark;if(void 0!==c.writableType)throw new RangeError("Invalid writable type specified");var qe=u(le);if(void 0===Ae&&(Ae=1),Ae=S(Ae),void 0!==c.readableType)throw new RangeError("Invalid readable type specified");var at,nt=u(Pe);void 0===Ie&&(Ie=0),Ie=S(Ie),function wn(r,c,H,oe,le,Ae){function Pe(){return c}function Ie(at){return function Dn(r,c){var H=r._transformStreamController;return!0===r._backpressure?ne(r._backpressureChangePromise,function(){var le=r._writable;if("erroring"===le._state)throw le._storedError;return jr(H,c)}):jr(H,c)}(r,at)}function Ye(at){return function Nn(r,c){return sr(r,c),M(void 0)}(r,at)}function qe(){return function Wn(r){var c=r._readable,H=r._transformStreamController,oe=H._flushAlgorithm();return $r(H),ne(oe,function(){if("errored"===c._state)throw c._storedError;var le=c._readableStreamController;!0===Ft(le)&&zt(le)},function(le){throw sr(r,le),c._storedError})}(r)}function rt(){return function Un(r){return lr(r,!1),r._backpressureChangePromise}(r)}function nt(at){return ur(r,at),M(void 0)}r._writable=function ke(r,c,H,oe,le,Ae){void 0===le&&(le=1),void 0===Ae&&(Ae=function(){return 1});var Pe=Object.create(Ce.prototype);return Fe(Pe),Ge(Pe,Object.create(ge.prototype),r,c,H,oe,le,Ae),Pe}(Pe,Ie,qe,Ye,H,oe),r._readable=Cr(Pe,rt,nt,le,Ae),r._backpressure=void 0,r._backpressureChangePromise=void 0,r._backpressureChangePromise_resolve=void 0,lr(r,!0),r._transformStreamController=void 0}(this,k(function(At){at=At}),Ae,qe,Ie,nt),function Fn(r,c){var H=Object.create(On.prototype),oe=function(Pe){try{return Kr(H,Pe),M(void 0)}catch(Ie){return G(Ie)}},le=c.transform;if(void 0!==le){if("function"!=typeof le)throw new TypeError("transform is not a method");oe=function(Pe){return X(le,c,[Pe,H])}}var Ae=V(c,"flush",0,[H]);!function In(r,c,H,oe){c._controlledTransformStream=r,r._transformStreamController=c,c._transformAlgorithm=H,c._flushAlgorithm=oe}(r,H,oe,Ae)}(this,c);var Kt=ee(c,"start",[this._transformStreamController]);at(Kt)}return Object.defineProperty(r.prototype,"readable",{get:function(){if(!1===Vr(this))throw Qr("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"writable",{get:function(){if(!1===Vr(this))throw Qr("writable");return this._writable},enumerable:!0,configurable:!0}),r}();function Vr(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_transformStreamController"))}function sr(r,c){bt(r._readable._readableStreamController,c),ur(r,c)}function ur(r,c){$r(r._transformStreamController),ct(r._writable._writableStreamController,c),!0===r._backpressure&&lr(r,!1)}function lr(r,c){void 0!==r._backpressureChangePromise&&r._backpressureChangePromise_resolve(),r._backpressureChangePromise=k(function(H){r._backpressureChangePromise_resolve=H}),r._backpressure=c}var On=function(){function r(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(r.prototype,"desiredSize",{get:function(){if(!1===cr(this))throw fr("desiredSize");return gr(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0}),r.prototype.enqueue=function(c){if(!1===cr(this))throw fr("enqueue");Kr(this,c)},r.prototype.error=function(c){if(!1===cr(this))throw fr("error");!function Ln(r,c){sr(r._controlledTransformStream,c)}(this,c)},r.prototype.terminate=function(){if(!1===cr(this))throw fr("terminate");!function Mn(r){var c=r._controlledTransformStream,H=c._readable._readableStreamController;!0===Ft(H)&&zt(H),ur(c,new TypeError("TransformStream terminated"))}(this)},r}();function cr(r){return!(!E(r)||!Object.prototype.hasOwnProperty.call(r,"_controlledTransformStream"))}function $r(r){r._transformAlgorithm=void 0,r._flushAlgorithm=void 0}function Kr(r,c){var H=r._controlledTransformStream,oe=H._readable._readableStreamController;if(!1===Ft(oe))throw new TypeError("Readable side is not in a state that permits enqueue");try{tr(oe,c)}catch(Ae){throw ur(H,Ae),H._readable._storedError}(function nn(r){return!0!==Fr(r)})(oe)!==H._backpressure&&lr(H,!0)}function jr(r,c){return ne(r._transformAlgorithm(c),void 0,function(oe){throw sr(r._controlledTransformStream,oe),oe})}function fr(r){return new TypeError("TransformStreamDefaultController.prototype."+r
vendor: 4,170 bytes, line 1
1+" can only be used on a TransformStreamDefaultController")}function Qr(r){return new TypeError("TransformStream.prototype."+r+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=kn,t.CountQueuingStrategy=En,t.ReadableStream=or,t.TransformStream=xn,t.WritableStream=Ce,Object.defineProperty(t,"__esModule",{value:!0})}(o)},function(b,o,e){e(145),e(114),e(77),e(116);var t=e(43);b.exports=t.Map},function(b,o,e){"use strict";var t=e(146),a=e(150);b.exports=t("Map",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},a)},function(b,o,e){"use strict";var t=e(10),a=e(11),l=e(52),y=e(29),x=e(147),E=e(124),O=e(123),w=e(22),D=e(14),Y=e(97),U=e(85),V=e(149);b.exports=function(ee,X,T){var h=-1!==ee.indexOf("Map"),S=-1!==ee.indexOf("Weak"),u=h?"set":"add",v=a[ee],n=v&&v.prototype,d=v,g={},k=function(te){var ne=n[te];y(n,te,"add"==te?function(Q){return ne.call(this,0===Q?0:Q),this}:"delete"==te?function(j){return!(S&&!w(j))&&ne.call(this,0===j?0:j)}:"get"==te?function(Q){return S&&!w(Q)?void 0:ne.call(this,0===Q?0:Q)}:"has"==te?function(Q){return!(S&&!w(Q))&&ne.call(this,0===Q?0:Q)}:function(Q,I){return ne.call(this,0===Q?0:Q,I),this})};if(l(ee,"function"!=typeof v||!(S||n.forEach&&!D(function(){(new v).entries().next()}))))d=T.getConstructor(X,ee,h,u),x.REQUIRED=!0;else if(l(ee,!0)){var M=new d,G=M[u](S?{}:-0,1)!=M,P=D(function(){M.has(1)}),B=Y(function(te){new v(te)}),K=!S&&D(function(){for(var te=new v,ne=5;ne--;)te[u](ne,ne);return!te.has(-0)});B||((d=X(function(te,ne){O(te,d,ee);var j=V(new v,te,d);return null!=ne&&E(ne,j[u],j,h),j})).prototype=n,n.constructor=d),(P||K)&&(k("delete"),k("has"),h&&k("get")),(K||G)&&k(u),S&&n.clear&&delete n.clear}return g[ee]=d,t({global:!0,forced:d!=v},g),U(d,ee),S||T.setStrong(d,ee,h),d}},function(b,o,e){var t=e(39),a=e(22),l=e(23),y=e(27).f,x=e(38),E=e(148),O=x("meta"),w=0,D=Object.isExtensible||function(){return!0},Y=function(T){y(T,O,{value:{objectID:"O"+ ++w,weakData:{}}})},X=b.exports={REQUIRED:!1,fastKey:function(T,h){if(!a(T))return"symbol"==typeof T?T:("string"==typeof T?"S":"P")+T;if(!l(T,O)){if(!D(T))return"F";if(!h)return"E";Y(T)}return T[O].objectID},getWeakData:function(T,h){if(!l(T,O)){if(!D(T))return!0;if(!h)return!1;Y(T)}return T[O].weakData},onFreeze:function(T){return E&&X.REQUIRED&&D(T)&&!l(T,O)&&Y(T),T}};t[O]=!0},function(b,o,e){var t=e(14);b.exports=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(b,o,e){var t=e(22),a=e(87);b.exports=function(l,y,x){var E,O;return a&&"function"==typeof(E=y.constructor)&&E!==x&&t(O=E.prototype)&&O!==x.prototype&&a(l,O),l}},function(b,o,e){"use strict";var t=e(27).f,a=e(71),l=e(121),y=e(62),x=e(123),E=e(124),O=e(79),w=e(122),D=e(13),Y=e(147).fastKey,U=e(33),V=U.set,ee=U.getterFor;b.exports={getConstructor:function(X,T,h,S){var u=X(function(g,k){x(g,u,T),V(g,{type:T,index:a(null),first:void 0,last:void 0,size:0}),D||(g.size=0),null!=k&&E(k,g[S],g,h)}),v=ee(T),n=function(g,k,M){var B,K,G=v(g),P=d(g,k);return P?P.value=M:(G.last=P={index:K=Y(k,!0),key:k,value:M,previous:B=G.last,next:void 0,removed:!1},G.first||(G.first=P),B&&(B.next=P),D?G.size++:g.size++,"F"!==K&&(G.index[K]=P)),g},d=function(g,k){var P,M=v(g),G=Y(k);if("F"!==G)return M.index[G];for(P=M.first;P;P=P.next)if(P.key==k)return P};return l(u.prototype,{clear:function(){for(var M=v(this),G=M.index,P=M.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=void 0),delete G[P.index],P=P.next;M.first=M.last=void 0,D?M.size=0:this.size=0},delete:function(g){var k=this,M=v(k),G=d(k,g);if(G){var P=G.next,B=G.previous;delete M.index[G.index],G.removed=!0,B&&(B.next=P),P&&(P.previous=B),M.first==G&&(M.first=P),M.last==G&&(M.last=B),D?M.size--:k.size--}return!!G},forEach:function(k){for(var P,M=v(this),G=y(k,arguments.length>1?arguments[1]:void 0,3);P=P?P.next:M.first;)for(G(P.value,P.key,this);P&&P.removed;)P=P.previous},has:function(k){return!!d(this,k)}}),l(u.prototype,h?{get:function(k){var M=d(this,k);return M&&M.value},set:function(k,M){return n(this,0===k?0:k,M)}}:{add:function(k){return n(this,k=0===k?0:k,k)}}),D&&t(u.prototype,"size",{get:function(){return v(this).size}}
vendor: 4,546 bytes, line 1
1),u},setStrong:function(X,T,h){var S=T+" Iterator",u=ee(T),v=ee(S);O(X,T,function(n,d){V(this,{type:S,target:n,state:u(n),kind:d,last:void 0})},function(){for(var n=v(this),d=n.kind,g=n.last;g&&g.removed;)g=g.previous;return n.target&&(n.last=g=g?g.next:n.state.first)?"keys"==d?{value:g.key,done:!1}:"values"==d?{value:g.value,done:!1}:{value:[g.key,g.value],done:!1}:(n.target=void 0,{value:void 0,done:!0})},h?"entries":"values",!h,!0),w(T)}}},function(b,o,e){e(152),e(114),e(77),e(116);var t=e(43);b.exports=t.Set},function(b,o,e){"use strict";var t=e(146),a=e(150);b.exports=t("Set",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},a)},function(b,o,e){e(114),e(154),e(116);var t=e(43);b.exports=t.WeakMap},function(b,o,e){"use strict";var U,t=e(11),a=e(121),l=e(147),y=e(146),x=e(155),E=e(22),O=e(33).enforce,w=e(34),D=!t.ActiveXObject&&"ActiveXObject"in t,Y=Object.isExtensible,V=function(v){return function(){return v(this,arguments.length?arguments[0]:void 0)}},ee=b.exports=y("WeakMap",V,x);if(w&&D){U=x.getConstructor(V,"WeakMap",!0),l.REQUIRED=!0;var X=ee.prototype,T=X.delete,h=X.has,S=X.get,u=X.set;a(X,{delete:function(v){if(E(v)&&!Y(v)){var n=O(this);return n.frozen||(n.frozen=new U),T.call(this,v)||n.frozen.delete(v)}return T.call(this,v)},has:function(n){if(E(n)&&!Y(n)){var d=O(this);return d.frozen||(d.frozen=new U),h.call(this,n)||d.frozen.has(n)}return h.call(this,n)},get:function(n){if(E(n)&&!Y(n)){var d=O(this);return d.frozen||(d.frozen=new U),h.call(this,n)?S.call(this,n):d.frozen.get(n)}return S.call(this,n)},set:function(n,d){if(E(n)&&!Y(n)){var g=O(this);g.frozen||(g.frozen=new U),h.call(this,n)?u.call(this,n,d):g.frozen.set(n,d)}else u.call(this,n,d);return this}})}},function(b,o,e){"use strict";var t=e(121),a=e(147).getWeakData,l=e(28),y=e(22),x=e(123),E=e(124),O=e(156),w=e(23),D=e(33),Y=D.set,U=D.getterFor,V=O.find,ee=O.findIndex,X=0,T=function(u){return u.frozen||(u.frozen=new h)},h=function(){this.entries=[]},S=function(u,v){return V(u.entries,function(n){return n[0]===v})};h.prototype={get:function(u){var v=S(this,u);if(v)return v[1]},has:function(u){return!!S(this,u)},set:function(u,v){var n=S(this,u);n?n[1]=v:this.entries.push([u,v])},delete:function(u){var v=ee(this.entries,function(n){return n[0]===u});return~v&&this.entries.splice(v,1),!!~v}},b.exports={getConstructor:function(u,v,n,d){var g=u(function(G,P){x(G,g,v),Y(G,{type:v,id:X++,frozen:void 0}),null!=P&&E(P,G[d],G,n)}),k=U(v),M=function(G,P,B){var K=k(G),te=a(l(P),!0);return!0===te?T(K).set(P,B):te[K.id]=B,G};return t(g.prototype,{delete:function(G){var P=k(this);if(!y(G))return!1;var B=a(G);return!0===B?T(P).delete(G):B&&w(B,P.id)&&delete B[P.id]},has:function(P){var B=k(this);if(!y(P))return!1;var K=a(P);return!0===K?T(B).has(P):K&&w(K,B.id)}}),t(g.prototype,n?{get:function(P){var B=k(this);if(y(P)){var K=a(P);return!0===K?T(B).get(P):K?K[B.id]:void 0}},set:function(P,B){return M(this,P,B)}}:{add:function(P){return M(this,P,!0)}}),g}}},function(b,o,e){var t=e(62),a=e(18),l=e(83),y=e(47),x=e(157),E=[].push,O=function(w){var D=1==w,Y=2==w,U=3==w,V=4==w,ee=6==w,X=5==w||ee;return function(T,h,S,u){for(var P,B,v=l(T),n=a(v),d=t(h,S,3),g=y(n.length),k=0,M=u||x,G=D?M(T,g):Y?M(T,0):void 0;g>k;k++)if((X||k in n)&&(B=d(P=n[k],k,v),w))if(D)G[k]=B;else if(B)switch(w){case 3:return!0;case 5:return P;case 6:return k;case 2:E.call(G,P)}else if(V)return!1;return ee?-1:U||V?V:G}};b.exports={forEach:O(0),map:O(1),filter:O(2),some:O(3),every:O(4),find:O(5),findIndex:O(6)}},function(b,o,e){var t=e(22),a=e(158),y=e(57)("species");b.exports=function(x,E){var O;return a(x)&&("function"!=typeof(O=x.constructor)||O!==Array&&!a(O.prototype)?t(O)&&null===(O=O[y])&&(O=void 0):O=void 0),new(void 0===O?Array:O)(0===E?0:E)}},function(b,o,e){var t=e(19);b.exports=Array.isArray||function(l){return"Array"==t(l)}},function(b,o,e){e(114),e(160),e(116);var t=e(43);b.exports=t.WeakSet},function(b,o,e){"use strict";e(146)("WeakSet",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},e(155))},function(b,o,e){e(162);var t=e(61);b.exports=t("String","codePointAt")},function(b,o,e){"use strict";var t=e(10),a=e(78).codeAt;t({target:"String",proto:!0},{codePointAt:function(y){return a(this,y)}})},function(b,o,e){e(164);var t=e(43);b.exports=t.String.fromCodePoint},function(b,o,e){var t=e(10),a=e(49),l=String.fromCharCode,y=String.fromCodePoint;t({target:"String",stat:!0,forced:!!y&&1!=y.length},{fromCodePoint:function(O){for(var U,w=[],D=arguments.length,Y=0;D>Y;
1){if(U=+arguments[Y++],a(U,1114111)!==U)throw RangeError(U+" is not a valid code point");w.push(U<65536?l(U):l(55296+((U-=65536)>>10),U%1024+56320))}return w.join("")}})},function(b,o,e){e(166),e(114),e(168),e(172),e(173),e(174),e(175),e(176),e(177),e(178),e(179),e(180),e(181),e(182),e(183),e(184),e(185),e(186),e(187);var t=e(43);b.exports=t.Symbol},function(b,o,e){"use strict";var t=e(10),a=e(14),l=e(158),y=e(22),x=e(83),E=e(47),O=e(93),w=e(157),D=e(167),Y=e(57),U=e(133),V=Y("isConcatSpreadable"),ee=9007199254740991,X="Maximum allowed index exceeded",T=U>=51||!a(function(){var v=[];return v[V]=!1,v.concat()[0]!==v}),h=D("concat"),S=function(v){if(!y(v))return!1;var n=v[V];return void 0!==n?!!n:l(v)};t({target:"Array",proto:!0,forced:!T||!h},{concat:function(n){var M,G,P,B,K,d=x(this),g=w(d,0),k=0;for(M=-1,P=arguments.length;M<P;M++)if(S(K=-1===M?d:arguments[M])){if(k+(B=E(K.length))>ee)throw TypeError(X);for(G=0;G<B;G++,k++)G in K&&O(g,k,K[G])}else{if(k>=ee)throw TypeError(X);O(g,k++,K)}return g.length=k,g}})},function(b,o,e){var t=e(14),a=e(57),l=e(133),y=a("species");b.exports=function(x){return l>=51||!t(function(){var E=[];return(E.constructor={})[y]=function(){return{foo:1}},1!==E[x](Boolean).foo})}},function(b,o,e){"use strict";var t=e(10),a=e(11),l=e(42),y=e(37),x=e(13),E=e(58),O=e(59),w=e(14),D=e(23),Y=e(158),U=e(22),V=e(28),ee=e(83),X=e(17),T=e(21),h=e(16),S=e(71),u=e(73),v=e(44),n=e(169),d=e(51),g=e(12),k=e(27),M=e(15),G=e(26),P=e(29),B=e(36),K=e(35),te=e(39),ne=e(38),j=e(57),Q=e(170),I=e(171),R=e(85),C=e(33),p=e(156).forEach,i=K("hidden"),s="Symbol",f="prototype",m=j("toPrimitive"),z=C.set,_=C.getterFor(s),J=Object[f],$=a.Symbol,q=l("JSON","stringify"),L=g.f,W=k.f,A=n.f,F=M.f,N=B("symbols"),re=B("op-symbols"),ie=B("string-to-symbol-registry"),ce=B("symbol-to-string-registry"),ve=B("wks"),de=a.QObject,Te=!de||!de[f]||!de[f].findChild,Oe=x&&w(function(){return 7!=S(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a})?function(Ce,Se,ke){var Fe=L(J,Se);Fe&&delete J[Se],W(Ce,Se,ke),Fe&&Ce!==J&&W(J,Se,Fe)}:W,Ue=function(Ce,Se){var ke=N[Ce]=S($[f]);return z(ke,{type:s,tag:Ce,description:Se}),x||(ke.description=Se),ke},He=O?function(Ce){return"symbol"==typeof Ce}:function(Ce){return Object(Ce)instanceof $},Ne=function(Se,ke,Fe){Se===J&&Ne(re,ke,Fe),V(Se);var Me=T(ke,!0);return V(Fe),D(N,Me)?(Fe.enumerable?(D(Se,i)&&Se[i][Me]&&(Se[i][Me]=!1),Fe=S(Fe,{enumerable:h(0,!1)})):(D(Se,i)||W(Se,i,h(1,{})),Se[i][Me]=!0),Oe(Se,Me,Fe)):W(Se,Me,Fe)},Be=function(Se,ke){V(Se);var Fe=X(ke),Me=u(Fe).concat(xe(Fe));return p(Me,function(Xe){(!x||De.call(Fe,Xe))&&Ne(Se,Xe,Fe[Xe])}),Se},De=function(Se){var ke=T(Se,!0),Fe=F.call(this,ke);return!(this===J&&D(N,ke)&&!D(re,ke))&&(!(Fe||!D(this,ke)||!D(N,ke)||D(this,i)&&this[i][ke])||Fe)},Re=function(Se,ke){var Fe=X(Se),Me=T(ke,!0);if(Fe!==J||!D(N,Me)||D(re,Me)){var Xe=L(Fe,Me);return Xe&&D(N,Me)&&!(D(Fe,i)&&Fe[i][Me])&&(Xe.enumerable=!0),Xe}},ye=function(Se){var ke=A(X(Se)),Fe=[];return p(ke,function(Me){!D(N,Me)&&!D(te,Me)&&Fe.push(Me)}),Fe},xe=function(Se){var ke=Se===J,Fe=A(ke?re:X(Se)),Me=[];return p(Fe,function(Xe){D(N,Xe)&&(!ke||D(J,Xe))&&Me.push(N[Xe])}),Me};E||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor");var Se=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,ke=ne(Se),Fe=function(Me){this===J&&Fe.call(re,Me),D(this,i)&&D(this[i],ke)&&(this[i][ke]=!1),Oe(this,ke,h(1,Me))};return x&&Te&&Oe(J,ke,{configurable:!0,set:Fe}),Ue(ke,Se)},P($[f],"toString",function(){return _(this).tag}),P($,"withoutSetter",function(Ce){return Ue(ne(Ce),Ce)}),M.f=De,k.f=Ne,g.f=Re,v.f=n.f=ye,d.f=xe,Q.f=function(Ce){return Ue(j(Ce),Ce)},x&&(W($[f],"description",{configurable:!0,get:function(){return _(this).description}}),y||P(J,"propertyIsEnumerable",De,{unsafe:!0}))),t({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:$}),p(u(ve),function(Ce){I(Ce)}),t({target:s,stat:!0,forced:!E},{for:function(Ce){var Se=String(Ce);if(D(ie,Se))return ie[Se];var ke=$(Se);return ie[Se]=ke,ce[ke]=Se,ke},keyFor:function(Se){if(!He(Se))throw TypeError(Se+" is not a symbol");if(D(ce,Se))return ce[Se]},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),t({target:"Object",stat:!0,forced:!E,sham:!x},{create:function(Se,ke){return void 0===ke?S(Se):Be(S(Se),ke)},defineProperty:Ne,defineProperties:Be,getOwnPropertyDescriptor:Re}),t({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:ye,getOwnPropertySymbols:xe}),t({target:"Object",stat:!0,forced:w(function(){d.f(1)})},{getOwnPropertySymbols:function(Se){return d.f(ee(Se))}}),q&&t({target:"JSON",stat:!0,forced:!E||w(function(){var Ce=$();return"[null]"!=q([Ce])||"{}"!=q({a:Ce})||"{}"!=q(Object(Ce))})},{stringify:function(Se,ke,Fe){for(var Je,Me=[Se],Xe=1;arguments.length>Xe;)Me.push(arguments[Xe++]);if(Je=ke,(U(ke)||void 0!==Se)&&!He(Se))return Y(ke)||(ke=function(je,se){if("function"==typeof Je&&(se=Je.call(this,je,se)),!He(se))return se}),Me[1]=ke,q.apply(null,Me)}}),$[f][m]||G($[f],m,$[f].valueOf),R($,s),te[i]=!0},function(b,o,e){var t=e(17),a=e(44).f,l={}.toString,y="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];b.exports.f=function(O){return y&&"[object Window]"==l.call(O)?function(E){try{return a(E)}catch{return y.slice()}}(O):a(t(O))}},function(b,o,e){var t=e(57);o.f=t},function(b,o,e){var t=e(43),a=e(23),l=e(170),y=e(27).f;b.exports=function(x){var E=t.Symbol||(t.Symbol={});a(E,x)||y(E,x,{value:l.f(x)})}},function(b,o,e){e(171)("asyncIterator")},function(b,o,e){"use strict";var t=e(10),a=e(13),l=e(11),y=e(23),x=e(22),E=e(27).f,O=e(40),w=l.Symbol;if(a&&"function"==typeof w&&(!("description"in w.prototype)||void 0!==w().description)){var D={},Y=function(){var h=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),S=this instanceof Y?new w(h):void 0===h?w():w(h);return""===h&&(D[S]=!0),S};O(Y,w);var U=Y.prototype=w.prototype;U.constructor=Y;var V=U.toString,ee="Symbol(test)"==String(w("test")),X=/^Symbol\((.*)\)[^)]+$/;E(U,"description",{configurable:!0,get:function(){var h=x(this)?this.valueOf():this,S=V.call(h);if(y(D,h))return"";var u=ee?S.slice(7,-1):S.replace(X,"$1");return""===u?void 0:u}}),t({global:!0,forced:!0},{Symbol:Y})}},function(b,o,e){e(171)("hasInstance")},function(b,o,e){e(171)("isConcatSpreadable")},function(b,o,e){e(171)("iterator")},function(b,o,e){e(171)("match")},function(b,o,e){e(171)("matchAll")},function(b,o,e){e(171)("replace")},function(b,o,e){e(171)("search")},function(b,o,e){e(171)("species")},function(b,o,e){e(171)("split")},function(b,o,e){e(171)("toPrimitive")},function(b,o,e){e(171)("toStringTag")},function(b,o,e){e(171)("unscopables")}
1,function(b,o,e){e(85)(Math,"Math",!0)},function(b,o,e){var t=e(11);e(85)(t.JSON,"JSON",!0)},function(b,o,e){e(189);var t=e(61);b.exports=t("String","padStart")},function(b,o,e){"use strict";var t=e(10),a=e(190).start;t({target:"String",proto:!0,forced:e(192)},{padStart:function(x){return a(this,x,arguments.length>1?arguments[1]:void 0)}})},function(b,o,e){var t=e(47),a=e(191),l=e(20),y=Math.ceil,x=function(E){return function(O,w,D){var X,T,Y=String(l(O)),U=Y.length,V=void 0===D?" ":String(D),ee=t(w);return ee<=U||""==V?Y:((T=a.call(V,y((X=ee-U)/V.length))).length>X&&(T=T.slice(0,X)),E?Y+T:T+Y)}};b.exports={start:x(!1),end:x(!0)}},function(b,o,e){"use strict";var t=e(48),a=e(20);b.exports="".repeat||function(y){var x=String(a(this)),E="",O=t(y);if(O<0||O==1/0)throw RangeError("Wrong number of repetitions");for(;O>0;(O>>>=1)&&(x+=x))1&O&&(E+=x);return E}},function(b,o,e){var t=e(127);b.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(t)},function(b,o,e){e(194);var t=e(61);b.exports=t("String","padEnd")},function(b,o,e){"use strict";var t=e(10),a=e(190).end;t({target:"String",proto:!0,forced:e(192)},{padEnd:function(x){return a(this,x,arguments.length>1?arguments[1]:void 0)}})},function(b,o,e){e(196);var t=e(43);b.exports=t.Object.values},function(b,o,e){var t=e(10),a=e(197).values;t({target:"Object",stat:!0},{values:function(y){return a(y)}})},function(b,o,e){var t=e(13),a=e(73),l=e(17),y=e(15).f,x=function(E){return function(O){for(var ee,w=l(O),D=a(w),Y=D.length,U=0,V=[];Y>U;)ee=D[U++],(!t||y.call(w,ee))&&V.push(E?[ee,w[ee]]:w[ee]);return V}};b.exports={entries:x(!0),values:x(!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__(2)),_util=__w_pdfjs_require__(5),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(199),_api_compatibility=__w_pdfjs_require__(200),_canvas=__w_pdfjs_require__(201),_worker_options=__w_pdfjs_require__(203),_is_node=__w_pdfjs_require__(7),_message_handler=__w_pdfjs_require__(204),_metadata=__w_pdfjs_require__(205),_transport_stream=__w_pdfjs_require__(207),_webgl=__w_pdfjs_require__(208);function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function asyncGeneratorStep(b,o,e,t,a,l,y){try{var x=b[l](y),E=x.value}catch(O){return void e(O)}x.done?o(E):Promise.resolve(E).then(t,a)}function _asyncToGenerator(b){return function(){var o=this,e=arguments;return new Promise(function(t,a){var l=b.apply(o,e);function y(E){asyncGeneratorStep(l,t,a,y,x,"next",E)}function x(E){asyncGeneratorStep(l,t,a,y,x,"throw",E)}y(void 0)})}}function _toConsumableArray(b){return _arrayWithoutHoles(b)||_iterableToArray(b)||_unsupportedIterableToArray(b)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(b){if(typeof Symbol<"u"&&Symbol.iterator in Object(b))return Array.from(b)}function _arrayWithoutHoles(b){if(Array.isArray(b))return _arrayLikeToArray(b)}function _createForOfIteratorHelper(b,o){var e;if(typeof Symbol>"u"||null==b[Symbol.iterator]){if(Array.isArray(b)||(e=_unsupportedIterableToArray(b))||o&&b&&"number"==typeof b.length){e&&(b=e);var t=0,a=function(){};return{s:a,n:function(){return t>=b.length?{done:!0}:{done:!1,value:b[t++]}},e:function(O){throw O},f:a}}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 x,l=!0,y=!1;return{s:function(){e=b[Symbol.iterator]()},n:function(){var O=e.next();return l=O.done,O},e:function(O){y=!0,x=O},f:function(){try{!l&&null!=e.return&&e.return()}finally{if(y)throw x}}}}function _classCallCheck(b,o){if(!(b instanceof o))throw new TypeError("Cannot call a class as a function")}function _defineProperties(b,o){for(var e=0;e<o.length;e++){var t=o[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(b,t.key,t)}}function _createClass(b,o,e){return o&&_defineProperties(b.prototype,o),e&&_defineProperties(b,e),b}function _slicedToArray(b,o){return _arrayWithHoles(b)||_iterableToArrayLimit(b,o)||_unsupportedIterableToArray(b,o)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(b,o){if(b){if("string"==typeof b)return _arrayLikeToArray(b,o);var e=Object.prototype.toString.call(b).slice(8,-1);if("Object"===e&&b.constructor&&(e=b.constructor.name),"Map"===e||"Set"===e)return Array.from(b);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray(b,o)}}function _arrayLikeToArray(b,o){(null==o||o>b.length)&&(o=b.length);for(var e=0,t=new Array(o);e<o;e++)t[e]=b[e];return t}function _iterableToArrayLimit(b,o){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(b)){var e=[],t=!0,a=!1,l=void 0;try{for(var x,y=b[Symbol.iterator]();!(t=(x=y.next()).done)&&(e.push(x.value),!o||e.length!==o);t=!0);}catch(E){a=!0,l=E}finally{try{!t&&null!=y.return&&y.return()}finally{if(a)throw l}}return e}}function _arrayWithHoles(b){if(Array.isArray(b))return b}function _typeof(b){return(_typeof="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})(b)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(b){createPDFNetworkStream=b}function getDocument(b){var e,o=new PDFDocumentLoadingTask;if("string"==typeof b)e={url:b};else if((0,_util.isArrayBuffer)(b))e={data:b};else if(b instanceof PDFDataRangeTransport)e={range:b};else{if("object"!==_typeof(b))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!b.url&&!b.data&&!b.range)throw new Error("Invalid parameter object: need either .data, .range or .url");e=b}var t=Object.create(null),a=null,l=null;for(var y in e)if("url"===y&&typeof window<"u")t[y]=new URL(e[y],window.location).href;else if("range"!==y)if("worker"!==y)if("data"!==y||e[y]instanceof Uint8Array)t[y]=e[y];else{var x=e[y];if("string"==typeof x)t[y]=(0,_util.stringToBytes)(x);else if("object"!==_typeof(x)||null===x||isNaN(x.length)){if(!(0,_util.isArrayBuffer)(x))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");t[y]=new Uint8Array(x)}else t[y]=new Uint8Array(x)}else l=e[y];else a=e[y];if(t.rangeChunkSize=t.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,t.CMapReaderFactory=t.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,t.ignoreErrors=!0!==t.stopAtErrors,t.fontExtraProperties=!0===t.fontExtraProperties,t.pdfBug=!0===t.pdfBug,Number.isInteger(t.maxImageSize)||(t.maxImageSize=-1),"boolean"!=typeof t.isEvalSupported&&(t.isEvalSupported=!0),"boolean"!=typeof t.disableFontFace&&(t.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof t.disableRange&&(t.disableRange=!1),"boolean"!=typeof t.disableStream&&(t.disableStream=!1),"boolean"!=typeof t.disableAutoFetch&&(t.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(t.verbosity),!l){var E={verbosity:t.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};l=E.port?PDFWorker.fromPort(E):new PDFWorker(E),o._worker=l}var O=o.docId;return l.promise.then(function(){if(o.destroyed)throw new Error("Loading aborted");var w=_fetchDocument(l,t,a,O),D=new Promise(function(Y){var U;a?U=new _transport_stream.PDFDataTransportStream({length:t.length,initialData:t.initialData,progressiveDone:t.progressiveDone,disableRange:t.disableRange,disableStream:t.disableStream},a):t.data||(U=createPDFNetworkStream({url:t.url,length:t.length,httpHeaders:t.httpHeaders,withCredentials:t.withCredentials,rangeChunkSize:t.rangeChunkSize,disableRange:t.disableRange,disableStream:t.disableStream})),Y(U)});return Promise.all([w,D]).then(function(Y){var U=_slicedToArray(Y,2),V=U[0],ee=U[1];if(o.destroyed)throw new Error("Loading aborted");var X=new _message_handler.MessageHandler(O,V,l.port);X.postMessageTransfers=l.postMessageTransfers;var T=new WorkerTransport(X,o,ee,t);o._transport=T,X.send("Ready",null)})}).catch(o._capability.reject),o}function _fetchDocument(b,o,e,t){return b.destroyed?Promise.reject(new Error("Worker was destroyed")):(e&&(o.length=e.length,o.initialData=e.initialData,o.progressiveDone=e.progressiveDone),b.messageHandler.sendWithProm
1ise("GetDocRequest",{docId:t,apiVersion:"2.5.207",source:{data:o.data,url:o.url,password:o.password,disableAutoFetch:o.disableAutoFetch,rangeChunkSize:o.rangeChunkSize,length:o.length},maxImageSize:o.maxImageSize,disableFontFace:o.disableFontFace,postMessageTransfers:b.postMessageTransfers,docBaseUrl:o.docBaseUrl,ignoreErrors:o.ignoreErrors,isEvalSupported:o.isEvalSupported,fontExtraProperties:o.fontExtraProperties}).then(function(a){if(b.destroyed)throw new Error("Worker was destroyed");return a}))}var PDFDocumentLoadingTask=(o=0,function(){function t(){_classCallCheck(this,t),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+o++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(t,[{key:"destroy",value:function(){var l=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){l._transport=null,l._worker&&(l._worker.destroy(),l._worker=null)})}},{key:"promise",get:function(){return this._capability.promise}}]),t}()),PDFDataRangeTransport=function(){function b(o,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,b),this.length=o,this.initialData=e,this.progressiveDone=t,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(b,[{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 l,a=_createForOfIteratorHelper(this._rangeListeners);try{for(a.s();!(l=a.n()).done;)(0,l.value)(e,t)}catch(x){a.e(x)}finally{a.f()}}},{key:"onDataProgress",value:function(e,t){var a=this;this._readyCapability.promise.then(function(){var y,l=_createForOfIteratorHelper(a._progressListeners);try{for(l.s();!(y=l.n()).done;)(0,y.value)(e,t)}catch(E){l.e(E)}finally{l.f()}})}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then(function(){var l,a=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(a.s();!(l=a.n()).done;)(0,l.value)(e)}catch(x){a.e(x)}finally{a.f()}})}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then(function(){var a,t=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(t.s();!(a=t.n()).done;)(0,a.value)()}catch(y){t.e(y)}finally{t.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(){}}]),b}(),o;exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function b(o,e){_classCallCheck(this,b),this._pdfInfo=o,this._transport=e}return _createClass(b,[{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}}]),b}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function b(o,e,t){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,b),this._pageIndex=o,this._pageInfo=e,this._transport=t,this._stats=a?new _display_utils.StatTimer:null,this._pdfBug=a,this.commonObjs=t.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}return _createClass(b,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,a=e.rotation,l=void 0===a?this.rotate:a,y=e.offsetX,x=void 0===y?0:y,E=e.offsetY,O=void 0===E?0:E,w=e.dontFlip,D=void 0!==w&&w;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:l,offsetX:x,offsetY:O,dontFlip:D})}},{key:"getAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intent,a=void 0===t?null:t;
1return(!this.annotationsPromise||this.annotationsIntent!==a)&&(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,a),this.annotationsIntent=a),this.annotationsPromise}},{key:"render",value:function(e){var t=this,a=e.canvasContext,l=e.viewport,y=e.intent,x=void 0===y?"display":y,E=e.enableWebGL,O=void 0!==E&&E,w=e.renderInteractiveForms,D=void 0!==w&&w,Y=e.transform,U=void 0===Y?null:Y,V=e.imageLayer,ee=void 0===V?null:V,X=e.canvasFactory,T=void 0===X?null:X,h=e.background,S=void 0===h?null:h;this._stats&&this._stats.time("Overall");var u="print"===x?"print":"display";this.pendingCleanup=!1,this.intentStates[u]||(this.intentStates[u]=Object.create(null));var v=this.intentStates[u];v.streamReaderCancelTimeout&&(clearTimeout(v.streamReaderCancelTimeout),v.streamReaderCancelTimeout=null);var n=T||new _display_utils.DOMCanvasFactory,d=new _webgl.WebGLContext({enable:O});v.displayReadyCapability||(v.displayReadyCapability=(0,_util.createPromiseCapability)(),v.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:u,renderInteractiveForms:!0===D}));var g=function(P){var B=v.renderTasks.indexOf(k);B>=0&&v.renderTasks.splice(B,1),(t.cleanupAfterRender||"print"===u)&&(t.pendingCleanup=!0),t._tryCleanup(),P?(k.
1capability.reject(P),t._abortOperatorList({intentState:v,reason:P})):k.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},k=new InternalRenderTask({callback:g,params:{canvasContext:a,viewport:l,transform:U,imageLayer:ee,background:S},objs:this.objs,commonObjs:this.commonObjs,operatorList:v.operatorList,pageIndex:this._pageIndex,canvasFactory:n,webGLContext:d,useRequestAnimationFrame:"print"!==u,pdfBug:this._pdfBug});v.renderTasks||(v.renderTasks=[]),v.renderTasks.push(k);var M=k.task;return v.displayReadyCapability.promise.then(function(G){t.pendingCleanup?g():(t._stats&&t._stats.time("Rendering"),k.initializeGraphics(G),k.operatorListChanged())}).catch(g),M}},{key:"getOperatorList",value:function(){var t="oplist";this.intentStates[t]||(this.intentStates[t]=Object.create(null));var l,a=this.intentStates[t];return a.opListReadCapability||((l={}).operatorListChanged=function e(){if(a.operatorList.lastChunk){a.opListReadCapability.resolve(a.operatorList);var y=a.renderTasks.indexOf(l);y>=0&&a.renderTasks.splice(y,1)}},a.opListReadCapability=(0,_util.createPromiseCapability)(),a.renderTasks=[],a.renderTasks.push(l),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:t})),a.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,a=void 0!==t&&t,l=e.disableCombineTextItems,y=void 0!==l&&l,x=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===a,combineTextItems:!0!==y},{highWaterMark:x,size:function(O){return O.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(a,l){var x=t.getReader(),E={items:[],styles:Object.create(null)};!function y(){x.read().then(function(O){var w,D=O.value;O.done?a(E):(Object.assign(E.styles,D.styles),(w=E.items).push.apply(w,_toConsumableArray(D.items)),y())},l)}()})}},{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(a){var l=e.intentStates[a];e._abortOperatorList({intentState:l,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==a&&l.renderTasks.forEach(function(y){var x=y.capability.promise.catch(function(){});t.push(x),y.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(a){var l=e.intentStates[a];return 0!==l.renderTasks.length||!l.operatorList.lastChunk})||(Object.keys(this.intentStates).forEach(function(a){delete e.intentStates[a]}),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 a=this.intentStates[t];!a||(this._stats&&this._stats.timeEnd("Page Request"),a.displayReadyCapability&&a.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var a=0,l=e.length;a<l;a++)t.operatorList.fnArray.push(e.fnArray[a]),t.operatorList.argsArray.push(e.argsArray[a]);t.operatorList.lastChunk=e.lastChunk;for(var y=0;y<t.renderTasks.length;y++)t.renderTasks[y].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var l=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),y=this.intentStates[e.intent];y.streamReader=l,function E(){l.read().then(function(O){var w=O.value;O.done?y.streamReader=null:t._transport.destroyed||(t._renderPageChunk(w,y),E())}
1,function(O){if(y.streamReader=null,!t._transport.destroyed){if(y.operatorList){y.operatorList.lastChunk=!0;for(var w=0;w<y.renderTasks.length;w++)y.renderTasks[w].operatorListChanged();t._tryCleanup()}if(y.displayReadyCapability)y.displayReadyCapability.reject(O);else{if(!y.opListReadCapability)throw O;y.opListReadCapability.reject(O)}}})}()}},{key:"_abortOperatorList",value:function(e){var t=this,a=e.intentState,l=e.reason,y=e.force,x=void 0!==y&&y;if((0,_util.assert)(l instanceof Error||"object"===_typeof(l)&&null!==l,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),a.streamReader){if(!x){if(0!==a.renderTasks.length)return;if(l instanceof _display_utils.RenderingCancelledException)return void(a.streamReaderCancelTimeout=setTimeout(function(){t._abortOperatorList({intentState:a,reason:l,force:!0}),a.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}a.streamReader.cancel(new _util.AbortException(l&&l.message)),a.streamReader=null,!this._transport.destroyed&&(Object.keys(this.intentStates).some(function(E){return t.intentStates[E]===a&&(delete t.intentStates[E],!0)}),this.cleanup())}}},{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]),b}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function b(){var o=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,b),this._listeners=[],this._defer=o,this._deferred=Promise.resolve(void 0)}return _createClass(b,[{key:"postMessage",value:function(e,t){var a=this;if(this._defer){var y=new WeakMap,x={data:function l(E){if("object"!==_typeof(E)||null===E)return E;if(y.has(E))return y.get(E);var O,w;if((O=E.buffer)&&(0,_util.isArrayBuffer)(O))return w=t&&t.includes(O)?new E.constructor(O,E.byteOffset,E.byteLength):new E.constructor(E),y.set(E,w),w;for(var Y in w=Array.isArray(E)?[]:{},y.set(E,w),E){for(var U=void 0,V=E;!(U=Object.getOwnPropertyDescriptor(V,Y));)V=Object.getPrototypeOf(V);if(!(typeof U.value>"u")){if("function"==typeof U.value){if(E.hasOwnProperty&&E.hasOwnProperty(Y))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(E[Y]));continue}w[Y]=l(U.value)}}return w}(e)};this._deferred.then(function(){a._listeners.forEach(function(E){E.call(a,x)})})}else this._listeners.forEach(function(E){E.call(a,{data:e})})}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var a=this._listeners.indexOf(t);this._listeners.splice(a,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),b}();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"===(typeof document>"u"?"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(typeof fallbackWorkerSrc<"u")return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var b;try{b=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch{}return b||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref10=_asyncToGenerator(_regenerator.default.mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee$(_context){for(;;)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 b(){return _ref10.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(b){return URL.createObjectURL(new Blob(["importScripts('"+b+"');"]))}var PDFWorker=function(){function b(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o.name,t=void 0===e?null:e,a=o.port,l=void 0===a?null:a,y=o.verbosity,x=void 0===y?(0,_util.getVerbosityLevel)():y;if(_classCallCheck(this,b),l&&pdfWorkerPorts.has(l))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=t,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=x,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,l)return pdfWorkerPorts.set(l,this),void this._initializeFromPort(l);this._initialize()}return _createClass(b,[{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(typeof Worker<"u"&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var a=new Worker(t),l=new _message_handler.MessageHandler("main","worker",a),y=function(){a.removeEventListener("error",x),l.destroy(),a.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},x=function(){e._webWorker||y()};a.addEventListener("error",x),l.on("test",function(O){a.removeEventListener("error",x),e.destroyed?y():O?(e._messageHandler=l,e._port=a,e._webWorker=a,O.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),l.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),l.destroy(),a.terminate())}),l.on("ready",function(O){if(a.removeEventListener("error",x),e.destroyed)y();else try{E()}catch{e._setupFakeWorker()}});var E=function(){var w=new Uint8Array([e.postMessageTransfers?255:0]);try{l.send("test",w,[w.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),w[0]=0,l.send("test",w)}};return void E()}catch{(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 a=new LoopbackPort;e._port=a;var l="fake"+nextFakeWorkerId++,y=new _message_handler.MessageHandler(l+"_worker",l,a);t.setup(y,a);var x=new _message_handler.MessageHandler(l,l+"_worker",a);e._messageHandler=x,e._readyCapability.resolve(),x.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(e){if(!e||!e.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):new b(e)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]),b}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function b(o,e,t,a){_classCallCheck(this,b),this.messageHandler=o,this.loadingTask=e,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:e.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=t,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(b,[{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(l){l&&t.push(l._destroy())}),this.pageCache.length=0,this.pagePromises.length=0;
1var a=this.messageHandler.sendWithPromise("Terminate",null);return t.push(a),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,a=this.loadingTask;t.on("GetReader",function(l,y){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(x){e._lastProgress={loaded:x.loaded,total:x.total}},y.onPull=function(){e._fullReader.read().then(function(x){var E=x.value;x.done?y.close():((0,_util.assert)((0,_util.isArrayBuffer)(E),"GetReader - expected an ArrayBuffer."),y.enqueue(new Uint8Array(E),1,[E]))}).catch(function(x){y.error(x)})},y.onCancel=function(x){e._fullReader.cancel(x)}}),t.on("ReaderHeadersReady",function(l){var y=(0,_util.createPromiseCapability)(),x=e._fullReader;return x.headersReady.then(function(){(!x.isStreamingSupported||!x.isRangeSupported)&&(e._lastProgress&&a.onProgress&&a.onProgress(e._lastProgress),x.onProgress=function(E){a.onProgress&&a.onProgress({loaded:E.loaded,total:E.total})}),y.resolve({isStreamingSupported:x.isStreamingSupported,isRangeSupported:x.isRangeSupported,contentLength:x.contentLength})},y.reject),y.promise}),t.on("GetRangeReader",function(l,y){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var x=e._networkStream.getRangeReader(l.begin,l.end);x?(y.onPull=function(){x.read().then(function(E){var O=E.value;E.done?y.close():((0,_util.assert)((0,_util.isArrayBuffer)(O),"GetRangeReader - expected an ArrayBuffer."),y.enqueue(new Uint8Array(O),1,[O]))}).catch(function(E){y.error(E)})},y.onCancel=function(E){x.cancel(E)}):y.close()}),t.on("GetDoc",function(l){var y=l.pdfInfo;e._numPages=y.numPages,a._capability.resolve(new PDFDocumentProxy(y,e))}),t.on("DocException",function(l){var y;switch(l.name){case"PasswordException":y=new _util.PasswordException(l.message,l.code);break;case"InvalidPDFException":y=new _util.InvalidPDFException(l.message);break;case"MissingPDFException":y=new _util.MissingPDFException(l.message);break;case"UnexpectedResponseException":y=new _util.UnexpectedResponseException(l.message,l.status);break;case"UnknownErrorException":y=new _util.UnknownErrorException(l.message,l.details)}a._capability.reject(y)}),t.on("PasswordRequest",function(l){if(e._passwordCapability=(0,_util.createPromiseCapability)(),a.onPassword)try{a.onPassword(function(E){e._passwordCapability.resolve({password:E})},l.code)}catch(x){e._passwordCapability.reject(x)}else e._passwordCapability.reject(new _util.PasswordException(l.message,l.code));return e._passwordCapability.promise}),t.on("DataLoaded",function(l){a.onProgress&&a.onProgress({loaded:l.length,total:l.length}),e.downloadInfoCapability.resolve(l)}),t.on("StartRenderPage",function(l){e.destroyed||e.pageCache[l.pageIndex]._startRenderPage(l.transparency,l.intent)}),t.on("commonobj",function(l){if(!e.destroyed){var y=_slicedToArray(l,3),x=y[0],E=y[1],O=y[2];if(!e.commonObjs.has(x))switch(E){case"Font":var w=e._params;if("error"in O){var D=O.error;(0,_util.warn)("Error during font loading: ".concat(D)),e.commonObjs.resolve(x,D);break}var Y=null;w.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(Y={registerFont:function(ee,X){globalThis.FontInspector.fontAdded(ee,X)}});var U=new _font_loader.FontFaceObject(O,{isEvalSupported:w.isEvalSupported,disableFontFace:w.disableFontFace,ignoreErrors:w.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:Y});e.fontLoader.bind(U).catch(function(V){return t.sendWithPromise("FontFallback",{id:x})}).finally(function(){!w.fontExtraProperties&&U.data&&(U.data=null),e.commonObjs.resolve(x,U)});break;case"FontPath":case"FontType3Res":case"Image":e.commonObjs.resolve(x,O);break;default:throw new Error("Got unknown common object type ".concat(E))}}}),t.on("obj",function(l){if(!e.destroyed){var y=_slicedToArray(l,4),x=y[0],O=y[2],w=y[3],D=e.pageCache[y[1]];if(!D.objs.has(x)){if("Image"!==O)throw new Error("Got unknown object type ".concat(O));D.objs.resolve(x,w),w&&"data"in w&&w.data.length>8e6&&(D.cleanupAfterRender=!0)}}}),t.on("DocProgress",function(l){e.destroyed||a.onProgress&&a.onProgress({loaded:l.loaded,total:l.total})}),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",function(l,y){if(e.destroyed)y.error(new Error("Worker was destroyed"));else{var x=!1;y.onPull=function(){x?y.close():(x=!0,e.CMapReaderFactory.fetch(l).then(function(E){y.enqueue(E,1,[E.cMapData.buffer])}).catch(function(E){y.error(E)}))}}})}},{key:"_onUnsupportedFeature",value:function(e){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e.featureId)}},{key:"getData",value:function(){return this.messageHandler.sendWithProm
1ise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var a=e-1;if(a in this.pagePromises)return this.pagePromises[a];var l=this.messageHandler.sendWithPromise("GetPage",{pageIndex:a}).then(function(y){if(t.destroyed)throw new Error("Transport destroyed");var x=new PDFPageProxy(a,y,t,t._params.pdfBug);return t.pageCache[a]=x,x});return this.pagePromises[a]=l,l}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch(function(t){return Promise.reject(new Error(t))})}},{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,a=e.pageCache.length;t<a;t++){var l=e.pageCache[t];if(l&&!l.cleanup())throw new Error("startCleanup: Page ".concat(t+1," is currently rendering."))}e.commonObjs.clear(),e.fontLoader.clear()})}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}]),b}(),PDFObjects=function(){function b(){_classCallCheck(this,b),this._objs=Object.create(null)}return _createClass(b,[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var a=this._objs[e];if(!a||!a.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return a.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,t){var a=this._ensureObj(e);a.resolved=!0,a.data=t,a.capability.resolve(t)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),b}(),RenderTask=function(){function b(o){_classCallCheck(this,b),this._internalRenderTask=o,this.onContinue=null}return _createClass(b,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]),b}(),InternalRenderTask=function b(){var o=new WeakSet,e=function(){function t(a){var l=a.callback,y=a.params,x=a.objs,E=a.commonObjs,O=a.operatorList,w=a.pageIndex,D=a.canvasFactory,Y=a.webGLContext,U=a.useRequestAnimationFrame,V=void 0!==U&&U,ee=a.pdfBug,X=void 0!==ee&&ee;_classCallCheck(this,t),this.callback=l,this.params=y,this.objs=x,this.commonObjs=E,this.operatorListIdx=null,this.operatorList=O,this._pageIndex=w,this.canvasFactory=D,this.webGLContext=Y,this._pdfBug=X,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===V&&typeof window<"u",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=y.canvasContext.canvas}return _createClass(t,[{key:"initializeGraphics",value:function(){var l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];
1if(!this.cancelled){if(this._canvas){if(o.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.");o.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 y=this.params,x=y.canvasContext,E=y.viewport,O=y.transform,w=y.imageLayer,D=y.background;this.gfx=new _canvas.CanvasGraphics(x,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,w),this.gfx.beginDrawing({transform:O,viewport:E,transparency:l,background:D}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&o.delete(this._canvas),this.callback(l||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 l=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){l._nextBound().catch(l.cancel.bind(l))}):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:(a=_asyncToGenerator(_regenerator.default.mark(function y(){return _regenerator.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(!this.cancelled){E.next=2;break}return E.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&&o.delete(this._canvas),this.callback()));case 4:case"end":return E.stop()}},y,this)})),function l(){return a.apply(this,arguments)})}]),t;var a}();return e}(),version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.FontLoader=o.FontFaceObject=void 0;var t=function l(n){return n&&n.__esModule?n:{default:n}}(e(2)),a=e(5);function y(n){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(n)}function E(n,d){return(E=Object.setPrototypeOf||function(k,M){return k.__proto__=M,k})(n,d)}function w(n,d){return!d||"object"!==y(d)&&"function"!=typeof d?function D(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):d}function U(n){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(n)}function V(n,d,g,k,M,G,P){try{var B=n[G](P),K=B.value}catch(te){return void g(te)}B.done?d(K):Promise.resolve(K).then(k,M)}function X(n,d){if(!(n instanceof d))throw new TypeError("Cannot call a class as a function")}function T(n,d){for(var g=0;g<d.length;g++){var k=d[g];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(n,k.key,k)}}function h(n,d,g){return d&&T(n.prototype,d),g&&T(n,g),n}var u,S=function(){function n(d){var g=d.docId,k=d.onUnsupportedFeature;X(this,n),this.constructor===n&&(0,a.unreachable)("Cannot initialize BaseFontLoader."),this.docId=g,this._onUnsupportedFeature=k,this.nativeFontFaces=[],this.styleElement=null}return h(n,[{key:"addNativeFontFace",value:function(g){this.nativeFontFaces.push(g),document.fonts.add(g)}},{key:"insertRule",value:function(g){var k=this.styleElement;k||((k=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(k));var M=k.sheet;M.insertRule(g,M.cssRules.length)}}
1,{key:"clear",value:function(){this.nativeFontFaces.forEach(function(g){document.fonts.delete(g)}),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:(d=function ee(n){return function(){var d=this,g=arguments;return new Promise(function(k,M){var G=n.apply(d,g);function P(K){V(G,k,M,P,B,"next",K)}function B(K){V(G,k,M,P,B,"throw",K)}P(void 0)})}}(t.default.mark(function k(M){var P,B,G=this;return t.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(!M.attached&&!M.missingFile){te.next=2;break}return te.abrupt("return");case 2:if(M.attached=!0,!this.isFontLoadingAPISupported){te.next=19;break}if(!(P=M.createNativeFontFace())){te.next=18;break}return this.addNativeFontFace(P),te.prev=7,te.next=10,P.loaded;case 10:te.next=18;break;case 12:throw te.prev=12,te.t0=te.catch(7),this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,a.warn)("Failed to load font '".concat(P.family,"': '").concat(te.t0,"'.")),M.disableFontFace=!0,te.t0;case 18:return te.abrupt("return");case 19:if(!(B=M.createFontFaceRule())){te.next=26;break}if(this.insertRule(B),!this.isSyncFontLoadingSupported){te.next=24;break}return te.abrupt("return");case 24:return te.next=26,new Promise(function(ne){var j=G._queueLoadingCallback(ne);G._prepareFontLoadEvent([B],[M],j)});case 26:case"end":return te.stop()}},k,this,[[7,12]])})),function g(k){return d.apply(this,arguments)})},{key:"_queueLoadingCallback",value:function(g){(0,a.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(g,k,M){(0,a.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){var g=typeof document<"u"&&!!document.fonts;return(0,a.shadow)(this,"isFontLoadingAPISupported",g)}},{key:"isSyncFontLoadingSupported",get:function(){(0,a.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,a.unreachable)("Abstract method `_loadTestFont`.")}}]),n;var d}();o.FontLoader=u,o.FontLoader=u=function(n){!function x(n,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(d&&d.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),d&&E(n,d)}(g,n);var d=function O(n){var d=function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var M,k=U(n);if(d){var G=U(this).constructor;M=Reflect.construct(k,arguments,G)}else M=k.apply(this,arguments);return w(this,M)}}(g);function g(k){var M;return X(this,g),(M=d.call(this,k)).loadingContext={requests:[],nextRequestId:0},M.loadTestFontId=0,M}return h(g,[{key:"_queueLoadingCallback",value:function(M){var P=this.loadingContext,B={id:"pdfjs-font-loading-".concat(P.nextRequestId++),done:!1,complete:function G(){for((0,a.assert)(!B.done,"completeRequest() cannot be called twice."),B.done=!0;P.requests.length>0&&P.requests[0].done;){var K=P.requests.shift();setTimeout(K.callback,0)}},callback:M};return P.requests.push(B),B}},{key:"_prepareFontLoadEvent",value:function(M,G,P){function B(L,W){return L.charCodeAt(W)<<24|L.charCodeAt(W+1)<<16|L.charCodeAt(W+2)<<8|255&L.charCodeAt(W+3)}function K(L,W,A,F){return L.substring(0,W)+F+L.substring(W+A)}var te,ne,j=document.createElement("canvas");j.width=1,j.height=1;var Q=j.getContext("2d"),I=0,C="lt".concat(Date.now()).concat(this.loadTestFontId++),p=this._loadTestFont,f=1482184792,m=B(p=K(p,976,C.length,C),16);for(te=0,ne=C.length-3;te<ne;te+=4)m=m-f+B(C,te)|0;te<C.length&&(m=m-f+B(C+"XXX",te)|0),p=K(p,16,4,(0,a.string32)(m));var z="url(data:font/opentype;base64,".concat(btoa(p),");"),_='@font-face {font-family:"'.concat(C,'";src:').concat(z,"}");this.insertRule(_);var J=[];for(te=0,ne=G.length;te<ne;te++)J.push(G[te].loadedName);J.push(C);var $=document.createElement("div");for($.style.visibility="hidden",$.style.width=$.style.height="10px",$.style.position="absolute",$.style.top=$.style.left="0px",te=0,ne=J.length;te<ne;++te){var q=document.createElement("span");q.textContent="Hi",q.style.fontFamily=J[te],$.appendChild(q)}document.body.appendChild($),function R(L,W){if(++I>30)return(0,a.warn)("Load test font never loaded."),void W();Q.font="30px "+L,Q.fillText(".",0,20),Q.getImageData(0,0,1,1).data[3]>
10?W():setTimeout(R.bind(null,L,W))}(C,function(){document.body.removeChild($),P.complete()})}},{key:"isSyncFontLoadingSupported",get:function(){var M=!1;if(typeof navigator>"u")M=!0;else{var G=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);G&&G[1]>=14&&(M=!0)}return(0,a.shadow)(this,"isSyncFontLoadingSupported",M)}},{key:"_loadTestFont",get:function(){return(0,a.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]),g}(S),o.FontFaceObject=function(){function n(d,g){var k=g.isEvalSupported,M=void 0===k||k,G=g.disableFontFace,P=void 0!==G&&G,B=g.ignoreErrors,K=void 0!==B&&B,te=g.onUnsupportedFeature,ne=void 0===te?null:te,j=g.fontRegistry,Q=void 0===j?null:j;for(var I in X(this,n),this.compiledGlyphs=Object.create(null),d)this[I]=d[I];this.isEvalSupported=!1!==M,this.disableFontFace=!0===P,this.ignoreErrors=!0===K,this._onUnsupportedFeature=ne,this.fontRegistry=Q}return h(n,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var g=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),g}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var g=(0,a.bytesToString)(new Uint8Array(this.data)),k="url(data:".concat(this.mimetype,";base64,").concat(btoa(g),");"),M='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(k,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,k),M}},{key:"getPathGenerator",value:function(g,k){if(void 0!==this.compiledGlyphs[k])return this.compiledGlyphs[k];var M,G;try{M=g.get(this.loadedName+"_path_"+k)}catch(ne){if(!this.ignoreErrors)throw ne;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:a.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,a.warn)('getPathGenerator - ignoring character: "'.concat(ne,'".')),this.compiledGlyphs[k]=function(j,Q){}}if(this.isEvalSupported&&a.IsEvalSupportedCached.value){for(var P,B="",K=0,te=M.length;K<te;K++)P=void 0!==(G=M[K]).args?G.args.join(","):"",B+="c."+G.cmd+"("+P+");\n";return this.compiledGlyphs[k]=new Function("c","size",B)}return this.compiledGlyphs[k]=function(ne,j){for(var Q=0,I=M.length;Q<I;Q++)"scale"===(G=M[Q]).cmd&&(G.args=[j,-j]),ne[G.cmd].apply(ne,G.args)}}}]),n}()},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.apiCompatibilityParams=void 0;var t=e(7),a=Object.create(null);t.isNodeJS&&(a.disableFontFace=!0);var l=Object.freeze(a);o.apiCompatibilityParams=l},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CanvasGraphics=void 0;var t=e(5),a=e(202);function l(u,v){var n;if(typeof Symbol>"u"||null==u[Symbol.iterator]){if(Array.isArray(u)||(n=function y(u,v){if(u){if("string"==typeof u)return x(u,v);var n=Object.prototype.toString.call(u).slice(8,-1);if("Object"===n&&u.constructor&&(n=u.constructor.name),"Map"===n||"Set"===n)return Array.from(u);
1if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(u,v)}}(u))||v&&u&&"number"==typeof u.length){n&&(u=n);var d=0,g=function(){};return{s:g,n:function(){return d>=u.length?{done:!0}:{done:!1,value:u[d++]}},e:function(B){throw B},f:g}}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 G,k=!0,M=!1;return{s:function(){n=u[Symbol.iterator]()},n:function(){var B=n.next();return k=B.done,B},e:function(B){M=!0,G=B},f:function(){try{!k&&null!=n.return&&n.return()}finally{if(M)throw G}}}}function x(u,v){(null==v||v>u.length)&&(v=u.length);for(var n=0,d=new Array(v);n<v;n++)d[n]=u[n];return d}var w=4096,D=.65,V=16;function ee(u){u.mozCurrentTransform||(u._originalSave=u.save,u._originalRestore=u.restore,u._originalRotate=u.rotate,u._originalScale=u.scale,u._originalTranslate=u.translate,u._originalTransform=u.transform,u._originalSetTransform=u.setTransform,u._transformMatrix=u._transformMatrix||[1,0,0,1,0,0],u._transformStack=[],Object.defineProperty(u,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(u,"mozCurrentTransformInverse",{get:function(){var n=this._transformMatrix,d=n[0],g=n[1],k=n[2],M=n[3],G=n[4],P=n[5],B=d*M-g*k,K=g*k-d*M;return[M/B,g/K,k/K,d/B,(M*G-k*P)/K,(g*G-d*P)/B]}}),u.save=function(){var n=this._transformMatrix;this._transformStack.push(n),this._transformMatrix=n.slice(0,6),this._originalSave()},u.restore=function(){var n=this._transformStack.pop();n&&(this._transformMatrix=n,this._originalRestore())},u.translate=function(n,d){var g=this._transformMatrix;g[4]=g[0]*n+g[2]*d+g[4],g[5]=g[1]*n+g[3]*d+g[5],this._originalTranslate(n,d)},u.scale=function(n,d){var g=this._transformMatrix;g[0]=g[0]*n,g[1]=g[1]*n,g[2]=g[2]*d,g[3]=g[3]*d,this._originalScale(n,d)},u.transform=function(n,d,g,k,M,G){var P=this._transformMatrix;this._transformMatrix=[P[0]*n+P[2]*d,P[1]*n+P[3]*d,P[0]*g+P[2]*k,P[1]*g+P[3]*k,P[0]*M+P[2]*G+P[4],P[1]*M+P[3]*G+P[5]],u._originalTransform(n,d,g,k,M,G)},u.setTransform=function(n,d,g,k,M,G){this._transformMatrix=[n,d,g,k,M,G],u._originalSetTransform(n,d,g,k,M,G)},u.rotate=function(n){var d=Math.cos(n),g=Math.sin(n),k=this._transformMatrix;this._transformMatrix=[k[0]*d+k[2]*g,k[1]*d+k[3]*g,k[0]*-g+k[2]*d,k[1]*-g+k[3]*d,k[4],k[5]],this._originalRotate(n)})}var X=function(){function v(n){this.canvasFactory=n,this.cache=Object.create(null)}return v.prototype={getCanvas:function(d,g,k,M){var G;return void 0!==this.cache[d]?(this.canvasFactory.reset(G=this.cache[d],g,k),G.context.setTransform(1,0,0,1,0,0)):(G=this.canvasFactory.create(g,k),this.cache[d]=G),M&&ee(G.context),G},clear:function(){for(var d in this.cache)this.canvasFactory.destroy(this.cache[d]),delete this.cache[d]}},v}(),h=function(){function v(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=t.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=t.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=t.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return v.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(d,g){this.x=d,this.y=g}},v}(),S=function(){function d(p,i,s,f,m,z){this.ctx=p,this.current=new h,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=i,this.objs=s,this.canvasFactory=f,this.webGLContext=m,this.imageLayer=z,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new X(this.canvasFactory),p&&ee(p),this._cachedGetSinglePixelWidth=null}function g(p,i){if(typeof ImageData<"u"&&i instanceof ImageData)p.putImageData(i,0,0);else{var q,A,F,N,re,s=i.height,f=i.width,m=s%V,z=(s-m)/V,_=0===m?z:z+1,J=p.createImageData(f,V),$=0,L=i.data,W=J.data;if(i.kind===t.ImageKind.GRAYSCALE_1BPP){var ie=L.byteLength,ce=new Uint32Array(W.buffer,0,W.byteLength>>2),ve=ce.length,de=f+7>>3,Te=4294967295,Oe=t.IsLittleEndianCached.value?4278190080:255;for(A=0;A<_;A++){for(N=A<z?V:m,q=0,F=0;F<N;F++){for(var Ue=ie-$,He=0,Ne=Ue>de?f:8*Ue-7,Be=-8&Ne,ze=0,De=0;He<Be;
1He+=8)De=L[$++],ce[q++]=128&De?Te:Oe,ce[q++]=64&De?Te:Oe,ce[q++]=32&De?Te:Oe,ce[q++]=16&De?Te:Oe,ce[q++]=8&De?Te:Oe,ce[q++]=4&De?Te:Oe,ce[q++]=2&De?Te:Oe,ce[q++]=1&De?Te:Oe;for(;He<Ne;He++)0===ze&&(De=L[$++],ze=128),ce[q++]=De&ze?Te:Oe,ze>>=1}for(;q<ve;)ce[q++]=0;p.putImageData(J,0,A*V)}}else if(i.kind===t.ImageKind.RGBA_32BPP){for(F=0,re=f*V*4,A=0;A<z;A++)W.set(L.subarray($,$+re)),$+=re,p.putImageData(J,0,F),F+=V;A<_&&(W.set(L.subarray($,$+(re=f*m*4))),p.putImageData(J,0,F))}else{if(i.kind!==t.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(i.kind));for(re=f*(N=V),A=0;A<_;A++){for(A>=z&&(re=f*(N=m)),q=0,F=re;F--;)W[q++]=L[$++],W[q++]=L[$++],W[q++]=L[$++],W[q++]=255;p.putImageData(J,0,A*V)}}}}function k(p,i){for(var s=i.height,f=i.width,m=s%V,z=(s-m)/V,_=0===m?z:z+1,J=p.createImageData(f,V),$=0,q=i.data,L=J.data,W=0;W<_;W++){for(var A=W<z?V:m,F=3,N=0;N<A;N++)for(var re=0,ie=0;ie<f;ie++){if(!re){var ce=q[$++];re=128}L[F]=ce&re?0:255,F+=4,re>>=1}p.putImageData(J,0,W*V)}}function M(p,i){for(var s=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],f=0,m=s.length;f<m;f++){var z=s[f];void 0!==p[z]&&(i[z]=p[z])}void 0!==p.setLineDash&&(i.setLineDash(p.getLineDash()),i.lineDashOffset=p.lineDashOffset)}function G(p){p.strokeStyle="#000000",p.fillStyle="#000000",p.fillRule="nonzero",p.globalAlpha=1,p.lineWidth=1,p.lineCap="butt",p.lineJoin="miter",p.miterLimit=10,p.globalCompositeOperation="source-over",p.font="10px sans-serif",void 0!==p.setLineDash&&(p.setLineDash([]),p.lineDashOffset=0)}function P(p,i,s,f){for(var m=p.length,z=3;z<m;z+=4){var _=p[z];if(0===_)p[z-3]=i,p[z-2]=s,p[z-1]=f;else if(_<255){var J=255-_;p[z-3]=p[z-3]*_+i*J>>8,p[z-2]=p[z-2]*_+s*J>>8,p[z-1]=p[z-1]*_+f*J>>8}}}function B(p,i,s){for(var f=p.length,z=3;z<f;z+=4)i[z]=i[z]*(s?s[p[z]]:p[z])*.00392156862745098|0}function K(p,i,s){for(var f=p.length,m=3;m<f;m+=4){var z=77*p[m-3]+152*p[m-2]+28*p[m-1];i[m]=s?i[m]*s[z>>8]>>8:i[m]*z>>16}}function ne(p,i,s,f){var m=i.canvas,z=i.context;p.setTransform(i.scaleX,0,0,i.scaleY,i.offsetX,i.offsetY);var _=i.backdrop||null;if(!i.transferMap&&f.isEnabled){var J=f.composeSMask({layer:s.canvas,mask:m,properties:{subtype:i.subtype,backdrop:_}});return p.setTransform(1,0,0,1,0,0),void p.drawImage(J,i.offsetX,i.offsetY)}(function te(p,i,s,f,m,z,_){var W,J=!!z,$=J?z[0]:0,q=J?z[1]:0,L=J?z[2]:0;W="Luminosity"===m?K:B;for(var F=Math.min(f,Math.ceil(1048576/s)),N=0;N<f;N+=F){var re=Math.min(F,f-N),ie=p.getImageData(0,N,s,re),ce=i.getImageData(0,N,s,re);J&&P(ie.data,$,q,L),W(ie.data,ce.data,_),p.putImageData(ce,0,N)}})(z,s,m.width,m.height,i.subtype,_,i.transferMap),p.drawImage(m,0,0)}var j=["butt","round","square"],Q=["miter","round","bevel"],I={},R={};for(var C in d.prototype={beginDrawing:function(i){var s=i.transform,f=i.viewport,m=i.transparency,z=void 0!==m&&m,_=i.background,J=void 0===_?null:_,$=this.ctx.canvas.width,q=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=J||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,$,q),this.ctx.restore(),z){var L=this.cachedCanvases.getCanvas("transparent",$,q,!0);this.compositeCtx=this.ctx,this.transparentCanvas=L.canvas,this.ctx=L.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),G(this.ctx),s&&this.ctx.transform.apply(this.ctx,s),this.ctx.transform.apply(this.ctx,f.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(i,s,f,m){var z=i.argsArray,_=i.fnArray,J=s||0,$=z.length;if($===J)return J;for(var N,q=$-J>10&&"function"==typeof f,L=q?Date.now()+15:0,W=0,A=this.commonObjs,F=this.objs;;){if(void 0!==m&&J===m.nextBreakPoint)return m.breakIt(J,f),J;if((N=_[J])!==t.OPS.dependency)this[N].apply(this,z[J]);else{var ie,re=l(z[J]);try{for(re.s();!(ie=re.n()).done;){var ce=ie.value,ve=ce.startsWith("g_")?A:F;if(!ve.has(ce))return ve.get(ce,f),J}}catch(de){re.e(de)}finally{re.f()}}if(++J===$)return J;if(q&&++W>10){if(Date.now()>L)return f(),J;W=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(
1),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(i){this.current.lineWidth=i,this.ctx.lineWidth=i},setLineCap:function(i){this.ctx.lineCap=j[i]},setLineJoin:function(i){this.ctx.lineJoin=Q[i]},setMiterLimit:function(i){this.ctx.miterLimit=i},setDash:function(i,s){var f=this.ctx;void 0!==f.setLineDash&&(f.setLineDash(i),f.lineDashOffset=s)},setRenderingIntent:function(i){},setFlatness:function(i){},setGState:function(i){for(var s=0,f=i.length;s<f;s++){var m=i[s],_=m[1];switch(m[0]){case"LW":this.setLineWidth(_);break;case"LC":this.setLineCap(_);break;case"LJ":this.setLineJoin(_);break;case"ML":this.setMiterLimit(_);break;case"D":this.setDash(_[0],_[1]);break;case"RI":this.setRenderingIntent(_);break;case"FL":this.setFlatness(_);break;case"Font":this.setFont(_[0],_[1]);break;case"CA":this.current.strokeAlpha=m[1];break;case"ca":this.current.fillAlpha=m[1],this.ctx.globalAlpha=m[1];break;case"BM":this.ctx.globalCompositeOperation=_;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=_?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var i=this.current.activeSMask,z=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,i.canvas.width,i.canvas.height,!0),_=this.ctx,J=_.mozCurrentTransform;this.ctx.save();var $=z.context;$.scale(1/i.scaleX,1/i.scaleY),$.translate(-i.offsetX,-i.offsetY),$.transform.apply($,J),i.startTransformInverse=$.mozCurrentTransformInverse,M(_,$),this.ctx=$,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(_),this.groupLevel++},suspendSMaskGroup:function(){var i=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),ne(this.ctx,this.current.activeSMask,i,this.webGLContext),this.ctx.restore(),this.ctx.save(),M(i,this.ctx),this.current.resumeSMaskCtx=i;var s=t.Util.transform(this.current.activeSMask.startTransformInverse,i.mozCurrentTransform);this.ctx.transform.apply(this.ctx,s),i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,i.canvas.width,i.canvas.height),i.restore()},resumeSMaskGroup:function(){var s=this.ctx;this.ctx=this.current.resumeSMaskCtx,this.groupStack.push(s),this.groupLevel++},endSMaskGroup:function(){var i=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),ne(this.ctx,this.current.activeSMask,i,this.webGLContext),this.ctx.restore(),M(i,this.ctx);var s=t.Util.transform(this.current.activeSMask.startTransformInverse,i.mozCurrentTransform);this.ctx.transform.apply(this.ctx,s)},save:function(){this.ctx.save();var i=this.current;this.stateStack.push(i),this.current=i.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(i,s,f,m,z,_){this.ctx.transform(i,s,f,m,z,_),this._cachedGetSinglePixelWidth=null},constructPath:function(i,s){for(var f=this.ctx,m=this.current,z=m.x,_=m.y,J=0,$=0,q=i.length;J<q;J++)switch(0|i[J]){case t.OPS.rectangle:z=s[$++],_=s[$++];var L=s[$++],W=s[$++];0===L&&(L=this.getSinglePixelWidth()),0===W&&(W=this.getSinglePixelWidth());var A=z+L,F=_+W;this.ctx.moveTo(z,_),this.ctx.lineTo(A,_),this.ctx.lineTo(A,F),this.ctx.lineTo(z,F),this.ctx.lineTo(z,_),this.ctx.closePath();break;case t.OPS.moveTo:z=s[$++],_=s[$++],f.moveTo(z,_);break;case t.OPS.lineTo:z=s[$++],_=s[$++],f.lineTo(z,_);break;case t.OPS.curveTo:f.bezierCurveTo(s[$],s[$+1],s[$+2],s[$+3],z=s[$+4],_=s[$+5]),$+=6;break;case t.OPS.curveTo2:f.bezierCurveTo(z,_,s[$],s[$+1],s[$+2],s[$+3]),z=s[$+2],_=s[$+3],$+=4;break;case t.OPS.curveTo3:f.bezierCurveTo(s[$],s[$+1],z=s[$+2],_=s[$+3],z,_),$+=4;break;case t.OPS.closePath:f.closePath()}m.setCurrentPoint(z,_)},closePath:function(){this.ctx.closePath()},stroke:function(i){i=!(typeof i<"u")||i;var s=this.ctx,f=this.current.strokeColor;if(s.globalAlpha=this.current.strokeAlpha,f&&f.hasOwnProperty("type")&&"Pattern"===f.type){s.save();var z=t.Util.singularValueDecompose2dScale(s.mozCurrentTransform)[0];s.strokeStyle=f.getPattern(s,this),s.lineWidth=Math.max(this.getSinglePixelWidth()*D,this.current.lineWidth*z),s.stroke(),s.restore(
1)}else s.lineWidth=Math.max(this.getSinglePixelWidth()*D,this.current.lineWidth),s.stroke();i&&this.consumePath(),s.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(i){i=!(typeof i<"u")||i;var s=this.ctx,f=this.current.fillColor,z=!1;this.current.patternFill&&(s.save(),this.baseTransform&&s.setTransform.apply(s,this.baseTransform),s.fillStyle=f.getPattern(s,this),z=!0),this.pendingEOFill?(s.fill("evenodd"),this.pendingEOFill=!1):s.fill(),z&&s.restore(),i&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=I},eoClip:function(){this.pendingClip=R},beginText:function(){this.current.textMatrix=t.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var i=this.pendingTextPaths,s=this.ctx;if(void 0!==i){s.save(),s.beginPath();for(var f=0;f<i.length;f++){var m=i[f];s.setTransform.apply(s,m.transform),s.translate(m.x,m.y),m.addToPath(s,m.fontSize)}s.restore(),s.clip(),s.beginPath(),delete this.pendingTextPaths}else s.beginPath()},setCharSpacing:function(i){this.current.charSpacing=i},setWordSpacing:function(i){this.current.wordSpacing=i},setHScale:function(i){this.current.textHScale=i/100},setLeading:function(i){this.current.leading=-i},setFont:function(i,s){var f=this.commonObjs.get(i),m=this.current;if(!f)throw new Error("Can't find font for ".concat(i));if(m.fontMatrix=f.fontMatrix?f.fontMatrix:t.FONT_IDENTITY_MATRIX,(0===m.fontMatrix[0]||0===m.fontMatrix[3])&&(0,t.warn)("Invalid font matrix for font "+i),s<0?(s=-s,m.fontDirection=-1):m.fontDirection=1,this.current.font=f,this.current.fontSize=s,!f.isType3Font){var _="normal";f.black?_="900":f.bold&&(_="bold");var J=f.italic?"italic":"normal",$='"'.concat(f.loadedName||"sans-serif",'", ').concat(f.fallbackName),q=s;s<16?q=16:s>100&&(q=100),this.current.fontSizeScale=s/q,this.ctx.font="".concat(J," ").concat(_," ").concat(q,"px ").concat($)}},setTextRenderingMode:function(i){this.current.textRenderingMode=i},setTextRise:function(i){this.current.textRise=i},moveText:function(i,s){this.current.x=this.current.lineX+=i,this.current.y=this.current.lineY+=s},setLeadingMoveText:function(i,s){this.setLeading(-s),this.moveText(i,s)},setTextMatrix:function(i,s,f,m,z,_){this.current.textMatrix=[i,s,f,m,z,_],this.current.textMatrixScale=Math.sqrt(i*i+s*s),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(i,s,f,m){var F,z=this.ctx,_=this.current,J=_.font,$=_.textRenderingMode,q=_.fontSize/_.fontSizeScale,L=$&t.TextRenderingMode.FILL_STROKE_MASK,W=!!($&t.TextRenderingMode.ADD_TO_PATH_FLAG),A=_.patternFill&&!J.missingFile;(J.disableFontFace||W||A)&&(F=J.getPathGenerator(this.commonObjs,i)),J.disableFontFace||A?(z.save(),z.translate(s,f),z.beginPath(),F(z,q),m&&z.setTransform.apply(z,m),(L===t.TextRenderingMode.FILL||L===t.TextRenderingMode.FILL_STROKE)&&z.fill(),(L===t.TextRenderingMode.STROKE||L===t.TextRenderingMode.FILL_STROKE)&&z.stroke(),z.restore()):((L===t.TextRenderingMode.FILL||L===t.TextRenderingMode.FILL_STROKE)&&z.fillText(i,s,f),(L===t.TextRenderingMode.STROKE||L===t.TextRenderingMode.FILL_STROKE)&&z.strokeText(i,s,f)),W&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:z.mozCurrentTransform,x:s,y:f,fontSize:q,addToPath:F})},get isFontSubpixelAAEnabled(){var i=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;i.scale(1.5,1),i.fillText("I",0,10);for(var s=i.getImageData(0,0,10,10).data,f=!1,m=3;m<s.length;m+=4)if(s[m]>0&&s[m]<255){f=!0;break}return(0,t.shadow)(this,"isFontSubpixelAAEnabled",f)},showText:function(i){var s=this.current,f=s.font;if(f.isType3Font)return this.showType3Text(i);var m=s.fontSize;if(0!==m){var ce,z=this.ctx,_=s.fontSizeScale,J=s.charSpacing,$=s.wordSpacing,q=s.fontDirection,L=s.textHScale*q,W=i.length,A=f.vertical,F=A?1:-1,N=f.defaultVMetrics,re=m*s.fontMatrix[0],ie=s.textRenderingMode===t.TextRenderingMode.FILL&&!f.disableFontFace&&!s.patternFill;if(z.save(),s.patternFill){z.save();var ve=s.fillColor.getPattern(z,this);
1ce=z.mozCurrentTransform,z.restore(),z.fillStyle=ve}z.transform.apply(z,s.textMatrix),z.translate(s.x,s.y+s.textRise),z.scale(L,q>0?-1:1);var de=s.lineWidth,Te=s.textMatrixScale;if(0===Te||0===de){var Oe=s.textRenderingMode&t.TextRenderingMode.FILL_STROKE_MASK;(Oe===t.TextRenderingMode.STROKE||Oe===t.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,de=this.getSinglePixelWidth()*D)}else de/=Te;1!==_&&(z.scale(_,_),de/=_),z.lineWidth=de;var He,Ue=0;for(He=0;He<W;++He){var Ne=i[He];if((0,t.isNum)(Ne))Ue+=F*Ne*m/1e3;else{var ye,xe,ke,Fe,Be=!1,ze=(Ne.isSpace?$:0)+J,De=Ne.fontChar,Re=Ne.accent,Se=Ne.width;if(A?(ke=Ne.vmetric||N,Fe=Ne.vmetric?ke[1]:.5*Se,Se=ke?-ke[0]:Se,ye=(Fe=-Fe*re)/_,xe=(Ue+ke[2]*re)/_):(ye=Ue/_,xe=0),f.remeasure&&Se>0){var Xe=1e3*z.measureText(De).width/m*_;if(Se<Xe&&this.isFontSubpixelAAEnabled){var Je=Se/Xe;Be=!0,z.save(),z.scale(Je,1),ye/=Je}else Se!==Xe&&(ye+=(Se-Xe)/2e3*m/_)}(Ne.isInFont||f.missingFile)&&(ie&&!Re?z.fillText(De,ye,xe):(this.paintChar(De,ye,xe,ce),Re&&this.paintChar(Re.fontChar,ye+Re.offset.x/_,xe-Re.offset.y/_,ce))),Ue+=A?Se*re-ze*q:Se*re+ze*q,Be&&z.restore()}}A?s.y-=Ue:s.x+=Ue*L,z.restore()}},showType3Text:function(i){var N,re,ie,ce,s=this.ctx,f=this.current,m=f.font,z=f.fontSize,_=f.fontDirection,J=m.vertical?1:-1,$=f.charSpacing,q=f.wordSpacing,L=f.textHScale*_,W=f.fontMatrix||t.FONT_IDENTITY_MATRIX,A=i.length;if(f.textRenderingMode!==t.TextRenderingMode.INVISIBLE&&0!==z){for(this._cachedGetSinglePixelWidth=null,s.save(),s.transform.apply(s,f.textMatrix),s.translate(f.x,f.y),s.scale(L,_),N=0;N<A;++N)if((0,t.isNum)(re=i[N]))this.ctx.translate(ce=J*re*z/1e3,0),f.x+=ce*L;else{var ve=(re.isSpace?q:0)+$,de=m.charProcOperatorList[re.operatorListId];if(de){this.processingType3=re,this.save(),s.scale(z,z),s.transform.apply(s,W),this.executeOperatorList(de),this.restore();var Te=t.Util.applyTransform([re.width,0],W);s.translate(ie=Te[0]*z+ve,0),f.x+=ie*L}else(0,t.warn)('Type3 character "'.concat(re.operatorListId,'" is not available.'))}s.restore(),this.processingType3=null}},setCharWidth:function(i,s){},setCharWidthAndBounds:function(i,s,f,m,z,_){this.ctx.rect(f,m,z-f,_-m),this.clip(),this.endPath()},getColorN_Pattern:function(i){var f,s=this;if("TilingPattern"===i[0]){var m=i[1],z=this.baseTransform||this.ctx.mozCurrentTransform.slice();f=new a.TilingPattern(i,m,this.ctx,{createCanvasGraphics:function($){return new d($,s.commonObjs,s.objs,s.canvasFactory,s.webGLContext)}},z)}else f=(0,a.getShadingPatternFromIR)(i);return f},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(i,s,f){var m=t.Util.makeCssRgb(i,s,f);this.ctx.strokeStyle=m,this.current.strokeColor=m},setFillRGBColor:function(i,s,f){var m=t.Util.makeCssRgb(i,s,f);this.ctx.fillStyle=m,this.current.fillColor=m,this.current.patternFill=!1},shadingFill:function(i){var s=this.ctx;this.save();var f=(0,a.getShadingPatternFromIR)(i);s.fillStyle=f.getPattern(s,this,!0);var m=s.mozCurrentTransformInverse;if(m){var z=s.canvas,_=z.width,J=z.height,$=t.Util.applyTransform([0,0],m),q=t.Util.applyTransform([0,J],m),L=t.Util.applyTransform([_,0],m),W=t.Util.applyTransform([_,J],m),A=Math.min($[0],q[0],L[0],W[0]),F=Math.min($[1],q[1],L[1],W[1]),N=Math.max($[0],q[0],L[0],W[0]),re=Math.max($[1],q[1],L[1],W[1]);this.ctx.fillRect(A,F,N-A,re-F)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,t.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,t.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(i,s){this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(i)&&6===i.length&&this.transform.apply(this,i),this.baseTransform=this.ctx.mozCurrentTransform,s&&(this.ctx.rect(s[0],s[1],s[2]-s[0],s[3]-s[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(i){this.save();var s=this.ctx;
1i.isolated||(0,t.info)("TODO: Support non-isolated groups."),i.knockout&&(0,t.warn)("Knockout groups not supported.");var f=s.mozCurrentTransform;if(i.matrix&&s.transform.apply(s,i.matrix),!i.bbox)throw new Error("Bounding box is required.");var m=t.Util.getAxialAlignedBoundingBox(i.bbox,s.mozCurrentTransform);m=t.Util.intersect(m,[0,0,s.canvas.width,s.canvas.height])||[0,0,0,0];var _=Math.floor(m[0]),J=Math.floor(m[1]),$=Math.max(Math.ceil(m[2])-_,1),q=Math.max(Math.ceil(m[3])-J,1),L=1,W=1;$>w&&(L=$/w,$=w),q>w&&(W=q/w,q=w);var A="groupAt"+this.groupLevel;i.smask&&(A+="_smask_"+this.smaskCounter++%2);var F=this.cachedCanvases.getCanvas(A,$,q,!0),N=F.context;N.scale(1/L,1/W),N.translate(-_,-J),N.transform.apply(N,f),i.smask?this.smaskStack.push({canvas:F.canvas,context:N,offsetX:_,offsetY:J,scaleX:L,scaleY:W,subtype:i.smask.subtype,backdrop:i.smask.backdrop,transferMap:i.smask.transferMap||null,startTransformInverse:null}):(s.setTransform(1,0,0,1,0,0),s.translate(_,J),s.scale(L,W)),M(s,N),this.ctx=N,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(s),this.groupLevel++,this.current.activeSMask=null},endGroup:function(i){this.groupLevel--;var s=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,i.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(s.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(i,s,f){this.save(),G(this.ctx),this.current=new h,Array.isArray(i)&&4===i.length&&(this.ctx.rect(i[0],i[1],i[2]-i[0],i[3]-i[1]),this.clip(),this.endPath()),this.transform.apply(this,s),this.transform.apply(this,f)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(i){var s=this.ctx,f=i.width,m=i.height,z=this.current.fillColor,_=this.current.patternFill,J=this.processingType3;if(J&&void 0===J.compiled&&(J.compiled=f<=1e3&&m<=1e3?function T(u){var g,k,M,Q,n=u.width,d=u.height,G=n+1,P=new Uint8Array(G*(d+1)),B=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),K=n+7&-8,te=u.data,ne=new Uint8Array(K*d),j=0;for(g=0,Q=te.length;g<Q;g++)for(var I=128,R=te[g];I>0;)ne[j++]=R&I?0:255,I>>=1;var C=0;for(0!==ne[j=0]&&(P[0]=1,++C),k=1;k<n;k++)ne[j]!==ne[j+1]&&(P[k]=ne[j]?2:1,++C),j++;for(0!==ne[j]&&(P[k]=2,++C),g=1;g<d;g++){M=g*G,ne[(j=g*K)-K]!==ne[j]&&(P[M]=ne[j]?1:8,++C);var p=(ne[j]?4:0)+(ne[j-K]?8:0);for(k=1;k<n;k++)B[p=(p>>2)+(ne[j+1]?4:0)+(ne[j-K+1]?8:0)]&&(P[M+k]=B[p],++C),j++;if(ne[j-K]!==ne[j]&&(P[M+k]=ne[j]?2:4,++C),C>1e3)return null}for(M=g*G,0!==ne[j=K*(d-1)]&&(P[M]=8,++C),k=1;k<n;k++)ne[j]!==ne[j+1]&&(P[M+k]=ne[j]?4:8,++C),j++;if(0!==ne[j]&&(P[M+k]=4,++C),C>1e3)return null;var i=new Int32Array([0,G,-1,0,-G,0,0,0,1]),s=[];for(g=0;C&&g<=d;g++){for(var f=g*G,m=f+n;f<m&&!P[f];)f++;if(f!==m){var $,z=[f%G,g],_=P[f],J=f;do{var q=i[_];do{f+=q}while(!P[f]);5!==($=P[f])&&10!==$?(_=$,P[f]=0):P[f]&=(_=$&51*_>>4)>>2|_<<2,z.push(f%G),z.push(f/G|0),P[f]||--C}while(J!==f);s.push(z),--g}}return function(A){A.save(),A.scale(1/n,-1/d),A.translate(0,-d),A.beginPath();for(var F=0,N=s.length;F<N;F++){var re=s[F];A.moveTo(re[0],re[1]);for(var ie=2,ce=re.length;ie<ce;ie+=2)A.lineTo(re[ie],re[ie+1])}A.fill(),A.beginPath(),A.restore()}}({data:i.data,width:f,height:m}):null),J&&J.compiled)J.compiled(s);else{var $=this.cachedCanvases.getCanvas("maskCanvas",f,m),q=$.context;q.save(),k(q,i),q.globalCompositeOperation="source-in",q.fillStyle=_?z.getPattern(q,this):z,q.fillRect(0,0,f,m),q.restore(),this.paintInlineImageXObject($.canvas)}},paintImageMaskXObjectRepeat:function(i,s,f,m){var z=i.width,_=i.height,J=this.current.fillColor,$=this.current.patternFill,q=this.cachedCanvases.getCanvas("maskCanvas",z,_),L=q.context;L.save(),k(L,i),L.globalCompositeOperation="source-in",L.fillStyle=$?J.getPattern(L,this):J,L.fillRect(0,0,z,_),L.restore();for(var W=this.ctx,A=0,F=m.length;A<F;A+=2)W.save(),W.transform(s,0,0,f,m[A],m[A+1]),W.scale(1,-1),W.drawImage(q.canvas,0,0,z,_,0,-1,1,1),W.restore(
1)},paintImageMaskXObjectGroup:function(i){for(var s=this.ctx,f=this.current.fillColor,m=this.current.patternFill,z=0,_=i.length;z<_;z++){var J=i[z],$=J.width,q=J.height,L=this.cachedCanvases.getCanvas("maskCanvas",$,q),W=L.context;W.save(),k(W,J),W.globalCompositeOperation="source-in",W.fillStyle=m?f.getPattern(W,this):f,W.fillRect(0,0,$,q),W.restore(),s.save(),s.transform.apply(s,J.transform),s.scale(1,-1),s.drawImage(L.canvas,0,0,$,q,0,-1,1,1),s.restore()}},paintImageXObject:function(i){var s=i.startsWith("g_")?this.commonObjs.get(i):this.objs.get(i);s?this.paintInlineImageXObject(s):(0,t.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(i,s,f,m){var z=i.startsWith("g_")?this.commonObjs.get(i):this.objs.get(i);if(z){for(var _=z.width,J=z.height,$=[],q=0,L=m.length;q<L;q+=2)$.push({transform:[s,0,0,f,m[q],m[q+1]],x:0,y:0,w:_,h:J});this.paintInlineImageXObjectGroup(z,$)}else(0,t.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(i){var s=i.width,f=i.height,m=this.ctx;this.save(),m.scale(1/s,-1/f);var A,F,z=m.mozCurrentTransformInverse,_=z[0],J=z[1],$=Math.max(Math.sqrt(_*_+J*J),1),q=z[2],L=z[3],W=Math.max(Math.sqrt(q*q+L*L),1);if("function"==typeof HTMLElement&&i instanceof HTMLElement||!i.data)A=i;else{var N=(F=this.cachedCanvases.getCanvas("inlineImage",s,f)).context;g(N,i),A=F.canvas}for(var re=s,ie=f,ce="prescale1";$>2&&re>1||W>2&&ie>1;){var ve=re,de=ie;$>2&&re>1&&($/=re/(ve=Math.ceil(re/2))),W>2&&ie>1&&(W/=ie/(de=Math.ceil(ie/2))),(N=(F=this.cachedCanvases.getCanvas(ce,ve,de)).context).clearRect(0,0,ve,de),N.drawImage(A,0,0,re,ie,0,0,ve,de),A=F.canvas,re=ve,ie=de,ce="prescale1"===ce?"prescale2":"prescale1"}if(m.drawImage(A,0,0,re,ie,0,-f,s,f),this.imageLayer){var Te=this.getCanvasPosition(0,-f);this.imageLayer.appendImage({imgData:i,left:Te[0],top:Te[1],width:s/z[0],height:f/z[3]})}this.restore()},paintInlineImageXObjectGroup:function(i,s){var f=this.ctx,m=i.width,z=i.height,_=this.cachedCanvases.getCanvas("inlineImage",m,z);g(_.context,i);for(var $=0,q=s.length;$<q;$++){var L=s[$];if(f.save(),f.transform.apply(f,L.transform),f.scale(1,-1),f.drawImage(_.canvas,L.x,L.y,L.w,L.h,0,-1,1,1),this.imageLayer){var W=this.getCanvasPosition(L.x,L.y);this.imageLayer.appendImage({imgData:i,left:W[0],top:W[1],width:m,height:z})}f.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,t.warn)("Unsupported 'paintXObject' command.")},markPoint:function(i){},markPointProps:function(i,s){},beginMarkedContent:function(i){},beginMarkedContentProps:function(i,s){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var i=this.ctx;this.pendingClip&&(this.pendingClip===R?i.clip("evenodd"):i.clip(),this.pendingClip=null),i.beginPath()},getSinglePixelWidth:function(i){if(null===this._cachedGetSinglePixelWidth){var s=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(s[0]*s[0]+s[1]*s[1],s[2]*s[2]+s[3]*s[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(i,s){var f=this.ctx.mozCurrentTransform;return[f[0]*i+f[2]*s+f[4],f[1]*i+f[3]*s+f[5]]}},t.OPS)d.prototype[t.OPS[C]]=d.prototype[C];return d}();o.CanvasGraphics=S},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getShadingPatternFromIR=function x(O){var w=a[O[0]];if(!w)throw new Error("Unknown IR type: ".concat(O[0]));return w.fromIR(O)},o.TilingPattern=void 0;var t=e(5),a={};function l(O,w){if(w&&!(typeof Path2D>"u")){var D=w[2]-w[0],Y=w[3]-w[1],U=new Path2D;U.rect(w[0],w[1],D,Y),O.clip(U)}}a.RadialAxial={fromIR:function(w){var D=w[1],Y=w[2],U=w[3],V=w[4],ee=w[5],X=w[6],T=w[7];return{type:"Pattern",getPattern:function(S){var u;l(S,Y),"axial"===D?u=S.createLinearGradient(V[0],V[1],ee[0],ee[1]):"radial"===D&&(u=S.createRadialGradient(V[0],V[1],X,ee[0],ee[1],T));for(var v=0,n=U.length;v<n;++v){var d=U[v];u.addColorStop(d[0],d[1])}return u}}}};var y=function(){function w(U,V,ee,X,T,h,S,u){var k,v=V.coords,n=V.colors,d=U.data,g=4*U.width;v[ee+1]>v[X+1]&&(k=ee,ee=X,X=k,k=h,h=S,S=k),v[X+1]>v[T+1]&&(k=X,X=T,T=k,k=S,S=u,u=k),v[ee+1]>v[X+1]&&(k=ee,ee=X,X=k,k=h,h=S,S=k);var M=(v[ee]+V.offsetX)*V.scaleX,G=(v[ee+1]+V.offsetY)*V.scaleY,P=(v[X]+V.offsetX)*V.scaleX,B=(v[X+1]+V.offsetY)*V.scaleY,K=(v[T]+V.offsetX)*V.scaleX,te=(v[T+1]+V.offsetY)*V.scaleY;if(!(G>=te))for(var z,_,J,$,q,L,W,A,ne=n[h],j=n[h+1],Q=n[h+2],I=n[S],R=n[S+1],C=n[S+2],p=n[u],i=n[u+1],s=n[u+2],f=Math.round(G),m=Math.round(te),F=f;F<=m;F++){if(F<B){var N;z=M-(M-P)*(N=F<G?0:G===B?1:(G-F)/(G-B)),_=ne-(ne-I)*N,J=j-(j-R)*N,$=Q-(Q-C)*N}else{var re;
1z=P-(P-K)*(re=F>te?1:B===te?0:(B-F)/(B-te)),_=I-(I-p)*re,J=R-(R-i)*re,$=C-(C-s)*re}var ie=void 0;q=M-(M-K)*(ie=F<G?0:F>te?1:(G-F)/(G-te)),L=ne-(ne-p)*ie,W=j-(j-i)*ie,A=Q-(Q-s)*ie;for(var ce=Math.round(Math.min(z,q)),ve=Math.round(Math.max(z,q)),de=g*F+4*ce,Te=ce;Te<=ve;Te++)(ie=(z-Te)/(z-q))<0?ie=0:ie>1&&(ie=1),d[de++]=_-(_-L)*ie|0,d[de++]=J-(J-W)*ie|0,d[de++]=$-($-A)*ie|0,d[de++]=255}}function D(U,V,ee){var h,S,X=V.coords,T=V.colors;switch(V.type){case"lattice":var u=V.verticesPerRow,v=Math.floor(X.length/u)-1,n=u-1;for(h=0;h<v;h++)for(var d=h*u,g=0;g<n;g++,d++)w(U,ee,X[d],X[d+1],X[d+u],T[d],T[d+1],T[d+u]),w(U,ee,X[d+u+1],X[d+1],X[d+u],T[d+u+1],T[d+1],T[d+u]);break;case"triangles":for(h=0,S=X.length;h<S;h+=3)w(U,ee,X[h],X[h+1],X[h+2],T[h],T[h+1],T[h+2]);break;default:throw new Error("illegal figure")}}return function Y(U,V,ee,X,T,h,S,u){var I,R,C,p,g=Math.floor(U[0]),k=Math.floor(U[1]),M=Math.ceil(U[2])-g,G=Math.ceil(U[3])-k,P=Math.min(Math.ceil(Math.abs(M*V[0]*1.1)),3e3),B=Math.min(Math.ceil(Math.abs(G*V[1]*1.1)),3e3),K=M/P,te=G/B,ne={coords:ee,colors:X,offsetX:-g,offsetY:-k,scaleX:1/K,scaleY:1/te},j=P+4,Q=B+4;if(u.isEnabled)I=u.drawFigures({width:P,height:B,backgroundColor:h,figures:T,context:ne}),(R=S.getCanvas("mesh",j,Q,!1)).context.drawImage(I,2,2),I=R.canvas;else{var i=(R=S.getCanvas("mesh",j,Q,!1)).context,s=i.createImageData(P,B);if(h){var f=s.data;for(C=0,p=f.length;C<p;C+=4)f[C]=h[0],f[C+1]=h[1],f[C+2]=h[2],f[C+3]=255}for(C=0;C<T.length;C++)D(s,T[C],ne);i.putImageData(s,2,2),I=R.canvas}return{canvas:I,offsetX:g-2*K,offsetY:k-2*te,scaleX:K,scaleY:te}}}();a.Mesh={fromIR:function(w){var D=w[2],Y=w[3],U=w[4],V=w[5],ee=w[6],X=w[7],T=w[8];return{type:"Pattern",getPattern:function(S,u,v){var n;if(l(S,X),v)n=t.Util.singularValueDecompose2dScale(S.mozCurrentTransform);else if(n=t.Util.singularValueDecompose2dScale(u.baseTransform),ee){var d=t.Util.singularValueDecompose2dScale(ee);n=[n[0]*d[0],n[1]*d[1]]}var g=y(V,n,D,Y,U,v?null:T,u.cachedCanvases,u.webGLContext);return v||(S.setTransform.apply(S,u.baseTransform),ee&&S.transform.apply(S,ee)),S.translate(g.offsetX,g.offsetY),S.scale(g.scaleX,g.scaleY),S.createPattern(g.canvas,"no-repeat")}}}},a.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var E=function(){function Y(U,V,ee,X,T){this.operatorList=U[2],this.matrix=U[3]||[1,0,0,1,0,0],this.bbox=U[4],this.xstep=U[5],this.ystep=U[6],this.paintType=U[7],this.tilingType=U[8],this.color=V,this.canvasGraphicsFactory=X,this.baseTransform=T,this.type="Pattern",this.ctx=ee}return Y.prototype={createPatternCanvas:function(V){var ee=this.operatorList,X=this.bbox,T=this.xstep,h=this.ystep,S=this.paintType,v=this.color,n=this.canvasGraphicsFactory;(0,t.info)("TilingType: "+this.tilingType);var d=X[0],g=X[1],k=X[2],M=X[3],G=t.Util.singularValueDecompose2dScale(this.matrix),P=t.Util.singularValueDecompose2dScale(this.baseTransform),B=[G[0]*P[0],G[1]*P[1]],K=this.getSizeAndScale(T,this.ctx.canvas.width,B[0]),te=this.getSizeAndScale(h,this.ctx.canvas.height,B[1]),ne=V.cachedCanvases.getCanvas("pattern",K.size,te.size,!0),Q=n.createCanvasGraphics(ne.context);return Q.groupLevel=V.groupLevel,this.setFillAndStrokeStyleToContext(Q,S,v),Q.transform(K.scale,0,0,te.scale,0,0),Q.transform(1,0,0,1,-d,-g),this.clipBbox(Q,X,d,g,k,M),Q.executeOperatorList(ee),this.ctx.transform(1,0,0,1,d,g),this.ctx.scale(1/K.scale,1/te.scale),ne.canvas},getSizeAndScale:function(V,ee,X){V=Math.abs(V);var T=Math.max(3e3,ee),h=Math.ceil(V*X);return h>=T?h=T:X=h/V,{scale:X,size:h}},clipBbox:function(V,ee,X,T,h,S){Array.isArray(ee)&&4===ee.length&&(V.ctx.rect(X,T,h-X,S-T),V.clip(),V.endPath())},setFillAndStrokeStyleToContext:function(V,ee,X){var T=V.ctx,h=V.current;switch(ee){case 1:var S=this.ctx;T.fillStyle=S.fillStyle,T.strokeStyle=S.strokeStyle,h.fillColor=S.fillStyle,h.strokeColor=S.strokeStyle;break;case 2:var u=t.Util.makeCssRgb(X[0],X[1],X[2]);T.fillStyle=u,T.strokeStyle=u,h.fillColor=u,h.strokeColor=u;break;default:throw new t.FormatError("Unsupported paint type: ".concat(ee))}},getPattern:function(V,ee){(V=this.ctx).setTransform.apply(V,this.baseTransform),V.transform.apply(V,this.matrix
1);var X=this.createPatternCanvas(ee);return V.createPattern(X,"repeat")}},Y}();o.TilingPattern=E},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GlobalWorkerOptions=void 0;var t=Object.create(null);o.GlobalWorkerOptions=t,t.workerPort=void 0===t.workerPort?null:t.workerPort,t.workerSrc=void 0===t.workerSrc?"":t.workerSrc},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.MessageHandler=void 0;var t=function l(X){return X&&X.__esModule?X:{default:X}}(e(2)),a=e(5);function y(X,T,h,S,u,v,n){try{var d=X[v](n),g=d.value}catch(k){return void h(k)}d.done?T(g):Promise.resolve(g).then(S,u)}function O(X,T){for(var h=0;h<T.length;h++){var S=T[h];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(X,S.key,S)}}function D(X){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(X)}function V(X){if("object"!==D(X)||null===X)return X;switch(X.name){case"AbortException":return new a.AbortException(X.message);case"MissingPDFException":return new a.MissingPDFException(X.message);case"UnexpectedResponseException":return new a.UnexpectedResponseException(X.message,X.status);case"UnknownErrorException":return new a.UnknownErrorException(X.message,X.details);default:return new a.UnknownErrorException(X.message,X.toString())}}var ee=function(){function X(T,h,S){var u=this;(function E(X,T){if(!(X instanceof T))throw new TypeError("Cannot call a class as a function")})(this,X),this.sourceName=T,this.targetName=h,this.comObj=S,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(v){var n=v.data;if(n.targetName===u.sourceName){if(n.stream)return void u._processStreamMessage(n);if(n.callback){var d=n.callbackId,g=u.callbackCapabilities[d];if(!g)throw new Error("Cannot resolve callback ".concat(d));if(delete u.callbackCapabilities[d],1===n.callback)g.resolve(n.data);else{if(2!==n.callback)throw new Error("Unexpected callback case");g.reject(V(n.reason))}return}var k=u.actionHandler[n.action];if(!k)throw new Error("Unknown action from worker: ".concat(n.action));if(n.callbackId){var M=u.sourceName,G=n.sourceName;return void new Promise(function(P){P(k(n.data))}).then(function(P){S.postMessage({sourceName:M,targetName:G,callback:1,callbackId:n.callbackId,data:P})},function(P){S.postMessage({sourceName:M,targetName:G,callback:2,callbackId:n.callbackId,reason:V(P)})})}if(n.streamId)return void u._createStreamSink(n);k(n.data)}},S.addEventListener("message",this._onComObjOnMessage)}return function w(X,T,h){T&&O(X.prototype,T),h&&O(X,h)}(X,[{key:"on",value:function(h,S){var u=this.actionHandler;if(u[h])throw new Error('There is already an actionName called "'.concat(h,'"'));u[h]=S}},{key:"send",value:function(h,S,u){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:h,data:S},u)}},{key:"sendWithPromise",value:function(h,S,u){var v=this.callbackId++,n=(0,a.createPromiseCapability)();this.callbackCapabilities[v]=n;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:h,callbackId:v,data:S},u)}catch(d){n.reject(d)}return n.promise}},{key:"sendWithStream",value:function(h,S,u,v){var n=this,d=this.streamId++,g=this.sourceName,k=this.targetName,M=this.comObj;return new ReadableStream({start:function(P){var B=(0,a.createPromiseCapability)();return n.streamControllers[d]={controller:P,startCall:B,pullCall:null,cancelCall:null,isClosed:!1},n._postMessage({sourceName:g,targetName:k,action:h,streamId:d,data:S,desiredSize:P.desiredSize},v),B.promise},pull:function(P){var B=(0,a.createPromiseCapability)();return n.streamControllers[d].pullCall=B,M.postMessage({sourceName:g,targetName:k,stream:6,streamId:d,desiredSize:P.desiredSize}),B.promise},cancel:function(P){(0,a.assert)(P instanceof Error,"cancel must have a valid reason");var B=(0,a.createPromiseCapability)();return n.streamControllers[d].cancelCall=B,n.streamControllers[d].isClosed=!0,M.postMessage({sourceName:g,targetName:k,stream:1,streamId:d,reason:V(P)}),B.promise}},u)}},{key:"_createStreamSink",value:function(h){var S=this,u=this.actionHandler[h.action],v=h.streamId,n=this.sourceName,d=h.sourceName,g=this.comObj,k={enqueue:function(G){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,B=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var K=this.desiredSize;this.desiredSize-=P,K>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),S._postMessage({sourceName:n,targetName:d,stream:4,streamId:v,chunk:G},B)}},close:function(){this.isCancelled||(this.isCancelled=!0,g.postMessage({sourceName:n,targetName:d,stream:3,streamId:v}),delete S.streamSinks[v])},error:function(G){(0,a.assert)(G instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,g.postMessage({sourceName:n,targetName:d,stream:5,streamId:v,reason:V(G)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:h.desiredSize,ready:null};k.sinkCapability.resolve(),k.ready=k.sinkCapability.promise,this.streamSinks[v]=k,new Promise(function(M){M(u(h.data,k))}).then(function(){g.postMessage({sourceName:n,targetName:d,stream:8,streamId:v,success:!0})},function(M){g.postMessage({sourceName:n,targetName:d,stream:8,streamId:v,reason:V(M)})})}},{key:"_processStreamMessage",value:function(h){var S=h.streamId,u=this.sourceName,v=h.sourceName,n=this.comObj;switch(h.stream){case 8:h.success?this.streamControllers[S].startCall.resolve():this.streamControllers[S].startCall.reject(V(h.reason));break;case 7:h.success?this.streamControllers[S].pullCall.resolve():this.streamControllers[S].pullCall.reject(V(h.reason));break;case 6:if(!this.streamSinks[S]){n.postMessage({sourceName:u,targetName:v,stream:7,streamId:S,success:!0});break}this.streamSinks[S].desiredSize<=0&&h.desiredSize>0&&this.streamSinks[S].sinkCapability.resolve(),this.streamSinks[S].desiredSize=h.desiredSize;var d=this.streamSinks[h.streamId].onPull;new Promise(function(k){k(d&&d())}).then(function(){n.postMessage({sourceName:u,targetName:v,stream:7,streamId:S,success:!0})},function(k){n.postMessage({sourceName:u,targetName:v,stream:7,streamId:S,reason:V(k)})});break;case 4:if((0,a.assert)(this.streamControllers[S],"enqueue should have stream controller"),this.streamControllers[S].isClosed)break;this.streamControllers[S].controller.enqueue(h.chunk);break;case 3:if((0,a.assert)(this.streamControllers[S],"close should have stream controller"),this.streamControllers[S].isClosed)break;this.streamControllers[S].isClosed=!0,this.streamControllers[S].controller.close(),this._deleteStreamController(S);break;case 5:(0,a.assert)(this.streamControllers[S],"error should have stream controller"),this.streamControllers[S].controller.error(V(h.reason)),this._deleteStreamController(S);break;case 2:h.success?this.streamControllers[S].cancelCall.resolve():this.streamControllers[S].cancelCall.reject(V(h.reason)),this._deleteStreamController(S);break;case 1:if(!this.streamSinks[S])break;var g=this.streamSinks[h.streamId].onCancel;new Promise(function(k){k(g&&g(V(h.reason)))}).then(function(){n.postMessage({sourceName:u,targetName:v,stream:2,streamId:S,success:!0})},function(k){n.postMessage({sourceName:u,targetName:v,stream:2,streamId:S,reason:V(k)})}),this.streamSinks[S].sinkCapability.reject(V(h.reason)),this.streamSinks[S].isCancelled=!0,delete this.streamSinks[S];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(T=function x(X){return function(){var T=this,h=arguments;return new Promise(function(S,u){var v=X.apply(T,h);function n(g){y(v,S,u,n,d,"next",g)}function d(g){y(v,S,u,n,d,"throw",g)}n(void 0)})}}(t.default.mark(function S(u){return t.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.allSettled([this.streamControllers[u].startCall,this.streamControllers[u].pullCall,this.streamControllers[u].cancelCall].map(function(d){return d&&d.promise}));case 2:delete this.streamControllers[u];case 3:case"end":return n.stop()}},S,this)})),function h(S){return T.apply(this,arguments)})},{key:"_postMessage",value:function(h,S){S&&this.postMessageTransfers?this.comObj.postMessage(h,S):this.comObj.postMessage(h)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),X;var T}();o.MessageHandler=ee},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Metadata=void 0;var t=e(5),a=e(206);function l(X,T){return function E(X){if(Array.isArray(X))return X}(X)||function x(X,T){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(X)){var h=[],S=!0,u=!1,v=void 0;try{for(var d,n=X[Symbol.iterator]();!(S=(d=n.next()).done)&&(h.push(d.value),!T||h.length!==T);S=!0);}catch(g){u=!0,v=g}finally{try{!S&&null!=n.return&&n.return()}finally{if(u)throw v}}return h}}(X,T)||w(X,T)||function y(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(X,T){if(X){if("string"==typeof X)return D(X,T);var h=Object.prototype.toString.call(X).slice(8,-1);if("Object"===h&&X.constructor&&(h=X.constructor.name),"Map"===h||"Set"===h)return Array.from(X);if("Arguments"===h||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return D(X,T)}}function D(X,T){(null==T||T>X.length)&&(T=X.length);for(var h=0,S=new Array(T);h<T;h++)S[h]=X[h];return S}function U(X,T){for(var h=0;h<T.length;h++){var S=T[h];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(X,S.key,S)}}o.Metadata=function(){function X(T){(function Y(X,T){if(!(X instanceof T))throw new TypeError("Cannot call a class as a function")})(this,X),(0,t.assert)("string"==typeof T,"Metadata: input is not a string"),T=this._repair(T);var S=(new a.SimpleXMLParser).parseFromString(T);this._metadataMap=new Map,S&&this._parse(S)}return function V(X,T,h){T&&U(X.prototype,T),h&&U(X,h)}(X,[{key:"_repair",value:function(h){return h.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(S,u){for(var v=u.replace(/\\([0-3])([0-7])([0-7])/g,function(M,G,P,B){return String.fromCharCode(64*G+8*P+1*B)}).replace(/&(amp|apos|gt|lt|quot);/g,function(M,G){switch(G){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(G," isn't defined."))}),n="",d=0,g=v.length;d<g;d+=2){var k=256*v.charCodeAt(d)+v.charCodeAt(d+1);n+=k>=32&&k<127&&60!==k&&62!==k&&38!==k?String.fromCharCode(k):"&#x"+(65536+k).toString(16).substring(1)+";"}return">"+n})}},{key:"_parse",value:function(h){var S=h.documentElement;if("rdf:rdf"!==S.nodeName.toLowerCase())for(S=S.firstChild;S&&"rdf:rdf"!==S.nodeName.toLowerCase();)S=S.nextSibling;var u=S?S.nodeName.toLowerCase():null;if(S&&"rdf:rdf"===u&&S.hasChildNodes())for(var v=S.childNodes,n=0,d=v.length;n<d;n++){var g=v[n];if("rdf:description"===g.nodeName.toLowerCase())for(var k=0,M=g.childNodes.length;k<M;k++)if("#text"!==g.childNodes[k].nodeName.toLowerCase()){var G=g.childNodes[k],P=G.nodeName.toLowerCase();this._metadataMap.set(P,G.textContent.trim())}}}},{key:"get",value:function(h){return this._metadataMap.has(h)?this._metadataMap.get(h):null}},{key:"getAll",value:function(){var u,h=Object.create(null),S=function O(X,T){var h;if(typeof Symbol>"u"||null==X[Symbol.iterator]){if(Array.isArray(X)||(h=w(X))||T&&X&&"number"==typeof X.length){h&&(X=h);var S=0,u=function(){};return{s:u,n:function(){return S>=X.length?{done:!0}:{done:!1,value:X[S++]}},e:function(k){throw k},f:u}}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 d,v=!0,n=!1;return{s:function(){h=X[Symbol.iterator]()},n:function(){var k=h.next();return v=k.done,k},e:function(k){n=!0,d=k},f:function(){try{!v&&null!=h.return&&h.return()}finally{if(n)throw d}}}}(this._metadataMap);try{for(S.s();!(u=S.n()).done;){var v=l(u.value,2);h[v[0]]=v[1]}}catch(g){S.e(g)}finally{S.f()}return h}},{key:"has",value:function(h){return this._metadataMap.has(h)}}]),X}()},function(b,o,e){"use strict";function t(P){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(P)}function x(P,B){(null==B||B>P.length)&&(B=P.length);for(var K=0,te=new Array(B);K<B;K++)te[K]=P[K];return te}function w(P,B,K){return w=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(ne,j,Q){var I=function D(P,B){for(;!Object.prototype.hasOwnProperty.call(P,B)&&null!==(P=h(P)););return P}(ne,j);if(I){var R=Object.getOwnPropertyDescriptor(I,j);return R.get?R.get.call(Q):R.value}},w(P,B,K||P)}function U(P,B){return(U=Object.setPrototypeOf||function(te,ne){return te.__proto__=ne,te})(P,B)}function ee(P,B){return!B||"object"!==t(B)&&"function"!=typeof B?function X(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P):B}
1function h(P){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)})(P)}function S(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}function u(P,B){for(var K=0;K<B.length;K++){var te=B[K];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(P,te.key,te)}}function v(P,B,K){return B&&u(P.prototype,B),K&&u(P,K),P}Object.defineProperty(o,"__esModule",{value:!0}),o.SimpleXMLParser=void 0;function d(P,B){var K=P[B];return" "===K||"\n"===K||"\r"===K||"\t"===K}var k=function(){function P(){S(this,P)}return v(P,[{key:"_resolveEntities",value:function(K){var te=this;return K.replace(/&([^;]+);/g,function(ne,j){if("#x"===j.substring(0,2))return String.fromCharCode(parseInt(j.substring(2),16));if("#"===j.substring(0,1))return String.fromCharCode(parseInt(j.substring(1),10));switch(j){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return te.onResolveEntity(j)})}},{key:"_parseContent",value:function(K,te){var ne=[],j=te;function Q(){for(;j<K.length&&d(K,j);)++j}for(;j<K.length&&!d(K,j)&&">"!==K[j]&&"/"!==K[j];)++j;var I=K.substring(te,j);for(Q();j<K.length&&">"!==K[j]&&"/"!==K[j]&&"?"!==K[j];){Q();for(var C,R="";j<K.length&&!d(K,j)&&"="!==K[j];)R+=K[j],++j;if(Q(),"="!==K[j])return null;++j,Q();var p=K[j];if('"'!==p&&"'"!==p)return null;var i=K.indexOf(p,++j);if(i<0)return null;C=K.substring(j,i),ne.push({name:R,value:this._resolveEntities(C)}),j=i+1,Q()}return{name:I,attributes:ne,parsed:j-te}}},{key:"_parseProcessingInstruction",value:function(K,te){for(var ne=te;ne<K.length&&!d(K,ne)&&">"!==K[ne]&&"/"!==K[ne];)++ne;var Q=K.substring(te,ne);!function j(){for(;ne<K.length&&d(K,ne);)++ne}();for(var I=ne;ne<K.length&&("?"!==K[ne]||">"!==K[ne+1]);)++ne;return{name:Q,value:K.substring(I,ne),parsed:ne-te}}},{key:"parseXml",value:function(K){for(var te=0;te<K.length;){var j=te;if("<"===K[te]){var I=void 0;switch(K[++j]){case"/":if(++j,(I=K.indexOf(">",j))<0)return void this.onError(-9);this.onEndElement(K.substring(j,I)),j=I+1;break;case"?":++j;var R=this._parseProcessingInstruction(K,j);if("?>"!==K.substring(j+R.parsed,j+R.parsed+2))return void this.onError(-3);this.onPi(R.name,R.value),j+=R.parsed+2;break;case"!":if("--"===K.substring(j+1,j+3)){if((I=K.indexOf("--\x3e",j+3))<0)return void this.onError(-5);this.onComment(K.substring(j+3,I)),j=I+3}else if("[CDATA["===K.substring(j+1,j+8)){if((I=K.indexOf("]]>",j+8))<0)return void this.onError(-2);this.onCdata(K.substring(j+8,I)),j=I+3}else{if("DOCTYPE"!==K.substring(j+1,j+8))return void this.onError(-6);var C=K.indexOf("[",j+8),p=!1;if((I=K.indexOf(">",j+8))<0)return void this.onError(-4);if(C>0&&I>C){if((I=K.indexOf("]>",j+8))<0)return void this.onError(-4);p=!0}var i=K.substring(j+8,I+(p?1:0));this.onDoctype(i),j=I+(p?2:1)}break;default:var s=this._parseContent(K,j);if(null===s)return void this.onError(-6);var f=!1;if("/>"===K.substring(j+s.parsed,j+s.parsed+2))f=!0;else if(">"!==K.substring(j+s.parsed,j+s.parsed+1))return void this.onError(-9);this.onBeginElement(s.name,s.attributes,f),j+=s.parsed+(f?2:1)}}else{for(;j<K.length&&"<"!==K[j];)j++;var m=K.substring(te,j);this.onText(this._resolveEntities(m))}te=j}}},{key:"onResolveEntity",value:function(K){return"&".concat(K,";")}},{key:"onPi",value:function(K,te){}},{key:"onComment",value:function(K){}},{key:"onCdata",value:function(K){}},{key:"onDoctype",value:function(K){}},{key:"onText",value:function(K){}},{key:"onBeginElement",value:function(K,te,ne){}},{key:"onEndElement",value:function(K){}},{key:"onError",value:function(K){}}]),P}(),M=function(){function P(B,K){S(this,P),this.nodeName=B,this.nodeValue=K,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}return v(P,[{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var K=this.parentNode.childNodes;if(K){var te=K.indexOf(this);if(-1!==te)return K[te+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map(function(K){return K.textContent}).join(""):this.nodeValue||""}}]),P}();o.SimpleXMLParser=function(P){!function Y(P,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(B&&B.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),B&&U(P,B)}(K,P);var B=function V(P){var B=function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var ne,te=h(P);if(B){var j=h(this).constructor;ne=Reflect.construct(te,arguments,j)}
1else ne=te.apply(this,arguments);return ee(this,ne)}}(K);function K(){var te;return S(this,K),(te=B.call(this))._currentFragment=null,te._stack=null,te._errorCode=0,te}return v(K,[{key:"parseFromString",value:function(ne){if(this._currentFragment=[],this._stack=[],this._errorCode=0,this.parseXml(ne),0===this._errorCode){var Q=function a(P,B){return function O(P){if(Array.isArray(P))return P}(P)||function E(P,B){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(P)){var K=[],te=!0,ne=!1,j=void 0;try{for(var I,Q=P[Symbol.iterator]();!(te=(I=Q.next()).done)&&(K.push(I.value),!B||K.length!==B);te=!0);}catch(R){ne=!0,j=R}finally{try{!te&&null!=Q.return&&Q.return()}finally{if(ne)throw j}}return K}}(P,B)||function y(P,B){if(P){if("string"==typeof P)return x(P,B);var K=Object.prototype.toString.call(P).slice(8,-1);if("Object"===K&&P.constructor&&(K=P.constructor.name),"Map"===K||"Set"===K)return Array.from(P);if("Arguments"===K||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return x(P,B)}}(P,B)||function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._currentFragment,1)[0];if(Q)return{documentElement:Q}}}},{key:"onResolveEntity",value:function(ne){return"apos"===ne?"'":w(h(K.prototype),"onResolveEntity",this).call(this,ne)}},{key:"onText",value:function(ne){if(!function g(P){for(var B=0,K=P.length;B<K;B++)if(!d(P,B))return!1;return!0}(ne)){var j=new M("#text",ne);this._currentFragment.push(j)}}},{key:"onCdata",value:function(ne){var j=new M("#text",ne);this._currentFragment.push(j)}},{key:"onBeginElement",value:function(ne,j,Q){var I=new M(ne);I.childNodes=[],this._currentFragment.push(I),!Q&&(this._stack.push(this._currentFragment),this._currentFragment=I.childNodes)}},{key:"onEndElement",value:function(ne){this._currentFragment=this._stack.pop()||[];var j=this._currentFragment[this._currentFragment.length-1];if(j)for(var Q=0,I=j.childNodes.length;Q<I;Q++)j.childNodes[Q].parentNode=j}},{key:"onError",value:function(ne){this._errorCode=ne}}]),K}(k)},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PDFDataTransportStream=void 0;var t=function l(T){return T&&T.__esModule?T:{default:T}}(e(2)),a=e(5);function y(T,h,S,u,v,n,d){try{var g=T[n](d),k=g.value}catch(M){return void S(M)}g.done?h(k):Promise.resolve(k).then(u,v)}function x(T){return function(){var h=this,S=arguments;return new Promise(function(u,v){var n=T.apply(h,S);function d(k){y(n,u,v,d,g,"next",k)}function g(k){y(n,u,v,d,g,"throw",k)}d(void 0)})}}function E(T,h){var S;if(typeof Symbol>"u"||null==T[Symbol.iterator]){if(Array.isArray(T)||(S=function O(T,h){if(T){if("string"==typeof T)return w(T,h);var S=Object.prototype.toString.call(T).slice(8,-1);if("Object"===S&&T.constructor&&(S=T.constructor.name),"Map"===S||"Set"===S)return Array.from(T);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return w(T,h)}}(T))||h&&T&&"number"==typeof T.length){S&&(T=S);var u=0,v=function(){};return{s:v,n:function(){return u>=T.length?{done:!0}:{done:!1,value:T[u++]}},e:function(M){throw M},f:v}}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 g,n=!0,d=!1;return{s:function(){S=T[Symbol.iterator]()},n:function(){var M=S.next();return n=M.done,M},e:function(M){d=!0,g=M},f:function(){try{!n&&null!=S.return&&S.return()}finally{if(d)throw g}}}}function w(T,h){(null==h||h>T.length)&&(h=T.length);for(var S=0,u=new Array(h);S<h;S++)u[S]=T[S];return u}function D(T,h){if(!(T instanceof h))throw new TypeError("Cannot call a class as a function")}function Y(T,h){for(var S=0;S<h.length;S++){var u=h[S];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(T,u.key,u)}}function U(T,h,S){return h&&Y(T.prototype,h),S&&Y(T,S),T}o.PDFDataTransportStream=function(){function T(h,S){var u=this;D(this,T),(0,a.assert)(S,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=h.progressiveDone||!1;var v=h.initialData;if(v&&v.length>0){var n=new Uint8Array(v).buffer;this._queuedChunks.push(n)}this._pdfDataRangeTransport=S,this._isStreamingSupported=!h.disableStream,this._isRangeSupported=!h.disableRange,this._contentLength=h.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(d,g){u._onReceiveData({begin:d,chunk:g})}),this._pdfDataRangeTransport.addProgressListener(function(d,g){u._onProgress({loaded:d,total:g})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(d){u._onReceiveData({chunk:d})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){u._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return U(T,[{key:"_onReceiveData",value:function(S){var u=new Uint8Array(S.chunk).buffer;if(void 0===S.begin)this._fullRequestReader?this._fullRequestReader._enqueue(u):this._queuedChunks.push(u);else{var v=this._rangeReaders.some(function(n){return n._begin===S.begin&&(n._enqueue(u),!0)});(0,a.assert)(v,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_onProgress",value:function(S){if(void 0===S.total){var u=this._rangeReaders[0];u&&u.onProgress&&u.onProgress({loaded:S.loaded})}else{var v=this._fullRequestReader;v&&v.onProgress&&v.onProgress({loaded:S.loaded,total:S.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(S){var u=this._rangeReaders.indexOf(S);u>=0&&this._rangeReaders.splice(u,1)}},{key:"getFullReader",value:function(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var S=this._queuedChunks;return this._queuedChunks=null,new ee(this,S,this._progressiveDone)}},{key:"getRangeReader",value:function(S,u){if(u<=this._progressiveDataLength)return null;var v=new X(this,S,u);return this._pdfDataRangeTransport.requestDataRange(S,u),this._rangeReaders.push(v),v}},{key:"cancelAllRequests",value:function(S){this._fullRequestReader&&this._fullRequestReader.cancel(S),this._rangeReaders.slice(0).forEac
1h(function(v){v.cancel(S)}),this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),T}();var ee=function(){function T(h,S){var u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];D(this,T),this._stream=h,this._done=u||!1,this._filename=null,this._queuedChunks=S||[],this._loaded=0;var n,v=E(this._queuedChunks);try{for(v.s();!(n=v.n()).done;){var d=n.value;this._loaded+=d.byteLength}}catch(g){v.e(g)}finally{v.f()}this._requests=[],this._headersReady=Promise.resolve(),h._fullRequestReader=this,this.onProgress=null}return U(T,[{key:"_enqueue",value:function(S){this._done||(this._requests.length>0?this._requests.shift().resolve({value:S,done:!1}):this._queuedChunks.push(S),this._loaded+=S.byteLength)}},{key:"read",value:(h=x(t.default.mark(function u(){var v,n;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!(this._queuedChunks.length>0)){g.next=3;break}return v=this._queuedChunks.shift(),g.abrupt("return",{value:v,done:!1});case 3:if(!this._done){g.next=5;break}return g.abrupt("return",{value:void 0,done:!0});case 5:return n=(0,a.createPromiseCapability)(),this._requests.push(n),g.abrupt("return",n.promise);case 8:case"end":return g.stop()}},u,this)})),function S(){return h.apply(this,arguments)})},{key:"cancel",value:function(S){this._done=!0,this._requests.forEach(function(u){u.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}}]),T;var h}(),X=function(){function T(h,S,u){D(this,T),this._stream=h,this._begin=S,this._end=u,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return U(T,[{key:"_enqueue",value:function(S){this._done||(0===this._requests.length?this._queuedChunk=S:(this._requests.shift().resolve({value:S,done:!1}),this._requests.forEach(function(v){v.resolve({value:void 0,done:!0})}),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}},{key:"read",value:(h=x(t.default.mark(function u(){var v,n;return t.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!this._queuedChunk){g.next=4;break}return v=this._queuedChunk,this._queuedChunk=null,g.abrupt("return",{value:v,done:!1});case 4:if(!this._done){g.next=6;break}return g.abrupt("return",{value:void 0,done:!0});case 6:return n=(0,a.createPromiseCapability)(),this._requests.push(n),g.abrupt("return",n.promise);case 9:case"end":return g.stop()}},u,this)})),function S(){return h.apply(this,arguments)})},{key:"cancel",value:function(S){this._done=!0,this._requests.forEach(function(u){u.resolve({value:void 0,done:!0})}),this._requests=[],this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]),T;var h}()},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.WebGLContext=void 0;var t=e(5);function l(O,w){for(var D=0;D<w.length;D++){var Y=w[D];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(O,Y.key,Y)}}o.WebGLContext=function(){function O(w){var D=w.enable,Y=void 0!==D&&D;(function a(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")})(this,O),this._enabled=!0===Y}return function y(O,w,D){w&&l(O.prototype,w),D&&l(O,D)}(O,[{key:"composeSMask",value:function(D){return E.composeSMask(D.layer,D.mask,D.properties)}},{key:"drawFigures",value:function(D){return E.drawFigures(D.width,D.height,D.backgroundColor,D.figures,D.context)}},{key:"clear",value:function(){E.cleanup()}},{key:"isEnabled",get:function(){var D=this._enabled;return D&&(D=E.tryInitGL()),(0,t.shadow)(this,"isEnabled",D)}}]),O}();var E=function(){function w(P,B,K){var te=P.createShader(K);if(P.shaderSource(te,B),P.compileShader(te),!P.getShaderParameter(te,P.COMPILE_STATUS)){var j=P.getShaderInfoLog(te);throw new Error("Error during shader compilation: "+j)}return te}function D(P,B){return w(P,B,P.VERTEX_SHADER)}function Y(P,B){return w(P,B,P.FRAGMENT_SHADER)}function U(P,B){for(var K=P.createProgram(),te=0,ne=B.length;te<ne;++te)P.attachShader(K,B[te]);if(P.linkProgram(K),!P.getProgramParameter(K,P.LINK_STATUS)){var Q=P.getProgramInfoLog(K);throw new Error("Error during program linking: "+Q)}return K}function V(P,B,K){P.activeTexture(K);var te=P.createTexture();return P.bindTexture(P.TEXTURE_2D,te),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texImage2D(P.TEXTURE_2D,0,P.RGBA,P.RGBA,P.UNSIGNED_BYTE,B),te}var ee,X;function T(){ee||(X=document.createElement("canvas"),ee=X.getContext("webgl",{premultipliedalpha:!1}))}var u=null,k=null;return{tryInitGL:function(){try{return T(),!!ee}catch{}return!1},composeSMask:function n(P,B,K){var te=P.width,ne=P.height;u||function v(){var P,B;T(),P=X,X=null,B=ee,ee=null;var ne=U(B,[D(B,"  attribute vec2 a_position;                                      attribute vec2 a_texCoord;                                                                                                      uniform vec2 u_resolution;                                                                                                      varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;       gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_texCoord = a_texCoord;                                      }                                                             "),Y(B,"  precision mediump float;                                                                                                        uniform vec4 u_backdrop;                                        uniform int u_subtype;                                          uniform sampler2D u_image;                                      uniform sampler2D u_mask;                                                                                                       varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec4 imageColor = texture2D(u_image, v_texCoord);               vec4 maskColor = texture2D(u_mask, v_texCoord);                 if (u_backdrop.a > 0.0) {                                         maskColor.rgb = maskColor.rgb * maskColor.a +                                   u_backdrop.rgb * (1.0 - maskColor.a);         }                                                               float lum;                                                      if (u_subtype == 0) {                                             lum = maskColor.a;                                            } else {                                                          lum = maskColor.r * 0.3 + maskColor.g * 0.59 +                        maskColor.b * 0.11;                                     }                                                               imageColor.a *= lum;                                            imageColor.rgb *= imageColor.a;                                 gl_FragColor = imageColor;                                    }                                                             ")]);B.useProgram(ne);var j={};j.gl=B,j.canvas=P,j.resolutionLocation=B.getUniformLocation(ne,"u_resolution"),j.positionLocation=B.getAttribLocation(ne,"a_position"),j.backdropLocation=B.getUniformLocation(ne,"u_backdrop"),j.subtypeLocation=B.getUniformLocation(ne,"u_subtype");var Q=B.getAttribLocation(ne,"a_texCoord"),I=B.getUniformLocation(ne,"u_image"),R=B.getUniformLocation(ne,"u_mask"),C=B.createBuffer();B.bindBuffer(B.ARRAY_BUFFER,C),B.bufferData(B.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),B.STATIC_DRAW),B.enableVertexAttribArray(Q),B.vertexAttribPointer(Q,2,B.FLOAT,!1,0,0),B.uniform1i(I,0
1),B.uniform1i(R,1),u=j}();var j=u,Q=j.canvas,I=j.gl;Q.width=te,Q.height=ne,I.viewport(0,0,I.drawingBufferWidth,I.drawingBufferHeight),I.uniform2f(j.resolutionLocation,te,ne),K.backdrop?I.uniform4f(j.resolutionLocation,K.backdrop[0],K.backdrop[1],K.backdrop[2],1):I.uniform4f(j.resolutionLocation,0,0,0,0),I.uniform1i(j.subtypeLocation,"Luminosity"===K.subtype?1:0);var R=V(I,P,I.TEXTURE0),C=V(I,B,I.TEXTURE1),p=I.createBuffer();return I.bindBuffer(I.ARRAY_BUFFER,p),I.bufferData(I.ARRAY_BUFFER,new Float32Array([0,0,te,0,0,ne,0,ne,te,0,te,ne]),I.STATIC_DRAW),I.enableVertexAttribArray(j.positionLocation),I.vertexAttribPointer(j.positionLocation,2,I.FLOAT,!1,0,0),I.clearColor(0,0,0,0),I.enable(I.BLEND),I.blendFunc(I.ONE,I.ONE_MINUS_SRC_ALPHA),I.clear(I.COLOR_BUFFER_BIT),I.drawArrays(I.TRIANGLES,0,6),I.flush(),I.deleteTexture(R),I.deleteTexture(C),I.deleteBuffer(p),Q},drawFigures:function G(P,B,K,te,ne){k||function M(){var P,B;T(),P=X,X=null,B=ee,ee=null;var ne=U(B,[D(B,"  attribute vec2 a_position;                                      attribute vec3 a_color;                                                                                                         uniform vec2 u_resolution;                                      uniform vec2 u_scale;                                           uniform vec2 u_offset;                                                                                                          varying vec4 v_color;                                                                                                           void main() {                                                     vec2 position = (a_position + u_offset) * u_scale;              vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;         gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_color = vec4(a_color / 255.0, 1.0);                         }                                                             "),Y(B,"  precision mediump float;                                                                                                        varying vec4 v_color;                                                                                                           void main() {                                                     gl_FragColor = v_color;                                       }                                                             ")]);B.useProgram(ne);var j={};j.gl=B,j.canvas=P,j.resolutionLocation=B.getUniformLocation(ne,"u_resolution"),j.scaleLocation=B.getUniformLocation(ne,"u_scale"),j.offsetLocation=B.getUniformLocation(ne,"u_offset"),j.positionLocation=B.getAttribLocation(ne,"a_position"),j.colorLocation=B.getAttribLocation(ne,"a_color"),k=j}();var j=k,Q=j.canvas,I=j.gl;Q.width=P,Q.height=B,I.viewport(0,0,I.drawingBufferWidth,I.drawingBufferHeight),I.uniform2f(j.resolutionLocation,P,B);var C,p,i,R=0;for(C=0,p=te.length;C<p;C++)switch(te[C].type){case"lattice":R+=((i=te[C].coords.length/te[C].verticesPerRow|0)-1)*(te[C].verticesPerRow-1)*6;break;case"triangles":R+=te[C].coords.length}var s=new Float32Array(2*R),f=new Uint8Array(3*R),m=ne.coords,z=ne.colors,_=0,J=0;for(C=0,p=te.length;C<p;C++){var $=te[C],q=$.coords,L=$.colors;switch($.type){case"lattice":var W=$.verticesPerRow;i=q.length/W|0;for(var A=1;A<i;A++)for(var F=A*W+1,N=1;N<W;N++,F++)s[_]=m[q[F-W-1]],s[_+1]=m[q[F-W-1]+1],s[_+2]=m[q[F-W]],s[_+3]=m[q[F-W]+1],s[_+4]=m[q[F-1]],s[_+5]=m[q[F-1]+1],f[J]=z[L[F-W-1]],f[J+1]=z[L[F-W-1]+1],f[J+2]=z[L[F-W-1]+2],f[J+3]=z[L[F-W]],f[J+4]=z[L[F-W]+1],f[J+5]=z[L[F-W]+2],f[J+6]=z[L[F-1]],f[J+7]=z[L[F-1]+1],f[J+8]=z[L[F-1]+2],s[_+6]=s[_+2],s[_+7]=s[_+3],s[_+8]=s[_+4],s[_+9]=s[_+5],s[_+10]=m[q[F]],s[_+11]=m[q[F]+1],f[J+9]=f[J+3],f[J+10]=f[J+4],f[J+11]=f[J+5],f[J+12]=f[J+6],f[J+13]=f[J+7],f[J+14]=f[J+8],f[J+15]=z[L[F]],f[J+16]=z[L[F]+1],f[J+17]=z[L[F]+2],_+=12,J+=18;break;case"triangles":for(var re=0,ie=q.length;re<ie;re++)s[_]=m[q[re]],s[_+1]=m[q[re]+1],f[J]=z[L[re]],f[J+1]=z[L[re]+1],f[J+2]=z[L[re]+2],_+=2,J+=3}}K?I.clearColor(K[0]/255,K[1]/255,K[2]/255,1):I.clearColor(0,0,0,0),I.clear(I.COLOR_BUFFER_BIT);var ce=I.createBuffer();I.bindBuffer(I.ARRAY_BUFFER,ce),I.bufferData(I.ARRAY_BUFFER,s,I.STATIC_DRAW),I.enableVertexAttribArray(j.positionLocation),I.vertexAttribPointer(j.positionLocation,2,I.FLOAT,!1,0,0);var ve=I.createBuffer();return I.bindBuffer(I.ARRAY_BUFFER,ve),I.bufferData(I.ARRAY_BUFFER,f,I.STATIC_DRAW),I.enableVertexAttribArray(j.colorLocation),I.vertexAttribPointer(j.colorLocation,3,I.UNSIGNED_BYTE,!1,0,0),I.uniform2f(j.scaleLocation,ne.scaleX,ne.scaleY),I.uniform2f(j.offsetLocation,ne.offsetX,ne.offsetY),I.drawArrays(I.TRIANGLES,0,R),I.flush(),I.deleteBuffer(ce),I.deleteBuffer(ve),Q},cleanup:function(){u&&u.canvas&&(u.canvas.width=0,u.canvas.height=0),k&&k.canvas&&(k.canvas.width=0,k.canvas.height=0),u=null,k=null}}}()},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AnnotationLayer=void 0;var t=e(1),a=e(5);function l(L,W){var A;if(typeof Symbol>"u"||null==L[Symbol.iterator]){if(Array.isArray(L)||(A=function y(L,W){if(L){if("string"==typeof L)return x(L,W);var A=Object.prototype.toString.call(L).slice(8,-1);if("Object"===A&&L.constructor&&(A=L.constructor.name),"Map"===A||"Set"===A)return Array.from(L);if("Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return x(L,W)}}(L))||W&&L&&"number"==typeof L.length){A&&(L=A);var F=0,N=function(){};return{s:N,n:function(){return F>=L.length?{done:!0}:{done:!1,value:L[F++]}},e:function(de){throw de},f:N}}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 ce,re=!0,ie=!1;return{s:function(){A=L[Symbol.iterator]()},n:function(){var de=A.next();return re=de.done,de},e:function(de){ie=!0,ce=de},f:function(){try{!re&&null!=A.return&&A.return()}finally{if(ie)throw ce}}}}function x(L,W){(null==W||W>L.length)&&(W=L.length);for(var A=0,F=new Array(W);A<W;A++)F[A]=L[A];return F}function E(L,W,A){return E=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(N,re,ie){var ce=function O(L,W){for(;!Object.prototype.hasOwnProperty.call(L,W)&&null!==(L=T(L)););return L}(N,re);if(ce){var ve=Object.getOwnPropertyDescriptor(ce,re);return ve.get?ve.get.call(ie):ve.value}},E(L,W,A||L)}function w(L){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(L)}function D(L,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(W&&W.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),W&&Y(L,W)}function Y(L,W){return(Y=Object.setPrototypeOf||function(F,N){return F.__proto__=N,F})(L,W)}function U(L){var W=function X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var N,F=T(L);if(W){var re=T(this).constructor;N=Reflect.construct(F,arguments,re)}else N=F.apply(this,arguments);return V(this,N)}}function V(L,W){return!W||"object"!==w(W)&&"function"!=typeof W?ee(L):W}function ee(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function T(L){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(L)}function h(L,W){if(!(L instanceof W))throw new TypeError("Cannot call a class as a function")}function S(L,W){for(var A=0;A<W.length;A++){var F=W[A];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(L,F.key,F)}}function u(L,W,A){return W&&S(L.prototype,W),A&&S(L,A),L}var v=function(){function L(){h(this,L)}return u(L,null,[{key:"create",value:function(A){switch(A.data.annotationType){case a.AnnotationType.LINK:return new d(A);case a.AnnotationType.TEXT:return new g(A);case a.AnnotationType.WIDGET:switch(A.data.fieldType){case"Tx":return new M(A);case"Btn":return A.data.radioButton?new P(A):A.data.checkBox?new G(A):new B(A);case"Ch":return new K(A)}return new k(A);case a.AnnotationType.POPUP:return new te(A);case a.AnnotationType.FREETEXT:return new j(A);case a.AnnotationType.LINE:return new Q(A);case a.AnnotationType.SQUARE:return new I(A);case a.AnnotationType.CIRCLE:return new R(A);case a.AnnotationType.POLYLINE:return new C(A);case a.AnnotationType.CARET:return new i(A);case a.AnnotationType.INK:return new s(A);case a.AnnotationType.POLYGON:return new p(A);case a.AnnotationType.HIGHLIGHT:return new f(A);case a.AnnotationType.UNDERLINE:return new m(A);case a.AnnotationType.SQUIGGLY:return new z(A);case a.AnnotationType.STRIKEOUT:return new _(A);
1case a.AnnotationType.STAMP:return new J(A);case a.AnnotationType.FILEATTACHMENT:return new $(A);default:return new n(A)}}}]),L}(),n=function(){function L(W){var A=arguments.length>1&&void 0!==arguments[1]&&arguments[1],F=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(this,L),this.isRenderable=A,this.data=W.data,this.layer=W.layer,this.page=W.page,this.viewport=W.viewport,this.linkService=W.linkService,this.downloadManager=W.downloadManager,this.imageResourcesPath=W.imageResourcesPath,this.renderInteractiveForms=W.renderInteractiveForms,this.svgFactory=W.svgFactory,A&&(this.container=this._createContainer(F))}return u(L,[{key:"_createContainer",value:function(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0],F=this.data,N=this.page,re=this.viewport,ie=document.createElement("section"),ce=F.rect[2]-F.rect[0],ve=F.rect[3]-F.rect[1];ie.setAttribute("data-annotation-id",F.id);var de=a.Util.normalizeRect([F.rect[0],N.view[3]-F.rect[1]+N.view[1],F.rect[2],N.view[3]-F.rect[3]+N.view[1]]);if(ie.style.transform="matrix(".concat(re.transform.join(","),")"),ie.style.transformOrigin="-".concat(de[0],"px -").concat(de[1],"px"),!A&&F.borderStyle.width>0){ie.style.borderWidth="".concat(F.borderStyle.width,"px"),F.borderStyle.style!==a.AnnotationBorderStyleType.UNDERLINE&&(ce-=2*F.borderStyle.width,ve-=2*F.borderStyle.width);var Te=F.borderStyle.horizontalCornerRadius,Oe=F.borderStyle.verticalCornerRadius;if(Te>0||Oe>0){var Ue="".concat(Te,"px / ").concat(Oe,"px");ie.style.borderRadius=Ue}switch(F.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:ie.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:ie.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:ie.style.borderBottomStyle="solid"}F.color?ie.style.borderColor=a.Util.makeCssRgb(0|F.color[0],0|F.color[1],0|F.color[2]):ie.style.borderWidth=0}return ie.style.left="".concat(de[0],"px"),ie.style.top="".concat(de[1],"px"),ie.style.width="".concat(ce,"px"),ie.style.height="".concat(ve,"px"),ie}},{key:"_createPopup",value:function(A,F,N){F||((F=document.createElement("div")).style.height=A.style.height,F.style.width=A.style.width,A.appendChild(F));var ie=new ne({container:A,trigger:F,color:N.color,title:N.title,modificationDate:N.modificationDate,contents:N.contents,hideWrapper:!0}).render();ie.style.left=A.style.width,A.appendChild(ie)}},{key:"render",value:function(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}}]),L}(),d=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.url||F.data.dest||F.data.action))}return u(A,[{key:"render",value:function(){this.container.className="linkAnnotation";var N=this.data,re=this.linkService,ie=document.createElement("a");return N.url?(0,t.addLinkAttributes)(ie,{url:N.url,target:N.newWindow?t.LinkTarget.BLANK:re.externalLinkTarget,rel:re.externalLinkRel,enabled:re.externalLinkEnabled}):N.action?this._bindNamedAction(ie,N.action):this._bindLink(ie,N.dest),this.container.appendChild(ie),this.container}},{key:"_bindLink",value:function(N,re){var ie=this;N.href=this.linkService.getDestinationHash(re),N.onclick=function(){return re&&ie.linkService.navigateTo(re),!1},re&&(N.className="internalLink")}},{key:"_bindNamedAction",value:function(N,re){var ie=this;N.href=this.linkService.getAnchorUrl(""),N.onclick=function(){return ie.linkService.executeNamedAction(re),!1},N.className="internalLink"}}]),A}(n),g=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents))}return u(A,[{key:"render",value:function(){this.container.className="textAnnotation";var N=document.createElement("img");return N.style.height=this.container.style.height,N.style.width=this.container.style.width,N.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",N.alt="[{{type}} Annotation]",N.dataset.l10nId="text_annotation_type",N.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,N,this.data),this.container.appendChild(N),this.container}}
1]),A}(n),k=function(L){D(A,L);var W=U(A);function A(){return h(this,A),W.apply(this,arguments)}return u(A,[{key:"render",value:function(){return this.container}}]),A}(n),M=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,F.renderInteractiveForms||!F.data.hasAppearance&&!!F.data.fieldValue)}return u(A,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var re=null;if(this.renderInteractiveForms){if(this.data.multiLine?(re=document.createElement("textarea")).textContent=this.data.fieldValue:((re=document.createElement("input")).type="text",re.setAttribute("value",this.data.fieldValue)),re.disabled=this.data.readOnly,re.name=this.data.fieldName,null!==this.data.maxLen&&(re.maxLength=this.data.maxLen),this.data.comb){var ce=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;re.classList.add("comb"),re.style.letterSpacing="calc(".concat(ce,"px - 1ch)")}}else{(re=document.createElement("div")).textContent=this.data.fieldValue,re.style.verticalAlign="middle",re.style.display="table-cell";var ve=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(ve=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(re,ve)}return null!==this.data.textAlignment&&(re.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(re),this.container}},{key:"_setTextStyle",value:function(N,re){var ie=N.style;if(ie.fontSize="".concat(this.data.fontSize,"px"),ie.direction=this.data.fontDirection<0?"rtl":"ltr",re){var ce="normal";re.black?ce="900":re.bold&&(ce="bold"),ie.fontWeight=ce,ie.fontStyle=re.italic?"italic":"normal";var ve=re.loadedName?'"'.concat(re.loadedName,'", '):"";ie.fontFamily=ve+(re.fallbackName||"Helvetica, sans-serif")}}}]),A}(k),G=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,F.renderInteractiveForms)}return u(A,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var N=document.createElement("input");return N.disabled=this.data.readOnly,N.type="checkbox",N.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&N.setAttribute("checked",!0),this.container.appendChild(N),this.container}}]),A}(k),P=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,F.renderInteractiveForms)}return u(A,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var N=document.createElement("input");return N.disabled=this.data.readOnly,N.type="radio",N.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&N.setAttribute("checked",!0),this.container.appendChild(N),this.container}}]),A}(k),B=function(L){D(A,L);var W=U(A);function A(){return h(this,A),W.apply(this,arguments)}return u(A,[{key:"render",value:function(){var N=E(T(A.prototype),"render",this).call(this);return N.className="buttonWidgetAnnotation pushButton",N}}]),A}(d),K=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,F.renderInteractiveForms)}return u(A,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var N=document.createElement("select");N.disabled=this.data.readOnly,N.name=this.data.fieldName,this.data.combo||(N.size=this.data.options.length,this.data.multiSelect&&(N.multiple=!0));var ie,re=l(this.data.options);try{for(re.s();!(ie=re.n()).done;){var ce=ie.value,ve=document.createElement("option");ve.textContent=ce.displayValue,ve.value=ce.exportValue,this.data.fieldValue.includes(ce.displayValue)&&ve.setAttribute("selected",!0),N.appendChild(ve)}}catch(de){re.e(de)}finally{re.f()}return this.container.appendChild(N),this.container}}]),A}(k),te=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!(!F.data.title&&!F.data.contents))}return u(A,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var re='[data-annotation-id="'.concat(this.data.parentId,'"]'),ie=this.layer.querySelector(re);if(!ie)return this.container;var ce=new ne({container:this.container,trigger:ie,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),ve=parseFloat(ie.style.left),de=parseFloat(ie.style.width);return this.container.style.transformOrigin="-".concat(ve+de,"px -").concat(ie.style.top),this.container.style.left="".concat(ve+de,"px"),this.container.appendChild(ce.render()),this.container}}
1]),A}(n),ne=function(){function L(W){h(this,L),this.container=W.container,this.trigger=W.trigger,this.color=W.color,this.title=W.title,this.modificationDate=W.modificationDate,this.contents=W.contents,this.hideWrapper=W.hideWrapper||!1,this.pinned=!1}return u(L,[{key:"render",value:function(){var F=document.createElement("div");F.className="popupWrapper",this.hideElement=this.hideWrapper?F:this.container,this.hideElement.setAttribute("hidden",!0);var N=document.createElement("div");N.className="popup";var re=this.color;re&&(N.style.backgroundColor=a.Util.makeCssRgb(0|.7*(255-re[0])+re[0],0|.7*(255-re[1])+re[1],0|.7*(255-re[2])+re[2]));var de=document.createElement("h1");de.textContent=this.title,N.appendChild(de);var Te=t.PDFDateString.toDateObject(this.modificationDate);if(Te){var Oe=document.createElement("span");Oe.textContent="{{date}}, {{time}}",Oe.dataset.l10nId="annotation_date_string",Oe.dataset.l10nArgs=JSON.stringify({date:Te.toLocaleDateString(),time:Te.toLocaleTimeString()}),N.appendChild(Oe)}var Ue=this._formatContents(this.contents);return N.appendChild(Ue),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),N.addEventListener("click",this._hide.bind(this,!0)),F.appendChild(N),F}},{key:"_formatContents",value:function(A){for(var F=document.createElement("p"),N=A.split(/(?:\r\n?|\n)/),re=0,ie=N.length;re<ie;++re)F.appendChild(document.createTextNode(N[re])),re<ie-1&&F.appendChild(document.createElement("br"));return F}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];A&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var A=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];A&&(this.pinned=!1),!this.hideElement.hasAttribute("hidden")&&!this.pinned&&(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}]),L}(),j=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),A}(n),Q=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){this.container.className="lineAnnotation";var N=this.data,ce=this.svgFactory.create(N.rect[2]-N.rect[0],N.rect[3]-N.rect[1]),ve=this.svgFactory.createElement("svg:line");return ve.setAttribute("x1",N.rect[2]-N.lineCoordinates[0]),ve.setAttribute("y1",N.rect[3]-N.lineCoordinates[1]),ve.setAttribute("x2",N.rect[2]-N.lineCoordinates[2]),ve.setAttribute("y2",N.rect[3]-N.lineCoordinates[3]),ve.setAttribute("stroke-width",N.borderStyle.width||1),ve.setAttribute("stroke","transparent"),ce.appendChild(ve),this.container.append(ce),this._createPopup(this.container,ve,N),this.container}}]),A}(n),I=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){this.container.className="squareAnnotation";var N=this.data,re=N.rect[2]-N.rect[0],ie=N.rect[3]-N.rect[1],ce=this.svgFactory.create(re,ie),ve=N.borderStyle.width,de=this.svgFactory.createElement("svg:rect");return de.setAttribute("x",ve/2),de.setAttribute("y",ve/2),de.setAttribute("width",re-ve),de.setAttribute("height",ie-ve),de.setAttribute("stroke-width",ve||1),de.setAttribute("stroke","transparent"),de.setAttribute("fill","none"),ce.appendChild(de),this.container.append(ce),this._createPopup(this.container,de,N),this.container}}]),A}(n),R=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){this.container.className="
1circleAnnotation";var N=this.data,re=N.rect[2]-N.rect[0],ie=N.rect[3]-N.rect[1],ce=this.svgFactory.create(re,ie),ve=N.borderStyle.width,de=this.svgFactory.createElement("svg:ellipse");return de.setAttribute("cx",re/2),de.setAttribute("cy",ie/2),de.setAttribute("rx",re/2-ve/2),de.setAttribute("ry",ie/2-ve/2),de.setAttribute("stroke-width",ve||1),de.setAttribute("stroke","transparent"),de.setAttribute("fill","none"),ce.appendChild(de),this.container.append(ce),this._createPopup(this.container,de,N),this.container}}]),A}(n),C=function(L){D(A,L);var W=U(A);function A(F){var N;return h(this,A),(N=W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)).containerClassName="polylineAnnotation",N.svgElementName="svg:polyline",N}return u(A,[{key:"render",value:function(){this.container.className=this.containerClassName;var Te,N=this.data,ce=this.svgFactory.create(N.rect[2]-N.rect[0],N.rect[3]-N.rect[1]),ve=[],de=l(N.vertices);try{for(de.s();!(Te=de.n()).done;){var Oe=Te.value;ve.push(Oe.x-N.rect[0]+","+(N.rect[3]-Oe.y))}}catch(Be){de.e(Be)}finally{de.f()}ve=ve.join(" ");var Ne=this.svgFactory.createElement(this.svgElementName);return Ne.setAttribute("points",ve),Ne.setAttribute("stroke-width",N.borderStyle.width||1),Ne.setAttribute("stroke","transparent"),Ne.setAttribute("fill","none"),ce.appendChild(Ne),this.container.append(ce),this._createPopup(this.container,Ne,N),this.container}}]),A}(n),p=function(L){D(A,L);var W=U(A);function A(F){var N;return h(this,A),(N=W.call(this,F)).containerClassName="polygonAnnotation",N.svgElementName="svg:polygon",N}return A}(C),i=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),A}(n),s=function(L){D(A,L);var W=U(A);function A(F){var N;return h(this,A),(N=W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)).containerClassName="inkAnnotation",N.svgElementName="svg:polyline",N}return u(A,[{key:"render",value:function(){this.container.className=this.containerClassName;var de,N=this.data,ce=this.svgFactory.create(N.rect[2]-N.rect[0],N.rect[3]-N.rect[1]),ve=l(N.inkLists);try{for(ve.s();!(de=ve.n()).done;){var He,Oe=[],Ue=l(de.value);try{for(Ue.s();!(He=Ue.n()).done;){var Ne=He.value,ze=N.rect[3]-Ne.y;Oe.push("".concat(Ne.x-N.rect[0],",").concat(ze))}}catch(Re){Ue.e(Re)}finally{Ue.f()}Oe=Oe.join(" ");var De=this.svgFactory.createElement(this.svgElementName);De.setAttribute("points",Oe),De.setAttribute("stroke-width",N.borderStyle.width||1),De.setAttribute("stroke","transparent"),De.setAttribute("fill","none"),this._createPopup(this.container,De,N),ce.appendChild(De)}}catch(Re){ve.e(Re)}finally{ve.f()}return this.container.append(ce),this.container}}]),A}(n),f=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),A}(n),m=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),A}(n),z=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),A}(n),_=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}
1]),A}(n),J=function(L){D(A,L);var W=U(A);function A(F){return h(this,A),W.call(this,F,!!(F.data.hasPopup||F.data.title||F.data.contents),!0)}return u(A,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}]),A}(n),$=function(L){D(A,L);var W=U(A);function A(F){var N;h(this,A);var re=(N=W.call(this,F,!0)).data.file,ie=re.filename,ce=re.content;return N.filename=(0,t.getFilenameFromUrl)(ie),N.content=ce,N.linkService.eventBus&&N.linkService.eventBus.dispatch("fileattachmentannotation",{source:ee(N),id:(0,a.stringToPDFString)(ie),filename:ie,content:ce}),N}return u(A,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var N=document.createElement("div");return N.style.height=this.container.style.height,N.style.width=this.container.style.width,N.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(this.data.title||this.data.contents)&&this._createPopup(this.container,N,this.data),this.container.appendChild(N),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")}}]),A}(n);o.AnnotationLayer=function(){function L(){h(this,L)}return u(L,null,[{key:"render",value:function(A){var ie,F=[],N=[],re=l(A.annotations);try{for(re.s();!(ie=re.n()).done;){var ce=ie.value;if(ce){if(ce.annotationType===a.AnnotationType.POPUP){N.push(ce);continue}F.push(ce)}}}catch(Ue){re.e(Ue)}finally{re.f()}N.length&&F.push.apply(F,N);for(var ve=0,de=F;ve<de.length;ve++){var Oe=v.create({data:de[ve],layer:A.div,page:A.page,viewport:A.viewport,linkService:A.linkService,downloadManager:A.downloadManager,imageResourcesPath:A.imageResourcesPath||"",renderInteractiveForms:A.renderInteractiveForms||!1,svgFactory:new t.DOMSVGFactory});Oe.isRenderable&&A.div.appendChild(Oe.render())}}},{key:"update",value:function(A){var N,F=l(A.annotations);try{for(F.s();!(N=F.n()).done;){var ie=A.div.querySelector('[data-annotation-id="'.concat(N.value.id,'"]'));ie&&(ie.style.transform="matrix(".concat(A.viewport.transform.join(","),")"))}}catch(ce){F.e(ce)}finally{F.f()}A.div.removeAttribute("hidden")}}]),L}()},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.renderTextLayer=void 0;var t=e(5),a=function(){var x=/\S/;function O(T,h,S){var u=document.createElement("span"),v={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(T._textDivs.push(u),function E(T){return!x.test(T)}(h.str))return v.isWhitespace=!0,void T._textDivProperties.set(u,v);var n=t.Util.transform(T._viewport.transform,h.transform),d=Math.atan2(n[1],n[0]),g=S[h.fontName];g.vertical&&(d+=Math.PI/2);var G,P,k=Math.sqrt(n[2]*n[2]+n[3]*n[3]),M=k;g.ascent?M*=g.ascent:g.descent&&(M*=1+g.descent),0===d?(G=n[4],P=n[5]-M):(G=n[4]+M*Math.sin(d),P=n[5]-M*Math.cos(d)),u.style.left="".concat(G,"px"),u.style.top="".concat(P,"px"),u.style.fontSize="".concat(k,"px"),u.style.fontFamily=g.fontFamily,u.textContent=h.str,T._fontInspectorEnabled&&(u.dataset.fontName=h.fontName),0!==d&&(v.angle=d*(180/Math.PI));var B=!1;if(h.str.length>1)B=!0;else if(h.transform[0]!==h.transform[3]){var K=Math.abs(h.transform[0]),te=Math.abs(h.transform[3]);K!==te&&Math.max(K,te)/Math.min(K,te)>1.5&&(B=!0)}if(B&&(v.canvasWidth=g.vertical?h.height*T._viewport.scale:h.width*T._viewport.scale),T._textDivProperties.set(u,v),T._textContentStream&&T._layoutText(u),T._enhanceTextSelection){var ne=1,j=0;0!==d&&(ne=Math.cos(d),j=Math.sin(d));var R,C,Q=(g.vertical?h.height:h.width)*T._viewport.scale,I=k;C=0!==d?t.Util.getAxialAlignedBoundingBox([0,0,Q,I],R=[ne,j,-j,ne,G,P]):[G,P,G+Q,P+I],T._bounds.push({left:C[0],top:C[1],right:C[2],bottom:C[3],div:u,size:[Q,I],m:R})}}function w(T){if(!T._canceled){var h=T._textDivs,S=T._capability,u=h.length;if(u>1e5)return T._renderingDone=!0,void S.resolve();if(!T._textContentStream)for(var v=0;v<u;v++)T._layoutText(h[v]);T._renderingDone=!0,S.resolve()}}function D(T,h,S){for(var u=0,v=0;v<S;v++){var n=T[h++];n>0&&(u=u?Math.min(n,u):n)}return u}function V(T,h){h.sort(function(v,n){return v.x1-n.x1||v.index-n.index});var u=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];h.forEach(function(v){for(var n=0;n<u.length&&u[n].end<=v.y1;)n++;for(var d=u.length-1;d>=0&&u[d].start>=v.y2;)d--;var g,k,M,G,P=-1/0;for(M=n;M<=d;M++){var B;(B=(k=(g=u[M]).boundary).x2>v.x1?k.index>v.index?k.x1New:v.x1:void 0===k.x2New?(k.x2+v.x1)/2:k.x2New)>P&&(P=B)}for(v.x1New=P,M=n;M<=d;M++)void 0===(k=(g=u[M]).boundary).x2New?k.x2>v.x1?k.index>v.index&&(k.x2New=k.x2):k.x2New=P:k.x2New>P&&(k.x2New=Math.max(P,k.x2));var K=[],te=null;for(M=n;M<=d;M++){var ne=(k=(g=u[M]).boundary).x2>v.x2?k:v;
1te===ne?K[K.length-1].end=g.end:(K.push({start:g.start,end:g.end,boundary:ne}),te=ne)}for(u[n].start<v.y1&&(K[0].start=v.y1,K.unshift({start:u[n].start,end:v.y1,boundary:u[n].boundary})),v.y2<u[d].end&&(K[K.length-1].end=v.y2,K.push({start:v.y2,end:u[d].end,boundary:u[d].boundary})),M=n;M<=d;M++)if(void 0===(k=(g=u[M]).boundary).x2New){var j=!1;for(G=n-1;!j&&G>=0&&u[G].start>=k.y1;G--)j=u[G].boundary===k;for(G=d+1;!j&&G<u.length&&u[G].end<=k.y2;G++)j=u[G].boundary===k;for(G=0;!j&&G<K.length;G++)j=K[G].boundary===k;j||(k.x2New=P)}Array.prototype.splice.apply(u,[n,d-n+1].concat(K))}),u.forEach(function(v){var n=v.boundary;void 0===n.x2New&&(n.x2New=Math.max(T,n.x2))})}function ee(T){var h=this,u=T.textContentStream,v=T.container,n=T.viewport,d=T.textDivs,g=T.textContentItemsStr,k=T.enhanceTextSelection;this._textContent=T.textContent,this._textContentStream=u,this._container=v,this._viewport=n,this._textDivs=d||[],this._textContentItemsStr=g||[],this._enhanceTextSelection=!!k,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,t.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){h._layoutTextCtx&&(h._layoutTextCtx.canvas.width=0,h._layoutTextCtx.canvas.height=0,h._layoutTextCtx=null)}).catch(function(){})}return ee.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new t.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(h,S){for(var u=0,v=h.length;u<v;u++)this._textContentItemsStr.push(h[u].str),O(this,h[u],S)},_layoutText:function(h){var S=this._textDivProperties.get(h);if(!S.isWhitespace){var u="";if(0!==S.canvasWidth){var v=h.style,n=v.fontSize,d=v.fontFamily;(n!==this._layoutTextLastFontSize||d!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font="".concat(n," ").concat(d),this._layoutTextLastFontSize=n,this._layoutTextLastFontFamily=d);var k=this._layoutTextCtx.measureText(h.textContent).width;k>0&&(S.scale=S.canvasWidth/k,u="scaleX(".concat(S.scale,")"))}0!==S.angle&&(u="rotate(".concat(S.angle,"deg) ").concat(u)),u.length>0&&(this._enhanceTextSelection&&(S.originalTransform=u),h.style.transform=u),this._textDivProperties.set(h,S),this._container.appendChild(h)}},_render:function(h){var S=this,u=(0,t.createPromiseCapability)(),v=Object.create(null),n=document.createElement("canvas");if(n.mozOpaque=!0,this._layoutTextCtx=n.getContext("2d",{alpha:!1}),this._textContent)this._processItems(this._textContent.items,this._textContent.styles),u.resolve();else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');this._reader=this._textContentStream.getReader(),function M(){S._reader.read().then(function(G){var P=G.value;G.done?u.resolve():(Object.assign(v,P.styles),S._processItems(P.items,v),M())},u.reject)}()}u.promise.then(function(){v=null,h?S._renderTimer=setTimeout(function(){w(S),S._renderTimer=null},h):w(S)},this._capability.reject)},expandTextDivs:function(h){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(function Y(T){for(var h=T._bounds,S=T._viewport,u=function U(T,h,S){var u=S.map(function(n,d){return{x1:n.left,y1:n.top,x2:n.right,y2:n.bottom,index:d,x1New:void 0,x2New:void 0}});V(T,u);var v=new Array(S.length);return u.forEach(function(n){v[n.index]={left:n.x1New,top:0,right:n.x2New,bottom:0}}),S.map(function(n,d){var g=v[d],k=u[d];k.x1=n.top,k.y1=T-g.right,k.x2=n.bottom,k.y2=T-g.left,k.index=d,k.x1New=void 0,k.x2New=void 0}),V(h,u),u.forEach(function(n){var d=n.index;v[d].top=n.x1New,v[d].bottom=n.x2New}),v}(S.width,S.height,h),v=0;v<u.length;v++){var n=h[v].div,d=T._textDivProperties.get(n);if(0!==d.angle){var g=u[v],k=h[v],M=k.m,G=M[0],P=M[1],B=[[0,0],[0,k.size[1]],[k.size[0],0],k.size],K=new Float64Array(64);B.forEach(function(ne,j){var Q=t.Util.applyTransform(ne,M);K[j+0]=G&&(g.left-Q[0])/G,K[j+4]=P&&(g.top-Q[1])/P,K[j+8]=G&&(g.right-Q[0])/G,K[j+12]=P&&(g.bottom-Q[1])/P,K[j+16]=P&&(g.left-Q[0])/-P,K[j+20]=G&&(g.top-Q[1])/G,K[j+24]=P&&(g.right-Q[0])/-P,K[j+28]=G&&(g.bottom-Q[1])/G,K[j+32]=G&&(g.left-Q[0])/-G,K[j+36]=P&&(g.top-Q[1])/-P,K[j+40]=G&&(g.right-Q[0])/-G,K[j+44]=P&&(g.bottom-Q[1])/-P,K[j+48]=P&&(g.left-Q[0])/P,K[j+52]=G&&(g.top-Q[1])/-G,K[j+56]=P&&(g.right-Q[0])/P,K[j+60]=G&&(g.bottom-Q[1])/-G});var te=1+Math.min(Math.abs(G),Math.abs(P));d.paddingLeft=D(K,32,16)/te,d.paddingTop=D(K,48,16)/te,d.paddingRight=D(K,0,16)/te,d.paddingBottom=D(K,16,16)/te,T._textDivProperties.set(n,d)}else d.paddingLeft=h[v].left-u[v].left,d.paddingTop=h[v].top-u[v].top,d.paddingRight=u[v].right-h[v].right,d.paddingBottom=u[v].bottom-h[v].bottom,T._textDivProperties.set(n,d)}}(this),this._bounds=null);for(var S=[],u=[],v=0,n=this._textDivs.length;v<n;v++){var d=this._textDivs[v],g=this._textDivProperties.get(d);g.isWhitespace||(h?(S.length=0,u.length=0,g.originalTransform&&S.push(g.originalTransform),g.paddingTop>0?(u.push("".concat(g.paddingTop,"px")),S.push("translateY(".concat(-g.paddingTop,"px)"))):u.push(0),u.push(g.paddingRight>0?"".concat(g.paddingRight/g.scale,"px"):0),u.push(g.paddingBottom>0?"".concat(g.paddingBottom,"px"):0),g.paddingLeft>0?(u.push("".concat(g.paddingLeft/g.scale,"px")),S.push("translateX(".concat(-g.paddingLeft/g.scale,"px)"))):u.push(0),d.style.padding=u.join(" "),S.length&&(d.style.transform=S.join(" "))):(d.style.padding=null,d.style.transform=g.originalTransform))}}}},function X(T){var h=new ee({textContent:T.textContent,textContentStream:T.textContentStream,container:T.container,viewport:T.viewport,textDivs:T.textDivs,textContentItemsStr:T.textContentItemsStr,enhanceTextSelection:T.enhanceTextSelection});return h._render(T.timeout),h}}();o.renderTextLayer=a},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SVGGraphics=void 0;var t=e(5),a=e(1),l=e(7);function w(Q,I){return function U(Q){if(Array.isArray(Q))return Q}(Q)||function Y(Q,I){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(Q)){var R=[],C=!0,p=!1,i=void 0;try{for(var f,s=Q[Symbol.iterator]();!(C=(f=s.next()).done)&&(R.push(f.value),!I||R.length!==I);C=!0);}catch(m){p=!0,i=m}finally{try{!C&&null!=s.return&&s.return()}finally{if(p)throw i}}return R}}(Q,I)||ee(Q,I)||function D(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(Q,I){var R;if(typeof Symbol>"u"||null==Q[Symbol.iterator]){if(Array.isArray(Q)||(R=ee(Q))||I&&Q&&"number"==typeof Q.length){R&&(Q=R);var C=0,p=function(){};return{s:p,n:function(){return C>=Q.length?{done:!0}:{done:!1,value:Q[C++]}},e:function(z){throw z},f:p}}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 f,i=!0,s=!1;return{s:function(){R=Q[Symbol.iterator]()},n:function(){var z=R.next();return i=z.done,z},e:function(z){s=!0,f=z},f:function(){try{!i&&null!=R.return&&R.return()}finally{if(s)throw f}}}}function ee(Q,I){if(Q){if("string"==typeof Q)return X(Q,I);var R=Object.prototype.toString.call(Q).slice(8,-1);if("Object"===R&&Q.constructor&&(R=Q.constructor.name),"Map"===R||"Set"===R)return Array.from(Q);if("Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return X(Q,I)}}function X(Q,I){(null==I||I>Q.length)&&(I=Q.length);for(var R=0,C=new Array(I);R<I;R++)C[R]=Q[R];return C}function T(Q,I){if(!(Q instanceof I))throw new TypeError("Cannot call a class as a function")}function h(Q,I){for(var R=0;R<I.length;R++){var C=I[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(Q,C.key,C)}}function S(Q,I,R){return I&&h(Q.prototype,I),R&&h(Q,R),Q}var u=function(){throw new Error("Not implemented: SVGGraphics")};o.SVGGraphics=u;var n=function(I){if(Number.isInteger(I))return I.toString();var R=I.toFixed(10),C=R.length-1;if("0"!==R[C])return R;do{C--}while("0"===R[C]);return R.substring(0,"."===R[C]?C:C+1)},d=function(I){if(0===I[4]&&0===I[5]){if(0===I[1]&&0===I[2])return 1===I[0]&&1===I[3]?"":"scale(".concat(n(I[0])," ").concat(n(I[3]),")");if(I[0]===I[3]&&I[1]===-I[2]){var R=180*Math.acos(I[0])/Math.PI;return"rotate(".concat(n(R),")")}}else if(1===I[0]&&0===I[1]&&0===I[2]&&1===I[3])return"translate(".concat(n(I[4])," ").concat(n(I[5]),")");return"matrix(".concat(n(I[0])," ").concat(n(I[1])," ").concat(n(I[2])," ").concat(n(I[3])," ").concat(n(I[4])," ")+"".concat(n(I[5]),")")},g_fontStyle="normal",g_fontWeight="normal",g_fillColor="#000000",G=["butt","round","square"],P=["miter","round","bevel"],B=function(){for(var Q=new Uint8Array([137,80,78,71,13,10,26,10]),R=new Int32Array(256),C=0;C<256;C++){for(var p=C,i=0;i<8;i++)p=1&p?3988292384^p>>1&2147483647:p>>1&2147483647;R[C]=p}function f($,q,L,W){var A=W,F=q.length;L[A]=F>>24&255,L[A+1]=F>>16&255,L[A+2]=F>>8&255,L[A+3]=255&F,L[A+=4]=255&$.charCodeAt(0),L[A+1]=255&$.charCodeAt(1),L[A+2]=255&$.charCodeAt(2),L[A+3]=255&$.charCodeAt(3),L.set(q,A+=4);var N=function s($,q,L){for(var W=-1,A=q;A<L;A++)W=W>>>8^R[255&(W^$[A])];return-1^W}(L,W+4,A+=q.length);L[A]=N>>24&255,L[A+1]=N>>16&255,L[A+2]=N>>8&255,L[A+3]=255&N}function _($){var q=$.length,L=65535,W=Math.ceil(q/L),A=new Uint8Array(2+q+5*W+4),F=0;A[F++]=120,A[F++]=156;for(var N=0;q>L;)A[F++]=0,A[F++]=255,A[F++]=255,A[F++]=0,A[F++]=0,A.set($.subarray(N,N+L),F),F+=L,N+=L,q-=L;A[F++]=1,A[F++]=255&q,A[F++]=q>>8&255,A[F++]=255&~q,A[F++]=(65535&~q)>>8&255,A.set($.subarray(N),F),F+=$.length-N;var re=function m($,q,L){for(var W=1,A=0,F=q;F<L;++F)A=(A+(W=(W+(255&$[F]))%65521))%65521;return A<<16|W}($,0,$.length);return A[F++]=re>>24&255,A[F++]=re>>16&255,A[F++]=re>>8&255,A[F++]=255&re,A}return function(q,L,W){return function J($,q,L,W){var N,re,ie,A=$.width,F=$.height,ce=$.data;switch(q){case t.ImageKind.GRAYSCALE_1BPP:re=0,N=1,ie=A+7>>3;break;case t.ImageKind.RGB_24BPP:re=2,N=8,ie=3*A;break;case t.ImageKind.RGBA_32BPP:re=6,N=8,ie=4*A;break;default:throw new Error("invalid format")}for(var ve=new Uint8Array((1+ie)*F),de=0,Te=0,Oe=0;Oe<F;++Oe)ve[de++]=0,ve.set(ce.subarray(Te,Te+ie),de),Te+=ie,de+=ie;if(q===t.ImageKind.GRAYSCALE_1BPP&&W){de=0;for(var Ue=0;Ue<F;Ue++){de++;for(var He=0;He<ie;He++)ve[de++]^=255}}var Ne=new Uint8Array([A>>24&255,A>>16&255,A>>8&255,255&A,F>>24&255,F>>16&255,F>>8&255,255&F,N,re,0,0,0]),Be=function z($){if(!l.isNodeJS)return _($);try{var q;q=parseInt(process.versions.node)>=8?$:Buffer.from($);var L=__webpack_require__(33074).deflateSync(q,{level:9});return L instanceof Uint8Array?L:new Uint8Array(L)}catch(W){(0,t.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+W)}return _($)}(ve),De=new Uint8Array(Q.length+36+Ne.length+Be.length),Re=0;return De.set(Q,Re),f("IHDR",Ne,De,Re+=Q.length),f("IDATA",Be,De,Re+=12
vendor: 4,523 bytes, line 1
1+Ne.length),Re+=12+Be.length,f("IEND",new Uint8Array(0),De,Re),(0,t.createObjectURL)(De,"image/png",L)}(q,void 0===q.kind?t.ImageKind.GRAYSCALE_1BPP:q.kind,L,W)}}(),K=function(){function Q(){T(this,Q),this.fontSizeScale=1,this.fontWeight=g_fontWeight,this.fontSize=0,this.textMatrix=t.IDENTITY_MATRIX,this.fontMatrix=t.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=t.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=g_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 S(Q,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(R,C){this.x=R,this.y=C}}]),Q}(),te=0,ne=0,j=0;o.SVGGraphics=u=function(){function Q(I,R){var C=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var p in T(this,Q),this.svgFactory=new a.DOMSVGFactory,this.current=new K,this.transformMatrix=t.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=I,this.objs=R,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!C,this._operatorIdMapping=[],t.OPS)this._operatorIdMapping[t.OPS[p]]=p}return S(Q,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var R=this.current;this.extraStack.push(R),this.current=R.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(R){this.save(),this.executeOpTree(R),this.restore()}},{key:"loadDependencies",value:function(R){for(var C=this,p=R.fnArray,i=R.argsArray,s=0,f=p.length;s<f;s++)if(p[s]===t.OPS.dependency){var z,m=V(i[s]);try{var _=function(){var $=z.value,q=$.startsWith("g_")?C.commonObjs:C.objs,L=new Promise(function(W){q.get($,W)});C.current.dependencies.push(L)};for(m.s();!(z=m.n()).done;)_()}catch(J){m.e(J)}finally{m.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(R,C,p,i,s,f){this.transformMatrix=t.Util.transform(this.transformMatrix,[R,C,p,i,s,f]),this.tgrp=null}},{key:"getSVG",value:function(R,C){var p=this;this.viewport=C;var i=this._initialize(C);return this.loadDependencies(R).then(function(){return p.transformMatrix=t.IDENTITY_MATRIX,p.executeOpTree(p.convertOpList(R)),i})}},{key:"convertOpList",value:function(R){for(var C=this._operatorIdMapping,p=R.argsArray,i=R.fnArray,s=[],f=0,m=i.length;f<m;f++){var z=i[f];s.push({fnId:z,fn:C[z],args:p[f]})}return function(I){var i,R=[],C=[],p=V(I);try{for(p.s();!(i=p.n()).done;){var s=i.value;"save"!==s.fn?"restore"===s.fn?R=C.pop():R.push(s):(R.push({fnId:92,fn:"group",items:[]}),C.push(R),R=R[R.length-1].items)}}catch(f){p.e(f)}finally{p.f()}return R}(s)}},{key:"executeOpTree",value:function(R){var p,C=V(R);try{for(C.s();!(p=C.n()).done;){var i=p.value,s=i.fn,m=i.args;switch(0|i.fnId){case t.OPS.beginText:this.beginText();break;case t.OPS.dependency:break;case t.OPS.setLeading:this.setLeading(m);break;case t.OPS.setLeadingMoveText:this.setLeadingMoveText(m[0],m[1]);break;case t.OPS.setFont:this.setFont(m);break;case t.OPS.showText:case t.OPS.showSpacedText:this.showText(m[0]);break;case t.OPS.endText:this.endText();break;case t.OPS.moveText:this.moveText(m[0],m[1]);break;case t.OPS.setCharSpacing:this.setCharSpacing(m[0]);break;case t.OPS.setWordSpacing:this.setWordSpacing(m[0]);break;case t.OPS.setHScale:this.setHScale(m[0]);break;case t.OPS.setTextMatrix:this.setTextMatrix(m[0],m[1],m[2],m[3],m[4],m[5]);break;case t.OPS.setTextRise:this.setTextRise(m[0]);break;case t.OPS.setTextRenderingMode:this.setTextRenderingMode(m[0]);break;case t.OPS.setLineWidth:this.setLineWidth(m[0]);break;case t.OPS.setLineJoin:this.setLineJoin(m[0]);break;case t.OPS.setLineCap:this.setLineCap(m[0]);break;case t.OPS.setMiterLimit:this.setMiterLimit(m[0]);break;case t.OPS.setFillRGBColor:this.setFillRGBColor(m[0],m[1],m[2]);break;case t.OPS.setStrokeRGBColor:this.setStrokeRGBColor(m[0],m[1],m[2]);break;case t.OPS.setStrokeColorN:this.setStrokeColorN(m);break;case t.OPS.setFillColorN:this.setFillColorN(m);break;case t.OPS.shadingFill:this.shadingFill(m[0]);break;case t.OPS.setDash:this.setDash(m[0],m[1]);break;
1case t.OPS.setRenderingIntent:this.setRenderingIntent(m[0]);break;case t.OPS.setFlatness:this.setFlatness(m[0]);break;case t.OPS.setGState:this.setGState(m[0]);break;case t.OPS.fill:this.fill();break;case t.OPS.eoFill:this.eoFill();break;case t.OPS.stroke:this.stroke();break;case t.OPS.fillStroke:this.fillStroke();break;case t.OPS.eoFillStroke:this.eoFillStroke();break;case t.OPS.clip:this.clip("nonzero");break;case t.OPS.eoClip:this.clip("evenodd");break;case t.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case t.OPS.paintImageXObject:this.paintImageXObject(m[0]);break;case t.OPS.paintInlineImageXObject:this.paintInlineImageXObject(m[0]);break;case t.OPS.paintImageMaskXObject:this.paintImageMaskXObject(m[0]);break;case t.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(m[0],m[1]);break;case t.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case t.OPS.closePath:this.closePath();break;case t.OPS.closeStroke:this.closeStroke();break;case t.OPS.closeFillStroke:this.closeFillStroke();break;case t.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case t.OPS.nextLine:this.nextLine();break;case t.OPS.transform:this.transform(m[0],m[1],m[2],m[3],m[4],m[5]);break;case t.OPS.constructPath:this.constructPath(m[0],m[1]);break;case t.OPS.endPath:this.endPath();break;case 92:this.group(i.items);break;default:(0,t.warn)("Unimplemented operator ".concat(s))}}}catch(z){C.e(z)}finally{C.f()}}},{key:"setWordSpacing",value:function(R){this.current.wordSpacing=R}},{key:"setCharSpacing",value:function(R){this.current.charSpacing=R}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(R,C,p,i,s,f){var m=this.current;m.textMatrix=m.lineMatrix=[R,C,p,i,s,f],m.textMatrixScale=Math.sqrt(R*R+C*C),m.x=m.lineX=0,m.y=m.lineY=0,m.xcoords=[],m.ycoords=[],m.tspan=this.svgFactory.createElement("svg:tspan"),m.tspan.setAttributeNS(null,"font-family",m.fontFamily),m.tspan.setAttributeNS(null,"font-size","".concat(n(m.fontSize),"px")),m.tspan.setAttributeNS(null,"y",n(-m.y)),m.txtElement=this.svgFactory.createElement("svg:text"),m.txtElement.appendChild(m.tspan)}},{key:"beginText",value:function(){var R=this.current;R.x=R.lineX=0,R.y=R.lineY=0,R.textMatrix=t.IDENTITY_MATRIX,R.lineMatrix=t.IDENTITY_MATRIX,R.textMatrixScale=1,R.tspan=this.svgFactory.createElement("svg:tspan"),R.txtElement=this.svgFactory.createElement("svg:text"),R.txtgrp=this.svgFactory.createElement("svg:g"),R.xcoords=[],R.ycoords=[]}},{key:"moveText",value:function(R,C){var p=this.current;p.x=p.lineX+=R,p.y=p.lineY+=C,p.xcoords=[],p.ycoords=[],p.tspan=this.svgFactory.createElement("svg:tspan"),p.tspan.setAttributeNS(null,"font-family",p.fontFamily),p.tspan.setAttributeNS(null,"font-size","".concat(n(p.fontSize),"px")),p.tspan.setAttributeNS(null,"y",n(-p.y))}},{key:"showText",value:function(R){var C=this.current,p=C.font,i=C.fontSize;if(0!==i){var F,s=C.fontSizeScale,f=C.charSpacing,m=C.wordSpacing,z=C.fontDirection,_=C.textHScale*z,J=p.vertical,$=J?1:-1,q=p.defaultVMetrics,L=i*C.fontMatrix[0],W=0,A=V(R);try{for(A.s();!(F=A.n()).done;){var N=F.value;if(null!==N)if((0,t.isNum)(N))W+=$*N*i/1e3;else{var re=(N.isSpace?m:0)+f,ie=N.fontChar,ce=void 0,ve=void 0,de=N.width;if(J){var Te=void 0,Oe=N.vmetric||q;Te=N.vmetric?Oe[1]:.5*de,de=Oe?-Oe[0]:de,ce=(Te=-Te*L)/s,ve=(W+Oe[2]*L)/s}else ce=W/s,ve=0;(N.isInFont||p.missingFile)&&(C.xcoords.push(C.x+ce),J&&C.ycoords.push(-C.y+ve),C.tspan.textContent+=ie),W+=J?de*L-re*z:de*L+re*z}else W+=z*m}}catch(De){A.e(De)}finally{A.f()}C.tspan.setAttributeNS(null,"x",C.xcoords.map(n).join(" ")),C.tspan.setAttributeNS(null,"y",J?C.ycoords.map(n).join(" "):n(-C.y)),J?C.y-=W:C.x+=W*_,C.tspan.setAttributeNS(null,"font-family",C.fontFamily),C.tspan.setAttributeNS(null,"font-size","".concat(n(C.fontSize),"px")),C.fontStyle!==g_fontStyle&&C.tspan.setAttributeNS(null,"font-style",C.fontStyle),C.fontWeight!==g_fontWeight&&C.tspan.setAttributeNS(null,"font-weight",C.fontWeight);var Ne=C.textRenderingMode&t.TextRenderingMode.FILL_STROKE_MASK;Ne===t.TextRenderingMode.FILL||Ne===t.TextRenderingMode.FILL_STROKE?(C.fillColor!==g_fillColor&&C.tspan.setAttributeNS(null,"fill",C.fillColor),C.fillAlpha<1&&C.tspan.setAttributeNS(null,"fill-opacity",C.fillAlpha)):C.tspan.setAttributeNS(null,"fill",C.textRenderingMode===t.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(Ne===t.TextRenderingMode.STROKE||Ne===t.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(C.tspan,1/(C.textMatrixScale||1));var ze=C.textMatrix;0!==C.textRise&&((ze=ze.slice())[5]+=C.textRise),C.txtElement.setAttributeNS(null,"transform","".concat(d(ze)," scale(").concat(n(_),", -1)")),C.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),C.txtElement.appendChild(C.tspan),C.txtgrp.appendChild(C.txtElement),this._ensureTransformGroup().appendChild(C.txtElement)}}},{key:"setLeadingMoveText",value:function(R,C){this.setLeading(-C),this.moveText(R,
vendor: 9,728 bytes, line 1
1C)}},{key:"addFontStyle",value:function(R){if(!R.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var C=(0,t.createObjectURL)(R.data,R.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(R.loadedName,'";')+" src: url(".concat(C,"); }\n")}},{key:"setFont",value:function(R){var C=this.current,p=this.commonObjs.get(R[0]),i=R[1];C.font=p,this.embedFonts&&!p.missingFile&&!this.embeddedFonts[p.loadedName]&&(this.addFontStyle(p),this.embeddedFonts[p.loadedName]=p),C.fontMatrix=p.fontMatrix?p.fontMatrix:t.FONT_IDENTITY_MATRIX;var s="normal";p.black?s="900":p.bold&&(s="bold");var f=p.italic?"italic":"normal";i<0?(i=-i,C.fontDirection=-1):C.fontDirection=1,C.fontSize=i,C.fontFamily=p.loadedName,C.fontWeight=s,C.fontStyle=f,C.tspan=this.svgFactory.createElement("svg:tspan"),C.tspan.setAttributeNS(null,"y",n(-C.y)),C.xcoords=[],C.ycoords=[]}},{key:"endText",value:function(){var R=this.current;R.textRenderingMode&t.TextRenderingMode.ADD_TO_PATH_FLAG&&R.txtElement&&R.txtElement.hasChildNodes()&&(R.element=R.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(R){R>0&&(this.current.lineWidth=R)}},{key:"setLineCap",value:function(R){this.current.lineCap=G[R]}},{key:"setLineJoin",value:function(R){this.current.lineJoin=P[R]}},{key:"setMiterLimit",value:function(R){this.current.miterLimit=R}},{key:"setStrokeAlpha",value:function(R){this.current.strokeAlpha=R}},{key:"setStrokeRGBColor",value:function(R,C,p){this.current.strokeColor=t.Util.makeCssRgb(R,C,p)}},{key:"setFillAlpha",value:function(R){this.current.fillAlpha=R}},{key:"setFillRGBColor",value:function(R,C,p){this.current.fillColor=t.Util.makeCssRgb(R,C,p),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(R){this.current.strokeColor=this._makeColorN_Pattern(R)}},{key:"setFillColorN",value:function(R){this.current.fillColor=this._makeColorN_Pattern(R)}},{key:"shadingFill",value:function(R){var C=this.viewport.width,p=this.viewport.height,i=t.Util.inverseTransform(this.transformMatrix),s=t.Util.applyTransform([0,0],i),f=t.Util.applyTransform([0,p],i),m=t.Util.applyTransform([C,0],i),z=t.Util.applyTransform([C,p],i),_=Math.min(s[0],f[0],m[0],z[0]),J=Math.min(s[1],f[1],m[1],z[1]),$=Math.max(s[0],f[0],m[0],z[0]),q=Math.max(s[1],f[1],m[1],z[1]),L=this.svgFactory.createElement("svg:rect");L.setAttributeNS(null,"x",_),L.setAttributeNS(null,"y",J),L.setAttributeNS(null,"width",$-_),L.setAttributeNS(null,"height",q-J),L.setAttributeNS(null,"fill",this._makeShadingPattern(R)),this.current.fillAlpha<1&&L.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(L)}},{key:"_makeColorN_Pattern",value:function(R){return"TilingPattern"===R[0]?this._makeTilingPattern(R):this._makeShadingPattern(R)}},{key:"_makeTilingPattern",value:function(R){var C=R[1],p=R[2],i=R[3]||t.IDENTITY_MATRIX,s=w(R[4],4),f=s[0],m=s[1],z=s[2],_=s[3],J=R[5],$=R[6],q=R[7],L="shading".concat(j++),A=w(t.Util.applyTransform([f,m],i),2),F=A[0],N=A[1],ie=w(t.Util.applyTransform([z,_],i),2),ce=ie[0],ve=ie[1],Te=w(t.Util.singularValueDecompose2dScale(i),2),He=J*Te[0],Ne=$*Te[1],Be=this.svgFactory.createElement("svg:pattern");Be.setAttributeNS(null,"id",L),Be.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Be.setAttributeNS(null,"width",He),Be.setAttributeNS(null,"height",Ne),Be.setAttributeNS(null,"x","".concat(F)),Be.setAttributeNS(null,"y","".concat(N));var ze=this.svg,De=this.transformMatrix,Re=this.current.fillColor,ye=this.current.strokeColor,xe=this.svgFactory.create(ce-F,ve-N);if(this.svg=xe,this.transformMatrix=i,2===q){var Le=t.Util.makeCssRgb.apply(t.Util,function y(Q){return function O(Q){if(Array.isArray(Q))return X(Q)}(Q)||function E(Q){if(typeof Symbol<"u"&&Symbol.iterator in Object(Q))return Array.from(Q)}(Q)||ee(Q)||function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(C));this.current.fillColor=Le,this.current.strokeColor=Le}return this.executeOpTree(this.convertOpList(p)),this.svg=ze,this.transformMatrix=De,this.current.fillColor=Re,this.current.strokeColor=ye,Be.appendChild(xe.childNodes[0]),this.defs.appendChild(Be),"url(#".concat(L,")")}},{key:"_makeShadingPattern",value:function(R){switch(R[0]){case"RadialAxial":var i,C="shading".concat(j++),p=R[3];switch(R[1]){case"axial":var s=R[4],f=R[5];(i=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",C),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"x1",s[0]),i.setAttributeNS(null,"y1",s[1]),i.setAttributeNS(null,"x2",f[0]),i.setAttributeNS(null,"y2",f[1]);break;case"radial":var m=R[4],z=R[5],_=R[6],J=R[7];(i=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",C),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"cx",z[0]),i.setAttributeNS(null,"cy",z[1]),i.setAttributeNS(null,"r",J),i.setAttributeNS(null,"fx",m[0]),i.setAttributeNS(null,"fy",m[1]),i.setAttributeNS(null,"fr",_);break;default:throw new Error("Unknown RadialAxial type: ".concat(R[1]))}var q,$=V(p);try{for($.s();!(q=$.n()).done;){var L=q.value,W=this.svgFactory.createElement("svg:stop");W.setAttributeNS(null,"offset",L[0]),W.setAttributeNS(null,"stop-color",L[1]),i.appendChild(W)}}catch(A){$.e(A)}finally{$.f()}return this.defs.appendChild(i),"url(#".concat(C,")");case"Mesh":return(0,t.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(R[0]))}}},{key:"setDash",value:function(R,C){this.current.dashArray=R,this.current.dashPhase=C}},{key:"constructPath",value:function(R,C){var _,p=this.current,i=p.x,s=p.y,f=[],m=0,z=V(R);try{for(z.s();!(_=z.n()).done;)switch(0|_.value){case t.OPS.rectangle:i=C[m++],s=C[m++];var L=i+C[m++],W=s+C[m++];f.push("M",n(i),n(s),"L",n(L),n(s),"L",n(L),n(W),"L",n(i),n(W),"Z");break;case t.OPS.moveTo:i=C[m++],s=C[m++],f.push("M",n(i),n(s));break;case t.OPS.lineTo:i=C[m++],s=C[m++],f.push("L",n(i),n(s));break;case t.OPS.curveTo:i=C[m+4],s=C[m+5],f.push("C",n(C[m]),n(C[m+1]),n(C[m+2]),n(C[m+3]),n(i),n(s)),m+=6;break;case t.OPS.curveTo2:f.push("C",n(i),n(s),n(C[m]),n(C[m+1]),n(C[m+2]),n(C[m+3])),i=C[m+2],s=C[m+3],m+=4;break;case t.OPS.curveTo3:i=C[m+2],s=C[m+3],f.push("C",n(C[m]),n(C[m+1]),n(i),n(s),n(i),n(s)),m+=4;break;case t.OPS.closePath:f.push("Z")}}catch(A){z.e(A)}finally{z.f()}f=f.join(" "),p.path&&R.length>0&&R[0]!==t.OPS.rectangle&&R[0]!==t.OPS.moveTo?f=p.path.getAttributeNS(null,"d")+f:(p.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(p.path)),p.path.setAttributeNS(null,"d",f),p.path.setAttributeNS(null,"fill","none"),p.element=p.path,p.setCurrentPoint(i,s)}},{key:"endPath",value:function(){var R=this.current;if(R.path=null,this.pendingClip){if(!R.element)return void(this.pendingClip=null);var C="clippath".concat(te++),p=this.svgFactory.createElement("svg:clipPath");p.setAttributeNS(null,"id",C),p.setAttributeNS(null,"transform",d(this.transformMatrix));var i=R.element.cloneNode(!0);i.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,p.appendChild(i),this.defs.appendChild(p),R.activeClipUrl&&(R.clipGroup=null,this.extraStack.forEach(function(s){s.clipGroup=null}),p.setAttributeNS(null,"clip-path",R.activeClipUrl)),R.activeClipUrl="url(#".concat(C,")"),this.tgrp=null}}},{key:"clip",value:function(R){this.pendingClip=R}},{key:"closePath",value:function(){var R=this.current;if(R.path){var C="".concat(R.path.getAttributeNS(null,"d"),"Z");R.path.setAttributeNS(null,"d",C)}}},{key:"setLeading",value:function(R){this.current.leading=-R}},{key:"setTextRise",value:function(R){this.current.textRise=R}},{key:"setTextRenderingMode",value:function(R){this.current.textRenderingMode=R}},{key:"setHScale",value:function(R){this.current.textHScale=R/100}},{key:"setRenderingIntent",value:function(R){}},{key:"setFlatness",value:function(R){}},{key:"setGState",value:function(R){var p,C=V(R);try{for(C.s();!(p=C.n()).done;){var i=w(p.value,2),s=i[0],f=i[1];switch(s){case"LW":this.setLineWidth(f);break;case"LC":this.setLineCap(f);break;case"LJ":this.setLineJoin(f);break;case"ML":this.setMiterLimit(f);break;case"D":this.setDash(f[0],f[1]);break;case"RI":this.setRenderingIntent(f);break;case"FL":this.setFlatness(f);break;case"Font":this.setFont(f);break;case"CA":this.setStrokeAlpha(f);break;case"ca":this.setFillAlpha(f);break;default:(0,t.warn)("Unimplemented graphic state operator ".concat(s))}}}catch(m){C.e(m)}finally{C.f()}}},{key:"fill",value:function(){var R=this.current;R.element&&(R.element.setAttributeNS(null,"fill",R.fillColor),R.element.setAttributeNS(null,"fill-opacity",R.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var R=this.current;R.element&&(this._setStrokeAttributes(R.element),R.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(R){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,p=this.current,i=p.dashArray;1!==C&&i.length>0&&(i=i.map(function(s){return C*s})),R.setAttributeNS(null,"stroke",p.strokeColor),R.setAttributeNS(null,"stroke-opacity",p.strokeAlpha),R.setAttributeNS(null,"stroke-miterlimit",n(p.miterLimit)),R.setAttributeNS(null,"stroke-linecap",p.lineCap),R.setAttributeNS(null,"
1stroke-linejoin",p.lineJoin),R.setAttributeNS(null,"stroke-width",n(C*p.lineWidth)+"px"),R.setAttributeNS(null,"stroke-dasharray",i.map(n).join(" ")),R.setAttributeNS(null,"stroke-dashoffset",n(C*p.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 R=this.svgFactory.createElement("svg:rect");R.setAttributeNS(null,"x","0"),R.setAttributeNS(null,"y","0"),R.setAttributeNS(null,"width","1px"),R.setAttributeNS(null,"height","1px"),R.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(R)}},{key:"paintImageXObject",value:function(R){var C=this.objs.get(R);C?this.paintInlineImageXObject(C):(0,t.warn)("Dependent image with object ID ".concat(R," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(R,C){var p=R.width,i=R.height,s=B(R,this.forceDataSchema,!!C),f=this.svgFactory.createElement("svg:rect");f.setAttributeNS(null,"x","0"),f.setAttributeNS(null,"y","0"),f.setAttributeNS(null,"width",n(p)),f.setAttributeNS(null,"height",n(i)),this.current.element=f,this.clip("nonzero");var m=this.svgFactory.createElement("svg:image");m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),m.setAttributeNS(null,"x","0"),m.setAttributeNS(null,"y",n(-i)),m.setAttributeNS(null,"width",n(p)+"px"),m.setAttributeNS(null,"height",n(i)+"px"),m.setAttributeNS(null,"transform","scale(".concat(n(1/p)," ").concat(n(-1/i),")")),C?C.appendChild(m):this._ensureTransformGroup().appendChild(m)}},{key:"paintImageMaskXObject",value:function(R){var C=this.current,p=R.width,i=R.height,s=C.fillColor;C.maskId="mask".concat(ne++);var f=this.svgFactory.createElement("svg:mask");f.setAttributeNS(null,"id",C.maskId);var m=this.svgFactory.createElement("svg:rect");m.setAttributeNS(null,"x","0"),m.setAttributeNS(null,"y","0"),m.setAttributeNS(null,"width",n(p)),m.setAttributeNS(null,"height",n(i)),m.setAttributeNS(null,"fill",s),m.setAttributeNS(null,"mask","url(#".concat(C.maskId,")")),this.defs.appendChild(f),this._ensureTransformGroup().appendChild(m),this.paintInlineImageXObject(R,f)}},{key:"paintFormXObjectBegin",value:function(R,C){if(Array.isArray(R)&&6===R.length&&this.transform(R[0],R[1],R[2],R[3],R[4],R[5]),C){var p=C[2]-C[0],i=C[3]-C[1],s=this.svgFactory.createElement("svg:rect");s.setAttributeNS(null,"x",C[0]),s.setAttributeNS(null,"y",C[1]),s.setAttributeNS(null,"width",n(p)),s.setAttributeNS(null,"height",n(i)),this.current.element=s,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(R){var C=this.svgFactory.create(R.width,R.height),p=this.svgFactory.createElement("svg:defs");C.appendChild(p),this.defs=p;var i=this.svgFactory.createElement("svg:g");return i.setAttributeNS(null,"transform",d(R.transform)),C.appendChild(i),this.svg=i,C}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var R=this.svgFactory.createElement("svg:g");R.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(R),this.current.clipGroup=R}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",d(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),Q}()},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PDFNodeStream=void 0;var t=function y(Q){return Q&&Q.__esModule?Q:{default:Q}}(e(2)),a=e(5),l=e(213);function x(Q){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(Q)}function E(Q,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(I&&I.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}),I&&O(Q,I)}function O(Q,I){return(O=Object.setPrototypeOf||function(C,p){return C.__proto__=p,C})(Q,I)}function w(Q){var I=function U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var p,C=V(Q);if(I){var i=V(this).constructor;p=Reflect.construct(C,arguments,i)}else p=C.apply(this,arguments);return D(this,p)}}function D(Q,I){return!I||"object"!==x(I)&&"function"!=typeof I?function Y(Q){if(void 0===Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}(Q):I}
vendor: 8,634 bytes, line 1
1function V(Q){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(Q)}function ee(Q,I,R,C,p,i,s){try{var f=Q[i](s),m=f.value}catch(z){return void R(z)}f.done?I(m):Promise.resolve(m).then(C,p)}function X(Q){return function(){var I=this,R=arguments;return new Promise(function(C,p){var i=Q.apply(I,R);function s(m){ee(i,C,p,s,f,"next",m)}function f(m){ee(i,C,p,s,f,"throw",m)}s(void 0)})}}function T(Q,I){if(!(Q instanceof I))throw new TypeError("Cannot call a class as a function")}function h(Q,I){for(var R=0;R<I.length;R++){var C=I[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(Q,C.key,C)}}function S(Q,I,R){return I&&h(Q.prototype,I),R&&h(Q,R),Q}var u=__webpack_require__(36599),v=__webpack_require__(35358),n=__webpack_require__(61822),d=__webpack_require__(31127),g=/^file:\/\/\/[a-zA-Z]:\//;o.PDFNodeStream=function(){function Q(I){T(this,Q),this.source=I,this.url=function k(Q){var I=d.parse(Q);return"file:"===I.protocol||I.host?I:/^[a-z]:[/\\]/i.test(Q)?d.parse("file:///".concat(Q)):(I.host||(I.protocol="file:"),I)}(I.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&I.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return S(Q,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new ne(this):new K(this),this._fullRequestReader}},{key:"getRangeReader",value:function(R,C){if(C<=this._progressiveDataLength)return null;var p=this.isFsUrl?new j(this,R,C):new te(this,R,C);return this._rangeRequestReaders.push(p),p}},{key:"cancelAllRequests",value:function(R){this._fullRequestReader&&this._fullRequestReader.cancel(R),this._rangeRequestReaders.slice(0).forEach(function(p){p.cancel(R)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),Q}();var G=function(){function Q(I){T(this,Q),this._url=I.url,this._done=!1,this._storedError=null,this.onProgress=null;var R=I.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,a.createPromiseCapability)(),this._headersCapability=(0,a.createPromiseCapability)()}return S(Q,[{key:"read",value:(I=X(t.default.mark(function C(){var p,i;return t.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this._readCapability.promise;case 2:if(!this._done){f.next=4;break}return f.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){f.next=6;break}throw this._storedError;case 6:if(null!==(p=this._readableStream.read())){f.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),f.abrupt("return",this.read());case 10:return this._loaded+=p.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),i=new Uint8Array(p).buffer,f.abrupt("return",{value:i,done:!1});case 14:case"end":return f.stop()}},C,this)})),function R(){return I.apply(this,arguments)})},{key:"cancel",value:function(R){this._readableStream?this._readableStream.destroy(R):this._error(R)}},{key:"_error",value:function(R){this._storedError=R,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(R){var C=this;this._readableStream=R,R.on("readable",function(){C._readCapability.resolve()}),R.on("end",function(){R.destroy(),C._done=!0,C._readCapability.resolve()}),R.on("error",function(p){C._error(p)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new a.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}}]),Q;var I}(),P=function(){function Q(I){T(this,Q),this._url=I.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!I.source.disableStream}return S(Q,[{key:"read",value:(I=X(t.default.mark(function C(){var p,i;return t.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this._readCapability.promise;case 2:if(!this._done){f.next=4;break}return f.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){f.next=6;break}throw this._storedError;case 6:if(null!==(p=this._readableStream.read())){f.next=10;break}return this._readCapability=(0,a.createPromiseCapability)(),f.abrupt("return",this.read());case 10:return this._loaded+=p.length,this.onProgress&&this.onProgress({loaded:this._loaded}),i=new Uint8Array(p).buffer,f.abrupt("return",{value:i,done:!1});case 14:case"end":return f.stop()}},C,this)})),function R(){return I.apply(this,arguments)})},{key:"cancel",value:function(R){this._readableStream?this._readableStream.destroy(R):this._error(R)}},{key:"_error",value:function(R){this._storedError=R,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(R){var C=this;this._readableStream=R,R.on("readable",function(){C._readCapability.resolve()}),R.on("end",function(){R.destroy(),C._done=!0,C._readCapability.resolve()}),R.on("error",function(p){C._error(p)}),this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),Q;var I}();function B(Q,I){return{protocol:Q.protocol,auth:Q.auth,host:Q.hostname,port:Q.port,path:Q.path,method:"GET",headers:I}}var K=function(Q){E(R,Q);var I=w(R);function R(C){var p;T(this,R);var i=function(f){if(404===f.statusCode){var m=new a.MissingPDFException('Missing PDF "'.concat(p._url,'".'));return p._storedError=m,void p._headersCapability.reject(m)}p._headersCapability.resolve(),p._setReadableStream(f);var z=function(L){return p._readableStream.headers[L.toLowerCase()]},_=(0,l.validateRangeRequestCapabilities)({getResponseHeader:z,isHttp:C.isHttp,rangeChunkSize:p._rangeChunkSize,disableRange:p._disableRange}),$=_.suggestedLength;p._isRangeSupported=_.allowRangeRequests,p._contentLength=$||p._contentLength,p._filename=(0,l.extractFilenameFromHeader)(z)};return(p=I.call(this,C))._request=null,p._request="http:"===p._url.protocol?v.request(B(p._url,C.httpHeaders),i):n.request(B(p._url,C.httpHeaders),i),p._request.on("error",function(s){p._storedError=s,p._headersCapability.reject(s)}),p._request.end(),p}return R}(G),te=function(Q){E(R,Q);var I=w(R);function R(C,p,i){var s;for(var f in T(this,R),(s=I.call(this,C))._httpHeaders={},C.httpHeaders){var m=C.httpHeaders[f];typeof m>"u"||(s._httpHeaders[f]=m)}s._httpHeaders.Range="bytes=".concat(p,"-").concat(i-1);var z=function(J){if(404!==J.statusCode)s._setReadableStream(J);else{var $=new a.MissingPDFException('Missing PDF "'.concat(s._url,'".'));s._storedError=$}};return s._request=null,s._request="http:"===s._url.protocol?v.request(B(s._url,s._httpHeaders),z):n.request(B(s._url,s._httpHeaders),z),s._request.on("error",function(_){s._storedError=_}),s._request.end(),s}return R}(P),ne=function(Q){E(R,Q);var I=w(R);function R(C){var p;T(this,R),p=I.call(this,C);var i=decodeURIComponent(p._url.path);return g.test(p._url.href)&&(i=i.replace(/^\//,"")),u.lstat(i,function(s,f){if(s)return"ENOENT"===s.code&&(s=new a.MissingPDFException('Missing PDF "'.concat(i,'".'))),p._storedError=s,void p._headersCapability.reject(s);p._contentLength=f.size,p._setReadableStream(u.createReadStream(i)),p._headersCapability.resolve()}),p}return R}(G),j=function(Q){E(R,Q);var I=w(R);function R(C,p,i){var s;T(this,R),s=I.call(this,C);var f=decodeURIComponent(s._url.path);return g.test(s._url.href)&&(f=f.replace(/^\//,"")),s._setReadableStream(u.createReadStream(f,{start:p,end:i-1})),s}return R}(P)},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createResponseStatusError=function x(O,w){return 404===O||0===O&&w.startsWith("file:")?new t.MissingPDFException('Missing PDF "'+w+'".'):new t.UnexpectedResponseException("Unexpected server response 
1("+O+') while retrieving PDF "'+w+'".',O)},o.extractFilenameFromHeader=function y(O){var w=O("Content-Disposition");if(w){var D=(0,a.getFilenameFromContentDispositionHeader)(w);if(D.includes("%"))try{D=decodeURIComponent(D)}catch{}if(/\.pdf$/i.test(D))return D}return null},o.validateRangeRequestCapabilities=function l(O){var w=O.getResponseHeader,D=O.isHttp,Y=O.rangeChunkSize,U=O.disableRange;(0,t.assert)(Y>0,"Range chunk size must be larger than zero");var V={allowRangeRequests:!1,suggestedLength:void 0},ee=parseInt(w("Content-Length"),10);return!Number.isInteger(ee)||(V.suggestedLength=ee,ee<=2*Y)||U||!D||"bytes"!==w("Accept-Ranges")||"identity"!==(w("Content-Encoding")||"identity")||(V.allowRangeRequests=!0),V},o.validateResponseStatus=function E(O){return 200===O||206===O};var t=e(5),a=e(214)},function(b,o,e){"use strict";function t(w,D){return function E(w){if(Array.isArray(w))return w}(w)||function x(w,D){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(w)){var Y=[],U=!0,V=!1,ee=void 0;try{for(var T,X=w[Symbol.iterator]();!(U=(T=X.next()).done)&&(Y.push(T.value),!D||Y.length!==D);U=!0);}catch(h){V=!0,ee=h}finally{try{!U&&null!=X.return&&X.return()}finally{if(V)throw ee}}return Y}}(w,D)||function l(w,D){if(w){if("string"==typeof w)return y(w,D);var Y=Object.prototype.toString.call(w).slice(8,-1);if("Object"===Y&&w.constructor&&(Y=w.constructor.name),"Map"===Y||"Set"===Y)return Array.from(w);if("Arguments"===Y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return y(w,D)}}(w,D)||function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(w,D){(null==D||D>w.length)&&(D=w.length);for(var Y=0,U=new Array(D);Y<D;Y++)U[Y]=w[Y];return U}Object.defineProperty(o,"__esModule",{value:!0}),o.getFilenameFromContentDispositionHeader=function O(w){var D=!0,Y=X("filename\\*","i").exec(w);if(Y){var U=u(Y=Y[1]);return h(U=n(U=v(U=unescape(U))))}if(Y=function S(d){for(var k,g=[],M=X("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(k=M.exec(d));){var P=t(k,4),B=P[1],K=P[2],te=P[3];if((B=parseInt(B,10))in g){if(0===B)break}else g[B]=[K,te]}for(var ne=[],j=0;j<g.length&&j in g;++j){var Q=t(g[j],2),I=Q[0],R=Q[1];R=u(R),I&&(R=unescape(R),0===j&&(R=v(R))),ne.push(R)}return ne.join("")}(w))return h(n(Y));if(Y=X("filename","i").exec(w)){var ee=u(Y=Y[1]);return h(ee=n(ee))}function X(d,g){return new RegExp("(?:^|;)\\s*"+d+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',g)}function T(d,g){if(d){if(!/^[\x00-\xFF]+$/.test(g))return g;try{var k=new TextDecoder(d,{fatal:!0}),M=Array.from(g,function(G){return 255&G.charCodeAt(0)});g=k.decode(new Uint8Array(M)),D=!1}catch{if(/^utf-?8$/i.test(d))try{g=decodeURIComponent(escape(g)),D=!1}catch{}}}return g}function h(d){return D&&/[\x80-\xff]/.test(d)&&(d=T("utf-8",d),D&&(d=T("iso-8859-1",d))),d}function u(d){if(d.startsWith('"')){for(var g=d.slice(1).split('\\"'),k=0;k<g.length;++k){var M=g[k].indexOf('"');-1!==M&&(g[k]=g[k].slice(0,M),g.length=k+1),g[k]=g[k].replace(/\\(.)/g,"$1")}d=g.join('"')}return d}function v(d){var g=d.indexOf("'");return-1===g?d:T(d.slice(0,g),d.slice(g+1).replace(/^[^']*'/,""))}function n(d){return!d.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(d)?d:d.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(g,k,M,G){if("q"===M||"Q"===M)return T(k,G=(G=G.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(P,B){return String.fromCharCode(parseInt(B,16))}));try{G=atob(G)}catch{}return T(k,G)})}return""}},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PDFNetworkStream=void 0;var t=function y(S){return S&&S.__esModule?S:{default:S}}(e(2)),a=e(5),l=e(213);function x(S,u,v,n,d,g,k){try{var M=S[g](k),G=M.value}catch(P){return void v(P)}M.done?u(G):Promise.resolve(G).then(n,d)}function E(S){return function(){var u=this,v=arguments;return new Promise(function(n,d){var g=S.apply(u,v);function k(G){x(g,n,d,k,M,"next",G)}function M(G){x(g,n,d,k,M,"throw",G)}k(void 0)})}}function O(S,u){if(!(S instanceof u))throw new TypeError("Cannot call a class as a function")}function w(S,u){for(var v=0;v<u.length;v++){var n=u[v];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(S,n.key,n)}}function D(S,u,v){return u&&w(S.prototype,u),v&&w(S,v),S}var ee=function(){function S(u,v){O(this,S),this.url=u,v=v||{},this.isHttp=/^https?:/i.test(u),this.httpHeaders=this.isHttp&&v.httpHeaders||{},this.withCredentials=v.withCredentials||!1,this.getXhr=v.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return D(S,[{key:"requestRange",value:function(v,n,d){var g={begin:v,end:n};for(var k in d)g[k]=d[k];return this.request(g)}},{key:"requestFull",value:function(v){return this.request(v)}},{key:"request",value:function(v){var n=this.getXhr(),d=this.currXhrId++,g=this.pendingRequests[d]={xhr:n};for(var k in n.open("GET",this.url),n.withCredentials=this.withCredentials,this.httpHeaders){var M=this.httpHeaders[k];typeof M>"u"||n.setRequestHeader(k,M)}return this.isHttp&&"begin"in v&&"end"in v?(n.setRequestHeader("Range","bytes=".concat(v.begin,"-").concat(v.end-1)),g.expectedStatus=206):g.expectedStatus=200,n.responseType="arraybuffer",v.onError&&(n.onerror=function(G){v.onError(n.status)}),n.onreadystatechange=this.onStateChange.bind(this,d),n.onprogress=this.onProgress.bind(this,d),g.onHeadersReceived=v.onHeadersReceived,g.onDone=v.onDone,g.onError=v.onError,g.onProgress=v.onProgress,n.send(null),d}},{key:"onProgress",value:function(v,n){var d=this.pendingRequests[v];!d||d.onProgress&&d.onProgress(n)}},{key:"onStateChange",value:function(v,n){var d=this.pendingRequests[v];if(d){var g=d.xhr;if(g.readyState>=2&&d.onHeadersReceived&&(d.onHeadersReceived(),delete d.onHeadersReceived),4===g.readyState&&v in this.pendingRequests){if(delete this.pendingRequests[v],0===g.status&&this.isHttp)return void(d.onError&&d.onError(g.status));var k=g.status||200;if((200!==k||206!==d.expectedStatus)&&k!==d.expectedStatus)return void(d.onError&&d.onError(g.status));var G=function V(S){var u=S.response;return"string"!=typeof u?u:(0,a.stringToBytes)(u).buffer}(g);if(206===k){var P=g.getResponseHeader("Content-Range"),B=/bytes (\d+)-(\d+)\/(\d+)/.exec(P);d.onDone({begin:parseInt(B[1],10),chunk:G})}else G?d.onDone({begin:0,chunk:G}):d.onError&&d.onError(g.status)}}}},{key:"hasPendingRequests",value:function(){for(var v in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(v){return this.pendingRequests[v].xhr}},{key:"isPendingRequest",value:function(v){return v in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var v in this.pendingRequests)this.abortRequest
1(0|v)}},{key:"abortRequest",value:function(v){var n=this.pendingRequests[v].xhr;delete this.pendingRequests[v],n.abort()}}]),S}();o.PDFNetworkStream=function(){function S(u){O(this,S),this._source=u,this._manager=new ee(u.url,{httpHeaders:u.httpHeaders,withCredentials:u.withCredentials}),this._rangeChunkSize=u.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return D(S,[{key:"_onRangeRequestReaderClosed",value:function(v){var n=this._rangeRequestReaders.indexOf(v);n>=0&&this._rangeRequestReaders.splice(n,1)}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new T(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(v,n){var d=new h(this._manager,v,n);return d.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(d),d}},{key:"cancelAllRequests",value:function(v){this._fullRequestReader&&this._fullRequestReader.cancel(v),this._rangeRequestReaders.slice(0).forEach(function(d){d.cancel(v)})}}]),S}();var T=function(){function S(u,v){O(this,S),this._manager=u;var n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=v.url,this._fullRequestId=u.requestFull(n),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=v.disableRange||!1,this._contentLength=v.length,this._rangeChunkSize=v.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(S,[{key:"_onHeadersReceived",value:function(){var v=this._fullRequestId,n=this._manager.getRequestXhr(v),d=function(P){return n.getResponseHeader(P)},g=(0,l.validateRangeRequestCapabilities)({getResponseHeader:d,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),M=g.suggestedLength;g.allowRangeRequests&&(this._isRangeSupported=!0),this._contentLength=M||this._contentLength,this._filename=(0,l.extractFilenameFromHeader)(d),this._isRangeSupported&&this._manager.abortRequest(v),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(v){v&&(this._requests.length>0?this._requests.shift().resolve({value:v.chunk,done:!1}):this._cachedChunks.push(v.chunk)),this._done=!0,!(this._cachedChunks.length>0)&&(this._requests.forEach(function(d){d.resolve({value:void 0,done:!0})}),this._requests=[])}},{key:"_onError",value:function(v){var d=(0,l.createResponseStatusError)(v,this._url);this._storedError=d,this._headersReceivedCapability.reject(d),this._requests.forEach(function(g){g.reject(d)}),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(v){this.onProgress&&this.onProgress({loaded:v.loaded,total:v.lengthComputable?v.total:this._contentLength})}},{key:"read",value:(u=E(t.default.mark(function n(){var d,g;return t.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!this._storedError){M.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){M.next=5;break}return d=this._cachedChunks.shift(),M.abrupt("return",{value:d,done:!1});case 5:if(!this._done){M.next=7;break}return M.abrupt("return",{value:void 0,done:!0});case 7:return g=(0,a.createPromiseCapability)(),this._requests.push(g),M.abrupt("return",g.promise);case 10:case"end":return M.stop()}},n,this)})),function v(){return u.apply(this,arguments)})},{key:"cancel",value:function(v){this._done=!0,this._headersReceivedCapability.reject(v),this._requests.forEach(function(n){n.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}}]),S;var u}(),h=function(){function S(u,v,n){O(this,S),this._manager=u;var d={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=u.requestRange(v,n,d),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}return D(S,[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(v){var n=v.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}
1):this._queuedChunk=n,this._done=!0,this._requests.forEach(function(g){g.resolve({value:void 0,done:!0})}),this._requests=[],this._close()}},{key:"_onProgress",value:function(v){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:v.loaded})}},{key:"read",value:(u=E(t.default.mark(function n(){var d,g;return t.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(null===this._queuedChunk){M.next=4;break}return d=this._queuedChunk,this._queuedChunk=null,M.abrupt("return",{value:d,done:!1});case 4:if(!this._done){M.next=6;break}return M.abrupt("return",{value:void 0,done:!0});case 6:return g=(0,a.createPromiseCapability)(),this._requests.push(g),M.abrupt("return",g.promise);case 9:case"end":return M.stop()}},n,this)})),function v(){return u.apply(this,arguments)})},{key:"cancel",value:function(v){this._done=!0,this._requests.forEach(function(n){n.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}}]),S;var u}()},function(b,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PDFFetchStream=void 0;var t=function y(T){return T&&T.__esModule?T:{default:T}}(e(2)),a=e(5),l=e(213);function x(T,h,S,u,v,n,d){try{var g=T[n](d),k=g.value}catch(M){return void S(M)}g.done?h(k):Promise.resolve(k).then(u,v)}function E(T){return function(){var h=this,S=arguments;return new Promise(function(u,v){var n=T.apply(h,S);function d(k){x(n,u,v,d,g,"next",k)}function g(k){x(n,u,v,d,g,"throw",k)}d(void 0)})}}function O(T,h){if(!(T instanceof h))throw new TypeError("Cannot call a class as a function")}function w(T,h){for(var S=0;S<h.length;S++){var u=h[S];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(T,u.key,u)}}function D(T,h,S){return h&&w(T.prototype,h),S&&w(T,S),T}function Y(T,h,S){return{method:"GET",headers:T,signal:S&&S.signal,mode:"cors",credentials:h?"include":"same-origin",redirect:"follow"}}function U(T){var h=new Headers;for(var S in T){var u=T[S];typeof u>"u"||h.append(S,u)}return h}o.PDFFetchStream=function(){function T(h){O(this,T),this.source=h,this.isHttp=/^https?:/i.test(h.url),this.httpHeaders=this.isHttp&&h.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return D(T,[{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new ee(this),this._fullRequestReader}},{key:"getRangeReader",value:function(S,u){if(u<=this._progressiveDataLength)return null;var v=new X(this,S,u);return this._rangeRequestReaders.push(v),v}},{key:"cancelAllRequests",value:function(S){this._fullRequestReader&&this._fullRequestReader.cancel(S),this._rangeRequestReaders.slice(0).forEach(function(v){v.cancel(S)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]),T}();var ee=function(){function T(h){var S=this;O(this,T),this._stream=h,this._reader=null,this._loaded=0,this._filename=null;var u=h.source;this._withCredentials=u.withCredentials||!1,this._contentLength=u.length,this._headersCapability=(0,a.createPromiseCapability)(),this._disableRange=u.disableRange||!1,this._rangeChunkSize=u.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!u.disableStream,this._isRangeSupported=!u.disableRange,this._headers=U(this._stream.httpHeaders);var v=u.url;fetch(v,Y(this._headers,this._withCredentials,this._abortController)).then(function(n){if(!(0,l.validateResponseStatus)(n.status))throw(0,l.createResponseStatusError)(n.status,v);S._reader=n.body.getReader(),S._headersCapability.resolve();var d=function(P){return n.headers.get(P)},g=(0,l.validateRangeRequestCapabilities)({getResponseHeader:d,isHttp:S._stream.isHttp,rangeChunkSize:S._rangeChunkSize,disableRange:S._disableRange}),M=g.suggestedLength;S._isRangeSupported=g.allowRangeRequests,S._contentLength=M||S._contentLength,S._filename=(0,l.extractFilenameFromHeader)(d),!S._isStreamingSupported&&S._isRangeSupported&&S.cancel(new a.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return D(T,[{key:"read",value:(h=E(t.default.mark(function u(){var v,n,d,g;return t.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this._headersCapability.promise;case 2:return M.next=4,this._reader.read();case 4:if(n=(v=M.sent).value,!(d=v.done)){M.next=9;break}return M.abrupt("return",{value:n,done:d});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),g=new Uint8Array(n).buffer,M.abrupt("return",{value:g,done:!1});case 13:case"end":return M.stop()}},u,this)})),function S(){return h.apply(this,arguments)})},{key:"cancel",value:function(S){this._reader&&this._reader.cancel(S),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}}]),T;var h}(),X=function(){function T(h,S,u){var v=this;O(this,T),this._stream=h,this._reader=null,this._loaded=0;var n=h.source;this._withCredentials=n.withCredentials||!1,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!n.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=U(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(S,"-").concat(u-1));var d=n.url;fetch(d,Y(this._headers,this._withCredentials,this._abortController)).then(function(g){if(!(0,l.validateResponseStatus)(g.status))throw(0,l.createResponseStatusError)(g.status,d);v._readCapability.resolve(),v._reader=g.body.getReader()}),this.onProgress=null}return D(T,[{key:"read",value:(h=E(t.default.mark(function u(){var v,n,d,g;return t.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,this._readCapability.promise;case 2:return M.next=4,this._reader.read();case 4:if(n=(v=M.sent).value,!(d=v.done)){M.next=9;break}return M.abrupt("return",{value:n,done:d});case 9:return this._loaded+=n.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),g=new Uint8Array(n).buffer,M.abrupt("return",{value:g,done:!1});case 13:case"end":return M.stop()}},u,this)})),function S(){return h.apply(this,arguments)})},{key:"cancel",value:function(S){this._reader&&this._reader.cancel(S),this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]),T;var h}()}])},module.exports=e()}}]);

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