!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s="069e")}({"069e":function(e,t,r){(function(t,r,n){ /** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @licend The above is the entire license notice for the * Javascript code in this page */ var a;a=function(){return i={},e.m=a=[function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"WorkerMessageHandler",{enumerable:!0,get:function(){return n.WorkerMessageHandler}});var n=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(5),o=r(202),s=r(203),c=r(224),l=r(7),u=r(243),h=r(244),f=r(205);function d(e){return b(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||m(e)||g()}function p(e,t){return b(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}}(e,t)||m(e,t)||g()}function g(){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 m(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}(r.slice(1));try{for(l.s();!(t=l.n()).done;)o=t.value.filter((function(e){return null!==e})).reduce((function(e,t){return e.concat(t)}),o)}catch(e){l.e(e)}finally{l.f()}if(0===o.length)return n.bytes;var u,h=s.xref;e=Object.create(null);return h.trailer&&(u=Object.create(null),(r=h.trailer.get("Info")||null)&&r.forEach((function(e,t){(0,i.isString)(e)&&(0,i.isString)(t)&&(u[e]=(0,i.stringToPDFString)(t))})),e={rootRef:h.trailer.getRaw("Root")||null,encrypt:h.trailer.getRaw("Encrypt")||null,newRef:h.getNewRef(),infoRef:h.trailer.getRaw("Info")||null,info:u,fileIds:h.trailer.getRaw("ID")||null,startXRef:s.startXRef,filename:a}),h.resetNewRef(),(0,c.incrementalUpdate)(n.bytes,e,o)}))})),T.on("GetOperatorList",(function(e,t){var n=e.pageIndex;r.getPage(n).then((function(r){var a=new x("GetOperatorList: page ".concat(n));O(a);var o=v>=i.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:T,sink:t,task:a,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms,annotationStorage:e.annotationStorage}).then((function(e){I(a),o&&(0,i.info)("page=".concat(n+1," - getOperatorList: time=")+"".concat(Date.now()-o,"ms, len=").concat(e.length)),t.close()}),(function(e){I(a),a.terminated||(T.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.errorOperatorList}),t.error(e))}))}))}),this),T.on("GetTextContent",(function(e,t){var n=e.pageIndex;t.onPull=function(e){},t.onCancel=function(e){},r.getPage(n).then((function(r){var a=new x("GetTextContent: page "+n);O(a);var o=v>=i.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:T,task:a,sink:t,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then((function(){I(a),o&&(0,i.info)("page=".concat(n+1," - getTextContent: time=")+"".concat(Date.now()-o,"ms")),t.close()}),(function(e){I(a),a.terminated||t.error(e)}))}))})),T.on("FontFallback",(function(e){return r.fontFallback(e.id,T)})),T.on("Cleanup",(function(e){return r.cleanup(!0)})),T.on("Terminate",(function(e){n=!0;var t,a=[];return r?(r.terminate(new i.AbortException("Worker was terminated.")),t=r.cleanup(),a.push(t),r=null):(0,o.clearPrimitiveCaches)(),l&&l(new i.AbortException("Worker was terminated.")),g.forEach((function(e){a.push(e.finished),e.terminate()})),Promise.all(a).then((function(){T.destroy(),T=null}))})),T.on("Ready",(function(t){function a(e){E(),T.send("GetDoc",{pdfInfo:e})}function o(e){var t;E(),e instanceof i.PasswordException?(O(t=new x("PasswordException: response ".concat(e.code))),T.sendWithPromise("PasswordRequest",e).then((function(e){e=e.password,I(t),r.updatePassword(e),s()})).catch((function(){I(t),T.send("DocException",e)}))):e instanceof i.InvalidPDFException||e instanceof i.MissingPDFException||e instanceof i.UnexpectedResponseException||e instanceof i.UnknownErrorException?T.send("DocException",e):T.send("DocException",new i.UnknownErrorException(e.message,e.toString()))}function s(){E(),P(!1).then(a,(function(e){E(),e instanceof f.XRefParseException?(r.requestLoadedStream(),r.onLoadedStream().then((function(){E(),P(!0).then(a,o)}))):o(e)}))}var c;c=e,E(),F(c,{maxImageSize:c.maxImageSize,disableFontFace:c.disableFontFace,ignoreErrors:c.ignoreErrors,isEvalSupported:c.isEvalSupported,fontExtraProperties:c.fontExtraProperties}).then((function(e){if(n)throw e.terminate(new i.AbortException("Worker was terminated.")),new Error("Worker was terminated");(r=e).onLoadedStream().then((function(e){T.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(s,o),e=null})),w}},{key:"initializeFromPort",value:function(t){var r=new u.MessageHandler("worker","main",t);e.setup(r,t),r.send("ready",null)}}]),e}();t.WorkerMessageHandler=A,"undefined"==typeof window&&!l.isNodeJS&&"undefined"!=typeof self&&"function"==typeof(C=self).postMessage&&"onmessage"in C&&A.initializeFromPort(self)},function(e,t,r){"use strict";e.exports=r(3)},function(e,t,r){"use strict";(function(t){function r(e){return(r="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})(e)}t=function(e){var t,n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(n){l=function(e,t,r){return e[t]=r}}function u(e,r,n,a){var i,o,s,c;r=r&&r.prototype instanceof v?r:v,r=Object.create(r.prototype),a=new T(a||[]);return r._invoke=(i=e,o=n,s=a,c=f,function(e,r){if(c===p)throw new Error("Generator is already running");if(c===g){if("throw"===e)throw r;return O()}for(s.method=e,s.arg=r;;){var n=s.delegate;if(n){var a=function e(r,n){var a=r.iterator[n.method];if(a===t){if(n.delegate=null,"throw"===n.method){if(r.iterator.return&&(n.method="return",n.arg=t,e(r,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}if(a=h(a,r.iterator,n.arg),"throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;a=a.arg;return a?a.done?(n[r.resultName]=a.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}(n,s);if(a){if(a===m)continue;return a}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(c===f)throw c=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c=p,a=h(i,o,s),"normal"===a.type){if(c=s.done?g:d,a.arg!==m)return{value:a.arg,done:s.done}}else"throw"===a.type&&(c=g,s.method="throw",s.arg=a.arg)}}),r}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",g="completed",m={};function v(){}function b(){}function y(){}var w={};w[o]=function(){return this},i=Object.getPrototypeOf,i=i&&i(i(E([]))),i&&i!==n&&a.call(i,o)&&(w=i);var k=y.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var n;this._invoke=function(i,o){function s(){return new t((function(n,s){!function n(i,o,s,c){if(i=h(e[i],e,o),"throw"!==i.type){var l=i.arg;o=l.value;return o&&"object"===r(o)&&a.call(o,"__await")?t.resolve(o.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(o).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(i.arg)}(i,o,n,s)}))}return n=n?n.then(s,s):s()}}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function E(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1;r=function r(){for(;++n>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=y,t.stringToPDFString=function(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var n=2;ne[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,r){function n(e,t){return e-t}var a=[t[0],t[2],r[0],r[2]].sort(n),i=[t[1],t[3],r[1],r[3]].sort(n),o=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]?(o[0]=a[1],o[2]=a[2],i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]?(o[1]=i[1],o[3]=i[2],o):null):null}}],(r=null)&&n(t.prototype,r),a&&n(t,a),e}();var S,x=[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];S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=function(e,t){if(!(2>2]+S[(3&o)<<4|s>>4]+S[a+1>6:64]+S[a+2c;)n(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},function(e,t,r){var n=r(17),a=r(47),i=r(49);r=function(e){return function(t,r,o){var s,c=n(t),l=a(c.length),u=i(o,l);if(e&&r!=r){for(;u"+e+""}var i,o=r(28),s=r(72),c=r(50),l=r(39),u=r(74),h=r(25),f=(r=r(35),"prototype"),d="script",p=r("IE_PROTO"),g=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e;g=i?function(e){e.write(a("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):((e=h("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(a("document.F=Object")),e.close(),e.F);for(var t=c.length;t--;)delete g[f][c[t]];return g()};l[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(n[f]=o(e),r=new n,n[f]=null,r[p]=e):r=g(),void 0===t?r:s(r,t)}},function(e,t,r){var n=r(13),a=r(27),i=r(28),o=r(73);e.exports=n?Object.defineProperties:function(e,t){i(e);for(var r,n=o(t),s=n.length,c=0;c=t.length?{value:void 0,done:!0}:(r=n(t,r),e.index+=r.length,{value:r,done:!1})}))},function(e,t,r){var n=r(48),a=r(20);r=function(e){return function(t,r){var i,o=String(a(t)),s=n(r);t=o.length;return s<0||t<=s?e?"":void 0:(r=o.charCodeAt(s))<55296||56319=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(e,t,r){var n=r(10),a=r(104),i=r(93);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return a(e,(function(e,r){i(t,e,r)}),void 0,!0),t}})},function(e,t,r){function n(e,t){this.stopped=e,this.result=t}var a=r(28),i=r(92),o=r(47),s=r(62),c=r(94),l=r(91);(e.exports=function(e,t,r,u,h){var f,d,p,g,m,v,b=s(t,r,u?2:1);if(h)f=e;else{if("function"!=typeof(h=c(e)))throw TypeError("Target is not iterable");if(i(h)){for(d=0,p=o(e.length);ds;){var c,l,u,h=a[s++],f=o?h.ok:h.fail,d=h.resolve,p=h.reject,g=h.domain;try{f?(o||(2===t.rejection&&re(e,t),t.rejection=1),!0===f?c=i:(g&&g.enter(),c=f(i),g&&(g.exit(),u=!0)),c===h.promise?p(W("Promise-chain cycle")):(l=n(c))?l.call(c,d,p):d(c)):p(i)}catch(i){g&&!u&&g.exit(),p(i)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&ee(e,t)})))}function i(e,t,r){var n;Q?((n=X.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),p.dispatchEvent(n)):n={promise:t,reason:r},(t=p["on"+e])?t(n):e===$&&F("Unhandled promise rejection",r)}function o(e,t,r,n){return function(a){e(t,r,a,n)}}function s(e,t,r,n){t.done||(t.done=!0,(t=n||t).value=r,t.state=2,a(e,t,!0))}var c,l,u,h,f=r(10),d=r(37),p=r(11),g=r(42),m=r(123),v=r(29),b=r(124),y=r(85),w=r(125),k=r(22),S=r(63),x=r(126),C=r(19),A=r(31),T=r(104),E=r(97),O=r(116),I=r(127).set,P=r(130),_=r(131),F=r(133),R=r(132),B=r(134),M=r(33),D=r(52),L=r(57),N=r(135),U=L("species"),j="Promise",q=M.get,z=M.set,G=M.getterFor(j),H=m,W=p.TypeError,X=p.document,V=p.process,Y=g("fetch"),K=R.f,J=K,Z="process"==C(V),Q=!!(X&&X.createEvent&&p.dispatchEvent),$="unhandledrejection",ee=(D=D(j,(function(){if(A(H)===String(H)){if(66===N)return!0;if(!Z&&"function"!=typeof PromiseRejectionEvent)return!0}if(d&&!H.prototype.finally)return!0;if(51<=N&&/native code/.test(H))return!1;function e(e){e((function(){}),(function(){}))}var t=H.resolve(1);return(t.constructor={})[U]=e,!(t.then((function(){}))instanceof e)})),E=D||!E((function(e){H.all(e).catch((function(){}))})),function(e,t){I.call(p,(function(){var r,n=t.value,a=te(t);if(a&&(r=B((function(){Z?V.emit("unhandledRejection",n,e):i($,e,n)})),t.rejection=Z||te(t)?2:1,r.error))throw r.value}))}),te=function(e){return 1!==e.rejection&&!e.parent},re=function(e,t){I.call(p,(function(){Z?V.emit("rejectionHandled",e):i("rejectionhandled",e,t.value)}))},ne=function(e,t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(e===r)throw W("Promise can't be resolved itself");var c=n(r);c?P((function(){var n={done:!1};try{c.call(r,o(ne,e,n,t),o(s,e,n,t))}catch(r){s(e,n,r,t)}})):(t.value=r,t.state=1,a(e,t,!1))}catch(r){s(e,{done:!1},r,t)}}};D&&(H=function(e){x(this,H,j),S(e),c.call(this);var t=q(this);try{e(o(ne,this,t),o(s,this,t))}catch(e){s(this,t,e)}},(c=function(e){z(this,{type:j,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=b(H.prototype,{then:function(e,t){var r=G(this),n=K(O(this,H));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Z?V.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&a(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),l=function(){var e=new c,t=q(e);this.promise=e,this.resolve=o(ne,e,t),this.reject=o(s,e,t)},R.f=K=function(e){return e===H||e===u?new l:J(e)},d||"function"!=typeof m||(h=m.prototype.then,v(m.prototype,"then",(function(e,t){var r=this;return new H((function(e,t){h.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Y&&f({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return _(H,Y.apply(p,arguments))}}))),f({global:!0,wrap:!0,forced:D},{Promise:H}),y(H,j,!1,!0),w(j),u=g(j),f({target:j,stat:!0,forced:D},{reject:function(e){var t=K(this);return t.reject.call(void 0,e),t.promise}}),f({target:j,stat:!0,forced:d||D},{resolve:function(e){return _(d&&this===u?H:this,e)}}),f({target:j,stat:!0,forced:E},{all:function(e){var t=this,r=K(t),n=r.resolve,a=r.reject,i=B((function(){var r=S(t.resolve),i=[],o=0,s=1;T(e,(function(e){var c=o++,l=!1;i.push(void 0),s++,r.call(t,e).then((function(e){l||(l=!0,i[c]=e,--s||n(i))}),a)})),--s||n(i)}));return i.error&&a(i.value),r.promise},race:function(e){var t=this,r=K(t),n=r.reject,a=B((function(){var a=S(t.resolve);T(e,(function(e){a.call(t,e).then(r.resolve,n)}))}));return a.error&&n(a.value),r.promise}})},function(e,t,r){r=r(11),e.exports=r.Promise},function(e,t,r){var n=r(29);e.exports=function(e,t,r){for(var a in t)n(e,a,t[a],r);return e}},function(e,t,r){"use strict";var n=r(42),a=r(27),i=r(57),o=r(13),s=i("species");e.exports=function(e){var t=n(e);e=a.f;o&&t&&!t[s]&&e(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){function n(e){var t;k.hasOwnProperty(e)&&(t=k[e],delete k[e],t())}function a(e){return function(){n(e)}}function i(e){n(e.data)}var o,s=r(11),c=r(14),l=r(19),u=r(62),h=r(74),f=r(25),d=r(128),p=s.location,g=s.setImmediate,m=s.clearImmediate,v=s.process,b=s.MessageChannel,y=s.Dispatch,w=0,k={},S="onreadystatechange";r=function(e){s.postMessage(e+"",p.protocol+"//"+p.host)};g&&m||(g=function(e){for(var t=[],r=1;r=B(256,5-t))return null}else if(255":1,"`":1}),$=S({},Q,{"#":1,"?":1,"{":1,"}":1}),ee=S({},$,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),te=function(e,t){var r=C(e,0);return 32l((i-s)/m))throw RangeError(c);for(s+=(p-o)*m,o=p,g=0;gi)throw RangeError(c);if(t==o){for(var v=s,b=36;;b+=36){var y=b<=h?1:h+26<=b?26:b-h;if(v>1,e+=l(e/t);455e.key){n.splice(t,0,e);break}t===i&&n.push(e)}r.updateURL()},forEach:function(e){for(var t,r=R(this).entries,n=w(e,10)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");D(this)}},e}();function ee(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function te(e){var t=e._ownerReadableStream;return t._disturbed=!0,"closed"===t._state?x(R(void 0,!0,e._forAuthorCode)):"errored"===t._state?C(t._storedError):t._readableStreamController[W]()}function re(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}"symbol"===typeof t.asyncIterator&&(Z={},Z[t.asyncIterator]=function(){return this},Q=Z,Object.defineProperty(Q,t.asyncIterator,{enumerable:!1}));var ne={next:function(){if(!1===ie(this))return C(oe("next"));var e=this._asyncIteratorReader;return void 0===e._ownerReadableStream?C(L("iterate")):I(te(e),(function(t){var r=t.done;r&&D(e);var n=t.value;return R(n,r,!0)}))},return:function(e){if(!1===ie(this))return C(oe("next"));var t=this._asyncIteratorReader;if(void 0===t._ownerReadableStream)return C(L("finish iterating"));if(t._readRequests.length>0)return C(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var r=M(t,e);return D(t),I(r,(function(){return R(e,!0,!0)}))}return D(t),x(R(e,!0,!0))}};function ae(e,t){void 0===t&&(t=!1);var r=X(e),n=Object.create(ne);return n._asyncIteratorReader=r,n._preventCancel=Boolean(t),n}function ie(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorReader")}function oe(e){return new TypeError("ReadableStreamAsyncIterator."+e+" can only be used on a ReadableSteamAsyncIterator")}function se(e){var t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ce(e,t,r){if(r=Number(r),!c(r))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function le(e){var t=e._queue.peek();return t.value}function ue(e){e._queue=new F,e._queueTotalSize=0}void 0!==Q&&Object.setPrototypeOf(ne,Q),Object.defineProperty(ne,"next",{enumerable:!1}),Object.defineProperty(ne,"return",{enumerable:!1});var he=t("[[AbortSteps]]"),fe=t("[[ErrorSteps]]"),de=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),me(this);var r=t.size,n=t.highWaterMark,a=e.type;if(void 0!==a)throw new RangeError("Invalid type is specified");var i=v(r);void 0===n&&(n=1),n=m(n),Ye(this,e,n,i)}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===ve(this))throw ot("locked");return be(this)},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===ve(this)?C(ot("abort")):!0===be(this)?C(new TypeError("Cannot abort a stream that already has a writer")):ye(this,e)},e.prototype.close=function(){return!1===ve(this)?C(ot("close")):!0===be(this)?C(new TypeError("Cannot close a stream that already has a writer")):!0===Ie(this)?C(new TypeError("Cannot close an already-closing stream")):we(this)},e.prototype.getWriter=function(){if(!1===ve(this))throw ot("getWriter");return pe(this)},e}();function pe(e){return new Me(e)}function ge(e,t,r,n,a,i){void 0===a&&(a=1),void 0===i&&(i=function(){return 1});var o=Object.create(de.prototype);me(o);var s=Object.create(We.prototype);return Ve(o,s,e,t,r,n,a,i),o}function me(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new F,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function ve(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function be(e){return void 0!==e._writer}function ye(e,t){var r=e._state;if("closed"===r||"errored"===r)return x(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;var n=!1;"erroring"===r&&(n=!0,t=void 0);var a=S((function(r,a){e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:a,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=a,!1===n&&xe(e,t),a}function we(e){var t=e._state;if("closed"===t||"errored"===t)return C(new TypeError("The stream (in "+t+" state) is not in the writable state and cannot be closed"));var r=S((function(t,r){var n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;return void 0!==n&&!0===e._backpressure&&"writable"===t&&kt(n),Je(e._writableStreamController),r}function ke(e){var t=S((function(t,r){var n={_resolve:t,_reject:r};e._writeRequests.push(n)}));return t}function Se(e,t){var r=e._state;"writable"!==r?Ce(e):xe(e,t)}function xe(e,t){var r=e._writableStreamController;e._state="erroring",e._storedError=t;var n=e._writer;void 0!==n&&qe(n,t),!1===Pe(e)&&!0===r._started&&Ce(e)}function Ce(e){e._state="errored",e._writableStreamController[fe]();var t=e._storedError;if(e._writeRequests.forEach((function(e){e._reject(t)})),e._writeRequests=new F,void 0!==e._pendingAbortRequest){var r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===r._wasAlreadyErroring)return r._reject(t),void Re(e);var n=e._writableStreamController[he](r._reason);T(n,(function(){r._resolve(),Re(e)}),(function(t){r._reject(t),Re(e)}))}else Re(e)}function Ae(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}function Te(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Se(e,t)}function Ee(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0;var t=e._state;"erroring"===t&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";var r=e._writer;void 0!==r&&pt(r)}function Oe(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Se(e,t)}function Ie(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function Pe(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}function _e(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0}function Fe(e){e._inFlightWriteRequest=e._writeRequests.shift()}function Re(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);var t=e._writer;void 0!==t&&ft(t,e._storedError)}function Be(e,t){var r=e._writer;void 0!==r&&t!==e._backpressure&&(!0===t?yt(r):kt(r)),e._backpressure=t}var Me=function(){function e(e){if(!1===ve(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===be(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;var t=e._state;if("writable"===t)!1===Ie(e)&&!0===e._backpressure?gt(this):vt(this),lt(this);else if("erroring"===t)mt(this,e._storedError),lt(this);else if("closed"===t)vt(this),ht(this);else{var r=e._storedError;mt(this,r),ut(this,r)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return!1===De(this)?C(st("closed")):this._closedPromise},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===De(this))throw st("desiredSize");if(void 0===this._ownerWritableStream)throw ct("desiredSize");return ze(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ready",{get:function(){return!1===De(this)?C(st("ready")):this._readyPromise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){return!1===De(this)?C(st("abort")):void 0===this._ownerWritableStream?C(ct("abort")):Le(this,e)},e.prototype.close=function(){if(!1===De(this))return C(st("close"));var e=this._ownerWritableStream;return void 0===e?C(ct("close")):!0===Ie(e)?C(new TypeError("Cannot close an already-closing stream")):Ne(this)},e.prototype.releaseLock=function(){if(!1===De(this))throw st("releaseLock");var e=this._ownerWritableStream;void 0!==e&&Ge(this)},e.prototype.write=function(e){return!1===De(this)?C(st("write")):void 0===this._ownerWritableStream?C(ct("write to")):He(this,e)},e}();function De(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function Le(e,t){var r=e._ownerWritableStream;return ye(r,t)}function Ne(e){var t=e._ownerWritableStream;return we(t)}function Ue(e){var t=e._ownerWritableStream,r=t._state;return!0===Ie(t)||"closed"===r?x(void 0):"errored"===r?C(t._storedError):Ne(e)}function je(e,t){"pending"===e._closedPromiseState?ft(e,t):dt(e,t)}function qe(e,t){"pending"===e._readyPromiseState?bt(e,t):wt(e,t)}function ze(e){var t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Qe(t._writableStreamController)}function Ge(e){var t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");qe(e,r),je(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function He(e,t){var r=e._ownerWritableStream,n=r._writableStreamController,a=Ze(n,t);if(r!==e._ownerWritableStream)return C(ct("write to"));var i=r._state;if("errored"===i)return C(r._storedError);if(!0===Ie(r)||"closed"===i)return C(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return C(r._storedError);var o=ke(r);return $e(n,t,a),o}var We=function(){function e(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return e.prototype.error=function(e){if(!1===Xe(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var t=this._controlledWritableStream._state;"writable"===t&&it(this,e)},e.prototype[he]=function(e){var t=this._abortAlgorithm(e);return Ke(this),t},e.prototype[fe]=function(){ue(this)},e}();function Xe(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}function Ve(e,t,r,n,a,i,o,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,ue(t),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._writeAlgorithm=n,t._closeAlgorithm=a,t._abortAlgorithm=i;var c=at(t);Be(e,c);var l=r(),u=x(l);T(u,(function(){t._started=!0,et(t)}),(function(r){t._started=!0,Se(e,r)}))}function Ye(e,t,r,n){var a=Object.create(We.prototype);function i(){return f(t,"start",[a])}var o=h(t,"write",1,[a]),s=h(t,"close",0,[]),c=h(t,"abort",1,[]);Ve(e,a,i,o,s,c,r,n)}function Ke(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Je(e){ce(e,"close",0),et(e)}function Ze(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return tt(e,t),1}}function Qe(e){return e._strategyHWM-e._queueTotalSize}function $e(e,t,r){var n={chunk:t};try{ce(e,n,r)}catch(t){return void tt(e,t)}var a=e._controlledWritableStream;if(!1===Ie(a)&&"writable"===a._state){var i=at(e);Be(a,i)}et(e)}function et(e){var t=e._controlledWritableStream;if(!1!==e._started&&void 0===t._inFlightWriteRequest){var r=t._state;if("erroring"!==r){if(0!==e._queue.length){var n=le(e);"close"===n?rt(e):nt(e,n.chunk)}}else Ce(t)}}function tt(e,t){"writable"===e._controlledWritableStream._state&&it(e,t)}function rt(e){var t=e._controlledWritableStream;_e(t),se(e);var r=e._closeAlgorithm();Ke(e),T(r,(function(){Ee(t)}),(function(e){Oe(t,e)}))}function nt(e,t){var r=e._controlledWritableStream;Fe(r);var n=e._writeAlgorithm(t);T(n,(function(){Ae(r);var t=r._state;if(se(e),!1===Ie(r)&&"writable"===t){var n=at(e);Be(r,n)}et(e)}),(function(t){"writable"===r._state&&Ke(e),Te(r,t)}))}function at(e){var t=Qe(e);return t<=0}function it(e,t){var r=e._controlledWritableStream;Ke(e),xe(r,t)}function ot(e){return new TypeError("WritableStream.prototype."+e+" can only be used on a WritableStream")}function st(e){return new TypeError("WritableStreamDefaultWriter.prototype."+e+" can only be used on a WritableStreamDefaultWriter")}function ct(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function lt(e){e._closedPromise=S((function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function ut(e,t){lt(e),ft(e,t)}function ht(e){lt(e),pt(e)}function ft(e,t){P(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function dt(e,t){ut(e,t)}function pt(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function gt(e){e._readyPromise=S((function(t,r){e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function mt(e,t){gt(e),bt(e,t)}function vt(e){gt(e),kt(e)}function bt(e,t){P(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function yt(e){gt(e)}function wt(e,t){mt(e,t)}function kt(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}function St(e){if("object"!==typeof e||null===e)return!1;try{return"boolean"===typeof e.aborted}catch(e){return!1}}var xt="undefined"!==typeof DOMException?DOMException:void 0;function Ct(e){if("function"!==typeof e&&"object"!==typeof e)return!1;try{return new e,!0}catch(e){return!1}}function At(){var e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}var Tt=Ct(xt)?xt:At();function Et(e,t,n,a,i,o){var s=X(e),c=pe(t);e._disturbed=!0;var l=!1,u=x(void 0);return S((function(h,f){var d;if(void 0!==o){if(d=function(){var r=new Tt("Aborted","AbortError"),n=[];!1===a&&n.push((function(){return"writable"===t._state?ye(t,r):x(void 0)})),!1===i&&n.push((function(){return"readable"===e._state?Dr(e,r):x(void 0)})),w((function(){return Promise.all(n.map((function(e){return e()})))}),!0,r)},!0===o.aborted)return void d();o.addEventListener("abort",d)}function p(){return S((function(e,t){function r(n){n?e():A(g(),r,t)}r(!1)}))}function g(){return!0===l?x(!0):A(c._readyPromise,(function(){return A(te(s),(function(e){return!0===e.done||(u=A(He(c,e.value),void 0,r),!1)}))}))}if(b(e,s._closedPromise,(function(e){!1===a?w((function(){return ye(t,e)}),!0,e):k(!0,e)})),b(t,c._closedPromise,(function(t){!1===i?w((function(){return Dr(e,t)}),!0,t):k(!0,t)})),y(e,s._closedPromise,(function(){!1===n?w((function(){return Ue(c)})):k()})),!0===Ie(t)||"closed"===t._state){var m=new TypeError("the destination writable stream closed before all data could be piped to it");!1===i?w((function(){return Dr(e,m)}),!0,m):k(!0,m)}function v(){var e=u;return A(u,(function(){return e!==u?v():void 0}))}function b(e,t,r){"errored"===e._state?r(e._storedError):O(t,r)}function y(e,t,r){"closed"===e._state?r():E(t,r)}function w(e,r,n){function a(){T(e(),(function(){return C(r,n)}),(function(e){return C(!0,e)}))}!0!==l&&(l=!0,"writable"===t._state&&!1===Ie(t)?E(v(),a):a())}function k(e,r){!0!==l&&(l=!0,"writable"===t._state&&!1===Ie(t)?E(v(),(function(){return C(e,r)})):C(e,r))}function C(e,t){Ge(c),D(s),void 0!==o&&o.removeEventListener("abort",d),e?f(t):h(void 0)}P(p())}))}var Ot=function(){function e(){throw new TypeError}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===It(this))throw qt("desiredSize");return Dt(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===It(this))throw qt("close");if(!1===Nt(this))throw new TypeError("The stream is not in a state that permits close");Rt(this)},e.prototype.enqueue=function(e){if(!1===It(this))throw qt("enqueue");if(!1===Nt(this))throw new TypeError("The stream is not in a state that permits enqueue");return Bt(this,e)},e.prototype.error=function(e){if(!1===It(this))throw qt("error");Mt(this,e)},e.prototype[H]=function(e){ue(this);var t=this._cancelAlgorithm(e);return Ft(this),t},e.prototype[W]=function(){var e=this._controlledReadableStream;if(this._queue.length>0){var t=se(this);return!0===this._closeRequested&&0===this._queue.length?(Ft(this),Lr(e)):Pt(this),x(R(t,!1,e._reader._forAuthorCode))}var r=V(e);return Pt(this),r},e}();function It(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function Pt(e){var t=_t(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var r=e._pullAlgorithm();T(r,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Pt(e))}),(function(t){Mt(e,t)}))}else e._pullAgain=!0}function _t(e){var t=e._controlledReadableStream;if(!1===Nt(e))return!1;if(!1===e._started)return!1;if(!0===Mr(t)&&K(t)>0)return!0;var r=Dt(e);return r>0}function Ft(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Rt(e){var t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Ft(e),Lr(t))}function Bt(e,t){var r=e._controlledReadableStream;if(!0===Mr(r)&&K(r)>0)Y(r,t,!1);else{var n=void 0;try{n=e._strategySizeAlgorithm(t)}catch(t){throw Mt(e,t),t}try{ce(e,t,n)}catch(t){throw Mt(e,t),t}}Pt(e)}function Mt(e,t){var r=e._controlledReadableStream;"readable"===r._state&&(ue(e),Ft(e),Nr(r,t))}function Dt(e){var t=e._controlledReadableStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function Lt(e){return!0!==_t(e)}function Nt(e){var t=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===t}function Ut(e,t,r,n,a,i,o){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,ue(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=o,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=a,e._readableStreamController=t;var s=r();T(x(s),(function(){t._started=!0,Pt(t)}),(function(e){Mt(t,e)}))}function jt(e,t,r,n){var a=Object.create(Ot.prototype);function i(){return f(t,"start",[a])}var o=h(t,"pull",0,[a]),s=h(t,"cancel",1,[]);Ut(e,a,i,o,s,r,n)}function qt(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function zt(e,t){var r,n,a,i,s,c=X(e),l=!1,u=!1,h=!1,f=S((function(e){s=e}));function d(){if(!0===l)return x(void 0);l=!0;var e=I(te(c),(function(e){l=!1;var t=e.done;if(!0===t)return!1===u&&Rt(a._readableStreamController),void(!1===h&&Rt(i._readableStreamController));var r=e.value,n=r,o=r;!1===u&&Bt(a._readableStreamController,n),!1===h&&Bt(i._readableStreamController,o)}));return P(e),x(void 0)}function p(t){if(u=!0,r=t,!0===h){var a=o([r,n]),i=Dr(e,a);s(i)}return f}function g(t){if(h=!0,n=t,!0===u){var a=o([r,n]),i=Dr(e,a);s(i)}return f}function m(){}return a=Fr(m,d,p),i=Fr(m,d,g),O(c._closedPromise,(function(e){Mt(a._readableStreamController,e),Mt(i._readableStreamController,e)})),[a,i]}var Gt=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},Ht=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return Object.defineProperty(e.prototype,"view",{get:function(){if(!1===Vt(this))throw wr("view");return this._view},enumerable:!0,configurable:!0}),e.prototype.respond=function(e){if(!1===Vt(this))throw wr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");g(this._view.buffer),gr(this._associatedReadableByteStreamController,e)},e.prototype.respondWithNewView=function(e){if(!1===Vt(this))throw wr("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");g(e.buffer),mr(this._associatedReadableByteStreamController,e)},e}(),Wt=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}return Object.defineProperty(e.prototype,"byobRequest",{get:function(){if(!1===Xt(this))throw kr("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(Ht.prototype);yr(r,this,t),this._byobRequest=r}return this._byobRequest},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Xt(this))throw kr("desiredSize");return pr(this)},enumerable:!0,configurable:!0}),e.prototype.close=function(){if(!1===Xt(this))throw kr("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError("The stream (in "+e+" state) is not in the readable state and cannot be closed");hr(this)},e.prototype.enqueue=function(e){if(!1===Xt(this))throw kr("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError("The stream (in "+t+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");g(e.buffer),fr(this,e)},e.prototype.error=function(e){if(!1===Xt(this))throw kr("error");dr(this,e)},e.prototype[H]=function(e){if(this._pendingPullIntos.length>0){var t=this._pendingPullIntos.peek();t.bytesFilled=0}ue(this);var r=this._cancelAlgorithm(e);return ur(this),r},e.prototype[W]=function(){var e=this._controlledReadableByteStream;if(this._queueTotalSize>0){var t=this._queue.shift();this._queueTotalSize-=t.byteLength,tr(this);var r=void 0;try{r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}catch(e){return C(e)}return x(R(r,!1,e._reader._forAuthorCode))}var n=this._autoAllocateChunkSize;if(void 0!==n){var a=void 0;try{a=new ArrayBuffer(n)}catch(e){return C(e)}var i={buffer:a,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}var o=V(e);return Yt(this),o},e}();function Xt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Vt(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function Yt(e){var t=lr(e);if(!1!==t)if(!0!==e._pulling){e._pulling=!0;var r=e._pullAlgorithm();T(r,(function(){e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,Yt(e))}),(function(t){dr(e,t)}))}else e._pullAgain=!0}function Kt(e){rr(e),e._pendingPullIntos=new F}function Jt(e,t){var r=!1;"closed"===e._state&&(r=!0);var n=Zt(t);"default"===t.readerType?Y(e,n,r):Cr(e,n,r)}function Zt(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function Qt(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function $t(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,a=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+a,o=i-i%r,c=a,l=!1;o>n&&(c=o-t.bytesFilled,l=!0);var u=e._queue;while(c>0){var h=u.peek(),f=Math.min(c,h.byteLength),d=t.byteOffset+t.bytesFilled;s(t.buffer,d,h.buffer,h.byteOffset,f),h.byteLength===f?u.shift():(h.byteOffset+=f,h.byteLength-=f),e._queueTotalSize-=f,er(e,f,t),c-=f}return l}function er(e,t,r){rr(e),r.bytesFilled+=t}function tr(e){0===e._queueTotalSize&&!0===e._closeRequested?(ur(e),Lr(e._controlledReadableByteStream)):Yt(e)}function rr(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function nr(e){while(e._pendingPullIntos.length>0){if(0===e._queueTotalSize)return;var t=e._pendingPullIntos.peek();!0===$t(e,t)&&(cr(e),Jt(e._controlledReadableByteStream,t))}}function ar(e,t){var r=e._controlledReadableByteStream,n=1;t.constructor!==DataView&&(n=t.constructor.BYTES_PER_ELEMENT);var a=t.constructor,i=p(t.buffer),o={buffer:i,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:n,ctor:a,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(o),xr(r);if("closed"===r._state){var s=new a(o.buffer,o.byteOffset,0);return x(R(s,!0,r._reader._forAuthorCode))}if(e._queueTotalSize>0){if(!0===$t(e,o)){var c=Zt(o);return tr(e),x(R(c,!1,r._reader._forAuthorCode))}if(!0===e._closeRequested){var l=new TypeError("Insufficient bytes to fill elements in the given buffer");return dr(e,l),C(l)}}e._pendingPullIntos.push(o);var u=xr(r);return Yt(e),u}function ir(e,t){t.buffer=p(t.buffer);var r=e._controlledReadableByteStream;if(!0===Tr(r))while(Ar(r)>0){var n=cr(e);Jt(r,n)}}function or(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(er(e,t,r),!(r.bytesFilled0){var a=r.byteOffset+r.bytesFilled,i=r.buffer.slice(a-n,a);Qt(e,i,0,i.byteLength)}r.buffer=p(r.buffer),r.bytesFilled-=n,Jt(e._controlledReadableByteStream,r),nr(e)}}function sr(e,t){var r=e._pendingPullIntos.peek(),n=e._controlledReadableByteStream;if("closed"===n._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");ir(e,r)}else or(e,t,r);Yt(e)}function cr(e){var t=e._pendingPullIntos.shift();return rr(e),t}function lr(e){var t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===J(t)&&K(t)>0)return!0;if(!0===Tr(t)&&Ar(t)>0)return!0;var r=pr(e);return r>0}function ur(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function hr(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos.peek();if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw dr(e,n),n}}ur(e),Lr(t)}}function fr(e,t){var r=e._controlledReadableByteStream,n=t.buffer,a=t.byteOffset,i=t.byteLength,o=p(n);if(!0===J(r))if(0===K(r))Qt(e,o,a,i);else{var s=new Uint8Array(o,a,i);Y(r,s,!1)}else!0===Tr(r)?(Qt(e,o,a,i),nr(e)):Qt(e,o,a,i);Yt(e)}function dr(e,t){var r=e._controlledReadableByteStream;"readable"===r._state&&(Kt(e),ue(e),ur(e),Nr(r,t))}function pr(e){var t=e._controlledReadableByteStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function gr(e,t){if(t=Number(t),!1===c(t))throw new RangeError("bytesWritten must be a finite");sr(e,t)}function mr(e,t){var r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,sr(e,t.byteLength)}function vr(e,t,r,n,a,i,o){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=void 0,t._queue=t._queueTotalSize=void 0,ue(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=m(i),t._pullAlgorithm=n,t._cancelAlgorithm=a,t._autoAllocateChunkSize=o,t._pendingPullIntos=new F,e._readableStreamController=t;var s=r();T(x(s),(function(){t._started=!0,Yt(t)}),(function(e){dr(t,e)}))}function br(e,t,r){var n=Object.create(Wt.prototype);function a(){return f(t,"start",[n])}var i=h(t,"pull",0,[n]),o=h(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===Gt(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");vr(e,n,a,i,o,r,s)}function yr(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function wr(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function kr(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}function Sr(e,t){void 0===t&&(t=!1);var r=new Er(e);return r._forAuthorCode=t,r}function xr(e){var t=S((function(t,r){var n={_resolve:t,_reject:r};e._reader._readIntoRequests.push(n)}));return t}function Cr(e,t,r){var n=e._reader,a=n._readIntoRequests.shift();a._resolve(R(t,r,n._forAuthorCode))}function Ar(e){return e._reader._readIntoRequests.length}function Tr(e){var t=e._reader;return void 0!==t&&!!Or(t)}var Er=function(){function e(e){if(!Br(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===Xt(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Mr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");B(this,e),this._readIntoRequests=new F}return Object.defineProperty(e.prototype,"closed",{get:function(){return Or(this)?this._closedPromise:C(Pr("closed"))},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return Or(this)?void 0===this._ownerReadableStream?C(L("cancel")):M(this,e):C(Pr("cancel"))},e.prototype.read=function(e){return Or(this)?void 0===this._ownerReadableStream?C(L("read from")):ArrayBuffer.isView(e)?(g(e.buffer),0===e.byteLength?C(new TypeError("view must have non-zero byteLength")):Ir(this,e)):C(new TypeError("view must be an array buffer view")):C(Pr("read"))},e.prototype.releaseLock=function(){if(!Or(this))throw Pr("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");D(this)}},e}();function Or(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Ir(e,t){var r=e._ownerReadableStream;return r._disturbed=!0,"errored"===r._state?C(r._storedError):ar(r._readableStreamController,t)}function Pr(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}var _r=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Rr(this);var r=t.size,n=t.highWaterMark,a=e.type,i=String(a);if("bytes"===i){if(void 0!==r)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===n&&(n=0),n=m(n),br(this,e,n)}else{if(void 0!==a)throw new RangeError("Invalid type is specified");var o=v(r);void 0===n&&(n=1),n=m(n),jt(this,e,n,o)}}return Object.defineProperty(e.prototype,"locked",{get:function(){if(!1===Br(this))throw Ur("locked");return Mr(this)},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){return!1===Br(this)?C(Ur("cancel")):!0===Mr(this)?C(new TypeError("Cannot cancel a stream that already has a reader")):Dr(this,e)},e.prototype.getReader=function(e){var t=(void 0===e?{}:e).mode;if(!1===Br(this))throw Ur("getReader");if(void 0===t)return X(this,!0);if(t=String(t),"byob"===t)return Sr(this,!0);throw new RangeError("Invalid mode is specified")},e.prototype.pipeThrough=function(e,t){var r=e.writable,n=e.readable,a=void 0===t?{}:t,i=a.preventClose,o=a.preventAbort,s=a.preventCancel,c=a.signal;if(!1===Br(this))throw Ur("pipeThrough");if(!1===ve(r))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===Br(n))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(i=Boolean(i),o=Boolean(o),s=Boolean(s),void 0!==c&&!St(c))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Mr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===be(r))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var l=Et(this,r,i,o,s,c);return P(l),n},e.prototype.pipeTo=function(e,t){var r=void 0===t?{}:t,n=r.preventClose,a=r.preventAbort,i=r.preventCancel,o=r.signal;return!1===Br(this)?C(Ur("pipeTo")):!1===ve(e)?C(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(n=Boolean(n),a=Boolean(a),i=Boolean(i),void 0===o||St(o)?!0===Mr(this)?C(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===be(e)?C(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Et(this,e,n,a,i,o):C(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},e.prototype.tee=function(){if(!1===Br(this))throw Ur("tee");var e=zt(this);return o(e)},e.prototype.getIterator=function(e){var t=(void 0===e?{}:e).preventCancel,r=void 0!==t&&t;if(!1===Br(this))throw Ur("getIterator");return ae(this,r)},e}();function Fr(e,t,r,n,a){void 0===n&&(n=1),void 0===a&&(a=function(){return 1});var i=Object.create(_r.prototype);Rr(i);var o=Object.create(Ot.prototype);return Ut(i,o,e,t,r,n,a),i}function Rr(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function Br(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function Mr(e){return void 0!==e._reader}function Dr(e,t){if(e._disturbed=!0,"closed"===e._state)return x(void 0);if("errored"===e._state)return C(e._storedError);Lr(e);var n=e._readableStreamController[H](t);return I(n,r)}function Lr(e){e._state="closed";var t=e._reader;void 0!==t&&(ee(t)&&(t._readRequests.forEach((function(e){e._resolve(R(void 0,!0,t._forAuthorCode))})),t._readRequests=new F),G(t))}function Nr(e,t){e._state="errored",e._storedError=t;var r=e._reader;void 0!==r&&(ee(r)?(r._readRequests.forEach((function(e){e._reject(t)})),r._readRequests=new F):(r._readIntoRequests.forEach((function(e){e._reject(t)})),r._readIntoRequests=new F),q(r,t))}function Ur(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}"symbol"===typeof t.asyncIterator&&Object.defineProperty(_r.prototype,t.asyncIterator,{value:_r.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var jr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(e){return e.byteLength},e}(),qr=function(){function e(e){var t=e.highWaterMark;this.highWaterMark=t}return e.prototype.size=function(){return 1},e}(),zr=function(){function e(e,t,r){void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={});var n=t.size,a=t.highWaterMark,i=r.size,o=r.highWaterMark,s=e.writableType;if(void 0!==s)throw new RangeError("Invalid writable type specified");var c=v(n);void 0===a&&(a=1),a=m(a);var l=e.readableType;if(void 0!==l)throw new RangeError("Invalid readable type specified");var u,h=v(i);void 0===o&&(o=0),o=m(o);var d=S((function(e){u=e}));Gr(this,d,a,c,o,h),Zr(this,e);var p=f(e,"start",[this._transformStreamController]);u(p)}return Object.defineProperty(e.prototype,"readable",{get:function(){if(!1===Hr(this))throw ln("readable");return this._readable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"writable",{get:function(){if(!1===Hr(this))throw ln("writable");return this._writable},enumerable:!0,configurable:!0}),e}();function Gr(e,t,r,n,a,i){function o(){return t}function s(t){return nn(e,t)}function c(t){return an(e,t)}function l(){return on(e)}function u(){return sn(e)}function h(t){return Xr(e,t),x(void 0)}e._writable=ge(o,s,l,c,r,n),e._readable=Fr(o,u,h,a,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Vr(e,!0),e._transformStreamController=void 0}function Hr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function Wr(e,t){Mt(e._readable._readableStreamController,t),Xr(e,t)}function Xr(e,t){Qr(e._transformStreamController),tt(e._writable._writableStreamController,t),!0===e._backpressure&&Vr(e,!1)}function Vr(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=S((function(t){e._backpressureChangePromise_resolve=t})),e._backpressure=t}var Yr=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Object.defineProperty(e.prototype,"desiredSize",{get:function(){if(!1===Kr(this))throw cn("desiredSize");var e=this._controlledTransformStream._readable._readableStreamController;return Dt(e)},enumerable:!0,configurable:!0}),e.prototype.enqueue=function(e){if(!1===Kr(this))throw cn("enqueue");$r(this,e)},e.prototype.error=function(e){if(!1===Kr(this))throw cn("error");en(this,e)},e.prototype.terminate=function(){if(!1===Kr(this))throw cn("terminate");rn(this)},e}();function Kr(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Jr(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function Zr(e,t){var r=Object.create(Yr.prototype),n=function(e){try{return $r(r,e),x(void 0)}catch(e){return C(e)}},a=t.transform;if(void 0!==a){if("function"!==typeof a)throw new TypeError("transform is not a method");n=function(e){return d(a,t,[e,r])}}var i=h(t,"flush",0,[r]);Jr(e,r,n,i)}function Qr(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function $r(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!1===Nt(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{Bt(n,t)}catch(e){throw Xr(r,e),r._readable._storedError}var a=Lt(n);a!==r._backpressure&&Vr(r,!0)}function en(e,t){Wr(e._controlledTransformStream,t)}function tn(e,t){var r=e._transformAlgorithm(t);return I(r,void 0,(function(t){throw Wr(e._controlledTransformStream,t),t}))}function rn(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;!0===Nt(r)&&Rt(r);var n=new TypeError("TransformStream terminated");Xr(t,n)}function nn(e,t){var r=e._transformStreamController;if(!0===e._backpressure){var n=e._backpressureChangePromise;return I(n,(function(){var n=e._writable,a=n._state;if("erroring"===a)throw n._storedError;return tn(r,t)}))}return tn(r,t)}function an(e,t){return Wr(e,t),x(void 0)}function on(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return Qr(r),I(n,(function(){if("errored"===t._state)throw t._storedError;var e=t._readableStreamController;!0===Nt(e)&&Rt(e)}),(function(r){throw Wr(e,r),t._storedError}))}function sn(e){return Vr(e,!1),e._backpressureChangePromise}function cn(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function ln(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}e.ByteLengthQueuingStrategy=jr,e.CountQueuingStrategy=qr,e.ReadableStream=_r,e.TransformStream=zr,e.WritableStream=de,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,r){r(147),r(118),r(77),r(120),r=r(43),e.exports=r.Map},function(e,t,r){"use strict";var n=r(148);r=r(152);e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},function(e,t,r){"use strict";var n=r(10),a=r(11),i=r(52),o=r(29),s=r(149),c=r(104),l=r(126),u=r(22),h=r(14),f=r(97),d=r(85),p=r(151);e.exports=function(e,t,r){function g(e){var t=A[e];o(A,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(S&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return S&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(S&&!u(e))&&t.call(this,0===e?0:e)}:function(e,r){return t.call(this,0===e?0:e,r),this})}var m,v,b,y,w,k=-1!==e.indexOf("Map"),S=-1!==e.indexOf("Weak"),x=k?"set":"add",C=a[e],A=C&&C.prototype,T=C,E={};return i(e,"function"!=typeof C||!(S||A.forEach&&!h((function(){(new C).entries().next()}))))?(T=r.getConstructor(t,e,k,x),s.REQUIRED=!0):i(e,!0)&&(v=(m=new T)[x](S?{}:-0,1)!=m,b=h((function(){m.has(1)})),y=f((function(e){new C(e)})),w=!S&&h((function(){for(var e=new C,t=5;t--;)e[x](t,t);return!e.has(-0)})),y||(((T=t((function(t,r){return l(t,T,e),t=p(new C,t,T),null!=r&&c(r,t[x],t,k),t}))).prototype=A).constructor=T),(b||w)&&(g("delete"),g("has"),k&&g("get")),(w||v)&&g(x),S&&A.clear&&delete A.clear),E[e]=T,n({global:!0,forced:T!=C},E),d(T,e),S||r.setStrong(T,e,k),T}},function(e,t,r){function n(e){s(e,u,{value:{objectID:"O"+ ++h,weakData:{}}})}var a=r(39),i=r(22),o=r(23),s=r(27).f,c=r(38),l=r(150),u=c("meta"),h=0,f=Object.isExtensible||function(){return!0},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!f(e))return"F";if(!t)return"E";n(e)}return e[u].objectID},getWeakData:function(e,t){if(!o(e,u)){if(!f(e))return!0;if(!t)return!1;n(e)}return e[u].weakData},onFreeze:function(e){return l&&d.REQUIRED&&f(e)&&!o(e,u)&&n(e),e}};a[u]=!0},function(e,t,r){r=r(14),e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,r){var n=r(22),a=r(87);e.exports=function(e,t,r){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(e,o),e}},function(e,t,r){"use strict";var n=r(27).f,a=r(71),i=r(124),o=r(62),s=r(126),c=r(104),l=r(79),u=r(125),h=r(13),f=r(149).fastKey,d=(r=r(33),r.set),p=r.getterFor;e.exports={getConstructor:function(e,t,r,l){function u(e,t,r){var n,a=m(e),i=v(e,t);return i?i.value=r:(a.last=i={index:n=f(t,!0),key:t,value:r,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=i),r&&(r.next=i),h?a.size++:e.size++,"F"!==n&&(a.index[n]=i)),e}var g=e((function(e,n){s(e,g,t),d(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),h||(e.size=0),null!=n&&c(n,e[l],e,r)})),m=p(t),v=function(e,t){var r,n=m(e);e=f(t);if("F"!==e)return n.index[e];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(g.prototype,{clear:function(){for(var e=m(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,h?e.size=0:this.size=0},delete:function(e){var t,r=m(this),n=v(this,e);return n&&(t=n.next,e=n.previous,delete r.index[n.index],n.removed=!0,e&&(e.next=t),t&&(t.previous=e),r.first==n&&(r.first=t),r.last==n&&(r.last=e),h?r.size--:this.size--),!!n},forEach:function(e){for(var t,r=m(this),n=o(e,1>10),t%1024+56320))}return r.join("")}})},function(e,t,r){r(168),r(118),r(170),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r=r(43),e.exports=r.Symbol},function(e,t,r){"use strict";var n=r(10),a=r(14),i=r(160),o=r(22),s=r(83),c=r(47),l=r(93),u=r(159),h=r(169),f=r(57),d=(r=r(135),f("isConcatSpreadable")),p=9007199254740991,g="Maximum allowed index exceeded";a=51<=r||!a((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),h=h("concat");n({target:"Array",proto:!0,forced:!a||!h},{concat:function(e){for(var t,r,n,a=s(this),h=u(a,0),f=0,m=-1,v=arguments.length;mt&&(s=s.slice(0,t)),e?c+s:s+c)}};e.exports={start:r(!1),end:r(!0)}},function(e,t,r){"use strict";var n=r(48),a=r(20);e.exports="".repeat||function(e){var t=String(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;0>>=1)&&(t+=t))1&i&&(r+=t);return r}},function(e,t,r){r=r(129),e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,r){r(196),r=r(61),e.exports=r("String","padEnd")},function(e,t,r){"use strict";var n=r(10),a=r(192).end;n({target:"String",proto:!0,forced:r(194)},{padEnd:function(e){return a(this,e,1=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=this.end?this.numChunks:Math.floor(t/this.chunkSize),a=r;a=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getBytes",value:function(e){var t=1this.progressiveDataLength&&this.ensureRange(n,a);var i=r.subarray(n,a);return t?new Uint8ClampedArray(i):i}return e=n+e,(e=athis.progressiveDataLength&&this.ensureRange(n,e),this.pos=e,e=r.subarray(n,e),t?new Uint8ClampedArray(e):e}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){return e=this.getBytes(e,1this.end?this.end:t)>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"skip",value:function(e){this.pos+=e=e||1}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t,r){function n(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),(n.prototype=Object.create(this)).getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,n=[],a=t;a>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var n=r(5);function a(e){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})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,n=l(t);return e=r?(e=l(this).constructor,Reflect.construct(n,arguments,e)):n.apply(this,arguments),n=this,!(e=e)||"object"!==a(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):e}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.MissingDataException=function(){o(t,n.BaseException);var e=c(t);function t(r,n){var a;return i(this,t),(a=e.call(this,"Missing data [".concat(r,", ").concat(n,")"))).begin=r,a.end=n,a}return t}(),t.XRefEntryException=function(){o(t,n.BaseException);var e=c(t);function t(){return i(this,t),e.apply(this,arguments)}return t}(),t.XRefParseException=function(){o(t,n.BaseException);var e=c(t);function t(){return i(this,t),e.apply(this,arguments)}return t}();var u=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(5),o=r(207),s=r(202),c=r(205),l=r(209),u=r(222),h=r(219),f=r(208),d=r(223),p=r(225);function g(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){g(i,n,a,o,s,"next",e)}function s(e){g(i,n,a,o,s,"throw",e)}o(void 0)}))}}function v(e){return(v="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})(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}}(e,t)||w(e,t)||function(){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(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function w(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function k(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rc)return(0,i.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;var r=a.fetchIfRef(e);return Array.isArray(r)?(e=a.fetchIfRef(r[0]),"string"!=typeof e?null:(t=n(r.slice(1),t),t&&t.length?{name:(0,i.stringToPDFString)(e),order:t}:null)):null}(p,l))&&h.push(d)}}catch(e){f.e(e)}finally{f.f()}if(0=n[r-1])&&t<=e.numPages}))&&(c=s);break;case"NumCopies":0=n.length);)i+=String.fromCharCode(o),o=n[a];return i}(y,w);if(A.startsWith("xref")&&(4===A.length||/\s/.test(A[4])))w+=n(y,w,h),S.push(w),w+=n(y,w,f);else if(E=a.exec(A)){var T=0|E[1],E=0|E[2];this.entries[T]&&this.entries[T].gen!==E||(this.entries[T]={offset:w-g.start,gen:E,uncompressed:!0});for(var O=void 0,I=w+A.length;I>1,l=t.fetchIfRef(a[c]).get("Limits");if(et.fetchIfRef(l[1]))){r=t.fetchIfRef(a[c]);break}o=1+c}}if(s>1,p=d+(1&d);d=t.fetchIfRef(u[p]);if(e>")&&!(0,i.isEOF)(this.buf1);)if((0,i.isName)(this.buf1)){var o=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;n.set(o,this.getObj(e))}else(0,a.info)("Malformed dictionary: key must be a name object"),this.shift();if((0,i.isEOF)(this.buf1)){if(!this.recoveryMode)throw new a.FormatError("End of file inside dictionary");return n}return(0,i.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(n,e):n:(this.shift(),n);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,i.isCmd)(this.buf2,"R")){var s=i.Ref.get(t,this.buf1);return this.shift(),this.shift(),s}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r=this.lexer,n=e.pos,s=0;-1!==(t=e.getByte());)if(0===s)s=69===t?1:0;else if(1===s)s=73===t?2:0;else if((0,a.assert)(2===s,"findDefaultInlineStreamEnd - invalid state."),32===t||10===t||13===t){for(var c,l=e.pos,u=e.peekBytes(10),h=0,f=u.length;hr&&(r=e.peekBytes(2),69===r[0]&&73===r[1]))break}return t=e.pos-t,-1===n?((0,a.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-t),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),t)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte())&&62!==t;);return r=e.pos-r,-1===t?((0,a.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break}},{key:"makeInlineImage",value:function(e){for(var t=this.lexer,r=t.stream,n=new i.Dict(this.xref);!(0,i.isCmd)(this.buf1,"ID")&&!(0,i.isEOF)(this.buf1);){if(!(0,i.isName)(this.buf1))throw new a.FormatError("Dictionary key must be a name object");var o=this.buf1.name;if(this.shift(),(0,i.isEOF)(this.buf1))break;n.set(o,this.getObj(e))}-1!==t.beginInlineImagePos&&(h=r.pos-t.beginInlineImagePos);var s=n.get("Filter","F");(0,i.isName)(s)?l=s.name:Array.isArray(s)&&(c=this.xref.fetchIfRef(s[0]),(0,i.isName)(c)&&(l=c.name));s=r.pos;var c="DCTDecode"===l||"DCT"===l?this.findDCTDecodeInlineStreamEnd(r):"ASCII85Decode"===l||"A85"===l?this.findASCII85DecodeInlineStreamEnd(r):"ASCIIHexDecode"===l||"AHx"===l?this.findASCIIHexDecodeInlineStreamEnd(r):this.findDefaultInlineStreamEnd(r),l=r.makeSubStream(s,c,n);if(c<1e3&&h<5552){var u=l.getBytes();l.reset(),s=r.pos,r.pos=t.beginInlineImagePos;var h=r.getBytes(h);if(r.pos=s,u=p(u)+"_"+p(h),h=this.imageCache[u],void 0!==h)return this.buf2=i.Cmd.get("EI"),this.shift(),h.reset(),h}return e&&(l=e.createStream(l,c)),(l=this.filter(l,n,c)).dict=n,void 0!==u&&(l.cacheKey="inline_".concat(c,"_").concat(u),this.imageCache[u]=l),this.buf2=i.Cmd.get("EI"),this.shift(),l}},{key:"_findStreamLength",value:function(e,t){var r=this.lexer.stream;r.pos=e;for(var n=t.length;r.pos>")):i.Cmd.get(">");case 123:return this.nextChar(),i.Cmd.get("{");case 125:return this.nextChar(),i.Cmd.get("}");case 41:throw this.nextChar(),new a.FormatError("Illegal character: ".concat(t))}for(var r=String.fromCharCode(t),n=this.knownCommands,o=n&&void 0!==n[r];0<=(t=this.nextChar())&&!m[t];){var s=r+String.fromCharCode(t);if(o&&void 0===n[s])break;if(128===r.length)throw new a.FormatError("Command token too long: ".concat(r.length));r=s,o=n&&void 0!==n[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),i.Cmd.get(r)))}},{key:"peekObj",value:function(){var e,t=this.stream.pos,r=this.currentChar,n=this.beginInlineImagePos;try{e=this.getObj()}catch(e){if(e instanceof o.MissingDataException)throw e;(0,a.warn)("peekObj: ".concat(e))}return this.stream.pos=t,this.currentChar=r,this.beginInlineImagePos=n,e}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;0<=e;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}]),e}();t.Lexer=b,t.Linearization=function(){function e(){h(this,e)}return d(e,null,[{key:"create",value:function(e){function t(e,t,r){if(r=2e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t=1this.end&&(t=this.end),this.bytes.subarray(e=e<0?0:e,t)},skip:function(e){this.pos+=e=e||1},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(e,t,r){return new l(this.bytes.buffer,e,t,r)}},l);function l(e,t,r,n){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+r||this.bytes.length,this.dict=n}function u(e){e=(0,n.stringToBytes)(e),c.call(this,e)}t.Stream=c,u.prototype=c.prototype,r=u,t.StringStream=r;var h,f=(h=new Uint8Array(0),d.prototype={get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},ensureBuffer:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var r=this.minBufferLength;r>e,this.codeSize=a-=e,t},w.prototype.getCode=function(e){for(var t,r=this.str,a=e[0],i=e[1],o=this.codeSize,s=this.codeBuf;o>16,e&=65535,a<1||o>a,this.codeSize=o-a,e},w.prototype.generateHuffmanTable=function(e){var t=e.length,r=0;for(h=0;hr&&(r=e[h]);for(var n=1<>=1;for(h=l;h>=1)){if(-1===(s=r.getByte()))throw new n.FormatError("Bad block header in flate stream");var i=s;if(-1===(s=r.getByte()))throw new n.FormatError("Bad block header in flate stream");if(i|=s<<8,-1===(s=r.getByte()))throw new n.FormatError("Bad block header in flate stream");var o=s;if(-1===(s=r.getByte()))throw new n.FormatError("Bad block header in flate stream");if((o|=s<<8)!=(65535&~i)&&(0!=i||0!=o))throw new n.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var s=this.bufferLength,c=(o=s+i,this.ensureBuffer(o));return this.bufferLength=o,void(0==i?-1===r.peekByte()&&(this.eof=!0):(r=r.getBytes(i),c.set(r,s),r.length>16;d=(65535&O)+(I=0>16)?this.getBits(I):I);T<=E+d&&(T=(c=this.ensureBuffer(E+d)).length);for(var _=0;_>3,this.rowBytes=r*i*e+7>>3,f.call(this,t),this}function S(e,t,r){this.str=e,this.dict=e.dict,this.decrypt=r,this.nextChunk=null,this.initialized=!1,f.call(this,t)}function x(e,t){this.str=e,this.dict=e.dict,this.input=new Uint8Array(5),t&&(t*=.8),f.call(this,t)}function C(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),f.call(this,t)}function A(e,t){this.str=e,this.dict=e.dict,f.call(this,t)}function T(e,t,r){this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;for(var n={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},a=0;a<256;++a)n.dictionaryValues[a]=a,n.dictionaryLengths[a]=1;this.lzwState=n,f.call(this,t)}function E(){c.call(this,new Uint8Array(0))}t.FlateStream=r,(k.prototype=Object.create(f.prototype)).readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),n=this.bits,a=this.colors,i=this.str.getBytes(e);if(this.eof=!i.length,!this.eof){var o=0,s=0,c=0,l=0,u=t;if(1===n&&1===a)for(d=0;d>1,h^=h>>2,o=(1&(h^=h>>4))<<7,r[u++]=h}else if(8===n){for(d=0;d>8&255,r[u++]=255&p}}else{var g=new Uint8Array(a+1),m=(1<>c-n)&m,c-=n,s=s<>l-8&255,l-=8);0>1)+a[c];for(;c>1)+a[c]&255,u++;break;case 4:for(c=0;c>=8}}else this.eof=!0},r=x,t.Ascii85Stream=r,(C.prototype=Object.create(f.prototype)).readBlock=function(){var e=this.str.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,r=this.ensureBuffer(this.bufferLength+t),n=this.bufferLength,a=this.firstDigit,i=0,o=e.length;i>>t&(1<>1==1)break;this._eatBits(1)}this._eatBits(12),0r?(s<<=r,1&this.codingPos||(s|=255>>8-r),this.outputBits-=r,r=0):(s<<=this.outputBits,1&this.codingPos||(s|=255>>8-this.outputBits),r-=this.outputBits,this.outputBits=0,u[this.codingPos]r[n]&&(e>this.columns&&((0,l.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e),this.codingPos=n},_addPixelsNeg:function(e,t){var r=this.codingLine,n=this.codingPos;if(e>r[n])e>this.columns&&((0,l.info)("row is wrong length"),this.err=!0,e=this.columns),1&n^t&&++n,r[n]=e;else if(e>5==0?a[e]:i[e>>3])[0])return this._eatBits(t[0]),t[1]}else{var t=this._findTableCode(1,9,i);if(t[0])return t[1];if((t=this._findTableCode(11,12,a))[0])return t[1]}return(0,l.info)("bad white code"),this._eatBits(1),1},_getBlackCode:function(){if(this.eoblock){if(-1===(e=this._lookBits(13)))return 1;if(0<(e=e>>7==0?o[e]:e>>9==0&&e>>7!=0?s[(e>>1)-64]:c[e>>7])[0])return this._eatBits(e[0]),e[1]}else{var e=this._findTableCode(2,6,c);if(e[0])return e[1];if((e=this._findTableCode(7,12,s,64))[0])return e[1];if((e=this._findTableCode(10,13,o))[0])return e[1]}return(0,l.info)("bad black code"),this._eatBits(1),1},_lookBits:function(e){for(var t;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e},_eatBits:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},r=u;function u(e){var t=1>>0}return e=i(1),t=i(1)?i(1)?i(1)?i(1)?i(1)?i(32)+4436:i(12)+340:i(8)+84:i(6)+20:i(4)+4:i(2),0===e?t:0>1)+r(O,"IARDX",E),(F>>1)+r(O,"IARDY",E),!1,y,w));var N,U,j=R-(1&p?0:L-1),q=_-(2&p?D-1:0);if(f){for(N=0;N>5&7,s=[31&n],l=t+6;if(7===n){o=536870911&(0,a.readUint32)(e,l-1),l+=3;var u=o+7>>3;for(s[0]=e[l++];0<--u;)s.push(e[l++])}else if(5===n||6===n)throw new h("invalid referred-to flags");r.retainBits=s;var f=4;r.number<=256?f=1:r.number<=65536&&(f=2);for(var d,p=[],g=0;g>>24&255,b[3]=i.height>>16&255,b[4]=i.height>>8&255,b[5]=255&i.height,g=l,d=e.length;g>2&3,f.huffmanDWSelector=d>>4&3,f.bitmapSizeSelector=d>>6&1,f.aggregationInstancesSelector=d>>7&1,f.bitmapCodingContextUsed=!!(256&d),f.bitmapCodingContextRetained=!!(512&d),f.template=d>>10&3,f.refinementTemplate=d>>12&1,l+=2,!f.huffman){for(o=0===f.template?4:1,n=[],i=0;i>2&3,d.stripSize=1<>4&3,d.transposed=!!(64&f),d.combinationOperator=f>>7&3,d.defaultPixelValue=f>>9&1,d.dsOffset=f<<17>>27,d.refinementTemplate=f>>15&1,d.huffman&&(f=(0,a.readUint16)(c,l),l+=2,d.huffmanFS=3&f,d.huffmanDS=f>>2&3,d.huffmanDT=f>>4&3,d.huffmanRefinementDW=f>>6&3,d.huffmanRefinementDH=f>>8&3,d.huffmanRefinementDX=f>>10&3,d.huffmanRefinementDY=f>>12&3,d.huffmanRefinementSizeSelector=!!(16384&f)),d.refinement&&!d.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:(0,a.readInt8)(c,l),y:(0,a.readInt8)(c,l+1)}),l+=2;d.refinementAt=n}d.numberOfSymbolInstances=(0,a.readUint32)(c,l),r=[d,s.referredTo,c,l+=4,u];break;case 16:var p={},g=c[l++];p.mmr=!!(1&g),p.template=g>>1&3,p.patternWidth=c[l++],p.patternHeight=c[l++],p.maxPatternIndex=(0,a.readUint32)(c,l),r=[p,s.number,c,l+=4,u];break;case 22:case 23:g={},g.info=y(c,l),l+=w,p=c[l++],g.mmr=!!(1&p),g.template=p>>1&3,g.enableSkip=!!(8&p),g.combinationOperator=p>>4&7,g.defaultPixelValue=p>>7&1,g.gridWidth=(0,a.readUint32)(c,l),g.gridHeight=(0,a.readUint32)(c,l+=4),g.gridOffsetX=4294967295&(0,a.readUint32)(c,l+=4),g.gridOffsetY=4294967295&(0,a.readUint32)(c,l+=4),g.gridVectorX=(0,a.readUint16)(c,l+=4),g.gridVectorY=(0,a.readUint16)(c,l+=2),r=[g,s.referredTo,c,l+=2,u];break;case 38:case 39:var m={};m.info=y(c,l),l+=w;var v=c[l++];if(m.mmr=!!(1&v),m.template=v>>1&3,m.prediction=!!(8&v),!m.mmr){for(o=0===m.template?4:1,n=[],i=0;i>2&1,v.combinationOperator=m>>3&3,v.requiresBuffer=!!(32&m),v.combinationOperatorOverride=!!(64&m),r=[v];break;case 49:case 50:case 51:break;case 53:r=[s.number,c,l,u];break;case 62:break;default:throw new h("segment type ".concat(s.typeName,"(").concat(s.type,")")+" is not implemented")}(e="on"+s.typeName)in t&&t[e].apply(t,r)}(e[r],t)}function S(){}function x(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}function C(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}function A(e,t){t||this.assignPrefixCodes(e),this.rootNode=new C(null);for(var r=0,n=e.length;r>3,r=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var n=0,a=r.length;n>3,u=(o.combinationOperatorOverride?e:o).combinationOperator,f=this.buffer,d=128>>(7&e.x),p=e.y*l+(e.x>>3);switch(u){case 0:for(r=0;r>=1)||(a=128,i++);p+=l}break;case 2:for(r=0;r>=1)||(a=128,i++);p+=l}break;default:throw new h("operator ".concat(u," is not supported"))}},onImmediateGenericRegion:function(e,r,n,a){var i=e.info;a=new t(r,n,a),a=p(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,a);this.drawBitmap(i,a)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,n,a,i,o){var s,c;e.huffman&&(s=function(e,t,r){var n,a,i,o,s=0;switch(e.huffmanDHSelector){case 0:case 1:n=E(e.huffmanDHSelector+4);break;case 3:n=I(s,t,r),s++;break;default:throw new h("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:a=E(e.huffmanDWSelector+2);break;case 3:a=I(s,t,r),s++;break;default:throw new h("invalid Huffman DW selector")}return e.bitmapSizeSelector?(i=I(s,t,r),s++):i=E(1),o=e.aggregationInstancesSelector?I(s,t,r):E(1),{tableDeltaHeight:n,tableDeltaWidth:a,tableBitmapSize:i,tableAggregateInstances:o}}(e,n,this.customTables),c=new O(a,i,o));var l=this.symbols;l||(this.symbols=l={});for(var u=[],f=0,d=n.length;f>8,0<=(M=f+I*m+_*g>>8)&&M+S<=n&&0<=D&&D+x<=i)for(z=0;z>1&7),h=1+(o>>4&7),f=[],d=s;n=l.readBits(u),i=l.readBits(h),f.push(new x([d,n,i,0])),d+=1<>t&1;t<=0?this.children[n]=new C(e):((r=this.children[n])||(this.children[n]=r=new C(null)),r.buildTree(e,t-1))},decodeNode:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}if(t=this.children[e.readBit()],!t)throw new h("invalid Huffman data");return t.decodeNode(e)}},A.prototype={decode:function(e){return this.rootNode.decodeNode(e)},assignPrefixCodes:function(e){for(var t=e.length,r=0,n=0;n>h&1,h--}if(n&&!c)for(var d=0;d<5&&-1!==i.readNextChar();d++);return s}function _(){}return O.prototype={readBit:function(){if(this.shift<0){if(this.position>=this.end)throw new h("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e},readBits:function(e){for(var t=0,r=e-1;0<=r;r--)t|=this.readBit()<=this.end?-1:this.data[this.position++]}},_.prototype={parseChunks:function(e){for(var t=new S,r=0,n=e.length;r>=1;return{imgData:l,width:o,height:s}}(e),r=t.imgData;e=t.width,t=t.height;return this.width=e,this.height=t,r}},_}();t.Jbig2Image=r},function(e,t,r){"use strict";function n(e,t){for(var r=0;r>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}var t,r,i;return t=e,(r=[{key:"byteIn",value:function(){var e=this.data,t=this.bp;255===e[t]?143>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,n=e[t]>>1,i=1&e[t],o=a[n],s=o.qe,c=this.a-s;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--,0==(32768&c););return this.a=c,e[t]=n<<1|i,r}}])&&n(t.prototype,r),i&&n(t,i),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var n=r(209),a=r(202),i=r(216),o=r(5);s.prototype=Object.create(n.DecodeStream.prototype),Object.defineProperty(s.prototype,"bytes",{get:function(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),s.prototype.ensureBuffer=function(e){},s.prototype.readBlock=function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,n=t.length,o=new Int32Array(n),s=!1,c=(1<>4==0)for(q=0;q<64;q++)C[h[q]]=e[l++];else{if(x>>4!=1)throw new w("DQT - invalid table spec");for(q=0;q<64;q++)C[h[q]]=(0,a.readUint16)(e,l),l+=2}p[15&x]=C}break;case 65472:case 65473:case 65474:if(t)throw new w("Only single frame JPEGs supported");l+=2,(t={}).extended=65473===v,t.progressive=65474===v,t.precision=e[l++];var O=(0,a.readUint16)(e,l);l+=2,t.scanLines=c||O,t.samplesPerLine=(0,a.readUint16)(e,l),l+=2,t.components=[],t.componentIds={};for(var I=e[l++],P=0,_=0,F=0;F>4,M=15&e[l+1];P>4==0?m:g)[15&N]=function(e,t){for(var r,n=0,a=[],i=16;0>4],X.huffmanTableAC=g[15&V],W.push(X)}var K=e[l++];b=e[l++],O=e[l++];try{var J=A(e,l,t,W,r,K,b,O>>4,15&O,G);l+=J}catch(s){if(s instanceof k)return(0,n.warn)("".concat(s.message," -- attempting to re-parse the JPEG image.")),this.parse(e,{dnlScanLines:s.scanLines});if(s instanceof S){(0,n.warn)("".concat(s.message," -- ignoring the rest of the image data."));break e}throw s}break;case 65500:l+=4;break;case 65535:255!==e[l]&&l--;break;default:if(G=E(e,l-2,l-3),G&&G.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+G.invalid),l=G.offset;break}if(l>=e.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new w("JpegImage.parse - unknown marker: "+v.toString(16))}v=(0,a.readUint16)(e,l),l+=2}for(this.width=t.samplesPerLine,this.height=t.scanLines,this.jfif=u,this.adobe=f,this.components=[],F=0;F>8)+S[l+1];return y},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform},_convertYccToRgb:function(e){for(var t,r,n,a=0,i=e.length;a>--b&1;if(255===(v=e[t++])){var n=e[t++];if(n){if(220===n&&p){t+=2;var i=(0,a.readUint16)(e,t);if(t+=2,0>>(b=7)}function x(e){for(var t=e;;){switch(i(t=t[y()])){case"number":return t;case"object":continue}throw new w("invalid huffman sequence")}}function A(e){for(var t=0;0>4;if(0!=i)a=h[r+=o],e.blockData[t+a]=T(i)*(1<>4,0==(r&=15))X=i<15?(W=A(i)+(1<>4;if(0!=i)a=h[n+=o],e.blockData[t+a]=T(i),n++;else{if(o<15)break;n+=16}}},J=0,Z=1===Y?o[0].blocksPerLine*o[0].blocksPerColumn:g*r.mcusPerColumn;J<=Z;){var Q=s?Math.min(Z-J,s):Z;if(0>8)+(a=b*C+128>>8)+1>>1)-a,O=(i=S)*v+(o=T)*m+128>>8,i=i*m-o*v+128>>8,l=(s=(s=y*(k-E)+128>>8)+(l=A<<4)+1>>1)-l,c=(u=(u=y*(k+E)+128>>8)+(c=x<<4)+1>>1)-c,o=(n=n+(o=O)+1>>1)-o,i=(a=a+i+1>>1)-i,O=s*g+u*p+2048>>12,s=s*p-u*g+2048>>12,u=O,O=c*d+l*f+2048>>12,c=c*f-l*d+2048>>12,l=O,r[_]=n+u,r[_+7]=n-u,r[_+1]=a+l,r[_+6]=a-l,r[_+2]=i+c,r[_+5]=i-c,r[_+3]=o+s,r[_+4]=o-s):(r[_]=O=b*h+512>>10,r[_+1]=O,r[_+2]=O,r[_+3]=O,r[_+4]=O,r[_+5]=O,r[_+6]=O,r[_+7]=O);for(var F=0;F<8;++F)h=r[F],0!=((k=r[F+8])|(S=r[F+16])|(x=r[F+24])|(C=r[F+32])|(A=r[F+40])|(T=r[F+48])|(E=r[F+56]))?(a=(n=4112+((n=b*h+2048>>12)+(a=b*C+2048>>12)+1>>1))-a,O=(i=S)*v+(o=T)*m+2048>>12,i=i*m-o*v+2048>>12,o=O,l=(s=(s=y*(k-E)+2048>>12)+(l=A)+1>>1)-l,c=(u=(u=y*(k+E)+2048>>12)+(c=x)+1>>1)-c,O=s*g+u*p+2048>>12,s=s*p-u*g+2048>>12,u=O,O=c*d+l*f+2048>>12,c=c*f-l*d+2048>>12,(h=(n=n+o+1>>1)+u)<16?h=0:4080<=h?h=255:h>>=4,(k=(a=a+i+1>>1)+(l=O))<16?k=0:4080<=k?k=255:k>>=4,(S=(i=a-i)+c)<16?S=0:4080<=S?S=255:S>>=4,(x=(o=n-o)+s)<16?x=0:4080<=x?x=255:x>>=4,(C=o-s)<16?C=0:4080<=C?C=255:C>>=4,(A=i-c)<16?A=0:4080<=A?A=255:A>>=4,(T=a-l)<16?T=0:4080<=T?T=255:T>>=4,(E=n-u)<16?E=0:4080<=E?E=255:E>>=4,P[t+F]=h,P[t+F+8]=k,P[t+F+16]=S,P[t+F+24]=x,P[t+F+32]=C,P[t+F+40]=A,P[t+F+48]=T,P[t+F+56]=E):(P[t+F]=O=(O=b*h+8192>>14)<-2040?0:2024<=O?255:O+2056>>4,P[t+F+8]=O,P[t+F+16]=O,P[t+F+24]=O,P[t+F+32]=O,P[t+F+40]=O,P[t+F+48]=O,P[t+F+56]=O)}(t,C(t,i,o),a);return t.blockData}function E(e,t,r){r=2=n)return null;o=(0,a.readUint16)(e,i)}return{invalid:r.toString(16),marker:o,offset:i}}t.JpegImage=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var n=r(209),a=r(218),i=r(5);o.prototype=Object.create(n.DecodeStream.prototype),Object.defineProperty(o.prototype,"bytes",{get:function(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),o.prototype.ensureBuffer=function(e){},o.prototype.readBlock=function(){if(!this.eof){var e=new a.JpxImage;e.parse(this.bytes);var t=e.width,r=e.height,n=e.componentsCount,i=e.tiles.length;if(1===i)this.buffer=e.tiles[0].items;else{for(var o=new Uint8ClampedArray(t*r*n),s=0;s>i,u=(r=t.tby0>>o,t.tbx1+s-1>>i),h=t.tby1+c-1>>o,f=t.resolution.precinctParameters,d=[],p=[],g=r;gm.cbxMax&&(m.cbxMax=n),gm.cbyMax&&(m.cbyMax=g)):p[v]=m={cbxMin:n,cbyMin:g,cbxMax:n,cbyMax:g},a.precinct=m)}t.codeblockParameters={codeblockWidth:i,codeblockHeight:o,numcodeblockwide:u-l+1,numcodeblockhigh:h-r+1},t.codeblocks=d,t.precincts=p}function o(e,t,r){for(var n=[],a=e.subbands,i=0,o=a.length;ie.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[h],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[l],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){var n=e.resolutions[d];if(!(n.precinctParameters.numprecincts<=r)){for(;t>24&255,s>>16&255,s>>8&255,255&s),(0,n.warn)("Unsupported header type "+s+" ("+h+")")}l&&(t+=c)}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){for(var t=e.getByte();0<=t;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,n=e.getInt32()>>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0;e.skip(16);var o=e.getUint16();return this.width=r-a,this.height=n-i,this.componentsCount=o,void(this.bitsPerComponent=8)}throw new u("No size marker found in JPX stream")},parseCodestream:function(t,o,d){var p,m,b={},y=!1;try{for(var w=o;w+1>5,C=[];B>3,N.mu=0):(N.epsilon=t[B]>>3,N.mu=(7&t[B])<<8|t[B+1],B+=2),C.push(N)}L.SPqcds=C,b.mainHeader?b.QCD=L:(b.currentTile.QCD=L,b.currentTile.QCC=[]);break;case 65373:P=(0,a.readUint16)(t,w);var U,j={};switch(B=w+2,b.SIZ.Csiz<257?U=t[B++]:(U=(0,a.readUint16)(t,B),B+=2),31&(x=t[B++])){case 0:A=8,E=!0;break;case 1:E=!(A=16);break;case 2:A=16,E=!0;break;default:throw new Error("Invalid SQcd value "+x)}for(j.noQuantization=8===A,j.scalarExpounded=E,j.guardBits=x>>5,C=[];B>3,N.mu=0):(N.epsilon=t[B]>>3,N.mu=(7&t[B])<<8|t[B+1],B+=2),C.push(N);j.SPqcds=C,b.mainHeader?b.QCC[U]=j:b.currentTile.QCC[U]=j;break;case 65362:P=(0,a.readUint16)(t,w);var q={};B=w+2;var z=t[B++];q.entropyCoderWithCustomPrecincts=!!(1&z),q.sopMarkerUsed=!!(2&z),q.ephMarkerUsed=!!(4&z),q.progressionOrder=t[B++],q.layersCount=(0,a.readUint16)(t,B),B+=2,q.multipleComponentTransform=t[B++],q.decompositionLevelsCount=t[B++],q.xcb=2+(15&t[B++]),q.ycb=2+(15&t[B++]);var G=t[B++];if(q.selectiveArithmeticCodingBypass=!!(1&G),q.resetContextProbabilities=!!(2&G),q.terminationOnEachCodingPass=!!(4&G),q.verticallyStripe=!!(8&G),q.predictableTermination=!!(16&G),q.segmentationSymbolUsed=!!(32&G),q.reversibleTransformation=t[B++],q.entropyCoderWithCustomPrecincts){for(var H=[];B>4})}q.precinctsSizes=H}var X=[];if(q.selectiveArithmeticCodingBypass&&X.push("selectiveArithmeticCodingBypass"),q.resetContextProbabilities&&X.push("resetContextProbabilities"),q.terminationOnEachCodingPass&&X.push("terminationOnEachCodingPass"),q.verticallyStripe&&X.push("verticallyStripe"),q.predictableTermination&&X.push("predictableTermination"),0e.trx0?Math.ceil(e.trx1/r)-Math.floor(e.trx0/r):0;t=e.try1>e.try0?Math.ceil(e.try1/n)-Math.floor(e.try0/n):0,a=s*t;e.precinctParameters={precinctWidth:r,precinctHeight:n,numprecinctswide:s,numprecinctshigh:t,numprecincts:a,precinctWidthInSubband:i,precinctHeightInSubband:o}}(k,w),m.push(k),0===b?((t={type:"LL"}).tbx0=Math.ceil(p.tcx0/S),t.tby0=Math.ceil(p.tcy0/S),t.tbx1=Math.ceil(p.tcx1/S),t.tby1=Math.ceil(p.tcy1/S),t.resolution=k,r(0,t,w),v.push(t),k.subbands=[t]):(y=1<>>(s-=e)&(1<>2);w[x++]=F+b>>n,w[x++]=F>>n,w[x++]=F+v>>n}else for(p=0;p>n,w[x++]=m-.34413*v-.71414*b>>n,w[x++]=m+1.772*v>>n;if(C)for(p=0,x=3;p>n}else for(r=0;r>n,x+=c}l.push(k)}return l}(b),this.width=b.SIZ.Xsiz-b.SIZ.XOsiz,this.height=b.SIZ.Ysiz-b.SIZ.YOsiz,this.componentsCount=b.SIZ.Csiz}};var g=(m.prototype={reset:function(e,t){for(var r=0,n=0;r>=1,t>>=1,r++}(a=this.levels[--r]).items[a.index]=n,this.currentLevel=r,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return--e<0?(this.value=r,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,!0)}},m);function m(e,t){var r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var n=0;n>=1,t>>=1,n++}return this.currentLevel=n-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];0<=--e;)(t=this.levels[e]).items[t.index]=r},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,!(--e<0)&&(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,!0)}},b);function b(e,t,r){var n=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;i>=1;for(var n,a,i=-1.586134342059924,o=-.052980118572961,s=.882911075530934,c=.443506852043971,l=1.230174104914001,u=(t|=0)-3,h=4+r;h--;u+=2)e[u]*=.8128930661159609;for(n=c*e[(u=t-2)-1],h=3+r;h--&&(a=c*e[u+1],e[u]=l*e[u]-n-a,h--);u+=2)n=c*e[(u+=2)+1],e[u]=l*e[u]-n-a;for(n=s*e[(u=t-1)-1],h=2+r;h--&&(a=s*e[u+1],e[u]-=n+a,h--);u+=2)n=s*e[(u+=2)+1],e[u]-=n+a;for(n=o*e[(u=t)-1],h=1+r;h--&&(a=o*e[u+1],e[u]-=n+a,h--);u+=2)n=o*e[(u+=2)+1],e[u]-=n+a;if(0!=r)for(n=i*e[(u=t+1)-1],h=r;h--&&(a=i*e[u+1],e[u]-=n+a,h--);u+=2)n=i*e[(u+=2)+1],e[u]-=n+a},E);function E(){C.call(this)}var O=((I.prototype=Object.create(C.prototype)).filter=function(e,t,r){r>>=1;for(var n=t|=0,a=1+r;a--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,a=r;a--;n+=2)e[n]+=e[n-1]+e[n+1]>>1},I);function I(){C.call(this)}return t}();t.JpxImage=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var n=r(5),a=r(202),i=r(209);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,n=u(t);return e=r?(e=u(this).constructor,Reflect.construct(n,arguments,e)):n.apply(this,arguments),n=this,!(e=e)||"object"!==o(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):e}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r>5&255,l[u++]=r>>13&255,l[u++]=r>>21&255,l[u++]=r>>>29&255,l[u++]=0,l[u++]=0,l[u++]=0;var h=new Int32Array(16);for(u=0;u>>32-w)|0,d=k}a=a+d|0,i=i+p|0,o=o+g|0,s=s+b|0}return new Uint8Array([255&a,a>>8&255,a>>16&255,a>>>24&255,255&i,i>>8&255,i>>16&255,i>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&s,s>>8&255,s>>16&255,s>>>24&255])});t.calculateMD5=b;var y=(w.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){32<=e?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){32<=e?(this.high=this.low<>>32-e,this.low=this.low<>>(e&=31)|r<<32-e,this.high=r>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0);e=(this.high>>>0)+(e.high>>>0);4294967295>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},w);function w(e,t){this.high=0|e,this.low=0|t}var k,S=(k=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],function(e,t,r){for(var n,a=1779033703,i=3144134277,o=1013904242,s=2773480762,c=1359893119,l=2600822924,u=528734635,h=1541459225,f=64*Math.ceil((r+9)/64),d=new Uint8Array(f),p=0;p>>29&255,d[p++]=r>>21&255,d[p++]=r>>13&255,d[p++]=r>>5&255,d[p++]=r<<3&255;var g,m,v=new Uint32Array(64);for(p=0;p>>10)+v[P-7]+(x(m=v[P-15],7)^x(m,18)^m>>>3)+v[P-16];for(var b,y,w=a,S=i,C=o,A=s,T=c,E=l,O=u,I=h,P=0;P<64;++P)b=I+(x(g=T,6)^x(g,11)^x(g,25))+((y=T)&E^~y&O)+k[P]+v[P],y=(x(g=w,2)^x(g,13)^x(g,22))+((y=w)&(g=S)^y&(y=C)^g&y),I=O,O=E,E=T,T=A+b|0,A=C,C=S,S=w,w=b+y|0;a=a+w|0,i=i+S|0,o=o+C|0,s=s+A|0,c=c+T|0,l=l+E|0,u=u+O|0,h=h+I|0}return new Uint8Array([a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,u>>24&255,u>>16&255,u>>8&255,255&u,h>>24&255,h>>16&255,h>>8&255,255&h])});function x(e,t){return e>>>t|e<<32-t}t.calculateSHA256=S;var C,A=(C=[new y(1116352408,3609767458),new y(1899447441,602891725),new y(3049323471,3964484399),new y(3921009573,2173295548),new y(961987163,4081628472),new y(1508970993,3053834265),new y(2453635748,2937671579),new y(2870763221,3664609560),new y(3624381080,2734883394),new y(310598401,1164996542),new y(607225278,1323610764),new y(1426881987,3590304994),new y(1925078388,4068182383),new y(2162078206,991336113),new y(2614888103,633803317),new y(3248222580,3479774868),new y(3835390401,2666613458),new y(4022224774,944711139),new y(264347078,2341262773),new y(604807628,2007800933),new y(770255983,1495990901),new y(1249150122,1856431235),new y(1555081692,3175218132),new y(1996064986,2198950837),new y(2554220882,3999719339),new y(2821834349,766784016),new y(2952996808,2566594879),new y(3210313671,3203337956),new y(3336571891,1034457026),new y(3584528711,2466948901),new y(113926993,3758326383),new y(338241895,168717936),new y(666307205,1188179964),new y(773529912,1546045734),new y(1294757372,1522805485),new y(1396182291,2643833823),new y(1695183700,2343527390),new y(1986661051,1014477480),new y(2177026350,1206759142),new y(2456956037,344077627),new y(2730485921,1290863460),new y(2820302411,3158454273),new y(3259730800,3505952657),new y(3345764771,106217008),new y(3516065817,3606008344),new y(3600352804,1432725776),new y(4094571909,1467031594),new y(275423344,851169720),new y(430227734,3100823752),new y(506948616,1363258195),new y(659060556,3750685593),new y(883997877,3785050280),new y(958139571,3318307427),new y(1322822218,3812723403),new y(1537002063,2003034995),new y(1747873779,3602036899),new y(1955562222,1575990012),new y(2024104815,1125592928),new y(2227730452,2716904306),new y(2361852424,442776044),new y(2428436474,593698344),new y(2756734187,3733110249),new y(3204031479,2999351573),new y(3329325298,3815920427),new y(3391569614,3928383900),new y(3515267271,566280711),new y(3940187606,3454069534),new y(4118630271,4000239992),new y(116418474,1914138554),new y(174292421,2731055270),new y(289380356,3203993006),new y(460393269,320620315),new y(685471733,587496836),new y(852142971,1086792851),new y(1017036298,365543100),new y(1126000580,2618297676),new y(1288033470,3409855158),new y(1501505948,4234509866),new y(1607167915,987167468),new y(1816402316,1246189591)],function(e,t,r,n){for(var a,i,o,s,c,l,u,h,f,d=(n=!!n)?(a=new y(3418070365,3238371032),i=new y(1654270250,914150663),o=new y(2438529370,812702999),s=new y(355462360,4144912697),c=new y(1731405415,4290775857),l=new y(2394180231,1750603025),u=new y(3675008525,1694076839),new y(1203062813,3204075428)):(a=new y(1779033703,4089235720),i=new y(3144134277,2227873595),o=new y(1013904242,4271175723),s=new y(2773480762,1595750129),c=new y(1359893119,2917565137),l=new y(2600822924,725511199),u=new y(528734635,4215389547),new y(1541459225,327033209)),p=128*Math.ceil((r+17)/128),g=new Uint8Array(p),m=0;m>>29&255,g[m++]=r>>21&255,g[m++]=r>>13&255,g[m++]=r>>5&255,g[m++]=r<<3&255;var v=new Array(80);for(m=0;m<80;m++)v[m]=new y(0,0);var b,w,k,S,x,A,T,E,O,I,P=new y(0,0),_=new y(0,0),F=new y(0,0),R=new y(0,0),B=new y(0,0),M=new y(0,0),D=new y(0,0),L=new y(0,0),N=new y(0,0),U=new y(0,0),j=new y(0,0),q=new y(0,0);for(m=0;m>>8^p<<24^g>>>16^g<<16^m>>>24^m<<8)>>>24&255,a[h+1]=f>>16&255,a[h+2]=f>>8&255,a[h+3]=255&f}}f=a[13],a[13]=a[9],a[9]=a[5],a[5]=a[1],a[1]=f,f=a[14],r=a[10],a[14]=a[6],a[10]=a[2],a[6]=f,a[2]=r,f=a[15],r=a[11],n=a[7],a[15]=a[3],a[11]=f,a[7]=r,a[3]=n;for(var v=0;v<16;++v)a[v]=this._inv_s[a[v]],a[v]^=t[v];return a}},{key:"_encrypt",value:function(e,t){var r,n,a=this._s,i=new Uint8Array(16);i.set(e);for(var o=0;o<16;++o)i[o]^=t[o];for(var s=1;si-32;){for(var o=e.length+n.length+r.length,s=new Uint8Array(64*o),c=D(e,n),l=(c=D(c,r),0),u=0;l<64;l++,u+=o)s.set(c,u);a=new P(n.subarray(0,16)).encrypt(s,n.subarray(16,32));for(var h=0,f=0;f<16;f++)h*=1,h%=3,h+=(a[f]>>>0)%3,h%=3;0===h?n=S(a,0,a.length):1===h?n=T(a,0,a.length):2===h&&(n=A(a,0,a.length)),i++}return n.subarray(0,32)}function N(){}function U(e,t){if(e.length!==t.length)return!1;for(var r=0;r>8&255,l[u++]=a>>16&255,l[u++]=a>>>24&255,w=0,v=e.length;w>3;if(3<=i)for(w=0;w<50;++w)h=b(h,0,f);var d=h.subarray(0,f);if(3<=i){for(u=0;u<32;++u)l[u]=z[u];for(w=0,v=e.length;w>3;if(3<=r)for(f=0;f<50;++f)s=b(s,0,s.length);if(3<=r)for(var l,u=t,h=new Uint8Array(c),f=19;0<=f;f--){for(l=0;l>8&255,a[i++]=e>>16&255,a[i++]=255&t,a[i++]=t>>8&255,n&&(a[i++]=115,a[i++]=65,a[i++]=108,a[i++]=84),b(a,0,i).subarray(0,Math.min(r.length+5,16))}function V(e,t,r,i,o){if(!(0,a.isName)(t))throw new n.FormatError("Invalid crypt filter name.");var s;t=e.get(t.name);if(!(s=null!=t?t.get("CFM"):s)||"None"===s.name)return function(){return new E};if("V2"===s.name)return function(){return new p(X(r,i,o,!1))};if("AESV2"===s.name)return function(){return new P(X(r,i,o,!0))};if("AESV3"===s.name)return function(){return new _(o)};throw new n.FormatError("Unknown crypto method")}t.CipherTransformFactory=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(5),o=r(202),s=r(205);function c(e){return(c="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})(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,n=f(t);return e=r?(e=f(this).constructor,Reflect.construct(n,arguments,e)):n.apply(this,arguments),n=this,!(e=e)||"object"!==c(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):e}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;ro.amax||o.bmin>o.bmax)&&((0,i.info)("Invalid Range, falling back to defaults"),o.amin=-100,o.amax=100,o.bmin=-100,o.bmax=100),o}return m(t,[{key:"getRgbItem",value:function(e,t,r,n){H(this,e,t,!1,r,n)}},{key:"getRgbBuffer",value:function(e,t,r,n,a,i,o){for(var s=(1<e.amax?s=e.amax:se.bmax?r=e.bmax:r=e.MAX_IMAGES_TO_CACHE)}},{key:"addPageIndex",value:function(e,t){var r=this._refCache.get(e);r||(r=new Set,this._refCache.put(e,r)),r.add(t)}},{key:"getData",value:function(t,r){var n=this._refCache.get(t);return!n||n.size=e.MAX_IMAGES_TO_CACHE?(0,n.info)("GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE."):this._imageCache.put(t,r))}},{key:"clear",value:function(){0=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function k(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){k(i,n,a,o,s,"next",e)}function s(e){k(i,n,a,o,s,"throw",e)}o(void 0)}))}}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){a=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw i}}return r}}(e,t)||C(e,t)||function(){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 C(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rt[2]||lt[3])return null;n[a].push({x:c,y:l})}}return n}function P(e,t,r){var n=x(i.Util.getAxialAlignedBoundingBox(t,r),4),a=n[0];t=n[1],r=n[2],n=n[3];return a===r||t===n?[1,0,0,1,e[0],e[1]]:(r=(e[2]-e[0])/(r-a),n=(e[3]-e[1])/(n-t),[r,0,0,n,e[0]-a*r,e[1]-t*n])}t.AnnotationFactory=function(){function e(){T(this,e)}return O(e,null,[{key:"create",value:function(e,t,r,n){var a=this;return r.ensureCatalog("acroForm").then((function(i){return r.ensure(a,"_create",[e,t,r,n,i])}))}},{key:"_create",value:function(e,t,r,n,a){var o=e.fetchIfRef(t);if((0,s.isDict)(o)){n=(0,s.isRef)(t)?t.toString():"annot_".concat(n.createObjId());var c=o.get("Subtype"),u={xref:e,ref:t,dict:o,subtype:c=(0,s.isName)(c)?c.name:null,id:n,pdfManager:r,acroForm:a instanceof s.Dict?a:s.Dict.empty};switch(c){case"Link":return new U(u);case"Text":return new N(u);case"Widget":var h=(0,l.getInheritableProperty)({dict:o,key:"FT"});switch(h=(0,s.isName)(h)?h.name:null){case"Tx":return new M(u);case"Btn":return new D(u);case"Ch":return new L(u)}return(0,i.warn)('Unimplemented widget field type "'+h+'", falling back to base field type.'),new B(u);case"Popup":return new j(u);case"FreeText":return new q(u);case"Line":return new z(u);case"Square":return new G(u);case"Circle":return new H(u);case"PolyLine":return new W(u);case"Polygon":return new X(u);case"Caret":return new V(u);case"Ink":return new Y(u);case"Highlight":return new K(u);case"Underline":return new J(u);case"Squiggly":return new Z(u);case"StrikeOut":return new Q(u);case"Stamp":return new $(u);case"FileAttachment":return new ee(u);default:return c?(0,i.warn)('Unimplemented annotation type "'+c+'", falling back to base annotation.'):(0,i.warn)("Annotation is missing the required /Subtype."),new _(u)}}}}]),e}();var _=function(){function e(t){T(this,e);var r=t.dict;this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype}}var t;return O(e,[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,i.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,i.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,i.AnnotationFlag.PRINT)&&!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,i.AnnotationFlag.HIDDEN)}},{key:"setContents",value:function(e){this.contents=(0,i.stringToPDFString)(e||"")}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,i.isString)(e)?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&0=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>")}function u(e,t,r){(0,a.isName)(e)?t.push("/".concat(e.name)):(0,a.isRef)(e)?t.push("".concat(e.num," ").concat(e.gen," R")):Array.isArray(e)?function(e,t,r){t.push("[");var n,a=!0,i=o(e);try{for(i.s();!(n=i.n()).done;){var s=n.value;a?a=!1:t.push(" "),u(s,t,r)}}catch(e){i.e(e)}finally{i.f()}t.push("]")}(e,t,r):"string"==typeof e?(null!==r&&(e=r.encryptString(e)),t.push("(".concat((0,n.escapeString)(e),")"))):"number"==typeof e?t.push(function(e){if(Number.isInteger(e))return e.toString();var t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}(e)):(0,a.isDict)(e)?l(e,t,r):(0,a.isStream)(e)&&(t=t,r=r,l((e=e).dict,t,r),t.push(" stream\n"),e=(0,n.bytesToString)(e.getBytes()),null!==r&&(e=r.encryptString(e)),t.push(e),t.push("\nendstream\n"))}function h(e,t,r,n){for(var a=t+r-1;r-1>=8;return r+t}function f(e,t,r){for(var n=0,a=e.length;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>3,v=n.getBytes(w*b,!0),w=h.getArray("Decode","D"),(g=C.PDFImage.createMask({imgArray:v,width:m,height:b,imageIsFromDecodeStream:n instanceof y.DecodeStream,inverseDecode:!!w&&0y.fakeMultiSpaceMax)||(y.height+=P)):(P=(S=-S)*t.textHScale,t.translateTextMatrix(P,0),(D=y.textRunBreakAllowed&&S>y.fakeMultiSpaceMax)||(y.width+=P)),D?B():0=d.desiredSize){h=!0;break}}h?c(M):(B(),L(),r())})).catch((function(e){if(!(e instanceof i.AbortException)){if(r.options.ignoreErrors)return(0,i.warn)('getTextContent - ignoring errors during "'.concat(a.name,'" ')+'task: "'.concat(e,'".')),B(),void L();throw e}}))}},{key:"extractDataStructures",value:function(e,t,r){var n,a=this,o=this.xref,u=e.get("ToUnicode")||t.get("ToUnicode");t=u?this.readToUnicode(u):Promise.resolve(void 0);r.composite&&(h=e.get("CIDSystemInfo"),(0,s.isDict)(h)&&(r.cidSystemInfo={registry:(0,i.stringToPDFString)(h.get("Registry")),ordering:(0,i.stringToPDFString)(h.get("Ordering")),supplement:h.get("Supplement")}),f=e.get("CIDToGIDMap"),(0,s.isStream)(f)&&(n=f.getBytes()));var h,f,d,p=[];u=null;if(e.has("Encoding")){if(d=e.get("Encoding"),(0,s.isDict)(d)){if(u=d.get("BaseEncoding"),u=(0,s.isName)(u)?u.name:null,d.has("Differences"))for(var g=d.get("Differences"),m=0,v=0,b=g.length;v>1;0==i&&!t.has(o)||(r[o]=i)}return r}},{key:"extractWidths",value:function(e,t,r){var n,a,i,o,l,u=this.xref,h=[],f=0,d=[];if(r.composite){if(f=e.has("DW")?e.get("DW"):1e3,y=e.get("W"))for(n=0,a=y.length;n=i.OPS.moveTo&&c<=i.OPS.endPath&&++this._numInvalidPathOPS>e.MAX_INVALID_PATH_OPS)throw new i.FormatError("Invalid ".concat(a));(0,i.warn)("Skipping ".concat(a)),null!==r&&(r.length=0);continue}}return this.preprocessCommand(c,r),t.fn=c,t.args=r,!0}if(n===s.EOF)return!1;if(null!==n&&((r=null===r?[]:r).push(n),33>>0;for(var s=a[i],c=0,l=s.length;c=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e=0;do{var t=this.readByte();if(t<0)throw new i.FormatError("unexpected EOF in bcmap")}while(e=e<<7|127&t,128&t);return e},readSigned:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber:function(e,t){var r,n=this.tmpBuf,a=0;do{var o=this.readByte();if(o<0)throw new i.FormatError("unexpected EOF in bcmap")}while(r=!(128&o),n[a++]=127&o,!r);for(var s=t,c=0,l=0;0<=s;){for(;l<8&&0>=8,l-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,n=0,a=0;a<=t;a++)n=(1&n)<<8|e[a],e[a]=n>>1^r},readString:function(){for(var e=this.readNumber(),t="",r=0;r>5;if(7!=g){var m=!!(16&c),v=15&c;if(16<1+v)throw new Error("processBinaryCMap: Invalid dataSize.");var b,y=i.readNumber();switch(g){case 0:for(i.readHex(u,v),i.readHexNumber(h,v),T(h,u,v),t.addCodespaceRange(1+v,C(u,v),C(h,v)),b=1;b>>0}function A(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function T(e,t,r){for(var n=0,a=r;0<=a;a--)n+=e[a]+t[a],e[a]=255&n,n>>=8}function E(e,t){for(var r=1,n=t;0<=n&&0>=8}function O(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(S)}function I(){}function P(e){for(var t=0,r=0;r>>0}function _(e){if(!(0,i.isString)(e))throw new i.FormatError("Malformed CMap: expected string.")}function F(e){if(!Number.isInteger(e))throw new i.FormatError("Malformed CMap: expected int.")}function R(e,t,r,n){var a,s,l,u,h,f;e:for(;;)try{var d=t.getObj();if((0,o.isEOF)(d))break;if((0,o.isName)(d))"WMode"===d.name?(h=e,f=(f=t).getObj(),Number.isInteger(f)&&(h.vertical=!!f)):"CMapName"===d.name&&(l=e,u=(u=t).getObj(),(0,o.isName)(u)&&(0,i.isString)(u.name)&&(l.name=u.name)),a=d;else if((0,o.isCmd)(d))switch(d.cmd){case"endcmap":break e;case"usecmap":(0,o.isName)(a)&&(s=a.name);break;case"begincodespacerange":!function(e,t){for(;;){var r=t.getObj();if((0,o.isEOF)(r))break;if((0,o.isCmd)(r,"endcodespacerange"))return;if(!(0,i.isString)(r))break;var n=P(r);r=t.getObj();if(!(0,i.isString)(r))break;var a=P(r);e.addCodespaceRange(r.length,n,a)}throw new i.FormatError("Invalid codespace range.")}(e,t);break;case"beginbfchar":!function(e,t){for(;;){var r=t.getObj();if((0,o.isEOF)(r))break;if((0,o.isCmd)(r,"endbfchar"))return;_(r);var n=P(r);_(r=t.getObj()),e.mapOne(n,r)}}(e,t);break;case"begincidchar":!function(e,t){for(;;){var r=t.getObj();if((0,o.isEOF)(r))break;if((0,o.isCmd)(r,"endcidchar"))return;_(r);var n=P(r);F(r=t.getObj()),e.mapOne(n,r)}}(e,t);break;case"beginbfrange":!function(e,t){for(;;){var r=t.getObj();if((0,o.isEOF)(r))break;if((0,o.isCmd)(r,"endbfrange"))return;_(r);var n=P(r);_(r=t.getObj());var a=P(r);if(r=t.getObj(),Number.isInteger(r)||(0,i.isString)(r)){var s=Number.isInteger(r)?String.fromCharCode(r):r;e.mapBfRange(n,a,s)}else{if(!(0,o.isCmd)(r,"["))break;r=t.getObj();for(var c=[];!(0,o.isCmd)(r,"]")&&!(0,o.isEOF)(r);)c.push(r),r=t.getObj();e.mapBfRangeToArray(n,a,c)}}throw new i.FormatError("Invalid bf range.")}(e,t);break;case"begincidrange":!function(e,t){for(;;){var r=t.getObj();if((0,o.isEOF)(r))break;if((0,o.isCmd)(r,"endcidrange"))return;_(r);var n=P(r);_(r=t.getObj());var a=P(r);F(r=t.getObj()),e.mapCidRange(n,a,r)}}(e,t)}}catch(e){if(e instanceof c.MissingDataException)throw e;(0,i.warn)("Invalid cMap data: "+e);continue}return(n=!n&&s?s:n)?B(e,r,n):Promise.resolve(e)}function B(e,t,r){return M(r,t).then((function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var r=e.useCMap.codespaceRanges,n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,n.unreachable)("Should not call amend()")}},P);function P(e,t){this.firstChar=e,this.lastChar=t}t.IdentityToUnicodeMap=I;var _=function(){function e(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function t(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function r(e){this.sfnt=e,this.tables=Object.create(null)}return r.getSearchParams=function(e,t){for(var r=1,n=0;r<(r^e);)r<<=1,n++;var a=r*t;return{range:a,entry:n,rangeShift:t*e-a}},r.prototype={toArray:function(){var a=this.sfnt,i=this.tables,o=Object.keys(i);o.sort();for(var s,c,u=o.length,h=12+16*u,f=[h],d=0;d>>0,f.push(h);var p=new Uint8Array(h);for(d=0;d>>0;t(p,h+4,g),t(p,h+8,f[d]),t(p,h+12,i[s].length),h+=16}return p},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}},r}();F.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var e=u.FontRendererFactory.create(this,!0);return(0,n.shadow)(this,"renderer",e)},exportData:function(){var e,t,r,n=0=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}(n);try{for(i.s();!(r=i.n()).done;)void 0!==(t=this[e=r.value])&&(a[e]=t)}catch(e){i.e(e)}finally{i.f()}return a},fallbackToSystemFont:function(){var e=this;this.missingFile=!0;var t=this.name,r=this.type,a=this.subtype,l=t.replace(/[,_]/g,"-").replace(/\s/g,""),u=(0,s.getStdFontMap)(),h=(0,s.getNonStdFontMap)(),f=!!u[l]||!(!h[l]||!u[h[l]]);l=u[l]||h[l]||l;if(this.bold=-1!==l.search(/bold/gi),this.italic=-1!==l.search(/oblique/gi)||-1!==l.search(/italic/gi),this.black=-1!==t.search(/Black/g),this.remeasure=0>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,o=e.pos;e.pos=e.start||0,e.skip(a);var s=e.getBytes(i);return e.pos=o,"head"===t&&(s[8]=s[9]=s[10]=s[11]=0,s[17]|=32),{tag:t,checksum:r,length:i,offset:a,data:s}}(e);s.includes(i.tag)&&0!==i.length&&(r[i.tag]=i)}return r}function l(e){return{version:(0,n.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function u(e,t){for(var r=function(e){var t=(0,n.bytesToString)(e.getBytes(4));(0,n.assert)("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),a=e.getUint16(),i=e.getInt32()>>>0,o=[],s=0;s>>0);var c={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:i,offsetTable:o};switch(r){case 1:return c;case 2:return c.dsigTag=e.getInt32()>>>0,c.dsigLength=e.getInt32()>>>0,c.dsigOffset=e.getInt32()>>>0,c}throw new n.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}(e),a=r.numFonts,i=r.offsetTable,o=0;o>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,c=function(e,t){return e[t]<<9|e[t+1]<<1},function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255}),u=i?r+1:r,h=(n=s*(1+u),new Uint8Array(n));h.set(e.data.subarray(0,n)),e.data=h;var f=t.data,d=f.length,p=new Uint8Array(d),g=[];for(x=S=0;S>>8,n.set(s,a),o.length=s.length,o;for(var l=10,u=0,h=0;hs.length||(!i&&0o&&(o=y.sizeOfInstructions),l(h,x,b+=w)}if(0===b){for(var k=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]),S=0,x=s;Si+b?t.data=p.subarray(0,i+b):(t.data=new Uint8Array(i+b),t.data.set(p.subarray(0,b))),t.data.set(p.subarray(0,i),b),l(e.data,h.length-s,b+i)):t.data=p.subarray(0,b);return{missingGlyphs:v,maxSizeOfInstructions:o}}function p(e){var r=(t.start||0)+e.offset;t.pos=r;var a=[[],[]],i=(e=e.length,r+e);if(0!==t.getUint16()||e<6)return a;for(var o,s=t.getUint16(),c=t.getUint16(),l=[],u=0;ui))if(t.pos=d,d=f.name,f.encoding){for(var p="",g=0,m=f.length;gc.length&&C.push(new Uint8Array(l-c.length)),u>8,m.maxp.data[5]=255&T;var I,P,F,B,M,L,G,H,W,X;I=m.fpgm,P=m.prep,F=m["cvt "],B=O,M={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0},I&&b(I,M),P&&b(P,M),I&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,n.warn)("TT: more functions defined than expected"),e.hintsValid=!1;for(var r=0,a=e.functionsUsed.length;r>8,G.data[35]=255&L),0<(L=W-L-(H.length-4*L>>1))&&((L=new Uint8Array(H.length+2*L)).set(H.data),X&&(L[H.length]=H.data[2],L[H.length+1]=H.data[3]),H.data=L)):H&&(H.data=null),!m.head)throw new n.FormatError('Required "head" table is not found');!function(e,t,r){var a=e.data;if((e=(a[0]<<24)+(a[1]<<16)+(a[2]<<8)+a[3])>>16!=1&&((0,n.info)("Attempting to fix invalid version in head table: "+e),a[0]=0,a[1]=1,a[2]=0,a[3]=0),(e=(a[50]<<8)+a[51])<0||1>8,m.maxp.data[27]=255&K.maxSizeOfInstructions)),!m.hhea)throw new n.FormatError('Required "hhea" table is not found');0===m.hhea.data[10]&&0===m.hhea.data[11]&&(m.hhea.data[10]=255,m.hhea.data[11]=255);var K={unitsPerEm:(m.head.data[18]<<8)+m.head.data[19],yMax:(m.head.data[42]<<8)+m.head.data[43],yMin:R(m.head.data[38],m.head.data[39]),ascent:(m.hhea.data[4]<<8)+m.hhea.data[5],descent:R(m.hhea.data[6],m.hhea.data[7])};this.ascent=K.ascent/K.unitsPerEm,this.descent=K.descent/K.unitsPerEm,m.post&&function(e,r,a){var i,o=(t.start||0)+e.offset,s=(t.pos=o)+e.length,c=t.getInt32();t.skip(28);var l=!0;switch(c){case 65536:i=k;break;case 131072:var u=t.getUint16();if(u!==a){l=!1;break}for(var h=[],f=0;f>>0,d=!1;if((!o||o.platformId!==u||o.encodingId!==h)&&(0===u&&(0===h||1===h||3===h)||1===u&&0===h?d=!0:3!==u||1!==h||!a&&o?r&&3===u&&0===h&&(c=d=!0):(d=!0,r||(c=!0)),d&&(o={platformId:u,encodingId:h,offset:f}),c))break}if(o&&(t.pos=i+o.offset),!o||-1===t.peekByte())return(0,n.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var p=t.getUint16();t.skip(4);e=!1;var g=[];if(0===p){for(E=0;E<256;E++){var m=t.getByte();m&&g.push({charCode:E,glyphId:m})}e=!0}else if(4===p){var v=t.getUint16()>>1;t.skip(6);for(var b=[],y=0;y>1)-(v-y),w=Math.max(w,T+k.end-k.start+1)):k.offsetIndex=-1}var x=[];for(E=0;E>8&255,255&e)}function M(e){return 32767>8&255,255&e)}function D(e){return e=e.peekBytes(4),"ttcf"===(0,n.bytesToString)(e)}function L(e,t,r){for(var n,a,i=[],o=0,s=e.length;o=t||n.push({fontCharCode:0|r,glyphId:e[r]});0===n.length&&n.push({fontCharCode:0,glyphId:0}),n.sort((function(e,t){return e.fontCharCode-t.fontCharCode}));for(var a=[],i=n.length,o=0;o 123 are reserved for internal usage");s|=1<=this.numGlyphs)&&(0===e||0>4;i=15&i;if(15==o)break;if(r+=n[o],15==i)break;r+=n[i]}return parseFloat(r)}():28===r?r=((r=e[t++])<<24|e[t++]<<16)>>16:29===r?r=(r=(r=(r=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:32<=r&&r<=246?r-139:247<=r&&r<=250?256*(r-247)+e[t++]+108:251<=r&&r<=254?-256*(r-251)-e[t++]-108:((0,n.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}for(var a=[],i=[],o=(t=0,e.length);t>16,c+=2,i++;else if(14===l){if(4<=i&&(i-=4,this.seacAnalysisEnabled))return e.seac=o.slice(i,i+4),!1;u=g[l]}else if(32<=l&&l<=246)o[i]=l-139,i++;else if(247<=l&&l<=254)o[i]=l<251?(l-247<<8)+t[c]+108:-(l-251<<8)-t[c]-108,c++,i++;else if(255===l)o[i]=(t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3])/65536,c+=4,i++;else if(19===l||20===l)e.hints+=i>>1,c+=e.hints+7>>3,i%=2,u=g[l];else{if(10===l||29===l){var f=10===l?r:a;if(!f)return(0,n.warn)("Missing subrsIndex for "+(u=g[l]).id),!1;if(h=32768,f.count<1240?h=107:f.count<33900&&(h=1131),h=o[--i]+h,h<0||h>=f.count||isNaN(h))return(0,n.warn)("Out of bounds subrIndex for "+(u=g[l]).id),!1;if(e.stackSize=i,e.callDepth++,!this.parseCharString(e,f.get(h),r,a))return!1;e.callDepth--,i=e.stackSize;continue}if(11===l)return e.stackSize=i,!0;u=g[l]}if(u){if(u.stem&&(e.hints+=i>>1,3===l||23===l?e.hasVStems=!0:!e.hasVStems||1!==l&&18!==l||((0,n.warn)("CFF stem hints are in wrong order"),t[c-1]=1===l?3:23)),"min"in u&&!e.undefStack&&i=o.length&&((0,n.warn)("Invalid fd index for glyph index."),g=!1),g&&(m=(v=o[f].privateDict).subrsIndex)):r&&(m=r),g=g&&this.parseCharString(p,d,m,a),null!==p.width?(m=v.getByName("nominalWidthX"),l[h]=m+p.width):(v=v.getByName("defaultWidthX"),l[h]=v),null!==p.seac&&(c[h]=p.seac),g||t.set(h,new Uint8Array([14]))}return{charStrings:t,seacs:c,widths:l}}},{key:"emptyPrivateDictionary",value:function(e){var t=this.createDict(E,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}},{key:"parsePrivateDict",value:function(e){var t,r,n;e.hasName("Private")?(t=e.getByName("Private"),Array.isArray(t)&&2===t.length?(r=t[0],n=t[1],0===r||n>=this.bytes.length?this.emptyPrivateDictionary(e):(t=this.bytes.subarray(n,n+r),r=this.parseDict(t),t=this.createDict(E,r,e.strings),(e.privateDict=t).getByName("Subrs")&&(n+=r=t.getByName("Subrs"),0===r||n>=this.bytes.length?this.emptyPrivateDictionary(e):(n=this.parseIndex(n),t.subrsIndex=n.obj)))):e.removeByName("Private")):this.emptyPrivateDictionary(e)}},{key:"parseCharsets",value:function(e,t,r,i){if(0===e)return new I(!0,O.ISO_ADOBE,a.ISOAdobeCharset);if(1===e)return new I(!0,O.EXPERT,a.ExpertCharset);if(2===e)return new I(!0,O.EXPERT_SUBSET,a.ExpertSubsetCharset);var o,s,c,l=this.bytes,u=e,h=l[e++],f=[i?0:".notdef"];switch(--t,h){case 0:for(c=0;c=this.charStrings.count)&&0=this.fdSelect.length?-1:this.fdSelect[e]}}]),e}();t.CFFFDSelect=_;var F=function(){function e(){h(this,e),this.offsets=Object.create(null)}return d(e,[{key:"isTracking",value:function(e){return e in this.offsets}},{key:"track",value:function(e,t){if(e in this.offsets)throw new n.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t}},{key:"offset",value:function(e){for(var t in this.offsets)this.offsets[t]+=e}},{key:"setEntryLocation",value:function(e,t,r){if(!(e in this.offsets))throw new n.FormatError("Not tracking location of ".concat(e));for(var a=r.data,i=this.offsets[e],o=0,s=t.length;o>24&255,a[u]=d>>16&255,a[h]=d>>8&255,a[f]=255&d}}}]),e}();t.CFFCompiler=function(){function e(t){h(this,e),this.cff=t}return d(e,[{key:"compile",value:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e),this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var a=this.compileNameIndex(e.names);if(t.add(a),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var i=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var o=0,s=e.fdArray.length;o>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e],e}},{key:"compileHeader",value:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]}},{key:"compileNameIndex",value:function(e){for(var t=new w,r=0,a=e.length;r"===l||"/"===l||"%"===l)&&(l="_"),s[c]=l}""===(s=s.join(""))&&(s="Bad_Font_Name"),t.add((0,n.stringToBytes)(s))}return this.compileIndex(t)}},{key:"compileTopDicts",value:function(e,t,r){for(var n=[],a=new w,i=0,o=e.length;i>8&255,255&t]);else for(var i,o=(i=new Uint8Array(1+2*t))[0]=0,s=e.charset.length,c=!1,l=1;l>8&255,i[l+1]=255&h}return this.compileTypedArray(i)}},{key:"compileEncoding",value:function(e){return this.compileTypedArray(e.raw)}},{key:"compileFDSelect",value:function(e){var t,r=e.format;switch(r){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=r,i=0;i>8&255,255&i,o),n=o)}var s=(a.length-3)/3;a[1]=s>>8&255,a[2]=255&s,a.push(i>>8&255,255&i),t=new Uint8Array(a)}return this.compileTypedArray(t)}},{key:"compileTypedArray",value:function(e){for(var t=[],r=0,n=e.length;r>8&255,255&n],o=1,s=0;s>8&255,255&c):3===a?i.push(c>>16&255,c>>8&255,255&c):i.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[s]&&(c+=r[s].length);for(s=0;s=r.begin&&t=(r=a[11]).begin&&t=n.begin&&e>1,o=t+r+14,s=[],c=0;c>1;r>16,l=0,u=0;if(E+=10,c<0)do{var h,f,d=e[E]<<8|e[E+1],p=e[E+2]<<8|e[E+3];E+=4,1&d?(h=(e[E]<<24|e[E+1]<<16)>>16,f=(e[E+2]<<24|e[E+3]<<16)>>16,E+=4):(h=e[E++],f=e[E++]);u=2&d?(l=h,f):l=0;var g=1,m=1,v=0,b=0;8&d?(g=m=(e[E]<<24|e[E+1]<<16)/1073741824,E+=2):64&d?(g=(e[E]<<24|e[E+1]<<16)/1073741824,m=(e[E+2]<<24|e[E+3]<<16)/1073741824,E+=4):128&d&&(g=(e[E]<<24|e[E+1]<<16)/1073741824,v=(e[E+2]<<24|e[E+3]<<16)/1073741824,b=(e[E+4]<<24|e[E+5]<<16)/1073741824,m=(e[E+6]<<24|e[E+7]<<16)/1073741824,E+=8),p=r.glyphs[p]}while(p&&(t.push({cmd:"save"}),t.push({cmd:"transform",args:[g,v,b,m,l,u]}),C(p,t,r),t.push({cmd:"restore"})),32&d);else{for(var y,w=[],k=0;k>16,E+=2;break;case 2:l-=e[E++];break;case 18:l+=e[E++]}x[k].x=l}for(k=0;k>16,E+=2;break;case 4:u-=e[E++];break;case 36:u+=e[E++]}x[k].y=u}for(var T=0,E=0;E>1,m=!0;break;case 4:h+=l.pop(),i(u,h),m=!0;break;case 5:for(;0Math.abs(h-E)?u+=l.shift():h+=l.shift(),c(O,I,P,_,u,h);break;default:throw new n.FormatError("unknown operator: 12 ".concat(v))}break;case 14:return void(4<=l.length&&(y=l.pop(),w=l.pop(),h=l.pop(),u=l.pop(),t.push({cmd:"save"}),t.push({cmd:"translate",args:[u,h]}),y=x(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[y]])),A(r.glyphs[y.glyphId],t,r,y.glyphId),t.push({cmd:"restore"}),y=x(r.cmap,String.fromCharCode(r.glyphNameMap[o.StandardEncoding[w]])),A(r.glyphs[y.glyphId],t,r,y.glyphId)));case 18:f+=l.length>>1,m=!0;break;case 19:case 20:p+=(f+=l.length>>1)+7>>3,m=!0;break;case 21:h+=l.pop(),i(u+=l.pop(),h),m=!0;break;case 22:i(u+=l.pop(),h),m=!0;break;case 23:f+=l.length>>1,m=!0;break;case 24:for(;2>16),p+=2;break;case 29:k=l.pop()+r.gsubrsBias,(C=r.gsubrs[k])&&e(C);break;case 30:for(;0>8&255,255&o):this.output.push(255,(o=65536*o|0)>>24&255,o>>16&255,o>>8&255,255&o)}return this.output.push.apply(this.output,t),r?this.stack.splice(a,e):this.stack.length=0,!1}},f}();h.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){return"true"===this.getToken()?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,a.isWhiteSpace)(t))break;t=this.nextChar()}if(u(t))return this.nextChar(),String.fromCharCode(t);for(var r="";r+=String.fromCharCode(t),0<=(t=this.nextChar())&&!(0,a.isWhiteSpace)(t)&&!u(t););return r},readCharStrings:function(e,t){return-1===t?e:l(e,4330,t)},extractFontProgram:function(e){var t=this.stream,r=[],n=[],a=Object.create(null);a.lenIV=4;for(var i,o,c,l,u={subrs:[],charstrings:[],properties:{privateData:a}};null!==(i=this.getToken());)if("/"===i)switch(i=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(i=this.getToken())&&"end"!==i;)"/"===i&&(p=this.getToken(),l=this.readInt(),this.getToken(),o=0=e.firstChar&&b<=e.lastChar&&(e.widths[b]=m.width)}return u},extractFontHeader:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var a=this.getToken();if(/^\d+$/.test(a)){var i=[],o=0|parseInt(a,10);this.getToken();for(var s=0;s=e.length)return new Uint8Array(0);for(var n,a=0|t,i=0;i>8,a=52845*(c+a)+22719&65535}return s}function u(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function h(e,t,r){var n;t&&(t=!((c((n=e.getBytes())[0])||(0,a.isWhiteSpace)(n[0]))&&c(n[1])&&c(n[2])&&c(n[3])&&c(n[4])&&c(n[5])&&c(n[6])&&c(n[7])),e=new i.Stream((t?l:function(e,t,r){for(var n=0|t,a=e.length,i=new Uint8Array(a>>>1),o=0,s=0;o>8,n=52845*(u+n)+22719&65535)}}return i.slice(r,s)})(n,55665,4))),this.seacAnalysisEnabled=!!r,this.stream=e,this.nextChar()}t.Type1Parser=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=function(e,t,r){var a=t.getArray("Matrix"),i=n.Util.normalizeRect(t.getArray("BBox")),o=t.get("XStep"),s=t.get("YStep"),c=t.get("PaintType");t=t.get("TilingType");if(i[2]-i[0]!=0&&i[3]-i[1]!=0)return["TilingPattern",r,e,a,i,o,s,c,t];throw new n.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(i,"]."))},t.Pattern=void 0;var n=r(5),a=r(220),i=r(202),o=r(205),s=2,c=3,l=4,u=5,h=6,f=7;d.prototype={getPattern:function(e){(0,n.unreachable)("Should not call Pattern.getStyle: ".concat(e))}},d.parseShading=function(e,t,r,a,d,g,m){var v=(0,i.isStream)(e)?e.dict:e,b=v.get("ShadingType");try{switch(b){case s:case c:return new p.RadialAxial(v,t,r,a,g,m);case l:case u:case h:case f:return new p.Mesh(e,t,r,a,g,m);default:throw new n.FormatError("Unsupported ShadingType: "+b)}}catch(e){if(e instanceof o.MissingDataException)throw e;return d.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.shadingPattern}),(0,n.warn)(e),new p.Dummy}},r=d;function d(){(0,n.unreachable)("should not call Pattern constructor")}t.Pattern=r;var p={};function g(e,t,r,i,o,s){this.matrix=t,this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType"),this.type="Pattern";var l=a.ColorSpace.parse({cs:e.getRaw("ColorSpace")||e.getRaw("CS"),xref:r,resources:i,pdfFunctionFactory:o,localColorSpaceCache:s});this.cs=l;var u=e.getArray("BBox");Array.isArray(u)&&4===u.length?this.bbox=n.Util.normalizeRect(u):this.bbox=null;var h=0,f=1;e.has("Domain")&&(h=(d=e.getArray("Domain"))[0],f=d[1]);var d,g;t=!1,r=!1;e.has("Extend")&&(t=(g=e.getArray("Extend"))[0],r=g[1]),this.shadingType!==c||t&&r||(i=this.coordsArr[0],s=this.coordsArr[1],u=this.coordsArr[2],d=this.coordsArr[3],m=this.coordsArr[4],u<=(g=this.coordsArr[5])+(m=Math.sqrt((i-d)*(i-d)+(s-m)*(s-m)))&&g<=u+m&&(0,n.warn)("Unsupported radial gradient.")),this.extendStart=t,this.extendEnd=r;var m=e.getRaw("Function"),v=o.createFromArray(m),b=(f-h)/10,y=this.colorStops=[];if(f<=h||b<=0)(0,n.info)("Bad shading domain.");else{for(var w=new Float32Array(l.numComps),k=new Float32Array(1),S=0;S<=10;S++){k[0]=h+S*b,v(k,0,w,0);var x=l.getRgb(w,0),C=n.Util.makeCssRgb(x[0],x[1],x[2]);y.push([S/10,C])}f="transparent",e.has("Background")&&(x=l.getRgb(e.get("Background"),0),f=n.Util.makeCssRgb(x[0],x[1],x[2])),t||(y.unshift([0,f]),y[1][0]+=p.SMALL_NUMBER),r||(y[y.length-1][0]-=p.SMALL_NUMBER,y.push([1,f])),this.colorStops=y}}function m(){this.type="Pattern"}p.SMALL_NUMBER=1e-6,p.RadialAxial=(g.prototype={getIR:function(){var e,t,r,a=this.coordsArr,i=this.shadingType;i===s?(o=[a[0],a[1]],l=[a[2],a[3]],r=t=null,e="axial"):i===c?(o=[a[0],a[1]],l=[a[3],a[4]],t=a[2],r=a[5],e="radial"):(0,n.unreachable)("getPattern type unknown: ".concat(i));var o,l;a=this.matrix;return a&&(o=n.Util.applyTransform(o,a),l=n.Util.applyTransform(l,a),i===c&&(t*=(a=n.Util.singularValueDecompose2dScale(a))[0],r*=a[1])),["RadialAxial",e,this.bbox,this.colorStops,o,l,t,r]}},g),p.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0,e=t.numComps,this.tmpCompsBuf=new Float32Array(e),e=t.colorSpace.numComps,this.tmpCsCompsBuf=t.colorFn?new Float32Array(e):this.tmpCompsBuf}e.prototype={get hasData(){if(this.stream.end)return this.stream.pos>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var n=this.stream.getByte();return this.buffer=n&(1<>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r>r},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),n=this.context.decode;e=e<32?1/((1<>c)*u,l&=(1<>1,o=e.length>>1,s=new d(r),c=Object.create(null),l=8192,u=new Float32Array(o);return function(e,t,r,a){var h="",f=u;for(v=0;v>n);break;case"ceiling":r=i.pop(),i.push(Math.ceil(r));break;case"copy":r=i.pop(),i.copy(r);break;case"cos":r=i.pop(),i.push(Math.cos(r));break;case"cvi":r=0|i.pop(),i.push(r);break;case"cvr":break;case"div":n=i.pop(),r=i.pop(),i.push(r/n);break;case"dup":i.copy(1);break;case"eq":n=i.pop(),r=i.pop(),i.push(r===n);break;case"exch":i.roll(2,1);break;case"exp":n=i.pop(),r=i.pop(),i.push(Math.pow(r,n));break;case"false":i.push(!1);break;case"floor":r=i.pop(),i.push(Math.floor(r));break;case"ge":n=i.pop(),r=i.pop(),i.push(n<=r);break;case"gt":n=i.pop(),r=i.pop(),i.push(n>1,f=r.length>>1,d=0,p=0;p=m?new b(m):g.max<=m?g:new w(g,m))),T+=6;break}if("literal"===(o=l[l.length-1]).type||"var"===o.type){l.push(o);break}s=new k(d++,o.min,o.max),l[l.length-1]=s,l.push(s),u.push(new S(s,o));break;case"roll":if(l.length<2)return null;if(i=l.pop(),a=l.pop(),"literal"!==i.type||"literal"!==a.type)return null;if(m=i.number,(n=a.number)<=0||!Number.isInteger(n)||!Number.isInteger(m)||l.lengthe.min&&(n.unshift("Math.max(",a,", "),n.push(")")),i"!==F||(l[d]="")}return c(l.join(""),h)};var n=r(5),a=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],i=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function o(e){return 0!=(1&e)}function s(e,t,r){for(var n=t,a=r-1;n>>8,t[r++]=255&c)}else{if(!(0,n.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=(t=e).byteLength}for(var l,u=r>>2,h=r-4*u,f=new Uint32Array(t.buffer,0,u),d=0,p=this.h1,g=this.h2,m=3432918353,v=461845907,b=0;b>>17)*v&o|13715*d&s)<<13|p>>>19)+3864292196:g=5*(g=(g^=(l=(l=(l=f[b])*m&o|11601*l&s)<<15|l>>>17)*v&o|13715*l&s)<<13|g>>>19)+3864292196;switch(d=0,h){case 3:d^=t[4*u+2]<<16;case 2:d^=t[4*u+1]<<8;case 1:d=(d=(d=(d^=t[4*u])*m&o|11601*d&s)<<15|d>>>17)*v&o|13715*d&s,1&u?p^=d:g^=d}this.h1=p,this.h2=g}},{key:"hexdigest",value:function(){var e=this.h1,t=this.h2;e=3981806797*(e^=t>>>1)&o|36045*e&s;return e=444984403*(e^=(t=4283543511*t&o|(2950163797*(t<<16|e>>>16)&o)>>>16)>>>1)&o|60499*e&s,e=((e^=(t=3301882366*t&o|(3120437893*(t<<16|e>>>16)&o)>>>16)>>>1)>>>0).toString(16),t=(t>>>0).toString(16),e.padStart(8,"0")+t.padStart(8,"0")}}])&&a(t.prototype,r),c&&a(t,c),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var n,a=(n=r(2))&&n.__esModule?n:{default:n},i=r(5),o=r(202),s=r(220),c=r(209),l=r(215),u=r(218);function h(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,a)}function f(e,t){for(var r=0;r>7&1,s[u+1]=m>>6&1,s[u+2]=m>>5&1,s[u+3]=m>>4&1,s[u+4]=m>>3&1,s[u+5]=m>>2&1,s[u+6]=m>>1&1,s[u+7]=1&m,u+=8;if(u>=1}else for(var g=0,m=0,v=(u=0,i);u>b;y<0?y=0:lu[1+w]){m=255;break}}h[p]=m}}if(h)for(p=0,b=3,g=r*a;p>3;if(!t){if("DeviceGray"===this.colorSpace.name&&1===h?e=i.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==h||this.needsDecode||(e=i.ImageKind.RGB_24BPP),e&&!this.smask&&!this.mask&&r===s&&n===u){if(a.kind=e,y=this.getImageBytes(u*f),this.image instanceof c.DecodeStream?a.data=y:((o=new Uint8ClampedArray(y.length)).set(y),a.data=o),this.needsDecode){(0,i.assert)(e===i.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var d=a.data,p=0,g=d.length;p>3)),this.getComponents(t));if(1!==a){this.needsDecode&&this.decodeBuffer(o);for(var s=r*n,c=255/((1<>3)*i),c=n.byteLength;if(!o||e&&s!==c)if(e)for((t=new Uint8ClampedArray(s)).set(n),r=c;r>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===n&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,s[c++]=255&t),1===n&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=0,s=r-a;o>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}(a));return i.join("")}(e,o,s>2]+n[t<<4&63]+"==")):2==a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s */ t.read=function(e,t,r,n,a){var i,o,s=8*a-n-1,c=(1<>1,u=-7,h=r?a-1:0,f=r?-1:1;r=e[t+h];for(h+=f,i=r&(1<<-u)-1,r>>=-u,u+=s;0>=-u,u+=n;0>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,d=n?1:-1;i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(t+=1<=o+u?h/n:h*Math.pow(2,1-u))*n&&(o++,n/=2),l<=o+u?(s=0,o=l):1<=o+u?(s=(t*n-1)*Math.pow(2,a),o+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,a),o=0));8<=a;e[r+f]=255&s,f+=d,s/=256,a-=8);for(o=o< * @license MIT */ var n=r("1fb5"),a=r("9152"),i=r("e3db");function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var r=(e="string"!=typeof e?""+e:e).length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(e).length;default:if(n)return _(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var a,i,o,s=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,a);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(a?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):b(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,a){var i=1,o=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o/=i=2,s/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a)for(var l=-1,u=r;u>8,n%=256,a.push(n),a.push(r);return a}(t,e.length-r),e,r,n)}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a>>10&1023|55296),u=56320|1023&u),n.push(u),a+=h}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,n,a){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),(t=void 0===t?0:t)<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(a<=n&&r<=t)return 0;if(a<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(i,o),l=this.slice(n,a),u=e.slice(t,r),h=0;hthis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,o,s,c=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var a=e.length-r;if((!n||a<(n=Number(n)))&&(n=a),(a=t.length)%2!=0)throw new TypeError("Invalid hex string");a/2e.length)throw new RangeError("Index out of range")}function A(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-r,2);a>>8*(n?a:1-a)}function T(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-r,4);a>>8*(n?a:3-a)&255}function E(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,n,i){return i||E(e,0,r,4),a.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,i){return i||E(e,0,r,8),a.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):r>>8):A(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){e=+e,t|=0,n||C(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var a=0,i=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){e=+e,t|=0,n||C(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var a=r-1,i=1,o=0;for(this[t+a]=255&e;0<=--a&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&(e=e<0?255+e+1:e),t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),(n=0=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var a,i=(n=e.length-t>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(s=t;s>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function F(e){return n.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}}).call(this,r("c8ba"))},c8ba:function(e,t){var r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;0<=n;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n